28 lines
130 KiB
JavaScript
28 lines
130 KiB
JavaScript
|
"use strict";(self.webpackChunk_npwd_nui=self.webpackChunk_npwd_nui||[]).push([[5095],{56322:function(e,t,o){o.d(t,{D:function(){return d},Z:function(){return v}});var r=o(63223),n=o(53182),a=o(96168),i=o(12183),l=o(1474),s=o(49995),c=o(20871);function p(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function d(e={}){const{ignoreAccents:t=!0,ignoreCase:o=!0,limit:r,matchFrom:n="any",stringify:a,trim:i=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let c=i?l.trim():l;o&&(c=c.toLowerCase()),t&&(c=p(c));const d=c?e.filter((e=>{let r=(a||s)(e);return o&&(r=r.toLowerCase()),t&&(r=p(r)),"start"===n?0===r.indexOf(c):r.indexOf(c)>-1})):e;return"number"==typeof r?d.slice(0,r):d}}function u(e,t){for(let o=0;o<e.length;o+=1)if(t(e[o]))return o;return-1}const f=d(),m=5,h=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function v(e){const{unstable_isActiveElementInListbox:t=h,unstable_classNamePrefix:o="Mui",autoComplete:p=!1,autoHighlight:d=!1,autoSelect:v=!1,blurOnSelect:g=!1,clearOnBlur:b=!e.freeSolo,clearOnEscape:Z=!1,componentName:y="useAutocomplete",defaultValue:x=(e.multiple?[]:null),disableClearable:w=!1,disableCloseOnSelect:S=!1,disabled:C,disabledItemsFocusable:$=!1,disableListWrap:P=!1,filterOptions:R=f,filterSelectedOptions:O=!1,freeSolo:k=!1,getOptionDisabled:T,getOptionLabel:M=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:I,handleHomeEndKeys:L=!e.freeSolo,id:E,includeInputInList:z=!1,inputValue:N,isOptionEqualToValue:A=((e,t)=>e===t),multiple:D=!1,onChange:B,onClose:F,onHighlightChange:j,onInputChange:W,onOpen:V,open:H,openOnFocus:q=!1,options:U,readOnly:K=!1,selectOnFocus:G=!e.freeSolo,value:X}=e,Y=(0,a.Z)(E);let _=M;_=e=>{const t=M(e);return"string"!=typeof t?String(t):t};const Q=n.useRef(!1),J=n.useRef(!0),ee=n.useRef(null),te=n.useRef(null),[oe,re]=n.useState(null),[ne,ae]=n.useState(-1),ie=d?0:-1,le=n.useRef(ie),[se,ce]=(0,i.Z)({controlled:X,default:x,name:y}),[pe,de]=(0,i.Z)({controlled:N,default:"",name:y,state:"inputValue"}),[ue,fe]=n.useState(!1),me=n.useCallback(((e,t)=>{if(!(D?se.length<t.length:null!==t)&&!b)return;let o;if(D)o="";else if(null==t)o="";else{const e=_(t);o="string"==typeof e?e:""}pe!==o&&(de(o),W&&W(e,o,"reset"))}),[_,pe,D,W,de,b,se]),[he,ve]=(0,i.Z)({controlled:H,default:!1,name:y,state:"open"}),[ge,be]=n.useState(!0),Ze=!D&&null!=se&&pe===_(se),ye=he&&!K,xe=ye?R(U.filter((e=>!O||!(D?se:[se]).some((t=>null!==t&&A(e,t))))),{inputValue:Ze&&ge?"":pe,getOptionLabel:_}):[],we=(0,l.Z)({filteredOptions:xe,value:se});n.useEffect((()=>{const e=se!==we.value;ue&&!e||k&&!e||me(null,se)}),[se,me,ue,we.value,k]);const Se=he&&xe.length>0&&!K,Ce=(0,s.Z)((e=>{-1===e?ee.current.focus():oe.querySelector(`[data-tag-index="${e}"]`).focus()}));n.useEffect((()=>{D&&ne>se.length-1&&(ae(-1),Ce(-1))}),[se,D,ne,Ce]);const $e=(0,s.Z)((({event:e,index:t,reason:r="auto"})=>{if(le.current=t,-1===t?ee.current.removeAttribute("aria-activedescendant"):ee.current.setAttribute("aria-activedescendant",`${Y}-option-${t}`),j&&j(e,-1===t?null:xe[t],r),!te.current)return;const n=te.current.querySelector(`[role="option"].${o}-focused`);n&&(n.classList.remove(`${o}-focused`),n.classList.remove(`${o}-focusVisible`));let a=te.current;if("listbox"!==te.current.getAttribute("role")&&(a=te.current.parentElement.querySelector('[role="listbox"]')),!a)return;if(-1===t)return void(a.scrollTop=0);const i=te.current.querySelector(`[data-option-index="${t}"]`);if(i&&(i.classList.add(`${o}-focused`),"keyboard"===r&&i.classList.add(`${o}-focusVisible`),a.scrollHeight>a.clientHeight&&"mouse"!==r)){const e=i,t=a.clientHeight+a.scrollTop,o=e.offsetTop+e.offsetHeight;o>t?a.scrollTop=o-a.clientHeight:e.offsetTop-e.offsetHeight*(I?1.3:0)<a.scrollTop&&(a.scrollTop=e.offsetTop-e.offsetHeight*(I?1.3:0))}})),Pe=(0,s.Z)((({event:e,diff:t,direction:o="next",reason:r="auto"})=>{if(!ye)return;const n=function(e,t){if(!te.current||-1===e)return-1;let o=e;for(;;){if("next"===t&&o===xe.length||"previous"===t&&-1===o)return-1;const e=te.current.querySelecto
|
||
|
0% {
|
||
|
transform: rotate(0deg);
|
||
|
}
|
||
|
|
||
|
100% {
|
||
|
transform: rotate(360deg);
|
||
|
}
|
||
|
`)),x=(0,s.keyframes)(v||(v=Z`
|
||
|
0% {
|
||
|
stroke-dasharray: 1px, 200px;
|
||
|
stroke-dashoffset: 0;
|
||
|
}
|
||
|
|
||
|
50% {
|
||
|
stroke-dasharray: 100px, 200px;
|
||
|
stroke-dashoffset: -15px;
|
||
|
}
|
||
|
|
||
|
100% {
|
||
|
stroke-dasharray: 100px, 200px;
|
||
|
stroke-dashoffset: -125px;
|
||
|
}
|
||
|
`)),w=(0,d.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`color${(0,c.Z)(o.color)}`]]}})((({ownerState:e,theme:t})=>(0,n.Z)({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main})),(({ownerState:e})=>"indeterminate"===e.variant&&(0,s.css)(g||(g=Z`
|
||
|
animation: ${0} 1.4s linear infinite;
|
||
|
`),y))),S=(0,d.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),C=(0,d.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.circle,t[`circle${(0,c.Z)(o.variant)}`],o.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>(0,n.Z)({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&(0,s.css)(b||(b=Z`
|
||
|
animation: ${0} 1.4s ease-in-out infinite;
|
||
|
`),x))),$=a.forwardRef((function(e,t){const o=(0,p.Z)({props:e,name:"MuiCircularProgress"}),{className:a,color:s="primary",disableShrink:d=!1,size:h=40,style:v,thickness:g=3.6,value:b=0,variant:Z="indeterminate"}=o,y=(0,r.Z)(o,m),x=(0,n.Z)({},o,{color:s,disableShrink:d,size:h,thickness:g,value:b,variant:Z}),$=(e=>{const{classes:t,variant:o,color:r,disableShrink:n}=e,a={root:["root",o,`color${(0,c.Z)(r)}`],svg:["svg"],circle:["circle",`circle${(0,c.Z)(o)}`,n&&"circleDisableShrink"]};return(0,l.Z)(a,u.C,t)})(x),P={},R={},O={};if("determinate"===Z){const e=2*Math.PI*((44-g)/2);P.strokeDasharray=e.toFixed(3),O["aria-valuenow"]=Math.round(b),P.strokeDashoffset=`${((100-b)/100*e).toFixed(3)}px`,R.transform="rotate(-90deg)"}return(0,f.jsx)(w,(0,n.Z)({className:(0,i.Z)($.root,a),style:(0,n.Z)({width:h,height:h},R,v),ownerState:x,ref:t,role:"progressbar"},O,y,{children:(0,f.jsx)(S,{className:$.svg,ownerState:x,viewBox:"22 22 44 44",children:(0,f.jsx)(C,{className:$.circle,style:P,ownerState:x,cx:44,cy:44,r:(44-g)/2,fill:"none",strokeWidth:g})})}))}));t.Z=$},10243:function(e,t,o){o.d(t,{C:function(){return a}});var r=o(51270),n=o(13665);function a(e){return(0,n.Z)("MuiCircularProgress",e)}const i=(0,r.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);t.Z=i},44098:function(e,t,o){var r=o(10262),n=o(63223),a=o(53182),i=o(14517),l=o(39148),s=o(12817),c=o(85602),p=o(81929),d=o(58981),u=o(96976),f=o(31354),m=o(6533),h=o(38444),v=o(61250);const g=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],b=(0,c.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],"entered"===o.state&&t.entered,"exited"===o.state&&!o.in&&"0px"===o.collapsedSize&&t.hidden]}})((({theme:e,ownerState:t})=>(0,n.Z)({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===t.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===t.state&&(0,n.Z)({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"}))),Z=(0,c.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>(0,n.Z)({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),y=(0,c.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((({ownerState:e})=>(0,n.Z)({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),x=a.forwardRef((function(e,t){const o=(0,p.Z)({props:e,name:"MuiCollapse"}),{addEndListener:c,children:x,className:w,collapsedSize:S="0px",component:C,easing:$,in:P,onEnter:R,onEntered:O,onEntering:k,onExit:T,onExited:M,onExiting:I,orientation:L="vertical",style:E,timeout:z=d.x9.standard,TransitionComponent:N=l.ZP}=o,A=(0,r.Z)(o,g),D=(0,n.Z)({},o,{orientation:L,collapsedSize:S}),B=(e=>{const{orientation:t,classes:o}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return(0,s.Z)(r,h.d,o)})(D),F=(0,f.Z)(),j=a.useRef(),W=a.useRef(null),V=a.useRef(),H="number"==typeof S?`${S}px`:S,q="horizontal"===L,U=q?"width":"height";a.useEffect((()=>()=>{clearTimeout(j.current)}),[]);const K=a.useRef(null),G=(0,m.Z)(t,K),X=e=>t=>{if(e){const o=K.current;void 0===t?e(o):e(o,t)}},Y=()=>W.current?W.current[q?"clientWidth":"clientHeight"]:0,_=X(((e,t)=>{W.current&&q&&(W.current.style.position="absolute"),e.style[U]=H,R&&R(e,t)})),Q=X(((e,t)=>{const o=Y();W.current&&q&&(W.current.style.position="");const{duration:r,easing:n}=(0,u.C)({style:E,timeout:z,easing:$},{mode:"enter"});if("auto"===z){const t=F.transitions.getAutoHeightDuration(o);e.style.transitionDuration=`${t}ms`,V.current=t}else e.style.transit
|