@abtnode/webapp 1.17.5-beta-20251214-231110-497f8d27 → 1.17.6-beta-20251216-081847-bf91c4db
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{AdapterDayjs-CgNLGdsV.js → AdapterDayjs-BJDMOH87.js} +1 -1
- package/dist/assets/{Add-DY1gS9Dz.js → Add-CwfzHL2f.js} +1 -1
- package/dist/assets/ArrowDropDown-BRCFiDo5.js +1 -0
- package/dist/assets/{Autocomplete-DBXlHxck.js → Autocomplete-DTfKu22k.js} +1 -1
- package/dist/assets/{Breadcrumbs-C4L8U0Mj.js → Breadcrumbs-CI3uNLPY.js} +1 -1
- package/dist/assets/{ButtonGroup-3fqwj5Ky.js → ButtonGroup-CE8Yme-Z.js} +1 -1
- package/dist/assets/{CSSTransition-hVfsLWm-.js → CSSTransition-Cq_0t7dk.js} +1 -1
- package/dist/assets/{CallMerge-BWKncjAQ.js → CallMerge-BpBCpBS4.js} +1 -1
- package/dist/assets/{CardContent-S1Olt54S.js → CardContent-VIJU2wwZ.js} +1 -1
- package/dist/assets/{ChevronLeft-DGU-DOuV.js → ChevronLeft-DDZiF24z.js} +1 -1
- package/dist/assets/{ChevronRight-8InGKmMS.js → ChevronRight-iPKgmmla.js} +1 -1
- package/dist/assets/{Clear-BFurvC8R.js → Clear-lc-87cdU.js} +1 -1
- package/dist/assets/{Delete-Brb8t62i.js → Delete-Depf4F2y.js} +1 -1
- package/dist/assets/{DeleteOutline-P1tPKlQL.js → DeleteOutline-CCoXF09b.js} +1 -1
- package/dist/assets/{Done-D7HN06J1.js → Done-KOQXZtlD.js} +1 -1
- package/dist/assets/{Edit-CpNEn5zp.js → Edit-BWqfJBJ6.js} +1 -1
- package/dist/assets/{ErrorOutline-DlSN54Ps.js → ErrorOutline-B7Ps-w5c.js} +1 -1
- package/dist/assets/{FilterList-DCiDc43y.js → FilterList-BGhEWkST.js} +1 -1
- package/dist/assets/{Google-D_lyR__A.js → Google-B-6SbnBW.js} +1 -1
- package/dist/assets/{HelpOutline-DpBESAst.js → HelpOutline-VHuGbaF6.js} +1 -1
- package/dist/assets/{KeyboardArrowDown-DeA6xh4S.js → KeyboardArrowDown-6ORbckfg.js} +1 -1
- package/dist/assets/{Launch-Bq5mqcUb.js → Launch-BeO2pbYn.js} +1 -1
- package/dist/assets/{Link-CyO965jU.js → Link-pkcRdxt0.js} +1 -1
- package/dist/assets/{ListItemButton-BsnowPaA.js → ListItemButton-BUXqqfVc.js} +1 -1
- package/dist/assets/{ListSubheader-BcTZxGIx.js → ListSubheader-DzDc9oA3.js} +1 -1
- package/dist/assets/{LoadingButton-UXSaquyL.js → LoadingButton-DuEza0fz.js} +1 -1
- package/dist/assets/{MoreVert-V2LiAaXF.js → MoreVert-DXy5wrMx.js} +1 -1
- package/dist/assets/{OpenInNew-C5gvRiqd.js → OpenInNew-O9EysXQn.js} +1 -1
- package/dist/assets/{Refresh-C6MLAQnO.js → Refresh-BT6pxoXK.js} +1 -1
- package/dist/assets/{Replay-CSz8ZIga.js → Replay-CBq27_EQ.js} +1 -1
- package/dist/assets/{Search-x2lb6Akd.js → Search-edKoOPH1.js} +1 -1
- package/dist/assets/{Stepper-D7l565H3.js → Stepper-rWMUaF_2.js} +1 -1
- package/dist/assets/{TableSearch-DRmWGhph.js → TableSearch-B1H-6-fg.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-DTZuFSiT.js → ToggleButtonGroup-C_82EW2F.js} +1 -1
- package/dist/assets/{UnfoldMore-CfZy9D-D.js → UnfoldMore-COp9hgN2.js} +1 -1
- package/dist/assets/{Verified-BpXE28d4.js → Verified-CDQAXply.js} +1 -1
- package/dist/assets/{VerifiedUser-BNuQYAdH.js → VerifiedUser-DK9YGdyH.js} +1 -1
- package/dist/assets/{ViewList-C-96Tk3T.js → ViewList-BbsCfkWP.js} +1 -1
- package/dist/assets/{_createAggregator-CImEitD-.js → _createAggregator-Dw9ehKUs.js} +1 -1
- package/dist/assets/{actions-B8scXmgC.js → actions-B3lOcEVi.js} +1 -1
- package/dist/assets/{actions-kx-IWp3k.js → actions-D6D1nZGR.js} +1 -1
- package/dist/assets/{agreement-DP0eUo8S.js → agreement-BJafEhuZ.js} +1 -1
- package/dist/assets/api-CzO1JAlF.js +1 -0
- package/dist/assets/{appearance-cERzuGGi.js → appearance-DHyuFSLh.js} +1 -1
- package/dist/assets/{audit-logs-Cv2ihhLM.js → audit-logs-9W-SjlpY.js} +1 -1
- package/dist/assets/{base-chart-DEZPYe4h.js → base-chart-CQIo67AL.js} +1 -1
- package/dist/assets/{blocklet-C0-c8dVN.js → blocklet-c-fcHcMv.js} +1 -1
- package/dist/assets/{chain-fXxRiV2U.js → chain-DggQDLgW.js} +1 -1
- package/dist/assets/{click-to-copy-CGVo7y_H.js → click-to-copy-CUoB1qVU.js} +1 -1
- package/dist/assets/cloneDeep-CF0rc6VO.js +1 -0
- package/dist/assets/{config-navigation-DLeJwQ7O.js → config-navigation-0EI4c1lJ.js} +3 -3
- package/dist/assets/{connect-to-DCLDiA4c.js → connect-to-DYsYwfyz.js} +1 -1
- package/dist/assets/{cssMode-JYzCUrBO.js → cssMode-BsY3xqt4.js} +1 -1
- package/dist/assets/{delete-confirm-CKUwqxvJ.js → delete-confirm-BuKtLpww.js} +1 -1
- package/dist/assets/{depsEqual-B4BFmwuI.js → depsEqual-CDIkAeqx.js} +1 -1
- package/dist/assets/{detail-F8H8w9u1.js → detail-DEbKzuLV.js} +3 -3
- package/dist/assets/{domains-BpTnyTDn.js → domains-lG_9thiv.js} +1 -1
- package/dist/assets/{download-DDdx75jE.js → download-Z-lPT0_Q.js} +1 -1
- package/dist/assets/{edit.svg-CBK1UF-9.js → edit.svg-BNlNDOgE.js} +1 -1
- package/dist/assets/emotion-cache.browser.esm-DcciVh-V.js +1 -0
- package/dist/assets/engine-DHbDpbO8.js +1 -0
- package/dist/assets/{freemarker2-BUy2QQDP.js → freemarker2-C5pjFwAf.js} +1 -1
- package/dist/assets/{get-safe-url-DwUMajjg.js → get-safe-url-DMzSWw8A.js} +1 -1
- package/dist/assets/getValidReactChildren-C2YiZOfP.js +1 -0
- package/dist/assets/{graphqlMode-DL2_JbNW.js → graphqlMode-DQJwvpqC.js} +2 -2
- package/dist/assets/{handlebars-q_jgTrqQ.js → handlebars-AtbuPgIu.js} +1 -1
- package/dist/assets/{html-D9YLKYtv.js → html-BZ4Y9llP.js} +1 -1
- package/dist/assets/{html-title-Dp-sqsn-.js → html-title-ZIT73gw4.js} +1 -1
- package/dist/assets/{htmlMode-Bz_kRcCe.js → htmlMode-CaNYTMy1.js} +1 -1
- package/dist/assets/{iframe-Ca3kRbO-.js → iframe-BeX_RqP4.js} +1 -1
- package/dist/assets/{index-D-lCEtM3.js → index-5clu8qhD.js} +1 -1
- package/dist/assets/{index-CwQLM6w6.js → index-AQr2b_V7.js} +1 -1
- package/dist/assets/{index-BkRtS9xF.js → index-B7tB7lMU.js} +1 -1
- package/dist/assets/{index-EFWTbF8B.js → index-BE354x55.js} +1 -1
- package/dist/assets/{index-DgrHpp-o.js → index-BGKWLg7d.js} +1 -1
- package/dist/assets/{index-CvyKEas9.js → index-BSjBv3t4.js} +1 -1
- package/dist/assets/{index-QPSBfX_L.js → index-Bi94s6DF.js} +1 -1
- package/dist/assets/{index-COx5xHO6.js → index-BtplxQ7P.js} +1 -1
- package/dist/assets/{index-DfKSjTkz.js → index-Bx58QoYR.js} +1 -1
- package/dist/assets/{index-BqujSmiU.js → index-Bya-MYDK.js} +1 -1
- package/dist/assets/{index-CzaXdOyt.js → index-C0fIFyuA.js} +3 -3
- package/dist/assets/{index-t688rAZG.js → index-C3en75nR.js} +1 -1
- package/dist/assets/index-C7FK1qLV.js +1 -0
- package/dist/assets/{index-CghNgTHC.js → index-C8Gu9f5N.js} +1 -1
- package/dist/assets/{index-lxTcvHA2.js → index-CJF8E7TC.js} +1 -1
- package/dist/assets/{index-D3FM5z_m.js → index-CLwXTEVs.js} +3 -3
- package/dist/assets/{index-Snc2Ei8N.js → index-CNAqYYKs.js} +1 -1
- package/dist/assets/{index-sI82kOvs.js → index-CSHkmzNN.js} +30 -34
- package/dist/assets/{index-DxWj3O4A.js → index-CWU4hC_i.js} +3 -3
- package/dist/assets/{index-BTjnUzI6.js → index-CYG5tlBe.js} +1 -1
- package/dist/assets/{index-Bm01pS0y.js → index-CZlU7cPx.js} +1 -1
- package/dist/assets/{index-DqhaUjOT.js → index-CfCMnLvt.js} +1 -1
- package/dist/assets/{index-C7i09MwD.js → index-CffUOfeg.js} +1 -1
- package/dist/assets/{index-JEnbYjKN.js → index-CiR3wNRT.js} +1 -1
- package/dist/assets/{index-29D5d56z.js → index-Cihue4u0.js} +1 -1
- package/dist/assets/{index-Lkm8XAFp.js → index-CjAXuazv.js} +1 -1
- package/dist/assets/{index-C-lLLTqv.js → index-CnSanU-5.js} +2 -2
- package/dist/assets/{index-DLSU0S2q.js → index-CwvGvnvI.js} +1 -1
- package/dist/assets/{index-87RKuT5C.js → index-CyYCs6Na.js} +6 -6
- package/dist/assets/{index-C-Jgy1MF.js → index-D8iAEh5P.js} +1 -1
- package/dist/assets/{index-D9CYdevY.js → index-DBPZHeTe.js} +1 -1
- package/dist/assets/{index-BOuTBP5N.js → index-DH-JWbgS.js} +1 -1
- package/dist/assets/{index-BCxpBrwy.js → index-DKnP8AX5.js} +1 -1
- package/dist/assets/{index-BF-3wV6r.js → index-DOuT_eWr.js} +1 -1
- package/dist/assets/{index-CS7M20xU.js → index-Dgm3J-5y.js} +1 -1
- package/dist/assets/{index-B1mE4gVN.js → index-DvylVaG5.js} +1 -1
- package/dist/assets/{index-zltF8Ym1.js → index-FBWsHUHc.js} +1 -1
- package/dist/assets/{index-BNrJ3-FU.js → index-JpjTsddL.js} +1 -1
- package/dist/assets/{index-HS1vQPHE.js → index-ZHthb_a5.js} +1 -1
- package/dist/assets/{index-D26x5oE3.js → index-_wUNu-iB.js} +1 -1
- package/dist/assets/{index-qPcTPC8W.js → index-_ylGel7X.js} +1 -1
- package/dist/assets/{index-BP8O3XHI.js → index-hkRM3sJd.js} +1 -1
- package/dist/assets/{index-CCjtqj3s.js → index-qDXgq7vV.js} +9 -9
- package/dist/assets/{index-B0_tF8nw.js → index-sJeutPoU.js} +1 -1
- package/dist/assets/{index-BkZRidRp.js → index-tUPbUUvJ.js} +1 -1
- package/dist/assets/{index.esm-rxbUJdm1.js → index.esm-XgmtgzU6.js} +1 -1
- package/dist/assets/{install-from-url-Vgpqf_RA.js → install-from-url-CGtgqRyi.js} +1 -1
- package/dist/assets/{invitation-8UtMlo2J.js → invitation-C_eNuh8O.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-5DtBeL0p.js → is-path-prefix-equal-BspuX_I9.js} +1 -1
- package/dist/assets/{item-Bo6y5Gud.js → item-wxO3KmF4.js} +1 -1
- package/dist/assets/{javascript-DYN9z7wM.js → javascript-CKDwawbm.js} +1 -1
- package/dist/assets/{jsonMode-D32rzzdQ.js → jsonMode-BP0R9CmR.js} +1 -1
- package/dist/assets/{liquid-BtOj54gG.js → liquid-4UI0Zois.js} +1 -1
- package/dist/assets/{list-header-DMsNH71I.js → list-header-C9_FZEk7.js} +1 -1
- package/dist/assets/{lock.svg-Cs99iZpo.js → lock.svg-tfWudiuy.js} +1 -1
- package/dist/assets/{log-BDpurb-t.js → log-CF_IJCaQ.js} +1 -1
- package/dist/assets/{lottie-react.esm-DHr-1U6T.js → lottie-react.esm-BvFBsF4l.js} +1 -1
- package/dist/assets/{mdx-BvhFWG4R.js → mdx-O8RIyVTG.js} +1 -1
- package/dist/assets/{memory-DdzEg3E6.js → memory-CoHOdYyC.js} +1 -1
- package/dist/assets/{metric-C2htX2Yk.js → metric-8WMIjcND.js} +1 -1
- package/dist/assets/omit-DbDS-rZP.js +1 -0
- package/dist/assets/{overview--R-CMMW-.js → overview-KMBUCZti.js} +1 -1
- package/dist/assets/{permission-SRhWeTXb.js → permission-3nsQS0Bo.js} +1 -1
- package/dist/assets/{preference-CKq_K8v4.js → preference-DvLBp1_G.js} +3 -3
- package/dist/assets/{python-DxaDOp9e.js → python-CCp746AY.js} +1 -1
- package/dist/assets/{raf-schd.esm-VXV4zFrR.js → raf-schd.esm-BNZAb83s.js} +1 -1
- package/dist/assets/{razor-BRzb-KS4.js → razor-YJwBLn7z.js} +1 -1
- package/dist/assets/{rotate-session-key-hCEg8oFb.js → rotate-session-key-D_IS-WkQ.js} +1 -1
- package/dist/assets/{runtime-D91pG25y.js → runtime-Dxp6bWyV.js} +1 -1
- package/dist/assets/schema-DAPWQjet.js +1 -0
- package/dist/assets/sdk-Dbin21P4.js +1 -0
- package/dist/assets/{service-dZBUbVK3.js → service-BwsotI3l.js} +1 -1
- package/dist/assets/{shorten-label-BF590ANn.js → shorten-label-DJxU7eGt.js} +1 -1
- package/dist/assets/{simple-select-BVmpIZiu.js → simple-select-DTAtG4Ai.js} +1 -1
- package/dist/assets/{spaces-BJDcrjBg.js → spaces-z72qxe5O.js} +1 -1
- package/dist/assets/{status-8XKvO1QE.js → status-3LMMJunc.js} +1 -1
- package/dist/assets/{status-DQ167_MQ.js → status-Cj3yOznG.js} +1 -1
- package/dist/assets/{switch-control-HQLhcuwU.js → switch-control-DBzGlbkg.js} +1 -1
- package/dist/assets/{table-icons-CTYxIeWB.js → table-icons-C-h4FDAF.js} +1 -1
- package/dist/assets/{team-CWb9WqYD.js → team-BgfMEJL2.js} +1 -1
- package/dist/assets/{toLower-TUYcnZbz.js → toLower-BHBBXNv2.js} +1 -1
- package/dist/assets/toUpper-C6xfv6tZ.js +1 -0
- package/dist/assets/{traffic-DGVWI219.js → traffic-D-uRzuea.js} +1 -1
- package/dist/assets/{tsMode-DHb6BLph.js → tsMode-CeRn61xO.js} +1 -1
- package/dist/assets/{typescript-BIlsbF26.js → typescript-DoL6n85S.js} +1 -1
- package/dist/assets/{url-evaluation-mq4H4jA_.js → url-evaluation-B3eRUARy.js} +1 -1
- package/dist/assets/{url-join-bG8RQ0FO.js → url-join-CfCMzD0L.js} +1 -1
- package/dist/assets/{use-mobile-BffT8C8k.js → use-mobile-CHK2BJEL.js} +1 -1
- package/dist/assets/{use-mobile-BmJGrK15.js → use-mobile-DW1xADqf.js} +1 -1
- package/dist/assets/{useAsync-C6Syz0fD.js → useAsync-DHJaMqFP.js} +1 -1
- package/dist/assets/{useAsyncRetry-BG_Bqdv2.js → useAsyncRetry-DE25r2jb.js} +1 -1
- package/dist/assets/{useLocalStorage-7RvuX-wT.js → useLocalStorage-BrmzkzdD.js} +1 -1
- package/dist/assets/{useThemeProps-DP_44cxZ.js → useThemeProps-Chclx8ny.js} +1 -1
- package/dist/assets/{util-BvF3wEH8.js → util-yYX5V34t.js} +1 -1
- package/dist/assets/{wait-container-DLuEZWXO.js → wait-container-DXBOHjPe.js} +1 -1
- package/dist/assets/{without-wallet-DZoff-em.js → without-wallet-BNsRjeI5.js} +1 -1
- package/dist/assets/wrap-locale-Crvlfq9n.js +1 -0
- package/dist/assets/{xml-DjQcmk1n.js → xml-ZZLcLPO2.js} +1 -1
- package/dist/assets/{yaml-Cdu8Piv-.js → yaml-3xc0kMOl.js} +1 -1
- package/dist/assets/{zh-Dr9buZnV.js → zh-CSl2KD_S.js} +1 -1
- package/dist/assets/{zh-tw-CeXBj2i0.js → zh-tw-BiloxWNq.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +25 -2
- package/package.json +1 -1
- package/dist/assets/ArrowDropDown-BA2tLXoO.js +0 -1
- package/dist/assets/api-D8LqcBu8.js +0 -1
- package/dist/assets/cloneDeep-CtZ8Xty4.js +0 -1
- package/dist/assets/emotion-cache.browser.esm-CZAf8Clc.js +0 -1
- package/dist/assets/engine-C1YpSsUo.js +0 -1
- package/dist/assets/getValidReactChildren-7B6f8iqP.js +0 -1
- package/dist/assets/index-CCTRr7te.js +0 -1
- package/dist/assets/omit-Csc9rFvJ.js +0 -1
- package/dist/assets/schema-Bksytr0e.js +0 -1
- package/dist/assets/sdk-DXEfKnNl.js +0 -1
- package/dist/assets/toUpper-C6wT1Gl8.js +0 -1
- package/dist/assets/wrap-locale-CwRGSp3B.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c0 as bt,c1 as pt,r as u,c2 as ft,c4 as W,j as p,b9 as N,ch as At,c5 as ht,bZ as Ft,b_ as St,d8 as ho,d9 as Ot,da as Dt,db as Xt,dc as So,dd as vo,c3 as lt,f as mo,de as dt,cg as D,df as xo,bs as yo,u as go,bE as Co,dg as wo,dh as Bo}from"./index-87RKuT5C.js";function To(o){return pt("MuiTab",o)}const x=bt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),Io=o=>{const{classes:t,textColor:l,fullWidth:s,wrapped:n,icon:a,label:i,selected:b,disabled:f}=o,v={root:["root",a&&i&&"labelIcon",`textColor${At(l)}`,s&&"fullWidth",n&&"wrapped",b&&"selected",f&&"disabled"],icon:["iconWrapper","icon"]};return ht(v,To,t)},Mo=N(Ft,{name:"MuiTab",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:l}=o;return[t.root,l.label&&l.icon&&t.labelIcon,t[`textColor${At(l.textColor)}`],l.fullWidth&&t.fullWidth,l.wrapped&&t.wrapped,{[`& .${x.iconWrapper}`]:t.iconWrapper},{[`& .${x.icon}`]:t.icon}]}})(St(({theme:o})=>({...o.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:l})=>t.icon&&t.label&&l==="top",style:{[`& > .${x.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:l})=>t.icon&&t.label&&l==="bottom",style:{[`& > .${x.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:l})=>t.icon&&t.label&&l==="start",style:{[`& > .${x.icon}`]:{marginRight:o.spacing(1)}}},{props:({ownerState:t,iconPosition:l})=>t.icon&&t.label&&l==="end",style:{[`& > .${x.icon}`]:{marginLeft:o.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${x.selected}`]:{opacity:1},[`&.${x.disabled}`]:{opacity:(o.vars||o).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(o.vars||o).palette.text.secondary,[`&.${x.selected}`]:{color:(o.vars||o).palette.primary.main},[`&.${x.disabled}`]:{color:(o.vars||o).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(o.vars||o).palette.text.secondary,[`&.${x.selected}`]:{color:(o.vars||o).palette.secondary.main},[`&.${x.disabled}`]:{color:(o.vars||o).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:o.typography.pxToRem(12)}}]}))),vt=u.forwardRef(function(t,l){const s=ft({props:t,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:b,icon:f,iconPosition:v="top",indicator:C,label:m,onChange:S,onClick:w,onFocus:j,selected:B,selectionFollowsFocus:y,textColor:Z="inherit",value:M,wrapped:rt=!1,...E}=s,A={...s,disabled:a,disableFocusRipple:i,selected:B,icon:!!f,iconPosition:v,label:!!m,fullWidth:b,textColor:Z,wrapped:rt},K=Io(A),U=f&&m&&u.isValidElement(f)?u.cloneElement(f,{className:W(K.icon,f.props.className)}):f,_=P=>{!B&&S&&S(P,M),w&&w(P)},F=P=>{y&&!B&&S&&S(P,M),j&&j(P)};return p.jsxs(Mo,{focusRipple:!i,className:W(K.root,n),ref:l,role:"tab","aria-selected":B,disabled:a,onClick:_,onFocus:F,ownerState:A,tabIndex:B?0:-1,...E,children:[v==="top"||v==="start"?p.jsxs(u.Fragment,{children:[U,m]}):p.jsxs(u.Fragment,{children:[m,U]}),C]})});function Eo(o){return(1+Math.sin(Math.PI*o-Math.PI/2))/2}function Po(o,t,l,s={},n=()=>{}){const{ease:a=Eo,duration:i=300}=s;let b=null;const f=t[o];let v=!1;const C=()=>{v=!0},m=S=>{if(v){n(new Error("Animation cancelled"));return}b===null&&(b=S);const w=Math.min(1,(S-b)/i);if(t[o]=a(w)*(l-f)+f,w>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(m)};return f===l?(n(new Error("Element already at target position")),C):(requestAnimationFrame(m),C)}const Ro={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function ko(o){const{onChange:t,...l}=o,s=u.useRef(),n=u.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return ho(()=>{const i=Ot(()=>{const f=s.current;a(),f!==s.current&&t(s.current)}),b=Dt(n.current);return b.addEventListener("resize",i),()=>{i.clear(),b.removeEventListener("resize",i)}},[t]),u.useEffect(()=>{a(),t(s.current)},[t]),p.jsx("div",{style:Ro,...l,ref:n})}function zo(o){return pt("MuiTabScrollButton",o)}const Wo=bt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),jo=o=>{const{classes:t,orientation:l,disabled:s}=o;return ht({root:["root",l,s&&"disabled"]},zo,t)},Ho=N(Ft,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:l}=o;return[t.root,l.orientation&&t[l.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${Wo.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),$o=u.forwardRef(function(t,l){const s=ft({props:t,name:"MuiTabScrollButton"}),{className:n,slots:a={},slotProps:i={},direction:b,orientation:f,disabled:v,...C}=s,m=Xt(),S={isRtl:m,...s},w=jo(S),j=a.StartScrollButtonIcon??So,B=a.EndScrollButtonIcon??vo,y=lt({elementType:j,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S}),Z=lt({elementType:B,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S});return p.jsx(Ho,{component:"div",className:W(w.root,n),ref:l,role:null,ownerState:S,tabIndex:null,...C,style:{...C.style,...f==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${m?-90:90}deg)`}},children:b==="left"?p.jsx(j,{...y}):p.jsx(B,{...Z})})});function Lo(o){return pt("MuiTabs",o)}const ut=bt("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ht=(o,t)=>o===t?o.firstChild:t&&t.nextElementSibling?t.nextElementSibling:o.firstChild,$t=(o,t)=>o===t?o.lastChild:t&&t.previousElementSibling?t.previousElementSibling:o.lastChild,et=(o,t,l)=>{let s=!1,n=l(o,t);for(;n;){if(n===o.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(o,n);else{n.focus();return}}},No=o=>{const{vertical:t,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:i,scrollButtonsHideMobile:b,classes:f}=o;return ht({root:["root",t&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",b&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Lo,f)},Ao=N("div",{name:"MuiTabs",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:l}=o;return[{[`& .${ut.scrollButtons}`]:t.scrollButtons},{[`& .${ut.scrollButtons}`]:l.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,l.vertical&&t.vertical]}})(St(({theme:o})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${ut.scrollButtons}`]:{[o.breakpoints.down("sm")]:{display:"none"}}}}]}))),Fo=N("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(o,t)=>{const{ownerState:l}=o;return[t.scroller,l.fixed&&t.fixed,l.hideScrollbar&&t.hideScrollbar,l.scrollableX&&t.scrollableX,l.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:o})=>o.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:o})=>o.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:o})=>o.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:o})=>o.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Oo=N("div",{name:"MuiTabs",slot:"List",overridesResolver:(o,t)=>{const{ownerState:l}=o;return[t.list,t.flexContainer,l.vertical&&t.flexContainerVertical,l.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:o})=>o.vertical,style:{flexDirection:"column"}},{props:({ownerState:o})=>o.centered,style:{justifyContent:"center"}}]}),Do=N("span",{name:"MuiTabs",slot:"Indicator"})(St(({theme:o})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:o.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(o.vars||o).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(o.vars||o).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),Xo=N(ko)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Lt={},mt=u.forwardRef(function(t,l){const s=ft({props:t,name:"MuiTabs"}),n=mo(),a=Xt(),{"aria-label":i,"aria-labelledby":b,action:f,centered:v=!1,children:C,className:m,component:S="div",allowScrollButtonsMobile:w=!1,indicatorColor:j="primary",onChange:B,orientation:y="horizontal",ScrollButtonComponent:Z,scrollButtons:M="auto",selectionFollowsFocus:rt,slots:E={},slotProps:A={},TabIndicatorProps:K={},TabScrollButtonProps:U={},textColor:_="primary",value:F,variant:P="standard",visibleScrollbar:nt=!1,...Kt}=s,T=P==="scrollable",g=y==="vertical",Y=g?"scrollTop":"scrollLeft",J=g?"top":"left",Q=g?"bottom":"right",st=g?"clientHeight":"clientWidth",V=g?"height":"width",R={...s,component:S,allowScrollButtonsMobile:w,indicatorColor:j,orientation:y,vertical:g,scrollButtons:M,textColor:_,variant:P,visibleScrollbar:nt,fixed:!T,hideScrollbar:T&&!nt,scrollableX:T&&!g,scrollableY:T&&g,centered:v&&!T,scrollButtonsHideMobile:!w},z=No(R),Ut=lt({elementType:E.StartScrollButtonIcon,externalSlotProps:A.startScrollButtonIcon,ownerState:R}),Yt=lt({elementType:E.EndScrollButtonIcon,externalSlotProps:A.endScrollButtonIcon,ownerState:R}),[xt,Vt]=u.useState(!1),[H,yt]=u.useState(Lt),[gt,qt]=u.useState(!1),[Ct,Gt]=u.useState(!1),[wt,Zt]=u.useState(!1),[Bt,_t]=u.useState({overflow:"hidden",scrollbarWidth:0}),Tt=new Map,k=u.useRef(null),$=u.useRef(null),O={slots:E,slotProps:{indicator:K,scrollButton:U,...A}},It=()=>{const e=k.current;let r;if(e){const c=e.getBoundingClientRect();r={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:c.top,bottom:c.bottom,left:c.left,right:c.right}}let d;if(e&&F!==!1){const c=$.current.children;if(c.length>0){const h=c[Tt.get(F)];d=h?h.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:d}},q=dt(()=>{const{tabsMeta:e,tabMeta:r}=It();let d=0,c;g?(c="top",r&&e&&(d=r.top-e.top+e.scrollTop)):(c=a?"right":"left",r&&e&&(d=(a?-1:1)*(r[c]-e[c]+e.scrollLeft)));const h={[c]:d,[V]:r?r[V]:0};if(typeof H[c]!="number"||typeof H[V]!="number")yt(h);else{const I=Math.abs(H[c]-h[c]),L=Math.abs(H[V]-h[V]);(I>=1||L>=1)&&yt(h)}}),at=(e,{animation:r=!0}={})=>{r?Po(Y,k.current,e,{duration:n.transitions.duration.standard}):k.current[Y]=e},Mt=e=>{let r=k.current[Y];g?r+=e:r+=e*(a?-1:1),at(r)},Et=()=>{const e=k.current[st];let r=0;const d=Array.from($.current.children);for(let c=0;c<d.length;c+=1){const h=d[c];if(r+h[st]>e){c===0&&(r=e);break}r+=h[st]}return r},Jt=()=>{Mt(-1*Et())},Qt=()=>{Mt(Et())},[to,{onChange:Pt,...oo}]=D("scrollbar",{className:W(z.scrollableX,z.hideScrollbar),elementType:Xo,shouldForwardComponentProp:!0,externalForwardedProps:O,ownerState:R}),eo=u.useCallback(e=>{Pt?.(e),_t({overflow:null,scrollbarWidth:e})},[Pt]),[Rt,kt]=D("scrollButtons",{className:W(z.scrollButtons,U.className),elementType:$o,externalForwardedProps:O,ownerState:R,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:E.startScrollButtonIcon||E.StartScrollButtonIcon,EndScrollButtonIcon:E.endScrollButtonIcon||E.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:Ut,endScrollButtonIcon:Yt}}}),lo=()=>{const e={};e.scrollbarSizeListener=T?p.jsx(to,{...oo,onChange:eo}):null;const d=T&&(M==="auto"&&(gt||Ct)||M===!0);return e.scrollButtonStart=d?p.jsx(Rt,{direction:a?"right":"left",onClick:Jt,disabled:!gt,...kt}):null,e.scrollButtonEnd=d?p.jsx(Rt,{direction:a?"left":"right",onClick:Qt,disabled:!Ct,...kt}):null,e},zt=dt(e=>{const{tabsMeta:r,tabMeta:d}=It();if(!(!d||!r)){if(d[J]<r[J]){const c=r[Y]+(d[J]-r[J]);at(c,{animation:e})}else if(d[Q]>r[Q]){const c=r[Y]+(d[Q]-r[Q]);at(c,{animation:e})}}}),tt=dt(()=>{T&&M!==!1&&Zt(!wt)});u.useEffect(()=>{const e=Ot(()=>{k.current&&q()});let r;const d=I=>{I.forEach(L=>{L.removedNodes.forEach(G=>{r?.unobserve(G)}),L.addedNodes.forEach(G=>{r?.observe(G)})}),e(),tt()},c=Dt(k.current);c.addEventListener("resize",e);let h;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(e),Array.from($.current.children).forEach(I=>{r.observe(I)})),typeof MutationObserver<"u"&&(h=new MutationObserver(d),h.observe($.current,{childList:!0})),()=>{e.clear(),c.removeEventListener("resize",e),h?.disconnect(),r?.disconnect()}},[q,tt]),u.useEffect(()=>{const e=Array.from($.current.children),r=e.length;if(typeof IntersectionObserver<"u"&&r>0&&T&&M!==!1){const d=e[0],c=e[r-1],h={root:k.current,threshold:.99},I=ct=>{qt(!ct[0].isIntersecting)},L=new IntersectionObserver(I,h);L.observe(d);const G=ct=>{Gt(!ct[0].isIntersecting)},jt=new IntersectionObserver(G,h);return jt.observe(c),()=>{L.disconnect(),jt.disconnect()}}},[T,M,wt,C?.length]),u.useEffect(()=>{Vt(!0)},[]),u.useEffect(()=>{q()}),u.useEffect(()=>{zt(Lt!==H)},[zt,H]),u.useImperativeHandle(f,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const[ro,no]=D("indicator",{className:W(z.indicator,K.className),elementType:Do,externalForwardedProps:O,ownerState:R,additionalProps:{style:H}}),Wt=p.jsx(ro,{...no});let ot=0;const so=u.Children.map(C,e=>{if(!u.isValidElement(e))return null;const r=e.props.value===void 0?ot:e.props.value;Tt.set(r,ot);const d=r===F;return ot+=1,u.cloneElement(e,{fullWidth:P==="fullWidth",indicator:d&&!xt&&Wt,selected:d,selectionFollowsFocus:rt,onChange:B,textColor:_,value:r,...ot===1&&F===!1&&!e.props.tabIndex?{tabIndex:0}:{}})}),ao=e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;const r=$.current,d=xo(r).activeElement;if(d.getAttribute("role")!=="tab")return;let h=y==="horizontal"?"ArrowLeft":"ArrowUp",I=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&a&&(h="ArrowRight",I="ArrowLeft"),e.key){case h:e.preventDefault(),et(r,d,$t);break;case I:e.preventDefault(),et(r,d,Ht);break;case"Home":e.preventDefault(),et(r,null,Ht);break;case"End":e.preventDefault(),et(r,null,$t);break}},it=lo(),[io,co]=D("root",{ref:l,className:W(z.root,m),elementType:Ao,externalForwardedProps:{...O,...Kt,component:S},ownerState:R}),[uo,bo]=D("scroller",{ref:k,className:z.scroller,elementType:Fo,externalForwardedProps:O,ownerState:R,additionalProps:{style:{overflow:Bt.overflow,[g?`margin${a?"Left":"Right"}`:"marginBottom"]:nt?void 0:-Bt.scrollbarWidth}}}),[po,fo]=D("list",{ref:$,className:W(z.list,z.flexContainer),elementType:Oo,externalForwardedProps:O,ownerState:R,getSlotProps:e=>({...e,onKeyDown:r=>{ao(r),e.onKeyDown?.(r)}})});return p.jsxs(io,{...co,children:[it.scrollButtonStart,it.scrollbarSizeListener,p.jsxs(uo,{...bo,children:[p.jsx(po,{"aria-label":i,"aria-labelledby":b,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...fo,children:so}),xt&&Wt]}),it.scrollButtonEnd]})}),Nt="index",X={tabs:`${Nt}-tabs`,tab:`${Nt}-tab`},Ko=yo(mt)(({theme:o})=>({[`& .${X.tabs}`]:{},[`& .${X.tab}`]:{fontSize:"0.875rem",[o.breakpoints.up("md")]:{fontSize:"1rem"}}}));function Uo({tabs:o,current:t,onChange:l,iconPosition:s=void 0,enableTabClick:n=!1,...a}){return p.jsx(mt,{scrollButtons:"auto",value:t,onChange:(i,b)=>!n&&l(b),...a,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:"grey.100",padding:.5,display:"inline-flex",columnGap:.25,maxWidth:"100%",overflowX:"auto"},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:"text.secondary",fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"action.selected",borderColor:"grey.100",color:"grey.A700"}},".MuiTabs-indicator":{display:"none"},...a.sx},children:o.map(i=>p.jsx(vt,{className:X.tab,value:i.value,label:i.label,icon:i.icon,iconPosition:s,onClick:()=>n&&l(i.value)},i.value))})}function Yo({tabs:o,current:t,onChange:l,iconPosition:s=void 0,enableTabClick:n=!1,...a}){return p.jsx(mt,{scrollButtons:"auto",value:t,onChange:(i,b)=>!n&&l(b),...a,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":a.orientation!=="vertical"?{"&::after":{content:'""',display:"block",position:"sticky",left:0,zIndex:-1,width:"100%",height:"1px",backgroundColor:"grey.300"}}:{},".MuiTabs-flexContainer":{display:"inline-flex",columnGap:2.5,px:0,pb:.5},".MuiTab-root":{border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,px:0,color:"text.secondary",fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:"primary.main"}},".MuiTabs-indicator":{height:"1px",backgroundColor:"primary.main"},...a.sx},children:o.map(i=>p.jsx(vt,{className:X.tab,value:i.value,label:i.label,icon:i.icon,iconPosition:s,onClick:()=>n&&l(i.value)},i.value))})}function qo({tabs:o,current:t,onChange:l,variant:s=void 0,iconPosition:n=void 0,enableTabClick:a=!1,...i}){return s==="card"?p.jsx(Uo,{...i,tabs:o,current:t,enableTabClick:a,onChange:l,iconPosition:n}):s==="line"?p.jsx(Yo,{...i,tabs:o,current:t,enableTabClick:a,onChange:l,iconPosition:n}):p.jsx(Ko,{scrollButtons:"auto",variant:"scrollable",value:t,onChange:(b,f)=>!a&&l(f),indicatorColor:"primary",...i,className:[X.tabs,i.className||""].join(" "),children:o.map(b=>p.jsx(vt,{className:X.tab,value:b.value,label:b.label,icon:b.icon,iconPosition:n,onClick:()=>a&&l(b.value)},b.value))})}function Go(o,t=""){const{info:l}=go(),s=Co(()=>{const n=o?.breadcrumbsLabel||o?.label||"";return wo(n,t,l)},[o,t,l]);return s?p.jsx(Bo,{children:p.jsx("title",{children:s})}):null}export{qo as T,vt as a,mt as b,ut as t,Go as u};
|
|
1
|
+
import{c0 as bt,c1 as pt,r as u,c2 as ft,c4 as W,j as p,b9 as N,ch as At,c5 as ht,bZ as Ft,b_ as St,d8 as ho,d9 as Ot,da as Dt,db as Xt,dc as So,dd as vo,c3 as lt,f as mo,de as dt,cg as D,df as xo,bs as yo,u as go,bE as Co,dg as wo,dh as Bo}from"./index-CyYCs6Na.js";function To(o){return pt("MuiTab",o)}const x=bt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),Io=o=>{const{classes:t,textColor:l,fullWidth:s,wrapped:n,icon:a,label:i,selected:b,disabled:f}=o,v={root:["root",a&&i&&"labelIcon",`textColor${At(l)}`,s&&"fullWidth",n&&"wrapped",b&&"selected",f&&"disabled"],icon:["iconWrapper","icon"]};return ht(v,To,t)},Mo=N(Ft,{name:"MuiTab",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:l}=o;return[t.root,l.label&&l.icon&&t.labelIcon,t[`textColor${At(l.textColor)}`],l.fullWidth&&t.fullWidth,l.wrapped&&t.wrapped,{[`& .${x.iconWrapper}`]:t.iconWrapper},{[`& .${x.icon}`]:t.icon}]}})(St(({theme:o})=>({...o.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:l})=>t.icon&&t.label&&l==="top",style:{[`& > .${x.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:l})=>t.icon&&t.label&&l==="bottom",style:{[`& > .${x.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:l})=>t.icon&&t.label&&l==="start",style:{[`& > .${x.icon}`]:{marginRight:o.spacing(1)}}},{props:({ownerState:t,iconPosition:l})=>t.icon&&t.label&&l==="end",style:{[`& > .${x.icon}`]:{marginLeft:o.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${x.selected}`]:{opacity:1},[`&.${x.disabled}`]:{opacity:(o.vars||o).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(o.vars||o).palette.text.secondary,[`&.${x.selected}`]:{color:(o.vars||o).palette.primary.main},[`&.${x.disabled}`]:{color:(o.vars||o).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(o.vars||o).palette.text.secondary,[`&.${x.selected}`]:{color:(o.vars||o).palette.secondary.main},[`&.${x.disabled}`]:{color:(o.vars||o).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:o.typography.pxToRem(12)}}]}))),vt=u.forwardRef(function(t,l){const s=ft({props:t,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:b,icon:f,iconPosition:v="top",indicator:C,label:m,onChange:S,onClick:w,onFocus:j,selected:B,selectionFollowsFocus:y,textColor:Z="inherit",value:M,wrapped:rt=!1,...E}=s,A={...s,disabled:a,disableFocusRipple:i,selected:B,icon:!!f,iconPosition:v,label:!!m,fullWidth:b,textColor:Z,wrapped:rt},K=Io(A),U=f&&m&&u.isValidElement(f)?u.cloneElement(f,{className:W(K.icon,f.props.className)}):f,_=P=>{!B&&S&&S(P,M),w&&w(P)},F=P=>{y&&!B&&S&&S(P,M),j&&j(P)};return p.jsxs(Mo,{focusRipple:!i,className:W(K.root,n),ref:l,role:"tab","aria-selected":B,disabled:a,onClick:_,onFocus:F,ownerState:A,tabIndex:B?0:-1,...E,children:[v==="top"||v==="start"?p.jsxs(u.Fragment,{children:[U,m]}):p.jsxs(u.Fragment,{children:[m,U]}),C]})});function Eo(o){return(1+Math.sin(Math.PI*o-Math.PI/2))/2}function Po(o,t,l,s={},n=()=>{}){const{ease:a=Eo,duration:i=300}=s;let b=null;const f=t[o];let v=!1;const C=()=>{v=!0},m=S=>{if(v){n(new Error("Animation cancelled"));return}b===null&&(b=S);const w=Math.min(1,(S-b)/i);if(t[o]=a(w)*(l-f)+f,w>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(m)};return f===l?(n(new Error("Element already at target position")),C):(requestAnimationFrame(m),C)}const Ro={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function ko(o){const{onChange:t,...l}=o,s=u.useRef(),n=u.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return ho(()=>{const i=Ot(()=>{const f=s.current;a(),f!==s.current&&t(s.current)}),b=Dt(n.current);return b.addEventListener("resize",i),()=>{i.clear(),b.removeEventListener("resize",i)}},[t]),u.useEffect(()=>{a(),t(s.current)},[t]),p.jsx("div",{style:Ro,...l,ref:n})}function zo(o){return pt("MuiTabScrollButton",o)}const Wo=bt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),jo=o=>{const{classes:t,orientation:l,disabled:s}=o;return ht({root:["root",l,s&&"disabled"]},zo,t)},Ho=N(Ft,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:l}=o;return[t.root,l.orientation&&t[l.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${Wo.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),$o=u.forwardRef(function(t,l){const s=ft({props:t,name:"MuiTabScrollButton"}),{className:n,slots:a={},slotProps:i={},direction:b,orientation:f,disabled:v,...C}=s,m=Xt(),S={isRtl:m,...s},w=jo(S),j=a.StartScrollButtonIcon??So,B=a.EndScrollButtonIcon??vo,y=lt({elementType:j,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S}),Z=lt({elementType:B,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S});return p.jsx(Ho,{component:"div",className:W(w.root,n),ref:l,role:null,ownerState:S,tabIndex:null,...C,style:{...C.style,...f==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${m?-90:90}deg)`}},children:b==="left"?p.jsx(j,{...y}):p.jsx(B,{...Z})})});function Lo(o){return pt("MuiTabs",o)}const ut=bt("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ht=(o,t)=>o===t?o.firstChild:t&&t.nextElementSibling?t.nextElementSibling:o.firstChild,$t=(o,t)=>o===t?o.lastChild:t&&t.previousElementSibling?t.previousElementSibling:o.lastChild,et=(o,t,l)=>{let s=!1,n=l(o,t);for(;n;){if(n===o.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(o,n);else{n.focus();return}}},No=o=>{const{vertical:t,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:i,scrollButtonsHideMobile:b,classes:f}=o;return ht({root:["root",t&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",b&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Lo,f)},Ao=N("div",{name:"MuiTabs",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:l}=o;return[{[`& .${ut.scrollButtons}`]:t.scrollButtons},{[`& .${ut.scrollButtons}`]:l.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,l.vertical&&t.vertical]}})(St(({theme:o})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${ut.scrollButtons}`]:{[o.breakpoints.down("sm")]:{display:"none"}}}}]}))),Fo=N("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(o,t)=>{const{ownerState:l}=o;return[t.scroller,l.fixed&&t.fixed,l.hideScrollbar&&t.hideScrollbar,l.scrollableX&&t.scrollableX,l.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:o})=>o.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:o})=>o.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:o})=>o.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:o})=>o.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Oo=N("div",{name:"MuiTabs",slot:"List",overridesResolver:(o,t)=>{const{ownerState:l}=o;return[t.list,t.flexContainer,l.vertical&&t.flexContainerVertical,l.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:o})=>o.vertical,style:{flexDirection:"column"}},{props:({ownerState:o})=>o.centered,style:{justifyContent:"center"}}]}),Do=N("span",{name:"MuiTabs",slot:"Indicator"})(St(({theme:o})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:o.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(o.vars||o).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(o.vars||o).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),Xo=N(ko)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Lt={},mt=u.forwardRef(function(t,l){const s=ft({props:t,name:"MuiTabs"}),n=mo(),a=Xt(),{"aria-label":i,"aria-labelledby":b,action:f,centered:v=!1,children:C,className:m,component:S="div",allowScrollButtonsMobile:w=!1,indicatorColor:j="primary",onChange:B,orientation:y="horizontal",ScrollButtonComponent:Z,scrollButtons:M="auto",selectionFollowsFocus:rt,slots:E={},slotProps:A={},TabIndicatorProps:K={},TabScrollButtonProps:U={},textColor:_="primary",value:F,variant:P="standard",visibleScrollbar:nt=!1,...Kt}=s,T=P==="scrollable",g=y==="vertical",Y=g?"scrollTop":"scrollLeft",J=g?"top":"left",Q=g?"bottom":"right",st=g?"clientHeight":"clientWidth",V=g?"height":"width",R={...s,component:S,allowScrollButtonsMobile:w,indicatorColor:j,orientation:y,vertical:g,scrollButtons:M,textColor:_,variant:P,visibleScrollbar:nt,fixed:!T,hideScrollbar:T&&!nt,scrollableX:T&&!g,scrollableY:T&&g,centered:v&&!T,scrollButtonsHideMobile:!w},z=No(R),Ut=lt({elementType:E.StartScrollButtonIcon,externalSlotProps:A.startScrollButtonIcon,ownerState:R}),Yt=lt({elementType:E.EndScrollButtonIcon,externalSlotProps:A.endScrollButtonIcon,ownerState:R}),[xt,Vt]=u.useState(!1),[H,yt]=u.useState(Lt),[gt,qt]=u.useState(!1),[Ct,Gt]=u.useState(!1),[wt,Zt]=u.useState(!1),[Bt,_t]=u.useState({overflow:"hidden",scrollbarWidth:0}),Tt=new Map,k=u.useRef(null),$=u.useRef(null),O={slots:E,slotProps:{indicator:K,scrollButton:U,...A}},It=()=>{const e=k.current;let r;if(e){const c=e.getBoundingClientRect();r={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:c.top,bottom:c.bottom,left:c.left,right:c.right}}let d;if(e&&F!==!1){const c=$.current.children;if(c.length>0){const h=c[Tt.get(F)];d=h?h.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:d}},q=dt(()=>{const{tabsMeta:e,tabMeta:r}=It();let d=0,c;g?(c="top",r&&e&&(d=r.top-e.top+e.scrollTop)):(c=a?"right":"left",r&&e&&(d=(a?-1:1)*(r[c]-e[c]+e.scrollLeft)));const h={[c]:d,[V]:r?r[V]:0};if(typeof H[c]!="number"||typeof H[V]!="number")yt(h);else{const I=Math.abs(H[c]-h[c]),L=Math.abs(H[V]-h[V]);(I>=1||L>=1)&&yt(h)}}),at=(e,{animation:r=!0}={})=>{r?Po(Y,k.current,e,{duration:n.transitions.duration.standard}):k.current[Y]=e},Mt=e=>{let r=k.current[Y];g?r+=e:r+=e*(a?-1:1),at(r)},Et=()=>{const e=k.current[st];let r=0;const d=Array.from($.current.children);for(let c=0;c<d.length;c+=1){const h=d[c];if(r+h[st]>e){c===0&&(r=e);break}r+=h[st]}return r},Jt=()=>{Mt(-1*Et())},Qt=()=>{Mt(Et())},[to,{onChange:Pt,...oo}]=D("scrollbar",{className:W(z.scrollableX,z.hideScrollbar),elementType:Xo,shouldForwardComponentProp:!0,externalForwardedProps:O,ownerState:R}),eo=u.useCallback(e=>{Pt?.(e),_t({overflow:null,scrollbarWidth:e})},[Pt]),[Rt,kt]=D("scrollButtons",{className:W(z.scrollButtons,U.className),elementType:$o,externalForwardedProps:O,ownerState:R,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:E.startScrollButtonIcon||E.StartScrollButtonIcon,EndScrollButtonIcon:E.endScrollButtonIcon||E.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:Ut,endScrollButtonIcon:Yt}}}),lo=()=>{const e={};e.scrollbarSizeListener=T?p.jsx(to,{...oo,onChange:eo}):null;const d=T&&(M==="auto"&&(gt||Ct)||M===!0);return e.scrollButtonStart=d?p.jsx(Rt,{direction:a?"right":"left",onClick:Jt,disabled:!gt,...kt}):null,e.scrollButtonEnd=d?p.jsx(Rt,{direction:a?"left":"right",onClick:Qt,disabled:!Ct,...kt}):null,e},zt=dt(e=>{const{tabsMeta:r,tabMeta:d}=It();if(!(!d||!r)){if(d[J]<r[J]){const c=r[Y]+(d[J]-r[J]);at(c,{animation:e})}else if(d[Q]>r[Q]){const c=r[Y]+(d[Q]-r[Q]);at(c,{animation:e})}}}),tt=dt(()=>{T&&M!==!1&&Zt(!wt)});u.useEffect(()=>{const e=Ot(()=>{k.current&&q()});let r;const d=I=>{I.forEach(L=>{L.removedNodes.forEach(G=>{r?.unobserve(G)}),L.addedNodes.forEach(G=>{r?.observe(G)})}),e(),tt()},c=Dt(k.current);c.addEventListener("resize",e);let h;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(e),Array.from($.current.children).forEach(I=>{r.observe(I)})),typeof MutationObserver<"u"&&(h=new MutationObserver(d),h.observe($.current,{childList:!0})),()=>{e.clear(),c.removeEventListener("resize",e),h?.disconnect(),r?.disconnect()}},[q,tt]),u.useEffect(()=>{const e=Array.from($.current.children),r=e.length;if(typeof IntersectionObserver<"u"&&r>0&&T&&M!==!1){const d=e[0],c=e[r-1],h={root:k.current,threshold:.99},I=ct=>{qt(!ct[0].isIntersecting)},L=new IntersectionObserver(I,h);L.observe(d);const G=ct=>{Gt(!ct[0].isIntersecting)},jt=new IntersectionObserver(G,h);return jt.observe(c),()=>{L.disconnect(),jt.disconnect()}}},[T,M,wt,C?.length]),u.useEffect(()=>{Vt(!0)},[]),u.useEffect(()=>{q()}),u.useEffect(()=>{zt(Lt!==H)},[zt,H]),u.useImperativeHandle(f,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const[ro,no]=D("indicator",{className:W(z.indicator,K.className),elementType:Do,externalForwardedProps:O,ownerState:R,additionalProps:{style:H}}),Wt=p.jsx(ro,{...no});let ot=0;const so=u.Children.map(C,e=>{if(!u.isValidElement(e))return null;const r=e.props.value===void 0?ot:e.props.value;Tt.set(r,ot);const d=r===F;return ot+=1,u.cloneElement(e,{fullWidth:P==="fullWidth",indicator:d&&!xt&&Wt,selected:d,selectionFollowsFocus:rt,onChange:B,textColor:_,value:r,...ot===1&&F===!1&&!e.props.tabIndex?{tabIndex:0}:{}})}),ao=e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;const r=$.current,d=xo(r).activeElement;if(d.getAttribute("role")!=="tab")return;let h=y==="horizontal"?"ArrowLeft":"ArrowUp",I=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&a&&(h="ArrowRight",I="ArrowLeft"),e.key){case h:e.preventDefault(),et(r,d,$t);break;case I:e.preventDefault(),et(r,d,Ht);break;case"Home":e.preventDefault(),et(r,null,Ht);break;case"End":e.preventDefault(),et(r,null,$t);break}},it=lo(),[io,co]=D("root",{ref:l,className:W(z.root,m),elementType:Ao,externalForwardedProps:{...O,...Kt,component:S},ownerState:R}),[uo,bo]=D("scroller",{ref:k,className:z.scroller,elementType:Fo,externalForwardedProps:O,ownerState:R,additionalProps:{style:{overflow:Bt.overflow,[g?`margin${a?"Left":"Right"}`:"marginBottom"]:nt?void 0:-Bt.scrollbarWidth}}}),[po,fo]=D("list",{ref:$,className:W(z.list,z.flexContainer),elementType:Oo,externalForwardedProps:O,ownerState:R,getSlotProps:e=>({...e,onKeyDown:r=>{ao(r),e.onKeyDown?.(r)}})});return p.jsxs(io,{...co,children:[it.scrollButtonStart,it.scrollbarSizeListener,p.jsxs(uo,{...bo,children:[p.jsx(po,{"aria-label":i,"aria-labelledby":b,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...fo,children:so}),xt&&Wt]}),it.scrollButtonEnd]})}),Nt="index",X={tabs:`${Nt}-tabs`,tab:`${Nt}-tab`},Ko=yo(mt)(({theme:o})=>({[`& .${X.tabs}`]:{},[`& .${X.tab}`]:{fontSize:"0.875rem",[o.breakpoints.up("md")]:{fontSize:"1rem"}}}));function Uo({tabs:o,current:t,onChange:l,iconPosition:s=void 0,enableTabClick:n=!1,...a}){return p.jsx(mt,{scrollButtons:"auto",value:t,onChange:(i,b)=>!n&&l(b),...a,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:"grey.100",padding:.5,display:"inline-flex",columnGap:.25,maxWidth:"100%",overflowX:"auto"},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:"text.secondary",fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"action.selected",borderColor:"grey.100",color:"grey.A700"}},".MuiTabs-indicator":{display:"none"},...a.sx},children:o.map(i=>p.jsx(vt,{className:X.tab,value:i.value,label:i.label,icon:i.icon,iconPosition:s,onClick:()=>n&&l(i.value)},i.value))})}function Yo({tabs:o,current:t,onChange:l,iconPosition:s=void 0,enableTabClick:n=!1,...a}){return p.jsx(mt,{scrollButtons:"auto",value:t,onChange:(i,b)=>!n&&l(b),...a,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":a.orientation!=="vertical"?{"&::after":{content:'""',display:"block",position:"sticky",left:0,zIndex:-1,width:"100%",height:"1px",backgroundColor:"grey.300"}}:{},".MuiTabs-flexContainer":{display:"inline-flex",columnGap:2.5,px:0,pb:.5},".MuiTab-root":{border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,px:0,color:"text.secondary",fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:"primary.main"}},".MuiTabs-indicator":{height:"1px",backgroundColor:"primary.main"},...a.sx},children:o.map(i=>p.jsx(vt,{className:X.tab,value:i.value,label:i.label,icon:i.icon,iconPosition:s,onClick:()=>n&&l(i.value)},i.value))})}function qo({tabs:o,current:t,onChange:l,variant:s=void 0,iconPosition:n=void 0,enableTabClick:a=!1,...i}){return s==="card"?p.jsx(Uo,{...i,tabs:o,current:t,enableTabClick:a,onChange:l,iconPosition:n}):s==="line"?p.jsx(Yo,{...i,tabs:o,current:t,enableTabClick:a,onChange:l,iconPosition:n}):p.jsx(Ko,{scrollButtons:"auto",variant:"scrollable",value:t,onChange:(b,f)=>!a&&l(f),indicatorColor:"primary",...i,className:[X.tabs,i.className||""].join(" "),children:o.map(b=>p.jsx(vt,{className:X.tab,value:b.value,label:b.label,icon:b.icon,iconPosition:n,onClick:()=>a&&l(b.value)},b.value))})}function Go(o,t=""){const{info:l}=go(),s=Co(()=>{const n=o?.breadcrumbsLabel||o?.label||"";return wo(n,t,l)},[o,t,l]);return s?p.jsx(Bo,{children:p.jsx("title",{children:s})}):null}export{qo as T,vt as a,mt as b,ut as t,Go as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as lt}from"./index-
|
|
1
|
+
import{m as lt}from"./index-qDXgq7vV.js";import"./index-CyYCs6Na.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h5 as E,bf as L}from"./index-
|
|
1
|
+
import{h5 as E,bf as L}from"./index-CyYCs6Na.js";const U=({url:r,allowFullScreen:o,position:a,display:u,height:i,width:y,overflow:f,styles:c,onLoad:p,onMouseOver:b,onMouseOut:w,scrolling:d,id:m,frameBorder:t,ariaHidden:O,sandbox:s,allow:j,className:h,title:g,ariaLabel:k,ariaLabelledby:P,name:v,target:A,loading:F,importance:I,referrerpolicy:M,allowpaymentrequest:S,src:q,key:x})=>{const n=E({src:q||r,target:A||null,style:{position:a||null,display:u||"initial",overflow:f||null},scrolling:d||null,allowpaymentrequest:S||null,importance:I||null,sandbox:s&&[...s].join(" ")||null,loading:F||null,styles:c||null,name:v||null,className:h||null,allowFullScreen:"allowFullScreen",referrerpolicy:M||null,title:g||null,allow:j||null,id:m||null,"aria-labelledby":P||null,"aria-hidden":O||null,"aria-label":k||null,width:y||null,height:i||null,onLoad:p||null,onMouseOver:b||null,onMouseOut:w||null,key:x||"iframe"});let l=Object.create(null);for(let e of Object.keys(n))n[e]!=null&&(l[e]=n[e]);for(let e of Object.keys(l.style))l.style[e]==null&&delete l.style[e];if(l.styles)for(let e of Object.keys(l.styles))l.styles.hasOwnProperty(e)&&(l.style[e]=l.styles[e]),Object.keys(l.styles).pop()==e&&delete l.styles;if(o)if("allow"in l){const e=l.allow.replace("fullscreen","");l.allow=`fullscreen ${e.trim()}`.trim()}else l.allow="fullscreen";return t>=0&&(l.style.hasOwnProperty("border")||(l.style.border=t)),L.createElement("iframe",Object.assign({},l))};export{U as I};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c1 as Ke,c0 as Fe,r as h,c2 as Ge,j as e,b9 as ee,c4 as Ye,ch as J,c5 as $e,b_ as He,cj as qe,aF as he,M as q,bo as A,cw as Ce,H as B,Y as V,bg as E,fD as we,aQ as Be,b as N,iW as Ve,V as D,gL as Qe,o as f,x as Xe,ax as De,y as fe,al as Ze,p as Je,C as L,T as j,k as et,s as tt,f as st,iX as X,i6 as Z,iY as ot,K as S,aW as K,aH as T,L as nt,g as H,dm as at,O as Se,R as G,aE as Y,a9 as $,a5 as rt,bB as it,fu as ct,b0 as lt,v as pe,w as dt,G as be,Z as Ee,bE as xe,B as pt}from"./index-87RKuT5C.js";import{T as ut}from"./html-title-Dp-sqsn-.js";import{u as U}from"./blocklet-C0-c8dVN.js";import{u as mt}from"./use-mobile-BmJGrK15.js";import{c as Ie,d as ft,e as xt,f as gt,S as ht,g as ue,h as St,b as yt,u as bt,C as kt,D as jt,a as Ct}from"./connect-to-DCLDiA4c.js";import"./index-CS7M20xU.js";import"./index-BojVbZw0.js";import"./api-D8LqcBu8.js";import{d as wt,a as Bt,g as Dt,i as Et,e as ge,f as It,h as Tt,j as Rt}from"./spaces-BJDcrjBg.js";import{v as zt}from"./index-29D5d56z.js";import{E as vt}from"./index-D9CYdevY.js";import{H as Pt}from"./HelpOutline-DpBESAst.js";import{H as At}from"./index-EFWTbF8B.js";import{x as Lt}from"./index-DRYJ0xIl.js";import{D as Ut}from"./DeleteOutline-P1tPKlQL.js";import{g as ke}from"./get-safe-url-DwUMajjg.js";import{S as Ot}from"./switch-control-HQLhcuwU.js";import{L as je}from"./list-header-DMsNH71I.js";import"./OpenInNew-C5gvRiqd.js";import"./ButtonGroup-3fqwj5Ky.js";import"./getValidReactChildren-7B6f8iqP.js";import"./FilterList-DCiDc43y.js";import"./CSSTransition-hVfsLWm-.js";import"./emotion-cache.browser.esm-CZAf8Clc.js";import"./index-qPcTPC8W.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-B4BFmwuI.js";import"./index-Snc2Ei8N.js";import"./TableSearch-DRmWGhph.js";import"./Search-x2lb6Akd.js";import"./Clear-BFurvC8R.js";import"./MoreVert-V2LiAaXF.js";function Mt(t){return Ke("MuiIcon",t)}Fe("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Nt=t=>{const{color:s,fontSize:n,classes:o}=t,r={root:["root",s!=="inherit"&&`color${J(s)}`,`fontSize${J(n)}`]};return $e(r,Mt,o)},_t=ee("span",{name:"MuiIcon",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.color!=="inherit"&&s[`color${J(n.color)}`],s[`fontSize${J(n.fontSize)}`]]}})(He(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,variants:[{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography.pxToRem(20)}},{props:{fontSize:"medium"},style:{fontSize:t.typography.pxToRem(24)}},{props:{fontSize:"large"},style:{fontSize:t.typography.pxToRem(36)}},{props:{color:"action"},style:{color:(t.vars||t).palette.action.active}},{props:{color:"disabled"},style:{color:(t.vars||t).palette.action.disabled}},{props:{color:"inherit"},style:{color:void 0}},...Object.entries(t.palette).filter(qe()).map(([s])=>({props:{color:s},style:{color:(t.vars||t).palette[s].main}}))]}))),ye=h.forwardRef(function(s,n){const o=Ge({props:s,name:"MuiIcon"}),{baseClassName:r="material-icons",className:a,color:c="inherit",component:i="span",fontSize:d="medium",...l}=o,p={...o,baseClassName:r,color:c,component:i,fontSize:d},u=Nt(p);return e.jsx(_t,{as:i,className:Ye(r,"notranslate",u.root,a),ownerState:p,"aria-hidden":!0,ref:n,...l})});ye.muiName="Icon";const Wt=he(e.jsx("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"})),Kt=he(e.jsx("path",{d:"M14.69 2.21 4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.02l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01-.3-.3-.77-.31-1.08-.02"})),Ft=he(e.jsx("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}));async function Gt({blockletDid:t,nodeApi:s,spaceGateways:n}){let o=!1;const r=await Promise.all(n.map(async a=>{let{name:c}=a;const i=await wt(a.endpoint);return!q(i)&&i!==c&&(c=i,o=!0),{...a,name:c}}));return o&&await Promise.all(r.filter(a=>a.did).map(a=>s.updateBlockletSpaceGateway({input:{did:t,where:{did:a.did},spaceGateway:{...a}}}))),r}function Yt({refresh:t}={}){const{blocklet:s}=U(),n=s?.meta?.did,{api:o}=A();return Ce(async()=>{if(!n)return[];const{spaceGateways:r}=await o.getBlockletSpaceGateways({input:{did:n}});return await Gt({blockletDid:n,nodeApi:o,spaceGateways:r})??[]},{refreshDeps:[n,t],onError(r){r?.message?.includes("not logged")?console.warn(r):(console.error(r),B.error(V(r)))}})}function Te({deps:t,setLoading:s,backupDate:n}={deps:[],setLoading:()=>{},backupDate:new Date}){const{blocklet:o}=U(),[r,a]=h.useState([]),{api:c}=A(),[i,d]=h.useMemo(()=>n?[E(n).startOf("day").toISOString(),E(n).endOf("day").toISOString()]:[E().startOf("year").toISOString(),E().endOf("day").toISOString()],[n]),l=we(async()=>{try{if(s(!0),!o){a([]);return}const{backups:p}=await c.getBlockletBackups({input:{did:o.meta.did,startTime:i,endTime:d}});a(p??[])}catch(p){console.error(p),B.error(V(p))}finally{s(!1)}},1e3);return Be(async()=>{l()},[o?.meta?.did].concat(t)),{backups:r}}function $t({appDid:t}){const{backups:s}=Te(),[n,o]=h.useState({message:"",progress:0,completed:!1}),r=A(),{ws:{useSubscription:a}}=r;return a(N.BlockletEvents.backupProgress,c=>{t===c?.appDid&&o(()=>({...c}))},[t]),h.useEffect(()=>{if(s?.length&&Ve(s[0]?.status)){const[c]=s;o(()=>({message:c.message,progress:c.progress,completed:c.progress>=100}))}},[s]),n}function Ht({deps:t=[],setLoading:s=()=>{}}={}){const{blocklet:n}=U(),[o,r]=h.useState([]),{api:a}=A(),c=h.useCallback(we(async()=>{if(!a||!n?.meta?.did){r([]);return}try{s(!0);const i=E(),d=i.subtract(1,"year"),{summary:l}=await a.getBlockletBackupSummary({input:{did:n.meta.did,startTime:d.toISOString(),endTime:i.toISOString()}}),p=Array.isArray(l)?l.map(u=>({...u,successCount:+u.successCount,errorCount:+u.errorCount})):[];r(p)}catch(i){console.error("Failed to fetch backup summary:",i),B.error(V(i)),r([])}finally{s(!1)}},1e3),[]);return Be(async()=>(await c(),()=>{c.cancel()}),[n?.meta?.did].concat(t)),{backupSummary:o}}const Re=h.createContext({}),{Provider:qt,Consumer:Ws}=Re;function ze({children:t}){const{t:s}=D(),{api:n}=A(),{blocklet:o}=U(),[r,a]=h.useState(null),[c,i]=h.useState(!1),{data:d,loading:l,mutate:p}=Yt({refresh:c}),u=Qe(d),x=$t({appDid:o?.appDid}),m=h.useMemo(()=>Bt(o?.environments),[o?.environments]),[k,w]=h.useState(!1),[y,b]=h.useState(0),{backups:te}=Te({deps:[y,r],setLoading:w,backupDate:r}),[se,oe]=h.useState(0),{backupSummary:ne}=Ht({deps:[se]}),[_,M]=h.useState(d?.find(g=>g.endpoint===m)),I=o?.settings?.autoBackup,z=()=>{i(g=>!g)},ae=()=>{oe(g=>g+1)},re=()=>{b(g=>g+1)},F=async g=>{await n.updateAutoBackup({input:{did:o.meta.did,autoBackup:g}})},Q=async()=>{await n.abortBlockletBackup({input:{appPid:o.meta.did}})},ie=async(g,P)=>{try{p(R=>{const v=[...R];return v.push({...g,loading:!0}),v}),await n.addBlockletSpaceGateway({input:{did:o.meta.did,spaceGateway:g}}),m!==P&&await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:N.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:P}]}}),M(g),z(),B.success(s("storage.spaces.connectedWithName",{name:g?.name??"DID Spaces"}))}catch(R){throw console.error(R),p(v=>[...v].filter(W=>W.did!==g.did)),R}},ce=async g=>{g&&(g.endpoint===m&&(await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:N.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:""}]}}),I?.enabled&&await F({enabled:!1})),await n.deleteBlockletSpaceGateway({input:{did:o.meta.did,spaceGatewayDid:g?.did}}),p(P=>{const R=[...P];return R.splice(R.indexOf(g),1),R}),M(g),z())},le=async g=>{await Promise.all([n.updateBlockletSpaceGateway({input:{did:o.meta.did,where:{did:g.did},spaceGateway:g}}),m!==g.endpoint&&n.configBlocklet({input:{did:[o.meta.did],configs:[{key:N.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:g.endpoint}]}})]),B.success(s("storage.spaces.connectedWithName",{name:g?.name??"DID Spaces"})),z()},C=g=>g?.endpoint===m;return e.jsx(qt,{value:{spaceGateways:d||[],selectedSpaceGateway:_,addSpaceGateway:ie,deleteSpaceGateway:ce,updateSpaceGateway:le,refreshSpaceGateways:z,spaceGatewaysLoading:l,spaceGatewaysFirstLoading:u,spaceGatewayIsSelected:C,updateAutoBackup:F,abortBlockletBackup:Q,backupEndpoint:m,backupProgress:x,backups:te,backupSummary:ne,refreshBackupSummary:ae,refreshBackups:re,setBackupDate:a,backupsLoading:k,autoBackup:I},children:t})}ze.propTypes={children:f.any.isRequired};function O(){return h.useContext(Re)}function ve({...t}){const{blocklet:s}=U(),{info:n}=A(),{t:o}=D(),r=Ie({blocklet:s}),a=Xe(n),{spaceGateways:c,addSpaceGateway:i}=O(),d={checkFn:De.create({baseURL:fe(window.location.origin,Ze())}).get,webWalletUrl:a,extraParams:{appPid:s.appPid,appDid:r.appDid,appName:r.appName,appDescription:r.appDescription,appUrl:r.appUrl,referrer:r.referrer,scopes:r.scopes,nodeDid:n.did}},l=async({endpoint:u,name:x,did:m})=>{const k=await Dt(u);if(!await Et(k)){B.error(o("storage.spaces.gateway.add.invalidUrl"));return}if(c.some(b=>b.endpoint===u)){B.error(o("storage.spaces.gateway.add.duplicate",{name:x}));return}await i({name:x,did:m,url:k,endpoint:u},u)},p=async({spaceGateway:u})=>{try{await l(u)}catch(x){console.error(x),B.error(V(x))}};return e.jsx(ft,{...t,connectScope:"app",options:d,onSuccess:p})}function Vt(){const{api:t}=A(),{blocklet:s}=U(),{data:n,loading:o}=Ce(()=>t.getBlocklet({input:{did:s?.meta?.did,attachDiskInfo:!0,attachRuntimeInfo:!0}}),{ready:!!s?.meta?.did,refreshDeps:[s?.meta?.did]});return{blocklet:n?.blocklet??null,loading:o}}function Pe({...t}){const{t:s}=h.useContext(Je),{blocklet:n,loading:o}=Vt();if(n?.diskInfo){const r=(i,d,l)=>e.jsxs(j,{children:[i," ",e.jsx("strong",{children:d?et(d):"empty"})]}),a=n.environments.reduce((i,d)=>(i[d.key]=d.value,i),{}),c=[{key:"appDir",name:s("blocklet.diskInfo.appDir"),value:r(a.BLOCKLET_APP_DIR,n.diskInfo.app)},{key:"dataDir",name:s("blocklet.diskInfo.dataDir"),value:r(a.BLOCKLET_DATA_DIR,n.diskInfo.data)},{key:"logDir",name:s("blocklet.diskInfo.logDir"),value:r(a.BLOCKLET_LOG_DIR,n.diskInfo.log)},{key:"cacheDir",name:s("blocklet.diskInfo.cacheDir"),value:r(a.BLOCKLET_CACHE_DIR,n.diskInfo.cache)}];return e.jsx(Qt,{component:"div",...t,children:c.map(i=>e.jsx(zt,{valueComponent:"div",nameWidth:120,name:i.name,children:i.value},i.key))})}return o?e.jsx(L,{}):e.jsx(j,{children:s("blocklet.diskInfo.empty")})}const Qt=tt(j)``;function Ae(){const{t}=D(),{setBackupDate:s,backupSummary:n}=O(),o=xt({key:"lg"}),r=h.useRef(null),a=st(),c=h.useCallback(l=>{s(l)},[s]),i=h.useMemo(()=>{const l=E().add(1,"day"),p=l.subtract(1,"year"),u=new Map(n.map(m=>[m.date,{date:m.date,successCount:m.successCount,errorCount:m.errorCount}])),x=[];for(let m=p.clone();E(m).isBefore(l);m=m.add(1,"day")){const k=m.format("YYYY-MM-DD");x.push(u.get(k)||{date:k,successCount:0,errorCount:0})}return x},[n]),d=h.useMemo(()=>({grid:{containLabel:!0,right:10,top:30,bottom:12},tooltip:{formatter:k=>{const{date:w,successCount:y,errorCount:b}=i[k.dataIndex]||{date:k.data[0],successCount:0,errorCount:0};return[`<div>${t("common.time")}: ${w}</div>`,`<div>${t("common.succeeded")}: ${y}</div>`,`<div>${t("common.failed")}: ${b}</div>`].join(`
|
|
1
|
+
import{c1 as Ke,c0 as Fe,r as h,c2 as Ge,j as e,b9 as ee,c4 as Ye,ch as J,c5 as $e,b_ as He,cj as qe,aF as he,M as q,bo as A,cw as Ce,H as B,Y as V,bg as E,fD as we,aQ as Be,b as N,iW as Ve,V as D,gL as Qe,o as f,x as Xe,ax as De,y as fe,al as Ze,p as Je,C as L,T as j,k as et,s as tt,f as st,iX as X,i6 as Z,iY as ot,K as S,aW as K,aH as T,L as nt,g as H,dm as at,O as Se,R as G,aE as Y,a9 as $,a5 as rt,bB as it,fu as ct,b0 as lt,v as pe,w as dt,G as be,Z as Ee,bE as xe,B as pt}from"./index-CyYCs6Na.js";import{T as ut}from"./html-title-ZIT73gw4.js";import{u as U}from"./blocklet-c-fcHcMv.js";import{u as mt}from"./use-mobile-DW1xADqf.js";import{c as Ie,d as ft,e as xt,f as gt,S as ht,g as ue,h as St,b as yt,u as bt,C as kt,D as jt,a as Ct}from"./connect-to-DYsYwfyz.js";import"./index-Dgm3J-5y.js";import"./index-BojVbZw0.js";import"./api-CzO1JAlF.js";import{d as wt,a as Bt,g as Dt,i as Et,e as ge,f as It,h as Tt,j as Rt}from"./spaces-z72qxe5O.js";import{v as zt}from"./index-Cihue4u0.js";import{E as vt}from"./index-DBPZHeTe.js";import{H as Pt}from"./HelpOutline-VHuGbaF6.js";import{H as At}from"./index-BE354x55.js";import{x as Lt}from"./index-DRYJ0xIl.js";import{D as Ut}from"./DeleteOutline-CCoXF09b.js";import{g as ke}from"./get-safe-url-DMzSWw8A.js";import{S as Ot}from"./switch-control-DBzGlbkg.js";import{L as je}from"./list-header-C9_FZEk7.js";import"./OpenInNew-O9EysXQn.js";import"./ButtonGroup-CE8Yme-Z.js";import"./getValidReactChildren-C2YiZOfP.js";import"./FilterList-BGhEWkST.js";import"./CSSTransition-Cq_0t7dk.js";import"./emotion-cache.browser.esm-DcciVh-V.js";import"./index-_ylGel7X.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-CDIkAeqx.js";import"./index-CNAqYYKs.js";import"./TableSearch-B1H-6-fg.js";import"./Search-edKoOPH1.js";import"./Clear-lc-87cdU.js";import"./MoreVert-DXy5wrMx.js";function Mt(t){return Ke("MuiIcon",t)}Fe("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Nt=t=>{const{color:s,fontSize:n,classes:o}=t,r={root:["root",s!=="inherit"&&`color${J(s)}`,`fontSize${J(n)}`]};return $e(r,Mt,o)},_t=ee("span",{name:"MuiIcon",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.color!=="inherit"&&s[`color${J(n.color)}`],s[`fontSize${J(n.fontSize)}`]]}})(He(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,variants:[{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography.pxToRem(20)}},{props:{fontSize:"medium"},style:{fontSize:t.typography.pxToRem(24)}},{props:{fontSize:"large"},style:{fontSize:t.typography.pxToRem(36)}},{props:{color:"action"},style:{color:(t.vars||t).palette.action.active}},{props:{color:"disabled"},style:{color:(t.vars||t).palette.action.disabled}},{props:{color:"inherit"},style:{color:void 0}},...Object.entries(t.palette).filter(qe()).map(([s])=>({props:{color:s},style:{color:(t.vars||t).palette[s].main}}))]}))),ye=h.forwardRef(function(s,n){const o=Ge({props:s,name:"MuiIcon"}),{baseClassName:r="material-icons",className:a,color:c="inherit",component:i="span",fontSize:d="medium",...l}=o,p={...o,baseClassName:r,color:c,component:i,fontSize:d},u=Nt(p);return e.jsx(_t,{as:i,className:Ye(r,"notranslate",u.root,a),ownerState:p,"aria-hidden":!0,ref:n,...l})});ye.muiName="Icon";const Wt=he(e.jsx("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"})),Kt=he(e.jsx("path",{d:"M14.69 2.21 4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.02l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01-.3-.3-.77-.31-1.08-.02"})),Ft=he(e.jsx("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}));async function Gt({blockletDid:t,nodeApi:s,spaceGateways:n}){let o=!1;const r=await Promise.all(n.map(async a=>{let{name:c}=a;const i=await wt(a.endpoint);return!q(i)&&i!==c&&(c=i,o=!0),{...a,name:c}}));return o&&await Promise.all(r.filter(a=>a.did).map(a=>s.updateBlockletSpaceGateway({input:{did:t,where:{did:a.did},spaceGateway:{...a}}}))),r}function Yt({refresh:t}={}){const{blocklet:s}=U(),n=s?.meta?.did,{api:o}=A();return Ce(async()=>{if(!n)return[];const{spaceGateways:r}=await o.getBlockletSpaceGateways({input:{did:n}});return await Gt({blockletDid:n,nodeApi:o,spaceGateways:r})??[]},{refreshDeps:[n,t],onError(r){r?.message?.includes("not logged")?console.warn(r):(console.error(r),B.error(V(r)))}})}function Te({deps:t,setLoading:s,backupDate:n}={deps:[],setLoading:()=>{},backupDate:new Date}){const{blocklet:o}=U(),[r,a]=h.useState([]),{api:c}=A(),[i,d]=h.useMemo(()=>n?[E(n).startOf("day").toISOString(),E(n).endOf("day").toISOString()]:[E().startOf("year").toISOString(),E().endOf("day").toISOString()],[n]),l=we(async()=>{try{if(s(!0),!o){a([]);return}const{backups:p}=await c.getBlockletBackups({input:{did:o.meta.did,startTime:i,endTime:d}});a(p??[])}catch(p){console.error(p),B.error(V(p))}finally{s(!1)}},1e3);return Be(async()=>{l()},[o?.meta?.did].concat(t)),{backups:r}}function $t({appDid:t}){const{backups:s}=Te(),[n,o]=h.useState({message:"",progress:0,completed:!1}),r=A(),{ws:{useSubscription:a}}=r;return a(N.BlockletEvents.backupProgress,c=>{t===c?.appDid&&o(()=>({...c}))},[t]),h.useEffect(()=>{if(s?.length&&Ve(s[0]?.status)){const[c]=s;o(()=>({message:c.message,progress:c.progress,completed:c.progress>=100}))}},[s]),n}function Ht({deps:t=[],setLoading:s=()=>{}}={}){const{blocklet:n}=U(),[o,r]=h.useState([]),{api:a}=A(),c=h.useCallback(we(async()=>{if(!a||!n?.meta?.did){r([]);return}try{s(!0);const i=E(),d=i.subtract(1,"year"),{summary:l}=await a.getBlockletBackupSummary({input:{did:n.meta.did,startTime:d.toISOString(),endTime:i.toISOString()}}),p=Array.isArray(l)?l.map(u=>({...u,successCount:+u.successCount,errorCount:+u.errorCount})):[];r(p)}catch(i){console.error("Failed to fetch backup summary:",i),B.error(V(i)),r([])}finally{s(!1)}},1e3),[]);return Be(async()=>(await c(),()=>{c.cancel()}),[n?.meta?.did].concat(t)),{backupSummary:o}}const Re=h.createContext({}),{Provider:qt,Consumer:Ws}=Re;function ze({children:t}){const{t:s}=D(),{api:n}=A(),{blocklet:o}=U(),[r,a]=h.useState(null),[c,i]=h.useState(!1),{data:d,loading:l,mutate:p}=Yt({refresh:c}),u=Qe(d),x=$t({appDid:o?.appDid}),m=h.useMemo(()=>Bt(o?.environments),[o?.environments]),[k,w]=h.useState(!1),[y,b]=h.useState(0),{backups:te}=Te({deps:[y,r],setLoading:w,backupDate:r}),[se,oe]=h.useState(0),{backupSummary:ne}=Ht({deps:[se]}),[_,M]=h.useState(d?.find(g=>g.endpoint===m)),I=o?.settings?.autoBackup,z=()=>{i(g=>!g)},ae=()=>{oe(g=>g+1)},re=()=>{b(g=>g+1)},F=async g=>{await n.updateAutoBackup({input:{did:o.meta.did,autoBackup:g}})},Q=async()=>{await n.abortBlockletBackup({input:{appPid:o.meta.did}})},ie=async(g,P)=>{try{p(R=>{const v=[...R];return v.push({...g,loading:!0}),v}),await n.addBlockletSpaceGateway({input:{did:o.meta.did,spaceGateway:g}}),m!==P&&await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:N.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:P}]}}),M(g),z(),B.success(s("storage.spaces.connectedWithName",{name:g?.name??"DID Spaces"}))}catch(R){throw console.error(R),p(v=>[...v].filter(W=>W.did!==g.did)),R}},ce=async g=>{g&&(g.endpoint===m&&(await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:N.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:""}]}}),I?.enabled&&await F({enabled:!1})),await n.deleteBlockletSpaceGateway({input:{did:o.meta.did,spaceGatewayDid:g?.did}}),p(P=>{const R=[...P];return R.splice(R.indexOf(g),1),R}),M(g),z())},le=async g=>{await Promise.all([n.updateBlockletSpaceGateway({input:{did:o.meta.did,where:{did:g.did},spaceGateway:g}}),m!==g.endpoint&&n.configBlocklet({input:{did:[o.meta.did],configs:[{key:N.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:g.endpoint}]}})]),B.success(s("storage.spaces.connectedWithName",{name:g?.name??"DID Spaces"})),z()},C=g=>g?.endpoint===m;return e.jsx(qt,{value:{spaceGateways:d||[],selectedSpaceGateway:_,addSpaceGateway:ie,deleteSpaceGateway:ce,updateSpaceGateway:le,refreshSpaceGateways:z,spaceGatewaysLoading:l,spaceGatewaysFirstLoading:u,spaceGatewayIsSelected:C,updateAutoBackup:F,abortBlockletBackup:Q,backupEndpoint:m,backupProgress:x,backups:te,backupSummary:ne,refreshBackupSummary:ae,refreshBackups:re,setBackupDate:a,backupsLoading:k,autoBackup:I},children:t})}ze.propTypes={children:f.any.isRequired};function O(){return h.useContext(Re)}function ve({...t}){const{blocklet:s}=U(),{info:n}=A(),{t:o}=D(),r=Ie({blocklet:s}),a=Xe(n),{spaceGateways:c,addSpaceGateway:i}=O(),d={checkFn:De.create({baseURL:fe(window.location.origin,Ze())}).get,webWalletUrl:a,extraParams:{appPid:s.appPid,appDid:r.appDid,appName:r.appName,appDescription:r.appDescription,appUrl:r.appUrl,referrer:r.referrer,scopes:r.scopes,nodeDid:n.did}},l=async({endpoint:u,name:x,did:m})=>{const k=await Dt(u);if(!await Et(k)){B.error(o("storage.spaces.gateway.add.invalidUrl"));return}if(c.some(b=>b.endpoint===u)){B.error(o("storage.spaces.gateway.add.duplicate",{name:x}));return}await i({name:x,did:m,url:k,endpoint:u},u)},p=async({spaceGateway:u})=>{try{await l(u)}catch(x){console.error(x),B.error(V(x))}};return e.jsx(ft,{...t,connectScope:"app",options:d,onSuccess:p})}function Vt(){const{api:t}=A(),{blocklet:s}=U(),{data:n,loading:o}=Ce(()=>t.getBlocklet({input:{did:s?.meta?.did,attachDiskInfo:!0,attachRuntimeInfo:!0}}),{ready:!!s?.meta?.did,refreshDeps:[s?.meta?.did]});return{blocklet:n?.blocklet??null,loading:o}}function Pe({...t}){const{t:s}=h.useContext(Je),{blocklet:n,loading:o}=Vt();if(n?.diskInfo){const r=(i,d,l)=>e.jsxs(j,{children:[i," ",e.jsx("strong",{children:d?et(d):"empty"})]}),a=n.environments.reduce((i,d)=>(i[d.key]=d.value,i),{}),c=[{key:"appDir",name:s("blocklet.diskInfo.appDir"),value:r(a.BLOCKLET_APP_DIR,n.diskInfo.app)},{key:"dataDir",name:s("blocklet.diskInfo.dataDir"),value:r(a.BLOCKLET_DATA_DIR,n.diskInfo.data)},{key:"logDir",name:s("blocklet.diskInfo.logDir"),value:r(a.BLOCKLET_LOG_DIR,n.diskInfo.log)},{key:"cacheDir",name:s("blocklet.diskInfo.cacheDir"),value:r(a.BLOCKLET_CACHE_DIR,n.diskInfo.cache)}];return e.jsx(Qt,{component:"div",...t,children:c.map(i=>e.jsx(zt,{valueComponent:"div",nameWidth:120,name:i.name,children:i.value},i.key))})}return o?e.jsx(L,{}):e.jsx(j,{children:s("blocklet.diskInfo.empty")})}const Qt=tt(j)``;function Ae(){const{t}=D(),{setBackupDate:s,backupSummary:n}=O(),o=xt({key:"lg"}),r=h.useRef(null),a=st(),c=h.useCallback(l=>{s(l)},[s]),i=h.useMemo(()=>{const l=E().add(1,"day"),p=l.subtract(1,"year"),u=new Map(n.map(m=>[m.date,{date:m.date,successCount:m.successCount,errorCount:m.errorCount}])),x=[];for(let m=p.clone();E(m).isBefore(l);m=m.add(1,"day")){const k=m.format("YYYY-MM-DD");x.push(u.get(k)||{date:k,successCount:0,errorCount:0})}return x},[n]),d=h.useMemo(()=>({grid:{containLabel:!0,right:10,top:30,bottom:12},tooltip:{formatter:k=>{const{date:w,successCount:y,errorCount:b}=i[k.dataIndex]||{date:k.data[0],successCount:0,errorCount:0};return[`<div>${t("common.time")}: ${w}</div>`,`<div>${t("common.succeeded")}: ${y}</div>`,`<div>${t("common.failed")}: ${b}</div>`].join(`
|
|
2
2
|
`)},backgroundColor:a.palette.background.paper,borderColor:a.palette.divider,textStyle:{color:a.palette.text.primary,fontSize:14},extraCssText:`box-shadow: ${a.shadows[2]}; border-radius: 4px;`,padding:[8,10]},visualMap:{show:!1,min:-12,max:12,pieces:[{min:Number.MIN_SAFE_INTEGER,max:-9,color:X[600]},{min:-9,max:-6,color:X[500]},{min:-6,max:-3,color:X[400]},{min:-3,max:-1,color:X[300]},{min:0,max:0,color:a.palette.grey[200]},{min:1,max:3,color:Z[300]},{min:3,max:6,color:Z[400]},{min:6,max:9,color:Z[500]},{min:9,max:Number.MAX_SAFE_INTEGER,color:Z[600]}],orient:"horizontal",left:"center",bottom:12,itemWidth:12,itemHeight:12,textStyle:{color:a.palette.text.secondary,fontSize:12}},calendar:{top:30,left:50,right:10,bottom:4,cellSize:[8,8],splitLine:{show:!1},itemStyle:{borderWidth:2,borderColor:a.palette.background.default,color:a.palette.background.default},dayLabel:{show:!0,firstDay:0,nameMap:["","Mon","","Wed","","Fri",""],position:"start",margin:4,fontSize:10,color:a.palette.text.primary,fontWeight:"400",width:20},monthLabel:{show:!0,nameMap:"cn",align:"left",color:a.palette.text.primary,fontWeight:"400",fontSize:12,position:"start",margin:4,width:30,padding:[0,2]},yearLabel:{show:!1},range:[E().subtract(11,"month").startOf("month").format("YYYY-MM-DD"),E().endOf("month").format("YYYY-MM-DD")],orient:"horizontal"},series:{type:"heatmap",coordinateSystem:"calendar",data:i.map(k=>[k.date,k.errorCount?-k.errorCount:k.successCount]),label:{show:!1},itemStyle:{borderWidth:2,borderColor:a.palette.background.default,borderRadius:4},emphasis:{itemStyle:{borderWidth:2,borderColor:ot[200],color:"inherit"}}}}),[i,t,a]);return e.jsxs(e.Fragment,{children:[e.jsx(S,{ref:r,sx:{maxWidth:"1280px",border:"1px solid",borderColor:"divider",padding:"8px",overflowX:"auto"},children:e.jsx(S,{sx:{width:"1200px",height:"180px",position:"relative"},children:e.jsx(vt,{option:d,style:{height:"100%",width:"100%"},notMerge:!0,lazyUpdate:!1,opts:{renderer:"canvas"},onEvents:{click:l=>{l.componentType==="series"&&l.data&&c(l.data[0])}}})})}),e.jsx(S,{sx:{display:"flex",justifyContent:"flex-end",mt:1,mr:o?2:5,mb:2},children:e.jsxs(K,{direction:o?"column":"row",spacing:o?2:1,sx:{width:"100%",justifyContent:"flex-start",alignItems:o?"flex-start":"center"},children:[e.jsxs(K,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[e.jsx(S,{sx:{width:32,height:12,borderRadius:.5,background:"linear-gradient(90deg, #8B5000 0%, #A36200 33%, #C17700 66%, #E29000 100%)"}}),e.jsx(j,{variant:"body2",sx:{color:"text.secondary"},children:t("storage.spaces.backup.failed")})]}),e.jsxs(K,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[e.jsx(S,{sx:{width:32,height:12,borderRadius:.5,bgcolor:"grey.200",border:"1px solid",borderColor:"grey.200"}}),e.jsx(j,{variant:"body2",sx:{color:"text.secondary"},children:t("storage.spaces.backup.without")})]}),e.jsxs(K,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[e.jsx(S,{sx:{width:32,height:12,borderRadius:.5,background:"linear-gradient(90deg, #9be9a8 0%, #40c463 33%, #30a14e 66%, #216e39 100%)"}}),e.jsx(j,{variant:"body2",sx:{color:"text.secondary"},children:t("storage.spaces.backup.succeeded")})]})]})})]})}const Xt=ee(({className:t,...s})=>e.jsx(Se,{...s,classes:{popper:t}}))(()=>({".MuiTooltip-tooltip":{backgroundColor:"transparent",padding:0,margin:0,boxShadow:"none",maxWidth:"none"},".MuiTooltip-arrow":{color:"rgba(230, 235, 245, 1)"}}));function Le({status:t,message:s="",createdAt:n}){const{t:o}=D(),r=t===T.BACKUPS.STATUS.PROGRESS&&E().diff(n,"hours")>=T.BACKUPS.TIMEOUT_HOURS,a=r&&o("common.timeoutError"),c=t===T.BACKUPS.STATUS.PROGRESS&&!r,i=t===T.BACKUPS.STATUS.SUCCEEDED&&!r;return c?e.jsxs(j,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},children:[e.jsx(L,{sx:{marginRight:"4px"},size:"12px"}),o("common.progress")]}):i?e.jsx(H,{type:"success",children:o("common.succeeded")}):e.jsxs(S,{sx:{display:"inline-flex",alignItems:"center"},children:[e.jsx(H,{type:"error",children:o("common.failed")}),e.jsx(Se,{style:{display:"flex",alignItems:"center",flexShrink:0},title:s||a,children:e.jsx(ye,{children:e.jsx(Pt,{style:{width:"24px",height:"24px"},color:"error"})})})]})}Le.propTypes={status:f.string.isRequired,message:f.string,createdAt:f.string.isRequired};function Ue({metadata:t={}}){const{t:s}=D();if(q(t))return e.jsx(H,{type:"success",children:s("common.succeeded")});const n=t.count||0,o=t.size||0,r=Lt(o,{iec:!0}),a=e.jsxs(S,{sx:{p:1,borderRadius:1,boxShadow:2,color:"black",backgroundColor:"white"},children:[e.jsxs(j,{variant:"body2",children:[s("common.fileCount"),": ",n]}),e.jsxs(j,{variant:"body2",children:[s("common.fileSize"),": ",r]})]});return e.jsxs(S,{sx:{display:"inline-flex",alignItems:"center"},children:[e.jsx(H,{type:"success",children:s("common.succeeded")}),e.jsx(Xt,{title:a,style:{display:"flex",alignItems:"center",flexShrink:0},placement:"left",children:e.jsx(ye,{children:e.jsx(at,{style:{width:"24px",height:"24px"},color:"primary"})})})]})}Ue.propTypes={metadata:f.object};function Oe(){const{t,locale:s}=D(),{spaceGateways:n,backups:o,backupsLoading:r}=O(),a=h.useMemo(()=>[{label:"DID Space",name:"target",options:{customBodyRenderLite:i=>{const{targetUrl:d,targetName:l,status:p,createdAt:u}=o[i],x=p===T.BACKUPS.STATUS.PROGRESS&&E().diff(u,"hours")>=T.BACKUPS.TIMEOUT_HOURS,m=p===T.BACKUPS.STATUS.SUCCEEDED&&!x,k=l||n.find(w=>d?.includes(ge(w?.endpoint)))?.name||"Unknown DID Space";return m?e.jsx(nt,{href:d,target:"_blank",sx:{fontSize:"16px"},children:k}):e.jsx(j,{variant:"body1",sx:{fontSize:"16px"},children:k})}}},{label:t("common.strategy"),name:"strategy",options:{customBodyRender:i=>{const d=t(i===0?"common.auto":"common.manual");return e.jsx(H,{children:d})}}},{label:t("common.startTime"),name:"createdAt",options:{customBodyRender:i=>E(i).format("YYYY-MM-DD HH:mm:ss")}},{label:t("common.endTime"),name:"updatedAt",options:{customBodyRender:i=>q(i)?"":E(i).format("YYYY-MM-DD HH:mm:ss")}},{label:t("common.status"),name:"status",options:{customBodyRenderLite:i=>{const d=o?.[i]??{},{status:l,message:p,createdAt:u,metadata:x}=d,m=l===T.BACKUPS.STATUS.PROGRESS&&E().diff(u,"hours")>=T.BACKUPS.TIMEOUT_HOURS,k=l===T.BACKUPS.STATUS.PROGRESS&&!m,w=l===T.BACKUPS.STATUS.SUCCEEDED&&!m;return k?e.jsxs(j,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},children:[e.jsx(L,{sx:{marginRight:"4px"},size:"12px"}),t("common.progress")]}):w?e.jsx(Ue,{metadata:x}):e.jsx(Le,{status:l,message:p,createdAt:u})}}}],[o,n,t]),c=h.useMemo(()=>!o?.length,[o]);return e.jsx(e.Fragment,{children:c?e.jsx(S,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100px",color:"#9397A1",marginTop:"16px",marginBottom:"24px"},children:t("storage.spaces.record.emptyData")}):e.jsx(At,{title:"",loading:r,data:o,columns:a,emptyNode:t("storage.spaces.record.emptyData",s),options:{download:!1,filter:!1,print:!1,search:!1,viewColumns:!1}})})}function Zt(){const{t}=D();return e.jsxs(S,{children:[e.jsxs(S,{sx:{display:"flex",gap:3,flexDirection:{xs:"column",md:"row"}},children:[e.jsxs(S,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",minWidth:240},children:[e.jsx(gt,{style:{cursor:"pointer",width:"150px",height:"100%",maxHeight:160}}),e.jsx(j,{sx:{my:2,textAlign:"center",color:"text.secondary"},children:t("storage.spaces.connect.provider")}),e.jsx(ve,{})]}),e.jsxs(S,{sx:{flexGrow:1,minWidth:0},children:[e.jsx(S,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:e.jsx(j,{sx:{fontSize:"1.2rem",fontWeight:"bold"},children:t("storage.spaces.backup.records")})}),e.jsx(Ae,{})]})]}),e.jsx(Oe,{sx:{marginTop:"24px"}}),e.jsx(j,{sx:{fontSize:"1.2rem",fontWeight:"bold",mb:2,mt:2},children:t("common.dataStorage")}),e.jsx(Pe,{})]})}function Me({spaceGateway:t,onConfirm:s=()=>{},onCancel:n=()=>{}}){const{t:o}=D(),[r,a]=h.useState(!1),[c,i]=h.useState(!1),d=(u,x)=>{u?.preventDefault(),u?.stopPropagation(),a(x)},l=async u=>{try{u?.stopPropagation(),i(!0),await s?.(t),a(!1)}catch(x){console.error(x),B.error(`${o("storage.space.gateway.delete.failed")}: ${V(x)}`)}finally{a(!1),i(!1)}},p=u=>{d(u,!1),n?.(u)};return e.jsxs(e.Fragment,{children:[e.jsxs(G,{color:"red",onClick:u=>d(u,!0),children:[e.jsx(Y,{style:{minWidth:24,color:"red"},children:e.jsx(Ut,{fontSize:"small"})}),e.jsx($,{style:{color:"red"},children:o("common.disconnect")})]}),e.jsx(rt,{title:o("storage.spaces.gateway.delete.title"),open:r,confirmButton:{text:o("common.confirm"),props:{size:"small",variant:"contained",color:"error",loading:c}},cancelButton:{text:o("common.cancel"),props:{size:"small",variant:"outlined",disabled:c}},onConfirm:l,onCancel:p,children:e.jsx(j,{sx:{wordWrap:"break-word"},children:o("storage.spaces.gateway.delete.descForBackup",{name:`${t?.name}`})})})]})}Me.propTypes={spaceGateway:f.shape({name:f.string.isRequired,url:f.string.isRequired,protected:f.bool}).isRequired,onConfirm:f.func,onCancel:f.func};function Ne({spaceGateway:t,selected:s,onDelete:n=()=>{},onConnect:o=()=>{},enableSwitchToSpace:r=!0,backupInProgress:a=!1,...c}){const{abortBlockletBackup:i}=O(),[d,l]=h.useState(null),{t:p}=D(),[u,x]=h.useState(!1),m=(y,b)=>{y.stopPropagation(),y.preventDefault(),l(b&&y.currentTarget)},k=async y=>{try{x(!0),m(y,!1),await o(t)}catch(b){console.error(b),B.error(b.message)}finally{x(!1)}},w=async y=>{try{x(!0),m(y,!1),await i()}catch(b){console.error(b),B.error(b.message)}finally{x(!1)}};return e.jsxs(e.Fragment,{children:[u||t?.loading?e.jsx(L,{sx:{ml:1},size:"24px"}):e.jsx(it,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",variant:"outlined",size:"small",onClick:y=>m(y,!0),...c,children:e.jsx(ct,{})}),e.jsxs(lt,{id:"simple-menu",anchorEl:d,keepMounted:!0,open:!!d,onClose:y=>m(y,!1),children:[e.jsxs(G,{onClick:y=>{m(y,!1),window.open(ke(t.endpoint?It(t.endpoint):t.url,{allowDomains:null}))},children:[e.jsx(Y,{style:{minWidth:24},children:e.jsx(Wt,{fontSize:"small"})}),e.jsx($,{children:p("common.open")})]}),e.jsxs(G,{onClick:y=>{m(y,!1),window.open(ke(Tt(t.endpoint),{allowDomains:null}))},children:[e.jsx(Y,{style:{minWidth:24},children:e.jsx(Ft,{fontSize:"small"})}),e.jsx($,{children:p("storage.spaces.strategy.viewBackupFiles")})]}),!s&&r&&e.jsxs(G,{onClick:k,children:[e.jsx(Y,{style:{minWidth:24},children:e.jsx(Kt,{fontSize:"small"})}),e.jsx($,{children:p("storage.spaces.connect.switchToSpace")})]}),a&&e.jsxs(G,{onClick:w,children:[e.jsx(Y,{style:{minWidth:24},children:e.jsx(ht,{fontSize:"small"})}),e.jsx($,{children:p("storage.spaces.connect.abortBlockletBackup")})]}),!a&&e.jsx(Me,{spaceGateway:t,onConfirm:async()=>{l(null),await n?.(t)},onCancel:()=>l(null)})]})]})}Ne.propTypes={spaceGateway:f.shape({name:f.string.isRequired,url:f.string.isRequired,protected:f.bool,endpoint:f.string.isRequired,loading:f.bool}).isRequired,selected:f.bool.isRequired,enableSwitchToSpace:f.bool,onDelete:f.func,onConnect:f.func,backupInProgress:f.bool};const Jt=ee(({className:t,...s})=>e.jsx(Se,{...s,classes:{popper:t}}))(()=>({".MuiTooltip-tooltip":{backgroundColor:"transparent",padding:0,margin:0,boxShadow:"none",maxWidth:"none"},".MuiTooltip-arrow":{color:"rgba(230, 235, 245, 1)"}}));function _e({spaceGateway:t,spaceStatus:s,selected:n,onConnected:o=()=>{},onDeleted:r=()=>{},onBackedUp:a=()=>{}}){const{t:c,locale:i}=D(),{blocklet:d}=U(),{api:l,info:{did:p}}=A(),{appDid:u,appName:x,appDescription:m,scopes:k,appUrl:w,referrer:y}=Ie({blocklet:d}),{backupProgress:b,updateSpaceGateway:te,deleteSpaceGateway:se,refreshBackupSummary:oe,refreshBackups:ne}=O(),[_,M]=h.useState(!1),[I,z]=h.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:c("storage.spaces.authorize.title",{appName:x},i),scan:c("storage.spaces.authorize.scan",{appName:x},i),confirm:"",success:e.jsx(j,{gutterBottom:!0,children:c("storage.spaces.authorize.success")})},onClose:()=>{z(C=>({...C,open:!1}))}}),ae=n&&!_&&s===ue.DISCONNECTED,re=n&&!_&&!t.loading&&s===ue.CONNECTED,F=n&&_&&s===ue.CONNECTED&&b?.progress>=0,Q=async()=>{try{if(await Rt(t?.endpoint)){await l.configBlocklet({input:{did:[d.meta.did],configs:[{key:N.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t.endpoint}]}}),B.success(c("storage.spaces.connect.switchToSpaceSucceeded",{name:t.name?`(${t.name})`:""})),o?.(null,t);return}}catch(C){console.error(C),o?.(C,t);return}z(C=>({...C,open:!0,prefix:fe(t.url,"space/api/did"),baseUrl:new URL(t.url).origin,checkFn:De.create({baseURL:fe(t.url,"space")}).get,extraParams:{appDid:u,appName:x,appDescription:m,scopes:k,appUrl:w,referrer:y,nodeDid:p,spaceDid:t.did}}))},ie=async(C,g)=>{const P=g(C.endpoint),R=ge(P),v=C.space?g(C.space):{};if(t.did&&R!==t.did){z(We=>({...We,open:!1}));const W=c("storage.spaces.gateway.switch.failedForMismatchSpace",{name:v?.name?v.name:""});B.error(W),o?.(new Error(W),t);return}const de={...t,name:v.name??"DID Space",did:v.did??ge(P),endpoint:P};await te(de),z(W=>({...W,open:!1})),o?.(null,de)},ce=async()=>{try{if(_)return;M(!0),await l.backupBlocklet({input:{appDid:d.appDid,to:"spaces"}})}catch(C){console.error(C),B.error(C.message),a?.(C,t)}finally{M(!0)}},le=async()=>{try{await se(t),B.success(c("storage.spaces.gateway.delete.succeeded",{name:t.name?`(${t.name})`:""})),r?.(null,t)}catch(C){console.error(C),r?.(C,t)}};return h.useEffect(()=>{b?.completed?(n&&(b?.progress===100?(B.success(c("storage.spaces.backupSuccessfully")),a?.(null,t)):b.message&&a?.(new Error(b?.message),t),b.progress=0,b.message=""),M(!1),oe(),ne()):b.progress&&M(!0)},[b]),e.jsxs(e.Fragment,{children:[e.jsxs(S,{sx:{display:"flex",alignItems:"center",".action-btn":{borderRadius:1,marginLeft:1}},children:[re&&e.jsx(pe,{className:"action-btn",variant:"outlined",size:"small",onClick:ce,children:c("storage.spaces.strategy.backupNow")}),ae&&e.jsx(pe,{className:"action-btn",variant:"outlined",size:"small",onClick:Q,children:c("storage.spaces.disconnected.reconnectNow")}),F&&e.jsx(Jt,{title:b?.message&&e.jsx(S,{sx:{p:1,borderRadius:1,boxShadow:2,color:"black",backgroundColor:"white"},children:e.jsx(j,{variant:"body2",children:b.message})}),children:e.jsxs(pe,{className:"action-btn",variant:"outlined",size:"small",sx:{minWidth:70},children:[e.jsx(L,{variant:"determinate",value:b?.progress,size:14,sx:{mr:1}}),b?.progress,"%"]})}),e.jsx(dt,{forceConnected:!1,saveConnect:!1,prefix:I.prefix,open:I.open,popup:!0,action:I.action,baseUrl:I.baseUrl,checkFn:I.checkFn,onSuccess:ie,onClose:I.onClose,checkTimeout:I.checkTimeout,extraParams:I.extraParams,messages:I.messages,locale:i},"get-endpoint")]}),e.jsx(Ne,{sx:{minWidth:32,padding:"2px 4px",ml:1},spaceGateway:t,selected:n,onDelete:le,onConnect:Q,enableSwitchToSpace:b?.completed||q(b?.message),backupInProgress:F})]})}_e.propTypes={spaceGateway:f.shape({did:f.string.isRequired,name:f.string.isRequired,url:f.string.isRequired,endpoint:f.string.isRequired,protected:f.bool,loading:f.bool}).isRequired,spaceStatus:f.string.isRequired,selected:f.bool.isRequired,onConnected:f.func,onDeleted:f.func,onBackedUp:f.func};function es({...t}){const{t:s}=D();return e.jsxs(S,{...t,children:[e.jsx(S,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:e.jsx(j,{sx:{fontSize:"1.2rem",fontWeight:"bold"},children:s("storage.spaces.backup.records")})}),e.jsx(Ae,{}),e.jsx(Oe,{})]})}function ts({...t}){const{t:s}=D(),{autoBackup:n,updateAutoBackup:o}=O(),r=async()=>{try{const a=!n?.enabled;await o({enabled:a}),B.success(s(a?"storage.spaces.autoBackup.enabled":"storage.spaces.autoBackup.disabled"))}catch(a){B.error(a.message)}};return e.jsx(Ot,{checked:!!n?.enabled,onChange:r,name:"enableWelcomePage",labelProps:{label:e.jsx(j,{sx:{marginRight:"8px"},children:e.jsx("span",{children:s("storage.spaces.autoBackup.title")})})},style:{...t.style}})}function ss(){const{t}=D(),{spaceGateways:s,spaceGatewaysLoading:n,spaceGatewayIsSelected:o}=O(),r=n&&!s?.length,a=({spaceGateway:c,spaceStatus:i,selected:d,refresh:l})=>e.jsx(_e,{spaceGateway:c,spaceStatus:i,selected:d,onConnected:()=>l(),onBackedUp:p=>p&&l()});return e.jsxs(S,{sx:{display:"flex",flexDirection:"column"},children:[e.jsxs(S,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},gap:{xs:1,md:2},justifyContent:{xs:"center",md:"flex-start"},alignItems:{xs:"flex-start",md:"center"}},children:[e.jsx(j,{sx:{fontSize:"1.2rem",fontWeight:"bold",flexGrow:1},children:t("storage.spaces.connected.title")}),e.jsx(ts,{}),e.jsx(ve,{})]}),e.jsx(S,{sx:{mt:2},children:r?e.jsx(S,{sx:{display:"flex",justifyContent:"center"},children:e.jsx(L,{})}):e.jsx(be,{container:!0,spacing:2,children:e.jsx(e.Fragment,{children:s.map(c=>e.jsx(be,{size:{xs:12,md:6},children:e.jsx(St,{endpoint:c.endpoint,selected:o(c),action:a},c.endpoint)},c.endpoint))})})}),e.jsx(es,{sx:{marginTop:"24px"}}),e.jsx(j,{sx:{fontSize:"1.2rem",fontWeight:"bold",mb:2},children:t("common.dataStorage")}),e.jsx(Pe,{})]})}function os(){const{spaceGatewaysFirstLoading:t,spaceGateways:s}=O();return t?e.jsx(Ee,{relative:"parent",children:e.jsx(L,{})}):q(s)?e.jsx(Zt,{}):e.jsx(ss,{})}function ns(){return e.jsx(ze,{children:e.jsx(os,{})})}function as(){const{spaceGateway:t,settingStorageEndpoint:s,updateSpaceGateway:n,hasStorageEndpoint:o,loading:r,storageEndpoint:a}=bt(),c=xe(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingTop:"16px"}));return r?e.jsx(Ee,{relative:"parent",children:e.jsx(L,{})}):e.jsxs(S,{sx:{maxWidth:"md",position:"relative"},children:[o?e.jsx(kt,{spaceGateway:t,settingStorageEndpoint:s}):e.jsx(jt,{}),e.jsx(S,{sx:c,children:e.jsx(Ct,{onConnect:n,storageEndpoint:a})})]})}function rs(){const{t}=D();return e.jsxs(yt,{children:[e.jsxs(K,{spacing:1,sx:{marginBottom:2},children:[e.jsx(j,{sx:{fontSize:"1.2rem",fontWeight:"bold"},children:t("storage.appLevel.title")}),e.jsx(j,{sx:{color:"text.secondary"},children:t("storage.appLevel.description")})]}),e.jsx(as,{})]})}function is({navOrientation:t="vertical",...s}){const{t:n,locale:o}=D(),{blocklet:r}=U(),a=mt({key:"md"}),[c,i]=pt(),d=c.get("tab")||"backup",l=a?"horizontal":t,p=xe(()=>{const w=[{label:n("common.backup"),value:"backup"}],y=r?.capabilities?.didSpace;return(y===N.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED||y===N.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED_ON_SETUP)&&w.push({label:n("common.storage"),value:"storage"}),w},[o,l]),x=xe(()=>({backup:e.jsx(ns,{}),storage:e.jsx(rs,{})}))[d],m=w=>{i(y=>(w==="backup"?y.delete("tab"):y.set("tab",w),y))};if(p.length<=1)return e.jsx(me,{children:x});const k=e.jsx(ut,{tabs:p,current:d,orientation:l,onChange:m,sx:[{borderRight:1,height:"100%",borderColor:"divider"},l==="horizontal"&&{borderRight:0}]});if(l==="vertical")return e.jsx(S,{...s,children:e.jsxs(K,{direction:{md:"column",lg:"row"},sx:{gap:2},children:[e.jsx(S,{sx:{flexShrink:0},children:e.jsx(je,{left:k})}),e.jsx(S,{sx:{flexGrow:1,minWidth:0},children:e.jsx(me,{sx:{mt:1},children:x})})]})});if(l==="horizontal")return e.jsxs(S,{...s,children:[e.jsx(je,{left:k}),e.jsx(me,{sx:{mt:2},children:x})]})}is.propTypes={navOrientation:f.oneOf(["vertical","horizontal"])};const me=ee(S)`
|
|
3
3
|
position: relative;
|
|
4
4
|
min-height: 66vh;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as R,fK as Ml,c6 as Wo,fL as Nl,ft as Yo,fM as Bl,cW as Go,aF as Sr,j as c,fN as Fl,fO as Ul,aT as Dt,fP as gr,ez as Je,fQ as wi,fR as ql,fS as $l,fT as Vl,fU as Hl,fV as Kl,fW as Si,fX as zl,fY as mo,fZ as Wl,f_ as Ci,f$ as Yl,g0 as Gl,eB as mt,g1 as Ei,g2 as Zl,g3 as Xl,g4 as Ql,g5 as ho,cJ as Et,g6 as Jl,g7 as ec,g8 as tc,g9 as ji,eA as Ti,eC as rc,dF as nc,ga as oc,gb as sc,V as ke,bo as Fe,aP as ut,gc as ki,H as Le,Y as Ue,o as y,f as go,eO as Pi,f5 as Ri,n as kt,K as U,bZ as ic,dL as ac,bz as lc,av as ft,gd as Ii,S as Nr,bl as Br,ge as _i,a$ as cc,$ as et,t as lt,b2 as uc,bB as qe,aV as Wt,E as bo,fe as fc,gf as dc,gg as pc,gh as mc,D as Gr,T as Re,bh as yo,a4 as mr,gi as hc,X as At,c0 as Jt,c1 as er,cl as Oi,dO as rt,e_ as ce,c3 as gc,b9 as De,de as Fr,d8 as Ai,c4 as dt,c5 as Bt,R as Mt,dK as Di,db as bc,gj as Zr,gk as Li,bE as it,bg as Ve,P as br,bq as Mi,Q as eo,at as Ni,dH as yc,gl as Ur,bt as vc,au as yr,v as He,C as jt,gm as xc,h as to,aX as wc,w as Sc,x as Cc,s as We,p as Cr,ad as Er,bF as Gt,gn as Ec,dG as jc,dn as Tc,aH as Ct,O as Tt,dy as kc,go as Pc,eD as Rc,gp as Bi,gq as qr,gr as Ic,dI as vr,b as Ce,W as vo,dJ as _c,cw as Fi,z as Oc,bv as xo,bw as Ui,bx as wo,dq as kr,aD as Ac,fJ as qi,N as xr,aS as Dc,gs as $i,aE as Lc,a9 as Mc,gt as Nc,c_ as Vi,gu as Bc,bA as Zo,y as Fc,gv as Uc,bH as qc,U as $c,M as Vc}from"./index-87RKuT5C.js";import{A as Zt}from"./Add-DY1gS9Dz.js";import{V as Hc}from"./ViewList-C-96Tk3T.js";import{c as Kc,H as So,g as zc}from"./index-EFWTbF8B.js";import{v as Xo}from"./index-CS7M20xU.js";import{u as Ye}from"./team-CWb9WqYD.js";import{u as Hi}from"./blocklet-C0-c8dVN.js";import{S as Ki}from"./Search-x2lb6Akd.js";import{y as Xr}from"./index-Snc2Ei8N.js";import{u as Wc,C as ar}from"./index.esm-rxbUJdm1.js";import{S as Yc}from"./Google-D_lyR__A.js";import{A as Gc,a as Pr}from"./Autocomplete-DBXlHxck.js";import{U as Zc}from"./UnfoldMore-CfZy9D-D.js";import{P as Nt}from"./permission-SRhWeTXb.js";import{C as Qr}from"./click-to-copy-CGVo7y_H.js";import{s as Pt,g as Xc,S as Qc,u as ht,a as zi,b as jr,c as Wi,d as Jr,e as Yi,f as Co,P as Gi,D as Zi,h as $r,M as pr,i as Xi,j as Qo,k as hr,v as Jc,l as eu,m as Jo,n as tu,o as ru,p as nu,q as ou,C as su,r as iu,t as Vr,w as zt,x as Hr,y as es,z as ts,A as au,T as lu,B as Eo,E as cu,F as uu,G as fu,H as du,I as pu,J as mu,K as hu,L as Rr,N as Yt,O as Qi,Q as gu,V as ro,R as Ji,U as bu,W as rs,X as yu,Y as vu,Z as xu,_ as wu,$ as Su,a0 as Cu}from"./AdapterDayjs-CgNLGdsV.js";import{u as nt}from"./useThemeProps-DP_44cxZ.js";import{a as ns,b as Eu,t as ju,T as Tu}from"./html-title-Dp-sqsn-.js";import{v as Ge}from"./index-29D5d56z.js";import{V as ku}from"./Verified-BpXE28d4.js";import{D as Pu}from"./DeleteOutline-P1tPKlQL.js";import{E as os}from"./ErrorOutline-DlSN54Ps.js";import{N as Ru}from"./index-CvyKEas9.js";import{R as ea,a as Mr}from"./url-evaluation-mq4H4jA_.js";import{b as no}from"./sdk-DXEfKnNl.js";import{u as Iu}from"./index-BqujSmiU.js";import{u as ta}from"./use-mobile-BmJGrK15.js";import{D as _u}from"./Delete-Brb8t62i.js";import{A as Ou}from"./actions-B8scXmgC.js";import{S as Au}from"./shorten-label-BF590ANn.js";import{U as cn}from"./ua-parser-DP5omx3I.js";const Du=Kc(R.useLayoutEffect);var ss={},is;function Lu(){return is||(is=1,function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(p){try{return p.defaultView&&p.defaultView.frameElement||null}catch{return null}}var t=function(p){for(var m=p,v=e(m);v;)m=v.ownerDocument,v=e(m);return m}(window.document),r=[],n=null,o=null;function l(p){this.time=p.time,this.target=p.target,this.rootBounds=C(p.rootBounds),this.boundingClientRect=C(p.boundingClientRect),this.intersectionRect=C(p.intersectionRect||x()),this.isIntersecting=!!p.intersectionRect;var m=this.boundingClientRect,v=m.width*m.height,j=this.intersectionRect,S=j.width*j.height;v?this.intersectionRatio=Number((S/v).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function s(p,m){var v=m||{};if(typeof p!="function")throw new Error("callback must be a function");if(v.root&&v.root.nodeType!=1&&v.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=i(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=p,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(v.rootMargin),this.thresholds=this._initThresholds(v.threshold),this.root=v.root||null,this.rootMargin=this._rootMarginValues.map(function(j){return j.value+j.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(p,m){!p||!m?o=x():o=E(p,m),r.forEach(function(v){v._checkForIntersections()})}),n},s._resetCrossOriginUpdater=function(){n=null,o=null},s.prototype.observe=function(p){var m=this._observationTargets.some(function(v){return v.element==p});if(!m){if(!(p&&p.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:p,entry:null}),this._monitorIntersections(p.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(p){this._observationTargets=this._observationTargets.filter(function(m){return m.element!=p}),this._unmonitorIntersections(p.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var p=this._queuedEntries.slice();return this._queuedEntries=[],p},s.prototype._initThresholds=function(p){var m=p||[0];return Array.isArray(m)||(m=[m]),m.sort().filter(function(v,j,S){if(typeof v!="number"||isNaN(v)||v<0||v>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return v!==S[j-1]})},s.prototype._parseRootMargin=function(p){var m=p||"0px",v=m.split(/\s+/).map(function(j){var S=/^(-?\d*\.?\d+)(px|%)$/.exec(j);if(!S)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(S[1]),unit:S[2]}});return v[1]=v[1]||v[0],v[2]=v[2]||v[0],v[3]=v[3]||v[1],v},s.prototype._monitorIntersections=function(p){var m=p.defaultView;if(m&&this._monitoringDocuments.indexOf(p)==-1){var v=this._checkForIntersections,j=null,S=null;this.POLL_INTERVAL?j=m.setInterval(v,this.POLL_INTERVAL):(u(m,"resize",v,!0),u(p,"scroll",v,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in m&&(S=new m.MutationObserver(v),S.observe(p,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(p),this._monitoringUnsubscribes.push(function(){var _=p.defaultView;_&&(j&&_.clearInterval(j),f(_,"resize",v,!0)),f(p,"scroll",v,!0),S&&S.disconnect()});var T=this.root&&(this.root.ownerDocument||this.root)||t;if(p!=T){var k=e(p);k&&this._monitorIntersections(k.ownerDocument)}}},s.prototype._unmonitorIntersections=function(p){var m=this._monitoringDocuments.indexOf(p);if(m!=-1){var v=this.root&&(this.root.ownerDocument||this.root)||t,j=this._observationTargets.some(function(k){var _=k.element.ownerDocument;if(_==p)return!0;for(;_&&_!=v;){var N=e(_);if(_=N&&N.ownerDocument,_==p)return!0}return!1});if(!j){var S=this._monitoringUnsubscribes[m];if(this._monitoringDocuments.splice(m,1),this._monitoringUnsubscribes.splice(m,1),S(),p!=v){var T=e(p);T&&this._unmonitorIntersections(T.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var p=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var m=0;m<p.length;m++)p[m]()},s.prototype._checkForIntersections=function(){if(!(!this.root&&n&&!o)){var p=this._rootIsInDom(),m=p?this._getRootRect():x();this._observationTargets.forEach(function(v){var j=v.element,S=b(j),T=this._rootContainsTarget(j),k=v.entry,_=p&&T&&this._computeTargetAndRootIntersection(j,S,m),N=null;this._rootContainsTarget(j)?(!n||this.root)&&(N=m):N=x();var F=v.entry=new l({time:a(),target:j,boundingClientRect:S,rootBounds:N,intersectionRect:_});k?p&&T?this._hasCrossedThreshold(k,F)&&this._queuedEntries.push(F):k&&k.isIntersecting&&this._queuedEntries.push(F):this._queuedEntries.push(F)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(p,m,v){if(window.getComputedStyle(p).display!="none"){for(var j=m,S=h(p),T=!1;!T&&S;){var k=null,_=S.nodeType==1?window.getComputedStyle(S):{};if(_.display=="none")return null;if(S==this.root||S.nodeType==9)if(T=!0,S==this.root||S==t)n&&!this.root?!o||o.width==0&&o.height==0?(S=null,k=null,j=null):k=o:k=v;else{var N=h(S),F=N&&b(N),K=N&&this._computeTargetAndRootIntersection(N,F,v);F&&K?(S=N,k=E(F,K)):(S=null,j=null)}else{var ne=S.ownerDocument;S!=ne.body&&S!=ne.documentElement&&_.overflow!="visible"&&(k=b(S))}if(k&&(j=d(k,j)),!j)break;S=S&&h(S)}return j}},s.prototype._getRootRect=function(){var p;if(this.root&&!g(this.root))p=b(this.root);else{var m=g(this.root)?this.root:t,v=m.documentElement,j=m.body;p={top:0,left:0,right:v.clientWidth||j.clientWidth,width:v.clientWidth||j.clientWidth,bottom:v.clientHeight||j.clientHeight,height:v.clientHeight||j.clientHeight}}return this._expandRectByRootMargin(p)},s.prototype._expandRectByRootMargin=function(p){var m=this._rootMarginValues.map(function(j,S){return j.unit=="px"?j.value:j.value*(S%2?p.width:p.height)/100}),v={top:p.top-m[0],right:p.right+m[1],bottom:p.bottom+m[2],left:p.left-m[3]};return v.width=v.right-v.left,v.height=v.bottom-v.top,v},s.prototype._hasCrossedThreshold=function(p,m){var v=p&&p.isIntersecting?p.intersectionRatio||0:-1,j=m.isIntersecting?m.intersectionRatio||0:-1;if(v!==j)for(var S=0;S<this.thresholds.length;S++){var T=this.thresholds[S];if(T==v||T==j||T<v!=T<j)return!0}},s.prototype._rootIsInDom=function(){return!this.root||w(t,this.root)},s.prototype._rootContainsTarget=function(p){var m=this.root&&(this.root.ownerDocument||this.root)||t;return w(m,p)&&(!this.root||m==p.ownerDocument)},s.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)},s.prototype._unregisterInstance=function(){var p=r.indexOf(this);p!=-1&&r.splice(p,1)};function a(){return window.performance&&performance.now&&performance.now()}function i(p,m){var v=null;return function(){v||(v=setTimeout(function(){p(),v=null},m))}}function u(p,m,v,j){typeof p.addEventListener=="function"?p.addEventListener(m,v,j):typeof p.attachEvent=="function"&&p.attachEvent("on"+m,v)}function f(p,m,v,j){typeof p.removeEventListener=="function"?p.removeEventListener(m,v,j):typeof p.detachEvent=="function"&&p.detachEvent("on"+m,v)}function d(p,m){var v=Math.max(p.top,m.top),j=Math.min(p.bottom,m.bottom),S=Math.max(p.left,m.left),T=Math.min(p.right,m.right),k=T-S,_=j-v;return k>=0&&_>=0&&{top:v,bottom:j,left:S,right:T,width:k,height:_}||null}function b(p){var m;try{m=p.getBoundingClientRect()}catch{}return m?(m.width&&m.height||(m={top:m.top,right:m.right,bottom:m.bottom,left:m.left,width:m.right-m.left,height:m.bottom-m.top}),m):x()}function x(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function C(p){return!p||"x"in p?p:{top:p.top,y:p.top,bottom:p.bottom,left:p.left,x:p.left,right:p.right,width:p.width,height:p.height}}function E(p,m){var v=m.top-p.top,j=m.left-p.left;return{top:v,left:j,height:m.height,width:m.width,bottom:v+m.height,right:j+m.width}}function w(p,m){for(var v=m;v;){if(v==p)return!0;v=h(v)}return!1}function h(p){var m=p.parentNode;return p.nodeType==9&&p!=t?e(p):(m&&m.assignedSlot&&(m=m.assignedSlot.parentNode),m&&m.nodeType==11&&m.host?m.host:m)}function g(p){return p&&p.nodeType===9}window.IntersectionObserver=s,window.IntersectionObserverEntry=l}()),ss}Lu();function Mu(e,t){var r={},n=r.callback,o=Ml(r,["callback"]),l=Wo(R.useState(),2),s=l[0],a=l[1],i=Wo(R.useState(),2),u=i[0],f=i[1];return Nl(function(){var d=Array.isArray(e)?e:[e],b=d.map(function(C){return Yo(C)}).filter(Boolean);if(b.length){var x=new IntersectionObserver(function(C){var E,w;try{for(var h=Bl(C),g=h.next();!g.done;g=h.next()){var p=g.value;f(p.intersectionRatio),a(p.isIntersecting),n?.(p)}}catch(m){E={error:m}}finally{try{g&&!g.done&&(w=h.return)&&w.call(h)}finally{if(E)throw E.error}}},Go(Go({},o),{root:Yo(void 0)}));return b.forEach(function(C){return x.observe(C)}),function(){x.disconnect()}}},[void 0,void 0,n],e),[s,u]}const Nu=Sr(c.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"})),Bu=Sr(c.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"})),en=Sr([c.jsx("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42M13 20.01 4 11V4h7v-.01l9 9z"},"0"),c.jsx("circle",{cx:"6.5",cy:"6.5",r:"1.5"},"1")]),Fu=Sr(c.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"})),Uu=Sr(c.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),ra=e=>R.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),R.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375}),R.createElement("rect",{x:15.3125,y:14.0625,width:7.5,height:1.875,rx:.9375,transform:"rotate(-90 15.3125 14.0625)"})),na=e=>R.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},R.createElement("path",{d:"M1.25 2.7087C1.25 2.24826 1.62326 1.875 2.0837 1.875H14.339C14.7995 1.875 15.1727 2.24826 15.1727 2.7087V9.31574C15.1727 9.77618 14.7995 10.1494 14.339 10.1494C13.8786 10.1494 13.5053 9.77618 13.5053 9.31574V3.54239H2.91739V16.7565H6.53772H8.34788H9.32435C9.78479 16.7565 10.158 17.1297 10.158 17.5902C10.158 18.0506 9.78479 18.4239 9.32435 18.4239H8.34788H2.0837C1.62326 18.4239 1.25 18.0506 1.25 17.5902V2.7087Z"}),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.21129 7.91935C7.70481 7.91935 7.29422 8.32993 7.29422 8.83641C7.29422 9.34289 7.70481 9.75348 8.21129 9.75348C8.71777 9.75348 9.12836 9.34289 9.12836 8.83641C9.12836 8.32993 8.71777 7.91935 8.21129 7.91935ZM5.62683 8.83641C5.62683 7.40905 6.78393 6.25195 8.21129 6.25195C9.63865 6.25195 10.7957 7.40905 10.7957 8.83641C10.7957 10.2638 9.63865 11.4209 8.21129 11.4209C6.78393 11.4209 5.62683 10.2638 5.62683 8.83641Z"}),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.62683 13.2133C5.62683 12.7529 6.00009 12.3796 6.46053 12.3796H9.96205C10.4225 12.3796 10.7957 12.7529 10.7957 13.2133C10.7957 13.6737 10.4225 14.047 9.96205 14.047H6.46053C6.00009 14.047 5.62683 13.6737 5.62683 13.2133Z"}),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6406 11.3125C15.8547 11.3125 16.0503 11.434 16.145 11.626L17.1779 13.7184L19.4876 14.056C19.6994 14.087 19.8753 14.2355 19.9413 14.4391C20.0074 14.6427 19.9521 14.8662 19.7987 15.0156L18.1279 16.643L18.5222 18.9421C18.5584 19.1532 18.4716 19.3665 18.2984 19.4923C18.1252 19.6182 17.8955 19.6347 17.706 19.5351L15.6406 18.4489L13.5753 19.5351C13.3858 19.6347 13.1561 19.6182 12.9829 19.4923C12.8096 19.3665 12.7229 19.1532 12.7591 18.9421L13.1534 16.643L11.4825 15.0156C11.3292 14.8662 11.2739 14.6427 11.3399 14.4391C11.406 14.2355 11.5818 14.087 11.7937 14.056L14.1034 13.7184L15.1362 11.626C15.231 11.434 15.4265 11.3125 15.6406 11.3125ZM15.6406 13.1458L14.9815 14.4813C14.8996 14.6471 14.7414 14.7621 14.5584 14.7889L13.0835 15.0044L14.1503 16.0435C14.283 16.1727 14.3435 16.359 14.3122 16.5416L14.0606 18.0088L15.3788 17.3155C15.5427 17.2293 15.7386 17.2293 15.9025 17.3155L17.2207 18.0088L16.969 16.5416C16.9377 16.359 16.9983 16.1727 17.131 16.0435L18.1978 15.0044L16.7229 14.7889C16.5399 14.7621 16.3817 14.6471 16.2998 14.4813L15.6406 13.1458Z"})),oa=e=>R.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),R.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375})),qu=e=>R.createElement("svg",{width:18,height:19,viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg",...e},R.createElement("g",{clipPath:"url(#clip0)"},R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99997 1.59778C8.19071 1.59778 7.39961 1.83775 6.72673 2.28736C6.05385 2.73697 5.5294 3.37601 5.21971 4.12367C4.91001 4.87134 4.82898 5.69405 4.98686 6.48777C5.14474 7.28149 5.53444 8.01056 6.10668 8.5828C6.67892 9.15504 7.408 9.54474 8.20172 9.70262C8.99544 9.8605 9.81815 9.77947 10.5658 9.46978C11.3135 9.16009 11.9525 8.63564 12.4021 7.96276C12.8517 7.28987 13.0917 6.49878 13.0917 5.68951C13.0917 4.60432 12.6606 3.56357 11.8933 2.79622C11.1259 2.02887 10.0852 1.59778 8.99997 1.59778ZM7.27426 3.9638C7.73195 3.50611 8.35271 3.24899 8.99997 3.24899C9.48266 3.24899 9.95452 3.39212 10.3559 3.66029C10.7572 3.92846 11.07 4.30962 11.2547 4.75556C11.4394 5.20151 11.4878 5.69222 11.3936 6.16563C11.2994 6.63905 11.067 7.07391 10.7257 7.41522C10.3844 7.75654 9.94951 7.98897 9.4761 8.08314C9.00268 8.17731 8.51197 8.12898 8.06603 7.94426C7.62008 7.75954 7.23892 7.44674 6.97075 7.04539C6.70258 6.64405 6.55945 6.1722 6.55945 5.68951C6.55945 5.04224 6.81658 4.42149 7.27426 3.9638ZM7.36691 10.3075C6.28172 10.3075 5.24097 10.7385 4.47362 11.5059C3.70627 12.2732 3.27518 13.314 3.27518 14.3992V17.121C3.27518 17.2763 3.4011 17.4022 3.55643 17.4022H4.64514C4.80047 17.4022 4.92639 17.2763 4.92639 17.121V14.3992C4.92639 13.7519 5.18351 13.1312 5.6412 12.6735C6.09889 12.2158 6.71964 11.9587 7.36691 11.9587H10.633C10.9535 11.9587 11.2709 12.0218 11.567 12.1444C11.8631 12.2671 12.1321 12.4469 12.3588 12.6735C12.5854 12.9001 12.7651 13.1691 12.8878 13.4652C13.0104 13.7613 13.0736 14.0787 13.0736 14.3992V17.121C13.0736 17.2763 13.1995 17.4022 13.3548 17.4022H14.4435C14.5989 17.4022 14.7248 17.2763 14.7248 17.121V14.3992C14.7248 13.314 14.2937 12.2732 13.5263 11.5059C12.759 10.7385 11.7182 10.3075 10.633 10.3075H7.36691Z"})),R.createElement("defs",null,R.createElement("clipPath",{id:"clip0"},R.createElement("rect",{width:18,height:18,transform:"translate(0 0.5)"})))),sa=e=>R.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 10C3.25 6.27208 6.27208 3.25 10 3.25C13.7279 3.25 16.75 6.27208 16.75 10C16.75 13.7279 13.7279 16.75 10 16.75C6.27208 16.75 3.25 13.7279 3.25 10ZM10 1.75C5.44365 1.75 1.75 5.44365 1.75 10C1.75 14.5564 5.44365 18.25 10 18.25C14.5563 18.25 18.25 14.5564 18.25 10C18.25 5.44365 14.5563 1.75 10 1.75ZM8.03033 6.96967C7.73744 6.67678 7.26256 6.67678 6.96967 6.96967C6.67678 7.26256 6.67678 7.73744 6.96967 8.03033L11.9697 13.0303C12.2626 13.3232 12.7374 13.3232 13.0303 13.0303C13.3232 12.7374 13.3232 12.2626 13.0303 11.9697L8.03033 6.96967Z"}));var un={},fn,as;function $u(){return as||(as=1,fn=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),fn}var dn,ls;function Vu(){if(ls)return dn;ls=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(s,a){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;a=a||1;var i=s.slice(0,a),u=s.slice(a);return Array.prototype.concat.call([],n(i),n(u))}function o(s){try{return decodeURIComponent(s)}catch{for(var a=s.match(t)||[],i=1;i<a.length;i++)s=n(a,i).join(""),a=s.match(t)||[];return s}}function l(s){for(var a={"%FE%FF":"��","%FF%FE":"��"},i=r.exec(s);i;){try{a[i[0]]=decodeURIComponent(i[0])}catch{var u=o(i[0]);u!==i[0]&&(a[i[0]]=u)}i=r.exec(s)}a["%C2"]="�";for(var f=Object.keys(a),d=0;d<f.length;d++){var b=f[d];s=s.replace(new RegExp(b,"g"),a[b])}return s}return dn=function(s){if(typeof s!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof s+"`");try{return s=s.replace(/\+/g," "),decodeURIComponent(s)}catch{return l(s)}},dn}var pn,cs;function Hu(){return cs||(cs=1,pn=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}),pn}var mn,us;function Ku(){return us||(us=1,mn=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),l=0;l<n.length;l++){var s=n[l],a=e[s];(o?t.indexOf(s)!==-1:t(s,a,e))&&(r[s]=a)}return r}),mn}var fs;function zu(){return fs||(fs=1,function(e){const t=$u(),r=Vu(),n=Hu(),o=Ku(),l=h=>h==null;function s(h){switch(h.arrayFormat){case"index":return g=>(p,m)=>{const v=p.length;return m===void 0||h.skipNull&&m===null||h.skipEmptyString&&m===""?p:m===null?[...p,[u(g,h),"[",v,"]"].join("")]:[...p,[u(g,h),"[",u(v,h),"]=",u(m,h)].join("")]};case"bracket":return g=>(p,m)=>m===void 0||h.skipNull&&m===null||h.skipEmptyString&&m===""?p:m===null?[...p,[u(g,h),"[]"].join("")]:[...p,[u(g,h),"[]=",u(m,h)].join("")];case"comma":case"separator":return g=>(p,m)=>m==null||m.length===0?p:p.length===0?[[u(g,h),"=",u(m,h)].join("")]:[[p,u(m,h)].join(h.arrayFormatSeparator)];default:return g=>(p,m)=>m===void 0||h.skipNull&&m===null||h.skipEmptyString&&m===""?p:m===null?[...p,u(g,h)]:[...p,[u(g,h),"=",u(m,h)].join("")]}}function a(h){let g;switch(h.arrayFormat){case"index":return(p,m,v)=>{if(g=/\[(\d*)\]$/.exec(p),p=p.replace(/\[\d*\]$/,""),!g){v[p]=m;return}v[p]===void 0&&(v[p]={}),v[p][g[1]]=m};case"bracket":return(p,m,v)=>{if(g=/(\[\])$/.exec(p),p=p.replace(/\[\]$/,""),!g){v[p]=m;return}if(v[p]===void 0){v[p]=[m];return}v[p]=[].concat(v[p],m)};case"comma":case"separator":return(p,m,v)=>{const j=typeof m=="string"&&m.includes(h.arrayFormatSeparator),S=typeof m=="string"&&!j&&f(m,h).includes(h.arrayFormatSeparator);m=S?f(m,h):m;const T=j||S?m.split(h.arrayFormatSeparator).map(k=>f(k,h)):m===null?m:f(m,h);v[p]=T};default:return(p,m,v)=>{if(v[p]===void 0){v[p]=m;return}v[p]=[].concat(v[p],m)}}}function i(h){if(typeof h!="string"||h.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(h,g){return g.encode?g.strict?t(h):encodeURIComponent(h):h}function f(h,g){return g.decode?r(h):h}function d(h){return Array.isArray(h)?h.sort():typeof h=="object"?d(Object.keys(h)).sort((g,p)=>Number(g)-Number(p)).map(g=>h[g]):h}function b(h){const g=h.indexOf("#");return g!==-1&&(h=h.slice(0,g)),h}function x(h){let g="";const p=h.indexOf("#");return p!==-1&&(g=h.slice(p)),g}function C(h){h=b(h);const g=h.indexOf("?");return g===-1?"":h.slice(g+1)}function E(h,g){return g.parseNumbers&&!Number.isNaN(Number(h))&&typeof h=="string"&&h.trim()!==""?h=Number(h):g.parseBooleans&&h!==null&&(h.toLowerCase()==="true"||h.toLowerCase()==="false")&&(h=h.toLowerCase()==="true"),h}function w(h,g){g=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},g),i(g.arrayFormatSeparator);const p=a(g),m=Object.create(null);if(typeof h!="string"||(h=h.trim().replace(/^[?#&]/,""),!h))return m;for(const v of h.split("&")){if(v==="")continue;let[j,S]=n(g.decode?v.replace(/\+/g," "):v,"=");S=S===void 0?null:["comma","separator"].includes(g.arrayFormat)?S:f(S,g),p(f(j,g),S,m)}for(const v of Object.keys(m)){const j=m[v];if(typeof j=="object"&&j!==null)for(const S of Object.keys(j))j[S]=E(j[S],g);else m[v]=E(j,g)}return g.sort===!1?m:(g.sort===!0?Object.keys(m).sort():Object.keys(m).sort(g.sort)).reduce((v,j)=>{const S=m[j];return S&&typeof S=="object"&&!Array.isArray(S)?v[j]=d(S):v[j]=S,v},Object.create(null))}e.extract=C,e.parse=w,e.stringify=(h,g)=>{if(!h)return"";g=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},g),i(g.arrayFormatSeparator);const p=S=>g.skipNull&&l(h[S])||g.skipEmptyString&&h[S]==="",m=s(g),v={};for(const S of Object.keys(h))p(S)||(v[S]=h[S]);const j=Object.keys(v);return g.sort!==!1&&j.sort(g.sort),j.map(S=>{const T=h[S];return T===void 0?"":T===null?u(S,g):Array.isArray(T)?T.reduce(m(S),[]).join("&"):u(S,g)+"="+u(T,g)}).filter(S=>S.length>0).join("&")},e.parseUrl=(h,g)=>{g=Object.assign({decode:!0},g);const[p,m]=n(h,"#");return Object.assign({url:p.split("?")[0]||"",query:w(C(h),g)},g&&g.parseFragmentIdentifier&&m?{fragmentIdentifier:f(m,g)}:{})},e.stringifyUrl=(h,g)=>{g=Object.assign({encode:!0,strict:!0},g);const p=b(h.url).split("?")[0]||"",m=e.extract(h.url),v=e.parse(m,{sort:!1}),j=Object.assign(v,h.query);let S=e.stringify(j,g);S&&(S=`?${S}`);let T=x(h.url);return h.fragmentIdentifier&&(T=`#${u(h.fragmentIdentifier,g)}`),`${p}${S}${T}`},e.pick=(h,g,p)=>{p=Object.assign({parseFragmentIdentifier:!0},p);const{url:m,query:v,fragmentIdentifier:j}=e.parseUrl(h,p);return e.stringifyUrl({url:m,query:o(v,g),fragmentIdentifier:j},p)},e.exclude=(h,g,p)=>{const m=Array.isArray(g)?v=>!g.includes(v):(v,j)=>!g(v,j);return e.pick(h,m,p)}}(un)),un}var hn=zu();const lr=Fl,Wu={parseNumbers:!1,parseBooleans:!1},Yu={skipNull:!1,skipEmptyString:!1},Gu=(e,t)=>{var r,n;const{navigateMode:o="push",parseOptions:l,stringifyOptions:s}={},a=Object.assign(Object.assign({},Wu),l),i=Object.assign(Object.assign({},Yu),s),u=lr.useLocation(),f=(r=lr.useHistory)===null||r===void 0?void 0:r.call(lr),d=(n=lr.useNavigate)===null||n===void 0?void 0:n.call(lr),b=Ul(),x=R.useRef(typeof e=="function"?e():e||{}),C=R.useMemo(()=>hn.parse(u.search,a),[u.search]),E=R.useMemo(()=>Object.assign(Object.assign({},x.current),C),[C]);return[E,Dt(h=>{const g=typeof h=="function"?h(E):h;b(),f&&f[o]({hash:u.hash,search:hn.stringify(Object.assign(Object.assign({},C),g),i)||"?"},u.state),d&&d({hash:u.hash,search:hn.stringify(Object.assign(Object.assign({},C),g),i)||"?"},{replace:o==="replace",state:u.state})})]};var Ot={},cr={},gn={exports:{}},bn={},ds;function ia(){if(ds)return bn;ds=1;function e(g){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},e(g)}function t(g,p,m){return Object.defineProperty(g,"prototype",{writable:!1}),g}function r(g,p){if(!(g instanceof p))throw new TypeError("Cannot call a class as a function")}function n(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(p&&p.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),p&&o(g,p)}function o(g,p){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,j){return v.__proto__=j,v},o(g,p)}function l(g){var p=i();return function(){var v=u(g),j;if(p){var S=u(this).constructor;j=Reflect.construct(v,arguments,S)}else j=v.apply(this,arguments);return s(this,j)}}function s(g,p){if(p&&(e(p)==="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a(g)}function a(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function i(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function u(g){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(m){return m.__proto__||Object.getPrototypeOf(m)},u(g)}var f={},d,b;function x(g,p,m){m||(m=Error);function v(S,T,k){return typeof p=="string"?p:p(S,T,k)}var j=function(S){n(k,S);var T=l(k);function k(_,N,F){var K;return r(this,k),K=T.call(this,v(_,N,F)),K.code=g,K}return t(k)}(m);f[g]=j}function C(g,p){if(Array.isArray(g)){var m=g.length;return g=g.map(function(v){return String(v)}),m>2?"one of ".concat(p," ").concat(g.slice(0,m-1).join(", "),", or ")+g[m-1]:m===2?"one of ".concat(p," ").concat(g[0]," or ").concat(g[1]):"of ".concat(p," ").concat(g[0])}else return"of ".concat(p," ").concat(String(g))}function E(g,p,m){return g.substr(0,p.length)===p}function w(g,p,m){return(m===void 0||m>g.length)&&(m=g.length),g.substring(m-p.length,m)===p}function h(g,p,m){return typeof m!="number"&&(m=0),m+p.length>g.length?!1:g.indexOf(p,m)!==-1}return x("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),x("ERR_INVALID_ARG_TYPE",function(g,p,m){d===void 0&&(d=oo()),d(typeof g=="string","'name' must be a string");var v;typeof p=="string"&&E(p,"not ")?(v="must not be",p=p.replace(/^not /,"")):v="must be";var j;if(w(g," argument"))j="The ".concat(g," ").concat(v," ").concat(C(p,"type"));else{var S=h(g,".")?"property":"argument";j='The "'.concat(g,'" ').concat(S," ").concat(v," ").concat(C(p,"type"))}return j+=". Received type ".concat(e(m)),j},TypeError),x("ERR_INVALID_ARG_VALUE",function(g,p){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";b===void 0&&(b=gr());var v=b.inspect(p);return v.length>128&&(v="".concat(v.slice(0,128),"...")),"The argument '".concat(g,"' ").concat(m,". Received ").concat(v)},TypeError),x("ERR_INVALID_RETURN_VALUE",function(g,p,m){var v;return m&&m.constructor&&m.constructor.name?v="instance of ".concat(m.constructor.name):v="type ".concat(e(m)),"Expected ".concat(g,' to be returned from the "').concat(p,'"')+" function but got ".concat(v,".")},TypeError),x("ERR_MISSING_ARGS",function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];d===void 0&&(d=oo()),d(p.length>0,"At least one arg needs to be specified");var v="The ",j=p.length;switch(p=p.map(function(S){return'"'.concat(S,'"')}),j){case 1:v+="".concat(p[0]," argument");break;case 2:v+="".concat(p[0]," and ").concat(p[1]," arguments");break;default:v+=p.slice(0,j-1).join(", "),v+=", and ".concat(p[j-1]," arguments");break}return"".concat(v," must be specified")},TypeError),bn.codes=f,bn}var yn,ps;function Zu(){if(ps)return yn;ps=1;function e(D,B){var G=Object.keys(D);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(D);B&&(W=W.filter(function(Q){return Object.getOwnPropertyDescriptor(D,Q).enumerable})),G.push.apply(G,W)}return G}function t(D){for(var B=1;B<arguments.length;B++){var G=arguments[B]!=null?arguments[B]:{};B%2?e(Object(G),!0).forEach(function(W){r(D,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(G)):e(Object(G)).forEach(function(W){Object.defineProperty(D,W,Object.getOwnPropertyDescriptor(G,W))})}return D}function r(D,B,G){return B=s(B),B in D?Object.defineProperty(D,B,{value:G,enumerable:!0,configurable:!0,writable:!0}):D[B]=G,D}function n(D,B){if(!(D instanceof B))throw new TypeError("Cannot call a class as a function")}function o(D,B){for(var G=0;G<B.length;G++){var W=B[G];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(D,s(W.key),W)}}function l(D,B,G){return B&&o(D.prototype,B),Object.defineProperty(D,"prototype",{writable:!1}),D}function s(D){var B=a(D,"string");return g(B)==="symbol"?B:String(B)}function a(D,B){if(g(D)!=="object"||D===null)return D;var G=D[Symbol.toPrimitive];if(G!==void 0){var W=G.call(D,B);if(g(W)!=="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(D)}function i(D,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(B&&B.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),B&&w(D,B)}function u(D){var B=C();return function(){var W=h(D),Q;if(B){var A=h(this).constructor;Q=Reflect.construct(W,arguments,A)}else Q=W.apply(this,arguments);return f(this,Q)}}function f(D,B){if(B&&(g(B)==="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(D)}function d(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function b(D){var B=typeof Map=="function"?new Map:void 0;return b=function(W){if(W===null||!E(W))return W;if(typeof W!="function")throw new TypeError("Super expression must either be null or a function");if(typeof B<"u"){if(B.has(W))return B.get(W);B.set(W,Q)}function Q(){return x(W,arguments,h(this).constructor)}return Q.prototype=Object.create(W.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),w(Q,W)},b(D)}function x(D,B,G){return C()?x=Reflect.construct.bind():x=function(Q,A,I){var L=[null];L.push.apply(L,A);var H=Function.bind.apply(Q,L),M=new H;return I&&w(M,I.prototype),M},x.apply(null,arguments)}function C(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function E(D){return Function.toString.call(D).indexOf("[native code]")!==-1}function w(D,B){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(W,Q){return W.__proto__=Q,W},w(D,B)}function h(D){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},h(D)}function g(D){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},g(D)}var p=gr(),m=p.inspect,v=ia(),j=v.codes.ERR_INVALID_ARG_TYPE;function S(D,B,G){return(G===void 0||G>D.length)&&(G=D.length),D.substring(G-B.length,G)===B}function T(D,B){if(B=Math.floor(B),D.length==0||B==0)return"";var G=D.length*B;for(B=Math.floor(Math.log(B)/Math.log(2));B;)D+=D,B--;return D+=D.substring(0,G-D.length),D}var k="",_="",N="",F="",K={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},ne=10;function te(D){var B=Object.keys(D),G=Object.create(Object.getPrototypeOf(D));return B.forEach(function(W){G[W]=D[W]}),Object.defineProperty(G,"message",{value:D.message}),G}function ge(D){return m(D,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Se(D,B,G){var W="",Q="",A=0,I="",L=!1,H=ge(D),M=H.split(`
|
|
1
|
+
import{r as R,fK as Ml,c6 as Wo,fL as Nl,ft as Yo,fM as Bl,cW as Go,aF as Sr,j as c,fN as Fl,fO as Ul,aT as Dt,fP as gr,ez as Je,fQ as wi,fR as ql,fS as $l,fT as Vl,fU as Hl,fV as Kl,fW as Si,fX as zl,fY as mo,fZ as Wl,f_ as Ci,f$ as Yl,g0 as Gl,eB as mt,g1 as Ei,g2 as Zl,g3 as Xl,g4 as Ql,g5 as ho,cJ as Et,g6 as Jl,g7 as ec,g8 as tc,g9 as ji,eA as Ti,eC as rc,dF as nc,ga as oc,gb as sc,V as ke,bo as Fe,aP as ut,gc as ki,H as Le,Y as Ue,o as y,f as go,eO as Pi,f5 as Ri,n as kt,K as U,bZ as ic,dL as ac,bz as lc,av as ft,gd as Ii,S as Nr,bl as Br,ge as _i,a$ as cc,$ as et,t as lt,b2 as uc,bB as qe,aV as Wt,E as bo,fe as fc,gf as dc,gg as pc,gh as mc,D as Gr,T as Re,bh as yo,a4 as mr,gi as hc,X as At,c0 as Jt,c1 as er,cl as Oi,dO as rt,e_ as ce,c3 as gc,b9 as De,de as Fr,d8 as Ai,c4 as dt,c5 as Bt,R as Mt,dK as Di,db as bc,gj as Zr,gk as Li,bE as it,bg as Ve,P as br,bq as Mi,Q as eo,at as Ni,dH as yc,gl as Ur,bt as vc,au as yr,v as He,C as jt,gm as xc,h as to,aX as wc,w as Sc,x as Cc,s as We,p as Cr,ad as Er,bF as Gt,gn as Ec,dG as jc,dn as Tc,aH as Ct,O as Tt,dy as kc,go as Pc,eD as Rc,gp as Bi,gq as qr,gr as Ic,dI as vr,b as Ce,W as vo,dJ as _c,cw as Fi,z as Oc,bv as xo,bw as Ui,bx as wo,dq as kr,aD as Ac,fJ as qi,N as xr,aS as Dc,gs as $i,aE as Lc,a9 as Mc,gt as Nc,c_ as Vi,gu as Bc,bA as Zo,y as Fc,gv as Uc,bH as qc,U as $c,M as Vc}from"./index-CyYCs6Na.js";import{A as Zt}from"./Add-CwfzHL2f.js";import{V as Hc}from"./ViewList-BbsCfkWP.js";import{c as Kc,H as So,g as zc}from"./index-BE354x55.js";import{v as Xo}from"./index-Dgm3J-5y.js";import{u as Ye}from"./team-BgfMEJL2.js";import{u as Hi}from"./blocklet-c-fcHcMv.js";import{S as Ki}from"./Search-edKoOPH1.js";import{y as Xr}from"./index-CNAqYYKs.js";import{u as Wc,C as ar}from"./index.esm-XgmtgzU6.js";import{S as Yc}from"./Google-B-6SbnBW.js";import{A as Gc,a as Pr}from"./Autocomplete-DTfKu22k.js";import{U as Zc}from"./UnfoldMore-COp9hgN2.js";import{P as Nt}from"./permission-3nsQS0Bo.js";import{C as Qr}from"./click-to-copy-CUoB1qVU.js";import{s as Pt,g as Xc,S as Qc,u as ht,a as zi,b as jr,c as Wi,d as Jr,e as Yi,f as Co,P as Gi,D as Zi,h as $r,M as pr,i as Xi,j as Qo,k as hr,v as Jc,l as eu,m as Jo,n as tu,o as ru,p as nu,q as ou,C as su,r as iu,t as Vr,w as zt,x as Hr,y as es,z as ts,A as au,T as lu,B as Eo,E as cu,F as uu,G as fu,H as du,I as pu,J as mu,K as hu,L as Rr,N as Yt,O as Qi,Q as gu,V as ro,R as Ji,U as bu,W as rs,X as yu,Y as vu,Z as xu,_ as wu,$ as Su,a0 as Cu}from"./AdapterDayjs-BJDMOH87.js";import{u as nt}from"./useThemeProps-Chclx8ny.js";import{a as ns,b as Eu,t as ju,T as Tu}from"./html-title-ZIT73gw4.js";import{v as Ge}from"./index-Cihue4u0.js";import{V as ku}from"./Verified-CDQAXply.js";import{D as Pu}from"./DeleteOutline-CCoXF09b.js";import{E as os}from"./ErrorOutline-B7Ps-w5c.js";import{N as Ru}from"./index-BSjBv3t4.js";import{R as ea,a as Mr}from"./url-evaluation-B3eRUARy.js";import{b as no}from"./sdk-Dbin21P4.js";import{u as Iu}from"./index-Bya-MYDK.js";import{u as ta}from"./use-mobile-DW1xADqf.js";import{D as _u}from"./Delete-Depf4F2y.js";import{A as Ou}from"./actions-B3lOcEVi.js";import{S as Au}from"./shorten-label-DJxU7eGt.js";import{U as cn}from"./ua-parser-DP5omx3I.js";const Du=Kc(R.useLayoutEffect);var ss={},is;function Lu(){return is||(is=1,function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(p){try{return p.defaultView&&p.defaultView.frameElement||null}catch{return null}}var t=function(p){for(var m=p,v=e(m);v;)m=v.ownerDocument,v=e(m);return m}(window.document),r=[],n=null,o=null;function l(p){this.time=p.time,this.target=p.target,this.rootBounds=C(p.rootBounds),this.boundingClientRect=C(p.boundingClientRect),this.intersectionRect=C(p.intersectionRect||x()),this.isIntersecting=!!p.intersectionRect;var m=this.boundingClientRect,v=m.width*m.height,j=this.intersectionRect,S=j.width*j.height;v?this.intersectionRatio=Number((S/v).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function s(p,m){var v=m||{};if(typeof p!="function")throw new Error("callback must be a function");if(v.root&&v.root.nodeType!=1&&v.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=i(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=p,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(v.rootMargin),this.thresholds=this._initThresholds(v.threshold),this.root=v.root||null,this.rootMargin=this._rootMarginValues.map(function(j){return j.value+j.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(p,m){!p||!m?o=x():o=E(p,m),r.forEach(function(v){v._checkForIntersections()})}),n},s._resetCrossOriginUpdater=function(){n=null,o=null},s.prototype.observe=function(p){var m=this._observationTargets.some(function(v){return v.element==p});if(!m){if(!(p&&p.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:p,entry:null}),this._monitorIntersections(p.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(p){this._observationTargets=this._observationTargets.filter(function(m){return m.element!=p}),this._unmonitorIntersections(p.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var p=this._queuedEntries.slice();return this._queuedEntries=[],p},s.prototype._initThresholds=function(p){var m=p||[0];return Array.isArray(m)||(m=[m]),m.sort().filter(function(v,j,S){if(typeof v!="number"||isNaN(v)||v<0||v>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return v!==S[j-1]})},s.prototype._parseRootMargin=function(p){var m=p||"0px",v=m.split(/\s+/).map(function(j){var S=/^(-?\d*\.?\d+)(px|%)$/.exec(j);if(!S)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(S[1]),unit:S[2]}});return v[1]=v[1]||v[0],v[2]=v[2]||v[0],v[3]=v[3]||v[1],v},s.prototype._monitorIntersections=function(p){var m=p.defaultView;if(m&&this._monitoringDocuments.indexOf(p)==-1){var v=this._checkForIntersections,j=null,S=null;this.POLL_INTERVAL?j=m.setInterval(v,this.POLL_INTERVAL):(u(m,"resize",v,!0),u(p,"scroll",v,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in m&&(S=new m.MutationObserver(v),S.observe(p,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(p),this._monitoringUnsubscribes.push(function(){var _=p.defaultView;_&&(j&&_.clearInterval(j),f(_,"resize",v,!0)),f(p,"scroll",v,!0),S&&S.disconnect()});var T=this.root&&(this.root.ownerDocument||this.root)||t;if(p!=T){var k=e(p);k&&this._monitorIntersections(k.ownerDocument)}}},s.prototype._unmonitorIntersections=function(p){var m=this._monitoringDocuments.indexOf(p);if(m!=-1){var v=this.root&&(this.root.ownerDocument||this.root)||t,j=this._observationTargets.some(function(k){var _=k.element.ownerDocument;if(_==p)return!0;for(;_&&_!=v;){var N=e(_);if(_=N&&N.ownerDocument,_==p)return!0}return!1});if(!j){var S=this._monitoringUnsubscribes[m];if(this._monitoringDocuments.splice(m,1),this._monitoringUnsubscribes.splice(m,1),S(),p!=v){var T=e(p);T&&this._unmonitorIntersections(T.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var p=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var m=0;m<p.length;m++)p[m]()},s.prototype._checkForIntersections=function(){if(!(!this.root&&n&&!o)){var p=this._rootIsInDom(),m=p?this._getRootRect():x();this._observationTargets.forEach(function(v){var j=v.element,S=b(j),T=this._rootContainsTarget(j),k=v.entry,_=p&&T&&this._computeTargetAndRootIntersection(j,S,m),N=null;this._rootContainsTarget(j)?(!n||this.root)&&(N=m):N=x();var F=v.entry=new l({time:a(),target:j,boundingClientRect:S,rootBounds:N,intersectionRect:_});k?p&&T?this._hasCrossedThreshold(k,F)&&this._queuedEntries.push(F):k&&k.isIntersecting&&this._queuedEntries.push(F):this._queuedEntries.push(F)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(p,m,v){if(window.getComputedStyle(p).display!="none"){for(var j=m,S=h(p),T=!1;!T&&S;){var k=null,_=S.nodeType==1?window.getComputedStyle(S):{};if(_.display=="none")return null;if(S==this.root||S.nodeType==9)if(T=!0,S==this.root||S==t)n&&!this.root?!o||o.width==0&&o.height==0?(S=null,k=null,j=null):k=o:k=v;else{var N=h(S),F=N&&b(N),K=N&&this._computeTargetAndRootIntersection(N,F,v);F&&K?(S=N,k=E(F,K)):(S=null,j=null)}else{var ne=S.ownerDocument;S!=ne.body&&S!=ne.documentElement&&_.overflow!="visible"&&(k=b(S))}if(k&&(j=d(k,j)),!j)break;S=S&&h(S)}return j}},s.prototype._getRootRect=function(){var p;if(this.root&&!g(this.root))p=b(this.root);else{var m=g(this.root)?this.root:t,v=m.documentElement,j=m.body;p={top:0,left:0,right:v.clientWidth||j.clientWidth,width:v.clientWidth||j.clientWidth,bottom:v.clientHeight||j.clientHeight,height:v.clientHeight||j.clientHeight}}return this._expandRectByRootMargin(p)},s.prototype._expandRectByRootMargin=function(p){var m=this._rootMarginValues.map(function(j,S){return j.unit=="px"?j.value:j.value*(S%2?p.width:p.height)/100}),v={top:p.top-m[0],right:p.right+m[1],bottom:p.bottom+m[2],left:p.left-m[3]};return v.width=v.right-v.left,v.height=v.bottom-v.top,v},s.prototype._hasCrossedThreshold=function(p,m){var v=p&&p.isIntersecting?p.intersectionRatio||0:-1,j=m.isIntersecting?m.intersectionRatio||0:-1;if(v!==j)for(var S=0;S<this.thresholds.length;S++){var T=this.thresholds[S];if(T==v||T==j||T<v!=T<j)return!0}},s.prototype._rootIsInDom=function(){return!this.root||w(t,this.root)},s.prototype._rootContainsTarget=function(p){var m=this.root&&(this.root.ownerDocument||this.root)||t;return w(m,p)&&(!this.root||m==p.ownerDocument)},s.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)},s.prototype._unregisterInstance=function(){var p=r.indexOf(this);p!=-1&&r.splice(p,1)};function a(){return window.performance&&performance.now&&performance.now()}function i(p,m){var v=null;return function(){v||(v=setTimeout(function(){p(),v=null},m))}}function u(p,m,v,j){typeof p.addEventListener=="function"?p.addEventListener(m,v,j):typeof p.attachEvent=="function"&&p.attachEvent("on"+m,v)}function f(p,m,v,j){typeof p.removeEventListener=="function"?p.removeEventListener(m,v,j):typeof p.detachEvent=="function"&&p.detachEvent("on"+m,v)}function d(p,m){var v=Math.max(p.top,m.top),j=Math.min(p.bottom,m.bottom),S=Math.max(p.left,m.left),T=Math.min(p.right,m.right),k=T-S,_=j-v;return k>=0&&_>=0&&{top:v,bottom:j,left:S,right:T,width:k,height:_}||null}function b(p){var m;try{m=p.getBoundingClientRect()}catch{}return m?(m.width&&m.height||(m={top:m.top,right:m.right,bottom:m.bottom,left:m.left,width:m.right-m.left,height:m.bottom-m.top}),m):x()}function x(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function C(p){return!p||"x"in p?p:{top:p.top,y:p.top,bottom:p.bottom,left:p.left,x:p.left,right:p.right,width:p.width,height:p.height}}function E(p,m){var v=m.top-p.top,j=m.left-p.left;return{top:v,left:j,height:m.height,width:m.width,bottom:v+m.height,right:j+m.width}}function w(p,m){for(var v=m;v;){if(v==p)return!0;v=h(v)}return!1}function h(p){var m=p.parentNode;return p.nodeType==9&&p!=t?e(p):(m&&m.assignedSlot&&(m=m.assignedSlot.parentNode),m&&m.nodeType==11&&m.host?m.host:m)}function g(p){return p&&p.nodeType===9}window.IntersectionObserver=s,window.IntersectionObserverEntry=l}()),ss}Lu();function Mu(e,t){var r={},n=r.callback,o=Ml(r,["callback"]),l=Wo(R.useState(),2),s=l[0],a=l[1],i=Wo(R.useState(),2),u=i[0],f=i[1];return Nl(function(){var d=Array.isArray(e)?e:[e],b=d.map(function(C){return Yo(C)}).filter(Boolean);if(b.length){var x=new IntersectionObserver(function(C){var E,w;try{for(var h=Bl(C),g=h.next();!g.done;g=h.next()){var p=g.value;f(p.intersectionRatio),a(p.isIntersecting),n?.(p)}}catch(m){E={error:m}}finally{try{g&&!g.done&&(w=h.return)&&w.call(h)}finally{if(E)throw E.error}}},Go(Go({},o),{root:Yo(void 0)}));return b.forEach(function(C){return x.observe(C)}),function(){x.disconnect()}}},[void 0,void 0,n],e),[s,u]}const Nu=Sr(c.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"})),Bu=Sr(c.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"})),en=Sr([c.jsx("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42M13 20.01 4 11V4h7v-.01l9 9z"},"0"),c.jsx("circle",{cx:"6.5",cy:"6.5",r:"1.5"},"1")]),Fu=Sr(c.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"})),Uu=Sr(c.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),ra=e=>R.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),R.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375}),R.createElement("rect",{x:15.3125,y:14.0625,width:7.5,height:1.875,rx:.9375,transform:"rotate(-90 15.3125 14.0625)"})),na=e=>R.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},R.createElement("path",{d:"M1.25 2.7087C1.25 2.24826 1.62326 1.875 2.0837 1.875H14.339C14.7995 1.875 15.1727 2.24826 15.1727 2.7087V9.31574C15.1727 9.77618 14.7995 10.1494 14.339 10.1494C13.8786 10.1494 13.5053 9.77618 13.5053 9.31574V3.54239H2.91739V16.7565H6.53772H8.34788H9.32435C9.78479 16.7565 10.158 17.1297 10.158 17.5902C10.158 18.0506 9.78479 18.4239 9.32435 18.4239H8.34788H2.0837C1.62326 18.4239 1.25 18.0506 1.25 17.5902V2.7087Z"}),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.21129 7.91935C7.70481 7.91935 7.29422 8.32993 7.29422 8.83641C7.29422 9.34289 7.70481 9.75348 8.21129 9.75348C8.71777 9.75348 9.12836 9.34289 9.12836 8.83641C9.12836 8.32993 8.71777 7.91935 8.21129 7.91935ZM5.62683 8.83641C5.62683 7.40905 6.78393 6.25195 8.21129 6.25195C9.63865 6.25195 10.7957 7.40905 10.7957 8.83641C10.7957 10.2638 9.63865 11.4209 8.21129 11.4209C6.78393 11.4209 5.62683 10.2638 5.62683 8.83641Z"}),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.62683 13.2133C5.62683 12.7529 6.00009 12.3796 6.46053 12.3796H9.96205C10.4225 12.3796 10.7957 12.7529 10.7957 13.2133C10.7957 13.6737 10.4225 14.047 9.96205 14.047H6.46053C6.00009 14.047 5.62683 13.6737 5.62683 13.2133Z"}),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6406 11.3125C15.8547 11.3125 16.0503 11.434 16.145 11.626L17.1779 13.7184L19.4876 14.056C19.6994 14.087 19.8753 14.2355 19.9413 14.4391C20.0074 14.6427 19.9521 14.8662 19.7987 15.0156L18.1279 16.643L18.5222 18.9421C18.5584 19.1532 18.4716 19.3665 18.2984 19.4923C18.1252 19.6182 17.8955 19.6347 17.706 19.5351L15.6406 18.4489L13.5753 19.5351C13.3858 19.6347 13.1561 19.6182 12.9829 19.4923C12.8096 19.3665 12.7229 19.1532 12.7591 18.9421L13.1534 16.643L11.4825 15.0156C11.3292 14.8662 11.2739 14.6427 11.3399 14.4391C11.406 14.2355 11.5818 14.087 11.7937 14.056L14.1034 13.7184L15.1362 11.626C15.231 11.434 15.4265 11.3125 15.6406 11.3125ZM15.6406 13.1458L14.9815 14.4813C14.8996 14.6471 14.7414 14.7621 14.5584 14.7889L13.0835 15.0044L14.1503 16.0435C14.283 16.1727 14.3435 16.359 14.3122 16.5416L14.0606 18.0088L15.3788 17.3155C15.5427 17.2293 15.7386 17.2293 15.9025 17.3155L17.2207 18.0088L16.969 16.5416C16.9377 16.359 16.9983 16.1727 17.131 16.0435L18.1978 15.0044L16.7229 14.7889C16.5399 14.7621 16.3817 14.6471 16.2998 14.4813L15.6406 13.1458Z"})),oa=e=>R.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),R.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375})),qu=e=>R.createElement("svg",{width:18,height:19,viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg",...e},R.createElement("g",{clipPath:"url(#clip0)"},R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99997 1.59778C8.19071 1.59778 7.39961 1.83775 6.72673 2.28736C6.05385 2.73697 5.5294 3.37601 5.21971 4.12367C4.91001 4.87134 4.82898 5.69405 4.98686 6.48777C5.14474 7.28149 5.53444 8.01056 6.10668 8.5828C6.67892 9.15504 7.408 9.54474 8.20172 9.70262C8.99544 9.8605 9.81815 9.77947 10.5658 9.46978C11.3135 9.16009 11.9525 8.63564 12.4021 7.96276C12.8517 7.28987 13.0917 6.49878 13.0917 5.68951C13.0917 4.60432 12.6606 3.56357 11.8933 2.79622C11.1259 2.02887 10.0852 1.59778 8.99997 1.59778ZM7.27426 3.9638C7.73195 3.50611 8.35271 3.24899 8.99997 3.24899C9.48266 3.24899 9.95452 3.39212 10.3559 3.66029C10.7572 3.92846 11.07 4.30962 11.2547 4.75556C11.4394 5.20151 11.4878 5.69222 11.3936 6.16563C11.2994 6.63905 11.067 7.07391 10.7257 7.41522C10.3844 7.75654 9.94951 7.98897 9.4761 8.08314C9.00268 8.17731 8.51197 8.12898 8.06603 7.94426C7.62008 7.75954 7.23892 7.44674 6.97075 7.04539C6.70258 6.64405 6.55945 6.1722 6.55945 5.68951C6.55945 5.04224 6.81658 4.42149 7.27426 3.9638ZM7.36691 10.3075C6.28172 10.3075 5.24097 10.7385 4.47362 11.5059C3.70627 12.2732 3.27518 13.314 3.27518 14.3992V17.121C3.27518 17.2763 3.4011 17.4022 3.55643 17.4022H4.64514C4.80047 17.4022 4.92639 17.2763 4.92639 17.121V14.3992C4.92639 13.7519 5.18351 13.1312 5.6412 12.6735C6.09889 12.2158 6.71964 11.9587 7.36691 11.9587H10.633C10.9535 11.9587 11.2709 12.0218 11.567 12.1444C11.8631 12.2671 12.1321 12.4469 12.3588 12.6735C12.5854 12.9001 12.7651 13.1691 12.8878 13.4652C13.0104 13.7613 13.0736 14.0787 13.0736 14.3992V17.121C13.0736 17.2763 13.1995 17.4022 13.3548 17.4022H14.4435C14.5989 17.4022 14.7248 17.2763 14.7248 17.121V14.3992C14.7248 13.314 14.2937 12.2732 13.5263 11.5059C12.759 10.7385 11.7182 10.3075 10.633 10.3075H7.36691Z"})),R.createElement("defs",null,R.createElement("clipPath",{id:"clip0"},R.createElement("rect",{width:18,height:18,transform:"translate(0 0.5)"})))),sa=e=>R.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 10C3.25 6.27208 6.27208 3.25 10 3.25C13.7279 3.25 16.75 6.27208 16.75 10C16.75 13.7279 13.7279 16.75 10 16.75C6.27208 16.75 3.25 13.7279 3.25 10ZM10 1.75C5.44365 1.75 1.75 5.44365 1.75 10C1.75 14.5564 5.44365 18.25 10 18.25C14.5563 18.25 18.25 14.5564 18.25 10C18.25 5.44365 14.5563 1.75 10 1.75ZM8.03033 6.96967C7.73744 6.67678 7.26256 6.67678 6.96967 6.96967C6.67678 7.26256 6.67678 7.73744 6.96967 8.03033L11.9697 13.0303C12.2626 13.3232 12.7374 13.3232 13.0303 13.0303C13.3232 12.7374 13.3232 12.2626 13.0303 11.9697L8.03033 6.96967Z"}));var un={},fn,as;function $u(){return as||(as=1,fn=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),fn}var dn,ls;function Vu(){if(ls)return dn;ls=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(s,a){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;a=a||1;var i=s.slice(0,a),u=s.slice(a);return Array.prototype.concat.call([],n(i),n(u))}function o(s){try{return decodeURIComponent(s)}catch{for(var a=s.match(t)||[],i=1;i<a.length;i++)s=n(a,i).join(""),a=s.match(t)||[];return s}}function l(s){for(var a={"%FE%FF":"��","%FF%FE":"��"},i=r.exec(s);i;){try{a[i[0]]=decodeURIComponent(i[0])}catch{var u=o(i[0]);u!==i[0]&&(a[i[0]]=u)}i=r.exec(s)}a["%C2"]="�";for(var f=Object.keys(a),d=0;d<f.length;d++){var b=f[d];s=s.replace(new RegExp(b,"g"),a[b])}return s}return dn=function(s){if(typeof s!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof s+"`");try{return s=s.replace(/\+/g," "),decodeURIComponent(s)}catch{return l(s)}},dn}var pn,cs;function Hu(){return cs||(cs=1,pn=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}),pn}var mn,us;function Ku(){return us||(us=1,mn=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),l=0;l<n.length;l++){var s=n[l],a=e[s];(o?t.indexOf(s)!==-1:t(s,a,e))&&(r[s]=a)}return r}),mn}var fs;function zu(){return fs||(fs=1,function(e){const t=$u(),r=Vu(),n=Hu(),o=Ku(),l=h=>h==null;function s(h){switch(h.arrayFormat){case"index":return g=>(p,m)=>{const v=p.length;return m===void 0||h.skipNull&&m===null||h.skipEmptyString&&m===""?p:m===null?[...p,[u(g,h),"[",v,"]"].join("")]:[...p,[u(g,h),"[",u(v,h),"]=",u(m,h)].join("")]};case"bracket":return g=>(p,m)=>m===void 0||h.skipNull&&m===null||h.skipEmptyString&&m===""?p:m===null?[...p,[u(g,h),"[]"].join("")]:[...p,[u(g,h),"[]=",u(m,h)].join("")];case"comma":case"separator":return g=>(p,m)=>m==null||m.length===0?p:p.length===0?[[u(g,h),"=",u(m,h)].join("")]:[[p,u(m,h)].join(h.arrayFormatSeparator)];default:return g=>(p,m)=>m===void 0||h.skipNull&&m===null||h.skipEmptyString&&m===""?p:m===null?[...p,u(g,h)]:[...p,[u(g,h),"=",u(m,h)].join("")]}}function a(h){let g;switch(h.arrayFormat){case"index":return(p,m,v)=>{if(g=/\[(\d*)\]$/.exec(p),p=p.replace(/\[\d*\]$/,""),!g){v[p]=m;return}v[p]===void 0&&(v[p]={}),v[p][g[1]]=m};case"bracket":return(p,m,v)=>{if(g=/(\[\])$/.exec(p),p=p.replace(/\[\]$/,""),!g){v[p]=m;return}if(v[p]===void 0){v[p]=[m];return}v[p]=[].concat(v[p],m)};case"comma":case"separator":return(p,m,v)=>{const j=typeof m=="string"&&m.includes(h.arrayFormatSeparator),S=typeof m=="string"&&!j&&f(m,h).includes(h.arrayFormatSeparator);m=S?f(m,h):m;const T=j||S?m.split(h.arrayFormatSeparator).map(k=>f(k,h)):m===null?m:f(m,h);v[p]=T};default:return(p,m,v)=>{if(v[p]===void 0){v[p]=m;return}v[p]=[].concat(v[p],m)}}}function i(h){if(typeof h!="string"||h.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(h,g){return g.encode?g.strict?t(h):encodeURIComponent(h):h}function f(h,g){return g.decode?r(h):h}function d(h){return Array.isArray(h)?h.sort():typeof h=="object"?d(Object.keys(h)).sort((g,p)=>Number(g)-Number(p)).map(g=>h[g]):h}function b(h){const g=h.indexOf("#");return g!==-1&&(h=h.slice(0,g)),h}function x(h){let g="";const p=h.indexOf("#");return p!==-1&&(g=h.slice(p)),g}function C(h){h=b(h);const g=h.indexOf("?");return g===-1?"":h.slice(g+1)}function E(h,g){return g.parseNumbers&&!Number.isNaN(Number(h))&&typeof h=="string"&&h.trim()!==""?h=Number(h):g.parseBooleans&&h!==null&&(h.toLowerCase()==="true"||h.toLowerCase()==="false")&&(h=h.toLowerCase()==="true"),h}function w(h,g){g=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},g),i(g.arrayFormatSeparator);const p=a(g),m=Object.create(null);if(typeof h!="string"||(h=h.trim().replace(/^[?#&]/,""),!h))return m;for(const v of h.split("&")){if(v==="")continue;let[j,S]=n(g.decode?v.replace(/\+/g," "):v,"=");S=S===void 0?null:["comma","separator"].includes(g.arrayFormat)?S:f(S,g),p(f(j,g),S,m)}for(const v of Object.keys(m)){const j=m[v];if(typeof j=="object"&&j!==null)for(const S of Object.keys(j))j[S]=E(j[S],g);else m[v]=E(j,g)}return g.sort===!1?m:(g.sort===!0?Object.keys(m).sort():Object.keys(m).sort(g.sort)).reduce((v,j)=>{const S=m[j];return S&&typeof S=="object"&&!Array.isArray(S)?v[j]=d(S):v[j]=S,v},Object.create(null))}e.extract=C,e.parse=w,e.stringify=(h,g)=>{if(!h)return"";g=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},g),i(g.arrayFormatSeparator);const p=S=>g.skipNull&&l(h[S])||g.skipEmptyString&&h[S]==="",m=s(g),v={};for(const S of Object.keys(h))p(S)||(v[S]=h[S]);const j=Object.keys(v);return g.sort!==!1&&j.sort(g.sort),j.map(S=>{const T=h[S];return T===void 0?"":T===null?u(S,g):Array.isArray(T)?T.reduce(m(S),[]).join("&"):u(S,g)+"="+u(T,g)}).filter(S=>S.length>0).join("&")},e.parseUrl=(h,g)=>{g=Object.assign({decode:!0},g);const[p,m]=n(h,"#");return Object.assign({url:p.split("?")[0]||"",query:w(C(h),g)},g&&g.parseFragmentIdentifier&&m?{fragmentIdentifier:f(m,g)}:{})},e.stringifyUrl=(h,g)=>{g=Object.assign({encode:!0,strict:!0},g);const p=b(h.url).split("?")[0]||"",m=e.extract(h.url),v=e.parse(m,{sort:!1}),j=Object.assign(v,h.query);let S=e.stringify(j,g);S&&(S=`?${S}`);let T=x(h.url);return h.fragmentIdentifier&&(T=`#${u(h.fragmentIdentifier,g)}`),`${p}${S}${T}`},e.pick=(h,g,p)=>{p=Object.assign({parseFragmentIdentifier:!0},p);const{url:m,query:v,fragmentIdentifier:j}=e.parseUrl(h,p);return e.stringifyUrl({url:m,query:o(v,g),fragmentIdentifier:j},p)},e.exclude=(h,g,p)=>{const m=Array.isArray(g)?v=>!g.includes(v):(v,j)=>!g(v,j);return e.pick(h,m,p)}}(un)),un}var hn=zu();const lr=Fl,Wu={parseNumbers:!1,parseBooleans:!1},Yu={skipNull:!1,skipEmptyString:!1},Gu=(e,t)=>{var r,n;const{navigateMode:o="push",parseOptions:l,stringifyOptions:s}={},a=Object.assign(Object.assign({},Wu),l),i=Object.assign(Object.assign({},Yu),s),u=lr.useLocation(),f=(r=lr.useHistory)===null||r===void 0?void 0:r.call(lr),d=(n=lr.useNavigate)===null||n===void 0?void 0:n.call(lr),b=Ul(),x=R.useRef(typeof e=="function"?e():e||{}),C=R.useMemo(()=>hn.parse(u.search,a),[u.search]),E=R.useMemo(()=>Object.assign(Object.assign({},x.current),C),[C]);return[E,Dt(h=>{const g=typeof h=="function"?h(E):h;b(),f&&f[o]({hash:u.hash,search:hn.stringify(Object.assign(Object.assign({},C),g),i)||"?"},u.state),d&&d({hash:u.hash,search:hn.stringify(Object.assign(Object.assign({},C),g),i)||"?"},{replace:o==="replace",state:u.state})})]};var Ot={},cr={},gn={exports:{}},bn={},ds;function ia(){if(ds)return bn;ds=1;function e(g){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},e(g)}function t(g,p,m){return Object.defineProperty(g,"prototype",{writable:!1}),g}function r(g,p){if(!(g instanceof p))throw new TypeError("Cannot call a class as a function")}function n(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(p&&p.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),p&&o(g,p)}function o(g,p){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,j){return v.__proto__=j,v},o(g,p)}function l(g){var p=i();return function(){var v=u(g),j;if(p){var S=u(this).constructor;j=Reflect.construct(v,arguments,S)}else j=v.apply(this,arguments);return s(this,j)}}function s(g,p){if(p&&(e(p)==="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a(g)}function a(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function i(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function u(g){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(m){return m.__proto__||Object.getPrototypeOf(m)},u(g)}var f={},d,b;function x(g,p,m){m||(m=Error);function v(S,T,k){return typeof p=="string"?p:p(S,T,k)}var j=function(S){n(k,S);var T=l(k);function k(_,N,F){var K;return r(this,k),K=T.call(this,v(_,N,F)),K.code=g,K}return t(k)}(m);f[g]=j}function C(g,p){if(Array.isArray(g)){var m=g.length;return g=g.map(function(v){return String(v)}),m>2?"one of ".concat(p," ").concat(g.slice(0,m-1).join(", "),", or ")+g[m-1]:m===2?"one of ".concat(p," ").concat(g[0]," or ").concat(g[1]):"of ".concat(p," ").concat(g[0])}else return"of ".concat(p," ").concat(String(g))}function E(g,p,m){return g.substr(0,p.length)===p}function w(g,p,m){return(m===void 0||m>g.length)&&(m=g.length),g.substring(m-p.length,m)===p}function h(g,p,m){return typeof m!="number"&&(m=0),m+p.length>g.length?!1:g.indexOf(p,m)!==-1}return x("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),x("ERR_INVALID_ARG_TYPE",function(g,p,m){d===void 0&&(d=oo()),d(typeof g=="string","'name' must be a string");var v;typeof p=="string"&&E(p,"not ")?(v="must not be",p=p.replace(/^not /,"")):v="must be";var j;if(w(g," argument"))j="The ".concat(g," ").concat(v," ").concat(C(p,"type"));else{var S=h(g,".")?"property":"argument";j='The "'.concat(g,'" ').concat(S," ").concat(v," ").concat(C(p,"type"))}return j+=". Received type ".concat(e(m)),j},TypeError),x("ERR_INVALID_ARG_VALUE",function(g,p){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";b===void 0&&(b=gr());var v=b.inspect(p);return v.length>128&&(v="".concat(v.slice(0,128),"...")),"The argument '".concat(g,"' ").concat(m,". Received ").concat(v)},TypeError),x("ERR_INVALID_RETURN_VALUE",function(g,p,m){var v;return m&&m.constructor&&m.constructor.name?v="instance of ".concat(m.constructor.name):v="type ".concat(e(m)),"Expected ".concat(g,' to be returned from the "').concat(p,'"')+" function but got ".concat(v,".")},TypeError),x("ERR_MISSING_ARGS",function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];d===void 0&&(d=oo()),d(p.length>0,"At least one arg needs to be specified");var v="The ",j=p.length;switch(p=p.map(function(S){return'"'.concat(S,'"')}),j){case 1:v+="".concat(p[0]," argument");break;case 2:v+="".concat(p[0]," and ").concat(p[1]," arguments");break;default:v+=p.slice(0,j-1).join(", "),v+=", and ".concat(p[j-1]," arguments");break}return"".concat(v," must be specified")},TypeError),bn.codes=f,bn}var yn,ps;function Zu(){if(ps)return yn;ps=1;function e(D,B){var G=Object.keys(D);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(D);B&&(W=W.filter(function(Q){return Object.getOwnPropertyDescriptor(D,Q).enumerable})),G.push.apply(G,W)}return G}function t(D){for(var B=1;B<arguments.length;B++){var G=arguments[B]!=null?arguments[B]:{};B%2?e(Object(G),!0).forEach(function(W){r(D,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(G)):e(Object(G)).forEach(function(W){Object.defineProperty(D,W,Object.getOwnPropertyDescriptor(G,W))})}return D}function r(D,B,G){return B=s(B),B in D?Object.defineProperty(D,B,{value:G,enumerable:!0,configurable:!0,writable:!0}):D[B]=G,D}function n(D,B){if(!(D instanceof B))throw new TypeError("Cannot call a class as a function")}function o(D,B){for(var G=0;G<B.length;G++){var W=B[G];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(D,s(W.key),W)}}function l(D,B,G){return B&&o(D.prototype,B),Object.defineProperty(D,"prototype",{writable:!1}),D}function s(D){var B=a(D,"string");return g(B)==="symbol"?B:String(B)}function a(D,B){if(g(D)!=="object"||D===null)return D;var G=D[Symbol.toPrimitive];if(G!==void 0){var W=G.call(D,B);if(g(W)!=="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(D)}function i(D,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(B&&B.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),B&&w(D,B)}function u(D){var B=C();return function(){var W=h(D),Q;if(B){var A=h(this).constructor;Q=Reflect.construct(W,arguments,A)}else Q=W.apply(this,arguments);return f(this,Q)}}function f(D,B){if(B&&(g(B)==="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(D)}function d(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function b(D){var B=typeof Map=="function"?new Map:void 0;return b=function(W){if(W===null||!E(W))return W;if(typeof W!="function")throw new TypeError("Super expression must either be null or a function");if(typeof B<"u"){if(B.has(W))return B.get(W);B.set(W,Q)}function Q(){return x(W,arguments,h(this).constructor)}return Q.prototype=Object.create(W.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),w(Q,W)},b(D)}function x(D,B,G){return C()?x=Reflect.construct.bind():x=function(Q,A,I){var L=[null];L.push.apply(L,A);var H=Function.bind.apply(Q,L),M=new H;return I&&w(M,I.prototype),M},x.apply(null,arguments)}function C(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function E(D){return Function.toString.call(D).indexOf("[native code]")!==-1}function w(D,B){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(W,Q){return W.__proto__=Q,W},w(D,B)}function h(D){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},h(D)}function g(D){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},g(D)}var p=gr(),m=p.inspect,v=ia(),j=v.codes.ERR_INVALID_ARG_TYPE;function S(D,B,G){return(G===void 0||G>D.length)&&(G=D.length),D.substring(G-B.length,G)===B}function T(D,B){if(B=Math.floor(B),D.length==0||B==0)return"";var G=D.length*B;for(B=Math.floor(Math.log(B)/Math.log(2));B;)D+=D,B--;return D+=D.substring(0,G-D.length),D}var k="",_="",N="",F="",K={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},ne=10;function te(D){var B=Object.keys(D),G=Object.create(Object.getPrototypeOf(D));return B.forEach(function(W){G[W]=D[W]}),Object.defineProperty(G,"message",{value:D.message}),G}function ge(D){return m(D,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Se(D,B,G){var W="",Q="",A=0,I="",L=!1,H=ge(D),M=H.split(`
|
|
2
2
|
`),q=ge(B).split(`
|
|
3
3
|
`),Z=0,oe="";if(G==="strictEqual"&&g(D)==="object"&&g(B)==="object"&&D!==null&&B!==null&&(G="strictEqualObject"),M.length===1&&q.length===1&&M[0]!==q[0]){var pe=M[0].length+q[0].length;if(pe<=ne){if((g(D)!=="object"||D===null)&&(g(B)!=="object"||B===null)&&(D!==0||B!==0))return"".concat(K[G],`
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as P,V as E,A as C,j as e,Z as W,C as j,cG as I,K as T,w as k,H as u,aH as S,u as U,x as v,ar as N,af as R}from"./index-
|
|
1
|
+
import{r as P,V as E,A as C,j as e,Z as W,C as j,cG as I,K as T,w as k,H as u,aH as S,u as U,x as v,ar as N,af as R}from"./index-CyYCs6Na.js";import{w as b}from"./wrap-locale-Crvlfq9n.js";import{g as L}from"./get-safe-url-DMzSWw8A.js";import"./index-DOuT_eWr.js";function H({SessionContext:n,webWalletUrl:a,onSuccess:r}){const{api:o,session:t}=P.useContext(n),{t:s,locale:g}=E(),h=C(),{searchParams:l}=new URL(window.location.href),p=l.get("redirect"),f=async(c,w)=>{r(c,w),await t.refresh(),u.success(s("exchangePassport.success")),setTimeout(()=>{if(p){const i=decodeURIComponent(p);i.startsWith(S.WELLKNOWN_SERVICE_PATH_PREFIX)?h(i,{replace:!0}):window.location.href=L(i)}else window.location.href=window.env.pathPrefix||window.env.apiPrefix||"/"},3e3)},m=c=>{u.error(c.message)},d={},x=l.get("componentId");return x&&(d.componentId=x),t.loading?e.jsx(W,{children:e.jsx(j,{})}):e.jsx(I,{did:window?.blocklet?.appPid||window?.env?.appPid,children:e.jsx(T,{sx:{maxWidth:"100%",height:"100%"},children:e.jsx(k,{popup:!0,open:!0,className:"connect",action:"exchange-passport",checkFn:o.get,checkTimeout:10*60*1e3,webWalletUrl:a,onSuccess:f,onError:m,locale:g,messages:{title:s("exchangePassport.dialog.title"),scan:s("exchangePassport.dialog.scan"),confirm:s("exchangePassport.dialog.confirm"),success:s("exchangePassport.dialog.success")},extraParams:d,extraContent:null,hideCloseButton:!0})})})}const K=b(H);function V(){const{info:n}=U(),a=v(n),r=(o,t)=>{o.sessionToken&&R(t(o.sessionToken))};return e.jsx(K,{SessionContext:N,webWalletUrl:a,onSuccess:r})}export{V as default};
|