@abtnode/webapp 1.16.38 → 1.16.39-beta-20250209-032436-5ceca2cb

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 (222) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-CFO7g7AE.js → Add-Dwz6izRf.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-9ChqTYDp.js → ArrowDropDown-Bh3SfNDo.js} +1 -1
  5. package/dist/assets/{Autocomplete-BpaEG93b.js → Autocomplete-DtOkQetI.js} +1 -1
  6. package/dist/assets/{Breadcrumbs-Dtl-NP9A.js → Breadcrumbs-qmDXaLzA.js} +1 -1
  7. package/dist/assets/{ButtonGroup-BjciiYu8.js → ButtonGroup-Cxal2SJ8.js} +1 -1
  8. package/dist/assets/{CSSTransition-BOYix1Tj.js → CSSTransition-TlvzVrs5.js} +1 -1
  9. package/dist/assets/{CheckCircle-CXYJ_MB5.js → CheckCircle-qelhchy5.js} +1 -1
  10. package/dist/assets/{ChevronLeft-Cmm3iUtR.js → ChevronLeft-BNPfq98V.js} +1 -1
  11. package/dist/assets/{ChevronRight-U7tvhPtq.js → ChevronRight-Cz7EwuD5.js} +1 -1
  12. package/dist/assets/Clear-BOCwdIBr.js +1 -0
  13. package/dist/assets/{Delete-CKdujHHN.js → Delete-D6yfSast.js} +1 -1
  14. package/dist/assets/{DeleteOutline-CFoYFgaN.js → DeleteOutline-Cvquy8RU.js} +1 -1
  15. package/dist/assets/{Done-BJXGB50W.js → Done-IVLF3tiD.js} +1 -1
  16. package/dist/assets/{Edit-D_ibW871.js → Edit-dk9WhhyR.js} +1 -1
  17. package/dist/assets/{EditIcon-CjUs5igY.js → EditIcon-CVxzI8EQ.js} +1 -1
  18. package/dist/assets/{ExpandMore-t92xj7_e.js → ExpandMore-BMToWdCq.js} +1 -1
  19. package/dist/assets/{Google-QeK1sDox.js → Google-B7I3WTrM.js} +1 -1
  20. package/dist/assets/{HelpOutline-C6JEiDsL.js → HelpOutline-06Ovy2un.js} +1 -1
  21. package/dist/assets/{Https-D9lnm1Nc.js → Https-DS5GwNWa.js} +1 -1
  22. package/dist/assets/{InputAdornment-DlbaOc77.js → InputAdornment-B8sZGxpj.js} +1 -1
  23. package/dist/assets/{Launch-BpkW6VSi.js → Launch-Ldr2e6Lu.js} +1 -1
  24. package/dist/assets/{Link-zj8E9b02.js → Link-COXZWU7R.js} +1 -1
  25. package/dist/assets/{ListItemButton-B12oawTt.js → ListItemButton-DsCqAszq.js} +1 -1
  26. package/dist/assets/{LoadingButton-Bhwj4l0a.js → LoadingButton-DFrwqGWi.js} +1 -1
  27. package/dist/assets/{LockIcon-tYeElc_Y.js → LockIcon-BQtbpkcd.js} +1 -1
  28. package/dist/assets/{Loop-Bi_Xa11Y.js → Loop-B5OxMKP2.js} +1 -1
  29. package/dist/assets/{MoreHoriz-CeBLlMmN.js → MoreHoriz-jKC15aE3.js} +1 -1
  30. package/dist/assets/{MoreVert-BwxCbnIH.js → MoreVert-hRBmZjRU.js} +1 -1
  31. package/dist/assets/{Public-lRJ4uhkW.js → Public-DMLUN6Qq.js} +1 -1
  32. package/dist/assets/{SchemaReference.es-BqRzz71t.js → SchemaReference.es-DGy7qPUz.js} +1 -1
  33. package/dist/assets/{Search-CikhvMol.js → Search-C6ygXeam.js} +1 -1
  34. package/dist/assets/{ShoppingCart-BL0s-zYG.js → ShoppingCart-Po2aphBk.js} +1 -1
  35. package/dist/assets/{Stepper-BpUILapG.js → Stepper-C0Q7fsjT.js} +1 -1
  36. package/dist/assets/TableSearch-BHrJAgaJ.js +51 -0
  37. package/dist/assets/{ToggleButtonGroup-Bx4acEQH.js → ToggleButtonGroup-CsQ_0Jsh.js} +1 -1
  38. package/dist/assets/{Verified-vPqim8ZZ.js → Verified-BBdV0mez.js} +1 -1
  39. package/dist/assets/ViewColumn-CVAJLAv7.js +1 -0
  40. package/dist/assets/{ViewList-CiIVOxr3.js → ViewList-BnrrJ0s7.js} +1 -1
  41. package/dist/assets/{_createAggregator-BiFYhzyQ.js → _createAggregator-Byg__A3X.js} +1 -1
  42. package/dist/assets/{actions-z5cp_IIi.js → actions-CO2ogrjk.js} +1 -1
  43. package/dist/assets/{actions-rbRedqCl.js → actions-Dh_JqcnZ.js} +1 -1
  44. package/dist/assets/{agreement-YLLKwg1Y.js → agreement-9eKn-PND.js} +1 -1
  45. package/dist/assets/api-B-1jjJ-V.js +1 -0
  46. package/dist/assets/ar-BJD4HTM3.js +3 -0
  47. package/dist/assets/audit-logs-DYe-qSiP.js +18 -0
  48. package/dist/assets/{base32-B5jf-y5T.js → base32-CexKti2R.js} +1 -1
  49. package/dist/assets/blocklet-CGVGiuqG.js +1 -0
  50. package/dist/assets/{brace-fold.es-BdS8YFMK.js → brace-fold.es-Cd9aX1cM.js} +1 -1
  51. package/dist/assets/{chart-aw0SaxnD.js → chart-Bs7OZMEs.js} +2 -2
  52. package/dist/assets/{click-to-copy-B38fO92d.js → click-to-copy-BLrWqzdx.js} +1 -1
  53. package/dist/assets/cloneDeep-CMOqlMq1.js +1 -0
  54. package/dist/assets/{closebrackets.es-D6s5_0Ws.js → closebrackets.es-CAmK7vDc.js} +1 -1
  55. package/dist/assets/{codemirror.es-CtKybEA_.js → codemirror.es-5l5LSWiB.js} +1 -1
  56. package/dist/assets/{comment.es-qNW6EbsU.js → comment.es-fyaLaO_p.js} +1 -1
  57. package/dist/assets/{config-navigation-qY1FGkHO.js → config-navigation-DNC7Cdrb.js} +4 -4
  58. package/dist/assets/{connect-to-urNzNvP2.js → connect-to-CwX057lb.js} +1 -1
  59. package/dist/assets/de-CaPBInxb.js +3 -0
  60. package/dist/assets/{delete-confirm-Cd4DTWkn.js → delete-confirm-Z9dqfxla.js} +1 -1
  61. package/dist/assets/{detail-XQM-fmtV.js → detail-BYvx8q3f.js} +3 -3
  62. package/dist/assets/{dialog.es-BLJnN9o1.js → dialog.es-D5oYsbej.js} +1 -1
  63. package/dist/assets/{download-cvJJ5V-O.js → download-D09PcwbQ.js} +1 -1
  64. package/dist/assets/emotion-react.browser.esm-CPS6YTUj.js +1 -0
  65. package/dist/assets/es-hhXhgxGX.js +3 -0
  66. package/dist/assets/{foldgutter.es-BhLEy5Sd.js → foldgutter.es-Dcwu-Nmt.js} +1 -1
  67. package/dist/assets/fr-BwQvAhhM.js +3 -0
  68. package/dist/assets/{get-safe-url-C72hmR7z.js → get-safe-url-C60RmYFc.js} +1 -1
  69. package/dist/assets/{get-safe-url-Dvv7FqJf.js → get-safe-url-DPU-aQRS.js} +1 -1
  70. package/dist/assets/getValidReactChildren-CUL3M47p.js +1 -0
  71. package/dist/assets/hi-CRWmR5oy.js +1 -0
  72. package/dist/assets/{hint.es-D5UmvMj1.js → hint.es-DeaTs2Qq.js} +1 -1
  73. package/dist/assets/{hint.es2-B6NlYKUq.js → hint.es2-CTPnQVw5.js} +1 -1
  74. package/dist/assets/id-Dlr6Q1sk.js +3 -0
  75. package/dist/assets/{iframe-U_O2Ohib.js → iframe-D46eiMNo.js} +1 -1
  76. package/dist/assets/{index-CBDk8Qdz.js → index-84NuYkxC.js} +1 -1
  77. package/dist/assets/{index-DVmxFBDq.js → index-B8niL1rD.js} +1 -1
  78. package/dist/assets/{index-DmuEEXta.js → index-BYO3q_-f.js} +1 -1
  79. package/dist/assets/{index-Bm8IRyte.js → index-BmAgStm-.js} +3 -3
  80. package/dist/assets/{index-DuudjpgS.js → index-BwW5PaQN.js} +1 -1
  81. package/dist/assets/{index-CnSWmSIw.js → index-ByywnJG1.js} +1 -1
  82. package/dist/assets/{index-CtMsrwxg.js → index-CSQJVLxn.js} +1 -1
  83. package/dist/assets/index-CTvRsqtq.js +5 -0
  84. package/dist/assets/{index-CQcEzzfm.js → index-CYEIYpoK.js} +1 -1
  85. package/dist/assets/{index-NcWtiObL.js → index-CZ8hqq0k.js} +4 -4
  86. package/dist/assets/{index-DclhrGq1.js → index-ChraHuZb.js} +1 -1
  87. package/dist/assets/{index-B4ctAIc2.js → index-Cl6a8hab.js} +1 -1
  88. package/dist/assets/{index-BfjT5AWP.js → index-CqyMkN54.js} +1 -1
  89. package/dist/assets/{index-BKvr3-33.js → index-CwPnwzMH.js} +1 -1
  90. package/dist/assets/{index-BFpJSRVv.js → index-Czt9Nv-w.js} +1 -1
  91. package/dist/assets/{index-BgSENCns.js → index-D-ICEyP-.js} +1 -1
  92. package/dist/assets/{index-C_uG-5Xt.js → index-D3M-r7mD.js} +1 -1
  93. package/dist/assets/{index-BGTNHIny.js → index-D4QvYtmr.js} +1 -1
  94. package/dist/assets/{index-DaDGoPAK.js → index-D5W8subH.js} +3 -3
  95. package/dist/assets/{index-CDhsqAtT.js → index-DBBsOOb-.js} +1 -1
  96. package/dist/assets/{index-DtLPEDhC.js → index-DMJY83OZ.js} +1 -1
  97. package/dist/assets/index-DNkpFff2.js +11 -0
  98. package/dist/assets/{index-Bv5qhn-r.js → index-DW3KrF_A.js} +1 -1
  99. package/dist/assets/{index-B6322Uc6.js → index-DZ2X0x0M.js} +1 -1
  100. package/dist/assets/index-DhQLP906.js +77 -0
  101. package/dist/assets/index-Dm5_86CA.js +16 -0
  102. package/dist/assets/{index-BFPo46os.js → index-Dq1Y_v66.js} +1 -1
  103. package/dist/assets/{index-BldK0N35.js → index-Dq7rELgm.js} +3 -3
  104. package/dist/assets/{index-Z5zO2P-5.js → index-DylayVH2.js} +1 -1
  105. package/dist/assets/{index-DR_q8txM.js → index-EXXKezmQ.js} +1 -1
  106. package/dist/assets/{index-5hbcWwGj.js → index-FX5QIGRD.js} +1 -1
  107. package/dist/assets/{index-DN8pXU_t.js → index-GT9guQyO.js} +281 -281
  108. package/dist/assets/index-M9gFkuJ9.js +289 -0
  109. package/dist/assets/{index-Bp_YNtCz.js → index-RSON62_v.js} +3 -3
  110. package/dist/assets/{index-BQi4yC-Z.js → index-WGHiqs-d.js} +1 -1
  111. package/dist/assets/{index-CuVOt3Xh.js → index-WtGXniRe.js} +1 -1
  112. package/dist/assets/{index-CcoEVDzn.js → index-isPRo9fc.js} +5 -5
  113. package/dist/assets/{index-M4H0bqUC.js → index-lSrHcupv.js} +1 -1
  114. package/dist/assets/index-pccJ0dXT.js +327 -0
  115. package/dist/assets/{index-DnEAjK2Y.js → index-ri1EsZX3.js} +1 -1
  116. package/dist/assets/{index-Co3afWSR.js → index-xJ42lpli.js} +1 -1
  117. package/dist/assets/{index-CR8qQOPk.js → index-zHtzThD3.js} +1 -1
  118. package/dist/assets/{index.esm-wjW5Z500.js → index.esm-9NQPgDN1.js} +1 -1
  119. package/dist/assets/{info-addon.es-BBxF5y5M.js → info-addon.es-BpW2JxtT.js} +1 -1
  120. package/dist/assets/{info.es-Dv8Rwvx4.js → info.es-4osYJb7a.js} +1 -1
  121. package/dist/assets/{install-from-url-BYyFMvzE.js → install-from-url-pxQY0rKO.js} +1 -1
  122. package/dist/assets/{invitation-BBguiu7D.js → invitation-B9Aw81WR.js} +2 -2
  123. package/dist/assets/is-path-prefix-equal-B0zfJZZm.js +1 -0
  124. package/dist/assets/{item-DQDA15LH.js → item-H2uO43le.js} +1 -1
  125. package/dist/assets/ja-CmKylH6K.js +3 -0
  126. package/dist/assets/{javascript.es-Dlo9crBD.js → javascript.es-BuwU55VB.js} +1 -1
  127. package/dist/assets/{jump-to-line.es-BRdBlWOx.js → jump-to-line.es-akNDO8An.js} +1 -1
  128. package/dist/assets/{jump.es-M6MMmtkO.js → jump.es-D6qqb6oH.js} +1 -1
  129. package/dist/assets/ko-Blp8936a.js +3 -0
  130. package/dist/assets/{lint.es-DajtMOf1.js → lint.es-BvV13Mwu.js} +1 -1
  131. package/dist/assets/{lint.es2-DRV9ZLXt.js → lint.es2-Vl0jgQA7.js} +1 -1
  132. package/dist/assets/{lint.es3-BfGmJfht.js → lint.es3-_xSgTfDQ.js} +1 -1
  133. package/dist/assets/{list-header-Dw6mhzlg.js → list-header-CmzKVFeh.js} +1 -1
  134. package/dist/assets/{log-a0FUHJ9v.js → log-CaBpn6d0.js} +1 -1
  135. package/dist/assets/{logo-uploader-DcB6Wvn7.js → logo-uploader-DJDGz-CR.js} +4 -4
  136. package/dist/assets/{lottie-react.esm-ZivIDIR1.js → lottie-react.esm-Bord5ezK.js} +1 -1
  137. package/dist/assets/{matchbrackets.es-CwpJfiEI.js → matchbrackets.es-D6sni0fr.js} +1 -1
  138. package/dist/assets/{memory-By8_sTYM.js → memory-DwpjZJGd.js} +1 -1
  139. package/dist/assets/{mode.es-4lbCeLUp.js → mode.es-CnFDwJuo.js} +1 -1
  140. package/dist/assets/{mode.es2-CjdkOlRO.js → mode.es2-Cjddau0A.js} +1 -1
  141. package/dist/assets/{mode.es3-mn7Yljd2.js → mode.es3-2RGkJU0U.js} +1 -1
  142. package/dist/assets/{onlineParser.es-Devx56Hc.js → onlineParser.es-Bkggge6P.js} +1 -1
  143. package/dist/assets/overview-BRyH6tF3.js +26 -0
  144. package/dist/assets/{permission-BVUQ32OT.js → permission-MGlz941p.js} +1 -1
  145. package/dist/assets/pt-BbwAvpfn.js +1 -0
  146. package/dist/assets/resource-dialog-Br74KWDR.js +281 -0
  147. package/dist/assets/ru-DgfLeWul.js +1 -0
  148. package/dist/assets/runtime-CALQNLSi.js +1 -0
  149. package/dist/assets/{schema-C74YPWGq.js → schema-BHxCGqPk.js} +1 -1
  150. package/dist/assets/sdk-Cw4XkHQG.js +1 -0
  151. package/dist/assets/{search.es-CT_oxLUI.js → search.es-4b1cnXQT.js} +1 -1
  152. package/dist/assets/{searchcursor.es-CCaQ-uvx.js → searchcursor.es-BurXRjxw.js} +1 -1
  153. package/dist/assets/service-DZk6eKOc.js +1 -0
  154. package/dist/assets/session-D0aXztXK.js +1 -0
  155. package/dist/assets/{shorten-label-B19ACeJj.js → shorten-label-C54XjtyN.js} +1 -1
  156. package/dist/assets/{show-hint.es-CBc0cvVb.js → show-hint.es-Pjc3JgEA.js} +1 -1
  157. package/dist/assets/{simple-select-BIGkwb3y.js → simple-select-jxIon6oy.js} +1 -1
  158. package/dist/assets/{slicedToArray-B2BT7AS1.js → slicedToArray-MeVVcy2h.js} +3 -3
  159. package/dist/assets/{spaces-C0Xnb9HQ.js → spaces-DocKloBI.js} +1 -1
  160. package/dist/assets/{status-BtRCgN5n.js → status-WCLqHGBF.js} +1 -1
  161. package/dist/assets/{sublime.es-Cj8wPCEg.js → sublime.es-B-Vw3gYL.js} +1 -1
  162. package/dist/assets/switch-control-Bz8_ZX_s.js +18 -0
  163. package/dist/assets/{table-icons-CJ8bKHm_.js → table-icons-vFJdvsIP.js} +3 -3
  164. package/dist/assets/{team-1Aa7Et8F.js → team-B7EjBhR0.js} +1 -1
  165. package/dist/assets/th-DXRi_ppC.js +1 -0
  166. package/dist/assets/toUpper-CvshZy6q.js +1 -0
  167. package/dist/assets/{traffic-BvxJSp-3.js → traffic-CBWstV_S.js} +5 -5
  168. package/dist/assets/{uniqBy-BWfYQyim.js → uniqBy-PQ4j5ZrH.js} +1 -1
  169. package/dist/assets/{url-evaluation-45LESH3M.js → url-evaluation-Df8LUg06.js} +1 -1
  170. package/dist/assets/{url-join-CySKlr-_.js → url-join-etCGHrys.js} +1 -1
  171. package/dist/assets/{use-mobile-BX9WhCCQ.js → use-mobile-JF3w85jr.js} +1 -1
  172. package/dist/assets/{useAsync-D600LJhY.js → useAsync-C_Uq2smz.js} +1 -1
  173. package/dist/assets/{useLocalStorage-C_tHZqD7.js → useLocalStorage-BjHApf6t.js} +1 -1
  174. package/dist/assets/{useThemeProps-FgHOOeX-.js → useThemeProps-CtnWlthd.js} +1 -1
  175. package/dist/assets/{util-CEgRLLvv.js → util-C5M7zk0M.js} +1 -1
  176. package/dist/assets/{util-C3gCZ58k.js → util-CaHQUi7u.js} +1 -1
  177. package/dist/assets/vi-nO7JrO24.js +1 -0
  178. package/dist/assets/{wait-container-DouFz3p8.js → wait-container-BJBr5ZSe.js} +1 -1
  179. package/dist/assets/{withStyles-C7twoN5a.js → withStyles-Fat6HDbT.js} +1 -1
  180. package/dist/assets/wrap-locale-BazrDxx8.js +1 -0
  181. package/dist/assets/zh-CEvYioAt.js +4 -0
  182. package/dist/assets/zh-tw-BjfRYnXu.js +3 -0
  183. package/dist/index.html +1 -1
  184. package/dist/service-worker.js +1 -1
  185. package/package.json +1 -1
  186. package/dist/assets/ViewColumn-tvq1tOKx.js +0 -1
  187. package/dist/assets/api-DFvw52n9.js +0 -1
  188. package/dist/assets/ar-C89hW7LF.js +0 -3
  189. package/dist/assets/audit-logs-C_cf1WhT.js +0 -59
  190. package/dist/assets/blocklet-D9CQCPLC.js +0 -1
  191. package/dist/assets/cloneDeep-CSVU-XAV.js +0 -1
  192. package/dist/assets/de-BScxb0zD.js +0 -3
  193. package/dist/assets/emotion-react.browser.esm-BOlQhUC3.js +0 -1
  194. package/dist/assets/es-B9f-yiTL.js +0 -3
  195. package/dist/assets/fr-BguXQaFu.js +0 -3
  196. package/dist/assets/getValidReactChildren-CfH5w8vI.js +0 -1
  197. package/dist/assets/hi-7nPwxLb7.js +0 -1
  198. package/dist/assets/id-gU7ysJNs.js +0 -3
  199. package/dist/assets/index-B8FSf6Ly.js +0 -339
  200. package/dist/assets/index-Cgeor3Lb.js +0 -16
  201. package/dist/assets/index-DdnXJixO.js +0 -11
  202. package/dist/assets/index-DwZduSBS.js +0 -313
  203. package/dist/assets/index-IfCq-SM-.js +0 -5
  204. package/dist/assets/index-VN_0gZzO.js +0 -77
  205. package/dist/assets/is-path-prefix-equal-Dys093qg.js +0 -1
  206. package/dist/assets/ja-C4BURK37.js +0 -3
  207. package/dist/assets/ko-CeKzLbt8.js +0 -3
  208. package/dist/assets/overview-yPzh3Z-O.js +0 -26
  209. package/dist/assets/pt-o1EeyLhb.js +0 -1
  210. package/dist/assets/resource-dialog-wjqfQSa7.js +0 -281
  211. package/dist/assets/ru-BlfgKyTj.js +0 -1
  212. package/dist/assets/runtime-amVZoLAW.js +0 -1
  213. package/dist/assets/sdk-uJcTNH62.js +0 -1
  214. package/dist/assets/service-C-bl-f1K.js +0 -1
  215. package/dist/assets/session-BVMeNbzF.js +0 -1
  216. package/dist/assets/switch-control-D3Jww998.js +0 -13
  217. package/dist/assets/th-BHBtH1Zl.js +0 -1
  218. package/dist/assets/toUpper-C6j9c1mu.js +0 -1
  219. package/dist/assets/vi-CuGQRG8r.js +0 -1
  220. package/dist/assets/wrap-locale-C_5JkcLi.js +0 -1
  221. package/dist/assets/zh-DfOtp2w7.js +0 -4
  222. package/dist/assets/zh-tw-DFpaHA6Z.js +0 -3
@@ -1 +1 @@
1
- import{r as k,c5 as _t,fS as fe,fT as zt,c6 as nt,d0 as It,d6 as Ze,d7 as $e,fU as Je,bT as p,fV as Te,bW as At,bX as Mt,b_ as le,j as v,bR as ee,c2 as q,fW as lt,fX as st,c3 as it,fY as ft,bY as jt,d3 as Nt,bV as Vt,bZ as X,b$ as Et,m as mt,bt,B as vt,C as ht,ah as gt,y as Re,Y as yt,aR as Ft,aS as Ht}from"./index-DN8pXU_t.js";import{v as Ot}from"./visuallyHidden-Dan1xhjv.js";function Dt(e,t,o=(n,c)=>n===c){return e.length===t.length&&e.every((n,c)=>o(n,t[c]))}const Kt=2;function kt(e,t){return e-t}function ct(e,t){var o;const{index:n}=(o=e.reduce((c,S,g)=>{const s=Math.abs(t-S);return c===null||s<c.distance||s===c.distance?{distance:s,index:g}:c},null))!=null?o:{};return n}function Ce(e,t){if(t.current!==void 0&&e.changedTouches){const o=e;for(let n=0;n<o.changedTouches.length;n+=1){const c=o.changedTouches[n];if(c.identifier===t.current)return{x:c.clientX,y:c.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function _e(e,t,o){return(e-t)*100/(o-t)}function Yt(e,t,o){return(o-t)*e+t}function Bt(e){if(Math.abs(e)<1){const o=e.toExponential().split("e-"),n=o[0].split(".")[1];return(n?n.length:0)+parseInt(o[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Ut(e,t,o){const n=Math.round((e-o)/t)*t+o;return Number(n.toFixed(Bt(t)))}function ut({values:e,newValue:t,index:o}){const n=e.slice();return n[o]=t,n.sort(kt)}function Le({sliderRef:e,activeIndex:t,setActive:o}){var n,c;const S=$e(e.current);if(!((n=e.current)!=null&&n.contains(S.activeElement))||Number(S==null||(c=S.activeElement)==null?void 0:c.getAttribute("data-index"))!==t){var g;(g=e.current)==null||g.querySelector(`[type="range"][data-index="${t}"]`).focus()}o&&o(t)}function we(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?Dt(e,t):!1}const Wt={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Xt=e=>e;let Pe;function dt(){return Pe===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Pe=CSS.supports("touch-action","none"):Pe=!0),Pe}function qt(e){const{"aria-labelledby":t,defaultValue:o,disabled:n=!1,disableSwap:c=!1,isRtl:S=!1,marks:g=!1,max:s=100,min:f=0,name:z,onChange:O,onChangeCommitted:I,orientation:$="horizontal",rootRef:T,scale:se=Xt,step:E=1,shiftStep:ie=10,tabIndex:me,value:be}=e,D=k.useRef(void 0),[G,B]=k.useState(-1),[ve,U]=k.useState(-1),[ce,ue]=k.useState(!1),Z=k.useRef(0),[A,te]=_t({controlled:be,default:o??f,name:"Slider"}),F=O&&((r,a,l)=>{const u=r.nativeEvent||r,d=new u.constructor(u.type,u);Object.defineProperty(d,"target",{writable:!0,value:{value:a,name:z}}),O(d,a,l)}),J=Array.isArray(A);let C=J?A.slice().sort(kt):[A];C=C.map(r=>r==null?f:fe(r,f,s));const de=g===!0&&E!==null?[...Array(Math.floor((s-f)/E)+1)].map((r,a)=>({value:f+E*a})):g||[],x=de.map(r=>r.value),{isFocusVisibleRef:M,onBlur:ze,onFocus:Ie,ref:Ae}=zt(),[he,Q]=k.useState(-1),P=k.useRef(null),ge=nt(Ae,P),ye=nt(T,ge),re=r=>a=>{var l;const u=Number(a.currentTarget.getAttribute("data-index"));Ie(a),M.current===!0&&Q(u),U(u),r==null||(l=r.onFocus)==null||l.call(r,a)},oe=r=>a=>{var l;ze(a),M.current===!1&&Q(-1),U(-1),r==null||(l=r.onBlur)==null||l.call(r,a)},ke=(r,a)=>{const l=Number(r.currentTarget.getAttribute("data-index")),u=C[l],d=x.indexOf(u);let i=a;if(de&&E==null){const V=x[x.length-1];i>V?i=V:i<x[0]?i=x[0]:i=i<u?x[d-1]:x[d+1]}if(i=fe(i,f,s),J){c&&(i=fe(i,C[l-1]||-1/0,C[l+1]||1/0));const V=i;i=ut({values:C,newValue:i,index:l});let H=l;c||(H=i.indexOf(V)),Le({sliderRef:P,activeIndex:H})}te(i),Q(l),F&&!we(i,A)&&F(r,i,l),I&&I(r,i)},Me=r=>a=>{var l;if(E!==null){const u=Number(a.currentTarget.getAttribute("data-index")),d=C[u];let i=null;(a.key==="ArrowLeft"||a.key==="ArrowDown")&&a.shiftKey||a.key==="PageDown"?i=Math.max(d-ie,f):((a.key==="ArrowRight"||a.key==="ArrowUp")&&a.shiftKey||a.key==="PageUp")&&(i=Math.min(d+ie,s)),i!==null&&(ke(a,i),a.preventDefault())}r==null||(l=r.onKeyDown)==null||l.call(r,a)};It(()=>{if(n&&P.current.contains(document.activeElement)){var r;(r=document.activeElement)==null||r.blur()}},[n]),n&&G!==-1&&B(-1),n&&he!==-1&&Q(-1);const je=r=>a=>{var l;(l=r.onChange)==null||l.call(r,a),ke(a,a.target.valueAsNumber)},Se=k.useRef(void 0);let K=$;S&&$==="horizontal"&&(K+="-reverse");const h=({finger:r,move:a=!1})=>{const{current:l}=P,{width:u,height:d,bottom:i,left:V}=l.getBoundingClientRect();let H;K.indexOf("vertical")===0?H=(i-r.y)/d:H=(r.x-V)/u,K.indexOf("-reverse")!==-1&&(H=1-H);let m;if(m=Yt(H,f,s),E)m=Ut(m,E,f);else{const ne=ct(x,m);m=x[ne]}m=fe(m,f,s);let R=0;if(J){a?R=Se.current:R=ct(C,m),c&&(m=fe(m,C[R-1]||-1/0,C[R+1]||1/0));const ne=m;m=ut({values:C,newValue:m,index:R}),c&&a||(R=m.indexOf(ne),Se.current=R)}return{newValue:m,activeIndex:R}},b=Ze(r=>{const a=Ce(r,D);if(!a)return;if(Z.current+=1,r.type==="mousemove"&&r.buttons===0){j(r);return}const{newValue:l,activeIndex:u}=h({finger:a,move:!0});Le({sliderRef:P,activeIndex:u,setActive:B}),te(l),!ce&&Z.current>Kt&&ue(!0),F&&!we(l,A)&&F(r,l,u)}),j=Ze(r=>{const a=Ce(r,D);if(ue(!1),!a)return;const{newValue:l}=h({finger:a,move:!0});B(-1),r.type==="touchend"&&U(-1),I&&I(r,l),D.current=void 0,N()}),W=Ze(r=>{if(n)return;dt()||r.preventDefault();const a=r.changedTouches[0];a!=null&&(D.current=a.identifier);const l=Ce(r,D);if(l!==!1){const{newValue:d,activeIndex:i}=h({finger:l});Le({sliderRef:P,activeIndex:i,setActive:B}),te(d),F&&!we(d,A)&&F(r,d,i)}Z.current=0;const u=$e(P.current);u.addEventListener("touchmove",b,{passive:!0}),u.addEventListener("touchend",j,{passive:!0})}),N=k.useCallback(()=>{const r=$e(P.current);r.removeEventListener("mousemove",b),r.removeEventListener("mouseup",j),r.removeEventListener("touchmove",b),r.removeEventListener("touchend",j)},[j,b]);k.useEffect(()=>{const{current:r}=P;return r.addEventListener("touchstart",W,{passive:dt()}),()=>{r.removeEventListener("touchstart",W),N()}},[N,W]),k.useEffect(()=>{n&&N()},[n,N]);const Ne=r=>a=>{var l;if((l=r.onMouseDown)==null||l.call(r,a),n||a.defaultPrevented||a.button!==0)return;a.preventDefault();const u=Ce(a,D);if(u!==!1){const{newValue:i,activeIndex:V}=h({finger:u});Le({sliderRef:P,activeIndex:V,setActive:B}),te(i),F&&!we(i,A)&&F(a,i,V)}Z.current=0;const d=$e(P.current);d.addEventListener("mousemove",b,{passive:!0}),d.addEventListener("mouseup",j)},w=_e(J?C[0]:f,f,s),ae=_e(C[C.length-1],f,s)-w,Ve=(r={})=>{const a=Je(r),l={onMouseDown:Ne(a||{})},u=p({},a,l);return p({},r,{ref:ye},u)},Ee=r=>a=>{var l;(l=r.onMouseOver)==null||l.call(r,a);const u=Number(a.currentTarget.getAttribute("data-index"));U(u)},Fe=r=>a=>{var l;(l=r.onMouseLeave)==null||l.call(r,a),U(-1)};return{active:G,axis:K,axisProps:Wt,dragging:ce,focusedThumbIndex:he,getHiddenInputProps:(r={})=>{var a;const l=Je(r),u={onChange:je(l||{}),onFocus:re(l||{}),onBlur:oe(l||{}),onKeyDown:Me(l||{})},d=p({},l,u);return p({tabIndex:me,"aria-labelledby":t,"aria-orientation":$,"aria-valuemax":se(s),"aria-valuemin":se(f),name:z,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(a=e.step)!=null?a:void 0,disabled:n},r,d,{style:p({},Ot,{direction:S?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ve,getThumbProps:(r={})=>{const a=Je(r),l={onMouseOver:Ee(a||{}),onMouseLeave:Fe(a||{})};return p({},r,a,l)},marks:de,open:ve,range:J,rootRef:ye,trackLeap:ae,trackOffset:w,values:C,getThumbStyle:r=>({pointerEvents:G!==-1&&G!==r?"none":void 0})}}const Gt=e=>!e||!Te(e);function Zt(e){return Mt("MuiSlider",e)}const _=At("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Jt=e=>{const{open:t}=e;return{offset:le(t&&_.valueLabelOpen),circle:_.valueLabelCircle,label:_.valueLabelLabel}};function Qt(e){const{children:t,className:o,value:n}=e,c=Jt(e);return t?k.cloneElement(t,{className:le(t.props.className)},v.jsxs(k.Fragment,{children:[t.props.children,v.jsx("span",{className:le(c.offset,o),"aria-hidden":!0,children:v.jsx("span",{className:c.circle,children:v.jsx("span",{className:c.label,children:n})})})]})):null}const er=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function pt(e){return e}const tr=ee("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`color${q(o.color)}`],o.size!=="medium"&&t[`size${q(o.size)}`],o.marked&&t.marked,o.orientation==="vertical"&&t.vertical,o.track==="inverted"&&t.trackInverted,o.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${_.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${_.dragging}`]:{[`& .${_.thumb}, & .${_.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(o=>{var n;return((n=e.vars)!=null?n:e).palette[o].main}).map(o=>({props:{color:o},style:{color:(e.vars||e).palette[o].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),rr=ee("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),or=ee("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(o=>{var n;return((n=e.vars)!=null?n:e).palette[o].main}).map(o=>({props:{color:o,track:"inverted"},style:p({},e.vars?{backgroundColor:e.vars.palette.Slider[`${o}Track`],borderColor:e.vars.palette.Slider[`${o}Track`]}:p({backgroundColor:lt(e.palette[o].main,.62),borderColor:lt(e.palette[o].main,.62)},e.applyStyles("dark",{backgroundColor:st(e.palette[o].main,.5)}),e.applyStyles("dark",{borderColor:st(e.palette[o].main,.5)})))}))]}}),ar=ee("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.thumb,t[`thumbColor${q(o.color)}`],o.size!=="medium"&&t[`thumbSize${q(o.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${_.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(o=>{var n;return((n=e.vars)!=null?n:e).palette[o].main}).map(o=>({props:{color:o},style:{[`&:hover, &.${_.focusVisible}`]:p({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[o].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${it(e.palette[o].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${_.active}`]:p({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[o].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${it(e.palette[o].main,.16)}`})}}))]}}),nr=ee(Qt,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>p({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${_.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${_.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),lr=ee("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>ft(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:o}=e;return[t.mark,o&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),sr=ee("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>ft(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>p({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),ir=e=>{const{disabled:t,dragging:o,marked:n,orientation:c,track:S,classes:g,color:s,size:f}=e,z={root:["root",t&&"disabled",o&&"dragging",n&&"marked",c==="vertical"&&"vertical",S==="inverted"&&"trackInverted",S===!1&&"trackFalse",s&&`color${q(s)}`,f&&`size${q(f)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",f&&`thumbSize${q(f)}`,s&&`thumbColor${q(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Et(z,Zt,g)},cr=({children:e})=>e,vr=k.forwardRef(function(t,o){var n,c,S,g,s,f,z,O,I,$,T,se,E,ie,me,be,D,G,B,ve,U,ce,ue,Z;const A=jt({props:t,name:"MuiSlider"}),te=Nt(),{"aria-label":F,"aria-valuetext":J,"aria-labelledby":C,component:de="span",components:x={},componentsProps:M={},color:ze="primary",classes:Ie,className:Ae,disableSwap:he=!1,disabled:Q=!1,getAriaLabel:P,getAriaValueText:ge,marks:ye=!1,max:re=100,min:oe=0,orientation:ke="horizontal",shiftStep:Me=10,size:je="medium",step:Se=1,scale:K=pt,slotProps:h,slots:b,track:j="normal",valueLabelDisplay:W="off",valueLabelFormat:N=pt}=A,Ne=Vt(A,er),w=p({},A,{isRtl:te,max:re,min:oe,classes:Ie,disabled:Q,disableSwap:he,orientation:ke,marks:ye,color:ze,size:je,step:Se,shiftStep:Me,scale:K,track:j,valueLabelDisplay:W,valueLabelFormat:N}),{axisProps:ae,getRootProps:Ve,getHiddenInputProps:Ee,getThumbProps:Fe,open:et,active:He,axis:pe,focusedThumbIndex:r,range:a,dragging:l,marks:u,values:d,trackOffset:i,trackLeap:V,getThumbStyle:H}=qt(p({},w,{rootRef:o}));w.marked=u.length>0&&u.some(y=>y.label),w.dragging=l,w.focusedThumbIndex=r;const m=ir(w),R=(n=(c=b==null?void 0:b.root)!=null?c:x.Root)!=null?n:tr,ne=(S=(g=b==null?void 0:b.rail)!=null?g:x.Rail)!=null?S:rr,tt=(s=(f=b==null?void 0:b.track)!=null?f:x.Track)!=null?s:or,rt=(z=(O=b==null?void 0:b.thumb)!=null?O:x.Thumb)!=null?z:ar,ot=(I=($=b==null?void 0:b.valueLabel)!=null?$:x.ValueLabel)!=null?I:nr,Oe=(T=(se=b==null?void 0:b.mark)!=null?se:x.Mark)!=null?T:lr,De=(E=(ie=b==null?void 0:b.markLabel)!=null?ie:x.MarkLabel)!=null?E:sr,at=(me=(be=b==null?void 0:b.input)!=null?be:x.Input)!=null?me:"input",Ke=(D=h==null?void 0:h.root)!=null?D:M.root,St=(G=h==null?void 0:h.rail)!=null?G:M.rail,Ye=(B=h==null?void 0:h.track)!=null?B:M.track,Be=(ve=h==null?void 0:h.thumb)!=null?ve:M.thumb,Ue=(U=h==null?void 0:h.valueLabel)!=null?U:M.valueLabel,xt=(ce=h==null?void 0:h.mark)!=null?ce:M.mark,Ct=(ue=h==null?void 0:h.markLabel)!=null?ue:M.markLabel,Lt=(Z=h==null?void 0:h.input)!=null?Z:M.input,wt=X({elementType:R,getSlotProps:Ve,externalSlotProps:Ke,externalForwardedProps:Ne,additionalProps:p({},Gt(R)&&{as:de}),ownerState:p({},w,Ke==null?void 0:Ke.ownerState),className:[m.root,Ae]}),Pt=X({elementType:ne,externalSlotProps:St,ownerState:w,className:m.rail}),$t=X({elementType:tt,externalSlotProps:Ye,additionalProps:{style:p({},ae[pe].offset(i),ae[pe].leap(V))},ownerState:p({},w,Ye==null?void 0:Ye.ownerState),className:m.track}),We=X({elementType:rt,getSlotProps:Fe,externalSlotProps:Be,ownerState:p({},w,Be==null?void 0:Be.ownerState),className:m.thumb}),Tt=X({elementType:ot,externalSlotProps:Ue,ownerState:p({},w,Ue==null?void 0:Ue.ownerState),className:m.valueLabel}),Xe=X({elementType:Oe,externalSlotProps:xt,ownerState:w,className:m.mark}),qe=X({elementType:De,externalSlotProps:Ct,ownerState:w,className:m.markLabel}),Rt=X({elementType:at,getSlotProps:Ee,externalSlotProps:Lt,ownerState:w});return v.jsxs(R,p({},wt,{children:[v.jsx(ne,p({},Pt)),v.jsx(tt,p({},$t)),u.filter(y=>y.value>=oe&&y.value<=re).map((y,L)=>{const Ge=_e(y.value,oe,re),xe=ae[pe].offset(Ge);let Y;return j===!1?Y=d.indexOf(y.value)!==-1:Y=j==="normal"&&(a?y.value>=d[0]&&y.value<=d[d.length-1]:y.value<=d[0])||j==="inverted"&&(a?y.value<=d[0]||y.value>=d[d.length-1]:y.value>=d[0]),v.jsxs(k.Fragment,{children:[v.jsx(Oe,p({"data-index":L},Xe,!Te(Oe)&&{markActive:Y},{style:p({},xe,Xe.style),className:le(Xe.className,Y&&m.markActive)})),y.label!=null?v.jsx(De,p({"aria-hidden":!0,"data-index":L},qe,!Te(De)&&{markLabelActive:Y},{style:p({},xe,qe.style),className:le(m.markLabel,qe.className,Y&&m.markLabelActive),children:y.label})):null]},L)}),d.map((y,L)=>{const Ge=_e(y,oe,re),xe=ae[pe].offset(Ge),Y=W==="off"?cr:ot;return v.jsx(Y,p({},!Te(Y)&&{valueLabelFormat:N,valueLabelDisplay:W,value:typeof N=="function"?N(K(y),L):N,index:L,open:et===L||He===L||W==="on",disabled:Q},Tt,{children:v.jsx(rt,p({"data-index":L},We,{className:le(m.thumb,We.className,He===L&&m.active,r===L&&m.focusVisible),style:p({},xe,H(L),We.style),children:v.jsx(at,p({"data-index":L,"aria-label":P?P(L):F,"aria-valuenow":K(y),"aria-labelledby":C,"aria-valuetext":ge?ge(K(y),L):J,value:d[L]},Rt))}))}),L)})]}))});function hr({teamDid:e,size:t="small",...o}){const{t:n}=mt(),{api:c}=bt(),[S,g]=k.useState(!1),[s,f]=k.useState(null),z=()=>{g(!1),f(null)},O=async()=>{var $;try{g(!0);const T=await c.clearCache({input:{teamDid:e}});Re.success(n("blocklet.config.clearCache.success",{count:(($=T.removed)==null?void 0:$.length)||0}))}catch(T){Re.error(yt(T))}finally{g(!1),f(null)}},I={title:n("blocklet.config.clearCache.title"),description:n("blocklet.config.clearCache.description"),confirm:n("common.confirm"),cancel:n("common.cancel"),onConfirm:O,onCancel:z};return v.jsxs("div",{...o,children:[v.jsxs(vt,{onClick:()=>f(I),color:"error",variant:"outlined",size:t,children:[S?v.jsx(ht,{size:16,style:{marginRight:5}}):null,n("blocklet.config.clearCache.action")]}),s&&v.jsx(gt,{title:s.title,description:s.description,confirm:s.confirm,cancel:s.cancel,onConfirm:s.onConfirm,onCancel:s.onCancel})]})}function gr({teamDid:e,size:t="small",...o}){const{t:n}=mt(),{api:c}=bt(),[S,g]=k.useState(!1),[s,f]=k.useState(null),z=()=>{g(!1),f(null)},O=async()=>{var $;try{g(!0);const T=await c.rotateSessionKey({input:{teamDid:e}});Re.success(n("blocklet.config.rotateSessionKey.success",{count:(($=T.removed)==null?void 0:$.length)||0})),setTimeout(()=>{window.location.reload()},1e3)}catch(T){Re.error(yt(T))}finally{g(!1),f(null)}},I={title:n("blocklet.config.rotateSessionKey.title"),description:n("blocklet.config.rotateSessionKey.description"),confirm:n("common.confirm"),cancel:n("common.cancel"),onConfirm:O,onCancel:z};return v.jsxs("div",{...o,children:[v.jsxs(vt,{onClick:()=>f(I),color:"error",variant:"outlined",size:t,children:[S?v.jsx(ht,{size:16,style:{marginRight:5}}):null,n("blocklet.config.rotateSessionKey.action")]}),s&&v.jsx(gt,{title:s.title,description:s.description,confirm:s.confirm,cancel:s.cancel,onConfirm:s.onConfirm,onCancel:s.onCancel})]})}var Qe={},ur=Ht;Object.defineProperty(Qe,"__esModule",{value:!0});var dr=Qe.default=void 0,pr=ur(Ft()),fr=v;dr=Qe.default=(0,pr.default)((0,fr.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public");export{hr as C,gr as R,vr as S,dr as d};
1
+ import{r as k,c5 as _t,fS as fe,fT as zt,c6 as nt,d0 as It,d6 as Ze,d7 as $e,fU as Je,bT as p,fV as Te,bW as At,bX as Mt,b_ as le,j as v,bR as ee,c2 as q,fW as lt,fX as st,c3 as it,fY as ft,bY as jt,d3 as Nt,bV as Vt,bZ as X,b$ as Et,m as mt,bt,B as vt,C as ht,ah as gt,y as Re,Y as yt,aR as Ft,aS as Ht}from"./index-GT9guQyO.js";import{v as Ot}from"./visuallyHidden-Dan1xhjv.js";function Dt(e,t,o=(n,c)=>n===c){return e.length===t.length&&e.every((n,c)=>o(n,t[c]))}const Kt=2;function kt(e,t){return e-t}function ct(e,t){var o;const{index:n}=(o=e.reduce((c,S,g)=>{const s=Math.abs(t-S);return c===null||s<c.distance||s===c.distance?{distance:s,index:g}:c},null))!=null?o:{};return n}function Ce(e,t){if(t.current!==void 0&&e.changedTouches){const o=e;for(let n=0;n<o.changedTouches.length;n+=1){const c=o.changedTouches[n];if(c.identifier===t.current)return{x:c.clientX,y:c.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function _e(e,t,o){return(e-t)*100/(o-t)}function Yt(e,t,o){return(o-t)*e+t}function Bt(e){if(Math.abs(e)<1){const o=e.toExponential().split("e-"),n=o[0].split(".")[1];return(n?n.length:0)+parseInt(o[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Ut(e,t,o){const n=Math.round((e-o)/t)*t+o;return Number(n.toFixed(Bt(t)))}function ut({values:e,newValue:t,index:o}){const n=e.slice();return n[o]=t,n.sort(kt)}function Le({sliderRef:e,activeIndex:t,setActive:o}){var n,c;const S=$e(e.current);if(!((n=e.current)!=null&&n.contains(S.activeElement))||Number(S==null||(c=S.activeElement)==null?void 0:c.getAttribute("data-index"))!==t){var g;(g=e.current)==null||g.querySelector(`[type="range"][data-index="${t}"]`).focus()}o&&o(t)}function we(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?Dt(e,t):!1}const Wt={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Xt=e=>e;let Pe;function dt(){return Pe===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Pe=CSS.supports("touch-action","none"):Pe=!0),Pe}function qt(e){const{"aria-labelledby":t,defaultValue:o,disabled:n=!1,disableSwap:c=!1,isRtl:S=!1,marks:g=!1,max:s=100,min:f=0,name:z,onChange:O,onChangeCommitted:I,orientation:$="horizontal",rootRef:T,scale:se=Xt,step:E=1,shiftStep:ie=10,tabIndex:me,value:be}=e,D=k.useRef(void 0),[G,B]=k.useState(-1),[ve,U]=k.useState(-1),[ce,ue]=k.useState(!1),Z=k.useRef(0),[A,te]=_t({controlled:be,default:o??f,name:"Slider"}),F=O&&((r,a,l)=>{const u=r.nativeEvent||r,d=new u.constructor(u.type,u);Object.defineProperty(d,"target",{writable:!0,value:{value:a,name:z}}),O(d,a,l)}),J=Array.isArray(A);let C=J?A.slice().sort(kt):[A];C=C.map(r=>r==null?f:fe(r,f,s));const de=g===!0&&E!==null?[...Array(Math.floor((s-f)/E)+1)].map((r,a)=>({value:f+E*a})):g||[],x=de.map(r=>r.value),{isFocusVisibleRef:M,onBlur:ze,onFocus:Ie,ref:Ae}=zt(),[he,Q]=k.useState(-1),P=k.useRef(null),ge=nt(Ae,P),ye=nt(T,ge),re=r=>a=>{var l;const u=Number(a.currentTarget.getAttribute("data-index"));Ie(a),M.current===!0&&Q(u),U(u),r==null||(l=r.onFocus)==null||l.call(r,a)},oe=r=>a=>{var l;ze(a),M.current===!1&&Q(-1),U(-1),r==null||(l=r.onBlur)==null||l.call(r,a)},ke=(r,a)=>{const l=Number(r.currentTarget.getAttribute("data-index")),u=C[l],d=x.indexOf(u);let i=a;if(de&&E==null){const V=x[x.length-1];i>V?i=V:i<x[0]?i=x[0]:i=i<u?x[d-1]:x[d+1]}if(i=fe(i,f,s),J){c&&(i=fe(i,C[l-1]||-1/0,C[l+1]||1/0));const V=i;i=ut({values:C,newValue:i,index:l});let H=l;c||(H=i.indexOf(V)),Le({sliderRef:P,activeIndex:H})}te(i),Q(l),F&&!we(i,A)&&F(r,i,l),I&&I(r,i)},Me=r=>a=>{var l;if(E!==null){const u=Number(a.currentTarget.getAttribute("data-index")),d=C[u];let i=null;(a.key==="ArrowLeft"||a.key==="ArrowDown")&&a.shiftKey||a.key==="PageDown"?i=Math.max(d-ie,f):((a.key==="ArrowRight"||a.key==="ArrowUp")&&a.shiftKey||a.key==="PageUp")&&(i=Math.min(d+ie,s)),i!==null&&(ke(a,i),a.preventDefault())}r==null||(l=r.onKeyDown)==null||l.call(r,a)};It(()=>{if(n&&P.current.contains(document.activeElement)){var r;(r=document.activeElement)==null||r.blur()}},[n]),n&&G!==-1&&B(-1),n&&he!==-1&&Q(-1);const je=r=>a=>{var l;(l=r.onChange)==null||l.call(r,a),ke(a,a.target.valueAsNumber)},Se=k.useRef(void 0);let K=$;S&&$==="horizontal"&&(K+="-reverse");const h=({finger:r,move:a=!1})=>{const{current:l}=P,{width:u,height:d,bottom:i,left:V}=l.getBoundingClientRect();let H;K.indexOf("vertical")===0?H=(i-r.y)/d:H=(r.x-V)/u,K.indexOf("-reverse")!==-1&&(H=1-H);let m;if(m=Yt(H,f,s),E)m=Ut(m,E,f);else{const ne=ct(x,m);m=x[ne]}m=fe(m,f,s);let R=0;if(J){a?R=Se.current:R=ct(C,m),c&&(m=fe(m,C[R-1]||-1/0,C[R+1]||1/0));const ne=m;m=ut({values:C,newValue:m,index:R}),c&&a||(R=m.indexOf(ne),Se.current=R)}return{newValue:m,activeIndex:R}},b=Ze(r=>{const a=Ce(r,D);if(!a)return;if(Z.current+=1,r.type==="mousemove"&&r.buttons===0){j(r);return}const{newValue:l,activeIndex:u}=h({finger:a,move:!0});Le({sliderRef:P,activeIndex:u,setActive:B}),te(l),!ce&&Z.current>Kt&&ue(!0),F&&!we(l,A)&&F(r,l,u)}),j=Ze(r=>{const a=Ce(r,D);if(ue(!1),!a)return;const{newValue:l}=h({finger:a,move:!0});B(-1),r.type==="touchend"&&U(-1),I&&I(r,l),D.current=void 0,N()}),W=Ze(r=>{if(n)return;dt()||r.preventDefault();const a=r.changedTouches[0];a!=null&&(D.current=a.identifier);const l=Ce(r,D);if(l!==!1){const{newValue:d,activeIndex:i}=h({finger:l});Le({sliderRef:P,activeIndex:i,setActive:B}),te(d),F&&!we(d,A)&&F(r,d,i)}Z.current=0;const u=$e(P.current);u.addEventListener("touchmove",b,{passive:!0}),u.addEventListener("touchend",j,{passive:!0})}),N=k.useCallback(()=>{const r=$e(P.current);r.removeEventListener("mousemove",b),r.removeEventListener("mouseup",j),r.removeEventListener("touchmove",b),r.removeEventListener("touchend",j)},[j,b]);k.useEffect(()=>{const{current:r}=P;return r.addEventListener("touchstart",W,{passive:dt()}),()=>{r.removeEventListener("touchstart",W),N()}},[N,W]),k.useEffect(()=>{n&&N()},[n,N]);const Ne=r=>a=>{var l;if((l=r.onMouseDown)==null||l.call(r,a),n||a.defaultPrevented||a.button!==0)return;a.preventDefault();const u=Ce(a,D);if(u!==!1){const{newValue:i,activeIndex:V}=h({finger:u});Le({sliderRef:P,activeIndex:V,setActive:B}),te(i),F&&!we(i,A)&&F(a,i,V)}Z.current=0;const d=$e(P.current);d.addEventListener("mousemove",b,{passive:!0}),d.addEventListener("mouseup",j)},w=_e(J?C[0]:f,f,s),ae=_e(C[C.length-1],f,s)-w,Ve=(r={})=>{const a=Je(r),l={onMouseDown:Ne(a||{})},u=p({},a,l);return p({},r,{ref:ye},u)},Ee=r=>a=>{var l;(l=r.onMouseOver)==null||l.call(r,a);const u=Number(a.currentTarget.getAttribute("data-index"));U(u)},Fe=r=>a=>{var l;(l=r.onMouseLeave)==null||l.call(r,a),U(-1)};return{active:G,axis:K,axisProps:Wt,dragging:ce,focusedThumbIndex:he,getHiddenInputProps:(r={})=>{var a;const l=Je(r),u={onChange:je(l||{}),onFocus:re(l||{}),onBlur:oe(l||{}),onKeyDown:Me(l||{})},d=p({},l,u);return p({tabIndex:me,"aria-labelledby":t,"aria-orientation":$,"aria-valuemax":se(s),"aria-valuemin":se(f),name:z,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(a=e.step)!=null?a:void 0,disabled:n},r,d,{style:p({},Ot,{direction:S?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ve,getThumbProps:(r={})=>{const a=Je(r),l={onMouseOver:Ee(a||{}),onMouseLeave:Fe(a||{})};return p({},r,a,l)},marks:de,open:ve,range:J,rootRef:ye,trackLeap:ae,trackOffset:w,values:C,getThumbStyle:r=>({pointerEvents:G!==-1&&G!==r?"none":void 0})}}const Gt=e=>!e||!Te(e);function Zt(e){return Mt("MuiSlider",e)}const _=At("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Jt=e=>{const{open:t}=e;return{offset:le(t&&_.valueLabelOpen),circle:_.valueLabelCircle,label:_.valueLabelLabel}};function Qt(e){const{children:t,className:o,value:n}=e,c=Jt(e);return t?k.cloneElement(t,{className:le(t.props.className)},v.jsxs(k.Fragment,{children:[t.props.children,v.jsx("span",{className:le(c.offset,o),"aria-hidden":!0,children:v.jsx("span",{className:c.circle,children:v.jsx("span",{className:c.label,children:n})})})]})):null}const er=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function pt(e){return e}const tr=ee("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`color${q(o.color)}`],o.size!=="medium"&&t[`size${q(o.size)}`],o.marked&&t.marked,o.orientation==="vertical"&&t.vertical,o.track==="inverted"&&t.trackInverted,o.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${_.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${_.dragging}`]:{[`& .${_.thumb}, & .${_.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(o=>{var n;return((n=e.vars)!=null?n:e).palette[o].main}).map(o=>({props:{color:o},style:{color:(e.vars||e).palette[o].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),rr=ee("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),or=ee("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(o=>{var n;return((n=e.vars)!=null?n:e).palette[o].main}).map(o=>({props:{color:o,track:"inverted"},style:p({},e.vars?{backgroundColor:e.vars.palette.Slider[`${o}Track`],borderColor:e.vars.palette.Slider[`${o}Track`]}:p({backgroundColor:lt(e.palette[o].main,.62),borderColor:lt(e.palette[o].main,.62)},e.applyStyles("dark",{backgroundColor:st(e.palette[o].main,.5)}),e.applyStyles("dark",{borderColor:st(e.palette[o].main,.5)})))}))]}}),ar=ee("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.thumb,t[`thumbColor${q(o.color)}`],o.size!=="medium"&&t[`thumbSize${q(o.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${_.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(o=>{var n;return((n=e.vars)!=null?n:e).palette[o].main}).map(o=>({props:{color:o},style:{[`&:hover, &.${_.focusVisible}`]:p({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[o].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${it(e.palette[o].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${_.active}`]:p({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[o].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${it(e.palette[o].main,.16)}`})}}))]}}),nr=ee(Qt,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>p({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${_.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${_.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),lr=ee("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>ft(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:o}=e;return[t.mark,o&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),sr=ee("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>ft(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>p({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),ir=e=>{const{disabled:t,dragging:o,marked:n,orientation:c,track:S,classes:g,color:s,size:f}=e,z={root:["root",t&&"disabled",o&&"dragging",n&&"marked",c==="vertical"&&"vertical",S==="inverted"&&"trackInverted",S===!1&&"trackFalse",s&&`color${q(s)}`,f&&`size${q(f)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",f&&`thumbSize${q(f)}`,s&&`thumbColor${q(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Et(z,Zt,g)},cr=({children:e})=>e,vr=k.forwardRef(function(t,o){var n,c,S,g,s,f,z,O,I,$,T,se,E,ie,me,be,D,G,B,ve,U,ce,ue,Z;const A=jt({props:t,name:"MuiSlider"}),te=Nt(),{"aria-label":F,"aria-valuetext":J,"aria-labelledby":C,component:de="span",components:x={},componentsProps:M={},color:ze="primary",classes:Ie,className:Ae,disableSwap:he=!1,disabled:Q=!1,getAriaLabel:P,getAriaValueText:ge,marks:ye=!1,max:re=100,min:oe=0,orientation:ke="horizontal",shiftStep:Me=10,size:je="medium",step:Se=1,scale:K=pt,slotProps:h,slots:b,track:j="normal",valueLabelDisplay:W="off",valueLabelFormat:N=pt}=A,Ne=Vt(A,er),w=p({},A,{isRtl:te,max:re,min:oe,classes:Ie,disabled:Q,disableSwap:he,orientation:ke,marks:ye,color:ze,size:je,step:Se,shiftStep:Me,scale:K,track:j,valueLabelDisplay:W,valueLabelFormat:N}),{axisProps:ae,getRootProps:Ve,getHiddenInputProps:Ee,getThumbProps:Fe,open:et,active:He,axis:pe,focusedThumbIndex:r,range:a,dragging:l,marks:u,values:d,trackOffset:i,trackLeap:V,getThumbStyle:H}=qt(p({},w,{rootRef:o}));w.marked=u.length>0&&u.some(y=>y.label),w.dragging=l,w.focusedThumbIndex=r;const m=ir(w),R=(n=(c=b==null?void 0:b.root)!=null?c:x.Root)!=null?n:tr,ne=(S=(g=b==null?void 0:b.rail)!=null?g:x.Rail)!=null?S:rr,tt=(s=(f=b==null?void 0:b.track)!=null?f:x.Track)!=null?s:or,rt=(z=(O=b==null?void 0:b.thumb)!=null?O:x.Thumb)!=null?z:ar,ot=(I=($=b==null?void 0:b.valueLabel)!=null?$:x.ValueLabel)!=null?I:nr,Oe=(T=(se=b==null?void 0:b.mark)!=null?se:x.Mark)!=null?T:lr,De=(E=(ie=b==null?void 0:b.markLabel)!=null?ie:x.MarkLabel)!=null?E:sr,at=(me=(be=b==null?void 0:b.input)!=null?be:x.Input)!=null?me:"input",Ke=(D=h==null?void 0:h.root)!=null?D:M.root,St=(G=h==null?void 0:h.rail)!=null?G:M.rail,Ye=(B=h==null?void 0:h.track)!=null?B:M.track,Be=(ve=h==null?void 0:h.thumb)!=null?ve:M.thumb,Ue=(U=h==null?void 0:h.valueLabel)!=null?U:M.valueLabel,xt=(ce=h==null?void 0:h.mark)!=null?ce:M.mark,Ct=(ue=h==null?void 0:h.markLabel)!=null?ue:M.markLabel,Lt=(Z=h==null?void 0:h.input)!=null?Z:M.input,wt=X({elementType:R,getSlotProps:Ve,externalSlotProps:Ke,externalForwardedProps:Ne,additionalProps:p({},Gt(R)&&{as:de}),ownerState:p({},w,Ke==null?void 0:Ke.ownerState),className:[m.root,Ae]}),Pt=X({elementType:ne,externalSlotProps:St,ownerState:w,className:m.rail}),$t=X({elementType:tt,externalSlotProps:Ye,additionalProps:{style:p({},ae[pe].offset(i),ae[pe].leap(V))},ownerState:p({},w,Ye==null?void 0:Ye.ownerState),className:m.track}),We=X({elementType:rt,getSlotProps:Fe,externalSlotProps:Be,ownerState:p({},w,Be==null?void 0:Be.ownerState),className:m.thumb}),Tt=X({elementType:ot,externalSlotProps:Ue,ownerState:p({},w,Ue==null?void 0:Ue.ownerState),className:m.valueLabel}),Xe=X({elementType:Oe,externalSlotProps:xt,ownerState:w,className:m.mark}),qe=X({elementType:De,externalSlotProps:Ct,ownerState:w,className:m.markLabel}),Rt=X({elementType:at,getSlotProps:Ee,externalSlotProps:Lt,ownerState:w});return v.jsxs(R,p({},wt,{children:[v.jsx(ne,p({},Pt)),v.jsx(tt,p({},$t)),u.filter(y=>y.value>=oe&&y.value<=re).map((y,L)=>{const Ge=_e(y.value,oe,re),xe=ae[pe].offset(Ge);let Y;return j===!1?Y=d.indexOf(y.value)!==-1:Y=j==="normal"&&(a?y.value>=d[0]&&y.value<=d[d.length-1]:y.value<=d[0])||j==="inverted"&&(a?y.value<=d[0]||y.value>=d[d.length-1]:y.value>=d[0]),v.jsxs(k.Fragment,{children:[v.jsx(Oe,p({"data-index":L},Xe,!Te(Oe)&&{markActive:Y},{style:p({},xe,Xe.style),className:le(Xe.className,Y&&m.markActive)})),y.label!=null?v.jsx(De,p({"aria-hidden":!0,"data-index":L},qe,!Te(De)&&{markLabelActive:Y},{style:p({},xe,qe.style),className:le(m.markLabel,qe.className,Y&&m.markLabelActive),children:y.label})):null]},L)}),d.map((y,L)=>{const Ge=_e(y,oe,re),xe=ae[pe].offset(Ge),Y=W==="off"?cr:ot;return v.jsx(Y,p({},!Te(Y)&&{valueLabelFormat:N,valueLabelDisplay:W,value:typeof N=="function"?N(K(y),L):N,index:L,open:et===L||He===L||W==="on",disabled:Q},Tt,{children:v.jsx(rt,p({"data-index":L},We,{className:le(m.thumb,We.className,He===L&&m.active,r===L&&m.focusVisible),style:p({},xe,H(L),We.style),children:v.jsx(at,p({"data-index":L,"aria-label":P?P(L):F,"aria-valuenow":K(y),"aria-labelledby":C,"aria-valuetext":ge?ge(K(y),L):J,value:d[L]},Rt))}))}),L)})]}))});function hr({teamDid:e,size:t="small",...o}){const{t:n}=mt(),{api:c}=bt(),[S,g]=k.useState(!1),[s,f]=k.useState(null),z=()=>{g(!1),f(null)},O=async()=>{var $;try{g(!0);const T=await c.clearCache({input:{teamDid:e}});Re.success(n("blocklet.config.clearCache.success",{count:(($=T.removed)==null?void 0:$.length)||0}))}catch(T){Re.error(yt(T))}finally{g(!1),f(null)}},I={title:n("blocklet.config.clearCache.title"),description:n("blocklet.config.clearCache.description"),confirm:n("common.confirm"),cancel:n("common.cancel"),onConfirm:O,onCancel:z};return v.jsxs("div",{...o,children:[v.jsxs(vt,{onClick:()=>f(I),color:"error",variant:"outlined",size:t,children:[S?v.jsx(ht,{size:16,style:{marginRight:5}}):null,n("blocklet.config.clearCache.action")]}),s&&v.jsx(gt,{title:s.title,description:s.description,confirm:s.confirm,cancel:s.cancel,onConfirm:s.onConfirm,onCancel:s.onCancel})]})}function gr({teamDid:e,size:t="small",...o}){const{t:n}=mt(),{api:c}=bt(),[S,g]=k.useState(!1),[s,f]=k.useState(null),z=()=>{g(!1),f(null)},O=async()=>{var $;try{g(!0);const T=await c.rotateSessionKey({input:{teamDid:e}});Re.success(n("blocklet.config.rotateSessionKey.success",{count:(($=T.removed)==null?void 0:$.length)||0})),setTimeout(()=>{window.location.reload()},1e3)}catch(T){Re.error(yt(T))}finally{g(!1),f(null)}},I={title:n("blocklet.config.rotateSessionKey.title"),description:n("blocklet.config.rotateSessionKey.description"),confirm:n("common.confirm"),cancel:n("common.cancel"),onConfirm:O,onCancel:z};return v.jsxs("div",{...o,children:[v.jsxs(vt,{onClick:()=>f(I),color:"error",variant:"outlined",size:t,children:[S?v.jsx(ht,{size:16,style:{marginRight:5}}):null,n("blocklet.config.rotateSessionKey.action")]}),s&&v.jsx(gt,{title:s.title,description:s.description,confirm:s.confirm,cancel:s.cancel,onConfirm:s.onConfirm,onCancel:s.onCancel})]})}var Qe={},ur=Ht;Object.defineProperty(Qe,"__esModule",{value:!0});var dr=Qe.default=void 0,pr=ur(Ft()),fr=v;dr=Qe.default=(0,pr.default)((0,fr.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public");export{hr as C,gr as R,vr as S,dr as d};
@@ -1 +1 @@
1
- import{S as o,T as D,a as T}from"./introspection.es-CPJcz6nz.js";import{f as b}from"./forEachState.es-D8bf0zSr.js";import{g as l,o as k,q as F,r as S,G as h,i as j}from"./index-CcoEVDzn.js";var R=Object.defineProperty,t=(n,r)=>R(n,"name",{value:r,configurable:!0});function V(n,r){const e={schema:n,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return b(r,i=>{var u,p;switch(i.kind){case"Query":case"ShortQuery":e.type=n.getQueryType();break;case"Mutation":e.type=n.getMutationType();break;case"Subscription":e.type=n.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":i.type&&(e.type=n.getType(i.type));break;case"Field":case"AliasedField":e.fieldDef=e.type&&i.name?f(n,e.parentType,i.name):null,e.type=(u=e.fieldDef)===null||u===void 0?void 0:u.type;break;case"SelectionSet":e.parentType=e.type?l(e.type):null;break;case"Directive":e.directiveDef=i.name?n.getDirective(i.name):null;break;case"Arguments":const g=i.prevState?i.prevState.kind==="Field"?e.fieldDef:i.prevState.kind==="Directive"?e.directiveDef:i.prevState.kind==="AliasedField"?i.prevState.name&&f(n,e.parentType,i.prevState.name):null:null;e.argDefs=g?g.args:null;break;case"Argument":if(e.argDef=null,e.argDefs){for(let a=0;a<e.argDefs.length;a++)if(e.argDefs[a].name===i.name){e.argDef=e.argDefs[a];break}}e.inputType=(p=e.argDef)===null||p===void 0?void 0:p.type;break;case"EnumValue":const s=e.inputType?l(e.inputType):null;e.enumValue=s instanceof h?v(s.getValues(),a=>a.value===i.name):null;break;case"ListValue":const m=e.inputType?F(e.inputType):null;e.inputType=m instanceof S?m.ofType:null;break;case"ObjectValue":const y=e.inputType?l(e.inputType):null;e.objectFieldDefs=y instanceof k?y.getFields():null;break;case"ObjectField":const c=i.name&&e.objectFieldDefs?e.objectFieldDefs[i.name]:null;e.inputType=c==null?void 0:c.type;break;case"NamedType":e.type=i.name?n.getType(i.name):null;break}}),e}t(V,"getTypeInfo");function f(n,r,e){if(e===o.name&&n.getQueryType()===r)return o;if(e===D.name&&n.getQueryType()===r)return D;if(e===T.name&&j(r))return T;if(r&&r.getFields)return r.getFields()[e]}t(f,"getFieldDef");function v(n,r){for(let e=0;e<n.length;e++)if(r(n[e]))return n[e]}t(v,"find");function A(n){return{kind:"Field",schema:n.schema,field:n.fieldDef,type:d(n.fieldDef)?null:n.parentType}}t(A,"getFieldReference");function Q(n){return{kind:"Directive",schema:n.schema,directive:n.directiveDef}}t(Q,"getDirectiveReference");function _(n){return n.directiveDef?{kind:"Argument",schema:n.schema,argument:n.argDef,directive:n.directiveDef}:{kind:"Argument",schema:n.schema,argument:n.argDef,field:n.fieldDef,type:d(n.fieldDef)?null:n.parentType}}t(_,"getArgumentReference");function M(n){return{kind:"EnumValue",value:n.enumValue||void 0,type:n.inputType?l(n.inputType):void 0}}t(M,"getEnumValueReference");function E(n,r){return{kind:"Type",schema:n.schema,type:r||n.type}}t(E,"getTypeReference");function d(n){return n.name.slice(0,2)==="__"}t(d,"isMetaField");export{A as a,Q as b,_ as c,M as d,E as e,V as g};
1
+ import{S as o,T as D,a as T}from"./introspection.es-CPJcz6nz.js";import{f as b}from"./forEachState.es-D8bf0zSr.js";import{g as l,o as k,q as F,r as S,G as h,i as j}from"./index-isPRo9fc.js";var R=Object.defineProperty,t=(n,r)=>R(n,"name",{value:r,configurable:!0});function V(n,r){const e={schema:n,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return b(r,i=>{var u,p;switch(i.kind){case"Query":case"ShortQuery":e.type=n.getQueryType();break;case"Mutation":e.type=n.getMutationType();break;case"Subscription":e.type=n.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":i.type&&(e.type=n.getType(i.type));break;case"Field":case"AliasedField":e.fieldDef=e.type&&i.name?f(n,e.parentType,i.name):null,e.type=(u=e.fieldDef)===null||u===void 0?void 0:u.type;break;case"SelectionSet":e.parentType=e.type?l(e.type):null;break;case"Directive":e.directiveDef=i.name?n.getDirective(i.name):null;break;case"Arguments":const g=i.prevState?i.prevState.kind==="Field"?e.fieldDef:i.prevState.kind==="Directive"?e.directiveDef:i.prevState.kind==="AliasedField"?i.prevState.name&&f(n,e.parentType,i.prevState.name):null:null;e.argDefs=g?g.args:null;break;case"Argument":if(e.argDef=null,e.argDefs){for(let a=0;a<e.argDefs.length;a++)if(e.argDefs[a].name===i.name){e.argDef=e.argDefs[a];break}}e.inputType=(p=e.argDef)===null||p===void 0?void 0:p.type;break;case"EnumValue":const s=e.inputType?l(e.inputType):null;e.enumValue=s instanceof h?v(s.getValues(),a=>a.value===i.name):null;break;case"ListValue":const m=e.inputType?F(e.inputType):null;e.inputType=m instanceof S?m.ofType:null;break;case"ObjectValue":const y=e.inputType?l(e.inputType):null;e.objectFieldDefs=y instanceof k?y.getFields():null;break;case"ObjectField":const c=i.name&&e.objectFieldDefs?e.objectFieldDefs[i.name]:null;e.inputType=c==null?void 0:c.type;break;case"NamedType":e.type=i.name?n.getType(i.name):null;break}}),e}t(V,"getTypeInfo");function f(n,r,e){if(e===o.name&&n.getQueryType()===r)return o;if(e===D.name&&n.getQueryType()===r)return D;if(e===T.name&&j(r))return T;if(r&&r.getFields)return r.getFields()[e]}t(f,"getFieldDef");function v(n,r){for(let e=0;e<n.length;e++)if(r(n[e]))return n[e]}t(v,"find");function A(n){return{kind:"Field",schema:n.schema,field:n.fieldDef,type:d(n.fieldDef)?null:n.parentType}}t(A,"getFieldReference");function Q(n){return{kind:"Directive",schema:n.schema,directive:n.directiveDef}}t(Q,"getDirectiveReference");function _(n){return n.directiveDef?{kind:"Argument",schema:n.schema,argument:n.argDef,directive:n.directiveDef}:{kind:"Argument",schema:n.schema,argument:n.argDef,field:n.fieldDef,type:d(n.fieldDef)?null:n.parentType}}t(_,"getArgumentReference");function M(n){return{kind:"EnumValue",value:n.enumValue||void 0,type:n.inputType?l(n.inputType):void 0}}t(M,"getEnumValueReference");function E(n,r){return{kind:"Type",schema:n.schema,type:r||n.type}}t(E,"getTypeReference");function d(n){return n.name.slice(0,2)==="__"}t(d,"isMetaField");export{A as a,Q as b,_ as c,M as d,E as e,V as g};
@@ -1 +1 @@
1
- import{aR as a,aS as r,j as t}from"./index-DN8pXU_t.js";var e={},u=r;Object.defineProperty(e,"__esModule",{value:!0});var o=e.default=void 0,l=u(a()),s=t;o=e.default=(0,l.default)((0,s.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search");export{e as S,o as d};
1
+ import{aR as a,aS as r,j as t}from"./index-GT9guQyO.js";var e={},u=r;Object.defineProperty(e,"__esModule",{value:!0});var o=e.default=void 0,l=u(a()),s=t;o=e.default=(0,l.default)((0,s.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search");export{e as S,o as d};
@@ -1 +1 @@
1
- import{aR as a,aS as r,j as t}from"./index-DN8pXU_t.js";var e={},o=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,i=o(a()),l=t;u=e.default=(0,i.default)((0,l.jsx)("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2M1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2"}),"ShoppingCart");export{u as d};
1
+ import{aR as a,aS as r,j as t}from"./index-GT9guQyO.js";var e={},o=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,i=o(a()),l=t;u=e.default=(0,i.default)((0,l.jsx)("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2M1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2"}),"ShoppingCart");export{u as d};
@@ -1 +1 @@
1
- import{r as v,bX as w,bW as U,bR as S,bT as s,bY as _,bV as W,j as i,b_ as P,b$ as T,bQ as F,f5 as H,c2 as B}from"./index-DN8pXU_t.js";const k=v.createContext({}),V=v.createContext({});function Q(e){return w("MuiStep",e)}U("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const X=["active","children","className","component","completed","disabled","expanded","index","last"],Y=e=>{const{classes:t,orientation:o,alternativeLabel:n,completed:a}=e;return T({root:["root",o,n&&"alternativeLabel",a&&"completed"]},Q,t)},q=S("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),he=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStep"}),{active:a,children:r,className:b,component:c="div",completed:p,disabled:u,expanded:d=!1,index:l,last:m}=n,M=W(n,X),{activeStep:h,connector:L,alternativeLabel:y,orientation:I,nonLinear:R}=v.useContext(k);let[x=!1,j=!1,f=!1]=[a,p,u];h===l?x=a!==void 0?a:!0:!R&&h>l?j=p!==void 0?p:!0:!R&&h<l&&(f=u!==void 0?u:!0);const N=v.useMemo(()=>({index:l,last:m,expanded:d,icon:l+1,active:x,completed:j,disabled:f}),[l,m,d,x,j,f]),C=s({},n,{active:x,orientation:I,alternativeLabel:y,completed:j,disabled:f,expanded:d,component:c}),$=Y(C),z=i.jsxs(q,s({as:c,className:P($.root,b),ref:o,ownerState:C},M,{children:[L&&y&&l!==0?L:null,r]}));return i.jsx(V.Provider,{value:N,children:L&&!y&&l!==0?i.jsxs(v.Fragment,{children:[L,z]}):z})}),G=F(i.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),J=F(i.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function K(e){return w("MuiStepIcon",e)}const A=U("MuiStepIcon",["root","active","completed","error","text"]);var E;const O=["active","className","completed","error","icon"],Z=e=>{const{classes:t,active:o,completed:n,error:a}=e;return T({root:["root",o&&"active",n&&"completed",a&&"error"],text:["text"]},K,t)},D=S(H,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${A.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.error}`]:{color:(e.vars||e).palette.error.main}})),ee=S("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),te=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepIcon"}),{active:a=!1,className:r,completed:b=!1,error:c=!1,icon:p}=n,u=W(n,O),d=s({},n,{active:a,completed:b,error:c}),l=Z(d);if(typeof p=="number"||typeof p=="string"){const m=P(r,l.root);return c?i.jsx(D,s({as:J,className:m,ref:o,ownerState:d},u)):b?i.jsx(D,s({as:G,className:m,ref:o,ownerState:d},u)):i.jsxs(D,s({className:m,ref:o,ownerState:d},u,{children:[E||(E=i.jsx("circle",{cx:"12",cy:"12",r:"12"})),i.jsx(ee,{className:l.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:d,children:p})]}))}return p});function oe(e){return w("MuiStepLabel",e)}const g=U("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),ne=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],ae=e=>{const{classes:t,orientation:o,active:n,completed:a,error:r,disabled:b,alternativeLabel:c}=e;return T({root:["root",o,r&&"error",b&&"disabled",c&&"alternativeLabel"],label:["label",n&&"active",a&&"completed",r&&"error",b&&"disabled",c&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",a&&"completed",r&&"error",b&&"disabled",c&&"alternativeLabel"],labelContainer:["labelContainer",c&&"alternativeLabel"]},oe,t)},re=S("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})(({ownerState:e})=>s({display:"flex",alignItems:"center",[`&.${g.alternativeLabel}`]:{flexDirection:"column"},[`&.${g.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),le=S("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>s({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${g.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.alternativeLabel}`]:{marginTop:16},[`&.${g.error}`]:{color:(e.vars||e).palette.error.main}})),se=S("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${g.alternativeLabel}`]:{paddingRight:0}})),ie=S("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${g.alternativeLabel}`]:{textAlign:"center"}})),ce=v.forwardRef(function(t,o){var n;const a=_({props:t,name:"MuiStepLabel"}),{children:r,className:b,componentsProps:c={},error:p=!1,icon:u,optional:d,slotProps:l={},StepIconComponent:m,StepIconProps:M}=a,h=W(a,ne),{alternativeLabel:L,orientation:y}=v.useContext(k),{active:I,disabled:R,completed:x,icon:j}=v.useContext(V),f=u||j;let N=m;f&&!N&&(N=te);const C=s({},a,{active:I,alternativeLabel:L,completed:x,disabled:R,error:p,orientation:y}),$=ae(C),z=(n=l.label)!=null?n:c.label;return i.jsxs(re,s({className:P($.root,b),ref:o,ownerState:C},h,{children:[f||N?i.jsx(se,{className:$.iconContainer,ownerState:C,children:i.jsx(N,s({completed:x,active:I,error:p,icon:f},M))}):null,i.jsxs(ie,{className:$.labelContainer,ownerState:C,children:[r?i.jsx(le,s({ownerState:C},z,{className:P($.label,z==null?void 0:z.className),children:r})):null,d]})]}))});ce.muiName="StepLabel";function pe(e){return w("MuiStepConnector",e)}U("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const de=["className"],ve=e=>{const{classes:t,orientation:o,alternativeLabel:n,active:a,completed:r,disabled:b}=e,c={root:["root",o,n&&"alternativeLabel",a&&"active",r&&"completed",b&&"disabled"],line:["line",`line${B(o)}`]};return T(c,pe,t)},be=S("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),ue=S("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${B(o.orientation)}`]]}})(({ownerState:e,theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return s({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:o},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),me=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepConnector"}),{className:a}=n,r=W(n,de),{alternativeLabel:b,orientation:c="horizontal"}=v.useContext(k),{active:p,disabled:u,completed:d}=v.useContext(V),l=s({},n,{alternativeLabel:b,orientation:c,active:p,completed:d,disabled:u}),m=ve(l);return i.jsx(be,s({className:P(m.root,a),ref:o,ownerState:l},r,{children:i.jsx(ue,{className:m.line,ownerState:l})}))});function xe(e){return w("MuiStepper",e)}U("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const Se=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],Le=e=>{const{orientation:t,nonLinear:o,alternativeLabel:n,classes:a}=e;return T({root:["root",t,o&&"nonLinear",n&&"alternativeLabel"]},xe,a)},fe=S("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.nonLinear&&t.nonLinear]}})(({ownerState:e})=>s({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),Ce=i.jsx(me,{}),ye=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepper"}),{activeStep:a=0,alternativeLabel:r=!1,children:b,className:c,component:p="div",connector:u=Ce,nonLinear:d=!1,orientation:l="horizontal"}=n,m=W(n,Se),M=s({},n,{nonLinear:d,alternativeLabel:r,orientation:l,component:p}),h=Le(M),L=v.Children.toArray(b).filter(Boolean),y=L.map((R,x)=>v.cloneElement(R,s({index:x,last:x+1===L.length},R.props))),I=v.useMemo(()=>({activeStep:a,alternativeLabel:r,connector:u,nonLinear:d,orientation:l}),[a,r,u,d,l]);return i.jsx(k.Provider,{value:I,children:i.jsx(fe,s({as:p,ownerState:M,className:P(h.root,c),ref:o},m,{children:y}))})});export{ye as S,he as a,ce as b};
1
+ import{r as v,bX as w,bW as U,bR as S,bT as s,bY as _,bV as W,j as i,b_ as P,b$ as T,bQ as F,f5 as H,c2 as B}from"./index-GT9guQyO.js";const k=v.createContext({}),V=v.createContext({});function Q(e){return w("MuiStep",e)}U("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const X=["active","children","className","component","completed","disabled","expanded","index","last"],Y=e=>{const{classes:t,orientation:o,alternativeLabel:n,completed:a}=e;return T({root:["root",o,n&&"alternativeLabel",a&&"completed"]},Q,t)},q=S("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),he=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStep"}),{active:a,children:r,className:b,component:c="div",completed:p,disabled:u,expanded:d=!1,index:l,last:m}=n,M=W(n,X),{activeStep:h,connector:L,alternativeLabel:y,orientation:I,nonLinear:R}=v.useContext(k);let[x=!1,j=!1,f=!1]=[a,p,u];h===l?x=a!==void 0?a:!0:!R&&h>l?j=p!==void 0?p:!0:!R&&h<l&&(f=u!==void 0?u:!0);const N=v.useMemo(()=>({index:l,last:m,expanded:d,icon:l+1,active:x,completed:j,disabled:f}),[l,m,d,x,j,f]),C=s({},n,{active:x,orientation:I,alternativeLabel:y,completed:j,disabled:f,expanded:d,component:c}),$=Y(C),z=i.jsxs(q,s({as:c,className:P($.root,b),ref:o,ownerState:C},M,{children:[L&&y&&l!==0?L:null,r]}));return i.jsx(V.Provider,{value:N,children:L&&!y&&l!==0?i.jsxs(v.Fragment,{children:[L,z]}):z})}),G=F(i.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),J=F(i.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function K(e){return w("MuiStepIcon",e)}const A=U("MuiStepIcon",["root","active","completed","error","text"]);var E;const O=["active","className","completed","error","icon"],Z=e=>{const{classes:t,active:o,completed:n,error:a}=e;return T({root:["root",o&&"active",n&&"completed",a&&"error"],text:["text"]},K,t)},D=S(H,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${A.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.error}`]:{color:(e.vars||e).palette.error.main}})),ee=S("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),te=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepIcon"}),{active:a=!1,className:r,completed:b=!1,error:c=!1,icon:p}=n,u=W(n,O),d=s({},n,{active:a,completed:b,error:c}),l=Z(d);if(typeof p=="number"||typeof p=="string"){const m=P(r,l.root);return c?i.jsx(D,s({as:J,className:m,ref:o,ownerState:d},u)):b?i.jsx(D,s({as:G,className:m,ref:o,ownerState:d},u)):i.jsxs(D,s({className:m,ref:o,ownerState:d},u,{children:[E||(E=i.jsx("circle",{cx:"12",cy:"12",r:"12"})),i.jsx(ee,{className:l.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:d,children:p})]}))}return p});function oe(e){return w("MuiStepLabel",e)}const g=U("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),ne=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],ae=e=>{const{classes:t,orientation:o,active:n,completed:a,error:r,disabled:b,alternativeLabel:c}=e;return T({root:["root",o,r&&"error",b&&"disabled",c&&"alternativeLabel"],label:["label",n&&"active",a&&"completed",r&&"error",b&&"disabled",c&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",a&&"completed",r&&"error",b&&"disabled",c&&"alternativeLabel"],labelContainer:["labelContainer",c&&"alternativeLabel"]},oe,t)},re=S("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})(({ownerState:e})=>s({display:"flex",alignItems:"center",[`&.${g.alternativeLabel}`]:{flexDirection:"column"},[`&.${g.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),le=S("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>s({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${g.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.alternativeLabel}`]:{marginTop:16},[`&.${g.error}`]:{color:(e.vars||e).palette.error.main}})),se=S("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${g.alternativeLabel}`]:{paddingRight:0}})),ie=S("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${g.alternativeLabel}`]:{textAlign:"center"}})),ce=v.forwardRef(function(t,o){var n;const a=_({props:t,name:"MuiStepLabel"}),{children:r,className:b,componentsProps:c={},error:p=!1,icon:u,optional:d,slotProps:l={},StepIconComponent:m,StepIconProps:M}=a,h=W(a,ne),{alternativeLabel:L,orientation:y}=v.useContext(k),{active:I,disabled:R,completed:x,icon:j}=v.useContext(V),f=u||j;let N=m;f&&!N&&(N=te);const C=s({},a,{active:I,alternativeLabel:L,completed:x,disabled:R,error:p,orientation:y}),$=ae(C),z=(n=l.label)!=null?n:c.label;return i.jsxs(re,s({className:P($.root,b),ref:o,ownerState:C},h,{children:[f||N?i.jsx(se,{className:$.iconContainer,ownerState:C,children:i.jsx(N,s({completed:x,active:I,error:p,icon:f},M))}):null,i.jsxs(ie,{className:$.labelContainer,ownerState:C,children:[r?i.jsx(le,s({ownerState:C},z,{className:P($.label,z==null?void 0:z.className),children:r})):null,d]})]}))});ce.muiName="StepLabel";function pe(e){return w("MuiStepConnector",e)}U("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const de=["className"],ve=e=>{const{classes:t,orientation:o,alternativeLabel:n,active:a,completed:r,disabled:b}=e,c={root:["root",o,n&&"alternativeLabel",a&&"active",r&&"completed",b&&"disabled"],line:["line",`line${B(o)}`]};return T(c,pe,t)},be=S("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),ue=S("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${B(o.orientation)}`]]}})(({ownerState:e,theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return s({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:o},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),me=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepConnector"}),{className:a}=n,r=W(n,de),{alternativeLabel:b,orientation:c="horizontal"}=v.useContext(k),{active:p,disabled:u,completed:d}=v.useContext(V),l=s({},n,{alternativeLabel:b,orientation:c,active:p,completed:d,disabled:u}),m=ve(l);return i.jsx(be,s({className:P(m.root,a),ref:o,ownerState:l},r,{children:i.jsx(ue,{className:m.line,ownerState:l})}))});function xe(e){return w("MuiStepper",e)}U("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const Se=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],Le=e=>{const{orientation:t,nonLinear:o,alternativeLabel:n,classes:a}=e;return T({root:["root",t,o&&"nonLinear",n&&"alternativeLabel"]},xe,a)},fe=S("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.nonLinear&&t.nonLinear]}})(({ownerState:e})=>s({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),Ce=i.jsx(me,{}),ye=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepper"}),{activeStep:a=0,alternativeLabel:r=!1,children:b,className:c,component:p="div",connector:u=Ce,nonLinear:d=!1,orientation:l="horizontal"}=n,m=W(n,Se),M=s({},n,{nonLinear:d,alternativeLabel:r,orientation:l,component:p}),h=Le(M),L=v.Children.toArray(b).filter(Boolean),y=L.map((R,x)=>v.cloneElement(R,s({index:x,last:x+1===L.length},R.props))),I=v.useMemo(()=>({activeStep:a,alternativeLabel:r,connector:u,nonLinear:d,orientation:l}),[a,r,u,d,l]);return i.jsx(k.Provider,{value:I,children:i.jsx(fe,s({as:p,ownerState:M,className:P(h.root,c),ref:o},m,{children:y}))})});export{ye as S,he as a,ce as b};
@@ -0,0 +1,51 @@
1
+ import{r as a,j as e,P as n,s as $,b_ as E,aD as R,a7 as v,t as C,f1 as B}from"./index-GT9guQyO.js";import{d as T}from"./Search-C6ygXeam.js";import{d as I}from"./Clear-BOCwdIBr.js";const S=a.createContext({}),{Provider:L}=S;function A({children:t}){const[r,s]=a.useState([]),[l,u]=a.useState(!1),[i,h]=a.useState(!1),[p,o]=a.useState("Filter"),x={customButtons:r,setCustomButtons:s,filterLabel:p,setFilterLabel:o,loading:l,setLoading:u,disabled:i,setDisabled:h};return e.jsx(L,{value:x,children:t})}function N(){return a.useContext(S)}function y({search:t,options:r,searchText:s,searchTextUpdate:l,searchClose:u,onSearchOpen:i}){const{searchOpen:h,searchPlaceholder:p,searchAlwaysOpen:o}=r,[x,f]=a.useState(!!s||h||!1),[m,w]=a.useState(s),g=a.useRef(null),{loading:j}=N(),{searchDebounceTime:c}=r,d=o||x,k=()=>{f(!0),i(!0)},D=P=>{const{value:b}=P.currentTarget;c?(clearTimeout(g.current),w(b),g.current=setTimeout(()=>{l(b)},c)):l(b)},F=()=>{f(!1),u(),w(""),i(!1)};return e.jsxs(q,{className:E({"search-always-open":o}),children:[d?e.jsx("div",{className:"toolbar-search-icon-placeholder",children:e.jsx(T,{})}):e.jsx(R,{title:t,disableFocusListener:!0,children:e.jsx(v,{"aria-label":t,"data-testid":`${t}-iconButton`,disabled:r.search==="disabled",onClick:k,children:e.jsx(T,{})})}),e.jsxs("div",{className:`toolbar-search-area ${d?"toolbar-btn-show":""}`,children:[d&&!j&&e.jsx(C,{variant:"standard",spacing:2,onChange:D,value:c?m:s,placeholder:p||"",autoFocus:!o}),j&&e.jsx(C,{disabled:!0,variant:"standard",spacing:2,value:c?m:s})]}),!o&&e.jsx("div",{className:`toolbar-search-close ${d?"toolbar-btn-show":""}`,children:e.jsx(v,{onClick:F,"aria-label":"click to close the search box",children:e.jsx(I,{})})})]})}y.propTypes={search:n.string,searchText:n.string,onSearchOpen:n.func,options:n.object.isRequired,searchTextUpdate:n.func.isRequired,searchClose:n.func.isRequired};y.defaultProps={search:"",searchText:"",onSearchOpen:B};const q=$("div")`
2
+ display: flex;
3
+ align-items: center;
4
+ .toolbar-search-area {
5
+ width: 0;
6
+ transition: all ease 0.3s;
7
+ overflow: hidden;
8
+ .MuiFormControl-root {
9
+ width: inherit;
10
+ margin: 0 12px;
11
+ }
12
+ &.toolbar-btn-show {
13
+ width: 260px;
14
+ padding-left: 8px;
15
+
16
+ ${t=>t.theme.breakpoints.down("md")} {
17
+ width: 200px;
18
+ }
19
+
20
+ ${t=>t.theme.breakpoints.down("sm")} {
21
+ width: 180px;
22
+ }
23
+ &.small-textfield {
24
+ width: 200px;
25
+ }
26
+ }
27
+ }
28
+ .toolbar-search-close {
29
+ width: 0;
30
+ transition: all ease 0.3s;
31
+ overflow: hidden;
32
+ &.toolbar-btn-show {
33
+ width: 40px;
34
+ }
35
+ }
36
+ .toolbar-search-icon-placeholder {
37
+ display: flex;
38
+ justify-content: center;
39
+ align-items: center;
40
+ width: 40px;
41
+ height: 40px;
42
+ }
43
+ &.search-always-open {
44
+ .MuiFormControl-root {
45
+ margin: 0 12px 0 0;
46
+ }
47
+ .toolbar-btn-show {
48
+ padding-left: 0;
49
+ }
50
+ }
51
+ `;export{A as D,y as T,N as u};
@@ -1 +1 @@
1
- import{bW as j,bX as _,r as u,bR as U,bS as H,c2 as O,bT as g,dE as G,bV as P,fZ as X,bY as E,j as L,b_ as D,b$ as F}from"./index-DN8pXU_t.js";import{g as Y}from"./getValidReactChildren-CfH5w8vI.js";function Z(t){return _("MuiToggleButton",t)}const x=j("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),V=u.createContext({}),A=u.createContext(void 0);function q(t,o){return o===void 0||t===void 0?!1:Array.isArray(o)?o.indexOf(t)>=0:t===o}const I=["value"],J=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],K=t=>{const{classes:o,fullWidth:r,selected:a,disabled:f,size:c,color:b}=t,B={root:["root",a&&"selected",f&&"disabled",r&&"fullWidth",`size${O(c)}`,b]};return F(B,Z,o)},Q=U(H,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.root,o[`size${O(r.size)}`]]}})(({theme:t,ownerState:o})=>{let r=o.color==="standard"?t.palette.text.primary:t.palette[o.color].main,a;return t.vars&&(r=o.color==="standard"?t.vars.palette.text.primary:t.vars.palette[o.color].main,a=o.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[o.color].mainChannel),g({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},o.fullWidth&&{width:"100%"},{[`&.${x.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:G(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${x.selected}`]:{color:r,backgroundColor:t.vars?`rgba(${a} / ${t.vars.palette.action.selectedOpacity})`:G(r,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${a} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:G(r,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${a} / ${t.vars.palette.action.selectedOpacity})`:G(r,t.palette.action.selectedOpacity)}}}},o.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},o.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),at=u.forwardRef(function(o,r){const a=u.useContext(V),{value:f}=a,c=P(a,I),b=u.useContext(A),B=X(g({},c,{selected:q(o.value,f)}),o),v=E({props:B,name:"MuiToggleButton"}),{children:R,className:p,color:k="standard",disabled:$=!1,disableFocusRipple:s=!1,fullWidth:N=!1,onChange:C,onClick:i,selected:T,size:m="medium",value:h}=v,y=P(v,J),z=g({},v,{color:k,disabled:$,disableFocusRipple:s,fullWidth:N,size:m}),M=K(z),n=d=>{i&&(i(d,h),d.defaultPrevented)||C&&C(d,h)},l=b||"";return L.jsx(Q,g({className:D(c.className,M.root,p,l),disabled:$,focusRipple:!s,ref:r,onClick:n,onChange:C,value:h,ownerState:z,"aria-pressed":T},y,{children:R}))});function w(t){return _("MuiToggleButtonGroup",t)}const e=j("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),S=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],tt=t=>{const{classes:o,orientation:r,fullWidth:a,disabled:f}=t,c={root:["root",r==="vertical"&&"vertical",a&&"fullWidth"],grouped:["grouped",`grouped${O(r)}`,f&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return F(c,w,o)},ot=U("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[{[`& .${e.grouped}`]:o.grouped},{[`& .${e.grouped}`]:o[`grouped${O(r.orientation)}`]},{[`& .${e.firstButton}`]:o.firstButton},{[`& .${e.lastButton}`]:o.lastButton},{[`& .${e.middleButton}`]:o.middleButton},o.root,r.orientation==="vertical"&&o.vertical,r.fullWidth&&o.fullWidth]}})(({ownerState:t,theme:o})=>g({display:"inline-flex",borderRadius:(o.vars||o).shape.borderRadius},t.orientation==="vertical"&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${e.grouped}`]:g({},t.orientation==="horizontal"?{[`&.${e.selected} + .${e.grouped}.${e.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${e.selected} + .${e.grouped}.${e.selected}`]:{borderTop:0,marginTop:0}})},t.orientation==="horizontal"?{[`& .${e.firstButton},& .${e.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${e.lastButton},& .${e.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${e.firstButton},& .${e.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${e.lastButton},& .${e.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},t.orientation==="horizontal"?{[`& .${e.lastButton}.${x.disabled},& .${e.middleButton}.${x.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${e.lastButton}.${x.disabled},& .${e.middleButton}.${x.disabled}`]:{borderTop:"1px solid transparent"}})),st=u.forwardRef(function(o,r){const a=E({props:o,name:"MuiToggleButtonGroup"}),{children:f,className:c,color:b="standard",disabled:B=!1,exclusive:v=!1,fullWidth:R=!1,onChange:p,orientation:k="horizontal",size:$="medium",value:s}=a,N=P(a,S),C=g({},a,{disabled:B,fullWidth:R,orientation:k,size:$}),i=tt(C),T=u.useCallback((n,l)=>{if(!p)return;const d=s&&s.indexOf(l);let W;s&&d>=0?(W=s.slice(),W.splice(d,1)):W=s?s.concat(l):[l],p(n,W)},[p,s]),m=u.useCallback((n,l)=>{p&&p(n,s===l?null:l)},[p,s]),h=u.useMemo(()=>({className:i.grouped,onChange:v?m:T,value:s,size:$,fullWidth:R,color:b,disabled:B}),[i.grouped,v,m,T,s,$,R,b,B]),y=Y(f),z=y.length,M=n=>{const l=n===0,d=n===z-1;return l&&d?"":l?i.firstButton:d?i.lastButton:i.middleButton};return L.jsx(ot,g({role:"group",className:D(i.root,c),ref:r,ownerState:C},N,{children:L.jsx(V.Provider,{value:h,children:y.map((n,l)=>L.jsx(A.Provider,{value:M(l),children:n},l))})}))});export{st as T,at as a};
1
+ import{bW as j,bX as _,r as u,bR as U,bS as H,c2 as O,bT as g,dE as G,bV as P,fZ as X,bY as E,j as L,b_ as D,b$ as F}from"./index-GT9guQyO.js";import{g as Y}from"./getValidReactChildren-CUL3M47p.js";function Z(t){return _("MuiToggleButton",t)}const x=j("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),V=u.createContext({}),A=u.createContext(void 0);function q(t,o){return o===void 0||t===void 0?!1:Array.isArray(o)?o.indexOf(t)>=0:t===o}const I=["value"],J=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],K=t=>{const{classes:o,fullWidth:r,selected:a,disabled:f,size:c,color:b}=t,B={root:["root",a&&"selected",f&&"disabled",r&&"fullWidth",`size${O(c)}`,b]};return F(B,Z,o)},Q=U(H,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.root,o[`size${O(r.size)}`]]}})(({theme:t,ownerState:o})=>{let r=o.color==="standard"?t.palette.text.primary:t.palette[o.color].main,a;return t.vars&&(r=o.color==="standard"?t.vars.palette.text.primary:t.vars.palette[o.color].main,a=o.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[o.color].mainChannel),g({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},o.fullWidth&&{width:"100%"},{[`&.${x.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:G(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${x.selected}`]:{color:r,backgroundColor:t.vars?`rgba(${a} / ${t.vars.palette.action.selectedOpacity})`:G(r,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${a} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:G(r,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${a} / ${t.vars.palette.action.selectedOpacity})`:G(r,t.palette.action.selectedOpacity)}}}},o.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},o.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),at=u.forwardRef(function(o,r){const a=u.useContext(V),{value:f}=a,c=P(a,I),b=u.useContext(A),B=X(g({},c,{selected:q(o.value,f)}),o),v=E({props:B,name:"MuiToggleButton"}),{children:R,className:p,color:k="standard",disabled:$=!1,disableFocusRipple:s=!1,fullWidth:N=!1,onChange:C,onClick:i,selected:T,size:m="medium",value:h}=v,y=P(v,J),z=g({},v,{color:k,disabled:$,disableFocusRipple:s,fullWidth:N,size:m}),M=K(z),n=d=>{i&&(i(d,h),d.defaultPrevented)||C&&C(d,h)},l=b||"";return L.jsx(Q,g({className:D(c.className,M.root,p,l),disabled:$,focusRipple:!s,ref:r,onClick:n,onChange:C,value:h,ownerState:z,"aria-pressed":T},y,{children:R}))});function w(t){return _("MuiToggleButtonGroup",t)}const e=j("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),S=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],tt=t=>{const{classes:o,orientation:r,fullWidth:a,disabled:f}=t,c={root:["root",r==="vertical"&&"vertical",a&&"fullWidth"],grouped:["grouped",`grouped${O(r)}`,f&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return F(c,w,o)},ot=U("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[{[`& .${e.grouped}`]:o.grouped},{[`& .${e.grouped}`]:o[`grouped${O(r.orientation)}`]},{[`& .${e.firstButton}`]:o.firstButton},{[`& .${e.lastButton}`]:o.lastButton},{[`& .${e.middleButton}`]:o.middleButton},o.root,r.orientation==="vertical"&&o.vertical,r.fullWidth&&o.fullWidth]}})(({ownerState:t,theme:o})=>g({display:"inline-flex",borderRadius:(o.vars||o).shape.borderRadius},t.orientation==="vertical"&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${e.grouped}`]:g({},t.orientation==="horizontal"?{[`&.${e.selected} + .${e.grouped}.${e.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${e.selected} + .${e.grouped}.${e.selected}`]:{borderTop:0,marginTop:0}})},t.orientation==="horizontal"?{[`& .${e.firstButton},& .${e.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${e.lastButton},& .${e.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${e.firstButton},& .${e.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${e.lastButton},& .${e.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},t.orientation==="horizontal"?{[`& .${e.lastButton}.${x.disabled},& .${e.middleButton}.${x.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${e.lastButton}.${x.disabled},& .${e.middleButton}.${x.disabled}`]:{borderTop:"1px solid transparent"}})),st=u.forwardRef(function(o,r){const a=E({props:o,name:"MuiToggleButtonGroup"}),{children:f,className:c,color:b="standard",disabled:B=!1,exclusive:v=!1,fullWidth:R=!1,onChange:p,orientation:k="horizontal",size:$="medium",value:s}=a,N=P(a,S),C=g({},a,{disabled:B,fullWidth:R,orientation:k,size:$}),i=tt(C),T=u.useCallback((n,l)=>{if(!p)return;const d=s&&s.indexOf(l);let W;s&&d>=0?(W=s.slice(),W.splice(d,1)):W=s?s.concat(l):[l],p(n,W)},[p,s]),m=u.useCallback((n,l)=>{p&&p(n,s===l?null:l)},[p,s]),h=u.useMemo(()=>({className:i.grouped,onChange:v?m:T,value:s,size:$,fullWidth:R,color:b,disabled:B}),[i.grouped,v,m,T,s,$,R,b,B]),y=Y(f),z=y.length,M=n=>{const l=n===0,d=n===z-1;return l&&d?"":l?i.firstButton:d?i.lastButton:i.middleButton};return L.jsx(ot,g({role:"group",className:D(i.root,c),ref:r,ownerState:C},N,{children:L.jsx(V.Provider,{value:h,children:y.map((n,l)=>L.jsx(A.Provider,{value:M(l),children:n},l))})}))});export{st as T,at as a};
@@ -1 +1 @@
1
- import{aR as r,aS as a,j as t}from"./index-DN8pXU_t.js";var e={},i=a;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,o=i(r()),d=t;u=e.default=(0,o.default)((0,d.jsx)("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}),"Verified");export{u as d};
1
+ import{aR as r,aS as a,j as t}from"./index-GT9guQyO.js";var e={},i=a;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,o=i(r()),d=t;u=e.default=(0,o.default)((0,d.jsx)("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}),"Verified");export{u as d};
@@ -0,0 +1 @@
1
+ import{aR as N,aS as _,j as S,dm as D}from"./index-GT9guQyO.js";var y={},C=_;Object.defineProperty(y,"__esModule",{value:!0});var T=y.default=void 0,L=C(N()),V=S;T=y.default=(0,L.default)((0,V.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove");function $(r,t,e){return(t=D(t))in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function E(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),e.push.apply(e,n)}return e}function j(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?E(Object(e),!0).forEach(function(n){$(r,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):E(Object(e)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n))})}return r}function u(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var P=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),d=function(){return Math.random().toString(36).substring(7).split("").join(".")},x={INIT:"@@redux/INIT"+d(),REPLACE:"@@redux/REPLACE"+d(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+d()}};function K(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function q(r,t,e){var n;if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error(u(0));if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error(u(1));return e(q)(r,t)}if(typeof r!="function")throw new Error(u(2));var i=r,c=t,p=[],a=p,f=!1;function w(){a===p&&(a=p.slice())}function m(){if(f)throw new Error(u(3));return c}function h(o){if(typeof o!="function")throw new Error(u(4));if(f)throw new Error(u(5));var l=!0;return w(),a.push(o),function(){if(l){if(f)throw new Error(u(6));l=!1,w();var s=a.indexOf(o);a.splice(s,1),p=null}}}function b(o){if(!K(o))throw new Error(u(7));if(typeof o.type>"u")throw new Error(u(8));if(f)throw new Error(u(9));try{f=!0,c=i(c,o)}finally{f=!1}for(var l=p=a,v=0;v<l.length;v++){var s=l[v];s()}return o}function A(o){if(typeof o!="function")throw new Error(u(10));i=o,b({type:x.REPLACE})}function I(){var o,l=h;return o={subscribe:function(s){if(typeof s!="object"||s===null)throw new Error(u(11));function O(){s.next&&s.next(m())}O();var M=l(O);return{unsubscribe:M}}},o[P]=function(){return this},o}return b({type:x.INIT}),n={dispatch:b,subscribe:h,getState:m,replaceReducer:A},n[P]=I,n}function R(r,t){return function(){return t(r.apply(this,arguments))}}function G(r,t){if(typeof r=="function")return R(r,t);if(typeof r!="object"||r===null)throw new Error(u(16));var e={};for(var n in r){var i=r[n];typeof i=="function"&&(e[n]=R(i,t))}return e}function z(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function J(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return function(n){return function(){var i=n.apply(void 0,arguments),c=function(){throw new Error(u(15))},p={getState:i.getState,dispatch:function(){return c.apply(void 0,arguments)}},a=t.map(function(f){return f(p)});return c=z.apply(void 0,a)(i.dispatch),j(j({},i),{},{dispatch:c})}}}var g={},H=_;Object.defineProperty(g,"__esModule",{value:!0});var B=g.default=void 0,U=H(N()),W=S;B=g.default=(0,U.default)((0,W.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn");export{y as R,g as V,$ as _,J as a,G as b,q as c,B as d,z as e,T as f};
@@ -1 +1 @@
1
- import{aR as t,aS as a,j as r}from"./index-DN8pXU_t.js";var e={},i=a;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,v=i(t()),o=r;u=e.default=(0,v.default)((0,o.jsx)("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList");export{u as d};
1
+ import{aR as t,aS as a,j as r}from"./index-GT9guQyO.js";var e={},i=a;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,v=i(t()),o=r;u=e.default=(0,v.default)((0,o.jsx)("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList");export{u as d};
@@ -1 +1 @@
1
- import{j_ as V,r as L,j$ as W,cn as R,fx as A,k0 as E,k1 as I,cl as T,hH as N,he as P,eV as S,fC as $}from"./index-DN8pXU_t.js";var z=function(r,a){return r===void 0&&(r=[]),a===void 0&&(a=[]),V(r,a)},J=function(r,a,n){var e=L.useRef(),t=L.useRef(0);z(a,e.current)||(t.current+=1),e.current=a,W(r,[t.current],n)},Q=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),H={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:Q?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},K={ctrl:function(r){return r.ctrlKey},shift:function(r){return r.shiftKey},alt:function(r){return r.altKey},meta:function(r){return r.type==="keyup"?H.meta.includes(r.keyCode):r.metaKey}};function B(r){return I(r)||T(r)}function U(r){var a=Object.keys(K).reduce(function(n,e){return K[e](r)?n+1:n},0);return[16,17,18,91,92].includes(r.keyCode)?a:a+1}function j(r,a,n){var e,t;if(!r.key)return!1;if(T(a))return r.keyCode===a?a:!1;var u=a.split("."),o=0;try{for(var l=E(u),d=l.next();!d.done;d=l.next()){var p=d.value,y=K[p],g=H[p.toLowerCase()];(y&&y(r)||g&&g===r.keyCode)&&o++}}catch(b){e={error:b}}finally{try{d&&!d.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}return n?o===u.length&&U(r)===u.length?a:!1:o===u.length?a:!1}function X(r,a){return N(r)?r:B(r)?function(n){return j(n,r,a)}:Array.isArray(r)?function(n){return r.find(function(e){return j(n,e,a)})}:function(){return!!r}}var Y=["keydown"];function _(r,a,n){var e=n||{},t=e.events,u=t===void 0?Y:t,o=e.target,l=e.exactMatch,d=l===void 0?!1:l,p=e.useCapture,y=p===void 0?!1:p,g=R(a),b=R(r);J(function(){var k,C,x,i=A(o,window);if(i){var q=function(f){var v,h=X(b.current,d),c=h(f),s=B(c)?c:f.key;if(c)return(v=g.current)===null||v===void 0?void 0:v.call(g,f,s)};try{for(var w=E(u),m=w.next();!m.done;m=w.next()){var G=m.value;(x=i==null?void 0:i.addEventListener)===null||x===void 0||x.call(i,G,q,y)}}catch(f){k={error:f}}finally{try{m&&!m.done&&(C=w.return)&&C.call(w)}finally{if(k)throw k.error}}return function(){var f,v,h;try{for(var c=E(u),s=c.next();!s.done;s=c.next()){var M=s.value;(h=i==null?void 0:i.removeEventListener)===null||h===void 0||h.call(i,M,q,y)}}catch(O){f={error:O}}finally{try{s&&!s.done&&(v=c.return)&&v.call(c)}finally{if(f)throw f.error}}}}},[u],o)}function Z(r,a,n,e){for(var t=-1,u=r==null?0:r.length;++t<u;){var o=r[t];a(e,o,n(o),r)}return e}function D(r,a,n,e){return P(r,function(t,u,o){a(e,t,n(t),o)}),e}function rr(r,a){return function(n,e){var t=$(n)?Z:D,u=a?a():{};return t(n,r,S(e),u)}}export{rr as c,_ as u};
1
+ import{jX as V,r as q,jY as W,cn as L,fx as A,jZ as E,j_ as I,cl as T,hE as N,hc as P,eV as S,fC as X}from"./index-GT9guQyO.js";var Y=function(r,a){return r===void 0&&(r=[]),a===void 0&&(a=[]),V(r,a)},Z=function(r,a,n){var e=q.useRef(),t=q.useRef(0);Y(a,e.current)||(t.current+=1),e.current=a,W(r,[t.current],n)},z=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),B={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:z?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},K={ctrl:function(r){return r.ctrlKey},shift:function(r){return r.shiftKey},alt:function(r){return r.altKey},meta:function(r){return r.type==="keyup"?B.meta.includes(r.keyCode):r.metaKey}};function G(r){return I(r)||T(r)}function J(r){var a=Object.keys(K).reduce(function(n,e){return K[e](r)?n+1:n},0);return[16,17,18,91,92].includes(r.keyCode)?a:a+1}function R(r,a,n){var e,t;if(!r.key)return!1;if(T(a))return r.keyCode===a?a:!1;var u=a.split("."),o=0;try{for(var l=E(u),d=l.next();!d.done;d=l.next()){var p=d.value,y=K[p],g=B[p.toLowerCase()];(y&&y(r)||g&&g===r.keyCode)&&o++}}catch(b){e={error:b}}finally{try{d&&!d.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}return n?o===u.length&&J(r)===u.length?a:!1:o===u.length?a:!1}function Q(r,a){return N(r)?r:G(r)?function(n){return R(n,r,a)}:Array.isArray(r)?function(n){return r.find(function(e){return R(n,e,a)})}:function(){return!!r}}var U=["keydown"];function _(r,a,n){var e=n||{},t=e.events,u=t===void 0?U:t,o=e.target,l=e.exactMatch,d=l===void 0?!1:l,p=e.useCapture,y=p===void 0?!1:p,g=L(a),b=L(r);Z(function(){var k,C,x,i=A(o,window);if(i){var j=function(f){var v,h=Q(b.current,d),c=h(f),s=G(c)?c:f.key;if(c)return(v=g.current)===null||v===void 0?void 0:v.call(g,f,s)};try{for(var w=E(u),m=w.next();!m.done;m=w.next()){var H=m.value;(x=i==null?void 0:i.addEventListener)===null||x===void 0||x.call(i,H,j,y)}}catch(f){k={error:f}}finally{try{m&&!m.done&&(C=w.return)&&C.call(w)}finally{if(k)throw k.error}}return function(){var f,v,h;try{for(var c=E(u),s=c.next();!s.done;s=c.next()){var M=s.value;(h=i==null?void 0:i.removeEventListener)===null||h===void 0||h.call(i,M,j,y)}}catch(O){f={error:O}}finally{try{s&&!s.done&&(v=c.return)&&v.call(c)}finally{if(f)throw f.error}}}}},[u],o)}function $(r,a,n,e){for(var t=-1,u=r==null?0:r.length;++t<u;){var o=r[t];a(e,o,n(o),r)}return e}function D(r,a,n,e){return P(r,function(t,u,o){a(e,t,n(t),o)}),e}function rr(r,a){return function(n,e){var t=X(n)?$:D,u=a?a():{};return t(n,r,S(e),u)}}export{rr as c,_ as u};
@@ -1 +1 @@
1
- import{r as c,j as e,a7 as P,b5 as E,bj as b,U as v,aK as I,ad as D,P as l,n as T}from"./index-DN8pXU_t.js";import{d as k}from"./MoreHoriz-CeBLlMmN.js";function p({actions:u,size:m,...d}){const[o,r]=c.useState(null),y=!!o,f=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(t.currentTarget)},a=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(null)};return e.jsxs(z,{...d,children:[e.jsx(P,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:f,size:m,children:e.jsx(k,{})}),e.jsx(E,{id:"actions-menu","data-cy":"actions-menu",anchorEl:o,keepMounted:!0,open:y,onClose:a,slotProps:{paper:{}},children:u.map((t,s)=>{if(typeof t=="function")return t({close:a});if(t.separator)return e.jsx(b,{},`separator-${s}`);const{icon:h,text:x,render:A,onClick:n,disabled:j=!1,...g}=t;return c.createElement(v,{...g,disabled:j,dense:!0,onClick:async i=>{i.stopPropagation(),await(n==null?void 0:n(i)),a()},key:s,"data-cy":`actions-menu-${s}`},e.jsx(I,{style:{minWidth:24,marginRight:8},children:h}),e.jsx(D,{primary:x}))})})]})}p.propTypes={actions:l.array,size:l.oneOf(["small","medium","large"])};p.defaultProps={actions:[],size:"small"};const z=T.div``;export{p as A};
1
+ import{r as c,j as e,a7 as P,b5 as E,bj as b,U as v,aK as I,ad as D,P as l,n as T}from"./index-GT9guQyO.js";import{d as k}from"./MoreHoriz-jKC15aE3.js";function p({actions:u,size:m,...d}){const[o,r]=c.useState(null),y=!!o,f=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(t.currentTarget)},a=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(null)};return e.jsxs(z,{...d,children:[e.jsx(P,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:f,size:m,children:e.jsx(k,{})}),e.jsx(E,{id:"actions-menu","data-cy":"actions-menu",anchorEl:o,keepMounted:!0,open:y,onClose:a,slotProps:{paper:{}},children:u.map((t,s)=>{if(typeof t=="function")return t({close:a});if(t.separator)return e.jsx(b,{},`separator-${s}`);const{icon:h,text:x,render:A,onClick:n,disabled:j=!1,...g}=t;return c.createElement(v,{...g,disabled:j,dense:!0,onClick:async i=>{i.stopPropagation(),await(n==null?void 0:n(i)),a()},key:s,"data-cy":`actions-menu-${s}`},e.jsx(I,{style:{minWidth:24,marginRight:8},children:h}),e.jsx(D,{primary:x}))})})]})}p.propTypes={actions:l.array,size:l.oneOf(["small","medium","large"])};p.defaultProps={actions:[],size:"small"};const z=T.div``;export{p as A};
@@ -1,4 +1,4 @@
1
- import{bC as Ve,bD as qe,bE as Ne,bF as ke,bG as le,bH as He,bI as Ge,bJ as Ke,bK as Fe,bL as We,r as p,j as n,P as R,a5 as Xe,aR as y,aS as C,bM as Ye,n as Je,bt as Ze,f as ge,H as E,b as H,bN as G,a7 as Qe,b5 as et,X as tt,J as nt,bj as rt,U as at,aK as ot,C as ce,ad as st,ah as ue,B as it,A as K,k as z,a_ as de,bd as me,y as V,ae as lt,aY as ct,Y as ut,bO as dt,bP as mt}from"./index-DN8pXU_t.js";import{_ as pe}from"./useLocalStorage-C_tHZqD7.js";import{d as pt}from"./MoreVert-BwxCbnIH.js";import{d as ft}from"./Delete-CKdujHHN.js";import{g as fe}from"./get-safe-url-Dvv7FqJf.js";import{B as vt}from"./ButtonGroup-BjciiYu8.js";import{R as ht,a as ve}from"./status-BtRCgN5n.js";import{u as gt}from"./url-evaluation-45LESH3M.js";import{w as xt}from"./permission-BVUQ32OT.js";var St=200;function _t(e,a,c,l){var o=-1,u=qe,S=!0,_=e.length,s=[],f=a.length;if(!_)return s;l?(u=Ne,S=!1):a.length>=St&&(u=ke,S=!1,a=new Ve(a));e:for(;++o<_;){var m=e[o],h=m;if(m=l||m!==0?m:0,S&&h===h){for(var $=f;$--;)if(a[$]===h)continue e;s.push(m)}else u(a,h,l)||s.push(m)}return s}function jt(e,a,c){var l=e.length;if(l<2)return l?le(e[0]):[];for(var o=-1,u=Array(l);++o<l;)for(var S=e[o],_=-1;++_<l;)_!=o&&(u[o]=_t(u[o]||S,e[_],a,c));return le(He(u),a,c)}var Dt=Ge(function(e){var a=Ke(e);return a=typeof a=="function"?a:void 0,jt(Fe(e,We),void 0,a)});const xe=p.createContext({});function Se({children:e,type:a}){const[c,l]=p.useState([]),o=p.useRef([]),u=s=>{if(!o.current.includes(s)){const f=[...o.current,s];l(f),o.current=f}},S=s=>{if(o.current.includes(s)){const f=o.current.filter(m=>m!==s);l(f),o.current=f}},_=s=>{const f=c.filter(h=>s.find($=>$===h));Dt(f,c).forEach(h=>S(h))};return n.jsx(xe.Provider,{value:{type:a,deletingBlocklets:c,addDeletingDid:u,removeDeletingDid:S,matchDeletingDid:_},children:e})}Se.propTypes={type:R.string,children:R.node.isRequired};Se.defaultProps={type:"blocklets"};function un(){return p.useContext(xe)}const Rt=(e,a)=>{if(!e)return"";if(!a)return e;const c=new URL(e),l=new URLSearchParams(c.searchParams),o=new URL(Xe(c.origin,a));return o.search=l.toString(),o.toString()};var F={},yt=C;Object.defineProperty(F,"__esModule",{value:!0});var _e=F.default=void 0,Ct=yt(y()),$t=n;_e=F.default=(0,Ct.default)((0,$t.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");var W={},Lt=C;Object.defineProperty(W,"__esModule",{value:!0});var je=W.default=void 0,wt=Lt(y()),bt=n;je=W.default=(0,wt.default)((0,bt.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var X={},Et=C;Object.defineProperty(X,"__esModule",{value:!0});var De=X.default=void 0,Pt=Et(y()),Bt=n;De=X.default=(0,Pt.default)((0,Bt.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var Y={},At=C;Object.defineProperty(Y,"__esModule",{value:!0});var Re=Y.default=void 0,Mt=At(y()),It=n;Re=Y.default=(0,Mt.default)((0,It.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var J={},Tt=C;Object.defineProperty(J,"__esModule",{value:!0});var ye=J.default=void 0,Ot=Tt(y()),Ut=n;ye=J.default=(0,Ot.default)((0,Ut.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var Z={},zt=C;Object.defineProperty(Z,"__esModule",{value:!0});var Ce=Z.default=void 0,Vt=zt(y()),qt=n;Ce=Z.default=(0,Vt.default)((0,qt.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt");var Q={},Nt=C;Object.defineProperty(Q,"__esModule",{value:!0});var $e=Q.default=void 0,kt=Nt(y()),Ht=n;$e=Q.default=(0,kt.default)((0,Ht.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var ee={},Gt=C;Object.defineProperty(ee,"__esModule",{value:!0});var Le=ee.default=void 0,Kt=Gt(y()),Ft=n;Le=ee.default=(0,Kt.default)((0,Ft.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-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"NotInterested");var te={},Wt=C;Object.defineProperty(te,"__esModule",{value:!0});var we=te.default=void 0,Xt=Wt(y()),Yt=n;we=te.default=(0,Xt.default)((0,Yt.jsx)("path",{d:"m18.25 7.6-5.5-3.18c-.46-.27-1.04-.27-1.5 0L5.75 7.6c-.46.27-.75.76-.75 1.3v6.35c0 .54.29 1.03.75 1.3l5.5 3.18c.46.27 1.04.27 1.5 0l5.5-3.18c.46-.27.75-.76.75-1.3V8.9c0-.54-.29-1.03-.75-1.3M7 14.96v-4.62l4 2.32v4.61zm5-4.03L8 8.61l4-2.31 4 2.31zm1 6.34v-4.61l4-2.32v4.62zM7 2H3.5C2.67 2 2 2.67 2 3.5V7h2V4h3zm10 0h3.5c.83 0 1.5.67 1.5 1.5V7h-2V4h-3zM7 22H3.5c-.83 0-1.5-.67-1.5-1.5V17h2v3h3zm10 0h3.5c.83 0 1.5-.67 1.5-1.5V17h-2v3h-3z"}),"ViewInAr");const P={Start:_e,Stop:je,Restart:De,Reload:Re,Remove:ft,Config:ye,Log:Ce,Group:$e,Cancel:Le,Dashboard:Ye,Overview:we},Jt="internal",Zt="external";function ne({blocklet:e,onStart:a,onComplete:c,variant:l,hasPermission:o,getComponentUrl:u,useBlockletUrlEvaluation:S,..._}){const s=Ze(),[f,m]=p.useState(null),[h,$]=p.useState(null),[B,A]=p.useState(!1),[d,q]=p.useState(null),{t:r}=p.useContext(ge),[be]=pe("skip-blocklet-setup",!1),{loading:Ee,recommendedUrl:N}=S(e),[Pe]=pe("blocklet-type-filter",Jt),re=E.isInProgress(e.status),[ae,oe]=p.useState(!1);p.useEffect(()=>{var i,v;if(!(e!=null&&e.controller))return;oe(((v=(i=e==null?void 0:e.controller)==null?void 0:i.status)==null?void 0:v.value)===H.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var g,D,L;try{const x=await s.api.getLauncherSession({input:{launcherSessionId:(g=e==null?void 0:e.controller)==null?void 0:g.launcherSessionId,launcherUrl:(D=e==null?void 0:e.controller)==null?void 0:D.launcherUrl}});if(x!=null&&x.error){console.error("get launcher session failed",x.error);return}oe([K.LAUNCH_SESSION_STATUS.overdue,K.LAUNCH_SESSION_STATUS.canceled,K.LAUNCH_SESSION_STATUS.terminated].includes((L=x==null?void 0:x.launcherSession)==null?void 0:L.status))}catch(x){console.error("call getLauncherSession error",x)}})()},[]);const{inService:k}=s,M=(t,i,v=!1)=>async()=>{const g=async T=>{var U;a({action:t,blocklet:e}),A(!0),$(t);let O=!1;try{if(t==="remove")await i(T);else if(t==="start"){if(!E.hasRunnableComponent(e)){V.error(r("blocklet.noComponent"));return}if(!k&&!be&&!((U=e.settings)!=null&&U.initialized)&&e.mode!==H.BLOCKLET_MODES.DEVELOPMENT){if(!N||!me(N)){V.error(r("blocklet.gotoVisitError"));return}const j=lt(s.info),ie=new URL(N);ie.searchParams.set("serverUrl",j),window.open(fe(ie.href,{allowDomains:null})),c({action:t,blocklet:e});return}const w=e.children.filter(j=>!E.isInProgress(j.status)&&j.status!=="running").map(j=>j.meta.did),b={did:e.meta.did,componentDids:w};await i({input:b})}else if(["stop","restart","reload"].includes(t)){const w=e.children.filter(j=>j.status==="running").map(j=>j.meta.did),b={did:e.meta.did,componentDids:w};await i({input:b})}else{const w={did:e.meta.did};await i({input:w})}t==="remove"?O=!0:await ct(1e3),t==="reload"&&V.success(r("blocklet.reloadSuccess")),q(null),c({action:t,blocklet:e})}catch(w){const b=`Blocklet ${t} failed: ${ut(w)}`;throw c({action:t,blocklet:e,error:new Error(b)}),new Error(b)}finally{O||A(!1)}},D=()=>{A(!1),q(null)},L=E.getDisplayName(e,!0),x=e.mode===H.BLOCKLET_MODES.DEVELOPMENT?{description:()=>n.jsx(z,{component:"div",children:n.jsx(z,{gutterBottom:!0,children:r("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(T,O)=>n.jsxs(z,{component:"div",children:[n.jsx(z,{gutterBottom:!0,children:r("blocklet.action.removeApplicationDescription")}),n.jsxs(ht,{name:"removeType",value:T.removeType,onChange:U=>O({...T,removeType:U.target.value}),children:[n.jsx(de,{value:"backup",control:n.jsx(ve,{}),label:r("blocklet.action.removeApplicationAfterBackup")}),n.jsx(de,{value:"complete",control:n.jsx(ve,{}),label:r("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},ze={stop:{title:`${r("common.stop")} ${L}`,description:r("blocklet.action.stopDescription"),confirm:r("blocklet.action.confirmStop"),cancel:r("common.cancel"),onConfirm:g,onCancel:D},restart:{title:`${r("common.restart")} ${L}`,description:r("blocklet.action.restartDescription"),confirm:r("blocklet.action.confirmRestart"),cancel:r("common.cancel"),onConfirm:g,onCancel:D},remove:{title:`${r("common.remove")} ${L}`,confirm:r("blocklet.action.confirmRemove"),cancel:r("common.cancel"),onConfirm:g,onCancel:D,...x},cancelDownload:{title:`${r("common.cancel")}`,description:r("blocklet.action.cancelDownloadDescription",{name:L}),confirm:r("common.confirm"),cancel:r("common.cancel"),onConfirm:g,onCancel:D}};v?q(ze[t]):await g()},Be=!!f,Ae=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}m(t.currentTarget)},Me=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}m(null)},se=async(t,i)=>{try{i.stopPropagation(),i.preventDefault()}catch{}if(typeof t.handler=="function")try{A(!0),$(t.action),await t.handler()}catch(v){console.error(`Blocklet ${t.name} failed: `,v)}finally{A(!1),m(null)}else m(null)},Ie=!k&&E.isDeletableBlocklet(e)?{action:"remove",icon:P.Remove,name:r("common.remove"),handler:M("remove",async({removeType:t})=>{t==="backup"&&await s.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await s.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:re}:null,Te={action:"remove",icon:({sx:t,...i})=>n.jsx(P.Cancel,{sx:{...t,paddingRight:"2px",zoom:.95},...i}),name:r("common.cancel"),handler:M("cancelDownload",s.api.cancelDownloadBlocklet,!0)},Oe=E.getAppMissingConfigs(e),Ue=()=>{var g;const t=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),i=u==null?void 0:u({mountPoint:t,blocklet:e});if(!i||!me(i)){V.error(r("blocklet.gotoVisitError"));return}const v=(g=e==null?void 0:e.site)==null?void 0:g.domainAliases;window.open(fe(Rt(i,".well-known/service/admin"),{allowDomains:v==null?void 0:v.map(D=>D.value)}))};let I=[{action:"start",icon:P.Start,inExternal:!0,name:r("common.start"),handler:M("start",s.api.startBlocklet),disabled:ae||e.children.every(t=>t.status==="running")||G(e.status)||Ee||re},{action:"stop",icon:P.Stop,inExternal:!0,name:r("common.stop"),handler:M("stop",s.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",inExternal:!0,icon:P.Restart,name:r("common.restart"),handler:M("restart",s.api.restartBlocklet,!0),disabled:ae||e.status!=="running"},G(e.status)?Te:Ie,{separator:!0},k?null:{action:"dashboard",icon:({style:t,...i})=>n.jsx(P.Dashboard,{...i,style:{...t,width:"26px",height:"26px",paddingRight:"3px"}}),name:r("sidebar.dashboard"),handler:Ue}].filter(Boolean);return Pe===Zt&&(I=I.filter(t=>t.inExternal)),l==="menu"?n.jsxs(he,{"data-cy":"blocklet-actions",children:[n.jsx(Qe,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:Ae,size:"small",disabled:!o||!G(e.status)&&B,children:n.jsx(pt,{})}),n.jsxs(et,{id:"actions-menu",anchorEl:f,keepMounted:!0,open:Be,onClose:Me,PaperProps:{},children:[Oe.length>0&&n.jsxs(tt,{style:{maxWidth:"400px"},severity:"error",children:[r("blocklet.config.missingRequired"),n.jsx("br",{}),n.jsx(nt,{to:`/blocklets/${e.meta.did}/components`,children:r("blocklet.config.gotoFix")})]}),I.map((t,i)=>t.separator?n.jsx(rt,{},`separator-${i}`):n.jsxs(at,{dense:!0,onClick:v=>se(t,v),disabled:B||t.disabled,"data-cy":`${t.action}-blocklet`,children:[n.jsx(ot,{style:{minWidth:24},children:h===t.action&&B?n.jsx(ce,{size:16,sx:{marginRight:1}}):n.jsx(t.icon,{fontSize:"small"})}),n.jsx(st,{primary:t.name})]},t.name))]}),d&&n.jsx(ue,{title:d.title,description:d.description,confirm:d.confirm,cancel:d.cancel,params:d.params,onConfirm:d.onConfirm,onCancel:d.onCancel})]}):n.jsxs(he,{"data-cy":"blocklet-actions",..._,children:[n.jsx(vt,{children:I.filter(t=>!t.separator&&!t.onlyInMenu).map(t=>n.jsxs(it,{title:t.name,"data-cy":`${t.action}-blocklet`,onClick:()=>se(t),disabled:!!t.disabled||B,children:[h===t.action&&B?n.jsx(ce,{size:16,sx:{marginRight:1}}):n.jsx(t.icon,{}),n.jsx("span",{className:"blocklet-action-text",children:t.name})]},t.name))}),d&&n.jsx(ue,{title:d.title,description:d.description,confirm:d.confirm,cancel:d.cancel,params:d.params,onConfirm:d.onConfirm,onCancel:d.onCancel})]})}ne.propTypes={getComponentUrl:R.func,blocklet:R.object.isRequired,onStart:R.func.isRequired,onComplete:R.func.isRequired,variant:R.oneOf(["menu","group"]),hasPermission:R.bool,useBlockletUrlEvaluation:R.func};ne.defaultProps={getComponentUrl:null,variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e;return{loading:!1,recommendedUrl:(e=window==null?void 0:window.location)==null?void 0:e.href}}};const he=Je.div`
1
+ import{bC as Ve,bD as qe,bE as Ne,bF as ke,bG as le,bH as He,bI as Ge,bJ as Ke,bK as Fe,bL as We,r as p,j as n,P as R,a5 as Xe,aR as y,aS as C,bM as Ye,n as Je,bt as Ze,f as ge,H as E,b as H,bN as G,a7 as Qe,b5 as et,X as tt,J as nt,bj as rt,U as at,aK as ot,C as ce,ad as st,ah as ue,B as it,A as K,k as z,a_ as de,bd as me,y as V,ae as lt,aY as ct,Y as ut,bO as dt,bP as mt}from"./index-GT9guQyO.js";import{_ as pe}from"./useLocalStorage-BjHApf6t.js";import{d as pt}from"./MoreVert-hRBmZjRU.js";import{d as ft}from"./Delete-D6yfSast.js";import{g as fe}from"./get-safe-url-C60RmYFc.js";import{B as vt}from"./ButtonGroup-Cxal2SJ8.js";import{R as ht,a as ve}from"./status-WCLqHGBF.js";import{u as gt}from"./url-evaluation-Df8LUg06.js";import{w as xt}from"./permission-MGlz941p.js";var St=200;function _t(e,a,c,l){var o=-1,u=qe,S=!0,_=e.length,s=[],f=a.length;if(!_)return s;l?(u=Ne,S=!1):a.length>=St&&(u=ke,S=!1,a=new Ve(a));e:for(;++o<_;){var m=e[o],h=m;if(m=l||m!==0?m:0,S&&h===h){for(var $=f;$--;)if(a[$]===h)continue e;s.push(m)}else u(a,h,l)||s.push(m)}return s}function jt(e,a,c){var l=e.length;if(l<2)return l?le(e[0]):[];for(var o=-1,u=Array(l);++o<l;)for(var S=e[o],_=-1;++_<l;)_!=o&&(u[o]=_t(u[o]||S,e[_],a,c));return le(He(u),a,c)}var Dt=Ge(function(e){var a=Ke(e);return a=typeof a=="function"?a:void 0,jt(Fe(e,We),void 0,a)});const xe=p.createContext({});function Se({children:e,type:a}){const[c,l]=p.useState([]),o=p.useRef([]),u=s=>{if(!o.current.includes(s)){const f=[...o.current,s];l(f),o.current=f}},S=s=>{if(o.current.includes(s)){const f=o.current.filter(m=>m!==s);l(f),o.current=f}},_=s=>{const f=c.filter(h=>s.find($=>$===h));Dt(f,c).forEach(h=>S(h))};return n.jsx(xe.Provider,{value:{type:a,deletingBlocklets:c,addDeletingDid:u,removeDeletingDid:S,matchDeletingDid:_},children:e})}Se.propTypes={type:R.string,children:R.node.isRequired};Se.defaultProps={type:"blocklets"};function un(){return p.useContext(xe)}const Rt=(e,a)=>{if(!e)return"";if(!a)return e;const c=new URL(e),l=new URLSearchParams(c.searchParams),o=new URL(Xe(c.origin,a));return o.search=l.toString(),o.toString()};var F={},yt=C;Object.defineProperty(F,"__esModule",{value:!0});var _e=F.default=void 0,Ct=yt(y()),$t=n;_e=F.default=(0,Ct.default)((0,$t.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");var W={},Lt=C;Object.defineProperty(W,"__esModule",{value:!0});var je=W.default=void 0,wt=Lt(y()),bt=n;je=W.default=(0,wt.default)((0,bt.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var X={},Et=C;Object.defineProperty(X,"__esModule",{value:!0});var De=X.default=void 0,Pt=Et(y()),Bt=n;De=X.default=(0,Pt.default)((0,Bt.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var Y={},At=C;Object.defineProperty(Y,"__esModule",{value:!0});var Re=Y.default=void 0,Mt=At(y()),It=n;Re=Y.default=(0,Mt.default)((0,It.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var J={},Tt=C;Object.defineProperty(J,"__esModule",{value:!0});var ye=J.default=void 0,Ot=Tt(y()),Ut=n;ye=J.default=(0,Ot.default)((0,Ut.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var Z={},zt=C;Object.defineProperty(Z,"__esModule",{value:!0});var Ce=Z.default=void 0,Vt=zt(y()),qt=n;Ce=Z.default=(0,Vt.default)((0,qt.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt");var Q={},Nt=C;Object.defineProperty(Q,"__esModule",{value:!0});var $e=Q.default=void 0,kt=Nt(y()),Ht=n;$e=Q.default=(0,kt.default)((0,Ht.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var ee={},Gt=C;Object.defineProperty(ee,"__esModule",{value:!0});var Le=ee.default=void 0,Kt=Gt(y()),Ft=n;Le=ee.default=(0,Kt.default)((0,Ft.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-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"NotInterested");var te={},Wt=C;Object.defineProperty(te,"__esModule",{value:!0});var we=te.default=void 0,Xt=Wt(y()),Yt=n;we=te.default=(0,Xt.default)((0,Yt.jsx)("path",{d:"m18.25 7.6-5.5-3.18c-.46-.27-1.04-.27-1.5 0L5.75 7.6c-.46.27-.75.76-.75 1.3v6.35c0 .54.29 1.03.75 1.3l5.5 3.18c.46.27 1.04.27 1.5 0l5.5-3.18c.46-.27.75-.76.75-1.3V8.9c0-.54-.29-1.03-.75-1.3M7 14.96v-4.62l4 2.32v4.61zm5-4.03L8 8.61l4-2.31 4 2.31zm1 6.34v-4.61l4-2.32v4.62zM7 2H3.5C2.67 2 2 2.67 2 3.5V7h2V4h3zm10 0h3.5c.83 0 1.5.67 1.5 1.5V7h-2V4h-3zM7 22H3.5c-.83 0-1.5-.67-1.5-1.5V17h2v3h3zm10 0h3.5c.83 0 1.5-.67 1.5-1.5V17h-2v3h-3z"}),"ViewInAr");const P={Start:_e,Stop:je,Restart:De,Reload:Re,Remove:ft,Config:ye,Log:Ce,Group:$e,Cancel:Le,Dashboard:Ye,Overview:we},Jt="internal",Zt="external";function ne({blocklet:e,onStart:a,onComplete:c,variant:l,hasPermission:o,getComponentUrl:u,useBlockletUrlEvaluation:S,..._}){const s=Ze(),[f,m]=p.useState(null),[h,$]=p.useState(null),[B,A]=p.useState(!1),[d,q]=p.useState(null),{t:r}=p.useContext(ge),[be]=pe("skip-blocklet-setup",!1),{loading:Ee,recommendedUrl:N}=S(e),[Pe]=pe("blocklet-type-filter",Jt),re=E.isInProgress(e.status),[ae,oe]=p.useState(!1);p.useEffect(()=>{var i,v;if(!(e!=null&&e.controller))return;oe(((v=(i=e==null?void 0:e.controller)==null?void 0:i.status)==null?void 0:v.value)===H.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var g,D,L;try{const x=await s.api.getLauncherSession({input:{launcherSessionId:(g=e==null?void 0:e.controller)==null?void 0:g.launcherSessionId,launcherUrl:(D=e==null?void 0:e.controller)==null?void 0:D.launcherUrl}});if(x!=null&&x.error){console.error("get launcher session failed",x.error);return}oe([K.LAUNCH_SESSION_STATUS.overdue,K.LAUNCH_SESSION_STATUS.canceled,K.LAUNCH_SESSION_STATUS.terminated].includes((L=x==null?void 0:x.launcherSession)==null?void 0:L.status))}catch(x){console.error("call getLauncherSession error",x)}})()},[]);const{inService:k}=s,M=(t,i,v=!1)=>async()=>{const g=async T=>{var U;a({action:t,blocklet:e}),A(!0),$(t);let O=!1;try{if(t==="remove")await i(T);else if(t==="start"){if(!E.hasRunnableComponent(e)){V.error(r("blocklet.noComponent"));return}if(!k&&!be&&!((U=e.settings)!=null&&U.initialized)&&e.mode!==H.BLOCKLET_MODES.DEVELOPMENT){if(!N||!me(N)){V.error(r("blocklet.gotoVisitError"));return}const j=lt(s.info),ie=new URL(N);ie.searchParams.set("serverUrl",j),window.open(fe(ie.href,{allowDomains:null})),c({action:t,blocklet:e});return}const w=e.children.filter(j=>!E.isInProgress(j.status)&&j.status!=="running").map(j=>j.meta.did),b={did:e.meta.did,componentDids:w};await i({input:b})}else if(["stop","restart","reload"].includes(t)){const w=e.children.filter(j=>j.status==="running").map(j=>j.meta.did),b={did:e.meta.did,componentDids:w};await i({input:b})}else{const w={did:e.meta.did};await i({input:w})}t==="remove"?O=!0:await ct(1e3),t==="reload"&&V.success(r("blocklet.reloadSuccess")),q(null),c({action:t,blocklet:e})}catch(w){const b=`Blocklet ${t} failed: ${ut(w)}`;throw c({action:t,blocklet:e,error:new Error(b)}),new Error(b)}finally{O||A(!1)}},D=()=>{A(!1),q(null)},L=E.getDisplayName(e,!0),x=e.mode===H.BLOCKLET_MODES.DEVELOPMENT?{description:()=>n.jsx(z,{component:"div",children:n.jsx(z,{gutterBottom:!0,children:r("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(T,O)=>n.jsxs(z,{component:"div",children:[n.jsx(z,{gutterBottom:!0,children:r("blocklet.action.removeApplicationDescription")}),n.jsxs(ht,{name:"removeType",value:T.removeType,onChange:U=>O({...T,removeType:U.target.value}),children:[n.jsx(de,{value:"backup",control:n.jsx(ve,{}),label:r("blocklet.action.removeApplicationAfterBackup")}),n.jsx(de,{value:"complete",control:n.jsx(ve,{}),label:r("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},ze={stop:{title:`${r("common.stop")} ${L}`,description:r("blocklet.action.stopDescription"),confirm:r("blocklet.action.confirmStop"),cancel:r("common.cancel"),onConfirm:g,onCancel:D},restart:{title:`${r("common.restart")} ${L}`,description:r("blocklet.action.restartDescription"),confirm:r("blocklet.action.confirmRestart"),cancel:r("common.cancel"),onConfirm:g,onCancel:D},remove:{title:`${r("common.remove")} ${L}`,confirm:r("blocklet.action.confirmRemove"),cancel:r("common.cancel"),onConfirm:g,onCancel:D,...x},cancelDownload:{title:`${r("common.cancel")}`,description:r("blocklet.action.cancelDownloadDescription",{name:L}),confirm:r("common.confirm"),cancel:r("common.cancel"),onConfirm:g,onCancel:D}};v?q(ze[t]):await g()},Be=!!f,Ae=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}m(t.currentTarget)},Me=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}m(null)},se=async(t,i)=>{try{i.stopPropagation(),i.preventDefault()}catch{}if(typeof t.handler=="function")try{A(!0),$(t.action),await t.handler()}catch(v){console.error(`Blocklet ${t.name} failed: `,v)}finally{A(!1),m(null)}else m(null)},Ie=!k&&E.isDeletableBlocklet(e)?{action:"remove",icon:P.Remove,name:r("common.remove"),handler:M("remove",async({removeType:t})=>{t==="backup"&&await s.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await s.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:re}:null,Te={action:"remove",icon:({sx:t,...i})=>n.jsx(P.Cancel,{sx:{...t,paddingRight:"2px",zoom:.95},...i}),name:r("common.cancel"),handler:M("cancelDownload",s.api.cancelDownloadBlocklet,!0)},Oe=E.getAppMissingConfigs(e),Ue=()=>{var g;const t=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),i=u==null?void 0:u({mountPoint:t,blocklet:e});if(!i||!me(i)){V.error(r("blocklet.gotoVisitError"));return}const v=(g=e==null?void 0:e.site)==null?void 0:g.domainAliases;window.open(fe(Rt(i,".well-known/service/admin"),{allowDomains:v==null?void 0:v.map(D=>D.value)}))};let I=[{action:"start",icon:P.Start,inExternal:!0,name:r("common.start"),handler:M("start",s.api.startBlocklet),disabled:ae||e.children.every(t=>t.status==="running")||G(e.status)||Ee||re},{action:"stop",icon:P.Stop,inExternal:!0,name:r("common.stop"),handler:M("stop",s.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",inExternal:!0,icon:P.Restart,name:r("common.restart"),handler:M("restart",s.api.restartBlocklet,!0),disabled:ae||e.status!=="running"},G(e.status)?Te:Ie,{separator:!0},k?null:{action:"dashboard",icon:({style:t,...i})=>n.jsx(P.Dashboard,{...i,style:{...t,width:"26px",height:"26px",paddingRight:"3px"}}),name:r("sidebar.dashboard"),handler:Ue}].filter(Boolean);return Pe===Zt&&(I=I.filter(t=>t.inExternal)),l==="menu"?n.jsxs(he,{"data-cy":"blocklet-actions",children:[n.jsx(Qe,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:Ae,size:"small",disabled:!o||!G(e.status)&&B,children:n.jsx(pt,{})}),n.jsxs(et,{id:"actions-menu",anchorEl:f,keepMounted:!0,open:Be,onClose:Me,PaperProps:{},children:[Oe.length>0&&n.jsxs(tt,{style:{maxWidth:"400px"},severity:"error",children:[r("blocklet.config.missingRequired"),n.jsx("br",{}),n.jsx(nt,{to:`/blocklets/${e.meta.did}/components`,children:r("blocklet.config.gotoFix")})]}),I.map((t,i)=>t.separator?n.jsx(rt,{},`separator-${i}`):n.jsxs(at,{dense:!0,onClick:v=>se(t,v),disabled:B||t.disabled,"data-cy":`${t.action}-blocklet`,children:[n.jsx(ot,{style:{minWidth:24},children:h===t.action&&B?n.jsx(ce,{size:16,sx:{marginRight:1}}):n.jsx(t.icon,{fontSize:"small"})}),n.jsx(st,{primary:t.name})]},t.name))]}),d&&n.jsx(ue,{title:d.title,description:d.description,confirm:d.confirm,cancel:d.cancel,params:d.params,onConfirm:d.onConfirm,onCancel:d.onCancel})]}):n.jsxs(he,{"data-cy":"blocklet-actions",..._,children:[n.jsx(vt,{children:I.filter(t=>!t.separator&&!t.onlyInMenu).map(t=>n.jsxs(it,{title:t.name,"data-cy":`${t.action}-blocklet`,onClick:()=>se(t),disabled:!!t.disabled||B,children:[h===t.action&&B?n.jsx(ce,{size:16,sx:{marginRight:1}}):n.jsx(t.icon,{}),n.jsx("span",{className:"blocklet-action-text",children:t.name})]},t.name))}),d&&n.jsx(ue,{title:d.title,description:d.description,confirm:d.confirm,cancel:d.cancel,params:d.params,onConfirm:d.onConfirm,onCancel:d.onCancel})]})}ne.propTypes={getComponentUrl:R.func,blocklet:R.object.isRequired,onStart:R.func.isRequired,onComplete:R.func.isRequired,variant:R.oneOf(["menu","group"]),hasPermission:R.bool,useBlockletUrlEvaluation:R.func};ne.defaultProps={getComponentUrl:null,variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e;return{loading:!1,recommendedUrl:(e=window==null?void 0:window.location)==null?void 0:e.href}}};const he=Je.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
 
@@ -1,4 +1,4 @@
1
- import{P as m,n as E,j as i,aR as ae,aS as se,r as k,B as le,C as ce,D as H,bl as K,M as g,H as L,cj as ue,bw as pe,h as v,f1 as de,k as A,A as fe,m as V,E as me,aJ as N,bt as Y,z as he,x as xe,a_ as ge,V as ye,a7 as ve}from"./index-DN8pXU_t.js";import{a as J,h as be,w as we,f as ke,b as je,d as Ee,e as Ce,M as Ne}from"./index-BfjT5AWP.js";import{j as M}from"./url-join-CySKlr-_.js";import{g as Se}from"./get-safe-url-Dvv7FqJf.js";function Te({children:e,...t}){return i.jsx(De,{...t,children:e})}Te.propTypes={children:m.any.isRequired};const De=E.div`
1
+ import{P as m,n as E,j as i,aR as ae,aS as se,r as k,B as le,C as ce,D as H,bl as K,M as g,H as L,cj as ue,bw as pe,h as v,f0 as de,k as A,A as fe,m as V,E as me,aJ as N,bt as Y,z as he,x as xe,a_ as ge,V as ye,a7 as ve}from"./index-GT9guQyO.js";import{a as J,h as be,w as we,f as ke,b as je,d as Ee,e as Ce,M as Ne}from"./index-CqyMkN54.js";import{j as M}from"./url-join-etCGHrys.js";import{g as Se}from"./get-safe-url-C60RmYFc.js";function Te({children:e,...t}){return i.jsx(De,{...t,children:e})}Te.propTypes={children:m.any.isRequired};const De=E.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -0,0 +1 @@
1
+ import{aB as a}from"./index-GT9guQyO.js";a.defaults.timeout=10*1e3;const o=a.create();export{o as a};