@abtnode/blocklet-services 1.16.29-beta-db5c4ed6 → 1.16.29-beta-bb5685f8

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 (173) hide show
  1. package/api/routes/env.js +2 -1
  2. package/dist/assets/{Add-CG-F3Tpq.js → Add-Brs6l0hU.js} +1 -1
  3. package/dist/assets/{AddBox-CCE1buV8.js → AddBox-BorsWH1L.js} +1 -1
  4. package/dist/assets/{Alert-cwZghN5o.js → Alert-CdrO9wp_.js} +1 -1
  5. package/dist/assets/{ArrowDropDown-DpHnrXJX.js → ArrowDropDown-Cc7ZV2yN.js} +1 -1
  6. package/dist/assets/{Avatar-BVTgZMZu.js → Avatar-B857twI0.js} +1 -1
  7. package/dist/assets/{ButtonGroup-Cf877fOo.js → ButtonGroup-CNCUbNBn.js} +1 -1
  8. package/dist/assets/{CheckCircle-CZETHIjv.js → CheckCircle-OSzkr55G.js} +1 -1
  9. package/dist/assets/{ChevronRight-B1-v0rVj.js → ChevronRight-p9uIbU8Z.js} +1 -1
  10. package/dist/assets/{Close-DM3JyAUN.js → Close-gciQI04i.js} +1 -1
  11. package/dist/assets/{CloseOutlined-D-nYpxl4.js → CloseOutlined-Xl6vJm1S.js} +1 -1
  12. package/dist/assets/{Delete-DJZzf2v3.js → Delete-k49MPvRz.js} +1 -1
  13. package/dist/assets/{DeleteOutline-UAdOMkx7.js → DeleteOutline-QSrwg0EI.js} +1 -1
  14. package/dist/assets/{Done-CIjx7jUD.js → Done-D_Xh37ry.js} +1 -1
  15. package/dist/assets/{Download-CZGyacWn.js → Download-B2JnXf0Y.js} +1 -1
  16. package/dist/assets/{Edit-DUj2eyUz.js → Edit-Bj54pAe_.js} +1 -1
  17. package/dist/assets/{EditIcon-jpbTcPi9.js → EditIcon-489vuPgf.js} +1 -1
  18. package/dist/assets/{Error-CzevJZgV.js → Error-DVFEbqrz.js} +1 -1
  19. package/dist/assets/{ExpandMore-Vsh2QVwZ.js → ExpandMore-B8-mtsJf.js} +1 -1
  20. package/dist/assets/{FilterList-Cy1sL14k.js → FilterList-Du3mVkNU.js} +1 -1
  21. package/dist/assets/{FormControl-B_Do5Nt6.js → FormControl-DrLoqvI1.js} +1 -1
  22. package/dist/assets/{FormControlLabel-BDYHQJ8F.js → FormControlLabel-BZ-Na1Px.js} +1 -1
  23. package/dist/assets/{FormGroup-Bk12j31H.js → FormGroup-B_cYMk58.js} +1 -1
  24. package/dist/assets/{Google-CPv9gImr.js → Google-1aQCgZJc.js} +1 -1
  25. package/dist/assets/{Hidden-kVeQMxEt.js → Hidden-B3_ybJ-q.js} +1 -1
  26. package/dist/assets/{InfoOutlined-DUs9-7mj.js → InfoOutlined-5DVg0LZC.js} +1 -1
  27. package/dist/assets/{InputAdornment-C-wpGP7M.js → InputAdornment-Dmqc2UlU.js} +1 -1
  28. package/dist/assets/{InputLabel-4YX1ylv6.js → InputLabel-ys_ApPlk.js} +1 -1
  29. package/dist/assets/{LastPage-BfloM2Wq.js → LastPage-BlouWXDK.js} +1 -1
  30. package/dist/assets/{Launch-CahVoyyw.js → Launch-BT1RubZl.js} +1 -1
  31. package/dist/assets/{LaunchOutlined-CK6AtL0o.js → LaunchOutlined-_SVqRfwQ.js} +1 -1
  32. package/dist/assets/{Link-D9C6v4KL.js → Link-ltWIbLQC.js} +1 -1
  33. package/dist/assets/{ListItemText-CbVOTWQ3.js → ListItemText-CK7nMTkm.js} +1 -1
  34. package/dist/assets/{LoadingButton-CIR80MCf.js → LoadingButton-B9MhTSHg.js} +1 -1
  35. package/dist/assets/{LockIcon-C20NfK7J.js → LockIcon-Bt33Hpov.js} +1 -1
  36. package/dist/assets/{Loop-AFtqcSsh.js → Loop-Cw5ml29r.js} +1 -1
  37. package/dist/assets/{MoreHoriz-kAuD1nY3.js → MoreHoriz-CcbBublh.js} +1 -1
  38. package/dist/assets/{MoreVert-Dd_rZHl1.js → MoreVert-CB4vQPic.js} +1 -1
  39. package/dist/assets/{OpenInNew-DYXjNtnC.js → OpenInNew-BqTIjahQ.js} +1 -1
  40. package/dist/assets/{Pagination-8KVsI0JZ.js → Pagination-DASlGbyu.js} +1 -1
  41. package/dist/assets/{PlayArrow-s9OSCCm9.js → PlayArrow-vh3KxOxB.js} +1 -1
  42. package/dist/assets/{QuestionMarkCircle-50eq7smQ.js → QuestionMarkCircle-iO2RyeuL.js} +1 -1
  43. package/dist/assets/{RadioGroup-DImJzaoP.js → RadioGroup-BN2d11MQ.js} +1 -1
  44. package/dist/assets/{Search-CxTEsXhT.js → Search-6e7HNczH.js} +1 -1
  45. package/dist/assets/{Select-D6CeNImJ.js → Select-C_8EtoAI.js} +1 -1
  46. package/dist/assets/{ServerLogo-dvjXsp5I.js → ServerLogo-BVgOVZYs.js} +1 -1
  47. package/dist/assets/{Skeleton-DL2VL97S.js → Skeleton-BnhPRGgN.js} +1 -1
  48. package/dist/assets/{Slider-DSplqaCn.js → Slider-BAB85oRN.js} +1 -1
  49. package/dist/assets/{Stepper-DJQ-xHUp.js → Stepper-CC1pyQEm.js} +1 -1
  50. package/dist/assets/{TextField-DVioGsc-.js → TextField-COPeEWpZ.js} +1 -1
  51. package/dist/assets/{Toolbar-CRxjvb2_.js → Toolbar-BPW2rPOy.js} +1 -1
  52. package/dist/assets/{ViewList-2sUBAhN9.js → ViewList-DF9-4lGA.js} +1 -1
  53. package/dist/assets/{access-control-q6rCI632.js → access-control-diYEKGpc.js} +1 -1
  54. package/dist/assets/{actions-DLwaHSiX.js → actions-CGml5EzX.js} +1 -1
  55. package/dist/assets/{add-component-core-B3gU-T0w.js → add-component-core-B8i7T4Kg.js} +1 -1
  56. package/dist/assets/{add-resource-b81lLJ0f.js → add-resource-YZL6z_wU.js} +1 -1
  57. package/dist/assets/{addon-FuoBpuOX.js → addon-OfXnspdE.js} +1 -1
  58. package/dist/assets/{analytics-DiVy8Vmf.js → analytics-Dq8yHdj9.js} +1 -1
  59. package/dist/assets/api-DQ0CtWLc.js +1 -0
  60. package/dist/assets/{audit-logs-Bv-gENHC.js → audit-logs-BYoVbCT9.js} +1 -1
  61. package/dist/assets/{button-eQ0RcFyP.js → button-CFuVKG7l.js} +1 -1
  62. package/dist/assets/{click-to-copy-C0t70-Pv.js → click-to-copy-BFYwGrB_.js} +1 -1
  63. package/dist/assets/{complete-pY8wsJjf.js → complete-cYx5ykZG.js} +1 -1
  64. package/dist/assets/{component-BFX3kRXD.js → component-B5cayF5L.js} +1 -1
  65. package/dist/assets/{config-ndQXqG8O.js → config-B0F49VCo.js} +1 -1
  66. package/dist/assets/{config-CIbQaP5R.js → config-BbIXkvgr.js} +1 -1
  67. package/dist/assets/{config-navigation-CC8qHxUp.js → config-navigation-DAac71Vd.js} +1 -1
  68. package/dist/assets/{config-space-DN8oNvsB.js → config-space-C5zZHk3Q.js} +1 -1
  69. package/dist/assets/{confirm-DcZkK6Pc.js → confirm-BnMV0-HV.js} +1 -1
  70. package/dist/assets/{connect-6vivetnz.js → connect-BPk-2UWA.js} +1 -1
  71. package/dist/assets/{connect-nZhD-SxO.js → connect-CZP4VPEG.js} +1 -1
  72. package/dist/assets/{connect-to-BU03yn0n.js → connect-to-D5VCzm-i.js} +1 -1
  73. package/dist/assets/{content-layout-DgQ1ivqD.js → content-layout-B22yg9Bb.js} +1 -1
  74. package/dist/assets/{dashboard-DJj7YdCJ.js → dashboard-B3FiMlvK.js} +3 -3
  75. package/dist/assets/{did-address-1pTl5ZJp.js → did-address-B8N2tjFV.js} +1 -1
  76. package/dist/assets/{domain-DbHm_W8g.js → domain-e0H5zZEP.js} +1 -1
  77. package/dist/assets/{domain-list-D69n3xq6.js → domain-list-DgSG0eYl.js} +1 -1
  78. package/dist/assets/{exchange-passport-C1vO8vf7.js → exchange-passport-6c_9Fn5y.js} +1 -1
  79. package/dist/assets/{fallback-Co8Kc2kj.js → fallback-rmTIFQSJ.js} +1 -1
  80. package/dist/assets/{format-error-DSoyPyVx.js → format-error-Bl69lCj-.js} +1 -1
  81. package/dist/assets/{fuel-C-ZdhzZC.js → fuel-ZNj56cX4.js} +1 -1
  82. package/dist/assets/{fullpage-BxLSpyM0.js → fullpage-CwwzBmps.js} +1 -1
  83. package/dist/assets/{home-6XDnH9s-.js → home-COTTRtSb.js} +1 -1
  84. package/dist/assets/{iframe-BWL5r6kn.js → iframe-coF9tnYB.js} +1 -1
  85. package/dist/assets/{index-BWJ8VQ8o.js → index-3gowKxHt.js} +1 -1
  86. package/dist/assets/{index-Bc3Y41oE.js → index-5uzjMizz.js} +1 -1
  87. package/dist/assets/{index-B36YvF84.js → index-7WP5qycS.js} +1 -1
  88. package/dist/assets/{index-DpC9sww1.js → index-BBng4lwc.js} +1 -1
  89. package/dist/assets/{index-C82L-zg9.js → index-BJrPsPDp.js} +1 -1
  90. package/dist/assets/{index-D7CVGBHs.js → index-BR2_C7Zl.js} +1 -1
  91. package/dist/assets/{index-0Kwb6jmK.js → index-Bdg3eQL4.js} +1 -1
  92. package/dist/assets/{index-DRjKGjM-.js → index-BrZFXRud.js} +1 -1
  93. package/dist/assets/{index-DkWYK9Jo.js → index-C7HdzERt.js} +8 -8
  94. package/dist/assets/{index-6uPYP6zK.js → index-C9lrp93a.js} +1 -1
  95. package/dist/assets/{index-CHSnAsQ1.js → index-CL2MuWgy.js} +2 -2
  96. package/dist/assets/{index-CkaWI_Zl.js → index-CSvt-uFl.js} +1 -1
  97. package/dist/assets/{index-Cnmgkvme.js → index-Cj6tOOrI.js} +1 -1
  98. package/dist/assets/{index-BaC0Haea.js → index-Cp_x9pQ7.js} +1 -1
  99. package/dist/assets/{index-DJWtIeK5.js → index-CsVY8MSI.js} +1 -1
  100. package/dist/assets/{index-knmEO6mr.js → index-DDeCtOVE.js} +1 -1
  101. package/dist/assets/{index-vwRhQ5RS.js → index-DH5UmDxM.js} +1 -1
  102. package/dist/assets/{index-vP3Tn4O7.js → index-DLFs97ye.js} +1 -1
  103. package/dist/assets/{index-B8_eoYBV.js → index-DVbPOY8J.js} +1 -1
  104. package/dist/assets/{index-DhQKOamW.js → index-DZ-4NSdT.js} +1 -1
  105. package/dist/assets/{index-NRVaJz9f.js → index-DdYRNkRT.js} +1 -1
  106. package/dist/assets/{index-BtByfVAB.js → index-De96Lyyw.js} +1 -1
  107. package/dist/assets/{index-DCBDib20.js → index-DfknqkBQ.js} +1 -1
  108. package/dist/assets/{index-DUwoq2dS.js → index-MIJejdfR.js} +1 -1
  109. package/dist/assets/{index-CnDdm9g9.js → index-MfIQbGJk.js} +3 -3
  110. package/dist/assets/{index-CsPuSl01.js → index-OyvKdcXL.js} +1 -1
  111. package/dist/assets/{index-D_gLZbnC.js → index-PxS9yNQw.js} +1 -1
  112. package/dist/assets/{index-DViM25Vy.js → index-hKKO_ETj.js} +1 -1
  113. package/dist/assets/{index-CI4IafEw.js → index-xH4Oj7ao.js} +1 -1
  114. package/dist/assets/{index-uHERBk1s.js → index-zLmacV1e.js} +1 -1
  115. package/dist/assets/{index.es-CAvKNGJJ.js → index.es-BvO-sO5c.js} +1 -1
  116. package/dist/assets/{index.esm-OBsOHYQt.js → index.esm-dtU2uSGd.js} +1 -1
  117. package/dist/assets/{invitation-BgQ2lCo2.js → invitation-Iw42cpUv.js} +1 -1
  118. package/dist/assets/{invite-B8ygHcEw.js → invite-CVLYppb4.js} +1 -1
  119. package/dist/assets/{issue-passport-CQSIbZov.js → issue-passport-eurFLrCb.js} +1 -1
  120. package/dist/assets/{item-D_tapEj7.js → item-Dq2QNfn5.js} +1 -1
  121. package/dist/assets/{jss-plugin-props-sort.esm-D277VpMG.js → jss-plugin-props-sort.esm-DzavEauW.js} +1 -1
  122. package/dist/assets/{launch-result-message-zvz9QdJ0.js → launch-result-message-Df16VNd8.js} +1 -1
  123. package/dist/assets/{layout-66Qddc3Z.js → layout-CDguKnNr.js} +1 -1
  124. package/dist/assets/{list-header-CVFTxg9p.js → list-header-E2yyBlW8.js} +1 -1
  125. package/dist/assets/localization-DTZCbh2e.js +1 -0
  126. package/dist/assets/{log-m5_kgR9i.js → log-BMysUlUH.js} +1 -1
  127. package/dist/assets/{login-BCQZewGI.js → login-CWETzIqM.js} +1 -1
  128. package/dist/assets/{login-oauth-callback-DrGlI4fl.js → login-oauth-callback-DdEzqi_q.js} +1 -1
  129. package/dist/assets/{logo-uploader-BxL2AT1m.js → logo-uploader-B96Ok6Ys.js} +3 -3
  130. package/dist/assets/{lost-passport-CvgZJmfW.js → lost-passport-BgvFWPpw.js} +3 -3
  131. package/dist/assets/{lottie-C925gYap.js → lottie-CQi0bh2D.js} +1 -1
  132. package/dist/assets/{notifications-Dle2tsHf.js → notifications-H3utjGZ3.js} +1 -1
  133. package/dist/assets/{overview-RpXehI-A.js → overview-ZAPewHci.js} +1 -1
  134. package/dist/assets/{page-header-nMH5Nm1-.js → page-header-CLjZ-_ic.js} +1 -1
  135. package/dist/assets/{permission-DPowxK7C.js → permission-BTXpHNMQ.js} +1 -1
  136. package/dist/assets/{preferences-C1i7ovMQ.js → preferences-8FPR-jP2.js} +1 -1
  137. package/dist/assets/publish-resource-_ZSTQIwh.js +1 -0
  138. package/dist/assets/{react-DR-nB82P.js → react-DhoomF4D.js} +3 -3
  139. package/dist/assets/{redux-DfSDCKtt.js → redux-vempXYa0.js} +1 -1
  140. package/dist/assets/{resource-dialog-ifz0m_FZ.js → resource-dialog-D9_0yRlW.js} +1 -1
  141. package/dist/assets/{selector-C4Gh2j9t.js → selector-BNNdkkFG.js} +1 -1
  142. package/dist/assets/session-CkWtK0_2.js +1 -0
  143. package/dist/assets/{setup-BKousrMa.js → setup-DaVOczDK.js} +3 -3
  144. package/dist/assets/{shorten-label--VZVYLZC.js → shorten-label-HQwCiW2q.js} +1 -1
  145. package/dist/assets/{slicedToArray-CVLbnzuy.js → slicedToArray-V2PX1JN8.js} +1 -1
  146. package/dist/assets/{spaces-BGhjBX1b.js → spaces-CzJrHGyH.js} +1 -1
  147. package/dist/assets/{start-Be-aPrp4.js → start-DCN0_Fob.js} +1 -1
  148. package/dist/assets/{step-actions-CEK8mgUw.js → step-actions-DjXtFHj4.js} +1 -1
  149. package/dist/assets/{studio-DAsrT0p3.js → studio-DjONt7Ut.js} +1 -1
  150. package/dist/assets/{switch-control-CdZ7hT3y.js → switch-control-DmU8QSF4.js} +1 -1
  151. package/dist/assets/{toUpper-B3I7eG1g.js → toUpper-D5PDJ7_3.js} +1 -1
  152. package/dist/assets/{transfer--Bgmivmp.js → transfer-CZ1khuA-.js} +1 -1
  153. package/dist/assets/{uniqBy-BA_TMJYf.js → uniqBy-CPwHHBOm.js} +1 -1
  154. package/dist/assets/{unsubscribe-fhr9EaAr.js → unsubscribe-B_bxr7uP.js} +1 -1
  155. package/dist/assets/{url-join-JgKEtdA2.js → url-join-Dnsu_5vQ.js} +1 -1
  156. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-rQZBR8_3.js → use-blocklet-info-for-connect-did-spaces-oRSb2cvE.js} +1 -1
  157. package/dist/assets/{use-mobile-DCi1_Enm.js → use-mobile-CIUcHXVJ.js} +1 -1
  158. package/dist/assets/{useAsync-B3RNaSvA.js → useAsync-D4jpP_Cn.js} +1 -1
  159. package/dist/assets/{useFormControl-oAKl9UVb.js → useFormControl-DhPkOJZO.js} +1 -1
  160. package/dist/assets/{useLocalStorage-BnVJN1iM.js → useLocalStorage-DLUzHeWb.js} +1 -1
  161. package/dist/assets/{useSetState-Bw-0RwWQ.js → useSetState-COv8V7Hh.js} +1 -1
  162. package/dist/assets/{useSlot-Cwz6OM5B.js → useSlot-DGpPHvLx.js} +1 -1
  163. package/dist/assets/{user-center-BsD4RIvy.js → user-center-foGiOHVN.js} +1 -1
  164. package/dist/assets/{user-sessions-COQO8nIH.js → user-sessions-Bu6WVoE0.js} +1 -1
  165. package/dist/assets/{util-CRACQuGi.js → util-DuWlpeLs.js} +1 -1
  166. package/dist/assets/{wrap-locale-CNoCPP-4.js → wrap-locale-BZGc1oQt.js} +1 -1
  167. package/dist/index.html +1 -1
  168. package/dist/service-worker.js +1 -1
  169. package/package.json +18 -18
  170. package/dist/assets/api-CK31hCQN.js +0 -1
  171. package/dist/assets/localization-BNU71z-g.js +0 -1
  172. package/dist/assets/publish-resource-Cdc_Imtz.js +0 -1
  173. package/dist/assets/session-DFjt4_rn.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as c,u as g,j as e,a as L,az as B,P as j,bj as R,af as E,a7 as I,B as N,E as f,q as h,Z as z,aS as _}from"./index-CHSnAsQ1.js";import{P as F}from"./page-header-nMH5Nm1-.js";import{A as W}from"./config-ndQXqG8O.js";import{S as H}from"./layout-66Qddc3Z.js";import{S as q}from"./step-actions-CEK8mgUw.js";import{S as O}from"./button-eQ0RcFyP.js";import{d as $}from"./InfoOutlined-DUs9-7mj.js";import{F as G}from"./FormControl-B_Do5Nt6.js";import{R as V,a as Z}from"./RadioGroup-DImJzaoP.js";import{F as x,C as D}from"./FormControlLabel-BDYHQJ8F.js";import"./content-layout-DgQ1ivqD.js";import"./useFormControl-oAKl9UVb.js";import"./FormGroup-Bk12j31H.js";function b({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"})})})]})}b.propTypes={children:j.any.isRequired};const J=c.memo(b);function y({onNext:s}){const i=R(),{t:r,locale:m}=g(),[a,o]=c.useState(!1),[p,d]=c.useState(""),[S,C]=c.useState(!1),{blocklet:n,actions:u,getPublicInstance:v}=E();c.useEffect(()=>{d(I.getWhoCanAccess(n)),C(v(n))},[n]);const A=async t=>{try{o(!0),await _(800),await u.configWhoCanAccess(t),o(!1)}catch(l){o(!1),h.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),h.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(F,{title:r("blocklet.config.access.description")})}),e.jsx(G,{component:"fieldset",children:e.jsx(V,{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(N,{className:"tip",children:[t.description[m],t.value===f.WHO_CAN_ACCESS.ALL&&p===f.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:S,disabled:a})})]})]},t.value))})}),e.jsx(q,{mt:8,disabled:a,blocklet:n,onStartNow:()=>s("complete"),children:e.jsx(O,{loading:a,variant:"contained",disabled:a,onClick:()=>s(),children:r("setup.continue")})})]})}y.propTypes={onNext:j.func};y.defaultProps={onNext:()=>{}};const K=z(H)`
1
+ import{r as c,u as g,j as e,a as L,az as B,P as j,bj as R,af as E,a7 as I,B as N,E as f,q as h,Z as z,aS as _}from"./index-CL2MuWgy.js";import{P as F}from"./page-header-CLjZ-_ic.js";import{A as W}from"./config-B0F49VCo.js";import{S as H}from"./layout-CDguKnNr.js";import{S as q}from"./step-actions-DjXtFHj4.js";import{S as O}from"./button-CFuVKG7l.js";import{d as $}from"./InfoOutlined-5DVg0LZC.js";import{F as G}from"./FormControl-DrLoqvI1.js";import{R as V,a as Z}from"./RadioGroup-BN2d11MQ.js";import{F as x,C as D}from"./FormControlLabel-BZ-Na1Px.js";import"./content-layout-B22yg9Bb.js";import"./useFormControl-DhPkOJZO.js";import"./FormGroup-B_cYMk58.js";function b({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"})})})]})}b.propTypes={children:j.any.isRequired};const J=c.memo(b);function y({onNext:s}){const i=R(),{t:r,locale:m}=g(),[a,o]=c.useState(!1),[p,d]=c.useState(""),[S,C]=c.useState(!1),{blocklet:n,actions:u,getPublicInstance:v}=E();c.useEffect(()=>{d(I.getWhoCanAccess(n)),C(v(n))},[n]);const A=async t=>{try{o(!0),await _(800),await u.configWhoCanAccess(t),o(!1)}catch(l){o(!1),h.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),h.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(F,{title:r("blocklet.config.access.description")})}),e.jsx(G,{component:"fieldset",children:e.jsx(V,{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(N,{className:"tip",children:[t.description[m],t.value===f.WHO_CAN_ACCESS.ALL&&p===f.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:S,disabled:a})})]})]},t.value))})}),e.jsx(q,{mt:8,disabled:a,blocklet:n,onStartNow:()=>s("complete"),children:e.jsx(O,{loading:a,variant:"contained",disabled:a,onClick:()=>s(),children:r("setup.continue")})})]})}y.propTypes={onNext:j.func};y.defaultProps={onNext:()=>{}};const K=z(H)`
2
2
  height: 100%;
3
3
  overflow-y: auto;
4
4
  .header {
@@ -1 +1 @@
1
- import{r as c,j as a,az as g,aO as E,aP as v,aQ as I,P as p,Z as z}from"./index-CHSnAsQ1.js";import{d as D}from"./MoreHoriz-kAuD1nY3.js";import{L as T,a as b}from"./ListItemText-CbVOTWQ3.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(g,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:y,size:m,children:a.jsx(D,{})}),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:A,onClick:o,disabled:j=!1,...P}=t;return c.createElement(I,{...P,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(T,{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=z.div``;export{l as A};
1
+ import{r as c,j as a,az as g,aO as E,aP as v,aQ as I,P as p,Z as z}from"./index-CL2MuWgy.js";import{d as D}from"./MoreHoriz-CcbBublh.js";import{L as T,a as b}from"./ListItemText-CK7nMTkm.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(g,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:y,size:m,children:a.jsx(D,{})}),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:A,onClick:o,disabled:j=!1,...P}=t;return c.createElement(I,{...P,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(T,{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=z.div``;export{l as A};
@@ -1,4 +1,4 @@
1
- import{aG as Wt,c_ as fs,c$ as ds,r as E,ez as hs,d5 as xs,aF as ks,j as c,cK as ys,aI as gs,d6 as vs,aJ as bs,aC as Es,aD as Ss,aK as As,U as Bt,O as on,eA as Ds,eB as Bs,h as Ht,eC as Os,eD as ws,c0 as Ps,eE as I0,bz as L0,E as Pi,b4 as Nt,eF as ca,ey as _s,bA as Cs,P as y,bt as ge,X as at,Y as it,a1 as we,l as Ne,ap as sr,Z as ke,cp as Z0,eG as Ts,eH as Gs,eI as js,eJ as Vs,eK as Is,B as H,f as _i,cq as Oe,D as Ls,T as Se,u as Re,$ as E0,bB as er,aM as S0,z as Ns,e as Rs,az as Fs,a7 as xt,eL as $s,I as Ci,aW as Ms,bk as Ks,bs as ua,eM as Us,c1 as $r,c as lr,eN as Hs,b_ as qs,q as sn,eO as zs,aV as cr,C as Ws,cx as Ys,eP as Ti,aQ as Gi,eQ as Xs,eR as Qs,av as ma,bj as ur,ad as ji,a8 as Vi,N as Ii,eS as Js,b as Li,ck as Zs,db as el,k as tl,eT as rl,bq as Ni,be as Ri,dq as qt,cj as nl,bm as al,dr as il,ae as ol,bn as sl,eU as ll,eV as cl,da as ul,ac as ml,A as pl,eW as fl,eX as dl,eY as hl,bx as xl,a9 as tt,cr as kl,eZ as yl,e_ as gl,e$ as vl,f0 as N0,f1 as pa,f2 as bl}from"./index-CHSnAsQ1.js";import{l as El}from"./lottie-C925gYap.js";import{u as Sl,a as Al,L as Dl,C as Bl,S as Ol}from"./config-space-DN8oNvsB.js";import{L as fa}from"./launch-result-message-zvz9QdJ0.js";import{P as Fi}from"./page-header-nMH5Nm1-.js";import{u as $i}from"./uniqBy-BA_TMJYf.js";import{R as Pr}from"./logo-uploader-BxL2AT1m.js";import{S as wl}from"./index-CI4IafEw.js";import{s as Mi,h as Pl,w as _l,f as Cl,a as Tl,b as Gl,c as jl,M as Vl}from"./index-knmEO6mr.js";import{j as da}from"./url-join-JgKEtdA2.js";import{F as Il,C as Ll,S as Nl}from"./FormControlLabel-BDYHQJ8F.js";import{I as ha}from"./index-Bc3Y41oE.js";import{u as Rl}from"./session-DFjt4_rn.js";import{W as Fl}from"./did-address-1pTl5ZJp.js";import{T as ln}from"./TextField-DVioGsc-.js";import{S as $l,a as Ml,b as Kl}from"./Stepper-DJQ-xHUp.js";import{D as Ul,f as Ki}from"./format-error-DSoyPyVx.js";import{A as Ui}from"./Alert-cwZghN5o.js";import{a as xa}from"./api-CK31hCQN.js";import{m as Hl,S as ql,A as zl}from"./item-D_tapEj7.js";import{L as Wl}from"./MoreVert-Dd_rZHl1.js";import{L as Yl,a as Xl}from"./ListItemText-CbVOTWQ3.js";import{v as Ql}from"./util-CRACQuGi.js";import{u as Hi,C as Jl,D as Zl,a as ec}from"./connect-to-BU03yn0n.js";import{C as tc}from"./content-layout-DgQ1ivqD.js";import{d as rc}from"./ArrowDropDown-DpHnrXJX.js";import{_ as nc}from"./useLocalStorage-BnVJN1iM.js";import{E as cn}from"./fallback-Co8Kc2kj.js";import{E as ac}from"./index-DJWtIeK5.js";import{d as ic}from"./Search-CxTEsXhT.js";import{S as oc}from"./index-Cnmgkvme.js";import{O as sc}from"./Select-D6CeNImJ.js";import{H as ka}from"./Hidden-kVeQMxEt.js";import{M as ya}from"./InputAdornment-C-wpGP7M.js";import{y as lc,g as cc,N as uc}from"./preact.module-B1z5cdvs.js";import{E as mc}from"./Link-D9C6v4KL.js";const pc=(e,t)=>e.filter(r=>t.includes(r)),Rt=(e,t,r)=>{const n=e.keys[0];Array.isArray(t)?t.forEach((a,i)=>{r((o,s)=>{i<=e.keys.length-1&&(i===0?Object.assign(o,s):o[e.up(e.keys[i])]=s)},a)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:pc(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.indexOf(i)!==-1){const o=t[i];o!==void 0&&r((s,l)=>{n===i?Object.assign(s,l):s[e.up(i)]=l},o)}}):(typeof t=="number"||typeof t=="string")&&r((a,i)=>{Object.assign(a,i)},t)};function Xe(e){return e?`Level${e}`:""}function A0(e){return e.unstable_level>0&&e.container}function qi(e){return function(r){return`var(--Grid-${r}Spacing${Xe(e.unstable_level)})`}}function un(e){return function(r){return e.unstable_level===0?`var(--Grid-${r}Spacing)`:`var(--Grid-${r}Spacing${Xe(e.unstable_level-1)})`}}function mn(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${Xe(e.unstable_level-1)})`}const fc=({theme:e,ownerState:t})=>{const r=qi(t),n={};return Rt(e.breakpoints,t.gridSize,(a,i)=>{let o={};i===!0&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),i==="auto"&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof i=="number"&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${i} / ${mn(t)}${A0(t)?` + ${r("column")}`:""})`}),a(n,o)}),n},dc=({theme:e,ownerState:t})=>{const r={};return Rt(e.breakpoints,t.gridOffset,(n,a)=>{let i={};a==="auto"&&(i={marginLeft:"auto"}),typeof a=="number"&&(i={marginLeft:a===0?"0px":`calc(100% * ${a} / ${mn(t)})`}),n(r,i)}),r},hc=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=A0(t)?{[`--Grid-columns${Xe(t.unstable_level)}`]:mn(t)}:{"--Grid-columns":12};return Rt(e.breakpoints,t.columns,(n,a)=>{n(r,{[`--Grid-columns${Xe(t.unstable_level)}`]:a})}),r},xc=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=un(t),n=A0(t)?{[`--Grid-rowSpacing${Xe(t.unstable_level)}`]:r("row")}:{};return Rt(e.breakpoints,t.rowSpacing,(a,i)=>{var o;a(n,{[`--Grid-rowSpacing${Xe(t.unstable_level)}`]:typeof i=="string"?i:(o=e.spacing)==null?void 0:o.call(e,i)})}),n},kc=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=un(t),n=A0(t)?{[`--Grid-columnSpacing${Xe(t.unstable_level)}`]:r("column")}:{};return Rt(e.breakpoints,t.columnSpacing,(a,i)=>{var o;a(n,{[`--Grid-columnSpacing${Xe(t.unstable_level)}`]:typeof i=="string"?i:(o=e.spacing)==null?void 0:o.call(e,i)})}),n},yc=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return Rt(e.breakpoints,t.direction,(n,a)=>{n(r,{flexDirection:a})}),r},gc=({ownerState:e})=>{const t=qi(e),r=un(e);return Wt({minWidth:0,boxSizing:"border-box"},e.container&&Wt({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||A0(e))&&Wt({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},vc=e=>{const t=[];return Object.entries(e).forEach(([r,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${r}-${String(n)}`)}),t},bc=(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,i])=>{r(i)&&n.push(`spacing-${a}-${String(i)}`)}),n}return[]},Ec=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`],Sc=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],Ac=fs(),Dc=ds("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Bc(e){return vs({props:e,name:"MuiGrid",defaultTheme:Ac})}function Oc(e={}){const{createStyledComponent:t=Dc,useThemeProps:r=Bc,componentName:n="MuiGrid"}=e,a=E.createContext(void 0),i=(l,u)=>{const{container:p,direction:m,spacing:f,wrap:x,gridSize:k}=l,h={root:["root",p&&"container",x!=="wrap"&&`wrap-xs-${String(x)}`,...Ec(m),...vc(k),...p?bc(f,u.breakpoints.keys[0]):[]]};return bs(h,g=>Es(n,g),{})},o=t(hc,kc,xc,fc,yc,gc,dc),s=E.forwardRef(function(u,p){var m,f,x,k,h,g,A,b;const D=hs(),B=r(u),w=xs(B),T=E.useContext(a),{className:G,children:j,columns:P=12,container:C=!1,component:_="div",direction:W="row",wrap:Q="wrap",spacing:Z=0,rowSpacing:N=Z,columnSpacing:q=Z,disableEqualOverflow:X,unstable_level:v=0}=w,R=ks(w,Sc);let U=X;v&&X!==void 0&&(U=u.disableEqualOverflow);const te={},Y={},be={};Object.entries(R).forEach(([ye,Ae])=>{D.breakpoints.values[ye]!==void 0?te[ye]=Ae:D.breakpoints.values[ye.replace("Offset","")]!==void 0?Y[ye.replace("Offset","")]=Ae:be[ye]=Ae});const ve=(m=u.columns)!=null?m:v?void 0:P,Fe=(f=u.spacing)!=null?f:v?void 0:Z,ot=(x=(k=u.rowSpacing)!=null?k:u.spacing)!=null?x:v?void 0:N,st=(h=(g=u.columnSpacing)!=null?g:u.spacing)!=null?h:v?void 0:q,qe=Wt({},w,{level:v,columns:ve,container:C,direction:W,wrap:Q,spacing:Fe,rowSpacing:ot,columnSpacing:st,gridSize:te,gridOffset:Y,disableEqualOverflow:(A=(b=U)!=null?b:T)!=null?A:!1,parentDisableEqualOverflow:T}),fe=i(qe,D);let ae=c.jsx(o,Wt({ref:p,as:_,ownerState:qe,className:gs(fe.root,G)},be,{children:E.Children.map(j,ye=>{if(E.isValidElement(ye)&&ys(ye,["Grid"])){var Ae;return E.cloneElement(ye,{unstable_level:(Ae=ye.props.unstable_level)!=null?Ae:v+1})}return ye})}));return U!==void 0&&U!==(T??!1)&&(ae=c.jsx(a.Provider,{value:U,children:ae})),ae});return s.muiName="Grid",s}const wc=Oc({createStyledComponent:Ss("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>As({props:e,name:"MuiGrid2"})}),_r=wc;var Pc=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},_c=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},Cc=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Tc=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,a=t.threshold,i=a===void 0?100:a,o=t.reloadDeps,s=o===void 0?[]:o,l=t.manual,u=t.onBefore,p=t.onSuccess,m=t.onError,f=t.onFinally,x=Bt(E.useState(),2),k=x[0],h=x[1],g=Bt(E.useState(!1),2),A=g[0],b=g[1],D=E.useMemo(function(){return n?n(k):!1},[k]),B=on(function(N){return Ds(void 0,void 0,void 0,function(){var q,X,v;return Bs(this,function(R){switch(R.label){case 0:return[4,e(N)];case 1:return q=R.sent(),h(N?L0(L0({},q),{list:I0(I0([],Bt((v=N.list)!==null&&v!==void 0?v:[]),!1),Bt(q.list),!1)}):L0(L0({},q),{list:I0([],Bt((X=q.list)!==null&&X!==void 0?X:[]),!1)})),[2,q]}})})},{manual:l,onFinally:function(N,q,X){b(!1),f==null||f(q,X)},onBefore:function(){return u==null?void 0:u()},onSuccess:function(N){setTimeout(function(){Z()}),p==null||p(N)},onError:function(N){return m==null?void 0:m(N)}}),w=B.loading,T=B.error,G=B.run,j=B.runAsync,P=B.cancel,C=Ht(function(){D||(b(!0),G(k))}),_=Ht(function(){return D?Promise.reject():(b(!0),j(k))}),W=function(){return b(!1),G()},Q=function(){return b(!1),j()},Z=function(){var N=Os(r);if(N){N=N===document?document.documentElement:N;var q=Pc(N),X=_c(N),v=Cc(N);X-q<=v+i&&C()}};return ws("scroll",function(){w||A||Z()},{target:r}),Ps(function(){G()},I0([],Bt(s),!1)),{data:k,loading:!A&&w,error:T,loadingMore:A,noMore:D,loadMore:C,loadMoreAsync:_,reload:Ht(W),reloadAsync:Ht(Q),mutate:h,cancel:P}};const Gc=Tc,ry="blocklet-add-component-registry",ny="server-add-registry",ay=e=>`resource-${e}-add-registry`,{NODE_MODES:ga}=Pi,jc=({mode:e,previousMode:t}={})=>e===ga.SERVERLESS||t===ga.SERVERLESS;var zi={isInServerlessMode:jc},Vc=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,i;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(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=n;a--!==0;){var o=i[a];if(!(o==="_owner"&&t.$$typeof)&&!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r};const va=Nt(Vc);var Ic=Lc;function jt(e){return e instanceof ca?ca.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function Lc(e){if(e=e||{},e.circles)return Nc(e);return e.proto?n:r;function t(a,i){for(var o=Object.keys(a),s=new Array(o.length),l=0;l<o.length;l++){var u=o[l],p=a[u];typeof p!="object"||p===null?s[u]=p:p instanceof Date?s[u]=new Date(p):ArrayBuffer.isView(p)?s[u]=jt(p):s[u]=i(p)}return s}function r(a){if(typeof a!="object"||a===null)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return t(a,r);if(a instanceof Map)return new Map(t(Array.from(a),r));if(a instanceof Set)return new Set(t(Array.from(a),r));var i={};for(var o in a)if(Object.hasOwnProperty.call(a,o)!==!1){var s=a[o];typeof s!="object"||s===null?i[o]=s:s instanceof Date?i[o]=new Date(s):s instanceof Map?i[o]=new Map(t(Array.from(s),r)):s instanceof Set?i[o]=new Set(t(Array.from(s),r)):ArrayBuffer.isView(s)?i[o]=jt(s):i[o]=r(s)}return i}function n(a){if(typeof a!="object"||a===null)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return t(a,n);if(a instanceof Map)return new Map(t(Array.from(a),n));if(a instanceof Set)return new Set(t(Array.from(a),n));var i={};for(var o in a){var s=a[o];typeof s!="object"||s===null?i[o]=s:s instanceof Date?i[o]=new Date(s):s instanceof Map?i[o]=new Map(t(Array.from(s),n)):s instanceof Set?i[o]=new Set(t(Array.from(s),n)):ArrayBuffer.isView(s)?i[o]=jt(s):i[o]=n(s)}return i}}function Nc(e){var t=[],r=[];return e.proto?i:a;function n(o,s){for(var l=Object.keys(o),u=new Array(l.length),p=0;p<l.length;p++){var m=l[p],f=o[m];if(typeof f!="object"||f===null)u[m]=f;else if(f instanceof Date)u[m]=new Date(f);else if(ArrayBuffer.isView(f))u[m]=jt(f);else{var x=t.indexOf(f);x!==-1?u[m]=r[x]:u[m]=s(f)}}return u}function a(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return n(o,a);if(o instanceof Map)return new Map(n(Array.from(o),a));if(o instanceof Set)return new Set(n(Array.from(o),a));var s={};t.push(o),r.push(s);for(var l in o)if(Object.hasOwnProperty.call(o,l)!==!1){var u=o[l];if(typeof u!="object"||u===null)s[l]=u;else if(u instanceof Date)s[l]=new Date(u);else if(u instanceof Map)s[l]=new Map(n(Array.from(u),a));else if(u instanceof Set)s[l]=new Set(n(Array.from(u),a));else if(ArrayBuffer.isView(u))s[l]=jt(u);else{var p=t.indexOf(u);p!==-1?s[l]=r[p]:s[l]=a(u)}}return t.pop(),r.pop(),s}function i(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return n(o,i);if(o instanceof Map)return new Map(n(Array.from(o),i));if(o instanceof Set)return new Set(n(Array.from(o),i));var s={};t.push(o),r.push(s);for(var l in o){var u=o[l];if(typeof u!="object"||u===null)s[l]=u;else if(u instanceof Date)s[l]=new Date(u);else if(u instanceof Map)s[l]=new Map(n(Array.from(u),i));else if(u instanceof Set)s[l]=new Set(n(Array.from(u),i));else if(ArrayBuffer.isView(u))s[l]=jt(u);else{var p=t.indexOf(u);p!==-1?s[l]=r[p]:s[l]=i(u)}}return t.pop(),r.pop(),s}}var Rc=Ic();const ba=Nt(Rc);function Mr(){return Mr=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},Mr.apply(this,arguments)}function Fc(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function pn(e,t){return t={exports:{}},e(t,t.exports),t.exports}/** @license React v16.13.1
1
+ import{aG as Wt,c_ as fs,c$ as ds,r as E,ez as hs,d5 as xs,aF as ks,j as c,cK as ys,aI as gs,d6 as vs,aJ as bs,aC as Es,aD as Ss,aK as As,U as Bt,O as on,eA as Ds,eB as Bs,h as Ht,eC as Os,eD as ws,c0 as Ps,eE as I0,bz as L0,E as Pi,b4 as Nt,eF as ca,ey as _s,bA as Cs,P as y,bt as ge,X as at,Y as it,a1 as we,l as Ne,ap as sr,Z as ke,cp as Z0,eG as Ts,eH as Gs,eI as js,eJ as Vs,eK as Is,B as H,f as _i,cq as Oe,D as Ls,T as Se,u as Re,$ as E0,bB as er,aM as S0,z as Ns,e as Rs,az as Fs,a7 as xt,eL as $s,I as Ci,aW as Ms,bk as Ks,bs as ua,eM as Us,c1 as $r,c as lr,eN as Hs,b_ as qs,q as sn,eO as zs,aV as cr,C as Ws,cx as Ys,eP as Ti,aQ as Gi,eQ as Xs,eR as Qs,av as ma,bj as ur,ad as ji,a8 as Vi,N as Ii,eS as Js,b as Li,ck as Zs,db as el,k as tl,eT as rl,bq as Ni,be as Ri,dq as qt,cj as nl,bm as al,dr as il,ae as ol,bn as sl,eU as ll,eV as cl,da as ul,ac as ml,A as pl,eW as fl,eX as dl,eY as hl,bx as xl,a9 as tt,cr as kl,eZ as yl,e_ as gl,e$ as vl,f0 as N0,f1 as pa,f2 as bl}from"./index-CL2MuWgy.js";import{l as El}from"./lottie-CQi0bh2D.js";import{u as Sl,a as Al,L as Dl,C as Bl,S as Ol}from"./config-space-C5zZHk3Q.js";import{L as fa}from"./launch-result-message-Df16VNd8.js";import{P as Fi}from"./page-header-CLjZ-_ic.js";import{u as $i}from"./uniqBy-CPwHHBOm.js";import{R as Pr}from"./logo-uploader-B96Ok6Ys.js";import{S as wl}from"./index-xH4Oj7ao.js";import{s as Mi,h as Pl,w as _l,f as Cl,a as Tl,b as Gl,c as jl,M as Vl}from"./index-DDeCtOVE.js";import{j as da}from"./url-join-Dnsu_5vQ.js";import{F as Il,C as Ll,S as Nl}from"./FormControlLabel-BZ-Na1Px.js";import{I as ha}from"./index-5uzjMizz.js";import{u as Rl}from"./session-CkWtK0_2.js";import{W as Fl}from"./did-address-B8N2tjFV.js";import{T as ln}from"./TextField-COPeEWpZ.js";import{S as $l,a as Ml,b as Kl}from"./Stepper-CC1pyQEm.js";import{D as Ul,f as Ki}from"./format-error-Bl69lCj-.js";import{A as Ui}from"./Alert-CdrO9wp_.js";import{a as xa}from"./api-DQ0CtWLc.js";import{m as Hl,S as ql,A as zl}from"./item-Dq2QNfn5.js";import{L as Wl}from"./MoreVert-CB4vQPic.js";import{L as Yl,a as Xl}from"./ListItemText-CK7nMTkm.js";import{v as Ql}from"./util-DuWlpeLs.js";import{u as Hi,C as Jl,D as Zl,a as ec}from"./connect-to-D5VCzm-i.js";import{C as tc}from"./content-layout-B22yg9Bb.js";import{d as rc}from"./ArrowDropDown-Cc7ZV2yN.js";import{_ as nc}from"./useLocalStorage-DLUzHeWb.js";import{E as cn}from"./fallback-rmTIFQSJ.js";import{E as ac}from"./index-CsVY8MSI.js";import{d as ic}from"./Search-6e7HNczH.js";import{S as oc}from"./index-Cj6tOOrI.js";import{O as sc}from"./Select-C_8EtoAI.js";import{H as ka}from"./Hidden-B3_ybJ-q.js";import{M as ya}from"./InputAdornment-Dmqc2UlU.js";import{y as lc,g as cc,N as uc}from"./preact.module-B1z5cdvs.js";import{E as mc}from"./Link-ltWIbLQC.js";const pc=(e,t)=>e.filter(r=>t.includes(r)),Rt=(e,t,r)=>{const n=e.keys[0];Array.isArray(t)?t.forEach((a,i)=>{r((o,s)=>{i<=e.keys.length-1&&(i===0?Object.assign(o,s):o[e.up(e.keys[i])]=s)},a)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:pc(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.indexOf(i)!==-1){const o=t[i];o!==void 0&&r((s,l)=>{n===i?Object.assign(s,l):s[e.up(i)]=l},o)}}):(typeof t=="number"||typeof t=="string")&&r((a,i)=>{Object.assign(a,i)},t)};function Xe(e){return e?`Level${e}`:""}function A0(e){return e.unstable_level>0&&e.container}function qi(e){return function(r){return`var(--Grid-${r}Spacing${Xe(e.unstable_level)})`}}function un(e){return function(r){return e.unstable_level===0?`var(--Grid-${r}Spacing)`:`var(--Grid-${r}Spacing${Xe(e.unstable_level-1)})`}}function mn(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${Xe(e.unstable_level-1)})`}const fc=({theme:e,ownerState:t})=>{const r=qi(t),n={};return Rt(e.breakpoints,t.gridSize,(a,i)=>{let o={};i===!0&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),i==="auto"&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof i=="number"&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${i} / ${mn(t)}${A0(t)?` + ${r("column")}`:""})`}),a(n,o)}),n},dc=({theme:e,ownerState:t})=>{const r={};return Rt(e.breakpoints,t.gridOffset,(n,a)=>{let i={};a==="auto"&&(i={marginLeft:"auto"}),typeof a=="number"&&(i={marginLeft:a===0?"0px":`calc(100% * ${a} / ${mn(t)})`}),n(r,i)}),r},hc=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=A0(t)?{[`--Grid-columns${Xe(t.unstable_level)}`]:mn(t)}:{"--Grid-columns":12};return Rt(e.breakpoints,t.columns,(n,a)=>{n(r,{[`--Grid-columns${Xe(t.unstable_level)}`]:a})}),r},xc=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=un(t),n=A0(t)?{[`--Grid-rowSpacing${Xe(t.unstable_level)}`]:r("row")}:{};return Rt(e.breakpoints,t.rowSpacing,(a,i)=>{var o;a(n,{[`--Grid-rowSpacing${Xe(t.unstable_level)}`]:typeof i=="string"?i:(o=e.spacing)==null?void 0:o.call(e,i)})}),n},kc=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=un(t),n=A0(t)?{[`--Grid-columnSpacing${Xe(t.unstable_level)}`]:r("column")}:{};return Rt(e.breakpoints,t.columnSpacing,(a,i)=>{var o;a(n,{[`--Grid-columnSpacing${Xe(t.unstable_level)}`]:typeof i=="string"?i:(o=e.spacing)==null?void 0:o.call(e,i)})}),n},yc=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return Rt(e.breakpoints,t.direction,(n,a)=>{n(r,{flexDirection:a})}),r},gc=({ownerState:e})=>{const t=qi(e),r=un(e);return Wt({minWidth:0,boxSizing:"border-box"},e.container&&Wt({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||A0(e))&&Wt({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},vc=e=>{const t=[];return Object.entries(e).forEach(([r,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${r}-${String(n)}`)}),t},bc=(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,i])=>{r(i)&&n.push(`spacing-${a}-${String(i)}`)}),n}return[]},Ec=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`],Sc=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],Ac=fs(),Dc=ds("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Bc(e){return vs({props:e,name:"MuiGrid",defaultTheme:Ac})}function Oc(e={}){const{createStyledComponent:t=Dc,useThemeProps:r=Bc,componentName:n="MuiGrid"}=e,a=E.createContext(void 0),i=(l,u)=>{const{container:p,direction:m,spacing:f,wrap:x,gridSize:k}=l,h={root:["root",p&&"container",x!=="wrap"&&`wrap-xs-${String(x)}`,...Ec(m),...vc(k),...p?bc(f,u.breakpoints.keys[0]):[]]};return bs(h,g=>Es(n,g),{})},o=t(hc,kc,xc,fc,yc,gc,dc),s=E.forwardRef(function(u,p){var m,f,x,k,h,g,A,b;const D=hs(),B=r(u),w=xs(B),T=E.useContext(a),{className:G,children:j,columns:P=12,container:C=!1,component:_="div",direction:W="row",wrap:Q="wrap",spacing:Z=0,rowSpacing:N=Z,columnSpacing:q=Z,disableEqualOverflow:X,unstable_level:v=0}=w,R=ks(w,Sc);let U=X;v&&X!==void 0&&(U=u.disableEqualOverflow);const te={},Y={},be={};Object.entries(R).forEach(([ye,Ae])=>{D.breakpoints.values[ye]!==void 0?te[ye]=Ae:D.breakpoints.values[ye.replace("Offset","")]!==void 0?Y[ye.replace("Offset","")]=Ae:be[ye]=Ae});const ve=(m=u.columns)!=null?m:v?void 0:P,Fe=(f=u.spacing)!=null?f:v?void 0:Z,ot=(x=(k=u.rowSpacing)!=null?k:u.spacing)!=null?x:v?void 0:N,st=(h=(g=u.columnSpacing)!=null?g:u.spacing)!=null?h:v?void 0:q,qe=Wt({},w,{level:v,columns:ve,container:C,direction:W,wrap:Q,spacing:Fe,rowSpacing:ot,columnSpacing:st,gridSize:te,gridOffset:Y,disableEqualOverflow:(A=(b=U)!=null?b:T)!=null?A:!1,parentDisableEqualOverflow:T}),fe=i(qe,D);let ae=c.jsx(o,Wt({ref:p,as:_,ownerState:qe,className:gs(fe.root,G)},be,{children:E.Children.map(j,ye=>{if(E.isValidElement(ye)&&ys(ye,["Grid"])){var Ae;return E.cloneElement(ye,{unstable_level:(Ae=ye.props.unstable_level)!=null?Ae:v+1})}return ye})}));return U!==void 0&&U!==(T??!1)&&(ae=c.jsx(a.Provider,{value:U,children:ae})),ae});return s.muiName="Grid",s}const wc=Oc({createStyledComponent:Ss("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>As({props:e,name:"MuiGrid2"})}),_r=wc;var Pc=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},_c=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},Cc=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Tc=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,a=t.threshold,i=a===void 0?100:a,o=t.reloadDeps,s=o===void 0?[]:o,l=t.manual,u=t.onBefore,p=t.onSuccess,m=t.onError,f=t.onFinally,x=Bt(E.useState(),2),k=x[0],h=x[1],g=Bt(E.useState(!1),2),A=g[0],b=g[1],D=E.useMemo(function(){return n?n(k):!1},[k]),B=on(function(N){return Ds(void 0,void 0,void 0,function(){var q,X,v;return Bs(this,function(R){switch(R.label){case 0:return[4,e(N)];case 1:return q=R.sent(),h(N?L0(L0({},q),{list:I0(I0([],Bt((v=N.list)!==null&&v!==void 0?v:[]),!1),Bt(q.list),!1)}):L0(L0({},q),{list:I0([],Bt((X=q.list)!==null&&X!==void 0?X:[]),!1)})),[2,q]}})})},{manual:l,onFinally:function(N,q,X){b(!1),f==null||f(q,X)},onBefore:function(){return u==null?void 0:u()},onSuccess:function(N){setTimeout(function(){Z()}),p==null||p(N)},onError:function(N){return m==null?void 0:m(N)}}),w=B.loading,T=B.error,G=B.run,j=B.runAsync,P=B.cancel,C=Ht(function(){D||(b(!0),G(k))}),_=Ht(function(){return D?Promise.reject():(b(!0),j(k))}),W=function(){return b(!1),G()},Q=function(){return b(!1),j()},Z=function(){var N=Os(r);if(N){N=N===document?document.documentElement:N;var q=Pc(N),X=_c(N),v=Cc(N);X-q<=v+i&&C()}};return ws("scroll",function(){w||A||Z()},{target:r}),Ps(function(){G()},I0([],Bt(s),!1)),{data:k,loading:!A&&w,error:T,loadingMore:A,noMore:D,loadMore:C,loadMoreAsync:_,reload:Ht(W),reloadAsync:Ht(Q),mutate:h,cancel:P}};const Gc=Tc,ry="blocklet-add-component-registry",ny="server-add-registry",ay=e=>`resource-${e}-add-registry`,{NODE_MODES:ga}=Pi,jc=({mode:e,previousMode:t}={})=>e===ga.SERVERLESS||t===ga.SERVERLESS;var zi={isInServerlessMode:jc},Vc=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,i;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(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=n;a--!==0;){var o=i[a];if(!(o==="_owner"&&t.$$typeof)&&!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r};const va=Nt(Vc);var Ic=Lc;function jt(e){return e instanceof ca?ca.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function Lc(e){if(e=e||{},e.circles)return Nc(e);return e.proto?n:r;function t(a,i){for(var o=Object.keys(a),s=new Array(o.length),l=0;l<o.length;l++){var u=o[l],p=a[u];typeof p!="object"||p===null?s[u]=p:p instanceof Date?s[u]=new Date(p):ArrayBuffer.isView(p)?s[u]=jt(p):s[u]=i(p)}return s}function r(a){if(typeof a!="object"||a===null)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return t(a,r);if(a instanceof Map)return new Map(t(Array.from(a),r));if(a instanceof Set)return new Set(t(Array.from(a),r));var i={};for(var o in a)if(Object.hasOwnProperty.call(a,o)!==!1){var s=a[o];typeof s!="object"||s===null?i[o]=s:s instanceof Date?i[o]=new Date(s):s instanceof Map?i[o]=new Map(t(Array.from(s),r)):s instanceof Set?i[o]=new Set(t(Array.from(s),r)):ArrayBuffer.isView(s)?i[o]=jt(s):i[o]=r(s)}return i}function n(a){if(typeof a!="object"||a===null)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return t(a,n);if(a instanceof Map)return new Map(t(Array.from(a),n));if(a instanceof Set)return new Set(t(Array.from(a),n));var i={};for(var o in a){var s=a[o];typeof s!="object"||s===null?i[o]=s:s instanceof Date?i[o]=new Date(s):s instanceof Map?i[o]=new Map(t(Array.from(s),n)):s instanceof Set?i[o]=new Set(t(Array.from(s),n)):ArrayBuffer.isView(s)?i[o]=jt(s):i[o]=n(s)}return i}}function Nc(e){var t=[],r=[];return e.proto?i:a;function n(o,s){for(var l=Object.keys(o),u=new Array(l.length),p=0;p<l.length;p++){var m=l[p],f=o[m];if(typeof f!="object"||f===null)u[m]=f;else if(f instanceof Date)u[m]=new Date(f);else if(ArrayBuffer.isView(f))u[m]=jt(f);else{var x=t.indexOf(f);x!==-1?u[m]=r[x]:u[m]=s(f)}}return u}function a(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return n(o,a);if(o instanceof Map)return new Map(n(Array.from(o),a));if(o instanceof Set)return new Set(n(Array.from(o),a));var s={};t.push(o),r.push(s);for(var l in o)if(Object.hasOwnProperty.call(o,l)!==!1){var u=o[l];if(typeof u!="object"||u===null)s[l]=u;else if(u instanceof Date)s[l]=new Date(u);else if(u instanceof Map)s[l]=new Map(n(Array.from(u),a));else if(u instanceof Set)s[l]=new Set(n(Array.from(u),a));else if(ArrayBuffer.isView(u))s[l]=jt(u);else{var p=t.indexOf(u);p!==-1?s[l]=r[p]:s[l]=a(u)}}return t.pop(),r.pop(),s}function i(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return n(o,i);if(o instanceof Map)return new Map(n(Array.from(o),i));if(o instanceof Set)return new Set(n(Array.from(o),i));var s={};t.push(o),r.push(s);for(var l in o){var u=o[l];if(typeof u!="object"||u===null)s[l]=u;else if(u instanceof Date)s[l]=new Date(u);else if(u instanceof Map)s[l]=new Map(n(Array.from(u),i));else if(u instanceof Set)s[l]=new Set(n(Array.from(u),i));else if(ArrayBuffer.isView(u))s[l]=jt(u);else{var p=t.indexOf(u);p!==-1?s[l]=r[p]:s[l]=i(u)}}return t.pop(),r.pop(),s}}var Rc=Ic();const ba=Nt(Rc);function Mr(){return Mr=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},Mr.apply(this,arguments)}function Fc(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function pn(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,af as L,bx as W,$ as O,r,c as A,c1 as T,bw as _,k as h,h as $,c2 as F,j as w,ap as K}from"./index-CHSnAsQ1.js";import{A as z,S as G}from"./add-component-core-B3gU-T0w.js";import"./lottie-C925gYap.js";import"./config-space-DN8oNvsB.js";import"./url-join-JgKEtdA2.js";import"./Skeleton-DL2VL97S.js";import"./Hidden-kVeQMxEt.js";import"./spaces-BGhjBX1b.js";import"./index-vwRhQ5RS.js";import"./api-CK31hCQN.js";import"./launch-result-message-zvz9QdJ0.js";import"./Close-DM3JyAUN.js";import"./page-header-nMH5Nm1-.js";import"./uniqBy-BA_TMJYf.js";import"./logo-uploader-BxL2AT1m.js";import"./index-C82L-zg9.js";import"./index-CI4IafEw.js";import"./EditIcon-jpbTcPi9.js";import"./Done-CIjx7jUD.js";import"./Google-CPv9gImr.js";import"./TextField-DVioGsc-.js";import"./FormControl-B_Do5Nt6.js";import"./useFormControl-oAKl9UVb.js";import"./InputLabel-4YX1ylv6.js";import"./Select-D6CeNImJ.js";import"./index-knmEO6mr.js";import"./FormControlLabel-BDYHQJ8F.js";import"./index-Bc3Y41oE.js";import"./session-DFjt4_rn.js";import"./did-address-1pTl5ZJp.js";import"./Link-D9C6v4KL.js";import"./Stepper-DJQ-xHUp.js";import"./format-error-DSoyPyVx.js";import"./Alert-cwZghN5o.js";import"./useSlot-Cwz6OM5B.js";import"./item-D_tapEj7.js";import"./Add-CG-F3Tpq.js";import"./MoreVert-Dd_rZHl1.js";import"./Launch-CahVoyyw.js";import"./DeleteOutline-UAdOMkx7.js";import"./click-to-copy-C0t70-Pv.js";import"./shorten-label--VZVYLZC.js";import"./confirm-DcZkK6Pc.js";import"./ButtonGroup-Cf877fOo.js";import"./jss-plugin-props-sort.esm-D277VpMG.js";import"./toPropertyKey-hKuLU48H.js";import"./ListItemText-CbVOTWQ3.js";import"./util-CRACQuGi.js";import"./connect-to-BU03yn0n.js";import"./use-blocklet-info-for-connect-did-spaces-rQZBR8_3.js";import"./CloseOutlined-D-nYpxl4.js";import"./index-BWJ8VQ8o.js";import"./ExpandMore-Vsh2QVwZ.js";import"./content-layout-DgQ1ivqD.js";import"./ArrowDropDown-DpHnrXJX.js";import"./useLocalStorage-BnVJN1iM.js";import"./fallback-Co8Kc2kj.js";import"./index-DJWtIeK5.js";import"./Search-CxTEsXhT.js";import"./index-Cnmgkvme.js";import"./InputAdornment-C-wpGP7M.js";import"./preact.module-B1z5cdvs.js";function Xt(){var u;const{t:g}=B(),{blocklet:a}=L(),{componentDid:s}=W(),f=O(t=>t.breakpoints.down("md")),o=new URL(window.location.href),C=o.searchParams.get("mode")==="dialog",p=o.searchParams.get("resourceType")||"",c=o.searchParams.get("resourceDid")||s,R=o.searchParams.get("store")||"",S=o.searchParams.get("showFromUrl")!=="false",y=o.searchParams.get("showResourcesSwitch")!=="false",E=o.searchParams.get("enableRunBackground")!=="false",P=o.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(e){return console.error(e),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 e=>{const i=A(e,"/api/store.json"),{data:v}=await T.get(i);return{url:e,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 e,i;((e=t.data)==null?void 0:e.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,e)=>{e!=="backdropClick"&&k()},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:d()}):d({inDialog:!1})}export{Xt as default};
1
+ import{u as B,af as L,bx as W,$ as O,r,c as A,c1 as T,bw as _,k as h,h as $,c2 as F,j as w,ap as K}from"./index-CL2MuWgy.js";import{A as z,S as G}from"./add-component-core-B8i7T4Kg.js";import"./lottie-CQi0bh2D.js";import"./config-space-C5zZHk3Q.js";import"./url-join-Dnsu_5vQ.js";import"./Skeleton-BnhPRGgN.js";import"./Hidden-B3_ybJ-q.js";import"./spaces-CzJrHGyH.js";import"./index-DH5UmDxM.js";import"./api-DQ0CtWLc.js";import"./launch-result-message-Df16VNd8.js";import"./Close-gciQI04i.js";import"./page-header-CLjZ-_ic.js";import"./uniqBy-CPwHHBOm.js";import"./logo-uploader-B96Ok6Ys.js";import"./index-BJrPsPDp.js";import"./index-xH4Oj7ao.js";import"./EditIcon-489vuPgf.js";import"./Done-D_Xh37ry.js";import"./Google-1aQCgZJc.js";import"./TextField-COPeEWpZ.js";import"./FormControl-DrLoqvI1.js";import"./useFormControl-DhPkOJZO.js";import"./InputLabel-ys_ApPlk.js";import"./Select-C_8EtoAI.js";import"./index-DDeCtOVE.js";import"./FormControlLabel-BZ-Na1Px.js";import"./index-5uzjMizz.js";import"./session-CkWtK0_2.js";import"./did-address-B8N2tjFV.js";import"./Link-ltWIbLQC.js";import"./Stepper-CC1pyQEm.js";import"./format-error-Bl69lCj-.js";import"./Alert-CdrO9wp_.js";import"./useSlot-DGpPHvLx.js";import"./item-Dq2QNfn5.js";import"./Add-Brs6l0hU.js";import"./MoreVert-CB4vQPic.js";import"./Launch-BT1RubZl.js";import"./DeleteOutline-QSrwg0EI.js";import"./click-to-copy-BFYwGrB_.js";import"./shorten-label-HQwCiW2q.js";import"./confirm-BnMV0-HV.js";import"./ButtonGroup-CNCUbNBn.js";import"./jss-plugin-props-sort.esm-DzavEauW.js";import"./toPropertyKey-hKuLU48H.js";import"./ListItemText-CK7nMTkm.js";import"./util-DuWlpeLs.js";import"./connect-to-D5VCzm-i.js";import"./use-blocklet-info-for-connect-did-spaces-oRSb2cvE.js";import"./CloseOutlined-Xl6vJm1S.js";import"./index-3gowKxHt.js";import"./ExpandMore-B8-mtsJf.js";import"./content-layout-B22yg9Bb.js";import"./ArrowDropDown-Cc7ZV2yN.js";import"./useLocalStorage-DLUzHeWb.js";import"./fallback-rmTIFQSJ.js";import"./index-CsVY8MSI.js";import"./Search-6e7HNczH.js";import"./index-Cj6tOOrI.js";import"./InputAdornment-Dmqc2UlU.js";import"./preact.module-B1z5cdvs.js";function Xt(){var u;const{t:g}=B(),{blocklet:a}=L(),{componentDid:s}=W(),f=O(t=>t.breakpoints.down("md")),o=new URL(window.location.href),C=o.searchParams.get("mode")==="dialog",p=o.searchParams.get("resourceType")||"",c=o.searchParams.get("resourceDid")||s,R=o.searchParams.get("store")||"",S=o.searchParams.get("showFromUrl")!=="false",y=o.searchParams.get("showResourcesSwitch")!=="false",E=o.searchParams.get("enableRunBackground")!=="false",P=o.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(e){return console.error(e),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 e=>{const i=A(e,"/api/store.json"),{data:v}=await T.get(i);return{url:e,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 e,i;((e=t.data)==null?void 0:e.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,e)=>{e!=="backdropClick"&&k()},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:d()}):d({inDialog:!1})}export{Xt as default};
@@ -1,4 +1,4 @@
1
- import{r as s,j as a,a0 as j,ay as P,az as O,aA as z,P as n,Z as _}from"./index-CHSnAsQ1.js";import{L as M}from"./selector-C4Gh2j9t.js";import{d as S}from"./QuestionMarkCircle-50eq7smQ.js";var c={};Object.defineProperty(c,"__esModule",{value:!0});var m=c.default=void 0;H(s);var p=a;function H(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){A(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 A(e,t,o){return t=C(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function C(e){var t=k(e,"string");return typeof t=="symbol"?t:String(t)}function k(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 w({SessionContext:e,extraItems:t,showLocale:o,showHelper:r,showSessionManager:i,sessionManagerProps:h}){const{session:b}=s.useContext(e),{locale:g}=s.useContext(j),v=P(),x=()=>{if(v.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(R,{children:[t.map((u,y)=>s.cloneElement(u,{key:y})),o&&a.jsx(M,{"data-cy":"locale-addon",icon:m,size:23,showText:!1,className:"locale-addon"}),r&&a.jsx(O,{onClick:x,children:a.jsx(S,{})}),i&&a.jsx(z,{locale:g,session:b,size:24,showRole:!0,...h,showManageBlocklet:!1})]})}w.propTypes={SessionContext:n.object.isRequired,webWalletUrl:n.string,extraItems:n.array,showLocale:n.bool,showSessionManager:n.bool,showHelper:n.bool,sessionManagerProps:n.object};w.defaultProps={webWalletUrl:"",extraItems:[],showLocale:!0,showSessionManager:!0,showHelper:!0,sessionManagerProps:{}};const R=_.div`
1
+ import{r as s,j as a,a0 as j,ay as P,az as O,aA as z,P as n,Z as _}from"./index-CL2MuWgy.js";import{L as M}from"./selector-BNNdkkFG.js";import{d as S}from"./QuestionMarkCircle-iO2RyeuL.js";var c={};Object.defineProperty(c,"__esModule",{value:!0});var m=c.default=void 0;H(s);var p=a;function H(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){A(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 A(e,t,o){return t=C(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function C(e){var t=k(e,"string");return typeof t=="symbol"?t:String(t)}function k(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 w({SessionContext:e,extraItems:t,showLocale:o,showHelper:r,showSessionManager:i,sessionManagerProps:h}){const{session:b}=s.useContext(e),{locale:g}=s.useContext(j),v=P(),x=()=>{if(v.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(R,{children:[t.map((u,y)=>s.cloneElement(u,{key:y})),o&&a.jsx(M,{"data-cy":"locale-addon",icon:m,size:23,showText:!1,className:"locale-addon"}),r&&a.jsx(O,{onClick:x,children:a.jsx(S,{})}),i&&a.jsx(z,{locale:g,session:b,size:24,showRole:!0,...h,showManageBlocklet:!1})]})}w.propTypes={SessionContext:n.object.isRequired,webWalletUrl:n.string,extraItems:n.array,showLocale:n.bool,showSessionManager:n.bool,showHelper:n.bool,sessionManagerProps:n.object};w.defaultProps={webWalletUrl:"",extraItems:[],showLocale:!0,showSessionManager:!0,showHelper:!0,sessionManagerProps:{}};const R=_.div`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{P as h,gN as Yo,b4 as Vt,b3 as zo,dJ as Wo,X as Ho,Y as Uo,j as m,ey as K,B as Ee,r as x,ae as en,aP as Yt,T as be,bk as Yn,az as Be,aQ as wn,aF as se,aK as ye,aG as w,ao as ze,aC as Pe,aB as Me,aD as ee,bj as rt,aH as ge,aI as Ce,aJ as ve,cY as Ye,cI as q,cE as Ko,cD as tt,ce as Ke,cz as nt,cQ as qo,gF as vn,cO as Go,de as Rt,$ as zn,bm as Zo,dr as Qo,gE as Jo,cJ as zt,b as ft,cP as Xo,be as er,gD as Wn,ez as Hn,cZ as tn,cc as Un,cp as nn,W as we,gO as tr,Z as Ot,c4 as nr,c6 as or,N as rr,da as sr,bf as Ge,aM as ar,u as on,l as ir,E as lr,c as cr,bi as Pn,bh as ur,go as _e,a0 as Kn,g5 as qn,aV as dr,a7 as Wt,gP as hr,af as fr,z as mr}from"./index-CHSnAsQ1.js";import{T as pr}from"./index-B8_eoYBV.js";import{_ as gr}from"./permission-DPowxK7C.js";import{I as yr}from"./iframe-BWL5r6kn.js";import{d as br}from"./LaunchOutlined-CK6AtL0o.js";import{r as rn,b as Gn,H as Fe,D as ot,B as Oe,y as Dr,E as xr,I as sn,z as Kt,M as gt,N as yt,A as Je,L as bt,e as Dt,J as St,K as kt,d as wr,Q as qt,G as mt,F as Mn,R as an,S as vr,Z as Pr,T as Mr,O as Cr,V as Sr,P as kr,W as Tr}from"./index-uHERBk1s.js";import{d as Ir,B as Vr}from"./ChevronRight-B1-v0rVj.js";import{_ as Zn}from"./toPropertyKey-hKuLU48H.js";import{G as me}from"./redux-DfSDCKtt.js";import{L as Qn}from"./MoreVert-Dd_rZHl1.js";import{a as Rr}from"./ListItemText-CbVOTWQ3.js";import{F as Cn}from"./FormControl-B_Do5Nt6.js";import{S as Sn}from"./Select-D6CeNImJ.js";import{A as Or}from"./Alert-cwZghN5o.js";import{f as Er}from"./format-error-DSoyPyVx.js";import{T as Ar}from"./TextField-DVioGsc-.js";import{M as Jn}from"./InputAdornment-C-wpGP7M.js";import{p as Fr}from"./dashboard-DJj7YdCJ.js";import{D as Lr}from"./index-DpC9sww1.js";import"./useAsync-B3RNaSvA.js";import"./session-DFjt4_rn.js";import"./Avatar-BVTgZMZu.js";import"./useSlot-Cwz6OM5B.js";import"./useFormControl-oAKl9UVb.js";import"./InputLabel-4YX1ylv6.js";import"./useLocalStorage-BnVJN1iM.js";import"./confirm-DcZkK6Pc.js";import"./Delete-DJZzf2v3.js";import"./PlayArrow-s9OSCCm9.js";import"./ButtonGroup-Cf877fOo.js";import"./RadioGroup-DImJzaoP.js";import"./FormControlLabel-BDYHQJ8F.js";import"./FormGroup-Bk12j31H.js";import"./index-0Kwb6jmK.js";import"./spaces-BGhjBX1b.js";import"./index-vwRhQ5RS.js";import"./api-CK31hCQN.js";import"./Link-D9C6v4KL.js";import"./useSetState-Bw-0RwWQ.js";import"./fallback-Co8Kc2kj.js";import"./index-B36YvF84.js";import"./Toolbar-CRxjvb2_.js";import"./Hidden-kVeQMxEt.js";import"./MoreHoriz-kAuD1nY3.js";import"./ExpandMore-Vsh2QVwZ.js";import"./index-DViM25Vy.js";import"./selector-C4Gh2j9t.js";import"./FilterList-Cy1sL14k.js";import"./LastPage-BfloM2Wq.js";import"./index-BaC0Haea.js";import"./Search-CxTEsXhT.js";import"./index-DJWtIeK5.js";const jr=h.oneOfType([h.func,h.object]),Xn=jr;var $r=Yo;function Nr(e,t){var n=e.length;if(n)return t+=t<0?n:0,$r(t,n)?e[t]:void 0}var _r=Nr,Br=_r,Yr=zo,zr=Wo;function Wr(e){return e=zr(e),Yr(function(t){return Br(t,e)})}var Hr=Wr;const Ur=Vt(Hr);function eo(e){rn(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Zn(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var a=Gn(r);(n===void 0||n<a||isNaN(Number(a)))&&(n=a)}),n||new Date(NaN)}function to(e){rn(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Zn(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var a=Gn(r);(n===void 0||n>a||isNaN(a.getDate()))&&(n=a)}),n||new Date(NaN)}function Kr(e){return rn(1,arguments),Fe(e,Date.now())}var ln={},qr=Uo;Object.defineProperty(ln,"__esModule",{value:!0});var no=ln.default=void 0,Gr=qr(Ho()),Zr=m;no=ln.default=(0,Gr.default)((0,Zr.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)),Jr=(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=Kt(o,1);return a},Xr=({startDate:e},t)=>e&&Fe(t,e),es=({endDate:e},t)=>e&&Fe(t,e),ts=({startDate:e,endDate:t},n)=>e&&t&&(an(n,{start:e,end:t})||Fe(n,e)||Fe(n,t)),ns=({startDate:e,endDate:t})=>e&&t?Fe(e,t):!1,kn=(e,t)=>{if(e){const n=e instanceof Date?e:Dr(e);if(xr(n))return n}return t},os=(e,t,n)=>{const{startDate:r,endDate:a}=e;if(r&&a){const o=eo([r,t]),s=to([a,n]);return[o,sn(o,s)?Oe(o,1):s]}return[r,a]},rs=(e,t)=>[{label:"Today",startDate:e,endDate:e},{label:"Yesterday",startDate:Kt(e,-1),endDate:Kt(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(Oe(e,-1)),endDate:Dt(Oe(e,-1))},{label:"This Year",startDate:St(e),endDate:kt(e)},{label:"Last Year",startDate:St(ot(e,-1)),endDate:kt(ot(e,-1))}],ss=(e,t)=>{const n=Math.floor(t/2);return Array(t).fill(0).map((r,a)=>e.getFullYear()-n+a)},as=({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"],c=u=>{t(Sr(e,parseInt(u.target.value,10)))},l=u=>{t(kr(e,parseInt(u.target.value,10)))};return K.createElement(me,{container:!0,justifyContent:"space-between",alignItems:"center"},K.createElement(me,{item:!0,sx:{padding:"5px"}},K.createElement(Be,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:r,onClick:o},K.createElement(Pr,{color:r?"disabled":"action"}))),K.createElement(me,{item:!0},K.createElement(Cn,{variant:"standard"},K.createElement(Sn,{value:Mr(e),onChange:c,MenuProps:{disablePortal:!0}},i.map((u,y)=>K.createElement(wn,{key:u,value:y},u))))),K.createElement(me,{item:!0},K.createElement(Cn,{variant:"standard"},K.createElement(Sn,{value:Cr(e),onChange:l,MenuProps:{disablePortal:!0}},ss(e,30).map(u=>K.createElement(wn,{key:u,value:u},u))))),K.createElement(me,{item:!0,sx:{padding:"5px"}},K.createElement(Be,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:n,onClick:a},K.createElement(Ir,{color:n?"disabled":"action"}))))},is=({startOfRange:e,endOfRange:t,disabled:n,highlighted:r,outlined:a,filled:o,onClick:s,onHover:i,value:c})=>K.createElement(Ee,{sx:{display:"flex",borderRadius:e?"50% 0 0 50%":t?"0 50% 50% 0":void 0,backgroundColor:l=>!n&&r?l.palette.primary.light:void 0}},K.createElement(Be,{sx:Object.assign({height:"36px",width:"36px",padding:0,border:l=>!n&&a?`1px solid ${l.palette.primary.dark}`:void 0},!n&&o?{"&:hover":{backgroundColor:l=>l.palette.primary.dark},backgroundColor:l=>l.palette.primary.dark}:{}),disabled:n,onClick:s,onMouseOver:i},K.createElement(be,{sx:{lineHeight:1.6,color:l=>n?l.palette.text.secondary:o?l.palette.primary.contrastText:l.palette.text.primary},variant:"body2"},c)));var Tt;(function(e){e[e.Previous=-1]="Previous",e[e.Next=1]="Next"})(Tt||(Tt={}));const Tn=e=>{var t;const{helpers:n,handlers:r,value:a,dateRange:o,marker:s,setValue:i,minDate:c,maxDate:l,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(d=>{var b;return(b=u.localize)===null||b===void 0?void 0:b.day((d+y)%7,{width:"short",context:"standalone"})}):["Su","Mo","Tu","We","Th","Fr","Sa"],[f,k]=e.navState;return K.createElement(en,{square:!0,elevation:0,sx:{width:290}},K.createElement(me,{container:!0},K.createElement(as,{date:a,setDate:i,nextDisabled:!k,prevDisabled:!f,onClickPrevious:()=>r.onMonthNavigate(s,Tt.Previous),onClickNext:()=>r.onMonthNavigate(s,Tt.Next),locale:u}),K.createElement(me,{item:!0,container:!0,direction:"row",justifyContent:"space-between",sx:{marginTop:"10px",paddingLeft:"30px",paddingRight:"30px"}},D.map((d,b)=>K.createElement(be,{color:"textSecondary",key:b,variant:"caption"},d))),K.createElement(me,{item:!0,container:!0,direction:"column",justifyContent:"space-between",sx:{paddingLeft:"15px",paddingRight:"15px",marginTop:"15px",marginBottom:"20px"}},Qr(Jr(a,u),7).map((d,b)=>K.createElement(me,{key:b,container:!0,direction:"row",justifyContent:"center"},d.map(p=>{const g=Xr(o,p),v=es(o,p),T=ns(o),P=ts(o,p)||n.inHoverRange(p);return K.createElement(is,{key:qt(p,"dd-MM-yyyy"),filled:g||v,outlined:Kr(p),highlighted:P&&!T,disabled:!sn(a,p)||!an(p,{start:c,end:l}),startOfRange:g&&!T,endOfRange:v&&!T,onClick:()=>r.onDayClick(p),onHover:()=>r.onDayHover(p),value:vr(p)})}))))))},In=(e,t)=>{const{startDate:n,endDate:r}=e,{startDate:a,endDate:o}=t;return n&&a&&r&&o?Fe(n,a)&&Fe(r,o):!1},ls=({ranges:e,setRange:t,selectedRange:n})=>K.createElement(Yn,null,e.map((r,a)=>K.createElement(Qn,{button:!0,key:a,onClick:()=>t(r),sx:[In(r,n)&&{backgroundColor:o=>o.palette.primary.dark,color:"primary.contrastText","&:hover":{color:"inherit"}}]},K.createElement(Rr,{primaryTypographyProps:{variant:"body2",sx:{fontWeight:In(r,n)?"bold":"normal"}}},r.label)))),Gt={FIRST_MONTH:Symbol("firstMonth"),SECOND_MONTH:Symbol("secondMonth")},cs=e=>{const{ranges:t,dateRange:n,minDate:r,maxDate:a,firstMonth:o,setFirstMonth:s,secondMonth:i,setSecondMonth:c,setDateRange:l,helpers:u,handlers:y,locale:D}=e,{startDate:f,endDate:k}=n,d=wr(i,o)>=2,b={dateRange:n,minDate:r,maxDate:a,helpers:u,handlers:y};return K.createElement(en,{elevation:5,square:!0},K.createElement(me,{container:!0,direction:"row",wrap:"nowrap"},K.createElement(me,null,K.createElement(ls,{selectedRange:n,ranges:t,setRange:l})),K.createElement(Yt,{orientation:"vertical",flexItem:!0}),K.createElement(me,null,K.createElement(me,{container:!0,sx:{padding:"20px 70px"},alignItems:"center"},K.createElement(me,{item:!0,sx:{flex:1,textAlign:"center"}},K.createElement(be,{variant:"subtitle1"},f?qt(f,"dd MMMM yyyy",{locale:D}):"Start Date")),K.createElement(me,{item:!0,sx:{flex:1,textAlign:"center"}},K.createElement(no,{color:"action"})),K.createElement(me,{item:!0,sx:{flex:1,textAlign:"center"}},K.createElement(be,{variant:"subtitle1"},k?qt(k,"dd MMMM yyyy",{locale:D}):"End Date"))),K.createElement(Yt,null),K.createElement(me,{container:!0,direction:"row",justifyContent:"center",wrap:"nowrap"},K.createElement(Tn,Object.assign({},b,{value:o,setValue:s,navState:[!0,d],marker:Gt.FIRST_MONTH,locale:D})),K.createElement(Yt,{orientation:"vertical",flexItem:!0}),K.createElement(Tn,Object.assign({},b,{value:i,setValue:c,navState:[d,!0],marker:Gt.SECOND_MONTH,locale:D}))))))},us=e=>{const t=new Date,{open:n,onChange:r,initialDateRange:a,minDate:o,maxDate:s,definedRanges:i=rs(new Date,e.locale),locale:c}=e,l=kn(o,ot(t,-10)),u=kn(s,ot(t,10)),[y,D]=os(a||{},l,u),[f,k]=x.useState(Object.assign({},a)),[d,b]=x.useState(),[p,g]=x.useState(y||t),[v,T]=x.useState(D||Oe(p,1)),{startDate:P,endDate:O}=f,R=F=>{mt(F,v)&&g(F)},E=F=>{Mn(F,p)&&T(F)},M=F=>{let{startDate:B,endDate:L}=F;if(B&&L)F.startDate=B=eo([B,l]),F.endDate=L=to([L,u]),k(F),r(F),g(B),T(sn(B,L)?Oe(B,1):L);else{const Y={};k(Y),r(Y),g(t),T(Oe(p,1))}},_=F=>{if(P&&!O&&!mt(F,P)){const B={startDate:P,endDate:F};r(B),k(B)}else k({startDate:F,endDate:void 0});b(F)},V=(F,B)=>{if(F===Gt.FIRST_MONTH){const L=Oe(p,B);mt(L,v)&&g(L)}else{const L=Oe(v,B);mt(p,L)&&T(L)}},A=F=>{P&&!O&&(!d||!Fe(F,d))&&b(F)},S={inHoverRange:F=>P&&!O&&d&&Mn(d,P)&&an(F,{start:P,end:d})},C={onDayClick:_,onDayHover:A,onMonthNavigate:V};return n?x.createElement(cs,{dateRange:f,minDate:l,maxDate:u,ranges:i,firstMonth:p,secondMonth:v,setFirstMonth:R,setSecondMonth:E,setDateRange:M,helpers:S,handlers:C,locale:c}):null},ds=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 K.createElement(Ee,{sx:{position:"relative"}},a&&K.createElement(Ee,{sx:{position:"fixed",height:"100vh",width:"100vw",bottom:0,zIndex:0,right:0,left:0,top:0},onKeyPress:s,onClick:o}),K.createElement(Ee,{sx:{position:"relative",zIndex:1},className:n},K.createElement(us,Object.assign({},e))))},hs=e=>K.createElement(ds,Object.assign({},e)),fs=["localeText"],Zt=x.createContext(null),cn=function(t){var n;const{localeText:r}=t,a=se(t,fs),{utils:o,localeText:s}=(n=x.useContext(Zt))!=null?n:{utils:void 0,localeText:void 0},i=ye({props:a,name:"MuiLocalizationProvider"}),{children:c,dateAdapter:l,dateFormats:u,dateLibInstance:y,adapterLocale:D,localeText:f}=i,k=x.useMemo(()=>w({},f,s,r),[f,s,r]),d=x.useMemo(()=>{if(!l)return o||null;const g=new l({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 h,gN as Yo,b4 as Vt,b3 as zo,dJ as Wo,X as Ho,Y as Uo,j as m,ey as K,B as Ee,r as x,ae as en,aP as Yt,T as be,bk as Yn,az as Be,aQ as wn,aF as se,aK as ye,aG as w,ao as ze,aC as Pe,aB as Me,aD as ee,bj as rt,aH as ge,aI as Ce,aJ as ve,cY as Ye,cI as q,cE as Ko,cD as tt,ce as Ke,cz as nt,cQ as qo,gF as vn,cO as Go,de as Rt,$ as zn,bm as Zo,dr as Qo,gE as Jo,cJ as zt,b as ft,cP as Xo,be as er,gD as Wn,ez as Hn,cZ as tn,cc as Un,cp as nn,W as we,gO as tr,Z as Ot,c4 as nr,c6 as or,N as rr,da as sr,bf as Ge,aM as ar,u as on,l as ir,E as lr,c as cr,bi as Pn,bh as ur,go as _e,a0 as Kn,g5 as qn,aV as dr,a7 as Wt,gP as hr,af as fr,z as mr}from"./index-CL2MuWgy.js";import{T as pr}from"./index-DVbPOY8J.js";import{_ as gr}from"./permission-BTXpHNMQ.js";import{I as yr}from"./iframe-coF9tnYB.js";import{d as br}from"./LaunchOutlined-_SVqRfwQ.js";import{r as rn,b as Gn,H as Fe,D as ot,B as Oe,y as Dr,E as xr,I as sn,z as Kt,M as gt,N as yt,A as Je,L as bt,e as Dt,J as St,K as kt,d as wr,Q as qt,G as mt,F as Mn,R as an,S as vr,Z as Pr,T as Mr,O as Cr,V as Sr,P as kr,W as Tr}from"./index-zLmacV1e.js";import{d as Ir,B as Vr}from"./ChevronRight-p9uIbU8Z.js";import{_ as Zn}from"./toPropertyKey-hKuLU48H.js";import{G as me}from"./redux-vempXYa0.js";import{L as Qn}from"./MoreVert-CB4vQPic.js";import{a as Rr}from"./ListItemText-CK7nMTkm.js";import{F as Cn}from"./FormControl-DrLoqvI1.js";import{S as Sn}from"./Select-C_8EtoAI.js";import{A as Or}from"./Alert-CdrO9wp_.js";import{f as Er}from"./format-error-Bl69lCj-.js";import{T as Ar}from"./TextField-COPeEWpZ.js";import{M as Jn}from"./InputAdornment-Dmqc2UlU.js";import{p as Fr}from"./dashboard-B3FiMlvK.js";import{D as Lr}from"./index-BBng4lwc.js";import"./useAsync-D4jpP_Cn.js";import"./session-CkWtK0_2.js";import"./Avatar-B857twI0.js";import"./useSlot-DGpPHvLx.js";import"./useFormControl-DhPkOJZO.js";import"./InputLabel-ys_ApPlk.js";import"./useLocalStorage-DLUzHeWb.js";import"./confirm-BnMV0-HV.js";import"./Delete-k49MPvRz.js";import"./PlayArrow-vh3KxOxB.js";import"./ButtonGroup-CNCUbNBn.js";import"./RadioGroup-BN2d11MQ.js";import"./FormControlLabel-BZ-Na1Px.js";import"./FormGroup-B_cYMk58.js";import"./index-Bdg3eQL4.js";import"./spaces-CzJrHGyH.js";import"./index-DH5UmDxM.js";import"./api-DQ0CtWLc.js";import"./Link-ltWIbLQC.js";import"./useSetState-COv8V7Hh.js";import"./fallback-rmTIFQSJ.js";import"./index-7WP5qycS.js";import"./Toolbar-BPW2rPOy.js";import"./Hidden-B3_ybJ-q.js";import"./MoreHoriz-CcbBublh.js";import"./ExpandMore-B8-mtsJf.js";import"./index-hKKO_ETj.js";import"./selector-BNNdkkFG.js";import"./FilterList-Du3mVkNU.js";import"./LastPage-BlouWXDK.js";import"./index-Cp_x9pQ7.js";import"./Search-6e7HNczH.js";import"./index-CsVY8MSI.js";const jr=h.oneOfType([h.func,h.object]),Xn=jr;var $r=Yo;function Nr(e,t){var n=e.length;if(n)return t+=t<0?n:0,$r(t,n)?e[t]:void 0}var _r=Nr,Br=_r,Yr=zo,zr=Wo;function Wr(e){return e=zr(e),Yr(function(t){return Br(t,e)})}var Hr=Wr;const Ur=Vt(Hr);function eo(e){rn(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Zn(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var a=Gn(r);(n===void 0||n<a||isNaN(Number(a)))&&(n=a)}),n||new Date(NaN)}function to(e){rn(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Zn(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var a=Gn(r);(n===void 0||n>a||isNaN(a.getDate()))&&(n=a)}),n||new Date(NaN)}function Kr(e){return rn(1,arguments),Fe(e,Date.now())}var ln={},qr=Uo;Object.defineProperty(ln,"__esModule",{value:!0});var no=ln.default=void 0,Gr=qr(Ho()),Zr=m;no=ln.default=(0,Gr.default)((0,Zr.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)),Jr=(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=Kt(o,1);return a},Xr=({startDate:e},t)=>e&&Fe(t,e),es=({endDate:e},t)=>e&&Fe(t,e),ts=({startDate:e,endDate:t},n)=>e&&t&&(an(n,{start:e,end:t})||Fe(n,e)||Fe(n,t)),ns=({startDate:e,endDate:t})=>e&&t?Fe(e,t):!1,kn=(e,t)=>{if(e){const n=e instanceof Date?e:Dr(e);if(xr(n))return n}return t},os=(e,t,n)=>{const{startDate:r,endDate:a}=e;if(r&&a){const o=eo([r,t]),s=to([a,n]);return[o,sn(o,s)?Oe(o,1):s]}return[r,a]},rs=(e,t)=>[{label:"Today",startDate:e,endDate:e},{label:"Yesterday",startDate:Kt(e,-1),endDate:Kt(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(Oe(e,-1)),endDate:Dt(Oe(e,-1))},{label:"This Year",startDate:St(e),endDate:kt(e)},{label:"Last Year",startDate:St(ot(e,-1)),endDate:kt(ot(e,-1))}],ss=(e,t)=>{const n=Math.floor(t/2);return Array(t).fill(0).map((r,a)=>e.getFullYear()-n+a)},as=({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"],c=u=>{t(Sr(e,parseInt(u.target.value,10)))},l=u=>{t(kr(e,parseInt(u.target.value,10)))};return K.createElement(me,{container:!0,justifyContent:"space-between",alignItems:"center"},K.createElement(me,{item:!0,sx:{padding:"5px"}},K.createElement(Be,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:r,onClick:o},K.createElement(Pr,{color:r?"disabled":"action"}))),K.createElement(me,{item:!0},K.createElement(Cn,{variant:"standard"},K.createElement(Sn,{value:Mr(e),onChange:c,MenuProps:{disablePortal:!0}},i.map((u,y)=>K.createElement(wn,{key:u,value:y},u))))),K.createElement(me,{item:!0},K.createElement(Cn,{variant:"standard"},K.createElement(Sn,{value:Cr(e),onChange:l,MenuProps:{disablePortal:!0}},ss(e,30).map(u=>K.createElement(wn,{key:u,value:u},u))))),K.createElement(me,{item:!0,sx:{padding:"5px"}},K.createElement(Be,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:n,onClick:a},K.createElement(Ir,{color:n?"disabled":"action"}))))},is=({startOfRange:e,endOfRange:t,disabled:n,highlighted:r,outlined:a,filled:o,onClick:s,onHover:i,value:c})=>K.createElement(Ee,{sx:{display:"flex",borderRadius:e?"50% 0 0 50%":t?"0 50% 50% 0":void 0,backgroundColor:l=>!n&&r?l.palette.primary.light:void 0}},K.createElement(Be,{sx:Object.assign({height:"36px",width:"36px",padding:0,border:l=>!n&&a?`1px solid ${l.palette.primary.dark}`:void 0},!n&&o?{"&:hover":{backgroundColor:l=>l.palette.primary.dark},backgroundColor:l=>l.palette.primary.dark}:{}),disabled:n,onClick:s,onMouseOver:i},K.createElement(be,{sx:{lineHeight:1.6,color:l=>n?l.palette.text.secondary:o?l.palette.primary.contrastText:l.palette.text.primary},variant:"body2"},c)));var Tt;(function(e){e[e.Previous=-1]="Previous",e[e.Next=1]="Next"})(Tt||(Tt={}));const Tn=e=>{var t;const{helpers:n,handlers:r,value:a,dateRange:o,marker:s,setValue:i,minDate:c,maxDate:l,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(d=>{var b;return(b=u.localize)===null||b===void 0?void 0:b.day((d+y)%7,{width:"short",context:"standalone"})}):["Su","Mo","Tu","We","Th","Fr","Sa"],[f,k]=e.navState;return K.createElement(en,{square:!0,elevation:0,sx:{width:290}},K.createElement(me,{container:!0},K.createElement(as,{date:a,setDate:i,nextDisabled:!k,prevDisabled:!f,onClickPrevious:()=>r.onMonthNavigate(s,Tt.Previous),onClickNext:()=>r.onMonthNavigate(s,Tt.Next),locale:u}),K.createElement(me,{item:!0,container:!0,direction:"row",justifyContent:"space-between",sx:{marginTop:"10px",paddingLeft:"30px",paddingRight:"30px"}},D.map((d,b)=>K.createElement(be,{color:"textSecondary",key:b,variant:"caption"},d))),K.createElement(me,{item:!0,container:!0,direction:"column",justifyContent:"space-between",sx:{paddingLeft:"15px",paddingRight:"15px",marginTop:"15px",marginBottom:"20px"}},Qr(Jr(a,u),7).map((d,b)=>K.createElement(me,{key:b,container:!0,direction:"row",justifyContent:"center"},d.map(p=>{const g=Xr(o,p),v=es(o,p),T=ns(o),P=ts(o,p)||n.inHoverRange(p);return K.createElement(is,{key:qt(p,"dd-MM-yyyy"),filled:g||v,outlined:Kr(p),highlighted:P&&!T,disabled:!sn(a,p)||!an(p,{start:c,end:l}),startOfRange:g&&!T,endOfRange:v&&!T,onClick:()=>r.onDayClick(p),onHover:()=>r.onDayHover(p),value:vr(p)})}))))))},In=(e,t)=>{const{startDate:n,endDate:r}=e,{startDate:a,endDate:o}=t;return n&&a&&r&&o?Fe(n,a)&&Fe(r,o):!1},ls=({ranges:e,setRange:t,selectedRange:n})=>K.createElement(Yn,null,e.map((r,a)=>K.createElement(Qn,{button:!0,key:a,onClick:()=>t(r),sx:[In(r,n)&&{backgroundColor:o=>o.palette.primary.dark,color:"primary.contrastText","&:hover":{color:"inherit"}}]},K.createElement(Rr,{primaryTypographyProps:{variant:"body2",sx:{fontWeight:In(r,n)?"bold":"normal"}}},r.label)))),Gt={FIRST_MONTH:Symbol("firstMonth"),SECOND_MONTH:Symbol("secondMonth")},cs=e=>{const{ranges:t,dateRange:n,minDate:r,maxDate:a,firstMonth:o,setFirstMonth:s,secondMonth:i,setSecondMonth:c,setDateRange:l,helpers:u,handlers:y,locale:D}=e,{startDate:f,endDate:k}=n,d=wr(i,o)>=2,b={dateRange:n,minDate:r,maxDate:a,helpers:u,handlers:y};return K.createElement(en,{elevation:5,square:!0},K.createElement(me,{container:!0,direction:"row",wrap:"nowrap"},K.createElement(me,null,K.createElement(ls,{selectedRange:n,ranges:t,setRange:l})),K.createElement(Yt,{orientation:"vertical",flexItem:!0}),K.createElement(me,null,K.createElement(me,{container:!0,sx:{padding:"20px 70px"},alignItems:"center"},K.createElement(me,{item:!0,sx:{flex:1,textAlign:"center"}},K.createElement(be,{variant:"subtitle1"},f?qt(f,"dd MMMM yyyy",{locale:D}):"Start Date")),K.createElement(me,{item:!0,sx:{flex:1,textAlign:"center"}},K.createElement(no,{color:"action"})),K.createElement(me,{item:!0,sx:{flex:1,textAlign:"center"}},K.createElement(be,{variant:"subtitle1"},k?qt(k,"dd MMMM yyyy",{locale:D}):"End Date"))),K.createElement(Yt,null),K.createElement(me,{container:!0,direction:"row",justifyContent:"center",wrap:"nowrap"},K.createElement(Tn,Object.assign({},b,{value:o,setValue:s,navState:[!0,d],marker:Gt.FIRST_MONTH,locale:D})),K.createElement(Yt,{orientation:"vertical",flexItem:!0}),K.createElement(Tn,Object.assign({},b,{value:i,setValue:c,navState:[d,!0],marker:Gt.SECOND_MONTH,locale:D}))))))},us=e=>{const t=new Date,{open:n,onChange:r,initialDateRange:a,minDate:o,maxDate:s,definedRanges:i=rs(new Date,e.locale),locale:c}=e,l=kn(o,ot(t,-10)),u=kn(s,ot(t,10)),[y,D]=os(a||{},l,u),[f,k]=x.useState(Object.assign({},a)),[d,b]=x.useState(),[p,g]=x.useState(y||t),[v,T]=x.useState(D||Oe(p,1)),{startDate:P,endDate:O}=f,R=F=>{mt(F,v)&&g(F)},E=F=>{Mn(F,p)&&T(F)},M=F=>{let{startDate:B,endDate:L}=F;if(B&&L)F.startDate=B=eo([B,l]),F.endDate=L=to([L,u]),k(F),r(F),g(B),T(sn(B,L)?Oe(B,1):L);else{const Y={};k(Y),r(Y),g(t),T(Oe(p,1))}},_=F=>{if(P&&!O&&!mt(F,P)){const B={startDate:P,endDate:F};r(B),k(B)}else k({startDate:F,endDate:void 0});b(F)},V=(F,B)=>{if(F===Gt.FIRST_MONTH){const L=Oe(p,B);mt(L,v)&&g(L)}else{const L=Oe(v,B);mt(p,L)&&T(L)}},A=F=>{P&&!O&&(!d||!Fe(F,d))&&b(F)},S={inHoverRange:F=>P&&!O&&d&&Mn(d,P)&&an(F,{start:P,end:d})},C={onDayClick:_,onDayHover:A,onMonthNavigate:V};return n?x.createElement(cs,{dateRange:f,minDate:l,maxDate:u,ranges:i,firstMonth:p,secondMonth:v,setFirstMonth:R,setSecondMonth:E,setDateRange:M,helpers:S,handlers:C,locale:c}):null},ds=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 K.createElement(Ee,{sx:{position:"relative"}},a&&K.createElement(Ee,{sx:{position:"fixed",height:"100vh",width:"100vw",bottom:0,zIndex:0,right:0,left:0,top:0},onKeyPress:s,onClick:o}),K.createElement(Ee,{sx:{position:"relative",zIndex:1},className:n},K.createElement(us,Object.assign({},e))))},hs=e=>K.createElement(ds,Object.assign({},e)),fs=["localeText"],Zt=x.createContext(null),cn=function(t){var n;const{localeText:r}=t,a=se(t,fs),{utils:o,localeText:s}=(n=x.useContext(Zt))!=null?n:{utils:void 0,localeText:void 0},i=ye({props:a,name:"MuiLocalizationProvider"}),{children:c,dateAdapter:l,dateFormats:u,dateLibInstance:y,adapterLocale:D,localeText:f}=i,k=x.useMemo(()=>w({},f,s,r),[f,s,r]),d=x.useMemo(()=>{if(!l)return o||null;const g=new l({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},[l,D,u,y,o]),b=x.useMemo(()=>d?{minDate:d.date("1900-01-01T00:00:00.000"),maxDate:d.date("2099-12-31T00:00:00.000")}:null,[d]),p=x.useMemo(()=>({utils:d,defaultDates:b,localeText:k}),[b,d,k]);return m.jsx(Zt.Provider,{value:p,children:c})},ms=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:w({},e)}}}}),oo={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"},ps=oo;ms(oo);const qe=()=>{const e=x.useContext(Zt);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=x.useMemo(()=>w({},ps,e.localeText),[e.localeText]);return x.useMemo(()=>w({},e,{localeText:t}),[e,t])},ue=()=>qe().utils,wt=()=>qe().defaultDates,We=()=>qe().localeText,vt=e=>{const t=ue(),n=x.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},gs=ze(m.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),ys=ze(m.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),bs=ze(m.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Ds=ze(m.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(m.jsxs(x.Fragment,{children:[m.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"}),m.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");ze(m.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(m.jsxs(x.Fragment,{children:[m.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"}),m.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const xs=ze(m.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 ws(e){return Pe("MuiPickersArrowSwitcher",e)}Me("MuiPickersArrowSwitcher",["root","spacer","button"]);const vs=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],Ps=["ownerState"],Ms=["ownerState"],Cs=ee("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Ss=ee("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Vn=ee(Be,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>w({},e.hidden&&{visibility:"hidden"})),ks=e=>{const{classes:t}=e;return ve({root:["root"],spacer:["spacer"],button:["button"]},ws,t)},Ts=x.forwardRef(function(t,n){var r,a,o,s;const c=rt().direction==="rtl",l=ye({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:y,slots:D,slotProps:f,isNextDisabled:k,isNextHidden:d,onGoToNext:b,nextLabel:p,isPreviousDisabled:g,isPreviousHidden:v,onGoToPrevious:T,previousLabel:P}=l,O=se(l,vs),R=l,E=ks(R),M={isDisabled:k,isHidden:d,goTo:b,label:p},_={isDisabled:g,isHidden:v,goTo:T,label:P},V=(r=D==null?void 0:D.previousIconButton)!=null?r:Vn,A=ge({elementType:V,externalSlotProps:f==null?void 0:f.previousIconButton,additionalProps:{size:"medium",title:_.label,"aria-label":_.label,disabled:_.isDisabled,edge:"end",onClick:_.goTo},ownerState:w({},R,{hidden:_.isHidden}),className:E.button}),I=(a=D==null?void 0:D.nextIconButton)!=null?a:Vn,S=ge({elementType:I,externalSlotProps:f==null?void 0:f.nextIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"start",onClick:M.goTo},ownerState:w({},R,{hidden:M.isHidden}),className:E.button}),C=(o=D==null?void 0:D.leftArrowIcon)!=null?o:ys,F=ge({elementType:C,externalSlotProps:f==null?void 0:f.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),B=se(F,Ps),L=(s=D==null?void 0:D.rightArrowIcon)!=null?s:bs,Y=ge({elementType:L,externalSlotProps:f==null?void 0:f.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),U=se(Y,Ms);return m.jsxs(Cs,w({ref:n,className:Ce(E.root,y),ownerState:R},O,{children:[m.jsx(V,w({},A,{children:c?m.jsx(L,w({},U)):m.jsx(C,w({},B))})),u?m.jsx(be,{variant:"subtitle1",component:"span",children:u}):m.jsx(Ss,{className:E.spacer,ownerState:R}),m.jsx(I,w({},S,{children:c?m.jsx(C,w({},B)):m.jsx(L,w({},U))}))]}))}),ct=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Is=({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}},Vs=["hours","minutes","seconds"],Rs=e=>Vs.includes(e),Rn=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Os=(e,t)=>(n,r)=>e?t.isAfter(n,r):Rn(n,t)>Rn(r,t);function ro({onChange:e,onViewChange:t,openTo:n,view:r,views:a,autoFocus:o,focusedView:s,onFocusedViewChange:i}){var c,l;const u=x.useRef(n),y=x.useRef(a),D=x.useRef(a.includes(n)?n:a[0]),[f,k]=Ye({name:"useViews",state:"view",controlled:r,default:D.current}),d=x.useRef(o?f:null),[b,p]=Ye({name:"useViews",state:"focusedView",controlled:s,default:d.current});x.useEffect(()=>{(u.current&&u.current!==n||y.current&&y.current.some(M=>!a.includes(M)))&&(k(a.includes(n)?n:a[0]),y.current=a,u.current=n)},[n,k,f,a]);const g=a.indexOf(f),v=(c=a[g-1])!=null?c:null,T=(l=a[g+1])!=null?l:null,P=q((M,_)=>{p(_?M:V=>M===V?null:V),i==null||i(M,_)}),O=q(M=>{P(M,!0),M!==f&&(k(M),t&&t(M))}),R=q(()=>{T&&O(T)}),E=q((M,_,V)=>{const A=_==="finish",I=V?a.indexOf(V)<a.length-1:!!T;if(e(M,A&&I?"partial":_,V),V&&V!==f){const C=a[a.indexOf(V)+1];C&&O(C)}else A&&R()});return{view:f,setView:O,focusedView:b,setFocusedView:P,nextView:T,previousView:v,defaultView:a.includes(n)?n:a[0],goToNextView:R,setValueAndGoToNextView:E}}function Es(e,{disableFuture:t,maxDate:n,timezone:r}){const a=ue();return x.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 As(e,{disablePast:t,minDate:n,timezone:r}){const a=ue();return x.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,Et=2,At=320,Fs=280,un=334,Ls=ee("div")({overflow:"hidden",width:At,maxHeight:un,display:"flex",flexDirection:"column",margin:"0 auto"}),pt=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:a,isDateDisabled:o,utils:s,timezone:i})=>{const c=s.startOfDay(s.dateWithTimezone(void 0,i));n&&s.isBefore(a,c)&&(a=c),t&&s.isAfter(r,c)&&(r=c);let l=e,u=e;for(s.isBefore(e,a)&&(l=a,u=null),s.isAfter(e,r)&&(u&&(u=r),l=null);l||u;){if(l&&s.isAfter(l,r)&&(l=null),u&&s.isBefore(u,a)&&(u=null),l){if(!o(l))return l;l=s.addDays(l,1)}if(u){if(!o(u))return u;u=s.addDays(u,-1)}}return null},js=(e,t)=>t==null||!e.isValid(t)?null:t,ke=(e,t,n)=>t==null||!e.isValid(t)?n:t,$s=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),dn=(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},Qt=(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},so=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),Ns=["year","month","day"],On=e=>Ns.includes(e),hn=(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},_s=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},fn=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:a})=>{var o,s;const i=ue(),c=x.useRef(n),l=(o=t??c.current)!=null?o:a.emptyValue,u=x.useMemo(()=>a.getTimezone(i,l),[i,a,l]),y=q(d=>u==null?d:a.setTimezone(i,u,d)),D=(s=e??u)!=null?s:"default",f=x.useMemo(()=>a.setTimezone(i,D,l),[a,i,D,l]),k=q((d,...b)=>{const p=y(d);r==null||r(p,...b)});return{value:f,handleValueChange:k,timezone:D}},mn=({name:e,timezone:t,value:n,defaultValue:r,onChange:a,valueManager:o})=>{const[s,i]=Ye({name:e,state:"value",controlled:n,default:r??o.emptyValue}),c=q((l,...u)=>{i(l),a==null||a(l,...u)});return fn({timezone:t,value:s,defaultValue:void 0,onChange:c,valueManager:o})},Re={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Bs=e=>Math.max(...e.map(t=>{var n;return(n=Re[t.type])!=null?n:1})),ut=(e,t,n)=>{if(t===Re.year)return e.startOfYear(n);if(t===Re.month)return e.startOfMonth(n);if(t===Re.day)return e.startOfDay(n);let r=n;return t<Re.minutes&&(r=e.setMinutes(r,0)),t<Re.seconds&&(r=e.setSeconds(r,0)),t<Re.milliseconds&&(r=e.setMilliseconds(r,0)),r},Ys=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:a})=>{var o;let s=a?a():ut(t,n,so(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=Os((o=e.disableIgnoringDatePartForTimeValidation)!=null?o:!1,t);return e.minTime!=null&&i(e.minTime,s)&&(s=ut(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Qt(t,s,e.minTime))),e.maxTime!=null&&i(s,e.maxTime)&&(s=ut(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Qt(t,s,e.maxTime))),s},ao=(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{c1 as a}from"./index-CL2MuWgy.js";a.defaults.timeout=10*1e3;const o=a.create();export{o as a};
@@ -1,4 +1,4 @@
1
- import{aM as C,r as n,j as t,q as P,u as M,l as T,B as x,aQ as B,Z as I,A as b,T as d,L,E as _}from"./index-CHSnAsQ1.js";import{M as W}from"./index-knmEO6mr.js";import{E as F}from"./index-DJWtIeK5.js";import{T as z}from"./index-0Kwb6jmK.js";import{_ as R}from"./useLocalStorage-BnVJN1iM.js";import{R as D}from"./dashboard-DJj7YdCJ.js";import{F as K}from"./FormControl-B_Do5Nt6.js";import{I as O}from"./InputLabel-4YX1ylv6.js";import{S as U}from"./Select-D6CeNImJ.js";import{P as q}from"./Pagination-8KVsI0JZ.js";import{r as G}from"./index-NRVaJz9f.js";import"./index-B8_eoYBV.js";import"./MoreVert-Dd_rZHl1.js";import"./confirm-DcZkK6Pc.js";import"./format-error-DSoyPyVx.js";import"./Alert-cwZghN5o.js";import"./useSlot-Cwz6OM5B.js";import"./Delete-DJZzf2v3.js";import"./PlayArrow-s9OSCCm9.js";import"./ListItemText-CbVOTWQ3.js";import"./ButtonGroup-Cf877fOo.js";import"./RadioGroup-DImJzaoP.js";import"./FormControlLabel-BDYHQJ8F.js";import"./useFormControl-oAKl9UVb.js";import"./FormGroup-Bk12j31H.js";import"./Avatar-BVTgZMZu.js";import"./session-DFjt4_rn.js";import"./permission-DPowxK7C.js";import"./useAsync-B3RNaSvA.js";import"./spaces-BGhjBX1b.js";import"./index-vwRhQ5RS.js";import"./api-CK31hCQN.js";import"./Link-D9C6v4KL.js";import"./useSetState-Bw-0RwWQ.js";import"./fallback-Co8Kc2kj.js";import"./index-B36YvF84.js";import"./Toolbar-CRxjvb2_.js";import"./Hidden-kVeQMxEt.js";import"./MoreHoriz-kAuD1nY3.js";import"./ExpandMore-Vsh2QVwZ.js";import"./index-DViM25Vy.js";import"./selector-C4Gh2j9t.js";import"./LastPage-BfloM2Wq.js";const S=n.createContext({}),{Provider:H,Consumer:Oe}=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){P.error(m.message),h(!1)}}};n.useEffect(()=>{y({page:1,silent:!1})},[]),n.useEffect(()=>{y({page:1,silent:!1})},[u]);const E={loading:j,fetch:y,filter:{category:u,scope:o},categories:N,setCategory:k,data:c,paging:f,showScope:i,scopeFormatter:p};return t.jsx(H,{value:{auditLogs:E},children:e})}function w(){const{auditLogs:e}=n.useContext(S);return e}const Z=({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 J({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:Z({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(W,{source:e.content,rehypePlugins:[[G,{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}=M(),{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(T,{})}):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(B,{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(F,{children:e("common.empty")}),o.length>0&&o.map(r=>t.jsx(J,{log:r},r.id)),i.pageCount>1&&t.jsx(q,{page:i.page,count:i.pageCount,onChange:(r,f)=>c({page:f}),showFirstButton:!0,showLastButton:!0})]})}function Ue({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{aM as C,r as n,j as t,q as P,u as M,l as T,B as x,aQ as B,Z as I,A as b,T as d,L,E as _}from"./index-CL2MuWgy.js";import{M as W}from"./index-DDeCtOVE.js";import{E as F}from"./index-CsVY8MSI.js";import{T as z}from"./index-Bdg3eQL4.js";import{_ as R}from"./useLocalStorage-DLUzHeWb.js";import{R as D}from"./dashboard-B3FiMlvK.js";import{F as K}from"./FormControl-DrLoqvI1.js";import{I as O}from"./InputLabel-ys_ApPlk.js";import{S as U}from"./Select-C_8EtoAI.js";import{P as q}from"./Pagination-DASlGbyu.js";import{r as G}from"./index-DdYRNkRT.js";import"./index-DVbPOY8J.js";import"./MoreVert-CB4vQPic.js";import"./confirm-BnMV0-HV.js";import"./format-error-Bl69lCj-.js";import"./Alert-CdrO9wp_.js";import"./useSlot-DGpPHvLx.js";import"./Delete-k49MPvRz.js";import"./PlayArrow-vh3KxOxB.js";import"./ListItemText-CK7nMTkm.js";import"./ButtonGroup-CNCUbNBn.js";import"./RadioGroup-BN2d11MQ.js";import"./FormControlLabel-BZ-Na1Px.js";import"./useFormControl-DhPkOJZO.js";import"./FormGroup-B_cYMk58.js";import"./Avatar-B857twI0.js";import"./session-CkWtK0_2.js";import"./permission-BTXpHNMQ.js";import"./useAsync-D4jpP_Cn.js";import"./spaces-CzJrHGyH.js";import"./index-DH5UmDxM.js";import"./api-DQ0CtWLc.js";import"./Link-ltWIbLQC.js";import"./useSetState-COv8V7Hh.js";import"./fallback-rmTIFQSJ.js";import"./index-7WP5qycS.js";import"./Toolbar-BPW2rPOy.js";import"./Hidden-B3_ybJ-q.js";import"./MoreHoriz-CcbBublh.js";import"./ExpandMore-B8-mtsJf.js";import"./index-hKKO_ETj.js";import"./selector-BNNdkkFG.js";import"./LastPage-BlouWXDK.js";const S=n.createContext({}),{Provider:H,Consumer:Oe}=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){P.error(m.message),h(!1)}}};n.useEffect(()=>{y({page:1,silent:!1})},[]),n.useEffect(()=>{y({page:1,silent:!1})},[u]);const E={loading:j,fetch:y,filter:{category:u,scope:o},categories:N,setCategory:k,data:c,paging:f,showScope:i,scopeFormatter:p};return t.jsx(H,{value:{auditLogs:E},children:e})}function w(){const{auditLogs:e}=n.useContext(S);return e}const Z=({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 J({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:Z({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(W,{source:e.content,rehypePlugins:[[G,{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}=M(),{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(T,{})}):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(B,{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(F,{children:e("common.empty")}),o.length>0&&o.map(r=>t.jsx(J,{log:r},r.id)),i.pageCount>1&&t.jsx(q,{page:i.page,count:i.pageCount,onChange:(r,f)=>c({page:f}),showFirstButton:!0,showLastButton:!0})]})}function Ue({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-CHSnAsQ1.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-CL2MuWgy.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,fk as r,P as c}from"./index-CHSnAsQ1.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,fk as r,P as c}from"./index-CL2MuWgy.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 m,u as P,r as n,af as C,ag as T,j as t,l as B,B as h,fJ as _,c as $,a4 as A,a5 as F,q as I,fs as M,fK as N,P as z,E as K,aj as O}from"./index-CHSnAsQ1.js";import{L as W}from"./launch-result-message-zvz9QdJ0.js";import{S as v}from"./button-eQ0RcFyP.js";import{S as X}from"./layout-66Qddc3Z.js";import"./Close-DM3JyAUN.js";import"./content-layout-DgQ1ivqD.js";const q=m(W)`
1
+ import{Z as m,u as P,r as n,af as C,ag as T,j as t,l as B,B as h,fJ as _,c as $,a4 as A,a5 as F,q as I,fs as M,fK as N,P as z,E as K,aj as O}from"./index-CL2MuWgy.js";import{L as W}from"./launch-result-message-Df16VNd8.js";import{S as v}from"./button-CFuVKG7l.js";import{S as X}from"./layout-CDguKnNr.js";import"./Close-gciQI04i.js";import"./content-layout-B22yg9Bb.js";const q=m(W)`
2
2
  && .result-footer {
3
3
  height: 120px;
4
4
  > div {
@@ -1,4 +1,4 @@
1
- import{gq as $p,l as qt,gr as Np,gs as Fp,fm as Vp,gt as zp,gu as Wp,B as le,gp as qp,gv as Up,gw as Gp,bX as Hp,gx as Yp,gy as Kp,aO as Qp,gz as Xp,gA as Jp,ao as Ot,j as x,X as Ht,Y as de,u as ft,a as Ut,P as K,q as Oe,co as We,gB as Ne,r as E,cx as Xe,b4 as mi,cp as Go,gC as Zp,fj as re,aB as Fe,aC as Ve,aD as ae,T as Ct,aG as z,cD as Vr,aF as De,cz as ra,aJ as Be,aK as Ae,ez as em,cY as aa,cI as oa,gD as Dc,de as xc,cE as tm,ce as fn,bj as br,az as et,aE as nm,cZ as Pc,b as cn,cP as Tc,bm as rm,ae as am,gE as om,cJ as La,dr as im,cQ as Ho,gF as Ul,cO as Yo,$ as ia,gG as lm,ey as we,eu as Gl,gH as sm,dD as gi,gI as um,cr as cm,Z as ot,aM as pt,a0 as Yt,aU as lr,a9 as en,a7 as ze,bl as pn,fW as dm,f0 as rn,eZ as hi,f6 as Ko,ap as bi,aQ as Mt,aV as Cn,E as me,fK as Sc,fY as kc,gJ as fm,e as pm,c as Rc,aS as Zn,ab as Ba,eL as mm,gK as gm,bB as nn,a1 as kr,cN as Hl}from"./index-CHSnAsQ1.js";import{d as Ec}from"./Add-CG-F3Tpq.js";import{E as hm,d as vi,F as bm,a as yi,L as Ci}from"./Edit-DUj2eyUz.js";import{E as vm}from"./index-DJWtIeK5.js";import{g as ym,h as Cm,i as wm,W as mn,j as Dm,k as wi,B as Mc,a as Oc,l as xm,m as Pm}from"./dashboard-DJj7YdCJ.js";import{S as Tm}from"./switch-control-CdZ7hT3y.js";import{P as Qo,w as wn}from"./permission-DPowxK7C.js";import{b as Sm,t as km,c as Yl,T as Rm}from"./index-B8_eoYBV.js";import{r as Dn,V as Em,R as Mm,F as Om,C as _m,a as Im,e as Am,g as _t,f as Et,s as la,h as on,q as _c,p as Di,k as Ic,m as jm,l as Lm,i as xn,c as ln,d as sa,o as Bm,n as $m,v as Ac,y as Nm,w as Fm,x as Vm,j as zm,u as Wm,t as qm,b as Um,z as Kl,D as Gm,A as Hm}from"./FilterList-Cy1sL14k.js";import{d as Ym,_ as te,G as er,b as Ql,c as Km,e as Qm,f as Xm}from"./redux-DfSDCKtt.js";import{S as Jm,d as Zm}from"./Search-CxTEsXhT.js";import{C as eg,r as xe,a as xi,t as lt,b as ye,e as Xo,d as tg,s as zr,g as Jo,m as jc,c as Lc,f as ng,h as rg,i as Zo,j as Bc,k as ag,l as og,n as $c,o as Pi,p as Xl,q as ig,u as Jl,v as lg,w as sg,x as Bt,y as ug,z as Zl,A as cg,B as $a,D as es,E as dg,F as Na,G as In,H as fg,I as pg,J as Rr,K as Fa,L as ts,M as Va,N as za,O as mg,P as gg,Q as hg,R as bg,S as vg,T as yg,U as Cg,V as wg,W as Dg,X as xg,Y as Pg,Z as Tg}from"./index-uHERBk1s.js";import{C as Sg,d as ns,B as kg}from"./ChevronRight-B1-v0rVj.js";import{D as Rg}from"./DeleteOutline-UAdOMkx7.js";import{A as Eg}from"./AddBox-CCE1buV8.js";import{o as Mg,e as Og,i as _g,p as Ig,g as Ag,d as rs,c as jg,b as Re,_ as Se,r as Kt}from"./slicedToArray-CVLbnzuy.js";import{t as Lg,k as Bg,l as $g,_ as ke}from"./jss-plugin-props-sort.esm-D277VpMG.js";import{F as Ng,f as Fg,a as Vg,T as st}from"./TextField-DVioGsc-.js";import{_ as zg}from"./toPropertyKey-hKuLU48H.js";import{S as Wg}from"./Skeleton-DL2VL97S.js";import{M as Nc,g as qg,i as Ug}from"./InputAdornment-C-wpGP7M.js";import{m as tt,t as Gg}from"./toUpper-B3I7eG1g.js";import{C as as}from"./click-to-copy-C0t70-Pv.js";import{d as vr}from"./Delete-DJZzf2v3.js";import{d as Hg}from"./ArrowDropDown-DpHnrXJX.js";import{A as os}from"./Alert-cwZghN5o.js";import{f as bt}from"./format-error-DSoyPyVx.js";import{A as Yg,a as Kg,b as Qg,d as Fc}from"./add-component-core-B3gU-T0w.js";import{C as Pn}from"./confirm-DcZkK6Pc.js";import{v as Xg,a as Wr}from"./util-CRACQuGi.js";import{i as Jg}from"./index-vwRhQ5RS.js";import{d as Zg}from"./LockIcon-C20NfK7J.js";import{d as Vc}from"./Launch-CahVoyyw.js";import{C as eh}from"./item-D_tapEj7.js";import{A as th}from"./Avatar-BVTgZMZu.js";import{E as Ti}from"./Link-D9C6v4KL.js";import{d as nh}from"./InfoOutlined-DUs9-7mj.js";import{R as rh,a as is}from"./RadioGroup-DImJzaoP.js";import{F as ei,C as ah}from"./FormControlLabel-BDYHQJ8F.js";import{d as oh}from"./PlayArrow-s9OSCCm9.js";import{A as zc}from"./actions-DLwaHSiX.js";import{I as Wa}from"./index-Bc3Y41oE.js";import{W as ih}from"./did-address-1pTl5ZJp.js";import{T as lh}from"./index-0Kwb6jmK.js";import{a as sh}from"./index-Cnmgkvme.js";import"./Done-CIjx7jUD.js";import"./logo-uploader-BxL2AT1m.js";import"./index-C82L-zg9.js";import"./EditIcon-jpbTcPi9.js";import"./ButtonGroup-Cf877fOo.js";import"./useLocalStorage-BnVJN1iM.js";import"./MoreVert-Dd_rZHl1.js";import"./ListItemText-CbVOTWQ3.js";import"./session-DFjt4_rn.js";import"./spaces-BGhjBX1b.js";import"./api-CK31hCQN.js";import"./useSetState-Bw-0RwWQ.js";import"./fallback-Co8Kc2kj.js";import"./index-B36YvF84.js";import"./Toolbar-CRxjvb2_.js";import"./Hidden-kVeQMxEt.js";import"./MoreHoriz-kAuD1nY3.js";import"./ExpandMore-Vsh2QVwZ.js";import"./index-DViM25Vy.js";import"./selector-C4Gh2j9t.js";import"./useSlot-Cwz6OM5B.js";import"./useAsync-B3RNaSvA.js";import"./FormControl-B_Do5Nt6.js";import"./useFormControl-oAKl9UVb.js";import"./FormGroup-Bk12j31H.js";import"./InputLabel-4YX1ylv6.js";import"./Select-D6CeNImJ.js";import"./LastPage-BfloM2Wq.js";import"./lottie-C925gYap.js";import"./config-space-DN8oNvsB.js";import"./url-join-JgKEtdA2.js";import"./launch-result-message-zvz9QdJ0.js";import"./Close-DM3JyAUN.js";import"./page-header-nMH5Nm1-.js";import"./uniqBy-BA_TMJYf.js";import"./index-CI4IafEw.js";import"./Google-CPv9gImr.js";import"./index-knmEO6mr.js";import"./Stepper-DJQ-xHUp.js";import"./connect-to-BU03yn0n.js";import"./use-blocklet-info-for-connect-did-spaces-rQZBR8_3.js";import"./CloseOutlined-D-nYpxl4.js";import"./index-BWJ8VQ8o.js";import"./content-layout-DgQ1ivqD.js";import"./preact.module-B1z5cdvs.js";import"./shorten-label--VZVYLZC.js";const uh=Object.freeze(Object.defineProperty({__proto__:null,circularProgressClasses:$p,default:qt,getCircularProgressUtilityClass:Np},Symbol.toStringTag,{value:"Module"})),ch=Object.freeze(Object.defineProperty({__proto__:null,collapseClasses:Fp,default:Vp,getCollapseUtilityClass:zp},Symbol.toStringTag,{value:"Module"})),dh=Object.freeze(Object.defineProperty({__proto__:null,boxClasses:Wp,default:le},Symbol.toStringTag,{value:"Module"})),fh=Object.freeze(Object.defineProperty({__proto__:null,default:Ng,formHelperTextClasses:Fg,getFormHelperTextUtilityClasses:Vg},Symbol.toStringTag,{value:"Module"})),ph=Object.freeze(Object.defineProperty({__proto__:null,default:qp,getIconUtilityClass:Up,iconClasses:Gp},Symbol.toStringTag,{value:"Module"})),mh=Object.freeze(Object.defineProperty({__proto__:null,default:Nc,getInputAdornmentUtilityClass:qg,inputAdornmentClasses:Ug},Symbol.toStringTag,{value:"Module"})),gh=Object.freeze(Object.defineProperty({__proto__:null,default:Hp,getLinearProgressUtilityClass:Yp,linearProgressClasses:Kp},Symbol.toStringTag,{value:"Module"})),hh=Object.freeze(Object.defineProperty({__proto__:null,default:Qp,getMenuUtilityClass:Xp,menuClasses:Jp},Symbol.toStringTag,{value:"Module"})),bh=Ot(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 Si={},vh=de;Object.defineProperty(Si,"__esModule",{value:!0});var Wc=Si.default=void 0,yh=vh(Ht()),Ch=x;Wc=Si.default=(0,yh.default)((0,Ch.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 ki={},wh=de;Object.defineProperty(ki,"__esModule",{value:!0});var qc=ki.default=void 0,Dh=wh(Ht()),xh=x;qc=ki.default=(0,Dh.default)((0,xh.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");function Ri({children:e,...t}){const{t:n}=ft(),{updateAutoCheckUpdate:a,autoCheckUpdate:r}=ym(),i=async()=>{try{const l=!(r!=null&&r.enabled);await a({enabled:l}),Oe.success(n(l?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(l){Oe.error(l.message)}},o=!!(r!=null&&r.enabled);return x.jsxs(le,{display:"flex",flexDirection:"row",alignItems:"center",children:[e,x.jsx(Ut,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:x.jsx("div",{children:x.jsx(Tm,{checked:o,onChange:i,name:"enableWelcomePage",style:{...t.style,zoom:.8}})})})]})}Ri.propTypes={children:K.any};Ri.defaultProps={children:null};var Uc={},An={},qa={},Ua={},Ga={};const Gc=We(uh);var ls;function Ph(){return ls||(ls=1,function(e){var t=de;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ne),a=t(Gc),r=t(E),i=t(Xe),o=Dn;function l(s){var f=(0,o.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:i.default.any};var u=r.default.forwardRef(function(f,c){return r.default.createElement(l,(0,n.default)({},f,{forwardedRef:c}))});e.default=u}(Ga)),Ga}var Ha={},Ya={},Dt={};const Ze=We(Ym);var Th={BASE_URL:"/.well-known/service/static",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const ss=e=>{let t;const n=new Set,a=(u,s)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const c=t;t=s??typeof f!="object"?f:Object.assign({},t,f),n.forEach(p=>p(t,c))}},r=()=>t,l={setState:a,getState:r,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(Th&&"production")!=="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()}};return t=e(a,r,l),l},Hc=e=>e?ss(e):ss;var Yc={exports:{}},Kc={},Qc={exports:{}},Xc={};/**
1
+ import{gq as $p,l as qt,gr as Np,gs as Fp,fm as Vp,gt as zp,gu as Wp,B as le,gp as qp,gv as Up,gw as Gp,bX as Hp,gx as Yp,gy as Kp,aO as Qp,gz as Xp,gA as Jp,ao as Ot,j as x,X as Ht,Y as de,u as ft,a as Ut,P as K,q as Oe,co as We,gB as Ne,r as E,cx as Xe,b4 as mi,cp as Go,gC as Zp,fj as re,aB as Fe,aC as Ve,aD as ae,T as Ct,aG as z,cD as Vr,aF as De,cz as ra,aJ as Be,aK as Ae,ez as em,cY as aa,cI as oa,gD as Dc,de as xc,cE as tm,ce as fn,bj as br,az as et,aE as nm,cZ as Pc,b as cn,cP as Tc,bm as rm,ae as am,gE as om,cJ as La,dr as im,cQ as Ho,gF as Ul,cO as Yo,$ as ia,gG as lm,ey as we,eu as Gl,gH as sm,dD as gi,gI as um,cr as cm,Z as ot,aM as pt,a0 as Yt,aU as lr,a9 as en,a7 as ze,bl as pn,fW as dm,f0 as rn,eZ as hi,f6 as Ko,ap as bi,aQ as Mt,aV as Cn,E as me,fK as Sc,fY as kc,gJ as fm,e as pm,c as Rc,aS as Zn,ab as Ba,eL as mm,gK as gm,bB as nn,a1 as kr,cN as Hl}from"./index-CL2MuWgy.js";import{d as Ec}from"./Add-Brs6l0hU.js";import{E as hm,d as vi,F as bm,a as yi,L as Ci}from"./Edit-Bj54pAe_.js";import{E as vm}from"./index-CsVY8MSI.js";import{g as ym,h as Cm,i as wm,W as mn,j as Dm,k as wi,B as Mc,a as Oc,l as xm,m as Pm}from"./dashboard-B3FiMlvK.js";import{S as Tm}from"./switch-control-DmU8QSF4.js";import{P as Qo,w as wn}from"./permission-BTXpHNMQ.js";import{b as Sm,t as km,c as Yl,T as Rm}from"./index-DVbPOY8J.js";import{r as Dn,V as Em,R as Mm,F as Om,C as _m,a as Im,e as Am,g as _t,f as Et,s as la,h as on,q as _c,p as Di,k as Ic,m as jm,l as Lm,i as xn,c as ln,d as sa,o as Bm,n as $m,v as Ac,y as Nm,w as Fm,x as Vm,j as zm,u as Wm,t as qm,b as Um,z as Kl,D as Gm,A as Hm}from"./FilterList-Du3mVkNU.js";import{d as Ym,_ as te,G as er,b as Ql,c as Km,e as Qm,f as Xm}from"./redux-vempXYa0.js";import{S as Jm,d as Zm}from"./Search-6e7HNczH.js";import{C as eg,r as xe,a as xi,t as lt,b as ye,e as Xo,d as tg,s as zr,g as Jo,m as jc,c as Lc,f as ng,h as rg,i as Zo,j as Bc,k as ag,l as og,n as $c,o as Pi,p as Xl,q as ig,u as Jl,v as lg,w as sg,x as Bt,y as ug,z as Zl,A as cg,B as $a,D as es,E as dg,F as Na,G as In,H as fg,I as pg,J as Rr,K as Fa,L as ts,M as Va,N as za,O as mg,P as gg,Q as hg,R as bg,S as vg,T as yg,U as Cg,V as wg,W as Dg,X as xg,Y as Pg,Z as Tg}from"./index-zLmacV1e.js";import{C as Sg,d as ns,B as kg}from"./ChevronRight-p9uIbU8Z.js";import{D as Rg}from"./DeleteOutline-QSrwg0EI.js";import{A as Eg}from"./AddBox-BorsWH1L.js";import{o as Mg,e as Og,i as _g,p as Ig,g as Ag,d as rs,c as jg,b as Re,_ as Se,r as Kt}from"./slicedToArray-V2PX1JN8.js";import{t as Lg,k as Bg,l as $g,_ as ke}from"./jss-plugin-props-sort.esm-DzavEauW.js";import{F as Ng,f as Fg,a as Vg,T as st}from"./TextField-COPeEWpZ.js";import{_ as zg}from"./toPropertyKey-hKuLU48H.js";import{S as Wg}from"./Skeleton-BnhPRGgN.js";import{M as Nc,g as qg,i as Ug}from"./InputAdornment-Dmqc2UlU.js";import{m as tt,t as Gg}from"./toUpper-D5PDJ7_3.js";import{C as as}from"./click-to-copy-BFYwGrB_.js";import{d as vr}from"./Delete-k49MPvRz.js";import{d as Hg}from"./ArrowDropDown-Cc7ZV2yN.js";import{A as os}from"./Alert-CdrO9wp_.js";import{f as bt}from"./format-error-Bl69lCj-.js";import{A as Yg,a as Kg,b as Qg,d as Fc}from"./add-component-core-B8i7T4Kg.js";import{C as Pn}from"./confirm-BnMV0-HV.js";import{v as Xg,a as Wr}from"./util-DuWlpeLs.js";import{i as Jg}from"./index-DH5UmDxM.js";import{d as Zg}from"./LockIcon-Bt33Hpov.js";import{d as Vc}from"./Launch-BT1RubZl.js";import{C as eh}from"./item-Dq2QNfn5.js";import{A as th}from"./Avatar-B857twI0.js";import{E as Ti}from"./Link-ltWIbLQC.js";import{d as nh}from"./InfoOutlined-5DVg0LZC.js";import{R as rh,a as is}from"./RadioGroup-BN2d11MQ.js";import{F as ei,C as ah}from"./FormControlLabel-BZ-Na1Px.js";import{d as oh}from"./PlayArrow-vh3KxOxB.js";import{A as zc}from"./actions-CGml5EzX.js";import{I as Wa}from"./index-5uzjMizz.js";import{W as ih}from"./did-address-B8N2tjFV.js";import{T as lh}from"./index-Bdg3eQL4.js";import{a as sh}from"./index-Cj6tOOrI.js";import"./Done-D_Xh37ry.js";import"./logo-uploader-B96Ok6Ys.js";import"./index-BJrPsPDp.js";import"./EditIcon-489vuPgf.js";import"./ButtonGroup-CNCUbNBn.js";import"./useLocalStorage-DLUzHeWb.js";import"./MoreVert-CB4vQPic.js";import"./ListItemText-CK7nMTkm.js";import"./session-CkWtK0_2.js";import"./spaces-CzJrHGyH.js";import"./api-DQ0CtWLc.js";import"./useSetState-COv8V7Hh.js";import"./fallback-rmTIFQSJ.js";import"./index-7WP5qycS.js";import"./Toolbar-BPW2rPOy.js";import"./Hidden-B3_ybJ-q.js";import"./MoreHoriz-CcbBublh.js";import"./ExpandMore-B8-mtsJf.js";import"./index-hKKO_ETj.js";import"./selector-BNNdkkFG.js";import"./useSlot-DGpPHvLx.js";import"./useAsync-D4jpP_Cn.js";import"./FormControl-DrLoqvI1.js";import"./useFormControl-DhPkOJZO.js";import"./FormGroup-B_cYMk58.js";import"./InputLabel-ys_ApPlk.js";import"./Select-C_8EtoAI.js";import"./LastPage-BlouWXDK.js";import"./lottie-CQi0bh2D.js";import"./config-space-C5zZHk3Q.js";import"./url-join-Dnsu_5vQ.js";import"./launch-result-message-Df16VNd8.js";import"./Close-gciQI04i.js";import"./page-header-CLjZ-_ic.js";import"./uniqBy-CPwHHBOm.js";import"./index-xH4Oj7ao.js";import"./Google-1aQCgZJc.js";import"./index-DDeCtOVE.js";import"./Stepper-CC1pyQEm.js";import"./connect-to-D5VCzm-i.js";import"./use-blocklet-info-for-connect-did-spaces-oRSb2cvE.js";import"./CloseOutlined-Xl6vJm1S.js";import"./index-3gowKxHt.js";import"./content-layout-B22yg9Bb.js";import"./preact.module-B1z5cdvs.js";import"./shorten-label-HQwCiW2q.js";const uh=Object.freeze(Object.defineProperty({__proto__:null,circularProgressClasses:$p,default:qt,getCircularProgressUtilityClass:Np},Symbol.toStringTag,{value:"Module"})),ch=Object.freeze(Object.defineProperty({__proto__:null,collapseClasses:Fp,default:Vp,getCollapseUtilityClass:zp},Symbol.toStringTag,{value:"Module"})),dh=Object.freeze(Object.defineProperty({__proto__:null,boxClasses:Wp,default:le},Symbol.toStringTag,{value:"Module"})),fh=Object.freeze(Object.defineProperty({__proto__:null,default:Ng,formHelperTextClasses:Fg,getFormHelperTextUtilityClasses:Vg},Symbol.toStringTag,{value:"Module"})),ph=Object.freeze(Object.defineProperty({__proto__:null,default:qp,getIconUtilityClass:Up,iconClasses:Gp},Symbol.toStringTag,{value:"Module"})),mh=Object.freeze(Object.defineProperty({__proto__:null,default:Nc,getInputAdornmentUtilityClass:qg,inputAdornmentClasses:Ug},Symbol.toStringTag,{value:"Module"})),gh=Object.freeze(Object.defineProperty({__proto__:null,default:Hp,getLinearProgressUtilityClass:Yp,linearProgressClasses:Kp},Symbol.toStringTag,{value:"Module"})),hh=Object.freeze(Object.defineProperty({__proto__:null,default:Qp,getMenuUtilityClass:Xp,menuClasses:Jp},Symbol.toStringTag,{value:"Module"})),bh=Ot(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 Si={},vh=de;Object.defineProperty(Si,"__esModule",{value:!0});var Wc=Si.default=void 0,yh=vh(Ht()),Ch=x;Wc=Si.default=(0,yh.default)((0,Ch.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 ki={},wh=de;Object.defineProperty(ki,"__esModule",{value:!0});var qc=ki.default=void 0,Dh=wh(Ht()),xh=x;qc=ki.default=(0,Dh.default)((0,xh.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");function Ri({children:e,...t}){const{t:n}=ft(),{updateAutoCheckUpdate:a,autoCheckUpdate:r}=ym(),i=async()=>{try{const l=!(r!=null&&r.enabled);await a({enabled:l}),Oe.success(n(l?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(l){Oe.error(l.message)}},o=!!(r!=null&&r.enabled);return x.jsxs(le,{display:"flex",flexDirection:"row",alignItems:"center",children:[e,x.jsx(Ut,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:x.jsx("div",{children:x.jsx(Tm,{checked:o,onChange:i,name:"enableWelcomePage",style:{...t.style,zoom:.8}})})})]})}Ri.propTypes={children:K.any};Ri.defaultProps={children:null};var Uc={},An={},qa={},Ua={},Ga={};const Gc=We(uh);var ls;function Ph(){return ls||(ls=1,function(e){var t=de;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ne),a=t(Gc),r=t(E),i=t(Xe),o=Dn;function l(s){var f=(0,o.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:i.default.any};var u=r.default.forwardRef(function(f,c){return r.default.createElement(l,(0,n.default)({},f,{forwardedRef:c}))});e.default=u}(Ga)),Ga}var Ha={},Ya={},Dt={};const Ze=We(Ym);var Th={BASE_URL:"/.well-known/service/static",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const ss=e=>{let t;const n=new Set,a=(u,s)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const c=t;t=s??typeof f!="object"?f:Object.assign({},t,f),n.forEach(p=>p(t,c))}},r=()=>t,l={setState:a,getState:r,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(Th&&"production")!=="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()}};return t=e(a,r,l),l},Hc=e=>e?ss(e):ss;var Yc={exports:{}},Kc={},Qc={exports:{}},Xc={};/**
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,E as e}from"./index-CHSnAsQ1.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,E as e}from"./index-CL2MuWgy.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 U,u as q,af as F,bp as G,a9 as d,c as M,E as z,a7 as P,e$ as H,bU as D,q as Y}from"./index-CHSnAsQ1.js";import{u as $}from"./uniqBy-BA_TMJYf.js";import{S as Q}from"./index-CI4IafEw.js";import{P as V}from"./page-header-nMH5Nm1-.js";import{S as W}from"./layout-66Qddc3Z.js";import{S as X}from"./step-actions-CEK8mgUw.js";import{S as Z}from"./button-eQ0RcFyP.js";import"./EditIcon-jpbTcPi9.js";import"./Done-CIjx7jUD.js";import"./Google-CPv9gImr.js";import"./TextField-DVioGsc-.js";import"./FormControl-B_Do5Nt6.js";import"./useFormControl-oAKl9UVb.js";import"./InputLabel-4YX1ylv6.js";import"./Select-D6CeNImJ.js";import"./logo-uploader-BxL2AT1m.js";import"./index-C82L-zg9.js";import"./content-layout-DgQ1ivqD.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 U,u as q,af as F,bp as G,a9 as d,c as M,E as z,a7 as P,e$ as H,bU as D,q as Y}from"./index-CL2MuWgy.js";import{u as $}from"./uniqBy-CPwHHBOm.js";import{S as Q}from"./index-xH4Oj7ao.js";import{P as V}from"./page-header-CLjZ-_ic.js";import{S as W}from"./layout-CDguKnNr.js";import{S as X}from"./step-actions-DjXtFHj4.js";import{S as Z}from"./button-CFuVKG7l.js";import"./EditIcon-489vuPgf.js";import"./Done-D_Xh37ry.js";import"./Google-1aQCgZJc.js";import"./TextField-COPeEWpZ.js";import"./FormControl-DrLoqvI1.js";import"./useFormControl-DhPkOJZO.js";import"./InputLabel-ys_ApPlk.js";import"./Select-C_8EtoAI.js";import"./logo-uploader-B96Ok6Ys.js";import"./index-BJrPsPDp.js";import"./content-layout-B22yg9Bb.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{U as Kr,r as O,cp as ze,dy as rt,cx as qr,g6 as oi,dD as Ct,fj as D,aG as ie,et as ii,b4 as Bt,P as b,ey as V,co as ai,j as T,bB as se,fV as li,u as tt,ct as Ue,B as fe,T as ge,aY as si,dH as ci,b3 as Qr,b7 as Xr,b1 as di,b2 as ui,b6 as hi,g7 as fi,g8 as pi,g9 as gi,ga as vi,fg as mi,gb as Si,gc as yi,b8 as hn,eK as _i,f6 as Ci,be as Yr,aQ as vt,N as Ut,az as Ge,bh as wi,b as fn,aV as Vt,a9 as Gt,b$ as Pe,gd as Wn,c as Jr,dq as xi,ge as Hn,bU as bi,q as dt,dm as ut,ap as Ri,a1 as Ti,gf as Ii,b9 as zi,gg as Zr,E as At,gh as Di,gi as Oi,e_ as Pi,Z as ki,$ as Ni,ae as Zt,bO as Mi,f8 as Li,bA as Re}from"./index-CHSnAsQ1.js";import{r as Ei,b as Ai,i as $n,c as ji,d as Bn,D as Fi,H as Gi}from"./index-BaC0Haea.js";import{_ as te,a as Ve,b as ve,c as me,d as Se,r as Wi}from"./slicedToArray-CVLbnzuy.js";import{_ as re,i as Hi,f as $i,j as Bi,a as Ui,c as Vi,d as Ki,b as qi,e as Qi,g as Xi,h as Yi}from"./jss-plugin-props-sort.esm-D277VpMG.js";import{_ as w,G as Un}from"./redux-DfSDCKtt.js";import{_ as Ji}from"./toPropertyKey-hKuLU48H.js";import{_ as Zi,u as eo,b as ea}from"./dashboard-DJj7YdCJ.js";import{u as ta,C as ot,A as na}from"./index.esm-OBsOHYQt.js";import{p as ra,u as oa}from"./index-D_gLZbnC.js";import{F as Cn}from"./FormControl-B_Do5Nt6.js";import{I as to}from"./InputLabel-4YX1ylv6.js";import{S as pn,O as ia}from"./Select-D6CeNImJ.js";import{a as aa}from"./ListItemText-CbVOTWQ3.js";import{F as la,T as en}from"./TextField-DVioGsc-.js";import{b as sa,c as Vn}from"./index-B8_eoYBV.js";import{M as Kn}from"./InputAdornment-C-wpGP7M.js";import{H as ca,F as da}from"./index-6uPYP6zK.js";import{D as ua}from"./index-DViM25Vy.js";import{S as tn}from"./Skeleton-DL2VL97S.js";import{f as qn}from"./format-error-DSoyPyVx.js";import{B as nn}from"./ButtonGroup-Cf877fOo.js";import{T as Qn}from"./Toolbar-CRxjvb2_.js";import{L as Xn}from"./LoadingButton-CIR80MCf.js";import"./useLocalStorage-BnVJN1iM.js";import"./MoreVert-Dd_rZHl1.js";import"./confirm-DcZkK6Pc.js";import"./Alert-cwZghN5o.js";import"./useSlot-Cwz6OM5B.js";import"./Delete-DJZzf2v3.js";import"./PlayArrow-s9OSCCm9.js";import"./RadioGroup-DImJzaoP.js";import"./FormControlLabel-BDYHQJ8F.js";import"./useFormControl-oAKl9UVb.js";import"./FormGroup-Bk12j31H.js";import"./Avatar-BVTgZMZu.js";import"./session-DFjt4_rn.js";import"./permission-DPowxK7C.js";import"./useAsync-B3RNaSvA.js";import"./index-0Kwb6jmK.js";import"./spaces-BGhjBX1b.js";import"./index-vwRhQ5RS.js";import"./api-CK31hCQN.js";import"./Link-D9C6v4KL.js";import"./useSetState-Bw-0RwWQ.js";import"./fallback-Co8Kc2kj.js";import"./index-B36YvF84.js";import"./Hidden-kVeQMxEt.js";import"./MoreHoriz-kAuD1nY3.js";import"./ExpandMore-Vsh2QVwZ.js";import"./selector-C4Gh2j9t.js";function ha(t,o){t===void 0&&(t=!1);var r=Kr(O.useState(t),2),e=r[0],n=r[1],i=O.useMemo(function(){var a=o===void 0?!t:o,l=function(){return n(function(u){return u===t?a:t})},s=function(u){return n(u)},d=function(){return n(t)},c=function(){return n(a)};return{toggle:l,set:s,setLeft:d,setRight:c}},[]);return[e,i]}function fa(t){t===void 0&&(t=!1);var o=Kr(ha(!!t),2),r=o[0],e=o[1],n=e.toggle,i=e.set,a=O.useMemo(function(){var l=function(){return i(!0)},s=function(){return i(!1)};return{toggle:n,set:function(d){return i(!!d)},setTrue:l,setFalse:s}},[]);return[r,a]}var Oe={},no="Expected a function",Yn=NaN,pa="[object Symbol]",ga=/^\s+|\s+$/g,va=/^[-+]0x[0-9a-f]+$/i,ma=/^0b[01]+$/i,Sa=/^0o[0-7]+$/i,ya=parseInt,_a=typeof ze=="object"&&ze&&ze.Object===Object&&ze,Ca=typeof self=="object"&&self&&self.Object===Object&&self,wa=_a||Ca||Function("return this")(),xa=Object.prototype,ba=xa.toString,Ra=Math.max,Ta=Math.min,rn=function(){return wa.Date.now()};function Ia(t,o,r){var e,n,i,a,l,s,d=0,c=!1,u=!1,h=!0;if(typeof t!="function")throw new TypeError(no);o=Jn(o)||0,Wt(r)&&(c=!!r.leading,u="maxWait"in r,i=u?Ra(Jn(r.maxWait)||0,o):i,h="trailing"in r?!!r.trailing:h);function p(x){var R=e,y=n;return e=n=void 0,d=x,a=t.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,P=o-R;return u?Ta(P,i-y):P}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=n=void 0,a)}function z(){l!==void 0&&clearTimeout(l),d=0,e=s=n=l=void 0}function _(){return l===void 0?a:g(rn())}function v(){var x=rn(),R=S(x);if(e=arguments,n=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 za(t,o,r){var e=!0,n=!0;if(typeof t!="function")throw new TypeError(no);return Wt(r)&&(e="leading"in r?!!r.leading:e,n="trailing"in r?!!r.trailing:n),Ia(t,o,{leading:e,maxWait:o,trailing:n})}function Wt(t){var o=typeof t;return!!t&&(o=="object"||o=="function")}function Da(t){return!!t&&typeof t=="object"}function Oa(t){return typeof t=="symbol"||Da(t)&&ba.call(t)==pa}function Jn(t){if(typeof t=="number")return t;if(Oa(t))return Yn;if(Wt(t)){var o=typeof t.valueOf=="function"?t.valueOf():t;t=Wt(o)?o+"":o}if(typeof t!="string")return t===0?t:+t;t=t.replace(ga,"");var r=ma.test(t);return r||Sa.test(t)?ya(t.slice(2),r?2:8):va.test(t)?Yn:+t}var Pa=za,Kt={exports:{}},ht={exports:{}};(function(){var t,o,r,e,n,i;typeof performance<"u"&&performance!==null&&performance.now?ht.exports=function(){return performance.now()}:typeof rt<"u"&&rt!==null&&rt.hrtime?(ht.exports=function(){return(t()-n)/1e6},o=rt.hrtime,t=function(){var a;return a=o(),a[0]*1e9+a[1]},e=t(),i=rt.uptime()*1e9,n=e-i):Date.now?(ht.exports=function(){return Date.now()-r},r=Date.now()):(ht.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(ze);var ka=ht.exports,Na=ka,De=typeof window>"u"?ze:window,kt=["moz","webkit"],Qe="AnimationFrame",Ye=De["request"+Qe],yt=De["cancel"+Qe]||De["cancelRequest"+Qe];for(var it=0;!Ye&&it<kt.length;it++)Ye=De[kt[it]+"Request"+Qe],yt=De[kt[it]+"Cancel"+Qe]||De[kt[it]+"CancelRequest"+Qe];if(!Ye||!yt){var on=0,Zn=0,Ae=[],Ma=1e3/60;Ye=function(t){if(Ae.length===0){var o=Na(),r=Math.max(0,Ma-(o-on));on=r+o,setTimeout(function(){var e=Ae.slice(0);Ae.length=0;for(var n=0;n<e.length;n++)if(!e[n].cancelled)try{e[n].callback(on)}catch(i){setTimeout(function(){throw i},0)}},Math.round(r))}return Ae.push({handle:++Zn,callback:t,cancelled:!1}),Zn},yt=function(t){for(var o=0;o<Ae.length;o++)Ae[o].handle===t&&(Ae[o].cancelled=!0)}}Kt.exports=function(t){return Ye.call(De,t)};Kt.exports.cancel=function(){yt.apply(De,arguments)};Kt.exports.polyfill=function(t){t||(t=De),t.requestAnimationFrame=Ye,t.cancelAnimationFrame=yt};var La=Kt.exports,wn={};Object.defineProperty(wn,"__esModule",{value:!0});wn.default=Ea;function Ea(t){return t.displayName||t.name||(typeof t=="string"&&t.length>0?t:"Unknown")}var wt={};Object.defineProperty(wt,"__esModule",{value:!0});wt.noop=Aa;wt.intBetween=ja;wt.getCoords=Fa;function Aa(){}function ja(t,o,r){return Math.floor(Math.min(o,Math.max(t,r)))}function Fa(t){return t.type==="touchmove"?{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}:{x:t.clientX,y:t.clientY}}Object.defineProperty(Oe,"__esModule",{value:!0});var Ga=Oe.createHorizontalStrength=oo,Wa=Oe.createVerticalStrength=io,Ha=Oe.createScrollingComponent=so,$a=Oe.default=nl;Oe.defaultVerticalStrength=Oe.defaultHorizontalStrength=void 0;var mt=Qa(O),at=xt(qr),Ba=Ct,Ua=xt(Pa),er=xt(La),Va=xt(wn),Ka=Ei,qa=xt(oi),Nt=wt;function xt(t){return t&&t.__esModule?t:{default:t}}function Qa(t){if(t&&t.__esModule)return t;var o={};if(t!=null){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var e=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};e.get||e.set?Object.defineProperty(o,r,e):o[r]=t[r]}}return o.default=t,o}function jt(t){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(t)}function Ht(){return Ht=Object.assign||function(t){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},Ht.apply(this,arguments)}function Xa(t,o){if(t==null)return{};var r=Ya(t,o),e,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],!(o.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function Ya(t,o){if(t==null)return{};var r={},e=Object.keys(t),n,i;for(i=0;i<e.length;i++)n=e[i],!(o.indexOf(n)>=0)&&(r[n]=t[n]);return r}function Ja(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function tr(t,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(t,e.key,e)}}function Za(t,o,r){return o&&tr(t.prototype,o),r&&tr(t,r),t}function el(t,o){return o&&(jt(o)==="object"||typeof o=="function")?o:ft(t)}function gn(t){return gn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},gn(t)}function tl(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),o&&vn(t,o)}function vn(t,o){return vn=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},vn(t,o)}function ft(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lt(t,o,r){return o in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t}var ro=150;function oo(t){return function(r,e){var n=r.x,i=r.w,a=r.y,l=r.h,s=Math.min(i/2,t),d=e.x>=n&&e.x<=n+i,c=d&&e.y>=a&&e.y<=a+l;if(c){if(e.x<n+s)return(e.x-n-s)/s;if(e.x>n+i-s)return-(n+i-e.x-s)/s}return 0}}function io(t){return function(r,e){var n=r.y,i=r.h,a=r.x,l=r.w,s=Math.min(i/2,t),d=e.y>=n&&e.y<=n+i,c=d&&e.x>=a&&e.x<=a+l;if(c){if(e.y<n+s)return(e.y-n-s)/s;if(e.y>n+i-s)return-(n+i-e.y-s)/s}return 0}}var ao=oo(ro);Oe.defaultHorizontalStrength=ao;var lo=io(ro);Oe.defaultVerticalStrength=lo;function so(t){var o=function(r){tl(e,r);function e(n,i){var a;return Ja(this,e),a=el(this,gn(e).call(this,n,i)),lt(ft(ft(a)),"updateScrolling",(0,Ua.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})),lt(ft(ft(a)),"handleEvent",function(l){a.dragging&&!a.attached&&(a.attach(),a.updateScrolling(l))}),a.wrappedInstance=mt.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,Ba.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,er.default)(s)};l()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(er.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=Xa(i,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]);return mt.default.createElement(t,Ht({ref:this.wrappedInstance},a))}}]),e}(mt.Component);return lt(o,"displayName","Scrolling(".concat((0,Va.default)(t),")")),lt(o,"propTypes",{dragDropManager:at.default.object.isRequired,onScrollChange:at.default.func,verticalStrength:at.default.func,horizontalStrength:at.default.func,strengthMultiplier:at.default.number}),lt(o,"defaultProps",{onScrollChange:Nt.noop,verticalStrength:lo,horizontalStrength:ao,strengthMultiplier:30}),(0,qa.default)(o,t)}function nl(t){var o=so(t);return function(r){return mt.default.createElement(Ka.DragDropContextConsumer,null,function(e){var n=e.dragDropManager;return n===void 0?null:mt.default.createElement(o,Ht({},r,{dragDropManager:n}))})}}function co(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);t!=null&&this.setState(t)}function uo(t){function o(r){var e=this.constructor.getDerivedStateFromProps(t,r);return e??null}this.setState(o.bind(this))}function ho(t,o){try{var r=this.props,e=this.state;this.props=t,this.state=o,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,e)}finally{this.props=r,this.state=e}}co.__suppressDeprecationWarning=!0;uo.__suppressDeprecationWarning=!0;ho.__suppressDeprecationWarning=!0;function bt(t){var o=t.prototype;if(!o||!o.isReactComponent)throw new Error("Can only polyfill class components");if(typeof t.getDerivedStateFromProps!="function"&&typeof o.getSnapshotBeforeUpdate!="function")return t;var r=null,e=null,n=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"?n="componentWillUpdate":typeof o.UNSAFE_componentWillUpdate=="function"&&(n="UNSAFE_componentWillUpdate"),r!==null||e!==null||n!==null){var i=t.displayName||t.name,a=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
1
+ import{U as Kr,r as O,cp as ze,dy as rt,cx as qr,g6 as oi,dD as Ct,fj as D,aG as ie,et as ii,b4 as Bt,P as b,ey as V,co as ai,j as T,bB as se,fV as li,u as tt,ct as Ue,B as fe,T as ge,aY as si,dH as ci,b3 as Qr,b7 as Xr,b1 as di,b2 as ui,b6 as hi,g7 as fi,g8 as pi,g9 as gi,ga as vi,fg as mi,gb as Si,gc as yi,b8 as hn,eK as _i,f6 as Ci,be as Yr,aQ as vt,N as Ut,az as Ge,bh as wi,b as fn,aV as Vt,a9 as Gt,b$ as Pe,gd as Wn,c as Jr,dq as xi,ge as Hn,bU as bi,q as dt,dm as ut,ap as Ri,a1 as Ti,gf as Ii,b9 as zi,gg as Zr,E as At,gh as Di,gi as Oi,e_ as Pi,Z as ki,$ as Ni,ae as Zt,bO as Mi,f8 as Li,bA as Re}from"./index-CL2MuWgy.js";import{r as Ei,b as Ai,i as $n,c as ji,d as Bn,D as Fi,H as Gi}from"./index-Cp_x9pQ7.js";import{_ as te,a as Ve,b as ve,c as me,d as Se,r as Wi}from"./slicedToArray-V2PX1JN8.js";import{_ as re,i as Hi,f as $i,j as Bi,a as Ui,c as Vi,d as Ki,b as qi,e as Qi,g as Xi,h as Yi}from"./jss-plugin-props-sort.esm-DzavEauW.js";import{_ as w,G as Un}from"./redux-vempXYa0.js";import{_ as Ji}from"./toPropertyKey-hKuLU48H.js";import{_ as Zi,u as eo,b as ea}from"./dashboard-B3FiMlvK.js";import{u as ta,C as ot,A as na}from"./index.esm-dtU2uSGd.js";import{p as ra,u as oa}from"./index-PxS9yNQw.js";import{F as Cn}from"./FormControl-DrLoqvI1.js";import{I as to}from"./InputLabel-ys_ApPlk.js";import{S as pn,O as ia}from"./Select-C_8EtoAI.js";import{a as aa}from"./ListItemText-CK7nMTkm.js";import{F as la,T as en}from"./TextField-COPeEWpZ.js";import{b as sa,c as Vn}from"./index-DVbPOY8J.js";import{M as Kn}from"./InputAdornment-Dmqc2UlU.js";import{H as ca,F as da}from"./index-C9lrp93a.js";import{D as ua}from"./index-hKKO_ETj.js";import{S as tn}from"./Skeleton-BnhPRGgN.js";import{f as qn}from"./format-error-Bl69lCj-.js";import{B as nn}from"./ButtonGroup-CNCUbNBn.js";import{T as Qn}from"./Toolbar-BPW2rPOy.js";import{L as Xn}from"./LoadingButton-B9MhTSHg.js";import"./useLocalStorage-DLUzHeWb.js";import"./MoreVert-CB4vQPic.js";import"./confirm-BnMV0-HV.js";import"./Alert-CdrO9wp_.js";import"./useSlot-DGpPHvLx.js";import"./Delete-k49MPvRz.js";import"./PlayArrow-vh3KxOxB.js";import"./RadioGroup-BN2d11MQ.js";import"./FormControlLabel-BZ-Na1Px.js";import"./useFormControl-DhPkOJZO.js";import"./FormGroup-B_cYMk58.js";import"./Avatar-B857twI0.js";import"./session-CkWtK0_2.js";import"./permission-BTXpHNMQ.js";import"./useAsync-D4jpP_Cn.js";import"./index-Bdg3eQL4.js";import"./spaces-CzJrHGyH.js";import"./index-DH5UmDxM.js";import"./api-DQ0CtWLc.js";import"./Link-ltWIbLQC.js";import"./useSetState-COv8V7Hh.js";import"./fallback-rmTIFQSJ.js";import"./index-7WP5qycS.js";import"./Hidden-B3_ybJ-q.js";import"./MoreHoriz-CcbBublh.js";import"./ExpandMore-B8-mtsJf.js";import"./selector-BNNdkkFG.js";function ha(t,o){t===void 0&&(t=!1);var r=Kr(O.useState(t),2),e=r[0],n=r[1],i=O.useMemo(function(){var a=o===void 0?!t:o,l=function(){return n(function(u){return u===t?a:t})},s=function(u){return n(u)},d=function(){return n(t)},c=function(){return n(a)};return{toggle:l,set:s,setLeft:d,setRight:c}},[]);return[e,i]}function fa(t){t===void 0&&(t=!1);var o=Kr(ha(!!t),2),r=o[0],e=o[1],n=e.toggle,i=e.set,a=O.useMemo(function(){var l=function(){return i(!0)},s=function(){return i(!1)};return{toggle:n,set:function(d){return i(!!d)},setTrue:l,setFalse:s}},[]);return[r,a]}var Oe={},no="Expected a function",Yn=NaN,pa="[object Symbol]",ga=/^\s+|\s+$/g,va=/^[-+]0x[0-9a-f]+$/i,ma=/^0b[01]+$/i,Sa=/^0o[0-7]+$/i,ya=parseInt,_a=typeof ze=="object"&&ze&&ze.Object===Object&&ze,Ca=typeof self=="object"&&self&&self.Object===Object&&self,wa=_a||Ca||Function("return this")(),xa=Object.prototype,ba=xa.toString,Ra=Math.max,Ta=Math.min,rn=function(){return wa.Date.now()};function Ia(t,o,r){var e,n,i,a,l,s,d=0,c=!1,u=!1,h=!0;if(typeof t!="function")throw new TypeError(no);o=Jn(o)||0,Wt(r)&&(c=!!r.leading,u="maxWait"in r,i=u?Ra(Jn(r.maxWait)||0,o):i,h="trailing"in r?!!r.trailing:h);function p(x){var R=e,y=n;return e=n=void 0,d=x,a=t.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,P=o-R;return u?Ta(P,i-y):P}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=n=void 0,a)}function z(){l!==void 0&&clearTimeout(l),d=0,e=s=n=l=void 0}function _(){return l===void 0?a:g(rn())}function v(){var x=rn(),R=S(x);if(e=arguments,n=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 za(t,o,r){var e=!0,n=!0;if(typeof t!="function")throw new TypeError(no);return Wt(r)&&(e="leading"in r?!!r.leading:e,n="trailing"in r?!!r.trailing:n),Ia(t,o,{leading:e,maxWait:o,trailing:n})}function Wt(t){var o=typeof t;return!!t&&(o=="object"||o=="function")}function Da(t){return!!t&&typeof t=="object"}function Oa(t){return typeof t=="symbol"||Da(t)&&ba.call(t)==pa}function Jn(t){if(typeof t=="number")return t;if(Oa(t))return Yn;if(Wt(t)){var o=typeof t.valueOf=="function"?t.valueOf():t;t=Wt(o)?o+"":o}if(typeof t!="string")return t===0?t:+t;t=t.replace(ga,"");var r=ma.test(t);return r||Sa.test(t)?ya(t.slice(2),r?2:8):va.test(t)?Yn:+t}var Pa=za,Kt={exports:{}},ht={exports:{}};(function(){var t,o,r,e,n,i;typeof performance<"u"&&performance!==null&&performance.now?ht.exports=function(){return performance.now()}:typeof rt<"u"&&rt!==null&&rt.hrtime?(ht.exports=function(){return(t()-n)/1e6},o=rt.hrtime,t=function(){var a;return a=o(),a[0]*1e9+a[1]},e=t(),i=rt.uptime()*1e9,n=e-i):Date.now?(ht.exports=function(){return Date.now()-r},r=Date.now()):(ht.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(ze);var ka=ht.exports,Na=ka,De=typeof window>"u"?ze:window,kt=["moz","webkit"],Qe="AnimationFrame",Ye=De["request"+Qe],yt=De["cancel"+Qe]||De["cancelRequest"+Qe];for(var it=0;!Ye&&it<kt.length;it++)Ye=De[kt[it]+"Request"+Qe],yt=De[kt[it]+"Cancel"+Qe]||De[kt[it]+"CancelRequest"+Qe];if(!Ye||!yt){var on=0,Zn=0,Ae=[],Ma=1e3/60;Ye=function(t){if(Ae.length===0){var o=Na(),r=Math.max(0,Ma-(o-on));on=r+o,setTimeout(function(){var e=Ae.slice(0);Ae.length=0;for(var n=0;n<e.length;n++)if(!e[n].cancelled)try{e[n].callback(on)}catch(i){setTimeout(function(){throw i},0)}},Math.round(r))}return Ae.push({handle:++Zn,callback:t,cancelled:!1}),Zn},yt=function(t){for(var o=0;o<Ae.length;o++)Ae[o].handle===t&&(Ae[o].cancelled=!0)}}Kt.exports=function(t){return Ye.call(De,t)};Kt.exports.cancel=function(){yt.apply(De,arguments)};Kt.exports.polyfill=function(t){t||(t=De),t.requestAnimationFrame=Ye,t.cancelAnimationFrame=yt};var La=Kt.exports,wn={};Object.defineProperty(wn,"__esModule",{value:!0});wn.default=Ea;function Ea(t){return t.displayName||t.name||(typeof t=="string"&&t.length>0?t:"Unknown")}var wt={};Object.defineProperty(wt,"__esModule",{value:!0});wt.noop=Aa;wt.intBetween=ja;wt.getCoords=Fa;function Aa(){}function ja(t,o,r){return Math.floor(Math.min(o,Math.max(t,r)))}function Fa(t){return t.type==="touchmove"?{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}:{x:t.clientX,y:t.clientY}}Object.defineProperty(Oe,"__esModule",{value:!0});var Ga=Oe.createHorizontalStrength=oo,Wa=Oe.createVerticalStrength=io,Ha=Oe.createScrollingComponent=so,$a=Oe.default=nl;Oe.defaultVerticalStrength=Oe.defaultHorizontalStrength=void 0;var mt=Qa(O),at=xt(qr),Ba=Ct,Ua=xt(Pa),er=xt(La),Va=xt(wn),Ka=Ei,qa=xt(oi),Nt=wt;function xt(t){return t&&t.__esModule?t:{default:t}}function Qa(t){if(t&&t.__esModule)return t;var o={};if(t!=null){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var e=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};e.get||e.set?Object.defineProperty(o,r,e):o[r]=t[r]}}return o.default=t,o}function jt(t){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(t)}function Ht(){return Ht=Object.assign||function(t){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},Ht.apply(this,arguments)}function Xa(t,o){if(t==null)return{};var r=Ya(t,o),e,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],!(o.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function Ya(t,o){if(t==null)return{};var r={},e=Object.keys(t),n,i;for(i=0;i<e.length;i++)n=e[i],!(o.indexOf(n)>=0)&&(r[n]=t[n]);return r}function Ja(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function tr(t,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(t,e.key,e)}}function Za(t,o,r){return o&&tr(t.prototype,o),r&&tr(t,r),t}function el(t,o){return o&&(jt(o)==="object"||typeof o=="function")?o:ft(t)}function gn(t){return gn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},gn(t)}function tl(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),o&&vn(t,o)}function vn(t,o){return vn=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},vn(t,o)}function ft(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lt(t,o,r){return o in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t}var ro=150;function oo(t){return function(r,e){var n=r.x,i=r.w,a=r.y,l=r.h,s=Math.min(i/2,t),d=e.x>=n&&e.x<=n+i,c=d&&e.y>=a&&e.y<=a+l;if(c){if(e.x<n+s)return(e.x-n-s)/s;if(e.x>n+i-s)return-(n+i-e.x-s)/s}return 0}}function io(t){return function(r,e){var n=r.y,i=r.h,a=r.x,l=r.w,s=Math.min(i/2,t),d=e.y>=n&&e.y<=n+i,c=d&&e.x>=a&&e.x<=a+l;if(c){if(e.y<n+s)return(e.y-n-s)/s;if(e.y>n+i-s)return-(n+i-e.y-s)/s}return 0}}var ao=oo(ro);Oe.defaultHorizontalStrength=ao;var lo=io(ro);Oe.defaultVerticalStrength=lo;function so(t){var o=function(r){tl(e,r);function e(n,i){var a;return Ja(this,e),a=el(this,gn(e).call(this,n,i)),lt(ft(ft(a)),"updateScrolling",(0,Ua.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})),lt(ft(ft(a)),"handleEvent",function(l){a.dragging&&!a.attached&&(a.attach(),a.updateScrolling(l))}),a.wrappedInstance=mt.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,Ba.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,er.default)(s)};l()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(er.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=Xa(i,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]);return mt.default.createElement(t,Ht({ref:this.wrappedInstance},a))}}]),e}(mt.Component);return lt(o,"displayName","Scrolling(".concat((0,Va.default)(t),")")),lt(o,"propTypes",{dragDropManager:at.default.object.isRequired,onScrollChange:at.default.func,verticalStrength:at.default.func,horizontalStrength:at.default.func,strengthMultiplier:at.default.number}),lt(o,"defaultProps",{onScrollChange:Nt.noop,verticalStrength:lo,horizontalStrength:ao,strengthMultiplier:30}),(0,qa.default)(o,t)}function nl(t){var o=so(t);return function(r){return mt.default.createElement(Ka.DragDropContextConsumer,null,function(e){var n=e.dragDropManager;return n===void 0?null:mt.default.createElement(o,Ht({},r,{dragDropManager:n}))})}}function co(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);t!=null&&this.setState(t)}function uo(t){function o(r){var e=this.constructor.getDerivedStateFromProps(t,r);return e??null}this.setState(o.bind(this))}function ho(t,o){try{var r=this.props,e=this.state;this.props=t,this.state=o,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,e)}finally{this.props=r,this.state=e}}co.__suppressDeprecationWarning=!0;uo.__suppressDeprecationWarning=!0;ho.__suppressDeprecationWarning=!0;function bt(t){var o=t.prototype;if(!o||!o.isReactComponent)throw new Error("Can only polyfill class components");if(typeof t.getDerivedStateFromProps!="function"&&typeof o.getSnapshotBeforeUpdate!="function")return t;var r=null,e=null,n=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"?n="componentWillUpdate":typeof o.UNSAFE_componentWillUpdate=="function"&&(n="UNSAFE_componentWillUpdate"),r!==null||e!==null||n!==null){var i=t.displayName||t.name,a=typeof t.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{P,Z as C0,j as y,l as YM,r as r0,cn as KM,co as WA,cp as QM,cq as db,b4 as aA,$ as hb,ac as nA,cr as dA,cs as tA,ct as iA,cu as rA,cv as sA,cw as fA,T as uA,C as RA,aV as Xb,aM as lA,b9 as LA,cx as NA,b8 as tb,q as BA,a9 as hA}from"./index-CHSnAsQ1.js";import{j as XA}from"./url-join-JgKEtdA2.js";import{S as W2}from"./Skeleton-DL2VL97S.js";import{H as mA}from"./Hidden-kVeQMxEt.js";import{b as TA,c as yA,g as gA}from"./spaces-BGhjBX1b.js";function JM({value:M,size:b,style:O,...c}){return y.jsxs(_A,{style:{width:b,height:b,...O},...c,children:[y.jsx(YM,{variant:"determinate",role:"progressbar",value:100,size:b,"aria-label":"decorative progress bar",thickness:10,style:{color:"#dddddd"}}),y.jsx(YM,{variant:"determinate",value:M,role:"progressbar",size:b,thickness:10,"aria-label":"main progress bar"})]})}JM.propTypes={value:P.number.isRequired,size:P.number,style:P.object};JM.defaultProps={size:10,style:{}};const _A=C0.span`
1
+ import{P,Z as C0,j as y,l as YM,r as r0,cn as KM,co as WA,cp as QM,cq as db,b4 as aA,$ as hb,ac as nA,cr as dA,cs as tA,ct as iA,cu as rA,cv as sA,cw as fA,T as uA,C as RA,aV as Xb,aM as lA,b9 as LA,cx as NA,b8 as tb,q as BA,a9 as hA}from"./index-CL2MuWgy.js";import{j as XA}from"./url-join-Dnsu_5vQ.js";import{S as W2}from"./Skeleton-BnhPRGgN.js";import{H as mA}from"./Hidden-B3_ybJ-q.js";import{b as TA,c as yA,g as gA}from"./spaces-CzJrHGyH.js";function JM({value:M,size:b,style:O,...c}){return y.jsxs(_A,{style:{width:b,height:b,...O},...c,children:[y.jsx(YM,{variant:"determinate",role:"progressbar",value:100,size:b,"aria-label":"decorative progress bar",thickness:10,style:{color:"#dddddd"}}),y.jsx(YM,{variant:"determinate",value:M,role:"progressbar",size:b,thickness:10,"aria-label":"main progress bar"})]})}JM.propTypes={value:P.number.isRequired,size:P.number,style:P.object};JM.defaultProps={size:10,style:{}};const _A=C0.span`
2
2
  display: inline-block;
3
3
  position: relative;
4
4
  > * {
@@ -1,4 +1,4 @@
1
- import{cM as L,$ as C,r as a,u as N,bj as O,j as n,cN as Q,cO as z,cP as F,a1 as y,l as Z,P as o,Z as G,cQ as H}from"./index-CHSnAsQ1.js";import{D as I,f as J}from"./format-error-DSoyPyVx.js";import{A as K}from"./Alert-cwZghN5o.js";function U(){var e;const s=L();return(e=s==null?void 0:s.$$material)!=null?e:s}function V(){const e=U();return{minWidth:C(e.breakpoints.down("md"))?300:e.breakpoints.values.sm}}function x({title:e,description:s,showCancel:c,showConfirm:b,cancel:j,confirm:w,color:k,params:D,onCancel:S,onConfirm:T,loading:l,displayError:P,children:v,...$}){const[t,E]=a.useState(D),[M,d]=a.useState(!0),[m,u]=a.useState(!1),[p,f]=a.useState(""),{t:B}=N(),R=O(),h=async r=>{if(typeof r=="function"){u(!0);try{if(await r(t)===!1)return;d(!1)}catch(i){f(J(i)),console.error(i)}finally{u(!1)}}else d(!1)},W=typeof e=="function"?e():e,q=typeof s=="function"?s(t,E,f):s,A=C(R.breakpoints.down("md")),_=r=>{r.stopPropagation()},{minWidth:g}=V();return n.jsxs(X,{onClick:_,fullScreen:A,open:M,style:{minWidth:g},...$,children:[n.jsx(Q,{children:W}),n.jsxs(z,{style:{minWidth:g},children:[n.jsx(I,{component:"div",children:q}),!!p&&P&&n.jsx(K,{severity:"error",style:{width:"100%",marginTop:8},children:p}),v]}),n.jsxs(F,{className:"delete-actions",style:{padding:"8px 24px 24px"},children:[c&&n.jsx(y,{onClick:r=>{r.stopPropagation(),h(S)},color:"inherit","data-cy":"cancel-confirm-dialog",children:j||B("common.cancel")}),b&&n.jsxs(y,{onClick:r=>{r.stopPropagation(),h(T)},color:k,disabled:t.__disableConfirm||m||l,variant:"contained","data-cy":"submit-confirm-dialog",autoFocus:!0,children:[(m||l)&&n.jsx(Z,{size:16,sx:{mr:1}}),w]})]})]})}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=G(H)`
1
+ import{cM as L,$ as C,r as a,u as N,bj as O,j as n,cN as Q,cO as z,cP as F,a1 as y,l as Z,P as o,Z as G,cQ as H}from"./index-CL2MuWgy.js";import{D as I,f as J}from"./format-error-Bl69lCj-.js";import{A as K}from"./Alert-CdrO9wp_.js";function U(){var e;const s=L();return(e=s==null?void 0:s.$$material)!=null?e:s}function V(){const e=U();return{minWidth:C(e.breakpoints.down("md"))?300:e.breakpoints.values.sm}}function x({title:e,description:s,showCancel:c,showConfirm:b,cancel:j,confirm:w,color:k,params:D,onCancel:S,onConfirm:T,loading:l,displayError:P,children:v,...$}){const[t,E]=a.useState(D),[M,d]=a.useState(!0),[m,u]=a.useState(!1),[p,f]=a.useState(""),{t:B}=N(),R=O(),h=async r=>{if(typeof r=="function"){u(!0);try{if(await r(t)===!1)return;d(!1)}catch(i){f(J(i)),console.error(i)}finally{u(!1)}}else d(!1)},W=typeof e=="function"?e():e,q=typeof s=="function"?s(t,E,f):s,A=C(R.breakpoints.down("md")),_=r=>{r.stopPropagation()},{minWidth:g}=V();return n.jsxs(X,{onClick:_,fullScreen:A,open:M,style:{minWidth:g},...$,children:[n.jsx(Q,{children:W}),n.jsxs(z,{style:{minWidth:g},children:[n.jsx(I,{component:"div",children:q}),!!p&&P&&n.jsx(K,{severity:"error",style:{width:"100%",marginTop:8},children:p}),v]}),n.jsxs(F,{className:"delete-actions",style:{padding:"8px 24px 24px"},children:[c&&n.jsx(y,{onClick:r=>{r.stopPropagation(),h(S)},color:"inherit","data-cy":"cancel-confirm-dialog",children:j||B("common.cancel")}),b&&n.jsxs(y,{onClick:r=>{r.stopPropagation(),h(T)},color:k,disabled:t.__disableConfirm||m||l,variant:"contained","data-cy":"submit-confirm-dialog",autoFocus:!0,children:[(m||l)&&n.jsx(Z,{size:16,sx:{mr:1}}),w]})]})]})}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=G(H)`
2
2
  .delete-actions .Mui-disabled {
3
3
  color: rgba(0, 0, 0, 0.26) !important;
4
4
  box-shadow: none;
@@ -1,4 +1,4 @@
1
- import{u as y,d as h,fq as m,c as x,j as n,C as i,l as g,T as w,J as C,s as T,q as j,P as k,Z as P,I as v}from"./index-CHSnAsQ1.js";import{_ as S}from"./useAsync-B3RNaSvA.js";function U({children:u}){const{t:r,locale:p}=y(),{api:c,session:a}=h(),{encryptKey:l,decrypt:d}=m(),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 y,d as h,fq as m,c as x,j as n,C as i,l as g,T as w,J as C,s as T,q as j,P as k,Z as P,I as v}from"./index-CL2MuWgy.js";import{_ as S}from"./useAsync-D4jpP_Cn.js";function U({children:u}){const{t:r,locale:p}=y(),{api:c,session:a}=h(),{encryptKey:l,decrypt:d}=m(),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
  }