@abtnode/blocklet-services 1.17.3-beta-20251118-061144-335cd35d → 1.17.3-beta-20251119-034511-f26047c0
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/blocklet.js +7 -0
- package/dist/assets/{AdapterDayjs-C8RSaHa0.js → AdapterDayjs-BlYfODzx.js} +1 -1
- package/dist/assets/{Community-ClHGTbNM.js → Community-C7CFokDQ.js} +1 -1
- package/dist/assets/{Google-BT1deiYa.js → Google-BOjQI1aW.js} +1 -1
- package/dist/assets/{Holiday-D8fmDxt6.js → Holiday-DyVifdc-.js} +1 -1
- package/dist/assets/{Meeting-CF7NtQe5.js → Meeting-DbtUCCZq.js} +1 -1
- package/dist/assets/{OffSick-CWwGwWYY.js → OffSick-BtITykO3.js} +1 -1
- package/dist/assets/{WorkingRemotely-CD8ntsiV.js → WorkingRemotely-mKvokr6L.js} +1 -1
- package/dist/assets/{access-control-Ddnn1J4F.js → access-control-DTCMjhKk.js} +1 -1
- package/dist/assets/{actions-DqoNrBDK.js → actions-DlChK31K.js} +1 -1
- package/dist/assets/{add-component-core-CZQBpP2b.js → add-component-core-CUr388CN.js} +1 -1
- package/dist/assets/{add-resource-DUXwdNKB.js → add-resource-Dc856hpt.js} +1 -1
- package/dist/assets/{addon-BgN564dt.js → addon-B40hGwgm.js} +1 -1
- package/dist/assets/{advanced-D9d385yZ.js → advanced-Br_YsN3-.js} +1 -1
- package/dist/assets/{aigne-BK9oL3LS.js → aigne-H9M2qziH.js} +1 -1
- package/dist/assets/api-DcGGeMWE.js +1 -0
- package/dist/assets/{appearance-BLjBQMnd.js → appearance-CZaZuJSH.js} +1 -1
- package/dist/assets/{arrow-down.svg-Uxqj9Lez.js → arrow-down.svg-B4fW36cY.js} +1 -1
- package/dist/assets/{audit-logs-B9JmO_5U.js → audit-logs-CdBxa8MQ.js} +1 -1
- package/dist/assets/{authorize-BseET0LV.js → authorize-BF4yXQyf.js} +1 -1
- package/dist/assets/{base-chart-C-Raz4Q-.js → base-chart-DkkGeB5D.js} +1 -1
- package/dist/assets/{base32-DB18VP05.js → base32-DJEJY-PH.js} +1 -1
- package/dist/assets/{bind-account-DWu2ZbPT.js → bind-account-D6p5CBbp.js} +1 -1
- package/dist/assets/{branding-CPYtF-6a.js → branding-B7dM6NSY.js} +1 -1
- package/dist/assets/{branding-CmMCHUpY.js → branding-CoyX7jAw.js} +1 -1
- package/dist/assets/branding-DNryM-GG.js +1 -0
- package/dist/assets/{bundle-avatar-B9iCn_eS.js → bundle-avatar--3Ig7ZeD.js} +1 -1
- package/dist/assets/button-CjoOMC5b.js +1 -0
- package/dist/assets/click-to-copy-BiDS_MtA.js +1 -0
- package/dist/assets/cloneDeep-C11iVb3m.js +1 -0
- package/dist/assets/{collapse-BMy0GGFk.js → collapse-Cqxx6nMG.js} +1 -1
- package/dist/assets/{complete-DFxZ9mZl.js → complete-DPTGJDLo.js} +1 -1
- package/dist/assets/{component-CmpGxsIf.js → component-C9douaIx.js} +2 -2
- package/dist/assets/{config-BMeucuGh.js → config-BuIjAxID.js} +1 -1
- package/dist/assets/{config-Dj032f65.js → config-DLpmAnUO.js} +1 -1
- package/dist/assets/{config-Bg2nv4Ct.js → config-DbJRjGKg.js} +1 -1
- package/dist/assets/{config-navigation-Wws6cRZg.js → config-navigation-ebep7Vaw.js} +2 -2
- package/dist/assets/{config-space-DVbXpK0p.js → config-space-BIBMi9yR.js} +1 -1
- package/dist/assets/{confirm-D_oS4C5N.js → confirm-CklyzxUV.js} +1 -1
- package/dist/assets/{connect-BeM9KScn.js → connect-D1S9h2vl.js} +1 -1
- package/dist/assets/{connect-td4SUK2j.js → connect-sHh18260.js} +1 -1
- package/dist/assets/{connect-to-CK_BBgim.js → connect-to-CN0n_rfw.js} +1 -1
- package/dist/assets/{content-layout-oyz1EqNZ.js → content-layout-DpoiOm37.js} +1 -1
- package/dist/assets/{create-passport-svg-B2TKOs7K.js → create-passport-svg-k1mCsufD.js} +1 -1
- package/dist/assets/{createClass-BWB0NSWO.js → createClass-Bp8GWzB3.js} +1 -1
- package/dist/assets/{dashboard-B59Yx2EA.js → dashboard-BOEp1A3P.js} +2 -2
- package/dist/assets/{delete-confirm-DwFvaC6s.js → delete-confirm-DOWoUCR5.js} +1 -1
- package/dist/assets/{did-address-C5FXzeAS.js → did-address-BKqL0vbP.js} +1 -1
- package/dist/assets/{domain-Dwzb8N6w.js → domain-_Mg8zUon.js} +1 -1
- package/dist/assets/{domain-action-card-CXIxAIsm.js → domain-action-card-COcfS69j.js} +1 -1
- package/dist/assets/domains-HnFn4BU9.js +1 -0
- package/dist/assets/{edit.svg-DycWG9v3.js → edit.svg-Dz9cVo7r.js} +1 -1
- package/dist/assets/{email-CDYDF-7u.js → email-CY8kCkSP.js} +2 -2
- package/dist/assets/{empty-spinner-DYOzicuy.js → empty-spinner-CveVktQP.js} +1 -1
- package/dist/assets/engine-D5_fEmdT.js +1 -0
- package/dist/assets/{exchange-passport-CoU5Q4QA.js → exchange-passport-DPA710jd.js} +1 -1
- package/dist/assets/{form-I14bCwkb.js → form-CaWm2WdL.js} +1 -1
- package/dist/assets/{form-text-input-B2T0zM2q.js → form-text-input-gTokKFc6.js} +1 -1
- package/dist/assets/{form-wrapper-C8oo_Fdy.js → form-wrapper-BxqO_YSO.js} +1 -1
- package/dist/assets/{fuel-DlHj4E28.js → fuel-DAxqtWTp.js} +1 -1
- package/dist/assets/{gen-access-key-C54GFXyN.js → gen-access-key-DnFZ5j_f.js} +1 -1
- package/dist/assets/{gen-simple-access-key-Cgw0gqQM.js → gen-simple-access-key-D0cY_mzH.js} +1 -1
- package/dist/assets/get-safe-url-b0FoyA1U.js +1 -0
- package/dist/assets/{home-D6Wx3vEh.js → home-BLXMP7Fn.js} +1 -1
- package/dist/assets/{iframe-fHGifsex.js → iframe-Cf5bT_6x.js} +1 -1
- package/dist/assets/{index-Mix8V5gr.js → index--t-eBalO.js} +1 -1
- package/dist/assets/{index-DTj7lG0j.js → index-0wVxGFHL.js} +1 -1
- package/dist/assets/{index-qme31tNJ.js → index-B11Boj2H.js} +1 -1
- package/dist/assets/{index-D5TNmV3K.js → index-B7KG9373.js} +1 -1
- package/dist/assets/{index-phW48DJg.js → index-B9JcYhlg.js} +1 -1
- package/dist/assets/{index-DVBwQI1h.js → index-BBGDYmGN.js} +1 -1
- package/dist/assets/{index-NomqB6Iy.js → index-BDvewqjE.js} +1 -1
- package/dist/assets/{index-Bdyv52fm.js → index-BQ7b2rES.js} +1 -1
- package/dist/assets/{index-Ctf-FbXC.js → index-BYMI0ny4.js} +2 -2
- package/dist/assets/{index-DW-pVTUA.js → index-B_fIpHt1.js} +1 -1
- package/dist/assets/{index-BPy8_fa2.js → index-BsA1v5Kx.js} +1 -1
- package/dist/assets/{index-CWemdG9k.js → index-C-fUoCuC.js} +1 -1
- package/dist/assets/{index-ChNXm8zt.js → index-CALyM1b7.js} +1 -1
- package/dist/assets/{index-D1c_Zlts.js → index-CLUTu1X-.js} +1 -1
- package/dist/assets/{index-CgdhTqWX.js → index-CMec_woq.js} +1 -1
- package/dist/assets/{index-S8uuD-j6.js → index-CQOXFqub.js} +1 -1
- package/dist/assets/{index-Bnv7SivR.js → index-CS-lh8B6.js} +1 -1
- package/dist/assets/{index-BUTKGY5W.js → index-CWtomC5e.js} +1 -1
- package/dist/assets/{index-j9zHEMDv.js → index-Crb5v_oP.js} +1 -1
- package/dist/assets/{index-Dd1dREUL.js → index-DByR2J-y.js} +2 -2
- package/dist/assets/{index-sE6ANlb1.js → index-DCa5wWAd.js} +1 -1
- package/dist/assets/{index-CsRxFZuh.js → index-DDc9u4Rr.js} +1 -1
- package/dist/assets/{index-nYsahwVM.js → index-DIpoCt72.js} +1 -1
- package/dist/assets/{index-Tj1dVBHC.js → index-DKSVm7e-.js} +1 -1
- package/dist/assets/{index-De-Vgsb6.js → index-DO0bEcmC.js} +1 -1
- package/dist/assets/index-DW1-kshH.js +1 -0
- package/dist/assets/{index-DVZm1sCw.js → index-DX8eFzfu.js} +1 -1
- package/dist/assets/{index-Cq3xfsOS.js → index-DiqdSyj7.js} +104 -104
- package/dist/assets/{index-BJAIYdQp.js → index-DnuNgd04.js} +1 -1
- package/dist/assets/{index-B5fUUj0x.js → index-JqMHvzVF.js} +1 -1
- package/dist/assets/{index-C1cWdBpP.js → index-WkJweVHY.js} +1 -1
- package/dist/assets/{index-ecxGjzSN.js → index-XwZTnGB3.js} +1 -1
- package/dist/assets/{index-DnKyoEA9.js → index-aRHQsmOg.js} +1 -1
- package/dist/assets/{index-CPlFvcnd.js → index-gIzQEnMj.js} +3 -3
- package/dist/assets/{index-C5hO5d4a.js → index-zNB-v-t2.js} +1 -1
- package/dist/assets/{index.esm-JPZAjt0x.js → index.esm-DTmS4tth.js} +1 -1
- package/dist/assets/{invitation-p9I7Fs_7.js → invitation-DDf3OBDz.js} +1 -1
- package/dist/assets/{invitations-BYrxk2XC.js → invitations-D12iZAQL.js} +1 -1
- package/dist/assets/{invite-DptGZzm9.js → invite-Df9QWw7t.js} +1 -1
- package/dist/assets/{isURL-DmCvTfVx.js → isURL-bkdgf1x2.js} +1 -1
- package/dist/assets/{issue-passport-CeJy-eGP.js → issue-passport-gNt3LqEb.js} +1 -1
- package/dist/assets/{item-D48n_jCS.js → item-1yEVSl8f.js} +1 -1
- package/dist/assets/{landing-page-C-nrxraJ.js → landing-page-DIy3L18O.js} +1 -1
- package/dist/assets/{launch-result-message-DWeUg9rM.js → launch-result-message-5HOBRYMn.js} +1 -1
- package/dist/assets/{layout-Bu-krdMM.js → layout-CgGSszKF.js} +1 -1
- package/dist/assets/{list-DTYfy5jI.js → list-Bj4EH_EL.js} +1 -1
- package/dist/assets/{list-Bm-Ae18B.js → list-CSWSdurz.js} +1 -1
- package/dist/assets/{list-header-BE2kzda_.js → list-header-Q-5QUSB8.js} +1 -1
- package/dist/assets/localization-CgrsqMtL.js +1 -0
- package/dist/assets/{lock.svg-COUP8tyO.js → lock.svg-BPCZ0CT3.js} +1 -1
- package/dist/assets/{log-QCNL7fmO.js → log-B_J8mg8B.js} +1 -1
- package/dist/assets/logger-QD2VS2Mb.js +1 -0
- package/dist/assets/{login-CEAH4IAS.js → login-Bio30C4m.js} +1 -1
- package/dist/assets/{login-oauth-callback-C2H6pyf0.js → login-oauth-callback-D0EhzZTU.js} +1 -1
- package/dist/assets/{logo-uploader-D9dqlBcG.js → logo-uploader-DnA7whvY.js} +1 -1
- package/dist/assets/{lost-passport-D-HNQTYL.js → lost-passport-CM51lU3r.js} +2 -2
- package/dist/assets/{lottie-react.esm-M5fKy3fg.js → lottie-react.esm-CD0xFBYg.js} +1 -1
- package/dist/assets/observability-BrLAcYkS.js +1 -0
- package/dist/assets/omit-CPVfFmp-.js +1 -0
- package/dist/assets/{open-window-DgCyIQ1g.js → open-window-z11fkxAm.js} +1 -1
- package/dist/assets/{over-due-invoice-payment-DSTf3GE0.js → over-due-invoice-payment-B7tDPPws.js} +1 -1
- package/dist/assets/{overview-ClqTYGzr.js → overview-1UV4-LGy.js} +1 -1
- package/dist/assets/{page-header-DCvzRay5.js → page-header-bY0dwe6y.js} +1 -1
- package/dist/assets/passport-BxAsPdEH.js +1 -0
- package/dist/assets/{passport-item-BDPJusYi.js → passport-item-DmCvf5Er.js} +1 -1
- package/dist/assets/{permission-CPpfaEat.js → permission-t78Xon7o.js} +1 -1
- package/dist/assets/playground-QvTAmNqS.js +1 -0
- package/dist/assets/preferences-K24ynDKn.js +1 -0
- package/dist/assets/profile-embed-DXvSNJu_.js +1 -0
- package/dist/assets/publish-resource-BM96DWgo.js +1 -0
- package/dist/assets/{question-mark-circle.svg-B4stD6SS.js → question-mark-circle.svg-DK9nTUDZ.js} +1 -1
- package/dist/assets/{raf-schd.esm-CHNehTG3.js → raf-schd.esm-JNUhxcps.js} +1 -1
- package/dist/assets/{react-beautiful-dnd.esm-ZwmTP19t.js → react-beautiful-dnd.esm-DQ9oGom7.js} +1 -1
- package/dist/assets/{react-stripe.esm-Dc9snvfb.js → react-stripe.esm-CT6ZhpE7.js} +1 -1
- package/dist/assets/{required-BGaDOGrj.js → required-BuZo1JHj.js} +1 -1
- package/dist/assets/{revoke.svg-CmffMlcP.js → revoke.svg-CuiCGfVW.js} +1 -1
- package/dist/assets/{runtime-AXM1IbpE.js → runtime-RJv_jEZF.js} +1 -1
- package/dist/assets/{sanitize-BEqBHa8a.js → sanitize-C43KM91h.js} +1 -1
- package/dist/assets/sdk-2Xqu2SZD.js +1 -0
- package/dist/assets/{section-C75bzkkL.js → section-DDyoFT-o.js} +1 -1
- package/dist/assets/{security-BKCc6kr9.js → security-C-ANgtMR.js} +1 -1
- package/dist/assets/{server-logo-notext.svg-CKQB0tIp.js → server-logo-notext.svg-DHxZ1bRk.js} +1 -1
- package/dist/assets/session-Dt50YAVT.js +1 -0
- package/dist/assets/{setup-CdiiCta6.js → setup-BryxUu7A.js} +1 -1
- package/dist/assets/{shorten-label-RqvHqcC3.js → shorten-label-BiZLRE-N.js} +1 -1
- package/dist/assets/{simple-select-iVD4-YUy.js → simple-select-DZvdqo7G.js} +1 -1
- package/dist/assets/{spaces-Bhd_JZon.js → spaces-BRmoEATc.js} +1 -1
- package/dist/assets/{start-BXKCBBDg.js → start-CChSAOWC.js} +1 -1
- package/dist/assets/{starting-progress-Ls9oWS4w.js → starting-progress-Dn3jpzSc.js} +1 -1
- package/dist/assets/{status-Cu5kOgRL.js → status-Ukzm4O8y.js} +1 -1
- package/dist/assets/{step-actions-sALFE9jn.js → step-actions-BursUhDh.js} +1 -1
- package/dist/assets/{studio-2AfcGI4x.js → studio-Cfhka82V.js} +1 -1
- package/dist/assets/{switch-control-CLq7MYhJ.js → switch-control-DwAlFBVc.js} +1 -1
- package/dist/assets/{table-tips-DBCvmY1v.js → table-tips-Ccm9jBpV.js} +1 -1
- package/dist/assets/{team-4Qq9vwj5.js → team-W2Fdvkfl.js} +1 -1
- package/dist/assets/{traffic-DU_BMQPm.js → traffic-DKKjsKRb.js} +1 -1
- package/dist/assets/{transfer-DAvviBGy.js → transfer-Dji3lOoL.js} +1 -1
- package/dist/assets/{unsubscribe-CzukIuIE.js → unsubscribe-Dszf0vso.js} +1 -1
- package/dist/assets/{use-app-logo-9qTsLgnV.js → use-app-logo-Bu9kUO2d.js} +1 -1
- package/dist/assets/{use-mobile-DCNBsOlH.js → use-mobile-BGG7EyYb.js} +1 -1
- package/dist/assets/{use-mobile-maRlSUwU.js → use-mobile-yOnqxyr6.js} +1 -1
- package/dist/assets/{use-server-logo-n_aaKVoZ.js → use-server-logo-CTR2UZFf.js} +1 -1
- package/dist/assets/use-window-close-dG-tZxWF.js +1 -0
- package/dist/assets/useAsync-5gLXHIip.js +1 -0
- package/dist/assets/{useAsync-cZ_FPf9k.js → useAsync-tRHUJQgE.js} +1 -1
- package/dist/assets/{useAsyncRetry-DwwEjrjs.js → useAsyncRetry-MDM8jCoS.js} +1 -1
- package/dist/assets/{useLocalStorage-CvPFnddH.js → useLocalStorage-CbmitI3m.js} +1 -1
- package/dist/assets/{useSetState-DFuQZPPV.js → useSetState-cWrp7qoX.js} +1 -1
- package/dist/assets/{user-center-DynXe12u.js → user-center-BuHH3C1u.js} +3 -3
- package/dist/assets/{user-follower-Br2H5oAR.js → user-follower-Bn21LRum.js} +1 -1
- package/dist/assets/{util-4xOccFjr.js → util-Byg5myf8.js} +1 -1
- package/dist/assets/{util-B1w9UqzK.js → util-qnRu_NH_.js} +1 -1
- package/dist/assets/{vendor-arcblock-CqplRmyi.js → vendor-arcblock-DBEMYjVA.js} +1 -1
- package/dist/assets/{vendor-hooks-CjESGRlR.js → vendor-hooks-L8kZVRUL.js} +1 -1
- package/dist/assets/{vendor-mui-core-CnXrAOs3.js → vendor-mui-core-___CiWHn.js} +1 -1
- package/dist/assets/{vendor-mui-x-bJ5idfMH.js → vendor-mui-x-CYSdP1E1.js} +1 -1
- package/dist/assets/vendor-react-CUXIiAnY.js +37 -0
- package/dist/assets/vendor-utils-Doa0RxLS.js +213 -0
- package/dist/assets/{vendor-ux-5OlTXZBe.js → vendor-ux-pxYpYMxD.js} +1 -1
- package/dist/assets/{wait-connect-BA-9v9IK.js → wait-connect-z8A2YqYx.js} +1 -1
- package/dist/assets/{wizard-components-Bj1vePv_.js → wizard-components-Bu-3Twf8.js} +1 -1
- package/dist/assets/{wizard-B70SUVne.js → wizard-gl51MV0G.js} +1 -1
- package/dist/assets/wrap-locale-DwrX4tfZ.js +1 -0
- package/dist/assets/{zh-DBbr_lO3.js → zh-5FnkOdV9.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +23 -23
- package/dist/assets/api-Btn0Tp3W.js +0 -1
- package/dist/assets/branding-DO47QT9Q.js +0 -1
- package/dist/assets/button-Bm6Z4hYZ.js +0 -1
- package/dist/assets/click-to-copy-CzGMi2Jw.js +0 -1
- package/dist/assets/cloneDeep-C6qewg0C.js +0 -1
- package/dist/assets/domains-0qUGORQe.js +0 -1
- package/dist/assets/engine-DXhw4g-J.js +0 -1
- package/dist/assets/get-safe-url-mKD2PdwN.js +0 -1
- package/dist/assets/index-WsuqXAUT.js +0 -1
- package/dist/assets/localization-BILR5z0M.js +0 -1
- package/dist/assets/logger-LLowKmBx.js +0 -1
- package/dist/assets/observability-Zow0Sv-X.js +0 -1
- package/dist/assets/omit-hhiOJGRf.js +0 -1
- package/dist/assets/passport-C04lgrV5.js +0 -1
- package/dist/assets/playground-CAOOFQT1.js +0 -1
- package/dist/assets/preferences-D2CWTpgr.js +0 -1
- package/dist/assets/profile-embed-CLHyEYTf.js +0 -1
- package/dist/assets/publish-resource-B1BSffEx.js +0 -1
- package/dist/assets/sdk-CvRW7Vwp.js +0 -1
- package/dist/assets/session-BYq9-2GE.js +0 -1
- package/dist/assets/use-window-close-PzHKtiXA.js +0 -1
- package/dist/assets/useAsync-BcVLpt2E.js +0 -1
- package/dist/assets/vendor-react-Dvs43sk9.js +0 -37
- package/dist/assets/vendor-utils-cJEl_UEd.js +0 -213
- package/dist/assets/wrap-locale-CyFByfaX.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,ak as d,Q as p,at as x,W as u}from"./vendor-mui-core-
|
|
1
|
+
import{j as t,ak as d,Q as p,at as x,W as u}from"./vendor-mui-core-___CiWHn.js";import{r as o}from"./vendor-react-CUXIiAnY.js";import{p as g}from"./vendor-ux-pxYpYMxD.js";import{a as h}from"./page-header-bY0dwe6y.js";import{ac as j}from"./index-DiqdSyj7.js";import{A as b}from"./config-DbJRjGKg.js";import{S as k}from"./step-actions-BursUhDh.js";import{S}from"./layout-CgGSszKF.js";import"./vendor-utils-Doa0RxLS.js";import"./vendor-hooks-L8kZVRUL.js";import"./lottie-web-4koyQiv_.js";import"./vendor-arcblock-DBEMYjVA.js";import"./isURL-bkdgf1x2.js";import"./section-DDyoFT-o.js";import"./required-BuZo1JHj.js";import"./form-wrapper-BxqO_YSO.js";import"./form-text-input-gTokKFc6.js";import"./edit.svg-Dz9cVo7r.js";import"./wait-connect-z8A2YqYx.js";import"./get-safe-url-b0FoyA1U.js";import"./index-BsA1v5Kx.js";import"./index-DBs9Ljax.js";import"./use-mobile-yOnqxyr6.js";import"./content-layout-DpoiOm37.js";function y({onNext:s=()=>{},onPrevious:l=()=>{}}){const{t:r}=o.useContext(g),{blocklet:e}=j(),i=o.useMemo(()=>e?.meta?.requirements,[e]),n=o.useRef(null),[a,m]=o.useState(!1),f=async()=>{try{m(!0),(await n.current.onSubmit()||!i?.aigne)&&s()}catch(c){console.error("error",c)}finally{m(!1)}};return t.jsxs(C,{children:[t.jsx("div",{className:"header",children:t.jsx(h,{title:r("setting.aigne.config"),onClickBack:l})}),t.jsx(d,{className:"form-container",children:t.jsx(b,{orientation:"vertical",hideSubmitButton:!0,hideDivider:!0,ref:n,source:"setup",forceValidate:i?.aigne})}),t.jsxs(k,{blocklet:e,children:[!i?.aigne&&t.jsx(p,{className:"bottom-button-skip",sx:{mr:1},onClick:()=>s(),children:r("setup.skip")}),t.jsx(p,{className:"start-now bottom-button",loading:a,variant:"contained",disabled:a,onClick:f,children:r("setup.continue")})]})]})}y.propTypes={onNext:u.func,onPrevious:u.func};const C=x(S)`
|
|
2
2
|
height: 100%;
|
|
3
3
|
overflow-y: auto;
|
|
4
4
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as a}from"./vendor-utils-Doa0RxLS.js";a.defaults.timeout=10*1e3;const o=a.create();export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as E,A as k}from"./vendor-utils-
|
|
1
|
+
import{C as E,A as k}from"./vendor-utils-Doa0RxLS.js";import{_ as T,ac as j,c as M}from"./index-DiqdSyj7.js";import{r as e}from"./vendor-react-CUXIiAnY.js";import{V as B}from"./vendor-ux-pxYpYMxD.js";import{u as D}from"./use-mobile-BGG7EyYb.js";import{D as H,j as o,ak as w,a6 as I}from"./vendor-mui-core-___CiWHn.js";import"./vendor-arcblock-DBEMYjVA.js";import"./vendor-hooks-L8kZVRUL.js";import"./lottie-web-4koyQiv_.js";function K(){const{info:x,inService:g}=T(),{blocklet:y}=j(),{locale:u}=B(),f=e.useRef(null),r=H(),[L,R]=e.useState(0),m=D(),[t,S]=e.useState(!0),s=e.useRef(null);let a="";g?a=M.WELLKNOWN_SERVICE_PATH_PREFIX:a=x.routing.adminPath;const c=new URLSearchParams;g?c.set("appUrl",window.location.origin):c.set("authKey","__sst"),c.set("schemaKey",E(window.location.origin,a,`/api/theme?id=${encodeURIComponent(y.meta.did)}`));const l=e.useCallback(()=>{if(s.current){const n=k(JSON.parse(JSON.stringify(r)),["palette","typography","shape","direction","breakpoints","mixins","shadows","transitions","zIndex"]);s.current.contentWindow.postMessage({type:"SEND_THEME",payload:n},window.location.origin)}},[r]),d=e.useCallback(()=>{s.current&&s.current.contentWindow.postMessage({type:"SEND_LOCALE",payload:u},window.location.origin)},[u]);return e.useEffect(()=>{const n=i=>{i.origin===window.location.origin&&(i.data.type==="REQUEST_THEME"&&l(),i.data.type==="THEME_BUILDER_LOADED"&&(d(),S(!1)))};return window.addEventListener("message",n),()=>{window.removeEventListener("message",n)}},[l,d]),e.useEffect(()=>{t===!1&&l()},[r,t,l]),e.useEffect(()=>{t===!1&&d()},[u,t,d]),e.useEffect(()=>{const n=document.querySelector("#arc__dashboard-main"),i=document.querySelector(".dashboard-content"),p=()=>{if(f.current){const{height:C}=n.getBoundingClientRect(),{top:_}=i.getBoundingClientRect(),{top:b}=f.current.getBoundingClientRect();let h=C-b+_-(m?108:164);m&&(h=Math.min(h,600)),R(h)}};return p(),window.addEventListener("resize",p),()=>{window.removeEventListener("resize",p)}},[m,r]),o.jsxs(o.Fragment,{children:[o.jsx(w,{ref:f}),t&&o.jsx(w,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"500px"},children:o.jsx(I,{})}),o.jsx("iframe",{title:"Theme Builder",ref:s,src:`${E(window.location.origin,a,"/hosted/theme-builder/")}?${c.toString()}`,style:{border:0,width:"100%",height:`${L}px`,display:t?"none":"block"}})]})}export{K as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cu as o,cv as l,cw as r,cx as n}from"./index-
|
|
1
|
+
import{cu as o,cv as l,cw as r,cx as n}from"./index-DiqdSyj7.js";import{r as e}from"./vendor-react-CUXIiAnY.js";const i=Object.freeze(Object.defineProperty({__proto__:null,default:o},Symbol.toStringTag,{value:"Module"})),u=Object.freeze(Object.defineProperty({__proto__:null,default:l},Symbol.toStringTag,{value:"Module"})),d=Object.freeze(Object.defineProperty({__proto__:null,default:r},Symbol.toStringTag,{value:"Module"})),s=Object.freeze(Object.defineProperty({__proto__:null,default:n},Symbol.toStringTag,{value:"Module"})),f=t=>e.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0608 6.75011L11.5304 7.28044L8.70722 10.1036C8.31669 10.4942 7.68353 10.4942 7.293 10.1036L4.46978 7.28044L3.93945 6.75011L5.00011 5.68945L5.53044 6.21978L8.00011 8.68945L10.4698 6.21978L11.0001 5.68945L12.0608 6.75011Z",fill:"currentColor"}));export{d as E,u as L,i as P,s as T,f as l};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{H as U,V as _,z as H,S as F,P as Z,i as G,Q as K}from"./vendor-ux-
|
|
1
|
+
import{H as U,V as _,z as H,S as F,P as Z,i as G,Q as K}from"./vendor-ux-pxYpYMxD.js";import{_ as W,c as A}from"./index-DiqdSyj7.js";import{j as e,D as I,ak as g,b4 as Q,T as $,am as B,bf as X,I as D,b$ as J,c0 as q,J as Y,a6 as ee,y as te,x as ne,bc as oe,M as se,c1 as re,at as ae}from"./vendor-mui-core-___CiWHn.js";import{r as i,L as ie}from"./vendor-react-CUXIiAnY.js";import{p as le}from"./util-Byg5myf8.js";import{u as ce}from"./useLocalStorage-CbmitI3m.js";import{M as T}from"./index-DO0bEcmC.js";import{d as de,e as M}from"./vendor-utils-Doa0RxLS.js";import{S as V}from"./shorten-label-BiZLRE-N.js";import{r as O}from"./index-B7KG9373.js";import{u as ue}from"./team-W2Fdvkfl.js";import"./vendor-hooks-L8kZVRUL.js";import"./lottie-web-4koyQiv_.js";import"./vendor-arcblock-DBEMYjVA.js";import"./base32-DJEJY-PH.js";import"./session-Dt50YAVT.js";import"./isURL-bkdgf1x2.js";import"./use-app-logo-Bu9kUO2d.js";const N=i.createContext({}),{Provider:pe,Consumer:Be}=N;function fe(){return localStorage.getItem("audit-log-page-size")&&Number(localStorage.getItem("audit-log-page-size"))||10}function me({children:t,scope:c="",categories:o=[],showScope:l,scopeFormatter:p,blocklets:x}){const{api:h,info:v}=W(),[C,f]=i.useState([]),[m,y]=i.useState({total:0,pageSize:fe(),pageCount:0,page:1}),[L,s]=i.useState(!1),[w,a]=i.useState(""),[d,n]=ce(`audit-log-category-${c}`,"all"),S=[{value:"all",label:"All",description:""},{value:"blocklet",label:"Blocklet Management",description:""},{value:"server",label:"Server Management",description:""},{value:"team",label:"Team Management",description:""},{value:"security",label:"Security",description:""},{value:"certificates",label:"Certificate Management",description:""},{value:"integrations",label:"Integration Management",description:""},{value:"gateway",label:"Gateway",description:""}].filter(P=>o.length?P.value==="all"||o.includes(P.value):!0),b=async({page:P=1,pageSize:r=20,silent:z=!0}={})=>{if(!L){z||s(!0);try{const j=await h.getAuditLogs({input:{paging:{page:P,pageSize:r},category:d==="all"?"":d,scope:c,actionOrContent:w}});l&&(j.list||[]).forEach(E=>{E.scope!==v.did&&(E.link=`/blocklets/${E.scope}/components`)}),f(j.list),y(j.paging),s(!1)}catch(j){U.error(j.message),s(!1)}}};i.useEffect(()=>{localStorage.setItem("audit-log-page-size",m.pageSize)},[m.pageSize]),i.useEffect(()=>{b({page:1,pageSize:m.pageSize,silent:!1})},[]),i.useEffect(()=>{b({page:1,pageSize:m.pageSize,silent:!1})},[d,w]);const k={loading:L,fetch:b,filter:{category:d,scope:c},categories:S,blocklets:x,setCategory:n,data:C,paging:m,setPaging:y,showScope:l,scopeFormatter:p,actionOrContent:w,setActionOrContent:a};return e.jsx(pe,{value:{auditLogs:k},children:t})}function R(){const{auditLogs:t}=i.useContext(N);return t}function ge(t){if(!t)return[];const c=/\[([^\]]+)\]\(([^)]+)\)/g,o=[];let l;for(;(l=c.exec(t))!==null;)o.push({text:l[1],url:l[2]});return o}const xe=`
|
|
2
2
|
<svg style="width:38px;height:38px;" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M50.152 10.6417L31.72 0L13.288 10.6417V24.7942L1 31.8887V53.1722L19.432 63.8139L31.6902 56.7366L31.72 56.7538L31.7498 56.7366L44.008 63.8139L62.44 53.1722V31.8887L50.152 24.7942V10.6417ZM60.52 32.9972L48.232 25.9027V11.7502L31.72 2.21703L15.208 11.7502V25.9028L2.92 32.9972V52.0636L19.432 61.5968L31.6902 54.5196L31.72 54.5368L31.7498 54.5196L44.008 61.5968L60.52 52.0636V32.9972Z" fill="url(#paint0_linear_606_96)"/>
|
|
4
4
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M50.1521 24.8307L31.7201 14.189L13.2881 24.8307V46.1141L31.7201 56.7558L50.1521 46.1141V24.8307ZM15.2081 25.9392L31.7201 16.406L48.2321 25.9392V45.0056L31.7201 54.5388L15.2081 45.0056V25.9392ZM28.5464 23.0464C28.6641 22.6342 29.0408 22.3501 29.4695 22.3501H33.9707C34.3993 22.3501 34.776 22.6342 34.8938 23.0464L35.7504 26.0447L37.8696 27.2681L40.8945 26.5109C41.3103 26.4068 41.7447 26.591 41.959 26.9622L44.2096 30.8604C44.424 31.2316 44.3662 31.6998 44.0682 32.0079L41.8999 34.2489V36.6959L44.0682 38.9369C44.3662 39.245 44.424 39.7133 44.2096 40.0845L41.959 43.9827C41.7447 44.3539 41.3103 44.538 40.8945 44.4339L37.8696 43.6767L35.7504 44.9002L34.8938 47.8984C34.776 48.3106 34.3993 48.5947 33.9707 48.5947H29.4695C29.0408 48.5947 28.6641 48.3106 28.5464 47.8984L27.6897 44.9002L25.5706 43.6767L22.5457 44.4339C22.1299 44.538 21.6955 44.3539 21.4812 43.9827L19.2305 40.0845C19.0162 39.7133 19.0739 39.245 19.372 38.9369L21.5402 36.6959V34.2489L19.372 32.0079C19.0739 31.6998 19.0162 31.2316 19.2305 30.8604L21.4812 26.9622C21.6955 26.591 22.1299 26.4068 22.5457 26.5109L25.5706 27.2681L27.6897 26.0447L28.5464 23.0464ZM28.9861 27.5132C29.2018 27.3887 29.3607 27.1851 29.4292 26.9456L30.1936 24.2701H33.2466L34.011 26.9456C34.0794 27.1851 34.2383 27.3887 34.4541 27.5132L37.2459 29.1251C37.4617 29.2497 37.7174 29.2855 37.9591 29.225L40.6583 28.5493L42.1848 31.1932L40.25 33.193C40.0768 33.372 39.9799 33.6114 39.9799 33.8605V37.0843C39.9799 37.3334 40.0768 37.5728 40.25 37.7518L42.1848 39.7516L40.6583 42.3955L37.9591 41.7198C37.7174 41.6593 37.4617 41.6951 37.2459 41.8197L34.4541 43.4316C34.2383 43.5561 34.0794 43.7597 34.011 43.9992L33.2466 46.6747H30.1936L29.4292 43.9992C29.3607 43.7597 29.2018 43.5561 28.9861 43.4316L26.1942 41.8197C25.9785 41.6951 25.7228 41.6593 25.4811 41.7198L22.7819 42.3955L21.2554 39.7516L23.1902 37.7518C23.3634 37.5728 23.4602 37.3334 23.4602 37.0843V33.8605C23.4602 33.6114 23.3634 33.372 23.1902 33.193L21.2554 31.1932L22.7819 28.5493L25.4811 29.225C25.7228 29.2855 25.9785 29.2497 26.1942 29.1251L28.9861 27.5132ZM31.7201 41.6407C28.3134 41.6407 25.5517 38.8791 25.5517 35.4724C25.5517 32.0657 28.3134 29.3041 31.7201 29.3041C35.1268 29.3041 37.8884 32.0657 37.8884 35.4724C37.8884 38.8791 35.1268 41.6407 31.7201 41.6407ZM35.9684 35.4724C35.9684 37.8187 34.0664 39.7207 31.7201 39.7207C29.3738 39.7207 27.4717 37.8187 27.4717 35.4724C27.4717 33.1261 29.3738 31.2241 31.7201 31.2241C34.0664 31.2241 35.9684 33.1261 35.9684 35.4724Z" fill="url(#paint1_linear_606_96)"/>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{J as A,j as e,ak as t,a6 as E,Q as l,b3 as W,T as o,b4 as z,am as I,b5 as R,b6 as L,a5 as O,a3 as T,a$ as f,b1 as F}from"./vendor-mui-core-
|
|
1
|
+
import{J as A,j as e,ak as t,a6 as E,Q as l,b3 as W,T as o,b4 as z,am as I,b5 as R,b6 as L,a5 as O,a3 as T,a$ as f,b1 as F}from"./vendor-mui-core-___CiWHn.js";import{r as x}from"./vendor-react-CUXIiAnY.js";import{l as D}from"./vendor-hooks-L8kZVRUL.js";import{C as b}from"./vendor-utils-Doa0RxLS.js";import{a as B,c as u,t as H,H as U,M,d as K}from"./index-DiqdSyj7.js";import{K as p}from"./landing-page-DIy3L18O.js";import{V as Q,M as y}from"./vendor-ux-pxYpYMxD.js";import{W as V}from"./did-address-BKqL0vbP.js";import"./vendor-arcblock-DBEMYjVA.js";import"./lottie-web-4koyQiv_.js";function re(){const{searchParams:r}=new URL(window.location.href),{session:d}=B(),{t:c}=Q(),m=r.get("client_id"),_=r.get("scope")||"profile:read",[g,w]=x.useState(_.split(" ").filter(Boolean)),v=A("(max-width: 600px)"),k=b(window.location.origin,u.WELLKNOWN_SERVICE_PATH_PREFIX,"/oauth/authorize"),C=x.useCallback(i=>i?i.startsWith("http")?i:`${b(u.WELLKNOWN_SERVICE_PATH_PREFIX,"/api/media/upload",window.blocklet.appPid)}/${i}`:"",[]),[h,j]=D({client:null,loading:!0});x.useEffect(()=>{(async()=>{const{data:n}=await K.get("/oauth/client",{params:{clientId:m}});j({client:n,loading:!1})})()},[m,j]);const S=i=>{i!=="profile:read"&&w(n=>n.includes(i)?n.filter(P=>P!==i):[...n,i])};if(h.loading||!d?.user)return e.jsx(p,{did:window.blocklet?.appPid,standalone:!0,children:e.jsx(t,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:e.jsx(E,{})})});if(!h.client)return e.jsx(p,{did:window.blocklet?.appPid,standalone:!0,children:e.jsx(t,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:e.jsx(H,{style:{backgroundColor:"transparent"},status:"error",title:c("notFoundOauthClient"),extra:e.jsx(l,{variant:"outlined",color:"primary",size:"small",startIcon:e.jsx(W,{}),href:"/",style:{borderRadius:4},children:c("connectCli.home")})})})});const{client:s}=h,{user:a}=d,N=(s.scope||"").split(" ");return e.jsxs(p,{did:window.blocklet?.appPid,standalone:!0,children:[e.jsx(U,{children:e.jsxs("title",{children:[c("oauth.authorize")," | ",window.blocklet?.appName]})}),e.jsx(M,{hideCloseButton:!0,children:e.jsxs(t,{sx:{display:"flex",flexDirection:"column",p:{xs:2,lg:3,xl:4},pt:{xs:3,xl:4},bgcolor:"background.paper"},className:"page-authorize",children:[e.jsxs(t,{sx:{textAlign:"center",mb:2},children:[e.jsxs(t,{sx:{display:"flex",alignItems:"center",justifyContent:"center",mb:2},children:[e.jsx(y,{src:window.blocklet?.appLogo,alt:"Server",width:48,height:48}),e.jsxs(t,{sx:{mx:2,display:"flex",alignItems:"center","& .dot":{width:8,height:8,borderRadius:"50%",bgcolor:"divider",mx:.5}},children:[e.jsx(t,{className:"dot"}),e.jsx(t,{className:"dot"}),e.jsx(t,{className:"dot"})]}),e.jsx(y,{src:C(s.logo_uri),alt:s.client_name,width:48,height:48})]}),e.jsxs(o,{sx:{mb:1,fontSize:"1.2rem","& .app-name":{color:"primary.main"}},children:["Authorize ",e.jsx("span",{className:"app-name",children:s.client_name})]})]}),e.jsxs(t,{sx:{display:"flex",alignItems:"center",width:"100%",overflow:"hidden",mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},className:"info",children:[e.jsx(z,{src:a.avatar,style:{width:48,height:48,backgroundColor:"transparent",marginRight:16}}),e.jsxs(t,{sx:{flex:1,overflow:"hidden"},children:[e.jsx(I,{title:a.fullName,children:e.jsx(t,{className:"name",sx:{flex:1,overflow:"hidden",textOverflow:"ellipsis"},children:a.fullName})}),e.jsx(t,{className:"did",children:e.jsx(V,{compact:!0,responsive:!1,did:a.did,showQrcode:!v})})]})]}),e.jsxs(o,{variant:"subtitle1",sx:{mb:2,fontWeight:500},children:["Allow ",s.client_name," to do the following on your behalf:"]}),e.jsxs(t,{sx:{border:"1px solid",borderColor:"divider",borderRadius:2,overflow:"hidden"},children:[e.jsx(t,{sx:{p:2},children:e.jsx(R,{children:Object.entries(u.OAUTH_SCOPES).filter(([i])=>N.includes(i)).map(([i,n])=>e.jsx(L,{control:e.jsx(O,{checked:g.includes(i),onChange:()=>S(i),disabled:i==="profile:read"||["blocklet:read","blocklet:write"].includes(i)&&!["owner","admin","member"].includes(a.role),color:"primary",sx:{"&.Mui-checked":{color:"success.main"}}}),label:e.jsx(t,{children:e.jsx(o,{variant:"body1",sx:{fontWeight:500},children:n})}),sx:{mb:0}},i))})}),(s.tos_uri||s.policy_uri)&&e.jsxs(e.Fragment,{children:[e.jsx(T,{}),e.jsx(t,{sx:{height:1,bgcolor:"divider"}}),e.jsx(t,{sx:{p:2,color:"text.secondary"},children:e.jsxs(o,{variant:"body2",children:["By authorize the access, you also agree with the"," ",!!s.tos_uri&&e.jsx(f,{href:s.tos_uri,target:"_blank",children:"Terms of Use"}),!!s.tos_uri&&!!s.policy_uri&&" and ",!!s.policy_uri&&e.jsx(f,{href:s.policy_uri,target:"_blank",children:"Privacy Policy"})]})})]})]}),e.jsxs("form",{method:"POST",action:k,children:[r.get("client_id")&&e.jsx("input",{type:"hidden",name:"client_id",value:r.get("client_id")}),r.get("response_type")&&e.jsx("input",{type:"hidden",name:"response_type",value:r.get("response_type")}),r.get("redirect_uri")&&e.jsx("input",{type:"hidden",name:"redirect_uri",value:r.get("redirect_uri")}),r.get("code_challenge")&&e.jsx("input",{type:"hidden",name:"code_challenge",value:r.get("code_challenge")}),r.get("code_challenge_method")&&e.jsx("input",{type:"hidden",name:"code_challenge_method",value:r.get("code_challenge_method")}),r.get("state")&&e.jsx("input",{type:"hidden",name:"state",value:r.get("state")}),e.jsx("input",{type:"hidden",name:"scope",value:g.join(" ")}),e.jsx(t,{sx:{mt:"auto",pt:3},children:e.jsxs(F,{direction:"row",spacing:2,children:[e.jsx(l,{variant:"outlined",size:"large",fullWidth:!0,type:"submit",name:"action",value:"deny",children:"Cancel"}),e.jsx(l,{variant:"contained",size:"large",fullWidth:!0,type:"submit",name:"action",value:"allow",children:"Authorize"})]})}),r.get("redirect_uri")&&e.jsxs(t,{sx:{mt:3,textAlign:"center"},children:[e.jsx(o,{variant:"body2",sx:{color:"text.secondary"},children:"You will be redirected to"}),e.jsx(o,{variant:"body2",sx:{color:"text.secondary",wordBreak:"break-all"},children:r.get("redirect_uri")})]}),e.jsx(t,{sx:{mt:2,textAlign:"center"},children:e.jsxs(o,{variant:"body2",children:["Not you?"," ",e.jsx(l,{variant:"text",color:"primary",onClick:()=>d.switchDid(),sx:{p:0,minWidth:"auto",textTransform:"none",verticalAlign:"baseline",fontWeight:"inherit",fontSize:"inherit","&:hover":{background:"none",textDecoration:"underline"}},children:"Use another account"})]})})]})]})})]})}export{re as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as p}from"./vendor-react-
|
|
1
|
+
import{r as p}from"./vendor-react-CUXIiAnY.js";import{D as L,j as f,b7 as T,T as j,ak as k,W as t}from"./vendor-mui-core-___CiWHn.js";import{E as C}from"./index-BDvewqjE.js";import{a as D}from"./vendor-utils-Doa0RxLS.js";const A=a=>{const h=new Date(Math.min(...a)),r=(new Date(Math.max(...a))-h)/(1e3*60);return u=>{if(r<=10){const c=(a.length-a.length%r)/r;return u%c===0}const d=(a.length-a.length%6)/6;return u%d===0}};function S({title:a="",total:h=0,history:s=[],valueFn:b=n=>n,xAxisFormat:r=n=>n,visualMapPieces:u=[],markLineData:v={},extraInfo:d=null,empty:w=null,onHover:c=()=>{},hoverIndex:i=null}){const n=L(),o=p.useRef(null),y=p.useMemo(()=>D(s)?[]:s.map(e=>r(e.date)),[s,r]);p.useEffect(()=>{if(!o.current||i?.ref===o)return;const e=o.current.getEchartsInstance(),l=i?.seriesIndex,x=y.findIndex(g=>g===i?.dataValue);i&&x!==-1?e.dispatchAction({type:"showTip",seriesIndex:l,dataIndex:x}):(e.dispatchAction({type:"hideTip"}),e.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:-1}))},[i?.dataIndex]);const m=p.useCallback(()=>{c?.(null)},[c]);if(p.useEffect(()=>{if(o.current){const e=o.current.getEchartsInstance(),l=e.getDom();return l.addEventListener("mouseleave",m),()=>{l.removeEventListener("mouseleave",m),e.dispose()}}},[m]),D(s))return w||null;const E=Math.max(...s.map(e=>e.value),h||0,0),M={tooltip:{trigger:"axis",formatter(e){const l=e[0].data,x=b(l),{seriesIndex:g,dataIndex:I}=e[0];return c?.({seriesIndex:g,dataIndex:I,dataValue:y[I],ref:i?.ref||o}),`${e[0].name}: <b>${x}</b>`},backgroundColor:n.palette.background.paper,borderColor:n.palette.divider,textStyle:{color:n.palette.text.primary},extraCssText:`box-shadow: ${n.shadows[2]}; border-radius: 4px;`},grid:{top:"48px",left:"16px",right:"16px",bottom:"0px",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:y,axisTick:{show:!1},splitLine:{show:!1},axisLabel:{interval:A(s.map(e=>new Date(e.date)))}},yAxis:{type:"value",axisTick:{show:!1},splitLine:{show:!1},min:0,max:E,interval:Math.ceil(E/2),axisLabel:{formatter:b,padding:[5,0,0,0]}},visualMap:{show:!1,type:"piecewise",dimension:1,seriesIndex:0,pieces:u},series:[{name:`${a} Usage`,type:"line",smooth:!0,symbol:"none",lineStyle:{color:n.palette.primary.main,width:2.5},areaStyle:{},itemStyle:{},emphasis:{disabled:!0},data:s.map(e=>e.value),markLine:v}]};return f.jsxs(T,{sx:{p:1,position:"relative"},children:[f.jsx(j,{sx:{fontSize:"16px",fontWeight:"bold",color:"text.secondary",position:"absolute",top:8,left:16,zIndex:10},children:a}),f.jsx(C,{ref:o,option:M,style:{width:"100%",height:"200px"},onEvents:{globalout:m}}),d&&f.jsx(k,{sx:{color:"text.secondary",ml:2,mt:1,fontSize:12},children:d})]})}S.propTypes={title:t.string,total:t.number,history:t.array,valueFn:t.func,xAxisFormat:t.func,visualMapPieces:t.array,markLineData:t.object,extraInfo:t.node,empty:t.node,onHover:t.func,hoverIndex:t.object};export{S as B};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as x}from"./vendor-ux-
|
|
1
|
+
import{r as x}from"./vendor-ux-pxYpYMxD.js";import{e as m}from"./vendor-react-CUXIiAnY.js";class w{constructor(e,r,o){this.name=e,this.prefix=r,this.baseEncode=o}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class g{constructor(e,r,o){if(this.name=e,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=o}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return l(this,e)}}class y{constructor(e){this.decoders=e}or(e){return l(this,e)}decode(e){const r=e[0],o=this.decoders[r];if(o)return o.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const l=(t,e)=>new y({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}});class E{constructor(e,r,o,s){this.name=e,this.prefix=r,this.baseEncode=o,this.baseDecode=s,this.encoder=new w(e,r,o),this.decoder=new g(e,r,s)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const A=({name:t,prefix:e,encode:r,decode:o})=>new E(t,e,r,o),C=(t,e,r,o)=>{const s={};for(let p=0;p<e.length;++p)s[e[p]]=p;let i=t.length;for(;t[i-1]==="=";)--i;const a=new Uint8Array(i*r/8|0);let n=0,c=0,h=0;for(let p=0;p<i;++p){const u=s[t[p]];if(u===void 0)throw new SyntaxError(`Non-${o} character`);c=c<<r|u,n+=r,n>=8&&(n-=8,a[h++]=255&c>>n)}if(n>=r||255&c<<8-n)throw new SyntaxError("Unexpected end of data");return a},P=(t,e,r)=>{const o=e[e.length-1]==="=",s=(1<<r)-1;let i="",a=0,n=0;for(let c=0;c<t.length;++c)for(n=n<<8|t[c],a+=8;a>r;)a-=r,i+=e[s&n>>a];if(a&&(i+=e[s&n<<r-a]),o)for(;i.length*r&7;)i+="=";return i},d=({name:t,prefix:e,bitsPerChar:r,alphabet:o})=>A({prefix:e,name:t,encode(s){return P(s,o,r)},decode(s){return C(s,o,r,t)}}),$=d({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),v=d({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),S=d({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),U=d({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),q=d({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),B=d({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),O=d({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),j=d({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),k=d({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),D=Object.freeze(Object.defineProperty({__proto__:null,base32:$,base32hex:q,base32hexpad:O,base32hexpadupper:j,base32hexupper:B,base32pad:S,base32padupper:U,base32upper:v,base32z:k},Symbol.toStringTag,{value:"Module"})),N=m(D);var f,b;function R(){if(b)return f;b=1;const{toBuffer:t,toAddress:e,toBase58:r,toHex:o}=x(),{base32:s}=N;return f={encode:n=>{if(!n)return n;const c=t(e(n));return s.encode(c)},decode:n=>{if(!n)return n;const c=s.decode(n),h=r(c);return h.length>30?h:o(c)}},f}export{R as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,ak as l,aX as B,T as f,D as H,n as D,am as O,W as u}from"./vendor-mui-core-
|
|
1
|
+
import{j as e,ak as l,aX as B,T as f,D as H,n as D,am as O,W as u}from"./vendor-mui-core-___CiWHn.js";import{ac as $,a as U,a9 as I,v as P,aO as F}from"./index-DiqdSyj7.js";import{V as Z,U as k,s as Q,e as X}from"./vendor-ux-pxYpYMxD.js";import{a as Y}from"./page-header-bY0dwe6y.js";import{r as x}from"./vendor-react-CUXIiAnY.js";import{S as W}from"./button-CjoOMC5b.js";import{S as _}from"./layout-CgGSszKF.js";import{S as G}from"./step-actions-BursUhDh.js";import"./vendor-arcblock-DBEMYjVA.js";import"./vendor-utils-Doa0RxLS.js";import"./vendor-hooks-L8kZVRUL.js";import"./lottie-web-4koyQiv_.js";import"./content-layout-DpoiOm37.js";import"./use-mobile-yOnqxyr6.js";const J={width:24,height:24,body:'<path fill="currentColor" d="M17 17q.625 0 1.063-.438T18.5 15.5q0-.625-.438-1.063T17 14q-.625 0-1.063.438T15.5 15.5q0 .625.438 1.063T17 17Zm0 3q.775 0 1.425-.363t1.05-.962q-.55-.325-1.175-.5T17 18q-.675 0-1.3.175t-1.175.5q.4.6 1.05.963T17 20Zm0 2q-2.075 0-3.538-1.463T12 17q0-2.075 1.463-3.538T17 12q2.075 0 3.538 1.463T22 17q0 2.075-1.463 3.538T17 22Zm-5 0q-3.475-.875-5.738-3.988T4 11.1V5l8-3l8 3v5.675q-.65-.325-1.463-.5T17 10q-2.9 0-4.95 2.05T10 17q0 1.55.588 2.8t1.487 2.175q-.025 0-.037.013T12 22Z"/>'},K={width:24,height:24,body:'<path fill="currentColor" d="M7 15q1.25 0 2.125-.875T10 12q0-1.25-.875-2.125T7 9q-1.25 0-2.125.875T4 12q0 1.25.875 2.125T7 15Zm0 3q-2.5 0-4.25-1.75T1 12q0-2.5 1.75-4.25T7 6q2.025 0 3.538 1.15T12.65 10h8.375L23 11.975l-3.5 4L17 14l-2 2l-2-2h-.35q-.625 1.8-2.175 2.9T7 18Z"/>'},ee={width:24,height:24,body:'<path fill="currentColor" d="M4 20q-.825 0-1.413-.588T2 18V6q0-.825.588-1.413T4 4h16q.825 0 1.413.588T22 6v12q0 .825-.588 1.413T20 20H4Zm8-7L4 8v10h16V8l-8 5Zm0-2l8-5H4l8 5ZM4 8V6v12V8Z"/>'},te={width:24,height:24,body:'<path fill="currentColor" d="M6 20q-1.65 0-2.825-1.175T2 16V8q0-1.65 1.175-2.825T6 4h12q1.65 0 2.825 1.175T22 8v8q0 1.65-1.175 2.825T18 20H6ZM6 8h12q.55 0 1.05.125t.95.4V8q0-.825-.588-1.413T18 6H6q-.825 0-1.413.588T4 8v.525q.45-.275.95-.4T6 8Zm-1.85 3.25l11.125 2.7q.225.05.45 0t.425-.2l3.475-2.9q-.275-.375-.7-.613T18 10H6q-.65 0-1.137.338t-.713.912Z"/>'},z=n=>({wallet:{icon:te,label:n("setup.connectAccount.wallet"),description:n("setup.connectAccount.walletDesc"),isDefault:!1,priority:1},passkey:{icon:K,label:n("setup.connectAccount.passkey"),description:n("setup.connectAccount.passkeyDesc"),isDefault:!1,priority:2},email:{icon:ee,label:n("setup.connectAccount.email"),description:n("setup.connectAccount.emailDesc"),isDefault:!0,priority:3}});function M({type:n,account:b=null,onBind:s,bindButton:g=null,loading:q=!1,recommended:o=!1}){const{t:m}=Z(),a=z(m)[n],h=!!b,i=H();return e.jsx(l,{sx:{mb:2,p:{xs:1.5,sm:2},border:1,borderColor:o?D(i.palette.primary.main,.2):"divider",borderRadius:1,bgcolor:o?D(i.palette.primary.main,.08):"background.paper"},children:e.jsxs(l,{sx:{display:"flex",alignItems:{xs:"flex-start",sm:"center"},justifyContent:"space-between",flexDirection:{xs:"column",sm:"row"},gap:{xs:1.5,sm:2}},children:[e.jsxs(l,{sx:{display:"flex",alignItems:"center",gap:1.5,width:{xs:"100%",sm:"auto"}},children:[e.jsx(k,{icon:a.icon,style:{fontSize:"20px"}}),e.jsxs(l,{sx:{flex:1,minWidth:0},children:[e.jsxs(l,{sx:{display:"flex",alignItems:"center",gap:1,flexWrap:"wrap"},children:[e.jsx(f,{variant:"subtitle2",sx:{fontWeight:500,fontSize:{xs:"0.875rem",sm:"1rem"}},children:a.label}),h&&c("mobile"),o&&e.jsx(f,{variant:"caption",sx:{color:"warning.main",fontWeight:500,fontSize:"0.7rem"},children:m("setup.connectAccount.recommended")})]}),e.jsx(l,{sx:{mt:.5},children:v(b)})]})]}),a.isDefault?c():e.jsx(l,{sx:{width:{xs:"100%",sm:"auto"},display:"flex",justifyContent:"center"},children:h?c():g||e.jsx(W,{variant:"outlined",size:"small",onClick:()=>s(n),disabled:q,fullWidth:{xs:!0,sm:!1},sx:{borderColor:"primary.main",height:"32px !important",minWidth:{xs:"100%",sm:"60px"},fontSize:{xs:"0.875rem",sm:"0.8125rem"}},children:m("setup.connectAccount.connect")})})]})});function v(d){return h?d.displayName===d.did?e.jsx(X,{did:d.did,showQrcode:!0}):e.jsx(f,{variant:"body2",color:"text.secondary",sx:{fontFamily:"monospace",mt:.5},children:d.displayName}):e.jsx(f,{variant:"body2",color:"text.secondary",sx:{mt:.5},children:a.description})}function c(d){const p=d==="mobile";return e.jsx(l,{sx:{minWidth:p?"auto":{xs:"100%",sm:"60px"},display:p?{xs:"flex",md:"none"}:{xs:"none",md:"flex"},alignItems:"center",justifyContent:"center"},children:e.jsx(O,{title:m("setup.connectAccount.connected"),placement:"top",children:e.jsx(k,{icon:F,style:{color:i.palette.success.main,fontSize:p?"18px":"24px"}})})})}}M.propTypes={type:u.string.isRequired,account:u.object,onBind:u.func.isRequired,bindButton:u.node,loading:u.bool,recommended:u.bool};function se({onNext:n=()=>{},onPrevious:b=()=>{}}){const{t:s}=Z(),{blocklet:g}=$(),[q,o]=x.useState(!1),[m,a]=x.useState(!1),[h,i]=x.useState(null),{api:v,session:c}=U(),d=x.useRef(null),p=()=>{const t=c.user?.connectedAccounts||[],r={};return t.forEach(j=>{const{provider:S,userInfo:E,did:T,id:L}=j;S==="email"?r.email={did:T,displayName:L?.replace("email|","")||c.user?.email,...j}:S==="wallet"?r.wallet={did:T,displayName:T,...j}:S==="passkey"&&(r.passkey={did:T,displayName:E?.name||T,...j})}),r},[y,N]=x.useState(p());x.useEffect(()=>{N(p())},[c]);const R=t=>{i(t),o(!0),t==="wallet"?a(!0):t==="passkey"&&d.current.click()},w=()=>{c.refresh(),o(!1),a(!1),i(null)},C=z(s),V=Object.keys(C).filter(r=>!y[r]&&!C[r].isDefault).slice(0,2),A=Object.values(y).filter(Boolean).length;return e.jsxs(_,{children:[e.jsx("div",{className:"header",children:e.jsx(Y,{title:s("setup.connectAccount.title"),onClickBack:b})}),e.jsxs(l,{className:"form-container",sx:{maxWidth:"700px",px:{xs:1,sm:0},width:"100%"},children:[Object.entries(C).filter(([t])=>y[t]||t!=="email").sort(([,t],[,r])=>t.priority-r.priority).map(([t])=>e.jsx(M,{type:t,account:y[t],onBind:R,bindButton:t==="passkey"?e.jsx(I,{behavior:"only-new",action:"connect",sx:{height:"32px",minWidth:{xs:"100%",sm:"60px"},border:"1px solid",borderColor:"primary.main","& .MuiTypography-root":{color:"primary.main",textAlign:"center",fontSize:{xs:"0.875rem",sm:"0.8125rem"}},"& > div:first-child":{display:"none"},"& > svg":{display:"none !important"}},createButtonText:s("setup.connectAccount.connect"),createMode:"connect",onConnect:()=>{o(!0),i("passkey")},onSuccess:()=>{w()},onError:()=>{o(!1),i(null)},dense:!0},"passkey"):null,loading:q&&h===t,recommended:V.includes(t)},t)),A===1?!!y.email&&e.jsx(B,{severity:"warning",sx:{mt:-1},children:e.jsx(f,{variant:"body2",sx:{fontSize:{xs:"0.8rem",sm:"0.875rem"}},children:s("setup.connectAccount.securityTip")})}):e.jsx(B,{severity:"success",sx:{mb:{xs:2,sm:3}},icon:e.jsx(k,{icon:J}),children:e.jsx(f,{variant:"body2",sx:{fontSize:{xs:"0.8rem",sm:"0.875rem"}},children:s("setup.connectAccount.statusSuccess",{count:A})})}),e.jsx(P,{popup:!0,open:m,action:"bind-wallet",checkFn:v.get,checkTimeout:10*60*1e3,webWalletUrl:Q(),onClose:()=>{a(!1),o(!1),i(null)},onSuccess:()=>{w()},locale:"zh",messages:{title:s("setup.connect.title"),scan:s("setup.connect.scan"),confirm:s("setup.connect.confirm"),success:s("setup.connect.success")},extraParams:{previousUserDid:c.user?.did,skipMigrateAccount:!0,isService:!0}})]}),e.jsx(G,{blocklet:g,children:e.jsx(W,{variant:"contained",onClick:()=>n(),disabled:q,sx:{minWidth:{xs:100,sm:120}},children:A>0?s("setup.continue"):s("setup.connectAccount.skipBinding")})})]})}se.propTypes={onNext:u.func,onPrevious:u.func};export{se as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as g}from"./vendor-react-
|
|
1
|
+
import{r as g}from"./vendor-react-CUXIiAnY.js";import{j as e,bV as o1,at as K,ak as c,aj as W,z as h1,U as n1,I as Y,a6 as d1,bF as p1,F as f1,O as x1,bW as $,W as r,b7 as v1,b4 as m1,ar as g1,T as v,a3 as u,Q as V,b1 as u1}from"./vendor-mui-core-___CiWHn.js";import{K as j1,M as y1,e as Z1,p as L1,H as w1}from"./vendor-ux-pxYpYMxD.js";import{l as _1}from"./vendor-hooks-L8kZVRUL.js";import{_ as q,B as b1,a0 as E1,Y as d}from"./index-DiqdSyj7.js";import{s as O1}from"./sanitize-C43KM91h.js";import{F as k1}from"./form-text-input-gTokKFc6.js";import{R as M1}from"./required-BuZo1JHj.js";import{F as B1}from"./form-wrapper-BxqO_YSO.js";import{w as Q}from"./permission-t78Xon7o.js";import{u as R1}from"./use-app-logo-Bu9kUO2d.js";import{L as j}from"./logo-uploader-DnA7whvY.js";import{S as _}from"./section-DDyoFT-o.js";import"./vendor-utils-Doa0RxLS.js";import"./lottie-web-4koyQiv_.js";import"./vendor-arcblock-DBEMYjVA.js";import"./omit-CPVfFmp-.js";import"./index-BsA1v5Kx.js";import"./edit.svg-Dz9cVo7r.js";import"./session-Dt50YAVT.js";function J({label:i="",disabled:h=!1,required:p=!1,initialValue:s="",onChange:M=()=>{},style:z={},onSubmit:f=()=>{},triggers:m=[],options:a=[],formatterBeforeSubmit:b=Z=>Z.join(","),helperText:B="",placeholder:T="",renderImage:I=()=>null,renderLabel:N=()=>"",filterKeys:y=["name"],noEmpty:E=!1,...R}){const[Z,C]=g.useState(!1),[P,A]=g.useState(!1),[O,U]=g.useState(""),k=g.useRef(null),[L,S]=g.useState(s),[l,n]=g.useState(L),w=g.useMemo(()=>{if(!a)return{};const o={};return a.forEach(t=>{o[t.code]=t}),o},[a]),H=()=>{if(!a)return[];if(!O)return a.map(t=>t.code);const o=new RegExp(O.toLowerCase());return a.filter(t=>{for(let x=0;x<y.length;x++){const F=y[x];if(o.test(t[F]?.toLowerCase()))return!0}return!1}).map(t=>t.code)},c1=async()=>{A(!0);try{await f(typeof b=="function"?b(l):l)===!1?n(L):E&&!l.length?(n(s),S(s)):(n(l),S(l))}catch{n(L)}finally{A(!1),C(!1)}},t1=(o,t)=>{if(!Array.isArray(t)){n([]),M([]);return}const x=t.filter(F=>w[F]);if(!x.length){n([]),M([]);return}n(x),M(x)},s1=o=>{o.stopPropagation(),C(!0),setTimeout(()=>{if(k.current){const t=k.current.querySelector("input");t&&t.focus()}},500)},r1=Z?e.jsx(o1,{ref:k,options:a,value:l,onChange:t1,inputValue:O,onInputChange:(o,t)=>{U(t)},fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:H,getOptionLabel:o=>w[o]?.name,renderInput:o=>e.jsx(h1,{...o,label:"",placeholder:T}),renderOption:(o,t)=>{const x=l.indexOf(t)!==-1;return g.createElement(C1,{component:"li",...o,key:t},I(w[t]||{}),e.jsx(c,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:x?"700":"normal"},children:N(t,w[t])||w[t]?.name}),e.jsx(c,{component:W,sx:{opacity:.5,width:18,height:18},style:{visibility:x?"visible":"hidden"}}))},...R,slots:{popper:P1}}):e.jsx(c,{className:"form-item-input slot",onClick:s1,style:{whiteSpace:"pre-wrap",cursor:"text"},sx:{px:1},children:l.filter(o=>a.some(t=>t.code===o)).map(o=>e.jsx(n1,{label:a.find(t=>t.code===o).name,style:{marginRight:8},size:"small"},o))});return e.jsx(B1,{className:"form",style:z,children:e.jsxs(c,{className:"form-item",children:[e.jsxs(c,{className:"form-item-label",children:[i,p&&e.jsx(M1,{})]}),e.jsxs(c,{className:"form-item-body",children:[e.jsx(c,{className:"form-item-input",children:r1}),Z?e.jsx(c,{className:"form-item-action",children:e.jsxs(e.Fragment,{children:[e.jsx(Y,{"data-cy":"schema-form-item-confirm",onClick:c1,disabled:h||P,size:"large",children:P?e.jsx(d1,{size:24}):e.jsx(p1,{})}),e.jsx(Y,{"data-cy":"schema-form-item-cancel",onClick:()=>{n(L),C(!1)},disabled:h||P,size:"large",children:e.jsx(W,{})})]})}):null]}),Z&&B&&e.jsx(f1,{children:B})]})})}J.propTypes={style:r.object,onSubmit:r.func,onChange:r.func,label:r.string,initialValue:r.string,required:r.bool,disabled:r.bool,triggers:r.array,options:r.array,helperText:r.string,formatterBeforeSubmit:r.func,placeholder:r.string,renderImage:r.func,filterKeys:r.arrayOf(r.string),noEmpty:r.bool,renderLabel:r.func};const C1=K.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
align-items: center;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.__toCdnUrl("assets/vendor-ux-DYcPPYq2.css"),window.__toCdnUrl("assets/index-DrVXX4fX.css"),window.__toCdnUrl("assets/index-B5LvOF-F.css")])))=>i.map(i=>d[i]);
|
|
2
|
-
import{V as fe,_ as be}from"./vendor-ux-5OlTXZBe.js";import{j as e,b1 as U,T as E,ak as x,b4 as je,am as Y,I as A,bX as J,Y as se,at as ve,bC as ye,$ as we,bw as Ce,A as Z,aJ as Se,bY as Ie,R as ke,Q as W,W as k}from"./vendor-mui-core-CnXrAOs3.js";import{c as D}from"./index-Cq3xfsOS.js";import{E as N}from"./empty-spinner-DYOzicuy.js";import{k as Pe,u as Re}from"./vendor-hooks-CjESGRlR.js";import{r as m}from"./vendor-react-Dvs43sk9.js";import{D as Q,C as G,P as ee}from"./react-beautiful-dnd.esm-ZwmTP19t.js";import{S as F}from"./studio-2AfcGI4x.js";import"./vendor-utils-cJEl_UEd.js";import"./lottie-web-4koyQiv_.js";import"./vendor-arcblock-CqplRmyi.js";import"./raf-schd.esm-CHNehTG3.js";import"./index-Tj1dVBHC.js";var I={},te;function Ee(){if(te)return I;te=1,Object.defineProperty(I,"__esModule",{value:!0}),I.getVideoId=b,I.getEmbedUrl=c,I.getVideoCoverUrl=P,I.getVideoCheckUrl=y,I.getYoutubeId=r,I.getVimeoId=a,I.isVideoUrl=w;function r(s){const t=s.trim();return t.includes("youtu.be/")?t.split("youtu.be/")[1]?.split("?")[0]:t.includes("/embed/")?t.split("/embed/")[1]?.split("?")[0]:t.includes("youtube.com/watch")?new URL(t).searchParams.get("v"):t.includes("youtube.com/shorts/")?t.split("/shorts/")[1]?.split("?")[0]:""}function a(s){const t=s.trim();return t.includes("/embed/")?t.split("/embed/")[1]?.split("?")[0]:t.includes("vimeo.com/video/")?t.split("/video/")[1]?.split("?")[0]:t.includes("vimeo.com/channels/")?t.split("/channels/")[1]?.split("/")[1]?.split("?")[0]:t.includes("vimeo.com/groups/")?t.split("/groups/")[1]?.split("/")[1]?.split("?")[0]:t.includes("vimeo.com/")?t.split("vimeo.com/")[1]?.split("?")[0]:""}const p={};function b(s){const t=s.trim();return!t||!/^https?:\/\/.+\..+/.test(t)?[]:(p[t]||(p[t]=(()=>{const u=new URL(t);return u.host.includes("youtube.com")||u.host.includes("youtu.be")?[r(t),"youtube"]:u.host.includes("vimeo.com")?[a(t),"vimeo"]:[]})()),p[t])}const n={};function c(s,{modestbranding:t=1,controls:u=0,autoplay:g=0}={}){const j=s.trim();if(!j)return"";if(n[j]!==void 0)return n[j];const[O,l]=b(j);return l==="youtube"?n[j]=`https://www.youtube.com/embed/${O}?modestbranding=${t}&controls=${u}&autoplay=${g}`:l==="vimeo"?n[j]=`https://player.vimeo.com/video/${O}?autoplay=${g}`:n[j]="",n[j]}const d={};function P(s){const t=s.trim();if(!t)return"";if(d[t]!==void 0)return d[t];const[u,g]=b(t);return g==="youtube"?d[t]=`https://img.youtube.com/vi/${u}/mqdefault.jpg`:g==="vimeo"?d[t]=`https://i.vimeocdn.com/${u}/1000x563`:d[t]="",d[t]}function y(s){const t=s.trim();if(!t)return"";const[u,g]=b(t);return g==="youtube"?`https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=${u}&format=json`:g==="vimeo"?`https://vimeo.com/api/oembed.json?url=https://vimeo.com/${u}`:""}function w(s){const t=s.trim();return b(t).length>0}return I}var q=Ee();const re=m.lazy(()=>be(()=>import("./index-Dd1dREUL.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(r=>({default:r.Uploader}))),Oe=`${D.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/logo/upload`,Ve=`${D.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/screenshots/upload`,Le=`${D.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/logo`,_=`${D.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/screenshots`,De=`${D.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/videos`,oe=5,ie=3;function Xe(){const{t:r,locale:a}=fe(),[p,b]=m.useState(!1),[n,c]=m.useState(!1),[d,P]=m.useState([]),[y,w]=m.useState([]),[s,t]=m.useState(""),[u,g]=m.useState(""),[j,O]=m.useState(Date.now()),l=Pe(async()=>{const i=await(await fetch(_)).json();return P(i.screenshots||[]),w(i.videos?.filter(h=>!!h)||[]),i}),f=m.useRef(null),C=m.useRef(null);if(l.loading&&!l.data)return e.jsx(F,{children:e.jsx(N,{size:40})});if(l.error)return e.jsx(F,{children:e.jsx(U,{direction:"column",spacing:1,sx:{mb:3},children:e.jsx(E,{sx:{color:"error.main",fontWeight:"bold"},children:l.error.message})})});const T=async o=>{const i=o.filter(h=>!!h);w(i),await fetch(De,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({videos:i})})},le=async o=>{const i=Array.from(y),[h]=i.splice(o.source.index,1);i.splice(o.destination.index,0,h),await T(i)},ce=async o=>{const i=Array.from(d),[h]=i.splice(o.source.index,1);i.splice(o.destination.index,0,h),P(i),await fetch(`${_}/reorder`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({screenshots:i})})},H=async o=>{o.destination&&(o.source.droppableId==="screenshots"?await ce(o):o.source.droppableId==="videos"&&await le(o),l.runAsync())},B=o=>{g(o.trim()),c(!0)},K=async(o,i="")=>{let h=[];i?h=o?y.map(v=>v===i?o.trim():v):y.filter(v=>v!==i):o&&(h=[...y,o.trim()]),g(""),c(!1),(o||i)&&await T(h),l.runAsync()},de=o=>{b(!0),t(o)},M=()=>{b(!1),t("")};function ue(){const o=[{label:r("studio.type"),value:"png, jpg, webp, svg"},{label:r("studio.ratio"),value:"256x256"},{label:r("studio.size"),value:"<500KB"}],i=[{label:r("studio.tip"),value:r("studio.change")}];return e.jsx($,{title:r("common.logo"),rules:o,tips:i,children:e.jsx(x,{sx:{flex:1,cursor:"pointer"},children:e.jsx(je,{variant:"square",sx:{width:128,height:128},alt:"Blocklet Logo",src:`${Le}?t=${j}`,onClick:()=>f.current?.open()})})})}function pe(){const o=[{label:r("studio.ratio"),value:"16 / 9"},{label:r("studio.count"),value:`1~${oe}`},{label:r("studio.size"),value:"<5MB"}],i=[{label:r("studio.tip"),value:r("studio.orderTipLong")}];return e.jsx($,{title:r("common.screenshot"),tips:i,rules:o,children:e.jsx(Q,{onDragEnd:H,children:e.jsx(G,{droppableId:"screenshots",direction:"horizontal",children:(v,V)=>e.jsxs(x,{ref:v.innerRef,...v.droppableProps,sx:{display:"flex",alignItems:"center",flex:1,mt:1,flexWrap:"wrap",minHeight:225,background:V.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:V.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},children:[d.map((S,z)=>e.jsx(ee,{draggableId:S,index:z,children:(R,L)=>{const X=`${_}/${S}`;return e.jsxs(x,{ref:R.innerRef,...R.draggableProps,...R.dragHandleProps,className:"image-wrapper",sx:{transform:L.isDragging?"scale(1.05)":"none",boxShadow:L.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[e.jsx("img",{alt:"screenshot",src:X,onClick:()=>de(S),style:{cursor:"pointer"}}),e.jsx(Y,{title:r("studio.deleteTooltip"),children:e.jsx(A,{className:"action",style:{top:10,color:"white",background:"red"},onClick:async()=>{await fetch(X,{method:"DELETE"}),l.runAsync()},children:e.jsx(J,{})})})]})}},S)),v.placeholder,d.length<oe&&h()]})})})});function h(){return e.jsx(x,{onClick:()=>C.current?.open(),sx:{display:"flex",justifyContent:"center",alignItems:"center",mb:2,width:400,height:225,fontSize:40,background:"#eee",cursor:"pointer",color:"#999"},children:"+"})}}function he(){const o=[{label:r("studio.count"),value:`1~${ie}`},{label:r("studio.videoType"),value:e.jsxs(e.Fragment,{children:[e.jsx("a",{href:"https://www.youtube.com/",target:"_blank",rel:"noreferrer",children:"Youtube"}),","," ",e.jsx("a",{href:"https://vimeo.com/",target:"_blank",rel:"noreferrer",children:"Vimeo"})]})}],i=[{label:`${r("studio.tip")}`,value:r("studio.videoTipLong")}];return e.jsxs($,{title:r("studio.video"),tips:i,rules:o,children:[e.jsx(Q,{onDragEnd:H,children:e.jsx(G,{droppableId:"videos",direction:"horizontal",children:(v,V)=>e.jsxs(x,{ref:v.innerRef,...v.droppableProps,sx:{display:"flex",alignItems:"center",flex:1,mt:1,flexWrap:"wrap",minHeight:225,background:V.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:V.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},children:[y.map((S,z)=>e.jsx(ee,{draggableId:S,index:z,children:(R,L)=>e.jsxs(x,{ref:R.innerRef,...R.draggableProps,...R.dragHandleProps,className:"image-wrapper",sx:{transform:L.isDragging?"scale(1.05)":"none",boxShadow:L.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[e.jsx("img",{alt:"videos",src:q.getVideoCoverUrl(S),onClick:()=>B(S),style:{cursor:"pointer"}}),e.jsx(x,{sx:{position:"absolute",cursor:"pointer",fontSize:"3rem"},onClick:()=>B(S),children:e.jsx(ae,{})}),e.jsx(Y,{title:r("studio.deleteTooltip"),children:e.jsx(A,{className:"action",style:{top:10,color:"white",background:"red"},onClick:()=>K(null,S),children:e.jsx(J,{})})})]})},S)),v.placeholder,y.length<ie&&h()]})})}),n&&e.jsx(ne,{t:r,handleOperateVideo:K,defaultUrl:u,videos:y})]});function h(){return e.jsx(x,{onClick:()=>c(!0),sx:{display:"flex",justifyContent:"center",alignItems:"center",mb:2,width:400,height:225,fontSize:40,background:"#eee",cursor:"pointer",color:"#999"},children:"+"})}}function me(){return e.jsx(se,{open:p,onClose:M,maxWidth:"xl",slotProps:{paper:{style:{backgroundColor:"transparent",boxShadow:"none"}}},children:e.jsx("img",{src:`${_}/${s}`,alt:"Screenshot Full",style:{maxWidth:"90vw",maxHeight:"90vh",objectFit:"contain"},onClick:M})})}function xe(){return e.jsxs(m.Suspense,{fallback:e.jsx(N,{size:40}),children:[e.jsx(re,{ref:f,locale:a,popup:!0,onUploadFinish:()=>{f.current?.close(),O(Date.now()),l.runAsync()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:Oe,disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/png","image/jpeg","image/webp","image/svg+xml"],maxFileSize:1024*1024*.5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,aspectRatio:1,initialAspectRatio:1,autoCropArea:1,croppedCanvasOptions:{minWidth:256,minHeight:256}}}},"uploader-logo"),e.jsx(re,{ref:C,locale:a,popup:!0,onUploadFinish:()=>{C.current?.close(),l.runAsync()},installerProps:{disabled:!0},plugins:["ImageEditor"],apiPathProps:{uploader:Ve,disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/*","image/svg+xml"],maxFileSize:1024*1024*5,maxNumberOfFiles:5-d.length}},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:16/9,initialAspectRatio:16/9,croppedCanvasOptions:{minWidth:1280,minHeight:720,maxWidth:1280*2,maxHeight:720*2}}}},"uploader-screenshot")]})}const ge=`https://www.arcblock.io/docs/blocklet-store/${a}/supplying-images`;return e.jsx(F,{children:e.jsxs(Te,{children:[e.jsxs(U,{direction:"column",spacing:1,sx:{mb:3},children:[e.jsx(E,{variant:"h5",sx:{fontWeight:"bold"},children:r("studio.title",{title:l.data?.title})}),e.jsxs(E,{variant:"body2",sx:{color:"text.secondary"},children:[r("studio.description")," ",e.jsx("a",{href:ge,target:"_blank",rel:"noreferrer",children:r("studio.documentation")})]})]}),ue(),pe(),he(),me(),xe()]})})}function $({title:r,rules:a,tips:p,children:b}){return e.jsxs(x,{sx:{display:"flex",flexDirection:"column",mb:4},children:[e.jsxs(U,{direction:"column",spacing:1,sx:{mb:2},children:[e.jsx(E,{variant:"h6",sx:{fontWeight:"bold"},children:r}),e.jsx(U,{direction:"row",spacing:2,sx:{fontSize:"13px",opacity:.8},children:a.map(c=>n(c.label,c.value))}),p.map(c=>e.jsx(x,{sx:{fontSize:"13px",opacity:.8},children:n(c.label,c.value)}))]}),b]});function n(c,d){return e.jsxs(x,{component:"span",children:[e.jsxs(x,{component:"span",sx:{color:"#555",mr:.5},children:[c,":"]}),e.jsx(x,{component:"span",sx:{color:"#007ec6"},children:d})]})}}$.propTypes={title:k.string.isRequired,rules:k.array.isRequired,tips:k.array.isRequired,children:k.node.isRequired};function ne({handleOperateVideo:r,t:a,defaultUrl:p="",videos:b}){const[n,c]=m.useState(p),[d,P]=m.useState(!1),[y,w]=m.useState(!1),s=m.useRef(n),t=n!==p&&b.includes(n),u=!n&&p,g=!t&&(n&&n!==s.current||d),j=!!navigator.clipboard?.readText,{run:O}=Re(l,{wait:500,leading:!0});return e.jsxs(se,{open:!0,fullWidth:!0,maxWidth:"sm",children:[e.jsx(ye,{children:a(p?"studio.videoDialogEditTitle":"studio.videoDialogTitle")}),e.jsxs(we,{children:[e.jsx(Ce,{fullWidth:!0,value:n,onChange:f=>{const C=f.target.value.trim();c(C),C?O(C):w(!1)},placeholder:a("studio.videoInputLabel"),endAdornment:n?e.jsx(Z,{position:"end",children:e.jsx(A,{onClick:()=>{c(""),l("")},children:e.jsx(Se,{})})}):j&&e.jsx(Z,{position:"end",children:e.jsx(A,{onClick:async()=>{try{const f=(await navigator.clipboard.readText()||"").trim();c(f),l(f)}catch(f){console.error(f)}},children:e.jsx(Ie,{})})})}),e.jsxs(x,{sx:{mb:2,mt:.5},children:[t&&e.jsx(E,{variant:"body2",color:"error",children:a("studio.duplicateVideo")}),!t&&y&&e.jsx(E,{variant:"body2",color:"error",children:a("studio.videoDialogNoSrc")})]}),s.current?e.jsx("iframe",{width:"100%",height:"315",title:`video-${s.current}`,src:q.getEmbedUrl(s.current),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,border:"1px solid #eee"}):e.jsx(x,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:315,width:"100%",border:"1px solid #eee"},children:d?e.jsx(N,{size:40}):e.jsx(E,{variant:"h5",sx:{color:"text.secondary"},children:e.jsx(ae,{})})})]}),e.jsxs(ke,{children:[e.jsx(W,{onClick:()=>r(),children:a("studio.cancel")}),u&&e.jsx(W,{variant:"contained",color:"error",onClick:()=>r(null,p),children:a("studio.delete")}),g&&e.jsx(W,{variant:"contained",onClick:()=>l(n),disabled:!n||d,children:a("studio.preview")}),!u&&!g&&e.jsx(W,{variant:"contained",onClick:()=>r(s.current),disabled:!s.current||p===s.current||t,children:a("studio.confirm")})]})]});function l(f){s.current="";const C=q.getVideoCheckUrl(f);w(f?!C:!1),C&&(P(!0),fetch(C).then(T=>{T.ok?(s.current=f,w(!1)):w(!0)}).catch(()=>{w(!0)}).finally(()=>P(!1)))}}ne.propTypes={handleOperateVideo:k.func.isRequired,t:k.func.isRequired,defaultUrl:k.string,videos:k.array.isRequired};function ae(){return e.jsxs("svg",{viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:48,width:48,children:[e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28 56C43.464 56 56 43.464 56 28C56 12.536 43.464 0 28 0C12.536 0 0 12.536 0 28C0 43.464 12.536 56 28 56Z",fill:"black","fill-opacity":"0.54"}),e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.6667 28L21 17.5V38.5L39.6667 28Z",fill:"white"})]})}const Te=ve.div`
|
|
2
|
+
import{V as fe,_ as be}from"./vendor-ux-pxYpYMxD.js";import{j as e,b1 as U,T as E,ak as x,b4 as je,am as Y,I as A,bX as J,Y as se,at as ve,bC as ye,$ as we,bw as Ce,A as Z,aJ as Se,bY as Ie,R as ke,Q as W,W as k}from"./vendor-mui-core-___CiWHn.js";import{c as D}from"./index-DiqdSyj7.js";import{E as N}from"./empty-spinner-CveVktQP.js";import{k as Pe,u as Re}from"./vendor-hooks-L8kZVRUL.js";import{r as m}from"./vendor-react-CUXIiAnY.js";import{D as Q,C as G,P as ee}from"./react-beautiful-dnd.esm-DQ9oGom7.js";import{S as F}from"./studio-Cfhka82V.js";import"./vendor-utils-Doa0RxLS.js";import"./lottie-web-4koyQiv_.js";import"./vendor-arcblock-DBEMYjVA.js";import"./raf-schd.esm-JNUhxcps.js";import"./index-DKSVm7e-.js";var I={},te;function Ee(){if(te)return I;te=1,Object.defineProperty(I,"__esModule",{value:!0}),I.getVideoId=b,I.getEmbedUrl=c,I.getVideoCoverUrl=P,I.getVideoCheckUrl=y,I.getYoutubeId=r,I.getVimeoId=a,I.isVideoUrl=w;function r(s){const t=s.trim();return t.includes("youtu.be/")?t.split("youtu.be/")[1]?.split("?")[0]:t.includes("/embed/")?t.split("/embed/")[1]?.split("?")[0]:t.includes("youtube.com/watch")?new URL(t).searchParams.get("v"):t.includes("youtube.com/shorts/")?t.split("/shorts/")[1]?.split("?")[0]:""}function a(s){const t=s.trim();return t.includes("/embed/")?t.split("/embed/")[1]?.split("?")[0]:t.includes("vimeo.com/video/")?t.split("/video/")[1]?.split("?")[0]:t.includes("vimeo.com/channels/")?t.split("/channels/")[1]?.split("/")[1]?.split("?")[0]:t.includes("vimeo.com/groups/")?t.split("/groups/")[1]?.split("/")[1]?.split("?")[0]:t.includes("vimeo.com/")?t.split("vimeo.com/")[1]?.split("?")[0]:""}const p={};function b(s){const t=s.trim();return!t||!/^https?:\/\/.+\..+/.test(t)?[]:(p[t]||(p[t]=(()=>{const u=new URL(t);return u.host.includes("youtube.com")||u.host.includes("youtu.be")?[r(t),"youtube"]:u.host.includes("vimeo.com")?[a(t),"vimeo"]:[]})()),p[t])}const n={};function c(s,{modestbranding:t=1,controls:u=0,autoplay:g=0}={}){const j=s.trim();if(!j)return"";if(n[j]!==void 0)return n[j];const[O,l]=b(j);return l==="youtube"?n[j]=`https://www.youtube.com/embed/${O}?modestbranding=${t}&controls=${u}&autoplay=${g}`:l==="vimeo"?n[j]=`https://player.vimeo.com/video/${O}?autoplay=${g}`:n[j]="",n[j]}const d={};function P(s){const t=s.trim();if(!t)return"";if(d[t]!==void 0)return d[t];const[u,g]=b(t);return g==="youtube"?d[t]=`https://img.youtube.com/vi/${u}/mqdefault.jpg`:g==="vimeo"?d[t]=`https://i.vimeocdn.com/${u}/1000x563`:d[t]="",d[t]}function y(s){const t=s.trim();if(!t)return"";const[u,g]=b(t);return g==="youtube"?`https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=${u}&format=json`:g==="vimeo"?`https://vimeo.com/api/oembed.json?url=https://vimeo.com/${u}`:""}function w(s){const t=s.trim();return b(t).length>0}return I}var q=Ee();const re=m.lazy(()=>be(()=>import("./index-DByR2J-y.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(r=>({default:r.Uploader}))),Oe=`${D.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/logo/upload`,Ve=`${D.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/screenshots/upload`,Le=`${D.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/logo`,_=`${D.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/screenshots`,De=`${D.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/videos`,oe=5,ie=3;function Xe(){const{t:r,locale:a}=fe(),[p,b]=m.useState(!1),[n,c]=m.useState(!1),[d,P]=m.useState([]),[y,w]=m.useState([]),[s,t]=m.useState(""),[u,g]=m.useState(""),[j,O]=m.useState(Date.now()),l=Pe(async()=>{const i=await(await fetch(_)).json();return P(i.screenshots||[]),w(i.videos?.filter(h=>!!h)||[]),i}),f=m.useRef(null),C=m.useRef(null);if(l.loading&&!l.data)return e.jsx(F,{children:e.jsx(N,{size:40})});if(l.error)return e.jsx(F,{children:e.jsx(U,{direction:"column",spacing:1,sx:{mb:3},children:e.jsx(E,{sx:{color:"error.main",fontWeight:"bold"},children:l.error.message})})});const T=async o=>{const i=o.filter(h=>!!h);w(i),await fetch(De,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({videos:i})})},le=async o=>{const i=Array.from(y),[h]=i.splice(o.source.index,1);i.splice(o.destination.index,0,h),await T(i)},ce=async o=>{const i=Array.from(d),[h]=i.splice(o.source.index,1);i.splice(o.destination.index,0,h),P(i),await fetch(`${_}/reorder`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({screenshots:i})})},H=async o=>{o.destination&&(o.source.droppableId==="screenshots"?await ce(o):o.source.droppableId==="videos"&&await le(o),l.runAsync())},B=o=>{g(o.trim()),c(!0)},K=async(o,i="")=>{let h=[];i?h=o?y.map(v=>v===i?o.trim():v):y.filter(v=>v!==i):o&&(h=[...y,o.trim()]),g(""),c(!1),(o||i)&&await T(h),l.runAsync()},de=o=>{b(!0),t(o)},M=()=>{b(!1),t("")};function ue(){const o=[{label:r("studio.type"),value:"png, jpg, webp, svg"},{label:r("studio.ratio"),value:"256x256"},{label:r("studio.size"),value:"<500KB"}],i=[{label:r("studio.tip"),value:r("studio.change")}];return e.jsx($,{title:r("common.logo"),rules:o,tips:i,children:e.jsx(x,{sx:{flex:1,cursor:"pointer"},children:e.jsx(je,{variant:"square",sx:{width:128,height:128},alt:"Blocklet Logo",src:`${Le}?t=${j}`,onClick:()=>f.current?.open()})})})}function pe(){const o=[{label:r("studio.ratio"),value:"16 / 9"},{label:r("studio.count"),value:`1~${oe}`},{label:r("studio.size"),value:"<5MB"}],i=[{label:r("studio.tip"),value:r("studio.orderTipLong")}];return e.jsx($,{title:r("common.screenshot"),tips:i,rules:o,children:e.jsx(Q,{onDragEnd:H,children:e.jsx(G,{droppableId:"screenshots",direction:"horizontal",children:(v,V)=>e.jsxs(x,{ref:v.innerRef,...v.droppableProps,sx:{display:"flex",alignItems:"center",flex:1,mt:1,flexWrap:"wrap",minHeight:225,background:V.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:V.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},children:[d.map((S,z)=>e.jsx(ee,{draggableId:S,index:z,children:(R,L)=>{const X=`${_}/${S}`;return e.jsxs(x,{ref:R.innerRef,...R.draggableProps,...R.dragHandleProps,className:"image-wrapper",sx:{transform:L.isDragging?"scale(1.05)":"none",boxShadow:L.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[e.jsx("img",{alt:"screenshot",src:X,onClick:()=>de(S),style:{cursor:"pointer"}}),e.jsx(Y,{title:r("studio.deleteTooltip"),children:e.jsx(A,{className:"action",style:{top:10,color:"white",background:"red"},onClick:async()=>{await fetch(X,{method:"DELETE"}),l.runAsync()},children:e.jsx(J,{})})})]})}},S)),v.placeholder,d.length<oe&&h()]})})})});function h(){return e.jsx(x,{onClick:()=>C.current?.open(),sx:{display:"flex",justifyContent:"center",alignItems:"center",mb:2,width:400,height:225,fontSize:40,background:"#eee",cursor:"pointer",color:"#999"},children:"+"})}}function he(){const o=[{label:r("studio.count"),value:`1~${ie}`},{label:r("studio.videoType"),value:e.jsxs(e.Fragment,{children:[e.jsx("a",{href:"https://www.youtube.com/",target:"_blank",rel:"noreferrer",children:"Youtube"}),","," ",e.jsx("a",{href:"https://vimeo.com/",target:"_blank",rel:"noreferrer",children:"Vimeo"})]})}],i=[{label:`${r("studio.tip")}`,value:r("studio.videoTipLong")}];return e.jsxs($,{title:r("studio.video"),tips:i,rules:o,children:[e.jsx(Q,{onDragEnd:H,children:e.jsx(G,{droppableId:"videos",direction:"horizontal",children:(v,V)=>e.jsxs(x,{ref:v.innerRef,...v.droppableProps,sx:{display:"flex",alignItems:"center",flex:1,mt:1,flexWrap:"wrap",minHeight:225,background:V.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:V.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},children:[y.map((S,z)=>e.jsx(ee,{draggableId:S,index:z,children:(R,L)=>e.jsxs(x,{ref:R.innerRef,...R.draggableProps,...R.dragHandleProps,className:"image-wrapper",sx:{transform:L.isDragging?"scale(1.05)":"none",boxShadow:L.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[e.jsx("img",{alt:"videos",src:q.getVideoCoverUrl(S),onClick:()=>B(S),style:{cursor:"pointer"}}),e.jsx(x,{sx:{position:"absolute",cursor:"pointer",fontSize:"3rem"},onClick:()=>B(S),children:e.jsx(ae,{})}),e.jsx(Y,{title:r("studio.deleteTooltip"),children:e.jsx(A,{className:"action",style:{top:10,color:"white",background:"red"},onClick:()=>K(null,S),children:e.jsx(J,{})})})]})},S)),v.placeholder,y.length<ie&&h()]})})}),n&&e.jsx(ne,{t:r,handleOperateVideo:K,defaultUrl:u,videos:y})]});function h(){return e.jsx(x,{onClick:()=>c(!0),sx:{display:"flex",justifyContent:"center",alignItems:"center",mb:2,width:400,height:225,fontSize:40,background:"#eee",cursor:"pointer",color:"#999"},children:"+"})}}function me(){return e.jsx(se,{open:p,onClose:M,maxWidth:"xl",slotProps:{paper:{style:{backgroundColor:"transparent",boxShadow:"none"}}},children:e.jsx("img",{src:`${_}/${s}`,alt:"Screenshot Full",style:{maxWidth:"90vw",maxHeight:"90vh",objectFit:"contain"},onClick:M})})}function xe(){return e.jsxs(m.Suspense,{fallback:e.jsx(N,{size:40}),children:[e.jsx(re,{ref:f,locale:a,popup:!0,onUploadFinish:()=>{f.current?.close(),O(Date.now()),l.runAsync()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:Oe,disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/png","image/jpeg","image/webp","image/svg+xml"],maxFileSize:1024*1024*.5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,aspectRatio:1,initialAspectRatio:1,autoCropArea:1,croppedCanvasOptions:{minWidth:256,minHeight:256}}}},"uploader-logo"),e.jsx(re,{ref:C,locale:a,popup:!0,onUploadFinish:()=>{C.current?.close(),l.runAsync()},installerProps:{disabled:!0},plugins:["ImageEditor"],apiPathProps:{uploader:Ve,disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/*","image/svg+xml"],maxFileSize:1024*1024*5,maxNumberOfFiles:5-d.length}},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:16/9,initialAspectRatio:16/9,croppedCanvasOptions:{minWidth:1280,minHeight:720,maxWidth:1280*2,maxHeight:720*2}}}},"uploader-screenshot")]})}const ge=`https://www.arcblock.io/docs/blocklet-store/${a}/supplying-images`;return e.jsx(F,{children:e.jsxs(Te,{children:[e.jsxs(U,{direction:"column",spacing:1,sx:{mb:3},children:[e.jsx(E,{variant:"h5",sx:{fontWeight:"bold"},children:r("studio.title",{title:l.data?.title})}),e.jsxs(E,{variant:"body2",sx:{color:"text.secondary"},children:[r("studio.description")," ",e.jsx("a",{href:ge,target:"_blank",rel:"noreferrer",children:r("studio.documentation")})]})]}),ue(),pe(),he(),me(),xe()]})})}function $({title:r,rules:a,tips:p,children:b}){return e.jsxs(x,{sx:{display:"flex",flexDirection:"column",mb:4},children:[e.jsxs(U,{direction:"column",spacing:1,sx:{mb:2},children:[e.jsx(E,{variant:"h6",sx:{fontWeight:"bold"},children:r}),e.jsx(U,{direction:"row",spacing:2,sx:{fontSize:"13px",opacity:.8},children:a.map(c=>n(c.label,c.value))}),p.map(c=>e.jsx(x,{sx:{fontSize:"13px",opacity:.8},children:n(c.label,c.value)}))]}),b]});function n(c,d){return e.jsxs(x,{component:"span",children:[e.jsxs(x,{component:"span",sx:{color:"#555",mr:.5},children:[c,":"]}),e.jsx(x,{component:"span",sx:{color:"#007ec6"},children:d})]})}}$.propTypes={title:k.string.isRequired,rules:k.array.isRequired,tips:k.array.isRequired,children:k.node.isRequired};function ne({handleOperateVideo:r,t:a,defaultUrl:p="",videos:b}){const[n,c]=m.useState(p),[d,P]=m.useState(!1),[y,w]=m.useState(!1),s=m.useRef(n),t=n!==p&&b.includes(n),u=!n&&p,g=!t&&(n&&n!==s.current||d),j=!!navigator.clipboard?.readText,{run:O}=Re(l,{wait:500,leading:!0});return e.jsxs(se,{open:!0,fullWidth:!0,maxWidth:"sm",children:[e.jsx(ye,{children:a(p?"studio.videoDialogEditTitle":"studio.videoDialogTitle")}),e.jsxs(we,{children:[e.jsx(Ce,{fullWidth:!0,value:n,onChange:f=>{const C=f.target.value.trim();c(C),C?O(C):w(!1)},placeholder:a("studio.videoInputLabel"),endAdornment:n?e.jsx(Z,{position:"end",children:e.jsx(A,{onClick:()=>{c(""),l("")},children:e.jsx(Se,{})})}):j&&e.jsx(Z,{position:"end",children:e.jsx(A,{onClick:async()=>{try{const f=(await navigator.clipboard.readText()||"").trim();c(f),l(f)}catch(f){console.error(f)}},children:e.jsx(Ie,{})})})}),e.jsxs(x,{sx:{mb:2,mt:.5},children:[t&&e.jsx(E,{variant:"body2",color:"error",children:a("studio.duplicateVideo")}),!t&&y&&e.jsx(E,{variant:"body2",color:"error",children:a("studio.videoDialogNoSrc")})]}),s.current?e.jsx("iframe",{width:"100%",height:"315",title:`video-${s.current}`,src:q.getEmbedUrl(s.current),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,border:"1px solid #eee"}):e.jsx(x,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:315,width:"100%",border:"1px solid #eee"},children:d?e.jsx(N,{size:40}):e.jsx(E,{variant:"h5",sx:{color:"text.secondary"},children:e.jsx(ae,{})})})]}),e.jsxs(ke,{children:[e.jsx(W,{onClick:()=>r(),children:a("studio.cancel")}),u&&e.jsx(W,{variant:"contained",color:"error",onClick:()=>r(null,p),children:a("studio.delete")}),g&&e.jsx(W,{variant:"contained",onClick:()=>l(n),disabled:!n||d,children:a("studio.preview")}),!u&&!g&&e.jsx(W,{variant:"contained",onClick:()=>r(s.current),disabled:!s.current||p===s.current||t,children:a("studio.confirm")})]})]});function l(f){s.current="";const C=q.getVideoCheckUrl(f);w(f?!C:!1),C&&(P(!0),fetch(C).then(T=>{T.ok?(s.current=f,w(!1)):w(!0)}).catch(()=>{w(!0)}).finally(()=>P(!1)))}}ne.propTypes={handleOperateVideo:k.func.isRequired,t:k.func.isRequired,defaultUrl:k.string,videos:k.array.isRequired};function ae(){return e.jsxs("svg",{viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:48,width:48,children:[e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28 56C43.464 56 56 43.464 56 28C56 12.536 43.464 0 28 0C12.536 0 0 12.536 0 28C0 43.464 12.536 56 28 56Z",fill:"black","fill-opacity":"0.54"}),e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.6667 28L21 17.5V38.5L39.6667 28Z",fill:"white"})]})}const Te=ve.div`
|
|
3
3
|
margin-top: 24px;
|
|
4
4
|
.image-wrapper {
|
|
5
5
|
margin-bottom: 16px;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as t,ak as r,W as p}from"./vendor-mui-core-___CiWHn.js";import m from"./branding-B7dM6NSY.js";import{Y as o}from"./index-DiqdSyj7.js";import"./vendor-react-CUXIiAnY.js";import"./vendor-ux-pxYpYMxD.js";import"./vendor-utils-Doa0RxLS.js";import"./vendor-hooks-L8kZVRUL.js";import"./lottie-web-4koyQiv_.js";import"./sanitize-C43KM91h.js";import"./omit-CPVfFmp-.js";import"./index-BsA1v5Kx.js";import"./form-text-input-gTokKFc6.js";import"./required-BuZo1JHj.js";import"./form-wrapper-BxqO_YSO.js";import"./edit.svg-Dz9cVo7r.js";import"./permission-t78Xon7o.js";import"./session-Dt50YAVT.js";import"./use-app-logo-Bu9kUO2d.js";import"./logo-uploader-DnA7whvY.js";import"./section-DDyoFT-o.js";import"./vendor-arcblock-DBEMYjVA.js";function s({blocklet:i}){return t.jsx(r,{sx:{width:"100%","& .section-left":{width:340},"& .section":{gap:3}},children:t.jsx(m,{blocklet:i,showFields:[o.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_NAME,o.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_DESCRIPTION,o.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO]})})}s.propTypes={blocklet:p.object.isRequired};export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as u,b4 as x,W as e}from"./vendor-mui-core-
|
|
1
|
+
import{j as u,b4 as x,W as e}from"./vendor-mui-core-___CiWHn.js";import{$}from"./vendor-ux-pxYpYMxD.js";import{C as c}from"./vendor-utils-Doa0RxLS.js";import{_ as l,an as v,ao as j,c as y,ap as E,aq as P}from"./index-DiqdSyj7.js";function R({blocklet:o,ancestors:d=[]}){const t=l(),{inService:s}=t,n=v(o?.status)||j(o?.status),r=`?v=${o?.meta?.version}${n?"~":""}`;let a=s?`${c(E,y.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-bundle")}${r}`:c(t.imgPrefix,"blocklet.png");if(o.source==="registry"&&o.deployedFrom&&o.meta.logo)a=`${c(o.deployedFrom,P(o.meta.bundleDid,o.meta.logo))}${r}`;else{const g=window.env?.apiPrefix||"/",i=d.concat(o),p=s?i.slice(1):i;a=`${c(g,`/blocklet/logo-bundle${p.map(m=>`/${m.meta.did}`).join("")}`)}${r}`}return{logoUrl:a,inService:s}}function h({blocklet:o,style:d={},size:t=40,ancestors:s=[],...n}){const r=l(),{logoUrl:a,inService:g}=R({blocklet:o,ancestors:s}),{variant:i}=n,p=g?()=>{}:f=>{f.target.src=`${r.imgPrefix}/blocklet.png`};let m=u.jsx("img",{src:a,onError:p,alt:o.meta.name,style:{width:t}});return o.meta.logo||(m=u.jsx($,{did:o.meta.did||"",responsive:!0})),u.jsx(x,{variant:i||"square",style:Object.assign({backgroundColor:"transparent",width:t,height:t,borderRadius:10},d),...n,children:m})}h.propTypes={blocklet:e.object.isRequired,style:e.object,size:e.oneOfType([e.number,e.string]),ancestors:e.array};export{h as B};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./vendor-mui-core-___CiWHn.js";import{n as r}from"./vendor-ux-pxYpYMxD.js";function m({...t}){return o.jsx(r,{className:"bottom-button",variant:"contained",color:"primary",...t})}export{m as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i}from"./vendor-react-CUXIiAnY.js";import{j as t,W as e}from"./vendor-mui-core-___CiWHn.js";import{p as s,R as c}from"./vendor-ux-pxYpYMxD.js";function m({children:p,...r}){const{t:o}=i.useContext(s);return t.jsx(c,{tip:o("common.copyTip"),copiedTip:o("common.copiedTip"),...r,children:p})}m.propTypes={children:e.any.isRequired};export{m as C};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e}from"./vendor-react-CUXIiAnY.js";import{M as r}from"./vendor-utils-Doa0RxLS.js";const t=e(r);export{t as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./vendor-react-
|
|
1
|
+
import"./vendor-react-CUXIiAnY.js";import{s as a,j as r,bl as e,bm as s,bn as n,bo as i}from"./vendor-mui-core-___CiWHn.js";const c=a(o=>r.jsx(e,{disableGutters:!0,elevation:0,square:!0,...o}))(({theme:o})=>({border:`1px solid ${o.palette.divider}`,"&:not(:last-child)":{borderBottom:0},"&::before":{display:"none"}})),p=a(o=>r.jsx(s,{expandIcon:r.jsx(n,{sx:{fontSize:"0.9rem"}}),...o}))(({theme:o})=>({backgroundColor:o.palette.mode==="dark"?"rgba(255, 255, 255, .05)":"rgba(0, 0, 0, .03)",flexDirection:"row-reverse","& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(90deg)"},"& .MuiAccordionSummary-content":{marginLeft:o.spacing(1)}})),m=a(i)(({theme:o})=>({padding:o.spacing(2),borderTop:"1px solid rgba(0, 0, 0, .125)"}));export{c as A,p as a,m as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{at as E,j as e,ak as m,W}from"./vendor-mui-core-
|
|
1
|
+
import{at as E,j as e,ak as m,W}from"./vendor-mui-core-___CiWHn.js";import{ad as q,l as ne,ah as H,aB as oe,e as ae,Z as ie,aC as O,c as ce,d as le,f as ue,aD as de,ak as me}from"./index-DiqdSyj7.js";import{r as d}from"./vendor-react-CUXIiAnY.js";import{V as he,O as pe,B as fe,J as ge,C as J}from"./vendor-utils-Doa0RxLS.js";import{b as we,a as j}from"./vendor-hooks-L8kZVRUL.js";import{u as xe}from"./launch-result-message-5HOBRYMn.js";import{V as be,o as ke,H as Q}from"./vendor-ux-pxYpYMxD.js";import{g as Ue}from"./get-safe-url-b0FoyA1U.js";import{S as X}from"./button-CjoOMC5b.js";import{S as ye}from"./layout-CgGSszKF.js";import{p as Re,P as Se,S as Le}from"./starting-progress-Dn3jpzSc.js";import"./vendor-arcblock-DBEMYjVA.js";import"./lottie-web-4koyQiv_.js";import"./content-layout-DpoiOm37.js";const ve=E(xe)`
|
|
2
2
|
&& .result-footer {
|
|
3
3
|
height: 120px;
|
|
4
4
|
> div {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.__toCdnUrl("assets/vendor-ux-DYcPPYq2.css"),window.__toCdnUrl("assets/index-DrVXX4fX.css"),window.__toCdnUrl("assets/index-B5LvOF-F.css")])))=>i.map(i=>d[i]);
|
|
2
|
-
import{ca as ae,j as D,ak as le,am as _t,W as K,ax as ze,aD as dt,b as Ve,g as Ue,a as Te,m as Hh,s as oe,_ as U,h as We,T as rt,n as va,u as $e,d_ as Yh,i as hl,k as Oa,E as wf,G as Df,l as Pn,B as Kh,H as Qh,D as _n,c as Yt,I as tt,t as Xh,q as Pf,ar as Zh,c2 as dr,Q as wn,R as Tf,K as Jh,L as eg,N as lo,O as tg,P as ng,A as rg,Y as Gi,Z as Is,$ as Hi,J as _a,a0 as As,a1 as ag,a2 as og,aH as js,at as st,aL as ig,dN as lg,d$ as sg,bE as ug,aJ as Ls,aI as cg,c6 as dg,c7 as Bs,e0 as fg,e1 as pg,e2 as mg,cc as gl,bb as Mr,an as hg,cb as Sf,aX as Ns,z as mt,b1 as kf,dJ as Rf,e3 as gg,M as Vt,a6 as an,bd as Ef,e4 as bg,b4 as vg,a$ as Ia,e5 as yg,bq as Cg,b6 as Yi,br as Fs,cN as xg,aZ as wg,e6 as Dg,dt as Mf,by as Of,bf as Pg,d9 as Tg,e7 as Sg,bC as $s,a5 as qs,e8 as kg,bg as Rg}from"./vendor-mui-core-
|
|
2
|
+
import{ca as ae,j as D,ak as le,am as _t,W as K,ax as ze,aD as dt,b as Ve,g as Ue,a as Te,m as Hh,s as oe,_ as U,h as We,T as rt,n as va,u as $e,d_ as Yh,i as hl,k as Oa,E as wf,G as Df,l as Pn,B as Kh,H as Qh,D as _n,c as Yt,I as tt,t as Xh,q as Pf,ar as Zh,c2 as dr,Q as wn,R as Tf,K as Jh,L as eg,N as lo,O as tg,P as ng,A as rg,Y as Gi,Z as Is,$ as Hi,J as _a,a0 as As,a1 as ag,a2 as og,aH as js,at as st,aL as ig,dN as lg,d$ as sg,bE as ug,aJ as Ls,aI as cg,c6 as dg,c7 as Bs,e0 as fg,e1 as pg,e2 as mg,cc as gl,bb as Mr,an as hg,cb as Sf,aX as Ns,z as mt,b1 as kf,dJ as Rf,e3 as gg,M as Vt,a6 as an,bd as Ef,e4 as bg,b4 as vg,a$ as Ia,e5 as yg,bq as Cg,b6 as Yi,br as Fs,cN as xg,aZ as wg,e6 as Dg,dt as Mf,by as Of,bf as Pg,d9 as Tg,e7 as Sg,bC as $s,a5 as qs,e8 as kg,bg as Rg}from"./vendor-mui-core-___CiWHn.js";import{ax as zs,n as Vs,C as yr,ay as Eg,aw as Mg}from"./vendor-utils-Doa0RxLS.js";import{d as Pe,a as Me,e as ln,g as _f,r as O,c as bl,b as Og,i as If}from"./vendor-react-CUXIiAnY.js";import{b0 as ne,X as _g,V as ut,H as je,b8 as re,b9 as Af,ba as sn,bb as Kt,bc as Tt,bd as Or,be as Aa,bf as Ye,bg as ja,bh as La,bi as vl,bj as Ba,bk as jf,bl as Na,bm as Fa,bn as Ig,bo as Ag,bp as jg,bq as Lg,br as Bg,bs as Ng,bt as Fg,bu as $g,bv as qg,bw as zg,bx as Vg,by as jt,bz as It,bA as $a,bB as un,bC as Lf,bD as yl,bE as Bf,bF as Ug,bG as Wg,bH as Gg,bI as In,bJ as cn,bK as Hg,bL as Yg,bM as Kg,bN as Qg,bO as Xg,bP as Zg,bQ as _r,bR as Jg,bS as eb,bT as tb,bU as nb,ac as Us,ad as rb,ae as ab,af as ob,bV as Nf,bW as ib,bX as lb,bY as sb,bZ as ub,b_ as cb,b$ as db,c0 as fb,c1 as pb,c2 as mb,c3 as hb,c4 as gb,p as Qt,b as qa,_ as bb,Q as vb,z as so,U as Pt,n as uo,i as yb}from"./vendor-ux-pxYpYMxD.js";import{_ as ft,ac as dn,a0 as Tn,Y as At,e as Ne,B as Cr,cr as Cb,c as be,cg as Sn,cf as Ff,aD as $f,cs as qf,Z as xb,a2 as fr,az as wb,ct as Db}from"./index-DiqdSyj7.js";import{f as Dt}from"./index-DBs9Ljax.js";import{b as Pb,W as kn,u as Cl,B as Ki}from"./dashboard-BOEp1A3P.js";import{S as Tb}from"./switch-control-DwAlFBVc.js";import{P as Qi,w as za}from"./permission-t78Xon7o.js";import{u as zf,r as Sb}from"./vendor-mui-x-CYSdP1E1.js";import{r as Se,A as xl,B as pt,C as ya,D as Xi,t as De,E as Vf,F as Uf,c as Zi,o as kb,G as $t,H as Rb,I as Eb,J as Ji,K as Wf,L as Mb,M as Ob,N as Gf,O as wl,P as Ws,Q as _b,R as Gs,S as Ib,T as Ab,p as jb,a as Hs,b as Lb,j as co,h as Ys,m as Bb,k as qr,u as mn,i as Nb,n as Fb,g as zr,f as fo,d as Vr,s as po,e as mo,x as $b,z as qb,q as zb,l as Vb,v as Ub,w as Wb,U as Gb,y as Hb,V as Yb,W as Kb}from"./index-B_fIpHt1.js";import{f as Qb,d as Ks,c as Xb,b as Oe,_ as Re,a as Ee}from"./createClass-Bp8GWzB3.js";import{u as ke,a as ue,r as xr,w as Ca,g as Hf,b as fn,e as Yf,c as Zb,d as Jb,o as el}from"./raf-schd.esm-JNUhxcps.js";import{s as ev}from"./sanitize-C43KM91h.js";import{C as Qs}from"./click-to-copy-BiDS_MtA.js";import{v as ho}from"./index-DDc9u4Rr.js";import{A as tv,a as nv,b as rv,I as av,f as ov,B as iv,d as lv}from"./add-component-core-CUr388CN.js";import{C as An}from"./confirm-CklyzxUV.js";import{a as xa,v as sv}from"./util-qnRu_NH_.js";import{C as uv}from"./lock.svg-BPCZ0CT3.js";import{D as cv}from"./delete-confirm-DOWoUCR5.js";import{e as dv}from"./engine-D5_fEmdT.js";import{I as fv}from"./iframe-Cf5bT_6x.js";import{B as Kf}from"./bundle-avatar--3Ig7ZeD.js";import{A as Qf}from"./actions-DlChK31K.js";import{v as go}from"./index-0wVxGFHL.js";import{W as pv}from"./did-address-BKqL0vbP.js";import{b as mv}from"./vendor-hooks-L8kZVRUL.js";import"./lottie-web-4koyQiv_.js";import"./vendor-arcblock-DBEMYjVA.js";import"./useLocalStorage-CbmitI3m.js";import"./get-safe-url-b0FoyA1U.js";import"./session-Dt50YAVT.js";import"./team-W2Fdvkfl.js";import"./isURL-bkdgf1x2.js";import"./use-app-logo-Bu9kUO2d.js";import"./passport-BxAsPdEH.js";import"./create-passport-svg-k1mCsufD.js";import"./useAsyncRetry-MDM8jCoS.js";import"./useAsync-tRHUJQgE.js";import"./useSetState-cWrp7qoX.js";import"./index-DKSVm7e-.js";import"./over-due-invoice-payment-B7tDPPws.js";import"./use-mobile-yOnqxyr6.js";import"./index-JqMHvzVF.js";import"./omit-CPVfFmp-.js";import"./index-BsA1v5Kx.js";import"./item-1yEVSl8f.js";import"./wait-connect-z8A2YqYx.js";import"./launch-result-message-5HOBRYMn.js";import"./page-header-bY0dwe6y.js";import"./config-space-BIBMi9yR.js";import"./spaces-BRmoEATc.js";import"./api-DcGGeMWE.js";import"./required-BuZo1JHj.js";import"./index-B9JcYhlg.js";import"./Google-BOjQI1aW.js";import"./cloneDeep-C11iVb3m.js";import"./form-wrapper-BxqO_YSO.js";import"./logo-uploader-DnA7whvY.js";import"./collapse-Cqxx6nMG.js";import"./index-DO0bEcmC.js";import"./config-DbJRjGKg.js";import"./section-DDyoFT-o.js";import"./form-text-input-gTokKFc6.js";import"./edit.svg-Dz9cVo7r.js";import"./use-mobile-BGG7EyYb.js";import"./content-layout-DpoiOm37.js";import"./connect-to-CN0n_rfw.js";import"./index-CQOXFqub.js";import"./index-DRYJ0xIl.js";import"./index-BojVbZw0.js";import"./search-4YYphs0l.js";var hv=36e5;function gv(e,t){Se(2,arguments);var n=pt(t);return xl(e,n*hv)}var bv=864e5;function vv(e,t){Se(2,arguments);var n=ya(e),a=ya(t),r=n.getTime()-Xi(n),o=a.getTime()-Xi(a);return Math.round((r-o)/bv)}var yv=6e4;function Cv(e,t){Se(2,arguments);var n=pt(t);return xl(e,n*yv)}function xv(e,t){Se(2,arguments);var n=pt(t);return xl(e,n*1e3)}function hr(e,t){Se(2,arguments);var n=De(e),a=De(t),r=n.getTime()-a.getTime();return r<0?-1:r>0?1:r}function wv(e,t){Se(2,arguments);var n=De(e),a=De(t);return n.getFullYear()-a.getFullYear()}function Xs(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function Xf(e,t){Se(2,arguments);var n=De(e),a=De(t),r=Xs(n,a),o=Math.abs(vv(n,a));n.setDate(n.getDate()-r*o);var i=+(Xs(n,a)===-r),l=r*(o-i);return l===0?0:l}function Va(e,t){return Se(2,arguments),De(e).getTime()-De(t).getTime()}var Zs={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Dv="trunc";function Ir(e){return e?Zs[e]:Zs[Dv]}function Pv(e,t,n){Se(2,arguments);var a=Va(e,t)/Vf;return Ir(void 0)(a)}function Tv(e,t,n){Se(2,arguments);var a=Va(e,t)/Uf;return Ir(void 0)(a)}function tl(e){Se(1,arguments);var t=De(e);return t.setHours(23,59,59,999),t}function Sv(e){Se(1,arguments);var t=De(e);return tl(t).getTime()===Zi(t).getTime()}function Zf(e,t){Se(2,arguments);var n=De(e),a=De(t),r=hr(n,a),o=Math.abs(kb(n,a)),i;if(o<1)i=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-r*o);var l=hr(n,a)===-r;Sv(De(e))&&o===1&&hr(e,a)===1&&(l=!1),i=r*(o-Number(l))}return i===0?0:i}function kv(e,t,n){Se(2,arguments);var a=Zf(e,t)/3;return Ir(void 0)(a)}function Rv(e,t,n){Se(2,arguments);var a=Va(e,t)/1e3;return Ir(void 0)(a)}function Ev(e,t,n){Se(2,arguments);var a=Xf(e,t)/7;return Ir(void 0)(a)}function Mv(e,t){Se(2,arguments);var n=De(e),a=De(t),r=hr(n,a),o=Math.abs(wv(n,a));n.setFullYear(1584),a.setFullYear(1584);var i=hr(n,a)===-r,l=r*(o-Number(i));return l===0?0:l}function Ov(e,t){var n;Se(1,arguments);var a=e||{},r=De(a.start),o=De(a.end),i=o.getTime();if(!(r.getTime()<=i))throw new RangeError("Invalid interval");var l=[],u=r;u.setHours(0,0,0,0);var s=Number((n=void 0)!==null&&n!==void 0?n:1);if(s<1||isNaN(s))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=i;)l.push(De(u)),u.setDate(u.getDate()+s),u.setHours(0,0,0,0);return l}function _v(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Iv(e,t){var n,a;Se(1,arguments);var r=De(e);if(isNaN(r.getTime()))throw new RangeError("Invalid time value");var o=String((n=t?.format)!==null&&n!==void 0?n:"extended"),i=String((a=t?.representation)!==null&&a!==void 0?a:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(i!=="date"&&i!=="time"&&i!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var l="",u="",s=o==="extended"?"-":"",f=o==="extended"?":":"";if(i!=="time"){var d=$t(r.getDate(),2),c=$t(r.getMonth()+1,2),v=$t(r.getFullYear(),4);l="".concat(v).concat(s).concat(c).concat(s).concat(d)}if(i!=="date"){var y=r.getTimezoneOffset();if(y!==0){var g=Math.abs(y),C=$t(Math.floor(g/60),2),h=$t(g%60,2),p=y<0?"+":"-";u="".concat(p).concat(C,":").concat(h)}else u="Z";var m=$t(r.getHours(),2),b=$t(r.getMinutes(),2),k=$t(r.getSeconds(),2),x=l===""?"":"T",w=[m,b,k].join(f);l="".concat(l).concat(x).concat(w).concat(u)}return l}function Av(e){Se(1,arguments);var t=De(e),n=t.getDay();return n}function jv(e){Se(1,arguments);var t=De(e),n=t.getHours();return n}function Lv(e){Se(1,arguments);var t=De(e),n=t.getMinutes();return n}function Bv(e){Se(1,arguments);var t=De(e),n=t.getSeconds();return n}function Nv(e,t){Se(2,arguments);var n=De(e),a=De(t);return n.getTime()===a.getTime()}function Js(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Qb(e))||t){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(s){throw s},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var s=n.next();return i=s.done,s},e:function(s){l=!0,o=s},f:function(){try{i||n.return==null||n.return()}finally{if(l)throw o}}}}function Jf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jf=function(){return!!e})()}function _e(e){var t=Jf();return function(){var n,a=Ks(e);if(t){var r=Ks(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Xb(this,n)}}var Fv=10,ep=function(){function e(){Ee(this,e),ne(this,"priority",void 0),ne(this,"subPriority",0)}return Re(e,[{key:"validate",value:function(n,a){return!0}}]),e}(),$v=function(e){Oe(n,e);var t=_e(n);function n(a,r,o,i,l){var u;return Ee(this,n),u=t.call(this),u.value=a,u.validateValue=r,u.setValue=o,u.priority=i,l&&(u.subPriority=l),u}return Re(n,[{key:"validate",value:function(r,o){return this.validateValue(r,this.value,o)}},{key:"set",value:function(r,o,i){return this.setValue(r,o,this.value,i)}}]),n}(ep),qv=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",Fv),ne(ae(a),"subPriority",-1),a}return Re(n,[{key:"set",value:function(r,o){if(o.timestampIsSet)return r;var i=new Date(0);return i.setFullYear(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()),i.setHours(r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()),i}}]),n}(ep),Le=function(){function e(){Ee(this,e),ne(this,"incompatibleTokens",void 0),ne(this,"priority",void 0),ne(this,"subPriority",void 0)}return Re(e,[{key:"run",value:function(n,a,r,o){var i=this.parse(n,a,r,o);return i?{setter:new $v(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(n,a,r){return!0}}]),e}(),zv=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",140),ne(ae(a),"incompatibleTokens",["R","u","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){switch(o){case"G":case"GG":case"GGG":return i.era(r,{width:"abbreviated"})||i.era(r,{width:"narrow"});case"GGGGG":return i.era(r,{width:"narrow"});case"GGGG":default:return i.era(r,{width:"wide"})||i.era(r,{width:"abbreviated"})||i.era(r,{width:"narrow"})}}},{key:"set",value:function(r,o,i){return o.era=i,r.setUTCFullYear(i,0,1),r.setUTCHours(0,0,0,0),r}}]),n}(Le),Ze={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Et={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Je(e,t){return e&&{value:t(e.value),rest:e.rest}}function He(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Mt(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var a=n[1]==="+"?1:-1,r=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:a*(r*Vf+o*Uf+i*Rb),rest:t.slice(n[0].length)}}function tp(e){return He(Ze.anyDigitsSigned,e)}function Xe(e,t){switch(e){case 1:return He(Ze.singleDigit,t);case 2:return He(Ze.twoDigits,t);case 3:return He(Ze.threeDigits,t);case 4:return He(Ze.fourDigits,t);default:return He(new RegExp("^\\d{1,"+e+"}"),t)}}function wa(e,t){switch(e){case 1:return He(Ze.singleDigitSigned,t);case 2:return He(Ze.twoDigitsSigned,t);case 3:return He(Ze.threeDigitsSigned,t);case 4:return He(Ze.fourDigitsSigned,t);default:return He(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Dl(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function np(e,t){var n=t>0,a=n?t:1-t,r;if(a<=50)r=e||100;else{var o=a+50,i=Math.floor(o/100)*100,l=e>=o%100;r=e+i-(l?100:0)}return n?r:1-r}function rp(e){return e%400===0||e%4===0&&e%100!==0}var Vv=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",130),ne(ae(a),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){var l=function(s){return{year:s,isTwoDigitYear:o==="yy"}};switch(o){case"y":return Je(Xe(4,r),l);case"yo":return Je(i.ordinalNumber(r,{unit:"year"}),l);default:return Je(Xe(o.length,r),l)}}},{key:"validate",value:function(r,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(r,o,i){var l=r.getUTCFullYear();if(i.isTwoDigitYear){var u=np(i.year,l);return r.setUTCFullYear(u,0,1),r.setUTCHours(0,0,0,0),r}var s=!("era"in o)||o.era===1?i.year:1-i.year;return r.setUTCFullYear(s,0,1),r.setUTCHours(0,0,0,0),r}}]),n}(Le),Uv=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",130),ne(ae(a),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){var l=function(s){return{year:s,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return Je(Xe(4,r),l);case"Yo":return Je(i.ordinalNumber(r,{unit:"year"}),l);default:return Je(Xe(o.length,r),l)}}},{key:"validate",value:function(r,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(r,o,i,l){var u=Eb(r,l);if(i.isTwoDigitYear){var s=np(i.year,u);return r.setUTCFullYear(s,0,l.firstWeekContainsDate),r.setUTCHours(0,0,0,0),Ji(r,l)}var f=!("era"in o)||o.era===1?i.year:1-i.year;return r.setUTCFullYear(f,0,l.firstWeekContainsDate),r.setUTCHours(0,0,0,0),Ji(r,l)}}]),n}(Le),Wv=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",130),ne(ae(a),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o){return wa(o==="R"?4:o.length,r)}},{key:"set",value:function(r,o,i){var l=new Date(0);return l.setUTCFullYear(i,0,4),l.setUTCHours(0,0,0,0),Wf(l)}}]),n}(Le),Gv=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",130),ne(ae(a),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o){return wa(o==="u"?4:o.length,r)}},{key:"set",value:function(r,o,i){return r.setUTCFullYear(i,0,1),r.setUTCHours(0,0,0,0),r}}]),n}(Le),Hv=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",120),ne(ae(a),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){switch(o){case"Q":case"QQ":return Xe(o.length,r);case"Qo":return i.ordinalNumber(r,{unit:"quarter"});case"QQQ":return i.quarter(r,{width:"abbreviated",context:"formatting"})||i.quarter(r,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(r,{width:"wide",context:"formatting"})||i.quarter(r,{width:"abbreviated",context:"formatting"})||i.quarter(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,o){return o>=1&&o<=4}},{key:"set",value:function(r,o,i){return r.setUTCMonth((i-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),n}(Le),Yv=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",120),ne(ae(a),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){switch(o){case"q":case"qq":return Xe(o.length,r);case"qo":return i.ordinalNumber(r,{unit:"quarter"});case"qqq":return i.quarter(r,{width:"abbreviated",context:"standalone"})||i.quarter(r,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(r,{width:"wide",context:"standalone"})||i.quarter(r,{width:"abbreviated",context:"standalone"})||i.quarter(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,o){return o>=1&&o<=4}},{key:"set",value:function(r,o,i){return r.setUTCMonth((i-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),n}(Le),Kv=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),ne(ae(a),"priority",110),a}return Re(n,[{key:"parse",value:function(r,o,i){var l=function(s){return s-1};switch(o){case"M":return Je(He(Ze.month,r),l);case"MM":return Je(Xe(2,r),l);case"Mo":return Je(i.ordinalNumber(r,{unit:"month"}),l);case"MMM":return i.month(r,{width:"abbreviated",context:"formatting"})||i.month(r,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(r,{width:"wide",context:"formatting"})||i.month(r,{width:"abbreviated",context:"formatting"})||i.month(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,o){return o>=0&&o<=11}},{key:"set",value:function(r,o,i){return r.setUTCMonth(i,1),r.setUTCHours(0,0,0,0),r}}]),n}(Le),Qv=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",110),ne(ae(a),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){var l=function(s){return s-1};switch(o){case"L":return Je(He(Ze.month,r),l);case"LL":return Je(Xe(2,r),l);case"Lo":return Je(i.ordinalNumber(r,{unit:"month"}),l);case"LLL":return i.month(r,{width:"abbreviated",context:"standalone"})||i.month(r,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(r,{width:"wide",context:"standalone"})||i.month(r,{width:"abbreviated",context:"standalone"})||i.month(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,o){return o>=0&&o<=11}},{key:"set",value:function(r,o,i){return r.setUTCMonth(i,1),r.setUTCHours(0,0,0,0),r}}]),n}(Le);function Xv(e,t,n){Se(2,arguments);var a=De(e),r=pt(t),o=Mb(a,n)-r;return a.setUTCDate(a.getUTCDate()-o*7),a}var Zv=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",100),ne(ae(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){switch(o){case"w":return He(Ze.week,r);case"wo":return i.ordinalNumber(r,{unit:"week"});default:return Xe(o.length,r)}}},{key:"validate",value:function(r,o){return o>=1&&o<=53}},{key:"set",value:function(r,o,i,l){return Ji(Xv(r,i,l),l)}}]),n}(Le);function Jv(e,t){Se(2,arguments);var n=De(e),a=pt(t),r=Ob(n)-a;return n.setUTCDate(n.getUTCDate()-r*7),n}var ey=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",100),ne(ae(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){switch(o){case"I":return He(Ze.week,r);case"Io":return i.ordinalNumber(r,{unit:"week"});default:return Xe(o.length,r)}}},{key:"validate",value:function(r,o){return o>=1&&o<=53}},{key:"set",value:function(r,o,i){return Wf(Jv(r,i))}}]),n}(Le),ty=[31,28,31,30,31,30,31,31,30,31,30,31],ny=[31,29,31,30,31,30,31,31,30,31,30,31],ry=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",90),ne(ae(a),"subPriority",1),ne(ae(a),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){switch(o){case"d":return He(Ze.date,r);case"do":return i.ordinalNumber(r,{unit:"date"});default:return Xe(o.length,r)}}},{key:"validate",value:function(r,o){var i=r.getUTCFullYear(),l=rp(i),u=r.getUTCMonth();return l?o>=1&&o<=ny[u]:o>=1&&o<=ty[u]}},{key:"set",value:function(r,o,i){return r.setUTCDate(i),r.setUTCHours(0,0,0,0),r}}]),n}(Le),ay=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",90),ne(ae(a),"subpriority",1),ne(ae(a),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){switch(o){case"D":case"DD":return He(Ze.dayOfYear,r);case"Do":return i.ordinalNumber(r,{unit:"date"});default:return Xe(o.length,r)}}},{key:"validate",value:function(r,o){var i=r.getUTCFullYear(),l=rp(i);return l?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(r,o,i){return r.setUTCMonth(0,i),r.setUTCHours(0,0,0,0),r}}]),n}(Le);function Pl(e,t,n){var a,r,o,i,l,u,s,f;Se(2,arguments);var d=Gf(),c=pt((a=(r=(o=(i=n?.weekStartsOn)!==null&&i!==void 0?i:n==null||(l=n.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(f=s.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&a!==void 0?a:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=De(e),y=pt(t),g=v.getUTCDay(),C=y%7,h=(C+7)%7,p=(h<c?7:0)+y-g;return v.setUTCDate(v.getUTCDate()+p),v}var oy=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",90),ne(ae(a),"incompatibleTokens",["D","i","e","c","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){switch(o){case"E":case"EE":case"EEE":return i.day(r,{width:"abbreviated",context:"formatting"})||i.day(r,{width:"short",context:"formatting"})||i.day(r,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(r,{width:"short",context:"formatting"})||i.day(r,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(r,{width:"wide",context:"formatting"})||i.day(r,{width:"abbreviated",context:"formatting"})||i.day(r,{width:"short",context:"formatting"})||i.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,o){return o>=0&&o<=6}},{key:"set",value:function(r,o,i,l){return r=Pl(r,i,l),r.setUTCHours(0,0,0,0),r}}]),n}(Le),iy=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",90),ne(ae(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i,l){var u=function(f){var d=Math.floor((f-1)/7)*7;return(f+l.weekStartsOn+6)%7+d};switch(o){case"e":case"ee":return Je(Xe(o.length,r),u);case"eo":return Je(i.ordinalNumber(r,{unit:"day"}),u);case"eee":return i.day(r,{width:"abbreviated",context:"formatting"})||i.day(r,{width:"short",context:"formatting"})||i.day(r,{width:"narrow",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"})||i.day(r,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(r,{width:"wide",context:"formatting"})||i.day(r,{width:"abbreviated",context:"formatting"})||i.day(r,{width:"short",context:"formatting"})||i.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,o){return o>=0&&o<=6}},{key:"set",value:function(r,o,i,l){return r=Pl(r,i,l),r.setUTCHours(0,0,0,0),r}}]),n}(Le),ly=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",90),ne(ae(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i,l){var u=function(f){var d=Math.floor((f-1)/7)*7;return(f+l.weekStartsOn+6)%7+d};switch(o){case"c":case"cc":return Je(Xe(o.length,r),u);case"co":return Je(i.ordinalNumber(r,{unit:"day"}),u);case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"})||i.day(r,{width:"short",context:"standalone"})||i.day(r,{width:"narrow",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"})||i.day(r,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(r,{width:"wide",context:"standalone"})||i.day(r,{width:"abbreviated",context:"standalone"})||i.day(r,{width:"short",context:"standalone"})||i.day(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,o){return o>=0&&o<=6}},{key:"set",value:function(r,o,i,l){return r=Pl(r,i,l),r.setUTCHours(0,0,0,0),r}}]),n}(Le);function sy(e,t){Se(2,arguments);var n=pt(t);n%7===0&&(n=n-7);var a=1,r=De(e),o=r.getUTCDay(),i=n%7,l=(i+7)%7,u=(l<a?7:0)+n-o;return r.setUTCDate(r.getUTCDate()+u),r}var uy=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",90),ne(ae(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){var l=function(s){return s===0?7:s};switch(o){case"i":case"ii":return Xe(o.length,r);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return Je(i.day(r,{width:"abbreviated",context:"formatting"})||i.day(r,{width:"short",context:"formatting"})||i.day(r,{width:"narrow",context:"formatting"}),l);case"iiiii":return Je(i.day(r,{width:"narrow",context:"formatting"}),l);case"iiiiii":return Je(i.day(r,{width:"short",context:"formatting"})||i.day(r,{width:"narrow",context:"formatting"}),l);case"iiii":default:return Je(i.day(r,{width:"wide",context:"formatting"})||i.day(r,{width:"abbreviated",context:"formatting"})||i.day(r,{width:"short",context:"formatting"})||i.day(r,{width:"narrow",context:"formatting"}),l)}}},{key:"validate",value:function(r,o){return o>=1&&o<=7}},{key:"set",value:function(r,o,i){return r=sy(r,i),r.setUTCHours(0,0,0,0),r}}]),n}(Le),cy=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",80),ne(ae(a),"incompatibleTokens",["b","B","H","k","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){switch(o){case"a":case"aa":case"aaa":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"})||i.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(r,{width:"wide",context:"formatting"})||i.dayPeriod(r,{width:"abbreviated",context:"formatting"})||i.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,o,i){return r.setUTCHours(Dl(i),0,0,0),r}}]),n}(Le),dy=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",80),ne(ae(a),"incompatibleTokens",["a","B","H","k","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){switch(o){case"b":case"bb":case"bbb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"})||i.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(r,{width:"wide",context:"formatting"})||i.dayPeriod(r,{width:"abbreviated",context:"formatting"})||i.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,o,i){return r.setUTCHours(Dl(i),0,0,0),r}}]),n}(Le),fy=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",80),ne(ae(a),"incompatibleTokens",["a","b","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){switch(o){case"B":case"BB":case"BBB":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"})||i.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(r,{width:"wide",context:"formatting"})||i.dayPeriod(r,{width:"abbreviated",context:"formatting"})||i.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,o,i){return r.setUTCHours(Dl(i),0,0,0),r}}]),n}(Le),py=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",70),ne(ae(a),"incompatibleTokens",["H","K","k","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){switch(o){case"h":return He(Ze.hour12h,r);case"ho":return i.ordinalNumber(r,{unit:"hour"});default:return Xe(o.length,r)}}},{key:"validate",value:function(r,o){return o>=1&&o<=12}},{key:"set",value:function(r,o,i){var l=r.getUTCHours()>=12;return l&&i<12?r.setUTCHours(i+12,0,0,0):!l&&i===12?r.setUTCHours(0,0,0,0):r.setUTCHours(i,0,0,0),r}}]),n}(Le),my=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",70),ne(ae(a),"incompatibleTokens",["a","b","h","K","k","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){switch(o){case"H":return He(Ze.hour23h,r);case"Ho":return i.ordinalNumber(r,{unit:"hour"});default:return Xe(o.length,r)}}},{key:"validate",value:function(r,o){return o>=0&&o<=23}},{key:"set",value:function(r,o,i){return r.setUTCHours(i,0,0,0),r}}]),n}(Le),hy=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",70),ne(ae(a),"incompatibleTokens",["h","H","k","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){switch(o){case"K":return He(Ze.hour11h,r);case"Ko":return i.ordinalNumber(r,{unit:"hour"});default:return Xe(o.length,r)}}},{key:"validate",value:function(r,o){return o>=0&&o<=11}},{key:"set",value:function(r,o,i){var l=r.getUTCHours()>=12;return l&&i<12?r.setUTCHours(i+12,0,0,0):r.setUTCHours(i,0,0,0),r}}]),n}(Le),gy=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",70),ne(ae(a),"incompatibleTokens",["a","b","h","H","K","t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){switch(o){case"k":return He(Ze.hour24h,r);case"ko":return i.ordinalNumber(r,{unit:"hour"});default:return Xe(o.length,r)}}},{key:"validate",value:function(r,o){return o>=1&&o<=24}},{key:"set",value:function(r,o,i){var l=i<=24?i%24:i;return r.setUTCHours(l,0,0,0),r}}]),n}(Le),by=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",60),ne(ae(a),"incompatibleTokens",["t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){switch(o){case"m":return He(Ze.minute,r);case"mo":return i.ordinalNumber(r,{unit:"minute"});default:return Xe(o.length,r)}}},{key:"validate",value:function(r,o){return o>=0&&o<=59}},{key:"set",value:function(r,o,i){return r.setUTCMinutes(i,0,0),r}}]),n}(Le),vy=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",50),ne(ae(a),"incompatibleTokens",["t","T"]),a}return Re(n,[{key:"parse",value:function(r,o,i){switch(o){case"s":return He(Ze.second,r);case"so":return i.ordinalNumber(r,{unit:"second"});default:return Xe(o.length,r)}}},{key:"validate",value:function(r,o){return o>=0&&o<=59}},{key:"set",value:function(r,o,i){return r.setUTCSeconds(i,0),r}}]),n}(Le),yy=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",30),ne(ae(a),"incompatibleTokens",["t","T"]),a}return Re(n,[{key:"parse",value:function(r,o){var i=function(u){return Math.floor(u*Math.pow(10,-o.length+3))};return Je(Xe(o.length,r),i)}},{key:"set",value:function(r,o,i){return r.setUTCMilliseconds(i),r}}]),n}(Le),Cy=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",10),ne(ae(a),"incompatibleTokens",["t","T","x"]),a}return Re(n,[{key:"parse",value:function(r,o){switch(o){case"X":return Mt(Et.basicOptionalMinutes,r);case"XX":return Mt(Et.basic,r);case"XXXX":return Mt(Et.basicOptionalSeconds,r);case"XXXXX":return Mt(Et.extendedOptionalSeconds,r);case"XXX":default:return Mt(Et.extended,r)}}},{key:"set",value:function(r,o,i){return o.timestampIsSet?r:new Date(r.getTime()-i)}}]),n}(Le),xy=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",10),ne(ae(a),"incompatibleTokens",["t","T","X"]),a}return Re(n,[{key:"parse",value:function(r,o){switch(o){case"x":return Mt(Et.basicOptionalMinutes,r);case"xx":return Mt(Et.basic,r);case"xxxx":return Mt(Et.basicOptionalSeconds,r);case"xxxxx":return Mt(Et.extendedOptionalSeconds,r);case"xxx":default:return Mt(Et.extended,r)}}},{key:"set",value:function(r,o,i){return o.timestampIsSet?r:new Date(r.getTime()-i)}}]),n}(Le),wy=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",40),ne(ae(a),"incompatibleTokens","*"),a}return Re(n,[{key:"parse",value:function(r){return tp(r)}},{key:"set",value:function(r,o,i){return[new Date(i*1e3),{timestampIsSet:!0}]}}]),n}(Le),Dy=function(e){Oe(n,e);var t=_e(n);function n(){var a;Ee(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),ne(ae(a),"priority",20),ne(ae(a),"incompatibleTokens","*"),a}return Re(n,[{key:"parse",value:function(r){return tp(r)}},{key:"set",value:function(r,o,i){return[new Date(i),{timestampIsSet:!0}]}}]),n}(Le),Py={G:new zv,y:new Vv,Y:new Uv,R:new Wv,u:new Gv,Q:new Hv,q:new Yv,M:new Kv,L:new Qv,w:new Zv,I:new ey,d:new ry,D:new ay,E:new oy,e:new iy,c:new ly,i:new uy,a:new cy,b:new dy,B:new fy,h:new py,H:new my,K:new hy,k:new gy,m:new by,s:new vy,S:new yy,X:new Cy,x:new xy,t:new wy,T:new Dy},Ty=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Sy=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ky=/^'([^]*?)'?$/,Ry=/''/g,Ey=/\S/,My=/[a-zA-Z]/;function Oy(e,t,n,a){var r,o,i,l,u,s,f,d,c,v,y,g,C,h,p,m,b,k;Se(3,arguments);var x=String(e),w=String(t),P=Gf(),S=(r=(o=a?.locale)!==null&&o!==void 0?o:P.locale)!==null&&r!==void 0?r:wl;if(!S.match)throw new RangeError("locale must contain match property");var R=pt((i=(l=(u=(s=a?.firstWeekContainsDate)!==null&&s!==void 0?s:a==null||(f=a.locale)===null||f===void 0||(d=f.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&u!==void 0?u:P.firstWeekContainsDate)!==null&&l!==void 0?l:(c=P.locale)===null||c===void 0||(v=c.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var E=pt((y=(g=(C=(h=a?.weekStartsOn)!==null&&h!==void 0?h:a==null||(p=a.locale)===null||p===void 0||(m=p.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&C!==void 0?C:P.weekStartsOn)!==null&&g!==void 0?g:(b=P.locale)===null||b===void 0||(k=b.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&y!==void 0?y:0);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(w==="")return x===""?De(n):new Date(NaN);var _={firstWeekContainsDate:R,weekStartsOn:E,locale:S},M=[new qv],A=w.match(Sy).map(function(z){var H=z[0];if(H in Ws){var J=Ws[H];return J(z,S.formatLong)}return z}).join("").match(Ty),B=[],q=Js(A),W;try{var V=function(){var H=W.value;!(a!=null&&a.useAdditionalWeekYearTokens)&&_b(H)&&Gs(H,w,e),!(a!=null&&a.useAdditionalDayOfYearTokens)&&Ib(H)&&Gs(H,w,e);var J=H[0],fe=Py[J];if(fe){var Q=fe.incompatibleTokens;if(Array.isArray(Q)){var Z=B.find(function(Ce){return Q.includes(Ce.token)||Ce.token===J});if(Z)throw new RangeError("The format string mustn't contain `".concat(Z.fullToken,"` and `").concat(H,"` at the same time"))}else if(fe.incompatibleTokens==="*"&&B.length>0)throw new RangeError("The format string mustn't contain `".concat(H,"` and any other token at the same time"));B.push({token:J,fullToken:H});var ge=fe.run(x,H,S.match,_);if(!ge)return{v:new Date(NaN)};M.push(ge.setter),x=ge.rest}else{if(J.match(My))throw new RangeError("Format string contains an unescaped latin alphabet character `"+J+"`");if(H==="''"?H="'":J==="'"&&(H=_y(H)),x.indexOf(H)===0)x=x.slice(H.length);else return{v:new Date(NaN)}}};for(q.s();!(W=q.n()).done;){var Y=V();if(_g(Y)==="object")return Y.v}}catch(z){q.e(z)}finally{q.f()}if(x.length>0&&Ey.test(x))return new Date(NaN);var G=M.map(function(z){return z.priority}).sort(function(z,H){return H-z}).filter(function(z,H,J){return J.indexOf(z)===H}).map(function(z){return M.filter(function(H){return H.priority===z}).sort(function(H,J){return J.subPriority-H.subPriority})}).map(function(z){return z[0]}),T=De(n);if(isNaN(T.getTime()))return new Date(NaN);var F=Ab(T,Xi(T)),N={},j=Js(G),I;try{for(j.s();!(I=j.n()).done;){var L=I.value;if(!L.validate(F,_))return new Date(NaN);var $=L.set(F,N,_);Array.isArray($)?(F=$[0],_v(N,$[1])):F=$}}catch(z){j.e(z)}finally{j.f()}return F}function _y(e){return e.match(ky)[1].replace(Ry,"'")}function eu(e){Se(1,arguments);var t=De(e);return t.setMinutes(0,0,0),t}function Iy(e,t){Se(2,arguments);var n=eu(e),a=eu(t);return n.getTime()===a.getTime()}function Ay(e,t){Se(2,arguments);var n=De(e),a=De(t);return n.getFullYear()===a.getFullYear()}function jy(e,t){Se(2,arguments);var n=De(e),a=pt(t);return n.setDate(a),n}function Ly(e,t){Se(2,arguments);var n=De(e),a=pt(t);return n.setHours(a),n}function By(e,t){Se(2,arguments);var n=De(e),a=pt(t);return n.setMinutes(a),n}function Ny(e,t){Se(2,arguments);var n=De(e),a=pt(t);return n.setSeconds(a),n}function ap({children:e=null,...t}){const{t:n}=ut(),{api:a}=ft(),{blocklet:r}=dn(),o=r?.settings?.autoCheckUpdate,i=async s=>{await a.updateAutoCheckUpdate({input:{did:r.meta.did,autoCheckUpdate:s}})},l=async()=>{try{const s=!o?.enabled;await i({enabled:s}),je.success(n(s?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(s){je.error(s.message)}},u=!!o?.enabled;return D.jsxs(le,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e,D.jsx(_t,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:D.jsx("div",{children:D.jsx(Tb,{checked:u,onChange:l,name:"enableWelcomePage",style:{...t.style,zoom:.8}})})})]})}ap.propTypes={children:K.any};var bo={},vo={exports:{}},tu;function Ge(){return tu||(tu=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var o in r)({}).hasOwnProperty.call(r,o)&&(n[o]=r[o])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(vo)),vo.exports}var zn={},yo={},Co={},xo={},nu;function Fy(){return nu||(nu=1,function(e){var t=re();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ge()),a=t(Af()),r=t(Pe()),o=t(ze()),i=sn();function l(s){var f=(0,i.useTheme)();return r.default.createElement("div",{ref:s.forwardedRef,style:{display:"table",width:"100%",height:"100%",backgroundColor:f.palette.background.paper,opacity:.7}},r.default.createElement("div",{style:{display:"table-cell",width:"100%",height:"100%",verticalAlign:"middle",textAlign:"center"}},r.default.createElement(a.default,null)))}l.propTypes={theme:o.default.any};var u=r.default.forwardRef(function(f,d){return r.default.createElement(l,(0,n.default)({},f,{forwardedRef:d}))});e.default=u}(xo)),xo}var wo={},Do={},wt={},Po={exports:{}},To={exports:{}},So={exports:{}},ru;function $y(){return ru||(ru=1,function(e){var t=Kt().default;function n(a,r){if(t(a)!="object"||!a)return a;var o=a[Symbol.toPrimitive];if(o!==void 0){var i=o.call(a,r||"default");if(t(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(a)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(So)),So.exports}var au;function op(){return au||(au=1,function(e){var t=Kt().default,n=$y();function a(r){var o=n(r,"string");return t(o)=="symbol"?o:o+""}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports}(To)),To.exports}var ou;function nt(){return ou||(ou=1,function(e){var t=op();function n(a,r,o){return(r=t(r))in a?Object.defineProperty(a,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[r]=o,a}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Po)),Po.exports}const qy={},iu=e=>{let t;const n=new Set,a=(f,d)=>{const c=typeof f=="function"?f(t):f;if(!Object.is(c,t)){const v=t;t=d??(typeof c!="object"||c===null)?c:Object.assign({},t,c),n.forEach(y=>y(t,v))}},r=()=>t,u={setState:a,getState:r,getInitialState:()=>s,subscribe:f=>(n.add(f),()=>n.delete(f)),destroy:()=>{(qy?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},s=t=e(a,r,u);return u},ip=e=>e?iu(e):iu,{useDebugValue:zy}=Me,{useSyncExternalStoreWithSelector:Vy}=zf,Uy=e=>e;function lp(e,t=Uy,n){const a=Vy(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return zy(a),a}const lu=e=>{const t=typeof e=="function"?ip(e):e,n=(a,r)=>lp(t,a,r);return Object.assign(n,t),n},sp=e=>e?lu(e):lu;var Wy=e=>sp(e);const Gy=Object.freeze(Object.defineProperty({__proto__:null,create:sp,createStore:ip,default:Wy,useStore:lp},Symbol.toStringTag,{value:"Module"})),Hy=ln(Gy),{useDebugValue:Yy}=Me,{useSyncExternalStoreWithSelector:Ky}=zf,Qy=e=>e;function Xy(e,t=Qy,n){const a=Ky(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Yy(a),a}const{createElement:Zy,createContext:Jy,useContext:su,useMemo:eC,useRef:tC}=Me;function nC(){const e=Jy(void 0);return{Provider:({createStore:r,children:o})=>{const i=tC();return i.current||(i.current=r()),Zy(e.Provider,{value:i.current},o)},useStore:(r,o)=>{const i=su(e);if(!i)throw new Error("Seems like you have not used zustand provider as an ancestor.");return Xy(i,r,o)},useStoreApi:()=>{const r=su(e);if(!r)throw new Error("Seems like you have not used zustand provider as an ancestor.");return eC(()=>({...r}),[r])}}}const rC=Object.freeze(Object.defineProperty({__proto__:null,default:nC},Symbol.toStringTag,{value:"Module"})),aC=ln(rC);var Ur={exports:{}},ha={exports:{}},oC=ha.exports,uu;function iC(){return uu||(uu=1,function(e,t){(function(n,a){e.exports=a()})(oC,function(){var n=typeof Promise=="function",a=function(w){if(typeof globalThis=="object")return globalThis;Object.defineProperty(w,"typeDetectGlobalObject",{get:function(){return this},configurable:!0});var P=typeDetectGlobalObject;return delete w.typeDetectGlobalObject,P}(Object.prototype),r=typeof Symbol<"u",o=typeof Map<"u",i=typeof Set<"u",l=typeof WeakMap<"u",u=typeof WeakSet<"u",s=typeof DataView<"u",f=r&&typeof Symbol.iterator<"u",d=r&&typeof Symbol.toStringTag<"u",c=i&&typeof Set.prototype.entries=="function",v=o&&typeof Map.prototype.entries=="function",y=c&&Object.getPrototypeOf(new Set().entries()),g=v&&Object.getPrototypeOf(new Map().entries()),C=f&&typeof Array.prototype[Symbol.iterator]=="function",h=C&&Object.getPrototypeOf([][Symbol.iterator]()),p=f&&typeof String.prototype[Symbol.iterator]=="function",m=p&&Object.getPrototypeOf(""[Symbol.iterator]()),b=8,k=-1;function x(w){var P=typeof w;if(P!=="object")return P;if(w===null)return"null";if(w===a)return"global";if(Array.isArray(w)&&(d===!1||!(Symbol.toStringTag in w)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&w===window.location)return"Location";if(typeof window.document=="object"&&w===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&w===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&w===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&w instanceof window.HTMLElement){if(w.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(w.tagName==="TD")return"HTMLTableDataCellElement";if(w.tagName==="TH")return"HTMLTableHeaderCellElement"}}var S=d&&w[Symbol.toStringTag];if(typeof S=="string")return S;var R=Object.getPrototypeOf(w);return R===RegExp.prototype?"RegExp":R===Date.prototype?"Date":n&&R===Promise.prototype?"Promise":i&&R===Set.prototype?"Set":o&&R===Map.prototype?"Map":u&&R===WeakSet.prototype?"WeakSet":l&&R===WeakMap.prototype?"WeakMap":s&&R===DataView.prototype?"DataView":o&&R===g?"Map Iterator":i&&R===y?"Set Iterator":C&&R===h?"Array Iterator":p&&R===m?"String Iterator":R===null?"Object":Object.prototype.toString.call(w).slice(b,k)}return x})}(ha)),ha.exports}var cu;function up(){if(cu)return Ur.exports;cu=1;/*!
|
|
4
4
|
* deep-eql
|
|
5
5
|
* Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
|
|
@@ -346,7 +346,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
346
346
|
.ux-dialog_closeButton {
|
|
347
347
|
margin: 0;
|
|
348
348
|
}
|
|
349
|
-
`,rM=O.lazy(()=>bb(()=>import("./index-
|
|
349
|
+
`,rM=O.lazy(()=>bb(()=>import("./index-DByR2J-y.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>({default:e.Uploader}))),aM="/blocklet/component/upload",Cf=[".html",".htm",".tgz",".zip"],oM=Number(window.env?.MAX_UPLOAD_FILE_SIZE)||be.MAX_UPLOAD_FILE_SIZE,iM=oM*1024*1024;function Oh({did:e,prefix:t,headers:n=()=>({}),onUploaded:a=Vs,open:r=!1,onClose:o=Vs}){const{t:i,locale:l}=ut(),u=O.useRef(null),s=O.useCallback(f=>{const{status:d,data:c}=f;if(d===200){a(c);return}je.error(i("blocklet.component.addComponentTip.uploadFailed"))},[a,i]);return O.useEffect(()=>{r?u.current?.open():u.current?.close()},[r]),D.jsx(lM,{id:`component-uploader-${e}`,children:D.jsx(rM,{ref:u,locale:l,popup:!0,onUploadFinish:s,plugins:[],onClose:o,installerProps:{disabled:!0},apiPathProps:{uploader:yr(t,aM,e),disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:Cf,maxFileSize:iM,maxNumberOfFiles:1}},tusProps:{headers:n},dashboardProps:{note:i("blocklet.component.addComponentTip.allowedFileTypes",{types:Cf.map(f=>f.replace(".","")).join(", ")})}})},`component-uploader-${e}`)}Oh.propTypes={did:K.string.isRequired,prefix:K.string.isRequired,open:K.bool,headers:K.func,onUploaded:K.func,onClose:K.func};const lM=oe(le)`
|
|
350
350
|
.uploader-wrapper {
|
|
351
351
|
display: inline-flex;
|
|
352
352
|
position: relative;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r,at as w,W as f}from"./vendor-mui-core-
|
|
1
|
+
import{j as r,at as w,W as f}from"./vendor-mui-core-___CiWHn.js";import{r as d}from"./vendor-react-CUXIiAnY.js";import{n as U,C as F,R as G,S as q,A as H}from"./vendor-utils-Doa0RxLS.js";import{V,H as D}from"./vendor-ux-pxYpYMxD.js";import{S as Y}from"./index-B9JcYhlg.js";import{a as M}from"./page-header-bY0dwe6y.js";import{l as z,aa as W,Y as a,c as $,e as B}from"./index-DiqdSyj7.js";import{S as Q}from"./layout-CgGSszKF.js";import{S as X}from"./step-actions-BursUhDh.js";import{S as J}from"./button-CjoOMC5b.js";import"./vendor-hooks-L8kZVRUL.js";import"./lottie-web-4koyQiv_.js";import"./Google-BOjQI1aW.js";import"./cloneDeep-C11iVb3m.js";import"./create-passport-svg-k1mCsufD.js";import"./vendor-arcblock-DBEMYjVA.js";import"./required-BuZo1JHj.js";import"./form-wrapper-BxqO_YSO.js";import"./logo-uploader-DnA7whvY.js";import"./collapse-Cqxx6nMG.js";import"./content-layout-DpoiOm37.js";import"./use-mobile-yOnqxyr6.js";function A({children:h=[],bottom:O,onBottomFix:m=U}){const i=d.useRef(null),l=d.useRef(null),E=d.useRef(null),c=d.useRef(null),[L,C]=d.useState(!1);return d.useEffect(()=>{let t;const u=()=>{t||(t=setTimeout(()=>{l.current&&(l.current.scrollHeight>i.current.clientHeight-E.current.clientHeight?(c.current!=="fix"&&(m("fix"),c.current="fix"),C(!0)):(c.current!=="scroll"&&(m("scroll"),c.current="scroll"),C(!1))),t=null},50))};let p;return window.ResizeObserver?p=new ResizeObserver(u):window.addEventListener("resize",u),p.observe(i.current),p.observe(l.current),()=>{p?p.disconnect():window.removeEventListener("resize",u),t&&clearTimeout(t)}},[m]),r.jsxs(Z,{ref:i,className:`${L?"scroll-mode":""}`,children:[r.jsx("div",{className:"compact-context",ref:l,children:h}),r.jsx("div",{className:"fix-container",ref:E,children:O})]})}const Z=w.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|