@abtnode/blocklet-services 1.16.23-beta-06c3a221 → 1.16.23-beta-abdda301
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/dist/assets/{Add-yJOSofhS.js → Add-7g2VVPVn.js} +1 -1
- package/dist/assets/{Alert-8z3IBaBE.js → Alert-J_LOTKGn.js} +1 -1
- package/dist/assets/{ArrowDropDown-oq6bnC5a.js → ArrowDropDown-w6SQB4Z1.js} +1 -1
- package/dist/assets/{Avatar-_iJamCVD.js → Avatar-xIRaYTfu.js} +1 -1
- package/dist/assets/{ButtonGroup-_ql_Aibf.js → ButtonGroup-HB3VSTeB.js} +1 -1
- package/dist/assets/{CardContent-Ys0Vqtd2.js → CardContent-5l4uh4ig.js} +1 -1
- package/dist/assets/{CheckCircle-liPbTkS6.js → CheckCircle-nSCABwDK.js} +1 -1
- package/dist/assets/{Checkbox-Bx2RKhbj.js → Checkbox-P8vtjjVF.js} +1 -1
- package/dist/assets/{ChevronRight-NMNUHQcd.js → ChevronRight-ZrEi_w6i.js} +1 -1
- package/dist/assets/CloseOutlined-PTKdbMiF.js +1 -0
- package/dist/assets/{DeleteOutline-e-pVPJ10.js → DeleteOutline-ey3GBCUW.js} +1 -1
- package/dist/assets/{Done-W__OCydG.js → Done-vK5iR6vU.js} +1 -1
- package/dist/assets/{Download-CRKeZxZn.js → Download-aahJoMlE.js} +1 -1
- package/dist/assets/{Edit-LODr45Fi.js → Edit-OU0N7xYs.js} +1 -1
- package/dist/assets/{EditIcon-LBnnkl6f.js → EditIcon-mE1h5C2Z.js} +1 -1
- package/dist/assets/{ExpandMore-gplG_N-e.js → ExpandMore-DBIVxyRD.js} +1 -1
- package/dist/assets/{FilterList-2hNiCvPk.js → FilterList-R-AE_GHN.js} +4 -4
- package/dist/assets/{FormControl-UoCRB4Jz.js → FormControl-6yEJYlS5.js} +1 -1
- package/dist/assets/{FormControlLabel-JXaJatAY.js → FormControlLabel-20HNTqkg.js} +1 -1
- package/dist/assets/{FormGroup-LYg6ohnS.js → FormGroup-35Eh4cl8.js} +1 -1
- package/dist/assets/{Google-pA-zGfV6.js → Google-keN4-shv.js} +4 -4
- package/dist/assets/{Grid-Cq0tl8Rn.js → Grid-Q18GgpBs.js} +1 -1
- package/dist/assets/{Hidden-dLDh01VC.js → Hidden-3U4cjY85.js} +1 -1
- package/dist/assets/{Icon-z5BPr8Nx.js → Icon-WKt0hv2v.js} +1 -1
- package/dist/assets/{InfoOutlined-LvZcP6jX.js → InfoOutlined-GGjNqSSj.js} +1 -1
- package/dist/assets/{InputAdornment-i3kKzNb4.js → InputAdornment-v0Ghs4vA.js} +1 -1
- package/dist/assets/{InputLabel-evB6-1NR.js → InputLabel-PDpXpeRG.js} +1 -1
- package/dist/assets/{LastPage--eJf1sYv.js → LastPage-eSVNX9y4.js} +1 -1
- package/dist/assets/{Launch-H3hBPB77.js → Launch-FTSCmPJ-.js} +1 -1
- package/dist/assets/{LaunchOutlined-Fi5DkFlC.js → LaunchOutlined-5E6LXiE2.js} +1 -1
- package/dist/assets/{ListItem-OwJ_bemn.js → ListItem-pLuDtQgS.js} +1 -1
- package/dist/assets/{LockIcon-8FiITHPK.js → LockIcon-u-MEyeJ4.js} +1 -1
- package/dist/assets/{Loop-RkvrEzoc.js → Loop-e0nOZxTR.js} +1 -1
- package/dist/assets/{MoreHoriz-Krld2BKo.js → MoreHoriz-PuMXq2PC.js} +1 -1
- package/dist/assets/{MoreVert-261tWqrz.js → MoreVert-dCeo9SdV.js} +1 -1
- package/dist/assets/{OpenInNew-LQ-81H0R.js → OpenInNew-2pd62hQ9.js} +1 -1
- package/dist/assets/{Pagination-7IbC2E1j.js → Pagination-w5FDsB3B.js} +1 -1
- package/dist/assets/{PlayArrow-jm3a4suc.js → PlayArrow-Uiau983f.js} +1 -1
- package/dist/assets/{RadioGroup-D24cymg5.js → RadioGroup-YCEsD_pu.js} +1 -1
- package/dist/assets/{RevokeIcon-WQMnKK0f.js → RevokeIcon-4zvAH67R.js} +1 -1
- package/dist/assets/{Search-vTBXAsZL.js → Search-gz6hDZ_X.js} +1 -1
- package/dist/assets/{Select-SmZrX7GA.js → Select-M-8Lo2J5.js} +2 -2
- package/dist/assets/{ServerLogo-8Le5auvK.js → ServerLogo-isi19Tgj.js} +1 -1
- package/dist/assets/{Skeleton-nt2aNRPQ.js → Skeleton-gnG2NynL.js} +2 -2
- package/dist/assets/{Slider-d4v1rrsa.js → Slider-iEQ0mBzA.js} +1 -1
- package/dist/assets/{Stepper-EoIiueJu.js → Stepper-XYDkJ2KJ.js} +1 -1
- package/dist/assets/{TableRow-Sa1WiM2f.js → TableRow-k9qE6omq.js} +2 -2
- package/dist/assets/{TextField-YOGEC6UG.js → TextField-6hzePx6A.js} +1 -1
- package/dist/assets/{Toolbar-g_XgSwzH.js → Toolbar-sSwWYKZs.js} +1 -1
- package/dist/assets/{access-control-ha2CvR_B.js → access-control-k-igQFn7.js} +1 -1
- package/dist/assets/{actions-jNqiX7Ld.js → actions-vPPAeKO_.js} +1 -1
- package/dist/assets/{add-component-core-yLCSY4wH.js → add-component-core-mNoHl6TM.js} +1 -1
- package/dist/assets/add-resource-BqkaB-gy.js +1 -0
- package/dist/assets/{addon-obHI0Hlu.js → addon-_8k2HI__.js} +1 -1
- package/dist/assets/{analytics-H1E3QYT7.js → analytics-W_LPwJnj.js} +6 -6
- package/dist/assets/api-ED7jlksD.js +1 -0
- package/dist/assets/{audit-logs-ZmXjCk-d.js → audit-logs-gy_GiPr1.js} +1 -1
- package/dist/assets/{button-In_gPOZd.js → button-sDNcUZdA.js} +1 -1
- package/dist/assets/{click-to-copy-XhsdyR0H.js → click-to-copy-jP1Jjfmi.js} +1 -1
- package/dist/assets/{complete-xTzV9fpO.js → complete-cr5QM3f0.js} +1 -1
- package/dist/assets/{component-xzW_-GxW.js → component-mGiUoK4S.js} +1 -1
- package/dist/assets/{config-UduKbzW1.js → config-KH6srg17.js} +1 -1
- package/dist/assets/{config-14SNzi7t.js → config-U_F5gU_d.js} +1 -1
- package/dist/assets/{config-navigation-RLlR4gZT.js → config-navigation-d3bE_bc9.js} +1 -1
- package/dist/assets/{config-space-5XfyD3uq.js → config-space-PPRQ64ov.js} +1 -1
- package/dist/assets/{confirm-uXpKSgxe.js → confirm-1yUPPWyO.js} +2 -2
- package/dist/assets/{connect-iOodfP1C.js → connect-JblIPNnK.js} +1 -1
- package/dist/assets/{connect-EgJ1pw5R.js → connect-lEBu3S8Z.js} +1 -1
- package/dist/assets/{connect-to--STm1j0r.js → connect-to-Ec-PR8-d.js} +2 -2
- package/dist/assets/{content-layout-cxGNkYvv.js → content-layout-RY8gcl_K.js} +1 -1
- package/dist/assets/{dashboard-VZ-60JmZ.js → dashboard-nqR-1NiP.js} +3 -3
- package/dist/assets/{did-address-2g3VKxYq.js → did-address-OD4YOZ2O.js} +1 -1
- package/dist/assets/{domain-kIh8qZuR.js → domain-K6GMaIw4.js} +1 -1
- package/dist/assets/{domain-list-KUxfUpxv.js → domain-list-9GkXg5KQ.js} +2 -2
- package/dist/assets/{exchange-passport-bVmMiopY.js → exchange-passport-NbW-kRvx.js} +1 -1
- package/dist/assets/{fallback-K92qnnbp.js → fallback-LxCPCLff.js} +1 -1
- package/dist/assets/{fuel-w6r1qdh0.js → fuel-PLFgTm7J.js} +1 -1
- package/dist/assets/{fullpage-lM2QRYmz.js → fullpage-dMf47sgh.js} +1 -1
- package/dist/assets/{home-rnjg5Uln.js → home-UZSoxDIO.js} +1 -1
- package/dist/assets/{iframe-P4prqqj1.js → iframe--iPe_a2f.js} +1 -1
- package/dist/assets/index-1sYdSjgN.js +54 -0
- package/dist/assets/{index-adip-Ngx.js → index-2nmtaKL_.js} +5 -5
- package/dist/assets/{index-ys1ZtEAO.js → index-8pn_hXfi.js} +3 -3
- package/dist/assets/{index-c7FpgR5O.js → index-DbTtClCr.js} +1 -1
- package/dist/assets/{index-yTk3rOr5.js → index-E4ZWmyGk.js} +1 -1
- package/dist/assets/index-Iq36j3UA.js +4 -0
- package/dist/assets/{index-BK7alHfP.js → index-Lwmxm_Tf.js} +2 -2
- package/dist/assets/{index-Y0SzaOzo.js → index-LwwZXnmq.js} +1 -1
- package/dist/assets/{index-woVElijO.js → index-MxeALFQf.js} +1 -1
- package/dist/assets/{index-LkzRmFOO.js → index-MylE_YAh.js} +1 -1
- package/dist/assets/{index-kVRlFbO-.js → index-PppwoIFB.js} +1 -1
- package/dist/assets/{index-L1aZ_oAt.js → index-Rean_S2b.js} +1 -1
- package/dist/assets/{index-Cf01k-zf.js → index-Vhx3FEvR.js} +1 -1
- package/dist/assets/{index-CjfmWq2Z.js → index-W37UcQvv.js} +10 -10
- package/dist/assets/{index-Cvm-qMrO.js → index-WQaB8b9n.js} +1 -1
- package/dist/assets/{index-kbsGDZwe.js → index-_pLbqUL4.js} +2 -2
- package/dist/assets/{index-tUGh9zeW.js → index-bo2FHAot.js} +1 -1
- package/dist/assets/{index-zbEPyFtV.js → index-ckNUZNet.js} +1 -1
- package/dist/assets/{index-9wi_FbU7.js → index-e6gALx9Q.js} +10 -10
- package/dist/assets/{index-RTZQcUl-.js → index-fbLp4t_l.js} +4 -4
- package/dist/assets/{index-rNdWQJ8V.js → index-gES45_RI.js} +5 -5
- package/dist/assets/{index-7C-cxYrr.js → index-nkT_KXMy.js} +1 -1
- package/dist/assets/{index--wu_gabw.js → index-pgOqLld_.js} +1 -1
- package/dist/assets/{index-hEDWKFf1.js → index-qpt45Jn0.js} +3 -3
- package/dist/assets/{index-Vu5Hi9e4.js → index-tI696upG.js} +84 -108
- package/dist/assets/{index--eYfa2iB.js → index-z3ODAN3L.js} +1 -1
- package/dist/assets/{index-2l_gDibc.js → index-zHYp13Ik.js} +1 -1
- package/dist/assets/{index-xfPw64rO.js → index-zukWofPQ.js} +1 -1
- package/dist/assets/{index.es-XZ3Qx7aN.js → index.es-i484Hhds.js} +3 -3
- package/dist/assets/{index.esm-zHTA4cHV.js → index.esm-HfciCOwM.js} +1 -1
- package/dist/assets/{invite-HGTaOopJ.js → invite-Q1WeH466.js} +1 -1
- package/dist/assets/{issue-passport-dNZHjXJy.js → issue-passport-tWWlizy7.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-4cc6LQ6N.js → jss-plugin-props-sort.esm-FVYd2q-V.js} +1 -1
- package/dist/assets/{launch-result-message-J5dZdjK9.js → launch-result-message-vav8FvlH.js} +1 -1
- package/dist/assets/{layout-edWgKFS3.js → layout-RSyMpp2D.js} +1 -1
- package/dist/assets/{list-header-cakMMeA9.js → list-header-BSBH0zQ3.js} +1 -1
- package/dist/assets/localization-Q3LMXTEM.js +1 -0
- package/dist/assets/{log-IJfNDeYa.js → log-E6fi0KKA.js} +1 -1
- package/dist/assets/{login-GFXOoAOs.js → login-aWY-kYPK.js} +1 -1
- package/dist/assets/{logo-uploader-Z7R8hvrQ.js → logo-uploader-zfDQNUwk.js} +3 -3
- package/dist/assets/{lost-passport-rJt-K7ao.js → lost-passport-wGRDHiL4.js} +3 -3
- package/dist/assets/{lottie-THFzP1dC.js → lottie-_pLPoJ-1.js} +1 -1
- package/dist/assets/{notifications-zMxY5VrS.js → notifications-knIU14Bw.js} +1 -1
- package/dist/assets/{overview-dbKDHJQN.js → overview-7x_asHqV.js} +1 -1
- package/dist/assets/{page-header-sm7Rcxwn.js → page-header-XDCgljDC.js} +1 -1
- package/dist/assets/{permission-dR7440gE.js → permission-MnsY9Eps.js} +1 -1
- package/dist/assets/{preferences-WASfgwxe.js → preferences-vAQvxF7l.js} +1 -1
- package/dist/assets/publish-resource-K9WG3ef9.js +1 -0
- package/dist/assets/{react-cZEwd1y6.js → react-6q_2_cUd.js} +3 -3
- package/dist/assets/selector-1dpe9L67.js +46 -0
- package/dist/assets/session-4Q3tQEqQ.js +1 -0
- package/dist/assets/setup-xSftcgSH.js +19 -0
- package/dist/assets/{slicedToArray-rOQW0Qdz.js → slicedToArray-Ed16vtYp.js} +2 -2
- package/dist/assets/{spaces-oi0UGr9V.js → spaces--3SmdlJ4.js} +1 -1
- package/dist/assets/{start-kQG_xGdG.js → start-bCHKgB-l.js} +1 -1
- package/dist/assets/{step-actions-eDIWEra3.js → step-actions-h70_KUEF.js} +1 -1
- package/dist/assets/{studio-V05Kluaj.js → studio-0bYB_8US.js} +1 -1
- package/dist/assets/{switch-control--qsuqvPZ.js → switch-control-oXc5mNlV.js} +1 -1
- package/dist/assets/{toUpper-2JfnfjSv.js → toUpper-RvHIoRYk.js} +1 -1
- package/dist/assets/{transfer-_k5LHiPs.js → transfer-ChTc5bsG.js} +1 -1
- package/dist/assets/{uniqBy-j0q8aAHN.js → uniqBy-G2UOKHwr.js} +1 -1
- package/dist/assets/{unsubscribe-SgffzzOj.js → unsubscribe-9GoXYfe0.js} +1 -1
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-k15NWp1Q.js +1 -0
- package/dist/assets/{useAsync-Jl2-1Zhx.js → useAsync-y9Q4DzVF.js} +1 -1
- package/dist/assets/{useFormControl-ow2ZyMxu.js → useFormControl-UFbFMiSx.js} +1 -1
- package/dist/assets/useLocalStorage-Ne-e0YYQ.js +1 -0
- package/dist/assets/{useSetState-k-0ecZPo.js → useSetState-YFQy57cQ.js} +1 -1
- package/dist/assets/user-center-sD1F8VCv.js +57 -0
- package/dist/assets/{util-IkWr1k8x.js → util-fKfjbPC7.js} +1 -1
- package/dist/assets/{wrap-locale-vxpb_1WH.js → wrap-locale-BDhExX8x.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +22 -22
- package/dist/assets/add-resource-Zq7wvJs3.js +0 -1
- package/dist/assets/api-bqNzLg9V.js +0 -1
- package/dist/assets/banner-V7-l7Y8p.png +0 -0
- package/dist/assets/index-KBfdwv7I.js +0 -54
- package/dist/assets/index-uPi27M7M.js +0 -4
- package/dist/assets/localization-LX2eCkms.js +0 -1
- package/dist/assets/publish-resource-IPB1hxMa.js +0 -1
- package/dist/assets/selector-PHzkH1QT.js +0 -46
- package/dist/assets/session-i2sKQu5g.js +0 -1
- package/dist/assets/setup-2IHOhLHH.js +0 -19
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-7lIoXyoo.js +0 -1
- package/dist/assets/useLocalStorage-g0dvG-aI.js +0 -1
- package/dist/assets/user-center-Ri39cNVy.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{P as o,r as x,j as e,B as u,bh as B,bB as K,dB as W,Y as v,as as R,S as G,
|
|
1
|
+
import{P as o,r as x,j as e,B as u,bh as B,bB as K,dB as W,Y as v,as as R,S as G,c6 as M,G as Y}from"./index-tI696upG.js";import{d as $}from"./EditIcon-mE1h5C2Z.js";import{d as A}from"./Done-vK5iR6vU.js";import{C as H}from"./Google-keN4-shv.js";import{T as U}from"./TextField-6hzePx6A.js";import{R as J,F as Q,L as X}from"./logo-uploader-zfDQNUwk.js";const S={description:o.string,editing:o.bool,onChange:o.func,required:o.bool,value:o.any,componentProps:o.object,render:o.func,renderFormItem:o.func};function V({editing:n,value:r,onChange:s}){const[a,l]=x.useState(!1),c=x.useRef(),d=x.useRef(r);x.useEffect(()=>{let p=null;return n&&(p=setTimeout(()=>{l(!0)},50)),()=>{clearTimeout(p)}},[n]);const g=p=>{d.current=p,s(p)},y=()=>{l(!1),s(d.current)},b=e.jsx(u,{className:"form-item-input slot",px:1,children:e.jsxs(u,{display:"flex",alignItems:"center",children:[r,r!=="auto"&&e.jsx("div",{style:{marginLeft:4,backgroundColor:r,width:"1em",height:"1em",borderRadius:"0.2em"}})]})}),i=e.jsxs(u,{display:"flex",flexGrow:1,alignItems:"center",height:"40px",onKeyDown:y,children:[e.jsx(u,{display:"flex",alignItems:"center",onClick:()=>l(!0),children:e.jsx("div",{ref:c,style:{flexShrink:0,marginLeft:"8px",backgroundColor:r,width:"32px",height:"32px",boxSizing:"border-box",borderRadius:"8px",border:"1px solid #eee",cursor:r==="auto"?"default":"pointer"}})}),e.jsx(B,{open:a,anchorEl:c.current,onClose:()=>l(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.jsx(H,{color:r,onChange:p=>g(p.hex)})})]});return n?i:b}V.propTypes=S;function _({editing:n,description:r,value:s,onChange:a,componentProps:l,...c}){const{placeholder:d}=l,g=x.useRef(s),y=i=>{i.key==="Enter"&&a(g.current,"confirm")},b=i=>{g.current=i,a(i)};return n?e.jsx(U,{style:{flex:1},fullWidth:!0,value:s,onChange:i=>{i.persist(),b(i.target.value)},autoFocus:!0,size:"small",variant:"outlined",placeholder:r||d,onKeyDown:y,...c}):e.jsx(u,{px:1,className:"form-item-input slot",children:s})}_.propTypes=S;_.defaultProps={componentProps:{}};function F({editing:n,value:r,onChange:s,componentProps:a,...l}){const{blocklet:c}=a,d=r==="auto"?K.getPassportColorFromDid(c.appDid):r;return e.jsxs(u,{display:"flex",alignItems:"center",children:[e.jsx("div",{style:{width:96,marginRight:12},dangerouslySetInnerHTML:{__html:W({title:"Owner",issuer:v(c),issuerDid:c.appDid,ownerName:"Your Name",ownerDid:c.appDid,preferredColor:r||"auto"})}}),e.jsx(V,{...l,editing:n,value:n?d:r,onChange:s,componentProps:a})]})}F.propTypes={...S,componentProps:o.shape({blocklet:o.object.isRequired}).isRequired};F.defaultProps={};const Z={input:_,color:V,passport:F,uploader:n=>e.jsx(X,{...n.componentProps})};function ee(n,{editing:r=!1}){const{componentType:s="input",render:a,renderFormItem:l}=n;return r&&l?l:!r&&a?a:Z[s==null?void 0:s.toLowerCase()]}function D({schema:n,loading:r,value:s,defaultValue:a,onChange:l,style:c,disabled:d}){const g=Object.prototype.toString.call(s)==="[object Object]",[y,b]=x.useState(null),[i,p]=x.useState(g?s:a),P=x.useRef();function I(t,m,h){const{key:f,secure:C}=t,k=i[f]!==m,j={...i,[f]:m};k&&p(j),l({[f]:m},{allValues:j,action:h,currentItem:t}),h==="confirm"&&C&&p({...i,[f]:"__encrypted__"}),["confirm","cancel"].includes(h)?N(null):N(t)}function N(t){if(t){P.current=i[t.key],b(t);return}P.current=null,b(null)}function E(t,{editing:m=!1}){const{key:h}=t,f=g?s[h]:i[h];return f==="__encrypted__"?m?"":"******":f}return e.jsx(re,{className:"form",style:c,children:n==null?void 0:n.map(t=>{const{key:m,description:h,required:f,solo:C=!1,hidden:T=!1,componentProps:k={}}=t;if(T)return null;const j=!!(y&&m===y.key),w=E(t,{editing:j}),z=ee(t,{editing:j}),q={inputProps:{"data-cy":"schema-form-item-component"},key:m,description:h,editing:j,value:w,onChange:(L,O="change")=>I(t,L,O),componentProps:k};return e.jsxs(u,{className:"form-item",children:[!C&&e.jsxs(u,{className:"form-item-label",style:{color:f&&!w?"#ff0000":"#333"},children:[h,f&&e.jsx(J,{})]}),e.jsxs(u,{className:"form-item-body",children:[e.jsx(u,{className:"form-item-input",sx:{textAlign:C?"center":"left"},children:e.jsx(z,{...q})}),!C&&e.jsx(u,{className:"form-item-action",children:j?e.jsxs(e.Fragment,{children:[e.jsx(R,{"data-cy":"schema-form-item-confirm",onClick:()=>{I(t,w,"confirm")},disabled:d||r,size:"large",children:r?e.jsx(G,{size:24}):e.jsx(A,{})}),e.jsx(R,{"data-cy":"schema-form-item-cancel",onClick:()=>{I(t,P.current,"cancel")},disabled:d||r,size:"large",children:e.jsx(M,{})})]}):e.jsx(R,{"data-cy":"schema-form-item-edit",onClick:()=>{I(t,i[m],"edit")},disabled:d||y,size:"large",children:e.jsx($,{})})})]})]},m)})})}D.propTypes={schema:o.array.isRequired,loading:o.bool,onChange:o.func.isRequired,value:o.object,defaultValue:o.object,style:o.object,disabled:o.bool};D.defaultProps={loading:!1,value:void 0,defaultValue:{},style:{},disabled:!1};const re=Y(Q)``;export{D as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{fs as $,r as T,
|
|
1
|
+
import{fs as $,r as T,d2 as G,d1 as x,d3 as J,fX as K,fY as X,fZ as Y,f_ as B,d$ as Z}from"./index-tI696upG.js";var j=function(i,e){return i===void 0&&(i=[]),e===void 0&&(e=[]),$(i,e)},Q=function(i,e,r){var n=T.useRef(),t=T.useRef(0);j(e,n.current)||(n.current=e,t.current+=1),G(i,[t.current],r)},U=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),D={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:U?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},R={ctrl:function(i){return i.ctrlKey},shift:function(i){return i.shiftKey},alt:function(i){return i.altKey},meta:function(i){return i.type==="keyup"?D.meta.includes(i.keyCode):i.metaKey}};function V(i){var e=Object.keys(R).reduce(function(r,n){return R[n](i)?r+1:r},0);return[16,17,18,91,92].includes(i.keyCode)?e:e+1}function q(i,e,r){var n,t;if(!i.key)return!1;if(B(e))return i.keyCode===e;var l=e.split("."),a=0;try{for(var f=K(l),o=f.next();!o.done;o=f.next()){var c=o.value,s=R[c],u=D[c.toLowerCase()];(s&&s(i)||u&&u===i.keyCode)&&a++}}catch(h){n={error:h}}finally{try{o&&!o.done&&(t=f.return)&&t.call(f)}finally{if(n)throw n.error}}return r?a===l.length&&V(i)===l.length:a===l.length}function N(i,e){return X(i)?i:Y(i)||B(i)?function(r){return q(r,i,e)}:Array.isArray(i)?function(r){return i.some(function(n){return q(r,n,e)})}:function(){return!!i}}var O=["keydown"];function F(i,e,r){var n=r||{},t=n.events,l=t===void 0?O:t,a=n.target,f=n.exactMatch,o=f===void 0?!1:f,c=n.useCapture,s=c===void 0?!1:c,u=x(e),h=x(i);Q(function(){var C,g,S,v=J(a,window);if(v){var P=function(m){var y,A=N(h.current,o);if(A(m))return(y=u.current)===null||y===void 0?void 0:y.call(u,m)};try{for(var E=K(l),w=E.next();!w.done;w=E.next()){var H=w.value;(S=v==null?void 0:v.addEventListener)===null||S===void 0||S.call(v,H,P,s)}}catch(m){C={error:m}}finally{try{w&&!w.done&&(g=E.return)&&g.call(E)}finally{if(C)throw C.error}}return function(){var m,y,A;try{for(var L=K(l),k=L.next();!k.done;k=L.next()){var M=k.value;(A=v==null?void 0:v.removeEventListener)===null||A===void 0||A.call(v,M,P,s)}}catch(W){m={error:W}}finally{try{k&&!k.done&&(y=L.return)&&y.call(L)}finally{if(m)throw m.error}}}}},[l],a)}function d(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function z(i,e){for(var r="",n=0,t=-1,l=0,a,f=0;f<=i.length;++f){if(f<i.length)a=i.charCodeAt(f);else{if(a===47)break;a=47}if(a===47){if(!(t===f-1||l===1))if(t!==f-1&&l===2){if(r.length<2||n!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var o=r.lastIndexOf("/");if(o!==r.length-1){o===-1?(r="",n=0):(r=r.slice(0,o),n=r.length-1-r.lastIndexOf("/")),t=f,l=0;continue}}else if(r.length===2||r.length===1){r="",n=0,t=f,l=0;continue}}e&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+i.slice(t+1,f):r=i.slice(t+1,f),n=f-t-1;t=f,l=0}else a===46&&l!==-1?++l:l=-1}return r}function p(i,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+i+n:n}var b={resolve:function(){for(var e="",r=!1,n,t=arguments.length-1;t>=-1&&!r;t--){var l;t>=0?l=arguments[t]:(n===void 0&&(n=Z.cwd()),l=n),d(l),l.length!==0&&(e=l+"/"+e,r=l.charCodeAt(0)===47)}return e=z(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(d(e),e.length===0)return".";var r=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=z(e,!r),e.length===0&&!r&&(e="."),e.length>0&&n&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return d(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var n=arguments[r];d(n),n.length>0&&(e===void 0?e=n:e+="/"+n)}return e===void 0?".":b.normalize(e)},relative:function(e,r){if(d(e),d(r),e===r||(e=b.resolve(e),r=b.resolve(r),e===r))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===47;++n);for(var t=e.length,l=t-n,a=1;a<r.length&&r.charCodeAt(a)===47;++a);for(var f=r.length,o=f-a,c=l<o?l:o,s=-1,u=0;u<=c;++u){if(u===c){if(o>c){if(r.charCodeAt(a+u)===47)return r.slice(a+u+1);if(u===0)return r.slice(a+u)}else l>c&&(e.charCodeAt(n+u)===47?s=u:u===0&&(s=0));break}var h=e.charCodeAt(n+u),C=r.charCodeAt(a+u);if(h!==C)break;h===47&&(s=u)}var g="";for(u=n+s+1;u<=t;++u)(u===t||e.charCodeAt(u)===47)&&(g.length===0?g+="..":g+="/..");return g.length>0?g+r.slice(a+s):(a+=s,r.charCodeAt(a)===47&&++a,r.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(d(e),e.length===0)return".";for(var r=e.charCodeAt(0),n=r===47,t=-1,l=!0,a=e.length-1;a>=1;--a)if(r=e.charCodeAt(a),r===47){if(!l){t=a;break}}else l=!1;return t===-1?n?"/":".":n&&t===1?"//":e.slice(0,t)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');d(e);var n=0,t=-1,l=!0,a;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var f=r.length-1,o=-1;for(a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(c===47){if(!l){n=a+1;break}}else o===-1&&(l=!1,o=a+1),f>=0&&(c===r.charCodeAt(f)?--f===-1&&(t=a):(f=-1,t=o))}return n===t?t=o:t===-1&&(t=e.length),e.slice(n,t)}else{for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!l){n=a+1;break}}else t===-1&&(l=!1,t=a+1);return t===-1?"":e.slice(n,t)}},extname:function(e){d(e);for(var r=-1,n=0,t=-1,l=!0,a=0,f=e.length-1;f>=0;--f){var o=e.charCodeAt(f);if(o===47){if(!l){n=f+1;break}continue}t===-1&&(l=!1,t=f+1),o===46?r===-1?r=f:a!==1&&(a=1):r!==-1&&(a=-1)}return r===-1||t===-1||a===0||a===1&&r===t-1&&r===n+1?"":e.slice(r,t)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return p("/",e)},parse:function(e){d(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var n=e.charCodeAt(0),t=n===47,l;t?(r.root="/",l=1):l=0;for(var a=-1,f=0,o=-1,c=!0,s=e.length-1,u=0;s>=l;--s){if(n=e.charCodeAt(s),n===47){if(!c){f=s+1;break}continue}o===-1&&(c=!1,o=s+1),n===46?a===-1?a=s:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||o===-1||u===0||u===1&&a===o-1&&a===f+1?o!==-1&&(f===0&&t?r.base=r.name=e.slice(1,o):r.base=r.name=e.slice(f,o)):(f===0&&t?(r.name=e.slice(1,a),r.base=e.slice(1,o)):(r.name=e.slice(f,a),r.base=e.slice(f,o)),r.ext=e.slice(a,o)),f>0?r.dir=e.slice(0,f-1):t&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};b.posix=b;var _=b;export{_ as p,F as u};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{r as g,E as y,aU as v,j as t,C as w,S as P,B as c,F as d,P as m,G as E}from"./index-tI696upG.js";import{P as T}from"./page-header-XDCgljDC.js";import{u as B}from"./config-space-PPRQ64ov.js";import{C as b,D,a as G}from"./connect-to-Ec-PR8-d.js";import{u as N,S as u}from"./step-actions-h70_KUEF.js";import{S as L}from"./layout-RSyMpp2D.js";import"./Skeleton-gnG2NynL.js";import"./Hidden-3U4cjY85.js";import"./spaces--3SmdlJ4.js";import"./index-Vhx3FEvR.js";import"./index-cnER8eGh.js";import"./api-ED7jlksD.js";import"./use-blocklet-info-for-connect-did-spaces-k15NWp1Q.js";import"./CloseOutlined-PTKdbMiF.js";import"./did-address-OD4YOZ2O.js";import"./DeleteOutline-ey3GBCUW.js";import"./index-fbLp4t_l.js";import"./index-Lwmxm_Tf.js";import"./ExpandMore-DBIVxyRD.js";import"./ButtonGroup-HB3VSTeB.js";import"./TextField-6hzePx6A.js";import"./FormControl-6yEJYlS5.js";import"./useFormControl-UFbFMiSx.js";import"./InputLabel-PDpXpeRG.js";import"./Select-M-8Lo2J5.js";import"./content-layout-RY8gcl_K.js";function l({onNext:s,onPrevious:x}){var a,r,p;const{t:i}=g.useContext(y),{blocklet:e}=v(),S=N(),{spaceGateway:j,settingStorageEndpoint:C,updateSpaceGateway:f,hasStorageEndpoint:h,loading:o,storageEndpoint:n}=B();return o?t.jsx(w,{relative:"parent",children:t.jsx(P,{})}):t.jsxs(M,{children:[t.jsx("div",{className:"header",children:t.jsx(T,{title:i("setup.didSpace.title"),subTitle:i("setup.didSpace.subTitle"),onClickBack:x})}),t.jsx(c,{width:S?"360px":"720px",children:h?t.jsx(b,{spaceGateway:j,settingStorageEndpoint:C}):t.jsx(D,{})}),((a=e==null?void 0:e.capabilities)==null?void 0:a.didSpace)&&t.jsx(c,{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:"24px",children:t.jsx(G,{onConnect:f,storageEndpoint:n})}),((r=e==null?void 0:e.capabilities)==null?void 0:r.didSpace)==="required"&&t.jsx(u,{mt:8,children:t.jsx(d,{loading:o,variant:"contained",disabled:o||!n,onClick:()=>s(),children:i("setup.continue")})}),((p=e==null?void 0:e.capabilities)==null?void 0:p.didSpace)==="optional"&&t.jsx(u,{blocklet:e,onStartNow:()=>s("complete"),children:t.jsx(d,{className:"start-now",loading:o,variant:"contained",disabled:o,onClick:()=>s(),children:i(n?"setup.continue":"setup.skip")})})]})}l.propTypes={onNext:m.func,onPrevious:m.func};l.defaultProps={onNext:()=>{},onPrevious:()=>{}};const M=E(L)`
|
|
2
|
+
height: 100%;
|
|
3
|
+
overflow-y: auto;
|
|
4
|
+
`;export{l as default};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{r,a_ as d,j as e,b as p,a7 as M,bn as I,
|
|
1
|
+
import{r,a_ as d,j as e,b as p,a7 as M,bn as I,bY as z,P as o,bu as E,bZ as m,bm as O}from"./index-tI696upG.js";import{d as S}from"./ExpandMore-DBIVxyRD.js";import{B as v}from"./ButtonGroup-HB3VSTeB.js";function u(s){const{size:f,color:i,menu:a,children:l,variant:h,onClick:x,menuButtonProps:y,...g}=s,[j,c]=r.useState(!1),t=r.useRef(null),b=Array.isArray(a)?a.map((n,P)=>r.isValidElement(n)?n:r.createElement(d,{...n,key:P})):a,k=()=>{c(n=>!n)},B=n=>{t.current&&t.current.contains(n.target)||c(!1)},C=n=>{n.target.closest(".MuiMenuItem-root")&&c(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs(A,{variant:h,size:f,color:i,ref:t,...g,children:[typeof l=="function"?l():e.jsx(p,{onClick:x,color:i,children:l}),e.jsx(p,{onClick:k,color:i,...y,"aria-label":"more functions",children:e.jsx(S,{})})]}),e.jsx(L,{open:j,anchorEl:t.current,placement:"bottom-end",disablePortal:!1,children:e.jsx(M,{children:e.jsx(I,{onClickAway:B,children:e.jsx(z,{onClick:C,children:b})})})})]})}u.propTypes={size:o.oneOf(["small","medium","large"]),color:o.oneOf(["primary","secondary","inherit"]),menu:o.oneOfType([o.node,o.array]),children:o.node,variant:o.oneOf(["outlined","contained"]),onClick:o.func,menuButtonProps:o.object};u.defaultProps={size:"medium",color:"primary",menu:[],children:null,variant:"contained",onClick:E,menuButtonProps:{}};u.Item=d;const A=m(v)`
|
|
2
2
|
> .MuiButtonBase-root:last-of-type {
|
|
3
3
|
min-width: 2em;
|
|
4
4
|
padding-left: 0;
|
|
5
5
|
padding-right: 0;
|
|
6
6
|
}
|
|
7
|
-
`,
|
|
7
|
+
`,L=m(O)`
|
|
8
8
|
z-index: ${s=>s.theme.zIndex.tooltip};
|
|
9
9
|
.MuiList-root {
|
|
10
10
|
padding: 4px 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{au as x,av as S,aw as d,ax as r,aA as e,
|
|
1
|
+
import{au as x,av as S,aw as d,ax as r,aA as e,bR as k,cE as y,cD as C,r as m,ay as M,az as z,j as s,aC as R,aD as j,bZ as B,P as T}from"./index-tI696upG.js";import{a as E,F as D}from"./FormControlLabel-20HNTqkg.js";function P(a){return S("MuiSwitch",a)}const N=x("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),t=N,A=["className","color","edge","size","sx"],I=a=>{const{classes:o,edge:i,size:c,color:p,checked:u,disabled:h}=a,g={root:["root",i&&`edge${r(i)}`,`size${r(c)}`],switchBase:["switchBase",`color${r(p)}`,u&&"checked",h&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},b=j(g,P,o);return e({},o,b)},O=d("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(a,o)=>{const{ownerState:i}=a;return[o.root,i.edge&&o[`edge${r(i.edge)}`],o[`size${r(i.size)}`]]}})(({ownerState:a})=>e({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},a.edge==="start"&&{marginLeft:-8},a.edge==="end"&&{marginRight:-8},a.size==="small"&&{width:40,height:24,padding:7,[`& .${t.thumb}`]:{width:16,height:16},[`& .${t.switchBase}`]:{padding:4,[`&.${t.checked}`]:{transform:"translateX(16px)"}}})),U=d(E,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(a,o)=>{const{ownerState:i}=a;return[o.switchBase,{[`& .${t.input}`]:o.input},i.color!=="default"&&o[`color${r(i.color)}`]]}})(({theme:a})=>({position:"absolute",top:0,left:0,zIndex:1,color:a.vars?a.vars.palette.Switch.defaultColor:`${a.palette.mode==="light"?a.palette.common.white:a.palette.grey[300]}`,transition:a.transitions.create(["left","transform"],{duration:a.transitions.duration.shortest}),[`&.${t.checked}`]:{transform:"translateX(20px)"},[`&.${t.disabled}`]:{color:a.vars?a.vars.palette.Switch.defaultDisabledColor:`${a.palette.mode==="light"?a.palette.grey[100]:a.palette.grey[600]}`},[`&.${t.checked} + .${t.track}`]:{opacity:.5},[`&.${t.disabled} + .${t.track}`]:{opacity:a.vars?a.vars.opacity.switchTrackDisabled:`${a.palette.mode==="light"?.12:.2}`},[`& .${t.input}`]:{left:"-100%",width:"300%"}}),({theme:a,ownerState:o})=>e({"&:hover":{backgroundColor:a.vars?`rgba(${a.vars.palette.action.activeChannel} / ${a.vars.palette.action.hoverOpacity})`:k(a.palette.action.active,a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},o.color!=="default"&&{[`&.${t.checked}`]:{color:(a.vars||a).palette[o.color].main,"&:hover":{backgroundColor:a.vars?`rgba(${a.vars.palette[o.color].mainChannel} / ${a.vars.palette.action.hoverOpacity})`:k(a.palette[o.color].main,a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${t.disabled}`]:{color:a.vars?a.vars.palette.Switch[`${o.color}DisabledColor`]:`${a.palette.mode==="light"?y(a.palette[o.color].main,.62):C(a.palette[o.color].main,.55)}`}},[`&.${t.checked} + .${t.track}`]:{backgroundColor:(a.vars||a).palette[o.color].main}})),L=d("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(a,o)=>o.track})(({theme:a})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:a.transitions.create(["opacity","background-color"],{duration:a.transitions.duration.shortest}),backgroundColor:a.vars?a.vars.palette.common.onBackground:`${a.palette.mode==="light"?a.palette.common.black:a.palette.common.white}`,opacity:a.vars?a.vars.opacity.switchTrack:`${a.palette.mode==="light"?.38:.3}`})),V=d("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(a,o)=>o.thumb})(({theme:a})=>({boxShadow:(a.vars||a).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),X=m.forwardRef(function(o,i){const c=M({props:o,name:"MuiSwitch"}),{className:p,color:u="primary",edge:h=!1,size:g="medium",sx:b}=c,f=z(c,A),l=e({},c,{color:u,edge:h,size:g}),n=I(l),w=s.jsx(V,{className:n.thumb,ownerState:l});return s.jsxs(O,{className:R(n.root,p),sx:b,ownerState:l,children:[s.jsx(U,e({type:"checkbox",icon:w,checkedIcon:w,ref:i,ownerState:l},f,{classes:e({},n,{root:n.switchBase})})),s.jsx(L,{className:n.track,ownerState:l})]})}),_=X,v=B(a=>s.jsx(_,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...a}))(({theme:a})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:a.palette.mode==="dark"?"#2ECA45":"#65C466",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:a.palette.mode==="light"?a.palette.grey[100]:a.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:a.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:a.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:a.transitions.create(["background-color"],{duration:500})}}));function $({labelProps:a,...o}){return a?s.jsx(D,{control:s.jsx(v,{...o}),...a}):s.jsx(v,{...o})}$.propTypes={labelProps:T.object};$.defaultProps={labelProps:null};export{$ as S,_ as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aO as O,
|
|
1
|
+
import{aO as O,bG as j}from"./index-tI696upG.js";function J(i,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const e in a)if(e!=="default"&&!(e in i)){const s=Object.getOwnPropertyDescriptor(a,e);s&&Object.defineProperty(i,e,s.get?s:{enumerable:!0,get:()=>a[e]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var d={default:j,call:function(i,t,r){var a="";typeof t=="function"&&(r=t,t={});var e={data:t===void 0?null:t};if(typeof r=="function"){var s="dscb"+window.dscb++;window[s]=r,e._dscbstub=s}return e=JSON.stringify(e),window._dsbridge?a=_dsbridge.call(i,e):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(a=prompt("_dsbridge="+i,e)),JSON.parse(a||"{}").data},register:function(i,t,r){var a=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){d.call("_dsb.dsinit")},0)),typeof t=="object"?a._obs[i]=t:a[i]=t},registerAsyn:function(i,t){this.register(i,t,!0)},hasNativeMethod:function(i,t){return this.call("_dsb.hasNativeMethod",{name:i,type:t||"all"})},disableJavascriptDialogBlock:function(i){this.call("_dsb.disableJavascriptDialogBlock",{disable:i!==!1})}};(function(){if(!window._dsf){var i={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:d,close:function(){d.call("_dsb.closePage")},_handleMessageFromNative:function(r){var a=JSON.parse(r.data),e={id:r.callbackId,complete:!0},s=this._dsf[r.method],o=this._dsaf[r.method],p=function(u,_){e.data=u.apply(_,a),d.call("_dsb.returnValue",e)},v=function(u,_){a.push(function(w,y){e.data=w,e.complete=y!==!1,d.call("_dsb.returnValue",e)}),u.apply(_,a)};if(s)p(s,this._dsf);else if(o)v(o,this._dsaf);else{var l=r.method.split(".");if(l.length<2)return;var b=l.pop(),g=l.join("."),c=this._dsf._obs,f=c[g]||{},n=f[b];if(n&&typeof n=="function"){p(n,f);return}if(c=this._dsaf._obs,f=c[g]||{},n=f[b],n&&typeof n=="function"){v(n,f);return}}}};for(var t in i)window[t]=i[t];d.register("_hasJavascriptMethod",function(r,a){var e=r.split(".");if(e.length<2)return!!(_dsf[e]||_dsaf[e]);var r=e.pop(),s=e.join("."),o=_dsf._obs[s]||_dsaf._obs[s];return o&&!!o[r]})}})();var h=d;const N=O(h),k=J({__proto__:null,default:N},[h]);export{k as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aO as y}from"./index-
|
|
1
|
+
import{aO as y}from"./index-tI696upG.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var a=this._errors[r],o=a.message,n=(e[o]||0)+1;e[o]=n,n>=t&&(i=a,t=n)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var a in t)r[a]=t[a];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],n=0;n<r.retries;n++)o.push(this.createTimeout(n,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(n,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var a=r.randomize?Math.random()+1:1,o=Math.round(a*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,a){if(r instanceof Array&&(a=r,r=null),!a){a=[];for(var o in t)typeof t[o]=="function"&&a.push(o)}for(var n=0;n<a.length;n++){var s=a[n],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,E as a,j as t,an as e,G as o}from"./index-
|
|
1
|
+
import{r as n,E as a,j as t,an as e,G as o}from"./index-tI696upG.js";function p(){const{t:s}=n.useContext(a);return t.jsx(r,{style:{paddingTop:"25vh"},children:t.jsx(e,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const r=o.main``;export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{au as vt,av as mt,aw as A,bK as kt,ax as jt,aA as b,r as d,ay as St,az as at,aC as N,j as f,aD as xt,ah as Ft,bN as se,ca as At,cb as Ot,bj as Ht,aB as st,cc as pt,cd as ae,bU as ie,J as rt,P as K}from"./index-Vu5Hi9e4.js";let U;function Dt(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ce(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(Dt()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function de(t){return mt("MuiTab",t)}const ue=vt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),F=ue,be=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],fe=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:n,icon:a,label:v,selected:h,disabled:u}=t,S={root:["root",a&&v&&"labelIcon",`textColor${jt(l)}`,s&&"fullWidth",n&&"wrapped",h&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return xt(S,de,e)},pe=A(kt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${jt(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${F.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${F.selected}`]:{opacity:1},[`&.${F.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${F.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${F.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${F.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${F.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),he=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:v=!1,fullWidth:h,icon:u,iconPosition:S="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:O,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:C,wrapped:it=!1}=s,D=at(s,be),Y=b({},s,{disabled:a,disableFocusRipple:v,selected:I,icon:!!u,iconPosition:S,label:!!T,fullWidth:h,textColor:H,wrapped:it}),X=fe(Y),$=u&&T&&d.isValidElement(u)?d.cloneElement(u,{className:N(X.iconWrapper,u.props.className)}):u,Z=E=>{!I&&y&&y(E,C),x&&x(E)},_=E=>{g&&!I&&y&&y(E,C),O&&O(E)};return f.jsxs(pe,b({focusRipple:!v,className:N(X.root,n),ref:l,role:"tab","aria-selected":I,disabled:a,onClick:Z,onFocus:_,ownerState:Y,tabIndex:I?0:-1},D,{children:[S==="top"||S==="start"?f.jsxs(d.Fragment,{children:[$,T]}):f.jsxs(d.Fragment,{children:[T,$]}),w]}))}),Xt=he,ve=Ft(f.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),me=Ft(f.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Se(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function xe(t,e,l,s={},n=()=>{}){const{ease:a=Se,duration:v=300}=s;let h=null;const u=e[t];let S=!1;const w=()=>{S=!0},T=y=>{if(S){n(new Error("Animation cancelled"));return}h===null&&(h=y);const x=Math.min(1,(y-h)/v);if(e[t]=a(x)*(l-u)+u,x>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(T)};return u===l?(n(new Error("Element already at target position")),w):(requestAnimationFrame(T),w)}const ge=["onChange"],ye={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Ce(t){const{onChange:e}=t,l=at(t,ge),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return se(()=>{const v=At(()=>{const u=s.current;a(),u!==s.current&&e(s.current)}),h=Ot(n.current);return h.addEventListener("resize",v),()=>{v.clear(),h.removeEventListener("resize",v)}},[e]),d.useEffect(()=>{a(),e(s.current)},[e]),f.jsx("div",b({style:ye,ref:n},l))}function Be(t){return mt("MuiTabScrollButton",t)}const we=vt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Te=we,Ie=["className","slots","slotProps","direction","orientation","disabled"],Me=t=>{const{classes:e,orientation:l,disabled:s}=t;return xt({root:["root",l,s&&"disabled"]},Be,e)},Re=A(kt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${Te.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),Ee=d.forwardRef(function(e,l){var s,n;const a=St({props:e,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:u={},direction:S}=a,w=at(a,Ie),y=Ht().direction==="rtl",x=b({isRtl:y},a),O=Me(x),I=(s=h.StartScrollButtonIcon)!=null?s:ve,g=(n=h.EndScrollButtonIcon)!=null?n:me,H=st({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),C=st({elementType:g,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return f.jsx(Re,b({component:"div",className:N(O.root,v),ref:l,role:null,ownerState:x,tabIndex:null},w,{children:S==="left"?f.jsx(I,b({},H)):f.jsx(g,b({},C))}))}),ze=Ee;function Pe(t){return mt("MuiTabs",t)}const We=vt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ht=We,Ne=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Wt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,Nt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,nt=(t,e,l)=>{let s=!1,n=l(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(t,n);else{n.focus();return}}},$e=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:v,scrollButtonsHideMobile:h,classes:u}=t;return xt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Pe,u)},Le=A("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${ht.scrollButtons}`]:e.scrollButtons},{[`& .${ht.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${ht.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),ke=A("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({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"})),je=A("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),Fe=A("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),Ae=A(Ce)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),$t={},Oe=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTabs"}),n=Ht(),a=n.direction==="rtl",{"aria-label":v,"aria-labelledby":h,action:u,centered:S=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:O="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=ze,scrollButtons:C="auto",selectionFollowsFocus:it,slots:D={},slotProps:Y={},TabIndicatorProps:X={},TabScrollButtonProps:$={},textColor:Z="primary",value:_,variant:E="standard",visibleScrollbar:ct=!1}=s,Kt=at(s,Ne),M=E==="scrollable",B=g==="vertical",q=B?"scrollTop":"scrollLeft",tt=B?"top":"left",et=B?"bottom":"right",dt=B?"clientHeight":"clientWidth",V=B?"height":"width",L=b({},s,{component:y,allowScrollButtonsMobile:x,indicatorColor:O,orientation:g,vertical:B,scrollButtons:C,textColor:Z,variant:E,visibleScrollbar:ct,fixed:!M,hideScrollbar:M&&!ct,scrollableX:M&&!B,scrollableY:M&&B,centered:S&&!M,scrollButtonsHideMobile:!x}),P=$e(L),Yt=st({elementType:D.StartScrollButtonIcon,externalSlotProps:Y.startScrollButtonIcon,ownerState:L}),qt=st({elementType:D.EndScrollButtonIcon,externalSlotProps:Y.endScrollButtonIcon,ownerState:L}),[gt,Vt]=d.useState(!1),[k,yt]=d.useState($t),[Ct,Gt]=d.useState(!1),[Bt,Jt]=d.useState(!1),[wt,Qt]=d.useState(!1),[Tt,Zt]=d.useState({overflow:"hidden",scrollbarWidth:0}),It=new Map,z=d.useRef(null),j=d.useRef(null),Mt=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ce(o,n.direction),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&_!==!1){const i=j.current.children;if(i.length>0){const p=i[It.get(_)];c=p?p.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},G=pt(()=>{const{tabsMeta:o,tabMeta:r}=Mt();let c=0,i;if(B)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=a?"right":"left",r&&o){const m=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(r[i]-o[i]+m)}const p={[i]:c,[V]:r?r[V]:0};if(isNaN(k[i])||isNaN(k[V]))yt(p);else{const m=Math.abs(k[i]-p[i]),R=Math.abs(k[V]-p[V]);(m>=1||R>=1)&&yt(p)}}),ut=(o,{animation:r=!0}={})=>{r?xe(q,z.current,o,{duration:n.transitions.duration.standard}):z.current[q]=o},Rt=o=>{let r=z.current[q];B?r+=o:(r+=o*(a?-1:1),r*=a&&Dt()==="reverse"?-1:1),ut(r)},Et=()=>{const o=z.current[dt];let r=0;const c=Array.from(j.current.children);for(let i=0;i<c.length;i+=1){const p=c[i];if(r+p[dt]>o){i===0&&(r=o);break}r+=p[dt]}return r},te=()=>{Rt(-1*Et())},ee=()=>{Rt(Et())},oe=d.useCallback(o=>{Zt({overflow:null,scrollbarWidth:o})},[]),le=()=>{const o={};o.scrollbarSizeListener=M?f.jsx(Ae,{onChange:oe,className:N(P.scrollableX,P.hideScrollbar)}):null;const c=M&&(C==="auto"&&(Ct||Bt)||C===!0);return o.scrollButtonStart=c?f.jsx(H,b({slots:{StartScrollButtonIcon:D.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Yt},orientation:g,direction:a?"right":"left",onClick:te,disabled:!Ct},$,{className:N(P.scrollButtons,$.className)})):null,o.scrollButtonEnd=c?f.jsx(H,b({slots:{EndScrollButtonIcon:D.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:qt},orientation:g,direction:a?"left":"right",onClick:ee,disabled:!Bt},$,{className:N(P.scrollButtons,$.className)})):null,o},zt=pt(o=>{const{tabsMeta:r,tabMeta:c}=Mt();if(!(!c||!r)){if(c[tt]<r[tt]){const i=r[q]+(c[tt]-r[tt]);ut(i,{animation:o})}else if(c[et]>r[et]){const i=r[q]+(c[et]-r[et]);ut(i,{animation:o})}}}),ot=pt(()=>{M&&C!==!1&&Qt(!wt)});d.useEffect(()=>{const o=At(()=>{z.current&&G()});let r;const c=m=>{m.forEach(R=>{R.removedNodes.forEach(J=>{var W;(W=r)==null||W.unobserve(J)}),R.addedNodes.forEach(J=>{var W;(W=r)==null||W.observe(J)})}),o(),ot()},i=Ot(z.current);i.addEventListener("resize",o);let p;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(j.current.children).forEach(m=>{r.observe(m)})),typeof MutationObserver<"u"&&(p=new MutationObserver(c),p.observe(j.current,{childList:!0})),()=>{var m,R;o.clear(),i.removeEventListener("resize",o),(m=p)==null||m.disconnect(),(R=r)==null||R.disconnect()}},[G,ot]),d.useEffect(()=>{const o=Array.from(j.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&C!==!1){const c=o[0],i=o[r-1],p={root:z.current,threshold:.99},m=ft=>{Gt(!ft[0].isIntersecting)},R=new IntersectionObserver(m,p);R.observe(c);const J=ft=>{Jt(!ft[0].isIntersecting)},W=new IntersectionObserver(J,p);return W.observe(i),()=>{R.disconnect(),W.disconnect()}}},[M,C,wt,w==null?void 0:w.length]),d.useEffect(()=>{Vt(!0)},[]),d.useEffect(()=>{G()}),d.useEffect(()=>{zt($t!==k)},[zt,k]),d.useImperativeHandle(u,()=>({updateIndicator:G,updateScrollButtons:ot}),[G,ot]);const Pt=f.jsx(Fe,b({},X,{className:N(P.indicator,X.className),ownerState:L,style:b({},k,X.style)}));let lt=0;const re=d.Children.map(w,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?lt:o.props.value;It.set(r,lt);const c=r===_;return lt+=1,d.cloneElement(o,b({fullWidth:E==="fullWidth",indicator:c&&!gt&&Pt,selected:c,selectionFollowsFocus:it,onChange:I,textColor:Z,value:r},lt===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),ne=o=>{const r=j.current,c=ae(r).activeElement;if(c.getAttribute("role")!=="tab")return;let p=g==="horizontal"?"ArrowLeft":"ArrowUp",m=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&(p="ArrowRight",m="ArrowLeft"),o.key){case p:o.preventDefault(),nt(r,c,Nt);break;case m:o.preventDefault(),nt(r,c,Wt);break;case"Home":o.preventDefault(),nt(r,null,Wt);break;case"End":o.preventDefault(),nt(r,null,Nt);break}},bt=le();return f.jsxs(Le,b({className:N(P.root,T),ownerState:L,ref:l,as:y},Kt,{children:[bt.scrollButtonStart,bt.scrollbarSizeListener,f.jsxs(ke,{className:P.scroller,ownerState:L,style:{overflow:Tt.overflow,[B?`margin${a?"Left":"Right"}`:"marginBottom"]:ct?void 0:-Tt.scrollbarWidth},ref:z,children:[f.jsx(je,{"aria-label":v,"aria-labelledby":h,"aria-orientation":g==="vertical"?"vertical":null,className:P.flexContainer,ownerState:L,onKeyDown:ne,ref:j,role:"tablist",children:re}),gt&&Pt]}),bt.scrollButtonEnd]}))}),_t=Oe,Lt="index",Q={tabs:`${Lt}-tabs`,tab:`${Lt}-tab`},He=ie(_t)(({theme:t})=>({[`& .${Q.tabs}`]:{},[`& .${Q.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function Ut({tabs:t,current:e,onChange:l,...s}){return f.jsx(_t,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:rt.backgroundsBgComponent,padding:.5,display:"inline-flex",columnGap:.25},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:rt.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:rt.lineBorderBase,color:rt.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>f.jsx(Xt,{className:Q.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}Ut.propTypes={tabs:K.array.isRequired,current:K.string.isRequired,onChange:K.func.isRequired};function De({tabs:t,current:e,onChange:l,...s}){return s.variant==="card"?f.jsx(Ut,{tabs:t,current:e,onChange:l}):f.jsx(He,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(n,a)=>l(a),indicatorColor:"primary",...s,className:[Q.tabs,s.className||""].join(" "),children:t.map(n=>f.jsx(Xt,{className:Q.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}De.propTypes={tabs:K.array.isRequired,current:K.string.isRequired,onChange:K.func.isRequired};export{me as K,De as T,ve as a,_t as b,Xt as c,ht as t};
|
|
1
|
+
import{au as vt,av as St,aw as A,bP as kt,ax as jt,aA as b,r as d,ay as mt,az as at,aC as N,j as f,aD as xt,ah as Ft,bS as se,ce as At,cf as Ot,bj as Ht,aB as st,cg as pt,ch as ae,bZ as ie,J as rt,P as Y}from"./index-tI696upG.js";let U;function Dt(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ce(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(Dt()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function de(t){return St("MuiTab",t)}const ue=vt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),F=ue,be=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],fe=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:n,icon:a,label:v,selected:h,disabled:u}=t,m={root:["root",a&&v&&"labelIcon",`textColor${jt(l)}`,s&&"fullWidth",n&&"wrapped",h&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return xt(m,de,e)},pe=A(kt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${jt(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${F.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${F.selected}`]:{opacity:1},[`&.${F.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${F.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${F.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${F.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${F.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),he=d.forwardRef(function(e,l){const s=mt({props:e,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:v=!1,fullWidth:h,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:O,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:C,wrapped:it=!1}=s,D=at(s,be),q=b({},s,{disabled:a,disableFocusRipple:v,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:h,textColor:H,wrapped:it}),X=fe(q),$=u&&T&&d.isValidElement(u)?d.cloneElement(u,{className:N(X.iconWrapper,u.props.className)}):u,Q=E=>{!I&&y&&y(E,C),x&&x(E)},_=E=>{g&&!I&&y&&y(E,C),O&&O(E)};return f.jsxs(pe,b({focusRipple:!v,className:N(X.root,n),ref:l,role:"tab","aria-selected":I,disabled:a,onClick:Q,onFocus:_,ownerState:q,tabIndex:I?0:-1},D,{children:[m==="top"||m==="start"?f.jsxs(d.Fragment,{children:[$,T]}):f.jsxs(d.Fragment,{children:[T,$]}),w]}))}),Xt=he,ve=Ft(f.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Se=Ft(f.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function me(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function xe(t,e,l,s={},n=()=>{}){const{ease:a=me,duration:v=300}=s;let h=null;const u=e[t];let m=!1;const w=()=>{m=!0},T=y=>{if(m){n(new Error("Animation cancelled"));return}h===null&&(h=y);const x=Math.min(1,(y-h)/v);if(e[t]=a(x)*(l-u)+u,x>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(T)};return u===l?(n(new Error("Element already at target position")),w):(requestAnimationFrame(T),w)}const ge=["onChange"],ye={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Ce(t){const{onChange:e}=t,l=at(t,ge),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return se(()=>{const v=At(()=>{const u=s.current;a(),u!==s.current&&e(s.current)}),h=Ot(n.current);return h.addEventListener("resize",v),()=>{v.clear(),h.removeEventListener("resize",v)}},[e]),d.useEffect(()=>{a(),e(s.current)},[e]),f.jsx("div",b({style:ye,ref:n},l))}function Be(t){return St("MuiTabScrollButton",t)}const we=vt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Te=we,Ie=["className","slots","slotProps","direction","orientation","disabled"],Me=t=>{const{classes:e,orientation:l,disabled:s}=t;return xt({root:["root",l,s&&"disabled"]},Be,e)},Re=A(kt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${Te.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),Ee=d.forwardRef(function(e,l){var s,n;const a=mt({props:e,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:u={},direction:m}=a,w=at(a,Ie),y=Ht().direction==="rtl",x=b({isRtl:y},a),O=Me(x),I=(s=h.StartScrollButtonIcon)!=null?s:ve,g=(n=h.EndScrollButtonIcon)!=null?n:Se,H=st({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),C=st({elementType:g,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return f.jsx(Re,b({component:"div",className:N(O.root,v),ref:l,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?f.jsx(I,b({},H)):f.jsx(g,b({},C))}))}),ze=Ee;function Pe(t){return St("MuiTabs",t)}const We=vt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ht=We,Ne=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Wt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,Nt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,nt=(t,e,l)=>{let s=!1,n=l(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(t,n);else{n.focus();return}}},$e=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:v,scrollButtonsHideMobile:h,classes:u}=t;return xt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Pe,u)},Le=A("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${ht.scrollButtons}`]:e.scrollButtons},{[`& .${ht.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${ht.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),ke=A("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({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"})),je=A("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),Fe=A("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),Ae=A(Ce)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),$t={},Oe=d.forwardRef(function(e,l){const s=mt({props:e,name:"MuiTabs"}),n=Ht(),a=n.direction==="rtl",{"aria-label":v,"aria-labelledby":h,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:O="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=ze,scrollButtons:C="auto",selectionFollowsFocus:it,slots:D={},slotProps:q={},TabIndicatorProps:X={},TabScrollButtonProps:$={},textColor:Q="primary",value:_,variant:E="standard",visibleScrollbar:ct=!1}=s,Yt=at(s,Ne),M=E==="scrollable",B=g==="vertical",K=B?"scrollTop":"scrollLeft",tt=B?"top":"left",et=B?"bottom":"right",dt=B?"clientHeight":"clientWidth",V=B?"height":"width",L=b({},s,{component:y,allowScrollButtonsMobile:x,indicatorColor:O,orientation:g,vertical:B,scrollButtons:C,textColor:Q,variant:E,visibleScrollbar:ct,fixed:!M,hideScrollbar:M&&!ct,scrollableX:M&&!B,scrollableY:M&&B,centered:m&&!M,scrollButtonsHideMobile:!x}),P=$e(L),qt=st({elementType:D.StartScrollButtonIcon,externalSlotProps:q.startScrollButtonIcon,ownerState:L}),Kt=st({elementType:D.EndScrollButtonIcon,externalSlotProps:q.endScrollButtonIcon,ownerState:L}),[gt,Vt]=d.useState(!1),[k,yt]=d.useState($t),[Ct,Gt]=d.useState(!1),[Bt,Jt]=d.useState(!1),[wt,Zt]=d.useState(!1),[Tt,Qt]=d.useState({overflow:"hidden",scrollbarWidth:0}),It=new Map,z=d.useRef(null),j=d.useRef(null),Mt=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ce(o,n.direction),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&_!==!1){const i=j.current.children;if(i.length>0){const p=i[It.get(_)];c=p?p.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},G=pt(()=>{const{tabsMeta:o,tabMeta:r}=Mt();let c=0,i;if(B)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=a?"right":"left",r&&o){const S=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(r[i]-o[i]+S)}const p={[i]:c,[V]:r?r[V]:0};if(isNaN(k[i])||isNaN(k[V]))yt(p);else{const S=Math.abs(k[i]-p[i]),R=Math.abs(k[V]-p[V]);(S>=1||R>=1)&&yt(p)}}),ut=(o,{animation:r=!0}={})=>{r?xe(K,z.current,o,{duration:n.transitions.duration.standard}):z.current[K]=o},Rt=o=>{let r=z.current[K];B?r+=o:(r+=o*(a?-1:1),r*=a&&Dt()==="reverse"?-1:1),ut(r)},Et=()=>{const o=z.current[dt];let r=0;const c=Array.from(j.current.children);for(let i=0;i<c.length;i+=1){const p=c[i];if(r+p[dt]>o){i===0&&(r=o);break}r+=p[dt]}return r},te=()=>{Rt(-1*Et())},ee=()=>{Rt(Et())},oe=d.useCallback(o=>{Qt({overflow:null,scrollbarWidth:o})},[]),le=()=>{const o={};o.scrollbarSizeListener=M?f.jsx(Ae,{onChange:oe,className:N(P.scrollableX,P.hideScrollbar)}):null;const c=M&&(C==="auto"&&(Ct||Bt)||C===!0);return o.scrollButtonStart=c?f.jsx(H,b({slots:{StartScrollButtonIcon:D.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:qt},orientation:g,direction:a?"right":"left",onClick:te,disabled:!Ct},$,{className:N(P.scrollButtons,$.className)})):null,o.scrollButtonEnd=c?f.jsx(H,b({slots:{EndScrollButtonIcon:D.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Kt},orientation:g,direction:a?"left":"right",onClick:ee,disabled:!Bt},$,{className:N(P.scrollButtons,$.className)})):null,o},zt=pt(o=>{const{tabsMeta:r,tabMeta:c}=Mt();if(!(!c||!r)){if(c[tt]<r[tt]){const i=r[K]+(c[tt]-r[tt]);ut(i,{animation:o})}else if(c[et]>r[et]){const i=r[K]+(c[et]-r[et]);ut(i,{animation:o})}}}),ot=pt(()=>{M&&C!==!1&&Zt(!wt)});d.useEffect(()=>{const o=At(()=>{z.current&&G()});let r;const c=S=>{S.forEach(R=>{R.removedNodes.forEach(J=>{var W;(W=r)==null||W.unobserve(J)}),R.addedNodes.forEach(J=>{var W;(W=r)==null||W.observe(J)})}),o(),ot()},i=Ot(z.current);i.addEventListener("resize",o);let p;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(j.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(p=new MutationObserver(c),p.observe(j.current,{childList:!0})),()=>{var S,R;o.clear(),i.removeEventListener("resize",o),(S=p)==null||S.disconnect(),(R=r)==null||R.disconnect()}},[G,ot]),d.useEffect(()=>{const o=Array.from(j.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&C!==!1){const c=o[0],i=o[r-1],p={root:z.current,threshold:.99},S=ft=>{Gt(!ft[0].isIntersecting)},R=new IntersectionObserver(S,p);R.observe(c);const J=ft=>{Jt(!ft[0].isIntersecting)},W=new IntersectionObserver(J,p);return W.observe(i),()=>{R.disconnect(),W.disconnect()}}},[M,C,wt,w==null?void 0:w.length]),d.useEffect(()=>{Vt(!0)},[]),d.useEffect(()=>{G()}),d.useEffect(()=>{zt($t!==k)},[zt,k]),d.useImperativeHandle(u,()=>({updateIndicator:G,updateScrollButtons:ot}),[G,ot]);const Pt=f.jsx(Fe,b({},X,{className:N(P.indicator,X.className),ownerState:L,style:b({},k,X.style)}));let lt=0;const re=d.Children.map(w,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?lt:o.props.value;It.set(r,lt);const c=r===_;return lt+=1,d.cloneElement(o,b({fullWidth:E==="fullWidth",indicator:c&&!gt&&Pt,selected:c,selectionFollowsFocus:it,onChange:I,textColor:Q,value:r},lt===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),ne=o=>{const r=j.current,c=ae(r).activeElement;if(c.getAttribute("role")!=="tab")return;let p=g==="horizontal"?"ArrowLeft":"ArrowUp",S=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&(p="ArrowRight",S="ArrowLeft"),o.key){case p:o.preventDefault(),nt(r,c,Nt);break;case S:o.preventDefault(),nt(r,c,Wt);break;case"Home":o.preventDefault(),nt(r,null,Wt);break;case"End":o.preventDefault(),nt(r,null,Nt);break}},bt=le();return f.jsxs(Le,b({className:N(P.root,T),ownerState:L,ref:l,as:y},Yt,{children:[bt.scrollButtonStart,bt.scrollbarSizeListener,f.jsxs(ke,{className:P.scroller,ownerState:L,style:{overflow:Tt.overflow,[B?`margin${a?"Left":"Right"}`:"marginBottom"]:ct?void 0:-Tt.scrollbarWidth},ref:z,children:[f.jsx(je,{"aria-label":v,"aria-labelledby":h,"aria-orientation":g==="vertical"?"vertical":null,className:P.flexContainer,ownerState:L,onKeyDown:ne,ref:j,role:"tablist",children:re}),gt&&Pt]}),bt.scrollButtonEnd]}))}),_t=Oe,Lt="index",Z={tabs:`${Lt}-tabs`,tab:`${Lt}-tab`},He=ie(_t)(({theme:t})=>({[`& .${Z.tabs}`]:{},[`& .${Z.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function Ut({tabs:t,current:e,onChange:l,...s}){return f.jsx(_t,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:rt.backgroundsBgComponent,padding:.5,display:"inline-flex",columnGap:.25},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:rt.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:rt.lineBorderBase,color:rt.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>f.jsx(Xt,{className:Z.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}Ut.propTypes={tabs:Y.array.isRequired,current:Y.string.isRequired,onChange:Y.func.isRequired};function De({tabs:t,current:e,onChange:l,...s}){return s.variant==="card"?f.jsx(Ut,{tabs:t,current:e,onChange:l}):f.jsx(He,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(n,a)=>l(a),indicatorColor:"primary",...s,className:[Z.tabs,s.className||""].join(" "),children:t.map(n=>f.jsx(Xt,{className:Z.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}De.propTypes={tabs:Y.array.isRequired,current:Y.string.isRequired,onChange:Y.func.isRequired};export{Se as K,De as T,ve as a,_t as b,Xt as c,ht as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aO as a}from"./index-
|
|
1
|
+
import{aO as a}from"./index-tI696upG.js";var e=i,s=/^(?:\w+:)?\/\/(\S+)$/,l=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,n=/^[^\s\.]+\.\S{2,}$/;function i(t){if(typeof t!="string")return!1;var o=t.match(s);if(!o)return!1;var r=o[1];return r?!!(l.test(r)||n.test(r)):!1}const c=a(e);export{c as i};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{av as Qe,au as Ze,aw as he,a7 as Je,ax as F,aA as O,r as x,ay as Ke,az as ye,j as a,aC as L,aD as et,bX as Nt,bL as Rt,bj as me,bY as St,aO as Ce,bZ as tt,b_ as ee,P as i,K as Pe,M as Ee,bU as P,a4 as Mt,ar as ke,L as ue,T as B,b as Lt,as as rt,B as I,b$ as It,O as re,c0 as $t,U as _t,c1 as zt,c2 as Dt,c3 as Ht}from"./index-Vu5Hi9e4.js";import{T as Bt}from"./Toolbar-g_XgSwzH.js";import{H as nt}from"./Hidden-dLDh01VC.js";import{d as Ft}from"./MoreHoriz-Krld2BKo.js";import{d as qt}from"./ExpandMore-gplG_N-e.js";const Te={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"};function Wt(e){return Qe("MuiAppBar",e)}Ze("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Ut=["className","color","enableColorOnDark","position"],Vt=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${F(t)}`,`position${F(r)}`]};return et(o,Wt,n)},ce=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Yt=he(Je,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${F(r.position)}`],t[`color${F(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return O({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&O({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&O({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&O({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:ce(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:ce(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:ce(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:ce(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Gt=x.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiAppBar"}),{className:o,color:s="primary",enableColorOnDark:d=!1,position:l="fixed"}=n,c=ye(n,Ut),u=O({},n,{color:s,position:l,enableColorOnDark:d}),p=Vt(u);return a.jsx(Yt,O({square:!0,component:"header",ownerState:u,elevation:4,className:L(p.root,o,l==="fixed"&&"mui-fixed"),ref:r},c))}),Xt=Gt;function Qt(e){return Qe("MuiDrawer",e)}Ze("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Zt=["BackdropProps"],Jt=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],ot=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},Kt=e=>{const{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${F(r)}`,n!=="temporary"&&`paperAnchorDocked${F(r)}`]};return et(o,Qt,t)},er=he(Nt,{name:"MuiDrawer",slot:"Root",overridesResolver:ot})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),qe=he("div",{shouldForwardProp:Rt,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:ot})({flex:"0 0 auto"}),tr=he(Je,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${F(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${F(r.anchor)}`]]}})(({theme:e,ownerState:t})=>O({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),at={left:"right",right:"left",top:"down",bottom:"up"};function rr(e){return["left","right"].indexOf(e)!==-1}function nr(e,t){return e.direction==="rtl"&&rr(t)?at[t]:t}const or=x.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDrawer"}),o=me(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:l,children:c,className:u,elevation:p=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:h}={},onClose:m,open:b=!1,PaperProps:y={},SlideProps:T,TransitionComponent:j=St,transitionDuration:C=s,variant:E="temporary"}=n,_=ye(n.ModalProps,Zt),S=ye(n,Jt),N=x.useRef(!1);x.useEffect(()=>{N.current=!0},[]);const R=nr(o,d),W=O({},n,{anchor:d,elevation:p,open:b,variant:E},S),M=Kt(W),se=a.jsx(tr,O({elevation:E==="temporary"?p:0,square:!0},y,{className:L(M.paper,y.className),ownerState:W,children:c}));if(E==="permanent")return a.jsx(qe,O({className:L(M.root,M.docked,u),ownerState:W,ref:r},S,{children:se}));const le=a.jsx(j,O({in:b,direction:at[R],timeout:C,appear:N.current},T,{children:se}));return E==="persistent"?a.jsx(qe,O({className:L(M.root,M.docked,u),ownerState:W,ref:r},S,{children:le})):a.jsx(er,O({BackdropProps:O({},l,h,{transitionDuration:C}),className:L(M.root,M.modal,u),open:b,ownerState:W,onClose:m,hideBackdrop:f,ref:r},S,_,{children:le}))}),it=or;function ar(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var st=x,ir=ar(st);function We(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var lr=!!(typeof window<"u"&&window.document&&window.document.createElement);function cr(e,t,r){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof r<"u"&&typeof r!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function n(o){return o.displayName||o.name||"Component"}return function(s){if(typeof s!="function")throw new Error("Expected WrappedComponent to be a React component.");var d=[],l;function c(){l=e(d.map(function(p){return p.props})),u.canUseDOM?t(l):r&&(l=r(l))}var u=function(p){sr(f,p);function f(){return p.apply(this,arguments)||this}f.peek=function(){return l},f.rewind=function(){if(f.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var b=l;return l=void 0,d=[],b};var h=f.prototype;return h.UNSAFE_componentWillMount=function(){d.push(this),c()},h.componentDidUpdate=function(){c()},h.componentWillUnmount=function(){var b=d.indexOf(this);d.splice(b,1),c()},h.render=function(){return ir.createElement(s,this.props)},f}(st.PureComponent);return We(u,"displayName","SideEffect("+n(s)+")"),We(u,"canUseDOM",lr),u}}var dr=cr;const ur=Ce(dr);var pr=typeof Element<"u",fr=typeof Map=="function",hr=typeof Set=="function",mr=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function de(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!de(e[n],t[n]))return!1;return!0}var s;if(fr&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(n=s.next()).done;)if(!t.has(n.value[0]))return!1;for(s=e.entries();!(n=s.next()).done;)if(!de(n.value[1],t.get(n.value[0])))return!1;return!0}if(hr&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(n=s.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(mr&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(pr&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!de(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var gr=function(t,r){try{return de(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const xr=Ce(gr);/*
|
|
1
|
+
import{av as Qe,au as Ze,aw as he,a7 as Je,ax as F,aA as O,r as x,ay as Ke,az as ye,j as a,aC as I,aD as et,c0 as Nt,bQ as Rt,bj as me,c1 as St,aO as Ce,c2 as tt,c3 as ee,P as i,K as Pe,M as Ee,bZ as P,a4 as Mt,ar as ke,L as ue,T as B,b as It,as as rt,B as L,c4 as Lt,O as re,c5 as $t,U as _t,c6 as zt,c7 as Dt,c8 as Ht}from"./index-tI696upG.js";import{T as Bt}from"./Toolbar-sSwWYKZs.js";import{H as nt}from"./Hidden-3U4cjY85.js";import{d as Ft}from"./MoreHoriz-PuMXq2PC.js";import{d as qt}from"./ExpandMore-DBIVxyRD.js";const Te={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"};function Wt(e){return Qe("MuiAppBar",e)}Ze("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Ut=["className","color","enableColorOnDark","position"],Vt=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${F(t)}`,`position${F(r)}`]};return et(o,Wt,n)},ce=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Yt=he(Je,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${F(r.position)}`],t[`color${F(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return O({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&O({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&O({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&O({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:ce(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:ce(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:ce(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:ce(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Gt=x.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiAppBar"}),{className:o,color:s="primary",enableColorOnDark:d=!1,position:l="fixed"}=n,c=ye(n,Ut),u=O({},n,{color:s,position:l,enableColorOnDark:d}),p=Vt(u);return a.jsx(Yt,O({square:!0,component:"header",ownerState:u,elevation:4,className:I(p.root,o,l==="fixed"&&"mui-fixed"),ref:r},c))}),Xt=Gt;function Qt(e){return Qe("MuiDrawer",e)}Ze("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Zt=["BackdropProps"],Jt=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],ot=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},Kt=e=>{const{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${F(r)}`,n!=="temporary"&&`paperAnchorDocked${F(r)}`]};return et(o,Qt,t)},er=he(Nt,{name:"MuiDrawer",slot:"Root",overridesResolver:ot})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),qe=he("div",{shouldForwardProp:Rt,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:ot})({flex:"0 0 auto"}),tr=he(Je,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${F(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${F(r.anchor)}`]]}})(({theme:e,ownerState:t})=>O({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),at={left:"right",right:"left",top:"down",bottom:"up"};function rr(e){return["left","right"].indexOf(e)!==-1}function nr(e,t){return e.direction==="rtl"&&rr(t)?at[t]:t}const or=x.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDrawer"}),o=me(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:l,children:c,className:u,elevation:p=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:h}={},onClose:m,open:b=!1,PaperProps:y={},SlideProps:T,TransitionComponent:j=St,transitionDuration:C=s,variant:E="temporary"}=n,_=ye(n.ModalProps,Zt),S=ye(n,Jt),N=x.useRef(!1);x.useEffect(()=>{N.current=!0},[]);const R=nr(o,d),W=O({},n,{anchor:d,elevation:p,open:b,variant:E},S),M=Kt(W),se=a.jsx(tr,O({elevation:E==="temporary"?p:0,square:!0},y,{className:I(M.paper,y.className),ownerState:W,children:c}));if(E==="permanent")return a.jsx(qe,O({className:I(M.root,M.docked,u),ownerState:W,ref:r},S,{children:se}));const le=a.jsx(j,O({in:b,direction:at[R],timeout:C,appear:N.current},T,{children:se}));return E==="persistent"?a.jsx(qe,O({className:I(M.root,M.docked,u),ownerState:W,ref:r},S,{children:le})):a.jsx(er,O({BackdropProps:O({},l,h,{transitionDuration:C}),className:I(M.root,M.modal,u),open:b,ownerState:W,onClose:m,hideBackdrop:f,ref:r},S,_,{children:le}))}),it=or;function ar(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var st=x,ir=ar(st);function We(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var lr=!!(typeof window<"u"&&window.document&&window.document.createElement);function cr(e,t,r){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof r<"u"&&typeof r!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function n(o){return o.displayName||o.name||"Component"}return function(s){if(typeof s!="function")throw new Error("Expected WrappedComponent to be a React component.");var d=[],l;function c(){l=e(d.map(function(p){return p.props})),u.canUseDOM?t(l):r&&(l=r(l))}var u=function(p){sr(f,p);function f(){return p.apply(this,arguments)||this}f.peek=function(){return l},f.rewind=function(){if(f.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var b=l;return l=void 0,d=[],b};var h=f.prototype;return h.UNSAFE_componentWillMount=function(){d.push(this),c()},h.componentDidUpdate=function(){c()},h.componentWillUnmount=function(){var b=d.indexOf(this);d.splice(b,1),c()},h.render=function(){return ir.createElement(s,this.props)},f}(st.PureComponent);return We(u,"displayName","SideEffect("+n(s)+")"),We(u,"canUseDOM",lr),u}}var dr=cr;const ur=Ce(dr);var pr=typeof Element<"u",fr=typeof Map=="function",hr=typeof Set=="function",mr=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function de(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!de(e[n],t[n]))return!1;return!0}var s;if(fr&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(n=s.next()).done;)if(!t.has(n.value[0]))return!1;for(s=e.entries();!(n=s.next()).done;)if(!de(n.value[1],t.get(n.value[0])))return!1;return!0}if(hr&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(n=s.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(mr&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(pr&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!de(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var gr=function(t,r){try{return de(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const xr=Ce(gr);/*
|
|
2
2
|
object-assign
|
|
3
3
|
(c) Sindre Sorhus
|
|
4
4
|
@license MIT
|
|
5
|
-
*/var Ue=Object.getOwnPropertySymbols,vr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable;function yr(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Tr(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(n.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(s){o[s]=s}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var wr=Tr()?Object.assign:function(e,t){for(var r,n=yr(e),o,s=1;s<arguments.length;s++){r=Object(arguments[s]);for(var d in r)vr.call(r,d)&&(n[d]=r[d]);if(Ue){o=Ue(r);for(var l=0;l<o.length;l++)br.call(r,o[l])&&(n[o[l]]=r[o[l]])}}return n};const jr=Ce(wr);var U={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(g).map(function(e){return g[e]});var w={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},pe={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},te={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},Ar=Object.keys(pe).reduce(function(e,t){return e[pe[t]]=t,e},{}),Cr=[g.NOSCRIPT,g.SCRIPT,g.STYLE],$="data-react-helmet",Pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Er=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},kr=function(){function e(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Or=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Ve=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},Nr=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},we=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r===!1?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Rr=function(t){var r=Y(t,g.TITLE),n=Y(t,te.TITLE_TEMPLATE);if(n&&r)return n.replace(/%s/g,function(){return Array.isArray(r)?r.join(""):r});var o=Y(t,te.DEFAULT_TITLE);return r||o||void 0},Sr=function(t){return Y(t,te.ON_CHANGE_CLIENT_STATE)||function(){}},be=function(t,r){return r.filter(function(n){return typeof n[t]<"u"}).map(function(n){return n[t]}).reduce(function(n,o){return k({},n,o)},{})},Mr=function(t,r){return r.filter(function(n){return typeof n[g.BASE]<"u"}).map(function(n){return n[g.BASE]}).reverse().reduce(function(n,o){if(!n.length)for(var s=Object.keys(o),d=0;d<s.length;d++){var l=s[d],c=l.toLowerCase();if(t.indexOf(c)!==-1&&o[c])return n.concat(o)}return n},[])},J=function(t,r,n){var o={};return n.filter(function(s){return Array.isArray(s[t])?!0:(typeof s[t]<"u"&&_r("Helmet: "+t+' should be of type "Array". Instead found type "'+Pr(s[t])+'"'),!1)}).map(function(s){return s[t]}).reverse().reduce(function(s,d){var l={};d.filter(function(h){for(var m=void 0,b=Object.keys(h),y=0;y<b.length;y++){var T=b[y],j=T.toLowerCase();r.indexOf(j)!==-1&&!(m===w.REL&&h[m].toLowerCase()==="canonical")&&!(j===w.REL&&h[j].toLowerCase()==="stylesheet")&&(m=j),r.indexOf(T)!==-1&&(T===w.INNER_HTML||T===w.CSS_TEXT||T===w.ITEM_PROP)&&(m=T)}if(!m||!h[m])return!1;var C=h[m].toLowerCase();return o[m]||(o[m]={}),l[m]||(l[m]={}),o[m][C]?!1:(l[m][C]=!0,!0)}).reverse().forEach(function(h){return s.push(h)});for(var c=Object.keys(l),u=0;u<c.length;u++){var p=c[u],f=jr({},o[p],l[p]);o[p]=f}return s},[]).reverse()},Y=function(t,r){for(var n=t.length-1;n>=0;n--){var o=t[n];if(o.hasOwnProperty(r))return o[r]}return null},Lr=function(t){return{baseTag:Mr([w.HREF,w.TARGET],t),bodyAttributes:be(U.BODY,t),defer:Y(t,te.DEFER),encode:Y(t,te.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:be(U.HTML,t),linkTags:J(g.LINK,[w.REL,w.HREF],t),metaTags:J(g.META,[w.NAME,w.CHARSET,w.HTTPEQUIV,w.PROPERTY,w.ITEM_PROP],t),noscriptTags:J(g.NOSCRIPT,[w.INNER_HTML],t),onChangeClientState:Sr(t),scriptTags:J(g.SCRIPT,[w.SRC,w.INNER_HTML],t),styleTags:J(g.STYLE,[w.CSS_TEXT],t),title:Rr(t),titleAttributes:be(U.TITLE,t)}},je=function(){var e=Date.now();return function(t){var r=Date.now();r-e>16?(e=r,t(r)):setTimeout(function(){je(t)},0)}}(),Ye=function(t){return clearTimeout(t)},Ir=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||je:tt.requestAnimationFrame||je,$r=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Ye:tt.cancelAnimationFrame||Ye,_r=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},K=null,zr=function(t){K&&$r(K),t.defer?K=Ir(function(){Ge(t,function(){K=null})}):(Ge(t),K=null)},Ge=function(t,r){var n=t.baseTag,o=t.bodyAttributes,s=t.htmlAttributes,d=t.linkTags,l=t.metaTags,c=t.noscriptTags,u=t.onChangeClientState,p=t.scriptTags,f=t.styleTags,h=t.title,m=t.titleAttributes;Ae(g.BODY,o),Ae(g.HTML,s),Dr(h,m);var b={baseTag:V(g.BASE,n),linkTags:V(g.LINK,d),metaTags:V(g.META,l),noscriptTags:V(g.NOSCRIPT,c),scriptTags:V(g.SCRIPT,p),styleTags:V(g.STYLE,f)},y={},T={};Object.keys(b).forEach(function(j){var C=b[j],E=C.newTags,_=C.oldTags;E.length&&(y[j]=E),_.length&&(T[j]=b[j].oldTags)}),r&&r(),u(t,y,T)},lt=function(t){return Array.isArray(t)?t.join(""):t},Dr=function(t,r){typeof t<"u"&&document.title!==t&&(document.title=lt(t)),Ae(g.TITLE,r)},Ae=function(t,r){var n=document.getElementsByTagName(t)[0];if(n){for(var o=n.getAttribute($),s=o?o.split(","):[],d=[].concat(s),l=Object.keys(r),c=0;c<l.length;c++){var u=l[c],p=r[u]||"";n.getAttribute(u)!==p&&n.setAttribute(u,p),s.indexOf(u)===-1&&s.push(u);var f=d.indexOf(u);f!==-1&&d.splice(f,1)}for(var h=d.length-1;h>=0;h--)n.removeAttribute(d[h]);s.length===d.length?n.removeAttribute($):n.getAttribute($)!==l.join(",")&&n.setAttribute($,l.join(","))}},V=function(t,r){var n=document.head||document.querySelector(g.HEAD),o=n.querySelectorAll(t+"["+$+"]"),s=Array.prototype.slice.call(o),d=[],l=void 0;return r&&r.length&&r.forEach(function(c){var u=document.createElement(t);for(var p in c)if(c.hasOwnProperty(p))if(p===w.INNER_HTML)u.innerHTML=c.innerHTML;else if(p===w.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=c.cssText:u.appendChild(document.createTextNode(c.cssText));else{var f=typeof c[p]>"u"?"":c[p];u.setAttribute(p,f)}u.setAttribute($,"true"),s.some(function(h,m){return l=m,u.isEqualNode(h)})?s.splice(l,1):d.push(u)}),s.forEach(function(c){return c.parentNode.removeChild(c)}),d.forEach(function(c){return n.appendChild(c)}),{oldTags:s,newTags:d}},ct=function(t){return Object.keys(t).reduce(function(r,n){var o=typeof t[n]<"u"?n+'="'+t[n]+'"':""+n;return r?r+" "+o:o},"")},Hr=function(t,r,n,o){var s=ct(n),d=lt(r);return s?"<"+t+" "+$+'="true" '+s+">"+we(d,o)+"</"+t+">":"<"+t+" "+$+'="true">'+we(d,o)+"</"+t+">"},Br=function(t,r,n){return r.reduce(function(o,s){var d=Object.keys(s).filter(function(u){return!(u===w.INNER_HTML||u===w.CSS_TEXT)}).reduce(function(u,p){var f=typeof s[p]>"u"?p:p+'="'+we(s[p],n)+'"';return u?u+" "+f:f},""),l=s.innerHTML||s.cssText||"",c=Cr.indexOf(t)===-1;return o+"<"+t+" "+$+'="true" '+d+(c?"/>":">"+l+"</"+t+">")},"")},dt=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,o){return n[pe[o]||o]=t[o],n},r)},Fr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,o){return n[Ar[o]||o]=t[o],n},r)},qr=function(t,r,n){var o,s=(o={key:r},o[$]=!0,o),d=dt(n,s);return[ee.createElement(g.TITLE,d,r)]},Wr=function(t,r){return r.map(function(n,o){var s,d=(s={key:o},s[$]=!0,s);return Object.keys(n).forEach(function(l){var c=pe[l]||l;if(c===w.INNER_HTML||c===w.CSS_TEXT){var u=n.innerHTML||n.cssText;d.dangerouslySetInnerHTML={__html:u}}else d[c]=n[l]}),ee.createElement(t,d)})},H=function(t,r,n){switch(t){case g.TITLE:return{toComponent:function(){return qr(t,r.title,r.titleAttributes)},toString:function(){return Hr(t,r.title,r.titleAttributes,n)}};case U.BODY:case U.HTML:return{toComponent:function(){return dt(r)},toString:function(){return ct(r)}};default:return{toComponent:function(){return Wr(t,r)},toString:function(){return Br(t,r,n)}}}},ut=function(t){var r=t.baseTag,n=t.bodyAttributes,o=t.encode,s=t.htmlAttributes,d=t.linkTags,l=t.metaTags,c=t.noscriptTags,u=t.scriptTags,p=t.styleTags,f=t.title,h=f===void 0?"":f,m=t.titleAttributes;return{base:H(g.BASE,r,o),bodyAttributes:H(U.BODY,n,o),htmlAttributes:H(U.HTML,s,o),link:H(g.LINK,d,o),meta:H(g.META,l,o),noscript:H(g.NOSCRIPT,c,o),script:H(g.SCRIPT,u,o),style:H(g.STYLE,p,o),title:H(g.TITLE,{title:h,titleAttributes:m},o)}},Ur=function(t){var r,n;return n=r=function(o){Or(s,o);function s(){return Er(this,s),Nr(this,o.apply(this,arguments))}return s.prototype.shouldComponentUpdate=function(l){return!xr(this.props,l)},s.prototype.mapNestedChildrenToProps=function(l,c){if(!c)return null;switch(l.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:c};case g.STYLE:return{cssText:c}}throw new Error("<"+l.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},s.prototype.flattenArrayTypeChildren=function(l){var c,u=l.child,p=l.arrayTypeChildren,f=l.newChildProps,h=l.nestedChildren;return k({},p,(c={},c[u.type]=[].concat(p[u.type]||[],[k({},f,this.mapNestedChildrenToProps(u,h))]),c))},s.prototype.mapObjectTypeChildren=function(l){var c,u,p=l.child,f=l.newProps,h=l.newChildProps,m=l.nestedChildren;switch(p.type){case g.TITLE:return k({},f,(c={},c[p.type]=m,c.titleAttributes=k({},h),c));case g.BODY:return k({},f,{bodyAttributes:k({},h)});case g.HTML:return k({},f,{htmlAttributes:k({},h)})}return k({},f,(u={},u[p.type]=k({},h),u))},s.prototype.mapArrayTypeChildrenToProps=function(l,c){var u=k({},c);return Object.keys(l).forEach(function(p){var f;u=k({},u,(f={},f[p]=l[p],f))}),u},s.prototype.warnOnInvalidChildren=function(l,c){return!0},s.prototype.mapChildrenToProps=function(l,c){var u=this,p={};return ee.Children.forEach(l,function(f){if(!(!f||!f.props)){var h=f.props,m=h.children,b=Ve(h,["children"]),y=Fr(b);switch(u.warnOnInvalidChildren(f,m),f.type){case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:p=u.flattenArrayTypeChildren({child:f,arrayTypeChildren:p,newChildProps:y,nestedChildren:m});break;default:c=u.mapObjectTypeChildren({child:f,newProps:c,newChildProps:y,nestedChildren:m});break}}}),c=this.mapArrayTypeChildrenToProps(p,c),c},s.prototype.render=function(){var l=this.props,c=l.children,u=Ve(l,["children"]),p=k({},u);return c&&(p=this.mapChildrenToProps(c,p)),ee.createElement(t,p)},kr(s,null,[{key:"canUseDOM",set:function(l){t.canUseDOM=l}}]),s}(ee.Component),r.propTypes={base:i.object,bodyAttributes:i.object,children:i.oneOfType([i.arrayOf(i.node),i.node]),defaultTitle:i.string,defer:i.bool,encodeSpecialCharacters:i.bool,htmlAttributes:i.object,link:i.arrayOf(i.object),meta:i.arrayOf(i.object),noscript:i.arrayOf(i.object),onChangeClientState:i.func,script:i.arrayOf(i.object),style:i.arrayOf(i.object),title:i.string,titleAttributes:i.object,titleTemplate:i.string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=t.peek,r.rewind=function(){var o=t.rewind();return o||(o=ut({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},n},Vr=function(){return null},Yr=ur(Lr,zr,ut)(Vr),fe=Ur(Yr);fe.renderStatic=fe.rewind;var Oe={},Gr=Ee;Object.defineProperty(Oe,"__esModule",{value:!0});var pt=Oe.default=void 0,Xr=Gr(Pe()),Qr=a;pt=Oe.default=(0,Xr.default)((0,Qr.jsx)("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull");var Ne={},Zr=Ee;Object.defineProperty(Ne,"__esModule",{value:!0});var ft=Ne.default=void 0,Jr=Zr(Pe()),Kr=a;ft=Ne.default=(0,Jr.default)((0,Kr.jsx)("path",{d:"M22 3.41 16.71 8.7 20 12h-8V4l3.29 3.29L20.59 2zM3.41 22l5.29-5.29L12 20v-8H4l3.29 3.29L2 20.59z"}),"CloseFullscreen");function Re({name:e,size:t,alt:r,color:n,style:o,prefix:s,showBadge:d,...l}){const c=`${s}/${e}-${n.replace(/^#/,"")}.png`;return a.jsxs(en,{style:{width:t,height:t},children:[a.jsx(Mt,{width:t,height:t,alt:r||e,src:c,style:Object.assign({width:t},o),...l}),d&&a.jsx("i",{className:"badge-point"})]})}Re.propTypes={name:i.string.isRequired,size:i.number,color:i.string,alt:i.string,style:i.object,prefix:i.string,showBadge:i.bool};Re.defaultProps={size:36,color:"#000000",alt:"",style:{},prefix:"/images",showBadge:!1};const en=P("div")`
|
|
5
|
+
*/var Ue=Object.getOwnPropertySymbols,vr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable;function yr(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Tr(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(n.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(s){o[s]=s}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var wr=Tr()?Object.assign:function(e,t){for(var r,n=yr(e),o,s=1;s<arguments.length;s++){r=Object(arguments[s]);for(var d in r)vr.call(r,d)&&(n[d]=r[d]);if(Ue){o=Ue(r);for(var l=0;l<o.length;l++)br.call(r,o[l])&&(n[o[l]]=r[o[l]])}}return n};const jr=Ce(wr);var U={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(g).map(function(e){return g[e]});var w={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},pe={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},te={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},Ar=Object.keys(pe).reduce(function(e,t){return e[pe[t]]=t,e},{}),Cr=[g.NOSCRIPT,g.SCRIPT,g.STYLE],$="data-react-helmet",Pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Er=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},kr=function(){function e(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Or=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Ve=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},Nr=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},we=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r===!1?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Rr=function(t){var r=Y(t,g.TITLE),n=Y(t,te.TITLE_TEMPLATE);if(n&&r)return n.replace(/%s/g,function(){return Array.isArray(r)?r.join(""):r});var o=Y(t,te.DEFAULT_TITLE);return r||o||void 0},Sr=function(t){return Y(t,te.ON_CHANGE_CLIENT_STATE)||function(){}},be=function(t,r){return r.filter(function(n){return typeof n[t]<"u"}).map(function(n){return n[t]}).reduce(function(n,o){return k({},n,o)},{})},Mr=function(t,r){return r.filter(function(n){return typeof n[g.BASE]<"u"}).map(function(n){return n[g.BASE]}).reverse().reduce(function(n,o){if(!n.length)for(var s=Object.keys(o),d=0;d<s.length;d++){var l=s[d],c=l.toLowerCase();if(t.indexOf(c)!==-1&&o[c])return n.concat(o)}return n},[])},J=function(t,r,n){var o={};return n.filter(function(s){return Array.isArray(s[t])?!0:(typeof s[t]<"u"&&_r("Helmet: "+t+' should be of type "Array". Instead found type "'+Pr(s[t])+'"'),!1)}).map(function(s){return s[t]}).reverse().reduce(function(s,d){var l={};d.filter(function(h){for(var m=void 0,b=Object.keys(h),y=0;y<b.length;y++){var T=b[y],j=T.toLowerCase();r.indexOf(j)!==-1&&!(m===w.REL&&h[m].toLowerCase()==="canonical")&&!(j===w.REL&&h[j].toLowerCase()==="stylesheet")&&(m=j),r.indexOf(T)!==-1&&(T===w.INNER_HTML||T===w.CSS_TEXT||T===w.ITEM_PROP)&&(m=T)}if(!m||!h[m])return!1;var C=h[m].toLowerCase();return o[m]||(o[m]={}),l[m]||(l[m]={}),o[m][C]?!1:(l[m][C]=!0,!0)}).reverse().forEach(function(h){return s.push(h)});for(var c=Object.keys(l),u=0;u<c.length;u++){var p=c[u],f=jr({},o[p],l[p]);o[p]=f}return s},[]).reverse()},Y=function(t,r){for(var n=t.length-1;n>=0;n--){var o=t[n];if(o.hasOwnProperty(r))return o[r]}return null},Ir=function(t){return{baseTag:Mr([w.HREF,w.TARGET],t),bodyAttributes:be(U.BODY,t),defer:Y(t,te.DEFER),encode:Y(t,te.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:be(U.HTML,t),linkTags:J(g.LINK,[w.REL,w.HREF],t),metaTags:J(g.META,[w.NAME,w.CHARSET,w.HTTPEQUIV,w.PROPERTY,w.ITEM_PROP],t),noscriptTags:J(g.NOSCRIPT,[w.INNER_HTML],t),onChangeClientState:Sr(t),scriptTags:J(g.SCRIPT,[w.SRC,w.INNER_HTML],t),styleTags:J(g.STYLE,[w.CSS_TEXT],t),title:Rr(t),titleAttributes:be(U.TITLE,t)}},je=function(){var e=Date.now();return function(t){var r=Date.now();r-e>16?(e=r,t(r)):setTimeout(function(){je(t)},0)}}(),Ye=function(t){return clearTimeout(t)},Lr=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||je:tt.requestAnimationFrame||je,$r=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Ye:tt.cancelAnimationFrame||Ye,_r=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},K=null,zr=function(t){K&&$r(K),t.defer?K=Lr(function(){Ge(t,function(){K=null})}):(Ge(t),K=null)},Ge=function(t,r){var n=t.baseTag,o=t.bodyAttributes,s=t.htmlAttributes,d=t.linkTags,l=t.metaTags,c=t.noscriptTags,u=t.onChangeClientState,p=t.scriptTags,f=t.styleTags,h=t.title,m=t.titleAttributes;Ae(g.BODY,o),Ae(g.HTML,s),Dr(h,m);var b={baseTag:V(g.BASE,n),linkTags:V(g.LINK,d),metaTags:V(g.META,l),noscriptTags:V(g.NOSCRIPT,c),scriptTags:V(g.SCRIPT,p),styleTags:V(g.STYLE,f)},y={},T={};Object.keys(b).forEach(function(j){var C=b[j],E=C.newTags,_=C.oldTags;E.length&&(y[j]=E),_.length&&(T[j]=b[j].oldTags)}),r&&r(),u(t,y,T)},lt=function(t){return Array.isArray(t)?t.join(""):t},Dr=function(t,r){typeof t<"u"&&document.title!==t&&(document.title=lt(t)),Ae(g.TITLE,r)},Ae=function(t,r){var n=document.getElementsByTagName(t)[0];if(n){for(var o=n.getAttribute($),s=o?o.split(","):[],d=[].concat(s),l=Object.keys(r),c=0;c<l.length;c++){var u=l[c],p=r[u]||"";n.getAttribute(u)!==p&&n.setAttribute(u,p),s.indexOf(u)===-1&&s.push(u);var f=d.indexOf(u);f!==-1&&d.splice(f,1)}for(var h=d.length-1;h>=0;h--)n.removeAttribute(d[h]);s.length===d.length?n.removeAttribute($):n.getAttribute($)!==l.join(",")&&n.setAttribute($,l.join(","))}},V=function(t,r){var n=document.head||document.querySelector(g.HEAD),o=n.querySelectorAll(t+"["+$+"]"),s=Array.prototype.slice.call(o),d=[],l=void 0;return r&&r.length&&r.forEach(function(c){var u=document.createElement(t);for(var p in c)if(c.hasOwnProperty(p))if(p===w.INNER_HTML)u.innerHTML=c.innerHTML;else if(p===w.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=c.cssText:u.appendChild(document.createTextNode(c.cssText));else{var f=typeof c[p]>"u"?"":c[p];u.setAttribute(p,f)}u.setAttribute($,"true"),s.some(function(h,m){return l=m,u.isEqualNode(h)})?s.splice(l,1):d.push(u)}),s.forEach(function(c){return c.parentNode.removeChild(c)}),d.forEach(function(c){return n.appendChild(c)}),{oldTags:s,newTags:d}},ct=function(t){return Object.keys(t).reduce(function(r,n){var o=typeof t[n]<"u"?n+'="'+t[n]+'"':""+n;return r?r+" "+o:o},"")},Hr=function(t,r,n,o){var s=ct(n),d=lt(r);return s?"<"+t+" "+$+'="true" '+s+">"+we(d,o)+"</"+t+">":"<"+t+" "+$+'="true">'+we(d,o)+"</"+t+">"},Br=function(t,r,n){return r.reduce(function(o,s){var d=Object.keys(s).filter(function(u){return!(u===w.INNER_HTML||u===w.CSS_TEXT)}).reduce(function(u,p){var f=typeof s[p]>"u"?p:p+'="'+we(s[p],n)+'"';return u?u+" "+f:f},""),l=s.innerHTML||s.cssText||"",c=Cr.indexOf(t)===-1;return o+"<"+t+" "+$+'="true" '+d+(c?"/>":">"+l+"</"+t+">")},"")},dt=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,o){return n[pe[o]||o]=t[o],n},r)},Fr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,o){return n[Ar[o]||o]=t[o],n},r)},qr=function(t,r,n){var o,s=(o={key:r},o[$]=!0,o),d=dt(n,s);return[ee.createElement(g.TITLE,d,r)]},Wr=function(t,r){return r.map(function(n,o){var s,d=(s={key:o},s[$]=!0,s);return Object.keys(n).forEach(function(l){var c=pe[l]||l;if(c===w.INNER_HTML||c===w.CSS_TEXT){var u=n.innerHTML||n.cssText;d.dangerouslySetInnerHTML={__html:u}}else d[c]=n[l]}),ee.createElement(t,d)})},H=function(t,r,n){switch(t){case g.TITLE:return{toComponent:function(){return qr(t,r.title,r.titleAttributes)},toString:function(){return Hr(t,r.title,r.titleAttributes,n)}};case U.BODY:case U.HTML:return{toComponent:function(){return dt(r)},toString:function(){return ct(r)}};default:return{toComponent:function(){return Wr(t,r)},toString:function(){return Br(t,r,n)}}}},ut=function(t){var r=t.baseTag,n=t.bodyAttributes,o=t.encode,s=t.htmlAttributes,d=t.linkTags,l=t.metaTags,c=t.noscriptTags,u=t.scriptTags,p=t.styleTags,f=t.title,h=f===void 0?"":f,m=t.titleAttributes;return{base:H(g.BASE,r,o),bodyAttributes:H(U.BODY,n,o),htmlAttributes:H(U.HTML,s,o),link:H(g.LINK,d,o),meta:H(g.META,l,o),noscript:H(g.NOSCRIPT,c,o),script:H(g.SCRIPT,u,o),style:H(g.STYLE,p,o),title:H(g.TITLE,{title:h,titleAttributes:m},o)}},Ur=function(t){var r,n;return n=r=function(o){Or(s,o);function s(){return Er(this,s),Nr(this,o.apply(this,arguments))}return s.prototype.shouldComponentUpdate=function(l){return!xr(this.props,l)},s.prototype.mapNestedChildrenToProps=function(l,c){if(!c)return null;switch(l.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:c};case g.STYLE:return{cssText:c}}throw new Error("<"+l.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},s.prototype.flattenArrayTypeChildren=function(l){var c,u=l.child,p=l.arrayTypeChildren,f=l.newChildProps,h=l.nestedChildren;return k({},p,(c={},c[u.type]=[].concat(p[u.type]||[],[k({},f,this.mapNestedChildrenToProps(u,h))]),c))},s.prototype.mapObjectTypeChildren=function(l){var c,u,p=l.child,f=l.newProps,h=l.newChildProps,m=l.nestedChildren;switch(p.type){case g.TITLE:return k({},f,(c={},c[p.type]=m,c.titleAttributes=k({},h),c));case g.BODY:return k({},f,{bodyAttributes:k({},h)});case g.HTML:return k({},f,{htmlAttributes:k({},h)})}return k({},f,(u={},u[p.type]=k({},h),u))},s.prototype.mapArrayTypeChildrenToProps=function(l,c){var u=k({},c);return Object.keys(l).forEach(function(p){var f;u=k({},u,(f={},f[p]=l[p],f))}),u},s.prototype.warnOnInvalidChildren=function(l,c){return!0},s.prototype.mapChildrenToProps=function(l,c){var u=this,p={};return ee.Children.forEach(l,function(f){if(!(!f||!f.props)){var h=f.props,m=h.children,b=Ve(h,["children"]),y=Fr(b);switch(u.warnOnInvalidChildren(f,m),f.type){case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:p=u.flattenArrayTypeChildren({child:f,arrayTypeChildren:p,newChildProps:y,nestedChildren:m});break;default:c=u.mapObjectTypeChildren({child:f,newProps:c,newChildProps:y,nestedChildren:m});break}}}),c=this.mapArrayTypeChildrenToProps(p,c),c},s.prototype.render=function(){var l=this.props,c=l.children,u=Ve(l,["children"]),p=k({},u);return c&&(p=this.mapChildrenToProps(c,p)),ee.createElement(t,p)},kr(s,null,[{key:"canUseDOM",set:function(l){t.canUseDOM=l}}]),s}(ee.Component),r.propTypes={base:i.object,bodyAttributes:i.object,children:i.oneOfType([i.arrayOf(i.node),i.node]),defaultTitle:i.string,defer:i.bool,encodeSpecialCharacters:i.bool,htmlAttributes:i.object,link:i.arrayOf(i.object),meta:i.arrayOf(i.object),noscript:i.arrayOf(i.object),onChangeClientState:i.func,script:i.arrayOf(i.object),style:i.arrayOf(i.object),title:i.string,titleAttributes:i.object,titleTemplate:i.string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=t.peek,r.rewind=function(){var o=t.rewind();return o||(o=ut({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},n},Vr=function(){return null},Yr=ur(Ir,zr,ut)(Vr),fe=Ur(Yr);fe.renderStatic=fe.rewind;var Oe={},Gr=Ee;Object.defineProperty(Oe,"__esModule",{value:!0});var pt=Oe.default=void 0,Xr=Gr(Pe()),Qr=a;pt=Oe.default=(0,Xr.default)((0,Qr.jsx)("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull");var Ne={},Zr=Ee;Object.defineProperty(Ne,"__esModule",{value:!0});var ft=Ne.default=void 0,Jr=Zr(Pe()),Kr=a;ft=Ne.default=(0,Jr.default)((0,Kr.jsx)("path",{d:"M22 3.41 16.71 8.7 20 12h-8V4l3.29 3.29L20.59 2zM3.41 22l5.29-5.29L12 20v-8H4l3.29 3.29L2 20.59z"}),"CloseFullscreen");function Re({name:e,size:t,alt:r,color:n,style:o,prefix:s,showBadge:d,...l}){const c=`${s}/${e}-${n.replace(/^#/,"")}.png`;return a.jsxs(en,{style:{width:t,height:t},children:[a.jsx(Mt,{width:t,height:t,alt:r||e,src:c,style:Object.assign({width:t},o),...l}),d&&a.jsx("i",{className:"badge-point"})]})}Re.propTypes={name:i.string.isRequired,size:i.number,color:i.string,alt:i.string,style:i.object,prefix:i.string,showBadge:i.bool};Re.defaultProps={size:36,color:"#000000",alt:"",style:{},prefix:"/images",showBadge:!1};const en=P("div")`
|
|
6
6
|
position: relative;
|
|
7
7
|
.badge-point {
|
|
8
8
|
position: absolute;
|
|
@@ -45,7 +45,7 @@ object-assign
|
|
|
45
45
|
display: block;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
`),Xe="linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))",nn=P(
|
|
48
|
+
`),Xe="linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))",nn=P(It)`
|
|
49
49
|
&& {
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: column;
|
|
@@ -144,7 +144,7 @@ object-assign
|
|
|
144
144
|
display: block;
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
`;function
|
|
147
|
+
`;function Ie({children:e,brand:t,brandAddon:r,description:n,addons:o,onToggleMenu:s,homeUrl:d,logo:l,...c}){return a.jsx(ln,{position:"sticky",className:"header",...c,children:a.jsxs(Bt,{disableGutters:!1,className:"header-toolbar",children:[a.jsx(rt,{color:"inherit","aria-label":"open drawer",edge:"start",className:"header-menu","aira-label":"header menu button",onClick:s,children:a.jsx(ge,{})}),a.jsxs(ue,{to:d,className:"header-link",children:[a.jsx(nt,{mdDown:!0,children:a.jsx("div",{className:"header-logo",children:l||a.jsx(ne,{showText:!1})})}),a.jsxs("div",{className:"header-title",children:[a.jsxs(B,{component:"h2",noWrap:!0,className:"header-title__primary",children:[t,r]}),a.jsx(B,{component:"p",noWrap:!0,className:"header-title__secondary",children:n})]})]}),a.jsx(L,{flexGrow:1}),!!e&&a.jsx("div",{className:"header-children",children:e}),a.jsx("div",{className:"header-addons",children:o})]})})}Ie.propTypes={onToggleMenu:i.func.isRequired,brand:i.string.isRequired,brandAddon:i.object,description:i.any.isRequired,children:i.any,addons:i.any,homeUrl:i.string,logo:i.any};Ie.defaultProps={children:null,addons:null,brandAddon:null,homeUrl:"/",logo:null};function X(e){var f;const t=Lt(e,X,["dark","style"]),{className:r,copyStart:n,style:o,brand:s,dark:d,addon:l}=t,c=`${new Date().getFullYear()}`,u=`${n}`,p=c===u?c:`${u}-${c}`;return a.jsxs(cn,{className:r,style:o,dark:d,children:[a.jsx(re,{maxWidth:!1,children:a.jsxs(B,{component:"div",className:"footer",children:[a.jsxs(B,{component:"p",className:"footer-item",children:[a.jsxs("span",{className:"footer-copy",children:["Copyright © ",p," "]}),a.jsx("span",{className:"footer-brand",children:s})]}),l&&a.jsx(B,{component:"div",className:"footer-item",sx:{order:{xs:"-1",md:"initial"},ml:{xs:0,md:"auto"},width:{xs:"100%",md:"auto"}},children:l}),a.jsxs(B,{component:"p",className:"footer-item",style:{justifyContent:"flex-end",flexShrink:0},children:["Powered by",a.jsx(ne,{mode:d?"light":"dark",layout:"horizontal",className:"logo-container"})]})]})}),a.jsx(L,{position:"absolute",right:16,bottom:0,fontSize:12,sx:{color:"transparent","::selection":{background:"#000",color:"#fff"}},children:(f=window==null?void 0:window.blocklet)==null?void 0:f.version})]})}X.propTypes={dark:i.bool,className:i.string,copyStart:i.oneOfType([i.string,i.number]),brand:i.string,style:i.object,addon:i.node};X.defaultProps={dark:!1,brand:"ArcBlock",copyStart:"2017",className:"",style:{},addon:null};const cn=P("div",{shouldForwardProp:e=>e!=="dark"})`
|
|
148
148
|
position: relative;
|
|
149
149
|
margin-top: 64px;
|
|
150
150
|
padding: 24px 0 32px;
|
|
@@ -232,7 +232,7 @@ object-assign
|
|
|
232
232
|
box-shadow: 2px 16px 10px 0 rgba(0, 0, 0, ${e=>e.theme.mode==="light"?.05:.5});
|
|
233
233
|
border: 0;
|
|
234
234
|
}
|
|
235
|
-
`;function
|
|
235
|
+
`;function Le({children:e,title:t,brand:r,description:n,brandAddon:o,headerAddon:s,images:d,links:l,prefix:c,fullWidth:u,contentLayout:p,className:f,homeUrl:h,logo:m,...b}){const T=$t(document.body),j=(T==null?void 0:T.width)||0,[C,E]=x.useState(j>=960?"permanent":"temporary"),[_,S]=x.useState(C==="permanent");x.useEffect(()=>{const q=j>=960?"permanent":"temporary";E(q),S(q!=="temporary")},[j]);const N=()=>{S(!_)},R=u||p==="row";return a.jsxs(dn,{className:`dashboard ${f}`,...b,children:[a.jsx(fe,{title:`${t}-${r}`}),a.jsx(Ie,{className:"dashboard__header",onToggleMenu:N,brand:r,brandAddon:o,description:n,addons:s,homeUrl:h,logo:m}),a.jsxs(L,{display:"flex",className:"dashboard__body",children:[a.jsx(it,{variant:C,className:"drawer",classes:{paper:"drawerPaper"},open:_,onClose:N,ModalProps:{disablePortal:!0,keepMounted:!0},children:a.jsx(Se,{className:"dashboard__sidebar",images:d,links:l,prefix:c,logo:m})}),a.jsxs(L,{className:"dashboard__main",children:[a.jsx(re,{maxWidth:R?!1:"lg",className:"dashboard__content",children:e}),a.jsx(X,{})]})]})]})}Le.propTypes={children:i.any.isRequired,title:i.string,brand:i.string.isRequired,links:i.array.isRequired,images:i.object.isRequired,brandAddon:i.object,description:i.any.isRequired,headerAddon:i.any,prefix:i.string,contentLayout:i.oneOf(["row","column"]),fullWidth:i.bool,className:i.string,homeUrl:i.string,logo:i.any};Le.defaultProps={title:"Home",contentLayout:"column",headerAddon:null,brandAddon:null,prefix:"/images",fullWidth:!1,className:"",homeUrl:"/",logo:null};function vt({height:e,...t}){return a.jsx(un,{height:e,...t})}vt.propTypes={height:i.oneOfType([i.number,i.string]).isRequired};const un=P(L)`
|
|
236
236
|
overflow: hidden;
|
|
237
237
|
&:before {
|
|
238
238
|
content: '';
|
|
@@ -245,7 +245,7 @@ object-assign
|
|
|
245
245
|
float: left;
|
|
246
246
|
white-space: nowrap;
|
|
247
247
|
}
|
|
248
|
-
`;function Q({logo:e,brand:t,brandAddon:r,description:n,children:o,addons:s,prepend:d,align:l,maxWidth:c,homeLink:u,...p}){const f=x.useRef(),[h,m]=x.useState("0px"),b={minWidth:h};x.useEffect(()=>{f.current&&m(`${f.current.offsetWidth}px`)},[]);const y=()=>{const T=a.jsxs(a.Fragment,{children:[e&&a.jsx("div",{className:"header-logo",ref:f,children:e}),t&&a.jsx(vt,{height:44,sx:{flexShrink:{xs:1}},children:a.jsxs("div",{className:"header-brand",children:[a.jsx("div",{className:"header-brand-title",children:a.jsx("h2",{children:t})}),a.jsx("div",{className:"header-brand-desc",children:n})]})})]});return typeof u=="function"?u(T):a.jsx("a",{href:u,children:T})};return a.jsx(pn,{...p,children:a.jsxs(re,{maxWidth:c,className:"header-container",children:[d,a.jsx("div",{className:"header-brand-wrapper",style:b,children:y()}),a.jsx("div",{className:"header-brand-addon",children:r}),l==="right"&&a.jsx(
|
|
248
|
+
`;function Q({logo:e,brand:t,brandAddon:r,description:n,children:o,addons:s,prepend:d,align:l,maxWidth:c,homeLink:u,...p}){const f=x.useRef(),[h,m]=x.useState("0px"),b={minWidth:h};x.useEffect(()=>{f.current&&m(`${f.current.offsetWidth}px`)},[]);const y=()=>{const T=a.jsxs(a.Fragment,{children:[e&&a.jsx("div",{className:"header-logo",ref:f,children:e}),t&&a.jsx(vt,{height:44,sx:{flexShrink:{xs:1}},children:a.jsxs("div",{className:"header-brand",children:[a.jsx("div",{className:"header-brand-title",children:a.jsx("h2",{children:t})}),a.jsx("div",{className:"header-brand-desc",children:n})]})})]});return typeof u=="function"?u(T):a.jsx("a",{href:u,children:T})};return a.jsx(pn,{...p,children:a.jsxs(re,{maxWidth:c,className:"header-container",children:[d,a.jsx("div",{className:"header-brand-wrapper",style:b,children:y()}),a.jsx("div",{className:"header-brand-addon",children:r}),l==="right"&&a.jsx(L,{flexGrow:1}),o,l==="left"&&a.jsx(L,{flexGrow:1}),a.jsx("div",{className:"header-addons",children:s})]})})}Q.propTypes={logo:i.node,brand:i.node,brandAddon:i.node,description:i.node,children:i.node,addons:i.node,prepend:i.node,align:i.oneOf(["left","right"]),maxWidth:i.oneOfType([i.string,i.oneOf(["xs","sm","md","lg","xl",!1])]),homeLink:i.oneOfType([i.string,i.func])};Q.defaultProps={logo:null,brand:null,brandAddon:null,description:null,children:null,addons:null,prepend:null,align:"left",maxWidth:void 0,homeLink:"/"};const pn=P("div")`
|
|
249
249
|
position: relative;
|
|
250
250
|
z-index: ${e=>e.theme.zIndex.appBar};
|
|
251
251
|
font-size: 14px;
|
|
@@ -536,7 +536,7 @@ object-assign
|
|
|
536
536
|
.navmenu-sub--opened > .navmenu-sub-container {
|
|
537
537
|
display: block;
|
|
538
538
|
}
|
|
539
|
-
`,_e=x.createContext();function yt(e){return e?x.Children.toArray(e).filter(t=>t.type===ae||t.type===G):null}function Tt(e){return x.useRef(e||`navmenu-item-id-${Math.random().toString(36).slice(2)}`).current}function oe({items:e,mode:t,children:r,activeId:n,textColor:o,activeTextColor:s,bgColor:d,onSelected:l,...c}){var He;if(r=yt(r),!(e!=null&&e.length)&&!(r!=null&&r.length))throw new Error("One of 'items' or 'children' is required by NavMenu component.");const[u,p]=x.useState({activeId:n,openedIds:[]}),f=x.useCallback(v=>{p(A=>({...A,activeId:v})),l==null||l(v)},[l]),h=x.useCallback(v=>{p(A=>({...A,openedIds:[...A.openedIds,v]}))},[]),m=x.useCallback(v=>{p(A=>({...A,openedIds:A.openedIds.filter(z=>z!==v)}))},[]),b=x.useMemo(()=>({...u,mode:t,activate:f,open:h,close:m}),[u,t,f,h,m]),[y,T]=x.useState(0),j=x.useRef(),C=x.useRef([]),E=x.useRef(),_=y===((He=C.current)==null?void 0:He.length),S=_?a.jsx(ge,{}):a.jsx(Ft,{}),N=_?{marginLeft:"0px"}:void 0,R=v=>x.Children.map(v,(A,z)=>x.cloneElement(A,{ref:D=>{C.current[z]=D}})),q=()=>{var Be;let v=0,A=0,z=!1;const D=((Be=j.current)==null?void 0:Be.offsetWidth)||0,ve=E.current?E.current.offsetWidth+parseFloat(window.getComputedStyle(E.current).marginLeft):0;C.current.forEach((Z,kt)=>{if(Z){Z.style.display="flex";const Ot=kt>0?parseFloat(window.getComputedStyle(Z).marginLeft):0,Fe=Z.offsetWidth+Ot;D-ve>=v+Fe&&!z?v+=Fe:(Z.style.display="none",z=!0,A++)}}),A!==y&&T(A)};x.useEffect(()=>{if(t==="horizontal")return q(),window.addEventListener("resize",q),()=>{window.removeEventListener("resize",q)}},[t,y]),x.useEffect(()=>{n!=null&&p(v=>({...v,activeId:n}))},[n]);const W=
|
|
539
|
+
`,_e=x.createContext();function yt(e){return e?x.Children.toArray(e).filter(t=>t.type===ae||t.type===G):null}function Tt(e){return x.useRef(e||`navmenu-item-id-${Math.random().toString(36).slice(2)}`).current}function oe({items:e,mode:t,children:r,activeId:n,textColor:o,activeTextColor:s,bgColor:d,onSelected:l,...c}){var He;if(r=yt(r),!(e!=null&&e.length)&&!(r!=null&&r.length))throw new Error("One of 'items' or 'children' is required by NavMenu component.");const[u,p]=x.useState({activeId:n,openedIds:[]}),f=x.useCallback(v=>{p(A=>({...A,activeId:v})),l==null||l(v)},[l]),h=x.useCallback(v=>{p(A=>({...A,openedIds:[...A.openedIds,v]}))},[]),m=x.useCallback(v=>{p(A=>({...A,openedIds:A.openedIds.filter(z=>z!==v)}))},[]),b=x.useMemo(()=>({...u,mode:t,activate:f,open:h,close:m}),[u,t,f,h,m]),[y,T]=x.useState(0),j=x.useRef(),C=x.useRef([]),E=x.useRef(),_=y===((He=C.current)==null?void 0:He.length),S=_?a.jsx(ge,{}):a.jsx(Ft,{}),N=_?{marginLeft:"0px"}:void 0,R=v=>x.Children.map(v,(A,z)=>x.cloneElement(A,{ref:D=>{C.current[z]=D}})),q=()=>{var Be;let v=0,A=0,z=!1;const D=((Be=j.current)==null?void 0:Be.offsetWidth)||0,ve=E.current?E.current.offsetWidth+parseFloat(window.getComputedStyle(E.current).marginLeft):0;C.current.forEach((Z,kt)=>{if(Z){Z.style.display="flex";const Ot=kt>0?parseFloat(window.getComputedStyle(Z).marginLeft):0,Fe=Z.offsetWidth+Ot;D-ve>=v+Fe&&!z?v+=Fe:(Z.style.display="none",z=!0,A++)}}),A!==y&&T(A)};x.useEffect(()=>{if(t==="horizontal")return q(),window.addEventListener("resize",q),()=>{window.removeEventListener("resize",q)}},[t,y]),x.useEffect(()=>{n!=null&&p(v=>({...v,activeId:n}))},[n]);const W=I("navmenu",`navmenu--${t}`,c.className),M=(v,A,z=!1)=>v!=null&&v.children?a.jsx(G,{id:v.id,icon:v.icon,label:v.label,ref:z?D=>{C.current[A]=D}:void 0,children:v.children.map((D,ve)=>M(D,ve,!1))},A):a.jsx(ae,{id:v.id,icon:v.icon,label:v.label,active:v.active,ref:z?D=>{C.current[A]=D}:void 0},A),se=e?e==null?void 0:e.slice(-y).map((v,A)=>M(v,A)):r==null?void 0:r.slice(-y),le=t==="inline"?gn:mn;return a.jsx(_e.Provider,{value:b,children:a.jsx(le,{...c,className:W,$textColor:o,$activeTextColor:s,$bgColor:d,children:a.jsxs("ul",{className:"navmenu-root",ref:j,children:[e?e.map((v,A)=>M(v,A,!0)):R(r),y>0&&a.jsx(G,{expandIcon:!1,icon:S,label:"",ref:E,style:N,children:se})]})})})}oe.propTypes={items:i.array,mode:i.oneOf(["horizontal","vertical","inline"]),children:i.array,activeId:i.string,textColor:i.string,activeTextColor:i.string,bgColor:i.string,onSelected:i.func};oe.defaultProps={items:null,mode:"horizontal",children:null,activeId:null,textColor:"#9397a1",activeTextColor:"#25292f",bgColor:"#fff",onSelected:null};const ae=x.forwardRef(({id:e,icon:t,label:r,active:n,onClick:o,...s},d)=>{const l=Tt(e),{activeId:c,activate:u}=x.useContext(_e),p=I("navmenu-item",{"navmenu-item--active":c===l},s.className);x.useEffect(()=>{n&&u(l)},[n]);const f=()=>{o==null||o(),u(l)};return a.jsxs("li",{...s,className:p,onClick:f,ref:d,children:[t&&a.jsx("span",{className:"navmenu-item-icon",children:t}),a.jsx("span",{className:"navmenu-item-label",children:r})]})});ae.propTypes={id:i.string,icon:i.element,label:i.node,active:i.bool,onClick:i.func};ae.defaultProps={id:null,icon:null,label:"",active:!1,onClick:null};const G=x.forwardRef(({id:e,icon:t,label:r,children:n,expandIcon:o,...s},d)=>{const l=Tt(e),{openedIds:c,open:u,close:p,mode:f}=x.useContext(_e),h=c.includes(l),m=I("navmenu-sub",{"navmenu-sub--opened":h},s.className),b=f==="inline",y=b?{onClick:()=>c.includes(l)?p(l):u(l)}:{onMouseEnter:()=>u(l),onMouseLeave:()=>p(l)},T=b?{onClick:j=>j.stopPropagation()}:{};return a.jsxs("li",{...s,className:m,...y,ref:d,children:[t&&a.jsx("span",{className:"navmenu-sub-icon",children:t}),a.jsx("span",{className:"navmenu-sub-label",children:r}),o&&a.jsx("span",{className:"navmenu-sub-expand-icon",children:(o==null?void 0:o({isOpen:h}))||o}),a.jsx("div",{className:"navmenu-sub-container",...T,children:a.jsx("ul",{className:"navmenu-sub-list",children:yt(n)})})]})});G.propTypes={id:i.string,icon:i.element,label:i.node.isRequired,children:i.array.isRequired,expandIcon:i.oneOfType([i.node,i.func])};G.defaultProps={id:null,icon:null,expandIcon:({isOpen:e})=>a.jsx(qt,{style:{transform:`rotate(${e?180:0}deg)`}})};oe.Item=ae;oe.Sub=G;function xe({children:e,routerLinkComponent:t,to:r,external:n,...o}){return n?a.jsx("a",{href:r,...o,children:e}):a.jsx(t,{to:r,...o,children:e})}xe.propTypes={children:i.any.isRequired,routerLinkComponent:i.elementType.isRequired,external:i.bool,to:i.oneOfType([i.string,i.object]).isRequired};xe.defaultProps={external:!1};function wt(e){return a.jsx(xe,{routerLinkComponent:ue,...e})}function ze({className:e,...t}){const r=t.external&&typeof e=="function"?e({}):e;return a.jsx(xe,{routerLinkComponent:Dt,className:r,...t})}ze.propTypes={className:i.oneOfType([i.string,i.func])};ze.defaultProps={className:""};function xn(e){return a.jsxs("li",{className:"layout-sidebar-group",children:[a.jsx("span",{className:"layout-sidebar-group-title",children:e.title}),a.jsx("ul",{children:e.children.map(jt)})]},`group-${e.title}`)}function jt(e){var l;if((l=e.children)!=null&&l.length)return xn(e);const{url:t,icon:r,title:n,showBadge:o,external:s,active:d}=e;return a.jsx("li",{className:"layout-sidebar-item",children:a.jsxs(ze,{external:s,to:t,className:({isActive:c})=>I("layout-sidebar-link",{"layout-sidebar-link--active":s?d:c}),children:[r&&a.jsx("span",{className:`layout-sidebar-icon ${o?"layout-sidebar-badge":""}`,children:r}),a.jsx(B,{component:"span",className:"layout-sidebar-link-text",children:n})]})},t)}function De({links:e,addons:t,dense:r,...n}){return a.jsxs(bn,{...n,className:I({"layout-sidebar-dense":r}),children:[a.jsx("ul",{children:e.map(jt)}),a.jsx("div",{style:{flex:1}}),t]})}De.propTypes={links:i.array.isRequired,addons:i.any,dense:i.bool};De.defaultProps={addons:null,dense:!1};const vn="linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))",bn=P("div")`
|
|
540
540
|
display: flex;
|
|
541
541
|
flex-direction: column;
|
|
542
542
|
ul {
|
|
@@ -659,7 +659,7 @@ object-assign
|
|
|
659
659
|
margin-top: 16px;
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
`,At=x.createContext(),yn=e=>{const t=x.useContext(At);return x.useLayoutEffect(()=>{e&&t.configure(e)},[]),t};function Ct({children:e,...t}){const[r,n]=x.useState({inFullPage:!1,showToggleButton:!1,headerVisibleInFullPage:!0,footerVisibleInFullPage:!1,sidebarVisibleInFullPage:!1}),o=()=>{n(d=>({...d,inFullPage:!d.inFullPage}))},s=x.useMemo(()=>({...r,headerVisible:!r.inFullPage||r.headerVisibleInFullPage,footerVisible:!r.inFullPage||r.footerVisibleInFullPage,sidebarVisible:!r.inFullPage||r.sidebarVisibleInFullPage,toggleFullPage:o,configure:d=>n(l=>({...l,...d}))}),[r]);return a.jsx(At.Provider,{value:s,...t,children:e})}Ct.propTypes={children:i.node.isRequired};function Tn({closeMenu:e,...t}){const r=ke();return x.useEffect(()=>{e()},[r]),a.jsx(oe,{...t})}function Pt(e,t){return e.map(r=>{var n;return(n=r.children)!=null&&n.length?{...r,label:r.title,children:Pt(r.children,t)}:{...r,label:a.jsx(wt,{to:r.url,external:r.external,children:r.title}),active:r.external?r.active:!!Ht({path:r.url,end:!1},t.pathname)}})}function ie({children:e,title:t,headerProps:r,links:n=[],fullWidth:o,dense:s,footerProps:d,...l}){const c=me(),{inFullPage:u,showToggleButton:p,headerVisible:f,footerVisible:h,sidebarVisible:m,toggleFullPage:b}=yn(),y=ke(),T=x.useMemo(()=>Pt(n,y),[y,n]),j=T.some(N=>{var R;return!!((R=N.children)!=null&&R.length)}),C=s==="auto"?T.length>=8||j:s,E=
|
|
662
|
+
`,At=x.createContext(),yn=e=>{const t=x.useContext(At);return x.useLayoutEffect(()=>{e&&t.configure(e)},[]),t};function Ct({children:e,...t}){const[r,n]=x.useState({inFullPage:!1,showToggleButton:!1,headerVisibleInFullPage:!0,footerVisibleInFullPage:!1,sidebarVisibleInFullPage:!1}),o=()=>{n(d=>({...d,inFullPage:!d.inFullPage}))},s=x.useMemo(()=>({...r,headerVisible:!r.inFullPage||r.headerVisibleInFullPage,footerVisible:!r.inFullPage||r.footerVisibleInFullPage,sidebarVisible:!r.inFullPage||r.sidebarVisibleInFullPage,toggleFullPage:o,configure:d=>n(l=>({...l,...d}))}),[r]);return a.jsx(At.Provider,{value:s,...t,children:e})}Ct.propTypes={children:i.node.isRequired};function Tn({closeMenu:e,...t}){const r=ke();return x.useEffect(()=>{e()},[r]),a.jsx(oe,{...t})}function Pt(e,t){return e.map(r=>{var n;return(n=r.children)!=null&&n.length?{...r,label:r.title,children:Pt(r.children,t)}:{...r,label:a.jsx(wt,{to:r.url,external:r.external,children:r.title}),active:r.external?r.active:!!Ht({path:r.url,end:!1},t.pathname)}})}function ie({children:e,title:t,headerProps:r,links:n=[],fullWidth:o,dense:s,footerProps:d,...l}){const c=me(),{inFullPage:u,showToggleButton:p,headerVisible:f,footerVisible:h,sidebarVisible:m,toggleFullPage:b}=yn(),y=ke(),T=x.useMemo(()=>Pt(n,y),[y,n]),j=T.some(N=>{var R;return!!((R=N.children)!=null&&R.length)}),C=s==="auto"?T.length>=8||j:s,E=I("dashboard",{"dashboard-dense":C},l.className),S={homeLink:N=>{var R;return a.jsx(wt,{to:((R=window.blocklet)==null?void 0:R.prefix)||"/",children:N})},...r};return a.jsxs(wn,{...l,className:E,children:[a.jsx(fe,{title:t},t),f&&a.jsx(jn,{...S,className:"dashboard-header",children:n!=null&&n.length?({isMobile:N,closeMenu:R})=>N?a.jsx(Tn,{mode:"inline",items:T,closeMenu:R,bgColor:"transparent",activeTextColor:c.palette.primary.main}):null:null}),a.jsxs(L,{display:"flex",className:"dashboard-body",children:[a.jsx(nt,{mdDown:!0,children:!!(n!=null&&n.length)&&m&&a.jsx(L,{className:"dashboard-sidebar",children:a.jsx(De,{links:n,dense:C})})}),a.jsxs(L,{className:"dashboard-main",children:[p&&a.jsx(L,{sx:{position:"absolute",top:4,right:4,display:"flex",justifyContent:"center",alignItems:"center",width:24,height:24,color:"#fff",bgcolor:"rgba(158,158,158, 0.6);",borderRadius:1,cursor:"pointer"},onClick:b,children:u?a.jsx(ft,{style:{fontSize:18}}):a.jsx(pt,{style:{fontSize:18}})}),a.jsx(re,{className:"dashboard-content",...o&&{maxWidth:!1},children:e}),h&&a.jsx(X,{...d})]})]})]})}ie.propTypes={children:i.any.isRequired,title:i.string,links:i.array.isRequired,headerProps:i.object,fullWidth:i.bool,sidebarWidth:i.number,dense:i.oneOf([!0,!1,"auto"])};ie.defaultProps={title:"Home",headerProps:{},fullWidth:!1,sidebarWidth:120,dense:"auto"};const wn=P("div",{shouldForwardProp:e=>e!=="sidebarWidth"})`
|
|
663
663
|
&.dashboard {
|
|
664
664
|
display: flex;
|
|
665
665
|
flex-direction: column;
|
|
@@ -702,7 +702,7 @@ object-assign
|
|
|
702
702
|
display: flex;
|
|
703
703
|
justify-content: center;
|
|
704
704
|
/* logo 与 sidebar 中的 icon 垂直对齐, sidebarWidth - 24 * 2 */
|
|
705
|
-
width: ${e=>e.sidebarWidth-24*2}px;
|
|
705
|
+
min-width: ${e=>e.sidebarWidth-24*2}px;
|
|
706
706
|
}
|
|
707
707
|
&.dashboard-dense {
|
|
708
708
|
.header-logo {
|
|
@@ -715,4 +715,4 @@ object-assign
|
|
|
715
715
|
.header-container {
|
|
716
716
|
max-width: 100%;
|
|
717
717
|
}
|
|
718
|
-
`;function Et({legacy:e,...t}){return e?a.jsx(
|
|
718
|
+
`;function Et({legacy:e,...t}){return e?a.jsx(Le,{...t}):a.jsx(Ct,{children:a.jsx(ie,{...t})})}Et.propTypes={...ie.propTypes,legacy:i.bool,footerProps:i.shape(X.propTypes)};Et.defaultProps={...ie.defaultProps,legacy:!0};export{Et as D,oe as N,$e as R,jr as o,yn as u};
|