@abtnode/blocklet-services 1.16.30-beta-5d9c2c41 → 1.16.30-beta-cd65989e

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.
Files changed (179) hide show
  1. package/dist/assets/{Add-CVYAN2n2.js → Add-BQ57PY_a.js} +1 -1
  2. package/dist/assets/{AddBox-DnwcDko1.js → AddBox-DiQsIzo9.js} +1 -1
  3. package/dist/assets/{Alert-bzh-1cuw.js → Alert-smpImqp0.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-B3gw7vQE.js → ArrowDropDown-CSr70fBb.js} +1 -1
  5. package/dist/assets/{Avatar-CDgX4gdS.js → Avatar-C9lcmTAE.js} +1 -1
  6. package/dist/assets/{ButtonGroup-XCe_4Dd6.js → ButtonGroup-Cj4y31z5.js} +1 -1
  7. package/dist/assets/{CheckCircle-ZNzwITLi.js → CheckCircle-BvPlu31O.js} +1 -1
  8. package/dist/assets/{ChevronRight-BQxGComx.js → ChevronRight-WucQQYYR.js} +1 -1
  9. package/dist/assets/{Close-qW-xij4G.js → Close-CbUjGQb5.js} +1 -1
  10. package/dist/assets/{CloseOutlined-WD0GWqZM.js → CloseOutlined-CA8ATDOK.js} +1 -1
  11. package/dist/assets/{Delete-CRriNkym.js → Delete-DMiA4kv4.js} +1 -1
  12. package/dist/assets/{DeleteOutline-BBqJ5_Hu.js → DeleteOutline-BtczblDR.js} +1 -1
  13. package/dist/assets/{Done-DCkMGid3.js → Done-Bbviheoa.js} +1 -1
  14. package/dist/assets/{Download-DmONKHB6.js → Download-CWRpb79U.js} +1 -1
  15. package/dist/assets/{Edit-Dl7Da72r.js → Edit-CPH5rsyf.js} +1 -1
  16. package/dist/assets/{EditIcon-CqMuLEHT.js → EditIcon-Dzqx6EGV.js} +1 -1
  17. package/dist/assets/{Error-BXJV4yzT.js → Error-BehVhT4L.js} +1 -1
  18. package/dist/assets/{ExpandMore-Br1x9msZ.js → ExpandMore-BLPbGEUk.js} +1 -1
  19. package/dist/assets/{FilterList-CH2nj31H.js → FilterList-dGVsmxZ3.js} +1 -1
  20. package/dist/assets/{FormControl-DE9N6Db0.js → FormControl-Us_liKuz.js} +1 -1
  21. package/dist/assets/{FormControlLabel-DGbEY6m8.js → FormControlLabel-DJAqgLGE.js} +1 -1
  22. package/dist/assets/{FormGroup-n5wwFjBA.js → FormGroup-BbGcDOoo.js} +1 -1
  23. package/dist/assets/{Google-BL_kfN9f.js → Google-CgL8P0c3.js} +1 -1
  24. package/dist/assets/{Hidden-BYIvIL0k.js → Hidden-Cq8zZFLO.js} +1 -1
  25. package/dist/assets/{InfoOutlined-CDKG5pPz.js → InfoOutlined-738pp2yB.js} +1 -1
  26. package/dist/assets/{InputAdornment-tlUB0OtI.js → InputAdornment-BkdyuJyy.js} +1 -1
  27. package/dist/assets/{InputLabel-D2kHO3Su.js → InputLabel--WV9lBJk.js} +1 -1
  28. package/dist/assets/{LastPage-bpkDUtUD.js → LastPage-DsSBN78H.js} +1 -1
  29. package/dist/assets/{Launch-Ddq1J5R1.js → Launch-CSUzNHYL.js} +1 -1
  30. package/dist/assets/{LaunchOutlined-ItmbAFN0.js → LaunchOutlined-C2aTle2O.js} +1 -1
  31. package/dist/assets/{Link-NMapyzp6.js → Link-CFWQfHB5.js} +1 -1
  32. package/dist/assets/{ListItemText-OVWUZ8Yw.js → ListItemText-54aRex6i.js} +1 -1
  33. package/dist/assets/{LoadingButton-TfmYHzFH.js → LoadingButton-Ddk75wr7.js} +1 -1
  34. package/dist/assets/{LockIcon-XG87P4do.js → LockIcon-BKdiP0Z8.js} +1 -1
  35. package/dist/assets/{Loop-B5igBWDP.js → Loop-CrVxeM7o.js} +1 -1
  36. package/dist/assets/{MoreHoriz-c2PDP89o.js → MoreHoriz-DCig5-7z.js} +1 -1
  37. package/dist/assets/{MoreVert-VUWyXDsQ.js → MoreVert-D0MHc_oA.js} +1 -1
  38. package/dist/assets/{OpenInNew-ChhskXmz.js → OpenInNew-o94JN74y.js} +1 -1
  39. package/dist/assets/{Pagination-aUFIvi5y.js → Pagination-BoZ8uk_n.js} +1 -1
  40. package/dist/assets/{PlayArrow-By-kmerY.js → PlayArrow-BKJw1eVI.js} +1 -1
  41. package/dist/assets/{QuestionMarkCircle-B9pyXZy7.js → QuestionMarkCircle-UwK_E8FG.js} +1 -1
  42. package/dist/assets/{RadioGroup-DiH-c46e.js → RadioGroup-DpVC0gNI.js} +1 -1
  43. package/dist/assets/{Search-YlhHuO6O.js → Search-BkeqStVj.js} +1 -1
  44. package/dist/assets/{Select-DxpmtgW4.js → Select-B2Prj2qE.js} +1 -1
  45. package/dist/assets/{ServerLogo-CKkyRIMN.js → ServerLogo-7k2IFEWK.js} +1 -1
  46. package/dist/assets/{Skeleton-D1F5dy2x.js → Skeleton-lGeaUybJ.js} +1 -1
  47. package/dist/assets/{Slider-ao2S-hIb.js → Slider-CTDjrGVx.js} +1 -1
  48. package/dist/assets/{Stepper-DGOl59kQ.js → Stepper-DUoEJ9pB.js} +1 -1
  49. package/dist/assets/{TextField-BYfKGYpN.js → TextField-Bc5irjLS.js} +1 -1
  50. package/dist/assets/{Toolbar-B_xj2T9O.js → Toolbar-CA_h5A9p.js} +1 -1
  51. package/dist/assets/{ViewList-CjH94hua.js → ViewList-B20ISrFd.js} +1 -1
  52. package/dist/assets/{access-control-tbrDClnL.js → access-control-BMXRpHl-.js} +1 -1
  53. package/dist/assets/{actions-HNNA8mAr.js → actions-DwpIAZdn.js} +1 -1
  54. package/dist/assets/{add-component-core-HIykDunt.js → add-component-core-Dk4Djy0q.js} +1 -1
  55. package/dist/assets/{add-resource-C-yDv8nK.js → add-resource-DhwEgLRb.js} +1 -1
  56. package/dist/assets/{addon-DIKMgGhZ.js → addon-CO3ovexo.js} +1 -1
  57. package/dist/assets/{analytics-BKsUeXDw.js → analytics-DcwZo_gP.js} +1 -1
  58. package/dist/assets/api-B0Ezcc20.js +1 -0
  59. package/dist/assets/{audit-logs-HTNz9Ui5.js → audit-logs-ch5QueX3.js} +1 -1
  60. package/dist/assets/{button-Bfs5dmJW.js → button-rv9kaUKM.js} +1 -1
  61. package/dist/assets/{click-to-copy-D14O9X1o.js → click-to-copy-C4ONmU_N.js} +1 -1
  62. package/dist/assets/{complete-Dqz9_rJD.js → complete-CCkwZPzb.js} +1 -1
  63. package/dist/assets/{component-UDUqL4fG.js → component-Dp7lcidX.js} +1 -1
  64. package/dist/assets/{config-rlS2Ozpo.js → config-BIMZ5MEe.js} +1 -1
  65. package/dist/assets/{config-CPhfDBZV.js → config-DISpOS3J.js} +1 -1
  66. package/dist/assets/{config-navigation-CJ-de3j1.js → config-navigation-XWDrsLV_.js} +1 -1
  67. package/dist/assets/{confirm-CnJhc68Q.js → confirm-D8z1ysLZ.js} +1 -1
  68. package/dist/assets/{connect-31ih5dtl.js → connect-B1DBc-KL.js} +1 -1
  69. package/dist/assets/{connect-BlBcX7xs.js → connect-DtIwAPOk.js} +1 -1
  70. package/dist/assets/{connect-to-NQzylv_u.js → connect-to-DNz_WDCc.js} +1 -1
  71. package/dist/assets/{content-layout-CvCSD7Cn.js → content-layout-Cpg-pb6u.js} +1 -1
  72. package/dist/assets/dashboard-Cy3erg8C.js +165 -0
  73. package/dist/assets/{did-address-B8vaNsMa.js → did-address-5rmeRrux.js} +1 -1
  74. package/dist/assets/{domain-DLjLI_5f.js → domain-C7LHxI47.js} +1 -1
  75. package/dist/assets/{domain-list-RbmvUGd2.js → domain-list-kQLBhEmi.js} +1 -1
  76. package/dist/assets/{exchange-passport-BVVa20rU.js → exchange-passport-CfGXESIE.js} +1 -1
  77. package/dist/assets/{fallback-l6x8Ufow.js → fallback-DeSV2xkv.js} +1 -1
  78. package/dist/assets/{format-error-Blif5aTO.js → format-error-B_0jV3Iv.js} +1 -1
  79. package/dist/assets/{fuel-BlKNXMVP.js → fuel-aBXBwM_I.js} +1 -1
  80. package/dist/assets/{fullpage-uuQNoBvu.js → fullpage-Boy5j04D.js} +1 -1
  81. package/dist/assets/{home-DRLEBJrk.js → home-Glfkn8kh.js} +1 -1
  82. package/dist/assets/{iframe-CVrqJU8l.js → iframe-D3bH5x3R.js} +1 -1
  83. package/dist/assets/{index-CxrCgTse.js → index-B1p1iylt.js} +1 -1
  84. package/dist/assets/{index-Bo9QnPG1.js → index-B3keHk0l.js} +1 -1
  85. package/dist/assets/{index-255o-u6L.js → index-BJalpuBM.js} +3 -2
  86. package/dist/assets/{index-BnWtXVAz.js → index-Bbkb50i_.js} +1 -1
  87. package/dist/assets/{index-DT8M-stk.js → index-BdYDooUk.js} +1 -1
  88. package/dist/assets/{index-cVr26mKy.js → index-Bj_zBfXt.js} +1 -1
  89. package/dist/assets/{index-Bdg2hH7J.js → index-Bjf6Qdid.js} +3 -3
  90. package/dist/assets/{index-D3CByOWX.js → index-BpIS7xUe.js} +1 -1
  91. package/dist/assets/{index-DA21JYSh.js → index-BwG-tanp.js} +3 -3
  92. package/dist/assets/{index-wK8MJeLI.js → index-C0TcPNfP.js} +1 -1
  93. package/dist/assets/{index-CWfGuhnW.js → index-CFuGWzVi.js} +1 -1
  94. package/dist/assets/{index-Cpb38s9N.js → index-CHZh3BHq.js} +4 -4
  95. package/dist/assets/{index-DiWAz-Pl.js → index-CbrpFuSe.js} +1 -1
  96. package/dist/assets/{index-ByD4ydGX.js → index-CufrwE5d.js} +1 -1
  97. package/dist/assets/{index-BJ9Owdb4.js → index-Cvh50s_t.js} +1 -1
  98. package/dist/assets/{index-CSBw7k-G.js → index-Cw-oSGcD.js} +1 -1
  99. package/dist/assets/{index-B8k2vim3.js → index-D5X58lJY.js} +1 -1
  100. package/dist/assets/{index-_F8kdc8Q.js → index-D8LJCIGN.js} +1 -1
  101. package/dist/assets/{index-DTg4Ig3M.js → index-DLyTsUFY.js} +1 -1
  102. package/dist/assets/{index-CJj_4VZH.js → index-DP5184vb.js} +1 -1
  103. package/dist/assets/{index-Dt07hFjg.js → index-DYBY6iT_.js} +1 -1
  104. package/dist/assets/{index-BS9TWd2p.js → index-D_o4YQXA.js} +1 -1
  105. package/dist/assets/{index-tfBxNgKx.js → index-DiqZp89K.js} +1 -1
  106. package/dist/assets/{index-BA1LIiSA.js → index-Dsb2xjqK.js} +1 -1
  107. package/dist/assets/{index-Bn5NB2JF.js → index-DwpJFq5g.js} +1 -1
  108. package/dist/assets/{index-cHjJj_dG.js → index-LywoNrgL.js} +1 -1
  109. package/dist/assets/{index-ZShT0NT3.js → index-_qSOGZvF.js} +1 -1
  110. package/dist/assets/{index-DHvniSKa.js → index-autg6hcy.js} +1 -1
  111. package/dist/assets/{index-DNlUUcTz.js → index-btzBjGHI.js} +1 -1
  112. package/dist/assets/{index-Ci6IWDWf.js → index-cmxabTfW.js} +1 -1
  113. package/dist/assets/{index--iA86Fqj.js → index-mLiByM5-.js} +1 -1
  114. package/dist/assets/{index-CvAjMcvY.js → index-p55mr8Rd.js} +1 -1
  115. package/dist/assets/{index.es-B5pLCk4-.js → index.es-DdWEvNQE.js} +1 -1
  116. package/dist/assets/{index.esm-MqNtIWnn.js → index.esm-DD6j9Hbp.js} +1 -1
  117. package/dist/assets/{invitation-BfR9BdX3.js → invitation-DUyIwrZO.js} +1 -1
  118. package/dist/assets/{invite-COB2td-Z.js → invite-C45s_16j.js} +1 -1
  119. package/dist/assets/{issue-passport-C8WI5I2r.js → issue-passport-INxc0I1O.js} +1 -1
  120. package/dist/assets/{item-DxzYKgGj.js → item-BkNGiSLA.js} +1 -1
  121. package/dist/assets/{jss-plugin-props-sort.esm-D8X7o2pr.js → jss-plugin-props-sort.esm-BalOwz5A.js} +1 -1
  122. package/dist/assets/{launch-result-message-DlfUpqsM.js → launch-result-message-B4GHaPTO.js} +1 -1
  123. package/dist/assets/{layout-B0gSHs6T.js → layout-X3oLtCG6.js} +1 -1
  124. package/dist/assets/{list-header-Bma_K6X2.js → list-header-B_qD9r7c.js} +1 -1
  125. package/dist/assets/localization-DFhPI3Pr.js +1 -0
  126. package/dist/assets/{log-CypPgBlx.js → log-B_OHDjFH.js} +1 -1
  127. package/dist/assets/{login-CN16WkWc.js → login-Cxzlnsxp.js} +1 -1
  128. package/dist/assets/{login-oauth-callback-2ujdQmZH.js → login-oauth-callback-JqaH9yWq.js} +1 -1
  129. package/dist/assets/{logo-uploader-ClUYYxL1.js → logo-uploader-DSVH1NS6.js} +3 -3
  130. package/dist/assets/{lost-passport-CPnepwqM.js → lost-passport-CnuoHm2j.js} +3 -3
  131. package/dist/assets/{lottie-7e9js8BB.js → lottie-D-0y0bjd.js} +1 -1
  132. package/dist/assets/{notifications-DNM-dija.js → notifications-CRyumC-4.js} +1 -1
  133. package/dist/assets/{open-window-BPoK7T-M.js → open-window-BenM6KVD.js} +1 -1
  134. package/dist/assets/{overview-D47edAva.js → overview-DkODBI7U.js} +1 -1
  135. package/dist/assets/{page-header-Dlu4P1xk.js → page-header-CaBVBbM_.js} +1 -1
  136. package/dist/assets/{permission-ClswWE64.js → permission-CbOj_2Bp.js} +1 -1
  137. package/dist/assets/{preferences-COQfVvgo.js → preferences-BMFF2n9d.js} +1 -1
  138. package/dist/assets/publish-resource-DBzB0PV8.js +1 -0
  139. package/dist/assets/{react-C8LgBs_k.js → react-VdzYFMYW.js} +3 -3
  140. package/dist/assets/{redux-_YFRGxHq.js → redux-_iDVOyi8.js} +1 -1
  141. package/dist/assets/{resource-dialog-CROCpfsh.js → resource-dialog-CGv7gFVK.js} +1 -1
  142. package/dist/assets/sdk-BsyaEhx5.js +1 -0
  143. package/dist/assets/{selector-YK8Xf2Rq.js → selector-DKnQRsyi.js} +1 -1
  144. package/dist/assets/session-WfO9rlPi.js +1 -0
  145. package/dist/assets/{setup-Cq2NZKc3.js → setup-DalefKUl.js} +3 -3
  146. package/dist/assets/{shorten-label-CeQzn9-u.js → shorten-label-uDRMuqOz.js} +1 -1
  147. package/dist/assets/{slicedToArray-Ci6zdtll.js → slicedToArray-CyVkNUew.js} +1 -1
  148. package/dist/assets/{spaces-Cz9_Xdg_.js → spaces-BCq3rAVa.js} +1 -1
  149. package/dist/assets/{start-DfU9ilW5.js → start-Dwly_ww8.js} +1 -1
  150. package/dist/assets/{step-actions-BvzypTeZ.js → step-actions-Bvy2nc4B.js} +1 -1
  151. package/dist/assets/{studio-Dogn9FY7.js → studio-mK-vbf-F.js} +1 -1
  152. package/dist/assets/{switch-control-D9hjlMId.js → switch-control-Dmb8A7P7.js} +1 -1
  153. package/dist/assets/{toUpper-DiCihDmj.js → toUpper-CuGm8bjT.js} +1 -1
  154. package/dist/assets/{transfer-BTtIrW0g.js → transfer-DIBgSbnS.js} +1 -1
  155. package/dist/assets/{uniqBy-Blkjf7ps.js → uniqBy-B-B5GbKo.js} +1 -1
  156. package/dist/assets/{unsubscribe-Bl9PzG7o.js → unsubscribe-Q__XsG0-.js} +1 -1
  157. package/dist/assets/{url-join-Cc5MbaZB.js → url-join-DxMZuH7a.js} +1 -1
  158. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-BNPOv7wG.js → use-blocklet-info-for-connect-did-spaces-l_qg8Xo8.js} +1 -1
  159. package/dist/assets/{use-mobile-CPAuyQwU.js → use-mobile-Om7xgadW.js} +1 -1
  160. package/dist/assets/{useAsync-CbQ86h-f.js → useAsync-CNA6CF-4.js} +1 -1
  161. package/dist/assets/{useFormControl-CDmRrmKw.js → useFormControl-CLJPjR4P.js} +1 -1
  162. package/dist/assets/{useLocalStorage-DvZZwTDC.js → useLocalStorage-B61hus9l.js} +1 -1
  163. package/dist/assets/{useSetState-BpZL0m-H.js → useSetState-De5jz-QS.js} +1 -1
  164. package/dist/assets/{useSlot-DxWJyNOJ.js → useSlot-BdDJZvLo.js} +1 -1
  165. package/dist/assets/{useSlotProps-C9cl4-TZ.js → useSlotProps-dq2Kfslt.js} +1 -1
  166. package/dist/assets/{useThemeProps-_7k5Wu1c.js → useThemeProps-CeQMvkv6.js} +1 -1
  167. package/dist/assets/{user-center-CKSVKtEg.js → user-center-CI62TMfu.js} +1 -1
  168. package/dist/assets/{user-sessions-QPFNNTrZ.js → user-sessions-CvhKLriy.js} +1 -1
  169. package/dist/assets/{util-C2KlfrNA.js → util-CTNXgq32.js} +1 -1
  170. package/dist/assets/{wrap-locale-aa3oShvm.js → wrap-locale-DVbyvIny.js} +1 -1
  171. package/dist/index.html +1 -1
  172. package/dist/service-worker.js +1 -1
  173. package/package.json +36 -36
  174. package/dist/assets/api-D5rmifNl.js +0 -1
  175. package/dist/assets/dashboard-WQeB59iZ.js +0 -165
  176. package/dist/assets/localization-DQx8Ct-X.js +0 -1
  177. package/dist/assets/publish-resource-D7CEW6PO.js +0 -1
  178. package/dist/assets/sdk-DR0yLm5u.js +0 -1
  179. package/dist/assets/session-CBJgIJsY.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as c,u as g,j as e,a as L,aC as B,P as j,ai as R,aj as I,a7 as N,B as E,F as h,s as f,Z as F,aV as _}from"./index-Bdg2hH7J.js";import{P as z}from"./page-header-Dlu4P1xk.js";import{A as W}from"./config-rlS2Ozpo.js";import{S as H}from"./layout-B0gSHs6T.js";import{S as O}from"./step-actions-BvzypTeZ.js";import{S as V}from"./button-Bfs5dmJW.js";import{d as $}from"./InfoOutlined-CDKG5pPz.js";import{F as q}from"./FormControl-DE9N6Db0.js";import{R as G,a as Z}from"./RadioGroup-DiH-c46e.js";import{F as x,C as D}from"./FormControlLabel-DGbEY6m8.js";import"./content-layout-CvCSD7Cn.js";import"./useFormControl-CDmRrmKw.js";import"./FormGroup-n5wwFjBA.js";function y({children:s}){const{t:i}=g();return e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[s,e.jsx(L,{title:i("blocklet.config.access.publicInstanceTip"),children:e.jsx(B,{children:e.jsx($,{fontSize:"small"})})})]})}y.propTypes={children:j.any.isRequired};const J=c.memo(y);function C({onNext:s}){const i=R(),{t:r,locale:m}=g(),[a,o]=c.useState(!1),[p,d]=c.useState(""),[b,S]=c.useState(!1),{blocklet:n,actions:u,getPublicInstance:v}=I();c.useEffect(()=>{d(N.getWhoCanAccess(n)),S(v(n))},[n]);const A=async t=>{try{o(!0),await _(800),await u.configWhoCanAccess(t),o(!1)}catch(l){o(!1),f.error(l.message)}},P=async t=>{a||(d(t.target.value),await A(t.target.value))},T=async t=>{const l=t.target.checked;try{o(!0),await u.configPublicToStore(l),o(!1)}catch(w){o(!1),f.error(w.message)}},k={marginRight:4,fontSize:18,verticalAlign:"text-bottom",color:i.palette.text.secondary};return e.jsxs(K,{children:[e.jsx("div",{className:"header",children:e.jsx(z,{title:r("blocklet.config.access.description")})}),e.jsx(q,{component:"fieldset",children:e.jsx(G,{name:"inherit",value:p,onChange:P,children:W.map(t=>e.jsxs("div",{style:{marginBottom:16},children:[e.jsx(x,{value:t.value,control:e.jsx(Z,{color:"primary"}),label:e.jsxs("span",{children:[e.jsx(t.icon,{style:k}),t.title[m]]})}),e.jsxs(E,{className:"tip",children:[t.description[m],t.value===h.WHO_CAN_ACCESS.ALL&&p===h.WHO_CAN_ACCESS.ALL&&n.source==="registry"&&e.jsx(J,{children:e.jsx(x,{style:{marginRight:0},value:t.value,control:e.jsx(D,{size:"small"}),label:e.jsx("span",{children:r("blocklet.config.access.publicToStore")}),onChange:T,checked:b,disabled:a})})]})]},t.value))})}),e.jsx(O,{mt:8,disabled:a,blocklet:n,onStartNow:()=>s("complete"),children:e.jsx(V,{loading:a,variant:"contained",disabled:a,onClick:()=>s(),children:r("setup.continue")})})]})}C.propTypes={onNext:j.func};C.defaultProps={onNext:()=>{}};const K=F(H)`
1
+ import{r as c,u as g,j as e,a as L,aC as B,P as j,ai as R,aj as I,a7 as N,B as E,F as h,s as f,Z as F,aV as _}from"./index-Bjf6Qdid.js";import{P as z}from"./page-header-CaBVBbM_.js";import{A as W}from"./config-BIMZ5MEe.js";import{S as H}from"./layout-X3oLtCG6.js";import{S as O}from"./step-actions-Bvy2nc4B.js";import{S as V}from"./button-rv9kaUKM.js";import{d as $}from"./InfoOutlined-738pp2yB.js";import{F as q}from"./FormControl-Us_liKuz.js";import{R as G,a as Z}from"./RadioGroup-DpVC0gNI.js";import{F as x,C as D}from"./FormControlLabel-DJAqgLGE.js";import"./content-layout-Cpg-pb6u.js";import"./useFormControl-CLJPjR4P.js";import"./FormGroup-BbGcDOoo.js";function y({children:s}){const{t:i}=g();return e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[s,e.jsx(L,{title:i("blocklet.config.access.publicInstanceTip"),children:e.jsx(B,{children:e.jsx($,{fontSize:"small"})})})]})}y.propTypes={children:j.any.isRequired};const J=c.memo(y);function C({onNext:s}){const i=R(),{t:r,locale:m}=g(),[a,o]=c.useState(!1),[p,d]=c.useState(""),[b,S]=c.useState(!1),{blocklet:n,actions:u,getPublicInstance:v}=I();c.useEffect(()=>{d(N.getWhoCanAccess(n)),S(v(n))},[n]);const A=async t=>{try{o(!0),await _(800),await u.configWhoCanAccess(t),o(!1)}catch(l){o(!1),f.error(l.message)}},P=async t=>{a||(d(t.target.value),await A(t.target.value))},T=async t=>{const l=t.target.checked;try{o(!0),await u.configPublicToStore(l),o(!1)}catch(w){o(!1),f.error(w.message)}},k={marginRight:4,fontSize:18,verticalAlign:"text-bottom",color:i.palette.text.secondary};return e.jsxs(K,{children:[e.jsx("div",{className:"header",children:e.jsx(z,{title:r("blocklet.config.access.description")})}),e.jsx(q,{component:"fieldset",children:e.jsx(G,{name:"inherit",value:p,onChange:P,children:W.map(t=>e.jsxs("div",{style:{marginBottom:16},children:[e.jsx(x,{value:t.value,control:e.jsx(Z,{color:"primary"}),label:e.jsxs("span",{children:[e.jsx(t.icon,{style:k}),t.title[m]]})}),e.jsxs(E,{className:"tip",children:[t.description[m],t.value===h.WHO_CAN_ACCESS.ALL&&p===h.WHO_CAN_ACCESS.ALL&&n.source==="registry"&&e.jsx(J,{children:e.jsx(x,{style:{marginRight:0},value:t.value,control:e.jsx(D,{size:"small"}),label:e.jsx("span",{children:r("blocklet.config.access.publicToStore")}),onChange:T,checked:b,disabled:a})})]})]},t.value))})}),e.jsx(O,{mt:8,disabled:a,blocklet:n,onStartNow:()=>s("complete"),children:e.jsx(V,{loading:a,variant:"contained",disabled:a,onClick:()=>s(),children:r("setup.continue")})})]})}C.propTypes={onNext:j.func};C.defaultProps={onNext:()=>{}};const K=F(H)`
2
2
  height: 100%;
3
3
  overflow-y: auto;
4
4
  .header {
@@ -1 +1 @@
1
- import{r as c,j as a,aC as P,aR as E,aS as v,aT as I,P as p,Z as T}from"./index-Bdg2hH7J.js";import{d as C}from"./MoreHoriz-c2PDP89o.js";import{L as D,a as b}from"./ListItemText-OVWUZ8Yw.js";function l({actions:u,size:m,...d}){const[n,r]=c.useState(null),f=!!n,y=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(t.currentTarget)},e=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(null)};return a.jsxs(k,{...d,children:[a.jsx(P,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:y,size:m,children:a.jsx(C,{})}),a.jsx(E,{id:"actions-menu","data-cy":"actions-menu",anchorEl:n,keepMounted:!0,open:f,onClose:e,slotProps:{paper:{}},children:u.map((t,s)=>{if(typeof t=="function")return t({close:e});if(t.separator)return a.jsx(v,{},`separator-${s}`);const{icon:h,text:x,render:z,onClick:o,disabled:j=!1,...g}=t;return c.createElement(I,{...g,disabled:j,dense:!0,onClick:async i=>{i.stopPropagation(),await(o==null?void 0:o(i)),e()},key:s,"data-cy":`actions-menu-${s}`},a.jsx(D,{style:{minWidth:24,marginRight:8},children:h}),a.jsx(b,{primary:x}))})})]})}l.propTypes={actions:p.array,size:p.oneOf(["small","medium","large"])};l.defaultProps={actions:[],size:"small"};const k=T.div``;export{l as A};
1
+ import{r as c,j as a,aC as P,aR as E,aS as v,aT as I,P as p,Z as T}from"./index-Bjf6Qdid.js";import{d as C}from"./MoreHoriz-DCig5-7z.js";import{L as D,a as b}from"./ListItemText-54aRex6i.js";function l({actions:u,size:m,...d}){const[n,r]=c.useState(null),f=!!n,y=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(t.currentTarget)},e=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(null)};return a.jsxs(k,{...d,children:[a.jsx(P,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:y,size:m,children:a.jsx(C,{})}),a.jsx(E,{id:"actions-menu","data-cy":"actions-menu",anchorEl:n,keepMounted:!0,open:f,onClose:e,slotProps:{paper:{}},children:u.map((t,s)=>{if(typeof t=="function")return t({close:e});if(t.separator)return a.jsx(v,{},`separator-${s}`);const{icon:h,text:x,render:z,onClick:o,disabled:j=!1,...g}=t;return c.createElement(I,{...g,disabled:j,dense:!0,onClick:async i=>{i.stopPropagation(),await(o==null?void 0:o(i)),e()},key:s,"data-cy":`actions-menu-${s}`},a.jsx(D,{style:{minWidth:24,marginRight:8},children:h}),a.jsx(b,{primary:x}))})})]})}l.propTypes={actions:p.array,size:p.oneOf(["small","medium","large"])};l.defaultProps={actions:[],size:"small"};const k=T.div``;export{l as A};
@@ -1,4 +1,4 @@
1
- import{aK as kr,d2 as Kl,d3 as Wl,r as I,eF as Xl,d9 as Yl,aJ as Ql,j as _,aM as Zl,cO as Jl,da as ec,aN as tc,aF as rc,aG as nc,aI as ic,_ as Mt,Q as Xi,eG as ac,eH as oc,k as xr,eI as sc,eJ as lc,c2 as cc,df as pn,bz as fn,F as Cn,b7 as ar,eK as ji,eE as uc,bD as mc,P as $,bt as Ie,X as St,Y as Et,a1 as qe,m as Je,at as Vn,Z as $e,B as re,a7 as ht,h as Fs,cv as Me,D as Ns,T as Le,u as et,$ as Qr,bE as On,aP as Zr,E as pc,e as fc,aC as hc,eL as dc,ct as Ls,eM as xc,eN as yc,eO as gc,eP as Fn,cu as ye,eQ as kc,a9 as ot,eR as vc,eS as bc,J as Ms,aZ as Sc,bk as Ec,bs as so,eT as wc,c3 as Oi,c as Nn,eU as _c,c0 as Ac,s as Yi,eV as Dc,aY as Ln,C as jc,cq as Oc,eW as qs,aT as Us,eX as Pc,eY as Bc,ay as lo,ai as Mn,ag as zs,a8 as Hs,O as Ks,eZ as Gc,b as Ws,cn as $c,dh as Rc,l as Tc,e_ as Ic,bq as Xs,bf as Ys,bG as yr,cm as Cc,bm as Vc,dx as Fc,ah as Nc,bn as Lc,e$ as Mc,f0 as qc,dg as Uc,ab as zc,A as Hc,f1 as Kc,f2 as Wc,f3 as Xc,bx as Yc,cw as Qc,f4 as Zc,f5 as Jc,f6 as eu,f7 as hn,f8 as co,f9 as tu}from"./index-Bdg2hH7J.js";import{l as ru}from"./lottie-7e9js8BB.js";import{u as nu,a as iu,L as au,C as ou,S as su}from"./index-255o-u6L.js";import{L as uo}from"./launch-result-message-DlfUpqsM.js";import{P as Qs}from"./page-header-Dlu4P1xk.js";import{u as Zs}from"./uniqBy-Blkjf7ps.js";import{R as pi}from"./logo-uploader-ClUYYxL1.js";import{S as lu}from"./index-DTg4Ig3M.js";import{s as Js,h as cu,w as uu,f as mu,a as pu,b as fu,c as hu,M as du}from"./index-cVr26mKy.js";import{j as mo}from"./url-join-Cc5MbaZB.js";import{F as xu,C as yu,S as gu}from"./FormControlLabel-DGbEY6m8.js";import{p as ku}from"./index-BA1LIiSA.js";import{I as po}from"./index-ZShT0NT3.js";import{u as vu}from"./session-CBJgIJsY.js";import{W as bu}from"./did-address-B8vaNsMa.js";import{T as Qi}from"./TextField-BYfKGYpN.js";import{S as Su,a as Eu,b as wu}from"./Stepper-DGOl59kQ.js";import{D as _u,f as e0}from"./format-error-Blif5aTO.js";import{A as t0}from"./Alert-bzh-1cuw.js";import{a as fo}from"./api-D5rmifNl.js";import{m as Au,S as Du,A as ju}from"./item-DxzYKgGj.js";import{L as Ou}from"./MoreVert-VUWyXDsQ.js";import{L as Pu,a as Bu}from"./ListItemText-OVWUZ8Yw.js";import{v as Gu}from"./util-C2KlfrNA.js";import{u as r0,C as $u,D as Ru,a as Tu}from"./connect-to-NQzylv_u.js";import{C as Iu}from"./content-layout-CvCSD7Cn.js";import{d as Cu}from"./ArrowDropDown-B3gw7vQE.js";import{_ as Vu}from"./useLocalStorage-DvZZwTDC.js";import{E as Zi}from"./fallback-l6x8Ufow.js";import{E as Fu}from"./index-Ci6IWDWf.js";import{d as Nu}from"./Search-YlhHuO6O.js";import{S as Lu}from"./index-D3CByOWX.js";import{O as Mu}from"./Select-DxpmtgW4.js";import{H as ho}from"./Hidden-BYIvIL0k.js";import{I as xo}from"./InputAdornment-tlUB0OtI.js";import{_ as qu,k as Uu,B as zu}from"./preact.module-DJUF--8d.js";import{L as Hu}from"./Link-NMapyzp6.js";const Ku=(e,t)=>e.filter(r=>t.includes(r)),or=(e,t,r)=>{const n=e.keys[0];Array.isArray(t)?t.forEach((a,c)=>{r((u,o)=>{c<=e.keys.length-1&&(c===0?Object.assign(u,o):u[e.up(e.keys[c])]=o)},a)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:Ku(e.keys,Object.keys(t))).forEach(c=>{if(e.keys.indexOf(c)!==-1){const u=t[c];u!==void 0&&r((o,d)=>{n===c?Object.assign(o,d):o[e.up(c)]=d},u)}}):(typeof t=="number"||typeof t=="string")&&r((a,c)=>{Object.assign(a,c)},t)};function dt(e){return e?`Level${e}`:""}function Jr(e){return e.unstable_level>0&&e.container}function n0(e){return function(r){return`var(--Grid-${r}Spacing${dt(e.unstable_level)})`}}function Ji(e){return function(r){return e.unstable_level===0?`var(--Grid-${r}Spacing)`:`var(--Grid-${r}Spacing${dt(e.unstable_level-1)})`}}function ea(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${dt(e.unstable_level-1)})`}const Wu=({theme:e,ownerState:t})=>{const r=n0(t),n={};return or(e.breakpoints,t.gridSize,(a,c)=>{let u={};c===!0&&(u={flexBasis:0,flexGrow:1,maxWidth:"100%"}),c==="auto"&&(u={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof c=="number"&&(u={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${c} / ${ea(t)}${Jr(t)?` + ${r("column")}`:""})`}),a(n,u)}),n},Xu=({theme:e,ownerState:t})=>{const r={};return or(e.breakpoints,t.gridOffset,(n,a)=>{let c={};a==="auto"&&(c={marginLeft:"auto"}),typeof a=="number"&&(c={marginLeft:a===0?"0px":`calc(100% * ${a} / ${ea(t)})`}),n(r,c)}),r},Yu=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=Jr(t)?{[`--Grid-columns${dt(t.unstable_level)}`]:ea(t)}:{"--Grid-columns":12};return or(e.breakpoints,t.columns,(n,a)=>{n(r,{[`--Grid-columns${dt(t.unstable_level)}`]:a})}),r},Qu=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=Ji(t),n=Jr(t)?{[`--Grid-rowSpacing${dt(t.unstable_level)}`]:r("row")}:{};return or(e.breakpoints,t.rowSpacing,(a,c)=>{var u;a(n,{[`--Grid-rowSpacing${dt(t.unstable_level)}`]:typeof c=="string"?c:(u=e.spacing)==null?void 0:u.call(e,c)})}),n},Zu=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=Ji(t),n=Jr(t)?{[`--Grid-columnSpacing${dt(t.unstable_level)}`]:r("column")}:{};return or(e.breakpoints,t.columnSpacing,(a,c)=>{var u;a(n,{[`--Grid-columnSpacing${dt(t.unstable_level)}`]:typeof c=="string"?c:(u=e.spacing)==null?void 0:u.call(e,c)})}),n},Ju=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return or(e.breakpoints,t.direction,(n,a)=>{n(r,{flexDirection:a})}),r},e1=({ownerState:e})=>{const t=n0(e),r=Ji(e);return kr({minWidth:0,boxSizing:"border-box"},e.container&&kr({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||Jr(e))&&kr({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},t1=e=>{const t=[];return Object.entries(e).forEach(([r,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${r}-${String(n)}`)}),t},r1=(e,t="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const n=[];return Object.entries(e).forEach(([a,c])=>{r(c)&&n.push(`spacing-${a}-${String(c)}`)}),n}return[]},n1=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`],i1=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],a1=Kl(),o1=Wl("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function s1(e){return ec({props:e,name:"MuiGrid",defaultTheme:a1})}function l1(e={}){const{createStyledComponent:t=o1,useThemeProps:r=s1,componentName:n="MuiGrid"}=e,a=I.createContext(void 0),c=(d,y)=>{const{container:h,direction:i,spacing:p,wrap:m,gridSize:l}=d,s={root:["root",h&&"container",m!=="wrap"&&`wrap-xs-${String(m)}`,...n1(i),...t1(l),...h?r1(p,y.breakpoints.keys[0]):[]]};return tc(s,g=>rc(n,g),{})},u=t(Yu,Zu,Qu,Wu,Ju,e1,Xu),o=I.forwardRef(function(y,h){var i,p,m,l,s,g,f,x;const k=Xl(),S=r(y),b=Yl(S),A=I.useContext(a),{className:D,children:v,columns:E=12,container:w=!1,component:P="div",direction:R="row",wrap:C="wrap",spacing:M=0,rowSpacing:F=M,columnSpacing:U=M,disableEqualOverflow:K,unstable_level:T=0}=b,L=Ql(b,i1);let z=K;T&&K!==void 0&&(z=y.disableEqualOverflow);const Q={},Z={},le={};Object.entries(L).forEach(([ce,ae])=>{k.breakpoints.values[ce]!==void 0?Q[ce]=ae:k.breakpoints.values[ce.replace("Offset","")]!==void 0?Z[ce.replace("Offset","")]=ae:le[ce]=ae});const pe=(i=y.columns)!=null?i:T?void 0:E,Ee=(p=y.spacing)!=null?p:T?void 0:M,te=(m=(l=y.rowSpacing)!=null?l:y.spacing)!=null?m:T?void 0:F,je=(s=(g=y.columnSpacing)!=null?g:y.spacing)!=null?s:T?void 0:U,ve=kr({},b,{level:T,columns:pe,container:w,direction:R,wrap:C,spacing:Ee,rowSpacing:te,columnSpacing:je,gridSize:Q,gridOffset:Z,disableEqualOverflow:(f=(x=z)!=null?x:A)!=null?f:!1,parentDisableEqualOverflow:A}),he=c(ve,k);let oe=_.jsx(u,kr({ref:h,as:P,ownerState:ve,className:Zl(he.root,D)},le,{children:I.Children.map(v,ce=>{if(I.isValidElement(ce)&&Jl(ce,["Grid"])){var ae;return I.cloneElement(ce,{unstable_level:(ae=ce.props.unstable_level)!=null?ae:T+1})}return ce})}));return z!==void 0&&z!==(A??!1)&&(oe=_.jsx(a.Provider,{value:z,children:oe})),oe});return o.muiName="Grid",o}const fi=l1({createStyledComponent:nc("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>ic({props:e,name:"MuiGrid2"})});var c1=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},u1=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},m1=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},p1=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,a=t.threshold,c=a===void 0?100:a,u=t.reloadDeps,o=u===void 0?[]:u,d=t.manual,y=t.onBefore,h=t.onSuccess,i=t.onError,p=t.onFinally,m=Mt(I.useState(),2),l=m[0],s=m[1],g=Mt(I.useState(!1),2),f=g[0],x=g[1],k=I.useMemo(function(){return n?n(l):!1},[l]),S=Xi(function(F){return ac(void 0,void 0,void 0,function(){var U,K,T;return oc(this,function(L){switch(L.label){case 0:return[4,e(F)];case 1:return U=L.sent(),s(F?fn(fn({},U),{list:pn(pn([],Mt((T=F.list)!==null&&T!==void 0?T:[]),!1),Mt(U.list),!1)}):fn(fn({},U),{list:pn([],Mt((K=U.list)!==null&&K!==void 0?K:[]),!1)})),[2,U]}})})},{manual:d,onFinally:function(F,U,K){x(!1),p==null||p(U,K)},onBefore:function(){return y==null?void 0:y()},onSuccess:function(F){setTimeout(function(){M()}),h==null||h(F)},onError:function(F){return i==null?void 0:i(F)}}),b=S.loading,A=S.error,D=S.run,v=S.runAsync,E=S.cancel,w=xr(function(){k||(x(!0),D(l))}),P=xr(function(){return k?Promise.reject():(x(!0),v(l))}),R=function(){return x(!1),D()},C=function(){return x(!1),v()},M=function(){var F=sc(r);if(F){F=F===document?document.documentElement:F;var U=c1(F),K=u1(F),T=m1(F);K-U<=T+c&&w()}};return lc("scroll",function(){b||f||M()},{target:r}),cc(function(){D()},pn([],Mt(o),!1)),{data:l,loading:!f&&b,error:A,loadingMore:f,noMore:k,loadMore:w,loadMoreAsync:P,reload:xr(R),reloadAsync:xr(C),mutate:s,cancel:E}};const R2="blocklet-add-component-registry",T2="server-add-registry",I2=e=>`resource-${e}-add-registry`,{NODE_MODES:yo}=Cn,f1=({mode:e,previousMode:t}={})=>e===yo.SERVERLESS||t===yo.SERVERLESS;var i0={isInServerlessMode:f1},h1=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,a,c;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;for(a of t.entries())if(!e(a[1],r.get(a[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(t[a]!==r[a])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(c=Object.keys(t),n=c.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,c[a]))return!1;for(a=n;a--!==0;){var u=c[a];if(!(u==="_owner"&&t.$$typeof)&&!e(t[u],r[u]))return!1}return!0}return t!==t&&r!==r};const go=ar(h1);var d1=x1;function Zt(e){return e instanceof ji?ji.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function x1(e){if(e=e||{},e.circles)return y1(e);const t=new Map;if(t.set(Date,u=>new Date(u)),t.set(Map,(u,o)=>new Map(n(Array.from(u),o))),t.set(Set,(u,o)=>new Set(n(Array.from(u),o))),e.constructorHandlers)for(const u of e.constructorHandlers)t.set(u[0],u[1]);let r=null;return e.proto?c:a;function n(u,o){const d=Object.keys(u),y=new Array(d.length);for(let h=0;h<d.length;h++){const i=d[h],p=u[i];typeof p!="object"||p===null?y[i]=p:p.constructor!==Object&&(r=t.get(p.constructor))?y[i]=r(p,o):ArrayBuffer.isView(p)?y[i]=Zt(p):y[i]=o(p)}return y}function a(u){if(typeof u!="object"||u===null)return u;if(Array.isArray(u))return n(u,a);if(u.constructor!==Object&&(r=t.get(u.constructor)))return r(u,a);const o={};for(const d in u){if(Object.hasOwnProperty.call(u,d)===!1)continue;const y=u[d];typeof y!="object"||y===null?o[d]=y:y.constructor!==Object&&(r=t.get(y.constructor))?o[d]=r(y,a):ArrayBuffer.isView(y)?o[d]=Zt(y):o[d]=a(y)}return o}function c(u){if(typeof u!="object"||u===null)return u;if(Array.isArray(u))return n(u,c);if(u.constructor!==Object&&(r=t.get(u.constructor)))return r(u,c);const o={};for(const d in u){const y=u[d];typeof y!="object"||y===null?o[d]=y:y.constructor!==Object&&(r=t.get(y.constructor))?o[d]=r(y,c):ArrayBuffer.isView(y)?o[d]=Zt(y):o[d]=c(y)}return o}}function y1(e){const t=[],r=[],n=new Map;if(n.set(Date,d=>new Date(d)),n.set(Map,(d,y)=>new Map(c(Array.from(d),y))),n.set(Set,(d,y)=>new Set(c(Array.from(d),y))),e.constructorHandlers)for(const d of e.constructorHandlers)n.set(d[0],d[1]);let a=null;return e.proto?o:u;function c(d,y){const h=Object.keys(d),i=new Array(h.length);for(let p=0;p<h.length;p++){const m=h[p],l=d[m];if(typeof l!="object"||l===null)i[m]=l;else if(l.constructor!==Object&&(a=n.get(l.constructor)))i[m]=a(l,y);else if(ArrayBuffer.isView(l))i[m]=Zt(l);else{const s=t.indexOf(l);s!==-1?i[m]=r[s]:i[m]=y(l)}}return i}function u(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return c(d,u);if(d.constructor!==Object&&(a=n.get(d.constructor)))return a(d,u);const y={};t.push(d),r.push(y);for(const h in d){if(Object.hasOwnProperty.call(d,h)===!1)continue;const i=d[h];if(typeof i!="object"||i===null)y[h]=i;else if(i.constructor!==Object&&(a=n.get(i.constructor)))y[h]=a(i,u);else if(ArrayBuffer.isView(i))y[h]=Zt(i);else{const p=t.indexOf(i);p!==-1?y[h]=r[p]:y[h]=u(i)}}return t.pop(),r.pop(),y}function o(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return c(d,o);if(d.constructor!==Object&&(a=n.get(d.constructor)))return a(d,o);const y={};t.push(d),r.push(y);for(const h in d){const i=d[h];if(typeof i!="object"||i===null)y[h]=i;else if(i.constructor!==Object&&(a=n.get(i.constructor)))y[h]=a(i,o);else if(ArrayBuffer.isView(i))y[h]=Zt(i);else{const p=t.indexOf(i);p!==-1?y[h]=r[p]:y[h]=o(i)}}return t.pop(),r.pop(),y}}var g1=d1();const ko=ar(g1);function Pi(){return Pi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pi.apply(this,arguments)}function k1(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,c;for(c=0;c<n.length;c++)a=n[c],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function ta(e,t){return t={exports:{}},e(t,t.exports),t.exports}/** @license React v16.13.1
1
+ import{aK as kr,d2 as Kl,d3 as Wl,r as I,eF as Xl,d9 as Yl,aJ as Ql,j as _,aM as Zl,cO as Jl,da as ec,aN as tc,aF as rc,aG as nc,aI as ic,_ as Mt,Q as Xi,eG as ac,eH as oc,k as xr,eI as sc,eJ as lc,c2 as cc,df as pn,bz as fn,F as Cn,b7 as ar,eK as ji,eE as uc,bD as mc,P as $,bt as Ie,X as St,Y as Et,a1 as qe,m as Je,at as Vn,Z as $e,B as re,a7 as ht,h as Fs,cv as Me,D as Ns,T as Le,u as et,$ as Qr,bE as On,aP as Zr,E as pc,e as fc,aC as hc,eL as dc,ct as Ls,eM as xc,eN as yc,eO as gc,eP as Fn,cu as ye,eQ as kc,a9 as ot,eR as vc,eS as bc,J as Ms,aZ as Sc,bk as Ec,bs as so,eT as wc,c3 as Oi,c as Nn,eU as _c,c0 as Ac,s as Yi,eV as Dc,aY as Ln,C as jc,cq as Oc,eW as qs,aT as Us,eX as Pc,eY as Bc,ay as lo,ai as Mn,ag as zs,a8 as Hs,O as Ks,eZ as Gc,b as Ws,cn as $c,dh as Rc,l as Tc,e_ as Ic,bq as Xs,bf as Ys,bG as yr,cm as Cc,bm as Vc,dx as Fc,ah as Nc,bn as Lc,e$ as Mc,f0 as qc,dg as Uc,ab as zc,A as Hc,f1 as Kc,f2 as Wc,f3 as Xc,bx as Yc,cw as Qc,f4 as Zc,f5 as Jc,f6 as eu,f7 as hn,f8 as co,f9 as tu}from"./index-Bjf6Qdid.js";import{l as ru}from"./lottie-D-0y0bjd.js";import{u as nu,a as iu,L as au,C as ou,S as su}from"./index-BJalpuBM.js";import{L as uo}from"./launch-result-message-B4GHaPTO.js";import{P as Qs}from"./page-header-CaBVBbM_.js";import{u as Zs}from"./uniqBy-B-B5GbKo.js";import{R as pi}from"./logo-uploader-DSVH1NS6.js";import{S as lu}from"./index-DLyTsUFY.js";import{s as Js,h as cu,w as uu,f as mu,a as pu,b as fu,c as hu,M as du}from"./index-Bj_zBfXt.js";import{j as mo}from"./url-join-DxMZuH7a.js";import{F as xu,C as yu,S as gu}from"./FormControlLabel-DJAqgLGE.js";import{p as ku}from"./index-Dsb2xjqK.js";import{I as po}from"./index-_qSOGZvF.js";import{u as vu}from"./session-WfO9rlPi.js";import{W as bu}from"./did-address-5rmeRrux.js";import{T as Qi}from"./TextField-Bc5irjLS.js";import{S as Su,a as Eu,b as wu}from"./Stepper-DUoEJ9pB.js";import{D as _u,f as e0}from"./format-error-B_0jV3Iv.js";import{A as t0}from"./Alert-smpImqp0.js";import{a as fo}from"./api-B0Ezcc20.js";import{m as Au,S as Du,A as ju}from"./item-BkNGiSLA.js";import{L as Ou}from"./MoreVert-D0MHc_oA.js";import{L as Pu,a as Bu}from"./ListItemText-54aRex6i.js";import{v as Gu}from"./util-CTNXgq32.js";import{u as r0,C as $u,D as Ru,a as Tu}from"./connect-to-DNz_WDCc.js";import{C as Iu}from"./content-layout-Cpg-pb6u.js";import{d as Cu}from"./ArrowDropDown-CSr70fBb.js";import{_ as Vu}from"./useLocalStorage-B61hus9l.js";import{E as Zi}from"./fallback-DeSV2xkv.js";import{E as Fu}from"./index-cmxabTfW.js";import{d as Nu}from"./Search-BkeqStVj.js";import{S as Lu}from"./index-BpIS7xUe.js";import{O as Mu}from"./Select-B2Prj2qE.js";import{H as ho}from"./Hidden-Cq8zZFLO.js";import{I as xo}from"./InputAdornment-BkdyuJyy.js";import{_ as qu,k as Uu,B as zu}from"./preact.module-DJUF--8d.js";import{L as Hu}from"./Link-CFWQfHB5.js";const Ku=(e,t)=>e.filter(r=>t.includes(r)),or=(e,t,r)=>{const n=e.keys[0];Array.isArray(t)?t.forEach((a,c)=>{r((u,o)=>{c<=e.keys.length-1&&(c===0?Object.assign(u,o):u[e.up(e.keys[c])]=o)},a)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:Ku(e.keys,Object.keys(t))).forEach(c=>{if(e.keys.indexOf(c)!==-1){const u=t[c];u!==void 0&&r((o,d)=>{n===c?Object.assign(o,d):o[e.up(c)]=d},u)}}):(typeof t=="number"||typeof t=="string")&&r((a,c)=>{Object.assign(a,c)},t)};function dt(e){return e?`Level${e}`:""}function Jr(e){return e.unstable_level>0&&e.container}function n0(e){return function(r){return`var(--Grid-${r}Spacing${dt(e.unstable_level)})`}}function Ji(e){return function(r){return e.unstable_level===0?`var(--Grid-${r}Spacing)`:`var(--Grid-${r}Spacing${dt(e.unstable_level-1)})`}}function ea(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${dt(e.unstable_level-1)})`}const Wu=({theme:e,ownerState:t})=>{const r=n0(t),n={};return or(e.breakpoints,t.gridSize,(a,c)=>{let u={};c===!0&&(u={flexBasis:0,flexGrow:1,maxWidth:"100%"}),c==="auto"&&(u={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof c=="number"&&(u={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${c} / ${ea(t)}${Jr(t)?` + ${r("column")}`:""})`}),a(n,u)}),n},Xu=({theme:e,ownerState:t})=>{const r={};return or(e.breakpoints,t.gridOffset,(n,a)=>{let c={};a==="auto"&&(c={marginLeft:"auto"}),typeof a=="number"&&(c={marginLeft:a===0?"0px":`calc(100% * ${a} / ${ea(t)})`}),n(r,c)}),r},Yu=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=Jr(t)?{[`--Grid-columns${dt(t.unstable_level)}`]:ea(t)}:{"--Grid-columns":12};return or(e.breakpoints,t.columns,(n,a)=>{n(r,{[`--Grid-columns${dt(t.unstable_level)}`]:a})}),r},Qu=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=Ji(t),n=Jr(t)?{[`--Grid-rowSpacing${dt(t.unstable_level)}`]:r("row")}:{};return or(e.breakpoints,t.rowSpacing,(a,c)=>{var u;a(n,{[`--Grid-rowSpacing${dt(t.unstable_level)}`]:typeof c=="string"?c:(u=e.spacing)==null?void 0:u.call(e,c)})}),n},Zu=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=Ji(t),n=Jr(t)?{[`--Grid-columnSpacing${dt(t.unstable_level)}`]:r("column")}:{};return or(e.breakpoints,t.columnSpacing,(a,c)=>{var u;a(n,{[`--Grid-columnSpacing${dt(t.unstable_level)}`]:typeof c=="string"?c:(u=e.spacing)==null?void 0:u.call(e,c)})}),n},Ju=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return or(e.breakpoints,t.direction,(n,a)=>{n(r,{flexDirection:a})}),r},e1=({ownerState:e})=>{const t=n0(e),r=Ji(e);return kr({minWidth:0,boxSizing:"border-box"},e.container&&kr({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||Jr(e))&&kr({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},t1=e=>{const t=[];return Object.entries(e).forEach(([r,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${r}-${String(n)}`)}),t},r1=(e,t="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const n=[];return Object.entries(e).forEach(([a,c])=>{r(c)&&n.push(`spacing-${a}-${String(c)}`)}),n}return[]},n1=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`],i1=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],a1=Kl(),o1=Wl("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function s1(e){return ec({props:e,name:"MuiGrid",defaultTheme:a1})}function l1(e={}){const{createStyledComponent:t=o1,useThemeProps:r=s1,componentName:n="MuiGrid"}=e,a=I.createContext(void 0),c=(d,y)=>{const{container:h,direction:i,spacing:p,wrap:m,gridSize:l}=d,s={root:["root",h&&"container",m!=="wrap"&&`wrap-xs-${String(m)}`,...n1(i),...t1(l),...h?r1(p,y.breakpoints.keys[0]):[]]};return tc(s,g=>rc(n,g),{})},u=t(Yu,Zu,Qu,Wu,Ju,e1,Xu),o=I.forwardRef(function(y,h){var i,p,m,l,s,g,f,x;const k=Xl(),S=r(y),b=Yl(S),A=I.useContext(a),{className:D,children:v,columns:E=12,container:w=!1,component:P="div",direction:R="row",wrap:C="wrap",spacing:M=0,rowSpacing:F=M,columnSpacing:U=M,disableEqualOverflow:K,unstable_level:T=0}=b,L=Ql(b,i1);let z=K;T&&K!==void 0&&(z=y.disableEqualOverflow);const Q={},Z={},le={};Object.entries(L).forEach(([ce,ae])=>{k.breakpoints.values[ce]!==void 0?Q[ce]=ae:k.breakpoints.values[ce.replace("Offset","")]!==void 0?Z[ce.replace("Offset","")]=ae:le[ce]=ae});const pe=(i=y.columns)!=null?i:T?void 0:E,Ee=(p=y.spacing)!=null?p:T?void 0:M,te=(m=(l=y.rowSpacing)!=null?l:y.spacing)!=null?m:T?void 0:F,je=(s=(g=y.columnSpacing)!=null?g:y.spacing)!=null?s:T?void 0:U,ve=kr({},b,{level:T,columns:pe,container:w,direction:R,wrap:C,spacing:Ee,rowSpacing:te,columnSpacing:je,gridSize:Q,gridOffset:Z,disableEqualOverflow:(f=(x=z)!=null?x:A)!=null?f:!1,parentDisableEqualOverflow:A}),he=c(ve,k);let oe=_.jsx(u,kr({ref:h,as:P,ownerState:ve,className:Zl(he.root,D)},le,{children:I.Children.map(v,ce=>{if(I.isValidElement(ce)&&Jl(ce,["Grid"])){var ae;return I.cloneElement(ce,{unstable_level:(ae=ce.props.unstable_level)!=null?ae:T+1})}return ce})}));return z!==void 0&&z!==(A??!1)&&(oe=_.jsx(a.Provider,{value:z,children:oe})),oe});return o.muiName="Grid",o}const fi=l1({createStyledComponent:nc("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>ic({props:e,name:"MuiGrid2"})});var c1=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},u1=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},m1=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},p1=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,a=t.threshold,c=a===void 0?100:a,u=t.reloadDeps,o=u===void 0?[]:u,d=t.manual,y=t.onBefore,h=t.onSuccess,i=t.onError,p=t.onFinally,m=Mt(I.useState(),2),l=m[0],s=m[1],g=Mt(I.useState(!1),2),f=g[0],x=g[1],k=I.useMemo(function(){return n?n(l):!1},[l]),S=Xi(function(F){return ac(void 0,void 0,void 0,function(){var U,K,T;return oc(this,function(L){switch(L.label){case 0:return[4,e(F)];case 1:return U=L.sent(),s(F?fn(fn({},U),{list:pn(pn([],Mt((T=F.list)!==null&&T!==void 0?T:[]),!1),Mt(U.list),!1)}):fn(fn({},U),{list:pn([],Mt((K=U.list)!==null&&K!==void 0?K:[]),!1)})),[2,U]}})})},{manual:d,onFinally:function(F,U,K){x(!1),p==null||p(U,K)},onBefore:function(){return y==null?void 0:y()},onSuccess:function(F){setTimeout(function(){M()}),h==null||h(F)},onError:function(F){return i==null?void 0:i(F)}}),b=S.loading,A=S.error,D=S.run,v=S.runAsync,E=S.cancel,w=xr(function(){k||(x(!0),D(l))}),P=xr(function(){return k?Promise.reject():(x(!0),v(l))}),R=function(){return x(!1),D()},C=function(){return x(!1),v()},M=function(){var F=sc(r);if(F){F=F===document?document.documentElement:F;var U=c1(F),K=u1(F),T=m1(F);K-U<=T+c&&w()}};return lc("scroll",function(){b||f||M()},{target:r}),cc(function(){D()},pn([],Mt(o),!1)),{data:l,loading:!f&&b,error:A,loadingMore:f,noMore:k,loadMore:w,loadMoreAsync:P,reload:xr(R),reloadAsync:xr(C),mutate:s,cancel:E}};const R2="blocklet-add-component-registry",T2="server-add-registry",I2=e=>`resource-${e}-add-registry`,{NODE_MODES:yo}=Cn,f1=({mode:e,previousMode:t}={})=>e===yo.SERVERLESS||t===yo.SERVERLESS;var i0={isInServerlessMode:f1},h1=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,a,c;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;for(a of t.entries())if(!e(a[1],r.get(a[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(t[a]!==r[a])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(c=Object.keys(t),n=c.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,c[a]))return!1;for(a=n;a--!==0;){var u=c[a];if(!(u==="_owner"&&t.$$typeof)&&!e(t[u],r[u]))return!1}return!0}return t!==t&&r!==r};const go=ar(h1);var d1=x1;function Zt(e){return e instanceof ji?ji.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function x1(e){if(e=e||{},e.circles)return y1(e);const t=new Map;if(t.set(Date,u=>new Date(u)),t.set(Map,(u,o)=>new Map(n(Array.from(u),o))),t.set(Set,(u,o)=>new Set(n(Array.from(u),o))),e.constructorHandlers)for(const u of e.constructorHandlers)t.set(u[0],u[1]);let r=null;return e.proto?c:a;function n(u,o){const d=Object.keys(u),y=new Array(d.length);for(let h=0;h<d.length;h++){const i=d[h],p=u[i];typeof p!="object"||p===null?y[i]=p:p.constructor!==Object&&(r=t.get(p.constructor))?y[i]=r(p,o):ArrayBuffer.isView(p)?y[i]=Zt(p):y[i]=o(p)}return y}function a(u){if(typeof u!="object"||u===null)return u;if(Array.isArray(u))return n(u,a);if(u.constructor!==Object&&(r=t.get(u.constructor)))return r(u,a);const o={};for(const d in u){if(Object.hasOwnProperty.call(u,d)===!1)continue;const y=u[d];typeof y!="object"||y===null?o[d]=y:y.constructor!==Object&&(r=t.get(y.constructor))?o[d]=r(y,a):ArrayBuffer.isView(y)?o[d]=Zt(y):o[d]=a(y)}return o}function c(u){if(typeof u!="object"||u===null)return u;if(Array.isArray(u))return n(u,c);if(u.constructor!==Object&&(r=t.get(u.constructor)))return r(u,c);const o={};for(const d in u){const y=u[d];typeof y!="object"||y===null?o[d]=y:y.constructor!==Object&&(r=t.get(y.constructor))?o[d]=r(y,c):ArrayBuffer.isView(y)?o[d]=Zt(y):o[d]=c(y)}return o}}function y1(e){const t=[],r=[],n=new Map;if(n.set(Date,d=>new Date(d)),n.set(Map,(d,y)=>new Map(c(Array.from(d),y))),n.set(Set,(d,y)=>new Set(c(Array.from(d),y))),e.constructorHandlers)for(const d of e.constructorHandlers)n.set(d[0],d[1]);let a=null;return e.proto?o:u;function c(d,y){const h=Object.keys(d),i=new Array(h.length);for(let p=0;p<h.length;p++){const m=h[p],l=d[m];if(typeof l!="object"||l===null)i[m]=l;else if(l.constructor!==Object&&(a=n.get(l.constructor)))i[m]=a(l,y);else if(ArrayBuffer.isView(l))i[m]=Zt(l);else{const s=t.indexOf(l);s!==-1?i[m]=r[s]:i[m]=y(l)}}return i}function u(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return c(d,u);if(d.constructor!==Object&&(a=n.get(d.constructor)))return a(d,u);const y={};t.push(d),r.push(y);for(const h in d){if(Object.hasOwnProperty.call(d,h)===!1)continue;const i=d[h];if(typeof i!="object"||i===null)y[h]=i;else if(i.constructor!==Object&&(a=n.get(i.constructor)))y[h]=a(i,u);else if(ArrayBuffer.isView(i))y[h]=Zt(i);else{const p=t.indexOf(i);p!==-1?y[h]=r[p]:y[h]=u(i)}}return t.pop(),r.pop(),y}function o(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return c(d,o);if(d.constructor!==Object&&(a=n.get(d.constructor)))return a(d,o);const y={};t.push(d),r.push(y);for(const h in d){const i=d[h];if(typeof i!="object"||i===null)y[h]=i;else if(i.constructor!==Object&&(a=n.get(i.constructor)))y[h]=a(i,o);else if(ArrayBuffer.isView(i))y[h]=Zt(i);else{const p=t.indexOf(i);p!==-1?y[h]=r[p]:y[h]=o(i)}}return t.pop(),r.pop(),y}}var g1=d1();const ko=ar(g1);function Pi(){return Pi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pi.apply(this,arguments)}function k1(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,c;for(c=0;c<n.length;c++)a=n[c],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function ta(e,t){return t={exports:{}},e(t,t.exports),t.exports}/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -1 +1 @@
1
- import{u as B,aj as L,bx as W,$ as O,r,c as A,c3 as T,bw as _,l as h,k as $,c4 as F,j as w,at as K}from"./index-Bdg2hH7J.js";import{A as z,S as G}from"./add-component-core-HIykDunt.js";import"./lottie-7e9js8BB.js";import"./index-255o-u6L.js";import"./spaces-Cz9_Xdg_.js";import"./index--iA86Fqj.js";import"./api-D5rmifNl.js";import"./url-join-Cc5MbaZB.js";import"./Skeleton-D1F5dy2x.js";import"./Hidden-BYIvIL0k.js";import"./launch-result-message-DlfUpqsM.js";import"./Close-qW-xij4G.js";import"./page-header-Dlu4P1xk.js";import"./uniqBy-Blkjf7ps.js";import"./logo-uploader-ClUYYxL1.js";import"./index-_F8kdc8Q.js";import"./index-DTg4Ig3M.js";import"./EditIcon-CqMuLEHT.js";import"./Done-DCkMGid3.js";import"./Google-BL_kfN9f.js";import"./TextField-BYfKGYpN.js";import"./FormControl-DE9N6Db0.js";import"./useFormControl-CDmRrmKw.js";import"./InputLabel-D2kHO3Su.js";import"./Select-DxpmtgW4.js";import"./index-cVr26mKy.js";import"./FormControlLabel-DGbEY6m8.js";import"./index-BA1LIiSA.js";import"./index-ZShT0NT3.js";import"./session-CBJgIJsY.js";import"./did-address-B8vaNsMa.js";import"./Link-NMapyzp6.js";import"./Stepper-DGOl59kQ.js";import"./format-error-Blif5aTO.js";import"./Alert-bzh-1cuw.js";import"./useSlot-DxWJyNOJ.js";import"./item-DxzYKgGj.js";import"./Add-CVYAN2n2.js";import"./MoreVert-VUWyXDsQ.js";import"./Launch-Ddq1J5R1.js";import"./DeleteOutline-BBqJ5_Hu.js";import"./click-to-copy-D14O9X1o.js";import"./shorten-label-CeQzn9-u.js";import"./confirm-CnJhc68Q.js";import"./Avatar-CDgX4gdS.js";import"./ButtonGroup-XCe_4Dd6.js";import"./jss-plugin-props-sort.esm-D8X7o2pr.js";import"./toPropertyKey-PLuKRk1e.js";import"./ListItemText-OVWUZ8Yw.js";import"./util-C2KlfrNA.js";import"./connect-to-NQzylv_u.js";import"./use-blocklet-info-for-connect-did-spaces-BNPOv7wG.js";import"./CloseOutlined-WD0GWqZM.js";import"./index-wK8MJeLI.js";import"./ExpandMore-Br1x9msZ.js";import"./content-layout-CvCSD7Cn.js";import"./ArrowDropDown-B3gw7vQE.js";import"./useLocalStorage-DvZZwTDC.js";import"./fallback-l6x8Ufow.js";import"./index-Ci6IWDWf.js";import"./Search-YlhHuO6O.js";import"./index-D3CByOWX.js";import"./InputAdornment-tlUB0OtI.js";import"./preact.module-DJUF--8d.js";function to(){var u;const{t:g}=B(),{blocklet:a}=L(),{componentDid:s}=W(),f=O(t=>t.breakpoints.down("md")),e=new URL(window.location.href),C=e.searchParams.get("mode")==="dialog",p=e.searchParams.get("resourceType")||"",c=e.searchParams.get("resourceDid")||s,R=e.searchParams.get("store")||"",S=e.searchParams.get("showFromUrl")!=="false",y=e.searchParams.get("showResourcesSwitch")!=="false",E=e.searchParams.get("enableRunBackground")!=="false",P=e.searchParams.get("showCategory")!=="false",n=(u=a==null?void 0:a.meta)==null?void 0:u.did,m=R.split(",").filter(Boolean).map(t=>{try{return new URL(t.startsWith("http")?t:`https://${t}`).origin}catch(o){return console.error(o),null}}).filter(Boolean),[b,D]=r.useState(m.map(t=>({url:t,name:t.replace("https://","")}))),[x,U]=r.useState(null),[j,M]=r.useState("");r.useEffect(()=>{(async()=>{try{const t=await Promise.all(m.map(async o=>{const i=A(o,"/api/store.json"),{data:v}=await T.get(i);return{url:o,name:v.name}}));D(t||[])}catch(t){console.error(t)}})()},[m.join(",")]);const k=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:s},"*")};r.useEffect(()=>{const t=_();return n&&t.connect(),()=>{n&&t.isConnected()&&t.disconnect()}},[n]),h(()=>{window.parent.postMessage({event:"resourceDialog.loaded",componentDid:s},"*")});const l=$(t=>{var o,i;((o=t.data)==null?void 0:o.event)==="resourceDialog.select"&&((i=t.data)==null?void 0:i.componentDid)===s&&(U(t.data.data),M(t.data.storeUrl))});h(()=>{window.addEventListener("message",l)}),F(()=>{window.removeEventListener("message",l)});const d=({inDialog:t=!0}={})=>w.jsx(z,{stores:b,selectedMeta:x,storeUrl:j,resourceType:p,resourceDid:c,mode:"embed",inDialog:t,storageKey:G(`${p}+${c}`),showResourcesSwitch:y,showFromUrl:S,enableRunBackground:E,showCategory:P});return C?w.jsx(K,{className:"resource-dialog",title:g("blocklet.publish.addResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:f?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:(t,o)=>{o!=="backdropClick"&&k()},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:d()}):d({inDialog:!1})}export{to as default};
1
+ import{u as B,aj as L,bx as W,$ as O,r,c as A,c3 as T,bw as _,l as h,k as $,c4 as F,j as w,at as K}from"./index-Bjf6Qdid.js";import{A as z,S as G}from"./add-component-core-Dk4Djy0q.js";import"./lottie-D-0y0bjd.js";import"./index-BJalpuBM.js";import"./spaces-BCq3rAVa.js";import"./index-mLiByM5-.js";import"./api-B0Ezcc20.js";import"./url-join-DxMZuH7a.js";import"./Skeleton-lGeaUybJ.js";import"./Hidden-Cq8zZFLO.js";import"./launch-result-message-B4GHaPTO.js";import"./Close-CbUjGQb5.js";import"./page-header-CaBVBbM_.js";import"./uniqBy-B-B5GbKo.js";import"./logo-uploader-DSVH1NS6.js";import"./index-D8LJCIGN.js";import"./index-DLyTsUFY.js";import"./EditIcon-Dzqx6EGV.js";import"./Done-Bbviheoa.js";import"./Google-CgL8P0c3.js";import"./TextField-Bc5irjLS.js";import"./FormControl-Us_liKuz.js";import"./useFormControl-CLJPjR4P.js";import"./InputLabel--WV9lBJk.js";import"./Select-B2Prj2qE.js";import"./index-Bj_zBfXt.js";import"./FormControlLabel-DJAqgLGE.js";import"./index-Dsb2xjqK.js";import"./index-_qSOGZvF.js";import"./session-WfO9rlPi.js";import"./did-address-5rmeRrux.js";import"./Link-CFWQfHB5.js";import"./Stepper-DUoEJ9pB.js";import"./format-error-B_0jV3Iv.js";import"./Alert-smpImqp0.js";import"./useSlot-BdDJZvLo.js";import"./item-BkNGiSLA.js";import"./Add-BQ57PY_a.js";import"./MoreVert-D0MHc_oA.js";import"./Launch-CSUzNHYL.js";import"./DeleteOutline-BtczblDR.js";import"./click-to-copy-C4ONmU_N.js";import"./shorten-label-uDRMuqOz.js";import"./confirm-D8z1ysLZ.js";import"./Avatar-C9lcmTAE.js";import"./ButtonGroup-Cj4y31z5.js";import"./jss-plugin-props-sort.esm-BalOwz5A.js";import"./toPropertyKey-PLuKRk1e.js";import"./ListItemText-54aRex6i.js";import"./util-CTNXgq32.js";import"./connect-to-DNz_WDCc.js";import"./use-blocklet-info-for-connect-did-spaces-l_qg8Xo8.js";import"./CloseOutlined-CA8ATDOK.js";import"./index-C0TcPNfP.js";import"./ExpandMore-BLPbGEUk.js";import"./content-layout-Cpg-pb6u.js";import"./ArrowDropDown-CSr70fBb.js";import"./useLocalStorage-B61hus9l.js";import"./fallback-DeSV2xkv.js";import"./index-cmxabTfW.js";import"./Search-BkeqStVj.js";import"./index-BpIS7xUe.js";import"./InputAdornment-BkdyuJyy.js";import"./preact.module-DJUF--8d.js";function to(){var u;const{t:g}=B(),{blocklet:a}=L(),{componentDid:s}=W(),f=O(t=>t.breakpoints.down("md")),e=new URL(window.location.href),C=e.searchParams.get("mode")==="dialog",p=e.searchParams.get("resourceType")||"",c=e.searchParams.get("resourceDid")||s,R=e.searchParams.get("store")||"",S=e.searchParams.get("showFromUrl")!=="false",y=e.searchParams.get("showResourcesSwitch")!=="false",E=e.searchParams.get("enableRunBackground")!=="false",P=e.searchParams.get("showCategory")!=="false",n=(u=a==null?void 0:a.meta)==null?void 0:u.did,m=R.split(",").filter(Boolean).map(t=>{try{return new URL(t.startsWith("http")?t:`https://${t}`).origin}catch(o){return console.error(o),null}}).filter(Boolean),[b,D]=r.useState(m.map(t=>({url:t,name:t.replace("https://","")}))),[x,U]=r.useState(null),[j,M]=r.useState("");r.useEffect(()=>{(async()=>{try{const t=await Promise.all(m.map(async o=>{const i=A(o,"/api/store.json"),{data:v}=await T.get(i);return{url:o,name:v.name}}));D(t||[])}catch(t){console.error(t)}})()},[m.join(",")]);const k=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:s},"*")};r.useEffect(()=>{const t=_();return n&&t.connect(),()=>{n&&t.isConnected()&&t.disconnect()}},[n]),h(()=>{window.parent.postMessage({event:"resourceDialog.loaded",componentDid:s},"*")});const l=$(t=>{var o,i;((o=t.data)==null?void 0:o.event)==="resourceDialog.select"&&((i=t.data)==null?void 0:i.componentDid)===s&&(U(t.data.data),M(t.data.storeUrl))});h(()=>{window.addEventListener("message",l)}),F(()=>{window.removeEventListener("message",l)});const d=({inDialog:t=!0}={})=>w.jsx(z,{stores:b,selectedMeta:x,storeUrl:j,resourceType:p,resourceDid:c,mode:"embed",inDialog:t,storageKey:G(`${p}+${c}`),showResourcesSwitch:y,showFromUrl:S,enableRunBackground:E,showCategory:P});return C?w.jsx(K,{className:"resource-dialog",title:g("blocklet.publish.addResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:f?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:(t,o)=>{o!=="backdropClick"&&k()},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:d()}):d({inDialog:!1})}export{to as default};
@@ -1,4 +1,4 @@
1
- import{r as s,j as a,a0 as j,aB as P,aC as O,aD as z,P as n,Z as _}from"./index-Bdg2hH7J.js";import{L as M}from"./selector-YK8Xf2Rq.js";import{d as k}from"./QuestionMarkCircle-B9pyXZy7.js";var c={};Object.defineProperty(c,"__esModule",{value:!0});var m=c.default=void 0;S(s);var p=a;function S(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,r)}return o}function f(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?d(Object(o),!0).forEach(function(r){C(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function C(e,t,o){return(t=H(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function H(e){var t=A(e,"string");return typeof t=="symbol"?t:t+""}function A(e,t){if(typeof e!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var r=o.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=function(t){return(0,p.jsx)("svg",f(f({},t),{},{children:(0,p.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.606 17.32a7.933 7.933 0 0 1-.581-1.18c-.165-.411-.312-.86-.44-1.339a7.639 7.639 0 0 0-1.586 1.054 7.69 7.69 0 0 0 2.607 1.465zm.657-1.675c-.16-.4-.305-.848-.429-1.335A7.643 7.643 0 0 1 10 14h.002c.734 0 1.463.104 2.165.31-.124.487-.268.935-.428 1.335-.283.707-.604 1.235-.925 1.575-.32.339-.595.447-.813.447-.218 0-.493-.108-.813-.447-.322-.34-.642-.867-.925-1.575zM10 12.667a8.976 8.976 0 0 1 2.436.334c.116-.727.193-1.511.22-2.334H7.344c.027.823.103 1.607.22 2.334A8.972 8.972 0 0 1 10 12.667zM7.345 9.333c.027-.823.103-1.607.22-2.334.791.223 1.61.335 2.436.334A8.974 8.974 0 0 0 12.437 7c.116.727.193 1.511.22 2.334H7.344zm6.646 1.334c-.03.982-.127 1.925-.28 2.797.81.367 1.56.852 2.227 1.439a7.666 7.666 0 0 0 1.734-4.236h-3.681zm3.681-1.334H13.99a19.718 19.718 0 0 0-.28-2.798 8.975 8.975 0 0 0 2.228-1.438 7.665 7.665 0 0 1 1.734 4.236zm1.329.669A9 9 0 1 1 1 10a9 9 0 0 1 18 0v.002zM2.329 9.333a7.665 7.665 0 0 1 1.734-4.236A8.974 8.974 0 0 0 6.29 6.535a19.74 19.74 0 0 0-.28 2.798H2.329zm0 1.334h3.682c.03.983.126 1.925.28 2.797a8.974 8.974 0 0 0-2.228 1.439 7.665 7.665 0 0 1-1.734-4.236zm10.648 5.473c.164-.411.312-.86.44-1.34.57.285 1.103.639 1.585 1.055a7.687 7.687 0 0 1-2.606 1.465c.216-.354.41-.751.58-1.18zm-.581-13.46c.967.316 1.85.819 2.606 1.465A7.64 7.64 0 0 1 13.417 5.2c-.128-.48-.276-.928-.44-1.34a7.925 7.925 0 0 0-.581-1.18zm-.657 1.675c.16.4.304.848.428 1.335a7.64 7.64 0 0 1-2.165.31H10a7.64 7.64 0 0 1-2.166-.31c.124-.487.268-.935.429-1.335.283-.708.603-1.235.925-1.575.32-.339.595-.447.813-.447.218 0 .492.108.813.447.321.34.642.867.925 1.575zM7.025 3.86c-.165.411-.312.86-.44 1.34a7.64 7.64 0 0 1-1.586-1.055A7.688 7.688 0 0 1 7.606 2.68c-.216.354-.41.751-.581 1.18z",fill:"currentColor"})}))};l.defaultProps={width:"21",height:"20",viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg"};l.displayName="globe";m=c.default=l;function b({SessionContext:e,extraItems:t,showLocale:o,showHelper:r,showSessionManager:i,sessionManagerProps:w}){const{session:h}=s.useContext(e),{locale:g}=s.useContext(j),y=P(),v=()=>{if(y.pathname.indexOf("/store")>-1){window.open("https://www.arcblock.io/content/docs/createblocklet","_blank");return}window.open("https://www.arcblock.io/content/docs/blocklet-developer","_blank")};return a.jsxs(D,{children:[t.map((u,x)=>s.cloneElement(u,{key:x})),o&&a.jsx(M,{"data-cy":"locale-addon",icon:m,size:23,showText:!1,className:"locale-addon"}),r&&a.jsx(O,{onClick:v,children:a.jsx(k,{})}),i&&a.jsx(z,{locale:g,session:h,size:24,showRole:!0,...w,showManageBlocklet:!1})]})}b.propTypes={SessionContext:n.object.isRequired,webWalletUrl:n.string,extraItems:n.array,showLocale:n.bool,showSessionManager:n.bool,showHelper:n.bool,sessionManagerProps:n.object};b.defaultProps={webWalletUrl:"",extraItems:[],showLocale:!0,showSessionManager:!0,showHelper:!0,sessionManagerProps:{}};const D=_.div`
1
+ import{r as s,j as a,a0 as j,aB as P,aC as O,aD as z,P as n,Z as _}from"./index-Bjf6Qdid.js";import{L as M}from"./selector-DKnQRsyi.js";import{d as k}from"./QuestionMarkCircle-UwK_E8FG.js";var c={};Object.defineProperty(c,"__esModule",{value:!0});var m=c.default=void 0;S(s);var p=a;function S(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,r)}return o}function f(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?d(Object(o),!0).forEach(function(r){C(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function C(e,t,o){return(t=H(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function H(e){var t=A(e,"string");return typeof t=="symbol"?t:t+""}function A(e,t){if(typeof e!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var r=o.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=function(t){return(0,p.jsx)("svg",f(f({},t),{},{children:(0,p.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.606 17.32a7.933 7.933 0 0 1-.581-1.18c-.165-.411-.312-.86-.44-1.339a7.639 7.639 0 0 0-1.586 1.054 7.69 7.69 0 0 0 2.607 1.465zm.657-1.675c-.16-.4-.305-.848-.429-1.335A7.643 7.643 0 0 1 10 14h.002c.734 0 1.463.104 2.165.31-.124.487-.268.935-.428 1.335-.283.707-.604 1.235-.925 1.575-.32.339-.595.447-.813.447-.218 0-.493-.108-.813-.447-.322-.34-.642-.867-.925-1.575zM10 12.667a8.976 8.976 0 0 1 2.436.334c.116-.727.193-1.511.22-2.334H7.344c.027.823.103 1.607.22 2.334A8.972 8.972 0 0 1 10 12.667zM7.345 9.333c.027-.823.103-1.607.22-2.334.791.223 1.61.335 2.436.334A8.974 8.974 0 0 0 12.437 7c.116.727.193 1.511.22 2.334H7.344zm6.646 1.334c-.03.982-.127 1.925-.28 2.797.81.367 1.56.852 2.227 1.439a7.666 7.666 0 0 0 1.734-4.236h-3.681zm3.681-1.334H13.99a19.718 19.718 0 0 0-.28-2.798 8.975 8.975 0 0 0 2.228-1.438 7.665 7.665 0 0 1 1.734 4.236zm1.329.669A9 9 0 1 1 1 10a9 9 0 0 1 18 0v.002zM2.329 9.333a7.665 7.665 0 0 1 1.734-4.236A8.974 8.974 0 0 0 6.29 6.535a19.74 19.74 0 0 0-.28 2.798H2.329zm0 1.334h3.682c.03.983.126 1.925.28 2.797a8.974 8.974 0 0 0-2.228 1.439 7.665 7.665 0 0 1-1.734-4.236zm10.648 5.473c.164-.411.312-.86.44-1.34.57.285 1.103.639 1.585 1.055a7.687 7.687 0 0 1-2.606 1.465c.216-.354.41-.751.58-1.18zm-.581-13.46c.967.316 1.85.819 2.606 1.465A7.64 7.64 0 0 1 13.417 5.2c-.128-.48-.276-.928-.44-1.34a7.925 7.925 0 0 0-.581-1.18zm-.657 1.675c.16.4.304.848.428 1.335a7.64 7.64 0 0 1-2.165.31H10a7.64 7.64 0 0 1-2.166-.31c.124-.487.268-.935.429-1.335.283-.708.603-1.235.925-1.575.32-.339.595-.447.813-.447.218 0 .492.108.813.447.321.34.642.867.925 1.575zM7.025 3.86c-.165.411-.312.86-.44 1.34a7.64 7.64 0 0 1-1.586-1.055A7.688 7.688 0 0 1 7.606 2.68c-.216.354-.41.751-.581 1.18z",fill:"currentColor"})}))};l.defaultProps={width:"21",height:"20",viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg"};l.displayName="globe";m=c.default=l;function b({SessionContext:e,extraItems:t,showLocale:o,showHelper:r,showSessionManager:i,sessionManagerProps:w}){const{session:h}=s.useContext(e),{locale:g}=s.useContext(j),y=P(),v=()=>{if(y.pathname.indexOf("/store")>-1){window.open("https://www.arcblock.io/content/docs/createblocklet","_blank");return}window.open("https://www.arcblock.io/content/docs/blocklet-developer","_blank")};return a.jsxs(D,{children:[t.map((u,x)=>s.cloneElement(u,{key:x})),o&&a.jsx(M,{"data-cy":"locale-addon",icon:m,size:23,showText:!1,className:"locale-addon"}),r&&a.jsx(O,{onClick:v,children:a.jsx(k,{})}),i&&a.jsx(z,{locale:g,session:h,size:24,showRole:!0,...w,showManageBlocklet:!1})]})}b.propTypes={SessionContext:n.object.isRequired,webWalletUrl:n.string,extraItems:n.array,showLocale:n.bool,showSessionManager:n.bool,showHelper:n.bool,sessionManagerProps:n.object};b.defaultProps={webWalletUrl:"",extraItems:[],showLocale:!0,showSessionManager:!0,showHelper:!0,sessionManagerProps:{}};const D=_.div`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{P as d,h1 as _o,b7 as Vt,b6 as Bo,dO as Yo,X as Wo,Y as zo,j as p,eE as U,B as Fe,r as b,ah as Jt,aS as Wt,T as be,bk as _n,aC as Ye,aT as Dn,aJ as ie,aK as v,as as ze,aF as Me,aE as Se,aG as te,ai as rt,aM as Pe,aN as ve,d0 as We,cM as q,cI as Ho,cH as tt,cg as Ke,cD as nt,cU as Uo,gU as xn,cS as Ko,dk as Rt,$ as Bn,bm as qo,dx as Go,gT as Zo,cN as zt,b as ft,cT as Qo,bf as Jo,gS as Yn,eF as Wn,d1 as Xt,cu as en,W as we,h2 as Xo,Z as Ot,c6 as er,c8 as tr,O as nr,dg as or,bg as Ge,aP as rr,u as tn,m as sr,F as ar,c as ir,bj as wn,bi as lr,gD as Be,a0 as zn,gm as Hn,aY as cr,a7 as Ht,h3 as ur,aj as dr,E as hr}from"./index-Bdg2hH7J.js";import{T as fr}from"./index-DNlUUcTz.js";import{_ as mr}from"./permission-ClswWE64.js";import{I as pr}from"./iframe-CVrqJU8l.js";import{d as gr}from"./LaunchOutlined-ItmbAFN0.js";import{r as nn,b as Un,H as je,D as ot,B as Ae,y as yr,E as br,I as on,z as qt,M as gt,N as yt,A as Je,L as bt,e as Dt,J as St,K as kt,d as Dr,Q as Gt,G as mt,F as vn,R as rn,S as xr,Z as wr,T as vr,O as Pr,V as Mr,P as Sr,W as kr}from"./index-DiWAz-Pl.js";import{d as Cr,B as Tr}from"./ChevronRight-BQxGComx.js";import{_ as Kn}from"./toPropertyKey-PLuKRk1e.js";import{G as pe}from"./redux-_YFRGxHq.js";import{L as qn}from"./MoreVert-VUWyXDsQ.js";import{a as Ir}from"./ListItemText-OVWUZ8Yw.js";import{F as Pn}from"./FormControl-DE9N6Db0.js";import{S as Mn}from"./Select-DxpmtgW4.js";import{A as Vr}from"./Alert-bzh-1cuw.js";import{f as Rr}from"./format-error-Blif5aTO.js";import{u as ye}from"./useThemeProps-_7k5Wu1c.js";import{u as ge,r as Gn}from"./useSlotProps-C9cl4-TZ.js";import{T as Or}from"./TextField-BYfKGYpN.js";import{I as Zn}from"./InputAdornment-tlUB0OtI.js";import{p as Er}from"./dashboard-WQeB59iZ.js";import{D as Ar}from"./index-DT8M-stk.js";import"./useAsync-CbQ86h-f.js";import"./session-CBJgIJsY.js";import"./Avatar-CDgX4gdS.js";import"./useSlot-DxWJyNOJ.js";import"./useFormControl-CDmRrmKw.js";import"./InputLabel-D2kHO3Su.js";import"./useLocalStorage-DvZZwTDC.js";import"./confirm-CnJhc68Q.js";import"./Delete-CRriNkym.js";import"./PlayArrow-By-kmerY.js";import"./ButtonGroup-XCe_4Dd6.js";import"./RadioGroup-DiH-c46e.js";import"./FormControlLabel-DGbEY6m8.js";import"./FormGroup-n5wwFjBA.js";import"./index-ByD4ydGX.js";import"./Link-NMapyzp6.js";import"./useSetState-BpZL0m-H.js";import"./fallback-l6x8Ufow.js";import"./index-BS9TWd2p.js";import"./Toolbar-B_xj2T9O.js";import"./Hidden-BYIvIL0k.js";import"./index-BnWtXVAz.js";import"./selector-YK8Xf2Rq.js";import"./FilterList-CH2nj31H.js";import"./LastPage-bpkDUtUD.js";import"./index-cHjJj_dG.js";import"./Search-YlhHuO6O.js";import"./index-Ci6IWDWf.js";const Qn=d.oneOfType([d.func,d.object]);var Fr=_o;function Lr(e,t){var n=e.length;if(n)return t+=t<0?n:0,Fr(t,n)?e[t]:void 0}var jr=Lr,$r=jr,Nr=Bo,_r=Yo;function Br(e){return e=_r(e),Nr(function(t){return $r(t,e)})}var Yr=Br;const Wr=Vt(Yr);function Jn(e){nn(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Kn(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var a=Un(r);(n===void 0||n<a||isNaN(Number(a)))&&(n=a)}),n||new Date(NaN)}function Xn(e){nn(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Kn(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var a=Un(r);(n===void 0||n>a||isNaN(a.getDate()))&&(n=a)}),n||new Date(NaN)}function zr(e){return nn(1,arguments),je(e,Date.now())}var sn={},Hr=zo;Object.defineProperty(sn,"__esModule",{value:!0});var eo=sn.default=void 0,Ur=Hr(Wo()),Kr=p;eo=sn.default=(0,Ur.default)((0,Kr.jsx)("path",{d:"M16.01 11H4v2h12.01v3L20 12l-3.99-4z"}),"ArrowRightAlt");const qr=(e,t)=>Array.from({length:Math.ceil(e.length/t)},(n,r)=>e.slice(r*t,r*t+t)),Gr=(e,t)=>{const n=gt(bt(e),{locale:t}),r=yt(Dt(e),{locale:t}),a=[];for(let o=n;mt(o,r);)a.push(o),o=qt(o,1);return a},Zr=({startDate:e},t)=>e&&je(t,e),Qr=({endDate:e},t)=>e&&je(t,e),Jr=({startDate:e,endDate:t},n)=>e&&t&&(rn(n,{start:e,end:t})||je(n,e)||je(n,t)),Xr=({startDate:e,endDate:t})=>e&&t?je(e,t):!1,Sn=(e,t)=>{if(e){const n=e instanceof Date?e:yr(e);if(br(n))return n}return t},es=(e,t,n)=>{const{startDate:r,endDate:a}=e;if(r&&a){const o=Jn([r,t]),s=Xn([a,n]);return[o,on(o,s)?Ae(o,1):s]}return[r,a]},ts=(e,t)=>[{label:"Today",startDate:e,endDate:e},{label:"Yesterday",startDate:qt(e,-1),endDate:qt(e,-1)},{label:"This Week",startDate:gt(e,{locale:t}),endDate:yt(e,{locale:t})},{label:"Last Week",startDate:gt(Je(e,-1),{locale:t}),endDate:yt(Je(e,-1),{locale:t})},{label:"Last 7 Days",startDate:Je(e,-1),endDate:e},{label:"This Month",startDate:bt(e),endDate:Dt(e)},{label:"Last Month",startDate:bt(Ae(e,-1)),endDate:Dt(Ae(e,-1))},{label:"This Year",startDate:St(e),endDate:kt(e)},{label:"Last Year",startDate:St(ot(e,-1)),endDate:kt(ot(e,-1))}],ns=(e,t)=>{const n=Math.floor(t/2);return Array(t).fill(0).map((r,a)=>e.getFullYear()-n+a)},os=({date:e,setDate:t,nextDisabled:n,prevDisabled:r,onClickNext:a,onClickPrevious:o,locale:s})=>{const i=typeof s<"u"?[...Array(12).keys()].map(u=>{var y;return(y=s.localize)===null||y===void 0?void 0:y.month(u,{width:"abbreviated",context:"standalone"})}):["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],l=u=>{t(Mr(e,parseInt(u.target.value,10)))},c=u=>{t(Sr(e,parseInt(u.target.value,10)))};return U.createElement(pe,{container:!0,justifyContent:"space-between",alignItems:"center"},U.createElement(pe,{item:!0,sx:{padding:"5px"}},U.createElement(Ye,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:r,onClick:o},U.createElement(wr,{color:r?"disabled":"action"}))),U.createElement(pe,{item:!0},U.createElement(Pn,{variant:"standard"},U.createElement(Mn,{value:vr(e),onChange:l,MenuProps:{disablePortal:!0}},i.map((u,y)=>U.createElement(Dn,{key:u,value:y},u))))),U.createElement(pe,{item:!0},U.createElement(Pn,{variant:"standard"},U.createElement(Mn,{value:Pr(e),onChange:c,MenuProps:{disablePortal:!0}},ns(e,30).map(u=>U.createElement(Dn,{key:u,value:u},u))))),U.createElement(pe,{item:!0,sx:{padding:"5px"}},U.createElement(Ye,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:n,onClick:a},U.createElement(Cr,{color:n?"disabled":"action"}))))},rs=({startOfRange:e,endOfRange:t,disabled:n,highlighted:r,outlined:a,filled:o,onClick:s,onHover:i,value:l})=>U.createElement(Fe,{sx:{display:"flex",borderRadius:e?"50% 0 0 50%":t?"0 50% 50% 0":void 0,backgroundColor:c=>!n&&r?c.palette.primary.light:void 0}},U.createElement(Ye,{sx:Object.assign({height:"36px",width:"36px",padding:0,border:c=>!n&&a?`1px solid ${c.palette.primary.dark}`:void 0},!n&&o?{"&:hover":{backgroundColor:c=>c.palette.primary.dark},backgroundColor:c=>c.palette.primary.dark}:{}),disabled:n,onClick:s,onMouseOver:i},U.createElement(be,{sx:{lineHeight:1.6,color:c=>n?c.palette.text.secondary:o?c.palette.primary.contrastText:c.palette.text.primary},variant:"body2"},l)));var Ct;(function(e){e[e.Previous=-1]="Previous",e[e.Next=1]="Next"})(Ct||(Ct={}));const kn=e=>{var t;const{helpers:n,handlers:r,value:a,dateRange:o,marker:s,setValue:i,minDate:l,maxDate:c,locale:u}=e,y=((t=u==null?void 0:u.options)===null||t===void 0?void 0:t.weekStartsOn)||0,D=typeof u<"u"?[...Array(7).keys()].map(x=>{var f;return(f=u.localize)===null||f===void 0?void 0:f.day((x+y)%7,{width:"short",context:"standalone"})}):["Su","Mo","Tu","We","Th","Fr","Sa"],[h,T]=e.navState;return U.createElement(Jt,{square:!0,elevation:0,sx:{width:290}},U.createElement(pe,{container:!0},U.createElement(os,{date:a,setDate:i,nextDisabled:!T,prevDisabled:!h,onClickPrevious:()=>r.onMonthNavigate(s,Ct.Previous),onClickNext:()=>r.onMonthNavigate(s,Ct.Next),locale:u}),U.createElement(pe,{item:!0,container:!0,direction:"row",justifyContent:"space-between",sx:{marginTop:"10px",paddingLeft:"30px",paddingRight:"30px"}},D.map((x,f)=>U.createElement(be,{color:"textSecondary",key:f,variant:"caption"},x))),U.createElement(pe,{item:!0,container:!0,direction:"column",justifyContent:"space-between",sx:{paddingLeft:"15px",paddingRight:"15px",marginTop:"15px",marginBottom:"20px"}},qr(Gr(a,u),7).map((x,f)=>U.createElement(pe,{key:f,container:!0,direction:"row",justifyContent:"center"},x.map(m=>{const g=Zr(o,m),w=Qr(o,m),C=Xr(o),P=Jr(o,m)||n.inHoverRange(m);return U.createElement(rs,{key:Gt(m,"dd-MM-yyyy"),filled:g||w,outlined:zr(m),highlighted:P&&!C,disabled:!on(a,m)||!rn(m,{start:l,end:c}),startOfRange:g&&!C,endOfRange:w&&!C,onClick:()=>r.onDayClick(m),onHover:()=>r.onDayHover(m),value:xr(m)})}))))))},Cn=(e,t)=>{const{startDate:n,endDate:r}=e,{startDate:a,endDate:o}=t;return n&&a&&r&&o?je(n,a)&&je(r,o):!1},ss=({ranges:e,setRange:t,selectedRange:n})=>U.createElement(_n,null,e.map((r,a)=>U.createElement(qn,{button:!0,key:a,onClick:()=>t(r),sx:[Cn(r,n)&&{backgroundColor:o=>o.palette.primary.dark,color:"primary.contrastText","&:hover":{color:"inherit"}}]},U.createElement(Ir,{primaryTypographyProps:{variant:"body2",sx:{fontWeight:Cn(r,n)?"bold":"normal"}}},r.label)))),Zt={FIRST_MONTH:Symbol("firstMonth"),SECOND_MONTH:Symbol("secondMonth")},as=e=>{const{ranges:t,dateRange:n,minDate:r,maxDate:a,firstMonth:o,setFirstMonth:s,secondMonth:i,setSecondMonth:l,setDateRange:c,helpers:u,handlers:y,locale:D}=e,{startDate:h,endDate:T}=n,x=Dr(i,o)>=2,f={dateRange:n,minDate:r,maxDate:a,helpers:u,handlers:y};return U.createElement(Jt,{elevation:5,square:!0},U.createElement(pe,{container:!0,direction:"row",wrap:"nowrap"},U.createElement(pe,null,U.createElement(ss,{selectedRange:n,ranges:t,setRange:c})),U.createElement(Wt,{orientation:"vertical",flexItem:!0}),U.createElement(pe,null,U.createElement(pe,{container:!0,sx:{padding:"20px 70px"},alignItems:"center"},U.createElement(pe,{item:!0,sx:{flex:1,textAlign:"center"}},U.createElement(be,{variant:"subtitle1"},h?Gt(h,"dd MMMM yyyy",{locale:D}):"Start Date")),U.createElement(pe,{item:!0,sx:{flex:1,textAlign:"center"}},U.createElement(eo,{color:"action"})),U.createElement(pe,{item:!0,sx:{flex:1,textAlign:"center"}},U.createElement(be,{variant:"subtitle1"},T?Gt(T,"dd MMMM yyyy",{locale:D}):"End Date"))),U.createElement(Wt,null),U.createElement(pe,{container:!0,direction:"row",justifyContent:"center",wrap:"nowrap"},U.createElement(kn,Object.assign({},f,{value:o,setValue:s,navState:[!0,x],marker:Zt.FIRST_MONTH,locale:D})),U.createElement(Wt,{orientation:"vertical",flexItem:!0}),U.createElement(kn,Object.assign({},f,{value:i,setValue:l,navState:[x,!0],marker:Zt.SECOND_MONTH,locale:D}))))))},is=e=>{const t=new Date,{open:n,onChange:r,initialDateRange:a,minDate:o,maxDate:s,definedRanges:i=ts(new Date,e.locale),locale:l}=e,c=Sn(o,ot(t,-10)),u=Sn(s,ot(t,10)),[y,D]=es(a||{},c,u),[h,T]=b.useState(Object.assign({},a)),[x,f]=b.useState(),[m,g]=b.useState(y||t),[w,C]=b.useState(D||Ae(m,1)),{startDate:P,endDate:A}=h,V=O=>{mt(O,w)&&g(O)},F=O=>{vn(O,m)&&C(O)},S=O=>{let{startDate:B,endDate:L}=O;if(B&&L)O.startDate=B=Jn([B,c]),O.endDate=L=Xn([L,u]),T(O),r(O),g(B),C(on(B,L)?Ae(B,1):L);else{const W={};T(W),r(W),g(t),C(Ae(m,1))}},_=O=>{if(P&&!A&&!mt(O,P)){const B={startDate:P,endDate:O};r(B),T(B)}else T({startDate:O,endDate:void 0});f(O)},R=(O,B)=>{if(O===Zt.FIRST_MONTH){const L=Ae(m,B);mt(L,w)&&g(L)}else{const L=Ae(w,B);mt(m,L)&&C(L)}},E=O=>{P&&!A&&(!x||!je(O,x))&&f(O)},k={inHoverRange:O=>P&&!A&&x&&vn(x,P)&&rn(O,{start:P,end:x})},M={onDayClick:_,onDayHover:E,onMonthNavigate:R};return n?b.createElement(as,{dateRange:h,minDate:c,maxDate:u,ranges:i,firstMonth:m,secondMonth:w,setFirstMonth:V,setSecondMonth:F,setDateRange:S,helpers:k,handlers:M,locale:l}):null},ls=e=>{const{closeOnClickOutside:t,wrapperClassName:n,toggle:r,open:a}=e,o=()=>{t!==!1&&r()},s=i=>(i==null?void 0:i.key)==="Escape"&&o();return U.createElement(Fe,{sx:{position:"relative"}},a&&U.createElement(Fe,{sx:{position:"fixed",height:"100vh",width:"100vw",bottom:0,zIndex:0,right:0,left:0,top:0},onKeyPress:s,onClick:o}),U.createElement(Fe,{sx:{position:"relative",zIndex:1},className:n},U.createElement(is,Object.assign({},e))))},cs=e=>U.createElement(ls,Object.assign({},e)),us=["localeText"],Qt=b.createContext(null),an=function(t){var n;const{localeText:r}=t,a=ie(t,us),{utils:o,localeText:s}=(n=b.useContext(Qt))!=null?n:{utils:void 0,localeText:void 0},i=ye({props:a,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:y,adapterLocale:D,localeText:h}=i,T=b.useMemo(()=>v({},h,s,r),[h,s,r]),x=b.useMemo(()=>{if(!c)return o||null;const g=new c({locale:D,formats:u,instance:y});if(!g.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
1
+ import{P as d,h1 as _o,b7 as Vt,b6 as Bo,dO as Yo,X as Wo,Y as zo,j as p,eE as U,B as Fe,r as b,ah as Jt,aS as Wt,T as be,bk as _n,aC as Ye,aT as Dn,aJ as ie,aK as v,as as ze,aF as Me,aE as Se,aG as te,ai as rt,aM as Pe,aN as ve,d0 as We,cM as q,cI as Ho,cH as tt,cg as Ke,cD as nt,cU as Uo,gU as xn,cS as Ko,dk as Rt,$ as Bn,bm as qo,dx as Go,gT as Zo,cN as zt,b as ft,cT as Qo,bf as Jo,gS as Yn,eF as Wn,d1 as Xt,cu as en,W as we,h2 as Xo,Z as Ot,c6 as er,c8 as tr,O as nr,dg as or,bg as Ge,aP as rr,u as tn,m as sr,F as ar,c as ir,bj as wn,bi as lr,gD as Be,a0 as zn,gm as Hn,aY as cr,a7 as Ht,h3 as ur,aj as dr,E as hr}from"./index-Bjf6Qdid.js";import{T as fr}from"./index-btzBjGHI.js";import{_ as mr}from"./permission-CbOj_2Bp.js";import{I as pr}from"./iframe-D3bH5x3R.js";import{d as gr}from"./LaunchOutlined-C2aTle2O.js";import{r as nn,b as Un,H as je,D as ot,B as Ae,y as yr,E as br,I as on,z as qt,M as gt,N as yt,A as Je,L as bt,e as Dt,J as St,K as kt,d as Dr,Q as Gt,G as mt,F as vn,R as rn,S as xr,Z as wr,T as vr,O as Pr,V as Mr,P as Sr,W as kr}from"./index-CbrpFuSe.js";import{d as Cr,B as Tr}from"./ChevronRight-WucQQYYR.js";import{_ as Kn}from"./toPropertyKey-PLuKRk1e.js";import{G as pe}from"./redux-_iDVOyi8.js";import{L as qn}from"./MoreVert-D0MHc_oA.js";import{a as Ir}from"./ListItemText-54aRex6i.js";import{F as Pn}from"./FormControl-Us_liKuz.js";import{S as Mn}from"./Select-B2Prj2qE.js";import{A as Vr}from"./Alert-smpImqp0.js";import{f as Rr}from"./format-error-B_0jV3Iv.js";import{u as ye}from"./useThemeProps-CeQMvkv6.js";import{u as ge,r as Gn}from"./useSlotProps-dq2Kfslt.js";import{T as Or}from"./TextField-Bc5irjLS.js";import{I as Zn}from"./InputAdornment-BkdyuJyy.js";import{p as Er}from"./dashboard-Cy3erg8C.js";import{D as Ar}from"./index-BdYDooUk.js";import"./useAsync-CNA6CF-4.js";import"./session-WfO9rlPi.js";import"./Avatar-C9lcmTAE.js";import"./useSlot-BdDJZvLo.js";import"./useFormControl-CLJPjR4P.js";import"./InputLabel--WV9lBJk.js";import"./useLocalStorage-B61hus9l.js";import"./confirm-D8z1ysLZ.js";import"./Delete-DMiA4kv4.js";import"./PlayArrow-BKJw1eVI.js";import"./ButtonGroup-Cj4y31z5.js";import"./RadioGroup-DpVC0gNI.js";import"./FormControlLabel-DJAqgLGE.js";import"./FormGroup-BbGcDOoo.js";import"./index-CufrwE5d.js";import"./Link-CFWQfHB5.js";import"./useSetState-De5jz-QS.js";import"./fallback-DeSV2xkv.js";import"./index-D_o4YQXA.js";import"./Toolbar-CA_h5A9p.js";import"./Hidden-Cq8zZFLO.js";import"./index-Bbkb50i_.js";import"./selector-DKnQRsyi.js";import"./FilterList-dGVsmxZ3.js";import"./LastPage-DsSBN78H.js";import"./index-LywoNrgL.js";import"./Search-BkeqStVj.js";import"./index-cmxabTfW.js";const Qn=d.oneOfType([d.func,d.object]);var Fr=_o;function Lr(e,t){var n=e.length;if(n)return t+=t<0?n:0,Fr(t,n)?e[t]:void 0}var jr=Lr,$r=jr,Nr=Bo,_r=Yo;function Br(e){return e=_r(e),Nr(function(t){return $r(t,e)})}var Yr=Br;const Wr=Vt(Yr);function Jn(e){nn(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Kn(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var a=Un(r);(n===void 0||n<a||isNaN(Number(a)))&&(n=a)}),n||new Date(NaN)}function Xn(e){nn(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Kn(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var a=Un(r);(n===void 0||n>a||isNaN(a.getDate()))&&(n=a)}),n||new Date(NaN)}function zr(e){return nn(1,arguments),je(e,Date.now())}var sn={},Hr=zo;Object.defineProperty(sn,"__esModule",{value:!0});var eo=sn.default=void 0,Ur=Hr(Wo()),Kr=p;eo=sn.default=(0,Ur.default)((0,Kr.jsx)("path",{d:"M16.01 11H4v2h12.01v3L20 12l-3.99-4z"}),"ArrowRightAlt");const qr=(e,t)=>Array.from({length:Math.ceil(e.length/t)},(n,r)=>e.slice(r*t,r*t+t)),Gr=(e,t)=>{const n=gt(bt(e),{locale:t}),r=yt(Dt(e),{locale:t}),a=[];for(let o=n;mt(o,r);)a.push(o),o=qt(o,1);return a},Zr=({startDate:e},t)=>e&&je(t,e),Qr=({endDate:e},t)=>e&&je(t,e),Jr=({startDate:e,endDate:t},n)=>e&&t&&(rn(n,{start:e,end:t})||je(n,e)||je(n,t)),Xr=({startDate:e,endDate:t})=>e&&t?je(e,t):!1,Sn=(e,t)=>{if(e){const n=e instanceof Date?e:yr(e);if(br(n))return n}return t},es=(e,t,n)=>{const{startDate:r,endDate:a}=e;if(r&&a){const o=Jn([r,t]),s=Xn([a,n]);return[o,on(o,s)?Ae(o,1):s]}return[r,a]},ts=(e,t)=>[{label:"Today",startDate:e,endDate:e},{label:"Yesterday",startDate:qt(e,-1),endDate:qt(e,-1)},{label:"This Week",startDate:gt(e,{locale:t}),endDate:yt(e,{locale:t})},{label:"Last Week",startDate:gt(Je(e,-1),{locale:t}),endDate:yt(Je(e,-1),{locale:t})},{label:"Last 7 Days",startDate:Je(e,-1),endDate:e},{label:"This Month",startDate:bt(e),endDate:Dt(e)},{label:"Last Month",startDate:bt(Ae(e,-1)),endDate:Dt(Ae(e,-1))},{label:"This Year",startDate:St(e),endDate:kt(e)},{label:"Last Year",startDate:St(ot(e,-1)),endDate:kt(ot(e,-1))}],ns=(e,t)=>{const n=Math.floor(t/2);return Array(t).fill(0).map((r,a)=>e.getFullYear()-n+a)},os=({date:e,setDate:t,nextDisabled:n,prevDisabled:r,onClickNext:a,onClickPrevious:o,locale:s})=>{const i=typeof s<"u"?[...Array(12).keys()].map(u=>{var y;return(y=s.localize)===null||y===void 0?void 0:y.month(u,{width:"abbreviated",context:"standalone"})}):["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],l=u=>{t(Mr(e,parseInt(u.target.value,10)))},c=u=>{t(Sr(e,parseInt(u.target.value,10)))};return U.createElement(pe,{container:!0,justifyContent:"space-between",alignItems:"center"},U.createElement(pe,{item:!0,sx:{padding:"5px"}},U.createElement(Ye,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:r,onClick:o},U.createElement(wr,{color:r?"disabled":"action"}))),U.createElement(pe,{item:!0},U.createElement(Pn,{variant:"standard"},U.createElement(Mn,{value:vr(e),onChange:l,MenuProps:{disablePortal:!0}},i.map((u,y)=>U.createElement(Dn,{key:u,value:y},u))))),U.createElement(pe,{item:!0},U.createElement(Pn,{variant:"standard"},U.createElement(Mn,{value:Pr(e),onChange:c,MenuProps:{disablePortal:!0}},ns(e,30).map(u=>U.createElement(Dn,{key:u,value:u},u))))),U.createElement(pe,{item:!0,sx:{padding:"5px"}},U.createElement(Ye,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:n,onClick:a},U.createElement(Cr,{color:n?"disabled":"action"}))))},rs=({startOfRange:e,endOfRange:t,disabled:n,highlighted:r,outlined:a,filled:o,onClick:s,onHover:i,value:l})=>U.createElement(Fe,{sx:{display:"flex",borderRadius:e?"50% 0 0 50%":t?"0 50% 50% 0":void 0,backgroundColor:c=>!n&&r?c.palette.primary.light:void 0}},U.createElement(Ye,{sx:Object.assign({height:"36px",width:"36px",padding:0,border:c=>!n&&a?`1px solid ${c.palette.primary.dark}`:void 0},!n&&o?{"&:hover":{backgroundColor:c=>c.palette.primary.dark},backgroundColor:c=>c.palette.primary.dark}:{}),disabled:n,onClick:s,onMouseOver:i},U.createElement(be,{sx:{lineHeight:1.6,color:c=>n?c.palette.text.secondary:o?c.palette.primary.contrastText:c.palette.text.primary},variant:"body2"},l)));var Ct;(function(e){e[e.Previous=-1]="Previous",e[e.Next=1]="Next"})(Ct||(Ct={}));const kn=e=>{var t;const{helpers:n,handlers:r,value:a,dateRange:o,marker:s,setValue:i,minDate:l,maxDate:c,locale:u}=e,y=((t=u==null?void 0:u.options)===null||t===void 0?void 0:t.weekStartsOn)||0,D=typeof u<"u"?[...Array(7).keys()].map(x=>{var f;return(f=u.localize)===null||f===void 0?void 0:f.day((x+y)%7,{width:"short",context:"standalone"})}):["Su","Mo","Tu","We","Th","Fr","Sa"],[h,T]=e.navState;return U.createElement(Jt,{square:!0,elevation:0,sx:{width:290}},U.createElement(pe,{container:!0},U.createElement(os,{date:a,setDate:i,nextDisabled:!T,prevDisabled:!h,onClickPrevious:()=>r.onMonthNavigate(s,Ct.Previous),onClickNext:()=>r.onMonthNavigate(s,Ct.Next),locale:u}),U.createElement(pe,{item:!0,container:!0,direction:"row",justifyContent:"space-between",sx:{marginTop:"10px",paddingLeft:"30px",paddingRight:"30px"}},D.map((x,f)=>U.createElement(be,{color:"textSecondary",key:f,variant:"caption"},x))),U.createElement(pe,{item:!0,container:!0,direction:"column",justifyContent:"space-between",sx:{paddingLeft:"15px",paddingRight:"15px",marginTop:"15px",marginBottom:"20px"}},qr(Gr(a,u),7).map((x,f)=>U.createElement(pe,{key:f,container:!0,direction:"row",justifyContent:"center"},x.map(m=>{const g=Zr(o,m),w=Qr(o,m),C=Xr(o),P=Jr(o,m)||n.inHoverRange(m);return U.createElement(rs,{key:Gt(m,"dd-MM-yyyy"),filled:g||w,outlined:zr(m),highlighted:P&&!C,disabled:!on(a,m)||!rn(m,{start:l,end:c}),startOfRange:g&&!C,endOfRange:w&&!C,onClick:()=>r.onDayClick(m),onHover:()=>r.onDayHover(m),value:xr(m)})}))))))},Cn=(e,t)=>{const{startDate:n,endDate:r}=e,{startDate:a,endDate:o}=t;return n&&a&&r&&o?je(n,a)&&je(r,o):!1},ss=({ranges:e,setRange:t,selectedRange:n})=>U.createElement(_n,null,e.map((r,a)=>U.createElement(qn,{button:!0,key:a,onClick:()=>t(r),sx:[Cn(r,n)&&{backgroundColor:o=>o.palette.primary.dark,color:"primary.contrastText","&:hover":{color:"inherit"}}]},U.createElement(Ir,{primaryTypographyProps:{variant:"body2",sx:{fontWeight:Cn(r,n)?"bold":"normal"}}},r.label)))),Zt={FIRST_MONTH:Symbol("firstMonth"),SECOND_MONTH:Symbol("secondMonth")},as=e=>{const{ranges:t,dateRange:n,minDate:r,maxDate:a,firstMonth:o,setFirstMonth:s,secondMonth:i,setSecondMonth:l,setDateRange:c,helpers:u,handlers:y,locale:D}=e,{startDate:h,endDate:T}=n,x=Dr(i,o)>=2,f={dateRange:n,minDate:r,maxDate:a,helpers:u,handlers:y};return U.createElement(Jt,{elevation:5,square:!0},U.createElement(pe,{container:!0,direction:"row",wrap:"nowrap"},U.createElement(pe,null,U.createElement(ss,{selectedRange:n,ranges:t,setRange:c})),U.createElement(Wt,{orientation:"vertical",flexItem:!0}),U.createElement(pe,null,U.createElement(pe,{container:!0,sx:{padding:"20px 70px"},alignItems:"center"},U.createElement(pe,{item:!0,sx:{flex:1,textAlign:"center"}},U.createElement(be,{variant:"subtitle1"},h?Gt(h,"dd MMMM yyyy",{locale:D}):"Start Date")),U.createElement(pe,{item:!0,sx:{flex:1,textAlign:"center"}},U.createElement(eo,{color:"action"})),U.createElement(pe,{item:!0,sx:{flex:1,textAlign:"center"}},U.createElement(be,{variant:"subtitle1"},T?Gt(T,"dd MMMM yyyy",{locale:D}):"End Date"))),U.createElement(Wt,null),U.createElement(pe,{container:!0,direction:"row",justifyContent:"center",wrap:"nowrap"},U.createElement(kn,Object.assign({},f,{value:o,setValue:s,navState:[!0,x],marker:Zt.FIRST_MONTH,locale:D})),U.createElement(Wt,{orientation:"vertical",flexItem:!0}),U.createElement(kn,Object.assign({},f,{value:i,setValue:l,navState:[x,!0],marker:Zt.SECOND_MONTH,locale:D}))))))},is=e=>{const t=new Date,{open:n,onChange:r,initialDateRange:a,minDate:o,maxDate:s,definedRanges:i=ts(new Date,e.locale),locale:l}=e,c=Sn(o,ot(t,-10)),u=Sn(s,ot(t,10)),[y,D]=es(a||{},c,u),[h,T]=b.useState(Object.assign({},a)),[x,f]=b.useState(),[m,g]=b.useState(y||t),[w,C]=b.useState(D||Ae(m,1)),{startDate:P,endDate:A}=h,V=O=>{mt(O,w)&&g(O)},F=O=>{vn(O,m)&&C(O)},S=O=>{let{startDate:B,endDate:L}=O;if(B&&L)O.startDate=B=Jn([B,c]),O.endDate=L=Xn([L,u]),T(O),r(O),g(B),C(on(B,L)?Ae(B,1):L);else{const W={};T(W),r(W),g(t),C(Ae(m,1))}},_=O=>{if(P&&!A&&!mt(O,P)){const B={startDate:P,endDate:O};r(B),T(B)}else T({startDate:O,endDate:void 0});f(O)},R=(O,B)=>{if(O===Zt.FIRST_MONTH){const L=Ae(m,B);mt(L,w)&&g(L)}else{const L=Ae(w,B);mt(m,L)&&C(L)}},E=O=>{P&&!A&&(!x||!je(O,x))&&f(O)},k={inHoverRange:O=>P&&!A&&x&&vn(x,P)&&rn(O,{start:P,end:x})},M={onDayClick:_,onDayHover:E,onMonthNavigate:R};return n?b.createElement(as,{dateRange:h,minDate:c,maxDate:u,ranges:i,firstMonth:m,secondMonth:w,setFirstMonth:V,setSecondMonth:F,setDateRange:S,helpers:k,handlers:M,locale:l}):null},ls=e=>{const{closeOnClickOutside:t,wrapperClassName:n,toggle:r,open:a}=e,o=()=>{t!==!1&&r()},s=i=>(i==null?void 0:i.key)==="Escape"&&o();return U.createElement(Fe,{sx:{position:"relative"}},a&&U.createElement(Fe,{sx:{position:"fixed",height:"100vh",width:"100vw",bottom:0,zIndex:0,right:0,left:0,top:0},onKeyPress:s,onClick:o}),U.createElement(Fe,{sx:{position:"relative",zIndex:1},className:n},U.createElement(is,Object.assign({},e))))},cs=e=>U.createElement(ls,Object.assign({},e)),us=["localeText"],Qt=b.createContext(null),an=function(t){var n;const{localeText:r}=t,a=ie(t,us),{utils:o,localeText:s}=(n=b.useContext(Qt))!=null?n:{utils:void 0,localeText:void 0},i=ye({props:a,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:y,adapterLocale:D,localeText:h}=i,T=b.useMemo(()=>v({},h,s,r),[h,s,r]),x=b.useMemo(()=>{if(!c)return o||null;const g=new c({locale:D,formats:u,instance:y});if(!g.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
2
2
  `));return g},[c,D,u,y,o]),f=b.useMemo(()=>x?{minDate:x.date("1900-01-01T00:00:00.000"),maxDate:x.date("2099-12-31T00:00:00.000")}:null,[x]),m=b.useMemo(()=>({utils:x,defaultDates:f,localeText:T}),[f,x,T]);return p.jsx(Qt.Provider,{value:m,children:l})},ds=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:v({},e)}}}}),to={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},hs=to;ds(to);const qe=()=>{const e=b.useContext(Qt);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
3
3
  `));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
4
4
  `));const t=b.useMemo(()=>v({},hs,e.localeText),[e.localeText]);return b.useMemo(()=>v({},e,{localeText:t}),[e,t])},de=()=>qe().utils,wt=()=>qe().defaultDates,He=()=>qe().localeText,Et=e=>{const t=de(),n=b.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},fs=ze(p.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),ms=ze(p.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),ps=ze(p.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),gs=ze(p.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");ze(p.jsxs(b.Fragment,{children:[p.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),p.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");ze(p.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");ze(p.jsxs(b.Fragment,{children:[p.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),p.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const ys=ze(p.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function bs(e){return Me("MuiPickersArrowSwitcher",e)}Se("MuiPickersArrowSwitcher",["root","spacer","button"]);const Ds=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],xs=["ownerState"],ws=["ownerState"],vs=te("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Ps=te("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Tn=te(Ye,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>v({},e.hidden&&{visibility:"hidden"})),Ms=e=>{const{classes:t}=e;return ve({root:["root"],spacer:["spacer"],button:["button"]},bs,t)},Ss=b.forwardRef(function(t,n){var r,a,o,s;const l=rt().direction==="rtl",c=ye({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:y,slots:D,slotProps:h,isNextDisabled:T,isNextHidden:x,onGoToNext:f,nextLabel:m,isPreviousDisabled:g,isPreviousHidden:w,onGoToPrevious:C,previousLabel:P}=c,A=ie(c,Ds),V=c,F=Ms(V),S={isDisabled:T,isHidden:x,goTo:f,label:m},_={isDisabled:g,isHidden:w,goTo:C,label:P},R=(r=D==null?void 0:D.previousIconButton)!=null?r:Tn,E=ge({elementType:R,externalSlotProps:h==null?void 0:h.previousIconButton,additionalProps:{size:"medium",title:_.label,"aria-label":_.label,disabled:_.isDisabled,edge:"end",onClick:_.goTo},ownerState:v({},V,{hidden:_.isHidden}),className:F.button}),I=(a=D==null?void 0:D.nextIconButton)!=null?a:Tn,k=ge({elementType:I,externalSlotProps:h==null?void 0:h.nextIconButton,additionalProps:{size:"medium",title:S.label,"aria-label":S.label,disabled:S.isDisabled,edge:"start",onClick:S.goTo},ownerState:v({},V,{hidden:S.isHidden}),className:F.button}),M=(o=D==null?void 0:D.leftArrowIcon)!=null?o:ms,O=ge({elementType:M,externalSlotProps:h==null?void 0:h.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),B=ie(O,xs),L=(s=D==null?void 0:D.rightArrowIcon)!=null?s:ps,W=ge({elementType:L,externalSlotProps:h==null?void 0:h.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),K=ie(W,ws);return p.jsxs(vs,v({ref:n,className:Pe(F.root,y),ownerState:V},A,{children:[p.jsx(R,v({},E,{children:l?p.jsx(L,v({},K)):p.jsx(M,v({},B))})),u?p.jsx(be,{variant:"subtitle1",component:"span",children:u}):p.jsx(Ps,{className:F.spacer,ownerState:V}),p.jsx(I,v({},k,{children:l?p.jsx(M,v({},B)):p.jsx(L,v({},K))}))]}))}),ct=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),ks=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const a=n??r;let o;if(e!=null)o=e;else if(a.includes(t))o=t;else if(a.length>0)o=a[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:a,openTo:o}},Cs=["hours","minutes","seconds"],Ts=e=>Cs.includes(e),In=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Is=(e,t)=>(n,r)=>e?t.isAfter(n,r):In(n,t)>In(r,t);function no({onChange:e,onViewChange:t,openTo:n,view:r,views:a,autoFocus:o,focusedView:s,onFocusedViewChange:i}){var l,c;const u=b.useRef(n),y=b.useRef(a),D=b.useRef(a.includes(n)?n:a[0]),[h,T]=We({name:"useViews",state:"view",controlled:r,default:D.current}),x=b.useRef(o?h:null),[f,m]=We({name:"useViews",state:"focusedView",controlled:s,default:x.current});b.useEffect(()=>{(u.current&&u.current!==n||y.current&&y.current.some(S=>!a.includes(S)))&&(T(a.includes(n)?n:a[0]),y.current=a,u.current=n)},[n,T,h,a]);const g=a.indexOf(h),w=(l=a[g-1])!=null?l:null,C=(c=a[g+1])!=null?c:null,P=q((S,_)=>{m(_?S:R=>S===R?null:R),i==null||i(S,_)}),A=q(S=>{P(S,!0),S!==h&&(T(S),t&&t(S))}),V=q(()=>{C&&A(C)}),F=q((S,_,R)=>{const E=_==="finish",I=R?a.indexOf(R)<a.length-1:!!C;if(e(S,E&&I?"partial":_,R),R&&R!==h){const M=a[a.indexOf(R)+1];M&&A(M)}else E&&V()});return{view:h,setView:A,focusedView:f,setFocusedView:P,nextView:C,previousView:w,defaultView:a.includes(n)?n:a[0],goToNextView:V,setValueAndGoToNextView:F}}function Vs(e,{disableFuture:t,maxDate:n,timezone:r}){const a=de();return b.useMemo(()=>{const o=a.dateWithTimezone(void 0,r),s=a.startOfMonth(t&&a.isBefore(o,n)?o:n);return!a.isAfter(s,e)},[t,n,e,a,r])}function Rs(e,{disablePast:t,minDate:n,timezone:r}){const a=de();return b.useMemo(()=>{const o=a.dateWithTimezone(void 0,r),s=a.startOfMonth(t&&a.isAfter(o,n)?o:n);return!a.isBefore(s,e)},[t,n,e,a,r])}const xt=36,At=2,Ft=320,Os=280,ln=334,Es=te("div")({overflow:"hidden",width:Ft,maxHeight:ln,display:"flex",flexDirection:"column",margin:"0 auto"}),Tt=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},pt=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:a,isDateDisabled:o,utils:s,timezone:i})=>{const l=Tt(s,s.dateWithTimezone(void 0,i),e);n&&s.isBefore(a,l)&&(a=l),t&&s.isAfter(r,l)&&(r=l);let c=e,u=e;for(s.isBefore(e,a)&&(c=a,u=null),s.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&s.isAfter(c,r)&&(c=null),u&&s.isBefore(u,a)&&(u=null),c){if(!o(c))return c;c=s.addDays(c,1)}if(u){if(!o(u))return u;u=s.addDays(u,-1)}}return null},As=(e,t)=>t==null||!e.isValid(t)?null:t,Ie=(e,t,n)=>t==null||!e.isValid(t)?n:t,Fs=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),cn=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const a=r[r.length-1];r.push(e.addMonths(a,1))}return r},oo=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),Ls=["year","month","day"],Vn=e=>Ls.includes(e),un=(e,{format:t,views:n},r)=>{if(t!=null)return t;const a=e.formats;return ct(n,["year"])?a.year:ct(n,["month"])?a.month:ct(n,["day"])?a.dayOfMonth:ct(n,["month","year"])?`${a.month} ${a.year}`:ct(n,["day","month"])?`${a.month} ${a.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?a.normalDateWithWeekday:a.normalDate:a.keyboardDate},js=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},dn=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:a})=>{var o,s;const i=de(),l=b.useRef(n),c=(o=t??l.current)!=null?o:a.emptyValue,u=b.useMemo(()=>a.getTimezone(i,c),[i,a,c]),y=q(x=>u==null?x:a.setTimezone(i,u,x)),D=(s=e??u)!=null?s:"default",h=b.useMemo(()=>a.setTimezone(i,D,c),[a,i,D,c]),T=q((x,...f)=>{const m=y(x);r==null||r(m,...f)});return{value:h,handleValueChange:T,timezone:D}},hn=({name:e,timezone:t,value:n,defaultValue:r,onChange:a,valueManager:o})=>{const[s,i]=We({name:e,state:"value",controlled:n,default:r??o.emptyValue}),l=q((c,...u)=>{i(c),a==null||a(c,...u)});return dn({timezone:t,value:s,defaultValue:void 0,onChange:l,valueManager:o})},Ee={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},$s=e=>Math.max(...e.map(t=>{var n;return(n=Ee[t.type])!=null?n:1})),ut=(e,t,n)=>{if(t===Ee.year)return e.startOfYear(n);if(t===Ee.month)return e.startOfMonth(n);if(t===Ee.day)return e.startOfDay(n);let r=n;return t<Ee.minutes&&(r=e.setMinutes(r,0)),t<Ee.seconds&&(r=e.setSeconds(r,0)),t<Ee.milliseconds&&(r=e.setMilliseconds(r,0)),r},Ns=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:a})=>{var o;let s=a?a():ut(t,n,oo(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=ut(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=ut(t,n,e.maxDate));const i=Is((o=e.disableIgnoringDatePartForTimeValidation)!=null?o:!1,t);return e.minTime!=null&&i(e.minTime,s)&&(s=ut(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Tt(t,s,e.minTime))),e.maxTime!=null&&i(s,e.maxTime)&&(s=ut(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Tt(t,s,e.maxTime))),s},ro=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
@@ -0,0 +1 @@
1
+ import{c3 as a}from"./index-Bjf6Qdid.js";a.defaults.timeout=10*1e3;const o=a.create();export{o as a};
@@ -1,4 +1,4 @@
1
- import{aP as C,r as n,j as t,s as E,u as T,m as B,B as x,aT as M,Z as I,A as b,T as d,L,F as _}from"./index-Bdg2hH7J.js";import{M as F}from"./index-cVr26mKy.js";import{E as W}from"./index-Ci6IWDWf.js";import{T as z}from"./index-ByD4ydGX.js";import{_ as R}from"./useLocalStorage-DvZZwTDC.js";import{R as D}from"./dashboard-WQeB59iZ.js";import{F as K}from"./FormControl-DE9N6Db0.js";import{I as O}from"./InputLabel-D2kHO3Su.js";import{S as U}from"./Select-DxpmtgW4.js";import{P as G}from"./Pagination-aUFIvi5y.js";import{r as H}from"./index-B8k2vim3.js";import"./index-DNlUUcTz.js";import"./MoreVert-VUWyXDsQ.js";import"./confirm-CnJhc68Q.js";import"./format-error-Blif5aTO.js";import"./Alert-bzh-1cuw.js";import"./useSlot-DxWJyNOJ.js";import"./Delete-CRriNkym.js";import"./PlayArrow-By-kmerY.js";import"./ListItemText-OVWUZ8Yw.js";import"./ButtonGroup-XCe_4Dd6.js";import"./RadioGroup-DiH-c46e.js";import"./FormControlLabel-DGbEY6m8.js";import"./useFormControl-CDmRrmKw.js";import"./FormGroup-n5wwFjBA.js";import"./Avatar-CDgX4gdS.js";import"./session-CBJgIJsY.js";import"./permission-ClswWE64.js";import"./useAsync-CbQ86h-f.js";import"./Link-NMapyzp6.js";import"./useSetState-BpZL0m-H.js";import"./fallback-l6x8Ufow.js";import"./index-BS9TWd2p.js";import"./Toolbar-B_xj2T9O.js";import"./Hidden-BYIvIL0k.js";import"./index-BnWtXVAz.js";import"./selector-YK8Xf2Rq.js";import"./LastPage-bpkDUtUD.js";const S=n.createContext({}),{Provider:Z,Consumer:We}=S;function q({children:e,scope:o="",categories:a=[],showScope:i,scopeFormatter:p}){const{api:s,info:l}=C(),[c,r]=n.useState([]),[f,A]=n.useState({total:0,pageSize:20,pageCount:0,page:1}),[j,h]=n.useState(!1),[u,k]=R(`audit-log-category-${o}`,"all"),N=[{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(g=>a.length?g.value==="all"||a.includes(g.value):!0),y=async({page:g=1,silent:$=!0}={})=>{if(!j){$||h(!0);try{const m=await s.getAuditLogs({input:{paging:{page:g},category:u==="all"?"":u,scope:o}});i&&(m.list||[]).forEach(v=>{v.scope!==l.did&&(v.link=`/blocklets/${v.scope}/components`)}),r(m.list),A(m.paging),h(!1)}catch(m){E.error(m.message),h(!1)}}};n.useEffect(()=>{y({page:1,silent:!1})},[]),n.useEffect(()=>{y({page:1,silent:!1})},[u]);const P={loading:j,fetch:y,filter:{category:u,scope:o},categories:N,setCategory:k,data:c,paging:f,showScope:i,scopeFormatter:p};return t.jsx(Z,{value:{auditLogs:P},children:e})}function w(){const{auditLogs:e}=n.useContext(S);return e}const J=({log:e,info:o,inService:a})=>a?`${_.WELLKNOWN_BLOCKLET_ADMIN_PATH}/members?did=${e.actor.did}`:e.scope===o.did?`/team/members?did=${e.actor.did}`:`/blocklets/${e.scope}/members?did=${e.actor.did}`;function Q({log:e}){var l,c;const{inService:o,info:a}=C(),{showScope:i,scopeFormatter:p=r=>r}=w();if(!e.actor.did)return null;const s=!["blocklet",""].includes(e.actor.role);return t.jsxs(x,{className:"log-entry","data-cy":"log-entry",children:[t.jsx("div",{className:"log-author",children:s?t.jsx(b,{did:e.actor.did,size:36,shape:"circle"}):t.jsx(b,{did:e.actor.did,size:36})}),t.jsxs("div",{className:"log-body",children:[t.jsxs(d,{className:"log-header",color:"textSecondary",component:"p",gutterBottom:!0,display:"flex",alignItems:"center",children:[i&&t.jsx(L,{to:e.link,children:t.jsx(z,{style:{marginRight:8},children:p(e.scope)})}),s?t.jsxs(L,{to:J({log:e,inService:o,info:a}),target:"_blank",children:[e.actor.fullName,e.actor.role?`(${e.actor.role})`:""]}):t.jsxs("span",{children:[e.actor.fullName,e.actor.role?`(${e.actor.role})`:""]})," ",t.jsx("span",{style:{margin:"0 4px"},children:"-"})," ",e.action]}),t.jsx(d,{className:"log-content",maxWidth:"lg",color:"textPrimary",component:"div","data-color-mode":"light",gutterBottom:!0,children:t.jsx(F,{source:e.content,rehypePlugins:[[H,{target:"_blank"}]]})}),t.jsxs(x,{className:"log-meta",variant:"body2",children:[!!e.ip&&t.jsx(d,{component:"span",color:"textSecondary",children:`IP: ${e.ip}`}),!!((l=e.env.os)!=null&&l.name)&&t.jsxs(d,{component:"span",color:"textSecondary",children:[e.env.os.name,"(",e.env.os.version,")"]}),!!((c=e.env.browser)!=null&&c.name)&&t.jsxs(d,{component:"span",color:"textSecondary",children:[e.env.browser.name,"(",e.env.browser.version,")"]}),t.jsx(d,{component:"span",color:"textSecondary",children:t.jsx(D,{value:e.createdAt})})]})]})]})}function V(){const{t:e}=T(),{data:o,loading:a,paging:i,filter:p,categories:s,setCategory:l,fetch:c}=w();return a?t.jsx("div",{style:{textAlign:"center",marginTop:"50px"},children:t.jsx(B,{})}):t.jsxs(X,{"data-cy":"audit-logs",children:[t.jsx(x,{className:"log-controls",children:t.jsxs(K,{style:{width:"240px"},variant:"outlined",children:[t.jsx(O,{children:e("common.filter")}),t.jsx(U,{"data-cy":"filter-by-category-trigger",value:p.category,onChange:r=>l(r.target.value),fullWidth:!0,label:e("common.category"),disabled:a,children:s.map(r=>t.jsx(M,{value:r.value,"data-cy":`filter-by-category-${r.value}`,children:t.jsx(x,{children:t.jsx("span",{children:r.label})})},r.label))})]})}),o.length===0&&t.jsx(W,{children:e("common.empty")}),o.length>0&&o.map(r=>t.jsx(Q,{log:r},r.id)),i.pageCount>1&&t.jsx(G,{page:i.page,count:i.pageCount,onChange:(r,f)=>c({page:f}),showFirstButton:!0,showLastButton:!0})]})}function ze({scope:e,categories:o,showScope:a,scopeFormatter:i}){return t.jsx(q,{scope:e,categories:o,showScope:a,scopeFormatter:i,children:t.jsx(V,{})})}const X=I.div`
1
+ import{aP as C,r as n,j as t,s as E,u as T,m as B,B as x,aT as M,Z as I,A as b,T as d,L,F as _}from"./index-Bjf6Qdid.js";import{M as F}from"./index-Bj_zBfXt.js";import{E as W}from"./index-cmxabTfW.js";import{T as z}from"./index-CufrwE5d.js";import{_ as R}from"./useLocalStorage-B61hus9l.js";import{R as D}from"./dashboard-Cy3erg8C.js";import{F as K}from"./FormControl-Us_liKuz.js";import{I as O}from"./InputLabel--WV9lBJk.js";import{S as U}from"./Select-B2Prj2qE.js";import{P as G}from"./Pagination-BoZ8uk_n.js";import{r as H}from"./index-D5X58lJY.js";import"./index-btzBjGHI.js";import"./MoreVert-D0MHc_oA.js";import"./confirm-D8z1ysLZ.js";import"./format-error-B_0jV3Iv.js";import"./Alert-smpImqp0.js";import"./useSlot-BdDJZvLo.js";import"./Delete-DMiA4kv4.js";import"./PlayArrow-BKJw1eVI.js";import"./ListItemText-54aRex6i.js";import"./ButtonGroup-Cj4y31z5.js";import"./RadioGroup-DpVC0gNI.js";import"./FormControlLabel-DJAqgLGE.js";import"./useFormControl-CLJPjR4P.js";import"./FormGroup-BbGcDOoo.js";import"./Avatar-C9lcmTAE.js";import"./session-WfO9rlPi.js";import"./permission-CbOj_2Bp.js";import"./useAsync-CNA6CF-4.js";import"./Link-CFWQfHB5.js";import"./useSetState-De5jz-QS.js";import"./fallback-DeSV2xkv.js";import"./index-D_o4YQXA.js";import"./Toolbar-CA_h5A9p.js";import"./Hidden-Cq8zZFLO.js";import"./index-Bbkb50i_.js";import"./selector-DKnQRsyi.js";import"./LastPage-DsSBN78H.js";const S=n.createContext({}),{Provider:Z,Consumer:We}=S;function q({children:e,scope:o="",categories:a=[],showScope:i,scopeFormatter:p}){const{api:s,info:l}=C(),[c,r]=n.useState([]),[f,A]=n.useState({total:0,pageSize:20,pageCount:0,page:1}),[j,h]=n.useState(!1),[u,k]=R(`audit-log-category-${o}`,"all"),N=[{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(g=>a.length?g.value==="all"||a.includes(g.value):!0),y=async({page:g=1,silent:$=!0}={})=>{if(!j){$||h(!0);try{const m=await s.getAuditLogs({input:{paging:{page:g},category:u==="all"?"":u,scope:o}});i&&(m.list||[]).forEach(v=>{v.scope!==l.did&&(v.link=`/blocklets/${v.scope}/components`)}),r(m.list),A(m.paging),h(!1)}catch(m){E.error(m.message),h(!1)}}};n.useEffect(()=>{y({page:1,silent:!1})},[]),n.useEffect(()=>{y({page:1,silent:!1})},[u]);const P={loading:j,fetch:y,filter:{category:u,scope:o},categories:N,setCategory:k,data:c,paging:f,showScope:i,scopeFormatter:p};return t.jsx(Z,{value:{auditLogs:P},children:e})}function w(){const{auditLogs:e}=n.useContext(S);return e}const J=({log:e,info:o,inService:a})=>a?`${_.WELLKNOWN_BLOCKLET_ADMIN_PATH}/members?did=${e.actor.did}`:e.scope===o.did?`/team/members?did=${e.actor.did}`:`/blocklets/${e.scope}/members?did=${e.actor.did}`;function Q({log:e}){var l,c;const{inService:o,info:a}=C(),{showScope:i,scopeFormatter:p=r=>r}=w();if(!e.actor.did)return null;const s=!["blocklet",""].includes(e.actor.role);return t.jsxs(x,{className:"log-entry","data-cy":"log-entry",children:[t.jsx("div",{className:"log-author",children:s?t.jsx(b,{did:e.actor.did,size:36,shape:"circle"}):t.jsx(b,{did:e.actor.did,size:36})}),t.jsxs("div",{className:"log-body",children:[t.jsxs(d,{className:"log-header",color:"textSecondary",component:"p",gutterBottom:!0,display:"flex",alignItems:"center",children:[i&&t.jsx(L,{to:e.link,children:t.jsx(z,{style:{marginRight:8},children:p(e.scope)})}),s?t.jsxs(L,{to:J({log:e,inService:o,info:a}),target:"_blank",children:[e.actor.fullName,e.actor.role?`(${e.actor.role})`:""]}):t.jsxs("span",{children:[e.actor.fullName,e.actor.role?`(${e.actor.role})`:""]})," ",t.jsx("span",{style:{margin:"0 4px"},children:"-"})," ",e.action]}),t.jsx(d,{className:"log-content",maxWidth:"lg",color:"textPrimary",component:"div","data-color-mode":"light",gutterBottom:!0,children:t.jsx(F,{source:e.content,rehypePlugins:[[H,{target:"_blank"}]]})}),t.jsxs(x,{className:"log-meta",variant:"body2",children:[!!e.ip&&t.jsx(d,{component:"span",color:"textSecondary",children:`IP: ${e.ip}`}),!!((l=e.env.os)!=null&&l.name)&&t.jsxs(d,{component:"span",color:"textSecondary",children:[e.env.os.name,"(",e.env.os.version,")"]}),!!((c=e.env.browser)!=null&&c.name)&&t.jsxs(d,{component:"span",color:"textSecondary",children:[e.env.browser.name,"(",e.env.browser.version,")"]}),t.jsx(d,{component:"span",color:"textSecondary",children:t.jsx(D,{value:e.createdAt})})]})]})]})}function V(){const{t:e}=T(),{data:o,loading:a,paging:i,filter:p,categories:s,setCategory:l,fetch:c}=w();return a?t.jsx("div",{style:{textAlign:"center",marginTop:"50px"},children:t.jsx(B,{})}):t.jsxs(X,{"data-cy":"audit-logs",children:[t.jsx(x,{className:"log-controls",children:t.jsxs(K,{style:{width:"240px"},variant:"outlined",children:[t.jsx(O,{children:e("common.filter")}),t.jsx(U,{"data-cy":"filter-by-category-trigger",value:p.category,onChange:r=>l(r.target.value),fullWidth:!0,label:e("common.category"),disabled:a,children:s.map(r=>t.jsx(M,{value:r.value,"data-cy":`filter-by-category-${r.value}`,children:t.jsx(x,{children:t.jsx("span",{children:r.label})})},r.label))})]})}),o.length===0&&t.jsx(W,{children:e("common.empty")}),o.length>0&&o.map(r=>t.jsx(Q,{log:r},r.id)),i.pageCount>1&&t.jsx(G,{page:i.page,count:i.pageCount,onChange:(r,f)=>c({page:f}),showFirstButton:!0,showLastButton:!0})]})}function ze({scope:e,categories:o,showScope:a,scopeFormatter:i}){return t.jsx(q,{scope:e,categories:o,showScope:a,scopeFormatter:i,children:t.jsx(V,{})})}const X=I.div`
2
2
  .log-controls {
3
3
  display: flex;
4
4
  justify-content: space-between;
@@ -1 +1 @@
1
- import{j as o,a1 as n}from"./index-Bdg2hH7J.js";function r({...t}){return o.jsx(n,{className:"bottom-button",variant:"contained",color:"primary",...t})}export{r as S};
1
+ import{j as o,a1 as n}from"./index-Bjf6Qdid.js";function r({...t}){return o.jsx(n,{className:"bottom-button",variant:"contained",color:"primary",...t})}export{r as S};
@@ -1 +1 @@
1
- import{r as i,a0 as s,j as t,fq as r,P as c}from"./index-Bdg2hH7J.js";function n({children:p,...e}){const{t:o}=i.useContext(s);return t.jsx(r,{tip:o("common.copyTip"),copiedTip:o("common.copiedTip"),...e,children:p})}n.propTypes={children:c.any.isRequired};export{n as C};
1
+ import{r as i,a0 as s,j as t,fq as r,P as c}from"./index-Bjf6Qdid.js";function n({children:p,...e}){const{t:o}=i.useContext(s);return t.jsx(r,{tip:o("common.copyTip"),copiedTip:o("common.copiedTip"),...e,children:p})}n.propTypes={children:c.any.isRequired};export{n as C};
@@ -1,4 +1,4 @@
1
- import{Z as d,u as U,r as n,aj as C,ak as T,j as t,m as B,B as h,fP as _,c as $,a4 as F,a5 as A,s as I,fy as M,fQ as N,P as z,F as O,an as Q}from"./index-Bdg2hH7J.js";import{L as W}from"./launch-result-message-DlfUpqsM.js";import{S as v}from"./button-Bfs5dmJW.js";import{S as X}from"./layout-B0gSHs6T.js";import"./Close-qW-xij4G.js";import"./content-layout-CvCSD7Cn.js";const H=d(W)`
1
+ import{Z as d,u as U,r as n,aj as C,ak as T,j as t,m as B,B as h,fP as _,c as $,a4 as F,a5 as A,s as I,fy as M,fQ as N,P as z,F as O,an as Q}from"./index-Bjf6Qdid.js";import{L as W}from"./launch-result-message-B4GHaPTO.js";import{S as v}from"./button-rv9kaUKM.js";import{S as X}from"./layout-X3oLtCG6.js";import"./Close-CbUjGQb5.js";import"./content-layout-Cpg-pb6u.js";const H=d(W)`
2
2
  && .result-footer {
3
3
  height: 120px;
4
4
  > div {
@@ -1,4 +1,4 @@
1
- import{gF as Kp,m as Ut,gG as Qp,gH as Xp,fs as Zp,gI as Jp,gJ as em,B as le,gE as tm,gK as nm,gL as rm,bZ as am,gM as om,gN as im,aR as lm,gO as sm,gP as um,as as _t,j as x,X as Yt,Y as de,u as pt,aP as st,aY as on,a as Gt,P as K,s as Oe,ct as We,gQ as Ne,r as R,cq as Xe,b7 as vi,eE as ke,cu as Mc,gR as cm,fp as re,aE as Fe,aF as Ve,aG as ae,T as Ct,aK as z,cH as qr,aJ as we,cD as ia,aN as Be,eF as dm,d0 as la,cM as sa,gS as Oc,dk as _c,cI as fm,cg as mn,ai as vr,aC as et,aH as pm,d1 as Ic,b as fn,cT as Ac,bm as mm,ah as hm,gT as gm,cN as Fa,dx as bm,cU as Xo,gU as Kl,cS as Zo,$ as ua,gV as vm,ez as Ql,gW as ym,dI as yi,gX as Cm,cw as wm,Z as ot,a0 as Kt,aX as sr,a9 as Ot,a7 as ze,bl as hn,gY as Dm,f7 as rn,f4 as Ci,fd as Jo,at as wi,aT as Mt,F as me,fQ as Lc,gd as jc,gZ as xm,e as Pm,c as Bc,aV as er,ae as Va,g_ as Tm,bE as nn,a1 as Er,cR as Xl}from"./index-Bdg2hH7J.js";import{d as $c}from"./Add-CVYAN2n2.js";import{E as Sm,d as Di,F as km,a as xi,L as Pi}from"./Edit-Dl7Da72r.js";import{E as Em}from"./index-Ci6IWDWf.js";import{g as Rm,h as Mm,W as gn,i as Om,j as Ti,B as Nc,a as Fc,k as _m,l as Im}from"./dashboard-WQeB59iZ.js";import{S as Am}from"./switch-control-D9hjlMId.js";import{P as ei,w as xn}from"./permission-ClswWE64.js";import{b as Lm,t as jm,c as Zl,T as Bm}from"./index-DNlUUcTz.js";import{r as Pn,V as $m,R as Nm,F as Fm,C as Vm,a as zm,e as Wm,g as It,f as Rt,s as ca,h as ln,q as Vc,p as Si,k as zc,m as qm,l as Um,i as Tn,c as sn,d as da,o as Gm,n as Hm,v as Wc,y as Ym,w as Km,x as Qm,j as Xm,u as Zm,t as Jm,b as eh,z as Jl,D as th,A as nh}from"./FilterList-CH2nj31H.js";import{d as rh,_ as te,G as tr,b as es,c as ah,e as oh,f as ih}from"./redux-_YFRGxHq.js";import{S as lh,d as sh}from"./Search-YlhHuO6O.js";import{C as uh,r as De,a as ki,t as lt,b as ye,e as ti,d as ch,s as Ur,g as ni,m as qc,c as Uc,f as dh,h as fh,i as ri,j as Gc,k as ph,l as mh,n as Hc,o as Ei,p as ts,q as hh,u as ns,v as gh,w as bh,x as $t,y as vh,z as rs,A as yh,B as za,D as as,E as Ch,F as Rr,G as cn,H as wh,I as Dh,J as Mr,K as Wa,L as Or,M as qa,N as Ua,O as xh,P as Ph,Q as Th,R as Sh,S as kh,T as Eh,U as Rh,V as Mh,W as Oh,X as _h,Y as Ih,Z as Ah}from"./index-DiWAz-Pl.js";import{C as Lh,d as os,B as jh}from"./ChevronRight-BQxGComx.js";import{D as Bh}from"./DeleteOutline-BBqJ5_Hu.js";import{A as $h}from"./AddBox-DnwcDko1.js";import{o as Nh,e as Fh,i as Vh,p as zh,g as Wh,d as is,c as qh,b as Ee,_ as Te,r as Qt}from"./slicedToArray-Ci6zdtll.js";import{t as Uh,k as Gh,l as Hh,_ as Se}from"./jss-plugin-props-sort.esm-D8X7o2pr.js";import{F as Yh,f as Kh,a as Qh,T as ut}from"./TextField-BYfKGYpN.js";import{_ as Xh}from"./toPropertyKey-PLuKRk1e.js";import{u as Ae}from"./useThemeProps-_7k5Wu1c.js";import{S as Zh}from"./Skeleton-D1F5dy2x.js";import{I as Yc,g as Jh,i as eg}from"./InputAdornment-tlUB0OtI.js";import{m as tt,t as tg}from"./toUpper-DiCihDmj.js";import{C as ls}from"./click-to-copy-D14O9X1o.js";import{d as yr}from"./Delete-CRriNkym.js";import{d as ng}from"./ArrowDropDown-B3gw7vQE.js";import{A as ss}from"./Alert-bzh-1cuw.js";import{f as bt}from"./format-error-Blif5aTO.js";import{A as rg,a as ag,b as og,d as Kc,B as ig,f as lg}from"./add-component-core-HIykDunt.js";import{C as Sn}from"./confirm-CnJhc68Q.js";import{v as sg,a as Gr}from"./util-C2KlfrNA.js";import{i as ug}from"./index--iA86Fqj.js";import{d as cg}from"./LockIcon-XG87P4do.js";import{d as Qc}from"./Launch-Ddq1J5R1.js";import{C as dg}from"./item-DxzYKgGj.js";import{A as fg}from"./Avatar-CDgX4gdS.js";import{L as Ri}from"./Link-NMapyzp6.js";import{d as pg}from"./InfoOutlined-CDKG5pPz.js";import{R as mg,a as us}from"./RadioGroup-DiH-c46e.js";import{F as ai,C as hg}from"./FormControlLabel-DGbEY6m8.js";import{d as gg}from"./PlayArrow-By-kmerY.js";import{A as Xc}from"./actions-HNNA8mAr.js";import{I as Ga}from"./index-ZShT0NT3.js";import{W as bg}from"./did-address-B8vaNsMa.js";import{T as vg}from"./index-ByD4ydGX.js";import{a as yg}from"./index-D3CByOWX.js";import"./Done-DCkMGid3.js";import"./logo-uploader-ClUYYxL1.js";import"./index-_F8kdc8Q.js";import"./EditIcon-CqMuLEHT.js";import"./ButtonGroup-XCe_4Dd6.js";import"./useLocalStorage-DvZZwTDC.js";import"./MoreVert-VUWyXDsQ.js";import"./ListItemText-OVWUZ8Yw.js";import"./session-CBJgIJsY.js";import"./useSetState-BpZL0m-H.js";import"./fallback-l6x8Ufow.js";import"./index-BS9TWd2p.js";import"./Toolbar-B_xj2T9O.js";import"./Hidden-BYIvIL0k.js";import"./index-BnWtXVAz.js";import"./selector-YK8Xf2Rq.js";import"./useAsync-CbQ86h-f.js";import"./FormControl-DE9N6Db0.js";import"./useFormControl-CDmRrmKw.js";import"./FormGroup-n5wwFjBA.js";import"./InputLabel-D2kHO3Su.js";import"./Select-DxpmtgW4.js";import"./LastPage-bpkDUtUD.js";import"./useSlot-DxWJyNOJ.js";import"./lottie-7e9js8BB.js";import"./index-255o-u6L.js";import"./spaces-Cz9_Xdg_.js";import"./api-D5rmifNl.js";import"./url-join-Cc5MbaZB.js";import"./launch-result-message-DlfUpqsM.js";import"./Close-qW-xij4G.js";import"./page-header-Dlu4P1xk.js";import"./uniqBy-Blkjf7ps.js";import"./index-DTg4Ig3M.js";import"./Google-BL_kfN9f.js";import"./index-cVr26mKy.js";import"./index-BA1LIiSA.js";import"./Stepper-DGOl59kQ.js";import"./connect-to-NQzylv_u.js";import"./use-blocklet-info-for-connect-did-spaces-BNPOv7wG.js";import"./CloseOutlined-WD0GWqZM.js";import"./index-wK8MJeLI.js";import"./ExpandMore-Br1x9msZ.js";import"./content-layout-CvCSD7Cn.js";import"./preact.module-DJUF--8d.js";import"./shorten-label-CeQzn9-u.js";import"./MoreHoriz-c2PDP89o.js";const Cg=Object.freeze(Object.defineProperty({__proto__:null,circularProgressClasses:Kp,default:Ut,getCircularProgressUtilityClass:Qp},Symbol.toStringTag,{value:"Module"})),wg=Object.freeze(Object.defineProperty({__proto__:null,collapseClasses:Xp,default:Zp,getCollapseUtilityClass:Jp},Symbol.toStringTag,{value:"Module"})),Dg=Object.freeze(Object.defineProperty({__proto__:null,boxClasses:em,default:le},Symbol.toStringTag,{value:"Module"})),xg=Object.freeze(Object.defineProperty({__proto__:null,default:Yh,formHelperTextClasses:Kh,getFormHelperTextUtilityClasses:Qh},Symbol.toStringTag,{value:"Module"})),Pg=Object.freeze(Object.defineProperty({__proto__:null,default:tm,getIconUtilityClass:nm,iconClasses:rm},Symbol.toStringTag,{value:"Module"})),Tg=Object.freeze(Object.defineProperty({__proto__:null,default:Yc,getInputAdornmentUtilityClass:Jh,inputAdornmentClasses:eg},Symbol.toStringTag,{value:"Module"})),Sg=Object.freeze(Object.defineProperty({__proto__:null,default:am,getLinearProgressUtilityClass:om,linearProgressClasses:im},Symbol.toStringTag,{value:"Module"})),kg=Object.freeze(Object.defineProperty({__proto__:null,default:lm,getMenuUtilityClass:sm,menuClasses:um},Symbol.toStringTag,{value:"Module"})),Eg=_t(x.jsx("path",{d:"M14.17 5 19 9.83V19H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.41l-4.83-4.83c-.37-.38-.88-.59-1.41-.59M7 15h10v2H7zm0-4h10v2H7zm0-4h7v2H7z"}),"TextSnippetOutlined");var Mi={},Rg=de;Object.defineProperty(Mi,"__esModule",{value:!0});var Zc=Mi.default=void 0,Mg=Rg(Yt()),Og=x;Zc=Mi.default=(0,Mg.default)((0,Og.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");var Oi={},_g=de;Object.defineProperty(Oi,"__esModule",{value:!0});var Jc=Oi.default=void 0,Ig=_g(Yt()),Ag=x;Jc=Oi.default=(0,Ig.default)((0,Ag.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");function _i({children:e,...t}){var s;const{t:n}=pt(),{api:a}=st(),{blocklet:r}=on(),o=(s=r==null?void 0:r.settings)==null?void 0:s.autoCheckUpdate,i=async f=>{await a.updateAutoCheckUpdate({input:{did:r.meta.did,autoCheckUpdate:f}})},l=async()=>{try{const f=!(o!=null&&o.enabled);await i({enabled:f}),Oe.success(n(f?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(f){Oe.error(f.message)}},u=!!(o!=null&&o.enabled);return x.jsxs(le,{display:"flex",flexDirection:"row",alignItems:"center",children:[e,x.jsx(Gt,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:x.jsx("div",{children:x.jsx(Am,{checked:u,onChange:l,name:"enableWelcomePage",style:{...t.style,zoom:.8}})})})]})}_i.propTypes={children:K.any};_i.defaultProps={children:null};var ed={},Ln={},Ha={},Ya={},Ka={};const td=We(Cg);var cs;function Lg(){return cs||(cs=1,function(e){var t=de;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ne),a=t(td),r=t(R),o=t(Xe),i=Pn;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,c){return r.default.createElement(l,(0,n.default)({},f,{forwardedRef:c}))});e.default=u}(Ka)),Ka}var Qa={},Xa={},Dt={};const Je=We(rh),jg={BASE_URL:"/.well-known/service/static",DEV:!1,MODE:"production",PROD:!0,SSR:!1},ds=e=>{let t;const n=new Set,a=(f,c)=>{const p=typeof f=="function"?f(t):f;if(!Object.is(p,t)){const g=t;t=c??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(y=>y(t,g))}},r=()=>t,u={setState:a,getState:r,getInitialState:()=>s,subscribe:f=>(n.add(f),()=>n.delete(f)),destroy:()=>{(jg?"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},nd=e=>e?ds(e):ds;var rd={exports:{}},ad={},od={exports:{}},id={};/**
1
+ import{gF as Kp,m as Ut,gG as Qp,gH as Xp,fs as Zp,gI as Jp,gJ as em,B as le,gE as tm,gK as nm,gL as rm,bZ as am,gM as om,gN as im,aR as lm,gO as sm,gP as um,as as _t,j as x,X as Yt,Y as de,u as pt,aP as st,aY as on,a as Gt,P as K,s as Oe,ct as We,gQ as Ne,r as R,cq as Xe,b7 as vi,eE as ke,cu as Mc,gR as cm,fp as re,aE as Fe,aF as Ve,aG as ae,T as Ct,aK as z,cH as qr,aJ as we,cD as ia,aN as Be,eF as dm,d0 as la,cM as sa,gS as Oc,dk as _c,cI as fm,cg as mn,ai as vr,aC as et,aH as pm,d1 as Ic,b as fn,cT as Ac,bm as mm,ah as hm,gT as gm,cN as Fa,dx as bm,cU as Xo,gU as Kl,cS as Zo,$ as ua,gV as vm,ez as Ql,gW as ym,dI as yi,gX as Cm,cw as wm,Z as ot,a0 as Kt,aX as sr,a9 as Ot,a7 as ze,bl as hn,gY as Dm,f7 as rn,f4 as Ci,fd as Jo,at as wi,aT as Mt,F as me,fQ as Lc,gd as jc,gZ as xm,e as Pm,c as Bc,aV as er,ae as Va,g_ as Tm,bE as nn,a1 as Er,cR as Xl}from"./index-Bjf6Qdid.js";import{d as $c}from"./Add-BQ57PY_a.js";import{E as Sm,d as Di,F as km,a as xi,L as Pi}from"./Edit-CPH5rsyf.js";import{E as Em}from"./index-cmxabTfW.js";import{g as Rm,h as Mm,W as gn,i as Om,j as Ti,B as Nc,a as Fc,k as _m,l as Im}from"./dashboard-Cy3erg8C.js";import{S as Am}from"./switch-control-Dmb8A7P7.js";import{P as ei,w as xn}from"./permission-CbOj_2Bp.js";import{b as Lm,t as jm,c as Zl,T as Bm}from"./index-btzBjGHI.js";import{r as Pn,V as $m,R as Nm,F as Fm,C as Vm,a as zm,e as Wm,g as It,f as Rt,s as ca,h as ln,q as Vc,p as Si,k as zc,m as qm,l as Um,i as Tn,c as sn,d as da,o as Gm,n as Hm,v as Wc,y as Ym,w as Km,x as Qm,j as Xm,u as Zm,t as Jm,b as eh,z as Jl,D as th,A as nh}from"./FilterList-dGVsmxZ3.js";import{d as rh,_ as te,G as tr,b as es,c as ah,e as oh,f as ih}from"./redux-_iDVOyi8.js";import{S as lh,d as sh}from"./Search-BkeqStVj.js";import{C as uh,r as De,a as ki,t as lt,b as ye,e as ti,d as ch,s as Ur,g as ni,m as qc,c as Uc,f as dh,h as fh,i as ri,j as Gc,k as ph,l as mh,n as Hc,o as Ei,p as ts,q as hh,u as ns,v as gh,w as bh,x as $t,y as vh,z as rs,A as yh,B as za,D as as,E as Ch,F as Rr,G as cn,H as wh,I as Dh,J as Mr,K as Wa,L as Or,M as qa,N as Ua,O as xh,P as Ph,Q as Th,R as Sh,S as kh,T as Eh,U as Rh,V as Mh,W as Oh,X as _h,Y as Ih,Z as Ah}from"./index-CbrpFuSe.js";import{C as Lh,d as os,B as jh}from"./ChevronRight-WucQQYYR.js";import{D as Bh}from"./DeleteOutline-BtczblDR.js";import{A as $h}from"./AddBox-DiQsIzo9.js";import{o as Nh,e as Fh,i as Vh,p as zh,g as Wh,d as is,c as qh,b as Ee,_ as Te,r as Qt}from"./slicedToArray-CyVkNUew.js";import{t as Uh,k as Gh,l as Hh,_ as Se}from"./jss-plugin-props-sort.esm-BalOwz5A.js";import{F as Yh,f as Kh,a as Qh,T as ut}from"./TextField-Bc5irjLS.js";import{_ as Xh}from"./toPropertyKey-PLuKRk1e.js";import{u as Ae}from"./useThemeProps-CeQMvkv6.js";import{S as Zh}from"./Skeleton-lGeaUybJ.js";import{I as Yc,g as Jh,i as eg}from"./InputAdornment-BkdyuJyy.js";import{m as tt,t as tg}from"./toUpper-CuGm8bjT.js";import{C as ls}from"./click-to-copy-C4ONmU_N.js";import{d as yr}from"./Delete-DMiA4kv4.js";import{d as ng}from"./ArrowDropDown-CSr70fBb.js";import{A as ss}from"./Alert-smpImqp0.js";import{f as bt}from"./format-error-B_0jV3Iv.js";import{A as rg,a as ag,b as og,d as Kc,B as ig,f as lg}from"./add-component-core-Dk4Djy0q.js";import{C as Sn}from"./confirm-D8z1ysLZ.js";import{v as sg,a as Gr}from"./util-CTNXgq32.js";import{i as ug}from"./index-mLiByM5-.js";import{d as cg}from"./LockIcon-BKdiP0Z8.js";import{d as Qc}from"./Launch-CSUzNHYL.js";import{C as dg}from"./item-BkNGiSLA.js";import{A as fg}from"./Avatar-C9lcmTAE.js";import{L as Ri}from"./Link-CFWQfHB5.js";import{d as pg}from"./InfoOutlined-738pp2yB.js";import{R as mg,a as us}from"./RadioGroup-DpVC0gNI.js";import{F as ai,C as hg}from"./FormControlLabel-DJAqgLGE.js";import{d as gg}from"./PlayArrow-BKJw1eVI.js";import{A as Xc}from"./actions-DwpIAZdn.js";import{I as Ga}from"./index-_qSOGZvF.js";import{W as bg}from"./did-address-5rmeRrux.js";import{T as vg}from"./index-CufrwE5d.js";import{a as yg}from"./index-BpIS7xUe.js";import"./Done-Bbviheoa.js";import"./logo-uploader-DSVH1NS6.js";import"./index-D8LJCIGN.js";import"./EditIcon-Dzqx6EGV.js";import"./ButtonGroup-Cj4y31z5.js";import"./useLocalStorage-B61hus9l.js";import"./MoreVert-D0MHc_oA.js";import"./ListItemText-54aRex6i.js";import"./session-WfO9rlPi.js";import"./useSetState-De5jz-QS.js";import"./fallback-DeSV2xkv.js";import"./index-D_o4YQXA.js";import"./Toolbar-CA_h5A9p.js";import"./Hidden-Cq8zZFLO.js";import"./index-Bbkb50i_.js";import"./selector-DKnQRsyi.js";import"./useAsync-CNA6CF-4.js";import"./FormControl-Us_liKuz.js";import"./useFormControl-CLJPjR4P.js";import"./FormGroup-BbGcDOoo.js";import"./InputLabel--WV9lBJk.js";import"./Select-B2Prj2qE.js";import"./LastPage-DsSBN78H.js";import"./useSlot-BdDJZvLo.js";import"./lottie-D-0y0bjd.js";import"./index-BJalpuBM.js";import"./spaces-BCq3rAVa.js";import"./api-B0Ezcc20.js";import"./url-join-DxMZuH7a.js";import"./launch-result-message-B4GHaPTO.js";import"./Close-CbUjGQb5.js";import"./page-header-CaBVBbM_.js";import"./uniqBy-B-B5GbKo.js";import"./index-DLyTsUFY.js";import"./Google-CgL8P0c3.js";import"./index-Bj_zBfXt.js";import"./index-Dsb2xjqK.js";import"./Stepper-DUoEJ9pB.js";import"./connect-to-DNz_WDCc.js";import"./use-blocklet-info-for-connect-did-spaces-l_qg8Xo8.js";import"./CloseOutlined-CA8ATDOK.js";import"./index-C0TcPNfP.js";import"./ExpandMore-BLPbGEUk.js";import"./content-layout-Cpg-pb6u.js";import"./preact.module-DJUF--8d.js";import"./shorten-label-uDRMuqOz.js";import"./MoreHoriz-DCig5-7z.js";const Cg=Object.freeze(Object.defineProperty({__proto__:null,circularProgressClasses:Kp,default:Ut,getCircularProgressUtilityClass:Qp},Symbol.toStringTag,{value:"Module"})),wg=Object.freeze(Object.defineProperty({__proto__:null,collapseClasses:Xp,default:Zp,getCollapseUtilityClass:Jp},Symbol.toStringTag,{value:"Module"})),Dg=Object.freeze(Object.defineProperty({__proto__:null,boxClasses:em,default:le},Symbol.toStringTag,{value:"Module"})),xg=Object.freeze(Object.defineProperty({__proto__:null,default:Yh,formHelperTextClasses:Kh,getFormHelperTextUtilityClasses:Qh},Symbol.toStringTag,{value:"Module"})),Pg=Object.freeze(Object.defineProperty({__proto__:null,default:tm,getIconUtilityClass:nm,iconClasses:rm},Symbol.toStringTag,{value:"Module"})),Tg=Object.freeze(Object.defineProperty({__proto__:null,default:Yc,getInputAdornmentUtilityClass:Jh,inputAdornmentClasses:eg},Symbol.toStringTag,{value:"Module"})),Sg=Object.freeze(Object.defineProperty({__proto__:null,default:am,getLinearProgressUtilityClass:om,linearProgressClasses:im},Symbol.toStringTag,{value:"Module"})),kg=Object.freeze(Object.defineProperty({__proto__:null,default:lm,getMenuUtilityClass:sm,menuClasses:um},Symbol.toStringTag,{value:"Module"})),Eg=_t(x.jsx("path",{d:"M14.17 5 19 9.83V19H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.41l-4.83-4.83c-.37-.38-.88-.59-1.41-.59M7 15h10v2H7zm0-4h10v2H7zm0-4h7v2H7z"}),"TextSnippetOutlined");var Mi={},Rg=de;Object.defineProperty(Mi,"__esModule",{value:!0});var Zc=Mi.default=void 0,Mg=Rg(Yt()),Og=x;Zc=Mi.default=(0,Mg.default)((0,Og.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");var Oi={},_g=de;Object.defineProperty(Oi,"__esModule",{value:!0});var Jc=Oi.default=void 0,Ig=_g(Yt()),Ag=x;Jc=Oi.default=(0,Ig.default)((0,Ag.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");function _i({children:e,...t}){var s;const{t:n}=pt(),{api:a}=st(),{blocklet:r}=on(),o=(s=r==null?void 0:r.settings)==null?void 0:s.autoCheckUpdate,i=async f=>{await a.updateAutoCheckUpdate({input:{did:r.meta.did,autoCheckUpdate:f}})},l=async()=>{try{const f=!(o!=null&&o.enabled);await i({enabled:f}),Oe.success(n(f?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(f){Oe.error(f.message)}},u=!!(o!=null&&o.enabled);return x.jsxs(le,{display:"flex",flexDirection:"row",alignItems:"center",children:[e,x.jsx(Gt,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:x.jsx("div",{children:x.jsx(Am,{checked:u,onChange:l,name:"enableWelcomePage",style:{...t.style,zoom:.8}})})})]})}_i.propTypes={children:K.any};_i.defaultProps={children:null};var ed={},Ln={},Ha={},Ya={},Ka={};const td=We(Cg);var cs;function Lg(){return cs||(cs=1,function(e){var t=de;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ne),a=t(td),r=t(R),o=t(Xe),i=Pn;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,c){return r.default.createElement(l,(0,n.default)({},f,{forwardedRef:c}))});e.default=u}(Ka)),Ka}var Qa={},Xa={},Dt={};const Je=We(rh),jg={BASE_URL:"/.well-known/service/static",DEV:!1,MODE:"production",PROD:!0,SSR:!1},ds=e=>{let t;const n=new Set,a=(f,c)=>{const p=typeof f=="function"?f(t):f;if(!Object.is(p,t)){const g=t;t=c??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(y=>y(t,g))}},r=()=>t,u={setState:a,getState:r,getInitialState:()=>s,subscribe:f=>(n.add(f),()=>n.delete(f)),destroy:()=>{(jg?"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},nd=e=>e?ds(e):ds;var rd={exports:{}},ad={},od={exports:{}},id={};/**
2
2
  * @license React
3
3
  * use-sync-external-store-shim.production.min.js
4
4
  *
@@ -1 +1 @@
1
- import{X as t,Y as a,j as c,F as e}from"./index-Bdg2hH7J.js";var r={},u=a;Object.defineProperty(r,"__esModule",{value:!0});var n=r.default=void 0,v=u(t()),d=c;n=r.default=(0,v.default)((0,d.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var o={},p=a;Object.defineProperty(o,"__esModule",{value:!0});var l=o.default=void 0,_=p(t()),f=c;l=o.default=(0,_.default)((0,f.jsx)("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"}),"ContactMail");var i={},h=a;Object.defineProperty(i,"__esModule",{value:!0});var s=i.default=void 0,m=h(t()),C=c;s=i.default=(0,m.default)((0,C.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public");const j=[{value:e.WHO_CAN_ACCESS.ALL,icon:s,title:{zh:"所有人可访问",en:"Accessible to all"},description:{zh:"向所有人开放,无需通行证即可访问应用",en:"Open to the world anyone can access without passport"}},{value:e.WHO_CAN_ACCESS.INVITED,icon:l,title:{zh:"只有被邀请的人可以访问",en:"Only invited people can access"},description:{zh:"稍后您可以在管理页面中邀请成员",en:"You can invite members later in the admin page"}},{value:e.WHO_CAN_ACCESS.OWNER,icon:n,title:{zh:"只有应用所有者可以访问",en:"Only Owner of the blocklet can access"},description:{zh:"必须提供所有者通行证才能访问应用",en:"You must provide owner passport to access this application"}}];export{j as A};
1
+ import{X as t,Y as a,j as c,F as e}from"./index-Bjf6Qdid.js";var r={},u=a;Object.defineProperty(r,"__esModule",{value:!0});var n=r.default=void 0,v=u(t()),d=c;n=r.default=(0,v.default)((0,d.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var o={},p=a;Object.defineProperty(o,"__esModule",{value:!0});var l=o.default=void 0,_=p(t()),f=c;l=o.default=(0,_.default)((0,f.jsx)("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"}),"ContactMail");var i={},h=a;Object.defineProperty(i,"__esModule",{value:!0});var s=i.default=void 0,m=h(t()),C=c;s=i.default=(0,m.default)((0,C.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public");const j=[{value:e.WHO_CAN_ACCESS.ALL,icon:s,title:{zh:"所有人可访问",en:"Accessible to all"},description:{zh:"向所有人开放,无需通行证即可访问应用",en:"Open to the world anyone can access without passport"}},{value:e.WHO_CAN_ACCESS.INVITED,icon:l,title:{zh:"只有被邀请的人可以访问",en:"Only invited people can access"},description:{zh:"稍后您可以在管理页面中邀请成员",en:"You can invite members later in the admin page"}},{value:e.WHO_CAN_ACCESS.OWNER,icon:n,title:{zh:"只有应用所有者可以访问",en:"Only Owner of the blocklet can access"},description:{zh:"必须提供所有者通行证才能访问应用",en:"You must provide owner passport to access this application"}}];export{j as A};
@@ -1,4 +1,4 @@
1
- import{r as l,j as n,Z as I,P as g,$ as F,u as U,aj as q,bp as G,a9 as d,c as M,F as z,a7 as P,f6 as H,bV as D,s as Y}from"./index-Bdg2hH7J.js";import{u as $}from"./uniqBy-Blkjf7ps.js";import{S as Q}from"./index-DTg4Ig3M.js";import{P as V}from"./page-header-Dlu4P1xk.js";import{S as W}from"./layout-B0gSHs6T.js";import{S as X}from"./step-actions-BvzypTeZ.js";import{S as Z}from"./button-Bfs5dmJW.js";import"./EditIcon-CqMuLEHT.js";import"./Done-DCkMGid3.js";import"./Google-BL_kfN9f.js";import"./TextField-BYfKGYpN.js";import"./FormControl-DE9N6Db0.js";import"./useFormControl-CDmRrmKw.js";import"./InputLabel-D2kHO3Su.js";import"./Select-DxpmtgW4.js";import"./logo-uploader-ClUYYxL1.js";import"./index-_F8kdc8Q.js";import"./content-layout-CvCSD7Cn.js";function x({children:C,bottom:E,onBottomFix:f}){const i=l.useRef(null),s=l.useRef(null),m=l.useRef(null),r=l.useRef(null),[L,h]=l.useState(!1);return l.useEffect(()=>{let t;const a=()=>{t||(t=setTimeout(()=>{s.current&&(s.current.scrollHeight>i.current.clientHeight-m.current.clientHeight?(r.current!=="fix"&&(f("fix"),r.current="fix"),h(!0)):(r.current!=="scroll"&&(f("scroll"),r.current="scroll"),h(!1))),t=null},50))};let u;return window.ResizeObserver?u=new ResizeObserver(a):window.addEventListener("resize",a),u.observe(i.current),u.observe(s.current),()=>{u?u.disconnect():window.removeEventListener("resize",a),t&&clearTimeout(t)}},[f]),n.jsxs(J,{ref:i,className:`${L?"scroll-mode":""}`,children:[n.jsx("div",{className:"compact-context",ref:s,children:C}),n.jsx("div",{className:"fix-container",ref:m,children:E})]})}const J=I.div`
1
+ import{r as l,j as n,Z as I,P as g,$ as F,u as U,aj as q,bp as G,a9 as d,c as M,F as z,a7 as P,f6 as H,bV as D,s as Y}from"./index-Bjf6Qdid.js";import{u as $}from"./uniqBy-B-B5GbKo.js";import{S as Q}from"./index-DLyTsUFY.js";import{P as V}from"./page-header-CaBVBbM_.js";import{S as W}from"./layout-X3oLtCG6.js";import{S as X}from"./step-actions-Bvy2nc4B.js";import{S as Z}from"./button-rv9kaUKM.js";import"./EditIcon-Dzqx6EGV.js";import"./Done-Bbviheoa.js";import"./Google-CgL8P0c3.js";import"./TextField-Bc5irjLS.js";import"./FormControl-Us_liKuz.js";import"./useFormControl-CLJPjR4P.js";import"./InputLabel--WV9lBJk.js";import"./Select-B2Prj2qE.js";import"./logo-uploader-DSVH1NS6.js";import"./index-D8LJCIGN.js";import"./content-layout-Cpg-pb6u.js";function x({children:C,bottom:E,onBottomFix:f}){const i=l.useRef(null),s=l.useRef(null),m=l.useRef(null),r=l.useRef(null),[L,h]=l.useState(!1);return l.useEffect(()=>{let t;const a=()=>{t||(t=setTimeout(()=>{s.current&&(s.current.scrollHeight>i.current.clientHeight-m.current.clientHeight?(r.current!=="fix"&&(f("fix"),r.current="fix"),h(!0)):(r.current!=="scroll"&&(f("scroll"),r.current="scroll"),h(!1))),t=null},50))};let u;return window.ResizeObserver?u=new ResizeObserver(a):window.addEventListener("resize",a),u.observe(i.current),u.observe(s.current),()=>{u?u.disconnect():window.removeEventListener("resize",a),t&&clearTimeout(t)}},[f]),n.jsxs(J,{ref:i,className:`${L?"scroll-mode":""}`,children:[n.jsx("div",{className:"compact-context",ref:s,children:C}),n.jsx("div",{className:"fix-container",ref:m,children:E})]})}const J=I.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{_ as Ur,r as P,cu as ze,eM as nt,cq as Vr,gn as ri,dI as Ct,fp as D,aK as ie,ey as oi,b7 as Bt,P as b,eE as V,ct as ii,j as T,bE as se,gb as ai,u as et,cy as Ue,B as fe,T as ge,a$ as li,dM as si,b6 as Kr,ba as qr,b4 as ci,b5 as di,b9 as ui,go as hi,gp as fi,gq as pi,gr as gi,eR as vi,gs as mi,eQ as Si,cr as hn,fI as yi,fd as _i,bf as Qr,aT as gt,O as Ut,aC as Ge,bi as Ci,b as fn,aY as Vt,a9 as Gt,c1 as Oe,gt as Gn,c as Xr,bG as wi,gu as Wn,bV as xi,s as ct,du as dt,at as bi,a1 as Ri,gv as Ti,bW as Ii,dq as Yr,F as At,gw as zi,gx as Di,f5 as Pi,Z as Oi,$ as ki,ah as Zt,bC as Ni,ff as Mi,bD as Re}from"./index-Bdg2hH7J.js";import{r as Li,b as Ei,i as Hn,c as Ai,d as $n,D as ji,H as Fi}from"./index-cHjJj_dG.js";import{_ as te,a as Ve,b as ve,c as me,d as Se,r as Gi}from"./slicedToArray-Ci6zdtll.js";import{_ as re,i as Wi,f as Hi,j as $i,a as Bi,c as Ui,d as Vi,b as Ki,e as qi,g as Qi,h as Xi}from"./jss-plugin-props-sort.esm-D8X7o2pr.js";import{_ as w,G as Bn}from"./redux-_YFRGxHq.js";import{_ as Yi}from"./toPropertyKey-PLuKRk1e.js";import{_ as Ji,u as Jr,b as Zi}from"./dashboard-WQeB59iZ.js";import{u as ea,C as rt,A as ta}from"./index.esm-MqNtIWnn.js";import{p as na}from"./index-BA1LIiSA.js";import{u as ra}from"./index-CvAjMcvY.js";import{F as _n}from"./FormControl-DE9N6Db0.js";import{I as Zr}from"./InputLabel-D2kHO3Su.js";import{S as pn,O as oa}from"./Select-DxpmtgW4.js";import{a as ia}from"./ListItemText-OVWUZ8Yw.js";import{F as aa,T as en}from"./TextField-BYfKGYpN.js";import{b as la,c as Un}from"./index-DNlUUcTz.js";import{I as Vn}from"./InputAdornment-tlUB0OtI.js";import{H as sa,F as ca}from"./index-CWfGuhnW.js";import{D as da}from"./index-BnWtXVAz.js";import{S as tn}from"./Skeleton-D1F5dy2x.js";import{f as Kn}from"./format-error-Blif5aTO.js";import{B as nn}from"./ButtonGroup-XCe_4Dd6.js";import{T as qn}from"./Toolbar-B_xj2T9O.js";import{L as Qn}from"./LoadingButton-TfmYHzFH.js";import"./useLocalStorage-DvZZwTDC.js";import"./MoreVert-VUWyXDsQ.js";import"./confirm-CnJhc68Q.js";import"./Alert-bzh-1cuw.js";import"./useSlot-DxWJyNOJ.js";import"./Delete-CRriNkym.js";import"./PlayArrow-By-kmerY.js";import"./RadioGroup-DiH-c46e.js";import"./FormControlLabel-DGbEY6m8.js";import"./useFormControl-CDmRrmKw.js";import"./FormGroup-n5wwFjBA.js";import"./Avatar-CDgX4gdS.js";import"./session-CBJgIJsY.js";import"./permission-ClswWE64.js";import"./useAsync-CbQ86h-f.js";import"./index-ByD4ydGX.js";import"./Link-NMapyzp6.js";import"./useSetState-BpZL0m-H.js";import"./fallback-l6x8Ufow.js";import"./index-BS9TWd2p.js";import"./Hidden-BYIvIL0k.js";import"./ExpandMore-Br1x9msZ.js";import"./selector-YK8Xf2Rq.js";import"./useThemeProps-_7k5Wu1c.js";function ua(n,o){var r=Ur(P.useState(n),2),e=r[0],t=r[1],i=P.useMemo(function(){var a=!n,l=function(){return t(function(u){return u===n?a:n})},s=function(u){return t(u)},d=function(){return t(n)},c=function(){return t(a)};return{toggle:l,set:s,setLeft:d,setRight:c}},[]);return[e,i]}function ha(n){var o=Ur(ua(!!n),2),r=o[0],e=o[1],t=e.toggle,i=e.set,a=P.useMemo(function(){var l=function(){return i(!0)},s=function(){return i(!1)};return{toggle:t,set:function(d){return i(!!d)},setTrue:l,setFalse:s}},[]);return[r,a]}var Pe={},eo="Expected a function",Xn=NaN,fa="[object Symbol]",pa=/^\s+|\s+$/g,ga=/^[-+]0x[0-9a-f]+$/i,va=/^0b[01]+$/i,ma=/^0o[0-7]+$/i,Sa=parseInt,ya=typeof ze=="object"&&ze&&ze.Object===Object&&ze,_a=typeof self=="object"&&self&&self.Object===Object&&self,Ca=ya||_a||Function("return this")(),wa=Object.prototype,xa=wa.toString,ba=Math.max,Ra=Math.min,rn=function(){return Ca.Date.now()};function Ta(n,o,r){var e,t,i,a,l,s,d=0,c=!1,u=!1,h=!0;if(typeof n!="function")throw new TypeError(eo);o=Yn(o)||0,Wt(r)&&(c=!!r.leading,u="maxWait"in r,i=u?ba(Yn(r.maxWait)||0,o):i,h="trailing"in r?!!r.trailing:h);function p(x){var R=e,y=t;return e=t=void 0,d=x,a=n.apply(y,R),a}function f(x){return d=x,l=setTimeout(C,o),c?p(x):a}function m(x){var R=x-s,y=x-d,O=o-R;return u?Ra(O,i-y):O}function S(x){var R=x-s,y=x-d;return s===void 0||R>=o||R<0||u&&y>=i}function C(){var x=rn();if(S(x))return g(x);l=setTimeout(C,m(x))}function g(x){return l=void 0,h&&e?p(x):(e=t=void 0,a)}function z(){l!==void 0&&clearTimeout(l),d=0,e=s=t=l=void 0}function _(){return l===void 0?a:g(rn())}function v(){var x=rn(),R=S(x);if(e=arguments,t=this,s=x,R){if(l===void 0)return f(s);if(u)return l=setTimeout(C,o),p(s)}return l===void 0&&(l=setTimeout(C,o)),a}return v.cancel=z,v.flush=_,v}function Ia(n,o,r){var e=!0,t=!0;if(typeof n!="function")throw new TypeError(eo);return Wt(r)&&(e="leading"in r?!!r.leading:e,t="trailing"in r?!!r.trailing:t),Ta(n,o,{leading:e,maxWait:o,trailing:t})}function Wt(n){var o=typeof n;return!!n&&(o=="object"||o=="function")}function za(n){return!!n&&typeof n=="object"}function Da(n){return typeof n=="symbol"||za(n)&&xa.call(n)==fa}function Yn(n){if(typeof n=="number")return n;if(Da(n))return Xn;if(Wt(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Wt(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=n.replace(pa,"");var r=va.test(n);return r||ma.test(n)?Sa(n.slice(2),r?2:8):ga.test(n)?Xn:+n}var Pa=Ia,Kt={exports:{}},ut={exports:{}};(function(){var n,o,r,e,t,i;typeof performance<"u"&&performance!==null&&performance.now?ut.exports=function(){return performance.now()}:typeof nt<"u"&&nt!==null&&nt.hrtime?(ut.exports=function(){return(n()-t)/1e6},o=nt.hrtime,n=function(){var a;return a=o(),a[0]*1e9+a[1]},e=n(),i=nt.uptime()*1e9,t=e-i):Date.now?(ut.exports=function(){return Date.now()-r},r=Date.now()):(ut.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(ze);var Oa=ut.exports,ka=Oa,De=typeof window>"u"?ze:window,kt=["moz","webkit"],Qe="AnimationFrame",Ye=De["request"+Qe],St=De["cancel"+Qe]||De["cancelRequest"+Qe];for(var ot=0;!Ye&&ot<kt.length;ot++)Ye=De[kt[ot]+"Request"+Qe],St=De[kt[ot]+"Cancel"+Qe]||De[kt[ot]+"CancelRequest"+Qe];if(!Ye||!St){var on=0,Jn=0,Ae=[],Na=1e3/60;Ye=function(n){if(Ae.length===0){var o=ka(),r=Math.max(0,Na-(o-on));on=r+o,setTimeout(function(){var e=Ae.slice(0);Ae.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(on)}catch(i){setTimeout(function(){throw i},0)}},Math.round(r))}return Ae.push({handle:++Jn,callback:n,cancelled:!1}),Jn},St=function(n){for(var o=0;o<Ae.length;o++)Ae[o].handle===n&&(Ae[o].cancelled=!0)}}Kt.exports=function(n){return Ye.call(De,n)};Kt.exports.cancel=function(){St.apply(De,arguments)};Kt.exports.polyfill=function(n){n||(n=De),n.requestAnimationFrame=Ye,n.cancelAnimationFrame=St};var Ma=Kt.exports,Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.default=La;function La(n){return n.displayName||n.name||(typeof n=="string"&&n.length>0?n:"Unknown")}var wt={};Object.defineProperty(wt,"__esModule",{value:!0});wt.noop=Ea;wt.intBetween=Aa;wt.getCoords=ja;function Ea(){}function Aa(n,o,r){return Math.floor(Math.min(o,Math.max(n,r)))}function ja(n){return n.type==="touchmove"?{x:n.changedTouches[0].clientX,y:n.changedTouches[0].clientY}:{x:n.clientX,y:n.clientY}}Object.defineProperty(Pe,"__esModule",{value:!0});var Fa=Pe.createHorizontalStrength=no,Ga=Pe.createVerticalStrength=ro,Wa=Pe.createScrollingComponent=ao,Ha=Pe.default=nl;Pe.defaultVerticalStrength=Pe.defaultHorizontalStrength=void 0;var vt=qa(P),it=xt(Vr),$a=Ct,Ba=xt(Pa),Zn=xt(Ma),Ua=xt(Cn),Va=Li,Ka=xt(ri),Nt=wt;function xt(n){return n&&n.__esModule?n:{default:n}}function qa(n){if(n&&n.__esModule)return n;var o={};if(n!=null){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var e=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(n,r):{};e.get||e.set?Object.defineProperty(o,r,e):o[r]=n[r]}}return o.default=n,o}function jt(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jt=function(r){return typeof r}:jt=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},jt(n)}function Ht(){return Ht=Object.assign||function(n){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e])}return n},Ht.apply(this,arguments)}function Qa(n,o){if(n==null)return{};var r=Xa(n,o),e,t;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(t=0;t<i.length;t++)e=i[t],!(o.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(n,e)&&(r[e]=n[e])}return r}function Xa(n,o){if(n==null)return{};var r={},e=Object.keys(n),t,i;for(i=0;i<e.length;i++)t=e[i],!(o.indexOf(t)>=0)&&(r[t]=n[t]);return r}function Ya(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function Ja(n,o){for(var r=0;r<o.length;r++){var e=o[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function Za(n,o,r){return o&&Ja(n.prototype,o),n}function el(n,o){return o&&(jt(o)==="object"||typeof o=="function")?o:ht(n)}function gn(n){return gn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},gn(n)}function tl(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),o&&vn(n,o)}function vn(n,o){return vn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vn(n,o)}function ht(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function at(n,o,r){return o in n?Object.defineProperty(n,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[o]=r,n}var to=150;function no(n){return function(r,e){var t=r.x,i=r.w,a=r.y,l=r.h,s=Math.min(i/2,n),d=e.x>=t&&e.x<=t+i,c=d&&e.y>=a&&e.y<=a+l;if(c){if(e.x<t+s)return(e.x-t-s)/s;if(e.x>t+i-s)return-(t+i-e.x-s)/s}return 0}}function ro(n){return function(r,e){var t=r.y,i=r.h,a=r.x,l=r.w,s=Math.min(i/2,n),d=e.y>=t&&e.y<=t+i,c=d&&e.x>=a&&e.x<=a+l;if(c){if(e.y<t+s)return(e.y-t-s)/s;if(e.y>t+i-s)return-(t+i-e.y-s)/s}return 0}}var oo=no(to);Pe.defaultHorizontalStrength=oo;var io=ro(to);Pe.defaultVerticalStrength=io;function ao(n){var o=function(r){tl(e,r);function e(t,i){var a;return Ya(this,e),a=el(this,gn(e).call(this,t,i)),at(ht(ht(a)),"updateScrolling",(0,Ba.default)(function(l){var s=a.container.getBoundingClientRect(),d=s.left,c=s.top,u=s.width,h=s.height,p={x:d,y:c,w:u,h},f=(0,Nt.getCoords)(l),m=a.props,S=m.horizontalStrength,C=m.verticalStrength;a.scaleX=S(p,f),a.scaleY=C(p,f),!a.frame&&(a.scaleX||a.scaleY)&&a.startScrolling()},100,{trailing:!1})),at(ht(ht(a)),"handleEvent",function(l){a.dragging&&!a.attached&&(a.attach(),a.updateScrolling(l))}),a.wrappedInstance=vt.default.createRef(),a.scaleX=0,a.scaleY=0,a.frame=null,a.attached=!1,a.dragging=!1,a}return Za(e,[{key:"componentDidMount",value:function(){var i=this;this.container=(0,$a.findDOMNode)(this.wrappedInstance.current),this.container&&typeof this.container.addEventListener=="function"&&this.container.addEventListener("dragover",this.handleEvent),window.document.body.addEventListener("touchmove",this.handleEvent);var a=this.props.dragDropManager;this.clearMonitorSubscription=a.getMonitor().subscribeToStateChange(function(){return i.handleMonitorChange()})}},{key:"componentWillUnmount",value:function(){this.container&&typeof this.container.removeEventListener=="function"&&this.container.removeEventListener("dragover",this.handleEvent),window.document.body.removeEventListener("touchmove",this.handleEvent),this.clearMonitorSubscription(),this.stopScrolling()}},{key:"handleMonitorChange",value:function(){var i=this.props.dragDropManager,a=i.getMonitor().isDragging();!this.dragging&&a?this.dragging=!0:this.dragging&&!a&&(this.dragging=!1,this.stopScrolling())}},{key:"attach",value:function(){this.attached=!0,window.document.body.addEventListener("dragover",this.updateScrolling),window.document.body.addEventListener("touchmove",this.updateScrolling)}},{key:"detach",value:function(){this.attached=!1,window.document.body.removeEventListener("dragover",this.updateScrolling),window.document.body.removeEventListener("touchmove",this.updateScrolling)}},{key:"startScrolling",value:function(){var i=this,a=0,l=function s(){var d=i.scaleX,c=i.scaleY,u=i.container,h=i.props,p=h.strengthMultiplier,f=h.onScrollChange;if(p===0||d+c===0){i.stopScrolling();return}if(a+=1,a%2){var m=u.scrollLeft,S=u.scrollTop,C=u.scrollWidth,g=u.scrollHeight,z=u.clientWidth,_=u.clientHeight,v=d?u.scrollLeft=(0,Nt.intBetween)(0,C-z,m+d*p):m,x=c?u.scrollTop=(0,Nt.intBetween)(0,g-_,S+c*p):S;f(v,x)}i.frame=(0,Zn.default)(s)};l()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(Zn.default.cancel(this.frame),this.frame=null)}},{key:"render",value:function(){var i=this.props;i.strengthMultiplier,i.verticalStrength,i.horizontalStrength,i.onScrollChange;var a=Qa(i,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]);return vt.default.createElement(n,Ht({ref:this.wrappedInstance},a))}}]),e}(vt.Component);return at(o,"displayName","Scrolling(".concat((0,Ua.default)(n),")")),at(o,"propTypes",{dragDropManager:it.default.object.isRequired,onScrollChange:it.default.func,verticalStrength:it.default.func,horizontalStrength:it.default.func,strengthMultiplier:it.default.number}),at(o,"defaultProps",{onScrollChange:Nt.noop,verticalStrength:io,horizontalStrength:oo,strengthMultiplier:30}),(0,Ka.default)(o,n)}function nl(n){var o=ao(n);return function(r){return vt.default.createElement(Va.DragDropContextConsumer,null,function(e){var t=e.dragDropManager;return t===void 0?null:vt.default.createElement(o,Ht({},r,{dragDropManager:t}))})}}function lo(){var n=this.constructor.getDerivedStateFromProps(this.props,this.state);n!=null&&this.setState(n)}function so(n){function o(r){var e=this.constructor.getDerivedStateFromProps(n,r);return e??null}this.setState(o.bind(this))}function co(n,o){try{var r=this.props,e=this.state;this.props=n,this.state=o,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,e)}finally{this.props=r,this.state=e}}lo.__suppressDeprecationWarning=!0;so.__suppressDeprecationWarning=!0;co.__suppressDeprecationWarning=!0;function bt(n){var o=n.prototype;if(!o||!o.isReactComponent)throw new Error("Can only polyfill class components");if(typeof n.getDerivedStateFromProps!="function"&&typeof o.getSnapshotBeforeUpdate!="function")return n;var r=null,e=null,t=null;if(typeof o.componentWillMount=="function"?r="componentWillMount":typeof o.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof o.componentWillReceiveProps=="function"?e="componentWillReceiveProps":typeof o.UNSAFE_componentWillReceiveProps=="function"&&(e="UNSAFE_componentWillReceiveProps"),typeof o.componentWillUpdate=="function"?t="componentWillUpdate":typeof o.UNSAFE_componentWillUpdate=="function"&&(t="UNSAFE_componentWillUpdate"),r!==null||e!==null||t!==null){var i=n.displayName||n.name,a=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
1
+ import{_ as Ur,r as P,cu as ze,eM as nt,cq as Vr,gn as ri,dI as Ct,fp as D,aK as ie,ey as oi,b7 as Bt,P as b,eE as V,ct as ii,j as T,bE as se,gb as ai,u as et,cy as Ue,B as fe,T as ge,a$ as li,dM as si,b6 as Kr,ba as qr,b4 as ci,b5 as di,b9 as ui,go as hi,gp as fi,gq as pi,gr as gi,eR as vi,gs as mi,eQ as Si,cr as hn,fI as yi,fd as _i,bf as Qr,aT as gt,O as Ut,aC as Ge,bi as Ci,b as fn,aY as Vt,a9 as Gt,c1 as Oe,gt as Gn,c as Xr,bG as wi,gu as Wn,bV as xi,s as ct,du as dt,at as bi,a1 as Ri,gv as Ti,bW as Ii,dq as Yr,F as At,gw as zi,gx as Di,f5 as Pi,Z as Oi,$ as ki,ah as Zt,bC as Ni,ff as Mi,bD as Re}from"./index-Bjf6Qdid.js";import{r as Li,b as Ei,i as Hn,c as Ai,d as $n,D as ji,H as Fi}from"./index-LywoNrgL.js";import{_ as te,a as Ve,b as ve,c as me,d as Se,r as Gi}from"./slicedToArray-CyVkNUew.js";import{_ as re,i as Wi,f as Hi,j as $i,a as Bi,c as Ui,d as Vi,b as Ki,e as qi,g as Qi,h as Xi}from"./jss-plugin-props-sort.esm-BalOwz5A.js";import{_ as w,G as Bn}from"./redux-_iDVOyi8.js";import{_ as Yi}from"./toPropertyKey-PLuKRk1e.js";import{_ as Ji,u as Jr,b as Zi}from"./dashboard-Cy3erg8C.js";import{u as ea,C as rt,A as ta}from"./index.esm-DD6j9Hbp.js";import{p as na}from"./index-Dsb2xjqK.js";import{u as ra}from"./index-p55mr8Rd.js";import{F as _n}from"./FormControl-Us_liKuz.js";import{I as Zr}from"./InputLabel--WV9lBJk.js";import{S as pn,O as oa}from"./Select-B2Prj2qE.js";import{a as ia}from"./ListItemText-54aRex6i.js";import{F as aa,T as en}from"./TextField-Bc5irjLS.js";import{b as la,c as Un}from"./index-btzBjGHI.js";import{I as Vn}from"./InputAdornment-BkdyuJyy.js";import{H as sa,F as ca}from"./index-CFuGWzVi.js";import{D as da}from"./index-Bbkb50i_.js";import{S as tn}from"./Skeleton-lGeaUybJ.js";import{f as Kn}from"./format-error-B_0jV3Iv.js";import{B as nn}from"./ButtonGroup-Cj4y31z5.js";import{T as qn}from"./Toolbar-CA_h5A9p.js";import{L as Qn}from"./LoadingButton-Ddk75wr7.js";import"./useLocalStorage-B61hus9l.js";import"./MoreVert-D0MHc_oA.js";import"./confirm-D8z1ysLZ.js";import"./Alert-smpImqp0.js";import"./useSlot-BdDJZvLo.js";import"./Delete-DMiA4kv4.js";import"./PlayArrow-BKJw1eVI.js";import"./RadioGroup-DpVC0gNI.js";import"./FormControlLabel-DJAqgLGE.js";import"./useFormControl-CLJPjR4P.js";import"./FormGroup-BbGcDOoo.js";import"./Avatar-C9lcmTAE.js";import"./session-WfO9rlPi.js";import"./permission-CbOj_2Bp.js";import"./useAsync-CNA6CF-4.js";import"./index-CufrwE5d.js";import"./Link-CFWQfHB5.js";import"./useSetState-De5jz-QS.js";import"./fallback-DeSV2xkv.js";import"./index-D_o4YQXA.js";import"./Hidden-Cq8zZFLO.js";import"./ExpandMore-BLPbGEUk.js";import"./selector-DKnQRsyi.js";import"./useThemeProps-CeQMvkv6.js";function ua(n,o){var r=Ur(P.useState(n),2),e=r[0],t=r[1],i=P.useMemo(function(){var a=!n,l=function(){return t(function(u){return u===n?a:n})},s=function(u){return t(u)},d=function(){return t(n)},c=function(){return t(a)};return{toggle:l,set:s,setLeft:d,setRight:c}},[]);return[e,i]}function ha(n){var o=Ur(ua(!!n),2),r=o[0],e=o[1],t=e.toggle,i=e.set,a=P.useMemo(function(){var l=function(){return i(!0)},s=function(){return i(!1)};return{toggle:t,set:function(d){return i(!!d)},setTrue:l,setFalse:s}},[]);return[r,a]}var Pe={},eo="Expected a function",Xn=NaN,fa="[object Symbol]",pa=/^\s+|\s+$/g,ga=/^[-+]0x[0-9a-f]+$/i,va=/^0b[01]+$/i,ma=/^0o[0-7]+$/i,Sa=parseInt,ya=typeof ze=="object"&&ze&&ze.Object===Object&&ze,_a=typeof self=="object"&&self&&self.Object===Object&&self,Ca=ya||_a||Function("return this")(),wa=Object.prototype,xa=wa.toString,ba=Math.max,Ra=Math.min,rn=function(){return Ca.Date.now()};function Ta(n,o,r){var e,t,i,a,l,s,d=0,c=!1,u=!1,h=!0;if(typeof n!="function")throw new TypeError(eo);o=Yn(o)||0,Wt(r)&&(c=!!r.leading,u="maxWait"in r,i=u?ba(Yn(r.maxWait)||0,o):i,h="trailing"in r?!!r.trailing:h);function p(x){var R=e,y=t;return e=t=void 0,d=x,a=n.apply(y,R),a}function f(x){return d=x,l=setTimeout(C,o),c?p(x):a}function m(x){var R=x-s,y=x-d,O=o-R;return u?Ra(O,i-y):O}function S(x){var R=x-s,y=x-d;return s===void 0||R>=o||R<0||u&&y>=i}function C(){var x=rn();if(S(x))return g(x);l=setTimeout(C,m(x))}function g(x){return l=void 0,h&&e?p(x):(e=t=void 0,a)}function z(){l!==void 0&&clearTimeout(l),d=0,e=s=t=l=void 0}function _(){return l===void 0?a:g(rn())}function v(){var x=rn(),R=S(x);if(e=arguments,t=this,s=x,R){if(l===void 0)return f(s);if(u)return l=setTimeout(C,o),p(s)}return l===void 0&&(l=setTimeout(C,o)),a}return v.cancel=z,v.flush=_,v}function Ia(n,o,r){var e=!0,t=!0;if(typeof n!="function")throw new TypeError(eo);return Wt(r)&&(e="leading"in r?!!r.leading:e,t="trailing"in r?!!r.trailing:t),Ta(n,o,{leading:e,maxWait:o,trailing:t})}function Wt(n){var o=typeof n;return!!n&&(o=="object"||o=="function")}function za(n){return!!n&&typeof n=="object"}function Da(n){return typeof n=="symbol"||za(n)&&xa.call(n)==fa}function Yn(n){if(typeof n=="number")return n;if(Da(n))return Xn;if(Wt(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Wt(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=n.replace(pa,"");var r=va.test(n);return r||ma.test(n)?Sa(n.slice(2),r?2:8):ga.test(n)?Xn:+n}var Pa=Ia,Kt={exports:{}},ut={exports:{}};(function(){var n,o,r,e,t,i;typeof performance<"u"&&performance!==null&&performance.now?ut.exports=function(){return performance.now()}:typeof nt<"u"&&nt!==null&&nt.hrtime?(ut.exports=function(){return(n()-t)/1e6},o=nt.hrtime,n=function(){var a;return a=o(),a[0]*1e9+a[1]},e=n(),i=nt.uptime()*1e9,t=e-i):Date.now?(ut.exports=function(){return Date.now()-r},r=Date.now()):(ut.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(ze);var Oa=ut.exports,ka=Oa,De=typeof window>"u"?ze:window,kt=["moz","webkit"],Qe="AnimationFrame",Ye=De["request"+Qe],St=De["cancel"+Qe]||De["cancelRequest"+Qe];for(var ot=0;!Ye&&ot<kt.length;ot++)Ye=De[kt[ot]+"Request"+Qe],St=De[kt[ot]+"Cancel"+Qe]||De[kt[ot]+"CancelRequest"+Qe];if(!Ye||!St){var on=0,Jn=0,Ae=[],Na=1e3/60;Ye=function(n){if(Ae.length===0){var o=ka(),r=Math.max(0,Na-(o-on));on=r+o,setTimeout(function(){var e=Ae.slice(0);Ae.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(on)}catch(i){setTimeout(function(){throw i},0)}},Math.round(r))}return Ae.push({handle:++Jn,callback:n,cancelled:!1}),Jn},St=function(n){for(var o=0;o<Ae.length;o++)Ae[o].handle===n&&(Ae[o].cancelled=!0)}}Kt.exports=function(n){return Ye.call(De,n)};Kt.exports.cancel=function(){St.apply(De,arguments)};Kt.exports.polyfill=function(n){n||(n=De),n.requestAnimationFrame=Ye,n.cancelAnimationFrame=St};var Ma=Kt.exports,Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.default=La;function La(n){return n.displayName||n.name||(typeof n=="string"&&n.length>0?n:"Unknown")}var wt={};Object.defineProperty(wt,"__esModule",{value:!0});wt.noop=Ea;wt.intBetween=Aa;wt.getCoords=ja;function Ea(){}function Aa(n,o,r){return Math.floor(Math.min(o,Math.max(n,r)))}function ja(n){return n.type==="touchmove"?{x:n.changedTouches[0].clientX,y:n.changedTouches[0].clientY}:{x:n.clientX,y:n.clientY}}Object.defineProperty(Pe,"__esModule",{value:!0});var Fa=Pe.createHorizontalStrength=no,Ga=Pe.createVerticalStrength=ro,Wa=Pe.createScrollingComponent=ao,Ha=Pe.default=nl;Pe.defaultVerticalStrength=Pe.defaultHorizontalStrength=void 0;var vt=qa(P),it=xt(Vr),$a=Ct,Ba=xt(Pa),Zn=xt(Ma),Ua=xt(Cn),Va=Li,Ka=xt(ri),Nt=wt;function xt(n){return n&&n.__esModule?n:{default:n}}function qa(n){if(n&&n.__esModule)return n;var o={};if(n!=null){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var e=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(n,r):{};e.get||e.set?Object.defineProperty(o,r,e):o[r]=n[r]}}return o.default=n,o}function jt(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jt=function(r){return typeof r}:jt=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},jt(n)}function Ht(){return Ht=Object.assign||function(n){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e])}return n},Ht.apply(this,arguments)}function Qa(n,o){if(n==null)return{};var r=Xa(n,o),e,t;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(t=0;t<i.length;t++)e=i[t],!(o.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(n,e)&&(r[e]=n[e])}return r}function Xa(n,o){if(n==null)return{};var r={},e=Object.keys(n),t,i;for(i=0;i<e.length;i++)t=e[i],!(o.indexOf(t)>=0)&&(r[t]=n[t]);return r}function Ya(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function Ja(n,o){for(var r=0;r<o.length;r++){var e=o[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function Za(n,o,r){return o&&Ja(n.prototype,o),n}function el(n,o){return o&&(jt(o)==="object"||typeof o=="function")?o:ht(n)}function gn(n){return gn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},gn(n)}function tl(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),o&&vn(n,o)}function vn(n,o){return vn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vn(n,o)}function ht(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function at(n,o,r){return o in n?Object.defineProperty(n,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[o]=r,n}var to=150;function no(n){return function(r,e){var t=r.x,i=r.w,a=r.y,l=r.h,s=Math.min(i/2,n),d=e.x>=t&&e.x<=t+i,c=d&&e.y>=a&&e.y<=a+l;if(c){if(e.x<t+s)return(e.x-t-s)/s;if(e.x>t+i-s)return-(t+i-e.x-s)/s}return 0}}function ro(n){return function(r,e){var t=r.y,i=r.h,a=r.x,l=r.w,s=Math.min(i/2,n),d=e.y>=t&&e.y<=t+i,c=d&&e.x>=a&&e.x<=a+l;if(c){if(e.y<t+s)return(e.y-t-s)/s;if(e.y>t+i-s)return-(t+i-e.y-s)/s}return 0}}var oo=no(to);Pe.defaultHorizontalStrength=oo;var io=ro(to);Pe.defaultVerticalStrength=io;function ao(n){var o=function(r){tl(e,r);function e(t,i){var a;return Ya(this,e),a=el(this,gn(e).call(this,t,i)),at(ht(ht(a)),"updateScrolling",(0,Ba.default)(function(l){var s=a.container.getBoundingClientRect(),d=s.left,c=s.top,u=s.width,h=s.height,p={x:d,y:c,w:u,h},f=(0,Nt.getCoords)(l),m=a.props,S=m.horizontalStrength,C=m.verticalStrength;a.scaleX=S(p,f),a.scaleY=C(p,f),!a.frame&&(a.scaleX||a.scaleY)&&a.startScrolling()},100,{trailing:!1})),at(ht(ht(a)),"handleEvent",function(l){a.dragging&&!a.attached&&(a.attach(),a.updateScrolling(l))}),a.wrappedInstance=vt.default.createRef(),a.scaleX=0,a.scaleY=0,a.frame=null,a.attached=!1,a.dragging=!1,a}return Za(e,[{key:"componentDidMount",value:function(){var i=this;this.container=(0,$a.findDOMNode)(this.wrappedInstance.current),this.container&&typeof this.container.addEventListener=="function"&&this.container.addEventListener("dragover",this.handleEvent),window.document.body.addEventListener("touchmove",this.handleEvent);var a=this.props.dragDropManager;this.clearMonitorSubscription=a.getMonitor().subscribeToStateChange(function(){return i.handleMonitorChange()})}},{key:"componentWillUnmount",value:function(){this.container&&typeof this.container.removeEventListener=="function"&&this.container.removeEventListener("dragover",this.handleEvent),window.document.body.removeEventListener("touchmove",this.handleEvent),this.clearMonitorSubscription(),this.stopScrolling()}},{key:"handleMonitorChange",value:function(){var i=this.props.dragDropManager,a=i.getMonitor().isDragging();!this.dragging&&a?this.dragging=!0:this.dragging&&!a&&(this.dragging=!1,this.stopScrolling())}},{key:"attach",value:function(){this.attached=!0,window.document.body.addEventListener("dragover",this.updateScrolling),window.document.body.addEventListener("touchmove",this.updateScrolling)}},{key:"detach",value:function(){this.attached=!1,window.document.body.removeEventListener("dragover",this.updateScrolling),window.document.body.removeEventListener("touchmove",this.updateScrolling)}},{key:"startScrolling",value:function(){var i=this,a=0,l=function s(){var d=i.scaleX,c=i.scaleY,u=i.container,h=i.props,p=h.strengthMultiplier,f=h.onScrollChange;if(p===0||d+c===0){i.stopScrolling();return}if(a+=1,a%2){var m=u.scrollLeft,S=u.scrollTop,C=u.scrollWidth,g=u.scrollHeight,z=u.clientWidth,_=u.clientHeight,v=d?u.scrollLeft=(0,Nt.intBetween)(0,C-z,m+d*p):m,x=c?u.scrollTop=(0,Nt.intBetween)(0,g-_,S+c*p):S;f(v,x)}i.frame=(0,Zn.default)(s)};l()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(Zn.default.cancel(this.frame),this.frame=null)}},{key:"render",value:function(){var i=this.props;i.strengthMultiplier,i.verticalStrength,i.horizontalStrength,i.onScrollChange;var a=Qa(i,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]);return vt.default.createElement(n,Ht({ref:this.wrappedInstance},a))}}]),e}(vt.Component);return at(o,"displayName","Scrolling(".concat((0,Ua.default)(n),")")),at(o,"propTypes",{dragDropManager:it.default.object.isRequired,onScrollChange:it.default.func,verticalStrength:it.default.func,horizontalStrength:it.default.func,strengthMultiplier:it.default.number}),at(o,"defaultProps",{onScrollChange:Nt.noop,verticalStrength:io,horizontalStrength:oo,strengthMultiplier:30}),(0,Ka.default)(o,n)}function nl(n){var o=ao(n);return function(r){return vt.default.createElement(Va.DragDropContextConsumer,null,function(e){var t=e.dragDropManager;return t===void 0?null:vt.default.createElement(o,Ht({},r,{dragDropManager:t}))})}}function lo(){var n=this.constructor.getDerivedStateFromProps(this.props,this.state);n!=null&&this.setState(n)}function so(n){function o(r){var e=this.constructor.getDerivedStateFromProps(n,r);return e??null}this.setState(o.bind(this))}function co(n,o){try{var r=this.props,e=this.state;this.props=n,this.state=o,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,e)}finally{this.props=r,this.state=e}}lo.__suppressDeprecationWarning=!0;so.__suppressDeprecationWarning=!0;co.__suppressDeprecationWarning=!0;function bt(n){var o=n.prototype;if(!o||!o.isReactComponent)throw new Error("Can only polyfill class components");if(typeof n.getDerivedStateFromProps!="function"&&typeof o.getSnapshotBeforeUpdate!="function")return n;var r=null,e=null,t=null;if(typeof o.componentWillMount=="function"?r="componentWillMount":typeof o.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof o.componentWillReceiveProps=="function"?e="componentWillReceiveProps":typeof o.UNSAFE_componentWillReceiveProps=="function"&&(e="UNSAFE_componentWillReceiveProps"),typeof o.componentWillUpdate=="function"?t="componentWillUpdate":typeof o.UNSAFE_componentWillUpdate=="function"&&(t="UNSAFE_componentWillUpdate"),r!==null||e!==null||t!==null){var i=n.displayName||n.name,a=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
2
2
 
3
3
  `+i+" uses "+a+" but also contains the following legacy lifecycles:"+(r!==null?`
4
4
  `+r:"")+(e!==null?`
@@ -1,4 +1,4 @@
1
- import{cQ as L,$ as C,r,u as Q,ai as z,j as n,cR as F,cS as N,cT as O,a1 as y,m as U,P as o,Z,cU as G}from"./index-Bdg2hH7J.js";import{D as H,f as I}from"./format-error-Blif5aTO.js";import{A as J}from"./Alert-bzh-1cuw.js";function K(){var e;const s=L();return(e=s==null?void 0:s.$$material)!=null?e:s}function V(){const e=K();return{minWidth:C(e.breakpoints.down("md"))?300:e.breakpoints.values.sm}}function x({title:e,description:s,showCancel:c,showConfirm:b,cancel:w,confirm:j,color:k,params:D,onCancel:S,onConfirm:T,loading:l,displayError:v,children:P,...$}){const[t,E]=r.useState(D),[R,d]=r.useState(!0),[m,u]=r.useState(!1),[p,f]=r.useState(""),{t:B}=Q(),W=z(),h=async a=>{if(typeof a=="function"){u(!0);try{if(await a(t)===!1)return;d(!1)}catch(i){f(I(i)),console.error(i)}finally{u(!1)}}else d(!1)},q=typeof e=="function"?e():e,A=typeof s=="function"?s(t,E,f):s,M=C(W.breakpoints.down("md")),_=a=>{a.stopPropagation()},{minWidth:g}=V();return n.jsxs(X,{onClick:_,fullScreen:M,open:R,style:{minWidth:g},...$,children:[n.jsx(F,{children:q}),n.jsxs(N,{style:{minWidth:g},children:[n.jsx(H,{component:"div",children:A}),!!p&&v&&n.jsx(J,{severity:"error",style:{width:"100%",marginTop:8},children:p}),P]}),n.jsxs(O,{className:"delete-actions",style:{padding:"8px 24px 24px"},children:[c&&n.jsx(y,{onClick:a=>{a.stopPropagation(),h(S)},color:"inherit","data-cy":"cancel-confirm-dialog",children:w||B("common.cancel")}),b&&n.jsxs(y,{onClick:a=>{a.stopPropagation(),h(T)},color:k,disabled:t.__disableConfirm||m||l,variant:"contained","data-cy":"submit-confirm-dialog",autoFocus:!0,children:[(m||l)&&n.jsx(U,{size:16,sx:{mr:1}}),j]})]})]})}x.propTypes={title:o.any.isRequired,description:o.any.isRequired,showCancel:o.bool,showConfirm:o.bool,cancel:o.string,color:o.string,confirm:o.string,params:o.object,onCancel:o.func,onConfirm:o.func.isRequired,loading:o.bool,displayError:o.bool,children:o.any};x.defaultProps={children:void 0,onCancel:()=>{},showCancel:!0,showConfirm:!0,cancel:"",confirm:"Confirm",color:"error",params:{},loading:!1,displayError:!0};const X=Z(G)`
1
+ import{cQ as L,$ as C,r,u as Q,ai as z,j as n,cR as F,cS as N,cT as O,a1 as y,m as U,P as o,Z,cU as G}from"./index-Bjf6Qdid.js";import{D as H,f as I}from"./format-error-B_0jV3Iv.js";import{A as J}from"./Alert-smpImqp0.js";function K(){var e;const s=L();return(e=s==null?void 0:s.$$material)!=null?e:s}function V(){const e=K();return{minWidth:C(e.breakpoints.down("md"))?300:e.breakpoints.values.sm}}function x({title:e,description:s,showCancel:c,showConfirm:b,cancel:w,confirm:j,color:k,params:D,onCancel:S,onConfirm:T,loading:l,displayError:v,children:P,...$}){const[t,E]=r.useState(D),[R,d]=r.useState(!0),[m,u]=r.useState(!1),[p,f]=r.useState(""),{t:B}=Q(),W=z(),h=async a=>{if(typeof a=="function"){u(!0);try{if(await a(t)===!1)return;d(!1)}catch(i){f(I(i)),console.error(i)}finally{u(!1)}}else d(!1)},q=typeof e=="function"?e():e,A=typeof s=="function"?s(t,E,f):s,M=C(W.breakpoints.down("md")),_=a=>{a.stopPropagation()},{minWidth:g}=V();return n.jsxs(X,{onClick:_,fullScreen:M,open:R,style:{minWidth:g},...$,children:[n.jsx(F,{children:q}),n.jsxs(N,{style:{minWidth:g},children:[n.jsx(H,{component:"div",children:A}),!!p&&v&&n.jsx(J,{severity:"error",style:{width:"100%",marginTop:8},children:p}),P]}),n.jsxs(O,{className:"delete-actions",style:{padding:"8px 24px 24px"},children:[c&&n.jsx(y,{onClick:a=>{a.stopPropagation(),h(S)},color:"inherit","data-cy":"cancel-confirm-dialog",children:w||B("common.cancel")}),b&&n.jsxs(y,{onClick:a=>{a.stopPropagation(),h(T)},color:k,disabled:t.__disableConfirm||m||l,variant:"contained","data-cy":"submit-confirm-dialog",autoFocus:!0,children:[(m||l)&&n.jsx(U,{size:16,sx:{mr:1}}),j]})]})]})}x.propTypes={title:o.any.isRequired,description:o.any.isRequired,showCancel:o.bool,showConfirm:o.bool,cancel:o.string,color:o.string,confirm:o.string,params:o.object,onCancel:o.func,onConfirm:o.func.isRequired,loading:o.bool,displayError:o.bool,children:o.any};x.defaultProps={children:void 0,onCancel:()=>{},showCancel:!0,showConfirm:!0,cancel:"",confirm:"Confirm",color:"error",params:{},loading:!1,displayError:!0};const X=Z(G)`
2
2
  .delete-actions .Mui-disabled {
3
3
  color: rgba(0, 0, 0, 0.26) !important;
4
4
  box-shadow: none;
@@ -1 +1 @@
1
- import{r as x,d as L,u as U,e as D,E as b,i as A,h as N,j as n,B as w,a as $,L as y,F as H,l as W,C as z,H as _,m as B,s as O}from"./index-Bdg2hH7J.js";import{i as P}from"./index--iA86Fqj.js";import{u as J}from"./use-passport-id-B-b-_oYF.js";import{F as K}from"./fullpage-uuQNoBvu.js";import"./Link-NMapyzp6.js";const k="authorization_response";function Z(){var u;const l=x.useRef(null),{getPassportId:I}=J(),{session:T,connectApi:C}=L(),{t:r,locale:j}=U(),v=D(),[p]=b();let m={};try{m=JSON.parse(decodeURIComponent(atob(p.get("params"))))}catch{console.warn("parse connect params failed")}const{action:c="login",extraParams:h={},messages:E,...f}=m,a=p.get("redirect");h.passportId=I(),c==="login"&&A(f.forceConnected)&&(f.forceConnected=!1);const g=x.useMemo(()=>a||!window.opener?"redirect":"popup",[a]),R=({encrypted:t=!0,...e},i,s)=>{t&&(e.sessionToken&&(e.sessionToken=i(e.sessionToken)),e.refreshToken&&(e.refreshToken=i(e.refreshToken)),e.visitorId&&(e.visitorId=i(e.visitorId))),e.visitorId&&localStorage.setItem("__visitor_id",e.visitorId);const S={type:k,response:e,options:s};({redirect:()=>{setTimeout(()=>{if(a){const d=decodeURIComponent(a);let o;P(d)?o=new URL(d):o=new URL(d,window.location.origin),e.sessionToken&&o.searchParams.set("sessionToken",e.sessionToken),e.refreshToken&&o.searchParams.set("refreshToken",e.refreshToken),e.visitorId&&o.searchParams.set("visitorId",e.visitorId),s!=null&&s.connected_did&&o.searchParams.set("connected_did",s.connected_did),s!=null&&s.connected_pk&&o.searchParams.set("connected_pk",s.connected_pk),s!=null&&s.connected_app&&o.searchParams.set("connected_app",s.connected_app),s!=null&&s.connected_wallet_os&&o.searchParams.set("connected_wallet_os",s.connected_wallet_os),P(d)?window.location.replace(o.href):v(`${o.pathname}${o.search}`,{replace:!0})}else window.location.replace(window.env.pathPrefix||"/")},50)},popup:()=>{window.opener.postMessage(S,"*"),setTimeout(()=>{window.open("about:blank","_self"),window.close()},2e3)}})[g]()},F=t=>{const e={type:k,error:t.message,errorDescription:t.message};({redirect:()=>{O.error(t.message)},popup:()=>{window.opener.postMessage(e,"*")}})[g]()},M=N(()=>{if(c!=="login")return null;const t=window.blocklet.trustedFactories||[];return n.jsx(w,{textAlign:"center",fontSize:14,children:t.length>0&&n.jsx($,{title:r("exchangePassport.tooltip",{collections:t.map(e=>e.factoryAddress)}),placement:"top-end",enterTouchDelay:0,children:n.jsx(y,{to:`${H.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport?redirect=${encodeURIComponent(a||"/")}`,style:{color:"#4598FA"},children:r("exchangePassport.title")},"exchange-passport")})})},[c]);return W(()=>{l.current&&setTimeout(()=>{C.open({locale:j,action:c,extraParams:h,...f,containerEl:l.current,className:"connect",popup:!1,messages:E||{title:r("login.connect.title"),scan:r("login.connect.scan"),confirm:r("login.connect.confirm"),success:r("login.connect.success")},extraContent:M,useSocket:!0,onSuccess:R,onError:F})})}),T.loading?n.jsxs(z,{children:[n.jsx(_,{children:n.jsx("title",{children:"DID Connect"})}),n.jsx(B,{})]}):n.jsxs(n.Fragment,{children:[n.jsx(_,{children:n.jsx("title",{children:"DID Connect"})}),n.jsx(K,{did:(u=window.blocklet)==null?void 0:u.appPid,children:n.jsx(w,{sx:{width:"560px",maxWidth:"100%",height:"100%"},ref:l})})]})}export{Z as default};
1
+ import{r as x,d as L,u as U,e as D,E as b,i as A,h as N,j as n,B as w,a as $,L as y,F as H,l as W,C as z,H as _,m as B,s as O}from"./index-Bjf6Qdid.js";import{i as P}from"./index-mLiByM5-.js";import{u as J}from"./use-passport-id-B-b-_oYF.js";import{F as K}from"./fullpage-Boy5j04D.js";import"./Link-CFWQfHB5.js";const k="authorization_response";function Z(){var u;const l=x.useRef(null),{getPassportId:I}=J(),{session:T,connectApi:C}=L(),{t:r,locale:j}=U(),v=D(),[p]=b();let m={};try{m=JSON.parse(decodeURIComponent(atob(p.get("params"))))}catch{console.warn("parse connect params failed")}const{action:c="login",extraParams:h={},messages:E,...f}=m,a=p.get("redirect");h.passportId=I(),c==="login"&&A(f.forceConnected)&&(f.forceConnected=!1);const g=x.useMemo(()=>a||!window.opener?"redirect":"popup",[a]),R=({encrypted:t=!0,...e},i,s)=>{t&&(e.sessionToken&&(e.sessionToken=i(e.sessionToken)),e.refreshToken&&(e.refreshToken=i(e.refreshToken)),e.visitorId&&(e.visitorId=i(e.visitorId))),e.visitorId&&localStorage.setItem("__visitor_id",e.visitorId);const S={type:k,response:e,options:s};({redirect:()=>{setTimeout(()=>{if(a){const d=decodeURIComponent(a);let o;P(d)?o=new URL(d):o=new URL(d,window.location.origin),e.sessionToken&&o.searchParams.set("sessionToken",e.sessionToken),e.refreshToken&&o.searchParams.set("refreshToken",e.refreshToken),e.visitorId&&o.searchParams.set("visitorId",e.visitorId),s!=null&&s.connected_did&&o.searchParams.set("connected_did",s.connected_did),s!=null&&s.connected_pk&&o.searchParams.set("connected_pk",s.connected_pk),s!=null&&s.connected_app&&o.searchParams.set("connected_app",s.connected_app),s!=null&&s.connected_wallet_os&&o.searchParams.set("connected_wallet_os",s.connected_wallet_os),P(d)?window.location.replace(o.href):v(`${o.pathname}${o.search}`,{replace:!0})}else window.location.replace(window.env.pathPrefix||"/")},50)},popup:()=>{window.opener.postMessage(S,"*"),setTimeout(()=>{window.open("about:blank","_self"),window.close()},2e3)}})[g]()},F=t=>{const e={type:k,error:t.message,errorDescription:t.message};({redirect:()=>{O.error(t.message)},popup:()=>{window.opener.postMessage(e,"*")}})[g]()},M=N(()=>{if(c!=="login")return null;const t=window.blocklet.trustedFactories||[];return n.jsx(w,{textAlign:"center",fontSize:14,children:t.length>0&&n.jsx($,{title:r("exchangePassport.tooltip",{collections:t.map(e=>e.factoryAddress)}),placement:"top-end",enterTouchDelay:0,children:n.jsx(y,{to:`${H.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport?redirect=${encodeURIComponent(a||"/")}`,style:{color:"#4598FA"},children:r("exchangePassport.title")},"exchange-passport")})})},[c]);return W(()=>{l.current&&setTimeout(()=>{C.open({locale:j,action:c,extraParams:h,...f,containerEl:l.current,className:"connect",popup:!1,messages:E||{title:r("login.connect.title"),scan:r("login.connect.scan"),confirm:r("login.connect.confirm"),success:r("login.connect.success")},extraContent:M,useSocket:!0,onSuccess:R,onError:F})})}),T.loading?n.jsxs(z,{children:[n.jsx(_,{children:n.jsx("title",{children:"DID Connect"})}),n.jsx(B,{})]}):n.jsxs(n.Fragment,{children:[n.jsx(_,{children:n.jsx("title",{children:"DID Connect"})}),n.jsx(K,{did:(u=window.blocklet)==null?void 0:u.appPid,children:n.jsx(w,{sx:{width:"560px",maxWidth:"100%",height:"100%"},ref:l})})]})}export{Z as default};
@@ -1,4 +1,4 @@
1
- import{u as m,d as y,fw as h,c as x,j as n,C as i,m as g,T as w,K as C,t as T,s as j,P as k,Z as P,J as v}from"./index-Bdg2hH7J.js";import{_ as S}from"./useAsync-CbQ86h-f.js";function U({children:u}){const{t:r,locale:p}=m(),{api:c,session:a}=y(),{encryptKey:l,decrypt:d}=h(),t=S(async()=>{var s;const e=new URL(window.location.href);e.pathname=x(((s=window==null?void 0:window.env)==null?void 0:s.apiPrefix)??"/","/api/did/setup/token"),e.searchParams.set("_ek_",l);const{data:o}=await c.get(e.href);return o}),f=async e=>{const o=Array.isArray(e)?e.find(s=>s.sessionToken):e;T(d(o.sessionToken));try{await a.refresh()}catch(s){j.error(s.message)}};return!t.value||t.loading||a.loading?n.jsx(i,{relative:"parent",children:n.jsx(g,{})}):a.user?u:t.error?n.jsx(i,{relative:"parent",children:n.jsx(w,{children:t.error.message})}):n.jsx(R,{popup:!0,open:!0,hideCloseButton:!0,action:"pre-setup",checkFn:c.get,checkTimeout:10*60*1e3,webWalletUrl:C(),onSuccess:f,locale:p,messages:{title:r("setup.connect.title"),scan:r("setup.connect.scan"),confirm:r("setup.connect.confirm"),success:r("setup.connect.success")},extraParams:{setup:!0,nw:t.value.url}})}U.propTypes={children:k.any.isRequired};const R=P(v)`
1
+ import{u as m,d as y,fw as h,c as x,j as n,C as i,m as g,T as w,K as C,t as T,s as j,P as k,Z as P,J as v}from"./index-Bjf6Qdid.js";import{_ as S}from"./useAsync-CNA6CF-4.js";function U({children:u}){const{t:r,locale:p}=m(),{api:c,session:a}=y(),{encryptKey:l,decrypt:d}=h(),t=S(async()=>{var s;const e=new URL(window.location.href);e.pathname=x(((s=window==null?void 0:window.env)==null?void 0:s.apiPrefix)??"/","/api/did/setup/token"),e.searchParams.set("_ek_",l);const{data:o}=await c.get(e.href);return o}),f=async e=>{const o=Array.isArray(e)?e.find(s=>s.sessionToken):e;T(d(o.sessionToken));try{await a.refresh()}catch(s){j.error(s.message)}};return!t.value||t.loading||a.loading?n.jsx(i,{relative:"parent",children:n.jsx(g,{})}):a.user?u:t.error?n.jsx(i,{relative:"parent",children:n.jsx(w,{children:t.error.message})}):n.jsx(R,{popup:!0,open:!0,hideCloseButton:!0,action:"pre-setup",checkFn:c.get,checkTimeout:10*60*1e3,webWalletUrl:C(),onSuccess:f,locale:p,messages:{title:r("setup.connect.title"),scan:r("setup.connect.scan"),confirm:r("setup.connect.confirm"),success:r("setup.connect.success")},extraParams:{setup:!0,nw:t.value.url}})}U.propTypes={children:k.any.isRequired};const R=P(v)`
2
2
  .action-info-desc {
3
3
  padding: 0 72px;
4
4
  }