@abtnode/webapp 1.16.22-beta-079a9053 → 1.16.22-beta-5bf86cd3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/build/asset-manifest.json +48 -48
- package/build/index.html +1 -1
- package/build/service-worker.js +1 -1
- package/build/static/js/{1371.08ecc84e.chunk.js → 1371.4f86888b.chunk.js} +1 -1
- package/build/static/js/1524.3b0ec35f.chunk.js +1 -0
- package/build/static/js/{1685.c6f7a83f.chunk.js → 1685.24d88e27.chunk.js} +2 -2
- package/build/static/js/2168.62300f53.chunk.js +1 -0
- package/build/static/js/{2183.e57ce8a2.chunk.js → 2183.ddd3936e.chunk.js} +1 -1
- package/build/static/js/{2334.6c96ef7e.chunk.js → 2334.84a8e434.chunk.js} +1 -1
- package/build/static/js/2365.16f3dbc1.chunk.js +1 -0
- package/build/static/js/{2537.a919ce43.chunk.js → 2537.10cf10fb.chunk.js} +1 -1
- package/build/static/js/271.ebf7defb.chunk.js +1 -0
- package/build/static/js/2743.7ccb1ce1.chunk.js +1 -0
- package/build/static/js/2746.fd77f428.chunk.js +1 -0
- package/build/static/js/{2960.e4c10af0.chunk.js → 2960.dc7a03a7.chunk.js} +1 -1
- package/build/static/js/3058.7f0e2deb.chunk.js +1 -0
- package/build/static/js/{3135.f99a1aa8.chunk.js → 3135.06e7d03e.chunk.js} +1 -1
- package/build/static/js/{3216.4aabeb78.chunk.js → 3216.5aaf107a.chunk.js} +1 -1
- package/build/static/js/3883.0112051a.chunk.js +1 -0
- package/build/static/js/406.c80917a9.chunk.js +1 -0
- package/build/static/js/436.f127179d.chunk.js +1 -0
- package/build/static/js/4382.a5f73253.chunk.js +2 -0
- package/build/static/js/{2365.a3571172.chunk.js → 4494.765058da.chunk.js} +1 -1
- package/build/static/js/{4509.04d35bd4.chunk.js → 4509.3cdaa94a.chunk.js} +2 -2
- package/build/static/js/4549.eb1a0008.chunk.js +1 -0
- package/build/static/js/{4775.124a71e4.chunk.js → 4775.b81d9965.chunk.js} +1 -1
- package/build/static/js/4901.ea8e5819.chunk.js +1 -0
- package/build/static/js/5015.bfc1ea50.chunk.js +1 -0
- package/build/static/js/{5074.5643e827.chunk.js → 5074.217389e9.chunk.js} +1 -1
- package/build/static/js/5374.31d70f69.chunk.js +1 -0
- package/build/static/js/{5526.7f392e7e.chunk.js → 5526.9376db8c.chunk.js} +2 -2
- package/build/static/js/5760.a3d6922a.chunk.js +1 -0
- package/build/static/js/{5887.530ce24e.chunk.js → 5887.6dc2a410.chunk.js} +2 -2
- package/build/static/js/5914.67e3aeec.chunk.js +2 -0
- package/build/static/js/592.88e3bf00.chunk.js +2 -0
- package/build/static/js/{5979.4e4ebbf1.chunk.js → 5979.75079fe1.chunk.js} +1 -1
- package/build/static/js/6016.d86b229d.chunk.js +1 -0
- package/build/static/js/{6230.467a9016.chunk.js → 6230.3bb084aa.chunk.js} +1 -1
- package/build/static/js/6511.ee040676.chunk.js +1 -0
- package/build/static/js/{6931.4d7ae323.chunk.js → 6931.d2496fd4.chunk.js} +1 -1
- package/build/static/js/6950.e6d42b1a.chunk.js +1 -0
- package/build/static/js/{7657.60faa231.chunk.js → 7657.3acd5e07.chunk.js} +2 -2
- package/build/static/js/7687.5f2226d4.chunk.js +1 -0
- package/build/static/js/{7875.a04872ec.chunk.js → 7875.904b3a92.chunk.js} +2 -2
- package/build/static/js/{8219.33f29652.chunk.js → 8219.07ee6bf9.chunk.js} +1 -1
- package/build/static/js/{9249.96584fcc.chunk.js → 9249.7f9c1c36.chunk.js} +1 -1
- package/build/static/js/9327.4c7b52f8.chunk.js +1 -0
- package/build/static/js/95.c12b33e8.chunk.js +1 -0
- package/build/static/js/{9552.29d817f2.chunk.js → 9552.87dae9a5.chunk.js} +1 -1
- package/build/static/js/main.3831c581.js +2 -0
- package/build/static/js/{main.f7eb1485.js.LICENSE.txt → main.3831c581.js.LICENSE.txt} +1 -1
- package/package.json +1 -1
- package/build/static/js/1185.4672e754.chunk.js +0 -2
- package/build/static/js/1524.dd0af8c0.chunk.js +0 -1
- package/build/static/js/2168.0e7f9ae7.chunk.js +0 -1
- package/build/static/js/2529.061c5064.chunk.js +0 -1
- package/build/static/js/271.f7901bf2.chunk.js +0 -1
- package/build/static/js/2743.99b9b3be.chunk.js +0 -1
- package/build/static/js/3058.cea35b61.chunk.js +0 -1
- package/build/static/js/3137.93dab4d8.chunk.js +0 -1
- package/build/static/js/3883.062d06a9.chunk.js +0 -1
- package/build/static/js/406.37ef18fa.chunk.js +0 -1
- package/build/static/js/4382.f8edadf8.chunk.js +0 -2
- package/build/static/js/4549.295531bf.chunk.js +0 -1
- package/build/static/js/4901.7dab9c36.chunk.js +0 -1
- package/build/static/js/5015.c33215f2.chunk.js +0 -1
- package/build/static/js/5509.2e6eb7fd.chunk.js +0 -1
- package/build/static/js/5760.02d5f257.chunk.js +0 -1
- package/build/static/js/5914.fbf45688.chunk.js +0 -2
- package/build/static/js/6016.036a6045.chunk.js +0 -1
- package/build/static/js/6511.44e20630.chunk.js +0 -1
- package/build/static/js/6580.fc3c74eb.chunk.js +0 -1
- package/build/static/js/6950.9da8ac88.chunk.js +0 -1
- package/build/static/js/7687.c54b6889.chunk.js +0 -1
- package/build/static/js/9327.cefafd96.chunk.js +0 -1
- package/build/static/js/95.08f81beb.chunk.js +0 -1
- package/build/static/js/main.f7eb1485.js +0 -2
- /package/build/static/js/{1685.c6f7a83f.chunk.js.LICENSE.txt → 1685.24d88e27.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4382.f8edadf8.chunk.js.LICENSE.txt → 4382.a5f73253.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4509.04d35bd4.chunk.js.LICENSE.txt → 4509.3cdaa94a.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{5526.7f392e7e.chunk.js.LICENSE.txt → 5526.9376db8c.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{5887.530ce24e.chunk.js.LICENSE.txt → 5887.6dc2a410.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{5914.fbf45688.chunk.js.LICENSE.txt → 5914.67e3aeec.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1185.4672e754.chunk.js.LICENSE.txt → 592.88e3bf00.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7657.60faa231.chunk.js.LICENSE.txt → 7657.3acd5e07.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7875.a04872ec.chunk.js.LICENSE.txt → 7875.904b3a92.chunk.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[2168],{94464:(e,t,o)=>{o.d(t,{Z:()=>f});var r=o(55898),l=o.n(r),n=o(27156),a=o(23985),i=o(47685),s=o(96266);const c="index",d={tabs:"".concat(c,"-tabs"),tab:"".concat(c,"-tab")},u=(0,i.zo)(n.Z)((e=>{let{theme:t}=e;return{["& .".concat(d.tabs)]:{},["& .".concat(d.tab)]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}}));function f(e){let{tabs:t,current:o,onChange:r,...l}=e;return(0,s.jsx)(u,{scrollButtons:"auto",variant:"scrollable",value:o,onChange:(e,t)=>r(t),indicatorColor:"primary",...l,className:[d.tabs,l.className||""].join(" "),children:t.map((e=>(0,s.jsx)(a.Z,{className:d.tab,value:e.value,label:e.label,icon:e.icon||null},e.value)))})}f.propTypes={tabs:l().array.isRequired,current:l().string.isRequired,onChange:l().func.isRequired}},27773:(e,t,o)=>{var r=o(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=r(o(56930)),n=o(96266);t.default=(0,l.default)((0,n.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete")},83294:(e,t,o)=>{var r=o(71600);t.Z=void 0;var l=r(o(56930)),n=o(96266);t.Z=(0,l.default)((0,n.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert")},25506:(e,t,o)=>{o.d(t,{Z:()=>v});var r=o(31461),l=o(7896),n=o(5057),a=o(9978),i=o(91213),s=o(62773),c=o(42908),d=o(81937),u=o(38038),f=o(43070),p=o(96266);const b=["className","row"],h=(0,s.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.row&&t.row]}})((e=>{let{ownerState:t}=e;return(0,l.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),v=n.forwardRef((function(e,t){const o=(0,c.Z)({props:e,name:"MuiFormGroup"}),{className:n,row:s=!1}=o,v=(0,r.Z)(o,b),m=(0,u.Z)(),w=(0,f.Z)({props:o,muiFormControl:m,states:["error"]}),S=(0,l.Z)({},o,{row:s,error:w.error}),Z=(e=>{const{classes:t,row:o,error:r}=e,l={root:["root",o&&"row",r&&"error"]};return(0,i.Z)(l,d.y,t)})(S);return(0,p.jsx)(h,(0,l.Z)({className:(0,a.Z)(Z.root,n),ownerState:S,ref:t},v))}))},81937:(e,t,o)=>{o.d(t,{Z:()=>a,y:()=>n});var r=o(31821),l=o(18561);function n(e){return(0,l.Z)("MuiFormGroup",e)}const a=(0,r.Z)("MuiFormGroup",["root","row","error"])},23985:(e,t,o)=>{o.d(t,{Z:()=>S});var r=o(31461),l=o(7896),n=o(5057),a=o(9978),i=o(91213),s=o(66230),c=o(6285),d=o(42908),u=o(62773),f=o(31821),p=o(18561);function b(e){return(0,p.Z)("MuiTab",e)}const h=(0,f.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);var v=o(96266);const m=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],w=(0,u.ZP)(s.Z,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.label&&o.icon&&t.labelIcon,t["textColor".concat((0,c.Z)(o.textColor))],o.fullWidth&&t.fullWidth,o.wrapped&&t.wrapped]}})((e=>{let{theme:t,ownerState:o}=e;return(0,l.Z)({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},o.label&&{flexDirection:"top"===o.iconPosition||"bottom"===o.iconPosition?"column":"row"},{lineHeight:1.25},o.icon&&o.label&&{minHeight:72,paddingTop:9,paddingBottom:9,["& > .".concat(h.iconWrapper)]:(0,l.Z)({},"top"===o.iconPosition&&{marginBottom:6},"bottom"===o.iconPosition&&{marginTop:6},"start"===o.iconPosition&&{marginRight:t.spacing(1)},"end"===o.iconPosition&&{marginLeft:t.spacing(1)})},"inherit"===o.textColor&&{color:"inherit",opacity:.6,["&.".concat(h.selected)]:{opacity:1},["&.".concat(h.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"primary"===o.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(h.selected)]:{color:(t.vars||t).palette.primary.main},["&.".concat(h.disabled)]:{color:(t.vars||t).palette.text.disabled}},"secondary"===o.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(h.selected)]:{color:(t.vars||t).palette.secondary.main},["&.".concat(h.disabled)]:{color:(t.vars||t).palette.text.disabled}},o.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},o.wrapped&&{fontSize:t.typography.pxToRem(12)})})),S=n.forwardRef((function(e,t){const o=(0,d.Z)({props:e,name:"MuiTab"}),{className:s,disabled:u=!1,disableFocusRipple:f=!1,fullWidth:p,icon:h,iconPosition:S="top",indicator:Z,label:x,onChange:g,onClick:y,onFocus:C,selected:B,selectionFollowsFocus:M,textColor:N="inherit",value:R,wrapped:I=!1}=o,E=(0,r.Z)(o,m),P=(0,l.Z)({},o,{disabled:u,disableFocusRipple:f,selected:B,icon:!!h,iconPosition:S,label:!!x,fullWidth:p,textColor:N,wrapped:I}),W=(e=>{const{classes:t,textColor:o,fullWidth:r,wrapped:l,icon:n,label:a,selected:s,disabled:d}=e,u={root:["root",n&&a&&"labelIcon","textColor".concat((0,c.Z)(o)),r&&"fullWidth",l&&"wrapped",s&&"selected",d&&"disabled"],iconWrapper:["iconWrapper"]};return(0,i.Z)(u,b,t)})(P),T=h&&x&&n.isValidElement(h)?n.cloneElement(h,{className:(0,a.Z)(W.iconWrapper,h.props.className)}):h;return(0,v.jsxs)(w,(0,l.Z)({focusRipple:!f,className:(0,a.Z)(W.root,s),ref:t,role:"tab","aria-selected":B,disabled:u,onClick:e=>{!B&&g&&g(e,R),y&&y(e)},onFocus:e=>{M&&!B&&g&&g(e,R),C&&C(e)},ownerState:P,tabIndex:B?0:-1},E,{children:["top"===S||"start"===S?(0,v.jsxs)(n.Fragment,{children:[T,x]}):(0,v.jsxs)(n.Fragment,{children:[x,T]}),Z]}))}))},27156:(e,t,o)=>{o.d(t,{Z:()=>V});var r=o(31461),l=o(7896),n=o(5057),a=(o(97408),o(9978)),i=o(91213),s=o(78305),c=o(62773),d=o(42908),u=o(96366),f=o(50049);let p;function b(){if(p)return p;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),p="reverse",e.scrollLeft>0?p="default":(e.scrollLeft=1,0===e.scrollLeft&&(p="negative")),document.body.removeChild(e),p}function h(e,t){const o=e.scrollLeft;if("rtl"!==t)return o;switch(b()){case"negative":return e.scrollWidth-e.clientWidth+o;case"reverse":return e.scrollWidth-e.clientWidth-o;default:return o}}function v(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var m=o(61121),w=o(23406),S=o(96266);const Z=["onChange"],x={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var g=o(4601),y=o(50999),C=o(66230),B=o(31821),M=o(18561);function N(e){return(0,M.Z)("MuiTabScrollButton",e)}const R=(0,B.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),I=["className","slots","slotProps","direction","orientation","disabled"],E=(0,c.ZP)(C.Z,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.orientation&&t[o.orientation]]}})((e=>{let{ownerState:t}=e;return(0,l.Z)({width:40,flexShrink:0,opacity:.8,["&.".concat(R.disabled)]:{opacity:0}},"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:"rotate(".concat(t.isRtl?-90:90,"deg)")}})})),P=n.forwardRef((function(e,t){var o,n;const c=(0,d.Z)({props:e,name:"MuiTabScrollButton"}),{className:f,slots:p={},slotProps:b={},direction:h}=c,v=(0,r.Z)(c,I),m="rtl"===(0,u.Z)().direction,w=(0,l.Z)({isRtl:m},c),Z=(e=>{const{classes:t,orientation:o,disabled:r}=e,l={root:["root",o,r&&"disabled"]};return(0,i.Z)(l,N,t)})(w),x=null!=(o=p.StartScrollButtonIcon)?o:g.Z,C=null!=(n=p.EndScrollButtonIcon)?n:y.Z,B=(0,s.y)({elementType:x,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:w}),M=(0,s.y)({elementType:C,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:w});return(0,S.jsx)(E,(0,l.Z)({component:"div",className:(0,a.Z)(Z.root,f),ref:t,role:null,ownerState:w,tabIndex:null},v,{children:"left"===h?(0,S.jsx)(x,(0,l.Z)({},B)):(0,S.jsx)(C,(0,l.Z)({},M))}))}));var W=o(5862),T=o(18759),z=o(33897);const k=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],F=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,L=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,j=(e,t,o)=>{let r=!1,l=o(e,t);for(;l;){if(l===e.firstChild){if(r)return;r=!0}const t=l.disabled||"true"===l.getAttribute("aria-disabled");if(l.hasAttribute("tabindex")&&!t)return void l.focus();l=o(e,l)}},A=(0,c.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{["& .".concat(T.Z.scrollButtons)]:t.scrollButtons},{["& .".concat(T.Z.scrollButtons)]:o.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,o.vertical&&t.vertical]}})((e=>{let{ownerState:t,theme:o}=e;return(0,l.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{["& .".concat(T.Z.scrollButtons)]:{[o.breakpoints.down("sm")]:{display:"none"}}})})),H=(0,c.ZP)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.scroller,o.fixed&&t.fixed,o.hideScrollbar&&t.hideScrollbar,o.scrollableX&&t.scrollableX,o.scrollableY&&t.scrollableY]}})((e=>{let{ownerState:t}=e;return(0,l.Z)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})})),O=(0,c.ZP)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.flexContainer,o.vertical&&t.flexContainerVertical,o.centered&&t.centered]}})((e=>{let{ownerState:t}=e;return(0,l.Z)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})})),X=(0,c.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((e=>{let{ownerState:t,theme:o}=e;return(0,l.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:o.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(o.vars||o).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(o.vars||o).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})})),D=(0,c.ZP)((function(e){const{onChange:t}=e,o=(0,r.Z)(e,Z),a=n.useRef(),i=n.useRef(null),s=()=>{a.current=i.current.offsetHeight-i.current.clientHeight};return(0,m.Z)((()=>{const e=(0,f.Z)((()=>{const e=a.current;s(),e!==a.current&&t(a.current)})),o=(0,w.Z)(i.current);return o.addEventListener("resize",e),()=>{e.clear(),o.removeEventListener("resize",e)}}),[t]),n.useEffect((()=>{s(),t(a.current)}),[t]),(0,S.jsx)("div",(0,l.Z)({style:x,ref:i},o))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Y={};const V=n.forwardRef((function(e,t){const o=(0,d.Z)({props:e,name:"MuiTabs"}),c=(0,u.Z)(),p="rtl"===c.direction,{"aria-label":m,"aria-labelledby":Z,action:x,centered:g=!1,children:y,className:C,component:B="div",allowScrollButtonsMobile:M=!1,indicatorColor:N="primary",onChange:R,orientation:I="horizontal",ScrollButtonComponent:E=P,scrollButtons:V="auto",selectionFollowsFocus:q,slots:_={},slotProps:G={},TabIndicatorProps:J={},TabScrollButtonProps:K={},textColor:U="primary",value:Q,variant:$="standard",visibleScrollbar:ee=!1}=o,te=(0,r.Z)(o,k),oe="scrollable"===$,re="vertical"===I,le=re?"scrollTop":"scrollLeft",ne=re?"top":"left",ae=re?"bottom":"right",ie=re?"clientHeight":"clientWidth",se=re?"height":"width",ce=(0,l.Z)({},o,{component:B,allowScrollButtonsMobile:M,indicatorColor:N,orientation:I,vertical:re,scrollButtons:V,textColor:U,variant:$,visibleScrollbar:ee,fixed:!oe,hideScrollbar:oe&&!ee,scrollableX:oe&&!re,scrollableY:oe&&re,centered:g&&!oe,scrollButtonsHideMobile:!M}),de=(e=>{const{vertical:t,fixed:o,hideScrollbar:r,scrollableX:l,scrollableY:n,centered:a,scrollButtonsHideMobile:s,classes:c}=e,d={root:["root",t&&"vertical"],scroller:["scroller",o&&"fixed",r&&"hideScrollbar",l&&"scrollableX",n&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]};return(0,i.Z)(d,T.m,c)})(ce),ue=(0,s.y)({elementType:_.StartScrollButtonIcon,externalSlotProps:G.startScrollButtonIcon,ownerState:ce}),fe=(0,s.y)({elementType:_.EndScrollButtonIcon,externalSlotProps:G.endScrollButtonIcon,ownerState:ce});const[pe,be]=n.useState(!1),[he,ve]=n.useState(Y),[me,we]=n.useState(!1),[Se,Ze]=n.useState(!1),[xe,ge]=n.useState(!1),[ye,Ce]=n.useState({overflow:"hidden",scrollbarWidth:0}),Be=new Map,Me=n.useRef(null),Ne=n.useRef(null),Re=()=>{const e=Me.current;let t,o;if(e){const o=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:h(e,c.direction),scrollWidth:e.scrollWidth,top:o.top,bottom:o.bottom,left:o.left,right:o.right}}if(e&&!1!==Q){const e=Ne.current.children;if(e.length>0){const t=e[Be.get(Q)];0,o=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:o}},Ie=(0,W.Z)((()=>{const{tabsMeta:e,tabMeta:t}=Re();let o,r=0;if(re)o="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(o=p?"right":"left",t&&e){const l=p?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(p?-1:1)*(t[o]-e[o]+l)}const l={[o]:r,[se]:t?t[se]:0};if(isNaN(he[o])||isNaN(he[se]))ve(l);else{const e=Math.abs(he[o]-l[o]),t=Math.abs(he[se]-l[se]);(e>=1||t>=1)&&ve(l)}})),Ee=function(e){let{animation:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t?function(e,t,o){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{};const{ease:n=v,duration:a=300}=r;let i=null;const s=t[e];let c=!1;const d=()=>{c=!0},u=r=>{if(c)return void l(new Error("Animation cancelled"));null===i&&(i=r);const d=Math.min(1,(r-i)/a);t[e]=n(d)*(o-s)+s,d>=1?requestAnimationFrame((()=>{l(null)})):requestAnimationFrame(u)};s===o?l(new Error("Element already at target position")):requestAnimationFrame(u)}(le,Me.current,e,{duration:c.transitions.duration.standard}):Me.current[le]=e},Pe=e=>{let t=Me.current[le];re?t+=e:(t+=e*(p?-1:1),t*=p&&"reverse"===b()?-1:1),Ee(t)},We=()=>{const e=Me.current[ie];let t=0;const o=Array.from(Ne.current.children);for(let r=0;r<o.length;r+=1){const l=o[r];if(t+l[ie]>e){0===r&&(t=e);break}t+=l[ie]}return t},Te=()=>{Pe(-1*We())},ze=()=>{Pe(We())},ke=n.useCallback((e=>{Ce({overflow:null,scrollbarWidth:e})}),[]),Fe=(0,W.Z)((e=>{const{tabsMeta:t,tabMeta:o}=Re();if(o&&t)if(o[ne]<t[ne]){const r=t[le]+(o[ne]-t[ne]);Ee(r,{animation:e})}else if(o[ae]>t[ae]){const r=t[le]+(o[ae]-t[ae]);Ee(r,{animation:e})}})),Le=(0,W.Z)((()=>{oe&&!1!==V&&ge(!xe)}));n.useEffect((()=>{const e=(0,f.Z)((()=>{Me.current&&Ie()}));let t;const o=o=>{o.forEach((e=>{e.removedNodes.forEach((e=>{var o;null==(o=t)||o.unobserve(e)})),e.addedNodes.forEach((e=>{var o;null==(o=t)||o.observe(e)}))})),e(),Le()},r=(0,w.Z)(Me.current);let l;return r.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(Ne.current.children).forEach((e=>{t.observe(e)}))),"undefined"!==typeof MutationObserver&&(l=new MutationObserver(o),l.observe(Ne.current,{childList:!0})),()=>{var o,n;e.clear(),r.removeEventListener("resize",e),null==(o=l)||o.disconnect(),null==(n=t)||n.disconnect()}}),[Ie,Le]),n.useEffect((()=>{const e=Array.from(Ne.current.children),t=e.length;if("undefined"!==typeof IntersectionObserver&&t>0&&oe&&!1!==V){const o=e[0],r=e[t-1],l={root:Me.current,threshold:.99},n=new IntersectionObserver((e=>{we(!e[0].isIntersecting)}),l);n.observe(o);const a=new IntersectionObserver((e=>{Ze(!e[0].isIntersecting)}),l);return a.observe(r),()=>{n.disconnect(),a.disconnect()}}}),[oe,V,xe,null==y?void 0:y.length]),n.useEffect((()=>{be(!0)}),[]),n.useEffect((()=>{Ie()})),n.useEffect((()=>{Fe(Y!==he)}),[Fe,he]),n.useImperativeHandle(x,(()=>({updateIndicator:Ie,updateScrollButtons:Le})),[Ie,Le]);const je=(0,S.jsx)(X,(0,l.Z)({},J,{className:(0,a.Z)(de.indicator,J.className),ownerState:ce,style:(0,l.Z)({},he,J.style)}));let Ae=0;const He=n.Children.map(y,(e=>{if(!n.isValidElement(e))return null;const t=void 0===e.props.value?Ae:e.props.value;Be.set(t,Ae);const o=t===Q;return Ae+=1,n.cloneElement(e,(0,l.Z)({fullWidth:"fullWidth"===$,indicator:o&&!pe&&je,selected:o,selectionFollowsFocus:q,onChange:R,textColor:U,value:t},1!==Ae||!1!==Q||e.props.tabIndex?{}:{tabIndex:0}))})),Oe=(()=>{const e={};e.scrollbarSizeListener=oe?(0,S.jsx)(D,{onChange:ke,className:(0,a.Z)(de.scrollableX,de.hideScrollbar)}):null;const t=oe&&("auto"===V&&(me||Se)||!0===V);return e.scrollButtonStart=t?(0,S.jsx)(E,(0,l.Z)({slots:{StartScrollButtonIcon:_.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ue},orientation:I,direction:p?"right":"left",onClick:Te,disabled:!me},K,{className:(0,a.Z)(de.scrollButtons,K.className)})):null,e.scrollButtonEnd=t?(0,S.jsx)(E,(0,l.Z)({slots:{EndScrollButtonIcon:_.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:fe},orientation:I,direction:p?"left":"right",onClick:ze,disabled:!Se},K,{className:(0,a.Z)(de.scrollButtons,K.className)})):null,e})();return(0,S.jsxs)(A,(0,l.Z)({className:(0,a.Z)(de.root,C),ownerState:ce,ref:t,as:B},te,{children:[Oe.scrollButtonStart,Oe.scrollbarSizeListener,(0,S.jsxs)(H,{className:de.scroller,ownerState:ce,style:{overflow:ye.overflow,[re?"margin".concat(p?"Left":"Right"):"marginBottom"]:ee?void 0:-ye.scrollbarWidth},ref:Me,children:[(0,S.jsx)(O,{"aria-label":m,"aria-labelledby":Z,"aria-orientation":"vertical"===I?"vertical":null,className:de.flexContainer,ownerState:ce,onKeyDown:e=>{const t=Ne.current,o=(0,z.Z)(t).activeElement;if("tab"!==o.getAttribute("role"))return;let r="horizontal"===I?"ArrowLeft":"ArrowUp",l="horizontal"===I?"ArrowRight":"ArrowDown";switch("horizontal"===I&&p&&(r="ArrowRight",l="ArrowLeft"),e.key){case r:e.preventDefault(),j(t,o,L);break;case l:e.preventDefault(),j(t,o,F);break;case"Home":e.preventDefault(),j(t,null,F);break;case"End":e.preventDefault(),j(t,null,L)}},ref:Ne,role:"tablist",children:He}),pe&&je]}),Oe.scrollButtonEnd]}))}))},18759:(e,t,o)=>{o.d(t,{Z:()=>a,m:()=>n});var r=o(31821),l=o(18561);function n(e){return(0,l.Z)("MuiTabs",e)}const a=(0,r.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"])},4601:(e,t,o)=>{o.d(t,{Z:()=>n});o(5057);var r=o(57471),l=o(96266);const n=(0,r.Z)((0,l.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},50999:(e,t,o)=>{o.d(t,{Z:()=>n});o(5057);var r=o(57471),l=o(96266);const n=(0,r.Z)((0,l.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")},67654:(e,t,o)=>{var r=o(5057),l=o(77931);t.Z=function(e,t,o){if(!l.isBrowser)return[t,l.noop,l.noop];if(!e)throw new Error("useLocalStorage key may not be falsy");var n=o?o.raw?function(e){return e}:o.deserializer:JSON.parse,a=r.useRef((function(e){try{var r=o?o.raw?String:o.serializer:JSON.stringify,l=localStorage.getItem(e);return null!==l?n(l):(t&&localStorage.setItem(e,r(t)),t)}catch(i){return t}})),i=r.useState((function(){return a.current(e)})),s=i[0],c=i[1];r.useLayoutEffect((function(){return c(a.current(e))}),[e]);var d=r.useCallback((function(t){try{var r="function"===typeof t?t(s):t;if("undefined"===typeof r)return;var l=void 0;l=o?o.raw?"string"===typeof r?r:JSON.stringify(r):o.serializer?o.serializer(r):JSON.stringify(r):JSON.stringify(r),localStorage.setItem(e,l),c(n(l))}catch(i){}}),[e,c]),u=r.useCallback((function(){try{localStorage.removeItem(e),c(void 0)}catch(i){}}),[e,c]);return[s,d,u]}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[2183],{96499:(e,t,i)=>{i.r(t),i.d(t,{default:()=>S});var n,a=i(71171),s=i(5057),r=i(33518),o=i(15849),l=i(55898),d=i.n(l),c=i(5609),p=i(19577),f=i(2478),m=i(44067),u=i(44846),g=i(42761),x=i(75239),h=i(62681),j=i(29034),y=i(11750),Z=i(88092),b=i(26174),v=i(83580),N=i(67680),w=i(39529),k=i(39948),C=i(59662),
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[2183],{96499:(e,t,i)=>{i.r(t),i.d(t,{default:()=>S});var n,a=i(71171),s=i(5057),r=i(33518),o=i(15849),l=i(55898),d=i.n(l),c=i(5609),p=i(19577),f=i(2478),m=i(44067),u=i(44846),g=i(42761),x=i(75239),h=i(62681),j=i(29034),y=i(11750),Z=i(88092),b=i(26174),v=i(83580),N=i(67680),w=i(39529),k=i(39948),C=i(59662),M=i(28726),z=i(68420),R=i(7403),D=i(14491),L=i(63406),A=i(58238),_=i(96266);function U(e){let{api:t,paging:i,loading:n,notifications:a,updateNotifications:r,teamDid:l}=e;const{inService:d}=(0,A.h6)(),[U,P]=(0,s.useState)(!0),[S,T]=(0,s.useState)(!1),{t:F,locale:I}=(0,s.useContext)(z.RD),$=async e=>{d?await t.readBlockletNotifications({input:{id:e,teamDid:l}}):await t.readNotifications({input:{id:e}}),r()},B=U?a:a.filter((e=>!1===e.read)),O=a.filter((e=>!1===e.read)).length>0,W=e=>(0,_.jsxs)("div",{className:"title",children:[e.title," ",(0,_.jsx)("span",{className:"time-ago",title:(0,D.B2)(e.createdAt,I),children:(0,c.WU)(new Date(e.createdAt),(0,D.FF)(I))})]});return(0,_.jsxs)(q,{children:[(0,_.jsxs)(y.Z,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:[F("notification.title"),(0,_.jsxs)(y.Z,{component:"span",className:"notification-actions",children:[(0,_.jsx)(b.Z,{control:(0,_.jsx)(Z.Z,{checked:U,onChange:()=>P(!U),name:"showRead",color:"primary"}),label:F("notification.showRead")}),(0,_.jsx)(L.Z,{permission:d?"":"mutate_notification",role:d?D.Wf:[],children:O&&(0,_.jsxs)(M.Z,{disabled:S,onClick:async()=>{T(!0);const e=a.filter((e=>!1===e.read)).map((e=>e.id)).join(",");d?await t.readBlockletNotifications({input:{id:e,teamDid:l}}):await t.readNotifications({input:{id:e}}),r(),T(!1)},className:"",children:[S&&(0,_.jsx)(u.Z,{size:16,style:{marginRight:"1em"}}),F("notification.markAllAsRead")]})})]})]}),(0,_.jsx)(j.Z,{}),(0,_.jsxs)(p.Z,{className:"notification-list",children:[n&&(0,_.jsx)(u.Z,{size:[32,20],style:{opacity:"0.8",zIndex:1e4,position:"fixed",top:30,left:"50%",marginLeft:-16}}),0===B.length&&(0,_.jsx)(y.Z,{component:"p",variant:"body1",className:"notification-tip",children:F("notification.empty")}),B.length>0&&B.map((e=>e.action?(0,_.jsxs)(f.ZP,{component:o.Link,to:e.action,alignItems:"flex-start",disabled:e.read,children:[(0,_.jsx)(g.Z,{className:"list-item-avatar",children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(h.Z,{children:e.entityType.substr(0,1).toUpperCase()}),(0,_.jsx)(R.Z,{className:"notification-tag",status:e.severity})]})}),(0,_.jsx)(m.Z,{className:"list-item-text",classes:{secondary:"list-item-secondary-text"},primary:W(e),secondary:e.description}),!1===e.read&&(0,_.jsx)(v.Z,{children:(0,_.jsx)(x.Z,{title:F("notification.markAsRead"),children:(0,_.jsx)(N.Z,{edge:"end","aria-label":"delete",onClick:()=>$(e.id),size:"large",children:(0,_.jsx)(w.Z,{})})})})]},e.id):(0,_.jsxs)(f.ZP,{alignItems:"flex-start",disabled:e.read,children:[(0,_.jsx)(g.Z,{className:"list-item-avatar",children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(h.Z,{children:e.entityType.substr(0,1).toUpperCase()}),(0,_.jsx)(R.Z,{className:"notification-tag",status:e.severity})]})}),(0,_.jsx)(m.Z,{className:"list-item-text",classes:{secondary:"list-item-secondary-text"},primary:W(e),secondary:e.description}),!1===e.read&&(0,_.jsx)(v.Z,{children:(0,_.jsx)(x.Z,{title:F("notification.markAsRead"),children:(0,_.jsx)(N.Z,{edge:"end","aria-label":"delete",onClick:()=>$(e.id),size:"large",children:(0,_.jsx)(w.Z,{})})})})]},e.id)))]}),!!B.length&&i.pageCount>1&&(0,_.jsx)(k.Z,{mt:2,display:"flex",justifyContent:"flex-end",children:(0,_.jsx)(C.Z,{disabled:n,count:i.pageCount,page:i.page,onChange:(e,t)=>{r({page:t})}})})]})}const q=r.Z.div(n||(n=(0,a.Z)(["\n min-height: 60vh;\n\n .page-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n .notification-actions {\n width: auto;\n display: flex;\n justify-content: space-between;\n }\n }\n\n .page-content {\n margin-top: 16px;\n }\n\n .list-item-avatar {\n display: flex;\n flex-direction: column;\n align-items: center;\n min-width: 80px;\n\n .notification-tag {\n margin-top: 4px;\n }\n }\n\n .MuiListItem-root:not(.Mui-disabled) {\n .MuiAvatar-root {\n background: ",";\n }\n }\n\n .list-item-text {\n .title {\n display: flex;\n align-items: center;\n .time-ago {\n background: #bdbdbd;\n font-size: 11px;\n margin-left: 8px;\n color: #f7f8f8;\n border-radius: 3px;\n padding: 1px 4px;\n }\n }\n }\n .Mui-disabled .list-item-text .title .time-ago {\n background: #666;\n }\n\n .list-item-secondary-text {\n word-break: break-word;\n }\n"])),(e=>e.theme.palette.primary.light));U.propTypes={loading:d().bool,paging:d().objectOf(d().any),api:d().shape({readNotifications:d().func.isRequired,readBlockletNotifications:d().func.isRequired}).isRequired,notifications:d().arrayOf(d().shape({id:d().string,read:d().bool,entityType:d().string,title:d().string,createdAt:d().string,description:d().string}).isRequired).isRequired,updateNotifications:d().func.isRequired,teamDid:d().string},U.defaultProps={paging:!1,loading:!1,teamDid:""};var P=i(27690);function S(){const{api:e,data:t,paging:i,refresh:n,loading:a}=(0,P.nw)();return(0,_.jsx)(U,{paging:i,loading:a,api:e,notifications:t,updateNotifications:n})}},39529:(e,t,i)=>{var n=i(71600);t.Z=void 0;var a=n(i(56930)),s=i(96266);t.Z=(0,a.default)((0,s.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},96646:(e,t,i)=>{i.d(t,{Z:()=>s});i(5057);var n=i(57471),a=i(96266);const s=(0,n.Z)((0,a.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage")},54665:(e,t,i)=>{i.d(t,{Z:()=>s});i(5057);var n=i(57471),a=i(96266);const s=(0,n.Z)((0,a.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage")},5609:(e,t,i)=>{i.d(t,{WU:()=>d});var n=["second","minute","hour","day","week","month","year"];var a=["\u79d2","\u5206\u949f","\u5c0f\u65f6","\u5929","\u5468","\u4e2a\u6708","\u5e74"];var s={},r=function(e,t){s[e]=t},o=[60,60,24,7,365/7/12,12];function l(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}var d=function(e,t,i){var n=function(e,t){return(+(t?l(t):new Date)-+l(e))/1e3}(e,i&&i.relativeDate);return function(e,t){for(var i=e<0?1:0,n=e=Math.abs(e),a=0;e>=o[a]&&a<o.length;a++)e/=o[a];return(e=Math.floor(e))>(0===(a*=2)?9:1)&&(a+=1),t(e,a,n)[i].replace("%s",e.toString())}(n,function(e){return s[e]||s.en_US}(t))};r("en_US",(function(e,t){if(0===t)return["just now","right now"];var i=n[Math.floor(t/2)];return e>1&&(i+="s"),[e+" "+i+" ago","in "+e+" "+i]})),r("zh_CN",(function(e,t){if(0===t)return["\u521a\u521a","\u7247\u523b\u540e"];var i=a[~~(t/2)];return[e+" "+i+"\u524d",e+" "+i+"\u540e"]}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[2334],{22334:(e,n,t)=>{t.r(n),t.d(n,{default:()=>U});var s,a=t(71171),i=t(5057),o=t(33518),r=t(85493),l=t(15849),c=t(11750),d=t(22139),p=t(76005),h=t(39948),u=t(20870),m=t(31089),x=t(71767),f=t(64185),g=t(41105),v=t(56184),b=t(62681),w=t(28726),j=t(68420),Z=t(60829),S=t(43316),y=t(35432),P=t(12673),k=t(55898),C=t.n(k),N=t(96266);function z(e){let{list:n,width:t,height:s,cardSpace:a,onSelect:o,defaultIndex:r}=e;const[l,c]=(0,i.useState)(0),[d,p]=(0,i.useState)(0),h=(0,i.useRef)(null),u=e=>{if(e<0||e>n.length-1)return;c(e);const s=h.current.clientWidth;p(e*(t+a)-(s-t)/2+.5*a),o(e)};let m;(0,i.useEffect)((()=>{u(r);h.current.addEventListener("touchmove",(e=>e.preventDefault()),{passive:!1})}),[]);return(0,N.jsx)(L,{ref:h,onTouchStart:e=>{const n=e.touches[0];m=n.clientX},onTouchEnd:e=>{const n=e.changedTouches[0],t=m-n.clientX;Math.abs(t)>60&&u(t>0?l+1:l-1)},children:(0,N.jsx)("div",{className:"card-container",style:{transform:"translate(".concat(-d,"px, 0)")},children:n.map(((e,n)=>(0,N.jsx)("div",{className:"card-item ".concat(n===l?"selected":""),style:{width:t,height:s,margin:a/2},onClick:()=>u(n),children:(0,N.jsx)("div",{className:"card-content",dangerouslySetInnerHTML:{__html:e.src}})},e.id)))})})}const L=o.Z.div(s||(s=(0,a.Z)(["\n overflow: hidden;\n mask-image: linear-gradient(to left, transparent, black 3%, black 97%, transparent);\n overflow: hidden;\n .card-container {\n display: flex;\n white-space: nowrap;\n width: max-content;\n transition: all ease 0.3s;\n }\n .card-item {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n flex-shrink: 0;\n cursor: pointer;\n\n .card-content {\n pointer-events: none;\n max-width: 100%;\n max-height: 100%;\n width: auto;\n height: auto;\n outline: #526ded solid 0;\n transition: all ease 0.2s;\n box-shadow: rgba(0, 0, 0, 0.2) 0 0 10px;\n }\n &.selected {\n cursor: default;\n .card-content {\n outline: #526ded solid 5px;\n }\n }\n }\n"])));z.propTypes={list:C().array,width:C().number,height:C().number,cardSpace:C().number,onSelect:C().func,defaultIndex:C().number},z.defaultProps={list:"",width:300,height:400,cardSpace:40,onSelect:()=>{},defaultIndex:0};var I,H=t(17450),M=t(5766),T=t(70284);function W(e){let{icon:n,active:t,completed:s}=e;const a={1:(0,N.jsx)(f.Z,{className:"step-icon"}),2:(0,N.jsx)(g.Z,{className:"step-icon"}),3:(0,N.jsx)(v.Z,{className:"step-icon"})},i=["step-icon-w"];return t&&i.push("step-icon-w--active"),s&&i.push("step-icon-w--completed"),(0,N.jsx)("div",{className:i.join(" "),children:a[String(n)]})}const _=(0,o.Z)(d.Z)(I||(I=(0,a.Z)(["\n padding-top: 46px;\n padding-bottom: 46px;\n height: 100%;\n overflow: auto;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n @media (max-width: ","px) {\n display: block;\n }\n .header {\n text-align: center;\n margin-bottom: 24px;\n }\n\n .stepper {\n padding: 24px;\n height: auto;\n width: 100%;\n min-height: 640px;\n display: flex;\n flex-direction: column;\n\n .stepper-progress {\n padding: 0;\n flex: 0;\n margin-bottom: 24px;\n\n .MuiStepLabel-label.MuiStepLabel-alternativeLabel {\n margin-top: 8px;\n }\n\n .MuiStepConnector-alternativeLabel {\n top: 24px;\n }\n\n .MuiStepConnector-lineHorizontal {\n height: 3px;\n border: none;\n background-color: #eaeaf0;\n border-radius: 1px;\n }\n\n .step-icon-w {\n background-color: ",";\n z-index: 1;\n color: ",";\n width: 50px;\n height: 50px;\n display: flex;\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n .step-icon {\n font-size: 30px;\n }\n }\n\n .step-icon-w--active {\n background-color: ",";\n }\n\n .step-icon-w--completed {\n background-color: ",";\n }\n }\n\n .stepper-content {\n padding: 0 64px;\n flex: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 24px;\n\n .stepper-icon {\n margin-left: 40px;\n }\n\n .stepper-auth {\n padding: 0;\n\n .auth-title {\n margin-bottom: 16px;\n }\n }\n\n .stepper-tip {\n text-align: center;\n margin-bottom: 16px;\n }\n @media (max-width: ","px) {\n padding: 0;\n }\n }\n\n .stepper-actions {\n flex: 0;\n text-align: right;\n padding: 0 64px;\n display: none;\n .step-button {\n margin-right: 8px;\n }\n }\n\n .select-passport {\n width: 80%;\n @media (max-width: ","px) {\n width: 100%;\n }\n }\n\n .user-info {\n .name {\n font-weight: 500;\n font-size: 18px;\n line-height: 25px;\n color: #222222;\n }\n }\n }\n\n .connect {\n background: #fafafa;\n }\n"])),(e=>e.theme.breakpoints.values.sm),(e=>e.theme.palette.grey[500]),(e=>e.theme.palette.common.white),(e=>e.theme.palette.primary.main),(e=>e.theme.palette.secondary.main),(e=>e.theme.breakpoints.values.sm),(e=>e.theme.breakpoints.values.sm)),E=(0,M.Z)((function(e){let{SessionContext:n,webWalletUrl:s,createPassportSvg:a,passportColor:o}=e;const{api:d,session:f}=(0,i.useContext)(n),g=(0,P.Z)({user:null,passport:null,success:!1,activeStep:0}),{setPassportId:v,clearPassportId:k}=(0,T.Z)(),{t:C,locale:L}=(0,i.useContext)(j.RD),I=(0,r.useNavigate)(),{wallet:M}=(0,Z.Z)(),{searchParams:E}=new URL(window.location.href),R=()=>{g.activeStep++},A=e=>{g.user=e.user},D=e=>{null!==e&&void 0!==e&&e.passportId&&v(e.passportId),g.success=!0,R()},U=()=>{var e;if(M&&(()=>{const{searchParams:e}=new URL(window.location.href);return"1"===e.get("fromWallet")})())return void t.e(2365).then(t.t.bind(t,72365,23)).then((e=>{e.call("arcClosePage")}));try{f.logout()}catch(s){}const n=E.get("redirect");n?window.location.replace(n):((null===(e=window.env)||void 0===e?void 0:e.apiPrefix)||"").startsWith(y.WELLKNOWN_SERVICE_PATH_PREFIX)?I("".concat(y.WELLKNOWN_SERVICE_PATH_PREFIX,"/connect"),{replace:!0}):(k(),window.location.replace("/"))},V=[{label:C("lostPassport.selectPassport"),content:()=>g.user?(0,N.jsxs)(h.Z,{className:"select-passport",children:[(0,N.jsxs)(h.Z,{my:1,display:"flex",alignItems:"center",className:"user-info",children:[(0,N.jsx)(b.Z,{src:g.user.avatar,style:{width:48,height:48,backgroundColor:"transparent",marginRight:16}}),(0,N.jsxs)(h.Z,{children:[(0,N.jsx)(h.Z,{className:"name",children:g.user.fullName}),(0,N.jsx)(h.Z,{className:"did",mt:1,children:(0,N.jsx)(H.Z,{did:g.user.did})})]})]}),(0,N.jsx)("div",{children:(0,N.jsx)(z,{width:230,height:306,cardSpace:24,list:g.user.passportTypes.map((e=>({src:a({title:e.title,issuer:e.issuer.name,issuerDid:e.issuer.id,ownerDid:g.user.did,ownerName:g.user.fullName,ownerAvatarUrl:g.user.avatar,preferredColor:o||"auto"}),name:e.title,id:e.id}))),onSelect:e=>{return n={target:{value:g.user.passportTypes[e].name}},void(g.passport=n.target.value);var n},defaultIndex:0})}),(0,N.jsx)(h.Z,{textAlign:"center",children:(0,N.jsx)(w.Z,{variant:"contained",color:"primary",onClick:()=>{R()},disabled:!g.passport,children:C("common.next")})})]}):(0,N.jsx)(S.Z,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-list",forceConnected:!1,autoConnect:!1,checkFn:d.get,checkTimeout:6e5,webWalletUrl:s,onSuccess:A,locale:L,messages:{title:C("lostPassport.dialog.title"),scan:C("lostPassport.dialog.scan"),confirm:C("lostPassport.dialog.confirm"),success:C("lostPassport.dialog.success")}})},{label:C("lostPassport.receivePassport"),content:()=>{var e,n;const t={receiverDid:g.user.did,passportName:g.passport,teamDid:(null===(e=window)||void 0===e||null===(n=e.blocklet)||void 0===n?void 0:n.did)||""};return(0,N.jsx)(S.Z,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-issue",checkFn:d.get,checkTimeout:6e5,webWalletUrl:s,onSuccess:D,locale:L,messages:{title:"".concat(C("lostPassport.dialog.title")),scan:C("lostPassport.dialog.scan"),confirm:C("lostPassport.dialog.confirm"),success:C("lostPassport.dialog.success")},extraParams:t})}},{label:C("common.complete"),content:()=>(0,N.jsxs)(h.Z,{textAlign:"center",children:[(0,N.jsx)(h.Z,{mb:3,color:"success.main",children:(0,N.jsx)(p.Z,{style:{fontSize:60}})}),(0,N.jsx)(c.Z,{component:"p",variant:"body1",className:"subheader",children:C("issuePassport.dialog.success")}),(0,N.jsx)(w.Z,{style:{marginTop:40},variant:"contained",color:"primary",onClick:U,children:C("issuePassport.dialog.loginWithPassport")})]})}];return(0,N.jsx)(_,{children:(0,N.jsxs)("div",{className:"stepper",children:[(0,N.jsx)(u.Z,{className:"stepper-progress",alternativeLabel:!0,activeStep:g.activeStep,children:V.map((e=>{let{label:n}=e;return(0,N.jsx)(m.Z,{children:(0,N.jsx)(x.Z,{StepIconComponent:W,children:n})},n)}))}),(0,N.jsx)("div",{className:"stepper-content",children:V[g.activeStep].content()}),!g.success&&(0,N.jsx)(h.Z,{textAlign:"center",fontSize:12,children:(0,N.jsx)(l.Link,{to:"/",style:{color:"#4598FA"},children:C("lostPassport.return")})})]})})}));var R=t(25339),A=t(74094),D=t(75793);function U(){const{info:e}=(0,D.h6)(),n=(0,A.yP)(e);return(0,N.jsx)(E,{SessionContext:R.B3,webWalletUrl:n,createPassportSvg:n=>(0,A.Ju)(n,e),passportColor:"default"})}},5766:(e,n,t)=>{t.d(n,{Z:()=>c});var s=t(68420),a=t(77668),i=t.n(a),o=t(2586);const r={en:i()(o.Z),ar:()=>t.e(4465).then(t.bind(t,4465)).then((e=>i()(e.default))),de:()=>t.e(3803).then(t.bind(t,43803)).then((e=>i()(e.default))),es:()=>t.e(3930).then(t.bind(t,23930)).then((e=>i()(e.default))),fr:()=>t.e(2019).then(t.bind(t,82019)).then((e=>i()(e.default))),hi:()=>t.e(8590).then(t.bind(t,78768)).then((e=>i()(e.default))),id:()=>t.e(1575).then(t.bind(t,61575)).then((e=>i()(e.default))),ja:()=>t.e(233).then(t.bind(t,90233)).then((e=>i()(e.default))),ko:()=>t.e(8170).then(t.bind(t,48170)).then((e=>i()(e.default))),pt:()=>t.e(9586).then(t.bind(t,69586)).then((e=>i()(e.default))),ru:()=>t.e(1059).then(t.bind(t,81059)).then((e=>i()(e.default))),th:()=>t.e(5748).then(t.bind(t,55748)).then((e=>i()(e.default))),vi:()=>t.e(6906).then(t.bind(t,56906)).then((e=>i()(e.default))),"zh-TW":()=>t.e(4423).then(t.bind(t,64423)).then((e=>i()(e.default))),zh:()=>t.e(6944).then(t.bind(t,56944)).then((e=>i()(e.default)))};var l=t(96266);function c(e){return function(n){return(0,l.jsx)(s.Iw,{translations:r,children:(0,l.jsx)(e,{...n})})}}},76005:(e,n,t)=>{var s=t(71600);n.Z=void 0;var a=s(t(56930)),i=t(96266),o=(0,a.default)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");n.Z=o},56184:(e,n,t)=>{var s=t(71600);n.Z=void 0;var a=s(t(56930)),i=t(96266),o=(0,a.default)((0,i.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}),"Done");n.Z=o},41105:(e,n,t)=>{var s=t(71600);n.Z=void 0;var a=s(t(56930)),i=t(96266),o=(0,a.default)((0,i.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),"GetApp");n.Z=o},64185:(e,n,t)=>{var s=t(71600);n.Z=void 0;var a=s(t(56930)),i=t(96266),o=(0,a.default)((0,i.jsx)("path",{d:"M3 14h4v-4H3v4zm0 5h4v-4H3v4zM3 9h4V5H3v4zm5 5h13v-4H8v4zm0 5h13v-4H8v4zM8 5v4h13V5H8z"}),"ViewList");n.Z=o}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[2334],{22334:(e,n,t)=>{t.r(n),t.d(n,{default:()=>U});var s,a=t(71171),i=t(5057),o=t(33518),r=t(85493),l=t(15849),c=t(11750),d=t(22139),p=t(76005),h=t(39948),u=t(20870),m=t(31089),x=t(71767),f=t(64185),g=t(41105),v=t(56184),b=t(62681),w=t(28726),j=t(68420),Z=t(60829),S=t(43316),y=t(35432),P=t(12673),k=t(55898),C=t.n(k),N=t(96266);function z(e){let{list:n,width:t,height:s,cardSpace:a,onSelect:o,defaultIndex:r}=e;const[l,c]=(0,i.useState)(0),[d,p]=(0,i.useState)(0),h=(0,i.useRef)(null),u=e=>{if(e<0||e>n.length-1)return;c(e);const s=h.current.clientWidth;p(e*(t+a)-(s-t)/2+.5*a),o(e)};let m;(0,i.useEffect)((()=>{u(r);h.current.addEventListener("touchmove",(e=>e.preventDefault()),{passive:!1})}),[]);return(0,N.jsx)(L,{ref:h,onTouchStart:e=>{const n=e.touches[0];m=n.clientX},onTouchEnd:e=>{const n=e.changedTouches[0],t=m-n.clientX;Math.abs(t)>60&&u(t>0?l+1:l-1)},children:(0,N.jsx)("div",{className:"card-container",style:{transform:"translate(".concat(-d,"px, 0)")},children:n.map(((e,n)=>(0,N.jsx)("div",{className:"card-item ".concat(n===l?"selected":""),style:{width:t,height:s,margin:a/2},onClick:()=>u(n),children:(0,N.jsx)("div",{className:"card-content",dangerouslySetInnerHTML:{__html:e.src}})},e.id)))})})}const L=o.Z.div(s||(s=(0,a.Z)(["\n overflow: hidden;\n mask-image: linear-gradient(to left, transparent, black 3%, black 97%, transparent);\n overflow: hidden;\n .card-container {\n display: flex;\n white-space: nowrap;\n width: max-content;\n transition: all ease 0.3s;\n }\n .card-item {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n flex-shrink: 0;\n cursor: pointer;\n\n .card-content {\n pointer-events: none;\n max-width: 100%;\n max-height: 100%;\n width: auto;\n height: auto;\n outline: #526ded solid 0;\n transition: all ease 0.2s;\n box-shadow: rgba(0, 0, 0, 0.2) 0 0 10px;\n }\n &.selected {\n cursor: default;\n .card-content {\n outline: #526ded solid 5px;\n }\n }\n }\n"])));z.propTypes={list:C().array,width:C().number,height:C().number,cardSpace:C().number,onSelect:C().func,defaultIndex:C().number},z.defaultProps={list:"",width:300,height:400,cardSpace:40,onSelect:()=>{},defaultIndex:0};var I,M=t(17450),T=t(5766),W=t(70284);function _(e){let{icon:n,active:t,completed:s}=e;const a={1:(0,N.jsx)(f.Z,{className:"step-icon"}),2:(0,N.jsx)(g.Z,{className:"step-icon"}),3:(0,N.jsx)(v.Z,{className:"step-icon"})},i=["step-icon-w"];return t&&i.push("step-icon-w--active"),s&&i.push("step-icon-w--completed"),(0,N.jsx)("div",{className:i.join(" "),children:a[String(n)]})}const E=(0,o.Z)(d.Z)(I||(I=(0,a.Z)(["\n padding-top: 46px;\n padding-bottom: 46px;\n height: 100%;\n overflow: auto;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n @media (max-width: ","px) {\n display: block;\n }\n .header {\n text-align: center;\n margin-bottom: 24px;\n }\n\n .stepper {\n padding: 24px;\n height: auto;\n width: 100%;\n min-height: 640px;\n display: flex;\n flex-direction: column;\n\n .stepper-progress {\n padding: 0;\n flex: 0;\n margin-bottom: 24px;\n\n .MuiStepLabel-label.MuiStepLabel-alternativeLabel {\n margin-top: 8px;\n }\n\n .MuiStepConnector-alternativeLabel {\n top: 24px;\n }\n\n .MuiStepConnector-lineHorizontal {\n height: 3px;\n border: none;\n background-color: #eaeaf0;\n border-radius: 1px;\n }\n\n .step-icon-w {\n background-color: ",";\n z-index: 1;\n color: ",";\n width: 50px;\n height: 50px;\n display: flex;\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n .step-icon {\n font-size: 30px;\n }\n }\n\n .step-icon-w--active {\n background-color: ",";\n }\n\n .step-icon-w--completed {\n background-color: ",";\n }\n }\n\n .stepper-content {\n padding: 0 64px;\n flex: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 24px;\n\n .stepper-icon {\n margin-left: 40px;\n }\n\n .stepper-auth {\n padding: 0;\n\n .auth-title {\n margin-bottom: 16px;\n }\n }\n\n .stepper-tip {\n text-align: center;\n margin-bottom: 16px;\n }\n @media (max-width: ","px) {\n padding: 0;\n }\n }\n\n .stepper-actions {\n flex: 0;\n text-align: right;\n padding: 0 64px;\n display: none;\n .step-button {\n margin-right: 8px;\n }\n }\n\n .select-passport {\n width: 80%;\n @media (max-width: ","px) {\n width: 100%;\n }\n }\n\n .user-info {\n .name {\n font-weight: 500;\n font-size: 18px;\n line-height: 25px;\n color: #222222;\n }\n }\n }\n\n .connect {\n background: #fafafa;\n }\n"])),(e=>e.theme.breakpoints.values.sm),(e=>e.theme.palette.grey[500]),(e=>e.theme.palette.common.white),(e=>e.theme.palette.primary.main),(e=>e.theme.palette.secondary.main),(e=>e.theme.breakpoints.values.sm),(e=>e.theme.breakpoints.values.sm)),H=(0,T.Z)((function(e){let{SessionContext:n,webWalletUrl:s,createPassportSvg:a,passportColor:o}=e;const{api:d,session:f}=(0,i.useContext)(n),g=(0,P.Z)({user:null,passport:null,success:!1,activeStep:0}),{setPassportId:v,clearPassportId:k}=(0,W.Z)(),{t:C,locale:L}=(0,i.useContext)(j.RD),I=(0,r.useNavigate)(),{wallet:T}=(0,Z.Z)(),{searchParams:H}=new URL(window.location.href),R=()=>{g.activeStep++},A=e=>{g.user=e.user},D=e=>{null!==e&&void 0!==e&&e.passportId&&v(e.passportId),g.success=!0,R()},U=()=>{var e;if(T&&(()=>{const{searchParams:e}=new URL(window.location.href);return"1"===e.get("fromWallet")})())return void t.e(4494).then(t.t.bind(t,72365,23)).then((e=>{e.call("arcClosePage")}));try{f.logout()}catch(s){}const n=H.get("redirect");n?window.location.replace(n):((null===(e=window.env)||void 0===e?void 0:e.apiPrefix)||"").startsWith(y.WELLKNOWN_SERVICE_PATH_PREFIX)?I("".concat(y.WELLKNOWN_SERVICE_PATH_PREFIX,"/connect"),{replace:!0}):(k(),window.location.replace("/"))},V=[{label:C("lostPassport.selectPassport"),content:()=>g.user?(0,N.jsxs)(h.Z,{className:"select-passport",children:[(0,N.jsxs)(h.Z,{my:1,display:"flex",alignItems:"center",className:"user-info",children:[(0,N.jsx)(b.Z,{src:g.user.avatar,style:{width:48,height:48,backgroundColor:"transparent",marginRight:16}}),(0,N.jsxs)(h.Z,{children:[(0,N.jsx)(h.Z,{className:"name",children:g.user.fullName}),(0,N.jsx)(h.Z,{className:"did",mt:1,children:(0,N.jsx)(M.Z,{did:g.user.did})})]})]}),(0,N.jsx)("div",{children:(0,N.jsx)(z,{width:230,height:306,cardSpace:24,list:g.user.passportTypes.map((e=>({src:a({title:e.title,issuer:e.issuer.name,issuerDid:e.issuer.id,ownerDid:g.user.did,ownerName:g.user.fullName,ownerAvatarUrl:g.user.avatar,preferredColor:o||"auto"}),name:e.title,id:e.id}))),onSelect:e=>{return n={target:{value:g.user.passportTypes[e].name}},void(g.passport=n.target.value);var n},defaultIndex:0})}),(0,N.jsx)(h.Z,{textAlign:"center",children:(0,N.jsx)(w.Z,{variant:"contained",color:"primary",onClick:()=>{R()},disabled:!g.passport,children:C("common.next")})})]}):(0,N.jsx)(S.Z,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-list",forceConnected:!1,autoConnect:!1,checkFn:d.get,checkTimeout:6e5,webWalletUrl:s,onSuccess:A,locale:L,messages:{title:C("lostPassport.dialog.title"),scan:C("lostPassport.dialog.scan"),confirm:C("lostPassport.dialog.confirm"),success:C("lostPassport.dialog.success")}})},{label:C("lostPassport.receivePassport"),content:()=>{var e,n;const t={receiverDid:g.user.did,passportName:g.passport,teamDid:(null===(e=window)||void 0===e||null===(n=e.blocklet)||void 0===n?void 0:n.did)||""};return(0,N.jsx)(S.Z,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-issue",checkFn:d.get,checkTimeout:6e5,webWalletUrl:s,onSuccess:D,locale:L,messages:{title:"".concat(C("lostPassport.dialog.title")),scan:C("lostPassport.dialog.scan"),confirm:C("lostPassport.dialog.confirm"),success:C("lostPassport.dialog.success")},extraParams:t})}},{label:C("common.complete"),content:()=>(0,N.jsxs)(h.Z,{textAlign:"center",children:[(0,N.jsx)(h.Z,{mb:3,color:"success.main",children:(0,N.jsx)(p.Z,{style:{fontSize:60}})}),(0,N.jsx)(c.Z,{component:"p",variant:"body1",className:"subheader",children:C("issuePassport.dialog.success")}),(0,N.jsx)(w.Z,{style:{marginTop:40},variant:"contained",color:"primary",onClick:U,children:C("issuePassport.dialog.loginWithPassport")})]})}];return(0,N.jsx)(E,{children:(0,N.jsxs)("div",{className:"stepper",children:[(0,N.jsx)(u.Z,{className:"stepper-progress",alternativeLabel:!0,activeStep:g.activeStep,children:V.map((e=>{let{label:n}=e;return(0,N.jsx)(m.Z,{children:(0,N.jsx)(x.Z,{StepIconComponent:_,children:n})},n)}))}),(0,N.jsx)("div",{className:"stepper-content",children:V[g.activeStep].content()}),!g.success&&(0,N.jsx)(h.Z,{textAlign:"center",fontSize:12,children:(0,N.jsx)(l.Link,{to:"/",style:{color:"#4598FA"},children:C("lostPassport.return")})})]})})}));var R=t(25339),A=t(74094),D=t(75793);function U(){const{info:e}=(0,D.h6)(),n=(0,A.yP)(e);return(0,N.jsx)(H,{SessionContext:R.B3,webWalletUrl:n,createPassportSvg:n=>(0,A.Ju)(n,e),passportColor:"default"})}},5766:(e,n,t)=>{t.d(n,{Z:()=>c});var s=t(68420),a=t(77668),i=t.n(a),o=t(2586);const r={en:i()(o.Z),ar:()=>t.e(4465).then(t.bind(t,4465)).then((e=>i()(e.default))),de:()=>t.e(3803).then(t.bind(t,43803)).then((e=>i()(e.default))),es:()=>t.e(3930).then(t.bind(t,23930)).then((e=>i()(e.default))),fr:()=>t.e(2019).then(t.bind(t,82019)).then((e=>i()(e.default))),hi:()=>t.e(8590).then(t.bind(t,78768)).then((e=>i()(e.default))),id:()=>t.e(1575).then(t.bind(t,61575)).then((e=>i()(e.default))),ja:()=>t.e(233).then(t.bind(t,90233)).then((e=>i()(e.default))),ko:()=>t.e(8170).then(t.bind(t,48170)).then((e=>i()(e.default))),pt:()=>t.e(9586).then(t.bind(t,69586)).then((e=>i()(e.default))),ru:()=>t.e(1059).then(t.bind(t,81059)).then((e=>i()(e.default))),th:()=>t.e(5748).then(t.bind(t,55748)).then((e=>i()(e.default))),vi:()=>t.e(6906).then(t.bind(t,56906)).then((e=>i()(e.default))),"zh-TW":()=>t.e(4423).then(t.bind(t,64423)).then((e=>i()(e.default))),zh:()=>t.e(6944).then(t.bind(t,56944)).then((e=>i()(e.default)))};var l=t(96266);function c(e){return function(n){return(0,l.jsx)(s.Iw,{translations:r,children:(0,l.jsx)(e,{...n})})}}},76005:(e,n,t)=>{var s=t(71600);n.Z=void 0;var a=s(t(56930)),i=t(96266);n.Z=(0,a.default)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle")},56184:(e,n,t)=>{var s=t(71600);n.Z=void 0;var a=s(t(56930)),i=t(96266);n.Z=(0,a.default)((0,i.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done")},41105:(e,n,t)=>{var s=t(71600);n.Z=void 0;var a=s(t(56930)),i=t(96266);n.Z=(0,a.default)((0,i.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}),"GetApp")},64185:(e,n,t)=>{var s=t(71600);n.Z=void 0;var a=s(t(56930)),i=t(96266);n.Z=(0,a.default)((0,i.jsx)("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList")}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[2365,2611],{16580:(e,t,n)=>{n.r(t),n.d(t,{default:()=>J});var r=n(71171),o=n(5057),a=n(33518),i=n(85493),s=n(11750),l=n(94464),c=n(68420),d=n(42611),m=n(75793),u=n(96266);function p(){const{api:e,info:t}=(0,m.h6)();return(0,u.jsx)(d.default,{client:e,did:t.did})}var f=n(45603),h=n.n(f),v=n(90049),y=n.n(v),g=n(39948),x=n(55402),b=n(55222),Z=n(28768),j=n(75760),k=n(44846),P=n(35966),E=n(66506),D=n(35432),I=n(77277),w=n(86229),R=n(1722),O=n(80378),C=n(14491),L=n(38242),N=n(56169),S=n(1979),T=n(55898),_=n.n(T),z=n(50844),B=n(99154),F=n(844);const U=(0,z.Z)((e=>({root:{height:10},colorPrimary:{backgroundColor:e.palette.grey["light"===e.palette.mode?200:700]},bar:{backgroundColor:e.palette.secondary.main}})))(B.Z);function M(e){const{value:t}=e;return(0,u.jsxs)(g.Z,{display:"flex",alignItems:"center",mt:2,children:[(0,u.jsx)(g.Z,{width:"100%",style:{overflow:"hidden"},mr:1,children:(0,u.jsx)(U,{variant:"determinate",...e})}),(0,u.jsx)(g.Z,{minWidth:35,children:(0,u.jsx)(s.Z,{variant:"body2",color:"textSecondary",children:"".concat(Math.round(t),"%")})})]})}function Y(e){let{disk:t,platform:n}=e;const{t:r}=(0,o.useContext)(c.RD),a=[{id:1,className:"used",title:r("system.used"),metric:(0,C.RR)(t.used,n)},{id:2,className:"free",title:r("system.free"),metric:(0,C.RR)(t.free,n)},{id:3,className:"total",title:r("system.total"),metric:(0,C.RR)(t.total,n)}];return(0,u.jsx)(F.Z,{title:"".concat(r("common.disk")," (").concat(t.device,")"),value:(0,C.RR)(t.used,n),graph:(0,u.jsx)(g.Z,{mt:3,children:(0,u.jsx)(M,{value:t.used/t.total*100})}),description:a.map(((e,t)=>(0,u.jsxs)(g.Z,{sx:{marginLeft:0===t?0:2},children:[e.title,": ",e.metric]},e.title)))})}M.propTypes={value:_().number.isRequired},Y.propTypes={disk:_().shape({used:_().number,free:_().number,total:_().number,device:_().string}),platform:_().string},Y.defaultProps={disk:{used:0,free:0,total:1,device:""},platform:""};var q=n(67654),A=n(52926),K=n(52581),V=n(34937);const H={uptime:0,pid:-1,cpuUsage:0,memoryUsage:0},W="Blocklet Server";function G(e){let{initialBlocklets:t}=e;const{t:n,locale:r}=(0,c.PE)(),{api:a}=(0,m.h6)(),[i,l]=(0,q.Z)("runtime-view-interval",6),d=(0,o.useMemo)((()=>{const e=[];return e.push({type:"server",groupId:"server",groupName:W,id:"server:daemon",name:"Server (Daemon)",runtimeInfo:H}),e.push({type:"server",groupId:"server",groupName:W,id:"server:service",name:"Server (Service)",runtimeInfo:H}),t.forEach((t=>{(0,L.forEachBlockletSync)(t,((n,r)=>{let{id:o,ancestors:a}=r;n.runtimeInfo&&e.push({type:"blocklet",groupId:t.meta.did,groupName:(0,L.getDisplayName)(t),id:o,name:(0,L.getDisplayName)(n,!0),blocklet:t,component:n,runtimeInfo:n.runtimeInfo,ancestors:a})}))})),e}),[]),[p,f]=(0,o.useState)(d),[v,k]=(0,o.useState)({os:{platform:""},mem:{used:0,free:0,total:1},cpu:{cpus:[],currentLoad:1},disks:[],daemon:{},service:{}}),[P,T]=(0,o.useState)({cpu:[],mem:[],daemonMem:[],serviceMem:[]});(0,V.mU)(D.EVENTS.NODE_RUNTIME_INFO,(e=>{e.mem.total=e.mem.total||0,e.mem.used=e.mem.total-(e.mem.available||0),k(e),f((t=>t.map((t=>"server:daemon"===t.id?{...t,runtimeInfo:{...t.runtimeInfo,...e.daemon}}:"server:service"===t.id?{...t,runtimeInfo:{...t.runtimeInfo,...e.service}}:t))))})),(0,V.mU)(D.EVENTS.BLOCKLETS_RUNTIME_INFO,(e=>{e&&e.length?f((t=>t.map((t=>{const n=e.find((e=>e.componentId===t.id));return n?{...t,runtimeInfo:{...t.runtimeInfo,...n.runtimeInfo}}:t})))):console.error("incorrect blocklets runtime info format",e)}));const _=e=>{f((t=>t.filter((t=>t.groupId!==e.meta.did))))},z=async e=>{try{const{blocklet:t}=await a.getBlocklet({input:{did:e.meta.did,attachRuntimeInfo:!0}});"running"!==t.status&&_(t),f((e=>{const n=e.filter((e=>e.groupId!==t.meta.did));return(0,L.forEachBlockletSync)(t,((e,r)=>{let{id:o,ancestors:a}=r;e.runtimeInfo&&n.push({type:"blocklet",groupId:t.meta.did,groupName:(0,L.getDisplayName)(t),id:o,name:(0,L.getDisplayName)(e,!0),blocklet:t,component:e,runtimeInfo:e.runtimeInfo,ancestors:a})})),n}))}catch(t){w.Z.error(t.message)}};(0,V.mU)(I.BlockletEvents.removed,_),(0,V.mU)(I.BlockletEvents.startFailed,_),(0,V.mU)(I.BlockletEvents.statusChange,(e=>{"running"===e.status?z(e):_(e)})),(0,V.mU)(I.BlockletEvents.updated,z),(0,V.mU)(I.BlockletEvents.started,z);(0,o.useEffect)((()=>{a.getNodeRuntimeHistory({input:{hours:i}}).then((e=>{const t=e.history||[];T({cpu:t.map((e=>({date:e.date,value:e.cpu}))),mem:t.map((e=>({date:e.date,value:e.mem}))),daemonMem:t.map((e=>({date:e.date,value:e.daemonMem}))),serviceMem:t.map((e=>({date:e.date,value:e.serviceMem})))})})).catch((e=>{w.Z.error(e.message)}))}),[i]);const B=[{label:n("common.group"),name:"groupName",options:{customBodyRenderLite(e){const{type:t,blocklet:n,groupName:r}=p[e];return"server"===t?(0,u.jsxs)(g.Z,{display:"flex",alignItems:"center",children:[(0,u.jsx)(K.r,{width:"14",height:"14"}),(0,u.jsx)(g.Z,{ml:1,children:r})]}):(0,u.jsxs)(g.Z,{display:"flex",alignItems:"center",children:[(0,u.jsx)(R.Z,{size:14,blocklet:n}),(0,u.jsx)(g.Z,{ml:1,children:r})]})}}},{label:n("common.name"),name:"name",options:{customBodyRenderLite(e){const{type:t,name:n,component:r,ancestors:o}=p[e];return"server"===t?(0,u.jsxs)(g.Z,{display:"flex",alignItems:"center",children:[(0,u.jsx)(E.Z,{width:"14",height:"14"}),(0,u.jsx)(g.Z,{ml:1,children:n})]}):(0,u.jsxs)(g.Z,{display:"flex",alignItems:"center",children:[(0,u.jsx)(O.Z,{size:14,blocklet:r,ancestors:o}),(0,u.jsx)(g.Z,{ml:1,children:n})]})}}},{label:n("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite(e){const{runtimeInfo:t}=p[e];return n=t.uptime,h()(Number(n||0),{locale:(0,C.FF)(r)});var n}}},{label:n("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite(e){const{runtimeInfo:t}=p[e];return y()((null===t||void 0===t?void 0:t.memoryUsage)||0)},sortDirection:"asc"}},{label:n("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite(e){const{runtimeInfo:t}=p[e];return"".concat((t.cpuUsage||0).toFixed(1),"%")}}},{label:n("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid"},{label:n("blocklet.runtimeInfo.port"),name:"runtimeInfo.port"}];return(0,u.jsxs)("div",{children:[(0,u.jsxs)(g.Z,{display:"flex",justifyContent:"space-between",flexDirection:"row",mb:2,children:[(0,u.jsx)(s.Z,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},children:n("analytics.trend")}),(0,u.jsx)(Z.Z,{size:"small",exclusive:!0,value:i,onChange:(e,t)=>l(t),children:[1,3,6,12,24].map((e=>(0,u.jsxs)(b.Z,{value:e,children:[e,"H"]},e)))})]}),(0,u.jsxs)(x.ZP,{mb:4,container:!0,spacing:4,children:[(0,u.jsx)(x.ZP,{item:!0,lg:3,md:6,sm:6,xs:12,children:(0,u.jsx)(N.Z,{...v.cpu,history:P.cpu})},"cpu"),(0,u.jsx)(x.ZP,{item:!0,lg:3,md:6,sm:6,xs:12,children:(0,u.jsx)(S.Z,{...v.mem,history:P.mem})},"memory"),(0,u.jsx)(x.ZP,{item:!0,lg:3,md:6,sm:6,xs:12,children:(0,u.jsx)(S.Z,{title:"".concat(n("common.memory")," (Daemon)"),used:v.daemon.memoryUsage||0,history:P.daemonMem})},"memory-daemon"),(0,u.jsx)(x.ZP,{item:!0,lg:3,md:6,sm:6,xs:12,children:(0,u.jsx)(S.Z,{title:"".concat(n("common.memory")," (Service)"),instanceCount:v.service.instanceCount||0,used:v.service.memoryUsage||0,history:P.serviceMem})},"memory-service"),v.disks.map((e=>(0,u.jsx)(x.ZP,{item:!0,lg:3,md:6,sm:6,xs:12,children:(0,u.jsx)(Y,{disk:e,platform:v.os.platform})},"disk")))]}),(0,u.jsx)(j.Z,{className:"runtime-insight-list",title:n("analytics.detail"),locale:r,data:p,columns:B,options:{download:!1,filter:!1,print:!1,pagination:!1,rowsPerPage:100}})]})}function Q(){const{data:e,externalData:t,initialized:n}=(0,A.RJ)();if(!n)return(0,u.jsx)(P.Z,{relative:"parent",children:(0,u.jsx)(k.Z,{})});const r=[...e,...t]||[];return(0,u.jsx)(G,{initialBlocklets:r})}var X;function J(){const e=(0,i.useNavigate)(),{t:t}=(0,o.useContext)(c.RD),{tab:n="traffic"}=(0,i.useParams)(),r=[{label:t("common.traffic"),value:"traffic"},{label:t("common.runtime"),value:"runtime"}],a={traffic:p,runtime:Q},d=a[n]||a.traffic;return(0,u.jsxs)($,{children:[(0,u.jsx)(s.Z,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:t("common.analytics")}),(0,u.jsx)(l.Z,{tabs:r,current:n,onChange:t=>{e("/analytics/".concat(t))}}),(0,u.jsx)("div",{className:"page-content",children:(0,o.isValidElement)(d)?d:(0,u.jsx)(d,{})})]})}const $=a.Z.main(X||(X=(0,r.Z)(["\n .page-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .page-content {\n margin-top: 16px;\n }\n"])))},844:(e,t,n)=>{n.d(t,{Z:()=>p});var r,o=n(71171),a=n(55898),i=n.n(a),s=n(33518),l=n(38763),c=n(75392),d=n(11750),m=n(39948),u=n(96266);function p(e){let{style:t,title:n,value:r,graph:o,description:a}=e;return(0,u.jsx)(f,{children:(0,u.jsxs)(c.Z,{style:{...t},children:[(0,u.jsx)(d.Z,{sx:{fontSize:14},color:"text.secondary",children:n}),(0,u.jsx)(d.Z,{variant:"h5",component:"div",mt:1,children:r}),o,!!a&&(0,u.jsx)(m.Z,{display:"flex",sx:{fontSize:12,marginTop:3},color:"text.secondary",children:a})]})})}p.propTypes={style:i().object,title:i().node,value:i().node,graph:i().node,description:i().any},p.defaultProps={style:{},title:null,value:null,graph:null,description:null};const f=(0,s.Z)(l.Z)(r||(r=(0,o.Z)(["\n .card-content {\n height: 150px;\n }\n\n .card-sparkline {\n flex: 2;\n display: flex;\n position: relative;\n *[hidden] {\n display: none;\n }\n }\n .sparkline {\n stroke: ",";\n fill: ","1A;\n }\n .tooltip {\n position: absolute;\n background: rgba(0, 0, 0, 0.7);\n color: #fff;\n padding: 2px 5px;\n font-size: 12px;\n white-space: nowrap;\n z-index: 9999;\n }\n .sparkline--cursor {\n stroke: orange;\n }\n\n .sparkline--spot {\n fill: red;\n stroke: red;\n }\n"])),(e=>e.theme.palette.primary.main),(e=>e.theme.palette.primary.main))},52959:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(5057),o=n(55898),a=n.n(o),i=n(12673),s=n(28563),l=n(26089),c=n(844),d=n(96266);function m(e){let{id:t,title:n,current:o,description:a,data:m,dateFn:u,valueFn:p}=e;const f=(0,r.useRef)(null),h=(0,r.useRef)(null),v=(0,i.Z)({style:{top:0,left:0},hidden:!0,textContent:""}),[y,g]=(0,r.useState)(null),x=(0,s.Z)(y),b={onmousemove(e,t){const{date:n,value:r}=t;v.textContent="".concat(u(n),": ").concat(p(r)),v.style.top=-30,v.style.left=80,v.hidden=!1},onmouseout(){v.hidden=!0}};return(0,r.useEffect)((()=>{setTimeout((()=>{g(document.querySelector(".".concat(t))),setTimeout((()=>{f.current&&(0,l.Z)(f.current,m||[],b)}),400)}))}),[m]),(0,d.jsx)(c.Z,{title:n,value:o,graph:(0,d.jsxs)("div",{className:"card-sparkline ".concat(t),style:{marginTop:16},children:[(0,d.jsx)("svg",{ref:f,className:"sparkline",width:(null===x||void 0===x?void 0:x.width)||100,height:30,strokeWidth:"2"}),(0,d.jsx)("span",{className:"tooltip",ref:h,hidden:v.hidden,style:{...v.style},children:v.textContent})]}),description:a})}m.propTypes={id:a().string.isRequired,title:a().string.isRequired,current:a().any.isRequired,description:a().any,data:a().array,dateFn:a().func,valueFn:a().func},m.defaultProps={description:null,data:[],dateFn:e=>e,valueFn:e=>e}},56169:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(5057),o=n(55898),a=n.n(o),i=n(68420),s=n(52959),l=n(14491),c=n(96266);const d=e=>"".concat(e,"%");function m(e){let{cpus:t,currentLoad:n,history:o}=e;const{t:a,locale:m}=(0,r.useContext)(i.RD);return(0,c.jsx)(s.Z,{id:"cpu-sparkline",title:a("common.cpu"),current:"".concat(Math.floor(n||0),"%"),data:o,description:"".concat(a("system.cores"),": ").concat((null===t||void 0===t?void 0:t.length)||0),dateFn:e=>(0,l.mr)(e,"HH:mm:ss",m),valueFn:d})}m.propTypes={cpus:a().array,currentLoad:a().number,history:a().array},m.defaultProps={cpus:[],currentLoad:0,history:[]}},1979:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(55898),o=n.n(r),a=n(90049),i=n.n(a),s=n(39948),l=n(68420),c=n(52959),d=n(14491),m=n(96266);function u(e){let{instanceCount:t,title:n,total:r,used:o,history:a}=e;const{t:u,locale:p}=(0,l.PE)(),f=!!r,h=r-o,v=f?"(".concat(Math.floor(o/r*100),"%)"):"",y=[];return t&&y.push({title:u("system.instances"),metric:t}),y.push({title:u("system.used"),metric:i()(o)}),f&&y.push({title:u("system.free"),metric:i()(h)},{title:u("system.total"),metric:i()(r)}),(0,m.jsx)(c.Z,{id:"mem-sparkline",title:n||u("common.memory"),current:"".concat(i()(Math.floor(o||0))," ").concat(v),data:a,description:y.map(((e,t)=>(0,m.jsxs)(s.Z,{sx:{marginLeft:0===t?0:2},children:[e.title,": ",e.metric]},e.title))),dateFn:e=>(0,d.mr)(e,"HH:mm:ss",p),valueFn:i()})}u.propTypes={title:o().string,instanceCount:o().number,total:o().number,used:o().number,history:o().array},u.defaultProps={title:"",instanceCount:null,total:null,used:null,history:[]}},42611:(e,t,n)=>{n.r(t),n.d(t,{default:()=>q,getDefaultRanges:()=>Y});var r=n(5057),o=n(1577),a=n.n(o),i=n(6465),s=n.n(i),l=n(6352),c=n.n(l),d=n(90049),m=n.n(d),u=n(74511),p=n(96181),f=n(93938),h=n(44846),v=n(55402),y=n(11750),g=n(56556),x=n(67680),b=n(11819),Z=n(13811),j=n(49204),k=n(89828),P=n(20425),E=n(34862),D=n(68420),I=n(35432),w=n(87364),R=n(39458),O=n(4903),C=n(44926),L=n(90298),N=n(43713),S=n(59497),T=n(9732),_=n(13379),z=n(14491),B=n(58238),F=n(52959),U=n(96266);const M=s()(0),Y=(e,t)=>[{label:"This Week",startDate:(0,w.Z)(e,{locale:t}),endDate:(0,R.Z)(e,{locale:t})},{label:"Last Week",startDate:(0,w.Z)((0,O.Z)(e,-1),{locale:t}),endDate:(0,R.Z)((0,O.Z)(e,-1),{locale:t})},{label:"Last 7 Days",startDate:(0,O.Z)(e,-1),endDate:e},{label:"This Month",startDate:(0,C.Z)(e),endDate:(0,L.Z)(e)},{label:"Last Month",startDate:(0,C.Z)((0,N.Z)(e,-1)),endDate:(0,L.Z)((0,N.Z)(e,-1))},{label:"This Year",startDate:(0,S.Z)(e),endDate:(0,T.Z)(e)},{label:"Last Year",startDate:(0,S.Z)((0,_.Z)(e,-1)),endDate:(0,T.Z)((0,_.Z)(e,-1))}];function q(e){let{client:t,did:n}=e;const o=a()().subtract(1,"day").toDate(),{info:i,inService:s}=(0,B.h6)(),{t:l,locale:d}=(0,D.PE)(),[w,R]=(0,r.useState)(null),[O,C]=(0,r.useState)(!1),[L,N]=(0,r.useState)(o),[S,T]=(0,r.useState)({startDate:a()().subtract(30,"day").toDate(),endDate:o}),_=(0,u.Z)((async()=>(await t.getTrafficInsights({input:{did:n,startDate:a()(S.startDate).format("YYYY-MM-DD"),endDate:a()(S.endDate).format("YYYY-MM-DD")}})).list));(0,r.useEffect)((()=>{_.loading||S.startDate&&S.endDate&&_.retry()}),[S]);const q=e=>{R(w?null:e.currentTarget)},A=_.value||[],{loading:K,error:V}=_;if(!A.length&&K)return(0,U.jsx)(h.Z,{});if(V)return(0,U.jsx)(f.Z,{severity:"error",children:(0,z.Z)(V)});const H={totalRequests:M,validRequests:M,failedRequests:M,uniqueVisitors:M,uniqueFiles:M,uniqueReferrers:M,uniqueNotFound:M,uniqueStaticFiles:M,logSize:m(),bandwidth:m()},W=Object.keys(H).map((e=>({id:"".concat(e,"_chart"),title:l("analytics.traffic.".concat(e)),current:A.length?H[e](A[0][e]):0,data:A.map((t=>({date:t.date,value:t[e]}))).reverse(),dateFn:M,valueFn:H[e]}))),G=Boolean(w),Q=G?"date-range-picker-popover":void 0,X=s?I.WELLKNOWN_SERVICE_PATH_PREFIX:i.routing.adminPath,J=c()(window.location.origin,X,"/api/analytics/traffic?date=".concat(a()(L).format("YYYY-MM-DD"),"&did=").concat(n));return(0,U.jsxs)("div",{children:[(0,U.jsxs)(y.Z,{component:"div",variant:"h5",className:"page-header",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mb:2,children:[l("analytics.trend"),(0,U.jsxs)(g.Z,{onClick:q,variant:"outlined",size:"small",color:"secondary",children:[(0,z.pz)(S.startDate,d)," - ",(0,z.pz)(S.endDate,d)]})]}),(0,U.jsx)(b.ZP,{id:Q,open:G,anchorEl:w,onClose:()=>R(null),anchorOrigin:{vertical:"bottom",horizontal:"left"},children:(0,U.jsx)(j.D,{open:!0,toggle:q,maxDate:o,definedRanges:Y(L),onChange:e=>{T(e),R(null)}})}),(0,U.jsx)(v.ZP,{container:!0,spacing:4,children:W.map((e=>(0,U.jsx)(v.ZP,{item:!0,lg:3,md:6,sm:6,xs:12,children:(0,U.jsx)(F.Z,{...e})},e.id)))}),(0,U.jsxs)(y.Z,{component:"div",variant:"h5",className:"page-header",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mt:4,mb:1,children:[l("analytics.detail"),(0,U.jsxs)("span",{children:[O&&(0,U.jsx)(x.Z,{onClick:()=>{window.open(J)},style:{marginRight:32},children:(0,U.jsx)(Z.Z,{})}),(0,U.jsx)(E._,{dateAdapter:P.y,children:(0,U.jsx)(k.M,{disableFuture:!0,format:"ll",value:a()(L),onChange:e=>{N(e.toDate()),C(!1)},slotProps:{textField:{size:"small"}}})})]})]}),(0,U.jsx)(p.Z,{url:J,width:"100%",height:"100%",frameBorder:0,onLoad:()=>C(!0),styles:{border:0,minHeight:"400vh"}})]})}},1722:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(55898),o=n.n(r),a=n(62681),i=n(72333),s=n(77277),l=n(49522),c=n(96266);function d(e){let{blocklet:t,style:n,size:r,...o}=e;const{logoUrl:d}=(0,l.Z)({blocklet:t}),{variant:m}=o;let u=(0,c.jsx)("img",{src:d,alt:"",style:{width:r}});if(!t.meta.logo){var p;(null===(p=(t.configs||[]).find((e=>e.key===s.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE)))||void 0===p?void 0:p.value)||(u=(0,c.jsx)(i.Z,{did:t.meta.did||"",responsive:!0}))}return(0,c.jsx)(a.Z,{variant:m||"square",style:Object.assign({backgroundColor:"transparent",width:r,height:r,borderRadius:10},n),...o,children:u})}d.propTypes={blocklet:o().object.isRequired,style:o().object,size:o().oneOfType([o().number,o().string])},d.defaultProps={style:{},size:40}},80378:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(55898),o=n.n(r),a=n(62681),i=n(72333),s=n(6352),l=n.n(s),c=n(35432),d=n(58238),m=n(14491);var u=n(96266);function p(e){let{blocklet:t,style:n,size:r,ancestors:o,...s}=e;const p=(0,d.h6)(),{logoUrl:f,inService:h}=function(e){var t;let{blocklet:n,ancestors:r=[]}=e;const o=(0,d.h6)(),{inService:a}=o,i="?v=".concat(null===n||void 0===n||null===(t=n.meta)||void 0===t?void 0:t.version).concat((0,m.XN)(null===n||void 0===n?void 0:n.status)?"~":"");let s=a?l()(m.zn,c.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-bundle",i):l()(o.imgPrefix,"blocklet.png");if("registry"===n.source&&n.deployedFrom&&n.meta.logo)s=l()(n.deployedFrom,(0,m.lk)(n.meta.bundleDid,n.meta.logo),i);else{const e=window.env.apiPrefix||"/",t=r.concat(n),o=a?t.slice(1):t;s=l()(e,"/blocklet/logo-bundle".concat(o.map((e=>"/".concat(e.meta.did))).join("")),i)}return{logoUrl:s,inService:a}}({blocklet:t,ancestors:o}),{variant:v}=s,y=h?()=>{}:e=>{e.target.src="".concat(p.imgPrefix,"/blocklet.png")};let g=(0,u.jsx)("img",{src:f,onError:y,alt:t.meta.name,style:{width:r}});return t.meta.logo||(g=(0,u.jsx)(i.Z,{did:t.meta.did||"",responsive:!0})),(0,u.jsx)(a.Z,{variant:v||"square",style:Object.assign({backgroundColor:"transparent",width:r,height:r,borderRadius:10},n),...s,children:g})}p.propTypes={blocklet:o().object.isRequired,style:o().object,size:o().oneOfType([o().number,o().string]),ancestors:o().array},p.defaultProps={style:{},size:40,ancestors:[]}},49522:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(6352),o=n.n(r),a=n(77277),i=n(58238),s=n(14491);const l=(e,t)=>{let n="?v=";var r;t?n+=(0,s.Qi)(t):n+="".concat(null===e||void 0===e||null===(r=e.meta)||void 0===r?void 0:r.version).concat((0,s.wS)(null===e||void 0===e?void 0:e.status)?"~":"");return n};function c(e){var t,n,r,s;let{blocklet:c}=e;const{inService:d}=(0,i.h6)(),m=null===(t=((null===c||void 0===c?void 0:c.environments)||[]).find((e=>e.key===a.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE)))||void 0===t?void 0:t.value,u=null===(n=((null===c||void 0===c?void 0:c.environments)||[]).find((e=>e.key===a.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT)))||void 0===n?void 0:n.value,p=null===(r=((null===c||void 0===c?void 0:c.environments)||[]).find((e=>e.key===a.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_FAVICON)))||void 0===r?void 0:r.value,f=(null===(s=window.env)||void 0===s?void 0:s.apiPrefix)||"/";return{logoUrl:o()(f,"/blocklet/logo/".concat(d?"":c.meta.did),l(c,m)),rectLogoUrl:o()(f,"/blocklet/logo-rect/".concat(d?"":c.meta.did),l(c,u)),faviconUrl:o()(f,"/blocklet/logo-favicon/".concat(d?"":c.meta.did),l(c,p))}}},66506:(e,t,n)=>{t.Z=void 0;(r=n(5057))&&r.__esModule;var r,o=n(96266);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(e){return(0,o.jsxs)("svg",i(i({},e),{},{children:[(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.083 3.2c0-.619.501-1.12 1.12-1.12h25.6c.619 0 1.12.501 1.12 1.12v10.24a1.12 1.12 0 0 1-1.12 1.12h-25.6a1.12 1.12 0 0 1-1.12-1.12V3.2zm2.24 1.12v8h23.36v-8H4.323zm-2.24 14.24c0-.619.501-1.12 1.12-1.12h25.6c.619 0 1.12.501 1.12 1.12V28.8a1.12 1.12 0 0 1-1.12 1.12h-25.6a1.12 1.12 0 0 1-1.12-1.12V18.56zm2.24 1.12v8h23.36v-8H4.323z",fill:"currentColor"}),(0,o.jsx)("path",{d:"M8.963 7.04h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64V7.68a.64.64 0 0 0-.64-.64zm0 15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64v-1.28a.64.64 0 0 0-.64-.64zm5.12-15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64V7.68a.64.64 0 0 0-.64-.64zm0 15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64v-1.28a.64.64 0 0 0-.64-.64z",fill:"currentColor"})]}))};l.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},l.displayName="server";var c=l;t.Z=c},50844:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(7896),o=n(31461),a=n(5057),i=n(56129),s=n.n(i),l=n(92877);var c=n(95335),d=n(96266);const m=["defaultTheme","withTheme","name"],u=["classes"],p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=>{const{defaultTheme:i,withTheme:p=!1,name:f}=t,h=(0,o.Z)(t,m);let v=f;const y=(0,l.Z)(e,(0,r.Z)({defaultTheme:i,Component:n,name:f||n.displayName,classNamePrefix:v},h)),g=a.forwardRef((function(e,t){const a=(0,o.Z)(e,u),s=y((0,r.Z)({},n.defaultProps,e));let l,m=a;return("string"===typeof f||p)&&(l=(0,c.Z)()||i,f&&(m=function(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n]||!t.components[n].defaultProps)return o;const a=(0,r.Z)({},o),i=t.components[n].defaultProps;let s;for(s in i)void 0===a[s]&&(a[s]=i[s]);return a}({theme:l,name:f,props:a})),p&&!m.theme&&(m.theme=l)),(0,d.jsx)(n,(0,r.Z)({ref:t,classes:s},m))}));return s()(g,n),g}}},12617:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(5057);function o(e){return r.Children.toArray(e).filter((e=>r.isValidElement(e)))}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[2537],{82638:(n,t,e)=>{e.d(t,{Z:()=>u});var o,i=e(71171),d=e(33518),l=e(47020),r=e(57201),a=e(96266);const u=(0,d.Z)((n=>{let{children:t,...e}=n;return(0,a.jsx)(l.Z,{...e,id:"outlined-basic",variant:"outlined",InputProps:{startAdornment:(0,a.jsx)(r.default,{})},size:"small",children:t})}))(o||(o=(0,i.Z)(["\n .MuiOutlinedInput-root {\n color: #999;\n &.MuiInputBase-adornedStart .MuiSvgIcon-root {\n color: #bfbfbf;\n }\n opacity: 1;\n border-radius: 36px;\n background: #f8f8f8;\n padding-left: 16px;\n input {\n padding-left: 8px;\n font-weight: bold;\n &::placeholder {\n opacity: 1;\n color: #bfbfbf;\n }\n padding-top: 8.5px;\n padding-bottom: 8.5px;\n }\n }\n\n .MuiOutlinedInput-notchedOutline,\n .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline,\n .Mui-focused .MuiOutlinedInput-notchedOutline {\n border-color: #eee;\n border-width: 1px;\n }\n"])))},18901:(n,t,e)=>{e.d(t,{Z:()=>d});var o,i=e(71171);const d=e(33518).Z.div(o||(o=(0,i.Z)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-size: 14px;\n .left,\n .right {\n }\n .right {\n display: flex;\n align-items: center;\n }\n .tabs {\n .MuiButton-root {\n border: none;\n color: #999;\n &.active {\n color: #222;\n }\n }\n }\n\n @media (max-width: 600px) {\n display: block;\n .right {\n margin-top: 12px;\n }\n }\n"])))},57201:(n,t,e)=>{var o=e(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(e(56930)),d=e(96266)
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[2537],{82638:(n,t,e)=>{e.d(t,{Z:()=>u});var o,i=e(71171),d=e(33518),l=e(47020),r=e(57201),a=e(96266);const u=(0,d.Z)((n=>{let{children:t,...e}=n;return(0,a.jsx)(l.Z,{...e,id:"outlined-basic",variant:"outlined",InputProps:{startAdornment:(0,a.jsx)(r.default,{})},size:"small",children:t})}))(o||(o=(0,i.Z)(["\n .MuiOutlinedInput-root {\n color: #999;\n &.MuiInputBase-adornedStart .MuiSvgIcon-root {\n color: #bfbfbf;\n }\n opacity: 1;\n border-radius: 36px;\n background: #f8f8f8;\n padding-left: 16px;\n input {\n padding-left: 8px;\n font-weight: bold;\n &::placeholder {\n opacity: 1;\n color: #bfbfbf;\n }\n padding-top: 8.5px;\n padding-bottom: 8.5px;\n }\n }\n\n .MuiOutlinedInput-notchedOutline,\n .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline,\n .Mui-focused .MuiOutlinedInput-notchedOutline {\n border-color: #eee;\n border-width: 1px;\n }\n"])))},18901:(n,t,e)=>{e.d(t,{Z:()=>d});var o,i=e(71171);const d=e(33518).Z.div(o||(o=(0,i.Z)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-size: 14px;\n .left,\n .right {\n }\n .right {\n display: flex;\n align-items: center;\n }\n .tabs {\n .MuiButton-root {\n border: none;\n color: #999;\n &.active {\n color: #222;\n }\n }\n }\n\n @media (max-width: 600px) {\n display: block;\n .right {\n margin-top: 12px;\n }\n }\n"])))},57201:(n,t,e)=>{var o=e(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(e(56930)),d=e(96266);t.default=(0,i.default)((0,d.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search")}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[271],{44919:(e,t,r)=>{var n=r(71600);t.Z=void 0;var o=n(r(56930)),a=r(96266);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},49390:(e,t,r)=>{var n=r(71600);t.Z=void 0;var o=n(r(56930)),a=r(96266);t.Z=(0,o.default)((0,a.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown")},47595:(e,t,r)=>{var n=r(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(56930)),a=r(96266);t.default=(0,o.default)((0,a.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline")},57201:(e,t,r)=>{var n=r(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(56930)),a=r(96266);t.default=(0,o.default)((0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search")},39434:(e,t,r)=>{r.d(t,{Z:()=>k});var n=r(7896),o=r(31461),a=r(5057),i=(r(97408),r(9978)),s=r(91213),l=r(78305),c=r(62773),u=r(42908),f=r(11750),p=r(66685),d=r(57471),h=r(96266);const v=(0,d.Z)((0,h.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");var y=r(66230);const m=["slots","slotProps"],g=(0,c.ZP)(y.Z)((e=>{let{theme:t}=e;return(0,n.Z)({display:"flex",marginLeft:"calc(".concat(t.spacing(1)," * 0.5)"),marginRight:"calc(".concat(t.spacing(1)," * 0.5)")},"light"===t.palette.mode?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":(0,n.Z)({},"light"===t.palette.mode?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}),"&:active":(0,n.Z)({boxShadow:t.shadows[0]},"light"===t.palette.mode?{backgroundColor:(0,p._4)(t.palette.grey[200],.12)}:{backgroundColor:(0,p._4)(t.palette.grey[600],.12)})})})),b=(0,c.ZP)(v)({width:24,height:16});const x=function(e){const{slots:t={},slotProps:r={}}=e,a=(0,o.Z)(e,m),i=e;return(0,h.jsx)("li",{children:(0,h.jsx)(g,(0,n.Z)({focusRipple:!0},a,{ownerState:i,children:(0,h.jsx)(b,(0,n.Z)({as:t.CollapsedIcon,ownerState:i},r.collapsedIcon))}))})};var S=r(31821),Z=r(18561);function w(e){return(0,Z.Z)("MuiBreadcrumbs",e)}const j=(0,S.Z)("MuiBreadcrumbs",["root","ol","li","separator"]),O=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],C=(0,c.ZP)(f.Z,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{["& .".concat(j.li)]:t.li},t.root]})({}),P=(0,c.ZP)("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),N=(0,c.ZP)("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function I(e,t,r,n){return e.reduce(((o,a,i)=>(i<e.length-1?o=o.concat(a,(0,h.jsx)(N,{"aria-hidden":!0,className:t,ownerState:n,children:r},"separator-".concat(i))):o.push(a),o)),[])}const k=a.forwardRef((function(e,t){const r=(0,u.Z)({props:e,name:"MuiBreadcrumbs"}),{children:c,className:f,component:p="nav",slots:d={},slotProps:v={},expandText:y="Show path",itemsAfterCollapse:m=1,itemsBeforeCollapse:g=1,maxItems:b=8,separator:S="/"}=r,Z=(0,o.Z)(r,O),[j,N]=a.useState(!1),k=(0,n.Z)({},r,{component:p,expanded:j,expandText:y,itemsAfterCollapse:m,itemsBeforeCollapse:g,maxItems:b,separator:S}),z=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},w,t)})(k),E=(0,l.y)({elementType:d.CollapsedIcon,externalSlotProps:v.collapsedIcon,ownerState:k}),A=a.useRef(null),M=a.Children.toArray(c).filter((e=>a.isValidElement(e))).map(((e,t)=>(0,h.jsx)("li",{className:z.li,children:e},"child-".concat(t))));return(0,h.jsx)(C,(0,n.Z)({ref:t,component:p,color:"text.secondary",className:(0,i.Z)(z.root,f),ownerState:k},Z,{children:(0,h.jsx)(P,{className:z.ol,ref:A,ownerState:k,children:I(j||b&&M.length<=b?M:(e=>g+m>=e.length?e:[...e.slice(0,g),(0,h.jsx)(x,{"aria-label":y,slots:{CollapsedIcon:d.CollapsedIcon},slotProps:{collapsedIcon:E},onClick:()=>{N(!0);const e=A.current.querySelector("a[href],button,[tabindex]");e&&e.focus()}},"ellipsis"),...e.slice(e.length-m,e.length)])(M),z.separator,S,k)})}))}))},53070:(e,t,r)=>{r.d(t,{Z:()=>b});var n,o=r(31461),a=r(7896),i=r(5057),s=r(9978),l=r(91213),c=r(6285),u=r(11750),f=r(54352),p=r(38038),d=r(62773),h=r(17815),v=r(42908),y=r(96266);const m=["children","className","component","disablePointerEvents","disableTypography","position","variant"],g=(0,d.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["position".concat((0,c.Z)(r.position))],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,a.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===r.variant&&{["&.".concat(h.Z.positionStart,"&:not(.").concat(h.Z.hiddenLabel,")")]:{marginTop:16}},"start"===r.position&&{marginRight:8},"end"===r.position&&{marginLeft:8},!0===r.disablePointerEvents&&{pointerEvents:"none"})})),b=i.forwardRef((function(e,t){const r=(0,v.Z)({props:e,name:"MuiInputAdornment"}),{children:d,className:b,component:x="div",disablePointerEvents:S=!1,disableTypography:Z=!1,position:w,variant:j}=r,O=(0,o.Z)(r,m),C=(0,p.Z)()||{};let P=j;j&&C.variant,C&&!P&&(P=C.variant);const N=(0,a.Z)({},r,{hiddenLabel:C.hiddenLabel,size:C.size,disablePointerEvents:S,position:w,variant:P}),I=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:a,variant:i}=e,s={root:["root",r&&"disablePointerEvents",o&&"position".concat((0,c.Z)(o)),i,n&&"hiddenLabel",a&&"size".concat((0,c.Z)(a))]};return(0,l.Z)(s,h.w,t)})(N);return(0,y.jsx)(f.Z.Provider,{value:null,children:(0,y.jsx)(g,(0,a.Z)({as:x,ownerState:N,className:(0,s.Z)(I.root,b),ref:t},O,{children:"string"!==typeof d||Z?(0,y.jsxs)(i.Fragment,{children:["start"===w?n||(n=(0,y.jsx)("span",{className:"notranslate",children:"\u200b"})):null,d]}):(0,y.jsx)(u.Z,{color:"text.secondary",children:d})}))})}))},17815:(e,t,r)=>{r.d(t,{Z:()=>i,w:()=>a});var n=r(31821),o=r(18561);function a(e){return(0,o.Z)("MuiInputAdornment",e)}const i=(0,n.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"])},33938:(e,t,r)=>{var n="undefined"!==typeof JSON?JSON:r(99426),o=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},a=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},r=[];for(var n in e)t.call(e,n)&&r.push(n);return r};e.exports=function(e,t){t||(t={}),"function"===typeof t&&(t={cmp:t});var r=t.space||"";"number"===typeof r&&(r=Array(r+1).join(" "));var i,s="boolean"===typeof t.cycles&&t.cycles,l=t.replacer||function(e,t){return t},c=t.cmp&&(i=t.cmp,function(e){return function(t,r){var n={key:t,value:e[t]},o={key:r,value:e[r]};return i(n,o)}}),u=[];return function e(t,i,f,p){var d=r?"\n"+new Array(p+1).join(r):"",h=r?": ":":";if(f&&f.toJSON&&"function"===typeof f.toJSON&&(f=f.toJSON()),void 0!==(f=l.call(t,i,f))){if("object"!==typeof f||null===f)return n.stringify(f);if(o(f)){for(var v=[],y=0;y<f.length;y++){var m=e(f,y,f[y],p+1)||n.stringify(null);v.push(d+r+m)}return"["+v.join(",")+d+"]"}if(-1!==u.indexOf(f)){if(s)return n.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}u.push(f);var g=a(f).sort(c&&c(f));for(v=[],y=0;y<g.length;y++){var b=e(f,i=g[y],f[i],p+1);if(b){var x=n.stringify(i)+h+b;v.push(d+r+x)}}return u.splice(u.indexOf(f),1),"{"+v.join(",")+d+"}"}}({"":e},"",e,0)}},99426:(e,t,r)=>{t.parse=r(1329),t.stringify=r(17326)},1329:e=>{var t,r,n,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function a(e){throw{name:"SyntaxError",message:e,at:t,text:n}}function i(e){return e&&e!==r&&a("Expected '"+e+"' instead of '"+r+"'"),r=n.charAt(t),t+=1,r}function s(){var e,t="";for("-"===r&&(t="-",i("-"));r>="0"&&r<="9";)t+=r,i();if("."===r)for(t+=".";i()&&r>="0"&&r<="9";)t+=r;if("e"===r||"E"===r)for(t+=r,i(),"-"!==r&&"+"!==r||(t+=r,i());r>="0"&&r<="9";)t+=r,i();return e=Number(t),isFinite(e)||a("Bad number"),e}function l(){var e,t,n,s="";if('"'===r)for(;i();){if('"'===r)return i(),s;if("\\"===r)if(i(),"u"===r){for(n=0,t=0;t<4&&(e=parseInt(i(),16),isFinite(e));t+=1)n=16*n+e;s+=String.fromCharCode(n)}else{if("string"!==typeof o[r])break;s+=o[r]}else s+=r}a("Bad string")}function c(){for(;r&&r<=" ";)i()}function u(){switch(c(),r){case"{":return function(){var e,t={};if("{"===r){if(i("{"),c(),"}"===r)return i("}"),t;for(;r;){if(e=l(),c(),i(":"),Object.prototype.hasOwnProperty.call(t,e)&&a('Duplicate key "'+e+'"'),t[e]=u(),c(),"}"===r)return i("}"),t;i(","),c()}}a("Bad object")}();case"[":return function(){var e=[];if("["===r){if(i("["),c(),"]"===r)return i("]"),e;for(;r;){if(e.push(u()),c(),"]"===r)return i("]"),e;i(","),c()}}a("Bad array")}();case'"':return l();case"-":return s();default:return r>="0"&&r<="9"?s():function(){switch(r){case"t":return i("t"),i("r"),i("u"),i("e"),!0;case"f":return i("f"),i("a"),i("l"),i("s"),i("e"),!1;case"n":return i("n"),i("u"),i("l"),i("l"),null;default:a("Unexpected '"+r+"'")}}()}}e.exports=function(e,o){var i;return n=e,t=0,r=" ",i=u(),c(),r&&a("Syntax error"),"function"===typeof o?function e(t,r){var n,a,i=t[r];if(i&&"object"===typeof i)for(n in u)Object.prototype.hasOwnProperty.call(i,n)&&("undefined"===typeof(a=e(i,n))?delete i[n]:i[n]=a);return o.call(t,r,i)}({"":i},""):i}},17326:e=>{var t,r,n,o=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function i(e){return o.lastIndex=0,o.test(e)?'"'+e.replace(o,(function(e){var t=a[e];return"string"===typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function s(e,o){var a,l,c,u,f,p=t,d=o[e];switch(d&&"object"===typeof d&&"function"===typeof d.toJSON&&(d=d.toJSON(e)),"function"===typeof n&&(d=n.call(o,e,d)),typeof d){case"string":return i(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(t+=r,f=[],"[object Array]"===Object.prototype.toString.apply(d)){for(u=d.length,a=0;a<u;a+=1)f[a]=s(a,d)||"null";return c=0===f.length?"[]":t?"[\n"+t+f.join(",\n"+t)+"\n"+p+"]":"["+f.join(",")+"]",t=p,c}if(n&&"object"===typeof n)for(u=n.length,a=0;a<u;a+=1)"string"===typeof(l=n[a])&&(c=s(l,d))&&f.push(i(l)+(t?": ":":")+c);else for(l in d)Object.prototype.hasOwnProperty.call(d,l)&&(c=s(l,d))&&f.push(i(l)+(t?": ":":")+c);return c=0===f.length?"{}":t?"{\n"+t+f.join(",\n"+t)+"\n"+p+"}":"{"+f.join(",")+"}",t=p,c}}e.exports=function(e,o,a){var i;if(t="",r="","number"===typeof a)for(i=0;i<a;i+=1)r+=" ";else"string"===typeof a&&(r=a);if(n=o,o&&"function"!==typeof o&&("object"!==typeof o||"number"!==typeof o.length))throw new Error("JSON.stringify");return s("",{"":e})}},67654:(e,t,r)=>{var n=r(5057),o=r(77931);t.Z=function(e,t,r){if(!o.isBrowser)return[t,o.noop,o.noop];if(!e)throw new Error("useLocalStorage key may not be falsy");var a=r?r.raw?function(e){return e}:r.deserializer:JSON.parse,i=n.useRef((function(e){try{var n=r?r.raw?String:r.serializer:JSON.stringify,o=localStorage.getItem(e);return null!==o?a(o):(t&&localStorage.setItem(e,n(t)),t)}catch(s){return t}})),s=n.useState((function(){return i.current(e)})),l=s[0],c=s[1];n.useLayoutEffect((function(){return c(i.current(e))}),[e]);var u=n.useCallback((function(t){try{var n="function"===typeof t?t(l):t;if("undefined"===typeof n)return;var o=void 0;o=r?r.raw?"string"===typeof n?n:JSON.stringify(n):r.serializer?r.serializer(n):JSON.stringify(n):JSON.stringify(n),localStorage.setItem(e,o),c(a(o))}catch(s){}}),[e,c]),f=n.useCallback((function(){try{localStorage.removeItem(e),c(void 0)}catch(s){}}),[e,c]);return[l,u,f]}}}]);
|