@abtnode/webapp 1.16.29-beta-112566d5 → 1.16.29-next-680cf137
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/{Add-LTC9ZPHh.js → Add-CBlI6OP_.js} +1 -1
- package/dist/assets/{ArrowDropDown-B9TabCUQ.js → ArrowDropDown-_NUZMAs3.js} +1 -1
- package/dist/assets/{Autocomplete-DA6il_1i.js → Autocomplete-B72ZNhpa.js} +1 -1
- package/dist/assets/{Breadcrumbs-Ch6zvYxu.js → Breadcrumbs-D-zIyMgq.js} +1 -1
- package/dist/assets/{ButtonGroup-reI4zw37.js → ButtonGroup-By_ymyXi.js} +1 -1
- package/dist/assets/{CheckCircle-ColTEZil.js → CheckCircle-DFcLtmlR.js} +1 -1
- package/dist/assets/{ChevronLeft-n-Lu674N.js → ChevronLeft-fo4GMv_v.js} +1 -1
- package/dist/assets/{ChevronRight-BQAiuHlI.js → ChevronRight-CTMwG0CZ.js} +1 -1
- package/dist/assets/{Close-BHCZ0Bw1.js → Close-C7JfjION.js} +1 -1
- package/dist/assets/{Delete-CUte0jEQ.js → Delete-DP2Kbw6K.js} +1 -1
- package/dist/assets/DeleteOutline-B8oYxNwP.js +1 -0
- package/dist/assets/DeleteOutline-DRdvA-Zf.js +1 -0
- package/dist/assets/{Done-Z8bUrs-4.js → Done-tC1zTTTI.js} +1 -1
- package/dist/assets/{Edit-CAjWk028.js → Edit-BE1ZZ-Tm.js} +1 -1
- package/dist/assets/{EditIcon-5cOXjWt1.js → EditIcon-8lCGiLnt.js} +1 -1
- package/dist/assets/{ExpandMore-D_XvdPjT.js → ExpandMore-3RzpbVTz.js} +1 -1
- package/dist/assets/{FilterList-BY5T-hLB.js → FilterList-Do3l0qfw.js} +1 -1
- package/dist/assets/{Google-8ss7z7oB.js → Google-CIgaEutQ.js} +1 -1
- package/dist/assets/{Https-CRlx_3vN.js → Https-BE0YR8cf.js} +1 -1
- package/dist/assets/{InputAdornment-C1r6p7SP.js → InputAdornment-DwuVDGhs.js} +1 -1
- package/dist/assets/{InputLabel-CExB3j6D.js → InputLabel-D6AZ_TXn.js} +1 -1
- package/dist/assets/{LastPage-BlukH42P.js → LastPage-DFR_wWVB.js} +1 -1
- package/dist/assets/{Launch-yLPtDPJO.js → Launch-CouSgez_.js} +1 -1
- package/dist/assets/{Link-CYdb8X6z.js → Link-DyVx2epM.js} +1 -1
- package/dist/assets/{LoadingButton-Cgv6BHxA.js → LoadingButton-CXpu1MEX.js} +1 -1
- package/dist/assets/{LockIcon-BrZi13Aj.js → LockIcon-DVrS5iFD.js} +1 -1
- package/dist/assets/{Loop-BZATCgNU.js → Loop-BALLXtEO.js} +1 -1
- package/dist/assets/{MoreVert-NYc6koTI.js → MoreVert-B3whUcSg.js} +1 -1
- package/dist/assets/{Pagination-Bpr_MZG3.js → Pagination-DDYKKK02.js} +1 -1
- package/dist/assets/{Public-DJVLXFlr.js → Public-CNDJTj5P.js} +1 -1
- package/dist/assets/{SchemaReference.es-CjPEyQC-.js → SchemaReference.es-cc9zlDut.js} +1 -1
- package/dist/assets/{Search-Dz7VM7PV.js → Search-B8Ey1Xi7.js} +1 -1
- package/dist/assets/{Select-Bmr7GD2T.js → Select-BFdUN7Gy.js} +1 -1
- package/dist/assets/{Skeleton-OnJKCtYu.js → Skeleton-Bq-LHi-2.js} +1 -1
- package/dist/assets/{Slider-CGhiUOe5.js → Slider-DJ5A6VX9.js} +1 -1
- package/dist/assets/{Stepper-CpM3LrYF.js → Stepper-piTxdKQU.js} +1 -1
- package/dist/assets/{TextField-BtpuNQ33.js → TextField-DMD0bhJ9.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-BoN6aVCj.js → ToggleButtonGroup-6WK6LBLt.js} +1 -1
- package/dist/assets/{ViewList-Cw1uswUG.js → ViewList-CJj9MHYa.js} +1 -1
- package/dist/assets/{actions-DGOwZ57C.js → actions-B8oxTC01.js} +1 -1
- package/dist/assets/{actions-634dtGmR.js → actions-CXBa1BBO.js} +1 -1
- package/dist/assets/{agreement-C6HTWVte.js → agreement-831LxBXw.js} +8 -8
- package/dist/assets/api-UR4kvn9E.js +1 -0
- package/dist/assets/{app-avatar-B_rQHqOY.js → app-avatar-BQQaDhpx.js} +1 -1
- package/dist/assets/{audit-logs-BzdTb6u7.js → audit-logs-M6VjO6ZY.js} +1 -1
- package/dist/assets/blocklet-ChPmEIKa.js +1 -0
- package/dist/assets/{brace-fold.es-D_r4-J2g.js → brace-fold.es-CRJ6R1Jd.js} +1 -1
- package/dist/assets/bundle-avatar-CELq2peD.js +1 -0
- package/dist/assets/{chart-D7fTlbH5.js → chart-XLU84wBc.js} +1 -1
- package/dist/assets/{click-to-copy-BwIQhcuz.js → click-to-copy-Crhp_-Y4.js} +1 -1
- package/dist/assets/{closebrackets.es-BpVvbcYW.js → closebrackets.es-CG2CDdUo.js} +1 -1
- package/dist/assets/{codemirror.es-BvooWNLt.js → codemirror.es-C8dnT91E.js} +1 -1
- package/dist/assets/{comment.es-BiPY7IRp.js → comment.es-jAc-u026.js} +1 -1
- package/dist/assets/{config-navigation-eG4f_Oyq.js → config-navigation-DPgP8Sak.js} +5 -5
- package/dist/assets/{delete-confirm-I7gjtI2L.js → delete-confirm-lQkwnGTS.js} +1 -1
- package/dist/assets/{detail-BF4hjmdI.js → detail-U0KQ2egr.js} +3 -3
- package/dist/assets/{dialog.es-B2-FUZME.js → dialog.es-Dclyb7Pn.js} +1 -1
- package/dist/assets/{download-rpw9Qgoj.js → download-CQ8vxrab.js} +1 -1
- package/dist/assets/{foldgutter.es-8iFRTP0a.js → foldgutter.es-DkUp93ad.js} +1 -1
- package/dist/assets/getValidReactChildren-5uFkq4GS.js +1 -0
- package/dist/assets/{hint.es-CHvxg9mK.js → hint.es-BsuiAFA7.js} +1 -1
- package/dist/assets/{hint.es2-hI3iweAO.js → hint.es2-CkrTTZi4.js} +1 -1
- package/dist/assets/{iframe-BqS-rkNh.js → iframe-CVrBSWYD.js} +1 -1
- package/dist/assets/{index-iGKrAz05.js → index-5FtPkeAB.js} +3 -3
- package/dist/assets/{index-D5Rsk7dq.js → index-5SVf0tFY.js} +1 -1
- package/dist/assets/{index-CUmTKs9Z.js → index-B3Zt0_35.js} +10 -10
- package/dist/assets/{index-D-L4Ck2v.js → index-B8C4pOOu.js} +1 -1
- package/dist/assets/{index-CroucXQb.js → index-B9dsKJcE.js} +1 -1
- package/dist/assets/index-BHOFu69h.js +1 -0
- package/dist/assets/{index-C3DKd4Ro.js → index-BNjhH_d8.js} +1 -1
- package/dist/assets/{index-Binus2lr.js → index-BO1fRvMf.js} +1 -1
- package/dist/assets/index-BOuMxb3Q.js +268 -0
- package/dist/assets/{index-Dww51D0I.js → index-BPnSwJ1l.js} +1 -1
- package/dist/assets/index-BTZWTFSn.js +11 -0
- package/dist/assets/{index-Dn-_3zh6.js → index-BXNB-HAQ.js} +1 -1
- package/dist/assets/{index--nbglgQ3.js → index-B_IM460j.js} +1 -1
- package/dist/assets/{index-B46J_78A.js → index-BcX9aNO0.js} +1 -1
- package/dist/assets/{index-DkiVDcrH.js → index-BsBUGa5J.js} +1 -1
- package/dist/assets/{index-BqAzzrC8.js → index-Bxr0QU8m.js} +1 -1
- package/dist/assets/{index-CblMKkQZ.js → index-C-ESGRv-.js} +1 -1
- package/dist/assets/{index-BMAflILV.js → index-C2a0vC_a.js} +1 -1
- package/dist/assets/index-C9KBqEgO.js +21 -0
- package/dist/assets/{index-C1sxwK1q.js → index-CC1ndwks.js} +167 -167
- package/dist/assets/index-CC1qLncJ.js +344 -0
- package/dist/assets/{index-BkAFfbQ9.js → index-CF5rsCOW.js} +1 -1
- package/dist/assets/{index-CiOtSWYB.js → index-CRb7tyay.js} +1 -1
- package/dist/assets/{index-Ca4ojQR0.js → index-CXyn4xMF.js} +5 -5
- package/dist/assets/{index-BNcA--Hd.js → index-C_6P8rFc.js} +66 -35
- package/dist/assets/{index-BJ5g3x0B.js → index-CgdUe9yu.js} +1 -1
- package/dist/assets/index-Cgk3wbOm.js +54 -0
- package/dist/assets/{index-CpP8o0B-.js → index-CmhE_K0y.js} +1 -1
- package/dist/assets/{index-G-HOuVIA.js → index-CnrdD6WK.js} +1 -1
- package/dist/assets/{index-Dp_bcKBe.js → index-Cuo7-0Cq.js} +1 -1
- package/dist/assets/{index-BahC2Tvl.js → index-D1iFHNgi.js} +1 -1
- package/dist/assets/{index-BIBIrwyW.js → index-DS6F_SJ9.js} +1 -1
- package/dist/assets/{index-i7GCH6dr.js → index-DVV4MjHu.js} +1 -1
- package/dist/assets/{index-KlCiTQS2.js → index-DVdaomTJ.js} +3 -3
- package/dist/assets/{index-CKd5FqHo.js → index-DXsbagZE.js} +1 -1
- package/dist/assets/{index-D5dR4ANx.js → index-DYd4EkOT.js} +1 -1
- package/dist/assets/{index-DKQUFPxk.js → index-DYnnB-61.js} +1 -1
- package/dist/assets/{index-CzSKzhki.js → index-DujqUEqx.js} +2 -2
- package/dist/assets/{index-BAQzBJFH.js → index-DwxhJUlf.js} +3 -3
- package/dist/assets/{index-C_7vG059.js → index-DzxtBPCC.js} +1 -1
- package/dist/assets/{index-BOmHLMq9.js → index-HzScigWU.js} +1 -1
- package/dist/assets/{index-C8ojF8vN.js → index-m_K8eAfk.js} +1 -1
- package/dist/assets/{index-CD_6QFg_.js → index-xOV9jJH3.js} +1 -1
- package/dist/assets/{index-DHoU0zZM.js → index-yKeCR3QS.js} +7 -7
- package/dist/assets/{index-B03uYmVa.js → index-yzdWHDuH.js} +1 -1
- package/dist/assets/{index.es-DYaTMj-N.js → index.es-Cn8AWkE8.js} +1 -1
- package/dist/assets/{index.esm-Bm9YBLeo.js → index.esm-BTj_KCwg.js} +1 -1
- package/dist/assets/{info-addon.es-Do7YC0D2.js → info-addon.es-CLwqL8YZ.js} +1 -1
- package/dist/assets/{info.es-CFNCQt9o.js → info.es-CnFozSp1.js} +1 -1
- package/dist/assets/{install-from-url-BjHwxVqE.js → install-from-url-BARZDCTT.js} +1 -1
- package/dist/assets/{invitation-CeRy7vzg.js → invitation-BVEDeXPr.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-CQJCYqAH.js → is-path-prefix-equal-Cbnwy2Yf.js} +1 -1
- package/dist/assets/{isEqual-BsT1dZPE.js → isEqual-BbNuqCAe.js} +1 -1
- package/dist/assets/{item-ERkcgOMO.js → item-BCeOssCF.js} +1 -1
- package/dist/assets/{javascript.es-CpC9TJXL.js → javascript.es-z17Y7cic.js} +1 -1
- package/dist/assets/{jump-to-line.es-CylECZ7R.js → jump-to-line.es-CG-VsgE6.js} +1 -1
- package/dist/assets/{jump.es-DLrluqHg.js → jump.es-CQ4ic2oQ.js} +1 -1
- package/dist/assets/{line-C_2Hrpy1.js → line-C1QR7BHZ.js} +3 -3
- package/dist/assets/{lint.es-BKML4shq.js → lint.es-D-MQT4TZ.js} +1 -1
- package/dist/assets/{lint.es2-BF1HKCYF.js → lint.es2-DXCGvGBZ.js} +1 -1
- package/dist/assets/{lint.es3-C2QSNF0z.js → lint.es3-g-aPmIS2.js} +1 -1
- package/dist/assets/{list-header-QjKUcFTw.js → list-header-C-NFaGBI.js} +1 -1
- package/dist/assets/{log-CJHqgb2_.js → log-T5nWDHZg.js} +1 -1
- package/dist/assets/{lottie-D3czc7v1.js → lottie-DR63dhlr.js} +1 -1
- package/dist/assets/{matchbrackets.es-e9aBYOv_.js → matchbrackets.es-BHV7ImE9.js} +1 -1
- package/dist/assets/{memory-CsXj8UaO.js → memory-C2Ggp1ds.js} +1 -1
- package/dist/assets/{mode.es-5cZhDtkZ.js → mode.es-DjMjtDNl.js} +1 -1
- package/dist/assets/{mode.es2-CodDnKLI.js → mode.es2-DTrAq6aA.js} +1 -1
- package/dist/assets/{mode.es3-BuILqhlX.js → mode.es3-CeaHK4Cx.js} +1 -1
- package/dist/assets/{onlineParser.es-C6-JEN2E.js → onlineParser.es-EXxvS9b3.js} +1 -1
- package/dist/assets/{overview-DAw_INYh.js → overview-B4FZNinL.js} +2 -2
- package/dist/assets/react-DCf5_sK9.js +379 -0
- package/dist/assets/{redux-JVkClYgC.js → redux-CBs4zzpF.js} +1 -1
- package/dist/assets/{runtime-W4J04CkM.js → runtime-OYXEkxpl.js} +1 -1
- package/dist/assets/{search.es-bB_x3JL4.js → search.es-BgquH9xr.js} +1 -1
- package/dist/assets/{searchcursor.es-DgL4C9GF.js → searchcursor.es-CQvA3zpZ.js} +1 -1
- package/dist/assets/service-C2bAs8-4.js +1 -0
- package/dist/assets/{shorten-label-9iEtol8i.js → shorten-label-u7BOpbFf.js} +1 -1
- package/dist/assets/{show-hint.es-CTIxfu4n.js → show-hint.es-DS02BUMX.js} +1 -1
- package/dist/assets/{slicedToArray-C-KIkXYs.js → slicedToArray-CXKCCuoW.js} +2 -2
- package/dist/assets/{spaces-BDlrJxSc.js → spaces-DAIyizkR.js} +1 -1
- package/dist/assets/{sublime.es-BIpvOaG_.js → sublime.es-CNkJDB7Y.js} +1 -1
- package/dist/assets/{switch-control-BiRMcVKp.js → switch-control-B17GyPSA.js} +1 -1
- package/dist/assets/{table-icons-Bx8jlz8p.js → table-icons-C9acqBAz.js} +2 -2
- package/dist/assets/{tag-BsLtzNgc.js → tag-CCXE4PlV.js} +1 -1
- package/dist/assets/{team-Ct35NqwR.js → team-BSlyvC6c.js} +1 -1
- package/dist/assets/{toUpper-DV-JI2EJ.js → toUpper-BVSXWMpU.js} +1 -1
- package/dist/assets/{traffic-BEKDCWfv.js → traffic-CQoQSkkE.js} +5 -5
- package/dist/assets/ua-parser-CxBhcPmn.js +1 -0
- package/dist/assets/{url-evaluation-Ctc4DSd9.js → url-evaluation-l10Af9J1.js} +1 -1
- package/dist/assets/{url-join-4YCGlq9R.js → url-join-Byro3u2f.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-B1om2dOQ.js → use-blocklet-info-for-connect-did-spaces-1vbzgKN4.js} +1 -1
- package/dist/assets/{useLocalStorage-02uWRCTE.js → useLocalStorage-CBI6wbJu.js} +1 -1
- package/dist/assets/{util-Bl1tgqEu.js → util-BO7B0GFb.js} +1 -1
- package/dist/assets/{wait-container-CUarPEd7.js → wait-container-DNpXoa46.js} +1 -1
- package/dist/assets/{withStyles-mwdAF397.js → withStyles-CDKZ5MjH.js} +1 -1
- package/dist/assets/{wrap-locale-DDhOh8hH.js → wrap-locale-CjBWx_ua.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/DeleteOutline-Aff6fJia.js +0 -1
- package/dist/assets/api-Bo8RrpVh.js +0 -1
- package/dist/assets/blocklet-CtCpIFeQ.js +0 -1
- package/dist/assets/bundle-avatar-Ci6-oNkL.js +0 -1
- package/dist/assets/getValidReactChildren-9TX6zfai.js +0 -1
- package/dist/assets/index-B3KTzQCX.js +0 -21
- package/dist/assets/index-CX7wbZNb.js +0 -288
- package/dist/assets/index-CvBzQQ4d.js +0 -278
- package/dist/assets/index-Dv4oZdvT.js +0 -54
- package/dist/assets/index-PpzEIdrF.js +0 -1
- package/dist/assets/react-BzW-kb6J.js +0 -56
- package/dist/assets/resource-dialog-D78t25J3.js +0 -57
- package/dist/assets/service-UeJj__8r.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bQ as vt,bR as mt,bL as X,bM as jt,bY as Ht,bN as p,r as d,bS as St,bP as at,bU as $,j as u,bV as gt,d1 as se,d2 as Ot,d3 as At,d4 as Xt,bT as st,bc as ae,d5 as ft,d6 as ie,s as ce,d7 as L,P as z}from"./index-C1sxwK1q.js";import{K as de,a as ue}from"./Delete-CUte0jEQ.js";let Y;function _t(){if(Y)return Y;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),Y="reverse",t.scrollLeft>0?Y="default":(t.scrollLeft=1,t.scrollLeft===0&&(Y="negative")),document.body.removeChild(t),Y}function be(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(_t()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function pe(t){return mt("MuiTab",t)}const fe=vt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),k=fe,he=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ve=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:n,icon:a,label:v,selected:h,disabled:b}=t,g={root:["root",a&&v&&"labelIcon",`textColor${Ht(l)}`,s&&"fullWidth",n&&"wrapped",h&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return gt(g,pe,e)},me=X(jt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${Ht(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped,{[`& .${k.iconWrapper}`]:e.iconWrapper}]}})(({theme:t,ownerState:e})=>p({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${k.iconWrapper}`]:p({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${k.selected}`]:{opacity:1},[`&.${k.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${k.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${k.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${k.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${k.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),Se=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:v=!1,fullWidth:h,icon:b,iconPosition:g="top",indicator:B,label:C,onChange:m,onClick:T,onFocus:F,selected:w,selectionFollowsFocus:x,textColor:_="inherit",value:I,wrapped:it=!1}=s,D=at(s,he),K=p({},s,{disabled:a,disableFocusRipple:v,selected:w,icon:!!b,iconPosition:g,label:!!C,fullWidth:h,textColor:_,wrapped:it}),q=ve(K),j=b&&C&&d.isValidElement(b)?d.cloneElement(b,{className:$(q.iconWrapper,b.props.className)}):b,tt=E=>{!w&&m&&m(E,I),T&&T(E)},U=E=>{x&&!w&&m&&m(E,I),F&&F(E)};return u.jsxs(me,p({focusRipple:!v,className:$(q.root,n),ref:l,role:"tab","aria-selected":w,disabled:a,onClick:tt,onFocus:U,ownerState:K,tabIndex:w?0:-1},D,{children:[g==="top"||g==="start"?u.jsxs(d.Fragment,{children:[j,C]}):u.jsxs(d.Fragment,{children:[C,j]}),B]}))}),xt=Se;function ge(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function xe(t,e,l,s={},n=()=>{}){const{ease:a=ge,duration:v=300}=s;let h=null;const b=e[t];let g=!1;const B=()=>{g=!0},C=m=>{if(g){n(new Error("Animation cancelled"));return}h===null&&(h=m);const T=Math.min(1,(m-h)/v);if(e[t]=a(T)*(l-b)+b,T>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(C)};return b===l?(n(new Error("Element already at target position")),B):(requestAnimationFrame(C),B)}const Ce=["onChange"],ye={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Be(t){const{onChange:e}=t,l=at(t,Ce),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return se(()=>{const v=Ot(()=>{const b=s.current;a(),b!==s.current&&e(s.current)}),h=At(n.current);return h.addEventListener("resize",v),()=>{v.clear(),h.removeEventListener("resize",v)}},[e]),d.useEffect(()=>{a(),e(s.current)},[e]),u.jsx("div",p({style:ye,ref:n},l))}function Te(t){return mt("MuiTabScrollButton",t)}const we=vt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Me=we,Re=["className","slots","slotProps","direction","orientation","disabled"],Ie=t=>{const{classes:e,orientation:l,disabled:s}=t;return gt({root:["root",l,s&&"disabled"]},Te,e)},Ee=X(jt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>p({width:40,flexShrink:0,opacity:.8,[`&.${Me.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),We=d.forwardRef(function(e,l){var s,n;const a=St({props:e,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:b={},direction:g}=a,B=at(a,Re),C=Xt(),m=p({isRtl:C},a),T=Ie(m),F=(s=h.StartScrollButtonIcon)!=null?s:de,w=(n=h.EndScrollButtonIcon)!=null?n:ue,x=st({elementType:F,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),_=st({elementType:w,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return u.jsx(Ee,p({component:"div",className:$(T.root,v),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:g==="left"?u.jsx(F,p({},x)):u.jsx(w,p({},_))}))}),ze=We;function Pe(t){return mt("MuiTabs",t)}const Ne=vt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ht=Ne,ke=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],kt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,$t=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,nt=(t,e,l)=>{let s=!1,n=l(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(t,n);else{n.focus();return}}},$e=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:v,scrollButtonsHideMobile:h,classes:b}=t;return gt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Pe,b)},Le=X("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${ht.scrollButtons}`]:e.scrollButtons},{[`& .${ht.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>p({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${ht.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Fe=X("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.scrollableY&&e.scrollableY]}})(({ownerState:t})=>p({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),je=X("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>p({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),He=X("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>p({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),Oe=X(Be)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Lt={},Ae=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTabs"}),n=ae(),a=Xt(),{"aria-label":v,"aria-labelledby":h,action:b,centered:g=!1,children:B,className:C,component:m="div",allowScrollButtonsMobile:T=!1,indicatorColor:F="primary",onChange:w,orientation:x="horizontal",ScrollButtonComponent:_=ze,scrollButtons:I="auto",selectionFollowsFocus:it,slots:D={},slotProps:K={},TabIndicatorProps:q={},TabScrollButtonProps:j={},textColor:tt="primary",value:U,variant:E="standard",visibleScrollbar:ct=!1}=s,Ut=at(s,ke),M=E==="scrollable",y=x==="vertical",G=y?"scrollTop":"scrollLeft",et=y?"top":"left",ot=y?"bottom":"right",dt=y?"clientHeight":"clientWidth",Q=y?"height":"width",H=p({},s,{component:m,allowScrollButtonsMobile:T,indicatorColor:F,orientation:x,vertical:y,scrollButtons:I,textColor:tt,variant:E,visibleScrollbar:ct,fixed:!M,hideScrollbar:M&&!ct,scrollableX:M&&!y,scrollableY:M&&y,centered:g&&!M,scrollButtonsHideMobile:!T}),P=$e(H),Yt=st({elementType:D.StartScrollButtonIcon,externalSlotProps:K.startScrollButtonIcon,ownerState:H}),Vt=st({elementType:D.EndScrollButtonIcon,externalSlotProps:K.endScrollButtonIcon,ownerState:H}),[yt,Kt]=d.useState(!1),[O,Bt]=d.useState(Lt),[Tt,Gt]=d.useState(!1),[wt,Qt]=d.useState(!1),[Mt,Jt]=d.useState(!1),[Rt,Zt]=d.useState({overflow:"hidden",scrollbarWidth:0}),It=new Map,W=d.useRef(null),A=d.useRef(null),Et=()=>{const o=W.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:be(o,a?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&U!==!1){const i=A.current.children;if(i.length>0){const f=i[It.get(U)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},J=ft(()=>{const{tabsMeta:o,tabMeta:r}=Et();let c=0,i;if(y)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=a?"right":"left",r&&o){const S=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(r[i]-o[i]+S)}const f={[i]:c,[Q]:r?r[Q]:0};if(isNaN(O[i])||isNaN(O[Q]))Bt(f);else{const S=Math.abs(O[i]-f[i]),R=Math.abs(O[Q]-f[Q]);(S>=1||R>=1)&&Bt(f)}}),ut=(o,{animation:r=!0}={})=>{r?xe(G,W.current,o,{duration:n.transitions.duration.standard}):W.current[G]=o},Wt=o=>{let r=W.current[G];y?r+=o:(r+=o*(a?-1:1),r*=a&&_t()==="reverse"?-1:1),ut(r)},zt=()=>{const o=W.current[dt];let r=0;const c=Array.from(A.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(r+f[dt]>o){i===0&&(r=o);break}r+=f[dt]}return r},te=()=>{Wt(-1*zt())},ee=()=>{Wt(zt())},oe=d.useCallback(o=>{Zt({overflow:null,scrollbarWidth:o})},[]),le=()=>{const o={};o.scrollbarSizeListener=M?u.jsx(Oe,{onChange:oe,className:$(P.scrollableX,P.hideScrollbar)}):null;const c=M&&(I==="auto"&&(Tt||wt)||I===!0);return o.scrollButtonStart=c?u.jsx(_,p({slots:{StartScrollButtonIcon:D.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Yt},orientation:x,direction:a?"right":"left",onClick:te,disabled:!Tt},j,{className:$(P.scrollButtons,j.className)})):null,o.scrollButtonEnd=c?u.jsx(_,p({slots:{EndScrollButtonIcon:D.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Vt},orientation:x,direction:a?"left":"right",onClick:ee,disabled:!wt},j,{className:$(P.scrollButtons,j.className)})):null,o},Pt=ft(o=>{const{tabsMeta:r,tabMeta:c}=Et();if(!(!c||!r)){if(c[et]<r[et]){const i=r[G]+(c[et]-r[et]);ut(i,{animation:o})}else if(c[ot]>r[ot]){const i=r[G]+(c[ot]-r[ot]);ut(i,{animation:o})}}}),lt=ft(()=>{M&&I!==!1&&Jt(!Mt)});d.useEffect(()=>{const o=Ot(()=>{W.current&&J()});let r;const c=S=>{S.forEach(R=>{R.removedNodes.forEach(Z=>{var N;(N=r)==null||N.unobserve(Z)}),R.addedNodes.forEach(Z=>{var N;(N=r)==null||N.observe(Z)})}),o(),lt()},i=At(W.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(A.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(A.current,{childList:!0})),()=>{var S,R;o.clear(),i.removeEventListener("resize",o),(S=f)==null||S.disconnect(),(R=r)==null||R.disconnect()}},[J,lt]),d.useEffect(()=>{const o=Array.from(A.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&I!==!1){const c=o[0],i=o[r-1],f={root:W.current,threshold:.99},S=pt=>{Gt(!pt[0].isIntersecting)},R=new IntersectionObserver(S,f);R.observe(c);const Z=pt=>{Qt(!pt[0].isIntersecting)},N=new IntersectionObserver(Z,f);return N.observe(i),()=>{R.disconnect(),N.disconnect()}}},[M,I,Mt,B==null?void 0:B.length]),d.useEffect(()=>{Kt(!0)},[]),d.useEffect(()=>{J()}),d.useEffect(()=>{Pt(Lt!==O)},[Pt,O]),d.useImperativeHandle(b,()=>({updateIndicator:J,updateScrollButtons:lt}),[J,lt]);const Nt=u.jsx(He,p({},q,{className:$(P.indicator,q.className),ownerState:H,style:p({},O,q.style)}));let rt=0;const re=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?rt:o.props.value;It.set(r,rt);const c=r===U;return rt+=1,d.cloneElement(o,p({fullWidth:E==="fullWidth",indicator:c&&!yt&&Nt,selected:c,selectionFollowsFocus:it,onChange:w,textColor:tt,value:r},rt===1&&U===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),ne=o=>{const r=A.current,c=ie(r).activeElement;if(c.getAttribute("role")!=="tab")return;let f=x==="horizontal"?"ArrowLeft":"ArrowUp",S=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(f="ArrowRight",S="ArrowLeft"),o.key){case f:o.preventDefault(),nt(r,c,$t);break;case S:o.preventDefault(),nt(r,c,kt);break;case"Home":o.preventDefault(),nt(r,null,kt);break;case"End":o.preventDefault(),nt(r,null,$t);break}},bt=le();return u.jsxs(Le,p({className:$(P.root,C),ownerState:H,ref:l,as:m},Ut,{children:[bt.scrollButtonStart,bt.scrollbarSizeListener,u.jsxs(Fe,{className:P.scroller,ownerState:H,style:{overflow:Rt.overflow,[y?`margin${a?"Left":"Right"}`:"marginBottom"]:ct?void 0:-Rt.scrollbarWidth},ref:W,children:[u.jsx(je,{"aria-label":v,"aria-labelledby":h,"aria-orientation":x==="vertical"?"vertical":null,className:P.flexContainer,ownerState:H,onKeyDown:ne,ref:A,role:"tablist",children:re}),yt&&Nt]}),bt.scrollButtonEnd]}))}),Ct=Ae,Ft="index",V={tabs:`${Ft}-tabs`,tab:`${Ft}-tab`},Xe=ce(Ct)(({theme:t})=>({[`& .${V.tabs}`]:{},[`& .${V.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function Dt({tabs:t,current:e,onChange:l,...s}){return u.jsx(Ct,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:L.backgroundsBgComponent,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:L.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:L.lineBorderBase,color:L.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>u.jsx(xt,{className:V.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}Dt.propTypes={tabs:z.array.isRequired,current:z.string.isRequired,onChange:z.func.isRequired};function qt({tabs:t,current:e,onChange:l,...s}){return u.jsx(Ct,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{"&::after":{content:'""',display:"block",width:"100%",height:"1px",backgroundColor:L.strokeBorderStrong,bottom:0}},".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:L.foregroundsFgSubtile,fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:L.foregroundsFgBase}},".MuiTabs-indicator":{height:"1px",backgroundColor:L.foregroundsFgBase},...s.sx},children:t.map(n=>u.jsx(xt,{className:V.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}qt.propTypes={tabs:z.array.isRequired,current:z.string.isRequired,onChange:z.func.isRequired};function _e({tabs:t,current:e,onChange:l,...s}){return s.variant==="card"?u.jsx(Dt,{...s,tabs:t,current:e,onChange:l}):s.variant==="line"?u.jsx(qt,{...s,tabs:t,current:e,onChange:l}):u.jsx(Xe,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(n,a)=>l(a),indicatorColor:"primary",...s,className:[V.tabs,s.className||""].join(" "),children:t.map(n=>u.jsx(xt,{className:V.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}_e.propTypes={tabs:z.array.isRequired,current:z.string.isRequired,onChange:z.func.isRequired};export{_e as T,Ct as a,xt as b,ht as t};
|
|
1
|
+
import{bQ as vt,bR as mt,bL as X,bM as jt,bY as Ht,bN as p,r as d,bS as St,bP as at,bU as $,j as u,bV as gt,d1 as se,d2 as Ot,d3 as At,d4 as Xt,bT as st,bc as ae,d5 as ft,d6 as ie,s as ce,d7 as L,P as z}from"./index-CC1ndwks.js";import{K as de,a as ue}from"./Delete-DP2Kbw6K.js";let Y;function _t(){if(Y)return Y;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),Y="reverse",t.scrollLeft>0?Y="default":(t.scrollLeft=1,t.scrollLeft===0&&(Y="negative")),document.body.removeChild(t),Y}function be(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(_t()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function pe(t){return mt("MuiTab",t)}const fe=vt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),k=fe,he=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ve=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:n,icon:a,label:v,selected:h,disabled:b}=t,g={root:["root",a&&v&&"labelIcon",`textColor${Ht(l)}`,s&&"fullWidth",n&&"wrapped",h&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return gt(g,pe,e)},me=X(jt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${Ht(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped,{[`& .${k.iconWrapper}`]:e.iconWrapper}]}})(({theme:t,ownerState:e})=>p({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${k.iconWrapper}`]:p({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${k.selected}`]:{opacity:1},[`&.${k.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${k.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${k.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${k.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${k.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),Se=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:v=!1,fullWidth:h,icon:b,iconPosition:g="top",indicator:B,label:C,onChange:m,onClick:T,onFocus:F,selected:w,selectionFollowsFocus:x,textColor:_="inherit",value:I,wrapped:it=!1}=s,D=at(s,he),K=p({},s,{disabled:a,disableFocusRipple:v,selected:w,icon:!!b,iconPosition:g,label:!!C,fullWidth:h,textColor:_,wrapped:it}),q=ve(K),j=b&&C&&d.isValidElement(b)?d.cloneElement(b,{className:$(q.iconWrapper,b.props.className)}):b,tt=E=>{!w&&m&&m(E,I),T&&T(E)},U=E=>{x&&!w&&m&&m(E,I),F&&F(E)};return u.jsxs(me,p({focusRipple:!v,className:$(q.root,n),ref:l,role:"tab","aria-selected":w,disabled:a,onClick:tt,onFocus:U,ownerState:K,tabIndex:w?0:-1},D,{children:[g==="top"||g==="start"?u.jsxs(d.Fragment,{children:[j,C]}):u.jsxs(d.Fragment,{children:[C,j]}),B]}))}),xt=Se;function ge(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function xe(t,e,l,s={},n=()=>{}){const{ease:a=ge,duration:v=300}=s;let h=null;const b=e[t];let g=!1;const B=()=>{g=!0},C=m=>{if(g){n(new Error("Animation cancelled"));return}h===null&&(h=m);const T=Math.min(1,(m-h)/v);if(e[t]=a(T)*(l-b)+b,T>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(C)};return b===l?(n(new Error("Element already at target position")),B):(requestAnimationFrame(C),B)}const Ce=["onChange"],ye={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Be(t){const{onChange:e}=t,l=at(t,Ce),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return se(()=>{const v=Ot(()=>{const b=s.current;a(),b!==s.current&&e(s.current)}),h=At(n.current);return h.addEventListener("resize",v),()=>{v.clear(),h.removeEventListener("resize",v)}},[e]),d.useEffect(()=>{a(),e(s.current)},[e]),u.jsx("div",p({style:ye,ref:n},l))}function Te(t){return mt("MuiTabScrollButton",t)}const we=vt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Me=we,Re=["className","slots","slotProps","direction","orientation","disabled"],Ie=t=>{const{classes:e,orientation:l,disabled:s}=t;return gt({root:["root",l,s&&"disabled"]},Te,e)},Ee=X(jt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>p({width:40,flexShrink:0,opacity:.8,[`&.${Me.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),We=d.forwardRef(function(e,l){var s,n;const a=St({props:e,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:b={},direction:g}=a,B=at(a,Re),C=Xt(),m=p({isRtl:C},a),T=Ie(m),F=(s=h.StartScrollButtonIcon)!=null?s:de,w=(n=h.EndScrollButtonIcon)!=null?n:ue,x=st({elementType:F,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),_=st({elementType:w,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return u.jsx(Ee,p({component:"div",className:$(T.root,v),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:g==="left"?u.jsx(F,p({},x)):u.jsx(w,p({},_))}))}),ze=We;function Pe(t){return mt("MuiTabs",t)}const Ne=vt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ht=Ne,ke=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],kt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,$t=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,nt=(t,e,l)=>{let s=!1,n=l(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(t,n);else{n.focus();return}}},$e=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:v,scrollButtonsHideMobile:h,classes:b}=t;return gt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Pe,b)},Le=X("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${ht.scrollButtons}`]:e.scrollButtons},{[`& .${ht.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>p({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${ht.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Fe=X("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.scrollableY&&e.scrollableY]}})(({ownerState:t})=>p({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),je=X("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>p({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),He=X("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>p({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),Oe=X(Be)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Lt={},Ae=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTabs"}),n=ae(),a=Xt(),{"aria-label":v,"aria-labelledby":h,action:b,centered:g=!1,children:B,className:C,component:m="div",allowScrollButtonsMobile:T=!1,indicatorColor:F="primary",onChange:w,orientation:x="horizontal",ScrollButtonComponent:_=ze,scrollButtons:I="auto",selectionFollowsFocus:it,slots:D={},slotProps:K={},TabIndicatorProps:q={},TabScrollButtonProps:j={},textColor:tt="primary",value:U,variant:E="standard",visibleScrollbar:ct=!1}=s,Ut=at(s,ke),M=E==="scrollable",y=x==="vertical",G=y?"scrollTop":"scrollLeft",et=y?"top":"left",ot=y?"bottom":"right",dt=y?"clientHeight":"clientWidth",Q=y?"height":"width",H=p({},s,{component:m,allowScrollButtonsMobile:T,indicatorColor:F,orientation:x,vertical:y,scrollButtons:I,textColor:tt,variant:E,visibleScrollbar:ct,fixed:!M,hideScrollbar:M&&!ct,scrollableX:M&&!y,scrollableY:M&&y,centered:g&&!M,scrollButtonsHideMobile:!T}),P=$e(H),Yt=st({elementType:D.StartScrollButtonIcon,externalSlotProps:K.startScrollButtonIcon,ownerState:H}),Vt=st({elementType:D.EndScrollButtonIcon,externalSlotProps:K.endScrollButtonIcon,ownerState:H}),[yt,Kt]=d.useState(!1),[O,Bt]=d.useState(Lt),[Tt,Gt]=d.useState(!1),[wt,Qt]=d.useState(!1),[Mt,Jt]=d.useState(!1),[Rt,Zt]=d.useState({overflow:"hidden",scrollbarWidth:0}),It=new Map,W=d.useRef(null),A=d.useRef(null),Et=()=>{const o=W.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:be(o,a?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&U!==!1){const i=A.current.children;if(i.length>0){const f=i[It.get(U)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},J=ft(()=>{const{tabsMeta:o,tabMeta:r}=Et();let c=0,i;if(y)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=a?"right":"left",r&&o){const S=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(r[i]-o[i]+S)}const f={[i]:c,[Q]:r?r[Q]:0};if(isNaN(O[i])||isNaN(O[Q]))Bt(f);else{const S=Math.abs(O[i]-f[i]),R=Math.abs(O[Q]-f[Q]);(S>=1||R>=1)&&Bt(f)}}),ut=(o,{animation:r=!0}={})=>{r?xe(G,W.current,o,{duration:n.transitions.duration.standard}):W.current[G]=o},Wt=o=>{let r=W.current[G];y?r+=o:(r+=o*(a?-1:1),r*=a&&_t()==="reverse"?-1:1),ut(r)},zt=()=>{const o=W.current[dt];let r=0;const c=Array.from(A.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(r+f[dt]>o){i===0&&(r=o);break}r+=f[dt]}return r},te=()=>{Wt(-1*zt())},ee=()=>{Wt(zt())},oe=d.useCallback(o=>{Zt({overflow:null,scrollbarWidth:o})},[]),le=()=>{const o={};o.scrollbarSizeListener=M?u.jsx(Oe,{onChange:oe,className:$(P.scrollableX,P.hideScrollbar)}):null;const c=M&&(I==="auto"&&(Tt||wt)||I===!0);return o.scrollButtonStart=c?u.jsx(_,p({slots:{StartScrollButtonIcon:D.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Yt},orientation:x,direction:a?"right":"left",onClick:te,disabled:!Tt},j,{className:$(P.scrollButtons,j.className)})):null,o.scrollButtonEnd=c?u.jsx(_,p({slots:{EndScrollButtonIcon:D.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Vt},orientation:x,direction:a?"left":"right",onClick:ee,disabled:!wt},j,{className:$(P.scrollButtons,j.className)})):null,o},Pt=ft(o=>{const{tabsMeta:r,tabMeta:c}=Et();if(!(!c||!r)){if(c[et]<r[et]){const i=r[G]+(c[et]-r[et]);ut(i,{animation:o})}else if(c[ot]>r[ot]){const i=r[G]+(c[ot]-r[ot]);ut(i,{animation:o})}}}),lt=ft(()=>{M&&I!==!1&&Jt(!Mt)});d.useEffect(()=>{const o=Ot(()=>{W.current&&J()});let r;const c=S=>{S.forEach(R=>{R.removedNodes.forEach(Z=>{var N;(N=r)==null||N.unobserve(Z)}),R.addedNodes.forEach(Z=>{var N;(N=r)==null||N.observe(Z)})}),o(),lt()},i=At(W.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(A.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(A.current,{childList:!0})),()=>{var S,R;o.clear(),i.removeEventListener("resize",o),(S=f)==null||S.disconnect(),(R=r)==null||R.disconnect()}},[J,lt]),d.useEffect(()=>{const o=Array.from(A.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&I!==!1){const c=o[0],i=o[r-1],f={root:W.current,threshold:.99},S=pt=>{Gt(!pt[0].isIntersecting)},R=new IntersectionObserver(S,f);R.observe(c);const Z=pt=>{Qt(!pt[0].isIntersecting)},N=new IntersectionObserver(Z,f);return N.observe(i),()=>{R.disconnect(),N.disconnect()}}},[M,I,Mt,B==null?void 0:B.length]),d.useEffect(()=>{Kt(!0)},[]),d.useEffect(()=>{J()}),d.useEffect(()=>{Pt(Lt!==O)},[Pt,O]),d.useImperativeHandle(b,()=>({updateIndicator:J,updateScrollButtons:lt}),[J,lt]);const Nt=u.jsx(He,p({},q,{className:$(P.indicator,q.className),ownerState:H,style:p({},O,q.style)}));let rt=0;const re=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?rt:o.props.value;It.set(r,rt);const c=r===U;return rt+=1,d.cloneElement(o,p({fullWidth:E==="fullWidth",indicator:c&&!yt&&Nt,selected:c,selectionFollowsFocus:it,onChange:w,textColor:tt,value:r},rt===1&&U===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),ne=o=>{const r=A.current,c=ie(r).activeElement;if(c.getAttribute("role")!=="tab")return;let f=x==="horizontal"?"ArrowLeft":"ArrowUp",S=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(f="ArrowRight",S="ArrowLeft"),o.key){case f:o.preventDefault(),nt(r,c,$t);break;case S:o.preventDefault(),nt(r,c,kt);break;case"Home":o.preventDefault(),nt(r,null,kt);break;case"End":o.preventDefault(),nt(r,null,$t);break}},bt=le();return u.jsxs(Le,p({className:$(P.root,C),ownerState:H,ref:l,as:m},Ut,{children:[bt.scrollButtonStart,bt.scrollbarSizeListener,u.jsxs(Fe,{className:P.scroller,ownerState:H,style:{overflow:Rt.overflow,[y?`margin${a?"Left":"Right"}`:"marginBottom"]:ct?void 0:-Rt.scrollbarWidth},ref:W,children:[u.jsx(je,{"aria-label":v,"aria-labelledby":h,"aria-orientation":x==="vertical"?"vertical":null,className:P.flexContainer,ownerState:H,onKeyDown:ne,ref:A,role:"tablist",children:re}),yt&&Nt]}),bt.scrollButtonEnd]}))}),Ct=Ae,Ft="index",V={tabs:`${Ft}-tabs`,tab:`${Ft}-tab`},Xe=ce(Ct)(({theme:t})=>({[`& .${V.tabs}`]:{},[`& .${V.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function Dt({tabs:t,current:e,onChange:l,...s}){return u.jsx(Ct,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:L.backgroundsBgComponent,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:L.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:L.lineBorderBase,color:L.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>u.jsx(xt,{className:V.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}Dt.propTypes={tabs:z.array.isRequired,current:z.string.isRequired,onChange:z.func.isRequired};function qt({tabs:t,current:e,onChange:l,...s}){return u.jsx(Ct,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{"&::after":{content:'""',display:"block",width:"100%",height:"1px",backgroundColor:L.strokeBorderStrong,bottom:0}},".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:L.foregroundsFgSubtile,fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:L.foregroundsFgBase}},".MuiTabs-indicator":{height:"1px",backgroundColor:L.foregroundsFgBase},...s.sx},children:t.map(n=>u.jsx(xt,{className:V.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}qt.propTypes={tabs:z.array.isRequired,current:z.string.isRequired,onChange:z.func.isRequired};function _e({tabs:t,current:e,onChange:l,...s}){return s.variant==="card"?u.jsx(Dt,{...s,tabs:t,current:e,onChange:l}):s.variant==="line"?u.jsx(qt,{...s,tabs:t,current:e,onChange:l}):u.jsx(Xe,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(n,a)=>l(a),indicatorColor:"primary",...s,className:[V.tabs,s.className||""].join(" "),children:t.map(n=>u.jsx(xt,{className:V.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}_e.propTypes={tabs:z.array.isRequired,current:z.string.isRequired,onChange:z.func.isRequired};export{_e as T,Ct as a,xt as b,ht as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as y}from"./index-
|
|
1
|
+
import{g as y}from"./index-CC1ndwks.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var n=this._errors[r],o=n.message,a=(e[o]||0)+1;e[o]=a,a>=t&&(i=n,t=a)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in t)r[n]=t[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var n=r.randomize?Math.random()+1:1,o=Math.round(n*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,n){if(r instanceof Array&&(n=r,r=null),!n){n=[];for(var o in t)typeof t[o]=="function"&&n.push(o)}for(var a=0;a<n.length;a++){var s=n[a],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as p,c as ue,u as J,e as Pe,aE as Tr,j as e,F as T,aF as ln,aG as Mn,aH as Er,aI as cn,aJ as _t,aK as he,aL as xe,P as u,n as V,q as N,ad as ne,aM as dn,aN as Pr,aO as Ar,aP as Ir,A as le,Q as un,m as O,U as te,ax as pe,C as Y,J as ge,B as G,aQ as zn,K as de,O as ee,f as Dt,R as Bn,aR as Lr,aS as Or,aa as kr,aT as Fr,aU as Nr,aV as Ur,z as Wn,W as mn,T as fn,k as Q,aW as Rt,a as xt,S as ie,b as Je,aX as qn,aY as Hn,aZ as Kn,a_ as $r,a2 as Mr,a$ as zr,b0 as Br,b1 as Wr,b2 as qr,b3 as Hr,b4 as ze,a8 as Kr,d as Gn,M as Gr,b5 as Yr,aD as ut,a9 as mt,a6 as ft,b6 as Vr,a7 as yt,i as Yn,N as Xr,b7 as Qr,b8 as we,b9 as _e,ba as Jr,bb as Zr,D as Vn,w as vt,bc as ei,h as ti,at as pn,bd as ni,be as gn,aj as ri,bf as ii,bg as oi,bh as ai}from"./index-
|
|
1
|
+
import{r as p,c as ue,u as J,e as Pe,aE as Tr,j as e,F as T,aF as ln,aG as Mn,aH as Er,aI as cn,aJ as _t,aK as he,aL as xe,P as u,n as V,q as N,ad as ne,aM as dn,aN as Pr,aO as Ar,aP as Ir,A as le,Q as un,m as O,U as te,ax as pe,C as Y,J as ge,B as G,aQ as zn,K as de,O as ee,f as Dt,R as Bn,aR as Lr,aS as Or,aa as kr,aT as Fr,aU as Nr,aV as Ur,z as Wn,W as mn,T as fn,k as Q,aW as Rt,a as xt,S as ie,b as Je,aX as qn,aY as Hn,aZ as Kn,a_ as $r,a2 as Mr,a$ as zr,b0 as Br,b1 as Wr,b2 as qr,b3 as Hr,b4 as ze,a8 as Kr,d as Gn,M as Gr,b5 as Yr,aD as ut,a9 as mt,a6 as ft,b6 as Vr,a7 as yt,i as Yn,N as Xr,b7 as Qr,b8 as we,b9 as _e,ba as Jr,bb as Zr,D as Vn,w as vt,bc as ei,h as ti,at as pn,bd as ni,be as gn,aj as ri,bf as ii,bg as oi,bh as ai}from"./index-CC1ndwks.js";import{T as si}from"./index-Bxr0QU8m.js";import{d as li}from"./ArrowDropDown-_NUZMAs3.js";import{u as Tt,C as re,a as hn}from"./index.esm-BTj_KCwg.js";import{S as Ce}from"./switch-control-B17GyPSA.js";import{d as Xn,i as ci}from"./is-path-prefix-equal-Cbnwy2Yf.js";import{T as K,F as di}from"./TextField-DMD0bhJ9.js";import{D as Qn,g as ui}from"./index-BXNB-HAQ.js";import{d as Jn}from"./Link-DyVx2epM.js";import{d as Ae}from"./Delete-DP2Kbw6K.js";import{C as Et}from"./delete-confirm-lQkwnGTS.js";import{I as Be}from"./index-5SVf0tFY.js";import{s as mi}from"./logo-BKA11TRi.js";import{_ as fi}from"./useLocalStorage-CBI6wbJu.js";import{L as pi}from"./LoadingButton-CXpu1MEX.js";import{C as gi,d as Zn}from"./Public-CNDJTj5P.js";import{d as Pt}from"./Add-CBlI6OP_.js";import{a as hi,B as er,D as xn,R as xi,b as yi}from"./url-evaluation-l10Af9J1.js";import{d as vi}from"./CheckCircle-DFcLtmlR.js";import{d as bi}from"./ExpandMore-3RzpbVTz.js";import{d as ji}from"./ChevronRight-CTMwG0CZ.js";import{d as Ci}from"./MoreVert-B3whUcSg.js";import{d as tr}from"./Edit-BE1ZZ-Tm.js";import{d as Si,a as nr}from"./Https-BE0YR8cf.js";import{W as $e}from"./tag-CCXE4PlV.js";import{w as wi}from"./withStyles-CDKZ5MjH.js";import{S as _i}from"./Slider-DJ5A6VX9.js";import"./index-CgdUe9yu.js";import"./Select-BFdUN7Gy.js";import"./InputLabel-D6AZ_TXn.js";import"./FilterList-Do3l0qfw.js";import"./LastPage-DFR_wWVB.js";import"./index-CF5rsCOW.js";import"./redux-CBs4zzpF.js";import"./Search-B8Ey1Xi7.js";import"./index-DVV4MjHu.js";import"./click-to-copy-Crhp_-Y4.js";import"./shorten-label-u7BOpbFf.js";const fe="Dashboard",rr=p.createContext({}),{Provider:Di,Consumer:cs}=rr,yn=[fe,T.DOMAIN_FOR_IP_SITE,T.DOMAIN_FOR_IP_SITE_REGEXP],Ri=(t,n)=>{if(t.name===T.DOMAIN_FOR_DEFAULT_SITE)return-1;if(n.name===T.DOMAIN_FOR_DEFAULT_SITE)return 1;const r=yn.includes(t.name),i=yn.includes(n.name);return r&&i?cn(t.name,n.name):r?-1:i?1:cn(t.name,n.name)},Ti=({sites:t,nodePort:n})=>{const r=window.location.host,o=(t||[]).map(a=>{const{id:l,rules:c=[],corsAllowedOrigins:h=[]}=a;let{domain:d,domainAliases:m}=a;m=m||[],[T.DOMAIN_FOR_IP_SITE,T.DOMAIN_FOR_IP_SITE_REGEXP].includes(d)&&(d=fe,m.find(f=>f.value===r)||m.unshift({protected:!1,value:r}));const g={id:l,name:d,type:"domain",items:[],domainAliases:m,isProtected:a.isProtected,corsAllowedOrigins:h};return(c||[]).forEach(f=>{const{id:y,isProtected:b,from:{pathPrefix:v},to:C}=f;if(C.type===T.ROUTING_RULE_TYPES.BLOCKLET){let R="";Number.parseInt(C.port,10)===Number.parseInt(n,10)?(R="Blocklet Server Dashboard",C.type=T.ROUTING_RULE_TYPES.DAEMON):R=C.did,g.items.push({id:y,name:ln(v||"/"),title:R,type:"rule",isProtected:b,pathPrefix:v,to:C})}else g.items.push({id:y,pathPrefix:v,name:ln(v||"/"),title:"Blocklet Server Dashboard",type:"rule",isProtected:b,to:C})}),g.items=Mn(g.items,f=>f.name),g}).sort(Ri),s=o.reduce((a,l)=>{let{name:c}=l;return c.endsWith(T.BLOCKLET_SITE_GROUP_SUFFIX)&&([c]=c.split(".")),a[c]={...l,rules:l.items},a},{});return{sites:o,siteMap:s}},Ei=({did:t,domain:n,mountPoint:r,siteMap:i,params:o}={})=>{if(!i)return null;const s=i[t];if(!s)return null;const a=n||(s.domainAliases||[])[0];if(!a)return null;let l=r;if(!l){const c=s.rules.filter(h=>!h.name.startsWith(T.WELLKNOWN_PATH_PREFIX))[0];l=c?c.name:"/"}return _t(a.value,l,o)},Pi=({did:t,mountPoint:n,siteMap:r,params:i}={})=>{if(!r)return[];const o=r[t];if(!o)return[];const s=o.domainAliases||[];if(!s.length)return[];let a=n;if(!a){const l=o.rules.filter(c=>!c.name.startsWith(T.WELLKNOWN_PATH_PREFIX))[0];a=l?l.name:"/"}return s.map(l=>_t(l.value,a,i))},Ai=t=>{const n=t.map(i=>i.domain).filter(i=>![T.DOMAIN_FOR_IP_SITE_REGEXP,T.DOMAIN_FOR_DEFAULT_SITE].includes(i));let r=[];return t.forEach(i=>r.push(...i.domainAliases||[])),r=r.map(i=>typeof i=="string"?{value:i,isProtected:!1}:i),{domains:n,domainsAliases:r}};function vn({children:t}){const n=ue(),{info:r}=J(),[i,o]=p.useState([]),[s,a]=p.useState([]),[l,c]=p.useState([]),h=Pe(async()=>{const{sites:S}=await n.getRoutingSites({input:{snapshotHash:""}}),E=S||[];await Promise.all(E.map(async w=>(w.domainAliases=await Tr(w.domainAliases,{getIP:Er}),w)));const L=Ai(E);o(E),a(L.domains),c([window.location.hostname,...L.domains,...L.domainsAliases.map(w=>w.value)])},[r]),d=(S,E)=>{o(L=>L.map(w=>w.id===S?E.domain?E:{...E,domain:w.domain}:w))},m=S=>n.takeRoutingSnapshot({input:{dryRun:!1,message:encodeURIComponent(S)}}),g=async S=>{const E=await n.addRoutingSite({input:S});o(i.concat(E.site))},f=async(S,E)=>{const L=await n.updateRoutingSite({input:{id:S,...E}});if(L.site&&L.site.id){const w=i.findIndex(P=>P.id===L.site.id);w!==-1&&(i.splice(w,1,L.site),o([].concat(i)))}},y=async S=>{await n.deleteRoutingSite({input:{id:S}}),o(i.filter(E=>E.id!==S))},b=async(S,E,L)=>{const w=await n.addDomainAlias({input:{id:S,domainAlias:E,force:L}});d(S,w.site)},v=async(S,E)=>{const L=await n.deleteDomainAlias({input:{id:S,domainAlias:E}});d(S,L.site)},C=async(S,E)=>{const{site:L}=await n.addRoutingRule({input:{id:S,rule:E}});d(S,L)},R=async(S,E)=>{const{site:L}=await n.updateRoutingRule({input:{id:S,rule:E}});d(S,L)},j=async(S,E)=>{const{site:L}=await n.deleteRoutingRule({input:{id:S,ruleId:E}});d(S,L)},x={loading:h.loading,error:h.error,refresh:h.retry,api:n,actions:{addSite:g,updateSite:f,deleteSite:y,addDomainAlias:b,deleteDomainAlias:v,takeSnapshot:m,addRule:C,updateRule:R,deleteRule:j}},{sites:I,siteMap:D}=Ti({sites:i,nodePort:r.port});return x.sites=I,x.siteMap=D,x.domains=s,x.allDomains=l,x.getBlockletUrl=({did:S,domain:E,mountPoint:L,params:w})=>Ei({did:S,domain:E,mountPoint:L,siteMap:x.siteMap,params:w}),x.getBlockletUrls=({did:S,mountPoint:E,params:L})=>Pi({did:S,mountPoint:E,siteMap:x.siteMap,params:L}),e.jsx(Di,{value:{routing:x},children:t})}function ae(){const{routing:t}=p.useContext(rr);return t}function At(t){const n=[T.DOMAIN_FOR_IP_SITE_REGEXP,T.DOMAIN_FOR_DEFAULT_SITE,T.DOMAIN_FOR_IP_SITE];return typeof window<"u"&&typeof window.location<"u"&&n.push(window.location.hostname),n.includes(t)}var It={},Ii=xe;Object.defineProperty(It,"__esModule",{value:!0});var ir=It.default=void 0,Li=Ii(he()),Oi=e;ir=It.default=(0,Li.default)((0,Oi.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");function ki(){return null}function Lt({confirm:t}){const[n,r]=p.useState(null),{t:i}=N(),o=()=>{r(null)},s=async l=>{if(l){let c=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";c==="/"?dn.push(`${l.pathname}`):(c.endsWith("/")&&(c=c.substring(0,c.length-1)),dn.push(`${c}${l.pathname}`)),window.location.reload()}},a=(l,...c)=>{let h=typeof t=="function"?t(l,...c):t;return h?(typeof h=="string"&&(h={description:h}),r({title:i("common.noticeTitle"),description:i("common.leavePageTip"),confirm:i("common.confirm"),cancel:i("common.cancel"),onConfirm:()=>s(l),onCancel:()=>o(),...h}),!1):!0};return e.jsxs(Fi,{children:[e.jsx(ki,{message:a}),n&&e.jsx(ne,{title:n.title,description:n.description,confirm:n.confirm,cancel:n.cancel,params:n.params,onConfirm:n.onConfirm,onCancel:n.onCancel})]})}Lt.propTypes={confirm:u.oneOfType([u.object,u.string,u.func])};Lt.defaultProps={confirm:null};const Fi=V.div`
|
|
2
2
|
margin-bottom: 24px;
|
|
3
3
|
.top-btns-alert {
|
|
4
4
|
@media (max-width: ${t=>t.theme.breakpoints.values.sm}px) {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{aj as X,z as $,r as p,a as Z,b as ee,P as x,q as j,u as P,y as te,au as N,M as _,j as t,x as q,av as se,a1 as S,m as v,D as M,aw as oe,U as O,ax as re,B as W,C as z,ay as ne,A as K,K as V,az as ae,aA as ie,aB as le,F as ce,aC as B,i as ue,n as G,aa as de,a4 as pe,a7 as he,a8 as fe,aD as me,a9 as ge,O as xe}from"./index-CC1ndwks.js";import{_ as D}from"./useLocalStorage-CBI6wbJu.js";import{c as be,C as ke,A as ye,D as Se,B as je,S as H,a as Pe,b as we}from"./item-BCeOssCF.js";import{d as Re}from"./ArrowDropDown-_NUZMAs3.js";import{B as ve}from"./Breadcrumbs-D-zIyMgq.js";import"./index-DzxtBPCC.js";import"./index-ZG7jWpak.js";import"./index-DVV4MjHu.js";import"./Search-B8Ey1Xi7.js";import"./index-CgdUe9yu.js";import"./Select-BFdUN7Gy.js";import"./InputAdornment-DwuVDGhs.js";import"./preact.module-B1z5cdvs.js";import"./Add-CBlI6OP_.js";import"./TextField-DMD0bhJ9.js";import"./InputLabel-D6AZ_TXn.js";import"./Launch-CouSgez_.js";import"./Done-tC1zTTTI.js";import"./DeleteOutline-B8oYxNwP.js";import"./DeleteOutline-DRdvA-Zf.js";import"./delete-confirm-lQkwnGTS.js";import"./click-to-copy-Crhp_-Y4.js";import"./shorten-label-u7BOpbFf.js";import"./blocklet-ChPmEIKa.js";import"./MoreVert-B3whUcSg.js";import"./ButtonGroup-By_ymyXi.js";import"./getValidReactChildren-5uFkq4GS.js";function Ce(e){const n=X(),c=$(),[s,o]=D(`sid:blocklet:purchase:${e}`),[l,u]=p.useState(!1),[h,a]=p.useState(null),d=()=>{const{pathname:r,searchParams:m}=new URL(window.location.href),b=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";m.get("sid")&&(o(""),c(r.replace(b,"/"),{replace:!0}))},i=!!(n.get("assetDid")&&s&&n.get("sid")===s);return Z(ee.BlockletEvents.purchaseChange,r=>{r.did===e&&(a(r.session),["declined","confirmed","error"].includes(r.session.status)&&(u(!0),setTimeout(d,2e3)))}),p.useEffect(()=>{h&&h.id!==s&&o(h.id)},[h]),{hasCompleted:l,hasPurchased:i,session:h,setSession:a,doRedirect:d}}function E({meta:e,onCancel:n,handlePaySuccess:c,storeUrl:s}){const{t:o}=j(),{info:l}=P(),[u,h]=p.useState("both"),[a,d]=p.useState(1),i=te(l),r=N(e,l,s),m=R=>{R!==u&&h(R)},b=()=>{u&&(d(2),u==="verify"&&(window.location.href=r))},k=(R,L)=>{L!=="backdropClick"&&n()},w=()=>{c(r)},f=_.getDisplayName({meta:e});if(u==="purchase"&&a===2)return t.jsx(q,{open:!0,popup:!0,baseUrl:s,action:"acquire-asset",checkFn:se.create({baseURL:S(s,"/store")}).get,onSuccess:w,onClose:n,checkTimeout:60*5e3,extraParams:{factory:e.nftFactory},webWalletUrl:i,disableClose:!0,saveConnect:!1,showDownload:!1,messages:{title:o("store.purchase.auth.title",{name:f}),scan:o("store.purchase.auth.scan"),confirm:o("store.purchase.auth.confirm"),success:t.jsxs(t.Fragment,{children:[t.jsx(v,{gutterBottom:!0,children:o("store.purchase.auth.success")}),t.jsxs(v,{variant:"subtitle2",children:[" ",o("store.purchase.autoLaunch",{name:f})]})]})}});const g=M;return t.jsx(g,{title:o("store.purchase.title",{name:f}),disableEscapeKeyDown:!0,open:!0,fullWidth:!0,onClose:k,children:t.jsx("div",{style:{marginBottom:16},children:t.jsx(ke,{action:u,onNext:b,onSelect:m})})})}E.propTypes={...be,storeUrl:x.string.isRequired,handlePaySuccess:x.func};E.defaultProps={handlePaySuccess:e=>{setTimeout(()=>{window.location.href=e},1e3)}};function U({meta:e,buttonText:n,storeUrl:c,isResource:s}){const{t:o}=j(),l=$(),{info:u}=P(),{api:h}=oe(),a=_.isFreeBlocklet(e)===!1,[d,i]=p.useState(!1),{hasPurchased:r}=Ce(e.did),[m,b]=p.useState(!1),[k]=D("instant-blocklet-install",!1),[w,f]=p.useState(!1),g=p.useMemo(()=>d?o(a?"blocklet.status.purchasing":"blocklet.status.waiting"):"",[d,o,a]),R=p.useMemo(()=>s?o("blocklet.status.resource"):a?n.purchase:n.launch,[a,n,s]),L=y=>{y.preventDefault(),y.stopPropagation();try{if(i(!0),a){b(!0);return}if(k){f(!0);return}if(!a){const C=N(e,u,c);window.location.href=C}}catch(C){K.error(V(C),{autoHideDuration:5e3}),console.error("Blocklet installed failed",C)}finally{i(!1)}},Q=()=>{i(!1),b(!1)},Y=y=>{i(!1),f(!1),l(`/blocklets/${y.appDid}/components`)},J=()=>{i(!1),f(!1)};return t.jsxs(t.Fragment,{children:[t.jsx(ye,{children:t.jsx(O,{permission:"mutate_blocklets",children:y=>t.jsx(re,{title:s?o("launchBlocklet.error.resourceBlocklet"):"",children:t.jsx(W,{onClick:L,size:"small",sx:{cursor:s?"not-allowed":"pointer"},disabled:!!(g||!y),variant:"outlined",color:"primary","data-cy":"install-blocklet",children:g?t.jsxs(t.Fragment,{children:[t.jsx(z,{size:16,style:{marginRight:3}}),g]}):R},e.did)})})}),(r||m)&&t.jsx(E,{method:"launch",meta:e,mode:"both",onCancel:Q,storeUrl:c}),w&&t.jsx(q,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:h.get,checkTimeout:5*60*1e3,onSuccess:Y,extraParams:{title:e.title,blockletMetaUrl:decodeURIComponent(ne(c,e.did).trim())},messages:{title:o("setup.keyPair.title"),scan:o("setup.keyPair.scan"),confirm:o("setup.keyPair.confirm"),success:o("setup.keyPair.success")},onClose:J})]})}U.propTypes={isResource:x.bool,meta:x.object.isRequired,buttonText:x.shape({purchase:x.string.isRequired,launch:x.string.isRequired}).isRequired,storeUrl:x.string.isRequired};U.defaultProps={isResource:!1};const De=(e,n,c)=>{const s=de(n);return S(c,`/blocklets/${e.did}/?server-url=${s}`)},A=({meta:e,attribute:n,value:c})=>e._formatted?e._formatted[n]:c;function T({blocklet:e,endpoint:n}){const{t:c}=j(),s=P();let o=S(s.imgPrefix,"blocklet.png");const l=n;if(l.startsWith("http")&&e.logo)o=S(l,le(e.did,e.logo,e.version));else{let r=(window.env.apiPrefix||"/").replace(/^\/+/,"").replace(/\/+$/,"");r&&(r=`/${r}`),o=S(r,`/blocklet/logo/${e.did}`)}try{const i=new URL(o);i.searchParams.set("v",e.version||+new Date),o=i.href}catch{}const u=(s==null?void 0:s.info.mode)!==ce.NODE_MODES.SERVERLESS,h=i=>i.currentTarget.contains(i.target)?!0:(i.preventDefault(),!1),a={meta:e,buttonText:{purchase:c("common.purchase"),launch:c("common.launch")},storeUrl:l};let d=null;return u&&(d=t.jsx("div",{style:{display:"flex",alignItems:"center"},children:t.jsx(U,{isResource:!(B.hasStartEngine(e)||B.isGatewayBlocklet(e)||B.isPackBlocklet(e)),...a})})),t.jsx(ue,{href:De(e,s.info,n),style:{color:"initial",textDecoration:"none"},onClick:h,target:"_blank",children:t.jsx(Le,{title:A({meta:e,attribute:"title",value:e.title||e.name}),did:e.did,description:A({meta:e,attribute:"description",value:e.description}),cover:e.logo?o:"",version:e.version,button:d})})}T.propTypes={blocklet:x.object.isRequired,endpoint:x.string};T.defaultProps={endpoint:""};function I({storeUrl:e,handleSearchSelect:n,extraFilter:c,...s}){var r;const{locale:o}=j(),l=P(),[u,h]=p.useState({}),a=m=>{h(m)},d=e,i=(r=l==null?void 0:l.info)==null?void 0:r.version;return p.useEffect(()=>{h({})},[d]),t.jsx(ae,{FallbackComponent:ie,resetKeys:[d],children:t.jsx("div",{...s,children:t.jsx(Se,{blockletRender:m=>{const b={...m,endpoint:d};return t.jsx(T,{...b})},baseSearch:!0,endpoint:d,locale:o,onFilterChange:a,onSearchSelect:n,filters:u,extraFilter:c,serverVersion:i})})})}I.propTypes={storeUrl:x.string.isRequired,handleSearchSelect:x.func,extraFilter:x.func};I.defaultProps={handleSearchSelect:null,extraFilter:void 0};const Le=G(je)`
|
|
2
|
+
.ms-highlight {
|
|
3
|
+
color: ${e=>e.theme.palette.primary.main};
|
|
4
|
+
}
|
|
5
|
+
`,Be=pe(()=>({buttonText:{textTransform:"none !important"},iconRoot:{minWidth:24},menuName:{display:"flex",flexDirection:"column",marginRight:"100px","& span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}})),F=p.forwardRef(({onChange:e,onDelete:n},c)=>{const{info:s}=P(),{t:o}=j(),[l,u]=p.useState(!1),[h,a]=p.useState(!1),[d,i]=p.useState(-1),r=Be(),[m,b]=D(H),k=Math.max(s.blockletRegistryList.findIndex(f=>f.url===m),0),w=f=>{try{u(!0),i(f);const g=s.blockletRegistryList[f];b(g.url),e(g.url),a(!1)}catch(g){console.error(g),K.error(`${o("store.blockletRegistry.changeFailed")} ${V(g)}`)}finally{u(!1)}};return p.useImperativeHandle(c,()=>({setOpen:a})),t.jsxs(t.Fragment,{children:[t.jsx(O,{permission:"mutate_node",children:f=>t.jsx(W,{disabled:!f,classes:{text:r.buttonText},color:"secondary","data-cy":"store-toggle",onClick:()=>{a(!0)},endIcon:t.jsx(Re,{}),children:t.jsx(v,{color:"secondary",children:s.blockletRegistryList[k].name})})}),t.jsx(M,{title:o("store.blockletRegistry.switchRegistry"),disableEscapeKeyDown:!0,disablePortal:!1,fullWidth:!0,open:h,onClose:()=>a(!1),children:t.jsxs(he,{className:r.tabPanel,children:[s.blockletRegistryList.map((f,g)=>t.jsxs(fe,{button:!0,disabled:l,selected:k===g,"data-cy":"store-switch",onClick:()=>{if(!l){if(g===k){a(!1);return}w(g)}},children:[d===g&&l&&t.jsx(me,{className:r.iconRoot,children:t.jsx(z,{size:16})}),t.jsx(ge,{children:t.jsx(Pe,{teamDid:s.did,store:f,onDelete:()=>n(f.url)})})]},f.url)),t.jsx(we,{disabled:l,onAdd:e,teamDid:s.did,blockletRegistryList:s.blockletRegistryList})]})})]})});F.propTypes={onChange:x.func,onDelete:x.func};F.defaultProps={onChange:()=>{},onDelete:()=>{}};const Ee=F;function at(){const{t:e}=j(),{info:n}=P(),[c]=D(H),{blockletRegistryList:s}=n,o=s.find(r=>c===r.url)||s[0],[l,u]=p.useState(o.url),h=n.routing.adminPath,a=S(window.location.origin,h),d=({detailUrl:r})=>{const m=new URL(r);m.searchParams.set("server-url",a);const b=document.createElement("a");b.setAttribute("target","_blank"),b.setAttribute("href",m.href),b.click()},i=p.useRef(null);return t.jsxs(Ue,{children:[t.jsxs(ve,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[t.jsx(v,{color:"textPrimary",children:e("common.store")}),t.jsx(Ee,{ref:i,onChange:r=>u(r),onDelete:r=>{var m;l===r&&u((m=n.blockletRegistryList[0])==null?void 0:m.url)}})]}),t.jsx(xe,{className:"store-header",display:"flex",justifyContent:"space-between",p:0,m:0,children:t.jsx(v,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:e("store.headerDescription")})}),t.jsx(I,{className:"blocklet-list",handleSearchSelect:d,storeUrl:l})]})}const Ue=G.main`
|
|
6
|
+
@media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
|
|
7
|
+
.store-header {
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
margin-bottom: 32px !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.page-header {
|
|
13
|
+
margin-bottom: 16px !important;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
.blocklet-list {
|
|
17
|
+
aside:hover {
|
|
18
|
+
height: calc(100vh - 235px);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`;export{at as default};
|