@abtnode/webapp 1.16.43-beta-20250507-124320-c405ab23 → 1.16.43-beta-20250507-131727-e3e5be46

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 (199) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-D0B_jcmg.js → AdapterDayjs-DN3WVSzh.js} +1 -1
  4. package/dist/assets/{Add-CWZdCpsj.js → Add-B5o3lKZ4.js} +1 -1
  5. package/dist/assets/{ArrowDropDown-CmqsXt9y.js → ArrowDropDown-RVN4Mn-W.js} +1 -1
  6. package/dist/assets/{Autocomplete-B9W0x8LR.js → Autocomplete-DHpI8PP1.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-D6qp1cMT.js → Breadcrumbs-BO8goWHs.js} +1 -1
  8. package/dist/assets/{ButtonGroup-BHcpMxTu.js → ButtonGroup-DP9Um2zw.js} +1 -1
  9. package/dist/assets/{CSSTransition-BuWP1JFF.js → CSSTransition-Ce16mrqT.js} +1 -1
  10. package/dist/assets/{CallMerge-BShTVXkB.js → CallMerge-D9pdEpQ4.js} +1 -1
  11. package/dist/assets/{CardContent-BSYOgOvL.js → CardContent-CV6vnW6h.js} +1 -1
  12. package/dist/assets/{ChevronLeft-CWq3Gxqj.js → ChevronLeft-CVA4N8rQ.js} +1 -1
  13. package/dist/assets/{ChevronRight-DpVf81V0.js → ChevronRight-sZUpX7tH.js} +1 -1
  14. package/dist/assets/{Clear-Dt61s4Jb.js → Clear-C7odY-6_.js} +1 -1
  15. package/dist/assets/{Close-H0Qu26Eg.js → Close-w8eKEJW7.js} +1 -1
  16. package/dist/assets/{Community-Bpc3Fg9d.js → Community-CIu-cG23.js} +1 -1
  17. package/dist/assets/{Delete-uTw81SAG.js → Delete-DSB9GjVg.js} +1 -1
  18. package/dist/assets/{Delete-D3Cc6_4Q.js → Delete-DpNbJCJA.js} +1 -1
  19. package/dist/assets/{DeleteOutline-jp3vin8Z.js → DeleteOutline-B4zcgGCZ.js} +1 -1
  20. package/dist/assets/{Done-DHtSx1Az.js → Done-CasEZEMQ.js} +1 -1
  21. package/dist/assets/{Edit-DBdzAtvQ.js → Edit-D9oke1qz.js} +1 -1
  22. package/dist/assets/{ErrorOutline-BYuoGvYU.js → ErrorOutline-cX4XY61i.js} +1 -1
  23. package/dist/assets/{HelpOutline-CGfBEqN0.js → HelpOutline-B-3RVeU3.js} +1 -1
  24. package/dist/assets/{Holiday-8FYeupTb.js → Holiday-CWWiyhee.js} +1 -1
  25. package/dist/assets/{Launch-IYpFZ4ei.js → Launch-9QmeNFGh.js} +1 -1
  26. package/dist/assets/{Link-CNdMZ-Ir.js → Link-V0zXa94b.js} +1 -1
  27. package/dist/assets/{ListItemButton-B8mGrc4b.js → ListItemButton-Drq6UK1v.js} +1 -1
  28. package/dist/assets/{ListSubheader-CzAOd4qf.js → ListSubheader-r9QVg4z3.js} +1 -1
  29. package/dist/assets/{LoadingButton-DnRPaBiu.js → LoadingButton-CwgQEhJX.js} +1 -1
  30. package/dist/assets/{LockIcon-DebON0bq.js → LockIcon-AR8ebEzv.js} +1 -1
  31. package/dist/assets/{Meeting-C1b2wTDn.js → Meeting-CF-WhmPM.js} +1 -1
  32. package/dist/assets/{MoreHoriz-C2u_cYyx.js → MoreHoriz-DuOMe2bn.js} +1 -1
  33. package/dist/assets/{MoreVert-BVKVbqMe.js → MoreVert-UFPlWjze.js} +1 -1
  34. package/dist/assets/{OffSick-CD8hg4U_.js → OffSick-CSP2kO-5.js} +1 -1
  35. package/dist/assets/{OpenInNew-CqGHjgTE.js → OpenInNew-6pTIeS0r.js} +1 -1
  36. package/dist/assets/{Public-D7l70Nl5.js → Public-Cm3uAF1d.js} +1 -1
  37. package/dist/assets/{Refresh-D-9kJI4M.js → Refresh-DsQW01Ya.js} +1 -1
  38. package/dist/assets/{SchemaReference.es-DwTKYdXb.js → SchemaReference.es-BPpguI5D.js} +1 -1
  39. package/dist/assets/{Search-CnGd_Ao7.js → Search-DnEqCvoa.js} +1 -1
  40. package/dist/assets/{Slider-CHM0tCqD.js → Slider-DRcvOlgL.js} +1 -1
  41. package/dist/assets/{Stepper-CZhNWrms.js → Stepper-DfLckKIy.js} +1 -1
  42. package/dist/assets/{TableRow-D7-Zq-OD.js → TableRow-BMSWmGPk.js} +1 -1
  43. package/dist/assets/{TableSearch-Bc199o0T.js → TableSearch-Dobasaj8.js} +1 -1
  44. package/dist/assets/{ToggleButtonGroup-BTeawApm.js → ToggleButtonGroup-CfjCj__G.js} +1 -1
  45. package/dist/assets/{Verified-Dbca1-Es.js → Verified-oP4ZelZh.js} +1 -1
  46. package/dist/assets/{VerifiedUser-C9X9RjKF.js → VerifiedUser-CzEMJOGM.js} +1 -1
  47. package/dist/assets/{ViewColumn-423RpdF7.js → ViewColumn-BIPD356c.js} +1 -1
  48. package/dist/assets/{ViewList-DsKTRqlV.js → ViewList-BYQ2Wo2N.js} +1 -1
  49. package/dist/assets/{WorkingRemotely-COVb7EO8.js → WorkingRemotely-B8U5I0AD.js} +1 -1
  50. package/dist/assets/{_createAggregator-CEREBT9l.js → _createAggregator-BzC5cfxy.js} +1 -1
  51. package/dist/assets/{actions-Dao-vIba.js → actions-C1blhdkh.js} +1 -1
  52. package/dist/assets/{actions-4ImpPOP5.js → actions-CIvfyQ4N.js} +1 -1
  53. package/dist/assets/{agreement-CM7cPgwb.js → agreement-BKAba3Bu.js} +1 -1
  54. package/dist/assets/api-BhAwS4V8.js +1 -0
  55. package/dist/assets/{appearance-jDDRH5-M.js → appearance-BT6nflvn.js} +1 -1
  56. package/dist/assets/{audit-logs-DGUqXsRe.js → audit-logs-CxO1RKPM.js} +1 -1
  57. package/dist/assets/{blocklet-Cj0P-s6g.js → blocklet-DgGtZNCB.js} +1 -1
  58. package/dist/assets/{brace-fold.es-BEZgxG3i.js → brace-fold.es-D7zHyRiF.js} +1 -1
  59. package/dist/assets/{chain-BD8CghUy.js → chain-CMNZiwbz.js} +1 -1
  60. package/dist/assets/{click-to-copy-CCNzNZ1Q.js → click-to-copy-mgHOJgOu.js} +1 -1
  61. package/dist/assets/cloneDeep-C8Xz4lYT.js +1 -0
  62. package/dist/assets/{closebrackets.es-BF5trJAr.js → closebrackets.es-BY2R-PDl.js} +1 -1
  63. package/dist/assets/{codemirror.es-itieykAV.js → codemirror.es-Bj7wxben.js} +1 -1
  64. package/dist/assets/{comment.es-Dk3fdgwu.js → comment.es-9NAetJeX.js} +1 -1
  65. package/dist/assets/{config-navigation-dcIrxkhP.js → config-navigation-BeyhoAYd.js} +3 -3
  66. package/dist/assets/{connect-to-Cv7_m0q4.js → connect-to-B2UoY2JL.js} +1 -1
  67. package/dist/assets/{delete-confirm-CPi3Neq0.js → delete-confirm-B0FL8Sx7.js} +1 -1
  68. package/dist/assets/{detail-CZzR_pkr.js → detail-Lgl7Opc1.js} +3 -3
  69. package/dist/assets/{dialog.es-BwK4L0zE.js → dialog.es-CV929pYp.js} +1 -1
  70. package/dist/assets/{domains-B_3P9cXG.js → domains-BnwU8REn.js} +2 -2
  71. package/dist/assets/{download-1NleahxB.js → download-IW0OxyHF.js} +1 -1
  72. package/dist/assets/emotion-react.browser.esm-DwA9twTe.js +1 -0
  73. package/dist/assets/{foldgutter.es-BjxnxwQB.js → foldgutter.es-D3SAnwjU.js} +1 -1
  74. package/dist/assets/{get-safe-url-DaO0zNfp.js → get-safe-url-BQ9e1d8R.js} +1 -1
  75. package/dist/assets/{get-safe-url-V1wl4gr3.js → get-safe-url-fVLOWjDv.js} +1 -1
  76. package/dist/assets/getValidReactChildren-BybUhg_p.js +1 -0
  77. package/dist/assets/{hint.es-BAQjy_TP.js → hint.es-xqBNEZOH.js} +1 -1
  78. package/dist/assets/{hint.es2-C4JXylG0.js → hint.es2-jX0Ikd_H.js} +1 -1
  79. package/dist/assets/{iframe-CS_rJQlP.js → iframe-B52MZmUp.js} +1 -1
  80. package/dist/assets/{index-DkgrmE-T.js → index-B3-cD9IV.js} +1 -1
  81. package/dist/assets/{index-B09_oCEi.js → index-B8d6BDWi.js} +1 -1
  82. package/dist/assets/{index-DvLkT-7K.js → index-B930dkB6.js} +1 -1
  83. package/dist/assets/{index-CJZ621kJ.js → index-BEgDyH2G.js} +1 -1
  84. package/dist/assets/{index-C9Qvl3AL.js → index-BFMlUu0x.js} +1 -1
  85. package/dist/assets/{index-Bl3odC1P.js → index-BK_iEF6w.js} +1 -1
  86. package/dist/assets/{index-B5tdRxwW.js → index-BNMAXWQI.js} +1 -1
  87. package/dist/assets/{index-NJM1b5Oy.js → index-Bahrm-G8.js} +18 -18
  88. package/dist/assets/{index-Dw_-VACK.js → index-BcWvyuw8.js} +1 -1
  89. package/dist/assets/{index-CfypG9xi.js → index-BerfqWKB.js} +1 -1
  90. package/dist/assets/{index-CEgPawok.js → index-BfvhxdN7.js} +1 -1
  91. package/dist/assets/{index-DMApNFrR.js → index-BhA9P09u.js} +1 -1
  92. package/dist/assets/{index-Dm-V5BXD.js → index-Bpzwsd3f.js} +1 -1
  93. package/dist/assets/{index-77IZhlGI.js → index-BsoiXoFC.js} +1 -1
  94. package/dist/assets/{index-C58fITNM.js → index-Btu7Neya.js} +1 -1
  95. package/dist/assets/{index-B_OKp_Op.js → index-C8FhJ0rj.js} +1 -1
  96. package/dist/assets/{index-CwQN21sJ.js → index-CCAZAiY9.js} +1 -1
  97. package/dist/assets/{index-3pbhDJdN.js → index-CFslc24J.js} +1 -1
  98. package/dist/assets/{index-BsdDIJ5W.js → index-CNElardu.js} +1 -1
  99. package/dist/assets/{index-C-fTTans.js → index-CUdgGjYV.js} +1 -1
  100. package/dist/assets/{index-Dme3SYPB.js → index-CZGd5QCZ.js} +1 -1
  101. package/dist/assets/{index-DQ3XgEE8.js → index-Ce_kCGci.js} +1 -1
  102. package/dist/assets/{index-DfYDjn49.js → index-CiH2SOFi.js} +3 -3
  103. package/dist/assets/index-D-wNDvqE.js +161 -0
  104. package/dist/assets/{index-Cte4JXAJ.js → index-D6UMpm4p.js} +1 -1
  105. package/dist/assets/{index-CUJLg7oa.js → index-D6sUi9RT.js} +1 -1
  106. package/dist/assets/{index-DAW3TTb5.js → index-DA7j-cev.js} +1 -1
  107. package/dist/assets/{index-CLzvd8Xe.js → index-DATTQ5am.js} +1 -1
  108. package/dist/assets/{index-C9OyOQK_.js → index-DHqdVKlk.js} +1 -1
  109. package/dist/assets/{index-BjeR522b.js → index-DLm8Ub_j.js} +1 -1
  110. package/dist/assets/index-DNHgOX2L.js +1 -0
  111. package/dist/assets/{index-Dn67czO2.js → index-DPJjuq8y.js} +1 -1
  112. package/dist/assets/{index-mqekGQEz.js → index-DRmGM_hP.js} +1 -1
  113. package/dist/assets/{index-YdBd91X5.js → index-DX8DEJlQ.js} +1 -1
  114. package/dist/assets/{index-DP-OGudM.js → index-D_1_RyLT.js} +1 -1
  115. package/dist/assets/{index-Bw0MXptL.js → index-Da_gY2p2.js} +1 -1
  116. package/dist/assets/{index-BuUrL2zu.js → index-DdLMocGE.js} +1 -1
  117. package/dist/assets/index-DjPLbVUc.js +11 -0
  118. package/dist/assets/{index-s-OYwTlQ.js → index-DydT7-LV.js} +1 -1
  119. package/dist/assets/{index-DQDv4NJO.js → index-Dzpr3qS7.js} +1 -1
  120. package/dist/assets/{index-DdJGYtAD.js → index-KdOmwCM0.js} +30 -30
  121. package/dist/assets/{index-CsiV_JrU.js → index-R7x7W7GB.js} +5 -5
  122. package/dist/assets/{index-DDOm4KG9.js → index-hmtP3oKe.js} +1 -1
  123. package/dist/assets/{index-DRrgztHp.js → index-iW0yPyzE.js} +1 -1
  124. package/dist/assets/{index-C2MvOTmW.js → index-n3NnSt8H.js} +1 -1
  125. package/dist/assets/{index-0bofXTKF.js → index-qxurOC9U.js} +1 -1
  126. package/dist/assets/{index-BH2aPeTR.js → index-trVfBCte.js} +1 -1
  127. package/dist/assets/{index-CB0oehbS.js → index-yrfr0MWP.js} +1 -1
  128. package/dist/assets/{index.esm-DhOdskub.js → index.esm-BZeAlIeN.js} +1 -1
  129. package/dist/assets/{info-addon.es-CrUdBD0D.js → info-addon.es-C0ND8uqw.js} +1 -1
  130. package/dist/assets/{info.es-5xOB6WSn.js → info.es-B-kYc798.js} +1 -1
  131. package/dist/assets/{install-from-url-DG3j09rg.js → install-from-url-CV2FomzA.js} +1 -1
  132. package/dist/assets/{invitation-BOb-v4jm.js → invitation-DH_bKwmI.js} +1 -1
  133. package/dist/assets/is-path-prefix-equal-Cl2q8kGU.js +1 -0
  134. package/dist/assets/{item-BaPP1XPw.js → item-D5qxr3Lk.js} +1 -1
  135. package/dist/assets/{javascript.es-9P67vq_T.js → javascript.es-CInOpinR.js} +1 -1
  136. package/dist/assets/{jump-to-line.es-Cj4l1I67.js → jump-to-line.es-GaOpyMuN.js} +1 -1
  137. package/dist/assets/{jump.es-DVtjZkF-.js → jump.es-4QMqZ0U2.js} +1 -1
  138. package/dist/assets/{lint.es-eLWFxcKa.js → lint.es-d-xQpru4.js} +1 -1
  139. package/dist/assets/{lint.es2-GpTg2qB7.js → lint.es2-r0w3QthM.js} +1 -1
  140. package/dist/assets/{lint.es3-eJKqRD1z.js → lint.es3-Duz7LKWy.js} +1 -1
  141. package/dist/assets/{list-header-oZlTZ2ch.js → list-header-Dq6Hm5vy.js} +1 -1
  142. package/dist/assets/{log-BkGAi_un.js → log-CTDXV8ap.js} +1 -1
  143. package/dist/assets/{lottie-react.esm-DZymuHiL.js → lottie-react.esm-Gf3LaMG1.js} +1 -1
  144. package/dist/assets/{matchbrackets.es-DUen6WHE.js → matchbrackets.es-ub9hnhHy.js} +1 -1
  145. package/dist/assets/{memory-CcuZ3GjH.js → memory-Co7ZVOfU.js} +1 -1
  146. package/dist/assets/{mode.es-BLgncka1.js → mode.es-CK82ywlP.js} +1 -1
  147. package/dist/assets/{mode.es2-C2lkMoE7.js → mode.es2-gzITWIBC.js} +1 -1
  148. package/dist/assets/{mode.es3-CRYsREmw.js → mode.es3-CrkiMbzK.js} +1 -1
  149. package/dist/assets/omit-BE_Bff1I.js +1 -0
  150. package/dist/assets/{onlineParser.es-BiBQTv8R.js → onlineParser.es-C1qjwyf6.js} +1 -1
  151. package/dist/assets/{overview-DgXZFrB8.js → overview-WpAQD63O.js} +1 -1
  152. package/dist/assets/{permission-D633VqG0.js → permission-DR4c0ARF.js} +1 -1
  153. package/dist/assets/{preference-7QdXvA7I.js → preference-BJr6poQJ.js} +3 -3
  154. package/dist/assets/{raf-schd.esm-6yAQI9E8.js → raf-schd.esm-CKlBxZ4m.js} +1 -1
  155. package/dist/assets/refType-BFp6Mdcn.js +1 -0
  156. package/dist/assets/{resource-dialog-gdHh8fKp.js → resource-dialog-CnEGcfR6.js} +4 -4
  157. package/dist/assets/{runtime-B5e6cGGX.js → runtime-DiZdSvdg.js} +1 -1
  158. package/dist/assets/{schema-Blu48LcT.js → schema-CV3xzp1r.js} +1 -1
  159. package/dist/assets/{search.es-gJr9rMjt.js → search.es-DKqLEqET.js} +1 -1
  160. package/dist/assets/{searchcursor.es-CWt-zISJ.js → searchcursor.es-BWMpJtYl.js} +1 -1
  161. package/dist/assets/{service-D2-RmUVX.js → service-B4aFqW1U.js} +1 -1
  162. package/dist/assets/{shorten-label-Tu4vbit5.js → shorten-label-B1taCLSu.js} +1 -1
  163. package/dist/assets/{show-hint.es-Nxa_F-_-.js → show-hint.es-C1eZks_O.js} +1 -1
  164. package/dist/assets/{simple-select-BuUixK8r.js → simple-select-BwOhhEqT.js} +1 -1
  165. package/dist/assets/{spaces-CCOUzMaF.js → spaces-BHOuJMC0.js} +1 -1
  166. package/dist/assets/{status-O-A21YK4.js → status-BVDByjVR.js} +1 -1
  167. package/dist/assets/{status-msGV3kDI.js → status-CLTF7DgB.js} +1 -1
  168. package/dist/assets/{sublime.es-CmhC0QBu.js → sublime.es-J7__ylqM.js} +1 -1
  169. package/dist/assets/{switch-control-CWI5Om29.js → switch-control-k82I7Ndl.js} +1 -1
  170. package/dist/assets/{table-icons-VLNele6t.js → table-icons-C8h2igEk.js} +1 -1
  171. package/dist/assets/{team-B-MXJGor.js → team-DTa9igye.js} +1 -1
  172. package/dist/assets/{toLower-1fNo-8Gs.js → toLower-CV1JKc77.js} +1 -1
  173. package/dist/assets/toUpper-CIse071F.js +1 -0
  174. package/dist/assets/{traffic-i_VFNEcA.js → traffic-BZMRS6o_.js} +1 -1
  175. package/dist/assets/{url-evaluation-6DQ24oOJ.js → url-evaluation-BMmqZ9Xm.js} +1 -1
  176. package/dist/assets/{url-join-Bq-w2P_i.js → url-join-3G2iekWy.js} +1 -1
  177. package/dist/assets/{use-mobile-BBz4WOoT.js → use-mobile-4pPVTaiA.js} +1 -1
  178. package/dist/assets/{use-mobile-D5mKgBMg.js → use-mobile-C-Ki3d1-.js} +1 -1
  179. package/dist/assets/{useAsync-C49nf3io.js → useAsync-W0rAsXlK.js} +1 -1
  180. package/dist/assets/{useLocalStorage-C8v8o6PD.js → useLocalStorage-DqX-zdwD.js} +1 -1
  181. package/dist/assets/{useThemeProps-CuAyki4g.js → useThemeProps-BT_RONtx.js} +1 -1
  182. package/dist/assets/{util-pbznBo4J.js → util-CR3vtO32.js} +1 -1
  183. package/dist/assets/{wait-container-WgYu_rWK.js → wait-container-D3DtxHI5.js} +1 -1
  184. package/dist/assets/{withStyles-toRDSEkG.js → withStyles-DQtqSL4M.js} +1 -1
  185. package/dist/assets/{wrap-locale-B7QlLuiz.js → wrap-locale-DB1j-LK3.js} +1 -1
  186. package/dist/index.html +1 -1
  187. package/dist/service-worker.js +1 -1
  188. package/package.json +1 -1
  189. package/dist/assets/api-BjZCencr.js +0 -1
  190. package/dist/assets/cloneDeep-CrmKJTKF.js +0 -1
  191. package/dist/assets/emotion-react.browser.esm-DwVz9Uas.js +0 -1
  192. package/dist/assets/getValidReactChildren-C5sX3SvA.js +0 -1
  193. package/dist/assets/index-BlL9i6qA.js +0 -192
  194. package/dist/assets/index-Dyg-5fn-.js +0 -1
  195. package/dist/assets/index-f1wvnc7Y.js +0 -11
  196. package/dist/assets/is-path-prefix-equal-CXMwO6Qz.js +0 -1
  197. package/dist/assets/omit-BT1EorTD.js +0 -1
  198. package/dist/assets/refType-BUu3J1GQ.js +0 -1
  199. package/dist/assets/toUpper-CCtpR6nt.js +0 -1
@@ -1,4 +1,4 @@
1
- import{aQ as ro,aR as no,j as o,gk as cs,r as _,cw as _r,gl as us,gm as Ot,fj as $e,gn as ds,go as fs,gp as oo,gq as ps,gr as ms,gs as hs,gt as so,gu as gs,gv as Lr,gw as bs,gx as ys,gy as vs,gz as xs,fk as kr,fl as Fr,gA as io,bw as ws,H as Cs,bl as Ts,d4 as xn,fc as Ss,J as Ps,c4 as ze,c3 as He,b_ as be,c0 as X,c2 as ke,c7 as We,c8 as Le,a6 as Ur,k as Be,dd as js,cm as Ds,fg as ao,V as pt,dP as Wt,cl as lo,c6 as co,dj as Yt,ek as $r,v as mt,P as a,an as uo,gB as Vr,bj as wn,F as Es,bi as _e,bF as fo,Q as At,bm as ks,m as Fe,N as fe,gC as Rs,bs as Ue,aU as Br,S as Rr,U as Ir,ax as Is,fd as Os,gD as qr,ay as ht,D as dt,B as Oe,C as Tt,t as Kr,Y as wt,Z as nt,gE as As,h as Or,a$ as Ns,w as Ms,x as _s,n as Ae,fN as Ls,f as _t,ag as Lt,bG as gt,z as ot,gF as Fs,b as tt,dq as Us,o as Ft,E as ft,aC as Gt,c$ as $s,gG as Vs,gH as po,gI as Zt,gJ as Bs,fe as Cn,W as zr,e6 as qs,cT as Ks,bx as mo,by as ho,bz as zs,aI as Hs,bv as go,gK as bo,aX as Ws,gL as yo,aJ as Ys,ac as Gs,a4 as Zs,cS as Qs,R as Js,bI as Xs,aZ as ei,X as ti,O as ri}from"./index-DdJGYtAD.js";import{d as Qt}from"./Add-CWZdCpsj.js";import{d as ni}from"./ViewList-DsKTRqlV.js";import{D as vo,g as oi}from"./index-DMApNFrR.js";import{R as xo,U as si}from"./resource-dialog-gdHh8fKp.js";import{W as wo}from"./url-evaluation-6DQ24oOJ.js";import{u as Ye}from"./team-B-MXJGor.js";import{u as Co}from"./blocklet-Cj0P-s6g.js";import{P as rt}from"./permission-D633VqG0.js";import{C as nr}from"./click-to-copy-CCNzNZ1Q.js";import{u as Qe,a as it,f as Ze,s as bt,S as ii,g as ai,P as Hr,b as li,c as To,d as Wr,e as Yr,h as Gr,i as Zr,j as Jt,k as or,D as So,M as Rt,l as ci,v as ui,m as di,n as fi,o as Po,p as Xt,q as pi,r as mi,t as Nt,w as Tn,x as Sn,y as et,z as Kt,A as hi,T as gi,B as bi,C as yi,E as vi,V as xi,F as Ct,G as wi,H as jo,I as Ci,J as Ti,K as Si,L as Pi,N as ji}from"./AdapterDayjs-D0B_jcmg.js";import{u as Re}from"./useThemeProps-CuAyki4g.js";import{a as Di,t as Ei,b as Pn,T as ki}from"./index-Dn67czO2.js";import{r as Do}from"./refType-BUu3J1GQ.js";import{I as Me}from"./index-CB0oehbS.js";import{d as Ri}from"./Verified-Dbca1-Es.js";import{d as Ii}from"./DeleteOutline-jp3vin8Z.js";import{d as jn}from"./ErrorOutline-BYuoGvYU.js";import{E as Eo}from"./index-Cte4JXAJ.js";import{d as Oi}from"./Search-CnGd_Ao7.js";import{N as Ai}from"./index-CwQN21sJ.js";import{d as Ni}from"./Delete-D3Cc6_4Q.js";import{A as Mi}from"./actions-Dao-vIba.js";import{S as _i}from"./shorten-label-Tu4vbit5.js";var Qr={},Li=no;Object.defineProperty(Qr,"__esModule",{value:!0});var ko=Qr.default=void 0,Fi=Li(ro()),Ui=o;ko=Qr.default=(0,Fi.default)((0,Ui.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"}),"Loop");var Jr=function(e){return o.jsxs("svg",{...e,children:[o.jsx("g",{clipPath:"url(#clip0)",children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99997 1.59778C8.19071 1.59778 7.39961 1.83775 6.72673 2.28736C6.05385 2.73697 5.5294 3.37601 5.21971 4.12367C4.91001 4.87134 4.82898 5.69405 4.98686 6.48777C5.14474 7.28149 5.53444 8.01056 6.10668 8.5828C6.67892 9.15504 7.408 9.54474 8.20172 9.70262C8.99544 9.8605 9.81815 9.77947 10.5658 9.46978C11.3135 9.16009 11.9525 8.63564 12.4021 7.96276C12.8517 7.28987 13.0917 6.49878 13.0917 5.68951C13.0917 4.60432 12.6606 3.56357 11.8933 2.79622C11.1259 2.02887 10.0852 1.59778 8.99997 1.59778ZM7.27426 3.9638C7.73195 3.50611 8.35271 3.24899 8.99997 3.24899C9.48266 3.24899 9.95452 3.39212 10.3559 3.66029C10.7572 3.92846 11.07 4.30962 11.2547 4.75556C11.4394 5.20151 11.4878 5.69222 11.3936 6.16563C11.2994 6.63905 11.067 7.07391 10.7257 7.41522C10.3844 7.75654 9.94951 7.98897 9.4761 8.08314C9.00268 8.17731 8.51197 8.12898 8.06603 7.94426C7.62008 7.75954 7.23892 7.44674 6.97075 7.04539C6.70258 6.64405 6.55945 6.1722 6.55945 5.68951C6.55945 5.04224 6.81658 4.42149 7.27426 3.9638ZM7.36691 10.3075C6.28172 10.3075 5.24097 10.7385 4.47362 11.5059C3.70627 12.2732 3.27518 13.314 3.27518 14.3992V17.121C3.27518 17.2763 3.4011 17.4022 3.55643 17.4022H4.64514C4.80047 17.4022 4.92639 17.2763 4.92639 17.121V14.3992C4.92639 13.7519 5.18351 13.1312 5.6412 12.6735C6.09889 12.2158 6.71964 11.9587 7.36691 11.9587H10.633C10.9535 11.9587 11.2709 12.0218 11.567 12.1444C11.8631 12.2671 12.1321 12.4469 12.3588 12.6735C12.5854 12.9001 12.7651 13.1691 12.8878 13.4652C13.0104 13.7613 13.0736 14.0787 13.0736 14.3992V17.121C13.0736 17.2763 13.1995 17.4022 13.3548 17.4022H14.4435C14.5989 17.4022 14.7248 17.2763 14.7248 17.121V14.3992C14.7248 13.314 14.2937 12.2732 13.5263 11.5059C12.759 10.7385 11.7182 10.3075 10.633 10.3075H7.36691Z"})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0",children:o.jsx("rect",{width:"18",height:"18",transform:"translate(0 0.5)"})})})]})};Jr.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};Jr.displayName="person";const $i=Jr;var Xr=function(e){return o.jsxs("svg",{...e,children:[o.jsx("path",{d:"M1.25 2.7087C1.25 2.24826 1.62326 1.875 2.0837 1.875H14.339C14.7995 1.875 15.1727 2.24826 15.1727 2.7087V9.31574C15.1727 9.77618 14.7995 10.1494 14.339 10.1494C13.8786 10.1494 13.5053 9.77618 13.5053 9.31574V3.54239H2.91739V16.7565H6.53772H8.34788H9.32435C9.78479 16.7565 10.158 17.1297 10.158 17.5902C10.158 18.0506 9.78479 18.4239 9.32435 18.4239H8.34788H2.0837C1.62326 18.4239 1.25 18.0506 1.25 17.5902V2.7087Z"}),o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.21129 7.91935C7.70481 7.91935 7.29422 8.32993 7.29422 8.83641C7.29422 9.34289 7.70481 9.75348 8.21129 9.75348C8.71777 9.75348 9.12836 9.34289 9.12836 8.83641C9.12836 8.32993 8.71777 7.91935 8.21129 7.91935ZM5.62683 8.83641C5.62683 7.40905 6.78393 6.25195 8.21129 6.25195C9.63865 6.25195 10.7957 7.40905 10.7957 8.83641C10.7957 10.2638 9.63865 11.4209 8.21129 11.4209C6.78393 11.4209 5.62683 10.2638 5.62683 8.83641Z"}),o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.62683 13.2133C5.62683 12.7529 6.00009 12.3796 6.46053 12.3796H9.96205C10.4225 12.3796 10.7957 12.7529 10.7957 13.2133C10.7957 13.6737 10.4225 14.047 9.96205 14.047H6.46053C6.00009 14.047 5.62683 13.6737 5.62683 13.2133Z"}),o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6406 11.3125C15.8547 11.3125 16.0503 11.434 16.145 11.626L17.1779 13.7184L19.4876 14.056C19.6994 14.087 19.8753 14.2355 19.9413 14.4391C20.0074 14.6427 19.9521 14.8662 19.7987 15.0156L18.1279 16.643L18.5222 18.9421C18.5584 19.1532 18.4716 19.3665 18.2984 19.4923C18.1252 19.6182 17.8955 19.6347 17.706 19.5351L15.6406 18.4489L13.5753 19.5351C13.3858 19.6347 13.1561 19.6182 12.9829 19.4923C12.8096 19.3665 12.7229 19.1532 12.7591 18.9421L13.1534 16.643L11.4825 15.0156C11.3292 14.8662 11.2739 14.6427 11.3399 14.4391C11.406 14.2355 11.5818 14.087 11.7937 14.056L14.1034 13.7184L15.1362 11.626C15.231 11.434 15.4265 11.3125 15.6406 11.3125ZM15.6406 13.1458L14.9815 14.4813C14.8996 14.6471 14.7414 14.7621 14.5584 14.7889L13.0835 15.0044L14.1503 16.0435C14.283 16.1727 14.3435 16.359 14.3122 16.5416L14.0606 18.0088L15.3788 17.3155C15.5427 17.2293 15.7386 17.2293 15.9025 17.3155L17.2207 18.0088L16.969 16.5416C16.9377 16.359 16.9983 16.1727 17.131 16.0435L18.1978 15.0044L16.7229 14.7889C16.5399 14.7621 16.3817 14.6471 16.2998 14.4813L15.6406 13.1458Z"})]})};Xr.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};Xr.displayName="external-issuer";const Ro=Xr;var zt={},Vi=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Io="%[a-f0-9]{2}",Dn=new RegExp("("+Io+")|([^%]+?)","gi"),En=new RegExp("("+Io+")+","gi");function Ar(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],Ar(n),Ar(r))}function Bi(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Dn)||[],n=1;n<t.length;n++)e=Ar(t,n).join(""),t=e.match(Dn)||[];return e}}function qi(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=En.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{var r=Bi(n[0]);r!==n[0]&&(t[n[0]]=r)}n=En.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),i=0;i<s.length;i++){var c=s[i];e=e.replace(new RegExp(c,"g"),t[c])}return e}var Ki=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return qi(e)}},zi=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]},Hi=function(e,t){for(var n={},r=Object.keys(e),s=Array.isArray(t),i=0;i<r.length;i++){var c=r[i],f=e[c];(s?t.indexOf(c)!==-1:t(c,f,e))&&(n[c]=f)}return n};(function(e){const t=Vi,n=Ki,r=zi,s=Hi,i=u=>u==null;function c(u){switch(u.arrayFormat){case"index":return l=>(d,y)=>{const S=d.length;return y===void 0||u.skipNull&&y===null||u.skipEmptyString&&y===""?d:y===null?[...d,[h(l,u),"[",S,"]"].join("")]:[...d,[h(l,u),"[",h(S,u),"]=",h(y,u)].join("")]};case"bracket":return l=>(d,y)=>y===void 0||u.skipNull&&y===null||u.skipEmptyString&&y===""?d:y===null?[...d,[h(l,u),"[]"].join("")]:[...d,[h(l,u),"[]=",h(y,u)].join("")];case"comma":case"separator":return l=>(d,y)=>y==null||y.length===0?d:d.length===0?[[h(l,u),"=",h(y,u)].join("")]:[[d,h(y,u)].join(u.arrayFormatSeparator)];default:return l=>(d,y)=>y===void 0||u.skipNull&&y===null||u.skipEmptyString&&y===""?d:y===null?[...d,h(l,u)]:[...d,[h(l,u),"=",h(y,u)].join("")]}}function f(u){let l;switch(u.arrayFormat){case"index":return(d,y,S)=>{if(l=/\[(\d*)\]$/.exec(d),d=d.replace(/\[\d*\]$/,""),!l){S[d]=y;return}S[d]===void 0&&(S[d]={}),S[d][l[1]]=y};case"bracket":return(d,y,S)=>{if(l=/(\[\])$/.exec(d),d=d.replace(/\[\]$/,""),!l){S[d]=y;return}if(S[d]===void 0){S[d]=[y];return}S[d]=[].concat(S[d],y)};case"comma":case"separator":return(d,y,S)=>{const P=typeof y=="string"&&y.includes(u.arrayFormatSeparator),k=typeof y=="string"&&!P&&p(y,u).includes(u.arrayFormatSeparator);y=k?p(y,u):y;const Y=P||k?y.split(u.arrayFormatSeparator).map(B=>p(B,u)):y===null?y:p(y,u);S[d]=Y};default:return(d,y,S)=>{if(S[d]===void 0){S[d]=y;return}S[d]=[].concat(S[d],y)}}}function b(u){if(typeof u!="string"||u.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function h(u,l){return l.encode?l.strict?t(u):encodeURIComponent(u):u}function p(u,l){return l.decode?n(u):u}function D(u){return Array.isArray(u)?u.sort():typeof u=="object"?D(Object.keys(u)).sort((l,d)=>Number(l)-Number(d)).map(l=>u[l]):u}function g(u){const l=u.indexOf("#");return l!==-1&&(u=u.slice(0,l)),u}function E(u){let l="";const d=u.indexOf("#");return d!==-1&&(l=u.slice(d)),l}function v(u){u=g(u);const l=u.indexOf("?");return l===-1?"":u.slice(l+1)}function R(u,l){return l.parseNumbers&&!Number.isNaN(Number(u))&&typeof u=="string"&&u.trim()!==""?u=Number(u):l.parseBooleans&&u!==null&&(u.toLowerCase()==="true"||u.toLowerCase()==="false")&&(u=u.toLowerCase()==="true"),u}function T(u,l){l=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},l),b(l.arrayFormatSeparator);const d=f(l),y=Object.create(null);if(typeof u!="string"||(u=u.trim().replace(/^[?#&]/,""),!u))return y;for(const S of u.split("&")){if(S==="")continue;let[P,k]=r(l.decode?S.replace(/\+/g," "):S,"=");k=k===void 0?null:["comma","separator"].includes(l.arrayFormat)?k:p(k,l),d(p(P,l),k,y)}for(const S of Object.keys(y)){const P=y[S];if(typeof P=="object"&&P!==null)for(const k of Object.keys(P))P[k]=R(P[k],l);else y[S]=R(P,l)}return l.sort===!1?y:(l.sort===!0?Object.keys(y).sort():Object.keys(y).sort(l.sort)).reduce((S,P)=>{const k=y[P];return k&&typeof k=="object"&&!Array.isArray(k)?S[P]=D(k):S[P]=k,S},Object.create(null))}e.extract=v,e.parse=T,e.stringify=(u,l)=>{if(!u)return"";l=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},l),b(l.arrayFormatSeparator);const d=k=>l.skipNull&&i(u[k])||l.skipEmptyString&&u[k]==="",y=c(l),S={};for(const k of Object.keys(u))d(k)||(S[k]=u[k]);const P=Object.keys(S);return l.sort!==!1&&P.sort(l.sort),P.map(k=>{const Y=u[k];return Y===void 0?"":Y===null?h(k,l):Array.isArray(Y)?Y.reduce(y(k),[]).join("&"):h(k,l)+"="+h(Y,l)}).filter(k=>k.length>0).join("&")},e.parseUrl=(u,l)=>{l=Object.assign({decode:!0},l);const[d,y]=r(u,"#");return Object.assign({url:d.split("?")[0]||"",query:T(v(u),l)},l&&l.parseFragmentIdentifier&&y?{fragmentIdentifier:p(y,l)}:{})},e.stringifyUrl=(u,l)=>{l=Object.assign({encode:!0,strict:!0},l);const d=g(u.url).split("?")[0]||"",y=e.extract(u.url),S=e.parse(y,{sort:!1}),P=Object.assign(S,u.query);let k=e.stringify(P,l);k&&(k=`?${k}`);let Y=E(u.url);return u.fragmentIdentifier&&(Y=`#${h(u.fragmentIdentifier,l)}`),`${d}${k}${Y}`},e.pick=(u,l,d)=>{d=Object.assign({parseFragmentIdentifier:!0},d);const{url:y,query:S,fragmentIdentifier:P}=e.parseUrl(u,d);return e.stringifyUrl({url:y,query:s(S,l),fragmentIdentifier:P},d)},e.exclude=(u,l,d)=>{const y=Array.isArray(l)?S=>!l.includes(S):(S,P)=>!l(S,P);return e.pick(u,y,d)}})(zt);const Et=us,Wi={parseNumbers:!1,parseBooleans:!1},Yi={skipNull:!1,skipEmptyString:!1},Gi=(e,t)=>{var n,r;const{navigateMode:s="push",parseOptions:i,stringifyOptions:c}={},f=Object.assign(Object.assign({},Wi),i),b=Object.assign(Object.assign({},Yi),c),h=Et.useLocation(),p=(n=Et.useHistory)===null||n===void 0?void 0:n.call(Et),D=(r=Et.useNavigate)===null||r===void 0?void 0:r.call(Et),g=cs(),E=_.useRef(typeof e=="function"?e():e||{}),v=_.useMemo(()=>zt.parse(h.search,f),[h.search]),R=_.useMemo(()=>Object.assign(Object.assign({},E.current),v),[v]);return[R,_r(u=>{const l=typeof u=="function"?u(R):u;g(),p&&p[s]({hash:h.hash,search:zt.stringify(Object.assign(Object.assign({},v),l),b)||"?"},h.state),D&&D({hash:h.hash,search:zt.stringify(Object.assign(Object.assign({},v),l),b)||"?"},{replace:s==="replace",state:h.state})})]},Zi=Gi;var dr={exports:{}},fr={},kn;function Oo(){if(kn)return fr;kn=1;function e(l){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(l)}function t(l,d,y){return Object.defineProperty(l,"prototype",{writable:!1}),l}function n(l,d){if(!(l instanceof d))throw new TypeError("Cannot call a class as a function")}function r(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(d&&d.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),d&&s(l,d)}function s(l,d){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,P){return S.__proto__=P,S},s(l,d)}function i(l){var d=b();return function(){var S=h(l),P;if(d){var k=h(this).constructor;P=Reflect.construct(S,arguments,k)}else P=S.apply(this,arguments);return c(this,P)}}function c(l,d){if(d&&(e(d)==="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f(l)}function f(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function h(l){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)},h(l)}var p={},D,g;function E(l,d,y){y||(y=Error);function S(k,Y,B){return typeof d=="string"?d:d(k,Y,B)}var P=function(k){r(B,k);var Y=i(B);function B(z,K,H){var Q;return n(this,B),Q=Y.call(this,S(z,K,H)),Q.code=l,Q}return t(B)}(y);p[l]=P}function v(l,d){if(Array.isArray(l)){var y=l.length;return l=l.map(function(S){return String(S)}),y>2?"one of ".concat(d," ").concat(l.slice(0,y-1).join(", "),", or ")+l[y-1]:y===2?"one of ".concat(d," ").concat(l[0]," or ").concat(l[1]):"of ".concat(d," ").concat(l[0])}else return"of ".concat(d," ").concat(String(l))}function R(l,d,y){return l.substr(0,d.length)===d}function T(l,d,y){return(y===void 0||y>l.length)&&(y=l.length),l.substring(y-d.length,y)===d}function u(l,d,y){return typeof y!="number"&&(y=0),y+d.length>l.length?!1:l.indexOf(d,y)!==-1}return E("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),E("ERR_INVALID_ARG_TYPE",function(l,d,y){D===void 0&&(D=Nr()),D(typeof l=="string","'name' must be a string");var S;typeof d=="string"&&R(d,"not ")?(S="must not be",d=d.replace(/^not /,"")):S="must be";var P;if(T(l," argument"))P="The ".concat(l," ").concat(S," ").concat(v(d,"type"));else{var k=u(l,".")?"property":"argument";P='The "'.concat(l,'" ').concat(k," ").concat(S," ").concat(v(d,"type"))}return P+=". Received type ".concat(e(y)),P},TypeError),E("ERR_INVALID_ARG_VALUE",function(l,d){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";g===void 0&&(g=Ot);var S=g.inspect(d);return S.length>128&&(S="".concat(S.slice(0,128),"...")),"The argument '".concat(l,"' ").concat(y,". Received ").concat(S)},TypeError),E("ERR_INVALID_RETURN_VALUE",function(l,d,y){var S;return y&&y.constructor&&y.constructor.name?S="instance of ".concat(y.constructor.name):S="type ".concat(e(y)),"Expected ".concat(l,' to be returned from the "').concat(d,'"')+" function but got ".concat(S,".")},TypeError),E("ERR_MISSING_ARGS",function(){for(var l=arguments.length,d=new Array(l),y=0;y<l;y++)d[y]=arguments[y];D===void 0&&(D=Nr()),D(d.length>0,"At least one arg needs to be specified");var S="The ",P=d.length;switch(d=d.map(function(k){return'"'.concat(k,'"')}),P){case 1:S+="".concat(d[0]," argument");break;case 2:S+="".concat(d[0]," and ").concat(d[1]," arguments");break;default:S+=d.slice(0,P-1).join(", "),S+=", and ".concat(d[P-1]," arguments");break}return"".concat(S," must be specified")},TypeError),fr.codes=p,fr}var pr,Rn;function Qi(){if(Rn)return pr;Rn=1;function e(I,N){var G=Object.keys(I);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(I);N&&(U=U.filter(function($){return Object.getOwnPropertyDescriptor(I,$).enumerable})),G.push.apply(G,U)}return G}function t(I){for(var N=1;N<arguments.length;N++){var G=arguments[N]!=null?arguments[N]:{};N%2?e(Object(G),!0).forEach(function(U){n(I,U,G[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(G)):e(Object(G)).forEach(function(U){Object.defineProperty(I,U,Object.getOwnPropertyDescriptor(G,U))})}return I}function n(I,N,G){return N=c(N),N in I?Object.defineProperty(I,N,{value:G,enumerable:!0,configurable:!0,writable:!0}):I[N]=G,I}function r(I,N){if(!(I instanceof N))throw new TypeError("Cannot call a class as a function")}function s(I,N){for(var G=0;G<N.length;G++){var U=N[G];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(I,c(U.key),U)}}function i(I,N,G){return N&&s(I.prototype,N),Object.defineProperty(I,"prototype",{writable:!1}),I}function c(I){var N=f(I,"string");return l(N)==="symbol"?N:String(N)}function f(I,N){if(l(I)!=="object"||I===null)return I;var G=I[Symbol.toPrimitive];if(G!==void 0){var U=G.call(I,N||"default");if(l(U)!=="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return(N==="string"?String:Number)(I)}function b(I,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(N&&N.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),Object.defineProperty(I,"prototype",{writable:!1}),N&&T(I,N)}function h(I){var N=v();return function(){var U=u(I),$;if(N){var j=u(this).constructor;$=Reflect.construct(U,arguments,j)}else $=U.apply(this,arguments);return p(this,$)}}function p(I,N){if(N&&(l(N)==="object"||typeof N=="function"))return N;if(N!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D(I)}function D(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function g(I){var N=typeof Map=="function"?new Map:void 0;return g=function(U){if(U===null||!R(U))return U;if(typeof U!="function")throw new TypeError("Super expression must either be null or a function");if(typeof N<"u"){if(N.has(U))return N.get(U);N.set(U,$)}function $(){return E(U,arguments,u(this).constructor)}return $.prototype=Object.create(U.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),T($,U)},g(I)}function E(I,N,G){return v()?E=Reflect.construct.bind():E=function($,j,x){var w=[null];w.push.apply(w,j);var L=Function.bind.apply($,w),M=new L;return x&&T(M,x.prototype),M},E.apply(null,arguments)}function v(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function R(I){return Function.toString.call(I).indexOf("[native code]")!==-1}function T(I,N){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(U,$){return U.__proto__=$,U},T(I,N)}function u(I){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},u(I)}function l(I){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},l(I)}var d=Ot,y=d.inspect,S=Oo(),P=S.codes.ERR_INVALID_ARG_TYPE;function k(I,N,G){return(G===void 0||G>I.length)&&(G=I.length),I.substring(G-N.length,G)===N}function Y(I,N){if(N=Math.floor(N),I.length==0||N==0)return"";var G=I.length*N;for(N=Math.floor(Math.log(N)/Math.log(2));N;)I+=I,N--;return I+=I.substring(0,G-I.length),I}var B="",z="",K="",H="",Q={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},ae=10;function pe(I){var N=Object.keys(I),G=Object.create(Object.getPrototypeOf(I));return N.forEach(function(U){G[U]=I[U]}),Object.defineProperty(G,"message",{value:I.message}),G}function te(I){return y(I,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function ue(I,N,G){var U="",$="",j=0,x="",w=!1,L=te(I),M=L.split(`
1
+ import{aQ as ro,aR as no,j as o,gk as cs,r as _,cw as _r,gl as us,gm as Ot,fj as $e,gn as ds,go as fs,gp as oo,gq as ps,gr as ms,gs as hs,gt as so,gu as gs,gv as Lr,gw as bs,gx as ys,gy as vs,gz as xs,fk as kr,fl as Fr,gA as io,bw as ws,H as Cs,bl as Ts,d4 as xn,fc as Ss,J as Ps,c4 as ze,c3 as He,b_ as be,c0 as X,c2 as ke,c7 as We,c8 as Le,a6 as Ur,k as Be,dd as js,cm as Ds,fg as ao,V as pt,dP as Wt,cl as lo,c6 as co,dj as Yt,ek as $r,v as mt,P as a,an as uo,gB as Vr,bj as wn,F as Es,bi as _e,bF as fo,Q as At,bm as ks,m as Fe,N as fe,gC as Rs,bs as Ue,aU as Br,S as Rr,U as Ir,ax as Is,fd as Os,gD as qr,ay as ht,D as dt,B as Oe,C as Tt,t as Kr,Y as wt,Z as nt,gE as As,h as Or,a$ as Ns,w as Ms,x as _s,n as Ae,fN as Ls,f as _t,ag as Lt,bG as gt,z as ot,gF as Fs,b as tt,dq as Us,o as Ft,E as ft,aC as Gt,c$ as $s,gG as Vs,gH as po,gI as Zt,gJ as Bs,fe as Cn,W as zr,e6 as qs,cT as Ks,bx as mo,by as ho,bz as zs,aI as Hs,bv as go,gK as bo,aX as Ws,gL as yo,aJ as Ys,ac as Gs,a4 as Zs,cS as Qs,R as Js,bI as Xs,aZ as ei,X as ti,O as ri}from"./index-KdOmwCM0.js";import{d as Qt}from"./Add-B5o3lKZ4.js";import{d as ni}from"./ViewList-BYQ2Wo2N.js";import{D as vo,g as oi}from"./index-BhA9P09u.js";import{R as xo,U as si}from"./resource-dialog-CnEGcfR6.js";import{W as wo}from"./url-evaluation-BMmqZ9Xm.js";import{u as Ye}from"./team-DTa9igye.js";import{u as Co}from"./blocklet-DgGtZNCB.js";import{P as rt}from"./permission-DR4c0ARF.js";import{C as nr}from"./click-to-copy-mgHOJgOu.js";import{u as Qe,a as it,f as Ze,s as bt,S as ii,g as ai,P as Hr,b as li,c as To,d as Wr,e as Yr,h as Gr,i as Zr,j as Jt,k as or,D as So,M as Rt,l as ci,v as ui,m as di,n as fi,o as Po,p as Xt,q as pi,r as mi,t as Nt,w as Tn,x as Sn,y as et,z as Kt,A as hi,T as gi,B as bi,C as yi,E as vi,V as xi,F as Ct,G as wi,H as jo,I as Ci,J as Ti,K as Si,L as Pi,N as ji}from"./AdapterDayjs-DN3WVSzh.js";import{u as Re}from"./useThemeProps-BT_RONtx.js";import{a as Di,t as Ei,b as Pn,T as ki}from"./index-DPJjuq8y.js";import{r as Do}from"./refType-BFp6Mdcn.js";import{I as Me}from"./index-yrfr0MWP.js";import{d as Ri}from"./Verified-oP4ZelZh.js";import{d as Ii}from"./DeleteOutline-B4zcgGCZ.js";import{d as jn}from"./ErrorOutline-cX4XY61i.js";import{E as Eo}from"./index-D6UMpm4p.js";import{d as Oi}from"./Search-DnEqCvoa.js";import{N as Ai}from"./index-CCAZAiY9.js";import{d as Ni}from"./Delete-DpNbJCJA.js";import{A as Mi}from"./actions-C1blhdkh.js";import{S as _i}from"./shorten-label-B1taCLSu.js";var Qr={},Li=no;Object.defineProperty(Qr,"__esModule",{value:!0});var ko=Qr.default=void 0,Fi=Li(ro()),Ui=o;ko=Qr.default=(0,Fi.default)((0,Ui.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"}),"Loop");var Jr=function(e){return o.jsxs("svg",{...e,children:[o.jsx("g",{clipPath:"url(#clip0)",children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99997 1.59778C8.19071 1.59778 7.39961 1.83775 6.72673 2.28736C6.05385 2.73697 5.5294 3.37601 5.21971 4.12367C4.91001 4.87134 4.82898 5.69405 4.98686 6.48777C5.14474 7.28149 5.53444 8.01056 6.10668 8.5828C6.67892 9.15504 7.408 9.54474 8.20172 9.70262C8.99544 9.8605 9.81815 9.77947 10.5658 9.46978C11.3135 9.16009 11.9525 8.63564 12.4021 7.96276C12.8517 7.28987 13.0917 6.49878 13.0917 5.68951C13.0917 4.60432 12.6606 3.56357 11.8933 2.79622C11.1259 2.02887 10.0852 1.59778 8.99997 1.59778ZM7.27426 3.9638C7.73195 3.50611 8.35271 3.24899 8.99997 3.24899C9.48266 3.24899 9.95452 3.39212 10.3559 3.66029C10.7572 3.92846 11.07 4.30962 11.2547 4.75556C11.4394 5.20151 11.4878 5.69222 11.3936 6.16563C11.2994 6.63905 11.067 7.07391 10.7257 7.41522C10.3844 7.75654 9.94951 7.98897 9.4761 8.08314C9.00268 8.17731 8.51197 8.12898 8.06603 7.94426C7.62008 7.75954 7.23892 7.44674 6.97075 7.04539C6.70258 6.64405 6.55945 6.1722 6.55945 5.68951C6.55945 5.04224 6.81658 4.42149 7.27426 3.9638ZM7.36691 10.3075C6.28172 10.3075 5.24097 10.7385 4.47362 11.5059C3.70627 12.2732 3.27518 13.314 3.27518 14.3992V17.121C3.27518 17.2763 3.4011 17.4022 3.55643 17.4022H4.64514C4.80047 17.4022 4.92639 17.2763 4.92639 17.121V14.3992C4.92639 13.7519 5.18351 13.1312 5.6412 12.6735C6.09889 12.2158 6.71964 11.9587 7.36691 11.9587H10.633C10.9535 11.9587 11.2709 12.0218 11.567 12.1444C11.8631 12.2671 12.1321 12.4469 12.3588 12.6735C12.5854 12.9001 12.7651 13.1691 12.8878 13.4652C13.0104 13.7613 13.0736 14.0787 13.0736 14.3992V17.121C13.0736 17.2763 13.1995 17.4022 13.3548 17.4022H14.4435C14.5989 17.4022 14.7248 17.2763 14.7248 17.121V14.3992C14.7248 13.314 14.2937 12.2732 13.5263 11.5059C12.759 10.7385 11.7182 10.3075 10.633 10.3075H7.36691Z"})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0",children:o.jsx("rect",{width:"18",height:"18",transform:"translate(0 0.5)"})})})]})};Jr.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};Jr.displayName="person";const $i=Jr;var Xr=function(e){return o.jsxs("svg",{...e,children:[o.jsx("path",{d:"M1.25 2.7087C1.25 2.24826 1.62326 1.875 2.0837 1.875H14.339C14.7995 1.875 15.1727 2.24826 15.1727 2.7087V9.31574C15.1727 9.77618 14.7995 10.1494 14.339 10.1494C13.8786 10.1494 13.5053 9.77618 13.5053 9.31574V3.54239H2.91739V16.7565H6.53772H8.34788H9.32435C9.78479 16.7565 10.158 17.1297 10.158 17.5902C10.158 18.0506 9.78479 18.4239 9.32435 18.4239H8.34788H2.0837C1.62326 18.4239 1.25 18.0506 1.25 17.5902V2.7087Z"}),o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.21129 7.91935C7.70481 7.91935 7.29422 8.32993 7.29422 8.83641C7.29422 9.34289 7.70481 9.75348 8.21129 9.75348C8.71777 9.75348 9.12836 9.34289 9.12836 8.83641C9.12836 8.32993 8.71777 7.91935 8.21129 7.91935ZM5.62683 8.83641C5.62683 7.40905 6.78393 6.25195 8.21129 6.25195C9.63865 6.25195 10.7957 7.40905 10.7957 8.83641C10.7957 10.2638 9.63865 11.4209 8.21129 11.4209C6.78393 11.4209 5.62683 10.2638 5.62683 8.83641Z"}),o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.62683 13.2133C5.62683 12.7529 6.00009 12.3796 6.46053 12.3796H9.96205C10.4225 12.3796 10.7957 12.7529 10.7957 13.2133C10.7957 13.6737 10.4225 14.047 9.96205 14.047H6.46053C6.00009 14.047 5.62683 13.6737 5.62683 13.2133Z"}),o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6406 11.3125C15.8547 11.3125 16.0503 11.434 16.145 11.626L17.1779 13.7184L19.4876 14.056C19.6994 14.087 19.8753 14.2355 19.9413 14.4391C20.0074 14.6427 19.9521 14.8662 19.7987 15.0156L18.1279 16.643L18.5222 18.9421C18.5584 19.1532 18.4716 19.3665 18.2984 19.4923C18.1252 19.6182 17.8955 19.6347 17.706 19.5351L15.6406 18.4489L13.5753 19.5351C13.3858 19.6347 13.1561 19.6182 12.9829 19.4923C12.8096 19.3665 12.7229 19.1532 12.7591 18.9421L13.1534 16.643L11.4825 15.0156C11.3292 14.8662 11.2739 14.6427 11.3399 14.4391C11.406 14.2355 11.5818 14.087 11.7937 14.056L14.1034 13.7184L15.1362 11.626C15.231 11.434 15.4265 11.3125 15.6406 11.3125ZM15.6406 13.1458L14.9815 14.4813C14.8996 14.6471 14.7414 14.7621 14.5584 14.7889L13.0835 15.0044L14.1503 16.0435C14.283 16.1727 14.3435 16.359 14.3122 16.5416L14.0606 18.0088L15.3788 17.3155C15.5427 17.2293 15.7386 17.2293 15.9025 17.3155L17.2207 18.0088L16.969 16.5416C16.9377 16.359 16.9983 16.1727 17.131 16.0435L18.1978 15.0044L16.7229 14.7889C16.5399 14.7621 16.3817 14.6471 16.2998 14.4813L15.6406 13.1458Z"})]})};Xr.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};Xr.displayName="external-issuer";const Ro=Xr;var zt={},Vi=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Io="%[a-f0-9]{2}",Dn=new RegExp("("+Io+")|([^%]+?)","gi"),En=new RegExp("("+Io+")+","gi");function Ar(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],Ar(n),Ar(r))}function Bi(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Dn)||[],n=1;n<t.length;n++)e=Ar(t,n).join(""),t=e.match(Dn)||[];return e}}function qi(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=En.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{var r=Bi(n[0]);r!==n[0]&&(t[n[0]]=r)}n=En.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),i=0;i<s.length;i++){var c=s[i];e=e.replace(new RegExp(c,"g"),t[c])}return e}var Ki=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return qi(e)}},zi=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]},Hi=function(e,t){for(var n={},r=Object.keys(e),s=Array.isArray(t),i=0;i<r.length;i++){var c=r[i],f=e[c];(s?t.indexOf(c)!==-1:t(c,f,e))&&(n[c]=f)}return n};(function(e){const t=Vi,n=Ki,r=zi,s=Hi,i=u=>u==null;function c(u){switch(u.arrayFormat){case"index":return l=>(d,y)=>{const S=d.length;return y===void 0||u.skipNull&&y===null||u.skipEmptyString&&y===""?d:y===null?[...d,[h(l,u),"[",S,"]"].join("")]:[...d,[h(l,u),"[",h(S,u),"]=",h(y,u)].join("")]};case"bracket":return l=>(d,y)=>y===void 0||u.skipNull&&y===null||u.skipEmptyString&&y===""?d:y===null?[...d,[h(l,u),"[]"].join("")]:[...d,[h(l,u),"[]=",h(y,u)].join("")];case"comma":case"separator":return l=>(d,y)=>y==null||y.length===0?d:d.length===0?[[h(l,u),"=",h(y,u)].join("")]:[[d,h(y,u)].join(u.arrayFormatSeparator)];default:return l=>(d,y)=>y===void 0||u.skipNull&&y===null||u.skipEmptyString&&y===""?d:y===null?[...d,h(l,u)]:[...d,[h(l,u),"=",h(y,u)].join("")]}}function f(u){let l;switch(u.arrayFormat){case"index":return(d,y,S)=>{if(l=/\[(\d*)\]$/.exec(d),d=d.replace(/\[\d*\]$/,""),!l){S[d]=y;return}S[d]===void 0&&(S[d]={}),S[d][l[1]]=y};case"bracket":return(d,y,S)=>{if(l=/(\[\])$/.exec(d),d=d.replace(/\[\]$/,""),!l){S[d]=y;return}if(S[d]===void 0){S[d]=[y];return}S[d]=[].concat(S[d],y)};case"comma":case"separator":return(d,y,S)=>{const P=typeof y=="string"&&y.includes(u.arrayFormatSeparator),k=typeof y=="string"&&!P&&p(y,u).includes(u.arrayFormatSeparator);y=k?p(y,u):y;const Y=P||k?y.split(u.arrayFormatSeparator).map(B=>p(B,u)):y===null?y:p(y,u);S[d]=Y};default:return(d,y,S)=>{if(S[d]===void 0){S[d]=y;return}S[d]=[].concat(S[d],y)}}}function b(u){if(typeof u!="string"||u.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function h(u,l){return l.encode?l.strict?t(u):encodeURIComponent(u):u}function p(u,l){return l.decode?n(u):u}function D(u){return Array.isArray(u)?u.sort():typeof u=="object"?D(Object.keys(u)).sort((l,d)=>Number(l)-Number(d)).map(l=>u[l]):u}function g(u){const l=u.indexOf("#");return l!==-1&&(u=u.slice(0,l)),u}function E(u){let l="";const d=u.indexOf("#");return d!==-1&&(l=u.slice(d)),l}function v(u){u=g(u);const l=u.indexOf("?");return l===-1?"":u.slice(l+1)}function R(u,l){return l.parseNumbers&&!Number.isNaN(Number(u))&&typeof u=="string"&&u.trim()!==""?u=Number(u):l.parseBooleans&&u!==null&&(u.toLowerCase()==="true"||u.toLowerCase()==="false")&&(u=u.toLowerCase()==="true"),u}function T(u,l){l=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},l),b(l.arrayFormatSeparator);const d=f(l),y=Object.create(null);if(typeof u!="string"||(u=u.trim().replace(/^[?#&]/,""),!u))return y;for(const S of u.split("&")){if(S==="")continue;let[P,k]=r(l.decode?S.replace(/\+/g," "):S,"=");k=k===void 0?null:["comma","separator"].includes(l.arrayFormat)?k:p(k,l),d(p(P,l),k,y)}for(const S of Object.keys(y)){const P=y[S];if(typeof P=="object"&&P!==null)for(const k of Object.keys(P))P[k]=R(P[k],l);else y[S]=R(P,l)}return l.sort===!1?y:(l.sort===!0?Object.keys(y).sort():Object.keys(y).sort(l.sort)).reduce((S,P)=>{const k=y[P];return k&&typeof k=="object"&&!Array.isArray(k)?S[P]=D(k):S[P]=k,S},Object.create(null))}e.extract=v,e.parse=T,e.stringify=(u,l)=>{if(!u)return"";l=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},l),b(l.arrayFormatSeparator);const d=k=>l.skipNull&&i(u[k])||l.skipEmptyString&&u[k]==="",y=c(l),S={};for(const k of Object.keys(u))d(k)||(S[k]=u[k]);const P=Object.keys(S);return l.sort!==!1&&P.sort(l.sort),P.map(k=>{const Y=u[k];return Y===void 0?"":Y===null?h(k,l):Array.isArray(Y)?Y.reduce(y(k),[]).join("&"):h(k,l)+"="+h(Y,l)}).filter(k=>k.length>0).join("&")},e.parseUrl=(u,l)=>{l=Object.assign({decode:!0},l);const[d,y]=r(u,"#");return Object.assign({url:d.split("?")[0]||"",query:T(v(u),l)},l&&l.parseFragmentIdentifier&&y?{fragmentIdentifier:p(y,l)}:{})},e.stringifyUrl=(u,l)=>{l=Object.assign({encode:!0,strict:!0},l);const d=g(u.url).split("?")[0]||"",y=e.extract(u.url),S=e.parse(y,{sort:!1}),P=Object.assign(S,u.query);let k=e.stringify(P,l);k&&(k=`?${k}`);let Y=E(u.url);return u.fragmentIdentifier&&(Y=`#${h(u.fragmentIdentifier,l)}`),`${d}${k}${Y}`},e.pick=(u,l,d)=>{d=Object.assign({parseFragmentIdentifier:!0},d);const{url:y,query:S,fragmentIdentifier:P}=e.parseUrl(u,d);return e.stringifyUrl({url:y,query:s(S,l),fragmentIdentifier:P},d)},e.exclude=(u,l,d)=>{const y=Array.isArray(l)?S=>!l.includes(S):(S,P)=>!l(S,P);return e.pick(u,y,d)}})(zt);const Et=us,Wi={parseNumbers:!1,parseBooleans:!1},Yi={skipNull:!1,skipEmptyString:!1},Gi=(e,t)=>{var n,r;const{navigateMode:s="push",parseOptions:i,stringifyOptions:c}={},f=Object.assign(Object.assign({},Wi),i),b=Object.assign(Object.assign({},Yi),c),h=Et.useLocation(),p=(n=Et.useHistory)===null||n===void 0?void 0:n.call(Et),D=(r=Et.useNavigate)===null||r===void 0?void 0:r.call(Et),g=cs(),E=_.useRef(typeof e=="function"?e():e||{}),v=_.useMemo(()=>zt.parse(h.search,f),[h.search]),R=_.useMemo(()=>Object.assign(Object.assign({},E.current),v),[v]);return[R,_r(u=>{const l=typeof u=="function"?u(R):u;g(),p&&p[s]({hash:h.hash,search:zt.stringify(Object.assign(Object.assign({},v),l),b)||"?"},h.state),D&&D({hash:h.hash,search:zt.stringify(Object.assign(Object.assign({},v),l),b)||"?"},{replace:s==="replace",state:h.state})})]},Zi=Gi;var dr={exports:{}},fr={},kn;function Oo(){if(kn)return fr;kn=1;function e(l){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(l)}function t(l,d,y){return Object.defineProperty(l,"prototype",{writable:!1}),l}function n(l,d){if(!(l instanceof d))throw new TypeError("Cannot call a class as a function")}function r(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(d&&d.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),d&&s(l,d)}function s(l,d){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,P){return S.__proto__=P,S},s(l,d)}function i(l){var d=b();return function(){var S=h(l),P;if(d){var k=h(this).constructor;P=Reflect.construct(S,arguments,k)}else P=S.apply(this,arguments);return c(this,P)}}function c(l,d){if(d&&(e(d)==="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f(l)}function f(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function h(l){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)},h(l)}var p={},D,g;function E(l,d,y){y||(y=Error);function S(k,Y,B){return typeof d=="string"?d:d(k,Y,B)}var P=function(k){r(B,k);var Y=i(B);function B(z,K,H){var Q;return n(this,B),Q=Y.call(this,S(z,K,H)),Q.code=l,Q}return t(B)}(y);p[l]=P}function v(l,d){if(Array.isArray(l)){var y=l.length;return l=l.map(function(S){return String(S)}),y>2?"one of ".concat(d," ").concat(l.slice(0,y-1).join(", "),", or ")+l[y-1]:y===2?"one of ".concat(d," ").concat(l[0]," or ").concat(l[1]):"of ".concat(d," ").concat(l[0])}else return"of ".concat(d," ").concat(String(l))}function R(l,d,y){return l.substr(0,d.length)===d}function T(l,d,y){return(y===void 0||y>l.length)&&(y=l.length),l.substring(y-d.length,y)===d}function u(l,d,y){return typeof y!="number"&&(y=0),y+d.length>l.length?!1:l.indexOf(d,y)!==-1}return E("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),E("ERR_INVALID_ARG_TYPE",function(l,d,y){D===void 0&&(D=Nr()),D(typeof l=="string","'name' must be a string");var S;typeof d=="string"&&R(d,"not ")?(S="must not be",d=d.replace(/^not /,"")):S="must be";var P;if(T(l," argument"))P="The ".concat(l," ").concat(S," ").concat(v(d,"type"));else{var k=u(l,".")?"property":"argument";P='The "'.concat(l,'" ').concat(k," ").concat(S," ").concat(v(d,"type"))}return P+=". Received type ".concat(e(y)),P},TypeError),E("ERR_INVALID_ARG_VALUE",function(l,d){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";g===void 0&&(g=Ot);var S=g.inspect(d);return S.length>128&&(S="".concat(S.slice(0,128),"...")),"The argument '".concat(l,"' ").concat(y,". Received ").concat(S)},TypeError),E("ERR_INVALID_RETURN_VALUE",function(l,d,y){var S;return y&&y.constructor&&y.constructor.name?S="instance of ".concat(y.constructor.name):S="type ".concat(e(y)),"Expected ".concat(l,' to be returned from the "').concat(d,'"')+" function but got ".concat(S,".")},TypeError),E("ERR_MISSING_ARGS",function(){for(var l=arguments.length,d=new Array(l),y=0;y<l;y++)d[y]=arguments[y];D===void 0&&(D=Nr()),D(d.length>0,"At least one arg needs to be specified");var S="The ",P=d.length;switch(d=d.map(function(k){return'"'.concat(k,'"')}),P){case 1:S+="".concat(d[0]," argument");break;case 2:S+="".concat(d[0]," and ").concat(d[1]," arguments");break;default:S+=d.slice(0,P-1).join(", "),S+=", and ".concat(d[P-1]," arguments");break}return"".concat(S," must be specified")},TypeError),fr.codes=p,fr}var pr,Rn;function Qi(){if(Rn)return pr;Rn=1;function e(I,N){var G=Object.keys(I);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(I);N&&(U=U.filter(function($){return Object.getOwnPropertyDescriptor(I,$).enumerable})),G.push.apply(G,U)}return G}function t(I){for(var N=1;N<arguments.length;N++){var G=arguments[N]!=null?arguments[N]:{};N%2?e(Object(G),!0).forEach(function(U){n(I,U,G[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(G)):e(Object(G)).forEach(function(U){Object.defineProperty(I,U,Object.getOwnPropertyDescriptor(G,U))})}return I}function n(I,N,G){return N=c(N),N in I?Object.defineProperty(I,N,{value:G,enumerable:!0,configurable:!0,writable:!0}):I[N]=G,I}function r(I,N){if(!(I instanceof N))throw new TypeError("Cannot call a class as a function")}function s(I,N){for(var G=0;G<N.length;G++){var U=N[G];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(I,c(U.key),U)}}function i(I,N,G){return N&&s(I.prototype,N),Object.defineProperty(I,"prototype",{writable:!1}),I}function c(I){var N=f(I,"string");return l(N)==="symbol"?N:String(N)}function f(I,N){if(l(I)!=="object"||I===null)return I;var G=I[Symbol.toPrimitive];if(G!==void 0){var U=G.call(I,N||"default");if(l(U)!=="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return(N==="string"?String:Number)(I)}function b(I,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(N&&N.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),Object.defineProperty(I,"prototype",{writable:!1}),N&&T(I,N)}function h(I){var N=v();return function(){var U=u(I),$;if(N){var j=u(this).constructor;$=Reflect.construct(U,arguments,j)}else $=U.apply(this,arguments);return p(this,$)}}function p(I,N){if(N&&(l(N)==="object"||typeof N=="function"))return N;if(N!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D(I)}function D(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function g(I){var N=typeof Map=="function"?new Map:void 0;return g=function(U){if(U===null||!R(U))return U;if(typeof U!="function")throw new TypeError("Super expression must either be null or a function");if(typeof N<"u"){if(N.has(U))return N.get(U);N.set(U,$)}function $(){return E(U,arguments,u(this).constructor)}return $.prototype=Object.create(U.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),T($,U)},g(I)}function E(I,N,G){return v()?E=Reflect.construct.bind():E=function($,j,x){var w=[null];w.push.apply(w,j);var L=Function.bind.apply($,w),M=new L;return x&&T(M,x.prototype),M},E.apply(null,arguments)}function v(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function R(I){return Function.toString.call(I).indexOf("[native code]")!==-1}function T(I,N){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(U,$){return U.__proto__=$,U},T(I,N)}function u(I){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},u(I)}function l(I){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},l(I)}var d=Ot,y=d.inspect,S=Oo(),P=S.codes.ERR_INVALID_ARG_TYPE;function k(I,N,G){return(G===void 0||G>I.length)&&(G=I.length),I.substring(G-N.length,G)===N}function Y(I,N){if(N=Math.floor(N),I.length==0||N==0)return"";var G=I.length*N;for(N=Math.floor(Math.log(N)/Math.log(2));N;)I+=I,N--;return I+=I.substring(0,G-I.length),I}var B="",z="",K="",H="",Q={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},ae=10;function pe(I){var N=Object.keys(I),G=Object.create(Object.getPrototypeOf(I));return N.forEach(function(U){G[U]=I[U]}),Object.defineProperty(G,"message",{value:I.message}),G}function te(I){return y(I,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function ue(I,N,G){var U="",$="",j=0,x="",w=!1,L=te(I),M=L.split(`
2
2
  `),F=te(N).split(`
3
3
  `),Z=0,re="";if(G==="strictEqual"&&l(I)==="object"&&l(N)==="object"&&I!==null&&N!==null&&(G="strictEqualObject"),M.length===1&&F.length===1&&M[0]!==F[0]){var oe=M[0].length+F[0].length;if(oe<=ae){if((l(I)!=="object"||I===null)&&(l(N)!=="object"||N===null)&&(I!==0||N!==0))return"".concat(Q[G],`
4
4
 
@@ -1,4 +1,4 @@
1
- import{fk as qm,bl as s2,i7 as tT,be as Km,br as jm,bh as l2,r as u2,bf as Jm}from"./index-DdJGYtAD.js";/*! *****************************************************************************
1
+ import{fk as qm,bl as s2,i7 as tT,be as Km,br as jm,bh as l2,r as u2,bf as Jm}from"./index-KdOmwCM0.js";/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BjeR522b.js","./index-DdJGYtAD.js","./index-2qex5JRJ.css"])))=>i.map(i=>d[i]);
2
- import{r as p,cx as B,cy as X,cz as G,cA as H,aQ as q,aR as O,j as s,n as $,P as j,F as Q,aU as V,f as J,cB as K,w as _,N as x,cC as Y,W as Z,B as I,bc as ee,k as M,cD as E,L as te,cE as se,bE as ae,cF as oe,cG as ne,u as re,x as ie,ar as ce,bC as le,ah as pe}from"./index-DdJGYtAD.js";import{d as de}from"./ViewList-DsKTRqlV.js";import{d as ue}from"./Done-DHtSx1Az.js";import{N as me}from"./index-CwQN21sJ.js";import{w as fe}from"./wrap-locale-B7QlLuiz.js";import{g as he}from"./get-safe-url-DaO0zNfp.js";import{S as xe,a as ge,b as ve}from"./Stepper-CZhNWrms.js";import"./emotion-react.browser.esm-DwVz9Uas.js";var k=function(t){if(!t)return 0;var r=H(t).valueOf()-Date.now();return r<0?0:r},be=function(t){return{days:Math.floor(t/864e5),hours:Math.floor(t/36e5)%24,minutes:Math.floor(t/6e4)%60,seconds:Math.floor(t/1e3)%60,milliseconds:Math.floor(t)%1e3}},we=function(t){t===void 0&&(t={});var r=t||{},l=r.leftTime,i=r.targetDate,d=r.interval,v=d===void 0?1e3:d,b=r.onEnd,g=p.useMemo(function(){return B(l)&&l>0?Date.now()+l:void 0},[l]),a="leftTime"in t?g:i,m=X(p.useState(function(){return k(a)}),2),f=m[0],u=m[1],o=G(b);p.useEffect(function(){if(!a){u(0);return}u(k(a));var w=setInterval(function(){var n,c=k(a);u(c),c===0&&(clearInterval(w),(n=o.current)===null||n===void 0||n.call(o))},v);return function(){return clearInterval(w)}},[a,v]);var y=p.useMemo(function(){return be(f)},[f]);return[f,y]},P={},ye=O;Object.defineProperty(P,"__esModule",{value:!0});var R=P.default=void 0,je=ye(q()),Se=s;R=P.default=(0,je.default)((0,Se.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}),"GetApp");function T({list:t,width:r,height:l,cardSpace:i,onSelect:d,defaultIndex:v}){const[b,g]=p.useState(0),[a,m]=p.useState(0),f=p.useRef(null),u=n=>{if(n<0||n>t.length-1)return;g(n);const c=f.current.clientWidth;m(n*(r+i)-(c-r)/2+i*.5),d(n)};p.useEffect(()=>{u(v);const n=c=>c.preventDefault();f.current.addEventListener("touchmove",n,{passive:!1})},[]);let o;const y=n=>{o=n.touches[0].clientX},w=n=>{const c=n.changedTouches[0],S=o-c.clientX;Math.abs(S)>60&&(S>0?u(b+1):u(b-1))};return s.jsx(ke,{ref:f,onTouchStart:y,onTouchEnd:w,children:s.jsx("div",{className:"card-container",style:{transform:`translate(${-a}px, 0)`},children:t.map((n,c)=>s.jsx("div",{className:`card-item ${c===b?"selected":""}`,style:{width:r,height:l,margin:i/2},onClick:()=>u(c),children:n.display?s.jsx("div",{className:"card-content",children:s.jsx(me,{data:n.display,style:{width:"100%",height:"100%"}})}):s.jsx("div",{className:"card-content",dangerouslySetInnerHTML:{__html:n.src}})},n.id))})})}const ke=$.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DLm8Ub_j.js","./index-KdOmwCM0.js","./index-2qex5JRJ.css"])))=>i.map(i=>d[i]);
2
+ import{r as p,cx as B,cy as X,cz as G,cA as H,aQ as q,aR as O,j as s,n as $,P as j,F as Q,aU as V,f as J,cB as K,w as _,N as x,cC as Y,W as Z,B as I,bc as ee,k as M,cD as E,L as te,cE as se,bE as ae,cF as oe,cG as ne,u as re,x as ie,ar as ce,bC as le,ah as pe}from"./index-KdOmwCM0.js";import{d as de}from"./ViewList-BYQ2Wo2N.js";import{d as ue}from"./Done-CasEZEMQ.js";import{N as me}from"./index-CCAZAiY9.js";import{w as fe}from"./wrap-locale-DB1j-LK3.js";import{g as he}from"./get-safe-url-fVLOWjDv.js";import{S as xe,a as ge,b as ve}from"./Stepper-DfLckKIy.js";import"./emotion-react.browser.esm-DwA9twTe.js";var k=function(t){if(!t)return 0;var r=H(t).valueOf()-Date.now();return r<0?0:r},be=function(t){return{days:Math.floor(t/864e5),hours:Math.floor(t/36e5)%24,minutes:Math.floor(t/6e4)%60,seconds:Math.floor(t/1e3)%60,milliseconds:Math.floor(t)%1e3}},we=function(t){t===void 0&&(t={});var r=t||{},l=r.leftTime,i=r.targetDate,d=r.interval,v=d===void 0?1e3:d,b=r.onEnd,g=p.useMemo(function(){return B(l)&&l>0?Date.now()+l:void 0},[l]),a="leftTime"in t?g:i,m=X(p.useState(function(){return k(a)}),2),f=m[0],u=m[1],o=G(b);p.useEffect(function(){if(!a){u(0);return}u(k(a));var w=setInterval(function(){var n,c=k(a);u(c),c===0&&(clearInterval(w),(n=o.current)===null||n===void 0||n.call(o))},v);return function(){return clearInterval(w)}},[a,v]);var y=p.useMemo(function(){return be(f)},[f]);return[f,y]},P={},ye=O;Object.defineProperty(P,"__esModule",{value:!0});var R=P.default=void 0,je=ye(q()),Se=s;R=P.default=(0,je.default)((0,Se.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}),"GetApp");function T({list:t,width:r,height:l,cardSpace:i,onSelect:d,defaultIndex:v}){const[b,g]=p.useState(0),[a,m]=p.useState(0),f=p.useRef(null),u=n=>{if(n<0||n>t.length-1)return;g(n);const c=f.current.clientWidth;m(n*(r+i)-(c-r)/2+i*.5),d(n)};p.useEffect(()=>{u(v);const n=c=>c.preventDefault();f.current.addEventListener("touchmove",n,{passive:!1})},[]);let o;const y=n=>{o=n.touches[0].clientX},w=n=>{const c=n.changedTouches[0],S=o-c.clientX;Math.abs(S)>60&&(S>0?u(b+1):u(b-1))};return s.jsx(ke,{ref:f,onTouchStart:y,onTouchEnd:w,children:s.jsx("div",{className:"card-container",style:{transform:`translate(${-a}px, 0)`},children:t.map((n,c)=>s.jsx("div",{className:`card-item ${c===b?"selected":""}`,style:{width:r,height:l,margin:i/2},onClick:()=>u(c),children:n.display?s.jsx("div",{className:"card-content",children:s.jsx(me,{data:n.display,style:{width:"100%",height:"100%"}})}):s.jsx("div",{className:"card-content",dangerouslySetInnerHTML:{__html:n.src}})},n.id))})})}const ke=$.div`
3
3
  overflow: hidden;
4
4
  mask-image: linear-gradient(to left, transparent, black 3%, black 97%, transparent);
5
5
  overflow: hidden;
@@ -33,7 +33,7 @@ import{r as p,cx as B,cy as X,cz as G,cA as H,aQ as q,aR as O,j as s,n as $,P as
33
33
  }
34
34
  }
35
35
  }
36
- `;T.propTypes={list:j.array,width:j.number,height:j.number,cardSpace:j.number,onSelect:j.func,defaultIndex:j.number};T.defaultProps={list:"",width:300,height:400,cardSpace:40,onSelect:()=>{},defaultIndex:0};function Pe({icon:t,active:r,completed:l}){const i={1:s.jsx(de,{className:"step-icon"}),2:s.jsx(R,{className:"step-icon"}),3:s.jsx(ue,{className:"step-icon"})},d=["step-icon-w"];return r&&d.push("step-icon-w--active"),l&&d.push("step-icon-w--completed"),s.jsx("div",{className:d.join(" "),children:i[String(t)]})}function Te({SessionContext:t,webWalletUrl:r,createPassportSvg:l,passportColor:i,onLogin:d}){const{api:v,session:b}=p.useContext(t),g=Q(e=>e.breakpoints.down("sm")),a=V({user:null,passport:null,success:!1,activeStep:0}),m=p.useRef({sessionToken:"",refreshToken:""}),{setPassportId:f,clearPassportId:u}=ne(),{t:o,locale:y}=p.useContext(J),{wallet:w}=K(),[n,c]=p.useState(0),{searchParams:S}=new URL(window.location.href),C=()=>{a.activeStep++},W=e=>{a.user=e.user},A=()=>{C()},z=(e,h)=>{e!=null&&e.passportId&&f(e.passportId),e!=null&&e.sessionToken&&(m.current.sessionToken=h(e.sessionToken)),e!=null&&e.refreshToken&&(m.current.refreshToken=h(e.refreshToken)),a.success=!0,C()},U=async()=>{try{await b.logout()}catch(e){console.warn(e)}},N=async()=>{if(w&&E()){ae(()=>import("./index-BjeR522b.js").then(h=>h.i),__vite__mapDeps([0,1,2]),import.meta.url).then(h=>{h.call("arcClosePage")});return}await U(),oe(d)&&d({sessionToken:m.current.sessionToken,refreshToken:m.current.refreshToken});const e=S.get("redirect");if(e){window.location.replace(he(e));return}u(),window.location.replace("/")},F=e=>{a.passport=e.target.value},[D]=we({leftTime:n,onEnd:()=>{N()}}),L=[{label:o("lostPassport.recoverPassport"),content:()=>a.user?s.jsxs(x,{className:"select-passport",children:[s.jsxs(x,{my:1,display:"flex",alignItems:"center",className:"user-info",children:[s.jsx(Y,{src:a.user.avatar,style:{width:48,height:48,backgroundColor:"transparent",marginRight:16}}),s.jsxs(x,{children:[s.jsx(x,{className:"name",children:a.user.fullName}),s.jsx(x,{className:"did",mt:1,children:s.jsx(Z,{responsive:!g,compact:g,did:a.user.did})})]})]}),s.jsx("div",{children:s.jsx(T,{width:g?180:230,height:g?240:306,cardSpace:24,list:a.user.passportTypes.map(e=>({src:l({scope:e.scope,role:e.role,title:e.scope==="kyc"?e.name:e.title,issuer:e.issuer.name,issuerDid:e.issuer.id,ownerDid:a.user.did,ownerName:a.user.fullName,ownerAvatarUrl:a.user.avatar,preferredColor:i||"auto",extra:e.scope==="kyc"?{key:"Email",value:e.name}:void 0}),name:e.title,id:e.id,display:e.display})),onSelect:e=>F({target:{value:a.user.passportTypes[e].id}}),defaultIndex:0})}),s.jsx(x,{textAlign:"center",children:s.jsx(I,{variant:"contained",color:"primary",onClick:()=>A(),disabled:!a.passport,children:o("common.next")})})]}):s.jsx(_,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-list",forceConnected:!1,autoConnect:!1,checkFn:v.get,checkTimeout:10*60*1e3,webWalletUrl:r,onSuccess:W,locale:y,messages:{title:o("lostPassport.recoverDialog.title"),scan:o("lostPassport.recoverDialog.scan"),confirm:o("lostPassport.recoverDialog.confirm"),success:o("lostPassport.recoverDialog.success")}})},{label:o("lostPassport.receivePassport"),content:()=>{var h;const e={receiverDid:a.user.did,passportId:a.passport,teamDid:((h=window==null?void 0:window.blocklet)==null?void 0:h.did)||""};return s.jsx(_,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-issue",checkFn:v.get,checkTimeout:10*60*1e3,webWalletUrl:r,onSuccess:z,locale:y,messages:{title:`${o("lostPassport.receiveDialog.title")}`,scan:o("lostPassport.receiveDialog.scan"),confirm:o("lostPassport.receiveDialog.confirm"),success:o("lostPassport.receiveDialog.success")},extraParams:e})}},{label:o("common.complete"),content:()=>(n===0&&c(3e3),s.jsxs(x,{textAlign:"center",children:[s.jsx(x,{mb:3,color:"success.main",children:s.jsx(ee,{style:{fontSize:60}})}),s.jsx(M,{component:"p",variant:"body1",className:"subheader",children:o("issuePassport.dialog.success")}),s.jsx(M,{component:"p",variant:"body2",color:"gray",children:w&&E()?o("issuePassport.dialog.autoClose",{seconds:Math.round(D/1e3)}):o("issuePassport.dialog.autoJump",{seconds:Math.round(D/1e3)})}),s.jsx(I,{style:{marginTop:40},variant:"contained",color:"primary",onClick:N,children:o("issuePassport.dialog.loginWithPassport")})]}))}];return s.jsx(Ce,{children:s.jsxs("div",{className:"stepper",children:[s.jsx(xe,{className:"stepper-progress",alternativeLabel:!0,activeStep:a.activeStep,children:L.map(({label:e})=>s.jsx(ge,{children:s.jsx(ve,{StepIconComponent:Pe,children:e})},e))}),s.jsx("div",{className:"stepper-content",children:L[a.activeStep].content()}),!a.success&&s.jsx(x,{textAlign:"center",fontSize:12,children:s.jsx(te,{href:"/",sx:{color:"#4598FA",textDecoration:"none"},children:o("lostPassport.return")})})]})})}const Ce=$(se)`
36
+ `;T.propTypes={list:j.array,width:j.number,height:j.number,cardSpace:j.number,onSelect:j.func,defaultIndex:j.number};T.defaultProps={list:"",width:300,height:400,cardSpace:40,onSelect:()=>{},defaultIndex:0};function Pe({icon:t,active:r,completed:l}){const i={1:s.jsx(de,{className:"step-icon"}),2:s.jsx(R,{className:"step-icon"}),3:s.jsx(ue,{className:"step-icon"})},d=["step-icon-w"];return r&&d.push("step-icon-w--active"),l&&d.push("step-icon-w--completed"),s.jsx("div",{className:d.join(" "),children:i[String(t)]})}function Te({SessionContext:t,webWalletUrl:r,createPassportSvg:l,passportColor:i,onLogin:d}){const{api:v,session:b}=p.useContext(t),g=Q(e=>e.breakpoints.down("sm")),a=V({user:null,passport:null,success:!1,activeStep:0}),m=p.useRef({sessionToken:"",refreshToken:""}),{setPassportId:f,clearPassportId:u}=ne(),{t:o,locale:y}=p.useContext(J),{wallet:w}=K(),[n,c]=p.useState(0),{searchParams:S}=new URL(window.location.href),C=()=>{a.activeStep++},W=e=>{a.user=e.user},A=()=>{C()},z=(e,h)=>{e!=null&&e.passportId&&f(e.passportId),e!=null&&e.sessionToken&&(m.current.sessionToken=h(e.sessionToken)),e!=null&&e.refreshToken&&(m.current.refreshToken=h(e.refreshToken)),a.success=!0,C()},U=async()=>{try{await b.logout()}catch(e){console.warn(e)}},N=async()=>{if(w&&E()){ae(()=>import("./index-DLm8Ub_j.js").then(h=>h.i),__vite__mapDeps([0,1,2]),import.meta.url).then(h=>{h.call("arcClosePage")});return}await U(),oe(d)&&d({sessionToken:m.current.sessionToken,refreshToken:m.current.refreshToken});const e=S.get("redirect");if(e){window.location.replace(he(e));return}u(),window.location.replace("/")},F=e=>{a.passport=e.target.value},[D]=we({leftTime:n,onEnd:()=>{N()}}),L=[{label:o("lostPassport.recoverPassport"),content:()=>a.user?s.jsxs(x,{className:"select-passport",children:[s.jsxs(x,{my:1,display:"flex",alignItems:"center",className:"user-info",children:[s.jsx(Y,{src:a.user.avatar,style:{width:48,height:48,backgroundColor:"transparent",marginRight:16}}),s.jsxs(x,{children:[s.jsx(x,{className:"name",children:a.user.fullName}),s.jsx(x,{className:"did",mt:1,children:s.jsx(Z,{responsive:!g,compact:g,did:a.user.did})})]})]}),s.jsx("div",{children:s.jsx(T,{width:g?180:230,height:g?240:306,cardSpace:24,list:a.user.passportTypes.map(e=>({src:l({scope:e.scope,role:e.role,title:e.scope==="kyc"?e.name:e.title,issuer:e.issuer.name,issuerDid:e.issuer.id,ownerDid:a.user.did,ownerName:a.user.fullName,ownerAvatarUrl:a.user.avatar,preferredColor:i||"auto",extra:e.scope==="kyc"?{key:"Email",value:e.name}:void 0}),name:e.title,id:e.id,display:e.display})),onSelect:e=>F({target:{value:a.user.passportTypes[e].id}}),defaultIndex:0})}),s.jsx(x,{textAlign:"center",children:s.jsx(I,{variant:"contained",color:"primary",onClick:()=>A(),disabled:!a.passport,children:o("common.next")})})]}):s.jsx(_,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-list",forceConnected:!1,autoConnect:!1,checkFn:v.get,checkTimeout:10*60*1e3,webWalletUrl:r,onSuccess:W,locale:y,messages:{title:o("lostPassport.recoverDialog.title"),scan:o("lostPassport.recoverDialog.scan"),confirm:o("lostPassport.recoverDialog.confirm"),success:o("lostPassport.recoverDialog.success")}})},{label:o("lostPassport.receivePassport"),content:()=>{var h;const e={receiverDid:a.user.did,passportId:a.passport,teamDid:((h=window==null?void 0:window.blocklet)==null?void 0:h.did)||""};return s.jsx(_,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-issue",checkFn:v.get,checkTimeout:10*60*1e3,webWalletUrl:r,onSuccess:z,locale:y,messages:{title:`${o("lostPassport.receiveDialog.title")}`,scan:o("lostPassport.receiveDialog.scan"),confirm:o("lostPassport.receiveDialog.confirm"),success:o("lostPassport.receiveDialog.success")},extraParams:e})}},{label:o("common.complete"),content:()=>(n===0&&c(3e3),s.jsxs(x,{textAlign:"center",children:[s.jsx(x,{mb:3,color:"success.main",children:s.jsx(ee,{style:{fontSize:60}})}),s.jsx(M,{component:"p",variant:"body1",className:"subheader",children:o("issuePassport.dialog.success")}),s.jsx(M,{component:"p",variant:"body2",color:"gray",children:w&&E()?o("issuePassport.dialog.autoClose",{seconds:Math.round(D/1e3)}):o("issuePassport.dialog.autoJump",{seconds:Math.round(D/1e3)})}),s.jsx(I,{style:{marginTop:40},variant:"contained",color:"primary",onClick:N,children:o("issuePassport.dialog.loginWithPassport")})]}))}];return s.jsx(Ce,{children:s.jsxs("div",{className:"stepper",children:[s.jsx(xe,{className:"stepper-progress",alternativeLabel:!0,activeStep:a.activeStep,children:L.map(({label:e})=>s.jsx(ge,{children:s.jsx(ve,{StepIconComponent:Pe,children:e})},e))}),s.jsx("div",{className:"stepper-content",children:L[a.activeStep].content()}),!a.success&&s.jsx(x,{textAlign:"center",fontSize:12,children:s.jsx(te,{href:"/",sx:{color:"#4598FA",textDecoration:"none"},children:o("lostPassport.return")})})]})})}const Ce=$(se)`
37
37
  padding-top: 46px;
38
38
  padding-bottom: 46px;
39
39
  height: 100%;
@@ -0,0 +1,161 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./lottie-react.esm-Gf3LaMG1.js","./index-KdOmwCM0.js","./index-2qex5JRJ.css"])))=>i.map(i=>d[i]);
2
+ import{cy as W,r as h,cz as q,bZ as E,j as e,hk as H,aU as N,fW as J,N as l,G as b,k as S,v as X,aZ as K,ek as T,n as k,fD as D,ds as Y,a6 as Z,bE as L,an as Q,aV as ee,i5 as te}from"./index-KdOmwCM0.js";import{R as re,a as ie}from"./url-evaluation-BMmqZ9Xm.js";import{S as O}from"./Slider-DRcvOlgL.js";import{D as oe}from"./Delete-DSB9GjVg.js";import{k as ae,g as se}from"./index-Bahrm-G8.js";import{C as ne}from"./Close-w8eKEJW7.js";import"./url-join-3G2iekWy.js";import"./index-DX8DEJlQ.js";import"./_createAggregator-BzC5cfxy.js";import"./index-DHqdVKlk.js";import"./resource-dialog-CnEGcfR6.js";import"./index-DPJjuq8y.js";import"./index-D6UMpm4p.js";import"./index-DydT7-LV.js";import"./use-mobile-C-Ki3d1-.js";import"./ListItemButton-Drq6UK1v.js";import"./index-CCAZAiY9.js";import"./emotion-react.browser.esm-DwA9twTe.js";import"./index-DA7j-cev.js";import"./index-BhA9P09u.js";import"./TableRow-BMSWmGPk.js";import"./useThemeProps-BT_RONtx.js";import"./ViewColumn-BIPD356c.js";import"./Search-DnEqCvoa.js";import"./Clear-C7odY-6_.js";import"./Delete-DpNbJCJA.js";import"./MoreVert-UFPlWjze.js";import"./TableSearch-Dobasaj8.js";import"./index-CFslc24J.js";import"./OpenInNew-6pTIeS0r.js";import"./index-BJHGOv7L.js";import"./index-BojVbZw0.js";import"./HelpOutline-B-3RVeU3.js";import"./index-D6sUi9RT.js";import"./ButtonGroup-DP9Um2zw.js";import"./getValidReactChildren-BybUhg_p.js";import"./toUpper-CIse071F.js";function le(t){var d=W(h.useState(t),2),s=d[0],i=d[1],n=q(s),m=h.useCallback(function(){return n.current},[]);return[s,i,m]}const de=E([e.jsx("path",{d:"M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m-2 13-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z",opacity:".3"},"0"),e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"},"1")],"CheckCircleTwoTone"),ce=E(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonUnchecked"),me=E(e.jsx("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2m-2-1h8v-2H5zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5m4.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94z"}),"TipsAndUpdates"),F=h.createContext({}),M=()=>h.useContext(F);function pe({children:t,restrictions:d,i18n:s,theme:i}){const[n,m]=le({loading:!1}),p=a=>m(j=>({...j,loading:a})),f=h.useMemo(()=>({...n,onLoading:p,restrictions:d,i18n:s}),[n]);return e.jsx(H,{theme:i,children:e.jsx(F.Provider,{value:f,children:t})})}const ue=["1024x1024","1024x1792","1792x1024"],xe=["256x256","512x512","1024x1024"],he=[{label:"DALL·E 3",value:"dall-e-3"},{label:"DALL·E 2",value:"dall-e-2"}];function fe({onSubmit:t}){const{loading:d,i18n:s}=M(),i=N({model:"dall-e-3",prompt:"",size:"1024x1024",number:1}),n=()=>{const a=JSON.parse(JSON.stringify(i));Object.values(i).every(y=>!!y)&&t(a)},{run:m}=J(n,{wait:500}),p={width:"100%",pl:1,pr:1},f=i.model==="dall-e-2"?xe:ue;return e.jsxs(ge,{onSubmit:a=>a.preventDefault(),children:[e.jsx(l,{sx:{flex:1,overflowY:"auto",overflowX:"hidden",m:2,mb:0},children:e.jsxs(b,{container:!0,gap:2.5,children:[e.jsxs(b,{item:!0,xs:12,children:[e.jsx(S,{gutterBottom:!0,className:"title label",color:"text.primary",children:s("aiImagePrompt")}),e.jsx(X,{sx:{width:1,mt:1},size:"small",type:"text",required:!0,placeholder:s("aiImagePromptTip"),multiline:!0,minRows:5,maxRows:6,value:i.prompt??"",onChange:a=>{a.stopPropagation(),i.prompt=a.target.value},inputProps:{maxLength:1e3}})]}),e.jsxs(b,{item:!0,xs:12,children:[e.jsx(S,{gutterBottom:!0,className:"title label",color:"text.primary",children:`${s("aiImageModel")}`}),e.jsx(re,{row:!0,sx:{".MuiFormControlLabel-label":{fontSize:"12px",color:"text.primary"}},value:i.model,onChange:a=>{i.number=1,i.size="1024x1024",i.model=a.target.value},children:he.map(a=>e.jsx(K,{value:a.value,control:e.jsx(ie,{size:"small"}),label:a.label},a.label))})]}),e.jsxs(b,{item:!0,xs:12,children:[e.jsx(S,{gutterBottom:!0,className:"title label",color:"text.primary",children:`${s("aiImageSize")}: ${i.size}`}),e.jsx(b,{container:!0,sx:{gap:2.5,pt:1},children:e.jsx(l,{flex:1,children:e.jsx(l,{...p,children:e.jsx(O,{size:"small",min:0,max:f.length-1,step:1,value:f.findIndex(a=>a==i.size),onChange:(a,j)=>{i.size=f[j]}})})})})]}),i.model==="dall-e-2"&&e.jsxs(b,{item:!0,xs:12,children:[e.jsx(S,{gutterBottom:!0,className:"title label",color:"text.primary",children:`${s("aiImageNumber")}: ${i.number}`}),e.jsx(l,{...p,children:e.jsx(O,{size:"small",defaultValue:1,valueLabelDisplay:"auto",step:1,min:1,max:10,value:i.number,onChange:(a,j)=>{a.stopPropagation(),i.number=Number(j)}})})]})]})}),e.jsx(T,{sx:{m:2,transition:"all 0.3s"},className:"submit-ai",variant:"contained",onClick:m,disabled:d,children:s(d?"aiImageGenerating":"aiImageGenerate")},d?"loading-submit":"submit")]})}const ge=k(l)`
3
+ display: flex;
4
+ flex-direction: column;
5
+ height: 100%;
6
+ overflow: hidden;
7
+
8
+ .title {
9
+ padding: 0 0 4px 1px;
10
+ }
11
+
12
+ .label {
13
+ font-weight: 500;
14
+ font-size: 15px;
15
+ line-height: 100%;
16
+ margin: 0;
17
+ word-wrap: break-word;
18
+ text-align: left;
19
+ }
20
+
21
+ .submit-ai {
22
+ height: 40px;
23
+ background: linear-gradient(90deg, #45e4fa 0%, #8a45fa 52.08%, #fa45bc 100%);
24
+ color: #fff;
25
+ border-radius: 30px;
26
+ box-shadow: none;
27
+ text-transform: none;
28
+
29
+ &.Mui-disabled {
30
+ color: ${({theme:t})=>t.palette.text.disabled} !important;
31
+ background: ${({theme:t})=>t.palette.action.disabledBackground} !important;
32
+ }
33
+ }
34
+
35
+ .MuiFormHelperText-root {
36
+ font-style: normal;
37
+ font-weight: 500;
38
+ font-size: 12px;
39
+ line-height: 14px;
40
+ margin: 0;
41
+ margin-top: 4px;
42
+ }
43
+
44
+ .MuiOutlinedInput-root {
45
+ border-radius: 4px;
46
+ padding: 0;
47
+
48
+ textarea {
49
+ padding: 8.5px 14px;
50
+ }
51
+
52
+ fieldset {
53
+ }
54
+
55
+ &:hover fieldset {
56
+ }
57
+ }
58
+ `,be=({onDelete:t,selected:d,onLoad:s,src:i,alt:n,...m})=>{const p=N({loading:!0});return e.jsxs("div",{style:{position:"relative"},children:[e.jsx(l,{className:"lazy-image-wrapper",sx:{visibility:p.loading?"hidden":"visible",bgcolor:"background.paper",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx("img",{alt:n,src:i,...m,onLoad:()=>{p.loading=!1;try{s==null||s()}catch(f){console.error("image onLoad error: ",f)}},loading:"eager"})}),p.loading&&e.jsx(D,{className:"lazy-image-skeleton",animation:"wave",variant:"rectangular",style:{position:"absolute",top:0}}),e.jsx(ye,{onClick:()=>t(i),sx:{position:"absolute",left:10,bottom:10},children:e.jsx(oe,{sx:{fontSize:20}})}),n&&e.jsxs(je,{unstyled:!0,tip:n,sx:{position:"absolute",right:10,bottom:10,fontSize:14,width:"calc(100% - 20px - 10px - 36px)",display:"flex",alignItems:"center"},arrow:!0,tipPlacement:"top",PopperProps:{disablePortal:!0},children:[e.jsx(me,{sx:{fontSize:20,mr:.5}}),e.jsx(S,{sx:{fontSize:14,overflowX:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n})]}),e.jsx(l,{sx:{position:"absolute",right:8,top:8},onClick:m==null?void 0:m.onClick,children:d?e.jsx(we,{sx:{fontSize:30}}):e.jsx(ce,{sx:{fontSize:30,color:"#fff"}})})]})},je=k(Y)`
59
+ height: 36px;
60
+ padding: 8px;
61
+ background: rgba(0, 0, 0, 0.42);
62
+ color: #f7f8f8;
63
+ display: flex;
64
+ justify-content: center;
65
+ align-items: center;
66
+ border-radius: 6px;
67
+ color: #fff;
68
+ transition: all 0.3s;
69
+
70
+ &:hover {
71
+ background: rgba(0, 0, 0, 0.69);
72
+ }
73
+ `,ye=k(Z)`
74
+ height: 36px;
75
+ width: 36px;
76
+ padding: 0;
77
+ background: rgba(0, 0, 0, 0.42);
78
+ color: #f7f8f8;
79
+ display: flex;
80
+ justify-content: center;
81
+ align-items: center;
82
+ border-radius: 6px;
83
+ transition: all 0.3s;
84
+
85
+ &:hover {
86
+ background: rgba(0, 0, 0, 0.69);
87
+ }
88
+ `,we=k(de)`
89
+ & path:first-of-type {
90
+ fill: ${({theme:t})=>{var d,s;return((s=(d=t.palette)==null?void 0:d.primary)==null?void 0:s.main)||"#1976d2"}};
91
+ opacity: 1;
92
+ }
93
+ & path:last-child {
94
+ fill: white;
95
+ }
96
+ `,ve=h.lazy(()=>L(()=>import("./lottie-react.esm-Gf3LaMG1.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(t=>({default:t.Player})));function A({src:t}){return e.jsx(ve,{src:t,loop:!0,autoplay:!0})}function ke({options:t,handleApi:d,onSelect:s,onFinish:i,onClose:n,isMobile:m}){const{loading:p,onLoading:f,restrictions:a,i18n:j}=M(),[c,y]=h.useState([]),[u,I]=h.useState(),_=Q(),z=a==null?void 0:a.maxNumberOfFiles,[x,P]=h.useState({}),g=N({}),R=Object.keys(g).filter(r=>g[r]),B={xs:6,sm:6};h.useEffect(()=>{u&&!x.error&&L(()=>import("./lottie-error-CMOXHtBH.js"),[],import.meta.url).then(r=>{P(o=>({...o,error:r.default}))}),t&&!c.length&&!x.loading&&L(()=>import("./lottie-loading-o-GBrhM9.js"),[],import.meta.url).then(r=>{P(o=>({...o,loading:r.default}))}),!t&&!x.welcome&&L(()=>import("./lottie-welcome-C9B95FIi.js"),[],import.meta.url).then(r=>{P(o=>({...o,welcome:r.default}))})},[u,t,c.length,x]),ee(async()=>{var r;if(t){I(void 0),f(!0);try{const o=await d({...t,responseFormat:"b64_json"});if(o.data){const w=(o.data||[]).map(C=>({src:`data:image/png;base64,${C.b64Json||C.b64_json}`,width:t.size?Number((t.size||"").split("x")[0]):1024,alt:t.prompt}));y(c?[...w,...c]:w)}else I(o)}catch(o){console.error("AIImage generate error: ",o),I(((r=o==null?void 0:o.response)==null?void 0:r.data)||o)}finally{f(!1),i()}}},[t==null?void 0:t.number,t==null?void 0:t.prompt,t==null?void 0:t.size]);const $=r=>{const o=Object.keys(g).filter(w=>g[w]);if(z?o.length<z:!0)g[r]?g[r]=!1:g[r]=!0;else{const w=o.pop();w!==r&&(g[w]=!1),g[r]=!g[r]}},U=r=>{if(c){const o=c.findIndex(v=>v.src===r);o>-1&&(g[r]=!1,c.splice(o,1),y([...c]))}},V=()=>{var o,v;const r={width:((o=document.querySelector(".photo-item img"))==null?void 0:o.offsetWidth)||0,height:((v=document.querySelector(".photo-item img"))==null?void 0:v.offsetHeight)||0};return e.jsx(e.Fragment,{children:Array.from({length:(t==null?void 0:t.number)||1}).map((w,C)=>h.createElement(b,{item:!0,...B,key:C},e.jsx(D,{className:"lazy-image-skeleton",animation:"wave",variant:"rectangular",style:{borderRadius:"12px",...r}})))})},G=()=>u?e.jsxs(l,{width:300,height:300,m:"auto",children:[x.error&&e.jsx(A,{src:x.error},"error"),e.jsx(l,{sx:{textAlign:"center",color:"#25292F",wordBreak:"break-all"},children:u==null?void 0:u.message})]}):c&&Array.isArray(c)&&c.length>0?e.jsxs(e.Fragment,{children:[e.jsx(l,{flexGrow:1,sx:{height:0,overflowX:"hidden",overflowY:"auto"},children:e.jsx(Se,{sx:m?{p:0,border:"none !important"}:{p:2},children:e.jsxs(b,{spacing:2,container:!0,className:"photo-wrapper",children:[p&&e.jsx(V,{}),c.map((r,o)=>h.createElement(b,{item:!0,...B,key:r.src,className:"photo-item"},e.jsx(be,{...r,selected:g[r.src],style:{objectFit:"cover",cursor:"pointer",transition:"all 0.3s",border:g[r.src]?`2px solid ${_.palette.primary.main}`:"2px solid transparent",WebkitUserDrag:"none",width:"100%",height:"100%"},onClick:()=>{$(r.src)},onDelete:()=>{U(r.src)}})))]})})}),e.jsxs(l,{sx:{mt:2,display:"flex",justifyContent:n?"space-between":"flex-end",button:{borderRadius:"30px",height:40,textTransform:"none"}},children:[n&&typeof n=="function"&&e.jsx(T,{color:"primary",variant:"outlined",onClick:n,children:e.jsx(ne,{})}),e.jsx(T,{color:"primary",variant:"contained",disabled:!R.length||p,onClick:()=>{const r=ae(c,"src");s(R.map(o=>r[o]))},children:R.length?j("aiImageSelectedUse"):j("aiImageSelectedTip")})]})]}):t?e.jsx(l,{width:220,height:220,m:"auto",children:x.loading&&e.jsx(A,{src:x.loading},"loading")}):e.jsx(l,{width:300,height:300,m:"auto",children:x.welcome&&e.jsx(A,{src:x.welcome},"welcome")});return e.jsx(Ie,{children:G()})}const Ie=k(l)`
97
+ min-height: 100%;
98
+ display: flex;
99
+ flex-direction: column;
100
+
101
+ .lazy-image-wrapper {
102
+ border-radius: 12px;
103
+
104
+ img {
105
+ border-radius: 12px;
106
+ }
107
+ }
108
+
109
+ .tips {
110
+ overflow: hidden;
111
+ display: -webkit-box;
112
+ -webkit-box-orient: vertical;
113
+ -webkit-line-clamp: 3;
114
+ }
115
+ `,Se=k(l)`
116
+ display: flex;
117
+ flex-direction: column;
118
+
119
+ border: 1px solid;
120
+ border-color: ${({theme:t})=>t.palette.divider};
121
+ border-radius: 12px;
122
+ min-height: 100%;
123
+
124
+ &:has(.Mui-focused) {
125
+ border: 1px solid #a482fe;
126
+ }
127
+
128
+ > .input {
129
+ padding: 12px;
130
+ font-weight: 500;
131
+ font-size: 16px;
132
+ line-height: 19px;
133
+ color: #25292f;
134
+ }
135
+
136
+ > .footer {
137
+ display: flex;
138
+ align-items: center;
139
+ justify-content: flex-end;
140
+ padding: 0 12px 12px;
141
+
142
+ > .counter {
143
+ flex: 1;
144
+ overflow: hidden;
145
+ text-overflow: ellipsis;
146
+ white-space: nowrap;
147
+ font-weight: 400;
148
+ font-size: 12px;
149
+ line-height: 14px;
150
+ color: #9397a1;
151
+ }
152
+
153
+ > .copy {
154
+ height: 25px;
155
+ width: 25px;
156
+ min-width: 0;
157
+ padding: 0;
158
+ color: #9397a1;
159
+ }
160
+ }
161
+ `;function dt({onSelect:t,api:d,restrictions:s,i18n:i,theme:n}){const[m,p]=h.useState(),[f,a]=h.useState(!1),j=()=>p(void 0),c=()=>a(!1),y=te(document.body);let u=!!(y&&y.width<768);if(!se())return e.jsx(l,{width:1,height:1,display:"flex",justifyContent:"center",alignItems:"center",children:i("aiKitRequired")});const I=!u||u&&!f,_=!u||u&&f,z=u?c:!1;return e.jsx(pe,{restrictions:s,i18n:i,theme:n,children:e.jsx(l,{sx:{display:"flex",width:"100%",height:"100%",bgcolor:"background.default"},children:e.jsxs(b,{container:!0,sx:{flexGrow:1,height:"100%"},children:[e.jsx(b,{item:!0,xs:12,sm:4,sx:{borderRight:u?"none":x=>`1px solid ${x.palette.divider}`,display:I?"unset":"none"},children:e.jsx(l,{sx:{height:"100%",display:"flex",flexDirection:"column"},children:e.jsx(fe,{onSubmit:(...x)=>{a(!0),p(...x)}})})}),e.jsx(b,{item:!0,xs:12,sm:8,sx:{height:"100%",overflow:"hidden",p:2,display:_?"unset":"none"},children:e.jsx(ke,{isMobile:u,options:m,handleApi:d,onSelect:t,onFinish:j,onClose:z})})]})})})}export{dt as default};
@@ -1,4 +1,4 @@
1
- import{j as e,s as c,N as s,P as n}from"./index-DdJGYtAD.js";var i=function(t){return e.jsx("svg",{...t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.36096 2.3999C7.04725 2.3999 6.76249 2.58326 6.63267 2.86886L0.872671 15.5409C0.825415 15.6448 0.800964 15.7577 0.800964 15.8719V15.9999V27.3919C0.800964 27.8337 1.15914 28.1919 1.60096 28.1919H30.401C30.8428 28.1919 31.201 27.8337 31.201 27.3919V15.8719C31.201 15.7577 31.1765 15.6448 31.1293 15.5409L25.3693 2.86886C25.2394 2.58326 24.9547 2.3999 24.641 2.3999H7.36096ZM2.40096 16.7999V26.5919H29.601V16.7932C29.5669 16.7976 29.5321 16.7999 29.4968 16.7999H22.3993L20.3328 19.8997C20.1845 20.1222 19.9347 20.2559 19.6672 20.2559H11.6032C11.3357 20.2559 11.0859 20.1222 10.9375 19.8997L8.87104 16.7999H2.40096ZM29.2167 15.1999H21.9712C21.7037 15.1999 21.4539 15.3336 21.3056 15.5561L19.239 18.6559H12.0313L9.96483 15.5561C9.81645 15.3336 9.56667 15.1999 9.29919 15.1999H2.78519L7.8761 3.9999H24.1258L29.2167 15.1999Z",fill:"currentColor"})})};i.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};i.displayName="empty";const a=c(s)`
1
+ import{j as e,s as c,N as s,P as n}from"./index-KdOmwCM0.js";var i=function(t){return e.jsx("svg",{...t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.36096 2.3999C7.04725 2.3999 6.76249 2.58326 6.63267 2.86886L0.872671 15.5409C0.825415 15.6448 0.800964 15.7577 0.800964 15.8719V15.9999V27.3919C0.800964 27.8337 1.15914 28.1919 1.60096 28.1919H30.401C30.8428 28.1919 31.201 27.8337 31.201 27.3919V15.8719C31.201 15.7577 31.1765 15.6448 31.1293 15.5409L25.3693 2.86886C25.2394 2.58326 24.9547 2.3999 24.641 2.3999H7.36096ZM2.40096 16.7999V26.5919H29.601V16.7932C29.5669 16.7976 29.5321 16.7999 29.4968 16.7999H22.3993L20.3328 19.8997C20.1845 20.1222 19.9347 20.2559 19.6672 20.2559H11.6032C11.3357 20.2559 11.0859 20.1222 10.9375 19.8997L8.87104 16.7999H2.40096ZM29.2167 15.1999H21.9712C21.7037 15.1999 21.4539 15.3336 21.3056 15.5561L19.239 18.6559H12.0313L9.96483 15.5561C9.81645 15.3336 9.56667 15.1999 9.29919 15.1999H2.78519L7.8761 3.9999H24.1258L29.2167 15.1999Z",fill:"currentColor"})})};i.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};i.displayName="empty";const a=c(s)`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{r as o,V as d,j as e,ek as c,ba as I,e6 as M,ff as b,fg as E,fe as P,s as p,fh as S}from"./index-DdJGYtAD.js";import{B as z}from"./ButtonGroup-BHcpMxTu.js";function A(s){const{size:u="medium",color:r="primary",menu:a=[],children:i=null,variant:m="contained",onClick:f=P,menuButtonProps:x={},...h}=s,[g,l]=o.useState(!1),n=o.useRef(null),j=Array.isArray(a)?a.map((t,C)=>o.isValidElement(t)?t:o.createElement(d,{...t,key:C})):a,y=()=>{l(t=>!t)},k=t=>{n.current&&n.current.contains(t.target)||l(!1)},B=t=>{t.target.closest(".MuiMenuItem-root")&&l(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs(L,{variant:m,size:u,color:r,ref:n,...h,children:[typeof i=="function"?i():e.jsx(c,{onClick:f,color:r,children:i}),e.jsx(c,{onClick:y,color:r,...x,"aria-label":"more functions",children:e.jsx(I,{})})]}),e.jsx(w,{open:g,anchorEl:n.current,placement:"bottom-end",disablePortal:!1,children:e.jsx(M,{children:e.jsx(b,{onClickAway:k,children:e.jsx(E,{onClick:B,children:j})})})})]})}A.Item=d;const L=p(z)`
1
+ import{r as o,V as d,j as e,ek as c,ba as I,e6 as M,ff as b,fg as E,fe as P,s as p,fh as S}from"./index-KdOmwCM0.js";import{B as z}from"./ButtonGroup-DP9Um2zw.js";function A(s){const{size:u="medium",color:r="primary",menu:a=[],children:i=null,variant:m="contained",onClick:f=P,menuButtonProps:x={},...h}=s,[g,l]=o.useState(!1),n=o.useRef(null),j=Array.isArray(a)?a.map((t,C)=>o.isValidElement(t)?t:o.createElement(d,{...t,key:C})):a,y=()=>{l(t=>!t)},k=t=>{n.current&&n.current.contains(t.target)||l(!1)},B=t=>{t.target.closest(".MuiMenuItem-root")&&l(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs(L,{variant:m,size:u,color:r,ref:n,...h,children:[typeof i=="function"?i():e.jsx(c,{onClick:f,color:r,children:i}),e.jsx(c,{onClick:y,color:r,...x,"aria-label":"more functions",children:e.jsx(I,{})})]}),e.jsx(w,{open:g,anchorEl:n.current,placement:"bottom-end",disablePortal:!1,children:e.jsx(M,{children:e.jsx(b,{onClickAway:k,children:e.jsx(E,{onClick:B,children:j})})})})]})}A.Item=d;const L=p(z)`
2
2
  > .MuiButtonBase-root:last-of-type {
3
3
  min-width: 2em;
4
4
  padding-left: 0;
@@ -1 +1 @@
1
- import{c3 as f,c4 as $,b_ as d,ch as r,cg as x,ci as v,g7 as m,g8 as C,r as M,c5 as z,c2 as j,c0 as l,j as s,c7 as R,c8 as B,s as T,P,aZ as _}from"./index-DdJGYtAD.js";function N(t){return $("MuiSwitch",t)}const i=f("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),O=["className","color","edge","size","sx"],D=t=>{const{classes:a,edge:o,size:e,color:p,checked:u,disabled:h}=t,g={root:["root",o&&`edge${r(o)}`,`size${r(e)}`],switchBase:["switchBase",`color${r(p)}`,u&&"checked",h&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},b=B(g,N,a);return l({},a,b)},I=d("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,o.edge&&a[`edge${r(o.edge)}`],a[`size${r(o.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${i.thumb}`]:{width:16,height:16},[`& .${i.switchBase}`]:{padding:4,[`&.${i.checked}`]:{transform:"translateX(16px)"}}}}]}),U=d(x,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.switchBase,{[`& .${i.input}`]:a.input},o.color!=="default"&&a[`color${r(o.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${i.checked}`]:{transform:"translateX(20px)"},[`&.${i.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${i.checked} + .${i.track}`]:{opacity:.5},[`&.${i.disabled} + .${i.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${i.input}`]:{left:"-100%",width:"300%"}}),({theme:t})=>({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:v(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(([,a])=>a.main&&a.light).map(([a])=>({props:{color:a},style:{[`&.${i.checked}`]:{color:(t.vars||t).palette[a].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[a].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:v(t.palette[a].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${i.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${a}DisabledColor`]:`${t.palette.mode==="light"?m(t.palette[a].main,.62):C(t.palette[a].main,.55)}`}},[`&.${i.checked} + .${i.track}`]:{backgroundColor:(t.vars||t).palette[a].main}}}))]})),E=d("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,a)=>a.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),L=d("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,a)=>a.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),V=M.forwardRef(function(a,o){const e=z({props:a,name:"MuiSwitch"}),{className:p,color:u="primary",edge:h=!1,size:g="medium",sx:b}=e,y=j(e,O),c=l({},e,{color:u,edge:h,size:g}),n=D(c),w=s.jsx(L,{className:n.thumb,ownerState:c});return s.jsxs(I,{className:R(n.root,p),sx:b,ownerState:c,children:[s.jsx(U,l({type:"checkbox",icon:w,checkedIcon:w,ref:o,ownerState:c},y,{classes:l({},n,{root:n.switchBase})})),s.jsx(E,{className:n.track,ownerState:c})]})}),k=T(t=>s.jsx(V,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:t.palette.primary.main,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:t.palette.primary.main,border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:t.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:t.palette.grey[200],opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}));function S({labelProps:t,...a}){return t?s.jsx(_,{control:s.jsx(k,{...a}),...t}):s.jsx(k,{...a})}S.propTypes={labelProps:P.object};S.defaultProps={labelProps:null};export{S,V as a};
1
+ import{c3 as f,c4 as $,b_ as d,ch as r,cg as x,ci as v,g7 as m,g8 as C,r as M,c5 as z,c2 as j,c0 as l,j as s,c7 as R,c8 as B,s as T,P,aZ as _}from"./index-KdOmwCM0.js";function N(t){return $("MuiSwitch",t)}const i=f("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),O=["className","color","edge","size","sx"],D=t=>{const{classes:a,edge:o,size:e,color:p,checked:u,disabled:h}=t,g={root:["root",o&&`edge${r(o)}`,`size${r(e)}`],switchBase:["switchBase",`color${r(p)}`,u&&"checked",h&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},b=B(g,N,a);return l({},a,b)},I=d("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,o.edge&&a[`edge${r(o.edge)}`],a[`size${r(o.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${i.thumb}`]:{width:16,height:16},[`& .${i.switchBase}`]:{padding:4,[`&.${i.checked}`]:{transform:"translateX(16px)"}}}}]}),U=d(x,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.switchBase,{[`& .${i.input}`]:a.input},o.color!=="default"&&a[`color${r(o.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${i.checked}`]:{transform:"translateX(20px)"},[`&.${i.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${i.checked} + .${i.track}`]:{opacity:.5},[`&.${i.disabled} + .${i.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${i.input}`]:{left:"-100%",width:"300%"}}),({theme:t})=>({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:v(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(([,a])=>a.main&&a.light).map(([a])=>({props:{color:a},style:{[`&.${i.checked}`]:{color:(t.vars||t).palette[a].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[a].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:v(t.palette[a].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${i.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${a}DisabledColor`]:`${t.palette.mode==="light"?m(t.palette[a].main,.62):C(t.palette[a].main,.55)}`}},[`&.${i.checked} + .${i.track}`]:{backgroundColor:(t.vars||t).palette[a].main}}}))]})),E=d("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,a)=>a.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),L=d("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,a)=>a.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),V=M.forwardRef(function(a,o){const e=z({props:a,name:"MuiSwitch"}),{className:p,color:u="primary",edge:h=!1,size:g="medium",sx:b}=e,y=j(e,O),c=l({},e,{color:u,edge:h,size:g}),n=D(c),w=s.jsx(L,{className:n.thumb,ownerState:c});return s.jsxs(I,{className:R(n.root,p),sx:b,ownerState:c,children:[s.jsx(U,l({type:"checkbox",icon:w,checkedIcon:w,ref:o,ownerState:c},y,{classes:l({},n,{root:n.switchBase})})),s.jsx(E,{className:n.track,ownerState:c})]})}),k=T(t=>s.jsx(V,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:t.palette.primary.main,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:t.palette.primary.main,border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:t.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:t.palette.grey[200],opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}));function S({labelProps:t,...a}){return t?s.jsx(_,{control:s.jsx(k,{...a}),...t}):s.jsx(k,{...a})}S.propTypes={labelProps:P.object};S.defaultProps={labelProps:null};export{S,V as a};
@@ -1 +1 @@
1
- import{P as e,j as n,B as i,N as s,i2 as r}from"./index-DdJGYtAD.js";function a({children:t=null,...o}){return n.jsxs(i,{color:"did",variant:"contained",...o,children:[n.jsx(s,{sx:{fontWeight:400},children:t||"Continue With"}),n.jsx(r,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}a.propTypes={children:e.any};export{a as C};
1
+ import{P as e,j as n,B as i,N as s,i2 as r}from"./index-KdOmwCM0.js";function a({children:t=null,...o}){return n.jsxs(i,{color:"did",variant:"contained",...o,children:[n.jsx(s,{sx:{fontWeight:400},children:t||"Continue With"}),n.jsx(r,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}a.propTypes={children:e.any};export{a as C};
@@ -1,4 +1,4 @@
1
- import{bl as c}from"./index-DdJGYtAD.js";var i={exports:{}};/*!
1
+ import{bl as c}from"./index-KdOmwCM0.js";var i={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
@@ -1 +1 @@
1
- import{bl as j,d4 as O}from"./index-DdJGYtAD.js";function J(i,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const e in a)if(e!=="default"&&!(e in i)){const s=Object.getOwnPropertyDescriptor(a,e);s&&Object.defineProperty(i,e,s.get?s:{enumerable:!0,get:()=>a[e]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var d={default:O,call:function(i,t,r){var a="";typeof t=="function"&&(r=t,t={});var e={data:t===void 0?null:t};if(typeof r=="function"){var s="dscb"+window.dscb++;window[s]=r,e._dscbstub=s}return e=JSON.stringify(e),window._dsbridge?a=_dsbridge.call(i,e):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(a=prompt("_dsbridge="+i,e)),JSON.parse(a||"{}").data},register:function(i,t,r){var a=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){d.call("_dsb.dsinit")},0)),typeof t=="object"?a._obs[i]=t:a[i]=t},registerAsyn:function(i,t){this.register(i,t,!0)},hasNativeMethod:function(i,t){return this.call("_dsb.hasNativeMethod",{name:i,type:t||"all"})},disableJavascriptDialogBlock:function(i){this.call("_dsb.disableJavascriptDialogBlock",{disable:i!==!1})}};(function(){if(!window._dsf){var i={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:d,close:function(){d.call("_dsb.closePage")},_handleMessageFromNative:function(r){var a=JSON.parse(r.data),e={id:r.callbackId,complete:!0},s=this._dsf[r.method],o=this._dsaf[r.method],p=function(u,_){e.data=u.apply(_,a),d.call("_dsb.returnValue",e)},v=function(u,_){a.push(function(w,y){e.data=w,e.complete=y!==!1,d.call("_dsb.returnValue",e)}),u.apply(_,a)};if(s)p(s,this._dsf);else if(o)v(o,this._dsaf);else{var l=r.method.split(".");if(l.length<2)return;var b=l.pop(),g=l.join("."),c=this._dsf._obs,f=c[g]||{},n=f[b];if(n&&typeof n=="function"){p(n,f);return}if(c=this._dsaf._obs,f=c[g]||{},n=f[b],n&&typeof n=="function"){v(n,f);return}}}};for(var t in i)window[t]=i[t];d.register("_hasJavascriptMethod",function(r,a){var e=r.split(".");if(e.length<2)return!!(_dsf[e]||_dsaf[e]);var r=e.pop(),s=e.join("."),o=_dsf._obs[s]||_dsaf._obs[s];return o&&!!o[r]})}})();var h=d;const N=j(h),k=J({__proto__:null,default:N},[h]);export{k as i};
1
+ import{bl as j,d4 as O}from"./index-KdOmwCM0.js";function J(i,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const e in a)if(e!=="default"&&!(e in i)){const s=Object.getOwnPropertyDescriptor(a,e);s&&Object.defineProperty(i,e,s.get?s:{enumerable:!0,get:()=>a[e]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var d={default:O,call:function(i,t,r){var a="";typeof t=="function"&&(r=t,t={});var e={data:t===void 0?null:t};if(typeof r=="function"){var s="dscb"+window.dscb++;window[s]=r,e._dscbstub=s}return e=JSON.stringify(e),window._dsbridge?a=_dsbridge.call(i,e):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(a=prompt("_dsbridge="+i,e)),JSON.parse(a||"{}").data},register:function(i,t,r){var a=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){d.call("_dsb.dsinit")},0)),typeof t=="object"?a._obs[i]=t:a[i]=t},registerAsyn:function(i,t){this.register(i,t,!0)},hasNativeMethod:function(i,t){return this.call("_dsb.hasNativeMethod",{name:i,type:t||"all"})},disableJavascriptDialogBlock:function(i){this.call("_dsb.disableJavascriptDialogBlock",{disable:i!==!1})}};(function(){if(!window._dsf){var i={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:d,close:function(){d.call("_dsb.closePage")},_handleMessageFromNative:function(r){var a=JSON.parse(r.data),e={id:r.callbackId,complete:!0},s=this._dsf[r.method],o=this._dsaf[r.method],p=function(u,_){e.data=u.apply(_,a),d.call("_dsb.returnValue",e)},v=function(u,_){a.push(function(w,y){e.data=w,e.complete=y!==!1,d.call("_dsb.returnValue",e)}),u.apply(_,a)};if(s)p(s,this._dsf);else if(o)v(o,this._dsaf);else{var l=r.method.split(".");if(l.length<2)return;var b=l.pop(),g=l.join("."),c=this._dsf._obs,f=c[g]||{},n=f[b];if(n&&typeof n=="function"){p(n,f);return}if(c=this._dsaf._obs,f=c[g]||{},n=f[b],n&&typeof n=="function"){v(n,f);return}}}};for(var t in i)window[t]=i[t];d.register("_hasJavascriptMethod",function(r,a){var e=r.split(".");if(e.length<2)return!!(_dsf[e]||_dsaf[e]);var r=e.pop(),s=e.join("."),o=_dsf._obs[s]||_dsaf._obs[s];return o&&!!o[r]})}})();var h=d;const N=j(h),k=J({__proto__:null,default:N},[h]);export{k as i};
@@ -0,0 +1 @@
1
+ import{cy as c,r as _,cw as f,i9 as S,br as r}from"./index-KdOmwCM0.js";var d=function(n){var a=c(_.useState(n),2),u=a[0],i=a[1],o=f(function(t){i(function(e){var s=S(t)?t(e):t;return s?r(r({},e),s):e})});return[u,o]};export{d as u};
@@ -1 +1 @@
1
- import{c3 as ft,c4 as ht,b_ as A,b$ as $t,ch as jt,c0 as p,r as d,c5 as vt,c2 as nt,c7 as N,j as u,c8 as mt,dd as oe,de as Ft,df as Ht,dg as At,dh as le,di as re,c6 as rt,an as ne,dj as bt,dk as se,s as ae}from"./index-DdJGYtAD.js";let U;function Ot(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ie(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(Ot()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function ce(t){return ht("MuiTab",t)}const k=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),de=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ue=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:n,icon:a,label:h,selected:v,disabled:b}=t,x={root:["root",a&&h&&"labelIcon",`textColor${jt(l)}`,s&&"fullWidth",n&&"wrapped",v&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return mt(x,ce,e)},be=A($t,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${jt(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped,{[`& .${k.iconWrapper}`]:e.iconWrapper}]}})(({theme:t,ownerState:e})=>p({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${k.iconWrapper}`]:p({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${k.selected}`]:{opacity:1},[`&.${k.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${k.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${k.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${k.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${k.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),St=d.forwardRef(function(e,l){const s=vt({props:e,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:h=!1,fullWidth:v,icon:b,iconPosition:x="top",indicator:B,label:y,onChange:m,onClick:w,onFocus:L,selected:T,selectionFollowsFocus:g,textColor:O="inherit",value:E,wrapped:st=!1}=s,X=nt(s,de),V=p({},s,{disabled:a,disableFocusRipple:h,selected:T,icon:!!b,iconPosition:x,label:!!y,fullWidth:v,textColor:O,wrapped:st}),_=ue(V),$=b&&y&&d.isValidElement(b)?d.cloneElement(b,{className:N(_.iconWrapper,b.props.className)}):b,Q=R=>{!T&&m&&m(R,E),w&&w(R)},D=R=>{g&&!T&&m&&m(R,E),L&&L(R)};return u.jsxs(be,p({focusRipple:!h,className:N(_.root,n),ref:l,role:"tab","aria-selected":T,disabled:a,onClick:Q,onFocus:D,ownerState:V,tabIndex:T?0:-1},X,{children:[x==="top"||x==="start"?u.jsxs(d.Fragment,{children:[$,y]}):u.jsxs(d.Fragment,{children:[y,$]}),B]}))});function pe(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function fe(t,e,l,s={},n=()=>{}){const{ease:a=pe,duration:h=300}=s;let v=null;const b=e[t];let x=!1;const B=()=>{x=!0},y=m=>{if(x){n(new Error("Animation cancelled"));return}v===null&&(v=m);const w=Math.min(1,(m-v)/h);if(e[t]=a(w)*(l-b)+b,w>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(y)};return b===l?(n(new Error("Element already at target position")),B):(requestAnimationFrame(y),B)}const he=["onChange"],ve={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function me(t){const{onChange:e}=t,l=nt(t,he),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return oe(()=>{const h=Ft(()=>{const b=s.current;a(),b!==s.current&&e(s.current)}),v=Ht(n.current);return v.addEventListener("resize",h),()=>{h.clear(),v.removeEventListener("resize",h)}},[e]),d.useEffect(()=>{a(),e(s.current)},[e]),u.jsx("div",p({style:ve},l,{ref:n}))}function Se(t){return ht("MuiTabScrollButton",t)}const xe=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ge=["className","slots","slotProps","direction","orientation","disabled"],ye=t=>{const{classes:e,orientation:l,disabled:s}=t;return mt({root:["root",l,s&&"disabled"]},Se,e)},Ce=A($t,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>p({width:40,flexShrink:0,opacity:.8,[`&.${xe.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),Be=d.forwardRef(function(e,l){var s,n;const a=vt({props:e,name:"MuiTabScrollButton"}),{className:h,slots:v={},slotProps:b={},direction:x}=a,B=nt(a,ge),y=At(),m=p({isRtl:y},a),w=ye(m),L=(s=v.StartScrollButtonIcon)!=null?s:le,T=(n=v.EndScrollButtonIcon)!=null?n:re,g=rt({elementType:L,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),O=rt({elementType:T,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return u.jsx(Ce,p({component:"div",className:N(w.root,h),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:x==="left"?u.jsx(L,p({},g)):u.jsx(T,p({},O))}))});function we(t){return ht("MuiTabs",t)}const pt=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Pt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,kt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,lt=(t,e,l)=>{let s=!1,n=l(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(t,n);else{n.focus();return}}},Me=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:h,scrollButtonsHideMobile:v,classes:b}=t;return mt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",v&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},we,b)},Ie=A("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${pt.scrollButtons}`]:e.scrollButtons},{[`& .${pt.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>p({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${pt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Ee=A("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.scrollableY&&e.scrollableY]}})(({ownerState:t})=>p({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=A("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>p({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=A("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>p({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=A(me)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Nt={},xt=d.forwardRef(function(e,l){const s=vt({props:e,name:"MuiTabs"}),n=ne(),a=At(),{"aria-label":h,"aria-labelledby":v,action:b,centered:x=!1,children:B,className:y,component:m="div",allowScrollButtonsMobile:w=!1,indicatorColor:L="primary",onChange:T,orientation:g="horizontal",ScrollButtonComponent:O=Be,scrollButtons:E="auto",selectionFollowsFocus:st,slots:X={},slotProps:V={},TabIndicatorProps:_={},TabScrollButtonProps:$={},textColor:Q="primary",value:D,variant:R="standard",visibleScrollbar:at=!1}=s,Xt=nt(s,Te),M=R==="scrollable",C=g==="vertical",K=C?"scrollTop":"scrollLeft",Z=C?"top":"left",tt=C?"bottom":"right",it=C?"clientHeight":"clientWidth",q=C?"height":"width",j=p({},s,{component:m,allowScrollButtonsMobile:w,indicatorColor:L,orientation:g,vertical:C,scrollButtons:E,textColor:Q,variant:R,visibleScrollbar:at,fixed:!M,hideScrollbar:M&&!at,scrollableX:M&&!C,scrollableY:M&&C,centered:x&&!M,scrollButtonsHideMobile:!w}),W=Me(j),_t=rt({elementType:X.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:j}),Dt=rt({elementType:X.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:j}),[gt,Ut]=d.useState(!1),[F,yt]=d.useState(Nt),[Ct,Yt]=d.useState(!1),[Bt,Vt]=d.useState(!1),[wt,Kt]=d.useState(!1),[Tt,qt]=d.useState({overflow:"hidden",scrollbarWidth:0}),Mt=new Map,z=d.useRef(null),H=d.useRef(null),It=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ie(o,a?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&D!==!1){const i=H.current.children;if(i.length>0){const f=i[Mt.get(D)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},G=bt(()=>{const{tabsMeta:o,tabMeta:r}=It();let c=0,i;if(C)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=a?"right":"left",r&&o){const S=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(r[i]-o[i]+S)}const f={[i]:c,[q]:r?r[q]:0};if(isNaN(F[i])||isNaN(F[q]))yt(f);else{const S=Math.abs(F[i]-f[i]),I=Math.abs(F[q]-f[q]);(S>=1||I>=1)&&yt(f)}}),ct=(o,{animation:r=!0}={})=>{r?fe(K,z.current,o,{duration:n.transitions.duration.standard}):z.current[K]=o},Et=o=>{let r=z.current[K];C?r+=o:(r+=o*(a?-1:1),r*=a&&Ot()==="reverse"?-1:1),ct(r)},Rt=()=>{const o=z.current[it];let r=0;const c=Array.from(H.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(r+f[it]>o){i===0&&(r=o);break}r+=f[it]}return r},Gt=()=>{Et(-1*Rt())},Jt=()=>{Et(Rt())},Qt=d.useCallback(o=>{qt({overflow:null,scrollbarWidth:o})},[]),Zt=()=>{const o={};o.scrollbarSizeListener=M?u.jsx(We,{onChange:Qt,className:N(W.scrollableX,W.hideScrollbar)}):null;const c=M&&(E==="auto"&&(Ct||Bt)||E===!0);return o.scrollButtonStart=c?u.jsx(O,p({slots:{StartScrollButtonIcon:X.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:_t},orientation:g,direction:a?"right":"left",onClick:Gt,disabled:!Ct},$,{className:N(W.scrollButtons,$.className)})):null,o.scrollButtonEnd=c?u.jsx(O,p({slots:{EndScrollButtonIcon:X.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Dt},orientation:g,direction:a?"left":"right",onClick:Jt,disabled:!Bt},$,{className:N(W.scrollButtons,$.className)})):null,o},zt=bt(o=>{const{tabsMeta:r,tabMeta:c}=It();if(!(!c||!r)){if(c[Z]<r[Z]){const i=r[K]+(c[Z]-r[Z]);ct(i,{animation:o})}else if(c[tt]>r[tt]){const i=r[K]+(c[tt]-r[tt]);ct(i,{animation:o})}}}),et=bt(()=>{M&&E!==!1&&Kt(!wt)});d.useEffect(()=>{const o=Ft(()=>{z.current&&G()});let r;const c=S=>{S.forEach(I=>{I.removedNodes.forEach(J=>{var P;(P=r)==null||P.unobserve(J)}),I.addedNodes.forEach(J=>{var P;(P=r)==null||P.observe(J)})}),o(),et()},i=Ht(z.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(H.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(H.current,{childList:!0})),()=>{var S,I;o.clear(),i.removeEventListener("resize",o),(S=f)==null||S.disconnect(),(I=r)==null||I.disconnect()}},[G,et]),d.useEffect(()=>{const o=Array.from(H.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&E!==!1){const c=o[0],i=o[r-1],f={root:z.current,threshold:.99},S=ut=>{Yt(!ut[0].isIntersecting)},I=new IntersectionObserver(S,f);I.observe(c);const J=ut=>{Vt(!ut[0].isIntersecting)},P=new IntersectionObserver(J,f);return P.observe(i),()=>{I.disconnect(),P.disconnect()}}},[M,E,wt,B==null?void 0:B.length]),d.useEffect(()=>{Ut(!0)},[]),d.useEffect(()=>{G()}),d.useEffect(()=>{zt(Nt!==F)},[zt,F]),d.useImperativeHandle(b,()=>({updateIndicator:G,updateScrollButtons:et}),[G,et]);const Wt=u.jsx(ze,p({},_,{className:N(W.indicator,_.className),ownerState:j,style:p({},F,_.style)}));let ot=0;const te=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?ot:o.props.value;Mt.set(r,ot);const c=r===D;return ot+=1,d.cloneElement(o,p({fullWidth:R==="fullWidth",indicator:c&&!gt&&Wt,selected:c,selectionFollowsFocus:st,onChange:T,textColor:Q,value:r},ot===1&&D===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),ee=o=>{const r=H.current,c=se(r).activeElement;if(c.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",S=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&(f="ArrowRight",S="ArrowLeft"),o.key){case f:o.preventDefault(),lt(r,c,kt);break;case S:o.preventDefault(),lt(r,c,Pt);break;case"Home":o.preventDefault(),lt(r,null,Pt);break;case"End":o.preventDefault(),lt(r,null,kt);break}},dt=Zt();return u.jsxs(Ie,p({className:N(W.root,y),ownerState:j,ref:l,as:m},Xt,{children:[dt.scrollButtonStart,dt.scrollbarSizeListener,u.jsxs(Ee,{className:W.scroller,ownerState:j,style:{overflow:Tt.overflow,[C?`margin${a?"Left":"Right"}`:"marginBottom"]:at?void 0:-Tt.scrollbarWidth},ref:z,children:[u.jsx(Re,{"aria-label":h,"aria-labelledby":v,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:j,onKeyDown:ee,ref:H,role:"tablist",children:te}),gt&&Wt]}),dt.scrollButtonEnd]}))}),Lt="index",Y={tabs:`${Lt}-tabs`,tab:`${Lt}-tab`},Pe=ae(xt)(({theme:t})=>({[`& .${Y.tabs}`]:{},[`& .${Y.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function ke({tabs:t,current:e,onChange:l,...s}){return u.jsx(xt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:"grey.200",padding:.5,display:"inline-flex",columnGap:.25,maxWidth:"100%",overflowX:"auto"},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:"text.secondary",fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:"grey.100",color:"grey.A700"}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>u.jsx(St,{className:Y.tab,value:n.value,label:n.label,icon:n.icon},n.value))})}function Ne({tabs:t,current:e,onChange:l,...s}){return u.jsx(xt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":s.orientation!=="vertical"?{"&::after":{content:'""',display:"block",position:"sticky",left:0,zIndex:-1,width:"100%",height:"1px",backgroundColor:"grey.300"}}:{},".MuiTabs-flexContainer":{display:"inline-flex",columnGap:2.5,px:0,pb:.5},".MuiTab-root":{border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,px:0,color:"text.secondary",fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:"primary.main"}},".MuiTabs-indicator":{height:"1px",backgroundColor:"primary.main"},...s.sx},children:t.map(n=>u.jsx(St,{className:Y.tab,value:n.value,label:n.label,icon:n.icon},n.value))})}function $e({tabs:t,current:e,onChange:l,variant:s,...n}){return s==="card"?u.jsx(ke,{...n,tabs:t,current:e,onChange:l}):s==="line"?u.jsx(Ne,{...n,tabs:t,current:e,onChange:l}):u.jsx(Pe,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(a,h)=>l(h),indicatorColor:"primary",...n,className:[Y.tabs,n.className||""].join(" "),children:t.map(a=>u.jsx(St,{className:Y.tab,value:a.value,label:a.label,icon:a.icon},a.value))})}export{$e as T,xt as a,St as b,Ot as d,ie as g,pt as t};
1
+ import{c3 as ft,c4 as ht,b_ as A,b$ as $t,ch as jt,c0 as p,r as d,c5 as vt,c2 as nt,c7 as N,j as u,c8 as mt,dd as oe,de as Ft,df as Ht,dg as At,dh as le,di as re,c6 as rt,an as ne,dj as bt,dk as se,s as ae}from"./index-KdOmwCM0.js";let U;function Ot(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ie(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(Ot()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function ce(t){return ht("MuiTab",t)}const k=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),de=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ue=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:n,icon:a,label:h,selected:v,disabled:b}=t,x={root:["root",a&&h&&"labelIcon",`textColor${jt(l)}`,s&&"fullWidth",n&&"wrapped",v&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return mt(x,ce,e)},be=A($t,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${jt(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped,{[`& .${k.iconWrapper}`]:e.iconWrapper}]}})(({theme:t,ownerState:e})=>p({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${k.iconWrapper}`]:p({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${k.selected}`]:{opacity:1},[`&.${k.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${k.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${k.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${k.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${k.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),St=d.forwardRef(function(e,l){const s=vt({props:e,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:h=!1,fullWidth:v,icon:b,iconPosition:x="top",indicator:B,label:y,onChange:m,onClick:w,onFocus:L,selected:T,selectionFollowsFocus:g,textColor:O="inherit",value:E,wrapped:st=!1}=s,X=nt(s,de),V=p({},s,{disabled:a,disableFocusRipple:h,selected:T,icon:!!b,iconPosition:x,label:!!y,fullWidth:v,textColor:O,wrapped:st}),_=ue(V),$=b&&y&&d.isValidElement(b)?d.cloneElement(b,{className:N(_.iconWrapper,b.props.className)}):b,Q=R=>{!T&&m&&m(R,E),w&&w(R)},D=R=>{g&&!T&&m&&m(R,E),L&&L(R)};return u.jsxs(be,p({focusRipple:!h,className:N(_.root,n),ref:l,role:"tab","aria-selected":T,disabled:a,onClick:Q,onFocus:D,ownerState:V,tabIndex:T?0:-1},X,{children:[x==="top"||x==="start"?u.jsxs(d.Fragment,{children:[$,y]}):u.jsxs(d.Fragment,{children:[y,$]}),B]}))});function pe(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function fe(t,e,l,s={},n=()=>{}){const{ease:a=pe,duration:h=300}=s;let v=null;const b=e[t];let x=!1;const B=()=>{x=!0},y=m=>{if(x){n(new Error("Animation cancelled"));return}v===null&&(v=m);const w=Math.min(1,(m-v)/h);if(e[t]=a(w)*(l-b)+b,w>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(y)};return b===l?(n(new Error("Element already at target position")),B):(requestAnimationFrame(y),B)}const he=["onChange"],ve={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function me(t){const{onChange:e}=t,l=nt(t,he),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return oe(()=>{const h=Ft(()=>{const b=s.current;a(),b!==s.current&&e(s.current)}),v=Ht(n.current);return v.addEventListener("resize",h),()=>{h.clear(),v.removeEventListener("resize",h)}},[e]),d.useEffect(()=>{a(),e(s.current)},[e]),u.jsx("div",p({style:ve},l,{ref:n}))}function Se(t){return ht("MuiTabScrollButton",t)}const xe=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ge=["className","slots","slotProps","direction","orientation","disabled"],ye=t=>{const{classes:e,orientation:l,disabled:s}=t;return mt({root:["root",l,s&&"disabled"]},Se,e)},Ce=A($t,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>p({width:40,flexShrink:0,opacity:.8,[`&.${xe.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),Be=d.forwardRef(function(e,l){var s,n;const a=vt({props:e,name:"MuiTabScrollButton"}),{className:h,slots:v={},slotProps:b={},direction:x}=a,B=nt(a,ge),y=At(),m=p({isRtl:y},a),w=ye(m),L=(s=v.StartScrollButtonIcon)!=null?s:le,T=(n=v.EndScrollButtonIcon)!=null?n:re,g=rt({elementType:L,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),O=rt({elementType:T,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return u.jsx(Ce,p({component:"div",className:N(w.root,h),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:x==="left"?u.jsx(L,p({},g)):u.jsx(T,p({},O))}))});function we(t){return ht("MuiTabs",t)}const pt=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Pt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,kt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,lt=(t,e,l)=>{let s=!1,n=l(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(t,n);else{n.focus();return}}},Me=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:h,scrollButtonsHideMobile:v,classes:b}=t;return mt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",v&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},we,b)},Ie=A("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${pt.scrollButtons}`]:e.scrollButtons},{[`& .${pt.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>p({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${pt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Ee=A("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.scrollableY&&e.scrollableY]}})(({ownerState:t})=>p({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=A("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>p({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=A("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>p({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=A(me)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Nt={},xt=d.forwardRef(function(e,l){const s=vt({props:e,name:"MuiTabs"}),n=ne(),a=At(),{"aria-label":h,"aria-labelledby":v,action:b,centered:x=!1,children:B,className:y,component:m="div",allowScrollButtonsMobile:w=!1,indicatorColor:L="primary",onChange:T,orientation:g="horizontal",ScrollButtonComponent:O=Be,scrollButtons:E="auto",selectionFollowsFocus:st,slots:X={},slotProps:V={},TabIndicatorProps:_={},TabScrollButtonProps:$={},textColor:Q="primary",value:D,variant:R="standard",visibleScrollbar:at=!1}=s,Xt=nt(s,Te),M=R==="scrollable",C=g==="vertical",K=C?"scrollTop":"scrollLeft",Z=C?"top":"left",tt=C?"bottom":"right",it=C?"clientHeight":"clientWidth",q=C?"height":"width",j=p({},s,{component:m,allowScrollButtonsMobile:w,indicatorColor:L,orientation:g,vertical:C,scrollButtons:E,textColor:Q,variant:R,visibleScrollbar:at,fixed:!M,hideScrollbar:M&&!at,scrollableX:M&&!C,scrollableY:M&&C,centered:x&&!M,scrollButtonsHideMobile:!w}),W=Me(j),_t=rt({elementType:X.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:j}),Dt=rt({elementType:X.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:j}),[gt,Ut]=d.useState(!1),[F,yt]=d.useState(Nt),[Ct,Yt]=d.useState(!1),[Bt,Vt]=d.useState(!1),[wt,Kt]=d.useState(!1),[Tt,qt]=d.useState({overflow:"hidden",scrollbarWidth:0}),Mt=new Map,z=d.useRef(null),H=d.useRef(null),It=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ie(o,a?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&D!==!1){const i=H.current.children;if(i.length>0){const f=i[Mt.get(D)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},G=bt(()=>{const{tabsMeta:o,tabMeta:r}=It();let c=0,i;if(C)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=a?"right":"left",r&&o){const S=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(r[i]-o[i]+S)}const f={[i]:c,[q]:r?r[q]:0};if(isNaN(F[i])||isNaN(F[q]))yt(f);else{const S=Math.abs(F[i]-f[i]),I=Math.abs(F[q]-f[q]);(S>=1||I>=1)&&yt(f)}}),ct=(o,{animation:r=!0}={})=>{r?fe(K,z.current,o,{duration:n.transitions.duration.standard}):z.current[K]=o},Et=o=>{let r=z.current[K];C?r+=o:(r+=o*(a?-1:1),r*=a&&Ot()==="reverse"?-1:1),ct(r)},Rt=()=>{const o=z.current[it];let r=0;const c=Array.from(H.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(r+f[it]>o){i===0&&(r=o);break}r+=f[it]}return r},Gt=()=>{Et(-1*Rt())},Jt=()=>{Et(Rt())},Qt=d.useCallback(o=>{qt({overflow:null,scrollbarWidth:o})},[]),Zt=()=>{const o={};o.scrollbarSizeListener=M?u.jsx(We,{onChange:Qt,className:N(W.scrollableX,W.hideScrollbar)}):null;const c=M&&(E==="auto"&&(Ct||Bt)||E===!0);return o.scrollButtonStart=c?u.jsx(O,p({slots:{StartScrollButtonIcon:X.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:_t},orientation:g,direction:a?"right":"left",onClick:Gt,disabled:!Ct},$,{className:N(W.scrollButtons,$.className)})):null,o.scrollButtonEnd=c?u.jsx(O,p({slots:{EndScrollButtonIcon:X.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Dt},orientation:g,direction:a?"left":"right",onClick:Jt,disabled:!Bt},$,{className:N(W.scrollButtons,$.className)})):null,o},zt=bt(o=>{const{tabsMeta:r,tabMeta:c}=It();if(!(!c||!r)){if(c[Z]<r[Z]){const i=r[K]+(c[Z]-r[Z]);ct(i,{animation:o})}else if(c[tt]>r[tt]){const i=r[K]+(c[tt]-r[tt]);ct(i,{animation:o})}}}),et=bt(()=>{M&&E!==!1&&Kt(!wt)});d.useEffect(()=>{const o=Ft(()=>{z.current&&G()});let r;const c=S=>{S.forEach(I=>{I.removedNodes.forEach(J=>{var P;(P=r)==null||P.unobserve(J)}),I.addedNodes.forEach(J=>{var P;(P=r)==null||P.observe(J)})}),o(),et()},i=Ht(z.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(H.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(H.current,{childList:!0})),()=>{var S,I;o.clear(),i.removeEventListener("resize",o),(S=f)==null||S.disconnect(),(I=r)==null||I.disconnect()}},[G,et]),d.useEffect(()=>{const o=Array.from(H.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&E!==!1){const c=o[0],i=o[r-1],f={root:z.current,threshold:.99},S=ut=>{Yt(!ut[0].isIntersecting)},I=new IntersectionObserver(S,f);I.observe(c);const J=ut=>{Vt(!ut[0].isIntersecting)},P=new IntersectionObserver(J,f);return P.observe(i),()=>{I.disconnect(),P.disconnect()}}},[M,E,wt,B==null?void 0:B.length]),d.useEffect(()=>{Ut(!0)},[]),d.useEffect(()=>{G()}),d.useEffect(()=>{zt(Nt!==F)},[zt,F]),d.useImperativeHandle(b,()=>({updateIndicator:G,updateScrollButtons:et}),[G,et]);const Wt=u.jsx(ze,p({},_,{className:N(W.indicator,_.className),ownerState:j,style:p({},F,_.style)}));let ot=0;const te=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?ot:o.props.value;Mt.set(r,ot);const c=r===D;return ot+=1,d.cloneElement(o,p({fullWidth:R==="fullWidth",indicator:c&&!gt&&Wt,selected:c,selectionFollowsFocus:st,onChange:T,textColor:Q,value:r},ot===1&&D===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),ee=o=>{const r=H.current,c=se(r).activeElement;if(c.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",S=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&(f="ArrowRight",S="ArrowLeft"),o.key){case f:o.preventDefault(),lt(r,c,kt);break;case S:o.preventDefault(),lt(r,c,Pt);break;case"Home":o.preventDefault(),lt(r,null,Pt);break;case"End":o.preventDefault(),lt(r,null,kt);break}},dt=Zt();return u.jsxs(Ie,p({className:N(W.root,y),ownerState:j,ref:l,as:m},Xt,{children:[dt.scrollButtonStart,dt.scrollbarSizeListener,u.jsxs(Ee,{className:W.scroller,ownerState:j,style:{overflow:Tt.overflow,[C?`margin${a?"Left":"Right"}`:"marginBottom"]:at?void 0:-Tt.scrollbarWidth},ref:z,children:[u.jsx(Re,{"aria-label":h,"aria-labelledby":v,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:j,onKeyDown:ee,ref:H,role:"tablist",children:te}),gt&&Wt]}),dt.scrollButtonEnd]}))}),Lt="index",Y={tabs:`${Lt}-tabs`,tab:`${Lt}-tab`},Pe=ae(xt)(({theme:t})=>({[`& .${Y.tabs}`]:{},[`& .${Y.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function ke({tabs:t,current:e,onChange:l,...s}){return u.jsx(xt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:"grey.200",padding:.5,display:"inline-flex",columnGap:.25,maxWidth:"100%",overflowX:"auto"},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:"text.secondary",fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:"grey.100",color:"grey.A700"}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>u.jsx(St,{className:Y.tab,value:n.value,label:n.label,icon:n.icon},n.value))})}function Ne({tabs:t,current:e,onChange:l,...s}){return u.jsx(xt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":s.orientation!=="vertical"?{"&::after":{content:'""',display:"block",position:"sticky",left:0,zIndex:-1,width:"100%",height:"1px",backgroundColor:"grey.300"}}:{},".MuiTabs-flexContainer":{display:"inline-flex",columnGap:2.5,px:0,pb:.5},".MuiTab-root":{border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,px:0,color:"text.secondary",fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:"primary.main"}},".MuiTabs-indicator":{height:"1px",backgroundColor:"primary.main"},...s.sx},children:t.map(n=>u.jsx(St,{className:Y.tab,value:n.value,label:n.label,icon:n.icon},n.value))})}function $e({tabs:t,current:e,onChange:l,variant:s,...n}){return s==="card"?u.jsx(ke,{...n,tabs:t,current:e,onChange:l}):s==="line"?u.jsx(Ne,{...n,tabs:t,current:e,onChange:l}):u.jsx(Pe,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(a,h)=>l(h),indicatorColor:"primary",...n,className:[Y.tabs,n.className||""].join(" "),children:t.map(a=>u.jsx(St,{className:Y.tab,value:a.value,label:a.label,icon:a.icon},a.value))})}export{$e as T,xt as a,St as b,Ot as d,ie as g,pt as t};