@abtnode/webapp 1.16.45-beta-20250625-064956-91b0fb8f → 1.16.45-beta-20250626-115702-00b49b4c

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 (203) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-cf9EXlHB.js → AdapterDayjs-DH8LVoSq.js} +1 -1
  4. package/dist/assets/{Add-ClzfE4cH.js → Add-31OD_13E.js} +1 -1
  5. package/dist/assets/{ArrowDropDown-CJ2MJgn5.js → ArrowDropDown-CNFXgKMZ.js} +1 -1
  6. package/dist/assets/{Autocomplete-CayznxGz.js → Autocomplete-zyxPkFQH.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-C9QQGBOd.js → Breadcrumbs-BJiMY6Kg.js} +1 -1
  8. package/dist/assets/{ButtonGroup-B3J8Qdyl.js → ButtonGroup-CvC6DpxV.js} +1 -1
  9. package/dist/assets/{CSSTransition-Cz8SmnJv.js → CSSTransition-B2XQ7Y5d.js} +1 -1
  10. package/dist/assets/{CallMerge-B6RVJ3nX.js → CallMerge-B1Iz1hly.js} +1 -1
  11. package/dist/assets/{CardContent-Cg4RjHpv.js → CardContent-BJ0aUqj5.js} +1 -1
  12. package/dist/assets/{ChevronLeft-BNmKlc1J.js → ChevronLeft-TANNFeVQ.js} +1 -1
  13. package/dist/assets/{ChevronRight-DRPUyxAK.js → ChevronRight-CKLF17f0.js} +1 -1
  14. package/dist/assets/{Clear-C1AC1AtD.js → Clear-BXGkmSCA.js} +1 -1
  15. package/dist/assets/{Close-DRWGcKKl.js → Close-DF1dmZkY.js} +1 -1
  16. package/dist/assets/{Community-BPBk9hGT.js → Community-DirqZAOP.js} +1 -1
  17. package/dist/assets/{Delete-CcdfJXTL.js → Delete-_Fu6HSXD.js} +1 -1
  18. package/dist/assets/{DeleteOutline-US18RBQ-.js → DeleteOutline-CDCN7iKD.js} +1 -1
  19. package/dist/assets/{Done-DoaEDHCG.js → Done-DfUM5Gdn.js} +1 -1
  20. package/dist/assets/{Edit-CJQK4atN.js → Edit-CftxsJlt.js} +1 -1
  21. package/dist/assets/{ErrorOutline-CR7yRjZc.js → ErrorOutline-K0V95RaU.js} +1 -1
  22. package/dist/assets/{HelpOutline-DIMDDIpO.js → HelpOutline-C2RopV4m.js} +1 -1
  23. package/dist/assets/{Holiday-DwuuABxa.js → Holiday-Dng-hGGy.js} +1 -1
  24. package/dist/assets/{Launch-CSu1nrjk.js → Launch-C17AQuLz.js} +1 -1
  25. package/dist/assets/{Link-CBIXUB_y.js → Link-WezwlCe3.js} +1 -1
  26. package/dist/assets/{ListItemButton-FKXnIc0i.js → ListItemButton-rO0QjGbl.js} +1 -1
  27. package/dist/assets/{ListSubheader-Cawr8223.js → ListSubheader-BaKteroh.js} +1 -1
  28. package/dist/assets/{LoadingButton-CRKt-OT1.js → LoadingButton-Cb432Czi.js} +1 -1
  29. package/dist/assets/{LockIcon-CnYrREef.js → LockIcon-DV9Y8EJm.js} +1 -1
  30. package/dist/assets/{Meeting-COxcunCf.js → Meeting-BbJgl29n.js} +1 -1
  31. package/dist/assets/{MoreHoriz-JIt9gEw_.js → MoreHoriz-uae5VxDF.js} +1 -1
  32. package/dist/assets/{MoreVert-CjjkmApl.js → MoreVert-vYpS0zQc.js} +1 -1
  33. package/dist/assets/{OffSick-Dlf0wRCP.js → OffSick-DtEOePLU.js} +1 -1
  34. package/dist/assets/{OpenInNew-D-RnzHyt.js → OpenInNew-CbGKG6bU.js} +1 -1
  35. package/dist/assets/{Public-DQrPVGw9.js → Public-B0_LmrZq.js} +1 -1
  36. package/dist/assets/{Refresh-g_ze8RC-.js → Refresh-DagieYZa.js} +1 -1
  37. package/dist/assets/{SchemaReference.es-Bs4TGph_.js → SchemaReference.es-D2_C91ui.js} +1 -1
  38. package/dist/assets/{Search-DmfQzntI.js → Search-CCJYN1r6.js} +1 -1
  39. package/dist/assets/{Slider-C7KUHAl4.js → Slider-BFrTpqHy.js} +1 -1
  40. package/dist/assets/{Stepper-ECw_WCHI.js → Stepper-CJhSqkdv.js} +1 -1
  41. package/dist/assets/{Switch-D1aSf0Rk.js → Switch-DKvkiKC7.js} +1 -1
  42. package/dist/assets/{TableRow-CL8yhyVQ.js → TableRow-Dlew3Q36.js} +1 -1
  43. package/dist/assets/{TableSearch-CxUE73Wm.js → TableSearch-Dsw8k2Y-.js} +1 -1
  44. package/dist/assets/{ToggleButtonGroup-BADZ1hmi.js → ToggleButtonGroup-BSf4Bdiz.js} +1 -1
  45. package/dist/assets/{Verified-CoaucJDJ.js → Verified-Cc4NGdoT.js} +1 -1
  46. package/dist/assets/{VerifiedUser-CGiTKpYb.js → VerifiedUser-BOb77BWA.js} +1 -1
  47. package/dist/assets/{ViewColumn-DVO6c2uh.js → ViewColumn-BDcQSSbP.js} +1 -1
  48. package/dist/assets/{ViewList-CaLfZh_J.js → ViewList-C4fApv3j.js} +1 -1
  49. package/dist/assets/{WorkingRemotely-CIlCJe_n.js → WorkingRemotely-Cg4RFDns.js} +1 -1
  50. package/dist/assets/{_createAggregator-DKh4oPcE.js → _createAggregator-C9XM6eha.js} +1 -1
  51. package/dist/assets/{actions-D0cYymRM.js → actions-BYeaPelp.js} +1 -1
  52. package/dist/assets/{actions-DMblPsrA.js → actions-CHwbzvDq.js} +1 -1
  53. package/dist/assets/{agreement-CmpcKfmG.js → agreement-FY91z_xE.js} +1 -1
  54. package/dist/assets/api-DLJKqkNj.js +1 -0
  55. package/dist/assets/appearance-Bbh2AcxI.js +1 -0
  56. package/dist/assets/{audit-logs-D9nHuKQm.js → audit-logs-BY7-ULmD.js} +1 -1
  57. package/dist/assets/{base-chart-DHzZnb2L.js → base-chart-lV_tWBLU.js} +1 -1
  58. package/dist/assets/{blocklet-C56CLqfn.js → blocklet-C7o_whxT.js} +1 -1
  59. package/dist/assets/{brace-fold.es-WYquVZ0Q.js → brace-fold.es-BuAZHa0V.js} +1 -1
  60. package/dist/assets/{chain-DKfcWWlC.js → chain-DIbqGRh0.js} +1 -1
  61. package/dist/assets/{click-to-copy-CiS9u8Lz.js → click-to-copy-B_d8u4qe.js} +1 -1
  62. package/dist/assets/cloneDeep-BxJDnTCF.js +1 -0
  63. package/dist/assets/{closebrackets.es-BTFbO_zS.js → closebrackets.es-BRh8E2yL.js} +1 -1
  64. package/dist/assets/{codemirror.es-bTfvwT0x.js → codemirror.es-CnUXSHgQ.js} +1 -1
  65. package/dist/assets/{collapse-De1M4hZU.js → collapse-BoD6SaLC.js} +1 -1
  66. package/dist/assets/{comment.es-CfIJpCF-.js → comment.es-C-nFP7eE.js} +1 -1
  67. package/dist/assets/{config-navigation-NKWvqO8O.js → config-navigation-DAK6Ui9t.js} +3 -3
  68. package/dist/assets/{connect-to-B4CwZqBJ.js → connect-to-C7Z1WiF1.js} +1 -1
  69. package/dist/assets/{delete-confirm-Ca6B5KxO.js → delete-confirm-ZjHGdUzy.js} +1 -1
  70. package/dist/assets/{detail-B0kwpZJg.js → detail-BDtv6R1w.js} +3 -3
  71. package/dist/assets/{dialog.es-b4YsH3yO.js → dialog.es-DIQluCnx.js} +1 -1
  72. package/dist/assets/{domains-DfM0llnu.js → domains-R6Xhsjyr.js} +1 -1
  73. package/dist/assets/{download-D2RXPhXc.js → download-DsZQA7Pu.js} +1 -1
  74. package/dist/assets/emotion-react.browser.esm-DtDsQxkS.js +1 -0
  75. package/dist/assets/{foldgutter.es-Bmzc1lAn.js → foldgutter.es-BvpThbOv.js} +1 -1
  76. package/dist/assets/{get-safe-url-Dsy-huUv.js → get-safe-url-BkkgYZsd.js} +1 -1
  77. package/dist/assets/{get-safe-url-DuYpuHQJ.js → get-safe-url-CPkpK13h.js} +1 -1
  78. package/dist/assets/getValidReactChildren-7EPQhd7n.js +1 -0
  79. package/dist/assets/{hint.es-D3enHBIe.js → hint.es-DjByzi9F.js} +1 -1
  80. package/dist/assets/{hint.es2-D_8pEhNZ.js → hint.es2-D1MTIQe0.js} +1 -1
  81. package/dist/assets/{iframe-JzwQis4I.js → iframe-Ex_gbVob.js} +1 -1
  82. package/dist/assets/{index-CUf9smnR.js → index-17T7dOGh.js} +1 -1
  83. package/dist/assets/{index-CuCDUbks.js → index-4xq1iE_M.js} +3 -3
  84. package/dist/assets/{index-BR_N19sK.js → index-B0Aod4fK.js} +1 -1
  85. package/dist/assets/{index-DmqHgbIB.js → index-B2M4jAsF.js} +1 -1
  86. package/dist/assets/{index-Br9fC4wn.js → index-BF7QGXQd.js} +1 -1
  87. package/dist/assets/{index-BcLnPbZ_.js → index-BLXO0nyi.js} +1 -1
  88. package/dist/assets/{index-mWC0dxsG.js → index-BN8ZIe5I.js} +1 -1
  89. package/dist/assets/{index-Bmgy-F8w.js → index-BdUqOG2Y.js} +3 -3
  90. package/dist/assets/{index-C-wwh49Y.js → index-Bk40vnkF.js} +1 -1
  91. package/dist/assets/{index-mJjX2o0I.js → index-BngZ06zJ.js} +1 -1
  92. package/dist/assets/{index-Ci6qo3N4.js → index-Bs-vIrx0.js} +1 -1
  93. package/dist/assets/{index-Bv0UYgtN.js → index-BtPyubGd.js} +1 -1
  94. package/dist/assets/{index-pLwCyBIW.js → index-BxRXLpAe.js} +1 -1
  95. package/dist/assets/{index-8TfE60DJ.js → index-C24nROIF.js} +1 -1
  96. package/dist/assets/{index-BwtBZueg.js → index-C6oHEPXU.js} +1 -1
  97. package/dist/assets/{index-Diry1rOC.js → index-C9poHcyM.js} +1 -1
  98. package/dist/assets/{index-p0Tn5q9W.js → index-Cj9enr8I.js} +1 -1
  99. package/dist/assets/{index-CbpkZm_D.js → index-Cv1mZ5Rc.js} +1 -1
  100. package/dist/assets/{index-YHRJ5Z9D.js → index-CyhYzCRi.js} +1 -1
  101. package/dist/assets/{index-DJfwuANq.js → index-D-8oCexP.js} +1 -1
  102. package/dist/assets/{index-DuyB74pI.js → index-D4LFUy7F.js} +1 -1
  103. package/dist/assets/{index-BsTEuRio.js → index-DCLFGZPh.js} +5 -5
  104. package/dist/assets/{index-uhXfBcTY.js → index-DFocBwt2.js} +1 -1
  105. package/dist/assets/{index-f3wryxsZ.js → index-DHZv-45x.js} +1 -1
  106. package/dist/assets/{index-DzIW7WPn.js → index-DI46FVUk.js} +1 -1
  107. package/dist/assets/{index-C40_ZUH_.js → index-DLr15UvD.js} +1 -1
  108. package/dist/assets/{index-B8Ac-C82.js → index-DRBIacx9.js} +1 -1
  109. package/dist/assets/{index-DqZUR6e0.js → index-DS5qdUr8.js} +1 -1
  110. package/dist/assets/{index-CHr_TiKg.js → index-DSViPsvj.js} +1 -1
  111. package/dist/assets/{index-CEkzM2Hy.js → index-DULiHig2.js} +1 -1
  112. package/dist/assets/{index-Dy6Ndspk.js → index-DcZQiQhe.js} +1 -1
  113. package/dist/assets/{index-DPPR0A8j.js → index-De5cOQL8.js} +114 -114
  114. package/dist/assets/{index-Bp85PVE7.js → index-DnGdMZox.js} +1 -1
  115. package/dist/assets/{index-hpqdONWL.js → index-DnLSu2Em.js} +1 -1
  116. package/dist/assets/{index-qPfSbb8F.js → index-DqMYBPzF.js} +1 -1
  117. package/dist/assets/{index-C-gpDEaK.js → index-JSqTrVkL.js} +1 -1
  118. package/dist/assets/{index--aogETCe.js → index-KsswTRF5.js} +1 -1
  119. package/dist/assets/{index-D651LXXD.js → index-L8PAQyJT.js} +1 -1
  120. package/dist/assets/{index-1fDaH0GR.js → index-SyEZ5WgR.js} +3 -3
  121. package/dist/assets/{index-DdKwcnDa.js → index-XfRo_cGN.js} +1 -1
  122. package/dist/assets/{index-CPkjKWDT.js → index-bt_ZtTCx.js} +1 -1
  123. package/dist/assets/{index-BOaWHm3y.js → index-cCuMkLHZ.js} +1 -1
  124. package/dist/assets/{index-Xeh4Hy1K.js → index-fzuQ6QSZ.js} +1 -1
  125. package/dist/assets/{index-CEwaV1Oe.js → index-lB7zAkhG.js} +1 -1
  126. package/dist/assets/{index-QAr8nKeC.js → index-pS95597U.js} +3 -3
  127. package/dist/assets/{index-BVHtC5Hk.js → index-rCFOUP1a.js} +1 -1
  128. package/dist/assets/index-tlyZe0mw.js +1 -0
  129. package/dist/assets/{index.esm-BeKnx9US.js → index.esm-c2yth77n.js} +1 -1
  130. package/dist/assets/{info-addon.es-DcDBZCZ9.js → info-addon.es-BM8BrKYQ.js} +1 -1
  131. package/dist/assets/{info.es-CMDl0oHG.js → info.es-BzX2oeEl.js} +1 -1
  132. package/dist/assets/{install-from-url-T6jdS-sd.js → install-from-url-BF3MtQ4u.js} +1 -1
  133. package/dist/assets/{invitation-BQpAoUra.js → invitation-BsZ6Yx1b.js} +1 -1
  134. package/dist/assets/is-path-prefix-equal-CW5ZnXhD.js +1 -0
  135. package/dist/assets/{item-zzpJhUAv.js → item-BuxaFa5t.js} +1 -1
  136. package/dist/assets/{javascript.es-rVaecCeY.js → javascript.es-ClQzC_q8.js} +1 -1
  137. package/dist/assets/{jump-to-line.es-fZd9SPeK.js → jump-to-line.es-b9zVUWiD.js} +1 -1
  138. package/dist/assets/{jump.es-C2i0yVn0.js → jump.es-B6rN6ojV.js} +1 -1
  139. package/dist/assets/{lint.es-T7Eyo8Ee.js → lint.es-CQUhb9IH.js} +1 -1
  140. package/dist/assets/{lint.es2-D9w-DqTv.js → lint.es2-BiWUVQ2j.js} +1 -1
  141. package/dist/assets/{lint.es3-BR3fJTRU.js → lint.es3-C-S045RK.js} +1 -1
  142. package/dist/assets/{list-header-BHP30ooa.js → list-header-gLI9wucd.js} +1 -1
  143. package/dist/assets/{log-BPS1ovHk.js → log-DC65FrmR.js} +1 -1
  144. package/dist/assets/{lottie-react.esm-BHwF6ttF.js → lottie-react.esm-BQQ_AaGj.js} +1 -1
  145. package/dist/assets/{matchbrackets.es-B45wj5E9.js → matchbrackets.es-DTK4t8s-.js} +1 -1
  146. package/dist/assets/{memory-CNHjW2ab.js → memory-v5RVA0t_.js} +1 -1
  147. package/dist/assets/{metric-BcRet1lX.js → metric-D1zCZXKO.js} +1 -1
  148. package/dist/assets/{mode.es-BLJK3yl5.js → mode.es-UpB40qey.js} +1 -1
  149. package/dist/assets/{mode.es2-hlIytxg7.js → mode.es2-CXRgbxmn.js} +1 -1
  150. package/dist/assets/{mode.es3-CVTYL_Rp.js → mode.es3-BirVsdBc.js} +1 -1
  151. package/dist/assets/omit-xBrXSh46.js +1 -0
  152. package/dist/assets/{onlineParser.es-D7LXCAe9.js → onlineParser.es-DGxnvcSs.js} +1 -1
  153. package/dist/assets/{overview-Dl1-aEub.js → overview-DSy8IJNP.js} +1 -1
  154. package/dist/assets/{permission-syQYMJDU.js → permission-D3HvUPq1.js} +1 -1
  155. package/dist/assets/{preference-Bjp0l-rP.js → preference-pU76jzQz.js} +3 -3
  156. package/dist/assets/{raf-schd.esm-D4X3rkFT.js → raf-schd.esm-N8v6UDcn.js} +1 -1
  157. package/dist/assets/refType-BVHdiekZ.js +1 -0
  158. package/dist/assets/{resource-dialog-Bj4Rm8z8.js → resource-dialog-B8gaFS6f.js} +4 -4
  159. package/dist/assets/{runtime-DHGpU07w.js → runtime-B7RMP0Nc.js} +1 -1
  160. package/dist/assets/sdk-C6kQKbBT.js +1 -0
  161. package/dist/assets/{search.es-DEh8WYav.js → search.es-slZAdLEx.js} +1 -1
  162. package/dist/assets/{searchcursor.es-BHK3Udfj.js → searchcursor.es-DW-wNbSC.js} +1 -1
  163. package/dist/assets/{service-BLsXGeBF.js → service-DfHy1PfL.js} +1 -1
  164. package/dist/assets/{shorten-label-rkbgI37z.js → shorten-label-C8S-BR3k.js} +1 -1
  165. package/dist/assets/{show-hint.es-TLn5XERt.js → show-hint.es-DPgI7weV.js} +1 -1
  166. package/dist/assets/{simple-select-CqR13Ja_.js → simple-select-DcAlzGgz.js} +1 -1
  167. package/dist/assets/{spaces-DLzKX3Ra.js → spaces-BPQE8frM.js} +1 -1
  168. package/dist/assets/{status-CtyoZCac.js → status-BavzHI8a.js} +1 -1
  169. package/dist/assets/{status-CyZk73aw.js → status-ClQ3wN9Y.js} +1 -1
  170. package/dist/assets/{sublime.es-B7ROfjSt.js → sublime.es-BZ86xtwP.js} +1 -1
  171. package/dist/assets/{switch-control-DRItWC8V.js → switch-control-NWXvW_Wd.js} +1 -1
  172. package/dist/assets/{table-icons-CN1Rmj7L.js → table-icons-C5LyjHvB.js} +1 -1
  173. package/dist/assets/{team-7oU1sdtL.js → team-B-C4WxJS.js} +1 -1
  174. package/dist/assets/{toLower-BetQNSka.js → toLower-FBp3xZt1.js} +1 -1
  175. package/dist/assets/toUpper-DkYwJXlP.js +1 -0
  176. package/dist/assets/{traffic-BXrg_wx7.js → traffic-DRIGIlTP.js} +1 -1
  177. package/dist/assets/{url-evaluation-PNUzVXFG.js → url-evaluation-lQ86pD_C.js} +1 -1
  178. package/dist/assets/{url-join-BT4uwgMW.js → url-join-Co2E-X7f.js} +1 -1
  179. package/dist/assets/{use-mobile-DaylDy56.js → use-mobile-CC6mstCf.js} +1 -1
  180. package/dist/assets/{use-mobile-zJMHEWPE.js → use-mobile-DMA1Bhgh.js} +1 -1
  181. package/dist/assets/{useAsync-8QQYXZ2o.js → useAsync-MPi8pR67.js} +1 -1
  182. package/dist/assets/{useAsyncRetry-CGk8Cu9u.js → useAsyncRetry-CBBfEp5E.js} +1 -1
  183. package/dist/assets/{useLocalStorage-DdJoK4w7.js → useLocalStorage-BihOtGwI.js} +1 -1
  184. package/dist/assets/{useThemeProps-Rte_NmVE.js → useThemeProps-HKqSQ1Oh.js} +1 -1
  185. package/dist/assets/{util-DlhHM2MK.js → util-ax_YUQ7b.js} +1 -1
  186. package/dist/assets/{wait-container-BPSvZhQ4.js → wait-container-DAmnED3O.js} +1 -1
  187. package/dist/assets/{withStyles-D2YScWal.js → withStyles-BbUEkvtE.js} +1 -1
  188. package/dist/assets/{without-wallet-CXyXy2KB.js → without-wallet-C2j_YWRv.js} +1 -1
  189. package/dist/assets/{wrap-locale-kaXbWMUB.js → wrap-locale-BSz4b9v8.js} +1 -1
  190. package/dist/index.html +1 -1
  191. package/dist/service-worker.js +1 -1
  192. package/package.json +1 -1
  193. package/dist/assets/api-D8CXYVbD.js +0 -1
  194. package/dist/assets/appearance-CC06pu2W.js +0 -1
  195. package/dist/assets/cloneDeep-fDhnQcTQ.js +0 -1
  196. package/dist/assets/emotion-react.browser.esm-CyqIkV2y.js +0 -1
  197. package/dist/assets/getValidReactChildren-BhCPp8PX.js +0 -1
  198. package/dist/assets/index-DtQb3yWv.js +0 -1
  199. package/dist/assets/is-path-prefix-equal-DAINokq6.js +0 -1
  200. package/dist/assets/omit-Difyap46.js +0 -1
  201. package/dist/assets/refType-Bi7lNIS6.js +0 -1
  202. package/dist/assets/sdk--zV5g1Ng.js +0 -1
  203. package/dist/assets/toUpper-CnLEnHph.js +0 -1
@@ -1,4 +1,4 @@
1
- import{ip as hl,iq as pl,ir as Er,is as ne,it as ei,iu as ti,iv as ri,iw as ni,ix as ii,c1 as qr,iy as ml,iz as gl,c0 as Lr,iA as ua,iB as vl,dh as yl,P as F,dn as bl,cj as xl,iC as _l,iD as jl,g5 as wl,iE as Sl,c5 as da,b$ as si,bZ as tr,iF as fa,iG as ha,iH as pa,r as H,i1 as ma,iI as ga,j as e,c4 as Ml,iJ as Cl,fD as va,iK as ya,dz as Rl,iL as kl,iM as $l,dT as Pl,dD as Ol,ay as Tl,iN as Al,iO as Il,iP as Dl,iQ as El,iR as ql,iS as Ll,iT as Bl,iU as zl,iV as Nl,iW as Fl,iX as Hl,iY as Wl,iZ as Vl,i_ as Zl,i$ as Ul,j0 as Gl,j1 as Kl,j2 as Jl,j3 as Yl,j4 as Xl,dG as Ql,dF as ec,j5 as tc,j6 as rc,j7 as nc,av as ic,dW as sc,dX as ac,d_ as oc,j8 as lc,d$ as cc,e0 as uc,j9 as dc,ja as fc,jb as hc,jc as pc,jd as mc,je as gc,jf as vc,jg as yc,jh as bc,ji as xc,jj as _c,jk as jc,jl as wc,jm as Sc,jn as Mc,jo as Cc,e1 as Rc,e2 as kc,e3 as ba,e4 as $c,jp as Pc,jq as Oc,jr as Tc,js as Ac,jt as Ic,ju as Dc,jv as Ec,jw as qc,jx as Lc,jy as Bc,jz as zc,jA as Nc,jB as Fc,jC as Hc,jD as Wc,jE as Vc,jF as Zc,e6 as Uc,e8 as Gc,jG as Kc,jH as Jc,jI as Yc,jJ as Xc,jK as Qc,jL as eu,jM as tu,jN as ru,dN as nu,jO as iu,dO as su,H as au,dk as ou,jP as lu,jQ as cu,i3 as xa,bi as Ke,d5 as uu,i0 as _a,jR as Xr,jS as Ir,jT as Qi,jU as du,i5 as fu,jV as hu,jW as pu,jX as mu,bP as gu,aQ as ot,aR as K,a5 as Ye,ep as je,fl as ja,eb as vu,by as yu,fk as bu,V as xu,e as it,t as ue,N,C as Dt,fS as Gn,n as mt,ej as ai,bn as wa,hn as _u,b7 as Sa,cA as ju,cS as wu,dx as Su,k as _e,fi as Kn,b as Ge,a_ as rt,br as Xe,jY as Mu,bF as oi,bk as ze,A as ae,bE as li,m as et,o as Ma,q as Cu,v as Ca,af as Ru,J as Ra,gF as ku,jZ as $u,ax as Pu,aZ as qe,X as rr,D as Ct,B as Ee,s as Ou,Y as Tu,Z as Jn,j_ as Au,d8 as Et,j$ as Iu,fn as Du,I as yt,F as ce,k0 as Eu,cZ as es,W as qu,g1 as ka,aC as Je,aW as ts,fT as ir,cv as V,Q as Le,aI as ye,aU as gt,bD as qt,k1 as Lu,k2 as Bu,k3 as zu,a4 as Nu,k4 as rs,c8 as nr,k5 as Fu,fj as at,am as Lt,x as $a,bz as Yn,O as Hu,cI as Pa,d9 as Wu,gM as an,k6 as Vu,be as Zu,g as Uu,cu as Dr,aM as Qr,k7 as Gu,d3 as st,k8 as Ku,k9 as lt,hz as ht,ka as Oa,kb as ci,kc as ui,kd as Ju,ke as Ta,kf as Yu,a0 as xt,kg as Xu,bm as Qu,aj as ns,a2 as Aa,bo as en,kh as Ia,bc as e1,hH as Mt,fU as Da,cX as Ea,E as t1,bb as is,fV as r1,fW as n1,G as Tn,M as i1,bx as s1}from"./index-BsTEuRio.js";import{F as qa,R as La,s as a1,L as jt,d as o1,B as l1}from"./preference-Bjp0l-rP.js";import{d as ss}from"./ChevronRight-DRPUyxAK.js";import{T as tn}from"./index-DdKwcnDa.js";import{w as ar,P as c1}from"./permission-syQYMJDU.js";import{u as di}from"./index-DtQb3yWv.js";import{d as Ba}from"./Done-DoaEDHCG.js";import{E as u1,g as d1}from"./chain-DKfcWWlC.js";import{d as f1}from"./ArrowDropDown-CJ2MJgn5.js";import{B as h1}from"./ButtonGroup-B3J8Qdyl.js";import{a as as,A as p1}from"./Autocomplete-CayznxGz.js";import{S as J,B as m1}from"./index-CEwaV1Oe.js";import{C as g1,R as v1,d as y1}from"./Public-DQrPVGw9.js";import{u as nt}from"./blocklet-C56CLqfn.js";import{C as b1}from"./click-to-copy-CiS9u8Lz.js";import{u as on}from"./team-7oU1sdtL.js";import{I as za}from"./index-DuyB74pI.js";import{V as x1,K as _1}from"./status-CtyoZCac.js";import{S as pt}from"./Switch-D1aSf0Rk.js";import{E as j1}from"./index-BcLnPbZ_.js";import{p as Na,c as w1,a as S1,b as M1,u as C1,d as R1,e as k1,H as $1,D as ln}from"./index-Dy6Ndspk.js";import{u as Rt,C as Q,b as os}from"./index.esm-BeKnx9US.js";import{S as cn}from"./switch-control-DRItWC8V.js";import{S as P1}from"./index-hpqdONWL.js";import{d as ls}from"./Delete-CcdfJXTL.js";import{d as cs}from"./Add-ClzfE4cH.js";import{S as O1}from"./Slider-C7KUHAl4.js";import"./index-DzIW7WPn.js";import{C as T1}from"./index-BwtBZueg.js";import{u as Fa}from"./use-mobile-zJMHEWPE.js";import{S as An}from"./simple-select-CqR13Ja_.js";import{d as A1}from"./actions-DMblPsrA.js";import{r as I1}from"./refType-Bi7lNIS6.js";import{C as D1}from"./CSSTransition-Cz8SmnJv.js";import{C as E1}from"./CardContent-Cg4RjHpv.js";import{R as Ha,a as Wa}from"./url-evaluation-PNUzVXFG.js";import"./omit-Difyap46.js";import"./index-DJfwuANq.js";import"./index-Xeh4Hy1K.js";import"./iframe-JzwQis4I.js";import"./getValidReactChildren-BhCPp8PX.js";import"./ListSubheader-Cawr8223.js";import"./collapse-De1M4hZU.js";import"./ErrorOutline-CR7yRjZc.js";import"./TableRow-CL8yhyVQ.js";import"./useThemeProps-Rte_NmVE.js";import"./emotion-react.browser.esm-CyqIkV2y.js";import"./ViewColumn-DVO6c2uh.js";import"./Search-DmfQzntI.js";import"./Clear-C1AC1AtD.js";import"./MoreVert-CjjkmApl.js";import"./TableSearch-CxUE73Wm.js";import"./useLocalStorage-DdJoK4w7.js";import"./get-safe-url-Dsy-huUv.js";const q1=Object.freeze(Object.defineProperty({__proto__:null,default:hl,useDefaultProps:pl},Symbol.toStringTag,{value:"Module"})),L1={},B1=L1,z1=ne({prop:"displayPrint",cssProperty:!1,transform:c=>({"@media print":{display:c}})}),N1=ne({prop:"display"}),F1=ne({prop:"overflow"}),H1=ne({prop:"textOverflow"}),W1=ne({prop:"visibility"}),V1=ne({prop:"whiteSpace"}),fi=Er(z1,N1,F1,H1,W1,V1),Va=ne({prop:"flexBasis"}),Za=ne({prop:"flexDirection"}),Ua=ne({prop:"flexWrap"}),Ga=ne({prop:"justifyContent"}),Ka=ne({prop:"alignItems"}),Ja=ne({prop:"alignContent"}),Ya=ne({prop:"order"}),Xa=ne({prop:"flex"}),Qa=ne({prop:"flexGrow"}),eo=ne({prop:"flexShrink"}),to=ne({prop:"alignSelf"}),ro=ne({prop:"justifyItems"}),no=ne({prop:"justifySelf"}),Z1=Er(Va,Za,Ua,Ga,Ka,Ja,Ya,Xa,Qa,eo,to,ro,no),hi=Z1,io=ne({prop:"position"}),so=ne({prop:"zIndex",themeKey:"zIndex"}),ao=ne({prop:"top"}),oo=ne({prop:"right"}),lo=ne({prop:"bottom"}),co=ne({prop:"left"}),pi=Er(io,so,ao,oo,lo,co),U1=ne({prop:"boxShadow",themeKey:"shadows"}),mi=U1,uo=ne({prop:"fontFamily",themeKey:"typography"}),fo=ne({prop:"fontSize",themeKey:"typography"}),ho=ne({prop:"fontStyle",themeKey:"typography"}),po=ne({prop:"fontWeight",themeKey:"typography"}),mo=ne({prop:"letterSpacing"}),go=ne({prop:"textTransform"}),vo=ne({prop:"lineHeight"}),yo=ne({prop:"textAlign"}),bo=ne({prop:"typography",cssProperty:!1,themeKey:"typography"}),G1=Er(bo,uo,fo,ho,po,mo,vo,yo,go),gi=G1,us={borders:ei.filterProps,display:fi.filterProps,flexbox:hi.filterProps,grid:ti.filterProps,positions:pi.filterProps,palette:ri.filterProps,shadows:mi.filterProps,sizing:ni.filterProps,spacing:ii.filterProps,typography:gi.filterProps},K1={borders:ei,display:fi,flexbox:hi,grid:ti,positions:pi,palette:ri,shadows:mi,sizing:ni,spacing:ii,typography:gi},J1=Object.keys(us).reduce((c,C)=>(us[C].forEach(P=>{c[P]=K1[C]}),c),{});function Y1(c,C,P){const S={[c]:C,theme:P},$=J1[c];return $?$(S):{[c]:C}}const X1=Object.freeze(Object.defineProperty({__proto__:null,default:qr,globalStateClasses:ml,isGlobalState:gl},Symbol.toStringTag,{value:"Module"})),Q1=Object.freeze(Object.defineProperty({__proto__:null,default:Lr},Symbol.toStringTag,{value:"Module"})),ed=Lr("MuiBox",["root"]),td=ua({defaultClassName:ed.root,generateClassName:vl.generate}),rd=td,nd=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"}));function id(c,C){return()=>null}const sd=id(F.elementType),ad=Object.freeze(Object.defineProperty({__proto__:null,default:sd},Symbol.toStringTag,{value:"Module"})),od=Object.freeze(Object.defineProperty({__proto__:null,default:I1},Symbol.toStringTag,{value:"Module"})),ld=Object.freeze(Object.defineProperty({__proto__:null,default:bl},Symbol.toStringTag,{value:"Module"})),cd=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),ud=Object.freeze(Object.defineProperty({__proto__:null,Timeout:_l,default:jl},Symbol.toStringTag,{value:"Module"})),dd=Object.freeze(Object.defineProperty({__proto__:null,default:wl,teardown:Sl},Symbol.toStringTag,{value:"Module"})),fd=Object.freeze(Object.defineProperty({__proto__:null,default:da},Symbol.toStringTag,{value:"Module"})),hd=["cssVarPrefix","shouldSkipGeneratingVar"];function pd(c){const{cssVarPrefix:C,shouldSkipGeneratingVar:P}=c,S=si(c,hd);return tr({},c,Na(S,{prefix:C,shouldSkipGeneratingVar:P}))}const md="5.17.1",gd=5,vd=17,yd=1,bd=null,xd=null,_d=fa(),jd=_d;function wd(c){return qr("MuiContainer",c)}const Sd=Lr("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]),Md=Sd,Cd=(c,C)=>c.filter(P=>C.includes(P)),Bt=(c,C,P)=>{const S=c.keys[0];Array.isArray(C)?C.forEach(($,u)=>{P((x,t)=>{u<=c.keys.length-1&&(u===0?Object.assign(x,t):x[c.up(c.keys[u])]=t)},$)}):C&&typeof C=="object"?(Object.keys(C).length>c.keys.length?c.keys:Cd(c.keys,Object.keys(C))).forEach(u=>{if(c.keys.indexOf(u)!==-1){const x=C[u];x!==void 0&&P((t,v)=>{S===u?Object.assign(t,v):t[c.up(u)]=v},x)}}):(typeof C=="number"||typeof C=="string")&&P(($,u)=>{Object.assign($,u)},C)};function bt(c){return c?`Level${c}`:""}function Br(c){return c.unstable_level>0&&c.container}function xo(c){return function(P){return`var(--Grid-${P}Spacing${bt(c.unstable_level)})`}}function vi(c){return function(P){return c.unstable_level===0?`var(--Grid-${P}Spacing)`:`var(--Grid-${P}Spacing${bt(c.unstable_level-1)})`}}function yi(c){return c.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${bt(c.unstable_level-1)})`}const Rd=({theme:c,ownerState:C})=>{const P=xo(C),S={};return Bt(c.breakpoints,C.gridSize,($,u)=>{let x={};u===!0&&(x={flexBasis:0,flexGrow:1,maxWidth:"100%"}),u==="auto"&&(x={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof u=="number"&&(x={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${u} / ${yi(C)}${Br(C)?` + ${P("column")}`:""})`}),$(S,x)}),S},kd=({theme:c,ownerState:C})=>{const P={};return Bt(c.breakpoints,C.gridOffset,(S,$)=>{let u={};$==="auto"&&(u={marginLeft:"auto"}),typeof $=="number"&&(u={marginLeft:$===0?"0px":`calc(100% * ${$} / ${yi(C)})`}),S(P,u)}),P},$d=({theme:c,ownerState:C})=>{if(!C.container)return{};const P=Br(C)?{[`--Grid-columns${bt(C.unstable_level)}`]:yi(C)}:{"--Grid-columns":12};return Bt(c.breakpoints,C.columns,(S,$)=>{S(P,{[`--Grid-columns${bt(C.unstable_level)}`]:$})}),P},Pd=({theme:c,ownerState:C})=>{if(!C.container)return{};const P=vi(C),S=Br(C)?{[`--Grid-rowSpacing${bt(C.unstable_level)}`]:P("row")}:{};return Bt(c.breakpoints,C.rowSpacing,($,u)=>{var x;$(S,{[`--Grid-rowSpacing${bt(C.unstable_level)}`]:typeof u=="string"?u:(x=c.spacing)==null?void 0:x.call(c,u)})}),S},Od=({theme:c,ownerState:C})=>{if(!C.container)return{};const P=vi(C),S=Br(C)?{[`--Grid-columnSpacing${bt(C.unstable_level)}`]:P("column")}:{};return Bt(c.breakpoints,C.columnSpacing,($,u)=>{var x;$(S,{[`--Grid-columnSpacing${bt(C.unstable_level)}`]:typeof u=="string"?u:(x=c.spacing)==null?void 0:x.call(c,u)})}),S},Td=({theme:c,ownerState:C})=>{if(!C.container)return{};const P={};return Bt(c.breakpoints,C.direction,(S,$)=>{S(P,{flexDirection:$})}),P},Ad=({ownerState:c})=>{const C=xo(c),P=vi(c);return tr({minWidth:0,boxSizing:"border-box"},c.container&&tr({display:"flex",flexWrap:"wrap"},c.wrap&&c.wrap!=="wrap"&&{flexWrap:c.wrap},{margin:`calc(${C("row")} / -2) calc(${C("column")} / -2)`},c.disableEqualOverflow&&{margin:`calc(${C("row")} * -1) 0px 0px calc(${C("column")} * -1)`}),(!c.container||Br(c))&&tr({padding:`calc(${P("row")} / 2) calc(${P("column")} / 2)`},(c.disableEqualOverflow||c.parentDisableEqualOverflow)&&{padding:`${P("row")} 0px 0px ${P("column")}`}))},Id=c=>{const C=[];return Object.entries(c).forEach(([P,S])=>{S!==!1&&S!==void 0&&C.push(`grid-${P}-${String(S)}`)}),C},Dd=(c,C="xs")=>{function P(S){return S===void 0?!1:typeof S=="string"&&!Number.isNaN(Number(S))||typeof S=="number"&&S>0}if(P(c))return[`spacing-${C}-${String(c)}`];if(typeof c=="object"&&!Array.isArray(c)){const S=[];return Object.entries(c).forEach(([$,u])=>{P(u)&&S.push(`spacing-${$}-${String(u)}`)}),S}return[]},Ed=c=>c===void 0?[]:typeof c=="object"?Object.entries(c).map(([C,P])=>`direction-${C}-${P}`):[`direction-xs-${String(c)}`],qd=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],Ld=ha(),Bd=pa("div",{name:"MuiGrid",slot:"Root",overridesResolver:(c,C)=>C.root});function zd(c){return va({props:c,name:"MuiGrid",defaultTheme:Ld})}function _o(c={}){const{createStyledComponent:C=Bd,useThemeProps:P=zd,componentName:S="MuiGrid"}=c,$=H.createContext(void 0),u=(v,p)=>{const{container:f,direction:r,spacing:l,wrap:o,gridSize:i}=v,s={root:["root",f&&"container",o!=="wrap"&&`wrap-xs-${String(o)}`,...Ed(r),...Id(i),...f?Dd(l,p.breakpoints.keys[0]):[]]};return da(s,g=>qr(S,g),{})},x=C($d,Od,Pd,Rd,Td,Ad,kd),t=H.forwardRef(function(p,f){var r,l,o,i,s,g,a,n;const h=ma(),_=P(p),b=ga(_),k=H.useContext($),{className:R,children:m,columns:y=12,container:M=!1,component:I="div",direction:z="row",wrap:T="wrap",spacing:d=0,rowSpacing:j=d,columnSpacing:O=d,disableEqualOverflow:A,unstable_level:D=0}=b,q=si(b,qd);let B=A;D&&A!==void 0&&(B=p.disableEqualOverflow);const E={},w={},L={};Object.entries(q).forEach(([X,ie])=>{h.breakpoints.values[X]!==void 0?E[X]=ie:h.breakpoints.values[X.replace("Offset","")]!==void 0?w[X.replace("Offset","")]=ie:L[X]=ie});const W=(r=p.columns)!=null?r:D?void 0:y,Z=(l=p.spacing)!=null?l:D?void 0:d,U=(o=(i=p.rowSpacing)!=null?i:p.spacing)!=null?o:D?void 0:j,re=(s=(g=p.columnSpacing)!=null?g:p.spacing)!=null?s:D?void 0:O,G=tr({},b,{level:D,columns:W,container:M,direction:z,wrap:T,spacing:Z,rowSpacing:U,columnSpacing:re,gridSize:E,gridOffset:w,disableEqualOverflow:(a=(n=B)!=null?n:k)!=null?a:!1,parentDisableEqualOverflow:k}),ee=u(G,h);let Qe=e.jsx(x,tr({ref:f,as:I,ownerState:G,className:Ml(ee.root,R)},L,{children:H.Children.map(m,X=>{if(H.isValidElement(X)&&Cl(X,["Grid"])){var ie,ut;return H.cloneElement(X,{unstable_level:(ie=(ut=X.props)==null?void 0:ut.unstable_level)!=null?ie:D+1})}return X})}));return B!==void 0&&B!==(k??!1)&&(Qe=e.jsx($.Provider,{value:B,children:Qe})),Qe});return t.muiName="Grid",t}const Nd=_o(),Fd=Nd;function Hd(c){return qr("MuiGrid",c)}const Wd=[0,1,2,3,4,5,6,7,8,9,10],Vd=["column-reverse","column","row-reverse","row"],Zd=["nowrap","wrap-reverse","wrap"],cr=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Ud=Lr("MuiGrid",["root","container","item",...Wd.map(c=>`spacing-xs-${c}`),...Vd.map(c=>`direction-xs-${c}`),...Zd.map(c=>`wrap-xs-${c}`),...cr.map(c=>`grid-xs-${c}`),...cr.map(c=>`grid-sm-${c}`),...cr.map(c=>`grid-md-${c}`),...cr.map(c=>`grid-lg-${c}`),...cr.map(c=>`grid-xl-${c}`)]),Gd=Ud,Kd=ya(),Jd=Kd;function Yd(c){return qr("MuiStack",c)}const Xd=Lr("MuiStack",["root"]),Qd=Xd;function e0(){throw new Error(Rl(20))}const t0=Object.freeze(Object.defineProperty({__proto__:null,Box:rd,Container:jd,GlobalStyles:kl,RtlProvider:$l,Stack:Jd,StyledEngineProvider:Pl,ThemeProvider:Ol,Unstable_Grid:Fd,alignContent:Ja,alignItems:Ka,alignSelf:to,alpha:Tl,backgroundColor:Al,bgcolor:Il,blend:Dl,border:El,borderBottom:ql,borderBottomColor:Ll,borderColor:Bl,borderLeft:zl,borderLeftColor:Nl,borderRadius:Fl,borderRight:Hl,borderRightColor:Wl,borderTop:Vl,borderTopColor:Zl,borderTransform:Ul,borders:ei,bottom:lo,boxSizing:Gl,breakpoints:Kl,color:Jl,colorChannel:Yl,columnGap:Xl,compose:Er,containerClasses:Md,createBox:ua,createBreakpoints:Ql,createContainer:fa,createGrid:_o,createSpacing:ec,createStack:ya,createStyled:tc,createTheme:ha,createUnarySpacing:rc,createUnaryUnit:nc,css:ic,darken:sc,decomposeColor:ac,display:fi,emphasize:oc,experimental_sx:e0,flex:Xa,flexBasis:Va,flexDirection:Za,flexGrow:Qa,flexShrink:eo,flexWrap:Ua,flexbox:hi,fontFamily:uo,fontSize:fo,fontStyle:ho,fontWeight:po,gap:lc,getContainerUtilityClass:wd,getContrastRatio:cc,getGridUtilityClass:Hd,getLuminance:uc,getPath:dc,getStackUtilityClass:Yd,getStyleFromPropValue:fc,getStyleValue:hc,getThemeProps:pc,getValue:mc,grid:ti,gridArea:gc,gridAutoColumns:vc,gridAutoFlow:yc,gridAutoRows:bc,gridClasses:Gd,gridColumn:xc,gridRow:_c,gridTemplateAreas:jc,gridTemplateColumns:wc,gridTemplateRows:Sc,handleBreakpoints:Mc,height:Cc,hexToRgb:Rc,hslToRgb:kc,justifyContent:Ga,justifyItems:ro,justifySelf:no,keyframes:ba,left:co,letterSpacing:mo,lighten:$c,lineHeight:vo,major:gd,margin:Pc,marginKeys:Oc,maxHeight:Tc,maxWidth:Ac,mergeBreakpointsInOrder:Ic,minHeight:Dc,minWidth:Ec,minor:vd,order:Ya,outline:qc,outlineColor:Lc,padding:Bc,paddingKeys:zc,palette:ri,paletteTransform:Nc,patch:yd,position:io,positions:pi,preReleaseLabel:bd,preReleaseNumber:xd,private_safeAlpha:Fc,private_safeColorChannel:Hc,private_safeDarken:Wc,private_safeEmphasize:Vc,private_safeLighten:Zc,recomposeColor:Uc,responsivePropType:B1,rgbToHex:Gc,right:oo,rowGap:Kc,shadows:mi,shape:Jc,shouldForwardProp:Yc,sizeHeight:Xc,sizeWidth:Qc,sizing:ni,sizingTransform:eu,spacing:ii,stackClasses:Qd,style:ne,styled:pa,systemDefaultTheme:tu,textAlign:yo,textTransform:go,top:ao,typography:gi,typographyVariant:bo,unstable_createCssVarsProvider:w1,unstable_createCssVarsTheme:pd,unstable_createGetCssVar:S1,unstable_createStyleFunctionSx:ru,unstable_cssVarsParser:M1,unstable_defaultSxConfig:nu,unstable_extendSxProp:ga,unstable_getThemeValue:Y1,unstable_prepareCssVars:Na,unstable_resolveBreakpointValues:iu,unstable_styleFunctionSx:su,unstable_traverseBreakpoints:Bt,useMediaQuery:au,useRtl:ou,useTheme:ma,useThemeProps:va,useThemeWithoutDefault:lu,version:md,width:cu,zIndex:so},Symbol.toStringTag,{value:"Module"}));var jo=function(c){xa(C,c);function C(){for(var S,$=arguments.length,u=new Array($),x=0;x<$;x++)u[x]=arguments[x];return S=c.call.apply(c,[this].concat(u))||this,S.handleEnter=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onEnter",0,v)},S.handleEntering=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onEntering",0,v)},S.handleEntered=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onEntered",0,v)},S.handleExit=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onExit",1,v)},S.handleExiting=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onExiting",1,v)},S.handleExited=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onExited",1,v)},S}var P=C.prototype;return P.handleLifecycle=function($,u,x){var t,v=this.props.children,p=Ke.Children.toArray(v)[u];if(p.props[$]&&(t=p.props)[$].apply(t,x),this.props[$]){var f=p.props.nodeRef?void 0:uu.findDOMNode(this);this.props[$](f)}},P.render=function(){var $=this.props,u=$.children,x=$.in,t=si($,["children","in"]),v=Ke.Children.toArray(u),p=v[0],f=v[1];return delete t.onEnter,delete t.onEntering,delete t.onEntered,delete t.onExit,delete t.onExiting,delete t.onExited,Ke.createElement(_a,t,x?Ke.cloneElement(p,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):Ke.cloneElement(f,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},C}(Ke.Component);jo.propTypes={};const r0=jo;var Ur,Gr;function n0(c,C){return!(c===C||Ke.isValidElement(c)&&Ke.isValidElement(C)&&c.key!=null&&c.key===C.key)}var sr={out:"out-in",in:"in-out"},rn=function(C,P,S){return function(){var $;C.props[P]&&($=C.props)[P].apply($,arguments),S()}},i0=(Ur={},Ur[sr.out]=function(c){var C=c.current,P=c.changeState;return Ke.cloneElement(C,{in:!1,onExited:rn(C,"onExited",function(){P(Ir,null)})})},Ur[sr.in]=function(c){var C=c.current,P=c.changeState,S=c.children;return[C,Ke.cloneElement(S,{in:!0,onEntered:rn(S,"onEntered",function(){P(Ir)})})]},Ur),s0=(Gr={},Gr[sr.out]=function(c){var C=c.children,P=c.changeState;return Ke.cloneElement(C,{in:!0,onEntered:rn(C,"onEntered",function(){P(Xr,Ke.cloneElement(C,{in:!0}))})})},Gr[sr.in]=function(c){var C=c.current,P=c.children,S=c.changeState;return[Ke.cloneElement(C,{in:!1,onExited:rn(C,"onExited",function(){S(Xr,Ke.cloneElement(P,{in:!0}))})}),Ke.cloneElement(P,{in:!0})]},Gr),bi=function(c){xa(C,c);function C(){for(var S,$=arguments.length,u=new Array($),x=0;x<$;x++)u[x]=arguments[x];return S=c.call.apply(c,[this].concat(u))||this,S.state={status:Xr,current:null},S.appeared=!1,S.changeState=function(t,v){v===void 0&&(v=S.state.current),S.setState({status:t,current:v})},S}var P=C.prototype;return P.componentDidMount=function(){this.appeared=!0},C.getDerivedStateFromProps=function($,u){return $.children==null?{current:null}:u.status===Ir&&$.mode===sr.in?{status:Ir}:u.current&&n0(u.current,$.children)?{status:Qi}:{current:Ke.cloneElement($.children,{in:!0})}},P.render=function(){var $=this.props,u=$.children,x=$.mode,t=this.state,v=t.status,p=t.current,f={children:u,current:p,changeState:this.changeState,status:v},r;switch(v){case Ir:r=s0[x](f);break;case Qi:r=i0[x](f);break;case Xr:r=p}return Ke.createElement(du.Provider,{value:{isMounting:!this.appeared}},r)},C}(Ke.Component);bi.propTypes={};bi.defaultProps={mode:sr.out};const a0=bi,o0=Object.freeze(Object.defineProperty({__proto__:null,CSSTransition:D1,ReplaceTransition:r0,SwitchTransition:a0,Transition:fu,TransitionGroup:_a,config:hu},Symbol.toStringTag,{value:"Module"}));var l0=Array.prototype,ds=l0.splice;function c0(c,C,P,S){var $=mu,u=-1,x=C.length,t=c;for(c===C&&(C=pu(C));++u<x;)for(var v=0,p=C[u],f=p;(v=$(t,f,v))>-1;)t!==c&&ds.call(t,v,1),ds.call(c,v,1);return c}function u0(c,C){return c&&c.length&&C&&C.length?c0(c,C):c}var d0=gu(u0);const f0={width:256,height:250,body:'<path fill="#161614" d="M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46c6.397 1.185 8.746-2.777 8.746-6.158c0-3.052-.12-13.135-.174-23.83c-35.61 7.742-43.124-15.103-43.124-15.103c-5.823-14.795-14.213-18.73-14.213-18.73c-11.613-7.944.876-7.78.876-7.78c12.853.902 19.621 13.19 19.621 13.19c11.417 19.568 29.945 13.911 37.249 10.64c1.149-8.272 4.466-13.92 8.127-17.116c-28.431-3.236-58.318-14.212-58.318-63.258c0-13.975 5-25.394 13.188-34.358c-1.329-3.224-5.71-16.242 1.24-33.874c0 0 10.749-3.44 35.21 13.121c10.21-2.836 21.16-4.258 32.038-4.307c10.878.049 21.837 1.47 32.066 4.307c24.431-16.56 35.165-13.12 35.165-13.12c6.967 17.63 2.584 30.65 1.255 33.873c8.207 8.964 13.173 20.383 13.173 34.358c0 49.163-29.944 59.988-58.447 63.157c4.591 3.972 8.682 11.762 8.682 23.704c0 17.126-.148 30.91-.148 35.126c0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002C256 57.307 198.691 0 128.001 0Zm-80.06 182.34c-.282.636-1.283.827-2.194.39c-.929-.417-1.45-1.284-1.15-1.922c.276-.655 1.279-.838 2.205-.399c.93.418 1.46 1.293 1.139 1.931Zm6.296 5.618c-.61.566-1.804.303-2.614-.591c-.837-.892-.994-2.086-.375-2.66c.63-.566 1.787-.301 2.626.591c.838.903 1 2.088.363 2.66Zm4.32 7.188c-.785.545-2.067.034-2.86-1.104c-.784-1.138-.784-2.503.017-3.05c.795-.547 2.058-.055 2.861 1.075c.782 1.157.782 2.522-.019 3.08Zm7.304 8.325c-.701.774-2.196.566-3.29-.49c-1.119-1.032-1.43-2.496-.726-3.27c.71-.776 2.213-.558 3.315.49c1.11 1.03 1.45 2.505.701 3.27Zm9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033c-1.448-.439-2.395-1.613-2.103-2.626c.301-1.01 1.747-1.484 3.207-1.028c1.446.436 2.396 1.602 2.095 2.622Zm10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95c-1.53.034-2.769-.82-2.786-1.86c0-1.065 1.202-1.932 2.733-1.958c1.522-.03 2.768.818 2.768 1.868Zm10.555-.405c.182 1.03-.875 2.088-2.387 2.37c-1.485.271-2.861-.365-3.05-1.386c-.184-1.056.893-2.114 2.376-2.387c1.514-.263 2.868.356 3.061 1.403Z"/>'};var xi={},h0=K;Object.defineProperty(xi,"__esModule",{value:!0});var wo=xi.default=void 0,p0=h0(ot()),m0=e;wo=xi.default=(0,p0.default)((0,m0.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 _i={},g0=K;Object.defineProperty(_i,"__esModule",{value:!0});var So=_i.default=void 0,v0=g0(ot()),y0=e;So=_i.default=(0,v0.default)((0,y0.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 ji={},b0=K;Object.defineProperty(ji,"__esModule",{value:!0});var nn=ji.default=void 0,x0=b0(ot()),_0=e;nn=ji.default=(0,x0.default)((0,_0.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var wi={},j0=K;Object.defineProperty(wi,"__esModule",{value:!0});var Mo=wi.default=void 0,w0=j0(ot()),S0=e;Mo=wi.default=(0,w0.default)((0,S0.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 Si={},M0=K;Object.defineProperty(Si,"__esModule",{value:!0});var Co=Si.default=void 0,C0=M0(ot()),R0=e;Co=Si.default=(0,C0.default)((0,R0.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");const k0={width:24,height:24,body:'<path fill="currentColor" d="M4.975 15q-.425 0-.7-.288T4 14q0-.425.288-.713T5 13h14.025q.425 0 .7.288T20 14q0 .425-.288.713T19 15H4.975Zm0 4q-.425 0-.7-.288T4 18q0-.425.288-.713T5 17h14.025q.425 0 .7.288T20 18q0 .425-.288.713T19 19H4.975Zm0-8q-.425 0-.7-.288T4 10q0-.425.288-.713T5 9h14.025q.425 0 .7.288T20 10q0 .425-.288.713T19 11H4.975Zm0-4q-.425 0-.7-.288T4 6q0-.425.288-.713T5 5h14.025q.425 0 .7.288T20 6q0 .425-.288.713T19 7H4.975Z"/>'},$0=k0;function Mi({triggers:c,onEnterEdit:C,disabled:P}){const S=Ke.useRef(null),[$,u]=Ke.useState(!1),x=p=>{u(!1),p()},t=()=>{u(p=>!p)},v=p=>{S.current&&S.current.contains(p.target)||u(!1)};return c.length===0?e.jsx(Ye,{"data-cy":"schema-form-item-edit",onClick:C,disabled:P,size:"large",children:e.jsx(u1,{})}):e.jsxs(e.Fragment,{children:[e.jsx(h1,{variant:"outlined",ref:S,"aria-label":"split button",children:e.jsx(je,{size:"large","aria-controls":$?"split-button-menu":void 0,"aria-expanded":$?"true":void 0,sx:{paddingLeft:"12px",paddingRight:"12px"},onClick:t,children:e.jsx(f1,{})})}),e.jsx(ja,{sx:{zIndex:9999},open:$,anchorEl:S.current,role:void 0,placement:"bottom-end",children:e.jsx(vu,{children:e.jsx(yu,{onClickAway:v,children:e.jsx(bu,{id:"split-button-menu",autoFocusItem:!0,children:c.map(p=>e.jsx(xu,{onClick:()=>x(p.handler),children:p.title},p.key))})})})})]})}Mi.propTypes={triggers:F.arrayOf(F.shape({key:F.string.isRequired,title:F.string.isRequired,handler:F.func.isRequired})),onEnterEdit:F.func.isRequired,disabled:F.bool.isRequired};Mi.defaultProps={triggers:[]};const fs=(c,C,P)=>c===null&&C&&P?"******":c?C?"******":c:"",P0=ba`
1
+ import{ip as hl,iq as pl,ir as Er,is as ne,it as ei,iu as ti,iv as ri,iw as ni,ix as ii,c1 as qr,iy as ml,iz as gl,c0 as Lr,iA as ua,iB as vl,dh as yl,P as F,dn as bl,cj as xl,iC as _l,iD as jl,g5 as wl,iE as Sl,c5 as da,b$ as si,bZ as tr,iF as fa,iG as ha,iH as pa,r as H,i1 as ma,iI as ga,j as e,c4 as Ml,iJ as Cl,fD as va,iK as ya,dz as Rl,iL as kl,iM as $l,dT as Pl,dD as Ol,ay as Tl,iN as Al,iO as Il,iP as Dl,iQ as El,iR as ql,iS as Ll,iT as Bl,iU as zl,iV as Nl,iW as Fl,iX as Hl,iY as Wl,iZ as Vl,i_ as Zl,i$ as Ul,j0 as Gl,j1 as Kl,j2 as Jl,j3 as Yl,j4 as Xl,dG as Ql,dF as ec,j5 as tc,j6 as rc,j7 as nc,av as ic,dW as sc,dX as ac,d_ as oc,j8 as lc,d$ as cc,e0 as uc,j9 as dc,ja as fc,jb as hc,jc as pc,jd as mc,je as gc,jf as vc,jg as yc,jh as bc,ji as xc,jj as _c,jk as jc,jl as wc,jm as Sc,jn as Mc,jo as Cc,e1 as Rc,e2 as kc,e3 as ba,e4 as $c,jp as Pc,jq as Oc,jr as Tc,js as Ac,jt as Ic,ju as Dc,jv as Ec,jw as qc,jx as Lc,jy as Bc,jz as zc,jA as Nc,jB as Fc,jC as Hc,jD as Wc,jE as Vc,jF as Zc,e6 as Uc,e8 as Gc,jG as Kc,jH as Jc,jI as Yc,jJ as Xc,jK as Qc,jL as eu,jM as tu,jN as ru,dN as nu,jO as iu,dO as su,H as au,dk as ou,jP as lu,jQ as cu,i3 as xa,bi as Ke,d5 as uu,i0 as _a,jR as Xr,jS as Ir,jT as Qi,jU as du,i5 as fu,jV as hu,jW as pu,jX as mu,bP as gu,aQ as ot,aR as K,a5 as Ye,ep as je,fl as ja,eb as vu,by as yu,fk as bu,V as xu,e as it,t as ue,N,C as Dt,fS as Gn,n as mt,ej as ai,bn as wa,hn as _u,b7 as Sa,cA as ju,cS as wu,dx as Su,k as _e,fi as Kn,b as Ge,a_ as rt,br as Xe,jY as Mu,bF as oi,bk as ze,A as ae,bE as li,m as et,o as Ma,q as Cu,v as Ca,af as Ru,J as Ra,gF as ku,jZ as $u,ax as Pu,aZ as qe,X as rr,D as Ct,B as Ee,s as Ou,Y as Tu,Z as Jn,j_ as Au,d8 as Et,j$ as Iu,fn as Du,I as yt,F as ce,k0 as Eu,cZ as es,W as qu,g1 as ka,aC as Je,aW as ts,fT as ir,cv as V,Q as Le,aI as ye,aU as gt,bD as qt,k1 as Lu,k2 as Bu,k3 as zu,a4 as Nu,k4 as rs,c8 as nr,k5 as Fu,fj as at,am as Lt,x as $a,bz as Yn,O as Hu,cI as Pa,d9 as Wu,gM as an,k6 as Vu,be as Zu,g as Uu,cu as Dr,aM as Qr,k7 as Gu,d3 as st,k8 as Ku,k9 as lt,hz as ht,ka as Oa,kb as ci,kc as ui,kd as Ju,ke as Ta,kf as Yu,a0 as xt,kg as Xu,bm as Qu,aj as ns,a2 as Aa,bo as en,kh as Ia,bc as e1,hH as Mt,fU as Da,cX as Ea,E as t1,bb as is,fV as r1,fW as n1,G as Tn,M as i1,bx as s1}from"./index-DCLFGZPh.js";import{F as qa,R as La,s as a1,L as jt,d as o1,B as l1}from"./preference-pU76jzQz.js";import{d as ss}from"./ChevronRight-CKLF17f0.js";import{T as tn}from"./index-XfRo_cGN.js";import{w as ar,P as c1}from"./permission-D3HvUPq1.js";import{u as di}from"./index-tlyZe0mw.js";import{d as Ba}from"./Done-DfUM5Gdn.js";import{E as u1,g as d1}from"./chain-DIbqGRh0.js";import{d as f1}from"./ArrowDropDown-CNFXgKMZ.js";import{B as h1}from"./ButtonGroup-CvC6DpxV.js";import{a as as,A as p1}from"./Autocomplete-zyxPkFQH.js";import{S as J,B as m1}from"./index-lB7zAkhG.js";import{C as g1,R as v1,d as y1}from"./Public-B0_LmrZq.js";import{u as nt}from"./blocklet-C7o_whxT.js";import{C as b1}from"./click-to-copy-B_d8u4qe.js";import{u as on}from"./team-B-C4WxJS.js";import{I as za}from"./index-D4LFUy7F.js";import{V as x1,K as _1}from"./status-BavzHI8a.js";import{S as pt}from"./Switch-DKvkiKC7.js";import{E as j1}from"./index-BLXO0nyi.js";import{p as Na,c as w1,a as S1,b as M1,u as C1,d as R1,e as k1,H as $1,D as ln}from"./index-DcZQiQhe.js";import{u as Rt,C as Q,b as os}from"./index.esm-c2yth77n.js";import{S as cn}from"./switch-control-NWXvW_Wd.js";import{S as P1}from"./index-DnLSu2Em.js";import{d as ls}from"./Delete-_Fu6HSXD.js";import{d as cs}from"./Add-31OD_13E.js";import{S as O1}from"./Slider-BFrTpqHy.js";import"./index-DI46FVUk.js";import{C as T1}from"./index-C6oHEPXU.js";import{u as Fa}from"./use-mobile-DMA1Bhgh.js";import{S as An}from"./simple-select-DcAlzGgz.js";import{d as A1}from"./actions-CHwbzvDq.js";import{r as I1}from"./refType-BVHdiekZ.js";import{C as D1}from"./CSSTransition-B2XQ7Y5d.js";import{C as E1}from"./CardContent-BJ0aUqj5.js";import{R as Ha,a as Wa}from"./url-evaluation-lQ86pD_C.js";import"./omit-xBrXSh46.js";import"./index-D-8oCexP.js";import"./index-fzuQ6QSZ.js";import"./iframe-Ex_gbVob.js";import"./getValidReactChildren-7EPQhd7n.js";import"./ListSubheader-BaKteroh.js";import"./collapse-BoD6SaLC.js";import"./ErrorOutline-K0V95RaU.js";import"./TableRow-Dlew3Q36.js";import"./useThemeProps-HKqSQ1Oh.js";import"./emotion-react.browser.esm-DtDsQxkS.js";import"./ViewColumn-BDcQSSbP.js";import"./Search-CCJYN1r6.js";import"./Clear-BXGkmSCA.js";import"./MoreVert-vYpS0zQc.js";import"./TableSearch-Dsw8k2Y-.js";import"./useLocalStorage-BihOtGwI.js";import"./get-safe-url-CPkpK13h.js";const q1=Object.freeze(Object.defineProperty({__proto__:null,default:hl,useDefaultProps:pl},Symbol.toStringTag,{value:"Module"})),L1={},B1=L1,z1=ne({prop:"displayPrint",cssProperty:!1,transform:c=>({"@media print":{display:c}})}),N1=ne({prop:"display"}),F1=ne({prop:"overflow"}),H1=ne({prop:"textOverflow"}),W1=ne({prop:"visibility"}),V1=ne({prop:"whiteSpace"}),fi=Er(z1,N1,F1,H1,W1,V1),Va=ne({prop:"flexBasis"}),Za=ne({prop:"flexDirection"}),Ua=ne({prop:"flexWrap"}),Ga=ne({prop:"justifyContent"}),Ka=ne({prop:"alignItems"}),Ja=ne({prop:"alignContent"}),Ya=ne({prop:"order"}),Xa=ne({prop:"flex"}),Qa=ne({prop:"flexGrow"}),eo=ne({prop:"flexShrink"}),to=ne({prop:"alignSelf"}),ro=ne({prop:"justifyItems"}),no=ne({prop:"justifySelf"}),Z1=Er(Va,Za,Ua,Ga,Ka,Ja,Ya,Xa,Qa,eo,to,ro,no),hi=Z1,io=ne({prop:"position"}),so=ne({prop:"zIndex",themeKey:"zIndex"}),ao=ne({prop:"top"}),oo=ne({prop:"right"}),lo=ne({prop:"bottom"}),co=ne({prop:"left"}),pi=Er(io,so,ao,oo,lo,co),U1=ne({prop:"boxShadow",themeKey:"shadows"}),mi=U1,uo=ne({prop:"fontFamily",themeKey:"typography"}),fo=ne({prop:"fontSize",themeKey:"typography"}),ho=ne({prop:"fontStyle",themeKey:"typography"}),po=ne({prop:"fontWeight",themeKey:"typography"}),mo=ne({prop:"letterSpacing"}),go=ne({prop:"textTransform"}),vo=ne({prop:"lineHeight"}),yo=ne({prop:"textAlign"}),bo=ne({prop:"typography",cssProperty:!1,themeKey:"typography"}),G1=Er(bo,uo,fo,ho,po,mo,vo,yo,go),gi=G1,us={borders:ei.filterProps,display:fi.filterProps,flexbox:hi.filterProps,grid:ti.filterProps,positions:pi.filterProps,palette:ri.filterProps,shadows:mi.filterProps,sizing:ni.filterProps,spacing:ii.filterProps,typography:gi.filterProps},K1={borders:ei,display:fi,flexbox:hi,grid:ti,positions:pi,palette:ri,shadows:mi,sizing:ni,spacing:ii,typography:gi},J1=Object.keys(us).reduce((c,C)=>(us[C].forEach(P=>{c[P]=K1[C]}),c),{});function Y1(c,C,P){const S={[c]:C,theme:P},$=J1[c];return $?$(S):{[c]:C}}const X1=Object.freeze(Object.defineProperty({__proto__:null,default:qr,globalStateClasses:ml,isGlobalState:gl},Symbol.toStringTag,{value:"Module"})),Q1=Object.freeze(Object.defineProperty({__proto__:null,default:Lr},Symbol.toStringTag,{value:"Module"})),ed=Lr("MuiBox",["root"]),td=ua({defaultClassName:ed.root,generateClassName:vl.generate}),rd=td,nd=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"}));function id(c,C){return()=>null}const sd=id(F.elementType),ad=Object.freeze(Object.defineProperty({__proto__:null,default:sd},Symbol.toStringTag,{value:"Module"})),od=Object.freeze(Object.defineProperty({__proto__:null,default:I1},Symbol.toStringTag,{value:"Module"})),ld=Object.freeze(Object.defineProperty({__proto__:null,default:bl},Symbol.toStringTag,{value:"Module"})),cd=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),ud=Object.freeze(Object.defineProperty({__proto__:null,Timeout:_l,default:jl},Symbol.toStringTag,{value:"Module"})),dd=Object.freeze(Object.defineProperty({__proto__:null,default:wl,teardown:Sl},Symbol.toStringTag,{value:"Module"})),fd=Object.freeze(Object.defineProperty({__proto__:null,default:da},Symbol.toStringTag,{value:"Module"})),hd=["cssVarPrefix","shouldSkipGeneratingVar"];function pd(c){const{cssVarPrefix:C,shouldSkipGeneratingVar:P}=c,S=si(c,hd);return tr({},c,Na(S,{prefix:C,shouldSkipGeneratingVar:P}))}const md="5.17.1",gd=5,vd=17,yd=1,bd=null,xd=null,_d=fa(),jd=_d;function wd(c){return qr("MuiContainer",c)}const Sd=Lr("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]),Md=Sd,Cd=(c,C)=>c.filter(P=>C.includes(P)),Bt=(c,C,P)=>{const S=c.keys[0];Array.isArray(C)?C.forEach(($,u)=>{P((x,t)=>{u<=c.keys.length-1&&(u===0?Object.assign(x,t):x[c.up(c.keys[u])]=t)},$)}):C&&typeof C=="object"?(Object.keys(C).length>c.keys.length?c.keys:Cd(c.keys,Object.keys(C))).forEach(u=>{if(c.keys.indexOf(u)!==-1){const x=C[u];x!==void 0&&P((t,v)=>{S===u?Object.assign(t,v):t[c.up(u)]=v},x)}}):(typeof C=="number"||typeof C=="string")&&P(($,u)=>{Object.assign($,u)},C)};function bt(c){return c?`Level${c}`:""}function Br(c){return c.unstable_level>0&&c.container}function xo(c){return function(P){return`var(--Grid-${P}Spacing${bt(c.unstable_level)})`}}function vi(c){return function(P){return c.unstable_level===0?`var(--Grid-${P}Spacing)`:`var(--Grid-${P}Spacing${bt(c.unstable_level-1)})`}}function yi(c){return c.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${bt(c.unstable_level-1)})`}const Rd=({theme:c,ownerState:C})=>{const P=xo(C),S={};return Bt(c.breakpoints,C.gridSize,($,u)=>{let x={};u===!0&&(x={flexBasis:0,flexGrow:1,maxWidth:"100%"}),u==="auto"&&(x={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof u=="number"&&(x={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${u} / ${yi(C)}${Br(C)?` + ${P("column")}`:""})`}),$(S,x)}),S},kd=({theme:c,ownerState:C})=>{const P={};return Bt(c.breakpoints,C.gridOffset,(S,$)=>{let u={};$==="auto"&&(u={marginLeft:"auto"}),typeof $=="number"&&(u={marginLeft:$===0?"0px":`calc(100% * ${$} / ${yi(C)})`}),S(P,u)}),P},$d=({theme:c,ownerState:C})=>{if(!C.container)return{};const P=Br(C)?{[`--Grid-columns${bt(C.unstable_level)}`]:yi(C)}:{"--Grid-columns":12};return Bt(c.breakpoints,C.columns,(S,$)=>{S(P,{[`--Grid-columns${bt(C.unstable_level)}`]:$})}),P},Pd=({theme:c,ownerState:C})=>{if(!C.container)return{};const P=vi(C),S=Br(C)?{[`--Grid-rowSpacing${bt(C.unstable_level)}`]:P("row")}:{};return Bt(c.breakpoints,C.rowSpacing,($,u)=>{var x;$(S,{[`--Grid-rowSpacing${bt(C.unstable_level)}`]:typeof u=="string"?u:(x=c.spacing)==null?void 0:x.call(c,u)})}),S},Od=({theme:c,ownerState:C})=>{if(!C.container)return{};const P=vi(C),S=Br(C)?{[`--Grid-columnSpacing${bt(C.unstable_level)}`]:P("column")}:{};return Bt(c.breakpoints,C.columnSpacing,($,u)=>{var x;$(S,{[`--Grid-columnSpacing${bt(C.unstable_level)}`]:typeof u=="string"?u:(x=c.spacing)==null?void 0:x.call(c,u)})}),S},Td=({theme:c,ownerState:C})=>{if(!C.container)return{};const P={};return Bt(c.breakpoints,C.direction,(S,$)=>{S(P,{flexDirection:$})}),P},Ad=({ownerState:c})=>{const C=xo(c),P=vi(c);return tr({minWidth:0,boxSizing:"border-box"},c.container&&tr({display:"flex",flexWrap:"wrap"},c.wrap&&c.wrap!=="wrap"&&{flexWrap:c.wrap},{margin:`calc(${C("row")} / -2) calc(${C("column")} / -2)`},c.disableEqualOverflow&&{margin:`calc(${C("row")} * -1) 0px 0px calc(${C("column")} * -1)`}),(!c.container||Br(c))&&tr({padding:`calc(${P("row")} / 2) calc(${P("column")} / 2)`},(c.disableEqualOverflow||c.parentDisableEqualOverflow)&&{padding:`${P("row")} 0px 0px ${P("column")}`}))},Id=c=>{const C=[];return Object.entries(c).forEach(([P,S])=>{S!==!1&&S!==void 0&&C.push(`grid-${P}-${String(S)}`)}),C},Dd=(c,C="xs")=>{function P(S){return S===void 0?!1:typeof S=="string"&&!Number.isNaN(Number(S))||typeof S=="number"&&S>0}if(P(c))return[`spacing-${C}-${String(c)}`];if(typeof c=="object"&&!Array.isArray(c)){const S=[];return Object.entries(c).forEach(([$,u])=>{P(u)&&S.push(`spacing-${$}-${String(u)}`)}),S}return[]},Ed=c=>c===void 0?[]:typeof c=="object"?Object.entries(c).map(([C,P])=>`direction-${C}-${P}`):[`direction-xs-${String(c)}`],qd=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],Ld=ha(),Bd=pa("div",{name:"MuiGrid",slot:"Root",overridesResolver:(c,C)=>C.root});function zd(c){return va({props:c,name:"MuiGrid",defaultTheme:Ld})}function _o(c={}){const{createStyledComponent:C=Bd,useThemeProps:P=zd,componentName:S="MuiGrid"}=c,$=H.createContext(void 0),u=(v,p)=>{const{container:f,direction:r,spacing:l,wrap:o,gridSize:i}=v,s={root:["root",f&&"container",o!=="wrap"&&`wrap-xs-${String(o)}`,...Ed(r),...Id(i),...f?Dd(l,p.breakpoints.keys[0]):[]]};return da(s,g=>qr(S,g),{})},x=C($d,Od,Pd,Rd,Td,Ad,kd),t=H.forwardRef(function(p,f){var r,l,o,i,s,g,a,n;const h=ma(),_=P(p),b=ga(_),k=H.useContext($),{className:R,children:m,columns:y=12,container:M=!1,component:I="div",direction:z="row",wrap:T="wrap",spacing:d=0,rowSpacing:j=d,columnSpacing:O=d,disableEqualOverflow:A,unstable_level:D=0}=b,q=si(b,qd);let B=A;D&&A!==void 0&&(B=p.disableEqualOverflow);const E={},w={},L={};Object.entries(q).forEach(([X,ie])=>{h.breakpoints.values[X]!==void 0?E[X]=ie:h.breakpoints.values[X.replace("Offset","")]!==void 0?w[X.replace("Offset","")]=ie:L[X]=ie});const W=(r=p.columns)!=null?r:D?void 0:y,Z=(l=p.spacing)!=null?l:D?void 0:d,U=(o=(i=p.rowSpacing)!=null?i:p.spacing)!=null?o:D?void 0:j,re=(s=(g=p.columnSpacing)!=null?g:p.spacing)!=null?s:D?void 0:O,G=tr({},b,{level:D,columns:W,container:M,direction:z,wrap:T,spacing:Z,rowSpacing:U,columnSpacing:re,gridSize:E,gridOffset:w,disableEqualOverflow:(a=(n=B)!=null?n:k)!=null?a:!1,parentDisableEqualOverflow:k}),ee=u(G,h);let Qe=e.jsx(x,tr({ref:f,as:I,ownerState:G,className:Ml(ee.root,R)},L,{children:H.Children.map(m,X=>{if(H.isValidElement(X)&&Cl(X,["Grid"])){var ie,ut;return H.cloneElement(X,{unstable_level:(ie=(ut=X.props)==null?void 0:ut.unstable_level)!=null?ie:D+1})}return X})}));return B!==void 0&&B!==(k??!1)&&(Qe=e.jsx($.Provider,{value:B,children:Qe})),Qe});return t.muiName="Grid",t}const Nd=_o(),Fd=Nd;function Hd(c){return qr("MuiGrid",c)}const Wd=[0,1,2,3,4,5,6,7,8,9,10],Vd=["column-reverse","column","row-reverse","row"],Zd=["nowrap","wrap-reverse","wrap"],cr=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Ud=Lr("MuiGrid",["root","container","item",...Wd.map(c=>`spacing-xs-${c}`),...Vd.map(c=>`direction-xs-${c}`),...Zd.map(c=>`wrap-xs-${c}`),...cr.map(c=>`grid-xs-${c}`),...cr.map(c=>`grid-sm-${c}`),...cr.map(c=>`grid-md-${c}`),...cr.map(c=>`grid-lg-${c}`),...cr.map(c=>`grid-xl-${c}`)]),Gd=Ud,Kd=ya(),Jd=Kd;function Yd(c){return qr("MuiStack",c)}const Xd=Lr("MuiStack",["root"]),Qd=Xd;function e0(){throw new Error(Rl(20))}const t0=Object.freeze(Object.defineProperty({__proto__:null,Box:rd,Container:jd,GlobalStyles:kl,RtlProvider:$l,Stack:Jd,StyledEngineProvider:Pl,ThemeProvider:Ol,Unstable_Grid:Fd,alignContent:Ja,alignItems:Ka,alignSelf:to,alpha:Tl,backgroundColor:Al,bgcolor:Il,blend:Dl,border:El,borderBottom:ql,borderBottomColor:Ll,borderColor:Bl,borderLeft:zl,borderLeftColor:Nl,borderRadius:Fl,borderRight:Hl,borderRightColor:Wl,borderTop:Vl,borderTopColor:Zl,borderTransform:Ul,borders:ei,bottom:lo,boxSizing:Gl,breakpoints:Kl,color:Jl,colorChannel:Yl,columnGap:Xl,compose:Er,containerClasses:Md,createBox:ua,createBreakpoints:Ql,createContainer:fa,createGrid:_o,createSpacing:ec,createStack:ya,createStyled:tc,createTheme:ha,createUnarySpacing:rc,createUnaryUnit:nc,css:ic,darken:sc,decomposeColor:ac,display:fi,emphasize:oc,experimental_sx:e0,flex:Xa,flexBasis:Va,flexDirection:Za,flexGrow:Qa,flexShrink:eo,flexWrap:Ua,flexbox:hi,fontFamily:uo,fontSize:fo,fontStyle:ho,fontWeight:po,gap:lc,getContainerUtilityClass:wd,getContrastRatio:cc,getGridUtilityClass:Hd,getLuminance:uc,getPath:dc,getStackUtilityClass:Yd,getStyleFromPropValue:fc,getStyleValue:hc,getThemeProps:pc,getValue:mc,grid:ti,gridArea:gc,gridAutoColumns:vc,gridAutoFlow:yc,gridAutoRows:bc,gridClasses:Gd,gridColumn:xc,gridRow:_c,gridTemplateAreas:jc,gridTemplateColumns:wc,gridTemplateRows:Sc,handleBreakpoints:Mc,height:Cc,hexToRgb:Rc,hslToRgb:kc,justifyContent:Ga,justifyItems:ro,justifySelf:no,keyframes:ba,left:co,letterSpacing:mo,lighten:$c,lineHeight:vo,major:gd,margin:Pc,marginKeys:Oc,maxHeight:Tc,maxWidth:Ac,mergeBreakpointsInOrder:Ic,minHeight:Dc,minWidth:Ec,minor:vd,order:Ya,outline:qc,outlineColor:Lc,padding:Bc,paddingKeys:zc,palette:ri,paletteTransform:Nc,patch:yd,position:io,positions:pi,preReleaseLabel:bd,preReleaseNumber:xd,private_safeAlpha:Fc,private_safeColorChannel:Hc,private_safeDarken:Wc,private_safeEmphasize:Vc,private_safeLighten:Zc,recomposeColor:Uc,responsivePropType:B1,rgbToHex:Gc,right:oo,rowGap:Kc,shadows:mi,shape:Jc,shouldForwardProp:Yc,sizeHeight:Xc,sizeWidth:Qc,sizing:ni,sizingTransform:eu,spacing:ii,stackClasses:Qd,style:ne,styled:pa,systemDefaultTheme:tu,textAlign:yo,textTransform:go,top:ao,typography:gi,typographyVariant:bo,unstable_createCssVarsProvider:w1,unstable_createCssVarsTheme:pd,unstable_createGetCssVar:S1,unstable_createStyleFunctionSx:ru,unstable_cssVarsParser:M1,unstable_defaultSxConfig:nu,unstable_extendSxProp:ga,unstable_getThemeValue:Y1,unstable_prepareCssVars:Na,unstable_resolveBreakpointValues:iu,unstable_styleFunctionSx:su,unstable_traverseBreakpoints:Bt,useMediaQuery:au,useRtl:ou,useTheme:ma,useThemeProps:va,useThemeWithoutDefault:lu,version:md,width:cu,zIndex:so},Symbol.toStringTag,{value:"Module"}));var jo=function(c){xa(C,c);function C(){for(var S,$=arguments.length,u=new Array($),x=0;x<$;x++)u[x]=arguments[x];return S=c.call.apply(c,[this].concat(u))||this,S.handleEnter=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onEnter",0,v)},S.handleEntering=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onEntering",0,v)},S.handleEntered=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onEntered",0,v)},S.handleExit=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onExit",1,v)},S.handleExiting=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onExiting",1,v)},S.handleExited=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onExited",1,v)},S}var P=C.prototype;return P.handleLifecycle=function($,u,x){var t,v=this.props.children,p=Ke.Children.toArray(v)[u];if(p.props[$]&&(t=p.props)[$].apply(t,x),this.props[$]){var f=p.props.nodeRef?void 0:uu.findDOMNode(this);this.props[$](f)}},P.render=function(){var $=this.props,u=$.children,x=$.in,t=si($,["children","in"]),v=Ke.Children.toArray(u),p=v[0],f=v[1];return delete t.onEnter,delete t.onEntering,delete t.onEntered,delete t.onExit,delete t.onExiting,delete t.onExited,Ke.createElement(_a,t,x?Ke.cloneElement(p,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):Ke.cloneElement(f,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},C}(Ke.Component);jo.propTypes={};const r0=jo;var Ur,Gr;function n0(c,C){return!(c===C||Ke.isValidElement(c)&&Ke.isValidElement(C)&&c.key!=null&&c.key===C.key)}var sr={out:"out-in",in:"in-out"},rn=function(C,P,S){return function(){var $;C.props[P]&&($=C.props)[P].apply($,arguments),S()}},i0=(Ur={},Ur[sr.out]=function(c){var C=c.current,P=c.changeState;return Ke.cloneElement(C,{in:!1,onExited:rn(C,"onExited",function(){P(Ir,null)})})},Ur[sr.in]=function(c){var C=c.current,P=c.changeState,S=c.children;return[C,Ke.cloneElement(S,{in:!0,onEntered:rn(S,"onEntered",function(){P(Ir)})})]},Ur),s0=(Gr={},Gr[sr.out]=function(c){var C=c.children,P=c.changeState;return Ke.cloneElement(C,{in:!0,onEntered:rn(C,"onEntered",function(){P(Xr,Ke.cloneElement(C,{in:!0}))})})},Gr[sr.in]=function(c){var C=c.current,P=c.children,S=c.changeState;return[Ke.cloneElement(C,{in:!1,onExited:rn(C,"onExited",function(){S(Xr,Ke.cloneElement(P,{in:!0}))})}),Ke.cloneElement(P,{in:!0})]},Gr),bi=function(c){xa(C,c);function C(){for(var S,$=arguments.length,u=new Array($),x=0;x<$;x++)u[x]=arguments[x];return S=c.call.apply(c,[this].concat(u))||this,S.state={status:Xr,current:null},S.appeared=!1,S.changeState=function(t,v){v===void 0&&(v=S.state.current),S.setState({status:t,current:v})},S}var P=C.prototype;return P.componentDidMount=function(){this.appeared=!0},C.getDerivedStateFromProps=function($,u){return $.children==null?{current:null}:u.status===Ir&&$.mode===sr.in?{status:Ir}:u.current&&n0(u.current,$.children)?{status:Qi}:{current:Ke.cloneElement($.children,{in:!0})}},P.render=function(){var $=this.props,u=$.children,x=$.mode,t=this.state,v=t.status,p=t.current,f={children:u,current:p,changeState:this.changeState,status:v},r;switch(v){case Ir:r=s0[x](f);break;case Qi:r=i0[x](f);break;case Xr:r=p}return Ke.createElement(du.Provider,{value:{isMounting:!this.appeared}},r)},C}(Ke.Component);bi.propTypes={};bi.defaultProps={mode:sr.out};const a0=bi,o0=Object.freeze(Object.defineProperty({__proto__:null,CSSTransition:D1,ReplaceTransition:r0,SwitchTransition:a0,Transition:fu,TransitionGroup:_a,config:hu},Symbol.toStringTag,{value:"Module"}));var l0=Array.prototype,ds=l0.splice;function c0(c,C,P,S){var $=mu,u=-1,x=C.length,t=c;for(c===C&&(C=pu(C));++u<x;)for(var v=0,p=C[u],f=p;(v=$(t,f,v))>-1;)t!==c&&ds.call(t,v,1),ds.call(c,v,1);return c}function u0(c,C){return c&&c.length&&C&&C.length?c0(c,C):c}var d0=gu(u0);const f0={width:256,height:250,body:'<path fill="#161614" d="M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46c6.397 1.185 8.746-2.777 8.746-6.158c0-3.052-.12-13.135-.174-23.83c-35.61 7.742-43.124-15.103-43.124-15.103c-5.823-14.795-14.213-18.73-14.213-18.73c-11.613-7.944.876-7.78.876-7.78c12.853.902 19.621 13.19 19.621 13.19c11.417 19.568 29.945 13.911 37.249 10.64c1.149-8.272 4.466-13.92 8.127-17.116c-28.431-3.236-58.318-14.212-58.318-63.258c0-13.975 5-25.394 13.188-34.358c-1.329-3.224-5.71-16.242 1.24-33.874c0 0 10.749-3.44 35.21 13.121c10.21-2.836 21.16-4.258 32.038-4.307c10.878.049 21.837 1.47 32.066 4.307c24.431-16.56 35.165-13.12 35.165-13.12c6.967 17.63 2.584 30.65 1.255 33.873c8.207 8.964 13.173 20.383 13.173 34.358c0 49.163-29.944 59.988-58.447 63.157c4.591 3.972 8.682 11.762 8.682 23.704c0 17.126-.148 30.91-.148 35.126c0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002C256 57.307 198.691 0 128.001 0Zm-80.06 182.34c-.282.636-1.283.827-2.194.39c-.929-.417-1.45-1.284-1.15-1.922c.276-.655 1.279-.838 2.205-.399c.93.418 1.46 1.293 1.139 1.931Zm6.296 5.618c-.61.566-1.804.303-2.614-.591c-.837-.892-.994-2.086-.375-2.66c.63-.566 1.787-.301 2.626.591c.838.903 1 2.088.363 2.66Zm4.32 7.188c-.785.545-2.067.034-2.86-1.104c-.784-1.138-.784-2.503.017-3.05c.795-.547 2.058-.055 2.861 1.075c.782 1.157.782 2.522-.019 3.08Zm7.304 8.325c-.701.774-2.196.566-3.29-.49c-1.119-1.032-1.43-2.496-.726-3.27c.71-.776 2.213-.558 3.315.49c1.11 1.03 1.45 2.505.701 3.27Zm9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033c-1.448-.439-2.395-1.613-2.103-2.626c.301-1.01 1.747-1.484 3.207-1.028c1.446.436 2.396 1.602 2.095 2.622Zm10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95c-1.53.034-2.769-.82-2.786-1.86c0-1.065 1.202-1.932 2.733-1.958c1.522-.03 2.768.818 2.768 1.868Zm10.555-.405c.182 1.03-.875 2.088-2.387 2.37c-1.485.271-2.861-.365-3.05-1.386c-.184-1.056.893-2.114 2.376-2.387c1.514-.263 2.868.356 3.061 1.403Z"/>'};var xi={},h0=K;Object.defineProperty(xi,"__esModule",{value:!0});var wo=xi.default=void 0,p0=h0(ot()),m0=e;wo=xi.default=(0,p0.default)((0,m0.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 _i={},g0=K;Object.defineProperty(_i,"__esModule",{value:!0});var So=_i.default=void 0,v0=g0(ot()),y0=e;So=_i.default=(0,v0.default)((0,y0.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 ji={},b0=K;Object.defineProperty(ji,"__esModule",{value:!0});var nn=ji.default=void 0,x0=b0(ot()),_0=e;nn=ji.default=(0,x0.default)((0,_0.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var wi={},j0=K;Object.defineProperty(wi,"__esModule",{value:!0});var Mo=wi.default=void 0,w0=j0(ot()),S0=e;Mo=wi.default=(0,w0.default)((0,S0.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 Si={},M0=K;Object.defineProperty(Si,"__esModule",{value:!0});var Co=Si.default=void 0,C0=M0(ot()),R0=e;Co=Si.default=(0,C0.default)((0,R0.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");const k0={width:24,height:24,body:'<path fill="currentColor" d="M4.975 15q-.425 0-.7-.288T4 14q0-.425.288-.713T5 13h14.025q.425 0 .7.288T20 14q0 .425-.288.713T19 15H4.975Zm0 4q-.425 0-.7-.288T4 18q0-.425.288-.713T5 17h14.025q.425 0 .7.288T20 18q0 .425-.288.713T19 19H4.975Zm0-8q-.425 0-.7-.288T4 10q0-.425.288-.713T5 9h14.025q.425 0 .7.288T20 10q0 .425-.288.713T19 11H4.975Zm0-4q-.425 0-.7-.288T4 6q0-.425.288-.713T5 5h14.025q.425 0 .7.288T20 6q0 .425-.288.713T19 7H4.975Z"/>'},$0=k0;function Mi({triggers:c,onEnterEdit:C,disabled:P}){const S=Ke.useRef(null),[$,u]=Ke.useState(!1),x=p=>{u(!1),p()},t=()=>{u(p=>!p)},v=p=>{S.current&&S.current.contains(p.target)||u(!1)};return c.length===0?e.jsx(Ye,{"data-cy":"schema-form-item-edit",onClick:C,disabled:P,size:"large",children:e.jsx(u1,{})}):e.jsxs(e.Fragment,{children:[e.jsx(h1,{variant:"outlined",ref:S,"aria-label":"split button",children:e.jsx(je,{size:"large","aria-controls":$?"split-button-menu":void 0,"aria-expanded":$?"true":void 0,sx:{paddingLeft:"12px",paddingRight:"12px"},onClick:t,children:e.jsx(f1,{})})}),e.jsx(ja,{sx:{zIndex:9999},open:$,anchorEl:S.current,role:void 0,placement:"bottom-end",children:e.jsx(vu,{children:e.jsx(yu,{onClickAway:v,children:e.jsx(bu,{id:"split-button-menu",autoFocusItem:!0,children:c.map(p=>e.jsx(xu,{onClick:()=>x(p.handler),children:p.title},p.key))})})})})]})}Mi.propTypes={triggers:F.arrayOf(F.shape({key:F.string.isRequired,title:F.string.isRequired,handler:F.func.isRequired})),onEnterEdit:F.func.isRequired,disabled:F.bool.isRequired};Mi.defaultProps={triggers:[]};const fs=(c,C,P)=>c===null&&C&&P?"******":c?C?"******":c:"",P0=ba`
2
2
  0%, 100% {
3
3
  transform: scale(1) translateX(0);
4
4
  }
@@ -1 +1 @@
1
- import{dq as s,P as c,j as t,aZ as e}from"./index-BsTEuRio.js";import{S as l}from"./Switch-D1aSf0Rk.js";const r=s(i=>t.jsx(l,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...i}))(({theme:i})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:i.palette.primary.main,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:i.palette.primary.main,border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:i.palette.mode==="light"?i.palette.grey[100]:i.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:i.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:i.palette.grey[200],opacity:1,transition:i.transitions.create(["background-color"],{duration:500})}}));function a({labelProps:i,...o}){return i?t.jsx(e,{control:t.jsx(r,{...o}),...i}):t.jsx(r,{...o})}a.propTypes={labelProps:c.object};a.defaultProps={labelProps:null};export{a as S};
1
+ import{dq as s,P as c,j as t,aZ as e}from"./index-DCLFGZPh.js";import{S as l}from"./Switch-DKvkiKC7.js";const r=s(i=>t.jsx(l,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...i}))(({theme:i})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:i.palette.primary.main,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:i.palette.primary.main,border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:i.palette.mode==="light"?i.palette.grey[100]:i.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:i.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:i.palette.grey[200],opacity:1,transition:i.transitions.create(["background-color"],{duration:500})}}));function a({labelProps:i,...o}){return i?t.jsx(e,{control:t.jsx(r,{...o}),...i}):t.jsx(r,{...o})}a.propTypes={labelProps:c.object};a.defaultProps={labelProps:null};export{a as S};
@@ -1,4 +1,4 @@
1
- import{dq as E,j as n,N as a,aQ as _,aR as w,am as f,du as z,m as C}from"./index-BsTEuRio.js";function o({icon:t,title:e="",description:i="",extra:v,...R}){return n.jsxs(I,{...R,children:[t,typeof e=="string"?n.jsx(a,{mt:3,fontSize:22,fontWeight:400,color:"#47494E",textAlign:"center",children:e}):e,typeof i=="string"?n.jsx(a,{mt:1,fontSize:14,color:"#7F828B",textAlign:"center",children:i}):i,n.jsx(a,{mt:3,children:v})]})}const I=E("div")`
1
+ import{dq as E,j as n,N as a,aQ as _,aR as w,am as f,du as z,m as C}from"./index-DCLFGZPh.js";function o({icon:t,title:e="",description:i="",extra:v,...R}){return n.jsxs(I,{...R,children:[t,typeof e=="string"?n.jsx(a,{mt:3,fontSize:22,fontWeight:400,color:"#47494E",textAlign:"center",children:e}):e,typeof i=="string"?n.jsx(a,{mt:1,fontSize:14,color:"#7F828B",textAlign:"center",children:i}):i,n.jsx(a,{mt:3,children:v})]})}const I=E("div")`
2
2
  box-sizing: border-box;
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{br as St,r as x,bD as X,bj as U,A as V,F as L,j as e,P as d,T as Ct,aQ as Je,aR as Ze,ax as Nt,h as ne,aC as wt,k as G,N as v,m as J,ej as _e,Q as Be,kJ as et,bo as Ee,aZ as De,X as Ae,ep as we,b8 as Ge,b6 as Oe,C as tt,n as re,f as st,dB as nt,aU as Le,W as Tt,aw as at,kK as it,B as ke,kL as ot,g3 as Se,gk as rt,aj as fe,ff as Rt,ay as It,G as Ye,kM as Et,kN as Dt,D as lt,kO as At,kP as Ot,kQ as Lt,kR as kt,R as Pt,bx as ct,S as Ft,U as _t,V as Qe,M as Bt,kS as zt,a5 as Wt}from"./index-BsTEuRio.js";import{l as Mt,D as dt,g as qt}from"./index-Dy6Ndspk.js";import{a as ze,c as Kt}from"./actions-DMblPsrA.js";import{B as Ut}from"./index-CEwaV1Oe.js";import{S as xe}from"./shorten-label-rkbgI37z.js";import{I as ut}from"./index-DuyB74pI.js";import{T as $t}from"./index-DdKwcnDa.js";import{d as Ht}from"./Refresh-g_ze8RC-.js";import{D as Vt,g as Gt}from"./traffic-BXrg_wx7.js";import{u as Yt}from"./use-mobile-zJMHEWPE.js";import"./TableRow-CL8yhyVQ.js";import"./useThemeProps-Rte_NmVE.js";import"./emotion-react.browser.esm-CyqIkV2y.js";import"./ViewColumn-DVO6c2uh.js";import"./Search-DmfQzntI.js";import"./Clear-C1AC1AtD.js";import"./Delete-CcdfJXTL.js";import"./index-BcLnPbZ_.js";import"./MoreVert-CjjkmApl.js";import"./TableSearch-CxUE73Wm.js";import"./useLocalStorage-DdJoK4w7.js";import"./get-safe-url-Dsy-huUv.js";import"./ButtonGroup-B3J8Qdyl.js";import"./getValidReactChildren-BhCPp8PX.js";import"./url-evaluation-PNUzVXFG.js";import"./permission-syQYMJDU.js";import"./index.esm-BeKnx9US.js";import"./collapse-De1M4hZU.js";import"./blocklet-C56CLqfn.js";import"./Switch-D1aSf0Rk.js";import"./iframe-JzwQis4I.js";import"./ChevronLeft-BNmKlc1J.js";import"./ChevronRight-DRPUyxAK.js";import"./index-BR_N19sK.js";import"./base-chart-DHzZnb2L.js";import"./index-CEkzM2Hy.js";import"./AdapterDayjs-cf9EXlHB.js";import"./CSSTransition-Cz8SmnJv.js";import"./refType-Bi7lNIS6.js";const pt=x.createContext({}),{Provider:Qt,Consumer:pn}=pt;function Xt({children:t,blocklet:s=""}){const{api:n,inService:o,ws:{useSubscription:r}}=St(),[l,b]=x.useState([]),[u,D]=x.useState({total:0,pageSize:20,pageCount:0,page:1}),f=X(()=>{var p;return(p=s.meta)==null?void 0:p.did},[s]),[C,N]=x.useState([]),[B,z]=x.useState({}),E=X(()=>l.length?new Set(l.map(p=>p.id)):new Set,[l]),Y=async({page:p=1,pageSize:S=20,...A}={})=>{if(!f)return[];try{const w={paging:{page:p,pageSize:S},...A,teamDid:f,dateRange:A.dateRange?[U(A.dateRange[0]).toISOString(),U(A.dateRange[1]).toISOString()]:void 0},{dids:O,..._}=w;let Z="";O&&O.includes("system")&&(Z="system");const W=O?O.filter(le=>le!=="system"):[],ae={..._,source:Z,componentDids:W},se=await n.getNotificationSendLog({input:ae});return z(ae),b(se.list),D(se.paging),se.list}catch(w){return V.error(w.message),[]}},P=async()=>{const p=await n.getNotificationComponents({input:{teamDid:f}});N(p.componentDids)},k=x.useCallback(p=>{const S=s.children.find(A=>{var w;return((w=A.meta)==null?void 0:w.did)===p});if(S)return S.ancestors=[s],S},[s]),I=async({notificationId:p,receivers:S,channels:A,...w})=>{await n.resendNotification({input:{teamDid:f,notificationId:p,receivers:S,channels:A.map(O=>O==="wallet"?L.NOTIFICATION_SEND_CHANNEL.WALLET:O==="pushKit"?L.NOTIFICATION_SEND_CHANNEL.PUSH:O),...w}})},$=x.useCallback(async p=>(await n.getUser({input:{teamDid:f,user:{did:p}}})).user,[n,f]),Q=x.useCallback(async({page:p=1,pageSize:S=20,...A}={})=>{try{const w={paging:{page:p,pageSize:S},...A,userName:A.searchText||"",teamDid:f,dateRange:A.dateRange?[U(A.dateRange[0]).toISOString(),U(A.dateRange[1]).toISOString()]:void 0};return await n.getReceivers({input:w})}catch(w){throw V.error(w.message),w}},[n,f]);x.useEffect(()=>{f&&P()},[f]),r(L.EVENTS.NOTIFICATION_BLOCKLET_UPDATE,p=>{E.has(p.notificationId)&&Y(B)},[E,B]),r(L.EVENTS.NOTIFICATION_BLOCKLET_CREATE,p=>{E.has(p.id)||Y(B)},[E,B]);const te={fetch:Y,data:l,paging:u,blocklet:s,getComponent:k,resendNotification:I,getUser:$,componentDids:C,getReceivers:Q,inService:o,teamDid:f};return e.jsx(Qt,{value:{notificationRecords:te},children:t})}function We(){const{notificationRecords:t}=x.useContext(pt);return t}be.propTypes={severity:d.oneOf(Object.values(["info","success","error","warning"])).isRequired};const Jt={info:"primary",success:"success",error:"error",warning:"warning"};function be({severity:t="info"}){return e.jsx(Ct,{type:Jt[t],children:t})}var Me={},Zt=Ze;Object.defineProperty(Me,"__esModule",{value:!0});var ft=Me.default=void 0,es=Zt(Je()),ts=e;ft=Me.default=(0,es.default)((0,ts.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline");var qe={},ss=Ze;Object.defineProperty(qe,"__esModule",{value:!0});var mt=qe.default=void 0,ns=ss(Je()),as=e;mt=qe.default=(0,ns.default)((0,as.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block");const is=(t,s,n="")=>{if(!n||!s)return"";switch(n){case L.NOTIFICATION_SEND_FAILED_REASON.USER_DISABLED:return t("notification.sendStatus.reason.disabled",{channel:s});case L.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_UNAVAILABLE:return t("notification.sendStatus.reason.unavailable",{channel:s});case L.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_DISABLED:return t("notification.sendStatus.reason.notSent",{channel:s});case L.NOTIFICATION_SEND_FAILED_REASON.NOT_ONLINE:return t("notification.sendStatus.reason.offline");default:return n}};function ht(t,s,n={}){const{status:o,updatedAt:r,reason:l="",channel:b="wallet"}=n,u=r?t("notification.sendStatus.sentTime",{date:Nt(r,s)}):"",D=is(t,b,l);return o===L.NOTIFICATION_SEND_STATUS.FAILED?{status:"failed",title:t("notification.sendStatus.failed"),sentTime:u,reason:D}:o===L.NOTIFICATION_SEND_STATUS.SENT?{status:"success",title:t("notification.sendStatus.success"),sentTime:u}:{status:"pending",title:t("notification.sendStatus.pending"),reason:D,sentTime:u}}const Pe={pending:"#aaaaaa",success:"#34BE74",failed:"#D0021B"},Fe=["wallet","pushKit","email"],Xe=["info","success","error","warning"],gt=t=>{var n,o;const{settings:s}=t;return(o=(n=s==null?void 0:s.notification)==null?void 0:n.email)==null?void 0:o.enabled},xt=t=>{var n,o;const{settings:s}=t;return(o=(n=s==null?void 0:s.notification)==null?void 0:n.pushKit)==null?void 0:o.enabled},os=(t,s)=>{const n=ne(s,"extra.notifications.email",!0);return{available:gt(t),enabled:n}},rs=(t,s)=>{const n=ne(s,"extra.notifications.push",!0);return{available:xt(t),enabled:n}},ls=t=>({enabled:ne(t,"extra.notifications.wallet",!0)}),cs=t=>({enabled:ne(t,"extra.webhooks",[]).length>0}),ye=(t=3)=>new Promise(s=>{setTimeout(()=>{s()},t*1e3)}),ds=(t,s)=>s==="wallet"||s==="webhook"?[{channel:s,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:s}),fail:t("notification.sendStatus.reason.disabled",{channel:s})}]:s==="pushKit"||s==="email"?[{channel:s,type:"available",pass:t("notification.sendStatus.reason.available",{channel:s}),fail:t("notification.sendStatus.reason.unavailable",{channel:s})},{channel:s,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:s}),fail:t("notification.sendStatus.reason.disabled",{channel:s})}]:[],ve=(t=[])=>{const s=U().startOf("day");return t.filter(n=>U(n.sendAt).isSame(s,"day")).length},us=(t,s="")=>{if(s&&Fe.includes(s)){const l=`${s}SendRecord`,b=ne(t,l,[]);return ve(b)}const n=ne(t,"webhook",{}),o=Object.keys(n??{})??[];if(s&&o.includes(s)){const l=n[s]??[];return ve(l)}const r={};return Fe.forEach(l=>{const b=`${l}SendRecord`,u=ne(t,b,[]),D=ve(u);r[l]=D}),o.length>0&&o.forEach(l=>{const b=n[l]??[],u=ve(b);r[l]=u}),r},Ce=(t,s,n)=>{if(!Array.isArray(t))throw new Error("Invalid filterList or index");return t[n].splice(s,1),t},Ne=(t,s)=>{if(!Array.isArray(s))throw new Error("filters must be an array");return s.length?!s.includes(t):!1},ps=t=>{switch(t){case L.NOTIFICATION_SEND_CHANNEL.WALLET:return"Wallet";case L.NOTIFICATION_SEND_CHANNEL.PUSH:return"Push Kit";case L.NOTIFICATION_SEND_CHANNEL.EMAIL:return"Email";case L.NOTIFICATION_SEND_CHANNEL.WEBHOOK:return"Webhook";default:return""}},bt=()=>({components:{MUIDataTableFilter:{styleOverrides:{header:{marginBottom:0,p:{margin:0}},root:{"& .MuiGrid-container":{marginTop:0,"& .MuiGrid-item":{paddingTop:0}}}}},MuiPopover:{styleOverrides:{root:{"&.MuiPopover-root":{"& .MuiPaper-root:has(.filter-container)":{width:"420px"}}}}}}});function ee({config:t,enableTooltip:s=!0,showTitle:n=!1,children:o}){const{status:r,title:l="",sentTime:b="",reason:u=""}=t,D=[l,u].filter(Boolean).join(", ");return e.jsx(wt,{title:s?e.jsxs(e.Fragment,{children:[e.jsx(G,{color:"inherit",sx:{fontSize:12},children:D}),e.jsx("span",{children:b})]}):null,arrow:!0,placement:"top",children:e.jsxs(v,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"},children:[e.jsxs(v,{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center",children:[e.jsx(v,{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:Pe[r],style:{opacity:.15}}),e.jsx(v,{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:Pe[r]})]}),e.jsx(G,{color:"inherit",sx:{fontSize:12},children:n?l:o})]})})}ee.propTypes={config:d.object.isRequired,enableTooltip:d.bool,showTitle:d.bool,children:d.node};ee.defaultProps={enableTooltip:!0,showTitle:!1,children:null};me.propTypes={list:d.array.isRequired,label:d.string.isRequired,onDelete:d.func};me.defaultProps={onDelete:()=>{}};function me({list:t,label:s,onDelete:n}){const{t:o,locale:r}=J();return e.jsxs(v,{display:"flex",gap:1,alignItems:"center",children:[e.jsxs(G,{children:[s,": "]}),t.map(l=>{const b=ht(o,r,{status:l});return e.jsx(_e,{size:"small",label:e.jsx(v,{display:"flex",alignItems:"center",sx:{gap:"4px"},children:e.jsx(ee,{config:b,enableTooltip:!1,children:b.title})}),onDelete:u=>n(u,l)},l)})]})}Ke.propTypes={filterList:d.array.isRequired,onChange:d.func.isRequired,index:d.number.isRequired,column:d.object.isRequired,filterValues:d.array.isRequired,label:d.string.isRequired,renderLabel:d.func.isRequired};function Ke({filterList:t,onChange:s,index:n,column:o,filterValues:r,label:l,renderLabel:b}){return e.jsxs(Be,{className:"filter-container",children:[e.jsx(et,{component:"legend",children:l}),e.jsx(Ee,{row:!0,children:r.map(u=>e.jsx(De,{control:e.jsx(Ae,{checked:t[n].indexOf(u.value??u)>-1,onChange:D=>{const f=[...t];D.target.checked?f[n]=[...f[n],u.value??u]:f[n]=f[n].filter(C=>C!==(u.value??u)),s(f[n],n,o)},name:u.value??u}),label:e.jsx("span",{style:{display:"flex",alignItems:"center"},children:b(u)})},u.value??u))})]})}function Ie(t){return e.jsx(Ke,{...t,renderLabel:s=>e.jsx(ee,{enableTooltip:!1,config:{status:s.status},children:s.label})})}pe.propTypes={status:d.number.isRequired,updatedAt:d.string.isRequired,reason:d.string,channel:d.string,onResend:d.func};function pe({status:t,updatedAt:s,reason:n="",channel:o="wallet",onResend:r}){const{t:l,locale:b}=J(),u=ht(l,b,{status:t,updatedAt:s,reason:n,channel:o});return e.jsxs(v,{display:"flex",alignItems:"center",gap:1,children:[e.jsx(ee,{config:u,showTitle:!0}),u.status!=="success"&&e.jsx(we,{className:"resend-btn",size:"small",startIcon:e.jsx(ze,{}),sx:{fontSize:12,color:"rgba(0, 0, 0, 0.87)",fontWeight:400,".MuiButton-startIcon":{mr:"2px"}},onClick:r,children:l("notification.resend")})]})}Ue.propTypes={value:d.array.isRequired,onChange:d.func};function Ue({value:t,onChange:s}){const{locale:n}=J(),o=U().toDate(),[r,l]=x.useState(null),b=x.useCallback(f=>{l(r?null:f.currentTarget)},[r]),u=!!r,D=x.useCallback(f=>{if(!f.startDate||!f.endDate){V.error("Please select a date range");return}if(U(f.startDate).isAfter(f.endDate)||!U(f.startDate).isValid()||!U(f.endDate).isValid()){V.error("Invalid date range");return}s([f.startDate,f.endDate]),l(null)},[s]);return e.jsxs("div",{children:[e.jsx(G,{component:"div",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mb:0,children:e.jsxs(we,{onClick:b,variant:"outlined",size:"small",color:"inherit",children:[Ge(t[0],n)," - ",Ge(t[1],n)]})}),e.jsx(Oe,{open:u,anchorEl:r,onClose:()=>{l(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:e.jsx(Vt,{open:!0,maxDate:o,initialDateRange:{startDate:t[0],endDate:t[1]},toggle:b,definedRanges:Gt(o),onChange:D})})]})}$e.propTypes={itemComponent:d.elementType.isRequired};function $e({itemComponent:t,...s}){var r;const{t:n}=J();return!((r=s==null?void 0:s.filterList)!=null&&r.filter(l=>l.length).length)?null:e.jsxs(v,{display:"flex",gap:1,alignItems:"center",children:[e.jsx("div",{className:"toolbar-filter-title",children:n("notification.filter")}),e.jsx("div",{className:"toolbar-filter-content",children:e.jsx(Mt.TableFilterList,{...s,ItemComponent:t})})]})}function Te({label:t,onDelete:s,canDelete:n=()=>!0,...o}){const r=s&&typeof s=="function"?s:void 0;let l=!0;return n&&typeof n=="function"&&(l=n({label:t,...o})),e.jsx(_e,{label:t,variant:"outlined",...r&&l?{onDelete:r}:{}})}Te.propTypes={label:d.string.isRequired,onDelete:d.func,canDelete:d.func};Te.defaultProps={canDelete:()=>!0};const fs=[{label:"Wallet",value:"app",checked:!0},{label:"Email",value:"email",checked:!0},{label:"Push Kit",value:"push",checked:!0},{label:"Webhook",value:"webhook",checked:!0}];He.propTypes={loading:d.bool,onCancel:d.func,onConfirm:d.func};He.defaultProps={loading:!1,onCancel:()=>{},onConfirm:()=>{}};function He({loading:t=!1,onCancel:s,onConfirm:n}){const{t:o}=J(),[r,l]=x.useState(fs),[b,u]=x.useState(!0),D=(C,N)=>{N.checked=C.target.checked;const B=r.map(z=>({...z,checked:z.value===N.value?N.checked:z.checked}));l(B)},f=C=>{C.stopPropagation(),n({channels:r.filter(N=>N.checked).map(N=>N.value),isResendFailedOnly:b})};return e.jsxs(v,{className:"resend-config",sx:{padding:"16px 24px"},children:[e.jsx(G,{variant:"body1",component:"div",className:"check-title",sx:{fontWeight:700,mb:1},children:o("notification.config")}),e.jsx(v,{className:"choose-channel",children:e.jsxs(Be,{component:"fieldset",variant:"standard",children:[e.jsx(et,{component:"legend",children:o("notification.selectChannels")}),e.jsx(Ee,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:1},children:r.map(C=>e.jsx(De,{control:e.jsx(Ae,{checked:C.checked,onChange:N=>D(N,C),name:C.value}),label:C.label},C.value))})]})}),e.jsx(v,{className:"resend-config-footer",children:e.jsx(Ee,{children:e.jsx(De,{control:e.jsx(Ae,{checked:b,onChange:C=>u(C.target.checked)}),label:o("notification.resendFailedOnly")})})}),e.jsxs(v,{display:"flex",justifyContent:"flex-end",gap:1,className:"resend-config-footer-tip",children:[e.jsx(we,{onClick:C=>{C.stopPropagation(),s()},color:"inherit",children:o("common.cancel")}),e.jsxs(we,{onClick:f,color:"primary",disabled:t,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[t&&e.jsx(tt,{size:16}),o("common.confirm")]})]})]})}jt.propTypes={notificationId:d.string.isRequired,handleResend:d.func,resending:d.bool};function jt({notificationId:t,handleResend:s,resending:n=!1}){const{t:o,locale:r}=J(),l=st(),b=x.useMemo(()=>nt(l,bt()),[l]),{getReceivers:u,inService:D,teamDid:f,getUser:C,blocklet:N}=We(),[B,z]=x.useState(!1),[E,Y]=x.useState([]),P=Le({anchorEl:null,position:null}),k=Le({anchorEl:null,position:null}),[I,$]=x.useState(null),[Q,te]=x.useState({total:0,pageSize:10,pageCount:0,page:1}),[p,S]=x.useState({searchText:"",page:1,pageSize:10,walletSendStatus:[],pushKitSendStatus:[],emailSendStatus:[],dateRange:[U().subtract(1,"month").startOf("day").toDate(),U().endOf("day").toDate()]}),[A,w]=x.useState([]),O=[{label:o("notification.sendStatus.pending"),value:0,status:"pending"},{label:o("notification.sendStatus.success"),value:1,status:"success"},{label:o("notification.sendStatus.failed"),value:2,status:"failed"}],_=async()=>{if(!B&&t)try{z(!0);const a=await u({notificationId:t,...p}),i=a.list.map(c=>({...c,receiverUser:{...c.receiverUser,avatar:rt(c.receiverUser.avatar,f,D)}}));Y(i),te(a.paging),z(!1)}catch(a){V.error(a.message),z(!1)}};x.useEffect(()=>{_()},[p]);const Z=a=>{a.stopPropagation();const i=a.currentTarget;k.anchorEl=i;const c=i.getBoundingClientRect();k.position={top:c.top+window.scrollY,left:c.left+window.scrollX}},W=a=>a.data.length?e.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px"},children:e.jsx(ke,{className:"resend-btn",size:"small",color:"primary",variant:"contained",startIcon:e.jsx(ze,{}),sx:{".MuiButton-startIcon":{mr:"2px"}},onClick:Z,children:o("notification.resend")})}):null,ae={sort:!1,download:!1,print:!1,selectableRows:"multiple",searchPlaceholder:o("common.search"),searchAlwaysOpen:!1,filterType:"checkbox",searchDebounceTime:300,page:Q.page-1,rowsPerPage:Q.pageSize,count:Q.total,searchText:p.searchText,tableBodyMaxHeight:"calc(80vh - 260px)",rowsSelected:A,onRowSelectionChange:(a,i)=>{w(i.map(c=>c.dataIndex))},customToolbarSelect:W},se=({page:a,rowsPerPage:i,searchText:c,filterList:y})=>{const[,F=[],K=[],q=[]]=y;p.pageSize!==i?S(M=>({...M,pageSize:i,page:1})):p.page!==a+1?S(M=>({...M,page:a+1})):p.searchText!==c?S(M=>({...M,searchText:c,page:1})):fe(F,p.walletSendStatus)?fe(K,p.pushKitSendStatus)?fe(q,p.emailSendStatus)||S(M=>({...M,emailSendStatus:q,page:1})):S(M=>({...M,pushKitSendStatus:K,page:1})):S(M=>({...M,walletSendStatus:F,page:1}))},le=x.useCallback(async(a,i)=>{if(!i)return!1;const c=await C(i);return c?a==="wallet"?ls(c):a==="email"?os(N,c):a==="pushKit"?rs(N,c):a==="webhook"?cs(c):!0:!1},[C,N]),je=x.useCallback(a=>ds(o,a),[o]),ce=()=>{P.anchorEl=null,P.position=null,$(null)},de=()=>{k.anchorEl=null,k.position=null},ue=async(a,i,c=!0,y="")=>{if(!(!i.length||!a.length))try{s(a,i,c,y),k.anchorEl||(await ye(.5),ce())}catch(F){console.error("handleResend error",{error:F})}},h=async({channels:a,isResendFailedOnly:i})=>{const c=A.map(y=>E[y].receiver);await ue(a,c,i),await ye(.5),de(),w([])},m=async(a,i=[],c=!0)=>{try{await ue(["webhook"],[a.receiver],c,i)}catch(y){V.error(y.response?y.response.statusText:y.message)}},g=async(a,i,c,y=[],F=!0)=>{if(a.stopPropagation(),us(i,c)>=4){V.warning(o("notification.resendLimit"));return}if(!Fe.includes(c)){await m(i,y,F);return}if(a){const q=a.currentTarget,M=q.getBoundingClientRect();P.anchorEl=q,P.position={top:M.top+window.scrollY,left:M.left+window.scrollX}}$({channel:c});try{const q=await le(c,i.receiver);await ye(1),$({channel:c,result:q}),(typeof q=="boolean"&&q||Rt(q)&&Object.values(q).every(M=>!!M))&&(await s([c],[i.receiver],F),k.anchorEl||(await ye(.5),ce()))}catch(q){V.error(q.message)}},j=a=>{S(i=>({...i,dateRange:a,page:1}))},T=(a,i,c,y)=>{a.stopPropagation();const F=c.filter(K=>K!==i);S(K=>({...K,[y]:F,page:1}))},R=X(()=>[{label:o("notification.receiver"),name:"receiver",width:200,options:{filter:!1,customBodyRenderLite:a=>{const{receiverUser:i,receiver:c}=E[a];return i?e.jsxs(v,{"data-cy":`member-name-${i.fullName}`,display:"flex",alignItems:"center",gap:1,justifyContent:"flex-start",children:[e.jsx(at,{src:`${i.avatar}?imageFilter=resize&w=48&h=48`,size:32,did:c,shape:"circle",style:{borderRadius:"100%",overflow:"hidden"}}),e.jsx(xe,{children:i.fullName})]},c):e.jsx(Tt,{size:14,responsive:!1,compact:!0,copyable:!1,did:c})}}},{label:"Wallet",name:"walletSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),filter:!0,filterType:"custom",filterList:p.walletSendStatus??[],customFilterListOptions:{render:a=>e.jsx(me,{list:a,label:"Wallet",onDelete:(i,c)=>{i.stopPropagation(),T(i,c,R[1].options.filterList,"walletSendStatus")}}),update:Ce},filterOptions:{names:O,fullWidth:!0,logic:Ne,display:(a,i,c,y)=>e.jsx(Ie,{label:"Wallet",filterList:a,onChange:i,index:c,column:y,filterValues:O})},customBodyRenderLite:a=>{const{walletSendStatus:i,walletSendAt:c,walletSendFailedReason:y}=E[a];return e.jsx(pe,{status:i,updatedAt:c,reason:y,channel:"wallet",onResend:F=>g(F,E[a],"wallet",[],!1)})}}},{label:"Push Kit",name:"pushKitSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:a=>{const{pushKitSendStatus:i,pushKitSendAt:c,pushKitSendFailedReason:y}=E[a];return e.jsx(pe,{status:i,updatedAt:c,reason:y,channel:"pushkit",onResend:F=>g(F,E[a],"pushKit",[],!1)})},filter:!0,filterType:"custom",filterList:p.pushKitSendStatus??[],customFilterListOptions:{render:a=>e.jsx(me,{list:a,label:"Push Kit",onDelete:(i,c)=>{i.stopPropagation(),T(i,c,R[2].options.filterList,"pushKitSendStatus")}}),update:Ce},filterOptions:{names:O,fullWidth:!0,logic:Ne,display:(a,i,c,y)=>e.jsx(Ie,{label:"Push Kit",filterList:a,onChange:i,index:c,column:y,filterValues:O})}}},{label:"Email",name:"emailSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:a=>{const{emailSendStatus:i,emailSendAt:c,emailSendFailedReason:y}=E[a];return e.jsx(pe,{status:i,updatedAt:c,reason:y,channel:"email",onResend:F=>g(F,E[a],"email",[],!1)})},filter:!0,filterType:"custom",filterList:p.emailSendStatus??[],customFilterListOptions:{render:a=>e.jsx(me,{list:a,label:"Email",onDelete:(i,c)=>{i.stopPropagation(),T(i,c,R[3].options.filterList,"emailSendStatus")}}),update:Ce},filterOptions:{names:O,fullWidth:!0,logic:Ne,display:(a,i,c,y)=>e.jsx(Ie,{label:"Email",filterList:a,onChange:i,index:c,column:y,filterValues:O})}}},{label:"Webhook",name:"webhook",width:200,options:{filter:!1,setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:a=>{const{webhook:i}=E[a];if(!i)return null;const c=Object.entries(i)[0];if(!c)return null;const[y,F]=c,K=F[0];return e.jsx(v,{display:"flex",flexDirection:"column",gap:1,children:e.jsxs(v,{className:"webhook-item",fontSize:12,children:[e.jsx(xe,{maxLength:30,children:y},y),e.jsx(pe,{status:K.status,updatedAt:K.sendAt,reason:K.failedReason,channel:"webhook",onResend:q=>g(q,E[a],"webhook",[y],!1)})]},y)})}}},{label:o("common.createdAt"),name:"createdAt",width:100,options:{filter:!1,customBodyRenderLite:a=>{const{createdAt:i}=E[a];return e.jsx(it,{value:i,locale:r,shouldUpdate:!0})}}}],[E,r,p,o]),H=[e.jsx(Ue,{value:p.dateRange,onChange:j},"date-picker"),e.jsx(ke,{variant:"contained",size:"small",color:"primary",loading:B,startIcon:e.jsx(Ht,{}),onClick:()=>_(),sx:{".MuiButton-startIcon":{mr:"2px"}},style:{marginLeft:8},children:o("common.refresh")},"refresh")];return e.jsx(v,{sx:{overflow:"auto",".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"},".MuiTableCell-root":{paddingRight:"8px",whiteSpace:"nowrap"}},children:e.jsx(hs,{children:e.jsxs(ot,{theme:b,children:[e.jsx(dt,{className:"receivers-table",locale:r,loading:B,columns:R,data:E,onChange:se,options:ae,customButtons:H,components:{TableFilterList:a=>e.jsx($e,{...a,itemComponent:i=>e.jsx(Te,{...i,canDelete:()=>!1})})}}),P.anchorEl&&e.jsx(Oe,{open:!!P.anchorEl,anchorReference:"anchorPosition",anchorPosition:P.position,onClose:ce,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsxs(gs,{children:[e.jsxs(G,{variant:"body1",component:"div",className:"check-title",children:[I==null?void 0:I.channel," Checking"]}),e.jsx(v,{display:"flex",flexDirection:"column",sx:{gap:"4px"},children:je(I==null?void 0:I.channel).map(a=>{var F,K;const{type:i,pass:c,fail:y}=a;return!(I!=null&&I.result)||(F=I==null?void 0:I.result)!=null&&F[i]?e.jsxs(G,{variant:"body1",component:"div",className:"check-item",display:"flex",alignItems:"center",sx:{gap:"4px",color:(K=I==null?void 0:I.result)!=null&&K[i]?Se.success.main:"inherit"},children:[I!=null&&I.result?e.jsx(ft,{}):e.jsx(tt,{size:12,sx:{color:Se.primary.main}}),e.jsx("span",{children:c})]},i):e.jsxs(G,{variant:"body1",component:"div",display:"flex",alignItems:"center",className:"check-item",sx:{gap:"4px",color:Se.error.main},children:[e.jsx(mt,{}),e.jsx("span",{children:y})]},i)})})]})}),k.anchorEl&&e.jsx(Oe,{open:!!k.anchorEl,anchorReference:"anchorPosition",anchorPosition:k.position,onClose:de,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsx(He,{loading:n,onCancel:de,onConfirm:h})})]})})})}const ms=x.memo(jt),hs=re.div`
1
+ import{br as St,r as x,bD as X,bj as U,A as V,F as L,j as e,P as d,T as Ct,aQ as Je,aR as Ze,ax as Nt,h as ne,aC as wt,k as G,N as v,m as J,ej as _e,Q as Be,kJ as et,bo as Ee,aZ as De,X as Ae,ep as we,b8 as Ge,b6 as Oe,C as tt,n as re,f as st,dB as nt,aU as Le,W as Tt,aw as at,kK as it,B as ke,kL as ot,g3 as Se,gk as rt,aj as fe,ff as Rt,ay as It,G as Ye,kM as Et,kN as Dt,D as lt,kO as At,kP as Ot,kQ as Lt,kR as kt,R as Pt,bx as ct,S as Ft,U as _t,V as Qe,M as Bt,kS as zt,a5 as Wt}from"./index-DCLFGZPh.js";import{l as Mt,D as dt,g as qt}from"./index-DcZQiQhe.js";import{a as ze,c as Kt}from"./actions-CHwbzvDq.js";import{B as Ut}from"./index-lB7zAkhG.js";import{S as xe}from"./shorten-label-C8S-BR3k.js";import{I as ut}from"./index-D4LFUy7F.js";import{T as $t}from"./index-XfRo_cGN.js";import{d as Ht}from"./Refresh-DagieYZa.js";import{D as Vt,g as Gt}from"./traffic-DRIGIlTP.js";import{u as Yt}from"./use-mobile-DMA1Bhgh.js";import"./TableRow-Dlew3Q36.js";import"./useThemeProps-HKqSQ1Oh.js";import"./emotion-react.browser.esm-DtDsQxkS.js";import"./ViewColumn-BDcQSSbP.js";import"./Search-CCJYN1r6.js";import"./Clear-BXGkmSCA.js";import"./Delete-_Fu6HSXD.js";import"./index-BLXO0nyi.js";import"./MoreVert-vYpS0zQc.js";import"./TableSearch-Dsw8k2Y-.js";import"./useLocalStorage-BihOtGwI.js";import"./get-safe-url-CPkpK13h.js";import"./ButtonGroup-CvC6DpxV.js";import"./getValidReactChildren-7EPQhd7n.js";import"./url-evaluation-lQ86pD_C.js";import"./permission-D3HvUPq1.js";import"./index.esm-c2yth77n.js";import"./collapse-BoD6SaLC.js";import"./blocklet-C7o_whxT.js";import"./Switch-DKvkiKC7.js";import"./iframe-Ex_gbVob.js";import"./ChevronLeft-TANNFeVQ.js";import"./ChevronRight-CKLF17f0.js";import"./index-B0Aod4fK.js";import"./base-chart-lV_tWBLU.js";import"./index-DULiHig2.js";import"./AdapterDayjs-DH8LVoSq.js";import"./CSSTransition-B2XQ7Y5d.js";import"./refType-BVHdiekZ.js";const pt=x.createContext({}),{Provider:Qt,Consumer:pn}=pt;function Xt({children:t,blocklet:s=""}){const{api:n,inService:o,ws:{useSubscription:r}}=St(),[l,b]=x.useState([]),[u,D]=x.useState({total:0,pageSize:20,pageCount:0,page:1}),f=X(()=>{var p;return(p=s.meta)==null?void 0:p.did},[s]),[C,N]=x.useState([]),[B,z]=x.useState({}),E=X(()=>l.length?new Set(l.map(p=>p.id)):new Set,[l]),Y=async({page:p=1,pageSize:S=20,...A}={})=>{if(!f)return[];try{const w={paging:{page:p,pageSize:S},...A,teamDid:f,dateRange:A.dateRange?[U(A.dateRange[0]).toISOString(),U(A.dateRange[1]).toISOString()]:void 0},{dids:O,..._}=w;let Z="";O&&O.includes("system")&&(Z="system");const W=O?O.filter(le=>le!=="system"):[],ae={..._,source:Z,componentDids:W},se=await n.getNotificationSendLog({input:ae});return z(ae),b(se.list),D(se.paging),se.list}catch(w){return V.error(w.message),[]}},P=async()=>{const p=await n.getNotificationComponents({input:{teamDid:f}});N(p.componentDids)},k=x.useCallback(p=>{const S=s.children.find(A=>{var w;return((w=A.meta)==null?void 0:w.did)===p});if(S)return S.ancestors=[s],S},[s]),I=async({notificationId:p,receivers:S,channels:A,...w})=>{await n.resendNotification({input:{teamDid:f,notificationId:p,receivers:S,channels:A.map(O=>O==="wallet"?L.NOTIFICATION_SEND_CHANNEL.WALLET:O==="pushKit"?L.NOTIFICATION_SEND_CHANNEL.PUSH:O),...w}})},$=x.useCallback(async p=>(await n.getUser({input:{teamDid:f,user:{did:p}}})).user,[n,f]),Q=x.useCallback(async({page:p=1,pageSize:S=20,...A}={})=>{try{const w={paging:{page:p,pageSize:S},...A,userName:A.searchText||"",teamDid:f,dateRange:A.dateRange?[U(A.dateRange[0]).toISOString(),U(A.dateRange[1]).toISOString()]:void 0};return await n.getReceivers({input:w})}catch(w){throw V.error(w.message),w}},[n,f]);x.useEffect(()=>{f&&P()},[f]),r(L.EVENTS.NOTIFICATION_BLOCKLET_UPDATE,p=>{E.has(p.notificationId)&&Y(B)},[E,B]),r(L.EVENTS.NOTIFICATION_BLOCKLET_CREATE,p=>{E.has(p.id)||Y(B)},[E,B]);const te={fetch:Y,data:l,paging:u,blocklet:s,getComponent:k,resendNotification:I,getUser:$,componentDids:C,getReceivers:Q,inService:o,teamDid:f};return e.jsx(Qt,{value:{notificationRecords:te},children:t})}function We(){const{notificationRecords:t}=x.useContext(pt);return t}be.propTypes={severity:d.oneOf(Object.values(["info","success","error","warning"])).isRequired};const Jt={info:"primary",success:"success",error:"error",warning:"warning"};function be({severity:t="info"}){return e.jsx(Ct,{type:Jt[t],children:t})}var Me={},Zt=Ze;Object.defineProperty(Me,"__esModule",{value:!0});var ft=Me.default=void 0,es=Zt(Je()),ts=e;ft=Me.default=(0,es.default)((0,ts.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline");var qe={},ss=Ze;Object.defineProperty(qe,"__esModule",{value:!0});var mt=qe.default=void 0,ns=ss(Je()),as=e;mt=qe.default=(0,ns.default)((0,as.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block");const is=(t,s,n="")=>{if(!n||!s)return"";switch(n){case L.NOTIFICATION_SEND_FAILED_REASON.USER_DISABLED:return t("notification.sendStatus.reason.disabled",{channel:s});case L.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_UNAVAILABLE:return t("notification.sendStatus.reason.unavailable",{channel:s});case L.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_DISABLED:return t("notification.sendStatus.reason.notSent",{channel:s});case L.NOTIFICATION_SEND_FAILED_REASON.NOT_ONLINE:return t("notification.sendStatus.reason.offline");default:return n}};function ht(t,s,n={}){const{status:o,updatedAt:r,reason:l="",channel:b="wallet"}=n,u=r?t("notification.sendStatus.sentTime",{date:Nt(r,s)}):"",D=is(t,b,l);return o===L.NOTIFICATION_SEND_STATUS.FAILED?{status:"failed",title:t("notification.sendStatus.failed"),sentTime:u,reason:D}:o===L.NOTIFICATION_SEND_STATUS.SENT?{status:"success",title:t("notification.sendStatus.success"),sentTime:u}:{status:"pending",title:t("notification.sendStatus.pending"),reason:D,sentTime:u}}const Pe={pending:"#aaaaaa",success:"#34BE74",failed:"#D0021B"},Fe=["wallet","pushKit","email"],Xe=["info","success","error","warning"],gt=t=>{var n,o;const{settings:s}=t;return(o=(n=s==null?void 0:s.notification)==null?void 0:n.email)==null?void 0:o.enabled},xt=t=>{var n,o;const{settings:s}=t;return(o=(n=s==null?void 0:s.notification)==null?void 0:n.pushKit)==null?void 0:o.enabled},os=(t,s)=>{const n=ne(s,"extra.notifications.email",!0);return{available:gt(t),enabled:n}},rs=(t,s)=>{const n=ne(s,"extra.notifications.push",!0);return{available:xt(t),enabled:n}},ls=t=>({enabled:ne(t,"extra.notifications.wallet",!0)}),cs=t=>({enabled:ne(t,"extra.webhooks",[]).length>0}),ye=(t=3)=>new Promise(s=>{setTimeout(()=>{s()},t*1e3)}),ds=(t,s)=>s==="wallet"||s==="webhook"?[{channel:s,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:s}),fail:t("notification.sendStatus.reason.disabled",{channel:s})}]:s==="pushKit"||s==="email"?[{channel:s,type:"available",pass:t("notification.sendStatus.reason.available",{channel:s}),fail:t("notification.sendStatus.reason.unavailable",{channel:s})},{channel:s,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:s}),fail:t("notification.sendStatus.reason.disabled",{channel:s})}]:[],ve=(t=[])=>{const s=U().startOf("day");return t.filter(n=>U(n.sendAt).isSame(s,"day")).length},us=(t,s="")=>{if(s&&Fe.includes(s)){const l=`${s}SendRecord`,b=ne(t,l,[]);return ve(b)}const n=ne(t,"webhook",{}),o=Object.keys(n??{})??[];if(s&&o.includes(s)){const l=n[s]??[];return ve(l)}const r={};return Fe.forEach(l=>{const b=`${l}SendRecord`,u=ne(t,b,[]),D=ve(u);r[l]=D}),o.length>0&&o.forEach(l=>{const b=n[l]??[],u=ve(b);r[l]=u}),r},Ce=(t,s,n)=>{if(!Array.isArray(t))throw new Error("Invalid filterList or index");return t[n].splice(s,1),t},Ne=(t,s)=>{if(!Array.isArray(s))throw new Error("filters must be an array");return s.length?!s.includes(t):!1},ps=t=>{switch(t){case L.NOTIFICATION_SEND_CHANNEL.WALLET:return"Wallet";case L.NOTIFICATION_SEND_CHANNEL.PUSH:return"Push Kit";case L.NOTIFICATION_SEND_CHANNEL.EMAIL:return"Email";case L.NOTIFICATION_SEND_CHANNEL.WEBHOOK:return"Webhook";default:return""}},bt=()=>({components:{MUIDataTableFilter:{styleOverrides:{header:{marginBottom:0,p:{margin:0}},root:{"& .MuiGrid-container":{marginTop:0,"& .MuiGrid-item":{paddingTop:0}}}}},MuiPopover:{styleOverrides:{root:{"&.MuiPopover-root":{"& .MuiPaper-root:has(.filter-container)":{width:"420px"}}}}}}});function ee({config:t,enableTooltip:s=!0,showTitle:n=!1,children:o}){const{status:r,title:l="",sentTime:b="",reason:u=""}=t,D=[l,u].filter(Boolean).join(", ");return e.jsx(wt,{title:s?e.jsxs(e.Fragment,{children:[e.jsx(G,{color:"inherit",sx:{fontSize:12},children:D}),e.jsx("span",{children:b})]}):null,arrow:!0,placement:"top",children:e.jsxs(v,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"},children:[e.jsxs(v,{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center",children:[e.jsx(v,{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:Pe[r],style:{opacity:.15}}),e.jsx(v,{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:Pe[r]})]}),e.jsx(G,{color:"inherit",sx:{fontSize:12},children:n?l:o})]})})}ee.propTypes={config:d.object.isRequired,enableTooltip:d.bool,showTitle:d.bool,children:d.node};ee.defaultProps={enableTooltip:!0,showTitle:!1,children:null};me.propTypes={list:d.array.isRequired,label:d.string.isRequired,onDelete:d.func};me.defaultProps={onDelete:()=>{}};function me({list:t,label:s,onDelete:n}){const{t:o,locale:r}=J();return e.jsxs(v,{display:"flex",gap:1,alignItems:"center",children:[e.jsxs(G,{children:[s,": "]}),t.map(l=>{const b=ht(o,r,{status:l});return e.jsx(_e,{size:"small",label:e.jsx(v,{display:"flex",alignItems:"center",sx:{gap:"4px"},children:e.jsx(ee,{config:b,enableTooltip:!1,children:b.title})}),onDelete:u=>n(u,l)},l)})]})}Ke.propTypes={filterList:d.array.isRequired,onChange:d.func.isRequired,index:d.number.isRequired,column:d.object.isRequired,filterValues:d.array.isRequired,label:d.string.isRequired,renderLabel:d.func.isRequired};function Ke({filterList:t,onChange:s,index:n,column:o,filterValues:r,label:l,renderLabel:b}){return e.jsxs(Be,{className:"filter-container",children:[e.jsx(et,{component:"legend",children:l}),e.jsx(Ee,{row:!0,children:r.map(u=>e.jsx(De,{control:e.jsx(Ae,{checked:t[n].indexOf(u.value??u)>-1,onChange:D=>{const f=[...t];D.target.checked?f[n]=[...f[n],u.value??u]:f[n]=f[n].filter(C=>C!==(u.value??u)),s(f[n],n,o)},name:u.value??u}),label:e.jsx("span",{style:{display:"flex",alignItems:"center"},children:b(u)})},u.value??u))})]})}function Ie(t){return e.jsx(Ke,{...t,renderLabel:s=>e.jsx(ee,{enableTooltip:!1,config:{status:s.status},children:s.label})})}pe.propTypes={status:d.number.isRequired,updatedAt:d.string.isRequired,reason:d.string,channel:d.string,onResend:d.func};function pe({status:t,updatedAt:s,reason:n="",channel:o="wallet",onResend:r}){const{t:l,locale:b}=J(),u=ht(l,b,{status:t,updatedAt:s,reason:n,channel:o});return e.jsxs(v,{display:"flex",alignItems:"center",gap:1,children:[e.jsx(ee,{config:u,showTitle:!0}),u.status!=="success"&&e.jsx(we,{className:"resend-btn",size:"small",startIcon:e.jsx(ze,{}),sx:{fontSize:12,color:"rgba(0, 0, 0, 0.87)",fontWeight:400,".MuiButton-startIcon":{mr:"2px"}},onClick:r,children:l("notification.resend")})]})}Ue.propTypes={value:d.array.isRequired,onChange:d.func};function Ue({value:t,onChange:s}){const{locale:n}=J(),o=U().toDate(),[r,l]=x.useState(null),b=x.useCallback(f=>{l(r?null:f.currentTarget)},[r]),u=!!r,D=x.useCallback(f=>{if(!f.startDate||!f.endDate){V.error("Please select a date range");return}if(U(f.startDate).isAfter(f.endDate)||!U(f.startDate).isValid()||!U(f.endDate).isValid()){V.error("Invalid date range");return}s([f.startDate,f.endDate]),l(null)},[s]);return e.jsxs("div",{children:[e.jsx(G,{component:"div",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mb:0,children:e.jsxs(we,{onClick:b,variant:"outlined",size:"small",color:"inherit",children:[Ge(t[0],n)," - ",Ge(t[1],n)]})}),e.jsx(Oe,{open:u,anchorEl:r,onClose:()=>{l(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:e.jsx(Vt,{open:!0,maxDate:o,initialDateRange:{startDate:t[0],endDate:t[1]},toggle:b,definedRanges:Gt(o),onChange:D})})]})}$e.propTypes={itemComponent:d.elementType.isRequired};function $e({itemComponent:t,...s}){var r;const{t:n}=J();return!((r=s==null?void 0:s.filterList)!=null&&r.filter(l=>l.length).length)?null:e.jsxs(v,{display:"flex",gap:1,alignItems:"center",children:[e.jsx("div",{className:"toolbar-filter-title",children:n("notification.filter")}),e.jsx("div",{className:"toolbar-filter-content",children:e.jsx(Mt.TableFilterList,{...s,ItemComponent:t})})]})}function Te({label:t,onDelete:s,canDelete:n=()=>!0,...o}){const r=s&&typeof s=="function"?s:void 0;let l=!0;return n&&typeof n=="function"&&(l=n({label:t,...o})),e.jsx(_e,{label:t,variant:"outlined",...r&&l?{onDelete:r}:{}})}Te.propTypes={label:d.string.isRequired,onDelete:d.func,canDelete:d.func};Te.defaultProps={canDelete:()=>!0};const fs=[{label:"Wallet",value:"app",checked:!0},{label:"Email",value:"email",checked:!0},{label:"Push Kit",value:"push",checked:!0},{label:"Webhook",value:"webhook",checked:!0}];He.propTypes={loading:d.bool,onCancel:d.func,onConfirm:d.func};He.defaultProps={loading:!1,onCancel:()=>{},onConfirm:()=>{}};function He({loading:t=!1,onCancel:s,onConfirm:n}){const{t:o}=J(),[r,l]=x.useState(fs),[b,u]=x.useState(!0),D=(C,N)=>{N.checked=C.target.checked;const B=r.map(z=>({...z,checked:z.value===N.value?N.checked:z.checked}));l(B)},f=C=>{C.stopPropagation(),n({channels:r.filter(N=>N.checked).map(N=>N.value),isResendFailedOnly:b})};return e.jsxs(v,{className:"resend-config",sx:{padding:"16px 24px"},children:[e.jsx(G,{variant:"body1",component:"div",className:"check-title",sx:{fontWeight:700,mb:1},children:o("notification.config")}),e.jsx(v,{className:"choose-channel",children:e.jsxs(Be,{component:"fieldset",variant:"standard",children:[e.jsx(et,{component:"legend",children:o("notification.selectChannels")}),e.jsx(Ee,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:1},children:r.map(C=>e.jsx(De,{control:e.jsx(Ae,{checked:C.checked,onChange:N=>D(N,C),name:C.value}),label:C.label},C.value))})]})}),e.jsx(v,{className:"resend-config-footer",children:e.jsx(Ee,{children:e.jsx(De,{control:e.jsx(Ae,{checked:b,onChange:C=>u(C.target.checked)}),label:o("notification.resendFailedOnly")})})}),e.jsxs(v,{display:"flex",justifyContent:"flex-end",gap:1,className:"resend-config-footer-tip",children:[e.jsx(we,{onClick:C=>{C.stopPropagation(),s()},color:"inherit",children:o("common.cancel")}),e.jsxs(we,{onClick:f,color:"primary",disabled:t,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[t&&e.jsx(tt,{size:16}),o("common.confirm")]})]})]})}jt.propTypes={notificationId:d.string.isRequired,handleResend:d.func,resending:d.bool};function jt({notificationId:t,handleResend:s,resending:n=!1}){const{t:o,locale:r}=J(),l=st(),b=x.useMemo(()=>nt(l,bt()),[l]),{getReceivers:u,inService:D,teamDid:f,getUser:C,blocklet:N}=We(),[B,z]=x.useState(!1),[E,Y]=x.useState([]),P=Le({anchorEl:null,position:null}),k=Le({anchorEl:null,position:null}),[I,$]=x.useState(null),[Q,te]=x.useState({total:0,pageSize:10,pageCount:0,page:1}),[p,S]=x.useState({searchText:"",page:1,pageSize:10,walletSendStatus:[],pushKitSendStatus:[],emailSendStatus:[],dateRange:[U().subtract(1,"month").startOf("day").toDate(),U().endOf("day").toDate()]}),[A,w]=x.useState([]),O=[{label:o("notification.sendStatus.pending"),value:0,status:"pending"},{label:o("notification.sendStatus.success"),value:1,status:"success"},{label:o("notification.sendStatus.failed"),value:2,status:"failed"}],_=async()=>{if(!B&&t)try{z(!0);const a=await u({notificationId:t,...p}),i=a.list.map(c=>({...c,receiverUser:{...c.receiverUser,avatar:rt(c.receiverUser.avatar,f,D)}}));Y(i),te(a.paging),z(!1)}catch(a){V.error(a.message),z(!1)}};x.useEffect(()=>{_()},[p]);const Z=a=>{a.stopPropagation();const i=a.currentTarget;k.anchorEl=i;const c=i.getBoundingClientRect();k.position={top:c.top+window.scrollY,left:c.left+window.scrollX}},W=a=>a.data.length?e.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px"},children:e.jsx(ke,{className:"resend-btn",size:"small",color:"primary",variant:"contained",startIcon:e.jsx(ze,{}),sx:{".MuiButton-startIcon":{mr:"2px"}},onClick:Z,children:o("notification.resend")})}):null,ae={sort:!1,download:!1,print:!1,selectableRows:"multiple",searchPlaceholder:o("common.search"),searchAlwaysOpen:!1,filterType:"checkbox",searchDebounceTime:300,page:Q.page-1,rowsPerPage:Q.pageSize,count:Q.total,searchText:p.searchText,tableBodyMaxHeight:"calc(80vh - 260px)",rowsSelected:A,onRowSelectionChange:(a,i)=>{w(i.map(c=>c.dataIndex))},customToolbarSelect:W},se=({page:a,rowsPerPage:i,searchText:c,filterList:y})=>{const[,F=[],K=[],q=[]]=y;p.pageSize!==i?S(M=>({...M,pageSize:i,page:1})):p.page!==a+1?S(M=>({...M,page:a+1})):p.searchText!==c?S(M=>({...M,searchText:c,page:1})):fe(F,p.walletSendStatus)?fe(K,p.pushKitSendStatus)?fe(q,p.emailSendStatus)||S(M=>({...M,emailSendStatus:q,page:1})):S(M=>({...M,pushKitSendStatus:K,page:1})):S(M=>({...M,walletSendStatus:F,page:1}))},le=x.useCallback(async(a,i)=>{if(!i)return!1;const c=await C(i);return c?a==="wallet"?ls(c):a==="email"?os(N,c):a==="pushKit"?rs(N,c):a==="webhook"?cs(c):!0:!1},[C,N]),je=x.useCallback(a=>ds(o,a),[o]),ce=()=>{P.anchorEl=null,P.position=null,$(null)},de=()=>{k.anchorEl=null,k.position=null},ue=async(a,i,c=!0,y="")=>{if(!(!i.length||!a.length))try{s(a,i,c,y),k.anchorEl||(await ye(.5),ce())}catch(F){console.error("handleResend error",{error:F})}},h=async({channels:a,isResendFailedOnly:i})=>{const c=A.map(y=>E[y].receiver);await ue(a,c,i),await ye(.5),de(),w([])},m=async(a,i=[],c=!0)=>{try{await ue(["webhook"],[a.receiver],c,i)}catch(y){V.error(y.response?y.response.statusText:y.message)}},g=async(a,i,c,y=[],F=!0)=>{if(a.stopPropagation(),us(i,c)>=4){V.warning(o("notification.resendLimit"));return}if(!Fe.includes(c)){await m(i,y,F);return}if(a){const q=a.currentTarget,M=q.getBoundingClientRect();P.anchorEl=q,P.position={top:M.top+window.scrollY,left:M.left+window.scrollX}}$({channel:c});try{const q=await le(c,i.receiver);await ye(1),$({channel:c,result:q}),(typeof q=="boolean"&&q||Rt(q)&&Object.values(q).every(M=>!!M))&&(await s([c],[i.receiver],F),k.anchorEl||(await ye(.5),ce()))}catch(q){V.error(q.message)}},j=a=>{S(i=>({...i,dateRange:a,page:1}))},T=(a,i,c,y)=>{a.stopPropagation();const F=c.filter(K=>K!==i);S(K=>({...K,[y]:F,page:1}))},R=X(()=>[{label:o("notification.receiver"),name:"receiver",width:200,options:{filter:!1,customBodyRenderLite:a=>{const{receiverUser:i,receiver:c}=E[a];return i?e.jsxs(v,{"data-cy":`member-name-${i.fullName}`,display:"flex",alignItems:"center",gap:1,justifyContent:"flex-start",children:[e.jsx(at,{src:`${i.avatar}?imageFilter=resize&w=48&h=48`,size:32,did:c,shape:"circle",style:{borderRadius:"100%",overflow:"hidden"}}),e.jsx(xe,{children:i.fullName})]},c):e.jsx(Tt,{size:14,responsive:!1,compact:!0,copyable:!1,did:c})}}},{label:"Wallet",name:"walletSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),filter:!0,filterType:"custom",filterList:p.walletSendStatus??[],customFilterListOptions:{render:a=>e.jsx(me,{list:a,label:"Wallet",onDelete:(i,c)=>{i.stopPropagation(),T(i,c,R[1].options.filterList,"walletSendStatus")}}),update:Ce},filterOptions:{names:O,fullWidth:!0,logic:Ne,display:(a,i,c,y)=>e.jsx(Ie,{label:"Wallet",filterList:a,onChange:i,index:c,column:y,filterValues:O})},customBodyRenderLite:a=>{const{walletSendStatus:i,walletSendAt:c,walletSendFailedReason:y}=E[a];return e.jsx(pe,{status:i,updatedAt:c,reason:y,channel:"wallet",onResend:F=>g(F,E[a],"wallet",[],!1)})}}},{label:"Push Kit",name:"pushKitSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:a=>{const{pushKitSendStatus:i,pushKitSendAt:c,pushKitSendFailedReason:y}=E[a];return e.jsx(pe,{status:i,updatedAt:c,reason:y,channel:"pushkit",onResend:F=>g(F,E[a],"pushKit",[],!1)})},filter:!0,filterType:"custom",filterList:p.pushKitSendStatus??[],customFilterListOptions:{render:a=>e.jsx(me,{list:a,label:"Push Kit",onDelete:(i,c)=>{i.stopPropagation(),T(i,c,R[2].options.filterList,"pushKitSendStatus")}}),update:Ce},filterOptions:{names:O,fullWidth:!0,logic:Ne,display:(a,i,c,y)=>e.jsx(Ie,{label:"Push Kit",filterList:a,onChange:i,index:c,column:y,filterValues:O})}}},{label:"Email",name:"emailSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:a=>{const{emailSendStatus:i,emailSendAt:c,emailSendFailedReason:y}=E[a];return e.jsx(pe,{status:i,updatedAt:c,reason:y,channel:"email",onResend:F=>g(F,E[a],"email",[],!1)})},filter:!0,filterType:"custom",filterList:p.emailSendStatus??[],customFilterListOptions:{render:a=>e.jsx(me,{list:a,label:"Email",onDelete:(i,c)=>{i.stopPropagation(),T(i,c,R[3].options.filterList,"emailSendStatus")}}),update:Ce},filterOptions:{names:O,fullWidth:!0,logic:Ne,display:(a,i,c,y)=>e.jsx(Ie,{label:"Email",filterList:a,onChange:i,index:c,column:y,filterValues:O})}}},{label:"Webhook",name:"webhook",width:200,options:{filter:!1,setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:a=>{const{webhook:i}=E[a];if(!i)return null;const c=Object.entries(i)[0];if(!c)return null;const[y,F]=c,K=F[0];return e.jsx(v,{display:"flex",flexDirection:"column",gap:1,children:e.jsxs(v,{className:"webhook-item",fontSize:12,children:[e.jsx(xe,{maxLength:30,children:y},y),e.jsx(pe,{status:K.status,updatedAt:K.sendAt,reason:K.failedReason,channel:"webhook",onResend:q=>g(q,E[a],"webhook",[y],!1)})]},y)})}}},{label:o("common.createdAt"),name:"createdAt",width:100,options:{filter:!1,customBodyRenderLite:a=>{const{createdAt:i}=E[a];return e.jsx(it,{value:i,locale:r,shouldUpdate:!0})}}}],[E,r,p,o]),H=[e.jsx(Ue,{value:p.dateRange,onChange:j},"date-picker"),e.jsx(ke,{variant:"contained",size:"small",color:"primary",loading:B,startIcon:e.jsx(Ht,{}),onClick:()=>_(),sx:{".MuiButton-startIcon":{mr:"2px"}},style:{marginLeft:8},children:o("common.refresh")},"refresh")];return e.jsx(v,{sx:{overflow:"auto",".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"},".MuiTableCell-root":{paddingRight:"8px",whiteSpace:"nowrap"}},children:e.jsx(hs,{children:e.jsxs(ot,{theme:b,children:[e.jsx(dt,{className:"receivers-table",locale:r,loading:B,columns:R,data:E,onChange:se,options:ae,customButtons:H,components:{TableFilterList:a=>e.jsx($e,{...a,itemComponent:i=>e.jsx(Te,{...i,canDelete:()=>!1})})}}),P.anchorEl&&e.jsx(Oe,{open:!!P.anchorEl,anchorReference:"anchorPosition",anchorPosition:P.position,onClose:ce,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsxs(gs,{children:[e.jsxs(G,{variant:"body1",component:"div",className:"check-title",children:[I==null?void 0:I.channel," Checking"]}),e.jsx(v,{display:"flex",flexDirection:"column",sx:{gap:"4px"},children:je(I==null?void 0:I.channel).map(a=>{var F,K;const{type:i,pass:c,fail:y}=a;return!(I!=null&&I.result)||(F=I==null?void 0:I.result)!=null&&F[i]?e.jsxs(G,{variant:"body1",component:"div",className:"check-item",display:"flex",alignItems:"center",sx:{gap:"4px",color:(K=I==null?void 0:I.result)!=null&&K[i]?Se.success.main:"inherit"},children:[I!=null&&I.result?e.jsx(ft,{}):e.jsx(tt,{size:12,sx:{color:Se.primary.main}}),e.jsx("span",{children:c})]},i):e.jsxs(G,{variant:"body1",component:"div",display:"flex",alignItems:"center",className:"check-item",sx:{gap:"4px",color:Se.error.main},children:[e.jsx(mt,{}),e.jsx("span",{children:y})]},i)})})]})}),k.anchorEl&&e.jsx(Oe,{open:!!k.anchorEl,anchorReference:"anchorPosition",anchorPosition:k.position,onClose:de,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsx(He,{loading:n,onCancel:de,onConfirm:h})})]})})})}const ms=x.memo(jt),hs=re.div`
2
2
  td.MuiTableCell-footer {
3
3
  border: none !important;
4
4
  }
@@ -1,4 +1,4 @@
1
- import{u as $,j as e,P as a,n as _,b7 as Y,k as N,bi as ee,N as i,L as te,r as p,e as A,i as M,d as re,$ as ne,C as se,m as oe,J as v,a as h,F as V,b,de as ie,M as ae,bx as me,aI as le,df as ce,G as C,A as D,p as de,l as ue,z as pe,bq as fe}from"./index-BsTEuRio.js";import{T as ge}from"./index-DdKwcnDa.js";import{T as he}from"./traffic-BXrg_wx7.js";import{D as ye}from"./index-Dy6Ndspk.js";import{x as P}from"./index-BJHGOv7L.js";import{C as xe,M as T}from"./memory-CNHjW2ab.js";import{C as ve}from"./CardContent-Cg4RjHpv.js";import{w as Ce}from"./withStyles-D2YScWal.js";import{_ as je}from"./useLocalStorage-DdJoK4w7.js";import{T as Ie,a as be}from"./ToggleButtonGroup-BADZ1hmi.js";import"./iframe-JzwQis4I.js";import"./ChevronLeft-BNmKlc1J.js";import"./ChevronRight-DRPUyxAK.js";import"./index-BR_N19sK.js";import"./base-chart-DHzZnb2L.js";import"./index-CEkzM2Hy.js";import"./AdapterDayjs-cf9EXlHB.js";import"./useThemeProps-Rte_NmVE.js";import"./CSSTransition-Cz8SmnJv.js";import"./refType-Bi7lNIS6.js";import"./TableRow-CL8yhyVQ.js";import"./emotion-react.browser.esm-CyqIkV2y.js";import"./ViewColumn-DVO6c2uh.js";import"./Search-DmfQzntI.js";import"./Clear-C1AC1AtD.js";import"./Delete-CcdfJXTL.js";import"./index-BcLnPbZ_.js";import"./MoreVert-CjjkmApl.js";import"./TableSearch-CxUE73Wm.js";import"./getValidReactChildren-BhCPp8PX.js";function Me(){const{api:s,info:o}=$();return e.jsx(he,{client:s,did:o.did})}var B=function(s){return e.jsxs("svg",{...s,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.08295 3.2C2.08295 2.58144 2.58439 2.08 3.20295 2.08H28.8029C29.4215 2.08 29.9229 2.58144 29.9229 3.2V13.44C29.9229 14.0586 29.4215 14.56 28.8029 14.56H3.20295C2.58439 14.56 2.08295 14.0586 2.08295 13.44V3.2ZM4.32295 4.32V12.32H27.6829V4.32H4.32295ZM2.08295 18.56C2.08295 17.9414 2.58439 17.44 3.20295 17.44H28.8029C29.4215 17.44 29.9229 17.9414 29.9229 18.56V28.8C29.9229 29.4186 29.4215 29.92 28.8029 29.92H3.20295C2.58439 29.92 2.08295 29.4186 2.08295 28.8V18.56ZM4.32295 19.68V27.68H27.6829V19.68H4.32295Z",fill:"currentColor"}),e.jsx("path",{d:"M8.96297 7.04001H7.68297C7.51323 7.04001 7.35044 7.10744 7.23042 7.22746C7.1104 7.34748 7.04297 7.51027 7.04297 7.68001V8.96001C7.04297 9.12975 7.1104 9.29253 7.23042 9.41256C7.35044 9.53258 7.51323 9.60001 7.68297 9.60001H8.96297C9.13271 9.60001 9.29549 9.53258 9.41552 9.41256C9.53554 9.29253 9.60297 9.12975 9.60297 8.96001V7.68001C9.60297 7.51027 9.53554 7.34748 9.41552 7.22746C9.29549 7.10744 9.13271 7.04001 8.96297 7.04001ZM8.96297 22.4H7.68297C7.51323 22.4 7.35044 22.4674 7.23042 22.5875C7.1104 22.7075 7.04297 22.8703 7.04297 23.04V24.32C7.04297 24.4897 7.1104 24.6525 7.23042 24.7726C7.35044 24.8926 7.51323 24.96 7.68297 24.96H8.96297C9.13271 24.96 9.29549 24.8926 9.41552 24.7726C9.53554 24.6525 9.60297 24.4897 9.60297 24.32V23.04C9.60297 22.8703 9.53554 22.7075 9.41552 22.5875C9.29549 22.4674 9.13271 22.4 8.96297 22.4ZM14.083 7.04001H12.803C12.6332 7.04001 12.4704 7.10744 12.3504 7.22746C12.2304 7.34748 12.163 7.51027 12.163 7.68001V8.96001C12.163 9.12975 12.2304 9.29253 12.3504 9.41256C12.4704 9.53258 12.6332 9.60001 12.803 9.60001H14.083C14.2527 9.60001 14.4155 9.53258 14.5355 9.41256C14.6555 9.29253 14.723 9.12975 14.723 8.96001V7.68001C14.723 7.51027 14.6555 7.34748 14.5355 7.22746C14.4155 7.10744 14.2527 7.04001 14.083 7.04001ZM14.083 22.4H12.803C12.6332 22.4 12.4704 22.4674 12.3504 22.5875C12.2304 22.7075 12.163 22.8703 12.163 23.04V24.32C12.163 24.4897 12.2304 24.6525 12.3504 24.7726C12.4704 24.8926 12.6332 24.96 12.803 24.96H14.083C14.2527 24.96 14.4155 24.8926 14.5355 24.7726C14.6555 24.6525 14.723 24.4897 14.723 24.32V23.04C14.723 22.8703 14.6555 22.7075 14.5355 22.5875C14.4155 22.4674 14.2527 22.4 14.083 22.4Z",fill:"currentColor"})]})};B.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"};B.displayName="server";function L({style:s,title:o,value:d,graph:m,description:f,empty:u}){return e.jsx(Ne,{children:e.jsxs(ve,{style:{...s},children:[e.jsx(N,{sx:{fontSize:14},color:"text.secondary",children:o}),u&&ee.isValidElement(u)?e.jsx(i,{color:"text.secondary",display:"flex",justifyContent:"center",alignItems:"center",style:{height:150},children:u}):e.jsxs(e.Fragment,{children:[e.jsx(N,{variant:"h5",component:"div",mt:1,children:d}),m,!!f&&e.jsx(i,{display:"flex",sx:{fontSize:12,marginTop:3},color:"text.secondary",children:f})]})]})})}L.propTypes={style:a.object,title:a.node,value:a.node,graph:a.node,description:a.any,empty:a.node};L.defaultProps={style:{},title:null,value:null,graph:null,empty:null,description:null};const Ne=_(Y)`
1
+ import{u as $,j as e,P as a,n as _,b7 as Y,k as N,bi as ee,N as i,L as te,r as p,e as A,i as M,d as re,$ as ne,C as se,m as oe,J as v,a as h,F as V,b,de as ie,M as ae,bx as me,aI as le,df as ce,G as C,A as D,p as de,l as ue,z as pe,bq as fe}from"./index-DCLFGZPh.js";import{T as ge}from"./index-XfRo_cGN.js";import{T as he}from"./traffic-DRIGIlTP.js";import{D as ye}from"./index-DcZQiQhe.js";import{x as P}from"./index-BJHGOv7L.js";import{C as xe,M as T}from"./memory-v5RVA0t_.js";import{C as ve}from"./CardContent-BJ0aUqj5.js";import{w as Ce}from"./withStyles-BbUEkvtE.js";import{_ as je}from"./useLocalStorage-BihOtGwI.js";import{T as Ie,a as be}from"./ToggleButtonGroup-BSf4Bdiz.js";import"./iframe-Ex_gbVob.js";import"./ChevronLeft-TANNFeVQ.js";import"./ChevronRight-CKLF17f0.js";import"./index-B0Aod4fK.js";import"./base-chart-lV_tWBLU.js";import"./index-DULiHig2.js";import"./AdapterDayjs-DH8LVoSq.js";import"./useThemeProps-HKqSQ1Oh.js";import"./CSSTransition-B2XQ7Y5d.js";import"./refType-BVHdiekZ.js";import"./TableRow-Dlew3Q36.js";import"./emotion-react.browser.esm-DtDsQxkS.js";import"./ViewColumn-BDcQSSbP.js";import"./Search-CCJYN1r6.js";import"./Clear-BXGkmSCA.js";import"./Delete-_Fu6HSXD.js";import"./index-BLXO0nyi.js";import"./MoreVert-vYpS0zQc.js";import"./TableSearch-Dsw8k2Y-.js";import"./getValidReactChildren-7EPQhd7n.js";function Me(){const{api:s,info:o}=$();return e.jsx(he,{client:s,did:o.did})}var B=function(s){return e.jsxs("svg",{...s,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.08295 3.2C2.08295 2.58144 2.58439 2.08 3.20295 2.08H28.8029C29.4215 2.08 29.9229 2.58144 29.9229 3.2V13.44C29.9229 14.0586 29.4215 14.56 28.8029 14.56H3.20295C2.58439 14.56 2.08295 14.0586 2.08295 13.44V3.2ZM4.32295 4.32V12.32H27.6829V4.32H4.32295ZM2.08295 18.56C2.08295 17.9414 2.58439 17.44 3.20295 17.44H28.8029C29.4215 17.44 29.9229 17.9414 29.9229 18.56V28.8C29.9229 29.4186 29.4215 29.92 28.8029 29.92H3.20295C2.58439 29.92 2.08295 29.4186 2.08295 28.8V18.56ZM4.32295 19.68V27.68H27.6829V19.68H4.32295Z",fill:"currentColor"}),e.jsx("path",{d:"M8.96297 7.04001H7.68297C7.51323 7.04001 7.35044 7.10744 7.23042 7.22746C7.1104 7.34748 7.04297 7.51027 7.04297 7.68001V8.96001C7.04297 9.12975 7.1104 9.29253 7.23042 9.41256C7.35044 9.53258 7.51323 9.60001 7.68297 9.60001H8.96297C9.13271 9.60001 9.29549 9.53258 9.41552 9.41256C9.53554 9.29253 9.60297 9.12975 9.60297 8.96001V7.68001C9.60297 7.51027 9.53554 7.34748 9.41552 7.22746C9.29549 7.10744 9.13271 7.04001 8.96297 7.04001ZM8.96297 22.4H7.68297C7.51323 22.4 7.35044 22.4674 7.23042 22.5875C7.1104 22.7075 7.04297 22.8703 7.04297 23.04V24.32C7.04297 24.4897 7.1104 24.6525 7.23042 24.7726C7.35044 24.8926 7.51323 24.96 7.68297 24.96H8.96297C9.13271 24.96 9.29549 24.8926 9.41552 24.7726C9.53554 24.6525 9.60297 24.4897 9.60297 24.32V23.04C9.60297 22.8703 9.53554 22.7075 9.41552 22.5875C9.29549 22.4674 9.13271 22.4 8.96297 22.4ZM14.083 7.04001H12.803C12.6332 7.04001 12.4704 7.10744 12.3504 7.22746C12.2304 7.34748 12.163 7.51027 12.163 7.68001V8.96001C12.163 9.12975 12.2304 9.29253 12.3504 9.41256C12.4704 9.53258 12.6332 9.60001 12.803 9.60001H14.083C14.2527 9.60001 14.4155 9.53258 14.5355 9.41256C14.6555 9.29253 14.723 9.12975 14.723 8.96001V7.68001C14.723 7.51027 14.6555 7.34748 14.5355 7.22746C14.4155 7.10744 14.2527 7.04001 14.083 7.04001ZM14.083 22.4H12.803C12.6332 22.4 12.4704 22.4674 12.3504 22.5875C12.2304 22.7075 12.163 22.8703 12.163 23.04V24.32C12.163 24.4897 12.2304 24.6525 12.3504 24.7726C12.4704 24.8926 12.6332 24.96 12.803 24.96H14.083C14.2527 24.96 14.4155 24.8926 14.5355 24.7726C14.6555 24.6525 14.723 24.4897 14.723 24.32V23.04C14.723 22.8703 14.6555 22.7075 14.5355 22.5875C14.4155 22.4674 14.2527 22.4 14.083 22.4Z",fill:"currentColor"})]})};B.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"};B.displayName="server";function L({style:s,title:o,value:d,graph:m,description:f,empty:u}){return e.jsx(Ne,{children:e.jsxs(ve,{style:{...s},children:[e.jsx(N,{sx:{fontSize:14},color:"text.secondary",children:o}),u&&ee.isValidElement(u)?e.jsx(i,{color:"text.secondary",display:"flex",justifyContent:"center",alignItems:"center",style:{height:150},children:u}):e.jsxs(e.Fragment,{children:[e.jsx(N,{variant:"h5",component:"div",mt:1,children:d}),m,!!f&&e.jsx(i,{display:"flex",sx:{fontSize:12,marginTop:3},color:"text.secondary",children:f})]})]})})}L.propTypes={style:a.object,title:a.node,value:a.node,graph:a.node,description:a.any,empty:a.node};L.defaultProps={style:{},title:null,value:null,graph:null,empty:null,description:null};const Ne=_(Y)`
2
2
  .card-content {
3
3
  height: 150px;
4
4
  }
@@ -1,4 +1,4 @@
1
- import{j as e,F as r,r as n,e as o,k as i,n as a}from"./index-BsTEuRio.js";const s=({...t})=>e.jsxs("div",{...t,children:[e.jsx("h3",{children:"End User License Agreement for Blocklet Server"}),e.jsxs("p",{children:["Blocklet Server License Agreement ",r.COPYRIGHT_OWNER," version 2020-08-28"]}),e.jsx("p",{children:"Blocklet Server LICENSE AGREEMENT"}),e.jsxs("p",{children:["PLEASE READ THIS END USER LICENCE AGREEMENT CAREFULLY. This Blocklet Server License Agreement ('Agreement') is a legal agreement between you (the 'End User') and ",r.COPYRIGHT_OWNER," (ARCBLOCK) for the Blocklet Server software (the 'Software') licensed to End User hereunder and supplied to End User. The term Software includes any APIs, software modules, and any associated materials and 'online' or electronic documentation. This Agreement applies to End User's use of the Software but it shall be superseded by any signed agreement between End User and ARCBLOCK concerning the Software."]}),e.jsx("p",{children:"By installing or using the Software, You agree to accept and to be bound by this Agreement at all times. If You do not agree with one of these, please do not install or use the Software."}),e.jsx("h4",{children:"1. Software license"}),e.jsx("p",{children:"Notwithstanding any reference to 'sale' or 'purchase', the Software is licensed, not sold. Subject to the terms and conditions of this Agreement, ARCBLOCK grants End User a non-exclusive, non-transferable right to access and use the Software as part of the services for End User's use ('Authorized Use') in object form in the products, versions, and number of installed instances as purchased from ARCBLOCK."}),e.jsx("h4",{children:"2. Limitations"}),e.jsx("p",{children:"2.1. Restrictions. End User shall not itself, or through any parent, subsidiary, affiliate, agent or other third party: (a) sell, lease, license, distribute, sublicense or otherwise transfer in whole or in part, the Software to a third party; (b) decompile, disassemble, translate, reverse engineer or otherwise attempt to derive source code from the Software except to the limited extent, if any, that applicable law permits such acts notwithstanding any contractual prohibitions, provided, however, before End User exercises any rights that End User believes to be entitled to based on mandatory law, End User shall provide ARCBLOCK with thirty (30) days prior written notice and provide all reasonably requested information to allow ARCBLOCK to assess End User's claim and, at ARCBLOCK sole discretion, to provide alternatives that reduce any adverse impact on ARCBLOCK's intellectual property or other rights; (c) allow access or permit use of the Software by any third party except authorized third party contractors solely to provide services to End User, provided that End User shall be liable for all acts and omissions of such authorized third party contractors; (d) modify or create derivative works based upon the Software; (e) disclose the results of any benchmark test of the Software to any third party; (f) change any proprietary rights notices which appear in the Software; or (g) circumvent the license keys embedded within the Software."}),e.jsx("p",{children:"2.2. Software Transfer. Upon written consent from ARCBLOCK, which will not be unreasonably withheld, End User may permanently transfer all of its rights under this Agreement; provided that the recipient agrees to the terms of this Agreement."}),e.jsx("p",{children:"2.3. High Risk Activities. The Software is not intended for use in hazardous environments requiring fail safe performance (such as, without limitation, the planning, construction, maintenance, control, or direct operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, medical device and life support machines, or weapon systems) in which the failure of the Software could lead to death, personal injury or physical and environmental damage ('High Risk Activities'). Accordingly, this Agreement excludes any High Risk Activities and End User agrees not to use the Software in connection with High Risk Activities."}),e.jsx("h4",{children:"3. Ownership"}),e.jsx("p",{children:"The Software is protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. ARCBLOCK owns all rights, title and interest in the copyrights, patents and all other intellectual property rights in and to the Software and any accompanying printed materials, and all derivative works thereof."}),e.jsx("h4",{children:"4. Open source programs"}),e.jsx("p",{children:"The Software may include individual open source software components, each of which has its own copyright and its own applicable license conditions. The open source software components are licensed to End User under the terms of the applicable open source license conditions and/or copyright notices that can be found in the licenses file, the related documentation or other materials accompanying the Software."}),e.jsx("h4",{children:"5. Trademarks"}),e.jsx("p",{children:"The marks 'ARCBLOCK', ‘BLOCKLETS’ and ‘Blocklet Server’ are trademarks of ARCBLOCK. ARCBLOCK's failure to list a trademark in this Section shall not constitute a waiver of any trademark rights. All other trademarks in the Software not owned by ARCBLOCK are the property of their respective owners."}),e.jsx("h4",{children:"6. Disclaimer and Warranty"}),e.jsx("p",{children:"6.1. DISCLAIMER OF WARRANTIES. THE SOFTWARE IS PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND AND ARCBLOCK EXPRESSLY DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED OR ARISING OUT OF A COURSE OF CONDUCT OR COURSE OF DEALING, INCLUDING ALL WARRANTIES OF TITLE, PERFORMANCE, USE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON INFRINGEMENT AND THE ABSENCE OF LATENT OR OTHER DEFECTS, WHETHER OR NOT DISCOVERABLE. ARCBLOCK MAKES NO WARRANTY REGARDING NON INTERRUPTION OF USE. NO ORAL OR WRITTEN STATEMENT PROVIDED BY ARCBLOCK SHALL CREATE ANY WARRANTY."}),e.jsx("p",{children:"6.2. LIMITATION OF LIABILITY. THE ENTIRE RISK AS TO THE RESULTS AND PERFORMANCE OF THE SOFTWARE IS ASSUMED BY END USER. ARCBLOCK SHALL NOT HAVE ANY LIABILITY TO END USER OR ANY OTHER PARTY FOR ANY INDIRECT, INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES WHATSOEVER, INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUE, PROFIT OR OPPORTUNITY, LOST OR DAMAGED DATA OR OTHER COMMERCIAL OR ECONOMIC LOSS, EVEN IF ARCBLOCK HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR THEY ARE FORESEEABLE. ARCBLOCK'S MAXIMUM AGGREGATE LIABILITY RELATING TO THIS AGREEMENT OR THE SOFTWARE SHALL NOT EXCEED THE AMOUNT PAID BY END USER FOR THE SOFTWARE."}),e.jsx("p",{children:"6.3. ALLOCATION. THE PROVISIONS OF THIS SECTION ALLOCATE RISKS UNDER THIS AGREEMENT BETWEEN ARCBLOCK AND END USER. ARCBLOCK'S LICENSING FEES FOR THE SOFTWARE REFLECT THIS ALLOCATION OF RISKS AND LIMITATION OF LIABILITY. THE FOREGOING LIMITATIONS, EXCLUSIONS AND DISCLAIMERS APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, EVEN IF ANY REMEDY FAILS IN ITS ESSENTIAL PURPOSE."}),e.jsx("p",{children:"6.4. Limitation. Because some jurisdictions do not allow certain disclaimers, exclusions or limitations of warranties, damages or liability, the above disclaimers, exclusions or limitations may not apply to End User and, therefore, shall apply only to the maximum extent allowed under applicable law."}),e.jsx("h4",{children:"7. Term"}),e.jsx("p",{children:"This Agreement is effective until terminated. End Users may terminate the Agreement at any time by returning or destroying all copies of the Software and related documentation. End User's rights under this Agreement will terminate automatically if End User fails to comply with the Agreement."}),e.jsx("h4",{children:"8. Miscellaneous"}),e.jsx("p",{children:"8.1. Governing Law. This Agreement shall be governed by the laws of the State of Washington, without reference to the principles of conflicts of law. The provisions of the Uniform Computerized Information Transaction Act and United Nations Convention on Contracts for the International Sale of Goods shall not apply to this Agreement. Any litigation related to this Agreement shall be brought in the state or federal courts located in Washington, and only in those courts and each party irrevocably waives any objections to such venue. Notwithstanding anything to the contrary herein, ARCBLOCK shall be entitled to seek injunctive or other equitable relief, wherever ARCBLOCK deems appropriate in any jurisdiction, in order to preserve or enforce ARCBLOCK's rights for any breach or threatened breach of this Agreement."}),e.jsx("p",{children:"8.2. Severability. Every term, condition or provision of this Agreement is severable from the others. If a court or an arbitrator of competent jurisdiction holds any term, condition or provision of this Agreement to be invalid, unenforceable or illegal in whole or in part for any reason, the validity and enforceability of the remaining terms, conditions or provisions, or portions of them, will not be affected."}),e.jsx("p",{children:"8.3. Confidentiality. Except as expressly allowed by this Agreement, End User will not use or disclose any Software or related technology, idea, algorithm or information ('Confidential Information') except to the extent End User can document that it is generally available for use and disclosure by the public without charge or license. End User shall hold the Confidential Information in trust and confidence and avoid the disclosure or release thereof to any other person or entity by using the same degree of care as it uses to avoid unauthorized use, disclosure, or dissemination of its own Confidential Information of a similar nature, but not less than reasonable care. End User may disclose Confidential Information as required to comply with binding orders of governmental entities that have jurisdiction over it; provided that End User gives ARCBLOCK reasonable written notice to allow ARCBLOCK to seek a protective order or other appropriate remedy, discloses only such Confidential Information as is required by the governmental entity, and uses commercially reasonable efforts to obtain confidential treatment for any Confidential Information disclosed. End User recognizes and agrees that there is no adequate remedy at law for a breach of this Section, that such a breach would irreparably harm ARCBLOCK and that ARCBLOCK is entitled to equitable relief (without need to post a bond) with respect to any such breach or potential breach in addition to any other remedies."}),e.jsx("p",{children:"8.4. Indemnity. End User shall defend, indemnify and hold harmless ARCBLOCK, and its officers, directors, employees and agents (the ARCBLOCK indemnities’), from and against all suits, claims, demands, losses, liabilities, damages and expenses (including reasonable attorneys' fees and costs) that the ARCBLOCK Indemnities may suffer or incur in connection with: (i) any third party claim arising from End User's breach of this Agreement; and (ii) any infringement by End User of ARCBLOCK's intellectual property rights in the Software."}),e.jsx("p",{children:"8.5. Entire Agreement and Waiver. The Agreement is the sole, final and entire agreement between the parties with respect to the subject matter hereof, may only be amended in writing signed by both ARCBLOCK License parties. A failure or delay in enforcing any provisions, exercising any option or requiring performance, be construed to be a waiver by ARCBLOCK."}),e.jsx("p",{children:"8.6. Marketing. ARCBLOCK may use End User's name and company logo on its customer list and web site, and link to End User's web site."}),e.jsx("p",{children:"8.7. Independent Contractor. The relationship of the parties is that of independent contractors. Neither party will be deemed to be the legal representative of the other nor will it have any right to bind the other party to any contract or commitment. This Agreement does not, and will not, be construed to create an employer employee, agency, joint venture or partnership relationship between the parties. Each party agrees to assume complete responsibility for its own employees regarding federal or state laws, including employers' liability and tax withholding, worker's compensation, social security, unemployment insurance, and OSHA requirements."}),e.jsx("p",{children:"8.8. Notices. All notices must be in writing and will be effective three (3) days after the date sent to each party's corporate headquarters."}),e.jsx("p",{children:"8.9. Audit. During the term of this Agreement and for one (1) year following termination or expiration (but no more than once in a calendar year), ARCBLOCK and its auditors may inspect End User's records relating to its reproduction and use of the Software for the purposes of verifying End User's compliance with this Agreement. End User shall cooperate fully with ARCBLOCK and its auditors in conducting audits and provide reasonable assistance. If an underpayment is discovered, End User shall promptly pay such amount and End User shall reimburse ARCBLOCK for the cost of the audit."}),e.jsx("p",{children:`8.10. Government Regulation. End User acknowledges that the Software is subject to export restrictions by the U.S. government and import restrictions by certain foreign governments. End User may not export or re-export the Software except in compliance with the U.S. Export Administration Act and the related rules and regulations and similar non-U.S. government restrictions, if applicable. End User shall not and shall not allow any third party to remove or export from the United States or allow the export or re export of any part of the Software or any direct product thereof: (i) into (or to a national or resident of) any embargoed or terrorist supporting country; (ii) to anyone on the U.S. Commerce Department's Table of Denial Orders or U.S. Treasury Department's list of Specially Designated Nationals; (iii) to any country to which such export or re export is restricted or prohibited, or as to which the U.S. government or any agency thereof requires an export license or other governmental approval at the time of export or re export without first obtaining such license or approval; or (iv) otherwise in violation of any export or import restrictions, laws or regulations of any United States or foreign agency or authority. End User agrees to the foregoing and warrants that it is not located in, under the control of, or a national or resident of any such prohibited country or on any such prohibited party list. The Software is further restricted from being used for terrorist activity, or for the design or development of nuclear, chemical, or biological weapons or missile technology without the prior permission of the U.S. government. The Software and accompanying documentation are deemed to be "commercial computer software" and "commercial computer software documentation", respectively, pursuant to DFAR Section 227.7202 and FAR Section 12.212(b), as applicable. Any use, modification, reproduction, release, performing, displaying or disclosing of the Software and related documentation by the U.S. Government shall be governed solely by the terms of this Agreement.`})]});function h(){const{t}=n.useContext(o);return e.jsxs(l,{children:[e.jsx(i,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:t("setup.steps.eula")}),e.jsx(s,{})]})}const l=a.main`
1
+ import{j as e,F as r,r as n,e as o,k as i,n as a}from"./index-DCLFGZPh.js";const s=({...t})=>e.jsxs("div",{...t,children:[e.jsx("h3",{children:"End User License Agreement for Blocklet Server"}),e.jsxs("p",{children:["Blocklet Server License Agreement ",r.COPYRIGHT_OWNER," version 2020-08-28"]}),e.jsx("p",{children:"Blocklet Server LICENSE AGREEMENT"}),e.jsxs("p",{children:["PLEASE READ THIS END USER LICENCE AGREEMENT CAREFULLY. This Blocklet Server License Agreement ('Agreement') is a legal agreement between you (the 'End User') and ",r.COPYRIGHT_OWNER," (ARCBLOCK) for the Blocklet Server software (the 'Software') licensed to End User hereunder and supplied to End User. The term Software includes any APIs, software modules, and any associated materials and 'online' or electronic documentation. This Agreement applies to End User's use of the Software but it shall be superseded by any signed agreement between End User and ARCBLOCK concerning the Software."]}),e.jsx("p",{children:"By installing or using the Software, You agree to accept and to be bound by this Agreement at all times. If You do not agree with one of these, please do not install or use the Software."}),e.jsx("h4",{children:"1. Software license"}),e.jsx("p",{children:"Notwithstanding any reference to 'sale' or 'purchase', the Software is licensed, not sold. Subject to the terms and conditions of this Agreement, ARCBLOCK grants End User a non-exclusive, non-transferable right to access and use the Software as part of the services for End User's use ('Authorized Use') in object form in the products, versions, and number of installed instances as purchased from ARCBLOCK."}),e.jsx("h4",{children:"2. Limitations"}),e.jsx("p",{children:"2.1. Restrictions. End User shall not itself, or through any parent, subsidiary, affiliate, agent or other third party: (a) sell, lease, license, distribute, sublicense or otherwise transfer in whole or in part, the Software to a third party; (b) decompile, disassemble, translate, reverse engineer or otherwise attempt to derive source code from the Software except to the limited extent, if any, that applicable law permits such acts notwithstanding any contractual prohibitions, provided, however, before End User exercises any rights that End User believes to be entitled to based on mandatory law, End User shall provide ARCBLOCK with thirty (30) days prior written notice and provide all reasonably requested information to allow ARCBLOCK to assess End User's claim and, at ARCBLOCK sole discretion, to provide alternatives that reduce any adverse impact on ARCBLOCK's intellectual property or other rights; (c) allow access or permit use of the Software by any third party except authorized third party contractors solely to provide services to End User, provided that End User shall be liable for all acts and omissions of such authorized third party contractors; (d) modify or create derivative works based upon the Software; (e) disclose the results of any benchmark test of the Software to any third party; (f) change any proprietary rights notices which appear in the Software; or (g) circumvent the license keys embedded within the Software."}),e.jsx("p",{children:"2.2. Software Transfer. Upon written consent from ARCBLOCK, which will not be unreasonably withheld, End User may permanently transfer all of its rights under this Agreement; provided that the recipient agrees to the terms of this Agreement."}),e.jsx("p",{children:"2.3. High Risk Activities. The Software is not intended for use in hazardous environments requiring fail safe performance (such as, without limitation, the planning, construction, maintenance, control, or direct operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, medical device and life support machines, or weapon systems) in which the failure of the Software could lead to death, personal injury or physical and environmental damage ('High Risk Activities'). Accordingly, this Agreement excludes any High Risk Activities and End User agrees not to use the Software in connection with High Risk Activities."}),e.jsx("h4",{children:"3. Ownership"}),e.jsx("p",{children:"The Software is protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. ARCBLOCK owns all rights, title and interest in the copyrights, patents and all other intellectual property rights in and to the Software and any accompanying printed materials, and all derivative works thereof."}),e.jsx("h4",{children:"4. Open source programs"}),e.jsx("p",{children:"The Software may include individual open source software components, each of which has its own copyright and its own applicable license conditions. The open source software components are licensed to End User under the terms of the applicable open source license conditions and/or copyright notices that can be found in the licenses file, the related documentation or other materials accompanying the Software."}),e.jsx("h4",{children:"5. Trademarks"}),e.jsx("p",{children:"The marks 'ARCBLOCK', ‘BLOCKLETS’ and ‘Blocklet Server’ are trademarks of ARCBLOCK. ARCBLOCK's failure to list a trademark in this Section shall not constitute a waiver of any trademark rights. All other trademarks in the Software not owned by ARCBLOCK are the property of their respective owners."}),e.jsx("h4",{children:"6. Disclaimer and Warranty"}),e.jsx("p",{children:"6.1. DISCLAIMER OF WARRANTIES. THE SOFTWARE IS PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND AND ARCBLOCK EXPRESSLY DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED OR ARISING OUT OF A COURSE OF CONDUCT OR COURSE OF DEALING, INCLUDING ALL WARRANTIES OF TITLE, PERFORMANCE, USE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON INFRINGEMENT AND THE ABSENCE OF LATENT OR OTHER DEFECTS, WHETHER OR NOT DISCOVERABLE. ARCBLOCK MAKES NO WARRANTY REGARDING NON INTERRUPTION OF USE. NO ORAL OR WRITTEN STATEMENT PROVIDED BY ARCBLOCK SHALL CREATE ANY WARRANTY."}),e.jsx("p",{children:"6.2. LIMITATION OF LIABILITY. THE ENTIRE RISK AS TO THE RESULTS AND PERFORMANCE OF THE SOFTWARE IS ASSUMED BY END USER. ARCBLOCK SHALL NOT HAVE ANY LIABILITY TO END USER OR ANY OTHER PARTY FOR ANY INDIRECT, INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES WHATSOEVER, INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUE, PROFIT OR OPPORTUNITY, LOST OR DAMAGED DATA OR OTHER COMMERCIAL OR ECONOMIC LOSS, EVEN IF ARCBLOCK HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR THEY ARE FORESEEABLE. ARCBLOCK'S MAXIMUM AGGREGATE LIABILITY RELATING TO THIS AGREEMENT OR THE SOFTWARE SHALL NOT EXCEED THE AMOUNT PAID BY END USER FOR THE SOFTWARE."}),e.jsx("p",{children:"6.3. ALLOCATION. THE PROVISIONS OF THIS SECTION ALLOCATE RISKS UNDER THIS AGREEMENT BETWEEN ARCBLOCK AND END USER. ARCBLOCK'S LICENSING FEES FOR THE SOFTWARE REFLECT THIS ALLOCATION OF RISKS AND LIMITATION OF LIABILITY. THE FOREGOING LIMITATIONS, EXCLUSIONS AND DISCLAIMERS APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, EVEN IF ANY REMEDY FAILS IN ITS ESSENTIAL PURPOSE."}),e.jsx("p",{children:"6.4. Limitation. Because some jurisdictions do not allow certain disclaimers, exclusions or limitations of warranties, damages or liability, the above disclaimers, exclusions or limitations may not apply to End User and, therefore, shall apply only to the maximum extent allowed under applicable law."}),e.jsx("h4",{children:"7. Term"}),e.jsx("p",{children:"This Agreement is effective until terminated. End Users may terminate the Agreement at any time by returning or destroying all copies of the Software and related documentation. End User's rights under this Agreement will terminate automatically if End User fails to comply with the Agreement."}),e.jsx("h4",{children:"8. Miscellaneous"}),e.jsx("p",{children:"8.1. Governing Law. This Agreement shall be governed by the laws of the State of Washington, without reference to the principles of conflicts of law. The provisions of the Uniform Computerized Information Transaction Act and United Nations Convention on Contracts for the International Sale of Goods shall not apply to this Agreement. Any litigation related to this Agreement shall be brought in the state or federal courts located in Washington, and only in those courts and each party irrevocably waives any objections to such venue. Notwithstanding anything to the contrary herein, ARCBLOCK shall be entitled to seek injunctive or other equitable relief, wherever ARCBLOCK deems appropriate in any jurisdiction, in order to preserve or enforce ARCBLOCK's rights for any breach or threatened breach of this Agreement."}),e.jsx("p",{children:"8.2. Severability. Every term, condition or provision of this Agreement is severable from the others. If a court or an arbitrator of competent jurisdiction holds any term, condition or provision of this Agreement to be invalid, unenforceable or illegal in whole or in part for any reason, the validity and enforceability of the remaining terms, conditions or provisions, or portions of them, will not be affected."}),e.jsx("p",{children:"8.3. Confidentiality. Except as expressly allowed by this Agreement, End User will not use or disclose any Software or related technology, idea, algorithm or information ('Confidential Information') except to the extent End User can document that it is generally available for use and disclosure by the public without charge or license. End User shall hold the Confidential Information in trust and confidence and avoid the disclosure or release thereof to any other person or entity by using the same degree of care as it uses to avoid unauthorized use, disclosure, or dissemination of its own Confidential Information of a similar nature, but not less than reasonable care. End User may disclose Confidential Information as required to comply with binding orders of governmental entities that have jurisdiction over it; provided that End User gives ARCBLOCK reasonable written notice to allow ARCBLOCK to seek a protective order or other appropriate remedy, discloses only such Confidential Information as is required by the governmental entity, and uses commercially reasonable efforts to obtain confidential treatment for any Confidential Information disclosed. End User recognizes and agrees that there is no adequate remedy at law for a breach of this Section, that such a breach would irreparably harm ARCBLOCK and that ARCBLOCK is entitled to equitable relief (without need to post a bond) with respect to any such breach or potential breach in addition to any other remedies."}),e.jsx("p",{children:"8.4. Indemnity. End User shall defend, indemnify and hold harmless ARCBLOCK, and its officers, directors, employees and agents (the ARCBLOCK indemnities’), from and against all suits, claims, demands, losses, liabilities, damages and expenses (including reasonable attorneys' fees and costs) that the ARCBLOCK Indemnities may suffer or incur in connection with: (i) any third party claim arising from End User's breach of this Agreement; and (ii) any infringement by End User of ARCBLOCK's intellectual property rights in the Software."}),e.jsx("p",{children:"8.5. Entire Agreement and Waiver. The Agreement is the sole, final and entire agreement between the parties with respect to the subject matter hereof, may only be amended in writing signed by both ARCBLOCK License parties. A failure or delay in enforcing any provisions, exercising any option or requiring performance, be construed to be a waiver by ARCBLOCK."}),e.jsx("p",{children:"8.6. Marketing. ARCBLOCK may use End User's name and company logo on its customer list and web site, and link to End User's web site."}),e.jsx("p",{children:"8.7. Independent Contractor. The relationship of the parties is that of independent contractors. Neither party will be deemed to be the legal representative of the other nor will it have any right to bind the other party to any contract or commitment. This Agreement does not, and will not, be construed to create an employer employee, agency, joint venture or partnership relationship between the parties. Each party agrees to assume complete responsibility for its own employees regarding federal or state laws, including employers' liability and tax withholding, worker's compensation, social security, unemployment insurance, and OSHA requirements."}),e.jsx("p",{children:"8.8. Notices. All notices must be in writing and will be effective three (3) days after the date sent to each party's corporate headquarters."}),e.jsx("p",{children:"8.9. Audit. During the term of this Agreement and for one (1) year following termination or expiration (but no more than once in a calendar year), ARCBLOCK and its auditors may inspect End User's records relating to its reproduction and use of the Software for the purposes of verifying End User's compliance with this Agreement. End User shall cooperate fully with ARCBLOCK and its auditors in conducting audits and provide reasonable assistance. If an underpayment is discovered, End User shall promptly pay such amount and End User shall reimburse ARCBLOCK for the cost of the audit."}),e.jsx("p",{children:`8.10. Government Regulation. End User acknowledges that the Software is subject to export restrictions by the U.S. government and import restrictions by certain foreign governments. End User may not export or re-export the Software except in compliance with the U.S. Export Administration Act and the related rules and regulations and similar non-U.S. government restrictions, if applicable. End User shall not and shall not allow any third party to remove or export from the United States or allow the export or re export of any part of the Software or any direct product thereof: (i) into (or to a national or resident of) any embargoed or terrorist supporting country; (ii) to anyone on the U.S. Commerce Department's Table of Denial Orders or U.S. Treasury Department's list of Specially Designated Nationals; (iii) to any country to which such export or re export is restricted or prohibited, or as to which the U.S. government or any agency thereof requires an export license or other governmental approval at the time of export or re export without first obtaining such license or approval; or (iv) otherwise in violation of any export or import restrictions, laws or regulations of any United States or foreign agency or authority. End User agrees to the foregoing and warrants that it is not located in, under the control of, or a national or resident of any such prohibited country or on any such prohibited party list. The Software is further restricted from being used for terrorist activity, or for the design or development of nuclear, chemical, or biological weapons or missile technology without the prior permission of the U.S. government. The Software and accompanying documentation are deemed to be "commercial computer software" and "commercial computer software documentation", respectively, pursuant to DFAR Section 227.7202 and FAR Section 12.212(b), as applicable. Any use, modification, reproduction, release, performing, displaying or disclosing of the Software and related documentation by the U.S. Government shall be governed solely by the terms of this Agreement.`})]});function h(){const{t}=n.useContext(o);return e.jsxs(l,{children:[e.jsx(i,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:t("setup.steps.eula")}),e.jsx(s,{})]})}const l=a.main`
2
2
  .page-header {
3
3
  display: flex;
4
4
  justify-content: space-between;
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./lottie-react.esm-BHwF6ttF.js","./index-BsTEuRio.js","./index-Cp6LwWOU.css"])))=>i.map(i=>d[i]);
2
- import{c6 as H,r as h,cx as X,bX as _,j as e,hn as q,aU as B,fX as W,N as l,G as b,k as S,t as J,aZ as K,ep as N,n as k,dx as M,dy as Y,a5 as Z,bC as L,am as Q,aV as ee,lp as te}from"./index-BsTEuRio.js";import{R as re,a as ie}from"./url-evaluation-PNUzVXFG.js";import{S as O}from"./Slider-C7KUHAl4.js";import{k as oe,g as ae}from"./index-CuCDUbks.js";import{C as se}from"./Close-DRWGcKKl.js";import"./url-join-BT4uwgMW.js";import"./index-DJfwuANq.js";import"./_createAggregator-DKh4oPcE.js";import"./index-Xeh4Hy1K.js";import"./resource-dialog-Bj4Rm8z8.js";import"./index-DdKwcnDa.js";import"./index-BcLnPbZ_.js";import"./index-qPfSbb8F.js";import"./use-mobile-DaylDy56.js";import"./ListItemButton-FKXnIc0i.js";import"./index-YHRJ5Z9D.js";import"./emotion-react.browser.esm-CyqIkV2y.js";import"./index-hpqdONWL.js";import"./Switch-D1aSf0Rk.js";import"./index-Dy6Ndspk.js";import"./TableRow-CL8yhyVQ.js";import"./useThemeProps-Rte_NmVE.js";import"./ViewColumn-DVO6c2uh.js";import"./Search-DmfQzntI.js";import"./Clear-C1AC1AtD.js";import"./Delete-CcdfJXTL.js";import"./MoreVert-CjjkmApl.js";import"./TableSearch-CxUE73Wm.js";import"./index-DmqHgbIB.js";import"./OpenInNew-D-RnzHyt.js";import"./index-BJHGOv7L.js";import"./index-BojVbZw0.js";import"./HelpOutline-DIMDDIpO.js";import"./index-BVHtC5Hk.js";import"./ButtonGroup-B3J8Qdyl.js";import"./getValidReactChildren-BhCPp8PX.js";import"./toUpper-CnLEnHph.js";function ne(t){var c=H(h.useState(t),2),s=c[0],i=c[1],n=X(s),m=h.useCallback(function(){return n.current},[]);return[s,i,m]}const le=_([e.jsx("path",{d:"M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m-2 13-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z",opacity:".3"},"0"),e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"},"1")],"CheckCircleTwoTone"),ce=_(e.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),de=_(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonUnchecked"),me=_(e.jsx("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2m-2-1h8v-2H5zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5m4.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94z"}),"TipsAndUpdates"),D=h.createContext({}),F=()=>h.useContext(D);function pe({children:t,restrictions:c,i18n:s,theme:i}){const[n,m]=ne({loading:!1}),p=a=>m(j=>({...j,loading:a})),f=h.useMemo(()=>({...n,onLoading:p,restrictions:c,i18n:s}),[n]);return e.jsx(q,{theme:i,children:e.jsx(D.Provider,{value:f,children:t})})}const xe=["1024x1024","1024x1792","1792x1024"],ue=["256x256","512x512","1024x1024"],he=[{label:"DALL·E 3",value:"dall-e-3"},{label:"DALL·E 2",value:"dall-e-2"}];function fe({onSubmit:t}){const{loading:c,i18n:s}=F(),i=B({model:"dall-e-3",prompt:"",size:"1024x1024",number:1}),n=()=>{const a=JSON.parse(JSON.stringify(i));Object.values(i).every(y=>!!y)&&t(a)},{run:m}=W(n,{wait:500}),p={width:"100%",pl:1,pr:1},f=i.model==="dall-e-2"?ue:xe;return e.jsxs(ge,{onSubmit:a=>a.preventDefault(),children:[e.jsx(l,{sx:{flex:1,overflowY:"auto",overflowX:"hidden",m:2,mb:0},children:e.jsxs(b,{container:!0,gap:2.5,children:[e.jsxs(b,{item:!0,xs:12,children:[e.jsx(S,{gutterBottom:!0,className:"title label",color:"text.primary",children:s("aiImagePrompt")}),e.jsx(J,{sx:{width:1,mt:1},size:"small",type:"text",required:!0,placeholder:s("aiImagePromptTip"),multiline:!0,minRows:5,maxRows:6,value:i.prompt??"",onChange:a=>{a.stopPropagation(),i.prompt=a.target.value},inputProps:{maxLength:1e3}})]}),e.jsxs(b,{item:!0,xs:12,children:[e.jsx(S,{gutterBottom:!0,className:"title label",color:"text.primary",children:`${s("aiImageModel")}`}),e.jsx(re,{row:!0,sx:{".MuiFormControlLabel-label":{fontSize:"12px",color:"text.primary"}},value:i.model,onChange:a=>{i.number=1,i.size="1024x1024",i.model=a.target.value},children:he.map(a=>e.jsx(K,{value:a.value,control:e.jsx(ie,{size:"small"}),label:a.label},a.label))})]}),e.jsxs(b,{item:!0,xs:12,children:[e.jsx(S,{gutterBottom:!0,className:"title label",color:"text.primary",children:`${s("aiImageSize")}: ${i.size}`}),e.jsx(b,{container:!0,sx:{gap:2.5,pt:1},children:e.jsx(l,{flex:1,children:e.jsx(l,{...p,children:e.jsx(O,{size:"small",min:0,max:f.length-1,step:1,value:f.findIndex(a=>a==i.size),onChange:(a,j)=>{i.size=f[j]}})})})})]}),i.model==="dall-e-2"&&e.jsxs(b,{item:!0,xs:12,children:[e.jsx(S,{gutterBottom:!0,className:"title label",color:"text.primary",children:`${s("aiImageNumber")}: ${i.number}`}),e.jsx(l,{...p,children:e.jsx(O,{size:"small",defaultValue:1,valueLabelDisplay:"auto",step:1,min:1,max:10,value:i.number,onChange:(a,j)=>{a.stopPropagation(),i.number=Number(j)}})})]})]})}),e.jsx(N,{sx:{m:2,transition:"all 0.3s"},className:"submit-ai",variant:"contained",onClick:m,disabled:c,children:s(c?"aiImageGenerating":"aiImageGenerate")},c?"loading-submit":"submit")]})}const ge=k(l)`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./lottie-react.esm-BQQ_AaGj.js","./index-DCLFGZPh.js","./index-Cp6LwWOU.css"])))=>i.map(i=>d[i]);
2
+ import{c6 as H,r as h,cx as X,bX as _,j as e,hn as q,aU as B,fX as W,N as l,G as b,k as S,t as J,aZ as K,ep as N,n as k,dx as M,dy as Y,a5 as Z,bC as L,am as Q,aV as ee,lp as te}from"./index-DCLFGZPh.js";import{R as re,a as ie}from"./url-evaluation-lQ86pD_C.js";import{S as O}from"./Slider-BFrTpqHy.js";import{k as oe,g as ae}from"./index-4xq1iE_M.js";import{C as se}from"./Close-DF1dmZkY.js";import"./url-join-Co2E-X7f.js";import"./index-D-8oCexP.js";import"./_createAggregator-C9XM6eha.js";import"./index-fzuQ6QSZ.js";import"./resource-dialog-B8gaFS6f.js";import"./index-XfRo_cGN.js";import"./index-BLXO0nyi.js";import"./index-DqMYBPzF.js";import"./use-mobile-CC6mstCf.js";import"./ListItemButton-rO0QjGbl.js";import"./index-CyhYzCRi.js";import"./emotion-react.browser.esm-DtDsQxkS.js";import"./index-DnLSu2Em.js";import"./Switch-DKvkiKC7.js";import"./index-DcZQiQhe.js";import"./TableRow-Dlew3Q36.js";import"./useThemeProps-HKqSQ1Oh.js";import"./ViewColumn-BDcQSSbP.js";import"./Search-CCJYN1r6.js";import"./Clear-BXGkmSCA.js";import"./Delete-_Fu6HSXD.js";import"./MoreVert-vYpS0zQc.js";import"./TableSearch-Dsw8k2Y-.js";import"./index-B2M4jAsF.js";import"./OpenInNew-CbGKG6bU.js";import"./index-BJHGOv7L.js";import"./index-BojVbZw0.js";import"./HelpOutline-C2RopV4m.js";import"./index-rCFOUP1a.js";import"./ButtonGroup-CvC6DpxV.js";import"./getValidReactChildren-7EPQhd7n.js";import"./toUpper-DkYwJXlP.js";function ne(t){var c=H(h.useState(t),2),s=c[0],i=c[1],n=X(s),m=h.useCallback(function(){return n.current},[]);return[s,i,m]}const le=_([e.jsx("path",{d:"M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m-2 13-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z",opacity:".3"},"0"),e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"},"1")],"CheckCircleTwoTone"),ce=_(e.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),de=_(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonUnchecked"),me=_(e.jsx("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2m-2-1h8v-2H5zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5m4.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94z"}),"TipsAndUpdates"),D=h.createContext({}),F=()=>h.useContext(D);function pe({children:t,restrictions:c,i18n:s,theme:i}){const[n,m]=ne({loading:!1}),p=a=>m(j=>({...j,loading:a})),f=h.useMemo(()=>({...n,onLoading:p,restrictions:c,i18n:s}),[n]);return e.jsx(q,{theme:i,children:e.jsx(D.Provider,{value:f,children:t})})}const xe=["1024x1024","1024x1792","1792x1024"],ue=["256x256","512x512","1024x1024"],he=[{label:"DALL·E 3",value:"dall-e-3"},{label:"DALL·E 2",value:"dall-e-2"}];function fe({onSubmit:t}){const{loading:c,i18n:s}=F(),i=B({model:"dall-e-3",prompt:"",size:"1024x1024",number:1}),n=()=>{const a=JSON.parse(JSON.stringify(i));Object.values(i).every(y=>!!y)&&t(a)},{run:m}=W(n,{wait:500}),p={width:"100%",pl:1,pr:1},f=i.model==="dall-e-2"?ue:xe;return e.jsxs(ge,{onSubmit:a=>a.preventDefault(),children:[e.jsx(l,{sx:{flex:1,overflowY:"auto",overflowX:"hidden",m:2,mb:0},children:e.jsxs(b,{container:!0,gap:2.5,children:[e.jsxs(b,{item:!0,xs:12,children:[e.jsx(S,{gutterBottom:!0,className:"title label",color:"text.primary",children:s("aiImagePrompt")}),e.jsx(J,{sx:{width:1,mt:1},size:"small",type:"text",required:!0,placeholder:s("aiImagePromptTip"),multiline:!0,minRows:5,maxRows:6,value:i.prompt??"",onChange:a=>{a.stopPropagation(),i.prompt=a.target.value},inputProps:{maxLength:1e3}})]}),e.jsxs(b,{item:!0,xs:12,children:[e.jsx(S,{gutterBottom:!0,className:"title label",color:"text.primary",children:`${s("aiImageModel")}`}),e.jsx(re,{row:!0,sx:{".MuiFormControlLabel-label":{fontSize:"12px",color:"text.primary"}},value:i.model,onChange:a=>{i.number=1,i.size="1024x1024",i.model=a.target.value},children:he.map(a=>e.jsx(K,{value:a.value,control:e.jsx(ie,{size:"small"}),label:a.label},a.label))})]}),e.jsxs(b,{item:!0,xs:12,children:[e.jsx(S,{gutterBottom:!0,className:"title label",color:"text.primary",children:`${s("aiImageSize")}: ${i.size}`}),e.jsx(b,{container:!0,sx:{gap:2.5,pt:1},children:e.jsx(l,{flex:1,children:e.jsx(l,{...p,children:e.jsx(O,{size:"small",min:0,max:f.length-1,step:1,value:f.findIndex(a=>a==i.size),onChange:(a,j)=>{i.size=f[j]}})})})})]}),i.model==="dall-e-2"&&e.jsxs(b,{item:!0,xs:12,children:[e.jsx(S,{gutterBottom:!0,className:"title label",color:"text.primary",children:`${s("aiImageNumber")}: ${i.number}`}),e.jsx(l,{...p,children:e.jsx(O,{size:"small",defaultValue:1,valueLabelDisplay:"auto",step:1,min:1,max:10,value:i.number,onChange:(a,j)=>{a.stopPropagation(),i.number=Number(j)}})})]})]})}),e.jsx(N,{sx:{m:2,transition:"all 0.3s"},className:"submit-ai",variant:"contained",onClick:m,disabled:c,children:s(c?"aiImageGenerating":"aiImageGenerate")},c?"loading-submit":"submit")]})}const ge=k(l)`
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  height: 100%;
@@ -93,7 +93,7 @@ import{c6 as H,r as h,cx as X,bX as _,j as e,hn as q,aU as B,fX as W,N as l,G as
93
93
  & path:last-child {
94
94
  fill: white;
95
95
  }
96
- `,ve=h.lazy(()=>L(()=>import("./lottie-react.esm-BHwF6ttF.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(t=>({default:t.Player})));function T({src:t}){return e.jsx(ve,{src:t,loop:!0,autoplay:!0})}function ke({options:t,handleApi:c,onSelect:s,onFinish:i,onClose:n,isMobile:m}){const{loading:p,onLoading:f,restrictions:a,i18n:j}=F(),[d,y]=h.useState([]),[x,I]=h.useState(),P=Q(),z=a==null?void 0:a.maxNumberOfFiles,[u,R]=h.useState({}),g=B({}),A=Object.keys(g).filter(r=>g[r]),E={xs:6,sm:6};h.useEffect(()=>{x&&!u.error&&L(()=>import("./lottie-error-CMOXHtBH.js"),[],import.meta.url).then(r=>{R(o=>({...o,error:r.default}))}),t&&!d.length&&!u.loading&&L(()=>import("./lottie-loading-o-GBrhM9.js"),[],import.meta.url).then(r=>{R(o=>({...o,loading:r.default}))}),!t&&!u.welcome&&L(()=>import("./lottie-welcome-C9B95FIi.js"),[],import.meta.url).then(r=>{R(o=>({...o,welcome:r.default}))})},[x,t,d.length,u]),ee(async()=>{var r;if(t){I(void 0),f(!0);try{const o=await c({...t,responseFormat:"b64_json"});if(o.data){const w=(o.data||[]).map(C=>({src:`data:image/png;base64,${C.b64Json||C.b64_json}`,width:t.size?Number((t.size||"").split("x")[0]):1024,alt:t.prompt}));y(d?[...w,...d]:w)}else I(o)}catch(o){console.error("AIImage generate error: ",o),I(((r=o==null?void 0:o.response)==null?void 0:r.data)||o)}finally{f(!1),i()}}},[t==null?void 0:t.number,t==null?void 0:t.prompt,t==null?void 0:t.size]);const $=r=>{const o=Object.keys(g).filter(w=>g[w]);if(z?o.length<z:!0)g[r]?g[r]=!1:g[r]=!0;else{const w=o.pop();w!==r&&(g[w]=!1),g[r]=!g[r]}},V=r=>{if(d){const o=d.findIndex(v=>v.src===r);o>-1&&(g[r]=!1,d.splice(o,1),y([...d]))}},U=()=>{var o,v;const r={width:((o=document.querySelector(".photo-item img"))==null?void 0:o.offsetWidth)||0,height:((v=document.querySelector(".photo-item img"))==null?void 0:v.offsetHeight)||0};return e.jsx(e.Fragment,{children:Array.from({length:(t==null?void 0:t.number)||1}).map((w,C)=>h.createElement(b,{item:!0,...E,key:C},e.jsx(M,{className:"lazy-image-skeleton",animation:"wave",variant:"rectangular",style:{borderRadius:"12px",...r}})))})},G=()=>x?e.jsxs(l,{width:300,height:300,m:"auto",children:[u.error&&e.jsx(T,{src:u.error},"error"),e.jsx(l,{sx:{textAlign:"center",color:"#25292F",wordBreak:"break-all"},children:x==null?void 0:x.message})]}):d&&Array.isArray(d)&&d.length>0?e.jsxs(e.Fragment,{children:[e.jsx(l,{flexGrow:1,sx:{height:0,overflowX:"hidden",overflowY:"auto"},children:e.jsx(Se,{sx:m?{p:0,border:"none !important"}:{p:2},children:e.jsxs(b,{spacing:2,container:!0,className:"photo-wrapper",children:[p&&e.jsx(U,{}),d.map((r,o)=>h.createElement(b,{item:!0,...E,key:r.src,className:"photo-item"},e.jsx(be,{...r,selected:g[r.src],style:{objectFit:"cover",cursor:"pointer",transition:"all 0.3s",border:g[r.src]?`2px solid ${P.palette.primary.main}`:"2px solid transparent",WebkitUserDrag:"none",width:"100%",height:"100%"},onClick:()=>{$(r.src)},onDelete:()=>{V(r.src)}})))]})})}),e.jsxs(l,{sx:{mt:2,display:"flex",justifyContent:n?"space-between":"flex-end",button:{borderRadius:"30px",height:40,textTransform:"none"}},children:[n&&typeof n=="function"&&e.jsx(N,{color:"primary",variant:"outlined",onClick:n,children:e.jsx(se,{})}),e.jsx(N,{color:"primary",variant:"contained",disabled:!A.length||p,onClick:()=>{const r=oe(d,"src");s(A.map(o=>r[o]))},children:A.length?j("aiImageSelectedUse"):j("aiImageSelectedTip")})]})]}):t?e.jsx(l,{width:220,height:220,m:"auto",children:u.loading&&e.jsx(T,{src:u.loading},"loading")}):e.jsx(l,{width:300,height:300,m:"auto",children:u.welcome&&e.jsx(T,{src:u.welcome},"welcome")});return e.jsx(Ie,{children:G()})}const Ie=k(l)`
96
+ `,ve=h.lazy(()=>L(()=>import("./lottie-react.esm-BQQ_AaGj.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(t=>({default:t.Player})));function T({src:t}){return e.jsx(ve,{src:t,loop:!0,autoplay:!0})}function ke({options:t,handleApi:c,onSelect:s,onFinish:i,onClose:n,isMobile:m}){const{loading:p,onLoading:f,restrictions:a,i18n:j}=F(),[d,y]=h.useState([]),[x,I]=h.useState(),P=Q(),z=a==null?void 0:a.maxNumberOfFiles,[u,R]=h.useState({}),g=B({}),A=Object.keys(g).filter(r=>g[r]),E={xs:6,sm:6};h.useEffect(()=>{x&&!u.error&&L(()=>import("./lottie-error-CMOXHtBH.js"),[],import.meta.url).then(r=>{R(o=>({...o,error:r.default}))}),t&&!d.length&&!u.loading&&L(()=>import("./lottie-loading-o-GBrhM9.js"),[],import.meta.url).then(r=>{R(o=>({...o,loading:r.default}))}),!t&&!u.welcome&&L(()=>import("./lottie-welcome-C9B95FIi.js"),[],import.meta.url).then(r=>{R(o=>({...o,welcome:r.default}))})},[x,t,d.length,u]),ee(async()=>{var r;if(t){I(void 0),f(!0);try{const o=await c({...t,responseFormat:"b64_json"});if(o.data){const w=(o.data||[]).map(C=>({src:`data:image/png;base64,${C.b64Json||C.b64_json}`,width:t.size?Number((t.size||"").split("x")[0]):1024,alt:t.prompt}));y(d?[...w,...d]:w)}else I(o)}catch(o){console.error("AIImage generate error: ",o),I(((r=o==null?void 0:o.response)==null?void 0:r.data)||o)}finally{f(!1),i()}}},[t==null?void 0:t.number,t==null?void 0:t.prompt,t==null?void 0:t.size]);const $=r=>{const o=Object.keys(g).filter(w=>g[w]);if(z?o.length<z:!0)g[r]?g[r]=!1:g[r]=!0;else{const w=o.pop();w!==r&&(g[w]=!1),g[r]=!g[r]}},V=r=>{if(d){const o=d.findIndex(v=>v.src===r);o>-1&&(g[r]=!1,d.splice(o,1),y([...d]))}},U=()=>{var o,v;const r={width:((o=document.querySelector(".photo-item img"))==null?void 0:o.offsetWidth)||0,height:((v=document.querySelector(".photo-item img"))==null?void 0:v.offsetHeight)||0};return e.jsx(e.Fragment,{children:Array.from({length:(t==null?void 0:t.number)||1}).map((w,C)=>h.createElement(b,{item:!0,...E,key:C},e.jsx(M,{className:"lazy-image-skeleton",animation:"wave",variant:"rectangular",style:{borderRadius:"12px",...r}})))})},G=()=>x?e.jsxs(l,{width:300,height:300,m:"auto",children:[u.error&&e.jsx(T,{src:u.error},"error"),e.jsx(l,{sx:{textAlign:"center",color:"#25292F",wordBreak:"break-all"},children:x==null?void 0:x.message})]}):d&&Array.isArray(d)&&d.length>0?e.jsxs(e.Fragment,{children:[e.jsx(l,{flexGrow:1,sx:{height:0,overflowX:"hidden",overflowY:"auto"},children:e.jsx(Se,{sx:m?{p:0,border:"none !important"}:{p:2},children:e.jsxs(b,{spacing:2,container:!0,className:"photo-wrapper",children:[p&&e.jsx(U,{}),d.map((r,o)=>h.createElement(b,{item:!0,...E,key:r.src,className:"photo-item"},e.jsx(be,{...r,selected:g[r.src],style:{objectFit:"cover",cursor:"pointer",transition:"all 0.3s",border:g[r.src]?`2px solid ${P.palette.primary.main}`:"2px solid transparent",WebkitUserDrag:"none",width:"100%",height:"100%"},onClick:()=>{$(r.src)},onDelete:()=>{V(r.src)}})))]})})}),e.jsxs(l,{sx:{mt:2,display:"flex",justifyContent:n?"space-between":"flex-end",button:{borderRadius:"30px",height:40,textTransform:"none"}},children:[n&&typeof n=="function"&&e.jsx(N,{color:"primary",variant:"outlined",onClick:n,children:e.jsx(se,{})}),e.jsx(N,{color:"primary",variant:"contained",disabled:!A.length||p,onClick:()=>{const r=oe(d,"src");s(A.map(o=>r[o]))},children:A.length?j("aiImageSelectedUse"):j("aiImageSelectedTip")})]})]}):t?e.jsx(l,{width:220,height:220,m:"auto",children:u.loading&&e.jsx(T,{src:u.loading},"loading")}):e.jsx(l,{width:300,height:300,m:"auto",children:u.welcome&&e.jsx(T,{src:u.welcome},"welcome")});return e.jsx(Ie,{children:G()})}const Ie=k(l)`
97
97
  min-height: 100%;
98
98
  display: flex;
99
99
  flex-direction: column;
@@ -1 +1 @@
1
- import{c0 as ft,c1 as ht,b9 as A,bY as $t,cf as jt,bZ as f,r as d,c2 as vt,b$ as nt,c4 as N,j as b,c5 as mt,dh as oe,di as Ft,dj as Ht,dk as At,dl as le,dm as re,c3 as rt,am as ne,dn as bt,dp as se,dq as ae}from"./index-BsTEuRio.js";let Y;function Ot(){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 ie(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(Ot()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function ce(t){return ht("MuiTab",t)}const k=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),de=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ue=t=>{const{classes:e,textColor:l,fullWidth:a,wrapped:s,icon:n,label:u,selected:v,disabled:p}=t,x={root:["root",n&&u&&"labelIcon",`textColor${jt(l)}`,a&&"fullWidth",s&&"wrapped",v&&"selected",p&&"disabled"],iconWrapper:["iconWrapper"]};return mt(x,ce,e)},be=A($t,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${jt(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped,{[`& .${k.iconWrapper}`]:e.iconWrapper}]}})(({theme:t,ownerState:e})=>f({},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,[`& > .${k.iconWrapper}`]:f({},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,[`&.${k.selected}`]:{opacity:1},[`&.${k.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${k.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${k.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${k.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${k.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)})),St=d.forwardRef(function(e,l){const a=vt({props:e,name:"MuiTab"}),{className:s,disabled:n=!1,disableFocusRipple:u=!1,fullWidth:v,icon:p,iconPosition:x="top",indicator:B,label:y,onChange:m,onClick:w,onFocus:L,selected:T,selectionFollowsFocus:g,textColor:O="inherit",value:E,wrapped:st=!1}=a,X=nt(a,de),V=f({},a,{disabled:n,disableFocusRipple:u,selected:T,icon:!!p,iconPosition:x,label:!!y,fullWidth:v,textColor:O,wrapped:st}),D=ue(V),$=p&&y&&d.isValidElement(p)?d.cloneElement(p,{className:N(D.iconWrapper,p.props.className)}):p,J=R=>{!T&&m&&m(R,E),w&&w(R)},_=R=>{g&&!T&&m&&m(R,E),L&&L(R)};return b.jsxs(be,f({focusRipple:!u,className:N(D.root,s),ref:l,role:"tab","aria-selected":T,disabled:n,onClick:J,onFocus:_,ownerState:V,tabIndex:T?0:-1},X,{children:[x==="top"||x==="start"?b.jsxs(d.Fragment,{children:[$,y]}):b.jsxs(d.Fragment,{children:[y,$]}),B]}))});function pe(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function fe(t,e,l,a={},s=()=>{}){const{ease:n=pe,duration:u=300}=a;let v=null;const p=e[t];let x=!1;const B=()=>{x=!0},y=m=>{if(x){s(new Error("Animation cancelled"));return}v===null&&(v=m);const w=Math.min(1,(m-v)/u);if(e[t]=n(w)*(l-p)+p,w>=1){requestAnimationFrame(()=>{s(null)});return}requestAnimationFrame(y)};return p===l?(s(new Error("Element already at target position")),B):(requestAnimationFrame(y),B)}const he=["onChange"],ve={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function me(t){const{onChange:e}=t,l=nt(t,he),a=d.useRef(),s=d.useRef(null),n=()=>{a.current=s.current.offsetHeight-s.current.clientHeight};return oe(()=>{const u=Ft(()=>{const p=a.current;n(),p!==a.current&&e(a.current)}),v=Ht(s.current);return v.addEventListener("resize",u),()=>{u.clear(),v.removeEventListener("resize",u)}},[e]),d.useEffect(()=>{n(),e(a.current)},[e]),b.jsx("div",f({style:ve},l,{ref:s}))}function Se(t){return ht("MuiTabScrollButton",t)}const xe=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ge=["className","slots","slotProps","direction","orientation","disabled"],ye=t=>{const{classes:e,orientation:l,disabled:a}=t;return mt({root:["root",l,a&&"disabled"]},Se,e)},Ce=A($t,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>f({width:40,flexShrink:0,opacity:.8,[`&.${xe.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),Be=d.forwardRef(function(e,l){var a,s;const n=vt({props:e,name:"MuiTabScrollButton"}),{className:u,slots:v={},slotProps:p={},direction:x}=n,B=nt(n,ge),y=At(),m=f({isRtl:y},n),w=ye(m),L=(a=v.StartScrollButtonIcon)!=null?a:le,T=(s=v.EndScrollButtonIcon)!=null?s:re,g=rt({elementType:L,externalSlotProps:p.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),O=rt({elementType:T,externalSlotProps:p.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return b.jsx(Ce,f({component:"div",className:N(w.root,u),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:x==="left"?b.jsx(L,f({},g)):b.jsx(T,f({},O))}))});function we(t){return ht("MuiTabs",t)}const pt=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Pt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,kt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,lt=(t,e,l)=>{let a=!1,s=l(t,e);for(;s;){if(s===t.firstChild){if(a)return;a=!0}const n=s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||n)s=l(t,s);else{s.focus();return}}},Me=t=>{const{vertical:e,fixed:l,hideScrollbar:a,scrollableX:s,scrollableY:n,centered:u,scrollButtonsHideMobile:v,classes:p}=t;return mt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",a&&"hideScrollbar",s&&"scrollableX",n&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",u&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",v&&"scrollButtonsHideMobile"],scrollableX:[s&&"scrollableX"],hideScrollbar:[a&&"hideScrollbar"]},we,p)},Ie=A("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${pt.scrollButtons}`]:e.scrollButtons},{[`& .${pt.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>f({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${pt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Ee=A("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})=>f({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"})),Re=A("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})=>f({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=A("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>f({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})),We=A(me)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Nt={},xt=d.forwardRef(function(e,l){const a=vt({props:e,name:"MuiTabs"}),s=ne(),n=At(),{"aria-label":u,"aria-labelledby":v,action:p,centered:x=!1,children:B,className:y,component:m="div",allowScrollButtonsMobile:w=!1,indicatorColor:L="primary",onChange:T,orientation:g="horizontal",ScrollButtonComponent:O=Be,scrollButtons:E="auto",selectionFollowsFocus:st,slots:X={},slotProps:V={},TabIndicatorProps:D={},TabScrollButtonProps:$={},textColor:J="primary",value:_,variant:R="standard",visibleScrollbar:at=!1}=a,Xt=nt(a,Te),M=R==="scrollable",C=g==="vertical",K=C?"scrollTop":"scrollLeft",Q=C?"top":"left",tt=C?"bottom":"right",it=C?"clientHeight":"clientWidth",q=C?"height":"width",j=f({},a,{component:m,allowScrollButtonsMobile:w,indicatorColor:L,orientation:g,vertical:C,scrollButtons:E,textColor:J,variant:R,visibleScrollbar:at,fixed:!M,hideScrollbar:M&&!at,scrollableX:M&&!C,scrollableY:M&&C,centered:x&&!M,scrollButtonsHideMobile:!w}),W=Me(j),Dt=rt({elementType:X.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:j}),_t=rt({elementType:X.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:j}),[gt,Yt]=d.useState(!1),[F,yt]=d.useState(Nt),[Ct,Ut]=d.useState(!1),[Bt,Vt]=d.useState(!1),[wt,Kt]=d.useState(!1),[Tt,qt]=d.useState({overflow:"hidden",scrollbarWidth:0}),Mt=new Map,z=d.useRef(null),H=d.useRef(null),It=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ie(o,n?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&_!==!1){const i=H.current.children;if(i.length>0){const h=i[Mt.get(_)];c=h?h.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},G=bt(()=>{const{tabsMeta:o,tabMeta:r}=It();let c=0,i;if(C)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=n?"right":"left",r&&o){const S=n?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(n?-1:1)*(r[i]-o[i]+S)}const h={[i]:c,[q]:r?r[q]:0};if(isNaN(F[i])||isNaN(F[q]))yt(h);else{const S=Math.abs(F[i]-h[i]),I=Math.abs(F[q]-h[q]);(S>=1||I>=1)&&yt(h)}}),ct=(o,{animation:r=!0}={})=>{r?fe(K,z.current,o,{duration:s.transitions.duration.standard}):z.current[K]=o},Et=o=>{let r=z.current[K];C?r+=o:(r+=o*(n?-1:1),r*=n&&Ot()==="reverse"?-1:1),ct(r)},Rt=()=>{const o=z.current[it];let r=0;const c=Array.from(H.current.children);for(let i=0;i<c.length;i+=1){const h=c[i];if(r+h[it]>o){i===0&&(r=o);break}r+=h[it]}return r},Gt=()=>{Et(-1*Rt())},Zt=()=>{Et(Rt())},Jt=d.useCallback(o=>{qt({overflow:null,scrollbarWidth:o})},[]),Qt=()=>{const o={};o.scrollbarSizeListener=M?b.jsx(We,{onChange:Jt,className:N(W.scrollableX,W.hideScrollbar)}):null;const c=M&&(E==="auto"&&(Ct||Bt)||E===!0);return o.scrollButtonStart=c?b.jsx(O,f({slots:{StartScrollButtonIcon:X.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Dt},orientation:g,direction:n?"right":"left",onClick:Gt,disabled:!Ct},$,{className:N(W.scrollButtons,$.className)})):null,o.scrollButtonEnd=c?b.jsx(O,f({slots:{EndScrollButtonIcon:X.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:_t},orientation:g,direction:n?"left":"right",onClick:Zt,disabled:!Bt},$,{className:N(W.scrollButtons,$.className)})):null,o},zt=bt(o=>{const{tabsMeta:r,tabMeta:c}=It();if(!(!c||!r)){if(c[Q]<r[Q]){const i=r[K]+(c[Q]-r[Q]);ct(i,{animation:o})}else if(c[tt]>r[tt]){const i=r[K]+(c[tt]-r[tt]);ct(i,{animation:o})}}}),et=bt(()=>{M&&E!==!1&&Kt(!wt)});d.useEffect(()=>{const o=Ft(()=>{z.current&&G()});let r;const c=S=>{S.forEach(I=>{I.removedNodes.forEach(Z=>{var P;(P=r)==null||P.unobserve(Z)}),I.addedNodes.forEach(Z=>{var P;(P=r)==null||P.observe(Z)})}),o(),et()},i=Ht(z.current);i.addEventListener("resize",o);let h;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(H.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(h=new MutationObserver(c),h.observe(H.current,{childList:!0})),()=>{var S,I;o.clear(),i.removeEventListener("resize",o),(S=h)==null||S.disconnect(),(I=r)==null||I.disconnect()}},[G,et]),d.useEffect(()=>{const o=Array.from(H.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&E!==!1){const c=o[0],i=o[r-1],h={root:z.current,threshold:.99},S=ut=>{Ut(!ut[0].isIntersecting)},I=new IntersectionObserver(S,h);I.observe(c);const Z=ut=>{Vt(!ut[0].isIntersecting)},P=new IntersectionObserver(Z,h);return P.observe(i),()=>{I.disconnect(),P.disconnect()}}},[M,E,wt,B==null?void 0:B.length]),d.useEffect(()=>{Yt(!0)},[]),d.useEffect(()=>{G()}),d.useEffect(()=>{zt(Nt!==F)},[zt,F]),d.useImperativeHandle(p,()=>({updateIndicator:G,updateScrollButtons:et}),[G,et]);const Wt=b.jsx(ze,f({},D,{className:N(W.indicator,D.className),ownerState:j,style:f({},F,D.style)}));let ot=0;const te=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?ot:o.props.value;Mt.set(r,ot);const c=r===_;return ot+=1,d.cloneElement(o,f({fullWidth:R==="fullWidth",indicator:c&&!gt&&Wt,selected:c,selectionFollowsFocus:st,onChange:T,textColor:J,value:r},ot===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),ee=o=>{const r=H.current,c=se(r).activeElement;if(c.getAttribute("role")!=="tab")return;let h=g==="horizontal"?"ArrowLeft":"ArrowUp",S=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&n&&(h="ArrowRight",S="ArrowLeft"),o.key){case h:o.preventDefault(),lt(r,c,kt);break;case S:o.preventDefault(),lt(r,c,Pt);break;case"Home":o.preventDefault(),lt(r,null,Pt);break;case"End":o.preventDefault(),lt(r,null,kt);break}},dt=Qt();return b.jsxs(Ie,f({className:N(W.root,y),ownerState:j,ref:l,as:m},Xt,{children:[dt.scrollButtonStart,dt.scrollbarSizeListener,b.jsxs(Ee,{className:W.scroller,ownerState:j,style:{overflow:Tt.overflow,[C?`margin${n?"Left":"Right"}`:"marginBottom"]:at?void 0:-Tt.scrollbarWidth},ref:z,children:[b.jsx(Re,{"aria-label":u,"aria-labelledby":v,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:j,onKeyDown:ee,ref:H,role:"tablist",children:te}),gt&&Wt]}),dt.scrollButtonEnd]}))}),Lt="index",U={tabs:`${Lt}-tabs`,tab:`${Lt}-tab`},Pe=ae(xt)(({theme:t})=>({[`& .${U.tabs}`]:{},[`& .${U.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function ke({tabs:t,current:e,onChange:l,iconPosition:a,...s}){return b.jsx(xt,{scrollButtons:"auto",value:e,onChange:(n,u)=>l(u),...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:"grey.100",padding:.5,display:"inline-flex",columnGap:.25,maxWidth:"100%",overflowX:"auto"},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:"text.secondary",fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"action.selected",borderColor:"grey.100",color:"grey.A700"}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>b.jsx(St,{className:U.tab,value:n.value,label:n.label,icon:n.icon,iconPosition:a},n.value))})}function Ne({tabs:t,current:e,onChange:l,iconPosition:a,...s}){return b.jsx(xt,{scrollButtons:"auto",value:e,onChange:(n,u)=>l(u),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":s.orientation!=="vertical"?{"&::after":{content:'""',display:"block",position:"sticky",left:0,zIndex:-1,width:"100%",height:"1px",backgroundColor:"grey.300"}}:{},".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:"text.secondary",fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:"primary.main"}},".MuiTabs-indicator":{height:"1px",backgroundColor:"primary.main"},...s.sx},children:t.map(n=>b.jsx(St,{className:U.tab,value:n.value,label:n.label,icon:n.icon,iconPosition:a},n.value))})}function $e({tabs:t,current:e,onChange:l,variant:a,iconPosition:s,...n}){return a==="card"?b.jsx(ke,{...n,tabs:t,current:e,onChange:l,iconPosition:s}):a==="line"?b.jsx(Ne,{...n,tabs:t,current:e,onChange:l,iconPosition:s}):b.jsx(Pe,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(u,v)=>l(v),indicatorColor:"primary",...n,className:[U.tabs,n.className||""].join(" "),children:t.map(u=>b.jsx(St,{className:U.tab,value:u.value,label:u.label,icon:u.icon,iconPosition:s},u.value))})}export{$e as T,xt as a,St as b,Ot as d,ie as g,pt as t};
1
+ import{c0 as ft,c1 as ht,b9 as A,bY as $t,cf as jt,bZ as f,r as d,c2 as vt,b$ as nt,c4 as N,j as b,c5 as mt,dh as oe,di as Ft,dj as Ht,dk as At,dl as le,dm as re,c3 as rt,am as ne,dn as bt,dp as se,dq as ae}from"./index-DCLFGZPh.js";let Y;function Ot(){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 ie(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(Ot()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function ce(t){return ht("MuiTab",t)}const k=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),de=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ue=t=>{const{classes:e,textColor:l,fullWidth:a,wrapped:s,icon:n,label:u,selected:v,disabled:p}=t,x={root:["root",n&&u&&"labelIcon",`textColor${jt(l)}`,a&&"fullWidth",s&&"wrapped",v&&"selected",p&&"disabled"],iconWrapper:["iconWrapper"]};return mt(x,ce,e)},be=A($t,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${jt(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped,{[`& .${k.iconWrapper}`]:e.iconWrapper}]}})(({theme:t,ownerState:e})=>f({},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,[`& > .${k.iconWrapper}`]:f({},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,[`&.${k.selected}`]:{opacity:1},[`&.${k.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${k.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${k.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${k.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${k.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)})),St=d.forwardRef(function(e,l){const a=vt({props:e,name:"MuiTab"}),{className:s,disabled:n=!1,disableFocusRipple:u=!1,fullWidth:v,icon:p,iconPosition:x="top",indicator:B,label:y,onChange:m,onClick:w,onFocus:L,selected:T,selectionFollowsFocus:g,textColor:O="inherit",value:E,wrapped:st=!1}=a,X=nt(a,de),V=f({},a,{disabled:n,disableFocusRipple:u,selected:T,icon:!!p,iconPosition:x,label:!!y,fullWidth:v,textColor:O,wrapped:st}),D=ue(V),$=p&&y&&d.isValidElement(p)?d.cloneElement(p,{className:N(D.iconWrapper,p.props.className)}):p,J=R=>{!T&&m&&m(R,E),w&&w(R)},_=R=>{g&&!T&&m&&m(R,E),L&&L(R)};return b.jsxs(be,f({focusRipple:!u,className:N(D.root,s),ref:l,role:"tab","aria-selected":T,disabled:n,onClick:J,onFocus:_,ownerState:V,tabIndex:T?0:-1},X,{children:[x==="top"||x==="start"?b.jsxs(d.Fragment,{children:[$,y]}):b.jsxs(d.Fragment,{children:[y,$]}),B]}))});function pe(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function fe(t,e,l,a={},s=()=>{}){const{ease:n=pe,duration:u=300}=a;let v=null;const p=e[t];let x=!1;const B=()=>{x=!0},y=m=>{if(x){s(new Error("Animation cancelled"));return}v===null&&(v=m);const w=Math.min(1,(m-v)/u);if(e[t]=n(w)*(l-p)+p,w>=1){requestAnimationFrame(()=>{s(null)});return}requestAnimationFrame(y)};return p===l?(s(new Error("Element already at target position")),B):(requestAnimationFrame(y),B)}const he=["onChange"],ve={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function me(t){const{onChange:e}=t,l=nt(t,he),a=d.useRef(),s=d.useRef(null),n=()=>{a.current=s.current.offsetHeight-s.current.clientHeight};return oe(()=>{const u=Ft(()=>{const p=a.current;n(),p!==a.current&&e(a.current)}),v=Ht(s.current);return v.addEventListener("resize",u),()=>{u.clear(),v.removeEventListener("resize",u)}},[e]),d.useEffect(()=>{n(),e(a.current)},[e]),b.jsx("div",f({style:ve},l,{ref:s}))}function Se(t){return ht("MuiTabScrollButton",t)}const xe=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ge=["className","slots","slotProps","direction","orientation","disabled"],ye=t=>{const{classes:e,orientation:l,disabled:a}=t;return mt({root:["root",l,a&&"disabled"]},Se,e)},Ce=A($t,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>f({width:40,flexShrink:0,opacity:.8,[`&.${xe.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),Be=d.forwardRef(function(e,l){var a,s;const n=vt({props:e,name:"MuiTabScrollButton"}),{className:u,slots:v={},slotProps:p={},direction:x}=n,B=nt(n,ge),y=At(),m=f({isRtl:y},n),w=ye(m),L=(a=v.StartScrollButtonIcon)!=null?a:le,T=(s=v.EndScrollButtonIcon)!=null?s:re,g=rt({elementType:L,externalSlotProps:p.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),O=rt({elementType:T,externalSlotProps:p.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return b.jsx(Ce,f({component:"div",className:N(w.root,u),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:x==="left"?b.jsx(L,f({},g)):b.jsx(T,f({},O))}))});function we(t){return ht("MuiTabs",t)}const pt=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Pt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,kt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,lt=(t,e,l)=>{let a=!1,s=l(t,e);for(;s;){if(s===t.firstChild){if(a)return;a=!0}const n=s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||n)s=l(t,s);else{s.focus();return}}},Me=t=>{const{vertical:e,fixed:l,hideScrollbar:a,scrollableX:s,scrollableY:n,centered:u,scrollButtonsHideMobile:v,classes:p}=t;return mt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",a&&"hideScrollbar",s&&"scrollableX",n&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",u&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",v&&"scrollButtonsHideMobile"],scrollableX:[s&&"scrollableX"],hideScrollbar:[a&&"hideScrollbar"]},we,p)},Ie=A("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${pt.scrollButtons}`]:e.scrollButtons},{[`& .${pt.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>f({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${pt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Ee=A("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})=>f({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"})),Re=A("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})=>f({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=A("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>f({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})),We=A(me)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Nt={},xt=d.forwardRef(function(e,l){const a=vt({props:e,name:"MuiTabs"}),s=ne(),n=At(),{"aria-label":u,"aria-labelledby":v,action:p,centered:x=!1,children:B,className:y,component:m="div",allowScrollButtonsMobile:w=!1,indicatorColor:L="primary",onChange:T,orientation:g="horizontal",ScrollButtonComponent:O=Be,scrollButtons:E="auto",selectionFollowsFocus:st,slots:X={},slotProps:V={},TabIndicatorProps:D={},TabScrollButtonProps:$={},textColor:J="primary",value:_,variant:R="standard",visibleScrollbar:at=!1}=a,Xt=nt(a,Te),M=R==="scrollable",C=g==="vertical",K=C?"scrollTop":"scrollLeft",Q=C?"top":"left",tt=C?"bottom":"right",it=C?"clientHeight":"clientWidth",q=C?"height":"width",j=f({},a,{component:m,allowScrollButtonsMobile:w,indicatorColor:L,orientation:g,vertical:C,scrollButtons:E,textColor:J,variant:R,visibleScrollbar:at,fixed:!M,hideScrollbar:M&&!at,scrollableX:M&&!C,scrollableY:M&&C,centered:x&&!M,scrollButtonsHideMobile:!w}),W=Me(j),Dt=rt({elementType:X.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:j}),_t=rt({elementType:X.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:j}),[gt,Yt]=d.useState(!1),[F,yt]=d.useState(Nt),[Ct,Ut]=d.useState(!1),[Bt,Vt]=d.useState(!1),[wt,Kt]=d.useState(!1),[Tt,qt]=d.useState({overflow:"hidden",scrollbarWidth:0}),Mt=new Map,z=d.useRef(null),H=d.useRef(null),It=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ie(o,n?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&_!==!1){const i=H.current.children;if(i.length>0){const h=i[Mt.get(_)];c=h?h.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},G=bt(()=>{const{tabsMeta:o,tabMeta:r}=It();let c=0,i;if(C)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=n?"right":"left",r&&o){const S=n?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(n?-1:1)*(r[i]-o[i]+S)}const h={[i]:c,[q]:r?r[q]:0};if(isNaN(F[i])||isNaN(F[q]))yt(h);else{const S=Math.abs(F[i]-h[i]),I=Math.abs(F[q]-h[q]);(S>=1||I>=1)&&yt(h)}}),ct=(o,{animation:r=!0}={})=>{r?fe(K,z.current,o,{duration:s.transitions.duration.standard}):z.current[K]=o},Et=o=>{let r=z.current[K];C?r+=o:(r+=o*(n?-1:1),r*=n&&Ot()==="reverse"?-1:1),ct(r)},Rt=()=>{const o=z.current[it];let r=0;const c=Array.from(H.current.children);for(let i=0;i<c.length;i+=1){const h=c[i];if(r+h[it]>o){i===0&&(r=o);break}r+=h[it]}return r},Gt=()=>{Et(-1*Rt())},Zt=()=>{Et(Rt())},Jt=d.useCallback(o=>{qt({overflow:null,scrollbarWidth:o})},[]),Qt=()=>{const o={};o.scrollbarSizeListener=M?b.jsx(We,{onChange:Jt,className:N(W.scrollableX,W.hideScrollbar)}):null;const c=M&&(E==="auto"&&(Ct||Bt)||E===!0);return o.scrollButtonStart=c?b.jsx(O,f({slots:{StartScrollButtonIcon:X.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Dt},orientation:g,direction:n?"right":"left",onClick:Gt,disabled:!Ct},$,{className:N(W.scrollButtons,$.className)})):null,o.scrollButtonEnd=c?b.jsx(O,f({slots:{EndScrollButtonIcon:X.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:_t},orientation:g,direction:n?"left":"right",onClick:Zt,disabled:!Bt},$,{className:N(W.scrollButtons,$.className)})):null,o},zt=bt(o=>{const{tabsMeta:r,tabMeta:c}=It();if(!(!c||!r)){if(c[Q]<r[Q]){const i=r[K]+(c[Q]-r[Q]);ct(i,{animation:o})}else if(c[tt]>r[tt]){const i=r[K]+(c[tt]-r[tt]);ct(i,{animation:o})}}}),et=bt(()=>{M&&E!==!1&&Kt(!wt)});d.useEffect(()=>{const o=Ft(()=>{z.current&&G()});let r;const c=S=>{S.forEach(I=>{I.removedNodes.forEach(Z=>{var P;(P=r)==null||P.unobserve(Z)}),I.addedNodes.forEach(Z=>{var P;(P=r)==null||P.observe(Z)})}),o(),et()},i=Ht(z.current);i.addEventListener("resize",o);let h;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(H.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(h=new MutationObserver(c),h.observe(H.current,{childList:!0})),()=>{var S,I;o.clear(),i.removeEventListener("resize",o),(S=h)==null||S.disconnect(),(I=r)==null||I.disconnect()}},[G,et]),d.useEffect(()=>{const o=Array.from(H.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&E!==!1){const c=o[0],i=o[r-1],h={root:z.current,threshold:.99},S=ut=>{Ut(!ut[0].isIntersecting)},I=new IntersectionObserver(S,h);I.observe(c);const Z=ut=>{Vt(!ut[0].isIntersecting)},P=new IntersectionObserver(Z,h);return P.observe(i),()=>{I.disconnect(),P.disconnect()}}},[M,E,wt,B==null?void 0:B.length]),d.useEffect(()=>{Yt(!0)},[]),d.useEffect(()=>{G()}),d.useEffect(()=>{zt(Nt!==F)},[zt,F]),d.useImperativeHandle(p,()=>({updateIndicator:G,updateScrollButtons:et}),[G,et]);const Wt=b.jsx(ze,f({},D,{className:N(W.indicator,D.className),ownerState:j,style:f({},F,D.style)}));let ot=0;const te=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?ot:o.props.value;Mt.set(r,ot);const c=r===_;return ot+=1,d.cloneElement(o,f({fullWidth:R==="fullWidth",indicator:c&&!gt&&Wt,selected:c,selectionFollowsFocus:st,onChange:T,textColor:J,value:r},ot===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),ee=o=>{const r=H.current,c=se(r).activeElement;if(c.getAttribute("role")!=="tab")return;let h=g==="horizontal"?"ArrowLeft":"ArrowUp",S=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&n&&(h="ArrowRight",S="ArrowLeft"),o.key){case h:o.preventDefault(),lt(r,c,kt);break;case S:o.preventDefault(),lt(r,c,Pt);break;case"Home":o.preventDefault(),lt(r,null,Pt);break;case"End":o.preventDefault(),lt(r,null,kt);break}},dt=Qt();return b.jsxs(Ie,f({className:N(W.root,y),ownerState:j,ref:l,as:m},Xt,{children:[dt.scrollButtonStart,dt.scrollbarSizeListener,b.jsxs(Ee,{className:W.scroller,ownerState:j,style:{overflow:Tt.overflow,[C?`margin${n?"Left":"Right"}`:"marginBottom"]:at?void 0:-Tt.scrollbarWidth},ref:z,children:[b.jsx(Re,{"aria-label":u,"aria-labelledby":v,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:j,onKeyDown:ee,ref:H,role:"tablist",children:te}),gt&&Wt]}),dt.scrollButtonEnd]}))}),Lt="index",U={tabs:`${Lt}-tabs`,tab:`${Lt}-tab`},Pe=ae(xt)(({theme:t})=>({[`& .${U.tabs}`]:{},[`& .${U.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function ke({tabs:t,current:e,onChange:l,iconPosition:a,...s}){return b.jsx(xt,{scrollButtons:"auto",value:e,onChange:(n,u)=>l(u),...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:"grey.100",padding:.5,display:"inline-flex",columnGap:.25,maxWidth:"100%",overflowX:"auto"},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:"text.secondary",fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"action.selected",borderColor:"grey.100",color:"grey.A700"}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>b.jsx(St,{className:U.tab,value:n.value,label:n.label,icon:n.icon,iconPosition:a},n.value))})}function Ne({tabs:t,current:e,onChange:l,iconPosition:a,...s}){return b.jsx(xt,{scrollButtons:"auto",value:e,onChange:(n,u)=>l(u),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":s.orientation!=="vertical"?{"&::after":{content:'""',display:"block",position:"sticky",left:0,zIndex:-1,width:"100%",height:"1px",backgroundColor:"grey.300"}}:{},".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:"text.secondary",fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:"primary.main"}},".MuiTabs-indicator":{height:"1px",backgroundColor:"primary.main"},...s.sx},children:t.map(n=>b.jsx(St,{className:U.tab,value:n.value,label:n.label,icon:n.icon,iconPosition:a},n.value))})}function $e({tabs:t,current:e,onChange:l,variant:a,iconPosition:s,...n}){return a==="card"?b.jsx(ke,{...n,tabs:t,current:e,onChange:l,iconPosition:s}):a==="line"?b.jsx(Ne,{...n,tabs:t,current:e,onChange:l,iconPosition:s}):b.jsx(Pe,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(u,v)=>l(v),indicatorColor:"primary",...n,className:[U.tabs,n.className||""].join(" "),children:t.map(u=>b.jsx(St,{className:U.tab,value:u.value,label:u.label,icon:u.icon,iconPosition:s},u.value))})}export{$e as T,xt as a,St as b,Ot as d,ie as g,pt as t};