@abtnode/blocklet-services 1.16.25-beta-4f765cf3 → 1.16.25-beta-708d1e12

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 (181) hide show
  1. package/api/emails/libs/config.js +4 -4
  2. package/api/emails/libs/constant.js +3 -3
  3. package/api/routes/user-session.js +8 -4
  4. package/dist/assets/{Add-hE_y-3Pq.js → Add-o7f6BJmj.js} +1 -1
  5. package/dist/assets/{Alert-N84_KD-3.js → Alert-2Sc6R3cE.js} +1 -1
  6. package/dist/assets/{ArrowDropDown-wCnewKKe.js → ArrowDropDown-7i0JqbX_.js} +1 -1
  7. package/dist/assets/{Avatar-HEnEOozL.js → Avatar-AdxEikb8.js} +1 -1
  8. package/dist/assets/{ButtonGroup-W_ITJpp0.js → ButtonGroup-ZMhEcWBm.js} +1 -1
  9. package/dist/assets/{CheckCircle-cUnXZ7OP.js → CheckCircle-yZ84RaNW.js} +1 -1
  10. package/dist/assets/{Checkbox-LXon8OOU.js → Checkbox-DwtPgRKi.js} +1 -1
  11. package/dist/assets/{ChevronRight-WBXU5ohU.js → ChevronRight-rNtFYiFJ.js} +1 -1
  12. package/dist/assets/{CloseOutlined-TVRW4CrE.js → CloseOutlined-pPsqG-_S.js} +1 -1
  13. package/dist/assets/{DeleteOutline-gdv3ewKz.js → DeleteOutline-sSabYEIu.js} +1 -1
  14. package/dist/assets/{Done-EASqrGRr.js → Done-aE9zL0eo.js} +1 -1
  15. package/dist/assets/{Download-qMR3c16e.js → Download-Uf0HRImA.js} +1 -1
  16. package/dist/assets/{Edit-kLYyZhkN.js → Edit-PrUqpKMd.js} +1 -1
  17. package/dist/assets/{EditIcon-n1Oun3aR.js → EditIcon-hGQhLL2C.js} +1 -1
  18. package/dist/assets/{ExpandMore-WMRfZEqP.js → ExpandMore-mPB2YhQW.js} +1 -1
  19. package/dist/assets/{FilterList-L4dRV2kI.js → FilterList-tMCX175q.js} +4 -4
  20. package/dist/assets/{FormControl-lU-7UxhW.js → FormControl-xoxXEZb8.js} +1 -1
  21. package/dist/assets/{FormControlLabel-h1hvXlPm.js → FormControlLabel-IB1UGelR.js} +1 -1
  22. package/dist/assets/{FormGroup-hZDn5b3E.js → FormGroup-Jh-Io1Z4.js} +1 -1
  23. package/dist/assets/{Google-YsY_lMOh.js → Google-y_aH1oRG.js} +1 -1
  24. package/dist/assets/{Grid-O2eaJZIs.js → Grid-f-Vjghs3.js} +1 -1
  25. package/dist/assets/{Hidden-8riRi-7w.js → Hidden-8CqxHQ_X.js} +1 -1
  26. package/dist/assets/{InfoOutlined-tz9WxS05.js → InfoOutlined-XJNXTm54.js} +1 -1
  27. package/dist/assets/{InputAdornment-gpcYuAGZ.js → InputAdornment-XxuKCjY1.js} +1 -1
  28. package/dist/assets/{InputLabel-nZyS3xY_.js → InputLabel-dTvisMpt.js} +1 -1
  29. package/dist/assets/{LastPage--aACjaLx.js → LastPage-bzaKxcr1.js} +1 -1
  30. package/dist/assets/{Launch-JkzTfHAo.js → Launch-ao8Q4dN4.js} +1 -1
  31. package/dist/assets/{LaunchOutlined-pjiX1yYA.js → LaunchOutlined-GOPIsar_.js} +1 -1
  32. package/dist/assets/{Link-4swwBDUU.js → Link-nFW0GxuM.js} +1 -1
  33. package/dist/assets/{ListItem-DSIyD39f.js → ListItem-5kuUsdPN.js} +1 -1
  34. package/dist/assets/{LockIcon-SkJSvCSd.js → LockIcon-QvhzKy4h.js} +1 -1
  35. package/dist/assets/{Loop-nbHXfT5v.js → Loop-pIMsIdOf.js} +1 -1
  36. package/dist/assets/{MoreHoriz-Ob-PdXvr.js → MoreHoriz-9C_wgVFn.js} +1 -1
  37. package/dist/assets/{MoreVert-JPy3cIzD.js → MoreVert-mTBZGLTb.js} +1 -1
  38. package/dist/assets/{OpenInNew-ZUopA0lK.js → OpenInNew-QRH1MnbP.js} +1 -1
  39. package/dist/assets/{Pagination-DKPQNlbx.js → Pagination-LLL4n7eQ.js} +1 -1
  40. package/dist/assets/{PlayArrow-lb0G2com.js → PlayArrow-OtSiNyvI.js} +1 -1
  41. package/dist/assets/{RadioGroup-Pc6M6-Ta.js → RadioGroup-hg8pxuHG.js} +1 -1
  42. package/dist/assets/{RevokeIcon-uaAHFtlr.js → RevokeIcon-Kmm-8yLk.js} +1 -1
  43. package/dist/assets/{Search-uAWnirME.js → Search-Xmr9iNtX.js} +1 -1
  44. package/dist/assets/{Select-zWmcTNCa.js → Select-VWgcVd68.js} +2 -2
  45. package/dist/assets/{ServerLogo-aTuLKo2-.js → ServerLogo-KRwgUxGt.js} +1 -1
  46. package/dist/assets/{Skeleton-8CtJ4Efm.js → Skeleton-4iTZ1G_T.js} +1 -1
  47. package/dist/assets/{Slider-onjTAkn6.js → Slider-ZYScfJRe.js} +1 -1
  48. package/dist/assets/{Stepper-ClqLBUZn.js → Stepper-WinjhKg_.js} +1 -1
  49. package/dist/assets/{TableRow-sJQHVDVk.js → TableRow-qSX4kYER.js} +1 -1
  50. package/dist/assets/{TextField-qykW02zP.js → TextField-MjgooqCE.js} +1 -1
  51. package/dist/assets/{Toolbar-U75uViNg.js → Toolbar-RrDogDmV.js} +1 -1
  52. package/dist/assets/{access-control-84TFJPOW.js → access-control-vrxkDP7W.js} +1 -1
  53. package/dist/assets/{actions-oIEoqVY9.js → actions-ZdEsqYtg.js} +1 -1
  54. package/dist/assets/{add-component-core-KW2dmt2S.js → add-component-core-YKGlg4uN.js} +43 -43
  55. package/dist/assets/add-resource-sOrMGbDX.js +1 -0
  56. package/dist/assets/{addon-AhsSDW4t.js → addon-9m-itDun.js} +1 -1
  57. package/dist/assets/{analytics-ah1N_RmS.js → analytics-DFlzZ83o.js} +1 -1
  58. package/dist/assets/api-XelZ0ExO.js +1 -0
  59. package/dist/assets/{audit-logs-BDEBHbGm.js → audit-logs-_eDC0yKN.js} +1 -1
  60. package/dist/assets/{button-uaT7Xd3G.js → button-tjKZaBET.js} +1 -1
  61. package/dist/assets/{click-to-copy-JQ1hcSA6.js → click-to-copy-YklzK0Hv.js} +1 -1
  62. package/dist/assets/{complete-E5cWO82Y.js → complete-BYJ9kJTF.js} +2 -2
  63. package/dist/assets/{component-ibdtKOi5.js → component-ynNTSNWZ.js} +42 -38
  64. package/dist/assets/{config-Fy4LmtXv.js → config-80Y1A93C.js} +1 -1
  65. package/dist/assets/{config-rPSf2CrR.js → config-ih4ovUCC.js} +1 -1
  66. package/dist/assets/{config-navigation-v-8UEsNh.js → config-navigation-IufRWAGy.js} +1 -1
  67. package/dist/assets/{config-space-qrKrA2gA.js → config-space-XQ1loFSc.js} +1 -1
  68. package/dist/assets/confirm-0S5-fLrP.js +7 -0
  69. package/dist/assets/{connect-hxSEw-9U.js → connect-3P6_5DNU.js} +1 -1
  70. package/dist/assets/{connect-frGRdhGh.js → connect-qrsdN8qH.js} +1 -1
  71. package/dist/assets/{connect-to-aXc7wTCq.js → connect-to-rnv35m9C.js} +1 -1
  72. package/dist/assets/{content-layout-sw8mpR8E.js → content-layout-GoU3wOG1.js} +1 -1
  73. package/dist/assets/{dashboard-VBA06Iwv.js → dashboard-lfeS3PHD.js} +3 -3
  74. package/dist/assets/{did-address-kM_Gj5GB.js → did-address-rfO525uq.js} +1 -1
  75. package/dist/assets/{domain-list-RHpwjQ6u.js → domain-list-1OwgOeYU.js} +2 -2
  76. package/dist/assets/{domain-tImHfF3n.js → domain-wmMAOvGi.js} +1 -1
  77. package/dist/assets/{exchange-passport-yJcCPjmR.js → exchange-passport-sfB_G4VP.js} +1 -1
  78. package/dist/assets/{fallback-kvbxeOAh.js → fallback-M3gwngjJ.js} +1 -1
  79. package/dist/assets/{fuel-I4edEzsM.js → fuel-9VKv1cPL.js} +1 -1
  80. package/dist/assets/{fullpage-Y5V_MGHE.js → fullpage-qhKvyUDP.js} +1 -1
  81. package/dist/assets/{home-x43lXk8b.js → home-WQodAXsl.js} +1 -1
  82. package/dist/assets/{iframe--DusxskT.js → iframe-ONoIb5Ld.js} +1 -1
  83. package/dist/assets/{index-vL9pFI1M.js → index-BHILRSlq.js} +1 -1
  84. package/dist/assets/{index-0Ap23gmc.js → index-EMbcfuua.js} +7 -7
  85. package/dist/assets/{index-yxXVaudE.js → index-EXyZKEQ7.js} +1 -1
  86. package/dist/assets/index-F9vDNwHQ.css +1 -0
  87. package/dist/assets/{index-1RYLvd7a.js → index-GdGOjew5.js} +3 -3
  88. package/dist/assets/{index-FoQ3Q1RE.js → index-GiwmDJzT.js} +1 -1
  89. package/dist/assets/{index-lTugDaC3.js → index-I2EzgO7Z.js} +1 -1
  90. package/dist/assets/{index-VcmnR0mp.js → index-M3UUeijE.js} +1 -1
  91. package/dist/assets/{index-v3hymz3j.js → index-MNHCWuyL.js} +1 -1
  92. package/dist/assets/{index-WdoIow2K.js → index-MeOSq4dv.js} +1 -1
  93. package/dist/assets/{index-NRx9SxtP.js → index-Oas8zMgP.js} +1 -1
  94. package/dist/assets/{index-3jv088eq.js → index-QHwTQ0Oi.js} +1 -1
  95. package/dist/assets/{index-4uoBZ4Km.js → index-VaM6HP_Q.js} +1 -1
  96. package/dist/assets/{index-4FwYLGoA.js → index-Wq-rzEW6.js} +1 -1
  97. package/dist/assets/{index-VW3Fsku0.js → index-YCWX823v.js} +1 -1
  98. package/dist/assets/{index-uLL8Vp7T.js → index-Z88J5jCT.js} +1 -1
  99. package/dist/assets/{index-bcLu0M2u.js → index-_WLXlDPC.js} +8 -8
  100. package/dist/assets/{index-sfLTpxKS.js → index-dB9OPXNf.js} +1 -1
  101. package/dist/assets/{index-EbJvsRfv.js → index-dI5ZSKFQ.js} +1 -1
  102. package/dist/assets/{index-oIFGwfmM.js → index-du685dM1.js} +25 -22
  103. package/dist/assets/{index-D7dMTham.js → index-h3sraykP.js} +178 -170
  104. package/dist/assets/{index-k3rNNowK.js → index-kec5P_K3.js} +1 -1
  105. package/dist/assets/{index-mjo2fUfh.js → index-l5lz-7EK.js} +1 -1
  106. package/dist/assets/{index-p2mJUcBg.js → index-qmbzHJyu.js} +1 -1
  107. package/dist/assets/{index-JW3UP05k.js → index-qnEqlg4R.js} +3 -3
  108. package/dist/assets/{index-e_QDKVxH.js → index-tgeomfph.js} +1 -1
  109. package/dist/assets/{index-HlcsGwyy.js → index-uEGsaD3M.js} +1 -1
  110. package/dist/assets/{index-MW5XAWzK.js → index-uTCkX1T7.js} +1 -1
  111. package/dist/assets/{index-DBamhj5p.js → index-vUTIDTR9.js} +1 -1
  112. package/dist/assets/index-zMSJeA-E.js +268 -0
  113. package/dist/assets/{index.es-bqRJDylj.js → index.es-lFNAdHNo.js} +2 -2
  114. package/dist/assets/{index.esm-t8g2Slly.js → index.esm-mmNeQL3L.js} +1 -1
  115. package/dist/assets/inter-latin-300-normal-2jONLEHF.woff +0 -0
  116. package/dist/assets/inter-latin-300-normal-CHA_qmA3.woff2 +0 -0
  117. package/dist/assets/inter-latin-ext-300-normal-Lj3yl17a.woff2 +0 -0
  118. package/dist/assets/inter-latin-ext-300-normal-O3IJKV3D.woff +0 -0
  119. package/dist/assets/{invitation-tMRZljsF.js → invitation-YfsMulj0.js} +1 -1
  120. package/dist/assets/{invite-WXG3A1XD.js → invite-ZfriUJ9Y.js} +1 -1
  121. package/dist/assets/{issue-passport-PWWWsMhT.js → issue-passport-oheBaIpo.js} +1 -1
  122. package/dist/assets/{jss-plugin-props-sort.esm-7_btNtOg.js → jss-plugin-props-sort.esm-pbIDMiEj.js} +1 -1
  123. package/dist/assets/{launch-result-message-JRp4fsUm.js → launch-result-message-i4iIlt9Q.js} +1 -1
  124. package/dist/assets/{layout-fGWPkOEh.js → layout-ZftIOuFj.js} +1 -1
  125. package/dist/assets/{list-header-UfmVzXbI.js → list-header-fam1czx5.js} +1 -1
  126. package/dist/assets/localization-z-VYtZCA.js +1 -0
  127. package/dist/assets/{log-lPZLyIpQ.js → log-ZxWSkXhu.js} +1 -1
  128. package/dist/assets/{login-8jWdK1zF.js → login-F1vL63Al.js} +1 -1
  129. package/dist/assets/{logo-uploader-1AyeNZ0q.js → logo-uploader-lr_KNn1n.js} +3 -3
  130. package/dist/assets/{lost-passport-JYHdz0yI.js → lost-passport-WsYsCF61.js} +3 -3
  131. package/dist/assets/{lottie-pnpc9RW1.js → lottie-yG7fDd4e.js} +1 -1
  132. package/dist/assets/{notifications-LaROgtr_.js → notifications-laELuXf9.js} +1 -1
  133. package/dist/assets/{overview-ftrECyBu.js → overview-RPeZ9VZx.js} +1 -1
  134. package/dist/assets/{page-header-w9yhETXI.js → page-header-mvQvWFSM.js} +1 -1
  135. package/dist/assets/{permission-RZL9x2kU.js → permission-TC2XuZxZ.js} +1 -1
  136. package/dist/assets/{preferences-pJUG2yrq.js → preferences-txGT8AnA.js} +1 -1
  137. package/dist/assets/publish-resource-gmn1NZUd.js +1 -0
  138. package/dist/assets/{react-iBHDgDW5.js → react-XWGS9cxk.js} +3 -3
  139. package/dist/assets/selector-0eV_-_uZ.js +46 -0
  140. package/dist/assets/session-saX7tj70.js +1 -0
  141. package/dist/assets/{setup-qpe6SzuC.js → setup-kzc1joxd.js} +3 -3
  142. package/dist/assets/{slicedToArray-9fp4JHaL.js → slicedToArray-W7OLcQUr.js} +1 -1
  143. package/dist/assets/{spaces-QwLXvIVF.js → spaces-vhs_9Akk.js} +1 -1
  144. package/dist/assets/{start-P2s1c0OH.js → start-Z4G8V0yC.js} +1 -1
  145. package/dist/assets/{step-actions-wtpUlz_n.js → step-actions-1spcE04Y.js} +1 -1
  146. package/dist/assets/{studio-zi78rIOG.js → studio-hw7XnVFd.js} +1 -1
  147. package/dist/assets/{switch-control-6WrpIwmw.js → switch-control-R8F0yUtj.js} +1 -1
  148. package/dist/assets/{toUpper-3okjr7DL.js → toUpper-Dxvf_RNo.js} +1 -1
  149. package/dist/assets/{transfer-OatqzcQh.js → transfer-R8mkTEnQ.js} +1 -1
  150. package/dist/assets/{uniqBy-E-w6tn5N.js → uniqBy-umfVBDjY.js} +1 -1
  151. package/dist/assets/{unsubscribe-T77Y7MuB.js → unsubscribe-hZBlIrWc.js} +1 -1
  152. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-8VklSTD-.js → use-blocklet-info-for-connect-did-spaces-gXnFOWyk.js} +1 -1
  153. package/dist/assets/{useAsync-q9mkCv9v.js → useAsync-si7IPUu0.js} +1 -1
  154. package/dist/assets/{useFormControl-bdbmye_j.js → useFormControl-FRmGHds5.js} +1 -1
  155. package/dist/assets/{useLocalStorage-slHq8u6M.js → useLocalStorage-G1JtIRyG.js} +1 -1
  156. package/dist/assets/{useSetState-GR8fLZaJ.js → useSetState-uLpj1Imf.js} +1 -1
  157. package/dist/assets/{useSlot-VejfTAjg.js → useSlot-Q6IQEGLk.js} +1 -1
  158. package/dist/assets/user-center-G5H3OsOq.js +1 -0
  159. package/dist/assets/{util-SGesDKnt.js → util-FF6j1gj-.js} +1 -1
  160. package/dist/assets/{wrap-locale-oqRLFt6z.js → wrap-locale-ybzXDoW2.js} +1 -1
  161. package/dist/index.html +2 -2
  162. package/dist/service-worker.js +1 -1
  163. package/package.json +22 -22
  164. package/dist/assets/add-resource-xXtPPgi2.js +0 -1
  165. package/dist/assets/api-JlWJcBe_.js +0 -1
  166. package/dist/assets/confirm-uc1Y33uD.js +0 -7
  167. package/dist/assets/index-9kGH241X.js +0 -268
  168. package/dist/assets/index-TCTrVMXW.css +0 -1
  169. package/dist/assets/inter-latin-600-normal-274dML8R.woff +0 -0
  170. package/dist/assets/inter-latin-600-normal-dkrH7PHm.woff2 +0 -0
  171. package/dist/assets/inter-latin-900-normal-nKjH9plu.woff +0 -0
  172. package/dist/assets/inter-latin-900-normal-q9Lx9Ocb.woff2 +0 -0
  173. package/dist/assets/inter-latin-ext-600-normal-4NAZNGKz.woff +0 -0
  174. package/dist/assets/inter-latin-ext-600-normal-GqN-XZEm.woff2 +0 -0
  175. package/dist/assets/inter-latin-ext-900-normal-93Wi4WDd.woff2 +0 -0
  176. package/dist/assets/inter-latin-ext-900-normal-eZXZQAvt.woff +0 -0
  177. package/dist/assets/localization-1vbSMg9g.js +0 -1
  178. package/dist/assets/publish-resource-rZcNx7fC.js +0 -1
  179. package/dist/assets/selector-g3wjJR3o.js +0 -46
  180. package/dist/assets/session-njvv4tO8.js +0 -1
  181. package/dist/assets/user-center-b2Piq6Oe.js +0 -1
@@ -1 +1 @@
1
- import{aA as vt,aB as mt,aC as O,co as jt,aD as Ht,aF as p,r as d,az as St,aE as at,aH as N,j as u,aI as gt,an as At,cj as ae,cp as Ot,cq as Dt,bo as Xt,aG as st,cr as ft,cs as ie,bQ as ce,G as $,P as W}from"./index-D7dMTham.js";let Y;function _t(){if(Y)return Y;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),Y="reverse",t.scrollLeft>0?Y="default":(t.scrollLeft=1,t.scrollLeft===0&&(Y="negative")),document.body.removeChild(t),Y}function de(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 ue(t){return mt("MuiTab",t)}const be=vt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=be,pe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],fe=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:r,icon:a,label:v,selected:h,disabled:b}=t,S={root:["root",a&&v&&"labelIcon",`textColor${Ht(l)}`,s&&"fullWidth",r&&"wrapped",h&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return gt(S,ue,e)},he=O(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]}})(({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,[`& > .${A.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,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.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)})),ve=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTab"}),{className:r,disabled:a=!1,disableFocusRipple:v=!1,fullWidth:h,icon:b,iconPosition:S="top",indicator:T,label:w,onChange:y,onClick:g,onFocus:D,selected:M,selectionFollowsFocus:x,textColor:X="inherit",value:C,wrapped:it=!1}=s,_=at(s,pe),V=p({},s,{disabled:a,disableFocusRipple:v,selected:M,icon:!!b,iconPosition:S,label:!!w,fullWidth:h,textColor:X,wrapped:it}),q=fe(V),L=b&&w&&d.isValidElement(b)?d.cloneElement(b,{className:N(q.iconWrapper,b.props.className)}):b,tt=E=>{!M&&y&&y(E,C),g&&g(E)},U=E=>{x&&!M&&y&&y(E,C),D&&D(E)};return u.jsxs(he,p({focusRipple:!v,className:N(q.root,r),ref:l,role:"tab","aria-selected":M,disabled:a,onClick:tt,onFocus:U,ownerState:V,tabIndex:M?0:-1},_,{children:[S==="top"||S==="start"?u.jsxs(d.Fragment,{children:[L,w]}):u.jsxs(d.Fragment,{children:[w,L]}),T]}))}),xt=ve,me=At(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Se=At(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function ge(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function xe(t,e,l,s={},r=()=>{}){const{ease:a=ge,duration:v=300}=s;let h=null;const b=e[t];let S=!1;const T=()=>{S=!0},w=y=>{if(S){r(new Error("Animation cancelled"));return}h===null&&(h=y);const g=Math.min(1,(y-h)/v);if(e[t]=a(g)*(l-b)+b,g>=1){requestAnimationFrame(()=>{r(null)});return}requestAnimationFrame(w)};return b===l?(r(new Error("Element already at target position")),T):(requestAnimationFrame(w),T)}const ye=["onChange"],Ce={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Be(t){const{onChange:e}=t,l=at(t,ye),s=d.useRef(),r=d.useRef(null),a=()=>{s.current=r.current.offsetHeight-r.current.clientHeight};return ae(()=>{const v=Ot(()=>{const b=s.current;a(),b!==s.current&&e(s.current)}),h=Dt(r.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:Ce,ref:r},l))}function Te(t){return mt("MuiTabScrollButton",t)}const we=vt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Me=we,Ie=["className","slots","slotProps","direction","orientation","disabled"],Re=t=>{const{classes:e,orientation:l,disabled:s}=t;return gt({root:["root",l,s&&"disabled"]},Te,e)},Ee=O(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,[`&.${Me.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ze=d.forwardRef(function(e,l){var s,r;const a=St({props:e,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:b={},direction:S}=a,T=at(a,Ie),y=Xt().direction==="rtl",g=p({isRtl:y},a),D=Re(g),M=(s=h.StartScrollButtonIcon)!=null?s:me,x=(r=h.EndScrollButtonIcon)!=null?r:Se,X=st({elementType:M,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),C=st({elementType:x,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return u.jsx(Ee,p({component:"div",className:N(D.root,v),ref:l,role:null,ownerState:g,tabIndex:null},T,{children:S==="left"?u.jsx(M,p({},X)):u.jsx(x,p({},C))}))}),We=ze;function Pe(t){return mt("MuiTabs",t)}const ke=vt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ht=ke,Ne=["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,r=l(t,e);for(;r;){if(r===t.firstChild){if(s)return;s=!0}const a=r.disabled||r.getAttribute("aria-disabled")==="true";if(!r.hasAttribute("tabindex")||a)r=l(t,r);else{r.focus();return}}},$e=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:r,scrollableY:a,centered:v,scrollButtonsHideMobile:h,classes:b}=t;return gt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",r&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[r&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Pe,b)},Le=O("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"}}})),Fe=O("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"})),je=O("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"})),He=O("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})),Ae=O(Be)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Lt={},Oe=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTabs"}),r=Xt(),a=r.direction==="rtl",{"aria-label":v,"aria-labelledby":h,action:b,centered:S=!1,children:T,className:w,component:y="div",allowScrollButtonsMobile:g=!1,indicatorColor:D="primary",onChange:M,orientation:x="horizontal",ScrollButtonComponent:X=We,scrollButtons:C="auto",selectionFollowsFocus:it,slots:_={},slotProps:V={},TabIndicatorProps:q={},TabScrollButtonProps:L={},textColor:tt="primary",value:U,variant:E="standard",visibleScrollbar:ct=!1}=s,Yt=at(s,Ne),I=E==="scrollable",B=x==="vertical",G=B?"scrollTop":"scrollLeft",et=B?"top":"left",ot=B?"bottom":"right",dt=B?"clientHeight":"clientWidth",Q=B?"height":"width",F=p({},s,{component:y,allowScrollButtonsMobile:g,indicatorColor:D,orientation:x,vertical:B,scrollButtons:C,textColor:tt,variant:E,visibleScrollbar:ct,fixed:!I,hideScrollbar:I&&!ct,scrollableX:I&&!B,scrollableY:I&&B,centered:S&&!I,scrollButtonsHideMobile:!g}),P=$e(F),Kt=st({elementType:_.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:F}),Vt=st({elementType:_.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:F}),[Ct,Gt]=d.useState(!1),[j,Bt]=d.useState(Lt),[Tt,Qt]=d.useState(!1),[wt,Jt]=d.useState(!1),[Mt,Zt]=d.useState(!1),[It,te]=d.useState({overflow:"hidden",scrollbarWidth:0}),Rt=new Map,z=d.useRef(null),H=d.useRef(null),Et=()=>{const o=z.current;let n;if(o){const i=o.getBoundingClientRect();n={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:de(o,r.direction),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&U!==!1){const i=H.current.children;if(i.length>0){const f=i[Rt.get(U)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:n,tabMeta:c}},J=ft(()=>{const{tabsMeta:o,tabMeta:n}=Et();let c=0,i;if(B)i="top",n&&o&&(c=n.top-o.top+o.scrollTop);else if(i=a?"right":"left",n&&o){const m=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(n[i]-o[i]+m)}const f={[i]:c,[Q]:n?n[Q]:0};if(isNaN(j[i])||isNaN(j[Q]))Bt(f);else{const m=Math.abs(j[i]-f[i]),R=Math.abs(j[Q]-f[Q]);(m>=1||R>=1)&&Bt(f)}}),ut=(o,{animation:n=!0}={})=>{n?xe(G,z.current,o,{duration:r.transitions.duration.standard}):z.current[G]=o},zt=o=>{let n=z.current[G];B?n+=o:(n+=o*(a?-1:1),n*=a&&_t()==="reverse"?-1:1),ut(n)},Wt=()=>{const o=z.current[dt];let n=0;const c=Array.from(H.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(n+f[dt]>o){i===0&&(n=o);break}n+=f[dt]}return n},ee=()=>{zt(-1*Wt())},oe=()=>{zt(Wt())},le=d.useCallback(o=>{te({overflow:null,scrollbarWidth:o})},[]),re=()=>{const o={};o.scrollbarSizeListener=I?u.jsx(Ae,{onChange:le,className:N(P.scrollableX,P.hideScrollbar)}):null;const c=I&&(C==="auto"&&(Tt||wt)||C===!0);return o.scrollButtonStart=c?u.jsx(X,p({slots:{StartScrollButtonIcon:_.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Kt},orientation:x,direction:a?"right":"left",onClick:ee,disabled:!Tt},L,{className:N(P.scrollButtons,L.className)})):null,o.scrollButtonEnd=c?u.jsx(X,p({slots:{EndScrollButtonIcon:_.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Vt},orientation:x,direction:a?"left":"right",onClick:oe,disabled:!wt},L,{className:N(P.scrollButtons,L.className)})):null,o},Pt=ft(o=>{const{tabsMeta:n,tabMeta:c}=Et();if(!(!c||!n)){if(c[et]<n[et]){const i=n[G]+(c[et]-n[et]);ut(i,{animation:o})}else if(c[ot]>n[ot]){const i=n[G]+(c[ot]-n[ot]);ut(i,{animation:o})}}}),lt=ft(()=>{I&&C!==!1&&Zt(!Mt)});d.useEffect(()=>{const o=Ot(()=>{z.current&&J()});let n;const c=m=>{m.forEach(R=>{R.removedNodes.forEach(Z=>{var k;(k=n)==null||k.unobserve(Z)}),R.addedNodes.forEach(Z=>{var k;(k=n)==null||k.observe(Z)})}),o(),lt()},i=Dt(z.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(n=new ResizeObserver(o),Array.from(H.current.children).forEach(m=>{n.observe(m)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(H.current,{childList:!0})),()=>{var m,R;o.clear(),i.removeEventListener("resize",o),(m=f)==null||m.disconnect(),(R=n)==null||R.disconnect()}},[J,lt]),d.useEffect(()=>{const o=Array.from(H.current.children),n=o.length;if(typeof IntersectionObserver<"u"&&n>0&&I&&C!==!1){const c=o[0],i=o[n-1],f={root:z.current,threshold:.99},m=pt=>{Qt(!pt[0].isIntersecting)},R=new IntersectionObserver(m,f);R.observe(c);const Z=pt=>{Jt(!pt[0].isIntersecting)},k=new IntersectionObserver(Z,f);return k.observe(i),()=>{R.disconnect(),k.disconnect()}}},[I,C,Mt,T==null?void 0:T.length]),d.useEffect(()=>{Gt(!0)},[]),d.useEffect(()=>{J()}),d.useEffect(()=>{Pt(Lt!==j)},[Pt,j]),d.useImperativeHandle(b,()=>({updateIndicator:J,updateScrollButtons:lt}),[J,lt]);const kt=u.jsx(He,p({},q,{className:N(P.indicator,q.className),ownerState:F,style:p({},j,q.style)}));let rt=0;const ne=d.Children.map(T,o=>{if(!d.isValidElement(o))return null;const n=o.props.value===void 0?rt:o.props.value;Rt.set(n,rt);const c=n===U;return rt+=1,d.cloneElement(o,p({fullWidth:E==="fullWidth",indicator:c&&!Ct&&kt,selected:c,selectionFollowsFocus:it,onChange:M,textColor:tt,value:n},rt===1&&U===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),se=o=>{const n=H.current,c=ie(n).activeElement;if(c.getAttribute("role")!=="tab")return;let f=x==="horizontal"?"ArrowLeft":"ArrowUp",m=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(f="ArrowRight",m="ArrowLeft"),o.key){case f:o.preventDefault(),nt(n,c,$t);break;case m:o.preventDefault(),nt(n,c,Nt);break;case"Home":o.preventDefault(),nt(n,null,Nt);break;case"End":o.preventDefault(),nt(n,null,$t);break}},bt=re();return u.jsxs(Le,p({className:N(P.root,w),ownerState:F,ref:l,as:y},Yt,{children:[bt.scrollButtonStart,bt.scrollbarSizeListener,u.jsxs(Fe,{className:P.scroller,ownerState:F,style:{overflow:It.overflow,[B?`margin${a?"Left":"Right"}`:"marginBottom"]:ct?void 0:-It.scrollbarWidth},ref:z,children:[u.jsx(je,{"aria-label":v,"aria-labelledby":h,"aria-orientation":x==="vertical"?"vertical":null,className:P.flexContainer,ownerState:F,onKeyDown:se,ref:H,role:"tablist",children:ne}),Ct&&kt]}),bt.scrollButtonEnd]}))}),yt=Oe,Ft="index",K={tabs:`${Ft}-tabs`,tab:`${Ft}-tab`},De=ce(yt)(({theme:t})=>({[`& .${K.tabs}`]:{},[`& .${K.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:(r,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:$.backgroundsBgComponent,padding:.5,display:"inline-flex",columnGap:.25},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:$.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:$.lineBorderBase,color:$.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(r=>u.jsx(xt,{className:K.tab,value:r.value,label:r.label,icon:r.icon||null},r.value))})}qt.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function Ut({tabs:t,current:e,onChange:l,...s}){return u.jsx(yt,{scrollButtons:"auto",value:e,onChange:(r,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:$.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:$.foregroundsFgSubtile,fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:$.foregroundsFgBase}},".MuiTabs-indicator":{height:"1px",backgroundColor:$.foregroundsFgBase},...s.sx},children:t.map(r=>u.jsx(xt,{className:K.tab,value:r.value,label:r.label,icon:r.icon||null},r.value))})}Ut.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function Xe({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(Ut,{...s,tabs:t,current:e,onChange:l}):u.jsx(De,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(r,a)=>l(a),indicatorColor:"primary",...s,className:[K.tabs,s.className||""].join(" "),children:t.map(r=>u.jsx(xt,{className:K.tab,value:r.value,label:r.label,icon:r.icon||null},r.value))})}Xe.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};export{Se as K,Xe as T,me as a,yt as b,xt as c,ht as t};
1
+ import{aA as vt,aB as mt,aC as O,co as jt,aD as Ht,aF as p,r as d,az as St,aE as at,aH as N,j as u,aI as gt,an as At,cj as ae,cp as Ot,cq as Dt,bo as Xt,aG as st,cr as ft,cs as ie,bQ as ce,G as $,P as W}from"./index-h3sraykP.js";let Y;function _t(){if(Y)return Y;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),Y="reverse",t.scrollLeft>0?Y="default":(t.scrollLeft=1,t.scrollLeft===0&&(Y="negative")),document.body.removeChild(t),Y}function de(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 ue(t){return mt("MuiTab",t)}const be=vt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=be,pe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],fe=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:r,icon:a,label:v,selected:h,disabled:b}=t,S={root:["root",a&&v&&"labelIcon",`textColor${Ht(l)}`,s&&"fullWidth",r&&"wrapped",h&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return gt(S,ue,e)},he=O(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]}})(({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,[`& > .${A.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,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.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)})),ve=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTab"}),{className:r,disabled:a=!1,disableFocusRipple:v=!1,fullWidth:h,icon:b,iconPosition:S="top",indicator:T,label:w,onChange:y,onClick:g,onFocus:D,selected:M,selectionFollowsFocus:x,textColor:X="inherit",value:C,wrapped:it=!1}=s,_=at(s,pe),V=p({},s,{disabled:a,disableFocusRipple:v,selected:M,icon:!!b,iconPosition:S,label:!!w,fullWidth:h,textColor:X,wrapped:it}),q=fe(V),L=b&&w&&d.isValidElement(b)?d.cloneElement(b,{className:N(q.iconWrapper,b.props.className)}):b,tt=E=>{!M&&y&&y(E,C),g&&g(E)},U=E=>{x&&!M&&y&&y(E,C),D&&D(E)};return u.jsxs(he,p({focusRipple:!v,className:N(q.root,r),ref:l,role:"tab","aria-selected":M,disabled:a,onClick:tt,onFocus:U,ownerState:V,tabIndex:M?0:-1},_,{children:[S==="top"||S==="start"?u.jsxs(d.Fragment,{children:[L,w]}):u.jsxs(d.Fragment,{children:[w,L]}),T]}))}),xt=ve,me=At(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Se=At(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function ge(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function xe(t,e,l,s={},r=()=>{}){const{ease:a=ge,duration:v=300}=s;let h=null;const b=e[t];let S=!1;const T=()=>{S=!0},w=y=>{if(S){r(new Error("Animation cancelled"));return}h===null&&(h=y);const g=Math.min(1,(y-h)/v);if(e[t]=a(g)*(l-b)+b,g>=1){requestAnimationFrame(()=>{r(null)});return}requestAnimationFrame(w)};return b===l?(r(new Error("Element already at target position")),T):(requestAnimationFrame(w),T)}const ye=["onChange"],Ce={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Be(t){const{onChange:e}=t,l=at(t,ye),s=d.useRef(),r=d.useRef(null),a=()=>{s.current=r.current.offsetHeight-r.current.clientHeight};return ae(()=>{const v=Ot(()=>{const b=s.current;a(),b!==s.current&&e(s.current)}),h=Dt(r.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:Ce,ref:r},l))}function Te(t){return mt("MuiTabScrollButton",t)}const we=vt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Me=we,Ie=["className","slots","slotProps","direction","orientation","disabled"],Re=t=>{const{classes:e,orientation:l,disabled:s}=t;return gt({root:["root",l,s&&"disabled"]},Te,e)},Ee=O(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,[`&.${Me.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ze=d.forwardRef(function(e,l){var s,r;const a=St({props:e,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:b={},direction:S}=a,T=at(a,Ie),y=Xt().direction==="rtl",g=p({isRtl:y},a),D=Re(g),M=(s=h.StartScrollButtonIcon)!=null?s:me,x=(r=h.EndScrollButtonIcon)!=null?r:Se,X=st({elementType:M,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),C=st({elementType:x,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return u.jsx(Ee,p({component:"div",className:N(D.root,v),ref:l,role:null,ownerState:g,tabIndex:null},T,{children:S==="left"?u.jsx(M,p({},X)):u.jsx(x,p({},C))}))}),We=ze;function Pe(t){return mt("MuiTabs",t)}const ke=vt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ht=ke,Ne=["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,r=l(t,e);for(;r;){if(r===t.firstChild){if(s)return;s=!0}const a=r.disabled||r.getAttribute("aria-disabled")==="true";if(!r.hasAttribute("tabindex")||a)r=l(t,r);else{r.focus();return}}},$e=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:r,scrollableY:a,centered:v,scrollButtonsHideMobile:h,classes:b}=t;return gt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",r&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[r&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Pe,b)},Le=O("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"}}})),Fe=O("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"})),je=O("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"})),He=O("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})),Ae=O(Be)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Lt={},Oe=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTabs"}),r=Xt(),a=r.direction==="rtl",{"aria-label":v,"aria-labelledby":h,action:b,centered:S=!1,children:T,className:w,component:y="div",allowScrollButtonsMobile:g=!1,indicatorColor:D="primary",onChange:M,orientation:x="horizontal",ScrollButtonComponent:X=We,scrollButtons:C="auto",selectionFollowsFocus:it,slots:_={},slotProps:V={},TabIndicatorProps:q={},TabScrollButtonProps:L={},textColor:tt="primary",value:U,variant:E="standard",visibleScrollbar:ct=!1}=s,Yt=at(s,Ne),I=E==="scrollable",B=x==="vertical",G=B?"scrollTop":"scrollLeft",et=B?"top":"left",ot=B?"bottom":"right",dt=B?"clientHeight":"clientWidth",Q=B?"height":"width",F=p({},s,{component:y,allowScrollButtonsMobile:g,indicatorColor:D,orientation:x,vertical:B,scrollButtons:C,textColor:tt,variant:E,visibleScrollbar:ct,fixed:!I,hideScrollbar:I&&!ct,scrollableX:I&&!B,scrollableY:I&&B,centered:S&&!I,scrollButtonsHideMobile:!g}),P=$e(F),Kt=st({elementType:_.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:F}),Vt=st({elementType:_.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:F}),[Ct,Gt]=d.useState(!1),[j,Bt]=d.useState(Lt),[Tt,Qt]=d.useState(!1),[wt,Jt]=d.useState(!1),[Mt,Zt]=d.useState(!1),[It,te]=d.useState({overflow:"hidden",scrollbarWidth:0}),Rt=new Map,z=d.useRef(null),H=d.useRef(null),Et=()=>{const o=z.current;let n;if(o){const i=o.getBoundingClientRect();n={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:de(o,r.direction),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&U!==!1){const i=H.current.children;if(i.length>0){const f=i[Rt.get(U)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:n,tabMeta:c}},J=ft(()=>{const{tabsMeta:o,tabMeta:n}=Et();let c=0,i;if(B)i="top",n&&o&&(c=n.top-o.top+o.scrollTop);else if(i=a?"right":"left",n&&o){const m=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(n[i]-o[i]+m)}const f={[i]:c,[Q]:n?n[Q]:0};if(isNaN(j[i])||isNaN(j[Q]))Bt(f);else{const m=Math.abs(j[i]-f[i]),R=Math.abs(j[Q]-f[Q]);(m>=1||R>=1)&&Bt(f)}}),ut=(o,{animation:n=!0}={})=>{n?xe(G,z.current,o,{duration:r.transitions.duration.standard}):z.current[G]=o},zt=o=>{let n=z.current[G];B?n+=o:(n+=o*(a?-1:1),n*=a&&_t()==="reverse"?-1:1),ut(n)},Wt=()=>{const o=z.current[dt];let n=0;const c=Array.from(H.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(n+f[dt]>o){i===0&&(n=o);break}n+=f[dt]}return n},ee=()=>{zt(-1*Wt())},oe=()=>{zt(Wt())},le=d.useCallback(o=>{te({overflow:null,scrollbarWidth:o})},[]),re=()=>{const o={};o.scrollbarSizeListener=I?u.jsx(Ae,{onChange:le,className:N(P.scrollableX,P.hideScrollbar)}):null;const c=I&&(C==="auto"&&(Tt||wt)||C===!0);return o.scrollButtonStart=c?u.jsx(X,p({slots:{StartScrollButtonIcon:_.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Kt},orientation:x,direction:a?"right":"left",onClick:ee,disabled:!Tt},L,{className:N(P.scrollButtons,L.className)})):null,o.scrollButtonEnd=c?u.jsx(X,p({slots:{EndScrollButtonIcon:_.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Vt},orientation:x,direction:a?"left":"right",onClick:oe,disabled:!wt},L,{className:N(P.scrollButtons,L.className)})):null,o},Pt=ft(o=>{const{tabsMeta:n,tabMeta:c}=Et();if(!(!c||!n)){if(c[et]<n[et]){const i=n[G]+(c[et]-n[et]);ut(i,{animation:o})}else if(c[ot]>n[ot]){const i=n[G]+(c[ot]-n[ot]);ut(i,{animation:o})}}}),lt=ft(()=>{I&&C!==!1&&Zt(!Mt)});d.useEffect(()=>{const o=Ot(()=>{z.current&&J()});let n;const c=m=>{m.forEach(R=>{R.removedNodes.forEach(Z=>{var k;(k=n)==null||k.unobserve(Z)}),R.addedNodes.forEach(Z=>{var k;(k=n)==null||k.observe(Z)})}),o(),lt()},i=Dt(z.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(n=new ResizeObserver(o),Array.from(H.current.children).forEach(m=>{n.observe(m)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(H.current,{childList:!0})),()=>{var m,R;o.clear(),i.removeEventListener("resize",o),(m=f)==null||m.disconnect(),(R=n)==null||R.disconnect()}},[J,lt]),d.useEffect(()=>{const o=Array.from(H.current.children),n=o.length;if(typeof IntersectionObserver<"u"&&n>0&&I&&C!==!1){const c=o[0],i=o[n-1],f={root:z.current,threshold:.99},m=pt=>{Qt(!pt[0].isIntersecting)},R=new IntersectionObserver(m,f);R.observe(c);const Z=pt=>{Jt(!pt[0].isIntersecting)},k=new IntersectionObserver(Z,f);return k.observe(i),()=>{R.disconnect(),k.disconnect()}}},[I,C,Mt,T==null?void 0:T.length]),d.useEffect(()=>{Gt(!0)},[]),d.useEffect(()=>{J()}),d.useEffect(()=>{Pt(Lt!==j)},[Pt,j]),d.useImperativeHandle(b,()=>({updateIndicator:J,updateScrollButtons:lt}),[J,lt]);const kt=u.jsx(He,p({},q,{className:N(P.indicator,q.className),ownerState:F,style:p({},j,q.style)}));let rt=0;const ne=d.Children.map(T,o=>{if(!d.isValidElement(o))return null;const n=o.props.value===void 0?rt:o.props.value;Rt.set(n,rt);const c=n===U;return rt+=1,d.cloneElement(o,p({fullWidth:E==="fullWidth",indicator:c&&!Ct&&kt,selected:c,selectionFollowsFocus:it,onChange:M,textColor:tt,value:n},rt===1&&U===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),se=o=>{const n=H.current,c=ie(n).activeElement;if(c.getAttribute("role")!=="tab")return;let f=x==="horizontal"?"ArrowLeft":"ArrowUp",m=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(f="ArrowRight",m="ArrowLeft"),o.key){case f:o.preventDefault(),nt(n,c,$t);break;case m:o.preventDefault(),nt(n,c,Nt);break;case"Home":o.preventDefault(),nt(n,null,Nt);break;case"End":o.preventDefault(),nt(n,null,$t);break}},bt=re();return u.jsxs(Le,p({className:N(P.root,w),ownerState:F,ref:l,as:y},Yt,{children:[bt.scrollButtonStart,bt.scrollbarSizeListener,u.jsxs(Fe,{className:P.scroller,ownerState:F,style:{overflow:It.overflow,[B?`margin${a?"Left":"Right"}`:"marginBottom"]:ct?void 0:-It.scrollbarWidth},ref:z,children:[u.jsx(je,{"aria-label":v,"aria-labelledby":h,"aria-orientation":x==="vertical"?"vertical":null,className:P.flexContainer,ownerState:F,onKeyDown:se,ref:H,role:"tablist",children:ne}),Ct&&kt]}),bt.scrollButtonEnd]}))}),yt=Oe,Ft="index",K={tabs:`${Ft}-tabs`,tab:`${Ft}-tab`},De=ce(yt)(({theme:t})=>({[`& .${K.tabs}`]:{},[`& .${K.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:(r,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:$.backgroundsBgComponent,padding:.5,display:"inline-flex",columnGap:.25},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:$.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:$.lineBorderBase,color:$.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(r=>u.jsx(xt,{className:K.tab,value:r.value,label:r.label,icon:r.icon||null},r.value))})}qt.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function Ut({tabs:t,current:e,onChange:l,...s}){return u.jsx(yt,{scrollButtons:"auto",value:e,onChange:(r,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:$.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:$.foregroundsFgSubtile,fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:$.foregroundsFgBase}},".MuiTabs-indicator":{height:"1px",backgroundColor:$.foregroundsFgBase},...s.sx},children:t.map(r=>u.jsx(xt,{className:K.tab,value:r.value,label:r.label,icon:r.icon||null},r.value))})}Ut.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function Xe({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(Ut,{...s,tabs:t,current:e,onChange:l}):u.jsx(De,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(r,a)=>l(a),indicatorColor:"primary",...s,className:[K.tabs,s.className||""].join(" "),children:t.map(r=>u.jsx(xt,{className:K.tab,value:r.value,label:r.label,icon:r.icon||null},r.value))})}Xe.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};export{Se as K,Xe as T,me as a,yt as b,xt as c,ht as t};
@@ -1,4 +1,4 @@
1
- import{aT as l}from"./index-D7dMTham.js";var c={exports:{}};/*!
1
+ import{aT as l}from"./index-h3sraykP.js";var c={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
@@ -1 +1 @@
1
- import{aA as S,aB as x,aC as d,aD as r,aF as e,bZ as k,df as y,dg as C,r as m,az as M,aE as z,j as s,aH as j,aI as R,bQ as B,P as T}from"./index-D7dMTham.js";import{a as E,F as P}from"./FormControlLabel-h1hvXlPm.js";function D(a){return x("MuiSwitch",a)}const I=S("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),t=I,N=["className","color","edge","size","sx"],_=a=>{const{classes:o,edge:i,size:c,color:p,checked:u,disabled:h}=a,g={root:["root",i&&`edge${r(i)}`,`size${r(c)}`],switchBase:["switchBase",`color${r(p)}`,u&&"checked",h&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},b=R(g,D,o);return e({},o,b)},A=d("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(a,o)=>{const{ownerState:i}=a;return[o.root,i.edge&&o[`edge${r(i.edge)}`],o[`size${r(i.size)}`]]}})(({ownerState:a})=>e({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"}},a.edge==="start"&&{marginLeft:-8},a.edge==="end"&&{marginRight:-8},a.size==="small"&&{width:40,height:24,padding:7,[`& .${t.thumb}`]:{width:16,height:16},[`& .${t.switchBase}`]:{padding:4,[`&.${t.checked}`]:{transform:"translateX(16px)"}}})),O=d(E,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(a,o)=>{const{ownerState:i}=a;return[o.switchBase,{[`& .${t.input}`]:o.input},i.color!=="default"&&o[`color${r(i.color)}`]]}})(({theme:a})=>({position:"absolute",top:0,left:0,zIndex:1,color:a.vars?a.vars.palette.Switch.defaultColor:`${a.palette.mode==="light"?a.palette.common.white:a.palette.grey[300]}`,transition:a.transitions.create(["left","transform"],{duration:a.transitions.duration.shortest}),[`&.${t.checked}`]:{transform:"translateX(20px)"},[`&.${t.disabled}`]:{color:a.vars?a.vars.palette.Switch.defaultDisabledColor:`${a.palette.mode==="light"?a.palette.grey[100]:a.palette.grey[600]}`},[`&.${t.checked} + .${t.track}`]:{opacity:.5},[`&.${t.disabled} + .${t.track}`]:{opacity:a.vars?a.vars.opacity.switchTrackDisabled:`${a.palette.mode==="light"?.12:.2}`},[`& .${t.input}`]:{left:"-100%",width:"300%"}}),({theme:a,ownerState:o})=>e({"&:hover":{backgroundColor:a.vars?`rgba(${a.vars.palette.action.activeChannel} / ${a.vars.palette.action.hoverOpacity})`:k(a.palette.action.active,a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},o.color!=="default"&&{[`&.${t.checked}`]:{color:(a.vars||a).palette[o.color].main,"&:hover":{backgroundColor:a.vars?`rgba(${a.vars.palette[o.color].mainChannel} / ${a.vars.palette.action.hoverOpacity})`:k(a.palette[o.color].main,a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${t.disabled}`]:{color:a.vars?a.vars.palette.Switch[`${o.color}DisabledColor`]:`${a.palette.mode==="light"?y(a.palette[o.color].main,.62):C(a.palette[o.color].main,.55)}`}},[`&.${t.checked} + .${t.track}`]:{backgroundColor:(a.vars||a).palette[o.color].main}})),U=d("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(a,o)=>o.track})(({theme:a})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:a.transitions.create(["opacity","background-color"],{duration:a.transitions.duration.shortest}),backgroundColor:a.vars?a.vars.palette.common.onBackground:`${a.palette.mode==="light"?a.palette.common.black:a.palette.common.white}`,opacity:a.vars?a.vars.opacity.switchTrack:`${a.palette.mode==="light"?.38:.3}`})),F=d("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(a,o)=>o.thumb})(({theme:a})=>({boxShadow:(a.vars||a).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),L=m.forwardRef(function(o,i){const c=M({props:o,name:"MuiSwitch"}),{className:p,color:u="primary",edge:h=!1,size:g="medium",sx:b}=c,$=z(c,N),l=e({},c,{color:u,edge:h,size:g}),n=_(l),w=s.jsx(F,{className:n.thumb,ownerState:l});return s.jsxs(A,{className:j(n.root,p),sx:b,ownerState:l,children:[s.jsx(O,e({type:"checkbox",icon:w,checkedIcon:w,ref:i,ownerState:l},$,{classes:e({},n,{root:n.switchBase})})),s.jsx(U,{className:n.track,ownerState:l})]})}),V=L,v=B(a=>s.jsx(V,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...a}))(({theme:a})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:a.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:a.palette.mode==="light"?a.palette.grey[100]:a.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:a.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:a.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:a.transitions.create(["background-color"],{duration:500})}}));function f({labelProps:a,...o}){return a?s.jsx(P,{control:s.jsx(v,{...o}),...a}):s.jsx(v,{...o})}f.propTypes={labelProps:T.object};f.defaultProps={labelProps:null};export{f as S,V as a};
1
+ import{aA as S,aB as x,aC as d,aD as r,aF as e,bZ as k,de as y,df as C,r as m,az as M,aE as z,j as s,aH as j,aI as R,bQ as B,P as T}from"./index-h3sraykP.js";import{a as E,F as P}from"./FormControlLabel-IB1UGelR.js";function D(a){return x("MuiSwitch",a)}const I=S("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),t=I,N=["className","color","edge","size","sx"],_=a=>{const{classes:o,edge:i,size:c,color:p,checked:u,disabled:h}=a,g={root:["root",i&&`edge${r(i)}`,`size${r(c)}`],switchBase:["switchBase",`color${r(p)}`,u&&"checked",h&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},b=R(g,D,o);return e({},o,b)},A=d("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(a,o)=>{const{ownerState:i}=a;return[o.root,i.edge&&o[`edge${r(i.edge)}`],o[`size${r(i.size)}`]]}})(({ownerState:a})=>e({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"}},a.edge==="start"&&{marginLeft:-8},a.edge==="end"&&{marginRight:-8},a.size==="small"&&{width:40,height:24,padding:7,[`& .${t.thumb}`]:{width:16,height:16},[`& .${t.switchBase}`]:{padding:4,[`&.${t.checked}`]:{transform:"translateX(16px)"}}})),O=d(E,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(a,o)=>{const{ownerState:i}=a;return[o.switchBase,{[`& .${t.input}`]:o.input},i.color!=="default"&&o[`color${r(i.color)}`]]}})(({theme:a})=>({position:"absolute",top:0,left:0,zIndex:1,color:a.vars?a.vars.palette.Switch.defaultColor:`${a.palette.mode==="light"?a.palette.common.white:a.palette.grey[300]}`,transition:a.transitions.create(["left","transform"],{duration:a.transitions.duration.shortest}),[`&.${t.checked}`]:{transform:"translateX(20px)"},[`&.${t.disabled}`]:{color:a.vars?a.vars.palette.Switch.defaultDisabledColor:`${a.palette.mode==="light"?a.palette.grey[100]:a.palette.grey[600]}`},[`&.${t.checked} + .${t.track}`]:{opacity:.5},[`&.${t.disabled} + .${t.track}`]:{opacity:a.vars?a.vars.opacity.switchTrackDisabled:`${a.palette.mode==="light"?.12:.2}`},[`& .${t.input}`]:{left:"-100%",width:"300%"}}),({theme:a,ownerState:o})=>e({"&:hover":{backgroundColor:a.vars?`rgba(${a.vars.palette.action.activeChannel} / ${a.vars.palette.action.hoverOpacity})`:k(a.palette.action.active,a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},o.color!=="default"&&{[`&.${t.checked}`]:{color:(a.vars||a).palette[o.color].main,"&:hover":{backgroundColor:a.vars?`rgba(${a.vars.palette[o.color].mainChannel} / ${a.vars.palette.action.hoverOpacity})`:k(a.palette[o.color].main,a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${t.disabled}`]:{color:a.vars?a.vars.palette.Switch[`${o.color}DisabledColor`]:`${a.palette.mode==="light"?y(a.palette[o.color].main,.62):C(a.palette[o.color].main,.55)}`}},[`&.${t.checked} + .${t.track}`]:{backgroundColor:(a.vars||a).palette[o.color].main}})),U=d("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(a,o)=>o.track})(({theme:a})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:a.transitions.create(["opacity","background-color"],{duration:a.transitions.duration.shortest}),backgroundColor:a.vars?a.vars.palette.common.onBackground:`${a.palette.mode==="light"?a.palette.common.black:a.palette.common.white}`,opacity:a.vars?a.vars.opacity.switchTrack:`${a.palette.mode==="light"?.38:.3}`})),F=d("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(a,o)=>o.thumb})(({theme:a})=>({boxShadow:(a.vars||a).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),L=m.forwardRef(function(o,i){const c=M({props:o,name:"MuiSwitch"}),{className:p,color:u="primary",edge:h=!1,size:g="medium",sx:b}=c,$=z(c,N),l=e({},c,{color:u,edge:h,size:g}),n=_(l),w=s.jsx(F,{className:n.thumb,ownerState:l});return s.jsxs(A,{className:j(n.root,p),sx:b,ownerState:l,children:[s.jsx(O,e({type:"checkbox",icon:w,checkedIcon:w,ref:i,ownerState:l},$,{classes:e({},n,{root:n.switchBase})})),s.jsx(U,{className:n.track,ownerState:l})]})}),V=L,v=B(a=>s.jsx(V,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...a}))(({theme:a})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:a.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:a.palette.mode==="light"?a.palette.grey[100]:a.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:a.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:a.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:a.transitions.create(["background-color"],{duration:500})}}));function f({labelProps:a,...o}){return a?s.jsx(P,{control:s.jsx(v,{...o}),...a}):s.jsx(v,{...o})}f.propTypes={labelProps:T.object};f.defaultProps={labelProps:null};export{f as S,V as a};
@@ -1,4 +1,4 @@
1
- import{O as je,Q as De,j as n,P as U,R as pe,br as ts,r as B,d0 as ns,B as p,d2 as Sn,bi as Gn,ax as Ie,S as dt,u as xe,aY as fe,W as ae,o as te,aZ as me,x as Se,fI as as,aX as ss,y as Wn,bK as rs,T as Nn,fJ as is,bn as os,ao as ze,a5 as ne,bq as cs,U as he,fw as ls,dw as Le,b8 as Ot,b2 as Pe,fK as us,fL as ds,aT as He,h as K,H as Ge,bD as le,dV as fs,e8 as rt,f as $e,bG as Ht,b3 as qn,bo as We,a3 as Gt,fM as gs,fN as ps,fO as ms,fP as hs,a as vn,e7 as bs,b as Be,aL as _s,aM as Es,fQ as xs,fg as ys,aS as Ss,c as Lt,fR as It,dd as Ns,c0 as Yn,bQ as vs,bP as ve,cb as Cs,fS as Zn,v as As}from"./index-D7dMTham.js";import{I as Rs}from"./iframe--DusxskT.js";import{I as Ts,F as Mt,d as ws,L as Os,a as Ls}from"./Edit-kLYyZhkN.js";import{B as Vn,d as Xn}from"./ChevronRight-WBXU5ohU.js";import{d as Jn}from"./ExpandMore-WMRfZEqP.js";import{T as Wt}from"./index-e_QDKVxH.js";import{u as qt,a as Is,b as Ms,c as js}from"./dashboard-VBA06Iwv.js";import{d as Ds}from"./Loop-nbHXfT5v.js";import{d as ks}from"./Done-EASqrGRr.js";import{F as Ps,R as Bs,L as Et}from"./logo-uploader-1AyeNZ0q.js";import{a as Cn,A as Fs,u as Yt,C as de}from"./index.esm-t8g2Slly.js";import{T as ue,F as $s}from"./TextField-qykW02zP.js";import{e as Us}from"./mode-Ip8p6ZjP.js";import{w as Qn,P as Ks}from"./permission-RZL9x2kU.js";import{C as ea,a as zs}from"./confirm-uc1Y33uD.js";import{f as Zt,D as Hs,A as Gs}from"./index-k3rNNowK.js";import{_ as Ws}from"./useSetState-GR8fLZaJ.js";import{u as qs}from"./session-njvv4tO8.js";import{C as Ys}from"./click-to-copy-JQ1hcSA6.js";import{F as it,S as Zs}from"./FormControlLabel-h1hvXlPm.js";import{C as ta}from"./Checkbox-LXon8OOU.js";import{a as ot}from"./index-MW5XAWzK.js";import{F as Ee}from"./FormControl-lU-7UxhW.js";import{d as Vs}from"./Launch-JkzTfHAo.js";import{d as Xs}from"./EditIcon-n1Oun3aR.js";import{A as jt}from"./config-rPSf2CrR.js";import{S as Js}from"./switch-control-6WrpIwmw.js";import{S as Qs}from"./Slider-onjTAkn6.js";import{D as er}from"./index-lTugDaC3.js";import{I as tr}from"./index-sfLTpxKS.js";import"./index-FoQ3Q1RE.js";import{i as na}from"./index-vL9pFI1M.js";import{G as xt}from"./Grid-O2eaJZIs.js";import"./index-oIFGwfmM.js";import"./Toolbar-U75uViNg.js";import"./Hidden-8riRi-7w.js";import"./MoreHoriz-Ob-PdXvr.js";import"./ArrowDropDown-wCnewKKe.js";import"./ButtonGroup-W_ITJpp0.js";import"./Avatar-HEnEOozL.js";import"./useSlot-VejfTAjg.js";import"./MoreVert-JPy3cIzD.js";import"./useLocalStorage-slHq8u6M.js";import"./PlayArrow-lb0G2com.js";import"./Alert-N84_KD-3.js";import"./RadioGroup-Pc6M6-Ta.js";import"./FormGroup-hZDn5b3E.js";import"./useFormControl-bdbmye_j.js";import"./spaces-QwLXvIVF.js";import"./index-fjKBcmH5.js";import"./api-JlWJcBe_.js";import"./Link-4swwBDUU.js";import"./fallback-kvbxeOAh.js";import"./index-1RYLvd7a.js";import"./ListItem-DSIyD39f.js";import"./selector-g3wjJR3o.js";import"./index-HlcsGwyy.js";import"./Select-zWmcTNCa.js";import"./InputLabel-nZyS3xY_.js";import"./useAsync-q9mkCv9v.js";import"./FilterList-L4dRV2kI.js";import"./TableRow-sJQHVDVk.js";import"./toPropertyKey-NzAT2yhV.js";import"./LastPage--aACjaLx.js";import"./index-mjo2fUfh.js";import"./redux-XOuz_cVf.js";import"./Search-uAWnirME.js";var Vt={},nr=De;Object.defineProperty(Vt,"__esModule",{value:!0});var aa=Vt.default=void 0,ar=nr(je()),sr=n;aa=Vt.default=(0,ar.default)((0,sr.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 Xt={},rr=De;Object.defineProperty(Xt,"__esModule",{value:!0});var sa=Xt.default=void 0,ir=rr(je()),or=n;sa=Xt.default=(0,ir.default)((0,or.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 Jt={},cr=De;Object.defineProperty(Jt,"__esModule",{value:!0});var ra=Jt.default=void 0,lr=cr(je()),ur=n;ra=Jt.default=(0,lr.default)((0,ur.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 Qt={},dr=De;Object.defineProperty(Qt,"__esModule",{value:!0});var ia=Qt.default=void 0,fr=dr(je()),gr=n;ia=Qt.default=(0,fr.default)((0,gr.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 en({label:e,disabled:t,required:a,initialValue:s,onChange:u,style:c,onSubmit:o,triggers:r,options:i,formatterBeforeSubmit:l,helperText:d,placeholder:E,renderImage:m,renderLabel:_,filterKeys:C,noEmpty:A,...T}){const[$,f]=B.useState(!1),[h,N]=B.useState(!1),[y,L]=ns.useState(""),[M,F]=B.useState(s),[R,b]=B.useState(M),j=B.useMemo(()=>{if(!i)return{};const k={};return i.forEach(g=>{k[g.code]=g}),k},[i]),S=()=>{if(!i)return[];if(!y)return i.map(g=>g.code);const k=new RegExp(y.toLowerCase());return i.filter(g=>{var x;for(let I=0;I<C.length;I++){const z=C[I];if(k.test((x=g[z])==null?void 0:x.toLowerCase()))return!0}return!1}).map(g=>g.code)},w=async()=>{N(!0);try{await o(typeof l=="function"?l(R):R)===!1?b(M):A&&!R.length?(b(s),F(s)):(b(R),F(R))}catch{b(M)}finally{N(!1),f(!1)}},P=(k,g)=>{if(!Array.isArray(g)){b([]),u([]);return}const x=g.filter(I=>j[I]);if(!x.length){b([]),u([]);return}b(x),u(x)},q=$?n.jsx(Fs,{options:i,value:R,onChange:P,inputValue:y,onInputChange:(k,g)=>{L(g)},PopperComponent:mr,fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:S,getOptionLabel:k=>{var g;return(g=j[k])==null?void 0:g.name},renderInput:k=>n.jsx(ue,{...k,label:"",placeholder:E}),renderOption:(k,g)=>{var I;const x=R.indexOf(g)!==-1;return B.createElement(pr,{component:"li",...k,key:g},m(j[g]||{}),n.jsx(p,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:x?"700":"normal"},children:_(g,j[g])||((I=j[g])==null?void 0:I.name)}),n.jsx(p,{component:Sn,sx:{opacity:.5,width:18,height:18},style:{visibility:x?"visible":"hidden"}}))},...T}):n.jsx(p,{px:1,className:"form-item-input slot",style:{whiteSpace:"pre-wrap"},children:R.filter(k=>i.some(g=>g.code===k)).map(k=>n.jsx(Gn,{label:i.find(g=>g.code===k).name,style:{marginRight:8},size:"small"},k))});return n.jsx(Ps,{className:"form",style:c,children:n.jsxs(p,{className:"form-item",children:[n.jsxs(p,{className:"form-item-label",children:[e,a&&n.jsx(Bs,{})]}),n.jsxs(p,{className:"form-item-body",children:[n.jsx(p,{className:"form-item-input",children:q}),n.jsx(p,{className:"form-item-action",children:$?n.jsxs(n.Fragment,{children:[n.jsx(Ie,{"data-cy":"schema-form-item-confirm",onClick:w,disabled:t||h,size:"large",children:h?n.jsx(dt,{size:24}):n.jsx(ks,{})}),n.jsx(Ie,{"data-cy":"schema-form-item-cancel",onClick:()=>{b(M),f(!1)},disabled:t||h,size:"large",children:n.jsx(Sn,{})})]}):n.jsx(Ts,{triggers:r,onEnterEdit:()=>f(!0),disabled:t})})]}),$&&d&&n.jsx($s,{children:d})]})})}en.propTypes={style:U.object,onSubmit:U.func,onChange:U.func,label:U.string,initialValue:U.string,required:U.bool,disabled:U.bool,triggers:U.array,options:U.array,helperText:U.string,formatterBeforeSubmit:U.func,placeholder:U.string,renderImage:U.func,filterKeys:U.arrayOf(U.string),noEmpty:U.bool,renderLabel:U.func};en.defaultProps={style:{},onSubmit:()=>{},onChange:()=>{},label:"",initialValue:"",required:!1,disabled:!1,triggers:[],options:[],helperText:"",formatterBeforeSubmit:e=>e.join(","),placeholder:"",filterKeys:["name"],renderImage:()=>null,renderLabel:(e,t)=>"",noEmpty:!1};const pr=pe.div`
1
+ import{O as je,Q as De,j as n,P as U,R as pe,br as ts,r as B,c$ as ns,B as p,d1 as Sn,bi as Gn,ax as Ie,S as dt,u as xe,aY as fe,W as ae,o as te,aZ as me,x as Se,fH as as,aX as ss,y as Wn,bK as rs,T as Nn,fI as is,bn as os,ao as ze,a5 as ne,bq as cs,U as he,fv as ls,dv as Le,b8 as Ot,b2 as Pe,fJ as us,fK as ds,aT as He,h as K,H as Ge,bD as le,dU as fs,e7 as rt,f as $e,bG as Ht,b3 as qn,bo as We,a3 as Gt,fL as gs,fM as ps,fN as ms,fO as hs,a as vn,e6 as bs,b as Be,aL as _s,aM as Es,fP as xs,ff as ys,aS as Ss,c as Lt,fQ as It,dc as Ns,c0 as Yn,bQ as vs,bP as ve,cb as Cs,fR as Zn,v as As}from"./index-h3sraykP.js";import{I as Rs}from"./iframe-ONoIb5Ld.js";import{I as Ts,F as Mt,d as ws,L as Os,a as Ls}from"./Edit-PrUqpKMd.js";import{B as Vn,d as Xn}from"./ChevronRight-rNtFYiFJ.js";import{d as Jn}from"./ExpandMore-mPB2YhQW.js";import{T as Wt}from"./index-tgeomfph.js";import{u as qt,a as Is,b as Ms,c as js}from"./dashboard-lfeS3PHD.js";import{d as Ds}from"./Loop-pIMsIdOf.js";import{d as ks}from"./Done-aE9zL0eo.js";import{F as Ps,R as Bs,L as Et}from"./logo-uploader-lr_KNn1n.js";import{a as Cn,A as Fs,u as Yt,C as de}from"./index.esm-mmNeQL3L.js";import{T as ue,F as $s}from"./TextField-MjgooqCE.js";import{e as Us}from"./mode-Ip8p6ZjP.js";import{w as Qn,P as Ks}from"./permission-TC2XuZxZ.js";import{C as ea,a as zs}from"./confirm-0S5-fLrP.js";import{f as Zt,D as Hs,A as Gs}from"./index-kec5P_K3.js";import{_ as Ws}from"./useSetState-uLpj1Imf.js";import{u as qs}from"./session-saX7tj70.js";import{C as Ys}from"./click-to-copy-YklzK0Hv.js";import{F as it,S as Zs}from"./FormControlLabel-IB1UGelR.js";import{C as ta}from"./Checkbox-DwtPgRKi.js";import{a as ot}from"./index-uTCkX1T7.js";import{F as Ee}from"./FormControl-xoxXEZb8.js";import{d as Vs}from"./Launch-ao8Q4dN4.js";import{d as Xs}from"./EditIcon-hGQhLL2C.js";import{A as jt}from"./config-ih4ovUCC.js";import{S as Js}from"./switch-control-R8F0yUtj.js";import{S as Qs}from"./Slider-ZYScfJRe.js";import{D as er}from"./index-I2EzgO7Z.js";import{I as tr}from"./index-dB9OPXNf.js";import"./index-GiwmDJzT.js";import{i as na}from"./index-BHILRSlq.js";import{G as xt}from"./Grid-f-Vjghs3.js";import"./index-du685dM1.js";import"./Toolbar-RrDogDmV.js";import"./Hidden-8CqxHQ_X.js";import"./MoreHoriz-9C_wgVFn.js";import"./ArrowDropDown-7i0JqbX_.js";import"./ButtonGroup-ZMhEcWBm.js";import"./Avatar-AdxEikb8.js";import"./useSlot-Q6IQEGLk.js";import"./MoreVert-mTBZGLTb.js";import"./useLocalStorage-G1JtIRyG.js";import"./PlayArrow-OtSiNyvI.js";import"./Alert-2Sc6R3cE.js";import"./RadioGroup-hg8pxuHG.js";import"./FormGroup-Jh-Io1Z4.js";import"./useFormControl-FRmGHds5.js";import"./spaces-vhs_9Akk.js";import"./index-fjKBcmH5.js";import"./api-XelZ0ExO.js";import"./Link-nFW0GxuM.js";import"./fallback-M3gwngjJ.js";import"./index-GdGOjew5.js";import"./ListItem-5kuUsdPN.js";import"./selector-0eV_-_uZ.js";import"./index-uEGsaD3M.js";import"./Select-VWgcVd68.js";import"./InputLabel-dTvisMpt.js";import"./useAsync-si7IPUu0.js";import"./FilterList-tMCX175q.js";import"./TableRow-qSX4kYER.js";import"./toPropertyKey-NzAT2yhV.js";import"./LastPage-bzaKxcr1.js";import"./index-l5lz-7EK.js";import"./redux-XOuz_cVf.js";import"./Search-Xmr9iNtX.js";var Vt={},nr=De;Object.defineProperty(Vt,"__esModule",{value:!0});var aa=Vt.default=void 0,ar=nr(je()),sr=n;aa=Vt.default=(0,ar.default)((0,sr.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 Xt={},rr=De;Object.defineProperty(Xt,"__esModule",{value:!0});var sa=Xt.default=void 0,ir=rr(je()),or=n;sa=Xt.default=(0,ir.default)((0,or.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 Jt={},cr=De;Object.defineProperty(Jt,"__esModule",{value:!0});var ra=Jt.default=void 0,lr=cr(je()),ur=n;ra=Jt.default=(0,lr.default)((0,ur.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 Qt={},dr=De;Object.defineProperty(Qt,"__esModule",{value:!0});var ia=Qt.default=void 0,fr=dr(je()),gr=n;ia=Qt.default=(0,fr.default)((0,gr.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 en({label:e,disabled:t,required:a,initialValue:s,onChange:u,style:c,onSubmit:o,triggers:r,options:i,formatterBeforeSubmit:l,helperText:d,placeholder:E,renderImage:m,renderLabel:_,filterKeys:C,noEmpty:A,...T}){const[$,f]=B.useState(!1),[h,N]=B.useState(!1),[y,L]=ns.useState(""),[M,F]=B.useState(s),[R,b]=B.useState(M),j=B.useMemo(()=>{if(!i)return{};const k={};return i.forEach(g=>{k[g.code]=g}),k},[i]),S=()=>{if(!i)return[];if(!y)return i.map(g=>g.code);const k=new RegExp(y.toLowerCase());return i.filter(g=>{var x;for(let I=0;I<C.length;I++){const z=C[I];if(k.test((x=g[z])==null?void 0:x.toLowerCase()))return!0}return!1}).map(g=>g.code)},w=async()=>{N(!0);try{await o(typeof l=="function"?l(R):R)===!1?b(M):A&&!R.length?(b(s),F(s)):(b(R),F(R))}catch{b(M)}finally{N(!1),f(!1)}},P=(k,g)=>{if(!Array.isArray(g)){b([]),u([]);return}const x=g.filter(I=>j[I]);if(!x.length){b([]),u([]);return}b(x),u(x)},q=$?n.jsx(Fs,{options:i,value:R,onChange:P,inputValue:y,onInputChange:(k,g)=>{L(g)},PopperComponent:mr,fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:S,getOptionLabel:k=>{var g;return(g=j[k])==null?void 0:g.name},renderInput:k=>n.jsx(ue,{...k,label:"",placeholder:E}),renderOption:(k,g)=>{var I;const x=R.indexOf(g)!==-1;return B.createElement(pr,{component:"li",...k,key:g},m(j[g]||{}),n.jsx(p,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:x?"700":"normal"},children:_(g,j[g])||((I=j[g])==null?void 0:I.name)}),n.jsx(p,{component:Sn,sx:{opacity:.5,width:18,height:18},style:{visibility:x?"visible":"hidden"}}))},...T}):n.jsx(p,{px:1,className:"form-item-input slot",style:{whiteSpace:"pre-wrap"},children:R.filter(k=>i.some(g=>g.code===k)).map(k=>n.jsx(Gn,{label:i.find(g=>g.code===k).name,style:{marginRight:8},size:"small"},k))});return n.jsx(Ps,{className:"form",style:c,children:n.jsxs(p,{className:"form-item",children:[n.jsxs(p,{className:"form-item-label",children:[e,a&&n.jsx(Bs,{})]}),n.jsxs(p,{className:"form-item-body",children:[n.jsx(p,{className:"form-item-input",children:q}),n.jsx(p,{className:"form-item-action",children:$?n.jsxs(n.Fragment,{children:[n.jsx(Ie,{"data-cy":"schema-form-item-confirm",onClick:w,disabled:t||h,size:"large",children:h?n.jsx(dt,{size:24}):n.jsx(ks,{})}),n.jsx(Ie,{"data-cy":"schema-form-item-cancel",onClick:()=>{b(M),f(!1)},disabled:t||h,size:"large",children:n.jsx(Sn,{})})]}):n.jsx(Ts,{triggers:r,onEnterEdit:()=>f(!0),disabled:t})})]}),$&&d&&n.jsx($s,{children:d})]})})}en.propTypes={style:U.object,onSubmit:U.func,onChange:U.func,label:U.string,initialValue:U.string,required:U.bool,disabled:U.bool,triggers:U.array,options:U.array,helperText:U.string,formatterBeforeSubmit:U.func,placeholder:U.string,renderImage:U.func,filterKeys:U.arrayOf(U.string),noEmpty:U.bool,renderLabel:U.func};en.defaultProps={style:{},onSubmit:()=>{},onChange:()=>{},label:"",initialValue:"",required:!1,disabled:!1,triggers:[],options:[],helperText:"",formatterBeforeSubmit:e=>e.join(","),placeholder:"",filterKeys:["name"],renderImage:()=>null,renderLabel:(e,t)=>"",noEmpty:!1};const pr=pe.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  align-items: center;
@@ -0,0 +1,268 @@
1
+ import{P as o,j as n,d7 as z,d8 as Z,d9 as U,bQ as b,G as q,u as _,r as $,da as B,aH as S,bo as ee,B as w,X as W}from"./index-h3sraykP.js";import{E as D}from"./fallback-M3gwngjJ.js";import{R as oe,N as ne}from"./index-du685dM1.js";import{i as te,a as re,b as G,s as ie,u as ae,f as K,g as R,p as se,m as Q,c as le,d as pe,H as de}from"./index-GdGOjew5.js";import{d as ce}from"./ExpandMore-mPB2YhQW.js";import{A as P}from"./Avatar-AdxEikb8.js";function N({icon:e,size:t,sx:r,...a}){const i=[...Array.isArray(r)?r:[r]];if(t&&i.push({width:t,height:t}),a.variant||i.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),te(e))return n.jsx(P,{as:"span",...a,src:e,sx:i});if(re(e)){const u=t?.6*t+4:0;return n.jsx(P,{as:"span",...a,sx:i,children:n.jsx("iconify-icon",{icon:e,height:u||void 0})})}return e&&typeof e=="string"?(i.push({"&.MuiAvatar-root":{display:"inline-flex",...t&&{fontSize:t-2}}}),n.jsx(P,{as:"span",...a,sx:i,children:Array.from(e)[0]})):null}N.propTypes={icon:o.string.isRequired,size:o.number,sx:o.oneOfType([o.array,o.func,o.object])};N.defaultProps={size:null,sx:null};const ue=z();function T({theme:e,children:t}){const r=e?z(e):ue;return n.jsx(Z,{theme:r,children:t})}T.propTypes={children:o.any.isRequired,theme:o.object};T.defaultProps={theme:null};const fe=e=>{if(!(e!=null&&e.length))return{navItems:[],activeId:null};let t=1;const a=Q(e,s=>{var d,c;const p=s.icon?n.jsx(N,{icon:s.icon}):null;if(s.items)return{id:`${t++}`,label:s.title,icon:p,children:s.items};let l={};return((d=s.link)!=null&&d.startsWith("http://")||(c=s.link)!=null&&c.startsWith("https://"))&&(l={target:"_blank",rel:"noreferrer"}),{id:`${t++}`,label:n.jsx("a",{href:s.link,...l,children:s.title}),icon:p,link:s.link}},"items"),i=le(a),u=pe(i.map(s=>s.link));return{navItems:a,activeId:u>=0?i[u].id:null}};function C({meta:e,addons:t,sessionManagerProps:r,homeLink:a,theme:i,hideNavMenu:u,...s}){var h,M;ae();const{locale:p}=_()||{},l=$.useMemo(()=>{const j=Object.assign({},window.blocklet,e);try{return K(j)}catch(J){return console.error("Failed to format blocklet info",J,j),j}},[e]);if(!l.appName)return null;const{appLogo:d,appLogoRect:c,theme:m}=l,f=R((h=l==null?void 0:l.navigation)==null?void 0:h.header,p),y=fe(f),{navItems:g,activeId:k}=y,v=typeof t=="function"?j=>t(j,{navigation:y}):t,x=n.jsx(de,{formattedBlocklet:l,addons:v,sessionManagerProps:r});return n.jsx(T,{theme:i,children:n.jsx(he,{homeLink:a,logo:n.jsx("img",{src:c||d,alt:"logo"}),addons:x,...B(s,["bordered"]),$bordered:s==null?void 0:s.bordered,$bgcolor:(M=m==null?void 0:m.background)==null?void 0:M.header,children:u||!(g!=null&&g.length)?null:({isMobile:j})=>n.jsx(ne,{mode:j?"inline":"horizontal",activeId:k,items:g,className:"header-nav",bgColor:"transparent",textColor:"#777"})})})}C.propTypes={meta:G,addons:o.oneOfType([o.func,o.node]),sessionManagerProps:ie,homeLink:o.string,theme:o.object,hideNavMenu:o.bool};C.defaultProps={meta:{},addons:null,sessionManagerProps:{showRole:!0},homeLink:se,theme:null,hideNavMenu:!1};const he=b(oe)`
2
+ ${({$bgcolor:e})=>`background-color: ${e||"#fff"};`}
3
+ font-family: Inter, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,
4
+ 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
5
+ .header-logo {
6
+ min-width: 44px;
7
+ }
8
+ ${({$bordered:e})=>e?`border-bottom: 1px solid ${q.strokeSep};`:""}
9
+ ${e=>e.theme.breakpoints.down("md")} {
10
+ .header-logo {
11
+ min-width: 32px;
12
+ }
13
+ }
14
+ .header-nav {
15
+ .navmenu-sub .navmenu-item {
16
+ min-width: 80px;
17
+ }
18
+ }
19
+ .header-nav.navmenu--horizontal {
20
+ .navmenu-root > .navmenu-sub,
21
+ .navmenu-root > .navmenu-item {
22
+ padding: 16px 4px;
23
+
24
+ .navmenu-sub-container {
25
+ padding-top: 0;
26
+ }
27
+ }
28
+ .navmenu-item-icon > .MuiAvatar-root,
29
+ .navmenu-sub-icon > .MuiAvatar-root {
30
+ width: 20px;
31
+ height: 20px;
32
+ }
33
+ }
34
+ `,Ae=U(C,{FallbackComponent:D});function F({name:e,logo:t,description:r,...a}){if(!e&&!t&&!r)return null;const i=$.isValidElement(t)?t:n.jsx("img",{src:t,alt:e});return n.jsxs(me,{...a,children:[n.jsxs("div",{children:[t&&n.jsx("div",{className:"footer-brand-logo",children:i}),e&&n.jsx("div",{className:"footer-brand-name",children:e})]}),r&&n.jsx("div",{className:"footer-brand-desc",children:r})]})}F.propTypes={name:o.node,logo:o.node,description:o.string};F.defaultProps={name:"",logo:"",description:""};const me=b("div")`
35
+ display: flex;
36
+ flex-direction: column;
37
+ font-size: 14px;
38
+ a {
39
+ text-decoration: none;
40
+ color: inherit;
41
+ }
42
+ > div:first-of-type {
43
+ display: flex;
44
+ align-items: center;
45
+ }
46
+ .footer-brand-logo {
47
+ display: flex;
48
+ align-items: center;
49
+ margin-right: 16px;
50
+ line-height: 1;
51
+ img,
52
+ svg {
53
+ width: auto;
54
+ height: 44px;
55
+ max-height: 44px;
56
+ }
57
+ }
58
+ .footer-brand-name {
59
+ font-size: 16px;
60
+ font-weight: bold;
61
+ }
62
+ .footer-brand-desc {
63
+ margin-top: 16px;
64
+ }
65
+
66
+ ${e=>e.theme.breakpoints.down("sm")} {
67
+ width: auto;
68
+ }
69
+
70
+ ${e=>e.theme.breakpoints.down("md")} {
71
+ .footer-brand-logo {
72
+ img,
73
+ svg {
74
+ height: 32px;
75
+ max-height: 32px;
76
+ }
77
+ }
78
+ }
79
+ `;function I({links:e,flowLayout:t,...r}){const[a,i]=$.useState(-1);if(!(e!=null&&e.length))return null;const u=e.some(p=>{var l;return(l=p.items)==null?void 0:l.length}),s=({label:p,link:l,icon:d,render:c,props:m})=>{let f=p;return c?f=c({label:p,link:l,props:m}):l&&(f=n.jsx("a",{href:l,"aria-label":`Footer link for ${p}`,...m,children:p})),n.jsxs(n.Fragment,{children:[d&&n.jsx(N,{icon:d,size:20,sx:{mr:.5}}),f]})};return n.jsx(ge,{...r,className:S(r.className,{"footer-links--grouped":u,"footer-links--flow":t}),children:n.jsxs("div",{className:"footer-links-inner",children:[t&&e.map((p,l)=>n.jsx("span",{className:"footer-links-item",children:s(p)},l)),!t&&e.map((p,l)=>{const{items:d}=p,c=l===a;return n.jsxs("div",{className:S("footer-links-group",{"footer-links-group--active":c}),onClick:()=>i(a===l?-1:l),children:[n.jsxs("span",{className:"footer-links-item",children:[s(p),!!(d!=null&&d.length)&&n.jsx("span",{className:"footer-links-group-expand-icon",children:n.jsx(ce,{style:{transform:`rotate(${c?180:0}deg)`}})})]}),!!(d!=null&&d.length)&&n.jsx("div",{className:"footer-links-sub",children:d.map((m,f)=>n.jsx("span",{className:"footer-links-item",children:s(m)},f))})]},l)})]})})}I.propTypes={links:o.arrayOf(o.shape({label:o.string,link:o.string,render:o.func,props:o.object})),flowLayout:o.bool};I.defaultProps={links:[],flowLayout:!1};const ge=b("div")`
80
+ overflow: hidden;
81
+ color: ${e=>e.theme.palette.grey[600]};
82
+ .footer-links-inner {
83
+ display: flex;
84
+ justify-content: space-between;
85
+ margin: 0 -8px;
86
+ }
87
+ .footer-links-group,
88
+ .footer-links-sub {
89
+ display: flex;
90
+ flex-direction: column;
91
+ }
92
+ .footer-links-sub .footer-links-item {
93
+ color: ${e=>e.theme.palette.grey[900]};
94
+ }
95
+ .footer-links-group-expand-icon {
96
+ display: none;
97
+ position: absolute;
98
+ right: 16px;
99
+ top: 50%;
100
+ transform: translate(0, -50%);
101
+ line-height: 1;
102
+ svg {
103
+ width: auto;
104
+ height: 0.75em;
105
+ }
106
+ }
107
+ .footer-links-item {
108
+ display: inline-flex;
109
+ align-items: center;
110
+ position: relative;
111
+ padding: 4px 8px;
112
+ font-size: 14px;
113
+ }
114
+ &.footer-links--grouped {
115
+ .footer-links-group {
116
+ > .footer-links-item {
117
+ font-weight: bold;
118
+ }
119
+ .footer-links-sub {
120
+ margin-top: 8px;
121
+ }
122
+ }
123
+ }
124
+ a {
125
+ display: inline-block;
126
+ max-width: 150px;
127
+ color: inherit;
128
+ text-decoration: none;
129
+ &:hover {
130
+ text-decoration: underline;
131
+ }
132
+ }
133
+
134
+ &.footer-links--flow {
135
+ display: inline-flex;
136
+ .footer-links-inner {
137
+ justify-content: center;
138
+ flex-wrap: wrap;
139
+ margin: 0 -8px;
140
+ .footer-links-item {
141
+ padding: 0 8px;
142
+ }
143
+ .footer-links-item + .footer-links-item::before {
144
+ content: '';
145
+ position: absolute;
146
+ left: 0;
147
+ top: 50%;
148
+ transform: translate(0, -50%);
149
+ height: 1em;
150
+ border-left: 1px solid ${e=>e.theme.palette.grey[400]};
151
+ }
152
+ }
153
+ }
154
+
155
+ ${e=>e.theme.breakpoints.down("md")} {
156
+ .footer-links-inner {
157
+ flex-direction: column;
158
+ margin: 0;
159
+ }
160
+ .footer-links-sub {
161
+ display: none;
162
+ }
163
+ .footer-links-group {
164
+ position: relative;
165
+ padding: 12px 0;
166
+ .footer-links-item .footer-links-group-expand-icon {
167
+ display: inline-block;
168
+ }
169
+ }
170
+ .footer-links-group + .footer-links-group {
171
+ border-top: 1px solid ${e=>e.theme.palette.grey[200]};
172
+ }
173
+ .footer-links-group--active {
174
+ .footer-links-sub {
175
+ display: flex;
176
+ flex-direction: row;
177
+ flex-wrap: wrap;
178
+ .footer-links-item {
179
+ flex: 0 0 50%;
180
+ }
181
+ }
182
+ }
183
+ .footer-links-item {
184
+ padding-left: 0;
185
+ padding-right: 0;
186
+ font-size: 13px;
187
+ }
188
+ &.footer-links--grouped {
189
+ .footer-links-group {
190
+ > .footer-links-item {
191
+ font-size: 14px;
192
+ }
193
+ }
194
+ }
195
+
196
+ &.footer-links--flow {
197
+ .footer-links-inner {
198
+ flex-direction: row;
199
+ }
200
+ }
201
+ }
202
+ `;function L({items:e,...t}){const r=ee();return e!=null&&e.length?n.jsx(xe,{...t,children:e.map((a,i)=>n.jsx("a",{href:a.link,target:"_blank","aria-label":`Social media icon${a.title?` for ${a.title}`:""}`,rel:"noreferrer",children:n.jsx(N,{icon:a.icon||a.title,sx:{bgcolor:r.palette.grey[600],color:"#fff"},size:24,component:"span"})},i))}):null}L.propTypes={items:o.arrayOf(o.shape({icon:o.string,link:o.string}))};L.defaultProps={items:null};const xe=b("div")`
203
+ display: inline-flex;
204
+ flex-wrap: wrap;
205
+ align-items: center;
206
+ justify-content: center;
207
+ gap: 20px;
208
+ a {
209
+ color: ${e=>e.theme.palette.grey[400]};
210
+ text-decoration: none;
211
+ &:hover {
212
+ color: ${e=>e.theme.palette.primary.light};
213
+ }
214
+ }
215
+ ${e=>e.theme.breakpoints.down("md")} {
216
+ gap: 12px;
217
+ }
218
+ `;function E({owner:e,year:t,...r}){return n.jsxs(be,{...r,children:["Copyright © ",t," ",e]})}E.propTypes={owner:o.string,year:o.string};E.defaultProps={owner:"ArcBlock",year:`${new Date().getFullYear()}`};const be=b("p")`
219
+ display: flex;
220
+ align-items: center;
221
+ margin: 0;
222
+ font-size: 13px;
223
+ `;function A({children:e,autoCenter:t,...r}){return e?n.jsx(ye,{...r,className:S(r.className,{"footer-row-auto-center":t}),children:e}):null}A.propTypes={children:o.any,autoCenter:o.bool};A.defaultProps={children:null,autoCenter:!1};const ye=b(w)`
224
+ display: flex;
225
+ justify-content: space-between;
226
+ & + & {
227
+ margin-top: 24px;
228
+ }
229
+ &.footer-row-auto-center > *:only-child {
230
+ margin: 0 auto;
231
+ }
232
+
233
+ ${e=>e.theme.breakpoints.down("md")} {
234
+ align-items: stretch;
235
+ flex-direction: column;
236
+ gap: 16px;
237
+ > * {
238
+ flex: 1 0 100%;
239
+ }
240
+ &.footer-row-auto-center > * {
241
+ margin: 0 auto;
242
+ }
243
+ }
244
+ `;function V({elements:e,data:t,...r}){var a;return n.jsx(ke,{...r,children:n.jsxs(W,{children:[n.jsxs(w,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},justifyContent:"space-between",alignItems:{xs:"center",md:"space-between"},gap:2,pb:3},children:[n.jsx(w,{children:e.brand}),n.jsx(w,{lineHeight:1,children:e.socialMedia})]}),!!((a=t.navigation)!=null&&a.length)&&n.jsx(w,{sx:{mb:6,pt:3,borderTop:1,borderColor:"grey.200"},children:e.navigation}),n.jsxs(A,{sx:{pt:3,borderTop:1,borderColor:"grey.200"},autoCenter:!0,children:[e.copyright,e.links]})]})})}V.propTypes={elements:o.shape({brand:o.element,navigation:o.element,socialMedia:o.element,copyright:o.element,links:o.element}).isRequired,data:o.object.isRequired};const ke=b("div")`
245
+ padding: 32px 0 24px 0;
246
+ .footer-brand-name,
247
+ .footer-brand-desc {
248
+ display: none;
249
+ }
250
+ && .footer-brand-logo {
251
+ margin-right: 0;
252
+ }
253
+ `;function X({elements:e,data:t,...r}){return n.jsx(ve,{...r,children:n.jsxs(W,{className:"plain-layout-container",children:[!!t.links&&n.jsxs(A,{sx:{width:1},autoCenter:!0,children:[e.copyright,e.links]}),!t.links&&n.jsxs(n.Fragment,{children:[$.cloneElement(e.brand,{name:null,description:null}),e.copyright]})]})})}X.propTypes={elements:o.shape({brand:o.element,navigation:o.element,socialMedia:o.element,copyright:o.element,links:o.element}).isRequired,data:o.object.isRequired};const ve=b("div")`
254
+ padding: 24px 0;
255
+ .plain-layout-container {
256
+ display: flex;
257
+ justify-content: space-between;
258
+ align-items: center;
259
+ flex-wrap: wrap;
260
+ gap: 8px;
261
+ }
262
+ `,Y=[{name:"plain",support:(e,t)=>{var r,a;return!((r=t.navigation)!=null&&r.length)&&!((a=t.socialMedia)!=null&&a.length)},component:X},{name:"standard",support:()=>!0,component:V}],je=Y.reduce((e,t)=>({...e,[t.name]:t}),{});function H(e){var k,v;const{brand:t,navigation:r,socialMedia:a,copyright:i,links:u,layout:s,...p}=e,l=()=>t?n.jsx(F,{...t}):null,d=()=>r!=null&&r.length?n.jsx(I,{links:r}):null,c=()=>a!=null&&a.length?n.jsx(L,{items:a}):null,m=()=>{const x=(i==null?void 0:i.owner)||(t==null?void 0:t.name);return x?n.jsx(E,{owner:x,year:(i==null?void 0:i.year)||void 0}):null},f=()=>u!=null&&u.length?n.jsx(I,{flowLayout:!0,links:u}):null,y={brand:l(),navigation:d(),socialMedia:c(),copyright:m(),links:f()};let g=null;if(s==="auto"?g=Y.find(x=>x.support(y,e)).component:g=(k=je[s])==null?void 0:k.component,!g)throw new Error(`layout ${s} is not supported.`);return n.jsxs(w,{position:"relative",...p,children:[n.jsx(g,{elements:y,data:e}),n.jsx(w,{position:"absolute",right:16,bottom:0,fontSize:12,sx:{color:"transparent","::selection":{background:"#000",color:"#fff"}},children:(v=window==null?void 0:window.blocklet)==null?void 0:v.version})]})}H.propTypes={brand:o.shape({name:o.node,description:o.string,logo:o.node}),navigation:o.arrayOf(o.shape({label:o.node,link:o.string})),socialMedia:o.arrayOf(o.shape({icon:o.node,link:o.string})),copyright:o.shape({owner:o.string,year:o.oneOfType([o.string,o.number])}),links:o.arrayOf(o.shape({label:o.node,link:o.string})),layout:o.oneOf(["auto","standard","plain"])};H.defaultProps={brand:null,navigation:null,copyright:null,socialMedia:null,links:null,layout:"auto"};function O({meta:e,theme:t,...r}){var g,k,v,x;const{locale:a}=_()||{},i=$.useMemo(()=>{const h=Object.assign({},window.blocklet,e);try{return K(h)}catch(M){return console.error("Failed to format blocklet info",M,h),h}},[e]);if(!i.appName)return null;const{appLogo:u,appLogoRect:s,appName:p,appDescription:l,description:d,theme:c,copyright:m}=i,f={footerNav:R((g=i==null?void 0:i.navigation)==null?void 0:g.footer,a)||[],socialMedia:R((k=i==null?void 0:i.navigation)==null?void 0:k.social,a)||[],links:R((v=i==null?void 0:i.navigation)==null?void 0:v.bottom,a)||[]},y={brand:{name:p,description:l||d,logo:s||u},navigation:Q(f.footerNav,h=>({...h,label:h.title,link:h.link}),"items"),copyright:m,socialMedia:f.socialMedia,links:f.links.map(h=>({...h,label:h.title}))};return n.jsx(T,{theme:t,children:n.jsx(we,{...y,...B(r,["bordered"]),$bordered:r==null?void 0:r.bordered,$bgcolor:(x=c==null?void 0:c.background)==null?void 0:x.footer})})}O.propTypes={meta:G,theme:o.object};O.defaultProps={meta:{},theme:null};const we=b(H)`
263
+ ${({$bordered:e})=>`border-top: 1px solid ${e?q.strokeSep:"#eee"};`}
264
+ color: ${e=>e.theme.palette.grey[600]};
265
+ ${({$bgcolor:e})=>e&&`background-color: ${e};`}
266
+ font-family: Inter, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,
267
+ 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
268
+ `,Pe=U(O,{FallbackComponent:D});export{Pe as F,Ae as H};
@@ -1,3 +1,3 @@
1
- import{l as q}from"./lottie-pnpc9RW1.js";import{r as D,d0 as z}from"./index-D7dMTham.js";function G(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,u,c,o,b=[],s=!0,A=!1;try{if(c=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(b.push(n.value),b.length!==e);s=!0);}catch(g){A=!0,u=g}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(A)throw u}}return b}}function E(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,n)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?E(Object(r),!0).forEach(function(n){J(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function J(t,e,r){return e=ae(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Q(t,e){if(t==null)return{};var r={},n=Object.keys(t),u,c;for(c=0;c<n.length;c++)u=n[c],!(e.indexOf(u)>=0)&&(r[u]=t[u]);return r}function x(t,e){if(t==null)return{};var r=Q(t,e),n,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(u=0;u<c.length;u++)n=c[u],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Z(t,e){return ee(t)||G(t,e)||te(t,e)||ne()}function ee(t){if(Array.isArray(t))return t}function te(t,e){if(t){if(typeof t=="string")return j(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(t,e)}}function j(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function re(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ae(t){var e=re(t,"string");return typeof e=="symbol"?e:String(e)}var ie=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],oe=function(e,r){var n=e.animationData,u=e.loop,c=e.autoplay,o=e.initialSegment,b=e.onComplete,s=e.onLoopComplete,A=e.onEnterFrame,g=e.onSegmentStart,O=e.onConfigReady,w=e.onDataReady,h=e.onDataFailed,l=e.onLoadedImages,L=e.onDOMLoaded,S=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var p=x(e,ie),P=D.useState(!1),d=Z(P,2),C=d[0],I=d[1],i=D.useRef(),v=D.useRef(null),H=function(){var a;(a=i.current)===null||a===void 0||a.play()},M=function(){var a;(a=i.current)===null||a===void 0||a.stop()},F=function(){var a;(a=i.current)===null||a===void 0||a.pause()},V=function(a){var f;(f=i.current)===null||f===void 0||f.setSpeed(a)},N=function(a,f){var m;(m=i.current)===null||m===void 0||m.goToAndPlay(a,f)},B=function(a,f){var m;(m=i.current)===null||m===void 0||m.goToAndStop(a,f)},$=function(a){var f;(f=i.current)===null||f===void 0||f.setDirection(a)},k=function(a,f){var m;(m=i.current)===null||m===void 0||m.playSegments(a,f)},W=function(a){var f;(f=i.current)===null||f===void 0||f.setSubframe(a)},K=function(a){var f;return(f=i.current)===null||f===void 0?void 0:f.getDuration(a)},U=function(){var a;(a=i.current)===null||a===void 0||a.destroy(),i.current=void 0},X=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f;if(v.current){(f=i.current)===null||f===void 0||f.destroy();var m=T(T(T({},e),a),{},{container:v.current});return i.current=q.loadAnimation(m),I(!!i.current),function(){var R;(R=i.current)===null||R===void 0||R.destroy(),i.current=void 0}}};D.useEffect(function(){var y=X();return function(){return y==null?void 0:y()}},[n,u]),D.useEffect(function(){i.current&&(i.current.autoplay=!!c)},[c]),D.useEffect(function(){if(i.current){if(!o){i.current.resetSegments(!0);return}!Array.isArray(o)||!o.length||((i.current.currentRawFrame<o[0]||i.current.currentRawFrame>o[1])&&(i.current.currentRawFrame=o[0]),i.current.setSegment(o[0],o[1]))}},[o]),D.useEffect(function(){var y=[{name:"complete",handler:b},{name:"loopComplete",handler:s},{name:"enterFrame",handler:A},{name:"segmentStart",handler:g},{name:"config_ready",handler:O},{name:"data_ready",handler:w},{name:"data_failed",handler:h},{name:"loaded_images",handler:l},{name:"DOMLoaded",handler:L},{name:"destroy",handler:S}],a=y.filter(function(m){return m.handler!=null});if(a.length){var f=a.map(function(m){var R;return(R=i.current)===null||R===void 0||R.addEventListener(m.name,m.handler),function(){var _;(_=i.current)===null||_===void 0||_.removeEventListener(m.name,m.handler)}});return function(){f.forEach(function(m){return m()})}}},[b,s,A,g,O,w,h,l,L,S]);var Y=z.createElement("div",T({style:r,ref:v},p));return{View:Y,play:H,stop:M,pause:F,setSpeed:V,goToAndStop:B,goToAndPlay:N,setDirection:$,playSegments:k,setSubframe:W,getDuration:K,destroy:U,animationContainerRef:v,animationLoaded:C,animationItem:i.current}};function ue(t){var e=t.getBoundingClientRect(),r=e.top,n=e.height,u=window.innerHeight-r,c=window.innerHeight+n;return u/c}function le(t,e,r){var n=t.getBoundingClientRect(),u=n.top,c=n.left,o=n.width,b=n.height,s=(e-c)/o,A=(r-u)/b;return{x:s,y:A}}var se=function(e){var r=e.wrapperRef,n=e.animationItem,u=e.mode,c=e.actions;D.useEffect(function(){var o=r.current;if(!(!o||!n||!c.length)){n.stop();var b=function(){var g=null,O=function(){var h=ue(o),l=c.find(function(S){var p=S.visibility;return p&&h>=p[0]&&h<=p[1]});if(l){if(l.type==="seek"&&l.visibility&&l.frames.length===2){var L=l.frames[0]+Math.ceil((h-l.visibility[0])/(l.visibility[1]-l.visibility[0])*l.frames[1]);//! goToAndStop must be relative to the start of the current segment
1
+ import{l as q}from"./lottie-yG7fDd4e.js";import{r as D,c$ as z}from"./index-h3sraykP.js";function G(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,u,c,o,b=[],s=!0,A=!1;try{if(c=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(b.push(n.value),b.length!==e);s=!0);}catch(g){A=!0,u=g}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(A)throw u}}return b}}function E(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,n)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?E(Object(r),!0).forEach(function(n){J(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function J(t,e,r){return e=ae(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Q(t,e){if(t==null)return{};var r={},n=Object.keys(t),u,c;for(c=0;c<n.length;c++)u=n[c],!(e.indexOf(u)>=0)&&(r[u]=t[u]);return r}function x(t,e){if(t==null)return{};var r=Q(t,e),n,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(u=0;u<c.length;u++)n=c[u],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Z(t,e){return ee(t)||G(t,e)||te(t,e)||ne()}function ee(t){if(Array.isArray(t))return t}function te(t,e){if(t){if(typeof t=="string")return j(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(t,e)}}function j(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function re(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ae(t){var e=re(t,"string");return typeof e=="symbol"?e:String(e)}var ie=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],oe=function(e,r){var n=e.animationData,u=e.loop,c=e.autoplay,o=e.initialSegment,b=e.onComplete,s=e.onLoopComplete,A=e.onEnterFrame,g=e.onSegmentStart,O=e.onConfigReady,w=e.onDataReady,h=e.onDataFailed,l=e.onLoadedImages,L=e.onDOMLoaded,S=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var p=x(e,ie),P=D.useState(!1),d=Z(P,2),C=d[0],I=d[1],i=D.useRef(),v=D.useRef(null),H=function(){var a;(a=i.current)===null||a===void 0||a.play()},M=function(){var a;(a=i.current)===null||a===void 0||a.stop()},F=function(){var a;(a=i.current)===null||a===void 0||a.pause()},V=function(a){var f;(f=i.current)===null||f===void 0||f.setSpeed(a)},N=function(a,f){var m;(m=i.current)===null||m===void 0||m.goToAndPlay(a,f)},$=function(a,f){var m;(m=i.current)===null||m===void 0||m.goToAndStop(a,f)},B=function(a){var f;(f=i.current)===null||f===void 0||f.setDirection(a)},k=function(a,f){var m;(m=i.current)===null||m===void 0||m.playSegments(a,f)},W=function(a){var f;(f=i.current)===null||f===void 0||f.setSubframe(a)},K=function(a){var f;return(f=i.current)===null||f===void 0?void 0:f.getDuration(a)},U=function(){var a;(a=i.current)===null||a===void 0||a.destroy(),i.current=void 0},X=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f;if(v.current){(f=i.current)===null||f===void 0||f.destroy();var m=T(T(T({},e),a),{},{container:v.current});return i.current=q.loadAnimation(m),I(!!i.current),function(){var R;(R=i.current)===null||R===void 0||R.destroy(),i.current=void 0}}};D.useEffect(function(){var y=X();return function(){return y==null?void 0:y()}},[n,u]),D.useEffect(function(){i.current&&(i.current.autoplay=!!c)},[c]),D.useEffect(function(){if(i.current){if(!o){i.current.resetSegments(!0);return}!Array.isArray(o)||!o.length||((i.current.currentRawFrame<o[0]||i.current.currentRawFrame>o[1])&&(i.current.currentRawFrame=o[0]),i.current.setSegment(o[0],o[1]))}},[o]),D.useEffect(function(){var y=[{name:"complete",handler:b},{name:"loopComplete",handler:s},{name:"enterFrame",handler:A},{name:"segmentStart",handler:g},{name:"config_ready",handler:O},{name:"data_ready",handler:w},{name:"data_failed",handler:h},{name:"loaded_images",handler:l},{name:"DOMLoaded",handler:L},{name:"destroy",handler:S}],a=y.filter(function(m){return m.handler!=null});if(a.length){var f=a.map(function(m){var R;return(R=i.current)===null||R===void 0||R.addEventListener(m.name,m.handler),function(){var _;(_=i.current)===null||_===void 0||_.removeEventListener(m.name,m.handler)}});return function(){f.forEach(function(m){return m()})}}},[b,s,A,g,O,w,h,l,L,S]);var Y=z.createElement("div",T({style:r,ref:v},p));return{View:Y,play:H,stop:M,pause:F,setSpeed:V,goToAndStop:$,goToAndPlay:N,setDirection:B,playSegments:k,setSubframe:W,getDuration:K,destroy:U,animationContainerRef:v,animationLoaded:C,animationItem:i.current}};function ue(t){var e=t.getBoundingClientRect(),r=e.top,n=e.height,u=window.innerHeight-r,c=window.innerHeight+n;return u/c}function le(t,e,r){var n=t.getBoundingClientRect(),u=n.top,c=n.left,o=n.width,b=n.height,s=(e-c)/o,A=(r-u)/b;return{x:s,y:A}}var se=function(e){var r=e.wrapperRef,n=e.animationItem,u=e.mode,c=e.actions;D.useEffect(function(){var o=r.current;if(!(!o||!n||!c.length)){n.stop();var b=function(){var g=null,O=function(){var h=ue(o),l=c.find(function(S){var p=S.visibility;return p&&h>=p[0]&&h<=p[1]});if(l){if(l.type==="seek"&&l.visibility&&l.frames.length===2){var L=l.frames[0]+Math.ceil((h-l.visibility[0])/(l.visibility[1]-l.visibility[0])*l.frames[1]);//! goToAndStop must be relative to the start of the current segment
3
3
  n.goToAndStop(L-n.firstFrame-1,!0)}l.type==="loop"&&(g===null||g!==l.frames||n.isPaused)&&(n.playSegments(l.frames,!0),g=l.frames),l.type==="play"&&n.isPaused&&(n.resetSegments(!0),n.play()),l.type==="stop"&&n.goToAndStop(l.frames[0]-n.firstFrame-1,!0)}};return document.addEventListener("scroll",O),function(){document.removeEventListener("scroll",O)}},s=function(){var g=function(l,L){var S=l,p=L;if(S!==-1&&p!==-1){var P=le(o,S,p);S=P.x,p=P.y}var d=c.find(function(i){var v=i.position;return v&&Array.isArray(v.x)&&Array.isArray(v.y)?S>=v.x[0]&&S<=v.x[1]&&p>=v.y[0]&&p<=v.y[1]:v&&!Number.isNaN(v.x)&&!Number.isNaN(v.y)?S===v.x&&p===v.y:!1});if(d){if(d.type==="seek"&&d.position&&Array.isArray(d.position.x)&&Array.isArray(d.position.y)&&d.frames.length===2){var C=(S-d.position.x[0])/(d.position.x[1]-d.position.x[0]),I=(p-d.position.y[0])/(d.position.y[1]-d.position.y[0]);n.playSegments(d.frames,!0),n.goToAndStop(Math.ceil((C+I)/2*(d.frames[1]-d.frames[0])),!0)}d.type==="loop"&&n.playSegments(d.frames,!0),d.type==="play"&&(n.isPaused&&n.resetSegments(!1),n.playSegments(d.frames)),d.type==="stop"&&n.goToAndStop(d.frames[0],!0)}},O=function(l){g(l.clientX,l.clientY)},w=function(){g(-1,-1)};return o.addEventListener("mousemove",O),o.addEventListener("mouseout",w),function(){o.removeEventListener("mousemove",O),o.removeEventListener("mouseout",w)}};switch(u){case"scroll":return b();case"cursor":return s()}}},[u,n])},de=function(e){var r=e.actions,n=e.mode,u=e.lottieObj,c=u.animationItem,o=u.View,b=u.animationContainerRef;return se({actions:r,animationItem:c,mode:n,wrapperRef:b}),o},fe=["style","interactivity"],ve=function(e){var r,n,u,c=e.style,o=e.interactivity,b=x(e,fe),s=oe(b,c),A=s.View,g=s.play,O=s.stop,w=s.pause,h=s.setSpeed,l=s.goToAndStop,L=s.goToAndPlay,S=s.setDirection,p=s.playSegments,P=s.setSubframe,d=s.getDuration,C=s.destroy,I=s.animationContainerRef,i=s.animationLoaded,v=s.animationItem;return D.useEffect(function(){e.lottieRef&&(e.lottieRef.current={play:g,stop:O,pause:w,setSpeed:h,goToAndPlay:L,goToAndStop:l,setDirection:S,playSegments:p,setSubframe:P,getDuration:d,destroy:C,animationContainerRef:I,animationLoaded:i,animationItem:v})},[(r=e.lottieRef)===null||r===void 0?void 0:r.current]),de({lottieObj:{View:A,play:g,stop:O,pause:w,setSpeed:h,goToAndStop:l,goToAndPlay:L,setDirection:S,playSegments:p,setSubframe:P,getDuration:d,destroy:C,animationContainerRef:I,animationLoaded:i,animationItem:v},actions:(n=o==null?void 0:o.actions)!==null&&n!==void 0?n:[],mode:(u=o==null?void 0:o.mode)!==null&&u!==void 0?u:"scroll"})};export{q as LottiePlayer,ve as default,oe as useLottie,de as useLottieInteractivity};