@unchainedshop/admin-ui 5.0.0-alpha.5 → 5.0.0-alpha.7

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 (754) hide show
  1. package/README.md +27 -19
  2. package/dist/chunk-2RTX42IE.js +2083 -0
  3. package/dist/chunk-6UGLNLJG.js +44 -0
  4. package/dist/{chunk-UXG7EYHC.js → chunk-7PPOGX7R.js} +2 -35
  5. package/dist/{chunk-45H2WVIC.js → chunk-COV7BREX.js} +0 -1
  6. package/dist/{chunk-RHUFQVKL.js → chunk-F2TCVEQX.js} +1 -1
  7. package/dist/{chunk-UFYR5WZT.js → chunk-GY2DRQGW.js} +2 -1
  8. package/dist/{chunk-BGCKJQGS.js → chunk-JAVEZY3Q.js} +22 -15
  9. package/dist/{chunk-6TXD4TA7.js → chunk-KCN7DDPH.js} +2 -82
  10. package/dist/{chunk-YSKZE2KN.js → chunk-MSPWYMDY.js} +37 -24
  11. package/dist/chunk-RORNAN2J.js +12 -0
  12. package/dist/chunk-YZGQJJCD.js +37 -0
  13. package/dist/components/ui/Tag/TagInput.d.ts +10 -5
  14. package/dist/components/ui/Tag/TagInput.d.ts.map +1 -1
  15. package/dist/components/ui/form/TagInputField.d.ts +2 -1
  16. package/dist/components/ui/form/TagInputField.d.ts.map +1 -1
  17. package/dist/form.js +743 -2510
  18. package/dist/gql/operation-types.d.ts +13043 -0
  19. package/dist/gql/operation-types.d.ts.map +1 -0
  20. package/dist/gql/schema-types.d.ts +3820 -0
  21. package/dist/gql/schema-types.d.ts.map +1 -0
  22. package/dist/gql/types.d.ts +2 -17208
  23. package/dist/gql/types.d.ts.map +1 -1
  24. package/dist/hooks.js +3 -2
  25. package/dist/modal.js +9 -5
  26. package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -1
  27. package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -1
  28. package/dist/modules/accounts.js +219 -63
  29. package/dist/modules/assortment.js +9 -4
  30. package/dist/modules/common/hooks/useApp.d.ts +1 -1
  31. package/dist/modules/common/hooks/useBulkResultHandler.d.ts +8 -0
  32. package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +1 -0
  33. package/dist/modules/common/hooks/useBulkSelection.d.ts +12 -0
  34. package/dist/modules/common/hooks/useBulkSelection.d.ts.map +1 -0
  35. package/dist/modules/common/hooks/useScrollRestoration.d.ts +8 -0
  36. package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +1 -0
  37. package/dist/modules/common/hooks/useShopInfo.d.ts +13 -13
  38. package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -1
  39. package/dist/modules/common/utils/useFormatDateTime.d.ts +10 -1
  40. package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -1
  41. package/dist/modules/country/hooks/useCountries.d.ts +4 -4
  42. package/dist/modules/enrollment.js +23 -2
  43. package/dist/modules/event.js +1 -1
  44. package/dist/modules/filter.js +1 -1
  45. package/dist/modules/language/hooks/useLanguages.d.ts +4 -4
  46. package/dist/modules/modal/components/DangerMessage.d.ts +2 -1
  47. package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -1
  48. package/dist/modules/order/hooks/useOrders.d.ts +20 -20
  49. package/dist/modules/order/hooks/useOrders.d.ts.map +1 -1
  50. package/dist/modules/order.js +9 -3
  51. package/dist/modules/product-review.js +24 -5
  52. package/dist/modules/product.js +12 -16
  53. package/dist/modules/quotation.js +22 -2
  54. package/dist/modules/token.js +1 -1
  55. package/dist/modules/work/hooks/useWork.d.ts +14 -14
  56. package/dist/modules/work.js +17 -5
  57. package/dist/plugins.js +6 -1
  58. package/dist/providers.js +3 -3
  59. package/dist/sdk/plugins.d.ts +11 -0
  60. package/dist/sdk/plugins.d.ts.map +1 -1
  61. package/dist/sdk/shims/admin-ui-plugins.d.ts +3 -0
  62. package/dist/sdk/shims/admin-ui-plugins.d.ts.map +1 -0
  63. package/dist/sdk/shims/apollo-client-react.d.ts +3 -0
  64. package/dist/sdk/shims/apollo-client-react.d.ts.map +1 -0
  65. package/dist/sdk/shims/apollo-client.d.ts +3 -0
  66. package/dist/sdk/shims/apollo-client.d.ts.map +1 -0
  67. package/dist/sdk/shims/host.d.ts +17 -0
  68. package/dist/sdk/shims/host.d.ts.map +1 -0
  69. package/dist/sdk/shims/next-head.d.ts +3 -0
  70. package/dist/sdk/shims/next-head.d.ts.map +1 -0
  71. package/dist/sdk/shims/next-image.d.ts +3 -0
  72. package/dist/sdk/shims/next-image.d.ts.map +1 -0
  73. package/dist/sdk/shims/next-link.d.ts +3 -0
  74. package/dist/sdk/shims/next-link.d.ts.map +1 -0
  75. package/dist/sdk/shims/next-router.d.ts +3 -0
  76. package/dist/sdk/shims/next-router.d.ts.map +1 -0
  77. package/dist/sdk/shims/react-dom-client.d.ts +3 -0
  78. package/dist/sdk/shims/react-dom-client.d.ts.map +1 -0
  79. package/dist/sdk/shims/react-dom.d.ts +3 -0
  80. package/dist/sdk/shims/react-dom.d.ts.map +1 -0
  81. package/dist/sdk/shims/react-hook-form.d.ts +3 -0
  82. package/dist/sdk/shims/react-hook-form.d.ts.map +1 -0
  83. package/dist/sdk/shims/react-intl.d.ts +3 -0
  84. package/dist/sdk/shims/react-intl.d.ts.map +1 -0
  85. package/dist/sdk/shims/react-jsx-runtime.d.ts +3 -0
  86. package/dist/sdk/shims/react-jsx-runtime.d.ts.map +1 -0
  87. package/dist/sdk/shims/react-toastify.d.ts +3 -0
  88. package/dist/sdk/shims/react-toastify.d.ts.map +1 -0
  89. package/dist/sdk/shims/react.d.ts +3 -0
  90. package/dist/sdk/shims/react.d.ts.map +1 -0
  91. package/dist/shims/admin-ui-plugins.js +9 -0
  92. package/dist/shims/apollo-client-react.js +25 -0
  93. package/dist/shims/apollo-client.js +55 -0
  94. package/dist/shims/next-head.js +9 -0
  95. package/dist/shims/next-image.js +9 -0
  96. package/dist/shims/next-link.js +9 -0
  97. package/dist/shims/next-router.js +13 -0
  98. package/dist/shims/react-dom-client.js +11 -0
  99. package/dist/shims/react-dom.js +22 -0
  100. package/dist/shims/react-hook-form.js +25 -0
  101. package/dist/shims/react-intl.js +37 -0
  102. package/dist/shims/react-jsx-runtime.js +11 -0
  103. package/dist/shims/react-toastify.js +16 -0
  104. package/dist/shims/react.js +52 -0
  105. package/dist/ui.js +1291 -3460
  106. package/out/403/index.html +2 -2
  107. package/out/404/index.html +2 -2
  108. package/out/404.html +2 -2
  109. package/out/423/index.html +2 -2
  110. package/out/500/index.html +2 -2
  111. package/out/_next/static/chunks/0-2b37ubdpy0o.js +7 -0
  112. package/out/_next/static/chunks/0-cyinqk2ne8t.js +16 -0
  113. package/out/_next/static/chunks/00tf1qsuwqywe.js +17 -0
  114. package/out/_next/static/chunks/015ge5k3o3f-r.js +226 -0
  115. package/out/_next/static/chunks/0208v89kdo_s9.js +13 -0
  116. package/out/_next/static/chunks/05-ui58k9illr.js +234 -0
  117. package/out/_next/static/chunks/05au-xyt__0f2.js +3 -0
  118. package/out/_next/static/chunks/{087a2d-0e1pvn.js → 05nn5xr3ufcsh.js} +1 -1
  119. package/out/_next/static/chunks/{0xoerh23zk-pj.js → 05o_q7jg8wucs.js} +2 -2
  120. package/out/_next/static/chunks/0752goe9_9g2s.js +110 -0
  121. package/out/_next/static/chunks/07o7bmqljy89r.js +1 -0
  122. package/out/_next/static/chunks/083ylavob4a8d.js +3 -0
  123. package/out/_next/static/chunks/09qx8ltnvw8f2.js +12 -0
  124. package/out/_next/static/chunks/0_puys1lwhv9m.js +16 -0
  125. package/out/_next/static/chunks/0_xtedn8e1vu_.js +13 -0
  126. package/out/_next/static/chunks/0a_bg-ub3r2eo.js +60 -0
  127. package/out/_next/static/chunks/0b33bcf7x5rgy.js +20 -0
  128. package/out/_next/static/chunks/0ckhtcvz1kyxg.js +1 -0
  129. package/out/_next/static/chunks/0dewly3vo-mcq.js +20 -0
  130. package/out/_next/static/chunks/0dnh0kr83_tj0.js +1 -0
  131. package/out/_next/static/chunks/0dxu94yin5gdn.js +35 -0
  132. package/out/_next/static/chunks/0e2c-jlh2q_eq.js +74 -0
  133. package/out/_next/static/chunks/0fv1w56e25gt5.js +14 -0
  134. package/out/_next/static/chunks/{1jqnrnw0p9tw5.js → 0h0r_q6xa9qr_.js} +1 -1
  135. package/out/_next/static/chunks/0i9ymn9xxs0nx.js +18 -0
  136. package/out/_next/static/chunks/0ij8fs6-w0pr_.js +22 -0
  137. package/out/_next/static/chunks/0iqjlf_9c6eo_.js +59 -0
  138. package/out/_next/static/chunks/0j838r-8ied1f.js +1 -0
  139. package/out/_next/static/chunks/0jeddko6bac8h.js +1 -0
  140. package/out/_next/static/chunks/0kwf2vel2xmdi.js +13 -0
  141. package/out/_next/static/chunks/0m6jydfuy_4o3.js +1 -0
  142. package/out/_next/static/chunks/0mez27zlo26ni.js +103 -0
  143. package/out/_next/static/chunks/0n9to89fz811b.js +3 -0
  144. package/out/_next/static/chunks/0nga8f0q2d0bl.js +14 -0
  145. package/out/_next/static/chunks/0nkkcq0-s-9fo.js +1 -0
  146. package/out/_next/static/chunks/0nlirgt-x5pqr.js +337 -0
  147. package/out/_next/static/chunks/0o7k5vanq57ch.js +807 -0
  148. package/out/_next/static/chunks/0om7fxf5bczpu.js +13 -0
  149. package/out/_next/static/chunks/0ou6gsnpn0wml.js +1 -0
  150. package/out/_next/static/chunks/0p09_ncs0g7m2.js +14 -0
  151. package/out/_next/static/chunks/0pji5t2zheb2j.js +234 -0
  152. package/out/_next/static/chunks/0q6-fplpae_ie.js +21 -0
  153. package/out/_next/static/chunks/0qh0vqpui2alf.js +9 -0
  154. package/out/_next/static/chunks/0qq_lp3pk8bjf.js +27 -0
  155. package/out/_next/static/chunks/0rgdxqr_0y-g-.js +136 -0
  156. package/out/_next/static/chunks/0rqjr_lmrk4pz.js +5 -0
  157. package/out/_next/static/chunks/0sc71p-6lnm1e.js +13 -0
  158. package/out/_next/static/chunks/0tej_--_qru5h.js +126 -0
  159. package/out/_next/static/chunks/0tnyefaaxof6-.js +247 -0
  160. package/out/_next/static/chunks/{1dsjo02ozub3p.js → 0ubzi2s1spm4e.js} +4 -4
  161. package/out/_next/static/chunks/0uecw_5mn0zvr.js +110 -0
  162. package/out/_next/static/chunks/0uw9cbq0ivaz0.js +1 -0
  163. package/out/_next/static/chunks/0vbqa5pd_ajm5.js +1 -0
  164. package/out/_next/static/chunks/0w7ic_22nz92w.js +58 -0
  165. package/out/_next/static/chunks/0y4eg57kgif01.js +1 -0
  166. package/out/_next/static/chunks/0ywlba3uh1t0x.js +16 -0
  167. package/out/_next/static/chunks/0zoum0jzrtu0s.js +145 -0
  168. package/out/_next/static/chunks/1184evhxs01_c.js +11 -0
  169. package/out/_next/static/chunks/11oq6l46lynfn.js +22 -0
  170. package/out/_next/static/chunks/11zynllx8mmh5.js +15 -0
  171. package/out/_next/static/chunks/13__7-sf28ub5.js +17 -0
  172. package/out/_next/static/chunks/13u_a5l2xngm4.js +1 -0
  173. package/out/_next/static/chunks/13wfvr2b0-qlj.js +30 -0
  174. package/out/_next/static/chunks/14c_mq04p7pu0.js +171 -0
  175. package/out/_next/static/chunks/151puw-sc__by.js +103 -0
  176. package/out/_next/static/chunks/15vz50rks0o2-.js +238 -0
  177. package/out/_next/static/chunks/17b4rvj5k8ye2.js +807 -0
  178. package/out/_next/static/chunks/188l-km9dyejj.js +34 -0
  179. package/out/_next/static/chunks/{0hup5ovc9v_-h.js → 18juy_eauk94g.js} +2 -2
  180. package/out/_next/static/chunks/{2t70ji9pnllxh.js → 19eflki8bmivb.js} +4 -4
  181. package/out/_next/static/chunks/19eu5d-wm2hfr.js +23 -0
  182. package/out/_next/static/chunks/19ou9pxeiwehs.js +15 -0
  183. package/out/_next/static/chunks/19pi48hqksvo9.js +9 -0
  184. package/out/_next/static/chunks/1_5ba1obzc231.js +1 -0
  185. package/out/_next/static/chunks/1_lrjs51fhhko.js +807 -0
  186. package/out/_next/static/chunks/{0wooaklx8_14q.js → 1ae-9ft5cgojf.js} +1 -1
  187. package/out/_next/static/chunks/1am9n6exll687.js +807 -0
  188. package/out/_next/static/chunks/1cfjbvjo0o9fx.js +104 -0
  189. package/out/_next/static/chunks/1cqhbfj3zp710.js +1 -0
  190. package/out/_next/static/chunks/1cy-2yb5j5_9b.js +157 -0
  191. package/out/_next/static/chunks/1dqgs827_hiod.js +16 -0
  192. package/out/_next/static/chunks/{3827hqe9_anr7.js → 1dt9_bzfioi8a.js} +3 -3
  193. package/out/_next/static/chunks/1fg6jbuxeuj0w.js +14 -0
  194. package/out/_next/static/chunks/1fvr9k_o63j_m.js +16 -0
  195. package/out/_next/static/chunks/1gt65pz91hyuz.js +1 -0
  196. package/out/_next/static/chunks/1h_o__x8jw8gt.js +15 -0
  197. package/out/_next/static/chunks/1imv5a-ymrj2t.js +15 -0
  198. package/out/_next/static/chunks/1k4ep4igedo8p.js +1 -0
  199. package/out/_next/static/chunks/1kn74nabrpy14.js +3 -0
  200. package/out/_next/static/chunks/{2a_46b7_7ml_y.js → 1ndk3s-aeqfej.js} +1 -1
  201. package/out/_next/static/chunks/1o4hor3cwzcxc.js +15 -0
  202. package/out/_next/static/chunks/1og09fg689_nc.js +180 -0
  203. package/out/_next/static/chunks/1q_sewe1wbxsk.js +54 -0
  204. package/out/_next/static/chunks/1qwid0d89bzpw.js +17 -0
  205. package/out/_next/static/chunks/1r7dh_p70r7o8.js +13 -0
  206. package/out/_next/static/chunks/1r_e-dk-1oicl.js +2 -0
  207. package/out/_next/static/chunks/1rtv3c_klo0jk.js +1 -0
  208. package/out/_next/static/chunks/1rw6681ieb3-5.js +8 -0
  209. package/out/_next/static/chunks/1srfjl1rurrm9.js +3 -0
  210. package/out/_next/static/chunks/1t8mb2td_pm1h.js +43 -0
  211. package/out/_next/static/chunks/1v-2aqdslc2g1.js +1 -0
  212. package/out/_next/static/chunks/1w5uao_cylgd1.js +234 -0
  213. package/out/_next/static/chunks/1x-t9f0f5vr10.js +329 -0
  214. package/out/_next/static/chunks/1xbofs3ibkjvj.js +1 -0
  215. package/out/_next/static/chunks/1ylgjha1c0ua_.js +124 -0
  216. package/out/_next/static/chunks/1yp98n-n4gxwy.js +15 -0
  217. package/out/_next/static/chunks/1yy_-xc9xthfo.js +3 -0
  218. package/out/_next/static/chunks/1z1esw-t8kopy.js +1 -0
  219. package/out/_next/static/chunks/2-7e3ttj92hfr.js +17 -0
  220. package/out/_next/static/chunks/200_u2ywg-be1.js +43 -0
  221. package/out/_next/static/chunks/224ovcn90ebcs.js +25 -0
  222. package/out/_next/static/chunks/24-pobk4qjjvp.js +3 -0
  223. package/out/_next/static/chunks/{09pees0w94cvm.js → 252jebodi67kg.js} +1 -1
  224. package/out/_next/static/chunks/2540mqfxc7ehr.js +15 -0
  225. package/out/_next/static/chunks/{1rgwj4dr0k4_b.js → 270ua9t85a7ev.js} +1 -1
  226. package/out/_next/static/chunks/27jaailh2k450.js +879 -0
  227. package/out/_next/static/chunks/2_l14rwu6kgzl.js +11 -0
  228. package/out/_next/static/chunks/2_vu2hve2j-6g.js +5 -0
  229. package/out/_next/static/chunks/2cmaw01_r48ot.js +21 -0
  230. package/out/_next/static/chunks/2d1zehr8zc3vb.js +9 -0
  231. package/out/_next/static/chunks/2dvrbmh97duba.js +1 -0
  232. package/out/_next/static/chunks/{34dhtdp_8idgm.js → 2dyj8q92_k5el.js} +112 -62
  233. package/out/_next/static/chunks/2e0dz59httb-e.js +43 -0
  234. package/out/_next/static/chunks/2e47h0g7w7si3.js +7 -0
  235. package/out/_next/static/chunks/{3a0_vzfa54k35.js → 2f4-hcyxiek_q.js} +2 -2
  236. package/out/_next/static/chunks/2fjmw94mat8m0.js +807 -0
  237. package/out/_next/static/chunks/{358r9pdxbk-fv.js → 2fo2ki1egxbah.js} +4 -4
  238. package/out/_next/static/chunks/2httcwd92at4i.js +9 -0
  239. package/out/_next/static/chunks/2ib6fee-nqe-z.js +23 -0
  240. package/out/_next/static/chunks/2kzyda4a6mqut.js +1 -0
  241. package/out/_next/static/chunks/2l4pfo_tsvn5w.js +11 -0
  242. package/out/_next/static/chunks/2l629mu99aqil.js +9 -0
  243. package/out/_next/static/chunks/2le8e8u2nvp0j.js +16 -0
  244. package/out/_next/static/chunks/{1vnvinjvn78t3.js → 2ljoq6sr-g2da.js} +1 -1
  245. package/out/_next/static/chunks/2lx_iig9xewfj.js +52 -0
  246. package/out/_next/static/chunks/2nm_wdmfjcbyc.js +25 -0
  247. package/out/_next/static/chunks/2o9hdz0gk1-s7.js +165 -0
  248. package/out/_next/static/chunks/2ork76jhxvxke.js +138 -0
  249. package/out/_next/static/chunks/2ou2_nhvunq72.js +13 -0
  250. package/out/_next/static/chunks/2pf0d3jgcae7b.js +99 -0
  251. package/out/_next/static/chunks/2q-mpau-4gsvd.js +1 -0
  252. package/out/_next/static/chunks/2qzxq2qs80c_8.js +11 -0
  253. package/out/_next/static/chunks/2rddaar-ns45d.js +116 -0
  254. package/out/_next/static/chunks/2rve5gtfjiz-p.js +100 -0
  255. package/out/_next/static/chunks/2rywg4dn0aeez.js +1 -0
  256. package/out/_next/static/chunks/2s6u8274_jzk2.js +105 -0
  257. package/out/_next/static/chunks/2t-_fecnp5yzr.js +15 -0
  258. package/out/_next/static/chunks/2tm822rgn8g7-.js +19 -0
  259. package/out/_next/static/chunks/2u6jwsqz0uhes.js +24 -0
  260. package/out/_next/static/chunks/2u8ns-x384r3i.js +22 -0
  261. package/out/_next/static/chunks/{1cn3pe6lxja9e.js → 2v4k4vpb2id7m.js} +5 -5
  262. package/out/_next/static/chunks/2v57_n8he320z.js +83 -0
  263. package/out/_next/static/chunks/2vkqez8xx-yp9.js +807 -0
  264. package/out/_next/static/chunks/2ztcyhxd9w5_m.js +1 -0
  265. package/out/_next/static/chunks/304cl99rh8rs_.js +2 -0
  266. package/out/_next/static/chunks/30_ns6urg1dkn.js +41 -0
  267. package/out/_next/static/chunks/313i1x81q2xj1.js +1 -0
  268. package/out/_next/static/chunks/325a7n__tfxy_.js +61 -0
  269. package/out/_next/static/chunks/326rk3t0gtxp_.js +14 -0
  270. package/out/_next/static/chunks/32te9ivrk54l0.js +15 -0
  271. package/out/_next/static/chunks/339y1tm7s80tn.js +22 -0
  272. package/out/_next/static/chunks/33emlry70k-lv.js +2 -0
  273. package/out/_next/static/chunks/{2w1twpn4nui6h.js → 346itdsbw-5tn.js} +2 -2
  274. package/out/_next/static/chunks/351jscvbk_wb9.js +13 -0
  275. package/out/_next/static/chunks/355nca7if7l9n.js +17 -0
  276. package/out/_next/static/chunks/357odtev0t245.js +59 -0
  277. package/out/_next/static/chunks/35fjd9uhctw7y.js +1 -0
  278. package/out/_next/static/chunks/36aqs7u7s-lb1.js +119 -0
  279. package/out/_next/static/chunks/36zrtyhmqlx_n.js +807 -0
  280. package/out/_next/static/chunks/{1xg3ey2rrdxfx.js → 37uz0njkj43tz.js} +1 -1
  281. package/out/_next/static/chunks/38ffn8gazqz8_.js +3 -0
  282. package/out/_next/static/chunks/39-19ao-xkexy.js +2 -0
  283. package/out/_next/static/chunks/39m5tbxzzsmn4.js +807 -0
  284. package/out/_next/static/chunks/3_dqxs_vhmfqd.js +14 -0
  285. package/out/_next/static/chunks/3bgtu00fe99yc.js +1 -0
  286. package/out/_next/static/chunks/3c1rc1w-xe4u7.js +39 -0
  287. package/out/_next/static/chunks/3cdfuacs4_0d-.js +1 -0
  288. package/out/_next/static/chunks/3cp9qqljcytup.js +9 -0
  289. package/out/_next/static/chunks/3cq123yj25_36.js +1 -0
  290. package/out/_next/static/chunks/3d1ofcqmlbg-5.js +52 -0
  291. package/out/_next/static/chunks/3dopaxkoi5px6.js +1 -0
  292. package/out/_next/static/chunks/3doujqxnfq19f.js +16 -0
  293. package/out/_next/static/chunks/3grllla8v0ctl.js +14 -0
  294. package/out/_next/static/chunks/3hqec4-3one07.js +15 -0
  295. package/out/_next/static/chunks/3ic_dagw-uvrx.js +234 -0
  296. package/out/_next/static/chunks/3idwjqiel9n9v.js +18 -0
  297. package/out/_next/static/chunks/{113_jsmrqky1h.js → 3il9u-mfrp2sn.js} +2 -2
  298. package/out/_next/static/chunks/3jtzvr48aaoo0.js +13 -0
  299. package/out/_next/static/chunks/3k5lt5_-g36w9.js +9 -0
  300. package/out/_next/static/chunks/3l-9xxd1i1sya.js +1 -0
  301. package/out/_next/static/chunks/3l1zucp3a411p.js +50 -0
  302. package/out/_next/static/chunks/3ls4kv54f3x8u.js +15 -0
  303. package/out/_next/static/chunks/3m2yam5_cs1h7.js +13 -0
  304. package/out/_next/static/chunks/3mancxzz8c7hl.js +51 -0
  305. package/out/_next/static/chunks/3nkse7h0-kbyx.js +126 -0
  306. package/out/_next/static/chunks/3o23w25lfn4mo.js +27 -0
  307. package/out/_next/static/chunks/{0wm5atnhe2mjs.js → 3oynij37wfjb2.js} +5 -5
  308. package/out/_next/static/chunks/3oz5p4rrvnew1.js +807 -0
  309. package/out/_next/static/chunks/{434iz38padke2.js → 3pbyo5kkko3wh.js} +1 -1
  310. package/out/_next/static/chunks/3qjgt-x153i6u.js +234 -0
  311. package/out/_next/static/chunks/3s-n0xc-vi0ww.js +31 -0
  312. package/out/_next/static/chunks/3t_3vlnk1ntkb.js +95 -0
  313. package/out/_next/static/chunks/3ti7tims6gz1j.js +234 -0
  314. package/out/_next/static/chunks/3tzaludii6vtu.js +54 -0
  315. package/out/_next/static/chunks/{1qnuk3631sd6i.js → 3u504487p_y7e.js} +2 -2
  316. package/out/_next/static/chunks/3ufg-in2riva7.js +1 -0
  317. package/out/_next/static/chunks/3ugwv1vrnbivg.js +1 -0
  318. package/out/_next/static/chunks/3ulbhhqw8rxd8.js +15 -0
  319. package/out/_next/static/chunks/3uytb2p7vzafp.js +15 -0
  320. package/out/_next/static/chunks/3v38tvcona4gy.js +16 -0
  321. package/out/_next/static/chunks/3vet2a9q9rf2c.js +61 -0
  322. package/out/_next/static/chunks/3vz3gqmojh7sx.js +4 -0
  323. package/out/_next/static/chunks/3w9xrlkiztuwi.js +23 -0
  324. package/out/_next/static/chunks/3wy5jhrulhwb9.js +15 -0
  325. package/out/_next/static/chunks/{2tc6lgajxmo78.js → 3xmtbqm0gddn8.js} +3 -3
  326. package/out/_next/static/chunks/3yqmjvx7t3t0_.js +1 -0
  327. package/out/_next/static/chunks/3yvmkdc088aly.js +1 -0
  328. package/out/_next/static/chunks/401o5bfi_90qs.js +141 -0
  329. package/out/_next/static/chunks/40s6ngsexc737.js +15 -0
  330. package/out/_next/static/chunks/40xhwnc_48o73.js +297 -0
  331. package/out/_next/static/chunks/41e2wlkp9_pvk.js +28 -0
  332. package/out/_next/static/chunks/41g7mv3yuhz6k.js +68 -0
  333. package/out/_next/static/chunks/429ihwc6co7u7.js +32 -0
  334. package/out/_next/static/chunks/42p2hm8ca34f6.js +16 -0
  335. package/out/_next/static/chunks/43jyzccx6x0lw.js +1 -0
  336. package/out/_next/static/chunks/447b5tn4-avdv.js +16 -0
  337. package/out/_next/static/chunks/44daaafswok67.css +1 -0
  338. package/out/_next/static/chunks/{3j6p-522fcsnj.js → 452fv7r-tie6t.js} +1 -1
  339. package/out/_next/static/chunks/turbopack-02cmv-knpzk52.js +1 -0
  340. package/out/_next/static/chunks/turbopack-05rmr02n9n2u0.js +1 -0
  341. package/out/_next/static/chunks/turbopack-07fw0g9aver98.js +1 -0
  342. package/out/_next/static/chunks/turbopack-08x92457_z4ve.js +1 -0
  343. package/out/_next/static/chunks/turbopack-0a2sfur4bx222.js +1 -0
  344. package/out/_next/static/chunks/turbopack-0b-g0lpiikryt.js +1 -0
  345. package/out/_next/static/chunks/turbopack-0dj-aua684j9c.js +1 -0
  346. package/out/_next/static/chunks/turbopack-0h5lj7lnf9_tb.js +1 -0
  347. package/out/_next/static/chunks/turbopack-0k8oea6xmzbjh.js +1 -0
  348. package/out/_next/static/chunks/turbopack-0m1qzkhnpuk2j.js +1 -0
  349. package/out/_next/static/chunks/turbopack-0n73ad0fad4yl.js +1 -0
  350. package/out/_next/static/chunks/turbopack-0qxkaq0f9ka24.js +1 -0
  351. package/out/_next/static/chunks/turbopack-0ricnx7znhztj.js +1 -0
  352. package/out/_next/static/chunks/turbopack-0s-h1cgwrfgo-.js +1 -0
  353. package/out/_next/static/chunks/turbopack-0xgswwqf_4vrt.js +1 -0
  354. package/out/_next/static/chunks/turbopack-1330tdm8r390q.js +1 -0
  355. package/out/_next/static/chunks/turbopack-14rn07-ki7f_7.js +1 -0
  356. package/out/_next/static/chunks/turbopack-1azvbmrq_bxq7.js +1 -0
  357. package/out/_next/static/chunks/turbopack-1bjaxey2pj8nn.js +1 -0
  358. package/out/_next/static/chunks/turbopack-1csu0s9cycwgo.js +1 -0
  359. package/out/_next/static/chunks/turbopack-1g8mmayckmfib.js +1 -0
  360. package/out/_next/static/chunks/turbopack-1hty_7i5tzg63.js +1 -0
  361. package/out/_next/static/chunks/turbopack-1p11xfz8qe15i.js +1 -0
  362. package/out/_next/static/chunks/turbopack-1r_uprn020kr7.js +1 -0
  363. package/out/_next/static/chunks/turbopack-1rdxfvyldfwrq.js +1 -0
  364. package/out/_next/static/chunks/turbopack-1td004byboyz2.js +1 -0
  365. package/out/_next/static/chunks/turbopack-1y3x6n223v6d1.js +1 -0
  366. package/out/_next/static/chunks/turbopack-2068cl63o32re.js +1 -0
  367. package/out/_next/static/chunks/turbopack-298vdad77pw5z.js +1 -0
  368. package/out/_next/static/chunks/turbopack-2d5v28yt0xnri.js +1 -0
  369. package/out/_next/static/chunks/turbopack-2dicmowo2x4t1.js +1 -0
  370. package/out/_next/static/chunks/turbopack-2gehqsln39zg1.js +1 -0
  371. package/out/_next/static/chunks/turbopack-2hj-ffuco6-u7.js +1 -0
  372. package/out/_next/static/chunks/turbopack-2it1jk212m2ud.js +1 -0
  373. package/out/_next/static/chunks/turbopack-2l-gbnaw39ht4.js +1 -0
  374. package/out/_next/static/chunks/turbopack-2mbsjg411_ndq.js +1 -0
  375. package/out/_next/static/chunks/turbopack-2n2ksqygaakbh.js +1 -0
  376. package/out/_next/static/chunks/turbopack-2q65pei-ck559.js +1 -0
  377. package/out/_next/static/chunks/turbopack-2sqnlbl-ardf7.js +1 -0
  378. package/out/_next/static/chunks/turbopack-2t6ex34_bkvoe.js +1 -0
  379. package/out/_next/static/chunks/turbopack-2w9_vscbr0eag.js +1 -0
  380. package/out/_next/static/chunks/turbopack-2z2joyd6mdhpo.js +1 -0
  381. package/out/_next/static/chunks/turbopack-338xrj-0fpsqu.js +1 -0
  382. package/out/_next/static/chunks/turbopack-3458e7jmj1e27.js +1 -0
  383. package/out/_next/static/chunks/turbopack-351l-va10h8kw.js +1 -0
  384. package/out/_next/static/chunks/turbopack-35awx_qvevnch.js +1 -0
  385. package/out/_next/static/chunks/turbopack-3a196kafnj312.js +1 -0
  386. package/out/_next/static/chunks/turbopack-3a6igydfvv1_v.js +1 -0
  387. package/out/_next/static/chunks/turbopack-3bnkwdcrz_ts-.js +1 -0
  388. package/out/_next/static/chunks/turbopack-3hsu2nw8qlox4.js +1 -0
  389. package/out/_next/static/chunks/turbopack-3iiyu2cek78ut.js +1 -0
  390. package/out/_next/static/chunks/turbopack-3nta8sa99guti.js +1 -0
  391. package/out/_next/static/chunks/turbopack-3r17oio1oe7jw.js +1 -0
  392. package/out/_next/static/chunks/turbopack-3r9uyzwi0dtwb.js +1 -0
  393. package/out/_next/static/chunks/turbopack-3rgdcfralfvsa.js +1 -0
  394. package/out/_next/static/chunks/turbopack-3tntqotcyx6oq.js +1 -0
  395. package/out/_next/static/chunks/turbopack-3uc-2ah0uehj3.js +1 -0
  396. package/out/_next/static/chunks/turbopack-3uvfl95p1ubqn.js +1 -0
  397. package/out/_next/static/chunks/turbopack-3vncwrj5x9j44.js +1 -0
  398. package/out/_next/static/chunks/turbopack-3ww1zabqxbxit.js +1 -0
  399. package/out/_next/static/chunks/turbopack-3wxlut7e7jmsi.js +1 -0
  400. package/out/_next/static/chunks/turbopack-3yk72bgipb8hc.js +1 -0
  401. package/out/_next/static/chunks/turbopack-4025_4zwqnrk-.js +1 -0
  402. package/out/_next/static/chunks/turbopack-425nfopoa8wxd.js +1 -0
  403. package/out/_next/static/{T3MvrnLGtwi3l3MDtTzwv → hH8h6SzcZWEUFySYqRPbW}/_buildManifest.js +63 -63
  404. package/out/_offline/index.html +2 -2
  405. package/out/account/forgot-password/index.html +2 -2
  406. package/out/account/index.html +2 -2
  407. package/out/assortments/AssortmentDetailPage/index.html +2 -2
  408. package/out/assortments/index.html +2 -2
  409. package/out/assortments/new/index.html +2 -2
  410. package/out/copilot/index.html +2 -2
  411. package/out/country/CountryDetailPage/index.html +2 -2
  412. package/out/country/index.html +2 -2
  413. package/out/country/new/index.html +2 -2
  414. package/out/currency/CurrencyDetailPage/index.html +2 -2
  415. package/out/currency/index.html +2 -2
  416. package/out/currency/new/index.html +2 -2
  417. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
  418. package/out/delivery-provider/index.html +2 -2
  419. package/out/delivery-provider/new/index.html +2 -2
  420. package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
  421. package/out/enrollments/index.html +2 -2
  422. package/out/events/EventDetailPage/index.html +2 -2
  423. package/out/events/index.html +2 -2
  424. package/out/exports/index.html +2 -2
  425. package/out/ext/[[...slug]]/index.html +2 -2
  426. package/out/external/index.html +2 -2
  427. package/out/filters/FilterDetailPage/index.html +2 -2
  428. package/out/filters/index.html +2 -2
  429. package/out/filters/new/index.html +2 -2
  430. package/out/index.html +2 -2
  431. package/out/install/index.html +2 -2
  432. package/out/language/LanguageDetailPage/index.html +2 -2
  433. package/out/language/index.html +2 -2
  434. package/out/language/new/index.html +2 -2
  435. package/out/log-in/index.html +2 -2
  436. package/out/orders/OrderDetailPage/index.html +2 -2
  437. package/out/orders/index.html +2 -2
  438. package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
  439. package/out/payment-provider/index.html +2 -2
  440. package/out/payment-provider/new/index.html +2 -2
  441. package/out/products/ProductDetailPage/index.html +2 -2
  442. package/out/products/index.html +2 -2
  443. package/out/products/new/index.html +2 -2
  444. package/out/quotations/QuotationDetailPage/index.html +2 -2
  445. package/out/quotations/index.html +2 -2
  446. package/out/reset-password/index.html +2 -2
  447. package/out/sign-up/index.html +2 -2
  448. package/out/styleguide/index.html +2 -2
  449. package/out/tokens/TokenDetailPage/index.html +2 -2
  450. package/out/tokens/index.html +2 -2
  451. package/out/users/UserDetailPage/index.html +2 -2
  452. package/out/users/index.html +2 -2
  453. package/out/users/new/index.html +2 -2
  454. package/out/verify-email/index.html +2 -2
  455. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
  456. package/out/warehousing-provider/index.html +2 -2
  457. package/out/warehousing-provider/new/index.html +2 -2
  458. package/out/works/WorkDetailPage/index.html +2 -2
  459. package/out/works/WorkQueueListView/index.html +2 -2
  460. package/out/works/index.html +2 -2
  461. package/out/works/management/index.html +2 -2
  462. package/package.json +22 -17
  463. package/src/sdk/README.md +195 -0
  464. package/src/sdk/plugin-build.mjs +81 -98
  465. package/src/sdk/plugin-build.test.mjs +6 -3
  466. package/src/sdk/plugin-runtime.cjs +66 -0
  467. package/src/sdk/plugin-runtime.d.mts +11 -0
  468. package/src/sdk/plugin-runtime.mjs +27 -0
  469. package/src/sdk/plugin-runtime.test.mjs +32 -0
  470. package/src/sdk/plugins.mjs +17 -0
  471. package/src/sdk/plugins.ts +17 -0
  472. package/src/sdk/shims/admin-ui-plugins.ts +3 -0
  473. package/src/sdk/shims/apollo-client-react.ts +3 -0
  474. package/src/sdk/shims/apollo-client.ts +3 -0
  475. package/src/sdk/shims/host.ts +61 -0
  476. package/src/sdk/shims/next-head.ts +3 -0
  477. package/src/sdk/shims/next-image.ts +3 -0
  478. package/src/sdk/shims/next-link.ts +3 -0
  479. package/src/sdk/shims/next-router.ts +3 -0
  480. package/src/sdk/shims/react-dom-client.ts +3 -0
  481. package/src/sdk/shims/react-dom.ts +3 -0
  482. package/src/sdk/shims/react-hook-form.ts +3 -0
  483. package/src/sdk/shims/react-intl.ts +3 -0
  484. package/src/sdk/shims/react-jsx-runtime.ts +3 -0
  485. package/src/sdk/shims/react-toastify.ts +3 -0
  486. package/src/sdk/shims/react.ts +3 -0
  487. package/out/_next/static/chunks/0-p8a6-okjx49.js +0 -15
  488. package/out/_next/static/chunks/0-u5tid26i8-3.js +0 -188
  489. package/out/_next/static/chunks/008hxgil51owu.js +0 -234
  490. package/out/_next/static/chunks/026k3ys50h91u.js +0 -15
  491. package/out/_next/static/chunks/02aa23atze2y4.js +0 -119
  492. package/out/_next/static/chunks/03f0hv23abn4a.js +0 -12
  493. package/out/_next/static/chunks/03p0xulfluyqm.js +0 -15
  494. package/out/_next/static/chunks/044dmimivt13x.js +0 -233
  495. package/out/_next/static/chunks/047gokoblz-qy.js +0 -16
  496. package/out/_next/static/chunks/04yroykjly9ni.js +0 -15
  497. package/out/_next/static/chunks/05h2_5y4i_fe4.js +0 -12
  498. package/out/_next/static/chunks/0641gh6yb6tnd.js +0 -3
  499. package/out/_next/static/chunks/06bsql5zgjpaj.js +0 -315
  500. package/out/_next/static/chunks/06jtnxd7wr712.js +0 -1
  501. package/out/_next/static/chunks/070wy1qe-7-uf.js +0 -242
  502. package/out/_next/static/chunks/07l1vdt21xneu.js +0 -14
  503. package/out/_next/static/chunks/07q8ufsdxo1tx.js +0 -1
  504. package/out/_next/static/chunks/0_wmk0z5r9thu.js +0 -95
  505. package/out/_next/static/chunks/0ab_-095b34n5.js +0 -90
  506. package/out/_next/static/chunks/0aom8abciz-yf.js +0 -1
  507. package/out/_next/static/chunks/0cdcsn87u-tzw.js +0 -1
  508. package/out/_next/static/chunks/0cu-wqc76z_w6.js +0 -1
  509. package/out/_next/static/chunks/0dnzfqa8el54j.js +0 -135
  510. package/out/_next/static/chunks/0f-hhcgpd3kjt.js +0 -5
  511. package/out/_next/static/chunks/0gdriupdpmq28.js +0 -14
  512. package/out/_next/static/chunks/0hm6-xlqw4vmr.js +0 -1
  513. package/out/_next/static/chunks/0hmdmxkzhdtjx.js +0 -155
  514. package/out/_next/static/chunks/0hpirq7m-gjle.js +0 -23
  515. package/out/_next/static/chunks/0hxsdaxwhc3z4.js +0 -110
  516. package/out/_next/static/chunks/0j-yonuwgtg0k.js +0 -22
  517. package/out/_next/static/chunks/0jo3ujn_icmb9.js +0 -28
  518. package/out/_next/static/chunks/0mayhrft9-4hw.js +0 -13
  519. package/out/_next/static/chunks/0mdh4qszx-qw8.js +0 -1
  520. package/out/_next/static/chunks/0nyu34hvyz9_k.js +0 -103
  521. package/out/_next/static/chunks/0nz8nqr7k7pni.js +0 -61
  522. package/out/_next/static/chunks/0pjv94c771817.js +0 -13
  523. package/out/_next/static/chunks/0qrepe4aqal8_.js +0 -2
  524. package/out/_next/static/chunks/0qtbb-w9hs2i_.js +0 -1
  525. package/out/_next/static/chunks/0r0l1vs8bls6y.js +0 -1
  526. package/out/_next/static/chunks/0r2v5se5riad_.js +0 -227
  527. package/out/_next/static/chunks/0s3aax3no2y3_.js +0 -54
  528. package/out/_next/static/chunks/0sys36fl1uhl-.js +0 -18
  529. package/out/_next/static/chunks/0u-md-qpvyccn.js +0 -149
  530. package/out/_next/static/chunks/0ukobsq85_to1.js +0 -135
  531. package/out/_next/static/chunks/0vcn7yqzt3qlc.js +0 -10
  532. package/out/_next/static/chunks/0wl_oo549tgsw.js +0 -14
  533. package/out/_next/static/chunks/0wpmgf2-hr2iv.js +0 -1
  534. package/out/_next/static/chunks/0wthf9v7cuwqf.js +0 -3
  535. package/out/_next/static/chunks/0xcxmgeevaadl.js +0 -8
  536. package/out/_next/static/chunks/0xvoojz5c4j32.js +0 -14
  537. package/out/_next/static/chunks/0ykc9b-l7rcv9.js +0 -18
  538. package/out/_next/static/chunks/0zb8qwy33hihq.js +0 -142
  539. package/out/_next/static/chunks/0zgu8kiokvsjz.js +0 -1
  540. package/out/_next/static/chunks/0zk0s8hqsf5tg.js +0 -18
  541. package/out/_next/static/chunks/0zl6mu89n1_wq.js +0 -1
  542. package/out/_next/static/chunks/0zntg6ltu_fk3.js +0 -14
  543. package/out/_next/static/chunks/10996osm11rxi.js +0 -327
  544. package/out/_next/static/chunks/10q9_f1ss9afd.js +0 -8
  545. package/out/_next/static/chunks/110vhftkm53lj.js +0 -111
  546. package/out/_next/static/chunks/11fqypagzye_v.js +0 -43
  547. package/out/_next/static/chunks/137522d4_apiu.js +0 -166
  548. package/out/_next/static/chunks/13ml43jv3bxh1.js +0 -1
  549. package/out/_next/static/chunks/16ad724tleody.js +0 -13
  550. package/out/_next/static/chunks/16r_t7quts1w0.js +0 -289
  551. package/out/_next/static/chunks/16yomp2b55xod.js +0 -30
  552. package/out/_next/static/chunks/17jd_42ijblk-.js +0 -15
  553. package/out/_next/static/chunks/17xseq9yxu638.js +0 -1
  554. package/out/_next/static/chunks/18yznjdgjug5c.js +0 -7
  555. package/out/_next/static/chunks/19i-cq0_2t00g.js +0 -60
  556. package/out/_next/static/chunks/19ppkss30jscq.js +0 -13
  557. package/out/_next/static/chunks/1_ov-8bomgh6c.js +0 -54
  558. package/out/_next/static/chunks/1b9l0n8vz64x7.js +0 -233
  559. package/out/_next/static/chunks/1dut2ep8qfdv4.js +0 -14
  560. package/out/_next/static/chunks/1eqs_86cqpxcx.js +0 -138
  561. package/out/_next/static/chunks/1exlzd6w18o_b.js +0 -8
  562. package/out/_next/static/chunks/1f04wea7zvjf5.js +0 -2
  563. package/out/_next/static/chunks/1fqsykinbg1d_.js +0 -12
  564. package/out/_next/static/chunks/1g5l7e7du4p25.js +0 -1
  565. package/out/_next/static/chunks/1hokoliuqn63p.js +0 -17
  566. package/out/_next/static/chunks/1ihjqvn68cj5e.js +0 -36
  567. package/out/_next/static/chunks/1k798vpov34v6.js +0 -12
  568. package/out/_next/static/chunks/1lewut00m9sq1.js +0 -1
  569. package/out/_next/static/chunks/1lwiflo8v2d93.js +0 -1
  570. package/out/_next/static/chunks/1ng9tsm1f8e_a.js +0 -1
  571. package/out/_next/static/chunks/1nvy3y5qe_igv.js +0 -233
  572. package/out/_next/static/chunks/1ozaatz-b_-as.js +0 -41
  573. package/out/_next/static/chunks/1paq5rkj25r88.js +0 -1
  574. package/out/_next/static/chunks/1q2l02eq094zc.js +0 -147
  575. package/out/_next/static/chunks/1q8zx2rmluekr.js +0 -13
  576. package/out/_next/static/chunks/1r092zo5e6999.js +0 -190
  577. package/out/_next/static/chunks/1r0aluuzu5vw7.js +0 -13
  578. package/out/_next/static/chunks/1sgv26vi42stl.js +0 -13
  579. package/out/_next/static/chunks/1t80pe40g73fh.js +0 -82
  580. package/out/_next/static/chunks/1u6jfjnf14knz.js +0 -124
  581. package/out/_next/static/chunks/1xx6ie3yh2hbk.js +0 -235
  582. package/out/_next/static/chunks/1y-vwb0-v5xv0.js +0 -304
  583. package/out/_next/static/chunks/2-8-i_m-82mjh.js +0 -43
  584. package/out/_next/static/chunks/2-s6g5_cyahx8.js +0 -1
  585. package/out/_next/static/chunks/20ndjd4r5l6vk.js +0 -1
  586. package/out/_next/static/chunks/20v019mj-zi94.js +0 -13
  587. package/out/_next/static/chunks/21w-hkh4_w1kl.js +0 -19
  588. package/out/_next/static/chunks/226ya3lbz_55w.js +0 -19
  589. package/out/_next/static/chunks/22az81pi-bqjb.js +0 -1
  590. package/out/_next/static/chunks/22get2_2lcba-.js +0 -21
  591. package/out/_next/static/chunks/22l-2aehes9lx.js +0 -153
  592. package/out/_next/static/chunks/23y9nin7qo-xy.js +0 -17
  593. package/out/_next/static/chunks/25t23h8zbmzh-.js +0 -12
  594. package/out/_next/static/chunks/273zh05aw6uz2.js +0 -13
  595. package/out/_next/static/chunks/28o-5560g4bwk.js +0 -7
  596. package/out/_next/static/chunks/28zahy_uqar2t.js +0 -12
  597. package/out/_next/static/chunks/29dylunjhn4te.js +0 -34
  598. package/out/_next/static/chunks/2_3qu55ddb4jo.js +0 -3
  599. package/out/_next/static/chunks/2_7z1veshuiiw.js +0 -10
  600. package/out/_next/static/chunks/2_ztj391g9yzt.js +0 -226
  601. package/out/_next/static/chunks/2a9z_gm1vn39c.js +0 -173
  602. package/out/_next/static/chunks/2b8nhs_3rpawc.js +0 -1
  603. package/out/_next/static/chunks/2biyd1hzgc2sv.js +0 -339
  604. package/out/_next/static/chunks/2c2vssolfspzg.js +0 -50
  605. package/out/_next/static/chunks/2dbrybnhe5thu.css +0 -1
  606. package/out/_next/static/chunks/2diqy5aehqe8j.js +0 -58
  607. package/out/_next/static/chunks/2dq4d-ey-16cq.js +0 -1
  608. package/out/_next/static/chunks/2dyysegkbptw8.js +0 -11
  609. package/out/_next/static/chunks/2ei1rfxsl3q65.js +0 -31
  610. package/out/_next/static/chunks/2f3z_9lk_9lsj.js +0 -14
  611. package/out/_next/static/chunks/2fazxtc5_9tgo.js +0 -52
  612. package/out/_next/static/chunks/2fzc9bsweg7nf.js +0 -807
  613. package/out/_next/static/chunks/2h5-bnhry6wzl.js +0 -14
  614. package/out/_next/static/chunks/2hmtn1okhj6zz.js +0 -234
  615. package/out/_next/static/chunks/2htrbj6g7da-e.js +0 -12
  616. package/out/_next/static/chunks/2j51l4ukmrn7j.js +0 -17
  617. package/out/_next/static/chunks/2k4cusvrm93cp.js +0 -39
  618. package/out/_next/static/chunks/2ldks6pel2wcp.js +0 -31
  619. package/out/_next/static/chunks/2loz6t7f69t0c.js +0 -1
  620. package/out/_next/static/chunks/2onfts3kpe9d8.js +0 -1
  621. package/out/_next/static/chunks/2p9aozkdq_z13.js +0 -329
  622. package/out/_next/static/chunks/2pz2u5us_0jme.js +0 -5
  623. package/out/_next/static/chunks/2qaf44ypuy_4z.js +0 -1
  624. package/out/_next/static/chunks/2r1-eyf6hic-m.js +0 -1
  625. package/out/_next/static/chunks/2ritd1boot22-.js +0 -32
  626. package/out/_next/static/chunks/2s1__k407zn6n.js +0 -1
  627. package/out/_next/static/chunks/2s6qkrjh7-b6s.js +0 -1
  628. package/out/_next/static/chunks/2twd9trj9horc.js +0 -61
  629. package/out/_next/static/chunks/2ua7-skz9vm4r.js +0 -13
  630. package/out/_next/static/chunks/2vjkcd8g_hh68.js +0 -46
  631. package/out/_next/static/chunks/2x4vo24qfe0mr.js +0 -1
  632. package/out/_next/static/chunks/2zm-d0-e0sxgo.js +0 -23
  633. package/out/_next/static/chunks/3-u1dp82vzyt9.js +0 -1
  634. package/out/_next/static/chunks/30iz3jszdu04d.js +0 -11
  635. package/out/_next/static/chunks/30jmh-3cp5wcg.js +0 -12
  636. package/out/_next/static/chunks/3178a_a_i-e-q.js +0 -16
  637. package/out/_next/static/chunks/317qzy7r8meg_.js +0 -1
  638. package/out/_next/static/chunks/32nwqfli0ne57.js +0 -1
  639. package/out/_next/static/chunks/33c-rzkj2k2v1.js +0 -14
  640. package/out/_next/static/chunks/33g91_yljnpiw.js +0 -807
  641. package/out/_next/static/chunks/34ybf-w3bdlw8.js +0 -13
  642. package/out/_next/static/chunks/35-vqjhcep-zw.js +0 -60
  643. package/out/_next/static/chunks/35a6ymsh4q0-o.js +0 -14
  644. package/out/_next/static/chunks/36yrxjq9zbvpx.js +0 -13
  645. package/out/_next/static/chunks/377ho63k7qphg.js +0 -14
  646. package/out/_next/static/chunks/37bs69urhjdz5.js +0 -24
  647. package/out/_next/static/chunks/37mpnb5qztb_g.js +0 -15
  648. package/out/_next/static/chunks/3a8a8fpl7-ndf.js +0 -1
  649. package/out/_next/static/chunks/3b6hct2rk2wu9.js +0 -24
  650. package/out/_next/static/chunks/3czsj6bdmobbd.js +0 -24
  651. package/out/_next/static/chunks/3d0ic2ovyeue7.js +0 -2
  652. package/out/_next/static/chunks/3eq1b2m2xkkmp.js +0 -1
  653. package/out/_next/static/chunks/3f2ue6ut-mwka.js +0 -2
  654. package/out/_next/static/chunks/3g67xtrp0vv4m.js +0 -1
  655. package/out/_next/static/chunks/3iepyd4rzl-tt.js +0 -13
  656. package/out/_next/static/chunks/3kle_yukf5aux.js +0 -809
  657. package/out/_next/static/chunks/3l_nx7eopgh02.js +0 -1
  658. package/out/_next/static/chunks/3mk-cv2ocv93u.js +0 -50
  659. package/out/_next/static/chunks/3n5290qcigwpc.js +0 -13
  660. package/out/_next/static/chunks/3nl02jbknvx4p.js +0 -14
  661. package/out/_next/static/chunks/3o5a5qn0dnq04.js +0 -3
  662. package/out/_next/static/chunks/3o5kwvdgt_t9z.js +0 -73
  663. package/out/_next/static/chunks/3qamj8gt1ijdz.js +0 -12
  664. package/out/_next/static/chunks/3rlrwz262rpw0.js +0 -1
  665. package/out/_next/static/chunks/3s3v9n_ob4m24.js +0 -18
  666. package/out/_next/static/chunks/3s47qr8fn6h4j.js +0 -8
  667. package/out/_next/static/chunks/3slzhmkeoggpm.js +0 -66
  668. package/out/_next/static/chunks/3tv9csz53av-5.js +0 -1
  669. package/out/_next/static/chunks/3uec1_7irpl71.js +0 -16
  670. package/out/_next/static/chunks/3uo1w1gaj7tsx.js +0 -117
  671. package/out/_next/static/chunks/3uwev5xyub_j1.js +0 -7
  672. package/out/_next/static/chunks/3w450c1xmh550.js +0 -12
  673. package/out/_next/static/chunks/3x8aami6-3l79.js +0 -31
  674. package/out/_next/static/chunks/3xhogi6_bbwh7.js +0 -10
  675. package/out/_next/static/chunks/3y62dz45ticve.js +0 -1
  676. package/out/_next/static/chunks/3yjzk_udmhv3i.js +0 -1
  677. package/out/_next/static/chunks/3z6v84zof80bt.js +0 -1
  678. package/out/_next/static/chunks/3zncjth-kop8p.js +0 -1
  679. package/out/_next/static/chunks/3zp4iedgev460.js +0 -35
  680. package/out/_next/static/chunks/413qu_x6yky1e.js +0 -1
  681. package/out/_next/static/chunks/41j8mb2ztwydi.js +0 -14
  682. package/out/_next/static/chunks/41pc5_e25bhgd.js +0 -1
  683. package/out/_next/static/chunks/424z-zudpy3n0.js +0 -39
  684. package/out/_next/static/chunks/42o6t6-v2qi37.js +0 -29
  685. package/out/_next/static/chunks/43pb7hjetp965.js +0 -1
  686. package/out/_next/static/chunks/44rharl5hvsw-.js +0 -22
  687. package/out/_next/static/chunks/45ac68ug7hcoc.js +0 -13
  688. package/out/_next/static/chunks/turbopack-0-chqajqgydnn.js +0 -1
  689. package/out/_next/static/chunks/turbopack-0-jquaej6q4cd.js +0 -1
  690. package/out/_next/static/chunks/turbopack-01y_6kjoo1mvp.js +0 -1
  691. package/out/_next/static/chunks/turbopack-03_sghcquhw33.js +0 -1
  692. package/out/_next/static/chunks/turbopack-0a_5nw_3znl2r.js +0 -1
  693. package/out/_next/static/chunks/turbopack-0bbgz21dy5lm3.js +0 -1
  694. package/out/_next/static/chunks/turbopack-0cqzo60ry70im.js +0 -1
  695. package/out/_next/static/chunks/turbopack-0ex-kw1o5k02z.js +0 -1
  696. package/out/_next/static/chunks/turbopack-0jzps1g34dah5.js +0 -1
  697. package/out/_next/static/chunks/turbopack-0o9rz5e94nq66.js +0 -1
  698. package/out/_next/static/chunks/turbopack-0rq3y47awgwpt.js +0 -1
  699. package/out/_next/static/chunks/turbopack-0vs4-gjxe552i.js +0 -1
  700. package/out/_next/static/chunks/turbopack-0x1jwahqhzo0u.js +0 -1
  701. package/out/_next/static/chunks/turbopack-11auq8fqexpmm.js +0 -1
  702. package/out/_next/static/chunks/turbopack-13uretb6lcje8.js +0 -1
  703. package/out/_next/static/chunks/turbopack-14n2u99h724y-.js +0 -1
  704. package/out/_next/static/chunks/turbopack-1a774_gjam74t.js +0 -1
  705. package/out/_next/static/chunks/turbopack-1gy8illqlm_jj.js +0 -1
  706. package/out/_next/static/chunks/turbopack-1n9q29j854ltr.js +0 -1
  707. package/out/_next/static/chunks/turbopack-1nathpz4-f-4w.js +0 -1
  708. package/out/_next/static/chunks/turbopack-1nca86oa17qfx.js +0 -1
  709. package/out/_next/static/chunks/turbopack-1qe0zbu9fejdb.js +0 -1
  710. package/out/_next/static/chunks/turbopack-1qg26rdmwlotw.js +0 -1
  711. package/out/_next/static/chunks/turbopack-1u6lf-rzbdjuj.js +0 -1
  712. package/out/_next/static/chunks/turbopack-1z85kwwdibjh7.js +0 -1
  713. package/out/_next/static/chunks/turbopack-22as-nh7md98p.js +0 -1
  714. package/out/_next/static/chunks/turbopack-23lcv-araye0t.js +0 -1
  715. package/out/_next/static/chunks/turbopack-25gt3vwmogps-.js +0 -1
  716. package/out/_next/static/chunks/turbopack-26g97kfge67jz.js +0 -1
  717. package/out/_next/static/chunks/turbopack-26u67kbn41n8e.js +0 -1
  718. package/out/_next/static/chunks/turbopack-280jnadydykur.js +0 -1
  719. package/out/_next/static/chunks/turbopack-2bb6lvvhg6e0w.js +0 -1
  720. package/out/_next/static/chunks/turbopack-2bw5gluonepob.js +0 -1
  721. package/out/_next/static/chunks/turbopack-2c36n939jg0pf.js +0 -1
  722. package/out/_next/static/chunks/turbopack-2ez296aoalbog.js +0 -1
  723. package/out/_next/static/chunks/turbopack-2frqnl7lfn0h9.js +0 -1
  724. package/out/_next/static/chunks/turbopack-2jxkmyhbvdw4u.js +0 -1
  725. package/out/_next/static/chunks/turbopack-2k45z490u3tbj.js +0 -1
  726. package/out/_next/static/chunks/turbopack-2p-uq1erkf03-.js +0 -1
  727. package/out/_next/static/chunks/turbopack-2svkg0yvgyw3_.js +0 -1
  728. package/out/_next/static/chunks/turbopack-31s1c5ipeb5_p.js +0 -1
  729. package/out/_next/static/chunks/turbopack-33v049epa0erx.js +0 -1
  730. package/out/_next/static/chunks/turbopack-34jylrj_qw1ak.js +0 -1
  731. package/out/_next/static/chunks/turbopack-34u-t26ngu-oy.js +0 -1
  732. package/out/_next/static/chunks/turbopack-34x5gar31d5sv.js +0 -1
  733. package/out/_next/static/chunks/turbopack-363g_e-jzg5u_.js +0 -1
  734. package/out/_next/static/chunks/turbopack-39um5sy1v-bvw.js +0 -1
  735. package/out/_next/static/chunks/turbopack-3__2i-6jdv1s8.js +0 -1
  736. package/out/_next/static/chunks/turbopack-3b4s935ks8u-b.js +0 -1
  737. package/out/_next/static/chunks/turbopack-3b5-pdmr324f-.js +0 -1
  738. package/out/_next/static/chunks/turbopack-3bwm37xq99e4l.js +0 -1
  739. package/out/_next/static/chunks/turbopack-3ec8ol5n3kb0h.js +0 -1
  740. package/out/_next/static/chunks/turbopack-3gw7smd4lo5ud.js +0 -1
  741. package/out/_next/static/chunks/turbopack-3miy8-7wxcnbn.js +0 -1
  742. package/out/_next/static/chunks/turbopack-3nvjaj1vijowz.js +0 -1
  743. package/out/_next/static/chunks/turbopack-3poc67i76-q8q.js +0 -1
  744. package/out/_next/static/chunks/turbopack-3r1pnr94s1u0w.js +0 -1
  745. package/out/_next/static/chunks/turbopack-3sfa4031m280j.js +0 -1
  746. package/out/_next/static/chunks/turbopack-3sqs5hm2xhl3s.js +0 -1
  747. package/out/_next/static/chunks/turbopack-3xha6pmjqez6d.js +0 -1
  748. package/out/_next/static/chunks/turbopack-3yp7pgp42yfh3.js +0 -1
  749. package/out/_next/static/chunks/turbopack-3z_g6t7o2z7rb.js +0 -1
  750. package/out/_next/static/chunks/turbopack-3zb947kjm56zb.js +0 -1
  751. package/out/_next/static/chunks/turbopack-43m6wi0fybh1f.js +0 -1
  752. /package/dist/{chunk-BYXBJQAS.js → chunk-QWQ3WJJN.js} +0 -0
  753. /package/out/_next/static/{T3MvrnLGtwi3l3MDtTzwv → hH8h6SzcZWEUFySYqRPbW}/_clientMiddlewareManifest.js +0 -0
  754. /package/out/_next/static/{T3MvrnLGtwi3l3MDtTzwv → hH8h6SzcZWEUFySYqRPbW}/_ssgManifest.js +0 -0
@@ -1,190 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,1403,e=>{"use strict";var t=e.i(59080),r=e.i(32171);let s=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:a=null,emailVerified:i=null}={})=>{let{data:n,loading:l,error:o}=(0,r.useQuery)(s,{errorPolicy:"all",variables:{includeGuests:e,queryString:t,lastLogin:a,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 s=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:a=!0,includeLeaves:i=!1})=>{let{data:n,loading:l,error:o}=(0,r.useQuery)(s,{errorPolicy:"all",variables:{queryString:e,tags:t,includeInactive:a,includeLeaves:i}});return{loading:l,error:o,assortmentsCount:n?.assortmentsCount}}])},84870,72130,e=>{"use strict";var t=e.i(91788),r=e.i(59080),s=e.i(32171),a=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,a.useIntl)(),{data:r,loading:n,error:l}=(0,s.useQuery)(i);return{configuration:(0,t.useMemo)(()=>{let t,s,a,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 s=(t=Object.values(d)).filter(e=>e.isComplete),i=(a=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:s,overallProgress:Math.round(s.length/t.length*100),isFullyConfigured:i.length===a.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);let n=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:"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"}))});e.s(["default",0,n],72130)},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),s=e.i(66773),a=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=a.DefaultLimit,offset:t=0,includeCarts:i=!1,queryString:l="",sort:o=[],dateRange:d,status:c,deliveryProviderIds:u,paymentProviderIds:f}={})=>{let{data:m,loading:h,error:g,fetchMore:x}=(0,r.useQuery)(n,{errorPolicy:"all",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:s.ISortDirection.Desc}]:[{key:"ordered",value:s.ISortDirection.Desc},{key:"created",value:s.ISortDirection.Desc}]}}),p=m?.orders||[],v=m?.ordersCount,b=p?.length<v;return{orders:p,ordersCount:v,hasMore:b,loading:h,error:g,loadMore:()=>{x({variables:{offset:p?.length}})}}}])},92615,e=>{"use strict";var t=e.i(59080),r=e.i(32171);let s=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:a=!0})=>{let{data:i,loading:n,error:l}=(0,r.useQuery)(s,{errorPolicy:"all",variables:{queryString:e,includeDrafts:a,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),s=e.i(66773),a=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
- ${a.default}
175
- `;e.s(["default",0,({queryString:e="",limit:t=50,status:a,types:n,created:l=null,sort:o=[],offset:d=0,pollInterval:c=1e3,skip:u=!1})=>{let{data:f,loading:m,error:h,fetchMore:g,previousData:x}=(0,r.useQuery)(i,{fetchPolicy:"cache-and-network",pollInterval:u?0:c,skip:u,variables:{queryString:e,offset:d,limit:t,status:a,types:n,created:Object.fromEntries(Object.entries(l||{}).filter(([,e])=>e).map(([e,t])=>[e,t])),sort:(o||[]).length?o:[{key:"scheduled",value:s.ISortDirection.Desc}]}}),p=f?.workQueue||x?.workQueue||[],v=f?.activeWorkTypes||[],b=f?.workQueueCount||0,y=p?.length<b;return{workQueue:p,total:b,activeWorkTypes:v,hasMore:y,loading:m,error:h,loadMore:()=>{g({variables:{offset:p.length}})}}}])},57201,e=>{"use strict";var t=e.i(91398),r=e.i(91788),s=e.i(69322),a=e.i(56206),i=e.i(38187),n=e.i(32665),l=e.i(78588),l=l,o=e.i(15361),d=e.i(24608),c=e.i(84870);let u=({progress:e,size:r="md",showPercentage:s=!0,className:i})=>(0,t.jsxs)("div",{className:(0,a.default)("flex items-center gap-3",i),children:[(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)("div",{className:(0,a.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,a.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)}%`}})})}),s&&(0,t.jsxs)("span",{className:(0,a.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-text-secondary"),children:[e,"%"]})]});var f=e.i(41158),m=e.i(38322),h=e.i(24629),g=e.i(72130),g=g,x=e.i(29988),x=x,p=e.i(52606),v=e.i(56417),b=e.i(27028),y=e.i(83345),w=e.i(87179),k=e.i(57973),j=e.i(48953);let C={globe:h.GlobeAltIcon,currency:g.default,language:x.default,"credit-card":p.CreditCardIcon,truck:v.TruckIcon,warehouse:b.BuildingStorefrontIcon,cube:y.CubeIcon,folder:w.FolderIcon,funnel:k.FunnelIcon},N=({step:e,onStepClick:r})=>{let{formatMessage:i}=(0,s.useIntl)(),n=C[e.icon]||y.CubeIcon;return(0,t.jsxs)("div",{className:(0,a.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-surface border-border-subtle 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,a.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-surface-raised"),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,a.default)("w-5 h-5",e.isRequired?"text-text-secondary":"text-text-muted")})}),(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,a.default)("font-medium text-sm",e.isComplete?"text-emerald-700 dark:text-emerald-300":"text-text-primary"),children:[e.title,e.isRequired&&!e.isComplete&&(0,t.jsx)("span",{className:"text-rose-500 ml-1",children:"*"})]}),(0,t.jsx)("p",{className:(0,a.default)("text-xs mt-1",e.isComplete?"text-emerald-600 dark:text-emerald-400":"text-text-secondary"),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-text-muted",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,a.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-surface-raised text-text-secondary hover:bg-surface-raised"),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),$=e.i(58971);let S=({className:e})=>{let{formatMessage:f}=(0,s.useIntl)(),{configuration:m,loading:h,error:g}=(0,c.default)(),{isSystemReady:x}=(0,M.default)(),{isAdmin:p}=(0,$.default)();if(!p())return null;let[v,b]=(0,r.useState)({essential:!0,commerce:!1,content:!1}),[y,w]=(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||h||g)return null;if(k&&!y)return(0,t.jsx)("div",{className:(0,a.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:()=>{w(!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&&y)return null;let j=(e,r,s=!1)=>{let a=v[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-border-subtle rounded-lg overflow-hidden",children:[(0,t.jsx)("button",{onClick:()=>{b(t=>({...t,[e]:!t[e]}))},className:"w-full p-4 bg-surface/50 hover:bg-surface-raised 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-text-primary",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),!s&&(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-text-secondary 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)})]}),a?(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"})]})}),a&&(0,t.jsx)("div",{className:"p-4 space-y-3 bg-surface",children:r.map(e=>(0,t.jsx)(N,{step:e},e.icon))})]})};return(0,t.jsxs)("div",{className:(0,a.default)("bg-surface rounded-lg border border-border-subtle 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.default,{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-text-primary mb-2",children:f({id:"complete_shop_setup",defaultMessage:"Complete Your Shop Setup"})}),(0,t.jsx)("p",{className:"text-sm text-text-secondary 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-text-secondary",children:f({id:"overall_progress",defaultMessage:"Overall Progress"})}),(0,t.jsxs)("span",{className:"font-medium text-text-primary",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:[j("essential",m.essentialSteps,m.essentialStepsComplete),x&&j("commerce",m.commerceSteps,m.commerceStepsComplete),x&&j("content",m.contentSteps,m.contentStepsComplete),(0,t.jsx)("div",{className:"pt-4 border-t border-border-subtle",children:(0,t.jsxs)("p",{className:"text-xs text-text-muted 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"})]})})]})]})};var I=e.i(16184),I=I,E=e.i(52835),_=e.i(66773),R=e.i(79684);let A=()=>{let{formatMessage:e}=(0,s.useIntl)(),{hasRole:r}=(0,$.default)(),[a,i]=(0,R.default)("workQueueWarningBanner:dismissed",!1),{workQueue:n}=(0,E.default)({status:[_.IWorkStatus.Failed],pollInterval:0,skip:!r(_.IRoleAction.ViewWorkQueue)}),l=Object.entries(n.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 a||!n.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)(I.default,{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"})})," ",l]}),(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:()=>i(!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 L=e.i(48539);let q=({label:e,value:r})=>(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-sm text-text-secondary",children:e}),(0,t.jsx)("span",{className:"text-sm text-text-primary",children:r})]}),O=()=>{let{formatMessage:e}=(0,s.useIntl)(),{shopInfo:r}=(0,L.default)();return(0,t.jsxs)("div",{className:"bg-surface rounded-lg border border-border-subtle p-6",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-text-primary mb-4",children:e({id:"system_information",defaultMessage:"System Information"})}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(q,{label:e({id:"engine_version",defaultMessage:"Engine version"}),value:r?.version||"n/a"}),(0,t.jsx)(q,{label:e({id:"resolved_language",defaultMessage:"Resolved language"}),value:`${r?.language?.name||"n/a"} (${r?.language?.isoCode||"n/a"})`}),(0,t.jsx)(q,{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)(q,{label:e({id:"default_currency",defaultMessage:"Default currency"}),value:r?.country?.defaultCurrency?.isoCode||"n/a"})]})]})};var P=e.i(3828),D=e.i(37369),W=e.i(21623);let B=()=>{let{formatMessage:e}=(0,s.useIntl)(),{hasRole:r}=(0,$.default)(),a=(0,P.useRouter)();return(0,t.jsxs)("div",{className:"bg-surface rounded-lg border border-border-subtle p-6",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-text-primary 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)(W.default,{onClick:()=>a.push("/products/new"),icon:(0,t.jsx)(D.PlusIcon,{className:"w-5 h-5"}),variant:"primary",size:"lg",text:e({id:"product",defaultMessage:"Product"})}),r(_.IRoleAction.CreateUser)&&(0,t.jsx)(W.default,{onClick:()=>a.push("/users/new"),icon:(0,t.jsx)(D.PlusIcon,{className:"w-5 h-5"}),variant:"primary",size:"lg",text:e({id:"user",defaultMessage:"User"})}),r(_.IRoleAction.ManageAssortments)&&(0,t.jsx)(W.default,{onClick:()=>a.push("/assortments/new"),icon:(0,t.jsx)(D.PlusIcon,{className:"w-5 h-5"}),variant:"primary",size:"lg",text:e({id:"assortment",defaultMessage:"Assortment"})})]})]})};var T=e.i(52745),V=e.i(31004);let Z=r.forwardRef(function({title:e,titleId:t,...s},a){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:a,"aria-labelledby":t},s),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"}))}),U=({title:e,value:r,icon:a,loading:i=!1,href:n})=>{let{formatNumber:l}=(0,s.useIntl)();return(0,t.jsx)(f.default,{href:n,className:`bg-surface rounded-lg border-border-subtle 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-text-secondary",children:e}),(0,t.jsx)("p",{className:"text-2xl font-bold text-text-primary 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-surface-raised rounded-lg",children:a})})]})})};var F=e.i(6910),H=e.i(1403),Q=e.i(89462),z=e.i(92615);let G=()=>{let{formatMessage:e}=(0,s.useIntl)(),{metrics:r}=(()=>{let{ordersCount:e,loading:t}=(0,F.default)({limit:1}),{usersCount:r,loading:s}=(0,H.default)(),{assortmentsCount:a,loading:i}=(0,Q.default)({}),{productsCount:n,loading:l}=(0,z.default)({});return{metrics:{orders:{value:e||0,loading:t},products:{value:n||0,loading:l},customers:{value:r,loading:s},categories:{value:a||0,loading:i}},isLoading:t||s||i||l}})(),{hasRole:a}=(0,$.default)(),i=[a(_.IRoleAction.ViewProducts)&&{title:e({id:"products_count",defaultMessage:"Products"}),value:r.products.value,icon:(0,t.jsx)(T.CubeIcon,{className:"h-6 w-6 text-text-secondary"}),loading:r.products.loading,href:"/products"},a(_.IRoleAction.ViewAssortments)&&{title:e({id:"categories_count",defaultMessage:"Assortments"}),value:r.categories.value,icon:(0,t.jsx)(Z,{className:"h-6 w-6 text-text-secondary"}),loading:r.categories.loading,href:"/assortments"},a(_.IRoleAction.ViewUsers)&&{title:e({id:"customers_count",defaultMessage:"Customers"}),value:r.customers.value,icon:(0,t.jsx)(V.UsersIcon,{className:"h-6 w-6 text-text-secondary"}),loading:r.customers.loading,href:"/users"}].filter(Boolean);return 0===i.length?null:(0,t.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8",children:i.map((e,r)=>(0,t.jsx)(U,{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),es=e.i(5270);let ea=(0,es.default)("shopping-cart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]),ei=(0,es.default)("calculator",[["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"}]]);var en=e.i(40391),el=e.i(8076),eo=e.i(67018),ed=e.i(83147),ec=e.i(34201),eu=e.i(59080),ef=e.i(32171),em=e.i(92042),eh=e.i(23986),eg=e.i(98170),ex=e.i(35113);function ep(e,t,r){var s;let a;return s=-t,a=(0,ex.toDate)(e,r?.in),isNaN(s)?(0,eg.constructFrom)(r?.in||e,NaN):(s&&a.setDate(a.getDate()+s),a)}var ev=e.i(49543),eb=e.i(27765);let ey=eu.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
- `,ew={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))"}},ek=()=>{let{formatMessage:e}=(0,s.useIntl)(),{hasRole:a}=(0,$.default)(),i=a(_.IRoleAction.ViewOrders),{dateRange:n,totalSales:l,totalOrders:o,averageOrderValue:d,salesData:c,loading:u,currencyCode:f}=(({days:e=30,skip:t=!1})=>{let s=(0,r.useMemo)(()=>new Date,[]),a=ep(s,e),i=(0,r.useMemo)(()=>({start:(0,ev.startOfDay)(a).toISOString(),end:(0,eb.endOfDay)(s).toISOString()}),[a,s]),{data:n,loading:l,error:o}=(0,ef.useQuery)(ey,{variables:{dateRange:i},errorPolicy:"all",skip:t});return(0,r.useMemo)(()=>{let t=n?.orderStatistics;if(!n?.orderStatistics?.confirmCount)return{totalSales:0,totalOrders:0,averageOrderValue:0,salesData:[],loading:l,error:o,dateRange:i};let r=((e,t)=>{let r=new Map;for(let s=0;s<e;s++){let e=(0,em.format)(ep(t,s),"MMM d");r.set(e,{sales:0,orders:0})}return r})(e,s),a=0,d=t.confirmRecords[0]?.total?.currencyCode;t.confirmRecords.forEach(e=>{if(!e.date||!e.total?.amount||!e.count)return;let t=(0,em.format)((0,eh.parseISO)(e.date),"MMM d"),s=r.get(t),i=Number(e.total.amount??0),n=e.count??0;s&&(s.sales+=i,s.orders+=n),a+=i});let c=t.confirmCount,u=c>0?a/c:0;return{totalSales:Math.round(a),totalOrders:c,currencyCode:d,averageOrderValue:Math.round(u),salesData:Array.from(r.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:l,error:o,dateRange:i}},[n,l,o,i,e,s])})({days:30,skip:!i}),{formatPrice:m}=(0,ed.useFormatPrice)();return i?u?(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)(el.Card,{className:"animate-pulse",children:[(0,t.jsxs)(el.CardHeader,{className:"pb-2",children:[(0,t.jsx)("div",{className:"h-4 bg-surface-raised rounded w-1/2"}),(0,t.jsx)("div",{className:"h-8 bg-surface-raised rounded w-1/3"})]}),(0,t.jsx)(el.CardContent,{children:(0,t.jsx)("div",{className:"h-32 bg-surface-raised rounded"})})]},e))}):(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 my-8",children:[(0,t.jsx)(ec.default,{icon:(0,t.jsx)(en.CurrencyIcon,{className:"h-4 w-4"}),title:e({id:"total_sales",defaultMessage:"Total sales"}),value:m({currencyCode:f,amount:l}),chart:(0,t.jsx)(eo.ChartContainer,{config:ew,children:(0,t.jsxs)(X.LineChart,{accessibilityLayer:!0,data:c,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)(eo.ChartTooltip,{wrapperStyle:{pointerEvents:"auto",zIndex:50},cursor:!1,content:(0,t.jsx)(eo.ChartTooltipContent,{formatter:e=>m({currencyCode:f,amount:e})})}),(0,t.jsx)(K.Line,{dataKey:"sales",type:"natural",stroke:"var(--color-sales)",strokeWidth:2,dot:!1})]})}),dateRange:n}),(0,t.jsx)(ec.default,{icon:(0,t.jsx)(ea,{className:"h-4 w-4"}),title:e({id:"total_orders",defaultMessage:"Total orders"}),value:o,chart:(0,t.jsx)(eo.ChartContainer,{config:ew,children:(0,t.jsxs)(Y.BarChart,{accessibilityLayer:!0,data:c,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)(eo.ChartTooltip,{cursor:!1,content:(0,t.jsx)(eo.ChartTooltipContent,{})}),(0,t.jsx)(J.Bar,{dataKey:"orders",fill:"var(--color-orders)",radius:4})]})}),dateRange:n}),(0,t.jsx)(ec.default,{icon:(0,t.jsx)(ei,{className:"h-4 w-4"}),title:e({id:"average_order_value",defaultMessage:"Average order value"}),value:m({amount:d,currencyCode:f}),chart:(0,t.jsx)(eo.ChartContainer,{config:ew,children:(0,t.jsxs)(X.LineChart,{accessibilityLayer:!0,data:c,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)(eo.ChartTooltip,{cursor:!1,content:(0,t.jsx)(eo.ChartTooltipContent,{formatter:e=>m({currencyCode:f,amount:e})})}),(0,t.jsx)(K.Line,{dataKey:"avgOrderValue",type:"natural",stroke:"var(--color-avgOrderValue)",strokeWidth:2,dot:!1})]})}),dateRange:n})]}):null};var ej=e.i(70475);e.s(["default",0,()=>{let{configuration:e}=(0,c.default)(),{isFullyConfigured:r}=e;return(0,t.jsxs)("div",{children:[(0,t.jsx)(A,{}),(0,t.jsx)("div",{className:"mt-5",children:(0,t.jsxs)("div",{className:"text-xl font-semibold text-text-primary",children:["Unchained",(0,t.jsxs)("span",{className:"font-light ml-1",children:["AdminUI",(0,t.jsxs)("span",{className:"text-xs ml-1",children:[" ","5.0.0-alpha.5"]})]})]})}),(0,t.jsxs)("div",{className:"mx-auto py-6",children:[(0,t.jsx)(S,{className:"mb-8"}),r&&(0,t.jsx)(G,{}),(0,t.jsx)(ek,{}),(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[r&&(0,t.jsx)("div",{className:"bg-surface rounded-lg border border-border-subtle p-6",children:(0,t.jsx)(B,{})}),(0,t.jsx)(O,{})]}),(0,t.jsx)(ej.default,{slot:"dashboard:widgets",children:(e,r)=>(0,t.jsx)("div",{className:`mt-6 ${"full"===r.width?"w-full":"third"===r.width?"w-full lg:w-1/3":"w-full lg:w-1/2"}`,children:(0,t.jsx)(e,{})})})]})]})}],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,...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:"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,...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:"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)},82798,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:"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"}))});e.s(["default",0,r])},89974,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:"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(["default",0,r])},15361,e=>{"use strict";var t=e.i(89974);e.s(["CheckCircleIcon",()=>t.default])},95100,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 15.75 7.5-7.5 7.5 7.5"}))});e.s(["default",0,r])},26588,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:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});e.s(["default",0,r])},48953,e=>{"use strict";var t=e.i(26588);e.s(["ClockIcon",()=>t.default])},7920,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:"M2.25 8.25h19.5M2.25 9h19.5m-16.5 5.25h6m-6 2.25h3m-3.75 3h15a2.25 2.25 0 0 0 2.25-2.25V6.75A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25v10.5A2.25 2.25 0 0 0 4.5 19.5Z"}))});e.s(["default",0,r])},83345,33033,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:"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(["default",0,r],33033),e.s(["CubeIcon",0,r],83345)},16184,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:"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"}))});e.s(["default",0,r])},82405,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:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))});e.s(["default",0,r])},96643,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:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"}))});e.s(["default",0,r])},24629,57191,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:"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(["default",0,r],57191),e.s(["GlobeAltIcon",0,r],24629)},29988,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:"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"}))});e.s(["default",0,r])},78588,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:"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"}))});e.s(["default",0,r])},43944,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:"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"}))});e.s(["default",0,r])},56417,27028,e=>{"use strict";var t=e.i(43944);e.s(["TruckIcon",()=>t.default],56417);var r=e.i(82798);e.s(["BuildingStorefrontIcon",()=>r.default],27028)},30999,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(["default",0,r])},24608,e=>{"use strict";var t=e.i(30999);e.s(["XMarkIcon",()=>t.default])},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 s=-1;for(let a of e)null!=(a=t(a,++s,e))&&(r<a||void 0===r&&a>=a)&&(r=a)}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 s=-1;for(let a of e)null!=(a=t(a,++s,e))&&(r>a||void 0===r&&a>=a)&&(r=a)}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 s in t)r[s]=t[s];return r}function s(){}e.s(["default",()=>V],44641);var a="\\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\\(${a},${a},${a}\\)$`),d=RegExp(`^rgb\\(${n},${n},${n}\\)$`),c=RegExp(`^rgba\\(${a},${a},${a},${i}\\)$`),u=RegExp(`^rgba\\(${n},${n},${n},${i}\\)$`),f=RegExp(`^hsl\\(${i},${n},${n}\\)$`),m=RegExp(`^hsla\\(${i},${n},${n},${i}\\)$`),h={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 g(){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?v(t):3===r?new w(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?b(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?b(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 w(t[1],t[2],t[3],1):(t=d.exec(e))?new w(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=c.exec(e))?b(t[1],t[2],t[3],t[4]):(t=u.exec(e))?b(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]):h.hasOwnProperty(e)?v(h[e]):"transparent"===e?new w(NaN,NaN,NaN,0):null}function v(e){return new w(e>>16&255,e>>8&255,255&e,1)}function b(e,t,r,s){return s<=0&&(e=t=r=NaN),new w(e,t,r,s)}function y(e,t,r,a){var i;return 1==arguments.length?((i=e)instanceof s||(i=p(i)),i)?new w((i=i.rgb()).r,i.g,i.b,i.opacity):new w:new w(e,t,r,null==a?1:a)}function w(e,t,r,s){this.r=+e,this.g=+t,this.b=+r,this.opacity=+s}function k(){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,s){return s<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new I(e,t,r,s)}function S(e){if(e instanceof I)return new I(e.h,e.s,e.l,e.opacity);if(e instanceof s||(e=p(e)),!e)return new I;if(e instanceof I)return e;var t=(e=e.rgb()).r/255,r=e.g/255,a=e.b/255,i=Math.min(t,r,a),n=Math.max(t,r,a),l=NaN,o=n-i,d=(n+i)/2;return o?(l=t===n?(r-a)/o+(r<a)*6:r===n?(a-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,s){this.h=+e,this.s=+t,this.l=+r,this.opacity=+s}function E(e){return(e=(e||0)%360)<0?e+360:e}function _(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 A(e,t,r,s,a){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)*s+n*a)/6}t(s,p,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:g,formatHex:g,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return S(this).formatHsl()},formatRgb:x,toString:x}),t(w,y,r(s,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new w(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new w(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new w(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:k,formatHex:k,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,s){return 1==arguments.length?S(e):new I(e,t,r,null==s?1:s)},r(s,{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,s=r+(r<.5?r:1-r)*t,a=2*r-s;return new w(R(e>=240?e-240:e+120,a,s),R(e,a,s),R(e<120?e+240:e-120,a,s),this.opacity)},clamp(){return new I(E(this.h),_(this.s),_(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("}${E(this.h)}, ${100*_(this.s)}%, ${100*_(this.l)}%${1===e?")":`, ${e})`}`}})),e.s(["color",0,p],19903);let L=e=>()=>e;function q(e,t){var r=t-e;return r?function(t){return e+t*r}:L(isNaN(e)?t:e)}let O=function e(t){var r,s=1==(r=+t)?q:function(e,t){var s,a,i;return t-e?(s=e,a=t,s=Math.pow(s,i=r),a=Math.pow(a,i)-s,i=1/i,function(e){return Math.pow(s+e*a,i)}):L(isNaN(e)?t:e)};function a(e,t){var r=s((e=y(e)).r,(t=y(t)).r),a=s(e.g,t.g),i=s(e.b,t.b),n=q(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=a(t),e.b=i(t),e.opacity=n(t),e+""}}return a.gamma=e,a}(1);function P(e){return function(t){var r,s,a=t.length,i=Array(a),n=Array(a),l=Array(a);for(r=0;r<a;++r)s=y(t[r]),i[r]=s.r||0,n[r]=s.g||0,l[r]=s.b||0;return i=e(i),n=e(n),l=e(l),s.opacity=1,function(e){return s.r=i(e),s.g=n(e),s.b=l(e),s+""}}}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 s=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),a=e[s],i=e[s+1],n=s>0?e[s-1]:2*a-i,l=s<t-1?e[s+2]:2*i-a;return A((r-s/t)*t,n,a,i,l)}}),P(function(e){var t=e.length;return function(r){var s=Math.floor(((r%=1)<0?++r:r)*t),a=e[(s+t-1)%t],i=e[s%t],n=e[(s+1)%t],l=e[(s+2)%t];return A((r-s/t)*t,a,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,s,a,i,n,l=W.lastIndex=B.lastIndex=0,o=-1,d=[],c=[];for(e+="",t+="";(a=W.exec(e))&&(i=B.exec(t));)(n=i.index)>l&&(n=t.slice(l,n),d[o]?d[o]+=n:d[++o]=n),(a=a[0])===(i=i[0])?d[o]?d[o]+=i:d[++o]=i:(d[++o]=null,c.push({i:o,x:D(a,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)+""}):(s=t,function(){return s}):(t=c.length,function(e){for(var r,s=0;s<t;++s)d[(r=c[s]).i]=r.x(e);return d.join("")})}function V(e,t){var r,s,a=typeof t;return null==t||"boolean"===a?L(t):("number"===a?D:"string"===a?(s=p(t))?(t=s,O):T:t instanceof p?O:t instanceof Date?function(e,t){var r=new Date;return e*=1,t*=1,function(s){return r.setTime(e*(1-s)+t*s),r}}:!ArrayBuffer.isView(r=t)||r instanceof DataView?Array.isArray(t)?function(e,t){var r,s=t?t.length:0,a=e?Math.min(s,e.length):0,i=Array(a),n=Array(s);for(r=0;r<a;++r)i[r]=V(e[r],t[r]);for(;r<s;++r)n[r]=t[r];return function(e){for(r=0;r<a;++r)n[r]=i[r](e);return n}}:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?function(e,t){var r,s={},a={};for(r in(null===e||"object"!=typeof e)&&(e={}),(null===t||"object"!=typeof t)&&(t={}),t)r in e?s[r]=V(e[r],t[r]):a[r]=t[r];return function(e){for(r in s)a[r]=s[r](e);return a}}:D:function(e,t){t||(t=[]);var r,s=e?Math.min(t.length,e.length):0,a=t.slice();return function(i){for(r=0;r<s;++r)a[r]=e[r]*(1-i)+t[r]*i;return a}})(e,t)}e.s(["default",0,T],74037),e.s(["interpolate",0,V],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 s=Symbol("implicit");e.s(["default",0,function e(){var a=new t.InternMap,i=[],n=[],l=s;function o(e){let t=a.get(e);if(void 0===t){if(l!==s)return l;a.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=[],a=new t.InternMap,e))a.has(r)||a.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,s])},21791,e=>{"use strict";class t extends Map{constructor(e,t=s){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 s=t(r);return e.has(s)?e.get(s):(e.set(s,r),r)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},r){let s=t(r);return e.has(s)&&(r=e.get(s),e.delete(s)),r}(this,e))}}function r({_intern:e,_key:t},s){let a=t(s);return e.has(a)?e.get(a):s}function s(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(),s=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,t.createContext)({}),n=(0,t.forwardRef)(({color:e,size:s,strokeWidth:n,absoluteStrokeWidth:l,className:o="",children:d,iconNode:c,...u},f)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,color:x="currentColor",className:p=""}=(0,t.useContext)(i)??{},v=l??g?24*Number(n??h)/Number(s??m):n??h;return(0,t.createElement)("svg",{ref:f,...a,width:s??m??a.width,height:s??m??a.height,stroke:e??x,strokeWidth:v,className:r("lucide",p,o),...!d&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(u)&&{"aria-hidden":"true"},...u},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(d)?d:[d]])});e.s(["default",0,(e,a)=>{let i=(0,t.forwardRef)(({className:i,...l},o)=>(0,t.createElement)(n,{ref:o,iconNode:a,className:r(`lucide-${s(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...l}));return i.displayName=s(e),i}],5270)},60121,(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},i=s.useState,n=s.useEffect,l=s.useLayoutEffect,o=s.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!a(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(),s=i({inst:{value:r,getSnapshot:t}}),a=s[0].inst,c=s[1];return l(function(){a.value=r,a.getSnapshot=t,d(a)&&c({inst:a})},[e,r,t]),n(function(){return d(a)&&c({inst:a}),e(function(){d(a)&&c({inst:a})})},[e]),o(r),r};r.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:c},90979,(e,t,r)=>{"use strict";e.i(50461),t.exports=e.r(60121)}]);
@@ -1,13 +0,0 @@
1
- __turbopack_load_page_chunks__("/currency/CurrencyDetailPage", [
2
- "static/chunks/3x8aami6-3l79.js",
3
- "static/chunks/43pb7hjetp965.js",
4
- "static/chunks/0jo3ujn_icmb9.js",
5
- "static/chunks/1qnuk3631sd6i.js",
6
- "static/chunks/0hm6-xlqw4vmr.js",
7
- "static/chunks/0f-hhcgpd3kjt.js",
8
- "static/chunks/1f04wea7zvjf5.js",
9
- "static/chunks/07q8ufsdxo1tx.js",
10
- "static/chunks/09pees0w94cvm.js",
11
- "static/chunks/0zl6mu89n1_wq.js",
12
- "static/chunks/turbopack-0bbgz21dy5lm3.js"
13
- ])
@@ -1,13 +0,0 @@
1
- __turbopack_load_page_chunks__("/works/management", [
2
- "static/chunks/2ei1rfxsl3q65.js",
3
- "static/chunks/3z6v84zof80bt.js",
4
- "static/chunks/0jo3ujn_icmb9.js",
5
- "static/chunks/1qnuk3631sd6i.js",
6
- "static/chunks/0hm6-xlqw4vmr.js",
7
- "static/chunks/0f-hhcgpd3kjt.js",
8
- "static/chunks/09pees0w94cvm.js",
9
- "static/chunks/0zl6mu89n1_wq.js",
10
- "static/chunks/1f04wea7zvjf5.js",
11
- "static/chunks/07q8ufsdxo1tx.js",
12
- "static/chunks/turbopack-3bwm37xq99e4l.js"
13
- ])
@@ -1,82 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,50595,e=>{"use strict";var t=e.i(91398),r=e.i(41158),a=e.i(3828),n=e.i(69322);e.s(["default",0,({routeName:e=null,currentPageTitle:s=null,depth:l=null})=>{let o=(0,a.useRouter)(),{formatMessage:i}=(0,n.useIntl)(),d={home:"home",products:"products",orders:"orders",users:"users",assortments:"assortments",filters:"filters",tokens:"tokens",quotations:"quotations",enrollments:"enrollments",activities:"activities",works:"work_queue",events:"events",currency:"currencies",country:"countries",language:"languages","delivery-provider":"delivery_providers","payment-provider":"payment_providers","warehousing-provider":"warehousing_provider",system:"system",account:"account",new:"new",edit:"edit"},u=o.asPath?.split("/")?.filter((e,t)=>o.asPath?.split("/")?.indexOf(e)===t);if(1===u.length)return null;let c="";l&&u.splice(l),e&&(u[u.length-1]=e);let f=u?.map(t=>{if(c+=`${t}/`,!t)return{name:i({id:"home",defaultMessage:"Home"}),path:"/"};let r=t?.split("?")[0],a=e?r:r.replace(/-/g," "),n=d[r];return{name:n?i({id:n,defaultMessage:a}):decodeURIComponent(a),path:c.replace(/.$/,"")}});return(0,t.jsx)("nav",{className:"mb-5 hidden sm:flex lg:mt-5 lg:mb-8","aria-label":"Breadcrumb",children:(0,t.jsx)("ol",{className:"flex items-center space-x-4",children:f?.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-center",children:[0!==a&&(0,t.jsx)("svg",{className:"mr-4 h-5 w-5 shrink-0 text-slate-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,t.jsx)(r.default,{href:e.path,className:"text-sm font-medium capitalize text-text-muted dark:hover:text-slate-300 hover:text-slate-700 focus:outline-hidden focus:ring-2 focus:ring-focus-ring rounded-md px-1 py-1",children:a===f.length-1&&s?s:e.name})]})},e.path))})})}])},21623,e=>{"use strict";var t=e.i(91398),r=e.i(56206);e.s(["default",0,({text:e,children:a,onClick:n,className:s="",disabled:l=!1,id:o="",variant:i="primary",size:d="md",type:u="button",loading:c=!1,icon:f,iconRight:m,fullWidth:p=!1,rounded:h="md",ariaLabel:b,...x})=>{let g=a||e,v=(f||m)&&g?"gap-2":"";return(0,t.jsx)("button",{id:o,type:u,disabled:l||c,onClick:n,"aria-label":b,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-accent bg-accent text-text-on-accent hover:bg-accent-hover focus:ring-focus-ring",secondary:"border border-border-default bg-surface text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",tertiary:"border border-border-subtle bg-surface text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",quaternary:"bg-transparent text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",danger:"border border-danger bg-surface text-danger hover:bg-rose-50 dark:hover:bg-rose-900/10 focus:ring-rose-500",ghost:"bg-transparent border border-transparent text-text-secondary hover:text-text-primary hover:bg-surface-raised focus:ring-focus-ring",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-border-default bg-surface-raised text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",input:"border border-border-default bg-surface text-text-primary hover:border-slate-400 dark:hover:border-slate-500 focus:ring-focus-ring focus:border-slate-500"}[i],v,{"w-full":p},s),...x,children:c?(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"}),g]}):(0,t.jsxs)(t.Fragment,{children:[f,g,m]})})}])},25327,e=>{"use strict";var t=e.i(91398),r=e.i(5205),a=e.i(41158),n=e.i(69322),s=e.i(37369),l=e.i(21623);e.s(["default",0,({headerText:e=null,onEdit:o=null,onDelete:i=null,children:d=null,title:u=null,addPath:c=null,addButtonText:f=null})=>{let{formatMessage:m}=(0,n.useIntl)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{children:(0,t.jsxs)("title",{children:["Unchained AdminUI - ",u||e," "]})}),(0,t.jsx)("div",{className:"flex gap-3 flex-wrap items-center justify-between",children:(0,t.jsxs)("div",{className:"flex items-center flex-wrap justify-between w-full gap-4",children:[e&&(0,t.jsx)("h2",{className:"text-2xl font-medium text-slate-900 dark:text-slate-300 sm:truncate sm:text-3xl lg:text-4xl",children:e}),(0,t.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[d,c&&(0,t.jsx)(a.default,{href:c,children:(0,t.jsx)(l.default,{variant:"secondary",icon:(0,t.jsx)(s.PlusIcon,{className:"h-5 w-5"}),text:f||m({id:"add",defaultMessage:"Add"})})}),o&&(0,t.jsx)(l.default,{variant:"secondary",onClick:o,text:m({id:"edit",defaultMessage:"Edit"})}),i&&(0,t.jsx)(l.default,{variant:"danger",onClick:i,text:m({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},6634,e=>{"use strict";var t=e.i(91398),r=e.i(56206),a=e.i(3828),n=e.i(83147);e.s(["default",0,({toggleText:e="",toggleKey:s=null,onToggle:l=null,active:o=!1,className:i="",disabled:d=!1,...u})=>{let c=(0,a.useRouter)(),f=c?.query?.[s]==="true"||o;return(0,t.jsxs)("div",{className:(0,r.default)("",i),children:[(0,t.jsxs)("button",{id:s,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-focus-ring focus:ring-offset-2",{"bg-slate-200 dark:bg-slate-700":!f,"bg-emerald-500 dark:bg-emerald-600 shadow-sm":f}),role:"switch",onClick:l||(()=>{let{skip:e,...t}=c.query;c.push({query:(0,n.normalizeQuery)(t,!f,s)})}),"aria-checked":f?"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":f,"translate-x-0":!f}),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":f,"opacity-100 duration-200 ease-in":!f}),"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":f,"opacity-0 duration-100 ease-out":!f}),"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-text-primary",children:e})})]})}])},10685,e=>{"use strict";var t=e.i(91398),r=e.i(56206),a=e.i(60741),n=e.i(54879);e.s(["default",0,e=>{let{options:s,...l}=(0,a.default)(e),{className:o}=e||{className:""};return(0,t.jsx)(n.default,{...l,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-border-default py-2.5 pl-3 pr-10 text-base text-black shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring sm:text-sm",o,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!l.error}),disabled:l.disabled,id:l.name,name:l.name,onChange:l.onChange,onBlur:l.onBlur,value:l.value,children:[(0,t.jsx)("option",{className:"dark:text-slate-200",value:"",disabled:l.required,hidden:l.required,children:l.placeholder||l.label}),Object.entries(s).map(([e,r])=>(0,t.jsx)("option",{className:"dark:text-slate-200",value:e,children:r},e))]})})})}])},21128,e=>{"use strict";var t=e.i(91398),r=e.i(56206),a=e.i(58021),n=e.i(61898);e.s(["default",0,({label:e,disabled:s=!1,className:l="",hidden:o=!1,...i})=>{let{formState:d}=(0,a.useFormContext)(),{...u}=i,c=Object.keys(d.errors).length>0&&Object.values(d.errors).some(e=>!!e),{disabled:f}=(0,n.default)(),m=s||f||d.isSubmitting||c,p=d.isSubmitting&&!c,h=(s||f||c)&&!d.isSubmitting;return(0,t.jsx)("input",{className:(0,r.default)("inline-flex cursor-pointer justify-center rounded-sm border border-slate-300 px-4 py-2 text-center text-sm font-medium leading-5 shadow-sm hover:shadow-md focus:ring-focus-ring",l,{"bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900":h,"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600":p,"bg-accent text-text-on-accent hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent":!m,hidden:o}),"aria-label":e,type:"submit",value:e,disabled:m,...u})}])},16984,e=>{"use strict";var t=e.i(91398),r=e.i(56206),a=e.i(82226),n=e.i(60741),s=e.i(54879);e.s(["default",0,({maxLength:e=0,validators:l=[],...o})=>{let i=(0,n.default)({validators:[...l,e&&(0,a.validateMaxLength)(e)],...o});return(0,t.jsx)(s.default,{...i,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-focus-ring shadow-xs",{"border-rose-700 placeholder:text-rose-500":!!i.error,"border-slate-300 placeholder-slate-400":!i.error}),disabled:i.disabled,id:i.name,name:i.name,onChange:i.onChange,onClick:e=>{e.stopPropagation()},onBlur:i.onBlur,placeholder:i.placeholder,autoComplete:i.autoComplete||"off",type:i.type||"text",value:i.value,autoFocus:i.autoFocus})})}])},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)},41215,e=>{"use strict";e.s(["default",0,class extends Error{constructor(e){super(e),this.name="CustomError"}}])},5505,e=>{"use strict";var t=e.i(91398),r=e.i(91788),a=e.i(56206);let n=(0,r.createContext)(!1);e.s(["FormWrapperContext",0,n,"default",0,({children:e,className:r=""})=>(0,t.jsx)(n.Provider,{value:!0,children:(0,t.jsx)("div",{className:"sm:max-w-full",children:(0,t.jsx)("div",{className:(0,a.default)("bg-surface rounded-md shadow-sm overflow-hidden",r),children:e})})})])},73319,e=>{"use strict";let t=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["extractQuery",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"isObject",0,t,"isTruthy",0,e=>!(!e||null==e||t(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},76204,52006,50584,e=>{"use strict";var t=e.i(24669),r=e.i(91788),a=e.i(30928);function n(e){return e.catch(()=>{}),e}e.s(["preventUnhandledRejection",0,n],52006);let s=e.i(21953).canUseDOM?r.useLayoutEffect:r.useEffect;e.s(["useIsomorphicLayoutEffect",0,s],50584);var l=e.i(98926);function o(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["useMutation",0,function(e,i){let d=(0,l.useApolloClient)(i?.client),[u,c]=r.useState(()=>o(d)),f=r.useRef({result:u,mutationId:0,isMounted:!0,client:d,mutation:e,options:i});s(()=>{Object.assign(f.current,{client:d,options:i,mutation:e})});let m=r.useCallback((e={})=>{let{options:r,mutation:s}=f.current,l={...r,mutation:s},o=e.client||f.current.client,i="function"==typeof e.context?e.context(r?.context):e.context;!f.current.result.loading&&f.current.isMounted&&c(f.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:o});let d=++f.current.mutationId,u=(0,a.mergeOptions)(l,{...e,context:i});return n(o.mutate(u).then(r=>{let{data:a,error:n}=r,s=e.onError||f.current.options?.onError;if(n&&s&&s(n,u),d===f.current.mutationId){let e={called:!0,loading:!1,data:a,error:n,client:o};f.current.isMounted&&!(0,t.equal)(f.current.result,e)&&c(f.current.result=e)}let l=e.onCompleted||f.current.options?.onCompleted;return n||l?.(r.data,u),r},r=>{if(d===f.current.mutationId&&f.current.isMounted){let e={loading:!1,error:r,data:void 0,called:!0,client:o};(0,t.equal)(f.current.result,e)||c(f.current.result=e)}let a=e.onError||f.current.options?.onError;throw a&&a(r,u),r}))},[]),p=r.useCallback(()=>{if(f.current.isMounted){let e=o(f.current.client);Object.assign(f.current,{mutationId:0,result:e}),c(e)}},[]);return r.useEffect(()=>{let e=f.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[m,{reset:p,...u}]}],76204)},21953,e=>{"use strict";let t="function"==typeof(0,e.i(22420).maybe)(()=>window.document.createElement);e.s(["canUseDOM",0,t])},30928,51104,e=>{"use strict";function t(...e){let r={};return e.forEach(e=>{e&&Reflect.ownKeys(e).forEach(t=>{let a=e[t];void 0!==a&&(r[t]=a)})}),r}e.s(["compact",0,t],51104),e.s(["mergeOptions",0,function(e,r){return t(e,r,r.variables&&{variables:t({...e&&e.variables,...r.variables})})}],30928)},61113,87593,39833,84339,87213,66859,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...a},n){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:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401Z",clipRule:"evenodd"}))});e.s(["StarIcon",0,r],61113);var a=e.i(59080);let n=a.gql`
2
- fragment ProductReviewDetailFragment on ProductReview {
3
- _id
4
- created
5
- updated
6
- deleted
7
- author {
8
- _id
9
- username
10
- name
11
- profile {
12
- displayName
13
- address {
14
- firstName
15
- lastName
16
- }
17
- }
18
- isGuest
19
- avatar {
20
- _id
21
-
22
- url
23
- }
24
- }
25
- product {
26
- _id
27
- texts(forceLocale: $forceLocale) {
28
- _id
29
- title
30
- subtitle
31
- }
32
- media {
33
- _id
34
- file {
35
- _id
36
- url
37
- }
38
- }
39
- }
40
- rating
41
- title
42
- review
43
- upVote: voteCount(type: UPVOTE)
44
- downVote: voteCount(type: DOWNVOTE)
45
- voteReport: voteCount(type: REPORT)
46
- ownVotes {
47
- timestamp
48
- type
49
- }
50
- }
51
- `;e.s(["default",0,n],87593);var s=e.i(91398),l=e.i(20287),l=l,o=e.i(26847);e.s(["HandThumbDownIcon",()=>o.default],39833);var o=o,i=e.i(63039);e.s(["HandThumbUpIcon",()=>i.default],84339);var i=i,d=e.i(69322),u=e.i(66773),c=e.i(28401),f=e.i(56206),m=e.i(21623),p=e.i(24557),h=e.i(84818),b=e.i(15971),x=e.i(6607),g=e.i(76204);let v=a.gql`
52
- mutation RemoveProductReview($productReviewId: ID!) {
53
- removeProductReview(productReviewId: $productReviewId) {
54
- _id
55
- }
56
- }
57
- `;var y=e.i(42469),w=e.i(87284),j=e.i(93380);let k=a.gql`
58
- mutation AddProductReviewVote(
59
- $productReviewId: ID!
60
- $type: ProductReviewVoteType!
61
- $meta: JSON
62
- $forceLocale: Locale
63
- ) {
64
- addProductReviewVote(
65
- productReviewId: $productReviewId
66
- type: $type
67
- meta: $meta
68
- ) {
69
- _id
70
- }
71
- }
72
- `,R=a.gql`
73
- mutation RemoveProductReviewVote(
74
- $productReviewId: ID!
75
- $type: ProductReviewVoteType!
76
- $forceLocale: Locale
77
- ) {
78
- removeProductReviewVote(productReviewId: $productReviewId, type: $type) {
79
- _id
80
- }
81
- }
82
- `;var M=e.i(58971),_=e.i(51870),C=e.i(69211),N=e.i(21128),O=e.i(82226),P=e.i(60741),I=e.i(54879);let E=({maxLength:e,validators:t=[],...r})=>{let a=(0,P.default)({validators:[...t,e&&(0,O.validateMaxLength)(e)],...r});return(0,s.jsx)(I.default,{...a,children:(0,s.jsx)("textarea",{className:(0,f.default)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-400 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 border-border-default px-4 py-2.5 text-sm text-slate-900 placeholder-slate-400 shadow-xs placeholder:text-slate-400 focus:outline-hidden focus:ring-2 focus:ring-focus-ring",a.className,{"border-rose-700 placeholder:text-rose-300 placeholder-rose-300":!!a.error}),disabled:a.disabled,id:a.name,name:a.name,rows:a.rows||10,onChange:a.onChange,onBlur:a.onBlur,placeholder:a.placeholder,autoComplete:a.autoComplete||"off",value:a.value})})};e.s(["default",0,E],87213);var L=e.i(98949);let S=({onSubmit:e,onSubmitSuccess:t=async()=>!0})=>{let{formatMessage:r}=(0,d.useIntl)(),a=r({id:"product_review_added",defaultMessage:"Review added successfully!"}),n=(0,L.default)({submit:e,successMessage:a,onSubmitSuccess:t,initialValues:{message:""}});return(0,s.jsxs)(C.default,{form:n,children:[(0,s.jsx)(E,{rows:3,required:!0,name:"message",id:"message",label:r({id:"message",defaultMessage:"Message"})}),(0,s.jsx)("div",{className:"-mx-6 -mb-6 mt-6 border-t-slate-100 border-t border-t-border-subtle space-y-6 rounded-b-md bg-surface-subtle p-5 text-right",children:(0,s.jsx)(N.default,{label:r({id:"report-submit",defaultMessage:"Submit"})})})]})};var A=e.i(41215);let U="UPVOTE",D="DOWNVOTE",B="REPORT";e.s(["default",0,({review:e,enableDelete:t=!0,showProduct:r=!1})=>{let{formatMessage:a}=(0,d.useIntl)(),{currentUser:n}=(0,_.default)(),{formatDateTime:C}=(0,h.default)(),{setModal:N}=(0,x.default)(),{addProductReviewVote:O}=(()=>{let[e]=(0,g.useMutation)(k);return{addProductReviewVote:async({productReviewId:t,type:r,meta:a})=>e({variables:{productReviewId:t,type:r,meta:a},refetchQueries:["ProductReviewByProduct","ProductReviewByUser"]})}})(),{removeProductReviewVote:P}=(()=>{let[e]=(0,g.useMutation)(R);return{removeProductReviewVote:async({productReviewId:t,type:r})=>e({variables:{productReviewId:t,type:r},refetchQueries:["ProductReviewByProduct","ProductReviewByUser"]})}})(),{hasRole:I,isAdmin:E}=(0,M.default)(),L=t=>!!e.ownVotes.find(e=>e.type===t),T=async t=>{let r=async({message:r})=>{try{return await O({productReviewId:e._id,type:t,meta:{message:r}}),{success:!0}}catch(e){if(e instanceof A.default)return{success:!1,error:e?.message};return{success:!1,error:e}}};L(t)?await P({productReviewId:e._id,type:t}):t===B?await N((0,s.jsx)(S,{onSubmit:r,onSubmitSuccess:async()=>N(null)})):await O({productReviewId:e._id,type:t})},{removeProductReview:$}=(()=>{let[e]=(0,g.useMutation)(v);return{removeProductReview:async({productReviewId:t})=>e({variables:{productReviewId:t},refetchQueries:["ProductReviewByProduct","ProductReviewByUser"]})}})(),V=!e.deleted&&I(u.IRoleAction.VoteProductReview)&&t&&e?.author?._id===n?._id||E()&&!e.deleted,q=!e.deleted&&I(u.IRoleAction.VoteProductReview),F=e?.product,H=async e=>{await N((0,s.jsx)(b.default,{onCancelClick:async()=>N(""),message:a({id:"delete_review_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this review? "}),onOkClick:async()=>{N(""),await $({productReviewId:e}),c.toast.success(a({id:"review_deleted",defaultMessage:"Review deleted successfully"}))},okText:a({id:"delete_review",defaultMessage:"Delete review"})}))};return(0,s.jsxs)("div",{className:(0,f.default)("mb-4 rounded-lg shadow-sm bg-surface p-4",{"border-rose-200 bg-rose-50 dark:bg-rose-950":e.deleted},{"border-border-subtle":!e.deleted}),children:[(0,s.jsxs)("div",{className:"flex items-center",children:[r?(0,s.jsx)(w.default,{src:F?.media[0]?.file?.url,alt:e?.author?.username,width:48,height:48,className:"h-12 w-12 rounded-full aspect-square object-cover object-center"}):(0,s.jsx)(w.default,{src:e?.author?.avatar?.url,alt:e?.author?.username,width:48,height:48,className:"h-12 w-12 rounded-full aspect-square object-cover object-center"}),(0,s.jsxs)("div",{className:"ml-4 flex-1",children:[(0,s.jsx)("h4",{className:"text-sm font-semibold text-text-primary",children:r?F?.texts?.title||(0,s.jsxs)(s.Fragment,{children:[F._id," ",(0,s.jsx)(y.default,{color:"yellow",text:a({id:"title_not_found",defaultMessage:"Title not found"})})]}):(0,j.default)(e?.author)}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:(0,s.jsx)("time",{dateTime:e.updated||e.created,children:C(e.updated||e.created,{dateStyle:"short",timeStyle:"short"})})})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsxs)("button",{type:"button",disabled:!q,onClick:async()=>T(U),className:`flex items-center gap-1 px-2 py-1 rounded-md transition-colors disabled:opacity-50 ${L(U)?"bg-emerald-100 dark:bg-emerald-900 hover:bg-emerald-200 dark:hover:bg-emerald-800":"hover:bg-surface-raised"}`,children:[(0,s.jsx)(i.default,{className:`h-5 w-5 ${L(U)?"text-emerald-600 dark:text-emerald-400":"text-text-muted"}`}),(0,s.jsx)("span",{className:`text-sm font-medium ${L(U)?"text-emerald-700 dark:text-emerald-300":"text-text-secondary"}`,children:e.upVote})]}),(0,s.jsxs)("button",{type:"button",disabled:!q,onClick:async()=>T(D),className:`flex items-center gap-1 px-2 py-1 rounded-md transition-colors disabled:opacity-50 ${L(D)?"bg-rose-100 dark:bg-rose-900 hover:bg-rose-200 dark:hover:bg-rose-800":"hover:bg-surface-raised"}`,children:[(0,s.jsx)(o.default,{className:`h-5 w-5 ${L(D)?"text-danger":"text-text-muted"}`}),(0,s.jsx)("span",{className:`text-sm font-medium ${L(D)?"text-rose-700 dark:text-rose-300":"text-text-secondary"}`,children:e.downVote})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 ml-4",children:[I(u.IRoleAction.VoteProductReview)&&(0,s.jsx)("button",{type:"button",disabled:!q,onClick:async()=>T(B),className:`p-2 rounded-md transition-colors disabled:opacity-50 ${L(B)?"bg-orange-100 dark:bg-orange-900 hover:bg-orange-200 dark:hover:bg-orange-800":"hover:bg-surface-raised"}`,title:"Report review",children:(0,s.jsx)(l.default,{className:(0,f.default)("h-4 w-4",{"text-orange-600 dark:text-orange-400":L(B),"text-text-muted":!L(B)})})}),V&&(0,s.jsx)(m.default,{variant:"danger",size:"xs",rounded:"full",icon:(0,s.jsx)(p.TrashIcon,{className:"h-5 w-5"}),onClick:()=>H(e._id)}),e.deleted&&(0,s.jsx)(y.default,{text:a({id:"deleted_text",defaultMessage:"Deleted"}),color:"red",className:"ml-2"})]})]}),(0,s.jsxs)("div",{className:"mt-4 space-y-3",children:[(0,s.jsx)("h3",{className:"text-base font-semibold text-text-primary",children:e.title}),(0,s.jsx)("p",{className:"text-sm text-text-secondary leading-relaxed",children:e.review})]})]},e._id)}],66859)},20287,26847,63039,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...a},n){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:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 3v1.5M3 21v-6m0 0 2.77-.693a9 9 0 0 1 6.208.682l.108.054a9 9 0 0 0 6.086.71l3.114-.732a48.524 48.524 0 0 1-.005-10.499l-3.11.732a9 9 0 0 1-6.085-.711l-.108-.054a9 9 0 0 0-6.208-.682L3 4.5M3 15V4.5"}))});e.s(["default",0,r],20287);let a=t.forwardRef(function({title:e,titleId:r,...a},n){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:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.498 15.25H4.372c-1.026 0-1.945-.694-2.054-1.715a12.137 12.137 0 0 1-.068-1.285c0-2.848.992-5.464 2.649-7.521C5.287 4.247 5.886 4 6.504 4h4.016a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23h1.294M7.498 15.25c.618 0 .991.724.725 1.282A7.471 7.471 0 0 0 7.5 19.75 2.25 2.25 0 0 0 9.75 22a.75.75 0 0 0 .75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 0 0 2.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384m-10.253 1.5H9.7m8.075-9.75c.01.05.027.1.05.148.593 1.2.925 2.55.925 3.977 0 1.487-.36 2.89-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398-.306.774-1.086 1.227-1.918 1.227h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 0 0 .303-.54"}))});e.s(["default",0,a],26847);let n=t.forwardRef(function({title:e,titleId:r,...a},n){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:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.633 10.25c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75a.75.75 0 0 1 .75-.75 2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282m0 0h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23H5.904m10.598-9.75H14.25M5.904 18.5c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 0 1-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 9.953 4.167 9.5 5 9.5h1.053c.472 0 .745.556.5.96a8.958 8.958 0 0 0-1.302 4.665c0 1.194.232 2.333.654 3.375Z"}))});e.s(["default",0,n],63039)},84985,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...a},n){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:n,"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(["default",0,r])},37369,e=>{"use strict";var t=e.i(84985);e.s(["PlusIcon",()=>t.default])},24669,e=>{"use strict";let{toString:t,hasOwnProperty:r}=Object.prototype,a=Function.prototype.toString,n=new Map;function s(e){return Object.keys(e).filter(l,e)}function l(e){return void 0!==this[e]}function o(e,t){let r=n.get(e);if(r){if(r.has(t))return!0}else n.set(e,r=new Set);return r.add(t),!1}e.s(["equal",0,function(e,l){try{return function e(n,l){if(n===l)return!0;let i=t.call(n);if(i!==t.call(l))return!1;switch(i){case"[object Array]":if(n.length!==l.length)break;case"[object Object]":{if(o(n,l))return!0;let t=s(n),a=s(l),i=t.length;if(i!==a.length)return!1;for(let e=0;e<i;++e)if(!r.call(l,t[e]))return!1;for(let r=0;r<i;++r){let a=t[r];if(!e(n[a],l[a]))return!1}return!0}case"[object Error]":return n.name===l.name&&n.message===l.message;case"[object Number]":if(n!=n)return l!=l;case"[object Boolean]":case"[object Date]":return+n==+l;case"[object RegExp]":case"[object String]":return n==`${l}`;case"[object Map]":case"[object Set]":{if(n.size!==l.size)return!1;if(o(n,l))return!0;let t=n.entries(),r="[object Map]"===i;for(;;){let a=t.next();if(a.done)break;let[n,s]=a.value;if(!l.has(n)||r&&!e(s,l.get(n)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":n=new Uint8Array(n),l=new Uint8Array(l);case"[object DataView]":{let e=n.byteLength;if(e===l.byteLength)for(;e--&&n[e]===l[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{var d,u;let e,t=a.call(n);if(t!==a.call(l))return!1;return d=t,u="{ [native code] }",!((e=d.length-u.length)>=0)||d.indexOf(u,e)!==e}}return!1}(e,l)}finally{n.clear()}}])},9356,e=>{"use strict";var t=e.i(35113);e.s(["isValid",0,function(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,t.toDate)(e)))}],9356)},49543,e=>{"use strict";var t=e.i(35113);e.s(["startOfDay",0,function(e,r){let a=(0,t.toDate)(e,r?.in);return a.setHours(0,0,0,0),a}])},35113,2848,98170,e=>{"use strict";let t=Symbol.for("constructDateFrom");function r(e,r){return"function"==typeof e?e(r):e&&"object"==typeof e&&t in e?e[t](r):e instanceof Date?new e.constructor(r):new Date(r)}e.s(["constructFromSymbol",0,t,"millisecondsInDay",0,864e5,"millisecondsInHour",0,36e5,"millisecondsInMinute",0,6e4,"millisecondsInWeek",0,6048e5,"minutesInDay",0,1440,"minutesInMonth",0,43200,"minutesInYear",0,525600],2848),e.s(["constructFrom",0,r],98170),e.s(["toDate",0,function(e,t){return r(t||e,e)}],35113)},54471,(e,t,r)=>{"use strict";function a(e,t,r,a){return!1}e.i(50461),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getDomainLocale",{enumerable:!0,get:function(){return a}}),e.r(70090),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},39149,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return R},useLinkStatus:function(){return k}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let s=e.r(71650),l=e.r(91398),o=s._(e.r(91788)),i=e.r(60472),d=e.r(71112),u=e.r(28169),c=e.r(89129),f=e.r(14862),m=e.r(25479),p=e.r(71914),h=e.r(54471),b=e.r(44113),x=e.r(63230),g=new Set;function v(e,t,r,a){if(!("u"<typeof window)&&(0,d.isLocalURL)(t)){if(!a.bypassPrefetchedCheck){let n=t+"%"+r+"%"+(void 0!==a.locale?a.locale:"locale"in e?e.locale:void 0);if(g.has(n))return;g.add(n)}e.prefetch(t,r,a).catch(e=>{})}}function y(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let w=o.default.forwardRef(function(e,t){let r,a,{href:n,as:s,children:u,prefetch:g=null,passHref:w,replace:j,shallow:k,scroll:R,locale:M,onClick:_,onNavigate:C,onMouseEnter:N,onTouchStart:O,legacyBehavior:P=!1,transitionTypes:I,...E}=e;r=u,P&&("string"==typeof r||"number"==typeof r)&&(r=(0,l.jsx)("a",{children:r}));let L=o.default.useContext(m.RouterContext),S=!1!==g,{href:A,as:U}=o.default.useMemo(()=>{if(!L){let e=y(n);return{href:e,as:s?y(s):e}}let[e,t]=(0,i.resolveHref)(L,n,!0);return{href:e,as:s?(0,i.resolveHref)(L,s):t||e}},[L,n,s]),D=o.default.useRef(A),B=o.default.useRef(U);P&&(a=o.default.Children.only(r));let T=P?a&&"object"==typeof a&&a.ref:t,[$,V,q]=(0,p.useIntersection)({rootMargin:"200px"}),F=o.default.useCallback(e=>{(B.current!==U||D.current!==A)&&(q(),B.current=U,D.current=A),$(e)},[U,A,q,$]),H=(0,x.useMergedRef)(F,T);o.default.useEffect(()=>{!L||V&&S&&v(L,A,U,{bypassPrefetchedCheck:!1,locale:M})},[U,A,V,M,S,L?.locale,L]);let z={ref:H,onClick(e){P||"function"!=typeof _||_(e),P&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(e),!L||e.defaultPrevented||function(e,t,r,a,n,s,l,o,i){let u,{nodeName:c}=e.currentTarget;if(!("A"===c.toUpperCase()&&((u=e.currentTarget.getAttribute("target"))&&"_self"!==u||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))){if(!(0,d.isLocalURL)(r)){n&&(e.preventDefault(),location.replace(r));return}e.preventDefault(),(()=>{if(i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let e=l??!0;"beforePopState"in t?t[n?"replace":"push"](r,a,{shallow:s,locale:o,scroll:e}):t[n?"replace":"push"](a||r,{scroll:e})})()}}(e,L,A,U,j,k,R,M,C)},onMouseEnter(e){P||"function"!=typeof N||N(e),P&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),L&&v(L,A,U,{locale:M,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){P||"function"!=typeof O||O(e),P&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),L&&v(L,A,U,{locale:M,priority:!0,bypassPrefetchedCheck:!0})}};if((0,c.isAbsoluteUrl)(U))z.href=U;else if(!P||w||"a"===a.type&&!("href"in a.props)){let e=void 0!==M?M:L?.locale;z.href=L?.isLocaleDomain&&(0,h.getDomainLocale)(U,e,L?.locales,L?.domainLocales)||(0,b.addBasePath)((0,f.addLocale)(U,e,L?.defaultLocale))}return P?o.default.cloneElement(a,z):(0,l.jsx)("a",{...E,...z,children:r})}),j=(0,o.createContext)({pending:!1}),k=()=>(0,o.useContext)(j),R=w;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},41158,(e,t,r)=>{t.exports=e.r(39149)},71914,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useIntersection",{enumerable:!0,get:function(){return i}});let a=e.r(91788),n=e.r(99604),s="function"==typeof IntersectionObserver,l=new Map,o=[];function i({rootRef:e,rootMargin:t,disabled:r}){let d=r||!s,[u,c]=(0,a.useState)(!1),f=(0,a.useRef)(null),m=(0,a.useCallback)(e=>{f.current=e},[]);return(0,a.useEffect)(()=>{if(s){if(d||u)return;let r=f.current;if(r&&r.tagName)return function(e,t,r){let{id:a,observer:n,elements:s}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},a=o.find(e=>e.root===r.root&&e.margin===r.margin);if(a&&(t=l.get(a)))return t;let n=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=n.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:n},o.push(r),l.set(r,t),t}(r);return s.set(e,t),n.observe(e),function(){if(s.delete(e),n.unobserve(e),0===s.size){n.disconnect(),l.delete(a);let e=o.findIndex(e=>e.root===a.root&&e.margin===a.margin);e>-1&&o.splice(e,1)}}}(r,e=>e&&c(e),{root:e?.current,rootMargin:t})}else if(!u){let e=(0,n.requestIdleCallback)(()=>c(!0));return()=>(0,n.cancelIdleCallback)(e)}},[d,t,e,u,f.current]),[m,u,(0,a.useCallback)(()=>{c(!1)},[])]}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},63230,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return n}});let a=e.r(91788);function n(e,t){let r=(0,a.useRef)(null),n=(0,a.useRef)(null);return(0,a.useCallback)(a=>{if(null===a){let e=r.current;e&&(r.current=null,e());let t=n.current;t&&(n.current=null,t())}else e&&(r.current=s(e,a)),t&&(n.current=s(t,a))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},80963,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return h},defaultHead:function(){return c}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let s=e.r(31640),l=e.r(71650),o=e.r(91398),i=l._(e.r(91788)),d=s._(e.r(94941)),u=e.r(13584);function c(){return[(0,o.jsx)("meta",{charSet:"utf-8"},"charset"),(0,o.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}let m=["name","httpEquiv","charSet","itemProp"];function p(e){let t,r,a,n;return e.reduce(f,[]).reverse().concat(c().reverse()).filter((t=new Set,r=new Set,a=new Set,n={},e=>{let s=!0,l=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){l=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?s=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?s=!1:r.add(e.type);break;case"meta":for(let t=0,r=m.length;t<r;t++){let r=m[t];if(e.props.hasOwnProperty(r))if("charSet"===r)a.has(r)?s=!1:a.add(r);else{let t=e.props[r],a=n[r]||new Set;("name"!==r||!l)&&a.has(t)?s=!1:(a.add(t),n[r]=a)}}}return s})).reverse().map((e,t)=>{let r=e.key||t;return i.default.cloneElement(e,{key:r})})}let h=function({children:e}){let t=(0,i.useContext)(u.HeadManagerContext);return(0,o.jsx)(d.default,{reduceComponentsToState:p,headManager:t,children:e})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},94941,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o}});let a=e.r(91788),n="u"<typeof window,s=n?()=>{}:a.useLayoutEffect,l=n?()=>{}:a.useEffect;function o(e){let{headManager:t,reduceComponentsToState:r}=e;function o(){if(t&&t.mountedInstances){let e=a.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return n&&(t?.mountedInstances?.add(e.children),o()),s(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),s(()=>(t&&(t._pendingUpdate=o),()=>{t&&(t._pendingUpdate=o)})),l(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},5205,(e,t,r)=>{t.exports=e.r(80963)}]);