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

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 (172) hide show
  1. package/dist/assets/{Add-CG-F3Tpq.js → Add-DYUoCOSD.js} +1 -1
  2. package/dist/assets/{AddBox-CCE1buV8.js → AddBox-CdWySqkf.js} +1 -1
  3. package/dist/assets/{Alert-cwZghN5o.js → Alert-DjdB6kJi.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-DpHnrXJX.js → ArrowDropDown-D1r34mKE.js} +1 -1
  5. package/dist/assets/{Avatar-BVTgZMZu.js → Avatar-B2aqlUr4.js} +1 -1
  6. package/dist/assets/{ButtonGroup-Cf877fOo.js → ButtonGroup-B2OCm4w2.js} +1 -1
  7. package/dist/assets/{CheckCircle-CZETHIjv.js → CheckCircle-Z3ZeQuFe.js} +1 -1
  8. package/dist/assets/{ChevronRight-B1-v0rVj.js → ChevronRight-DLpiW9Xe.js} +1 -1
  9. package/dist/assets/{Close-DM3JyAUN.js → Close-CDh8sW0t.js} +1 -1
  10. package/dist/assets/{CloseOutlined-D-nYpxl4.js → CloseOutlined-CyTE8SBm.js} +1 -1
  11. package/dist/assets/{Delete-DJZzf2v3.js → Delete-BJX_VOZK.js} +1 -1
  12. package/dist/assets/{DeleteOutline-UAdOMkx7.js → DeleteOutline-CePnDmzu.js} +1 -1
  13. package/dist/assets/{Done-CIjx7jUD.js → Done-CKMtsSDh.js} +1 -1
  14. package/dist/assets/{Download-CZGyacWn.js → Download-Cj5rREAv.js} +1 -1
  15. package/dist/assets/{Edit-DUj2eyUz.js → Edit-B4y9FSb5.js} +1 -1
  16. package/dist/assets/{EditIcon-jpbTcPi9.js → EditIcon-CjrPa4hu.js} +1 -1
  17. package/dist/assets/{Error-CzevJZgV.js → Error-DUbGuPJ0.js} +1 -1
  18. package/dist/assets/{ExpandMore-Vsh2QVwZ.js → ExpandMore-MF6JMWUJ.js} +1 -1
  19. package/dist/assets/{FilterList-Cy1sL14k.js → FilterList-D2fArxx7.js} +1 -1
  20. package/dist/assets/{FormControl-B_Do5Nt6.js → FormControl-C7YkaJ_C.js} +1 -1
  21. package/dist/assets/{FormControlLabel-BDYHQJ8F.js → FormControlLabel-CSgQzD8H.js} +1 -1
  22. package/dist/assets/{FormGroup-Bk12j31H.js → FormGroup-Dg7paSKn.js} +1 -1
  23. package/dist/assets/{Google-CPv9gImr.js → Google-CFVK7w2J.js} +1 -1
  24. package/dist/assets/{Hidden-kVeQMxEt.js → Hidden-DwnJ4iUH.js} +1 -1
  25. package/dist/assets/{InfoOutlined-DUs9-7mj.js → InfoOutlined-Cxp66Zcn.js} +1 -1
  26. package/dist/assets/{InputAdornment-C-wpGP7M.js → InputAdornment-DOCN0hKn.js} +1 -1
  27. package/dist/assets/{InputLabel-4YX1ylv6.js → InputLabel-B3K-wjtt.js} +1 -1
  28. package/dist/assets/{LastPage-BfloM2Wq.js → LastPage-CxpvA1Xh.js} +1 -1
  29. package/dist/assets/{Launch-CahVoyyw.js → Launch-DEUdTJHa.js} +1 -1
  30. package/dist/assets/{LaunchOutlined-CK6AtL0o.js → LaunchOutlined-QUp-utbG.js} +1 -1
  31. package/dist/assets/{Link-D9C6v4KL.js → Link-29c93vgL.js} +1 -1
  32. package/dist/assets/{ListItemText-CbVOTWQ3.js → ListItemText-DzuIoJgM.js} +1 -1
  33. package/dist/assets/{LoadingButton-CIR80MCf.js → LoadingButton-Bzf3J--u.js} +1 -1
  34. package/dist/assets/{LockIcon-C20NfK7J.js → LockIcon-BOciunxD.js} +1 -1
  35. package/dist/assets/{Loop-AFtqcSsh.js → Loop-x0x8mTRv.js} +1 -1
  36. package/dist/assets/{MoreHoriz-kAuD1nY3.js → MoreHoriz-DpzaIBa1.js} +1 -1
  37. package/dist/assets/{MoreVert-Dd_rZHl1.js → MoreVert-Yxhg1I2d.js} +1 -1
  38. package/dist/assets/{OpenInNew-DYXjNtnC.js → OpenInNew-CyuaC2rt.js} +1 -1
  39. package/dist/assets/{Pagination-8KVsI0JZ.js → Pagination-CtrgfNqc.js} +1 -1
  40. package/dist/assets/{PlayArrow-s9OSCCm9.js → PlayArrow-BnDxNqxv.js} +1 -1
  41. package/dist/assets/{QuestionMarkCircle-50eq7smQ.js → QuestionMarkCircle-CXgSQEsv.js} +1 -1
  42. package/dist/assets/{RadioGroup-DImJzaoP.js → RadioGroup-CKSypMzt.js} +1 -1
  43. package/dist/assets/{Search-CxTEsXhT.js → Search-cf0osNnP.js} +1 -1
  44. package/dist/assets/{Select-D6CeNImJ.js → Select-Cgn_SK4j.js} +1 -1
  45. package/dist/assets/{ServerLogo-dvjXsp5I.js → ServerLogo-D-ipF8I0.js} +1 -1
  46. package/dist/assets/{Skeleton-DL2VL97S.js → Skeleton-IV13LZSZ.js} +1 -1
  47. package/dist/assets/{Slider-DSplqaCn.js → Slider-CWI7bXOG.js} +1 -1
  48. package/dist/assets/{Stepper-DJQ-xHUp.js → Stepper-DDJHXofQ.js} +1 -1
  49. package/dist/assets/{TextField-DVioGsc-.js → TextField-B0tdvs5D.js} +1 -1
  50. package/dist/assets/{Toolbar-CRxjvb2_.js → Toolbar-DDP1Q2zI.js} +1 -1
  51. package/dist/assets/{ViewList-2sUBAhN9.js → ViewList-ByImqA3D.js} +1 -1
  52. package/dist/assets/{access-control-q6rCI632.js → access-control-BzEKRo3D.js} +1 -1
  53. package/dist/assets/{actions-DLwaHSiX.js → actions-jiSiBiRc.js} +1 -1
  54. package/dist/assets/{add-component-core-B3gU-T0w.js → add-component-core-CEBg623l.js} +1 -1
  55. package/dist/assets/{add-resource-b81lLJ0f.js → add-resource-BEBqVsbA.js} +1 -1
  56. package/dist/assets/{addon-FuoBpuOX.js → addon-BMzKKhYw.js} +1 -1
  57. package/dist/assets/{analytics-DiVy8Vmf.js → analytics-AjQG-w7g.js} +1 -1
  58. package/dist/assets/api-BP-akdsb.js +1 -0
  59. package/dist/assets/{audit-logs-Bv-gENHC.js → audit-logs-DRadMWt4.js} +1 -1
  60. package/dist/assets/{button-eQ0RcFyP.js → button-DGlAIJRt.js} +1 -1
  61. package/dist/assets/{click-to-copy-C0t70-Pv.js → click-to-copy-lZXtD2ex.js} +1 -1
  62. package/dist/assets/{complete-pY8wsJjf.js → complete-KepK0QOU.js} +1 -1
  63. package/dist/assets/{component-BFX3kRXD.js → component-b5h_gUk8.js} +1 -1
  64. package/dist/assets/{config-CIbQaP5R.js → config-1---D29i.js} +1 -1
  65. package/dist/assets/{config-ndQXqG8O.js → config-Cag5rmHW.js} +1 -1
  66. package/dist/assets/{config-navigation-CC8qHxUp.js → config-navigation-UsIM2r2Z.js} +1 -1
  67. package/dist/assets/{config-space-DN8oNvsB.js → config-space-WLbYpr3G.js} +1 -1
  68. package/dist/assets/{confirm-DcZkK6Pc.js → confirm-WbbThheQ.js} +1 -1
  69. package/dist/assets/{connect-nZhD-SxO.js → connect-6r444iNU.js} +1 -1
  70. package/dist/assets/{connect-6vivetnz.js → connect-CYSgIu-r.js} +1 -1
  71. package/dist/assets/{connect-to-BU03yn0n.js → connect-to-epPHerHw.js} +1 -1
  72. package/dist/assets/{content-layout-DgQ1ivqD.js → content-layout-DUKw872A.js} +1 -1
  73. package/dist/assets/{dashboard-DJj7YdCJ.js → dashboard-B4ToB_WX.js} +3 -3
  74. package/dist/assets/{did-address-1pTl5ZJp.js → did-address-Dm6G9Pz0.js} +1 -1
  75. package/dist/assets/{domain-list-D69n3xq6.js → domain-list-B9HeS_qd.js} +1 -1
  76. package/dist/assets/{domain-DbHm_W8g.js → domain-peyY2u5r.js} +1 -1
  77. package/dist/assets/{exchange-passport-C1vO8vf7.js → exchange-passport-DRTAvySc.js} +1 -1
  78. package/dist/assets/{fallback-Co8Kc2kj.js → fallback-DV2p3NP7.js} +1 -1
  79. package/dist/assets/{format-error-DSoyPyVx.js → format-error-DZ98jGc_.js} +1 -1
  80. package/dist/assets/{fuel-C-ZdhzZC.js → fuel-CGMwCUCY.js} +1 -1
  81. package/dist/assets/{fullpage-BxLSpyM0.js → fullpage-DGQSRj9c.js} +1 -1
  82. package/dist/assets/{home-6XDnH9s-.js → home-2NVW01O-.js} +1 -1
  83. package/dist/assets/{iframe-BWL5r6kn.js → iframe-Viwbu4Xm.js} +1 -1
  84. package/dist/assets/{index-DViM25Vy.js → index-B-KhRlcq.js} +1 -1
  85. package/dist/assets/{index-CHSnAsQ1.js → index-BHVmBQ8E.js} +219 -219
  86. package/dist/assets/{index-B8_eoYBV.js → index-BTHSgca3.js} +1 -1
  87. package/dist/assets/{index-CkaWI_Zl.js → index-BYOFkx6u.js} +1 -1
  88. package/dist/assets/{index-BtByfVAB.js → index-BmvHTNFm.js} +1 -1
  89. package/dist/assets/{index-D7CVGBHs.js → index-BsO44bVl.js} +1 -1
  90. package/dist/assets/{index-BWJ8VQ8o.js → index-BuvljqqC.js} +1 -1
  91. package/dist/assets/{index-vP3Tn4O7.js → index-BwaeqOzE.js} +1 -1
  92. package/dist/assets/{index-CsPuSl01.js → index-BxWvRO5-.js} +1 -1
  93. package/dist/assets/{index-Cnmgkvme.js → index-CEQ26NUj.js} +1 -1
  94. package/dist/assets/{index-uHERBk1s.js → index-CHXC0QuW.js} +1 -1
  95. package/dist/assets/{index-NRVaJz9f.js → index-COsZ3LRn.js} +1 -1
  96. package/dist/assets/{index-DUwoq2dS.js → index-COvK0Knb.js} +1 -1
  97. package/dist/assets/{index-B36YvF84.js → index-CU9bXzIx.js} +1 -1
  98. package/dist/assets/{index-CI4IafEw.js → index-CUPDfkTE.js} +1 -1
  99. package/dist/assets/{index-Bc3Y41oE.js → index-Cb2I5Pnm.js} +1 -1
  100. package/dist/assets/{index-6uPYP6zK.js → index-D2Sq56Bc.js} +1 -1
  101. package/dist/assets/{index-BaC0Haea.js → index-D5vdosR6.js} +1 -1
  102. package/dist/assets/{index-DhQKOamW.js → index-DCmOI5EU.js} +1 -1
  103. package/dist/assets/{index-DpC9sww1.js → index-DPzyMEVE.js} +1 -1
  104. package/dist/assets/{index-vwRhQ5RS.js → index-Dbd8X1MQ.js} +1 -1
  105. package/dist/assets/{index-CnDdm9g9.js → index-Drk5a1Fs.js} +3 -3
  106. package/dist/assets/{index-C82L-zg9.js → index-DxWLBhYd.js} +1 -1
  107. package/dist/assets/{index-DCBDib20.js → index-Nu-kRA9C.js} +1 -1
  108. package/dist/assets/{index-DRjKGjM-.js → index-O15prgg1.js} +1 -1
  109. package/dist/assets/{index-D_gLZbnC.js → index-Sq8Y5yqF.js} +1 -1
  110. package/dist/assets/{index-DkWYK9Jo.js → index-UwSihXUn.js} +4 -4
  111. package/dist/assets/{index-DJWtIeK5.js → index-ev1wxRtJ.js} +1 -1
  112. package/dist/assets/{index-knmEO6mr.js → index-j0EDKFYS.js} +1 -1
  113. package/dist/assets/{index-0Kwb6jmK.js → index-txKLyozl.js} +1 -1
  114. package/dist/assets/{index.es-CAvKNGJJ.js → index.es-Dpe8HW6o.js} +1 -1
  115. package/dist/assets/{index.esm-OBsOHYQt.js → index.esm-BTLuzvlk.js} +1 -1
  116. package/dist/assets/{invitation-BgQ2lCo2.js → invitation-Cb8Zo6yL.js} +1 -1
  117. package/dist/assets/{invite-B8ygHcEw.js → invite-CNndcwxI.js} +1 -1
  118. package/dist/assets/{issue-passport-CQSIbZov.js → issue-passport-_tYdekkf.js} +1 -1
  119. package/dist/assets/{item-D_tapEj7.js → item-CI9bZp4P.js} +1 -1
  120. package/dist/assets/{jss-plugin-props-sort.esm-D277VpMG.js → jss-plugin-props-sort.esm-DburuMay.js} +1 -1
  121. package/dist/assets/{launch-result-message-zvz9QdJ0.js → launch-result-message-DznNd6jz.js} +1 -1
  122. package/dist/assets/{layout-66Qddc3Z.js → layout-BIrEOAsV.js} +1 -1
  123. package/dist/assets/{list-header-CVFTxg9p.js → list-header-ek3KY30P.js} +1 -1
  124. package/dist/assets/localization-CfHrCqyy.js +1 -0
  125. package/dist/assets/{log-m5_kgR9i.js → log-xbjJ0Mb1.js} +1 -1
  126. package/dist/assets/{login-BCQZewGI.js → login-BFMXiVxz.js} +1 -1
  127. package/dist/assets/{login-oauth-callback-DrGlI4fl.js → login-oauth-callback-BL5dyBEj.js} +1 -1
  128. package/dist/assets/{logo-uploader-BxL2AT1m.js → logo-uploader-BGnN7Ln3.js} +3 -3
  129. package/dist/assets/{lost-passport-CvgZJmfW.js → lost-passport-JFAwpUof.js} +3 -3
  130. package/dist/assets/{lottie-C925gYap.js → lottie-FBGv95mr.js} +1 -1
  131. package/dist/assets/{notifications-Dle2tsHf.js → notifications-D9_beIiL.js} +1 -1
  132. package/dist/assets/{overview-RpXehI-A.js → overview-D4MjBoAU.js} +1 -1
  133. package/dist/assets/{page-header-nMH5Nm1-.js → page-header-66y5LGdR.js} +1 -1
  134. package/dist/assets/{permission-DPowxK7C.js → permission-D5QEfwx7.js} +1 -1
  135. package/dist/assets/{preferences-C1i7ovMQ.js → preferences-BPN_TcF4.js} +1 -1
  136. package/dist/assets/publish-resource-Dll719dz.js +1 -0
  137. package/dist/assets/{react-DR-nB82P.js → react-DiBHU1pk.js} +3 -3
  138. package/dist/assets/{redux-DfSDCKtt.js → redux-DfMVEh8C.js} +1 -1
  139. package/dist/assets/{resource-dialog-ifz0m_FZ.js → resource-dialog-Dz_4-Jou.js} +1 -1
  140. package/dist/assets/{selector-C4Gh2j9t.js → selector-C_Cr9H0Y.js} +1 -1
  141. package/dist/assets/session-C_q17DqM.js +1 -0
  142. package/dist/assets/{setup-BKousrMa.js → setup-rD1AIRpk.js} +3 -3
  143. package/dist/assets/{shorten-label--VZVYLZC.js → shorten-label-C0fy7vw5.js} +1 -1
  144. package/dist/assets/{slicedToArray-CVLbnzuy.js → slicedToArray-D8reQbRM.js} +1 -1
  145. package/dist/assets/{spaces-BGhjBX1b.js → spaces-Cp3qdjuQ.js} +1 -1
  146. package/dist/assets/{start-Be-aPrp4.js → start-BoTKXyGD.js} +1 -1
  147. package/dist/assets/{step-actions-CEK8mgUw.js → step-actions-BgkbqFQR.js} +1 -1
  148. package/dist/assets/{studio-DAsrT0p3.js → studio-CKz5NekF.js} +1 -1
  149. package/dist/assets/{switch-control-CdZ7hT3y.js → switch-control-B8e0yzux.js} +1 -1
  150. package/dist/assets/{toUpper-B3I7eG1g.js → toUpper-BbUf7PTC.js} +1 -1
  151. package/dist/assets/{transfer--Bgmivmp.js → transfer-dut38B6y.js} +1 -1
  152. package/dist/assets/{uniqBy-BA_TMJYf.js → uniqBy-BtS3yjwZ.js} +1 -1
  153. package/dist/assets/{unsubscribe-fhr9EaAr.js → unsubscribe-BFdMTxxA.js} +1 -1
  154. package/dist/assets/{url-join-JgKEtdA2.js → url-join-CUdrf5JK.js} +1 -1
  155. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-rQZBR8_3.js → use-blocklet-info-for-connect-did-spaces-3u6OI24d.js} +1 -1
  156. package/dist/assets/{use-mobile-DCi1_Enm.js → use-mobile-BJKZGD1I.js} +1 -1
  157. package/dist/assets/{useAsync-B3RNaSvA.js → useAsync-SsrsgChA.js} +1 -1
  158. package/dist/assets/{useFormControl-oAKl9UVb.js → useFormControl-CIM987QD.js} +1 -1
  159. package/dist/assets/{useLocalStorage-BnVJN1iM.js → useLocalStorage-CyHzuw0V.js} +1 -1
  160. package/dist/assets/{useSetState-Bw-0RwWQ.js → useSetState-BTrtc5bD.js} +1 -1
  161. package/dist/assets/{useSlot-Cwz6OM5B.js → useSlot-BXs-_Etv.js} +1 -1
  162. package/dist/assets/{user-center-BsD4RIvy.js → user-center-CEybRz8U.js} +1 -1
  163. package/dist/assets/{user-sessions-COQO8nIH.js → user-sessions-CzcM49ld.js} +1 -1
  164. package/dist/assets/{util-CRACQuGi.js → util-CMZTMLfm.js} +1 -1
  165. package/dist/assets/{wrap-locale-CNoCPP-4.js → wrap-locale-Bbtuw1Wn.js} +1 -1
  166. package/dist/index.html +1 -1
  167. package/dist/service-worker.js +1 -1
  168. package/package.json +18 -18
  169. package/dist/assets/api-CK31hCQN.js +0 -1
  170. package/dist/assets/localization-BNU71z-g.js +0 -1
  171. package/dist/assets/publish-resource-Cdc_Imtz.js +0 -1
  172. package/dist/assets/session-DFjt4_rn.js +0 -1
@@ -1 +1 @@
1
- import{aB as vt,aC as mt,aD as X,cE as jt,aE as Ht,aG as p,r as d,aK as St,aF as at,aI as $,j as u,aJ as gt,ao as At,cz as ae,cF as Ot,cG as Xt,cH as Dt,aH as st,bj as ie,cI as ft,cJ as ce,bt as de,M as L,P as W}from"./index-CHSnAsQ1.js";let U;function _t(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ue(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(_t()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function be(t){return mt("MuiTab",t)}const pe=vt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),N=pe,fe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],he=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:n,icon:a,label:v,selected:h,disabled:b}=t,g={root:["root",a&&v&&"labelIcon",`textColor${Ht(l)}`,s&&"fullWidth",n&&"wrapped",h&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return gt(g,be,e)},ve=X(jt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${Ht(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped,{[`& .${N.iconWrapper}`]:e.iconWrapper}]}})(({theme:t,ownerState:e})=>p({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${N.iconWrapper}`]:p({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${N.selected}`]:{opacity:1},[`&.${N.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${N.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${N.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${N.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${N.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),me=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:v=!1,fullWidth:h,icon:b,iconPosition:g="top",indicator:B,label:y,onChange:m,onClick:T,onFocus:F,selected:w,selectionFollowsFocus:x,textColor:D="inherit",value:R,wrapped:it=!1}=s,_=at(s,fe),V=p({},s,{disabled:a,disableFocusRipple:v,selected:w,icon:!!b,iconPosition:g,label:!!y,fullWidth:h,textColor:D,wrapped:it}),q=he(V),j=b&&y&&d.isValidElement(b)?d.cloneElement(b,{className:$(q.iconWrapper,b.props.className)}):b,tt=E=>{!w&&m&&m(E,R),T&&T(E)},K=E=>{x&&!w&&m&&m(E,R),F&&F(E)};return u.jsxs(ve,p({focusRipple:!v,className:$(q.root,n),ref:l,role:"tab","aria-selected":w,disabled:a,onClick:tt,onFocus:K,ownerState:V,tabIndex:w?0:-1},_,{children:[g==="top"||g==="start"?u.jsxs(d.Fragment,{children:[j,y]}):u.jsxs(d.Fragment,{children:[y,j]}),B]}))}),xt=me,Se=At(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ge=At(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function xe(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ye(t,e,l,s={},n=()=>{}){const{ease:a=xe,duration:v=300}=s;let h=null;const b=e[t];let g=!1;const B=()=>{g=!0},y=m=>{if(g){n(new Error("Animation cancelled"));return}h===null&&(h=m);const T=Math.min(1,(m-h)/v);if(e[t]=a(T)*(l-b)+b,T>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(y)};return b===l?(n(new Error("Element already at target position")),B):(requestAnimationFrame(y),B)}const Ce=["onChange"],Be={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Te(t){const{onChange:e}=t,l=at(t,Ce),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return ae(()=>{const v=Ot(()=>{const b=s.current;a(),b!==s.current&&e(s.current)}),h=Xt(n.current);return h.addEventListener("resize",v),()=>{v.clear(),h.removeEventListener("resize",v)}},[e]),d.useEffect(()=>{a(),e(s.current)},[e]),u.jsx("div",p({style:Be,ref:n},l))}function we(t){return mt("MuiTabScrollButton",t)}const Me=vt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Ie=Me,Re=["className","slots","slotProps","direction","orientation","disabled"],Ee=t=>{const{classes:e,orientation:l,disabled:s}=t;return gt({root:["root",l,s&&"disabled"]},we,e)},ze=X(jt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>p({width:40,flexShrink:0,opacity:.8,[`&.${Ie.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),We=d.forwardRef(function(e,l){var s,n;const a=St({props:e,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:b={},direction:g}=a,B=at(a,Re),y=Dt(),m=p({isRtl:y},a),T=Ee(m),F=(s=h.StartScrollButtonIcon)!=null?s:Se,w=(n=h.EndScrollButtonIcon)!=null?n:ge,x=st({elementType:F,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),D=st({elementType:w,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return u.jsx(ze,p({component:"div",className:$(T.root,v),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:g==="left"?u.jsx(F,p({},x)):u.jsx(w,p({},D))}))}),Pe=We;function ke(t){return mt("MuiTabs",t)}const Ne=vt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ht=Ne,$e=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Nt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,$t=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,nt=(t,e,l)=>{let s=!1,n=l(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(t,n);else{n.focus();return}}},Le=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:v,scrollButtonsHideMobile:h,classes:b}=t;return gt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},ke,b)},Fe=X("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${ht.scrollButtons}`]:e.scrollButtons},{[`& .${ht.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>p({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${ht.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),je=X("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.scrollableY&&e.scrollableY]}})(({ownerState:t})=>p({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),He=X("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>p({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),Ae=X("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>p({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),Oe=X(Te)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Lt={},Xe=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTabs"}),n=ie(),a=Dt(),{"aria-label":v,"aria-labelledby":h,action:b,centered:g=!1,children:B,className:y,component:m="div",allowScrollButtonsMobile:T=!1,indicatorColor:F="primary",onChange:w,orientation:x="horizontal",ScrollButtonComponent:D=Pe,scrollButtons:R="auto",selectionFollowsFocus:it,slots:_={},slotProps:V={},TabIndicatorProps:q={},TabScrollButtonProps:j={},textColor:tt="primary",value:K,variant:E="standard",visibleScrollbar:ct=!1}=s,Ut=at(s,$e),M=E==="scrollable",C=x==="vertical",G=C?"scrollTop":"scrollLeft",et=C?"top":"left",ot=C?"bottom":"right",dt=C?"clientHeight":"clientWidth",J=C?"height":"width",H=p({},s,{component:m,allowScrollButtonsMobile:T,indicatorColor:F,orientation:x,vertical:C,scrollButtons:R,textColor:tt,variant:E,visibleScrollbar:ct,fixed:!M,hideScrollbar:M&&!ct,scrollableX:M&&!C,scrollableY:M&&C,centered:g&&!M,scrollButtonsHideMobile:!T}),P=Le(H),Yt=st({elementType:_.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:H}),Vt=st({elementType:_.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:H}),[Ct,Gt]=d.useState(!1),[A,Bt]=d.useState(Lt),[Tt,Jt]=d.useState(!1),[wt,Qt]=d.useState(!1),[Mt,Zt]=d.useState(!1),[It,te]=d.useState({overflow:"hidden",scrollbarWidth:0}),Rt=new Map,z=d.useRef(null),O=d.useRef(null),Et=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ue(o,a?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&K!==!1){const i=O.current.children;if(i.length>0){const f=i[Rt.get(K)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},Q=ft(()=>{const{tabsMeta:o,tabMeta:r}=Et();let c=0,i;if(C)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=a?"right":"left",r&&o){const S=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(r[i]-o[i]+S)}const f={[i]:c,[J]:r?r[J]:0};if(isNaN(A[i])||isNaN(A[J]))Bt(f);else{const S=Math.abs(A[i]-f[i]),I=Math.abs(A[J]-f[J]);(S>=1||I>=1)&&Bt(f)}}),ut=(o,{animation:r=!0}={})=>{r?ye(G,z.current,o,{duration:n.transitions.duration.standard}):z.current[G]=o},zt=o=>{let r=z.current[G];C?r+=o:(r+=o*(a?-1:1),r*=a&&_t()==="reverse"?-1:1),ut(r)},Wt=()=>{const o=z.current[dt];let r=0;const c=Array.from(O.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(r+f[dt]>o){i===0&&(r=o);break}r+=f[dt]}return r},ee=()=>{zt(-1*Wt())},oe=()=>{zt(Wt())},le=d.useCallback(o=>{te({overflow:null,scrollbarWidth:o})},[]),re=()=>{const o={};o.scrollbarSizeListener=M?u.jsx(Oe,{onChange:le,className:$(P.scrollableX,P.hideScrollbar)}):null;const c=M&&(R==="auto"&&(Tt||wt)||R===!0);return o.scrollButtonStart=c?u.jsx(D,p({slots:{StartScrollButtonIcon:_.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Yt},orientation:x,direction:a?"right":"left",onClick:ee,disabled:!Tt},j,{className:$(P.scrollButtons,j.className)})):null,o.scrollButtonEnd=c?u.jsx(D,p({slots:{EndScrollButtonIcon:_.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Vt},orientation:x,direction:a?"left":"right",onClick:oe,disabled:!wt},j,{className:$(P.scrollButtons,j.className)})):null,o},Pt=ft(o=>{const{tabsMeta:r,tabMeta:c}=Et();if(!(!c||!r)){if(c[et]<r[et]){const i=r[G]+(c[et]-r[et]);ut(i,{animation:o})}else if(c[ot]>r[ot]){const i=r[G]+(c[ot]-r[ot]);ut(i,{animation:o})}}}),lt=ft(()=>{M&&R!==!1&&Zt(!Mt)});d.useEffect(()=>{const o=Ot(()=>{z.current&&Q()});let r;const c=S=>{S.forEach(I=>{I.removedNodes.forEach(Z=>{var k;(k=r)==null||k.unobserve(Z)}),I.addedNodes.forEach(Z=>{var k;(k=r)==null||k.observe(Z)})}),o(),lt()},i=Xt(z.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(O.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(O.current,{childList:!0})),()=>{var S,I;o.clear(),i.removeEventListener("resize",o),(S=f)==null||S.disconnect(),(I=r)==null||I.disconnect()}},[Q,lt]),d.useEffect(()=>{const o=Array.from(O.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&R!==!1){const c=o[0],i=o[r-1],f={root:z.current,threshold:.99},S=pt=>{Jt(!pt[0].isIntersecting)},I=new IntersectionObserver(S,f);I.observe(c);const Z=pt=>{Qt(!pt[0].isIntersecting)},k=new IntersectionObserver(Z,f);return k.observe(i),()=>{I.disconnect(),k.disconnect()}}},[M,R,Mt,B==null?void 0:B.length]),d.useEffect(()=>{Gt(!0)},[]),d.useEffect(()=>{Q()}),d.useEffect(()=>{Pt(Lt!==A)},[Pt,A]),d.useImperativeHandle(b,()=>({updateIndicator:Q,updateScrollButtons:lt}),[Q,lt]);const kt=u.jsx(Ae,p({},q,{className:$(P.indicator,q.className),ownerState:H,style:p({},A,q.style)}));let rt=0;const ne=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?rt:o.props.value;Rt.set(r,rt);const c=r===K;return rt+=1,d.cloneElement(o,p({fullWidth:E==="fullWidth",indicator:c&&!Ct&&kt,selected:c,selectionFollowsFocus:it,onChange:w,textColor:tt,value:r},rt===1&&K===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),se=o=>{const r=O.current,c=ce(r).activeElement;if(c.getAttribute("role")!=="tab")return;let f=x==="horizontal"?"ArrowLeft":"ArrowUp",S=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(f="ArrowRight",S="ArrowLeft"),o.key){case f:o.preventDefault(),nt(r,c,$t);break;case S:o.preventDefault(),nt(r,c,Nt);break;case"Home":o.preventDefault(),nt(r,null,Nt);break;case"End":o.preventDefault(),nt(r,null,$t);break}},bt=re();return u.jsxs(Fe,p({className:$(P.root,y),ownerState:H,ref:l,as:m},Ut,{children:[bt.scrollButtonStart,bt.scrollbarSizeListener,u.jsxs(je,{className:P.scroller,ownerState:H,style:{overflow:It.overflow,[C?`margin${a?"Left":"Right"}`:"marginBottom"]:ct?void 0:-It.scrollbarWidth},ref:z,children:[u.jsx(He,{"aria-label":v,"aria-labelledby":h,"aria-orientation":x==="vertical"?"vertical":null,className:P.flexContainer,ownerState:H,onKeyDown:se,ref:O,role:"tablist",children:ne}),Ct&&kt]}),bt.scrollButtonEnd]}))}),yt=Xe,Ft="index",Y={tabs:`${Ft}-tabs`,tab:`${Ft}-tab`},De=de(yt)(({theme:t})=>({[`& .${Y.tabs}`]:{},[`& .${Y.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function qt({tabs:t,current:e,onChange:l,...s}){return u.jsx(yt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:L.backgroundsBgComponent,padding:.5,display:"inline-flex",columnGap:.25,maxWidth:"100%",overflowX:"auto"},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:L.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:L.lineBorderBase,color:L.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}qt.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function Kt({tabs:t,current:e,onChange:l,...s}){return u.jsx(yt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{"&::after":{content:'""',display:"block",width:"100%",height:"1px",backgroundColor:L.strokeBorderStrong,bottom:0}},".MuiTabs-flexContainer":{display:"inline-flex",columnGap:2.5,px:0,pb:.5},".MuiTab-root":{border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,px:0,color:L.foregroundsFgSubtile,fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:L.foregroundsFgBase}},".MuiTabs-indicator":{height:"1px",backgroundColor:L.foregroundsFgBase},...s.sx},children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}Kt.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function _e({tabs:t,current:e,onChange:l,...s}){return s.variant==="card"?u.jsx(qt,{...s,tabs:t,current:e,onChange:l}):s.variant==="line"?u.jsx(Kt,{...s,tabs:t,current:e,onChange:l}):u.jsx(De,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(n,a)=>l(a),indicatorColor:"primary",...s,className:[Y.tabs,s.className||""].join(" "),children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}_e.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};export{ge as K,_e as T,Se as a,yt as b,xt as c,ht as t};
1
+ import{aB as vt,aC as mt,aD as X,cE as jt,aE as Ht,aG as p,r as d,aK as St,aF as at,aI as $,j as u,aJ as gt,ao as At,cz as ae,cF as Ot,cG as Xt,cH as Dt,aH as st,bj as ie,cI as ft,cJ as ce,bt as de,M as L,P as W}from"./index-BHVmBQ8E.js";let U;function _t(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ue(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(_t()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function be(t){return mt("MuiTab",t)}const pe=vt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),N=pe,fe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],he=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:n,icon:a,label:v,selected:h,disabled:b}=t,g={root:["root",a&&v&&"labelIcon",`textColor${Ht(l)}`,s&&"fullWidth",n&&"wrapped",h&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return gt(g,be,e)},ve=X(jt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${Ht(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped,{[`& .${N.iconWrapper}`]:e.iconWrapper}]}})(({theme:t,ownerState:e})=>p({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${N.iconWrapper}`]:p({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${N.selected}`]:{opacity:1},[`&.${N.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${N.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${N.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${N.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${N.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),me=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:v=!1,fullWidth:h,icon:b,iconPosition:g="top",indicator:B,label:y,onChange:m,onClick:T,onFocus:F,selected:w,selectionFollowsFocus:x,textColor:D="inherit",value:R,wrapped:it=!1}=s,_=at(s,fe),V=p({},s,{disabled:a,disableFocusRipple:v,selected:w,icon:!!b,iconPosition:g,label:!!y,fullWidth:h,textColor:D,wrapped:it}),q=he(V),j=b&&y&&d.isValidElement(b)?d.cloneElement(b,{className:$(q.iconWrapper,b.props.className)}):b,tt=E=>{!w&&m&&m(E,R),T&&T(E)},K=E=>{x&&!w&&m&&m(E,R),F&&F(E)};return u.jsxs(ve,p({focusRipple:!v,className:$(q.root,n),ref:l,role:"tab","aria-selected":w,disabled:a,onClick:tt,onFocus:K,ownerState:V,tabIndex:w?0:-1},_,{children:[g==="top"||g==="start"?u.jsxs(d.Fragment,{children:[j,y]}):u.jsxs(d.Fragment,{children:[y,j]}),B]}))}),xt=me,Se=At(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ge=At(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function xe(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ye(t,e,l,s={},n=()=>{}){const{ease:a=xe,duration:v=300}=s;let h=null;const b=e[t];let g=!1;const B=()=>{g=!0},y=m=>{if(g){n(new Error("Animation cancelled"));return}h===null&&(h=m);const T=Math.min(1,(m-h)/v);if(e[t]=a(T)*(l-b)+b,T>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(y)};return b===l?(n(new Error("Element already at target position")),B):(requestAnimationFrame(y),B)}const Ce=["onChange"],Be={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Te(t){const{onChange:e}=t,l=at(t,Ce),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return ae(()=>{const v=Ot(()=>{const b=s.current;a(),b!==s.current&&e(s.current)}),h=Xt(n.current);return h.addEventListener("resize",v),()=>{v.clear(),h.removeEventListener("resize",v)}},[e]),d.useEffect(()=>{a(),e(s.current)},[e]),u.jsx("div",p({style:Be,ref:n},l))}function we(t){return mt("MuiTabScrollButton",t)}const Me=vt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Ie=Me,Re=["className","slots","slotProps","direction","orientation","disabled"],Ee=t=>{const{classes:e,orientation:l,disabled:s}=t;return gt({root:["root",l,s&&"disabled"]},we,e)},ze=X(jt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>p({width:40,flexShrink:0,opacity:.8,[`&.${Ie.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),We=d.forwardRef(function(e,l){var s,n;const a=St({props:e,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:b={},direction:g}=a,B=at(a,Re),y=Dt(),m=p({isRtl:y},a),T=Ee(m),F=(s=h.StartScrollButtonIcon)!=null?s:Se,w=(n=h.EndScrollButtonIcon)!=null?n:ge,x=st({elementType:F,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),D=st({elementType:w,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return u.jsx(ze,p({component:"div",className:$(T.root,v),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:g==="left"?u.jsx(F,p({},x)):u.jsx(w,p({},D))}))}),Pe=We;function ke(t){return mt("MuiTabs",t)}const Ne=vt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ht=Ne,$e=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Nt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,$t=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,nt=(t,e,l)=>{let s=!1,n=l(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(t,n);else{n.focus();return}}},Le=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:v,scrollButtonsHideMobile:h,classes:b}=t;return gt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},ke,b)},Fe=X("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${ht.scrollButtons}`]:e.scrollButtons},{[`& .${ht.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>p({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${ht.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),je=X("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.scrollableY&&e.scrollableY]}})(({ownerState:t})=>p({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),He=X("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>p({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),Ae=X("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>p({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),Oe=X(Te)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Lt={},Xe=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTabs"}),n=ie(),a=Dt(),{"aria-label":v,"aria-labelledby":h,action:b,centered:g=!1,children:B,className:y,component:m="div",allowScrollButtonsMobile:T=!1,indicatorColor:F="primary",onChange:w,orientation:x="horizontal",ScrollButtonComponent:D=Pe,scrollButtons:R="auto",selectionFollowsFocus:it,slots:_={},slotProps:V={},TabIndicatorProps:q={},TabScrollButtonProps:j={},textColor:tt="primary",value:K,variant:E="standard",visibleScrollbar:ct=!1}=s,Ut=at(s,$e),M=E==="scrollable",C=x==="vertical",G=C?"scrollTop":"scrollLeft",et=C?"top":"left",ot=C?"bottom":"right",dt=C?"clientHeight":"clientWidth",J=C?"height":"width",H=p({},s,{component:m,allowScrollButtonsMobile:T,indicatorColor:F,orientation:x,vertical:C,scrollButtons:R,textColor:tt,variant:E,visibleScrollbar:ct,fixed:!M,hideScrollbar:M&&!ct,scrollableX:M&&!C,scrollableY:M&&C,centered:g&&!M,scrollButtonsHideMobile:!T}),P=Le(H),Yt=st({elementType:_.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:H}),Vt=st({elementType:_.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:H}),[Ct,Gt]=d.useState(!1),[A,Bt]=d.useState(Lt),[Tt,Jt]=d.useState(!1),[wt,Qt]=d.useState(!1),[Mt,Zt]=d.useState(!1),[It,te]=d.useState({overflow:"hidden",scrollbarWidth:0}),Rt=new Map,z=d.useRef(null),O=d.useRef(null),Et=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ue(o,a?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&K!==!1){const i=O.current.children;if(i.length>0){const f=i[Rt.get(K)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},Q=ft(()=>{const{tabsMeta:o,tabMeta:r}=Et();let c=0,i;if(C)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=a?"right":"left",r&&o){const S=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(r[i]-o[i]+S)}const f={[i]:c,[J]:r?r[J]:0};if(isNaN(A[i])||isNaN(A[J]))Bt(f);else{const S=Math.abs(A[i]-f[i]),I=Math.abs(A[J]-f[J]);(S>=1||I>=1)&&Bt(f)}}),ut=(o,{animation:r=!0}={})=>{r?ye(G,z.current,o,{duration:n.transitions.duration.standard}):z.current[G]=o},zt=o=>{let r=z.current[G];C?r+=o:(r+=o*(a?-1:1),r*=a&&_t()==="reverse"?-1:1),ut(r)},Wt=()=>{const o=z.current[dt];let r=0;const c=Array.from(O.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(r+f[dt]>o){i===0&&(r=o);break}r+=f[dt]}return r},ee=()=>{zt(-1*Wt())},oe=()=>{zt(Wt())},le=d.useCallback(o=>{te({overflow:null,scrollbarWidth:o})},[]),re=()=>{const o={};o.scrollbarSizeListener=M?u.jsx(Oe,{onChange:le,className:$(P.scrollableX,P.hideScrollbar)}):null;const c=M&&(R==="auto"&&(Tt||wt)||R===!0);return o.scrollButtonStart=c?u.jsx(D,p({slots:{StartScrollButtonIcon:_.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Yt},orientation:x,direction:a?"right":"left",onClick:ee,disabled:!Tt},j,{className:$(P.scrollButtons,j.className)})):null,o.scrollButtonEnd=c?u.jsx(D,p({slots:{EndScrollButtonIcon:_.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Vt},orientation:x,direction:a?"left":"right",onClick:oe,disabled:!wt},j,{className:$(P.scrollButtons,j.className)})):null,o},Pt=ft(o=>{const{tabsMeta:r,tabMeta:c}=Et();if(!(!c||!r)){if(c[et]<r[et]){const i=r[G]+(c[et]-r[et]);ut(i,{animation:o})}else if(c[ot]>r[ot]){const i=r[G]+(c[ot]-r[ot]);ut(i,{animation:o})}}}),lt=ft(()=>{M&&R!==!1&&Zt(!Mt)});d.useEffect(()=>{const o=Ot(()=>{z.current&&Q()});let r;const c=S=>{S.forEach(I=>{I.removedNodes.forEach(Z=>{var k;(k=r)==null||k.unobserve(Z)}),I.addedNodes.forEach(Z=>{var k;(k=r)==null||k.observe(Z)})}),o(),lt()},i=Xt(z.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(O.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(O.current,{childList:!0})),()=>{var S,I;o.clear(),i.removeEventListener("resize",o),(S=f)==null||S.disconnect(),(I=r)==null||I.disconnect()}},[Q,lt]),d.useEffect(()=>{const o=Array.from(O.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&R!==!1){const c=o[0],i=o[r-1],f={root:z.current,threshold:.99},S=pt=>{Jt(!pt[0].isIntersecting)},I=new IntersectionObserver(S,f);I.observe(c);const Z=pt=>{Qt(!pt[0].isIntersecting)},k=new IntersectionObserver(Z,f);return k.observe(i),()=>{I.disconnect(),k.disconnect()}}},[M,R,Mt,B==null?void 0:B.length]),d.useEffect(()=>{Gt(!0)},[]),d.useEffect(()=>{Q()}),d.useEffect(()=>{Pt(Lt!==A)},[Pt,A]),d.useImperativeHandle(b,()=>({updateIndicator:Q,updateScrollButtons:lt}),[Q,lt]);const kt=u.jsx(Ae,p({},q,{className:$(P.indicator,q.className),ownerState:H,style:p({},A,q.style)}));let rt=0;const ne=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?rt:o.props.value;Rt.set(r,rt);const c=r===K;return rt+=1,d.cloneElement(o,p({fullWidth:E==="fullWidth",indicator:c&&!Ct&&kt,selected:c,selectionFollowsFocus:it,onChange:w,textColor:tt,value:r},rt===1&&K===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),se=o=>{const r=O.current,c=ce(r).activeElement;if(c.getAttribute("role")!=="tab")return;let f=x==="horizontal"?"ArrowLeft":"ArrowUp",S=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(f="ArrowRight",S="ArrowLeft"),o.key){case f:o.preventDefault(),nt(r,c,$t);break;case S:o.preventDefault(),nt(r,c,Nt);break;case"Home":o.preventDefault(),nt(r,null,Nt);break;case"End":o.preventDefault(),nt(r,null,$t);break}},bt=re();return u.jsxs(Fe,p({className:$(P.root,y),ownerState:H,ref:l,as:m},Ut,{children:[bt.scrollButtonStart,bt.scrollbarSizeListener,u.jsxs(je,{className:P.scroller,ownerState:H,style:{overflow:It.overflow,[C?`margin${a?"Left":"Right"}`:"marginBottom"]:ct?void 0:-It.scrollbarWidth},ref:z,children:[u.jsx(He,{"aria-label":v,"aria-labelledby":h,"aria-orientation":x==="vertical"?"vertical":null,className:P.flexContainer,ownerState:H,onKeyDown:se,ref:O,role:"tablist",children:ne}),Ct&&kt]}),bt.scrollButtonEnd]}))}),yt=Xe,Ft="index",Y={tabs:`${Ft}-tabs`,tab:`${Ft}-tab`},De=de(yt)(({theme:t})=>({[`& .${Y.tabs}`]:{},[`& .${Y.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function qt({tabs:t,current:e,onChange:l,...s}){return u.jsx(yt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:L.backgroundsBgComponent,padding:.5,display:"inline-flex",columnGap:.25,maxWidth:"100%",overflowX:"auto"},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:L.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:L.lineBorderBase,color:L.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}qt.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function Kt({tabs:t,current:e,onChange:l,...s}){return u.jsx(yt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{"&::after":{content:'""',display:"block",width:"100%",height:"1px",backgroundColor:L.strokeBorderStrong,bottom:0}},".MuiTabs-flexContainer":{display:"inline-flex",columnGap:2.5,px:0,pb:.5},".MuiTab-root":{border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,px:0,color:L.foregroundsFgSubtile,fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:L.foregroundsFgBase}},".MuiTabs-indicator":{height:"1px",backgroundColor:L.foregroundsFgBase},...s.sx},children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}Kt.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function _e({tabs:t,current:e,onChange:l,...s}){return s.variant==="card"?u.jsx(qt,{...s,tabs:t,current:e,onChange:l}):s.variant==="line"?u.jsx(Kt,{...s,tabs:t,current:e,onChange:l}):u.jsx(De,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(n,a)=>l(a),indicatorColor:"primary",...s,className:[Y.tabs,s.className||""].join(" "),children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}_e.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};export{ge as K,_e as T,Se as a,yt as b,xt as c,ht as t};
@@ -1,4 +1,4 @@
1
- import{X as qe,Y as We,j as t,P as K,Z as Ee,bm as dr,r as $,ey as fr,B as h,db as jn,be as ts,az as we,l as ht,u as me,aM as fe,a1 as ae,q as Z,aV as ge,E as ve,fT as gr,a7 as Le,I as ns,bO as pr,T as Ut,fU as mr,ab as hr,ap as Qe,a9 as se,bl as br,a0 as _e,cq as Ue,aU as Kt,aP as Ze,fV as Er,fW as _r,b4 as et,h as j,N as je,bA as he,f8 as xr,bU as Te,w as yr,c as ft,f as He,aQ as ss,bj as tt,fX as Sr,fY as vr,a as Mn,fm as Nr,b as Ae,M as at,bB as Ke,bS as Ar,bT as Tr,bR as Cr,aY as Rr,aZ as Or,fZ as wr,fv as Ir,b3 as Lr,f_ as zt,dq as jr,cj as rs,bt as Mr,bs as Oe,cr as Dr,f$ as as,z as kr}from"./index-CHSnAsQ1.js";import{I as Pr}from"./iframe-BWL5r6kn.js";import{I as Br,F as Ht,d as Fr,L as $r,a as Ur}from"./Edit-DUj2eyUz.js";import{B as is,d as os}from"./ChevronRight-B1-v0rVj.js";import{d as cs}from"./ExpandMore-Vsh2QVwZ.js";import{T as tn}from"./index-B8_eoYBV.js";import{u as nn,b as Kr,c as zr,e as Hr}from"./dashboard-DJj7YdCJ.js";import{d as Gr}from"./Loop-AFtqcSsh.js";import{d as qr}from"./Done-CIjx7jUD.js";import{F as Wr,R as Yr,L as At}from"./logo-uploader-BxL2AT1m.js";import{a as Dn,A as Zr,u as Me,C as X}from"./index.esm-OBsOHYQt.js";import{T as te,F as Vr}from"./TextField-DVioGsc-.js";import{e as Jr}from"./mode-B2dWMeTO.js";import{w as ls,P as Xr}from"./permission-DPowxK7C.js";import{C as us}from"./confirm-DcZkK6Pc.js";import{f as sn,D as Qr}from"./format-error-DSoyPyVx.js";import{_ as ea}from"./useSetState-Bw-0RwWQ.js";import{u as ta}from"./session-DFjt4_rn.js";import{C as na}from"./click-to-copy-C0t70-Pv.js";import{F as Ce,C as ds,S as sa}from"./FormControlLabel-BDYHQJ8F.js";import{A as ra}from"./Alert-cwZghN5o.js";import{a as ze}from"./index-Cnmgkvme.js";import{E as rn}from"./index-DJWtIeK5.js";import{F as ie}from"./FormControl-B_Do5Nt6.js";import{d as aa}from"./Launch-CahVoyyw.js";import{d as ia}from"./EditIcon-jpbTcPi9.js";import{A as Gt}from"./config-ndQXqG8O.js";import{a as oa}from"./ListItemText-CbVOTWQ3.js";import{u as ca,a as la,D as ua,H as da}from"./index-BaC0Haea.js";import{S as bt}from"./switch-control-CdZ7hT3y.js";import{S as fa}from"./Slider-DSplqaCn.js";import{D as ga}from"./index-DpC9sww1.js";import{I as pa}from"./index-Bc3Y41oE.js";import"./index-vP3Tn4O7.js";import{i as fs}from"./index-vwRhQ5RS.js";import{G as Tt}from"./redux-DfSDCKtt.js";import"./ArrowDropDown-DpHnrXJX.js";import"./ButtonGroup-Cf877fOo.js";import"./Avatar-BVTgZMZu.js";import"./useSlot-Cwz6OM5B.js";import"./useLocalStorage-BnVJN1iM.js";import"./MoreVert-Dd_rZHl1.js";import"./Delete-DJZzf2v3.js";import"./PlayArrow-s9OSCCm9.js";import"./RadioGroup-DImJzaoP.js";import"./FormGroup-Bk12j31H.js";import"./useFormControl-oAKl9UVb.js";import"./index-0Kwb6jmK.js";import"./spaces-BGhjBX1b.js";import"./api-CK31hCQN.js";import"./Link-D9C6v4KL.js";import"./fallback-Co8Kc2kj.js";import"./index-B36YvF84.js";import"./Toolbar-CRxjvb2_.js";import"./Hidden-kVeQMxEt.js";import"./MoreHoriz-kAuD1nY3.js";import"./index-DViM25Vy.js";import"./selector-C4Gh2j9t.js";import"./index-C82L-zg9.js";import"./Select-D6CeNImJ.js";import"./InputLabel-4YX1ylv6.js";import"./useAsync-B3RNaSvA.js";import"./FilterList-Cy1sL14k.js";import"./toPropertyKey-hKuLU48H.js";import"./LastPage-BfloM2Wq.js";import"./Search-CxTEsXhT.js";var an={},ma=We;Object.defineProperty(an,"__esModule",{value:!0});var gs=an.default=void 0,ha=ma(qe()),ba=t;gs=an.default=(0,ha.default)((0,ba.jsx)("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1M3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1m10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1M7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1m14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1m-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1"}),"TuneRounded");var on={},Ea=We;Object.defineProperty(on,"__esModule",{value:!0});var ps=on.default=void 0,_a=Ea(qe()),xa=t;ps=on.default=(0,_a.default)((0,xa.jsx)("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"}),"Key");var cn={},ya=We;Object.defineProperty(cn,"__esModule",{value:!0});var ms=cn.default=void 0,Sa=ya(qe()),va=t;ms=cn.default=(0,Sa.default)((0,va.jsx)("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"}),"Login");var ln={},Na=We;Object.defineProperty(ln,"__esModule",{value:!0});var hs=ln.default=void 0,Aa=Na(qe()),Ta=t;hs=ln.default=(0,Aa.default)((0,Ta.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"}),"NotificationsNone");function un({label:e,disabled:n,required:s,initialValue:a,onChange:u,style:c,onSubmit:i,triggers:r,options:o,formatterBeforeSubmit:l,helperText:d,placeholder:y,renderImage:b,renderLabel:m,filterKeys:v,noEmpty:A,...C}){const[I,f]=$.useState(!1),[g,S]=$.useState(!1),[p,x]=fr.useState(""),[R,D]=$.useState(a),[O,_]=$.useState(R),w=$.useMemo(()=>{if(!o)return{};const F={};return o.forEach(E=>{F[E.code]=E}),F},[o]),T=()=>{if(!o)return[];if(!p)return o.map(E=>E.code);const F=new RegExp(p.toLowerCase());return o.filter(E=>{var N;for(let k=0;k<v.length;k++){const z=v[k];if(F.test((N=E[z])==null?void 0:N.toLowerCase()))return!0}return!1}).map(E=>E.code)},M=async()=>{S(!0);try{await i(typeof l=="function"?l(O):O)===!1?_(R):A&&!O.length?(_(a),D(a)):(_(O),D(O))}catch{_(R)}finally{S(!1),f(!1)}},U=(F,E)=>{if(!Array.isArray(E)){_([]),u([]);return}const N=E.filter(k=>w[k]);if(!N.length){_([]),u([]);return}_(N),u(N)},W=I?t.jsx(Zr,{options:o,value:O,onChange:U,inputValue:p,onInputChange:(F,E)=>{x(E)},PopperComponent:Ra,fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:T,getOptionLabel:F=>{var E;return(E=w[F])==null?void 0:E.name},renderInput:F=>t.jsx(te,{...F,label:"",placeholder:y}),renderOption:(F,E)=>{var k;const N=O.indexOf(E)!==-1;return $.createElement(Ca,{component:"li",...F,key:E},b(w[E]||{}),t.jsx(h,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:N?"700":"normal"},children:m(E,w[E])||((k=w[E])==null?void 0:k.name)}),t.jsx(h,{component:jn,sx:{opacity:.5,width:18,height:18},style:{visibility:N?"visible":"hidden"}}))},...C}):t.jsx(h,{px:1,className:"form-item-input slot",style:{whiteSpace:"pre-wrap"},children:O.filter(F=>o.some(E=>E.code===F)).map(F=>t.jsx(ts,{label:o.find(E=>E.code===F).name,style:{marginRight:8},size:"small"},F))});return t.jsx(Wr,{className:"form",style:c,children:t.jsxs(h,{className:"form-item",children:[t.jsxs(h,{className:"form-item-label",children:[e,s&&t.jsx(Yr,{})]}),t.jsxs(h,{className:"form-item-body",children:[t.jsx(h,{className:"form-item-input",children:W}),t.jsx(h,{className:"form-item-action",children:I?t.jsxs(t.Fragment,{children:[t.jsx(we,{"data-cy":"schema-form-item-confirm",onClick:M,disabled:n||g,size:"large",children:g?t.jsx(ht,{size:24}):t.jsx(qr,{})}),t.jsx(we,{"data-cy":"schema-form-item-cancel",onClick:()=>{_(R),f(!1)},disabled:n||g,size:"large",children:t.jsx(jn,{})})]}):t.jsx(Br,{triggers:r,onEnterEdit:()=>f(!0),disabled:n})})]}),I&&d&&t.jsx(Vr,{children:d})]})})}un.propTypes={style:K.object,onSubmit:K.func,onChange:K.func,label:K.string,initialValue:K.string,required:K.bool,disabled:K.bool,triggers:K.array,options:K.array,helperText:K.string,formatterBeforeSubmit:K.func,placeholder:K.string,renderImage:K.func,filterKeys:K.arrayOf(K.string),noEmpty:K.bool,renderLabel:K.func};un.defaultProps={style:{},onSubmit:()=>{},onChange:()=>{},label:"",initialValue:"",required:!1,disabled:!1,triggers:[],options:[],helperText:"",formatterBeforeSubmit:e=>e.join(","),placeholder:"",filterKeys:["name"],renderImage:()=>null,renderLabel:(e,n)=>"",noEmpty:!1};const Ca=Ee.div`
1
+ import{X as qe,Y as We,j as t,P as K,Z as Ee,bm as dr,r as $,ey as fr,B as h,db as jn,be as ts,az as we,l as ht,u as me,aM as fe,a1 as ae,q as Z,aV as ge,E as ve,fT as gr,a7 as Le,I as ns,bO as pr,T as Ut,fU as mr,ab as hr,ap as Qe,a9 as se,bl as br,a0 as _e,cq as Ue,aU as Kt,aP as Ze,fV as Er,fW as _r,b4 as et,h as j,N as je,bA as he,f8 as xr,bU as Te,w as yr,c as ft,f as He,aQ as ss,bj as tt,fX as Sr,fY as vr,a as Mn,fm as Nr,b as Ae,M as at,bB as Ke,bS as Ar,bT as Tr,bR as Cr,aY as Rr,aZ as Or,fZ as wr,fv as Ir,b3 as Lr,f_ as zt,dq as jr,cj as rs,bt as Mr,bs as Oe,cr as Dr,f$ as as,z as kr}from"./index-BHVmBQ8E.js";import{I as Pr}from"./iframe-Viwbu4Xm.js";import{I as Br,F as Ht,d as Fr,L as $r,a as Ur}from"./Edit-B4y9FSb5.js";import{B as is,d as os}from"./ChevronRight-DLpiW9Xe.js";import{d as cs}from"./ExpandMore-MF6JMWUJ.js";import{T as tn}from"./index-BTHSgca3.js";import{u as nn,b as Kr,c as zr,e as Hr}from"./dashboard-B4ToB_WX.js";import{d as Gr}from"./Loop-x0x8mTRv.js";import{d as qr}from"./Done-CKMtsSDh.js";import{F as Wr,R as Yr,L as At}from"./logo-uploader-BGnN7Ln3.js";import{a as Dn,A as Zr,u as Me,C as X}from"./index.esm-BTLuzvlk.js";import{T as te,F as Vr}from"./TextField-B0tdvs5D.js";import{e as Jr}from"./mode-B2dWMeTO.js";import{w as ls,P as Xr}from"./permission-D5QEfwx7.js";import{C as us}from"./confirm-WbbThheQ.js";import{f as sn,D as Qr}from"./format-error-DZ98jGc_.js";import{_ as ea}from"./useSetState-BTrtc5bD.js";import{u as ta}from"./session-C_q17DqM.js";import{C as na}from"./click-to-copy-lZXtD2ex.js";import{F as Ce,C as ds,S as sa}from"./FormControlLabel-CSgQzD8H.js";import{A as ra}from"./Alert-DjdB6kJi.js";import{a as ze}from"./index-CEQ26NUj.js";import{E as rn}from"./index-ev1wxRtJ.js";import{F as ie}from"./FormControl-C7YkaJ_C.js";import{d as aa}from"./Launch-DEUdTJHa.js";import{d as ia}from"./EditIcon-CjrPa4hu.js";import{A as Gt}from"./config-Cag5rmHW.js";import{a as oa}from"./ListItemText-DzuIoJgM.js";import{u as ca,a as la,D as ua,H as da}from"./index-D5vdosR6.js";import{S as bt}from"./switch-control-B8e0yzux.js";import{S as fa}from"./Slider-CWI7bXOG.js";import{D as ga}from"./index-DPzyMEVE.js";import{I as pa}from"./index-Cb2I5Pnm.js";import"./index-BwaeqOzE.js";import{i as fs}from"./index-Dbd8X1MQ.js";import{G as Tt}from"./redux-DfMVEh8C.js";import"./ArrowDropDown-D1r34mKE.js";import"./ButtonGroup-B2OCm4w2.js";import"./Avatar-B2aqlUr4.js";import"./useSlot-BXs-_Etv.js";import"./useLocalStorage-CyHzuw0V.js";import"./MoreVert-Yxhg1I2d.js";import"./Delete-BJX_VOZK.js";import"./PlayArrow-BnDxNqxv.js";import"./RadioGroup-CKSypMzt.js";import"./FormGroup-Dg7paSKn.js";import"./useFormControl-CIM987QD.js";import"./index-txKLyozl.js";import"./spaces-Cp3qdjuQ.js";import"./api-BP-akdsb.js";import"./Link-29c93vgL.js";import"./fallback-DV2p3NP7.js";import"./index-CU9bXzIx.js";import"./Toolbar-DDP1Q2zI.js";import"./Hidden-DwnJ4iUH.js";import"./MoreHoriz-DpzaIBa1.js";import"./index-B-KhRlcq.js";import"./selector-C_Cr9H0Y.js";import"./index-DxWLBhYd.js";import"./Select-Cgn_SK4j.js";import"./InputLabel-B3K-wjtt.js";import"./useAsync-SsrsgChA.js";import"./FilterList-D2fArxx7.js";import"./toPropertyKey-hKuLU48H.js";import"./LastPage-CxpvA1Xh.js";import"./Search-cf0osNnP.js";var an={},ma=We;Object.defineProperty(an,"__esModule",{value:!0});var gs=an.default=void 0,ha=ma(qe()),ba=t;gs=an.default=(0,ha.default)((0,ba.jsx)("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1M3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1m10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1M7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1m14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1m-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1"}),"TuneRounded");var on={},Ea=We;Object.defineProperty(on,"__esModule",{value:!0});var ps=on.default=void 0,_a=Ea(qe()),xa=t;ps=on.default=(0,_a.default)((0,xa.jsx)("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"}),"Key");var cn={},ya=We;Object.defineProperty(cn,"__esModule",{value:!0});var ms=cn.default=void 0,Sa=ya(qe()),va=t;ms=cn.default=(0,Sa.default)((0,va.jsx)("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"}),"Login");var ln={},Na=We;Object.defineProperty(ln,"__esModule",{value:!0});var hs=ln.default=void 0,Aa=Na(qe()),Ta=t;hs=ln.default=(0,Aa.default)((0,Ta.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"}),"NotificationsNone");function un({label:e,disabled:n,required:s,initialValue:a,onChange:u,style:c,onSubmit:i,triggers:r,options:o,formatterBeforeSubmit:l,helperText:d,placeholder:y,renderImage:b,renderLabel:m,filterKeys:v,noEmpty:A,...C}){const[I,f]=$.useState(!1),[g,S]=$.useState(!1),[p,x]=fr.useState(""),[R,D]=$.useState(a),[O,_]=$.useState(R),w=$.useMemo(()=>{if(!o)return{};const F={};return o.forEach(E=>{F[E.code]=E}),F},[o]),T=()=>{if(!o)return[];if(!p)return o.map(E=>E.code);const F=new RegExp(p.toLowerCase());return o.filter(E=>{var N;for(let k=0;k<v.length;k++){const z=v[k];if(F.test((N=E[z])==null?void 0:N.toLowerCase()))return!0}return!1}).map(E=>E.code)},M=async()=>{S(!0);try{await i(typeof l=="function"?l(O):O)===!1?_(R):A&&!O.length?(_(a),D(a)):(_(O),D(O))}catch{_(R)}finally{S(!1),f(!1)}},U=(F,E)=>{if(!Array.isArray(E)){_([]),u([]);return}const N=E.filter(k=>w[k]);if(!N.length){_([]),u([]);return}_(N),u(N)},W=I?t.jsx(Zr,{options:o,value:O,onChange:U,inputValue:p,onInputChange:(F,E)=>{x(E)},PopperComponent:Ra,fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:T,getOptionLabel:F=>{var E;return(E=w[F])==null?void 0:E.name},renderInput:F=>t.jsx(te,{...F,label:"",placeholder:y}),renderOption:(F,E)=>{var k;const N=O.indexOf(E)!==-1;return $.createElement(Ca,{component:"li",...F,key:E},b(w[E]||{}),t.jsx(h,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:N?"700":"normal"},children:m(E,w[E])||((k=w[E])==null?void 0:k.name)}),t.jsx(h,{component:jn,sx:{opacity:.5,width:18,height:18},style:{visibility:N?"visible":"hidden"}}))},...C}):t.jsx(h,{px:1,className:"form-item-input slot",style:{whiteSpace:"pre-wrap"},children:O.filter(F=>o.some(E=>E.code===F)).map(F=>t.jsx(ts,{label:o.find(E=>E.code===F).name,style:{marginRight:8},size:"small"},F))});return t.jsx(Wr,{className:"form",style:c,children:t.jsxs(h,{className:"form-item",children:[t.jsxs(h,{className:"form-item-label",children:[e,s&&t.jsx(Yr,{})]}),t.jsxs(h,{className:"form-item-body",children:[t.jsx(h,{className:"form-item-input",children:W}),t.jsx(h,{className:"form-item-action",children:I?t.jsxs(t.Fragment,{children:[t.jsx(we,{"data-cy":"schema-form-item-confirm",onClick:M,disabled:n||g,size:"large",children:g?t.jsx(ht,{size:24}):t.jsx(qr,{})}),t.jsx(we,{"data-cy":"schema-form-item-cancel",onClick:()=>{_(R),f(!1)},disabled:n||g,size:"large",children:t.jsx(jn,{})})]}):t.jsx(Br,{triggers:r,onEnterEdit:()=>f(!0),disabled:n})})]}),I&&d&&t.jsx(Vr,{children:d})]})})}un.propTypes={style:K.object,onSubmit:K.func,onChange:K.func,label:K.string,initialValue:K.string,required:K.bool,disabled:K.bool,triggers:K.array,options:K.array,helperText:K.string,formatterBeforeSubmit:K.func,placeholder:K.string,renderImage:K.func,filterKeys:K.arrayOf(K.string),noEmpty:K.bool,renderLabel:K.func};un.defaultProps={style:{},onSubmit:()=>{},onChange:()=>{},label:"",initialValue:"",required:!1,disabled:!1,triggers:[],options:[],helperText:"",formatterBeforeSubmit:e=>e.join(","),placeholder:"",filterKeys:["name"],renderImage:()=>null,renderLabel:(e,n)=>"",noEmpty:!1};const Ca=Ee.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{r as w,j as t,fL as rr,h as Fe,fM as nr,aM as W,u as K,N as Dt,B as T,aQ as ge,A as Ot,D as sr,fN as Ue,ab as le,ap as X,a1 as B,l as re,P as x,bO as or,cq as Te,T as ae,I as ir,eM as ar,Z as q,db as cr,a0 as de,bl as Y,q as ne,fO as lr,a9 as G,dn as dr,aV as It,E as z,a as he,c as gt,fP as At,bG as Tt,aS as mr,X as ur,Y as pr,bN as kt,k as fr,az as gr,dq as hr}from"./index-CHSnAsQ1.js";import{c as xr}from"./index-C82L-zg9.js";import{d as xe}from"./Add-CG-F3Tpq.js";import{d as vr}from"./Loop-AFtqcSsh.js";import{d as br}from"./ViewList-2sUBAhN9.js";import{L as yr,S as jr,d as Et}from"./list-header-CVFTxg9p.js";import{D as Nt,g as Sr}from"./index-DpC9sww1.js";import"./index-6uPYP6zK.js";import"./index-DViM25Vy.js";import{g as Lt}from"./resource-dialog-ifz0m_FZ.js";import{T as Pr}from"./index-B8_eoYBV.js";import{E as _t}from"./index-DJWtIeK5.js";import"./fallback-Co8Kc2kj.js";import"./index-Cnmgkvme.js";import{U as wr}from"./user-sessions-COQO8nIH.js";import{u as Q,d as ht,W as Ft,a as Cr}from"./dashboard-DJj7YdCJ.js";import{W as $e}from"./did-address-1pTl5ZJp.js";import{P as V}from"./permission-DPowxK7C.js";import{C as ye}from"./click-to-copy-C0t70-Pv.js";import{F as ke}from"./FormControl-B_Do5Nt6.js";import{I as Ee}from"./InputLabel-4YX1ylv6.js";import{S as Ne}from"./Select-D6CeNImJ.js";import{T as Ut}from"./TextField-DVioGsc-.js";import{D as Be,f as Z}from"./format-error-DSoyPyVx.js";import{A as te}from"./Alert-cwZghN5o.js";import{_ as Rr}from"./useAsync-B3RNaSvA.js";import{I as Le}from"./index-Bc3Y41oE.js";import{C as je}from"./confirm-DcZkK6Pc.js";import{u as $t}from"./session-DFjt4_rn.js";import{A as Dr}from"./Avatar-BVTgZMZu.js";import{d as Or}from"./Delete-DJZzf2v3.js";import{p as Ir}from"./index-HqFqdQ4r.js";import{A as Ar}from"./actions-DLwaHSiX.js";import{L as Tr,a as kr}from"./ListItemText-CbVOTWQ3.js";import{S as Er}from"./shorten-label--VZVYLZC.js";import{F as Nr,C as Lr}from"./FormControlLabel-BDYHQJ8F.js";import"./Search-CxTEsXhT.js";import"./FilterList-Cy1sL14k.js";import"./toPropertyKey-hKuLU48H.js";import"./useFormControl-oAKl9UVb.js";import"./FormGroup-Bk12j31H.js";import"./LastPage-BfloM2Wq.js";import"./Toolbar-CRxjvb2_.js";import"./index-BaC0Haea.js";import"./redux-DfSDCKtt.js";import"./MoreVert-Dd_rZHl1.js";import"./index-B36YvF84.js";import"./Hidden-kVeQMxEt.js";import"./MoreHoriz-kAuD1nY3.js";import"./ExpandMore-Vsh2QVwZ.js";import"./selector-C4Gh2j9t.js";import"./use-mobile-DCi1_Enm.js";import"./OpenInNew-DYXjNtnC.js";import"./CloseOutlined-D-nYpxl4.js";import"./useSlot-Cwz6OM5B.js";import"./useLocalStorage-BnVJN1iM.js";import"./PlayArrow-s9OSCCm9.js";import"./ButtonGroup-Cf877fOo.js";import"./RadioGroup-DImJzaoP.js";import"./index-0Kwb6jmK.js";import"./spaces-BGhjBX1b.js";import"./index-vwRhQ5RS.js";import"./api-CK31hCQN.js";import"./Link-D9C6v4KL.js";import"./useSetState-Bw-0RwWQ.js";var ze={};Object.defineProperty(ze,"__esModule",{value:!0});var Bt=ze.default=void 0;_r(w);var ee=t;function _r(e){return e&&e.__esModule?e:{default:e}}function xt(e,n){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(v){return Object.getOwnPropertyDescriptor(e,v).enumerable})),s.push.apply(s,i)}return s}function vt(e){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?xt(Object(s),!0).forEach(function(i){Fr(e,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):xt(Object(s)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(s,i))})}return e}function Fr(e,n,s){return n=Ur(n),n in e?Object.defineProperty(e,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[n]=s,e}function Ur(e){var n=$r(e,"string");return typeof n=="symbol"?n:String(n)}function $r(e,n){if(typeof e!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var i=s.call(e,n||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var We=function(n){return(0,ee.jsxs)("svg",vt(vt({},n),{},{children:[(0,ee.jsx)("g",{clipPath:"url(#clip0)",children:(0,ee.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1.598A4.092 4.092 0 1 0 9 9.78a4.092 4.092 0 0 0 0-8.183zM7.274 3.964a2.44 2.44 0 1 1 3.452 3.451 2.44 2.44 0 0 1-3.452-3.451zm.093 6.343A4.091 4.091 0 0 0 3.275 14.4v2.722c0 .155.126.281.281.281h1.09a.281.281 0 0 0 .28-.281v-2.722a2.44 2.44 0 0 1 2.44-2.44h3.267a2.442 2.442 0 0 1 2.44 2.44v2.722c0 .155.127.281.282.281h1.088a.281.281 0 0 0 .282-.281v-2.722a4.091 4.091 0 0 0-4.092-4.091H7.367z"})}),(0,ee.jsx)("defs",{children:(0,ee.jsx)("clipPath",{id:"clip0",children:(0,ee.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};We.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};We.displayName="person";Bt=ze.default=We;var fe={},Br=e=>encodeURIComponent(e).replace(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`),zt="%[a-f0-9]{2}",bt=new RegExp("("+zt+")|([^%]+?)","gi"),yt=new RegExp("("+zt+")+","gi");function _e(e,n){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;n=n||1;var s=e.slice(0,n),i=e.slice(n);return Array.prototype.concat.call([],_e(s),_e(i))}function zr(e){try{return decodeURIComponent(e)}catch{for(var n=e.match(bt)||[],s=1;s<n.length;s++)e=_e(n,s).join(""),n=e.match(bt)||[];return e}}function Wr(e){for(var n={"%FE%FF":"��","%FF%FE":"��"},s=yt.exec(e);s;){try{n[s[0]]=decodeURIComponent(s[0])}catch{var i=zr(s[0]);i!==s[0]&&(n[s[0]]=i)}s=yt.exec(e)}n["%C2"]="�";for(var v=Object.keys(n),P=0;P<v.length;P++){var C=v[P];e=e.replace(new RegExp(C,"g"),n[C])}return e}var qr=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return Wr(e)}},Mr=(e,n)=>{if(!(typeof e=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n==="")return[e];const s=e.indexOf(n);return s===-1?[e]:[e.slice(0,s),e.slice(s+n.length)]},Hr=function(e,n){for(var s={},i=Object.keys(e),v=Array.isArray(n),P=0;P<i.length;P++){var C=i[P],R=e[C];(v?n.indexOf(C)!==-1:n(C,R,e))&&(s[C]=R)}return s};(function(e){const n=Br,s=qr,i=Mr,v=Hr,P=r=>r==null;function C(r){switch(r.arrayFormat){case"index":return o=>(c,l)=>{const m=c.length;return l===void 0||r.skipNull&&l===null||r.skipEmptyString&&l===""?c:l===null?[...c,[y(o,r),"[",m,"]"].join("")]:[...c,[y(o,r),"[",y(m,r),"]=",y(l,r)].join("")]};case"bracket":return o=>(c,l)=>l===void 0||r.skipNull&&l===null||r.skipEmptyString&&l===""?c:l===null?[...c,[y(o,r),"[]"].join("")]:[...c,[y(o,r),"[]=",y(l,r)].join("")];case"comma":case"separator":return o=>(c,l)=>l==null||l.length===0?c:c.length===0?[[y(o,r),"=",y(l,r)].join("")]:[[c,y(l,r)].join(r.arrayFormatSeparator)];default:return o=>(c,l)=>l===void 0||r.skipNull&&l===null||r.skipEmptyString&&l===""?c:l===null?[...c,y(o,r)]:[...c,[y(o,r),"=",y(l,r)].join("")]}}function R(r){let o;switch(r.arrayFormat){case"index":return(c,l,m)=>{if(o=/\[(\d*)\]$/.exec(c),c=c.replace(/\[\d*\]$/,""),!o){m[c]=l;return}m[c]===void 0&&(m[c]={}),m[c][o[1]]=l};case"bracket":return(c,l,m)=>{if(o=/(\[\])$/.exec(c),c=c.replace(/\[\]$/,""),!o){m[c]=l;return}if(m[c]===void 0){m[c]=[l];return}m[c]=[].concat(m[c],l)};case"comma":case"separator":return(c,l,m)=>{const S=typeof l=="string"&&l.includes(r.arrayFormatSeparator),g=typeof l=="string"&&!S&&a(l,r).includes(r.arrayFormatSeparator);l=g?a(l,r):l;const O=S||g?l.split(r.arrayFormatSeparator).map(U=>a(U,r)):l===null?l:a(l,r);m[c]=O};default:return(c,l,m)=>{if(m[c]===void 0){m[c]=l;return}m[c]=[].concat(m[c],l)}}}function p(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function y(r,o){return o.encode?o.strict?n(r):encodeURIComponent(r):r}function a(r,o){return o.decode?s(r):r}function I(r){return Array.isArray(r)?r.sort():typeof r=="object"?I(Object.keys(r)).sort((o,c)=>Number(o)-Number(c)).map(o=>r[o]):r}function u(r){const o=r.indexOf("#");return o!==-1&&(r=r.slice(0,o)),r}function b(r){let o="";const c=r.indexOf("#");return c!==-1&&(o=r.slice(c)),o}function f(r){r=u(r);const o=r.indexOf("?");return o===-1?"":r.slice(o+1)}function D(r,o){return o.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):o.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function j(r,o){o=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},o),p(o.arrayFormatSeparator);const c=R(o),l=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return l;for(const m of r.split("&")){if(m==="")continue;let[S,g]=i(o.decode?m.replace(/\+/g," "):m,"=");g=g===void 0?null:["comma","separator"].includes(o.arrayFormat)?g:a(g,o),c(a(S,o),g,l)}for(const m of Object.keys(l)){const S=l[m];if(typeof S=="object"&&S!==null)for(const g of Object.keys(S))S[g]=D(S[g],o);else l[m]=D(S,o)}return o.sort===!1?l:(o.sort===!0?Object.keys(l).sort():Object.keys(l).sort(o.sort)).reduce((m,S)=>{const g=l[S];return g&&typeof g=="object"&&!Array.isArray(g)?m[S]=I(g):m[S]=g,m},Object.create(null))}e.extract=f,e.parse=j,e.stringify=(r,o)=>{if(!r)return"";o=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},o),p(o.arrayFormatSeparator);const c=g=>o.skipNull&&P(r[g])||o.skipEmptyString&&r[g]==="",l=C(o),m={};for(const g of Object.keys(r))c(g)||(m[g]=r[g]);const S=Object.keys(m);return o.sort!==!1&&S.sort(o.sort),S.map(g=>{const O=r[g];return O===void 0?"":O===null?y(g,o):Array.isArray(O)?O.reduce(l(g),[]).join("&"):y(g,o)+"="+y(O,o)}).filter(g=>g.length>0).join("&")},e.parseUrl=(r,o)=>{o=Object.assign({decode:!0},o);const[c,l]=i(r,"#");return Object.assign({url:c.split("?")[0]||"",query:j(f(r),o)},o&&o.parseFragmentIdentifier&&l?{fragmentIdentifier:a(l,o)}:{})},e.stringifyUrl=(r,o)=>{o=Object.assign({encode:!0,strict:!0},o);const c=u(r.url).split("?")[0]||"",l=e.extract(r.url),m=e.parse(l,{sort:!1}),S=Object.assign(m,r.query);let g=e.stringify(S,o);g&&(g=`?${g}`);let O=b(r.url);return r.fragmentIdentifier&&(O=`#${y(r.fragmentIdentifier,o)}`),`${c}${g}${O}`},e.pick=(r,o,c)=>{c=Object.assign({parseFragmentIdentifier:!0},c);const{url:l,query:m,fragmentIdentifier:S}=e.parseUrl(r,c);return e.stringifyUrl({url:l,query:v(m,o),fragmentIdentifier:S},c)},e.exclude=(r,o,c)=>{const l=Array.isArray(o)?m=>!o.includes(m):(m,S)=>!o(m,S);return e.pick(r,l,c)}})(fe);const ie=nr,Vr={parseNumbers:!1,parseBooleans:!1},Kr={skipNull:!1,skipEmptyString:!1},Qr=(e,n)=>{var s,i;const{navigateMode:v="push",parseOptions:P,stringifyOptions:C}=n||{},R=Object.assign(Object.assign({},Vr),P),p=Object.assign(Object.assign({},Kr),C),y=ie.useLocation(),a=(s=ie.useHistory)===null||s===void 0?void 0:s.call(ie),I=(i=ie.useNavigate)===null||i===void 0?void 0:i.call(ie),u=rr(),b=w.useRef(typeof e=="function"?e():e||{}),f=w.useMemo(()=>fe.parse(y.search,R),[y.search]),D=w.useMemo(()=>Object.assign(Object.assign({},b.current),f),[f]);return[D,Fe(r=>{const o=typeof r=="function"?r(D):r;u(),a&&a[v]({hash:y.hash,search:fe.stringify(Object.assign(Object.assign({},f),o),p)||"?"},y.state),I&&I({hash:y.hash,search:fe.stringify(Object.assign(Object.assign({},f),o),p)||"?"},{replace:v==="replace",state:y.state})})]},Xr=Qr;function qe({teamDid:e,roles:n,apps:s,onCancel:i,onSuccess:v,onError:P,endpoint:C}){const{api:R}=W(),{t:p,locale:y}=K(),a=Dt({loading:!1,error:null,activeStep:0,inviteInfo:null,role:"",remark:"",sourceAppPid:s.length>0?s[0].appId:null}),I=async()=>{if(!a.role){a.error=p("team.member.error.passportEmpty");return}const f=a.remark.trim();a.error=null,a.loading=!0;try{const{inviteInfo:D}=await R.createMemberInvitation({input:{teamDid:e,role:a.role,remark:f,sourceAppPid:a.sourceAppPid}});a.inviteInfo=D,a.activeStep=1}catch(D){const j=Z(D);a.error=j,P(D)}finally{a.loading=!1}},b=[{body:t.jsxs(T,{sx:{display:"flex",flexDirection:"column",gap:3},children:[s.length>1?t.jsxs(ke,{fullWidth:!0,children:[t.jsx(Ee,{children:p("common.sourceApp")}),t.jsx(Ne,{value:a.sourceAppPid,onChange:f=>{a.error=null,a.sourceAppPid=f.target.value},fullWidth:!0,label:p("common.passport"),disabled:a.loading,children:s.map(f=>t.jsx(ge,{value:f.appId,children:t.jsxs(T,{sx:{display:"flex",justifyContent:"space-between",gap:2,width:"100%"},children:[t.jsxs(T,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx(Ot,{did:f.appId,size:28}),f.appName]}),t.jsx(sr,{did:f.appId,compact:!0,responsive:!1})]})},f.appId))})]}):null,t.jsxs(ke,{fullWidth:!0,variant:"outlined",children:[t.jsx(Ee,{children:p("common.passport")}),t.jsx(Ne,{"data-cy":"invite-member-select-role",value:a.role,onChange:f=>{a.error=null,a.role=f.target.value},fullWidth:!0,label:p("common.passport"),disabled:a.loading,onKeyPress:f=>{f.key==="Enter"&&(f.preventDefault(),I())},children:n.filter(f=>f.name!=="owner").map(f=>t.jsx(ge,{value:f.name,"data-cy":`invite-member-select-option-${f.name}`,children:t.jsx("span",{children:f.title||f.name})},f.name))})]}),t.jsx(Ut,{label:p("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:a.remark,onChange:f=>{a.error=null,a.remark=f.target.value},disabled:a.loading,"data-cy":"invite-member-input-remark"})]}),cancel:p("common.cancel"),confirm:p("team.member.inviteDialog.createInviteLink"),onCancel:i,onConfirm:I},{body:()=>{var D,j;const f=Ue({inviteId:(D=a.inviteInfo)==null?void 0:D.inviteId,endpoint:C});return t.jsxs("div",{children:[t.jsx(T,{sx:{fontSize:16,fontWeight:"bold"},children:p("team.member.inviteDialog.createSuccessTip",{expireDate:le((j=a.inviteInfo)==null?void 0:j.expireDate,y)})}),t.jsx("div",{style:{marginTop:"40px"}}),t.jsx(ye,{children:f})]})},confirm:p("common.confirm"),onConfirm:v}][a.activeStep];return t.jsxs(X,{title:p("common.invite"),fullWidth:!0,open:!0,showCloseButton:!1,actions:t.jsxs(t.Fragment,{children:[b.cancel&&t.jsx(B,{onClick:b.onCancel,color:"inherit",children:b.cancel}),t.jsxs(B,{onClick:b.onConfirm,color:"primary",disabled:a.loading||!a.role,variant:"contained",autoFocus:!0,children:[a.loading&&t.jsx(re,{size:16}),b.confirm]})]}),children:[t.jsx(Be,{component:"div",children:typeof b.body=="function"?b.body():b.body}),!!a.error&&t.jsx(te,{severity:"error",variant:"icon",children:a.error})]})}qe.propTypes={teamDid:x.string.isRequired,onCancel:x.func.isRequired,onSuccess:x.func.isRequired,onError:x.func,roles:x.array,apps:x.array,endpoint:x.string};qe.defaultProps={onError:()=>{},roles:[],apps:[],endpoint:""};function Me({teamDid:e,onCancel:n,onSuccess:s,onError:i,endpoint:v}){const{api:P,info:C}=W(),{api:R}=w.useContext(or),[p,y]=w.useState(!1),{t:a,locale:I}=K(),[u,b]=w.useState(""),[f,D]=w.useState(!1),[j,r]=w.useState(0),[o,c]=w.useState(""),[l,m]=w.useState(""),S=!!Te(C,"ownerNft.did"),g=Rr(async()=>{if(S){const{state:E}=await P.getDelegationState();return E}return{delegated:!0}});if(g.loading)return t.jsx(X,{title:a("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:n,children:t.jsx("div",{style:{display:"flex",justifyContent:"center"},children:t.jsx(re,{})})});if(g.error)return t.jsx(X,{title:a("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:n,children:t.jsx(te,{severity:"error",variant:"icon",children:Z(g.error)})});const O=async()=>{b(null),y(!0);try{const{inviteInfo:E}=await P.createTransferInvitation({input:{teamDid:e,role:"owner",remark:l.trim()}});c(E),r(H.length-1)}catch(E){const J=Z(E);b(J),i(E)}finally{y(!1)}},U=()=>{D(!0),r(1)},M=()=>{D(!1),r(0)},H=[{body:t.jsxs(ae,{component:"div",children:[t.jsxs(te,{severity:"warning",children:[t.jsx(ae,{children:a("team.transferNode.inviteDialog.tips.progress")}),t.jsx(ae,{children:a("team.transferNode.inviteDialog.tips.newOwnerPermissions")})]}),t.jsx(te,{severity:"warning",children:t.jsx(ae,{children:a("team.transferNode.inviteDialog.tips.revoke")})}),t.jsx("div",{style:{marginTop:20,marginBottom:10}}),t.jsx(Ut,{label:a("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:l,onChange:E=>{b(null),m(E.target.value)},disabled:p,"data-cy":"transfer-node-input-remark"}),t.jsx("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:a("common.cancel"),confirm:a("team.transferNode.inviteDialog.createInviteLink"),onCancel:n,onConfirm:S&&!Te(g,"value.delegated")?U:O},{body:()=>t.jsx(ir,{action:"delegate-transfer-nft",open:f,locale:I,checkFn:R.get,onClose:M,onSuccess:O,checkTimeout:5*60*1e3,webWalletUrl:ar(C),extraParams:{targetDID:C.did},messages:{title:a("team.transferNode.delegateDialog.title"),scan:a("team.transferNode.delegateDialog.scan"),confirm:a("team.transferNode.delegateDialog.confirm"),success:a("team.transferNode.delegateDialog.success")},popup:!0})},{body:()=>{const E=Ue({inviteId:o.inviteId,endpoint:v});return t.jsxs("div",{children:[t.jsx(Gr,{children:a("team.transferNode.inviteDialog.createSuccessTip",{expireDate:le(o.expireDate,I)})}),t.jsx("div",{style:{marginTop:"40px"}}),t.jsx(ye,{children:E})]})},confirm:a("common.confirm"),onConfirm:s}],_=H[j];return t.jsxs(X,{title:a("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,showCloseButton:!1,actions:t.jsxs(t.Fragment,{children:[_.cancel&&t.jsx(B,{onClick:_.onCancel,color:"inherit",children:_.cancel}),t.jsxs(B,{onClick:_.onConfirm,color:"primary",disabled:p,variant:"contained",autoFocus:!0,children:[p&&t.jsx(re,{size:16}),_.confirm]})]}),children:[t.jsx(Be,{component:"div",children:typeof _.body=="function"?_.body():_.body}),!!u&&t.jsx(te,{severity:"error",variant:"icon",children:u})]})}Me.propTypes={teamDid:x.string.isRequired,onCancel:x.func.isRequired,onSuccess:x.func.isRequired,onError:x.func,endpoint:x.string};Me.defaultProps={onError:()=>{},endpoint:""};const Gr=q.div`
1
+ import{r as w,j as t,fL as rr,h as Fe,fM as nr,aM as W,u as K,N as Dt,B as T,aQ as ge,A as Ot,D as sr,fN as Ue,ab as le,ap as X,a1 as B,l as re,P as x,bO as or,cq as Te,T as ae,I as ir,eM as ar,Z as q,db as cr,a0 as de,bl as Y,q as ne,fO as lr,a9 as G,dn as dr,aV as It,E as z,a as he,c as gt,fP as At,bG as Tt,aS as mr,X as ur,Y as pr,bN as kt,k as fr,az as gr,dq as hr}from"./index-BHVmBQ8E.js";import{c as xr}from"./index-DxWLBhYd.js";import{d as xe}from"./Add-DYUoCOSD.js";import{d as vr}from"./Loop-x0x8mTRv.js";import{d as br}from"./ViewList-ByImqA3D.js";import{L as yr,S as jr,d as Et}from"./list-header-ek3KY30P.js";import{D as Nt,g as Sr}from"./index-DPzyMEVE.js";import"./index-D2Sq56Bc.js";import"./index-B-KhRlcq.js";import{g as Lt}from"./resource-dialog-Dz_4-Jou.js";import{T as Pr}from"./index-BTHSgca3.js";import{E as _t}from"./index-ev1wxRtJ.js";import"./fallback-DV2p3NP7.js";import"./index-CEQ26NUj.js";import{U as wr}from"./user-sessions-CzcM49ld.js";import{u as Q,d as ht,W as Ft,a as Cr}from"./dashboard-B4ToB_WX.js";import{W as $e}from"./did-address-Dm6G9Pz0.js";import{P as V}from"./permission-D5QEfwx7.js";import{C as ye}from"./click-to-copy-lZXtD2ex.js";import{F as ke}from"./FormControl-C7YkaJ_C.js";import{I as Ee}from"./InputLabel-B3K-wjtt.js";import{S as Ne}from"./Select-Cgn_SK4j.js";import{T as Ut}from"./TextField-B0tdvs5D.js";import{D as Be,f as Z}from"./format-error-DZ98jGc_.js";import{A as te}from"./Alert-DjdB6kJi.js";import{_ as Rr}from"./useAsync-SsrsgChA.js";import{I as Le}from"./index-Cb2I5Pnm.js";import{C as je}from"./confirm-WbbThheQ.js";import{u as $t}from"./session-C_q17DqM.js";import{A as Dr}from"./Avatar-B2aqlUr4.js";import{d as Or}from"./Delete-BJX_VOZK.js";import{p as Ir}from"./index-HqFqdQ4r.js";import{A as Ar}from"./actions-jiSiBiRc.js";import{L as Tr,a as kr}from"./ListItemText-DzuIoJgM.js";import{S as Er}from"./shorten-label-C0fy7vw5.js";import{F as Nr,C as Lr}from"./FormControlLabel-CSgQzD8H.js";import"./Search-cf0osNnP.js";import"./FilterList-D2fArxx7.js";import"./toPropertyKey-hKuLU48H.js";import"./useFormControl-CIM987QD.js";import"./FormGroup-Dg7paSKn.js";import"./LastPage-CxpvA1Xh.js";import"./Toolbar-DDP1Q2zI.js";import"./index-D5vdosR6.js";import"./redux-DfMVEh8C.js";import"./MoreVert-Yxhg1I2d.js";import"./index-CU9bXzIx.js";import"./Hidden-DwnJ4iUH.js";import"./MoreHoriz-DpzaIBa1.js";import"./ExpandMore-MF6JMWUJ.js";import"./selector-C_Cr9H0Y.js";import"./use-mobile-BJKZGD1I.js";import"./OpenInNew-CyuaC2rt.js";import"./CloseOutlined-CyTE8SBm.js";import"./useSlot-BXs-_Etv.js";import"./useLocalStorage-CyHzuw0V.js";import"./PlayArrow-BnDxNqxv.js";import"./ButtonGroup-B2OCm4w2.js";import"./RadioGroup-CKSypMzt.js";import"./index-txKLyozl.js";import"./spaces-Cp3qdjuQ.js";import"./index-Dbd8X1MQ.js";import"./api-BP-akdsb.js";import"./Link-29c93vgL.js";import"./useSetState-BTrtc5bD.js";var ze={};Object.defineProperty(ze,"__esModule",{value:!0});var Bt=ze.default=void 0;_r(w);var ee=t;function _r(e){return e&&e.__esModule?e:{default:e}}function xt(e,n){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(v){return Object.getOwnPropertyDescriptor(e,v).enumerable})),s.push.apply(s,i)}return s}function vt(e){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?xt(Object(s),!0).forEach(function(i){Fr(e,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):xt(Object(s)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(s,i))})}return e}function Fr(e,n,s){return n=Ur(n),n in e?Object.defineProperty(e,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[n]=s,e}function Ur(e){var n=$r(e,"string");return typeof n=="symbol"?n:String(n)}function $r(e,n){if(typeof e!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var i=s.call(e,n||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var We=function(n){return(0,ee.jsxs)("svg",vt(vt({},n),{},{children:[(0,ee.jsx)("g",{clipPath:"url(#clip0)",children:(0,ee.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1.598A4.092 4.092 0 1 0 9 9.78a4.092 4.092 0 0 0 0-8.183zM7.274 3.964a2.44 2.44 0 1 1 3.452 3.451 2.44 2.44 0 0 1-3.452-3.451zm.093 6.343A4.091 4.091 0 0 0 3.275 14.4v2.722c0 .155.126.281.281.281h1.09a.281.281 0 0 0 .28-.281v-2.722a2.44 2.44 0 0 1 2.44-2.44h3.267a2.442 2.442 0 0 1 2.44 2.44v2.722c0 .155.127.281.282.281h1.088a.281.281 0 0 0 .282-.281v-2.722a4.091 4.091 0 0 0-4.092-4.091H7.367z"})}),(0,ee.jsx)("defs",{children:(0,ee.jsx)("clipPath",{id:"clip0",children:(0,ee.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};We.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};We.displayName="person";Bt=ze.default=We;var fe={},Br=e=>encodeURIComponent(e).replace(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`),zt="%[a-f0-9]{2}",bt=new RegExp("("+zt+")|([^%]+?)","gi"),yt=new RegExp("("+zt+")+","gi");function _e(e,n){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;n=n||1;var s=e.slice(0,n),i=e.slice(n);return Array.prototype.concat.call([],_e(s),_e(i))}function zr(e){try{return decodeURIComponent(e)}catch{for(var n=e.match(bt)||[],s=1;s<n.length;s++)e=_e(n,s).join(""),n=e.match(bt)||[];return e}}function Wr(e){for(var n={"%FE%FF":"��","%FF%FE":"��"},s=yt.exec(e);s;){try{n[s[0]]=decodeURIComponent(s[0])}catch{var i=zr(s[0]);i!==s[0]&&(n[s[0]]=i)}s=yt.exec(e)}n["%C2"]="�";for(var v=Object.keys(n),P=0;P<v.length;P++){var C=v[P];e=e.replace(new RegExp(C,"g"),n[C])}return e}var qr=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return Wr(e)}},Mr=(e,n)=>{if(!(typeof e=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n==="")return[e];const s=e.indexOf(n);return s===-1?[e]:[e.slice(0,s),e.slice(s+n.length)]},Hr=function(e,n){for(var s={},i=Object.keys(e),v=Array.isArray(n),P=0;P<i.length;P++){var C=i[P],R=e[C];(v?n.indexOf(C)!==-1:n(C,R,e))&&(s[C]=R)}return s};(function(e){const n=Br,s=qr,i=Mr,v=Hr,P=r=>r==null;function C(r){switch(r.arrayFormat){case"index":return o=>(c,l)=>{const m=c.length;return l===void 0||r.skipNull&&l===null||r.skipEmptyString&&l===""?c:l===null?[...c,[y(o,r),"[",m,"]"].join("")]:[...c,[y(o,r),"[",y(m,r),"]=",y(l,r)].join("")]};case"bracket":return o=>(c,l)=>l===void 0||r.skipNull&&l===null||r.skipEmptyString&&l===""?c:l===null?[...c,[y(o,r),"[]"].join("")]:[...c,[y(o,r),"[]=",y(l,r)].join("")];case"comma":case"separator":return o=>(c,l)=>l==null||l.length===0?c:c.length===0?[[y(o,r),"=",y(l,r)].join("")]:[[c,y(l,r)].join(r.arrayFormatSeparator)];default:return o=>(c,l)=>l===void 0||r.skipNull&&l===null||r.skipEmptyString&&l===""?c:l===null?[...c,y(o,r)]:[...c,[y(o,r),"=",y(l,r)].join("")]}}function R(r){let o;switch(r.arrayFormat){case"index":return(c,l,m)=>{if(o=/\[(\d*)\]$/.exec(c),c=c.replace(/\[\d*\]$/,""),!o){m[c]=l;return}m[c]===void 0&&(m[c]={}),m[c][o[1]]=l};case"bracket":return(c,l,m)=>{if(o=/(\[\])$/.exec(c),c=c.replace(/\[\]$/,""),!o){m[c]=l;return}if(m[c]===void 0){m[c]=[l];return}m[c]=[].concat(m[c],l)};case"comma":case"separator":return(c,l,m)=>{const S=typeof l=="string"&&l.includes(r.arrayFormatSeparator),g=typeof l=="string"&&!S&&a(l,r).includes(r.arrayFormatSeparator);l=g?a(l,r):l;const O=S||g?l.split(r.arrayFormatSeparator).map(U=>a(U,r)):l===null?l:a(l,r);m[c]=O};default:return(c,l,m)=>{if(m[c]===void 0){m[c]=l;return}m[c]=[].concat(m[c],l)}}}function p(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function y(r,o){return o.encode?o.strict?n(r):encodeURIComponent(r):r}function a(r,o){return o.decode?s(r):r}function I(r){return Array.isArray(r)?r.sort():typeof r=="object"?I(Object.keys(r)).sort((o,c)=>Number(o)-Number(c)).map(o=>r[o]):r}function u(r){const o=r.indexOf("#");return o!==-1&&(r=r.slice(0,o)),r}function b(r){let o="";const c=r.indexOf("#");return c!==-1&&(o=r.slice(c)),o}function f(r){r=u(r);const o=r.indexOf("?");return o===-1?"":r.slice(o+1)}function D(r,o){return o.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):o.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function j(r,o){o=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},o),p(o.arrayFormatSeparator);const c=R(o),l=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return l;for(const m of r.split("&")){if(m==="")continue;let[S,g]=i(o.decode?m.replace(/\+/g," "):m,"=");g=g===void 0?null:["comma","separator"].includes(o.arrayFormat)?g:a(g,o),c(a(S,o),g,l)}for(const m of Object.keys(l)){const S=l[m];if(typeof S=="object"&&S!==null)for(const g of Object.keys(S))S[g]=D(S[g],o);else l[m]=D(S,o)}return o.sort===!1?l:(o.sort===!0?Object.keys(l).sort():Object.keys(l).sort(o.sort)).reduce((m,S)=>{const g=l[S];return g&&typeof g=="object"&&!Array.isArray(g)?m[S]=I(g):m[S]=g,m},Object.create(null))}e.extract=f,e.parse=j,e.stringify=(r,o)=>{if(!r)return"";o=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},o),p(o.arrayFormatSeparator);const c=g=>o.skipNull&&P(r[g])||o.skipEmptyString&&r[g]==="",l=C(o),m={};for(const g of Object.keys(r))c(g)||(m[g]=r[g]);const S=Object.keys(m);return o.sort!==!1&&S.sort(o.sort),S.map(g=>{const O=r[g];return O===void 0?"":O===null?y(g,o):Array.isArray(O)?O.reduce(l(g),[]).join("&"):y(g,o)+"="+y(O,o)}).filter(g=>g.length>0).join("&")},e.parseUrl=(r,o)=>{o=Object.assign({decode:!0},o);const[c,l]=i(r,"#");return Object.assign({url:c.split("?")[0]||"",query:j(f(r),o)},o&&o.parseFragmentIdentifier&&l?{fragmentIdentifier:a(l,o)}:{})},e.stringifyUrl=(r,o)=>{o=Object.assign({encode:!0,strict:!0},o);const c=u(r.url).split("?")[0]||"",l=e.extract(r.url),m=e.parse(l,{sort:!1}),S=Object.assign(m,r.query);let g=e.stringify(S,o);g&&(g=`?${g}`);let O=b(r.url);return r.fragmentIdentifier&&(O=`#${y(r.fragmentIdentifier,o)}`),`${c}${g}${O}`},e.pick=(r,o,c)=>{c=Object.assign({parseFragmentIdentifier:!0},c);const{url:l,query:m,fragmentIdentifier:S}=e.parseUrl(r,c);return e.stringifyUrl({url:l,query:v(m,o),fragmentIdentifier:S},c)},e.exclude=(r,o,c)=>{const l=Array.isArray(o)?m=>!o.includes(m):(m,S)=>!o(m,S);return e.pick(r,l,c)}})(fe);const ie=nr,Vr={parseNumbers:!1,parseBooleans:!1},Kr={skipNull:!1,skipEmptyString:!1},Qr=(e,n)=>{var s,i;const{navigateMode:v="push",parseOptions:P,stringifyOptions:C}=n||{},R=Object.assign(Object.assign({},Vr),P),p=Object.assign(Object.assign({},Kr),C),y=ie.useLocation(),a=(s=ie.useHistory)===null||s===void 0?void 0:s.call(ie),I=(i=ie.useNavigate)===null||i===void 0?void 0:i.call(ie),u=rr(),b=w.useRef(typeof e=="function"?e():e||{}),f=w.useMemo(()=>fe.parse(y.search,R),[y.search]),D=w.useMemo(()=>Object.assign(Object.assign({},b.current),f),[f]);return[D,Fe(r=>{const o=typeof r=="function"?r(D):r;u(),a&&a[v]({hash:y.hash,search:fe.stringify(Object.assign(Object.assign({},f),o),p)||"?"},y.state),I&&I({hash:y.hash,search:fe.stringify(Object.assign(Object.assign({},f),o),p)||"?"},{replace:v==="replace",state:y.state})})]},Xr=Qr;function qe({teamDid:e,roles:n,apps:s,onCancel:i,onSuccess:v,onError:P,endpoint:C}){const{api:R}=W(),{t:p,locale:y}=K(),a=Dt({loading:!1,error:null,activeStep:0,inviteInfo:null,role:"",remark:"",sourceAppPid:s.length>0?s[0].appId:null}),I=async()=>{if(!a.role){a.error=p("team.member.error.passportEmpty");return}const f=a.remark.trim();a.error=null,a.loading=!0;try{const{inviteInfo:D}=await R.createMemberInvitation({input:{teamDid:e,role:a.role,remark:f,sourceAppPid:a.sourceAppPid}});a.inviteInfo=D,a.activeStep=1}catch(D){const j=Z(D);a.error=j,P(D)}finally{a.loading=!1}},b=[{body:t.jsxs(T,{sx:{display:"flex",flexDirection:"column",gap:3},children:[s.length>1?t.jsxs(ke,{fullWidth:!0,children:[t.jsx(Ee,{children:p("common.sourceApp")}),t.jsx(Ne,{value:a.sourceAppPid,onChange:f=>{a.error=null,a.sourceAppPid=f.target.value},fullWidth:!0,label:p("common.passport"),disabled:a.loading,children:s.map(f=>t.jsx(ge,{value:f.appId,children:t.jsxs(T,{sx:{display:"flex",justifyContent:"space-between",gap:2,width:"100%"},children:[t.jsxs(T,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx(Ot,{did:f.appId,size:28}),f.appName]}),t.jsx(sr,{did:f.appId,compact:!0,responsive:!1})]})},f.appId))})]}):null,t.jsxs(ke,{fullWidth:!0,variant:"outlined",children:[t.jsx(Ee,{children:p("common.passport")}),t.jsx(Ne,{"data-cy":"invite-member-select-role",value:a.role,onChange:f=>{a.error=null,a.role=f.target.value},fullWidth:!0,label:p("common.passport"),disabled:a.loading,onKeyPress:f=>{f.key==="Enter"&&(f.preventDefault(),I())},children:n.filter(f=>f.name!=="owner").map(f=>t.jsx(ge,{value:f.name,"data-cy":`invite-member-select-option-${f.name}`,children:t.jsx("span",{children:f.title||f.name})},f.name))})]}),t.jsx(Ut,{label:p("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:a.remark,onChange:f=>{a.error=null,a.remark=f.target.value},disabled:a.loading,"data-cy":"invite-member-input-remark"})]}),cancel:p("common.cancel"),confirm:p("team.member.inviteDialog.createInviteLink"),onCancel:i,onConfirm:I},{body:()=>{var D,j;const f=Ue({inviteId:(D=a.inviteInfo)==null?void 0:D.inviteId,endpoint:C});return t.jsxs("div",{children:[t.jsx(T,{sx:{fontSize:16,fontWeight:"bold"},children:p("team.member.inviteDialog.createSuccessTip",{expireDate:le((j=a.inviteInfo)==null?void 0:j.expireDate,y)})}),t.jsx("div",{style:{marginTop:"40px"}}),t.jsx(ye,{children:f})]})},confirm:p("common.confirm"),onConfirm:v}][a.activeStep];return t.jsxs(X,{title:p("common.invite"),fullWidth:!0,open:!0,showCloseButton:!1,actions:t.jsxs(t.Fragment,{children:[b.cancel&&t.jsx(B,{onClick:b.onCancel,color:"inherit",children:b.cancel}),t.jsxs(B,{onClick:b.onConfirm,color:"primary",disabled:a.loading||!a.role,variant:"contained",autoFocus:!0,children:[a.loading&&t.jsx(re,{size:16}),b.confirm]})]}),children:[t.jsx(Be,{component:"div",children:typeof b.body=="function"?b.body():b.body}),!!a.error&&t.jsx(te,{severity:"error",variant:"icon",children:a.error})]})}qe.propTypes={teamDid:x.string.isRequired,onCancel:x.func.isRequired,onSuccess:x.func.isRequired,onError:x.func,roles:x.array,apps:x.array,endpoint:x.string};qe.defaultProps={onError:()=>{},roles:[],apps:[],endpoint:""};function Me({teamDid:e,onCancel:n,onSuccess:s,onError:i,endpoint:v}){const{api:P,info:C}=W(),{api:R}=w.useContext(or),[p,y]=w.useState(!1),{t:a,locale:I}=K(),[u,b]=w.useState(""),[f,D]=w.useState(!1),[j,r]=w.useState(0),[o,c]=w.useState(""),[l,m]=w.useState(""),S=!!Te(C,"ownerNft.did"),g=Rr(async()=>{if(S){const{state:E}=await P.getDelegationState();return E}return{delegated:!0}});if(g.loading)return t.jsx(X,{title:a("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:n,children:t.jsx("div",{style:{display:"flex",justifyContent:"center"},children:t.jsx(re,{})})});if(g.error)return t.jsx(X,{title:a("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:n,children:t.jsx(te,{severity:"error",variant:"icon",children:Z(g.error)})});const O=async()=>{b(null),y(!0);try{const{inviteInfo:E}=await P.createTransferInvitation({input:{teamDid:e,role:"owner",remark:l.trim()}});c(E),r(H.length-1)}catch(E){const J=Z(E);b(J),i(E)}finally{y(!1)}},U=()=>{D(!0),r(1)},M=()=>{D(!1),r(0)},H=[{body:t.jsxs(ae,{component:"div",children:[t.jsxs(te,{severity:"warning",children:[t.jsx(ae,{children:a("team.transferNode.inviteDialog.tips.progress")}),t.jsx(ae,{children:a("team.transferNode.inviteDialog.tips.newOwnerPermissions")})]}),t.jsx(te,{severity:"warning",children:t.jsx(ae,{children:a("team.transferNode.inviteDialog.tips.revoke")})}),t.jsx("div",{style:{marginTop:20,marginBottom:10}}),t.jsx(Ut,{label:a("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:l,onChange:E=>{b(null),m(E.target.value)},disabled:p,"data-cy":"transfer-node-input-remark"}),t.jsx("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:a("common.cancel"),confirm:a("team.transferNode.inviteDialog.createInviteLink"),onCancel:n,onConfirm:S&&!Te(g,"value.delegated")?U:O},{body:()=>t.jsx(ir,{action:"delegate-transfer-nft",open:f,locale:I,checkFn:R.get,onClose:M,onSuccess:O,checkTimeout:5*60*1e3,webWalletUrl:ar(C),extraParams:{targetDID:C.did},messages:{title:a("team.transferNode.delegateDialog.title"),scan:a("team.transferNode.delegateDialog.scan"),confirm:a("team.transferNode.delegateDialog.confirm"),success:a("team.transferNode.delegateDialog.success")},popup:!0})},{body:()=>{const E=Ue({inviteId:o.inviteId,endpoint:v});return t.jsxs("div",{children:[t.jsx(Gr,{children:a("team.transferNode.inviteDialog.createSuccessTip",{expireDate:le(o.expireDate,I)})}),t.jsx("div",{style:{marginTop:"40px"}}),t.jsx(ye,{children:E})]})},confirm:a("common.confirm"),onConfirm:s}],_=H[j];return t.jsxs(X,{title:a("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,showCloseButton:!1,actions:t.jsxs(t.Fragment,{children:[_.cancel&&t.jsx(B,{onClick:_.onCancel,color:"inherit",children:_.cancel}),t.jsxs(B,{onClick:_.onConfirm,color:"primary",disabled:p,variant:"contained",autoFocus:!0,children:[p&&t.jsx(re,{size:16}),_.confirm]})]}),children:[t.jsx(Be,{component:"div",children:typeof _.body=="function"?_.body():_.body}),!!u&&t.jsx(te,{severity:"error",variant:"icon",children:u})]})}Me.propTypes={teamDid:x.string.isRequired,onCancel:x.func.isRequired,onSuccess:x.func.isRequired,onError:x.func,endpoint:x.string};Me.defaultProps={onError:()=>{},endpoint:""};const Gr=q.div`
2
2
  font-size: 16px;
3
3
  font-weight: bold;
4
4
  `;var He={};Object.defineProperty(He,"__esModule",{value:!0});var Ve=He.default=void 0;Yr(w);var Oe=t;function Yr(e){return e&&e.__esModule?e:{default:e}}function jt(e,n){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(v){return Object.getOwnPropertyDescriptor(e,v).enumerable})),s.push.apply(s,i)}return s}function St(e){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?jt(Object(s),!0).forEach(function(i){Zr(e,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):jt(Object(s)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(s,i))})}return e}function Zr(e,n,s){return n=Jr(n),n in e?Object.defineProperty(e,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[n]=s,e}function Jr(e){var n=en(e,"string");return typeof n=="symbol"?n:String(n)}function en(e,n){if(typeof e!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var i=s.call(e,n||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var Ke=function(n){return(0,Oe.jsxs)("svg",St(St({},n),{},{children:[(0,Oe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.886 1.875a4.207 4.207 0 1 0 0 8.414 4.207 4.207 0 0 0 0-8.414zM4.112 4.308A2.51 2.51 0 1 1 7.66 7.857a2.51 2.51 0 0 1-3.55-3.55zm.095 6.522A4.207 4.207 0 0 0 0 15.037v2.799c0 .16.13.289.29.289h1.119c.16 0 .289-.13.289-.29v-2.798a2.51 2.51 0 0 1 2.51-2.509h3.357a2.51 2.51 0 0 1 2.51 2.51v2.798c0 .16.13.289.289.289h1.12c.159 0 .288-.13.288-.29v-2.798a4.208 4.208 0 0 0-4.207-4.207H4.207z"}),(0,Oe.jsx)("rect",{x:"12.5",y:"9.375",width:"7.5",height:"1.875",rx:".938"})]}))};Ke.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};Ke.displayName="forbid-login";Ve=He.default=Ke;var Qe={};Object.defineProperty(Qe,"__esModule",{value:!0});var Xe=Qe.default=void 0;tn(w);var pe=t;function tn(e){return e&&e.__esModule?e:{default:e}}function Pt(e,n){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(v){return Object.getOwnPropertyDescriptor(e,v).enumerable})),s.push.apply(s,i)}return s}function wt(e){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?Pt(Object(s),!0).forEach(function(i){rn(e,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Pt(Object(s)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(s,i))})}return e}function rn(e,n,s){return n=nn(n),n in e?Object.defineProperty(e,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[n]=s,e}function nn(e){var n=sn(e,"string");return typeof n=="symbol"?n:String(n)}function sn(e,n){if(typeof e!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var i=s.call(e,n||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var Ge=function(n){return(0,pe.jsxs)("svg",wt(wt({},n),{},{children:[(0,pe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.886 1.875a4.207 4.207 0 1 0 0 8.414 4.207 4.207 0 0 0 0-8.414zM4.112 4.308A2.51 2.51 0 1 1 7.66 7.857a2.51 2.51 0 0 1-3.55-3.55zm.095 6.522A4.207 4.207 0 0 0 0 15.037v2.799c0 .16.13.289.29.289h1.119c.16 0 .289-.13.289-.29v-2.798a2.51 2.51 0 0 1 2.51-2.509h3.357a2.51 2.51 0 0 1 2.51 2.51v2.798c0 .16.13.289.289.289h1.12c.159 0 .288-.13.288-.29v-2.798a4.208 4.208 0 0 0-4.207-4.207H4.207z"}),(0,pe.jsx)("rect",{x:"12.5",y:"9.375",width:"7.5",height:"1.875",rx:".938"}),(0,pe.jsx)("rect",{x:"15.313",y:"14.063",width:"7.5",height:"1.875",rx:".938",transform:"rotate(-90 15.313 14.063)"})]}))};Ge.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};Ge.displayName="allow-login";Xe=Qe.default=Ge;function ve(e){const{passport:n,onDelete:s,...i}=e;return t.jsxs(on,{...i,children:[n.title||n.name," ",!!s&&t.jsx(cr,{"data-cy":"delete-issuance",className:"delete",onClick:s})]})}ve.propTypes={passport:x.object.isRequired,onDelete:x.func};ve.defaultProps={onDelete:null};const on=q.span`
@@ -1,4 +1,4 @@
1
- import{aB as _e,aC as Ae,r as b,aD as Oe,cE as rt,aE as ie,aG as M,cD as oe,aF as xe,fI as ot,aK as Me,j as e,aI as We,aJ as Ee,b4 as Ge,aM as L,u as q,T as K,ap as H,a1 as k,l as W,P as S,Z as U,bl as Y,b$ as Z,fQ as qe,az as O,q as z,aV as nt,bH as at,B as T,f4 as it,a7 as lt,a9 as ct,X as dt,Y as ut,E as He,aQ as Ue,aS as se,fR as pt,fS as ft,a as he,a0 as mt,$ as ht}from"./index-CHSnAsQ1.js";import{d as ve}from"./Add-CG-F3Tpq.js";import{S as ne}from"./index-BWJ8VQ8o.js";import{d as le}from"./EditIcon-jpbTcPi9.js";import{d as gt}from"./LockIcon-C20NfK7J.js";import{L as je,S as Ce,d as xt}from"./list-header-CVFTxg9p.js";import{u as ee}from"./dashboard-DJj7YdCJ.js";import{w as E,P as Re}from"./permission-DPowxK7C.js";import{C as be}from"./confirm-DcZkK6Pc.js";import{T as _,F as yt}from"./TextField-DVioGsc-.js";import{D as vt,f as te}from"./format-error-DSoyPyVx.js";import{A as jt}from"./Alert-cwZghN5o.js";import{F as Ct,C as bt}from"./FormControlLabel-BDYHQJ8F.js";import{C as Tt}from"./Google-CPv9gImr.js";import{E as Te}from"./index-DJWtIeK5.js";import{W as Ve}from"./did-address-1pTl5ZJp.js";import{T as Bt}from"./index-0Kwb6jmK.js";import{_ as St}from"./useSetState-Bw-0RwWQ.js";import{M as Pt}from"./InputAdornment-C-wpGP7M.js";import{I as wt}from"./InputLabel-4YX1ylv6.js";import{g as Ft}from"./ButtonGroup-Cf877fOo.js";import{O as It}from"./Select-D6CeNImJ.js";import"./ExpandMore-Vsh2QVwZ.js";import"./Search-CxTEsXhT.js";import"./index-B8_eoYBV.js";import"./useLocalStorage-BnVJN1iM.js";import"./MoreVert-Dd_rZHl1.js";import"./Delete-DJZzf2v3.js";import"./PlayArrow-s9OSCCm9.js";import"./ListItemText-CbVOTWQ3.js";import"./RadioGroup-DImJzaoP.js";import"./FormGroup-Bk12j31H.js";import"./useFormControl-oAKl9UVb.js";import"./Avatar-BVTgZMZu.js";import"./useSlot-Cwz6OM5B.js";import"./session-DFjt4_rn.js";import"./spaces-BGhjBX1b.js";import"./index-vwRhQ5RS.js";import"./api-CK31hCQN.js";import"./Link-D9C6v4KL.js";import"./fallback-Co8Kc2kj.js";import"./index-B36YvF84.js";import"./Toolbar-CRxjvb2_.js";import"./Hidden-kVeQMxEt.js";import"./MoreHoriz-kAuD1nY3.js";import"./index-DViM25Vy.js";import"./selector-C4Gh2j9t.js";import"./useAsync-B3RNaSvA.js";import"./FormControl-B_Do5Nt6.js";function $t(t){return Ae("MuiToggleButton",t)}const Rt=_e("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),V=Rt,Dt=b.createContext({}),Ke=Dt,kt=b.createContext(void 0),Ye=kt;function zt(t,r){return r===void 0||t===void 0?!1:Array.isArray(r)?r.indexOf(t)>=0:t===r}const Nt=["value"],Lt=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],_t=t=>{const{classes:r,fullWidth:l,selected:d,disabled:f,size:u,color:h}=t,s={root:["root",d&&"selected",f&&"disabled",l&&"fullWidth",`size${ie(u)}`,h]};return Ee(s,$t,r)},At=Oe(rt,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[r.root,r[`size${ie(l.size)}`]]}})(({theme:t,ownerState:r})=>{let l=r.color==="standard"?t.palette.text.primary:t.palette[r.color].main,d;return t.vars&&(l=r.color==="standard"?t.vars.palette.text.primary:t.vars.palette[r.color].main,d=r.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[r.color].mainChannel),M({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},r.fullWidth&&{width:"100%"},{[`&.${V.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:oe(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${V.selected}`]:{color:l,backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${d} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:oe(l,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity)}}}},r.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},r.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),Ot=b.forwardRef(function(r,l){const d=b.useContext(Ke),{value:f}=d,u=xe(d,Nt),h=b.useContext(Ye),s=ot(M({},u,{selected:zt(r.value,f)}),r),p=Me({props:s,name:"MuiToggleButton"}),{children:o,className:a,color:i="standard",disabled:n=!1,disableFocusRipple:c=!1,fullWidth:v=!1,onChange:x,onClick:m,selected:j,size:g="medium",value:C}=p,y=xe(p,Lt),B=M({},p,{color:i,disabled:n,disableFocusRipple:c,fullWidth:v,size:g}),w=_t(B),$=R=>{m&&(m(R,C),R.defaultPrevented)||x&&x(R,C)},F=h||"";return e.jsx(At,M({className:We(u.className,w.root,a,F),disabled:n,focusRipple:!c,ref:l,onClick:$,onChange:x,value:C,ownerState:B,"aria-pressed":j},y,{children:o}))}),ge=Ot;function Mt(t){return Ae("MuiToggleButtonGroup",t)}const Wt=_e("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),P=Wt,Et=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],Gt=t=>{const{classes:r,orientation:l,fullWidth:d,disabled:f}=t,u={root:["root",l==="vertical"&&"vertical",d&&"fullWidth"],grouped:["grouped",`grouped${ie(l)}`,f&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Ee(u,Mt,r)},qt=Oe("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[{[`& .${P.grouped}`]:r.grouped},{[`& .${P.grouped}`]:r[`grouped${ie(l.orientation)}`]},{[`& .${P.firstButton}`]:r.firstButton},{[`& .${P.lastButton}`]:r.lastButton},{[`& .${P.middleButton}`]:r.middleButton},r.root,l.orientation==="vertical"&&r.vertical,l.fullWidth&&r.fullWidth]}})(({ownerState:t,theme:r})=>M({display:"inline-flex",borderRadius:(r.vars||r).shape.borderRadius},t.orientation==="vertical"&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${P.grouped}`]:M({},t.orientation==="horizontal"?{[`&.${P.selected} + .${P.grouped}.${P.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${P.selected} + .${P.grouped}.${P.selected}`]:{borderTop:0,marginTop:0}})},t.orientation==="horizontal"?{[`& .${P.firstButton},& .${P.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${P.lastButton},& .${P.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${P.firstButton},& .${P.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${P.lastButton},& .${P.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},t.orientation==="horizontal"?{[`& .${P.lastButton}.${V.disabled},& .${P.middleButton}.${V.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${P.lastButton}.${V.disabled},& .${P.middleButton}.${V.disabled}`]:{borderTop:"1px solid transparent"}})),Ht=b.forwardRef(function(r,l){const d=Me({props:r,name:"MuiToggleButtonGroup"}),{children:f,className:u,color:h="standard",disabled:s=!1,exclusive:p=!1,fullWidth:o=!1,onChange:a,orientation:i="horizontal",size:n="medium",value:c}=d,v=xe(d,Et),x=M({},d,{disabled:s,fullWidth:o,orientation:i,size:n}),m=Gt(x),j=b.useCallback(($,F)=>{if(!a)return;const R=c&&c.indexOf(F);let A;c&&R>=0?(A=c.slice(),A.splice(R,1)):A=c?c.concat(F):[F],a($,A)},[a,c]),g=b.useCallback(($,F)=>{a&&a($,c===F?null:F)},[a,c]),C=b.useMemo(()=>({className:m.grouped,onChange:p?g:j,value:c,size:n,fullWidth:o,color:h,disabled:s}),[m.grouped,p,g,j,c,n,o,h,s]),y=Ft(f),B=y.length,w=$=>{const F=$===0,R=$===B-1;return F&&R?"":F?m.firstButton:R?m.lastButton:m.middleButton};return e.jsx(qt,M({role:"group",className:We(m.root,u),ref:l,ownerState:x},v,{children:e.jsx(Ke.Provider,{value:C,children:y.map(($,F)=>e.jsx(Ye.Provider,{value:w(F),children:$},F))})}))}),Ut=Ht;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});var re=Be.default=void 0;Vt(b);var De=e;function Vt(t){return t&&t.__esModule?t:{default:t}}function ke(t,r){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);r&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),l.push.apply(l,d)}return l}function ze(t){for(var r=1;r<arguments.length;r++){var l=arguments[r]!=null?arguments[r]:{};r%2?ke(Object(l),!0).forEach(function(d){Kt(t,d,l[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):ke(Object(l)).forEach(function(d){Object.defineProperty(t,d,Object.getOwnPropertyDescriptor(l,d))})}return t}function Kt(t,r,l){return r=Yt(r),r in t?Object.defineProperty(t,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[r]=l,t}function Yt(t){var r=Zt(t,"string");return typeof r=="symbol"?r:String(r)}function Zt(t,r){if(typeof t!="object"||!t)return t;var l=t[Symbol.toPrimitive];if(l!==void 0){var d=l.call(t,r||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var Se=function(r){return(0,De.jsx)("svg",ze(ze({},r),{},{children:(0,De.jsx)("path",{d:"M8.438 4.313H8.25a.188.188 0 0 0 .188-.188v.188h7.124v-.188c0 .103.085.188.188.188h-.188V6h1.688V4.125c0-.827-.673-1.5-1.5-1.5h-7.5c-.827 0-1.5.673-1.5 1.5V6h1.688V4.312zM20.25 6H3.75a.75.75 0 0 0-.75.75v.75c0 .103.084.188.188.188h1.415l.579 12.257c.038.8.698 1.43 1.498 1.43h10.64c.802 0 1.46-.628 1.498-1.43l.579-12.258h1.416A.188.188 0 0 0 21 7.5v-.75a.75.75 0 0 0-.75-.75zm-3.11 13.688H6.86l-.567-12h11.414l-.567 12z"})}))};Se.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};Se.displayName="delete";re=Be.default=Se;var Ze={exports:{}},Qe={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(l,d){return l<<d|l>>>32-d},rotr:function(l,d){return l<<32-d|l>>>d},endian:function(l){if(l.constructor==Number)return r.rotl(l,8)&16711935|r.rotl(l,24)&4278255360;for(var d=0;d<l.length;d++)l[d]=r.endian(l[d]);return l},randomBytes:function(l){for(var d=[];l>0;l--)d.push(Math.floor(Math.random()*256));return d},bytesToWords:function(l){for(var d=[],f=0,u=0;f<l.length;f++,u+=8)d[u>>>5]|=l[f]<<24-u%32;return d},wordsToBytes:function(l){for(var d=[],f=0;f<l.length*32;f+=8)d.push(l[f>>>5]>>>24-f%32&255);return d},bytesToHex:function(l){for(var d=[],f=0;f<l.length;f++)d.push((l[f]>>>4).toString(16)),d.push((l[f]&15).toString(16));return d.join("")},hexToBytes:function(l){for(var d=[],f=0;f<l.length;f+=2)d.push(parseInt(l.substr(f,2),16));return d},bytesToBase64:function(l){for(var d=[],f=0;f<l.length;f+=3)for(var u=l[f]<<16|l[f+1]<<8|l[f+2],h=0;h<4;h++)f*8+h*6<=l.length*8?d.push(t.charAt(u>>>6*(3-h)&63)):d.push("=");return d.join("")},base64ToBytes:function(l){l=l.replace(/[^A-Z0-9+\/]/ig,"");for(var d=[],f=0,u=0;f<l.length;u=++f%4)u!=0&&d.push((t.indexOf(l.charAt(f-1))&Math.pow(2,-2*u+8)-1)<<u*2|t.indexOf(l.charAt(f))>>>6-u*2);return d}};Qe.exports=r})();var Qt=Qe.exports,ye={utf8:{stringToBytes:function(t){return ye.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(ye.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var r=[],l=0;l<t.length;l++)r.push(t.charCodeAt(l)&255);return r},bytesToString:function(t){for(var r=[],l=0;l<t.length;l++)r.push(String.fromCharCode(t[l]));return r.join("")}}},Ne=ye;/*!
1
+ import{aB as _e,aC as Ae,r as b,aD as Oe,cE as rt,aE as ie,aG as M,cD as oe,aF as xe,fI as ot,aK as Me,j as e,aI as We,aJ as Ee,b4 as Ge,aM as L,u as q,T as K,ap as H,a1 as k,l as W,P as S,Z as U,bl as Y,b$ as Z,fQ as qe,az as O,q as z,aV as nt,bH as at,B as T,f4 as it,a7 as lt,a9 as ct,X as dt,Y as ut,E as He,aQ as Ue,aS as se,fR as pt,fS as ft,a as he,a0 as mt,$ as ht}from"./index-BHVmBQ8E.js";import{d as ve}from"./Add-DYUoCOSD.js";import{S as ne}from"./index-BuvljqqC.js";import{d as le}from"./EditIcon-CjrPa4hu.js";import{d as gt}from"./LockIcon-BOciunxD.js";import{L as je,S as Ce,d as xt}from"./list-header-ek3KY30P.js";import{u as ee}from"./dashboard-B4ToB_WX.js";import{w as E,P as Re}from"./permission-D5QEfwx7.js";import{C as be}from"./confirm-WbbThheQ.js";import{T as _,F as yt}from"./TextField-B0tdvs5D.js";import{D as vt,f as te}from"./format-error-DZ98jGc_.js";import{A as jt}from"./Alert-DjdB6kJi.js";import{F as Ct,C as bt}from"./FormControlLabel-CSgQzD8H.js";import{C as Tt}from"./Google-CFVK7w2J.js";import{E as Te}from"./index-ev1wxRtJ.js";import{W as Ve}from"./did-address-Dm6G9Pz0.js";import{T as Bt}from"./index-txKLyozl.js";import{_ as St}from"./useSetState-BTrtc5bD.js";import{M as Pt}from"./InputAdornment-DOCN0hKn.js";import{I as wt}from"./InputLabel-B3K-wjtt.js";import{g as Ft}from"./ButtonGroup-B2OCm4w2.js";import{O as It}from"./Select-Cgn_SK4j.js";import"./ExpandMore-MF6JMWUJ.js";import"./Search-cf0osNnP.js";import"./index-BTHSgca3.js";import"./useLocalStorage-CyHzuw0V.js";import"./MoreVert-Yxhg1I2d.js";import"./Delete-BJX_VOZK.js";import"./PlayArrow-BnDxNqxv.js";import"./ListItemText-DzuIoJgM.js";import"./RadioGroup-CKSypMzt.js";import"./FormGroup-Dg7paSKn.js";import"./useFormControl-CIM987QD.js";import"./Avatar-B2aqlUr4.js";import"./useSlot-BXs-_Etv.js";import"./session-C_q17DqM.js";import"./spaces-Cp3qdjuQ.js";import"./index-Dbd8X1MQ.js";import"./api-BP-akdsb.js";import"./Link-29c93vgL.js";import"./fallback-DV2p3NP7.js";import"./index-CU9bXzIx.js";import"./Toolbar-DDP1Q2zI.js";import"./Hidden-DwnJ4iUH.js";import"./MoreHoriz-DpzaIBa1.js";import"./index-B-KhRlcq.js";import"./selector-C_Cr9H0Y.js";import"./useAsync-SsrsgChA.js";import"./FormControl-C7YkaJ_C.js";function $t(t){return Ae("MuiToggleButton",t)}const Rt=_e("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),V=Rt,Dt=b.createContext({}),Ke=Dt,kt=b.createContext(void 0),Ye=kt;function zt(t,r){return r===void 0||t===void 0?!1:Array.isArray(r)?r.indexOf(t)>=0:t===r}const Nt=["value"],Lt=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],_t=t=>{const{classes:r,fullWidth:l,selected:d,disabled:f,size:u,color:h}=t,s={root:["root",d&&"selected",f&&"disabled",l&&"fullWidth",`size${ie(u)}`,h]};return Ee(s,$t,r)},At=Oe(rt,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[r.root,r[`size${ie(l.size)}`]]}})(({theme:t,ownerState:r})=>{let l=r.color==="standard"?t.palette.text.primary:t.palette[r.color].main,d;return t.vars&&(l=r.color==="standard"?t.vars.palette.text.primary:t.vars.palette[r.color].main,d=r.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[r.color].mainChannel),M({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},r.fullWidth&&{width:"100%"},{[`&.${V.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:oe(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${V.selected}`]:{color:l,backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${d} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:oe(l,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity)}}}},r.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},r.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),Ot=b.forwardRef(function(r,l){const d=b.useContext(Ke),{value:f}=d,u=xe(d,Nt),h=b.useContext(Ye),s=ot(M({},u,{selected:zt(r.value,f)}),r),p=Me({props:s,name:"MuiToggleButton"}),{children:o,className:a,color:i="standard",disabled:n=!1,disableFocusRipple:c=!1,fullWidth:v=!1,onChange:x,onClick:m,selected:j,size:g="medium",value:C}=p,y=xe(p,Lt),B=M({},p,{color:i,disabled:n,disableFocusRipple:c,fullWidth:v,size:g}),w=_t(B),$=R=>{m&&(m(R,C),R.defaultPrevented)||x&&x(R,C)},F=h||"";return e.jsx(At,M({className:We(u.className,w.root,a,F),disabled:n,focusRipple:!c,ref:l,onClick:$,onChange:x,value:C,ownerState:B,"aria-pressed":j},y,{children:o}))}),ge=Ot;function Mt(t){return Ae("MuiToggleButtonGroup",t)}const Wt=_e("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),P=Wt,Et=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],Gt=t=>{const{classes:r,orientation:l,fullWidth:d,disabled:f}=t,u={root:["root",l==="vertical"&&"vertical",d&&"fullWidth"],grouped:["grouped",`grouped${ie(l)}`,f&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Ee(u,Mt,r)},qt=Oe("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[{[`& .${P.grouped}`]:r.grouped},{[`& .${P.grouped}`]:r[`grouped${ie(l.orientation)}`]},{[`& .${P.firstButton}`]:r.firstButton},{[`& .${P.lastButton}`]:r.lastButton},{[`& .${P.middleButton}`]:r.middleButton},r.root,l.orientation==="vertical"&&r.vertical,l.fullWidth&&r.fullWidth]}})(({ownerState:t,theme:r})=>M({display:"inline-flex",borderRadius:(r.vars||r).shape.borderRadius},t.orientation==="vertical"&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${P.grouped}`]:M({},t.orientation==="horizontal"?{[`&.${P.selected} + .${P.grouped}.${P.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${P.selected} + .${P.grouped}.${P.selected}`]:{borderTop:0,marginTop:0}})},t.orientation==="horizontal"?{[`& .${P.firstButton},& .${P.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${P.lastButton},& .${P.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${P.firstButton},& .${P.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${P.lastButton},& .${P.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},t.orientation==="horizontal"?{[`& .${P.lastButton}.${V.disabled},& .${P.middleButton}.${V.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${P.lastButton}.${V.disabled},& .${P.middleButton}.${V.disabled}`]:{borderTop:"1px solid transparent"}})),Ht=b.forwardRef(function(r,l){const d=Me({props:r,name:"MuiToggleButtonGroup"}),{children:f,className:u,color:h="standard",disabled:s=!1,exclusive:p=!1,fullWidth:o=!1,onChange:a,orientation:i="horizontal",size:n="medium",value:c}=d,v=xe(d,Et),x=M({},d,{disabled:s,fullWidth:o,orientation:i,size:n}),m=Gt(x),j=b.useCallback(($,F)=>{if(!a)return;const R=c&&c.indexOf(F);let A;c&&R>=0?(A=c.slice(),A.splice(R,1)):A=c?c.concat(F):[F],a($,A)},[a,c]),g=b.useCallback(($,F)=>{a&&a($,c===F?null:F)},[a,c]),C=b.useMemo(()=>({className:m.grouped,onChange:p?g:j,value:c,size:n,fullWidth:o,color:h,disabled:s}),[m.grouped,p,g,j,c,n,o,h,s]),y=Ft(f),B=y.length,w=$=>{const F=$===0,R=$===B-1;return F&&R?"":F?m.firstButton:R?m.lastButton:m.middleButton};return e.jsx(qt,M({role:"group",className:We(m.root,u),ref:l,ownerState:x},v,{children:e.jsx(Ke.Provider,{value:C,children:y.map(($,F)=>e.jsx(Ye.Provider,{value:w(F),children:$},F))})}))}),Ut=Ht;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});var re=Be.default=void 0;Vt(b);var De=e;function Vt(t){return t&&t.__esModule?t:{default:t}}function ke(t,r){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);r&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),l.push.apply(l,d)}return l}function ze(t){for(var r=1;r<arguments.length;r++){var l=arguments[r]!=null?arguments[r]:{};r%2?ke(Object(l),!0).forEach(function(d){Kt(t,d,l[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):ke(Object(l)).forEach(function(d){Object.defineProperty(t,d,Object.getOwnPropertyDescriptor(l,d))})}return t}function Kt(t,r,l){return r=Yt(r),r in t?Object.defineProperty(t,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[r]=l,t}function Yt(t){var r=Zt(t,"string");return typeof r=="symbol"?r:String(r)}function Zt(t,r){if(typeof t!="object"||!t)return t;var l=t[Symbol.toPrimitive];if(l!==void 0){var d=l.call(t,r||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var Se=function(r){return(0,De.jsx)("svg",ze(ze({},r),{},{children:(0,De.jsx)("path",{d:"M8.438 4.313H8.25a.188.188 0 0 0 .188-.188v.188h7.124v-.188c0 .103.085.188.188.188h-.188V6h1.688V4.125c0-.827-.673-1.5-1.5-1.5h-7.5c-.827 0-1.5.673-1.5 1.5V6h1.688V4.312zM20.25 6H3.75a.75.75 0 0 0-.75.75v.75c0 .103.084.188.188.188h1.415l.579 12.257c.038.8.698 1.43 1.498 1.43h10.64c.802 0 1.46-.628 1.498-1.43l.579-12.258h1.416A.188.188 0 0 0 21 7.5v-.75a.75.75 0 0 0-.75-.75zm-3.11 13.688H6.86l-.567-12h11.414l-.567 12z"})}))};Se.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};Se.displayName="delete";re=Be.default=Se;var Ze={exports:{}},Qe={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(l,d){return l<<d|l>>>32-d},rotr:function(l,d){return l<<32-d|l>>>d},endian:function(l){if(l.constructor==Number)return r.rotl(l,8)&16711935|r.rotl(l,24)&4278255360;for(var d=0;d<l.length;d++)l[d]=r.endian(l[d]);return l},randomBytes:function(l){for(var d=[];l>0;l--)d.push(Math.floor(Math.random()*256));return d},bytesToWords:function(l){for(var d=[],f=0,u=0;f<l.length;f++,u+=8)d[u>>>5]|=l[f]<<24-u%32;return d},wordsToBytes:function(l){for(var d=[],f=0;f<l.length*32;f+=8)d.push(l[f>>>5]>>>24-f%32&255);return d},bytesToHex:function(l){for(var d=[],f=0;f<l.length;f++)d.push((l[f]>>>4).toString(16)),d.push((l[f]&15).toString(16));return d.join("")},hexToBytes:function(l){for(var d=[],f=0;f<l.length;f+=2)d.push(parseInt(l.substr(f,2),16));return d},bytesToBase64:function(l){for(var d=[],f=0;f<l.length;f+=3)for(var u=l[f]<<16|l[f+1]<<8|l[f+2],h=0;h<4;h++)f*8+h*6<=l.length*8?d.push(t.charAt(u>>>6*(3-h)&63)):d.push("=");return d.join("")},base64ToBytes:function(l){l=l.replace(/[^A-Z0-9+\/]/ig,"");for(var d=[],f=0,u=0;f<l.length;u=++f%4)u!=0&&d.push((t.indexOf(l.charAt(f-1))&Math.pow(2,-2*u+8)-1)<<u*2|t.indexOf(l.charAt(f))>>>6-u*2);return d}};Qe.exports=r})();var Qt=Qe.exports,ye={utf8:{stringToBytes:function(t){return ye.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(ye.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var r=[],l=0;l<t.length;l++)r.push(t.charCodeAt(l)&255);return r},bytesToString:function(t){for(var r=[],l=0;l<t.length;l++)r.push(String.fromCharCode(t[l]));return r.join("")}}},Ne=ye;/*!
2
2
  * Determine if an object is a Buffer
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
@@ -1,4 +1,4 @@
1
- import{r,aQ as d,j as e,b as p,ae as M,bn as I,ck as z,P as o,bA as A,bt as m,bm as E}from"./index-CHSnAsQ1.js";import{d as O}from"./ExpandMore-Vsh2QVwZ.js";import{B as S}from"./ButtonGroup-Cf877fOo.js";function u(s){const{size:f,color:i,menu:a,children:l,variant:h,onClick:x,menuButtonProps:y,...g}=s,[j,c]=r.useState(!1),t=r.useRef(null),k=Array.isArray(a)?a.map((n,P)=>r.isValidElement(n)?n:r.createElement(d,{...n,key:P})):a,b=()=>{c(n=>!n)},B=n=>{t.current&&t.current.contains(n.target)||c(!1)},C=n=>{n.target.closest(".MuiMenuItem-root")&&c(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs(v,{variant:h,size:f,color:i,ref:t,...g,children:[typeof l=="function"?l():e.jsx(p,{onClick:x,color:i,children:l}),e.jsx(p,{onClick:b,color:i,...y,"aria-label":"more functions",children:e.jsx(O,{})})]}),e.jsx(L,{open:j,anchorEl:t.current,placement:"bottom-end",disablePortal:!1,children:e.jsx(M,{children:e.jsx(I,{onClickAway:B,children:e.jsx(z,{onClick:C,children:k})})})})]})}u.propTypes={size:o.oneOf(["small","medium","large"]),color:o.oneOf(["primary","secondary","inherit"]),menu:o.oneOfType([o.node,o.array]),children:o.node,variant:o.oneOf(["outlined","contained"]),onClick:o.func,menuButtonProps:o.object};u.defaultProps={size:"medium",color:"primary",menu:[],children:null,variant:"contained",onClick:A,menuButtonProps:{}};u.Item=d;const v=m(S)`
1
+ import{r,aQ as d,j as e,b as p,ae as M,bn as I,ck as z,P as o,bA as A,bt as m,bm as E}from"./index-BHVmBQ8E.js";import{d as O}from"./ExpandMore-MF6JMWUJ.js";import{B as S}from"./ButtonGroup-B2OCm4w2.js";function u(s){const{size:f,color:i,menu:a,children:l,variant:h,onClick:x,menuButtonProps:y,...g}=s,[j,c]=r.useState(!1),t=r.useRef(null),k=Array.isArray(a)?a.map((n,P)=>r.isValidElement(n)?n:r.createElement(d,{...n,key:P})):a,b=()=>{c(n=>!n)},B=n=>{t.current&&t.current.contains(n.target)||c(!1)},C=n=>{n.target.closest(".MuiMenuItem-root")&&c(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs(v,{variant:h,size:f,color:i,ref:t,...g,children:[typeof l=="function"?l():e.jsx(p,{onClick:x,color:i,children:l}),e.jsx(p,{onClick:b,color:i,...y,"aria-label":"more functions",children:e.jsx(O,{})})]}),e.jsx(L,{open:j,anchorEl:t.current,placement:"bottom-end",disablePortal:!1,children:e.jsx(M,{children:e.jsx(I,{onClickAway:B,children:e.jsx(z,{onClick:C,children:k})})})})]})}u.propTypes={size:o.oneOf(["small","medium","large"]),color:o.oneOf(["primary","secondary","inherit"]),menu:o.oneOfType([o.node,o.array]),children:o.node,variant:o.oneOf(["outlined","contained"]),onClick:o.func,menuButtonProps:o.object};u.defaultProps={size:"medium",color:"primary",menu:[],children:null,variant:"contained",onClick:A,menuButtonProps:{}};u.Item=d;const v=m(S)`
2
2
  > .MuiButtonBase-root:last-of-type {
3
3
  min-width: 2em;
4
4
  padding-left: 0;
@@ -1 +1 @@
1
- import{r as v,j as c,P as f,a1 as d}from"./index-CHSnAsQ1.js";var o={};Object.defineProperty(o,"__esModule",{value:!0});var s=o.default=void 0;m(v);var n=c;function m(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(h){return Object.getOwnPropertyDescriptor(e,h).enumerable})),r.push.apply(r,a)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(a){y(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function y(e,t,r){return t=g(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=j(e,"string");return typeof t=="symbol"?t:String(t)}function j(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i=function(t){return(0,n.jsxs)("svg",u(u({},t),{},{children:[(0,n.jsx)("path",{d:"M24.604 2.263L28.524 0H42.79v41.862H28.79a1 1 0 0 1-.5-.134l-15.103-8.72V8.854l1.817-1.05 3.2 1.848-1.817 1.05V31.16l12.993 7.502H39.59V3.2H29.38l-1.576.91-3.2-1.847z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.402 31.16V10.701L13.409 3.2H3.2v35.462h10.21l1.58-.913 3.2 1.847-3.923 2.266H0V0h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z"}),(0,n.jsx)("path",{d:"M138.44 27.684c.192 0 .357.075.496.224l1.344 1.472a9.584 9.584 0 0 1-3.44 2.576c-1.344.608-2.965.912-4.864.912-1.664 0-3.173-.288-4.528-.864a10.056 10.056 0 0 1-3.456-2.416c-.949-1.035-1.685-2.272-2.208-3.712-.523-1.44-.784-3.024-.784-4.752 0-1.728.272-3.312.816-4.752.555-1.44 1.328-2.677 2.32-3.712a10.444 10.444 0 0 1 3.552-2.416c1.387-.576 2.917-.864 4.592-.864 1.632 0 3.083.267 4.352.8a10.973 10.973 0 0 1 3.312 2.128l-1.12 1.584a.936.936 0 0 1-.288.288.742.742 0 0 1-.432.112c-.203 0-.443-.101-.72-.304a8.802 8.802 0 0 0-1.072-.672c-.437-.256-.981-.485-1.632-.688-.651-.203-1.461-.304-2.432-.304-1.141 0-2.187.203-3.136.608a6.885 6.885 0 0 0-2.464 1.728c-.683.747-1.216 1.67-1.6 2.768-.373 1.088-.56 2.32-.56 3.696 0 1.397.197 2.64.592 3.728.395 1.088.939 2.01 1.632 2.768a6.914 6.914 0 0 0 2.448 1.728 7.764 7.764 0 0 0 3.04.592c.661 0 1.253-.037 1.776-.112a7.843 7.843 0 0 0 1.456-.368c.448-.16.869-.363 1.264-.608a8.89 8.89 0 0 0 1.168-.912c.085-.075.176-.133.272-.176a.616.616 0 0 1 .304-.08zM149.68 16.1c1.195 0 2.272.197 3.232.592a6.54 6.54 0 0 1 2.464 1.68c.683.725 1.205 1.605 1.568 2.64.363 1.024.544 2.176.544 3.456 0 1.28-.181 2.437-.544 3.472-.363 1.035-.885 1.915-1.568 2.64a6.795 6.795 0 0 1-2.464 1.68c-.96.384-2.037.576-3.232.576-1.205 0-2.293-.192-3.264-.576a6.987 6.987 0 0 1-2.464-1.68c-.683-.725-1.211-1.605-1.584-2.64-.363-1.035-.544-2.192-.544-3.472 0-1.28.181-2.432.544-3.456.373-1.035.901-1.915 1.584-2.64a6.717 6.717 0 0 1 2.464-1.68c.971-.395 2.059-.592 3.264-.592zm0 14.304c1.536 0 2.683-.517 3.44-1.552.757-1.035 1.136-2.49 1.136-4.368 0-1.877-.379-3.333-1.136-4.368-.757-1.045-1.904-1.568-3.44-1.568-1.557 0-2.72.523-3.488 1.568-.757 1.035-1.136 2.49-1.136 4.368 0 1.877.379 3.333 1.136 4.368.768 1.035 1.931 1.552 3.488 1.552zM163.899 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.442 6.442 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448.682.299 1.253.72 1.712 1.264.458.533.805 1.179 1.04 1.936.234.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.534-.65-1.35-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.38 7.38 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM181.805 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.448 6.448 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448a4.63 4.63 0 0 1 1.712 1.264c.459.533.805 1.179 1.04 1.936.235.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.533-.65-1.349-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.396 7.396 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM207.551 22.676c0-.619-.09-1.19-.272-1.712a3.77 3.77 0 0 0-.768-1.36 3.521 3.521 0 0 0-1.248-.896c-.49-.213-1.056-.32-1.696-.32-1.312 0-2.346.379-3.104 1.136-.746.757-1.221 1.808-1.424 3.152h8.512zm2.576 7.616a6.311 6.311 0 0 1-1.328 1.168 7.926 7.926 0 0 1-1.6.784 9.664 9.664 0 0 1-1.76.448c-.597.096-1.189.144-1.776.144-1.12 0-2.16-.187-3.12-.56a7.159 7.159 0 0 1-2.48-1.664c-.693-.736-1.237-1.643-1.632-2.72-.384-1.088-.576-2.336-.576-3.744 0-1.13.176-2.181.528-3.152a7.67 7.67 0 0 1 1.504-2.56 7.064 7.064 0 0 1 2.416-1.712c.95-.416 2.016-.624 3.2-.624.992 0 1.904.165 2.736.496.843.32 1.568.79 2.176 1.408.608.619 1.083 1.381 1.424 2.288.352.907.528 1.941.528 3.104 0 .48-.053.805-.16.976-.106.16-.304.24-.592.24h-10.656c.032.97.171 1.819.416 2.544.246.715.582 1.312 1.008 1.792.438.48.955.837 1.552 1.072.598.235 1.264.352 2 .352.694 0 1.291-.08 1.792-.24.512-.16.95-.33 1.312-.512.374-.192.683-.368.928-.528.256-.16.48-.24.672-.24.256 0 .454.096.592.288l.896 1.152zM225.113 19.396a1.836 1.836 0 0 1-.288.288c-.086.064-.214.096-.384.096-.171 0-.352-.064-.544-.192a4.872 4.872 0 0 0-.704-.432 5.21 5.21 0 0 0-1.024-.432c-.395-.139-.886-.208-1.472-.208-.768 0-1.446.139-2.032.416a3.972 3.972 0 0 0-1.472 1.184c-.384.512-.678 1.136-.88 1.872-.203.736-.304 1.563-.304 2.48 0 .95.106 1.797.32 2.544.213.736.517 1.36.912 1.872.394.501.874.885 1.44 1.152a4.522 4.522 0 0 0 1.888.384c.672 0 1.226-.08 1.664-.24.437-.17.8-.352 1.088-.544.288-.192.528-.368.72-.528.192-.17.389-.256.592-.256.256 0 .453.096.592.288l.896 1.152a5.966 5.966 0 0 1-1.264 1.168c-.459.32-.95.581-1.472.784a8.34 8.34 0 0 1-1.648.448c-.566.096-1.142.144-1.728.144a7.25 7.25 0 0 1-2.848-.56 6.52 6.52 0 0 1-2.288-1.632c-.64-.715-1.147-1.59-1.52-2.624-.374-1.045-.56-2.23-.56-3.552 0-1.205.165-2.32.496-3.344.341-1.024.837-1.904 1.488-2.64a6.821 6.821 0 0 1 2.432-1.744c.96-.427 2.058-.64 3.296-.64 1.162 0 2.186.187 3.072.56a7.514 7.514 0 0 1 2.368 1.584l-.832 1.152zM234.121 32.868c-1.312 0-2.325-.368-3.04-1.104-.704-.736-1.056-1.787-1.056-3.152v-9.728h-1.888a.701.701 0 0 1-.464-.16c-.117-.117-.176-.288-.176-.512v-1.264l2.64-.368.704-4.848a.738.738 0 0 1 .24-.416.724.724 0 0 1 .48-.16h1.584v5.456h4.608v2.272h-4.608v9.52c0 .64.155 1.12.464 1.44.32.31.726.464 1.216.464.288 0 .534-.037.736-.112a3.27 3.27 0 0 0 .544-.24c.15-.096.278-.181.384-.256a.521.521 0 0 1 .288-.112c.107 0 .187.027.24.08a.694.694 0 0 1 .192.224l.928 1.504c-.512.47-1.12.832-1.824 1.088a6.362 6.362 0 0 1-2.192.384z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.815 33.284V9H70.66a6.259 6.259 0 0 1 5.823 6.243v11.783a6.258 6.258 0 0 1-6.258 6.258h-12.41zM84.56 9h-3.335v24.321h3.335V9zM61.15 29.95V12.32h9.075a2.923 2.923 0 0 1 2.923 2.923v11.783a2.923 2.923 0 0 1-2.923 2.923H61.15zM89.243 9v24.284h12.409a6.258 6.258 0 0 0 6.259-6.258V15.243A6.259 6.259 0 0 0 102.087 9H89.243zm22.912 5.636h3.728v3.728h-3.728v-3.729zm3.728 9.321h-3.728v3.729h3.728v-3.729zM92.578 12.32v17.63h9.074a2.924 2.924 0 0 0 2.924-2.924V15.243a2.924 2.924 0 0 0-2.924-2.923h-9.074z"})]}))};i.defaultProps={width:"239",height:"42",viewBox:"0 0 239 42",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};i.displayName="connect-logo";s=o.default=i;function p({children:e,...t}){return c.jsxs(d,{color:"did",variant:"contained",...t,children:[c.jsx("span",{style:{fontWeight:400},children:e||"Continue With"}),c.jsx(s,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}p.propTypes={children:f.any};p.defaultProps={children:""};export{p as C};
1
+ import{r as v,j as c,P as f,a1 as d}from"./index-BHVmBQ8E.js";var o={};Object.defineProperty(o,"__esModule",{value:!0});var s=o.default=void 0;m(v);var n=c;function m(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(h){return Object.getOwnPropertyDescriptor(e,h).enumerable})),r.push.apply(r,a)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(a){y(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function y(e,t,r){return t=g(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=j(e,"string");return typeof t=="symbol"?t:String(t)}function j(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i=function(t){return(0,n.jsxs)("svg",u(u({},t),{},{children:[(0,n.jsx)("path",{d:"M24.604 2.263L28.524 0H42.79v41.862H28.79a1 1 0 0 1-.5-.134l-15.103-8.72V8.854l1.817-1.05 3.2 1.848-1.817 1.05V31.16l12.993 7.502H39.59V3.2H29.38l-1.576.91-3.2-1.847z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.402 31.16V10.701L13.409 3.2H3.2v35.462h10.21l1.58-.913 3.2 1.847-3.923 2.266H0V0h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z"}),(0,n.jsx)("path",{d:"M138.44 27.684c.192 0 .357.075.496.224l1.344 1.472a9.584 9.584 0 0 1-3.44 2.576c-1.344.608-2.965.912-4.864.912-1.664 0-3.173-.288-4.528-.864a10.056 10.056 0 0 1-3.456-2.416c-.949-1.035-1.685-2.272-2.208-3.712-.523-1.44-.784-3.024-.784-4.752 0-1.728.272-3.312.816-4.752.555-1.44 1.328-2.677 2.32-3.712a10.444 10.444 0 0 1 3.552-2.416c1.387-.576 2.917-.864 4.592-.864 1.632 0 3.083.267 4.352.8a10.973 10.973 0 0 1 3.312 2.128l-1.12 1.584a.936.936 0 0 1-.288.288.742.742 0 0 1-.432.112c-.203 0-.443-.101-.72-.304a8.802 8.802 0 0 0-1.072-.672c-.437-.256-.981-.485-1.632-.688-.651-.203-1.461-.304-2.432-.304-1.141 0-2.187.203-3.136.608a6.885 6.885 0 0 0-2.464 1.728c-.683.747-1.216 1.67-1.6 2.768-.373 1.088-.56 2.32-.56 3.696 0 1.397.197 2.64.592 3.728.395 1.088.939 2.01 1.632 2.768a6.914 6.914 0 0 0 2.448 1.728 7.764 7.764 0 0 0 3.04.592c.661 0 1.253-.037 1.776-.112a7.843 7.843 0 0 0 1.456-.368c.448-.16.869-.363 1.264-.608a8.89 8.89 0 0 0 1.168-.912c.085-.075.176-.133.272-.176a.616.616 0 0 1 .304-.08zM149.68 16.1c1.195 0 2.272.197 3.232.592a6.54 6.54 0 0 1 2.464 1.68c.683.725 1.205 1.605 1.568 2.64.363 1.024.544 2.176.544 3.456 0 1.28-.181 2.437-.544 3.472-.363 1.035-.885 1.915-1.568 2.64a6.795 6.795 0 0 1-2.464 1.68c-.96.384-2.037.576-3.232.576-1.205 0-2.293-.192-3.264-.576a6.987 6.987 0 0 1-2.464-1.68c-.683-.725-1.211-1.605-1.584-2.64-.363-1.035-.544-2.192-.544-3.472 0-1.28.181-2.432.544-3.456.373-1.035.901-1.915 1.584-2.64a6.717 6.717 0 0 1 2.464-1.68c.971-.395 2.059-.592 3.264-.592zm0 14.304c1.536 0 2.683-.517 3.44-1.552.757-1.035 1.136-2.49 1.136-4.368 0-1.877-.379-3.333-1.136-4.368-.757-1.045-1.904-1.568-3.44-1.568-1.557 0-2.72.523-3.488 1.568-.757 1.035-1.136 2.49-1.136 4.368 0 1.877.379 3.333 1.136 4.368.768 1.035 1.931 1.552 3.488 1.552zM163.899 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.442 6.442 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448.682.299 1.253.72 1.712 1.264.458.533.805 1.179 1.04 1.936.234.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.534-.65-1.35-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.38 7.38 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM181.805 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.448 6.448 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448a4.63 4.63 0 0 1 1.712 1.264c.459.533.805 1.179 1.04 1.936.235.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.533-.65-1.349-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.396 7.396 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM207.551 22.676c0-.619-.09-1.19-.272-1.712a3.77 3.77 0 0 0-.768-1.36 3.521 3.521 0 0 0-1.248-.896c-.49-.213-1.056-.32-1.696-.32-1.312 0-2.346.379-3.104 1.136-.746.757-1.221 1.808-1.424 3.152h8.512zm2.576 7.616a6.311 6.311 0 0 1-1.328 1.168 7.926 7.926 0 0 1-1.6.784 9.664 9.664 0 0 1-1.76.448c-.597.096-1.189.144-1.776.144-1.12 0-2.16-.187-3.12-.56a7.159 7.159 0 0 1-2.48-1.664c-.693-.736-1.237-1.643-1.632-2.72-.384-1.088-.576-2.336-.576-3.744 0-1.13.176-2.181.528-3.152a7.67 7.67 0 0 1 1.504-2.56 7.064 7.064 0 0 1 2.416-1.712c.95-.416 2.016-.624 3.2-.624.992 0 1.904.165 2.736.496.843.32 1.568.79 2.176 1.408.608.619 1.083 1.381 1.424 2.288.352.907.528 1.941.528 3.104 0 .48-.053.805-.16.976-.106.16-.304.24-.592.24h-10.656c.032.97.171 1.819.416 2.544.246.715.582 1.312 1.008 1.792.438.48.955.837 1.552 1.072.598.235 1.264.352 2 .352.694 0 1.291-.08 1.792-.24.512-.16.95-.33 1.312-.512.374-.192.683-.368.928-.528.256-.16.48-.24.672-.24.256 0 .454.096.592.288l.896 1.152zM225.113 19.396a1.836 1.836 0 0 1-.288.288c-.086.064-.214.096-.384.096-.171 0-.352-.064-.544-.192a4.872 4.872 0 0 0-.704-.432 5.21 5.21 0 0 0-1.024-.432c-.395-.139-.886-.208-1.472-.208-.768 0-1.446.139-2.032.416a3.972 3.972 0 0 0-1.472 1.184c-.384.512-.678 1.136-.88 1.872-.203.736-.304 1.563-.304 2.48 0 .95.106 1.797.32 2.544.213.736.517 1.36.912 1.872.394.501.874.885 1.44 1.152a4.522 4.522 0 0 0 1.888.384c.672 0 1.226-.08 1.664-.24.437-.17.8-.352 1.088-.544.288-.192.528-.368.72-.528.192-.17.389-.256.592-.256.256 0 .453.096.592.288l.896 1.152a5.966 5.966 0 0 1-1.264 1.168c-.459.32-.95.581-1.472.784a8.34 8.34 0 0 1-1.648.448c-.566.096-1.142.144-1.728.144a7.25 7.25 0 0 1-2.848-.56 6.52 6.52 0 0 1-2.288-1.632c-.64-.715-1.147-1.59-1.52-2.624-.374-1.045-.56-2.23-.56-3.552 0-1.205.165-2.32.496-3.344.341-1.024.837-1.904 1.488-2.64a6.821 6.821 0 0 1 2.432-1.744c.96-.427 2.058-.64 3.296-.64 1.162 0 2.186.187 3.072.56a7.514 7.514 0 0 1 2.368 1.584l-.832 1.152zM234.121 32.868c-1.312 0-2.325-.368-3.04-1.104-.704-.736-1.056-1.787-1.056-3.152v-9.728h-1.888a.701.701 0 0 1-.464-.16c-.117-.117-.176-.288-.176-.512v-1.264l2.64-.368.704-4.848a.738.738 0 0 1 .24-.416.724.724 0 0 1 .48-.16h1.584v5.456h4.608v2.272h-4.608v9.52c0 .64.155 1.12.464 1.44.32.31.726.464 1.216.464.288 0 .534-.037.736-.112a3.27 3.27 0 0 0 .544-.24c.15-.096.278-.181.384-.256a.521.521 0 0 1 .288-.112c.107 0 .187.027.24.08a.694.694 0 0 1 .192.224l.928 1.504c-.512.47-1.12.832-1.824 1.088a6.362 6.362 0 0 1-2.192.384z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.815 33.284V9H70.66a6.259 6.259 0 0 1 5.823 6.243v11.783a6.258 6.258 0 0 1-6.258 6.258h-12.41zM84.56 9h-3.335v24.321h3.335V9zM61.15 29.95V12.32h9.075a2.923 2.923 0 0 1 2.923 2.923v11.783a2.923 2.923 0 0 1-2.923 2.923H61.15zM89.243 9v24.284h12.409a6.258 6.258 0 0 0 6.259-6.258V15.243A6.259 6.259 0 0 0 102.087 9H89.243zm22.912 5.636h3.728v3.728h-3.728v-3.729zm3.728 9.321h-3.728v3.729h3.728v-3.729zM92.578 12.32v17.63h9.074a2.924 2.924 0 0 0 2.924-2.924V15.243a2.924 2.924 0 0 0-2.924-2.923h-9.074z"})]}))};i.defaultProps={width:"239",height:"42",viewBox:"0 0 239 42",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};i.displayName="connect-logo";s=o.default=i;function p({children:e,...t}){return c.jsxs(d,{color:"did",variant:"contained",...t,children:[c.jsx("span",{style:{fontWeight:400},children:e||"Continue With"}),c.jsx(s,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}p.propTypes={children:f.any};p.defaultProps={children:""};export{p as C};
@@ -1 +1 @@
1
- import{b4 as y}from"./index-CHSnAsQ1.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var n=this._errors[r],o=n.message,a=(e[o]||0)+1;e[o]=a,a>=t&&(i=n,t=a)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in t)r[n]=t[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var n=r.randomize?Math.random()+1:1,o=Math.round(n*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,n){if(r instanceof Array&&(n=r,r=null),!n){n=[];for(var o in t)typeof t[o]=="function"&&n.push(o)}for(var a=0;a<n.length;a++){var s=n[a],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
1
+ import{b4 as y}from"./index-BHVmBQ8E.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var n=this._errors[r],o=n.message,a=(e[o]||0)+1;e[o]=a,a>=t&&(i=n,t=a)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in t)r[n]=t[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var n=r.randomize?Math.random()+1:1,o=Math.round(n*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,n){if(r instanceof Array&&(n=r,r=null),!n){n=[];for(var o in t)typeof t[o]=="function"&&n.push(o)}for(var a=0;a<n.length;a++){var s=n[a],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
@@ -1 +1 @@
1
- import{aB as $,aC as x,aD as d,aE as e,ch as k,cb as y,ca as m,r as C,aF as M,aG as l,j as s,aI as z,aJ as j,bt as R,P as B}from"./index-CHSnAsQ1.js";import{a as T,F as E}from"./FormControlLabel-BDYHQJ8F.js";import{c as P}from"./useSlot-Cwz6OM5B.js";function D(t){return x("MuiSwitch",t)}const o=$("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),I=["className","color","edge","size","sx"],N=P(),O=t=>{const{classes:a,edge:i,size:r,color:p,checked:u,disabled:h}=t,g={root:["root",i&&`edge${e(i)}`,`size${e(r)}`],switchBase:["switchBase",`color${e(p)}`,u&&"checked",h&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},b=j(g,D,a);return l({},a,b)},_=d("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:i}=t;return[a.root,i.edge&&a[`edge${e(i.edge)}`],a[`size${e(i.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${o.thumb}`]:{width:16,height:16},[`& .${o.switchBase}`]:{padding:4,[`&.${o.checked}`]:{transform:"translateX(16px)"}}}}]}),U=d(T,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,a)=>{const{ownerState:i}=t;return[a.switchBase,{[`& .${o.input}`]:a.input},i.color!=="default"&&a[`color${e(i.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${o.checked}`]:{transform:"translateX(20px)"},[`&.${o.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${o.checked} + .${o.track}`]:{opacity:.5},[`&.${o.disabled} + .${o.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${o.input}`]:{left:"-100%",width:"300%"}}),({theme:t})=>({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:k(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(([,a])=>a.main&&a.light).map(([a])=>({props:{color:a},style:{[`&.${o.checked}`]:{color:(t.vars||t).palette[a].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[a].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:k(t.palette[a].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${o.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${a}DisabledColor`]:`${t.palette.mode==="light"?y(t.palette[a].main,.62):m(t.palette[a].main,.55)}`}},[`&.${o.checked} + .${o.track}`]:{backgroundColor:(t.vars||t).palette[a].main}}}))]})),A=d("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,a)=>a.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),F=d("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,a)=>a.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),L=C.forwardRef(function(a,i){const r=N({props:a,name:"MuiSwitch"}),{className:p,color:u="primary",edge:h=!1,size:g="medium",sx:b}=r,f=M(r,I),c=l({},r,{color:u,edge:h,size:g}),n=O(c),w=s.jsx(F,{className:n.thumb,ownerState:c});return s.jsxs(_,{className:z(n.root,p),sx:b,ownerState:c,children:[s.jsx(U,l({type:"checkbox",icon:w,checkedIcon:w,ref:i,ownerState:c},f,{classes:l({},n,{root:n.switchBase})})),s.jsx(A,{className:n.track,ownerState:c})]})}),V=L,v=R(t=>s.jsx(V,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:t.palette.mode==="dark"?"#2ECA45":"#65C466",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:t.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:t.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}));function S({labelProps:t,...a}){return t?s.jsx(E,{control:s.jsx(v,{...a}),...t}):s.jsx(v,{...a})}S.propTypes={labelProps:B.object};S.defaultProps={labelProps:null};export{S,V as a};
1
+ import{aB as $,aC as x,aD as d,aE as e,ch as k,cb as y,ca as m,r as C,aF as M,aG as l,j as s,aI as z,aJ as j,bt as R,P as B}from"./index-BHVmBQ8E.js";import{a as T,F as E}from"./FormControlLabel-CSgQzD8H.js";import{c as P}from"./useSlot-BXs-_Etv.js";function D(t){return x("MuiSwitch",t)}const o=$("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),I=["className","color","edge","size","sx"],N=P(),O=t=>{const{classes:a,edge:i,size:r,color:p,checked:u,disabled:h}=t,g={root:["root",i&&`edge${e(i)}`,`size${e(r)}`],switchBase:["switchBase",`color${e(p)}`,u&&"checked",h&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},b=j(g,D,a);return l({},a,b)},_=d("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:i}=t;return[a.root,i.edge&&a[`edge${e(i.edge)}`],a[`size${e(i.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${o.thumb}`]:{width:16,height:16},[`& .${o.switchBase}`]:{padding:4,[`&.${o.checked}`]:{transform:"translateX(16px)"}}}}]}),U=d(T,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,a)=>{const{ownerState:i}=t;return[a.switchBase,{[`& .${o.input}`]:a.input},i.color!=="default"&&a[`color${e(i.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${o.checked}`]:{transform:"translateX(20px)"},[`&.${o.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${o.checked} + .${o.track}`]:{opacity:.5},[`&.${o.disabled} + .${o.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${o.input}`]:{left:"-100%",width:"300%"}}),({theme:t})=>({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:k(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(([,a])=>a.main&&a.light).map(([a])=>({props:{color:a},style:{[`&.${o.checked}`]:{color:(t.vars||t).palette[a].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[a].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:k(t.palette[a].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${o.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${a}DisabledColor`]:`${t.palette.mode==="light"?y(t.palette[a].main,.62):m(t.palette[a].main,.55)}`}},[`&.${o.checked} + .${o.track}`]:{backgroundColor:(t.vars||t).palette[a].main}}}))]})),A=d("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,a)=>a.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),F=d("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,a)=>a.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),L=C.forwardRef(function(a,i){const r=N({props:a,name:"MuiSwitch"}),{className:p,color:u="primary",edge:h=!1,size:g="medium",sx:b}=r,f=M(r,I),c=l({},r,{color:u,edge:h,size:g}),n=O(c),w=s.jsx(F,{className:n.thumb,ownerState:c});return s.jsxs(_,{className:z(n.root,p),sx:b,ownerState:c,children:[s.jsx(U,l({type:"checkbox",icon:w,checkedIcon:w,ref:i,ownerState:c},f,{classes:l({},n,{root:n.switchBase})})),s.jsx(A,{className:n.track,ownerState:c})]})}),V=L,v=R(t=>s.jsx(V,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:t.palette.mode==="dark"?"#2ECA45":"#65C466",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:t.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:t.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}));function S({labelProps:t,...a}){return t?s.jsx(E,{control:s.jsx(v,{...a}),...t}):s.jsx(v,{...a})}S.propTypes={labelProps:B.object};S.defaultProps={labelProps:null};export{S,V as a};