@unchainedshop/admin-ui 4.8.29 → 5.0.0-alpha.10

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 (728) hide show
  1. package/README.md +136 -16
  2. package/dist/chunk-3L6EZQ6P.js +135 -0
  3. package/dist/chunk-5WPFHQZN.js +388 -0
  4. package/dist/chunk-AE5LOZGH.js +3350 -0
  5. package/dist/{chunk-JAVEZY3Q.js → chunk-AOR2B5N5.js} +14 -5
  6. package/dist/chunk-DTJ2DTKS.js +314 -0
  7. package/dist/{chunk-2RTX42IE.js → chunk-E7BVYJ3R.js} +2 -2
  8. package/dist/{chunk-XHOCXPD5.js → chunk-F6LBNV3H.js} +1 -1
  9. package/dist/chunk-FDHXLNZQ.js +44 -0
  10. package/dist/{chunk-MSPWYMDY.js → chunk-H6G4UTZ5.js} +83 -48
  11. package/dist/{chunk-XJBPMIC4.js → chunk-HERLM47Z.js} +81 -56
  12. package/dist/chunk-HTPSKUXQ.js +22476 -0
  13. package/dist/{chunk-7PPOGX7R.js → chunk-I64TXIE7.js} +48 -11
  14. package/dist/{chunk-QNLGYFV7.js → chunk-IYKPRAWC.js} +4 -0
  15. package/dist/chunk-J23QSWDL.js +8 -0
  16. package/dist/{chunk-SRAAKMWY.js → chunk-JED6SHHG.js} +4 -2
  17. package/dist/chunk-KRIRF7F6.js +76 -0
  18. package/dist/chunk-OTXM2UCD.js +19 -0
  19. package/dist/chunk-QHR23GVH.js +1099 -0
  20. package/dist/chunk-VBO377AY.js +14 -0
  21. package/dist/{chunk-4VNS5WPM.js → chunk-WPLOTFGW.js} +7 -8
  22. package/dist/components/ui/form/ChoicesField.d.ts.map +1 -1
  23. package/dist/components/ui/form/index.d.ts +1 -0
  24. package/dist/components/ui/form/index.d.ts.map +1 -1
  25. package/dist/components/ui/index.d.ts +5 -0
  26. package/dist/components/ui/index.d.ts.map +1 -1
  27. package/dist/form.js +1792 -27496
  28. package/dist/gql/operation-types.d.ts +20 -0
  29. package/dist/gql/operation-types.d.ts.map +1 -1
  30. package/dist/gql/schema-types.d.ts +1 -0
  31. package/dist/gql/schema-types.d.ts.map +1 -1
  32. package/dist/hooks.js +13 -6
  33. package/dist/modal.js +11 -78
  34. package/dist/modules/Auth/AuthContext.d.ts +9 -0
  35. package/dist/modules/Auth/AuthContext.d.ts.map +1 -0
  36. package/dist/modules/Auth/useAuth.d.ts +6 -0
  37. package/dist/modules/Auth/useAuth.d.ts.map +1 -0
  38. package/dist/modules/accounts.js +1 -1
  39. package/dist/modules/assortment.js +3 -3
  40. package/dist/modules/common/components/AppContext.d.ts.map +1 -1
  41. package/dist/modules/common/components/FormWrapper.d.ts.map +1 -1
  42. package/dist/modules/common/components/LocaleWrapper.d.ts +7 -0
  43. package/dist/modules/common/components/LocaleWrapper.d.ts.map +1 -0
  44. package/dist/modules/common/components/MediaAvatar.d.ts +6 -0
  45. package/dist/modules/common/components/MediaAvatar.d.ts.map +1 -0
  46. package/dist/modules/common/components/SelectOptions.d.ts +17 -0
  47. package/dist/modules/common/components/SelectOptions.d.ts.map +1 -0
  48. package/dist/modules/common/components/Table.d.ts +25 -0
  49. package/dist/modules/common/components/Table.d.ts.map +1 -0
  50. package/dist/modules/common/components/TableCell.d.ts +12 -0
  51. package/dist/modules/common/components/TableCell.d.ts.map +1 -0
  52. package/dist/modules/common/components/TableRow.d.ts +10 -0
  53. package/dist/modules/common/components/TableRow.d.ts.map +1 -0
  54. package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -1
  55. package/dist/modules/common/utils/sharedContext.d.ts +9 -0
  56. package/dist/modules/common/utils/sharedContext.d.ts.map +1 -0
  57. package/dist/modules/country.js +1 -1
  58. package/dist/modules/currency.js +1 -1
  59. package/dist/modules/delivery-provider.js +1 -1
  60. package/dist/modules/enrollment.js +1 -1
  61. package/dist/modules/event.js +1 -1
  62. package/dist/modules/filter.js +1 -1
  63. package/dist/modules/forms/lib/FormContext.d.ts.map +1 -1
  64. package/dist/modules/language.js +1 -1
  65. package/dist/modules/modal/hooks/useModal.d.ts.map +1 -1
  66. package/dist/modules/modal/utils/ModalContext.d.ts.map +1 -1
  67. package/dist/modules/order.js +1 -1
  68. package/dist/modules/payment-providers.js +1 -1
  69. package/dist/modules/product-review.js +3 -3
  70. package/dist/modules/product.js +4748 -7
  71. package/dist/modules/quotation.js +1 -1
  72. package/dist/modules/token.js +2 -2
  73. package/dist/modules/warehousing-providers.js +1 -1
  74. package/dist/modules/work.js +6 -10
  75. package/dist/plugins.js +1 -1
  76. package/dist/providers.js +8 -5
  77. package/dist/sdk/hooks.d.ts +3 -0
  78. package/dist/sdk/hooks.d.ts.map +1 -1
  79. package/dist/shims/admin-ui-plugins.js +1 -1
  80. package/dist/shims/apollo-client-react.js +1 -1
  81. package/dist/shims/apollo-client.js +1 -1
  82. package/dist/shims/next-head.js +1 -1
  83. package/dist/shims/next-image.js +1 -1
  84. package/dist/shims/next-link.js +1 -1
  85. package/dist/shims/next-router.js +1 -1
  86. package/dist/shims/react-dom-client.js +1 -1
  87. package/dist/shims/react-dom.js +1 -1
  88. package/dist/shims/react-hook-form.js +1 -1
  89. package/dist/shims/react-intl.js +1 -1
  90. package/dist/shims/react-jsx-runtime.js +1 -1
  91. package/dist/shims/react-toastify.js +1 -1
  92. package/dist/shims/react.js +1 -1
  93. package/dist/theme.js +1 -1
  94. package/dist/ui.js +3397 -3055
  95. package/out/403/index.html +2 -2
  96. package/out/404/index.html +2 -2
  97. package/out/404.html +2 -2
  98. package/out/423/index.html +2 -2
  99. package/out/500/index.html +2 -2
  100. package/out/_next/static/chunks/0-2b37ubdpy0o.js +7 -0
  101. package/out/_next/static/chunks/012cafv-4m7rj.js +807 -0
  102. package/out/_next/static/chunks/02dnhll1bce87.js +46 -0
  103. package/out/_next/static/chunks/02ptvddfjlsxb.js +1 -0
  104. package/out/_next/static/chunks/03ebenjfvoj8n.js +1 -0
  105. package/out/_next/static/chunks/03r347235l6c4.js +7 -0
  106. package/out/_next/static/chunks/05au-xyt__0f2.js +3 -0
  107. package/out/_next/static/chunks/05nn5xr3ufcsh.js +1 -0
  108. package/out/_next/static/chunks/05o_q7jg8wucs.js +44 -0
  109. package/out/_next/static/chunks/05scroolqe8fu.js +234 -0
  110. package/out/_next/static/chunks/072qxdqjtqvn9.js +11 -0
  111. package/out/_next/static/chunks/0752goe9_9g2s.js +110 -0
  112. package/out/_next/static/chunks/07e-sk6v9u-qh.js +807 -0
  113. package/out/_next/static/chunks/07evy5u8ldd1y.js +50 -0
  114. package/out/_next/static/chunks/083ylavob4a8d.js +3 -0
  115. package/out/_next/static/chunks/08jrw03_vxllg.js +54 -0
  116. package/out/_next/static/chunks/08pag0k09j2b3.js +807 -0
  117. package/out/_next/static/chunks/09n6h-_l73rez.js +13 -0
  118. package/out/_next/static/chunks/0_b5faks_mrvi.js +14 -0
  119. package/out/_next/static/chunks/0a_bg-ub3r2eo.js +60 -0
  120. package/out/_next/static/chunks/0aqxsjssb0dh9.js +21 -0
  121. package/out/_next/static/chunks/0aw4jxe6zcc0c.js +32 -0
  122. package/out/_next/static/chunks/0b0hrx3sbbs70.js +807 -0
  123. package/out/_next/static/chunks/0bg4_y1qh5y5h.js +47 -0
  124. package/out/_next/static/chunks/0bgz44wi1lidl.js +13 -0
  125. package/out/_next/static/chunks/0dcpvidzyamvk.js +100 -0
  126. package/out/_next/static/chunks/{19y4w6_d_qiou.js → 0dnh0kr83_tj0.js} +1 -1
  127. package/out/_next/static/chunks/0dxp17sbyy_dr.js +22 -0
  128. package/out/_next/static/chunks/0dxu94yin5gdn.js +35 -0
  129. package/out/_next/static/chunks/0e2c-jlh2q_eq.js +74 -0
  130. package/out/_next/static/chunks/0el7gr-83bm5j.js +3 -0
  131. package/out/_next/static/chunks/0f_ofo__wyqsp.js +22 -0
  132. package/out/_next/static/chunks/0gx9t6j5kx_ho.js +9 -0
  133. package/out/_next/static/chunks/0i9ymn9xxs0nx.js +18 -0
  134. package/out/_next/static/chunks/0iy11ws57hzzr.js +99 -0
  135. package/out/_next/static/chunks/0j8_uikfyrn1f.js +1 -0
  136. package/out/_next/static/chunks/0jeddko6bac8h.js +1 -0
  137. package/out/_next/static/chunks/0jzx7vxh13cpi.js +15 -0
  138. package/out/_next/static/chunks/0kody3217__os.js +16 -0
  139. package/out/_next/static/chunks/0kwo-m1-mo-s-.js +31 -0
  140. package/out/_next/static/chunks/0lp_pnq1t06sl.js +104 -0
  141. package/out/_next/static/chunks/0mez27zlo26ni.js +103 -0
  142. package/out/_next/static/chunks/0nj8vn3509oe-.js +9 -0
  143. package/out/_next/static/chunks/0np9pcbt6dmxe.js +25 -0
  144. package/out/_next/static/chunks/0o7k5vanq57ch.js +807 -0
  145. package/out/_next/static/chunks/0rqjr_lmrk4pz.js +5 -0
  146. package/out/_next/static/chunks/0swe0fkt4vyzn.js +136 -0
  147. package/out/_next/static/chunks/0u4st428hgv1v.js +27 -0
  148. package/out/_next/static/chunks/0u7--d8_-qyne.js +83 -0
  149. package/out/_next/static/chunks/0ubzi2s1spm4e.js +342 -0
  150. package/out/_next/static/chunks/0uecw_5mn0zvr.js +110 -0
  151. package/out/_next/static/chunks/0uxwblyj0htyb.js +1 -0
  152. package/out/_next/static/chunks/0uyhr7vs9ltp0.js +141 -0
  153. package/out/_next/static/chunks/0vr19nswhvt2-.js +14 -0
  154. package/out/_next/static/chunks/0vyvc19p87f_r.js +234 -0
  155. package/out/_next/static/chunks/0wznlnzc2xsbz.js +16 -0
  156. package/out/_next/static/chunks/0ycu-q8fcc8ta.js +1 -0
  157. package/out/_next/static/chunks/0ytserk6fuf71.js +175 -0
  158. package/out/_next/static/chunks/0zoum0jzrtu0s.js +145 -0
  159. package/out/_next/static/chunks/1-6s62fsl_z_7.js +126 -0
  160. package/out/_next/static/chunks/10b6et0qn-pa0.js +59 -0
  161. package/out/_next/static/chunks/13m7st62a61df.js +25 -0
  162. package/out/_next/static/chunks/13u_a5l2xngm4.js +1 -0
  163. package/out/_next/static/chunks/15vz50rks0o2-.js +238 -0
  164. package/out/_next/static/chunks/1647yxi4ymq0z.js +14 -0
  165. package/out/_next/static/chunks/16hd7xvkocqxs.js +807 -0
  166. package/out/_next/static/chunks/16t18hhd4ax36.js +2 -0
  167. package/out/_next/static/chunks/17wle25pg9jkp.js +11 -0
  168. package/out/_next/static/chunks/18juy_eauk94g.js +58 -0
  169. package/out/_next/static/chunks/19eflki8bmivb.js +81 -0
  170. package/out/_next/static/chunks/19eu5d-wm2hfr.js +23 -0
  171. package/out/_next/static/chunks/19izcjxrrapb3.js +9 -0
  172. package/out/_next/static/chunks/1_jbj-c1d2606.js +21 -0
  173. package/out/_next/static/chunks/1_pwqdjxb6oou.js +226 -0
  174. package/out/_next/static/chunks/1bftmuhck_-7b.js +1 -0
  175. package/out/_next/static/chunks/1bww_2og01jxh.js +807 -0
  176. package/out/_next/static/chunks/1c0cemuv_tf6i.js +16 -0
  177. package/out/_next/static/chunks/1c4a2qxtb3r4_.js +16 -0
  178. package/out/_next/static/chunks/1cjd95y23a9qx.js +1 -0
  179. package/out/_next/static/chunks/1cy-2yb5j5_9b.js +157 -0
  180. package/out/_next/static/chunks/1dkv555kaccbl.js +13 -0
  181. package/out/_next/static/chunks/1dt9_bzfioi8a.js +24 -0
  182. package/out/_next/static/chunks/1fd7ewfb7bi_g.js +234 -0
  183. package/out/_next/static/chunks/1gncrqljnmqjn.js +43 -0
  184. package/out/_next/static/chunks/1iewktf-9h_n8.js +15 -0
  185. package/out/_next/static/chunks/1l7p7exnzd0c2.js +12 -0
  186. package/out/_next/static/chunks/1nqu3ymv6lgev.js +3 -0
  187. package/out/_next/static/chunks/1o_8g-kpuqi9h.js +1 -0
  188. package/out/_next/static/chunks/1oent0-9-0rgb.js +20 -0
  189. package/out/_next/static/chunks/1og09fg689_nc.js +180 -0
  190. package/out/_next/static/chunks/1pj279k5ntty3.js +13 -0
  191. package/out/_next/static/chunks/1q_sewe1wbxsk.js +54 -0
  192. package/out/_next/static/chunks/1qvs4gd4rbhb2.js +15 -0
  193. package/out/_next/static/chunks/1rtv3c_klo0jk.js +1 -0
  194. package/out/_next/static/chunks/1sdqr2_r6o46f.js +16 -0
  195. package/out/_next/static/chunks/1vti949e9wuhz.js +15 -0
  196. package/out/_next/static/chunks/1x-yucftdml28.js +1 -0
  197. package/out/_next/static/chunks/1ylgjha1c0ua_.js +124 -0
  198. package/out/_next/static/chunks/1yp98n-n4gxwy.js +15 -0
  199. package/out/_next/static/chunks/1zcm_9oew7412.js +14 -0
  200. package/out/_next/static/chunks/2-e0d1qpp7rk9.js +14 -0
  201. package/out/_next/static/chunks/20ubrczdsehfm.js +879 -0
  202. package/out/_next/static/chunks/23m--gc-gjenm.js +3 -0
  203. package/out/_next/static/chunks/24-pobk4qjjvp.js +3 -0
  204. package/out/_next/static/chunks/24jptulqn322i.js +15 -0
  205. package/out/_next/static/chunks/24jyi7e2pq4gy.js +15 -0
  206. package/out/_next/static/chunks/26eux546aoag5.js +58 -0
  207. package/out/_next/static/chunks/270ua9t85a7ev.js +5 -0
  208. package/out/_next/static/chunks/28r_j2kquxrjn.js +807 -0
  209. package/out/_next/static/chunks/2_ccruvok3u8j.js +16 -0
  210. package/out/_next/static/chunks/2_ojfjgg8do9t.js +1 -0
  211. package/out/_next/static/chunks/2aj5aq_c0b4r_.js +13 -0
  212. package/out/_next/static/chunks/2ba3n9zx9e9q9.js +807 -0
  213. package/out/_next/static/chunks/2d-hxb31pgpn7.js +13 -0
  214. package/out/_next/static/chunks/2df2cqwidgpan.js +15 -0
  215. package/out/_next/static/chunks/2djnsowjy3p8y.js +1 -0
  216. package/out/_next/static/chunks/2dyj8q92_k5el.js +708 -0
  217. package/out/_next/static/chunks/2e0k9dt1emjfm.js +1 -0
  218. package/out/_next/static/chunks/2e3gba1n-yyuj.js +15 -0
  219. package/out/_next/static/chunks/2e_p1vqr0g_-_.js +7 -0
  220. package/out/_next/static/chunks/2e_te6sbs_5uw.js +1 -0
  221. package/out/_next/static/chunks/2f16josk9b_cl.js +8 -0
  222. package/out/_next/static/chunks/2fo2ki1egxbah.js +39 -0
  223. package/out/_next/static/chunks/2g8gzs8wpsofk.js +2 -0
  224. package/out/_next/static/chunks/2gh355-kh19zx.js +13 -0
  225. package/out/_next/static/chunks/2gr4t5xe0atdr.js +15 -0
  226. package/out/_next/static/chunks/2ib6fee-nqe-z.js +23 -0
  227. package/out/_next/static/chunks/2kjux30i3gg-c.js +5 -0
  228. package/out/_next/static/chunks/2ll_mqee86g8c.js +1 -0
  229. package/out/_next/static/chunks/2lx_iig9xewfj.js +52 -0
  230. package/out/_next/static/chunks/2lylr4-3tu1_t.js +15 -0
  231. package/out/_next/static/chunks/2n1v8ph2nt43w.js +17 -0
  232. package/out/_next/static/chunks/2o9hdz0gk1-s7.js +165 -0
  233. package/out/_next/static/chunks/2oadogfqpak51.js +1 -0
  234. package/out/_next/static/chunks/2oogwntgnu9rf.js +17 -0
  235. package/out/_next/static/chunks/2p4e3kh8sa8iq.js +13 -0
  236. package/out/_next/static/chunks/2q-mpau-4gsvd.js +1 -0
  237. package/out/_next/static/chunks/2rddaar-ns45d.js +116 -0
  238. package/out/_next/static/chunks/2s3qhuh87mu_w.js +126 -0
  239. package/out/_next/static/chunks/2s6u8274_jzk2.js +105 -0
  240. package/out/_next/static/chunks/2skfzjx2g9hkk.js +134 -0
  241. package/out/_next/static/chunks/2u6jwsqz0uhes.js +24 -0
  242. package/out/_next/static/chunks/2v4k4vpb2id7m.js +44 -0
  243. package/out/_next/static/chunks/2xctb084h1lyg.js +329 -0
  244. package/out/_next/static/chunks/2xgpwzpd6-tdb.js +234 -0
  245. package/out/_next/static/chunks/3-soz24u9483h.js +15 -0
  246. package/out/_next/static/chunks/30_ns6urg1dkn.js +41 -0
  247. package/out/_next/static/chunks/30nxkqu5mcga3.js +1 -0
  248. package/out/_next/static/chunks/{0gurfn3nhm859.js → 313i1x81q2xj1.js} +1 -1
  249. package/out/_next/static/chunks/31qwglme02a_r.js +807 -0
  250. package/out/_next/static/chunks/31sk60zzj3bc5.js +17 -0
  251. package/out/_next/static/chunks/325a7n__tfxy_.js +61 -0
  252. package/out/_next/static/chunks/33emlry70k-lv.js +2 -0
  253. package/out/_next/static/chunks/33v8la4hkia7j.js +1 -0
  254. package/out/_next/static/chunks/34ar-34flu6bu.js +43 -0
  255. package/out/_next/static/chunks/34z48lfdm9u0l.js +9 -0
  256. package/out/_next/static/chunks/351jscvbk_wb9.js +13 -0
  257. package/out/_next/static/chunks/357odtev0t245.js +59 -0
  258. package/out/_next/static/chunks/360g4b1clnt45.js +142 -0
  259. package/out/_next/static/chunks/360uyru28azf6.js +20 -0
  260. package/out/_next/static/chunks/366apf6d0xh2u.js +30 -0
  261. package/out/_next/static/chunks/36_zbuqpk5cpj.js +14 -0
  262. package/out/_next/static/chunks/36aqs7u7s-lb1.js +119 -0
  263. package/out/_next/static/chunks/36beon3q8orx2.js +1 -0
  264. package/out/_next/static/chunks/37703j9_zf5_h.js +13 -0
  265. package/out/_next/static/chunks/37rwzuocwsv_k.js +16 -0
  266. package/out/_next/static/chunks/37w6b3h04uc4c.js +19 -0
  267. package/out/_next/static/chunks/38ffn8gazqz8_.js +3 -0
  268. package/out/_next/static/chunks/38xse6_r51yqp.js +234 -0
  269. package/out/_next/static/chunks/39s8xbnm9f08v.js +14 -0
  270. package/out/_next/static/chunks/39x-p8r_sl0ng.js +15 -0
  271. package/out/_next/static/chunks/39zisxvmik0t_.js +34 -0
  272. package/out/_next/static/chunks/3_97tge0xvvon.js +11 -0
  273. package/out/_next/static/chunks/3aw-ri7876ngd.js +39 -0
  274. package/out/_next/static/chunks/3bv7gi3o6-41h.js +11 -0
  275. package/out/_next/static/chunks/3cdfuacs4_0d-.js +1 -0
  276. package/out/_next/static/chunks/3cxpx38ycu7u2.js +9 -0
  277. package/out/_next/static/chunks/3d1ofcqmlbg-5.js +52 -0
  278. package/out/_next/static/chunks/3e3i3qqkv_my7.js +15 -0
  279. package/out/_next/static/chunks/3ex71q3pp_ekc.js +247 -0
  280. package/out/_next/static/chunks/3g1lpkudwo8kg.js +1 -0
  281. package/out/_next/static/chunks/3h68t22714to5.js +3 -0
  282. package/out/_next/static/chunks/3jpzhwqgdnobq.js +103 -0
  283. package/out/_next/static/chunks/3jxuqt_2-j_uc.js +18 -0
  284. package/out/_next/static/chunks/3kqqv33l7ssn0.js +16 -0
  285. package/out/_next/static/chunks/3l-9xxd1i1sya.js +1 -0
  286. package/out/_next/static/chunks/3mancxzz8c7hl.js +51 -0
  287. package/out/_next/static/chunks/3mq2s9rfy78je.js +27 -0
  288. package/out/_next/static/chunks/3om1fkw-lrmng.js +1 -0
  289. package/out/_next/static/chunks/3oynij37wfjb2.js +119 -0
  290. package/out/_next/static/chunks/3pbyo5kkko3wh.js +1 -0
  291. package/out/_next/static/chunks/3pjja1obml896.js +15 -0
  292. package/out/_next/static/chunks/3qaiz-jwi7q2x.js +1 -0
  293. package/out/_next/static/chunks/3rh3nigvg06yu.js +337 -0
  294. package/out/_next/static/chunks/3rppjab6j3_k9.js +1 -0
  295. package/out/_next/static/chunks/3t_3vlnk1ntkb.js +95 -0
  296. package/out/_next/static/chunks/3tpo2ho54vtth.js +807 -0
  297. package/out/_next/static/chunks/3tqspv0ggt8j0.js +17 -0
  298. package/out/_next/static/chunks/3um54w4ca27n_.js +17 -0
  299. package/out/_next/static/chunks/3vet2a9q9rf2c.js +61 -0
  300. package/out/_next/static/chunks/3vjgbl76cgrmt.js +1 -0
  301. package/out/_next/static/chunks/3vz3gqmojh7sx.js +4 -0
  302. package/out/_next/static/chunks/3w2e5xa061qou.js +9 -0
  303. package/out/_next/static/chunks/3w9xrlkiztuwi.js +23 -0
  304. package/out/_next/static/chunks/3x4xfy_av3o0d.js +1 -0
  305. package/out/_next/static/chunks/3x9k13s5fam4j.js +22 -0
  306. package/out/_next/static/chunks/{3a7wm2331v13r.js → 3xmtbqm0gddn8.js} +3 -3
  307. package/out/_next/static/chunks/3z5uyt9mc9_fd.js +2 -0
  308. package/out/_next/static/chunks/3zlwp96x3hoy9.js +16 -0
  309. package/out/_next/static/chunks/3zr_sumh1g7il.js +22 -0
  310. package/out/_next/static/chunks/40jl8yfmy6tp6.js +234 -0
  311. package/out/_next/static/chunks/40xhwnc_48o73.js +297 -0
  312. package/out/_next/static/chunks/41-iysd7qkyg1.js +16 -0
  313. package/out/_next/static/chunks/4105a9rejv_p4.js +1 -0
  314. package/out/_next/static/chunks/41e2wlkp9_pvk.js +28 -0
  315. package/out/_next/static/chunks/41g7mv3yuhz6k.js +68 -0
  316. package/out/_next/static/chunks/43jyzccx6x0lw.js +1 -0
  317. package/out/_next/static/chunks/43vuxh3wdo567.js +10 -0
  318. package/out/_next/static/chunks/44daaafswok67.css +1 -0
  319. package/out/_next/static/chunks/452fv7r-tie6t.js +1 -0
  320. package/out/_next/static/chunks/{164wr2-2gfnlb.js → 457j51b69odrw.js} +1 -1
  321. package/out/_next/static/chunks/{turbopack-3pgmc-lv74ewz.js → turbopack-02vysfmmbped5.js} +1 -1
  322. package/out/_next/static/chunks/{turbopack-1o1rar8ouv6h9.js → turbopack-03fj2scz_09ul.js} +1 -1
  323. package/out/_next/static/chunks/turbopack-07wtduwtfqsl_.js +1 -0
  324. package/out/_next/static/chunks/turbopack-0_zihh5ueb_wj.js +1 -0
  325. package/out/_next/static/chunks/{turbopack-2yekm5ij2g-aw.js → turbopack-0b8-ww_z1vgvn.js} +1 -1
  326. package/out/_next/static/chunks/{turbopack-431y1sh-m_0mp.js → turbopack-0beql_u-wc_3e.js} +1 -1
  327. package/out/_next/static/chunks/{turbopack-3_mmmbs60vr14.js → turbopack-0dxdn-gyy3_qj.js} +1 -1
  328. package/out/_next/static/chunks/turbopack-0hqw81t-42tbj.js +1 -0
  329. package/out/_next/static/chunks/turbopack-0jsdrr-oq87lm.js +1 -0
  330. package/out/_next/static/chunks/turbopack-0jxa33q3ikjqg.js +1 -0
  331. package/out/_next/static/chunks/turbopack-0k9zths9zte_8.js +1 -0
  332. package/out/_next/static/chunks/turbopack-0pa42wgwsv141.js +1 -0
  333. package/out/_next/static/chunks/{turbopack-19vr9o5829d-f.js → turbopack-0te09_mp07k1x.js} +1 -1
  334. package/out/_next/static/chunks/turbopack-0xsxl45thi-35.js +1 -0
  335. package/out/_next/static/chunks/{turbopack-2fuk9oepxr5n0.js → turbopack-10-8q-q2zomxa.js} +1 -1
  336. package/out/_next/static/chunks/turbopack-142w-8owzbg7_.js +1 -0
  337. package/out/_next/static/chunks/{turbopack-23u97wxsuqiqb.js → turbopack-18tezl3vagvil.js} +1 -1
  338. package/out/_next/static/chunks/turbopack-1_1a-_v7vml72.js +1 -0
  339. package/out/_next/static/chunks/{turbopack-1zn9gl4fpayoc.js → turbopack-1_k-7s9lmntml.js} +1 -1
  340. package/out/_next/static/chunks/turbopack-1a47di2tss4e-.js +1 -0
  341. package/out/_next/static/chunks/turbopack-1c60gn7g-uduw.js +1 -0
  342. package/out/_next/static/chunks/turbopack-1e1yk3pkaodr5.js +1 -0
  343. package/out/_next/static/chunks/{turbopack-3v4nxmdavly34.js → turbopack-1jtk1c9w2axlk.js} +1 -1
  344. package/out/_next/static/chunks/turbopack-1k2ukl9u-7ovo.js +1 -0
  345. package/out/_next/static/chunks/{turbopack-39nctu3yv9iv4.js → turbopack-1lkz81ntcp1zv.js} +1 -1
  346. package/out/_next/static/chunks/{turbopack-2dk8ur1fvwxzj.js → turbopack-1pkw_r5dvv20d.js} +1 -1
  347. package/out/_next/static/chunks/turbopack-1pu2s2k3szn0s.js +1 -0
  348. package/out/_next/static/chunks/turbopack-1rxz_6lqtls5b.js +1 -0
  349. package/out/_next/static/chunks/turbopack-1uf07pugrv1fy.js +1 -0
  350. package/out/_next/static/chunks/turbopack-1uobzdn2r7ebw.js +1 -0
  351. package/out/_next/static/chunks/{turbopack-1od_4a7nj02l4.js → turbopack-1wv610ktbtzka.js} +1 -1
  352. package/out/_next/static/chunks/{turbopack-3w26eu86co02z.js → turbopack-1wz4te1fj20zp.js} +1 -1
  353. package/out/_next/static/chunks/{turbopack-0s4b5r_1d8yqv.js → turbopack-1zi2ss8eiiyfx.js} +1 -1
  354. package/out/_next/static/chunks/turbopack-207p7bsc5wea7.js +1 -0
  355. package/out/_next/static/chunks/{turbopack-2ga09m38zacev.js → turbopack-21zngkzhonfcm.js} +1 -1
  356. package/out/_next/static/chunks/turbopack-23y20ll8n-nwk.js +1 -0
  357. package/out/_next/static/chunks/{turbopack-19e_bi5k2rqyy.js → turbopack-26wtylwa4_s95.js} +1 -1
  358. package/out/_next/static/chunks/turbopack-27l7xplqpifq6.js +1 -0
  359. package/out/_next/static/chunks/turbopack-285oyoobdo21x.js +1 -0
  360. package/out/_next/static/chunks/turbopack-28b0zyhf3uqaq.js +1 -0
  361. package/out/_next/static/chunks/{turbopack-0ga3wfg-oyyst.js → turbopack-28m_9eg3draop.js} +1 -1
  362. package/out/_next/static/chunks/{turbopack-23nr2ioaqw90j.js → turbopack-29h9fgcal-fng.js} +1 -1
  363. package/out/_next/static/chunks/turbopack-2a84kh6nmf_78.js +1 -0
  364. package/out/_next/static/chunks/turbopack-2b73dx1bsdg5f.js +1 -0
  365. package/out/_next/static/chunks/{turbopack-2u_328z53ed9p.js → turbopack-2bslf96g-y1vv.js} +1 -1
  366. package/out/_next/static/chunks/turbopack-2d-2wg8-_f9-v.js +1 -0
  367. package/out/_next/static/chunks/{turbopack-30qkgccwlkv7n.js → turbopack-2ez-mfb63qve0.js} +1 -1
  368. package/out/_next/static/chunks/{turbopack-0m3lvbvrn923g.js → turbopack-2g7u83j1wlswz.js} +1 -1
  369. package/out/_next/static/chunks/{turbopack-3uj40sz7i7jg0.js → turbopack-2m4gns1_64-7_.js} +1 -1
  370. package/out/_next/static/chunks/{turbopack-0anbjm4c1j4u4.js → turbopack-2n4ba44aafc4x.js} +1 -1
  371. package/out/_next/static/chunks/turbopack-2t3zb47_j-ahd.js +1 -0
  372. package/out/_next/static/chunks/{turbopack-2rz_y4ejrvafp.js → turbopack-2tf6rdek5zvm6.js} +1 -1
  373. package/out/_next/static/chunks/{turbopack-0a3j0ezn8okfg.js → turbopack-2vb0p2htqo4nd.js} +1 -1
  374. package/out/_next/static/chunks/{turbopack-0sihqflu4qpvw.js → turbopack-30-bi-9_7jd01.js} +1 -1
  375. package/out/_next/static/chunks/turbopack-32pjcar5xpn1o.js +1 -0
  376. package/out/_next/static/chunks/{turbopack-3cv3hgsoo_z1k.js → turbopack-3a3skasosq9-4.js} +1 -1
  377. package/out/_next/static/chunks/{turbopack-0w2rzh4i3j2og.js → turbopack-3d2rk8-5wcgrs.js} +1 -1
  378. package/out/_next/static/chunks/{turbopack-4166pmk5_y_4x.js → turbopack-3i91g2le3tkne.js} +1 -1
  379. package/out/_next/static/chunks/turbopack-3j4bdo8-ldea5.js +1 -0
  380. package/out/_next/static/chunks/{turbopack-2qbfd_-7v5dbo.js → turbopack-3m47jybfw85nc.js} +1 -1
  381. package/out/_next/static/chunks/{turbopack-24ylsu2au7hg1.js → turbopack-3yfksvslbm14s.js} +1 -1
  382. package/out/_next/static/chunks/{turbopack-21vayl2_q4r5u.js → turbopack-414roft8p92hp.js} +1 -1
  383. package/out/_next/static/chunks/{turbopack-1r_0o22d_puxo.js → turbopack-424slv1lqxh_5.js} +1 -1
  384. package/out/_next/static/chunks/turbopack-444yt6auyioxn.js +1 -0
  385. package/out/_next/static/{4-xf4wPkZc5rcBq3jUTDg → z5KrmhOz2mLscINN5EbUf}/_buildManifest.js +66 -62
  386. package/out/_offline/index.html +2 -2
  387. package/out/account/forgot-password/index.html +2 -2
  388. package/out/account/index.html +2 -2
  389. package/out/assortments/AssortmentDetailPage/index.html +2 -2
  390. package/out/assortments/index.html +2 -2
  391. package/out/assortments/new/index.html +2 -2
  392. package/out/copilot/index.html +2 -2
  393. package/out/country/CountryDetailPage/index.html +2 -2
  394. package/out/country/index.html +2 -2
  395. package/out/country/new/index.html +2 -2
  396. package/out/currency/CurrencyDetailPage/index.html +2 -2
  397. package/out/currency/index.html +2 -2
  398. package/out/currency/new/index.html +2 -2
  399. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
  400. package/out/delivery-provider/index.html +2 -2
  401. package/out/delivery-provider/new/index.html +2 -2
  402. package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
  403. package/out/enrollments/index.html +2 -2
  404. package/out/events/EventDetailPage/index.html +2 -2
  405. package/out/events/index.html +2 -2
  406. package/out/exports/index.html +2 -2
  407. package/out/ext/[[...slug]]/index.html +11 -0
  408. package/out/external/index.html +2 -2
  409. package/out/filters/FilterDetailPage/index.html +2 -2
  410. package/out/filters/index.html +2 -2
  411. package/out/filters/new/index.html +2 -2
  412. package/out/index.html +2 -2
  413. package/out/install/index.html +2 -2
  414. package/out/language/LanguageDetailPage/index.html +2 -2
  415. package/out/language/index.html +2 -2
  416. package/out/language/new/index.html +2 -2
  417. package/out/log-in/index.html +2 -2
  418. package/out/orders/OrderDetailPage/index.html +2 -2
  419. package/out/orders/index.html +2 -2
  420. package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
  421. package/out/payment-provider/index.html +2 -2
  422. package/out/payment-provider/new/index.html +2 -2
  423. package/out/products/ProductDetailPage/index.html +2 -2
  424. package/out/products/index.html +2 -2
  425. package/out/products/new/index.html +2 -2
  426. package/out/quotations/QuotationDetailPage/index.html +2 -2
  427. package/out/quotations/index.html +2 -2
  428. package/out/reset-password/index.html +2 -2
  429. package/out/sign-up/index.html +2 -2
  430. package/out/styleguide/index.html +2 -2
  431. package/out/tokens/TokenDetailPage/index.html +2 -2
  432. package/out/tokens/index.html +2 -2
  433. package/out/users/UserDetailPage/index.html +2 -2
  434. package/out/users/index.html +2 -2
  435. package/out/users/new/index.html +2 -2
  436. package/out/verify-email/index.html +2 -2
  437. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
  438. package/out/warehousing-provider/index.html +2 -2
  439. package/out/warehousing-provider/new/index.html +2 -2
  440. package/out/works/WorkDetailPage/index.html +2 -2
  441. package/out/works/WorkQueueListView/index.html +2 -2
  442. package/out/works/index.html +2 -2
  443. package/out/works/management/index.html +2 -2
  444. package/package.json +130 -26
  445. package/src/modules/accounts/index.ts +34 -0
  446. package/src/modules/assortment/index.ts +29 -0
  447. package/src/modules/copilot/index.ts +4 -0
  448. package/src/modules/country/index.ts +5 -0
  449. package/src/modules/currency/index.ts +5 -0
  450. package/src/modules/delivery-provider/index.ts +7 -0
  451. package/src/modules/enrollment/index.ts +6 -0
  452. package/src/modules/event/index.ts +3 -0
  453. package/src/modules/filter/index.ts +13 -0
  454. package/src/modules/language/index.ts +5 -0
  455. package/src/modules/order/index.ts +8 -0
  456. package/src/modules/payment-providers/index.ts +7 -0
  457. package/src/modules/product/index.ts +49 -0
  458. package/src/modules/product-review/index.ts +6 -0
  459. package/src/modules/quotation/index.ts +6 -0
  460. package/src/modules/token/index.ts +3 -0
  461. package/src/modules/warehousing-providers/index.ts +7 -0
  462. package/src/modules/work/index.ts +7 -0
  463. package/src/sdk/README.md +226 -0
  464. package/src/sdk/form-entry.test.mjs +11 -0
  465. package/src/sdk/hooks.ts +15 -0
  466. package/src/sdk/modal.ts +6 -0
  467. package/src/sdk/plugin-build.mjs +97 -0
  468. package/src/sdk/plugin-build.test.mjs +46 -0
  469. package/src/sdk/plugin-runtime.cjs +66 -0
  470. package/src/sdk/plugin-runtime.d.mts +11 -0
  471. package/src/sdk/plugin-runtime.mjs +27 -0
  472. package/src/sdk/plugin-runtime.test.mjs +32 -0
  473. package/src/sdk/plugins.mjs +17 -0
  474. package/src/sdk/plugins.ts +105 -0
  475. package/src/sdk/providers.ts +4 -0
  476. package/src/sdk/shared-context.test.mjs +40 -0
  477. package/src/sdk/shims/admin-ui-plugins.ts +3 -0
  478. package/src/sdk/shims/apollo-client-react.ts +3 -0
  479. package/src/sdk/shims/apollo-client.ts +3 -0
  480. package/src/sdk/shims/host.ts +61 -0
  481. package/src/sdk/shims/next-head.ts +3 -0
  482. package/src/sdk/shims/next-image.ts +3 -0
  483. package/src/sdk/shims/next-link.ts +3 -0
  484. package/src/sdk/shims/next-router.ts +3 -0
  485. package/src/sdk/shims/react-dom-client.ts +3 -0
  486. package/src/sdk/shims/react-dom.ts +3 -0
  487. package/src/sdk/shims/react-hook-form.ts +3 -0
  488. package/src/sdk/shims/react-intl.ts +3 -0
  489. package/src/sdk/shims/react-jsx-runtime.ts +3 -0
  490. package/src/sdk/shims/react-toastify.ts +3 -0
  491. package/src/sdk/shims/react.ts +3 -0
  492. package/src/sdk/tailwind-preset.mjs +94 -0
  493. package/src/sdk/theme.ts +61 -0
  494. package/src/styles/globals.css +291 -0
  495. package/dist/chunk-F2TCVEQX.js +0 -514
  496. package/dist/chunk-KCN7DDPH.js +0 -1116
  497. package/dist/chunk-RORNAN2J.js +0 -12
  498. package/dist/chunk-RVG6IOFC.js +0 -11
  499. package/dist/chunk-YZGQJJCD.js +0 -37
  500. package/out/_next/static/chunks/0-mytn4v5bu5h.js +0 -12
  501. package/out/_next/static/chunks/0-uh133eqcz6n.js +0 -60
  502. package/out/_next/static/chunks/0060t3kg_i0lf.js +0 -10
  503. package/out/_next/static/chunks/0186bg0b60cid.js +0 -13
  504. package/out/_next/static/chunks/018n9pot9f5uf.js +0 -90
  505. package/out/_next/static/chunks/01h4ept18s-ns.js +0 -807
  506. package/out/_next/static/chunks/02cdoh48sex9m.js +0 -1
  507. package/out/_next/static/chunks/03-z1yl608b56.js +0 -807
  508. package/out/_next/static/chunks/030bzkeke0edz.js +0 -7
  509. package/out/_next/static/chunks/037vsiy28s6dg.js +0 -41
  510. package/out/_next/static/chunks/049clkw76lm67.js +0 -16
  511. package/out/_next/static/chunks/04bb4k67x398t.js +0 -1
  512. package/out/_next/static/chunks/057evs7qr5y-t.js +0 -17
  513. package/out/_next/static/chunks/05qpw6q8uiz3l.js +0 -15
  514. package/out/_next/static/chunks/062myzj-2ehu-.js +0 -52
  515. package/out/_next/static/chunks/06l-rqlf4bp81.js +0 -108
  516. package/out/_next/static/chunks/06tejx8u1_0kg.js +0 -1
  517. package/out/_next/static/chunks/07nffhr51vke6.js +0 -59
  518. package/out/_next/static/chunks/08tyybz20igty.js +0 -15
  519. package/out/_next/static/chunks/0989pcuje2j55.js +0 -66
  520. package/out/_next/static/chunks/0_02skyivjqh6.js +0 -14
  521. package/out/_next/static/chunks/0_ngi84ak813x.js +0 -288
  522. package/out/_next/static/chunks/0bc02hascgv7z.js +0 -1
  523. package/out/_next/static/chunks/0c9ruqj2wf3n6.js +0 -905
  524. package/out/_next/static/chunks/0cblqqpscyy7w.js +0 -12
  525. package/out/_next/static/chunks/0cotrfgh1n2cx.js +0 -346
  526. package/out/_next/static/chunks/0d6_opzy2p6ik.js +0 -807
  527. package/out/_next/static/chunks/0e2e0srgvkzk9.js +0 -144
  528. package/out/_next/static/chunks/0g6hr3dmen536.js +0 -7
  529. package/out/_next/static/chunks/0ht2wu-61vq9v.js +0 -807
  530. package/out/_next/static/chunks/0ibp5q64hnd88.js +0 -18
  531. package/out/_next/static/chunks/0ichlp5c67dko.js +0 -12
  532. package/out/_next/static/chunks/0iui_zfuxfa45.js +0 -12
  533. package/out/_next/static/chunks/0k6z6zl_zxqp7.js +0 -13
  534. package/out/_next/static/chunks/0kkky_8vhaeaz.js +0 -227
  535. package/out/_next/static/chunks/0lutmpv07icdg.js +0 -8
  536. package/out/_next/static/chunks/0mzh9-epgepi1.js +0 -119
  537. package/out/_next/static/chunks/0n0uzfbkfb7e5.js +0 -12
  538. package/out/_next/static/chunks/0nhczsa2mm354.js +0 -16
  539. package/out/_next/static/chunks/0pecsk3c09b19.js +0 -3
  540. package/out/_next/static/chunks/0prynyrvhm7ef.js +0 -2
  541. package/out/_next/static/chunks/0q-14a7j6afh3.js +0 -1
  542. package/out/_next/static/chunks/0razrbxeai797.js +0 -807
  543. package/out/_next/static/chunks/0ryqvctymlr3k.js +0 -12
  544. package/out/_next/static/chunks/0se09klbk8drd.js +0 -68
  545. package/out/_next/static/chunks/0sh5256hzmj3b.js +0 -14
  546. package/out/_next/static/chunks/0srpqs12m-bwy.js +0 -13
  547. package/out/_next/static/chunks/0ukyxgmnqos6o.js +0 -1
  548. package/out/_next/static/chunks/0uv4d5f9o8wu1.js +0 -10
  549. package/out/_next/static/chunks/0vls1lbu_rh78.js +0 -342
  550. package/out/_next/static/chunks/0vx_1vxljh4tn.js +0 -13
  551. package/out/_next/static/chunks/0vxe9bw7ffqy2.js +0 -15
  552. package/out/_next/static/chunks/0w0zigi7aws2m.js +0 -1
  553. package/out/_next/static/chunks/0w2zoz_fn_wha.js +0 -137
  554. package/out/_next/static/chunks/0xuevvy5i5d12.js +0 -138
  555. package/out/_next/static/chunks/0xxvsq70e4xn0.js +0 -1
  556. package/out/_next/static/chunks/0yxc1yy1eq4u3.js +0 -149
  557. package/out/_next/static/chunks/1-uz_5-063kh9.js +0 -188
  558. package/out/_next/static/chunks/10h7lznd10mmp.js +0 -384
  559. package/out/_next/static/chunks/10os1s66nimmi.js +0 -110
  560. package/out/_next/static/chunks/12_5-baf13q49.js +0 -195
  561. package/out/_next/static/chunks/12qzh85d5on4y.js +0 -44
  562. package/out/_next/static/chunks/12ukdi5bzlbeo.js +0 -596
  563. package/out/_next/static/chunks/1398hevtpl_69.js +0 -1
  564. package/out/_next/static/chunks/13qk8ukzu1snm.js +0 -288
  565. package/out/_next/static/chunks/16ey81skn09dz.js +0 -1
  566. package/out/_next/static/chunks/18kae_yjyhjwf.js +0 -16
  567. package/out/_next/static/chunks/1_quktgfhf40v.js +0 -31
  568. package/out/_next/static/chunks/1aegvtb5jv57q.js +0 -12
  569. package/out/_next/static/chunks/1cgxgd2cf8u3j.js +0 -157
  570. package/out/_next/static/chunks/1cp4-dvxowp4c.js +0 -24
  571. package/out/_next/static/chunks/1d951b6ed8oqn.js +0 -110
  572. package/out/_next/static/chunks/1d_puhcn8lg6q.js +0 -51
  573. package/out/_next/static/chunks/1drrou5kp4qdz.js +0 -1
  574. package/out/_next/static/chunks/1e4_28-3u5o85.js +0 -30
  575. package/out/_next/static/chunks/1f3mflnvp8_7-.js +0 -31
  576. package/out/_next/static/chunks/1f5-j4f3irx0j.js +0 -147
  577. package/out/_next/static/chunks/1fzbon-ih4_3j.js +0 -1
  578. package/out/_next/static/chunks/1g57y7cq7tjcb.js +0 -9
  579. package/out/_next/static/chunks/1g8f6jrb9cp9v.js +0 -13
  580. package/out/_next/static/chunks/1gksg35fivk0-.js +0 -224
  581. package/out/_next/static/chunks/1gy9ae4fpd6jm.js +0 -17
  582. package/out/_next/static/chunks/1hq9yt63076pk.js +0 -16
  583. package/out/_next/static/chunks/1ikm9qcx--k3u.js +0 -807
  584. package/out/_next/static/chunks/1izpxynqp99t4.js +0 -193
  585. package/out/_next/static/chunks/1j2ko85jp-5wy.js +0 -807
  586. package/out/_next/static/chunks/1k-cn_5ey1u62.js +0 -15
  587. package/out/_next/static/chunks/1k0mvn915uz76.js +0 -14
  588. package/out/_next/static/chunks/1l4snbkce_jb6.js +0 -15
  589. package/out/_next/static/chunks/1lbsdlf5h6ojc.js +0 -16
  590. package/out/_next/static/chunks/1mwvnv71bl7mc.js +0 -1
  591. package/out/_next/static/chunks/1n7i2rp59o9o8.js +0 -384
  592. package/out/_next/static/chunks/1pklei2ds10d2.js +0 -66
  593. package/out/_next/static/chunks/1pxor-3_vf3du.js +0 -31
  594. package/out/_next/static/chunks/1qp68765j1aiv.js +0 -61
  595. package/out/_next/static/chunks/1r-cvj3mpr-7x.js +0 -87
  596. package/out/_next/static/chunks/1sivy8bkkmwxl.js +0 -5
  597. package/out/_next/static/chunks/1vk6h4qps69vq.js +0 -12
  598. package/out/_next/static/chunks/1vx8_u7-f7q8u.js +0 -28
  599. package/out/_next/static/chunks/1weq9keqxiqpy.js +0 -73
  600. package/out/_next/static/chunks/1wvicoevgxhkk.js +0 -14
  601. package/out/_next/static/chunks/1ziicn0eb_yji.js +0 -16
  602. package/out/_next/static/chunks/1zza9faw4t3b_.js +0 -46
  603. package/out/_next/static/chunks/1zzpf1xbmchcj.js +0 -132
  604. package/out/_next/static/chunks/2-4ng9fxftmld.js +0 -1
  605. package/out/_next/static/chunks/201rx84kyo8ag.js +0 -1
  606. package/out/_next/static/chunks/20rtv8f0brb0n.js +0 -43
  607. package/out/_next/static/chunks/21a19t2pe0fpg.js +0 -81
  608. package/out/_next/static/chunks/21o2yfegozc0m.js +0 -16
  609. package/out/_next/static/chunks/22w2ovaffle-i.js +0 -21
  610. package/out/_next/static/chunks/234pfdqctlnyt.js +0 -100
  611. package/out/_next/static/chunks/25d8wr34sbm__.js +0 -15
  612. package/out/_next/static/chunks/275o3ly3svw4p.js +0 -1
  613. package/out/_next/static/chunks/28z1z7in8-kbg.js +0 -26
  614. package/out/_next/static/chunks/29w1exzy704_7.js +0 -8
  615. package/out/_next/static/chunks/2bb7696udjx6k.js +0 -44
  616. package/out/_next/static/chunks/2bm5aw8hqlgf2.js +0 -50
  617. package/out/_next/static/chunks/2c4vy8ofex0ti.js +0 -14
  618. package/out/_next/static/chunks/2c7gw8ronvu-c.js +0 -807
  619. package/out/_next/static/chunks/2cbr3ybo4xsrv.js +0 -43
  620. package/out/_next/static/chunks/2eh6ku1a1zbs4.js +0 -135
  621. package/out/_next/static/chunks/2fed4-6c0ghqp.js +0 -99
  622. package/out/_next/static/chunks/2g39exixp92yf.js +0 -13
  623. package/out/_next/static/chunks/2gil5igdermzh.js +0 -36
  624. package/out/_next/static/chunks/2hm0mbq0vtqmw.js +0 -5
  625. package/out/_next/static/chunks/2hvt_8j6jkd_n.js +0 -14
  626. package/out/_next/static/chunks/2i5uj5i4z-xu8.js +0 -188
  627. package/out/_next/static/chunks/2ismth22knujm.js +0 -1
  628. package/out/_next/static/chunks/2iuznbar_ttrh.js +0 -18
  629. package/out/_next/static/chunks/2j6cph79-th54.js +0 -7
  630. package/out/_next/static/chunks/2jln1kjysf99p.js +0 -1
  631. package/out/_next/static/chunks/2jtk4-i4e9lug.js +0 -1
  632. package/out/_next/static/chunks/2k020ab3luqev.js +0 -1
  633. package/out/_next/static/chunks/2kbieaechn8m8.js +0 -1
  634. package/out/_next/static/chunks/2lwxs_ly4bz1o.js +0 -12
  635. package/out/_next/static/chunks/2mr2k4sb6i021.js +0 -32
  636. package/out/_next/static/chunks/2na27-e8gs0-f.js +0 -171
  637. package/out/_next/static/chunks/2nn3_f04lnr0b.js +0 -807
  638. package/out/_next/static/chunks/2ocwu5vbc5r34.js +0 -73
  639. package/out/_next/static/chunks/2qprgjhjl8d4c.js +0 -807
  640. package/out/_next/static/chunks/2rtyphk0o1hbr.js +0 -5
  641. package/out/_next/static/chunks/2skxi0oqka3ef.js +0 -26
  642. package/out/_next/static/chunks/2sukt9l-1md8_.js +0 -25
  643. package/out/_next/static/chunks/2t3t6gm5vlg_0.js +0 -58
  644. package/out/_next/static/chunks/2vt52_i-6cdbh.js +0 -10
  645. package/out/_next/static/chunks/2w5y5xf0nriwx.js +0 -1
  646. package/out/_next/static/chunks/2we4fnghpvprw.js +0 -190
  647. package/out/_next/static/chunks/30g-s0ioynhjx.js +0 -224
  648. package/out/_next/static/chunks/31y7dx6ytab7h.js +0 -3
  649. package/out/_next/static/chunks/363ng2l8o_bee.js +0 -101
  650. package/out/_next/static/chunks/36jick0alh9oa.js +0 -50
  651. package/out/_next/static/chunks/36pa0vs0telmp.js +0 -1
  652. package/out/_next/static/chunks/36yth4lm03_j8.js +0 -1
  653. package/out/_next/static/chunks/37phwvegpccj0.js +0 -217
  654. package/out/_next/static/chunks/38b7m-s26ciug.js +0 -137
  655. package/out/_next/static/chunks/38ipj45w-tqay.js +0 -21
  656. package/out/_next/static/chunks/38pz7fmyf6ay0.js +0 -1
  657. package/out/_next/static/chunks/39634va9fx9s2.js +0 -13
  658. package/out/_next/static/chunks/3a0hqx7ohm5lh.js +0 -23
  659. package/out/_next/static/chunks/3dr_oa5hx41is.js +0 -14
  660. package/out/_next/static/chunks/3e7w6ko5psik7.js +0 -17
  661. package/out/_next/static/chunks/3ebh4y7h6y1vq.js +0 -58
  662. package/out/_next/static/chunks/3eow7lw1727kt.js +0 -13
  663. package/out/_next/static/chunks/3f1gb4_hyhtho.js +0 -20
  664. package/out/_next/static/chunks/3g4qj6_qh97q_.js +0 -12
  665. package/out/_next/static/chunks/3gfjdynb9mg8h.js +0 -23
  666. package/out/_next/static/chunks/3gx4smk7pb27x.js +0 -119
  667. package/out/_next/static/chunks/3jcf4ei6zgnca.js +0 -17
  668. package/out/_next/static/chunks/3kisw9hre44e5.js +0 -807
  669. package/out/_next/static/chunks/3mnt471ayfsvh.js +0 -22
  670. package/out/_next/static/chunks/3ondw3-zthjz5.js +0 -15
  671. package/out/_next/static/chunks/3opuxnw_w3yb5.js +0 -101
  672. package/out/_next/static/chunks/3oxv1fo564rrf.js +0 -142
  673. package/out/_next/static/chunks/3ra_41-fw410n.js +0 -14
  674. package/out/_next/static/chunks/3s22ovhmk-4h7.js +0 -1
  675. package/out/_next/static/chunks/3sktz8258so64.js +0 -2
  676. package/out/_next/static/chunks/3tq-bb0j1_lpu.js +0 -14
  677. package/out/_next/static/chunks/3v1dxn4rp-o3v.js +0 -315
  678. package/out/_next/static/chunks/3w_wwl_hd91od.js +0 -1
  679. package/out/_next/static/chunks/3ww_p-agyd9u-.js +0 -14
  680. package/out/_next/static/chunks/3wzzh45yillzb.js +0 -1
  681. package/out/_next/static/chunks/3xfj8_2nd5d_1.js +0 -1
  682. package/out/_next/static/chunks/3xhmfg-981n_5.js +0 -61
  683. package/out/_next/static/chunks/3yz34q3ulli7q.js +0 -12
  684. package/out/_next/static/chunks/3z_c5kpm-e1ty.js +0 -15
  685. package/out/_next/static/chunks/3zqfchpzqxd92.css +0 -1
  686. package/out/_next/static/chunks/3zs002htik_8l.js +0 -21
  687. package/out/_next/static/chunks/4079hjuumfmm2.js +0 -31
  688. package/out/_next/static/chunks/40922jbr_e5ug.js +0 -51
  689. package/out/_next/static/chunks/40zy6mxa-be0m.js +0 -1
  690. package/out/_next/static/chunks/41fbmiggueudh.js +0 -13
  691. package/out/_next/static/chunks/43e0fp97w800k.js +0 -13
  692. package/out/_next/static/chunks/43gv4x1sfyb5l.js +0 -9
  693. package/out/_next/static/chunks/44nj9c766dqvc.js +0 -807
  694. package/out/_next/static/chunks/44r51e87s4z_d.js +0 -8
  695. package/out/_next/static/chunks/458tg2eg5h8j5.js +0 -324
  696. package/out/_next/static/chunks/45cd4ypk94sw2.js +0 -807
  697. package/out/_next/static/chunks/turbopack-01866gjdddrxa.js +0 -1
  698. package/out/_next/static/chunks/turbopack-08ttg7vxsdnsj.js +0 -1
  699. package/out/_next/static/chunks/turbopack-0pmjdjcdx7cqp.js +0 -1
  700. package/out/_next/static/chunks/turbopack-0tc31uax4buqq.js +0 -1
  701. package/out/_next/static/chunks/turbopack-10ldzl5n31zl-.js +0 -1
  702. package/out/_next/static/chunks/turbopack-19i6-4a5o4fil.js +0 -1
  703. package/out/_next/static/chunks/turbopack-19yw5qwon7l57.js +0 -1
  704. package/out/_next/static/chunks/turbopack-1cx5i7_gdoz5k.js +0 -1
  705. package/out/_next/static/chunks/turbopack-1d-c7awe26kf5.js +0 -1
  706. package/out/_next/static/chunks/turbopack-1l1aen9tojmq4.js +0 -1
  707. package/out/_next/static/chunks/turbopack-1rmdtpi005n_6.js +0 -1
  708. package/out/_next/static/chunks/turbopack-1wx5785osz26z.js +0 -1
  709. package/out/_next/static/chunks/turbopack-28_dvdmt6lvhn.js +0 -1
  710. package/out/_next/static/chunks/turbopack-2bo7hmw4eirxu.js +0 -1
  711. package/out/_next/static/chunks/turbopack-2e_wy0ffi64id.js +0 -1
  712. package/out/_next/static/chunks/turbopack-2g2viapamsvwe.js +0 -1
  713. package/out/_next/static/chunks/turbopack-2pxtve7lryqre.js +0 -1
  714. package/out/_next/static/chunks/turbopack-2u0ls0liblo_9.js +0 -1
  715. package/out/_next/static/chunks/turbopack-2xfom16ggx1i3.js +0 -1
  716. package/out/_next/static/chunks/turbopack-2ycfwit0p-fkf.js +0 -1
  717. package/out/_next/static/chunks/turbopack-3-w-v8og1lok2.js +0 -1
  718. package/out/_next/static/chunks/turbopack-36bl9-rerhcfg.js +0 -1
  719. package/out/_next/static/chunks/turbopack-37a6lyjyz7fts.js +0 -1
  720. package/out/_next/static/chunks/turbopack-37lb9ujef-ujm.js +0 -1
  721. package/out/_next/static/chunks/turbopack-3_o3qz69ih0uu.js +0 -1
  722. package/out/_next/static/chunks/turbopack-3cv39r7v3s2gr.js +0 -1
  723. package/out/_next/static/chunks/turbopack-3vfm6fp92up6y.js +0 -1
  724. package/out/_next/static/chunks/turbopack-3vyi51cuxeowy.js +0 -1
  725. package/out/_next/static/chunks/turbopack-3zc0h1216mtm2.js +0 -1
  726. package/out/admin-ui-permissions.js +0 -129
  727. /package/out/_next/static/{4-xf4wPkZc5rcBq3jUTDg → z5KrmhOz2mLscINN5EbUf}/_clientMiddlewareManifest.js +0 -0
  728. /package/out/_next/static/{4-xf4wPkZc5rcBq3jUTDg → z5KrmhOz2mLscINN5EbUf}/_ssgManifest.js +0 -0
@@ -1,190 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,58971,95015,e=>{"use strict";var t=e.i(91788);let r=t.default.createContext({isAdmin:()=>!1,hasRole:()=>!1});e.s(["default",0,r],95015),e.s(["default",0,()=>(0,t.useContext)(r)],58971)},1403,e=>{"use strict";var t=e.i(59080),r=e.i(32171);let a=t.gql`
2
- query UsersCount(
3
- $includeGuests: Boolean
4
- $queryString: String
5
- $lastLogin: DateFilterInput
6
- $emailVerified: Boolean
7
- ) {
8
- usersCount(
9
- includeGuests: $includeGuests
10
- queryString: $queryString
11
- lastLogin: $lastLogin
12
- emailVerified: $emailVerified
13
- )
14
- }
15
- `;e.s(["default",0,({includeGuests:e=!1,queryString:t=null,lastLogin:s=null,emailVerified:i=null}={})=>{let{data:n,loading:l,error:o}=(0,r.useQuery)(a,{variables:{includeGuests:e,queryString:t,lastLogin:s,emailVerified:i}});return{usersCount:n?.usersCount||0,loading:l,error:o}}])},89462,e=>{"use strict";var t=e.i(59080),r=e.i(32171);let a=t.gql`
16
- query AssortmentsCount(
17
- $queryString: String
18
- $tags: [LowerCaseString!]
19
- $includeInactive: Boolean
20
- $includeLeaves: Boolean
21
- ) {
22
- assortmentsCount(
23
- tags: $tags
24
- includeInactive: $includeInactive
25
- includeLeaves: $includeLeaves
26
- queryString: $queryString
27
- )
28
- }
29
- `;e.s(["default",0,({queryString:e="",tags:t=null,includeInactive:s=!0,includeLeaves:i=!1})=>{let{data:n,loading:l,error:o}=(0,r.useQuery)(a,{variables:{queryString:e,tags:t,includeInactive:s,includeLeaves:i}});return{loading:l,error:o,assortmentsCount:n?.assortmentsCount}}])},81013,e=>{"use strict";var t=e.i(91398),r=e.i(72043);e.s(["default",0,({text:e,children:a,onClick:s,className:i="",disabled:n=!1,id:l="",variant:o="primary",size:d="md",type:c="button",loading:u=!1,icon:f,iconRight:m,fullWidth:g=!1,rounded:h="md",ariaLabel:x,...p})=>{let b=a||e,v=(f||m)&&b?"gap-2":"";return(0,t.jsx)("button",{id:l,type:c,disabled:n||u,onClick:s,"aria-label":x,className:(0,r.default)("inline-flex items-center justify-center font-medium shadow-xs focus:outline-hidden focus:ring-2 focus:ring-offset-2 transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-50",{xs:"px-2.5 py-1.5 text-xs h-6",sm:"px-3 py-2 text-sm h-8",md:"px-4 py-2 text-sm h-9",lg:"px-6 py-3 text-base h-11"}[d],{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}[h],{primary:"border border-slate-800 dark:border-slate-600 bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:ring-slate-800 dark:focus:ring-slate-400",secondary:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-700 dark:text-slate-200 hover:bg-slate-50 dark:hover:bg-slate-700 focus:ring-slate-500",tertiary:"border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700 focus:ring-slate-400",quaternary:"bg-transparent text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",danger:"border border-rose-500 dark:border-rose-400 bg-white dark:bg-slate-800 text-rose-600 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/10 focus:ring-rose-500",ghost:"bg-transparent border border-transparent text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",success:"border border-emerald-500 dark:border-emerald-400 bg-emerald-50 dark:bg-emerald-900/20 text-emerald-600 dark:text-emerald-400 hover:bg-emerald-100 dark:hover:bg-emerald-900/30 focus:ring-emerald-500",neutral:"border border-slate-300 dark:border-slate-600 bg-slate-100 dark:bg-slate-700 text-slate-600 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:ring-slate-400",input:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-900 dark:text-slate-100 hover:border-slate-400 dark:hover:border-slate-500 focus:ring-slate-500 focus:border-slate-500"}[o],v,{"w-full":g},i),...p,children:u?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),b]}):(0,t.jsxs)(t.Fragment,{children:[f,b,m]})})}])},84870,e=>{"use strict";var t=e.i(91788),r=e.i(59080),a=e.i(32171),s=e.i(69322);let i=r.gql`
30
- query ShopStatus {
31
- countriesCount
32
- currenciesCount
33
- languagesCount
34
- productsCount
35
- assortmentsCount
36
- filtersCount
37
- deliveryProvidersCount
38
- paymentProvidersCount
39
- }
40
- `;e.s(["default",0,()=>{let{formatMessage:e}=(0,s.useIntl)(),{data:r,loading:n,error:l}=(0,a.useQuery)(i);return{configuration:(0,t.useMemo)(()=>{let t,a,s,i,n,l,o,d={...{currenciesCount:{id:"currencies",title:e({id:"currencies",defaultMessage:"Currencies"}),description:e({id:"currency_config_description",defaultMessage:"Set up currencies for pricing and payments"}),isRequired:!0,setupUrl:"/currency/new",category:"essential",estimatedTime:"2 min",icon:"currency",isComplete:!1},countriesCount:{id:"countries",title:e({id:"countries",defaultMessage:"Countries"}),description:e({id:"countries_config_description",defaultMessage:"Configure countries and assign default currencies"}),isRequired:!0,setupUrl:"/country/new",category:"essential",estimatedTime:"2 min",icon:"globe",isComplete:!1},languagesCount:{id:"languages",title:e({id:"languages",defaultMessage:"Languages"}),description:e({id:"language_config_description",defaultMessage:"Configure languages for content localization"}),isRequired:!0,setupUrl:"/language/new",category:"essential",estimatedTime:"2 min",icon:"language",isComplete:!1},paymentProvidersCount:{id:"payment",title:e({id:"payment_processing",defaultMessage:"Payment Processing"}),description:e({id:"payment_processing_config_description",defaultMessage:"Invoice payment provider is already configured"}),isRequired:!0,setupUrl:"/payment-provider/new",category:"commerce",estimatedTime:"10 min",icon:"credit-card",isComplete:!1},deliveryProvidersCount:{id:"delivery",title:e({id:"delivery_processing",defaultMessage:"Shipping & Delivery"}),description:e({id:"delivery_processing_config_description",defaultMessage:"Delivery methods are already configured"}),isRequired:!0,setupUrl:"/delivery-provider/new",category:"commerce",estimatedTime:"10 min",icon:"truck",isComplete:!1},productsCount:{id:"products",title:e({id:"products",defaultMessage:"Products"}),description:e({id:"products_config_description",defaultMessage:"Create your first products"}),isRequired:!0,setupUrl:"/products/new",category:"content",estimatedTime:"5 min",icon:"cube",isComplete:!1},assortmentsCount:{id:"assortments",title:e({id:"assortments",defaultMessage:"Assortments"}),description:e({id:"assortment_config_description",defaultMessage:"Organize products into categories"}),isRequired:!1,setupUrl:"/assortments/new",category:"content",estimatedTime:"3 min",icon:"folder",isComplete:!1}}};if(r)for(let e of Object.keys(d))d[e]={...d[e],isComplete:r?.[e]>0};return a=(t=Object.values(d)).filter(e=>e.isComplete),i=(s=t.filter(e=>e.isRequired)).filter(e=>e.isComplete),n=t.filter(e=>"essential"===e.category),l=t.filter(e=>"commerce"===e.category),o=t.filter(e=>"content"===e.category),{steps:d,completedSteps:a,overallProgress:Math.round(a.length/t.length*100),isFullyConfigured:i.length===s.length,essentialStepsComplete:n.every(e=>e.isComplete),commerceStepsComplete:l.filter(e=>e.isRequired).every(e=>e.isComplete),contentStepsComplete:o.every(e=>e.isComplete),essentialSteps:n,commerceSteps:l,contentSteps:o}},[r]),loading:n,error:l}}],84870)},35308,e=>{"use strict";var t=e.i(59080);let r=t.gql`
41
- fragment OrderFragment on Order {
42
- _id
43
- status
44
- created
45
- updated
46
- ordered
47
- orderNumber
48
- confirmed
49
- fulfilled
50
- contact {
51
- telNumber
52
- emailAddress
53
- }
54
- total {
55
- isTaxable
56
- isNetPrice
57
- amount
58
- currencyCode
59
- }
60
- user {
61
- _id
62
- username
63
- isGuest
64
- avatar {
65
- _id
66
- url
67
- }
68
- profile {
69
- displayName
70
- address {
71
- firstName
72
- lastName
73
- }
74
- }
75
- }
76
- }
77
- `;e.s(["default",0,r])},6910,e=>{"use strict";var t=e.i(59080),r=e.i(32171),a=e.i(66773),s=e.i(60193),i=e.i(35308);let n=t.gql`
78
- query Orders(
79
- $limit: Int
80
- $offset: Int
81
- $includeCarts: Boolean
82
- $queryString: String
83
- $sort: [SortOptionInput!]
84
- $paymentProviderIds: [String!]
85
- $deliveryProviderIds: [String!]
86
- $dateRange: DateFilterInput
87
- $status: [OrderStatus!]
88
- ) {
89
- orders(
90
- limit: $limit
91
- offset: $offset
92
- includeCarts: $includeCarts
93
- queryString: $queryString
94
- sort: $sort
95
- paymentProviderIds: $paymentProviderIds
96
- deliveryProviderIds: $deliveryProviderIds
97
- dateRange: $dateRange
98
- status: $status
99
- ) {
100
- ...OrderFragment
101
- }
102
- ordersCount(
103
- includeCarts: $includeCarts
104
- queryString: $queryString
105
- paymentProviderIds: $paymentProviderIds
106
- deliveryProviderIds: $deliveryProviderIds
107
- dateRange: $dateRange
108
- status: $status
109
- )
110
- }
111
- ${i.default}
112
- `;e.s(["default",0,({limit:e=s.DefaultLimit,offset:t=0,includeCarts:i=!1,queryString:l="",sort:o=[],dateRange:d,status:c,deliveryProviderIds:u,paymentProviderIds:f}={})=>{let{data:m,loading:g,error:h,fetchMore:x}=(0,r.useQuery)(n,{variables:{limit:e,deliveryProviderIds:u?.length?u:null,paymentProviderIds:f?.length?f:null,offset:t,includeCarts:i,queryString:l,dateRange:d,status:c,sort:o.length?[...o,{key:"created",value:a.ISortDirection.Desc}]:[{key:"ordered",value:a.ISortDirection.Desc},{key:"created",value:a.ISortDirection.Desc}]}}),p=m?.orders||[],b=m?.ordersCount,v=p?.length<b;return{orders:p,ordersCount:b,hasMore:v,loading:g,error:h,loadMore:()=>{x({variables:{offset:p?.length}})}}}])},92615,e=>{"use strict";var t=e.i(59080),r=e.i(32171);let a=t.gql`
113
- query ProductsCount(
114
- $queryString: String
115
- $tags: [LowerCaseString!]
116
- $slugs: [String!]
117
- $includeDrafts: Boolean
118
- ) {
119
- productsCount(
120
- tags: $tags
121
- slugs: $slugs
122
- includeDrafts: $includeDrafts
123
- queryString: $queryString
124
- )
125
- }
126
- `;e.s(["default",0,({queryString:e="",tags:t=null,includeDrafts:s=!0})=>{let{data:i,loading:n,error:l}=(0,r.useQuery)(a,{variables:{queryString:e,includeDrafts:s,tags:t}});return{productsCount:i?.productsCount,loading:n,error:l}}])},94672,e=>{"use strict";var t=e.i(59080);let r=t.gql`
127
- fragment WorkFragment on Work {
128
- _id
129
- type
130
- scheduled
131
- status
132
- started
133
- success
134
- finished
135
- created
136
- deleted
137
- retries
138
- original {
139
- _id
140
- retries
141
- }
142
- input
143
- result
144
- }
145
- `;e.s(["default",0,r])},52835,e=>{"use strict";var t=e.i(59080),r=e.i(32171),a=e.i(66773),s=e.i(94672);let i=t.gql`
146
- query WorkQueue(
147
- $queryString: String
148
- $offset: Int
149
- $limit: Int
150
- $status: [WorkStatus!]
151
- $types: [WorkType!]
152
- $created: DateFilterInput
153
- $sort: [SortOptionInput!]
154
- ) {
155
- workQueue(
156
- queryString: $queryString
157
- offset: $offset
158
- limit: $limit
159
- status: $status
160
- types: $types
161
- created: $created
162
- sort: $sort
163
- ) {
164
- ...WorkFragment
165
- }
166
- activeWorkTypes
167
- workQueueCount(
168
- status: $status
169
- types: $types
170
- created: $created
171
- queryString: $queryString
172
- )
173
- }
174
- ${s.default}
175
- `;e.s(["default",0,({queryString:e="",limit:t=50,status:s,types:n,created:l=null,sort:o=[],offset:d=0,pollInterval:c=1e3})=>{let{data:u,loading:f,error:m,fetchMore:g,previousData:h}=(0,r.useQuery)(i,{fetchPolicy:"cache-and-network",pollInterval:c,variables:{queryString:e,offset:d,limit:t,status:s,types:n,created:Object.fromEntries(Object.entries(l||{}).filter(([,e])=>e).map(([e,t])=>[e,t])),sort:(o||[]).length?o:[{key:"scheduled",value:a.ISortDirection.Desc}]}}),x=u?.workQueue||h?.workQueue||[],p=u?.activeWorkTypes||[],b=u?.workQueueCount||0,v=x?.length<b;return{workQueue:x,total:b,activeWorkTypes:p,hasMore:v,loading:f,error:m,loadMore:()=>{g({variables:{offset:x.length}})}}}])},57201,e=>{"use strict";var t=e.i(91398),r=e.i(91788),a=e.i(69322),s=e.i(72043),i=e.i(38187),n=e.i(32665);let l=r.forwardRef(function({title:e,titleId:t,...a},s){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.59 14.37a6 6 0 0 1-5.84 7.38v-4.8m5.84-2.58a14.98 14.98 0 0 0 6.16-12.12A14.98 14.98 0 0 0 9.631 8.41m5.96 5.96a14.926 14.926 0 0 1-5.841 2.58m-.119-8.54a6 6 0 0 0-7.381 5.84h4.8m2.581-5.84a14.927 14.927 0 0 0-2.58 5.84m2.699 2.7c-.103.021-.207.041-.311.06a15.09 15.09 0 0 1-2.448-2.448 14.9 14.9 0 0 1 .06-.312m-2.24 2.39a4.493 4.493 0 0 0-1.757 4.306 4.493 4.493 0 0 0 4.306-1.758M16.5 9a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"}))});var o=e.i(15361),d=e.i(24608),c=e.i(84870);let u=({progress:e,size:r="md",showPercentage:a=!0,className:i})=>(0,t.jsxs)("div",{className:(0,s.default)("flex items-center gap-3",i),children:[(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)("div",{className:(0,s.default)("w-full rounded-full overflow-hidden",{sm:"h-1.5",md:"h-2",lg:"h-3"}[r],e<30?"bg-rose-100 dark:bg-rose-900/20":e<99?"bg-amber-100 dark:bg-amber-900/20":"bg-emerald-100 dark:bg-emerald-900/20"),children:(0,t.jsx)("div",{className:(0,s.default)("h-full transition-all duration-500 ease-out rounded-full",e<30?"bg-rose-500":e<99?"bg-amber-500":"bg-emerald-500"),style:{width:`${Math.min(e,100)}%`}})})}),a&&(0,t.jsxs)("span",{className:(0,s.default)("font-medium tabular-nums",{sm:"text-xs",md:"text-sm",lg:"text-base"}[r],100===e?"text-emerald-600 dark:text-emerald-400":"text-slate-600 dark:text-slate-400"),children:[e,"%"]})]});var f=e.i(41158),m=e.i(38322),g=e.i(24629);let h=r.forwardRef(function({title:e,titleId:t,...a},s){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m-3-2.818.879.659c1.171.879 3.07.879 4.242 0 1.172-.879 1.172-2.303 0-3.182C13.536 12.219 12.768 12 12 12c-.725 0-1.45-.22-2.003-.659-1.106-.879-1.106-2.303 0-3.182s2.9-.879 4.006 0l.415.33M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}),x=r.forwardRef(function({title:e,titleId:t,...a},s){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m10.5 21 5.25-11.25L21 21m-9-3h7.5M3 5.621a48.474 48.474 0 0 1 6-.371m0 0c1.12 0 2.233.038 3.334.114M9 5.25V3m3.334 2.364C11.176 10.658 7.69 15.08 3 17.502m9.334-12.138c.896.061 1.785.147 2.666.257m-4.589 8.495a18.023 18.023 0 0 1-3.827-5.802"}))});var p=e.i(52606);let b=r.forwardRef(function({title:e,titleId:t,...a},s){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 18.75a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m3 0h6m-9 0H3.375a1.125 1.125 0 0 1-1.125-1.125V14.25m17.25 4.5a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m3 0h1.125c.621 0 1.129-.504 1.09-1.124a17.902 17.902 0 0 0-3.213-9.193 2.056 2.056 0 0 0-1.58-.86H14.25M16.5 18.75h-2.25m0-11.177v-.958c0-.568-.422-1.048-.987-1.106a48.554 48.554 0 0 0-10.026 0 1.106 1.106 0 0 0-.987 1.106v7.635m12-6.677v6.677m0 4.5v-4.5m0 0h-12"}))}),v=r.forwardRef(function({title:e,titleId:t,...a},s){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 21v-7.5a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 .75.75V21m-4.5 0H2.36m11.14 0H18m0 0h3.64m-1.39 0V9.349M3.75 21V9.349m0 0a3.001 3.001 0 0 0 3.75-.615A2.993 2.993 0 0 0 9.75 9.75c.896 0 1.7-.393 2.25-1.016a2.993 2.993 0 0 0 2.25 1.016c.896 0 1.7-.393 2.25-1.015a3.001 3.001 0 0 0 3.75.614m-16.5 0a3.004 3.004 0 0 1-.621-4.72l1.189-1.19A1.5 1.5 0 0 1 5.378 3h13.243a1.5 1.5 0 0 1 1.06.44l1.19 1.189a3 3 0 0 1-.621 4.72M6.75 18h3.75a.75.75 0 0 0 .75-.75V13.5a.75.75 0 0 0-.75-.75H6.75a.75.75 0 0 0-.75.75v3.75c0 .414.336.75.75.75Z"}))});var y=e.i(83345),k=e.i(87179),w=e.i(57973),j=e.i(48953);let C={globe:g.GlobeAltIcon,currency:h,language:x,"credit-card":p.CreditCardIcon,truck:b,warehouse:v,cube:y.CubeIcon,folder:k.FolderIcon,funnel:w.FunnelIcon},N=({step:e,onStepClick:r})=>{let{formatMessage:i}=(0,a.useIntl)(),n=C[e.icon]||y.CubeIcon;return(0,t.jsxs)("div",{className:(0,s.default)("relative p-4 rounded-lg border transition-all duration-200",e.isComplete?"bg-emerald-50 dark:bg-emerald-900/10 border-emerald-200 dark:border-emerald-700/50":"bg-white dark:bg-slate-800 border-slate-200 dark:border-slate-700 hover:border-slate-300 dark:hover:border-slate-600 hover:shadow-sm",!e.isComplete&&"cursor-pointer"),onClick:e.isComplete?void 0:()=>{r&&r(e)},children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:(0,s.default)("flex-shrink-0 w-8 h-8 rounded-lg flex items-center justify-center",e.isComplete?"bg-emerald-100 dark:bg-emerald-900/30":"bg-slate-100 dark:bg-slate-700"),children:e.isComplete?(0,t.jsx)(m.CheckIcon,{className:"w-5 h-5 text-emerald-600 dark:text-emerald-400"}):(0,t.jsx)(n,{className:(0,s.default)("w-5 h-5",e.isRequired?"text-slate-600 dark:text-slate-400":"text-slate-500 dark:text-slate-500")})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsxs)("h4",{className:(0,s.default)("font-medium text-sm",e.isComplete?"text-emerald-700 dark:text-emerald-300":"text-slate-900 dark:text-slate-100"),children:[e.title,e.isRequired&&!e.isComplete&&(0,t.jsx)("span",{className:"text-rose-500 ml-1",children:"*"})]}),(0,t.jsx)("p",{className:(0,s.default)("text-xs mt-1",e.isComplete?"text-emerald-600 dark:text-emerald-400":"text-slate-600 dark:text-slate-400"),children:e.description})]}),(0,t.jsxs)("div",{className:"flex flex-col items-end gap-1 text-xs",children:[!e.isComplete&&(0,t.jsxs)("div",{className:"flex items-center gap-1 text-slate-500 dark:text-slate-500",children:[(0,t.jsx)(j.ClockIcon,{className:"w-3 h-3"}),(0,t.jsx)("span",{children:e.estimatedTime})]}),e.isComplete&&(0,t.jsx)("span",{className:"text-emerald-600 dark:text-emerald-400 font-medium",children:i({id:"setup_complete",defaultMessage:"Complete"})})]})]}),!e.isComplete&&(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)(f.default,{href:e.setupUrl,children:(0,t.jsx)("span",{className:(0,s.default)("inline-flex items-center px-3 py-1.5 text-xs font-medium rounded-md transition-colors",e.isRequired?"bg-slate-900 dark:bg-slate-200 text-white dark:text-slate-900 hover:bg-slate-800 dark:hover:bg-slate-300":"bg-slate-100 dark:bg-slate-700 text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600"),children:i({id:"setup_now",defaultMessage:"Setup Now"})})})})]})]}),e.isRequired&&!e.isComplete&&(0,t.jsx)("div",{className:"absolute top-2 right-2",children:(0,t.jsx)("div",{className:"w-2 h-2 bg-rose-500 rounded-full"})})]})};var M=e.i(57561);let $=({className:e})=>{let{formatMessage:f}=(0,a.useIntl)(),{configuration:m,loading:g,error:h}=(0,c.default)(),{isSystemReady:x}=(0,M.default)(),[p,b]=(0,r.useState)({essential:!0,commerce:!1,content:!1}),[v,y]=(0,r.useState)(()=>"true"===localStorage.getItem("shop_setup_message_dismissed")),{isFullyConfigured:k}=m;if((0,r.useEffect)(()=>{m&&b({commerce:!m.commerceStepsComplete,essential:!m.essentialStepsComplete,content:m.commerceStepsComplete&&!m.contentStepsComplete})},[m]),!m||g||h)return null;if(k&&!v)return(0,t.jsx)("div",{className:(0,s.default)("p-6 bg-gradient-to-r from-emerald-50 to-emerald-50 dark:from-emerald-900/20 dark:to-emerald-900/20 rounded-lg border border-emerald-200 dark:border-emerald-700/50",e),children:(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(o.CheckCircleIcon,{className:"w-8 h-8 text-emerald-600 dark:text-emerald-400"})}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-emerald-800 dark:text-emerald-200 mb-2",children:f({id:"shop_setup_complete",defaultMessage:"Shop Setup Complete!"})}),(0,t.jsx)("p",{className:"text-emerald-700 dark:text-emerald-300 text-sm",children:f({id:"shop_setup_complete_description",defaultMessage:"Congratulations! Your shop is fully configured and ready to accept orders."})})]}),(0,t.jsx)("button",{onClick:()=>{y(!0),localStorage.setItem("shop_setup_message_dismissed","true")},className:"flex-shrink-0 p-1 rounded-md hover:bg-emerald-100 dark:hover:bg-emerald-800/50 transition-colors",title:f({id:"dismiss",defaultMessage:"Dismiss"}),children:(0,t.jsx)(d.XMarkIcon,{className:"w-5 h-5 text-emerald-600 dark:text-emerald-400"})})]})});if(k&&v)return null;let w=(e,r,a=!1)=>{let s=p[e],l=0===r.length?100:Math.round(r.filter(e=>e.isComplete).length/r.length*100);return(0,t.jsxs)("div",{className:"border border-slate-200 dark:border-slate-700 rounded-lg overflow-hidden",children:[(0,t.jsx)("button",{onClick:()=>{b(t=>({...t,[e]:!t[e]}))},className:"w-full p-4 bg-slate-50 dark:bg-slate-800/50 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors text-left",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("h3",{className:"text-sm font-semibold text-slate-900 dark:text-slate-100",children:[(e=>{switch(e){case"essential":return f({id:"essential_setup",defaultMessage:"Essential Setup"});case"commerce":return f({id:"commerce_setup",defaultMessage:"Commerce Setup"});case"content":return f({id:"content_setup",defaultMessage:"Content Setup"});default:return e}})(e),!a&&(0,t.jsx)("span",{className:"text-rose-500 ml-1",children:"*"})]}),(0,t.jsx)(u,{progress:l,size:"sm",className:"w-24"})]}),(0,t.jsx)("p",{className:"text-xs text-slate-600 dark:text-slate-400 mt-1",children:(e=>{switch(e){case"essential":return f({id:"essential_setup_description",defaultMessage:"Core settings required for your shop to function"});case"commerce":return f({id:"commerce_setup_description",defaultMessage:"Payment and delivery configuration for transactions"});case"content":return f({id:"content_setup_description",defaultMessage:"Products and categories to start selling"});default:return""}})(e)})]}),s?(0,t.jsx)(n.ChevronUpIcon,{className:"w-5 h-5 text-slate-400"}):(0,t.jsx)(i.ChevronDownIcon,{className:"w-5 h-5 text-slate-400"})]})}),s&&(0,t.jsx)("div",{className:"p-4 space-y-3 bg-white dark:bg-slate-800",children:r.map(e=>(0,t.jsx)(N,{step:e},e.icon))})]})};return(0,t.jsxs)("div",{className:(0,s.default)("bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 overflow-hidden",e),children:[(0,t.jsx)("div",{className:"p-6 bg-gradient-to-r from-slate-50 to-slate-100 dark:from-slate-800 dark:to-slate-700 border-b border-slate-200 dark:border-slate-600",children:(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)("div",{className:"w-12 h-12 bg-gradient-to-br from-slate-600 to-slate-800 dark:from-slate-500 dark:to-slate-700 rounded-xl flex items-center justify-center",children:(0,t.jsx)(l,{className:"w-6 h-6 text-white"})})}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold text-slate-900 dark:text-slate-100 mb-2",children:f({id:"complete_shop_setup",defaultMessage:"Complete Your Shop Setup"})}),(0,t.jsx)("p",{className:"text-sm text-slate-600 dark:text-slate-400 mb-4",children:f({id:"shop_setup_description",defaultMessage:"Follow these steps to configure your shop and start selling."})}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,t.jsx)("span",{className:"text-slate-600 dark:text-slate-400",children:f({id:"overall_progress",defaultMessage:"Overall Progress"})}),(0,t.jsxs)("span",{className:"font-medium text-slate-900 dark:text-slate-100",children:[m.completedSteps.length," of"," ",Object.keys(m.steps).length," complete"]})]}),(0,t.jsx)(u,{progress:m.overallProgress,size:"md"})]})]})]})}),(0,t.jsxs)("div",{className:"p-6 space-y-4",children:[w("essential",m.essentialSteps,m.essentialStepsComplete),x&&w("commerce",m.commerceSteps,m.commerceStepsComplete),x&&w("content",m.contentSteps,m.contentStepsComplete),(0,t.jsx)("div",{className:"pt-4 border-t border-slate-200 dark:border-slate-700",children:(0,t.jsxs)("p",{className:"text-xs text-slate-500 dark:text-slate-500 flex items-center gap-1",children:[(0,t.jsx)("span",{className:"inline-block w-2 h-2 bg-rose-500 rounded-full"}),f({id:"required_steps_note",defaultMessage:"Required for basic shop functionality"})]})})]})]})},S=r.forwardRef(function({title:e,titleId:t,...a},s){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))});var I=e.i(52835),_=e.i(66773),E=e.i(79684);let R=()=>{let{formatMessage:e}=(0,a.useIntl)(),[r,s]=(0,E.default)("workQueueWarningBanner:dismissed",!1),{workQueue:i}=(0,I.default)({status:[_.IWorkStatus.Failed],pollInterval:0}),n=Object.entries(i.reduce((e,t)=>(e[t?.type]?e[t?.type]={...e[t?.type],count:e[t?.type].count+1}:e[t?.type]={...t,count:1},e),{})).map(([e,{count:t}])=>`${t} ${e}`).join(", ");return r||!i.length?null:(0,t.jsx)("div",{className:"p-5 bg-amber-50 dark:bg-amber-900/20 border border-amber-200 dark:border-amber-700/50 rounded-lg mb-6",children:(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)(S,{className:"w-6 h-6 text-amber-600 dark:text-amber-400"}),(0,t.jsxs)("div",{className:"flex-1 text-sm text-amber-800 dark:text-amber-200",children:[(0,t.jsx)("strong",{children:e({id:"work_queue_problem_detected",defaultMessage:"Problems detected in the Work Queue"})})," ",n]}),(0,t.jsx)(f.default,{href:"/works/?status=FAILED",className:"ml-4 text-amber-700 dark:text-amber-300 hover:underline text-sm font-medium",children:e({id:"check_work_queue_details",defaultMessage:"Check Work Queue for Details"})}),(0,t.jsx)("button",{onClick:()=>s(!0),className:"flex-shrink-0 p-1 text-amber-600 dark:text-amber-600 hover:text-amber-800 dark:hover:text-amber-200",children:(0,t.jsx)(d.XMarkIcon,{className:"w-5 h-5"})})]})})};var q=e.i(48539);let A=({label:e,value:r})=>(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-sm text-slate-600 dark:text-slate-400",children:e}),(0,t.jsx)("span",{className:"text-sm text-slate-900 dark:text-slate-100",children:r})]}),L=()=>{let{formatMessage:e}=(0,a.useIntl)(),{shopInfo:r}=(0,q.default)();return(0,t.jsxs)("div",{className:"bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 p-6",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-slate-900 dark:text-slate-100 mb-4",children:e({id:"system_information",defaultMessage:"System Information"})}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(A,{label:e({id:"engine_version",defaultMessage:"Engine version"}),value:r?.version||"n/a"}),(0,t.jsx)(A,{label:e({id:"resolved_language",defaultMessage:"Resolved language"}),value:`${r?.language?.name||"n/a"} (${r?.language?.isoCode||"n/a"})`}),(0,t.jsx)(A,{label:e({id:"resolved_country",defaultMessage:"Resolved country"}),value:(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-base",children:r?.country?.flagEmoji||"n/a"}),r?.country?.name||"n/a"," (",r?.country?.isoCode||"n/a",")"]})}),(0,t.jsx)(A,{label:e({id:"default_currency",defaultMessage:"Default currency"}),value:r?.country?.defaultCurrency?.isoCode||"n/a"})]})]})};var O=e.i(3828),P=e.i(37369),D=e.i(81013),W=e.i(58971);let B=()=>{let{formatMessage:e}=(0,a.useIntl)(),{hasRole:r}=(0,W.default)(),s=(0,O.useRouter)();return(0,t.jsxs)("div",{className:"bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 p-6",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-slate-900 dark:text-slate-100 mb-4",children:e({id:"shortcuts",defaultMessage:"Shortcuts"})}),(0,t.jsxs)("div",{className:"grid xl:grid-cols-3 gap-3",children:[r(_.IRoleAction.ManageProducts)&&(0,t.jsx)(D.default,{onClick:()=>s.push("/products/new"),icon:(0,t.jsx)(P.PlusIcon,{className:"w-5 h-5"}),variant:"primary",size:"lg",text:e({id:"product",defaultMessage:"Product"})}),r(_.IRoleAction.CreateUser)&&(0,t.jsx)(D.default,{onClick:()=>s.push("/users/new"),icon:(0,t.jsx)(P.PlusIcon,{className:"w-5 h-5"}),variant:"primary",size:"lg",text:e({id:"user",defaultMessage:"User"})}),r(_.IRoleAction.ManageAssortments)&&(0,t.jsx)(D.default,{onClick:()=>s.push("/assortments/new"),icon:(0,t.jsx)(P.PlusIcon,{className:"w-5 h-5"}),variant:"primary",size:"lg",text:e({id:"assortment",defaultMessage:"Assortment"})})]})]})};var T=e.i(52745),z=e.i(31004);let F=r.forwardRef(function({title:e,titleId:t,...a},s){return r.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:s,"aria-labelledby":t},a),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M5.127 3.502 5.25 3.5h9.5c.041 0 .082 0 .123.002A2.251 2.251 0 0 0 12.75 2h-5.5a2.25 2.25 0 0 0-2.123 1.502ZM1 10.25A2.25 2.25 0 0 1 3.25 8h13.5A2.25 2.25 0 0 1 19 10.25v5.5A2.25 2.25 0 0 1 16.75 18H3.25A2.25 2.25 0 0 1 1 15.75v-5.5ZM3.25 6.5c-.04 0-.082 0-.123.002A2.25 2.25 0 0 1 5.25 5h9.5c.98 0 1.814.627 2.123 1.502a3.819 3.819 0 0 0-.123-.002H3.25Z"}))}),H=({title:e,value:r,icon:s,loading:i=!1,href:n})=>{let{formatNumber:l}=(0,a.useIntl)();return(0,t.jsx)(f.default,{href:n,className:`bg-white dark:bg-slate-800 rounded-lg border-slate-200 dark:border-slate-700 p-6
176
- cursor-pointer hover:border-slate-500 border-1 dark:hover:bg-slate-750 transition-colors`,children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium text-slate-600 dark:text-slate-400",children:e}),(0,t.jsx)("p",{className:"text-2xl font-bold text-slate-900 dark:text-white mt-1",children:i?(0,t.jsx)("span",{className:"animate-pulse bg-slate-300 dark:bg-slate-600 rounded h-8 w-16 inline-block"}):"number"==typeof r?l(r):r})]}),(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)("div",{className:"p-3 bg-slate-100 dark:bg-slate-700 rounded-lg",children:s})})]})})};var U=e.i(6910),V=e.i(1403),Z=e.i(89462),Q=e.i(92615);let G=()=>{let{formatMessage:e}=(0,a.useIntl)(),{metrics:r}=(()=>{let{ordersCount:e,loading:t}=(0,U.default)({limit:1}),{usersCount:r,loading:a}=(0,V.default)(),{assortmentsCount:s,loading:i}=(0,Z.default)({}),{productsCount:n,loading:l}=(0,Q.default)({});return{metrics:{orders:{value:e||0,loading:t},products:{value:n||0,loading:l},customers:{value:r,loading:a},categories:{value:s||0,loading:i}},isLoading:t||a||i||l}})(),s=[{title:e({id:"products_count",defaultMessage:"Products"}),value:r.products.value,icon:(0,t.jsx)(T.CubeIcon,{className:"h-6 w-6 text-slate-700 dark:text-slate-300"}),loading:r.products.loading,href:"/products"},{title:e({id:"categories_count",defaultMessage:"Assortments"}),value:r.categories.value,icon:(0,t.jsx)(F,{className:"h-6 w-6 text-slate-700 dark:text-slate-300"}),loading:r.categories.loading,href:"/assortments"},{title:e({id:"customers_count",defaultMessage:"Customers"}),value:r.customers.value,icon:(0,t.jsx)(z.UsersIcon,{className:"h-6 w-6 text-slate-700 dark:text-slate-300"}),loading:r.customers.loading,href:"/users"}];return(0,t.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8",children:s.map((e,r)=>(0,t.jsx)(H,{title:e.title,value:e.value,icon:e.icon,loading:e.loading,href:e.href},r))})};var X=e.i(71394),K=e.i(17907),Y=e.i(82717),J=e.i(32394),ee=e.i(2254),et=e.i(76835),er=e.i(26626),ea=e.i(5270);let es={name:"shopping-cart",size:24,node:[["path",{d:"m2.05 2.05 1.099-.028a1 1 0 0 1 1.008.815l2.69 14.347A1 1 0 0 0 7.83 18H18",key:"uebgi3"}],["path",{d:"M4.563 5h16.435a1 1 0 0 1 .981 1.204l-1.026 6.226A2 2 0 0 1 18.962 14H6.25",key:"1j7c9p"}],["circle",{cx:"18",cy:"20",r:"2",key:"t9985n"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]]};es.node;let ei=(0,ea.default)(es),en={name:"calculator",size:24,node:[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]};en.node;let el=(0,ea.default)(en);var eo=e.i(40391),ed=e.i(8076),ec=e.i(67018),eu=e.i(83147),ef=e.i(34201),em=e.i(59080),eg=e.i(32171),eh=e.i(92042),ex=e.i(23986),ep=e.i(98170),eb=e.i(35113);function ev(e,t,r){var a;let s;return a=-t,s=(0,eb.toDate)(e,r?.in),isNaN(a)?(0,ep.constructFrom)(r?.in||e,NaN):(a&&s.setDate(s.getDate()+a),s)}var ey=e.i(49543),ek=e.i(27765);let ew=em.gql`
177
- query OrderAnalytics($dateRange: DateFilterInput) {
178
- orderStatistics(dateRange: $dateRange) {
179
- confirmRecords {
180
- date
181
- total {
182
- amount
183
- currencyCode
184
- }
185
- count
186
- }
187
- confirmCount
188
- }
189
- }
190
- `,ej={sales:{label:"Sales",color:"hsl(var(--chart-1))"},orders:{label:"Orders",color:"hsl(var(--chart-2))"},avgOrderValue:{label:"Avg Order Value",color:"hsl(var(--chart-3))"}},eC=()=>{let{formatMessage:e}=(0,a.useIntl)(),{dateRange:s,totalSales:i,totalOrders:n,averageOrderValue:l,salesData:o,loading:d,currencyCode:c}=(({days:e=30})=>{let t=(0,r.useMemo)(()=>new Date,[]),a=ev(t,e),s=(0,r.useMemo)(()=>({start:(0,ey.startOfDay)(a).toISOString(),end:(0,ek.endOfDay)(t).toISOString()}),[a,t]),{data:i,loading:n,error:l}=(0,eg.useQuery)(ew,{variables:{dateRange:s},errorPolicy:"all"});return(0,r.useMemo)(()=>{let r=i?.orderStatistics;if(!i?.orderStatistics?.confirmCount)return{totalSales:0,totalOrders:0,averageOrderValue:0,salesData:[],loading:n,error:l,dateRange:s};let a=((e,t)=>{let r=new Map;for(let a=0;a<e;a++){let e=(0,eh.format)(ev(t,a),"MMM d");r.set(e,{sales:0,orders:0})}return r})(e,t),o=0,d=r.confirmRecords[0]?.total?.currencyCode;r.confirmRecords.forEach(e=>{if(!e.date||!e.total?.amount||!e.count)return;let t=(0,eh.format)((0,ex.parseISO)(e.date),"MMM d"),r=a.get(t),s=Number(e.total.amount??0),i=e.count??0;r&&(r.sales+=s,r.orders+=i),o+=s});let c=r.confirmCount,u=c>0?o/c:0;return{totalSales:Math.round(o),totalOrders:c,currencyCode:d,averageOrderValue:Math.round(u),salesData:Array.from(a.entries()).map(([e,{sales:t,orders:r}])=>({date:e,sales:Number(t.toFixed(2)),orders:r,avgOrderValue:r>0?Math.round(t/r):0})).reverse(),loading:n,error:l,dateRange:s}},[i,n,l,s,e,t])})({days:30}),{formatPrice:u}=(0,eu.useFormatPrice)();return d?(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 my-8",children:[1,2,3].map(e=>(0,t.jsxs)(ed.Card,{className:"animate-pulse",children:[(0,t.jsxs)(ed.CardHeader,{className:"pb-2",children:[(0,t.jsx)("div",{className:"h-4 bg-slate-200 dark:bg-slate-700 rounded w-1/2"}),(0,t.jsx)("div",{className:"h-8 bg-slate-200 dark:bg-slate-700 rounded w-1/3"})]}),(0,t.jsx)(ed.CardContent,{children:(0,t.jsx)("div",{className:"h-32 bg-slate-200 dark:bg-slate-700 rounded"})})]},e))}):(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 my-8",children:[(0,t.jsx)(ef.default,{icon:(0,t.jsx)(eo.CurrencyIcon,{className:"h-4 w-4"}),title:e({id:"total_sales",defaultMessage:"Total sales"}),value:u({currencyCode:c,amount:i}),chart:(0,t.jsx)(ec.ChartContainer,{config:ej,children:(0,t.jsxs)(X.LineChart,{accessibilityLayer:!0,data:o,margin:{left:12,right:12},children:[(0,t.jsx)(er.CartesianGrid,{vertical:!1}),(0,t.jsx)(ee.XAxis,{dataKey:"date",tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:e=>e.slice(0,6)}),(0,t.jsx)(et.YAxis,{hide:!0}),(0,t.jsx)(ec.ChartTooltip,{wrapperStyle:{pointerEvents:"auto",zIndex:50},cursor:!1,content:(0,t.jsx)(ec.ChartTooltipContent,{formatter:e=>u({currencyCode:c,amount:e})})}),(0,t.jsx)(K.Line,{dataKey:"sales",type:"natural",stroke:"var(--color-sales)",strokeWidth:2,dot:!1})]})}),dateRange:s}),(0,t.jsx)(ef.default,{icon:(0,t.jsx)(ei,{className:"h-4 w-4"}),title:e({id:"total_orders",defaultMessage:"Total orders"}),value:n,chart:(0,t.jsx)(ec.ChartContainer,{config:ej,children:(0,t.jsxs)(Y.BarChart,{accessibilityLayer:!0,data:o,margin:{left:12,right:12},children:[(0,t.jsx)(er.CartesianGrid,{vertical:!1}),(0,t.jsx)(ee.XAxis,{dataKey:"date",tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:e=>e.slice(0,6)}),(0,t.jsx)(et.YAxis,{hide:!0}),(0,t.jsx)(ec.ChartTooltip,{cursor:!1,content:(0,t.jsx)(ec.ChartTooltipContent,{})}),(0,t.jsx)(J.Bar,{dataKey:"orders",fill:"var(--color-orders)",radius:4})]})}),dateRange:s}),(0,t.jsx)(ef.default,{icon:(0,t.jsx)(el,{className:"h-4 w-4"}),title:e({id:"average_order_value",defaultMessage:"Average order value"}),value:u({amount:l,currencyCode:c}),chart:(0,t.jsx)(ec.ChartContainer,{config:ej,children:(0,t.jsxs)(X.LineChart,{accessibilityLayer:!0,data:o,margin:{left:12,right:12},children:[(0,t.jsx)(er.CartesianGrid,{vertical:!1}),(0,t.jsx)(ee.XAxis,{dataKey:"date",tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:e=>e.slice(0,6)}),(0,t.jsx)(et.YAxis,{hide:!0}),(0,t.jsx)(ec.ChartTooltip,{cursor:!1,content:(0,t.jsx)(ec.ChartTooltipContent,{formatter:e=>u({currencyCode:c,amount:e})})}),(0,t.jsx)(K.Line,{dataKey:"avgOrderValue",type:"natural",stroke:"var(--color-avgOrderValue)",strokeWidth:2,dot:!1})]})}),dateRange:s})]})};e.s(["default",0,()=>{let{configuration:e}=(0,c.default)(),{isFullyConfigured:r}=e;return(0,t.jsxs)("div",{children:[(0,t.jsx)(R,{}),(0,t.jsx)("div",{className:"mt-5",children:(0,t.jsxs)("div",{className:"text-xl font-semibold text-slate-900 dark:text-slate-100",children:["Unchained",(0,t.jsxs)("span",{className:"font-light ml-1",children:["AdminUI",(0,t.jsxs)("span",{className:"text-xs ml-1",children:[" ","4.8.29"]})]})]})}),(0,t.jsxs)("div",{className:"mx-auto py-6",children:[(0,t.jsx)($,{className:"mb-8"}),r&&(0,t.jsx)(G,{}),(0,t.jsx)(eC,{}),(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[r&&(0,t.jsx)("div",{className:"bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 p-6",children:(0,t.jsx)(B,{})}),(0,t.jsx)(L,{})]})]})]})}],57201)},3050,(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",()=>e.r(57201)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push(["/"])})},52745,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...a},s){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:s,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{d:"M10.362 1.093a.75.75 0 0 0-.724 0L2.523 5.018 10 9.143l7.477-4.125-7.115-3.925ZM18 6.443l-7.25 4v8.25l6.862-3.786A.75.75 0 0 0 18 14.25V6.443ZM9.25 18.693v-8.25l-7.25-4v7.807a.75.75 0 0 0 .388.657l6.862 3.786Z"}))});e.s(["CubeIcon",0,r],52745)},31004,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...a},s){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:s,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{d:"M7 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM14.5 9a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM1.615 16.428a1.224 1.224 0 0 1-.569-1.175 6.002 6.002 0 0 1 11.908 0c.058.467-.172.92-.57 1.174A9.953 9.953 0 0 1 7 18a9.953 9.953 0 0 1-5.385-1.572ZM14.5 16h-.106c.07-.297.088-.611.048-.933a7.47 7.47 0 0 0-1.588-3.755 4.502 4.502 0 0 1 5.874 2.636.818.818 0 0 1-.36.98A7.465 7.465 0 0 1 14.5 16Z"}))});e.s(["UsersIcon",0,r],31004)},15361,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...a},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});e.s(["CheckCircleIcon",0,r],15361)},48953,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...a},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});e.s(["ClockIcon",0,r],48953)},83345,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...a},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"}))});e.s(["CubeIcon",0,r],83345)},24629,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...a},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))});e.s(["GlobeAltIcon",0,r],24629)},37369,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...a},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["PlusIcon",0,r],37369)},24608,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...a},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))});e.s(["XMarkIcon",0,r],24608)},56206,e=>{"use strict";function t(){for(var e,t,r=0,a="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=function e(t){var r,a,s="";if("string"==typeof t||"number"==typeof t)s+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(a=e(t[r]))&&(s&&(s+=" "),s+=a)}else for(a in t)t[a]&&(s&&(s+=" "),s+=a);return s}(e))&&(a&&(a+=" "),a+=t);return a}e.s(["clsx",0,t,"default",0,t])},31599,e=>{"use strict";e.s(["default",0,function(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}])},59015,e=>{"use strict";e.s(["default",0,function(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);else{let a=-1;for(let s of e)null!=(s=t(s,++a,e))&&(r<s||void 0===r&&s>=s)&&(r=s)}return r}])},28917,e=>{"use strict";e.s(["default",0,function(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);else{let a=-1;for(let s of e)null!=(s=t(s,++a,e))&&(r>s||void 0===r&&s>=s)&&(r=s)}return r}])},98952,19903,47672,11049,74037,44641,25369,e=>{"use strict";function t(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function r(e,t){var r=Object.create(e.prototype);for(var a in t)r[a]=t[a];return r}function a(){}e.s(["default",()=>z],44641);var s="\\s*([+-]?\\d+)\\s*",i="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",n="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,o=RegExp(`^rgb\\(${s},${s},${s}\\)$`),d=RegExp(`^rgb\\(${n},${n},${n}\\)$`),c=RegExp(`^rgba\\(${s},${s},${s},${i}\\)$`),u=RegExp(`^rgba\\(${n},${n},${n},${i}\\)$`),f=RegExp(`^hsl\\(${i},${n},${n}\\)$`),m=RegExp(`^hsla\\(${i},${n},${n},${i}\\)$`),g={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function h(){return this.rgb().formatHex()}function x(){return this.rgb().formatRgb()}function p(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=l.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?b(t):3===r?new k(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?v(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?v(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=o.exec(e))?new k(t[1],t[2],t[3],1):(t=d.exec(e))?new k(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=c.exec(e))?v(t[1],t[2],t[3],t[4]):(t=u.exec(e))?v(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=f.exec(e))?$(t[1],t[2]/100,t[3]/100,1):(t=m.exec(e))?$(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?b(g[e]):"transparent"===e?new k(NaN,NaN,NaN,0):null}function b(e){return new k(e>>16&255,e>>8&255,255&e,1)}function v(e,t,r,a){return a<=0&&(e=t=r=NaN),new k(e,t,r,a)}function y(e,t,r,s){var i;return 1==arguments.length?((i=e)instanceof a||(i=p(i)),i)?new k((i=i.rgb()).r,i.g,i.b,i.opacity):new k:new k(e,t,r,null==s?1:s)}function k(e,t,r,a){this.r=+e,this.g=+t,this.b=+r,this.opacity=+a}function w(){return`#${M(this.r)}${M(this.g)}${M(this.b)}`}function j(){let e=C(this.opacity);return`${1===e?"rgb(":"rgba("}${N(this.r)}, ${N(this.g)}, ${N(this.b)}${1===e?")":`, ${e})`}`}function C(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function N(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function M(e){return((e=N(e))<16?"0":"")+e.toString(16)}function $(e,t,r,a){return a<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new I(e,t,r,a)}function S(e){if(e instanceof I)return new I(e.h,e.s,e.l,e.opacity);if(e instanceof a||(e=p(e)),!e)return new I;if(e instanceof I)return e;var t=(e=e.rgb()).r/255,r=e.g/255,s=e.b/255,i=Math.min(t,r,s),n=Math.max(t,r,s),l=NaN,o=n-i,d=(n+i)/2;return o?(l=t===n?(r-s)/o+(r<s)*6:r===n?(s-t)/o+2:(t-r)/o+4,o/=d<.5?n+i:2-n-i,l*=60):o=d>0&&d<1?0:l,new I(l,o,d,e.opacity)}function I(e,t,r,a){this.h=+e,this.s=+t,this.l=+r,this.opacity=+a}function _(e){return(e=(e||0)%360)<0?e+360:e}function E(e){return Math.max(0,Math.min(1,e||0))}function R(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function q(e,t,r,a,s){var i=e*e,n=i*e;return((1-3*e+3*i-n)*t+(4-6*i+3*n)*r+(1+3*e+3*i-3*n)*a+n*s)/6}t(a,p,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:h,formatHex:h,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return S(this).formatHsl()},formatRgb:x,toString:x}),t(k,y,r(a,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new k(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new k(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new k(N(this.r),N(this.g),N(this.b),C(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:w,formatHex:w,formatHex8:function(){return`#${M(this.r)}${M(this.g)}${M(this.b)}${M((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:j,toString:j})),t(I,function(e,t,r,a){return 1==arguments.length?S(e):new I(e,t,r,null==a?1:a)},r(a,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new I(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new I(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*t,s=2*r-a;return new k(R(e>=240?e-240:e+120,s,a),R(e,s,a),R(e<120?e+240:e-120,s,a),this.opacity)},clamp(){return new I(_(this.h),E(this.s),E(this.l),C(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=C(this.opacity);return`${1===e?"hsl(":"hsla("}${_(this.h)}, ${100*E(this.s)}%, ${100*E(this.l)}%${1===e?")":`, ${e})`}`}})),e.s(["color",0,p],19903);let A=e=>()=>e;function L(e,t){var r=t-e;return r?function(t){return e+t*r}:A(isNaN(e)?t:e)}let O=function e(t){var r,a=1==(r=+t)?L:function(e,t){var a,s,i;return t-e?(a=e,s=t,a=Math.pow(a,i=r),s=Math.pow(s,i)-a,i=1/i,function(e){return Math.pow(a+e*s,i)}):A(isNaN(e)?t:e)};function s(e,t){var r=a((e=y(e)).r,(t=y(t)).r),s=a(e.g,t.g),i=a(e.b,t.b),n=L(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=s(t),e.b=i(t),e.opacity=n(t),e+""}}return s.gamma=e,s}(1);function P(e){return function(t){var r,a,s=t.length,i=Array(s),n=Array(s),l=Array(s);for(r=0;r<s;++r)a=y(t[r]),i[r]=a.r||0,n[r]=a.g||0,l[r]=a.b||0;return i=e(i),n=e(n),l=e(l),a.opacity=1,function(e){return a.r=i(e),a.g=n(e),a.b=l(e),a+""}}}function D(e,t){return e*=1,t*=1,function(r){return e*(1-r)+t*r}}P(function(e){var t=e.length-1;return function(r){var a=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),s=e[a],i=e[a+1],n=a>0?e[a-1]:2*s-i,l=a<t-1?e[a+2]:2*i-s;return q((r-a/t)*t,n,s,i,l)}}),P(function(e){var t=e.length;return function(r){var a=Math.floor(((r%=1)<0?++r:r)*t),s=e[(a+t-1)%t],i=e[a%t],n=e[(a+1)%t],l=e[(a+2)%t];return q((r-a/t)*t,s,i,n,l)}}),e.s(["default",0,O],47672),e.s(["default",0,D],11049);var W=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,B=RegExp(W.source,"g");function T(e,t){var r,a,s,i,n,l=W.lastIndex=B.lastIndex=0,o=-1,d=[],c=[];for(e+="",t+="";(s=W.exec(e))&&(i=B.exec(t));)(n=i.index)>l&&(n=t.slice(l,n),d[o]?d[o]+=n:d[++o]=n),(s=s[0])===(i=i[0])?d[o]?d[o]+=i:d[++o]=i:(d[++o]=null,c.push({i:o,x:D(s,i)})),l=B.lastIndex;return l<t.length&&(n=t.slice(l),d[o]?d[o]+=n:d[++o]=n),d.length<2?c[0]?(r=c[0].x,function(e){return r(e)+""}):(a=t,function(){return a}):(t=c.length,function(e){for(var r,a=0;a<t;++a)d[(r=c[a]).i]=r.x(e);return d.join("")})}function z(e,t){var r,a,s=typeof t;return null==t||"boolean"===s?A(t):("number"===s?D:"string"===s?(a=p(t))?(t=a,O):T:t instanceof p?O:t instanceof Date?function(e,t){var r=new Date;return e*=1,t*=1,function(a){return r.setTime(e*(1-a)+t*a),r}}:!ArrayBuffer.isView(r=t)||r instanceof DataView?Array.isArray(t)?function(e,t){var r,a=t?t.length:0,s=e?Math.min(a,e.length):0,i=Array(s),n=Array(a);for(r=0;r<s;++r)i[r]=z(e[r],t[r]);for(;r<a;++r)n[r]=t[r];return function(e){for(r=0;r<s;++r)n[r]=i[r](e);return n}}:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?function(e,t){var r,a={},s={};for(r in(null===e||"object"!=typeof e)&&(e={}),(null===t||"object"!=typeof t)&&(t={}),t)r in e?a[r]=z(e[r],t[r]):s[r]=t[r];return function(e){for(r in a)s[r]=a[r](e);return s}}:D:function(e,t){t||(t=[]);var r,a=e?Math.min(t.length,e.length):0,s=t.slice();return function(i){for(r=0;r<a;++r)s[r]=e[r]*(1-i)+t[r]*i;return s}})(e,t)}e.s(["default",0,T],74037),e.s(["interpolate",0,z],98952),e.s(["interpolateNumber",0,D],25369)},23874,e=>{"use strict";e.s(["initInterpolator",0,function(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this},"initRange",0,function(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}])},28120,e=>{"use strict";var t=e.i(21791),r=e.i(23874);let a=Symbol("implicit");e.s(["default",0,function e(){var s=new t.InternMap,i=[],n=[],l=a;function o(e){let t=s.get(e);if(void 0===t){if(l!==a)return l;s.set(e,t=i.push(e)-1)}return n[t%n.length]}return o.domain=function(e){if(!arguments.length)return i.slice();for(let r of(i=[],s=new t.InternMap,e))s.has(r)||s.set(r,i.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(l=e,o):l},o.copy=function(){return e(i,n).unknown(l)},r.initRange.apply(o,arguments),o},"implicit",0,a])},21791,e=>{"use strict";class t extends Map{constructor(e,t=a){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,r]of e)this.set(t,r)}get(e){return super.get(r(this,e))}has(e){return super.has(r(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},r){let a=t(r);return e.has(a)?e.get(a):(e.set(a,r),r)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},r){let a=t(r);return e.has(a)&&(r=e.get(a),e.delete(a)),r}(this,e))}}function r({_intern:e,_key:t},a){let s=t(a);return e.has(s)?e.get(s):a}function a(e){return null!==e&&"object"==typeof e?e.valueOf():e}e.s(["InternMap",0,t])},5270,e=>{"use strict";var t=e.i(91788);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},s=(0,t.createContext)({}),i=(0,t.forwardRef)(({color:e,size:i,width:n,height:l,strokeWidth:o,absoluteStrokeWidth:d,nonScalingStroke:c,className:u="",children:f,iconNode:m=[],icon:g={node:m,aliases:[],size:24},...h},x)=>{let{size:p=24,strokeWidth:b=2,absoluteStrokeWidth:v=!1,nonScalingStroke:y=!1,color:k="currentColor",className:w=""}=(0,t.useContext)(s)??{},j=!!f||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(h),[C,N,M=[]]=function(e,t={}){return function(e,t={}){let s=t.attributeNames??{},i=e=>s[e]??e,n=e.size??e.width??a.width,l=e.size??e.height??a.height,o=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],d=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(" ").filter(Boolean)??[],u=!1===t.includeDefaultClasses?r(...c):r("lucide",...d,...c),f=t.absoluteStrokeWidth?Number(t.strokeWidth??a["stroke-width"])*Number(e.size??e.width??a.width)/Number(t.size??t.width??a.width):t.strokeWidth??a["stroke-width"];return["svg",{...Object.entries(a).reduce((e,[t,r])=>(e[i(t)]=r,e),{}),..."color"in t&&t.color&&{[i("stroke")]:t.color},..."size"in t&&null!=t.size&&{[i("width")]:t.size,[i("height")]:t.size},..."width"in t&&null!=t.width&&{[i("width")]:t.width},..."height"in t&&null!=t.height&&{[i("height")]:t.height},[i("stroke-width")]:f,...u&&{[i("class")]:u},[i("viewBox")]:`0 0 ${n} ${l}`,...!1===t.hasA11yProp?{[i("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[r,a,s]=e,n=t.nonScalingStroke?{[i("vector-effect")]:"non-scaling-stroke",...a}:a;return s?[r,n,s]:[r,n]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(g,{color:e??k,width:n??i??p,height:l??i??p,strokeWidth:o??b,absoluteStrokeWidth:d??v,nonScalingStroke:c??y,className:r(w,u),hasA11yProp:j,attributes:h});return(0,t.createElement)(C,{ref:x,...N},[...M.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(f)?f:[f]])});e.s(["default",0,function(e,r=[],a=[]){let s,n="string"==typeof e?function(e,t,r=[]){if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),size:24,node:t,...r.length>0?{aliases:r}:{}}}(e,r,a):e,l=(0,t.forwardRef)(({className:e,...r},a)=>(0,t.createElement)(i,{ref:a,icon:n,className:e,...r}));return n.name&&(l.displayName=(s=(e=>{let t="",r=!1;for(let a of e){if("-"===a||"_"===a||a<=" "){r=t.length>0;continue}0===t.length?t+=a.toLowerCase():t+=r?a.toUpperCase():a,r=!1}return t})(n.name)).charAt(0).toUpperCase()+s.slice(1)),l}],5270)},60121,(e,t,r)=>{"use strict";var a=e.r(91788),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=a.useState,n=a.useEffect,l=a.useLayoutEffect,o=a.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!s(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),a=i({inst:{value:r,getSnapshot:t}}),s=a[0].inst,c=a[1];return l(function(){s.value=r,s.getSnapshot=t,d(s)&&c({inst:s})},[e,r,t]),n(function(){return d(s)&&c({inst:s}),e(function(){d(s)&&c({inst:s})})},[e]),o(r),r};r.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:c},90979,(e,t,r)=>{"use strict";e.i(50461),t.exports=e.r(60121)}]);
@@ -1,224 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70693,12970,e=>{"use strict";var t=e.i(91788);let r=t.default.createContext({customProperties:{},hydrateFragment:(e,t)=>null});e.s(["default",0,r],12970),e.s(["default",0,()=>(0,t.useContext)(r)],70693)},11309,e=>{"use strict";var t=e.i(91398),r=e.i(72043),s=e.i(88566),a=e.i(25575),l=e.i(91788);let n=({header:e,body:n,headerCSS:i="",bodyCSS:o="",itemContainerCSS:d="",itemindex:u=1,hideChevron:c=!1})=>{let[m,f]=(0,l.useState)(!1);return(0,t.jsxs)("div",{className:(0,r.default)("mt-3",d),"data-itemindex":u,children:[(0,t.jsxs)("button",{type:"button",onClick:()=>f(!m),className:(0,r.default)("relative cursor-pointer border dark:border-slate-800 bg-white dark:bg-slate-900 text-slate-500 dark:text-slate-200 hover:bg-slate-50 dark:hover:bg-slate-700 w-full max-w-full overflow-hidden",i),children:[(0,t.jsx)("div",{className:"w-full",children:e}),!c&&(0,t.jsx)("span",{className:"px-2",children:m?(0,t.jsx)(a.ChevronUpIcon,{className:"h-5 w-5"}):(0,t.jsx)(s.ChevronDownIcon,{className:"h-5 w-5"})})]}),m?(0,t.jsx)("div",{className:(0,r.default)("rounded-lg sm:p-4 xl:p-10 relative overflow-visible",o),children:n}):""]})};e.s(["default",0,({data:e,containerCSS:s="",headerCSS:a="",bodyCSS:l="",itemContainerCSS:i="",hideChevron:o=!1,...d})=>(0,t.jsx)("div",{className:(0,r.default)("my-3",s),...d,children:e.map(({header:e,body:r},s)=>(0,t.jsx)(n,{itemindex:s,header:e,body:r,headerCSS:a,bodyCSS:l,itemContainerCSS:i,hideChevron:o},s))})],11309)},8199,e=>{"use strict";var t=e.i(91398),r=e.i(91788),s=e.i(63414);class a extends r.default.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error({error:e,errorInfo:t})}render(){return this.state.hasError?(0,t.jsx)(s.default,{error:this.state.error,resetError:()=>this.setState({hasError:!1,error:null})}):this.props.children}}e.s(["default",0,a])},63414,e=>{"use strict";var t=e.i(91398),r=e.i(41158),s=e.i(69322),a=e.i(5505);e.s(["default",0,({error:e=null,resetError:l=null})=>{let{formatMessage:n}=(0,s.useIntl)();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-slate-900 dark:text-slate-200",children:n({id:"internal_server_error",defaultMessage:"500 Internal Server Error"})})}),(0,t.jsx)(a.default,{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)("svg",{className:"h-6 w-6 text-rose-600 dark:text-rose-400",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-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),(0,t.jsx)("p",{className:"mt-4 text-sm font-semibold uppercase tracking-wide text-rose-600 dark:text-rose-400",children:n({id:"error_500",defaultMessage:"500 Error"})}),(0,t.jsx)("p",{className:"mt-2 text-base text-slate-500 dark:text-slate-400",children:n({id:"internal_server_error_message",defaultMessage:"Sorry, something went wrong on our end. We are working to fix this."})}),e?.message&&(0,t.jsxs)("details",{className:"mt-4 text-left",children:[(0,t.jsx)("summary",{className:"cursor-pointer text-sm text-slate-600 dark:text-slate-400 hover:text-slate-800 dark:hover:text-slate-300",children:n({id:"show_error_details",defaultMessage:"Show error details"})}),(0,t.jsx)("pre",{className:"mt-2 text-xs text-slate-500 dark:text-slate-400 whitespace-pre-wrap break-all",children:e?.message})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 mt-6",children:[(0,t.jsxs)(r.default,{href:"/",className:"group relative flex w-full justify-center rounded-md border border-transparent bg-slate-800 dark:bg-slate-600 py-2 px-4 text-sm font-medium text-white hover:bg-slate-950 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 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"})})}),n({id:"back_to_home",defaultMessage:"Back to Home"})]}),l&&(0,t.jsxs)("button",{type:"button",onClick:l,className:"group relative flex w-full justify-center rounded-md border border-slate-300 bg-slate-100 dark:bg-slate-700 dark:border-slate-600 py-2 px-4 text-sm font-medium text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:outline-hidden focus:ring-2 focus:ring-slate-500 dark:focus:ring-slate-400 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-slate-500 dark:text-slate-400 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:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z",clipRule:"evenodd"})})}),n({id:"try_again",defaultMessage:"Try Again"})]})]})]})})]})})}])},5505,e=>{"use strict";var t=e.i(91398),r=e.i(91788),s=e.i(72043);let a=(0,r.createContext)(!1);e.s(["FormWrapperContext",0,a,"default",0,({children:e,className:r=""})=>(0,t.jsx)(a.Provider,{value:!0,children:(0,t.jsx)("div",{className:"sm:max-w-full",children:(0,t.jsx)("div",{className:(0,s.default)("bg-white dark:bg-slate-800 rounded-md shadow-sm overflow-hidden",r),children:e})})})])},81359,e=>{"use strict";var t=e.i(91398),r=e.i(24608),s=e.i(69322);e.s(["default",0,({onClick:e,text:a=null,Icon:l=null})=>{let{formatMessage:n}=(0,s.useIntl)();return(0,t.jsxs)("button",{type:"button",onClick:e,"aria-describedby":"header-delete-button",className:"inline-flex items-center gap-2 justify-center rounded-md border border-rose-500 px-4 py-2 text-sm font-medium leading-5 text-rose-600 dark:text-rose-200 shadow-sm hover:border-rose-600 hover:bg-rose-600 hover:text-white focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 h-[38px]",children:[(0,t.jsx)("span",{children:l||(0,t.jsx)(r.XMarkIcon,{className:"h-5 w-5"})}),a||n({id:"delete",defaultMessage:"Delete"})]})}])},30276,e=>{"use strict";var t=e.i(91398),r=e.i(91788);let s=r.forwardRef(function({title:e,titleId:t,...s},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},s),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))});var a=e.i(69322);e.s(["default",0,({messageKey:e,defaultMessage:r,values:l,className:n="",showIcon:i=!0})=>{let{formatMessage:o}=(0,a.useIntl)(),d=o({id:e,defaultMessage:r},l);return d?(0,t.jsxs)("div",{className:`flex items-start space-x-1 text-sm text-slate-600 dark:text-slate-400 ${n}`,children:[i&&(0,t.jsx)(s,{className:"h-4 w-4 mt-0.5 flex-shrink-0"}),(0,t.jsx)("span",{children:d})]}):null}],30276)},12197,e=>{"use strict";var t=e.i(91398),r=e.i(69322);e.s(["default",0,()=>{let{formatMessage:e}=(0,r.useIntl)();return(0,t.jsx)("div",{className:"my-5 flex h-full w-full items-center justify-center bg-slate-50 dark:bg-slate-950 py-5",children:(0,t.jsxs)("div",{className:"flex items-center justify-center space-x-1 text-sm text-slate-700 dark:text-slate-200",children:[(0,t.jsx)("svg",{fill:"none",className:"h-6 w-6 animate-spin",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{clipRule:"evenodd",d:"M15.165 8.53a.5.5 0 01-.404.58A7 7 0 1023 16a.5.5 0 011 0 8 8 0 11-9.416-7.874.5.5 0 01.58.404z",fill:"currentColor",fillRule:"evenodd"})}),(0,t.jsx)("div",{children:e({id:"loading",defaultMessage:"Loading ..."})})]})})}])},11056,e=>{"use strict";var t=e.i(91398),r=e.i(91788),s=e.i(5505),a=e.i(57561);e.s(["default",0,({children:e,onlyFull:l=!1})=>{let{languageDialectList:n,selectedLocale:i,setSelectedLocale:o}=(0,a.default)(),d=(0,r.useContext)(s.FormWrapperContext),u=n.filter(e=>!l||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-slate-300 dark:border-slate-700 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-slate-800",value:i||"",onChange:e=>{e.stopPropagation(),o(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)})]})}])},16371,e=>{"use strict";var t=e.i(91788),r=e.i(30943);e.s(["default",0,({children:e,container:s=null,className:a=""})=>{let l=(0,t.useRef)(null),[n,i]=(0,t.useState)(!1);return((0,t.useEffect)(()=>{let e=document.createElement("div");a&&(e.className=a),l.current=e;let t=s||document.body;return t.appendChild(e),i(!0),()=>{l.current&&t.contains(l.current)&&t.removeChild(l.current)}},[s,a]),n&&l.current)?(0,r.createPortal)(e,l.current):null}])},3095,e=>{"use strict";var t=e.i(91398),r=e.i(91788),s=e.i(69322),a=e.i(86712),l=e.i(76842),n=e.i(24557),i=e.i(16371);e.s(["default",0,({onEdit:e,onDelete:o,editLabel:d,deleteLabel:u,showEdit:c=!0,showDelete:m=!0})=>{let{formatMessage:f}=(0,s.useIntl)(),[x,h]=(0,r.useState)(!1),[g,v]=(0,r.useState)({top:0,left:0}),p=(0,r.useRef)(null),b=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{p.current&&!p.current.contains(e.target)&&h(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let w=(e,t)=>{e.stopPropagation(),e.preventDefault(),t&&t(),h(!1)};return 0===[c&&e,m&&o].filter(Boolean).length?null:(0,t.jsxs)("div",{className:"flex justify-end w-full",children:[(0,t.jsx)("button",{ref:b,type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),x||(()=>{if(!b.current)return;let e=b.current.getBoundingClientRect(),t=e.bottom+4,r=e.right-192;r<8&&(r=8),t+80>window.innerHeight-8&&(t=e.top-80-4),v({top:t,left:r})})(),h(!x)},className:"flex items-center justify-center w-8 h-8 rounded-md hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors","aria-label":f({id:"table_actions_menu",defaultMessage:"Actions menu"}),children:(0,t.jsx)(a.EllipsisHorizontalIcon,{className:"w-5 h-5 text-slate-500 dark:text-slate-400"})}),x&&(0,t.jsx)(i.default,{children:(0,t.jsx)("div",{ref:p,className:"fixed w-48 bg-white dark:bg-slate-800 rounded-md shadow-xl border border-slate-200 dark:border-slate-700 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=>w(t,e),className:"flex items-center w-full px-4 py-2 text-sm text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors",children:[(0,t.jsx)(l.PencilIcon,{className:"mr-3 h-5 w-5"}),d||f({id:"edit",defaultMessage:"Edit"})]}),m&&o&&(0,t.jsxs)("button",{type:"button",onClick:e=>w(e,o),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)(n.TrashIcon,{className:"mr-3 h-5 w-5"}),u||f({id:"delete",defaultMessage:"Delete"})]})]})})})]})}])},64591,e=>{"use strict";var t=e.i(91398),r=e.i(72043),s=e.i(3828),a=e.i(83147);e.s(["default",0,({toggleText:e="",toggleKey:l=null,onToggle:n=null,active:i=!1,className:o="",disabled:d=!1,...u})=>{let c=(0,s.useRouter)(),m=c?.query?.[l]==="true"||i;return(0,t.jsxs)("div",{className:(0,r.default)("",o),children:[(0,t.jsxs)("button",{id:l,disabled:d,type:"button",className:(0,r.default)("relative inline-flex h-3.5 w-9 shrink-0 cursor-pointer rounded-full border-1 border-transparent transition-all duration-200 ease-in-out focus:outline-hidden focus:ring-2 focus:ring-slate-400 focus:ring-offset-2",{"bg-slate-200 dark:bg-slate-700":!m,"bg-emerald-500 dark:bg-emerald-600 shadow-sm":m}),role:"switch",onClick:n||(()=>{let{skip:e,...t}=c.query;c.push({query:(0,a.normalizeQuery)(t,!m,l)})}),"aria-checked":m?"true":"false",...u,children:[(0,t.jsx)("span",{className:"sr-only",children:e}),(0,t.jsxs)("span",{className:(0,r.default)("ml-0.5 pointer-events-none relative inline-block h-3 w-3 transform rounded-full bg-white shadow-sm ring-0 transition-all duration-200 ease-in-out",{"translate-x-5 shadow-md":m,"translate-x-0":!m}),children:[(0,t.jsx)("span",{className:(0,r.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-0 duration-100 ease-out":m,"opacity-100 duration-200 ease-in":!m}),"aria-hidden":"true",children:(0,t.jsx)("svg",{className:"h-3 w-3 text-slate-400",fill:"none",viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)("span",{className:(0,r.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-100 duration-200 ease-in":m,"opacity-0 duration-100 ease-out":!m}),"aria-hidden":"true",children:(0,t.jsx)("svg",{className:"h-3 w-3 text-emerald-500",fill:"currentColor",viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"})})})]})]}),(0,t.jsx)("span",{className:"ml-3",id:"annual-billing-label",children:(0,t.jsx)("span",{className:"text-sm font-medium text-slate-900 dark:text-slate-200",children:e})})]})}])},1504,e=>{"use strict";e.s(["default",0,(e,t,r)=>Object.assign({},...e?.map(e=>({[e[r]]:e[t]}))||[])])},57561,48539,55989,e=>{"use strict";var t=e.i(91788),r=e.i(91398),s=e.i(69322),a=e.i(51713),l=e.i(98520),n=e.i(59080),i=e.i(32171);let o=n.gql`
2
- query ShopInfo {
3
- shopInfo {
4
- _id
5
- version
6
- language {
7
- _id
8
- isoCode
9
- name
10
- }
11
- country {
12
- _id
13
- isoCode
14
- flagEmoji
15
- name
16
- defaultCurrency {
17
- _id
18
- isoCode
19
- }
20
- }
21
- adminUiConfig {
22
- singleSignOnURL
23
- externalLinks {
24
- href
25
- title
26
- target
27
- }
28
- customProperties {
29
- entityName
30
- inlineFragment
31
- }
32
- productTags
33
- assortmentTags
34
- userTags
35
- }
36
- }
37
- }
38
- `,d=()=>{let{data:e,loading:t,error:r}=(0,i.useQuery)(o,{fetchPolicy:"cache-first"}),{shopInfo:s}=e||{};return{shopInfo:s,defaultLocale:[s?.language?.isoCode,s?.country?.isoCode?.toUpperCase()].filter(Boolean)?.join("-"),loading:t,error:r}};e.s(["default",0,d],48539);var u=e.i(79684);let c=(0,t.createContext)(void 0);e.s(["AppContextWrapper",0,({children:e,onlyFull:n=!1})=>{let i,{languages:o}=(0,a.default)(),{locale:m}=(0,s.useIntl)(),[f,x]=(0,u.default)("selectedLocale",null),{shopInfo:h,loading:g}=d(),{countries:v}=(0,l.default)(),[p,b]=(0,t.useState)(m),w=e=>{x(e),b(e)};(0,t.useEffect)(()=>{f?b(f):g||w(`${h?.language?.isoCode}-${h?.country?.isoCode?.toUpperCase()}`)},[h,g,m]);let j=(i=[],o.forEach(({_id:e,isoCode:t})=>{i.push({_id:e,isoCode:t}),v.forEach(({isoCode:r,_id:s})=>{let a=[t,r.toUpperCase()].join("-");(e=>{try{return new Intl.DateTimeFormat(e).resolvedOptions().locale.toLowerCase()===e.toLowerCase()}catch(e){return!1}})(a)&&i.push({_id:`${s}-${e}`,isoCode:a})})}),i).filter(e=>!n||e.isoCode.includes("-")),k=!!h?.language&&!!h?.country;return(0,r.jsx)(c.Provider,{value:{selectedLocale:p,setSelectedLocale:w,languageDialectList:j,isSystemReady:k,shopInfo:h},children:e})},"default",0,c],55989),e.s(["default",0,()=>{let e=(0,t.useContext)(c);if(!e)throw Error("useLocale must be used within a LocaleProvider");return e}],57561)},77846,e=>{"use strict";var t=e.i(59080);let r=t.gql`
39
- fragment CountryFragment on Country {
40
- _id
41
- isoCode
42
- isActive
43
- isBase
44
-
45
- defaultCurrency {
46
- _id
47
- isoCode
48
- }
49
- }
50
- `;e.s(["default",0,r])},98520,e=>{"use strict";var t=e.i(59080),r=e.i(32171),s=e.i(77846);let a=t.gql`
51
- query Countries(
52
- $queryString: String
53
- $limit: Int
54
- $offset: Int
55
- $includeInactive: Boolean
56
- $sort: [SortOptionInput!]
57
- ) {
58
- countries(
59
- queryString: $queryString
60
- limit: $limit
61
- offset: $offset
62
- includeInactive: $includeInactive
63
- sort: $sort
64
- ) {
65
- ...CountryFragment
66
- }
67
- countriesCount(includeInactive: $includeInactive, queryString: $queryString)
68
- }
69
-
70
- ${s.default}
71
- `;e.s(["default",0,({queryString:e="",limit:t=20,offset:s=0,includeInactive:l=!0,sort:n=[]}={})=>{let{data:i,loading:o,error:d,fetchMore:u}=(0,r.useQuery)(a,{variables:{queryString:e,limit:t,offset:s,includeInactive:l,sort:n}}),c=i?.countries||[],m=i?.countriesCount,f=c?.length<m;return{countries:c,countriesCount:m,hasMore:f,loading:o,error:d,loadMore:()=>{u({variables:{offset:c?.length}})}}}])},68191,e=>{"use strict";var t=e.i(59080);let r=t.gql`
72
- fragment CurrencyFragment on Currency {
73
- _id
74
- isoCode
75
- isActive
76
- contractAddress
77
- decimals
78
- }
79
- `;e.s(["default",0,r])},79093,e=>{"use strict";var t=e.i(59080),r=e.i(32171),s=e.i(68191);let a=t.gql`
80
- query Currencies(
81
- $queryString: String
82
- $limit: Int
83
- $offset: Int
84
- $includeInactive: Boolean
85
- $sort: [SortOptionInput!]
86
- ) {
87
- currencies(
88
- queryString: $queryString
89
- limit: $limit
90
- offset: $offset
91
- includeInactive: $includeInactive
92
- sort: $sort
93
- ) {
94
- ...CurrencyFragment
95
- }
96
- currenciesCount(
97
- includeInactive: $includeInactive
98
- queryString: $queryString
99
- )
100
- }
101
- ${s.default}
102
- `;e.s(["default",0,({queryString:e="",limit:t=20,offset:s=0,includeInactive:l=!0,sort:n=[]}={})=>{let{data:i,loading:o,error:d,fetchMore:u}=(0,r.useQuery)(a,{variables:{queryString:e,limit:t,offset:s,includeInactive:l,sort:n}}),c=i?.currencies||[],m=i?.currenciesCount,f=c?.length<m;return{currencies:c,currenciesCount:m,hasMore:f,loading:o,error:d,loadMore:()=>{u({variables:{offset:c?.length}})}}}])},73419,e=>{"use strict";var t=e.i(91398),r=e.i(72043),s=e.i(60741),a=e.i(29691);e.s(["default",0,e=>{let{options:l,...n}=(0,s.default)(e),{className:i}=e||{className:""};return(0,t.jsx)(a.default,{...n,children:(0,t.jsx)("div",{className:"select-wrap",children:(0,t.jsxs)("select",{className:(0,r.default)("block w-full dark:bg-slate-900 dark:text-white rounded-md border-1 border-slate-300 dark:border-slate-700 py-2.5 pl-3 pr-10 text-base text-black shadow-xs focus:outline-hidden focus:ring-2 focus:ring-slate-800 sm:text-sm",i,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!n.error}),disabled:n.disabled,id:n.name,name:n.name,onChange:n.onChange,onBlur:n.onBlur,value:n.value,children:[(0,t.jsx)("option",{className:"dark:text-slate-200",value:"",disabled:n.required,hidden:n.required,children:n.placeholder||n.label}),Object.entries(l).map(([e,r])=>(0,t.jsx)("option",{className:"dark:text-slate-200",value:e,children:r},e))]})})})}])},45229,e=>{"use strict";var t=e.i(91398),r=e.i(72043),s=e.i(82226),a=e.i(60741),l=e.i(29691);e.s(["default",0,({maxLength:e=0,validators:n=[],...i})=>{let o=(0,a.default)({validators:[...n,e&&(0,s.validateMaxLength)(e)],...i});return(0,t.jsx)(l.default,{...o,children:(0,t.jsx)("input",{className:(0,r.default)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-600 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 focus:outline-hidden focus:ring-2 focus:ring-slate-800 shadow-xs",{"border-rose-700 placeholder:text-rose-500":!!o.error,"border-slate-300 placeholder-slate-400":!o.error}),disabled:o.disabled,id:o.name,name:o.name,onChange:o.onChange,onClick:e=>{e.stopPropagation()},onBlur:o.onBlur,placeholder:o.placeholder,autoComplete:o.autoComplete||"off",type:o.type||"text",value:o.value,autoFocus:o.autoFocus})})}])},95064,e=>{"use strict";var t=e.i(59080);let r=t.gql`
103
- fragment LanguageFragment on Language {
104
- _id
105
- isoCode
106
- isActive
107
- isBase
108
- name
109
- }
110
- `;e.s(["default",0,r])},51713,e=>{"use strict";var t=e.i(59080),r=e.i(32171),s=e.i(95064);let a=t.gql`
111
- query Languages(
112
- $queryString: String
113
- $offset: Int
114
- $limit: Int
115
- $includeInactive: Boolean
116
- $sort: [SortOptionInput!]
117
- ) {
118
- languages(
119
- queryString: $queryString
120
- offset: $offset
121
- limit: $limit
122
- includeInactive: $includeInactive
123
- sort: $sort
124
- ) {
125
- ...LanguageFragment
126
- }
127
- languagesCount(includeInactive: $includeInactive, queryString: $queryString)
128
- }
129
- ${s.default}
130
- `;e.s(["default",0,({queryString:e="",limit:t=20,offset:s=0,includeInactive:l=!0,sort:n=[]}={})=>{let{data:i,loading:o,error:d,fetchMore:u}=(0,r.useQuery)(a,{variables:{queryString:e,limit:t,offset:s,includeInactive:l,sort:n}}),c=i?.languages||[],m=i?.languagesCount,f=c?.length<m;return{languages:c,languagesCount:m,hasMore:f,loading:o,error:d,loadMore:()=>{u({variables:{offset:c?.length}})}}}])},34728,e=>{"use strict";var t=e.i(91398),r=e.i(38322);e.s(["default",0,({onOkClick:e,buttonText:s,headerText:a,message:l,icon:n=null})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{children:[n||(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-emerald-100 dark:bg-emerald-900/30",children:(0,t.jsx)(r.CheckIcon,{className:"h-6 w-6 text-emerald-600 dark:text-emerald-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"})}),(0,t.jsxs)("div",{className:"mt-3 text-center sm:mt-5",children:[(0,t.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",id:"modal-title",children:a}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("p",{className:"text-sm text-slate-500 dark:text-slate-200",children:l})})]})]}),(0,t.jsx)("div",{className:"mt-5 sm:mt-6",children:(0,t.jsx)("button",{id:"alert_ok",onClick:e,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-slate-800 dark:bg-slate-600 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-slate-950 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:ring-offset-2 sm:text-sm",children:s})})]})])},15971,e=>{"use strict";var t=e.i(91398),r=e.i(69322);e.s(["default",0,({onOkClick:e,onCancelClick:s,okText:a=null,cancelText:l=null,headerText:n=null,message:i=null,icon:o=null,close:d=null})=>{let{formatMessage:u}=(0,r.useIntl)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sm:flex sm:items-start",children:[o||(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-rose-600 dark:text-rose-400",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-slate-900 dark:text-slate-200",id:"modal-title",children:n||u({id:"warning",defaultMessage:"Warning!"})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("p",{className:"text-sm text-slate-500 dark:text-slate-200",children:i||u({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,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 sm:ml-3 sm:w-auto sm:text-sm",children:a||u({id:"continue",defaultMessage:"Continue"})}),(0,t.jsx)("button",{id:"danger_cancel",onClick:s||d,type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-slate-300 bg-white px-4 py-2 text-base font-medium text-slate-700 shadow-xs hover:bg-slate-50 focus:outline-hidden focus:ring-2 focus:ring-slate-800 focus:ring-offset-2 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",children:l||u({id:"cancel",defaultMessage:"Cancel"})})]})]})}])},6607,e=>{"use strict";var t=e.i(91788),r=e.i(6444);e.s(["default",0,()=>(0,t.useContext)(r.default)])},6444,e=>{"use strict";let t=e.i(91788).default.createContext({setModal:()=>{throw Error("No ModalContext/ModalWrapper ancestor found.")}});e.s(["default",0,t])},62199,14336,e=>{"use strict";var t=e.i(59080);let r=t.gql`
131
- fragment ProductDetailFragment on Product {
132
- _id
133
- sequence
134
- status
135
- created
136
- tags
137
- updated
138
- published
139
-
140
- media {
141
- _id
142
- tags
143
- file {
144
- _id
145
- url
146
- }
147
- }
148
- reviews {
149
- _id
150
- created
151
- author {
152
- _id
153
- username
154
- isGuest
155
- }
156
- rating
157
- title
158
- review
159
- voteCount
160
- ownVotes {
161
- type
162
- timestamp
163
- }
164
- }
165
- siblings {
166
- _id
167
- media {
168
- _id
169
- file {
170
- _id
171
- url
172
- }
173
- }
174
- }
175
- }
176
- `;e.s(["default",0,r],62199);let s=t.gql`
177
- fragment ProductTextsFragment on ProductTexts {
178
- _id
179
- locale
180
- slug
181
- title
182
- subtitle
183
- description
184
- vendor
185
- brand
186
- labels
187
- }
188
- `;e.s(["default",0,s],14336)},38994,e=>{"use strict";var t=e.i(59080),r=e.i(76204),s=e.i(62199),a=e.i(14336);let l=t.gql`
189
- mutation CreateProduct(
190
- $product: CreateProductInput!
191
- $texts: [ProductTextInput!]
192
- ) {
193
- createProduct(product: $product, texts: $texts) {
194
- ...ProductDetailFragment
195
- ... on SimpleProduct {
196
- texts {
197
- ...ProductTextsFragment
198
- }
199
- }
200
- ... on ConfigurableProduct {
201
- texts {
202
- ...ProductTextsFragment
203
- }
204
- }
205
- ... on BundleProduct {
206
- texts {
207
- ...ProductTextsFragment
208
- }
209
- }
210
- ... on TokenizedProduct {
211
- texts {
212
- ...ProductTextsFragment
213
- }
214
- }
215
- ... on PlanProduct {
216
- texts {
217
- ...ProductTextsFragment
218
- }
219
- }
220
- }
221
- }
222
- ${s.default}
223
- ${a.default}
224
- `;e.s(["default",0,()=>{let[e,{data:t,error:s,loading:a}]=(0,r.useMutation)(l);return{createProduct:async({product:{type:t,tags:r},texts:s})=>e({variables:{product:{type:t,tags:r},texts:s},refetchQueries:["Products","ShopStatus","ShopInfo"]}),newProduct:t?.createProduct,error:s,loading:a}}])},76842,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){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:a,"aria-labelledby":r},s),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(["PencilIcon",0,r],76842)},24557,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){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:a,"aria-labelledby":r},s),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(["TrashIcon",0,r],24557)},38322,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))});e.s(["CheckIcon",0,r],38322)},38187,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))});e.s(["ChevronDownIcon",0,r],38187)},86712,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"}))});e.s(["EllipsisHorizontalIcon",0,r],86712)},24608,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))});e.s(["XMarkIcon",0,r],24608)},40238,(e,t,r)=>{"use strict";var s=e.r(91788),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=s.useSyncExternalStore,n=s.useRef,i=s.useEffect,o=s.useMemo,d=s.useDebugValue;r.useSyncExternalStoreWithSelector=function(e,t,r,s,u){var c=n(null);if(null===c.current){var m={hasValue:!1,value:null};c.current=m}else m=c.current;var f=l(e,(c=o(function(){function e(e){if(!i){if(i=!0,l=e,e=s(e),void 0!==u&&m.hasValue){var t=m.value;if(u(t,e))return n=t}return n=e}if(t=n,a(l,e))return t;var r=s(e);return void 0!==u&&u(t,r)?(l=e,t):(l=e,n=r)}var l,n,i=!1,o=void 0===r?null:r;return[function(){return e(t())},null===o?void 0:function(){return e(o())}]},[t,r,s,u]))[0],c[1]);return i(function(){m.hasValue=!0,m.value=f},[f]),d(f),f}},19979,(e,t,r)=>{"use strict";e.i(50461),t.exports=e.r(40238)}]);