@abtnode/blocklet-services 1.16.34-beta-20241218-045149-150af879 → 1.16.34-beta-20241219-132811-455be4c4
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/api/routes/oauth.js +2 -1
- package/dist/assets/{Add-CR7sEnVa.js → Add-D5zbmaC5.js} +1 -1
- package/dist/assets/{Alert-_hy6i2TW.js → Alert-Ca5BIvJG.js} +1 -1
- package/dist/assets/{ArrowDropDown-Y4EemKOX.js → ArrowDropDown-Dc5OJFHA.js} +1 -1
- package/dist/assets/Autocomplete-Dc6Ckgb4.js +1 -0
- package/dist/assets/{Avatar-BGI1LZff.js → Avatar-B41sfbMu.js} +1 -1
- package/dist/assets/{ButtonGroup-Z3Ze7Bhq.js → ButtonGroup-C95pZQfV.js} +1 -1
- package/dist/assets/{CSSTransition-BCJrke0A.js → CSSTransition-DRnC0hP6.js} +1 -1
- package/dist/assets/{CheckCircle-lvBXN98Q.js → CheckCircle-CftBFr7p.js} +1 -1
- package/dist/assets/{ChevronLeft-Co-QpbPc.js → ChevronLeft-CbtftJu3.js} +1 -1
- package/dist/assets/{ChevronRight-FbnhEa4s.js → ChevronRight-DLdnfW7O.js} +1 -1
- package/dist/assets/{Clear-hQNgujce.js → Clear-Cn6HmYQz.js} +1 -1
- package/dist/assets/{Delete-B08C-mSs.js → Delete-BEI9Sgjm.js} +1 -1
- package/dist/assets/{DeleteOutline-BCCT6DJp.js → DeleteOutline-BcT7g0hk.js} +1 -1
- package/dist/assets/DialogContentText-IZR4LQpV.js +1 -0
- package/dist/assets/DialogTitle-B1GtBdEX.js +1 -0
- package/dist/assets/{Done-CiqJ6IHh.js → Done-J-vanIHZ.js} +1 -1
- package/dist/assets/{Download-Bv39RUQq.js → Download-BotKCenR.js} +1 -1
- package/dist/assets/{EditIcon-B3dfnlOS.js → EditIcon-AjMrTHbF.js} +1 -1
- package/dist/assets/{Error-BKxLwDxL.js → Error-Bp2_azLF.js} +1 -1
- package/dist/assets/{ExpandMore-Bqisn1wE.js → ExpandMore-D5Ex5uDB.js} +1 -1
- package/dist/assets/FormControl-B_E_ND8l.js +1 -0
- package/dist/assets/{FormControlLabel-DrzQSDw5.js → FormControlLabel-4Fi9hZ9w.js} +1 -1
- package/dist/assets/FormGroup-wFFM5h4o.js +1 -0
- package/dist/assets/{Google-BLOYlfTF.js → Google-CJXz8-MM.js} +1 -1
- package/dist/assets/{Grid-SgzMUjEU.js → Grid-CNX9GiAc.js} +1 -1
- package/dist/assets/{HelpOutline-DuoroGqb.js → HelpOutline-Dcjk7ulm.js} +1 -1
- package/dist/assets/{Hidden-CrmpQdXR.js → Hidden-DX_Kmgml.js} +1 -1
- package/dist/assets/{InfoOutlined-RlhtSWs3.js → InfoOutlined-BW-k42mL.js} +1 -1
- package/dist/assets/InputAdornment-BgKAM5uL.js +1 -0
- package/dist/assets/{LastPage-Snyq0pP3.js → LastPage-CMuWIJmA.js} +1 -1
- package/dist/assets/{Launch-BSl6NDxk.js → Launch-CJJrZfJ6.js} +1 -1
- package/dist/assets/{LaunchOutlined-B4H6BLfm.js → LaunchOutlined-C-rm1xO-.js} +1 -1
- package/dist/assets/Link-do-3aPDc.js +1 -0
- package/dist/assets/ListItemButton-B8qxXRHx.js +1 -0
- package/dist/assets/{ListSubheader-ShT9Sg18.js → ListSubheader-BbgYQCin.js} +1 -1
- package/dist/assets/{LoadingButton-C52xjKpM.js → LoadingButton-nSVrtGvg.js} +1 -1
- package/dist/assets/{LockIcon-bI_F9Ild.js → LockIcon-C599BLMv.js} +1 -1
- package/dist/assets/{Loop-D9qegsTQ.js → Loop-aBYqXvmT.js} +1 -1
- package/dist/assets/{MarkEmailRead-0EB-Mkj_.js → MarkEmailRead-BDLJl1Cp.js} +1 -1
- package/dist/assets/{Menu-BYYOSq08.js → Menu-egTGbomH.js} +1 -1
- package/dist/assets/{MoreHoriz-jXxdEJP9.js → MoreHoriz-BJE-_6U8.js} +1 -1
- package/dist/assets/{MoreVert-BARSVa3q.js → MoreVert-BjFlbgru.js} +1 -1
- package/dist/assets/{OpenInNew-CBHKs3sB.js → OpenInNew-BznH-WIN.js} +1 -1
- package/dist/assets/{OutlinedInput-ByQv6zcS.js → OutlinedInput-DClaGk47.js} +2 -2
- package/dist/assets/{Pagination-C22d4uzo.js → Pagination-po7M52DR.js} +1 -1
- package/dist/assets/{PlayArrow-DmC7i7oT.js → PlayArrow-4Ph4Db5p.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-DnkR0JCz.js → QuestionMarkCircle-hxFQEIuB.js} +1 -1
- package/dist/assets/{RadioGroup-Bnm-cYxm.js → RadioGroup-rsK9d7AH.js} +1 -1
- package/dist/assets/{Search-jWVedrNW.js → Search-ClcNwm6y.js} +1 -1
- package/dist/assets/{Select-BRIdogF3.js → Select-3zppq3AC.js} +1 -1
- package/dist/assets/{ServerLogo-Cwvm7N9d.js → ServerLogo-GPvXYlrb.js} +1 -1
- package/dist/assets/{Skeleton-DmlR9RTr.js → Skeleton-RJ909Xb5.js} +5 -5
- package/dist/assets/Stack-BSFkBj-z.js +1 -0
- package/dist/assets/{Stepper-CGWoR4Cr.js → Stepper-D3tbBsNN.js} +1 -1
- package/dist/assets/{TextField-2xBiC_3q.js → TextField-BglN0hgt.js} +1 -1
- package/dist/assets/{Toolbar-BmaPDfrf.js → Toolbar-BrM3XdrE.js} +1 -1
- package/dist/assets/{ViewColumn-Hi8KxtrP.js → ViewColumn-DUa9FCsV.js} +1 -1
- package/dist/assets/{ViewList-DB9T9Ao8.js → ViewList-DInWpp8m.js} +1 -1
- package/dist/assets/{_createAggregator-CSKW-QkS.js → _createAggregator-DqrSlbSW.js} +1 -1
- package/dist/assets/{access-control-h7TAGH4g.js → access-control-BmhqPovC.js} +1 -1
- package/dist/assets/{actions-Cu3UkuLL.js → actions-CXQg_2R4.js} +1 -1
- package/dist/assets/{add-component-core-DGSZAdE3.js → add-component-core-BbHRL77Z.js} +1 -1
- package/dist/assets/add-resource-CDsY8p_K.js +1 -0
- package/dist/assets/{addon-7B9p8dCH.js → addon-D4Z9CoN9.js} +1 -1
- package/dist/assets/{analytics-D2HEJiwC.js → analytics-CqGIKX0P.js} +1 -1
- package/dist/assets/api-DGjzM9of.js +1 -0
- package/dist/assets/{audit-logs-CYltvyS-.js → audit-logs-CrY4npHz.js} +2 -2
- package/dist/assets/{base32-C6LgLamw.js → base32-CL5BH6_g.js} +1 -1
- package/dist/assets/{branding-Bky7q0TT.js → branding-DldtuYQx.js} +2 -2
- package/dist/assets/{bundle-avatar-b1t1VYra.js → bundle-avatar-Dg5UGcHW.js} +1 -1
- package/dist/assets/{button-DTjLsugU.js → button-DfhlQnHj.js} +1 -1
- package/dist/assets/{click-to-copy-DR1rP4vm.js → click-to-copy-C9J7yUGA.js} +1 -1
- package/dist/assets/{complete-CuDl6Ups.js → complete-Ty8pvQDv.js} +2 -2
- package/dist/assets/{component-_WZ3EVoO.js → component-C4bgs0fh.js} +9 -9
- package/dist/assets/{config-puOoJLLI.js → config-BG6DC8uo.js} +1 -1
- package/dist/assets/{config-B7FdwHTv.js → config-CY0BMGTa.js} +2 -2
- package/dist/assets/{config-navigation-DCge2YuF.js → config-navigation-Cvrcilcn.js} +4 -4
- package/dist/assets/{config-space-B3Ny0aqC.js → config-space-MvdUacCI.js} +1 -1
- package/dist/assets/{confirm-B2Vr_bWi.js → confirm-SG-ap-ws.js} +1 -1
- package/dist/assets/{connect-frvDBI8-.js → connect-CG8MUQvf.js} +1 -1
- package/dist/assets/{connect-Djwth-pv.js → connect-D6BJeLah.js} +1 -1
- package/dist/assets/{connect-to-dvHRDt3P.js → connect-to-BahkORiw.js} +1 -1
- package/dist/assets/{content-layout-FmzgfnJs.js → content-layout-CsBQOuZw.js} +1 -1
- package/dist/assets/dashboard-D330kDJf.js +165 -0
- package/dist/assets/{deprecate-B7bDfetg.js → deprecate-B50RgeF-.js} +1 -1
- package/dist/assets/{did-address-BT02fs0z.js → did-address-lS5AVM-f.js} +1 -1
- package/dist/assets/{domain-D2xeh7gD.js → domain-CHTy22IF.js} +1 -1
- package/dist/assets/{domain-list-eL8Ge68T.js → domain-list-Cy9D4xMA.js} +2 -2
- package/dist/assets/{email-ABbBMfa9.js → email-BwcfH_bJ.js} +3 -3
- package/dist/assets/emotion-cache.browser.esm-aAjwJ1iO.js +1 -0
- package/dist/assets/{exchange-passport-D8VL5RW4.js → exchange-passport-CP8-7Dj4.js} +1 -1
- package/dist/assets/{fallback-DuTRWfov.js → fallback-CXpMA9jN.js} +1 -1
- package/dist/assets/{form-text-input-CMoesbQA.js → form-text-input-BHzdMTv5.js} +2 -2
- package/dist/assets/{format-error-Df_KEQEo.js → format-error-GcNyovLo.js} +2 -2
- package/dist/assets/{fuel-CMU1kOPY.js → fuel-fIhqZ2Gn.js} +1 -1
- package/dist/assets/{fullpage-Bm4nfkdv.js → fullpage-rXGgPgMY.js} +1 -1
- package/dist/assets/{get-safe-url-42YB8AJj.js → get-safe-url-BGvd_0xZ.js} +1 -1
- package/dist/assets/{get-safe-url-Doxyyx5u.js → get-safe-url-pcN_rKAr.js} +1 -1
- package/dist/assets/{home-puhqQ-6y.js → home-CB54IP3X.js} +1 -1
- package/dist/assets/{iframe-B8xXZJix.js → iframe-CJ1VXaVD.js} +1 -1
- package/dist/assets/{index-D77Q8g58.js → index-8HKVj0K2.js} +13 -13
- package/dist/assets/{index-BHUS7T6z.js → index-B4SXignI.js} +4 -4
- package/dist/assets/{index-Zo0HBJAk.js → index-BA6hWj_6.js} +1 -1
- package/dist/assets/{index-CBV44HKk.js → index-BIby-QBu.js} +4 -4
- package/dist/assets/{index-BG_TmIhM.js → index-BQ3Bj6mS.js} +1 -1
- package/dist/assets/{index-D6I9kSQE.js → index-BXGkZOts.js} +1 -1
- package/dist/assets/{index-CAvd4Asc.js → index-Bf96sJch.js} +2 -2
- package/dist/assets/{index-BU9tGUF7.js → index-C-AeaK0z.js} +2 -2
- package/dist/assets/{index-Cyj1kF1M.js → index-C14iUZgt.js} +44 -44
- package/dist/assets/{index-DRrBV2lp.js → index-CIiAk_XW.js} +7 -7
- package/dist/assets/{index-BhOwP4yO.js → index-CQweL2ky.js} +1 -1
- package/dist/assets/{index-B_aky66_.js → index-Caw9WiQt.js} +1 -1
- package/dist/assets/index-CbgjiFh9.js +1 -0
- package/dist/assets/index-CjMHfE7G.js +4 -0
- package/dist/assets/{index-CsXCLKF8.js → index-Cq23l55D.js} +1 -1
- package/dist/assets/{index-BduXzRUO.js → index-Cy7pwpgc.js} +2 -2
- package/dist/assets/{index-CG2kgo5k.js → index-D2KOhYyH.js} +1 -1
- package/dist/assets/{index-sCPuxgmg.js → index-D5xT2yvh.js} +1 -1
- package/dist/assets/index-D6nkDfMc.js +1 -0
- package/dist/assets/{index-Dwt2XPok.js → index-D9GxUK41.js} +3 -3
- package/dist/assets/index-D9i2zlFV.js +11 -0
- package/dist/assets/{index-DwThH7kF.js → index-DDNG6fLw.js} +1 -1
- package/dist/assets/{index-Dz3rM1O5.js → index-DMl7ojqT.js} +1 -1
- package/dist/assets/{index-C6paufYZ.js → index-DTQya1Ga.js} +1 -1
- package/dist/assets/{index-BMvHCK44.js → index-DTtollfx.js} +1 -1
- package/dist/assets/{index-C0AmzVyo.js → index-DwWJLCZo.js} +24 -24
- package/dist/assets/{index-B2wNV2JZ.js → index-GFWH_arm.js} +2 -2
- package/dist/assets/{index-BVLp3zZE.js → index-QlD_x8dd.js} +161 -161
- package/dist/assets/{index-BpB2Q7g0.js → index-SYaHXcgW.js} +7 -7
- package/dist/assets/{index-CUHWlYJI.js → index-fJeiLuG7.js} +1 -1
- package/dist/assets/index-l43P3Pet.js +1 -0
- package/dist/assets/{index-M873CR9J.js → index-qk2ItgUe.js} +3 -3
- package/dist/assets/{index-C7BJOVUl.js → index-zdiKVNp6.js} +1 -1
- package/dist/assets/{invitation-ZU8RAZiJ.js → invitation-BwKojWaX.js} +1 -1
- package/dist/assets/{invite-g5ca6iGK.js → invite-C0S2V-HK.js} +1 -1
- package/dist/assets/{isEmail-CrXJuC-D.js → isEmail-CNQ_-Uou.js} +1 -1
- package/dist/assets/{issue-passport-D8CSuAAO.js → issue-passport-DsVjF9DC.js} +1 -1
- package/dist/assets/{item-aEWhU55x.js → item-PcWa9_Oo.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-CbSCROUY.js → jss-plugin-props-sort.esm-DT8CRQwC.js} +5 -5
- package/dist/assets/{launch-result-message-BrT1rr32.js → launch-result-message-pzlcuBAc.js} +1 -1
- package/dist/assets/{layout-CyocM6h2.js → layout-D4UiIZik.js} +2 -2
- package/dist/assets/{list-header-CWcDooSU.js → list-header-CXLBL8NM.js} +1 -1
- package/dist/assets/localization-Di64Tx6f.js +1 -0
- package/dist/assets/{log-BrgPzTQ_.js → log-FZ3WbT1K.js} +1 -1
- package/dist/assets/{login-BTvlfZOi.js → login-Bvkxo32o.js} +1 -1
- package/dist/assets/{login-oauth-callback-BTnm4A7s.js → login-oauth-callback-CbhGDecw.js} +1 -1
- package/dist/assets/{logo-uploader-x7kZDmdm.js → logo-uploader-Beq3ukvb.js} +4 -4
- package/dist/assets/{lost-passport-DVD5-b9q.js → lost-passport-B-Xo8Xcl.js} +3 -3
- package/dist/assets/{lottie-react.esm-DsaiORS5.js → lottie-react.esm--_Ymmw_D.js} +1 -1
- package/dist/assets/{notifications-DRFfRJDd.js → notifications-DThaa5Us.js} +2 -2
- package/dist/assets/{open-window-D1PWwK_f.js → open-window-Bzjfbxr5.js} +1 -1
- package/dist/assets/overview-qvsFtQDz.js +12 -0
- package/dist/assets/{page-header-uP5z14d-.js → page-header-BWUJXWNp.js} +1 -1
- package/dist/assets/{permission-CqAtXqqv.js → permission-W_8zaBQA.js} +1 -1
- package/dist/assets/{preferences-Bbx_83t8.js → preferences-DLgwdQeB.js} +1 -1
- package/dist/assets/publish-resource-DFveyHjb.js +1 -0
- package/dist/assets/{raf-schd.esm-950Nwcl8.js → raf-schd.esm-aAtyOT8L.js} +1 -1
- package/dist/assets/{react-beautiful-dnd.esm-Crc510hI.js → react-beautiful-dnd.esm-SuZ39Hsh.js} +1 -1
- package/dist/assets/refType-DdAkYAQu.js +1 -0
- package/dist/assets/resource-dialog-V3DribSt.js +271 -0
- package/dist/assets/sdk-BJmcT0ZX.js +1 -0
- package/dist/assets/{selector-BHETHL9k.js → selector-DaU6MlQV.js} +5 -5
- package/dist/assets/session-D-MTuhsH.js +1 -0
- package/dist/assets/{setup-BEJuv5zQ.js → setup-DhWE8cic.js} +3 -3
- package/dist/assets/{shorten-label-7p5yfIoM.js → shorten-label-hxNbJ_Ks.js} +1 -1
- package/dist/assets/{simple-select-BGFU9Stn.js → simple-select-CK4kebbT.js} +1 -1
- package/dist/assets/{slicedToArray-CC2Ju9eC.js → slicedToArray-VLKLiDbl.js} +2 -2
- package/dist/assets/{start-CF0eMC4t.js → start-Md5PHa4o.js} +1 -1
- package/dist/assets/{step-actions-epBkt1C9.js → step-actions-BOANelns.js} +1 -1
- package/dist/assets/{studio-CtLqrgIC.js → studio-CW3R2O1x.js} +2 -2
- package/dist/assets/{switch-control-HeQnHuHo.js → switch-control-Ev-C2sgo.js} +1 -1
- package/dist/assets/{toUpper-C_uhcn9U.js → toUpper-Ck8ZUxRp.js} +1 -1
- package/dist/assets/{transfer-pM92H2bb.js → transfer-CFW560tD.js} +1 -1
- package/dist/assets/trim-nU6YcUSy.js +1 -0
- package/dist/assets/{uniqBy-BSoiQcwq.js → uniqBy-CbJByQ4H.js} +1 -1
- package/dist/assets/{unsubscribe-DiPIA9QW.js → unsubscribe-BJliPUZz.js} +1 -1
- package/dist/assets/{url-join-CkIlepPX.js → url-join-DmnA0IIr.js} +1 -1
- package/dist/assets/{use-mobile-CNI4WLqG.js → use-mobile-3X9WMgwY.js} +1 -1
- package/dist/assets/{use-mobile-C__nHKAh.js → use-mobile-Db9_SqMv.js} +1 -1
- package/dist/assets/{useAsync-C0LxVA9E.js → useAsync-DcES_cPw.js} +1 -1
- package/dist/assets/{useFormControl-5yOkHFmp.js → useFormControl-C7C8L0st.js} +1 -1
- package/dist/assets/useLocalStorage-l4J8-UZU.js +1 -0
- package/dist/assets/{useSetState-QDNtnZvK.js → useSetState-hsLjpFyi.js} +1 -1
- package/dist/assets/useSlot-BAs2gD_d.js +1 -0
- package/dist/assets/{useSlotProps-DO-ZupKO.js → useSlotProps-B_GlETZV.js} +1 -1
- package/dist/assets/{useThemeProps-MN_zI9lm.js → useThemeProps-BMQ0TxSB.js} +1 -1
- package/dist/assets/user-center-B-rHUyD4.js +1 -0
- package/dist/assets/{user-sessions-ChfDOZU6.js → user-sessions-mjUKcFPt.js} +1 -1
- package/dist/assets/{util-DPoct1K7.js → util-BEOA1BUn.js} +1 -1
- package/dist/assets/{wrap-locale-CyPDW3Gl.js → wrap-locale-7OInKuIE.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +27 -27
- package/dist/assets/Autocomplete-DBZ3FH69.js +0 -1
- package/dist/assets/DialogContentText-B5A4L1En.js +0 -1
- package/dist/assets/DialogTitle-DNU2kRkR.js +0 -1
- package/dist/assets/FormControl-DqpecYDI.js +0 -1
- package/dist/assets/FormGroup-DdOZJ_4C.js +0 -1
- package/dist/assets/InputAdornment-bVDjO8z_.js +0 -1
- package/dist/assets/Link-CUqrslkF.js +0 -1
- package/dist/assets/ListItemButton-DRXqTtfT.js +0 -1
- package/dist/assets/Stack-26B3qUFg.js +0 -1
- package/dist/assets/add-resource-D8LrsGLU.js +0 -1
- package/dist/assets/api-B1moJ8Q-.js +0 -1
- package/dist/assets/dashboard-B6MLhh0C.js +0 -165
- package/dist/assets/emotion-cache.browser.esm-BC4S7lNf.js +0 -1
- package/dist/assets/index--bEJ2Eh9.js +0 -1
- package/dist/assets/index-D38zhHbI.js +0 -1
- package/dist/assets/index-D5VxU-ij.js +0 -11
- package/dist/assets/index-DNd8fzbU.js +0 -1
- package/dist/assets/index-x4WJUF-F.js +0 -4
- package/dist/assets/localization-VG2_8PqC.js +0 -1
- package/dist/assets/overview-DQMD8UEE.js +0 -12
- package/dist/assets/publish-resource-DForst_Z.js +0 -1
- package/dist/assets/refType-D4wZk9Eo.js +0 -1
- package/dist/assets/resource-dialog-gDoXhWVp.js +0 -271
- package/dist/assets/sdk-5yxlFRXZ.js +0 -1
- package/dist/assets/session-DWSqwZ_P.js +0 -1
- package/dist/assets/trim-S-x1Aalq.js +0 -1
- package/dist/assets/useLocalStorage-4Hgdh0LK.js +0 -1
- package/dist/assets/useSlot-DpD1z7uw.js +0 -1
- package/dist/assets/user-center-04PU0--E.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ba as y}from"./index-QlD_x8dd.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var a=this._errors[r],o=a.message,n=(e[o]||0)+1;e[o]=n,n>=t&&(i=a,t=n)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var a in t)r[a]=t[a];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],n=0;n<r.retries;n++)o.push(this.createTimeout(n,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(n,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var a=r.randomize?Math.random()+1:1,o=Math.round(a*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,a){if(r instanceof Array&&(a=r,r=null),!a){a=[];for(var o in t)typeof t[o]=="function"&&a.push(o)}for(var n=0;n<a.length;n++){var s=a[n],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{az as D,j as s,P as r,a4 as f,r as m,a6 as T,aA as $,u as j,J as H,m as U,l as P,c as q,o as F,p as M,aB as E,aC as S,aD as N,A as B,B as z,Y as O,n as V,R as J}from"./index-
|
|
1
|
+
import{az as D,j as s,P as r,a4 as f,r as m,a6 as T,aA as $,u as j,J as H,m as U,l as P,c as q,o as F,p as M,aB as E,aC as S,aD as N,A as B,B as z,Y as O,n as V,R as J}from"./index-QlD_x8dd.js";import{N as W}from"./index-DDNG6fLw.js";import{C as L}from"./index-BXGkZOts.js";import{u as X}from"./use-passport-id-B-b-_oYF.js";import{u as Y}from"./session-D-MTuhsH.js";import{b as G}from"./sdk-BJmcT0ZX.js";import{d as K}from"./CheckCircle-CftBFr7p.js";import{w as Q}from"./wrap-locale-7OInKuIE.js";const Z=D(s.jsx("path",{d:"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2m0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19z"}),"Inbox");function b({invitation:e,createPassportSvg:a,passportColor:c}){const[p,o]=m.useState(!1),{t}=m.useContext(T),l=m.useMemo(()=>(e.role.title||e.role.name).toUpperCase(),[e.role.title,e.role.name]),u=m.useMemo(()=>a({title:l,issuer:e.info.name,issuerDid:e.info.appDid,ownerName:"Your Name",ownerDid:e.info.appDid,preferredColor:e.info.passportColor||c}),[e,l]),x=m.useCallback(()=>{o(!0)},[]),i=m.useCallback(()=>{o(!1)},[]);return s.jsxs(s.Fragment,{children:[s.jsx(ee,{children:s.jsxs("div",{className:"invite-passport__card",onClick:x,children:[!!e.display&&s.jsx(W,{data:e.display,style:{width:"100%",height:"100%"}}),!e.display&&s.jsx("div",{className:"invite-passport__cover",dangerouslySetInnerHTML:{__html:u}})]})}),s.jsx($,{open:p,title:t("invite.viewPermission"),PaperProps:{style:{minHeight:"auto",paddingBottom:"20px"}},onClose:i,children:e.role.permissions&&e.role.permissions.length>0?s.jsx("ul",{style:{listStyle:"circle",padding:"0 20px"},children:e.role.permissions.map(n=>s.jsx("li",{style:{listStyle:"circle"},children:n.description},n.name))}):s.jsxs("div",{style:{color:"#999",textAlign:"center"},children:[s.jsx(Z,{style:{width:"30px",height:"30px"}}),s.jsx("div",{children:t("invite.emptyPermission")})]})})]})}b.propTypes={invitation:r.object.isRequired,createPassportSvg:r.func.isRequired,passportColor:r.string};b.defaultProps={passportColor:"auto"};const ee=f.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
max-width: 350px;
|
|
4
4
|
margin: 30px auto;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as w,d as x,u as g,r as v,ab as u,l as I,j as i,H as S,Z as T,a4 as j,x as k,y as E,z as P,L as R}from"./index-
|
|
1
|
+
import{e as w,d as x,u as g,r as v,ab as u,l as I,j as i,H as S,Z as T,a4 as j,x as k,y as E,z as P,L as R}from"./index-QlD_x8dd.js";import{I as F}from"./invitation-BwKojWaX.js";import{F as L}from"./fullpage-rXGgPgMY.js";import{g as C}from"./get-safe-url-BGvd_0xZ.js";import"./index-DDNG6fLw.js";import"./emotion-cache.browser.esm-aAjwJ1iO.js";import"./purify.es-DutPtr9A.js";import"./index-BXGkZOts.js";import"./use-passport-id-B-b-_oYF.js";import"./session-D-MTuhsH.js";import"./sdk-BJmcT0ZX.js";import"./CheckCircle-CftBFr7p.js";import"./wrap-locale-7OInKuIE.js";import"./Link-do-3aPDc.js";function Z(c){var r;const p=w(),{searchParams:o}=new URL(window.location.href),{api:d,session:m}=x(),{t:l}=g(),a=o.get("inviteId"),n=o.get("redirect"),h=v.useCallback(async()=>{const{data:t}=await u.get("invitation",{params:{inviteId:a}});return t},[a]),f=I(async(t,s=e=>e)=>{t&&(k(s(t.sessionToken)),E(s(t.refreshToken)),t.visitorId&&P(s(t.visitorId))),await m.refresh(),setTimeout(()=>{if(n){const e=decodeURIComponent(n);e.startsWith(R.WELLKNOWN_SERVICE_PATH_PREFIX)?p(e,{replace:!0}):window.location.href=C(e)}else window.location.href=window.env.pathPrefix||"/"},50)});return i.jsxs(L,{did:(r=window.blocklet)==null?void 0:r.appPid,children:[i.jsx(S,{children:i.jsx("title",{children:l("pageTitle.invite")})}),i.jsx(W,{className:"page-invite",children:i.jsx(F,{...c,getDataFn:h,checkFn:d.get,createPassportSvg:T,onLoginSuccess:f,inService:!0})})]})}const W=j.div`
|
|
2
2
|
width: 560px;
|
|
3
3
|
max-width: 100%;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ba as B}from"./index-QlD_x8dd.js";var w={exports:{}},b={exports:{}};(function(f,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;function d(l){"@babel/helpers - typeof";return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},d(l)}function s(l){var r=typeof l=="string"||l instanceof String;if(!r){var n=d(l);throw l===null?n="null":n==="object"&&(n=l.constructor.name),new TypeError("Expected a string but received a ".concat(n))}}f.exports=t.default,f.exports.default=t.default})(b,b.exports);var h=b.exports,E={exports:{}};(function(f,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var d=s(h);function s(n){return n&&n.__esModule?n:{default:n}}function l(n){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(n)}function r(n,e){(0,d.default)(n);var i,c;l(e)==="object"?(i=e.min||0,c=e.max):(i=arguments[1],c=arguments[2]);var u=encodeURI(n).split(/%..|./).length-1;return u>=i&&(typeof c>"u"||u<=c)}f.exports=t.default,f.exports.default=t.default})(E,E.exports);var W=E.exports,D={exports:{}},S={exports:{}};(function(f,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;function d(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;for(var r in l)typeof s[r]>"u"&&(s[r]=l[r]);return s}f.exports=t.default,f.exports.default=t.default})(S,S.exports);var R=S.exports;(function(f,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var d=l(h),s=l(R);function l(e){return e&&e.__esModule?e:{default:e}}var r={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function n(e,i){(0,d.default)(e),i=(0,s.default)(i,r),i.allow_trailing_dot&&e[e.length-1]==="."&&(e=e.substring(0,e.length-1)),i.allow_wildcard===!0&&e.indexOf("*.")===0&&(e=e.substring(2));var c=e.split("."),u=c[c.length-1];return i.require_tld&&(c.length<2||!i.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(u)||/\s/.test(u))||!i.allow_numeric_tld&&/^\d+$/.test(u)?!1:c.every(function(_){return!(_.length>63&&!i.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(_)||/[\uff01-\uff5e]/.test(_)||/^-|-$/.test(_)||!i.allow_underscores&&/_/.test(_))})}f.exports=t.default,f.exports.default=t.default})(D,D.exports);var k=D.exports,P={exports:{}};(function(f,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var d=s(h);function s(u){return u&&u.__esModule?u:{default:u}}var l="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",r="(".concat(l,"[.]){3}").concat(l),n=new RegExp("^".concat(r,"$")),e="(?:[0-9a-fA-F]{1,4})",i=new RegExp("^("+"(?:".concat(e,":){7}(?:").concat(e,"|:)|")+"(?:".concat(e,":){6}(?:").concat(r,"|:").concat(e,"|:)|")+"(?:".concat(e,":){5}(?::").concat(r,"|(:").concat(e,"){1,2}|:)|")+"(?:".concat(e,":){4}(?:(:").concat(e,"){0,1}:").concat(r,"|(:").concat(e,"){1,3}|:)|")+"(?:".concat(e,":){3}(?:(:").concat(e,"){0,2}:").concat(r,"|(:").concat(e,"){1,4}|:)|")+"(?:".concat(e,":){2}(?:(:").concat(e,"){0,3}:").concat(r,"|(:").concat(e,"){1,5}|:)|")+"(?:".concat(e,":){1}(?:(:").concat(e,"){0,4}:").concat(r,"|(:").concat(e,"){1,6}|:)|")+"(?::((?::".concat(e,"){0,5}:").concat(r,"|(?::").concat(e,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function c(u){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,d.default)(u),_=String(_),_?_==="4"?n.test(u):_==="6"?i.test(u):!1:c(u,4)||c(u,6)}f.exports=t.default,f.exports.default=t.default})(P,P.exports);var X=P.exports;(function(f,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=N;var d=e(h),s=e(W),l=e(k),r=e(X),n=e(R);function e(o){return o&&o.__esModule?o:{default:o}}var i={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},c=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,u=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,_=/^[a-z\d]+$/,U=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,z=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,C=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,L=254;function O(o){var a=o.replace(/^"(.+)"$/,"$1");if(!a.trim())return!1;var m=/[\.";<>]/.test(a);if(m){if(a===o)return!1;var x=a.split('"').length===a.split('\\"').length;if(!x)return!1}return!0}function N(o,a){if((0,d.default)(o),a=(0,n.default)(a,i),a.require_display_name||a.allow_display_name){var m=o.match(c);if(m){var x=m[1];if(o=o.replace(x,"").replace(/(^<|>$)/g,""),x.endsWith(" ")&&(x=x.slice(0,-1)),!O(x))return!1}else if(a.require_display_name)return!1}if(!a.ignore_max_length&&o.length>L)return!1;var $=o.split("@"),v=$.pop(),F=v.toLowerCase();if(a.host_blacklist.includes(F)||a.host_whitelist.length>0&&!a.host_whitelist.includes(F))return!1;var g=$.join("@");if(a.domain_specific_validation&&(F==="gmail.com"||F==="googlemail.com")){g=g.toLowerCase();var q=g.split("+")[0];if(!(0,s.default)(q.replace(/\./g,""),{min:6,max:30}))return!1;for(var A=q.split("."),p=0;p<A.length;p++)if(!_.test(A[p]))return!1}if(a.ignore_max_length===!1&&(!(0,s.default)(g,{max:64})||!(0,s.default)(v,{max:254})))return!1;if(!(0,l.default)(v,{require_tld:a.require_tld,ignore_max_length:a.ignore_max_length,allow_underscores:a.allow_underscores})){if(!a.allow_ip_domain)return!1;if(!(0,r.default)(v)){if(!v.startsWith("[")||!v.endsWith("]"))return!1;var M=v.slice(1,-1);if(M.length===0||!(0,r.default)(M))return!1}}if(g[0]==='"')return g=g.slice(1,g.length-1),a.allow_utf8_local_part?C.test(g):U.test(g);for(var Q=a.allow_utf8_local_part?z:u,I=g.split("."),y=0;y<I.length;y++)if(!Q.test(I[y]))return!1;return!(a.blacklisted_chars&&g.search(new RegExp("[".concat(a.blacklisted_chars,"]+"),"g"))!==-1)}f.exports=t.default,f.exports.default=t.default})(w,w.exports);var Z=w.exports;const H=B(Z);export{h as a,k as b,X as c,H as i,R as m};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as w,e as v,u as I,J as P,Y as T,l as d,j as t,n as j,H as k,B as R,Z as S,x as E,y as F,z as L,L as C}from"./index-
|
|
1
|
+
import{d as w,e as v,u as I,J as P,Y as T,l as d,j as t,n as j,H as k,B as R,Z as S,x as E,y as F,z as L,L as C}from"./index-QlD_x8dd.js";import{I as W}from"./invitation-BwKojWaX.js";import{F as N}from"./fullpage-rXGgPgMY.js";import{g as H}from"./get-safe-url-BGvd_0xZ.js";import"./index-DDNG6fLw.js";import"./emotion-cache.browser.esm-aAjwJ1iO.js";import"./purify.es-DutPtr9A.js";import"./index-BXGkZOts.js";import"./use-passport-id-B-b-_oYF.js";import"./session-D-MTuhsH.js";import"./sdk-BJmcT0ZX.js";import"./CheckCircle-CftBFr7p.js";import"./wrap-locale-7OInKuIE.js";import"./Link-do-3aPDc.js";function X(m){var p;const{searchParams:a}=new URL(window.location.href),{api:r,session:f}=w(),u=v(),{t:h}=I(),n=a.get("id"),c=a.get("redirect"),l=P({state:""}),s=T(async()=>{if(!n)return null;const{data:e}=await r.get("/api/invitation",{params:{inviteId:n,mode:"issue-passport"}});return e}),x=d(()=>{if(s.error)throw s.error;return s==null?void 0:s.data}),g=d(async(e,o=i=>i)=>{e&&(e.sessionToken&&E(o(e.sessionToken)),e.refreshToken&&F(o(e.refreshToken)),e.visitorId&&L(o(e.visitorId)),await f.refresh()),setTimeout(()=>{if(c){const i=decodeURIComponent(c);i.startsWith(C.WELLKNOWN_SERVICE_PATH_PREFIX)?u(i,{replace:!0}):window.location.href=H(i)}else window.location.href=window.env.pathPrefix||"/"},50)});return s.loading?t.jsx(j,{}):t.jsxs(N,{did:(p=window.blocklet)==null?void 0:p.appPid,children:[t.jsx(k,{children:t.jsx("title",{children:h("pageTitle.issuePassport")})}),t.jsx(R,{className:"page-invite",sx:{width:"560px",maxWidth:"100%",height:"100%"},children:t.jsx(W,{...m,action:"issue-passport",getDataFn:x,checkFn:r.get,createPassportSvg:S,onLoginSuccess:g,inService:!0,status:l.state})})]})}export{X as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{fq as _e,aQ as R,r as g,aP as U,aN as F,dx as ee,eB as $e,aS as te,j as s,L as le,aV as H,u as q,T as _,aA as Ee,a7 as ne,n as O,fp as Ne,P as i,a2 as V,a3 as G,b1 as Pe,ap as Ie,b as E,v as $,ag as Me,aX as Le,aZ as se,B as N,e$ as ce,c as z,l as ze,ex as qe,a as Oe}from"./index-BVLp3zZE.js";import{d as Be}from"./Add-CR7sEnVa.js";import{L as Ue,d as Ae}from"./MoreVert-BARSVa3q.js";import{D as We}from"./DialogContentText-B5A4L1En.js";import{T as de}from"./TextField-2xBiC_3q.js";import{A as ue}from"./Alert-_hy6i2TW.js";import{f as B}from"./format-error-Df_KEQEo.js";import{d as fe}from"./Launch-BSl6NDxk.js";import{d as Fe}from"./Done-CiqJ6IHh.js";import{d as pe}from"./DeleteOutline-BCCT6DJp.js";import{C as He}from"./click-to-copy-DR1rP4vm.js";import{S as Ve}from"./shorten-label-7p5yfIoM.js";import{u as Ge,C as me}from"./confirm-B2Vr_bWi.js";import{u as Je}from"./session-DWSqwZ_P.js";import{g as P}from"./get-safe-url-Doxyyx5u.js";import{W as Ke}from"./did-address-BT02fs0z.js";import{A as Xe}from"./Avatar-BGI1LZff.js";import{B as re}from"./ButtonGroup-Z3Ze7Bhq.js";import{f as Qe,j as Ye,a as Ze,c as et,d as tt,b as nt,e as st,g as rt,h as ot}from"./jss-plugin-props-sort.esm-CbSCROUY.js";const it=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function at(e={}){const{disableGlobal:r=!1,productionPrefix:n="jss",seed:t=""}=e,o=t===""?"":`${t}-`;let u=0;const d=()=>(u+=1,u);return(l,c)=>{const a=c.options.name;if(a&&a.indexOf("Mui")===0&&!c.options.link&&!r){if(it.indexOf(l.key)!==-1)return`Mui-${l.key}`;const f=`${o}${a}-${l.key}`;return!c.options.theme[_e]||t!==""?f:`${f}-${d()}`}return`${o}${n}${d()}`}}function lt(){return{plugins:[Qe(),Ye(),Ze(),et(),tt(),typeof window>"u"?null:nt(),st()]}}function he(e={}){const{baseClasses:r,newClasses:n,Component:t}=e;if(!n)return r;const o=R({},r);return Object.keys(n).forEach(u=>{n[u]&&(o[u]=`${r[u]} ${n[u]}`)}),o}const L={set:(e,r,n,t)=>{let o=e.get(r);o||(o=new Map,e.set(r,o)),o.set(n,t)},get:(e,r,n)=>{const t=e.get(r);return t?t.get(n):void 0},delete:(e,r,n)=>{e.get(r).delete(n)}},ct=rt(lt()),dt=at(),ut=new Map,ft={disableGeneration:!1,generateClassName:dt,jss:ct,sheetsCache:null,sheetsManager:ut,sheetsRegistry:null},pt=g.createContext(ft);let oe=-1e9;function mt(){return oe+=1,oe}const ht=["variant"];function ie(e){return e.length===0}function gt(e){const{variant:r}=e,n=U(e,ht);let t=r||"";return Object.keys(n).sort().forEach(o=>{o==="color"?t+=ie(t)?e[o]:F(e[o]):t+=`${ie(t)?o:F(o)}${F(e[o].toString())}`}),t}const xt={};function vt(e){const r=typeof e=="function";return{create:(n,t)=>{let o;try{o=r?e(n):e}catch(c){throw c}if(!t||!n.components||!n.components[t]||!n.components[t].styleOverrides&&!n.components[t].variants)return o;const u=n.components[t].styleOverrides||{},d=n.components[t].variants||[],l=R({},o);return Object.keys(u).forEach(c=>{l[c]=ee(l[c]||{},u[c])}),d.forEach(c=>{const a=gt(c.props);l[a]=ee(l[a]||{},c.style)}),l},options:{}}}const yt=["name","classNamePrefix","Component","defaultTheme"];function St({state:e,stylesOptions:r},n,t){if(r.disableGeneration)return n||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let o=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,o=!0),n!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=n,o=!0),o&&(e.cacheClasses.value=he({baseClasses:e.cacheClasses.lastJSS,newClasses:n,Component:t})),e.cacheClasses.value}function jt({state:e,theme:r,stylesOptions:n,stylesCreator:t,name:o},u){if(n.disableGeneration)return;let d=L.get(n.sheetsManager,t,r);d||(d={refs:0,staticSheet:null,dynamicStyles:null},L.set(n.sheetsManager,t,r,d));const l=R({},t.options,n,{theme:r,flip:typeof n.flip=="boolean"?n.flip:r.direction==="rtl"});l.generateId=l.serverGenerateClassName||l.generateClassName;const c=n.sheetsRegistry;if(d.refs===0){let a;n.sheetsCache&&(a=L.get(n.sheetsCache,t,r));const f=t.create(r,o);a||(a=n.jss.createStyleSheet(f,R({link:!1},l)),a.attach(),n.sheetsCache&&L.set(n.sheetsCache,t,r,a)),c&&c.add(a),d.staticSheet=a,d.dynamicStyles=ot(f)}if(d.dynamicStyles){const a=n.jss.createStyleSheet(d.dynamicStyles,R({link:!0},l));a.update(u),a.attach(),e.dynamicSheet=a,e.classes=he({baseClasses:d.staticSheet.classes,newClasses:a.classes}),c&&c.add(a)}else e.classes=d.staticSheet.classes;d.refs+=1}function Ct({state:e},r){e.dynamicSheet&&e.dynamicSheet.update(r)}function bt({state:e,theme:r,stylesOptions:n,stylesCreator:t}){if(n.disableGeneration)return;const o=L.get(n.sheetsManager,t,r);o.refs-=1;const u=n.sheetsRegistry;o.refs===0&&(L.delete(n.sheetsManager,t,r),n.jss.removeStyleSheet(o.staticSheet),u&&u.remove(o.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),u&&u.remove(e.dynamicSheet))}function wt(e,r){const n=g.useRef([]);let t;const o=g.useMemo(()=>({}),r);n.current!==o&&(n.current=o,t=e()),g.useEffect(()=>()=>{t&&t()},[o])}function J(e,r={}){const{name:n,classNamePrefix:t,Component:o,defaultTheme:u=xt}=r,d=U(r,yt),l=vt(e),c=n||t||"makeStyles";return l.options={index:mt(),name:n,meta:c,classNamePrefix:c},(f={})=>{const h=Ge()||u,v=R({},g.useContext(pt),d),j=g.useRef(),m=g.useRef();return wt(()=>{const C={name:n,state:{},stylesCreator:l,stylesOptions:v,theme:h};return jt(C,f),m.current=!1,j.current=C,()=>{bt(C)}},[h,l]),g.useEffect(()=>{m.current&&Ct(j.current,f),m.current=!0}),St(j.current,f.classes,o)}}const Rt=["name"],kt=["children","className","clone","component"];function Tt(e,r){const n={};return Object.keys(e).forEach(t=>{r.indexOf(t)===-1&&(n[t]=e[t])}),n}function Dt(e){return(n,t={})=>{const{name:o}=t,u=U(t,Rt);let d=o;const c=J(typeof n=="function"?h=>({root:v=>n(R({theme:h},v))}):{root:n},R({Component:e,name:o||e.displayName,classNamePrefix:d},u));let a;n.filterProps&&(a=n.filterProps,delete n.filterProps),n.propTypes&&(n.propTypes,delete n.propTypes);const f=g.forwardRef(function(v,j){const{children:m,className:S,clone:C,component:w}=v,y=U(v,kt),p=c(v),b=te(p.root,S);let k=y;if(a&&(k=Tt(k,a)),C)return g.cloneElement(m,R({className:te(m.props.className,b)},k));if(typeof m=="function")return m(R({className:b},k));const T=w||e;return s.jsx(T,R({ref:j,className:b},k,{children:m}))});return $e(f,e),f}}const{NODE_MODES:ae}=le,_t=({mode:e,previousMode:r}={})=>e===ae.SERVERLESS||r===ae.SERVERLESS;var $t={isInServerlessMode:_t};const Et=J(e=>({addMenuItemRoot:{marginTop:"8px",justifyContent:"center",color:e.palette.primary.main,lineHeight:"3.2"}}));function ge({disabled:e,storeList:r,teamDid:n,onAdd:t,scope:o,hiddenChildren:u,open:d,onClose:l}){const{api:c}=H(),[a,f]=g.useState(!1),[h,v]=g.useState(!0),[j,m]=g.useState(!1),[S,C]=g.useState(""),[w,y]=g.useState(""),{t:p}=q(),b=Et(),k=async()=>{f(!0);try{const{decoded:x}=Ne(S,r);await c.addBlockletStore({input:{teamDid:n,url:x,scope:o}}),t(x),m(!1),l()}catch(x){const I=`${p("store.blockletRegistry.addFailed")} ${B(x)}`;y(I)}finally{f(!1)}},T=()=>{m(!1),l()};return s.jsxs(s.Fragment,{children:[!u&&s.jsxs(Ue,{button:!0,disabled:e,className:b.addMenuItemRoot,onClick:()=>{m(!0)},children:[s.jsx(Be,{font:!0}),s.jsx(_,{variant:"inherit",children:p("store.blockletRegistry.addRegistry")})]}),s.jsxs(Ee,{title:p("store.blockletRegistry.addRegistry"),fullWidth:!0,maxWidth:"md",open:d||j,onClose:T,PaperProps:{style:{minHeight:"auto"}},actions:s.jsxs(s.Fragment,{children:[s.jsx(ne,{onClick:x=>{x.stopPropagation(),T()},color:"inherit",children:p("common.cancel")}),s.jsxs(ne,{onClick:x=>{x.stopPropagation(),k()},color:"primary","data-cy":"install-blocklet-next-step",disabled:a||!S||h,variant:"contained",autoFocus:!0,children:[a&&s.jsx(O,{size:16}),p("common.confirm")]})]}),children:[s.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:s.jsx(We,{component:"div",children:s.jsx(_,{component:"div",children:s.jsx(de,{label:p("store.blockletRegistry.registryUrl"),autoComplete:"off",variant:"outlined",name:"url","data-cy":"add-blocklet-store-url",fullWidth:!0,value:S,onChange:x=>{y(null);let I=!1;x.target.value.trim()||(I=!0),x.target.value.trim()||y(p("store.blockletRegistry.registryUrlEmpty")),C(x.target.value),v(I)},disabled:a,onKeyPress:x=>{x.key==="Enter"&&(x.preventDefault(),x.target.value.trim()?k():y(p("store.blockletRegistry.registryUrlEmpty")))}})})})}),!!w&&s.jsx(ue,{severity:"error",style:{width:"100%"},children:w})]})]})}ge.propTypes={teamDid:i.string.isRequired,disabled:i.bool,storeList:i.array,onAdd:i.func,scope:i.string,hiddenChildren:i.bool,open:i.bool,onClose:i.func};ge.defaultProps={disabled:!1,storeList:[],onAdd:()=>{},scope:"",hiddenChildren:!1,open:!1,onClose:()=>{}};var K={},Nt=G;Object.defineProperty(K,"__esModule",{value:!0});var xe=K.default=void 0,Pt=Nt(V()),It=s;xe=K.default=(0,Pt.default)((0,It.jsx)("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"}),"LinkOutlined");var X={},Mt=G;Object.defineProperty(X,"__esModule",{value:!0});var ve=X.default=void 0,Lt=Mt(V()),zt=s;ve=X.default=(0,Lt.default)((0,zt.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"}),"BackupOutlined");function Q({title:e,description:r,confirmPlaceholder:n,cancel:t,confirm:o,params:u,onCancel:d,onConfirm:l,keyName:c}){const{t:a}=q(),f={title:()=>s.jsxs("div",{children:[e,s.jsx(Ve,{sx:{fontSize:"14px"},maxLength:64,children:` (${c})`})]}),description:(h,v)=>{const j=m=>{v({...m,__disableConfirm:m.__disableConfirm})};return s.jsxs("div",{children:[s.jsx(ue,{severity:"warning",style:{width:"100%"},children:a("common.notice")}),s.jsx("div",{style:{marginTop:24,marginBottom:24},dangerouslySetInnerHTML:{__html:r}}),s.jsxs("div",{style:{marginBottom:24},children:[a("common.click"),":",s.jsx(He,{"data-cy":"click-copy",children:c})]}),s.jsx(_,{component:"div",children:s.jsx(de,{label:n,autoComplete:"off","data-cy":"delete-confirm-input",variant:"outlined",fullWidth:!0,autoFocus:!0,value:h.inputVal,onChange:m=>{j({...h,inputVal:m.target.value,__disableConfirm:c!==m.target.value})}})})]})},confirm:o,cancel:t,onConfirm:l,onCancel:d,params:{inputVal:"",__disableConfirm:!0,...u}};return s.jsx(me,{title:f.title,description:f.description,confirm:f.confirm,cancel:f.cancel,params:f.params,onConfirm:f.onConfirm,onCancel:f.onCancel})}Q.propTypes={title:i.any.isRequired,keyName:i.any.isRequired,description:i.any.isRequired,confirmPlaceholder:i.any.isRequired,cancel:i.string,confirm:i.string,params:i.object,onCancel:i.func,onConfirm:i.func.isRequired};Q.defaultProps={onCancel:()=>{},cancel:"",confirm:"Confirm",params:{}};function W({store:e,teamDid:r,onDelete:n,children:t,projectId:o="",scope:u=""}){const{api:d}=H(),{t:l}=q(),c=Pe(),[a,f]=g.useState(!1),[h,v]=g.useState(null),j=Ie(),m=()=>{f(!1),v(null)},S=async()=>{var y;try{f(!0),await d.deleteBlockletStore({input:{teamDid:r,url:e.url,projectId:o,scope:u}}),await((y=c==null?void 0:c.actions)==null?void 0:y.refreshBlocklet()),n&&typeof n=="function"&&n()}catch(p){$.error(`Remove Blocklet Store Error: ${B(p)}`)}finally{f(!1),v(null)}},C={keyName:e.url,title:l("store.blockletRegistry.deleteRegistry"),description:l("store.blockletRegistry.deleteDesc",{name:`<b>${e.url}</b>`,color:j.palette.error.main}),confirmPlaceholder:l("store.blockletRegistry.confirmDesc",{name:e.url}),confirm:l("common.delConfirm"),cancel:l("common.cancel"),onConfirm:S,onCancel:m},w=y=>{e.protected||(y.stopPropagation(),v(C))};return s.jsxs(s.Fragment,{children:[t?s.jsx("span",{onClick:w,children:t}):s.jsx(E,{"data-cy":"store-action-delete",color:"primary",disabled:a,onClick:w,size:"small",children:s.jsx(pe,{sx:{zoom:.95}})}),h&&s.jsx(Q,{keyName:h.keyName,title:h.title,description:h.description,confirmPlaceholder:h.confirmPlaceholder,confirm:h.confirm,cancel:h.cancel,params:h.params,onConfirm:h.onConfirm,onCancel:h.onCancel})]})}W.propTypes={children:i.node,teamDid:i.string.isRequired,store:i.object.isRequired,onDelete:i.func,projectId:i.string,scope:i.string};W.defaultProps={children:null,projectId:"",scope:"",onDelete:()=>{}};var Y={},qt=G;Object.defineProperty(Y,"__esModule",{value:!0});var ye=Y.default=void 0,Ot=qt(V()),Bt=s;ye=Y.default=(0,Ot.default)((0,Bt.jsx)("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"}),"LinkOff");const Ut=({store:e,userDid:r})=>{var t;const n=((t=window.blocklet)==null?void 0:t.tenantMode)!==Me.BLOCKLET_TENANT_MODES.MULTIPLE;return e.protected?!1:e.scope&&e.scope===r?!0:n?e.scope==="studio":!1};function Z({connectedStore:e,onDisconnect:r,onDelete:n,store:t,teamDid:o,projectId:u}){var y;const[d,l]=g.useState(null),c=!!d,{t:a}=q(),{session:f}=Je(),[h,v]=g.useState(!1),j=p=>{if(p.stopPropagation(),e!=null&&e.developerDid){const b=ce.from(JSON.stringify({forceConnected:e==null?void 0:e.developerDid}),"utf8").toString("base64");window.open(P(`${z(t.url,"developer/blocklets")}?__did-connect__=${b}`,{allowDomains:null}))}else window.open(P(`${z(t.url,"developer/blocklets")}`,{allowDomains:null}))},m=p=>{l(p.currentTarget)},S=()=>{l(null)},C=()=>{v(!1),r()},w=[{label:a("common.visitStore"),action:j,icon:fe},{label:a("common.disconnect"),action:()=>{S(),v(!0)},icon:ye,hidden:!e}];return s.jsxs(s.Fragment,{children:[s.jsx(E,{ref:d,color:"primary",onClick:m,size:"small",children:s.jsx(Ae,{sx:{zoom:.95}})}),s.jsxs(Le,{anchorEl:d,open:c,onClose:S,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:[w.map(p=>p.hidden?null:s.jsxs(se,{dense:!0,onClick:p.action,disabled:p.disabled,children:[p.icon&&s.jsx(p.icon,{color:"action",sx:{marginRight:1}}),s.jsx(N,{color:"action",children:p.label})]},p.label)),Ut({store:t,userDid:(y=f==null?void 0:f.user)==null?void 0:y.did})&&s.jsx(W,{store:t,onDelete:n,teamDid:o,projectId:u,scope:t.scope||"studio",children:s.jsxs(se,{dense:!0,disabled:t.protected,children:[s.jsx(pe,{sx:{color:t.protected?"action":"error.main",marginRight:1}}),s.jsx(N,{color:t.protected?"action":"error.main",children:a("common.delete")})]})})]}),h&&s.jsx(me,{displayError:!0,title:`${a("common.disconnect")} ${t.name}`,description:a("blocklet.publish.disconnectStoreTip"),confirm:a("common.confirm"),onConfirm:C,onCancel:()=>v(!1)})]})}Z.propTypes={connectedStore:i.object.isRequired,onDisconnect:i.func,onDelete:i.func,store:i.object.isRequired,teamDid:i.string.isRequired,projectId:i.string};Z.defaultProps={projectId:"",onDelete:()=>{},onDisconnect:()=>{}};function At({messageType:e,onOpen:r,onClose:n}){const t=g.useRef(null),o=g.useRef(null),u=async l=>{setTimeout(()=>{try{n==null||n()}catch{}},10*1e3),t.current&&(clearInterval(o.current),t.current.close());const c=Math.random().toString(36).slice(2);t.current=window.open(`${le.WELLKNOWN_SERVICE_PATH_PREFIX}/open-window?key=${c}`,"_blank"),r==null||r(t.current),o.current=setInterval(()=>{(!t.current||t.current.closed)&&(t.current=null,clearInterval(o.current),setTimeout(()=>{n==null||n()},1100))},200),await Promise.resolve(l(t.current,a=>{if(!t.current){localStorage.setItem(`open-window-url-${c}`,JSON.stringify({url:a,time:Date.now()}));return}t.current.location.href=P(a,{allowDomains:null})}))},d=ze(l=>{const{type:c,error:a}=l.data;t.current&&c===e&&a&&($.error(a),n==null||n())});return g.useEffect(()=>(window.addEventListener("message",d),()=>{window.removeEventListener("message",d)}),[d]),u}function A({connectedStore:e,sx:r,...n}){return s.jsx(Xe,{sx:{width:24,height:24,...r},src:z(e.storeUrl,`/.well-known/service/user/avatar/${e.developerDid}?imageFilter=resize&w=120&h=120`),...n})}A.propTypes={connectedStore:i.object.isRequired,sx:i.object};A.defaultProps={sx:{}};function Se({storeUrl:e,storeName:r,developerDid:n,published:t}){const{t:o}=q(),u=()=>{if(n){const d=ce.from(JSON.stringify({forceConnected:n}),"utf8").toString("base64");window.open(P(`${z(e,"developer/blocklets")}?__did-connect__=${d}`,{allowDomains:null}))}else window.open(P(`${z(e,"developer/blocklets")}`,{allowDomains:null}))};return s.jsxs(N,{children:[s.jsx(_,{variant:"subtitle2",children:o(t?"blocklet.publish.publishToStoreSuccess":"blocklet.publish.uploadToStoreSuccess",{name:r})}),s.jsx(E,{size:"small",sx:{mt:1},onClick:u,variant:"contained",color:"success",children:o("common.visitTarget",{name:r})})]})}Se.propTypes={storeName:i.string.isRequired,storeUrl:i.string.isRequired,developerDid:i.string.isRequired,published:i.bool.isRequired};const je={CONNECT:"connect",SELECT:"select"},Wt=J(()=>({buttonText:{textTransform:"none !important"},iconRoot:{minWidth:24},box:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",overflow:"hidden",width:"100%"},menuName:{flexShrink:1,display:"flex",flexDirection:"column",overflow:"hidden",flex:1},actions:{flex:1,display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center"},title:{fontSize:16,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},url:{fontSize:14,opacity:.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},buttonLine:{height:"100%",width:"1px",backgroundColor:"#e0e0e0"}})),Ft=Dt(({className:e,...r})=>s.jsx(Oe,{...r,classes:{popper:e}}))(({theme:e})=>({[`& .${qe.tooltip}`]:{backgroundColor:"#fff",color:"rgba(0, 0, 0, 0.87)",borderRadius:8,padding:e.spacing(2),fontSize:e.typography.pxToRem(12),border:"1px solid rgba(0,0,0,0.08)",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.05)"}}));function Ce({teamDid:e,projectId:r,releaseId:n,store:t,onDelete:o,kind:u,published:d,connectedStore:l,releaseType:c,onPublish:a,onOpenConnectStore:f,onSelectConnectStore:h,behavior:v,scope:j=""}){const m=Wt(),{t:S}=q(),{api:C,info:w,inService:y}=H(),[p,b]=g.useState(!1),k=At({messageType:"connect-store-message",onOpen:()=>b(!0),onClose:()=>b(!1)}),T=u==="publish",x=!!l,I=D=>{if(D.stopPropagation(),T){window.open(P(z(t.url,"developer/blocklets"),{allowDomains:null}));return}window.open(P(t.url,{allowDomains:null}))},be=()=>{if(v===je.SELECT){h(t);return}k(async(D,Te)=>{try{const M=await C.connectToStore({input:{did:e,storeUrl:t.url,storeId:t.id,storeName:t.name,projectId:r}});if(!(M!=null&&M.url)){$.error("failed to connect to store");return}Te(M.url),await f({did:e,projectId:r,storeId:t.id}),b(!1)}catch(M){const De=B(M);$.error(De),b(!1)}})},we=async()=>{try{await C.disconnectFromStore({input:{did:e,storeId:t.id,projectId:r,storeScope:j}}),o()}catch(D){$.error(B(D))}},Re=()=>{b(!0),C.publishToStore({input:{did:e,storeId:t.id,storeName:t.name,projectId:r,releaseId:n,type:c}}).then(D=>{$.success(s.jsx(Se,{storeName:l.storeName,storeUrl:l.storeUrl,developerDid:l.developerDid,published:D.url==="published"}),{duration:1e4}),a==null||a(null)}).catch(D=>{$.error(B(D)),a==null||a(D)}).finally(()=>{b(!1)})};g.useEffect(()=>{x&&b(!1)},[x]);const ke=g.useMemo(()=>!(y&&$t.isInServerlessMode(w)),[y,w]);return s.jsxs("div",{className:m.box,children:[!T&&p&&s.jsx(O,{sx:{marginRight:2},size:16}),s.jsxs("div",{className:m.menuName,children:[s.jsx(N,{sx:{display:"flex",flexDirection:"row"},children:s.jsx(_,{component:"span",className:m.title,variant:"subtitle1",children:t.name})}),s.jsx(_,{className:m.url,component:"span",variant:"inherit",children:`${t.url}`})]}),s.jsxs("div",{className:m.actions,children:[l&&s.jsx(Ft,{placement:"top",title:s.jsxs(N,{children:[s.jsx(_,{component:"span",variant:"caption",sx:{opacity:.7},children:S("blocklet.publish.developerInfo")}),s.jsxs(N,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:1,mt:1},children:[s.jsx(A,{connectedStore:l,sx:{width:42,height:42}}),s.jsxs(N,{sx:{flex:1},children:[s.jsx(_,{component:"span",variant:"subtitle1",children:l.developerName}),s.jsx(Ke,{size:14,copyable:!0,compact:!0,responsive:!1,did:l.developerDid})]})]})]}),children:s.jsx("div",{children:s.jsx(A,{connectedStore:l,sx:{marginRight:1,cursor:"help"}})})}),T&&s.jsxs(re,{disabled:p,variant:"outlined",sx:{height:38},size:"small",children:[!x&&s.jsxs(E,{sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},onClick:be,children:[p?s.jsx(O,{sx:{marginRight:1},size:16}):s.jsx(xe,{sx:{marginRight:1}}),S("common.connect")]}),x&&d&&s.jsxs(E,{disabled:!0,sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},children:[p?s.jsx(O,{sx:{marginRight:1},size:16}):s.jsx(Fe,{sx:{marginRight:1}}),S("common.uploaded")]}),x&&!d&&s.jsxs(E,{sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},onClick:Re,children:[p?s.jsx(O,{sx:{marginRight:1},size:16}):s.jsx(ve,{sx:{marginRight:1,fontSize:20}}),S("common.upload")]}),s.jsx(Z,{projectId:r,connectedStore:l,store:t,onDelete:o,teamDid:e,onDisconnect:we})]}),!T&&s.jsxs(re,{disabled:p,variant:"outlined",sx:{height:36},size:"small",children:[s.jsx(E,{"data-cy":"store-open-url",onClick:I,children:s.jsx(fe,{sx:{zoom:.9}})}),!t.protected&&ke&&s.jsx(W,{store:t,onDelete:o,teamDid:e,scope:""})]})]})]})}Ce.propTypes={kind:i.string,teamDid:i.string.isRequired,published:i.bool,connectedStore:i.shape({storeName:i.string,storeId:i.string,storeUrl:i.string,developerDid:i.string,developerName:i.string}),projectId:i.string,releaseId:i.string,releaseType:i.string,store:i.shape({id:i.string.isRequired,name:i.string.isRequired,url:i.string.isRequired,protected:i.bool,connected:i.bool}).isRequired,scope:i.string,onDelete:i.func,onPublish:i.func,onOpenConnectStore:i.func,behavior:i.string,onSelectConnectStore:i.func};Ce.defaultProps={kind:"store",published:!1,connectedStore:null,releaseId:"",projectId:"",releaseType:"",scope:"",behavior:je.CONNECT,onPublish:()=>{},onDelete:()=>{},onOpenConnectStore:()=>{},onSelectConnectStore:()=>{}};export{ge as A,Q as C,Ce as S,Se as U,Ut as c,J as m,$t as s,At as u};
|
|
1
|
+
import{fr as _e,aN as R,r as g,aP as U,cg as F,dw as ee,eB as $e,aR as te,j as s,L as le,aT as H,u as q,T as _,aA as Ee,a7 as ne,n as O,fq as Ne,P as i,a2 as V,a3 as G,a$ as Pe,ap as Ie,b as E,v as $,ag as Me,aV as Le,aX as se,B as N,f0 as ce,c as z,l as ze,ex as qe,a as Oe}from"./index-QlD_x8dd.js";import{d as Be}from"./Add-D5zbmaC5.js";import{L as Ue,d as Ae}from"./MoreVert-BjFlbgru.js";import{D as We}from"./DialogContentText-IZR4LQpV.js";import{T as de}from"./TextField-BglN0hgt.js";import{A as ue}from"./Alert-Ca5BIvJG.js";import{f as B}from"./format-error-GcNyovLo.js";import{d as fe}from"./Launch-CJJrZfJ6.js";import{d as Fe}from"./Done-J-vanIHZ.js";import{d as pe}from"./DeleteOutline-BcT7g0hk.js";import{C as He}from"./click-to-copy-C9J7yUGA.js";import{S as Ve}from"./shorten-label-hxNbJ_Ks.js";import{u as Ge,C as me}from"./confirm-SG-ap-ws.js";import{u as Je}from"./session-D-MTuhsH.js";import{g as P}from"./get-safe-url-pcN_rKAr.js";import{W as Ke}from"./did-address-lS5AVM-f.js";import{A as Xe}from"./Avatar-B41sfbMu.js";import{B as re}from"./ButtonGroup-C95pZQfV.js";import{f as Ye,j as Qe,a as Ze,c as et,d as tt,b as nt,e as st,g as rt,h as ot}from"./jss-plugin-props-sort.esm-DT8CRQwC.js";const it=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function at(e={}){const{disableGlobal:r=!1,productionPrefix:n="jss",seed:t=""}=e,o=t===""?"":`${t}-`;let u=0;const d=()=>(u+=1,u);return(l,c)=>{const a=c.options.name;if(a&&a.indexOf("Mui")===0&&!c.options.link&&!r){if(it.indexOf(l.key)!==-1)return`Mui-${l.key}`;const f=`${o}${a}-${l.key}`;return!c.options.theme[_e]||t!==""?f:`${f}-${d()}`}return`${o}${n}${d()}`}}function lt(){return{plugins:[Ye(),Qe(),Ze(),et(),tt(),typeof window>"u"?null:nt(),st()]}}function he(e={}){const{baseClasses:r,newClasses:n,Component:t}=e;if(!n)return r;const o=R({},r);return Object.keys(n).forEach(u=>{n[u]&&(o[u]=`${r[u]} ${n[u]}`)}),o}const L={set:(e,r,n,t)=>{let o=e.get(r);o||(o=new Map,e.set(r,o)),o.set(n,t)},get:(e,r,n)=>{const t=e.get(r);return t?t.get(n):void 0},delete:(e,r,n)=>{e.get(r).delete(n)}},ct=rt(lt()),dt=at(),ut=new Map,ft={disableGeneration:!1,generateClassName:dt,jss:ct,sheetsCache:null,sheetsManager:ut,sheetsRegistry:null},pt=g.createContext(ft);let oe=-1e9;function mt(){return oe+=1,oe}const ht=["variant"];function ie(e){return e.length===0}function gt(e){const{variant:r}=e,n=U(e,ht);let t=r||"";return Object.keys(n).sort().forEach(o=>{o==="color"?t+=ie(t)?e[o]:F(e[o]):t+=`${ie(t)?o:F(o)}${F(e[o].toString())}`}),t}const xt={};function vt(e){const r=typeof e=="function";return{create:(n,t)=>{let o;try{o=r?e(n):e}catch(c){throw c}if(!t||!n.components||!n.components[t]||!n.components[t].styleOverrides&&!n.components[t].variants)return o;const u=n.components[t].styleOverrides||{},d=n.components[t].variants||[],l=R({},o);return Object.keys(u).forEach(c=>{l[c]=ee(l[c]||{},u[c])}),d.forEach(c=>{const a=gt(c.props);l[a]=ee(l[a]||{},c.style)}),l},options:{}}}const yt=["name","classNamePrefix","Component","defaultTheme"];function St({state:e,stylesOptions:r},n,t){if(r.disableGeneration)return n||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let o=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,o=!0),n!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=n,o=!0),o&&(e.cacheClasses.value=he({baseClasses:e.cacheClasses.lastJSS,newClasses:n,Component:t})),e.cacheClasses.value}function jt({state:e,theme:r,stylesOptions:n,stylesCreator:t,name:o},u){if(n.disableGeneration)return;let d=L.get(n.sheetsManager,t,r);d||(d={refs:0,staticSheet:null,dynamicStyles:null},L.set(n.sheetsManager,t,r,d));const l=R({},t.options,n,{theme:r,flip:typeof n.flip=="boolean"?n.flip:r.direction==="rtl"});l.generateId=l.serverGenerateClassName||l.generateClassName;const c=n.sheetsRegistry;if(d.refs===0){let a;n.sheetsCache&&(a=L.get(n.sheetsCache,t,r));const f=t.create(r,o);a||(a=n.jss.createStyleSheet(f,R({link:!1},l)),a.attach(),n.sheetsCache&&L.set(n.sheetsCache,t,r,a)),c&&c.add(a),d.staticSheet=a,d.dynamicStyles=ot(f)}if(d.dynamicStyles){const a=n.jss.createStyleSheet(d.dynamicStyles,R({link:!0},l));a.update(u),a.attach(),e.dynamicSheet=a,e.classes=he({baseClasses:d.staticSheet.classes,newClasses:a.classes}),c&&c.add(a)}else e.classes=d.staticSheet.classes;d.refs+=1}function Ct({state:e},r){e.dynamicSheet&&e.dynamicSheet.update(r)}function bt({state:e,theme:r,stylesOptions:n,stylesCreator:t}){if(n.disableGeneration)return;const o=L.get(n.sheetsManager,t,r);o.refs-=1;const u=n.sheetsRegistry;o.refs===0&&(L.delete(n.sheetsManager,t,r),n.jss.removeStyleSheet(o.staticSheet),u&&u.remove(o.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),u&&u.remove(e.dynamicSheet))}function wt(e,r){const n=g.useRef([]);let t;const o=g.useMemo(()=>({}),r);n.current!==o&&(n.current=o,t=e()),g.useEffect(()=>()=>{t&&t()},[o])}function J(e,r={}){const{name:n,classNamePrefix:t,Component:o,defaultTheme:u=xt}=r,d=U(r,yt),l=vt(e),c=n||t||"makeStyles";return l.options={index:mt(),name:n,meta:c,classNamePrefix:c},(f={})=>{const h=Ge()||u,v=R({},g.useContext(pt),d),j=g.useRef(),m=g.useRef();return wt(()=>{const C={name:n,state:{},stylesCreator:l,stylesOptions:v,theme:h};return jt(C,f),m.current=!1,j.current=C,()=>{bt(C)}},[h,l]),g.useEffect(()=>{m.current&&Ct(j.current,f),m.current=!0}),St(j.current,f.classes,o)}}const Rt=["name"],kt=["children","className","clone","component"];function Tt(e,r){const n={};return Object.keys(e).forEach(t=>{r.indexOf(t)===-1&&(n[t]=e[t])}),n}function Dt(e){return(n,t={})=>{const{name:o}=t,u=U(t,Rt);let d=o;const c=J(typeof n=="function"?h=>({root:v=>n(R({theme:h},v))}):{root:n},R({Component:e,name:o||e.displayName,classNamePrefix:d},u));let a;n.filterProps&&(a=n.filterProps,delete n.filterProps),n.propTypes&&(n.propTypes,delete n.propTypes);const f=g.forwardRef(function(v,j){const{children:m,className:S,clone:C,component:w}=v,y=U(v,kt),p=c(v),b=te(p.root,S);let k=y;if(a&&(k=Tt(k,a)),C)return g.cloneElement(m,R({className:te(m.props.className,b)},k));if(typeof m=="function")return m(R({className:b},k));const T=w||e;return s.jsx(T,R({ref:j,className:b},k,{children:m}))});return $e(f,e),f}}const{NODE_MODES:ae}=le,_t=({mode:e,previousMode:r}={})=>e===ae.SERVERLESS||r===ae.SERVERLESS;var $t={isInServerlessMode:_t};const Et=J(e=>({addMenuItemRoot:{marginTop:"8px",justifyContent:"center",color:e.palette.primary.main,lineHeight:"3.2"}}));function ge({disabled:e,storeList:r,teamDid:n,onAdd:t,scope:o,hiddenChildren:u,open:d,onClose:l}){const{api:c}=H(),[a,f]=g.useState(!1),[h,v]=g.useState(!0),[j,m]=g.useState(!1),[S,C]=g.useState(""),[w,y]=g.useState(""),{t:p}=q(),b=Et(),k=async()=>{f(!0);try{const{decoded:x}=Ne(S,r);await c.addBlockletStore({input:{teamDid:n,url:x,scope:o}}),t(x),m(!1),l()}catch(x){const I=`${p("store.blockletRegistry.addFailed")} ${B(x)}`;y(I)}finally{f(!1)}},T=()=>{m(!1),l()};return s.jsxs(s.Fragment,{children:[!u&&s.jsxs(Ue,{button:!0,disabled:e,className:b.addMenuItemRoot,onClick:()=>{m(!0)},children:[s.jsx(Be,{font:!0}),s.jsx(_,{variant:"inherit",children:p("store.blockletRegistry.addRegistry")})]}),s.jsxs(Ee,{title:p("store.blockletRegistry.addRegistry"),fullWidth:!0,maxWidth:"md",open:d||j,onClose:T,PaperProps:{style:{minHeight:"auto"}},actions:s.jsxs(s.Fragment,{children:[s.jsx(ne,{onClick:x=>{x.stopPropagation(),T()},color:"inherit",children:p("common.cancel")}),s.jsxs(ne,{onClick:x=>{x.stopPropagation(),k()},color:"primary","data-cy":"install-blocklet-next-step",disabled:a||!S||h,variant:"contained",autoFocus:!0,children:[a&&s.jsx(O,{size:16}),p("common.confirm")]})]}),children:[s.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:s.jsx(We,{component:"div",children:s.jsx(_,{component:"div",children:s.jsx(de,{label:p("store.blockletRegistry.registryUrl"),autoComplete:"off",variant:"outlined",name:"url","data-cy":"add-blocklet-store-url",fullWidth:!0,value:S,onChange:x=>{y(null);let I=!1;x.target.value.trim()||(I=!0),x.target.value.trim()||y(p("store.blockletRegistry.registryUrlEmpty")),C(x.target.value),v(I)},disabled:a,onKeyPress:x=>{x.key==="Enter"&&(x.preventDefault(),x.target.value.trim()?k():y(p("store.blockletRegistry.registryUrlEmpty")))}})})})}),!!w&&s.jsx(ue,{severity:"error",style:{width:"100%"},children:w})]})]})}ge.propTypes={teamDid:i.string.isRequired,disabled:i.bool,storeList:i.array,onAdd:i.func,scope:i.string,hiddenChildren:i.bool,open:i.bool,onClose:i.func};ge.defaultProps={disabled:!1,storeList:[],onAdd:()=>{},scope:"",hiddenChildren:!1,open:!1,onClose:()=>{}};var K={},Nt=G;Object.defineProperty(K,"__esModule",{value:!0});var xe=K.default=void 0,Pt=Nt(V()),It=s;xe=K.default=(0,Pt.default)((0,It.jsx)("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"}),"LinkOutlined");var X={},Mt=G;Object.defineProperty(X,"__esModule",{value:!0});var ve=X.default=void 0,Lt=Mt(V()),zt=s;ve=X.default=(0,Lt.default)((0,zt.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"}),"BackupOutlined");function Y({title:e,description:r,confirmPlaceholder:n,cancel:t,confirm:o,params:u,onCancel:d,onConfirm:l,keyName:c}){const{t:a}=q(),f={title:()=>s.jsxs("div",{children:[e,s.jsx(Ve,{sx:{fontSize:"14px"},maxLength:64,children:` (${c})`})]}),description:(h,v)=>{const j=m=>{v({...m,__disableConfirm:m.__disableConfirm})};return s.jsxs("div",{children:[s.jsx(ue,{severity:"warning",style:{width:"100%"},children:a("common.notice")}),s.jsx("div",{style:{marginTop:24,marginBottom:24},dangerouslySetInnerHTML:{__html:r}}),s.jsxs("div",{style:{marginBottom:24},children:[a("common.click"),":",s.jsx(He,{"data-cy":"click-copy",children:c})]}),s.jsx(_,{component:"div",children:s.jsx(de,{label:n,autoComplete:"off","data-cy":"delete-confirm-input",variant:"outlined",fullWidth:!0,autoFocus:!0,value:h.inputVal,onChange:m=>{j({...h,inputVal:m.target.value,__disableConfirm:c!==m.target.value})}})})]})},confirm:o,cancel:t,onConfirm:l,onCancel:d,params:{inputVal:"",__disableConfirm:!0,...u}};return s.jsx(me,{title:f.title,description:f.description,confirm:f.confirm,cancel:f.cancel,params:f.params,onConfirm:f.onConfirm,onCancel:f.onCancel})}Y.propTypes={title:i.any.isRequired,keyName:i.any.isRequired,description:i.any.isRequired,confirmPlaceholder:i.any.isRequired,cancel:i.string,confirm:i.string,params:i.object,onCancel:i.func,onConfirm:i.func.isRequired};Y.defaultProps={onCancel:()=>{},cancel:"",confirm:"Confirm",params:{}};function W({store:e,teamDid:r,onDelete:n,children:t,projectId:o="",scope:u=""}){const{api:d}=H(),{t:l}=q(),c=Pe(),[a,f]=g.useState(!1),[h,v]=g.useState(null),j=Ie(),m=()=>{f(!1),v(null)},S=async()=>{var y;try{f(!0),await d.deleteBlockletStore({input:{teamDid:r,url:e.url,projectId:o,scope:u}}),await((y=c==null?void 0:c.actions)==null?void 0:y.refreshBlocklet()),n&&typeof n=="function"&&n()}catch(p){$.error(`Remove Blocklet Store Error: ${B(p)}`)}finally{f(!1),v(null)}},C={keyName:e.url,title:l("store.blockletRegistry.deleteRegistry"),description:l("store.blockletRegistry.deleteDesc",{name:`<b>${e.url}</b>`,color:j.palette.error.main}),confirmPlaceholder:l("store.blockletRegistry.confirmDesc",{name:e.url}),confirm:l("common.delConfirm"),cancel:l("common.cancel"),onConfirm:S,onCancel:m},w=y=>{e.protected||(y.stopPropagation(),v(C))};return s.jsxs(s.Fragment,{children:[t?s.jsx("span",{onClick:w,children:t}):s.jsx(E,{"data-cy":"store-action-delete",color:"primary",disabled:a,onClick:w,size:"small",children:s.jsx(pe,{sx:{zoom:.95}})}),h&&s.jsx(Y,{keyName:h.keyName,title:h.title,description:h.description,confirmPlaceholder:h.confirmPlaceholder,confirm:h.confirm,cancel:h.cancel,params:h.params,onConfirm:h.onConfirm,onCancel:h.onCancel})]})}W.propTypes={children:i.node,teamDid:i.string.isRequired,store:i.object.isRequired,onDelete:i.func,projectId:i.string,scope:i.string};W.defaultProps={children:null,projectId:"",scope:"",onDelete:()=>{}};var Q={},qt=G;Object.defineProperty(Q,"__esModule",{value:!0});var ye=Q.default=void 0,Ot=qt(V()),Bt=s;ye=Q.default=(0,Ot.default)((0,Bt.jsx)("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"}),"LinkOff");const Ut=({store:e,userDid:r})=>{var t;const n=((t=window.blocklet)==null?void 0:t.tenantMode)!==Me.BLOCKLET_TENANT_MODES.MULTIPLE;return e.protected?!1:e.scope&&e.scope===r?!0:n?e.scope==="studio":!1};function Z({connectedStore:e,onDisconnect:r,onDelete:n,store:t,teamDid:o,projectId:u}){var y;const[d,l]=g.useState(null),c=!!d,{t:a}=q(),{session:f}=Je(),[h,v]=g.useState(!1),j=p=>{if(p.stopPropagation(),e!=null&&e.developerDid){const b=ce.from(JSON.stringify({forceConnected:e==null?void 0:e.developerDid}),"utf8").toString("base64");window.open(P(`${z(t.url,"developer/blocklets")}?__did-connect__=${b}`,{allowDomains:null}))}else window.open(P(`${z(t.url,"developer/blocklets")}`,{allowDomains:null}))},m=p=>{l(p.currentTarget)},S=()=>{l(null)},C=()=>{v(!1),r()},w=[{label:a("common.visitStore"),action:j,icon:fe},{label:a("common.disconnect"),action:()=>{S(),v(!0)},icon:ye,hidden:!e}];return s.jsxs(s.Fragment,{children:[s.jsx(E,{ref:d,color:"primary",onClick:m,size:"small",children:s.jsx(Ae,{sx:{zoom:.95}})}),s.jsxs(Le,{anchorEl:d,open:c,onClose:S,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:[w.map(p=>p.hidden?null:s.jsxs(se,{dense:!0,onClick:p.action,disabled:p.disabled,children:[p.icon&&s.jsx(p.icon,{color:"action",sx:{marginRight:1}}),s.jsx(N,{color:"action",children:p.label})]},p.label)),Ut({store:t,userDid:(y=f==null?void 0:f.user)==null?void 0:y.did})&&s.jsx(W,{store:t,onDelete:n,teamDid:o,projectId:u,scope:t.scope||"studio",children:s.jsxs(se,{dense:!0,disabled:t.protected,children:[s.jsx(pe,{sx:{color:t.protected?"action":"error.main",marginRight:1}}),s.jsx(N,{color:t.protected?"action":"error.main",children:a("common.delete")})]})})]}),h&&s.jsx(me,{displayError:!0,title:`${a("common.disconnect")} ${t.name}`,description:a("blocklet.publish.disconnectStoreTip"),confirm:a("common.confirm"),onConfirm:C,onCancel:()=>v(!1)})]})}Z.propTypes={connectedStore:i.object.isRequired,onDisconnect:i.func,onDelete:i.func,store:i.object.isRequired,teamDid:i.string.isRequired,projectId:i.string};Z.defaultProps={projectId:"",onDelete:()=>{},onDisconnect:()=>{}};function At({messageType:e,onOpen:r,onClose:n}){const t=g.useRef(null),o=g.useRef(null),u=async l=>{setTimeout(()=>{try{n==null||n()}catch{}},10*1e3),t.current&&(clearInterval(o.current),t.current.close());const c=Math.random().toString(36).slice(2);t.current=window.open(`${le.WELLKNOWN_SERVICE_PATH_PREFIX}/open-window?key=${c}`,"_blank"),r==null||r(t.current),o.current=setInterval(()=>{(!t.current||t.current.closed)&&(t.current=null,clearInterval(o.current),setTimeout(()=>{n==null||n()},1100))},200),await Promise.resolve(l(t.current,a=>{if(!t.current){localStorage.setItem(`open-window-url-${c}`,JSON.stringify({url:a,time:Date.now()}));return}t.current.location.href=P(a,{allowDomains:null})}))},d=ze(l=>{const{type:c,error:a}=l.data;t.current&&c===e&&a&&($.error(a),n==null||n())});return g.useEffect(()=>(window.addEventListener("message",d),()=>{window.removeEventListener("message",d)}),[d]),u}function A({connectedStore:e,sx:r,...n}){return s.jsx(Xe,{sx:{width:24,height:24,...r},src:z(e.storeUrl,`/.well-known/service/user/avatar/${e.developerDid}?imageFilter=resize&w=120&h=120`),...n})}A.propTypes={connectedStore:i.object.isRequired,sx:i.object};A.defaultProps={sx:{}};function Se({storeUrl:e,storeName:r,developerDid:n,published:t}){const{t:o}=q(),u=()=>{if(n){const d=ce.from(JSON.stringify({forceConnected:n}),"utf8").toString("base64");window.open(P(`${z(e,"developer/blocklets")}?__did-connect__=${d}`,{allowDomains:null}))}else window.open(P(`${z(e,"developer/blocklets")}`,{allowDomains:null}))};return s.jsxs(N,{children:[s.jsx(_,{variant:"subtitle2",children:o(t?"blocklet.publish.publishToStoreSuccess":"blocklet.publish.uploadToStoreSuccess",{name:r})}),s.jsx(E,{size:"small",sx:{mt:1},onClick:u,variant:"contained",color:"success",children:o("common.visitTarget",{name:r})})]})}Se.propTypes={storeName:i.string.isRequired,storeUrl:i.string.isRequired,developerDid:i.string.isRequired,published:i.bool.isRequired};const je={CONNECT:"connect",SELECT:"select"},Wt=J(()=>({buttonText:{textTransform:"none !important"},iconRoot:{minWidth:24},box:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",overflow:"hidden",width:"100%"},menuName:{flexShrink:1,display:"flex",flexDirection:"column",overflow:"hidden",flex:1},actions:{flex:1,display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center"},title:{fontSize:16,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},url:{fontSize:14,opacity:.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},buttonLine:{height:"100%",width:"1px",backgroundColor:"#e0e0e0"}})),Ft=Dt(({className:e,...r})=>s.jsx(Oe,{...r,classes:{popper:e}}))(({theme:e})=>({[`& .${qe.tooltip}`]:{backgroundColor:"#fff",color:"rgba(0, 0, 0, 0.87)",borderRadius:8,padding:e.spacing(2),fontSize:e.typography.pxToRem(12),border:"1px solid rgba(0,0,0,0.08)",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.05)"}}));function Ce({teamDid:e,projectId:r,releaseId:n,store:t,onDelete:o,kind:u,published:d,connectedStore:l,releaseType:c,onPublish:a,onOpenConnectStore:f,onSelectConnectStore:h,behavior:v,scope:j=""}){const m=Wt(),{t:S}=q(),{api:C,info:w,inService:y}=H(),[p,b]=g.useState(!1),k=At({messageType:"connect-store-message",onOpen:()=>b(!0),onClose:()=>b(!1)}),T=u==="publish",x=!!l,I=D=>{if(D.stopPropagation(),T){window.open(P(z(t.url,"developer/blocklets"),{allowDomains:null}));return}window.open(P(t.url,{allowDomains:null}))},be=()=>{if(v===je.SELECT){h(t);return}k(async(D,Te)=>{try{const M=await C.connectToStore({input:{did:e,storeUrl:t.url,storeId:t.id,storeName:t.name,projectId:r}});if(!(M!=null&&M.url)){$.error("failed to connect to store");return}Te(M.url),await f({did:e,projectId:r,storeId:t.id}),b(!1)}catch(M){const De=B(M);$.error(De),b(!1)}})},we=async()=>{try{await C.disconnectFromStore({input:{did:e,storeId:t.id,projectId:r,storeScope:j}}),o()}catch(D){$.error(B(D))}},Re=()=>{b(!0),C.publishToStore({input:{did:e,storeId:t.id,storeName:t.name,projectId:r,releaseId:n,type:c}}).then(D=>{$.success(s.jsx(Se,{storeName:l.storeName,storeUrl:l.storeUrl,developerDid:l.developerDid,published:D.url==="published"}),{duration:1e4}),a==null||a(null)}).catch(D=>{$.error(B(D)),a==null||a(D)}).finally(()=>{b(!1)})};g.useEffect(()=>{x&&b(!1)},[x]);const ke=g.useMemo(()=>!(y&&$t.isInServerlessMode(w)),[y,w]);return s.jsxs("div",{className:m.box,children:[!T&&p&&s.jsx(O,{sx:{marginRight:2},size:16}),s.jsxs("div",{className:m.menuName,children:[s.jsx(N,{sx:{display:"flex",flexDirection:"row"},children:s.jsx(_,{component:"span",className:m.title,variant:"subtitle1",children:t.name})}),s.jsx(_,{className:m.url,component:"span",variant:"inherit",children:`${t.url}`})]}),s.jsxs("div",{className:m.actions,children:[l&&s.jsx(Ft,{placement:"top",title:s.jsxs(N,{children:[s.jsx(_,{component:"span",variant:"caption",sx:{opacity:.7},children:S("blocklet.publish.developerInfo")}),s.jsxs(N,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:1,mt:1},children:[s.jsx(A,{connectedStore:l,sx:{width:42,height:42}}),s.jsxs(N,{sx:{flex:1},children:[s.jsx(_,{component:"span",variant:"subtitle1",children:l.developerName}),s.jsx(Ke,{size:14,copyable:!0,compact:!0,responsive:!1,did:l.developerDid})]})]})]}),children:s.jsx("div",{children:s.jsx(A,{connectedStore:l,sx:{marginRight:1,cursor:"help"}})})}),T&&s.jsxs(re,{disabled:p,variant:"outlined",sx:{height:38},size:"small",children:[!x&&s.jsxs(E,{sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},onClick:be,children:[p?s.jsx(O,{sx:{marginRight:1},size:16}):s.jsx(xe,{sx:{marginRight:1}}),S("common.connect")]}),x&&d&&s.jsxs(E,{disabled:!0,sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},children:[p?s.jsx(O,{sx:{marginRight:1},size:16}):s.jsx(Fe,{sx:{marginRight:1}}),S("common.uploaded")]}),x&&!d&&s.jsxs(E,{sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},onClick:Re,children:[p?s.jsx(O,{sx:{marginRight:1},size:16}):s.jsx(ve,{sx:{marginRight:1,fontSize:20}}),S("common.upload")]}),s.jsx(Z,{projectId:r,connectedStore:l,store:t,onDelete:o,teamDid:e,onDisconnect:we})]}),!T&&s.jsxs(re,{disabled:p,variant:"outlined",sx:{height:36},size:"small",children:[s.jsx(E,{"data-cy":"store-open-url",onClick:I,children:s.jsx(fe,{sx:{zoom:.9}})}),!t.protected&&ke&&s.jsx(W,{store:t,onDelete:o,teamDid:e,scope:""})]})]})]})}Ce.propTypes={kind:i.string,teamDid:i.string.isRequired,published:i.bool,connectedStore:i.shape({storeName:i.string,storeId:i.string,storeUrl:i.string,developerDid:i.string,developerName:i.string}),projectId:i.string,releaseId:i.string,releaseType:i.string,store:i.shape({id:i.string.isRequired,name:i.string.isRequired,url:i.string.isRequired,protected:i.bool,connected:i.bool}).isRequired,scope:i.string,onDelete:i.func,onPublish:i.func,onOpenConnectStore:i.func,behavior:i.string,onSelectConnectStore:i.func};Ce.defaultProps={kind:"store",published:!1,connectedStore:null,releaseId:"",projectId:"",releaseType:"",scope:"",behavior:je.CONNECT,onPublish:()=>{},onDelete:()=>{},onOpenConnectStore:()=>{},onSelectConnectStore:()=>{}};export{ge as A,Y as C,Ce as S,Se as U,Ut as c,J as m,$t as s,At as u};
|
package/dist/assets/{jss-plugin-props-sort.esm-CbSCROUY.js → jss-plugin-props-sort.esm-DT8CRQwC.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{
|
|
2
|
-
`,space:" "}}function j(i,r){for(var t="",e=0;e<r;e++)t+=" ";return t+i}function T(i,r,t){t===void 0&&(t={});var e="";if(!r)return e;var n=t,s=n.indent,a=s===void 0?0:s,o=r.fallbacks;t.format===!1&&(a=-1/0);var l=C(t),f=l.linebreak,c=l.space;if(i&&a++,o)if(Array.isArray(o))for(var h=0;h<o.length;h++){var y=o[h];for(var g in y){var p=y[g];p!=null&&(e&&(e+=f),e+=j(g+":"+c+P(p)+";",a))}}else for(var m in o){var E=o[m];E!=null&&(e&&(e+=f),e+=j(m+":"+c+P(E)+";",a))}for(var W in r){var fe=r[W];fe!=null&&W!=="fallbacks"&&(e&&(e+=f),e+=j(W+":"+c+P(fe)+";",a))}return!e&&!t.allowEmpty||!i?e:(a--,e&&(e=""+f+e+f),j(""+i+c+"{"+e,a)+j("}",a))}var Ke=/([[\].#*$><+~=|^:(),"'`\s])/g,pe=typeof CSS<"u"&&CSS.escape,oe=function(i){return pe?pe(i):i.replace(Ke,"\\$1")},je=function(){function i(t,e,n){this.type="style",this.isProcessed=!1;var s=n.sheet,a=n.Renderer;this.key=t,this.options=n,this.style=e,s?this.renderer=s.renderer:a&&(this.renderer=new a)}var r=i.prototype;return r.prop=function(e,n,s){if(n===void 0)return this.style[e];var a=s?s.force:!1;if(!a&&this.style[e]===n)return this;var o=n;(!s||s.process!==!1)&&(o=this.options.jss.plugins.onChangeValue(n,e,this));var l=o==null||o===!1,f=e in this.style;if(l&&!f&&!a)return this;var c=l&&f;if(c?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var h=this.options.sheet;return h&&h.attached,this},i}(),
|
|
3
|
-
`);return n}return this.key+" "+this.value+";"},i}(),or={"@charset":!0,"@import":!0,"@namespace":!0},ur={onCreateRule:function(r,t,e){return r in or?new ar(r,t,e):null}},ye=[Le,
|
|
1
|
+
import{aN as v,eV as Ce,fG as de,aP as Ue}from"./index-QlD_x8dd.js";import{t as Ge}from"./toPropertyKey-PLuKRk1e.js";var ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},V=(typeof window>"u"?"undefined":ce(window))==="object"&&(typeof document>"u"?"undefined":ce(document))==="object"&&document.nodeType===9;function he(i,r){for(var t=0;t<r.length;t++){var e=r[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,Ge(e.key),e)}}function se(i,r,t){return r&&he(i.prototype,r),t&&he(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i}const St=Object.freeze(Object.defineProperty({__proto__:null,default:se},Symbol.toStringTag,{value:"Module"}));var qe={}.constructor;function F(i){if(i==null||typeof i!="object")return i;if(Array.isArray(i))return i.map(F);if(i.constructor!==qe)return i;var r={};for(var t in i)r[t]=F(i[t]);return r}function ae(i,r,t){i===void 0&&(i="unnamed");var e=t.jss,n=F(r),s=e.plugins.onCreateRule(i,n,t);return s||(i[0],null)}var ve=function(r,t){for(var e="",n=0;n<r.length&&r[n]!=="!important";n++)e&&(e+=t),e+=r[n];return e},P=function(r){if(!Array.isArray(r))return r;var t="";if(Array.isArray(r[0]))for(var e=0;e<r.length&&r[e]!=="!important";e++)t&&(t+=", "),t+=ve(r[e]," ");else t=ve(r,", ");return r[r.length-1]==="!important"&&(t+=" !important"),t};function C(i){return i&&i.format===!1?{linebreak:"",space:""}:{linebreak:`
|
|
2
|
+
`,space:" "}}function j(i,r){for(var t="",e=0;e<r;e++)t+=" ";return t+i}function T(i,r,t){t===void 0&&(t={});var e="";if(!r)return e;var n=t,s=n.indent,a=s===void 0?0:s,o=r.fallbacks;t.format===!1&&(a=-1/0);var l=C(t),f=l.linebreak,c=l.space;if(i&&a++,o)if(Array.isArray(o))for(var h=0;h<o.length;h++){var y=o[h];for(var g in y){var p=y[g];p!=null&&(e&&(e+=f),e+=j(g+":"+c+P(p)+";",a))}}else for(var m in o){var E=o[m];E!=null&&(e&&(e+=f),e+=j(m+":"+c+P(E)+";",a))}for(var W in r){var fe=r[W];fe!=null&&W!=="fallbacks"&&(e&&(e+=f),e+=j(W+":"+c+P(fe)+";",a))}return!e&&!t.allowEmpty||!i?e:(a--,e&&(e=""+f+e+f),j(""+i+c+"{"+e,a)+j("}",a))}var Ke=/([[\].#*$><+~=|^:(),"'`\s])/g,pe=typeof CSS<"u"&&CSS.escape,oe=function(i){return pe?pe(i):i.replace(Ke,"\\$1")},je=function(){function i(t,e,n){this.type="style",this.isProcessed=!1;var s=n.sheet,a=n.Renderer;this.key=t,this.options=n,this.style=e,s?this.renderer=s.renderer:a&&(this.renderer=new a)}var r=i.prototype;return r.prop=function(e,n,s){if(n===void 0)return this.style[e];var a=s?s.force:!1;if(!a&&this.style[e]===n)return this;var o=n;(!s||s.process!==!1)&&(o=this.options.jss.plugins.onChangeValue(n,e,this));var l=o==null||o===!1,f=e in this.style;if(l&&!f&&!a)return this;var c=l&&f;if(c?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var h=this.options.sheet;return h&&h.attached,this},i}(),Z=function(i){Ce(r,i);function r(e,n,s){var a;a=i.call(this,e,n,s)||this;var o=s.selector,l=s.scoped,f=s.sheet,c=s.generateId;return o?a.selectorText=o:l!==!1&&(a.id=c(de(de(a)),f),a.selectorText="."+oe(a.id)),a}var t=r.prototype;return t.applyTo=function(n){var s=this.renderer;if(s){var a=this.toJSON();for(var o in a)s.setProperty(n,o,a[o])}return this},t.toJSON=function(){var n={};for(var s in this.style){var a=this.style[s];typeof a!="object"?n[s]=a:Array.isArray(a)&&(n[s]=P(a))}return n},t.toString=function(n){var s=this.options.sheet,a=s?s.options.link:!1,o=a?v({},n,{allowEmpty:!0}):n;return T(this.selectorText,this.style,o)},se(r,[{key:"selector",set:function(n){if(n!==this.selectorText){this.selectorText=n;var s=this.renderer,a=this.renderable;if(!(!a||!s)){var o=s.setSelector(a,n);o||s.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),r}(je),Le={onCreateRule:function(r,t,e){return r[0]==="@"||e.parent&&e.parent.type==="keyframes"?null:new Z(r,t,e)}},$={indent:1,children:!0},Je=/@([\w-]+)/,De=function(){function i(t,e,n){this.type="conditional",this.isProcessed=!1,this.key=t;var s=t.match(Je);this.at=s?s[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new z(v({},n,{parent:this}));for(var a in e)this.rules.add(a,e[a]);this.rules.process()}var r=i.prototype;return r.getRule=function(e){return this.rules.get(e)},r.indexOf=function(e){return this.rules.indexOf(e)},r.addRule=function(e,n,s){var a=this.rules.add(e,n,s);return a?(this.options.jss.plugins.onProcessRule(a),a):null},r.replaceRule=function(e,n,s){var a=this.rules.replace(e,n,s);return a&&this.options.jss.plugins.onProcessRule(a),a},r.toString=function(e){e===void 0&&(e=$);var n=C(e),s=n.linebreak;if(e.indent==null&&(e.indent=$.indent),e.children==null&&(e.children=$.children),e.children===!1)return this.query+" {}";var a=this.rules.toString(e);return a?this.query+" {"+s+a+s+"}":""},i}(),He=/@container|@media|@supports\s+/,Be={onCreateRule:function(r,t,e){return He.test(r)?new De(r,t,e):null}},U={indent:1,children:!0},Fe=/@keyframes\s+([\w-]+)/,Q=function(){function i(t,e,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var s=t.match(Fe);s&&s[1]?this.name=s[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var a=n.scoped,o=n.sheet,l=n.generateId;this.id=a===!1?this.name:oe(l(this,o)),this.rules=new z(v({},n,{parent:this}));for(var f in e)this.rules.add(f,e[f],v({},n,{parent:this}));this.rules.process()}var r=i.prototype;return r.toString=function(e){e===void 0&&(e=U);var n=C(e),s=n.linebreak;if(e.indent==null&&(e.indent=U.indent),e.children==null&&(e.children=U.children),e.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(e);return a&&(a=""+s+a+s),this.at+" "+this.id+" {"+a+"}"},i}(),Ze=/@keyframes\s+/,Qe=/\$([\w-]+)/g,X=function(r,t){return typeof r=="string"?r.replace(Qe,function(e,n){return n in t?t[n]:e}):r},ge=function(r,t,e){var n=r[t],s=X(n,e);s!==n&&(r[t]=s)},Xe={onCreateRule:function(r,t,e){return typeof r=="string"&&Ze.test(r)?new Q(r,t,e):null},onProcessStyle:function(r,t,e){return t.type!=="style"||!e||("animation-name"in r&&ge(r,"animation-name",e.keyframes),"animation"in r&&ge(r,"animation",e.keyframes)),r},onChangeValue:function(r,t,e){var n=e.options.sheet;if(!n)return r;switch(t){case"animation":return X(r,n.keyframes);case"animation-name":return X(r,n.keyframes);default:return r}}},Ye=function(i){Ce(r,i);function r(){return i.apply(this,arguments)||this}var t=r.prototype;return t.toString=function(n){var s=this.options.sheet,a=s?s.options.link:!1,o=a?v({},n,{allowEmpty:!0}):n;return T(this.key,this.style,o)},r}(je),er={onCreateRule:function(r,t,e){return e.parent&&e.parent.type==="keyframes"?new Ye(r,t,e):null}},rr=function(){function i(t,e,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=t,this.style=e,this.options=n}var r=i.prototype;return r.toString=function(e){var n=C(e),s=n.linebreak;if(Array.isArray(this.style)){for(var a="",o=0;o<this.style.length;o++)a+=T(this.at,this.style[o]),this.style[o+1]&&(a+=s);return a}return T(this.at,this.style,e)},i}(),tr=/@font-face/,nr={onCreateRule:function(r,t,e){return tr.test(r)?new rr(r,t,e):null}},ir=function(){function i(t,e,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=t,this.style=e,this.options=n}var r=i.prototype;return r.toString=function(e){return T(this.key,this.style,e)},i}(),sr={onCreateRule:function(r,t,e){return r==="@viewport"||r==="@-ms-viewport"?new ir(r,t,e):null}},ar=function(){function i(t,e,n){this.type="simple",this.isProcessed=!1,this.key=t,this.value=e,this.options=n}var r=i.prototype;return r.toString=function(e){if(Array.isArray(this.value)){for(var n="",s=0;s<this.value.length;s++)n+=this.key+" "+this.value[s]+";",this.value[s+1]&&(n+=`
|
|
3
|
+
`);return n}return this.key+" "+this.value+";"},i}(),or={"@charset":!0,"@import":!0,"@namespace":!0},ur={onCreateRule:function(r,t,e){return r in or?new ar(r,t,e):null}},ye=[Le,Be,Xe,er,nr,sr,ur],lr={process:!0},me={force:!0,process:!0},z=function(){function i(t){this.map={},this.raw={},this.index=[],this.counter=0,this.options=t,this.classes=t.classes,this.keyframes=t.keyframes}var r=i.prototype;return r.add=function(e,n,s){var a=this.options,o=a.parent,l=a.sheet,f=a.jss,c=a.Renderer,h=a.generateId,y=a.scoped,g=v({classes:this.classes,parent:o,sheet:l,jss:f,Renderer:c,generateId:h,scoped:y,name:e,keyframes:this.keyframes,selector:void 0},s),p=e;e in this.raw&&(p=e+"-d"+this.counter++),this.raw[p]=n,p in this.classes&&(g.selector="."+oe(this.classes[p]));var m=ae(p,n,g);if(!m)return null;this.register(m);var E=g.index===void 0?this.index.length:g.index;return this.index.splice(E,0,m),m},r.replace=function(e,n,s){var a=this.get(e),o=this.index.indexOf(a);a&&this.remove(a);var l=s;return o!==-1&&(l=v({},s,{index:o})),this.add(e,n,l)},r.get=function(e){return this.map[e]},r.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},r.indexOf=function(e){return this.index.indexOf(e)},r.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},r.register=function(e){this.map[e.key]=e,e instanceof Z?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Q&&this.keyframes&&(this.keyframes[e.name]=e.id)},r.unregister=function(e){delete this.map[e.key],e instanceof Z?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Q&&delete this.keyframes[e.name]},r.update=function(){var e,n,s;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(e=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],s=arguments.length<=2?void 0:arguments[2]):(n=arguments.length<=0?void 0:arguments[0],s=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),n,s);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],n,s)},r.updateOne=function(e,n,s){s===void 0&&(s=lr);var a=this.options,o=a.jss.plugins,l=a.sheet;if(e.rules instanceof i){e.rules.update(n,s);return}var f=e.style;if(o.onUpdate(n,e,l,s),s.process&&f&&f!==e.style){o.onProcessStyle(e.style,e,l);for(var c in e.style){var h=e.style[c],y=f[c];h!==y&&e.prop(c,h,me)}for(var g in f){var p=e.style[g],m=f[g];p==null&&p!==m&&e.prop(g,null,me)}}},r.toString=function(e){for(var n="",s=this.options.sheet,a=s?s.options.link:!1,o=C(e),l=o.linebreak,f=0;f<this.index.length;f++){var c=this.index[f],h=c.toString(e);!h&&!a||(n&&(n+=l),n+=h)}return n},i}(),Oe=function(){function i(t,e){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=v({},e,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),e.Renderer&&(this.renderer=new e.Renderer(this)),this.rules=new z(this.options);for(var n in t)this.rules.add(n,t[n]);this.rules.process()}var r=i.prototype;return r.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},r.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},r.addRule=function(e,n,s){var a=this.queue;this.attached&&!a&&(this.queue=[]);var o=this.rules.add(e,n,s);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?(this.deployed&&(a?a.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),o):(this.deployed=!1,o)):null},r.replaceRule=function(e,n,s){var a=this.rules.get(e);if(!a)return this.addRule(e,n,s);var o=this.rules.replace(e,n,s);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?(this.deployed&&this.renderer&&(o?a.renderable&&this.renderer.replaceRule(a.renderable,o):this.renderer.deleteRule(a)),o):(this.deployed=!1,o)},r.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},r.addRules=function(e,n){var s=[];for(var a in e){var o=this.addRule(a,e[a],n);o&&s.push(o)}return s},r.getRule=function(e){return this.rules.get(e)},r.deleteRule=function(e){var n=typeof e=="object"?e:this.rules.get(e);return!n||this.attached&&!n.renderable?!1:(this.rules.remove(n),this.attached&&n.renderable&&this.renderer?this.renderer.deleteRule(n.renderable):!0)},r.indexOf=function(e){return this.rules.indexOf(e)},r.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},r.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},r.updateOne=function(e,n,s){return this.rules.updateOne(e,n,s),this},r.toString=function(e){return this.rules.toString(e)},i}(),fr=function(){function i(){this.plugins={internal:[],external:[]},this.registry={}}var r=i.prototype;return r.onCreateRule=function(e,n,s){for(var a=0;a<this.registry.onCreateRule.length;a++){var o=this.registry.onCreateRule[a](e,n,s);if(o)return o}return null},r.onProcessRule=function(e){if(!e.isProcessed){for(var n=e.options.sheet,s=0;s<this.registry.onProcessRule.length;s++)this.registry.onProcessRule[s](e,n);e.style&&this.onProcessStyle(e.style,e,n),e.isProcessed=!0}},r.onProcessStyle=function(e,n,s){for(var a=0;a<this.registry.onProcessStyle.length;a++)n.style=this.registry.onProcessStyle[a](n.style,n,s)},r.onProcessSheet=function(e){for(var n=0;n<this.registry.onProcessSheet.length;n++)this.registry.onProcessSheet[n](e)},r.onUpdate=function(e,n,s,a){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,n,s,a)},r.onChangeValue=function(e,n,s){for(var a=e,o=0;o<this.registry.onChangeValue.length;o++)a=this.registry.onChangeValue[o](a,n,s);return a},r.use=function(e,n){n===void 0&&(n={queue:"external"});var s=this.plugins[n.queue];s.indexOf(e)===-1&&(s.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,o){for(var l in o)l in a&&a[l].push(o[l]);return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},i}(),dr=function(){function i(){this.registry=[]}var r=i.prototype;return r.add=function(e){var n=this.registry,s=e.options.index;if(n.indexOf(e)===-1){if(n.length===0||s>=this.index){n.push(e);return}for(var a=0;a<n.length;a++)if(n[a].options.index>s){n.splice(a,0,e);return}}},r.reset=function(){this.registry=[]},r.remove=function(e){var n=this.registry.indexOf(e);this.registry.splice(n,1)},r.toString=function(e){for(var n=e===void 0?{}:e,s=n.attached,a=Ue(n,["attached"]),o=C(a),l=o.linebreak,f="",c=0;c<this.registry.length;c++){var h=this.registry[c];s!=null&&h.attached!==s||(f&&(f+=l),f+=h.toString(a))}return f},se(i,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),i}(),I=new dr,Y=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),ee="2f1acc6c3a606b082e5eef5e54414ffb";Y[ee]==null&&(Y[ee]=0);var be=Y[ee]++,Re=function(r){r===void 0&&(r={});var t=0,e=function(s,a){t+=1;var o="",l="";return a&&(a.options.classNamePrefix&&(l=a.options.classNamePrefix),a.options.jss.id!=null&&(o=String(a.options.jss.id))),r.minify?""+(l||"c")+be+o+t:l+s.key+"-"+be+(o?"-"+o:"")+"-"+t};return e},Ae=function(r){var t;return function(){return t||(t=r()),t}},cr=function(r,t){try{return r.attributeStyleMap?r.attributeStyleMap.get(t):r.style.getPropertyValue(t)}catch{return""}},hr=function(r,t,e){try{var n=e;if(Array.isArray(e)&&(n=P(e)),r.attributeStyleMap)r.attributeStyleMap.set(t,n);else{var s=n?n.indexOf("!important"):-1,a=s>-1?n.substr(0,s-1):n;r.style.setProperty(t,a,s>-1?"important":"")}}catch{return!1}return!0},vr=function(r,t){try{r.attributeStyleMap?r.attributeStyleMap.delete(t):r.style.removeProperty(t)}catch{}},pr=function(r,t){return r.selectorText=t,r.selectorText===t},Ie=Ae(function(){return document.querySelector("head")});function gr(i,r){for(var t=0;t<i.length;t++){var e=i[t];if(e.attached&&e.options.index>r.index&&e.options.insertionPoint===r.insertionPoint)return e}return null}function yr(i,r){for(var t=i.length-1;t>=0;t--){var e=i[t];if(e.attached&&e.options.insertionPoint===r.insertionPoint)return e}return null}function mr(i){for(var r=Ie(),t=0;t<r.childNodes.length;t++){var e=r.childNodes[t];if(e.nodeType===8&&e.nodeValue.trim()===i)return e}return null}function br(i){var r=I.registry;if(r.length>0){var t=gr(r,i);if(t&&t.renderer)return{parent:t.renderer.element.parentNode,node:t.renderer.element};if(t=yr(r,i),t&&t.renderer)return{parent:t.renderer.element.parentNode,node:t.renderer.element.nextSibling}}var e=i.insertionPoint;if(e&&typeof e=="string"){var n=mr(e);if(n)return{parent:n.parentNode,node:n.nextSibling}}return!1}function Rr(i,r){var t=r.insertionPoint,e=br(r);if(e!==!1&&e.parent){e.parent.insertBefore(i,e.node);return}if(t&&typeof t.nodeType=="number"){var n=t,s=n.parentNode;s&&s.insertBefore(i,n.nextSibling);return}Ie().appendChild(i)}var Sr=Ae(function(){var i=document.querySelector('meta[property="csp-nonce"]');return i?i.getAttribute("content"):null}),Se=function(r,t,e){try{"insertRule"in r?r.insertRule(t,e):"appendRule"in r&&r.appendRule(t)}catch{return!1}return r.cssRules[e]},xe=function(r,t){var e=r.cssRules.length;return t===void 0||t>e?e:t},xr=function(){var r=document.createElement("style");return r.textContent=`
|
|
4
4
|
`,r},Pr=function(){function i(t){this.getPropertyValue=cr,this.setProperty=hr,this.removeProperty=vr,this.setSelector=pr,this.hasInsertedRules=!1,this.cssRules=[],t&&I.add(t),this.sheet=t;var e=this.sheet?this.sheet.options:{},n=e.media,s=e.meta,a=e.element;this.element=a||xr(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),s&&this.element.setAttribute("data-meta",s);var o=Sr();o&&this.element.setAttribute("nonce",o)}var r=i.prototype;return r.attach=function(){if(!(this.element.parentNode||!this.sheet)){Rr(this.element,this.sheet.options);var e=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},r.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
|
|
5
5
|
`)}},r.deploy=function(){var e=this.sheet;if(e){if(e.options.link){this.insertRules(e.rules);return}this.element.textContent=`
|
|
6
6
|
`+e.toString()+`
|
|
@@ -10,5 +10,5 @@ import{aQ as v,eV as Ce,fF as de,aP as Ue}from"./index-BVLp3zZE.js";import{t as
|
|
|
10
10
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
11
11
|
* @website https://github.com/cssinjs/jss
|
|
12
12
|
* @license MIT
|
|
13
|
-
*/Cr();var _e=Date.now(),
|
|
14
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ne(i){return Ur(i)||
|
|
13
|
+
*/Cr();var _e=Date.now(),G="fnValues"+_e,q="fnStyle"+ ++_e,xt=function(){return{onCreateRule:function(t,e,n){if(typeof e!="function")return null;var s=ae(t,{},n);return s[q]=e,s},onProcessStyle:function(t,e){if(G in e||q in e)return t;var n={};for(var s in t){var a=t[s];typeof a=="function"&&(delete t[s],n[s]=a)}return e[G]=n,t},onUpdate:function(t,e,n,s){var a=e,o=a[q];o&&(a.style=o(t)||{});var l=a[G];if(l)for(var f in l)a.prop(f,l[f](t),s)}}},R="@global",re="@global ",Or=function(){function i(t,e,n){this.type="global",this.at=R,this.isProcessed=!1,this.key=t,this.options=n,this.rules=new z(v({},n,{parent:this}));for(var s in e)this.rules.add(s,e[s]);this.rules.process()}var r=i.prototype;return r.getRule=function(e){return this.rules.get(e)},r.addRule=function(e,n,s){var a=this.rules.add(e,n,s);return a&&this.options.jss.plugins.onProcessRule(a),a},r.replaceRule=function(e,n,s){var a=this.rules.replace(e,n,s);return a&&this.options.jss.plugins.onProcessRule(a),a},r.indexOf=function(e){return this.rules.indexOf(e)},r.toString=function(e){return this.rules.toString(e)},i}(),Ar=function(){function i(t,e,n){this.type="global",this.at=R,this.isProcessed=!1,this.key=t,this.options=n;var s=t.substr(re.length);this.rule=n.jss.createRule(s,e,v({},n,{parent:this}))}var r=i.prototype;return r.toString=function(e){return this.rule?this.rule.toString(e):""},i}(),Ir=/\s*,\s*/g;function Te(i,r){for(var t=i.split(Ir),e="",n=0;n<t.length;n++)e+=r+" "+t[n].trim(),t[n+1]&&(e+=", ");return e}function _r(i,r){var t=i.options,e=i.style,n=e?e[R]:null;if(n){for(var s in n)r.addRule(s,n[s],v({},t,{selector:Te(s,i.selector)}));delete e[R]}}function Tr(i,r){var t=i.options,e=i.style;for(var n in e)if(!(n[0]!=="@"||n.substr(0,R.length)!==R)){var s=Te(n.substr(R.length),i.selector);r.addRule(s,e[n],v({},t,{selector:s})),delete e[n]}}function Pt(){function i(t,e,n){if(!t)return null;if(t===R)return new Or(t,e,n);if(t[0]==="@"&&t.substr(0,re.length)===re)return new Ar(t,e,n);var s=n.parent;return s&&(s.type==="global"||s.options.parent&&s.options.parent.type==="global")&&(n.scoped=!1),!n.selector&&n.scoped===!1&&(n.selector=t),null}function r(t,e){t.type!=="style"||!e||(_r(t,e),Tr(t,e))}return{onCreateRule:i,onProcessRule:r}}var Pe=/\s*,\s*/g,Vr=/&/g,Er=/\$([\w-]+)/g;function kt(){function i(n,s){return function(a,o){var l=n.getRule(o)||s&&s.getRule(o);return l?l.selector:o}}function r(n,s){for(var a=s.split(Pe),o=n.split(Pe),l="",f=0;f<a.length;f++)for(var c=a[f],h=0;h<o.length;h++){var y=o[h];l&&(l+=", "),l+=y.indexOf("&")!==-1?y.replace(Vr,c):c+" "+y}return l}function t(n,s,a){if(a)return v({},a,{index:a.index+1});var o=n.options.nestingLevel;o=o===void 0?1:o+1;var l=v({},n.options,{nestingLevel:o,index:s.indexOf(n)+1});return delete l.name,l}function e(n,s,a){if(s.type!=="style")return n;var o=s,l=o.options.parent,f,c;for(var h in n){var y=h.indexOf("&")!==-1,g=h[0]==="@";if(!(!y&&!g)){if(f=t(o,l,f),y){var p=r(h,o.selector);c||(c=i(l,a)),p=p.replace(Er,c);var m=o.key+"-"+h;"replaceRule"in l?l.replaceRule(m,n[h],v({},f,{selector:p})):l.addRule(m,n[h],v({},f,{selector:p}))}else g&&l.addRule(h,{},f).addRule(o.key,n[h],{selector:o.selector});delete n[h]}}return n}return{onProcessStyle:e}}var Nr=/[A-Z]/g,Mr=/^ms-/,K={};function zr(i){return"-"+i.toLowerCase()}function Ve(i){if(K.hasOwnProperty(i))return K[i];var r=i.replace(Nr,zr);return K[i]=Mr.test(r)?"-"+r:r}function M(i){var r={};for(var t in i){var e=t.indexOf("--")===0?t:Ve(t);r[e]=i[t]}return i.fallbacks&&(Array.isArray(i.fallbacks)?r.fallbacks=i.fallbacks.map(M):r.fallbacks=M(i.fallbacks)),r}function wt(){function i(t){if(Array.isArray(t)){for(var e=0;e<t.length;e++)t[e]=M(t[e]);return t}return M(t)}function r(t,e,n){if(e.indexOf("--")===0)return t;var s=Ve(e);return e===s?t:(n.prop(s,t),null)}return{onProcessStyle:i,onChangeValue:r}}var u=ue&&CSS?CSS.px:"px",N=ue&&CSS?CSS.ms:"ms",k=ue&&CSS?CSS.percent:"%",Wr={"animation-delay":N,"animation-duration":N,"background-position":u,"background-position-x":u,"background-position-y":u,"background-size":u,border:u,"border-bottom":u,"border-bottom-left-radius":u,"border-bottom-right-radius":u,"border-bottom-width":u,"border-left":u,"border-left-width":u,"border-radius":u,"border-right":u,"border-right-width":u,"border-top":u,"border-top-left-radius":u,"border-top-right-radius":u,"border-top-width":u,"border-width":u,"border-block":u,"border-block-end":u,"border-block-end-width":u,"border-block-start":u,"border-block-start-width":u,"border-block-width":u,"border-inline":u,"border-inline-end":u,"border-inline-end-width":u,"border-inline-start":u,"border-inline-start-width":u,"border-inline-width":u,"border-start-start-radius":u,"border-start-end-radius":u,"border-end-start-radius":u,"border-end-end-radius":u,margin:u,"margin-bottom":u,"margin-left":u,"margin-right":u,"margin-top":u,"margin-block":u,"margin-block-end":u,"margin-block-start":u,"margin-inline":u,"margin-inline-end":u,"margin-inline-start":u,padding:u,"padding-bottom":u,"padding-left":u,"padding-right":u,"padding-top":u,"padding-block":u,"padding-block-end":u,"padding-block-start":u,"padding-inline":u,"padding-inline-end":u,"padding-inline-start":u,"mask-position-x":u,"mask-position-y":u,"mask-size":u,height:u,width:u,"min-height":u,"max-height":u,"min-width":u,"max-width":u,bottom:u,left:u,top:u,right:u,inset:u,"inset-block":u,"inset-block-end":u,"inset-block-start":u,"inset-inline":u,"inset-inline-end":u,"inset-inline-start":u,"box-shadow":u,"text-shadow":u,"column-gap":u,"column-rule":u,"column-rule-width":u,"column-width":u,"font-size":u,"font-size-delta":u,"letter-spacing":u,"text-decoration-thickness":u,"text-indent":u,"text-stroke":u,"text-stroke-width":u,"word-spacing":u,motion:u,"motion-offset":u,outline:u,"outline-offset":u,"outline-width":u,perspective:u,"perspective-origin-x":k,"perspective-origin-y":k,"transform-origin":k,"transform-origin-x":k,"transform-origin-y":k,"transform-origin-z":k,"transition-delay":N,"transition-duration":N,"vertical-align":u,"flex-basis":u,"shape-margin":u,size:u,gap:u,grid:u,"grid-gap":u,"row-gap":u,"grid-row-gap":u,"grid-column-gap":u,"grid-template-rows":u,"grid-template-columns":u,"grid-auto-rows":u,"grid-auto-columns":u,"box-shadow-x":u,"box-shadow-y":u,"box-shadow-blur":u,"box-shadow-spread":u,"font-line-height":u,"text-shadow-x":u,"text-shadow-y":u,"text-shadow-blur":u};function Ee(i){var r=/(-[a-z])/g,t=function(a){return a[1].toUpperCase()},e={};for(var n in i)e[n]=i[n],e[n.replace(r,t)]=i[n];return e}var $r=Ee(Wr);function _(i,r,t){if(r==null)return r;if(Array.isArray(r))for(var e=0;e<r.length;e++)r[e]=_(i,r[e],t);else if(typeof r=="object")if(i==="fallbacks")for(var n in r)r[n]=_(n,r[n],t);else for(var s in r)r[s]=_(i+"-"+s,r[s],t);else if(typeof r=="number"&&isNaN(r)===!1){var a=t[i]||$r[i];return a&&!(r===0&&a===u)?typeof a=="function"?a(r).toString():""+r+a:r.toString()}return r}function Ct(i){i===void 0&&(i={});var r=Ee(i);function t(n,s){if(s.type!=="style")return n;for(var a in n)n[a]=_(a,n[a],r);return n}function e(n,s){return _(s,n,r)}return{onProcessStyle:t,onChangeValue:e}}function te(i,r){(r==null||r>i.length)&&(r=i.length);for(var t=0,e=Array(r);t<r;t++)e[t]=i[t];return e}function Ur(i){if(Array.isArray(i))return te(i)}function Gr(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function qr(i,r){if(i){if(typeof i=="string")return te(i,r);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?te(i,r):void 0}}function Kr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ne(i){return Ur(i)||Gr(i)||qr(i)||Kr()}const jt=Object.freeze(Object.defineProperty({__proto__:null,default:Ne},Symbol.toStringTag,{value:"Module"}));var O="",ne="",Me="",ze="",Lr=V&&"ontouchstart"in document.documentElement;if(V){var L={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Jr=document.createElement("p"),J=Jr.style,Dr="Transform";for(var D in L)if(D+Dr in J){O=D,ne=L[D];break}O==="Webkit"&&"msHyphens"in J&&(O="ms",ne=L.ms,ze="edge"),O==="Webkit"&&"-apple-trailing-word"in J&&(Me="apple")}var d={js:O,css:ne,vendor:Me,browser:ze,isTouch:Lr};function Hr(i){return i[1]==="-"||d.js==="ms"?i:"@"+d.css+"keyframes"+i.substr(10)}var Br={noPrefill:["appearance"],supportedProperty:function(r){return r!=="appearance"?!1:d.js==="ms"?"-webkit-"+r:d.css+r}},Fr={noPrefill:["color-adjust"],supportedProperty:function(r){return r!=="color-adjust"?!1:d.js==="Webkit"?d.css+"print-"+r:r}},Zr=/[-\s]+(.)?/g;function Qr(i,r){return r?r.toUpperCase():""}function le(i){return i.replace(Zr,Qr)}function S(i){return le("-"+i)}var Xr={noPrefill:["mask"],supportedProperty:function(r,t){if(!/^mask/.test(r))return!1;if(d.js==="Webkit"){var e="mask-image";if(le(e)in t)return r;if(d.js+S(e)in t)return d.css+r}return r}},Yr={noPrefill:["text-orientation"],supportedProperty:function(r){return r!=="text-orientation"?!1:d.vendor==="apple"&&!d.isTouch?d.css+r:r}},et={noPrefill:["transform"],supportedProperty:function(r,t,e){return r!=="transform"?!1:e.transform?r:d.css+r}},rt={noPrefill:["transition"],supportedProperty:function(r,t,e){return r!=="transition"?!1:e.transition?r:d.css+r}},tt={noPrefill:["writing-mode"],supportedProperty:function(r){return r!=="writing-mode"?!1:d.js==="Webkit"||d.js==="ms"&&d.browser!=="edge"?d.css+r:r}},nt={noPrefill:["user-select"],supportedProperty:function(r){return r!=="user-select"?!1:d.js==="Moz"||d.js==="ms"||d.vendor==="apple"?d.css+r:r}},it={supportedProperty:function(r,t){if(!/^break-/.test(r))return!1;if(d.js==="Webkit"){var e="WebkitColumn"+S(r);return e in t?d.css+"column-"+r:!1}if(d.js==="Moz"){var n="page"+S(r);return n in t?"page-"+r:!1}return!1}},st={supportedProperty:function(r,t){if(!/^(border|margin|padding)-inline/.test(r))return!1;if(d.js==="Moz")return r;var e=r.replace("-inline","");return d.js+S(e)in t?d.css+e:!1}},at={supportedProperty:function(r,t){return le(r)in t?r:!1}},ot={supportedProperty:function(r,t){var e=S(r);return r[0]==="-"||r[0]==="-"&&r[1]==="-"?r:d.js+e in t?d.css+r:d.js!=="Webkit"&&"Webkit"+e in t?"-webkit-"+r:!1}},ut={supportedProperty:function(r){return r.substring(0,11)!=="scroll-snap"?!1:d.js==="ms"?""+d.css+r:r}},lt={supportedProperty:function(r){return r!=="overscroll-behavior"?!1:d.js==="ms"?d.css+"scroll-chaining":r}},ft={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},dt={supportedProperty:function(r,t){var e=ft[r];return e&&d.js+S(e)in t?d.css+e:!1}},We={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ct=Object.keys(We),ht=function(r){return d.css+r},vt={supportedProperty:function(r,t,e){var n=e.multiple;if(ct.indexOf(r)>-1){var s=We[r];if(!Array.isArray(s))return d.js+S(s)in t?d.css+s:!1;if(!n)return!1;for(var a=0;a<s.length;a++)if(!(d.js+S(s[0])in t))return!1;return s.map(ht)}return!1}},$e=[Br,Fr,Xr,Yr,et,rt,tt,nt,it,st,at,ot,ut,lt,dt,vt],ke=$e.filter(function(i){return i.supportedProperty}).map(function(i){return i.supportedProperty}),pt=$e.filter(function(i){return i.noPrefill}).reduce(function(i,r){return i.push.apply(i,Ne(r.noPrefill)),i},[]),A,x={};if(V){A=document.createElement("p");var H=window.getComputedStyle(document.documentElement,"");for(var B in H)isNaN(B)||(x[H[B]]=H[B]);pt.forEach(function(i){return delete x[i]})}function ie(i,r){if(r===void 0&&(r={}),!A)return i;if(x[i]!=null)return x[i];(i==="transition"||i==="transform")&&(r[i]=i in A.style);for(var t=0;t<ke.length&&(x[i]=ke[t](i,A.style,r),!x[i]);t++);try{A.style[i]=""}catch{return!1}return x[i]}var w={},gt={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},yt=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,b;function mt(i,r,t){if(r==="var")return"var";if(r==="all")return"all";if(t==="all")return", all";var e=r?ie(r):", "+ie(t);return e||r||t}V&&(b=document.createElement("p"));function we(i,r){var t=r;if(!b||i==="content")return r;if(typeof t!="string"||!isNaN(parseInt(t,10)))return t;var e=i+t;if(w[e]!=null)return w[e];try{b.style[i]=t}catch{return w[e]=!1,!1}if(gt[i])t=t.replace(yt,mt);else if(b.style[i]===""&&(t=d.css+t,t==="-ms-flex"&&(b.style[i]="-ms-flexbox"),b.style[i]=t,b.style[i]===""))return w[e]=!1,!1;return b.style[i]="",w[e]=t,w[e]}function Ot(){function i(n){if(n.type==="keyframes"){var s=n;s.at=Hr(s.at)}}function r(n){for(var s in n){var a=n[s];if(s==="fallbacks"&&Array.isArray(a)){n[s]=a.map(r);continue}var o=!1,l=ie(s);l&&l!==s&&(o=!0);var f=!1,c=we(l,P(a));c&&c!==a&&(f=!0),(o||f)&&(o&&delete n[s],n[l||s]=c||a)}return n}function t(n,s){return s.type!=="style"?n:r(n)}function e(n,s){return we(s,P(n))||n}return{onProcessRule:i,onProcessStyle:t,onChangeValue:e}}function At(){var i=function(t,e){return t.length===e.length?t>e?1:-1:t.length-e.length};return{onProcessStyle:function(t,e){if(e.type!=="style")return t;for(var n={},s=Object.keys(t).sort(i),a=0;a<s.length;a++)n[s[a]]=t[s[a]];return n}}}export{se as _,kt as a,Ot as b,wt as c,Ct as d,At as e,xt as f,Cr as g,jr as h,Ne as i,Pt as j,St as k,qr as l,jt as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{az as l,j as t,P as i,a4 as h,
|
|
1
|
+
import{az as l,j as t,P as i,a4 as h,fs as d,n as p}from"./index-QlD_x8dd.js";const m=l(t.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),u=l([t.jsx("circle",{cx:"12",cy:"19",r:"2"},"0"),t.jsx("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");function n({variant:e,title:o,subTitle:s,footer:a,...c}){let r;switch(e){case"error":r=m;break;case"info":r=u;break;case"loading":r=p;break;default:r=d}return t.jsx(g,{variant:e,...c,children:t.jsxs("div",{className:"result-body",children:[t.jsx("span",{className:`result-icon color-${e}`,children:t.jsx(r,{})}),t.jsx("div",{className:`result-title color-${e} ${o?"":"ele-hide"}`,children:o}),t.jsx("div",{className:`result-sub-title ${s?"":"ele-hide"}`,children:s}),a&&t.jsx("div",{className:"result-footer",children:a})]})})}n.propTypes={variant:i.oneOf(["success","error","info","loading"]),title:i.string,subTitle:i.any,footer:i.any};n.defaultProps={variant:"success",title:"",subTitle:"",footer:null};const g=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as r,
|
|
1
|
+
import{u as r,bs as m,ag as s,v as a,j as u,a4 as c}from"./index-QlD_x8dd.js";import{C as d}from"./content-layout-CsBQOuZw.js";const l=c(d)`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -26,4 +26,4 @@ import{u as r,bu as u,ag as s,v as a,j as m,a4 as c}from"./index-BVLp3zZE.js";im
|
|
|
26
26
|
justify-content: center;
|
|
27
27
|
overflow-y: auto;
|
|
28
28
|
}
|
|
29
|
-
`;function f({children:e,...i}){const{t:o}=r(),{ws:{useSubscription:n}}=
|
|
29
|
+
`;function f({children:e,...i}){const{t:o}=r(),{ws:{useSubscription:n}}=m();return n(s.BlockletEvents.certIssued,t=>{a.success(o("setup.domain.genCertSuccess",{domain:t.domain}))}),n(s.BlockletEvents.certError,t=>{a.error(o("setup.domain.genCertFailed",{domain:t.domain,message:t.message}))}),u.jsx(l,{...i,children:e})}export{f as S};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as c,j as i,a4 as p}from"./index-
|
|
1
|
+
import{r as c,j as i,a4 as p}from"./index-QlD_x8dd.js";import{d as f}from"./Search-ClcNwm6y.js";import{T as b}from"./TextField-BglN0hgt.js";var u={};Object.defineProperty(u,"__esModule",{value:!0});var C=u.default=void 0;m(c);var n=i;function m(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,o)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(o){v(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function v(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=y(e,"string");return typeof t=="symbol"?t:t+""}function y(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var a=function(t){return(0,n.jsxs)("svg",d(d({},t),{},{children:[(0,n.jsx)("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"}),(0,n.jsx)("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"}),(0,n.jsx)("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"}),(0,n.jsx)("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"})]}))};a.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};a.displayName="external-issuer";C=u.default=a;const x=p(({children:e,...t})=>i.jsx(b,{...t,id:"outlined-basic",variant:"outlined",InputProps:{startAdornment:i.jsx(f,{})},size:"small",children:e}))`
|
|
2
2
|
.MuiOutlinedInput-root {
|
|
3
3
|
color: #999;
|
|
4
4
|
&.MuiInputBase-adornedStart .MuiSvgIcon-root {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./index-QlD_x8dd.js";import{S as t}from"./studio-CW3R2O1x.js";import"./index-CIiAk_XW.js";import"./Menu-egTGbomH.js";import"./Toolbar-BrM3XdrE.js";import"./Hidden-DX_Kmgml.js";import"./fallback-CXpMA9jN.js";function a(){return o.jsx(t,{children:"Coming soon..."})}export{a as default};
|