@abtnode/blocklet-services 1.16.27-beta-aa9c2977 → 1.16.27-beta-43a3bbb2

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 (169) hide show
  1. package/api/libs/connect/session.js +12 -3
  2. package/dist/assets/{Add-DWPkhR7c.js → Add-CkUvZ8ne.js} +1 -1
  3. package/dist/assets/{AddBox-BjX9Z2uj.js → AddBox-CYLniHTg.js} +1 -1
  4. package/dist/assets/{Alert-D5YfCoUW.js → Alert-DSAK-6uk.js} +1 -1
  5. package/dist/assets/{ArrowDropDown-BdjbdLb6.js → ArrowDropDown-eEIvnybw.js} +1 -1
  6. package/dist/assets/{Avatar-isxOT3tA.js → Avatar-6cyEgEIs.js} +1 -1
  7. package/dist/assets/{ButtonGroup-DPL_1wz3.js → ButtonGroup-CbL72-oE.js} +1 -1
  8. package/dist/assets/{CheckCircle-8mrK7i0B.js → CheckCircle-CCtR5Xg1.js} +1 -1
  9. package/dist/assets/{ChevronRight-DNv1gZKn.js → ChevronRight-D4XRflu9.js} +1 -1
  10. package/dist/assets/{CloseOutlined-DoNA2OX4.js → CloseOutlined-Cpeesg_y.js} +1 -1
  11. package/dist/assets/{Delete-0zNQNl-n.js → Delete-FnPlSebw.js} +1 -1
  12. package/dist/assets/{DeleteOutline-CR22pWuT.js → DeleteOutline-DeZPaQ1S.js} +1 -1
  13. package/dist/assets/{Done-hH5-N5v0.js → Done-DMoT8ohA.js} +1 -1
  14. package/dist/assets/{Download-kFyuuqiT.js → Download-MLK9k-QI.js} +1 -1
  15. package/dist/assets/{Edit-DGi8qwHM.js → Edit-DS1Mq3Qj.js} +1 -1
  16. package/dist/assets/{EditIcon-BTer7WGq.js → EditIcon-_ZF4_H7O.js} +1 -1
  17. package/dist/assets/{Error-Mcb_XNeI.js → Error-CNGdEO62.js} +1 -1
  18. package/dist/assets/{ExpandMore-BgFo69Uu.js → ExpandMore-BLVLjrZd.js} +1 -1
  19. package/dist/assets/{FilterList-D37rH1lX.js → FilterList-rsX_pJAI.js} +1 -1
  20. package/dist/assets/{FormControl-FOGVkAoE.js → FormControl-BGBxSpFa.js} +1 -1
  21. package/dist/assets/{FormControlLabel-C2ynx6-R.js → FormControlLabel-D8u6upQ1.js} +1 -1
  22. package/dist/assets/{FormGroup-C8bxvRCn.js → FormGroup-B459wuGu.js} +1 -1
  23. package/dist/assets/{Google-B0xyZx_J.js → Google-BTJavqUA.js} +1 -1
  24. package/dist/assets/{Grid-yCxJQYxc.js → Grid-D5J6kvn0.js} +1 -1
  25. package/dist/assets/{Hidden-BUue-5gv.js → Hidden-Bq2dXlPY.js} +1 -1
  26. package/dist/assets/{InfoOutlined-BFaZfobd.js → InfoOutlined-D1P8n7sX.js} +1 -1
  27. package/dist/assets/{InputAdornment-DUA05h7f.js → InputAdornment-jSW0lrBI.js} +1 -1
  28. package/dist/assets/{InputLabel-D30LulZb.js → InputLabel-D4si6vrM.js} +1 -1
  29. package/dist/assets/{LastPage-Bsc_HsDo.js → LastPage-B7zYSdUl.js} +1 -1
  30. package/dist/assets/{Launch-H3e02OgF.js → Launch-SkQPO1Cm.js} +1 -1
  31. package/dist/assets/{LaunchOutlined-DNUOXpqM.js → LaunchOutlined-eC9MCH8e.js} +1 -1
  32. package/dist/assets/{Link-BXzMp1xg.js → Link-DpjXpC6x.js} +1 -1
  33. package/dist/assets/{ListItemText-e5ekg1wb.js → ListItemText-CVS1G1s8.js} +1 -1
  34. package/dist/assets/{LockIcon-BRSKZc9o.js → LockIcon-BbYgfgXm.js} +1 -1
  35. package/dist/assets/{Loop-CWFhlQjS.js → Loop-BsAnzeYJ.js} +1 -1
  36. package/dist/assets/{MoreHoriz-BUMFUhwJ.js → MoreHoriz-DtO97ZT3.js} +1 -1
  37. package/dist/assets/{MoreVert-BlfI-m1v.js → MoreVert-BbEIKsYw.js} +1 -1
  38. package/dist/assets/{OpenInNew-DvfZ3_35.js → OpenInNew-B1iaT2eN.js} +1 -1
  39. package/dist/assets/{Pagination-Bfb8zZCL.js → Pagination-DwyeABpM.js} +1 -1
  40. package/dist/assets/{PlayArrow-Nl_H1UBL.js → PlayArrow-C7kIbjaf.js} +1 -1
  41. package/dist/assets/{RadioGroup-DeoyugEj.js → RadioGroup-DiqmtEFh.js} +1 -1
  42. package/dist/assets/{Search-BVORi6f0.js → Search-Cjqsb3on.js} +1 -1
  43. package/dist/assets/{Select-DeWWNQVN.js → Select-hmsiR_HX.js} +1 -1
  44. package/dist/assets/{ServerLogo-CV1h1XOP.js → ServerLogo-D5qdDd4G.js} +1 -1
  45. package/dist/assets/{Skeleton-VINmMOpD.js → Skeleton-BuWYKZPB.js} +1 -1
  46. package/dist/assets/{Slider-N26z0sGm.js → Slider-DetOb1T0.js} +1 -1
  47. package/dist/assets/{Stepper-ComI9dBA.js → Stepper-BXkIeY17.js} +1 -1
  48. package/dist/assets/{TableRow-M2pFTiJl.js → TableRow-DSPkF0eX.js} +1 -1
  49. package/dist/assets/{TextField-CLOKo8rr.js → TextField-CebHGT3J.js} +1 -1
  50. package/dist/assets/{Toolbar-CoiO3etm.js → Toolbar-Bjp831p7.js} +1 -1
  51. package/dist/assets/{ViewList-BrbecVug.js → ViewList-DOozyS6f.js} +1 -1
  52. package/dist/assets/{access-control-C2cqYXUQ.js → access-control-Dl0vyv1s.js} +1 -1
  53. package/dist/assets/{actions-DyCrUvyK.js → actions-CxX91LLq.js} +1 -1
  54. package/dist/assets/{add-component-core-DoRXeX-w.js → add-component-core-Bzv7N-Un.js} +1 -1
  55. package/dist/assets/add-resource-C6SMzogG.js +1 -0
  56. package/dist/assets/{addon-BBtelOiC.js → addon-HBcPW1Xp.js} +1 -1
  57. package/dist/assets/{analytics-D8MDZMbX.js → analytics-BtlQhyh7.js} +1 -1
  58. package/dist/assets/api-sAuPzOF6.js +1 -0
  59. package/dist/assets/{audit-logs-jozrzJUr.js → audit-logs-BAcaHWVK.js} +1 -1
  60. package/dist/assets/{button-CI-oFf7d.js → button-pUiVMawE.js} +1 -1
  61. package/dist/assets/{click-to-copy-9gHOXiDu.js → click-to-copy-BepxNu11.js} +1 -1
  62. package/dist/assets/{complete-aAfV5RH9.js → complete-smm50XPQ.js} +1 -1
  63. package/dist/assets/{component-Bs-IQqJC.js → component-bFEpkQ2Z.js} +1 -1
  64. package/dist/assets/{config-DMnGG-GJ.js → config-DW9gTUAf.js} +1 -1
  65. package/dist/assets/{config-ebXdghGN.js → config-jV7-yCc5.js} +1 -1
  66. package/dist/assets/{config-navigation-DS6DN5tQ.js → config-navigation-CtD1VQtq.js} +1 -1
  67. package/dist/assets/{config-space-D1Y6KkQv.js → config-space-B6jPcEh3.js} +1 -1
  68. package/dist/assets/{confirm-B3mdFD--.js → confirm-Cv8oxTtx.js} +1 -1
  69. package/dist/assets/{connect-DrV6NO8b.js → connect-BkABc5e9.js} +1 -1
  70. package/dist/assets/{connect-CmJVbU43.js → connect-DInxHa0g.js} +1 -1
  71. package/dist/assets/{connect-to-CQCEiCCI.js → connect-to-BFFR-hu4.js} +1 -1
  72. package/dist/assets/{content-layout-D8kIZCKQ.js → content-layout-D4_5Ol4a.js} +1 -1
  73. package/dist/assets/{dashboard-DQ4ngxOJ.js → dashboard-D_A_KYtx.js} +3 -3
  74. package/dist/assets/{did-address-D8Z_pYLU.js → did-address-BKaFzmkz.js} +1 -1
  75. package/dist/assets/{domain-NZNiqcv3.js → domain-EaFE1hEt.js} +1 -1
  76. package/dist/assets/{domain-list-B0zVqUne.js → domain-list-DbawBpg2.js} +1 -1
  77. package/dist/assets/{exchange-passport-C4mP-9HH.js → exchange-passport-Bb9jxKJg.js} +1 -1
  78. package/dist/assets/{fallback-BMS2ZyNw.js → fallback-BrnkKdFy.js} +1 -1
  79. package/dist/assets/{fuel-C6kRWSpP.js → fuel-XE5N0qRF.js} +1 -1
  80. package/dist/assets/{fullpage-BKnA5p29.js → fullpage-D8hlUpG8.js} +1 -1
  81. package/dist/assets/{home-D5bBAzrV.js → home-RpZEfl3g.js} +1 -1
  82. package/dist/assets/{iframe-COqXiy5h.js → iframe-CFCNJ5tP.js} +1 -1
  83. package/dist/assets/{index-Dmhy_Ear.js → index-3brZtWZ9.js} +1 -1
  84. package/dist/assets/{index-DhBpZKlv.js → index-B5c-C1vn.js} +1 -1
  85. package/dist/assets/{index-DLbZ_JZr.js → index-B_hqIPlg.js} +1 -1
  86. package/dist/assets/{index-BViVYSQ1.js → index-BfeaSLaW.js} +1 -1
  87. package/dist/assets/{index-Bggpk5vn.js → index-C5w04FB_.js} +1 -1
  88. package/dist/assets/{index-CGGlwLvN.js → index-CAl1tFNE.js} +1 -1
  89. package/dist/assets/{index-Ctp5CUSN.js → index-CHtMZbHk.js} +1 -1
  90. package/dist/assets/{index-CJsfi4dA.js → index-CPMqUyRS.js} +1 -1
  91. package/dist/assets/{index-pDpS4wtg.js → index-CdqltrPb.js} +1 -1
  92. package/dist/assets/{index-DCy8FR-g.js → index-ChfbTLYd.js} +1 -1
  93. package/dist/assets/{index-BTsP4qi4.js → index-CtDBvr1Q.js} +3 -3
  94. package/dist/assets/{index-nVrcEkAx.js → index-CwpOap00.js} +1 -1
  95. package/dist/assets/{index-DRKjEemf.js → index-D3pN0lCt.js} +1 -1
  96. package/dist/assets/{index-Cmhf1ahn.js → index-D5eD8XJz.js} +1 -1
  97. package/dist/assets/{index-BT5FnniW.js → index-D6RSvNSn.js} +1 -1
  98. package/dist/assets/{index-BRZA9I2v.js → index-D6iVBQb2.js} +1 -1
  99. package/dist/assets/{index-CPnYs_Ln.js → index-D8noUWUC.js} +1 -1
  100. package/dist/assets/{index-DN1AldP1.js → index-DBnR7IpU.js} +1 -1
  101. package/dist/assets/{index-Dnjq7L3Z.js → index-DMLGvPCM.js} +1 -1
  102. package/dist/assets/{index-CWJA5SaB.js → index-DNMd4Dac.js} +1 -1
  103. package/dist/assets/{index-AKJaR9ia.js → index-D_ysrxYq.js} +3 -3
  104. package/dist/assets/{index-_QTdMI-0.js → index-Dh7JA33-.js} +1 -1
  105. package/dist/assets/{index-BCCq9_Ig.js → index-DlqvRRPO.js} +1 -1
  106. package/dist/assets/{index-CuZN5rgD.js → index-DmzTP_a0.js} +1 -1
  107. package/dist/assets/{index-DfGed4IO.js → index-DrNjQoSO.js} +1 -1
  108. package/dist/assets/{index-Do5sTIF0.js → index-DwHEm9HC.js} +1 -1
  109. package/dist/assets/{index-BeplF-8F.js → index-ZsDQ0ZLD.js} +1 -1
  110. package/dist/assets/{index-CIQ9hzkz.js → index-bBRdRgYN.js} +1 -1
  111. package/dist/assets/{index-ByQRo8Xy.js → index-fG25goIy.js} +4 -4
  112. package/dist/assets/{index-RP6u2JcN.js → index-sr139pC0.js} +1 -1
  113. package/dist/assets/{index.es-D8GMZhbX.js → index.es-C3322V-z.js} +1 -1
  114. package/dist/assets/{index.esm-CPLyPsEX.js → index.esm-6YbQ5Xmm.js} +1 -1
  115. package/dist/assets/{info-outline-rounded-Co0YkUeY.js → info-outline-rounded-D7wKMY9w.js} +1 -1
  116. package/dist/assets/{invitation-D_-jPAXO.js → invitation-LN6puB5A.js} +1 -1
  117. package/dist/assets/{invite-iyotQadP.js → invite-DG9H2Iba.js} +1 -1
  118. package/dist/assets/{issue-passport-BvKYs7bh.js → issue-passport-Bdq9kbMM.js} +1 -1
  119. package/dist/assets/{item-glU9YOhe.js → item-bwoWUlt2.js} +1 -1
  120. package/dist/assets/{jss-plugin-props-sort.esm-Cck9yaTo.js → jss-plugin-props-sort.esm-w0rgdWJs.js} +1 -1
  121. package/dist/assets/{launch-result-message-BVtC_IiO.js → launch-result-message-D5ZsOjgY.js} +1 -1
  122. package/dist/assets/{layout-DKfygYsQ.js → layout-h5rjnmBP.js} +1 -1
  123. package/dist/assets/{list-header-DqXEZJxg.js → list-header-DVDeNCcp.js} +1 -1
  124. package/dist/assets/localization-BYhlULmq.js +1 -0
  125. package/dist/assets/{log-BxpRSoBS.js → log-WkhWt2QZ.js} +1 -1
  126. package/dist/assets/{login-CZkpmrO2.js → login-BSuT77Wh.js} +1 -1
  127. package/dist/assets/{login-oauth-callback-Cyh1oNk-.js → login-oauth-callback-CQlWtNf7.js} +1 -1
  128. package/dist/assets/{logo-uploader-Qe4fSMre.js → logo-uploader-DZbF5KOt.js} +3 -3
  129. package/dist/assets/{lost-passport-PftHNz1-.js → lost-passport-yVMXzR1w.js} +3 -3
  130. package/dist/assets/{lottie-AQzixJ8T.js → lottie-DRoeX_V2.js} +1 -1
  131. package/dist/assets/{notifications-CuLpCibe.js → notifications-Bs8gH_Rc.js} +1 -1
  132. package/dist/assets/{overview-D-s5mNXr.js → overview-BtkTCsvo.js} +1 -1
  133. package/dist/assets/{page-header-H2fMhHk4.js → page-header-B22lXwng.js} +1 -1
  134. package/dist/assets/{permission-CZsnNTVZ.js → permission-C9iOC8zT.js} +1 -1
  135. package/dist/assets/{preferences-BlS-FVDW.js → preferences-BfZm39fz.js} +1 -1
  136. package/dist/assets/publish-resource-D8qngMjX.js +1 -0
  137. package/dist/assets/{react-iADoo1z8.js → react-FdGZpLIJ.js} +3 -3
  138. package/dist/assets/{redux-ChkYhsNh.js → redux-DTC_Jkdb.js} +1 -1
  139. package/dist/assets/{selector-CqvONJVH.js → selector-DBqg7pjs.js} +1 -1
  140. package/dist/assets/session-BRLUzB_V.js +1 -0
  141. package/dist/assets/{setup-BvEzJzmk.js → setup-DSA4pIg-.js} +3 -3
  142. package/dist/assets/{slicedToArray-Bc7bSR7A.js → slicedToArray-DkIYLQKw.js} +1 -1
  143. package/dist/assets/{spaces-9alAi49r.js → spaces-XGQ-YXCR.js} +1 -1
  144. package/dist/assets/{start-D02qA9U-.js → start-QP4aPp-U.js} +1 -1
  145. package/dist/assets/{step-actions-Do8z_g9W.js → step-actions-CSDiPZmH.js} +1 -1
  146. package/dist/assets/{studio-z9437wlc.js → studio-CbYn5e_F.js} +1 -1
  147. package/dist/assets/{switch-control-C87yjmRR.js → switch-control-Djddi9nC.js} +1 -1
  148. package/dist/assets/{toUpper-B0fLjeHy.js → toUpper-BD8ypjwq.js} +1 -1
  149. package/dist/assets/{transfer-DdS4kBmB.js → transfer-DE81ajwE.js} +1 -1
  150. package/dist/assets/{uniqBy-B_wbSsCI.js → uniqBy-BnSlopG4.js} +1 -1
  151. package/dist/assets/{unsubscribe-B_fGdHJO.js → unsubscribe-DRfe4T8a.js} +1 -1
  152. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-BoWcj6lQ.js → use-blocklet-info-for-connect-did-spaces-6A-Z6p1J.js} +1 -1
  153. package/dist/assets/{useAsync-vQc8FFGm.js → useAsync-QgQb6KwU.js} +1 -1
  154. package/dist/assets/{useFormControl-BVamiUiv.js → useFormControl-C1fGK9Rc.js} +1 -1
  155. package/dist/assets/{useLocalStorage-BupvKFw0.js → useLocalStorage-Ba50FLbS.js} +1 -1
  156. package/dist/assets/{useSetState-B4GQTE_e.js → useSetState-GffjrhKI.js} +1 -1
  157. package/dist/assets/{useSlot-BO5miOj3.js → useSlot-fHevRUkf.js} +1 -1
  158. package/dist/assets/{user-center-C0G3ba3x.js → user-center-i4kFtCbT.js} +1 -1
  159. package/dist/assets/{user-sessions-CV5jkPWE.js → user-sessions-IlcyV7kJ.js} +1 -1
  160. package/dist/assets/{util-Cn17RU6M.js → util-DPyJsqCR.js} +1 -1
  161. package/dist/assets/{wrap-locale-CIiBTX7X.js → wrap-locale-uy_hreR6.js} +1 -1
  162. package/dist/index.html +1 -1
  163. package/dist/service-worker.js +1 -1
  164. package/package.json +24 -24
  165. package/dist/assets/add-resource-QkjPtdbT.js +0 -1
  166. package/dist/assets/api-Cf224rl9.js +0 -1
  167. package/dist/assets/localization-CY8nt2G9.js +0 -1
  168. package/dist/assets/publish-resource-C2QIe-xk.js +0 -1
  169. package/dist/assets/session-D1eiA1_r.js +0 -1
@@ -1 +1 @@
1
- import{aB as M,aA as q,aC as S,aD as L,aF as a,r as N,aJ as U,aE as _,j as i,aH as B,aI as E,cY as re}from"./index-ByQRo8Xy.js";import{F as ae}from"./FormControl-FOGVkAoE.js";import{I as le}from"./InputLabel-D30LulZb.js";import{S as ie,a as ne,F as de,O as ce}from"./Select-DeWWNQVN.js";import{u as ue,f as pe}from"./useFormControl-BVamiUiv.js";function me(e){return M("MuiFormHelperText",e)}const fe=q("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),j=fe;var w;const xe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Fe=e=>{const{classes:o,contained:t,size:r,disabled:n,error:d,filled:c,focused:p,required:u}=e,s={root:["root",n&&"disabled",d&&"error",r&&`size${L(r)}`,t&&"contained",p&&"focused",c&&"filled",u&&"required"]};return E(s,me,o)},Te=S("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${L(t.size)}`],t.contained&&o.contained,t.filled&&o.filled]}})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${j.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${j.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),be=N.forwardRef(function(o,t){const r=U({props:o,name:"MuiFormHelperText"}),{children:n,className:d,component:c="p"}=r,p=_(r,xe),u=ue(),s=pe({props:r,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},r,{component:c,contained:s.variant==="filled"||s.variant==="outlined",variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),F=Fe(m);return i.jsx(Te,a({as:c,ownerState:m,className:B(F.root,d),ref:t},p,{children:n===" "?w||(w=i.jsx("span",{className:"notranslate",children:"​"})):n}))}),ve=be;function he(e){return M("MuiTextField",e)}const Ce=q("MuiTextField",["root"]),Me=Ce,ge=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ie={standard:ne,filled:de,outlined:ce},Re=e=>{const{classes:o}=e;return E({root:["root"]},he,o)},ye=S(ae,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),He=N.forwardRef(function(o,t){const r=U({props:o,name:"MuiTextField"}),{autoComplete:n,autoFocus:d=!1,children:c,className:p,color:u="primary",defaultValue:s,disabled:m=!1,error:F=!1,FormHelperTextProps:O,fullWidth:v=!1,helperText:h,id:W,InputLabelProps:T,inputProps:k,InputProps:A,inputRef:V,label:f,maxRows:D,minRows:J,multiline:R=!1,name:Y,onBlur:G,onChange:K,onFocus:Q,placeholder:X,required:y=!1,rows:Z,select:C=!1,SelectProps:g,type:ee,value:H,variant:b="outlined"}=r,oe=_(r,ge),z=a({},r,{autoFocus:d,color:u,disabled:m,error:F,fullWidth:v,multiline:R,required:y,select:C,variant:b}),se=Re(z),x={};b==="outlined"&&(T&&typeof T.shrink<"u"&&(x.notched=T.shrink),x.label=f),C&&((!g||!g.native)&&(x.id=void 0),x["aria-describedby"]=void 0);const l=re(W),I=h&&l?`${l}-helper-text`:void 0,P=f&&l?`${l}-label`:void 0,te=Ie[b],$=i.jsx(te,a({"aria-describedby":I,autoComplete:n,autoFocus:d,defaultValue:s,fullWidth:v,multiline:R,name:Y,rows:Z,maxRows:D,minRows:J,type:ee,value:H,id:l,inputRef:V,onBlur:G,onChange:K,onFocus:Q,placeholder:X,inputProps:k},x,A));return i.jsxs(ye,a({className:B(se.root,p),disabled:m,error:F,fullWidth:v,ref:t,required:y,color:u,variant:b,ownerState:z},oe,{children:[f!=null&&f!==""&&i.jsx(le,a({htmlFor:l,id:P},T,{children:f})),C?i.jsx(ie,a({"aria-describedby":I,id:l,labelId:P,value:H,input:$},g,{children:c})):$,h&&i.jsx(ve,a({id:I},O,{children:h}))]}))}),qe=He;export{ve as F,qe as T,me as a,j as f,he as g,Me as t};
1
+ import{aB as M,aA as q,aC as S,aD as L,aF as a,r as N,aJ as U,aE as _,j as i,aH as B,aI as E,cY as re}from"./index-fG25goIy.js";import{F as ae}from"./FormControl-BGBxSpFa.js";import{I as le}from"./InputLabel-D4si6vrM.js";import{S as ie,a as ne,F as de,O as ce}from"./Select-hmsiR_HX.js";import{u as ue,f as pe}from"./useFormControl-C1fGK9Rc.js";function me(e){return M("MuiFormHelperText",e)}const fe=q("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),j=fe;var w;const xe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Fe=e=>{const{classes:o,contained:t,size:r,disabled:n,error:d,filled:c,focused:p,required:u}=e,s={root:["root",n&&"disabled",d&&"error",r&&`size${L(r)}`,t&&"contained",p&&"focused",c&&"filled",u&&"required"]};return E(s,me,o)},Te=S("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${L(t.size)}`],t.contained&&o.contained,t.filled&&o.filled]}})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${j.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${j.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),be=N.forwardRef(function(o,t){const r=U({props:o,name:"MuiFormHelperText"}),{children:n,className:d,component:c="p"}=r,p=_(r,xe),u=ue(),s=pe({props:r,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},r,{component:c,contained:s.variant==="filled"||s.variant==="outlined",variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),F=Fe(m);return i.jsx(Te,a({as:c,ownerState:m,className:B(F.root,d),ref:t},p,{children:n===" "?w||(w=i.jsx("span",{className:"notranslate",children:"​"})):n}))}),ve=be;function he(e){return M("MuiTextField",e)}const Ce=q("MuiTextField",["root"]),Me=Ce,ge=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ie={standard:ne,filled:de,outlined:ce},Re=e=>{const{classes:o}=e;return E({root:["root"]},he,o)},ye=S(ae,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),He=N.forwardRef(function(o,t){const r=U({props:o,name:"MuiTextField"}),{autoComplete:n,autoFocus:d=!1,children:c,className:p,color:u="primary",defaultValue:s,disabled:m=!1,error:F=!1,FormHelperTextProps:O,fullWidth:v=!1,helperText:h,id:W,InputLabelProps:T,inputProps:k,InputProps:A,inputRef:V,label:f,maxRows:D,minRows:J,multiline:R=!1,name:Y,onBlur:G,onChange:K,onFocus:Q,placeholder:X,required:y=!1,rows:Z,select:C=!1,SelectProps:g,type:ee,value:H,variant:b="outlined"}=r,oe=_(r,ge),z=a({},r,{autoFocus:d,color:u,disabled:m,error:F,fullWidth:v,multiline:R,required:y,select:C,variant:b}),se=Re(z),x={};b==="outlined"&&(T&&typeof T.shrink<"u"&&(x.notched=T.shrink),x.label=f),C&&((!g||!g.native)&&(x.id=void 0),x["aria-describedby"]=void 0);const l=re(W),I=h&&l?`${l}-helper-text`:void 0,P=f&&l?`${l}-label`:void 0,te=Ie[b],$=i.jsx(te,a({"aria-describedby":I,autoComplete:n,autoFocus:d,defaultValue:s,fullWidth:v,multiline:R,name:Y,rows:Z,maxRows:D,minRows:J,type:ee,value:H,id:l,inputRef:V,onBlur:G,onChange:K,onFocus:Q,placeholder:X,inputProps:k},x,A));return i.jsxs(ye,a({className:B(se.root,p),disabled:m,error:F,fullWidth:v,ref:t,required:y,color:u,variant:b,ownerState:z},oe,{children:[f!=null&&f!==""&&i.jsx(le,a({htmlFor:l,id:P},T,{children:f})),C?i.jsx(ie,a({"aria-describedby":I,id:l,labelId:P,value:H,input:$},g,{children:c})):$,h&&i.jsx(ve,a({id:I},O,{children:h}))]}))}),qe=He;export{ve as F,qe as T,me as a,j as f,he as g,Me as t};
@@ -1 +1 @@
1
- import{aB as d,aA as g,aC as b,aF as e,r as m,aJ as v,aE as T,j as x,aH as f,aI as C}from"./index-ByQRo8Xy.js";function R(s){return d("MuiToolbar",s)}const G=g("MuiToolbar",["root","gutters","regular","dense"]),L=G,j=["className","component","disableGutters","variant"],y=s=>{const{classes:a,disableGutters:t,variant:o}=s;return C({root:["root",!t&&"gutters",o]},R,a)},M=b("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(s,a)=>{const{ownerState:t}=s;return[a.root,!t.disableGutters&&a.gutters,a[t.variant]]}})(({theme:s,ownerState:a})=>e({position:"relative",display:"flex",alignItems:"center"},!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}},a.variant==="dense"&&{minHeight:48}),({theme:s,ownerState:a})=>a.variant==="regular"&&s.mixins.toolbar),U=m.forwardRef(function(a,t){const o=v({props:a,name:"MuiToolbar"}),{className:r,component:n="div",disableGutters:l=!1,variant:c="regular"}=o,u=T(o,j),i=e({},o,{component:n,disableGutters:l,variant:c}),p=y(i);return x.jsx(M,e({as:n,className:f(p.root,r),ref:t,ownerState:i},u))}),N=U;export{N as T,R as g,L as t};
1
+ import{aB as d,aA as g,aC as b,aF as e,r as m,aJ as v,aE as T,j as x,aH as f,aI as C}from"./index-fG25goIy.js";function R(s){return d("MuiToolbar",s)}const G=g("MuiToolbar",["root","gutters","regular","dense"]),L=G,j=["className","component","disableGutters","variant"],y=s=>{const{classes:a,disableGutters:t,variant:o}=s;return C({root:["root",!t&&"gutters",o]},R,a)},M=b("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(s,a)=>{const{ownerState:t}=s;return[a.root,!t.disableGutters&&a.gutters,a[t.variant]]}})(({theme:s,ownerState:a})=>e({position:"relative",display:"flex",alignItems:"center"},!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}},a.variant==="dense"&&{minHeight:48}),({theme:s,ownerState:a})=>a.variant==="regular"&&s.mixins.toolbar),U=m.forwardRef(function(a,t){const o=v({props:a,name:"MuiToolbar"}),{className:r,component:n="div",disableGutters:l=!1,variant:c="regular"}=o,u=T(o,j),i=e({},o,{component:n,disableGutters:l,variant:c}),p=y(i);return x.jsx(M,e({as:n,className:f(p.root,r),ref:t,ownerState:i},u))}),N=U;export{N as T,R as g,L as t};
@@ -1 +1 @@
1
- import{W as t,X as r,j as a}from"./index-ByQRo8Xy.js";var e={},i=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,v=i(t()),o=a;u=e.default=(0,v.default)((0,o.jsx)("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList");export{u as d};
1
+ import{W as t,X as r,j as a}from"./index-fG25goIy.js";var e={},i=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,v=i(t()),o=a;u=e.default=(0,v.default)((0,o.jsx)("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList");export{u as d};
@@ -1,4 +1,4 @@
1
- import{r as c,u as g,j as e,a as L,ay as B,P as y,bm as R,af as I,fH as N,B as _,x as f,o as h,Y as E,aV as z}from"./index-ByQRo8Xy.js";import{P as F}from"./page-header-H2fMhHk4.js";import{A as H}from"./config-DMnGG-GJ.js";import{S as W}from"./layout-DKfygYsQ.js";import{S as O}from"./step-actions-Do8z_g9W.js";import{S as V}from"./button-CI-oFf7d.js";import{d as $}from"./InfoOutlined-BFaZfobd.js";import{F as q}from"./FormControl-FOGVkAoE.js";import{R as G,a as Y}from"./RadioGroup-DeoyugEj.js";import{F as x,C as D}from"./FormControlLabel-C2ynx6-R.js";import"./content-layout-D8kIZCKQ.js";import"./useFormControl-BVamiUiv.js";import"./FormGroup-C8bxvRCn.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:y.any.isRequired};const J=c.memo(b);function j({onNext:s}){const i=R(),{t:r,locale:m}=g(),[a,o]=c.useState(!1),[p,d]=c.useState(""),[C,S]=c.useState(!1),{blocklet:n,actions:u,getPublicInstance:v}=I();c.useEffect(()=>{d(N(n)),S(v(n))},[n]);const A=async t=>{try{o(!0),await z(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(q,{component:"fieldset",children:e.jsx(G,{name:"inherit",value:p,onChange:P,children:H.map(t=>e.jsxs("div",{style:{marginBottom:16},children:[e.jsx(x,{value:t.value,control:e.jsx(Y,{color:"primary"}),label:e.jsxs("span",{children:[e.jsx(t.icon,{style:k}),t.title[m]]})}),e.jsxs(_,{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:C,disabled:a})})]})]},t.value))})}),e.jsx(O,{mt:8,disabled:a,blocklet:n,onStartNow:()=>s("complete"),children:e.jsx(V,{loading:a,variant:"contained",disabled:a,onClick:()=>s(),children:r("setup.continue")})})]})}j.propTypes={onNext:y.func};j.defaultProps={onNext:()=>{}};const K=E(W)`
1
+ import{r as c,u as g,j as e,a as L,ay as B,P as y,bm as R,af as I,fH as N,B as _,x as f,o as h,Y as E,aV as z}from"./index-fG25goIy.js";import{P as F}from"./page-header-B22lXwng.js";import{A as H}from"./config-DW9gTUAf.js";import{S as W}from"./layout-h5rjnmBP.js";import{S as O}from"./step-actions-CSDiPZmH.js";import{S as V}from"./button-pUiVMawE.js";import{d as $}from"./InfoOutlined-D1P8n7sX.js";import{F as q}from"./FormControl-BGBxSpFa.js";import{R as G,a as Y}from"./RadioGroup-DiqmtEFh.js";import{F as x,C as D}from"./FormControlLabel-D8u6upQ1.js";import"./content-layout-D4_5Ol4a.js";import"./useFormControl-C1fGK9Rc.js";import"./FormGroup-B459wuGu.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:y.any.isRequired};const J=c.memo(b);function j({onNext:s}){const i=R(),{t:r,locale:m}=g(),[a,o]=c.useState(!1),[p,d]=c.useState(""),[C,S]=c.useState(!1),{blocklet:n,actions:u,getPublicInstance:v}=I();c.useEffect(()=>{d(N(n)),S(v(n))},[n]);const A=async t=>{try{o(!0),await z(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(q,{component:"fieldset",children:e.jsx(G,{name:"inherit",value:p,onChange:P,children:H.map(t=>e.jsxs("div",{style:{marginBottom:16},children:[e.jsx(x,{value:t.value,control:e.jsx(Y,{color:"primary"}),label:e.jsxs("span",{children:[e.jsx(t.icon,{style:k}),t.title[m]]})}),e.jsxs(_,{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:C,disabled:a})})]})]},t.value))})}),e.jsx(O,{mt:8,disabled:a,blocklet:n,onStartNow:()=>s("complete"),children:e.jsx(V,{loading:a,variant:"contained",disabled:a,onClick:()=>s(),children:r("setup.continue")})})]})}j.propTypes={onNext:y.func};j.defaultProps={onNext:()=>{}};const K=E(W)`
2
2
  height: 100%;
3
3
  overflow-y: auto;
4
4
  .header {
@@ -1 +1 @@
1
- import{r,j as e,ay as E,aQ as P,aS as k,P as i,Y as C}from"./index-ByQRo8Xy.js";import{d as I}from"./MoreHoriz-BUMFUhwJ.js";import{L as v,a as T}from"./ListItemText-e5ekg1wb.js";function c({actions:l,size:p,...u}){const[n,o]=r.useState(null),m=!!n,d=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}o(t.currentTarget)},a=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}o(null)};return e.jsxs(b,{...u,children:[e.jsx(E,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:d,size:p,children:e.jsx(I,{})}),e.jsx(P,{id:"actions-menu","data-cy":"actions-menu",anchorEl:n,keepMounted:!0,open:m,onClose:a,slotProps:{paper:{}},children:l.map((t,s)=>{if(typeof t=="function")return t({close:a});const{icon:y,text:f,onClick:h,disabled:x=!1,...j}=t;return r.createElement(k,{...j,disabled:x,dense:!0,onClick:async g=>{await h(g),a()},key:s,"data-cy":`actions-menu-${s}`},e.jsx(v,{style:{minWidth:24,marginRight:8},children:y}),e.jsx(T,{primary:f}))})})]})}c.propTypes={actions:i.array,size:i.oneOf(["small","medium","large"])};c.defaultProps={actions:[],size:"small"};const b=C.div``;export{c as A};
1
+ import{r,j as e,ay as E,aQ as P,aS as k,P as i,Y as C}from"./index-fG25goIy.js";import{d as I}from"./MoreHoriz-DtO97ZT3.js";import{L as v,a as T}from"./ListItemText-CVS1G1s8.js";function c({actions:l,size:p,...u}){const[n,o]=r.useState(null),m=!!n,d=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}o(t.currentTarget)},a=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}o(null)};return e.jsxs(b,{...u,children:[e.jsx(E,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:d,size:p,children:e.jsx(I,{})}),e.jsx(P,{id:"actions-menu","data-cy":"actions-menu",anchorEl:n,keepMounted:!0,open:m,onClose:a,slotProps:{paper:{}},children:l.map((t,s)=>{if(typeof t=="function")return t({close:a});const{icon:y,text:f,onClick:h,disabled:x=!1,...j}=t;return r.createElement(k,{...j,disabled:x,dense:!0,onClick:async g=>{await h(g),a()},key:s,"data-cy":`actions-menu-${s}`},e.jsx(v,{style:{minWidth:24,marginRight:8},children:y}),e.jsx(T,{primary:f}))})})]})}c.propTypes={actions:i.array,size:i.oneOf(["small","medium","large"])};c.defaultProps={actions:[],size:"small"};const b=C.div``;export{c as A};
@@ -1,4 +1,4 @@
1
- import{aB as ho,aA as ko,aC as yo,r as y,aJ as bo,aE as vo,aF as Vn,j as c,aH as go,aI as So,U as Eo,ez as Ao,eA as zi,R as Xe,N as Ki,eB as wo,eC as Do,h as a0,bZ as Bo,eD as o0,bz as s0,x as Hi,b8 as qt,eE as On,ey as Go,bA as Po,P as x,c1 as ee,W as qe,X as Ue,a0 as ce,S as ve,ap as P0,Y as se,a6 as kt,cp as Ae,u as ge,Z as Ut,B as N,bB as S0,aL as zt,w as jo,e as Vo,ay as Oo,eF as Co,T as be,F as Wi,aZ as Fo,bn as To,c0 as Cn,eG as Io,b_ as pr,c as j0,eH as _o,bX as $o,o as Pr,eI as Ro,aY as jr,C as Mo,cw as No,eJ as Qi,aS as Yi,eK as Lo,eL as qo,au as Fn,bm as Vr,ad as Xi,a7 as Ji,M as Uo,eM as zo,b as Zi,cj as Ko,da as Ho,bt as ea,dp as fr,ci as Wo,bp as Qo,dq as Yo,ae as Xo,bq as Jo,bi as Zo,d9 as es,f as ts,eN as rs,eO as ns,ab as is,A as as,eP as os,eQ as ta,bx as ss,a8 as Ve,cq as ls,eR as cs,eS as us,eT as ms,eU as ps,eV as fs,eW as ds,eX as er,eY as Tn,eZ as xs}from"./index-ByQRo8Xy.js";import{D as hs,A as ra,f as na}from"./index-pDpS4wtg.js";import{l as ks}from"./lottie-AQzixJ8T.js";import{u as ys,C as bs,S as vs,a as gs,L as Ss}from"./config-space-D1Y6KkQv.js";import{L as In}from"./launch-result-message-BVtC_IiO.js";import{P as ia}from"./page-header-H2fMhHk4.js";import{u as aa}from"./uniqBy-B_wbSsCI.js";import{R as tr}from"./logo-uploader-Qe4fSMre.js";import{S as Es}from"./index-DLbZ_JZr.js";import{s as oa,h as As,w as ws,f as Ds,a as Bs,b as Gs,c as Ps,S as js,d as Vs}from"./index-CJsfi4dA.js";import{T as Os,a as Cs,i as Fs,d as _n}from"./TableRow-M2pFTiJl.js";import{F as Ts,C as Is}from"./FormControlLabel-C2ynx6-R.js";import{I as $n}from"./index-Bggpk5vn.js";import{u as _s}from"./session-D1eiA1_r.js";import{W as $s}from"./did-address-D8Z_pYLU.js";import{T as Or}from"./TextField-CLOKo8rr.js";import{S as Rs,a as Ms,b as Ns}from"./Stepper-ComI9dBA.js";import{a as Rn}from"./api-Cf224rl9.js";import{m as Ls,S as qs,A as Us}from"./item-glU9YOhe.js";import{L as zs}from"./MoreVert-BlfI-m1v.js";import{L as Ks,a as Hs}from"./ListItemText-e5ekg1wb.js";import{v as Ws}from"./util-Cn17RU6M.js";import{u as sa,C as Qs,D as Ys,a as Xs}from"./connect-to-CQCEiCCI.js";import{C as Js}from"./content-layout-D8kIZCKQ.js";import{d as Zs}from"./ArrowDropDown-BdjbdLb6.js";import{_ as el}from"./useLocalStorage-BupvKFw0.js";import{E as Cr}from"./fallback-BMS2ZyNw.js";import{E as tl}from"./index-CuZN5rgD.js";import{d as rl}from"./Search-BVORi6f0.js";import{S as nl}from"./index-Dnjq7L3Z.js";import{G as la}from"./Grid-yCxJQYxc.js";import{O as il}from"./Select-DeWWNQVN.js";import{H as Mn}from"./Hidden-BUue-5gv.js";import{M as Nn}from"./InputAdornment-DUA05h7f.js";import{y as al,g as ol,N as sl}from"./preact.module-B1z5cdvs.js";import{E as ll}from"./Link-BXzMp1xg.js";function cl(e){return ho("MuiTableContainer",e)}ko("MuiTableContainer",["root"]);const ul=["className","component"],ml=e=>{const{classes:t}=e;return So({root:["root"]},cl,t)},pl=yo("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),fl=y.forwardRef(function(t,r){const n=bo({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=vo(n,ul),s=Vn({},n,{component:a}),l=ml(s);return c.jsx(pl,Vn({ref:r,as:a,className:go(l.root,i),ownerState:s},o))}),dl=fl;function xl(e,t,r){r===void 0&&(r={});var n=Eo(t);Ao(function(){var i=zi(r.target,window);if(i!=null&&i.addEventListener){var a=function(o){return n.current(o)};return i.addEventListener(e,a,{capture:r.capture,once:r.once,passive:r.passive}),function(){i.removeEventListener(e,a,{capture:r.capture})}}},[e,r.capture,r.once,r.passive],r.target)}var hl=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},kl=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},yl=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},bl=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,i=t.threshold,a=i===void 0?100:i,o=t.reloadDeps,s=o===void 0?[]:o,l=t.manual,u=t.onBefore,p=t.onSuccess,m=t.onError,f=t.onFinally,k=Xe(y.useState(),2),d=k[0],h=k[1],b=Xe(y.useState(!1),2),v=b[0],E=b[1],g=y.useMemo(function(){return n?n(d):!1},[d]),S=Ki(function(M){return wo(void 0,void 0,void 0,function(){var H,T,I;return Do(this,function(j){switch(j.label){case 0:return[4,e(M)];case 1:return H=j.sent(),h(M?s0(s0({},H),{list:o0(o0([],Xe((I=M.list)!==null&&I!==void 0?I:[]),!1),Xe(H.list),!1)}):s0(s0({},H),{list:o0([],Xe((T=H.list)!==null&&T!==void 0?T:[]),!1)})),[2,H]}})})},{manual:l,onFinally:function(M,H,T){E(!1),f==null||f(H,T)},onBefore:function(){return u==null?void 0:u()},onSuccess:function(M){setTimeout(function(){K()}),p==null||p(M)},onError:function(M){return m==null?void 0:m(M)}}),A=S.loading,B=S.error,C=S.run,P=S.runAsync,w=S.cancel,D=a0(function(){g||(E(!0),C(d))}),O=a0(function(){return g?Promise.reject():(E(!0),P(d))}),U=function(){return E(!1),C()},G=function(){return E(!1),P()},K=function(){var M=zi(r);if(M){M=M===document?document.documentElement:M;var H=hl(M),T=kl(M),I=yl(M);T-H<=I+a&&D()}};return xl("scroll",function(){A||v||K()},{target:r}),Bo(function(){C()},o0([],Xe(s),!1)),{data:d,loading:!v&&A,error:B,loadingMore:v,noMore:g,loadMore:D,loadMoreAsync:O,reload:a0(U),reloadAsync:a0(G),mutate:h,cancel:w}};const vl=bl,Zx="blocklet-add-component-registry",e2="server-add-registry",t2=e=>`resource-${e}-add-registry`,{NODE_MODES:Ln}=Hi,gl=({mode:e,previousMode:t}={})=>e===Ln.SERVERLESS||t===Ln.SERVERLESS;var ca={isInServerlessMode:gl},Sl=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,i,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],r.get(i[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(t[i]!==r[i])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(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;i--!==0;){var o=a[i];if(!(o==="_owner"&&t.$$typeof)&&!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r};const qn=qt(Sl);var El=Al;function at(e){return e instanceof On?On.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function Al(e){if(e=e||{},e.circles)return wl(e);return e.proto?n:r;function t(i,a){for(var o=Object.keys(i),s=new Array(o.length),l=0;l<o.length;l++){var u=o[l],p=i[u];typeof p!="object"||p===null?s[u]=p:p instanceof Date?s[u]=new Date(p):ArrayBuffer.isView(p)?s[u]=at(p):s[u]=a(p)}return s}function r(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,r);if(i instanceof Map)return new Map(t(Array.from(i),r));if(i instanceof Set)return new Set(t(Array.from(i),r));var a={};for(var o in i)if(Object.hasOwnProperty.call(i,o)!==!1){var s=i[o];typeof s!="object"||s===null?a[o]=s:s instanceof Date?a[o]=new Date(s):s instanceof Map?a[o]=new Map(t(Array.from(s),r)):s instanceof Set?a[o]=new Set(t(Array.from(s),r)):ArrayBuffer.isView(s)?a[o]=at(s):a[o]=r(s)}return a}function n(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,n);if(i instanceof Map)return new Map(t(Array.from(i),n));if(i instanceof Set)return new Set(t(Array.from(i),n));var a={};for(var o in i){var s=i[o];typeof s!="object"||s===null?a[o]=s:s instanceof Date?a[o]=new Date(s):s instanceof Map?a[o]=new Map(t(Array.from(s),n)):s instanceof Set?a[o]=new Set(t(Array.from(s),n)):ArrayBuffer.isView(s)?a[o]=at(s):a[o]=n(s)}return a}}function wl(e){var t=[],r=[];return e.proto?a:i;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]=at(f);else{var k=t.indexOf(f);k!==-1?u[m]=r[k]:u[m]=s(f)}}return u}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)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),i));else if(u instanceof Set)s[l]=new Set(n(Array.from(u),i));else if(ArrayBuffer.isView(u))s[l]=at(u);else{var p=t.indexOf(u);p!==-1?s[l]=r[p]:s[l]=i(u)}}return t.pop(),r.pop(),s}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){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]=at(u);else{var p=t.indexOf(u);p!==-1?s[l]=r[p]:s[l]=a(u)}}return t.pop(),r.pop(),s}}var Dl=El();const Un=qt(Dl);function dr(){return dr=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},dr.apply(this,arguments)}function Bl(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Fr(e,t){return t={exports:{}},e(t,t.exports),t.exports}/** @license React v16.13.1
1
+ import{aB as ho,aA as ko,aC as yo,r as y,aJ as bo,aE as vo,aF as Vn,j as c,aH as go,aI as So,U as Eo,ez as Ao,eA as zi,R as Xe,N as Ki,eB as wo,eC as Do,h as a0,bZ as Bo,eD as o0,bz as s0,x as Hi,b8 as qt,eE as On,ey as Go,bA as Po,P as x,c1 as ee,W as qe,X as Ue,a0 as ce,S as ve,ap as P0,Y as se,a6 as kt,cp as Ae,u as ge,Z as Ut,B as N,bB as S0,aL as zt,w as jo,e as Vo,ay as Oo,eF as Co,T as be,F as Wi,aZ as Fo,bn as To,c0 as Cn,eG as Io,b_ as pr,c as j0,eH as _o,bX as $o,o as Pr,eI as Ro,aY as jr,C as Mo,cw as No,eJ as Qi,aS as Yi,eK as Lo,eL as qo,au as Fn,bm as Vr,ad as Xi,a7 as Ji,M as Uo,eM as zo,b as Zi,cj as Ko,da as Ho,bt as ea,dp as fr,ci as Wo,bp as Qo,dq as Yo,ae as Xo,bq as Jo,bi as Zo,d9 as es,f as ts,eN as rs,eO as ns,ab as is,A as as,eP as os,eQ as ta,bx as ss,a8 as Ve,cq as ls,eR as cs,eS as us,eT as ms,eU as ps,eV as fs,eW as ds,eX as er,eY as Tn,eZ as xs}from"./index-fG25goIy.js";import{D as hs,A as ra,f as na}from"./index-CdqltrPb.js";import{l as ks}from"./lottie-DRoeX_V2.js";import{u as ys,C as bs,S as vs,a as gs,L as Ss}from"./config-space-B6jPcEh3.js";import{L as In}from"./launch-result-message-D5ZsOjgY.js";import{P as ia}from"./page-header-B22lXwng.js";import{u as aa}from"./uniqBy-BnSlopG4.js";import{R as tr}from"./logo-uploader-DZbF5KOt.js";import{S as Es}from"./index-B_hqIPlg.js";import{s as oa,h as As,w as ws,f as Ds,a as Bs,b as Gs,c as Ps,S as js,d as Vs}from"./index-CPMqUyRS.js";import{T as Os,a as Cs,i as Fs,d as _n}from"./TableRow-DSPkF0eX.js";import{F as Ts,C as Is}from"./FormControlLabel-D8u6upQ1.js";import{I as $n}from"./index-C5w04FB_.js";import{u as _s}from"./session-BRLUzB_V.js";import{W as $s}from"./did-address-BKaFzmkz.js";import{T as Or}from"./TextField-CebHGT3J.js";import{S as Rs,a as Ms,b as Ns}from"./Stepper-BXkIeY17.js";import{a as Rn}from"./api-sAuPzOF6.js";import{m as Ls,S as qs,A as Us}from"./item-bwoWUlt2.js";import{L as zs}from"./MoreVert-BbEIKsYw.js";import{L as Ks,a as Hs}from"./ListItemText-CVS1G1s8.js";import{v as Ws}from"./util-DPyJsqCR.js";import{u as sa,C as Qs,D as Ys,a as Xs}from"./connect-to-BFFR-hu4.js";import{C as Js}from"./content-layout-D4_5Ol4a.js";import{d as Zs}from"./ArrowDropDown-eEIvnybw.js";import{_ as el}from"./useLocalStorage-Ba50FLbS.js";import{E as Cr}from"./fallback-BrnkKdFy.js";import{E as tl}from"./index-DmzTP_a0.js";import{d as rl}from"./Search-Cjqsb3on.js";import{S as nl}from"./index-DMLGvPCM.js";import{G as la}from"./Grid-D5J6kvn0.js";import{O as il}from"./Select-hmsiR_HX.js";import{H as Mn}from"./Hidden-Bq2dXlPY.js";import{M as Nn}from"./InputAdornment-jSW0lrBI.js";import{y as al,g as ol,N as sl}from"./preact.module-B1z5cdvs.js";import{E as ll}from"./Link-DpjXpC6x.js";function cl(e){return ho("MuiTableContainer",e)}ko("MuiTableContainer",["root"]);const ul=["className","component"],ml=e=>{const{classes:t}=e;return So({root:["root"]},cl,t)},pl=yo("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),fl=y.forwardRef(function(t,r){const n=bo({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=vo(n,ul),s=Vn({},n,{component:a}),l=ml(s);return c.jsx(pl,Vn({ref:r,as:a,className:go(l.root,i),ownerState:s},o))}),dl=fl;function xl(e,t,r){r===void 0&&(r={});var n=Eo(t);Ao(function(){var i=zi(r.target,window);if(i!=null&&i.addEventListener){var a=function(o){return n.current(o)};return i.addEventListener(e,a,{capture:r.capture,once:r.once,passive:r.passive}),function(){i.removeEventListener(e,a,{capture:r.capture})}}},[e,r.capture,r.once,r.passive],r.target)}var hl=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},kl=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},yl=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},bl=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,i=t.threshold,a=i===void 0?100:i,o=t.reloadDeps,s=o===void 0?[]:o,l=t.manual,u=t.onBefore,p=t.onSuccess,m=t.onError,f=t.onFinally,k=Xe(y.useState(),2),d=k[0],h=k[1],b=Xe(y.useState(!1),2),v=b[0],E=b[1],g=y.useMemo(function(){return n?n(d):!1},[d]),S=Ki(function(M){return wo(void 0,void 0,void 0,function(){var H,T,I;return Do(this,function(j){switch(j.label){case 0:return[4,e(M)];case 1:return H=j.sent(),h(M?s0(s0({},H),{list:o0(o0([],Xe((I=M.list)!==null&&I!==void 0?I:[]),!1),Xe(H.list),!1)}):s0(s0({},H),{list:o0([],Xe((T=H.list)!==null&&T!==void 0?T:[]),!1)})),[2,H]}})})},{manual:l,onFinally:function(M,H,T){E(!1),f==null||f(H,T)},onBefore:function(){return u==null?void 0:u()},onSuccess:function(M){setTimeout(function(){K()}),p==null||p(M)},onError:function(M){return m==null?void 0:m(M)}}),A=S.loading,B=S.error,C=S.run,P=S.runAsync,w=S.cancel,D=a0(function(){g||(E(!0),C(d))}),O=a0(function(){return g?Promise.reject():(E(!0),P(d))}),U=function(){return E(!1),C()},G=function(){return E(!1),P()},K=function(){var M=zi(r);if(M){M=M===document?document.documentElement:M;var H=hl(M),T=kl(M),I=yl(M);T-H<=I+a&&D()}};return xl("scroll",function(){A||v||K()},{target:r}),Bo(function(){C()},o0([],Xe(s),!1)),{data:d,loading:!v&&A,error:B,loadingMore:v,noMore:g,loadMore:D,loadMoreAsync:O,reload:a0(U),reloadAsync:a0(G),mutate:h,cancel:w}};const vl=bl,Zx="blocklet-add-component-registry",e2="server-add-registry",t2=e=>`resource-${e}-add-registry`,{NODE_MODES:Ln}=Hi,gl=({mode:e,previousMode:t}={})=>e===Ln.SERVERLESS||t===Ln.SERVERLESS;var ca={isInServerlessMode:gl},Sl=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,i,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],r.get(i[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(t[i]!==r[i])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(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;i--!==0;){var o=a[i];if(!(o==="_owner"&&t.$$typeof)&&!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r};const qn=qt(Sl);var El=Al;function at(e){return e instanceof On?On.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function Al(e){if(e=e||{},e.circles)return wl(e);return e.proto?n:r;function t(i,a){for(var o=Object.keys(i),s=new Array(o.length),l=0;l<o.length;l++){var u=o[l],p=i[u];typeof p!="object"||p===null?s[u]=p:p instanceof Date?s[u]=new Date(p):ArrayBuffer.isView(p)?s[u]=at(p):s[u]=a(p)}return s}function r(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,r);if(i instanceof Map)return new Map(t(Array.from(i),r));if(i instanceof Set)return new Set(t(Array.from(i),r));var a={};for(var o in i)if(Object.hasOwnProperty.call(i,o)!==!1){var s=i[o];typeof s!="object"||s===null?a[o]=s:s instanceof Date?a[o]=new Date(s):s instanceof Map?a[o]=new Map(t(Array.from(s),r)):s instanceof Set?a[o]=new Set(t(Array.from(s),r)):ArrayBuffer.isView(s)?a[o]=at(s):a[o]=r(s)}return a}function n(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,n);if(i instanceof Map)return new Map(t(Array.from(i),n));if(i instanceof Set)return new Set(t(Array.from(i),n));var a={};for(var o in i){var s=i[o];typeof s!="object"||s===null?a[o]=s:s instanceof Date?a[o]=new Date(s):s instanceof Map?a[o]=new Map(t(Array.from(s),n)):s instanceof Set?a[o]=new Set(t(Array.from(s),n)):ArrayBuffer.isView(s)?a[o]=at(s):a[o]=n(s)}return a}}function wl(e){var t=[],r=[];return e.proto?a:i;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]=at(f);else{var k=t.indexOf(f);k!==-1?u[m]=r[k]:u[m]=s(f)}}return u}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)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),i));else if(u instanceof Set)s[l]=new Set(n(Array.from(u),i));else if(ArrayBuffer.isView(u))s[l]=at(u);else{var p=t.indexOf(u);p!==-1?s[l]=r[p]:s[l]=i(u)}}return t.pop(),r.pop(),s}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){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]=at(u);else{var p=t.indexOf(u);p!==-1?s[l]=r[p]:s[l]=a(u)}}return t.pop(),r.pop(),s}}var Dl=El();const Un=qt(Dl);function dr(){return dr=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},dr.apply(this,arguments)}function Bl(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Fr(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.
@@ -0,0 +1 @@
1
+ import{u as E,af as P,w as R,bx as j,Z as D,r as m,c as S,b_ as W,bw as O,j as u,ap as _}from"./index-fG25goIy.js";import{A as k,S as A}from"./add-component-core-Bzv7N-Un.js";import"./index-CdqltrPb.js";import"./lottie-DRoeX_V2.js";import"./config-space-B6jPcEh3.js";import"./Skeleton-BuWYKZPB.js";import"./Hidden-Bq2dXlPY.js";import"./spaces-XGQ-YXCR.js";import"./index-ZsDQ0ZLD.js";import"./index-D-XBJ_hS.js";import"./api-sAuPzOF6.js";import"./launch-result-message-D5ZsOjgY.js";import"./page-header-B22lXwng.js";import"./uniqBy-BnSlopG4.js";import"./logo-uploader-DZbF5KOt.js";import"./index-DwHEm9HC.js";import"./index-B_hqIPlg.js";import"./EditIcon-_ZF4_H7O.js";import"./Done-DMoT8ohA.js";import"./Google-BTJavqUA.js";import"./TextField-CebHGT3J.js";import"./FormControl-BGBxSpFa.js";import"./useFormControl-C1fGK9Rc.js";import"./InputLabel-D4si6vrM.js";import"./Select-hmsiR_HX.js";import"./index-CPMqUyRS.js";import"./TableRow-DSPkF0eX.js";import"./FormControlLabel-D8u6upQ1.js";import"./index-C5w04FB_.js";import"./session-BRLUzB_V.js";import"./did-address-BKaFzmkz.js";import"./Link-DpjXpC6x.js";import"./Stepper-BXkIeY17.js";import"./item-bwoWUlt2.js";import"./Add-CkUvZ8ne.js";import"./MoreVert-BbEIKsYw.js";import"./Launch-SkQPO1Cm.js";import"./DeleteOutline-DeZPaQ1S.js";import"./click-to-copy-BepxNu11.js";import"./confirm-Cv8oxTtx.js";import"./Alert-DSAK-6uk.js";import"./useSlot-fHevRUkf.js";import"./ButtonGroup-CbL72-oE.js";import"./jss-plugin-props-sort.esm-w0rgdWJs.js";import"./Grid-D5J6kvn0.js";import"./ListItemText-CVS1G1s8.js";import"./util-DPyJsqCR.js";import"./connect-to-BFFR-hu4.js";import"./use-blocklet-info-for-connect-did-spaces-6A-Z6p1J.js";import"./CloseOutlined-Cpeesg_y.js";import"./index-BfeaSLaW.js";import"./ExpandMore-BLVLjrZd.js";import"./content-layout-D4_5Ol4a.js";import"./ArrowDropDown-eEIvnybw.js";import"./useLocalStorage-Ba50FLbS.js";import"./fallback-BrnkKdFy.js";import"./index-DmzTP_a0.js";import"./Search-Cjqsb3on.js";import"./index-DMLGvPCM.js";import"./InputAdornment-jSW0lrBI.js";import"./preact.module-B1z5cdvs.js";function vt(){var l;const{t:d}=E(),{blocklet:r}=P(),[h]=R(),{componentDid:p}=j(),f=D(t=>t.breakpoints.down("md")),w=h.get("mode")==="dialog",e=(l=r==null?void 0:r.meta)==null?void 0:l.did,i=new URL(window.location.href),s=(i.searchParams.get("store")||"").split(",").filter(Boolean).map(t=>{try{return new URL(t.startsWith("http")?t:`https://${t}`).origin}catch(o){return console.error(o),null}}).filter(Boolean),[g,C]=m.useState(s.map(t=>({url:t,name:t.replace("https://","")}))),a=i.searchParams.get("resourceType")||"",n=i.searchParams.get("resourceDid")||p;m.useEffect(()=>{(async()=>{try{const t=await Promise.all(s.map(async o=>{const x=S(o,"/api/store.json"),{data:y}=await W.get(x);return{url:o,name:y.name}}));C(t||[])}catch(t){console.error(t)}})()},[s.join(",")]);const b=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:p},"*")};m.useEffect(()=>{const t=O();return e&&t.connect(),()=>{e&&t.isConnected()&&t.disconnect()}},[e]);const c=({inDialog:t=!0}={})=>u.jsx(k,{stores:g,resourceType:a,resourceDid:n,mode:"embed",inDialog:t,storageKey:A(`${a}+${n}`)});return w?u.jsx(_,{className:"resource-dialog",title:d("blocklet.publish.addResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:f?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:(t,o)=>{o!=="backdropClick"&&b()},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:c()}):c({inDialog:!1})}export{vt as default};
@@ -1,4 +1,4 @@
1
- import{r as l,j as a,$,ax as D,ay as R,az as E,P as n,Y as H}from"./index-ByQRo8Xy.js";import{L as A}from"./selector-CqvONJVH.js";var d={};Object.defineProperty(d,"__esModule",{value:!0});var x=d.default=void 0;L(l);var b=a;function L(e){return e&&e.__esModule?e:{default:e}}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,o)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(o){N(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function N(e,t,r){return t=B(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B(e){var t=T(e,"string");return typeof t=="symbol"?t:String(t)}function T(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var f=function(t){return(0,b.jsx)("svg",w(w({},t),{},{children:(0,b.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"})}))};f.defaultProps={width:"21",height:"20",viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg"};f.displayName="globe";x=d.default=f;var m={};Object.defineProperty(m,"__esModule",{value:!0});var j=m.default=void 0;k(l);var p=a;function k(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,o)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(o){q(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function q(e,t,r){return t=I(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(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 r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var v=function(t){return(0,p.jsxs)("svg",O(O({},t),{},{children:[(0,p.jsx)("path",{d:"M9.928 13.133a.981.981 0 0 0-.678.252.79.79 0 0 0-.281.61c0 .27.094.482.283.636.19.154.41.231.663.231.257 0 .48-.076.673-.228.19-.153.287-.365.287-.639a.796.796 0 0 0-.275-.61.958.958 0 0 0-.672-.252zM12.633 7.2a2.526 2.526 0 0 0-1.035-.88c-.441-.212-.955-.32-1.528-.32-.617 0-1.166.129-1.63.383-.467.255-.826.582-1.07.972-.245.392-.37.786-.37 1.172 0 .205.086.397.254.57.169.174.38.262.625.262.419 0 .705-.246.85-.729.132-.399.296-.703.485-.905.177-.19.465-.286.856-.286.336 0 .602.095.813.29.208.191.309.42.309.698a.78.78 0 0 1-.1.387c-.07.125-.156.24-.258.342-.108.109-.287.27-.53.484a9.184 9.184 0 0 0-.679.647 2.268 2.268 0 0 0-.42.656 2.27 2.27 0 0 0-.159.884c0 .288.08.511.24.663.156.15.352.227.58.227.439 0 .714-.24.796-.687.041-.186.073-.316.094-.39.019-.067.046-.136.081-.205.034-.068.089-.144.162-.227.076-.088.179-.19.305-.306.472-.422.805-.727.99-.908.19-.186.356-.41.493-.665A1.9 1.9 0 0 0 13 8.416a2.18 2.18 0 0 0-.367-1.217",fill:"currentColor"}),(0,p.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 17.5a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15zm0 1.5a9 9 0 1 0 0-18 9 9 0 0 0 0 18z",fill:"currentColor"})]}))};v.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};v.displayName="question-mark-circle";j=m.default=v;function P({SessionContext:e,extraItems:t,showLocale:r,showHelper:o,showSessionManager:s,sessionManagerProps:_}){const{session:M}=l.useContext(e),{locale:h}=l.useContext($),z=D(),S="https://developer.blocklet.io/docs",u={"/store":{endpoint:"https://store.blocklet.io"},"/dashboard":{path:"/conceptual/overview"},"/settings/router":{path:"/conceptual/server-architecture"}},C=()=>{const c=z.pathname;let i={};c.indexOf("/store")>-1?i=u["/store"]:u[c]&&(i=u[c]),window.open(`${i.endpoint||S}/${h}${i.path||""}`,"_blank")};return a.jsxs(U,{children:[t.map((c,i)=>l.cloneElement(c,{key:i})),r&&a.jsx(A,{"data-cy":"locale-addon",icon:x,size:23,showText:!1,className:"locale-addon"}),o&&a.jsx(R,{onClick:C,children:a.jsx(j,{})}),s&&a.jsx(E,{locale:h,session:M,size:24,showRole:!0,..._,showManageBlocklet:!1})]})}P.propTypes={SessionContext:n.object.isRequired,webWalletUrl:n.string,extraItems:n.array,showLocale:n.bool,showSessionManager:n.bool,showHelper:n.bool,sessionManagerProps:n.object};P.defaultProps={webWalletUrl:"",extraItems:[],showLocale:!0,showSessionManager:!0,showHelper:!0,sessionManagerProps:{}};const U=H.div`
1
+ import{r as l,j as a,$,ax as D,ay as R,az as E,P as n,Y as H}from"./index-fG25goIy.js";import{L as A}from"./selector-DBqg7pjs.js";var d={};Object.defineProperty(d,"__esModule",{value:!0});var x=d.default=void 0;L(l);var b=a;function L(e){return e&&e.__esModule?e:{default:e}}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,o)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(o){N(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function N(e,t,r){return t=B(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B(e){var t=T(e,"string");return typeof t=="symbol"?t:String(t)}function T(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var f=function(t){return(0,b.jsx)("svg",w(w({},t),{},{children:(0,b.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"})}))};f.defaultProps={width:"21",height:"20",viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg"};f.displayName="globe";x=d.default=f;var m={};Object.defineProperty(m,"__esModule",{value:!0});var j=m.default=void 0;k(l);var p=a;function k(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,o)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(o){q(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function q(e,t,r){return t=I(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(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 r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var v=function(t){return(0,p.jsxs)("svg",O(O({},t),{},{children:[(0,p.jsx)("path",{d:"M9.928 13.133a.981.981 0 0 0-.678.252.79.79 0 0 0-.281.61c0 .27.094.482.283.636.19.154.41.231.663.231.257 0 .48-.076.673-.228.19-.153.287-.365.287-.639a.796.796 0 0 0-.275-.61.958.958 0 0 0-.672-.252zM12.633 7.2a2.526 2.526 0 0 0-1.035-.88c-.441-.212-.955-.32-1.528-.32-.617 0-1.166.129-1.63.383-.467.255-.826.582-1.07.972-.245.392-.37.786-.37 1.172 0 .205.086.397.254.57.169.174.38.262.625.262.419 0 .705-.246.85-.729.132-.399.296-.703.485-.905.177-.19.465-.286.856-.286.336 0 .602.095.813.29.208.191.309.42.309.698a.78.78 0 0 1-.1.387c-.07.125-.156.24-.258.342-.108.109-.287.27-.53.484a9.184 9.184 0 0 0-.679.647 2.268 2.268 0 0 0-.42.656 2.27 2.27 0 0 0-.159.884c0 .288.08.511.24.663.156.15.352.227.58.227.439 0 .714-.24.796-.687.041-.186.073-.316.094-.39.019-.067.046-.136.081-.205.034-.068.089-.144.162-.227.076-.088.179-.19.305-.306.472-.422.805-.727.99-.908.19-.186.356-.41.493-.665A1.9 1.9 0 0 0 13 8.416a2.18 2.18 0 0 0-.367-1.217",fill:"currentColor"}),(0,p.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 17.5a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15zm0 1.5a9 9 0 1 0 0-18 9 9 0 0 0 0 18z",fill:"currentColor"})]}))};v.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};v.displayName="question-mark-circle";j=m.default=v;function P({SessionContext:e,extraItems:t,showLocale:r,showHelper:o,showSessionManager:s,sessionManagerProps:_}){const{session:M}=l.useContext(e),{locale:h}=l.useContext($),z=D(),S="https://developer.blocklet.io/docs",u={"/store":{endpoint:"https://store.blocklet.io"},"/dashboard":{path:"/conceptual/overview"},"/settings/router":{path:"/conceptual/server-architecture"}},C=()=>{const c=z.pathname;let i={};c.indexOf("/store")>-1?i=u["/store"]:u[c]&&(i=u[c]),window.open(`${i.endpoint||S}/${h}${i.path||""}`,"_blank")};return a.jsxs(U,{children:[t.map((c,i)=>l.cloneElement(c,{key:i})),r&&a.jsx(A,{"data-cy":"locale-addon",icon:x,size:23,showText:!1,className:"locale-addon"}),o&&a.jsx(R,{onClick:C,children:a.jsx(j,{})}),s&&a.jsx(E,{locale:h,session:M,size:24,showRole:!0,..._,showManageBlocklet:!1})]})}P.propTypes={SessionContext:n.object.isRequired,webWalletUrl:n.string,extraItems:n.array,showLocale:n.bool,showSessionManager:n.bool,showHelper:n.bool,sessionManagerProps:n.object};P.defaultProps={webWalletUrl:"",extraItems:[],showLocale:!0,showSessionManager:!0,showHelper:!0,sessionManagerProps:{}};const U=H.div`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{P as h,gT as Yo,b8 as Vt,b7 as Wo,dI as Ho,W as zo,X as Uo,j as m,ey as K,B as Ee,r as x,ae as Xt,aR as Yt,T as be,bn as Yn,ay as Be,aS as xn,aE as se,aJ as ye,aF as w,ao as We,aB as Pe,aA as Me,aC as ee,bm as rt,aG as ge,aH as Se,aI as ve,cX as Ye,cH as q,cD as Ko,cC as tt,cd as Ke,cy as nt,cP as qo,gI as wn,cN as Go,dd as Rt,Z as Wn,bp as Zo,dq as Qo,gH as Jo,cI as Wt,b as ft,cO as Xo,bi as er,gG as Hn,gF as zn,cY as en,cb as Un,co as tn,V as we,gU as tr,Y as Ot,c3 as nr,c5 as or,M as rr,d9 as sr,bj as Ge,aL as ar,u as nn,S as ir,x as lr,c as cr,fC as vn,bl as ur,gq as _e,$ as Kn,g8 as qn,aY as dr,a_ as hr,a6 as Pn,gV as fr,af as mr,w as pr}from"./index-ByQRo8Xy.js";import{T as gr}from"./index-Dmhy_Ear.js";import{_ as yr}from"./permission-CZsnNTVZ.js";import{I as br}from"./iframe-COqXiy5h.js";import{d as Dr}from"./LaunchOutlined-DNUOXpqM.js";import{r as on,b as Gn,H as Fe,D as ot,B as Oe,y as xr,E as wr,I as rn,z as Ut,M as gt,N as yt,A as Je,L as bt,e as Dt,J as Ct,K as kt,d as vr,Q as Kt,G as mt,F as Mn,R as sn,S as Pr,Z as Mr,T as Sr,O as Cr,V as kr,P as Tr,W as Ir}from"./index-_QTdMI-0.js";import{d as Vr,B as Rr}from"./ChevronRight-DNv1gZKn.js";import{_ as Zn,G as me}from"./Grid-yCxJQYxc.js";import{L as Qn}from"./MoreVert-BlfI-m1v.js";import{a as Or}from"./ListItemText-e5ekg1wb.js";import{F as Sn}from"./FormControl-FOGVkAoE.js";import{S as Cn}from"./Select-DeWWNQVN.js";import{A as Er}from"./Alert-D5YfCoUW.js";import{f as Ar}from"./index-pDpS4wtg.js";import{T as Fr}from"./TextField-CLOKo8rr.js";import{M as Jn}from"./InputAdornment-DUA05h7f.js";import{p as Lr}from"./dashboard-DQ4ngxOJ.js";import{D as jr}from"./index-nVrcEkAx.js";import"./useAsync-vQc8FFGm.js";import"./session-D1eiA1_r.js";import"./Avatar-isxOT3tA.js";import"./useSlot-BO5miOj3.js";import"./useFormControl-BVamiUiv.js";import"./InputLabel-D30LulZb.js";import"./useLocalStorage-BupvKFw0.js";import"./confirm-B3mdFD--.js";import"./Delete-0zNQNl-n.js";import"./PlayArrow-Nl_H1UBL.js";import"./ButtonGroup-DPL_1wz3.js";import"./RadioGroup-DeoyugEj.js";import"./FormControlLabel-C2ynx6-R.js";import"./FormGroup-C8bxvRCn.js";import"./index-CGGlwLvN.js";import"./spaces-9alAi49r.js";import"./index-BeplF-8F.js";import"./index-D-XBJ_hS.js";import"./api-Cf224rl9.js";import"./Link-BXzMp1xg.js";import"./useSetState-B4GQTE_e.js";import"./fallback-BMS2ZyNw.js";import"./index-DN1AldP1.js";import"./Toolbar-CoiO3etm.js";import"./Hidden-BUue-5gv.js";import"./MoreHoriz-BUMFUhwJ.js";import"./ExpandMore-BgFo69Uu.js";import"./index-CPnYs_Ln.js";import"./selector-CqvONJVH.js";import"./FilterList-D37rH1lX.js";import"./TableRow-M2pFTiJl.js";import"./LastPage-Bsc_HsDo.js";import"./index-DRKjEemf.js";import"./redux-ChkYhsNh.js";import"./Search-BVORi6f0.js";import"./index-CuZN5rgD.js";const $r=h.oneOfType([h.func,h.object]),Xn=$r;var Nr=Yo;function _r(e,t){var n=e.length;if(n)return t+=t<0?n:0,Nr(t,n)?e[t]:void 0}var Br=_r,Yr=Br,Wr=Wo,Hr=Ho;function zr(e){return e=Hr(e),Wr(function(t){return Yr(t,e)})}var Ur=zr;const Kr=Vt(Ur);function eo(e){on(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){on(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 qr(e){return on(1,arguments),Fe(e,Date.now())}var an={},Gr=Uo;Object.defineProperty(an,"__esModule",{value:!0});var no=an.default=void 0,Zr=Gr(zo()),Qr=m;no=an.default=(0,Zr.default)((0,Qr.jsx)("path",{d:"M16.01 11H4v2h12.01v3L20 12l-3.99-4z"}),"ArrowRightAlt");const Jr=(e,t)=>Array.from({length:Math.ceil(e.length/t)},(n,r)=>e.slice(r*t,r*t+t)),Xr=(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=Ut(o,1);return a},es=({startDate:e},t)=>e&&Fe(t,e),ts=({endDate:e},t)=>e&&Fe(t,e),ns=({startDate:e,endDate:t},n)=>e&&t&&(sn(n,{start:e,end:t})||Fe(n,e)||Fe(n,t)),os=({startDate:e,endDate:t})=>e&&t?Fe(e,t):!1,kn=(e,t)=>{if(e){const n=e instanceof Date?e:xr(e);if(wr(n))return n}return t},rs=(e,t,n)=>{const{startDate:r,endDate:a}=e;if(r&&a){const o=eo([r,t]),s=to([a,n]);return[o,rn(o,s)?Oe(o,1):s]}return[r,a]},ss=(e,t)=>[{label:"Today",startDate:e,endDate:e},{label:"Yesterday",startDate:Ut(e,-1),endDate:Ut(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:Ct(e),endDate:kt(e)},{label:"Last Year",startDate:Ct(ot(e,-1)),endDate:kt(ot(e,-1))}],as=(e,t)=>{const n=Math.floor(t/2);return Array(t).fill(0).map((r,a)=>e.getFullYear()-n+a)},is=({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(kr(e,parseInt(u.target.value,10)))},l=u=>{t(Tr(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(Mr,{color:r?"disabled":"action"}))),K.createElement(me,{item:!0},K.createElement(Sn,{variant:"standard"},K.createElement(Cn,{value:Sr(e),onChange:c,MenuProps:{disablePortal:!0}},i.map((u,y)=>K.createElement(xn,{key:u,value:y},u))))),K.createElement(me,{item:!0},K.createElement(Sn,{variant:"standard"},K.createElement(Cn,{value:Cr(e),onChange:l,MenuProps:{disablePortal:!0}},as(e,30).map(u=>K.createElement(xn,{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(Vr,{color:n?"disabled":"action"}))))},ls=({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(Xt,{square:!0,elevation:0,sx:{width:290}},K.createElement(me,{container:!0},K.createElement(is,{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"}},Jr(Xr(a,u),7).map((d,b)=>K.createElement(me,{key:b,container:!0,direction:"row",justifyContent:"center"},d.map(p=>{const g=es(o,p),v=ts(o,p),T=os(o),P=ns(o,p)||n.inHoverRange(p);return K.createElement(ls,{key:Kt(p,"dd-MM-yyyy"),filled:g||v,outlined:qr(p),highlighted:P&&!T,disabled:!rn(a,p)||!sn(p,{start:c,end:l}),startOfRange:g&&!T,endOfRange:v&&!T,onClick:()=>r.onDayClick(p),onHover:()=>r.onDayHover(p),value:Pr(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},cs=({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(Or,{primaryTypographyProps:{variant:"body2",sx:{fontWeight:In(r,n)?"bold":"normal"}}},r.label)))),qt={FIRST_MONTH:Symbol("firstMonth"),SECOND_MONTH:Symbol("secondMonth")},us=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=vr(i,o)>=2,b={dateRange:n,minDate:r,maxDate:a,helpers:u,handlers:y};return K.createElement(Xt,{elevation:5,square:!0},K.createElement(me,{container:!0,direction:"row",wrap:"nowrap"},K.createElement(me,null,K.createElement(cs,{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?Kt(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?Kt(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:qt.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:qt.SECOND_MONTH,locale:D}))))))},ds=e=>{const t=new Date,{open:n,onChange:r,initialDateRange:a,minDate:o,maxDate:s,definedRanges:i=ss(new Date,e.locale),locale:c}=e,l=kn(o,ot(t,-10)),u=kn(s,ot(t,10)),[y,D]=rs(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(rn(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===qt.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)},C={inHoverRange:F=>P&&!O&&d&&Mn(d,P)&&sn(F,{start:P,end:d})},S={onDayClick:_,onDayHover:A,onMonthNavigate:V};return n?x.createElement(us,{dateRange:f,minDate:l,maxDate:u,ranges:i,firstMonth:p,secondMonth:v,setFirstMonth:R,setSecondMonth:E,setDateRange:M,helpers:C,handlers:S,locale:c}):null},hs=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(ds,Object.assign({},e))))},fs=e=>K.createElement(hs,Object.assign({},e)),ms=["localeText"],Gt=x.createContext(null),ln=function(t){var n;const{localeText:r}=t,a=se(t,ms),{utils:o,localeText:s}=(n=x.useContext(Gt))!=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,gT as Yo,b8 as Vt,b7 as Wo,dI as Ho,W as zo,X as Uo,j as m,ey as K,B as Ee,r as x,ae as Xt,aR as Yt,T as be,bn as Yn,ay as Be,aS as xn,aE as se,aJ as ye,aF as w,ao as We,aB as Pe,aA as Me,aC as ee,bm as rt,aG as ge,aH as Se,aI as ve,cX as Ye,cH as q,cD as Ko,cC as tt,cd as Ke,cy as nt,cP as qo,gI as wn,cN as Go,dd as Rt,Z as Wn,bp as Zo,dq as Qo,gH as Jo,cI as Wt,b as ft,cO as Xo,bi as er,gG as Hn,gF as zn,cY as en,cb as Un,co as tn,V as we,gU as tr,Y as Ot,c3 as nr,c5 as or,M as rr,d9 as sr,bj as Ge,aL as ar,u as nn,S as ir,x as lr,c as cr,fC as vn,bl as ur,gq as _e,$ as Kn,g8 as qn,aY as dr,a_ as hr,a6 as Pn,gV as fr,af as mr,w as pr}from"./index-fG25goIy.js";import{T as gr}from"./index-3brZtWZ9.js";import{_ as yr}from"./permission-C9iOC8zT.js";import{I as br}from"./iframe-CFCNJ5tP.js";import{d as Dr}from"./LaunchOutlined-eC9MCH8e.js";import{r as on,b as Gn,H as Fe,D as ot,B as Oe,y as xr,E as wr,I as rn,z as Ut,M as gt,N as yt,A as Je,L as bt,e as Dt,J as Ct,K as kt,d as vr,Q as Kt,G as mt,F as Mn,R as sn,S as Pr,Z as Mr,T as Sr,O as Cr,V as kr,P as Tr,W as Ir}from"./index-Dh7JA33-.js";import{d as Vr,B as Rr}from"./ChevronRight-D4XRflu9.js";import{_ as Zn,G as me}from"./Grid-D5J6kvn0.js";import{L as Qn}from"./MoreVert-BbEIKsYw.js";import{a as Or}from"./ListItemText-CVS1G1s8.js";import{F as Sn}from"./FormControl-BGBxSpFa.js";import{S as Cn}from"./Select-hmsiR_HX.js";import{A as Er}from"./Alert-DSAK-6uk.js";import{f as Ar}from"./index-CdqltrPb.js";import{T as Fr}from"./TextField-CebHGT3J.js";import{M as Jn}from"./InputAdornment-jSW0lrBI.js";import{p as Lr}from"./dashboard-D_A_KYtx.js";import{D as jr}from"./index-CwpOap00.js";import"./useAsync-QgQb6KwU.js";import"./session-BRLUzB_V.js";import"./Avatar-6cyEgEIs.js";import"./useSlot-fHevRUkf.js";import"./useFormControl-C1fGK9Rc.js";import"./InputLabel-D4si6vrM.js";import"./useLocalStorage-Ba50FLbS.js";import"./confirm-Cv8oxTtx.js";import"./Delete-FnPlSebw.js";import"./PlayArrow-C7kIbjaf.js";import"./ButtonGroup-CbL72-oE.js";import"./RadioGroup-DiqmtEFh.js";import"./FormControlLabel-D8u6upQ1.js";import"./FormGroup-B459wuGu.js";import"./index-CAl1tFNE.js";import"./spaces-XGQ-YXCR.js";import"./index-ZsDQ0ZLD.js";import"./index-D-XBJ_hS.js";import"./api-sAuPzOF6.js";import"./Link-DpjXpC6x.js";import"./useSetState-GffjrhKI.js";import"./fallback-BrnkKdFy.js";import"./index-DBnR7IpU.js";import"./Toolbar-Bjp831p7.js";import"./Hidden-Bq2dXlPY.js";import"./MoreHoriz-DtO97ZT3.js";import"./ExpandMore-BLVLjrZd.js";import"./index-D8noUWUC.js";import"./selector-DBqg7pjs.js";import"./FilterList-rsX_pJAI.js";import"./TableRow-DSPkF0eX.js";import"./LastPage-B7zYSdUl.js";import"./index-D3pN0lCt.js";import"./redux-DTC_Jkdb.js";import"./Search-Cjqsb3on.js";import"./index-DmzTP_a0.js";const $r=h.oneOfType([h.func,h.object]),Xn=$r;var Nr=Yo;function _r(e,t){var n=e.length;if(n)return t+=t<0?n:0,Nr(t,n)?e[t]:void 0}var Br=_r,Yr=Br,Wr=Wo,Hr=Ho;function zr(e){return e=Hr(e),Wr(function(t){return Yr(t,e)})}var Ur=zr;const Kr=Vt(Ur);function eo(e){on(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){on(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 qr(e){return on(1,arguments),Fe(e,Date.now())}var an={},Gr=Uo;Object.defineProperty(an,"__esModule",{value:!0});var no=an.default=void 0,Zr=Gr(zo()),Qr=m;no=an.default=(0,Zr.default)((0,Qr.jsx)("path",{d:"M16.01 11H4v2h12.01v3L20 12l-3.99-4z"}),"ArrowRightAlt");const Jr=(e,t)=>Array.from({length:Math.ceil(e.length/t)},(n,r)=>e.slice(r*t,r*t+t)),Xr=(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=Ut(o,1);return a},es=({startDate:e},t)=>e&&Fe(t,e),ts=({endDate:e},t)=>e&&Fe(t,e),ns=({startDate:e,endDate:t},n)=>e&&t&&(sn(n,{start:e,end:t})||Fe(n,e)||Fe(n,t)),os=({startDate:e,endDate:t})=>e&&t?Fe(e,t):!1,kn=(e,t)=>{if(e){const n=e instanceof Date?e:xr(e);if(wr(n))return n}return t},rs=(e,t,n)=>{const{startDate:r,endDate:a}=e;if(r&&a){const o=eo([r,t]),s=to([a,n]);return[o,rn(o,s)?Oe(o,1):s]}return[r,a]},ss=(e,t)=>[{label:"Today",startDate:e,endDate:e},{label:"Yesterday",startDate:Ut(e,-1),endDate:Ut(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:Ct(e),endDate:kt(e)},{label:"Last Year",startDate:Ct(ot(e,-1)),endDate:kt(ot(e,-1))}],as=(e,t)=>{const n=Math.floor(t/2);return Array(t).fill(0).map((r,a)=>e.getFullYear()-n+a)},is=({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(kr(e,parseInt(u.target.value,10)))},l=u=>{t(Tr(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(Mr,{color:r?"disabled":"action"}))),K.createElement(me,{item:!0},K.createElement(Sn,{variant:"standard"},K.createElement(Cn,{value:Sr(e),onChange:c,MenuProps:{disablePortal:!0}},i.map((u,y)=>K.createElement(xn,{key:u,value:y},u))))),K.createElement(me,{item:!0},K.createElement(Sn,{variant:"standard"},K.createElement(Cn,{value:Cr(e),onChange:l,MenuProps:{disablePortal:!0}},as(e,30).map(u=>K.createElement(xn,{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(Vr,{color:n?"disabled":"action"}))))},ls=({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(Xt,{square:!0,elevation:0,sx:{width:290}},K.createElement(me,{container:!0},K.createElement(is,{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"}},Jr(Xr(a,u),7).map((d,b)=>K.createElement(me,{key:b,container:!0,direction:"row",justifyContent:"center"},d.map(p=>{const g=es(o,p),v=ts(o,p),T=os(o),P=ns(o,p)||n.inHoverRange(p);return K.createElement(ls,{key:Kt(p,"dd-MM-yyyy"),filled:g||v,outlined:qr(p),highlighted:P&&!T,disabled:!rn(a,p)||!sn(p,{start:c,end:l}),startOfRange:g&&!T,endOfRange:v&&!T,onClick:()=>r.onDayClick(p),onHover:()=>r.onDayHover(p),value:Pr(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},cs=({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(Or,{primaryTypographyProps:{variant:"body2",sx:{fontWeight:In(r,n)?"bold":"normal"}}},r.label)))),qt={FIRST_MONTH:Symbol("firstMonth"),SECOND_MONTH:Symbol("secondMonth")},us=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=vr(i,o)>=2,b={dateRange:n,minDate:r,maxDate:a,helpers:u,handlers:y};return K.createElement(Xt,{elevation:5,square:!0},K.createElement(me,{container:!0,direction:"row",wrap:"nowrap"},K.createElement(me,null,K.createElement(cs,{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?Kt(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?Kt(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:qt.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:qt.SECOND_MONTH,locale:D}))))))},ds=e=>{const t=new Date,{open:n,onChange:r,initialDateRange:a,minDate:o,maxDate:s,definedRanges:i=ss(new Date,e.locale),locale:c}=e,l=kn(o,ot(t,-10)),u=kn(s,ot(t,10)),[y,D]=rs(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(rn(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===qt.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)},C={inHoverRange:F=>P&&!O&&d&&Mn(d,P)&&sn(F,{start:P,end:d})},S={onDayClick:_,onDayHover:A,onMonthNavigate:V};return n?x.createElement(us,{dateRange:f,minDate:l,maxDate:u,ranges:i,firstMonth:p,secondMonth:v,setFirstMonth:R,setSecondMonth:E,setDateRange:M,helpers:C,handlers:S,locale:c}):null},hs=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(ds,Object.assign({},e))))},fs=e=>K.createElement(hs,Object.assign({},e)),ms=["localeText"],Gt=x.createContext(null),ln=function(t){var n;const{localeText:r}=t,a=se(t,ms),{utils:o,localeText:s}=(n=x.useContext(Gt))!=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(Gt.Provider,{value:p,children:c})},ps=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"},gs=oo;ps(oo);const qe=()=>{const e=x.useContext(Gt);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({},gs,e.localeText),[e.localeText]);return x.useMemo(()=>w({},e,{localeText:t}),[e,t])},ue=()=>qe().utils,wt=()=>qe().defaultDates,He=()=>qe().localeText,vt=e=>{const t=ue(),n=x.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},ys=We(m.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),bs=We(m.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Ds=We(m.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),xs=We(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");We(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");We(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");We(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 ws=We(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 vs(e){return Pe("MuiPickersArrowSwitcher",e)}Me("MuiPickersArrowSwitcher",["root","spacer","button"]);const Ps=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],Ms=["ownerState"],Ss=["ownerState"],Cs=ee("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),ks=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"})),Ts=e=>{const{classes:t}=e;return ve({root:["root"],spacer:["spacer"],button:["button"]},vs,t)},Is=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,Ps),R=l,E=Ts(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,C=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}),S=(o=D==null?void 0:D.leftArrowIcon)!=null?o:bs,F=ge({elementType:S,externalSlotProps:f==null?void 0:f.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),B=se(F,Ms),L=(s=D==null?void 0:D.rightArrowIcon)!=null?s:Ds,Y=ge({elementType:L,externalSlotProps:f==null?void 0:f.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),U=se(Y,Ss);return m.jsxs(Cs,w({ref:n,className:Se(E.root,y),ownerState:R},O,{children:[m.jsx(V,w({},A,{children:c?m.jsx(L,w({},U)):m.jsx(S,w({},B))})),u?m.jsx(be,{variant:"subtitle1",component:"span",children:u}):m.jsx(ks,{className:E.spacer,ownerState:R}),m.jsx(I,w({},C,{children:c?m.jsx(S,w({},B)):m.jsx(L,w({},U))}))]}))}),ct=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Vs=({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}},Rs=["hours","minutes","seconds"],Os=e=>Rs.includes(e),Rn=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Es=(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 S=a[a.indexOf(V)+1];S&&O(S)}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 As(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 Fs(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,Ls=280,cn=334,js=ee("div")({overflow:"hidden",width:At,maxHeight:cn,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},$s=(e,t)=>t==null||!e.isValid(t)?null:t,ke=(e,t,n)=>t==null||!e.isValid(t)?n:t,Ns=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),un=(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},Zt=(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),_s=["year","month","day"],On=e=>_s.includes(e),dn=(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},Bs=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},hn=({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}},fn=({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 hn({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},Ys=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},Ws=({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=Es((o=e.disableIgnoringDatePartForTimeValidation)!=null?o:!1,t);return e.minTime!=null&&i(e.minTime,s)&&(s=ut(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Zt(t,s,e.minTime))),e.maxTime!=null&&i(s,e.maxTime)&&(s=ut(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Zt(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{b_ as a}from"./index-fG25goIy.js";a.defaults.timeout=10*1e3;const o=a.create();export{o as a};
@@ -1,4 +1,4 @@
1
- import{b8 as Bt,ey as It,g5 as Zg,P as V,aE as Qg,r as Nt,aF as _r,j as K,aL as Xd,o as Jg,u as ef,S as tf,B as Lr,aS as nf,Y as rf,A as L1,T as Yt,L as x1,x as af}from"./index-ByQRo8Xy.js";import{d as Zd,f as zn,a as Ei,b as bi,c as v1,S as sf,s as Ct,h as un,p as F1,e as ti,n as M1,w as Hn}from"./index-CJsfi4dA.js";import{E as of}from"./index-CuZN5rgD.js";import{T as lf}from"./index-CGGlwLvN.js";import{_ as uf}from"./useLocalStorage-BupvKFw0.js";import{R as cf}from"./dashboard-DQ4ngxOJ.js";import{F as df}from"./FormControl-FOGVkAoE.js";import{I as pf}from"./InputLabel-D30LulZb.js";import{S as gf}from"./Select-DeWWNQVN.js";import{P as ff}from"./Pagination-Bfb8zZCL.js";import"./index-Dmhy_Ear.js";import"./MoreVert-BlfI-m1v.js";import"./confirm-B3mdFD--.js";import"./index-pDpS4wtg.js";import"./Alert-D5YfCoUW.js";import"./useSlot-BO5miOj3.js";import"./Delete-0zNQNl-n.js";import"./PlayArrow-Nl_H1UBL.js";import"./ListItemText-e5ekg1wb.js";import"./ButtonGroup-DPL_1wz3.js";import"./RadioGroup-DeoyugEj.js";import"./FormControlLabel-C2ynx6-R.js";import"./useFormControl-BVamiUiv.js";import"./FormGroup-C8bxvRCn.js";import"./Avatar-isxOT3tA.js";import"./session-D1eiA1_r.js";import"./permission-CZsnNTVZ.js";import"./useAsync-vQc8FFGm.js";import"./spaces-9alAi49r.js";import"./index-BeplF-8F.js";import"./index-D-XBJ_hS.js";import"./api-Cf224rl9.js";import"./Link-BXzMp1xg.js";import"./useSetState-B4GQTE_e.js";import"./fallback-BMS2ZyNw.js";import"./index-DN1AldP1.js";import"./Toolbar-CoiO3etm.js";import"./Hidden-BUue-5gv.js";import"./MoreHoriz-BUMFUhwJ.js";import"./ExpandMore-BgFo69Uu.js";import"./index-CPnYs_Ln.js";import"./selector-CqvONJVH.js";import"./LastPage-Bsc_HsDo.js";const B1=["http","https","mailto","tel"];function mf(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let a=-1;for(;++a<B1.length;){const i=B1[a];if(r===i.length&&t.slice(0,i.length).toLowerCase()===i)return t}return a=t.indexOf("?"),a!==-1&&r>a||(a=t.indexOf("#"),a!==-1&&r>a)?t:"javascript:void(0)"}/*!
1
+ import{b8 as Bt,ey as It,g5 as Zg,P as V,aE as Qg,r as Nt,aF as _r,j as K,aL as Xd,o as Jg,u as ef,S as tf,B as Lr,aS as nf,Y as rf,A as L1,T as Yt,L as x1,x as af}from"./index-fG25goIy.js";import{d as Zd,f as zn,a as Ei,b as bi,c as v1,S as sf,s as Ct,h as un,p as F1,e as ti,n as M1,w as Hn}from"./index-CPMqUyRS.js";import{E as of}from"./index-DmzTP_a0.js";import{T as lf}from"./index-CAl1tFNE.js";import{_ as uf}from"./useLocalStorage-Ba50FLbS.js";import{R as cf}from"./dashboard-D_A_KYtx.js";import{F as df}from"./FormControl-BGBxSpFa.js";import{I as pf}from"./InputLabel-D4si6vrM.js";import{S as gf}from"./Select-hmsiR_HX.js";import{P as ff}from"./Pagination-DwyeABpM.js";import"./index-3brZtWZ9.js";import"./MoreVert-BbEIKsYw.js";import"./confirm-Cv8oxTtx.js";import"./index-CdqltrPb.js";import"./Alert-DSAK-6uk.js";import"./useSlot-fHevRUkf.js";import"./Delete-FnPlSebw.js";import"./PlayArrow-C7kIbjaf.js";import"./ListItemText-CVS1G1s8.js";import"./ButtonGroup-CbL72-oE.js";import"./RadioGroup-DiqmtEFh.js";import"./FormControlLabel-D8u6upQ1.js";import"./useFormControl-C1fGK9Rc.js";import"./FormGroup-B459wuGu.js";import"./Avatar-6cyEgEIs.js";import"./session-BRLUzB_V.js";import"./permission-C9iOC8zT.js";import"./useAsync-QgQb6KwU.js";import"./spaces-XGQ-YXCR.js";import"./index-ZsDQ0ZLD.js";import"./index-D-XBJ_hS.js";import"./api-sAuPzOF6.js";import"./Link-DpjXpC6x.js";import"./useSetState-GffjrhKI.js";import"./fallback-BrnkKdFy.js";import"./index-DBnR7IpU.js";import"./Toolbar-Bjp831p7.js";import"./Hidden-Bq2dXlPY.js";import"./MoreHoriz-DtO97ZT3.js";import"./ExpandMore-BLVLjrZd.js";import"./index-D8noUWUC.js";import"./selector-DBqg7pjs.js";import"./LastPage-B7zYSdUl.js";const B1=["http","https","mailto","tel"];function mf(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let a=-1;for(;++a<B1.length;){const i=B1[a];if(r===i.length&&t.slice(0,i.length).toLowerCase()===i)return t}return a=t.indexOf("?"),a!==-1&&r>a||(a=t.indexOf("#"),a!==-1&&r>a)?t:"javascript:void(0)"}/*!
2
2
  * Determine if an object is a Buffer
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
@@ -1 +1 @@
1
- import{j as o,a0 as n}from"./index-ByQRo8Xy.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,a0 as n}from"./index-fG25goIy.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,$ as s,j as t,ff as r,P as c}from"./index-ByQRo8Xy.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,$ as s,j as t,ff as r,P as c}from"./index-fG25goIy.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{Y as m,u as P,r as n,af as C,ag as T,j as t,S as B,B as h,fI as _,c as $,x as I,a3 as A,a4 as F,o as M,fo as N,fJ as z,P as O,aj as W}from"./index-ByQRo8Xy.js";import{L as X}from"./launch-result-message-BVtC_IiO.js";import{S as v}from"./button-CI-oFf7d.js";import{S as H}from"./layout-DKfygYsQ.js";import"./content-layout-D8kIZCKQ.js";const J=m(X)`
1
+ import{Y as m,u as P,r as n,af as C,ag as T,j as t,S as B,B as h,fI as _,c as $,x as I,a3 as A,a4 as F,o as M,fo as N,fJ as z,P as O,aj as W}from"./index-fG25goIy.js";import{L as X}from"./launch-result-message-D5ZsOjgY.js";import{S as v}from"./button-pUiVMawE.js";import{S as H}from"./layout-h5rjnmBP.js";import"./content-layout-D4_5Ol4a.js";const J=m(X)`
2
2
  && .result-footer {
3
3
  height: 120px;
4
4
  > div {
@@ -1,4 +1,4 @@
1
- import{gs as Np,S as tn,gt as Fp,gu as Vp,fh as zp,gv as Wp,gw as qp,B as de,gr as Up,gx as Gp,gy as Hp,dJ as Yp,gz as Kp,gA as Qp,aQ as Xp,gB as Jp,gC as Zp,ao as Ot,j as P,W as Ut,X as ce,u as ct,a as Rt,P as Q,o as Oe,cn as ze,gD as Ne,r as M,cw as Qe,b8 as hi,co as Ko,gE as em,fe as re,aA as Fe,aB as Ve,aC as ae,T as vt,aF as q,cC as zr,aE as De,cy as ia,aI as Be,aJ as Ae,gF as tm,cX as la,cH as sa,gG as xc,dd as Pc,cD as nm,cd as pn,bm as yr,ay as rt,aD as rm,cY as Tc,b as cn,cO as Sc,bp as am,ae as om,gH as im,cI as Na,dq as lm,cP as Wr,gI as Gl,cN as qr,Z as ua,gJ as sm,ey as we,eu as Hl,gK as um,dC as bi,gL as cm,cq as dm,Y as at,aL as Ct,$ as Gt,aX as ur,a8 as Jt,eW as fm,gM as kc,bo as mn,gN as pm,fW as mm,eX as gn,eS as vi,eR as dn,a6 as rn,ap as Rc,aS as Mt,aY as Dn,x as pe,gO as gm,fJ as Ec,f_ as Mc,gP as hm,e as bm,c as Oc,aM as en,aV as un,aa as Fa,eF as vm,cM as Qo,bB as Xo,gQ as ym,a0 as jn,fl as Cm}from"./index-ByQRo8Xy.js";import{d as Jo}from"./Add-DWPkhR7c.js";import{E as wm,d as yi,F as Dm,a as Ci,L as wi}from"./Edit-DGi8qwHM.js";import{E as xm}from"./index-CuZN5rgD.js";import{g as Pm,h as Tm,i as Sm,W as hn,j as km,k as Di,B as _c,a as Ic,l as Rm,m as Em,n as Mm}from"./dashboard-DQ4ngxOJ.js";import{S as Om}from"./switch-control-C87yjmRR.js";import{P as Zo,w as xn}from"./permission-CZsnNTVZ.js";import{b as _m,t as Im,c as Yl,T as Am}from"./index-Dmhy_Ear.js";import{r as Pn,V as jm,R as Lm,F as Bm,C as $m,a as Nm,e as Fm,g as _t,f as Et,s as ca,h as an,q as Ac,p as xi,k as jc,m as Vm,l as zm,i as Tn,c as on,d as da,o as Wm,n as qm,v as Lc,y as Um,w as Gm,x as Hm,j as Ym,u as Km,t as Qm,b as Xm,z as Kl,D as Jm,A as Zm}from"./FilterList-D37rH1lX.js";import{d as eg,_ as ee,b as Ql,c as tg,a as ng,e as rg}from"./redux-ChkYhsNh.js";import{S as ag,d as og}from"./Search-BVORi6f0.js";import{C as ig,r as xe,a as Pi,t as it,b as ye,e as ei,d as lg,s as Ur,g as ti,m as Bc,c as $c,f as sg,h as ug,i as ni,j as Nc,k as cg,l as dg,n as Fc,o as Ti,p as Xl,q as fg,u as Jl,v as pg,w as mg,x as Bt,y as gg,z as Zl,A as hg,B as Va,D as es,E as bg,F as za,G as Ln,H as vg,I as yg,J as Er,K as Wa,L as ts,M as qa,N as Ua,O as Cg,P as wg,Q as Dg,R as xg,S as Pg,T as Tg,U as Sg,V as kg,W as Rg,X as Eg,Y as Mg,Z as Og}from"./index-_QTdMI-0.js";import{C as _g,d as ns,B as Ig}from"./ChevronRight-DNv1gZKn.js";import{D as Ag}from"./DeleteOutline-CR22pWuT.js";import{A as jg}from"./AddBox-BjX9Z2uj.js";import{o as Lg,e as Bg,i as $g,p as Ng,g as Fg,d as rs,c as Vg,b as Re,_ as Se,r as Ht}from"./slicedToArray-Bc7bSR7A.js";import{t as zg,k as Wg,l as qg,_ as ke}from"./jss-plugin-props-sort.esm-Cck9yaTo.js";import{F as Ug,f as Gg,a as Hg,T as mt}from"./TextField-CLOKo8rr.js";import{_ as Yg,G as nr}from"./Grid-yCxJQYxc.js";import{S as Kg}from"./Skeleton-VINmMOpD.js";import{M as Vc,g as Qg,i as Xg}from"./InputAdornment-DUA05h7f.js";import{m as Ze,t as Jg}from"./toUpper-B0fLjeHy.js";import{C as as}from"./click-to-copy-9gHOXiDu.js";import{d as Cr}from"./Delete-0zNQNl-n.js";import{d as Zg}from"./ArrowDropDown-BdjbdLb6.js";import{A as os}from"./Alert-D5YfCoUW.js";import{f as gt}from"./index-pDpS4wtg.js";import{A as eh,a as th,b as nh,d as zc}from"./add-component-core-DoRXeX-w.js";import{C as Sn}from"./confirm-B3mdFD--.js";import{v as rh,a as Gr}from"./util-Cn17RU6M.js";import{i as ah}from"./index-BeplF-8F.js";import{d as oh}from"./LockIcon-BRSKZc9o.js";import{d as Wc}from"./Launch-H3e02OgF.js";import{C as ih}from"./item-glU9YOhe.js";import{A as lh}from"./Avatar-isxOT3tA.js";import{E as Si}from"./Link-BXzMp1xg.js";import{d as sh}from"./InfoOutlined-BFaZfobd.js";import{R as uh,a as is}from"./RadioGroup-DeoyugEj.js";import{F as ri,C as ch}from"./FormControlLabel-C2ynx6-R.js";import{d as dh}from"./PlayArrow-Nl_H1UBL.js";import{A as fh}from"./actions-DyCrUvyK.js";import{I as Ga}from"./index-Bggpk5vn.js";import{W as ph}from"./did-address-D8Z_pYLU.js";import{T as mh}from"./index-CGGlwLvN.js";import{a as gh}from"./index-Dnjq7L3Z.js";import"./Done-hH5-N5v0.js";import"./logo-uploader-Qe4fSMre.js";import"./index-Do5sTIF0.js";import"./EditIcon-BTer7WGq.js";import"./ButtonGroup-DPL_1wz3.js";import"./useLocalStorage-BupvKFw0.js";import"./MoreVert-BlfI-m1v.js";import"./ListItemText-e5ekg1wb.js";import"./session-D1eiA1_r.js";import"./spaces-9alAi49r.js";import"./index-D-XBJ_hS.js";import"./api-Cf224rl9.js";import"./useSetState-B4GQTE_e.js";import"./fallback-BMS2ZyNw.js";import"./index-DN1AldP1.js";import"./Toolbar-CoiO3etm.js";import"./Hidden-BUue-5gv.js";import"./MoreHoriz-BUMFUhwJ.js";import"./ExpandMore-BgFo69Uu.js";import"./index-CPnYs_Ln.js";import"./selector-CqvONJVH.js";import"./useSlot-BO5miOj3.js";import"./useAsync-vQc8FFGm.js";import"./TableRow-M2pFTiJl.js";import"./FormControl-FOGVkAoE.js";import"./useFormControl-BVamiUiv.js";import"./FormGroup-C8bxvRCn.js";import"./InputLabel-D30LulZb.js";import"./Select-DeWWNQVN.js";import"./LastPage-Bsc_HsDo.js";import"./lottie-AQzixJ8T.js";import"./config-space-D1Y6KkQv.js";import"./launch-result-message-BVtC_IiO.js";import"./page-header-H2fMhHk4.js";import"./uniqBy-B_wbSsCI.js";import"./index-DLbZ_JZr.js";import"./Google-B0xyZx_J.js";import"./index-CJsfi4dA.js";import"./Stepper-ComI9dBA.js";import"./connect-to-CQCEiCCI.js";import"./use-blocklet-info-for-connect-did-spaces-BoWcj6lQ.js";import"./CloseOutlined-DoNA2OX4.js";import"./index-BViVYSQ1.js";import"./content-layout-D8kIZCKQ.js";import"./preact.module-B1z5cdvs.js";const hh=Object.freeze(Object.defineProperty({__proto__:null,circularProgressClasses:Np,default:tn,getCircularProgressUtilityClass:Fp},Symbol.toStringTag,{value:"Module"})),bh=Object.freeze(Object.defineProperty({__proto__:null,collapseClasses:Vp,default:zp,getCollapseUtilityClass:Wp},Symbol.toStringTag,{value:"Module"})),vh=Object.freeze(Object.defineProperty({__proto__:null,boxClasses:qp,default:de},Symbol.toStringTag,{value:"Module"})),yh=Object.freeze(Object.defineProperty({__proto__:null,default:Ug,formHelperTextClasses:Gg,getFormHelperTextUtilityClasses:Hg},Symbol.toStringTag,{value:"Module"})),Ch=Object.freeze(Object.defineProperty({__proto__:null,default:Up,getIconUtilityClass:Gp,iconClasses:Hp},Symbol.toStringTag,{value:"Module"})),wh=Object.freeze(Object.defineProperty({__proto__:null,default:Vc,getInputAdornmentUtilityClass:Qg,inputAdornmentClasses:Xg},Symbol.toStringTag,{value:"Module"})),Dh=Object.freeze(Object.defineProperty({__proto__:null,default:Yp,getLinearProgressUtilityClass:Kp,linearProgressClasses:Qp},Symbol.toStringTag,{value:"Module"})),xh=Object.freeze(Object.defineProperty({__proto__:null,default:Xp,getMenuUtilityClass:Jp,menuClasses:Zp},Symbol.toStringTag,{value:"Module"})),Ph=Ot(P.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 ki={},Th=ce;Object.defineProperty(ki,"__esModule",{value:!0});var qc=ki.default=void 0,Sh=Th(Ut()),kh=P;qc=ki.default=(0,Sh.default)((0,kh.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 Ri={},Rh=ce;Object.defineProperty(Ri,"__esModule",{value:!0});var Uc=Ri.default=void 0,Eh=Rh(Ut()),Mh=P;Uc=Ri.default=(0,Eh.default)((0,Mh.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");function Ei({children:e,...t}){const{t:n}=ct(),{updateAutoCheckUpdate:a,autoCheckUpdate:r}=Pm(),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 P.jsxs(de,{display:"flex",flexDirection:"row",alignItems:"center",children:[e,P.jsx(Rt,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:P.jsx("div",{children:P.jsx(Om,{checked:o,onChange:i,name:"enableWelcomePage",style:{...t.style,zoom:.8}})})})]})}Ei.propTypes={children:Q.any};Ei.defaultProps={children:null};var Gc={},Bn={},Ha={},Ya={},Ka={};const Hc=ze(hh);var ls;function Oh(){return ls||(ls=1,function(e){var t=ce;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ne),a=t(Hc),r=t(M),i=t(Qe),o=Pn;function l(s){var d=(0,o.useTheme)();return r.default.createElement("div",{ref:s.forwardedRef,style:{display:"table",width:"100%",height:"100%",backgroundColor:d.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(d,c){return r.default.createElement(l,(0,n.default)({},d,{forwardedRef:c}))});e.default=u}(Ka)),Ka}var Qa={},Xa={},wt={};const Je=ze(eg);var _h={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 d=typeof u=="function"?u(t):u;if(!Object.is(d,t)){const c=t;t=s??typeof d!="object"?d:Object.assign({},t,d),n.forEach(p=>p(t,c))}},r=()=>t,l={setState:a,getState:r,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(_h&&"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},Yc=e=>e?ss(e):ss;var Kc={exports:{}},Qc={},Xc={exports:{}},Jc={};/**
1
+ import{gs as Np,S as tn,gt as Fp,gu as Vp,fh as zp,gv as Wp,gw as qp,B as de,gr as Up,gx as Gp,gy as Hp,dJ as Yp,gz as Kp,gA as Qp,aQ as Xp,gB as Jp,gC as Zp,ao as Ot,j as P,W as Ut,X as ce,u as ct,a as Rt,P as Q,o as Oe,cn as ze,gD as Ne,r as M,cw as Qe,b8 as hi,co as Ko,gE as em,fe as re,aA as Fe,aB as Ve,aC as ae,T as vt,aF as q,cC as zr,aE as De,cy as ia,aI as Be,aJ as Ae,gF as tm,cX as la,cH as sa,gG as xc,dd as Pc,cD as nm,cd as pn,bm as yr,ay as rt,aD as rm,cY as Tc,b as cn,cO as Sc,bp as am,ae as om,gH as im,cI as Na,dq as lm,cP as Wr,gI as Gl,cN as qr,Z as ua,gJ as sm,ey as we,eu as Hl,gK as um,dC as bi,gL as cm,cq as dm,Y as at,aL as Ct,$ as Gt,aX as ur,a8 as Jt,eW as fm,gM as kc,bo as mn,gN as pm,fW as mm,eX as gn,eS as vi,eR as dn,a6 as rn,ap as Rc,aS as Mt,aY as Dn,x as pe,gO as gm,fJ as Ec,f_ as Mc,gP as hm,e as bm,c as Oc,aM as en,aV as un,aa as Fa,eF as vm,cM as Qo,bB as Xo,gQ as ym,a0 as jn,fl as Cm}from"./index-fG25goIy.js";import{d as Jo}from"./Add-CkUvZ8ne.js";import{E as wm,d as yi,F as Dm,a as Ci,L as wi}from"./Edit-DS1Mq3Qj.js";import{E as xm}from"./index-DmzTP_a0.js";import{g as Pm,h as Tm,i as Sm,W as hn,j as km,k as Di,B as _c,a as Ic,l as Rm,m as Em,n as Mm}from"./dashboard-D_A_KYtx.js";import{S as Om}from"./switch-control-Djddi9nC.js";import{P as Zo,w as xn}from"./permission-C9iOC8zT.js";import{b as _m,t as Im,c as Yl,T as Am}from"./index-3brZtWZ9.js";import{r as Pn,V as jm,R as Lm,F as Bm,C as $m,a as Nm,e as Fm,g as _t,f as Et,s as ca,h as an,q as Ac,p as xi,k as jc,m as Vm,l as zm,i as Tn,c as on,d as da,o as Wm,n as qm,v as Lc,y as Um,w as Gm,x as Hm,j as Ym,u as Km,t as Qm,b as Xm,z as Kl,D as Jm,A as Zm}from"./FilterList-rsX_pJAI.js";import{d as eg,_ as ee,b as Ql,c as tg,a as ng,e as rg}from"./redux-DTC_Jkdb.js";import{S as ag,d as og}from"./Search-Cjqsb3on.js";import{C as ig,r as xe,a as Pi,t as it,b as ye,e as ei,d as lg,s as Ur,g as ti,m as Bc,c as $c,f as sg,h as ug,i as ni,j as Nc,k as cg,l as dg,n as Fc,o as Ti,p as Xl,q as fg,u as Jl,v as pg,w as mg,x as Bt,y as gg,z as Zl,A as hg,B as Va,D as es,E as bg,F as za,G as Ln,H as vg,I as yg,J as Er,K as Wa,L as ts,M as qa,N as Ua,O as Cg,P as wg,Q as Dg,R as xg,S as Pg,T as Tg,U as Sg,V as kg,W as Rg,X as Eg,Y as Mg,Z as Og}from"./index-Dh7JA33-.js";import{C as _g,d as ns,B as Ig}from"./ChevronRight-D4XRflu9.js";import{D as Ag}from"./DeleteOutline-DeZPaQ1S.js";import{A as jg}from"./AddBox-CYLniHTg.js";import{o as Lg,e as Bg,i as $g,p as Ng,g as Fg,d as rs,c as Vg,b as Re,_ as Se,r as Ht}from"./slicedToArray-DkIYLQKw.js";import{t as zg,k as Wg,l as qg,_ as ke}from"./jss-plugin-props-sort.esm-w0rgdWJs.js";import{F as Ug,f as Gg,a as Hg,T as mt}from"./TextField-CebHGT3J.js";import{_ as Yg,G as nr}from"./Grid-D5J6kvn0.js";import{S as Kg}from"./Skeleton-BuWYKZPB.js";import{M as Vc,g as Qg,i as Xg}from"./InputAdornment-jSW0lrBI.js";import{m as Ze,t as Jg}from"./toUpper-BD8ypjwq.js";import{C as as}from"./click-to-copy-BepxNu11.js";import{d as Cr}from"./Delete-FnPlSebw.js";import{d as Zg}from"./ArrowDropDown-eEIvnybw.js";import{A as os}from"./Alert-DSAK-6uk.js";import{f as gt}from"./index-CdqltrPb.js";import{A as eh,a as th,b as nh,d as zc}from"./add-component-core-Bzv7N-Un.js";import{C as Sn}from"./confirm-Cv8oxTtx.js";import{v as rh,a as Gr}from"./util-DPyJsqCR.js";import{i as ah}from"./index-ZsDQ0ZLD.js";import{d as oh}from"./LockIcon-BbYgfgXm.js";import{d as Wc}from"./Launch-SkQPO1Cm.js";import{C as ih}from"./item-bwoWUlt2.js";import{A as lh}from"./Avatar-6cyEgEIs.js";import{E as Si}from"./Link-DpjXpC6x.js";import{d as sh}from"./InfoOutlined-D1P8n7sX.js";import{R as uh,a as is}from"./RadioGroup-DiqmtEFh.js";import{F as ri,C as ch}from"./FormControlLabel-D8u6upQ1.js";import{d as dh}from"./PlayArrow-C7kIbjaf.js";import{A as fh}from"./actions-CxX91LLq.js";import{I as Ga}from"./index-C5w04FB_.js";import{W as ph}from"./did-address-BKaFzmkz.js";import{T as mh}from"./index-CAl1tFNE.js";import{a as gh}from"./index-DMLGvPCM.js";import"./Done-DMoT8ohA.js";import"./logo-uploader-DZbF5KOt.js";import"./index-DwHEm9HC.js";import"./EditIcon-_ZF4_H7O.js";import"./ButtonGroup-CbL72-oE.js";import"./useLocalStorage-Ba50FLbS.js";import"./MoreVert-BbEIKsYw.js";import"./ListItemText-CVS1G1s8.js";import"./session-BRLUzB_V.js";import"./spaces-XGQ-YXCR.js";import"./index-D-XBJ_hS.js";import"./api-sAuPzOF6.js";import"./useSetState-GffjrhKI.js";import"./fallback-BrnkKdFy.js";import"./index-DBnR7IpU.js";import"./Toolbar-Bjp831p7.js";import"./Hidden-Bq2dXlPY.js";import"./MoreHoriz-DtO97ZT3.js";import"./ExpandMore-BLVLjrZd.js";import"./index-D8noUWUC.js";import"./selector-DBqg7pjs.js";import"./useSlot-fHevRUkf.js";import"./useAsync-QgQb6KwU.js";import"./TableRow-DSPkF0eX.js";import"./FormControl-BGBxSpFa.js";import"./useFormControl-C1fGK9Rc.js";import"./FormGroup-B459wuGu.js";import"./InputLabel-D4si6vrM.js";import"./Select-hmsiR_HX.js";import"./LastPage-B7zYSdUl.js";import"./lottie-DRoeX_V2.js";import"./config-space-B6jPcEh3.js";import"./launch-result-message-D5ZsOjgY.js";import"./page-header-B22lXwng.js";import"./uniqBy-BnSlopG4.js";import"./index-B_hqIPlg.js";import"./Google-BTJavqUA.js";import"./index-CPMqUyRS.js";import"./Stepper-BXkIeY17.js";import"./connect-to-BFFR-hu4.js";import"./use-blocklet-info-for-connect-did-spaces-6A-Z6p1J.js";import"./CloseOutlined-Cpeesg_y.js";import"./index-BfeaSLaW.js";import"./content-layout-D4_5Ol4a.js";import"./preact.module-B1z5cdvs.js";const hh=Object.freeze(Object.defineProperty({__proto__:null,circularProgressClasses:Np,default:tn,getCircularProgressUtilityClass:Fp},Symbol.toStringTag,{value:"Module"})),bh=Object.freeze(Object.defineProperty({__proto__:null,collapseClasses:Vp,default:zp,getCollapseUtilityClass:Wp},Symbol.toStringTag,{value:"Module"})),vh=Object.freeze(Object.defineProperty({__proto__:null,boxClasses:qp,default:de},Symbol.toStringTag,{value:"Module"})),yh=Object.freeze(Object.defineProperty({__proto__:null,default:Ug,formHelperTextClasses:Gg,getFormHelperTextUtilityClasses:Hg},Symbol.toStringTag,{value:"Module"})),Ch=Object.freeze(Object.defineProperty({__proto__:null,default:Up,getIconUtilityClass:Gp,iconClasses:Hp},Symbol.toStringTag,{value:"Module"})),wh=Object.freeze(Object.defineProperty({__proto__:null,default:Vc,getInputAdornmentUtilityClass:Qg,inputAdornmentClasses:Xg},Symbol.toStringTag,{value:"Module"})),Dh=Object.freeze(Object.defineProperty({__proto__:null,default:Yp,getLinearProgressUtilityClass:Kp,linearProgressClasses:Qp},Symbol.toStringTag,{value:"Module"})),xh=Object.freeze(Object.defineProperty({__proto__:null,default:Xp,getMenuUtilityClass:Jp,menuClasses:Zp},Symbol.toStringTag,{value:"Module"})),Ph=Ot(P.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 ki={},Th=ce;Object.defineProperty(ki,"__esModule",{value:!0});var qc=ki.default=void 0,Sh=Th(Ut()),kh=P;qc=ki.default=(0,Sh.default)((0,kh.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 Ri={},Rh=ce;Object.defineProperty(Ri,"__esModule",{value:!0});var Uc=Ri.default=void 0,Eh=Rh(Ut()),Mh=P;Uc=Ri.default=(0,Eh.default)((0,Mh.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");function Ei({children:e,...t}){const{t:n}=ct(),{updateAutoCheckUpdate:a,autoCheckUpdate:r}=Pm(),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 P.jsxs(de,{display:"flex",flexDirection:"row",alignItems:"center",children:[e,P.jsx(Rt,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:P.jsx("div",{children:P.jsx(Om,{checked:o,onChange:i,name:"enableWelcomePage",style:{...t.style,zoom:.8}})})})]})}Ei.propTypes={children:Q.any};Ei.defaultProps={children:null};var Gc={},Bn={},Ha={},Ya={},Ka={};const Hc=ze(hh);var ls;function Oh(){return ls||(ls=1,function(e){var t=ce;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ne),a=t(Hc),r=t(M),i=t(Qe),o=Pn;function l(s){var d=(0,o.useTheme)();return r.default.createElement("div",{ref:s.forwardedRef,style:{display:"table",width:"100%",height:"100%",backgroundColor:d.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(d,c){return r.default.createElement(l,(0,n.default)({},d,{forwardedRef:c}))});e.default=u}(Ka)),Ka}var Qa={},Xa={},wt={};const Je=ze(eg);var _h={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 d=typeof u=="function"?u(t):u;if(!Object.is(d,t)){const c=t;t=s??typeof d!="object"?d:Object.assign({},t,d),n.forEach(p=>p(t,c))}},r=()=>t,l={setState:a,getState:r,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(_h&&"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},Yc=e=>e?ss(e):ss;var Kc={exports:{}},Qc={},Xc={exports:{}},Jc={};/**
2
2
  * @license React
3
3
  * use-sync-external-store-shim.production.min.js
4
4
  *
@@ -1 +1 @@
1
- import{W as t,X as a,j as c,x as e}from"./index-ByQRo8Xy.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{W as t,X as a,j as c,x as e}from"./index-fG25goIy.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,Y as j,P as g,Z as I,u as U,af as q,bs as F,a8 as d,c as G,x as M,fl as z,eV as H,aO as Y,bU as D,o as Q}from"./index-ByQRo8Xy.js";import{u as V}from"./uniqBy-B_wbSsCI.js";import{S as $}from"./index-DLbZ_JZr.js";import{P as W}from"./page-header-H2fMhHk4.js";import{S as X}from"./layout-DKfygYsQ.js";import{S as Z}from"./step-actions-Do8z_g9W.js";import{S as J}from"./button-CI-oFf7d.js";import"./EditIcon-BTer7WGq.js";import"./Done-hH5-N5v0.js";import"./Google-B0xyZx_J.js";import"./TextField-CLOKo8rr.js";import"./FormControl-FOGVkAoE.js";import"./useFormControl-BVamiUiv.js";import"./InputLabel-D30LulZb.js";import"./Select-DeWWNQVN.js";import"./logo-uploader-Qe4fSMre.js";import"./index-Do5sTIF0.js";import"./content-layout-D8kIZCKQ.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(ee,{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 ee=j.div`
1
+ import{r as l,j as n,Y as j,P as g,Z as I,u as U,af as q,bs as F,a8 as d,c as G,x as M,fl as z,eV as H,aO as Y,bU as D,o as Q}from"./index-fG25goIy.js";import{u as V}from"./uniqBy-BnSlopG4.js";import{S as $}from"./index-B_hqIPlg.js";import{P as W}from"./page-header-B22lXwng.js";import{S as X}from"./layout-h5rjnmBP.js";import{S as Z}from"./step-actions-CSDiPZmH.js";import{S as J}from"./button-pUiVMawE.js";import"./EditIcon-_ZF4_H7O.js";import"./Done-DMoT8ohA.js";import"./Google-BTJavqUA.js";import"./TextField-CebHGT3J.js";import"./FormControl-BGBxSpFa.js";import"./useFormControl-C1fGK9Rc.js";import"./InputLabel-D4si6vrM.js";import"./Select-hmsiR_HX.js";import"./logo-uploader-DZbF5KOt.js";import"./index-DwHEm9HC.js";import"./content-layout-D4_5Ol4a.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(ee,{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 ee=j.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{R as Vr,r as D,aA as ri,aB as oi,aC as Kr,b as Ft,aF as re,aD as Et,cT as ii,fP as ai,aJ as li,aE as si,cY as ci,j as R,aI as di,S as ui,co as De,dx as ot,cw as qr,g9 as hi,dC as _t,fe as z,et as fi,b8 as Bt,P as b,ey as V,cn as pi,bB as ce,fV as gi,u as wt,cs as Ve,B as pe,T as me,b0 as vi,dG as mi,b7 as Qr,bb as Yr,b5 as Si,b6 as yi,ba as Ci,ga as _i,gb as wi,gc as xi,gd as bi,fa as Ri,fz as Ti,ge as Ii,gf as zi,gg as Pi,bc as hn,bi as Xr,aS as vt,M as Ut,ay as We,bl as Di,aY as Vt,a8 as Gt,bY as Ne,c as Oi,dp as ki,gh as Gn,bU as Ni,o as dt,dl as ut,ap as Li,a0 as Mi,gi as Ei,bd as Ai,gj as Jr,x as Jt,gk as ji,gl as Fi,eU as Gi,Y as Wi,Z as $i,ae as Zt,bO as Hi,f2 as Bi,bA as Te}from"./index-ByQRo8Xy.js";import{r as Ui,b as Vi,i as Wn,c as Ki,d as $n,D as qi,H as Qi}from"./index-DRKjEemf.js";import{_ as oe,a as Ke,b as Se,c as ye,d as Ce,r as Yi}from"./slicedToArray-Bc7bSR7A.js";import{_ as ae,i as Xi,f as Ji,j as Zi,a as ea,c as ta,d as na,b as ra,e as oa,g as ia,h as aa}from"./jss-plugin-props-sort.esm-Cck9yaTo.js";import{_ as w}from"./redux-ChkYhsNh.js";import{_ as la,G as Hn}from"./Grid-yCxJQYxc.js";import{_ as sa,u as Zr,b as ca}from"./dashboard-DQ4ngxOJ.js";import{u as da,C as it,A as ua}from"./index.esm-CPLyPsEX.js";import{p as ha,u as fa}from"./index-Ctp5CUSN.js";import{a as Bn}from"./index-D-XBJ_hS.js";import{F as Cn}from"./FormControl-FOGVkAoE.js";import{I as eo}from"./InputLabel-D30LulZb.js";import{S as fn,O as pa}from"./Select-DeWWNQVN.js";import{a as ga}from"./ListItemText-e5ekg1wb.js";import{F as va,T as en}from"./TextField-CLOKo8rr.js";import{b as ma,c as Un}from"./index-Dmhy_Ear.js";import{M as Vn}from"./InputAdornment-DUA05h7f.js";import{H as Sa,F as ya}from"./index-BCCq9_Ig.js";import{D as Ca}from"./index-CPnYs_Ln.js";import{S as tn}from"./Skeleton-VINmMOpD.js";import{f as Kn}from"./index-pDpS4wtg.js";import{B as nn}from"./ButtonGroup-DPL_1wz3.js";import{T as qn}from"./Toolbar-CoiO3etm.js";import"./useLocalStorage-BupvKFw0.js";import"./MoreVert-BlfI-m1v.js";import"./confirm-B3mdFD--.js";import"./Alert-D5YfCoUW.js";import"./useSlot-BO5miOj3.js";import"./Delete-0zNQNl-n.js";import"./PlayArrow-Nl_H1UBL.js";import"./RadioGroup-DeoyugEj.js";import"./FormControlLabel-C2ynx6-R.js";import"./useFormControl-BVamiUiv.js";import"./FormGroup-C8bxvRCn.js";import"./Avatar-isxOT3tA.js";import"./session-D1eiA1_r.js";import"./permission-CZsnNTVZ.js";import"./useAsync-vQc8FFGm.js";import"./index-CGGlwLvN.js";import"./spaces-9alAi49r.js";import"./index-BeplF-8F.js";import"./api-Cf224rl9.js";import"./Link-BXzMp1xg.js";import"./useSetState-B4GQTE_e.js";import"./fallback-BMS2ZyNw.js";import"./index-DN1AldP1.js";import"./Hidden-BUue-5gv.js";import"./MoreHoriz-BUMFUhwJ.js";import"./ExpandMore-BgFo69Uu.js";import"./selector-CqvONJVH.js";function _a(t,o){t===void 0&&(t=!1);var r=Vr(D.useState(t),2),e=r[0],n=r[1],i=D.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 wa(t){t===void 0&&(t=!1);var o=Vr(_a(!!t),2),r=o[0],e=o[1],n=e.toggle,i=e.set,a=D.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]}function xa(t){return oi("MuiLoadingButton",t)}const ba=ri("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),Ie=ba,Ra=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],Ta=t=>{const{loading:o,loadingPosition:r,classes:e}=t,n={root:["root",o&&"loading"],startIcon:[o&&`startIconLoading${Et(r)}`],endIcon:[o&&`endIconLoading${Et(r)}`],loadingIndicator:["loadingIndicator",o&&`loadingIndicator${Et(r)}`]},i=di(n,xa,e);return re({},e,i)},Ia=t=>t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"&&t!=="classes",za=Kr(Ft,{shouldForwardProp:t=>Ia(t)||t==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(t,o)=>[o.root,o.startIconLoadingStart&&{[`& .${Ie.startIconLoadingStart}`]:o.startIconLoadingStart},o.endIconLoadingEnd&&{[`& .${Ie.endIconLoadingEnd}`]:o.endIconLoadingEnd}]})(({ownerState:t,theme:o})=>re({[`& .${Ie.startIconLoadingStart}, & .${Ie.endIconLoadingEnd}`]:{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0}},t.loadingPosition==="center"&&{transition:o.transitions.create(["background-color","box-shadow","border-color"],{duration:o.transitions.duration.short}),[`&.${Ie.loading}`]:{color:"transparent"}},t.loadingPosition==="start"&&t.fullWidth&&{[`& .${Ie.startIconLoadingStart}, & .${Ie.endIconLoadingEnd}`]:{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0,marginRight:-8}},t.loadingPosition==="end"&&t.fullWidth&&{[`& .${Ie.startIconLoadingStart}, & .${Ie.endIconLoadingEnd}`]:{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0,marginLeft:-8}})),Pa=Kr("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.loadingIndicator,o[`loadingIndicator${Et(r.loadingPosition)}`]]}})(({theme:t,ownerState:o})=>re({position:"absolute",visibility:"visible",display:"flex"},o.loadingPosition==="start"&&(o.variant==="outlined"||o.variant==="contained")&&{left:o.size==="small"?10:14},o.loadingPosition==="start"&&o.variant==="text"&&{left:6},o.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled},o.loadingPosition==="end"&&(o.variant==="outlined"||o.variant==="contained")&&{right:o.size==="small"?10:14},o.loadingPosition==="end"&&o.variant==="text"&&{right:6},o.loadingPosition==="start"&&o.fullWidth&&{position:"relative",left:-10},o.loadingPosition==="end"&&o.fullWidth&&{position:"relative",right:-10})),Da=D.forwardRef(function(o,r){const e=D.useContext(ii),n=ai(e,o),i=li({props:n,name:"MuiLoadingButton"}),{children:a,disabled:l=!1,id:s,loading:d=!1,loadingIndicator:c,loadingPosition:u="center",variant:h="text"}=i,p=si(i,Ra),f=ci(s),m=c??R.jsx(ui,{"aria-labelledby":f,color:"inherit",size:16}),S=re({},i,{disabled:l,loading:d,loadingIndicator:m,loadingPosition:u,variant:h}),y=Ta(S),v=d?R.jsx(Pa,{className:y.loadingIndicator,ownerState:S,children:m}):null;return R.jsxs(za,re({disabled:l||d,id:f,ref:r},p,{variant:h,classes:y,ownerState:S,children:[S.loadingPosition==="end"?a:v,S.loadingPosition==="end"?v:a]}))}),Qn=Da;var ke={},to="Expected a function",Yn=NaN,Oa="[object Symbol]",ka=/^\s+|\s+$/g,Na=/^[-+]0x[0-9a-f]+$/i,La=/^0b[01]+$/i,Ma=/^0o[0-7]+$/i,Ea=parseInt,Aa=typeof De=="object"&&De&&De.Object===Object&&De,ja=typeof self=="object"&&self&&self.Object===Object&&self,Fa=Aa||ja||Function("return this")(),Ga=Object.prototype,Wa=Ga.toString,$a=Math.max,Ha=Math.min,rn=function(){return Fa.Date.now()};function Ba(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(to);o=Xn(o)||0,Wt(r)&&(c=!!r.leading,u="maxWait"in r,i=u?$a(Xn(r.maxWait)||0,o):i,h="trailing"in r?!!r.trailing:h);function p(x){var C=e,I=n;return e=n=void 0,d=x,a=t.apply(I,C),a}function f(x){return d=x,l=setTimeout(y,o),c?p(x):a}function m(x){var C=x-s,I=x-d,k=o-C;return u?Ha(k,i-I):k}function S(x){var C=x-s,I=x-d;return s===void 0||C>=o||C<0||u&&I>=i}function y(){var x=rn();if(S(x))return v(x);l=setTimeout(y,m(x))}function v(x){return l=void 0,h&&e?p(x):(e=n=void 0,a)}function T(){l!==void 0&&clearTimeout(l),d=0,e=s=n=l=void 0}function _(){return l===void 0?a:v(rn())}function g(){var x=rn(),C=S(x);if(e=arguments,n=this,s=x,C){if(l===void 0)return f(s);if(u)return l=setTimeout(y,o),p(s)}return l===void 0&&(l=setTimeout(y,o)),a}return g.cancel=T,g.flush=_,g}function Ua(t,o,r){var e=!0,n=!0;if(typeof t!="function")throw new TypeError(to);return Wt(r)&&(e="leading"in r?!!r.leading:e,n="trailing"in r?!!r.trailing:n),Ba(t,o,{leading:e,maxWait:o,trailing:n})}function Wt(t){var o=typeof t;return!!t&&(o=="object"||o=="function")}function Va(t){return!!t&&typeof t=="object"}function Ka(t){return typeof t=="symbol"||Va(t)&&Wa.call(t)==Oa}function Xn(t){if(typeof t=="number")return t;if(Ka(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(ka,"");var r=La.test(t);return r||Ma.test(t)?Ea(t.slice(2),r?2:8):Na.test(t)?Yn:+t}var qa=Ua,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 ot<"u"&&ot!==null&&ot.hrtime?(ht.exports=function(){return(t()-n)/1e6},o=ot.hrtime,t=function(){var a;return a=o(),a[0]*1e9+a[1]},e=t(),i=ot.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(De);var Qa=ht.exports,Ya=Qa,Oe=typeof window>"u"?De:window,Ot=["moz","webkit"],Ye="AnimationFrame",Je=Oe["request"+Ye],yt=Oe["cancel"+Ye]||Oe["cancelRequest"+Ye];for(var at=0;!Je&&at<Ot.length;at++)Je=Oe[Ot[at]+"Request"+Ye],yt=Oe[Ot[at]+"Cancel"+Ye]||Oe[Ot[at]+"CancelRequest"+Ye];if(!Je||!yt){var on=0,Jn=0,je=[],Xa=1e3/60;Je=function(t){if(je.length===0){var o=Ya(),r=Math.max(0,Xa-(o-on));on=r+o,setTimeout(function(){var e=je.slice(0);je.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 je.push({handle:++Jn,callback:t,cancelled:!1}),Jn},yt=function(t){for(var o=0;o<je.length;o++)je[o].handle===t&&(je[o].cancelled=!0)}}Kt.exports=function(t){return Je.call(Oe,t)};Kt.exports.cancel=function(){yt.apply(Oe,arguments)};Kt.exports.polyfill=function(t){t||(t=Oe),t.requestAnimationFrame=Je,t.cancelAnimationFrame=yt};var Ja=Kt.exports,_n={};Object.defineProperty(_n,"__esModule",{value:!0});_n.default=Za;function Za(t){return t.displayName||t.name||(typeof t=="string"&&t.length>0?t:"Unknown")}var xt={};Object.defineProperty(xt,"__esModule",{value:!0});xt.noop=el;xt.intBetween=tl;xt.getCoords=nl;function el(){}function tl(t,o,r){return Math.floor(Math.min(o,Math.max(t,r)))}function nl(t){return t.type==="touchmove"?{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}:{x:t.clientX,y:t.clientY}}Object.defineProperty(ke,"__esModule",{value:!0});var rl=ke.createHorizontalStrength=ro,ol=ke.createVerticalStrength=oo,il=ke.createScrollingComponent=lo,al=ke.default=yl;ke.defaultVerticalStrength=ke.defaultHorizontalStrength=void 0;var mt=hl(D),lt=bt(qr),ll=_t,sl=bt(qa),Zn=bt(Ja),cl=bt(_n),dl=Ui,ul=bt(hi),kt=xt;function bt(t){return t&&t.__esModule?t:{default:t}}function hl(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 At(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?At=function(r){return typeof r}:At=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},At(t)}function $t(){return $t=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},$t.apply(this,arguments)}function fl(t,o){if(t==null)return{};var r=pl(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 pl(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 gl(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function er(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 vl(t,o,r){return o&&er(t.prototype,o),r&&er(t,r),t}function ml(t,o){return o&&(At(o)==="object"||typeof o=="function")?o:ft(t)}function pn(t){return pn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},pn(t)}function Sl(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&&gn(t,o)}function gn(t,o){return gn=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},gn(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 st(t,o,r){return o in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t}var no=150;function ro(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 oo(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 io=ro(no);ke.defaultHorizontalStrength=io;var ao=oo(no);ke.defaultVerticalStrength=ao;function lo(t){var o=function(r){Sl(e,r);function e(n,i){var a;return gl(this,e),a=ml(this,pn(e).call(this,n,i)),st(ft(ft(a)),"updateScrolling",(0,sl.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,kt.getCoords)(l),m=a.props,S=m.horizontalStrength,y=m.verticalStrength;a.scaleX=S(p,f),a.scaleY=y(p,f),!a.frame&&(a.scaleX||a.scaleY)&&a.startScrolling()},100,{trailing:!1})),st(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 vl(e,[{key:"componentDidMount",value:function(){var i=this;this.container=(0,ll.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,y=u.scrollWidth,v=u.scrollHeight,T=u.clientWidth,_=u.clientHeight,g=d?u.scrollLeft=(0,kt.intBetween)(0,y-T,m+d*p):m,x=c?u.scrollTop=(0,kt.intBetween)(0,v-_,S+c*p):S;f(g,x)}i.frame=(0,Zn.default)(s)};l()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(Zn.default.cancel(this.frame),this.frame=null)}},{key:"render",value:function(){var i=this.props;i.strengthMultiplier,i.verticalStrength,i.horizontalStrength,i.onScrollChange;var a=fl(i,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]);return mt.default.createElement(t,$t({ref:this.wrappedInstance},a))}}]),e}(mt.Component);return st(o,"displayName","Scrolling(".concat((0,cl.default)(t),")")),st(o,"propTypes",{dragDropManager:lt.default.object.isRequired,onScrollChange:lt.default.func,verticalStrength:lt.default.func,horizontalStrength:lt.default.func,strengthMultiplier:lt.default.number}),st(o,"defaultProps",{onScrollChange:kt.noop,verticalStrength:ao,horizontalStrength:io,strengthMultiplier:30}),(0,ul.default)(o,t)}function yl(t){var o=lo(t);return function(r){return mt.default.createElement(dl.DragDropContextConsumer,null,function(e){var n=e.dragDropManager;return n===void 0?null:mt.default.createElement(o,$t({},r,{dragDropManager:n}))})}}function so(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);t!=null&&this.setState(t)}function co(t){function o(r){var e=this.constructor.getDerivedStateFromProps(t,r);return e??null}this.setState(o.bind(this))}function uo(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}}so.__suppressDeprecationWarning=!0;co.__suppressDeprecationWarning=!0;uo.__suppressDeprecationWarning=!0;function Rt(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{R as Vr,r as D,aA as ri,aB as oi,aC as Kr,b as Ft,aF as re,aD as Et,cT as ii,fP as ai,aJ as li,aE as si,cY as ci,j as R,aI as di,S as ui,co as De,dx as ot,cw as qr,g9 as hi,dC as _t,fe as z,et as fi,b8 as Bt,P as b,ey as V,cn as pi,bB as ce,fV as gi,u as wt,cs as Ve,B as pe,T as me,b0 as vi,dG as mi,b7 as Qr,bb as Yr,b5 as Si,b6 as yi,ba as Ci,ga as _i,gb as wi,gc as xi,gd as bi,fa as Ri,fz as Ti,ge as Ii,gf as zi,gg as Pi,bc as hn,bi as Xr,aS as vt,M as Ut,ay as We,bl as Di,aY as Vt,a8 as Gt,bY as Ne,c as Oi,dp as ki,gh as Gn,bU as Ni,o as dt,dl as ut,ap as Li,a0 as Mi,gi as Ei,bd as Ai,gj as Jr,x as Jt,gk as ji,gl as Fi,eU as Gi,Y as Wi,Z as $i,ae as Zt,bO as Hi,f2 as Bi,bA as Te}from"./index-fG25goIy.js";import{r as Ui,b as Vi,i as Wn,c as Ki,d as $n,D as qi,H as Qi}from"./index-D3pN0lCt.js";import{_ as oe,a as Ke,b as Se,c as ye,d as Ce,r as Yi}from"./slicedToArray-DkIYLQKw.js";import{_ as ae,i as Xi,f as Ji,j as Zi,a as ea,c as ta,d as na,b as ra,e as oa,g as ia,h as aa}from"./jss-plugin-props-sort.esm-w0rgdWJs.js";import{_ as w}from"./redux-DTC_Jkdb.js";import{_ as la,G as Hn}from"./Grid-D5J6kvn0.js";import{_ as sa,u as Zr,b as ca}from"./dashboard-D_A_KYtx.js";import{u as da,C as it,A as ua}from"./index.esm-6YbQ5Xmm.js";import{p as ha,u as fa}from"./index-CHtMZbHk.js";import{a as Bn}from"./index-D-XBJ_hS.js";import{F as Cn}from"./FormControl-BGBxSpFa.js";import{I as eo}from"./InputLabel-D4si6vrM.js";import{S as fn,O as pa}from"./Select-hmsiR_HX.js";import{a as ga}from"./ListItemText-CVS1G1s8.js";import{F as va,T as en}from"./TextField-CebHGT3J.js";import{b as ma,c as Un}from"./index-3brZtWZ9.js";import{M as Vn}from"./InputAdornment-jSW0lrBI.js";import{H as Sa,F as ya}from"./index-DlqvRRPO.js";import{D as Ca}from"./index-D8noUWUC.js";import{S as tn}from"./Skeleton-BuWYKZPB.js";import{f as Kn}from"./index-CdqltrPb.js";import{B as nn}from"./ButtonGroup-CbL72-oE.js";import{T as qn}from"./Toolbar-Bjp831p7.js";import"./useLocalStorage-Ba50FLbS.js";import"./MoreVert-BbEIKsYw.js";import"./confirm-Cv8oxTtx.js";import"./Alert-DSAK-6uk.js";import"./useSlot-fHevRUkf.js";import"./Delete-FnPlSebw.js";import"./PlayArrow-C7kIbjaf.js";import"./RadioGroup-DiqmtEFh.js";import"./FormControlLabel-D8u6upQ1.js";import"./useFormControl-C1fGK9Rc.js";import"./FormGroup-B459wuGu.js";import"./Avatar-6cyEgEIs.js";import"./session-BRLUzB_V.js";import"./permission-C9iOC8zT.js";import"./useAsync-QgQb6KwU.js";import"./index-CAl1tFNE.js";import"./spaces-XGQ-YXCR.js";import"./index-ZsDQ0ZLD.js";import"./api-sAuPzOF6.js";import"./Link-DpjXpC6x.js";import"./useSetState-GffjrhKI.js";import"./fallback-BrnkKdFy.js";import"./index-DBnR7IpU.js";import"./Hidden-Bq2dXlPY.js";import"./MoreHoriz-DtO97ZT3.js";import"./ExpandMore-BLVLjrZd.js";import"./selector-DBqg7pjs.js";function _a(t,o){t===void 0&&(t=!1);var r=Vr(D.useState(t),2),e=r[0],n=r[1],i=D.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 wa(t){t===void 0&&(t=!1);var o=Vr(_a(!!t),2),r=o[0],e=o[1],n=e.toggle,i=e.set,a=D.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]}function xa(t){return oi("MuiLoadingButton",t)}const ba=ri("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),Ie=ba,Ra=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],Ta=t=>{const{loading:o,loadingPosition:r,classes:e}=t,n={root:["root",o&&"loading"],startIcon:[o&&`startIconLoading${Et(r)}`],endIcon:[o&&`endIconLoading${Et(r)}`],loadingIndicator:["loadingIndicator",o&&`loadingIndicator${Et(r)}`]},i=di(n,xa,e);return re({},e,i)},Ia=t=>t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"&&t!=="classes",za=Kr(Ft,{shouldForwardProp:t=>Ia(t)||t==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(t,o)=>[o.root,o.startIconLoadingStart&&{[`& .${Ie.startIconLoadingStart}`]:o.startIconLoadingStart},o.endIconLoadingEnd&&{[`& .${Ie.endIconLoadingEnd}`]:o.endIconLoadingEnd}]})(({ownerState:t,theme:o})=>re({[`& .${Ie.startIconLoadingStart}, & .${Ie.endIconLoadingEnd}`]:{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0}},t.loadingPosition==="center"&&{transition:o.transitions.create(["background-color","box-shadow","border-color"],{duration:o.transitions.duration.short}),[`&.${Ie.loading}`]:{color:"transparent"}},t.loadingPosition==="start"&&t.fullWidth&&{[`& .${Ie.startIconLoadingStart}, & .${Ie.endIconLoadingEnd}`]:{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0,marginRight:-8}},t.loadingPosition==="end"&&t.fullWidth&&{[`& .${Ie.startIconLoadingStart}, & .${Ie.endIconLoadingEnd}`]:{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0,marginLeft:-8}})),Pa=Kr("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.loadingIndicator,o[`loadingIndicator${Et(r.loadingPosition)}`]]}})(({theme:t,ownerState:o})=>re({position:"absolute",visibility:"visible",display:"flex"},o.loadingPosition==="start"&&(o.variant==="outlined"||o.variant==="contained")&&{left:o.size==="small"?10:14},o.loadingPosition==="start"&&o.variant==="text"&&{left:6},o.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled},o.loadingPosition==="end"&&(o.variant==="outlined"||o.variant==="contained")&&{right:o.size==="small"?10:14},o.loadingPosition==="end"&&o.variant==="text"&&{right:6},o.loadingPosition==="start"&&o.fullWidth&&{position:"relative",left:-10},o.loadingPosition==="end"&&o.fullWidth&&{position:"relative",right:-10})),Da=D.forwardRef(function(o,r){const e=D.useContext(ii),n=ai(e,o),i=li({props:n,name:"MuiLoadingButton"}),{children:a,disabled:l=!1,id:s,loading:d=!1,loadingIndicator:c,loadingPosition:u="center",variant:h="text"}=i,p=si(i,Ra),f=ci(s),m=c??R.jsx(ui,{"aria-labelledby":f,color:"inherit",size:16}),S=re({},i,{disabled:l,loading:d,loadingIndicator:m,loadingPosition:u,variant:h}),y=Ta(S),v=d?R.jsx(Pa,{className:y.loadingIndicator,ownerState:S,children:m}):null;return R.jsxs(za,re({disabled:l||d,id:f,ref:r},p,{variant:h,classes:y,ownerState:S,children:[S.loadingPosition==="end"?a:v,S.loadingPosition==="end"?v:a]}))}),Qn=Da;var ke={},to="Expected a function",Yn=NaN,Oa="[object Symbol]",ka=/^\s+|\s+$/g,Na=/^[-+]0x[0-9a-f]+$/i,La=/^0b[01]+$/i,Ma=/^0o[0-7]+$/i,Ea=parseInt,Aa=typeof De=="object"&&De&&De.Object===Object&&De,ja=typeof self=="object"&&self&&self.Object===Object&&self,Fa=Aa||ja||Function("return this")(),Ga=Object.prototype,Wa=Ga.toString,$a=Math.max,Ha=Math.min,rn=function(){return Fa.Date.now()};function Ba(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(to);o=Xn(o)||0,Wt(r)&&(c=!!r.leading,u="maxWait"in r,i=u?$a(Xn(r.maxWait)||0,o):i,h="trailing"in r?!!r.trailing:h);function p(x){var C=e,I=n;return e=n=void 0,d=x,a=t.apply(I,C),a}function f(x){return d=x,l=setTimeout(y,o),c?p(x):a}function m(x){var C=x-s,I=x-d,k=o-C;return u?Ha(k,i-I):k}function S(x){var C=x-s,I=x-d;return s===void 0||C>=o||C<0||u&&I>=i}function y(){var x=rn();if(S(x))return v(x);l=setTimeout(y,m(x))}function v(x){return l=void 0,h&&e?p(x):(e=n=void 0,a)}function T(){l!==void 0&&clearTimeout(l),d=0,e=s=n=l=void 0}function _(){return l===void 0?a:v(rn())}function g(){var x=rn(),C=S(x);if(e=arguments,n=this,s=x,C){if(l===void 0)return f(s);if(u)return l=setTimeout(y,o),p(s)}return l===void 0&&(l=setTimeout(y,o)),a}return g.cancel=T,g.flush=_,g}function Ua(t,o,r){var e=!0,n=!0;if(typeof t!="function")throw new TypeError(to);return Wt(r)&&(e="leading"in r?!!r.leading:e,n="trailing"in r?!!r.trailing:n),Ba(t,o,{leading:e,maxWait:o,trailing:n})}function Wt(t){var o=typeof t;return!!t&&(o=="object"||o=="function")}function Va(t){return!!t&&typeof t=="object"}function Ka(t){return typeof t=="symbol"||Va(t)&&Wa.call(t)==Oa}function Xn(t){if(typeof t=="number")return t;if(Ka(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(ka,"");var r=La.test(t);return r||Ma.test(t)?Ea(t.slice(2),r?2:8):Na.test(t)?Yn:+t}var qa=Ua,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 ot<"u"&&ot!==null&&ot.hrtime?(ht.exports=function(){return(t()-n)/1e6},o=ot.hrtime,t=function(){var a;return a=o(),a[0]*1e9+a[1]},e=t(),i=ot.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(De);var Qa=ht.exports,Ya=Qa,Oe=typeof window>"u"?De:window,Ot=["moz","webkit"],Ye="AnimationFrame",Je=Oe["request"+Ye],yt=Oe["cancel"+Ye]||Oe["cancelRequest"+Ye];for(var at=0;!Je&&at<Ot.length;at++)Je=Oe[Ot[at]+"Request"+Ye],yt=Oe[Ot[at]+"Cancel"+Ye]||Oe[Ot[at]+"CancelRequest"+Ye];if(!Je||!yt){var on=0,Jn=0,je=[],Xa=1e3/60;Je=function(t){if(je.length===0){var o=Ya(),r=Math.max(0,Xa-(o-on));on=r+o,setTimeout(function(){var e=je.slice(0);je.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 je.push({handle:++Jn,callback:t,cancelled:!1}),Jn},yt=function(t){for(var o=0;o<je.length;o++)je[o].handle===t&&(je[o].cancelled=!0)}}Kt.exports=function(t){return Je.call(Oe,t)};Kt.exports.cancel=function(){yt.apply(Oe,arguments)};Kt.exports.polyfill=function(t){t||(t=Oe),t.requestAnimationFrame=Je,t.cancelAnimationFrame=yt};var Ja=Kt.exports,_n={};Object.defineProperty(_n,"__esModule",{value:!0});_n.default=Za;function Za(t){return t.displayName||t.name||(typeof t=="string"&&t.length>0?t:"Unknown")}var xt={};Object.defineProperty(xt,"__esModule",{value:!0});xt.noop=el;xt.intBetween=tl;xt.getCoords=nl;function el(){}function tl(t,o,r){return Math.floor(Math.min(o,Math.max(t,r)))}function nl(t){return t.type==="touchmove"?{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}:{x:t.clientX,y:t.clientY}}Object.defineProperty(ke,"__esModule",{value:!0});var rl=ke.createHorizontalStrength=ro,ol=ke.createVerticalStrength=oo,il=ke.createScrollingComponent=lo,al=ke.default=yl;ke.defaultVerticalStrength=ke.defaultHorizontalStrength=void 0;var mt=hl(D),lt=bt(qr),ll=_t,sl=bt(qa),Zn=bt(Ja),cl=bt(_n),dl=Ui,ul=bt(hi),kt=xt;function bt(t){return t&&t.__esModule?t:{default:t}}function hl(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 At(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?At=function(r){return typeof r}:At=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},At(t)}function $t(){return $t=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},$t.apply(this,arguments)}function fl(t,o){if(t==null)return{};var r=pl(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 pl(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 gl(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function er(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 vl(t,o,r){return o&&er(t.prototype,o),r&&er(t,r),t}function ml(t,o){return o&&(At(o)==="object"||typeof o=="function")?o:ft(t)}function pn(t){return pn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},pn(t)}function Sl(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&&gn(t,o)}function gn(t,o){return gn=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},gn(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 st(t,o,r){return o in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t}var no=150;function ro(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 oo(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 io=ro(no);ke.defaultHorizontalStrength=io;var ao=oo(no);ke.defaultVerticalStrength=ao;function lo(t){var o=function(r){Sl(e,r);function e(n,i){var a;return gl(this,e),a=ml(this,pn(e).call(this,n,i)),st(ft(ft(a)),"updateScrolling",(0,sl.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,kt.getCoords)(l),m=a.props,S=m.horizontalStrength,y=m.verticalStrength;a.scaleX=S(p,f),a.scaleY=y(p,f),!a.frame&&(a.scaleX||a.scaleY)&&a.startScrolling()},100,{trailing:!1})),st(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 vl(e,[{key:"componentDidMount",value:function(){var i=this;this.container=(0,ll.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,y=u.scrollWidth,v=u.scrollHeight,T=u.clientWidth,_=u.clientHeight,g=d?u.scrollLeft=(0,kt.intBetween)(0,y-T,m+d*p):m,x=c?u.scrollTop=(0,kt.intBetween)(0,v-_,S+c*p):S;f(g,x)}i.frame=(0,Zn.default)(s)};l()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(Zn.default.cancel(this.frame),this.frame=null)}},{key:"render",value:function(){var i=this.props;i.strengthMultiplier,i.verticalStrength,i.horizontalStrength,i.onScrollChange;var a=fl(i,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]);return mt.default.createElement(t,$t({ref:this.wrappedInstance},a))}}]),e}(mt.Component);return st(o,"displayName","Scrolling(".concat((0,cl.default)(t),")")),st(o,"propTypes",{dragDropManager:lt.default.object.isRequired,onScrollChange:lt.default.func,verticalStrength:lt.default.func,horizontalStrength:lt.default.func,strengthMultiplier:lt.default.number}),st(o,"defaultProps",{onScrollChange:kt.noop,verticalStrength:ao,horizontalStrength:io,strengthMultiplier:30}),(0,ul.default)(o,t)}function yl(t){var o=lo(t);return function(r){return mt.default.createElement(dl.DragDropContextConsumer,null,function(e){var n=e.dragDropManager;return n===void 0?null:mt.default.createElement(o,$t({},r,{dragDropManager:n}))})}}function so(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);t!=null&&this.setState(t)}function co(t){function o(r){var e=this.constructor.getDerivedStateFromProps(t,r);return e??null}this.setState(o.bind(this))}function uo(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}}so.__suppressDeprecationWarning=!0;co.__suppressDeprecationWarning=!0;uo.__suppressDeprecationWarning=!0;function Rt(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,Y as C0,j as y,S as YM,r as r0,cm as KM,cn as WA,co as QM,cp as db,b8 as aA,Z as hb,ab as nA,c as dA,cq as tA,cr as iA,cs as rA,ct as sA,cu as fA,cv as uA,T as RA,C as lA,aY as Xb,aL as LA,bd as NA,cw as BA,bc as tb,o as hA,a8 as XA}from"./index-ByQRo8Xy.js";import{S as W2}from"./Skeleton-VINmMOpD.js";import{H as mA}from"./Hidden-BUue-5gv.js";import{b as TA,c as yA,g as gA}from"./spaces-9alAi49r.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,Y as C0,j as y,S as YM,r as r0,cm as KM,cn as WA,co as QM,cp as db,b8 as aA,Z as hb,ab as nA,c as dA,cq as tA,cr as iA,cs as rA,ct as sA,cu as fA,cv as uA,T as RA,C as lA,aY as Xb,aL as LA,bd as NA,cw as BA,bc as tb,o as hA,a8 as XA}from"./index-fG25goIy.js";import{S as W2}from"./Skeleton-BuWYKZPB.js";import{H as mA}from"./Hidden-Bq2dXlPY.js";import{b as TA,c as yA,g as gA}from"./spaces-XGQ-YXCR.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{cL as L,Z as x,r as t,u as _,bm as N,j as n,cM as O,cN as z,cO as F,a0 as y,S as Q,P as o,Y,cP as Z}from"./index-ByQRo8Xy.js";import{D as G,f as H}from"./index-pDpS4wtg.js";import{A as I}from"./Alert-D5YfCoUW.js";function J(){var e;const s=L();return(e=s==null?void 0:s.$$material)!=null?e:s}function K(){const e=J();return{minWidth:x(e.breakpoints.down("md"))?300:e.breakpoints.values.sm}}function C({title:e,description:s,showCancel:c,cancel:b,confirm:j,color:k,params:S,onCancel:w,onConfirm:D,loading:l,displayError:T,children:v,...P}){const[r,$]=t.useState(S),[E,d]=t.useState(!0),[m,p]=t.useState(!1),[u,f]=t.useState(""),{t:M}=_(),B=N(),h=async a=>{if(typeof a=="function"){p(!0);try{if(await a(r)===!1)return;d(!1)}catch(i){f(H(i)),console.error(i)}finally{p(!1)}}else d(!1)},R=typeof e=="function"?e():e,W=typeof s=="function"?s(r,$,f):s,q=x(B.breakpoints.down("md")),A=a=>{a.stopPropagation()},{minWidth:g}=K();return n.jsxs(U,{onClick:A,fullScreen:q,open:E,style:{minWidth:g},...P,children:[n.jsx(O,{children:R}),n.jsxs(z,{style:{minWidth:g},children:[n.jsx(G,{component:"div",children:W}),!!u&&T&&n.jsx(I,{severity:"error",style:{width:"100%",marginTop:8},children:u}),v]}),n.jsxs(F,{className:"delete-actions",style:{padding:"8px 24px 24px"},children:[c&&n.jsx(y,{onClick:a=>{a.stopPropagation(),h(w)},color:"inherit","data-cy":"cancel-confirm-dialog",children:b||M("common.cancel")}),n.jsxs(y,{onClick:a=>{a.stopPropagation(),h(D)},color:k,disabled:r.__disableConfirm||m||l,variant:"contained","data-cy":"submit-confirm-dialog",autoFocus:!0,children:[(m||l)&&n.jsx(Q,{size:16,sx:{mr:1}}),j]})]})]})}C.propTypes={title:o.any.isRequired,description:o.any.isRequired,showCancel: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};C.defaultProps={children:void 0,onCancel:()=>{},showCancel:!0,cancel:"",confirm:"Confirm",color:"error",params:{},loading:!1,displayError:!0};const U=Y(Z)`
1
+ import{cL as L,Z as x,r as t,u as _,bm as N,j as n,cM as O,cN as z,cO as F,a0 as y,S as Q,P as o,Y,cP as Z}from"./index-fG25goIy.js";import{D as G,f as H}from"./index-CdqltrPb.js";import{A as I}from"./Alert-DSAK-6uk.js";function J(){var e;const s=L();return(e=s==null?void 0:s.$$material)!=null?e:s}function K(){const e=J();return{minWidth:x(e.breakpoints.down("md"))?300:e.breakpoints.values.sm}}function C({title:e,description:s,showCancel:c,cancel:b,confirm:j,color:k,params:S,onCancel:w,onConfirm:D,loading:l,displayError:T,children:v,...P}){const[r,$]=t.useState(S),[E,d]=t.useState(!0),[m,p]=t.useState(!1),[u,f]=t.useState(""),{t:M}=_(),B=N(),h=async a=>{if(typeof a=="function"){p(!0);try{if(await a(r)===!1)return;d(!1)}catch(i){f(H(i)),console.error(i)}finally{p(!1)}}else d(!1)},R=typeof e=="function"?e():e,W=typeof s=="function"?s(r,$,f):s,q=x(B.breakpoints.down("md")),A=a=>{a.stopPropagation()},{minWidth:g}=K();return n.jsxs(U,{onClick:A,fullScreen:q,open:E,style:{minWidth:g},...P,children:[n.jsx(O,{children:R}),n.jsxs(z,{style:{minWidth:g},children:[n.jsx(G,{component:"div",children:W}),!!u&&T&&n.jsx(I,{severity:"error",style:{width:"100%",marginTop:8},children:u}),v]}),n.jsxs(F,{className:"delete-actions",style:{padding:"8px 24px 24px"},children:[c&&n.jsx(y,{onClick:a=>{a.stopPropagation(),h(w)},color:"inherit","data-cy":"cancel-confirm-dialog",children:b||M("common.cancel")}),n.jsxs(y,{onClick:a=>{a.stopPropagation(),h(D)},color:k,disabled:r.__disableConfirm||m||l,variant:"contained","data-cy":"submit-confirm-dialog",autoFocus:!0,children:[(m||l)&&n.jsx(Q,{size:16,sx:{mr:1}}),j]})]})]})}C.propTypes={title:o.any.isRequired,description:o.any.isRequired,showCancel: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};C.defaultProps={children:void 0,onCancel:()=>{},showCancel:!0,cancel:"",confirm:"Confirm",color:"error",params:{},loading:!1,displayError:!0};const U=Y(Z)`
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,fk as m,c as x,j as t,C as i,S as g,T as w,G as C,s as T,o as j,P as k,Y as S,F as v}from"./index-ByQRo8Xy.js";import{_ as P}from"./useAsync-vQc8FFGm.js";function U({children:p}){const{t:r,locale:u}=y(),{api:c,session:a}=h(),{encryptKey:l,decrypt:d}=m(),n=P(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!n.value||n.loading||a.loading?t.jsx(i,{relative:"parent",children:t.jsx(g,{})}):a.user?p:n.error?t.jsx(i,{relative:"parent",children:t.jsx(w,{children:n.error.message})}):t.jsx(W,{popup:!0,open:!0,hideCloseButton:!0,action:"pre-setup",checkFn:c.get,checkTimeout:10*60*1e3,webWalletUrl:C(),onSuccess:f,locale:u,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:n.value.url}})}U.propTypes={children:k.any.isRequired};const W=S(v)`
1
+ import{u as y,d as h,fk as m,c as x,j as t,C as i,S as g,T as w,G as C,s as T,o as j,P as k,Y as S,F as v}from"./index-fG25goIy.js";import{_ as P}from"./useAsync-QgQb6KwU.js";function U({children:p}){const{t:r,locale:u}=y(),{api:c,session:a}=h(),{encryptKey:l,decrypt:d}=m(),n=P(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!n.value||n.loading||a.loading?t.jsx(i,{relative:"parent",children:t.jsx(g,{})}):a.user?p:n.error?t.jsx(i,{relative:"parent",children:t.jsx(w,{children:n.error.message})}):t.jsx(W,{popup:!0,open:!0,hideCloseButton:!0,action:"pre-setup",checkFn:c.get,checkTimeout:10*60*1e3,webWalletUrl:C(),onSuccess:f,locale:u,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:n.value.url}})}U.propTypes={children:k.any.isRequired};const W=S(v)`
2
2
  .action-info-desc {
3
3
  padding: 0 72px;
4
4
  }