@unchainedshop/admin-ui 5.0.0-alpha.11 → 5.0.0-alpha.12

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 (752) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-WPLOTFGW.js → chunk-2HTCKO4E.js} +12 -3
  3. package/dist/{chunk-BMDNY67T.js → chunk-33ZO52Z7.js} +3241 -1753
  4. package/dist/{chunk-PJLYVMUM.js → chunk-4MXPTVDL.js} +2 -2
  5. package/dist/{chunk-I64TXIE7.js → chunk-ATZJXTRA.js} +1 -1
  6. package/dist/{chunk-QHR23GVH.js → chunk-CUYIP5XG.js} +1 -1
  7. package/dist/{chunk-5WPFHQZN.js → chunk-E6HDJYA6.js} +3 -3
  8. package/dist/{chunk-FDHXLNZQ.js → chunk-EAVP6XZQ.js} +1 -1
  9. package/dist/{chunk-E77YIMGR.js → chunk-ED2FP42R.js} +1 -1
  10. package/dist/{chunk-HJKRGBDG.js → chunk-GWMLIF3C.js} +1 -1
  11. package/dist/{chunk-3L6EZQ6P.js → chunk-NFJE5EJG.js} +1 -1
  12. package/dist/{chunk-ICJH36K4.js → chunk-YUXHILXY.js} +1 -1
  13. package/dist/components/ui/Loading.d.ts +8 -1
  14. package/dist/components/ui/Loading.d.ts.map +1 -1
  15. package/dist/components/ui/index.d.ts +1 -0
  16. package/dist/components/ui/index.d.ts.map +1 -1
  17. package/dist/form.js +797 -286
  18. package/dist/gql/schema-types.d.ts +3 -2
  19. package/dist/gql/schema-types.d.ts.map +1 -1
  20. package/dist/hooks.js +3 -3
  21. package/dist/modal.js +5 -5
  22. package/dist/modules/accounts.js +1 -1
  23. package/dist/modules/assortment.js +1 -1
  24. package/dist/modules/country.js +1 -1
  25. package/dist/modules/currency.js +1 -1
  26. package/dist/modules/delivery-provider.js +1 -1
  27. package/dist/modules/enrollment.js +1 -1
  28. package/dist/modules/event.js +1 -1
  29. package/dist/modules/filter.js +1 -1
  30. package/dist/modules/language.js +1 -1
  31. package/dist/modules/order.js +1 -1
  32. package/dist/modules/payment-providers.js +1 -1
  33. package/dist/modules/product-review.js +1 -1
  34. package/dist/modules/product.js +5 -5
  35. package/dist/modules/quotation.js +1 -1
  36. package/dist/modules/token.js +1 -1
  37. package/dist/modules/warehousing-providers.js +1 -1
  38. package/dist/modules/work.js +1 -1
  39. package/dist/plugins.js +1 -1
  40. package/dist/providers.js +5 -5
  41. package/dist/shims/admin-ui-plugins.js +1 -1
  42. package/dist/shims/apollo-client-react.js +1 -1
  43. package/dist/shims/apollo-client.js +1 -1
  44. package/dist/shims/next-head.js +1 -1
  45. package/dist/shims/next-image.js +1 -1
  46. package/dist/shims/next-link.js +1 -1
  47. package/dist/shims/next-router.js +1 -1
  48. package/dist/shims/react-dom-client.js +1 -1
  49. package/dist/shims/react-dom.js +1 -1
  50. package/dist/shims/react-hook-form.js +1 -1
  51. package/dist/shims/react-intl.js +1 -1
  52. package/dist/shims/react-jsx-runtime.js +1 -1
  53. package/dist/shims/react-toastify.js +1 -1
  54. package/dist/shims/react.js +1 -1
  55. package/dist/theme.js +1 -1
  56. package/dist/ui.js +3933 -3416
  57. package/out/403/index.html +3 -3
  58. package/out/404/index.html +3 -3
  59. package/out/404.html +3 -3
  60. package/out/423/index.html +3 -3
  61. package/out/500/index.html +3 -3
  62. package/out/_next/static/bg3Z_ZBjStiTvJAHlsPDE/_buildManifest.js +262 -0
  63. package/out/_next/static/chunks/0-kvzk5p0hp-4.js +11 -0
  64. package/out/_next/static/chunks/0-nzk-g6k41e-.js +119 -0
  65. package/out/_next/static/chunks/00wlebfe9j80r.js +24 -0
  66. package/out/_next/static/chunks/01isyk4v59s_4.js +5 -0
  67. package/out/_next/static/chunks/01otzjqxk372n.js +1 -0
  68. package/out/_next/static/chunks/03x_mgpai_kbn.js +1 -0
  69. package/out/_next/static/chunks/04327_1fq5i7-.js +9 -0
  70. package/out/_next/static/chunks/04_r4qnsjmy81.js +4 -0
  71. package/out/_next/static/chunks/04egfa7kckou_.js +165 -0
  72. package/out/_next/static/chunks/05474mknnr_tw.js +4 -0
  73. package/out/_next/static/chunks/{2ajr0rk0_yax6.js → 06kqbwwnuu3te.js} +1 -1
  74. package/out/_next/static/chunks/0728622u98g6r.js +1 -0
  75. package/out/_next/static/chunks/09irjy-7k1922.js +1 -0
  76. package/out/_next/static/chunks/0_3suta3t3lus.js +5 -0
  77. package/out/_next/static/chunks/0_a5fzdztv84p.js +272 -0
  78. package/out/_next/static/chunks/0_ppdn6x6ci0v.js +31 -0
  79. package/out/_next/static/chunks/0br42_xli8-2x.js +6 -0
  80. package/out/_next/static/chunks/0cdk-eqghrgee.js +5 -0
  81. package/out/_next/static/chunks/0d54jo566j9ka.js +12 -0
  82. package/out/_next/static/chunks/0gfia1t8drmnx.js +182 -0
  83. package/out/_next/static/chunks/0gwd6ju8j_bwr.js +39 -0
  84. package/out/_next/static/chunks/{0_pn7w49dpkak.js → 0hv3x0mo1tt7i.js} +2 -2
  85. package/out/_next/static/chunks/0i481ym5-ss1t.js +5 -0
  86. package/out/_next/static/chunks/0iohwbogpxe5r.js +1 -0
  87. package/out/_next/static/chunks/0j46qnxaxeqk_.js +1 -0
  88. package/out/_next/static/chunks/{1jmdpa0tc5puj.js → 0mcu2o1ir2t_w.js} +3 -3
  89. package/out/_next/static/chunks/0o4aj3bm49d_h.js +61 -0
  90. package/out/_next/static/chunks/0op3htrvd-ix6.js +5 -0
  91. package/out/_next/static/chunks/0p55j-ysba0wq.js +63 -0
  92. package/out/_next/static/chunks/0qv2nce7okzy5.js +103 -0
  93. package/out/_next/static/chunks/0rrhyxuk32t3n.js +95 -0
  94. package/out/_next/static/chunks/0rt4le6syjqdj.js +21 -0
  95. package/out/_next/static/chunks/0s2jvi6_qj0lc.js +16 -0
  96. package/out/_next/static/chunks/0uef4ugmc_g10.js +1 -0
  97. package/out/_next/static/chunks/0v1tb34y7e1y4.js +5 -0
  98. package/out/_next/static/chunks/0w9d4swf95hvu.js +33 -0
  99. package/out/_next/static/chunks/0we1tw4xvdb7o.js +7 -0
  100. package/out/_next/static/chunks/0zlzflyq18hhy.js +4 -0
  101. package/out/_next/static/chunks/0zqdvl0b4w5nc.js +7 -0
  102. package/out/_next/static/chunks/1-wbp_4f-c4-3.js +837 -0
  103. package/out/_next/static/chunks/11vnr4kb9qkjr.js +1 -0
  104. package/out/_next/static/chunks/12cy_5m_0fj96.js +44 -0
  105. package/out/_next/static/chunks/131uuhqexo4si.js +4 -0
  106. package/out/_next/static/chunks/14eqp21pspjud.js +234 -0
  107. package/out/_next/static/chunks/14jd75j8ij4u2.js +3 -0
  108. package/out/_next/static/chunks/153-_av1r1ssb.js +4 -0
  109. package/out/_next/static/chunks/{0m73vd78oga92.js → 157ndq6b9jcvv.js} +11 -11
  110. package/out/_next/static/chunks/177p92k5pdloo.js +1 -0
  111. package/out/_next/static/chunks/19-1z6h5eeq_w.js +134 -0
  112. package/out/_next/static/chunks/1bxznw06g-5u2.js +5 -0
  113. package/out/_next/static/chunks/1bypzyw5fs3w2.js +59 -0
  114. package/out/_next/static/chunks/1cz2fp89ssu5d.js +4 -0
  115. package/out/_next/static/chunks/1e2jykfql801f.js +16 -0
  116. package/out/_next/static/chunks/1eokbzdgdicpa.js +33 -0
  117. package/out/_next/static/chunks/1f0t23r6y0hni.js +1 -0
  118. package/out/_next/static/chunks/1fehej_7rgmmo.js +5 -0
  119. package/out/_next/static/chunks/1gl4h7w9t850f.js +1 -0
  120. package/out/_next/static/chunks/1gv0k-w7m83om.js +41 -0
  121. package/out/_next/static/chunks/1hzt0aoixrv4_.js +7 -0
  122. package/out/_next/static/chunks/1ia6hdgf7pj9y.js +174 -0
  123. package/out/_next/static/chunks/1in8spfokcjsp.js +8 -0
  124. package/out/_next/static/chunks/1j2gw9gyg8j80.js +5 -0
  125. package/out/_next/static/chunks/1k06h8wbfrx_v.js +5 -0
  126. package/out/_next/static/chunks/1kdcu-0jkya-b.js +61 -0
  127. package/out/_next/static/chunks/1msc4qrgaanh7.js +43 -0
  128. package/out/_next/static/chunks/{1iamjw8qh1m4o.js → 1mx0p6r-9c5u_.js} +1 -1
  129. package/out/_next/static/chunks/1oqc8etm-romv.js +1 -0
  130. package/out/_next/static/chunks/1p5lt4tkyouxz.js +4 -0
  131. package/out/_next/static/chunks/1q7wxp4rlhy0x.js +12 -0
  132. package/out/_next/static/chunks/1r61kgm2ct0nf.js +74 -0
  133. package/out/_next/static/chunks/1rmlm4404fsge.js +15 -0
  134. package/out/_next/static/chunks/1s3ool53utm9o.js +39 -0
  135. package/out/_next/static/chunks/1sc2ug6_szd_d.js +2 -0
  136. package/out/_next/static/chunks/{12yd8t4k6c0t1.js → 1t8jj0-6g8uyd.js} +1 -1
  137. package/out/_next/static/chunks/1tbd6m-xvx0um.js +353 -0
  138. package/out/_next/static/chunks/1th1-x1szvnq8.js +5 -0
  139. package/out/_next/static/chunks/1tosw188dr9d6.js +44 -0
  140. package/out/_next/static/chunks/1tw97cvdosb89.js +5 -0
  141. package/out/_next/static/chunks/1ubmbegreszhk.js +1 -0
  142. package/out/_next/static/chunks/{43uqmej6-s4am.js → 1ug1ie2lrhi0a.js} +3 -3
  143. package/out/_next/static/chunks/1uw7hr3o4w5cj.js +8 -0
  144. package/out/_next/static/chunks/1vzs8hvrsoslf.js +5 -0
  145. package/out/_next/static/chunks/1w6gc_cygbi6h.js +5 -0
  146. package/out/_next/static/chunks/1xybsisfyvqrj.js +115 -0
  147. package/out/_next/static/chunks/1yvl8l5yx1rj8.js +4 -0
  148. package/out/_next/static/chunks/{3dcwbsiechj8e.js → 1z-etrje5tsj6.js} +3 -3
  149. package/out/_next/static/chunks/1z1d11slpalrq.js +4 -0
  150. package/out/_next/static/chunks/1zdral15la_p7.js +99 -0
  151. package/out/_next/static/chunks/2-qo63s4vlxol.js +156 -0
  152. package/out/_next/static/chunks/20au-bdji0nu2.js +14 -0
  153. package/out/_next/static/chunks/21zghy5-42i1e.js +1 -0
  154. package/out/_next/static/chunks/22duvsj-priip.js +7 -0
  155. package/out/_next/static/chunks/22rdge7enz4nd.js +12 -0
  156. package/out/_next/static/chunks/{3m_9ozv0orvze.js → 249b4cg2ev597.js} +3 -3
  157. package/out/_next/static/chunks/24caedynuzux0.js +5 -0
  158. package/out/_next/static/chunks/25ite4-jpq_mo.js +4 -0
  159. package/out/_next/static/chunks/25vdihxswn7dy.js +1 -0
  160. package/out/_next/static/chunks/26guwpx1_pkxv.js +1 -0
  161. package/out/_next/static/chunks/28o6402k4vuky.js +11 -0
  162. package/out/_next/static/chunks/29x7cj-318eaa.js +1 -0
  163. package/out/_next/static/chunks/2_0v0fw6x71zy.js +46 -0
  164. package/out/_next/static/chunks/2a9dpzjx5mfjp.js +4 -0
  165. package/out/_next/static/chunks/2apnv1hcv-4zc.js +23 -0
  166. package/out/_next/static/chunks/2b4k5t_myq-pa.js +1 -0
  167. package/out/_next/static/chunks/2bugi3kot5jtu.js +1 -0
  168. package/out/_next/static/chunks/2bxdh-td1el8z.js +5 -0
  169. package/out/_next/static/chunks/2dz0_3jf4m9cy.js +31 -0
  170. package/out/_next/static/chunks/2ege1545af18d.js +4 -0
  171. package/out/_next/static/chunks/2erqawjj0rnih.js +117 -0
  172. package/out/_next/static/chunks/2gfzt_fdr-h96.js +81 -0
  173. package/out/_next/static/chunks/2grm6dtosrvoq.js +1 -0
  174. package/out/_next/static/chunks/2hc3d38gb0q-v.js +1 -0
  175. package/out/_next/static/chunks/2hci18oosfv5d.js +5 -0
  176. package/out/_next/static/chunks/2imf3_f1_ex86.js +1 -0
  177. package/out/_next/static/chunks/{3fpgg_wy6j2ph.js → 2ipcn3vy6d4_6.js} +1 -1
  178. package/out/_next/static/chunks/2iwst7mjldlcz.js +1 -0
  179. package/out/_next/static/chunks/2ja0dztzyw8zw.js +1 -0
  180. package/out/_next/static/chunks/2ja1--2x_gs49.js +83 -0
  181. package/out/_next/static/chunks/2lec5u8obskt6.js +5 -0
  182. package/out/_next/static/chunks/2m38nntt3z8zi.js +103 -0
  183. package/out/_next/static/chunks/2pogx3xggqd8y.js +1 -0
  184. package/out/_next/static/chunks/2q988j4vovsiy.js +8 -0
  185. package/out/_next/static/chunks/2s-0q8i8lr2p2.js +5 -0
  186. package/out/_next/static/chunks/{0a_gulnq-c7to.js → 2u64ldp2xfy8a.js} +7 -7
  187. package/out/_next/static/chunks/2ud5j0_nqocf4.js +5 -0
  188. package/out/_next/static/chunks/2uo6puoi0y082.js +5 -0
  189. package/out/_next/static/chunks/2w3z7kqh6nbmw.js +23 -0
  190. package/out/_next/static/chunks/2y11qf38baxpu.js +14 -0
  191. package/out/_next/static/chunks/{2yw5sk06gdixu.js → 2y8uau15r3p-o.js} +1 -1
  192. package/out/_next/static/chunks/2zb-xmda5rbn0.js +1 -0
  193. package/out/_next/static/chunks/2zsvxbghbsuz1.js +4 -0
  194. package/out/_next/static/chunks/{0s6u_6w75ggbw.js → 3205eg3ochzp4.js} +7 -7
  195. package/out/_next/static/chunks/32g5gxee1kcdc.js +28 -0
  196. package/out/_next/static/chunks/32whi9clpxjd0.js +5 -0
  197. package/out/_next/static/chunks/3368kg846t33d.js +57 -0
  198. package/out/_next/static/chunks/33oz-znvi5-m6.js +1 -0
  199. package/out/_next/static/chunks/345s7967cwd02.js +5 -0
  200. package/out/_next/static/chunks/34wf3lz_fft3k.js +2 -0
  201. package/out/_next/static/chunks/{3btkj1_irjkq7.js → 36x7q29atus_r.js} +6 -6
  202. package/out/_next/static/chunks/37jjn1wguhj-a.js +5 -0
  203. package/out/_next/static/chunks/{1so6ouxrq_ffa.js → 393--hagnnm97.js} +3 -3
  204. package/out/_next/static/chunks/39moagn46hde9.js +5 -0
  205. package/out/_next/static/chunks/3_0q-dmk8few_.css +1 -0
  206. package/out/_next/static/chunks/3_adkt8r_brx4.js +165 -0
  207. package/out/_next/static/chunks/3b1kt-r_75q1a.js +43 -0
  208. package/out/_next/static/chunks/3e38rrs6dszgt.js +8 -0
  209. package/out/_next/static/chunks/{01xy3u9ybz9ts.js → 3e7d8sb4289js.js} +2 -2
  210. package/out/_next/static/chunks/3ek1bahoqa_ll.js +5 -0
  211. package/out/_next/static/chunks/3ek680kdzjdr7.js +1 -0
  212. package/out/_next/static/chunks/3eth7s2-06yuz.js +1 -0
  213. package/out/_next/static/chunks/3exy4ii5maq4x.js +54 -0
  214. package/out/_next/static/chunks/3fevbt4ysloo8.js +8 -0
  215. package/out/_next/static/chunks/3fu072xwkf88o.js +6 -0
  216. package/out/_next/static/chunks/3h6a3clw5m5ro.js +4 -0
  217. package/out/_next/static/chunks/3hmoy4f23y1s4.js +147 -0
  218. package/out/_next/static/chunks/3i4_3b36nutw7.js +33 -0
  219. package/out/_next/static/chunks/3jfe0uesrzz7a.js +1 -0
  220. package/out/_next/static/chunks/3k01tdsm6l20w.js +54 -0
  221. package/out/_next/static/chunks/3lr6hkso67d68.js +6 -0
  222. package/out/_next/static/chunks/3lzin6_25n8rs.js +30 -0
  223. package/out/_next/static/chunks/3nrrzhhoy8amt.js +4 -0
  224. package/out/_next/static/chunks/3o-h2po9z09dk.js +4 -0
  225. package/out/_next/static/chunks/3onharcadlou0.js +327 -0
  226. package/out/_next/static/chunks/3pls-kicv4xu9.js +175 -0
  227. package/out/_next/static/chunks/3t48n1yk76zoa.js +1 -0
  228. package/out/_next/static/chunks/3t_520l4ihlg3.js +54 -0
  229. package/out/_next/static/chunks/3tg_clsx6ux4o.js +1 -0
  230. package/out/_next/static/chunks/3ttz1zgoq3xmp.js +1 -0
  231. package/out/_next/static/chunks/3uekb_s0jaboj.js +1 -0
  232. package/out/_next/static/chunks/3ujdligrod612.js +5 -0
  233. package/out/_next/static/chunks/3www97fxyknos.js +4 -0
  234. package/out/_next/static/chunks/3x_gia2m5w9_l.js +147 -0
  235. package/out/_next/static/chunks/{3j25u7rzawm9f.js → 3xs_undkbcqp7.js} +5 -5
  236. package/out/_next/static/chunks/3yktizlgzr6vc.js +4 -0
  237. package/out/_next/static/chunks/3ytp87o76hzmx.js +100 -0
  238. package/out/_next/static/chunks/40kvu3lk3s9h2.js +276 -0
  239. package/out/_next/static/chunks/41c4n9whpyrjc.js +7 -0
  240. package/out/_next/static/chunks/42dygj7ul4k54.js +33 -0
  241. package/out/_next/static/chunks/449x6nw2kd7l6.js +119 -0
  242. package/out/_next/static/chunks/44b7_q6pkf1k9.js +5 -0
  243. package/out/_next/static/chunks/44qc0zn0tudui.js +2 -0
  244. package/out/_next/static/chunks/45c05mbjow5wz.js +4 -0
  245. package/out/_next/static/chunks/{turbopack-2c3mg3r-05n1w.js → turbopack-077hmtqrhcoji.js} +1 -1
  246. package/out/_offline/index.html +3 -3
  247. package/out/account/forgot-password/index.html +3 -3
  248. package/out/account/index.html +3 -3
  249. package/out/assortments/AssortmentDetailPage/index.html +3 -3
  250. package/out/assortments/index.html +3 -3
  251. package/out/assortments/new/index.html +3 -3
  252. package/out/copilot/index.html +3 -3
  253. package/out/country/CountryDetailPage/index.html +3 -3
  254. package/out/country/index.html +3 -3
  255. package/out/country/new/index.html +3 -3
  256. package/out/currency/CurrencyDetailPage/index.html +3 -3
  257. package/out/currency/index.html +3 -3
  258. package/out/currency/new/index.html +3 -3
  259. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -3
  260. package/out/delivery-provider/index.html +3 -3
  261. package/out/delivery-provider/new/index.html +3 -3
  262. package/out/enrollments/EnrollmentDetailPage/index.html +3 -3
  263. package/out/enrollments/index.html +3 -3
  264. package/out/events/EventDetailPage/index.html +3 -3
  265. package/out/events/index.html +3 -3
  266. package/out/exports/index.html +3 -3
  267. package/out/ext/[[...slug]]/index.html +3 -3
  268. package/out/external/index.html +3 -3
  269. package/out/filters/FilterDetailPage/index.html +3 -3
  270. package/out/filters/index.html +3 -3
  271. package/out/filters/new/index.html +3 -3
  272. package/out/index.html +3 -3
  273. package/out/install/index.html +3 -3
  274. package/out/language/LanguageDetailPage/index.html +3 -3
  275. package/out/language/index.html +3 -3
  276. package/out/language/new/index.html +3 -3
  277. package/out/log-in/index.html +3 -3
  278. package/out/orders/OrderDetailPage/index.html +3 -3
  279. package/out/orders/index.html +3 -3
  280. package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -3
  281. package/out/payment-provider/index.html +3 -3
  282. package/out/payment-provider/new/index.html +3 -3
  283. package/out/products/ProductDetailPage/index.html +3 -3
  284. package/out/products/index.html +3 -3
  285. package/out/products/new/index.html +3 -3
  286. package/out/quotations/QuotationDetailPage/index.html +3 -3
  287. package/out/quotations/index.html +3 -3
  288. package/out/reset-password/index.html +3 -3
  289. package/out/sign-up/index.html +3 -3
  290. package/out/styleguide/index.html +3 -3
  291. package/out/tokens/TokenDetailPage/index.html +3 -3
  292. package/out/tokens/index.html +3 -3
  293. package/out/users/UserDetailPage/index.html +3 -3
  294. package/out/users/index.html +3 -3
  295. package/out/users/new/index.html +3 -3
  296. package/out/verify-email/index.html +3 -3
  297. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -3
  298. package/out/warehousing-provider/index.html +3 -3
  299. package/out/warehousing-provider/new/index.html +3 -3
  300. package/out/works/WorkDetailPage/index.html +3 -3
  301. package/out/works/WorkQueueListView/index.html +3 -3
  302. package/out/works/index.html +3 -3
  303. package/out/works/management/index.html +3 -3
  304. package/package.json +10 -10
  305. package/src/modules/accounts/hooks/logOut.ts +26 -0
  306. package/src/modules/accounts/hooks/useAddEmail.ts +34 -0
  307. package/src/modules/accounts/hooks/useAddWeb3Address.ts +38 -0
  308. package/src/modules/accounts/hooks/useAddWebAuthnCredentials.ts +48 -0
  309. package/src/modules/accounts/hooks/useBulkUserOperations.ts +91 -0
  310. package/src/modules/accounts/hooks/useChangePassword.ts +36 -0
  311. package/src/modules/accounts/hooks/useCreateUser.ts +74 -0
  312. package/src/modules/accounts/hooks/useCreateWebAuthnCredentialCreationOptions.ts +31 -0
  313. package/src/modules/accounts/hooks/useCreateWebAuthnCredentialRequestOptions.ts +30 -0
  314. package/src/modules/accounts/hooks/useCurrentUser.ts +44 -0
  315. package/src/modules/accounts/hooks/useDeleteUser.ts +26 -0
  316. package/src/modules/accounts/hooks/useEnrollUser.ts +48 -0
  317. package/src/modules/accounts/hooks/useForgotPassword.ts +35 -0
  318. package/src/modules/accounts/hooks/useGenerateLoginCredentials.ts +80 -0
  319. package/src/modules/accounts/hooks/useGenerateWebAuthCredentials.ts +102 -0
  320. package/src/modules/accounts/hooks/useLoginWithPassword.ts +65 -0
  321. package/src/modules/accounts/hooks/useLoginWithWebAuthn.ts +38 -0
  322. package/src/modules/accounts/hooks/useLogoutAllSessions.ts +27 -0
  323. package/src/modules/accounts/hooks/useRemoveBookmark.ts +36 -0
  324. package/src/modules/accounts/hooks/useRemoveEmail.ts +40 -0
  325. package/src/modules/accounts/hooks/useRemoveWeb3Address.ts +38 -0
  326. package/src/modules/accounts/hooks/useRemoveWebAuthCredentials.ts +36 -0
  327. package/src/modules/accounts/hooks/useResetPassword.ts +46 -0
  328. package/src/modules/accounts/hooks/useSendVerificationEmail.ts +35 -0
  329. package/src/modules/accounts/hooks/useSetPassword.ts +38 -0
  330. package/src/modules/accounts/hooks/useSetRoles.ts +40 -0
  331. package/src/modules/accounts/hooks/useSetUserTags.ts +48 -0
  332. package/src/modules/accounts/hooks/useSetUsername.ts +40 -0
  333. package/src/modules/accounts/hooks/useUpdateUserAvatar.ts +49 -0
  334. package/src/modules/accounts/hooks/useUpdateUserProfile.ts +40 -0
  335. package/src/modules/accounts/hooks/useUser.ts +201 -0
  336. package/src/modules/accounts/hooks/useUserBookmarks.ts +51 -0
  337. package/src/modules/accounts/hooks/useUserExport.ts +107 -0
  338. package/src/modules/accounts/hooks/useUserWebAuthnCredentials.ts +44 -0
  339. package/src/modules/accounts/hooks/useUsers.ts +82 -0
  340. package/src/modules/accounts/hooks/useUsersCount.ts +50 -0
  341. package/src/modules/accounts/hooks/useValidateEmailVerificationToken.ts +34 -0
  342. package/src/modules/accounts/hooks/useValidateResetPasswordToken.ts +35 -0
  343. package/src/modules/accounts/hooks/useVerifyEmail.ts +41 -0
  344. package/src/modules/accounts/hooks/useVerifyWeb3Address.ts +40 -0
  345. package/src/modules/assortment/fragments/AssortmentChildrenFragment.ts +16 -0
  346. package/src/modules/assortment/fragments/AssortmentFragment.ts +31 -0
  347. package/src/modules/assortment/fragments/AssortmentLinkFragment.ts +18 -0
  348. package/src/modules/assortment/fragments/AssortmentMediaFragment.ts +19 -0
  349. package/src/modules/assortment/fragments/AssortmentMediaTextsFragment.ts +12 -0
  350. package/src/modules/assortment/fragments/AssortmentTextsFragment.ts +14 -0
  351. package/src/modules/assortment/hooks/useAddAssortmentFilter.ts +46 -0
  352. package/src/modules/assortment/hooks/useAddAssortmentLink.ts +46 -0
  353. package/src/modules/assortment/hooks/useAddAssortmentMedia.ts +52 -0
  354. package/src/modules/assortment/hooks/useAddAssortmentProduct.ts +46 -0
  355. package/src/modules/assortment/hooks/useAssortment.ts +56 -0
  356. package/src/modules/assortment/hooks/useAssortmentChildren.ts +58 -0
  357. package/src/modules/assortment/hooks/useAssortmentExport.ts +60 -0
  358. package/src/modules/assortment/hooks/useAssortmentFilters.ts +51 -0
  359. package/src/modules/assortment/hooks/useAssortmentLinks.ts +54 -0
  360. package/src/modules/assortment/hooks/useAssortmentMedia.ts +57 -0
  361. package/src/modules/assortment/hooks/useAssortmentPaths.ts +39 -0
  362. package/src/modules/assortment/hooks/useAssortmentProducts.ts +62 -0
  363. package/src/modules/assortment/hooks/useAssortments.ts +103 -0
  364. package/src/modules/assortment/hooks/useAssortmentsCount.ts +51 -0
  365. package/src/modules/assortment/hooks/useBulkAssortmentOperations.ts +100 -0
  366. package/src/modules/assortment/hooks/useCreateAssortment.ts +55 -0
  367. package/src/modules/assortment/hooks/usePrepareAssortmentImport.ts +211 -0
  368. package/src/modules/assortment/hooks/useRemoveAssortment.ts +36 -0
  369. package/src/modules/assortment/hooks/useRemoveAssortmentFilter.ts +36 -0
  370. package/src/modules/assortment/hooks/useRemoveAssortmentLink.ts +36 -0
  371. package/src/modules/assortment/hooks/useRemoveAssortmentMedia.ts +36 -0
  372. package/src/modules/assortment/hooks/useRemoveAssortmentProduct.ts +36 -0
  373. package/src/modules/assortment/hooks/useReorderAssortmentFilters.ts +39 -0
  374. package/src/modules/assortment/hooks/useReorderAssortmentLinks.ts +37 -0
  375. package/src/modules/assortment/hooks/useReorderAssortmentMedia.ts +37 -0
  376. package/src/modules/assortment/hooks/useReorderAssortmentProducts.ts +39 -0
  377. package/src/modules/assortment/hooks/useTranslatedAssortmentMediaTexts.ts +41 -0
  378. package/src/modules/assortment/hooks/useTranslatedAssortmentTexts.ts +40 -0
  379. package/src/modules/assortment/hooks/useUpdateAssortment.ts +43 -0
  380. package/src/modules/assortment/hooks/useUpdateAssortmentMediaTexts.ts +45 -0
  381. package/src/modules/assortment/hooks/useUpdateAssortmentTexts.ts +42 -0
  382. package/src/modules/common/fragments/AddressFragment.ts +16 -0
  383. package/src/modules/common/hooks/useApp.ts +11 -0
  384. package/src/modules/common/hooks/useBulkActionConfirmation.tsx +68 -0
  385. package/src/modules/common/hooks/useBulkResultHandler.ts +83 -0
  386. package/src/modules/common/hooks/useBulkSelection.ts +86 -0
  387. package/src/modules/common/hooks/useCSVExport.ts +94 -0
  388. package/src/modules/common/hooks/useCSVImport.ts +69 -0
  389. package/src/modules/common/hooks/useChatEndpointChecker.ts +25 -0
  390. package/src/modules/common/hooks/useConfirmMediaUpload.ts +45 -0
  391. package/src/modules/common/hooks/useDashboardMetrics.ts +42 -0
  392. package/src/modules/common/hooks/useLocalStorage.ts +34 -0
  393. package/src/modules/common/hooks/useOrderAnalytics.ts +139 -0
  394. package/src/modules/common/hooks/useOrderItemsAnalytics.ts +107 -0
  395. package/src/modules/common/hooks/useOutsideClick.ts +29 -0
  396. package/src/modules/common/hooks/usePortal.ts +54 -0
  397. package/src/modules/common/hooks/useScrollRestoration.ts +123 -0
  398. package/src/modules/common/hooks/useShopConfiguration.ts +83 -0
  399. package/src/modules/common/hooks/useShopInfo.ts +65 -0
  400. package/src/modules/common/hooks/useStatusTypes.ts +29 -0
  401. package/src/modules/common/hooks/useSystemRoles.ts +29 -0
  402. package/src/modules/common/hooks/useTheme.ts +14 -0
  403. package/src/modules/copilot/hooks/useAvailableTools.ts +92 -0
  404. package/src/modules/copilot/hooks/useChatManager.ts +169 -0
  405. package/src/modules/copilot/hooks/useToolTextNormalizer.ts +84 -0
  406. package/src/modules/country/fragments/CountryFragment.ts +17 -0
  407. package/src/modules/country/hooks/useCountries.ts +66 -0
  408. package/src/modules/country/hooks/useCountry.ts +34 -0
  409. package/src/modules/country/hooks/useCreateCountry.ts +41 -0
  410. package/src/modules/country/hooks/useRemoveCountry.ts +38 -0
  411. package/src/modules/country/hooks/useUpdateCountry.ts +42 -0
  412. package/src/modules/currency/fragments/CurrencyFragment.ts +13 -0
  413. package/src/modules/currency/hooks/useCreateCurrency.ts +48 -0
  414. package/src/modules/currency/hooks/useCurrencies.ts +68 -0
  415. package/src/modules/currency/hooks/useCurrency.ts +34 -0
  416. package/src/modules/currency/hooks/useRemoveCurrency.ts +38 -0
  417. package/src/modules/currency/hooks/useUpdateCurrency.ts +47 -0
  418. package/src/modules/delivery-provider/hooks/useCreateDeliveryProvider.ts +67 -0
  419. package/src/modules/delivery-provider/hooks/useDeliveryInterfacesByType.ts +38 -0
  420. package/src/modules/delivery-provider/hooks/useDeliveryProvider.ts +60 -0
  421. package/src/modules/delivery-provider/hooks/useDeliveryProviderTypes.ts +34 -0
  422. package/src/modules/delivery-provider/hooks/useDeliveryProviders.ts +59 -0
  423. package/src/modules/delivery-provider/hooks/useRemoveDeliveryProvider.ts +38 -0
  424. package/src/modules/delivery-provider/hooks/useUpdateDeliveryProvider.ts +68 -0
  425. package/src/modules/enrollment/fragments/EnrollmentDetailFragment.ts +110 -0
  426. package/src/modules/enrollment/fragments/EnrollmentFragment.ts +66 -0
  427. package/src/modules/enrollment/hooks/useActivateEnrollment.ts +36 -0
  428. package/src/modules/enrollment/hooks/useEnrollment.ts +39 -0
  429. package/src/modules/enrollment/hooks/useEnrollments.ts +70 -0
  430. package/src/modules/enrollment/hooks/useSendEnrollmentEmail.ts +35 -0
  431. package/src/modules/enrollment/hooks/useSuspendEnrollment.ts +29 -0
  432. package/src/modules/enrollment/hooks/useTerminateEnrollment.ts +36 -0
  433. package/src/modules/enrollment/hooks/useUpdateEnrollmentPlan.ts +45 -0
  434. package/src/modules/enrollment/hooks/useUserEnrollments.ts +61 -0
  435. package/src/modules/event/fragments/EventFragment.ts +12 -0
  436. package/src/modules/event/hooks/useEvent.ts +32 -0
  437. package/src/modules/event/hooks/useEventTypes.ts +29 -0
  438. package/src/modules/event/hooks/useEvents.ts +77 -0
  439. package/src/modules/filter/fragments/FilterFragment.ts +24 -0
  440. package/src/modules/filter/fragments/FilterOptionFragment.ts +16 -0
  441. package/src/modules/filter/fragments/FilterTextsFragment.ts +12 -0
  442. package/src/modules/filter/hooks/useBulkFilterOperations.ts +59 -0
  443. package/src/modules/filter/hooks/useCreateFilter.ts +44 -0
  444. package/src/modules/filter/hooks/useCreateFilterOption.ts +42 -0
  445. package/src/modules/filter/hooks/useFilter.ts +44 -0
  446. package/src/modules/filter/hooks/useFilterExport.ts +35 -0
  447. package/src/modules/filter/hooks/useFilterOptions.ts +40 -0
  448. package/src/modules/filter/hooks/useFilterTypes.ts +34 -0
  449. package/src/modules/filter/hooks/useFilters.ts +78 -0
  450. package/src/modules/filter/hooks/useFiltersCount.ts +37 -0
  451. package/src/modules/filter/hooks/usePrepareFilterImport.ts +142 -0
  452. package/src/modules/filter/hooks/useRemoveFilter.ts +34 -0
  453. package/src/modules/filter/hooks/useRemoveFilterOption.ts +40 -0
  454. package/src/modules/filter/hooks/useTranslatedFilterTexts.ts +40 -0
  455. package/src/modules/filter/hooks/useUpdateFilter.ts +38 -0
  456. package/src/modules/filter/hooks/useUpdateFilterTexts.ts +48 -0
  457. package/src/modules/forms/hooks/useField.ts +151 -0
  458. package/src/modules/forms/hooks/useForm.ts +210 -0
  459. package/src/modules/forms/hooks/useFormContext.ts +7 -0
  460. package/src/modules/language/fragments/LanguageFragment.ts +13 -0
  461. package/src/modules/language/hooks/useCreateLanguage.ts +40 -0
  462. package/src/modules/language/hooks/useLanguage.ts +34 -0
  463. package/src/modules/language/hooks/useLanguages.ts +64 -0
  464. package/src/modules/language/hooks/useRemoveLanguage.ts +38 -0
  465. package/src/modules/language/hooks/useUpdateLanguage.ts +42 -0
  466. package/src/modules/modal/hooks/useModal.ts +8 -0
  467. package/src/modules/order/fragments/OrderDetailFragment.ts +255 -0
  468. package/src/modules/order/fragments/OrderFragment.ts +42 -0
  469. package/src/modules/order/hooks/useConfirmOrder.ts +36 -0
  470. package/src/modules/order/hooks/useDeliverOrder.ts +36 -0
  471. package/src/modules/order/hooks/useOrder.ts +35 -0
  472. package/src/modules/order/hooks/useOrders.ts +105 -0
  473. package/src/modules/order/hooks/usePayOrder.ts +36 -0
  474. package/src/modules/order/hooks/useRejectOrder.ts +36 -0
  475. package/src/modules/order/hooks/useRemoveOrder.ts +36 -0
  476. package/src/modules/order/hooks/useUserCart.ts +71 -0
  477. package/src/modules/order/hooks/useUserOrders.ts +65 -0
  478. package/src/modules/payment-providers/fragments/PaymentProviderFragment.ts +21 -0
  479. package/src/modules/payment-providers/hooks/useCreatePaymentProvider.ts +43 -0
  480. package/src/modules/payment-providers/hooks/usePaymentInterfacesByType.ts +38 -0
  481. package/src/modules/payment-providers/hooks/usePaymentProvider.ts +39 -0
  482. package/src/modules/payment-providers/hooks/usePaymentProviderTypes.ts +34 -0
  483. package/src/modules/payment-providers/hooks/usePaymentProviders.ts +42 -0
  484. package/src/modules/payment-providers/hooks/useRemovePaymentProvider.ts +38 -0
  485. package/src/modules/payment-providers/hooks/useUpdatePaymentProvider.ts +47 -0
  486. package/src/modules/product/fragments/ProductAssignmentFragment.ts +39 -0
  487. package/src/modules/product/fragments/ProductBriefFragment.ts +57 -0
  488. package/src/modules/product/fragments/ProductCatalogPriceFragment.ts +23 -0
  489. package/src/modules/product/fragments/ProductDetailFragment.ts +51 -0
  490. package/src/modules/product/fragments/ProductDimensionFragment.ts +12 -0
  491. package/src/modules/product/fragments/ProductMediaFragment.ts +24 -0
  492. package/src/modules/product/fragments/ProductMediaTextsFragment.ts +12 -0
  493. package/src/modules/product/fragments/ProductPlanConfigurationFragment.ts +14 -0
  494. package/src/modules/product/fragments/ProductTextsFragment.ts +17 -0
  495. package/src/modules/product/fragments/ProductVariationFragment.ts +27 -0
  496. package/src/modules/product/fragments/TokenFragment.ts +24 -0
  497. package/src/modules/product/hooks/useAddProductAssignment.ts +46 -0
  498. package/src/modules/product/hooks/useAddProductMedia.ts +47 -0
  499. package/src/modules/product/hooks/useBulkProductOperations.ts +123 -0
  500. package/src/modules/product/hooks/useCreateProduct.ts +72 -0
  501. package/src/modules/product/hooks/useCreateProductBundleItem.ts +40 -0
  502. package/src/modules/product/hooks/useCreateProductVariation.ts +46 -0
  503. package/src/modules/product/hooks/useCreateProductVariationOption.ts +46 -0
  504. package/src/modules/product/hooks/useExportToken.ts +51 -0
  505. package/src/modules/product/hooks/useMenuPosition.ts +34 -0
  506. package/src/modules/product/hooks/usePrepareProductImport.ts +350 -0
  507. package/src/modules/product/hooks/useProduct.ts +93 -0
  508. package/src/modules/product/hooks/useProductAssignments.ts +71 -0
  509. package/src/modules/product/hooks/useProductBundleItems.ts +61 -0
  510. package/src/modules/product/hooks/useProductCatalogPrices.ts +39 -0
  511. package/src/modules/product/hooks/useProductExport.ts +90 -0
  512. package/src/modules/product/hooks/useProductFulfillmentSimulation.ts +137 -0
  513. package/src/modules/product/hooks/useProductMedia.ts +44 -0
  514. package/src/modules/product/hooks/useProductPlan.ts +50 -0
  515. package/src/modules/product/hooks/useProductPlanConfigurationOptions.ts +42 -0
  516. package/src/modules/product/hooks/useProductReviews.ts +62 -0
  517. package/src/modules/product/hooks/useProductSupply.ts +52 -0
  518. package/src/modules/product/hooks/useProductTokenization.ts +51 -0
  519. package/src/modules/product/hooks/useProductVariationTypes.ts +34 -0
  520. package/src/modules/product/hooks/useProductVariations.ts +50 -0
  521. package/src/modules/product/hooks/useProductWarehousing.ts +45 -0
  522. package/src/modules/product/hooks/useProducts.ts +111 -0
  523. package/src/modules/product/hooks/useProductsCount.ts +50 -0
  524. package/src/modules/product/hooks/usePublishProduct.ts +39 -0
  525. package/src/modules/product/hooks/useReOrderProductMedia.ts +36 -0
  526. package/src/modules/product/hooks/useRemoveBundleItem.ts +37 -0
  527. package/src/modules/product/hooks/useRemoveProduct.ts +36 -0
  528. package/src/modules/product/hooks/useRemoveProductAssignment.ts +40 -0
  529. package/src/modules/product/hooks/useRemoveProductMedia.ts +36 -0
  530. package/src/modules/product/hooks/useRemoveProductVariation.ts +36 -0
  531. package/src/modules/product/hooks/useRemoveProductVariationOption.ts +43 -0
  532. package/src/modules/product/hooks/useScaffoldBundleItem.ts +38 -0
  533. package/src/modules/product/hooks/useScaffoldVariationProduct.ts +50 -0
  534. package/src/modules/product/hooks/useSmartContractStandards.ts +34 -0
  535. package/src/modules/product/hooks/useTranslatedProductMediaTexts.ts +39 -0
  536. package/src/modules/product/hooks/useTranslatedProductTexts.ts +42 -0
  537. package/src/modules/product/hooks/useUnPublishProduct.ts +39 -0
  538. package/src/modules/product/hooks/useUpdateProduct.ts +46 -0
  539. package/src/modules/product/hooks/useUpdateProductCommerce.ts +61 -0
  540. package/src/modules/product/hooks/useUpdateProductMediaTexts.ts +42 -0
  541. package/src/modules/product/hooks/useUpdateProductPlan.ts +54 -0
  542. package/src/modules/product/hooks/useUpdateProductSupply.ts +60 -0
  543. package/src/modules/product/hooks/useUpdateProductTexts.ts +39 -0
  544. package/src/modules/product/hooks/useUpdateProductTokenization.ts +51 -0
  545. package/src/modules/product/hooks/useUpdateProductVariationTexts.ts +50 -0
  546. package/src/modules/product/hooks/useUpdateProductWarehousing.ts +50 -0
  547. package/src/modules/product/hooks/useUserTokens.ts +48 -0
  548. package/src/modules/product-review/fragments/ProductReviewDetailFragment.ts +55 -0
  549. package/src/modules/product-review/hooks/useAddProductReviewVote.ts +55 -0
  550. package/src/modules/product-review/hooks/useCreateProductReview.ts +47 -0
  551. package/src/modules/product-review/hooks/useProductReviewsByProductId.ts +70 -0
  552. package/src/modules/product-review/hooks/useRemoveProductReview.ts +38 -0
  553. package/src/modules/product-review/hooks/useRemoveProductReviewVote.ts +43 -0
  554. package/src/modules/product-review/hooks/useUserProductReviews.ts +92 -0
  555. package/src/modules/quotation/fragments/QuotationDetailFragment.ts +70 -0
  556. package/src/modules/quotation/fragments/QuotationFragment.ts +54 -0
  557. package/src/modules/quotation/hooks/useMakeQuotationProposal.ts +41 -0
  558. package/src/modules/quotation/hooks/useQuotation.ts +37 -0
  559. package/src/modules/quotation/hooks/useQuotations.ts +61 -0
  560. package/src/modules/quotation/hooks/useRejectQuotation.ts +41 -0
  561. package/src/modules/quotation/hooks/useUserQuotations.ts +60 -0
  562. package/src/modules/quotation/hooks/useVerifyQuotation.ts +41 -0
  563. package/src/modules/search/fragments/GlobalSearchFragment.ts +20 -0
  564. package/src/modules/search/hooks/useGlobalSearch.ts +168 -0
  565. package/src/modules/token/hooks/useInvalidateTicket.ts +27 -0
  566. package/src/modules/token/hooks/useToken.ts +64 -0
  567. package/src/modules/token/hooks/useTokens.ts +72 -0
  568. package/src/modules/warehousing-providers/fragments/WarehousingProviderFragment.ts +21 -0
  569. package/src/modules/warehousing-providers/hooks/useCreateWarehousingProvider.ts +46 -0
  570. package/src/modules/warehousing-providers/hooks/useRemoveWarehousingProvider.ts +38 -0
  571. package/src/modules/warehousing-providers/hooks/useUpdateWarehousingProvider.ts +47 -0
  572. package/src/modules/warehousing-providers/hooks/useWarehousingInterfacesByType.ts +38 -0
  573. package/src/modules/warehousing-providers/hooks/useWarehousingProvider.ts +39 -0
  574. package/src/modules/warehousing-providers/hooks/useWarehousingProviderTypes.ts +34 -0
  575. package/src/modules/warehousing-providers/hooks/useWarehousingProviders.ts +41 -0
  576. package/src/modules/work/fragments/WorkFragment.ts +24 -0
  577. package/src/modules/work/hooks/useActiveWorkTypes.ts +29 -0
  578. package/src/modules/work/hooks/useAddWork.ts +62 -0
  579. package/src/modules/work/hooks/useAllocateWork.ts +40 -0
  580. package/src/modules/work/hooks/useRecentExports.ts +129 -0
  581. package/src/modules/work/hooks/useRegisteredWorkTypes.ts +27 -0
  582. package/src/modules/work/hooks/useRemoveWork.ts +36 -0
  583. package/src/modules/work/hooks/useWork.ts +42 -0
  584. package/src/modules/work/hooks/useWorkQueue.ts +98 -0
  585. package/src/sdk/README.md +2 -2
  586. package/out/_next/static/BPoacQET3TJr2q9E370Ez/_buildManifest.js +0 -262
  587. package/out/_next/static/chunks/02ir8k2vqhw7u.js +0 -4
  588. package/out/_next/static/chunks/03mdkmx9pb3yx.js +0 -28
  589. package/out/_next/static/chunks/03spbldywp99b.js +0 -31
  590. package/out/_next/static/chunks/0531sa8v36e39.js +0 -1
  591. package/out/_next/static/chunks/065ltxdt7s8b2.js +0 -134
  592. package/out/_next/static/chunks/06b1jza2fvc6f.js +0 -4
  593. package/out/_next/static/chunks/0701uizxsgs75.js +0 -4
  594. package/out/_next/static/chunks/09olk50zbo5r6.js +0 -5
  595. package/out/_next/static/chunks/09pabifvs84zb.js +0 -12
  596. package/out/_next/static/chunks/0agx-csdwbk-x.js +0 -5
  597. package/out/_next/static/chunks/0clmvy-auef0p.js +0 -14
  598. package/out/_next/static/chunks/0czktxcs2aa12.js +0 -1
  599. package/out/_next/static/chunks/0d_qylr054ab-.js +0 -5
  600. package/out/_next/static/chunks/0e2znhpcecrqs.js +0 -175
  601. package/out/_next/static/chunks/0ef4vp3ehm369.js +0 -4
  602. package/out/_next/static/chunks/0fggi8jpi5gjk.js +0 -165
  603. package/out/_next/static/chunks/0gyabz3vqllr6.js +0 -83
  604. package/out/_next/static/chunks/0j05dboa5_xkw.js +0 -5
  605. package/out/_next/static/chunks/0kr4ift9_1a3s.js +0 -1
  606. package/out/_next/static/chunks/0l8tmlevl_6p0.js +0 -1
  607. package/out/_next/static/chunks/0o91usftba97q.js +0 -54
  608. package/out/_next/static/chunks/0oi1kpp0levnm.js +0 -1
  609. package/out/_next/static/chunks/0p86ng98eiz5q.js +0 -11
  610. package/out/_next/static/chunks/0pw1zl8_l93xl.js +0 -5
  611. package/out/_next/static/chunks/0py8-umjmwiwi.js +0 -156
  612. package/out/_next/static/chunks/0q0m2pv-3b2e2.js +0 -4
  613. package/out/_next/static/chunks/0r57e83u39trg.js +0 -5
  614. package/out/_next/static/chunks/0r9a_mcjh1k24.js +0 -6
  615. package/out/_next/static/chunks/0rgtc82y8z7_x.js +0 -5
  616. package/out/_next/static/chunks/0rxhx_x-7dojh.js +0 -182
  617. package/out/_next/static/chunks/0teb3b5h78855.js +0 -44
  618. package/out/_next/static/chunks/0thsuuvsozjop.js +0 -54
  619. package/out/_next/static/chunks/0v6x3uondh5hw.js +0 -5
  620. package/out/_next/static/chunks/0v_uz3j8jolmq.js +0 -4
  621. package/out/_next/static/chunks/0vwmp6qrw7odm.js +0 -7
  622. package/out/_next/static/chunks/0w6t6v_jzrudq.js +0 -4
  623. package/out/_next/static/chunks/0w7gz501ry22r.js +0 -4
  624. package/out/_next/static/chunks/0xgn-89s97a5w.js +0 -1
  625. package/out/_next/static/chunks/0xqtemh7t38y9.js +0 -119
  626. package/out/_next/static/chunks/1-1rj15j67dqt.js +0 -1
  627. package/out/_next/static/chunks/10drou7w-k58p.js +0 -4
  628. package/out/_next/static/chunks/11w7hldkge7sg.js +0 -8
  629. package/out/_next/static/chunks/130c8cta7pec6.js +0 -1
  630. package/out/_next/static/chunks/13qi39a_b6gkv.js +0 -1
  631. package/out/_next/static/chunks/15142badc5ufq.js +0 -4
  632. package/out/_next/static/chunks/155boltbcvwo-.js +0 -63
  633. package/out/_next/static/chunks/15_nwd8p454gd.js +0 -1
  634. package/out/_next/static/chunks/15s4qkdyz56pg.js +0 -115
  635. package/out/_next/static/chunks/15vdx0kewzv-6.js +0 -33
  636. package/out/_next/static/chunks/16shuavdpgni8.js +0 -327
  637. package/out/_next/static/chunks/170j06y4-47o4.js +0 -5
  638. package/out/_next/static/chunks/18a5kibvycb6u.js +0 -1
  639. package/out/_next/static/chunks/1_bckhq06wfmb.js +0 -4
  640. package/out/_next/static/chunks/1_ymf_rfke1aw.js +0 -6
  641. package/out/_next/static/chunks/1a1m389awxw4k.js +0 -1
  642. package/out/_next/static/chunks/1albq_5cppsa1.js +0 -5
  643. package/out/_next/static/chunks/1bhibqf8k2-z1.js +0 -117
  644. package/out/_next/static/chunks/1bxesp6kakz8_.js +0 -353
  645. package/out/_next/static/chunks/1d80ahah359g5.js +0 -174
  646. package/out/_next/static/chunks/1dbjry-rs_5we.js +0 -1
  647. package/out/_next/static/chunks/1dlr1eig6zpl1.js +0 -12
  648. package/out/_next/static/chunks/1gq8ickcg_vmv.js +0 -147
  649. package/out/_next/static/chunks/1gyrsx1nip-lm.js +0 -2
  650. package/out/_next/static/chunks/1hma23kynopdj.js +0 -3
  651. package/out/_next/static/chunks/1i996uxxmc736.js +0 -234
  652. package/out/_next/static/chunks/1ivhp-mi-5l--.js +0 -57
  653. package/out/_next/static/chunks/1ktkks-wpk8q-.js +0 -1
  654. package/out/_next/static/chunks/1kz62r46jwi0y.js +0 -5
  655. package/out/_next/static/chunks/1lex3myb5hmsw.js +0 -1
  656. package/out/_next/static/chunks/1lha1nklxo2g7.js +0 -1
  657. package/out/_next/static/chunks/1mwmcucidjio0.js +0 -8
  658. package/out/_next/static/chunks/1mzejejof4s6g.js +0 -147
  659. package/out/_next/static/chunks/1os6pvhjeb16o.js +0 -1
  660. package/out/_next/static/chunks/1p937fyqa7ssz.js +0 -1
  661. package/out/_next/static/chunks/1po7d3udj6iv4.js +0 -5
  662. package/out/_next/static/chunks/1qxxbcidu-hmv.js +0 -1
  663. package/out/_next/static/chunks/1re4i2t_po4sr.js +0 -95
  664. package/out/_next/static/chunks/1s4oi1bw8zl5d.js +0 -31
  665. package/out/_next/static/chunks/1sb04cqudnfpj.js +0 -4
  666. package/out/_next/static/chunks/1uom050rz5iol.js +0 -272
  667. package/out/_next/static/chunks/1uymuiqrms2h8.js +0 -103
  668. package/out/_next/static/chunks/1wijj_fal57co.js +0 -2
  669. package/out/_next/static/chunks/1wpen9t3_zbte.js +0 -1
  670. package/out/_next/static/chunks/1wpv1sl7vwg04.js +0 -99
  671. package/out/_next/static/chunks/1y3poj860g968.js +0 -24
  672. package/out/_next/static/chunks/1yk0pxcl4urkd.js +0 -4
  673. package/out/_next/static/chunks/1z2rl3h7scna4.js +0 -7
  674. package/out/_next/static/chunks/1zyhq82pkterc.js +0 -61
  675. package/out/_next/static/chunks/2-zr9-ri30va5.css +0 -1
  676. package/out/_next/static/chunks/20j8cdot33hql.js +0 -13
  677. package/out/_next/static/chunks/21fo9zerxyx-l.js +0 -59
  678. package/out/_next/static/chunks/22sxsq82r3cwy.js +0 -41
  679. package/out/_next/static/chunks/23nwkbry8kz0-.js +0 -1
  680. package/out/_next/static/chunks/259ckrmoldaqg.js +0 -5
  681. package/out/_next/static/chunks/25y2dqqrhstuq.js +0 -5
  682. package/out/_next/static/chunks/28myh-gi8t3t7.js +0 -7
  683. package/out/_next/static/chunks/29y82c6-u55hj.js +0 -5
  684. package/out/_next/static/chunks/2ahlen2u4lbnm.js +0 -16
  685. package/out/_next/static/chunks/2c3ehieqiwiw8.js +0 -119
  686. package/out/_next/static/chunks/2c5gq6izeq6nx.js +0 -81
  687. package/out/_next/static/chunks/2cj8g3fxmitaa.js +0 -1
  688. package/out/_next/static/chunks/2d9lzme_uzwvq.js +0 -1
  689. package/out/_next/static/chunks/2dqoft2pp4355.js +0 -1
  690. package/out/_next/static/chunks/2gso7_8v7owco.js +0 -1
  691. package/out/_next/static/chunks/2hc4nowrexhn3.js +0 -100
  692. package/out/_next/static/chunks/2hoi6cb1lromr.js +0 -4
  693. package/out/_next/static/chunks/2hw2_8kkf_2fg.js +0 -1
  694. package/out/_next/static/chunks/2kd4p_esjbozz.js +0 -21
  695. package/out/_next/static/chunks/2lwhn1ypqwukz.js +0 -11
  696. package/out/_next/static/chunks/2oz432iieo_c6.js +0 -43
  697. package/out/_next/static/chunks/2qjnhmz4c5fq1.js +0 -23
  698. package/out/_next/static/chunks/2rdjgc7_za785.js +0 -9
  699. package/out/_next/static/chunks/2ru66cyp0hbxn.js +0 -103
  700. package/out/_next/static/chunks/2ung-az_h871_.js +0 -4
  701. package/out/_next/static/chunks/2v4rvvdyh028e.js +0 -1
  702. package/out/_next/static/chunks/2vsl3-revotpl.js +0 -43
  703. package/out/_next/static/chunks/2wbc_9uwtsjbp.js +0 -15
  704. package/out/_next/static/chunks/2xixk0t9e9mnw.js +0 -1
  705. package/out/_next/static/chunks/2y6i_xssusr93.js +0 -1
  706. package/out/_next/static/chunks/2y_t26eglpeka.js +0 -4
  707. package/out/_next/static/chunks/3-hgyqm9mhcm9.js +0 -33
  708. package/out/_next/static/chunks/364y5vueeinvz.js +0 -276
  709. package/out/_next/static/chunks/366b9y413lk4d.js +0 -33
  710. package/out/_next/static/chunks/36vauyb71ot_b.js +0 -61
  711. package/out/_next/static/chunks/394m309ssmlo3.js +0 -5
  712. package/out/_next/static/chunks/39pveojee3ma1.js +0 -33
  713. package/out/_next/static/chunks/3_--novhq2u1q.js +0 -807
  714. package/out/_next/static/chunks/3apnk6kuvwze8.js +0 -5
  715. package/out/_next/static/chunks/3b0868kyqqkn3.js +0 -5
  716. package/out/_next/static/chunks/3dyd0ilb-ee5w.js +0 -8
  717. package/out/_next/static/chunks/3eftzknnu45-s.js +0 -1
  718. package/out/_next/static/chunks/3ejsx4af27cct.js +0 -7
  719. package/out/_next/static/chunks/3es4yddhl8uwc.js +0 -7
  720. package/out/_next/static/chunks/3inp15oicq85k.js +0 -1
  721. package/out/_next/static/chunks/3kd-t_qz3nxh7.js +0 -30
  722. package/out/_next/static/chunks/3kl8vv7w9jkjr.js +0 -23
  723. package/out/_next/static/chunks/3kmfx3f7oyfdm.js +0 -5
  724. package/out/_next/static/chunks/3koj4-48a7p_9.js +0 -4
  725. package/out/_next/static/chunks/3l7glrtu8ueuo.js +0 -4
  726. package/out/_next/static/chunks/3lgq9oa_2erwo.js +0 -5
  727. package/out/_next/static/chunks/3muxcxam24i5z.js +0 -1
  728. package/out/_next/static/chunks/3nimt7ngr5zv6.js +0 -46
  729. package/out/_next/static/chunks/3pwezwpggrz59.js +0 -74
  730. package/out/_next/static/chunks/3r02t7a7jknrv.js +0 -7
  731. package/out/_next/static/chunks/3s40iuaou1rt4.js +0 -1
  732. package/out/_next/static/chunks/3selzn479n73i.js +0 -16
  733. package/out/_next/static/chunks/3srflqnqdfd60.js +0 -5
  734. package/out/_next/static/chunks/3t57k35xu2eo8.js +0 -5
  735. package/out/_next/static/chunks/3tu90a7do336z.js +0 -12
  736. package/out/_next/static/chunks/3ukgj2jzxf10n.js +0 -5
  737. package/out/_next/static/chunks/3vosu-lpiis6v.js +0 -5
  738. package/out/_next/static/chunks/3xaz8fvw2x6b3.js +0 -5
  739. package/out/_next/static/chunks/3xgjhwzul66dp.js +0 -4
  740. package/out/_next/static/chunks/3zze6y1x00k__.js +0 -165
  741. package/out/_next/static/chunks/40730dyt912zu.js +0 -5
  742. package/out/_next/static/chunks/40f26tfp8txip.js +0 -5
  743. package/out/_next/static/chunks/40kc42ezz2dri.js +0 -1
  744. package/out/_next/static/chunks/41f60q88qcigi.js +0 -39
  745. package/out/_next/static/chunks/41l5iphw-rna3.js +0 -44
  746. package/out/_next/static/chunks/423kk9x5t9_b8.js +0 -5
  747. package/out/_next/static/chunks/42k5e3tr3uyzs.js +0 -54
  748. package/out/_next/static/chunks/4481d7yj7bm2q.js +0 -5
  749. package/out/_next/static/chunks/448is1kpt9eaa.js +0 -39
  750. package/out/_next/static/chunks/44fkzg2e80pqt.js +0 -8
  751. /package/out/_next/static/{BPoacQET3TJr2q9E370Ez → bg3Z_ZBjStiTvJAHlsPDE}/_clientMiddlewareManifest.js +0 -0
  752. /package/out/_next/static/{BPoacQET3TJr2q9E370Ez → bg3Z_ZBjStiTvJAHlsPDE}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[95789,e=>{var s=e.i(91398),t=e.i(56206),a=e.i(88566),r=e.i(25575),l=e.i(91788);let d=({header:e,body:d,headerCSS:i="",bodyCSS:n="",itemContainerCSS:c="",itemindex:o=1,hideChevron:x=!1})=>{let[m,u]=(0,l.useState)(!1);return(0,s.jsxs)("div",{className:(0,t.U)("mt-3",c),"data-itemindex":o,children:[(0,s.jsxs)("button",{type:"button",onClick:()=>u(!m),className:(0,t.U)("relative cursor-pointer border dark:border-slate-800 bg-surface-input text-text-muted hover:bg-surface-raised w-full max-w-full overflow-hidden",i),children:[(0,s.jsx)("div",{className:"w-full",children:e}),!x&&(0,s.jsx)("span",{className:"px-2",children:m?(0,s.jsx)(r.f,{className:"h-5 w-5"}):(0,s.jsx)(a.f,{className:"h-5 w-5"})})]}),m?(0,s.jsx)("div",{className:(0,t.U)("rounded-lg sm:p-4 xl:p-10 relative overflow-visible",n),children:d}):""]})};e.s(["f",0,({data:e,containerCSS:a="",headerCSS:r="",bodyCSS:l="",itemContainerCSS:i="",hideChevron:n=!1,...c})=>(0,s.jsx)("div",{className:(0,t.U)("my-3",a),...c,children:e.map(({header:e,body:t},a)=>(0,s.jsx)(d,{itemindex:a,header:e,body:t,headerCSS:r,bodyCSS:l,itemContainerCSS:i,hideChevron:n},a))})],95789)},25093,e=>{var s=e.i(91398),t=e.i(91788);e.s(["f",0,({value:e,duration:a=300})=>{let[r,l]=(0,t.useState)(0);return(0,t.useEffect)(()=>{let s,t;if(0===e)return void l(0);let r=d=>{s||(s=d);let i=Math.min((d-s)/a,1);l(Math.round((1-Math.pow(1-i,3))*e)),i<1&&(t=requestAnimationFrame(r))};return t=requestAnimationFrame(r),()=>{t&&cancelAnimationFrame(t)}},[e,a]),(0,s.jsx)("span",{children:r})}])},26690,e=>{var s=e.i(91398),t=e.i(91788),a=e.i(69322);e.s(["f",0,({text:e})=>{let{formatMessage:r}=(0,a.X)(),[l,d]=(0,t.useState)(r({id:"copy_to_clipboard",defaultMessage:"Copy to clipboard"}));return(0,s.jsx)("div",{onClick:()=>{let e=document.createElement("textarea");e.value=document.getElementById("copyable").innerText,e.setAttribute("readonly",""),e.style.position="absolute",e.style.left="-9999px",document.body.appendChild(e);let s=document.getSelection().rangeCount>0&&document.getSelection().getRangeAt(0);e.select(),e.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(e),s&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(s)),d(r({id:"copied",defaultMessage:"Copied"}))},className:"relative inline-flex items-center rounded-md border border-transparent bg-slate-950 px-4 py-2 text-sm font-medium text-white shadow-xs hover:bg-slate-950 focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2",onMouseEnter:()=>d(r({id:"copy_to_clipboard",defaultMessage:"Copy to clipboard"})),children:(0,s.jsxs)("pre",{children:[(0,s.jsx)("span",{children:l}),(0,s.jsx)("code",{id:"copyable",className:"sr-only",children:e})]})})}])},53296,e=>{var s=e.i(91398),t=e.i(74040),t=t,a=e.i(69322);e.s(["f",0,({messageKey:e,defaultMessage:r,values:l,className:d="",showIcon:i=!0})=>{let{formatMessage:n}=(0,a.X)(),c=n({id:e,defaultMessage:r},l);return c?(0,s.jsxs)("div",{className:`flex items-start space-x-1 text-sm text-text-secondary ${d}`,children:[i&&(0,s.jsx)(t.f,{className:"h-4 w-4 mt-0.5 flex-shrink-0"}),(0,s.jsx)("span",{children:c})]}):null}],53296)},82078,e=>{var s=e.i(91398),t=e.i(44112);e.s(["f",0,({title:e=null,description:a})=>(0,s.jsx)("div",{className:"mb-6 p-4 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)(t.f,{className:"w-5 h-5 text-blue-600 dark:text-blue-400 mt-0.5 flex-shrink-0"}),(0,s.jsxs)("div",{children:[e&&(0,s.jsx)("h3",{className:"text-sm font-semibold text-blue-900 dark:text-blue-100 mb-2",children:e}),(0,s.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200 leading-relaxed",children:a})]})]})})])},2194,e=>{var s=e.i(91398),t=e.i(92802),t=t,a=e.i(56206),r=e.i(69322);e.s(["f",0,({message:e,className:l="",Icon:d=null})=>(0,s.jsx)("div",{className:(0,a.U)("rounded-md flex w-full flex-col items-center justify-center min-h-[176px] py-8 border-1 border-dashed border-border-default text-slate-500 dark:text-slate-600",l),children:(0,s.jsxs)("div",{className:"grid items-center justify-center",children:[(0,s.jsx)("div",{className:"flex items-center justify-center text-slate-400 dark:text-slate-600",children:d||(0,s.jsx)(t.f,{className:"h-6 w-6"})}),(0,s.jsx)(r.L,{id:"no_data_message",defaultMessage:"<p>No <span> {message} available</span> </p>",values:{p:e=>(0,s.jsx)("p",{className:"mt-2 m-auto flex items-center justify-center",children:e}),span:e=>(0,s.jsxs)("span",{className:"capitalize ml-1",children:[" ",e," "]}),message:e}})]})})],2194)},76038,e=>{var s=e.i(91398),t=e.i(91788),a=e.i(56206),r=e.i(69322),l=e.i(42469);let d=e=>e?Array.isArray(e)?e:e.toString()?.split(",")?.map(e=>e.trim()):[];e.s(["f",0,({tagList:e,onChange:i,disabled:n=!1,name:c="tag-input",id:o="tag-input",placeholder:x="",selectOptions:m=[],className:u="",buttonText:b="",showTagsInline:h=!0})=>{let{formatMessage:f}=(0,r.X)(),[g,j]=(0,t.useState)(d(e)),[p,N]=(0,t.useState)(""),[v,y]=(0,t.useState)(!1),w=(0,t.useRef)(null);(0,t.useEffect)(()=>{j(d(e))},[e]),(0,t.useEffect)(()=>{let e=e=>{w.current&&!w.current.contains(e.target)&&y(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let S=(0,t.useCallback)(e=>{let s=e.trim(),t=m.find(e=>e.value.toLowerCase()===s.toLowerCase()),a=t?.value||s;if(!g.some(e=>e.toLowerCase()===a.toLowerCase())&&a){let e=[...g,a];j(e),i(e),N(""),y(!1)}},[g,i,m]),C=(0,t.useMemo)(()=>{let e=m.filter(e=>!g.some(s=>s.toLowerCase()===e.value.toLowerCase()));return p?e.filter(e=>e.label.toLowerCase().includes(p.toLowerCase())):e},[m,g,p]),T=p.trim().toLowerCase(),k=!!(T&&!g.some(e=>e.toLowerCase()===T)&&!m.some(e=>e.value.toLowerCase()===T)),E=(0,s.jsxs)("div",{className:"relative",ref:w,children:[(0,s.jsx)("input",{id:o,name:c,type:"text",role:"combobox","aria-expanded":v,"aria-autocomplete":"list",disabled:n,className:(0,a.U)("w-full rounded-md border border-border-default bg-surface-input py-2.5 pl-4 pr-4 text-sm text-text-primary placeholder:text-text-muted shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring",u),placeholder:x,value:p,onChange:e=>{N(e.target.value),y(!0)},onFocus:()=>y(!0),onKeyDown:e=>{"Enter"===e.key&&p.trim()&&(e.preventDefault(),S(C[0]?.value||p.trim()))}}),v&&(k||C.length>0)&&(0,s.jsxs)("ul",{role:"listbox",className:"absolute z-9999999 mt-1 max-h-60 w-full overflow-auto rounded-md bg-surface border border-border-subtle py-1 text-sm shadow-lg",children:[C.map(e=>(0,s.jsx)("li",{role:"option","aria-selected":!1,className:"cursor-pointer select-none py-2 px-4 text-text-primary hover:bg-surface-raised",onMouseDown:s=>{s.preventDefault(),S(e.value)},children:e.label},e.value)),k&&(0,s.jsx)("li",{role:"option","aria-selected":!1,className:"cursor-pointer select-none border-t border-border-subtle py-2 px-4 text-text-primary hover:bg-surface-raised",onMouseDown:e=>{e.preventDefault(),S(p.trim())},children:b||f({id:"add_new_tag",defaultMessage:'Add "{inputValue}"'},{inputValue:p.trim()})})]})]});return h?(0,s.jsxs)(s.Fragment,{children:[E,(0,s.jsx)("div",{className:(0,a.U)("ml-4 flex items-center flex-wrap gap-5",g.length>0&&"mt-1"),children:g?.map(e=>(0,s.jsx)(l.f,{text:e,color:"slate",onClick:()=>(e=>{let s=g.indexOf(e);if(-1!==s){let e=[...g];e.splice(s,1),i(e),j(e)}})(e)},e))})]}):E}])},50647,e=>{var s=e.i(91398),t=e.i(91788);e.s(["f",0,({text:e,children:a})=>{let[r,l]=(0,t.useState)(!1);return(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{onMouseEnter:()=>{l(!0)},onMouseLeave:()=>{l(!1)},children:a}),r&&(0,s.jsx)("div",{className:"tooltip absolute p-2 bg-slate-700 text-white rounded-lg whitespace-nowrap",children:e})]})}])},40762,e=>{var s=e.i(91398),t=e.i(69322),a=e.i(94597),a=a,r=e.i(37369),l=e.i(39382),d=e.i(24608),i=e.i(91412),n=e.i(38322),c=e.i(38187),o=e.i(53576),x=e.i(26917),m=e.i(63529),u=e.i(21623),b=e.i(42469),h=e.i(34948),f=e.i(6634),g=e.i(95789),j=e.i(50647),p=e.i(25093),N=e.i(2194),v=e.i(26690),y=e.i(82078),w=e.i(53296),S=e.i(24994),C=e.i(76038),T=e.i(91788);let k=[{label:"Switzerland",value:"ch"},{label:"Germany",value:"de"},{label:"Austria",value:"at"},{label:"France",value:"fr"},{label:"Italy",value:"it"},{label:"United Kingdom",value:"uk"}],E=()=>{let{formatMessage:e}=(0,t.X)(),[E,L]=(0,T.useState)(null),[D,R]=(0,T.useState)([]),[B,M]=(0,T.useState)(["example","demo"]);return(0,s.jsx)("div",{className:"min-h-screen bg-surface-subtle py-8",children:(0,s.jsxs)("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,s.jsxs)("div",{className:"mb-8 flex items-center justify-between",children:[(0,s.jsx)("h1",{className:"text-3xl font-semibold text-text-primary",children:"Style Guide"}),(0,s.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,s.jsx)(m.f,{narrowNav:!1}),(0,s.jsx)(x.f,{})]})]}),(0,s.jsxs)("div",{className:"space-y-12",children:[(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold text-text-primary mb-6",children:"Design Tokens"}),(0,s.jsx)("p",{className:"text-text-secondary mb-4",children:"Semantic color tokens that adapt to light/dark mode. Toggle the theme to see them switch."}),(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[{name:"--color-surface",cls:"bg-surface",label:"Surface"},{name:"--color-surface-subtle",cls:"bg-surface-subtle",label:"Surface Subtle"},{name:"--color-surface-raised",cls:"bg-surface-raised",label:"Surface Raised"},{name:"--color-surface-input",cls:"bg-surface-input",label:"Surface Input"},{name:"--color-border-default",cls:"bg-border-default",label:"Border"},{name:"--color-border-subtle",cls:"bg-border-subtle",label:"Border Subtle"},{name:"--color-text-primary",cls:"bg-text-primary",label:"Text Primary"},{name:"--color-text-secondary",cls:"bg-text-secondary",label:"Text Secondary"},{name:"--color-text-muted",cls:"bg-text-muted",label:"Text Muted"},{name:"--color-accent",cls:"bg-accent",label:"Accent"},{name:"--color-accent-hover",cls:"bg-accent-hover",label:"Accent Hover"},{name:"--color-danger",cls:"bg-danger",label:"Danger"},{name:"--color-danger-surface",cls:"bg-danger-surface",label:"Danger Surface"},{name:"--color-success",cls:"bg-success",label:"Success"},{name:"--color-warning",cls:"bg-warning",label:"Warning"},{name:"--color-focus-ring",cls:"bg-focus-ring",label:"Focus Ring"},{name:"--color-text-on-accent",cls:"bg-text-on-accent",label:"Text on Accent"}].map(e=>(0,s.jsxs)("div",{className:"flex items-center space-x-3 rounded-lg border border-border-subtle bg-surface p-3",children:[(0,s.jsx)("div",{className:`h-10 w-10 shrink-0 rounded-md border border-border-subtle ${e.cls}`}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm font-medium text-text-primary",children:e.label}),(0,s.jsx)("div",{className:"text-xs font-mono text-text-muted",children:e.name})]})]},e.name))})]}),(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold text-text-primary mb-6",children:"Loading Indicators"}),(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-8 border border-border-subtle",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-secondary mb-4",children:"Loading Indicators"}),(0,s.jsx)(o.f,{})]})]}),(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold text-text-primary mb-6",children:"Color Palette"}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-secondary mb-4",children:"Slate Colors"}),(0,s.jsx)("div",{className:"space-y-3",children:[50,100,200,300,400,500,600,700,800,900].map(e=>(0,s.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,s.jsx)("div",{className:`w-12 h-8 rounded border border-border-default bg-slate-${e}`}),(0,s.jsxs)("span",{className:"text-sm font-mono text-text-secondary",children:["slate-",e]})]},e))})]}),(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-secondary mb-4",children:"Status Colors"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,s.jsx)("div",{className:"w-12 h-8 rounded border border-border-default bg-lime-600"}),(0,s.jsxs)("span",{className:"text-sm font-mono text-text-secondary",children:[(0,s.jsx)("span",{className:"font-medium",children:"Confirmed"})," - lime-600"]})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,s.jsx)("div",{className:"w-12 h-8 rounded border border-border-default bg-amber-600"}),(0,s.jsxs)("span",{className:"text-sm font-mono text-text-secondary",children:[(0,s.jsx)("span",{className:"font-medium",children:"Pending"})," - amber-600"]})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,s.jsx)("div",{className:"w-12 h-8 rounded border border-border-default bg-sky-600"}),(0,s.jsxs)("span",{className:"text-sm font-mono text-text-secondary",children:[(0,s.jsx)("span",{className:"font-medium",children:"Open"})," - sky-600"]})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,s.jsx)("div",{className:"w-12 h-8 rounded border border-border-default bg-emerald-600"}),(0,s.jsxs)("span",{className:"text-sm font-mono text-text-secondary",children:[(0,s.jsx)("span",{className:"font-medium",children:"Fulfilled"})," - emerald-600"]})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,s.jsx)("div",{className:"w-12 h-8 rounded border border-border-default bg-rose-600"}),(0,s.jsxs)("span",{className:"text-sm font-mono text-text-secondary",children:[(0,s.jsx)("span",{className:"font-medium",children:"Rejected/Error"})," - rose-600"]})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,s.jsx)("div",{className:"w-12 h-8 rounded border border-border-default bg-slate-600"}),(0,s.jsxs)("span",{className:"text-sm font-mono text-text-secondary",children:[(0,s.jsx)("span",{className:"font-medium",children:"Default/Neutral"})," - slate-600"]})]})]})]})]})]}),(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold text-text-primary mb-6",children:"Status Badges"}),(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:[(0,s.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,s.jsx)(b.f,{text:"CONFIRMED",color:"lime",className:"rounded-md uppercase"}),(0,s.jsx)(b.f,{text:"PENDING",color:"amber",className:"rounded-md uppercase"}),(0,s.jsx)(b.f,{text:"OPEN",color:"sky",className:"rounded-md uppercase"}),(0,s.jsx)(b.f,{text:"FULFILLED",color:"emerald",className:"rounded-md uppercase"}),(0,s.jsx)(b.f,{text:"REJECTED",color:"rose",className:"rounded-md uppercase"}),(0,s.jsx)(b.f,{text:"DEFAULT",color:"slate",className:"rounded-md uppercase"})]}),(0,s.jsxs)("div",{className:"mt-6",children:[(0,s.jsx)("h4",{className:"text-sm font-medium text-text-secondary mb-3",children:"Badge Variations"}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,s.jsx)(b.f,{text:"With Dot",color:"emerald",dotted:!0}),(0,s.jsx)(b.f,{text:"Square Badge",color:"amber",square:!0}),(0,s.jsx)(b.f,{text:"Closeable",color:"rose",onClick:()=>alert("Badge closed!")}),(0,s.jsx)(b.f,{text:"Rounded",color:"sky"})]})]})]})]}),(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold text-text-primary mb-6",children:"Tag Lists"}),(0,s.jsx)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"text-sm font-medium text-text-secondary mb-3",children:"TagList with Tags"}),(0,s.jsx)(h.f,{defaultValue:["Product","Electronics","Gaming","Accessories"],onSubmit:e=>console.log("Tags submitted:",e),enableEdit:!0})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"text-sm font-medium text-text-secondary mb-3",children:"TagList without Tags (Empty State)"}),(0,s.jsx)(h.f,{defaultValue:[],onSubmit:e=>console.log("Tags submitted:",e),enableEdit:!0})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"text-sm font-medium text-text-secondary mb-3",children:"TagList Read-Only (No Edit Button)"}),(0,s.jsx)(h.f,{defaultValue:["Read Only","Display Only","No Edit"],onSubmit:e=>console.log("Tags submitted:",e),enableEdit:!1})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"text-sm font-medium text-text-secondary mb-3",children:"TagList with Many Tags (Wrapping)"}),(0,s.jsx)(h.f,{defaultValue:["Technology","Software","Development","Frontend","React","TypeScript","Tailwind CSS","UI/UX","Design System","Component Library"],onSubmit:e=>console.log("Tags submitted:",e),enableEdit:!0})]})]})})]}),(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold text-text-primary mb-6",children:"Typography"}),(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle space-y-4",children:[(0,s.jsx)("h1",{className:"text-4xl font-semibold text-text-primary",children:"Heading 1 - 4xl Semibold"}),(0,s.jsx)("h2",{className:"text-3xl font-semibold text-text-primary",children:"Heading 2 - 3xl Semibold"}),(0,s.jsx)("h3",{className:"text-2xl font-semibold text-text-primary",children:"Heading 3 - 2xl Semibold"}),(0,s.jsx)("h4",{className:"text-xl font-semibold text-text-primary",children:"Heading 4 - xl Semibold"}),(0,s.jsx)("h5",{className:"text-lg font-medium text-text-primary",children:"Heading 5 - lg Medium"}),(0,s.jsx)("h6",{className:"text-base font-medium text-text-primary",children:"Heading 6 - base Medium"}),(0,s.jsx)("p",{className:"text-base text-text-secondary",children:"Body text - Regular paragraph text with good readability and contrast."}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Small text - Used for captions, metadata, and secondary information."})]})]}),(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold text-text-primary mb-6",children:"Button System"}),(0,s.jsxs)("div",{className:"space-y-8",children:[(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-secondary mb-4",children:"Button Variants"}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[(0,s.jsx)(u.f,{variant:"primary",text:"Primary"}),(0,s.jsx)(u.f,{variant:"secondary",text:"Secondary"}),(0,s.jsx)(u.f,{variant:"tertiary",text:"Tertiary"}),(0,s.jsx)(u.f,{variant:"quaternary",text:"Quaternary"}),(0,s.jsx)(u.f,{variant:"danger",text:"Danger"}),(0,s.jsx)(u.f,{variant:"ghost",text:"Ghost"}),(0,s.jsx)(u.f,{variant:"success",text:"Success"}),(0,s.jsx)(u.f,{variant:"neutral",text:"Neutral"}),(0,s.jsx)(u.f,{variant:"input",text:"Input Style"})]})]}),(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-secondary mb-4",children:"Button Sizes"}),(0,s.jsxs)("div",{className:"flex items-end space-x-4",children:[(0,s.jsx)(u.f,{size:"xs",text:"Extra Small"}),(0,s.jsx)(u.f,{size:"sm",text:"Small"}),(0,s.jsx)(u.f,{size:"md",text:"Medium"}),(0,s.jsx)(u.f,{size:"lg",text:"Large"})]})]}),(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-secondary mb-4",children:"Button States"}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[(0,s.jsx)(u.f,{text:"Normal"}),(0,s.jsx)(u.f,{text:"Disabled",disabled:!0}),(0,s.jsx)(u.f,{text:"Loading",loading:!0}),(0,s.jsx)(u.f,{text:"With Icon",icon:(0,s.jsx)(r.f,{className:"w-4 h-4"})})]})]}),(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-secondary mb-4",children:"Buttons with Icons"}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[(0,s.jsx)(u.f,{text:"Add Item",icon:(0,s.jsx)(r.f,{className:"w-4 h-4"}),variant:"primary"}),(0,s.jsx)(u.f,{text:"Delete",icon:(0,s.jsx)(l.f,{className:"w-4 h-4"}),variant:"danger"}),(0,s.jsx)(u.f,{text:"Like",iconRight:(0,s.jsx)(a.f,{className:"w-4 h-4"}),variant:"ghost"})]})]}),(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-secondary mb-4",children:"Button Shapes"}),(0,s.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,s.jsx)(u.f,{text:"Sharp",rounded:"none"}),(0,s.jsx)(u.f,{text:"Small Radius",rounded:"sm"}),(0,s.jsx)(u.f,{text:"Default",rounded:"md"}),(0,s.jsx)(u.f,{text:"Large Radius",rounded:"lg"}),(0,s.jsx)(u.f,{text:"Pill",rounded:"full"})]})]}),(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-secondary mb-4",children:"Full Width Button"}),(0,s.jsx)(u.f,{text:"Full Width Button",fullWidth:!0})]}),(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-secondary mb-4",children:"Application Style Buttons"}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-4",children:[(0,s.jsx)(u.f,{variant:"success",icon:(0,s.jsx)(n.f,{className:"h-4 w-4"}),iconRight:(0,s.jsx)(c.f,{className:"h-4 w-4"}),text:"Activated",rounded:"lg"}),(0,s.jsx)(u.f,{variant:"neutral",icon:(0,s.jsx)(n.f,{className:"h-4 w-4"}),iconRight:(0,s.jsx)(c.f,{className:"h-4 w-4"}),text:"Root",rounded:"lg"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(u.f,{variant:"input",text:"Display Order",rounded:"lg"}),(0,s.jsx)(u.f,{variant:"input",text:"10",size:"sm",rounded:"lg",className:"w-16"})]}),(0,s.jsx)(u.f,{variant:"secondary",text:"Mark as Base",rounded:"lg"}),(0,s.jsx)(u.f,{variant:"danger",icon:(0,s.jsx)(d.f,{className:"h-4 w-4"}),text:"Delete",rounded:"lg"})]})]}),(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-secondary mb-4",children:"Icon Buttons"}),(0,s.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,s.jsxs)("div",{className:"flex flex-col items-center space-y-2",children:[(0,s.jsx)(u.f,{variant:"danger",size:"xs",rounded:"full",icon:(0,s.jsx)(l.f,{className:"h-5 w-5"}),onClick:()=>alert("Delete clicked!"),ariaLabel:"Delete"}),(0,s.jsx)("span",{className:"text-xs text-text-muted",children:"Delete"})]}),(0,s.jsxs)("div",{className:"flex flex-col items-center space-y-2",children:[(0,s.jsx)(u.f,{variant:"danger",size:"xs",rounded:"full",icon:(0,s.jsx)(d.f,{className:"h-5 w-5"}),onClick:()=>alert("Close clicked!"),ariaLabel:"Close"}),(0,s.jsx)("span",{className:"text-xs text-text-muted",children:"Close"})]}),(0,s.jsxs)("div",{className:"flex flex-col items-center space-y-2",children:[(0,s.jsx)(u.f,{variant:"ghost",size:"xs",rounded:"full",icon:(0,s.jsx)(i.f,{className:"h-5 w-5"}),onClick:()=>alert("View clicked!"),ariaLabel:"View"}),(0,s.jsx)("span",{className:"text-xs text-text-muted",children:"View"})]}),(0,s.jsxs)("div",{className:"flex flex-col items-center space-y-2",children:[(0,s.jsx)(u.f,{variant:"danger",icon:(0,s.jsx)(d.f,{className:"h-5 w-5"}),text:"Delete",onClick:()=>alert("Header delete clicked!")}),(0,s.jsx)("span",{className:"text-xs text-text-muted",children:"Header Delete"})]})]})]})]})]}),(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold text-text-primary mb-6",children:"Form Elements"}),(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-text-secondary mb-2",children:"Text Input"}),(0,s.jsx)("input",{type:"text",placeholder:"Enter text here...",className:"w-full px-3 py-2 border border-border-default rounded-md bg-surface text-text-primary focus:ring-2 focus:ring-focus-ring focus:border-transparent"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-text-secondary mb-2",children:"Select"}),(0,s.jsxs)("select",{className:"w-full px-3 py-2 border border-border-default rounded-md bg-surface text-text-primary focus:ring-2 focus:ring-focus-ring focus:border-transparent",children:[(0,s.jsx)("option",{children:"Option 1"}),(0,s.jsx)("option",{children:"Option 2"}),(0,s.jsx)("option",{children:"Option 3"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-text-secondary mb-2",children:"Textarea"}),(0,s.jsx)("textarea",{placeholder:"Enter longer text here...",rows:3,className:"w-full px-3 py-2 border border-border-default rounded-md bg-surface text-text-primary focus:ring-2 focus:ring-focus-ring focus:border-transparent"})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)("input",{type:"checkbox",id:"checkbox",className:"rounded border-border-default text-slate-800 focus:ring-focus-ring"}),(0,s.jsx)("label",{htmlFor:"checkbox",className:"text-sm text-text-secondary",children:"Checkbox option"})]})]})]}),(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold text-text-primary mb-6",children:"Combobox"}),(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-secondary mb-4",children:"Single Select"}),(0,s.jsx)("div",{className:"max-w-sm",children:(0,s.jsx)(S.f,{options:k,value:E,onChange:e=>L(e),placeholder:"Search countries..."})}),E&&(0,s.jsxs)("p",{className:"mt-2 text-sm text-text-muted",children:["Selected: ",E]})]}),(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-secondary mb-4",children:"Multi Select"}),(0,s.jsx)("div",{className:"max-w-sm",children:(0,s.jsx)(S.f,{multiple:!0,options:k,value:D,onChange:e=>R(e),placeholder:"Search countries..."})})]})]})]}),(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold text-text-primary mb-6",children:"Tag Input"}),(0,s.jsx)("div",{className:"space-y-6",children:(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-secondary mb-4",children:"Creatable Tags"}),(0,s.jsx)("div",{className:"max-w-sm",children:(0,s.jsx)(C.f,{tagList:B,onChange:M,placeholder:"Type and press Enter...",selectOptions:k})})]})})]}),(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold text-text-primary mb-6",children:"Theme Controls"}),(0,s.jsx)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:(0,s.jsxs)("div",{className:"flex items-center space-x-6",children:[(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)("span",{className:"text-sm font-medium text-text-secondary",children:"Theme Toggle:"}),(0,s.jsx)(x.f,{})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)("span",{className:"text-sm font-medium text-text-secondary",children:"Language Toggle:"}),(0,s.jsx)(m.f,{narrowNav:!1})]})]})})]}),(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold text-text-primary mb-6",children:"Toggle"}),(0,s.jsx)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:(0,s.jsxs)("div",{className:"flex items-center gap-8",children:[(0,s.jsx)(f.f,{toggleText:"Active Filter",toggleKey:"active"}),(0,s.jsx)(f.f,{toggleText:"Disabled Toggle",toggleKey:"disabled",disabled:!0})]})})]}),(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold text-text-primary mb-6",children:"Accordion"}),(0,s.jsx)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:(0,s.jsx)(g.f,{data:[{header:"Section 1",body:(0,s.jsx)("p",{className:"text-text-secondary",children:"Content for section 1"})},{header:"Section 2",body:(0,s.jsx)("p",{className:"text-text-secondary",children:"Content for section 2"})},{header:"Section 3",body:(0,s.jsx)("p",{className:"text-text-secondary",children:"Content for section 3"})}]})})]}),(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold text-text-primary mb-6",children:"Animated Counter"}),(0,s.jsx)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:(0,s.jsxs)("div",{className:"flex items-center gap-8",children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"text-3xl font-bold text-text-primary",children:(0,s.jsx)(p.f,{value:42})}),(0,s.jsx)("span",{className:"text-sm text-slate-500",children:"Count: 42"})]}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"text-3xl font-bold text-text-primary",children:(0,s.jsx)(p.f,{value:1234})}),(0,s.jsx)("span",{className:"text-sm text-slate-500",children:"Count: 1234"})]})]})})]}),(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold text-text-primary mb-6",children:"Utility Components"}),(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-secondary mb-4",children:"NoData"}),(0,s.jsx)(N.f,{message:"items"})]}),(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-secondary mb-4",children:"CopyableText"}),(0,s.jsx)(v.f,{text:"abc123-def456-ghi789"})]}),(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-secondary mb-4",children:"ToolTip"}),(0,s.jsx)(j.f,{text:"This is a tooltip message",children:(0,s.jsx)("span",{className:"text-sm text-text-secondary underline cursor-help",children:"Hover me for tooltip"})})]}),(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-secondary mb-4",children:"InfoTextBanner"}),(0,s.jsx)(y.f,{description:"This is an informational banner message."})]}),(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-secondary mb-4",children:"HelpText"}),(0,s.jsx)(w.f,{messageKey:"styleguide_help_example",defaultMessage:"This is a help text that provides additional context."})]})]})]}),(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold text-text-primary mb-6",children:"Cards & Containers"}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle shadow-sm",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-primary mb-2",children:"Standard Card"}),(0,s.jsx)("p",{className:"text-text-secondary",children:"This is a standard card with border, shadow, and rounded corners."})]}),(0,s.jsxs)("div",{className:"bg-surface rounded-lg p-6 border border-border-subtle shadow-lg",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-text-primary mb-2",children:"Elevated Card"}),(0,s.jsx)("p",{className:"text-text-secondary",children:"This card has a larger shadow for more emphasis."})]})]})]})]})]})})};E.getLayout=e=>e,e.s(["default",0,E],40762)},88566,25575,e=>{var s=e.i(91788);let t=s.forwardRef(function({title:e,titleId:t,...a},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},a),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))});e.s(["f",0,t],88566);let a=s.forwardRef(function({title:e,titleId:t,...a},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},a),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z",clipRule:"evenodd"}))});e.s(["f",0,a],25575)},44112,e=>{var s=e.i(39775);e.s(["f",()=>s.f])},39382,e=>{var s=e.i(56859);e.s(["f",()=>s.f])}],5628,(e,s,t)=>{let a="/styleguide";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(40762)]),s.hot&&s.hot.dispose(function(){window.__NEXT_P.push([a])})}]);
@@ -1,46 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[64481,e=>{var t=e.i(91788),r=e.i(30943);e.s(["f",0,({children:e,container:n=null,className:i=""})=>{let s=(0,t.useRef)(null),[o,a]=(0,t.useState)(!1);return((0,t.useEffect)(()=>{let e=document.createElement("div");i&&(e.className=i),s.current=e;let t=n||document.body;return t.appendChild(e),a(!0),()=>{s.current&&t.contains(s.current)&&t.removeChild(s.current)}},[n,i]),o&&s.current)?(0,r.createPortal)(e,s.current):null}])},11056,e=>{var t=e.i(91398),r=e.i(91788),n=e.i(5505),i=e.i(57561);e.s(["f",0,({children:e,onlyFull:s=!1})=>{let{languageDialectList:o,selectedLocale:a,setSelectedLocale:l}=(0,i.f)(),d=(0,r.useContext)(n.W),u=o.filter(e=>!s||e.isoCode.includes("-"));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`w-fit mt-5 mb-3 ${d?"ml-5":""}`,children:(0,t.jsx)("select",{id:"locale-wrapper",className:"cursor-pointer rounded-md border-1 border-border-default py-1 pr-8 text-sm lg:py-1 lg:pr-10 text-black dark:text-white dark:bg-slate-800 shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring",value:a||"",onChange:e=>{e.stopPropagation(),l(e.target.value)},children:u?.map(e=>(0,t.jsx)("option",{value:e.isoCode,children:e.isoCode},e._id))})}),(0,t.jsx)("div",{children:r.default.cloneElement(e)})]})}])},3095,e=>{var t=e.i(91398),r=e.i(91788),n=e.i(69322),i=e.i(86712),s=e.i(76842),o=e.i(24557),a=e.i(64481);e.s(["f",0,({onEdit:e,onDelete:l,editLabel:d,deleteLabel:u,showEdit:c=!0,showDelete:f=!0})=>{let{formatMessage:h}=(0,n.X)(),[p,m]=(0,r.useState)(!1),[g,b]=(0,r.useState)({top:0,left:0}),v=(0,r.useRef)(null),x=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{v.current&&!v.current.contains(e.target)&&m(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let y=(e,t)=>{e.stopPropagation(),e.preventDefault(),t&&t(),m(!1)};return 0===[c&&e,f&&l].filter(Boolean).length?null:(0,t.jsxs)("div",{className:"flex justify-end w-full",children:[(0,t.jsx)("button",{ref:x,type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),p||(()=>{if(!x.current)return;let e=x.current.getBoundingClientRect(),t=e.bottom+4,r=e.right-192;r<8&&(r=8),t+80>window.innerHeight-8&&(t=e.top-80-4),b({top:t,left:r})})(),m(!p)},className:"flex items-center justify-center w-8 h-8 rounded-md hover:bg-surface-raised transition-colors","aria-label":h({id:"table_actions_menu",defaultMessage:"Actions menu"}),children:(0,t.jsx)(i.f,{className:"w-5 h-5 text-text-muted"})}),p&&(0,t.jsx)(a.f,{children:(0,t.jsx)("div",{ref:v,className:"fixed w-48 bg-surface rounded-md shadow-xl border border-border-subtle z-[9999]",style:{top:g.top,left:g.left},children:(0,t.jsxs)("div",{className:"py-1",children:[c&&e&&(0,t.jsxs)("button",{type:"button",onClick:t=>y(t,e),className:"flex items-center w-full px-4 py-2 text-sm text-text-secondary hover:bg-surface-raised transition-colors",children:[(0,t.jsx)(s.f,{className:"mr-3 h-5 w-5"}),d||h({id:"edit",defaultMessage:"Edit"})]}),f&&l&&(0,t.jsxs)("button",{type:"button",onClick:e=>y(e,l),className:"flex items-center w-full px-4 py-2 text-sm text-rose-500 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/20 transition-colors",children:[(0,t.jsx)(o.f,{className:"mr-3 h-5 w-5"}),u||h({id:"delete",defaultMessage:"Delete"})]})]})})})]})}])},78193,e=>{var t=e.i(91788),r=e.i(69322),n=e.i(30086);e.i(51523);var i=e.i(19518);e.s(["f",0,({validate:e,process:s})=>{let{addWork:o}=(0,n.f)(),[a,l]=(0,t.useState)(!1),d=(0,r.X)();return{isImporting:a,importItems:async t=>{let r={success:0,failed:0,errors:[]};try{l(!0);let n=e(t,d);n.length>0&&(r.failed+=n.length,r.errors.push(...n));let a=await s(t);for(let e=0;e<a.length;e+=100){let t=a.slice(e,e+100);try{await o({type:i.j.BulkImport,input:{createShouldUpsertIfIDExists:!0,events:t}}),r.success+=t.length}catch(n){console.error("Batch import failed:",n),r.failed+=t.length,r.errors.push(`Batch starting at index ${e} failed: ${n.message}`)}}return l(!1),r}catch(e){return console.error("Import failed:",e),l(!1),r.errors.push(e.message||"Unknown error"),r}}}}])},16785,e=>{e.s(["f",0,(e,t)=>{let r=new Blob([e],{type:"text/csv;charset=utf-8;"}),n=document.createElement("a");if(void 0!==n.download){let e=URL.createObjectURL(r);n.setAttribute("href",e),n.setAttribute("download",t),n.style.visibility="hidden",document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(e)}}])},22003,e=>{e.s(["f",0,e=>{if("string"==typeof e&&e.trim())try{let t=JSON.parse(e);return t&&"object"==typeof t&&Object.keys(t).length?t:void 0}catch{return}}])},83147,e=>{let t=e=>e&&e?.split(",").reduce((e,t)=>{let[r=null,n=null]=(t||"")?.split("_")||[];return{...e,[r]:n}},null)||{};e.s(["S",0,(...e)=>e.filter(Boolean).join(" "),"R",0,e=>Object.entries(t(e))?.map(([e,t])=>({key:e,value:t})),"D",0,e=>e?.label&&e?.version?`${e.label} ${e.version}`:"","v",0,t,"Q",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"region"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"j",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"currency"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"I",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"language"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"_",0,(e,t,r)=>{let n;return n=r?{...e,[r]:t}:e,Object.keys(n)?.map(e=>[e,n[e]].join("="))?.join("&")},"d",0,()=>({formatPrice:e=>{if(!e?.currencyCode)return"n/a";if(e?.amount===void 0||e?.amount===null)return"";let{amount:t,currencyCode:r}=e||{};return new Intl.NumberFormat(navigator.language,{style:"currency",currency:r}).format(t/100)}})])},80294,e=>{var t=e.i(59080);let r=t.a`
2
- fragment FilterFragment on Filter {
3
- _id
4
- updated
5
- created
6
- key
7
- isActive
8
- type
9
- options {
10
- _id
11
- texts {
12
- _id
13
- title
14
- subtitle
15
- locale
16
- }
17
- value
18
- }
19
- }
20
- `;e.s(["f",0,r])},54680,e=>{var t=e.i(59080),r=e.i(32171),n=e.i(80294);let i=t.a`
21
- query Filters(
22
- $queryString: String
23
- $limit: Int
24
- $offset: Int
25
- $includeInactive: Boolean
26
- $sort: [SortOptionInput!]
27
- ) {
28
- filters(
29
- queryString: $queryString
30
- limit: $limit
31
- offset: $offset
32
- includeInactive: $includeInactive
33
- sort: $sort
34
- ) {
35
- ...FilterFragment
36
- texts {
37
- _id
38
- title
39
- subtitle
40
- locale
41
- }
42
- }
43
- filtersCount(includeInactive: $includeInactive, queryString: $queryString)
44
- }
45
- ${n.f}
46
- `;e.s(["f",0,({queryString:e="",limit:t=20,offset:n=0,includeInactive:s=!0,sort:o=[],forceLocale:a=""}={})=>{let{data:l,loading:d,error:u,fetchMore:c,client:f}=(0,r.f)(i,{context:{headers:{forceLocale:a}},variables:{queryString:e,limit:t,offset:n,includeInactive:s,sort:o}}),h=l?.filters||[],p=l?.filtersCount,m=h?.length<p;return{filters:h,filtersCount:p,hasMore:m,loading:d,error:u,loadMore:()=>{c({variables:{offset:h?.length}})},client:f}}])},15971,e=>{var t=e.i(91398),r=e.i(69322);e.s(["f",0,({onOkClick:e,onCancelClick:n,okText:i=null,cancelText:s=null,headerText:o=null,message:a=null,icon:l=null,close:d=null,loading:u=!1})=>{let{formatMessage:c}=(0,r.X)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sm:flex sm:items-start",children:[l||(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900/30 sm:mx-0 sm:h-10 sm:w-10",children:(0,t.jsx)("svg",{className:"h-6 w-6 text-danger",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,t.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,t.jsx)("h3",{className:"text-lg text-text-primary",id:"modal-title",children:o||c({id:"warning",defaultMessage:"Warning!"})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("p",{className:"text-sm text-text-muted",children:a||c({id:"are_you_sure",defaultMessage:"Are you sure?"})})})]})]}),(0,t.jsxs)("div",{className:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse",children:[(0,t.jsx)("button",{id:"danger_continue",onClick:e,disabled:u,"aria-busy":u,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-rose-600 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-rose-700 focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:ml-3 sm:w-auto sm:text-sm",children:i||c({id:"continue",defaultMessage:"Continue"})}),(0,t.jsx)("button",{id:"danger_cancel",onClick:n||d,disabled:u,type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-border-default bg-surface px-4 py-2 text-base font-medium text-text-secondary shadow-xs hover:bg-surface-raised focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",children:s||c({id:"cancel",defaultMessage:"Cancel"})})]})]})}])},42912,e=>{var t=e.i(91398),r=e.i(69322);e.s(["f",0,({result:e,title:n,entityName:i="items"})=>{let{formatMessage:s}=(0,r.X)();return(0,t.jsxs)("div",{className:"p-4",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold mb-4",children:n||s({id:"import_results",defaultMessage:"Import Results"})}),(0,t.jsx)("p",{className:"text-green-600",children:s({id:"items_imported",defaultMessage:"{count} {entityName} imported successfully"},{count:e?.success,entityName:i})}),e?.failed>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-red-600 mt-2",children:s({id:"items_failed",defaultMessage:"{count} {entityName} failed to import"},{count:e?.failed,entityName:i})}),(0,t.jsxs)("div",{className:"mt-2 max-h-40 overflow-y-auto",children:[e.errors.slice(0,10).map((e,r)=>(0,t.jsx)("p",{className:"text-sm text-red-500",children:e},r)),e.errors.length>10&&(0,t.jsxs)("p",{className:"text-sm text-gray-500",children:["... and ",e.errors.length-10," more errors"]})]})]})]})}])},6607,e=>{var t=e.i(91788),r=e.i(6444);e.s(["f",0,()=>(0,t.useContext)(r.f)])},25705,92276,e=>{let t,r,n,i;var s=e.i(91788);let o=s.forwardRef(function({title:e,titleId:t,...r},n){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M4.5 2A1.5 1.5 0 0 0 3 3.5v13A1.5 1.5 0 0 0 4.5 18h11a1.5 1.5 0 0 0 1.5-1.5V7.621a1.5 1.5 0 0 0-.44-1.06l-4.12-4.122A1.5 1.5 0 0 0 11.378 2H4.5Zm2.25 8.5a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Zm0 3a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Z",clipRule:"evenodd"}))});e.s(["f",0,o],25705);var a=e.i(91398),l=e.i(86567),d=e.i(45229),u=e.i(30943),c=e.i(72016),f=e.i(59146),h=e.i(29672),p=e.i(60374),m=e.i(26171),g=e.i(80150),b=e.i(93481),v=e.i(71147),x=e.i(73483),y=e.i(64728),_=e.i(15067),k=e.i(68327),w=e.i(87264),O=e.i(76925),S=e.i(41888),E=e.i(99030),R=e.i(4067),C=e.i(8404),I=e.i(56833),j=e.i(55367);let L=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function T(e){var t,r;let n=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!j.F(i))return n;let s=!1;for(let e of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),s=!0;let o=s?null!=(r=i.innerText)?r:"":n;return L.test(o)&&(o=o.replace(L,"")),o}var D=e.i(98294),A=e.i(80281),F=e.i(60360),N=e.i(15503),M=e.i(28708),P=e.i(48714),B=e.i(96061),z=e.i(96694),$=e.i(31774),U=e.i(59778),q=e.i(87706),V=e.i(60004),K=e.i(65383),W=e.i(47105),Q=e.i(26417),H=e.i(80795),Z=e.i(74664),J=e.i(72381),X=e.i(78270),G=e.i(9769),Y=e.i(62750),ee=e.i(14929),et=e.i(61614),er=Object.defineProperty,en=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?er(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,r},ei=((t=ei||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),es=((r=es||{})[r.Single=0]="Single",r[r.Multi=1]="Multi",r),eo=((n=eo||{})[n.Pointer=0]="Pointer",n[n.Other=1]="Other",n),ea=((i=ea||{})[i.OpenListbox=0]="OpenListbox",i[i.CloseListbox=1]="CloseListbox",i[i.GoToOption=2]="GoToOption",i[i.Search=3]="Search",i[i.ClearSearch=4]="ClearSearch",i[i.SelectOption=5]="SelectOption",i[i.RegisterOptions=6]="RegisterOptions",i[i.UnregisterOptions=7]="UnregisterOptions",i[i.SetButtonElement=8]="SetButtonElement",i[i.SetOptionsElement=9]="SetOptionsElement",i[i.SortOptions=10]="SortOptions",i[i.MarkButtonAsMoved=11]="MarkButtonAsMoved",i);function el(e,t=e=>e){let r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=(0,K.T)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return -1===i&&(i=null),{options:n,activeOptionIndex:i}}let ed={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?et.L.Tracked((0,et.Q)(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:q.b.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:t}},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let r=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,i=e.options.findIndex(e=>n(e.dataRef.current.value));return -1!==i&&(r=i),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:r,__demoMode:!1,buttonPositionState:et.L.Idle}},2(e,t){var r,n,i,s,o;if(e.dataRef.current.disabled||1===e.listboxState)return e;let a={...e,searchQuery:"",activationTrigger:null!=(r=t.trigger)?r:1,__demoMode:!1};if(t.focus===q.b.Nothing)return{...a,activeOptionIndex:null};if(t.focus===q.b.Specific)return{...a,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===q.b.Previous){let r=e.activeOptionIndex;if(null!==r){let s=e.options[r].dataRef.current.domRef,o=(0,q.j)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.options[o].dataRef.current.domRef;if((null==(n=s.current)?void 0:n.previousElementSibling)===t.current||(null==(i=t.current)?void 0:i.previousElementSibling)===null)return{...a,activeOptionIndex:o}}}}else if(t.focus===q.b.Next){let r=e.activeOptionIndex;if(null!==r){let n=e.options[r].dataRef.current.domRef,i=(0,q.j)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.options[i].dataRef.current.domRef;if((null==(s=n.current)?void 0:s.nextElementSibling)===t.current||(null==(o=t.current)?void 0:o.nextElementSibling)===null)return{...a,activeOptionIndex:i}}}}let l=el(e),d=(0,q.j)(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...a,...l,activeOptionIndex:d}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=+(""===e.searchQuery),n=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))}),s=i?e.options.indexOf(i):-1;return -1===s||s===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:s,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:e=>0===e.dataRef.current.mode?{...e,frozenValue:!0}:{...e},6:(e,t)=>{let r=e.options.concat(t.options),n=e.activeOptionIndex;if(e.pendingFocus.focus!==q.b.Nothing&&(n=(0,q.j)(e.pendingFocus,{resolveItems:()=>r,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=r.findIndex(e=>null==t?void 0:t(e.dataRef.current.value));-1!==e&&(n=e)}}return{...e,options:r,activeOptionIndex:n,pendingFocus:{focus:q.b.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let r=e.options,n=[],i=new Set(t.options);for(let[e,t]of r.entries())if(i.has(t.id)&&(n.push(e),i.delete(t.id),0===i.size))break;if(n.length>0)for(let e of(r=r.slice(),n.reverse()))r.splice(e,1);return{...e,options:r,activationTrigger:1}},8:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},9:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},10:e=>e.pendingShouldSort?{...e,...el(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:et.L.Moved}};class eu extends ee.${constructor(e){super(e),en(this,"actions",{onChange:e=>{let{onChange:t,compare:r,mode:n,value:i}=this.state.dataRef.current;return(0,Q.f)(n,{0:()=>null==t?void 0:t(e),1:()=>{let n=i.slice(),s=n.findIndex(t=>r(t,e));return -1===s?n.push(e):n.splice(s,1),null==t?void 0:t(n)}})},registerOption:(0,ee.W)(()=>{let e=[],t=new Set;return[(r,n)=>{t.has(n)||(t.add(n),e.push({id:r,dataRef:n}))},()=>(t.clear(),this.send({type:6,options:e.splice(0)}))]}),unregisterOption:(0,ee.W)(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]}),goToOption:(0,ee.W)(()=>{let e=null;return[(t,r)=>{e={type:2,...t,trigger:r}},()=>e&&this.send(e)]}),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{var e;if(null!==this.state.activeOptionIndex){let{dataRef:e}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(e.current.value)}else 0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(e=this.state.buttonElement)||e.focus({preventScroll:!0}))},selectOption:e=>{this.send({type:5,value:e})},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:8,element:e})},setOptionsElement:e=>{this.send({type:9,element:e})}}),en(this,"selectors",{activeDescendantId(e){var t;let r=e.activeOptionIndex,n=e.options;return null===r||null==(t=n[r])?void 0:t.id},isActive(e,t){var r;let n=e.activeOptionIndex,i=e.options;return null!==n&&(null==(r=i[n])?void 0:r.id)===t},hasFrozenValue:e=>e.frozenValue,shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let e=this.state.id,t=$.l.get(null);this.disposables.add(t.on($.R.Push,r=>{t.selectors.isTop(r,e)||0!==this.state.listboxState||this.actions.closeListbox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add((0,et.Y)(t.buttonElement,t.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(e,t)=>{var r;this.actions.onChange(t.value),0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(r=this.state.buttonElement)||r.focus({preventScroll:!0}))})}static new({id:e,__demoMode:t=!1}){return new eu({id:e,dataRef:{current:{}},listboxState:+!t,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:q.b.Nothing},frozenValue:!1,__demoMode:t,buttonPositionState:et.L.Idle})}reduce(e,t){return(0,Q.f)(t.type,ed,e,t)}}var ec=e.i(21867);let ef=(0,s.createContext)(null);function eh(e){let t=(0,s.useContext)(ef);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ep),t}return t}function ep({id:e,__demoMode:t=!1}){let r=(0,s.useMemo)(()=>eu.new({id:e,__demoMode:t}),[]);return(0,ec.f)(()=>r.dispose()),r}let em=(0,s.createContext)(null);function eg(e){let t=(0,s.useContext)(em);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eg),t}return t}em.displayName="ListboxDataContext";let eb=s.Fragment,ev=(0,s.createContext)(!1),ex=Z.J.RenderStrategy|Z.J.Static,ey=s.Fragment,e_=Object.assign((0,Z.t)(function(e,t){let r=(0,s.useId)(),n=(0,F.f)(),{value:i,defaultValue:o,form:a,name:l,onChange:d,by:u,invalid:c=!1,disabled:m=n||!1,horizontal:g=!1,multiple:b=!1,__demoMode:v=!1,...x}=e,_=(0,I.V)(t),k=(0,p.f)(o),[O=b?[]:void 0,S]=(0,h.f)(i,d,k),E=ep({id:r,__demoMode:v}),R=(0,s.useRef)({static:!1,hold:!1}),j=(0,s.useRef)(new Map),L=(0,f.f)(u),T=(0,s.useCallback)(e=>(0,Q.f)(D.mode,{[es.Multi]:()=>O.some(t=>L(t,e)),[es.Single]:()=>L(O,e)}),[O]),D=(0,C.f)({value:O,disabled:m,invalid:c,mode:b?es.Multi:es.Single,orientation:g?"horizontal":"vertical",onChange:S,compare:L,isSelected:T,optionsPropsRef:R,listRef:j});(0,y.f)(()=>{E.state.dataRef.current=D},[D]);let A=(0,U.f)(E,e=>e.listboxState),P=$.l.get(null),B=(0,U.f)(P,(0,s.useCallback)(e=>P.selectors.isTop(e,r),[P,r])),[q,V]=(0,U.f)(E,e=>[e.buttonElement,e.optionsElement]);(0,w.f)(B,[q,V],(e,t)=>{E.send({type:ea.CloseListbox}),(0,K.d)(t,K.m.Loose)||(e.preventDefault(),null==q||q.focus())});let W=(0,C.f)({open:A===ei.Open,disabled:m,invalid:c,value:O}),[H,J]=(0,G.m)({inherit:!0}),X=(0,s.useCallback)(()=>{if(void 0!==k)return null==S?void 0:S(k)},[S,k]),Y=(0,Z.n)();return s.default.createElement(J,{value:H,props:{htmlFor:null==q?void 0:q.id},slot:{open:A===ei.Open,disabled:m}},s.default.createElement(N.j,null,s.default.createElement(ef.Provider,{value:E},s.default.createElement(em.Provider,{value:D},s.default.createElement(z.z,{value:(0,Q.f)(A,{[ei.Open]:z.A.Open,[ei.Closed]:z.A.Closed})},null!=l&&null!=O&&s.default.createElement(M.f,{disabled:m,data:{[l]:O},form:a,onReset:X}),Y({ourProps:{ref:_},theirProps:x,slot:W,defaultTag:eb,name:"Listbox"}))))))}),{Button:(0,Z.t)(function(e,t){let r=(0,s.useId)(),n=(0,B.f)(),i=eg("Listbox.Button"),o=eh("Listbox.Button"),{id:a=n||`headlessui-listbox-button-${r}`,disabled:f=i.disabled||!1,autoFocus:h=!1,...p}=e,m=(0,I.V)(t,(0,N.$)(),o.actions.setButtonElement),g=(0,N.f)(),[x,y,_]=(0,U.f)(o,e=>[e.listboxState,e.buttonElement,e.optionsElement]),k=x===ei.Open;(0,S.f)(k,{trigger:y,action:(0,s.useCallback)(e=>{if(null!=y&&y.contains(e.target))return S.m.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return j.F(t)?S.m.Select(t):null!=_&&_.contains(e.target)?S.m.Ignore:S.m.Close},[y,_]),close:o.actions.closeListbox,select:o.actions.selectActiveOption});let w=(0,b.f)(e=>{switch(e.key){case X.f.Enter:(0,W.o)(e.currentTarget);break;case X.f.Space:case X.f.ArrowDown:e.preventDefault(),o.actions.openListbox({focus:i.value?q.b.Nothing:q.b.First});break;case X.f.ArrowUp:e.preventDefault(),o.actions.openListbox({focus:i.value?q.b.Nothing:q.b.Last})}}),O=(0,b.f)(e=>{e.key===X.f.Space&&e.preventDefault()}),R=(0,v.f)(e=>{var t;o.state.listboxState===ei.Open?((0,u.flushSync)(()=>o.actions.closeListbox()),null==(t=o.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),o.actions.openListbox({focus:q.b.Nothing}))}),L=(0,b.f)(e=>e.preventDefault()),T=(0,G.I)([a]),D=(0,J.A)(),{isFocusVisible:A,focusProps:F}=(0,l.f)({autoFocus:h}),{isHovered:M,hoverProps:P}=(0,d.f)({isDisabled:f}),{pressed:z,pressProps:$}=(0,c.f)({disabled:f}),V=(0,C.f)({open:x===ei.Open,active:z||x===ei.Open,disabled:f,invalid:i.invalid,value:i.value,hover:M,focus:A,autofocus:h}),K=(0,U.f)(o,e=>e.listboxState===ei.Open),Q=(0,Z.w)(g(),{ref:m,id:a,type:(0,E.f)(e,y),"aria-haspopup":"listbox","aria-controls":null==_?void 0:_.id,"aria-expanded":K,"aria-labelledby":T,"aria-describedby":D,disabled:f||void 0,autoFocus:h,onKeyDown:w,onKeyUp:O,onKeyPress:L},R,F,P,$);return(0,Z.n)()({ourProps:Q,theirProps:p,slot:V,defaultTag:"button",name:"Listbox.Button"})}),Label:G.Q,Options:(0,Z.t)(function(e,t){let r=(0,s.useId)(),{id:n=`headlessui-listbox-options-${r}`,anchor:i,portal:o=!1,modal:a=!0,transition:l=!1,...d}=e,c=(0,N.L)(i),[f,h]=(0,s.useState)(null);c&&(o=!0);let p=eg("Listbox.Options"),v=eh("Listbox.Options"),[y,_,w,S]=(0,U.f)(v,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),E=(0,O.f)(_),j=(0,O.f)(w),L=(0,z.N)(),[T,D]=(0,A.S)(l,f,null!==L?(L&z.A.Open)===z.A.Open:y===ei.Open);(0,k.f)(T,_,v.actions.closeListbox);let F=!S&&a&&y===ei.Open;(0,R.f)(F,j);let M=!S&&a&&y===ei.Open;(0,x.f)(M,{allowed:(0,s.useCallback)(()=>[_,w],[_,w])});let B=!(0,U.f)(v,v.selectors.didButtonMove)&&T,$=(0,U.f)(v,v.selectors.hasFrozenValue)&&!e.static,V=(0,P.o)($,p.value),W=(0,s.useCallback)(e=>p.compare(V,e),[p.compare,V]),J=(0,U.f)(v,e=>{var t;if(null==c||!(null!=(t=null==c?void 0:c.to)&&t.includes("selection")))return null;let r=e.options.findIndex(e=>W(e.dataRef.current.value));return -1===r&&(r=0),r}),G=(()=>{if(null==c)return;if(null===J)return{...c,inner:void 0};let e=Array.from(p.listRef.current.values());return{...c,inner:{listRef:{current:e},index:J}}})(),[ee,et]=(0,N.X)(G),er=(0,N.S)(),en=(0,I.V)(t,c?ee:null,v.actions.setOptionsElement,h),eo=(0,m.f)();(0,s.useEffect)(()=>{w&&y===ei.Open&&((0,H.M)(w)||null==w||w.focus({preventScroll:!0}))},[y,w]);let ea=(0,b.f)(e=>{var t;switch(eo.dispose(),e.key){case X.f.Space:if(""!==v.state.searchQuery)return e.preventDefault(),e.stopPropagation(),v.actions.search(e.key);case X.f.Enter:e.preventDefault(),e.stopPropagation(),v.actions.selectActiveOption();break;case(0,Q.f)(p.orientation,{vertical:X.f.ArrowDown,horizontal:X.f.ArrowRight}):return e.preventDefault(),e.stopPropagation(),v.actions.goToOption({focus:q.b.Next});case(0,Q.f)(p.orientation,{vertical:X.f.ArrowUp,horizontal:X.f.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),v.actions.goToOption({focus:q.b.Previous});case X.f.Home:case X.f.PageUp:return e.preventDefault(),e.stopPropagation(),v.actions.goToOption({focus:q.b.First});case X.f.End:case X.f.PageDown:return e.preventDefault(),e.stopPropagation(),v.actions.goToOption({focus:q.b.Last});case X.f.Escape:e.preventDefault(),e.stopPropagation(),(0,u.flushSync)(()=>v.actions.closeListbox()),null==(t=v.state.buttonElement)||t.focus({preventScroll:!0});return;case X.f.Tab:e.preventDefault(),e.stopPropagation(),(0,u.flushSync)(()=>v.actions.closeListbox()),(0,K.e)(v.state.buttonElement,e.shiftKey?K.b.Previous:K.b.Next);break;default:1===e.key.length&&(v.actions.search(e.key),eo.setTimeout(()=>v.actions.clearSearch(),350))}}),el=(0,U.f)(v,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),ed=(0,C.f)({open:y===ei.Open}),eu=(0,Z.w)(c?er():{},{id:n,ref:en,"aria-activedescendant":(0,U.f)(v,v.selectors.activeDescendantId),"aria-multiselectable":p.mode===es.Multi||void 0,"aria-labelledby":el,"aria-orientation":p.orientation,onKeyDown:ea,role:"listbox",tabIndex:y===ei.Open?0:void 0,style:{...d.style,...et,"--button-width":(0,g.f)(T,_,!0).width},...(0,A.p)(D)}),ec=(0,Z.n)(),ef=(0,s.useMemo)(()=>p.mode===es.Multi?p:{...p,isSelected:W},[p,W]);return s.default.createElement(Y.z,{enabled:!!o&&(e.static||T),ownerDocument:E},s.default.createElement(em.Provider,{value:ef},ec({ourProps:eu,theirProps:d,slot:ed,defaultTag:"div",features:ex,visible:B,name:"Listbox.Options"})))}),Option:(0,Z.t)(function(e,t){let r,n,i=(0,s.useId)(),{id:o=`headlessui-listbox-option-${i}`,disabled:a=!1,value:l,...d}=e,u=!0===(0,s.useContext)(ev),c=eg("Listbox.Option"),f=eh("Listbox.Option"),h=(0,U.f)(f,e=>f.selectors.isActive(e,o)),p=c.isSelected(l),m=(0,s.useRef)(null),g=(r=(0,s.useRef)(""),n=(0,s.useRef)(""),(0,b.f)(()=>{let e=m.current;if(!e)return"";let t=e.innerText;if(r.current===t)return n.current;let i=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let e=r.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():T(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return T(e).trim()})(e).trim().toLowerCase();return r.current=t,n.current=i,i})),v=(0,_.f)({disabled:a,value:l,domRef:m,get textValue(){return g()}}),x=(0,I.V)(t,m,e=>{e?c.listRef.current.set(o,e):c.listRef.current.delete(o)}),k=(0,U.f)(f,e=>f.selectors.shouldScrollIntoView(e,o));(0,y.f)(()=>{if(k)return(0,V.f)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=m.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[k,m]),(0,y.f)(()=>{if(!u)return f.actions.registerOption(o,v),()=>f.actions.unregisterOption(o)},[v,o,u]);let w=(0,b.f)(e=>{if(a)return e.preventDefault();f.actions.selectOption(l)}),O=(0,b.f)(()=>{if(a)return f.actions.goToOption({focus:q.b.Nothing});f.actions.goToOption({focus:q.b.Specific,id:o})}),S=(0,D.f)(),E=(0,b.f)(e=>S.update(e)),R=(0,b.f)(e=>{S.wasMoved(e)&&(a||h&&f.state.activationTrigger===eo.Pointer||f.actions.goToOption({focus:q.b.Specific,id:o},eo.Pointer))}),j=(0,b.f)(e=>{S.wasMoved(e)&&(a||h&&f.state.activationTrigger===eo.Pointer&&f.actions.goToOption({focus:q.b.Nothing}))}),L=(0,C.f)({active:h,focus:h,selected:p,disabled:a,selectedOption:p&&u}),A=u?{}:{id:o,ref:x,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":p,disabled:void 0,onClick:w,onFocus:O,onPointerEnter:E,onMouseEnter:E,onPointerMove:R,onMouseMove:R,onPointerLeave:j,onMouseLeave:j},F=(0,Z.n)();return!p&&u?null:F({ourProps:A,theirProps:d,slot:L,defaultTag:"div",name:"Listbox.Option"})}),SelectedOption:(0,Z.t)(function(e,t){let{options:r,placeholder:n,...i}=e,o={ref:(0,I.V)(t)},a=eg("ListboxSelectedOption"),l=(0,C.f)({}),d=void 0===a.value||null===a.value||a.mode===es.Multi&&Array.isArray(a.value)&&0===a.value.length,u=(0,Z.n)();return s.default.createElement(ev.Provider,{value:!0},u({ourProps:o,theirProps:{...i,children:s.default.createElement(s.default.Fragment,null,n&&d?n:r)},slot:l,defaultTag:ey,name:"ListboxSelectedOption"}))})});var ek=e.i(95485),ew=e.i(38322),eO=e.i(38187),eS=e.i(69322);function eE(...e){return e.filter(Boolean).join(" ")}let eR={green:{button:"bg-emerald-50 dark:bg-emerald-900/30 text-emerald-700 dark:text-emerald-300 border border-emerald-200 dark:border-emerald-700",hover:"hover:bg-emerald-100 dark:hover:bg-emerald-900/50",focus:"focus:ring-emerald-500",dropdown:"text-emerald-700 dark:text-emerald-300 bg-emerald-50 dark:bg-emerald-900/30 border border-emerald-200 dark:border-emerald-700",description:"text-emerald-600 dark:text-emerald-400"},amber:{button:"bg-amber-50 dark:bg-amber-900/30 text-amber-700 dark:text-amber-300 border border-amber-200 dark:border-amber-700",hover:"hover:bg-amber-100 dark:hover:bg-amber-900/50",focus:"focus:ring-amber-500",dropdown:"text-amber-700 dark:text-amber-300 bg-amber-50 dark:bg-amber-900/30 border border-amber-200 dark:border-amber-700",description:"text-amber-600 dark:text-amber-400"},slate:{button:"bg-surface text-text-secondary border border-slate-200 dark:border-slate-600",hover:"hover:bg-slate-100 dark:hover:bg-slate-600",focus:"focus:ring-focus-ring",dropdown:"text-text-secondary bg-surface border border-slate-200 dark:border-slate-600",description:"text-text-secondary"},stone:{button:"bg-stone-50 dark:bg-stone-800 text-stone-700 dark:text-stone-300 border border-stone-200 dark:border-stone-700",hover:"hover:bg-stone-100 dark:hover:bg-stone-700",focus:"focus:ring-stone-500",dropdown:"text-stone-700 dark:text-stone-300 bg-stone-50 dark:bg-stone-800 border border-stone-200 dark:border-stone-700",description:"text-stone-600 dark:text-stone-400"},emerald:{button:"bg-emerald-50 dark:bg-emerald-900/30 text-emerald-700 dark:text-emerald-300 border border-emerald-200 dark:border-emerald-700",hover:"hover:bg-emerald-100 dark:hover:bg-emerald-900/50",focus:"focus:ring-emerald-500",dropdown:"text-emerald-700 dark:text-emerald-300 bg-emerald-50 dark:bg-emerald-900/30 border border-emerald-200 dark:border-emerald-700",description:"text-emerald-600 dark:text-emerald-400"}};e.s(["f",0,({options:e,type:t})=>{let[r,n]=(0,s.useState)(!1),[i,o]=(0,s.useState)(e?.find(({current:e})=>e)||e?.[0]),{formatMessage:l}=(0,eS.X)();if(!i?.id||!e?.length)return null;let d=eR[i.bgColor]||eR.emerald;return(0,a.jsx)(e_,{value:i,onChange:o,children:({open:o})=>(0,a.jsxs)("div",{id:i.id,children:[(0,a.jsx)(e_.Label,{className:"sr-only",children:l({id:"select_options_toggle",defaultMessage:"Change {type} status"},{type:t})}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)(e_.Button,{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),className:eE("inline-flex items-center gap-2 rounded-md px-3 py-2 text-sm font-medium shadow-sm transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 h-[38px]",d.button,d.hover,d.focus,(()=>{if(!r)return"";switch(i.bgColor){case"green":case"emerald":return"bg-emerald-100";case"amber":return"bg-amber-100";case"stone":return"bg-stone-100";default:return"bg-slate-100"}})()),children:[(0,a.jsx)(ew.f,{className:"h-4 w-4","aria-hidden":"true"}),(0,a.jsx)("span",{children:i?.selectedTitle||i.title}),(0,a.jsx)(eO.f,{className:eE("h-4 w-4 -mr-1 transition-transform duration-200",o&&"rotate-180"),"aria-hidden":"true"})]}),(0,a.jsx)(ek.I,{show:o,as:s.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)(e_.Options,{className:"mt-1 absolute right-0 z-10 w-64 origin-top-right divide-y divide-slate-200 dark:divide-slate-600 overflow-hidden rounded-md bg-surface shadow-lg ring-1 ring-black dark:ring-slate-600 ring-opacity-5 dark:ring-opacity-50 focus:outline-hidden",children:e.map(e=>(0,a.jsx)(e_.Option,{className:()=>eE("group",e?.disable&&"cursor-not-allowed","relative cursor-default select-none p-3 text-sm"),value:e,disabled:e.disable,children:(0,a.jsx)("div",{className:`${e?.disable&&"pointer-events-none"}`,onClick:e?.onClick,children:(0,a.jsx)("div",{className:"flex items-start justify-between gap-3",children:(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:eE("inline-flex items-center rounded-md px-2 py-1 text-xs font-medium",(eR[e.bgColor]||eR.emerald).dropdown),children:e.title}),e.id===i.id&&(0,a.jsx)(ew.f,{className:"h-4 w-4 text-slate-600","aria-hidden":"true"})]}),e?.description&&(0,a.jsx)("div",{className:eE("mt-2 ms-1 text-sm text-text-secondary"),children:e.description})]})})})},e.title))})})]})]})})}],92276)},76842,e=>{var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{d:"m2.695 14.762-1.262 3.155a.5.5 0 0 0 .65.65l3.155-1.262a4 4 0 0 0 1.343-.886L17.5 5.501a2.121 2.121 0 0 0-3-3L3.58 13.419a4 4 0 0 0-.885 1.343Z"}))});e.s(["f",0,r],76842)},24557,e=>{var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z",clipRule:"evenodd"}))});e.s(["f",0,r],24557)},38322,e=>{var t=e.i(57862);e.s(["f",()=>t.f])},38187,e=>{var t=e.i(76237);e.s(["f",()=>t.f])},86712,e=>{var t=e.i(93026);e.s(["f",()=>t.f])},24608,e=>{var t=e.i(30999);e.s(["f",()=>t.f])}],72552,(e,t,r)=>{var n;let i;e.e,n=function e(){var t="u">typeof self?self:"u">typeof window?window:void 0!==t?t:{},r=!t.document&&!!t.postMessage,n=t.IS_PAPA_WORKER||!1,i={},s=0,o={};function a(e){return 65279===e.charCodeAt(0)?e.slice(1):e}function l(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var t=x(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new h(t),(this._handle.streamer=this)._config=t}).call(this,e),this.parseChunk=function(e,r){var i=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<i){let t=this._config.newline;t||(s=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,s)),e=[...e.split(t).slice(i)].join(t)}this.isFirstChunk&&_(this._config.beforeFirstChunk)&&void 0!==(s=this._config.beforeFirstChunk(e))&&(e=s),this.isFirstChunk=!1,this._halted=!1;var i=this._partialLine+e,s=(this._partialLine="",this._handle.parse(i,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=s.meta.cursor,this._finished||(this._partialLine=i.substring(e-this._baseIndex),this._baseIndex=e),s&&s.data&&(this._rowCount+=s.data.length),i=this._finished||this._config.preview&&this._rowCount>=this._config.preview,n)t.postMessage({results:s,workerId:o.WORKER_ID,finished:i});else if(_(this._config.chunk)&&!r){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=s=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!i||!_(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),i||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){_(this._config.error)?this._config.error(e):n&&this._config.error&&t.postMessage({workerId:o.WORKER_ID,error:e,finished:!1})}}function d(e){var t;(e=e||{}).chunkSize||(e.chunkSize=o.RemoteChunkSize),l.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=y(this._chunkLoaded,this),t.onerror=y(this._chunkError,this)),t.ontimeout=y(this._chunkTimeout,this),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadTimeout&&!r&&(t.timeout=this._config.downloadTimeout),this._config.downloadRequestHeaders){var e,n,i=this._config.downloadRequestHeaders;for(n in i)t.setRequestHeader(n,i[n])}this._config.chunkSize&&(e=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+e));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){let e;4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null!==(e=(e=t).getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(Error(e))},this._chunkTimeout=function(){this._chunkError("Request timed out after "+this._config.downloadTimeout+"ms")}}function u(e){(e=e||{}).chunkSize||(e.chunkSize=o.LocalChunkSize),l.call(this,e);var t,r,n="u">typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=y(this._chunkLoaded,this),t.onerror=y(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,i=(this._config.chunkSize&&(i=Math.min(this._start+this._config.chunkSize,this._input.size),e=r.call(e,this._start,i)),t.readAsText(e,this._config.encoding));n||this._chunkLoaded({target:{result:i}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function c(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,r;if(!this._finished)return t=(e=this._config.chunkSize)?(r=t.substring(0,e),t.substring(e)):(r=t,""),this._finished=!t,this.parseChunk(r)}}function f(e){l.call(this,e=e||{});var t=[],r=!0,n=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=y(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=y(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=y(function(){this._streamCleanUp(),n=!0,this._streamData("")},this),this._streamCleanUp=y(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function h(e){var t,r,n,i,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,a=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,l=this,d=0,u=0,c=!1,f=!1,h=[],g={data:[],errors:[],meta:{}};function b(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function v(){if(g&&n&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+o.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines&&(g.data=g.data.filter(function(e){return!b(e)})),y()){if(g)if(Array.isArray(g.data[0])){for(var t,r=0;y()&&r<g.data.length;r++)g.data[r].forEach(i);g.data.splice(0,1)}else g.data.forEach(i);function i(e){h.push(e)}}function l(t,r){for(var n=e.header?{}:[],i=0;i<t.length;i++){var o=i,l=t[i],l=((t,r)=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping))?"true"===r||"TRUE"===r||"false"!==r&&"FALSE"!==r&&((e=>{if(s.test(e)&&-0x20000000000000<(e=parseFloat(e))&&e<0x20000000000000)return 1})(r)?parseFloat(r):a.test(r)?new Date(r):""===r?null:r):r)(o=e.header?i>=h.length?"__parsed_extra":h[i]:o,l=e.transform?e.transform(l,o):l);"__parsed_extra"===o?(n[o]=n[o]||[],n[o].push(l)):n[o]=l}return e.header&&(i>h.length?k("FieldMismatch","TooManyFields","Too many fields: expected "+h.length+" fields but parsed "+i,u+r):i<h.length&&k("FieldMismatch","TooFewFields","Too few fields: expected "+h.length+" fields but parsed "+i,u+r)),n}g&&(e.header||e.dynamicTyping||e.transform)&&(t=1,!g.data.length||Array.isArray(g.data[0])?(g.data=g.data.map(l),t=g.data.length):g.data=l(g.data,0),e.header&&g.meta&&(g.meta.fields=h),u+=t)}function y(){return e.header&&0===h.length}function k(e,t,r,n){e={type:e,code:t,message:r},void 0!==n&&(e.row=n),g.errors.push(e)}_(e.step)&&(i=e.step,e.step=function(t){g=t,y()?v():(v(),0!==g.data.length&&(d+=t.data.length,e.preview&&d>e.preview?r.abort():(g.data=g.data[0],i(g,l))))}),this.parse=function(i,s,a){var l=e.quoteChar||'"',l=(e.newline||(e.newline=this.guessLineEndings(i,l)),n=!1,e.delimiter?_(e.delimiter)&&(e.delimiter=e.delimiter(i),g.meta.delimiter=e.delimiter):((l=((t,r,n,i,s)=>{var a,l,d,u;s=s||[","," ","|",";",o.RECORD_SEP,o.UNIT_SEP];for(var c=0;c<s.length;c++){for(var f,h=s[c],p=0,g=0,v=0,x=(d=void 0,new m({comments:i,delimiter:h,newline:r,preview:10}).parse(t)),y=0;y<x.data.length;y++)n&&b(x.data[y])?v++:(g+=f=x.data[y].length,void 0===d?d=f:0<f&&(p+=Math.abs(f-d),d=f));0<x.data.length&&(g/=x.data.length-v),1.99<g&&(void 0===l||p<l||p===l&&u<g)&&(l=p,a=h,u=g)}return{successful:!!(e.delimiter=a),bestDelimiter:a}})(i,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=l.bestDelimiter:(n=!0,e.delimiter=o.DefaultDelimiter),g.meta.delimiter=e.delimiter),x(e));return l.header=y(),e.preview&&e.header&&l.preview++,t=i,g=(r=new m(l)).parse(t,s,a),v(),c?{meta:{paused:!0}}:g||{meta:{paused:!1}}},this.paused=function(){return c},this.pause=function(){c=!0,r.abort(),t=_(e.chunk)?"":t.substring(r.getCharIndex())},this.resume=function(){l.streamer._halted?(c=!1,l.streamer.parseChunk(t,!0)):setTimeout(l.resume,3)},this.aborted=function(){return f},this.abort=function(){f=!0,r.abort(),g.meta.aborted=!0,_(e.complete)&&e.complete(g),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576);var t=RegExp(p(t)+"([^]*?)"+p(t),"gm"),r=(e=e.replace(t,"")).split("\r"),t=e.split("\n"),e=1<t.length&&t[0].length<r[0].length;if(1===r.length||e)return"\n";for(var n=0,i=0;i<r.length;i++)"\n"===r[i][0]&&n++;return n>=r.length/2?"\r\n":"\r"}}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function m(e){var t=(e=e||{}).delimiter,r=e.newline,n=e.comments,i=e.step,s=e.preview,l=e.fastMode,d=null,u=!1,c=null==e.quoteChar?'"':e.quoteChar,f=c;if(void 0!==e.escapeChar&&(f=e.escapeChar),("string"!=typeof t||-1<o.BAD_DELIMITERS.indexOf(t))&&(t=","),n===t)throw Error("Comment character same as delimiter");!0===n?n="#":("string"!=typeof n||-1<o.BAD_DELIMITERS.indexOf(n))&&(n=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var h=0,m=!1;this.parse=function(o,g,b){if("string"!=typeof o)throw Error("Input must be a string");var v=o.length,x=t.length,y=r.length,k=n.length,w=_(i),O=[],S=[],E=[],R=h=0;if(!o)return B();if(l||!1!==l&&-1===o.indexOf(c)){for(var C=o.split(r),I=0;I<C.length;I++){if(E=C[I],h+=E.length,I!==C.length-1)h+=r.length;else if(b)break;if(!n||E.substring(0,k)!==n){if(w){if(O=[],F(E.split(t)),z(),m)return B()}else F(E.split(t));if(s&&s<=I)return O=O.slice(0,s),B(!0)}}return B()}for(var j=o.indexOf(t,h),L=o.indexOf(r,h),T=RegExp(p(f)+p(c),"g"),D=o.indexOf(c,h);;)if(o[h]===c)for(D=h,h++;;){if(-1===(D=o.indexOf(c,D+1)))return b||S.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:O.length,index:h}),M();if(D===v-1)return M(o.substring(h,D).replace(T,c));if(c===f&&o[D+1]===f)D++;else if(c===f||0===D||o[D-1]!==f){-1!==j&&j<D+1&&(j=o.indexOf(t,D+1));var A=N(-1===(L=-1!==L&&L<D+1?o.indexOf(r,D+1):L)?j:Math.min(j,L));if(o.substr(D+1+A,x)===t){E.push(o.substring(h,D).replace(T,c)),o[h=D+1+A+x]!==c&&(D=o.indexOf(c,h)),j=o.indexOf(t,h),L=o.indexOf(r,h);break}if(A=N(L),o.substring(D+1+A,D+1+A+y)===r){if(E.push(o.substring(h,D).replace(T,c)),P(D+1+A+y),j=o.indexOf(t,h),D=o.indexOf(c,h),w&&(z(),m))return B();if(s&&O.length>=s)return B(!0);break}S.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:O.length,index:h}),D++}}else if(n&&0===E.length&&o.substring(h,h+k)===n){if(-1===L)return B();h=L+y,L=o.indexOf(r,h),j=o.indexOf(t,h)}else if(-1!==j&&(j<L||-1===L))E.push(o.substring(h,j)),h=j+x,j=o.indexOf(t,h);else{if(-1===L)break;if(E.push(o.substring(h,L)),P(L+y),w&&(z(),m))return B();if(s&&O.length>=s)return B(!0)}return M();function F(e){O.push(e),R=h}function N(e){return -1!==e&&(e=o.substring(D+1,e))&&""===e.trim()?e.length:0}function M(e){return b||(void 0===e&&(e=o.substring(h)),E.push(e),h=v,F(E),w&&z()),B()}function P(e){h=e,F(E),E=[],L=o.indexOf(r,h)}function B(n){if(e.header&&!g&&O.length&&!u){var i=O[0],s=Object.create(null),o=new Set(i);let t=!1;for(let r=0;r<i.length;r++){let n=a(i[r]);if(s[n=_(e.transformHeader)?e.transformHeader(n,r):n]){let e,a=s[n];for(;e=n+"_"+a,a++,o.has(e););o.add(e),i[r]=e,s[n]++,t=!0,(d=null===d?{}:d)[e]=n}else s[n]=1,i[r]=n;o.add(n)}t&&console.warn("Duplicate headers found and renamed."),u=!0}return{data:O,errors:S,meta:{delimiter:t,linebreak:r,aborted:m,truncated:!!n,cursor:R+(g||0),renamedHeaders:d}}}function z(){i(B()),O=[],S=[]}},this.abort=function(){m=!0},this.getCharIndex=function(){return h}}function g(e){var t=e.data,r=i[t.workerId],n=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var s={abort:function(){n=!0,b(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:v,resume:v};if(_(r.userStep)){for(var o=0;o<t.results.data.length&&(r.userStep({data:t.results.data[o],errors:t.results.errors,meta:t.results.meta},s),!n);o++);delete t.results}else _(r.userChunk)&&(r.userChunk(t.results,s,t.file),delete t.results)}t.finished&&!n&&b(t.workerId,t.results)}function b(e,t){var r=i[e];_(r.userComplete)&&r.userComplete(t),r.terminate(),delete i[e]}function v(){throw Error("Not implemented.")}function x(e){if("object"!=typeof e||null===e)return e;var t,r=Array.isArray(e)?[]:{};for(t in e)r[t]=x(e[t]);return r}function y(e,t){return function(){e.apply(t,arguments)}}function _(e){return"function"==typeof e}return o.parse=function(r,n){var l,h,p,m=(n=n||{}).dynamicTyping||!1;if(_(m)&&(n.dynamicTypingFunction=m,m={}),n.dynamicTyping=m,n.transform=!!_(n.transform)&&n.transform,void 0!==n.downloadTimeout){var m=parseInt(n.downloadTimeout);if(isNaN(m))throw Error("Config downloadTimeout value ("+n.downloadTimeout+") not parsable by parseInt(val).");n.downloadTimeout=m}if(!n.worker||!o.WORKERS_SUPPORTED)return m=null,o.NODE_STREAM_INPUT,"string"==typeof r?(r=a(r),m=new(n.download?d:c)(n)):!0===r.readable&&_(r.read)&&_(r.on)?m=new f(n):(t.File&&r instanceof File||r instanceof Object)&&(m=new u(n)),m.stream(r);(m=!!o.WORKERS_SUPPORTED&&(h=t.URL||t.webkitURL||null,p=e.toString(),l=o.BLOB_URL||(o.BLOB_URL=h.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",p,")();"],{type:"text/javascript"}))),(l=new t.Worker(l)).onmessage=g,l.id=s++,i[l.id]=l)).userStep=n.step,m.userChunk=n.chunk,m.userComplete=n.complete,m.userError=n.error,n.step=_(n.step),n.chunk=_(n.chunk),n.complete=_(n.complete),n.error=_(n.error),delete n.worker,m.postMessage({input:r,config:n,workerId:m.id})},o.unparse=function(e,t){var r=!1,n=!0,i=",",s="\r\n",a='"',l=a+a,d=!1,u=null,c=!1,f=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||o.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(i=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(d=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(l=(a=t.quoteChar)+a),"boolean"==typeof t.header&&(n=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+a),t.escapeFormulae instanceof RegExp?c=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(c=/^[=+\-@\t\r].*$/)}})(),RegExp(p(a),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return h(null,e,d);if("object"==typeof e[0])return h(u||Object.keys(e[0]),e,d)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||u),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),h(e.fields||[],e.data||[],d);throw Error("Unable to serialize unrecognized input");function h(e,t,r){var o="",a=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),l=!Array.isArray(t[0]);if(a&&n){for(var d=0;d<e.length;d++)0<d&&(o+=i),o+=m(e[d],d);0<t.length&&(o+=s)}for(var u=0;u<t.length;u++){var c=(a?e:t[u]).length,f=!1,h=a?0===Object.keys(t[u]).length:0===t[u].length;if(r&&!a&&(f="greedy"===r?""===t[u].join("").trim():1===t[u].length&&0===t[u][0].length),"greedy"===r&&a){for(var p=[],g=0;g<c;g++){var b=l?e[g]:g;p.push(t[u][b])}f=""===p.join("").trim()}if(!f){for(var v=0;v<c;v++){0<v&&!h&&(o+=i);var x=a&&l?e[v]:v;o+=m(t[u][x],v)}u<t.length-1&&(!r||0<c&&!h)&&(o+=s)}}return o}function m(e,t){var n,s,d;return null==e?"":e.constructor===Date?isNaN(e.getTime())?"":e.toISOString():(d=!1,c&&"string"==typeof e&&c.test(e)&&(e="'"+e,d=!0),s=(n=e.toString()).replace(f,l),(d=d||!0===r||"function"==typeof r&&r(e,t)||Array.isArray(r)&&r[t]||((e,t)=>{for(var r=0;r<t.length;r++)if(-1<e.indexOf(t[r]))return!0;return!1})(s,o.BAD_DELIMITERS)||-1<s.indexOf(i)||-1<n.indexOf(a)||" "===s.charAt(0)||" "===s.charAt(s.length-1))?a+s+a:s)}},o.RECORD_SEP="\x1e",o.UNIT_SEP="\x1f",o.BYTE_ORDER_MARK="\uFEFF",o.BAD_DELIMITERS=["\r","\n",'"',o.BYTE_ORDER_MARK],o.WORKERS_SUPPORTED=!r&&!!t.Worker,o.NODE_STREAM_INPUT=1,o.LocalChunkSize=0xa00000,o.RemoteChunkSize=5242880,o.DefaultDelimiter=",",o.Parser=m,o.ParserHandle=h,o.NetworkStreamer=d,o.FileStreamer=u,o.StringStreamer=c,o.ReadableStreamStreamer=f,n&&(t.onmessage=function(e){e=e.data,void 0===o.WORKER_ID&&e&&(o.WORKER_ID=e.workerId),"string"==typeof e.input?t.postMessage({workerId:o.WORKER_ID,results:o.parse(e.input,e.config),finished:!0}):(t.File&&e.input instanceof File||e.input instanceof Object)&&(e=o.parse(e.input,e.config))&&t.postMessage({workerId:o.WORKER_ID,results:e,finished:!0})}),(d.prototype=Object.create(l.prototype)).constructor=d,(u.prototype=Object.create(l.prototype)).constructor=u,(c.prototype=Object.create(c.prototype)).constructor=c,(f.prototype=Object.create(l.prototype)).constructor=f,o},"function"==typeof define&&define.amd?void 0!==(i=n())&&e.v(i):t.exports=n()}]);
@@ -1,74 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,34984,(t,e,n)=>{let r="/assortments";(window.__NEXT_P=window.__NEXT_P||[]).push([r,()=>t.r(58656)]),e.hot&&e.hot.dispose(function(){window.__NEXT_P.push([r])})},58656,t=>{"use strict";var e,n=t.i(91398),r=t.i(69322);t.i(51523);var s=t.i(19518),i=t.i(3828),a=t.i(50595),o=t.i(70553),l=t.i(25327),u=t.i(6634),c=t.i(60193),f=t.i(58971),h=t.i(53576),d=t.i(91788),p={value:()=>{}};function m(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw Error("illegal type: "+t);r[t]=[]}return new g(r)}function g(t){this._=t}function _(t,e,n){for(var r=0,s=t.length;r<s;++r)if(t[r].name===e){t[r]=p,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}function v(){}function y(t){return null==t?v:function(){return this.querySelector(t)}}function x(){return[]}function w(t){return null==t?x:function(){return this.querySelectorAll(t)}}function b(t){return function(){return this.matches(t)}}function A(t){return function(e){return e.matches(t)}}g.prototype=m.prototype={constructor:g,on:function(t,e){var n,r=this._,s=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),i=-1,a=s.length;if(arguments.length<2){for(;++i<a;)if((n=(t=s[i]).type)&&(n=function(t,e){for(var n,r=0,s=t.length;r<s;++r)if((n=t[r]).name===e)return n.value}(r[n],t.name)))return n;return}if(null!=e&&"function"!=typeof e)throw Error("invalid callback: "+e);for(;++i<a;)if(n=(t=s[i]).type)r[n]=_(r[n],t.name,e);else if(null==e)for(n in r)r[n]=_(r[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new g(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,s=Array(n),i=0;i<n;++i)s[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(r=this._[t],i=0,n=r.length;i<n;++i)r[i].value.apply(e,s)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var r=this._[t],s=0,i=r.length;s<i;++s)r[s].value.apply(e,n)}};var C=Array.prototype.find;function k(){return this.firstElementChild}var j=Array.prototype.filter;function S(){return Array.from(this.children)}function M(t){return Array(t.length)}function E(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function N(t,e,n,r,s,i){for(var a,o=0,l=e.length,u=i.length;o<u;++o)(a=e[o])?(a.__data__=i[o],r[o]=a):n[o]=new E(t,i[o]);for(;o<l;++o)(a=e[o])&&(s[o]=a)}function I(t,e,n,r,s,i,a){var o,l,u,c=new Map,f=e.length,h=i.length,d=Array(f);for(o=0;o<f;++o)(l=e[o])&&(d[o]=u=a.call(l,l.__data__,o,e)+"",c.has(u)?s[o]=l:c.set(u,l));for(o=0;o<h;++o)u=a.call(t,i[o],o,i)+"",(l=c.get(u))?(r[o]=l,l.__data__=i[o],c.delete(u)):n[o]=new E(t,i[o]);for(o=0;o<f;++o)(l=e[o])&&c.get(d[o])===l&&(s[o]=l)}function $(t){return t.__data__}function T(t,e){return t<e?-1:t>e?1:t>=e?0:0/0}E.prototype={constructor:E,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var V="http://www.w3.org/1999/xhtml";let q={svg:"http://www.w3.org/2000/svg",xhtml:V,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function O(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),q.hasOwnProperty(e)?{space:q[e],local:t}:t}function P(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function R(t,e){return t.style.getPropertyValue(e)||P(t).getComputedStyle(t,null).getPropertyValue(e)}function X(t){return t.trim().split(/^|\s+/)}function L(t){return t.classList||new B(t)}function B(t){this._node=t,this._names=X(t.getAttribute("class")||"")}function D(t,e){for(var n=L(t),r=-1,s=e.length;++r<s;)n.add(e[r])}function F(t,e){for(var n=L(t),r=-1,s=e.length;++r<s;)n.remove(e[r])}function U(){this.textContent=""}function K(){this.innerHTML=""}function Y(){this.nextSibling&&this.parentNode.appendChild(this)}function G(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function W(t){var e=O(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===V&&e.documentElement.namespaceURI===V?e.createElement(t):e.createElementNS(n,t)}})(e)}function z(){return null}function Q(){var t=this.parentNode;t&&t.removeChild(this)}function H(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function J(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Z(t){return function(){var e=this.__on;if(e){for(var n,r=0,s=-1,i=e.length;r<i;++r)(n=e[r],t.type&&n.type!==t.type||n.name!==t.name)?e[++s]=n:this.removeEventListener(n.type,n.listener,n.options);++s?e.length=s:delete this.__on}}}function tt(t,e,n){return function(){var r,s=this.__on,i=function(t){e.call(this,t,this.__data__)};if(s){for(var a=0,o=s.length;a<o;++a)if((r=s[a]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=n),r.value=e;return}}this.addEventListener(t.type,i,n),r={type:t.type,name:t.name,value:e,listener:i,options:n},s?s.push(r):this.__on=[r]}}function te(t,e,n){var r=P(t),s=r.CustomEvent;"function"==typeof s?s=new s(e,n):(s=r.document.createEvent("Event"),n?(s.initEvent(e,n.bubbles,n.cancelable),s.detail=n.detail):s.initEvent(e,!1,!1)),t.dispatchEvent(s)}B.prototype={add:function(t){0>this._names.indexOf(t)&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var tn=[null];function tr(t,e){this._groups=t,this._parents=e}function ts(){return new tr([[document.documentElement]],tn)}tr.prototype=ts.prototype={constructor:tr,select:function(t){"function"!=typeof t&&(t=y(t));for(var e=this._groups,n=e.length,r=Array(n),s=0;s<n;++s)for(var i,a,o=e[s],l=o.length,u=r[s]=Array(l),c=0;c<l;++c)(i=o[c])&&(a=t.call(i,i.__data__,c,o))&&("__data__"in i&&(a.__data__=i.__data__),u[c]=a);return new tr(r,this._parents)},selectAll:function(t){if("function"==typeof t){var e;e=t,t=function(){var t;return t=e.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}}else t=w(t);for(var n=this._groups,r=n.length,s=[],i=[],a=0;a<r;++a)for(var o,l=n[a],u=l.length,c=0;c<u;++c)(o=l[c])&&(s.push(t.call(o,o.__data__,c,l)),i.push(o));return new tr(s,i)},selectChild:function(t){var e;return this.select(null==t?k:(e="function"==typeof t?t:A(t),function(){return C.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?S:(e="function"==typeof t?t:A(t),function(){return j.call(this.children,e)}))},filter:function(t){"function"!=typeof t&&(t=b(t));for(var e=this._groups,n=e.length,r=Array(n),s=0;s<n;++s)for(var i,a=e[s],o=a.length,l=r[s]=[],u=0;u<o;++u)(i=a[u])&&t.call(i,i.__data__,u,a)&&l.push(i);return new tr(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,$);var n=e?I:N,r=this._parents,s=this._groups;"function"!=typeof t&&(v=t,t=function(){return v});for(var i=s.length,a=Array(i),o=Array(i),l=Array(i),u=0;u<i;++u){var c=r[u],f=s[u],h=f.length,d="object"==typeof(_=t.call(c,c&&c.__data__,u,r))&&"length"in _?_:Array.from(_),p=d.length,m=o[u]=Array(p),g=a[u]=Array(p);n(c,f,m,g,l[u]=Array(h),d,e);for(var _,v,y,x,w=0,b=0;w<p;++w)if(y=m[w]){for(w>=b&&(b=w+1);!(x=g[b])&&++b<p;);y._next=x||null}}return(a=new tr(a,r))._enter=o,a._exit=l,a},enter:function(){return new tr(this._enter||this._groups.map(M),this._parents)},exit:function(){return new tr(this._exit||this._groups.map(M),this._parents)},join:function(t,e,n){var r=this.enter(),s=this,i=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(s=e(s))&&(s=s.selection()),null==n?i.remove():n(i),r&&s?r.merge(s).order():s},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,s=n.length,i=r.length,a=Math.min(s,i),o=Array(s),l=0;l<a;++l)for(var u,c=n[l],f=r[l],h=c.length,d=o[l]=Array(h),p=0;p<h;++p)(u=c[p]||f[p])&&(d[p]=u);for(;l<s;++l)o[l]=n[l];return new tr(o,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,s=t[e],i=s.length-1,a=s[i];--i>=0;)(r=s[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=T);for(var n=this._groups,r=n.length,s=Array(r),i=0;i<r;++i){for(var a,o=n[i],l=o.length,u=s[i]=Array(l),c=0;c<l;++c)(a=o[c])&&(u[c]=a);u.sort(e)}return new tr(s,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],s=0,i=r.length;s<i;++s){var a=r[s];if(a)return a}return null},size:function(){let t=0;for(let e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var s,i=e[n],a=0,o=i.length;a<o;++a)(s=i[a])&&t.call(s,s.__data__,a,i);return this},attr:function(t,e){var n=O(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):R(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=X(t+"");if(arguments.length<2){for(var r=L(this.node()),s=-1,i=n.length;++s<i;)if(!r.contains(n[s]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?D:F)(this,t)}}:e?function(t){return function(){D(this,t)}}:function(t){return function(){F(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?U:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?K:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(Y)},lower:function(){return this.each(G)},append:function(t){var e="function"==typeof t?t:W(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:W(t),r=null==e?z:"function"==typeof e?e:y(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(Q)},clone:function(t){return this.select(t?J:H)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,s,i=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),a=i.length;if(arguments.length<2){var o=this.node().__on;if(o){for(var l,u=0,c=o.length;u<c;++u)for(r=0,l=o[u];r<a;++r)if((s=i[r]).type===l.type&&s.name===l.name)return l.value}return}for(o=e?tt:Z,r=0;r<a;++r)this.each(o(i[r],e,n));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return te(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return te(this,t,e)}})(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,s=t[e],i=0,a=s.length;i<a;++i)(r=s[i])&&(yield r)}},t.i(98952);var ti,ta,to=0,tl=0,tu=0,tc=0,tf=0,th=0,td="object"==typeof performance&&performance.now?performance:Date,tp="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function tm(){return tf||(tp(tg),tf=td.now()+th)}function tg(){tf=0}function t_(){this._call=this._time=this._next=null}function tv(t,e,n){var r=new t_;return r.restart(t,e,n),r}function ty(){tf=(tc=td.now())+th,to=tl=0;try{tm(),++to;for(var t,e=ti;e;)(t=tf-e._time)>=0&&e._call.call(void 0,t),e=e._next;--to}finally{to=0,function(){for(var t,e,n=ti,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:ti=e);ta=t,tw(r)}(),tf=0}}function tx(){var t=td.now(),e=t-tc;e>1e3&&(th-=e,tc=t)}function tw(t){!to&&(tl&&(tl=clearTimeout(tl)),t-tf>24?(t<1/0&&(tl=setTimeout(ty,t-td.now()-th)),tu&&(tu=clearInterval(tu))):(tu||(tc=td.now(),tu=setInterval(tx,1e3)),to=1,tp(ty)))}function tb(t,e,n){var r=new t_;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}t_.prototype=tv.prototype={constructor:t_,restart:function(t,e,n){if("function"!=typeof t)throw TypeError("callback is not a function");n=(null==n?tm():+n)+(null==e?0:+e),this._next||ta===this||(ta?ta._next=this:ti=this,ta=this),this._call=t,this._time=n,tw()},stop:function(){this._call&&(this._call=null,this._time=1/0,tw())}};var tA=m("start","end","cancel","interrupt"),tC=[];function tk(t,e,n,r,s,i){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,s=t.__transition;function i(l){var u,c,f,h;if(1!==n.state)return o();for(u in s)if((h=s[u]).name===n.name){if(3===h.state)return tb(i);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete s[u]):+u<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete s[u])}if(tb(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(l))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=Array(f=n.tween.length),u=0,c=-1;u<f;++u)(h=n.tween[u].value.call(t,t.__data__,n.index,n.group))&&(r[++c]=h);r.length=c+1}}function a(e){for(var s=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(o),n.state=5,1),i=-1,a=r.length;++i<a;)r[i].call(t,s);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),o())}function o(){for(var r in n.state=6,n.timer.stop(),delete s[e],s)return;delete t.__transition}s[e]=n,n.timer=tv(function(t){n.state=1,n.timer.restart(i,n.delay,n.time),n.delay<=t&&i(t-n.delay)},0,n.time)}(t,n,{name:e,index:r,group:s,on:tA,tween:tC,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:0})}function tj(t,e){var n=tM(t,e);if(n.state>0)throw Error("too late; already scheduled");return n}function tS(t,e){var n=tM(t,e);if(n.state>3)throw Error("too late; already running");return n}function tM(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw Error("transition not found");return n}var tE=t.i(11049),tN=180/Math.PI,tI={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function t$(t,e,n,r,s,i){var a,o,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(o=Math.sqrt(n*n+r*r))&&(n/=o,r/=o,l/=o),t*r<e*n&&(t=-t,e=-e,l=-l,a=-a),{translateX:s,translateY:i,rotate:Math.atan2(e,t)*tN,skewX:Math.atan(l)*tN,scaleX:a,scaleY:o}}function tT(t,e,n,r){function s(t){return t.length?t.pop()+" ":""}return function(i,a){var o,l,u,c,f=[],h=[];return i=t(i),a=t(a),!function(t,r,s,i,a,o){if(t!==s||r!==i){var l=a.push("translate(",null,e,null,n);o.push({i:l-4,x:(0,tE.f)(t,s)},{i:l-2,x:(0,tE.f)(r,i)})}else(s||i)&&a.push("translate("+s+e+i+n)}(i.translateX,i.translateY,a.translateX,a.translateY,f,h),o=i.rotate,l=a.rotate,o!==l?(o-l>180?l+=360:l-o>180&&(o+=360),h.push({i:f.push(s(f)+"rotate(",null,r)-2,x:(0,tE.f)(o,l)})):l&&f.push(s(f)+"rotate("+l+r),u=i.skewX,c=a.skewX,u!==c?h.push({i:f.push(s(f)+"skewX(",null,r)-2,x:(0,tE.f)(u,c)}):c&&f.push(s(f)+"skewX("+c+r),!function(t,e,n,r,i,a){if(t!==n||e!==r){var o=i.push(s(i)+"scale(",null,",",null,")");a.push({i:o-4,x:(0,tE.f)(t,n)},{i:o-2,x:(0,tE.f)(e,r)})}else(1!==n||1!==r)&&i.push(s(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,f,h),i=a=null,function(t){for(var e,n=-1,r=h.length;++n<r;)f[(e=h[n]).i]=e.x(t);return f.join("")}}}var tV=tT(function(t){let e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?tI:t$(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),tq=tT(function(t){return null==t?tI:(e||(e=document.createElementNS("http://www.w3.org/2000/svg","g")),e.setAttribute("transform",t),t=e.transform.baseVal.consolidate())?t$((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tI},", ",")",")");function tO(t,e,n){var r=t._id;return t.each(function(){var t=tS(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return tM(t,r).value[e]}}var tP=t.i(19903),tR=t.i(25369),tX=t.i(47672),tX=tX,tL=t.i(74037),tL=tL;function tB(t,e){var n;return("number"==typeof e?tR.f:e instanceof tP.f?tX.f:(n=(0,tP.f)(e))?(e=n,tX.f):tL.f)(t,e)}var tD=ts.prototype.constructor;function tF(t){return function(){this.style.removeProperty(t)}}var tU=0;function tK(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}var tY=ts.prototype;tK.prototype=(function(t){return ts().transition(t)}).prototype={constructor:tK,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=y(t));for(var r=this._groups,s=r.length,i=Array(s),a=0;a<s;++a)for(var o,l,u=r[a],c=u.length,f=i[a]=Array(c),h=0;h<c;++h)(o=u[h])&&(l=t.call(o,o.__data__,h,u))&&("__data__"in o&&(l.__data__=o.__data__),f[h]=l,tk(f[h],e,n,h,f,tM(o,n)));return new tK(i,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=w(t));for(var r=this._groups,s=r.length,i=[],a=[],o=0;o<s;++o)for(var l,u=r[o],c=u.length,f=0;f<c;++f)if(l=u[f]){for(var h,d=t.call(l,l.__data__,f,u),p=tM(l,n),m=0,g=d.length;m<g;++m)(h=d[m])&&tk(h,e,n,m,d,p);i.push(d),a.push(l)}return new tK(i,a,e,n)},selectChild:tY.selectChild,selectChildren:tY.selectChildren,filter:function(t){"function"!=typeof t&&(t=b(t));for(var e=this._groups,n=e.length,r=Array(n),s=0;s<n;++s)for(var i,a=e[s],o=a.length,l=r[s]=[],u=0;u<o;++u)(i=a[u])&&t.call(i,i.__data__,u,a)&&l.push(i);return new tK(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw Error();for(var e=this._groups,n=t._groups,r=e.length,s=n.length,i=Math.min(r,s),a=Array(r),o=0;o<i;++o)for(var l,u=e[o],c=n[o],f=u.length,h=a[o]=Array(f),d=0;d<f;++d)(l=u[d]||c[d])&&(h[d]=l);for(;o<r;++o)a[o]=e[o];return new tK(a,this._parents,this._name,this._id)},selection:function(){return new tD(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=++tU,r=this._groups,s=r.length,i=0;i<s;++i)for(var a,o=r[i],l=o.length,u=0;u<l;++u)if(a=o[u]){var c=tM(a,e);tk(a,t,n,u,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new tK(r,this._parents,t,n)},call:tY.call,nodes:tY.nodes,node:tY.node,size:tY.size,empty:tY.empty,each:tY.each,on:function(t,e){var n,r,s,i,a,o,l=this._id;return arguments.length<2?tM(this.node(),l).on.on(t):this.each((n=l,r=t,s=e,o=(r+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})?tj:tS,function(){var t=o(this,n),e=t.on;e!==i&&(a=(i=e).copy()).on(r,s),t.on=a}))},attr:function(t,e){var n=O(t),r="transform"===n?tq:tB;return this.attrTween(t,"function"==typeof e?(n.local?function(t,e,n){var r,s,i;return function(){var a,o,l=n(this);return null==l?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local))===(o=l+"")?null:a===r&&o===s?i:(s=o,i=e(r=a,l))}}:function(t,e,n){var r,s,i;return function(){var a,o,l=n(this);return null==l?void this.removeAttribute(t):(a=this.getAttribute(t))===(o=l+"")?null:a===r&&o===s?i:(s=o,i=e(r=a,l))}})(n,r,tO(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(t,e,n){var r,s,i=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===i?null:a===r?s:s=e(r=a,n)}}:function(t,e,n){var r,s,i=n+"";return function(){var a=this.getAttribute(t);return a===i?null:a===r?s:s=e(r=a,n)}})(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw Error();var r=O(t);return this.tween(n,(r.local?function(t,e){var n,r;function s(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&function(e){this.setAttributeNS(t.space,t.local,s.call(this,e))}),n}return s._value=e,s}:function(t,e){var n,r;function s(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&function(e){this.setAttribute(t,s.call(this,e))}),n}return s._value=e,s})(r,e))},style:function(t,e,n){var r,s,i,a,o,l,u,c,f,h,d,p,m,g,_,v,y,x,w,b,A,C="transform"==(t+="")?tV:tB;return null==e?this.styleTween(t,(r=t,function(){var t=R(this,r),e=(this.style.removeProperty(r),R(this,r));return t===e?null:t===s&&e===i?a:a=C(s=t,i=e)})).on("end.style."+t,tF(t)):"function"==typeof e?this.styleTween(t,(o=t,l=tO(this,"style."+t,e),function(){var t=R(this,o),e=l(this),n=e+"";return null==e&&(this.style.removeProperty(o),n=e=R(this,o)),t===n?null:t===u&&n===c?f:(c=n,f=C(u=t,e))})).each((h=this._id,y="end."+(v="style."+(d=t)),function(){var t=tS(this,h),e=t.on,n=null==t.value[v]?_||(_=tF(d)):void 0;(e!==p||g!==n)&&(m=(p=e).copy()).on(y,g=n),t.on=m})):this.styleTween(t,(x=t,A=e+"",function(){var t=R(this,x);return t===A?null:t===w?b:b=C(w=t,e)}),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw Error();return this.tween(r,function(t,e,n){var r,s;function i(){var i=e.apply(this,arguments);return i!==s&&(r=(s=i)&&function(e){this.style.setProperty(t,i.call(this,e),n)}),r}return i._value=e,i}(t,e,null==n?"":n))},text:function(t){var e,n;return this.tween("text","function"==typeof t?(e=tO(this,"text",t),function(){var t=e(this);this.textContent=null==t?"":t}):(n=null==t?"":t+"",function(){this.textContent=n}))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw Error();return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){this.textContent=r.call(this,t)}),e}return r._value=t,r}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,s=tM(this.node(),n).tween,i=0,a=s.length;i<a;++i)if((r=s[i]).name===t)return r.value;return null}return this.each((null==e?function(t,e){var n,r;return function(){var s=tS(this,t),i=s.tween;if(i!==n){r=n=i;for(var a=0,o=r.length;a<o;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}}s.tween=r}}:function(t,e,n){var r,s;if("function"!=typeof n)throw Error();return function(){var i=tS(this,t),a=i.tween;if(a!==r){s=(r=a).slice();for(var o={name:e,value:n},l=0,u=s.length;l<u;++l)if(s[l].name===e){s[l]=o;break}l===u&&s.push(o)}i.tween=s}})(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tj(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e*=1,function(){tj(this,t).delay=e}})(e,t)):tM(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tS(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e*=1,function(){tS(this,t).duration=e}})(e,t)):tM(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw Error();return function(){tS(this,t).ease=e}}(e,t)):tM(this.node(),e).ease},easeVarying:function(t){var e;if("function"!=typeof t)throw Error();return this.each((e=this._id,function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw Error();tS(this,e).ease=n}))},end:function(){var t,e,n=this,r=n._id,s=n.size();return new Promise(function(i,a){var o={value:a},l={value:function(){0==--s&&i()}};n.each(function(){var n=tS(this,r),s=n.on;s!==t&&((e=(t=s).copy())._.cancel.push(o),e._.interrupt.push(o),e._.end.push(l)),n.on=e}),0===s&&i()})},[Symbol.iterator]:tY[Symbol.iterator]};var tG={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};ts.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var n,r,s,i=t.__transition,a=!0;if(i){for(s in e=null==e?null:e+"",i){if((n=i[s]).name!==e){a=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete i[s]}a&&delete t.__transition}}(this,t)})},ts.prototype.transition=function(t){var e,n;t instanceof tK?(e=t._id,t=t._name):(e=++tU,(n=tG).time=tm(),t=null==t?null:t+"");for(var r=this._groups,s=r.length,i=0;i<s;++i)for(var a,o=r[i],l=o.length,u=0;u<l;++u)(a=o[u])&&tk(a,t,e,u,o,n||function(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw Error(`transition ${e} not found`);return n}(a,e));return new tK(r,this._parents,t,e)};let{abs:tW,max:tz,min:tQ}=Math;function tH(t){return{type:t}}function tJ(t){return((t=Math.exp(t))+1/t)/2}function tZ(t,e,n){this.k=t,this.x=e,this.y=n}["w","e"].map(tH),["n","s"].map(tH),["n","w","e","s","nw","ne","sw","se"].map(tH),!function t(e,n,r){function s(t,s){var i,a,o=t[0],l=t[1],u=t[2],c=s[0],f=s[1],h=s[2],d=c-o,p=f-l,m=d*d+p*p;if(m<1e-12)a=Math.log(h/u)/e,i=function(t){return[o+t*d,l+t*p,u*Math.exp(e*t*a)]};else{var g=Math.sqrt(m),_=(h*h-u*u+r*m)/(2*u*n*g),v=(h*h-u*u-r*m)/(2*h*n*g),y=Math.log(Math.sqrt(_*_+1)-_);a=(Math.log(Math.sqrt(v*v+1)-v)-y)/e,i=function(t){var r,s,i=t*a,c=tJ(y),f=u/(n*g)*(c*(((r=Math.exp(2*(r=e*i+y)))-1)/(r+1))-((s=Math.exp(s=y))-1/s)/2);return[o+f*d,l+f*p,u*c/tJ(e*i+y)]}}return i.duration=1e3*a*e/Math.SQRT2,i}return s.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},s}(Math.SQRT2,2,4),tZ.prototype={constructor:tZ,scale:function(t){return 1===t?this:new tZ(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new tZ(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new tZ(1,0,0);tZ.prototype;var t0=t.i(28120),t0=t0;let t1=function(t){for(var e=t.length/6|0,n=Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");var t2=t.i(13938),t6=t.i(41158),t5=t.i(28917),t5=t5,t3=t.i(59015),t3=t3,t9=t.i(31599),t9=t9,t8=t.i(42469),t4=t.i(1880);let t7=(0,t0.U)(t1),et=({data:t,options:e={}})=>{let{formatMessage:s}=(0,r.X)(),a=(0,i.useRouter)(),o=((t,e={})=>{t.forEach((t,e)=>t.forEach(t=>{t.level=e}));let n=t.reduce((t,e)=>t.concat(e),[]),r={};n.forEach(t=>{r[t.id]=t}),n.forEach(t=>{t.parents=(void 0===t.parents?[]:t.parents).map(t=>r[t])}),t.forEach((t,e)=>{let n={};t.forEach(t=>{if(0===t.parents.length)return;let r=t.parents.filter(Boolean).map(t=>t.id).sort().join("-X-");r in n?n[r].parents=n[r].parents.concat(t.parents):n[r]={id:r,parents:t.parents.slice(),level:e,span:e-(0,t5.f)(t.parents,t=>t?.level)},t.bundle=n[r]}),t.bundles=Object.keys(n).map(t=>n[t]),t.bundles.forEach((t,e)=>{t.i=e})});let s=[];n.forEach(t=>{t.parents.forEach(e=>s.push({source:t,bundle:t.bundle,target:e}))});let i=t.reduce((t,e)=>t.concat(e.bundles),[]);(i||[]).forEach(t=>t.parents.filter(Boolean).forEach(e=>{e?.bundles_index===void 0&&(e.bundles_index={}),t.id in(e?.bundles_index||[])||(e.bundles_index[t.id]=[]),e.bundles_index[t.id].push(t)})),n.forEach(t=>{void 0!==t.bundles_index?t.bundles=Object.keys(t.bundles_index).map(e=>t.bundles_index[e]):(t.bundles_index={},t.bundles=[]),t.bundles.sort((t,e)=>(0,t9.f)((0,t3.f)(t,t=>t.span),(0,t3.f)(e,t=>t.span))),t.bundles.forEach((t,e)=>{t.i=e})}),s.forEach(t=>{void 0===t.bundle.links&&(t.bundle.links=[]),t.bundle.links.push(t)}),e.c||=16;let{c:a}=e;e.bigc||=100+a,n.forEach(t=>t.height=(Math.max(1,t.bundles.length)-1)*4);let o=8,l=8;t.forEach(t=>{o+=14*t.bundles.length,l+=16,t.forEach(t=>{t.x=100*t.level+o,t.y=30+l+t.height/2,l+=30+t.height})});let u=0;t.forEach(t=>{t.bundles.filter(Boolean).forEach(e=>{e.x=(0,t3.f)(e.parents,t=>t?.x)+100+(t.bundles.length-1-e.i)*14,e.y=30*u}),u+=t.length}),s.forEach(t=>{t.xt=t.target.x,t.yt=t.target.y+4*t.target.bundles_index[t.bundle.id].i-4*t.target.bundles.length/2+2,t.xb=t.bundle.x,t.yb=t.bundle.y,t.xs=t.source.x,t.ys=t.source.y});let c=0;t.forEach(t=>{c+=-22+(0,t5.f)(t.bundles,t=>(0,t5.f)(t.links,t=>t.ys-2*a-(t.yt+a)))||0,t.forEach(t=>t.y-=c)}),s.forEach(t=>{t.yt=t.target.y+4*t.target.bundles_index[t.bundle.id].i-4*t.target.bundles.length/2+2,t.ys=t.source.y,t.c1=t.source.level-t.target.level>1?Math.min(e.bigc,t.xb-t.xt,t.yb-t.yt)-a:a,t.c2=a});let f={width:(0,t3.f)(n,t=>t.x)+100+16,height:(0,t3.f)(n,t=>t.y)+15+16,node_height:30,node_width:100,bundle_width:14,level_y_padding:16,metro_d:4};return{levels:t,nodes:n,nodes_index:r,links:s,bundles:i,layout:f}})(t,e);return e.color||=(t,e)=>t7(e),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"absolute top-2 left-8",children:(0,n.jsx)("button",{type:"button",className:"inline-flex items-center justify-center px-2 py-2 hover:bg-amber-100 dark:hover:bg-yellow-700 rounded-full focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-yellow-600 dark:focus:ring-yellow-500",onClick:()=>a.back(),children:(0,n.jsx)(t2.f,{className:"h-6 w-6 text-teal-600 hover:text-teal-800"})})}),(0,n.jsxs)("svg",{id:"tangle-tree",width:"100%",height:`${o.layout.height+6}`,className:"fill-transparent pt-2 mx-10 w-full",children:[o.bundles.map((t,r)=>{let s=t.links.map(t=>`
2
- M${t.xt} ${t.yt}
3
- L${t.xb-t.c1} ${t.yt}
4
- A${t.c1} ${t.c1} 90 0 1 ${t.xb} ${t.yt+t.c1}
5
- L${t.xb} ${t.ys-t.c2}
6
- A${t.c2} ${t.c2} 90 0 0 ${t.xb+t.c2} ${t.ys}
7
- L${t.xs} ${t.ys}`).join("");return(0,n.jsxs)(d.Fragment,{children:[(0,n.jsx)("path",{className:"link stroke-white dark:stroke-slate-600",d:`${s}`,strokeWidth:"5"}),(0,n.jsx)("path",{className:"link",d:`${s}`,stroke:`${e.color(t,r)}`,strokeWidth:"2"})]},s)}),o.nodes.map((t,e)=>(0,n.jsxs)(d.Fragment,{children:[(0,n.jsx)("path",{className:"selectable node","data-id":`${t.id}`,stroke:"black",strokeWidth:"8",d:`M${t.x} ${t.y-t.height/2} L${t.x} ${t.y+t.height/2}`}),(0,n.jsx)("path",{className:"node",stroke:"white",strokeWidth:"4",d:`M${t.x} ${t.y-t.height/2} L${t.x} ${t.y+t.height/2}`}),(0,n.jsx)("foreignObject",{"data-id":`${t.id}`,x:`${t.x+4}`,y:`${t.y-t.height/2-4}`,width:"100%",height:"100%",children:(0,n.jsxs)("div",{children:[(0,n.jsx)(t6.default,{href:`/assortments?assortmentSlug=${(0,t4.U)({_id:t?.id,texts:t})}`,className:'className="selectable text-slate-950 hover:text-slate-950 dark:text-lime-400 dark:hover:text-lime-500 text-base',id:"root",children:t?.title}),t?.childCount!==void 0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t6.default,{href:`/assortments?viewGraph=true&slug=${(0,t4.U)({_id:t?.id,texts:t})}`,className:"text-slate-900 dark:text-fuchsia-400 dark:hover:text-fuchsia-600 ml-2 inline-flex items-center px-4 border border-slate-300 shadow-xs text-sm font-medium rounded-md bg-white dark:bg-slate-500 hover:bg-slate-50 dark:hover:bg-slate-400 focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-focus-ring",children:s({id:"children",defaultMessage:"Children:"})}),(0,n.jsx)(t8.f,{text:t?.childCount,color:"purple",className:"inline-block mx-2 dark:bg-slate-500 dark:text-purple-400"})]})]})})]},`${t.id}+${e}`))]})]})},ee=({assortments:t})=>(0,n.jsx)("div",{className:"relative w-full h-max rounded-lg bg-white dark:shadow-none dark:bg-slate-900 text-text-primary",children:(0,n.jsx)(et,{data:[t?.map(t=>({id:t?._id,slug:t?.texts.slug,title:t?.texts.title,subtitle:t?.texts.subtitle})),t?.map(t=>t?.children?.map(e=>({id:e?._id,slug:e?.texts.slug,title:e?.texts.title,subtitle:e?.texts.subtitle,childCount:e?.childrenCount,parents:[t?._id]})))?.flat()].filter(Boolean)})});var en=t.i(59080),er=t.i(32171);let es=en.a`
8
- fragment AssortmentChildrenFragment on Assortment {
9
- _id
10
- texts {
11
- _id
12
- slug
13
- title
14
- subtitle
15
- }
16
- childrenCount
17
- }
18
- `,ei=en.a`
19
- query AssortmentChildren(
20
- $slugs: [String!]
21
- $includeInactive: Boolean
22
- $includeLeaves: Boolean
23
- ) {
24
- assortments(
25
- slugs: $slugs
26
- includeInactive: $includeInactive
27
- includeLeaves: $includeLeaves
28
- ) {
29
- ...AssortmentChildrenFragment
30
- children {
31
- ...AssortmentChildrenFragment
32
- }
33
- }
34
- }
35
- ${es}
36
- `;var ea=t.i(57561);let eo=({options:t})=>{let{includeInactive:e,slug:r}=t,{selectedLocale:s}=(0,ea.f)(),{assortments:i,loading:a}=(({slugs:t,includeInactive:e=!1,includeLeaves:n=!1,forceLocale:r})=>{let s=t?.map(t=>(0,t4.P)(t)),{data:i,loading:a,error:o}=(0,er.f)(ei,{variables:{slugs:s,includeInactive:e,includeLeaves:n},context:{headers:{forceLocale:r}}});return{assortments:i?.assortments||[],loading:a,error:o}})({slugs:r?[r].filter(Boolean):null,includeInactive:e,includeLeaves:!!r,forceLocale:s});return(0,n.jsx)("div",{className:"mt-5",children:a?(0,n.jsx)(h.f,{}):(0,n.jsx)(ee,{assortments:i})})};var el=t.i(78704),eu=t.i(83147),ec=t.i(37547),ef=t.i(8918),eh=t.i(71800),ed=t.i(97224),ep=t.i(70050),em=t.i(71977),eg=t.i(76204);let e_=en.a`
37
- mutation BulkRemoveAssortments($assortmentIds: [ID!]!) {
38
- bulkRemoveAssortments(assortmentIds: $assortmentIds) {
39
- successCount
40
- failedCount
41
- failedIds
42
- }
43
- }
44
- `,ev=en.a`
45
- mutation BulkUpdateAssortmentTags(
46
- $assortmentIds: [ID!]!
47
- $add: [LowerCaseString!]
48
- $remove: [LowerCaseString!]
49
- ) {
50
- bulkUpdateAssortmentTags(
51
- assortmentIds: $assortmentIds
52
- add: $add
53
- remove: $remove
54
- ) {
55
- successCount
56
- failedCount
57
- failedIds
58
- }
59
- }
60
- `,ey=en.a`
61
- mutation BulkSetAssortmentActive(
62
- $assortmentIds: [ID!]!
63
- $isActive: Boolean!
64
- ) {
65
- bulkSetAssortmentActive(
66
- assortmentIds: $assortmentIds
67
- isActive: $isActive
68
- ) {
69
- successCount
70
- failedCount
71
- failedIds
72
- }
73
- }
74
- `,ex=["Assortments","AssortmentsCount"];var ew=t.i(70316),eb=t.i(77043),eA=t.i(3095),eC=t.i(6607),ek=t.i(15971),ej=t.i(921),eS=t.i(75818);let eM=({assortment:t,showAvatar:e,isSelected:a=!1,onToggleSelect:o,showCheckbox:l=!1})=>{let{formatMessage:u}=(0,r.X)(),c=(0,i.useRouter)(),{hasRole:h}=(0,f.f)(),{setModal:d}=(0,eC.f)(),{updateAssortment:p}=(0,ej.f)(),{removeAssortment:m}=(0,eS.f)(),g={true:u({id:"active",defaultMessage:"Active"}),false:u({id:"in_active",defaultMessage:"In-Active"})},_=async()=>{await d((0,n.jsx)(ek.f,{onCancelClick:async()=>d(""),message:u({id:"delete_assortment_warning",defaultMessage:"This action will permanently delete this assortment and all associated data. Are you sure you want to continue?"}),onOkClick:async()=>{d(""),await m({assortmentId:t._id})},okText:u({id:"delete_assortment",defaultMessage:"Delete Assortment"})}))},v=async e=>{e.target.value&&await p({assortmentId:t?._id,assortment:{sequence:parseInt(e.target.value,10)}})};return(0,n.jsxs)(ef.f.Row,{children:[l&&(0,n.jsx)(ef.f.Cell,{children:(0,n.jsx)("input",{type:"checkbox",checked:a,onChange:o,className:"h-4 w-4 rounded border-slate-300 text-slate-800 focus:ring-slate-800 cursor-pointer",onClick:t=>t.stopPropagation()})}),(0,n.jsx)(ef.f.Cell,{className:"whitespace-nowrap",children:(0,n.jsxs)("div",{className:"flex items-center text-sm text-slate-900",children:[e&&(0,n.jsx)(eb.f,{file:t?.media?.length&&t.media[0].file,className:"mr-3"}),(0,n.jsx)(t6.default,{href:`/assortments?assortmentSlug=${(0,t4.U)(t)}`,className:"text-text-primary",children:t?.texts?.title||(0,n.jsxs)(n.Fragment,{children:[t._id," ",(0,n.jsx)(t8.f,{color:"blue",text:u({id:"name",defaultMessage:"Name"})})]})})]})}),(0,n.jsx)(ef.f.Cell,{className:"whitespace-nowrap",children:(0,n.jsx)(t8.f,{text:g[t.isActive],color:t.isActive?"emerald":"yellow",square:!0})}),(0,n.jsx)(ef.f.Cell,{className:"whitespace-nowrap",children:(0,n.jsx)("div",{className:"flex items-center text-sm text-slate-900",children:t.isRoot&&(0,n.jsx)(t8.f,{text:u({id:"root_assortment",defaultMessage:"Root"}),color:"stone",square:!0})})}),(0,n.jsx)(ef.f.Cell,{children:(0,n.jsx)("input",{type:"number",id:`${t._id}-sequence`,className:"text-center w-16 shadow-xs focus:ring-focus-ring dark:bg-slate-800 dark:border-slate-700 focus:border-slate-900 block text-sm border-slate-300 rounded-md mr-2 font-semibold text-text-primary",defaultValue:t?.sequence,onBlur:v,disabled:!h(s.C.ManageAssortments)})}),(0,n.jsx)(ef.f.Cell,{className:"text-right",children:(0,n.jsx)(eA.f,{onEdit:()=>{c.push(`/assortments?assortmentSlug=${(0,t4.U)(t)}`)},onDelete:_,showEdit:!0,showDelete:h(s.C.ManageAssortments)})})]})},eE=({assortments:t,showAvatar:e=!0,sortable:i,availableTagOptions:a=[]})=>{let{formatMessage:o}=(0,r.X)(),{hasRole:l}=(0,f.f)(),u=t?.map(t=>t._id)||[],{selectedIds:c,selectedCount:h,allSelected:d,toggle:p,selectAll:m,clearAll:g,isSelected:_,toggleAll:v}=(0,ep.f)(u),{bulkRemoveAssortments:y,bulkUpdateAssortmentTags:x,bulkSetAssortmentActive:w}=(()=>{let[t]=(0,eg.f)(e_),[e]=(0,eg.f)(ev),[n]=(0,eg.f)(ey);return{bulkRemoveAssortments:e=>t({variables:{assortmentIds:e},refetchQueries:ex,awaitRefetchQueries:!0}),bulkUpdateAssortmentTags:(t,n,r)=>e({variables:{assortmentIds:t,add:n,remove:r},refetchQueries:ex,awaitRefetchQueries:!0}),bulkSetAssortmentActive:(t,e)=>n({variables:{assortmentIds:t,isActive:e},refetchQueries:ex,awaitRefetchQueries:!0})}})(),b=(0,em.f)(),A=(0,ew.f)(),C=l(s.C.BulkSetAssortmentActive),k=l(s.C.BulkUpdateAssortmentTags),j=l(s.C.BulkRemoveAssortments),S=[...C?[{key:"activate",label:o({id:"bulk_activate",defaultMessage:"Activate"}),onAction:t=>b(()=>w(t,!0),"bulkSetAssortmentActive")},{key:"deactivate",label:o({id:"bulk_deactivate",defaultMessage:"Deactivate"}),onAction:t=>b(()=>w(t,!1),"bulkSetAssortmentActive")}]:[],...k?[{key:"update-tags",label:o({id:"bulk_update_tags",defaultMessage:"Update Tags"}),renderForm:({onSubmit:t,onCancel:e,loading:r})=>(0,n.jsx)(ed.f,{onSubmit:t,onCancel:e,loading:r,availableTagOptions:a}),onAction:(t,e)=>{let{add:n,remove:r}=e||{};return b(()=>x(t,n,r),"bulkUpdateAssortmentTags")}}]:[],...j?[{key:"delete",label:o({id:"bulk_delete",defaultMessage:"Delete"}),variant:"danger",onAction:t=>A({message:o({id:"bulk_delete_assortments_warning",defaultMessage:"This will permanently delete {count} assortments. Are you sure?"},{count:t.length}),okText:o({id:"delete_assortments",defaultMessage:"Delete Assortments"}),onConfirm:()=>b(()=>y(t),"bulkRemoveAssortments")})}]:[]],M=S.length>0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eh.f,{selectedCount:h,selectedIds:c,onClear:g,onSelectionChange:m,actions:S}),(0,n.jsxs)(ef.f,{className:"min-w-full",children:[t?.map(t=>(0,n.jsxs)(ef.f.Row,{header:!0,enablesort:i,children:[M&&(0,n.jsx)(ef.f.Cell,{children:(0,n.jsx)("input",{type:"checkbox",checked:d,onChange:v,className:"h-4 w-4 rounded border-slate-300 text-slate-800 focus:ring-slate-800 cursor-pointer",onClick:t=>t.stopPropagation()})}),(0,n.jsx)(ef.f.Cell,{children:o({id:"name",defaultMessage:"Name"})}),(0,n.jsx)(ef.f.Cell,{sortKey:"isActive",children:o({id:"active",defaultMessage:"Active"})}),(0,n.jsx)(ef.f.Cell,{sortKey:"isRoot",children:o({id:"root",defaultMessage:"Root"})}),(0,n.jsx)(ef.f.Cell,{sortKey:"sequence",defaultSortDirection:"ASC",children:o({id:"sequence",defaultMessage:"Display Order"})}),(0,n.jsx)(ef.f.Cell,{children:" "})]},t._id)),t?.map(t=>(0,n.jsx)(eM,{showAvatar:e,assortment:t,isSelected:_(t._id),onToggleSelect:()=>p(t._id),showCheckbox:M},`${t?._id}-body`))]})]})},eN=({options:t,queryString:e,sortable:r,availableTagOptions:s})=>{let{includeInactive:i,includeLeaves:a,limit:o,offset:l,tags:u,slug:c,sort:f}=t,{selectedLocale:d}=(0,ea.f)(),p=(0,eu.R)(f),{assortments:m,loading:g,loadMore:_,hasMore:v}=(0,ec.f)({queryString:e,includeInactive:i,includeLeaves:a,limit:o,offset:l,tags:u,slugs:c,sort:p,forceLocale:d});return g&&m?.length===0?(0,n.jsx)(h.f,{}):(0,n.jsx)(el.f,{loading:g,hasMore:v,onLoadMore:_,children:(0,n.jsx)(eE,{assortments:m,sortable:r,availableTagOptions:s})})};var eI=t.i(51128),e$=t.i(89462),eT=t.i(98568),eV=t.i(11056),eq=t.i(25093),eO=t.i(21623),eP=t.i(60513);let eR=["_id","isActive","isRoot","sequence","tags"],eX=["title","subtitle","description","slug"],eL=["_id","assortmentId","filterId","tags","sortKey"],eB=["_id","assortmentId","productId","tags","sortKey"],eD=["_id","assortmentId","childAssortmentId","tags","sortKey"];var eF=t.i(75284);let eU=({includeInactive:t,includeLeaves:e,queryString:s,tags:i})=>{let{setModal:a}=(0,eC.f)(),{assortmentsCount:o,loading:l}=(0,e$.f)({queryString:s,includeInactive:t,includeLeaves:e,tags:i}),{exportAssortments:u,isExporting:c}=(()=>{let{exportCSV:t,isExporting:e}=(0,eP.f)();return{exportAssortments:(0,d.useCallback)(async e=>{await t({type:"ASSORTMENTS",...e})},[t]),isExporting:e}})(),{formatMessage:f}=(0,r.X)(),h=[{key:"exportAssortments",label:f({id:"assortments",defaultMessage:"Assortments"}),defaultChecked:!0},{key:"exportProducts",label:f({id:"assortment_products",defaultMessage:"Assortment products"}),defaultChecked:!0},{key:"exportLinks",label:f({id:"assortment_links",defaultMessage:"Assortment links"}),defaultChecked:!0},{key:"exportFilters",label:f({id:"assortment_filters",defaultMessage:"Assortment filters"}),defaultChecked:!0}],p=(0,d.useCallback)(async n=>{await u({queryString:s,includeInactive:t,includeLeaves:e,tags:i,...n}),a(null)},[s,t,e,i,u,a]);return l?null:(0,n.jsx)(eO.f,{onClick:()=>{a((0,n.jsx)(eF.f,{options:h,onSubmit:p,loading:c}))},disabled:c||!o,variant:"secondary",text:f(c?{id:"exporting",defaultMessage:"Exporting..."}:{id:"export",defaultMessage:"Export"})})};var eK=t.i(78193),eY=t.i(42912),eG=t.i(22003);let eW=t=>{let e={};return Object.entries(t).forEach(([t,n])=>{if(!t.startsWith("texts."))return;let[,r,s]=t.split(".");e[r]||={},e[r][s]=n||""}),Object.keys(e).forEach(t=>{Object.values(e[t]).every(t=>!t)||delete e[t]}),Object.keys(e).length?e:null},ez=({assortmentCSV:t,assortmentChildrenCSV:e,assortmentFiltersCSV:n,assortmentProductsCSV:r},s)=>{let i=[];for(let e of t)eW(e)||i.push(s.formatMessage({id:"assortment_import_localized_texts_missing",defaultMessage:"Title is required"}));for(let t of e)t.assortmentId||i.push(s.formatMessage({id:"assortment_children_CSV_import_assortment_id_missing",defaultMessage:"Child csv record missing assortmentId"})),t.childAssortmentId||i.push(s.formatMessage({id:"assortment_children_CSV_import_child_id_missing",defaultMessage:"Child csv record missing childAssortmentId"}));for(let t of n)t.assortmentId||i.push(s.formatMessage({id:"assortment_filter_CSV_import_assortment_id_missing",defaultMessage:"Assortment filter csv record missing assortmentId"})),t.filterId||i.push(s.formatMessage({id:"assortment_filter_CSV_import_filter_id_missing",defaultMessage:"Assortment filter csv record missing filterId"}));for(let t of r)t.assortmentId||i.push(s.formatMessage({id:"assortment_product_CSV_import_assortment_id_missing",defaultMessage:"Product csv record missing assortmentId"})),t.productId||i.push(s.formatMessage({id:"assortment_product_CSV_import_product_id_missing",defaultMessage:"Product csv record missing productId"}));return i};var eQ=t.i(72552),eH=t.i(16785);let eJ={assortmentCSV:eR,assortmentChildrenCSV:eD,assortmentFiltersCSV:eL,assortmentProductsCSV:eB},eZ=({onImport:t})=>{let e=(0,d.useRef)({}),{languageDialectList:s}=(0,ea.f)(),i=s?.map(t=>t.isoCode)||[],[a,o]=(0,d.useState)({}),[l,u]=(0,d.useState)({assortmentCSV:[],assortmentProductsCSV:[],assortmentChildrenCSV:[],assortmentFiltersCSV:[]}),[c,f]=(0,d.useState)(!1),{formatMessage:h}=(0,r.X)(),p=[{key:"assortmentCSV",label:h({id:"assortment_csv_file",defaultMessage:"Assortments CSV"})},{key:"assortmentProductsCSV",label:h({id:"assortment_products_csv_file",defaultMessage:"Assortment products CSV (Optional)"}),optional:!0},{key:"assortmentChildrenCSV",label:h({id:"assortment_children_csv_file",defaultMessage:"Assortment children CSV (Optional)"}),optional:!0},{key:"assortmentFiltersCSV",label:h({id:"assortment_filters_csv_file",defaultMessage:"Assortment filters CSV (Optional)"}),optional:!0}],m=async t=>{let e=await t.text();return eQ.default.parse(e,{header:!0,skipEmptyLines:!0}).data},g=async(t,e)=>{if(!e)return;let n=await m(e);((t,e)=>{if(!e.length)return!1;let n=Object.keys(e[0]),r=eJ[t].filter(t=>!n.includes(t));return r.length?(o(e=>({...e,[t]:h({id:"csv_missing_fields",defaultMessage:"Missing required columns: {fields}"},{fields:r.join(", ")})})),!1):(o(e=>({...e,[t]:void 0})),!0)})(t,n)?u(e=>({...e,[t]:n})):u(e=>({...e,[t]:[]}))},_=async(t,e)=>{let n=t.target.files?.[0];await g(e,n),t.target.value=""},v=(0,d.useCallback)(async()=>{f(!0);try{await t(l)}catch(t){console.error("Error importing assortments:",t)}finally{f(!1)}},[l,t]),y=l.assortmentCSV.length>0,x=Object.values(a).some(Boolean);return(0,n.jsxs)("div",{className:"max-w-md mx-auto p-6 bg-gray-50 border border-gray-200 rounded-lg flex flex-col gap-4",children:[(0,n.jsx)("h3",{className:"text-center text-lg font-semibold",children:h({id:"assortments_import_title",defaultMessage:"Import Assortments"})}),(0,n.jsx)("p",{className:"text-center text-sm text-gray-600",children:h({id:"assortment_import_description",defaultMessage:"Select your assortments CSV and optional related CSV files, then click Import."})}),p.map(({key:t,label:r,optional:s})=>(0,n.jsx)(d.default.Fragment,{children:(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("input",{ref:n=>{e.current[t]=n??null},type:"file",accept:".csv",onChange:e=>_(e,t),className:"hidden"}),(0,n.jsxs)("div",{className:"flex justify-between items-center gap-2",children:[(0,n.jsx)(eO.f,{text:l[t].length?h({id:`${t}_file_selected`,defaultMessage:`${r} Selected`}):h({id:`select_${t}`,defaultMessage:`Select ${r}`}),onClick:()=>e.current[t]?.click(),variant:"secondary",className:"flex-1",disabled:c||!y&&s}),(0,n.jsx)("button",{type:"button",className:"text-xs text-blue-600 hover:underline",title:"Download a CSV template with required columns",onClick:()=>((t,e,n=[])=>{let r=((t,e=[])=>{if("assortmentCSV"===t)return[...eR,...e.flatMap(t=>eX.map(e=>`texts.${t}.${e}`))];return"assortmentChildrenCSV"===t?[...eD]:"assortmentFiltersCSV"===t?[...eL]:"assortmentProductsCSV"===t?[...eB]:[]})(t,n).join(",");(0,eH.f)(r,e)})(t,`${t}_template.csv`,i),children:h({id:"download_csv_template",defaultMessage:"Download template"})})]}),a[t]&&(0,n.jsxs)("p",{className:"text-red-600 text-xs flex items-center gap-1",children:["⚠ ",a[t]]})]},t)},t)),(0,n.jsx)(eO.f,{text:c?h({id:"importing",defaultMessage:"Importing..."}):h({id:"import",defaultMessage:"Import"}),onClick:v,disabled:c||!y||x,variant:"primary",className:"w-full"}),y&&!x&&(0,n.jsx)("p",{className:"text-center text-xs text-gray-500",children:h({id:"ready_to_import_assortments",defaultMessage:"Ready to import {assortments} assortments{products}{children}{filters}."},{assortments:l.assortmentCSV.length,products:l.assortmentProductsCSV.length?` with ${l.assortmentProductsCSV.length} products`:"",children:l.assortmentChildrenCSV.length?` with ${l.assortmentChildrenCSV.length} children`:"",filters:l.assortmentFiltersCSV.length?` with ${l.assortmentFiltersCSV.length} filters`:""})})]})};var e0=t.i(28401);let e1=()=>{let{formatMessage:t}=(0,r.X)(),{hasRole:e}=(0,f.f)(),{setModal:i}=(0,eC.f)(),{prepareAssortmentImport:a}={prepareAssortmentImport:async({assortmentCSV:t,assortmentProductsCSV:e,assortmentChildrenCSV:n,assortmentFiltersCSV:r})=>t.map(t=>{let s,i,a,o,l,u=(e||[])?.filter(e=>e.assortmentId===t._id),c=(n||[])?.filter(e=>e.assortmentId===t._id),f=(r||[])?.filter(e=>e.assortmentId===t._id);return u.length&&(a=u.map(({productId:t,tags:e,sortKey:n,_id:r})=>({productId:t,tags:e?e.split(";"):[],sortKey:n?Number(n):void 0,_id:r}))),c.length&&(s=c.map(({childAssortmentId:t,tags:e,sortKey:n,_id:r})=>({assortmentId:t,tags:e?e.split(";"):[],sortKey:n?Number(n):void 0,_id:r}))),f.length&&(i=f.map(({filterId:t,tags:e,sortKey:n,_id:r})=>({filterId:t,tags:e?e.split(";"):[],sortKey:n?Number(n):void 0,_id:r}))),(({children:t,products:e,filters:n,...r})=>({entity:"assortment",operation:"CREATE",payload:{_id:r._id,specification:{...r},products:e,filters:n,children:t}}))({...(o=eW(t),l=(0,eG.f)(t.meta),{_id:t._id||void 0,sequence:"string"==typeof t.sequence?parseInt(t.sequence||"0",10):t.sequence||0,isActive:"true"===t.isActive,isRoot:"true"===t.isRoot,meta:l,tags:t.tags?t.tags.split(";"):[],content:o}),filters:i,products:a,children:s})})},{isImporting:o,importItems:l}=(0,eK.f)({validate:ez,process:a});return e(s.C.ManageAssortments)?(0,n.jsx)(eO.f,{onClick:()=>{i((0,n.jsx)(eZ,{onImport:async t=>{let e=await l(t);i(null),(0,e0.toast)((0,n.jsx)(eY.f,{result:e,entityName:"Assortments"}))}}))},disabled:o,variant:"secondary",text:t(o?{id:"importing",defaultMessage:"Importing..."}:{id:"import",defaultMessage:"Import"})}):null},e2=({options:t,queryString:e,onSearchChange:r,defaultSearchValue:s,availableTagOptions:i})=>{let{graph:a,...o}=t;return(0,n.jsx)(eI.f,{onSearchChange:r,defaultSearchValue:s,showTagFilter:!0,availableTagOptions:i,children:(0,n.jsx)(eV.f,{onlyFull:!0,children:"true"===a?(0,n.jsx)(eo,{options:o}):(0,n.jsx)(eN,{options:o,queryString:e,sortable:!0,availableTagOptions:i})})})};t.s(["default",0,()=>{let{formatMessage:t}=(0,r.X)(),{shopInfo:e}=(0,ea.f)(),h=(0,i.useRouter)(),{hasRole:d}=(0,f.f)(),{query:p,push:m}=h,g=parseInt(p?.limit,10)||c.h,_=parseInt(p?.skip,10)||0,v=p?.includeInactive==="true"||!p?.includeInactive,y=p?.includeLeaves==="true",x=p?.tags?.split(",")||void 0,w=p?.viewGraph||!1,b=p?.slug||"",A=p?.sort||"",{queryString:C,assortmentSlug:k,...j}=p,{assortmentsCount:S}=(0,e$.f)({includeInactive:v,includeLeaves:y,queryString:C,tags:x});if(k)return(0,n.jsx)(eT.default,{assortmentSlug:k});let M=1===S?t({id:"assortments_header",defaultMessage:"1 Assortment"}):t({id:"assortments_count_header",defaultMessage:"{count} Assortments"},{count:(0,n.jsx)(eq.f,{value:S})});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.f,{}),(0,n.jsxs)(l.f,{title:t({id:"assortments_page_title",defaultMessage:"{count, plural, one {# Assortment} other {# Assortments}}"},{count:S}),headerText:M,addPath:d(s.C.ManageAssortments)&&"/assortments/new",addButtonText:t({id:"add_assortment",defaultMessage:"Add Assortment"}),children:[(0,n.jsx)(eU,{includeInactive:v,includeLeaves:y,queryString:C,tags:x}),(0,n.jsx)(e1,{})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(o.f,{children:(0,n.jsxs)("div",{className:"lg:flex gap-5",children:[(0,n.jsx)(u.f,{toggleKey:"includeInactive",toggleText:t({id:"include_inactive",defaultMessage:"Include inactive"}),active:v}),(0,n.jsx)(u.f,{toggleKey:"includeLeaves",toggleText:t({id:"include_leaf",defaultMessage:"Include leafs",description:"Assortment children"})}),(0,n.jsx)(u.f,{toggleKey:"viewGraph",toggleText:t({id:"display_as_graph",defaultMessage:"Display as Graph"}),onToggle:()=>{p.viewGraph?m("/assortments"):m({query:{...p,viewGraph:!0}})}})]})}),(0,n.jsx)(e2,{availableTagOptions:(e?.adminUiConfig?.assortmentTags||[]).map(t=>({value:t,label:t})),queryString:C,onSearchChange:t=>{let{skip:e,...n}=j;t?m({query:(0,eu._)(n,t,"queryString")}):m({query:(0,eu._)(j)})},defaultSearchValue:C,options:{graph:w,includeInactive:v,includeLeaves:y,slug:b,tags:x,limit:g,offset:_,sort:A}})]})]})}],58656)}]);
@@ -1,7 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[65897,e=>{var s=e.i(91398),t=e.i(56206);e.s(["f",0,({value:e,className:r,onChange:a=()=>{},rows:l=7,...i})=>{let d=Math.max(e?e.split("\n").length:1,l);return(0,s.jsx)("textarea",{className:(0,t.U)("text-black dark:bg-slate-900 dark:text-slate-200 border-transparent border-t border-t-border-subtle resize-y",r),value:e,onChange:a,rows:d,...i})}])},50647,e=>{var s=e.i(91398),t=e.i(91788);e.s(["f",0,({text:e,children:r})=>{let[a,l]=(0,t.useState)(!1);return(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{onMouseEnter:()=>{l(!0)},onMouseLeave:()=>{l(!1)},children:r}),a&&(0,s.jsx)("div",{className:"tooltip absolute p-2 bg-slate-700 text-white rounded-lg whitespace-nowrap",children:e})]})}])},97776,e=>{var s=e.i(91398),t=e.i(56206),r=e.i(60741),a=e.i(82226),l=e.i(54879);e.s(["f",0,({validators:e=[],className:i,...d})=>{let o=(0,r.f)({validators:[...e,a.G],...d}),n=o.value?new Date(o.value).toISOString().split("T")[0]:"";return(0,s.jsx)(l.f,{...o,className:d.containerClassName,children:(0,s.jsx)("input",{type:"date",id:o.id,name:o.name,disabled:o.disabled,className:(0,t.U)("relative mt-0 block w-full appearance-none rounded-md rounded-b-md border-1 border-border-default px-4 py-2.5 text-sm text-text-primary dark:bg-slate-900 placeholder-slate-400 shadow-xs focus:z-10 focus:outline-hidden focus:ring-2 focus:ring-focus-ring",i,{"border-rose-700 placeholder:text-rose-300":!!o.error}),onChange:o.onChange,onBlur:o.onBlur,value:n,placeholder:o.placeholder,autoComplete:"off",...d})})}])},23239,e=>{var s=e.i(91398),t=e.i(56206),r=e.i(65897),a=e.i(60741),l=e.i(54879);e.s(["f",0,({validators:e=[],rows:i=10,...d})=>{let o=(0,a.f)({...d,validators:[...e,{isValid:e=>{try{return JSON?.parse(e),!0}catch(e){return!1}},intlMessageDescriptor:{id:"invalid_json_input",defaultMessage:"Invalid JSON input"}}]});return(0,s.jsx)(l.f,{...o,children:(0,s.jsx)(r.f,{className:(0,t.U)("mt-1 block w-full max-w-full rounded-md border-1 border-border-default dark:bg-slate-900 dark:text-slate-200 shadow-xs dark:shadow-none focus:ring-focus-ring sm:text-sm",{"border-rose-300 text-rose-600 focus:border-rose-600 focus:ring-rose-600":!!o.error},d.className),disabled:o.disabled,id:o.name,name:o.name,onChange:e=>{try{JSON.parse(e.target.value||"{}"),o.setError("")}catch(e){o.setError(e.message?.replace("JSON.parse",""))}finally{o.setValue(e.target.value,!0),o.setTouched(!0)}},onBlur:e=>{try{o.setValue(JSON.stringify(JSON.parse(e.target.value),void 0,2),!0),o.setError("")}catch(e){o.setError(e.message)}},placeholder:o.placeholder,autoComplete:o.autoComplete,value:o.value})})}])},30595,54020,e=>{var s=e.i(98170),t=e.i(50216),r=e.i(27861),a=e.i(36980),l=e.i(57322),i=e.i(24323),d=e.i(60836),o=e.i(2848);let n=["years","months","weeks","days","hours","minutes","seconds"];e.s(["f",0,()=>({getScheduledTime:e=>{if(!e)return null;let{scheduled:n,status:c,started:m}=e;if("FAILED"===c||"SUCCESS"===c||"DELETED"===c)return null;let u=new Date(n).getTime();if("ALLOCATED"===c||"NEW"===c&&!m){var x;return x={addSuffix:!0},function(e,s,n){let c,m=(0,r.f)(),u=n?.locale??m.locale??t.f,x=(0,d.f)(e,s);if(isNaN(x))throw RangeError("Invalid time value");let f=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:x}),[h,p]=(0,i.f)(n?.in,...x>0?[s,e]:[e,s]),g=(0,a.f)(n?.roundingMethod??"round"),b=p.getTime()-h.getTime(),w=b/o.z,v=(b-((0,l.f)(p)-(0,l.f)(h)))/o.z,j=n?.unit;if("second"===(c=j||(w<1?"second":w<60?"minute":w<o.k?"hour":v<o.d?"day":v<o.l?"month":"year"))){let e=g(b/1e3);return u.formatDistance("xSeconds",e,f)}if("minute"===c){let e=g(w);return u.formatDistance("xMinutes",e,f)}if("hour"===c){let e=g(w/60);return u.formatDistance("xHours",e,f)}if("day"===c){let e=g(v/o.k);return u.formatDistance("xDays",e,f)}if("month"===c){let e=g(v/o.d);return 12===e&&"month"!==j?u.formatDistance("xYears",1,f):u.formatDistance("xMonths",e,f)}else{let e=g(v/o.l);return u.formatDistance("xYears",e,f)}}(u,(0,s.f)(u,Date.now()),x)}return null},getDuration:e=>{var s,a;let l,i,d,o,c,m;if(!e)return null;let{started:u,finished:x}=e,f=new Date().getTime();return u?(s={hours:Number(Math.floor((l=x?new Date(x).getTime()-new Date(u).getTime():f-new Date(u).getTime())/1e3/60/60)%24),minutes:Number(Math.floor(l/1e3/60)%60),seconds:Number(Math.ceil(l/1e3)%60)},a={zero:!1},i=(0,r.f)(),d=a?.locale??i.locale??t.f,o=a?.format??n,c=a?.zero??!1,m=a?.delimiter??" ",d.formatDistance?o.reduce((e,t)=>{let r=`x${t.replace(/(^.)/,e=>e.toUpperCase())}`,a=s[t];return void 0!==a&&(c||s[t])?e.concat(d.formatDistance(r,a)):e},[]).join(m):""):null}})],30595);var c=e.i(91398);e.s(["f",0,({work:e,children:s=null})=>e?.original?e?.original?.retries===e?.retries?(0,c.jsxs)("span",{children:[(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-3 h-3 inline-block text-slate-500 mr-2",children:(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})}),s]}):(0,c.jsx)("span",{children:(0,c.jsxs)("span",{children:[(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-3 h-3 inline-block text-slate-500 mr-2",children:(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})}),s,(0,c.jsx)("span",{className:"text-rose-400 text-sm ml-2",children:`${e?.retries} / ${e?.original?.retries}`})]})}):s],54020)},9459,e=>{var s=e.i(91398),t=e.i(3828),r=e.i(69322),a=e.i(28401),l=e.i(41158),i=e.i(91788),d=e.i(42469),o=e.i(84818),n=e.i(60193),c=e.i(65897),m=e.i(30595),u=e.i(50647),x=e.i(54020);let f=({work:e})=>{let{formatMessage:t}=(0,r.X)(),{formatDateTime:a}=(0,o.f)(),{getDuration:f,getScheduledTime:h}=(0,m.f)(),[,p]=(0,i.useState)(null);(0,i.useEffect)(()=>{let s=null;return e&&("NEW"===e.status||"ALLOCATED"===e.status)&&(s=setInterval(()=>p(Date.now()),1e3)),()=>{clearInterval(s)}},[e?.status]);let g={timeStyle:"medium",dateStyle:"long"};return(0,s.jsx)("div",{className:`rounded-xl xl:-mx-8 mt-10 p-2 sm:p-6 lg:p-8 ${(0,n.c)(e?.status)}`,children:(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-2 auto-rows-max",children:[(0,s.jsxs)("div",{className:"max-h-fit col-span-2 rounded-lg border border-border-default bg-surface-input p-4 shadow-md dark:shadow-none sm:p-6 lg:col-span-1 lg:p-8",children:[(0,s.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,s.jsx)("div",{className:"mr-4 text-base text-text-muted ",children:t({id:"work_type",defaultMessage:"Work type"})}),(0,s.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm",children:e?.type})]}),(0,s.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,s.jsx)("div",{className:"mr-4 text-base text-text-muted ",children:t({id:"work_status",defaultMessage:"Work Status"})}),(0,s.jsx)(d.f,{text:e?.status,color:n.Q[e?.status]})]}),(0,s.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,s.jsx)("div",{className:"mr-4 text-base text-text-muted ",children:t({id:"work_priority",defaultMessage:"Priority"})}),(0,s.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm ",children:e?.priority})]}),(0,s.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,s.jsx)("div",{className:"mr-4 text-base text-text-muted ",children:t({id:"work_retries",defaultMessage:"Retries"})}),(0,s.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm",children:(0,s.jsx)(x.f,{work:e})})]}),(0,s.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,s.jsx)("div",{className:"mr-4 text-base text-text-muted ",children:t({id:"worker",defaultMessage:"Worker"})}),(0,s.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm",children:e?.worker?(0,s.jsx)(d.f,{text:t({id:"worker_dynamic",defaultMessage:"{worker}"},{worker:e?.worker}),color:"purple"}):"n/a"})]}),e?.retries||e?.original?(0,s.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,s.jsx)("div",{className:"mr-4 text-base text-text-muted ",children:t({id:"work_original",defaultMessage:"Original Work"})}),(0,s.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm",children:(0,s.jsx)(l.default,{href:`/works?workerId=${e?.original?._id}`,className:"text-text-primary",children:e?.original?._id})})]}):""]}),(0,s.jsx)("div",{className:"col-span-2 rounded-lg border border-border-default bg-surface-input p-4 shadow-md dark:shadow-none sm:p-6 lg:col-span-1 lg:p-8",children:(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-5",children:[(0,s.jsxs)("div",{className:"sm:col-span-1",children:[(0,s.jsx)("div",{className:"flex text-base text-text-muted ",children:t({id:"work_created",defaultMessage:"Created"})}),(0,s.jsx)("div",{className:"flex text-sm",children:a(e?.created,g)})]}),(0,s.jsxs)("div",{className:"sm:col-span-1",children:[(0,s.jsx)("div",{className:"flex text-base text-text-muted ",children:t({id:"work_scheduled",defaultMessage:"Scheduled"})}),(0,s.jsx)("div",{className:"flex text-sm w-100",children:(0,s.jsx)(u.f,{text:a(e?.scheduled,g),children:h(e)})})]}),(0,s.jsxs)("div",{className:"sm:col-span-1",children:[(0,s.jsx)("div",{className:"flex text-base text-text-muted ",children:t({id:"work_started",defaultMessage:"Started"})}),(0,s.jsx)("div",{className:"flex text-sm",children:a(e?.started,g)})]}),(0,s.jsxs)("div",{className:"sm:col-span-1",children:[(0,s.jsx)("div",{className:"flex text-base text-text-muted ",children:t({id:"work_finished",defaultMessage:"Finished"})}),(0,s.jsx)("div",{className:"flex text-sm",children:a(e?.finished,g)})]}),(0,s.jsxs)("div",{className:"sm:col-span-1",children:[(0,s.jsx)("div",{className:"flex text-base text-text-muted ",children:t({id:"duration",defaultMessage:"Duration"})}),(0,s.jsx)("div",{className:"flex text-sm",children:f(e)})]}),e?.deleted&&(0,s.jsxs)("div",{className:"sm:col-span-1",children:[(0,s.jsx)("div",{className:"flex text-base text-text-muted ",children:t({id:"deleted",defaultMessage:"Deleted"})}),(0,s.jsx)("div",{className:"flex text-sm",children:a(e?.deleted,g)})]})]})}),e?.error&&(0,s.jsxs)("div",{className:"rounded-lg shadow-md dark:shadow-none border-2 border-rose-300 dark:border-rose-800 col-span-2 lg:col-span-2 order-first overflow-hidden bg-rose-100 dark:bg-rose-800",children:[(0,s.jsx)("div",{className:"px-4 py-5 sm:px-6 border-b border-rose-300 dark:border-rose-800",children:(0,s.jsxs)("h3",{className:"text-lg font-medium leading-6 text-rose-700 dark:text-rose-300 flex items-center gap-2",children:[(0,s.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),t({id:"error",defaultMessage:"Error"})]})}),(0,s.jsx)("div",{className:"bg-rose-50 dark:bg-rose-950",children:(0,s.jsx)(c.f,{value:decodeURI(JSON.stringify(e.error,null,2)),disabled:!0,className:"block border-none w-full max-w-full resize-none sm:text-sm text-rose-900 dark:text-rose-100"})})]}),e?.input&&(0,s.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border-default col-span-2 shadow-md dark:shadow-none bg-surface-input lg:col-span-1",children:[(0,s.jsx)("div",{className:"px-4 py-5 sm:px-6",children:(0,s.jsx)("h3",{className:"text-lg font-medium leading-6 text-slate-900 dark:text-slate-500",children:t({id:"input",defaultMessage:"Input"})})}),(0,s.jsx)(c.f,{value:JSON.stringify(e.input,null,2),disabled:!0,className:"block w-full max-w-full resize-none sm:text-sm"})]}),e?.result&&(0,s.jsxs)("div",{className:"overflow-hidden rounded-lg shadow-md dark:shadow-none border border-border-default col-span-2 bg-surface-input lg:col-span-1",children:[(0,s.jsxs)("div",{className:"px-4 py-5 sm:px-6 flex items-center justify-between",children:[(0,s.jsx)("h3",{className:"text-lg font-medium leading-6 text-slate-900 dark:text-slate-500",children:t({id:"result",defaultMessage:"Result"})}),e?.type==="BULK_IMPORT"&&e?.result?.created&&(0,s.jsx)("span",{className:"text-sm text-text-secondary",children:t({id:"items_created",defaultMessage:"{count} items created"},{count:e.result.created.length})})]}),(0,s.jsx)(c.f,{value:JSON.stringify(e.result,null,2),disabled:!0,className:`block w-full max-w-full resize-none sm:text-sm ${e?.type==="BULK_IMPORT"&&e?.result?.created?.length>50?"max-h-96 overflow-y-auto":""}`})]})]})})};var h=e.i(63104),p=e.i(59080),g=e.i(76204);let b=p.a`
2
- mutation RemoveWork($workId: ID!) {
3
- removeWork(workId: $workId) {
4
- _id
5
- }
6
- }
7
- `;var w=e.i(30086),v=e.i(53576),j=e.i(25327),k=e.i(50595),N=e.i(15971),y=e.i(6607),M=e.i(21623),_=e.i(24608),S=e.i(86129);e.i(51523);var D=e.i(19518),C=e.i(5505),T=e.i(97776),I=e.i(69211),O=e.i(23239),W=e.i(21128),E=e.i(16984),R=e.i(98949);let L=({work:e,onSubmit:a})=>{let{formatMessage:l,locale:i}=(0,r.X)(),d=(0,t.useRouter)(),o=l({id:"work_added_success",defaultMessage:"Work added successfully!"}),n=(0,R.f)({submit:a,successMessage:o,onSubmitSuccess:(e,{_id:s})=>(d.replace(`/works?workerId=${s}`),!0),enableReinitialize:!0,initialValues:{...e,input:JSON.stringify(e?.input||{},null,2)}});return(0,s.jsx)(C.U,{children:(0,s.jsx)(I.f,{form:n,children:(0,s.jsxs)("div",{className:"space-y-6 rounded-md bg-surface-input shadow-md ",children:[(0,s.jsx)("h2",{className:"text-2xl font-bold text-text-primary ",children:l({id:"retry_work",defaultMessage:"Retry Work"})}),(0,s.jsx)("div",{className:"flex flex-col sm:flex-row sm:justify-between sm:items-center dark:border-slate-700 pb-4 mb-4",children:(0,s.jsx)("div",{className:"text-sm text-text-muted mt-2 sm:mt-0 flex flex-col sm:flex-row sm:gap-4",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{children:l({id:"type",defaultMessage:"Type"})})," ",e.type]})})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsx)(E.f,{name:"priority",id:"priority",label:l({id:"priority",defaultMessage:"Priority"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",type:"number",className:"w-full py-2 text-sm text-text-primary dark:bg-slate-800 rounded-md"}),(0,s.jsx)(E.f,{name:"retries",id:"retries",label:l({id:"retries",defaultMessage:"Retries"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",type:"number",className:"w-full py-2 text-sm text-text-primary dark:bg-slate-800 rounded-md"})]}),(0,s.jsx)(T.f,{name:"scheduled",label:l({id:"scheduled",defaultMessage:"Scheduled"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",className:"w-full py-2 text-sm text-text-primary dark:bg-slate-800 rounded-md",containerClassName:"w-full",locale:i,showTimeInput:!0,timeFormat:"p",timeIntervals:15}),(0,s.jsx)("div",{children:(0,s.jsx)(O.f,{name:"input",label:l({id:"input",defaultMessage:"Input"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",className:"w-full h-48 text-sm text-text-primary dark:bg-slate-800 rounded-md"})}),(0,s.jsx)("div",{className:"border-t-slate-100 border-t border-t-border-subtle space-y-6 bg-surface-subtle p-5 text-right",children:(0,s.jsx)(W.f,{label:l({id:"retry_submit",defaultMessage:"Retry"})})})]})})})};e.s(["default",0,({workerId:e})=>{let l,{formatMessage:d}=(0,r.X)(),{push:o}=(0,t.useRouter)(),{work:n}=(0,h.U)({workId:e,pollInterval:2e3}),{setModal:c}=(0,y.f)(),{removeWork:m}=(()=>{let[e]=(0,g.f)(b);return{removeWork:async({workId:s})=>e({variables:{workId:s},refetchQueries:["WorkQueue"]})}})(),{addWork:u}=(0,w.f)(),x=(0,i.useCallback)(async()=>{c((0,s.jsx)(L,{work:n,onSubmit:async e=>{try{let{data:s}=await u({type:n?.type,priority:e.priority||n?.priority,retries:e.retries,scheduled:e.scheduled,input:JSON.parse(e.input||"{}"),originalWorkId:n?._id});return o(`/works?workerId=${s.addWork._id}`),c(null),{success:!0}}catch(e){return{success:!1,error:e}}}}),{closeOnOutsideClick:!0})},[n]),p=async()=>{await c((0,s.jsx)(N.f,{onCancelClick:()=>c(""),message:d({id:"delete_work_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this work? "}),onOkClick:async()=>{c(""),await m({workId:e}),a.toast.success(d({id:"work_deleted",defaultMessage:"Work deleted successfully"}))},okText:d({id:"delete_work",defaultMessage:"Delete work"})}))};return(0,s.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,s.jsx)(k.f,{}),(0,s.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,s.jsx)(j.f,{headerText:d({id:"work_detail",defaultMessage:"Work Detail"}),title:d({id:"work_detail_title",defaultMessage:"Work {id}"},{id:n?._id})}),n&&(n?.status===D.i.Failed||n?.status===D.i.Success)?(0,s.jsxs)("button",{type:"button","aria-describedby":"header-delete-button",className:"my-auto flex items-center justify-center rounded-sm border-1 border-emerald-600 px-3 py-2 text-sm font-semibold text-emerald-600 shadow-xs hover:border-emerald-800 hover:bg-emerald-700 hover:text-white focus:outline-hidden focus:ring-2 focus:ring-emerald-700 focus:ring-offset-2",onClick:x,children:[(0,s.jsx)("span",{className:"pr-1",children:(0,s.jsx)(S.f,{className:"h-5 w-5"})}),d({id:"retry-work",defaultMessage:"Retry"})]}):null,n&&((l=n?.status)===D.i.New||l===D.i.Allocated)?(0,s.jsx)(M.f,{variant:"danger",icon:(0,s.jsx)(_.f,{className:"h-5 w-5"}),text:"Delete",onClick:p}):null]}),n?(0,s.jsx)(f,{work:n}):(0,s.jsx)(v.f,{})]})}],9459)},86129,e=>{var s=e.i(94396);e.s(["f",()=>s.f])},36980,e=>{e.s(["f",0,function(e){return s=>{let t=(e?Math[e]:Math.trunc)(s);return 0===t?0:t}}])},60836,e=>{var s=e.i(35113);e.s(["f",0,function(e,t){let r=(0,s.f)(e)-(0,s.f)(t);return r<0?-1:r>0?1:r}])}],34071,(e,s,t)=>{let r="/works/WorkDetailPage";(window.__NEXT_P=window.__NEXT_P||[]).push([r,()=>e.r(9459)]),s.hot&&s.hot.dispose(function(){window.__NEXT_P.push([r])})}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,50899,(e,t,s)=>{let r="/403";(window.__NEXT_P=window.__NEXT_P||[]).push([r,()=>e.r(79227)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([r])})},79227,e=>{"use strict";var t=e.i(91398),s=e.i(94251),s=s,r=e.i(41158),a=e.i(69322),l=e.i(51870),i=e.i(5505);let o=()=>{let{formatMessage:e}=(0,a.X)(),{currentUser:o}=(0,l.f)();return(0,t.jsx)("div",{className:"flex min-h-screen items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"w-full max-w-md space-y-4 text-center",children:[(0,t.jsx)("div",{children:(0,t.jsx)("h2",{className:"text-center text-3xl text-text-primary",children:e({id:"unauthorized_page",defaultMessage:"Access Forbidden"})})}),(0,t.jsx)(i.U,{children:(0,t.jsxs)("div",{className:"space-y-6 px-4 pb-5 pt-3 sm:rounded-lg sm:px-10",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900",children:(0,t.jsx)(s.f,{className:"h-6 w-6 text-danger"})}),(0,t.jsx)("p",{className:"mt-4 text-sm font-semibold uppercase tracking-wide text-danger",children:e({id:"error_403",defaultMessage:"403 Unauthorized"})}),(0,t.jsx)("p",{className:"mt-2 text-base text-text-muted",children:e({id:"not_access_message",defaultMessage:"Sorry, the page you are trying to access has restricted access."})})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 mt-6",children:[o?._id?(0,t.jsxs)(r.default,{href:"/",className:"group relative flex w-full justify-center rounded-md border border-transparent bg-accent py-2 px-4 text-sm font-medium text-text-on-accent hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2",children:[(0,t.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-white group-hover:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"})})}),e({id:"back_to_home",defaultMessage:"Back to Home"})]}):(0,t.jsxs)(r.default,{href:"/log-in",className:"group relative flex w-full justify-center rounded-md border border-transparent bg-accent py-2 px-4 text-sm font-medium text-text-on-accent hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2",children:[(0,t.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-white group-hover:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})})}),e({id:"go_to_login",defaultMessage:"Go to Login"})]}),(0,t.jsxs)("button",{type:"button",onClick:()=>window.history.back(),className:"group relative flex w-full justify-center rounded-md border border-slate-300 bg-surface-raised dark:border-slate-600 py-2 px-4 text-sm font-medium text-text-secondary hover:bg-surface-raised focus:outline-hidden focus:ring-2 focus:ring-focus-ring dark:focus:ring-focus-ring focus:ring-offset-2",children:[(0,t.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-text-muted group-hover:text-slate-600 dark:group-hover:text-slate-300",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M7.707 14.707a1 1 0 01-1.414 0L3 11.414V13a1 1 0 11-2 0V9a1 1 0 011-1h4a1 1 0 110 2H4.414l3.293 3.293a1 1 0 010 1.414z",clipRule:"evenodd"})})}),e({id:"go_back",defaultMessage:"Go Back"})]})]})]})})]})})};o.getLayout=e=>e,e.s(["default",0,o],79227)}]);
@@ -1,16 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[41215,e=>{e.s(["f",0,class extends Error{constructor(e){super(e),this.name="CustomError"}}])},53561,e=>{var s=e.i(91398),t=e.i(91788),a=e.i(48953),i=e.i(39931),i=i,r=e.i(41158),l=e.i(3828),n=e.i(69322),d=e.i(59080),c=e.i(76204),o=e.i(73298);let u=d.a`
2
- mutation VerifyEmail($token: String!) {
3
- verifyEmail(token: $token) {
4
- _id
5
- tokenExpires
6
- user {
7
- ...UserFragment
8
- }
9
- }
10
- }
11
- ${o.f}
12
- `;var f=e.i(53576),x=e.i(41215),m=e.i(32171);let h=d.a`
13
- query ValidateVerifyEmailToken($token: String!) {
14
- validateVerifyEmailToken(token: $token)
15
- }
16
- `;var g=e.i(5505);let p=()=>{let{query:e}=(0,l.useRouter)(),{verifyEmail:d}=(()=>{let[e,{client:s}]=(0,c.f)(u);return{verifyEmail:async({token:t})=>{let a=await e({variables:{token:t}});return await s.resetStore(),a}}})(),{formatMessage:o}=(0,n.X)(),{token:p}=e,[v,w]=(0,t.useState)({success:null,message:null}),{isValid:j,loading:y}=(({token:e})=>{let{data:s,loading:t,error:a,previousData:i}=(0,m.f)(h,{skip:!e,variables:{token:e},fetchPolicy:"network-only"});return{loading:t,error:a,isValid:i?.validateVerifyEmailToken||s?.validateVerifyEmailToken}})({token:p});return((0,t.useEffect)(()=>{let s=async()=>{try{await d({token:p}),w({...v,success:!0})}catch(e){e instanceof x.f&&e.message.includes("expired")?w({success:!1,message:o({id:"verification_token_expired",defaultMessage:"Verification token expired"})}):w({success:!1,message:o({id:"email_verification_failed",defaultMessage:"Email verification failed"})})}};e.token&&s()},[e.token]),y||"boolean"!=typeof j)?(0,s.jsx)(f.f,{}):j?(0,s.jsx)("div",{className:"flex min-h-screen items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:(0,s.jsxs)("div",{className:"w-full max-w-md space-y-4 text-center",children:[(0,s.jsx)("div",{children:(0,s.jsx)("h2",{className:"text-center text-3xl text-text-primary",children:v.success?o({id:"email_verified_successfully",defaultMessage:"Email Verified"}):o({id:"verification_failed",defaultMessage:"verification failed"})})}),(0,s.jsx)(g.U,{children:(0,s.jsxs)("div",{className:"space-y-6 px-4 pb-5 pt-3 sm:rounded-lg sm:px-10",children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:`mx-auto flex h-12 w-12 items-center justify-center rounded-full ${v.success?"bg-emerald-100 dark:bg-emerald-900":"bg-rose-100 dark:bg-rose-900"}`,children:v.success?(0,s.jsx)(i.f,{className:"h-6 w-6 text-emerald-600 dark:text-emerald-400"}):(0,s.jsx)(a.f,{className:"h-6 w-6 text-danger"})}),(0,s.jsx)("p",{className:`mt-4 text-sm font-semibold uppercase tracking-wide ${v.success?"text-emerald-600 dark:text-emerald-400":"text-danger"}`,children:v.success?o({id:"verification_successful",defaultMessage:"Verification Successful"}):o({id:"verification_failed_status",defaultMessage:"Verification Failed"})}),(0,s.jsx)("p",{className:"mt-2 text-base text-text-muted",children:v.success?o({id:"thank_you_for_verifying",defaultMessage:"Thank you for verifying your email address."}):v.message}),!v.success&&(0,s.jsx)("p",{className:"mt-2 text-sm text-text-muted",children:o({id:"use_another_verification_token",defaultMessage:"Please resend another verification email and try again."})})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 mt-6",children:[(0,s.jsxs)(r.default,{href:"/",className:"group relative flex w-full justify-center rounded-md border border-transparent bg-accent py-2 px-4 text-sm font-medium text-text-on-accent hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2",children:[(0,s.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,s.jsx)("svg",{className:"h-5 w-5 text-white group-hover:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"})})}),o({id:"continue_to_app",defaultMessage:"Continue to App"})]}),!v.success&&(0,s.jsxs)(r.default,{href:"/account/forgot-password",className:"group relative flex w-full justify-center rounded-md border border-slate-300 bg-surface-raised dark:border-slate-600 py-2 px-4 text-sm font-medium text-text-secondary hover:bg-surface-raised focus:outline-hidden focus:ring-2 focus:ring-focus-ring dark:focus:ring-focus-ring focus:ring-offset-2",children:[(0,s.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,s.jsx)("svg",{className:"h-5 w-5 text-text-muted group-hover:text-slate-600 dark:group-hover:text-slate-300",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M2.94 6.412A2 2 0 002 8.108V16a2 2 0 002 2h12a2 2 0 002-2V8.108a2 2 0 00-.94-1.696l-6-3.75a2 2 0 00-2.12 0l-6 3.75zm2.615 2.423a1 1 0 10-1.11 1.664l5 3.333a1 1 0 001.11 0l5-3.333a1 1 0 00-1.11-1.664L10 11.798 5.555 8.835z",clipRule:"evenodd"})})}),o({id:"request_new_verification",defaultMessage:"Request New Verification"})]})]})]})})]})}):(0,s.jsx)("div",{className:"flex min-h-screen items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:(0,s.jsxs)("div",{className:"w-full max-w-md space-y-4 text-center",children:[(0,s.jsx)("div",{children:(0,s.jsx)("h2",{className:"text-center text-3xl text-text-primary",children:o({id:"email_verification_error",defaultMessage:"Verification Error"})})}),(0,s.jsx)(g.U,{children:(0,s.jsxs)("div",{className:"space-y-6 px-4 pb-5 pt-3 sm:rounded-lg sm:px-10",children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900",children:(0,s.jsx)(a.f,{className:"h-6 w-6 text-danger"})}),(0,s.jsx)("p",{className:"mt-4 text-sm font-semibold uppercase tracking-wide text-danger",children:o({id:"token_invalid_expired",defaultMessage:"Token Invalid/Expired"})}),(0,s.jsx)("p",{className:"mt-2 text-base text-text-muted",children:o({id:"verify_email_token_invalid_error",defaultMessage:"The email verification token is either invalid or expired."})}),(0,s.jsx)("p",{className:"mt-2 text-sm text-text-muted",children:o({id:"use_latest_verification_link",defaultMessage:"Please use the latest verification link sent to your email."})})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 mt-6",children:[(0,s.jsxs)(r.default,{href:"/account/forgot-password",className:"group relative flex w-full justify-center rounded-md border border-transparent bg-accent py-2 px-4 text-sm font-medium text-text-on-accent hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2",children:[(0,s.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,s.jsx)("svg",{className:"h-5 w-5 text-white group-hover:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M2.94 6.412A2 2 0 002 8.108V16a2 2 0 002 2h12a2 2 0 002-2V8.108a2 2 0 00-.94-1.696l-6-3.75a2 2 0 00-2.12 0l-6 3.75zm2.615 2.423a1 1 0 10-1.11 1.664l5 3.333a1 1 0 001.11 0l5-3.333a1 1 0 00-1.11-1.664L10 11.798 5.555 8.835z",clipRule:"evenodd"})})}),o({id:"request_new_verification",defaultMessage:"Request New Verification"})]}),(0,s.jsxs)(r.default,{href:"/",className:"group relative flex w-full justify-center rounded-md border border-slate-300 bg-surface-raised dark:border-slate-600 py-2 px-4 text-sm font-medium text-text-secondary hover:bg-surface-raised focus:outline-hidden focus:ring-2 focus:ring-focus-ring dark:focus:ring-focus-ring focus:ring-offset-2",children:[(0,s.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,s.jsx)("svg",{className:"h-5 w-5 text-text-muted group-hover:text-slate-600 dark:group-hover:text-slate-300",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"})})}),o({id:"back_to_home",defaultMessage:"Back to Home"})]})]})]})})]})})};p.getLayout=e=>e,e.s(["default",0,p],53561)},48953,e=>{var s=e.i(26588);e.s(["f",()=>s.f])}],43661,(e,s,t)=>{let a="/verify-email";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(53561)]),s.hot&&s.hot.dispose(function(){window.__NEXT_P.push([a])})}]);
@@ -1,5 +0,0 @@
1
- __turbopack_load_page_chunks__("/quotations", [
2
- "static/chunks/2dqoft2pp4355.js",
3
- "static/chunks/0rxhx_x-7dojh.js",
4
- "static/chunks/turbopack-2c3mg3r-05n1w.js"
5
- ])