@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,327 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53296,e=>{"use strict";var t=e.i(91398),a=e.i(74040),a=a,r=e.i(69322);e.s(["default",0,({messageKey:e,defaultMessage:s,values:i,className:l="",showIcon:o=!0})=>{let{formatMessage:d}=(0,r.useIntl)(),n=d({id:e,defaultMessage:s},i);return n?(0,t.jsxs)("div",{className:`flex items-start space-x-1 text-sm text-text-secondary ${l}`,children:[o&&(0,t.jsx)(a.default,{className:"h-4 w-4 mt-0.5 flex-shrink-0"}),(0,t.jsx)("span",{children:n})]}):null}],53296)},10685,e=>{"use strict";var t=e.i(91398),a=e.i(56206),r=e.i(60741),s=e.i(54879);e.s(["default",0,e=>{let{options:i,...l}=(0,r.default)(e),{className:o}=e||{className:""};return(0,t.jsx)(s.default,{...l,children:(0,t.jsx)("div",{className:"select-wrap",children:(0,t.jsxs)("select",{className:(0,a.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(i).map(([e,a])=>(0,t.jsx)("option",{className:"dark:text-slate-200",value:e,children:a},e))]})})})}])},13120,e=>{"use strict";var t=e.i(91398),a=e.i(56206),r=e.i(76038),s=e.i(60741),i=e.i(82226),l=e.i(54879);e.s(["default",0,({buttonText:e="",validators:o=[],selectOptions:d=[],...n})=>{let u=(0,s.default)({validators:[...o,(0,i.validateRequiredTag)(n?.required)],label:"Tags",...n});return(0,t.jsx)(l.default,{...u,children:(0,t.jsx)(r.default,{disabled:u.disabled,id:u.id,name:u.name,className:(0,a.default)({"border-rose-300":!!u.error}),onChange:e=>u.setValue(e,!0),placeholder:u.placeholder,tagList:u.value,buttonText:e,selectOptions:d})})}])},73298,2228,e=>{"use strict";var t=e.i(59080);let a=t.gql`
2
- fragment MD5MetaDataFragment on WebAuthnMDSv3Metadata {
3
- legalHeader
4
- description
5
- authenticatorVersion
6
- protocolFamily
7
- schema
8
- authenticationAlgorithms
9
- publicKeyAlgAndEncodings
10
- attestationTypes
11
- keyProtection
12
- upv
13
- tcDisplay
14
- authenticationAlgorithms
15
- publicKeyAlgAndEncodings
16
- icon
17
- authenticatorGetInfo
18
- }
19
- `;e.s(["default",0,a],2228);let r=t.gql`
20
- fragment UserFragment on User {
21
- _id
22
- lastBillingAddress {
23
- firstName
24
- lastName
25
- company
26
- addressLine
27
- addressLine2
28
- postalCode
29
- countryCode
30
- regionCode
31
- city
32
- }
33
- lastContact {
34
- emailAddress
35
- telNumber
36
- }
37
- lastLogin {
38
- countryCode
39
- locale
40
- remoteAddress
41
- remotePort
42
- timestamp
43
- userAgent
44
- }
45
- avatar {
46
- _id
47
- name
48
- size
49
- type
50
- url
51
- }
52
- allowedActions
53
- paymentCredentials {
54
- _id
55
- isValid
56
- isPreferred
57
- paymentProvider {
58
- _id
59
- type
60
- interface {
61
- _id
62
- label
63
- version
64
- }
65
- }
66
- }
67
- emails {
68
- verified
69
- address
70
- }
71
- web3Addresses {
72
- address
73
- nonce
74
- verified
75
- }
76
- webAuthnCredentials {
77
- _id
78
- created
79
- aaguid
80
- counter
81
- mdsMetadata {
82
- ...MD5MetaDataFragment
83
- }
84
- }
85
- profile {
86
- displayName
87
- phoneMobile
88
- gender
89
- address {
90
- firstName
91
- lastName
92
- company
93
- addressLine
94
- addressLine2
95
- postalCode
96
- countryCode
97
- regionCode
98
- city
99
- }
100
- birthday
101
- }
102
- username
103
- primaryEmail {
104
- verified
105
- address
106
- }
107
- isGuest
108
- isInitialPassword
109
- name
110
- roles
111
- tags
112
- deleted
113
- cart {
114
- _id
115
- items {
116
- _id
117
- }
118
- }
119
- orders {
120
- _id
121
- items {
122
- _id
123
- }
124
- }
125
- }
126
- ${a}
127
- `;e.s(["default",0,r],73298)},51870,e=>{"use strict";var t=e.i(59080),a=e.i(32171),r=e.i(70693),s=e.i(73298);e.s(["default",0,e=>{let{customProperties:i,hydrateFragment:l}=(0,r.default)(),{data:o,loading:d,error:n}=(0,a.useQuery)(((e="")=>t.gql`
128
- query CurrentUser {
129
- me {
130
- ...UserFragment
131
- ${e}
132
- }
133
- }
134
- ${s.default}
135
- `)(i?.User)),u=o?.me,c=l(i?.User,u||null);return{currentUser:u,loading:d,error:n,extendedData:c}}])},11056,e=>{"use strict";var t=e.i(91398),a=e.i(91788),r=e.i(5505),s=e.i(57561);e.s(["default",0,({children:e,onlyFull:i=!1})=>{let{languageDialectList:l,selectedLocale:o,setSelectedLocale:d}=(0,s.default)(),n=(0,a.useContext)(r.FormWrapperContext),u=l.filter(e=>!i||e.isoCode.includes("-"));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`w-fit mt-5 mb-3 ${n?"ml-5":""}`,children:(0,t.jsx)("select",{id:"locale-wrapper",className:"cursor-pointer rounded-md border-1 border-border-default py-1 pr-8 text-sm lg:py-1 lg:pr-10 text-black dark:text-white dark:bg-slate-800 shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring",value:o||"",onChange:e=>{e.stopPropagation(),d(e.target.value)},children:u?.map(e=>(0,t.jsx)("option",{value:e.isoCode,children:e.isoCode},e._id))})}),(0,t.jsx)("div",{children:a.default.cloneElement(e)})]})}])},57561,48539,55989,e=>{"use strict";var t=e.i(91788),a=e.i(91398),r=e.i(69322),s=e.i(51713),i=e.i(98520),l=e.i(59080),o=e.i(32171);let d=l.gql`
136
- query ShopInfo {
137
- shopInfo {
138
- _id
139
- version
140
- language {
141
- _id
142
- isoCode
143
- name
144
- }
145
- country {
146
- _id
147
- isoCode
148
- flagEmoji
149
- name
150
- defaultCurrency {
151
- _id
152
- isoCode
153
- }
154
- }
155
- adminUiConfig {
156
- singleSignOnURL
157
- externalLinks {
158
- href
159
- title
160
- target
161
- }
162
- customProperties {
163
- entityName
164
- inlineFragment
165
- }
166
- productTags
167
- assortmentTags
168
- userTags
169
- }
170
- }
171
- }
172
- `,n=()=>{let{data:e,loading:t,error:a}=(0,o.useQuery)(d,{fetchPolicy:"cache-first"}),{shopInfo:r}=e||{};return{shopInfo:r,defaultLocale:[r?.language?.isoCode,r?.country?.isoCode?.toUpperCase()].filter(Boolean)?.join("-"),loading:t,error:a}};e.s(["default",0,n],48539);var u=e.i(79684),c=e.i(51870);let m=(0,t.createContext)(void 0);e.s(["AppContextWrapper",0,({children:e,onlyFull:l=!1})=>{let o,{currentUser:d}=(0,c.default)(),g=!!d?._id&&!d?.isGuest,{languages:f}=(0,s.default)({skip:!g}),{locale:p}=(0,r.useIntl)(),[h,x]=(0,u.default)("selectedLocale",null),{shopInfo:y,loading:v}=n(),{countries:b}=(0,i.default)({skip:!g}),[C,_]=(0,t.useState)(p),j=e=>{x(e),_(e)};(0,t.useEffect)(()=>{h?_(h):v||j(`${y?.language?.isoCode}-${y?.country?.isoCode?.toUpperCase()}`)},[y,v,p]);let w=(o=[],f.forEach(({_id:e,isoCode:t})=>{o.push({_id:e,isoCode:t}),b.forEach(({isoCode:a,_id:r})=>{let s=[t,a.toUpperCase()].join("-");(e=>{try{return new Intl.DateTimeFormat(e).resolvedOptions().locale.toLowerCase()===e.toLowerCase()}catch(e){return!1}})(s)&&o.push({_id:`${r}-${e}`,isoCode:s})})}),o).filter(e=>!l||e.isoCode.includes("-")),P=!!y?.language&&!!y?.country;return(0,a.jsx)(m.Provider,{value:{selectedLocale:C,setSelectedLocale:j,languageDialectList:w,isSystemReady:P,shopInfo:y},children:e})},"default",0,m],55989),e.s(["default",0,()=>{let e=(0,t.useContext)(m);if(!e)throw Error("useLocale must be used within a LocaleProvider");return e}],57561)},79684,e=>{"use strict";var t=e.i(91788);e.s(["default",0,(e,a)=>{let[r,s]=(0,t.useState)(()=>{try{if(window.localStorage){let t=window.localStorage.getItem(e);return t?JSON.parse(t):a}return a}catch(e){return a}});return[r,t=>{try{if(window.localStorage){let a=t instanceof Function?t(r):t;s(a),window.localStorage.setItem(e,JSON.stringify(a))}else console.error("localStorage is not available")}catch(e){console.error(e)}}]}])},1880,e=>{"use strict";e.s(["default",0,(e={})=>{let{_id:t,texts:a}=e||{};return a||t?`${a?.slug?.split("/").join("")||""}_id_${t}`:null},"parseSlug",0,e=>{if(!e)return null;let[t]=e?.split("_id_")||[];return t},"parseUniqueId",0,e=>{if(!e)return null;let t=e?.split("_id_");return t?.pop()}])},77846,e=>{"use strict";var t=e.i(59080);let a=t.gql`
173
- fragment CountryFragment on Country {
174
- _id
175
- isoCode
176
- isActive
177
- isBase
178
-
179
- defaultCurrency {
180
- _id
181
- isoCode
182
- }
183
- }
184
- `;e.s(["default",0,a])},98520,e=>{"use strict";var t=e.i(59080),a=e.i(32171),r=e.i(77846);let s=t.gql`
185
- query Countries(
186
- $queryString: String
187
- $limit: Int
188
- $offset: Int
189
- $includeInactive: Boolean
190
- $sort: [SortOptionInput!]
191
- ) {
192
- countries(
193
- queryString: $queryString
194
- limit: $limit
195
- offset: $offset
196
- includeInactive: $includeInactive
197
- sort: $sort
198
- ) {
199
- ...CountryFragment
200
- }
201
- countriesCount(includeInactive: $includeInactive, queryString: $queryString)
202
- }
203
-
204
- ${r.default}
205
- `;e.s(["default",0,({queryString:e="",limit:t=20,offset:r=0,includeInactive:i=!0,sort:l=[],skip:o=!1}={})=>{let{data:d,loading:n,error:u,fetchMore:c}=(0,a.useQuery)(s,{variables:{queryString:e,limit:t,offset:r,includeInactive:i,sort:l},errorPolicy:"all",skip:o}),m=d?.countries||[],g=d?.countriesCount,f=m?.length<g;return{countries:m,countriesCount:g,hasMore:f,loading:n,error:u,loadMore:()=>{c({variables:{offset:m?.length}})}}}])},95064,e=>{"use strict";var t=e.i(59080);let a=t.gql`
206
- fragment LanguageFragment on Language {
207
- _id
208
- isoCode
209
- isActive
210
- isBase
211
- name
212
- }
213
- `;e.s(["default",0,a])},51713,e=>{"use strict";var t=e.i(59080),a=e.i(32171),r=e.i(95064);let s=t.gql`
214
- query Languages(
215
- $queryString: String
216
- $offset: Int
217
- $limit: Int
218
- $includeInactive: Boolean
219
- $sort: [SortOptionInput!]
220
- ) {
221
- languages(
222
- queryString: $queryString
223
- offset: $offset
224
- limit: $limit
225
- includeInactive: $includeInactive
226
- sort: $sort
227
- ) {
228
- ...LanguageFragment
229
- }
230
- languagesCount(includeInactive: $includeInactive, queryString: $queryString)
231
- }
232
- ${r.default}
233
- `;e.s(["default",0,({queryString:e="",limit:t=20,offset:r=0,includeInactive:i=!0,sort:l=[],skip:o=!1}={})=>{let{data:d,loading:n,error:u,fetchMore:c}=(0,a.useQuery)(s,{variables:{queryString:e,limit:t,offset:r,includeInactive:i,sort:l},errorPolicy:"all",skip:o}),m=d?.languages||[],g=d?.languagesCount,f=m?.length<g;return{languages:m,languagesCount:g,hasMore:f,loading:n,error:u,loadMore:()=>{c({variables:{offset:m?.length}})}}}])},38994,62199,14336,e=>{"use strict";var t=e.i(59080),a=e.i(76204);let r=t.gql`
234
- fragment ProductDetailFragment on Product {
235
- _id
236
- sequence
237
- status
238
- created
239
- tags
240
- updated
241
- published
242
-
243
- media {
244
- _id
245
- tags
246
- file {
247
- _id
248
- url
249
- }
250
- }
251
- reviews {
252
- _id
253
- created
254
- author {
255
- _id
256
- username
257
- isGuest
258
- }
259
- rating
260
- title
261
- review
262
- voteCount
263
- ownVotes {
264
- type
265
- timestamp
266
- }
267
- }
268
- siblings {
269
- _id
270
- media {
271
- _id
272
- file {
273
- _id
274
- url
275
- }
276
- }
277
- }
278
- }
279
- `;e.s(["default",0,r],62199);let s=t.gql`
280
- fragment ProductTextsFragment on ProductTexts {
281
- _id
282
- locale
283
- slug
284
- title
285
- subtitle
286
- description
287
- vendor
288
- brand
289
- labels
290
- }
291
- `;e.s(["default",0,s],14336);let i=t.gql`
292
- mutation CreateProduct(
293
- $product: CreateProductInput!
294
- $texts: [ProductTextInput!]
295
- ) {
296
- createProduct(product: $product, texts: $texts) {
297
- ...ProductDetailFragment
298
- ... on SimpleProduct {
299
- texts {
300
- ...ProductTextsFragment
301
- }
302
- }
303
- ... on ConfigurableProduct {
304
- texts {
305
- ...ProductTextsFragment
306
- }
307
- }
308
- ... on BundleProduct {
309
- texts {
310
- ...ProductTextsFragment
311
- }
312
- }
313
- ... on TokenizedProduct {
314
- texts {
315
- ...ProductTextsFragment
316
- }
317
- }
318
- ... on PlanProduct {
319
- texts {
320
- ...ProductTextsFragment
321
- }
322
- }
323
- }
324
- }
325
- ${r}
326
- ${s}
327
- `;e.s(["default",0,()=>{let[e,{data:t,error:r,loading:s}]=(0,a.useMutation)(i);return{createProduct:async({product:{type:t,tags:a},texts:r})=>e({variables:{product:{type:t,tags:a},texts:r},refetchQueries:["Products","ShopStatus","ShopInfo"]}),newProduct:t?.createProduct,error:r,loading:s}}],38994)},46342,e=>{"use strict";var t=e.i(91398),a=e.i(3828),r=e.i(69322),s=e.i(50595),i=e.i(5505),l=e.i(25327),o=e.i(1880),d=e.i(66773),n=e.i(58971),u=e.i(69211),c=e.i(10685),m=e.i(21128),g=e.i(13120),f=e.i(16984),p=e.i(98949),h=e.i(53296),x=e.i(57561);let y=({onSubmit:e,onSubmitSuccess:a})=>{let{formatMessage:s}=(0,r.useIntl)(),{hasRole:i}=(0,n.default)(),{selectedLocale:l,shopInfo:o}=(0,x.default)(),y=s({id:"product_added",defaultMessage:"Product added successfully!"}),v=(0,p.default)({submit:async t=>{let{title:a,subtitle:r,type:s,tags:i}=t;if(!a||!s)return{success:!1};let o=[{title:a,subtitle:r||"",slug:a.toLowerCase().replace(/\s+/g,"-"),locale:l}];return await e({texts:o,type:s,tags:i||[]})},onSubmitSuccess:a,successMessage:y,initialValues:{title:"",subtitle:"",type:d.IProductType.SimpleProduct,tags:[]}});return(0,t.jsxs)(u.default,{form:v,children:[(0,t.jsxs)("div",{className:"p-5 pb-7 sm:max-w-full flex flex-col gap-3",children:[(0,t.jsx)(f.default,{name:"title",id:"title",label:s({id:"name",defaultMessage:"Name"}),required:!0,className:"block w-full max-w-full rounded-md border-border-default text-sm focus:ring-focus-ring sm:text-sm"}),(0,t.jsx)(f.default,{name:"subtitle",id:"subtitle",label:s({id:"subtitle",defaultMessage:"Subtitle"}),className:"block w-full max-w-full rounded-md border-border-default text-sm focus:ring-focus-ring sm:text-sm"}),(0,t.jsx)(c.default,{className:"mt-1 w-full",label:s({id:"type",defaultMessage:"Type"}),placeholder:s({id:"type",defaultMessage:"Type"}),required:!0,name:"type",options:Object.fromEntries(Object.entries(d.IProductType).map(([e,t])=>[t,e]))}),(0,t.jsx)(g.default,{name:"tags",label:s({id:"tags",defaultMessage:"Tags"}),placeholder:s({id:"enter_tag",defaultMessage:"Enter tag..."}),selectOptions:(o?.adminUiConfig.productTags||[]).map(e=>({value:e,label:e}))}),(0,t.jsx)(h.default,{messageKey:"product_tags_help",defaultMessage:"Add keywords to organize and filter products (e.g., 'electronics', 'outdoor', 'premium'). These work across all languages and help customers find products through search and filters.",className:"mt-1"})]}),i(d.IRoleAction.ManageProducts)&&(0,t.jsx)("div",{className:"border-t border-t-border-subtle bg-surface-subtle p-5 text-right",children:(0,t.jsx)(m.default,{label:s({id:"add_product",defaultMessage:"Add Product"})})})]})};var v=e.i(38994),b=e.i(11056);e.s(["default",0,()=>{let{createProduct:e}=(0,v.default)(),d=(0,a.useRouter)(),{formatMessage:n}=(0,r.useIntl)(),u=async({texts:t,type:a,tags:r})=>{let{data:s,error:i}=await e({product:{type:a,tags:r},texts:t});return i?{success:!1}:{success:!0,data:s?.createProduct}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{}),(0,t.jsx)(l.default,{headerText:n({id:"new_product_header",defaultMessage:"New product"})}),(0,t.jsxs)("div",{className:"mt-6 lg:grid lg:grid-cols-3 gap-10",children:[(0,t.jsx)("div",{className:"lg:col-span-2",children:(0,t.jsx)(i.default,{children:(0,t.jsx)(b.default,{children:(0,t.jsx)(y,{onSubmit:u,onSubmitSuccess:(e,{...t})=>(d.replace(`/products?slug=${(0,o.default)(t)}`),!0)})})})}),(0,t.jsxs)("div",{className:"mt-10 lg:mt-0 lg:col-span-1 space-y-2",children:[(0,t.jsx)("h3",{className:"text-lg text-text-primary",children:n({id:"product_type",defaultMessage:"Product type"})}),(0,t.jsxs)("div",{className:"text-sm divide-y divide-slate-200 dark:divide-slate-800 dark:text-slate-400 lg:mr-10",children:[(0,t.jsx)("div",{className:"my-2 py-2",children:(0,t.jsx)(r.FormattedMessage,{id:"simple_product_definition",defaultMessage:" <h3>Simple</h3> <p>Simple product is the most commonly used type of product type. It accepts configuration values for price, dimension and warehousing. Most e-commerce product needs are satisfied by this type </p>",values:{h3:e=>(0,t.jsx)("h3",{className:"font-semibold ",children:e}),p:e=>(0,t.jsx)("p",{children:e})}})}),(0,t.jsx)("div",{className:"my-2 py-2",children:(0,t.jsx)(r.FormattedMessage,{id:"plan_product_definition",defaultMessage:" <h3>Plan</h3> <p>Plan product is use when you have a product that is offered per subscription base. Since for this type of product the payment is usually recurring, you can adjust the interval of payment calculation.\n\n </p>",values:{h3:e=>(0,t.jsx)("h3",{className:"font-semibold ",children:e}),p:e=>(0,t.jsx)("p",{children:e})}})}),(0,t.jsx)("div",{className:"my-2 py-2",children:(0,t.jsx)(r.FormattedMessage,{id:"bundle_product_definition",defaultMessage:" <h3>Bundle</h3> <p>As the name suggest this product type enables you to create a collection/bundle of products as one and set the price accordingly. This type of product is useful if you have christmas package for example. </p>",values:{h3:e=>(0,t.jsx)("h3",{className:"font-semibold ",children:e}),p:e=>(0,t.jsx)("p",{children:e})}})}),(0,t.jsx)("div",{className:"my-2 py-2",children:(0,t.jsx)(r.FormattedMessage,{id:"configurable_product_definition",defaultMessage:" <h3>Configurable</h3> <p>Configurable Product is used to organize varieties of a product. A product might have a variation in color, size or other distinct property in that case you can use a configurable product type to organize all the variation under one category and outline-solid there difference. </p>",values:{h3:e=>(0,t.jsx)("h3",{className:"font-semibold ",children:e}),p:e=>(0,t.jsx)("p",{children:e})}})})]})]})]})]})}],46342)},85463,(e,t,a)=>{let r="/products/new";(window.__NEXT_P=window.__NEXT_P||[]).push([r,()=>e.r(46342)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([r])})},74040,e=>{"use strict";var t=e.i(91788);let a=t.forwardRef(function({title:e,titleId:a,...r},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":a},r),e?t.createElement("title",{id:a},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))});e.s(["default",0,a])},28805,e=>{e.v(t=>Promise.all(["static/chunks/1jqnrnw0p9tw5.js"].map(t=>e.l(t))).then(()=>t(79466)))},48761,e=>{e.v(t=>Promise.all(["static/chunks/0wooaklx8_14q.js"].map(t=>e.l(t))).then(()=>t(93594)))},13521,(e,t,a)=>{"use strict";e.i(50461),Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"ImageConfigContext",{enumerable:!0,get:function(){return i}});let r=e.r(31640)._(e.r(91788)),s=e.r(15125),i=r.default.createContext(s.imageConfigDefault)},15125,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r={VALID_LOADERS:function(){return i},imageConfigDefault:function(){return l}};for(var s in r)Object.defineProperty(a,s,{enumerable:!0,get:r[s]});let i=["default","imgix","cloudinary","akamai","custom"],l={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}}]);
@@ -1,8 +0,0 @@
1
- __turbopack_load_page_chunks__("/external", [
2
- "static/chunks/0wpmgf2-hr2iv.js",
3
- "static/chunks/0jo3ujn_icmb9.js",
4
- "static/chunks/09pees0w94cvm.js",
5
- "static/chunks/07q8ufsdxo1tx.js",
6
- "static/chunks/0f-hhcgpd3kjt.js",
7
- "static/chunks/turbopack-3b4s935ks8u-b.js"
8
- ])
@@ -1,111 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95789,e=>{"use strict";var t=e.i(91398),r=e.i(56206),s=e.i(88566),a=e.i(25575),i=e.i(91788);let l=({header:e,body:l,headerCSS:n="",bodyCSS:o="",itemContainerCSS:d="",itemindex:u=1,hideChevron:c=!1})=>{let[f,m]=(0,i.useState)(!1);return(0,t.jsxs)("div",{className:(0,r.default)("mt-3",d),"data-itemindex":u,children:[(0,t.jsxs)("button",{type:"button",onClick:()=>m(!f),className:(0,r.default)("relative cursor-pointer border dark:border-slate-800 bg-surface-input text-text-muted hover:bg-surface-raised w-full max-w-full overflow-hidden",n),children:[(0,t.jsx)("div",{className:"w-full",children:e}),!c&&(0,t.jsx)("span",{className:"px-2",children:f?(0,t.jsx)(a.ChevronUpIcon,{className:"h-5 w-5"}):(0,t.jsx)(s.ChevronDownIcon,{className:"h-5 w-5"})})]}),f?(0,t.jsx)("div",{className:(0,r.default)("rounded-lg sm:p-4 xl:p-10 relative overflow-visible",o),children:l}):""]})};e.s(["default",0,({data:e,containerCSS:s="",headerCSS:a="",bodyCSS:i="",itemContainerCSS:n="",hideChevron:o=!1,...d})=>(0,t.jsx)("div",{className:(0,r.default)("my-3",s),...d,children:e.map(({header:e,body:r},s)=>(0,t.jsx)(l,{itemindex:s,header:e,body:r,headerCSS:a,bodyCSS:i,itemContainerCSS:n,hideChevron:o},s))})],95789)},3883,e=>{"use strict";var t=e.i(91398),r=e.i(56206);e.s(["default",0,({id:e,label:s,value:a,onChange:i,placeholder:l,min:n,max:o,className:d,containerClassName:u})=>(0,t.jsxs)("div",{className:(0,r.default)("flex flex-col gap-1",u),children:[s&&(0,t.jsx)("label",{htmlFor:e,className:"text-sm font-medium text-text-secondary",children:s}),(0,t.jsx)("input",{type:"date",id:e,value:a||"",onChange:e=>{i(e.target.value||null)},placeholder:l,min:n,max:o,className:(0,r.default)("w-full rounded-md border-1 border-border-default bg-surface-input px-3 py-2 text-sm shadow-xs text-text-primary focus:outline-hidden focus:ring-2 focus:ring-focus-ring dark:[color-scheme:dark]",d)})]})])},83788,e=>{"use strict";var t=e.i(91398),r=e.i(91788),s=e.i(86201);class a extends r.default.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error({error:e,errorInfo:t})}render(){return this.state.hasError?(0,t.jsx)(s.default,{error:this.state.error,resetError:()=>this.setState({hasError:!1,error:null})}):this.props.children}}e.s(["default",0,a])},86201,e=>{"use strict";var t=e.i(91398),r=e.i(41158),s=e.i(69322),a=e.i(5505);e.s(["default",0,({error:e=null,resetError:i=null})=>{let{formatMessage:l}=(0,s.useIntl)();return(0,t.jsx)("div",{className:"flex min-h-screen items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"w-full max-w-md space-y-4 text-center",children:[(0,t.jsx)("div",{children:(0,t.jsx)("h2",{className:"text-center text-3xl text-text-primary",children:l({id:"internal_server_error",defaultMessage:"500 Internal Server Error"})})}),(0,t.jsx)(a.default,{children:(0,t.jsxs)("div",{className:"space-y-6 px-4 pb-5 pt-3 sm:rounded-lg sm:px-10",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900",children:(0,t.jsx)("svg",{className:"h-6 w-6 text-danger",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),(0,t.jsx)("p",{className:"mt-4 text-sm font-semibold uppercase tracking-wide text-danger",children:l({id:"error_500",defaultMessage:"500 Error"})}),(0,t.jsx)("p",{className:"mt-2 text-base text-text-muted",children:l({id:"internal_server_error_message",defaultMessage:"Sorry, something went wrong on our end. We are working to fix this."})}),e?.message&&(0,t.jsxs)("details",{className:"mt-4 text-left",children:[(0,t.jsx)("summary",{className:"cursor-pointer text-sm text-text-secondary hover:text-slate-800 dark:hover:text-slate-300",children:l({id:"show_error_details",defaultMessage:"Show error details"})}),(0,t.jsx)("pre",{className:"mt-2 text-xs text-text-muted whitespace-pre-wrap break-all",children:e?.message})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 mt-6",children:[(0,t.jsxs)(r.default,{href:"/",className:"group relative flex w-full justify-center rounded-md border border-transparent bg-accent py-2 px-4 text-sm font-medium text-text-on-accent hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2",children:[(0,t.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-white group-hover:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"})})}),l({id:"back_to_home",defaultMessage:"Back to Home"})]}),i&&(0,t.jsxs)("button",{type:"button",onClick:i,className:"group relative flex w-full justify-center rounded-md border border-slate-300 bg-surface-raised dark:border-slate-600 py-2 px-4 text-sm font-medium text-text-secondary hover:bg-surface-raised focus:outline-hidden focus:ring-2 focus:ring-focus-ring dark:focus:ring-focus-ring focus:ring-offset-2",children:[(0,t.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-text-muted group-hover:text-slate-600 dark:group-hover:text-slate-300",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z",clipRule:"evenodd"})})}),l({id:"try_again",defaultMessage:"Try Again"})]})]})]})})]})})}])},53296,e=>{"use strict";var t=e.i(91398),r=e.i(74040),r=r,s=e.i(69322);e.s(["default",0,({messageKey:e,defaultMessage:a,values:i,className:l="",showIcon:n=!0})=>{let{formatMessage:o}=(0,s.useIntl)(),d=o({id:e,defaultMessage:a},i);return d?(0,t.jsxs)("div",{className:`flex items-start space-x-1 text-sm text-text-secondary ${l}`,children:[n&&(0,t.jsx)(r.default,{className:"h-4 w-4 mt-0.5 flex-shrink-0"}),(0,t.jsx)("span",{children:d})]}):null}],53296)},87284,16509,e=>{"use strict";var t=e.i(91398),r=e.i(26019),s=e.i(91788),a=e.i(69322);let i=({src:e,width:t,quality:r=75})=>e?`${e}?w=${t}&q=${r}`:"/no-image.jpg";e.s(["default",0,i],16509);let l=({className:e="w-full h-full",width:r=200,height:s=200})=>(0,t.jsxs)("svg",{width:r,height:s,viewBox:"0 0 200 200",fill:"none",className:e,xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"10",y:"10",width:"180",height:"180",rx:"8",stroke:"currentColor",strokeWidth:"3",strokeDasharray:"8 4",fill:"transparent",className:"text-slate-800 dark:text-slate-400"}),(0,t.jsx)("rect",{x:"40",y:"40",width:"120",height:"80",rx:"4",stroke:"currentColor",strokeWidth:"3",fill:"transparent"}),(0,t.jsx)("path",{d:"M50 100 L70 80 L90 95 L110 75 L130 90 L150 70",stroke:"currentColor",strokeWidth:"3",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("circle",{cx:"130",cy:"55",r:"8",stroke:"currentColor",strokeWidth:"3",fill:"transparent"}),(0,t.jsx)("text",{x:"100",y:"145",textAnchor:"middle",className:"text-text-secondary text-sm font-semibold",fill:"currentColor",children:"No Image"})]});e.s(["default",0,({fallbackSrc:e="",src:n,...o})=>{let[d,u]=(0,s.useState)(n),[c,f]=(0,s.useState)(!1),{formatMessage:m}=(0,a.useIntl)();return c||!d?(0,t.jsx)("div",{className:o.className||"w-full h-full flex items-center justify-center bg-surface",children:(0,t.jsx)(l,{width:o.width||200,height:o.height||200,className:"max-w-full max-h-full"})}):(0,t.jsx)(r.default,{src:d,loader:i,alt:m({id:"image-not-found",defaultMessage:"Image not found"}),...o,onError:()=>{e&&d!==e?u(e):f(!0)}})}],87284)},82078,e=>{"use strict";var t=e.i(91398),r=e.i(44112);e.s(["default",0,({title:e=null,description:s})=>(0,t.jsx)("div",{className:"mb-6 p-4 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg",children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(r.InformationCircleIcon,{className:"w-5 h-5 text-blue-600 dark:text-blue-400 mt-0.5 flex-shrink-0"}),(0,t.jsxs)("div",{children:[e&&(0,t.jsx)("h3",{className:"text-sm font-semibold text-blue-900 dark:text-blue-100 mb-2",children:e}),(0,t.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200 leading-relaxed",children:s})]})]})})])},76069,e=>{"use strict";var t=e.i(91398),r=e.i(81618),s=e.i(56206);e.s(["default",0,({className:e="",containerClassName:a="",Icon:i=null})=>(0,t.jsx)("span",{className:(0,s.default)("text-slate-400",a),children:i||(0,t.jsx)(r.PhotoIcon,{className:(0,s.default)(e)})})])},77043,e=>{"use strict";var t=e.i(91398),r=e.i(56206),s=e.i(69322),a=e.i(87284),i=e.i(76069);e.s(["default",0,({file:e,className:l=""})=>{let{formatMessage:n}=(0,s.useIntl)();return(0,t.jsx)("div",{className:(0,r.default)("h-10 w-10 shrink-0",l),children:e?(0,t.jsx)(a.default,{className:"relative h-10 w-10 rounded-sm",src:e.url,width:100,height:100,alt:n({id:"image_not_available",defaultMessage:"Image not available"})}):(0,t.jsx)(i.default,{})})}])},1504,e=>{"use strict";e.s(["default",0,(e,t,r)=>Object.assign({},...e?.map(e=>({[e[r]]:e[t]}))||[])])},93380,e=>{"use strict";e.s(["default",0,e=>e?e?.username?e.username:e?.profile?.displayName?e?.profile?.displayName:e?.profile?.address?.firstName||e?.profile?.address?.lastName?`${e?.profile?.address?.firstName} ${e?.profile?.address?.lastName}`:e?.name?e.name:e.isGuest?e?.primaryEmail?.address?.split(".")?.[0]:null:null])},1880,e=>{"use strict";e.s(["default",0,(e={})=>{let{_id:t,texts:r}=e||{};return r||t?`${r?.slug?.split("/").join("")||""}_id_${t}`:null},"parseSlug",0,e=>{if(!e)return null;let[t]=e?.split("_id_")||[];return t},"parseUniqueId",0,e=>{if(!e)return null;let t=e?.split("_id_");return t?.pop()}])},34728,e=>{"use strict";var t=e.i(91398),r=e.i(38322);e.s(["default",0,({onOkClick:e,buttonText:s,headerText:a,message:i,icon:l=null})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{children:[l||(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-emerald-100 dark:bg-emerald-900/30",children:(0,t.jsx)(r.CheckIcon,{className:"h-6 w-6 text-emerald-600 dark:text-emerald-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"})}),(0,t.jsxs)("div",{className:"mt-3 text-center sm:mt-5",children:[(0,t.jsx)("h3",{className:"text-lg text-text-primary",id:"modal-title",children:a}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("p",{className:"text-sm text-text-muted",children:i})})]})]}),(0,t.jsx)("div",{className:"mt-5 sm:mt-6",children:(0,t.jsx)("button",{id:"alert_ok",onClick:e,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-accent px-4 py-2 text-base font-medium text-text-on-accent shadow-xs hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 sm:text-sm",children:s})})]})])},75155,e=>{"use strict";var t=e.i(91398),r=e.i(69322),s=e.i(42469);let a={DRAFT:"yellow",ACTIVE:"emerald",DELETED:"amber",null:"yellow",undefined:"yellow"};e.s(["ProductStatusBadge",0,({status:e})=>{let{formatMessage:i}=(0,r.useIntl)();return i({id:"pending",defaultMessage:"PENDING"}),i({id:"confirmed",defaultMessage:"CONFIRMED"}),i({id:"open",defaultMessage:"OPEN"}),i({id:"fulfilled",defaultMessage:"FULFILLED"}),i({id:"rejected",defaultMessage:"REJECTED"}),(0,t.jsx)(s.default,{text:(e=>{switch(e){case"ACTIVE":return i({id:"active",defaultMessage:"Active"});case"DRAFT":default:return i({id:"draft",defaultMessage:"Draft"});case"DELETED":return i({id:"deleted",defaultMessage:"Deleted"})}})(e),color:a[e]||"yellow",square:!0,dotted:!0})}])},38994,62199,14336,e=>{"use strict";var t=e.i(59080),r=e.i(76204);let s=t.gql`
2
- fragment ProductDetailFragment on Product {
3
- _id
4
- sequence
5
- status
6
- created
7
- tags
8
- updated
9
- published
10
-
11
- media {
12
- _id
13
- tags
14
- file {
15
- _id
16
- url
17
- }
18
- }
19
- reviews {
20
- _id
21
- created
22
- author {
23
- _id
24
- username
25
- isGuest
26
- }
27
- rating
28
- title
29
- review
30
- voteCount
31
- ownVotes {
32
- type
33
- timestamp
34
- }
35
- }
36
- siblings {
37
- _id
38
- media {
39
- _id
40
- file {
41
- _id
42
- url
43
- }
44
- }
45
- }
46
- }
47
- `;e.s(["default",0,s],62199);let a=t.gql`
48
- fragment ProductTextsFragment on ProductTexts {
49
- _id
50
- locale
51
- slug
52
- title
53
- subtitle
54
- description
55
- vendor
56
- brand
57
- labels
58
- }
59
- `;e.s(["default",0,a],14336);let i=t.gql`
60
- mutation CreateProduct(
61
- $product: CreateProductInput!
62
- $texts: [ProductTextInput!]
63
- ) {
64
- createProduct(product: $product, texts: $texts) {
65
- ...ProductDetailFragment
66
- ... on SimpleProduct {
67
- texts {
68
- ...ProductTextsFragment
69
- }
70
- }
71
- ... on ConfigurableProduct {
72
- texts {
73
- ...ProductTextsFragment
74
- }
75
- }
76
- ... on BundleProduct {
77
- texts {
78
- ...ProductTextsFragment
79
- }
80
- }
81
- ... on TokenizedProduct {
82
- texts {
83
- ...ProductTextsFragment
84
- }
85
- }
86
- ... on PlanProduct {
87
- texts {
88
- ...ProductTextsFragment
89
- }
90
- }
91
- }
92
- }
93
- ${s}
94
- ${a}
95
- `;e.s(["default",0,()=>{let[e,{data:t,error:s,loading:a}]=(0,r.useMutation)(i);return{createProduct:async({product:{type:t,tags:r},texts:s})=>e({variables:{product:{type:t,tags:r},texts:s},refetchQueries:["Products","ShopStatus","ShopInfo"]}),newProduct:t?.createProduct,error:s,loading:a}}],38994)},92615,e=>{"use strict";var t=e.i(59080),r=e.i(32171);let s=t.gql`
96
- query ProductsCount(
97
- $queryString: String
98
- $tags: [LowerCaseString!]
99
- $slugs: [String!]
100
- $includeDrafts: Boolean
101
- ) {
102
- productsCount(
103
- tags: $tags
104
- slugs: $slugs
105
- includeDrafts: $includeDrafts
106
- queryString: $queryString
107
- )
108
- }
109
- `;e.s(["default",0,({queryString:e="",tags:t=null,includeDrafts:a=!0})=>{let{data:i,loading:l,error:n}=(0,r.useQuery)(s,{errorPolicy:"all",variables:{queryString:e,includeDrafts:a,tags:t}});return{productsCount:i?.productsCount,loading:l,error:n}}])},22e3,e=>{"use strict";var t=e.i(91398),r=e.i(69322),s=e.i(66773),a=e.i(3828),i=e.i(50595),l=e.i(70553),n=e.i(25327),o=e.i(6634),d=e.i(60193),u=e.i(53576),c=e.i(78704),f=e.i(8918),m=e.i(24112),p=e.i(41158),g=e.i(42469),h=e.i(77043),x=e.i(3095),v=e.i(1880),w=e.i(58971),b=e.i(6607),y=e.i(15971),_=e.i(41418),j=e.i(88604),C=e.i(75155);let M=({product:e,showAvatar:i=!1,hideSortIndex:l=!1})=>{let{formatMessage:n}=(0,r.useIntl)(),o=(0,a.useRouter)(),{hasRole:d}=(0,w.default)(),{setModal:u}=(0,b.default)(),{updateProduct:c}=(0,_.default)(),{removeProduct:m}=(0,j.default)(),M=async t=>{t.target.value&&await c({productId:e?._id,product:{sequence:parseInt(t.target.value,10)}})},I=async()=>{await u((0,t.jsx)(y.default,{onCancelClick:async()=>u(""),message:n({id:"delete_product_warning",defaultMessage:"This action will permanently delete this product and all associated data. Are you sure you want to continue?"}),onOkClick:async()=>{u(""),await m({productId:e._id})},okText:n({id:"delete_product",defaultMessage:"Delete Product"})}))},E=`/products?slug=${(0,v.default)(e)}`,S=(0,t.jsx)("span",{className:"text-xs mt-1 px-2 py-0.5 bg-surface-raised text-text-secondary rounded w-fit",children:(e.__typename||e.type||"SimpleProduct").replace("Product","")||"Simple"});return(0,t.jsxs)(f.default.Row,{className:"group",children:[(0,t.jsx)(f.default.Cell,{children:e?.status!=="DELETED"?(0,t.jsxs)(p.default,{href:E,className:"flex items-center text-sm text-text-primary group-hover:text-slate-700 dark:group-hover:text-slate-100",children:[i&&(0,t.jsx)(h.default,{file:e?.media?.length&&e.media[0].file,className:"mr-3"}),(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsx)("div",{className:"flex items-center gap-2",children:e?.texts?.title||(0,t.jsxs)(t.Fragment,{children:[e._id," ",(0,t.jsx)(g.default,{color:"yellow",text:n({id:"title_not_found",defaultMessage:"Title not found"})})]})})})]}):(0,t.jsxs)("div",{className:"flex items-center text-sm text-slate-900",children:[i&&(0,t.jsx)(h.default,{file:e?.media?.length&&e.media[0].file,className:"mr-3"}),(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsx)("div",{className:"flex items-center gap-2",children:e?.texts?.title||(0,t.jsxs)(t.Fragment,{children:[e._id," ",(0,t.jsx)(g.default,{color:"yellow",text:n({id:"title_not_found",defaultMessage:"Title not found"})})]})})})]})}),(0,t.jsx)(f.default.Cell,{className:"whitespace-nowrap px-6",children:S}),(0,t.jsx)(f.default.Cell,{className:"whitespace-nowrap px-6",children:e?.status!=="DELETED"?(0,t.jsx)(p.default,{href:E,className:"block",children:(0,t.jsx)(C.ProductStatusBadge,{status:e?.status})}):(0,t.jsx)(C.ProductStatusBadge,{status:e?.status})}),(0,t.jsx)(f.default.Cell,{children:e?.status!=="DELETED"?(0,t.jsx)(p.default,{href:E,className:"block",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:e.tags?.map(e=>(0,t.jsx)(g.default,{text:e,color:"slate"},e))})}):(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:e.tags?.map(e=>(0,t.jsx)(g.default,{text:e,color:"slate"},e))})}),l?null:(0,t.jsx)(f.default.Cell,{children:(0,t.jsx)("input",{type:"number",id:`${e?._id}-sequence`,className:"text-center w-16 shadow-xs focus:ring-focus-ring dark:bg-slate-800 dark:border-slate-700 focus:border-slate-900 block text-sm border-slate-300 rounded-md mr-2 font-semibold text-text-primary",defaultValue:e?.sequence,disabled:!d(s.IRoleAction.ManageProducts),onBlur:M,onClick:e=>e.stopPropagation(),onFocus:e=>e.stopPropagation()})}),(0,t.jsx)(f.default.Cell,{className:"text-right",children:(0,t.jsx)(x.default,{onEdit:e?.status!=="DELETED"?()=>{e?.status!=="DELETED"&&o.push(`/products?slug=${(0,v.default)(e)}`)}:void 0,onDelete:d(s.IRoleAction.ManageProducts)&&e?.status==="DRAFT"?I:void 0,showEdit:e?.status!=="DELETED",showDelete:d(s.IRoleAction.ManageProducts)&&e?.status==="DRAFT"&&!e?.proxies?.length})})]})};var I=e.i(57561);let E=({showAvatar:e=!0,queryString:s,limit:a,offset:i,tags:l,sortKeys:n,includeDrafts:o,sortable:d})=>{let{formatMessage:p}=(0,r.useIntl)(),{selectedLocale:g}=(0,I.default)(),{products:h,loading:x,loadMore:v,hasMore:w}=(0,m.default)({queryString:s,includeDrafts:o,limit:a,offset:i,tags:l,sort:n,forceLocale:g});return x&&h?.length===0?(0,t.jsx)(u.default,{}):(0,t.jsx)(c.default,{loading:x,hasMore:w,onLoadMore:v,children:(0,t.jsxs)(f.default,{className:"min-w-full ",children:[h?.map(e=>(0,t.jsxs)(f.default.Row,{header:!0,enablesort:d,children:[(0,t.jsx)(f.default.Cell,{children:p({id:"name",defaultMessage:"Name"})}),(0,t.jsx)(f.default.Cell,{sortKey:"type",children:p({id:"type",defaultMessage:"Type"})}),(0,t.jsx)(f.default.Cell,{sortKey:"status",children:p({id:"status",defaultMessage:"Status"})}),(0,t.jsx)(f.default.Cell,{children:p({id:"tags",defaultMessage:"Tags"})}),(0,t.jsx)(f.default.Cell,{sortKey:"sequence",defaultSortDirection:"ASC",children:p({id:"sequence",defaultMessage:"Display Order"})}),(0,t.jsx)(f.default.Cell,{children:" "})]},e._id)),h?.map(r=>(0,t.jsx)(M,{product:r,showAvatar:e},`${r?._id}-body`))]})})};var S=e.i(83147),k=e.i(51128),P=e.i(92615),N=e.i(30311),R=e.i(11056),O=e.i(25093),L=e.i(91788),D=e.i(21623),T=e.i(60513);let V=["_id","sku","baseUnit","sequence","status","tags","updated","published","type"],q=["title","subtitle","description","vendor","brand","labels","slug"],$=["productId","amount","currencyCode","countryCode","isTaxable","isNetPrice","minQuantity"],A=["productId","bundleItemProductId","quantity","configuration"],z=["productId","variationId","key","type"],F=["title","subtitle"],B=["variationId","value"],W=["title","subtitle"];var U=e.i(75284);let Z=({queryString:e,includeDrafts:s,tags:a})=>{let{setModal:i}=(0,b.default)(),{productsCount:l,loading:n}=(0,P.default)({queryString:e,includeDrafts:s,tags:a}),{exportProducts:o,isExporting:d}=(()=>{let{exportCSV:e,isExporting:t}=(0,T.useCSVExport)();return{exportProducts:(0,L.useCallback)(async t=>{await e({type:"PRODUCTS",...t})},[e]),isExporting:t}})(),{formatMessage:u}=(0,r.useIntl)(),c=[{key:"exportProducts",label:u({id:"products",defaultMessage:"Products"})},{key:"exportPrices",label:u({id:"prices",defaultMessage:"Prices"})},{key:"exportBundleItems",label:u({id:"bundle_items",defaultMessage:"Bundle items"})},{key:"exportVariations",label:u({id:"variations",defaultMessage:"Variations"})},{key:"exportVariationOptions",label:u({id:"variation_options",defaultMessage:"Variation options"})}],f=(0,L.useCallback)(async t=>{await o({queryString:e,includeDrafts:s,tags:a,...t}),i(null)},[e,s,a,o,i]);return n?null:(0,t.jsx)(D.default,{onClick:()=>{i((0,t.jsx)(U.default,{options:c,onSubmit:f,loading:d}))},disabled:d||!l,variant:"secondary",text:u(d?{id:"exporting",defaultMessage:"Exporting..."}:{id:"export",defaultMessage:"Export"})})};var H=e.i(78193),G=e.i(22003),Q=e.i(10878);let X=e=>{let t={};return Object.entries(e).forEach(([e,r])=>{if(!e.startsWith("texts."))return;let[,s,a]=e.split(".");t[s]||={},"labels"===a?t[s][a]=r?r.split(";"):[]:t[s][a]=r||""}),t},K=({productsCSV:e,pricesCSV:t,bundleItemsCSV:r,variationOptionsCSV:a,variationsCSV:i},l)=>{let n=[];for(let t of e)Object.values(Q.PRODUCT_TYPES).includes(t?.type)||n.push(l.formatMessage({id:"product_import.validation.invalid_type",defaultMessage:"Invalid product type: {type}"},{type:t.type})),t.sequence||n.push(l.formatMessage({id:"product_import_sequence_required",defaultMessage:"Required field sequence missing"})),t.status&&![s.IProductStatus.Active,s.IProductStatus.Draft,s.IProductStatus.Deleted].includes(t.status)&&n.push(l.formatMessage({id:"product_import_status_invalid",defaultMessage:"Invalid status value given ({status})"},{status:t.status}));for(let e of t)e.productId||n.push(l.formatMessage({id:"product_price_import_product_id_required",defaultMessage:"Required field productId missing"})),e.amount||n.push(l.formatMessage({id:"product_price_import_amount_required",defaultMessage:"Required field amount missing"})),e.countryCode||n.push(l.formatMessage({id:"product_price_import_countryCode_required",defaultMessage:"Required field countryCode missing"})),e.currencyCode||n.push(l.formatMessage({id:"product_price_import_currencyCode_required",defaultMessage:"Required field currencyCode missing"}));for(let e of r)e.productId||n.push(l.formatMessage({id:"product_bundle_import_product_id_required",defaultMessage:"Required field variation productId missing"})),e.bundleItemProductId||n.push(l.formatMessage({id:"product_bundle_import_item_id_required",defaultMessage:"Required field bundleItemProductId missing"}));for(let e of i)e.productId||n.push(l.formatMessage({id:"product_variation_import_product_id_required",defaultMessage:"Required field variation productId missing"})),e.variationId||n.push(l.formatMessage({id:"product_variation_import_variation_id_required",defaultMessage:"Required field variationId missing"})),e.type||n.push(l.formatMessage({id:"product_variation_import_type_required",defaultMessage:"Required field variation type missing"})),e.type&&![s.IProductVariationType.Color,s.IProductVariationType.Text].includes(e.type)&&n.push(l.formatMessage({id:"product_variation_import_invalid_type_required",defaultMessage:"Invalid variation type given ({type})"},{type:e.type}));for(let e of a)e.variationId||n.push(l.formatMessage({id:"product_variation_option_import_variation_id_required",defaultMessage:"Required field variation id missing"})),e.value||n.push(l.formatMessage({id:"product_variation_option_import_value_required",defaultMessage:"Required field variation option value missing"}));return n};var J=e.i(42912),Y=e.i(72552),ee=e.i(16785);let et={productsCSV:V,pricesCSV:$,bundleItemsCSV:A,variationOptionsCSV:B,variationsCSV:z},er=({onImport:e})=>{let s=(0,L.useRef)({}),{formatMessage:a}=(0,r.useIntl)(),{languageDialectList:i}=(0,I.default)(),l=i?.map(e=>e.isoCode)||[],[n,o]=(0,L.useState)({}),[d,u]=(0,L.useState)({productsCSV:[],pricesCSV:[],bundleItemsCSV:[],variationsCSV:[],variationOptionsCSV:[]}),[c,f]=(0,L.useState)(!1),m=[{key:"productsCSV",label:a({id:"product_csv_file",defaultMessage:"Products CSV"})},{key:"pricesCSV",label:a({id:"product_price_csv_file",defaultMessage:"Product prices CSV (Optional)"}),optional:!0},{key:"bundleItemsCSV",label:a({id:"product_bundle_item_csv_file",defaultMessage:"Product bundle items CSV (Optional)"}),optional:!0},{key:"variationsCSV",label:a({id:"product_variations_csv_file",defaultMessage:"Product variations CSV (Optional)"}),optional:!0},{key:"variationOptionsCSV",label:a({id:"product_variation_options_csv_file",defaultMessage:"Product variation options CSV (Optional)"}),optional:!0}],p=async e=>{let t=await e.text();return Y.default.parse(t,{header:!0,skipEmptyLines:!0}).data},g=async(e,t)=>{if(!t)return;let r=await p(t),s=((e,t)=>{if(!t.length)return!1;let r=Object.keys(t[0]),s=et[e].filter(e=>!r.includes(e));return s.length?(o(t=>({...t,[e]:a({id:"csv_missing_fields",defaultMessage:"Missing required columns: {fields}"},{fields:s.join(", ")})})),!1):(o(t=>({...t,[e]:void 0})),!0)})(e,r);u(t=>({...t,[e]:s?r:[]}))},h=async(e,t)=>{let r=e.target.files?.[0];await g(t,r),e.target.value=""},x=(0,L.useCallback)(async()=>{f(!0);try{await e(d)}finally{f(!1)}},[d,e]),v=d.productsCSV.length>0,w=Object.values(n).some(Boolean);return(0,t.jsxs)("div",{className:"sm:max-w-full w-full max-w-xl mx-auto p-6 bg-white border border-gray-200 rounded-lg shadow-md flex flex-col gap-6",children:[(0,t.jsx)("h3",{className:"text-center text-lg font-semibold",children:a({id:"products_import_title",defaultMessage:"Import Products"})}),(0,t.jsx)("p",{className:"text-center text-sm text-gray-600",children:a({id:"product_import_description",defaultMessage:"Select your products CSV and optional CSV files, then click Import."})}),m.map(({key:e,label:r,optional:i})=>(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("input",{ref:t=>{s.current[e]=t??null},type:"file",accept:".csv",onChange:t=>h(t,e),className:"hidden"}),(0,t.jsxs)("div",{className:"flex justify-between items-center gap-2",children:[(0,t.jsx)(D.default,{text:d[e].length?a({id:`${e}_file_selected`,defaultMessage:`${r} Selected`}):a({id:`select_${e}`,defaultMessage:`Select ${r}`}),onClick:()=>s.current[e]?.click(),variant:"secondary",className:"flex-1",disabled:c||!v&&i}),(0,t.jsx)("button",{type:"button",className:"text-xs text-blue-600 hover:underline",title:"Download a CSV template with required columns",onClick:()=>((e,t,r=[])=>{let s=((e,t=[])=>{if("productsCSV"===e)return[...V,...t.flatMap(e=>q.map(t=>`texts.${e}.${t}`)),"supply.weightInGram","supply.heightInMillimeters","supply.lengthInMillimeters","supply.widthInMillimeters"];if("bundleItemsCSV"===e)return[...A];if("pricesCSV"===e)return[...$];if("variationsCSV"===e)return[...z,...t.flatMap(e=>F.map(t=>`texts.${e}.${t}`))];if("variationOptionsCSV"===e)return[...B,...t.flatMap(e=>W.map(t=>`texts.${e}.${t}`))];return[]})(e,r).join(",");(0,ee.downloadCSV)(s,t)})(e,`${e}_template.csv`,l),children:a({id:"download_csv_template",defaultMessage:"Download template"})})]}),n[e]&&(0,t.jsxs)("p",{className:"text-red-600 text-xs flex items-center gap-1",children:["⚠ ",n[e]]})]},e)),(0,t.jsx)(D.default,{text:c?"Importing…":"Import",onClick:x,disabled:c||!v||w,variant:"primary",className:"w-full flex justify-center items-center gap-2",children:c&&(0,t.jsx)("span",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"})}),v&&!w&&(0,t.jsx)("p",{className:"text-center text-xs text-gray-500",children:a({id:"ready_to_import",defaultMessage:"Ready to import {products} products{prices}{bundleItems}{variations}{variationOptions}."},{products:d.productsCSV.length,prices:d.pricesCSV.length?` with ${d.pricesCSV.length} prices`:"",bundleItems:d.bundleItemsCSV.length?` with ${d.bundleItemsCSV.length} bundle items`:"",variations:d.variationsCSV.length?` with ${d.variationsCSV.length} variations`:"",variationOptions:d.variationOptionsCSV.length?` with ${d.variationOptionsCSV.length} variation options`:""})})]})};var es=e.i(28401);let ea=()=>{let{formatMessage:e}=(0,r.useIntl)(),{hasRole:a}=(0,w.default)(),{setModal:i}=(0,b.default)(),{prepareProductImport:l}={prepareProductImport:async({productsCSV:e,pricesCSV:t,bundleItemsCSV:r,variationsCSV:s,variationOptionsCSV:a})=>(e||[]).map(e=>{let i,l,n,o,d,u,c,f=(t||[]).filter(t=>t.productId===e._id),m=(r||[]).filter(t=>t.productId===e._id),p=(s||[]).filter(t=>t.productId===e._id);return f.length&&(i=f.map(({amount:e,minQuantity:t,isNetPrice:r,isTaxable:s,...a})=>({...a,amount:parseInt(e)??0,isNetPrice:"true"===r,isTaxable:"true"===s,minQuantity:parseInt(t,10)||0}))),m.length&&(l=m.map(({bundleItemProductId:e,quantity:t,configuration:r})=>({productId:e,quantity:Number(t||1),configuration:(r||"").split(";").map(e=>{let[t,r]=e.split(":");return{key:t,value:r}})}))),p.length&&(n=p.map(({variationId:e,type:t,key:r,configuration:s,...i})=>({variationId:e,key:r,type:t,content:X(i),options:(a||[]).filter(t=>t.variationId===e).map(e=>({value:e?.value??"",content:X(e)}))}))),(({variations:e=[],...t})=>{let r=new Date;return{entity:"PRODUCT",operation:"CREATE",payload:{_id:t._id,specification:{...t,published:"ACTIVE"===t.status?r:null,status:"ACTIVE"===t.status?"ACTIVE":null,warehousing:{sku:t.sku,baseUnit:t.baseUnit},commerce:t.commerce?{pricing:t.commerce}:void 0,bundleItems:t?.bundleItems},variations:e?.length?e:void 0}}})({...(o=e["supply.weightInGram"]||e["supply.heightInMillimeters"]||e["supply.lengthInMillimeters"]||e["supply.widthInMillimeters"],d=e.sku||e.baseUnit,u=X(e),c=(0,G.default)(e.meta),{_id:e._id||void 0,warehousing:d?{sku:e.sku||void 0,baseUnit:e.baseUnit||void 0}:void 0,sequence:"string"==typeof e.sequence?parseInt(e.sequence||"0",10):e.sequence||0,status:e.status||null,type:e.type,tags:e.tags?e.tags.split(";"):[],updated:e.updated||void 0,published:e.published||void 0,content:u,supply:o?{weightInGram:e["supply.weightInGram"]?parseFloat(e["supply.weightInGram"])??void 0:void 0,heightInMillimeters:e["supply.heightInMillimeters"]?parseFloat(e["supply.heightInMillimeters"])??void 0:void 0,lengthInMillimeters:e["supply.lengthInMillimeters"]?parseFloat(e["supply.lengthInMillimeters"])??void 0:void 0,widthInMillimeters:e["supply.widthInMillimeters"]?parseFloat(e["supply.widthInMillimeters"])??void 0:void 0}:void 0,meta:c}),commerce:i,bundleItems:l,variations:n})})},{isImporting:n,importItems:o}=(0,H.useCSVImport)({validate:K,process:l});return a(s.IRoleAction.ManageProducts)?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(D.default,{onClick:()=>{i((0,t.jsx)(er,{onImport:async e=>{let r=await o(e);i(null),(0,es.toast)((0,t.jsx)(J.default,{result:r,entityName:"products"}))}}))},disabled:n,variant:"secondary",text:e(n?{id:"importing",defaultMessage:"Importing..."}:{id:"import",defaultMessage:"Import"})})}):null};e.s(["default",0,()=>{let{formatMessage:e}=(0,r.useIntl)(),{shopInfo:u}=(0,I.default)(),{query:c,push:f}=(0,a.useRouter)(),m=parseInt(c?.limit,10)||d.DefaultLimit,p=parseInt(c?.skip,10)||0,g=c?.includeDrafts==="true"||!c?.includeDrafts,h=c.tags?.split(",")||void 0,x=c.sort||"",{hasRole:v}=(0,w.default)(),{queryString:b,slug:y,..._}=c,j=(0,S.convertSortFieldsToQueryFormat)(x),{productsCount:C}=(0,P.default)({queryString:b,includeDrafts:g,tags:h});if(y)return(0,t.jsx)(N.default,{slug:y});let M=1===C?e({id:"products_header",defaultMessage:"1 Product"}):e({id:"products_count_header",defaultMessage:"{count} Products"},{count:(0,t.jsx)(O.default,{value:C??0})}),L=(u?.adminUiConfig?.productTags||[]).map(e=>({value:e,label:e}));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.default,{}),(0,t.jsx)("div",{className:"w-full",children:(0,t.jsxs)(n.default,{title:e({id:"product_page_title",defaultMessage:"{count, plural, one {# Product} other {# Products}}"},{count:C}),headerText:M,addPath:v(s.IRoleAction.ManageProducts)&&"/products/new",addButtonText:e({id:"add_product",defaultMessage:"Add Product"}),children:[(0,t.jsx)(Z,{includeDrafts:g,queryString:b,tags:h}),(0,t.jsx)(ea,{})]})}),(0,t.jsxs)("div",{className:"min-w-full overflow-x-auto px-1",children:[(0,t.jsx)(l.default,{children:(0,t.jsx)(o.default,{toggleText:e({id:"include_drafts",defaultMessage:"Include drafts"}),toggleKey:"includeDrafts",active:g})}),(0,t.jsx)(k.default,{onSearchChange:e=>{let{skip:t,...r}=_;e?f({query:(0,S.normalizeQuery)(r,e,"queryString")}):f({query:(0,S.normalizeQuery)(_)})},defaultSearchValue:b,showTagFilter:!0,availableTagOptions:L,children:(0,t.jsx)(R.default,{onlyFull:!0,children:(0,t.jsx)(E,{sortable:!0,queryString:b,includeDrafts:g,limit:m,offset:p,tags:h,sortKeys:j})})})]})]})}],22e3)},85741,(e,t,r)=>{let s="/products";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(22e3)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([s])})},75565,51358,36832,e=>{"use strict";var t=e.i(91788),r=e.i(15067);e.s(["useEventListener",0,function(e,s,a,i){let l=(0,r.useLatestValue)(a);(0,t.useEffect)(()=>{function t(e){l.current(e)}return(e=null!=e?e:window).addEventListener(s,t,i),()=>e.removeEventListener(s,t,i)},[e,s,i])}],75565);var s=e.i(93481);e.s(["useWatch",0,function(e,r){let a=(0,t.useRef)([]),i=(0,s.useEvent)(e);(0,t.useEffect)(()=>{let e=[...a.current];for(let[t,s]of r.entries())if(a.current[t]!==s){let t=i(r,e);return a.current=r,t}},[i,...r])}],51358);var a=e.i(55367),i=e.i(65383);let l=[];function n(){"loading"!==document.readyState&&((()=>{function e(e){if(!a.isHTMLorSVGElement(e.target)||e.target===document.body||l[0]===e.target)return;let t=e.target;t=t.closest(i.focusableSelector),l.unshift(null!=t?t:e.target),(l=l.filter(e=>null!=e&&e.isConnected)).splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})(),document.removeEventListener("DOMContentLoaded",n))}"u">typeof window&&"u">typeof document&&(document.addEventListener("DOMContentLoaded",n),n()),e.s(["history",()=>l],36832)},49740,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:"M6.5 3c-1.051 0-2.093.04-3.125.117A1.49 1.49 0 0 0 2 4.607V10.5h9V4.606c0-.771-.59-1.43-1.375-1.489A41.568 41.568 0 0 0 6.5 3ZM2 12v2.5A1.5 1.5 0 0 0 3.5 16h.041a3 3 0 0 1 5.918 0h.791a.75.75 0 0 0 .75-.75V12H2Z"}),t.createElement("path",{d:"M6.5 18a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM13.25 5a.75.75 0 0 0-.75.75v8.514a3.001 3.001 0 0 1 4.893 1.44c.37-.275.61-.719.595-1.227a24.905 24.905 0 0 0-1.784-8.549A1.486 1.486 0 0 0 14.823 5H13.25ZM14.5 18a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}))});e.s(["TruckIcon",0,r],49740)},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])},39775,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:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))});e.s(["default",0,r])},44112,e=>{"use strict";var t=e.i(39775);e.s(["InformationCircleIcon",()=>t.default])},43119,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 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))});e.s(["default",0,r])},81618,e=>{"use strict";var t=e.i(43119);e.s(["PhotoIcon",()=>t.default])},74040,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.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))});e.s(["default",0,r])},69059,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.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))});e.s(["default",0,r])},57748,e=>{"use strict";var t=e.i(69059);e.s(["SparklesIcon",()=>t.default])},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)},37224,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:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))});e.s(["default",0,r])},67912,e=>{"use strict";var t=e.i(37224);e.s(["UserCircleIcon",()=>t.default])},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)({}),l=(0,t.forwardRef)(({color:e,size:s,strokeWidth:l,absoluteStrokeWidth:n,className:o="",children:d,iconNode:u,...c},f)=>{let{size:m=24,strokeWidth:p=2,absoluteStrokeWidth:g=!1,color:h="currentColor",className:x=""}=(0,t.useContext)(i)??{},v=n??g?24*Number(l??p)/Number(s??m):l??p;return(0,t.createElement)("svg",{ref:f,...a,width:s??m??a.width,height:s??m??a.height,stroke:e??h,strokeWidth:v,className:r("lucide",x,o),...!d&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...u.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,...n},o)=>(0,t.createElement)(l,{ref:o,iconNode:a,className:r(`lucide-${s(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...n}));return i.displayName=s(e),i}],5270)},49194,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return y}});let s=e.r(31640),a=e.r(71650),i=e.r(91398),l=a._(e.r(91788)),n=s._(e.r(30943)),o=s._(e.r(80963)),d=e.r(66785),u=e.r(15125),c=e.r(13521),f=e.r(25479),m=s._(e.r(3866)),p=e.r(63230),g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function h(e,t,r,s,a,i,l){let n=e?.src;e&&e["data-loaded-src"]!==n&&(e["data-loaded-src"]=n,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&a(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let s=!1,a=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>s,isPropagationStopped:()=>a,persist:()=>{},preventDefault:()=>{s=!0,t.preventDefault()},stopPropagation:()=>{a=!0,t.stopPropagation()}})}s?.current&&s.current(e)}}))}function x(e){return l.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let v="u"<typeof window?l.useEffect:l.useLayoutEffect,w=(0,l.forwardRef)(({src:e,srcSet:t,sizes:r,height:s,width:a,decoding:n,className:o,style:d,fetchPriority:u,placeholder:c,loading:f,unoptimized:m,fill:g,onLoadRef:w,onLoadingCompleteRef:b,setBlurComplete:y,setShowAltText:_,sizesInput:j,onLoad:C,onError:M,...I},E)=>{let S=(0,l.useRef)(!1),k=(0,l.useRef)(null);v(()=>{let{current:e}=S,{current:t}=k;e||null===t||(M&&(t.src=t.src),t.complete&&h(t,c,w,b,y,m,j),S.current=!0)},[e,c,w,b,M,m,j]);let P=(0,p.useMergedRef)(E,k);return(0,i.jsx)("img",{...I,...x(u),loading:f,width:a,height:s,decoding:n,"data-nimg":g?"fill":"1",className:o,style:d,sizes:r,srcSet:t,src:e,ref:P,onLoad:e=>{h(e.currentTarget,c,w,b,y,m,j)},onError:e=>{_(!0),"empty"!==c&&y(!0),M&&M(e)}})});function b({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...x(t.fetchPriority)};return e&&n.default.preload?(n.default.preload(t.src,r),null):(0,i.jsx)(o.default,{children:(0,i.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let y=(0,l.forwardRef)((e,t)=>{let r=(0,l.useContext)(f.RouterContext),s=(0,l.useContext)(c.ImageConfigContext),a=(0,l.useMemo)(()=>{let e=g||s||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t),a=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:a,localPatterns:"u"<typeof window?s?.localPatterns:e.localPatterns}},[s]),{onLoad:n,onLoadingComplete:o}=e,p=(0,l.useRef)(n);(0,l.useEffect)(()=>{p.current=n},[n]);let h=(0,l.useRef)(o);(0,l.useEffect)(()=>{h.current=o},[o]);let[x,v]=(0,l.useState)(!1),[y,_]=(0,l.useState)(!1),{props:j,meta:C}=(0,d.getImgProps)(e,{defaultLoader:m.default,imgConf:a,blurComplete:x,showAltText:y});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w,{...j,unoptimized:C.unoptimized,placeholder:C.placeholder,fill:C.fill,onLoadRef:p,onLoadingCompleteRef:h,setBlurComplete:v,setShowAltText:_,sizesInput:e.sizes,ref:t}),C.preload?(0,i.jsx)(b,{isAppRouter:!r,imgAttributes:j}):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)},88961,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0});var s={default:function(){return u},getImageProps:function(){return d}};for(var a in s)Object.defineProperty(r,a,{enumerable:!0,get:s[a]});let i=e.r(31640),l=e.r(66785),n=e.r(49194),o=i._(e.r(3866));function d(e){let{props:t}=(0,l.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let u=n.Image},26019,(e,t,r)=>{t.exports=e.r(88961)},68816,(e,t,r)=>{"use strict";function s(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,t.qualities[0]):r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findClosestQuality",{enumerable:!0,get:function(){return s}})},3866,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return l}});let s=e.r(68816),a=e.r(20262);function i({config:e,src:t,width:r,quality:l}){let n=(0,a.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//"))if(t.includes("/_next/static/immutable")&&!(0,a.getAssetToken)())n=void 0;else{let e=t.indexOf("?");if(-1!==e){let r=new URLSearchParams(t.slice(e+1)),s=r.get("dpl");if(s){n=s,r.delete("dpl");let a=r.toString();t=t.slice(0,e)+(a?"?"+a:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
110
- Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let o=(0,s.findClosestQuality)(l,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${o}${t.startsWith("/")&&n?`&dpl=${n}`:""}`}i.__next_img_default=!0;let l=i},66785,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return d}});let s=e.r(20262),a=e.r(55034),i=e.r(15125),l=["-moz-initial","fill","none","scale-down",void 0];function n(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function d({src:e,sizes:t,unoptimized:r=!1,priority:u=!1,preload:c=!1,loading:f,className:m,quality:p,width:g,height:h,fill:x=!1,style:v,overrideSrc:w,onLoad:b,onLoadingComplete:y,placeholder:_="empty",blurDataURL:j,fetchPriority:C,decoding:M="async",layout:I,objectFit:E,objectPosition:S,lazyBoundary:k,lazyRoot:P,...N},R){var O;let L,D,T,{imgConf:V,showAltText:q,blurComplete:$,defaultLoader:A}=R,z=V||i.imageConfigDefault;if("allSizes"in z)L=z;else{let e=[...z.deviceSizes,...z.imageSizes].sort((e,t)=>e-t),t=z.deviceSizes.sort((e,t)=>e-t),r=z.qualities?.sort((e,t)=>e-t);L={...z,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===A)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let F=N.loader||A;delete N.loader,delete N.srcSet;let B="__next_img_default"in F;if(B){if("custom"===L.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
111
- Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=F;F=t=>{let{config:r,...s}=t;return e(s)}}if(I){"fill"===I&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[I];e&&(v={...v,...e});let r={responsive:"100vw",fill:"100vw"}[I];r&&!t&&(t=r)}let W="",U=o(g),Z=o(h);if((O=e)&&"object"==typeof O&&(n(O)||void 0!==O.src)){let t=n(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(D=t.blurWidth,T=t.blurHeight,j=j||t.blurDataURL,W=t.src,!x)if(U||Z){if(U&&!Z){let e=U/t.width;Z=Math.round(t.height*e)}else if(!U&&Z){let e=Z/t.height;U=Math.round(t.width*e)}}else U=t.width,Z=t.height}let H=!u&&!c&&("lazy"===f||void 0===f);(!(e="string"==typeof e?e:W)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,H=!1),L.unoptimized&&(r=!0),B&&!L.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let G=o(p),Q=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:E,objectPosition:S}:{},q?{}:{color:"transparent"},v),X=$||"empty"===_?null:"blur"===_?`url("data:image/svg+xml;charset=utf-8,${(0,a.getImageBlurSvg)({widthInt:U,heightInt:Z,blurWidth:D,blurHeight:T,blurDataURL:j||"",objectFit:Q.objectFit})}")`:`url("${_}")`,K=l.includes(Q.objectFit)?"fill"===Q.objectFit?"100% 100%":"cover":Q.objectFit,J=X?{backgroundSize:K,backgroundPosition:Q.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:X}:{},Y=function({config:e,src:t,unoptimized:r,width:a,quality:i,sizes:l,loader:n}){if(r){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,s.getDeploymentId)();if(t.includes("/_next/static/immutable")&&!(0,s.getAssetToken)())e=void 0;else if(e){let r=t.indexOf("?");if(-1!==r){let s=new URLSearchParams(t.slice(r+1));s.get("dpl")||(s.append("dpl",e),t=t.slice(0,r)+"?"+s.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:o,kind:d}=function({deviceSizes:e,allSizes:t},r,s){if(s){let r=/(^|\s)(1?\d?\d)vw/g,a=[];for(let e;e=r.exec(s);)a.push(parseInt(e[2]));if(a.length){let r=.01*Math.min(...a);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,a,l),u=o.length-1;return{sizes:l||"w"!==d?l:"100vw",srcSet:o.map((r,s)=>`${n({config:e,src:t,quality:i,width:r})} ${"w"===d?r:s+1}${d}`).join(", "),src:n({config:e,src:t,quality:i,width:o[u]})}}({config:L,src:e,unoptimized:r,width:U,quality:G,sizes:t,loader:F}),ee=H?"lazy":f;return{props:{...N,loading:ee,fetchPriority:C,width:U,height:Z,decoding:M,className:m,style:{...Q,...J},sizes:Y.sizes,srcSet:Y.srcSet,src:w||Y.src},meta:{unoptimized:r,preload:c||u,placeholder:_,fill:x}}}},55034,(e,t,r)=>{"use strict";function s({widthInt:e,heightInt:t,blurWidth:r,blurHeight:a,blurDataURL:i,objectFit:l}){let n=r?40*r:e,o=a?40*a:t,d=n&&o?`viewBox='0 0 ${n} ${o}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${d}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${d?"none":"contain"===l?"xMidYMid":"cover"===l?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${i}'/%3E%3C/svg%3E`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return s}})},13521,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return i}});let s=e.r(31640)._(e.r(91788)),a=e.r(15125),i=s.default.createContext(a.imageConfigDefault)},15125,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={VALID_LOADERS:function(){return i},imageConfigDefault:function(){return l}};for(var a in s)Object.defineProperty(r,a,{enumerable:!0,get:s[a]});let i=["default","imgix","cloudinary","akamai","custom"],l={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}}]);