@unchainedshop/admin-ui 4.8.34 → 4.9.1

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 (330) hide show
  1. package/out/403/index.html +3 -3
  2. package/out/404/index.html +3 -3
  3. package/out/404.html +3 -3
  4. package/out/423/index.html +3 -3
  5. package/out/500/index.html +3 -3
  6. package/out/_next/static/3N8lTawkhD5WNCBa3Xrre/_buildManifest.js +258 -0
  7. package/out/_next/static/chunks/{3hubf9lb56zls.js → 0-66i4h-noxvn.js} +1 -1
  8. package/out/_next/static/chunks/0-wbl3cr3959x.js +1 -0
  9. package/out/_next/static/chunks/01bmb-z2nror5.js +63 -0
  10. package/out/_next/static/chunks/01ehk69jm7o3h.js +1 -0
  11. package/out/_next/static/chunks/01v4zuf_1s632.js +24 -0
  12. package/out/_next/static/chunks/{35odkwyh-md-p.js → 02bw09719wk6m.js} +2 -2
  13. package/out/_next/static/chunks/{37j2g662wreov.js → 04u9l5z90u8zc.js} +1 -1
  14. package/out/_next/static/chunks/{29fdom9djvjop.js → 05kae8xt4d-mt.js} +3 -3
  15. package/out/_next/static/chunks/{181zsbok_ljo_.js → 060-0-y0yq4tn.js} +1 -1
  16. package/out/_next/static/chunks/06umepciqel5y.js +15 -0
  17. package/out/_next/static/chunks/{0e4nzgbtw6x_d.js → 07oa-1j75vunn.js} +2 -2
  18. package/out/_next/static/chunks/07qh9c3qklj41.js +3 -0
  19. package/out/_next/static/chunks/08aonh4sng6e2.js +7 -0
  20. package/out/_next/static/chunks/08u8uu0r0k0o9.js +9 -0
  21. package/out/_next/static/chunks/096x-m7s73l-c.js +1 -0
  22. package/out/_next/static/chunks/{1p3agrt0e0t9t.js → 0ab6zl-u7ml1p.js} +2 -2
  23. package/out/_next/static/chunks/0amj69l-d5-85.js +1 -0
  24. package/out/_next/static/chunks/{1edk56b1rx05q.js → 0bvh9mjjgn_w3.js} +1 -1
  25. package/out/_next/static/chunks/0crno_6ew111i.js +8 -0
  26. package/out/_next/static/chunks/{1nikeez809jr8.js → 0fogiqvh9bznp.js} +2 -2
  27. package/out/_next/static/chunks/0g1uyaoneybnf.js +41 -0
  28. package/out/_next/static/chunks/0h373kx_wlwzy.js +1 -0
  29. package/out/_next/static/chunks/{3vf-3rhaiq_n1.js → 0h7smollos00x.js} +2 -2
  30. package/out/_next/static/chunks/{1cz2fp89ssu5d.js → 0hq9p72y7ki0h.js} +1 -1
  31. package/out/_next/static/chunks/0hqvf-b6yry5-.js +12 -0
  32. package/out/_next/static/chunks/0ikig1vazlo5p.js +1 -0
  33. package/out/_next/static/chunks/{0af-w950yl0l5.js → 0jol393fjamwq.js} +3 -3
  34. package/out/_next/static/chunks/0jr0_6oupairk.js +13 -0
  35. package/out/_next/static/chunks/{1y0mbad52vao6.js → 0m006z-rbif-h.js} +2 -2
  36. package/out/_next/static/chunks/0n3ixknyc6_ma.js +1 -0
  37. package/out/_next/static/chunks/0nsa2b75vwe9r.js +43 -0
  38. package/out/_next/static/chunks/0oeas4d1fnzbb.js +36 -0
  39. package/out/_next/static/chunks/0q7n10ncl7jak.js +119 -0
  40. package/out/_next/static/chunks/{0mavm6oemhb-d.js → 0qyx2854lfah9.js} +3 -3
  41. package/out/_next/static/chunks/{2sc_zg0bvlmak.js → 0rjrvdq5w-984.js} +2 -2
  42. package/out/_next/static/chunks/{2i07f6t3xq708.js → 0tavmhzr7m3u9.js} +2 -2
  43. package/out/_next/static/chunks/0tp8_k14lgo7i.js +12 -0
  44. package/out/_next/static/chunks/{3ae7hwg50q67p.js → 0u290yfuv_u2_.js} +1 -1
  45. package/out/_next/static/chunks/{0sv5w2_cae8tj.js → 0v2v5x8dtpfh6.js} +3 -3
  46. package/out/_next/static/chunks/0var4u7x1jrna.js +1 -0
  47. package/out/_next/static/chunks/0vik72soxnie0.js +32 -0
  48. package/out/_next/static/chunks/{0dzn-wes7gjdt.js → 0xry2ss7g-gk_.js} +1 -1
  49. package/out/_next/static/chunks/0xywzizg7ntfd.js +44 -0
  50. package/out/_next/static/chunks/0y3lr_rwmezii.js +1 -0
  51. package/out/_next/static/chunks/0zvpipo0q47xl.js +15 -0
  52. package/out/_next/static/chunks/{1t5wlk2j9d4ss.js → 1---h4b693b81.js} +1 -1
  53. package/out/_next/static/chunks/1-jp7as2d7zp6.js +44 -0
  54. package/out/_next/static/chunks/10jrq6wew06i6.js +23 -0
  55. package/out/_next/static/chunks/{25_kx8fsd5k0d.js → 1164-c5abnfyy.js} +2 -2
  56. package/out/_next/static/chunks/{2893194r7ays6.js → 119d8cbr8mij2.js} +2 -2
  57. package/out/_next/static/chunks/122a0xxhrak7b.js +1 -0
  58. package/out/_next/static/chunks/{3ciuktttw5i71.js → 129-110-fx4g2.js} +3 -3
  59. package/out/_next/static/chunks/12hh2h53sa5vl.js +33 -0
  60. package/out/_next/static/chunks/{1t8jj0-6g8uyd.js → 12yd8t4k6c0t1.js} +1 -1
  61. package/out/_next/static/chunks/14qvgxj89rj3h.js +16 -0
  62. package/out/_next/static/chunks/{3ljqspad_536i.js → 179acu8_sgizp.js} +1 -1
  63. package/out/_next/static/chunks/{0l1xycyhdztmy.js → 1a120nyn1xssj.js} +1 -1
  64. package/out/_next/static/chunks/{3t1q9dc-nlr3j.js → 1ata93ftwo5e5.js} +1 -1
  65. package/out/_next/static/chunks/{1pcrg5m_9agof.js → 1ca5de-nq28g5.js} +2 -2
  66. package/out/_next/static/chunks/{2a1m9ia2zp2t9.js → 1cm161_p0htmv.js} +2 -2
  67. package/out/_next/static/chunks/{2wg_0x11ef6uc.js → 1cp5rjbtbj7im.js} +2 -2
  68. package/out/_next/static/chunks/{0iliy1guwadr4.js → 1d-xju_35oiky.js} +3 -3
  69. package/out/_next/static/chunks/{3ylglplnmhho2.js → 1d2l6vs2y96io.js} +2 -2
  70. package/out/_next/static/chunks/1dl-ild2tc5fi.js +10 -0
  71. package/out/_next/static/chunks/{0buyef0vid-ym.js → 1eh2ap8tgodgp.js} +3 -3
  72. package/out/_next/static/chunks/{3z51ql4pljujr.js → 1eq7kau-2figm.js} +2 -2
  73. package/out/_next/static/chunks/{1pbfjibxvspoj.js → 1h9sc720aq7zm.js} +2 -2
  74. package/out/_next/static/chunks/1igwz8p4ycvw8.js +68 -0
  75. package/out/_next/static/chunks/{3180oblgqnad5.js → 1kti-rwl34_4h.js} +5 -5
  76. package/out/_next/static/chunks/{3d0cucf7-qlz9.js → 1l_4m35yky3vy.js} +2 -2
  77. package/out/_next/static/chunks/{09kihj6ay6mqn.js → 1n3dc-2mpab65.js} +2 -2
  78. package/out/_next/static/chunks/1nmwo96drt-k-.js +18 -0
  79. package/out/_next/static/chunks/1o2f_mtcw23zu.js +7 -0
  80. package/out/_next/static/chunks/1p6gh68l05_ak.js +1 -0
  81. package/out/_next/static/chunks/1sf71q2hkno8s.js +43 -0
  82. package/out/_next/static/chunks/{2lh-lsn2en0pp.js → 1u0hy0trwf8uk.js} +1 -1
  83. package/out/_next/static/chunks/{3d2mjl6ls12h_.js → 1w22i299136_d.js} +2 -2
  84. package/out/_next/static/chunks/{1gyt_0aw92ysk.js → 1w69w7bav5fw7.js} +2 -2
  85. package/out/_next/static/chunks/{0qkdih-hi6c2m.js → 1xjtni6_z8nxp.js} +2 -2
  86. package/out/_next/static/chunks/1y-db7_k0jgmb.js +1 -0
  87. package/out/_next/static/chunks/1y7wv_pb43doo.js +31 -0
  88. package/out/_next/static/chunks/1y84xua0xgwrn.js +39 -0
  89. package/out/_next/static/chunks/1yqexzm6_8pjh.js +71 -0
  90. package/out/_next/static/chunks/1zsrg53se30e4.js +7 -0
  91. package/out/_next/static/chunks/2-e86kt6vo58k.js +24 -0
  92. package/out/_next/static/chunks/2-lj_k3ewua_k.js +71 -0
  93. package/out/_next/static/chunks/2-omz_z29hp_j.js +1 -0
  94. package/out/_next/static/chunks/20f2gs8iua6fk.js +1 -0
  95. package/out/_next/static/chunks/{30lpu8mp25ag1.js → 21hoklicpietg.js} +2 -2
  96. package/out/_next/static/chunks/{40trlm34cnu6v.js → 22kqizuxl67c-.js} +1 -1
  97. package/out/_next/static/chunks/259obwu0l4d7_.js +8 -0
  98. package/out/_next/static/chunks/{13bcbgywansr-.js → 25k-q1asg1of_.js} +3 -3
  99. package/out/_next/static/chunks/28cyd6sk-kr-8.js +8 -0
  100. package/out/_next/static/chunks/{0raj1enjck-ex.js → 29j-tq9ymqima.js} +1 -1
  101. package/out/_next/static/chunks/{27h86ht8kvqop.js → 29lz37yh8ev4g.js} +5 -5
  102. package/out/_next/static/chunks/29qzk6rf1oo1g.js +8 -0
  103. package/out/_next/static/chunks/{0_m0oaoy22un6.js → 2_0nlvri-u3yb.js} +2 -2
  104. package/out/_next/static/chunks/{0duy5y86n4tl3.js → 2_ebmmbmnfung.js} +2 -2
  105. package/out/_next/static/chunks/2_nlmvpwjvbuc.js +1 -0
  106. package/out/_next/static/chunks/2abvgs_fkmp8g.js +12 -0
  107. package/out/_next/static/chunks/2ad3aff-kd860.js +16 -0
  108. package/out/_next/static/chunks/2asfqwl1f6ptd.js +71 -0
  109. package/out/_next/static/chunks/2bo7flfdpsojx.js +1 -0
  110. package/out/_next/static/chunks/2c3pj-ifdt9sv.js +8 -0
  111. package/out/_next/static/chunks/{2w_0wk23uirx6.js → 2dem0g4wrt39t.js} +4 -4
  112. package/out/_next/static/chunks/{343n05fzlb2an.js → 2dg0lloufpbdb.js} +3 -3
  113. package/out/_next/static/chunks/2e-u5srw2p0n6.js +23 -0
  114. package/out/_next/static/chunks/{2eac98hmhj8tp.js → 2gfl5yx5-dzk7.js} +2 -2
  115. package/out/_next/static/chunks/{1aojv48cs6ufj.js → 2gqvhjmjfypz9.js} +2 -2
  116. package/out/_next/static/chunks/2hqwx9e8xxk58.js +1 -0
  117. package/out/_next/static/chunks/2i5k6tlwd58hp.js +1 -0
  118. package/out/_next/static/chunks/2jro0zgoal0kz.js +39 -0
  119. package/out/_next/static/chunks/2khmu80rhpzi0.js +7 -0
  120. package/out/_next/static/chunks/{0ah2m5cl87avs.js → 2mohqnh8393k0.js} +2 -2
  121. package/out/_next/static/chunks/{1ew4i-mm087xs.js → 2ozm0eim2f3sc.js} +1 -1
  122. package/out/_next/static/chunks/{26wuxv_gsk3jb.js → 2pass0agqwhhu.js} +1 -1
  123. package/out/_next/static/chunks/{011h6mc3kuxq9.js → 2q16yoj85f5--.js} +3 -3
  124. package/out/_next/static/chunks/{2oyujmi3aqs6f.js → 2qgzju2ps7tn2.js} +2 -2
  125. package/out/_next/static/chunks/2qmtn9qs15pe6.js +23 -0
  126. package/out/_next/static/chunks/2starzmj1ng6d.js +13 -0
  127. package/out/_next/static/chunks/2tltorbhbyodj.js +1 -0
  128. package/out/_next/static/chunks/{1uzvaujlk79rn.js → 2u8vf0tm3oweg.js} +2 -2
  129. package/out/_next/static/chunks/2vveotzevnkfp.js +1 -0
  130. package/out/_next/static/chunks/{1inbspyz1wpdj.js → 2xq9wvqdb609r.js} +1 -1
  131. package/out/_next/static/chunks/{2zx42lz8zcp91.js → 2ye-zd_107wh_.js} +2 -2
  132. package/out/_next/static/chunks/{2-2kg667v82ek.js → 2yttr5mp9mh23.js} +4 -4
  133. package/out/_next/static/chunks/{35tgy8og7dw73.js → 2z6e-_lzi04v4.js} +2 -2
  134. package/out/_next/static/chunks/{187p6ryym-x3i.js → 2z_zbj33aeywz.js} +3 -3
  135. package/out/_next/static/chunks/2zq9_3p7cg3wb.js +9 -0
  136. package/out/_next/static/chunks/{19f7gu0kvm7xl.js → 2zuoqtb2013in.js} +3 -3
  137. package/out/_next/static/chunks/302pe6kwodzps.js +31 -0
  138. package/out/_next/static/chunks/30c42kdwlkc30.js +7 -0
  139. package/out/_next/static/chunks/30jqt_vus0ht9.js +1 -0
  140. package/out/_next/static/chunks/30lj8m3h07k4v.js +1 -0
  141. package/out/_next/static/chunks/3328j3xx0enu_.js +1 -0
  142. package/out/_next/static/chunks/339grcmrh2be_.js +1 -0
  143. package/out/_next/static/chunks/{06gyzyq56kw_2.js → 33pzdslirf1vx.js} +2 -2
  144. package/out/_next/static/chunks/33w88h3hbfzbk.js +1 -0
  145. package/out/_next/static/chunks/35wqmtcm47y_w.js +39 -0
  146. package/out/_next/static/chunks/{3_zgl8ng3nj3g.js → 36o0xcj8l-mau.js} +4 -4
  147. package/out/_next/static/chunks/37lm6c8w-c7bs.js +5 -0
  148. package/out/_next/static/chunks/38op2tjm2a38-.js +10 -0
  149. package/out/_next/static/chunks/398z-133dgtem.js +14 -0
  150. package/out/_next/static/chunks/{01rghd4wcj4ex.js → 39_3a5rlqmxjd.js} +2 -2
  151. package/out/_next/static/chunks/3admj5_pwyksw.js +1 -0
  152. package/out/_next/static/chunks/3c7j6t3by9tj7.js +155 -0
  153. package/out/_next/static/chunks/{09irjy-7k1922.js → 3cyj5euwvlu1t.js} +1 -1
  154. package/out/_next/static/chunks/3d8yko5j3oni7.js +100 -0
  155. package/out/_next/static/chunks/3de9en65e-2qx.js +1 -0
  156. package/out/_next/static/chunks/3f_aw3x3h5zrb.js +54 -0
  157. package/out/_next/static/chunks/{2m_p_bx_gsrlf.js → 3fdcfxfy7_ijd.js} +2 -2
  158. package/out/_next/static/chunks/{1g1na7eoafolj.js → 3g-zjnc7_4583.js} +1 -1
  159. package/out/_next/static/chunks/3h22kt6ngwxji.js +12 -0
  160. package/out/_next/static/chunks/{0eb98o1s1ojq7.js → 3id1esivwnwn0.js} +2 -2
  161. package/out/_next/static/chunks/3jy48b2yol0pg.js +28 -0
  162. package/out/_next/static/chunks/{27tf612b6s-45.js → 3k_w16w3eoy6p.js} +3 -3
  163. package/out/_next/static/chunks/{3fvf-l1-bp--9.js → 3ks-dq47wvmwf.js} +2 -2
  164. package/out/_next/static/chunks/{294uscwjocbpf.js → 3lch4_9c5hsbw.js} +2 -2
  165. package/out/_next/static/chunks/{1hvvot0p0442h.js → 3lirqns-0nf0z.js} +2 -2
  166. package/out/_next/static/chunks/{0wd1l2f5cin-0.js → 3o83hyi0qcw6f.js} +1 -1
  167. package/out/_next/static/chunks/3ot810y4c4j5w.js +7 -0
  168. package/out/_next/static/chunks/3q2g8_47dz6k3.js +95 -0
  169. package/out/_next/static/chunks/{181-yaruteuqm.js → 3s0alhaimym6o.js} +2 -2
  170. package/out/_next/static/chunks/{26x7o2gzms54c.js → 3sull2f3eleju.js} +2 -2
  171. package/out/_next/static/chunks/3tzv_v3fezh8p.js +1 -0
  172. package/out/_next/static/chunks/3z14p5htgyrv9.js +7 -0
  173. package/out/_next/static/chunks/40tteajtwsyj8.js +116 -0
  174. package/out/_next/static/chunks/{0hgha-mywwcsd.js → 40vdr7s_c0h75.js} +3 -3
  175. package/out/_next/static/chunks/41184_al87--k.js +46 -0
  176. package/out/_next/static/chunks/{1zfhgsywbsg2e.js → 42iy04ceb32i1.js} +2 -2
  177. package/out/_next/static/chunks/438vgwwahfwwj.js +54 -0
  178. package/out/_next/static/chunks/{0b4rcc2y1ex8j.js → 44l-287ai2bc0.js} +1 -1
  179. package/out/_next/static/chunks/{0uef4ugmc_g10.js → 44p9j-nopxm66.js} +1 -1
  180. package/out/_offline/index.html +3 -3
  181. package/out/account/forgot-password/index.html +3 -3
  182. package/out/account/index.html +3 -3
  183. package/out/assortments/AssortmentDetailPage/index.html +3 -3
  184. package/out/assortments/index.html +3 -3
  185. package/out/assortments/new/index.html +3 -3
  186. package/out/copilot/index.html +3 -3
  187. package/out/country/CountryDetailPage/index.html +3 -3
  188. package/out/country/index.html +3 -3
  189. package/out/country/new/index.html +3 -3
  190. package/out/currency/CurrencyDetailPage/index.html +3 -3
  191. package/out/currency/index.html +3 -3
  192. package/out/currency/new/index.html +3 -3
  193. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -3
  194. package/out/delivery-provider/index.html +3 -3
  195. package/out/delivery-provider/new/index.html +3 -3
  196. package/out/enrollments/EnrollmentDetailPage/index.html +3 -3
  197. package/out/enrollments/index.html +3 -3
  198. package/out/events/EventDetailPage/index.html +3 -3
  199. package/out/events/index.html +3 -3
  200. package/out/exports/index.html +3 -3
  201. package/out/external/index.html +3 -3
  202. package/out/filters/FilterDetailPage/index.html +3 -3
  203. package/out/filters/index.html +3 -3
  204. package/out/filters/new/index.html +3 -3
  205. package/out/index.html +3 -3
  206. package/out/install/index.html +3 -3
  207. package/out/language/LanguageDetailPage/index.html +3 -3
  208. package/out/language/index.html +3 -3
  209. package/out/language/new/index.html +3 -3
  210. package/out/log-in/index.html +3 -3
  211. package/out/orders/OrderDetailPage/index.html +3 -3
  212. package/out/orders/index.html +3 -3
  213. package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -3
  214. package/out/payment-provider/index.html +3 -3
  215. package/out/payment-provider/new/index.html +3 -3
  216. package/out/products/ProductDetailPage/index.html +3 -3
  217. package/out/products/index.html +3 -3
  218. package/out/products/new/index.html +3 -3
  219. package/out/quotations/QuotationDetailPage/index.html +3 -3
  220. package/out/quotations/index.html +3 -3
  221. package/out/reset-password/index.html +3 -3
  222. package/out/sign-up/index.html +3 -3
  223. package/out/styleguide/index.html +3 -3
  224. package/out/tokens/TokenDetailPage/index.html +3 -3
  225. package/out/tokens/index.html +3 -3
  226. package/out/users/UserDetailPage/index.html +3 -3
  227. package/out/users/index.html +3 -3
  228. package/out/users/new/index.html +3 -3
  229. package/out/verify-email/index.html +3 -3
  230. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -3
  231. package/out/warehousing-provider/index.html +3 -3
  232. package/out/warehousing-provider/new/index.html +3 -3
  233. package/out/works/WorkDetailPage/index.html +3 -3
  234. package/out/works/WorkQueueListView/index.html +3 -3
  235. package/out/works/index.html +3 -3
  236. package/out/works/management/index.html +3 -3
  237. package/package.json +26 -26
  238. package/out/_next/static/DUswS2PYjGTW9uUGVJ6xd/_buildManifest.js +0 -258
  239. package/out/_next/static/chunks/0-e21p2v90828.js +0 -23
  240. package/out/_next/static/chunks/0-w25xfpw-_e9.js +0 -44
  241. package/out/_next/static/chunks/01n5rd9ngv-t4.js +0 -1
  242. package/out/_next/static/chunks/03omde6jo6sta.js +0 -1
  243. package/out/_next/static/chunks/06kqbwwnuu3te.js +0 -1
  244. package/out/_next/static/chunks/07i53w2a3x0so.js +0 -1
  245. package/out/_next/static/chunks/09ml8g7-byzio.js +0 -71
  246. package/out/_next/static/chunks/09yk8jmltcqcd.js +0 -5
  247. package/out/_next/static/chunks/0ahfhl4hk0fuj.js +0 -12
  248. package/out/_next/static/chunks/0gow2wyosbjb6.js +0 -71
  249. package/out/_next/static/chunks/0h4ehpg2f7fp2.js +0 -46
  250. package/out/_next/static/chunks/0lh8xbz1qulcr.js +0 -15
  251. package/out/_next/static/chunks/0nk0kgnsiap5g.js +0 -116
  252. package/out/_next/static/chunks/0o3o1f00j5wxa.js +0 -8
  253. package/out/_next/static/chunks/0pny1c_ni8rn7.js +0 -39
  254. package/out/_next/static/chunks/0q62hlhpcumrt.js +0 -33
  255. package/out/_next/static/chunks/0qz61g2g6ijfh.js +0 -54
  256. package/out/_next/static/chunks/0rmomvc8u__n4.js +0 -10
  257. package/out/_next/static/chunks/0s0ufx1fl32v7.js +0 -12
  258. package/out/_next/static/chunks/0sgxa66r-iing.js +0 -1
  259. package/out/_next/static/chunks/0ub1l2hrjkz2-.js +0 -1
  260. package/out/_next/static/chunks/0uksleo_xd7j5.js +0 -1
  261. package/out/_next/static/chunks/0wbciytf8tnsa.js +0 -18
  262. package/out/_next/static/chunks/0zfm51umxvjc6.js +0 -1
  263. package/out/_next/static/chunks/10enect1zh1vj.js +0 -3
  264. package/out/_next/static/chunks/11e6h7l-whxh3.js +0 -7
  265. package/out/_next/static/chunks/11vnr4kb9qkjr.js +0 -1
  266. package/out/_next/static/chunks/13ytpmhxkpnwy.js +0 -1
  267. package/out/_next/static/chunks/14pnkf7som1m1.js +0 -1
  268. package/out/_next/static/chunks/17nr-ur3sbo_z.js +0 -24
  269. package/out/_next/static/chunks/1802-tohqffps.js +0 -1
  270. package/out/_next/static/chunks/198-_r3as1j63.js +0 -8
  271. package/out/_next/static/chunks/19kin-dby998k.js +0 -8
  272. package/out/_next/static/chunks/1cs-w7vppvm8o.js +0 -1
  273. package/out/_next/static/chunks/1ewn0p_wru2ra.js +0 -15
  274. package/out/_next/static/chunks/1gfocmey44pyr.js +0 -7
  275. package/out/_next/static/chunks/1grwyry6zqknr.js +0 -100
  276. package/out/_next/static/chunks/1l2p87t0w4-yb.js +0 -8
  277. package/out/_next/static/chunks/1lew6f82bg1x1.js +0 -1
  278. package/out/_next/static/chunks/1nbc2o30_g9bj.js +0 -95
  279. package/out/_next/static/chunks/1p1f35qy1lt0s.js +0 -7
  280. package/out/_next/static/chunks/1p6qsnui0zjik.js +0 -44
  281. package/out/_next/static/chunks/1rm2w7nvmejdw.js +0 -31
  282. package/out/_next/static/chunks/1ttpypjue-zdo.js +0 -63
  283. package/out/_next/static/chunks/1xnlhfvi8m4a8.js +0 -1
  284. package/out/_next/static/chunks/1zhfbuv-et-34.js +0 -13
  285. package/out/_next/static/chunks/21z3-xqp62vs8.js +0 -7
  286. package/out/_next/static/chunks/243ubs_ig9hwo.js +0 -13
  287. package/out/_next/static/chunks/249u7sg_mycfl.js +0 -24
  288. package/out/_next/static/chunks/24_57hr3o_ll8.js +0 -1
  289. package/out/_next/static/chunks/252_8-fyz3vjh.js +0 -9
  290. package/out/_next/static/chunks/29c8fj1poxxec.js +0 -39
  291. package/out/_next/static/chunks/2__om5ddn5b91.js +0 -7
  292. package/out/_next/static/chunks/2_krlw-01uumq.js +0 -119
  293. package/out/_next/static/chunks/2c2arjke9rx-g.js +0 -14
  294. package/out/_next/static/chunks/2de99go2pdzl3.js +0 -12
  295. package/out/_next/static/chunks/2dnn7jhe55iy8.js +0 -32
  296. package/out/_next/static/chunks/2h_j6q1pnhf07.js +0 -16
  297. package/out/_next/static/chunks/2i6nzzm63658q.js +0 -10
  298. package/out/_next/static/chunks/2ksch2zc9k7uj.js +0 -71
  299. package/out/_next/static/chunks/2of_ro6r-fwjx.js +0 -16
  300. package/out/_next/static/chunks/2pumckmhpvlo2.js +0 -23
  301. package/out/_next/static/chunks/2r4x7nghsoqhe.js +0 -7
  302. package/out/_next/static/chunks/2s-226q_lc70k.js +0 -9
  303. package/out/_next/static/chunks/2tlxpweh5c3fh.js +0 -43
  304. package/out/_next/static/chunks/3-l_ott2smmqm.js +0 -7
  305. package/out/_next/static/chunks/3168hp9w1h68h.js +0 -68
  306. package/out/_next/static/chunks/32traobkc55z_.js +0 -54
  307. package/out/_next/static/chunks/36mjt8cgckx2r.js +0 -1
  308. package/out/_next/static/chunks/37vezmh4pf5j4.js +0 -12
  309. package/out/_next/static/chunks/38uyt89jy0tt7.js +0 -1
  310. package/out/_next/static/chunks/39-pv-7i0kah_.js +0 -155
  311. package/out/_next/static/chunks/3__spmlu2_ez6.js +0 -41
  312. package/out/_next/static/chunks/3a6ahlxxtjn1v.js +0 -8
  313. package/out/_next/static/chunks/3btzusax1chra.js +0 -36
  314. package/out/_next/static/chunks/3dxz87hw4lx39.js +0 -1
  315. package/out/_next/static/chunks/3f2rrfc7u_j6o.js +0 -1
  316. package/out/_next/static/chunks/3hxp-xwv4g3ek.js +0 -1
  317. package/out/_next/static/chunks/3mnca5jc1q8c_.js +0 -43
  318. package/out/_next/static/chunks/3skw31vkshyt2.js +0 -1
  319. package/out/_next/static/chunks/3szdkqecej3fb.js +0 -1
  320. package/out/_next/static/chunks/3t-6admtmkzzy.js +0 -39
  321. package/out/_next/static/chunks/3u6_-nj6i_l_r.js +0 -1
  322. package/out/_next/static/chunks/3uql2yuaknc-3.js +0 -1
  323. package/out/_next/static/chunks/3ym4exwo-py5d.js +0 -23
  324. package/out/_next/static/chunks/3yre4w19nehxf.js +0 -1
  325. package/out/_next/static/chunks/3zhcq27e8jjni.js +0 -28
  326. package/out/_next/static/chunks/40fs5lh83_iox.js +0 -1
  327. package/out/_next/static/chunks/40kvqov4hgd5s.js +0 -31
  328. package/out/_next/static/chunks/43n5979c79f0d.js +0 -1
  329. /package/out/_next/static/{DUswS2PYjGTW9uUGVJ6xd → 3N8lTawkhD5WNCBa3Xrre}/_clientMiddlewareManifest.js +0 -0
  330. /package/out/_next/static/{DUswS2PYjGTW9uUGVJ6xd → 3N8lTawkhD5WNCBa3Xrre}/_ssgManifest.js +0 -0
@@ -1,15 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,85741,(e,t,s)=>{let i="/products";(window.__NEXT_P=window.__NEXT_P||[]).push([i,()=>e.r(22e3)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([i])})},74954,e=>{"use strict";var t=e.i(91398),s=e.i(91788);e.s(["f",0,({value:e,duration:i=300})=>{let[a,r]=(0,s.useState)(0);return(0,s.useEffect)(()=>{let t,s;if(0===e)return void r(0);let a=l=>{t||(t=l);let n=Math.min((l-t)/i,1);r(Math.round((1-Math.pow(1-n,3))*e)),n<1&&(s=requestAnimationFrame(a))};return s=requestAnimationFrame(a),()=>{s&&cancelAnimationFrame(s)}},[e,i]),(0,t.jsx)("span",{children:a})}])},78704,e=>{"use strict";var t=e.i(91398),s=e.i(91788),i=e.i(12197);e.s(["f",0,({loading:e,hasMore:a,onLoadMore:r,children:l,threshold:n=200})=>{let d=(0,s.useRef)(null),o=(0,s.useCallback)(t=>{let[s]=t;s.isIntersecting&&a&&!e&&r()},[a,e,r]);return(0,s.useEffect)(()=>{let e=d.current;if(!e)return;let t=new IntersectionObserver(o,{rootMargin:`${n}px`});return t.observe(e),()=>{t.disconnect()}},[o,n]),(0,t.jsxs)(t.Fragment,{children:[l,(0,t.jsx)("div",{ref:d,className:"h-4"}),e&&(0,t.jsx)("div",{className:"flex justify-center py-4",children:(0,t.jsx)(i.f,{})})]})}])},94724,e=>{"use strict";var t=e.i(91398),s=e.i(3326);e.s(["f",0,({children:e=null,totalRecords:i=null})=>{let{formatMessage:a}=(0,s.S)();return(0,t.jsxs)("div",{className:"mt-5",children:[null!==i?(0,t.jsx)("div",{className:"text-md text-slate-950 dark:text-slate-100 mb-3",children:a({id:"total_records",defaultMessage:"{total} records found"},{total:i??0})}):null,e&&(0,t.jsx)("div",{className:"flex items-center mt-10",children:(0,t.jsx)("h3",{className:"text-xs leading-6 text-slate-500 dark:text-slate-200",children:e})})]})}])},77043,e=>{"use strict";var t=e.i(91398),s=e.i(72043),i=e.i(3326),a=e.i(35065),r=e.i(22315);e.s(["f",0,({file:e,className:l=""})=>{let{formatMessage:n}=(0,i.S)();return(0,t.jsx)("div",{className:(0,s.default)("h-10 w-10 shrink-0",l),children:e?(0,t.jsx)(a.f,{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)(r.f,{})})}])},22315,e=>{"use strict";var t=e.i(91398),s=e.i(81618),i=e.i(72043);e.s(["f",0,({className:e="",containerClassName:a="",Icon:r=null})=>(0,t.jsx)("span",{className:(0,i.default)("text-slate-400",a),children:r||(0,t.jsx)(s.f,{className:(0,i.default)(e)})})])},51128,e=>{"use strict";var t=e.i(91398),s=e.i(3326),i=e.i(3828),a=e.i(20495),r=e.i(68835),l=e.i(65153),n=e.i(83147),d=e.i(73319);e.s(["f",0,({children:e,onSearchChange:o,defaultSearchValue:u,showTagFilter:c=!1,availableTagOptions:p=[]})=>{let{formatMessage:f}=(0,s.S)(),{query:m,push:g}=(0,i.useRouter)(),h=e=>{if((0,d.T)(e))g({query:(0,n._)(m,e?.join(","),"tags")});else{let{tags:e,...t}=m;g({query:(0,n._)(t)})}};return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"my-3 flex flex-col gap-3",children:(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start gap-3",children:[(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(a.f,{onInputChange:o,defaultValue:u})}),c&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 flex-1 sm:border-l sm:border-slate-300 sm:dark:border-slate-700 sm:pl-3",children:[(0,t.jsx)("div",{className:"max-w-xs",children:(0,t.jsx)(r.f,{buttonText:f({id:"apply",defaultMessage:"Apply"}),placeholder:f({id:"enter_tag",defaultMessage:"Enter tag..."}),tagList:m?.tags?.split(","),onChange:h,selectOptions:p,showTagsInline:!1})}),m?.tags?.split(",").filter(Boolean).length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:m?.tags?.split(",").filter(Boolean).map(e=>(0,t.jsx)(l.f,{text:e,color:"slate",onClick:()=>{let t=m?.tags?.split(",").filter(t=>t!==e);h(t.length>0?t:null)}},e))})]})]})}),e]})}])},75155,e=>{"use strict";var t=e.i(91398),s=e.i(3326),i=e.i(65153);let a={DRAFT:"yellow",ACTIVE:"emerald",DELETED:"amber",null:"yellow",undefined:"yellow"};e.s(["f",0,({status:e})=>{let{formatMessage:r}=(0,s.S)();return r({id:"pending",defaultMessage:"PENDING"}),r({id:"confirmed",defaultMessage:"CONFIRMED"}),r({id:"open",defaultMessage:"OPEN"}),r({id:"fulfilled",defaultMessage:"FULFILLED"}),r({id:"rejected",defaultMessage:"REJECTED"}),(0,t.jsx)(i.f,{text:(e=>{switch(e){case"ACTIVE":return r({id:"active",defaultMessage:"Active"});case"DRAFT":default:return r({id:"draft",defaultMessage:"Draft"});case"DELETED":return r({id:"deleted",defaultMessage:"Deleted"})}})(e),color:a[e]||"yellow",square:!0,dotted:!0})}])},92615,e=>{"use strict";var t=e.i(59080),s=e.i(32171);let i=t.f`
2
- query ProductsCount(
3
- $queryString: String
4
- $tags: [LowerCaseString!]
5
- $slugs: [String!]
6
- $includeDrafts: Boolean
7
- ) {
8
- productsCount(
9
- tags: $tags
10
- slugs: $slugs
11
- includeDrafts: $includeDrafts
12
- queryString: $queryString
13
- )
14
- }
15
- `;e.s(["f",0,({queryString:e="",tags:t=null,includeDrafts:a=!0})=>{let{data:r,loading:l,error:n}=(0,s.f)(i,{variables:{queryString:e,includeDrafts:a,tags:t}});return{productsCount:r?.productsCount,loading:l,error:n}}])},22e3,e=>{"use strict";var t=e.i(91398),s=e.i(3326),i=e.i(66773),a=e.i(3828),r=e.i(61494),l=e.i(94724),n=e.i(17644),d=e.i(64591),o=e.i(60193),u=e.i(12197),c=e.i(78704),p=e.i(8918),f=e.i(24112),m=e.i(41158),g=e.i(65153),h=e.i(77043),x=e.i(3095),v=e.i(1880),_=e.i(58971),y=e.i(6607),w=e.i(15971),b=e.i(41418),j=e.i(88604),C=e.i(75155);let M=({product:e,showAvatar:r=!1,hideSortIndex:l=!1})=>{let{formatMessage:n}=(0,s.S)(),d=(0,a.useRouter)(),{hasRole:o}=(0,_.f)(),{setModal:u}=(0,y.f)(),{updateProduct:c}=(0,b.f)(),{removeProduct:f}=(0,j.f)(),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)(w.f,{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 f({productId:e._id})},okText:n({id:"delete_product",defaultMessage:"Delete Product"})}))},k=`/products?slug=${(0,v.U)(e)}`,S=(0,t.jsx)("span",{className:"text-xs mt-1 px-2 py-0.5 bg-slate-100 dark:bg-slate-700 text-slate-700 dark:text-slate-200 rounded w-fit",children:(e.__typename||e.type||"SimpleProduct").replace("Product","")||"Simple"});return(0,t.jsxs)(p.f.Row,{className:"group",children:[(0,t.jsx)(p.f.Cell,{children:e?.status!=="DELETED"?(0,t.jsxs)(m.default,{href:k,className:"flex items-center text-sm text-slate-900 dark:text-slate-300 group-hover:text-slate-700 dark:group-hover:text-slate-100",children:[r&&(0,t.jsx)(h.f,{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.f,{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:[r&&(0,t.jsx)(h.f,{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.f,{color:"yellow",text:n({id:"title_not_found",defaultMessage:"Title not found"})})]})})})]})}),(0,t.jsx)(p.f.Cell,{className:"whitespace-nowrap px-6",children:S}),(0,t.jsx)(p.f.Cell,{className:"whitespace-nowrap px-6",children:e?.status!=="DELETED"?(0,t.jsx)(m.default,{href:k,className:"block",children:(0,t.jsx)(C.f,{status:e?.status})}):(0,t.jsx)(C.f,{status:e?.status})}),(0,t.jsx)(p.f.Cell,{children:e?.status!=="DELETED"?(0,t.jsx)(m.default,{href:k,className:"block",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:e.tags?.map(e=>(0,t.jsx)(g.f,{text:e,color:"slate"},e))})}):(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:e.tags?.map(e=>(0,t.jsx)(g.f,{text:e,color:"slate"},e))})}),l?null:(0,t.jsx)(p.f.Cell,{children:(0,t.jsx)("input",{type:"number",id:`${e?._id}-sequence`,className:"text-center w-16 shadow-xs focus:ring-slate-900 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-slate-900 dark:text-slate-300",defaultValue:e?.sequence,disabled:!o(i.C.ManageProducts),onBlur:M,onClick:e=>e.stopPropagation(),onFocus:e=>e.stopPropagation()})}),(0,t.jsx)(p.f.Cell,{className:"text-right",children:(0,t.jsx)(x.f,{onEdit:e?.status!=="DELETED"?()=>{e?.status!=="DELETED"&&d.push(`/products?slug=${(0,v.U)(e)}`)}:void 0,onDelete:o(i.C.ManageProducts)&&e?.status==="DRAFT"?I:void 0,showEdit:e?.status!=="DELETED",showDelete:o(i.C.ManageProducts)&&e?.status==="DRAFT"&&!e?.proxies?.length})})]})};var I=e.i(57561);let k=({showAvatar:e=!0,queryString:i,limit:a,offset:r,tags:l,sortKeys:n,includeDrafts:d,sortable:o})=>{let{formatMessage:m}=(0,s.S)(),{selectedLocale:g}=(0,I.f)(),{products:h,loading:x,loadMore:v,hasMore:_}=(0,f.f)({queryString:i,includeDrafts:d,limit:a,offset:r,tags:l,sort:n,forceLocale:g});return x&&h?.length===0?(0,t.jsx)(u.f,{}):(0,t.jsx)(c.f,{loading:x,hasMore:_,onLoadMore:v,children:(0,t.jsxs)(p.f,{className:"min-w-full ",children:[h?.map(e=>(0,t.jsxs)(p.f.Row,{header:!0,enablesort:o,children:[(0,t.jsx)(p.f.Cell,{children:m({id:"name",defaultMessage:"Name"})}),(0,t.jsx)(p.f.Cell,{sortKey:"type",children:m({id:"type",defaultMessage:"Type"})}),(0,t.jsx)(p.f.Cell,{sortKey:"status",children:m({id:"status",defaultMessage:"Status"})}),(0,t.jsx)(p.f.Cell,{children:m({id:"tags",defaultMessage:"Tags"})}),(0,t.jsx)(p.f.Cell,{sortKey:"sequence",defaultSortDirection:"ASC",children:m({id:"sequence",defaultMessage:"Display Order"})}),(0,t.jsx)(p.f.Cell,{children:" "})]},e._id)),h?.map(s=>(0,t.jsx)(M,{product:s,showAvatar:e},`${s?._id}-body`))]})})};var S=e.i(83147),N=e.i(51128),E=e.i(92615),P=e.i(30311),q=e.i(11056),D=e.i(74954),T=e.i(91788),V=e.i(81013),R=e.i(60513);let O=["_id","sku","baseUnit","sequence","status","tags","updated","published","type"],L=["title","subtitle","description","vendor","brand","labels","slug"],$=["productId","amount","currencyCode","countryCode","isTaxable","isNetPrice","maxQuantity"],A=["productId","bundleItemProductId","quantity","configuration"],F=["productId","variationId","key","type"],U=["title","subtitle"],B=["variationId","value"],z=["title","subtitle"];var W=e.i(75284);let Z=({queryString:e,includeDrafts:i,tags:a})=>{let{setModal:r}=(0,y.f)(),{productsCount:l,loading:n}=(0,E.f)({queryString:e,includeDrafts:i,tags:a}),{exportProducts:d,isExporting:o}=(()=>{let{exportCSV:e,isExporting:t}=(0,R.f)();return{exportProducts:(0,T.useCallback)(async t=>{await e({type:"PRODUCTS",...t})},[e]),isExporting:t}})(),{formatMessage:u}=(0,s.S)(),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"})}],p=(0,T.useCallback)(async t=>{await d({queryString:e,includeDrafts:i,tags:a,...t}),r(null)},[e,i,a,d,r]);return n?null:(0,t.jsx)(V.f,{onClick:()=>{r((0,t.jsx)(W.f,{options:c,onSubmit:p,loading:o}))},disabled:o||!l,variant:"secondary",text:u(o?{id:"exporting",defaultMessage:"Exporting..."}:{id:"export",defaultMessage:"Export"})})};var G=e.i(78193),K=e.i(22003);let X={SimpleProduct:"SIMPLE_PRODUCT",BundleProduct:"BUNDLE_PRODUCT",PlanProduct:"PLAN_PRODUCT",ConfigurableProduct:"CONFIGURABLE_PRODUCT",TokenizedProduct:"TOKENIZED_PRODUCT"},Q=e=>{let t={};return Object.entries(e).forEach(([e,s])=>{if(!e.startsWith("texts."))return;let[,i,a]=e.split(".");t[i]||={},"labels"===a?t[i][a]=s?s.split(";"):[]:t[i][a]=s||""}),t},H=({productsCSV:e,pricesCSV:t,bundleItemsCSV:s,variationOptionsCSV:a,variationsCSV:r},l)=>{let n=[];for(let t of e)Object.values(X).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&&![i.X.Active,i.X.Draft,i.X.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 s)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 r)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&&![i.k.Color,i.k.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:O,pricesCSV:$,bundleItemsCSV:A,variationOptionsCSV:B,variationsCSV:F},es=({onImport:e})=>{let i=(0,T.useRef)({}),{formatMessage:a}=(0,s.S)(),{languageDialectList:r}=(0,I.f)(),l=r?.map(e=>e.isoCode)||[],[n,d]=(0,T.useState)({}),[o,u]=(0,T.useState)({productsCSV:[],pricesCSV:[],bundleItemsCSV:[],variationsCSV:[],variationOptionsCSV:[]}),[c,p]=(0,T.useState)(!1),f=[{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}],m=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 s=await m(t),i=((e,t)=>{if(!t.length)return!1;let s=Object.keys(t[0]),i=et[e].filter(e=>!s.includes(e));return i.length?(d(t=>({...t,[e]:a({id:"csv_missing_fields",defaultMessage:"Missing required columns: {fields}"},{fields:i.join(", ")})})),!1):(d(t=>({...t,[e]:void 0})),!0)})(e,s);u(t=>({...t,[e]:i?s:[]}))},h=async(e,t)=>{let s=e.target.files?.[0];await g(t,s),e.target.value=""},x=(0,T.useCallback)(async()=>{p(!0);try{await e(o)}finally{p(!1)}},[o,e]),v=o.productsCSV.length>0,_=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."})}),f.map(({key:e,label:s,optional:r})=>(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("input",{ref:t=>{i.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)(V.f,{text:o[e].length?a({id:`${e}_file_selected`,defaultMessage:`${s} Selected`}):a({id:`select_${e}`,defaultMessage:`Select ${s}`}),onClick:()=>i.current[e]?.click(),variant:"secondary",className:"flex-1",disabled:c||!v&&r}),(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,s=[])=>{let i=((e,t=[])=>{if("productsCSV"===e)return[...O,...t.flatMap(e=>L.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[...F,...t.flatMap(e=>U.map(t=>`texts.${e}.${t}`))];if("variationOptionsCSV"===e)return[...B,...t.flatMap(e=>z.map(t=>`texts.${e}.${t}`))];return[]})(e,s).join(",");(0,ee.f)(i,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)(V.f,{text:c?"Importing…":"Import",onClick:x,disabled:c||!v||_,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&&!_&&(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:o.productsCSV.length,prices:o.pricesCSV.length?` with ${o.pricesCSV.length} prices`:"",bundleItems:o.bundleItemsCSV.length?` with ${o.bundleItemsCSV.length} bundle items`:"",variations:o.variationsCSV.length?` with ${o.variationsCSV.length} variations`:"",variationOptions:o.variationOptionsCSV.length?` with ${o.variationOptionsCSV.length} variation options`:""})})]})};var ei=e.i(28401);let ea=()=>{let{formatMessage:e}=(0,s.S)(),{hasRole:a}=(0,_.f)(),{setModal:r}=(0,y.f)(),{prepareProductImport:l}={prepareProductImport:async({productsCSV:e,pricesCSV:t,bundleItemsCSV:s,variationsCSV:i,variationOptionsCSV:a})=>(e||[]).map(e=>{let r,l,n,d,o,u,c,p=(t||[]).filter(t=>t.productId===e._id),f=(s||[]).filter(t=>t.productId===e._id),m=(i||[]).filter(t=>t.productId===e._id);return p.length&&(r=p.map(({amount:e,maxQuantity:t,isNetPrice:s,isTaxable:i,...a})=>({...a,amount:parseInt(e)??0,isNetPrice:"true"===s,isTaxable:"true"===i,maxQuantity:parseInt(t,2)||0}))),f.length&&(l=f.map(({bundleItemProductId:e,quantity:t,configuration:s})=>({productId:e,quantity:Number(t||1),configuration:(s||"").split(";").map(e=>{let[t,s]=e.split(":");return{key:t,value:s}})}))),m.length&&(n=m.map(({variationId:e,type:t,key:s,configuration:i,...r})=>({variationId:e,key:s,type:t,content:Q(r),options:(a||[]).filter(t=>t.variationId===e).map(e=>({value:e?.value??"",content:Q(e)}))}))),(({variations:e=[],...t})=>{let s=new Date;return{entity:"PRODUCT",operation:"CREATE",payload:{_id:t._id,specification:{...t,published:"ACTIVE"===t.status?s: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}}})({...(d=e["supply.weightInGram"]||e["supply.heightInMillimeters"]||e["supply.lengthInMillimeters"]||e["supply.widthInMillimeters"],o=e.sku||e.baseUnit,u=Q(e),c=(0,K.f)(e.meta),{_id:e._id||void 0,warehousing:o?{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:d?{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:r,bundleItems:l,variations:n})})},{isImporting:n,importItems:d}=(0,G.f)({validate:H,process:l});return a(i.C.ManageProducts)?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(V.f,{onClick:()=>{r((0,t.jsx)(es,{onImport:async e=>{let s=await d(e);r(null),(0,ei.c)((0,t.jsx)(J.f,{result:s,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,s.S)(),{shopInfo:u}=(0,I.f)(),{query:c,push:p}=(0,a.useRouter)(),f=parseInt(c?.limit,10)||o.h,m=parseInt(c?.skip,10)||0,g=c?.includeDrafts==="true"||!c?.includeDrafts,h=c.tags?.split(",")||void 0,x=c.sort||"",{hasRole:v}=(0,_.f)(),{queryString:y,slug:w,...b}=c,j=(0,S.R)(x),{productsCount:C}=(0,E.f)({queryString:y,includeDrafts:g,tags:h});if(w)return(0,t.jsx)(P.default,{slug:w});let M=1===C?e({id:"products_header",defaultMessage:"1 Product"}):e({id:"products_count_header",defaultMessage:"{count} Products"},{count:(0,t.jsx)(D.f,{value:C??0})}),T=(u?.adminUiConfig?.productTags||[]).map(e=>({value:e,label:e}));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.f,{}),(0,t.jsx)("div",{className:"w-full",children:(0,t.jsxs)(n.f,{title:e({id:"product_page_title",defaultMessage:"{count, plural, one {# Product} other {# Products}}"},{count:C}),headerText:M,addPath:v(i.C.ManageProducts)&&"/products/new",addButtonText:e({id:"add_product",defaultMessage:"Add Product"}),children:[(0,t.jsx)(Z,{includeDrafts:g,queryString:y,tags:h}),(0,t.jsx)(ea,{})]})}),(0,t.jsxs)("div",{className:"min-w-full overflow-x-auto px-1",children:[(0,t.jsx)(l.f,{children:(0,t.jsx)(d.f,{toggleText:e({id:"include_drafts",defaultMessage:"Include drafts"}),toggleKey:"includeDrafts",active:g})}),(0,t.jsx)(N.f,{onSearchChange:e=>{let{skip:t,...s}=b;e?p({query:(0,S._)(s,e,"queryString")}):p({query:(0,S._)(b)})},defaultSearchValue:y,showTagFilter:!0,availableTagOptions:T,children:(0,t.jsx)(q.f,{onlyFull:!0,children:(0,t.jsx)(k,{sortable:!0,queryString:y,includeDrafts:g,limit:f,offset:m,tags:h,sortKeys:j})})})]})]})}],22e3)},31004,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...i},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":s},i),e?t.createElement("title",{id:s},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(["f",0,s],31004)},81618,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...i},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":s},i),e?t.createElement("title",{id:s},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(["f",0,s],81618)},57748,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...i},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":s},i),e?t.createElement("title",{id:s},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(["f",0,s],57748)},5270,e=>{"use strict";var t=e.i(91788);let s=(...e)=>e.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim(),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},a=(0,t.createContext)({}),r=(0,t.forwardRef)(({color:e,size:r,width:l,height:n,strokeWidth:d,absoluteStrokeWidth:o,nonScalingStroke:u,className:c="",children:p,iconNode:f=[],icon:m={node:f,aliases:[],size:24},...g},h)=>{let{size:x=24,strokeWidth:v=2,absoluteStrokeWidth:_=!1,nonScalingStroke:y=!1,color:w="currentColor",className:b=""}=(0,t.useContext)(a)??{},j=!!p||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(g),[C,M,I=[]]=function(e,t={}){return function(e,t={}){let a=t.attributeNames??{},r=e=>a[e]??e,l=e.size??e.width??i.width,n=e.size??e.height??i.height,d=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],o=[...e.name?[`lucide-${e.name}`]:[],...d],u=t.className?.split(" ").filter(Boolean)??[],c=!1===t.includeDefaultClasses?s(...u):s("lucide",...o,...u),p=t.absoluteStrokeWidth?Number(t.strokeWidth??i["stroke-width"])*Number(e.size??e.width??i.width)/Number(t.size??t.width??i.width):t.strokeWidth??i["stroke-width"];return["svg",{...Object.entries(i).reduce((e,[t,s])=>(e[r(t)]=s,e),{}),..."color"in t&&t.color&&{[r("stroke")]:t.color},..."size"in t&&null!=t.size&&{[r("width")]:t.size,[r("height")]:t.size},..."width"in t&&null!=t.width&&{[r("width")]:t.width},..."height"in t&&null!=t.height&&{[r("height")]:t.height},[r("stroke-width")]:p,...c&&{[r("class")]:c},[r("viewBox")]:`0 0 ${l} ${n}`,...!1===t.hasA11yProp?{[r("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[s,i,a]=e,l=t.nonScalingStroke?{[r("vector-effect")]:"non-scaling-stroke",...i}:i;return a?[s,l,a]:[s,l]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(m,{color:e??w,width:l??r??x,height:n??r??x,strokeWidth:d??v,absoluteStrokeWidth:o??_,nonScalingStroke:u??y,className:s(b,c),hasA11yProp:j,attributes:g});return(0,t.createElement)(C,{ref:h,...M},[...I.map(([e,s])=>(0,t.createElement)(e,s)),...Array.isArray(p)?p:[p]])});e.s(["f",0,function(e,s=[],i=[]){let a,l="string"==typeof e?function(e,t,s=[]){if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),size:24,node:t,...s.length>0?{aliases:s}:{}}}(e,s,i):e,n=(0,t.forwardRef)(({className:e,...s},i)=>(0,t.createElement)(r,{ref:i,icon:l,className:e,...s}));return l.name&&(n.displayName=(a=(e=>{let t="",s=!1;for(let i of e){if("-"===i||"_"===i||i<=" "){s=t.length>0;continue}0===t.length?t+=i.toLowerCase():t+=s?i.toUpperCase():i,s=!1}return t})(l.name)).charAt(0).toUpperCase()+a.slice(1)),n}],5270)}]);
@@ -1,7 +0,0 @@
1
- __turbopack_load_page_chunks__("/country", [
2
- "static/chunks/0ub1l2hrjkz2-.js",
3
- "static/chunks/32traobkc55z_.js",
4
- "static/chunks/14pnkf7som1m1.js",
5
- "static/chunks/3hxp-xwv4g3ek.js",
6
- "static/chunks/turbopack-077hmtqrhcoji.js"
7
- ])