Scripts/resources/[phone]/npwd/dist/html/9158.js

75 lines
44 KiB
JavaScript
Raw Normal View History

2024-12-29 19:49:12 +00:00
/*! For license information please see 9158.js.LICENSE.txt */
"use strict";(self.webpackChunk_npwd_nui=self.webpackChunk_npwd_nui||[]).push([[9158,5788],{52013:function(e,t,n){var o=n(53182),r=n(72367),i=n(46088),a=n(71073),l=n(20871),s=n(61250);const u=o.forwardRef((function(e,t){const{children:n,container:u,disablePortal:c=!1}=e,[d,p]=o.useState(null),f=(0,i.Z)(o.isValidElement(n)?n.ref:null,t);if((0,a.Z)((()=>{c||p(function(e){return"function"==typeof e?e():e}(u)||document.body)}),[u,c]),(0,a.Z)((()=>{if(d&&!c)return(0,l.Z)(t,d),()=>{(0,l.Z)(t,null)}}),[t,d,c]),c){if(o.isValidElement(n)){const e={ref:f};return o.cloneElement(n,e)}return(0,s.jsx)(o.Fragment,{children:n})}return(0,s.jsx)(o.Fragment,{children:d?r.createPortal(n,d):d})}));t.Z=u},54904:function(e,t,n){n.d(t,{T:function(){return a}});var o=n(53182);n(61250);const r={disableDefaultClasses:!1},i=o.createContext(r);function a(e){const{disableDefaultClasses:t}=o.useContext(i);return n=>t?"":e(n)}},65953:function(e,t,n){n.d(t,{Z:function(){return i}});var o=n(63223),r=n(68042);function i(e,t,n){return void 0===e||(0,r.Z)(e)?t:(0,o.Z)({},t,{ownerState:(0,o.Z)({},t.ownerState,n)})}},36785:function(e,t,n){function o(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}n.d(t,{Z:function(){return o}})},68042:function(e,t,n){function o(e){return"string"==typeof e}n.d(t,{Z:function(){return o}})},92399:function(e,t,n){function o(e,t){return"function"==typeof e?e(t):e}n.d(t,{Z:function(){return o}})},39505:function(e,t,n){n.d(t,{Z:function(){return p}});var o=n(63223),r=n(10262),i=n(46088),a=n(65953),l=n(14517),s=n(36785);function u(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}var c=n(92399);const d=["elementType","externalSlotProps","ownerState"];function p(e){var t;const{elementType:n,externalSlotProps:p,ownerState:f}=e,v=(0,r.Z)(e,d),h=(0,c.Z)(p,f),{props:m,internalRef:Z}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){const e=(0,l.Z)(null==i?void 0:i.className,null==r?void 0:r.className,a,null==n?void 0:n.className),t=(0,o.Z)({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),s=(0,o.Z)({},n,i,r);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const c=(0,s.Z)((0,o.Z)({},i,r)),d=u(r),p=u(i),f=t(c),v=(0,l.Z)(null==f?void 0:f.className,null==n?void 0:n.className,a,null==i?void 0:i.className,null==r?void 0:r.className),h=(0,o.Z)({},null==f?void 0:f.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),m=(0,o.Z)({},f,n,p,d);return v.length>0&&(m.className=v),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:f.ref}}((0,o.Z)({},v,{externalSlotProps:h})),g=(0,i.Z)(Z,null==h?void 0:h.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,a.Z)(n,(0,o.Z)({},m,{ref:g}),f)}},94548:function(e,t,n){n.d(t,{Z:function(){return z}});var o=n(10262),r=n(63223),i=n(53182),a=n(14517),l=n(12817),s=n(98202),u=n(85602),c=n(81929),d=n(672),p=n(71571),f=n(36842),v=n(9623),h=n(48496),m=n(61250),Z=(0,h.Z)((0,m.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),g=(0,h.Z)((0,m.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),b=(0,h.Z)((0,m.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),x=(0,h.Z)((0,m.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutline
0% {
transform: scale(0);
opacity: 0.1;
}
100% {
transform: scale(1);
opacity: 0.3;
}
`)),O=(0,C.keyframes)($||($=P`
0% {
opacity: 1;
}
100% {
opacity: 0;
}
`)),j=(0,C.keyframes)(T||(T=P`
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
`)),L=(0,u.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),A=(0,u.ZP)((function(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:a,rippleSize:s,in:u,onExited:c,timeout:d}=e,[p,f]=i.useState(!1),v=(0,l.Z)(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),h={width:s,height:s,top:-s/2+a,left:-s/2+r},m=(0,l.Z)(n.child,p&&n.childLeaving,o&&n.childPulsate);return u||p||f(!0),i.useEffect((()=>{if(!u&&null!=c){const e=setTimeout(c,d);return()=>{clearTimeout(e)}}}),[c,u,d]),(0,w.jsx)("span",{className:v,style:h,children:(0,w.jsx)("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(I||(I=P`
opacity: 0;
position: absolute;
&.${0} {
opacity: 0.3;
transform: scale(1);
animation-name: ${0};
animation-duration: ${0}ms;
animation-timing-function: ${0};
}
&.${0} {
animation-duration: ${0}ms;
}
& .${0} {
opacity: 1;
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: currentColor;
}
& .${0} {
opacity: 0;
animation-name: ${0};
animation-duration: ${0}ms;
animation-timing-function: ${0};
}
& .${0} {
position: absolute;
/* @noflip */
left: 0px;
top: 0;
animation-name: ${0};
animation-duration: 2500ms;
animation-timing-function: ${0};
animation-iteration-count: infinite;
animation-delay: 200ms;
}
`),M.Z.rippleVisible,N,550,(({theme:e})=>e.transitions.easing.easeInOut),M.Z.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),M.Z.child,M.Z.childLeaving,O,550,(({theme:e})=>e.transitions.easing.easeInOut),M.Z.childPulsate,j,(({theme:e})=>e.transitions.easing.easeInOut));var F=i.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiTouchRipple"}),{center:a=!1,classes:s={},className:u}=n,d=(0,r.Z)(n,z),[p,f]=i.useState([]),v=i.useRef(0),h=i.useRef(null);i.useEffect((()=>{h.current&&(h.current(),h.current=null)}),[p]);const m=i.useRef(!1),Z=i.useRef(null),g=i.useRef(null),b=i.useRef(null);i.useEffect((()=>()=>{clearTimeout(Z.current)}),[]);const x=i.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:o,rippleSize:r,cb:i}=e;f((e=>[...e,(0,w.jsx)(A,{classes:{ripple:(0,l.Z)(s.ripple,M.Z.ripple),rippleVisible:(0,l.Z)(s.rippleVisible,M.Z.rippleVisible),ripplePulsate:(0,l.Z)(s.ripplePulsate,M.Z.ripplePulsate),child:(0,l.Z)(s.child,M.Z.child),childLeaving:(0,l.Z)(s.childLeaving,M.Z.childLeaving),childPulsate:(0,l.Z)(s.childPulsate,M.Z.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:o,rippleSize:r},v.current)])),v.current+=1,h.current=i}),[s]),y=i.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:r=a||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&m.current)return void(m.current=!1);"touchstart"===(null==e?void 0:e.type)&&(m.current=!0);const l=i?null:b.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(r||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(r)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===g.current&&(g.current=()=>{x({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:n})},Z.current=setTimeout((()=>{g.current&&(g.current(),g.current=null)}),80)):x({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:n})}),[a,x]),S=i.useCallback((()=>{y({},{pulsate:!0})}),[y]),E=i.useCallback(((e,t)=>{if(clearTimeout(Z.current),"touchend"===(null==e?void 0:e.type)&&g.current)return g.current(),g.current=null,void(Z.current=setTimeout((()=>{E(e,t)})));g.current=null,f((e=>e.length>0?e.slice(1):e)),h.current=t}),[]);return i.useImperativeHandle(t,(()=>({pulsate:S,start:y,stop:E})),[S,y,E]),(0,w.jsx)(L,(0,o.Z)({className:(0,l.Z)(M.Z.root,s.root,u),ref:b},d,{children:(0,w.jsx)(R,{component:null,exit:!0,children:p})}))})),B=n(76694);const V=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],D=(0,u.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${B.Z.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});var W=i.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiButtonBase"}),{action:a,centerRipple:u=!1,children:v,className:h,component:m="button",disabled:Z=!1,disableRipple:g=!1,disableTouchRipple:b=!1,focusRipple:x=!1,LinkComponent:y="a",onBlur:S,onClick:E,onContextMenu:R,onDragLeave:C,onFocus:M,onFocusVisible:z,onKeyDown:k,onKeyUp:$,onMouseDown:T,onMouseLeave:I,onMouseUp:P,o