@unchainedshop/admin-ui 4.8.30 → 4.8.31

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 (540) hide show
  1. package/dist/components/ui/Loading.d.ts +8 -1
  2. package/dist/components/ui/Loading.d.ts.map +1 -1
  3. package/dist/components/ui/index.d.ts +1 -0
  4. package/dist/components/ui/index.d.ts.map +1 -1
  5. package/dist/ui.js +58 -25
  6. package/out/403/index.html +3 -2
  7. package/out/404/index.html +3 -2
  8. package/out/404.html +3 -2
  9. package/out/423/index.html +3 -2
  10. package/out/500/index.html +3 -2
  11. package/out/_next/static/4ESrB8YpR2n44PFePtbgX/_buildManifest.js +258 -0
  12. package/out/_next/static/chunks/0-_s79k4_7ei_.js +5 -0
  13. package/out/_next/static/chunks/00aks9rqke2x0.js +7 -0
  14. package/out/_next/static/chunks/00az81dk4vdda.js +54 -0
  15. package/out/_next/static/chunks/01e4gd649r2tq.js +7 -0
  16. package/out/_next/static/chunks/01j2wi94k90x0.js +5 -0
  17. package/out/_next/static/chunks/043i-g05cyvrd.js +1 -0
  18. package/out/_next/static/chunks/04kyktzbxprj0.js +61 -0
  19. package/out/_next/static/chunks/05p330iybjojg.js +44 -0
  20. package/out/_next/static/chunks/05qk8ozexvlxp.js +5 -0
  21. package/out/_next/static/chunks/0696190awbl-j.js +100 -0
  22. package/out/_next/static/chunks/06i50j458a7g5.js +12 -0
  23. package/out/_next/static/chunks/07o9g5hqfpvjc.js +12 -0
  24. package/out/_next/static/chunks/08o61gwabp3h1.js +33 -0
  25. package/out/_next/static/chunks/09avk6mqdin_1.js +116 -0
  26. package/out/_next/static/chunks/0_bvgo8ev4gs7.js +7 -0
  27. package/out/_next/static/chunks/0amj69l-d5-85.js +1 -0
  28. package/out/_next/static/chunks/0b05sca2hdcys.js +30 -0
  29. package/out/_next/static/chunks/0c3kwkqr9evm4.js +5 -0
  30. package/out/_next/static/chunks/0c4jv8pwvpxei.js +1 -0
  31. package/out/_next/static/chunks/0c7ljn9lo_0oh.js +5 -0
  32. package/out/_next/static/chunks/0dqw1oya___hr.js +1 -0
  33. package/out/_next/static/chunks/0ewr86ctcw7fx.js +1 -0
  34. package/out/_next/static/chunks/0jham55cr3rhy.js +81 -0
  35. package/out/_next/static/chunks/0lr7o7tyjmrmf.js +8 -0
  36. package/out/_next/static/chunks/0mx8opz23nwlb.js +5 -0
  37. package/out/_next/static/chunks/0n3ixknyc6_ma.js +1 -0
  38. package/out/_next/static/chunks/0o0e82-3pc7ur.js +78 -0
  39. package/out/_next/static/chunks/0ohk7l49gjm62.js +5 -0
  40. package/out/_next/static/chunks/0p31l6a9hynnt.js +6 -0
  41. package/out/_next/static/chunks/0p7said9rdor1.js +1 -0
  42. package/out/_next/static/chunks/0q2e8h8498pvo.js +4 -0
  43. package/out/_next/static/chunks/0qa-zbgmv-k3p.js +9 -0
  44. package/out/_next/static/chunks/0qj3xdz043z8l.js +12 -0
  45. package/out/_next/static/chunks/0skst735jufgh.js +71 -0
  46. package/out/_next/static/chunks/0t28q5fb2jp-6.js +8 -0
  47. package/out/_next/static/chunks/0tmamaq8exyij.js +1 -0
  48. package/out/_next/static/chunks/0uls4bq8a7gyh.js +18 -0
  49. package/out/_next/static/chunks/0ydy3ky15gx62.js +1 -0
  50. package/out/_next/static/chunks/0zh311lu9jf2x.js +5 -0
  51. package/out/_next/static/chunks/0zpyyygbqx3pf.js +152 -0
  52. package/out/_next/static/chunks/0zzoylv2rl1xu.js +3 -0
  53. package/out/_next/static/chunks/1---h4b693b81.js +1 -0
  54. package/out/_next/static/chunks/10m_etq9t2pkv.js +7 -0
  55. package/out/_next/static/chunks/11ehf3t7qzbua.js +4 -0
  56. package/out/_next/static/chunks/120k989vjsno4.js +1 -0
  57. package/out/_next/static/chunks/12yd8t4k6c0t1.js +1 -0
  58. package/out/_next/static/chunks/153ec1_-yt3jb.js +344 -0
  59. package/out/_next/static/chunks/16le3cqxj12u6.js +5 -0
  60. package/out/_next/static/chunks/16zxfacsu_jbq.js +1 -0
  61. package/out/_next/static/chunks/17fibl49qtd6c.js +8 -0
  62. package/out/_next/static/chunks/18xyj4i_i5lyn.js +6 -0
  63. package/out/_next/static/chunks/1_3e6x79fcyv3.js +5 -0
  64. package/out/_next/static/chunks/1_55km6vm5mc0.js +596 -0
  65. package/out/_next/static/chunks/1aej6iqnlr74p.js +1 -0
  66. package/out/_next/static/chunks/1asbed4hne69c.js +7 -0
  67. package/out/_next/static/chunks/1c60nzy_x4kez.js +277 -0
  68. package/out/_next/static/chunks/1c77vl6xdqfd4.js +15 -0
  69. package/out/_next/static/chunks/1da89agg-nacc.js +224 -0
  70. package/out/_next/static/chunks/1f7-0l47bx76m.js +13 -0
  71. package/out/_next/static/chunks/1fbsyczyh9hwh.js +1 -0
  72. package/out/_next/static/chunks/1g96s7-fwvokd.js +2 -0
  73. package/out/_next/static/chunks/1gqd9vrno0rq4.js +315 -0
  74. package/out/_next/static/chunks/1hih2cxmgqcd3.js +10 -0
  75. package/out/_next/static/chunks/1hviha1jcz_og.js +4 -0
  76. package/out/_next/static/chunks/1il9vuoxtb2_n.js +43 -0
  77. package/out/_next/static/chunks/1jaatdt0mlypl.js +16 -0
  78. package/out/_next/static/chunks/1l4g6_of_bbr8.js +5 -0
  79. package/out/_next/static/chunks/1lezxecnoaxnn.js +32 -0
  80. package/out/_next/static/chunks/1m27au_nmk8_k.js +71 -0
  81. package/out/_next/static/chunks/1m4fwgl1mj4d-.js +46 -0
  82. package/out/_next/static/chunks/1m85ne6w_6tei.js +1 -0
  83. package/out/_next/static/chunks/1ma82ip9shpkc.js +24 -0
  84. package/out/_next/static/chunks/1nbh1zkzirnuw.js +1 -0
  85. package/out/_next/static/chunks/1nohf8_cc6gmw.js +9 -0
  86. package/out/_next/static/chunks/1os6pvhjeb16o.js +1 -0
  87. package/out/_next/static/chunks/1qi5yjvzxspwv.js +15 -0
  88. package/out/_next/static/chunks/1rsexg6dg82f0.js +7 -0
  89. package/out/_next/static/chunks/1s9v5dndopkuz.js +12 -0
  90. package/out/_next/static/chunks/1sh2ogc7tcbu-.js +1 -0
  91. package/out/_next/static/chunks/1sksqjru86hlm.js +1 -0
  92. package/out/_next/static/chunks/1tkvi0wb-x3v8.js +16 -0
  93. package/out/_next/static/chunks/1u79pcgqjgjpq.js +1 -0
  94. package/out/_next/static/chunks/1uqiaqtv_0v2x.js +5 -0
  95. package/out/_next/static/chunks/1x8o-luxdxxk7.js +1 -0
  96. package/out/_next/static/chunks/1yjb7gogaf8po.js +31 -0
  97. package/out/_next/static/chunks/1zyhzessv0wtg.js +1 -0
  98. package/out/_next/static/chunks/2-4610weysas_.js +1 -0
  99. package/out/_next/static/chunks/2-kvt9e7irukm.js +1 -0
  100. package/out/_next/static/chunks/2-pl31kdikt3k.js +5 -0
  101. package/out/_next/static/chunks/20c4_1i5r3kkz.js +1 -0
  102. package/out/_next/static/chunks/20f2gs8iua6fk.js +1 -0
  103. package/out/_next/static/chunks/20zdaln201w8j.js +277 -0
  104. package/out/_next/static/chunks/21l46nbaop06z.js +39 -0
  105. package/out/_next/static/chunks/22-o32hlte36e.js +130 -0
  106. package/out/_next/static/chunks/231j2_p-ha14w.js +7 -0
  107. package/out/_next/static/chunks/23s2f7_-ol94s.js +8 -0
  108. package/out/_next/static/chunks/26_mx-ritu68j.js +24 -0
  109. package/out/_next/static/chunks/26ckmxeluyknq.js +1 -0
  110. package/out/_next/static/chunks/26r0y7ldf3iqs.js +6 -0
  111. package/out/_next/static/chunks/27fzoozwycagi.js +6 -0
  112. package/out/_next/static/chunks/27jmq7a-vh0b4.js +7 -0
  113. package/out/_next/static/chunks/283567a82x9qi.js +149 -0
  114. package/out/_next/static/chunks/29he8uukp5s4u.js +31 -0
  115. package/out/_next/static/chunks/2adglo0sf0jcg.js +905 -0
  116. package/out/_next/static/chunks/{2kzyda4a6mqut.js → 2ajr0rk0_yax6.js} +1 -1
  117. package/out/_next/static/chunks/2b4ewxxz6f462.js +7 -0
  118. package/out/_next/static/chunks/{3zqfchpzqxd92.css → 2bh2dv7j9m8c8.css} +1 -1
  119. package/out/_next/static/chunks/2bi8v13lm76lr.js +95 -0
  120. package/out/_next/static/chunks/2burvpf9877y_.js +44 -0
  121. package/out/_next/static/chunks/2cj703xtrf5i6.js +46 -0
  122. package/out/_next/static/chunks/2cj8g3fxmitaa.js +1 -0
  123. package/out/_next/static/chunks/2ec7xatyld40t.js +7 -0
  124. package/out/_next/static/chunks/2ho4591ngh3y2.js +61 -0
  125. package/out/_next/static/chunks/2hoi6cb1lromr.js +4 -0
  126. package/out/_next/static/chunks/2i5k6tlwd58hp.js +1 -0
  127. package/out/_next/static/chunks/2iy0jr00qhq-q.js +5 -0
  128. package/out/_next/static/chunks/2jonbba27xy3u.js +14 -0
  129. package/out/_next/static/chunks/2l8gepfm4kyjp.js +1 -0
  130. package/out/_next/static/chunks/2m0rrts8gwqwp.js +1 -0
  131. package/out/_next/static/chunks/2m_u12ggzosat.js +5 -0
  132. package/out/_next/static/chunks/2mdns56l5antm.js +5 -0
  133. package/out/_next/static/chunks/2mrbytgs3uetd.js +4 -0
  134. package/out/_next/static/chunks/2p9gwjxeui1zd.js +71 -0
  135. package/out/_next/static/chunks/2pfhy9qy_cijn.js +5 -0
  136. package/out/_next/static/chunks/2q5k4rozyr2wt.js +4 -0
  137. package/out/_next/static/chunks/2qx8nnki_qv5v.js +171 -0
  138. package/out/_next/static/chunks/2r_rj84l3cy7r.js +119 -0
  139. package/out/_next/static/chunks/2rb1-3t3-sv5s.js +8 -0
  140. package/out/_next/static/chunks/2rmgaa88-4bpb.js +227 -0
  141. package/out/_next/static/chunks/2swxmzb-xk_bo.js +108 -0
  142. package/out/_next/static/chunks/2t0biwx5e_4w_.js +1 -0
  143. package/out/_next/static/chunks/2ts3v72jkbcdr.js +7 -0
  144. package/out/_next/static/chunks/2vfexvltv2avy.js +5 -0
  145. package/out/_next/static/chunks/2vveotzevnkfp.js +1 -0
  146. package/out/_next/static/chunks/2wkg65dtx56je.js +155 -0
  147. package/out/_next/static/chunks/2xixk0t9e9mnw.js +1 -0
  148. package/out/_next/static/chunks/2xz7hnr9ikqzq.js +7 -0
  149. package/out/_next/static/chunks/2y1lq1efnvcdt.js +23 -0
  150. package/out/_next/static/chunks/2ziasg8l_c9n7.js +5 -0
  151. package/out/_next/static/chunks/3-ve59izq9j-p.js +1 -0
  152. package/out/_next/static/chunks/3-wsablhqgzoa.js +1 -0
  153. package/out/_next/static/chunks/30ppb2wc-m4ph.js +1 -0
  154. package/out/_next/static/chunks/336k08jwyc5i-.js +1 -0
  155. package/out/_next/static/chunks/33d061qpkafqm.js +39 -0
  156. package/out/_next/static/chunks/33fyy6d5mo55_.js +8 -0
  157. package/out/_next/static/chunks/33kh18frqc3b1.js +5 -0
  158. package/out/_next/static/chunks/33v05ol-ire9s.js +10 -0
  159. package/out/_next/static/chunks/33yzdcbu7w60l.js +13 -0
  160. package/out/_next/static/chunks/348l8p7-vo4l5.js +63 -0
  161. package/out/_next/static/chunks/35hu5vin0swdf.js +41 -0
  162. package/out/_next/static/chunks/37a6yquh875rn.js +39 -0
  163. package/out/_next/static/chunks/3_2i9du5-ffrp.js +59 -0
  164. package/out/_next/static/chunks/3_84h3z_tewmg.js +145 -0
  165. package/out/_next/static/chunks/3bo7uiy-wh63m.js +108 -0
  166. package/out/_next/static/chunks/3c-an5ft_3emc.js +1 -0
  167. package/out/_next/static/chunks/3d_222ci0_30_.js +41 -0
  168. package/out/_next/static/chunks/3dldch03dfaed.js +1 -0
  169. package/out/_next/static/chunks/3eedy49gsvv_t.js +1 -0
  170. package/out/_next/static/chunks/3fayuejnrsd90.js +15 -0
  171. package/out/_next/static/chunks/3fqonijzsxy8u.js +28 -0
  172. package/out/_next/static/chunks/3g1ale0hytu9q.js +12 -0
  173. package/out/_next/static/chunks/3jxeyjg2g7w94.js +1 -0
  174. package/out/_next/static/chunks/3k3gvr7-e3g_s.js +5 -0
  175. package/out/_next/static/chunks/3kwoyyxi_-q7m.js +1 -0
  176. package/out/_next/static/chunks/3le1bywe19_u9.js +1 -0
  177. package/out/_next/static/chunks/3lku4-9kpf-mj.js +267 -0
  178. package/out/_next/static/chunks/3lz5h1tw50wr_.js +54 -0
  179. package/out/_next/static/chunks/3oq-khgfpo0nx.js +39 -0
  180. package/out/_next/static/chunks/3ps25ocfalcap.js +43 -0
  181. package/out/_next/static/chunks/3q3m075m4bxz1.js +2 -0
  182. package/out/_next/static/chunks/3qzrrjb48t2w3.js +119 -0
  183. package/out/_next/static/chunks/3r0i-7zjuz9i1.js +6 -0
  184. package/out/_next/static/chunks/3rgn5xwtr51ul.js +7 -0
  185. package/out/_next/static/chunks/3ridg_u19b6ih.js +8 -0
  186. package/out/_next/static/chunks/3skzk-w2ytvku.js +5 -0
  187. package/out/_next/static/chunks/3srw10h0hcztd.js +68 -0
  188. package/out/_next/static/chunks/3tgrftdet8sna.js +15 -0
  189. package/out/_next/static/chunks/3uax_eq1kjjta.js +1 -0
  190. package/out/_next/static/chunks/3uj94afpsi6cs.js +1 -0
  191. package/out/_next/static/chunks/3vgurvjr6hkyv.js +4 -0
  192. package/out/_next/static/chunks/3viepyovs19ub.js +23 -0
  193. package/out/_next/static/chunks/3vnzp3n_wd3j_.js +1 -0
  194. package/out/_next/static/chunks/3w8h5lxnd0z4z.js +1 -0
  195. package/out/_next/static/chunks/3wh4xa9dnw-55.js +194 -0
  196. package/out/_next/static/chunks/3wlvio5id54ow.js +5 -0
  197. package/out/_next/static/chunks/3wzvscqui-9ml.js +23 -0
  198. package/out/_next/static/chunks/3y8h3g1tqukrv.js +36 -0
  199. package/out/_next/static/chunks/3zcilnj6p9-t5.js +1 -0
  200. package/out/_next/static/chunks/3zmmdm68s05-t.js +217 -0
  201. package/out/_next/static/chunks/40l5d7o95aw37.js +4 -0
  202. package/out/_next/static/chunks/417kn9hki8k81.js +33 -0
  203. package/out/_next/static/chunks/42mofxcd0l7qi.js +1 -0
  204. package/out/_next/static/chunks/439tz_ubj8h-g.js +342 -0
  205. package/out/_next/static/chunks/43hfssep7ry-z.js +5 -0
  206. package/out/_next/static/chunks/45bcpjurhxb-j.js +1 -0
  207. package/out/_next/static/chunks/turbopack-2c3mg3r-05n1w.js +1 -0
  208. package/out/_offline/index.html +3 -2
  209. package/out/account/forgot-password/index.html +3 -2
  210. package/out/account/index.html +3 -2
  211. package/out/assortments/AssortmentDetailPage/index.html +3 -2
  212. package/out/assortments/index.html +3 -2
  213. package/out/assortments/new/index.html +3 -2
  214. package/out/copilot/index.html +3 -2
  215. package/out/country/CountryDetailPage/index.html +3 -2
  216. package/out/country/index.html +3 -2
  217. package/out/country/new/index.html +3 -2
  218. package/out/currency/CurrencyDetailPage/index.html +3 -2
  219. package/out/currency/index.html +3 -2
  220. package/out/currency/new/index.html +3 -2
  221. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -2
  222. package/out/delivery-provider/index.html +3 -2
  223. package/out/delivery-provider/new/index.html +3 -2
  224. package/out/enrollments/EnrollmentDetailPage/index.html +3 -2
  225. package/out/enrollments/index.html +3 -2
  226. package/out/events/EventDetailPage/index.html +3 -2
  227. package/out/events/index.html +3 -2
  228. package/out/exports/index.html +3 -2
  229. package/out/external/index.html +3 -2
  230. package/out/filters/FilterDetailPage/index.html +3 -2
  231. package/out/filters/index.html +3 -2
  232. package/out/filters/new/index.html +3 -2
  233. package/out/index.html +3 -2
  234. package/out/install/index.html +3 -2
  235. package/out/language/LanguageDetailPage/index.html +3 -2
  236. package/out/language/index.html +3 -2
  237. package/out/language/new/index.html +3 -2
  238. package/out/log-in/index.html +3 -2
  239. package/out/orders/OrderDetailPage/index.html +3 -2
  240. package/out/orders/index.html +3 -2
  241. package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -2
  242. package/out/payment-provider/index.html +3 -2
  243. package/out/payment-provider/new/index.html +3 -2
  244. package/out/products/ProductDetailPage/index.html +3 -2
  245. package/out/products/index.html +3 -2
  246. package/out/products/new/index.html +3 -2
  247. package/out/quotations/QuotationDetailPage/index.html +3 -2
  248. package/out/quotations/index.html +3 -2
  249. package/out/reset-password/index.html +3 -2
  250. package/out/sign-up/index.html +3 -2
  251. package/out/styleguide/index.html +3 -2
  252. package/out/tokens/TokenDetailPage/index.html +3 -2
  253. package/out/tokens/index.html +3 -2
  254. package/out/users/UserDetailPage/index.html +3 -2
  255. package/out/users/index.html +3 -2
  256. package/out/users/new/index.html +3 -2
  257. package/out/verify-email/index.html +3 -2
  258. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -2
  259. package/out/warehousing-provider/index.html +3 -2
  260. package/out/warehousing-provider/new/index.html +3 -2
  261. package/out/works/WorkDetailPage/index.html +3 -2
  262. package/out/works/WorkQueueListView/index.html +3 -2
  263. package/out/works/index.html +3 -2
  264. package/out/works/management/index.html +3 -2
  265. package/package.json +8 -8
  266. package/out/_next/static/F8ReqaxPvLqFJ2DaPfMdn/_buildManifest.js +0 -258
  267. package/out/_next/static/chunks/0-mytn4v5bu5h.js +0 -12
  268. package/out/_next/static/chunks/0-uh133eqcz6n.js +0 -60
  269. package/out/_next/static/chunks/0060t3kg_i0lf.js +0 -10
  270. package/out/_next/static/chunks/0186bg0b60cid.js +0 -13
  271. package/out/_next/static/chunks/018n9pot9f5uf.js +0 -90
  272. package/out/_next/static/chunks/01h4ept18s-ns.js +0 -807
  273. package/out/_next/static/chunks/02cdoh48sex9m.js +0 -1
  274. package/out/_next/static/chunks/03-z1yl608b56.js +0 -807
  275. package/out/_next/static/chunks/030bzkeke0edz.js +0 -7
  276. package/out/_next/static/chunks/037vsiy28s6dg.js +0 -41
  277. package/out/_next/static/chunks/049clkw76lm67.js +0 -16
  278. package/out/_next/static/chunks/04bb4k67x398t.js +0 -1
  279. package/out/_next/static/chunks/057evs7qr5y-t.js +0 -17
  280. package/out/_next/static/chunks/05qpw6q8uiz3l.js +0 -15
  281. package/out/_next/static/chunks/062myzj-2ehu-.js +0 -52
  282. package/out/_next/static/chunks/06l-rqlf4bp81.js +0 -108
  283. package/out/_next/static/chunks/06tejx8u1_0kg.js +0 -1
  284. package/out/_next/static/chunks/07nffhr51vke6.js +0 -59
  285. package/out/_next/static/chunks/08tyybz20igty.js +0 -15
  286. package/out/_next/static/chunks/0989pcuje2j55.js +0 -66
  287. package/out/_next/static/chunks/0_02skyivjqh6.js +0 -14
  288. package/out/_next/static/chunks/0_ngi84ak813x.js +0 -288
  289. package/out/_next/static/chunks/0bc02hascgv7z.js +0 -1
  290. package/out/_next/static/chunks/0c9ruqj2wf3n6.js +0 -905
  291. package/out/_next/static/chunks/0cblqqpscyy7w.js +0 -12
  292. package/out/_next/static/chunks/0cotrfgh1n2cx.js +0 -346
  293. package/out/_next/static/chunks/0d6_opzy2p6ik.js +0 -807
  294. package/out/_next/static/chunks/0e2e0srgvkzk9.js +0 -144
  295. package/out/_next/static/chunks/0g6hr3dmen536.js +0 -7
  296. package/out/_next/static/chunks/0gurfn3nhm859.js +0 -1
  297. package/out/_next/static/chunks/0h0r_q6xa9qr_.js +0 -1
  298. package/out/_next/static/chunks/0ht2wu-61vq9v.js +0 -807
  299. package/out/_next/static/chunks/0ibp5q64hnd88.js +0 -18
  300. package/out/_next/static/chunks/0ichlp5c67dko.js +0 -12
  301. package/out/_next/static/chunks/0iui_zfuxfa45.js +0 -12
  302. package/out/_next/static/chunks/0k6z6zl_zxqp7.js +0 -13
  303. package/out/_next/static/chunks/0kkky_8vhaeaz.js +0 -227
  304. package/out/_next/static/chunks/0lutmpv07icdg.js +0 -8
  305. package/out/_next/static/chunks/0m6jydfuy_4o3.js +0 -1
  306. package/out/_next/static/chunks/0mzh9-epgepi1.js +0 -119
  307. package/out/_next/static/chunks/0n0uzfbkfb7e5.js +0 -12
  308. package/out/_next/static/chunks/0nhczsa2mm354.js +0 -16
  309. package/out/_next/static/chunks/0pecsk3c09b19.js +0 -3
  310. package/out/_next/static/chunks/0prynyrvhm7ef.js +0 -2
  311. package/out/_next/static/chunks/0q-14a7j6afh3.js +0 -1
  312. package/out/_next/static/chunks/0r5wwinf72z4g.js +0 -1
  313. package/out/_next/static/chunks/0razrbxeai797.js +0 -807
  314. package/out/_next/static/chunks/0ryqvctymlr3k.js +0 -12
  315. package/out/_next/static/chunks/0se09klbk8drd.js +0 -68
  316. package/out/_next/static/chunks/0sh5256hzmj3b.js +0 -14
  317. package/out/_next/static/chunks/0srpqs12m-bwy.js +0 -13
  318. package/out/_next/static/chunks/0ukyxgmnqos6o.js +0 -1
  319. package/out/_next/static/chunks/0uv4d5f9o8wu1.js +0 -10
  320. package/out/_next/static/chunks/0uw9cbq0ivaz0.js +0 -1
  321. package/out/_next/static/chunks/0vls1lbu_rh78.js +0 -342
  322. package/out/_next/static/chunks/0vx_1vxljh4tn.js +0 -13
  323. package/out/_next/static/chunks/0vxe9bw7ffqy2.js +0 -15
  324. package/out/_next/static/chunks/0w0zigi7aws2m.js +0 -1
  325. package/out/_next/static/chunks/0w2zoz_fn_wha.js +0 -137
  326. package/out/_next/static/chunks/0xuevvy5i5d12.js +0 -138
  327. package/out/_next/static/chunks/0xxvsq70e4xn0.js +0 -1
  328. package/out/_next/static/chunks/0yxc1yy1eq4u3.js +0 -149
  329. package/out/_next/static/chunks/1-uz_5-063kh9.js +0 -188
  330. package/out/_next/static/chunks/10h7lznd10mmp.js +0 -384
  331. package/out/_next/static/chunks/10os1s66nimmi.js +0 -110
  332. package/out/_next/static/chunks/12_5-baf13q49.js +0 -195
  333. package/out/_next/static/chunks/12qzh85d5on4y.js +0 -44
  334. package/out/_next/static/chunks/12ukdi5bzlbeo.js +0 -596
  335. package/out/_next/static/chunks/1398hevtpl_69.js +0 -1
  336. package/out/_next/static/chunks/13qk8ukzu1snm.js +0 -288
  337. package/out/_next/static/chunks/164wr2-2gfnlb.js +0 -1
  338. package/out/_next/static/chunks/16ey81skn09dz.js +0 -1
  339. package/out/_next/static/chunks/18kae_yjyhjwf.js +0 -16
  340. package/out/_next/static/chunks/19y4w6_d_qiou.js +0 -1
  341. package/out/_next/static/chunks/1_quktgfhf40v.js +0 -31
  342. package/out/_next/static/chunks/1ae-9ft5cgojf.js +0 -1
  343. package/out/_next/static/chunks/1aegvtb5jv57q.js +0 -12
  344. package/out/_next/static/chunks/1cgxgd2cf8u3j.js +0 -157
  345. package/out/_next/static/chunks/1cp4-dvxowp4c.js +0 -24
  346. package/out/_next/static/chunks/1d951b6ed8oqn.js +0 -110
  347. package/out/_next/static/chunks/1d_puhcn8lg6q.js +0 -51
  348. package/out/_next/static/chunks/1drrou5kp4qdz.js +0 -1
  349. package/out/_next/static/chunks/1e4_28-3u5o85.js +0 -30
  350. package/out/_next/static/chunks/1f3mflnvp8_7-.js +0 -31
  351. package/out/_next/static/chunks/1f5-j4f3irx0j.js +0 -147
  352. package/out/_next/static/chunks/1fzbon-ih4_3j.js +0 -1
  353. package/out/_next/static/chunks/1g57y7cq7tjcb.js +0 -9
  354. package/out/_next/static/chunks/1g8f6jrb9cp9v.js +0 -13
  355. package/out/_next/static/chunks/1gksg35fivk0-.js +0 -224
  356. package/out/_next/static/chunks/1gt65pz91hyuz.js +0 -1
  357. package/out/_next/static/chunks/1gy9ae4fpd6jm.js +0 -17
  358. package/out/_next/static/chunks/1hq9yt63076pk.js +0 -16
  359. package/out/_next/static/chunks/1ikm9qcx--k3u.js +0 -807
  360. package/out/_next/static/chunks/1izpxynqp99t4.js +0 -193
  361. package/out/_next/static/chunks/1j2ko85jp-5wy.js +0 -807
  362. package/out/_next/static/chunks/1k-cn_5ey1u62.js +0 -15
  363. package/out/_next/static/chunks/1k0mvn915uz76.js +0 -14
  364. package/out/_next/static/chunks/1l4snbkce_jb6.js +0 -15
  365. package/out/_next/static/chunks/1lbsdlf5h6ojc.js +0 -16
  366. package/out/_next/static/chunks/1mwvnv71bl7mc.js +0 -1
  367. package/out/_next/static/chunks/1n7i2rp59o9o8.js +0 -384
  368. package/out/_next/static/chunks/1pklei2ds10d2.js +0 -66
  369. package/out/_next/static/chunks/1pxor-3_vf3du.js +0 -31
  370. package/out/_next/static/chunks/1qp68765j1aiv.js +0 -61
  371. package/out/_next/static/chunks/1r-cvj3mpr-7x.js +0 -87
  372. package/out/_next/static/chunks/1sivy8bkkmwxl.js +0 -5
  373. package/out/_next/static/chunks/1vk6h4qps69vq.js +0 -12
  374. package/out/_next/static/chunks/1vx8_u7-f7q8u.js +0 -28
  375. package/out/_next/static/chunks/1weq9keqxiqpy.js +0 -73
  376. package/out/_next/static/chunks/1xbofs3ibkjvj.js +0 -1
  377. package/out/_next/static/chunks/1ziicn0eb_yji.js +0 -16
  378. package/out/_next/static/chunks/1zza9faw4t3b_.js +0 -46
  379. package/out/_next/static/chunks/1zzpf1xbmchcj.js +0 -132
  380. package/out/_next/static/chunks/2-4ng9fxftmld.js +0 -1
  381. package/out/_next/static/chunks/201rx84kyo8ag.js +0 -1
  382. package/out/_next/static/chunks/20rtv8f0brb0n.js +0 -43
  383. package/out/_next/static/chunks/217_5onj-woma.js +0 -190
  384. package/out/_next/static/chunks/21a19t2pe0fpg.js +0 -81
  385. package/out/_next/static/chunks/21o2yfegozc0m.js +0 -16
  386. package/out/_next/static/chunks/22w2ovaffle-i.js +0 -21
  387. package/out/_next/static/chunks/234pfdqctlnyt.js +0 -100
  388. package/out/_next/static/chunks/252jebodi67kg.js +0 -1
  389. package/out/_next/static/chunks/25d8wr34sbm__.js +0 -15
  390. package/out/_next/static/chunks/275o3ly3svw4p.js +0 -1
  391. package/out/_next/static/chunks/28z1z7in8-kbg.js +0 -26
  392. package/out/_next/static/chunks/29w1exzy704_7.js +0 -8
  393. package/out/_next/static/chunks/2bb7696udjx6k.js +0 -44
  394. package/out/_next/static/chunks/2bm5aw8hqlgf2.js +0 -50
  395. package/out/_next/static/chunks/2c4vy8ofex0ti.js +0 -14
  396. package/out/_next/static/chunks/2c7gw8ronvu-c.js +0 -807
  397. package/out/_next/static/chunks/2cbr3ybo4xsrv.js +0 -43
  398. package/out/_next/static/chunks/2eh6ku1a1zbs4.js +0 -135
  399. package/out/_next/static/chunks/2fed4-6c0ghqp.js +0 -99
  400. package/out/_next/static/chunks/2g39exixp92yf.js +0 -13
  401. package/out/_next/static/chunks/2gil5igdermzh.js +0 -36
  402. package/out/_next/static/chunks/2hm0mbq0vtqmw.js +0 -5
  403. package/out/_next/static/chunks/2hvt_8j6jkd_n.js +0 -14
  404. package/out/_next/static/chunks/2i5uj5i4z-xu8.js +0 -188
  405. package/out/_next/static/chunks/2ismth22knujm.js +0 -1
  406. package/out/_next/static/chunks/2iuznbar_ttrh.js +0 -18
  407. package/out/_next/static/chunks/2j6cph79-th54.js +0 -7
  408. package/out/_next/static/chunks/2jjgby8cd1gdj.js +0 -14
  409. package/out/_next/static/chunks/2jln1kjysf99p.js +0 -1
  410. package/out/_next/static/chunks/2jtk4-i4e9lug.js +0 -1
  411. package/out/_next/static/chunks/2k020ab3luqev.js +0 -1
  412. package/out/_next/static/chunks/2kbieaechn8m8.js +0 -1
  413. package/out/_next/static/chunks/2ljoq6sr-g2da.js +0 -1
  414. package/out/_next/static/chunks/2lwxs_ly4bz1o.js +0 -12
  415. package/out/_next/static/chunks/2mr2k4sb6i021.js +0 -32
  416. package/out/_next/static/chunks/2na27-e8gs0-f.js +0 -171
  417. package/out/_next/static/chunks/2nn3_f04lnr0b.js +0 -807
  418. package/out/_next/static/chunks/2ocwu5vbc5r34.js +0 -73
  419. package/out/_next/static/chunks/2qprgjhjl8d4c.js +0 -807
  420. package/out/_next/static/chunks/2rtyphk0o1hbr.js +0 -5
  421. package/out/_next/static/chunks/2skxi0oqka3ef.js +0 -26
  422. package/out/_next/static/chunks/2sukt9l-1md8_.js +0 -25
  423. package/out/_next/static/chunks/2t3t6gm5vlg_0.js +0 -58
  424. package/out/_next/static/chunks/2vt52_i-6cdbh.js +0 -10
  425. package/out/_next/static/chunks/2w5y5xf0nriwx.js +0 -1
  426. package/out/_next/static/chunks/30g-s0ioynhjx.js +0 -224
  427. package/out/_next/static/chunks/31y7dx6ytab7h.js +0 -3
  428. package/out/_next/static/chunks/363ng2l8o_bee.js +0 -101
  429. package/out/_next/static/chunks/36jick0alh9oa.js +0 -50
  430. package/out/_next/static/chunks/36pa0vs0telmp.js +0 -1
  431. package/out/_next/static/chunks/36yth4lm03_j8.js +0 -1
  432. package/out/_next/static/chunks/37phwvegpccj0.js +0 -217
  433. package/out/_next/static/chunks/38b7m-s26ciug.js +0 -137
  434. package/out/_next/static/chunks/38ipj45w-tqay.js +0 -21
  435. package/out/_next/static/chunks/38pz7fmyf6ay0.js +0 -1
  436. package/out/_next/static/chunks/39634va9fx9s2.js +0 -13
  437. package/out/_next/static/chunks/3a0hqx7ohm5lh.js +0 -23
  438. package/out/_next/static/chunks/3a7wm2331v13r.js +0 -3
  439. package/out/_next/static/chunks/3dr_oa5hx41is.js +0 -14
  440. package/out/_next/static/chunks/3e7w6ko5psik7.js +0 -17
  441. package/out/_next/static/chunks/3ebh4y7h6y1vq.js +0 -58
  442. package/out/_next/static/chunks/3eow7lw1727kt.js +0 -13
  443. package/out/_next/static/chunks/3f1gb4_hyhtho.js +0 -20
  444. package/out/_next/static/chunks/3g4qj6_qh97q_.js +0 -12
  445. package/out/_next/static/chunks/3gfjdynb9mg8h.js +0 -23
  446. package/out/_next/static/chunks/3gx4smk7pb27x.js +0 -119
  447. package/out/_next/static/chunks/3jcf4ei6zgnca.js +0 -17
  448. package/out/_next/static/chunks/3kisw9hre44e5.js +0 -807
  449. package/out/_next/static/chunks/3mnt471ayfsvh.js +0 -22
  450. package/out/_next/static/chunks/3ondw3-zthjz5.js +0 -15
  451. package/out/_next/static/chunks/3opuxnw_w3yb5.js +0 -101
  452. package/out/_next/static/chunks/3oxv1fo564rrf.js +0 -142
  453. package/out/_next/static/chunks/3ra_41-fw410n.js +0 -14
  454. package/out/_next/static/chunks/3s22ovhmk-4h7.js +0 -1
  455. package/out/_next/static/chunks/3sktz8258so64.js +0 -2
  456. package/out/_next/static/chunks/3tq-bb0j1_lpu.js +0 -14
  457. package/out/_next/static/chunks/3v1dxn4rp-o3v.js +0 -315
  458. package/out/_next/static/chunks/3w_wwl_hd91od.js +0 -1
  459. package/out/_next/static/chunks/3ww_p-agyd9u-.js +0 -14
  460. package/out/_next/static/chunks/3wzzh45yillzb.js +0 -1
  461. package/out/_next/static/chunks/3xfj8_2nd5d_1.js +0 -1
  462. package/out/_next/static/chunks/3xhmfg-981n_5.js +0 -61
  463. package/out/_next/static/chunks/3yz34q3ulli7q.js +0 -12
  464. package/out/_next/static/chunks/3z_c5kpm-e1ty.js +0 -15
  465. package/out/_next/static/chunks/3zs002htik_8l.js +0 -21
  466. package/out/_next/static/chunks/4079hjuumfmm2.js +0 -31
  467. package/out/_next/static/chunks/40922jbr_e5ug.js +0 -51
  468. package/out/_next/static/chunks/40zy6mxa-be0m.js +0 -1
  469. package/out/_next/static/chunks/41fbmiggueudh.js +0 -13
  470. package/out/_next/static/chunks/43e0fp97w800k.js +0 -13
  471. package/out/_next/static/chunks/43gv4x1sfyb5l.js +0 -9
  472. package/out/_next/static/chunks/44nj9c766dqvc.js +0 -807
  473. package/out/_next/static/chunks/44r51e87s4z_d.js +0 -8
  474. package/out/_next/static/chunks/458tg2eg5h8j5.js +0 -324
  475. package/out/_next/static/chunks/45cd4ypk94sw2.js +0 -807
  476. package/out/_next/static/chunks/turbopack-01866gjdddrxa.js +0 -1
  477. package/out/_next/static/chunks/turbopack-08ttg7vxsdnsj.js +0 -1
  478. package/out/_next/static/chunks/turbopack-0a3j0ezn8okfg.js +0 -1
  479. package/out/_next/static/chunks/turbopack-0anbjm4c1j4u4.js +0 -1
  480. package/out/_next/static/chunks/turbopack-0ga3wfg-oyyst.js +0 -1
  481. package/out/_next/static/chunks/turbopack-0m3lvbvrn923g.js +0 -1
  482. package/out/_next/static/chunks/turbopack-0pmjdjcdx7cqp.js +0 -1
  483. package/out/_next/static/chunks/turbopack-0ptvhnhsw0_c7.js +0 -1
  484. package/out/_next/static/chunks/turbopack-0s4b5r_1d8yqv.js +0 -1
  485. package/out/_next/static/chunks/turbopack-0sihqflu4qpvw.js +0 -1
  486. package/out/_next/static/chunks/turbopack-0tc31uax4buqq.js +0 -1
  487. package/out/_next/static/chunks/turbopack-0w2rzh4i3j2og.js +0 -1
  488. package/out/_next/static/chunks/turbopack-10ldzl5n31zl-.js +0 -1
  489. package/out/_next/static/chunks/turbopack-19e_bi5k2rqyy.js +0 -1
  490. package/out/_next/static/chunks/turbopack-19i6-4a5o4fil.js +0 -1
  491. package/out/_next/static/chunks/turbopack-19vr9o5829d-f.js +0 -1
  492. package/out/_next/static/chunks/turbopack-19yw5qwon7l57.js +0 -1
  493. package/out/_next/static/chunks/turbopack-1cx5i7_gdoz5k.js +0 -1
  494. package/out/_next/static/chunks/turbopack-1d-c7awe26kf5.js +0 -1
  495. package/out/_next/static/chunks/turbopack-1l1aen9tojmq4.js +0 -1
  496. package/out/_next/static/chunks/turbopack-1o1rar8ouv6h9.js +0 -1
  497. package/out/_next/static/chunks/turbopack-1od_4a7nj02l4.js +0 -1
  498. package/out/_next/static/chunks/turbopack-1r_0o22d_puxo.js +0 -1
  499. package/out/_next/static/chunks/turbopack-1rmdtpi005n_6.js +0 -1
  500. package/out/_next/static/chunks/turbopack-1wx5785osz26z.js +0 -1
  501. package/out/_next/static/chunks/turbopack-21vayl2_q4r5u.js +0 -1
  502. package/out/_next/static/chunks/turbopack-23nr2ioaqw90j.js +0 -1
  503. package/out/_next/static/chunks/turbopack-23u97wxsuqiqb.js +0 -1
  504. package/out/_next/static/chunks/turbopack-24ylsu2au7hg1.js +0 -1
  505. package/out/_next/static/chunks/turbopack-28_dvdmt6lvhn.js +0 -1
  506. package/out/_next/static/chunks/turbopack-2bo7hmw4eirxu.js +0 -1
  507. package/out/_next/static/chunks/turbopack-2dk8ur1fvwxzj.js +0 -1
  508. package/out/_next/static/chunks/turbopack-2e_wy0ffi64id.js +0 -1
  509. package/out/_next/static/chunks/turbopack-2fuk9oepxr5n0.js +0 -1
  510. package/out/_next/static/chunks/turbopack-2g2viapamsvwe.js +0 -1
  511. package/out/_next/static/chunks/turbopack-2ga09m38zacev.js +0 -1
  512. package/out/_next/static/chunks/turbopack-2pxtve7lryqre.js +0 -1
  513. package/out/_next/static/chunks/turbopack-2qbfd_-7v5dbo.js +0 -1
  514. package/out/_next/static/chunks/turbopack-2rz_y4ejrvafp.js +0 -1
  515. package/out/_next/static/chunks/turbopack-2u0ls0liblo_9.js +0 -1
  516. package/out/_next/static/chunks/turbopack-2u_328z53ed9p.js +0 -1
  517. package/out/_next/static/chunks/turbopack-2xfom16ggx1i3.js +0 -1
  518. package/out/_next/static/chunks/turbopack-2ycfwit0p-fkf.js +0 -1
  519. package/out/_next/static/chunks/turbopack-2yekm5ij2g-aw.js +0 -1
  520. package/out/_next/static/chunks/turbopack-3-w-v8og1lok2.js +0 -1
  521. package/out/_next/static/chunks/turbopack-30qkgccwlkv7n.js +0 -1
  522. package/out/_next/static/chunks/turbopack-36bl9-rerhcfg.js +0 -1
  523. package/out/_next/static/chunks/turbopack-37a6lyjyz7fts.js +0 -1
  524. package/out/_next/static/chunks/turbopack-37lb9ujef-ujm.js +0 -1
  525. package/out/_next/static/chunks/turbopack-39nctu3yv9iv4.js +0 -1
  526. package/out/_next/static/chunks/turbopack-3_mmmbs60vr14.js +0 -1
  527. package/out/_next/static/chunks/turbopack-3_o3qz69ih0uu.js +0 -1
  528. package/out/_next/static/chunks/turbopack-3cv39r7v3s2gr.js +0 -1
  529. package/out/_next/static/chunks/turbopack-3cv3hgsoo_z1k.js +0 -1
  530. package/out/_next/static/chunks/turbopack-3pgmc-lv74ewz.js +0 -1
  531. package/out/_next/static/chunks/turbopack-3uj40sz7i7jg0.js +0 -1
  532. package/out/_next/static/chunks/turbopack-3v4nxmdavly34.js +0 -1
  533. package/out/_next/static/chunks/turbopack-3vfm6fp92up6y.js +0 -1
  534. package/out/_next/static/chunks/turbopack-3vyi51cuxeowy.js +0 -1
  535. package/out/_next/static/chunks/turbopack-3w26eu86co02z.js +0 -1
  536. package/out/_next/static/chunks/turbopack-3zc0h1216mtm2.js +0 -1
  537. package/out/_next/static/chunks/turbopack-4166pmk5_y_4x.js +0 -1
  538. package/out/_next/static/chunks/turbopack-431y1sh-m_0mp.js +0 -1
  539. /package/out/_next/static/{F8ReqaxPvLqFJ2DaPfMdn → 4ESrB8YpR2n44PFePtbgX}/_clientMiddlewareManifest.js +0 -0
  540. /package/out/_next/static/{F8ReqaxPvLqFJ2DaPfMdn → 4ESrB8YpR2n44PFePtbgX}/_ssgManifest.js +0 -0
@@ -1,384 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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 s=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,s],73298)},51870,e=>{"use strict";var t=e.i(59080),a=e.i(32171),s=e.i(70693),r=e.i(73298);e.s(["default",0,e=>{let{customProperties:l,hydrateFragment:i}=(0,s.default)(),{data:d,loading:o,error:n}=(0,a.useQuery)(((e="")=>t.gql`
128
- query CurrentUser {
129
- me {
130
- ...UserFragment
131
- ${e}
132
- }
133
- }
134
- ${r.default}
135
- `)(l?.User)),c=d?.me,u=i(l?.User,c||null);return{currentUser:c,loading:o,error:n,extendedData:u}}])},41215,e=>{"use strict";e.s(["default",0,class extends Error{constructor(e){super(e),this.name="CustomError"}}])},62100,e=>{"use strict";var t=e.i(91398),a=e.i(24557),s=e.i(72043),r=e.i(69322);e.s(["default",0,({onClick:e,className:l="",icon:i=null,textRight:d="",textLeft:o="",ariaLabel:n=""})=>{let{formatMessage:c}=(0,r.useIntl)();return(0,t.jsxs)("button",{"aria-label":n||c({id:"delete",defaultMessage:"Delete"}),id:"delete_button",type:"button",onClick:e,className:(0,s.default)("flex justify-center items-center rounded-full dark:bg-slate-800 p-2 w-8 h-8 text-sm text-rose-500 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/20 focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2",l),children:[o||"",i||(0,t.jsx)(a.TrashIcon,{className:"h-5 w-5"}),d||""]})}])},31494,e=>{"use strict";var t=e.i(91398),a=e.i(69322),s=e.i(84818),r=e.i(35065),l=e.i(64591);let i=({value:e})=>{let{formatDateTime:i}=(0,s.default)(),{formatMessage:d}=(0,a.useIntl)();return(e=>{try{return new URL(e)}catch{return!1}})(e)?(e=>{try{let{pathname:t}=new URL(e),a=t?.split("."),s=`.${a[a.length-1]}`;return[".jpg",".jpeg",".png",".gif",".bmp"].includes(s)}catch{return!1}})(e)?(0,t.jsx)("div",{className:"ring-2 ring-offset-2 ring-slate-900 group block w-full aspect-w-10 aspect-h-7 rounded-lg bg-slate-50 overflow-hidden",children:(0,t.jsx)(r.default,{src:e,className:"relative h-10 w-10 rounded-full",width:100,height:100,alt:d({id:"image_not_available",defaultMessage:"Image not available"})})}):(0,t.jsx)("div",{className:"ml-4 shrink-0",children:(0,t.jsxs)("a",{href:e,className:"font-medium text-slate-900 hover:text-slate-800",target:"_blank",rel:"noreferrer",children:[new URL(e).host,"...",new URL(e).pathname]})}):(e=>{try{return"boolean"==typeof JSON.parse(e)}catch{return!1}})(e)?(0,t.jsx)(l.default,{disabled:!0,active:JSON.parse(e)}):!Number.isNaN(Date.parse(e))&&Number.isNaN(Number(e))?i(e,{dateStyle:"long",timeStyle:"short"}):(!Number.isNaN(e),e)},d=({value:e})=>(0,t.jsx)("h3",{className:"text-base font-medium",children:(0,t.jsx)("span",{className:"text-slate-900",children:e})}),o=e=>{let{data:a,parentKey:s}=e;if(!a)return null;let r=Object.keys(a),l=[];return void 0!==s&&l.push((0,t.jsx)(d,{value:s},s)),r.forEach(e=>{let r=a[e];if(Array.isArray(r))if(l.push((0,t.jsx)(d,{value:e},e)),r.every(e=>"string"==typeof e||"number"==typeof e))l.push((0,t.jsx)("div",{className:" p-2",children:r?.map(e=>(0,t.jsx)("span",{className:"inline-flex items-center rounded-md bg-slate-50 px-2.5 py-0.5 text-sm font-medium text-slate-800 ml-2",children:(0,t.jsx)(i,{value:e})},e))},e));else{let a=[];r.forEach((e,s)=>{a.push((0,t.jsx)("li",{className:"flex items-center text-slate-600 justify-between py-3 pl-3 pr-4 text-sm",children:o({data:e,parentKey:s})},s))}),l.push((0,t.jsx)("ul",{className:"divide-y divide-slate-200 rounded-md ",children:a},e))}else"object"==typeof r?l.push(o({data:r,parentKey:e})):void 0===s?l.push((0,t.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:py-5",children:[(0,t.jsx)("dt",{className:"text-sm font-medium text-slate-700",children:(0,t.jsx)(d,{value:e},e)}),(0,t.jsx)("dd",{className:"mt-1 text-sm text-slate-900 sm:col-span-2 sm:mt-0",children:(0,t.jsx)(i,{value:r})})]},e)):l.push((0,t.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:py-5 sm:px-6",children:[(0,t.jsx)("dt",{className:"text-sm font-medium text-slate-700",children:(0,t.jsx)(d,{value:e},e)}),(0,t.jsx)("dd",{className:"mt-1 text-sm text-slate-900 sm:col-span-2 sm:mt-0",children:(0,t.jsx)(i,{value:r})})]},e))}),(0,t.jsx)("div",{className:" bg-white px-4 py-5 ",children:(0,t.jsx)("dl",{children:l})})};e.s(["default",0,o])},5505,e=>{"use strict";var t=e.i(91398),a=e.i(91788),s=e.i(72043);let r=(0,a.createContext)(!1);e.s(["FormWrapperContext",0,r,"default",0,({children:e,className:a=""})=>(0,t.jsx)(r.Provider,{value:!0,children:(0,t.jsx)("div",{className:"sm:max-w-full",children:(0,t.jsx)("div",{className:(0,s.default)("bg-white dark:bg-slate-800 rounded-md shadow-sm overflow-hidden",a),children:e})})})])},57468,e=>{"use strict";var t=e.i(91398),a=e.i(72043),s=e.i(69322),r=e.i(99160);e.s(["default",0,({cancelText:e=null,showCancel:l=!0,submitText:i=null,showSubmit:d=!0,onCancel:o,className:n=""})=>{let{formatMessage:c}=(0,s.useIntl)();return(0,t.jsxs)("span",{className:(0,a.default)("flex shrink-0 items-center space-x-4 py-5 pl-1",n),children:[l?(0,t.jsx)("button",{onClick:o,"data-id":"cancel_update",type:"button",className:(0,a.default)("focus:ring-slate-800","inline-flex items-center rounded-md border border-slate-300 dark:border-slate-700 bg-white dark:bg-slate-800 px-4 py-2 text-sm font-medium text-slate-700 dark:text-slate-300 shadow-xs hover:bg-slate-50 dark:hover:bg-slate-700 focus:outline-hidden focus:ring-2 focus:ring-slate-800 focus:ring-offset-2"),children:e||c({id:"cancel",defaultMessage:"Cancel"})}):null,d?(0,t.jsx)(r.default,{label:i||c({id:"save",defaultMessage:"Save"})}):null]})}])},60195,e=>{"use strict";var t=e.i(91398),a=e.i(72043);e.s(["default",0,({documentationLabel:e,documentation:s=null,mainContent:r=null,sideComponents:l=null,className:i=null,children:d})=>(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:(0,a.default)("mt-5 lg:grid lg:grid-cols-3 lg:gap-6",i),children:[(0,t.jsx)("div",{className:"lg:col-span-1 mt-10 lg:mt-1",children:(0,t.jsxs)("div",{className:"px-4 sm:px-0",children:[(0,t.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",children:e}),(0,t.jsx)("div",{className:"mt-1 text-sm text-slate-600 dark:text-slate-500",children:s}),l]})}),(0,t.jsx)("div",{className:"lg:col-span-2 lg:mt-0",children:d||r})]})})])},41523,e=>{"use strict";var t=e.i(91398),a=e.i(72043),s=e.i(3828),r=e.i(91788),l=e.i(69322);e.s(["default",0,({children:e,tabItems:i,defaultTab:d,updateRoute:o=!0})=>{let n=(0,s.useRouter)(),{tab:c=d}=n?.query||{},u=Array.isArray(c)?c[0]:c,{formatMessage:m}=(0,l.useIntl)(),f=e=>{if(o){let{sort:t,...a}=n?.query||{};n.push({query:{...a,tab:e}},void 0,{shallow:!0})}};return(0,t.jsxs)("div",{className:"mt-10",children:[(0,t.jsxs)("div",{className:"lg:hidden",children:[(0,t.jsx)("label",{htmlFor:"selected-tab",className:"sr-only",children:m({id:"select_tab",defaultMessage:"Select a tab"})}),(0,t.jsx)("select",{onChange:e=>f(e.target.value),id:"selected-tab",name:"selected-tab",className:"mt-1 block dark:bg-slate-800 dark:text-white w-full rounded-md border-slate-300 dark:border-slate-600 py-2 pl-3 pr-10 text-base capitalize focus:outline-none focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:border-slate-800 dark:focus:border-slate-400 sm:text-sm",value:u,children:i.filter(Boolean).map(e=>(0,t.jsx)("option",{value:e.id,className:"dark:text-white",children:e?.title||e?.id},e.id))})]}),(0,t.jsx)("div",{className:"mt-5 hidden lg:block",children:(0,t.jsx)("div",{className:"",children:(0,t.jsx)("nav",{className:"flex flex-wrap gap-3",children:i.filter(Boolean).map(e=>(0,t.jsx)("a",{id:e.id,tabIndex:0,onClick:()=>f(e.id),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),f(e.id))},className:(0,a.default)({"cursor-pointer rounded-lg border border-slate-300 dark:border-slate-600 bg-white text-slate-900 dark:text-slate-100 dark:bg-slate-900 shadow-sm dark:hover:border-slate-500 hover:border-slate-400 focus:outline-none focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:ring-offset-2 dark:focus:ring-offset-slate-900":u===e.id},"cursor-pointer relative whitespace-nowrap border border-slate-200 dark:border-slate-800 py-2 px-1 pr-3 pl-2 text-sm dark:text-slate-400 font-medium hover:bg-white dark:hover:bg-slate-800 hover:border-slate-300 dark:hover:border-slate-500 rounded-lg focus:outline-none focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:ring-offset-2 dark:focus:ring-offset-slate-900"),children:(0,t.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,t.jsx)("div",{children:e.Icon}),(0,t.jsx)("div",{className:"capitalize",children:e?.title||e?.id}),e?.length?(0,t.jsx)("span",{className:"absolute top-0 right-0 inline-flex translate-x-1/2 -translate-y-1/2 transform items-center justify-center rounded-full bg-slate-400 px-1 py-0.5 text-sm leading-none text-slate-900",children:e?.length}):null]})},e.id))})})}),(0,t.jsx)("div",{className:"mt-5",children:r.default.cloneElement(e,{selectedView:u})})]})}])},37932,e=>{"use strict";var t=e.i(91398),a=e.i(69322),s=e.i(6607),r=e.i(65153),l=e.i(69211),i=e.i(96015),d=e.i(98949),o=e.i(57468);let n=({tags:e,onSubmit:s,onCancel:r,selectOptions:n=[]})=>{let{formatMessage:c}=(0,a.useIntl)(),u=c({id:"tags_updated",defaultMessage:"Tags updated successfully"}),m=(0,d.default)({submit:s,successMessage:u,onSubmitSuccess:r,initialValues:{tags:e}});return(0,t.jsxs)(l.default,{form:m,id:"add_tag_form",children:[(0,t.jsx)("div",{children:(0,t.jsx)(i.default,{name:"tags",id:"tags",label:c({id:"tags",defaultMessage:"Tags"}),tagList:e,selectOptions:n})}),(0,t.jsx)("div",{className:"border border-t-slate-100 bg-slate-50 mt-6 -mx-6 -mb-6 px-6 dark:bg-slate-900 dark:border-0",children:(0,t.jsx)(o.default,{onCancel:r,className:"justify-end "})})]})};e.s(["default",0,({defaultValue:e,onSubmit:l,enableEdit:i,availableTagOptions:d=[]})=>{let{formatMessage:o}=(0,a.useIntl)(),{setModal:c}=(0,s.default)();return(0,t.jsxs)("div",{className:"flex items-center mr-auto gap-2",children:[(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:e?.length?e.map((e,a)=>(0,t.jsx)("span",{children:(0,t.jsx)(r.default,{text:e,color:"sky"})},`${e}${a+1}`)):(0,t.jsx)("span",{children:(0,t.jsx)(r.default,{text:o({id:"no_tag",defaultMessage:"No Tag"}),color:"slate"})})}),i&&(0,t.jsx)("button",{id:"add_tag",type:"button",className:"rounded-sm hover:shadow-sm px-3 py-2 text-xs inline-flex items-center justify-center text-slate-800 hover:text-slate-900 hover:bg-slate-50 hover:border border-transparent border-1 hover:border-slate-300 dark:text-slate-400 dark:hover:text-slate-200 dark:hover:bg-slate-800 transition-colors focus:outline-hidden focus:ring-2 focus:ring-slate-800",onClick:()=>c((0,t.jsx)(n,{tags:e||[],onCancel:()=>c(""),onSubmit:l,selectOptions:d})),children:o({id:"edit_tags",defaultMessage:"Edit tags"})})]})}],37932)},64591,e=>{"use strict";var t=e.i(91398),a=e.i(72043),s=e.i(3828),r=e.i(83147);e.s(["default",0,({toggleText:e="",toggleKey:l=null,onToggle:i=null,active:d=!1,className:o="",disabled:n=!1,...c})=>{let u=(0,s.useRouter)(),m=u?.query?.[l]==="true"||d;return(0,t.jsxs)("div",{className:(0,a.default)("",o),children:[(0,t.jsxs)("button",{id:l,disabled:n,type:"button",className:(0,a.default)("relative inline-flex h-3.5 w-9 shrink-0 cursor-pointer rounded-full border-1 border-transparent transition-all duration-200 ease-in-out focus:outline-hidden focus:ring-2 focus:ring-slate-400 focus:ring-offset-2",{"bg-slate-200 dark:bg-slate-700":!m,"bg-emerald-500 dark:bg-emerald-600 shadow-sm":m}),role:"switch",onClick:i||(()=>{let{skip:e,...t}=u.query;u.push({query:(0,r.normalizeQuery)(t,!m,l)})}),"aria-checked":m?"true":"false",...c,children:[(0,t.jsx)("span",{className:"sr-only",children:e}),(0,t.jsxs)("span",{className:(0,a.default)("ml-0.5 pointer-events-none relative inline-block h-3 w-3 transform rounded-full bg-white shadow-sm ring-0 transition-all duration-200 ease-in-out",{"translate-x-5 shadow-md":m,"translate-x-0":!m}),children:[(0,t.jsx)("span",{className:(0,a.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-0 duration-100 ease-out":m,"opacity-100 duration-200 ease-in":!m}),"aria-hidden":"true",children:(0,t.jsx)("svg",{className:"h-3 w-3 text-slate-400",fill:"none",viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)("span",{className:(0,a.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-100 duration-200 ease-in":m,"opacity-0 duration-100 ease-out":!m}),"aria-hidden":"true",children:(0,t.jsx)("svg",{className:"h-3 w-3 text-emerald-500",fill:"currentColor",viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"})})})]})]}),(0,t.jsx)("span",{className:"ml-3",id:"annual-billing-label",children:(0,t.jsx)("span",{className:"text-sm font-medium text-slate-900 dark:text-slate-200",children:e})})]})}])},57561,48539,55989,e=>{"use strict";var t=e.i(91788),a=e.i(91398),s=e.i(69322),r=e.i(51713),l=e.i(98520),i=e.i(59080),d=e.i(32171);let o=i.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,d.useQuery)(o,{fetchPolicy:"cache-first"}),{shopInfo:s}=e||{};return{shopInfo:s,defaultLocale:[s?.language?.isoCode,s?.country?.isoCode?.toUpperCase()].filter(Boolean)?.join("-"),loading:t,error:a}};e.s(["default",0,n],48539);var c=e.i(79684);let u=(0,t.createContext)(void 0);e.s(["AppContextWrapper",0,({children:e,onlyFull:i=!1})=>{let d,{languages:o}=(0,r.default)(),{locale:m}=(0,s.useIntl)(),[f,h]=(0,c.default)("selectedLocale",null),{shopInfo:g,loading:x}=n(),{countries:p}=(0,l.default)(),[v,b]=(0,t.useState)(m),y=e=>{h(e),b(e)};(0,t.useEffect)(()=>{f?b(f):x||y(`${g?.language?.isoCode}-${g?.country?.isoCode?.toUpperCase()}`)},[g,x,m]);let w=(d=[],o.forEach(({_id:e,isoCode:t})=>{d.push({_id:e,isoCode:t}),p.forEach(({isoCode:a,_id:s})=>{let r=[t,a.toUpperCase()].join("-");(e=>{try{return new Intl.DateTimeFormat(e).resolvedOptions().locale.toLowerCase()===e.toLowerCase()}catch(e){return!1}})(r)&&d.push({_id:`${s}-${e}`,isoCode:r})})}),d).filter(e=>!i||e.isoCode.includes("-")),j=!!g?.language&&!!g?.country;return(0,a.jsx)(u.Provider,{value:{selectedLocale:v,setSelectedLocale:y,languageDialectList:w,isSystemReady:j,shopInfo:g},children:e})},"default",0,u],55989),e.s(["default",0,()=>{let e=(0,t.useContext)(u);if(!e)throw Error("useLocale must be used within a LocaleProvider");return e}],57561)},64479,e=>{"use strict";var t=e.i(59080),a=e.i(76204);let s=t.gql`
173
- mutation ConfirmMediaUpload(
174
- $mediaUploadTicketId: ID!
175
- $size: Int!
176
- $type: String!
177
- ) {
178
- confirmMediaUpload(
179
- mediaUploadTicketId: $mediaUploadTicketId
180
- size: $size
181
- type: $type
182
- ) {
183
- _id
184
- name
185
- type
186
- size
187
- url
188
- }
189
- }
190
- `;e.s(["default",0,(e={})=>{let[t]=(0,a.useMutation)(s,e);return{confirmMediaUpload:async({mediaUploadTicketId:e,size:a,type:s})=>t({variables:{mediaUploadTicketId:e,size:a,type:s}})}}])},93994,e=>{"use strict";let t=async(e,t)=>{let a=await fetch(t,{method:"PUT",body:e});return a.ok?Promise.resolve({}):Promise.reject(Error(a.statusText))};e.s(["default",0,t])},77846,e=>{"use strict";var t=e.i(59080);let a=t.gql`
191
- fragment CountryFragment on Country {
192
- _id
193
- isoCode
194
- isActive
195
- isBase
196
-
197
- defaultCurrency {
198
- _id
199
- isoCode
200
- }
201
- }
202
- `;e.s(["default",0,a])},98520,e=>{"use strict";var t=e.i(59080),a=e.i(32171),s=e.i(77846);let r=t.gql`
203
- query Countries(
204
- $queryString: String
205
- $limit: Int
206
- $offset: Int
207
- $includeInactive: Boolean
208
- $sort: [SortOptionInput!]
209
- ) {
210
- countries(
211
- queryString: $queryString
212
- limit: $limit
213
- offset: $offset
214
- includeInactive: $includeInactive
215
- sort: $sort
216
- ) {
217
- ...CountryFragment
218
- }
219
- countriesCount(includeInactive: $includeInactive, queryString: $queryString)
220
- }
221
-
222
- ${s.default}
223
- `;e.s(["default",0,({queryString:e="",limit:t=20,offset:s=0,includeInactive:l=!0,sort:i=[]}={})=>{let{data:d,loading:o,error:n,fetchMore:c}=(0,a.useQuery)(r,{variables:{queryString:e,limit:t,offset:s,includeInactive:l,sort:i}}),u=d?.countries||[],m=d?.countriesCount,f=u?.length<m;return{countries:u,countriesCount:m,hasMore:f,loading:o,error:n,loadMore:()=>{c({variables:{offset:u?.length}})}}}])},73483,e=>{"use strict";var t=e.i(91398),a=e.i(72043),s=e.i(69322),r=e.i(91412),l=e.i(91788);let i=l.forwardRef(function({title:e,titleId:t,...a},s){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?l.createElement("title",{id:t},e):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"}))});var d=e.i(7654),o=e.i(31858),n=e.i(3812),c=e.i(98634),u=e.i(82226),m=e.i(60741),f=e.i(29691),h=e.i(41523);let g=({selectedView:e="edit",...s})=>"preview"===e?(0,t.jsx)("div",{className:"prose dark:prose-invert",children:(0,t.jsx)(d.default,{rehypePlugins:[o.default,n.default,c.default],children:s.value})}):(0,t.jsx)("textarea",{className:(0,a.default)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-400 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 border-slate-300 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 placeholder-slate-400 shadow-xs placeholder:text-slate-400 focus:outline-hidden focus:ring-2 focus:ring-slate-800",s.className,{"border-rose-700 placeholder:text-rose-300 placeholder-rose-300":!!s.error}),disabled:s.disabled,id:s.name,name:s.name,rows:s.rows||10,onChange:s.onChange,onBlur:s.onBlur,placeholder:s.placeholder,autoComplete:s.autoComplete||"off",value:s.value});e.s(["default",0,({maxLength:e,validators:a=[],...l})=>{let{formatMessage:d}=(0,s.useIntl)(),o=(0,m.default)({validators:[...a,e&&(0,u.validateMaxLength)(e)],...l}),n=[{id:"editor",title:d({id:"editor",defaultMessage:"Editor"}),Icon:(0,t.jsx)(i,{className:"h-4 w-5"})},{id:"preview",title:d({id:"preview",defaultMessage:"preview"}),Icon:(0,t.jsx)(r.EyeIcon,{className:"h-4 w-5"})}];return(0,t.jsx)(f.default,{...o,children:(0,t.jsx)("div",{className:"-mt-8",children:(0,t.jsx)(h.default,{tabItems:n,defaultTab:"editor",children:(0,t.jsx)(g,{...o})})})})}],73483)},73419,e=>{"use strict";var t=e.i(91398),a=e.i(72043),s=e.i(60741),r=e.i(29691);e.s(["default",0,e=>{let{options:l,...i}=(0,s.default)(e),{className:d}=e||{className:""};return(0,t.jsx)(r.default,{...i,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-slate-300 dark:border-slate-700 py-2.5 pl-3 pr-10 text-base text-black shadow-xs focus:outline-hidden focus:ring-2 focus:ring-slate-800 sm:text-sm",d,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!i.error}),disabled:i.disabled,id:i.name,name:i.name,onChange:i.onChange,onBlur:i.onBlur,value:i.value,children:[(0,t.jsx)("option",{className:"dark:text-slate-200",value:"",disabled:i.required,hidden:i.required,children:i.placeholder||i.label}),Object.entries(l).map(([e,a])=>(0,t.jsx)("option",{className:"dark:text-slate-200",value:e,children:a},e))]})})})}])},96015,e=>{"use strict";var t=e.i(91398),a=e.i(72043),s=e.i(68835),r=e.i(60741),l=e.i(82226),i=e.i(29691);e.s(["default",0,({buttonText:e="",validators:d=[],selectOptions:o=[],...n})=>{let c=(0,r.default)({validators:[...d,(0,l.validateRequiredTag)(n?.required)],label:"Tags",...n});return(0,t.jsx)(i.default,{...c,children:(0,t.jsx)(s.default,{disabled:c.disabled,id:c.id,name:c.name,className:(0,a.default)({"border-rose-300":!!c.error}),onChange:e=>c.setValue(e),placeholder:c.placeholder,tagList:c.value,buttonText:e,selectOptions:o})})}])},45229,e=>{"use strict";var t=e.i(91398),a=e.i(72043),s=e.i(82226),r=e.i(60741),l=e.i(29691);e.s(["default",0,({maxLength:e=0,validators:i=[],...d})=>{let o=(0,r.default)({validators:[...i,e&&(0,s.validateMaxLength)(e)],...d});return(0,t.jsx)(l.default,{...o,children:(0,t.jsx)("input",{className:(0,a.default)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-600 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 focus:outline-hidden focus:ring-2 focus:ring-slate-800 shadow-xs",{"border-rose-700 placeholder:text-rose-500":!!o.error,"border-slate-300 placeholder-slate-400":!o.error}),disabled:o.disabled,id:o.name,name:o.name,onChange:o.onChange,onClick:e=>{e.stopPropagation()},onBlur:o.onBlur,placeholder:o.placeholder,autoComplete:o.autoComplete||"off",type:o.type||"text",value:o.value,autoFocus:o.autoFocus})})}])},95064,e=>{"use strict";var t=e.i(59080);let a=t.gql`
224
- fragment LanguageFragment on Language {
225
- _id
226
- isoCode
227
- isActive
228
- isBase
229
- name
230
- }
231
- `;e.s(["default",0,a])},51713,e=>{"use strict";var t=e.i(59080),a=e.i(32171),s=e.i(95064);let r=t.gql`
232
- query Languages(
233
- $queryString: String
234
- $offset: Int
235
- $limit: Int
236
- $includeInactive: Boolean
237
- $sort: [SortOptionInput!]
238
- ) {
239
- languages(
240
- queryString: $queryString
241
- offset: $offset
242
- limit: $limit
243
- includeInactive: $includeInactive
244
- sort: $sort
245
- ) {
246
- ...LanguageFragment
247
- }
248
- languagesCount(includeInactive: $includeInactive, queryString: $queryString)
249
- }
250
- ${s.default}
251
- `;e.s(["default",0,({queryString:e="",limit:t=20,offset:s=0,includeInactive:l=!0,sort:i=[]}={})=>{let{data:d,loading:o,error:n,fetchMore:c}=(0,a.useQuery)(r,{variables:{queryString:e,limit:t,offset:s,includeInactive:l,sort:i}}),u=d?.languages||[],m=d?.languagesCount,f=u?.length<m;return{languages:u,languagesCount:m,hasMore:f,loading:o,error:n,loadMore:()=>{c({variables:{offset:u?.length}})}}}])},54529,e=>{"use strict";var t=e.i(59080);let a=t.gql`
252
- fragment ProductBriefFragment on Product {
253
- texts(forceLocale: $forceLocale) {
254
- _id
255
- slug
256
- title
257
- subtitle
258
- description
259
- vendor
260
- brand
261
- labels
262
- locale
263
- }
264
- _id
265
- sequence
266
- status
267
- tags
268
- sequence
269
- updated
270
- published
271
- media {
272
- _id
273
- tags
274
- file {
275
- _id
276
- url
277
- }
278
- }
279
- ... on BundleProduct {
280
- proxies {
281
- __typename
282
- }
283
- }
284
- ... on SimpleProduct {
285
- catalogPrice {
286
- amount
287
- currencyCode
288
- }
289
- proxies {
290
- __typename
291
- }
292
- }
293
- ... on PlanProduct {
294
- catalogPrice {
295
- amount
296
- currencyCode
297
- }
298
- proxies {
299
- __typename
300
- }
301
- }
302
- }
303
- `;e.s(["default",0,a])},76929,e=>{"use strict";var t=e.i(91788);let a=t.forwardRef(function({title:e,titleId:a,...s},r){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:r,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{d:"M12 4.467c0-.405.262-.75.559-1.027.276-.257.441-.584.441-.94 0-.828-.895-1.5-2-1.5s-2 .672-2 1.5c0 .362.171.694.456.953.29.265.544.6.544.994a.968.968 0 0 1-1.024.974 39.655 39.655 0 0 1-3.014-.306.75.75 0 0 0-.847.847c.14.993.242 1.999.306 3.014A.968.968 0 0 1 4.447 10c-.393 0-.729-.253-.994-.544C3.194 9.17 2.862 9 2.5 9 1.672 9 1 9.895 1 11s.672 2 1.5 2c.356 0 .683-.165.94-.441.276-.297.622-.559 1.027-.559a.997.997 0 0 1 1.004 1.03 39.747 39.747 0 0 1-.319 3.734.75.75 0 0 0 .64.842c1.05.146 2.111.252 3.184.318A.97.97 0 0 0 10 16.948c0-.394-.254-.73-.545-.995C9.171 15.693 9 15.362 9 15c0-.828.895-1.5 2-1.5s2 .672 2 1.5c0 .356-.165.683-.441.94-.297.276-.559.622-.559 1.027a.998.998 0 0 0 1.03 1.005c1.337-.05 2.659-.162 3.961-.337a.75.75 0 0 0 .644-.644c.175-1.302.288-2.624.337-3.961A.998.998 0 0 0 16.967 12c-.405 0-.75.262-1.027.559-.257.276-.584.441-.94.441-.828 0-1.5-.895-1.5-2s.672-2 1.5-2c.362 0 .694.17.953.455.265.291.601.545.995.545a.97.97 0 0 0 .976-1.024 41.159 41.159 0 0 0-.318-3.184.75.75 0 0 0-.842-.64c-1.228.164-2.473.271-3.734.319A.997.997 0 0 1 12 4.467Z"}))});e.s(["PuzzlePieceIcon",0,a],76929)},61113,87593,39833,84339,19471,66859,e=>{"use strict";var t=e.i(91788);let a=t.forwardRef(function({title:e,titleId:a,...s},r){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:r,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{fillRule:"evenodd",d:"M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401Z",clipRule:"evenodd"}))});e.s(["StarIcon",0,a],61113);var s=e.i(59080);let r=s.gql`
304
- fragment ProductReviewDetailFragment on ProductReview {
305
- _id
306
- created
307
- updated
308
- deleted
309
- author {
310
- _id
311
- username
312
- name
313
- profile {
314
- displayName
315
- address {
316
- firstName
317
- lastName
318
- }
319
- }
320
- isGuest
321
- avatar {
322
- _id
323
-
324
- url
325
- }
326
- }
327
- product {
328
- _id
329
- texts(forceLocale: $forceLocale) {
330
- _id
331
- title
332
- subtitle
333
- }
334
- media {
335
- _id
336
- file {
337
- _id
338
- url
339
- }
340
- }
341
- }
342
- rating
343
- title
344
- review
345
- upVote: voteCount(type: UPVOTE)
346
- downVote: voteCount(type: DOWNVOTE)
347
- voteReport: voteCount(type: REPORT)
348
- ownVotes {
349
- timestamp
350
- type
351
- }
352
- }
353
- `;e.s(["default",0,r],87593);var l=e.i(91398);let i=t.forwardRef(function({title:e,titleId:a,...s},r){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:r,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 3v1.5M3 21v-6m0 0 2.77-.693a9 9 0 0 1 6.208.682l.108.054a9 9 0 0 0 6.086.71l3.114-.732a48.524 48.524 0 0 1-.005-10.499l-3.11.732a9 9 0 0 1-6.085-.711l-.108-.054a9 9 0 0 0-6.208-.682L3 4.5M3 15V4.5"}))}),d=t.forwardRef(function({title:e,titleId:a,...s},r){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:r,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.498 15.25H4.372c-1.026 0-1.945-.694-2.054-1.715a12.137 12.137 0 0 1-.068-1.285c0-2.848.992-5.464 2.649-7.521C5.287 4.247 5.886 4 6.504 4h4.016a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23h1.294M7.498 15.25c.618 0 .991.724.725 1.282A7.471 7.471 0 0 0 7.5 19.75 2.25 2.25 0 0 0 9.75 22a.75.75 0 0 0 .75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 0 0 2.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384m-10.253 1.5H9.7m8.075-9.75c.01.05.027.1.05.148.593 1.2.925 2.55.925 3.977 0 1.487-.36 2.89-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398-.306.774-1.086 1.227-1.918 1.227h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 0 0 .303-.54"}))});e.s(["HandThumbDownIcon",0,d],39833);let o=t.forwardRef(function({title:e,titleId:a,...s},r){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:r,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.633 10.25c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75a.75.75 0 0 1 .75-.75 2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282m0 0h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23H5.904m10.598-9.75H14.25M5.904 18.5c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 0 1-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 9.953 4.167 9.5 5 9.5h1.053c.472 0 .745.556.5.96a8.958 8.958 0 0 0-1.302 4.665c0 1.194.232 2.333.654 3.375Z"}))});e.s(["HandThumbUpIcon",0,o],84339);var n=e.i(69322),c=e.i(66773),u=e.i(28401),m=e.i(72043),f=e.i(62100),h=e.i(84818),g=e.i(15971),x=e.i(6607),p=e.i(76204);let v=s.gql`
354
- mutation RemoveProductReview($productReviewId: ID!) {
355
- removeProductReview(productReviewId: $productReviewId) {
356
- _id
357
- }
358
- }
359
- `;var b=e.i(65153),y=e.i(35065),w=e.i(93380);let j=s.gql`
360
- mutation AddProductReviewVote(
361
- $productReviewId: ID!
362
- $type: ProductReviewVoteType!
363
- $meta: JSON
364
- $forceLocale: Locale
365
- ) {
366
- addProductReviewVote(
367
- productReviewId: $productReviewId
368
- type: $type
369
- meta: $meta
370
- ) {
371
- _id
372
- }
373
- }
374
- `,k=s.gql`
375
- mutation RemoveProductReviewVote(
376
- $productReviewId: ID!
377
- $type: ProductReviewVoteType!
378
- $forceLocale: Locale
379
- ) {
380
- removeProductReviewVote(productReviewId: $productReviewId, type: $type) {
381
- _id
382
- }
383
- }
384
- `;var N=e.i(58971),C=e.i(51870),_=e.i(69211),I=e.i(99160),R=e.i(82226),$=e.i(60741),L=e.i(29691);let P=({maxLength:e,validators:t=[],...a})=>{let s=(0,$.default)({validators:[...t,e&&(0,R.validateMaxLength)(e)],...a});return(0,l.jsx)(L.default,{...s,children:(0,l.jsx)("textarea",{className:(0,m.default)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-400 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 border-slate-300 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 placeholder-slate-400 shadow-xs placeholder:text-slate-400 focus:outline-hidden focus:ring-2 focus:ring-slate-800",s.className,{"border-rose-700 placeholder:text-rose-300 placeholder-rose-300":!!s.error}),disabled:s.disabled,id:s.name,name:s.name,rows:s.rows||10,onChange:s.onChange,onBlur:s.onBlur,placeholder:s.placeholder,autoComplete:s.autoComplete||"off",value:s.value})})};e.s(["default",0,P],19471);var M=e.i(98949);let E=({onSubmit:e,onSubmitSuccess:t=async()=>!0})=>{let{formatMessage:a}=(0,n.useIntl)(),s=a({id:"product_review_added",defaultMessage:"Review added successfully!"}),r=(0,M.default)({submit:e,successMessage:s,onSubmitSuccess:t,initialValues:{message:""}});return(0,l.jsxs)(_.default,{form:r,children:[(0,l.jsx)(P,{rows:3,required:!0,name:"message",id:"message",label:a({id:"message",defaultMessage:"Message"})}),(0,l.jsx)("div",{className:"-mx-6 -mb-6 mt-6 border-t-slate-100 border-t dark:border-t-slate-700 space-y-6 rounded-b-md bg-slate-50 dark:bg-slate-900 p-5 text-right",children:(0,l.jsx)(I.default,{label:a({id:"report-submit",defaultMessage:"Submit"})})})]})};var q=e.i(41215);let S="UPVOTE",T="DOWNVOTE",B="REPORT";e.s(["default",0,({review:e,enableDelete:t=!0,showProduct:a=!1})=>{let{formatMessage:s}=(0,n.useIntl)(),{currentUser:r}=(0,C.default)(),{formatDateTime:_}=(0,h.default)(),{setModal:I}=(0,x.default)(),{addProductReviewVote:R}=(()=>{let[e]=(0,p.useMutation)(j);return{addProductReviewVote:async({productReviewId:t,type:a,meta:s})=>e({variables:{productReviewId:t,type:a,meta:s},refetchQueries:["ProductReviewByProduct","ProductReviewByUser"]})}})(),{removeProductReviewVote:$}=(()=>{let[e]=(0,p.useMutation)(k);return{removeProductReviewVote:async({productReviewId:t,type:a})=>e({variables:{productReviewId:t,type:a},refetchQueries:["ProductReviewByProduct","ProductReviewByUser"]})}})(),{hasRole:L,isAdmin:P}=(0,N.default)(),M=t=>!!e.ownVotes.find(e=>e.type===t),A=async t=>{let a=async({message:a})=>{try{return await R({productReviewId:e._id,type:t,meta:{message:a}}),{success:!0}}catch(e){if(e instanceof q.default)return{success:!1,error:e?.message};return{success:!1,error:e}}};M(t)?await $({productReviewId:e._id,type:t}):t===B?await I((0,l.jsx)(E,{onSubmit:a,onSubmitSuccess:async()=>I(null)})):await R({productReviewId:e._id,type:t})},{removeProductReview:O}=(()=>{let[e]=(0,p.useMutation)(v);return{removeProductReview:async({productReviewId:t})=>e({variables:{productReviewId:t},refetchQueries:["ProductReviewByProduct","ProductReviewByUser"]})}})(),U=!e.deleted&&L(c.IRoleAction.VoteProductReview)&&t&&e?.author?._id===r?._id||P()&&!e.deleted,V=!e.deleted&&L(c.IRoleAction.VoteProductReview),D=e?.product,F=async e=>{await I((0,l.jsx)(g.default,{onCancelClick:async()=>I(""),message:s({id:"delete_review_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this review? "}),onOkClick:async()=>{I(""),await O({productReviewId:e}),u.toast.success(s({id:"review_deleted",defaultMessage:"Review deleted successfully"}))},okText:s({id:"delete_review",defaultMessage:"Delete review"})}))};return(0,l.jsxs)("div",{className:(0,m.default)("mb-4 rounded-lg shadow-sm bg-white dark:bg-slate-800 p-4",{"border-rose-200 bg-rose-50 dark:bg-rose-950":e.deleted},{"border-slate-200 dark:border-slate-700":!e.deleted}),children:[(0,l.jsxs)("div",{className:"flex items-center",children:[a?(0,l.jsx)(y.default,{src:D?.media[0]?.file?.url,alt:e?.author?.username,width:48,height:48,className:"h-12 w-12 rounded-full aspect-square object-cover object-center"}):(0,l.jsx)(y.default,{src:e?.author?.avatar?.url,alt:e?.author?.username,width:48,height:48,className:"h-12 w-12 rounded-full aspect-square object-cover object-center"}),(0,l.jsxs)("div",{className:"ml-4 flex-1",children:[(0,l.jsx)("h4",{className:"text-sm font-semibold text-slate-900 dark:text-slate-100",children:a?D?.texts?.title||(0,l.jsxs)(l.Fragment,{children:[D._id," ",(0,l.jsx)(b.default,{color:"yellow",text:s({id:"title_not_found",defaultMessage:"Title not found"})})]}):(0,w.default)(e?.author)}),(0,l.jsx)("p",{className:"text-xs text-slate-500 dark:text-slate-400",children:(0,l.jsx)("time",{dateTime:e.updated||e.created,children:_(e.updated||e.created,{dateStyle:"short",timeStyle:"short"})})})]}),(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsxs)("button",{type:"button",disabled:!V,onClick:async()=>A(S),className:`flex items-center gap-1 px-2 py-1 rounded-md transition-colors disabled:opacity-50 ${M(S)?"bg-emerald-100 dark:bg-emerald-900 hover:bg-emerald-200 dark:hover:bg-emerald-800":"hover:bg-slate-100 dark:hover:bg-slate-700"}`,children:[(0,l.jsx)(o,{className:`h-5 w-5 ${M(S)?"text-emerald-600 dark:text-emerald-400":"text-slate-400 dark:text-slate-500"}`}),(0,l.jsx)("span",{className:`text-sm font-medium ${M(S)?"text-emerald-700 dark:text-emerald-300":"text-slate-700 dark:text-slate-300"}`,children:e.upVote})]}),(0,l.jsxs)("button",{type:"button",disabled:!V,onClick:async()=>A(T),className:`flex items-center gap-1 px-2 py-1 rounded-md transition-colors disabled:opacity-50 ${M(T)?"bg-rose-100 dark:bg-rose-900 hover:bg-rose-200 dark:hover:bg-rose-800":"hover:bg-slate-100 dark:hover:bg-slate-700"}`,children:[(0,l.jsx)(d,{className:`h-5 w-5 ${M(T)?"text-rose-600 dark:text-rose-400":"text-slate-400 dark:text-slate-500"}`}),(0,l.jsx)("span",{className:`text-sm font-medium ${M(T)?"text-rose-700 dark:text-rose-300":"text-slate-700 dark:text-slate-300"}`,children:e.downVote})]})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2 ml-4",children:[L(c.IRoleAction.VoteProductReview)&&(0,l.jsx)("button",{type:"button",disabled:!V,onClick:async()=>A(B),className:`p-2 rounded-md transition-colors disabled:opacity-50 ${M(B)?"bg-orange-100 dark:bg-orange-900 hover:bg-orange-200 dark:hover:bg-orange-800":"hover:bg-slate-100 dark:hover:bg-slate-700"}`,title:"Report review",children:(0,l.jsx)(i,{className:(0,m.default)("h-4 w-4",{"text-orange-600 dark:text-orange-400":M(B),"text-slate-400 dark:text-slate-500":!M(B)})})}),U&&(0,l.jsx)(f.default,{onClick:()=>F(e._id),className:""}),e.deleted&&(0,l.jsx)(b.default,{text:s({id:"deleted_text",defaultMessage:"Deleted"}),color:"red",className:"ml-2"})]})]}),(0,l.jsxs)("div",{className:"mt-4 space-y-3",children:[(0,l.jsx)("h3",{className:"text-base font-semibold text-slate-900 dark:text-slate-100",children:e.title}),(0,l.jsx)("p",{className:"text-sm text-slate-700 dark:text-slate-300 leading-relaxed",children:e.review})]})]},e._id)}],66859)},91412,e=>{"use strict";var t=e.i(91788);let a=t.forwardRef(function({title:e,titleId:a,...s},r){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:r,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))});e.s(["EyeIcon",0,a],91412)}]);
@@ -1,110 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23647,26013,e=>{"use strict";var t=e.i(91398),s=e.i(69322),a=e.i(15361),r=e.i(91788);let i=r.forwardRef(function({title:e,titleId:t,...s},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},s),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});e.s(["XCircleIcon",0,i],26013);var l=e.i(67912),n=e.i(41158),o=e.i(93380),d=e.i(35065);let u=({username:e})=>(0,t.jsx)(l.UserCircleIcon,{className:"h-8 w-8 text-slate-800 dark:text-slate-600"});e.s(["default",0,({user:e,contact:r})=>{let{formatMessage:l}=(0,s.useIntl)();return(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"h-8 w-8 rounded-full",children:e?.avatar?(0,t.jsx)(d.default,{src:e.avatar.url,alt:e.name||e.username,width:100,height:100}):(0,t.jsx)(u,{username:e?.username})}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-4",children:[(0,t.jsx)("div",{className:"flex items-center justify-between gap-3 flex-wrap",children:(0,t.jsxs)("span",{className:"flex items-center",children:[(0,t.jsx)("h3",{className:"text-xl font-semibold capitalize",children:(0,t.jsx)(n.default,{href:`/users?userId=${e?._id}`,className:"text-slate-800 dark:text-slate-300 hover:text-slate-900 dark:hover:text-slate-600",children:(0,o.default)(e)})}),e?.primaryEmail?.verified&&(0,t.jsxs)("dl",{className:"self-end",children:[(0,t.jsx)("dt",{className:"sr-only",children:l({id:"account_status",defaultMessage:"Account status"})}),(0,t.jsx)("dd",{className:"mt-3 flex items-center self-end text-sm font-medium capitalize text-slate-900 sm:mr-6 sm:mt-0",children:e?.primaryEmail?.verified?(0,t.jsx)(a.CheckCircleIcon,{className:"h-4 w-4 shrink-0 text-emerald-400","aria-hidden":"true"}):(0,t.jsx)(i,{className:"h-4 w-4 shrink-0 text-rose-400","aria-hidden":"true"})})]})]})}),r?.emailAddress&&(0,t.jsx)("div",{children:r.emailAddress}),r?.telNumber&&(0,t.jsx)("div",{children:r.telNumber})]})]})}],23647)},35065,16509,e=>{"use strict";var t=e.i(91398),s=e.i(26019),a=e.i(91788),r=e.i(69322);let i=({src:e,width:t,quality:s=75})=>e?`${e}?w=${t}&q=${s}`:"/no-image.jpg";e.s(["default",0,i],16509);let l=({className:e="w-full h-full",width:s=200,height:a=200})=>(0,t.jsxs)("svg",{width:s,height:a,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-slate-800 dark:text-slate-300 text-sm font-semibold",fill:"currentColor",children:"No Image"})]});e.s(["default",0,({fallbackSrc:e="",src:n,...o})=>{let[d,u]=(0,a.useState)(n),[c,m]=(0,a.useState)(!1),{formatMessage:f}=(0,r.useIntl)();return c||!d?(0,t.jsx)("div",{className:o.className||"w-full h-full flex items-center justify-center bg-slate-50 dark:bg-slate-800",children:(0,t.jsx)(l,{width:o.width||200,height:o.height||200,className:"max-w-full max-h-full"})}):(0,t.jsx)(s.default,{src:d,loader:i,alt:f({id:"image-not-found",defaultMessage:"Image not found"}),...o,onError:()=>{e&&d!==e?u(e):m(!0)}})}],35065)},55215,e=>{"use strict";var t=e.i(91398),s=e.i(72043);e.s(["default",0,({value:e,className:a,onChange:r=()=>{},rows:i=7,...l})=>{let n=Math.max(e?e.split("\n").length:1,i);return(0,t.jsx)("textarea",{className:(0,s.default)("text-black dark:bg-slate-900 dark:text-slate-200 border-transparent border-t border-t-slate-200 dark:border-t-slate-800 resize-y",a),value:e,onChange:r,rows:n,...l})}])},57468,e=>{"use strict";var t=e.i(91398),s=e.i(72043),a=e.i(69322),r=e.i(99160);e.s(["default",0,({cancelText:e=null,showCancel:i=!0,submitText:l=null,showSubmit:n=!0,onCancel:o,className:d=""})=>{let{formatMessage:u}=(0,a.useIntl)();return(0,t.jsxs)("span",{className:(0,s.default)("flex shrink-0 items-center space-x-4 py-5 pl-1",d),children:[i?(0,t.jsx)("button",{onClick:o,"data-id":"cancel_update",type:"button",className:(0,s.default)("focus:ring-slate-800","inline-flex items-center rounded-md border border-slate-300 dark:border-slate-700 bg-white dark:bg-slate-800 px-4 py-2 text-sm font-medium text-slate-700 dark:text-slate-300 shadow-xs hover:bg-slate-50 dark:hover:bg-slate-700 focus:outline-hidden focus:ring-2 focus:ring-slate-800 focus:ring-offset-2"),children:e||u({id:"cancel",defaultMessage:"Cancel"})}):null,n?(0,t.jsx)(r.default,{label:l||u({id:"save",defaultMessage:"Save"})}):null]})}])},66885,e=>{"use strict";var t=e.i(91398),s=e.i(69322),a=e.i(38322),r=e.i(84818),i=e.i(83147),l=e.i(51782);e.s(["default",0,({data:e,statusTypes:n,timeline:o})=>{let{formatMessage:d}=(0,s.useIntl)(),{formatDateTime:u}=(0,r.default)(),{content:c={},id:m}=o[e?.status]||{},f=n.filter(({value:e})=>o[e]?.visible);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flow-root sm:hidden",children:(0,t.jsx)("ul",{className:"my-4",children:f.map(({value:s,label:r},l)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"relative pb-8",children:[l!==f.length-1?(0,t.jsx)("span",{className:(0,i.classNames)(m>l+1?"bg-slate-900":"bg-slate-200","absolute top-2.5 left-2.5 -ml-px h-full w-0.5"),"aria-hidden":"true"}):null,(0,t.jsxs)("div",{className:"relative flex items-center space-x-3",children:[(0,t.jsx)("div",{children:(0,t.jsx)("span",{className:(0,i.classNames)(m>l?"bg-slate-900":"bg-slate-600","flex h-5 w-5 items-center justify-center rounded-full"),children:m>l?(0,t.jsx)(a.CheckIcon,{className:"h-5 w-5 text-white","aria-hidden":"true"}):null})}),(0,t.jsxs)("div",{className:"ml-4 flex min-w-0 flex-1 items-center justify-between",children:[(0,t.jsx)("div",{className:"flex-auto",children:(0,t.jsx)("p",{className:"text-sm text-slate-500",children:(0,t.jsxs)("span",{className:"flex w-full items-center justify-between text-slate-900 dark:text-slate-200",children:[s,o[s]?.Component&&o[s].Component]})})}),m>=o[s].id?(0,t.jsx)("div",{className:"whitespace-nowrap text-right text-sm text-slate-500 dark:text-slate-200 ml-4",children:e[o?.[s]?.content]?u(e[o?.[s]?.content],{dateStyle:"short",timeStyle:"short"}):null}):null]})]})]})},`${s}${r}`))})}),(0,t.jsxs)("div",{className:" p-4 bg-white shadow-sm dark:shadow-none dark:border dark:border-slate-700 sm:rounded-lg dark:bg-slate-900",children:[(0,t.jsxs)("p",{className:"font-medium flex items-center justify-between",children:[(0,t.jsx)(l.OrderStatusBadge,{status:e.status}),(0,t.jsx)("span",{children:e[c]?u(e[c],{dateStyle:"full",timeStyle:"medium"}):d({id:"in_cart",defaultMessage:"In cart"})})]}),(0,t.jsx)("div",{className:"mt-2","aria-hidden":"true",children:(0,t.jsx)("div",{className:"mt-2 hidden text-sm font-medium text-slate-600 sm:flex",children:f.map(({value:s,label:a})=>(0,t.jsxs)("div",{className:"sm:flex-auto",children:[(0,t.jsx)("div",{className:"relative mb-4 mr-1",children:(0,t.jsx)("span",{className:(0,i.classNames)(m>=o[s].id?e?.status==="CONFIRMED"?"bg-lime-600":e?.status==="PENDING"?"bg-amber-600":e?.status==="OPEN"?"bg-sky-600":"bg-emerald-600":"bg-slate-200 dark:bg-slate-700","absolute top-0 left-0 -ml-px h-2 w-full"),"aria-hidden":"true"})}),(0,t.jsxs)("div",{className:(0,i.classNames)(m>=o[s].id?"text-slate-900":"opacity-50","text-start"),children:[(0,t.jsx)("span",{className:"text-slate-900 dark:text-slate-400 uppercase",children:o[s]?.Component?o[s].Component:"CONFIRMED"===s?d({id:"confirmed",defaultMessage:"CONFIRMED"}):"PENDING"===s?d({id:"pending",defaultMessage:"PENDING"}):"OPEN"===s?d({id:"open",defaultMessage:"OPEN"}):"FULFILLED"===s?d({id:"fulfilled",defaultMessage:"FULFILLED"}):"REJECTED"===s?d({id:"rejected",defaultMessage:"REJECTED"}):s}),(0,t.jsx)("span",{className:"block text-slate-900 dark:text-slate-100",children:m>=o?.[s]?.id?u(e[o?.[s]?.content],{dateStyle:"short",timeStyle:"short"}):null})]})]},`${s}${a}`))})})]})]})}])},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:s}=e||{};return s||t?`${s?.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()}])},7105,e=>{"use strict";var t=e.i(91398),s=e.i(72043),a=e.i(55215),r=e.i(60741),i=e.i(29691);e.s(["default",0,({validators:e=[],rows:l=10,...n})=>{let o=(0,r.default)({...n,validators:[...e,{isValid:e=>{try{return JSON?.parse(e),!0}catch(e){return!1}},intlMessageDescriptor:{id:"invalid_json_input",defaultMessage:"Invalid JSON input"}}]});return(0,t.jsx)(i.default,{...o,children:(0,t.jsx)(a.default,{className:(0,s.default)("mt-1 block w-full max-w-full rounded-md border-1 border-slate-300 dark:border-slate-800 dark:bg-slate-900 dark:text-slate-200 shadow-xs dark:shadow-none focus:ring-slate-800 sm:text-sm",{"border-rose-300 text-rose-600 focus:border-rose-600 focus:ring-rose-600":!!o.error},n.className),disabled:o.disabled,id:o.name,name:o.name,onChange:e=>{try{JSON.parse(e.target.value||"{}"),o.setError("")}catch(e){o.setError(e.message?.replace("JSON.parse",""))}finally{o.setValue(e.target.value,!0),o.setTouched(!0)}},onBlur:e=>{try{o.setValue(JSON.stringify(JSON.parse(e.target.value),void 0,2),!0),o.setError("")}catch(e){o.setError(e.message)}},placeholder:o.placeholder,autoComplete:o.autoComplete,value:o.value})})}])},51782,e=>{"use strict";var t=e.i(91398),s=e.i(69322),a=e.i(65153),r=e.i(60193);let i={PENDING:"bg-yellow-100 text-yellow-800",CONFIRMED:"bg-blue-100 text-blue-800",OPEN:"bg-gray-100 text-gray-800",FULFILLED:"bg-green-100 text-green-800",REJECTED:"bg-red-100 text-red-800"};e.s(["OrderStatusBadge",0,({status:e,className:l=""})=>{let{formatMessage:n}=(0,s.useIntl)(),o={PENDING:n({id:"pending",defaultMessage:"PENDING"}),CONFIRMED:n({id:"confirmed",defaultMessage:"CONFIRMED"}),OPEN:n({id:"open",defaultMessage:"OPEN"}),FULFILLED:n({id:"fulfilled",defaultMessage:"FULFILLED"}),REJECTED:n({id:"rejected",defaultMessage:"REJECTED"})},d=o?.[e]??n({id:"cart",defaultMessage:"Cart"});return i?.[e],(0,t.jsx)(a.default,{text:d,color:r.ORDER_STATUSES[e],square:!0,className:`uppercase ${l}`})}])},96097,e=>{"use strict";var t=e.i(91398),s=e.i(69322),a=e.i(61494),r=e.i(12197),i=e.i(17644),l=e.i(41158),n=e.i(53463),o=e.i(26013),d=e.i(66885),u=e.i(59080),c=e.i(32171);let m=u.gql`
2
- query QuotationStatus {
3
- quotationStatusType: __type(name: "QuotationStatus") {
4
- options: enumValues {
5
- value: name
6
- label: description
7
- }
8
- }
9
- }
10
- `;var f=e.i(81013),x=e.i(6607),g=e.i(76204);let h=u.gql`
11
- fragment QuotationDetailFragment on Quotation {
12
- _id
13
- user {
14
- _id
15
- username
16
- avatar {
17
- _id
18
- url
19
- }
20
- name
21
- primaryEmail {
22
- verified
23
- address
24
- }
25
- }
26
- configuration {
27
- key
28
- value
29
- }
30
- country {
31
- _id
32
- isoCode
33
- flagEmoji
34
- name
35
- }
36
- currency {
37
- _id
38
- isoCode
39
- isActive
40
- }
41
- product {
42
- _id
43
- texts {
44
- _id
45
- slug
46
- subtitle
47
- title
48
- description
49
- }
50
- media {
51
- _id
52
- file {
53
- _id
54
- type
55
- url
56
- }
57
- }
58
- }
59
- status
60
- created
61
- expires
62
- updated
63
- isExpired
64
- quotationNumber
65
- fulfilled
66
- rejected
67
- }
68
- `,p=u.gql`
69
- mutation VerifyQuotation($quotationId: ID!, $quotationContext: JSON) {
70
- verifyQuotation(
71
- quotationId: $quotationId
72
- quotationContext: $quotationContext
73
- ) {
74
- ...QuotationDetailFragment
75
- }
76
- }
77
- ${h}
78
- `;var b=e.i(84818),j=e.i(65153),v=e.i(23647),w=e.i(83147);let y=({quotation:e})=>{let{formatMessage:a,locale:r}=(0,s.useIntl)(),{formatDateTime:i}=(0,b.default)();return(0,t.jsxs)("section",{children:[(0,t.jsx)(v.default,{user:e?.user,contact:e?.contact}),(0,t.jsxs)("div",{className:"mt-2 flex border-b border-slate-300 dark:border-slate-800 pb-2 text-sm",children:[(0,t.jsxs)("dl",{className:"flex flex-wrap items-center gap-1",children:[(0,t.jsxs)("dt",{className:"hidden capitalize text-slate-500 sm:block",children:[a({id:"quotation",defaultMessage:"quotation"}),"#  "]}),(0,t.jsxs)("dd",{className:"inline-flex text-lg font-medium text-slate-900 sm:text-xl sm:font-semibold",children:[(0,t.jsx)("span",{className:"sm:hidden",children:"# "}),e?.quotationNumber?(0,t.jsx)(j.default,{text:e?.quotationNumber,color:"slate",square:!0,className:"text-lg font-medium sm:text-xl sm:font-semibold"}):(0,t.jsx)(j.default,{text:a({id:"requested",defaultMessage:"Requested"}),color:"yellow",className:"text-lg font-medium sm:text-xl sm:font-semibold"})]}),(0,t.jsx)("dt",{children:(0,t.jsx)("span",{className:"sr-only",children:a({id:"date",defaultMessage:"Date"})})}),(0,t.jsx)("dd",{className:"font-medium text-slate-900",children:e?.ordered&&i(e?.ordered,{timeStyle:"short",dateStyle:"full"})})]}),(0,t.jsxs)("div",{className:"ml-auto flex flex-wrap items-center justify-center gap-x-2 gap-y-1 text-sm text-slate-900 sm:text-base",children:[(0,t.jsx)("span",{children:e?.country?.flagEmoji}),(0,t.jsx)("span",{children:(0,w.normalizeCurrencyISOCode)(r,e?.currency?.isoCode)}),(0,t.jsx)("span",{children:e?.currency?.isoCode&&(0,t.jsx)(j.default,{text:e?.currency?.isoCode,color:"amber",className:"px-2 py-0 sm:py-1",square:!0})})]})]})]})},N=u.gql`
79
- mutation RejectQuotation($quotationId: ID!, $quotationContext: JSON) {
80
- rejectQuotation(
81
- quotationId: $quotationId
82
- quotationContext: $quotationContext
83
- ) {
84
- ...QuotationDetailFragment
85
- }
86
- }
87
- ${h}
88
- `;var E=e.i(1880),C=e.i(38322),k=e.i(57468),_=e.i(69211),S=e.i(7105),I=e.i(98949);let q=({successMessage:e,onSubmit:a,onCancel:r,icon:i=null,headerText:l,submitButtonText:n})=>{let{formatMessage:o}=(0,s.useIntl)(),d=o({id:"quotation_updated",defaultMessage:"Quotation updated successfuly"}),u=(0,I.default)({submit:a,successMessage:e??d,onSubmitSuccess:r,initialValues:{quotationContext:null}});return(0,t.jsxs)(_.default,{form:u,id:"quotation_configuration",children:[(0,t.jsxs)("div",{className:"flex items-center text-center mb-3",children:[i||(0,t.jsx)("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-emerald-100 dark:bg-emerald-900/30",children:(0,t.jsx)(C.CheckIcon,{className:"h-8 w-8 text-emerald-600 dark:text-emerald-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"})}),(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",id:"modal-title",children:l})})]}),(0,t.jsx)("div",{children:(0,t.jsx)(S.default,{name:"quotationContext",required:!1,label:o({id:"quotation-context-input-label",defaultMessage:"Quotation context"}),rows:10,labelClassName:"text-sm font-medium text-slate-500 mb-2"})}),(0,t.jsx)("div",{className:"border border-t-slate-100 bg-slate-50 mt-6 -mx-5 -mb-6 dark:bg-slate-500 dark:border-0",children:(0,t.jsx)(k.default,{onCancel:r,submitText:n,className:"justify-end "})})]})},O=u.gql`
89
- mutation MakeQuotationProposal($quotationId: ID!, $quotationContext: JSON) {
90
- makeQuotationProposal(
91
- quotationId: $quotationId
92
- quotationContext: $quotationContext
93
- ) {
94
- ...QuotationDetailFragment
95
- }
96
- }
97
- ${h}
98
- `;var M=e.i(55215),P=e.i(35065);let R=({quotation:e})=>{let{formatMessage:a}=(0,s.useIntl)(),{setModal:r}=(0,x.default)(),{quotationStatusTypes:i}=(()=>{let{data:e,loading:t,error:s}=(0,c.useQuery)(m);return{quotationStatusTypes:e?.quotationStatusType?.options||[],loading:t,error:s}})(),{VerifyQuotation:u}=(()=>{let[e]=(0,g.useMutation)(p);return{VerifyQuotation:async({quotationId:t=null,quotationContext:s={}})=>e({variables:{quotationId:t,quotationContext:s}})}})(),{rejectQuotation:h}=(()=>{let[e]=(0,g.useMutation)(N);return{rejectQuotation:async({quotationId:t=null,quotationContext:s={}})=>e({variables:{quotationId:t,quotationContext:s}})}})(),{makeQuotationProposal:b}=(()=>{let[e]=(0,g.useMutation)(O);return{makeQuotationProposal:async({quotationId:t=null,quotationContext:s={}})=>e({variables:{quotationId:t,quotationContext:s}})}})();if(!e)return null;let j=async()=>{await r((0,t.jsx)(q,{onSubmit:async({quotationContext:t})=>{await u({quotationId:e?._id,quotationContext:t?JSON.parse(t||null):null}),r("")},onCancel:()=>r(""),successMessage:a({id:"quotation-verified-successfully",defaultMessage:"Quotation verified successfully"}),submitButtonText:a({id:"verify-quotation-submit",defaultMessage:"Verify"}),headerText:a({id:"verify-quotation-quotation",defaultMessage:"Verify quotation?"})}))},v=async()=>{await r((0,t.jsx)(q,{onSubmit:async({quotationContext:t})=>{await h({quotationId:e?._id,quotationContext:t?JSON.parse(t||null):null}),r("")},onCancel:()=>r(""),successMessage:a({id:"quotation-rejection-successfully",defaultMessage:"Quotation rejected successfully"}),headerText:a({id:"reject-quotation-quotation",defaultMessage:"Reject quotation?"}),submitButtonText:a({id:"reject-quotation-submit",defaultMessage:"Reject"}),icon:(0,t.jsx)("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-rose-100 sm:mx-0 sm:h-10 sm:w-10",children:(0,t.jsx)(o.XCircleIcon,{className:"h-6 w-6 text-rose-600"})})}))},w=async()=>{await r((0,t.jsx)(q,{onSubmit:async({quotationContext:t})=>{await b({quotationId:e?._id,quotationContext:t?JSON.parse(t||null):null}),r("")},onCancel:()=>r(""),successMessage:a({id:"quotation-quoted-successfully",defaultMessage:"Quoted successfully"}),headerText:a({id:"make-proposal-header",defaultMessage:"Make quotation proposal"}),submitButtonText:a({id:"process-quotation-submit",defaultMessage:"Mark as processed"}),icon:(0,t.jsx)("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-slate-200 sm:mx-0 sm:h-10 sm:w-10 mr-3",children:(0,t.jsx)(n.PaperAirplaneIcon,{className:"h-6 w-6 text-slate-950"})})}))},C={REQUESTED:{id:1,content:"created",visible:!0,Component:e?.status==="REQUESTED"&&(0,t.jsx)(f.default,{text:"Verify",onClick:j,className:"bg-white-300 relative -ml-px inline-flex items-center space-x-2 rounded-md border border-slate-900 dark:border-slate-600 bg-slate-800 dark:bg-slate-600 px-2 py-1 text-base font-medium text-white hover:bg-slate-950 dark:hover:bg-slate-500 dark:focus:border-slate-400 focus:outline-hidden focus:ring-0 focus:ring-slate-800 dark:focus:ring-slate-400"})},PROCESSING:{id:2,content:"updated",visible:e?.status==="PROCESSING",Component:e?.status==="PROCESSING"&&(0,t.jsx)(f.default,{text:"Propose",onClick:w,className:"bg-white-300 relative -ml-px inline-flex items-center space-x-2 rounded-md border border-slate-900 dark:border-slate-600 bg-slate-800 dark:bg-slate-600 px-2 py-1 text-base font-medium text-white hover:bg-slate-950 dark:hover:bg-slate-500 dark:focus:border-slate-400 focus:outline-hidden focus:ring-0 focus:ring-slate-800 dark:focus:ring-slate-400"})},PROPOSED:{id:3,content:"updated",visible:!0},REJECTED:{id:4,content:"rejected",visible:e?.status!=="FULFILLED",Component:e?.status!=="FULFILLED"&&e?.status!=="REJECTED"&&(0,t.jsx)(f.default,{text:"Reject",onClick:v,className:"bg-white-300 relative -ml-px inline-flex items-center space-x-2 rounded-md border border-rose-500 bg-rose-500 px-2 py-2 text-base font-medium text-white hover:bg-rose-700 focus:border-rose-400 focus:outline-hidden focus:ring-0 focus:ring-rose-400"})},FULFILLED:{id:5,content:"fulfilled",visible:!0}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y,{quotation:e}),(0,t.jsx)(d.default,{data:e,statusTypes:i,timeline:C}),(0,t.jsx)("section",{"aria-labelledby":"products-heading",className:"my-6",children:(0,t.jsx)("div",{className:"rounded-lg border-t border-b border-slate-300 dark:border-slate-800 bg-white shadow-xs sm:border",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 text-sm sm:grid-cols-12 sm:grid-rows-1 sm:gap-x-6 md:gap-x-8 lg:gap-x-8",children:[(0,t.jsx)("div",{className:"sm:col-span-4 md:col-span-5 md:row-span-2 md:row-end-2",children:(0,t.jsx)("div",{className:"m:col-span-4 rounded-lg bg-slate-50 md:col-span-5 md:row-span-2 md:row-end-2",children:(0,t.jsx)(P.default,{src:e?.product?.media[0]?.file?.url||"/no-image.jpg",layout:"responsive",width:100,height:100,alt:a({id:"image-not-found",defaultMessage:"Image not found"})})})}),(0,t.jsxs)("div",{className:"pt-6 pl-4 sm:col-span-7 md:row-end-1",children:[(0,t.jsx)("h3",{className:"text-lg font-medium text-slate-900",children:(0,t.jsx)(l.default,{href:`/products?slug=${(0,E.default)(e?.product)}`,children:e?.product?.texts?.title})}),(0,t.jsx)("p",{className:"mt-3 text-slate-500",children:e?.product?.description}),(0,t.jsx)(M.default,{disabled:!0,value:JSON.stringify((e?.configuration||[]).map(({__typename:e,...t})=>t),null,2),className:"bg-white dark:bg-slate-900 dark:text-slate-200 mt-1 block w-full rounded-md resize-none border-slate-300 dark:border-slate-800 sm:text-sm"})]})]})})})]})};var D=e.i(70693);e.s(["default",0,({quotationId:e})=>{let{formatMessage:l}=(0,s.useIntl)(),{quotation:n,loading:o}=(({quotationId:e})=>{let{customProperties:t}=(0,D.default)(),{data:s,loading:a,error:r}=(0,c.useQuery)(((e="")=>u.gql`
99
- query Quotation($quotationId: ID!) {
100
- quotation(quotationId: $quotationId) {
101
- _id
102
- ...QuotationDetailFragment
103
- ${e}
104
- }
105
- quotationsCount
106
- }
107
- ${h}
108
- `)(t?.Quotation),{skip:!e,variables:{quotationId:e}});return{quotation:s?.quotation,loading:a,error:r}})({quotationId:e});return(0,t.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,t.jsx)(a.default,{currentPageTitle:n?.quotationNumber??""}),(0,t.jsx)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:(0,t.jsx)(i.default,{headerText:l({id:"quotation_detail",defaultMessage:"Quotation Detail"}),title:l({id:"quotation_detail_title",defaultMessage:"Quotation {id}"},{id:n?._id})})}),o?(0,t.jsx)(r.default,{}):(0,t.jsx)(R,{quotation:n})]})}],96097)},15361,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...a},r){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:r,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});e.s(["CheckCircleIcon",0,s],15361)},38322,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...a},r){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:r,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))});e.s(["CheckIcon",0,s],38322)},53463,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...a},r){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:r,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5"}))});e.s(["PaperAirplaneIcon",0,s],53463)},67912,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...a},r){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:r,"aria-labelledby":s},a),e?t.createElement("title",{id:s},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(["UserCircleIcon",0,s],67912)},49194,(e,t,s)=>{"use strict";e.i(50461),Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"Image",{enumerable:!0,get:function(){return w}});let a=e.r(41705),r=e.r(52456),i=e.r(91398),l=r._(e.r(91788)),n=a._(e.r(30943)),o=a._(e.r(80963)),d=e.r(66785),u=e.r(15125),c=e.r(13521),m=e.r(25479),f=a._(e.r(3866)),x=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,s,a,r,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&&r(!0),s?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let a=!1,r=!1;s.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>a,isPropagationStopped:()=>r,persist:()=>{},preventDefault:()=>{a=!0,t.preventDefault()},stopPropagation:()=>{r=!0,t.stopPropagation()}})}a?.current&&a.current(e)}}))}function p(e){return l.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let b="u"<typeof window?l.useEffect:l.useLayoutEffect,j=(0,l.forwardRef)(({src:e,srcSet:t,sizes:s,height:a,width:r,decoding:n,className:o,style:d,fetchPriority:u,placeholder:c,loading:m,unoptimized:f,fill:g,onLoadRef:j,onLoadingCompleteRef:v,setBlurComplete:w,setShowAltText:y,sizesInput:N,onLoad:E,onError:C,...k},_)=>{let S=(0,l.useRef)(!1),I=(0,l.useRef)(null);b(()=>{let{current:e}=S,{current:t}=I;e||null===t||(C&&(t.src=t.src),t.complete&&h(t,c,j,v,w,f,N),S.current=!0)},[e,c,j,v,C,f,N]);let q=(0,x.useMergedRef)(_,I);return(0,i.jsx)("img",{...k,...p(u),loading:m,width:r,height:a,decoding:n,"data-nimg":g?"fill":"1",className:o,style:d,sizes:s,srcSet:t,src:e,ref:q,onLoad:e=>{h(e.currentTarget,c,j,v,w,f,N)},onError:e=>{y(!0),"empty"!==c&&w(!0),C&&C(e)}})});function v({isAppRouter:e,imgAttributes:t}){let s={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...p(t.fetchPriority)};return e&&n.default.preload?(n.default.preload(t.src,s),null):(0,i.jsx)(o.default,{children:(0,i.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...s},"__nimg-"+t.src+t.srcSet+t.sizes)})}let w=(0,l.forwardRef)((e,t)=>{let s=(0,l.useContext)(m.RouterContext),a=(0,l.useContext)(c.ImageConfigContext),r=(0,l.useMemo)(()=>{let e=g||a||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),s=e.deviceSizes.sort((e,t)=>e-t),r=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:s,qualities:r,localPatterns:"u"<typeof window?a?.localPatterns:e.localPatterns}},[a]),{onLoad:n,onLoadingComplete:o}=e,x=(0,l.useRef)(n);(0,l.useEffect)(()=>{x.current=n},[n]);let h=(0,l.useRef)(o);(0,l.useEffect)(()=>{h.current=o},[o]);let[p,b]=(0,l.useState)(!1),[w,y]=(0,l.useState)(!1),{props:N,meta:E}=(0,d.getImgProps)(e,{defaultLoader:f.default,imgConf:r,blurComplete:p,showAltText:w});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j,{...N,unoptimized:E.unoptimized,placeholder:E.placeholder,fill:E.fill,onLoadRef:x,onLoadingCompleteRef:h,setBlurComplete:b,setShowAltText:y,sizesInput:e.sizes,ref:t}),E.preload?(0,i.jsx)(v,{isAppRouter:!s,imgAttributes:N}):null]})});("function"==typeof s.default||"object"==typeof s.default&&null!==s.default)&&void 0===s.default.__esModule&&(Object.defineProperty(s.default,"__esModule",{value:!0}),Object.assign(s.default,s),t.exports=s.default)},88961,(e,t,s)=>{"use strict";e.i(50461),Object.defineProperty(s,"__esModule",{value:!0});var a={default:function(){return u},getImageProps:function(){return d}};for(var r in a)Object.defineProperty(s,r,{enumerable:!0,get:a[r]});let i=e.r(41705),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,s]of Object.entries(t))void 0===s&&delete t[e];return{props:t}}let u=n.Image},26019,(e,t,s)=>{t.exports=e.r(88961)},15633,(e,t,s)=>{"use strict";function a(e,t){let s=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-s)<Math.abs(e-s)?t:e,t.qualities[0]):s}Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"findClosestQuality",{enumerable:!0,get:function(){return a}})},3866,(e,t,s)=>{"use strict";e.i(50461),Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"default",{enumerable:!0,get:function(){return l}});let a=e.r(15633),r=e.r(20262);function i({config:e,src:t,width:s,quality:l}){let n=(0,r.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//"))if(t.includes("/_next/static/immutable")&&!(0,r.getAssetToken)())n=void 0;else{let e=t.indexOf("?");if(-1!==e){let s=new URLSearchParams(t.slice(e+1)),a=s.get("dpl");if(a){n=a,s.delete("dpl");let r=s.toString();t=t.slice(0,e)+(r?"?"+r:"")}}}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.
109
- Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let o=(0,a.findClosestQuality)(l,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${s}&q=${o}${t.startsWith("/")&&n?`&dpl=${n}`:""}`}i.__next_img_default=!0;let l=i},66785,(e,t,s)=>{"use strict";e.i(50461),Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"getImgProps",{enumerable:!0,get:function(){return d}});let a=e.r(20262),r=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:s=!1,priority:u=!1,preload:c=!1,loading:m,className:f,quality:x,width:g,height:h,fill:p=!1,style:b,overrideSrc:j,onLoad:v,onLoadingComplete:w,placeholder:y="empty",blurDataURL:N,fetchPriority:E,decoding:C="async",layout:k,objectFit:_,objectPosition:S,lazyBoundary:I,lazyRoot:q,...O},M){var P;let R,D,L,{imgConf:$,showAltText:T,blurComplete:z,defaultLoader:F}=M,Q=$||i.imageConfigDefault;if("allSizes"in Q)R=Q;else{let e=[...Q.deviceSizes,...Q.imageSizes].sort((e,t)=>e-t),t=Q.deviceSizes.sort((e,t)=>e-t),s=Q.qualities?.sort((e,t)=>e-t);R={...Q,allSizes:e,deviceSizes:t,qualities:s}}if(void 0===F)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 A=O.loader||F;delete O.loader,delete O.srcSet;let B="__next_img_default"in A;if(B){if("custom"===R.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
110
- Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=A;A=t=>{let{config:s,...a}=t;return e(a)}}if(k){"fill"===k&&(p=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[k];e&&(b={...b,...e});let s={responsive:"100vw",fill:"100vw"}[k];s&&!t&&(t=s)}let J="",U=o(g),W=o(h);if((P=e)&&"object"==typeof P&&(n(P)||void 0!==P.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,L=t.blurHeight,N=N||t.blurDataURL,J=t.src,!p)if(U||W){if(U&&!W){let e=U/t.width;W=Math.round(t.height*e)}else if(!U&&W){let e=W/t.height;U=Math.round(t.width*e)}}else U=t.width,W=t.height}let G=!u&&!c&&("lazy"===m||void 0===m);(!(e="string"==typeof e?e:J)||e.startsWith("data:")||e.startsWith("blob:"))&&(s=!0,G=!1),R.unoptimized&&(s=!0),B&&!R.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(s=!0);let V=o(x),X=Object.assign(p?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:_,objectPosition:S}:{},T?{}:{color:"transparent"},b),Z=z||"empty"===y?null:"blur"===y?`url("data:image/svg+xml;charset=utf-8,${(0,r.getImageBlurSvg)({widthInt:U,heightInt:W,blurWidth:D,blurHeight:L,blurDataURL:N||"",objectFit:X.objectFit})}")`:`url("${y}")`,H=l.includes(X.objectFit)?"fill"===X.objectFit?"100% 100%":"cover":X.objectFit,K=Z?{backgroundSize:H,backgroundPosition:X.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Z}:{},Y=function({config:e,src:t,unoptimized:s,width:r,quality:i,sizes:l,loader:n}){if(s){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,a.getDeploymentId)();if(t.includes("/_next/static/immutable")&&!(0,a.getAssetToken)())e=void 0;else if(e){let s=t.indexOf("?");if(-1!==s){let a=new URLSearchParams(t.slice(s+1));a.get("dpl")||(a.append("dpl",e),t=t.slice(0,s)+"?"+a.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:o,kind:d}=function({deviceSizes:e,allSizes:t},s,a){if(a){let s=/(^|\s)(1?\d?\d)vw/g,r=[];for(let e;e=s.exec(a);)r.push(parseInt(e[2]));if(r.length){let s=.01*Math.min(...r);return{widths:t.filter(t=>t>=e[0]*s),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof s?{widths:e,kind:"w"}:{widths:[...new Set([s,2*s].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,r,l),u=o.length-1;return{sizes:l||"w"!==d?l:"100vw",srcSet:o.map((s,a)=>`${n({config:e,src:t,quality:i,width:s})} ${"w"===d?s:a+1}${d}`).join(", "),src:n({config:e,src:t,quality:i,width:o[u]})}}({config:R,src:e,unoptimized:s,width:U,quality:V,sizes:t,loader:A}),ee=G?"lazy":m;return{props:{...O,loading:ee,fetchPriority:E,width:U,height:W,decoding:C,className:f,style:{...X,...K},sizes:Y.sizes,srcSet:Y.srcSet,src:j||Y.src},meta:{unoptimized:s,preload:c||u,placeholder:y,fill:p}}}},55034,(e,t,s)=>{"use strict";function a({widthInt:e,heightInt:t,blurWidth:s,blurHeight:r,blurDataURL:i,objectFit:l}){let n=s?40*s:e,o=r?40*r: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(s,"__esModule",{value:!0}),Object.defineProperty(s,"getImageBlurSvg",{enumerable:!0,get:function(){return a}})},13521,(e,t,s)=>{"use strict";e.i(50461),Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"ImageConfigContext",{enumerable:!0,get:function(){return i}});let a=e.r(41705)._(e.r(91788)),r=e.r(15125),i=a.default.createContext(r.imageConfigDefault)},15125,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a={VALID_LOADERS:function(){return i},imageConfigDefault:function(){return l}};for(var r in a)Object.defineProperty(s,r,{enumerable:!0,get:a[r]});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}}]);