@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
@@ -1,514 +0,0 @@
1
- import { Y, A, r, u3, i3, y, u2, o2, l3, oe, y2, x, n, S, k2, f2, p2, H, n2, K, s4, l4 as l4$1, le, B, M, n3, u, v, T2, I, p, f, s2, C, N, m, x2, t2, c, l, t3, E2, o4, m3, d, w2 as w2$1, c2, t, A2, s3, i, b, s, n5 } from './chunk-KCN7DDPH.js';
2
- import { ModalContext_default } from './chunk-RVG6IOFC.js';
3
- import l4, { createContext, useRef, useReducer, createRef, useCallback, useMemo, useState, Fragment, useEffect, useContext } from 'react';
4
- import { useIntl } from 'react-intl';
5
- import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
6
-
7
- var e = createContext(() => {
8
- });
9
- function C2({ value: t4, children: o4 }) {
10
- return l4.createElement(e.Provider, { value: t4 }, o4);
11
- }
12
-
13
- // ../node_modules/@headlessui/react/dist/hooks/use-escape.js
14
- function a(o4$1, r4 = typeof document != "undefined" ? document.defaultView : null, t4) {
15
- let n6 = I(o4$1, "escape");
16
- E2(r4, "keydown", (e2) => {
17
- n6 && (e2.defaultPrevented || e2.key === o4.Escape && t4(e2));
18
- });
19
- }
20
- function f3() {
21
- var t4;
22
- let [e2] = useState(() => typeof window != "undefined" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [o4, c4] = useState((t4 = e2 == null ? void 0 : e2.matches) != null ? t4 : false);
23
- return n(() => {
24
- if (!e2) return;
25
- function n6(r4) {
26
- c4(r4.matches);
27
- }
28
- return e2.addEventListener("change", n6), () => e2.removeEventListener("change", n6);
29
- }, [e2]), o4;
30
- }
31
- function S2({ defaultContainers: l5 = [], portals: n6, mainTreeNode: o4 } = {}) {
32
- let c4 = o2(() => {
33
- var r4, u5;
34
- let i5 = l(o4), t4 = [];
35
- for (let e2 of l5) e2 !== null && (t3(e2) ? t4.push(e2) : "current" in e2 && t3(e2.current) && t4.push(e2.current));
36
- if (n6 != null && n6.current) for (let e2 of n6.current) t4.push(e2);
37
- for (let e2 of (r4 = i5 == null ? void 0 : i5.querySelectorAll("html > *, body > *")) != null ? r4 : []) 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)) || t4.some((E2) => e2.contains(E2)) || t4.push(e2));
38
- return t4;
39
- });
40
- return { resolveContainers: c4, contains: o2((i5) => c4().some((t4) => t4.contains(i5))) };
41
- }
42
- var d2 = createContext(null);
43
- function j({ children: l5, node: n6 }) {
44
- let [o4, c4] = useState(null), i5 = x3(n6 != null ? n6 : o4);
45
- return l4.createElement(d2.Provider, { value: i5 }, l5, i5 === null && l4.createElement(f, { features: s2.Hidden, ref: (t4) => {
46
- var r4, u5;
47
- if (t4) {
48
- for (let e2 of (u5 = (r4 = l(t4)) == null ? void 0 : r4.querySelectorAll("html > *, body > *")) != null ? u5 : []) if (e2 !== document.body && e2 !== document.head && t3(e2) && e2 != null && e2.contains(t4)) {
49
- c4(e2);
50
- break;
51
- }
52
- }
53
- } }));
54
- }
55
- function x3(l5 = null) {
56
- var n6;
57
- return (n6 = useContext(d2)) != null ? n6 : l5;
58
- }
59
- function f4() {
60
- let e2 = useRef(false);
61
- return n(() => (e2.current = true, () => {
62
- e2.current = false;
63
- }), []), e2;
64
- }
65
- var a2 = ((r4) => (r4[r4.Forwards = 0] = "Forwards", r4[r4.Backwards = 1] = "Backwards", r4))(a2 || {});
66
- function u4() {
67
- let e2 = useRef(0);
68
- return s3(true, "keydown", (r4) => {
69
- r4.key === "Tab" && (e2.current = r4.shiftKey ? 1 : 0);
70
- }, true), e2;
71
- }
72
-
73
- // ../node_modules/@headlessui/react/dist/components/focus-trap/focus-trap.js
74
- function x4(o4) {
75
- if (!o4) return /* @__PURE__ */ new Set();
76
- if (typeof o4 == "function") return new Set(o4());
77
- let t4 = /* @__PURE__ */ new Set();
78
- for (let e2 of o4.current) t3(e2.current) && t4.add(e2.current);
79
- return t4;
80
- }
81
- var $ = "div";
82
- 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 || {});
83
- function w2(o4, t4) {
84
- let e2 = useRef(null), r4 = y(e2, t4), { initialFocus: u5, initialFocusFallback: a3, containers: n6, features: s6 = 15, ...f5 } = o4;
85
- l3() || (s6 = 0);
86
- let l5 = u2(e2.current);
87
- re(s6, { ownerDocument: l5 });
88
- let T2$1 = ne(s6, { ownerDocument: l5, container: e2, initialFocus: u5, initialFocusFallback: a3 });
89
- oe2(s6, { ownerDocument: l5, container: e2, containers: n6, previousActiveElement: T2$1 });
90
- let g = u4(), A3 = o2((c4) => {
91
- if (!n3(e2.current)) return;
92
- let E2 = e2.current;
93
- ((V2) => V2())(() => {
94
- u(g.current, { [a2.Forwards]: () => {
95
- v(E2, T2.First, { skipElements: [c4.relatedTarget, a3] });
96
- }, [a2.Backwards]: () => {
97
- v(E2, T2.Last, { skipElements: [c4.relatedTarget, a3] });
98
- } });
99
- });
100
- }), v2 = I(!!(s6 & 2), "focus-trap#tab-lock"), N2 = p(), b4 = useRef(false), k3 = { ref: r4, onKeyDown(c4) {
101
- c4.key == "Tab" && (b4.current = true, N2.requestAnimationFrame(() => {
102
- b4.current = false;
103
- }));
104
- }, onBlur(c4) {
105
- if (!(s6 & 4)) return;
106
- let E2 = x4(n6);
107
- n3(e2.current) && E2.add(e2.current);
108
- let L = c4.relatedTarget;
109
- i(L) && L.dataset.headlessuiFocusGuard !== "true" && (I2(E2, L) || (b4.current ? v(e2.current, u(g.current, { [a2.Forwards]: () => T2.Next, [a2.Backwards]: () => T2.Previous }) | T2.WrapAround, { relativeTo: c4.target }) : i(c4.target) && w2$1(c4.target)));
110
- } }, B2 = K();
111
- 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: k3, theirProps: f5, defaultTag: $, name: "FocusTrap" }), v2 && l4.createElement(f, { as: "button", type: "button", "data-headlessui-focus-guard": true, onFocus: A3, features: s2.Focusable }));
112
- }
113
- var ee = Y(w2);
114
- var ge = Object.assign(ee, { features: G });
115
- function te(o4 = true) {
116
- let t4 = useRef(n5.slice());
117
- return m3(([e2], [r4]) => {
118
- r4 === true && e2 === false && t(() => {
119
- t4.current.splice(0);
120
- }), r4 === false && e2 === true && (t4.current = n5.slice());
121
- }, [o4, n5, t4]), o2(() => {
122
- var e2;
123
- return (e2 = t4.current.find((r4) => r4 != null && r4.isConnected)) != null ? e2 : null;
124
- });
125
- }
126
- function re(o4, { ownerDocument: t4 }) {
127
- let e2 = !!(o4 & 8), r4 = te(e2);
128
- m3(() => {
129
- e2 || d(t4 == null ? void 0 : t4.body) && w2$1(r4());
130
- }, [e2]), c2(() => {
131
- e2 && w2$1(r4());
132
- });
133
- }
134
- function ne(o4, { ownerDocument: t4, container: e2, initialFocus: r4, initialFocusFallback: u5 }) {
135
- let a3 = useRef(null), n6 = I(!!(o4 & 1), "focus-trap#initial-focus"), s6 = f4();
136
- return m3(() => {
137
- if (o4 === 0) return;
138
- if (!n6) {
139
- u5 != null && u5.current && w2$1(u5.current);
140
- return;
141
- }
142
- let f5 = e2.current;
143
- f5 && t(() => {
144
- if (!s6.current) return;
145
- let l5 = t4 == null ? void 0 : t4.activeElement;
146
- if (r4 != null && r4.current) {
147
- if ((r4 == null ? void 0 : r4.current) === l5) {
148
- a3.current = l5;
149
- return;
150
- }
151
- } else if (f5.contains(l5)) {
152
- a3.current = l5;
153
- return;
154
- }
155
- if (r4 != null && r4.current) w2$1(r4.current);
156
- else {
157
- if (o4 & 16) {
158
- if (v(f5, T2.First | T2.AutoFocus) !== A2.Error) return;
159
- } else if (v(f5, T2.First) !== A2.Error) return;
160
- if (u5 != null && u5.current && (w2$1(u5.current), (t4 == null ? void 0 : t4.activeElement) === u5.current)) return;
161
- console.warn("There are no focusable elements inside the <FocusTrap />");
162
- }
163
- a3.current = t4 == null ? void 0 : t4.activeElement;
164
- });
165
- }, [u5, n6, o4]), a3;
166
- }
167
- function oe2(o4, { ownerDocument: t4, container: e2, containers: r4, previousActiveElement: u5 }) {
168
- let a3 = f4(), n6 = !!(o4 & 4);
169
- E2(t4 == null ? void 0 : t4.defaultView, "focus", (s6) => {
170
- if (!n6 || !a3.current) return;
171
- let f5 = x4(r4);
172
- n3(e2.current) && f5.add(e2.current);
173
- let l5 = u5.current;
174
- if (!l5) return;
175
- let T2 = s6.target;
176
- n3(T2) ? I2(f5, T2) ? (u5.current = T2, w2$1(T2)) : (s6.preventDefault(), s6.stopPropagation(), w2$1(l5)) : w2$1(u5.current);
177
- }, true);
178
- }
179
- function I2(o4, t4) {
180
- for (let e2 of o4) if (e2.contains(t4)) return true;
181
- return false;
182
- }
183
- function ue(e2) {
184
- var t4;
185
- return !!(e2.enter || e2.enterFrom || e2.enterTo || e2.leave || e2.leaveFrom || e2.leaveTo) || !b((t4 = e2.as) != null ? t4 : de) || l4.Children.count(e2.children) === 1;
186
- }
187
- var V = createContext(null);
188
- V.displayName = "TransitionContext";
189
- var De = ((n6) => (n6.Visible = "visible", n6.Hidden = "hidden", n6))(De || {});
190
- function He() {
191
- let e2 = useContext(V);
192
- if (e2 === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
193
- return e2;
194
- }
195
- function Ae() {
196
- let e2 = useContext(w3);
197
- if (e2 === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
198
- return e2;
199
- }
200
- var w3 = createContext(null);
201
- w3.displayName = "NestingContext";
202
- function M3(e2) {
203
- return "children" in e2 ? M3(e2.children) : e2.current.filter(({ el: t4 }) => t4.current !== null).filter(({ state: t4 }) => t4 === "visible").length > 0;
204
- }
205
- function Te(e2, t4) {
206
- let n6 = s(e2), l5 = useRef([]), S3 = f4(), R = p(), d3 = o2((o4, i5 = C.Hidden) => {
207
- let a3 = l5.current.findIndex(({ el: s6 }) => s6 === o4);
208
- a3 !== -1 && (u(i5, { [C.Unmount]() {
209
- l5.current.splice(a3, 1);
210
- }, [C.Hidden]() {
211
- l5.current[a3].state = "hidden";
212
- } }), R.microTask(() => {
213
- var s6;
214
- !M3(l5) && S3.current && ((s6 = n6.current) == null || s6.call(n6));
215
- }));
216
- }), y3 = o2((o4) => {
217
- let i5 = l5.current.find(({ el: a3 }) => a3 === o4);
218
- return i5 ? i5.state !== "visible" && (i5.state = "visible") : l5.current.push({ el: o4, state: "visible" }), () => d3(o4, C.Unmount);
219
- }), C3 = useRef([]), p4 = useRef(Promise.resolve()), h2 = useRef({ enter: [], leave: [] }), g = o2((o4, i5, a3) => {
220
- C3.current.splice(0), t4 && (t4.chains.current[i5] = t4.chains.current[i5].filter(([s6]) => s6 !== o4)), t4 == null || t4.chains.current[i5].push([o4, new Promise((s6) => {
221
- C3.current.push(s6);
222
- })]), t4 == null || t4.chains.current[i5].push([o4, new Promise((s6) => {
223
- Promise.all(h2.current[i5].map(([r4, f5]) => f5)).then(() => s6());
224
- })]), i5 === "enter" ? p4.current = p4.current.then(() => t4 == null ? void 0 : t4.wait.current).then(() => a3(i5)) : a3(i5);
225
- }), v2 = o2((o4, i5, a3) => {
226
- Promise.all(h2.current[i5].splice(0).map(([s6, r4]) => r4)).then(() => {
227
- var s6;
228
- (s6 = C3.current.shift()) == null || s6();
229
- }).then(() => a3(i5));
230
- });
231
- return useMemo(() => ({ children: l5, register: y3, unregister: d3, onStart: g, onStop: v2, wait: p4, chains: h2 }), [y3, d3, l5, g, v2, h2, p4]);
232
- }
233
- var de = Fragment;
234
- var fe = A.RenderStrategy;
235
- function Fe(e2, t4) {
236
- var ee2, te2;
237
- let { transition: n6 = true, beforeEnter: l5, afterEnter: S3, beforeLeave: R, afterLeave: d3, enter: y3, enterFrom: C3, enterTo: p4, entered: h2, leave: g, leaveFrom: v2, leaveTo: o4, ...i5 } = e2, [a3, s6] = useState(null), r4 = useRef(null), f5 = ue(e2), U = y(...f5 ? [r4, t4, s6] : t4 === null ? [] : [t4]), H2 = (ee2 = i5.unmount) == null || ee2 ? C.Unmount : C.Hidden, { show: u5, appear: z2, initial: K2 } = He(), [m3, j3] = useState(u5 ? "visible" : "hidden"), Q = Ae(), { register: A3, unregister: F2 } = Q;
238
- n(() => A3(r4), [A3, r4]), n(() => {
239
- if (H2 === C.Hidden && r4.current) {
240
- if (u5 && m3 !== "visible") {
241
- j3("visible");
242
- return;
243
- }
244
- return u(m3, { ["hidden"]: () => F2(r4), ["visible"]: () => A3(r4) });
245
- }
246
- }, [m3, r4, A3, F2, u5, H2]);
247
- let G2 = l3();
248
- n(() => {
249
- if (f5 && G2 && m3 === "visible" && r4.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
250
- }, [r4, m3, G2, f5]);
251
- let ce = K2 && !z2, Y2 = z2 && u5 && K2, B2 = useRef(false), I3 = Te(() => {
252
- B2.current || (j3("hidden"), F2(r4));
253
- }, Q), Z = o2((W) => {
254
- B2.current = true;
255
- let L = W ? "enter" : "leave";
256
- I3.onStart(r4, L, (_) => {
257
- _ === "enter" ? l5 == null || l5() : _ === "leave" && (R == null || R());
258
- });
259
- }), $3 = o2((W) => {
260
- let L = W ? "enter" : "leave";
261
- B2.current = false, I3.onStop(r4, L, (_) => {
262
- _ === "enter" ? S3 == null || S3() : _ === "leave" && (d3 == null || d3());
263
- }), L === "leave" && !M3(I3) && (j3("hidden"), F2(r4));
264
- });
265
- useEffect(() => {
266
- f5 && n6 || (Z(u5), $3(u5));
267
- }, [u5, f5, n6]);
268
- let pe2 = /* @__PURE__ */ (() => !(!n6 || !f5 || !G2 || ce))(), [, T2] = N(pe2, a3, u5, { start: Z, end: $3 }), Ce = m({ ref: U, className: ((te2 = t2(i5.className, Y2 && y3, Y2 && C3, T2.enter && y3, T2.enter && T2.closed && C3, T2.enter && !T2.closed && p4, T2.leave && g, T2.leave && !T2.closed && v2, T2.leave && T2.closed && o4, !T2.transition && u5 && h2)) == null ? void 0 : te2.trim()) || void 0, ...x2(T2) }), N2 = 0;
269
- m3 === "visible" && (N2 |= i3.Open), m3 === "hidden" && (N2 |= i3.Closed), u5 && m3 === "hidden" && (N2 |= i3.Opening), !u5 && m3 === "visible" && (N2 |= i3.Closing);
270
- let he = K();
271
- return l4.createElement(w3.Provider, { value: I3 }, l4.createElement(c, { value: N2 }, he({ ourProps: Ce, theirProps: i5, defaultTag: de, features: fe, visible: m3 === "visible", name: "Transition.Child" })));
272
- }
273
- function Ie(e2, t4) {
274
- let { show: n6, appear: l5 = false, unmount: S3 = true, ...R } = e2, d3 = useRef(null), y3 = ue(e2), C3 = y(...y3 ? [d3, t4] : t4 === null ? [] : [t4]);
275
- l3();
276
- let p4 = u3();
277
- if (n6 === void 0 && p4 !== null && (n6 = (p4 & i3.Open) === i3.Open), n6 === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
278
- let [h2, g] = useState(n6 ? "visible" : "hidden"), v2 = Te(() => {
279
- n6 || g("hidden");
280
- }), [o4, i5] = useState(true), a3 = useRef([n6]);
281
- n(() => {
282
- o4 !== false && a3.current[a3.current.length - 1] !== n6 && (a3.current.push(n6), i5(false));
283
- }, [a3, n6]);
284
- let s6 = useMemo(() => ({ show: n6, appear: l5, initial: o4 }), [n6, l5, o4]);
285
- n(() => {
286
- n6 ? g("visible") : !M3(v2) && d3.current !== null && g("hidden");
287
- }, [n6, v2]);
288
- let r4 = { unmount: S3 }, f5 = o2(() => {
289
- var u5;
290
- o4 && i5(false), (u5 = e2.beforeEnter) == null || u5.call(e2);
291
- }), U = o2(() => {
292
- var u5;
293
- o4 && i5(false), (u5 = e2.beforeLeave) == null || u5.call(e2);
294
- }), H2 = K();
295
- return l4.createElement(w3.Provider, { value: v2 }, l4.createElement(V.Provider, { value: s6 }, H2({ ourProps: { ...r4, as: Fragment, children: l4.createElement(me, { ref: C3, ...r4, ...R, beforeEnter: f5, beforeLeave: U }) }, theirProps: {}, defaultTag: Fragment, features: fe, visible: h2 === "visible", name: "Transition" })));
296
- }
297
- function Le(e2, t4) {
298
- let n6 = useContext(V) !== null, l5 = u3() !== null;
299
- return l4.createElement(l4.Fragment, null, !n6 && l5 ? l4.createElement(X, { ref: t4, ...e2 }) : l4.createElement(me, { ref: t4, ...e2 }));
300
- }
301
- var X = Y(Ie);
302
- var me = Y(Fe);
303
- var Oe = Y(Le);
304
- var Ke = Object.assign(X, { Child: Oe, Root: X });
305
-
306
- // ../node_modules/@headlessui/react/dist/components/dialog/dialog.js
307
- var we = ((o4) => (o4[o4.Open = 0] = "Open", o4[o4.Closed = 1] = "Closed", o4))(we || {});
308
- var Be = ((t4) => (t4[t4.SetTitleId = 0] = "SetTitleId", t4))(Be || {});
309
- var Ue = { [0](e2, t4) {
310
- return e2.titleId === t4.id ? e2 : { ...e2, titleId: t4.id };
311
- } };
312
- var w4 = createContext(null);
313
- w4.displayName = "DialogContext";
314
- function O2(e2) {
315
- let t4 = useContext(w4);
316
- if (t4 === null) {
317
- let o4 = new Error(`<${e2} /> is missing a parent <Dialog /> component.`);
318
- throw Error.captureStackTrace && Error.captureStackTrace(o4, O2), o4;
319
- }
320
- return t4;
321
- }
322
- function He2(e2, t4) {
323
- return u(t4.type, Ue, e2, t4);
324
- }
325
- var z = Y(function(t4, o4) {
326
- let a3 = r(), { id: n6 = `headlessui-dialog-${a3}`, open: i5, onClose: p4, initialFocus: d3, role: s6 = "dialog", autoFocus: f5 = true, __demoMode: u5 = false, unmount: y3 = false, ...S3 } = t4, R = useRef(false);
327
- s6 = (function() {
328
- return s6 === "dialog" || s6 === "alertdialog" ? s6 : (R.current || (R.current = true, console.warn(`Invalid role [${s6}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
329
- })();
330
- let g = u3();
331
- i5 === void 0 && g !== null && (i5 = (g & i3.Open) === i3.Open);
332
- let T2 = useRef(null), I3 = y(T2, o4), F2 = u2(T2.current), c4 = i5 ? 0 : 1, [b4, Q] = useReducer(He2, { titleId: null, descriptionId: null, panelRef: createRef() }), m3 = o2(() => p4(false)), B2 = o2((r4) => Q({ type: 0, id: r4 })), D = l3() ? c4 === 0 : false, [Z, ee2] = oe(), te2 = { get current() {
333
- var r4;
334
- return (r4 = b4.panelRef.current) != null ? r4 : T2.current;
335
- } }, v2 = x3(), { resolveContainers: M4 } = S2({ mainTreeNode: v2, portals: Z, defaultContainers: [te2] }), U = g !== null ? (g & i3.Closing) === i3.Closing : false;
336
- y2(u5 || U ? false : D, { allowed: o2(() => {
337
- var r4, W;
338
- return [(W = (r4 = T2.current) == null ? void 0 : r4.closest("[data-headlessui-portal]")) != null ? W : null];
339
- }), disallowed: o2(() => {
340
- var r4;
341
- return [(r4 = v2 == null ? void 0 : v2.closest("body > *:not(#headlessui-portal-root)")) != null ? r4 : null];
342
- }) });
343
- let P = x.get(null);
344
- n(() => {
345
- if (D) return P.actions.push(n6), () => P.actions.pop(n6);
346
- }, [P, n6, D]);
347
- let H2 = S(P, useCallback((r4) => P.selectors.isTop(r4, n6), [P, n6]));
348
- k2(H2, M4, (r4) => {
349
- r4.preventDefault(), m3();
350
- }), a(H2, F2 == null ? void 0 : F2.defaultView, (r4) => {
351
- r4.preventDefault(), r4.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), m3();
352
- }), f2(u5 || U ? false : D, F2, M4), p2(D, T2, m3);
353
- let [oe3, ne3] = H(), re2 = useMemo(() => [{ dialogState: c4, close: m3, setTitleId: B2, unmount: y3 }, b4], [c4, m3, B2, y3, b4]), N2 = n2({ open: c4 === 0 }), le2 = { ref: I3, id: n6, role: s6, tabIndex: -1, "aria-modal": u5 ? void 0 : c4 === 0 ? true : void 0, "aria-labelledby": b4.titleId, "aria-describedby": oe3, unmount: y3 }, ae = !f3(), E2 = G.None;
354
- D && !u5 && (E2 |= G.RestoreFocus, E2 |= G.TabLock, f5 && (E2 |= G.AutoFocus), ae && (E2 |= G.InitialFocus));
355
- let ie2 = K();
356
- return l4.createElement(s4, null, l4.createElement(l4$1, { force: true }, l4.createElement(le, null, l4.createElement(w4.Provider, { value: re2 }, l4.createElement(B, { target: T2 }, l4.createElement(l4$1, { force: false }, l4.createElement(ne3, { slot: N2 }, l4.createElement(ee2, null, l4.createElement(ge, { initialFocus: d3, initialFocusFallback: T2, containers: M4, features: E2 }, l4.createElement(C2, { value: m3 }, ie2({ ourProps: le2, theirProps: S3, slot: N2, defaultTag: Ne, features: We, visible: c4 === 0, name: "Dialog" })))))))))));
357
- });
358
- var Ne = "div";
359
- var We = A.RenderStrategy | A.Static;
360
- function $e(e2, t4) {
361
- let { transition: o4 = false, open: a3, ...n6 } = e2, i5 = u3(), p4 = e2.hasOwnProperty("open") || i5 !== null, d3 = e2.hasOwnProperty("onClose");
362
- if (!p4 && !d3) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
363
- if (!p4) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
364
- if (!d3) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
365
- 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}`);
366
- 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}`);
367
- 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: t4, ...n6 }))) : l4.createElement(j, null, l4.createElement(z, { ref: t4, open: a3, ...n6 }));
368
- }
369
- var je = "div";
370
- function Ye(e2, t4) {
371
- let o4 = r(), { id: a3 = `headlessui-dialog-panel-${o4}`, transition: n6 = false, ...i5 } = e2, [{ dialogState: p4, unmount: d3 }, s6] = O2("Dialog.Panel"), f5 = y(t4, s6.panelRef), u5 = n2({ open: p4 === 0 }), y3 = o2((I3) => {
372
- I3.stopPropagation();
373
- }), S3 = { ref: f5, id: a3, onClick: y3 }, R = n6 ? Oe : Fragment, g = n6 ? { unmount: d3 } : {}, T2 = K();
374
- return l4.createElement(R, { ...g }, T2({ ourProps: S3, theirProps: i5, slot: u5, defaultTag: je, name: "Dialog.Panel" }));
375
- }
376
- var Je = "div";
377
- function Ke2(e2, t4) {
378
- let { transition: o4 = false, ...a3 } = e2, [{ dialogState: n6, unmount: i5 }] = O2("Dialog.Backdrop"), p4 = n2({ open: n6 === 0 }), d3 = { ref: t4, "aria-hidden": true }, s6 = o4 ? Oe : Fragment, f5 = o4 ? { unmount: i5 } : {}, u5 = K();
379
- return l4.createElement(s6, { ...f5 }, u5({ ourProps: d3, theirProps: a3, slot: p4, defaultTag: Je, name: "Dialog.Backdrop" }));
380
- }
381
- var Xe = "h2";
382
- function Ve(e2, t4) {
383
- let o4 = r(), { id: a3 = `headlessui-dialog-title-${o4}`, ...n6 } = e2, [{ dialogState: i5, setTitleId: p4 }] = O2("Dialog.Title"), d3 = y(t4);
384
- useEffect(() => (p4(a3), () => p4(null)), [a3, p4]);
385
- let s6 = n2({ open: i5 === 0 }), f5 = { ref: d3, id: a3 };
386
- return K()({ ourProps: f5, theirProps: n6, slot: s6, defaultTag: Xe, name: "Dialog.Title" });
387
- }
388
- var qe = Y($e);
389
- var ze = Y(Ye);
390
- Y(Ke2);
391
- var Qe = Y(Ve);
392
- var ht = Object.assign(qe, { Panel: ze, Title: Qe, Description: M });
393
- var Modal = ({
394
- onClose: close,
395
- children,
396
- visible = false,
397
- closeOnOutsideClick = false
398
- }) => {
399
- const intl = useIntl();
400
- const handleClose = () => {
401
- if (closeOnOutsideClick && close) {
402
- close();
403
- }
404
- };
405
- return /* @__PURE__ */ jsx(Ke, { show: visible, children: /* @__PURE__ */ jsxs(ht, { onClose: handleClose, className: "relative z-50", children: [
406
- /* @__PURE__ */ jsx(
407
- Oe,
408
- {
409
- enter: "ease-out duration-200",
410
- enterFrom: "opacity-0",
411
- enterTo: "opacity-100",
412
- leave: "ease-in duration-150",
413
- leaveFrom: "opacity-100",
414
- leaveTo: "opacity-0",
415
- children: /* @__PURE__ */ jsx(
416
- "div",
417
- {
418
- className: "fixed inset-0 bg-slate-950/60 backdrop-blur-sm",
419
- "aria-hidden": "true"
420
- }
421
- )
422
- }
423
- ),
424
- /* @__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(
425
- Oe,
426
- {
427
- enter: "ease-out duration-200",
428
- enterFrom: "opacity-0 scale-95 translate-y-4",
429
- enterTo: "opacity-100 scale-100 translate-y-0",
430
- leave: "ease-in duration-150",
431
- leaveFrom: "opacity-100 scale-100 translate-y-0",
432
- leaveTo: "opacity-0 scale-95 translate-y-4",
433
- 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: [
434
- /* @__PURE__ */ jsx("div", { className: "absolute top-0 right-0 pt-4 pr-4 sm:block", children: /* @__PURE__ */ jsxs(
435
- "button",
436
- {
437
- id: "modal_close",
438
- type: "button",
439
- onClick: close,
440
- 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",
441
- children: [
442
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: intl.formatMessage({
443
- id: "close",
444
- defaultMessage: "Close"
445
- }) }),
446
- /* @__PURE__ */ jsx(
447
- "svg",
448
- {
449
- className: "h-6 w-6",
450
- xmlns: "http://www.w3.org/2000/svg",
451
- fill: "none",
452
- viewBox: "0 0 24 24",
453
- stroke: "currentColor",
454
- "aria-hidden": "true",
455
- children: /* @__PURE__ */ jsx(
456
- "path",
457
- {
458
- strokeLinecap: "round",
459
- strokeLinejoin: "round",
460
- strokeWidth: "2",
461
- d: "M6 18L18 6M6 6l12 12"
462
- }
463
- )
464
- }
465
- )
466
- ]
467
- }
468
- ) }),
469
- children && l4.isValidElement(children) ? l4.cloneElement(children, {
470
- close
471
- }) : children
472
- ] })
473
- }
474
- ) }) })
475
- ] }) });
476
- };
477
- var Modal_default = Modal;
478
- var ModalWrapper = ({ children }) => {
479
- const [modalChildren, setChildren] = useState(null);
480
- const [closeOnOutsideClick, setCloseOnOutsideClick] = useState(false);
481
- const hideModal = () => setChildren(null);
482
- const [onClose, setOnClose] = useState(() => hideModal);
483
- const ctx = useMemo(() => {
484
- const setModal = (newModalChildren, { closeOnOutsideClick: newCloseOnOutsideClick = false } = {}) => {
485
- return new Promise((resolve) => {
486
- if (!newModalChildren) {
487
- resolve(true);
488
- }
489
- setCloseOnOutsideClick(newCloseOnOutsideClick);
490
- setChildren(() => newModalChildren);
491
- setOnClose(() => () => {
492
- hideModal();
493
- resolve(true);
494
- });
495
- });
496
- };
497
- return { setModal };
498
- }, []);
499
- return /* @__PURE__ */ jsxs(Fragment$1, { children: [
500
- /* @__PURE__ */ jsx(
501
- Modal_default,
502
- {
503
- visible: !!modalChildren,
504
- onClose,
505
- closeOnOutsideClick,
506
- children: modalChildren
507
- }
508
- ),
509
- /* @__PURE__ */ jsx(ModalContext_default.Provider, { value: ctx, children })
510
- ] });
511
- };
512
- var ModalWrapper_default = ModalWrapper;
513
-
514
- export { ModalWrapper_default, Modal_default };