@unchainedshop/admin-ui 4.8.28 → 4.8.30

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 (306) hide show
  1. package/dist/chunk-3L6EZQ6P.js +135 -0
  2. package/dist/chunk-5WPFHQZN.js +388 -0
  3. package/dist/chunk-BMDNY67T.js +22547 -0
  4. package/dist/{chunk-JAVEZY3Q.js → chunk-BOMSMJF2.js} +17 -5
  5. package/dist/{chunk-2RTX42IE.js → chunk-E77YIMGR.js} +2 -2
  6. package/dist/{chunk-XHOCXPD5.js → chunk-F6LBNV3H.js} +1 -1
  7. package/dist/chunk-FDHXLNZQ.js +44 -0
  8. package/dist/{chunk-XJBPMIC4.js → chunk-HERLM47Z.js} +81 -56
  9. package/dist/{chunk-MSPWYMDY.js → chunk-HJKRGBDG.js} +87 -58
  10. package/dist/{chunk-7PPOGX7R.js → chunk-I64TXIE7.js} +48 -11
  11. package/dist/chunk-ICJH36K4.js +326 -0
  12. package/dist/chunk-IWKDBADX.js +73 -0
  13. package/dist/{chunk-QNLGYFV7.js → chunk-IYKPRAWC.js} +4 -0
  14. package/dist/chunk-J23QSWDL.js +8 -0
  15. package/dist/chunk-KRIRF7F6.js +76 -0
  16. package/dist/chunk-OTXM2UCD.js +19 -0
  17. package/dist/chunk-PJLYVMUM.js +3308 -0
  18. package/dist/{chunk-SRAAKMWY.js → chunk-PUI5BIKO.js} +4 -2
  19. package/dist/chunk-QHR23GVH.js +1099 -0
  20. package/dist/chunk-VBO377AY.js +14 -0
  21. package/dist/chunk-VYEXPG3M.js +107 -0
  22. package/dist/{chunk-4VNS5WPM.js → chunk-WPLOTFGW.js} +7 -8
  23. package/dist/{chunk-VDKQGOMV.js → chunk-ZUOVKRKC.js} +118 -1
  24. package/dist/components/ui/Badge.d.ts.map +1 -1
  25. package/dist/components/ui/BreadCrumbs.d.ts.map +1 -1
  26. package/dist/components/ui/Pagination.d.ts.map +1 -1
  27. package/dist/components/ui/form/ChoicesField.d.ts.map +1 -1
  28. package/dist/components/ui/form/Combobox.d.ts.map +1 -1
  29. package/dist/components/ui/form/TextField.d.ts.map +1 -1
  30. package/dist/components/ui/form/index.d.ts +1 -0
  31. package/dist/components/ui/form/index.d.ts.map +1 -1
  32. package/dist/components/ui/index.d.ts +5 -0
  33. package/dist/components/ui/index.d.ts.map +1 -1
  34. package/dist/form.js +1808 -27501
  35. package/dist/gql/operation-types.d.ts +201 -5
  36. package/dist/gql/operation-types.d.ts.map +1 -1
  37. package/dist/gql/schema-types.d.ts +63 -7
  38. package/dist/gql/schema-types.d.ts.map +1 -1
  39. package/dist/hooks.js +13 -6
  40. package/dist/modal.js +11 -78
  41. package/dist/modules/Auth/AuthContext.d.ts +9 -0
  42. package/dist/modules/Auth/AuthContext.d.ts.map +1 -0
  43. package/dist/modules/Auth/useAuth.d.ts +6 -0
  44. package/dist/modules/Auth/useAuth.d.ts.map +1 -0
  45. package/dist/modules/accounts.js +183 -3
  46. package/dist/modules/assortment.js +83 -4
  47. package/dist/modules/common/components/AppContext.d.ts.map +1 -1
  48. package/dist/modules/common/components/FormWrapper.d.ts.map +1 -1
  49. package/dist/modules/common/components/LocaleWrapper.d.ts +7 -0
  50. package/dist/modules/common/components/LocaleWrapper.d.ts.map +1 -0
  51. package/dist/modules/common/components/MediaAvatar.d.ts +6 -0
  52. package/dist/modules/common/components/MediaAvatar.d.ts.map +1 -0
  53. package/dist/modules/common/components/SelectOptions.d.ts +17 -0
  54. package/dist/modules/common/components/SelectOptions.d.ts.map +1 -0
  55. package/dist/modules/common/components/Table.d.ts +25 -0
  56. package/dist/modules/common/components/Table.d.ts.map +1 -0
  57. package/dist/modules/common/components/TableCell.d.ts +12 -0
  58. package/dist/modules/common/components/TableCell.d.ts.map +1 -0
  59. package/dist/modules/common/components/TableRow.d.ts +10 -0
  60. package/dist/modules/common/components/TableRow.d.ts.map +1 -0
  61. package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -1
  62. package/dist/modules/common/data/miscellaneous.d.ts +1 -0
  63. package/dist/modules/common/data/miscellaneous.d.ts.map +1 -1
  64. package/dist/modules/common/utils/sharedContext.d.ts +9 -0
  65. package/dist/modules/common/utils/sharedContext.d.ts.map +1 -0
  66. package/dist/modules/country.js +1 -1
  67. package/dist/modules/currency.js +1 -1
  68. package/dist/modules/delivery-provider.js +1 -1
  69. package/dist/modules/enrollment.js +66 -9
  70. package/dist/modules/event.js +1 -1
  71. package/dist/modules/filter.js +52 -3
  72. package/dist/modules/forms/lib/FormContext.d.ts.map +1 -1
  73. package/dist/modules/language.js +1 -1
  74. package/dist/modules/modal/hooks/useModal.d.ts.map +1 -1
  75. package/dist/modules/modal/utils/ModalContext.d.ts.map +1 -1
  76. package/dist/modules/order.js +2 -2
  77. package/dist/modules/payment-providers.js +1 -1
  78. package/dist/modules/product-review.js +4 -4
  79. package/dist/modules/product.js +5000 -11
  80. package/dist/modules/quotation.js +8 -1
  81. package/dist/modules/token.js +3 -3
  82. package/dist/modules/warehousing-providers.js +1 -1
  83. package/dist/modules/work.js +23 -111
  84. package/dist/plugins.js +1 -1
  85. package/dist/providers.js +8 -5
  86. package/dist/sdk/hooks.d.ts +3 -0
  87. package/dist/sdk/hooks.d.ts.map +1 -1
  88. package/dist/shims/admin-ui-plugins.js +1 -1
  89. package/dist/shims/apollo-client-react.js +1 -1
  90. package/dist/shims/apollo-client.js +1 -1
  91. package/dist/shims/next-head.js +1 -1
  92. package/dist/shims/next-image.js +1 -1
  93. package/dist/shims/next-link.js +1 -1
  94. package/dist/shims/next-router.js +1 -1
  95. package/dist/shims/react-dom-client.js +1 -1
  96. package/dist/shims/react-dom.js +1 -1
  97. package/dist/shims/react-hook-form.js +1 -1
  98. package/dist/shims/react-intl.js +1 -1
  99. package/dist/shims/react-jsx-runtime.js +1 -1
  100. package/dist/shims/react-toastify.js +1 -1
  101. package/dist/shims/react.js +1 -1
  102. package/dist/theme.js +1 -1
  103. package/dist/ui.js +3476 -3103
  104. package/out/403/index.html +2 -2
  105. package/out/404/index.html +2 -2
  106. package/out/404.html +2 -2
  107. package/out/423/index.html +2 -2
  108. package/out/500/index.html +2 -2
  109. package/out/_next/static/{lMHTn15MSw1RJOw-DD9ir → F8ReqaxPvLqFJ2DaPfMdn}/_buildManifest.js +61 -61
  110. package/out/_next/static/chunks/{2r9etl_ej7yq8.js → 0-mytn4v5bu5h.js} +3 -3
  111. package/out/_next/static/chunks/{33tjpl4-mac6i.js → 0060t3kg_i0lf.js} +3 -3
  112. package/out/_next/static/chunks/{2u435g-3ydo_e.js → 0186bg0b60cid.js} +3 -3
  113. package/out/_next/static/chunks/{17rvdo97_73-r.js → 049clkw76lm67.js} +2 -2
  114. package/out/_next/static/chunks/{2ay53yz_k-gka.js → 057evs7qr5y-t.js} +2 -2
  115. package/out/_next/static/chunks/{2mq7-oeknij50.js → 08tyybz20igty.js} +3 -3
  116. package/out/_next/static/chunks/{3nnzjetbwg4mr.js → 0_02skyivjqh6.js} +2 -2
  117. package/out/_next/static/chunks/{1u9myfa-qi11x.js → 0cblqqpscyy7w.js} +2 -2
  118. package/out/_next/static/chunks/{3js2_oj1o86yv.js → 0ibp5q64hnd88.js} +3 -3
  119. package/out/_next/static/chunks/{3gl6y4hg4xqh1.js → 0ichlp5c67dko.js} +2 -2
  120. package/out/_next/static/chunks/{1qnsi9q49l6yt.js → 0iui_zfuxfa45.js} +3 -3
  121. package/out/_next/static/chunks/{2cl2qh-t0bp-x.js → 0k6z6zl_zxqp7.js} +2 -2
  122. package/out/_next/static/chunks/{3t-cwqu-9qfvs.js → 0lutmpv07icdg.js} +2 -2
  123. package/out/_next/static/chunks/{1wrffo12-xpad.js → 0nhczsa2mm354.js} +4 -4
  124. package/out/_next/static/chunks/{2yjnzxw72qkwa.js → 0ryqvctymlr3k.js} +2 -2
  125. package/out/_next/static/chunks/{0x34_uvhgol1o.js → 0sh5256hzmj3b.js} +3 -3
  126. package/out/_next/static/chunks/{1yi1a106ht-nz.js → 0srpqs12m-bwy.js} +2 -2
  127. package/out/_next/static/chunks/{42gvqnnznu5d5.js → 0uv4d5f9o8wu1.js} +3 -3
  128. package/out/_next/static/chunks/{1dj6rtr2zagxl.js → 0vx_1vxljh4tn.js} +2 -2
  129. package/out/_next/static/chunks/{1u56ggvtfz1pw.js → 0vxe9bw7ffqy2.js} +5 -5
  130. package/out/_next/static/chunks/{1w30h0skp16nw.js → 18kae_yjyhjwf.js} +2 -2
  131. package/out/_next/static/chunks/{0t-8fvpr3gwkw.js → 1aegvtb5jv57q.js} +3 -3
  132. package/out/_next/static/chunks/{2vv2odme20_bj.js → 1cp4-dvxowp4c.js} +2 -2
  133. package/out/_next/static/chunks/{3e2sowyws346l.js → 1g8f6jrb9cp9v.js} +2 -2
  134. package/out/_next/static/chunks/{2slrs8mk6-_qy.js → 1gy9ae4fpd6jm.js} +2 -2
  135. package/out/_next/static/chunks/{2_kc34rl9smyf.js → 1hq9yt63076pk.js} +3 -3
  136. package/out/_next/static/chunks/{26qclo9iliv0v.js → 1k-cn_5ey1u62.js} +2 -2
  137. package/out/_next/static/chunks/{0hg96-q-sy8p3.js → 1k0mvn915uz76.js} +2 -2
  138. package/out/_next/static/chunks/{1vmcguc9yb6gq.js → 1l4snbkce_jb6.js} +2 -2
  139. package/out/_next/static/chunks/{24zql9mxp7je7.js → 1vk6h4qps69vq.js} +2 -2
  140. package/out/_next/static/chunks/1vx8_u7-f7q8u.js +28 -0
  141. package/out/_next/static/chunks/{2qocgb90m12d8.js → 217_5onj-woma.js} +1 -1
  142. package/out/_next/static/chunks/{2s6eb6877qk5z.js → 21o2yfegozc0m.js} +3 -3
  143. package/out/_next/static/chunks/{11496j8y5izl0.js → 22w2ovaffle-i.js} +3 -3
  144. package/out/_next/static/chunks/{22ial6oluoicg.js → 234pfdqctlnyt.js} +13 -13
  145. package/out/_next/static/chunks/{23thyqnxwb_h4.js → 25d8wr34sbm__.js} +2 -2
  146. package/out/_next/static/chunks/{06a1c2sikfkdk.js → 29w1exzy704_7.js} +3 -3
  147. package/out/_next/static/chunks/{2impwm9m10-y5.js → 2c4vy8ofex0ti.js} +2 -2
  148. package/out/_next/static/chunks/{3v-4df_kpu7wl.js → 2g39exixp92yf.js} +2 -2
  149. package/out/_next/static/chunks/{0w6403ca0wd40.js → 2hvt_8j6jkd_n.js} +3 -3
  150. package/out/_next/static/chunks/{0irr04sbnadk8.js → 2iuznbar_ttrh.js} +2 -2
  151. package/out/_next/static/chunks/{0fiwxqhlo_suy.js → 2jjgby8cd1gdj.js} +4 -4
  152. package/out/_next/static/chunks/{2puhcafuku-tt.js → 2lwxs_ly4bz1o.js} +4 -4
  153. package/out/_next/static/chunks/2rtyphk0o1hbr.js +5 -0
  154. package/out/_next/static/chunks/{1zh3wmaf2a0wq.js → 2sukt9l-1md8_.js} +6 -6
  155. package/out/_next/static/chunks/{44hx7evqwmlix.js → 2vt52_i-6cdbh.js} +3 -3
  156. package/out/_next/static/chunks/{1zmw93-y4onb8.js → 38ipj45w-tqay.js} +3 -3
  157. package/out/_next/static/chunks/{16b-fme2lvyik.js → 39634va9fx9s2.js} +2 -2
  158. package/out/_next/static/chunks/{0g1ikcsz2gw8d.js → 3a0hqx7ohm5lh.js} +2 -2
  159. package/out/_next/static/chunks/{0amvl_hv6wa7d.js → 3dr_oa5hx41is.js} +2 -2
  160. package/out/_next/static/chunks/{1pv3s5pi4mn-7.js → 3e7w6ko5psik7.js} +5 -5
  161. package/out/_next/static/chunks/{1dv2thnikolnz.js → 3eow7lw1727kt.js} +2 -2
  162. package/out/_next/static/chunks/{1s5id04nxpmov.js → 3f1gb4_hyhtho.js} +3 -3
  163. package/out/_next/static/chunks/{22mbms24up6d4.js → 3g4qj6_qh97q_.js} +3 -3
  164. package/out/_next/static/chunks/{1ikc8-ca87tw_.js → 3jcf4ei6zgnca.js} +3 -3
  165. package/out/_next/static/chunks/{1asyhd18d8b19.js → 3mnt471ayfsvh.js} +2 -2
  166. package/out/_next/static/chunks/{3e-hohr5rbfgs.js → 3ondw3-zthjz5.js} +4 -4
  167. package/out/_next/static/chunks/{31yuk0tzdgnsq.js → 3ra_41-fw410n.js} +3 -3
  168. package/out/_next/static/chunks/{17t_4qy79-xou.js → 3tq-bb0j1_lpu.js} +2 -2
  169. package/out/_next/static/chunks/{3dshohnaq5dpb.js → 3ww_p-agyd9u-.js} +2 -2
  170. package/out/_next/static/chunks/{3tn3fjkayia2l.js → 3yz34q3ulli7q.js} +2 -2
  171. package/out/_next/static/chunks/{0pp2j5ys0s75h.js → 3zs002htik_8l.js} +2 -2
  172. package/out/_next/static/chunks/{0bx11n-vs9rye.js → 41fbmiggueudh.js} +3 -3
  173. package/out/_next/static/chunks/{194e8b6x5qm5k.js → 43e0fp97w800k.js} +2 -2
  174. package/out/_next/static/chunks/{389rjxe1t1mxi.js → 43gv4x1sfyb5l.js} +2 -2
  175. package/out/_next/static/chunks/{2ypcj5e-tv2ki.js → 44r51e87s4z_d.js} +2 -2
  176. package/out/_next/static/chunks/{turbopack-1kg_x57lhnhln.js → turbopack-01866gjdddrxa.js} +1 -1
  177. package/out/_next/static/chunks/{turbopack-0-huij9pkr6i5.js → turbopack-08ttg7vxsdnsj.js} +1 -1
  178. package/out/_next/static/chunks/{turbopack-37z02xo4d9761.js → turbopack-0a3j0ezn8okfg.js} +1 -1
  179. package/out/_next/static/chunks/{turbopack-0pdfslh_xau4v.js → turbopack-0anbjm4c1j4u4.js} +1 -1
  180. package/out/_next/static/chunks/{turbopack-0wc1wpl3t5cbf.js → turbopack-0ga3wfg-oyyst.js} +1 -1
  181. package/out/_next/static/chunks/{turbopack-2v6rz3zo07si0.js → turbopack-0m3lvbvrn923g.js} +1 -1
  182. package/out/_next/static/chunks/{turbopack-42kawbzqb610r.js → turbopack-0pmjdjcdx7cqp.js} +1 -1
  183. package/out/_next/static/chunks/{turbopack-3z_pmy149cb3t.js → turbopack-0ptvhnhsw0_c7.js} +1 -1
  184. package/out/_next/static/chunks/turbopack-0s4b5r_1d8yqv.js +1 -0
  185. package/out/_next/static/chunks/{turbopack-0mp6vcjbi4oj6.js → turbopack-0sihqflu4qpvw.js} +1 -1
  186. package/out/_next/static/chunks/{turbopack-3467hrkyb1r4-.js → turbopack-0tc31uax4buqq.js} +1 -1
  187. package/out/_next/static/chunks/{turbopack-0ah23ustnbjgw.js → turbopack-0w2rzh4i3j2og.js} +1 -1
  188. package/out/_next/static/chunks/{turbopack-2w27fkgilqbl3.js → turbopack-10ldzl5n31zl-.js} +1 -1
  189. package/out/_next/static/chunks/{turbopack-259f81vw0sjro.js → turbopack-19e_bi5k2rqyy.js} +1 -1
  190. package/out/_next/static/chunks/{turbopack-3p03o8o_0h4o1.js → turbopack-19i6-4a5o4fil.js} +1 -1
  191. package/out/_next/static/chunks/turbopack-19vr9o5829d-f.js +1 -0
  192. package/out/_next/static/chunks/{turbopack-14elmv-0t42r4.js → turbopack-19yw5qwon7l57.js} +1 -1
  193. package/out/_next/static/chunks/{turbopack-3v-9xb14o2wcf.js → turbopack-1cx5i7_gdoz5k.js} +1 -1
  194. package/out/_next/static/chunks/{turbopack-0hwktepjs4shu.js → turbopack-1d-c7awe26kf5.js} +1 -1
  195. package/out/_next/static/chunks/{turbopack-2dp-kk65cjuz1.js → turbopack-1l1aen9tojmq4.js} +1 -1
  196. package/out/_next/static/chunks/{turbopack-2u8czufggehlj.js → turbopack-1o1rar8ouv6h9.js} +1 -1
  197. package/out/_next/static/chunks/{turbopack-3nxt9w32_n_vs.js → turbopack-1od_4a7nj02l4.js} +1 -1
  198. package/out/_next/static/chunks/{turbopack-2x4qn8b3l97el.js → turbopack-1r_0o22d_puxo.js} +1 -1
  199. package/out/_next/static/chunks/{turbopack-11i280gb7ytob.js → turbopack-1wx5785osz26z.js} +1 -1
  200. package/out/_next/static/chunks/{turbopack-31liqa7xywfc3.js → turbopack-21vayl2_q4r5u.js} +1 -1
  201. package/out/_next/static/chunks/{turbopack-374ar5091nfoc.js → turbopack-23nr2ioaqw90j.js} +1 -1
  202. package/out/_next/static/chunks/{turbopack-3aw_3x16wx0hg.js → turbopack-23u97wxsuqiqb.js} +1 -1
  203. package/out/_next/static/chunks/{turbopack-2rnunhgad49uw.js → turbopack-24ylsu2au7hg1.js} +1 -1
  204. package/out/_next/static/chunks/{turbopack-22l2qxvuvnfnm.js → turbopack-28_dvdmt6lvhn.js} +1 -1
  205. package/out/_next/static/chunks/{turbopack-37k0iid3ve75q.js → turbopack-2bo7hmw4eirxu.js} +1 -1
  206. package/out/_next/static/chunks/{turbopack-1j4b2o2gyndaw.js → turbopack-2dk8ur1fvwxzj.js} +1 -1
  207. package/out/_next/static/chunks/{turbopack-3d4st1erykui5.js → turbopack-2e_wy0ffi64id.js} +1 -1
  208. package/out/_next/static/chunks/{turbopack-0a9my88c0do8o.js → turbopack-2fuk9oepxr5n0.js} +1 -1
  209. package/out/_next/static/chunks/{turbopack-2kbsoz95aykk8.js → turbopack-2g2viapamsvwe.js} +1 -1
  210. package/out/_next/static/chunks/{turbopack-3qenf92gnhnqu.js → turbopack-2ga09m38zacev.js} +1 -1
  211. package/out/_next/static/chunks/{turbopack-2dog_ytiydz1b.js → turbopack-2pxtve7lryqre.js} +1 -1
  212. package/out/_next/static/chunks/{turbopack-400v7uvt-ygyn.js → turbopack-2qbfd_-7v5dbo.js} +1 -1
  213. package/out/_next/static/chunks/{turbopack-25n3ygfcffvqv.js → turbopack-2rz_y4ejrvafp.js} +1 -1
  214. package/out/_next/static/chunks/{turbopack-41jswgtq4l3-n.js → turbopack-2u0ls0liblo_9.js} +1 -1
  215. package/out/_next/static/chunks/{turbopack-430a09gmn8rwm.js → turbopack-2u_328z53ed9p.js} +1 -1
  216. package/out/_next/static/chunks/{turbopack-2d2i6sp7ig7ar.js → turbopack-2xfom16ggx1i3.js} +1 -1
  217. package/out/_next/static/chunks/{turbopack-0-h3wxx12zewd.js → turbopack-2ycfwit0p-fkf.js} +1 -1
  218. package/out/_next/static/chunks/{turbopack-0p995f9piwklo.js → turbopack-2yekm5ij2g-aw.js} +1 -1
  219. package/out/_next/static/chunks/{turbopack-32aublis-jlvx.js → turbopack-3-w-v8og1lok2.js} +1 -1
  220. package/out/_next/static/chunks/{turbopack-3s9690f4fp1sr.js → turbopack-30qkgccwlkv7n.js} +1 -1
  221. package/out/_next/static/chunks/{turbopack-0x-489k903f9f.js → turbopack-36bl9-rerhcfg.js} +1 -1
  222. package/out/_next/static/chunks/{turbopack-11mgtsuzuth10.js → turbopack-37a6lyjyz7fts.js} +1 -1
  223. package/out/_next/static/chunks/{turbopack-0wu_ea8477kfb.js → turbopack-37lb9ujef-ujm.js} +1 -1
  224. package/out/_next/static/chunks/{turbopack-3wy9kdvqtyrqr.js → turbopack-39nctu3yv9iv4.js} +1 -1
  225. package/out/_next/static/chunks/{turbopack-37465j0f7qzui.js → turbopack-3_mmmbs60vr14.js} +1 -1
  226. package/out/_next/static/chunks/{turbopack-0iqoh65_n4y31.js → turbopack-3_o3qz69ih0uu.js} +1 -1
  227. package/out/_next/static/chunks/{turbopack-18b89oxgeg1p3.js → turbopack-3cv39r7v3s2gr.js} +1 -1
  228. package/out/_next/static/chunks/{turbopack-0ca90b_8se2ws.js → turbopack-3cv3hgsoo_z1k.js} +1 -1
  229. package/out/_next/static/chunks/{turbopack-00rnle9d3h5j8.js → turbopack-3pgmc-lv74ewz.js} +1 -1
  230. package/out/_next/static/chunks/{turbopack-3zk-yr-2ktefz.js → turbopack-3uj40sz7i7jg0.js} +1 -1
  231. package/out/_next/static/chunks/{turbopack-1m20zbo-8iwfh.js → turbopack-3v4nxmdavly34.js} +1 -1
  232. package/out/_next/static/chunks/{turbopack-35lc2tzfqfnq3.js → turbopack-3vfm6fp92up6y.js} +1 -1
  233. package/out/_next/static/chunks/{turbopack-0bj4v4kbzidiu.js → turbopack-3vyi51cuxeowy.js} +1 -1
  234. package/out/_next/static/chunks/{turbopack-00ka03s4zfhmk.js → turbopack-3w26eu86co02z.js} +1 -1
  235. package/out/_next/static/chunks/{turbopack-1sy__tr_jpy9p.js → turbopack-3zc0h1216mtm2.js} +1 -1
  236. package/out/_next/static/chunks/{turbopack-0q1m4v0r5_pw-.js → turbopack-4166pmk5_y_4x.js} +1 -1
  237. package/out/_next/static/chunks/{turbopack-0m53ts1akyqg9.js → turbopack-431y1sh-m_0mp.js} +1 -1
  238. package/out/_offline/index.html +2 -2
  239. package/out/account/forgot-password/index.html +2 -2
  240. package/out/account/index.html +2 -2
  241. package/out/assortments/AssortmentDetailPage/index.html +2 -2
  242. package/out/assortments/index.html +2 -2
  243. package/out/assortments/new/index.html +2 -2
  244. package/out/copilot/index.html +2 -2
  245. package/out/country/CountryDetailPage/index.html +2 -2
  246. package/out/country/index.html +2 -2
  247. package/out/country/new/index.html +2 -2
  248. package/out/currency/CurrencyDetailPage/index.html +2 -2
  249. package/out/currency/index.html +2 -2
  250. package/out/currency/new/index.html +2 -2
  251. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
  252. package/out/delivery-provider/index.html +2 -2
  253. package/out/delivery-provider/new/index.html +2 -2
  254. package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
  255. package/out/enrollments/index.html +2 -2
  256. package/out/events/EventDetailPage/index.html +2 -2
  257. package/out/events/index.html +2 -2
  258. package/out/exports/index.html +2 -2
  259. package/out/external/index.html +2 -2
  260. package/out/filters/FilterDetailPage/index.html +2 -2
  261. package/out/filters/index.html +2 -2
  262. package/out/filters/new/index.html +2 -2
  263. package/out/index.html +2 -2
  264. package/out/install/index.html +2 -2
  265. package/out/language/LanguageDetailPage/index.html +2 -2
  266. package/out/language/index.html +2 -2
  267. package/out/language/new/index.html +2 -2
  268. package/out/log-in/index.html +2 -2
  269. package/out/orders/OrderDetailPage/index.html +2 -2
  270. package/out/orders/index.html +2 -2
  271. package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
  272. package/out/payment-provider/index.html +2 -2
  273. package/out/payment-provider/new/index.html +2 -2
  274. package/out/products/ProductDetailPage/index.html +2 -2
  275. package/out/products/index.html +2 -2
  276. package/out/products/new/index.html +2 -2
  277. package/out/quotations/QuotationDetailPage/index.html +2 -2
  278. package/out/quotations/index.html +2 -2
  279. package/out/reset-password/index.html +2 -2
  280. package/out/sign-up/index.html +2 -2
  281. package/out/styleguide/index.html +2 -2
  282. package/out/tokens/TokenDetailPage/index.html +2 -2
  283. package/out/tokens/index.html +2 -2
  284. package/out/users/UserDetailPage/index.html +2 -2
  285. package/out/users/index.html +2 -2
  286. package/out/users/new/index.html +2 -2
  287. package/out/verify-email/index.html +2 -2
  288. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
  289. package/out/warehousing-provider/index.html +2 -2
  290. package/out/warehousing-provider/new/index.html +2 -2
  291. package/out/works/WorkDetailPage/index.html +2 -2
  292. package/out/works/WorkQueueListView/index.html +2 -2
  293. package/out/works/index.html +2 -2
  294. package/out/works/management/index.html +2 -2
  295. package/package.json +1 -1
  296. package/dist/chunk-F2TCVEQX.js +0 -514
  297. package/dist/chunk-KCN7DDPH.js +0 -1116
  298. package/dist/chunk-RORNAN2J.js +0 -12
  299. package/dist/chunk-RVG6IOFC.js +0 -11
  300. package/dist/chunk-YZGQJJCD.js +0 -37
  301. package/out/_next/static/chunks/1f8hl62epp2bs.js +0 -5
  302. package/out/_next/static/chunks/2t724bghemjmf.js +0 -28
  303. package/out/_next/static/chunks/turbopack-2ah1mf3i_019l.js +0 -1
  304. package/out/_next/static/chunks/turbopack-3xy1pj-av41-3.js +0 -1
  305. /package/out/_next/static/{lMHTn15MSw1RJOw-DD9ir → F8ReqaxPvLqFJ2DaPfMdn}/_clientMiddlewareManifest.js +0 -0
  306. /package/out/_next/static/{lMHTn15MSw1RJOw-DD9ir → F8ReqaxPvLqFJ2DaPfMdn}/_ssgManifest.js +0 -0
@@ -0,0 +1,135 @@
1
+ import { A, Y, y, l3, u3, i3, n, o2, K, C, u, N, m, x2, t2, c, b, s, p } from './chunk-QHR23GVH.js';
2
+ import c2, { createContext, useRef, useState, useMemo, Fragment, useEffect, useContext } from 'react';
3
+
4
+ function f() {
5
+ let e = useRef(false);
6
+ return n(() => (e.current = true, () => {
7
+ e.current = false;
8
+ }), []), e;
9
+ }
10
+
11
+ // ../node_modules/@headlessui/react/dist/components/transition/transition.js
12
+ function ue(e) {
13
+ var t2;
14
+ return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || !b((t2 = e.as) != null ? t2 : de) || c2.Children.count(e.children) === 1;
15
+ }
16
+ var V = createContext(null);
17
+ V.displayName = "TransitionContext";
18
+ var De = ((n2) => (n2.Visible = "visible", n2.Hidden = "hidden", n2))(De || {});
19
+ function He() {
20
+ let e = useContext(V);
21
+ if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
22
+ return e;
23
+ }
24
+ function Ae() {
25
+ let e = useContext(w);
26
+ if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
27
+ return e;
28
+ }
29
+ var w = createContext(null);
30
+ w.displayName = "NestingContext";
31
+ function M(e) {
32
+ return "children" in e ? M(e.children) : e.current.filter(({ el: t2 }) => t2.current !== null).filter(({ state: t2 }) => t2 === "visible").length > 0;
33
+ }
34
+ function Te(e, t2) {
35
+ let n2 = s(e), l2 = useRef([]), S = f(), R = p(), d = o2((o2, i2 = C.Hidden) => {
36
+ let a = l2.current.findIndex(({ el: s2 }) => s2 === o2);
37
+ a !== -1 && (u(i2, { [C.Unmount]() {
38
+ l2.current.splice(a, 1);
39
+ }, [C.Hidden]() {
40
+ l2.current[a].state = "hidden";
41
+ } }), R.microTask(() => {
42
+ var s2;
43
+ !M(l2) && S.current && ((s2 = n2.current) == null || s2.call(n2));
44
+ }));
45
+ }), y2 = o2((o2) => {
46
+ let i2 = l2.current.find(({ el: a }) => a === o2);
47
+ return i2 ? i2.state !== "visible" && (i2.state = "visible") : l2.current.push({ el: o2, state: "visible" }), () => d(o2, C.Unmount);
48
+ }), C2 = useRef([]), p2 = useRef(Promise.resolve()), h = useRef({ enter: [], leave: [] }), g = o2((o2, i2, a) => {
49
+ C2.current.splice(0), t2 && (t2.chains.current[i2] = t2.chains.current[i2].filter(([s2]) => s2 !== o2)), t2 == null || t2.chains.current[i2].push([o2, new Promise((s2) => {
50
+ C2.current.push(s2);
51
+ })]), t2 == null || t2.chains.current[i2].push([o2, new Promise((s2) => {
52
+ Promise.all(h.current[i2].map(([r2, f2]) => f2)).then(() => s2());
53
+ })]), i2 === "enter" ? p2.current = p2.current.then(() => t2 == null ? void 0 : t2.wait.current).then(() => a(i2)) : a(i2);
54
+ }), v = o2((o2, i2, a) => {
55
+ Promise.all(h.current[i2].splice(0).map(([s2, r2]) => r2)).then(() => {
56
+ var s2;
57
+ (s2 = C2.current.shift()) == null || s2();
58
+ }).then(() => a(i2));
59
+ });
60
+ return useMemo(() => ({ children: l2, register: y2, unregister: d, onStart: g, onStop: v, wait: p2, chains: h }), [y2, d, l2, g, v, h, p2]);
61
+ }
62
+ var de = Fragment;
63
+ var fe = A.RenderStrategy;
64
+ function Fe(e, t2$1) {
65
+ var ee, te;
66
+ let { transition: n2 = true, beforeEnter: l2, afterEnter: S, beforeLeave: R, afterLeave: d, enter: y2, enterFrom: C2, enterTo: p2, entered: h, leave: g, leaveFrom: v, leaveTo: o2$1, ...i2 } = e, [a, s2] = useState(null), r2 = useRef(null), f2 = ue(e), U = y(...f2 ? [r2, t2$1, s2] : t2$1 === null ? [] : [t2$1]), H = (ee = i2.unmount) == null || ee ? C.Unmount : C.Hidden, { show: u3, appear: z, initial: K2 } = He(), [m2, j] = useState(u3 ? "visible" : "hidden"), Q = Ae(), { register: A2, unregister: F } = Q;
67
+ n(() => A2(r2), [A2, r2]), n(() => {
68
+ if (H === C.Hidden && r2.current) {
69
+ if (u3 && m2 !== "visible") {
70
+ j("visible");
71
+ return;
72
+ }
73
+ return u(m2, { ["hidden"]: () => F(r2), ["visible"]: () => A2(r2) });
74
+ }
75
+ }, [m2, r2, A2, F, u3, H]);
76
+ let G = l3();
77
+ n(() => {
78
+ if (f2 && G && m2 === "visible" && r2.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
79
+ }, [r2, m2, G, f2]);
80
+ let ce = K2 && !z, Y2 = z && u3 && K2, B = useRef(false), I = Te(() => {
81
+ B.current || (j("hidden"), F(r2));
82
+ }, Q), Z = o2((W) => {
83
+ B.current = true;
84
+ let L = W ? "enter" : "leave";
85
+ I.onStart(r2, L, (_) => {
86
+ _ === "enter" ? l2 == null || l2() : _ === "leave" && (R == null || R());
87
+ });
88
+ }), $ = o2((W) => {
89
+ let L = W ? "enter" : "leave";
90
+ B.current = false, I.onStop(r2, L, (_) => {
91
+ _ === "enter" ? S == null || S() : _ === "leave" && (d == null || d());
92
+ }), L === "leave" && !M(I) && (j("hidden"), F(r2));
93
+ });
94
+ useEffect(() => {
95
+ f2 && n2 || (Z(u3), $(u3));
96
+ }, [u3, f2, n2]);
97
+ let pe = /* @__PURE__ */ (() => !(!n2 || !f2 || !G || ce))(), [, T] = N(pe, a, u3, { start: Z, end: $ }), Ce = m({ ref: U, className: ((te = t2(i2.className, Y2 && y2, Y2 && C2, T.enter && y2, T.enter && T.closed && C2, T.enter && !T.closed && p2, T.leave && g, T.leave && !T.closed && v, T.leave && T.closed && o2$1, !T.transition && u3 && h)) == null ? void 0 : te.trim()) || void 0, ...x2(T) }), N2 = 0;
98
+ m2 === "visible" && (N2 |= i3.Open), m2 === "hidden" && (N2 |= i3.Closed), u3 && m2 === "hidden" && (N2 |= i3.Opening), !u3 && m2 === "visible" && (N2 |= i3.Closing);
99
+ let he = K();
100
+ return c2.createElement(w.Provider, { value: I }, c2.createElement(c, { value: N2 }, he({ ourProps: Ce, theirProps: i2, defaultTag: de, features: fe, visible: m2 === "visible", name: "Transition.Child" })));
101
+ }
102
+ function Ie(e, t2) {
103
+ let { show: n2, appear: l2 = false, unmount: S = true, ...R } = e, d = useRef(null), y2 = ue(e), C2 = y(...y2 ? [d, t2] : t2 === null ? [] : [t2]);
104
+ l3();
105
+ let p2 = u3();
106
+ if (n2 === void 0 && p2 !== null && (n2 = (p2 & i3.Open) === i3.Open), n2 === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
107
+ let [h, g] = useState(n2 ? "visible" : "hidden"), v = Te(() => {
108
+ n2 || g("hidden");
109
+ }), [o2$1, i2] = useState(true), a = useRef([n2]);
110
+ n(() => {
111
+ o2$1 !== false && a.current[a.current.length - 1] !== n2 && (a.current.push(n2), i2(false));
112
+ }, [a, n2]);
113
+ let s2 = useMemo(() => ({ show: n2, appear: l2, initial: o2$1 }), [n2, l2, o2$1]);
114
+ n(() => {
115
+ n2 ? g("visible") : !M(v) && d.current !== null && g("hidden");
116
+ }, [n2, v]);
117
+ let r2 = { unmount: S }, f2 = o2(() => {
118
+ var u3;
119
+ o2$1 && i2(false), (u3 = e.beforeEnter) == null || u3.call(e);
120
+ }), U = o2(() => {
121
+ var u3;
122
+ o2$1 && i2(false), (u3 = e.beforeLeave) == null || u3.call(e);
123
+ }), H = K();
124
+ return c2.createElement(w.Provider, { value: v }, c2.createElement(V.Provider, { value: s2 }, H({ ourProps: { ...r2, as: Fragment, children: c2.createElement(me, { ref: C2, ...r2, ...R, beforeEnter: f2, beforeLeave: U }) }, theirProps: {}, defaultTag: Fragment, features: fe, visible: h === "visible", name: "Transition" })));
125
+ }
126
+ function Le(e, t2) {
127
+ let n2 = useContext(V) !== null, l2 = u3() !== null;
128
+ return c2.createElement(c2.Fragment, null, !n2 && l2 ? c2.createElement(X, { ref: t2, ...e }) : c2.createElement(me, { ref: t2, ...e }));
129
+ }
130
+ var X = Y(Ie);
131
+ var me = Y(Fe);
132
+ var Oe = Y(Le);
133
+ var Ke = Object.assign(X, { Child: Oe, Root: X });
134
+
135
+ export { Ke, Oe, f };
@@ -0,0 +1,388 @@
1
+ import { Ke, Oe, f as f$1 } from './chunk-3L6EZQ6P.js';
2
+ import { E, m, n as n$1 } from './chunk-FDHXLNZQ.js';
3
+ import { Y, r, u3, i3, y, u2, o2, l3, oe, y2, x, n, S, k3, f2, p2, H, n2, K, s4, l4 as l4$1, le, B, A, M, n3, u, v, T2, I, p, f, s2, l, t3, o4, d, w2 as w2$1, c2, t, A2, s3, i } from './chunk-QHR23GVH.js';
4
+ import { ModalContext_default } from './chunk-VBO377AY.js';
5
+ import l4, { createContext, useRef, useReducer, createRef, useCallback, useMemo, useContext, useState, Fragment, useEffect } from 'react';
6
+ import { useIntl } from 'react-intl';
7
+ import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
8
+
9
+ var e = createContext(() => {
10
+ });
11
+ function C({ value: t3, children: o4 }) {
12
+ return l4.createElement(e.Provider, { value: t3 }, o4);
13
+ }
14
+
15
+ // ../node_modules/@headlessui/react/dist/hooks/use-escape.js
16
+ function a(o4$1, r3 = typeof document != "undefined" ? document.defaultView : null, t3) {
17
+ let n6 = I(o4$1, "escape");
18
+ E(r3, "keydown", (e2) => {
19
+ n6 && (e2.defaultPrevented || e2.key === o4.Escape && t3(e2));
20
+ });
21
+ }
22
+ function f4() {
23
+ var t3;
24
+ let [e2] = useState(() => typeof window != "undefined" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [o4, c2] = useState((t3 = e2 == null ? void 0 : e2.matches) != null ? t3 : false);
25
+ return n(() => {
26
+ if (!e2) return;
27
+ function n6(r3) {
28
+ c2(r3.matches);
29
+ }
30
+ return e2.addEventListener("change", n6), () => e2.removeEventListener("change", n6);
31
+ }, [e2]), o4;
32
+ }
33
+ function S2({ defaultContainers: l5 = [], portals: n6, mainTreeNode: o4 } = {}) {
34
+ let c2 = o2(() => {
35
+ var r3, u5;
36
+ let i5 = l(o4), t3$1 = [];
37
+ for (let e2 of l5) e2 !== null && (t3(e2) ? t3$1.push(e2) : "current" in e2 && t3(e2.current) && t3$1.push(e2.current));
38
+ if (n6 != null && n6.current) for (let e2 of n6.current) t3$1.push(e2);
39
+ for (let e2 of (r3 = i5 == null ? void 0 : i5.querySelectorAll("html > *, body > *")) != null ? r3 : []) e2 !== document.body && e2 !== document.head && t3(e2) && e2.id !== "headlessui-portal-root" && (o4 && (e2.contains(o4) || e2.contains((u5 = o4 == null ? void 0 : o4.getRootNode()) == null ? void 0 : u5.host)) || t3$1.some((E2) => e2.contains(E2)) || t3$1.push(e2));
40
+ return t3$1;
41
+ });
42
+ return { resolveContainers: c2, contains: o2((i5) => c2().some((t3) => t3.contains(i5))) };
43
+ }
44
+ var d2 = createContext(null);
45
+ function j({ children: l5, node: n6 }) {
46
+ let [o4, c2] = useState(null), i5 = x2(n6 != null ? n6 : o4);
47
+ return l4.createElement(d2.Provider, { value: i5 }, l5, i5 === null && l4.createElement(f, { features: s2.Hidden, ref: (t3$1) => {
48
+ var r3, u5;
49
+ if (t3$1) {
50
+ for (let e2 of (u5 = (r3 = l(t3$1)) == null ? void 0 : r3.querySelectorAll("html > *, body > *")) != null ? u5 : []) if (e2 !== document.body && e2 !== document.head && t3(e2) && e2 != null && e2.contains(t3$1)) {
51
+ c2(e2);
52
+ break;
53
+ }
54
+ }
55
+ } }));
56
+ }
57
+ function x2(l5 = null) {
58
+ var n6;
59
+ return (n6 = useContext(d2)) != null ? n6 : l5;
60
+ }
61
+ var a2 = ((r3) => (r3[r3.Forwards = 0] = "Forwards", r3[r3.Backwards = 1] = "Backwards", r3))(a2 || {});
62
+ function u4() {
63
+ let e2 = useRef(0);
64
+ return s3(true, "keydown", (r3) => {
65
+ r3.key === "Tab" && (e2.current = r3.shiftKey ? 1 : 0);
66
+ }, true), e2;
67
+ }
68
+
69
+ // ../node_modules/@headlessui/react/dist/components/focus-trap/focus-trap.js
70
+ function x3(o4) {
71
+ if (!o4) return /* @__PURE__ */ new Set();
72
+ if (typeof o4 == "function") return new Set(o4());
73
+ let t3$1 = /* @__PURE__ */ new Set();
74
+ for (let e2 of o4.current) t3(e2.current) && t3$1.add(e2.current);
75
+ return t3$1;
76
+ }
77
+ var $ = "div";
78
+ var G = ((n6) => (n6[n6.None = 0] = "None", n6[n6.InitialFocus = 1] = "InitialFocus", n6[n6.TabLock = 2] = "TabLock", n6[n6.FocusLock = 4] = "FocusLock", n6[n6.RestoreFocus = 8] = "RestoreFocus", n6[n6.AutoFocus = 16] = "AutoFocus", n6))(G || {});
79
+ function w2(o4, t3) {
80
+ let e2 = useRef(null), r3 = y(e2, t3), { initialFocus: u5, initialFocusFallback: a3, containers: n6, features: s5 = 15, ...f5 } = o4;
81
+ l3() || (s5 = 0);
82
+ let l5 = u2(e2.current);
83
+ re(s5, { ownerDocument: l5 });
84
+ let T2$1 = ne(s5, { ownerDocument: l5, container: e2, initialFocus: u5, initialFocusFallback: a3 });
85
+ oe2(s5, { ownerDocument: l5, container: e2, containers: n6, previousActiveElement: T2$1 });
86
+ let g = u4(), A3 = o2((c2) => {
87
+ if (!n3(e2.current)) return;
88
+ let E2 = e2.current;
89
+ ((V) => V())(() => {
90
+ u(g.current, { [a2.Forwards]: () => {
91
+ v(E2, T2.First, { skipElements: [c2.relatedTarget, a3] });
92
+ }, [a2.Backwards]: () => {
93
+ v(E2, T2.Last, { skipElements: [c2.relatedTarget, a3] });
94
+ } });
95
+ });
96
+ }), v2 = I(!!(s5 & 2), "focus-trap#tab-lock"), N = p(), b2 = useRef(false), k2 = { ref: r3, onKeyDown(c2) {
97
+ c2.key == "Tab" && (b2.current = true, N.requestAnimationFrame(() => {
98
+ b2.current = false;
99
+ }));
100
+ }, onBlur(c2) {
101
+ if (!(s5 & 4)) return;
102
+ let E2 = x3(n6);
103
+ n3(e2.current) && E2.add(e2.current);
104
+ let L = c2.relatedTarget;
105
+ i(L) && L.dataset.headlessuiFocusGuard !== "true" && (I2(E2, L) || (b2.current ? v(e2.current, u(g.current, { [a2.Forwards]: () => T2.Next, [a2.Backwards]: () => T2.Previous }) | T2.WrapAround, { relativeTo: c2.target }) : i(c2.target) && w2$1(c2.target)));
106
+ } }, B2 = K();
107
+ return l4.createElement(l4.Fragment, null, v2 && l4.createElement(f, { as: "button", type: "button", "data-headlessui-focus-guard": true, onFocus: A3, features: s2.Focusable }), B2({ ourProps: k2, theirProps: f5, defaultTag: $, name: "FocusTrap" }), v2 && l4.createElement(f, { as: "button", type: "button", "data-headlessui-focus-guard": true, onFocus: A3, features: s2.Focusable }));
108
+ }
109
+ var ee = Y(w2);
110
+ var ge = Object.assign(ee, { features: G });
111
+ function te(o4 = true) {
112
+ let t3 = useRef(n$1.slice());
113
+ return m(([e2], [r3]) => {
114
+ r3 === true && e2 === false && t(() => {
115
+ t3.current.splice(0);
116
+ }), r3 === false && e2 === true && (t3.current = n$1.slice());
117
+ }, [o4, n$1, t3]), o2(() => {
118
+ var e2;
119
+ return (e2 = t3.current.find((r3) => r3 != null && r3.isConnected)) != null ? e2 : null;
120
+ });
121
+ }
122
+ function re(o4, { ownerDocument: t3 }) {
123
+ let e2 = !!(o4 & 8), r3 = te(e2);
124
+ m(() => {
125
+ e2 || d(t3 == null ? void 0 : t3.body) && w2$1(r3());
126
+ }, [e2]), c2(() => {
127
+ e2 && w2$1(r3());
128
+ });
129
+ }
130
+ function ne(o4, { ownerDocument: t3, container: e2, initialFocus: r3, initialFocusFallback: u5 }) {
131
+ let a3 = useRef(null), n6 = I(!!(o4 & 1), "focus-trap#initial-focus"), s5 = f$1();
132
+ return m(() => {
133
+ if (o4 === 0) return;
134
+ if (!n6) {
135
+ u5 != null && u5.current && w2$1(u5.current);
136
+ return;
137
+ }
138
+ let f5 = e2.current;
139
+ f5 && t(() => {
140
+ if (!s5.current) return;
141
+ let l5 = t3 == null ? void 0 : t3.activeElement;
142
+ if (r3 != null && r3.current) {
143
+ if ((r3 == null ? void 0 : r3.current) === l5) {
144
+ a3.current = l5;
145
+ return;
146
+ }
147
+ } else if (f5.contains(l5)) {
148
+ a3.current = l5;
149
+ return;
150
+ }
151
+ if (r3 != null && r3.current) w2$1(r3.current);
152
+ else {
153
+ if (o4 & 16) {
154
+ if (v(f5, T2.First | T2.AutoFocus) !== A2.Error) return;
155
+ } else if (v(f5, T2.First) !== A2.Error) return;
156
+ if (u5 != null && u5.current && (w2$1(u5.current), (t3 == null ? void 0 : t3.activeElement) === u5.current)) return;
157
+ console.warn("There are no focusable elements inside the <FocusTrap />");
158
+ }
159
+ a3.current = t3 == null ? void 0 : t3.activeElement;
160
+ });
161
+ }, [u5, n6, o4]), a3;
162
+ }
163
+ function oe2(o4, { ownerDocument: t3, container: e2, containers: r3, previousActiveElement: u5 }) {
164
+ let a3 = f$1(), n6 = !!(o4 & 4);
165
+ E(t3 == null ? void 0 : t3.defaultView, "focus", (s5) => {
166
+ if (!n6 || !a3.current) return;
167
+ let f5 = x3(r3);
168
+ n3(e2.current) && f5.add(e2.current);
169
+ let l5 = u5.current;
170
+ if (!l5) return;
171
+ let T2 = s5.target;
172
+ n3(T2) ? I2(f5, T2) ? (u5.current = T2, w2$1(T2)) : (s5.preventDefault(), s5.stopPropagation(), w2$1(l5)) : w2$1(u5.current);
173
+ }, true);
174
+ }
175
+ function I2(o4, t3) {
176
+ for (let e2 of o4) if (e2.contains(t3)) return true;
177
+ return false;
178
+ }
179
+
180
+ // ../node_modules/@headlessui/react/dist/components/dialog/dialog.js
181
+ var we = ((o4) => (o4[o4.Open = 0] = "Open", o4[o4.Closed = 1] = "Closed", o4))(we || {});
182
+ var Be = ((t3) => (t3[t3.SetTitleId = 0] = "SetTitleId", t3))(Be || {});
183
+ var Ue = { [0](e2, t3) {
184
+ return e2.titleId === t3.id ? e2 : { ...e2, titleId: t3.id };
185
+ } };
186
+ var w3 = createContext(null);
187
+ w3.displayName = "DialogContext";
188
+ function O(e2) {
189
+ let t3 = useContext(w3);
190
+ if (t3 === null) {
191
+ let o4 = new Error(`<${e2} /> is missing a parent <Dialog /> component.`);
192
+ throw Error.captureStackTrace && Error.captureStackTrace(o4, O), o4;
193
+ }
194
+ return t3;
195
+ }
196
+ function He(e2, t3) {
197
+ return u(t3.type, Ue, e2, t3);
198
+ }
199
+ var z = Y(function(t3, o4) {
200
+ let a3 = r(), { id: n6 = `headlessui-dialog-${a3}`, open: i5, onClose: p4, initialFocus: d3, role: s5 = "dialog", autoFocus: f5 = true, __demoMode: u5 = false, unmount: y3 = false, ...S3 } = t3, R = useRef(false);
201
+ s5 = (function() {
202
+ return s5 === "dialog" || s5 === "alertdialog" ? s5 : (R.current || (R.current = true, console.warn(`Invalid role [${s5}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
203
+ })();
204
+ let g = u3();
205
+ i5 === void 0 && g !== null && (i5 = (g & i3.Open) === i3.Open);
206
+ let T2 = useRef(null), I3 = y(T2, o4), F2 = u2(T2.current), c2 = i5 ? 0 : 1, [b2, Q] = useReducer(He, { titleId: null, descriptionId: null, panelRef: createRef() }), m2 = o2(() => p4(false)), B2 = o2((r3) => Q({ type: 0, id: r3 })), D = l3() ? c2 === 0 : false, [Z, ee2] = oe(), te2 = { get current() {
207
+ var r3;
208
+ return (r3 = b2.panelRef.current) != null ? r3 : T2.current;
209
+ } }, v2 = x2(), { resolveContainers: M3 } = S2({ mainTreeNode: v2, portals: Z, defaultContainers: [te2] }), U = g !== null ? (g & i3.Closing) === i3.Closing : false;
210
+ y2(u5 || U ? false : D, { allowed: o2(() => {
211
+ var r3, W;
212
+ return [(W = (r3 = T2.current) == null ? void 0 : r3.closest("[data-headlessui-portal]")) != null ? W : null];
213
+ }), disallowed: o2(() => {
214
+ var r3;
215
+ return [(r3 = v2 == null ? void 0 : v2.closest("body > *:not(#headlessui-portal-root)")) != null ? r3 : null];
216
+ }) });
217
+ let P = x.get(null);
218
+ n(() => {
219
+ if (D) return P.actions.push(n6), () => P.actions.pop(n6);
220
+ }, [P, n6, D]);
221
+ let H2 = S(P, useCallback((r3) => P.selectors.isTop(r3, n6), [P, n6]));
222
+ k3(H2, M3, (r3) => {
223
+ r3.preventDefault(), m2();
224
+ }), a(H2, F2 == null ? void 0 : F2.defaultView, (r3) => {
225
+ r3.preventDefault(), r3.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), m2();
226
+ }), f2(u5 || U ? false : D, F2, M3), p2(D, T2, m2);
227
+ let [oe3, ne2] = H(), re2 = useMemo(() => [{ dialogState: c2, close: m2, setTitleId: B2, unmount: y3 }, b2], [c2, m2, B2, y3, b2]), N = n2({ open: c2 === 0 }), le2 = { ref: I3, id: n6, role: s5, tabIndex: -1, "aria-modal": u5 ? void 0 : c2 === 0 ? true : void 0, "aria-labelledby": b2.titleId, "aria-describedby": oe3, unmount: y3 }, ae = !f4(), E2 = G.None;
228
+ D && !u5 && (E2 |= G.RestoreFocus, E2 |= G.TabLock, f5 && (E2 |= G.AutoFocus), ae && (E2 |= G.InitialFocus));
229
+ let ie = K();
230
+ return l4.createElement(s4, null, l4.createElement(l4$1, { force: true }, l4.createElement(le, null, l4.createElement(w3.Provider, { value: re2 }, l4.createElement(B, { target: T2 }, l4.createElement(l4$1, { force: false }, l4.createElement(ne2, { slot: N }, l4.createElement(ee2, null, l4.createElement(ge, { initialFocus: d3, initialFocusFallback: T2, containers: M3, features: E2 }, l4.createElement(C, { value: m2 }, ie({ ourProps: le2, theirProps: S3, slot: N, defaultTag: Ne, features: We, visible: c2 === 0, name: "Dialog" })))))))))));
231
+ });
232
+ var Ne = "div";
233
+ var We = A.RenderStrategy | A.Static;
234
+ function $e(e2, t3) {
235
+ let { transition: o4 = false, open: a3, ...n6 } = e2, i5 = u3(), p4 = e2.hasOwnProperty("open") || i5 !== null, d3 = e2.hasOwnProperty("onClose");
236
+ if (!p4 && !d3) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
237
+ if (!p4) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
238
+ if (!d3) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
239
+ if (!i5 && typeof e2.open != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e2.open}`);
240
+ if (typeof e2.onClose != "function") throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e2.onClose}`);
241
+ return (a3 !== void 0 || o4) && !n6.static ? l4.createElement(j, null, l4.createElement(Ke, { show: a3, transition: o4, unmount: n6.unmount }, l4.createElement(z, { ref: t3, ...n6 }))) : l4.createElement(j, null, l4.createElement(z, { ref: t3, open: a3, ...n6 }));
242
+ }
243
+ var je = "div";
244
+ function Ye(e2, t3) {
245
+ let o4 = r(), { id: a3 = `headlessui-dialog-panel-${o4}`, transition: n6 = false, ...i5 } = e2, [{ dialogState: p4, unmount: d3 }, s5] = O("Dialog.Panel"), f5 = y(t3, s5.panelRef), u5 = n2({ open: p4 === 0 }), y3 = o2((I3) => {
246
+ I3.stopPropagation();
247
+ }), S3 = { ref: f5, id: a3, onClick: y3 }, R = n6 ? Oe : Fragment, g = n6 ? { unmount: d3 } : {}, T2 = K();
248
+ return l4.createElement(R, { ...g }, T2({ ourProps: S3, theirProps: i5, slot: u5, defaultTag: je, name: "Dialog.Panel" }));
249
+ }
250
+ var Je = "div";
251
+ function Ke2(e2, t3) {
252
+ let { transition: o4 = false, ...a3 } = e2, [{ dialogState: n6, unmount: i5 }] = O("Dialog.Backdrop"), p4 = n2({ open: n6 === 0 }), d3 = { ref: t3, "aria-hidden": true }, s5 = o4 ? Oe : Fragment, f5 = o4 ? { unmount: i5 } : {}, u5 = K();
253
+ return l4.createElement(s5, { ...f5 }, u5({ ourProps: d3, theirProps: a3, slot: p4, defaultTag: Je, name: "Dialog.Backdrop" }));
254
+ }
255
+ var Xe = "h2";
256
+ function Ve(e2, t3) {
257
+ let o4 = r(), { id: a3 = `headlessui-dialog-title-${o4}`, ...n6 } = e2, [{ dialogState: i5, setTitleId: p4 }] = O("Dialog.Title"), d3 = y(t3);
258
+ useEffect(() => (p4(a3), () => p4(null)), [a3, p4]);
259
+ let s5 = n2({ open: i5 === 0 }), f5 = { ref: d3, id: a3 };
260
+ return K()({ ourProps: f5, theirProps: n6, slot: s5, defaultTag: Xe, name: "Dialog.Title" });
261
+ }
262
+ var qe = Y($e);
263
+ var ze = Y(Ye);
264
+ Y(Ke2);
265
+ var Qe = Y(Ve);
266
+ var ht = Object.assign(qe, { Panel: ze, Title: Qe, Description: M });
267
+ var Modal = ({
268
+ onClose: close,
269
+ children,
270
+ visible = false,
271
+ closeOnOutsideClick = false
272
+ }) => {
273
+ const intl = useIntl();
274
+ const handleClose = () => {
275
+ if (closeOnOutsideClick && close) {
276
+ close();
277
+ }
278
+ };
279
+ return /* @__PURE__ */ jsx(Ke, { show: visible, children: /* @__PURE__ */ jsxs(ht, { onClose: handleClose, className: "relative z-50", children: [
280
+ /* @__PURE__ */ jsx(
281
+ Oe,
282
+ {
283
+ enter: "ease-out duration-200",
284
+ enterFrom: "opacity-0",
285
+ enterTo: "opacity-100",
286
+ leave: "ease-in duration-150",
287
+ leaveFrom: "opacity-100",
288
+ leaveTo: "opacity-0",
289
+ children: /* @__PURE__ */ jsx(
290
+ "div",
291
+ {
292
+ className: "fixed inset-0 bg-slate-950/60 backdrop-blur-sm",
293
+ "aria-hidden": "true"
294
+ }
295
+ )
296
+ }
297
+ ),
298
+ /* @__PURE__ */ jsx("div", { className: "fixed inset-0 overflow-y-auto", children: /* @__PURE__ */ jsx("div", { className: "flex min-h-full items-center justify-center p-4", children: /* @__PURE__ */ jsx(
299
+ Oe,
300
+ {
301
+ enter: "ease-out duration-200",
302
+ enterFrom: "opacity-0 scale-95 translate-y-4",
303
+ enterTo: "opacity-100 scale-100 translate-y-0",
304
+ leave: "ease-in duration-150",
305
+ leaveFrom: "opacity-100 scale-100 translate-y-0",
306
+ leaveTo: "opacity-0 scale-95 translate-y-4",
307
+ children: /* @__PURE__ */ jsxs(ze, { className: "relative w-full max-w-lg transform overflow-hidden rounded-lg bg-surface px-4 pt-5 pb-4 text-left shadow-2xl sm:p-6", children: [
308
+ /* @__PURE__ */ jsx("div", { className: "absolute top-0 right-0 pt-4 pr-4 sm:block", children: /* @__PURE__ */ jsxs(
309
+ "button",
310
+ {
311
+ id: "modal_close",
312
+ type: "button",
313
+ onClick: close,
314
+ className: "rounded-md bg-surface-input text-text-muted hover:text-text-secondary focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2",
315
+ children: [
316
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: intl.formatMessage({
317
+ id: "close",
318
+ defaultMessage: "Close"
319
+ }) }),
320
+ /* @__PURE__ */ jsx(
321
+ "svg",
322
+ {
323
+ className: "h-6 w-6",
324
+ xmlns: "http://www.w3.org/2000/svg",
325
+ fill: "none",
326
+ viewBox: "0 0 24 24",
327
+ stroke: "currentColor",
328
+ "aria-hidden": "true",
329
+ children: /* @__PURE__ */ jsx(
330
+ "path",
331
+ {
332
+ strokeLinecap: "round",
333
+ strokeLinejoin: "round",
334
+ strokeWidth: "2",
335
+ d: "M6 18L18 6M6 6l12 12"
336
+ }
337
+ )
338
+ }
339
+ )
340
+ ]
341
+ }
342
+ ) }),
343
+ children && l4.isValidElement(children) ? l4.cloneElement(children, {
344
+ close
345
+ }) : children
346
+ ] })
347
+ }
348
+ ) }) })
349
+ ] }) });
350
+ };
351
+ var Modal_default = Modal;
352
+ var ModalWrapper = ({ children }) => {
353
+ const [modalChildren, setChildren] = useState(null);
354
+ const [closeOnOutsideClick, setCloseOnOutsideClick] = useState(false);
355
+ const hideModal = () => setChildren(null);
356
+ const [onClose, setOnClose] = useState(() => hideModal);
357
+ const ctx = useMemo(() => {
358
+ const setModal = (newModalChildren, { closeOnOutsideClick: newCloseOnOutsideClick = false } = {}) => {
359
+ return new Promise((resolve) => {
360
+ if (!newModalChildren) {
361
+ resolve(true);
362
+ }
363
+ setCloseOnOutsideClick(newCloseOnOutsideClick);
364
+ setChildren(() => newModalChildren);
365
+ setOnClose(() => () => {
366
+ hideModal();
367
+ resolve(true);
368
+ });
369
+ });
370
+ };
371
+ return { setModal };
372
+ }, []);
373
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
374
+ /* @__PURE__ */ jsx(
375
+ Modal_default,
376
+ {
377
+ visible: !!modalChildren,
378
+ onClose,
379
+ closeOnOutsideClick,
380
+ children: modalChildren
381
+ }
382
+ ),
383
+ /* @__PURE__ */ jsx(ModalContext_default.Provider, { value: ctx, children })
384
+ ] });
385
+ };
386
+ var ModalWrapper_default = ModalWrapper;
387
+
388
+ export { ModalWrapper_default, Modal_default };