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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (728) hide show
  1. package/README.md +136 -16
  2. package/dist/chunk-3L6EZQ6P.js +135 -0
  3. package/dist/chunk-5WPFHQZN.js +388 -0
  4. package/dist/chunk-AE5LOZGH.js +3350 -0
  5. package/dist/{chunk-JAVEZY3Q.js → chunk-AOR2B5N5.js} +14 -5
  6. package/dist/chunk-DTJ2DTKS.js +314 -0
  7. package/dist/{chunk-2RTX42IE.js → chunk-E7BVYJ3R.js} +2 -2
  8. package/dist/{chunk-XHOCXPD5.js → chunk-F6LBNV3H.js} +1 -1
  9. package/dist/chunk-FDHXLNZQ.js +44 -0
  10. package/dist/{chunk-MSPWYMDY.js → chunk-H6G4UTZ5.js} +83 -48
  11. package/dist/{chunk-XJBPMIC4.js → chunk-HERLM47Z.js} +81 -56
  12. package/dist/chunk-HTPSKUXQ.js +22476 -0
  13. package/dist/{chunk-7PPOGX7R.js → chunk-I64TXIE7.js} +48 -11
  14. package/dist/{chunk-QNLGYFV7.js → chunk-IYKPRAWC.js} +4 -0
  15. package/dist/chunk-J23QSWDL.js +8 -0
  16. package/dist/{chunk-SRAAKMWY.js → chunk-JED6SHHG.js} +4 -2
  17. package/dist/chunk-KRIRF7F6.js +76 -0
  18. package/dist/chunk-OTXM2UCD.js +19 -0
  19. package/dist/chunk-QHR23GVH.js +1099 -0
  20. package/dist/chunk-VBO377AY.js +14 -0
  21. package/dist/{chunk-4VNS5WPM.js → chunk-WPLOTFGW.js} +7 -8
  22. package/dist/components/ui/form/ChoicesField.d.ts.map +1 -1
  23. package/dist/components/ui/form/index.d.ts +1 -0
  24. package/dist/components/ui/form/index.d.ts.map +1 -1
  25. package/dist/components/ui/index.d.ts +5 -0
  26. package/dist/components/ui/index.d.ts.map +1 -1
  27. package/dist/form.js +1792 -27496
  28. package/dist/gql/operation-types.d.ts +20 -0
  29. package/dist/gql/operation-types.d.ts.map +1 -1
  30. package/dist/gql/schema-types.d.ts +1 -0
  31. package/dist/gql/schema-types.d.ts.map +1 -1
  32. package/dist/hooks.js +13 -6
  33. package/dist/modal.js +11 -78
  34. package/dist/modules/Auth/AuthContext.d.ts +9 -0
  35. package/dist/modules/Auth/AuthContext.d.ts.map +1 -0
  36. package/dist/modules/Auth/useAuth.d.ts +6 -0
  37. package/dist/modules/Auth/useAuth.d.ts.map +1 -0
  38. package/dist/modules/accounts.js +1 -1
  39. package/dist/modules/assortment.js +3 -3
  40. package/dist/modules/common/components/AppContext.d.ts.map +1 -1
  41. package/dist/modules/common/components/FormWrapper.d.ts.map +1 -1
  42. package/dist/modules/common/components/LocaleWrapper.d.ts +7 -0
  43. package/dist/modules/common/components/LocaleWrapper.d.ts.map +1 -0
  44. package/dist/modules/common/components/MediaAvatar.d.ts +6 -0
  45. package/dist/modules/common/components/MediaAvatar.d.ts.map +1 -0
  46. package/dist/modules/common/components/SelectOptions.d.ts +17 -0
  47. package/dist/modules/common/components/SelectOptions.d.ts.map +1 -0
  48. package/dist/modules/common/components/Table.d.ts +25 -0
  49. package/dist/modules/common/components/Table.d.ts.map +1 -0
  50. package/dist/modules/common/components/TableCell.d.ts +12 -0
  51. package/dist/modules/common/components/TableCell.d.ts.map +1 -0
  52. package/dist/modules/common/components/TableRow.d.ts +10 -0
  53. package/dist/modules/common/components/TableRow.d.ts.map +1 -0
  54. package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -1
  55. package/dist/modules/common/utils/sharedContext.d.ts +9 -0
  56. package/dist/modules/common/utils/sharedContext.d.ts.map +1 -0
  57. package/dist/modules/country.js +1 -1
  58. package/dist/modules/currency.js +1 -1
  59. package/dist/modules/delivery-provider.js +1 -1
  60. package/dist/modules/enrollment.js +1 -1
  61. package/dist/modules/event.js +1 -1
  62. package/dist/modules/filter.js +1 -1
  63. package/dist/modules/forms/lib/FormContext.d.ts.map +1 -1
  64. package/dist/modules/language.js +1 -1
  65. package/dist/modules/modal/hooks/useModal.d.ts.map +1 -1
  66. package/dist/modules/modal/utils/ModalContext.d.ts.map +1 -1
  67. package/dist/modules/order.js +1 -1
  68. package/dist/modules/payment-providers.js +1 -1
  69. package/dist/modules/product-review.js +3 -3
  70. package/dist/modules/product.js +4748 -7
  71. package/dist/modules/quotation.js +1 -1
  72. package/dist/modules/token.js +2 -2
  73. package/dist/modules/warehousing-providers.js +1 -1
  74. package/dist/modules/work.js +6 -10
  75. package/dist/plugins.js +1 -1
  76. package/dist/providers.js +8 -5
  77. package/dist/sdk/hooks.d.ts +3 -0
  78. package/dist/sdk/hooks.d.ts.map +1 -1
  79. package/dist/shims/admin-ui-plugins.js +1 -1
  80. package/dist/shims/apollo-client-react.js +1 -1
  81. package/dist/shims/apollo-client.js +1 -1
  82. package/dist/shims/next-head.js +1 -1
  83. package/dist/shims/next-image.js +1 -1
  84. package/dist/shims/next-link.js +1 -1
  85. package/dist/shims/next-router.js +1 -1
  86. package/dist/shims/react-dom-client.js +1 -1
  87. package/dist/shims/react-dom.js +1 -1
  88. package/dist/shims/react-hook-form.js +1 -1
  89. package/dist/shims/react-intl.js +1 -1
  90. package/dist/shims/react-jsx-runtime.js +1 -1
  91. package/dist/shims/react-toastify.js +1 -1
  92. package/dist/shims/react.js +1 -1
  93. package/dist/theme.js +1 -1
  94. package/dist/ui.js +3397 -3055
  95. package/out/403/index.html +2 -2
  96. package/out/404/index.html +2 -2
  97. package/out/404.html +2 -2
  98. package/out/423/index.html +2 -2
  99. package/out/500/index.html +2 -2
  100. package/out/_next/static/chunks/0-2b37ubdpy0o.js +7 -0
  101. package/out/_next/static/chunks/012cafv-4m7rj.js +807 -0
  102. package/out/_next/static/chunks/02dnhll1bce87.js +46 -0
  103. package/out/_next/static/chunks/02ptvddfjlsxb.js +1 -0
  104. package/out/_next/static/chunks/03ebenjfvoj8n.js +1 -0
  105. package/out/_next/static/chunks/03r347235l6c4.js +7 -0
  106. package/out/_next/static/chunks/05au-xyt__0f2.js +3 -0
  107. package/out/_next/static/chunks/05nn5xr3ufcsh.js +1 -0
  108. package/out/_next/static/chunks/05o_q7jg8wucs.js +44 -0
  109. package/out/_next/static/chunks/05scroolqe8fu.js +234 -0
  110. package/out/_next/static/chunks/072qxdqjtqvn9.js +11 -0
  111. package/out/_next/static/chunks/0752goe9_9g2s.js +110 -0
  112. package/out/_next/static/chunks/07e-sk6v9u-qh.js +807 -0
  113. package/out/_next/static/chunks/07evy5u8ldd1y.js +50 -0
  114. package/out/_next/static/chunks/083ylavob4a8d.js +3 -0
  115. package/out/_next/static/chunks/08jrw03_vxllg.js +54 -0
  116. package/out/_next/static/chunks/08pag0k09j2b3.js +807 -0
  117. package/out/_next/static/chunks/09n6h-_l73rez.js +13 -0
  118. package/out/_next/static/chunks/0_b5faks_mrvi.js +14 -0
  119. package/out/_next/static/chunks/0a_bg-ub3r2eo.js +60 -0
  120. package/out/_next/static/chunks/0aqxsjssb0dh9.js +21 -0
  121. package/out/_next/static/chunks/0aw4jxe6zcc0c.js +32 -0
  122. package/out/_next/static/chunks/0b0hrx3sbbs70.js +807 -0
  123. package/out/_next/static/chunks/0bg4_y1qh5y5h.js +47 -0
  124. package/out/_next/static/chunks/0bgz44wi1lidl.js +13 -0
  125. package/out/_next/static/chunks/0dcpvidzyamvk.js +100 -0
  126. package/out/_next/static/chunks/{19y4w6_d_qiou.js → 0dnh0kr83_tj0.js} +1 -1
  127. package/out/_next/static/chunks/0dxp17sbyy_dr.js +22 -0
  128. package/out/_next/static/chunks/0dxu94yin5gdn.js +35 -0
  129. package/out/_next/static/chunks/0e2c-jlh2q_eq.js +74 -0
  130. package/out/_next/static/chunks/0el7gr-83bm5j.js +3 -0
  131. package/out/_next/static/chunks/0f_ofo__wyqsp.js +22 -0
  132. package/out/_next/static/chunks/0gx9t6j5kx_ho.js +9 -0
  133. package/out/_next/static/chunks/0i9ymn9xxs0nx.js +18 -0
  134. package/out/_next/static/chunks/0iy11ws57hzzr.js +99 -0
  135. package/out/_next/static/chunks/0j8_uikfyrn1f.js +1 -0
  136. package/out/_next/static/chunks/0jeddko6bac8h.js +1 -0
  137. package/out/_next/static/chunks/0jzx7vxh13cpi.js +15 -0
  138. package/out/_next/static/chunks/0kody3217__os.js +16 -0
  139. package/out/_next/static/chunks/0kwo-m1-mo-s-.js +31 -0
  140. package/out/_next/static/chunks/0lp_pnq1t06sl.js +104 -0
  141. package/out/_next/static/chunks/0mez27zlo26ni.js +103 -0
  142. package/out/_next/static/chunks/0nj8vn3509oe-.js +9 -0
  143. package/out/_next/static/chunks/0np9pcbt6dmxe.js +25 -0
  144. package/out/_next/static/chunks/0o7k5vanq57ch.js +807 -0
  145. package/out/_next/static/chunks/0rqjr_lmrk4pz.js +5 -0
  146. package/out/_next/static/chunks/0swe0fkt4vyzn.js +136 -0
  147. package/out/_next/static/chunks/0u4st428hgv1v.js +27 -0
  148. package/out/_next/static/chunks/0u7--d8_-qyne.js +83 -0
  149. package/out/_next/static/chunks/0ubzi2s1spm4e.js +342 -0
  150. package/out/_next/static/chunks/0uecw_5mn0zvr.js +110 -0
  151. package/out/_next/static/chunks/0uxwblyj0htyb.js +1 -0
  152. package/out/_next/static/chunks/0uyhr7vs9ltp0.js +141 -0
  153. package/out/_next/static/chunks/0vr19nswhvt2-.js +14 -0
  154. package/out/_next/static/chunks/0vyvc19p87f_r.js +234 -0
  155. package/out/_next/static/chunks/0wznlnzc2xsbz.js +16 -0
  156. package/out/_next/static/chunks/0ycu-q8fcc8ta.js +1 -0
  157. package/out/_next/static/chunks/0ytserk6fuf71.js +175 -0
  158. package/out/_next/static/chunks/0zoum0jzrtu0s.js +145 -0
  159. package/out/_next/static/chunks/1-6s62fsl_z_7.js +126 -0
  160. package/out/_next/static/chunks/10b6et0qn-pa0.js +59 -0
  161. package/out/_next/static/chunks/13m7st62a61df.js +25 -0
  162. package/out/_next/static/chunks/13u_a5l2xngm4.js +1 -0
  163. package/out/_next/static/chunks/15vz50rks0o2-.js +238 -0
  164. package/out/_next/static/chunks/1647yxi4ymq0z.js +14 -0
  165. package/out/_next/static/chunks/16hd7xvkocqxs.js +807 -0
  166. package/out/_next/static/chunks/16t18hhd4ax36.js +2 -0
  167. package/out/_next/static/chunks/17wle25pg9jkp.js +11 -0
  168. package/out/_next/static/chunks/18juy_eauk94g.js +58 -0
  169. package/out/_next/static/chunks/19eflki8bmivb.js +81 -0
  170. package/out/_next/static/chunks/19eu5d-wm2hfr.js +23 -0
  171. package/out/_next/static/chunks/19izcjxrrapb3.js +9 -0
  172. package/out/_next/static/chunks/1_jbj-c1d2606.js +21 -0
  173. package/out/_next/static/chunks/1_pwqdjxb6oou.js +226 -0
  174. package/out/_next/static/chunks/1bftmuhck_-7b.js +1 -0
  175. package/out/_next/static/chunks/1bww_2og01jxh.js +807 -0
  176. package/out/_next/static/chunks/1c0cemuv_tf6i.js +16 -0
  177. package/out/_next/static/chunks/1c4a2qxtb3r4_.js +16 -0
  178. package/out/_next/static/chunks/1cjd95y23a9qx.js +1 -0
  179. package/out/_next/static/chunks/1cy-2yb5j5_9b.js +157 -0
  180. package/out/_next/static/chunks/1dkv555kaccbl.js +13 -0
  181. package/out/_next/static/chunks/1dt9_bzfioi8a.js +24 -0
  182. package/out/_next/static/chunks/1fd7ewfb7bi_g.js +234 -0
  183. package/out/_next/static/chunks/1gncrqljnmqjn.js +43 -0
  184. package/out/_next/static/chunks/1iewktf-9h_n8.js +15 -0
  185. package/out/_next/static/chunks/1l7p7exnzd0c2.js +12 -0
  186. package/out/_next/static/chunks/1nqu3ymv6lgev.js +3 -0
  187. package/out/_next/static/chunks/1o_8g-kpuqi9h.js +1 -0
  188. package/out/_next/static/chunks/1oent0-9-0rgb.js +20 -0
  189. package/out/_next/static/chunks/1og09fg689_nc.js +180 -0
  190. package/out/_next/static/chunks/1pj279k5ntty3.js +13 -0
  191. package/out/_next/static/chunks/1q_sewe1wbxsk.js +54 -0
  192. package/out/_next/static/chunks/1qvs4gd4rbhb2.js +15 -0
  193. package/out/_next/static/chunks/1rtv3c_klo0jk.js +1 -0
  194. package/out/_next/static/chunks/1sdqr2_r6o46f.js +16 -0
  195. package/out/_next/static/chunks/1vti949e9wuhz.js +15 -0
  196. package/out/_next/static/chunks/1x-yucftdml28.js +1 -0
  197. package/out/_next/static/chunks/1ylgjha1c0ua_.js +124 -0
  198. package/out/_next/static/chunks/1yp98n-n4gxwy.js +15 -0
  199. package/out/_next/static/chunks/1zcm_9oew7412.js +14 -0
  200. package/out/_next/static/chunks/2-e0d1qpp7rk9.js +14 -0
  201. package/out/_next/static/chunks/20ubrczdsehfm.js +879 -0
  202. package/out/_next/static/chunks/23m--gc-gjenm.js +3 -0
  203. package/out/_next/static/chunks/24-pobk4qjjvp.js +3 -0
  204. package/out/_next/static/chunks/24jptulqn322i.js +15 -0
  205. package/out/_next/static/chunks/24jyi7e2pq4gy.js +15 -0
  206. package/out/_next/static/chunks/26eux546aoag5.js +58 -0
  207. package/out/_next/static/chunks/270ua9t85a7ev.js +5 -0
  208. package/out/_next/static/chunks/28r_j2kquxrjn.js +807 -0
  209. package/out/_next/static/chunks/2_ccruvok3u8j.js +16 -0
  210. package/out/_next/static/chunks/2_ojfjgg8do9t.js +1 -0
  211. package/out/_next/static/chunks/2aj5aq_c0b4r_.js +13 -0
  212. package/out/_next/static/chunks/2ba3n9zx9e9q9.js +807 -0
  213. package/out/_next/static/chunks/2d-hxb31pgpn7.js +13 -0
  214. package/out/_next/static/chunks/2df2cqwidgpan.js +15 -0
  215. package/out/_next/static/chunks/2djnsowjy3p8y.js +1 -0
  216. package/out/_next/static/chunks/2dyj8q92_k5el.js +708 -0
  217. package/out/_next/static/chunks/2e0k9dt1emjfm.js +1 -0
  218. package/out/_next/static/chunks/2e3gba1n-yyuj.js +15 -0
  219. package/out/_next/static/chunks/2e_p1vqr0g_-_.js +7 -0
  220. package/out/_next/static/chunks/2e_te6sbs_5uw.js +1 -0
  221. package/out/_next/static/chunks/2f16josk9b_cl.js +8 -0
  222. package/out/_next/static/chunks/2fo2ki1egxbah.js +39 -0
  223. package/out/_next/static/chunks/2g8gzs8wpsofk.js +2 -0
  224. package/out/_next/static/chunks/2gh355-kh19zx.js +13 -0
  225. package/out/_next/static/chunks/2gr4t5xe0atdr.js +15 -0
  226. package/out/_next/static/chunks/2ib6fee-nqe-z.js +23 -0
  227. package/out/_next/static/chunks/2kjux30i3gg-c.js +5 -0
  228. package/out/_next/static/chunks/2ll_mqee86g8c.js +1 -0
  229. package/out/_next/static/chunks/2lx_iig9xewfj.js +52 -0
  230. package/out/_next/static/chunks/2lylr4-3tu1_t.js +15 -0
  231. package/out/_next/static/chunks/2n1v8ph2nt43w.js +17 -0
  232. package/out/_next/static/chunks/2o9hdz0gk1-s7.js +165 -0
  233. package/out/_next/static/chunks/2oadogfqpak51.js +1 -0
  234. package/out/_next/static/chunks/2oogwntgnu9rf.js +17 -0
  235. package/out/_next/static/chunks/2p4e3kh8sa8iq.js +13 -0
  236. package/out/_next/static/chunks/2q-mpau-4gsvd.js +1 -0
  237. package/out/_next/static/chunks/2rddaar-ns45d.js +116 -0
  238. package/out/_next/static/chunks/2s3qhuh87mu_w.js +126 -0
  239. package/out/_next/static/chunks/2s6u8274_jzk2.js +105 -0
  240. package/out/_next/static/chunks/2skfzjx2g9hkk.js +134 -0
  241. package/out/_next/static/chunks/2u6jwsqz0uhes.js +24 -0
  242. package/out/_next/static/chunks/2v4k4vpb2id7m.js +44 -0
  243. package/out/_next/static/chunks/2xctb084h1lyg.js +329 -0
  244. package/out/_next/static/chunks/2xgpwzpd6-tdb.js +234 -0
  245. package/out/_next/static/chunks/3-soz24u9483h.js +15 -0
  246. package/out/_next/static/chunks/30_ns6urg1dkn.js +41 -0
  247. package/out/_next/static/chunks/30nxkqu5mcga3.js +1 -0
  248. package/out/_next/static/chunks/{0gurfn3nhm859.js → 313i1x81q2xj1.js} +1 -1
  249. package/out/_next/static/chunks/31qwglme02a_r.js +807 -0
  250. package/out/_next/static/chunks/31sk60zzj3bc5.js +17 -0
  251. package/out/_next/static/chunks/325a7n__tfxy_.js +61 -0
  252. package/out/_next/static/chunks/33emlry70k-lv.js +2 -0
  253. package/out/_next/static/chunks/33v8la4hkia7j.js +1 -0
  254. package/out/_next/static/chunks/34ar-34flu6bu.js +43 -0
  255. package/out/_next/static/chunks/34z48lfdm9u0l.js +9 -0
  256. package/out/_next/static/chunks/351jscvbk_wb9.js +13 -0
  257. package/out/_next/static/chunks/357odtev0t245.js +59 -0
  258. package/out/_next/static/chunks/360g4b1clnt45.js +142 -0
  259. package/out/_next/static/chunks/360uyru28azf6.js +20 -0
  260. package/out/_next/static/chunks/366apf6d0xh2u.js +30 -0
  261. package/out/_next/static/chunks/36_zbuqpk5cpj.js +14 -0
  262. package/out/_next/static/chunks/36aqs7u7s-lb1.js +119 -0
  263. package/out/_next/static/chunks/36beon3q8orx2.js +1 -0
  264. package/out/_next/static/chunks/37703j9_zf5_h.js +13 -0
  265. package/out/_next/static/chunks/37rwzuocwsv_k.js +16 -0
  266. package/out/_next/static/chunks/37w6b3h04uc4c.js +19 -0
  267. package/out/_next/static/chunks/38ffn8gazqz8_.js +3 -0
  268. package/out/_next/static/chunks/38xse6_r51yqp.js +234 -0
  269. package/out/_next/static/chunks/39s8xbnm9f08v.js +14 -0
  270. package/out/_next/static/chunks/39x-p8r_sl0ng.js +15 -0
  271. package/out/_next/static/chunks/39zisxvmik0t_.js +34 -0
  272. package/out/_next/static/chunks/3_97tge0xvvon.js +11 -0
  273. package/out/_next/static/chunks/3aw-ri7876ngd.js +39 -0
  274. package/out/_next/static/chunks/3bv7gi3o6-41h.js +11 -0
  275. package/out/_next/static/chunks/3cdfuacs4_0d-.js +1 -0
  276. package/out/_next/static/chunks/3cxpx38ycu7u2.js +9 -0
  277. package/out/_next/static/chunks/3d1ofcqmlbg-5.js +52 -0
  278. package/out/_next/static/chunks/3e3i3qqkv_my7.js +15 -0
  279. package/out/_next/static/chunks/3ex71q3pp_ekc.js +247 -0
  280. package/out/_next/static/chunks/3g1lpkudwo8kg.js +1 -0
  281. package/out/_next/static/chunks/3h68t22714to5.js +3 -0
  282. package/out/_next/static/chunks/3jpzhwqgdnobq.js +103 -0
  283. package/out/_next/static/chunks/3jxuqt_2-j_uc.js +18 -0
  284. package/out/_next/static/chunks/3kqqv33l7ssn0.js +16 -0
  285. package/out/_next/static/chunks/3l-9xxd1i1sya.js +1 -0
  286. package/out/_next/static/chunks/3mancxzz8c7hl.js +51 -0
  287. package/out/_next/static/chunks/3mq2s9rfy78je.js +27 -0
  288. package/out/_next/static/chunks/3om1fkw-lrmng.js +1 -0
  289. package/out/_next/static/chunks/3oynij37wfjb2.js +119 -0
  290. package/out/_next/static/chunks/3pbyo5kkko3wh.js +1 -0
  291. package/out/_next/static/chunks/3pjja1obml896.js +15 -0
  292. package/out/_next/static/chunks/3qaiz-jwi7q2x.js +1 -0
  293. package/out/_next/static/chunks/3rh3nigvg06yu.js +337 -0
  294. package/out/_next/static/chunks/3rppjab6j3_k9.js +1 -0
  295. package/out/_next/static/chunks/3t_3vlnk1ntkb.js +95 -0
  296. package/out/_next/static/chunks/3tpo2ho54vtth.js +807 -0
  297. package/out/_next/static/chunks/3tqspv0ggt8j0.js +17 -0
  298. package/out/_next/static/chunks/3um54w4ca27n_.js +17 -0
  299. package/out/_next/static/chunks/3vet2a9q9rf2c.js +61 -0
  300. package/out/_next/static/chunks/3vjgbl76cgrmt.js +1 -0
  301. package/out/_next/static/chunks/3vz3gqmojh7sx.js +4 -0
  302. package/out/_next/static/chunks/3w2e5xa061qou.js +9 -0
  303. package/out/_next/static/chunks/3w9xrlkiztuwi.js +23 -0
  304. package/out/_next/static/chunks/3x4xfy_av3o0d.js +1 -0
  305. package/out/_next/static/chunks/3x9k13s5fam4j.js +22 -0
  306. package/out/_next/static/chunks/{3a7wm2331v13r.js → 3xmtbqm0gddn8.js} +3 -3
  307. package/out/_next/static/chunks/3z5uyt9mc9_fd.js +2 -0
  308. package/out/_next/static/chunks/3zlwp96x3hoy9.js +16 -0
  309. package/out/_next/static/chunks/3zr_sumh1g7il.js +22 -0
  310. package/out/_next/static/chunks/40jl8yfmy6tp6.js +234 -0
  311. package/out/_next/static/chunks/40xhwnc_48o73.js +297 -0
  312. package/out/_next/static/chunks/41-iysd7qkyg1.js +16 -0
  313. package/out/_next/static/chunks/4105a9rejv_p4.js +1 -0
  314. package/out/_next/static/chunks/41e2wlkp9_pvk.js +28 -0
  315. package/out/_next/static/chunks/41g7mv3yuhz6k.js +68 -0
  316. package/out/_next/static/chunks/43jyzccx6x0lw.js +1 -0
  317. package/out/_next/static/chunks/43vuxh3wdo567.js +10 -0
  318. package/out/_next/static/chunks/44daaafswok67.css +1 -0
  319. package/out/_next/static/chunks/452fv7r-tie6t.js +1 -0
  320. package/out/_next/static/chunks/{164wr2-2gfnlb.js → 457j51b69odrw.js} +1 -1
  321. package/out/_next/static/chunks/{turbopack-3pgmc-lv74ewz.js → turbopack-02vysfmmbped5.js} +1 -1
  322. package/out/_next/static/chunks/{turbopack-1o1rar8ouv6h9.js → turbopack-03fj2scz_09ul.js} +1 -1
  323. package/out/_next/static/chunks/turbopack-07wtduwtfqsl_.js +1 -0
  324. package/out/_next/static/chunks/turbopack-0_zihh5ueb_wj.js +1 -0
  325. package/out/_next/static/chunks/{turbopack-2yekm5ij2g-aw.js → turbopack-0b8-ww_z1vgvn.js} +1 -1
  326. package/out/_next/static/chunks/{turbopack-431y1sh-m_0mp.js → turbopack-0beql_u-wc_3e.js} +1 -1
  327. package/out/_next/static/chunks/{turbopack-3_mmmbs60vr14.js → turbopack-0dxdn-gyy3_qj.js} +1 -1
  328. package/out/_next/static/chunks/turbopack-0hqw81t-42tbj.js +1 -0
  329. package/out/_next/static/chunks/turbopack-0jsdrr-oq87lm.js +1 -0
  330. package/out/_next/static/chunks/turbopack-0jxa33q3ikjqg.js +1 -0
  331. package/out/_next/static/chunks/turbopack-0k9zths9zte_8.js +1 -0
  332. package/out/_next/static/chunks/turbopack-0pa42wgwsv141.js +1 -0
  333. package/out/_next/static/chunks/{turbopack-19vr9o5829d-f.js → turbopack-0te09_mp07k1x.js} +1 -1
  334. package/out/_next/static/chunks/turbopack-0xsxl45thi-35.js +1 -0
  335. package/out/_next/static/chunks/{turbopack-2fuk9oepxr5n0.js → turbopack-10-8q-q2zomxa.js} +1 -1
  336. package/out/_next/static/chunks/turbopack-142w-8owzbg7_.js +1 -0
  337. package/out/_next/static/chunks/{turbopack-23u97wxsuqiqb.js → turbopack-18tezl3vagvil.js} +1 -1
  338. package/out/_next/static/chunks/turbopack-1_1a-_v7vml72.js +1 -0
  339. package/out/_next/static/chunks/{turbopack-1zn9gl4fpayoc.js → turbopack-1_k-7s9lmntml.js} +1 -1
  340. package/out/_next/static/chunks/turbopack-1a47di2tss4e-.js +1 -0
  341. package/out/_next/static/chunks/turbopack-1c60gn7g-uduw.js +1 -0
  342. package/out/_next/static/chunks/turbopack-1e1yk3pkaodr5.js +1 -0
  343. package/out/_next/static/chunks/{turbopack-3v4nxmdavly34.js → turbopack-1jtk1c9w2axlk.js} +1 -1
  344. package/out/_next/static/chunks/turbopack-1k2ukl9u-7ovo.js +1 -0
  345. package/out/_next/static/chunks/{turbopack-39nctu3yv9iv4.js → turbopack-1lkz81ntcp1zv.js} +1 -1
  346. package/out/_next/static/chunks/{turbopack-2dk8ur1fvwxzj.js → turbopack-1pkw_r5dvv20d.js} +1 -1
  347. package/out/_next/static/chunks/turbopack-1pu2s2k3szn0s.js +1 -0
  348. package/out/_next/static/chunks/turbopack-1rxz_6lqtls5b.js +1 -0
  349. package/out/_next/static/chunks/turbopack-1uf07pugrv1fy.js +1 -0
  350. package/out/_next/static/chunks/turbopack-1uobzdn2r7ebw.js +1 -0
  351. package/out/_next/static/chunks/{turbopack-1od_4a7nj02l4.js → turbopack-1wv610ktbtzka.js} +1 -1
  352. package/out/_next/static/chunks/{turbopack-3w26eu86co02z.js → turbopack-1wz4te1fj20zp.js} +1 -1
  353. package/out/_next/static/chunks/{turbopack-0s4b5r_1d8yqv.js → turbopack-1zi2ss8eiiyfx.js} +1 -1
  354. package/out/_next/static/chunks/turbopack-207p7bsc5wea7.js +1 -0
  355. package/out/_next/static/chunks/{turbopack-2ga09m38zacev.js → turbopack-21zngkzhonfcm.js} +1 -1
  356. package/out/_next/static/chunks/turbopack-23y20ll8n-nwk.js +1 -0
  357. package/out/_next/static/chunks/{turbopack-19e_bi5k2rqyy.js → turbopack-26wtylwa4_s95.js} +1 -1
  358. package/out/_next/static/chunks/turbopack-27l7xplqpifq6.js +1 -0
  359. package/out/_next/static/chunks/turbopack-285oyoobdo21x.js +1 -0
  360. package/out/_next/static/chunks/turbopack-28b0zyhf3uqaq.js +1 -0
  361. package/out/_next/static/chunks/{turbopack-0ga3wfg-oyyst.js → turbopack-28m_9eg3draop.js} +1 -1
  362. package/out/_next/static/chunks/{turbopack-23nr2ioaqw90j.js → turbopack-29h9fgcal-fng.js} +1 -1
  363. package/out/_next/static/chunks/turbopack-2a84kh6nmf_78.js +1 -0
  364. package/out/_next/static/chunks/turbopack-2b73dx1bsdg5f.js +1 -0
  365. package/out/_next/static/chunks/{turbopack-2u_328z53ed9p.js → turbopack-2bslf96g-y1vv.js} +1 -1
  366. package/out/_next/static/chunks/turbopack-2d-2wg8-_f9-v.js +1 -0
  367. package/out/_next/static/chunks/{turbopack-30qkgccwlkv7n.js → turbopack-2ez-mfb63qve0.js} +1 -1
  368. package/out/_next/static/chunks/{turbopack-0m3lvbvrn923g.js → turbopack-2g7u83j1wlswz.js} +1 -1
  369. package/out/_next/static/chunks/{turbopack-3uj40sz7i7jg0.js → turbopack-2m4gns1_64-7_.js} +1 -1
  370. package/out/_next/static/chunks/{turbopack-0anbjm4c1j4u4.js → turbopack-2n4ba44aafc4x.js} +1 -1
  371. package/out/_next/static/chunks/turbopack-2t3zb47_j-ahd.js +1 -0
  372. package/out/_next/static/chunks/{turbopack-2rz_y4ejrvafp.js → turbopack-2tf6rdek5zvm6.js} +1 -1
  373. package/out/_next/static/chunks/{turbopack-0a3j0ezn8okfg.js → turbopack-2vb0p2htqo4nd.js} +1 -1
  374. package/out/_next/static/chunks/{turbopack-0sihqflu4qpvw.js → turbopack-30-bi-9_7jd01.js} +1 -1
  375. package/out/_next/static/chunks/turbopack-32pjcar5xpn1o.js +1 -0
  376. package/out/_next/static/chunks/{turbopack-3cv3hgsoo_z1k.js → turbopack-3a3skasosq9-4.js} +1 -1
  377. package/out/_next/static/chunks/{turbopack-0w2rzh4i3j2og.js → turbopack-3d2rk8-5wcgrs.js} +1 -1
  378. package/out/_next/static/chunks/{turbopack-4166pmk5_y_4x.js → turbopack-3i91g2le3tkne.js} +1 -1
  379. package/out/_next/static/chunks/turbopack-3j4bdo8-ldea5.js +1 -0
  380. package/out/_next/static/chunks/{turbopack-2qbfd_-7v5dbo.js → turbopack-3m47jybfw85nc.js} +1 -1
  381. package/out/_next/static/chunks/{turbopack-24ylsu2au7hg1.js → turbopack-3yfksvslbm14s.js} +1 -1
  382. package/out/_next/static/chunks/{turbopack-21vayl2_q4r5u.js → turbopack-414roft8p92hp.js} +1 -1
  383. package/out/_next/static/chunks/{turbopack-1r_0o22d_puxo.js → turbopack-424slv1lqxh_5.js} +1 -1
  384. package/out/_next/static/chunks/turbopack-444yt6auyioxn.js +1 -0
  385. package/out/_next/static/{4-xf4wPkZc5rcBq3jUTDg → z5KrmhOz2mLscINN5EbUf}/_buildManifest.js +66 -62
  386. package/out/_offline/index.html +2 -2
  387. package/out/account/forgot-password/index.html +2 -2
  388. package/out/account/index.html +2 -2
  389. package/out/assortments/AssortmentDetailPage/index.html +2 -2
  390. package/out/assortments/index.html +2 -2
  391. package/out/assortments/new/index.html +2 -2
  392. package/out/copilot/index.html +2 -2
  393. package/out/country/CountryDetailPage/index.html +2 -2
  394. package/out/country/index.html +2 -2
  395. package/out/country/new/index.html +2 -2
  396. package/out/currency/CurrencyDetailPage/index.html +2 -2
  397. package/out/currency/index.html +2 -2
  398. package/out/currency/new/index.html +2 -2
  399. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
  400. package/out/delivery-provider/index.html +2 -2
  401. package/out/delivery-provider/new/index.html +2 -2
  402. package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
  403. package/out/enrollments/index.html +2 -2
  404. package/out/events/EventDetailPage/index.html +2 -2
  405. package/out/events/index.html +2 -2
  406. package/out/exports/index.html +2 -2
  407. package/out/ext/[[...slug]]/index.html +11 -0
  408. package/out/external/index.html +2 -2
  409. package/out/filters/FilterDetailPage/index.html +2 -2
  410. package/out/filters/index.html +2 -2
  411. package/out/filters/new/index.html +2 -2
  412. package/out/index.html +2 -2
  413. package/out/install/index.html +2 -2
  414. package/out/language/LanguageDetailPage/index.html +2 -2
  415. package/out/language/index.html +2 -2
  416. package/out/language/new/index.html +2 -2
  417. package/out/log-in/index.html +2 -2
  418. package/out/orders/OrderDetailPage/index.html +2 -2
  419. package/out/orders/index.html +2 -2
  420. package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
  421. package/out/payment-provider/index.html +2 -2
  422. package/out/payment-provider/new/index.html +2 -2
  423. package/out/products/ProductDetailPage/index.html +2 -2
  424. package/out/products/index.html +2 -2
  425. package/out/products/new/index.html +2 -2
  426. package/out/quotations/QuotationDetailPage/index.html +2 -2
  427. package/out/quotations/index.html +2 -2
  428. package/out/reset-password/index.html +2 -2
  429. package/out/sign-up/index.html +2 -2
  430. package/out/styleguide/index.html +2 -2
  431. package/out/tokens/TokenDetailPage/index.html +2 -2
  432. package/out/tokens/index.html +2 -2
  433. package/out/users/UserDetailPage/index.html +2 -2
  434. package/out/users/index.html +2 -2
  435. package/out/users/new/index.html +2 -2
  436. package/out/verify-email/index.html +2 -2
  437. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
  438. package/out/warehousing-provider/index.html +2 -2
  439. package/out/warehousing-provider/new/index.html +2 -2
  440. package/out/works/WorkDetailPage/index.html +2 -2
  441. package/out/works/WorkQueueListView/index.html +2 -2
  442. package/out/works/index.html +2 -2
  443. package/out/works/management/index.html +2 -2
  444. package/package.json +130 -26
  445. package/src/modules/accounts/index.ts +34 -0
  446. package/src/modules/assortment/index.ts +29 -0
  447. package/src/modules/copilot/index.ts +4 -0
  448. package/src/modules/country/index.ts +5 -0
  449. package/src/modules/currency/index.ts +5 -0
  450. package/src/modules/delivery-provider/index.ts +7 -0
  451. package/src/modules/enrollment/index.ts +6 -0
  452. package/src/modules/event/index.ts +3 -0
  453. package/src/modules/filter/index.ts +13 -0
  454. package/src/modules/language/index.ts +5 -0
  455. package/src/modules/order/index.ts +8 -0
  456. package/src/modules/payment-providers/index.ts +7 -0
  457. package/src/modules/product/index.ts +49 -0
  458. package/src/modules/product-review/index.ts +6 -0
  459. package/src/modules/quotation/index.ts +6 -0
  460. package/src/modules/token/index.ts +3 -0
  461. package/src/modules/warehousing-providers/index.ts +7 -0
  462. package/src/modules/work/index.ts +7 -0
  463. package/src/sdk/README.md +226 -0
  464. package/src/sdk/form-entry.test.mjs +11 -0
  465. package/src/sdk/hooks.ts +15 -0
  466. package/src/sdk/modal.ts +6 -0
  467. package/src/sdk/plugin-build.mjs +97 -0
  468. package/src/sdk/plugin-build.test.mjs +46 -0
  469. package/src/sdk/plugin-runtime.cjs +66 -0
  470. package/src/sdk/plugin-runtime.d.mts +11 -0
  471. package/src/sdk/plugin-runtime.mjs +27 -0
  472. package/src/sdk/plugin-runtime.test.mjs +32 -0
  473. package/src/sdk/plugins.mjs +17 -0
  474. package/src/sdk/plugins.ts +105 -0
  475. package/src/sdk/providers.ts +4 -0
  476. package/src/sdk/shared-context.test.mjs +40 -0
  477. package/src/sdk/shims/admin-ui-plugins.ts +3 -0
  478. package/src/sdk/shims/apollo-client-react.ts +3 -0
  479. package/src/sdk/shims/apollo-client.ts +3 -0
  480. package/src/sdk/shims/host.ts +61 -0
  481. package/src/sdk/shims/next-head.ts +3 -0
  482. package/src/sdk/shims/next-image.ts +3 -0
  483. package/src/sdk/shims/next-link.ts +3 -0
  484. package/src/sdk/shims/next-router.ts +3 -0
  485. package/src/sdk/shims/react-dom-client.ts +3 -0
  486. package/src/sdk/shims/react-dom.ts +3 -0
  487. package/src/sdk/shims/react-hook-form.ts +3 -0
  488. package/src/sdk/shims/react-intl.ts +3 -0
  489. package/src/sdk/shims/react-jsx-runtime.ts +3 -0
  490. package/src/sdk/shims/react-toastify.ts +3 -0
  491. package/src/sdk/shims/react.ts +3 -0
  492. package/src/sdk/tailwind-preset.mjs +94 -0
  493. package/src/sdk/theme.ts +61 -0
  494. package/src/styles/globals.css +291 -0
  495. package/dist/chunk-F2TCVEQX.js +0 -514
  496. package/dist/chunk-KCN7DDPH.js +0 -1116
  497. package/dist/chunk-RORNAN2J.js +0 -12
  498. package/dist/chunk-RVG6IOFC.js +0 -11
  499. package/dist/chunk-YZGQJJCD.js +0 -37
  500. package/out/_next/static/chunks/0-mytn4v5bu5h.js +0 -12
  501. package/out/_next/static/chunks/0-uh133eqcz6n.js +0 -60
  502. package/out/_next/static/chunks/0060t3kg_i0lf.js +0 -10
  503. package/out/_next/static/chunks/0186bg0b60cid.js +0 -13
  504. package/out/_next/static/chunks/018n9pot9f5uf.js +0 -90
  505. package/out/_next/static/chunks/01h4ept18s-ns.js +0 -807
  506. package/out/_next/static/chunks/02cdoh48sex9m.js +0 -1
  507. package/out/_next/static/chunks/03-z1yl608b56.js +0 -807
  508. package/out/_next/static/chunks/030bzkeke0edz.js +0 -7
  509. package/out/_next/static/chunks/037vsiy28s6dg.js +0 -41
  510. package/out/_next/static/chunks/049clkw76lm67.js +0 -16
  511. package/out/_next/static/chunks/04bb4k67x398t.js +0 -1
  512. package/out/_next/static/chunks/057evs7qr5y-t.js +0 -17
  513. package/out/_next/static/chunks/05qpw6q8uiz3l.js +0 -15
  514. package/out/_next/static/chunks/062myzj-2ehu-.js +0 -52
  515. package/out/_next/static/chunks/06l-rqlf4bp81.js +0 -108
  516. package/out/_next/static/chunks/06tejx8u1_0kg.js +0 -1
  517. package/out/_next/static/chunks/07nffhr51vke6.js +0 -59
  518. package/out/_next/static/chunks/08tyybz20igty.js +0 -15
  519. package/out/_next/static/chunks/0989pcuje2j55.js +0 -66
  520. package/out/_next/static/chunks/0_02skyivjqh6.js +0 -14
  521. package/out/_next/static/chunks/0_ngi84ak813x.js +0 -288
  522. package/out/_next/static/chunks/0bc02hascgv7z.js +0 -1
  523. package/out/_next/static/chunks/0c9ruqj2wf3n6.js +0 -905
  524. package/out/_next/static/chunks/0cblqqpscyy7w.js +0 -12
  525. package/out/_next/static/chunks/0cotrfgh1n2cx.js +0 -346
  526. package/out/_next/static/chunks/0d6_opzy2p6ik.js +0 -807
  527. package/out/_next/static/chunks/0e2e0srgvkzk9.js +0 -144
  528. package/out/_next/static/chunks/0g6hr3dmen536.js +0 -7
  529. package/out/_next/static/chunks/0ht2wu-61vq9v.js +0 -807
  530. package/out/_next/static/chunks/0ibp5q64hnd88.js +0 -18
  531. package/out/_next/static/chunks/0ichlp5c67dko.js +0 -12
  532. package/out/_next/static/chunks/0iui_zfuxfa45.js +0 -12
  533. package/out/_next/static/chunks/0k6z6zl_zxqp7.js +0 -13
  534. package/out/_next/static/chunks/0kkky_8vhaeaz.js +0 -227
  535. package/out/_next/static/chunks/0lutmpv07icdg.js +0 -8
  536. package/out/_next/static/chunks/0mzh9-epgepi1.js +0 -119
  537. package/out/_next/static/chunks/0n0uzfbkfb7e5.js +0 -12
  538. package/out/_next/static/chunks/0nhczsa2mm354.js +0 -16
  539. package/out/_next/static/chunks/0pecsk3c09b19.js +0 -3
  540. package/out/_next/static/chunks/0prynyrvhm7ef.js +0 -2
  541. package/out/_next/static/chunks/0q-14a7j6afh3.js +0 -1
  542. package/out/_next/static/chunks/0razrbxeai797.js +0 -807
  543. package/out/_next/static/chunks/0ryqvctymlr3k.js +0 -12
  544. package/out/_next/static/chunks/0se09klbk8drd.js +0 -68
  545. package/out/_next/static/chunks/0sh5256hzmj3b.js +0 -14
  546. package/out/_next/static/chunks/0srpqs12m-bwy.js +0 -13
  547. package/out/_next/static/chunks/0ukyxgmnqos6o.js +0 -1
  548. package/out/_next/static/chunks/0uv4d5f9o8wu1.js +0 -10
  549. package/out/_next/static/chunks/0vls1lbu_rh78.js +0 -342
  550. package/out/_next/static/chunks/0vx_1vxljh4tn.js +0 -13
  551. package/out/_next/static/chunks/0vxe9bw7ffqy2.js +0 -15
  552. package/out/_next/static/chunks/0w0zigi7aws2m.js +0 -1
  553. package/out/_next/static/chunks/0w2zoz_fn_wha.js +0 -137
  554. package/out/_next/static/chunks/0xuevvy5i5d12.js +0 -138
  555. package/out/_next/static/chunks/0xxvsq70e4xn0.js +0 -1
  556. package/out/_next/static/chunks/0yxc1yy1eq4u3.js +0 -149
  557. package/out/_next/static/chunks/1-uz_5-063kh9.js +0 -188
  558. package/out/_next/static/chunks/10h7lznd10mmp.js +0 -384
  559. package/out/_next/static/chunks/10os1s66nimmi.js +0 -110
  560. package/out/_next/static/chunks/12_5-baf13q49.js +0 -195
  561. package/out/_next/static/chunks/12qzh85d5on4y.js +0 -44
  562. package/out/_next/static/chunks/12ukdi5bzlbeo.js +0 -596
  563. package/out/_next/static/chunks/1398hevtpl_69.js +0 -1
  564. package/out/_next/static/chunks/13qk8ukzu1snm.js +0 -288
  565. package/out/_next/static/chunks/16ey81skn09dz.js +0 -1
  566. package/out/_next/static/chunks/18kae_yjyhjwf.js +0 -16
  567. package/out/_next/static/chunks/1_quktgfhf40v.js +0 -31
  568. package/out/_next/static/chunks/1aegvtb5jv57q.js +0 -12
  569. package/out/_next/static/chunks/1cgxgd2cf8u3j.js +0 -157
  570. package/out/_next/static/chunks/1cp4-dvxowp4c.js +0 -24
  571. package/out/_next/static/chunks/1d951b6ed8oqn.js +0 -110
  572. package/out/_next/static/chunks/1d_puhcn8lg6q.js +0 -51
  573. package/out/_next/static/chunks/1drrou5kp4qdz.js +0 -1
  574. package/out/_next/static/chunks/1e4_28-3u5o85.js +0 -30
  575. package/out/_next/static/chunks/1f3mflnvp8_7-.js +0 -31
  576. package/out/_next/static/chunks/1f5-j4f3irx0j.js +0 -147
  577. package/out/_next/static/chunks/1fzbon-ih4_3j.js +0 -1
  578. package/out/_next/static/chunks/1g57y7cq7tjcb.js +0 -9
  579. package/out/_next/static/chunks/1g8f6jrb9cp9v.js +0 -13
  580. package/out/_next/static/chunks/1gksg35fivk0-.js +0 -224
  581. package/out/_next/static/chunks/1gy9ae4fpd6jm.js +0 -17
  582. package/out/_next/static/chunks/1hq9yt63076pk.js +0 -16
  583. package/out/_next/static/chunks/1ikm9qcx--k3u.js +0 -807
  584. package/out/_next/static/chunks/1izpxynqp99t4.js +0 -193
  585. package/out/_next/static/chunks/1j2ko85jp-5wy.js +0 -807
  586. package/out/_next/static/chunks/1k-cn_5ey1u62.js +0 -15
  587. package/out/_next/static/chunks/1k0mvn915uz76.js +0 -14
  588. package/out/_next/static/chunks/1l4snbkce_jb6.js +0 -15
  589. package/out/_next/static/chunks/1lbsdlf5h6ojc.js +0 -16
  590. package/out/_next/static/chunks/1mwvnv71bl7mc.js +0 -1
  591. package/out/_next/static/chunks/1n7i2rp59o9o8.js +0 -384
  592. package/out/_next/static/chunks/1pklei2ds10d2.js +0 -66
  593. package/out/_next/static/chunks/1pxor-3_vf3du.js +0 -31
  594. package/out/_next/static/chunks/1qp68765j1aiv.js +0 -61
  595. package/out/_next/static/chunks/1r-cvj3mpr-7x.js +0 -87
  596. package/out/_next/static/chunks/1sivy8bkkmwxl.js +0 -5
  597. package/out/_next/static/chunks/1vk6h4qps69vq.js +0 -12
  598. package/out/_next/static/chunks/1vx8_u7-f7q8u.js +0 -28
  599. package/out/_next/static/chunks/1weq9keqxiqpy.js +0 -73
  600. package/out/_next/static/chunks/1wvicoevgxhkk.js +0 -14
  601. package/out/_next/static/chunks/1ziicn0eb_yji.js +0 -16
  602. package/out/_next/static/chunks/1zza9faw4t3b_.js +0 -46
  603. package/out/_next/static/chunks/1zzpf1xbmchcj.js +0 -132
  604. package/out/_next/static/chunks/2-4ng9fxftmld.js +0 -1
  605. package/out/_next/static/chunks/201rx84kyo8ag.js +0 -1
  606. package/out/_next/static/chunks/20rtv8f0brb0n.js +0 -43
  607. package/out/_next/static/chunks/21a19t2pe0fpg.js +0 -81
  608. package/out/_next/static/chunks/21o2yfegozc0m.js +0 -16
  609. package/out/_next/static/chunks/22w2ovaffle-i.js +0 -21
  610. package/out/_next/static/chunks/234pfdqctlnyt.js +0 -100
  611. package/out/_next/static/chunks/25d8wr34sbm__.js +0 -15
  612. package/out/_next/static/chunks/275o3ly3svw4p.js +0 -1
  613. package/out/_next/static/chunks/28z1z7in8-kbg.js +0 -26
  614. package/out/_next/static/chunks/29w1exzy704_7.js +0 -8
  615. package/out/_next/static/chunks/2bb7696udjx6k.js +0 -44
  616. package/out/_next/static/chunks/2bm5aw8hqlgf2.js +0 -50
  617. package/out/_next/static/chunks/2c4vy8ofex0ti.js +0 -14
  618. package/out/_next/static/chunks/2c7gw8ronvu-c.js +0 -807
  619. package/out/_next/static/chunks/2cbr3ybo4xsrv.js +0 -43
  620. package/out/_next/static/chunks/2eh6ku1a1zbs4.js +0 -135
  621. package/out/_next/static/chunks/2fed4-6c0ghqp.js +0 -99
  622. package/out/_next/static/chunks/2g39exixp92yf.js +0 -13
  623. package/out/_next/static/chunks/2gil5igdermzh.js +0 -36
  624. package/out/_next/static/chunks/2hm0mbq0vtqmw.js +0 -5
  625. package/out/_next/static/chunks/2hvt_8j6jkd_n.js +0 -14
  626. package/out/_next/static/chunks/2i5uj5i4z-xu8.js +0 -188
  627. package/out/_next/static/chunks/2ismth22knujm.js +0 -1
  628. package/out/_next/static/chunks/2iuznbar_ttrh.js +0 -18
  629. package/out/_next/static/chunks/2j6cph79-th54.js +0 -7
  630. package/out/_next/static/chunks/2jln1kjysf99p.js +0 -1
  631. package/out/_next/static/chunks/2jtk4-i4e9lug.js +0 -1
  632. package/out/_next/static/chunks/2k020ab3luqev.js +0 -1
  633. package/out/_next/static/chunks/2kbieaechn8m8.js +0 -1
  634. package/out/_next/static/chunks/2lwxs_ly4bz1o.js +0 -12
  635. package/out/_next/static/chunks/2mr2k4sb6i021.js +0 -32
  636. package/out/_next/static/chunks/2na27-e8gs0-f.js +0 -171
  637. package/out/_next/static/chunks/2nn3_f04lnr0b.js +0 -807
  638. package/out/_next/static/chunks/2ocwu5vbc5r34.js +0 -73
  639. package/out/_next/static/chunks/2qprgjhjl8d4c.js +0 -807
  640. package/out/_next/static/chunks/2rtyphk0o1hbr.js +0 -5
  641. package/out/_next/static/chunks/2skxi0oqka3ef.js +0 -26
  642. package/out/_next/static/chunks/2sukt9l-1md8_.js +0 -25
  643. package/out/_next/static/chunks/2t3t6gm5vlg_0.js +0 -58
  644. package/out/_next/static/chunks/2vt52_i-6cdbh.js +0 -10
  645. package/out/_next/static/chunks/2w5y5xf0nriwx.js +0 -1
  646. package/out/_next/static/chunks/2we4fnghpvprw.js +0 -190
  647. package/out/_next/static/chunks/30g-s0ioynhjx.js +0 -224
  648. package/out/_next/static/chunks/31y7dx6ytab7h.js +0 -3
  649. package/out/_next/static/chunks/363ng2l8o_bee.js +0 -101
  650. package/out/_next/static/chunks/36jick0alh9oa.js +0 -50
  651. package/out/_next/static/chunks/36pa0vs0telmp.js +0 -1
  652. package/out/_next/static/chunks/36yth4lm03_j8.js +0 -1
  653. package/out/_next/static/chunks/37phwvegpccj0.js +0 -217
  654. package/out/_next/static/chunks/38b7m-s26ciug.js +0 -137
  655. package/out/_next/static/chunks/38ipj45w-tqay.js +0 -21
  656. package/out/_next/static/chunks/38pz7fmyf6ay0.js +0 -1
  657. package/out/_next/static/chunks/39634va9fx9s2.js +0 -13
  658. package/out/_next/static/chunks/3a0hqx7ohm5lh.js +0 -23
  659. package/out/_next/static/chunks/3dr_oa5hx41is.js +0 -14
  660. package/out/_next/static/chunks/3e7w6ko5psik7.js +0 -17
  661. package/out/_next/static/chunks/3ebh4y7h6y1vq.js +0 -58
  662. package/out/_next/static/chunks/3eow7lw1727kt.js +0 -13
  663. package/out/_next/static/chunks/3f1gb4_hyhtho.js +0 -20
  664. package/out/_next/static/chunks/3g4qj6_qh97q_.js +0 -12
  665. package/out/_next/static/chunks/3gfjdynb9mg8h.js +0 -23
  666. package/out/_next/static/chunks/3gx4smk7pb27x.js +0 -119
  667. package/out/_next/static/chunks/3jcf4ei6zgnca.js +0 -17
  668. package/out/_next/static/chunks/3kisw9hre44e5.js +0 -807
  669. package/out/_next/static/chunks/3mnt471ayfsvh.js +0 -22
  670. package/out/_next/static/chunks/3ondw3-zthjz5.js +0 -15
  671. package/out/_next/static/chunks/3opuxnw_w3yb5.js +0 -101
  672. package/out/_next/static/chunks/3oxv1fo564rrf.js +0 -142
  673. package/out/_next/static/chunks/3ra_41-fw410n.js +0 -14
  674. package/out/_next/static/chunks/3s22ovhmk-4h7.js +0 -1
  675. package/out/_next/static/chunks/3sktz8258so64.js +0 -2
  676. package/out/_next/static/chunks/3tq-bb0j1_lpu.js +0 -14
  677. package/out/_next/static/chunks/3v1dxn4rp-o3v.js +0 -315
  678. package/out/_next/static/chunks/3w_wwl_hd91od.js +0 -1
  679. package/out/_next/static/chunks/3ww_p-agyd9u-.js +0 -14
  680. package/out/_next/static/chunks/3wzzh45yillzb.js +0 -1
  681. package/out/_next/static/chunks/3xfj8_2nd5d_1.js +0 -1
  682. package/out/_next/static/chunks/3xhmfg-981n_5.js +0 -61
  683. package/out/_next/static/chunks/3yz34q3ulli7q.js +0 -12
  684. package/out/_next/static/chunks/3z_c5kpm-e1ty.js +0 -15
  685. package/out/_next/static/chunks/3zqfchpzqxd92.css +0 -1
  686. package/out/_next/static/chunks/3zs002htik_8l.js +0 -21
  687. package/out/_next/static/chunks/4079hjuumfmm2.js +0 -31
  688. package/out/_next/static/chunks/40922jbr_e5ug.js +0 -51
  689. package/out/_next/static/chunks/40zy6mxa-be0m.js +0 -1
  690. package/out/_next/static/chunks/41fbmiggueudh.js +0 -13
  691. package/out/_next/static/chunks/43e0fp97w800k.js +0 -13
  692. package/out/_next/static/chunks/43gv4x1sfyb5l.js +0 -9
  693. package/out/_next/static/chunks/44nj9c766dqvc.js +0 -807
  694. package/out/_next/static/chunks/44r51e87s4z_d.js +0 -8
  695. package/out/_next/static/chunks/458tg2eg5h8j5.js +0 -324
  696. package/out/_next/static/chunks/45cd4ypk94sw2.js +0 -807
  697. package/out/_next/static/chunks/turbopack-01866gjdddrxa.js +0 -1
  698. package/out/_next/static/chunks/turbopack-08ttg7vxsdnsj.js +0 -1
  699. package/out/_next/static/chunks/turbopack-0pmjdjcdx7cqp.js +0 -1
  700. package/out/_next/static/chunks/turbopack-0tc31uax4buqq.js +0 -1
  701. package/out/_next/static/chunks/turbopack-10ldzl5n31zl-.js +0 -1
  702. package/out/_next/static/chunks/turbopack-19i6-4a5o4fil.js +0 -1
  703. package/out/_next/static/chunks/turbopack-19yw5qwon7l57.js +0 -1
  704. package/out/_next/static/chunks/turbopack-1cx5i7_gdoz5k.js +0 -1
  705. package/out/_next/static/chunks/turbopack-1d-c7awe26kf5.js +0 -1
  706. package/out/_next/static/chunks/turbopack-1l1aen9tojmq4.js +0 -1
  707. package/out/_next/static/chunks/turbopack-1rmdtpi005n_6.js +0 -1
  708. package/out/_next/static/chunks/turbopack-1wx5785osz26z.js +0 -1
  709. package/out/_next/static/chunks/turbopack-28_dvdmt6lvhn.js +0 -1
  710. package/out/_next/static/chunks/turbopack-2bo7hmw4eirxu.js +0 -1
  711. package/out/_next/static/chunks/turbopack-2e_wy0ffi64id.js +0 -1
  712. package/out/_next/static/chunks/turbopack-2g2viapamsvwe.js +0 -1
  713. package/out/_next/static/chunks/turbopack-2pxtve7lryqre.js +0 -1
  714. package/out/_next/static/chunks/turbopack-2u0ls0liblo_9.js +0 -1
  715. package/out/_next/static/chunks/turbopack-2xfom16ggx1i3.js +0 -1
  716. package/out/_next/static/chunks/turbopack-2ycfwit0p-fkf.js +0 -1
  717. package/out/_next/static/chunks/turbopack-3-w-v8og1lok2.js +0 -1
  718. package/out/_next/static/chunks/turbopack-36bl9-rerhcfg.js +0 -1
  719. package/out/_next/static/chunks/turbopack-37a6lyjyz7fts.js +0 -1
  720. package/out/_next/static/chunks/turbopack-37lb9ujef-ujm.js +0 -1
  721. package/out/_next/static/chunks/turbopack-3_o3qz69ih0uu.js +0 -1
  722. package/out/_next/static/chunks/turbopack-3cv39r7v3s2gr.js +0 -1
  723. package/out/_next/static/chunks/turbopack-3vfm6fp92up6y.js +0 -1
  724. package/out/_next/static/chunks/turbopack-3vyi51cuxeowy.js +0 -1
  725. package/out/_next/static/chunks/turbopack-3zc0h1216mtm2.js +0 -1
  726. package/out/admin-ui-permissions.js +0 -129
  727. /package/out/_next/static/{4-xf4wPkZc5rcBq3jUTDg → z5KrmhOz2mLscINN5EbUf}/_clientMiddlewareManifest.js +0 -0
  728. /package/out/_next/static/{4-xf4wPkZc5rcBq3jUTDg → z5KrmhOz2mLscINN5EbUf}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,21953,e=>{"use strict";let t="function"==typeof(0,e.i(22420).maybe)(()=>window.document.createElement);e.s(["canUseDOM",0,t])},30928,51104,e=>{"use strict";function t(...e){let r={};return e.forEach(e=>{e&&Reflect.ownKeys(e).forEach(t=>{let n=e[t];void 0!==n&&(r[t]=n)})}),r}e.s(["compact",0,t],51104),e.s(["mergeOptions",0,function(e,r){return t(e,r,r.variables&&{variables:t({...e&&e.variables,...r.variables})})}],30928)},41705,(e,t,r)=>{"use strict";r._=function(e){return e&&e.__esModule?e:{default:e}}},52456,(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}r._=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=i?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(o,u,c):o[u]=e[u]}return o.default=e,r&&r.set(e,o),o}},24669,e=>{"use strict";let{toString:t,hasOwnProperty:r}=Object.prototype,n=Function.prototype.toString,o=new Map;function i(e){return Object.keys(e).filter(u,e)}function u(e){return void 0!==this[e]}function c(e,t){let r=o.get(e);if(r){if(r.has(t))return!0}else o.set(e,r=new Set);return r.add(t),!1}e.s(["equal",0,function(e,u){try{return function e(o,u){if(o===u)return!0;let s=t.call(o);if(s!==t.call(u))return!1;switch(s){case"[object Array]":if(o.length!==u.length)break;case"[object Object]":{if(c(o,u))return!0;let t=i(o),n=i(u),s=t.length;if(s!==n.length)return!1;for(let e=0;e<s;++e)if(!r.call(u,t[e]))return!1;for(let r=0;r<s;++r){let n=t[r];if(!e(o[n],u[n]))return!1}return!0}case"[object Error]":return o.name===u.name&&o.message===u.message;case"[object Number]":if(o!=o)return u!=u;case"[object Boolean]":case"[object Date]":return+o==+u;case"[object RegExp]":case"[object String]":return o==`${u}`;case"[object Map]":case"[object Set]":{if(o.size!==u.size)return!1;if(c(o,u))return!0;let t=o.entries(),r="[object Map]"===s;for(;;){let n=t.next();if(n.done)break;let[o,i]=n.value;if(!u.has(o)||r&&!e(i,u.get(o)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":o=new Uint8Array(o),u=new Uint8Array(u);case"[object DataView]":{let e=o.byteLength;if(e===u.byteLength)for(;e--&&o[e]===u[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{var a,f;let e,t=n.call(o);if(t!==n.call(u))return!1;return a=t,f="{ [native code] }",!((e=a.length-f.length)>=0)||a.indexOf(f,e)!==e}}return!1}(e,u)}finally{o.clear()}}])},72043,(e,t,r)=>{!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(e=o(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var i in e)r.call(e,i)&&e[i]&&(t=o(t,i));return t}(i)))}return e}function o(e,t){return t?e?e+" "+t:e+t:e}if(t.exports)n.default=n,t.exports=n;else if("function"==typeof define&&"object"==typeof define.amd&&define.amd)void 0!==n&&e.v(n);else window.classNames=n}()},9356,e=>{"use strict";var t=e.i(35113);e.s(["isValid",0,function(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,t.toDate)(e)))}],9356)},49543,e=>{"use strict";var t=e.i(35113);e.s(["startOfDay",0,function(e,r){let n=(0,t.toDate)(e,r?.in);return n.setHours(0,0,0,0),n}])},35113,2848,98170,e=>{"use strict";let t=Symbol.for("constructDateFrom");function r(e,r){return"function"==typeof e?e(r):e&&"object"==typeof e&&t in e?e[t](r):e instanceof Date?new e.constructor(r):new Date(r)}e.s(["constructFromSymbol",0,t,"millisecondsInDay",0,864e5,"millisecondsInHour",0,36e5,"millisecondsInMinute",0,6e4,"millisecondsInWeek",0,6048e5,"minutesInDay",0,1440,"minutesInMonth",0,43200,"minutesInYear",0,525600],2848),e.s(["constructFrom",0,r],98170),e.s(["toDate",0,function(e,t){return r(t||e,e)}],35113)},54471,(e,t,r)=>{"use strict";function n(e,t,r,n){return!1}e.i(50461),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getDomainLocale",{enumerable:!0,get:function(){return n}}),e.r(70090),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},39149,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return E},useLinkStatus:function(){return j}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=e.r(52456),u=e.r(91398),c=i._(e.r(91788)),s=e.r(60472),a=e.r(71112),f=e.r(28169),l=e.r(89129),p=e.r(14862),d=e.r(25479),y=e.r(71914),g=e.r(54471),h=e.r(44113),m=e.r(63230),v=new Set;function b(e,t,r,n){if(!("u"<typeof window)&&(0,a.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let o=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(v.has(o))return;v.add(o)}e.prefetch(t,r,n).catch(e=>{})}}function _(e){return"string"==typeof e?e:(0,f.formatUrl)(e)}let O=c.default.forwardRef(function(e,t){let r,n,{href:o,as:i,children:f,prefetch:v=null,passHref:O,replace:S,shallow:j,scroll:E,locale:w,onClick:T,onNavigate:P,onMouseEnter:C,onTouchStart:R,legacyBehavior:k=!1,transitionTypes:x,...A}=e;r=f,k&&("string"==typeof r||"number"==typeof r)&&(r=(0,u.jsx)("a",{children:r}));let M=c.default.useContext(d.RouterContext),D=!1!==v,{href:I,as:L}=c.default.useMemo(()=>{if(!M){let e=_(o);return{href:e,as:i?_(i):e}}let[e,t]=(0,s.resolveHref)(M,o,!0);return{href:e,as:i?(0,s.resolveHref)(M,i):t||e}},[M,o,i]),N=c.default.useRef(I),H=c.default.useRef(L);k&&(n=c.default.Children.only(r));let $=k?n&&"object"==typeof n&&n.ref:t,[U,F,z]=(0,y.useIntersection)({rootMargin:"200px"}),B=c.default.useCallback(e=>{(H.current!==L||N.current!==I)&&(z(),H.current=L,N.current=I),U(e)},[L,I,z,U]),V=(0,m.useMergedRef)(B,$);c.default.useEffect(()=>{!M||F&&D&&b(M,I,L,{bypassPrefetchedCheck:!1,locale:w})},[L,I,F,w,D,M?.locale,M]);let K={ref:V,onClick(e){k||"function"!=typeof T||T(e),k&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),!M||e.defaultPrevented||function(e,t,r,n,o,i,u,c,s){let f,{nodeName:l}=e.currentTarget;if(!("A"===l.toUpperCase()&&((f=e.currentTarget.getAttribute("target"))&&"_self"!==f||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))){if(!(0,a.isLocalURL)(r)){o&&(e.preventDefault(),location.replace(r));return}e.preventDefault(),(()=>{if(s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let e=u??!0;"beforePopState"in t?t[o?"replace":"push"](r,n,{shallow:i,locale:c,scroll:e}):t[o?"replace":"push"](n||r,{scroll:e})})()}}(e,M,I,L,S,j,E,w,P)},onMouseEnter(e){k||"function"!=typeof C||C(e),k&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),M&&b(M,I,L,{locale:w,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){k||"function"!=typeof R||R(e),k&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),M&&b(M,I,L,{locale:w,priority:!0,bypassPrefetchedCheck:!0})}};if((0,l.isAbsoluteUrl)(L))K.href=L;else if(!k||O||"a"===n.type&&!("href"in n.props)){let e=void 0!==w?w:M?.locale;K.href=M?.isLocaleDomain&&(0,g.getDomainLocale)(L,e,M?.locales,M?.domainLocales)||(0,h.addBasePath)((0,p.addLocale)(L,e,M?.defaultLocale))}return k?c.default.cloneElement(n,K):(0,u.jsx)("a",{...A,...K,children:r})}),S=(0,c.createContext)({pending:!1}),j=()=>(0,c.useContext)(S),E=O;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},41158,(e,t,r)=>{t.exports=e.r(39149)},71914,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useIntersection",{enumerable:!0,get:function(){return s}});let n=e.r(91788),o=e.r(99604),i="function"==typeof IntersectionObserver,u=new Map,c=[];function s({rootRef:e,rootMargin:t,disabled:r}){let a=r||!i,[f,l]=(0,n.useState)(!1),p=(0,n.useRef)(null),d=(0,n.useCallback)(e=>{p.current=e},[]);return(0,n.useEffect)(()=>{if(i){if(a||f)return;let r=p.current;if(r&&r.tagName)return function(e,t,r){let{id:n,observer:o,elements:i}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},n=c.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=u.get(n)))return t;let o=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:o},c.push(r),u.set(r,t),t}(r);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),u.delete(n);let e=c.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&c.splice(e,1)}}}(r,e=>e&&l(e),{root:e?.current,rootMargin:t})}else if(!f){let e=(0,o.requestIdleCallback)(()=>l(!0));return()=>(0,o.cancelIdleCallback)(e)}},[a,t,e,f,p.current]),[d,f,(0,n.useCallback)(()=>{l(!1)},[])]}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},63230,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(91788);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=i(e,n)),t&&(o.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},20955,(e,t,r)=>{var n={156:function(e){var t,r,n,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function u(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(e){r=u}function c(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var s=[],a=!1,f=-1;function l(){a&&n&&(a=!1,n.length?s=n.concat(s):f=-1,s.length&&p())}function p(){if(!a){var e=c(l);a=!0;for(var t=s.length;t;){for(n=s,s=[];++f<t;)n&&n[f].run();f=-1,t=s.length}n=null,a=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];s.push(new d(e,t)),1!==s.length||a||c(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}},u=!0;try{n[e](r,r.exports,i),u=!1}finally{u&&delete o[e]}return r.exports}i.ab="/ROOT/node_modules/next/dist/compiled/process/",t.exports=i(156)},50461,(e,t,r)=>{"use strict";var n,o;t.exports=(null==(n=e.g.process)?void 0:n.env)&&"object"==typeof(null==(o=e.g.process)?void 0:o.env)?e.g.process:e.r(20955)},20262,(e,t,r)=>{"use strict";let n;e.i(50461),Object.defineProperty(r,"__esModule",{value:!0});var o={getAssetToken:function(){return s},getAssetTokenQuery:function(){return a},getDeploymentId:function(){return u},getDeploymentIdQuery:function(){return c}};for(var i in o)Object.defineProperty(r,i,{enumerable:!0,get:o[i]});function u(){return n}function c(e=!1){let t=n;return t?`${e?"&":"?"}dpl=${t}`:""}function s(){return!1}function a(e=!1){return""}"u">typeof window?(n=document.documentElement.dataset.dplId,delete document.documentElement.dataset.dplId):n=void 0},13584,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=e.r(41705)._(e.r(91788)).default.createContext({})},89129,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return m},MiddlewareNotFoundError:function(){return O},MissingStaticPage:function(){return _},NormalizeError:function(){return v},PageNotFoundError:function(){return b},SP:function(){return g},ST:function(){return h},WEB_VITALS:function(){return i},execOnce:function(){return u},getDisplayName:function(){return l},getLocationOrigin:function(){return a},getURL:function(){return f},isAbsoluteUrl:function(){return s},isResSent:function(){return p},loadGetInitialProps:function(){return y},normalizeRepeatedSlashes:function(){return d},stringifyError:function(){return S}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function u(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let c=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&c.test(e)};function a(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function f(){let{href:e}=window.location,t=a();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function p(e){return e.finished||e.headersSent}function d(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function y(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await y(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&p(r))return n;if(!n)throw Object.defineProperty(Error(`"${l(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let g="u">typeof performance,h=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class m extends Error{}class v extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class _ extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class O extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(e){return JSON.stringify({message:e.message,stack:e.stack})}},3828,(e,t,r)=>{t.exports=e.r(26990)},17431,(e,t,r)=>{"use strict";var n=e.r(91788);function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var u={d:{f:i,r:function(){throw Error(o(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},c=Symbol.for("react.portal"),s=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,r.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(o(299));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:c,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},r.flushSync=function(e){var t=s.T,r=u.p;try{if(s.T=null,u.p=2,e)return e()}finally{s.T=t,u.p=r,u.d.f()}},r.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,u.d.C(e,t))},r.prefetchDNS=function(e){"string"==typeof e&&u.d.D(e)},r.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var r=t.as,n=a(r,t.crossOrigin),o="string"==typeof t.integrity?t.integrity:void 0,i="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===r?u.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:n,integrity:o,fetchPriority:i}):"script"===r&&u.d.X(e,{crossOrigin:n,integrity:o,fetchPriority:i,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},r.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var r=a(t.as,t.crossOrigin);u.d.M(e,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&u.d.M(e)},r.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var r=t.as,n=a(r,t.crossOrigin);u.d.L(e,r,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},r.preloadModule=function(e,t){if("string"==typeof e)if(t){var r=a(t.as,t.crossOrigin);u.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else u.d.m(e)},r.requestFormReset=function(e){u.d.r(e)},r.unstable_batchedUpdates=function(e,t){return e(t)},r.useFormState=function(e,t,r){return s.H.useFormState(e,t,r)},r.useFormStatus=function(){return s.H.useHostTransitionStatus()},r.version="19.2.8"},30943,(e,t,r)=>{"use strict";e.i(50461),!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),t.exports=e.r(17431)},8481,(e,t,r)=>{"use strict";var n=Symbol.for("react.transitional.element");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in r={},t)"key"!==i&&(r[i]=t[i]);else r=t;return{$$typeof:n,type:e,key:o,ref:void 0!==(t=r.ref)?t:null,props:r}}r.Fragment=Symbol.for("react.fragment"),r.jsx=o,r.jsxs=o},91398,(e,t,r)=>{"use strict";e.i(50461),t.exports=e.r(8481)},61556,(e,t,r)=>{"use strict";var n=e.i(50461),o=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),f=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),h=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,b={};function _(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||m}function O(){}function S(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},O.prototype=_.prototype;var j=S.prototype=new O;j.constructor=S,v(j,_.prototype),j.isPureReactComponent=!0;var E=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function C(e,t,r){var n=r.ref;return{$$typeof:o,type:e,key:t,ref:void 0!==n?n:null,props:r}}function R(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var k=/\/+/g;function x(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function A(e,t,r){if(null==e)return e;var n=[],u=0;return!function e(t,r,n,u,c){var s,a,f,l=typeof t;("undefined"===l||"boolean"===l)&&(t=null);var p=!1;if(null===t)p=!0;else switch(l){case"bigint":case"string":case"number":p=!0;break;case"object":switch(t.$$typeof){case o:case i:p=!0;break;case y:return e((p=t._init)(t._payload),r,n,u,c)}}if(p)return c=c(t),p=""===u?"."+x(t,0):u,E(c)?(n="",null!=p&&(n=p.replace(k,"$&/")+"/"),e(c,r,n,"",function(e){return e})):null!=c&&(R(c)&&(s=c,a=n+(null==c.key||t&&t.key===c.key?"":(""+c.key).replace(k,"$&/")+"/")+p,c=C(s.type,a,s.props)),r.push(c)),1;p=0;var d=""===u?".":u+":";if(E(t))for(var g=0;g<t.length;g++)l=d+x(u=t[g],g),p+=e(u,r,n,l,c);else if("function"==typeof(g=null===(f=t)||"object"!=typeof f?null:"function"==typeof(f=h&&f[h]||f["@@iterator"])?f:null))for(t=g.call(t),g=0;!(u=t.next()).done;)l=d+x(u=u.value,g++),p+=e(u,r,n,l,c);else if("object"===l){if("function"==typeof t.then)return e(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(w,w):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(t),r,n,u,c);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(r=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return p}(e,n,"","",function(e){return t.call(r,e,u++)}),n}function M(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof n.default&&"function"==typeof n.default.emit)return void n.default.emit("uncaughtException",e);console.error(e)};r.Activity=g,r.Children={map:A,forEach:function(e,t,r){A(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!R(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},r.Component=_,r.Fragment=u,r.Profiler=s,r.PureComponent=S,r.StrictMode=c,r.Suspense=p,r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,r.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},r.cache=function(e){return function(){return e.apply(null,arguments)}},r.cacheSignal=function(){return null},r.cloneElement=function(e,t,r){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var n=v({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)P.call(t,i)&&"key"!==i&&"__self"!==i&&"__source"!==i&&("ref"!==i||void 0!==t.ref)&&(n[i]=t[i]);var i=arguments.length-2;if(1===i)n.children=r;else if(1<i){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+2];n.children=u}return C(e.type,o,n)},r.createContext=function(e){return(e={$$typeof:f,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:a,_context:e},e},r.createElement=function(e,t,r){var n,o={},i=null;if(null!=t)for(n in void 0!==t.key&&(i=""+t.key),t)P.call(t,n)&&"key"!==n&&"__self"!==n&&"__source"!==n&&(o[n]=t[n]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var c=Array(u),s=0;s<u;s++)c[s]=arguments[s+2];o.children=c}if(e&&e.defaultProps)for(n in u=e.defaultProps)void 0===o[n]&&(o[n]=u[n]);return C(e,i,o)},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:l,render:e}},r.isValidElement=R,r.lazy=function(e){return{$$typeof:y,_payload:{_status:-1,_result:e},_init:M}},r.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},r.startTransition=function(e){var t=T.T,r={};T.T=r;try{var n=e(),o=T.S;null!==o&&o(r,n),"object"==typeof n&&null!==n&&"function"==typeof n.then&&n.then(w,D)}catch(e){D(e)}finally{null!==t&&null!==r.types&&(t.types=r.types),T.T=t}},r.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},r.use=function(e){return T.H.use(e)},r.useActionState=function(e,t,r){return T.H.useActionState(e,t,r)},r.useCallback=function(e,t){return T.H.useCallback(e,t)},r.useContext=function(e){return T.H.useContext(e)},r.useDebugValue=function(){},r.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},r.useEffect=function(e,t){return T.H.useEffect(e,t)},r.useEffectEvent=function(e){return T.H.useEffectEvent(e)},r.useId=function(){return T.H.useId()},r.useImperativeHandle=function(e,t,r){return T.H.useImperativeHandle(e,t,r)},r.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},r.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},r.useMemo=function(e,t){return T.H.useMemo(e,t)},r.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},r.useReducer=function(e,t,r){return T.H.useReducer(e,t,r)},r.useRef=function(e){return T.H.useRef(e)},r.useState=function(e){return T.H.useState(e)},r.useSyncExternalStore=function(e,t,r){return T.H.useSyncExternalStore(e,t,r)},r.useTransition=function(){return T.H.useTransition()},r.version="19.2.8"},91788,(e,t,r)=>{"use strict";e.i(50461),t.exports=e.r(61556)}]);
@@ -1,13 +0,0 @@
1
- __turbopack_load_page_chunks__("/warehousing-provider/new", [
2
- "static/chunks/2cbr3ybo4xsrv.js",
3
- "static/chunks/36yth4lm03_j8.js",
4
- "static/chunks/3sktz8258so64.js",
5
- "static/chunks/0d6_opzy2p6ik.js",
6
- "static/chunks/38pz7fmyf6ay0.js",
7
- "static/chunks/06tejx8u1_0kg.js",
8
- "static/chunks/1vx8_u7-f7q8u.js",
9
- "static/chunks/2hm0mbq0vtqmw.js",
10
- "static/chunks/252jebodi67kg.js",
11
- "static/chunks/2-4ng9fxftmld.js",
12
- "static/chunks/turbopack-39nctu3yv9iv4.js"
13
- ])
@@ -1,23 +0,0 @@
1
- __turbopack_load_page_chunks__("/products/ProductDetailPage", [
2
- "static/chunks/0m6jydfuy_4o3.js",
3
- "static/chunks/36yth4lm03_j8.js",
4
- "static/chunks/38pz7fmyf6ay0.js",
5
- "static/chunks/1gksg35fivk0-.js",
6
- "static/chunks/0d6_opzy2p6ik.js",
7
- "static/chunks/1vx8_u7-f7q8u.js",
8
- "static/chunks/2kbieaechn8m8.js",
9
- "static/chunks/1sivy8bkkmwxl.js",
10
- "static/chunks/2w5y5xf0nriwx.js",
11
- "static/chunks/2hm0mbq0vtqmw.js",
12
- "static/chunks/1zza9faw4t3b_.js",
13
- "static/chunks/06tejx8u1_0kg.js",
14
- "static/chunks/0r5wwinf72z4g.js",
15
- "static/chunks/252jebodi67kg.js",
16
- "static/chunks/3sktz8258so64.js",
17
- "static/chunks/2jtk4-i4e9lug.js",
18
- "static/chunks/2-4ng9fxftmld.js",
19
- "static/chunks/12ukdi5bzlbeo.js",
20
- "static/chunks/0_ngi84ak813x.js",
21
- "static/chunks/2jln1kjysf99p.js",
22
- "static/chunks/turbopack-3-w-v8og1lok2.js"
23
- ])
@@ -1,14 +0,0 @@
1
- __turbopack_load_page_chunks__("/delivery-provider/DeliveryProviderDetailPage", [
2
- "static/chunks/21a19t2pe0fpg.js",
3
- "static/chunks/36yth4lm03_j8.js",
4
- "static/chunks/3sktz8258so64.js",
5
- "static/chunks/0d6_opzy2p6ik.js",
6
- "static/chunks/38pz7fmyf6ay0.js",
7
- "static/chunks/2-4ng9fxftmld.js",
8
- "static/chunks/252jebodi67kg.js",
9
- "static/chunks/06tejx8u1_0kg.js",
10
- "static/chunks/2hm0mbq0vtqmw.js",
11
- "static/chunks/1vx8_u7-f7q8u.js",
12
- "static/chunks/2w5y5xf0nriwx.js",
13
- "static/chunks/turbopack-2ga09m38zacev.js"
14
- ])
@@ -1,17 +0,0 @@
1
- __turbopack_load_page_chunks__("/copilot", [
2
- "static/chunks/0uw9cbq0ivaz0.js",
3
- "static/chunks/0bc02hascgv7z.js",
4
- "static/chunks/3xfj8_2nd5d_1.js",
5
- "static/chunks/1vx8_u7-f7q8u.js",
6
- "static/chunks/3sktz8258so64.js",
7
- "static/chunks/0w2zoz_fn_wha.js",
8
- "static/chunks/0ukyxgmnqos6o.js",
9
- "static/chunks/234pfdqctlnyt.js",
10
- "static/chunks/2rtyphk0o1hbr.js",
11
- "static/chunks/0r5wwinf72z4g.js",
12
- "static/chunks/2hm0mbq0vtqmw.js",
13
- "static/chunks/31y7dx6ytab7h.js",
14
- "static/chunks/252jebodi67kg.js",
15
- "static/chunks/06tejx8u1_0kg.js",
16
- "static/chunks/turbopack-0w2rzh4i3j2og.js"
17
- ])
@@ -1,58 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70693,12970,e=>{"use strict";var t=e.i(91788);let s=t.default.createContext({customProperties:{},hydrateFragment:(e,t)=>null});e.s(["default",0,s],12970),e.s(["default",0,()=>(0,t.useContext)(s)],70693)},5505,e=>{"use strict";var t=e.i(91398),s=e.i(91788),a=e.i(72043);let r=(0,s.createContext)(!1);e.s(["FormWrapperContext",0,r,"default",0,({children:e,className:s=""})=>(0,t.jsx)(r.Provider,{value:!0,children:(0,t.jsx)("div",{className:"sm:max-w-full",children:(0,t.jsx)("div",{className:(0,a.default)("bg-white dark:bg-slate-800 rounded-md shadow-sm overflow-hidden",s),children:e})})})])},81359,e=>{"use strict";var t=e.i(91398),s=e.i(24608),a=e.i(69322);e.s(["default",0,({onClick:e,text:r=null,Icon:l=null})=>{let{formatMessage:i}=(0,a.useIntl)();return(0,t.jsxs)("button",{type:"button",onClick:e,"aria-describedby":"header-delete-button",className:"inline-flex items-center gap-2 justify-center rounded-md border border-rose-500 px-4 py-2 text-sm font-medium leading-5 text-rose-600 dark:text-rose-200 shadow-sm hover:border-rose-600 hover:bg-rose-600 hover:text-white focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 h-[38px]",children:[(0,t.jsx)("span",{children:l||(0,t.jsx)(s.XMarkIcon,{className:"h-5 w-5"})}),r||i({id:"delete",defaultMessage:"Delete"})]})}])},55215,e=>{"use strict";var t=e.i(91398),s=e.i(72043);e.s(["default",0,({value:e,className:a,onChange:r=()=>{},rows:l=7,...i})=>{let d=Math.max(e?e.split("\n").length:1,l);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:d,...i})}])},12197,e=>{"use strict";var t=e.i(91398),s=e.i(69322);e.s(["default",0,()=>{let{formatMessage:e}=(0,s.useIntl)();return(0,t.jsx)("div",{className:"my-5 flex h-full w-full items-center justify-center bg-slate-50 dark:bg-slate-950 py-5",children:(0,t.jsxs)("div",{className:"flex items-center justify-center space-x-1 text-sm text-slate-700 dark:text-slate-200",children:[(0,t.jsx)("svg",{fill:"none",className:"h-6 w-6 animate-spin",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{clipRule:"evenodd",d:"M15.165 8.53a.5.5 0 01-.404.58A7 7 0 1023 16a.5.5 0 011 0 8 8 0 11-9.416-7.874.5.5 0 01.58.404z",fill:"currentColor",fillRule:"evenodd"})}),(0,t.jsx)("div",{children:e({id:"loading",defaultMessage:"Loading ..."})})]})})}])},41523,e=>{"use strict";var t=e.i(91398),s=e.i(72043),a=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,a.useRouter)(),{tab:u=d}=n?.query||{},c=Array.isArray(u)?u[0]:u,{formatMessage:m}=(0,l.useIntl)(),x=e=>{if(o){let{sort:t,...s}=n?.query||{};n.push({query:{...s,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=>x(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:c,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:()=>x(e.id),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),x(e.id))},className:(0,s.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":c===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:c})})]})}])},38247,e=>{"use strict";var t=e.i(91398),s=e.i(72043),a=e.i(60741),r=e.i(82226),l=e.i(29691);let i=e=>{let t=new Date(e);return isNaN(t.getTime())?null:t.toISOString().split("T")[0]};e.s(["default",0,({validators:e=[],className:d,parseDate:o=i,...n})=>{let u=(0,a.default)({validators:[...e,r.validateDate],...n}),c=u.value?new Date(u.value).toISOString().split("T")[0]:"";return(0,t.jsx)(l.default,{...u,className:n.containerClassName,children:(0,t.jsx)("input",{type:"date",id:u.id,name:u.name,disabled:u.disabled,className:(0,s.default)("relative mt-0 block w-full appearance-none rounded-md rounded-b-md border-1 border-slate-300 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 dark:text-slate-200 dark:bg-slate-900 placeholder-slate-400 shadow-xs focus:z-10 focus:outline-hidden focus:ring-2 focus:ring-slate-800",d,{"border-rose-700 placeholder:text-rose-300":!!u.error}),onChange:e=>u.setValue(e.target.value),value:c,placeholder:u.placeholder,autoComplete:"off",...n})})}])},7105,e=>{"use strict";var t=e.i(91398),s=e.i(72043),a=e.i(55215),r=e.i(60741),l=e.i(29691);e.s(["default",0,({validators:e=[],rows:i=10,...d})=>{let o=(0,r.default)({...d,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)(l.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},d.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})})}])},45229,e=>{"use strict";var t=e.i(91398),s=e.i(72043),a=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,a.validateMaxLength)(e)],...d});return(0,t.jsx)(l.default,{...o,children:(0,t.jsx)("input",{className:(0,s.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})})}])},15971,e=>{"use strict";var t=e.i(91398),s=e.i(69322);e.s(["default",0,({onOkClick:e,onCancelClick:a,okText:r=null,cancelText:l=null,headerText:i=null,message:d=null,icon:o=null,close:n=null})=>{let{formatMessage:u}=(0,s.useIntl)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sm:flex sm:items-start",children:[o||(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900/30 sm:mx-0 sm:h-10 sm:w-10",children:(0,t.jsx)("svg",{className:"h-6 w-6 text-rose-600 dark:text-rose-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,t.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,t.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",id:"modal-title",children:i||u({id:"warning",defaultMessage:"Warning!"})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("p",{className:"text-sm text-slate-500 dark:text-slate-200",children:d||u({id:"are_you_sure",defaultMessage:"Are you sure?"})})})]})]}),(0,t.jsxs)("div",{className:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse",children:[(0,t.jsx)("button",{id:"danger_continue",onClick:e,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-rose-600 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-rose-700 focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",children:r||u({id:"continue",defaultMessage:"Continue"})}),(0,t.jsx)("button",{id:"danger_cancel",onClick:a||n,type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-slate-300 bg-white px-4 py-2 text-base font-medium text-slate-700 shadow-xs hover:bg-slate-50 focus:outline-hidden focus:ring-2 focus:ring-slate-800 focus:ring-offset-2 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",children:l||u({id:"cancel",defaultMessage:"Cancel"})})]})]})}])},6607,e=>{"use strict";var t=e.i(91788),s=e.i(6444);e.s(["default",0,()=>(0,t.useContext)(s.default)])},6444,e=>{"use strict";let t=e.i(91788).default.createContext({setModal:()=>{throw Error("No ModalContext/ModalWrapper ancestor found.")}});e.s(["default",0,t])},94672,e=>{"use strict";var t=e.i(59080);let s=t.gql`
2
- fragment WorkFragment on Work {
3
- _id
4
- type
5
- scheduled
6
- status
7
- started
8
- success
9
- finished
10
- created
11
- deleted
12
- retries
13
- original {
14
- _id
15
- retries
16
- }
17
- input
18
- result
19
- }
20
- `;e.s(["default",0,s])},30086,e=>{"use strict";var t=e.i(59080),s=e.i(76204);let a=t.gql`
21
- mutation AddWork(
22
- $type: WorkType!
23
- $priority: Int! = 0
24
- $input: JSON
25
- $originalWorkId: ID
26
- $scheduled: Timestamp
27
- $retries: Int! = 20
28
- ) {
29
- addWork(
30
- type: $type
31
- priority: $priority
32
- input: $input
33
- originalWorkId: $originalWorkId
34
- scheduled: $scheduled
35
- retries: $retries
36
- ) {
37
- _id
38
- }
39
- }
40
- `;e.s(["default",0,()=>{let[e]=(0,s.useMutation)(a);return{addWork:async({type:t,priority:s,input:a,originalWorkId:r,scheduled:l=null,retries:i})=>e({variables:{type:t,priority:s,input:a,originalWorkId:r,scheduled:l,retries:i},refetchQueries:["WorkQueue"]})}}])},3334,35496,54020,e=>{"use strict";var t=e.i(98170),s=e.i(50216),a=e.i(27861),r=e.i(36980),l=e.i(57322),i=e.i(24323),d=e.i(60836),o=e.i(2848);let n=["years","months","weeks","days","hours","minutes","seconds"];e.s(["default",0,()=>({getScheduledTime:e=>{if(!e)return null;let{scheduled:n,status:u,started:c}=e;if("FAILED"===u||"SUCCESS"===u||"DELETED"===u)return null;let m=new Date(n).getTime();if("ALLOCATED"===u||"NEW"===u&&!c){var x;return x={addSuffix:!0},function(e,t,n){let u,c=(0,a.getDefaultOptions)(),m=n?.locale??c.locale??s.defaultLocale,x=(0,d.compareAsc)(e,t);if(isNaN(x))throw RangeError("Invalid time value");let f=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:x}),[h,g]=(0,i.normalizeDates)(n?.in,...x>0?[t,e]:[e,t]),p=(0,r.getRoundingMethod)(n?.roundingMethod??"round"),k=g.getTime()-h.getTime(),b=k/o.millisecondsInMinute,w=(k-((0,l.getTimezoneOffsetInMilliseconds)(g)-(0,l.getTimezoneOffsetInMilliseconds)(h)))/o.millisecondsInMinute,v=n?.unit;if("second"===(u=v||(b<1?"second":b<60?"minute":b<o.minutesInDay?"hour":w<o.minutesInMonth?"day":w<o.minutesInYear?"month":"year"))){let e=p(k/1e3);return m.formatDistance("xSeconds",e,f)}if("minute"===u){let e=p(b);return m.formatDistance("xMinutes",e,f)}if("hour"===u){let e=p(b/60);return m.formatDistance("xHours",e,f)}if("day"===u){let e=p(w/o.minutesInDay);return m.formatDistance("xDays",e,f)}if("month"===u){let e=p(w/o.minutesInMonth);return 12===e&&"month"!==v?m.formatDistance("xYears",1,f):m.formatDistance("xMonths",e,f)}else{let e=p(w/o.minutesInYear);return m.formatDistance("xYears",e,f)}}(m,(0,t.constructFrom)(m,Date.now()),x)}return null},getDuration:e=>{var t,r;let l,i,d,o,u,c;if(!e)return null;let{started:m,finished:x}=e,f=new Date().getTime();return m?(t={hours:Number(Math.floor((l=x?new Date(x).getTime()-new Date(m).getTime():f-new Date(m).getTime())/1e3/60/60)%24),minutes:Number(Math.floor(l/1e3/60)%60),seconds:Number(Math.ceil(l/1e3)%60)},r={zero:!1},i=(0,a.getDefaultOptions)(),d=r?.locale??i.locale??s.defaultLocale,o=r?.format??n,u=r?.zero??!1,c=r?.delimiter??" ",d.formatDistance?o.reduce((e,s)=>{let a=`x${s.replace(/(^.)/,e=>e.toUpperCase())}`,r=t[s];return void 0!==r&&(u||t[s])?e.concat(d.formatDistance(a,r)):e},[]).join(c):""):null}})],3334);var u=e.i(91398),c=e.i(91788);e.s(["default",0,({text:e,children:t})=>{let[s,a]=(0,c.useState)(!1);return(0,u.jsxs)("div",{className:"relative",children:[(0,u.jsx)("div",{onMouseEnter:()=>{a(!0)},onMouseLeave:()=>{a(!1)},children:t}),s&&(0,u.jsx)("div",{className:"tooltip absolute p-2 bg-slate-700 text-white rounded-lg whitespace-nowrap",children:e})]})}],35496),e.s(["default",0,({work:e,children:t=null})=>e?.original?e?.original?.retries===e?.retries?(0,u.jsxs)("span",{children:[(0,u.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-3 h-3 inline-block text-slate-500 mr-2",children:(0,u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})}),t]}):(0,u.jsx)("span",{children:(0,u.jsxs)("span",{children:[(0,u.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-3 h-3 inline-block text-slate-500 mr-2",children:(0,u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})}),t,(0,u.jsx)("span",{className:"text-rose-400 text-sm ml-2",children:`${e?.retries} / ${e?.original?.retries}`})]})}):t],54020)},63104,e=>{"use strict";var t=e.i(59080),s=e.i(32171),a=e.i(70693),r=e.i(94672);let l=(e="")=>t.gql`
41
- query Work($workId: ID!) {
42
- work(workId: $workId) {
43
- ...WorkFragment
44
- ${e}
45
- error
46
- priority
47
- worker
48
- timeout
49
- }
50
- }
51
- ${r.default}
52
- `;e.s(["GetWorkQuery",0,l,"default",0,({workId:e=null,...t})=>{let{customProperties:r}=(0,a.default)(),{data:i,loading:d,error:o,previousData:n}=(0,s.useQuery)(l(r?.Work),{skip:!e,variables:{workId:e},...t});return{work:i?.work||n?.work,loading:d,error:o}}])},9459,e=>{"use strict";var t=e.i(91398),s=e.i(3828),a=e.i(69322),r=e.i(28401),l=e.i(41158),i=e.i(91788),d=e.i(65153),o=e.i(84818),n=e.i(60193),u=e.i(55215),c=e.i(3334),m=e.i(35496),x=e.i(54020);let f=({work:e})=>{let{formatMessage:s}=(0,a.useIntl)(),{formatDateTime:r}=(0,o.default)(),{getDuration:f,getScheduledTime:h}=(0,c.default)(),[,g]=(0,i.useState)(null);(0,i.useEffect)(()=>{let t=null;return e&&("NEW"===e.status||"ALLOCATED"===e.status)&&(t=setInterval(()=>g(Date.now()),1e3)),()=>{clearInterval(t)}},[e?.status]);let p={timeStyle:"medium",dateStyle:"long"};return(0,t.jsx)("div",{className:`rounded-xl xl:-mx-8 mt-10 p-2 sm:p-6 lg:p-8 ${(0,n.getShadowStyle)(e?.status)}`,children:(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-2 auto-rows-max",children:[(0,t.jsxs)("div",{className:"max-h-fit col-span-2 rounded-lg border border-slate-300 dark:border-slate-800 bg-white dark:bg-slate-900 p-4 shadow-md dark:shadow-none sm:p-6 lg:col-span-1 lg:p-8",children:[(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_type",defaultMessage:"Work type"})}),(0,t.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm",children:e?.type})]}),(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_status",defaultMessage:"Work Status"})}),(0,t.jsx)(d.default,{text:e?.status,color:n.WORK_STATUSES[e?.status]})]}),(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_priority",defaultMessage:"Priority"})}),(0,t.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm ",children:e?.priority})]}),(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_retries",defaultMessage:"Retries"})}),(0,t.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm",children:(0,t.jsx)(x.default,{work:e})})]}),(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-slate-500 dark:text-slate-500 ",children:s({id:"worker",defaultMessage:"Worker"})}),(0,t.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm",children:e?.worker?(0,t.jsx)(d.default,{text:s({id:"worker_dynamic",defaultMessage:"{worker}"},{worker:e?.worker}),color:"purple"}):"n/a"})]}),e?.retries||e?.original?(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_original",defaultMessage:"Original Work"})}),(0,t.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm",children:(0,t.jsx)(l.default,{href:`/works?workerId=${e?.original?._id}`,className:"text-slate-900 dark:text-slate-300",children:e?.original?._id})})]}):""]}),(0,t.jsx)("div",{className:"col-span-2 rounded-lg border border-slate-300 dark:border-slate-800 bg-white dark:bg-slate-900 p-4 shadow-md dark:shadow-none sm:p-6 lg:col-span-1 lg:p-8",children:(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-5",children:[(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_created",defaultMessage:"Created"})}),(0,t.jsx)("div",{className:"flex text-sm",children:r(e?.created,p)})]}),(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_scheduled",defaultMessage:"Scheduled"})}),(0,t.jsx)("div",{className:"flex text-sm w-100",children:(0,t.jsx)(m.default,{text:r(e?.scheduled,p),children:h(e)})})]}),(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_started",defaultMessage:"Started"})}),(0,t.jsx)("div",{className:"flex text-sm",children:r(e?.started,p)})]}),(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_finished",defaultMessage:"Finished"})}),(0,t.jsx)("div",{className:"flex text-sm",children:r(e?.finished,p)})]}),(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-slate-500 dark:text-slate-500 ",children:s({id:"duration",defaultMessage:"Duration"})}),(0,t.jsx)("div",{className:"flex text-sm",children:f(e)})]}),e?.deleted&&(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-slate-500 dark:text-slate-500 ",children:s({id:"deleted",defaultMessage:"Deleted"})}),(0,t.jsx)("div",{className:"flex text-sm",children:r(e?.deleted,p)})]})]})}),e?.error&&(0,t.jsxs)("div",{className:"rounded-lg shadow-md dark:shadow-none border-2 border-rose-300 dark:border-rose-800 col-span-2 lg:col-span-2 order-first overflow-hidden bg-rose-100 dark:bg-rose-800",children:[(0,t.jsx)("div",{className:"px-4 py-5 sm:px-6 border-b border-rose-300 dark:border-rose-800",children:(0,t.jsxs)("h3",{className:"text-lg font-medium leading-6 text-rose-700 dark:text-rose-300 flex items-center gap-2",children:[(0,t.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),s({id:"error",defaultMessage:"Error"})]})}),(0,t.jsx)("div",{className:"bg-rose-50 dark:bg-rose-950",children:(0,t.jsx)(u.default,{value:decodeURI(JSON.stringify(e.error,null,2)),disabled:!0,className:"block border-none w-full max-w-full resize-none sm:text-sm text-rose-900 dark:text-rose-100"})})]}),e?.input&&(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-slate-300 dark:border-slate-800 col-span-2 shadow-md dark:shadow-none bg-white dark:bg-slate-900 lg:col-span-1",children:[(0,t.jsx)("div",{className:"px-4 py-5 sm:px-6",children:(0,t.jsx)("h3",{className:"text-lg font-medium leading-6 text-slate-900 dark:text-slate-500",children:s({id:"input",defaultMessage:"Input"})})}),(0,t.jsx)(u.default,{value:JSON.stringify(e.input,null,2),disabled:!0,className:"block w-full max-w-full resize-none sm:text-sm"})]}),e?.result&&(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg shadow-md dark:shadow-none border border-slate-300 dark:border-slate-800 col-span-2 bg-white dark:bg-slate-900 lg:col-span-1",children:[(0,t.jsxs)("div",{className:"px-4 py-5 sm:px-6 flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"text-lg font-medium leading-6 text-slate-900 dark:text-slate-500",children:s({id:"result",defaultMessage:"Result"})}),e?.type==="BULK_IMPORT"&&e?.result?.created&&(0,t.jsx)("span",{className:"text-sm text-slate-600 dark:text-slate-400",children:s({id:"items_created",defaultMessage:"{count} items created"},{count:e.result.created.length})})]}),(0,t.jsx)(u.default,{value:JSON.stringify(e.result,null,2),disabled:!0,className:`block w-full max-w-full resize-none sm:text-sm ${e?.type==="BULK_IMPORT"&&e?.result?.created?.length>50?"max-h-96 overflow-y-auto":""}`})]})]})})};var h=e.i(63104),g=e.i(59080),p=e.i(76204);let k=g.gql`
53
- mutation RemoveWork($workId: ID!) {
54
- removeWork(workId: $workId) {
55
- _id
56
- }
57
- }
58
- `;var b=e.i(30086),w=e.i(12197),v=e.i(17644),j=e.i(61494),y=e.i(15971),N=e.i(6607),M=e.i(81359),I=e.i(86129),C=e.i(66773),_=e.i(5505),S=e.i(38247),D=e.i(69211),W=e.i(7105),T=e.i(99160),O=e.i(45229),E=e.i(98949);let L=({work:e,onSubmit:r})=>{let{formatMessage:l,locale:i}=(0,a.useIntl)(),d=(0,s.useRouter)(),o=l({id:"work_added_success",defaultMessage:"Work added successfully!"}),n=(0,E.default)({submit:r,successMessage:o,onSubmitSuccess:(e,{_id:t})=>(d.replace(`/works?workerId=${t}`),!0),enableReinitialize:!0,initialValues:{...e,input:JSON.stringify(e?.input||{},null,2)}});return(0,t.jsx)(_.default,{children:(0,t.jsx)(D.default,{form:n,children:(0,t.jsxs)("div",{className:"space-y-6 rounded-md bg-white dark:bg-slate-900 shadow-md ",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold text-slate-900 dark:text-slate-200 ",children:l({id:"retry_work",defaultMessage:"Retry Work"})}),(0,t.jsx)("div",{className:"flex flex-col sm:flex-row sm:justify-between sm:items-center dark:border-slate-700 pb-4 mb-4",children:(0,t.jsx)("div",{className:"text-sm text-slate-500 dark:text-slate-400 mt-2 sm:mt-0 flex flex-col sm:flex-row sm:gap-4",children:(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:l({id:"type",defaultMessage:"Type"})})," ",e.type]})})}),(0,t.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,t.jsx)(O.default,{name:"priority",id:"priority",label:l({id:"priority",defaultMessage:"Priority"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",type:"number",className:"w-full py-2 text-sm text-slate-900 dark:text-slate-200 dark:bg-slate-800 rounded-md"}),(0,t.jsx)(O.default,{name:"retries",id:"retries",label:l({id:"retries",defaultMessage:"Retries"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",type:"number",className:"w-full py-2 text-sm text-slate-900 dark:text-slate-200 dark:bg-slate-800 rounded-md"})]}),(0,t.jsx)(S.default,{name:"scheduled",label:l({id:"scheduled",defaultMessage:"Scheduled"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",className:"w-full py-2 text-sm text-slate-900 dark:text-slate-200 dark:bg-slate-800 rounded-md",containerClassName:"w-full",locale:i,showTimeInput:!0,timeFormat:"p",timeIntervals:15}),(0,t.jsx)("div",{children:(0,t.jsx)(W.default,{name:"input",label:l({id:"input",defaultMessage:"Input"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",className:"w-full h-48 text-sm text-slate-900 dark:text-slate-200 dark:bg-slate-800 rounded-md"})}),(0,t.jsx)("div",{className:"border-t-slate-100 border-t dark:border-t-slate-700 space-y-6 bg-slate-50 dark:bg-slate-900 p-5 text-right",children:(0,t.jsx)(T.default,{label:l({id:"retry_submit",defaultMessage:"Retry"})})})]})})})};e.s(["default",0,({workerId:e})=>{let l,{formatMessage:d}=(0,a.useIntl)(),{push:o}=(0,s.useRouter)(),{work:n}=(0,h.default)({workId:e,pollInterval:2e3}),{setModal:u}=(0,N.default)(),{removeWork:c}=(()=>{let[e]=(0,p.useMutation)(k);return{removeWork:async({workId:t})=>e({variables:{workId:t},refetchQueries:["WorkQueue"]})}})(),{addWork:m}=(0,b.default)(),x=(0,i.useCallback)(async()=>{u((0,t.jsx)(L,{work:n,onSubmit:async e=>{try{let{data:t}=await m({type:n?.type,priority:e.priority||n?.priority,retries:e.retries,scheduled:e.scheduled,input:JSON.parse(e.input||"{}"),originalWorkId:n?._id});return o(`/works?workerId=${t.addWork._id}`),u(null),{success:!0}}catch(e){return{success:!1,error:e}}}}),{closeOnOutsideClick:!0})},[n]),g=async()=>{await u((0,t.jsx)(y.default,{onCancelClick:()=>u(""),message:d({id:"delete_work_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this work? "}),onOkClick:async()=>{u(""),await c({workId:e}),r.toast.success(d({id:"work_deleted",defaultMessage:"Work deleted successfully"}))},okText:d({id:"delete_work",defaultMessage:"Delete work"})}))};return(0,t.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,t.jsx)(j.default,{}),(0,t.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,t.jsx)(v.default,{headerText:d({id:"work_detail",defaultMessage:"Work Detail"}),title:d({id:"work_detail_title",defaultMessage:"Work {id}"},{id:n?._id})}),n&&(n?.status===C.IWorkStatus.Failed||n?.status===C.IWorkStatus.Success)?(0,t.jsxs)("button",{type:"button","aria-describedby":"header-delete-button",className:"my-auto flex items-center justify-center rounded-sm border-1 border-emerald-600 px-3 py-2 text-sm font-semibold text-emerald-600 shadow-xs hover:border-emerald-800 hover:bg-emerald-700 hover:text-white focus:outline-hidden focus:ring-2 focus:ring-emerald-700 focus:ring-offset-2",onClick:x,children:[(0,t.jsx)("span",{className:"pr-1",children:(0,t.jsx)(I.ArrowPathIcon,{className:"h-5 w-5"})}),d({id:"retry-work",defaultMessage:"Retry"})]}):null,n&&((l=n?.status)===C.IWorkStatus.New||l===C.IWorkStatus.Allocated)?(0,t.jsx)(M.default,{onClick:g}):null]}),n?(0,t.jsx)(f,{work:n}):(0,t.jsx)(w.default,{})]})}],9459)},72200,e=>{"use strict";var t=e.i(91398),s=e.i(69322),a=e.i(66773),r=e.i(3828),l=e.i(61494),i=e.i(17644),d=e.i(58971),o=e.i(9459),n=e.i(6506);e.s(["default",0,()=>{let{query:e}=(0,r.useRouter)(),{hasRole:u}=(0,d.default)(),{formatMessage:c}=(0,s.useIntl)(),{workerId:m}=e;return m?(0,t.jsx)(o.default,{workerId:m}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.default,{depth:3,currentPageTitle:c({id:"work_queue_header",defaultMessage:"Work queue"})}),(0,t.jsx)(i.default,{title:c({id:"work_queue_header",defaultMessage:"Work queue"}),addPath:u(a.IRoleAction.ManageWorker)&&"/works/management",addButtonText:c({id:"manage",defaultMessage:"Manage"})}),(0,t.jsx)(n.default,{})]})}])},29543,(e,t,s)=>{let a="/works";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(72200)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([a])})},86129,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:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))});e.s(["ArrowPathIcon",0,s],86129)},38187,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:"m19.5 8.25-7.5 7.5-7.5-7.5"}))});e.s(["ChevronDownIcon",0,s],38187)},24608,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 18 18 6M6 6l12 12"}))});e.s(["XMarkIcon",0,s],24608)},36980,e=>{"use strict";e.s(["getRoundingMethod",0,function(e){return t=>{let s=(e?Math[e]:Math.trunc)(t);return 0===s?0:s}}])},60836,e=>{"use strict";var t=e.i(35113);e.s(["compareAsc",0,function(e,s){let a=(0,t.toDate)(e)-(0,t.toDate)(s);return a<0?-1:a>0?1:a}])},28805,e=>{e.v(t=>Promise.all(["static/chunks/0h0r_q6xa9qr_.js"].map(t=>e.l(t))).then(()=>t(79466)))},48761,e=>{e.v(t=>Promise.all(["static/chunks/1ae-9ft5cgojf.js"].map(t=>e.l(t))).then(()=>t(93594)))},13521,(e,t,s)=>{"use strict";e.i(50461),Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"ImageConfigContext",{enumerable:!0,get:function(){return l}});let a=e.r(41705)._(e.r(91788)),r=e.r(15125),l=a.default.createContext(r.imageConfigDefault)},15125,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a={VALID_LOADERS:function(){return l},imageConfigDefault:function(){return i}};for(var r in a)Object.defineProperty(s,r,{enumerable:!0,get:a[r]});let l=["default","imgix","cloudinary","akamai","custom"],i={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}}]);
@@ -1,13 +0,0 @@
1
- __turbopack_load_page_chunks__("/reset-password", [
2
- "static/chunks/0n0uzfbkfb7e5.js",
3
- "static/chunks/38pz7fmyf6ay0.js",
4
- "static/chunks/3sktz8258so64.js",
5
- "static/chunks/3a7wm2331v13r.js",
6
- "static/chunks/1ikm9qcx--k3u.js",
7
- "static/chunks/06tejx8u1_0kg.js",
8
- "static/chunks/252jebodi67kg.js",
9
- "static/chunks/1vx8_u7-f7q8u.js",
10
- "static/chunks/2hm0mbq0vtqmw.js",
11
- "static/chunks/2-4ng9fxftmld.js",
12
- "static/chunks/turbopack-3uj40sz7i7jg0.js"
13
- ])
@@ -1,20 +0,0 @@
1
- __turbopack_load_page_chunks__("/users/UserDetailPage", [
2
- "static/chunks/0-uh133eqcz6n.js",
3
- "static/chunks/36yth4lm03_j8.js",
4
- "static/chunks/38pz7fmyf6ay0.js",
5
- "static/chunks/2kbieaechn8m8.js",
6
- "static/chunks/3sktz8258so64.js",
7
- "static/chunks/0d6_opzy2p6ik.js",
8
- "static/chunks/1n7i2rp59o9o8.js",
9
- "static/chunks/2i5uj5i4z-xu8.js",
10
- "static/chunks/2-4ng9fxftmld.js",
11
- "static/chunks/06tejx8u1_0kg.js",
12
- "static/chunks/0kkky_8vhaeaz.js",
13
- "static/chunks/2hm0mbq0vtqmw.js",
14
- "static/chunks/252jebodi67kg.js",
15
- "static/chunks/0r5wwinf72z4g.js",
16
- "static/chunks/2w5y5xf0nriwx.js",
17
- "static/chunks/2jtk4-i4e9lug.js",
18
- "static/chunks/1vx8_u7-f7q8u.js",
19
- "static/chunks/turbopack-2qbfd_-7v5dbo.js"
20
- ])
@@ -1,12 +0,0 @@
1
- __turbopack_load_page_chunks__("/styleguide", [
2
- "static/chunks/44nj9c766dqvc.js",
3
- "static/chunks/2kbieaechn8m8.js",
4
- "static/chunks/1vx8_u7-f7q8u.js",
5
- "static/chunks/252jebodi67kg.js",
6
- "static/chunks/2-4ng9fxftmld.js",
7
- "static/chunks/06tejx8u1_0kg.js",
8
- "static/chunks/2jtk4-i4e9lug.js",
9
- "static/chunks/2hm0mbq0vtqmw.js",
10
- "static/chunks/3w_wwl_hd91od.js",
11
- "static/chunks/turbopack-3_o3qz69ih0uu.js"
12
- ])
@@ -1,23 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,74954,e=>{"use strict";var t=e.i(91398),a=e.i(91788);e.s(["default",0,({value:e,duration:r=300})=>{let[s,l]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let t,a;if(0===e)return void l(0);let s=i=>{t||(t=i);let n=Math.min((i-t)/r,1);l(Math.round((1-Math.pow(1-n,3))*e)),n<1&&(a=requestAnimationFrame(s))};return a=requestAnimationFrame(s),()=>{a&&cancelAnimationFrame(a)}},[e,r]),(0,t.jsx)("span",{children:s})}])},78704,e=>{"use strict";var t=e.i(91398),a=e.i(91788),r=e.i(12197);e.s(["default",0,({loading:e,hasMore:s,onLoadMore:l,children:i,threshold:n=200})=>{let c=(0,a.useRef)(null),d=(0,a.useCallback)(t=>{let[a]=t;a.isIntersecting&&s&&!e&&l()},[s,e,l]);return(0,a.useEffect)(()=>{let e=c.current;if(!e)return;let t=new IntersectionObserver(d,{rootMargin:`${n}px`});return t.observe(e),()=>{t.disconnect()}},[d,n]),(0,t.jsxs)(t.Fragment,{children:[i,(0,t.jsx)("div",{ref:c,className:"h-4"}),e&&(0,t.jsx)("div",{className:"flex justify-center py-4",children:(0,t.jsx)(r.default,{})})]})}])},94724,e=>{"use strict";var t=e.i(91398),a=e.i(69322);e.s(["default",0,({children:e=null,totalRecords:r=null})=>{let{formatMessage:s}=(0,a.useIntl)();return(0,t.jsxs)("div",{className:"mt-5",children:[null!==r?(0,t.jsx)("div",{className:"text-md text-slate-950 dark:text-slate-100 mb-3",children:s({id:"total_records",defaultMessage:"{total} records found"},{total:r??0})}):null,e&&(0,t.jsx)("div",{className:"flex items-center mt-10",children:(0,t.jsx)("h3",{className:"text-xs leading-6 text-slate-500 dark:text-slate-200",children:e})})]})}])},20495,e=>{"use strict";var t=e.i(91398),a=e.i(69322),r=e.i(2765);e.s(["default",0,({inputText:e=null,onInputChange:s,defaultValue:l})=>{let{formatMessage:i}=(0,a.useIntl)(),n=(0,r.default)(200)(s);return(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("label",{htmlFor:"search",className:"sr-only",children:e||i({id:"search",defaultMessage:"Search"})}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-slate-400 dark:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"})})}),(0,t.jsx)("input",{onChange:e=>n(e.target.value),id:"search",defaultValue:l,name:"search",className:"block w-full rounded-md border-1 border-slate-300 dark:border-slate-700 text-slate-900 dark:bg-slate-900 dark:text-slate-200 py-3 pl-10 px-4 shadow-xs placeholder:text-slate-400 dark:placeholder:text-slate-400 focus:ring-2 focus:ring-slate-800 focus:outline-hidden sm:text-sm",placeholder:i({id:"search",defaultMessage:"Search"}),type:"search"})]})]})}])},51128,e=>{"use strict";var t=e.i(91398),a=e.i(69322),r=e.i(3828),s=e.i(20495),l=e.i(68835),i=e.i(65153),n=e.i(83147),c=e.i(73319);e.s(["default",0,({children:e,onSearchChange:d,defaultSearchValue:u,showTagFilter:o=!1,availableTagOptions:f=[]})=>{let{formatMessage:m}=(0,a.useIntl)(),{query:h,push:y}=(0,r.useRouter)(),x=e=>{if((0,c.isTruthy)(e))y({query:(0,n.normalizeQuery)(h,e?.join(","),"tags")});else{let{tags:e,...t}=h;y({query:(0,n.normalizeQuery)(t)})}};return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"my-3 flex flex-col gap-3",children:(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start gap-3",children:[(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(s.default,{onInputChange:d,defaultValue:u})}),o&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 flex-1 sm:border-l sm:border-slate-300 sm:dark:border-slate-700 sm:pl-3",children:[(0,t.jsx)("div",{className:"max-w-xs",children:(0,t.jsx)(l.default,{buttonText:m({id:"apply",defaultMessage:"Apply"}),placeholder:m({id:"enter_tag",defaultMessage:"Enter tag..."}),tagList:h?.tags?.split(","),onChange:x,selectOptions:f,showTagsInline:!1})}),h?.tags?.split(",").filter(Boolean).length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:h?.tags?.split(",").filter(Boolean).map(e=>(0,t.jsx)(i.default,{text:e,color:"slate",onClick:()=>{let t=h?.tags?.split(",").filter(t=>t!==e);x(t.length>0?t:null)}},e))})]})]})}),e]})}])},79684,e=>{"use strict";var t=e.i(91788);e.s(["default",0,(e,a)=>{let[r,s]=(0,t.useState)(()=>{try{if(window.localStorage){let t=window.localStorage.getItem(e);return t?JSON.parse(t):a}return a}catch(e){return a}});return[r,t=>{try{if(window.localStorage){let a=t instanceof Function?t(r):t;s(a),window.localStorage.setItem(e,JSON.stringify(a))}else console.error("localStorage is not available")}catch(e){console.error(e)}}]}])},83283,78001,e=>{"use strict";var t=e.i(91788),a=e.i(91398),r=e.i(79684);let s=(0,t.createContext)(void 0);e.s(["ThemeContext",0,s,"default",0,({children:e})=>{let[l,i]=(0,r.default)("theme","light");(0,t.useEffect)(()=>{"dark"!==localStorage.theme&&("theme"in localStorage||!window.matchMedia("(prefers-color-scheme: dark)").matches)?document.getElementsByTagName("html")[0].classList.remove("dark"):document.getElementsByTagName("html")[0].classList.add("dark")},[]),(0,t.useEffect)(()=>{"dark"===l?(document.getElementsByTagName("html")[0].classList.add("dark"),localStorage.theme="dark"):(document.getElementsByTagName("html")[0].classList.remove("dark"),localStorage.theme="light")},[l]);let n=(0,t.useMemo)(()=>[l,i],[l]);return(0,a.jsx)(s.Provider,{value:n,children:e})}],78001),e.s(["default",0,()=>{let e=(0,t.useContext)(s);if(void 0===e)throw Error("Theme Context was used outside of its Provider");let[a,r]=e;return{theme:a,setTheme:r}}],83283)},2765,e=>{"use strict";e.s(["default",0,(e=500)=>t=>{let a;return(...r)=>{let s;clearTimeout(a),a=setTimeout(()=>t.apply(s,r),e)}}])},40191,e=>{"use strict";var t=e.i(91398),a=e.i(69322),r=e.i(66773),s=e.i(58971),l=e.i(64591),i=e.i(69211),n=e.i(99160),c=e.i(45229),d=e.i(73419),u=e.i(98949),o=e.i(82226);e.s(["default",0,({onSubmit:e,onSubmitSuccess:f=null,defaultValue:m={},isEdit:h=!1})=>{let{formatMessage:y}=(0,a.useIntl)(),{hasRole:x}=(0,s.default)(),g=y({id:"currency_added",defaultMessage:"Currency added successfully!"}),v=y({id:"currency_updated",defaultMessage:"Currency updated successfully!"}),C=(0,u.default)({submit:e,onSubmitSuccess:f,successMessage:h?v:g,getSubmitErrorMessage:e=>{if(e?.message?.includes("duplicate key"))return C.formik.setFieldError("isoCode",y({id:"currency_exists",defaultMessage:"Currency with the same ISO code already exists"})),null},initialValues:{isoCode:"",contractAddress:"",isActive:!1,decimals:2,...m}});return(0,t.jsxs)(i.default,{form:C,children:[(0,t.jsxs)("div",{className:"p-5 pb-7",children:[(0,t.jsx)(c.default,{name:"isoCode",disabled:!x(r.IRoleAction.ManageCurrencies),id:"isoCode",label:y({id:"iso_code",defaultMessage:"ISO code"}),autoComplete:"on",required:!0}),(0,t.jsx)(c.default,{name:"contractAddress",disabled:!x(r.IRoleAction.ManageCurrencies),id:"contractAddress",validators:[(0,o.isContractAddress)()],label:y({id:"contract_address",defaultMessage:"Contract Address"}),autoComplete:"on",className:"mt-4"}),(0,t.jsx)(d.default,{className:"mt-4",label:y({id:"decimals",defaultMessage:"Decimals"}),required:!0,name:"decimals",disabled:!x(r.IRoleAction.ManageCurrencies),options:Object.fromEntries(Array(32).fill(null).map((e,t)=>[t,`${t}`]))}),h&&(0,t.jsx)("div",{className:"mt-5 flex items-center",children:(0,t.jsx)(l.default,{toggleText:y({id:"active",defaultMessage:"Active"}),disabled:!x(r.IRoleAction.ManageCurrencies),active:C.formik.values.isActive,onToggle:()=>C.formik.setFieldValue("isActive",!C.formik.values.isActive)})})]}),x(r.IRoleAction.ManageCurrencies)&&(0,t.jsx)("div",{className:"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,t.jsx)(n.default,{label:h?y({id:"update_currency",defaultMessage:"Update Currency"}):y({id:"add_currency",defaultMessage:"Add Currency"})})})]})}])},22787,e=>{"use strict";var t=e.i(59080),a=e.i(32171),r=e.i(70693),s=e.i(68191);e.s(["default",0,({currencyId:e})=>{let{customProperties:l}=(0,r.default)(),{data:i,loading:n,error:c}=(0,a.useQuery)(((e="")=>t.gql`
2
- query Currency($currencyId: ID!) {
3
- currency(currencyId: $currencyId) {
4
- ...CurrencyFragment
5
- ${e}
6
- }
7
- }
8
- ${s.default}
9
- `)(l?.Currency),{skip:!e,variables:{currencyId:e}});return{currency:i?.currency,loading:n,error:c}}])},45401,e=>{"use strict";var t=e.i(59080),a=e.i(76204),r=e.i(68191);let s=t.gql`
10
- mutation RemoveCurrency($currencyId: ID!) {
11
- removeCurrency(currencyId: $currencyId) {
12
- ...CurrencyFragment
13
- }
14
- }
15
- ${r.default}
16
- `;e.s(["default",0,()=>{let[e]=(0,a.useMutation)(s);return{removeCurrency:async({currencyId:t})=>e({variables:{currencyId:t},refetchQueries:["Currencies","ShopStatus","ShopInfo"]})}}])},73664,e=>{"use strict";var t=e.i(91398),a=e.i(3828),r=e.i(66773),s=e.i(69322),l=e.i(28401),i=e.i(5505),n=e.i(40191),c=e.i(22787),d=e.i(45401),u=e.i(59080),o=e.i(76204),f=e.i(68191);let m=u.gql`
17
- mutation UpdateCurrency($currency: UpdateCurrencyInput!, $currencyId: ID!) {
18
- updateCurrency(currency: $currency, currencyId: $currencyId) {
19
- ...CurrencyFragment
20
- }
21
- }
22
- ${f.default}
23
- `;var h=e.i(61494),y=e.i(17644),x=e.i(6607),g=e.i(15971),v=e.i(81359),C=e.i(12197),p=e.i(83147),j=e.i(58971);e.s(["default",0,({currencyId:e})=>{let{push:u}=(0,a.useRouter)(),{formatMessage:f,locale:b}=(0,s.useIntl)(),{hasRole:w}=(0,j.default)(),{setModal:I}=(0,x.default)(),{currency:M,loading:_}=(0,c.default)({currencyId:e}),{updateCurrency:k}=(()=>{let[e]=(0,o.useMutation)(m);return{updateCurrency:async({currency:{isoCode:t,isActive:a,decimals:r,contractAddress:s},currencyId:l})=>e({variables:{currency:{isoCode:t,isActive:a,contractAddress:s,decimals:parseInt(r||"2",10)},currencyId:l},refetchQueries:["Currencies","ShopStatus","ShopInfo"]})}})(),{removeCurrency:N}=(0,d.default)(),S=async({isActive:t,isoCode:a,contractAddress:r,decimals:s})=>(await k({currencyId:e,currency:{isActive:t,isoCode:a,contractAddress:r,decimals:s}}),!0),A=async()=>{await I((0,t.jsx)(g.default,{onCancelClick:async()=>I(""),message:f({id:"delete_currency_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this currency? "}),onOkClick:async()=>{I(""),await N({currencyId:e}),l.toast.success(f({id:"currency_deleted",defaultMessage:"Currency deleted successfully"})),u("/currency")},okText:f({id:"delete_currency",defaultMessage:"Delete currency"})}))};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.default,{currentPageTitle:(0,p.normalizeCurrencyISOCode)(b,M?.isoCode)}),(0,t.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,t.jsx)(y.default,{headerText:(0,p.normalizeCurrencyISOCode)(b,M?.isoCode)}),w(r.IRoleAction.ManageCurrencies)&&(0,t.jsx)(v.default,{onClick:A})]}),_?(0,t.jsx)(C.default,{}):(0,t.jsx)("div",{className:"mx-auto mt-6 sm:max-w-xl",children:(0,t.jsx)(i.default,{children:(0,t.jsx)(n.default,{onSubmit:S,defaultValue:M,isEdit:!0})})})]})}],73664)},29378,e=>{"use strict";var t=e.i(91398),a=e.i(69322),r=e.i(66773),s=e.i(28401),l=e.i(3828),i=e.i(60193),n=e.i(58971),c=e.i(8918),d=e.i(65153),u=e.i(3095),o=e.i(83147);let f=({currency:e,onRemove:r,enableEdit:s,enableDelete:i})=>{let{locale:n,formatMessage:f}=(0,a.useIntl)(),m=(0,l.useRouter)(),h={true:f({id:"active",defaultMessage:"Active"}),false:f({id:"in_active",defaultMessage:"In-Active"})};return(0,t.jsxs)(c.default.Row,{className:"text-sm",children:[(0,t.jsx)(c.default.Cell,{children:e.isoCode}),(0,t.jsx)(c.default.Cell,{children:(0,o.normalizeCurrencyISOCode)(n,e?.isoCode,!1)}),(0,t.jsx)(c.default.Cell,{children:(0,t.jsx)(d.default,{text:h[e.isActive],color:e.isActive?"emerald":"amber",square:!0})}),(s||i)&&(0,t.jsx)(c.default.Cell,{children:(0,t.jsx)(u.default,{onEdit:s?()=>{m.push(`/currency?currencyId=${e?._id}`)}:void 0,onDelete:i?()=>{r(e?._id)}:void 0,showEdit:s,showDelete:i})})]})},m=({currencies:e,onRemoveCurrency:s,sortable:l})=>{let{formatMessage:i}=(0,a.useIntl)(),{hasRole:d}=(0,n.default)();return(0,t.jsxs)(c.default,{className:"min-w-full ",children:[e?.map(e=>(0,t.jsxs)(c.default.Row,{header:!0,enablesort:l,children:[(0,t.jsx)(c.default.Cell,{sortKey:"isoCode",children:i({id:"iso_code",defaultMessage:"ISO code"})}),(0,t.jsx)(c.default.Cell,{children:i({id:"name",defaultMessage:"Name"})}),(0,t.jsx)(c.default.Cell,{sortKey:"isActive",children:i({id:"status",defaultMessage:"Status"})}),(0,t.jsx)(c.default.Cell,{children:" "})]},e._id)),e?.map(e=>(0,t.jsx)(f,{currency:e,onRemove:s,enableDelete:d(r.IRoleAction.ManageCurrencies),enableEdit:d(r.IRoleAction.ViewCurrency)},`${e?._id}-body`))]})};var h=e.i(79093),y=e.i(45401),x=e.i(61494),g=e.i(17644),v=e.i(94724),C=e.i(64591),p=e.i(78704),j=e.i(15971),b=e.i(6607),w=e.i(12197),I=e.i(51128),M=e.i(73664),_=e.i(74954),k=e.i(2875);e.s(["default",0,()=>{let{formatMessage:e}=(0,a.useIntl)(),{query:c,push:d}=(0,l.useRouter)(),{hasRole:u}=(0,n.default)(),f=parseInt(c?.limit,10)||i.DefaultLimit,N=parseInt(c?.skip,10)||0,S=c?.includeInactive==="true"||!c?.includeInactive,A=c?.sort||"",{queryString:T,currencyId:R,...E}=c,O=(0,o.convertSortFieldsToQueryFormat)(A),{currencies:P,currenciesCount:q,loading:D,loadMore:F,hasMore:$}=(0,h.default)({queryString:T,limit:f,offset:N,includeInactive:S,sort:O}),{setModal:z}=(0,b.default)(),{removeCurrency:B}=(0,y.default)(),L=async a=>{await z((0,t.jsx)(j.default,{onCancelClick:async()=>z(""),message:e({id:"delete_currency_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this currency? "}),onOkClick:async()=>{z(""),await B({currencyId:a}),s.toast.success(e({id:"currency_deleted",defaultMessage:"Currency deleted successfully"}))},okText:e({id:"delete_currency",defaultMessage:"Delete currency"})}))};if(R)return(0,t.jsx)(M.default,{currencyId:R});let U=1===q?e({id:"currency_header",defaultMessage:"1 Currency"}):e({id:"currency_count_header",defaultMessage:"{count} Currencies"},{count:(0,t.jsx)(_.default,{value:q})});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.default,{}),(0,t.jsx)(k.default,{title:e({id:"default_currency_info_title",defaultMessage:"About base currency"}),description:e({id:"default_currency_info_description",defaultMessage:"Please set the base currency by adjusting the environment variable UNCHAINED_CURRENCY, for ex. UNCHAINED_CURRENCY=CHF. That way, Unchained knows what currency to use as a fallback if it is unable to determine it from context"})}),(0,t.jsx)(g.default,{title:e({id:"currencies_page_title",defaultMessage:"{count, plural, one {# Currency} other {# Currencies}}"},{count:q}),headerText:U,addPath:u(r.IRoleAction.ManageCurrencies)&&"/currency/new",addButtonText:e({id:"add_currency",defaultMessage:"Add Currency"})}),(0,t.jsxs)("div",{className:"min-w-full overflow-x-auto px-1",children:[(0,t.jsx)(v.default,{children:(0,t.jsx)(C.default,{toggleText:e({id:"show_inactive",defaultMessage:"Show Inactive"}),toggleKey:"includeInactive",active:S})}),(0,t.jsx)(I.default,{onSearchChange:e=>{let{skip:t,...a}=E;e?d({query:(0,o.normalizeQuery)(a,e,"queryString")}):d({query:(0,o.normalizeQuery)(E)})},defaultSearchValue:T,children:(0,t.jsx)(p.default,{loading:D,hasMore:$,onLoadMore:F,children:D&&P?.length===0?(0,t.jsx)(w.default,{}):(0,t.jsx)(m,{currencies:P,onRemoveCurrency:L,sortable:!0})})})]})]})}],29378)},58895,(e,t,a)=>{let r="/currency";(window.__NEXT_P=window.__NEXT_P||[]).push([r,()=>e.r(29378)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([r])})},28805,e=>{e.v(t=>Promise.all(["static/chunks/0h0r_q6xa9qr_.js"].map(t=>e.l(t))).then(()=>t(79466)))},48761,e=>{e.v(t=>Promise.all(["static/chunks/1ae-9ft5cgojf.js"].map(t=>e.l(t))).then(()=>t(93594)))},13521,(e,t,a)=>{"use strict";e.i(50461),Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"ImageConfigContext",{enumerable:!0,get:function(){return l}});let r=e.r(41705)._(e.r(91788)),s=e.r(15125),l=r.default.createContext(s.imageConfigDefault)},15125,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r={VALID_LOADERS:function(){return l},imageConfigDefault:function(){return i}};for(var s in r)Object.defineProperty(a,s,{enumerable:!0,get:r[s]});let l=["default","imgix","cloudinary","akamai","custom"],i={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}}]);
@@ -1,119 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,83350,(e,t,l)=>{let i="/filters/FilterDetailPage";(window.__NEXT_P=window.__NEXT_P||[]).push([i,()=>e.r(89142)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([i])})},19759,78495,e=>{"use strict";var t=e.i(91398),l=e.i(69322),i=e.i(25705),a=e.i(27572),s=e.i(76929),d=e.i(28401),r=e.i(92276),n=e.i(41523),u=e.i(91788),o=e.i(66773),c=e.i(69211),f=e.i(99160),x=e.i(45229),m=e.i(98949),p=e.i(59080),g=e.i(76204);let h=p.gql`
2
- fragment FilterTextsFragment on FilterTexts {
3
- _id
4
- locale
5
- title
6
- subtitle
7
- }
8
- `,v=p.gql`
9
- mutation UpdateFilterTexts(
10
- $filterId: ID!
11
- $filterOptionValue: String
12
- $texts: [FilterTextInput!]!
13
- ) {
14
- updateFilterTexts(
15
- filterId: $filterId
16
- filterOptionValue: $filterOptionValue
17
- texts: $texts
18
- ) {
19
- ...FilterTextsFragment
20
- }
21
- }
22
- ${h}
23
- `,b=()=>{let[e]=(0,g.useMutation)(v);return{updateFilterTexts:async({filterId:t,filterOptionValue:l,texts:i})=>e({variables:{filterOptionValue:l,filterId:t,texts:i},refetchQueries:["TranslatedFilterTexts","FilterOptions"]})}};var j=e.i(32171);let F=p.gql`
24
- query TranslatedFilterTexts($filterId: ID!, $filterOptionValue: String) {
25
- translatedFilterTexts(
26
- filterId: $filterId
27
- filterOptionValue: $filterOptionValue
28
- ) {
29
- ...FilterTextsFragment
30
- }
31
- }
32
- ${h}
33
- `;var I=e.i(60195),y=e.i(58971),_=e.i(5505),w=e.i(57561);let M=({filterId:e})=>{let{formatMessage:i}=(0,l.useIntl)(),{selectedLocale:a}=(0,w.default)(),{translatedFilterTexts:s,loading:d}=(({filterId:e=null,filterOptionValue:t=null})=>{let{data:l,loading:i,error:a}=(0,j.useQuery)(F,{variables:{filterId:e,filterOptionValue:t}});return{translatedFilterTexts:l?.translatedFilterTexts||[],loading:i,error:a}})({filterId:e}),{hasRole:r}=(0,y.default)(),n=i({id:"saved",defaultMessage:"Saved"}),{updateFilterTexts:p}=b(),g=async({title:t,subtitle:l})=>(await p({filterId:e,texts:[{locale:a,title:t,subtitle:l}]}),{success:!0}),h=(0,m.default)({submit:g,successMessage:n,initialValues:{title:"",subtitle:"",...!d&&s?.find(e=>e.locale===a)||{}}});return(0,u.useEffect)(()=>{let e=s?.find(e=>e.locale===a);h.formik.setValues({title:"",subtitle:"",...e||{}})},[s,a]),(0,t.jsx)(I.default,{documentationLabel:i({id:"text",defaultMessage:"Text"}),documentation:(0,t.jsx)(l.FormattedMessage,{id:"filter_text_form_description",defaultMessage:"<ul> <li>You can change the language of filter using the dropdown found at top left corner</li>\n </ul>",values:{ul:e=>(0,t.jsxs)("ul",{className:"space-y-1",children:[e," "]}),li:e=>(0,t.jsxs)("li",{children:[e," "]})}}),children:(0,t.jsx)(_.default,{children:(0,t.jsxs)(c.default,{form:h,className:"border-slate-300 dark:border-slate-800 pt-2 lg:shadow-sm",children:[(0,t.jsx)("div",{children:(0,t.jsx)(x.default,{name:"title",id:"title",label:i({id:"title",defaultMessage:"Title"}),autoComplete:"on",className:"mt-2 px-4 text-sm"})}),(0,t.jsx)("div",{children:(0,t.jsx)(x.default,{name:"subtitle",id:"subtitle",label:i({id:"subtitle",defaultMessage:"Subtitle"}),autoComplete:"on",className:"mt-5 px-4 text-sm"})}),r(o.IRoleAction.ManageFilters)&&(0,t.jsx)("div",{className:"flex bg-slate-100 dark:bg-slate-900 mt-5",children:(0,t.jsx)(f.default,{label:i({id:"update_filter",defaultMessage:"Update filter"}),className:"my-4 ml-auto mr-4"})})]})})})};var k=e.i(6607);let N=p.gql`
34
- mutation CreateFilterOption(
35
- $filterId: ID!
36
- $option: String!
37
- $texts: [FilterTextInput!]
38
- ) {
39
- createFilterOption(filterId: $filterId, option: $option, texts: $texts) {
40
- _id
41
- }
42
- }
43
- `,T=p.gql`
44
- fragment FilterOptionFragment on FilterOption {
45
- _id
46
- texts(forceLocale: $forceLocale) {
47
- _id
48
- title
49
- subtitle
50
- locale
51
- }
52
- value
53
- }
54
- `,$=p.gql`
55
- query FilterOptions($filterId: ID, $forceLocale: Locale) {
56
- filter(filterId: $filterId) {
57
- _id
58
- options {
59
- ...FilterOptionFragment
60
- }
61
- }
62
- }
63
- ${T}
64
- `,O=({onCancel:e,onSubmit:i})=>{let{formatMessage:a}=(0,l.useIntl)(),{hasRole:s}=(0,y.default)(),d=a({id:"filter_option_added_success",defaultMessage:"Filter option added successfully"}),r=(0,m.default)({submit:i,successMessage:d,initialValues:{title:"",value:""}});return(0,t.jsxs)(c.default,{form:r,children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(x.default,{name:"value",label:a({id:"filter_option_value",defaultMessage:"Value"}),required:!0}),(0,t.jsx)(x.default,{name:"title",label:a({id:"filter_option_title",defaultMessage:"Title"}),required:!0})]}),(0,t.jsxs)("div",{className:"mt-5 flex justify-end",children:[(0,t.jsx)("button",{onClick:e,type:"button",className:"mr-2 rounded-md border border-slate-100 dark:border-slate-700 bg-white dark:bg-slate-800 px-3 py-1 text-sm font-medium leading-5 text-slate-700 dark:text-slate-500 shadow-xs",children:a({id:"cancel",defaultMessage:"Cancel"})}),(0,t.jsx)("span",{className:"flex items-center",children:(0,t.jsx)(f.default,{className:"m-auto w-full",label:a({id:"add_filter_option",defaultMessage:"Add option"})})})]})]})},C=p.gql`
65
- mutation RemoveFilterOption($filterId: ID!, $filterOptionValue: String!) {
66
- removeFilterOption(
67
- filterId: $filterId
68
- filterOptionValue: $filterOptionValue
69
- ) {
70
- _id
71
- }
72
- }
73
- `;var D=e.i(15971),q=e.i(65153),A=e.i(3095),V=e.i(81013);let R=({filterId:e,option:i,onDelete:a})=>{let{formatMessage:s}=(0,l.useIntl)(),[d,r]=(0,u.useState)(!1),{selectedLocale:n}=(0,w.default)(),o=s({id:"saved",defaultMessage:"Saved"}),{updateFilterTexts:f}=b(),p=async({title:t,value:l,subtitle:i})=>(await f({filterId:e,filterOptionValue:l,texts:[{locale:n,title:t,subtitle:i}]}),r(!1),{success:!0}),g=(0,m.default)({submit:p,successMessage:o,initialValues:{title:"",subtitle:"",...i,...i?.texts}});return(0,t.jsx)(c.default,{form:g,children:(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("li",{className:"py-2 px-2",children:(0,t.jsxs)("div",{className:"flex justify-between items-center gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center flex-wrap gap-3",children:[(0,t.jsx)(q.default,{text:i?.value,color:"slate",square:!0,className:"break-all"}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,t.jsx)("div",{className:"truncate text-sm text-slate-900 dark:text-slate-200",children:d?(0,t.jsx)(x.default,{name:"title",required:!0,label:s({id:"title",defaultMessage:"Title"})}):i?.texts?.title}),(0,t.jsx)("div",{className:"truncate text-sm text-slate-500 dark:text-slate-200",children:d?(0,t.jsx)(x.default,{name:"subtitle",label:s({id:"subtitle",defaultMessage:"Subtitle"})}):i?.texts?.subtitle&&i?.texts?.subtitle})]})]}),(0,t.jsx)("div",{children:d?(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(V.default,{variant:"secondary",onClick:()=>r(!d),text:s({id:"cancel",defaultMessage:"Cancel"})}),(0,t.jsx)(V.default,{variant:"primary",disabled:!g.formik.isValid,onClick:g.formik.handleSubmit,text:s({id:"save",defaultMessage:"Save"})})]}):(0,t.jsx)(A.default,{onEdit:()=>{r(!d)},onDelete:()=>{a(i?.value)},showEdit:!0,showDelete:!0})})]})})})})},S=({filterId:e,options:i})=>{let{formatMessage:a}=(0,l.useIntl)(),{setModal:s}=(0,k.default)(),{selectedLocale:r}=(0,w.default)(),{removeFilterOption:n}=(()=>{let[e]=(0,g.useMutation)(C);return{removeFilterOption:async({filterId:t,filterOptionValue:l})=>e({variables:{filterOptionValue:l,filterId:t},refetchQueries:["FilterOptions"]})}})(),u=async l=>{await s((0,t.jsx)(D.default,{onCancelClick:async()=>s(""),message:a({id:"delete_filter_option_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this filter option? "}),onOkClick:async()=>{s(""),await n({filterId:e,filterOptionValue:l}),d.toast.success(a({id:"filter_deleted",defaultMessage:"Filter deleted successfully"}))},okText:a({id:"delete_filter_option",defaultMessage:"Delete option"})}))};return(0,t.jsx)("div",{children:(0,t.jsx)("ul",{className:"-my-5 divide-y divide-slate-200 dark:divide-slate-700 pb-3 ",children:i.map(l=>(0,t.jsx)(R,{filterId:e,option:l,onDelete:u},`${l._id}${r}`))})})},E=({filterId:e})=>{let{formatMessage:i}=(0,l.useIntl)(),{selectedLocale:a}=(0,w.default)(),{filterOptions:s}=(({filterId:e=null,locale:t}={})=>{let{data:l,loading:i,error:a}=(0,j.useQuery)($,{skip:!e,variables:{filterId:e,forceLocale:t}});return{filterOptions:l?.filter?.options||[],loading:i,error:a}})({filterId:e,locale:a}),{setModal:d}=(0,k.default)(),{createFilterOption:r}=(()=>{let[e]=(0,g.useMutation)(N);return{createFilterOption:async({filterId:t,option:l,texts:i})=>e({variables:{filterId:t,option:l,texts:i},refetchQueries:["FilterOptions"]})}})(),{hasRole:n}=(0,y.default)(),u=async({value:t,title:l,subtitle:i})=>(await r({filterId:e,option:t,texts:[{title:l,locale:a,subtitle:i}]}),d(""),{success:!0});return(0,t.jsx)(I.default,{documentationLabel:i({id:"filer_options",defaultMessage:"Filter options"}),sideComponents:n(o.IRoleAction.ManageFilters)?(0,t.jsx)("button",{type:"button",onClick:()=>d((0,t.jsx)(O,{onSubmit:u,onCancel:()=>d("")})),className:"fixed top-0 right-0 z-10 mb-5 mt-5 mr-2 h-9 rounded-md border border-transparent bg-slate-800 dark:bg-slate-600 px-3 py-1 text-sm font-medium leading-5 text-white shadow-xs hover:bg-slate-950 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 sm:fixed sm:top-auto sm:right-auto",children:i({id:"add_filter_option",defaultMessage:"Add option"})}):null,children:(0,t.jsx)("div",{className:"mt-8 w-full border-slate-300 dark:border-slate-800 p-3 sm:mt-0 shadow-md bg-white dark:bg-slate-900",children:(0,t.jsx)(S,{filterId:e,options:s})})})},P=({filterKey:e,filterType:i})=>{let{formatMessage:a}=(0,l.useIntl)();return(0,t.jsxs)("div",{className:"mt-5 flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"text-sm",children:a({id:"key",defaultMessage:"Key"})}),(0,t.jsx)("div",{className:"rounded-md border-1 border-slate-200 dark:border-slate-600 bg-slate-100 dark:bg-slate-700 py-1 px-2 text-sm text-slate-700 dark:text-slate-200",children:e})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"text-sm",children:a({id:"filter_type",defaultMessage:"Filter Type"})}),(0,t.jsx)("div",{className:"rounded-md border-1 border-slate-200 dark:border-slate-600 bg-slate-100 dark:bg-slate-700 py-1 px-2 text-sm text-slate-700 dark:text-slate-200",children:i})]})]})};var L=e.i(80294);let Q=p.gql`
74
- mutation UpdateFilter($filter: UpdateFilterInput!, $filterId: ID!) {
75
- updateFilter(filter: $filter, filterId: $filterId) {
76
- ...FilterFragment
77
- }
78
- }
79
- ${L.default}
80
- `;var U=e.i(31494),Z=e.i(11056);let B=({selectedView:e,id:l,...i})=>"text"===e?(0,t.jsx)(Z.default,{children:(0,t.jsx)(M,{filterId:l})}):"options"===e?(0,t.jsx)(Z.default,{children:(0,t.jsx)(E,{filterId:l})}):"extended"===e?(0,t.jsx)(U.default,{data:i}):(0,t.jsx)(Z.default,{children:(0,t.jsx)(M,{filterId:l})});e.s(["default",0,({filter:e,extendedData:u})=>{let{_id:o,isActive:c,key:f,type:x,created:m,updated:p}=e||{},{formatMessage:h,formatDate:v}=(0,l.useIntl)(),{updateFilter:b}=(()=>{let[e]=(0,g.useMutation)(Q);return{updateFilter:async({filterId:t,filter:l})=>e({variables:{filter:l,filterId:t}})}})(),j=[{id:"text",title:h({id:"text",defaultMessage:"Text"}),Icon:(0,t.jsx)(i.DocumentTextIcon,{className:"h-5 w-5"})},{id:"options",title:h({id:"options",defaultMessage:"Options"}),Icon:(0,t.jsx)(a.ClipboardDocumentListIcon,{className:"h-5 w-5"})},null!==u&&{id:"extended",title:h({id:"extended-fields",defaultMessage:"Extended"}),Icon:(0,t.jsx)(s.PuzzlePieceIcon,{className:"h-5 w-5"})}].filter(Boolean),F=[{id:"activate",title:h({id:"activate",defaultMessage:"Activate"}),selectedTitle:h({id:"active",defaultMessage:"Active"}),onClick:async()=>{await b({filterId:o,filter:{isActive:!0}}),d.toast.success(h({id:"filter_activated",defaultMessage:"Filter activated!",description:"shown on successful toggle of filter status"}))},current:c,bgColor:"green"},{id:"deactivate",title:h({id:"deactivate",defaultMessage:"Deactivate"}),onClick:async()=>{await b({filterId:o,filter:{isActive:!1}}),d.toast.success(h({id:"filter_deactivated",defaultMessage:"Filter deactivated!",description:"shown on successful toggle of filter status"}))},selectedTitle:h({id:"deactivated",defaultMessage:"Deactivated"}),current:!c,bgColor:"slate"}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("div",{children:(0,t.jsx)(P,{filterKey:f,filterType:x})}),(0,t.jsx)("div",{className:"self-end",children:(0,t.jsx)(r.default,{options:F,type:h({id:"filter",defaultMessage:"Filter"})})})]}),(0,t.jsx)(n.default,{tabItems:j,defaultTab:"text",children:(0,t.jsx)(B,{id:e?._id,...u})})]})}],19759);var K=e.i(70693);e.s(["default",0,({filterId:e=null}={})=>{let{customProperties:t,hydrateFragment:l}=(0,K.default)(),{data:i,loading:a,error:s}=(0,j.useQuery)(((e="")=>p.gql`
81
- query Filter($filterId: ID) {
82
- filter(filterId: $filterId) {
83
- ...FilterFragment
84
- ${e}
85
- texts {
86
- _id
87
- title
88
- subtitle
89
- locale
90
- }
91
- }
92
- }
93
- ${L.default}
94
- `)(t?.Filter),{skip:!e,variables:{filterId:e}}),d=i?.filter,r=l(t?.Filter,d);return{filter:d,loading:a,error:s,extendedData:r}}],78495)},80294,e=>{"use strict";var t=e.i(59080);let l=t.gql`
95
- fragment FilterFragment on Filter {
96
- _id
97
- updated
98
- created
99
- key
100
- isActive
101
- type
102
- options {
103
- _id
104
- texts {
105
- _id
106
- title
107
- subtitle
108
- locale
109
- }
110
- value
111
- }
112
- }
113
- `;e.s(["default",0,l])},50259,e=>{"use strict";var t=e.i(59080),l=e.i(76204);let i=t.gql`
114
- mutation RemoveFilter($filterId: ID!) {
115
- removeFilter(filterId: $filterId) {
116
- _id
117
- }
118
- }
119
- `;e.s(["default",0,()=>{let[e]=(0,l.useMutation)(i);return{removeFilter:async({filterId:t})=>e({variables:{filterId:t},refetchQueries:["Filters"]})}}])},89142,e=>{"use strict";var t=e.i(91398),l=e.i(3828),i=e.i(66773),a=e.i(69322),s=e.i(28401),d=e.i(58971),r=e.i(61494),n=e.i(81359),u=e.i(12197),o=e.i(17644),c=e.i(19759),f=e.i(78495),x=e.i(50259),m=e.i(15971),p=e.i(6607);e.s(["default",0,({filterId:e})=>{let{formatMessage:g}=(0,a.useIntl)(),{setModal:h}=(0,p.default)(),v=(0,l.useRouter)(),{filter:b,loading:j,extendedData:F}=(0,f.default)({filterId:e}),{hasRole:I}=(0,d.default)(),{removeFilter:y}=(0,x.default)(),_=async()=>{await h((0,t.jsx)(m.default,{onCancelClick:async()=>h(""),message:g({id:"delete_filter_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this filter? "}),onOkClick:async()=>{h(""),await y({filterId:e}),s.toast.success(g({id:"filter_deleted",defaultMessage:"Filter deleted successfully"})),v.push("/filters")},okText:g({id:"delete_filter",defaultMessage:"Delete filter"})}))};return b||j?j?(0,t.jsx)(u.default,{}):(0,t.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,t.jsx)(r.default,{currentPageTitle:b?.key}),(0,t.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,t.jsx)(o.default,{headerText:g({id:"filter_detail",defaultMessage:"Filter Detail"}),title:g({id:"filter_detail_title",defaultMessage:"Filter {id}"},{id:b?._id})}),I(i.IRoleAction.ManageFilters)&&(0,t.jsx)(n.default,{onClick:_})]}),(0,t.jsx)(c.default,{filter:b,extendedData:F})]}):(v.push("/404"),null)}])},27572,e=>{"use strict";var t=e.i(91788);let l=t.forwardRef(function({title:e,titleId:l,...i},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":l},i),e?t.createElement("title",{id:l},e):null,t.createElement("path",{fillRule:"evenodd",d:"M15.988 3.012A2.25 2.25 0 0 1 18 5.25v6.5A2.25 2.25 0 0 1 15.75 14H13.5V7A2.5 2.5 0 0 0 11 4.5H8.128a2.252 2.252 0 0 1 1.884-1.488A2.25 2.25 0 0 1 12.25 1h1.5a2.25 2.25 0 0 1 2.238 2.012ZM11.5 3.25a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 .75.75v.25h-3v-.25Z",clipRule:"evenodd"}),t.createElement("path",{fillRule:"evenodd",d:"M2 7a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7Zm2 3.25a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Zm0 3.5a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"}))});e.s(["ClipboardDocumentListIcon",0,l],27572)},28805,e=>{e.v(t=>Promise.all(["static/chunks/0h0r_q6xa9qr_.js"].map(t=>e.l(t))).then(()=>t(79466)))},48761,e=>{e.v(t=>Promise.all(["static/chunks/1ae-9ft5cgojf.js"].map(t=>e.l(t))).then(()=>t(93594)))}]);
@@ -1,17 +0,0 @@
1
- __turbopack_load_page_chunks__("/quotations", [
2
- "static/chunks/0se09klbk8drd.js",
3
- "static/chunks/38pz7fmyf6ay0.js",
4
- "static/chunks/36yth4lm03_j8.js",
5
- "static/chunks/252jebodi67kg.js",
6
- "static/chunks/2kbieaechn8m8.js",
7
- "static/chunks/1d951b6ed8oqn.js",
8
- "static/chunks/01h4ept18s-ns.js",
9
- "static/chunks/2-4ng9fxftmld.js",
10
- "static/chunks/2hm0mbq0vtqmw.js",
11
- "static/chunks/2jtk4-i4e9lug.js",
12
- "static/chunks/2w5y5xf0nriwx.js",
13
- "static/chunks/1vx8_u7-f7q8u.js",
14
- "static/chunks/3sktz8258so64.js",
15
- "static/chunks/06tejx8u1_0kg.js",
16
- "static/chunks/turbopack-3cv3hgsoo_z1k.js"
17
- ])