@unchainedshop/admin-ui 4.8.30 → 4.8.32

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 (921) hide show
  1. package/out/403/index.html +3 -2
  2. package/out/404/index.html +3 -2
  3. package/out/404.html +3 -2
  4. package/out/423/index.html +3 -2
  5. package/out/500/index.html +3 -2
  6. package/out/_next/static/chunks/0-_s79k4_7ei_.js +5 -0
  7. package/out/_next/static/chunks/00aks9rqke2x0.js +7 -0
  8. package/out/_next/static/chunks/00az81dk4vdda.js +54 -0
  9. package/out/_next/static/chunks/01e4gd649r2tq.js +7 -0
  10. package/out/_next/static/chunks/01j2wi94k90x0.js +5 -0
  11. package/out/_next/static/chunks/043i-g05cyvrd.js +1 -0
  12. package/out/_next/static/chunks/04kyktzbxprj0.js +61 -0
  13. package/out/_next/static/chunks/05p330iybjojg.js +44 -0
  14. package/out/_next/static/chunks/05qk8ozexvlxp.js +5 -0
  15. package/out/_next/static/chunks/06i50j458a7g5.js +12 -0
  16. package/out/_next/static/chunks/07o9g5hqfpvjc.js +12 -0
  17. package/out/_next/static/chunks/08o61gwabp3h1.js +33 -0
  18. package/out/_next/static/chunks/0_bvgo8ev4gs7.js +7 -0
  19. package/out/_next/static/chunks/0a5nr3-_q7xx1.js +100 -0
  20. package/out/_next/static/chunks/0amj69l-d5-85.js +1 -0
  21. package/out/_next/static/chunks/0b05sca2hdcys.js +30 -0
  22. package/out/_next/static/chunks/0c3kwkqr9evm4.js +5 -0
  23. package/out/_next/static/chunks/0c4jv8pwvpxei.js +1 -0
  24. package/out/_next/static/chunks/0c7ljn9lo_0oh.js +5 -0
  25. package/out/_next/static/chunks/0dqw1oya___hr.js +1 -0
  26. package/out/_next/static/chunks/0ewr86ctcw7fx.js +1 -0
  27. package/out/_next/static/chunks/0jham55cr3rhy.js +81 -0
  28. package/out/_next/static/chunks/0lr7o7tyjmrmf.js +8 -0
  29. package/out/_next/static/chunks/0mx8opz23nwlb.js +5 -0
  30. package/out/_next/static/chunks/0n3ixknyc6_ma.js +1 -0
  31. package/out/_next/static/chunks/0o0e82-3pc7ur.js +78 -0
  32. package/out/_next/static/chunks/0ohk7l49gjm62.js +5 -0
  33. package/out/_next/static/chunks/0p31l6a9hynnt.js +6 -0
  34. package/out/_next/static/chunks/0p7said9rdor1.js +1 -0
  35. package/out/_next/static/chunks/0q2e8h8498pvo.js +4 -0
  36. package/out/_next/static/chunks/0qa-zbgmv-k3p.js +9 -0
  37. package/out/_next/static/chunks/0qj3xdz043z8l.js +12 -0
  38. package/out/_next/static/chunks/0skst735jufgh.js +71 -0
  39. package/out/_next/static/chunks/0t28q5fb2jp-6.js +8 -0
  40. package/out/_next/static/chunks/0tmamaq8exyij.js +1 -0
  41. package/out/_next/static/chunks/0ydy3ky15gx62.js +1 -0
  42. package/out/_next/static/chunks/0zh311lu9jf2x.js +5 -0
  43. package/out/_next/static/chunks/0zpyyygbqx3pf.js +152 -0
  44. package/out/_next/static/chunks/0zzoylv2rl1xu.js +3 -0
  45. package/out/_next/static/chunks/1---h4b693b81.js +1 -0
  46. package/out/_next/static/chunks/10m_etq9t2pkv.js +7 -0
  47. package/out/_next/static/chunks/11ehf3t7qzbua.js +4 -0
  48. package/out/_next/static/chunks/11go520d1hcm5.js +1 -0
  49. package/out/_next/static/chunks/120k989vjsno4.js +1 -0
  50. package/out/_next/static/chunks/12yd8t4k6c0t1.js +1 -0
  51. package/out/_next/static/chunks/153ec1_-yt3jb.js +344 -0
  52. package/out/_next/static/chunks/16le3cqxj12u6.js +5 -0
  53. package/out/_next/static/chunks/16zxfacsu_jbq.js +1 -0
  54. package/out/_next/static/chunks/17fibl49qtd6c.js +8 -0
  55. package/out/_next/static/chunks/182l1mlbf0glb.js +1 -0
  56. package/out/_next/static/chunks/18xyj4i_i5lyn.js +6 -0
  57. package/out/_next/static/chunks/1_55km6vm5mc0.js +596 -0
  58. package/out/_next/static/chunks/1aej6iqnlr74p.js +1 -0
  59. package/out/_next/static/chunks/1asbed4hne69c.js +7 -0
  60. package/out/_next/static/chunks/1c60nzy_x4kez.js +277 -0
  61. package/out/_next/static/chunks/1c77vl6xdqfd4.js +15 -0
  62. package/out/_next/static/chunks/1da89agg-nacc.js +224 -0
  63. package/out/_next/static/chunks/1f7-0l47bx76m.js +13 -0
  64. package/out/_next/static/chunks/1fbsyczyh9hwh.js +1 -0
  65. package/out/_next/static/chunks/1g96s7-fwvokd.js +2 -0
  66. package/out/_next/static/chunks/1gqd9vrno0rq4.js +315 -0
  67. package/out/_next/static/chunks/1hih2cxmgqcd3.js +10 -0
  68. package/out/_next/static/chunks/1hviha1jcz_og.js +4 -0
  69. package/out/_next/static/chunks/1il9vuoxtb2_n.js +43 -0
  70. package/out/_next/static/chunks/1jaatdt0mlypl.js +16 -0
  71. package/out/_next/static/chunks/1l4g6_of_bbr8.js +5 -0
  72. package/out/_next/static/chunks/1lezxecnoaxnn.js +32 -0
  73. package/out/_next/static/chunks/1m27au_nmk8_k.js +71 -0
  74. package/out/_next/static/chunks/1m4fwgl1mj4d-.js +46 -0
  75. package/out/_next/static/chunks/1ma82ip9shpkc.js +24 -0
  76. package/out/_next/static/chunks/1nbh1zkzirnuw.js +1 -0
  77. package/out/_next/static/chunks/1nohf8_cc6gmw.js +9 -0
  78. package/out/_next/static/chunks/1os6pvhjeb16o.js +1 -0
  79. package/out/_next/static/chunks/1qi5yjvzxspwv.js +15 -0
  80. package/out/_next/static/chunks/1rsexg6dg82f0.js +7 -0
  81. package/out/_next/static/chunks/1s9v5dndopkuz.js +12 -0
  82. package/out/_next/static/chunks/1sh2ogc7tcbu-.js +1 -0
  83. package/out/_next/static/chunks/1sksqjru86hlm.js +1 -0
  84. package/out/_next/static/chunks/1tkvi0wb-x3v8.js +16 -0
  85. package/out/_next/static/chunks/1u79pcgqjgjpq.js +1 -0
  86. package/out/_next/static/chunks/1uqiaqtv_0v2x.js +5 -0
  87. package/out/_next/static/chunks/1wnuiwsbi70eq.js +116 -0
  88. package/out/_next/static/chunks/1x8o-luxdxxk7.js +1 -0
  89. package/out/_next/static/chunks/1yjb7gogaf8po.js +31 -0
  90. package/out/_next/static/chunks/1zyhzessv0wtg.js +1 -0
  91. package/out/_next/static/chunks/2-4610weysas_.js +1 -0
  92. package/out/_next/static/chunks/2-pl31kdikt3k.js +5 -0
  93. package/out/_next/static/chunks/20c4_1i5r3kkz.js +1 -0
  94. package/out/_next/static/chunks/20f2gs8iua6fk.js +1 -0
  95. package/out/_next/static/chunks/20zdaln201w8j.js +277 -0
  96. package/out/_next/static/chunks/21l46nbaop06z.js +39 -0
  97. package/out/_next/static/chunks/22-o32hlte36e.js +130 -0
  98. package/out/_next/static/chunks/231j2_p-ha14w.js +7 -0
  99. package/out/_next/static/chunks/23s2f7_-ol94s.js +8 -0
  100. package/out/_next/static/chunks/26_mx-ritu68j.js +24 -0
  101. package/out/_next/static/chunks/26ckmxeluyknq.js +1 -0
  102. package/out/_next/static/chunks/26r0y7ldf3iqs.js +6 -0
  103. package/out/_next/static/chunks/27fzoozwycagi.js +6 -0
  104. package/out/_next/static/chunks/27jmq7a-vh0b4.js +7 -0
  105. package/out/_next/static/chunks/283567a82x9qi.js +149 -0
  106. package/out/_next/static/chunks/29he8uukp5s4u.js +31 -0
  107. package/out/_next/static/chunks/2adglo0sf0jcg.js +905 -0
  108. package/out/_next/static/chunks/{2kzyda4a6mqut.js → 2ajr0rk0_yax6.js} +1 -1
  109. package/out/_next/static/chunks/2b4ewxxz6f462.js +7 -0
  110. package/out/_next/static/chunks/{3zqfchpzqxd92.css → 2bh2dv7j9m8c8.css} +1 -1
  111. package/out/_next/static/chunks/2bi8v13lm76lr.js +95 -0
  112. package/out/_next/static/chunks/2burvpf9877y_.js +44 -0
  113. package/out/_next/static/chunks/2cj703xtrf5i6.js +46 -0
  114. package/out/_next/static/chunks/2cj8g3fxmitaa.js +1 -0
  115. package/out/_next/static/chunks/2ec7xatyld40t.js +7 -0
  116. package/out/_next/static/chunks/2ho4591ngh3y2.js +61 -0
  117. package/out/_next/static/chunks/2hoi6cb1lromr.js +4 -0
  118. package/out/_next/static/chunks/2i5k6tlwd58hp.js +1 -0
  119. package/out/_next/static/chunks/2iy0jr00qhq-q.js +5 -0
  120. package/out/_next/static/chunks/2jonbba27xy3u.js +14 -0
  121. package/out/_next/static/chunks/2l8gepfm4kyjp.js +1 -0
  122. package/out/_next/static/chunks/2m0rrts8gwqwp.js +1 -0
  123. package/out/_next/static/chunks/2m_u12ggzosat.js +5 -0
  124. package/out/_next/static/chunks/2mdns56l5antm.js +5 -0
  125. package/out/_next/static/chunks/2mrbytgs3uetd.js +4 -0
  126. package/out/_next/static/chunks/2p9gwjxeui1zd.js +71 -0
  127. package/out/_next/static/chunks/2pfhy9qy_cijn.js +5 -0
  128. package/out/_next/static/chunks/2q5k4rozyr2wt.js +4 -0
  129. package/out/_next/static/chunks/2qx8nnki_qv5v.js +171 -0
  130. package/out/_next/static/chunks/2r_rj84l3cy7r.js +119 -0
  131. package/out/_next/static/chunks/2rb1-3t3-sv5s.js +8 -0
  132. package/out/_next/static/chunks/2rmgaa88-4bpb.js +227 -0
  133. package/out/_next/static/chunks/2swxmzb-xk_bo.js +108 -0
  134. package/out/_next/static/chunks/2t0biwx5e_4w_.js +1 -0
  135. package/out/_next/static/chunks/2ts3v72jkbcdr.js +7 -0
  136. package/out/_next/static/chunks/2vfexvltv2avy.js +5 -0
  137. package/out/_next/static/chunks/2vveotzevnkfp.js +1 -0
  138. package/out/_next/static/chunks/2wkg65dtx56je.js +155 -0
  139. package/out/_next/static/chunks/2wmsx4gjbgvfv.js +18 -0
  140. package/out/_next/static/chunks/2xixk0t9e9mnw.js +1 -0
  141. package/out/_next/static/chunks/2xz7hnr9ikqzq.js +7 -0
  142. package/out/_next/static/chunks/2y1lq1efnvcdt.js +23 -0
  143. package/out/_next/static/chunks/2ziasg8l_c9n7.js +5 -0
  144. package/out/_next/static/chunks/3-ve59izq9j-p.js +1 -0
  145. package/out/_next/static/chunks/3-wsablhqgzoa.js +1 -0
  146. package/out/_next/static/chunks/30ppb2wc-m4ph.js +1 -0
  147. package/out/_next/static/chunks/336k08jwyc5i-.js +1 -0
  148. package/out/_next/static/chunks/33d061qpkafqm.js +39 -0
  149. package/out/_next/static/chunks/33fyy6d5mo55_.js +8 -0
  150. package/out/_next/static/chunks/33kh18frqc3b1.js +5 -0
  151. package/out/_next/static/chunks/33v05ol-ire9s.js +10 -0
  152. package/out/_next/static/chunks/33yzdcbu7w60l.js +13 -0
  153. package/out/_next/static/chunks/348l8p7-vo4l5.js +63 -0
  154. package/out/_next/static/chunks/35hu5vin0swdf.js +41 -0
  155. package/out/_next/static/chunks/37a6yquh875rn.js +39 -0
  156. package/out/_next/static/chunks/3_2i9du5-ffrp.js +59 -0
  157. package/out/_next/static/chunks/3_84h3z_tewmg.js +145 -0
  158. package/out/_next/static/chunks/3bo7uiy-wh63m.js +108 -0
  159. package/out/_next/static/chunks/3c-an5ft_3emc.js +1 -0
  160. package/out/_next/static/chunks/3d_222ci0_30_.js +41 -0
  161. package/out/_next/static/chunks/3dldch03dfaed.js +1 -0
  162. package/out/_next/static/chunks/3eedy49gsvv_t.js +1 -0
  163. package/out/_next/static/chunks/3fayuejnrsd90.js +15 -0
  164. package/out/_next/static/chunks/3fqonijzsxy8u.js +28 -0
  165. package/out/_next/static/chunks/3g1ale0hytu9q.js +12 -0
  166. package/out/_next/static/chunks/3jxeyjg2g7w94.js +1 -0
  167. package/out/_next/static/chunks/3k3gvr7-e3g_s.js +5 -0
  168. package/out/_next/static/chunks/3kwoyyxi_-q7m.js +1 -0
  169. package/out/_next/static/chunks/3le1bywe19_u9.js +1 -0
  170. package/out/_next/static/chunks/3lku4-9kpf-mj.js +267 -0
  171. package/out/_next/static/chunks/3lz5h1tw50wr_.js +54 -0
  172. package/out/_next/static/chunks/3oq-khgfpo0nx.js +39 -0
  173. package/out/_next/static/chunks/3ps25ocfalcap.js +43 -0
  174. package/out/_next/static/chunks/3q3m075m4bxz1.js +2 -0
  175. package/out/_next/static/chunks/3qzrrjb48t2w3.js +119 -0
  176. package/out/_next/static/chunks/3r0i-7zjuz9i1.js +6 -0
  177. package/out/_next/static/chunks/3rgn5xwtr51ul.js +7 -0
  178. package/out/_next/static/chunks/3ridg_u19b6ih.js +8 -0
  179. package/out/_next/static/chunks/3skzk-w2ytvku.js +5 -0
  180. package/out/_next/static/chunks/3srw10h0hcztd.js +68 -0
  181. package/out/_next/static/chunks/3tgrftdet8sna.js +15 -0
  182. package/out/_next/static/chunks/3uax_eq1kjjta.js +1 -0
  183. package/out/_next/static/chunks/3uj94afpsi6cs.js +1 -0
  184. package/out/_next/static/chunks/3vgurvjr6hkyv.js +4 -0
  185. package/out/_next/static/chunks/3viepyovs19ub.js +23 -0
  186. package/out/_next/static/chunks/3vnzp3n_wd3j_.js +1 -0
  187. package/out/_next/static/chunks/3w8h5lxnd0z4z.js +1 -0
  188. package/out/_next/static/chunks/3wh4xa9dnw-55.js +194 -0
  189. package/out/_next/static/chunks/3wlvio5id54ow.js +5 -0
  190. package/out/_next/static/chunks/3wzvscqui-9ml.js +23 -0
  191. package/out/_next/static/chunks/3y8h3g1tqukrv.js +36 -0
  192. package/out/_next/static/chunks/3zcilnj6p9-t5.js +1 -0
  193. package/out/_next/static/chunks/3zmmdm68s05-t.js +217 -0
  194. package/out/_next/static/chunks/40l5d7o95aw37.js +4 -0
  195. package/out/_next/static/chunks/417kn9hki8k81.js +33 -0
  196. package/out/_next/static/chunks/41p3ng89i5lem.js +5 -0
  197. package/out/_next/static/chunks/42mofxcd0l7qi.js +1 -0
  198. package/out/_next/static/chunks/439tz_ubj8h-g.js +342 -0
  199. package/out/_next/static/chunks/43hfssep7ry-z.js +5 -0
  200. package/out/_next/static/chunks/45bcpjurhxb-j.js +1 -0
  201. package/out/_next/static/chunks/turbopack-2c3mg3r-05n1w.js +1 -0
  202. package/out/_next/static/jOx5PlckLwWIJ5yrvePdU/_buildManifest.js +258 -0
  203. package/out/_offline/index.html +3 -2
  204. package/out/account/forgot-password/index.html +3 -2
  205. package/out/account/index.html +3 -2
  206. package/out/assortments/AssortmentDetailPage/index.html +3 -2
  207. package/out/assortments/index.html +3 -2
  208. package/out/assortments/new/index.html +3 -2
  209. package/out/copilot/index.html +3 -2
  210. package/out/country/CountryDetailPage/index.html +3 -2
  211. package/out/country/index.html +3 -2
  212. package/out/country/new/index.html +3 -2
  213. package/out/currency/CurrencyDetailPage/index.html +3 -2
  214. package/out/currency/index.html +3 -2
  215. package/out/currency/new/index.html +3 -2
  216. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -2
  217. package/out/delivery-provider/index.html +3 -2
  218. package/out/delivery-provider/new/index.html +3 -2
  219. package/out/enrollments/EnrollmentDetailPage/index.html +3 -2
  220. package/out/enrollments/index.html +3 -2
  221. package/out/events/EventDetailPage/index.html +3 -2
  222. package/out/events/index.html +3 -2
  223. package/out/exports/index.html +3 -2
  224. package/out/external/index.html +3 -2
  225. package/out/filters/FilterDetailPage/index.html +3 -2
  226. package/out/filters/index.html +3 -2
  227. package/out/filters/new/index.html +3 -2
  228. package/out/index.html +3 -2
  229. package/out/install/index.html +3 -2
  230. package/out/language/LanguageDetailPage/index.html +3 -2
  231. package/out/language/index.html +3 -2
  232. package/out/language/new/index.html +3 -2
  233. package/out/log-in/index.html +3 -2
  234. package/out/orders/OrderDetailPage/index.html +3 -2
  235. package/out/orders/index.html +3 -2
  236. package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -2
  237. package/out/payment-provider/index.html +3 -2
  238. package/out/payment-provider/new/index.html +3 -2
  239. package/out/products/ProductDetailPage/index.html +3 -2
  240. package/out/products/index.html +3 -2
  241. package/out/products/new/index.html +3 -2
  242. package/out/quotations/QuotationDetailPage/index.html +3 -2
  243. package/out/quotations/index.html +3 -2
  244. package/out/reset-password/index.html +3 -2
  245. package/out/sign-up/index.html +3 -2
  246. package/out/styleguide/index.html +3 -2
  247. package/out/tokens/TokenDetailPage/index.html +3 -2
  248. package/out/tokens/index.html +3 -2
  249. package/out/users/UserDetailPage/index.html +3 -2
  250. package/out/users/index.html +3 -2
  251. package/out/users/new/index.html +3 -2
  252. package/out/verify-email/index.html +3 -2
  253. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -2
  254. package/out/warehousing-provider/index.html +3 -2
  255. package/out/warehousing-provider/new/index.html +3 -2
  256. package/out/works/WorkDetailPage/index.html +3 -2
  257. package/out/works/WorkQueueListView/index.html +3 -2
  258. package/out/works/index.html +3 -2
  259. package/out/works/management/index.html +3 -2
  260. package/package.json +36 -36
  261. package/dist/chunk-3L6EZQ6P.js +0 -135
  262. package/dist/chunk-54DKBWXV.js +0 -33
  263. package/dist/chunk-5WPFHQZN.js +0 -388
  264. package/dist/chunk-6UGLNLJG.js +0 -44
  265. package/dist/chunk-BMDNY67T.js +0 -22547
  266. package/dist/chunk-BOMSMJF2.js +0 -77
  267. package/dist/chunk-COV7BREX.js +0 -50
  268. package/dist/chunk-E77YIMGR.js +0 -2083
  269. package/dist/chunk-EJDZRZSZ.js +0 -59
  270. package/dist/chunk-ELPURWDC.js +0 -75
  271. package/dist/chunk-F6LBNV3H.js +0 -9
  272. package/dist/chunk-FDHXLNZQ.js +0 -44
  273. package/dist/chunk-GY2DRQGW.js +0 -166
  274. package/dist/chunk-HERLM47Z.js +0 -309
  275. package/dist/chunk-HJKRGBDG.js +0 -694
  276. package/dist/chunk-I64TXIE7.js +0 -618
  277. package/dist/chunk-IAQPLRXZ.js +0 -16
  278. package/dist/chunk-ICJH36K4.js +0 -326
  279. package/dist/chunk-ILYPJE4N.js +0 -57
  280. package/dist/chunk-IWKDBADX.js +0 -73
  281. package/dist/chunk-IXBMHOB5.js +0 -13
  282. package/dist/chunk-IYKPRAWC.js +0 -26
  283. package/dist/chunk-J23QSWDL.js +0 -8
  284. package/dist/chunk-KH5MK6ZW.js +0 -18
  285. package/dist/chunk-KRIRF7F6.js +0 -76
  286. package/dist/chunk-NT7RB7AK.js +0 -70
  287. package/dist/chunk-OKGJ6HDE.js +0 -26
  288. package/dist/chunk-OTXM2UCD.js +0 -19
  289. package/dist/chunk-PJLYVMUM.js +0 -3308
  290. package/dist/chunk-PUI5BIKO.js +0 -41
  291. package/dist/chunk-Q6S3LBUF.js +0 -180
  292. package/dist/chunk-QHR23GVH.js +0 -1099
  293. package/dist/chunk-QWQ3WJJN.js +0 -1
  294. package/dist/chunk-RAQV2GYF.js +0 -70
  295. package/dist/chunk-VBO377AY.js +0 -14
  296. package/dist/chunk-VYEXPG3M.js +0 -107
  297. package/dist/chunk-WPLOTFGW.js +0 -36
  298. package/dist/chunk-YO6PT7KD.js +0 -13
  299. package/dist/chunk-ZUOVKRKC.js +0 -957
  300. package/dist/components/ui/Accordion/Accordion.d.ts +0 -11
  301. package/dist/components/ui/Accordion/Accordion.d.ts.map +0 -1
  302. package/dist/components/ui/Accordion/AccordionHeader.d.ts +0 -6
  303. package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +0 -1
  304. package/dist/components/ui/Accordion/AccordionItem.d.ts +0 -11
  305. package/dist/components/ui/Accordion/AccordionItem.d.ts.map +0 -1
  306. package/dist/components/ui/ActiveInActive.d.ts +0 -10
  307. package/dist/components/ui/ActiveInActive.d.ts.map +0 -1
  308. package/dist/components/ui/AnimatedCounter.d.ts +0 -7
  309. package/dist/components/ui/AnimatedCounter.d.ts.map +0 -1
  310. package/dist/components/ui/Badge.d.ts +0 -10
  311. package/dist/components/ui/Badge.d.ts.map +0 -1
  312. package/dist/components/ui/BreadCrumbs.d.ts +0 -7
  313. package/dist/components/ui/BreadCrumbs.d.ts.map +0 -1
  314. package/dist/components/ui/Button.d.ts +0 -36
  315. package/dist/components/ui/Button.d.ts.map +0 -1
  316. package/dist/components/ui/CopyableText.d.ts +0 -5
  317. package/dist/components/ui/CopyableText.d.ts.map +0 -1
  318. package/dist/components/ui/DateInput.d.ts +0 -15
  319. package/dist/components/ui/DateInput.d.ts.map +0 -1
  320. package/dist/components/ui/DateRangeFilterInput.d.ts +0 -4
  321. package/dist/components/ui/DateRangeFilterInput.d.ts.map +0 -1
  322. package/dist/components/ui/DetailHeader.d.ts +0 -6
  323. package/dist/components/ui/DetailHeader.d.ts.map +0 -1
  324. package/dist/components/ui/DraggableIcon.d.ts +0 -3
  325. package/dist/components/ui/DraggableIcon.d.ts.map +0 -1
  326. package/dist/components/ui/ErrorBoundary.d.ts +0 -18
  327. package/dist/components/ui/ErrorBoundary.d.ts.map +0 -1
  328. package/dist/components/ui/ErrorFallback.d.ts +0 -6
  329. package/dist/components/ui/ErrorFallback.d.ts.map +0 -1
  330. package/dist/components/ui/HelpText.d.ts +0 -11
  331. package/dist/components/ui/HelpText.d.ts.map +0 -1
  332. package/dist/components/ui/ImageWithFallback.d.ts +0 -7
  333. package/dist/components/ui/ImageWithFallback.d.ts.map +0 -1
  334. package/dist/components/ui/InfoTextBanner.d.ts +0 -6
  335. package/dist/components/ui/InfoTextBanner.d.ts.map +0 -1
  336. package/dist/components/ui/JSONView.d.ts +0 -6
  337. package/dist/components/ui/JSONView.d.ts.map +0 -1
  338. package/dist/components/ui/ListHeader.d.ts +0 -6
  339. package/dist/components/ui/ListHeader.d.ts.map +0 -1
  340. package/dist/components/ui/Loading.d.ts +0 -3
  341. package/dist/components/ui/Loading.d.ts.map +0 -1
  342. package/dist/components/ui/NoData.d.ts +0 -7
  343. package/dist/components/ui/NoData.d.ts.map +0 -1
  344. package/dist/components/ui/NoImage.d.ts +0 -7
  345. package/dist/components/ui/NoImage.d.ts.map +0 -1
  346. package/dist/components/ui/NoImageSvg.d.ts +0 -8
  347. package/dist/components/ui/NoImageSvg.d.ts.map +0 -1
  348. package/dist/components/ui/PageHeader.d.ts +0 -11
  349. package/dist/components/ui/PageHeader.d.ts.map +0 -1
  350. package/dist/components/ui/Pagination.d.ts +0 -8
  351. package/dist/components/ui/Pagination.d.ts.map +0 -1
  352. package/dist/components/ui/Portal/Portal.d.ts +0 -16
  353. package/dist/components/ui/Portal/Portal.d.ts.map +0 -1
  354. package/dist/components/ui/Portal/Portal.types.d.ts +0 -16
  355. package/dist/components/ui/Portal/Portal.types.d.ts.map +0 -1
  356. package/dist/components/ui/SaveAndCancelButtons.d.ts +0 -10
  357. package/dist/components/ui/SaveAndCancelButtons.d.ts.map +0 -1
  358. package/dist/components/ui/SearchField.d.ts +0 -7
  359. package/dist/components/ui/SearchField.d.ts.map +0 -1
  360. package/dist/components/ui/Tab.d.ts +0 -18
  361. package/dist/components/ui/Tab.d.ts.map +0 -1
  362. package/dist/components/ui/Tag/TagInput.d.ts +0 -19
  363. package/dist/components/ui/Tag/TagInput.d.ts.map +0 -1
  364. package/dist/components/ui/Tag/TagList.d.ts +0 -8
  365. package/dist/components/ui/Tag/TagList.d.ts.map +0 -1
  366. package/dist/components/ui/Tag/TagListForm.d.ts +0 -8
  367. package/dist/components/ui/Tag/TagListForm.d.ts.map +0 -1
  368. package/dist/components/ui/Toggle.d.ts +0 -11
  369. package/dist/components/ui/Toggle.d.ts.map +0 -1
  370. package/dist/components/ui/ToolTip.d.ts +0 -7
  371. package/dist/components/ui/ToolTip.d.ts.map +0 -1
  372. package/dist/components/ui/card.d.ts +0 -9
  373. package/dist/components/ui/card.d.ts.map +0 -1
  374. package/dist/components/ui/chart.d.ts +0 -42
  375. package/dist/components/ui/chart.d.ts.map +0 -1
  376. package/dist/components/ui/form/CheckboxField.d.ts +0 -4
  377. package/dist/components/ui/form/CheckboxField.d.ts.map +0 -1
  378. package/dist/components/ui/form/ChoicesField.d.ts +0 -12
  379. package/dist/components/ui/form/ChoicesField.d.ts.map +0 -1
  380. package/dist/components/ui/form/Combobox.d.ts +0 -20
  381. package/dist/components/ui/form/Combobox.d.ts.map +0 -1
  382. package/dist/components/ui/form/DatePickerField.d.ts +0 -4
  383. package/dist/components/ui/form/DatePickerField.d.ts.map +0 -1
  384. package/dist/components/ui/form/EmailField.d.ts +0 -7
  385. package/dist/components/ui/form/EmailField.d.ts.map +0 -1
  386. package/dist/components/ui/form/FieldWithHelp.d.ts +0 -10
  387. package/dist/components/ui/form/FieldWithHelp.d.ts.map +0 -1
  388. package/dist/components/ui/form/FieldWrapper.d.ts +0 -8
  389. package/dist/components/ui/form/FieldWrapper.d.ts.map +0 -1
  390. package/dist/components/ui/form/FormErrors.d.ts +0 -6
  391. package/dist/components/ui/form/FormErrors.d.ts.map +0 -1
  392. package/dist/components/ui/form/JSONAreaField.d.ts +0 -7
  393. package/dist/components/ui/form/JSONAreaField.d.ts.map +0 -1
  394. package/dist/components/ui/form/MarkdownTextAreaField.d.ts +0 -8
  395. package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +0 -1
  396. package/dist/components/ui/form/PasswordField.d.ts +0 -3
  397. package/dist/components/ui/form/PasswordField.d.ts.map +0 -1
  398. package/dist/components/ui/form/SelectField.d.ts +0 -11
  399. package/dist/components/ui/form/SelectField.d.ts.map +0 -1
  400. package/dist/components/ui/form/SubmitButton.d.ts +0 -9
  401. package/dist/components/ui/form/SubmitButton.d.ts.map +0 -1
  402. package/dist/components/ui/form/TagInputField.d.ts +0 -7
  403. package/dist/components/ui/form/TagInputField.d.ts.map +0 -1
  404. package/dist/components/ui/form/TextAreaField.d.ts +0 -8
  405. package/dist/components/ui/form/TextAreaField.d.ts.map +0 -1
  406. package/dist/components/ui/form/TextField.d.ts +0 -10
  407. package/dist/components/ui/form/TextField.d.ts.map +0 -1
  408. package/dist/components/ui/form/index.d.ts +0 -18
  409. package/dist/components/ui/form/index.d.ts.map +0 -1
  410. package/dist/components/ui/icons.d.ts +0 -4
  411. package/dist/components/ui/icons.d.ts.map +0 -1
  412. package/dist/components/ui/index.d.ts +0 -46
  413. package/dist/components/ui/index.d.ts.map +0 -1
  414. package/dist/form.js +0 -2617
  415. package/dist/gql/operation-types.d.ts +0 -13239
  416. package/dist/gql/operation-types.d.ts.map +0 -1
  417. package/dist/gql/schema-types.d.ts +0 -3876
  418. package/dist/gql/schema-types.d.ts.map +0 -1
  419. package/dist/gql/types.d.ts +0 -3
  420. package/dist/gql/types.d.ts.map +0 -1
  421. package/dist/hooks.js +0 -49
  422. package/dist/lib/utils.d.ts +0 -3
  423. package/dist/lib/utils.d.ts.map +0 -1
  424. package/dist/modal.js +0 -51
  425. package/dist/modules/Auth/AuthContext.d.ts +0 -9
  426. package/dist/modules/Auth/AuthContext.d.ts.map +0 -1
  427. package/dist/modules/Auth/useAuth.d.ts +0 -6
  428. package/dist/modules/Auth/useAuth.d.ts.map +0 -1
  429. package/dist/modules/UnchainedContext/UnchainedContext.d.ts +0 -8
  430. package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +0 -1
  431. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +0 -7
  432. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +0 -1
  433. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +0 -3
  434. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +0 -1
  435. package/dist/modules/accounts/fragment/UserFragment.d.ts +0 -3
  436. package/dist/modules/accounts/fragment/UserFragment.d.ts.map +0 -1
  437. package/dist/modules/accounts/hooks/useCurrentUser.d.ts +0 -10
  438. package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +0 -1
  439. package/dist/modules/accounts/hooks/useUsersCount.d.ts +0 -8
  440. package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +0 -1
  441. package/dist/modules/accounts.js +0 -1349
  442. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +0 -8
  443. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +0 -1
  444. package/dist/modules/assortment.js +0 -1205
  445. package/dist/modules/common/components/AppContext.d.ts +0 -18
  446. package/dist/modules/common/components/AppContext.d.ts.map +0 -1
  447. package/dist/modules/common/components/FormWrapper.d.ts +0 -8
  448. package/dist/modules/common/components/FormWrapper.d.ts.map +0 -1
  449. package/dist/modules/common/components/LocaleWrapper.d.ts +0 -7
  450. package/dist/modules/common/components/LocaleWrapper.d.ts.map +0 -1
  451. package/dist/modules/common/components/MediaAvatar.d.ts +0 -6
  452. package/dist/modules/common/components/MediaAvatar.d.ts.map +0 -1
  453. package/dist/modules/common/components/SelectOptions.d.ts +0 -17
  454. package/dist/modules/common/components/SelectOptions.d.ts.map +0 -1
  455. package/dist/modules/common/components/Table.d.ts +0 -25
  456. package/dist/modules/common/components/Table.d.ts.map +0 -1
  457. package/dist/modules/common/components/TableCell.d.ts +0 -12
  458. package/dist/modules/common/components/TableCell.d.ts.map +0 -1
  459. package/dist/modules/common/components/TableRow.d.ts +0 -10
  460. package/dist/modules/common/components/TableRow.d.ts.map +0 -1
  461. package/dist/modules/common/components/ThemeWrapper.d.ts +0 -10
  462. package/dist/modules/common/components/ThemeWrapper.d.ts.map +0 -1
  463. package/dist/modules/common/data/iso-codes.d.ts +0 -4
  464. package/dist/modules/common/data/iso-codes.d.ts.map +0 -1
  465. package/dist/modules/common/data/miscellaneous.d.ts +0 -52
  466. package/dist/modules/common/data/miscellaneous.d.ts.map +0 -1
  467. package/dist/modules/common/fragments/AddressFragment.d.ts +0 -3
  468. package/dist/modules/common/fragments/AddressFragment.d.ts.map +0 -1
  469. package/dist/modules/common/hooks/useApp.d.ts +0 -11
  470. package/dist/modules/common/hooks/useApp.d.ts.map +0 -1
  471. package/dist/modules/common/hooks/useBulkResultHandler.d.ts +0 -8
  472. package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +0 -1
  473. package/dist/modules/common/hooks/useBulkSelection.d.ts +0 -12
  474. package/dist/modules/common/hooks/useBulkSelection.d.ts.map +0 -1
  475. package/dist/modules/common/hooks/useCSVExport.d.ts +0 -10
  476. package/dist/modules/common/hooks/useCSVExport.d.ts.map +0 -1
  477. package/dist/modules/common/hooks/useCSVImport.d.ts +0 -18
  478. package/dist/modules/common/hooks/useCSVImport.d.ts.map +0 -1
  479. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +0 -5
  480. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +0 -1
  481. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +0 -10
  482. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +0 -1
  483. package/dist/modules/common/hooks/useDashboardMetrics.d.ts +0 -23
  484. package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +0 -1
  485. package/dist/modules/common/hooks/useLocalStorage.d.ts +0 -3
  486. package/dist/modules/common/hooks/useLocalStorage.d.ts.map +0 -1
  487. package/dist/modules/common/hooks/useOrderAnalytics.d.ts +0 -25
  488. package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +0 -1
  489. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +0 -16
  490. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +0 -1
  491. package/dist/modules/common/hooks/useOutsideClick.d.ts +0 -3
  492. package/dist/modules/common/hooks/useOutsideClick.d.ts.map +0 -1
  493. package/dist/modules/common/hooks/usePortal.d.ts +0 -20
  494. package/dist/modules/common/hooks/usePortal.d.ts.map +0 -1
  495. package/dist/modules/common/hooks/useScrollRestoration.d.ts +0 -8
  496. package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +0 -1
  497. package/dist/modules/common/hooks/useShopConfiguration.d.ts +0 -8
  498. package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +0 -1
  499. package/dist/modules/common/hooks/useShopInfo.d.ts +0 -41
  500. package/dist/modules/common/hooks/useShopInfo.d.ts.map +0 -1
  501. package/dist/modules/common/hooks/useStatusTypes.d.ts +0 -10
  502. package/dist/modules/common/hooks/useStatusTypes.d.ts.map +0 -1
  503. package/dist/modules/common/hooks/useSystemRoles.d.ts +0 -7
  504. package/dist/modules/common/hooks/useSystemRoles.d.ts.map +0 -1
  505. package/dist/modules/common/hooks/useTheme.d.ts +0 -7
  506. package/dist/modules/common/hooks/useTheme.d.ts.map +0 -1
  507. package/dist/modules/common/utils/deBounce.d.ts +0 -3
  508. package/dist/modules/common/utils/deBounce.d.ts.map +0 -1
  509. package/dist/modules/common/utils/defaultNextImageLoader.d.ts +0 -7
  510. package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +0 -1
  511. package/dist/modules/common/utils/formatUsername.d.ts +0 -3
  512. package/dist/modules/common/utils/formatUsername.d.ts.map +0 -1
  513. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +0 -30
  514. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +0 -1
  515. package/dist/modules/common/utils/normalizeFilterKeys.d.ts +0 -4
  516. package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +0 -1
  517. package/dist/modules/common/utils/sharedContext.d.ts +0 -9
  518. package/dist/modules/common/utils/sharedContext.d.ts.map +0 -1
  519. package/dist/modules/common/utils/useFormatDateTime.d.ts +0 -16
  520. package/dist/modules/common/utils/useFormatDateTime.d.ts.map +0 -1
  521. package/dist/modules/common/utils/utils.d.ts +0 -21
  522. package/dist/modules/common/utils/utils.d.ts.map +0 -1
  523. package/dist/modules/country/fragments/CountryFragment.d.ts +0 -3
  524. package/dist/modules/country/fragments/CountryFragment.d.ts.map +0 -1
  525. package/dist/modules/country/hooks/useCountries.d.ts +0 -22
  526. package/dist/modules/country/hooks/useCountries.d.ts.map +0 -1
  527. package/dist/modules/country.js +0 -108
  528. package/dist/modules/currency.js +0 -119
  529. package/dist/modules/delivery-provider.js +0 -269
  530. package/dist/modules/enrollment.js +0 -431
  531. package/dist/modules/event.js +0 -123
  532. package/dist/modules/filter.js +0 -497
  533. package/dist/modules/forms/components/Form.d.ts +0 -8
  534. package/dist/modules/forms/components/Form.d.ts.map +0 -1
  535. package/dist/modules/forms/hooks/useField.d.ts +0 -35
  536. package/dist/modules/forms/hooks/useField.d.ts.map +0 -1
  537. package/dist/modules/forms/hooks/useForm.d.ts +0 -44
  538. package/dist/modules/forms/hooks/useForm.d.ts.map +0 -1
  539. package/dist/modules/forms/hooks/useFormContext.d.ts +0 -3
  540. package/dist/modules/forms/hooks/useFormContext.d.ts.map +0 -1
  541. package/dist/modules/forms/lib/FormContext.d.ts +0 -13
  542. package/dist/modules/forms/lib/FormContext.d.ts.map +0 -1
  543. package/dist/modules/forms/lib/clean.d.ts +0 -3
  544. package/dist/modules/forms/lib/clean.d.ts.map +0 -1
  545. package/dist/modules/forms/lib/validators.d.ts +0 -20
  546. package/dist/modules/forms/lib/validators.d.ts.map +0 -1
  547. package/dist/modules/language/fragments/LanguageFragment.d.ts +0 -3
  548. package/dist/modules/language/fragments/LanguageFragment.d.ts.map +0 -1
  549. package/dist/modules/language/hooks/useLanguages.d.ts +0 -19
  550. package/dist/modules/language/hooks/useLanguages.d.ts.map +0 -1
  551. package/dist/modules/language.js +0 -106
  552. package/dist/modules/modal/components/AlertMessage.d.ts +0 -9
  553. package/dist/modules/modal/components/AlertMessage.d.ts.map +0 -1
  554. package/dist/modules/modal/components/DangerMessage.d.ts +0 -13
  555. package/dist/modules/modal/components/DangerMessage.d.ts.map +0 -1
  556. package/dist/modules/modal/components/ImportResultMessage.d.ts +0 -14
  557. package/dist/modules/modal/components/ImportResultMessage.d.ts.map +0 -1
  558. package/dist/modules/modal/components/Modal.d.ts +0 -10
  559. package/dist/modules/modal/components/Modal.d.ts.map +0 -1
  560. package/dist/modules/modal/components/ModalWrapper.d.ts +0 -6
  561. package/dist/modules/modal/components/ModalWrapper.d.ts.map +0 -1
  562. package/dist/modules/modal/hooks/useModal.d.ts +0 -7
  563. package/dist/modules/modal/hooks/useModal.d.ts.map +0 -1
  564. package/dist/modules/modal/utils/ModalContext.d.ts +0 -9
  565. package/dist/modules/modal/utils/ModalContext.d.ts.map +0 -1
  566. package/dist/modules/order/fragments/OrderDetailFragment.d.ts +0 -3
  567. package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +0 -1
  568. package/dist/modules/order/fragments/OrderFragment.d.ts +0 -3
  569. package/dist/modules/order/fragments/OrderFragment.d.ts.map +0 -1
  570. package/dist/modules/order/hooks/useOrders.d.ts +0 -46
  571. package/dist/modules/order/hooks/useOrders.d.ts.map +0 -1
  572. package/dist/modules/order.js +0 -569
  573. package/dist/modules/payment-providers.js +0 -206
  574. package/dist/modules/product/hooks/useProductsCount.d.ts +0 -8
  575. package/dist/modules/product/hooks/useProductsCount.d.ts.map +0 -1
  576. package/dist/modules/product-review.js +0 -270
  577. package/dist/modules/product.js +0 -6914
  578. package/dist/modules/quotation.js +0 -324
  579. package/dist/modules/token.js +0 -143
  580. package/dist/modules/warehousing-providers.js +0 -206
  581. package/dist/modules/work/fragments/WorkFragment.d.ts +0 -3
  582. package/dist/modules/work/fragments/WorkFragment.d.ts.map +0 -1
  583. package/dist/modules/work/hooks/useAddWork.d.ts +0 -6
  584. package/dist/modules/work/hooks/useAddWork.d.ts.map +0 -1
  585. package/dist/modules/work/hooks/useWork.d.ts +0 -32
  586. package/dist/modules/work/hooks/useWork.d.ts.map +0 -1
  587. package/dist/modules/work.js +0 -232
  588. package/dist/plugins.js +0 -13
  589. package/dist/providers.js +0 -9
  590. package/dist/sdk/hooks.d.ts +0 -12
  591. package/dist/sdk/hooks.d.ts.map +0 -1
  592. package/dist/sdk/modal.d.ts +0 -7
  593. package/dist/sdk/modal.d.ts.map +0 -1
  594. package/dist/sdk/plugins.d.ts +0 -78
  595. package/dist/sdk/plugins.d.ts.map +0 -1
  596. package/dist/sdk/providers.d.ts +0 -5
  597. package/dist/sdk/providers.d.ts.map +0 -1
  598. package/dist/sdk/shims/admin-ui-plugins.d.ts +0 -3
  599. package/dist/sdk/shims/admin-ui-plugins.d.ts.map +0 -1
  600. package/dist/sdk/shims/apollo-client-react.d.ts +0 -3
  601. package/dist/sdk/shims/apollo-client-react.d.ts.map +0 -1
  602. package/dist/sdk/shims/apollo-client.d.ts +0 -3
  603. package/dist/sdk/shims/apollo-client.d.ts.map +0 -1
  604. package/dist/sdk/shims/host.d.ts +0 -17
  605. package/dist/sdk/shims/host.d.ts.map +0 -1
  606. package/dist/sdk/shims/next-head.d.ts +0 -3
  607. package/dist/sdk/shims/next-head.d.ts.map +0 -1
  608. package/dist/sdk/shims/next-image.d.ts +0 -3
  609. package/dist/sdk/shims/next-image.d.ts.map +0 -1
  610. package/dist/sdk/shims/next-link.d.ts +0 -3
  611. package/dist/sdk/shims/next-link.d.ts.map +0 -1
  612. package/dist/sdk/shims/next-router.d.ts +0 -3
  613. package/dist/sdk/shims/next-router.d.ts.map +0 -1
  614. package/dist/sdk/shims/react-dom-client.d.ts +0 -3
  615. package/dist/sdk/shims/react-dom-client.d.ts.map +0 -1
  616. package/dist/sdk/shims/react-dom.d.ts +0 -3
  617. package/dist/sdk/shims/react-dom.d.ts.map +0 -1
  618. package/dist/sdk/shims/react-hook-form.d.ts +0 -3
  619. package/dist/sdk/shims/react-hook-form.d.ts.map +0 -1
  620. package/dist/sdk/shims/react-intl.d.ts +0 -3
  621. package/dist/sdk/shims/react-intl.d.ts.map +0 -1
  622. package/dist/sdk/shims/react-jsx-runtime.d.ts +0 -3
  623. package/dist/sdk/shims/react-jsx-runtime.d.ts.map +0 -1
  624. package/dist/sdk/shims/react-toastify.d.ts +0 -3
  625. package/dist/sdk/shims/react-toastify.d.ts.map +0 -1
  626. package/dist/sdk/shims/react.d.ts +0 -3
  627. package/dist/sdk/shims/react.d.ts.map +0 -1
  628. package/dist/sdk/theme.d.ts +0 -26
  629. package/dist/sdk/theme.d.ts.map +0 -1
  630. package/dist/shims/admin-ui-plugins.js +0 -9
  631. package/dist/shims/apollo-client-react.js +0 -25
  632. package/dist/shims/apollo-client.js +0 -55
  633. package/dist/shims/next-head.js +0 -9
  634. package/dist/shims/next-image.js +0 -9
  635. package/dist/shims/next-link.js +0 -9
  636. package/dist/shims/next-router.js +0 -13
  637. package/dist/shims/react-dom-client.js +0 -11
  638. package/dist/shims/react-dom.js +0 -22
  639. package/dist/shims/react-hook-form.js +0 -25
  640. package/dist/shims/react-intl.js +0 -37
  641. package/dist/shims/react-jsx-runtime.js +0 -11
  642. package/dist/shims/react-toastify.js +0 -16
  643. package/dist/shims/react.js +0 -52
  644. package/dist/theme.js +0 -34
  645. package/dist/ui.js +0 -19731
  646. package/out/_next/static/F8ReqaxPvLqFJ2DaPfMdn/_buildManifest.js +0 -258
  647. package/out/_next/static/chunks/0-mytn4v5bu5h.js +0 -12
  648. package/out/_next/static/chunks/0-uh133eqcz6n.js +0 -60
  649. package/out/_next/static/chunks/0060t3kg_i0lf.js +0 -10
  650. package/out/_next/static/chunks/0186bg0b60cid.js +0 -13
  651. package/out/_next/static/chunks/018n9pot9f5uf.js +0 -90
  652. package/out/_next/static/chunks/01h4ept18s-ns.js +0 -807
  653. package/out/_next/static/chunks/02cdoh48sex9m.js +0 -1
  654. package/out/_next/static/chunks/03-z1yl608b56.js +0 -807
  655. package/out/_next/static/chunks/030bzkeke0edz.js +0 -7
  656. package/out/_next/static/chunks/037vsiy28s6dg.js +0 -41
  657. package/out/_next/static/chunks/049clkw76lm67.js +0 -16
  658. package/out/_next/static/chunks/04bb4k67x398t.js +0 -1
  659. package/out/_next/static/chunks/057evs7qr5y-t.js +0 -17
  660. package/out/_next/static/chunks/05qpw6q8uiz3l.js +0 -15
  661. package/out/_next/static/chunks/062myzj-2ehu-.js +0 -52
  662. package/out/_next/static/chunks/06l-rqlf4bp81.js +0 -108
  663. package/out/_next/static/chunks/06tejx8u1_0kg.js +0 -1
  664. package/out/_next/static/chunks/07nffhr51vke6.js +0 -59
  665. package/out/_next/static/chunks/08tyybz20igty.js +0 -15
  666. package/out/_next/static/chunks/0989pcuje2j55.js +0 -66
  667. package/out/_next/static/chunks/0_02skyivjqh6.js +0 -14
  668. package/out/_next/static/chunks/0_ngi84ak813x.js +0 -288
  669. package/out/_next/static/chunks/0bc02hascgv7z.js +0 -1
  670. package/out/_next/static/chunks/0c9ruqj2wf3n6.js +0 -905
  671. package/out/_next/static/chunks/0cblqqpscyy7w.js +0 -12
  672. package/out/_next/static/chunks/0cotrfgh1n2cx.js +0 -346
  673. package/out/_next/static/chunks/0d6_opzy2p6ik.js +0 -807
  674. package/out/_next/static/chunks/0e2e0srgvkzk9.js +0 -144
  675. package/out/_next/static/chunks/0g6hr3dmen536.js +0 -7
  676. package/out/_next/static/chunks/0gurfn3nhm859.js +0 -1
  677. package/out/_next/static/chunks/0h0r_q6xa9qr_.js +0 -1
  678. package/out/_next/static/chunks/0ht2wu-61vq9v.js +0 -807
  679. package/out/_next/static/chunks/0ibp5q64hnd88.js +0 -18
  680. package/out/_next/static/chunks/0ichlp5c67dko.js +0 -12
  681. package/out/_next/static/chunks/0iui_zfuxfa45.js +0 -12
  682. package/out/_next/static/chunks/0k6z6zl_zxqp7.js +0 -13
  683. package/out/_next/static/chunks/0kkky_8vhaeaz.js +0 -227
  684. package/out/_next/static/chunks/0lutmpv07icdg.js +0 -8
  685. package/out/_next/static/chunks/0m6jydfuy_4o3.js +0 -1
  686. package/out/_next/static/chunks/0mzh9-epgepi1.js +0 -119
  687. package/out/_next/static/chunks/0n0uzfbkfb7e5.js +0 -12
  688. package/out/_next/static/chunks/0nhczsa2mm354.js +0 -16
  689. package/out/_next/static/chunks/0pecsk3c09b19.js +0 -3
  690. package/out/_next/static/chunks/0prynyrvhm7ef.js +0 -2
  691. package/out/_next/static/chunks/0q-14a7j6afh3.js +0 -1
  692. package/out/_next/static/chunks/0r5wwinf72z4g.js +0 -1
  693. package/out/_next/static/chunks/0razrbxeai797.js +0 -807
  694. package/out/_next/static/chunks/0ryqvctymlr3k.js +0 -12
  695. package/out/_next/static/chunks/0se09klbk8drd.js +0 -68
  696. package/out/_next/static/chunks/0sh5256hzmj3b.js +0 -14
  697. package/out/_next/static/chunks/0srpqs12m-bwy.js +0 -13
  698. package/out/_next/static/chunks/0ukyxgmnqos6o.js +0 -1
  699. package/out/_next/static/chunks/0uv4d5f9o8wu1.js +0 -10
  700. package/out/_next/static/chunks/0uw9cbq0ivaz0.js +0 -1
  701. package/out/_next/static/chunks/0vls1lbu_rh78.js +0 -342
  702. package/out/_next/static/chunks/0vx_1vxljh4tn.js +0 -13
  703. package/out/_next/static/chunks/0vxe9bw7ffqy2.js +0 -15
  704. package/out/_next/static/chunks/0w0zigi7aws2m.js +0 -1
  705. package/out/_next/static/chunks/0w2zoz_fn_wha.js +0 -137
  706. package/out/_next/static/chunks/0xuevvy5i5d12.js +0 -138
  707. package/out/_next/static/chunks/0xxvsq70e4xn0.js +0 -1
  708. package/out/_next/static/chunks/0yxc1yy1eq4u3.js +0 -149
  709. package/out/_next/static/chunks/1-uz_5-063kh9.js +0 -188
  710. package/out/_next/static/chunks/10h7lznd10mmp.js +0 -384
  711. package/out/_next/static/chunks/10os1s66nimmi.js +0 -110
  712. package/out/_next/static/chunks/12_5-baf13q49.js +0 -195
  713. package/out/_next/static/chunks/12qzh85d5on4y.js +0 -44
  714. package/out/_next/static/chunks/12ukdi5bzlbeo.js +0 -596
  715. package/out/_next/static/chunks/1398hevtpl_69.js +0 -1
  716. package/out/_next/static/chunks/13qk8ukzu1snm.js +0 -288
  717. package/out/_next/static/chunks/164wr2-2gfnlb.js +0 -1
  718. package/out/_next/static/chunks/16ey81skn09dz.js +0 -1
  719. package/out/_next/static/chunks/18kae_yjyhjwf.js +0 -16
  720. package/out/_next/static/chunks/19y4w6_d_qiou.js +0 -1
  721. package/out/_next/static/chunks/1_quktgfhf40v.js +0 -31
  722. package/out/_next/static/chunks/1ae-9ft5cgojf.js +0 -1
  723. package/out/_next/static/chunks/1aegvtb5jv57q.js +0 -12
  724. package/out/_next/static/chunks/1cgxgd2cf8u3j.js +0 -157
  725. package/out/_next/static/chunks/1cp4-dvxowp4c.js +0 -24
  726. package/out/_next/static/chunks/1d951b6ed8oqn.js +0 -110
  727. package/out/_next/static/chunks/1d_puhcn8lg6q.js +0 -51
  728. package/out/_next/static/chunks/1drrou5kp4qdz.js +0 -1
  729. package/out/_next/static/chunks/1e4_28-3u5o85.js +0 -30
  730. package/out/_next/static/chunks/1f3mflnvp8_7-.js +0 -31
  731. package/out/_next/static/chunks/1f5-j4f3irx0j.js +0 -147
  732. package/out/_next/static/chunks/1fzbon-ih4_3j.js +0 -1
  733. package/out/_next/static/chunks/1g57y7cq7tjcb.js +0 -9
  734. package/out/_next/static/chunks/1g8f6jrb9cp9v.js +0 -13
  735. package/out/_next/static/chunks/1gksg35fivk0-.js +0 -224
  736. package/out/_next/static/chunks/1gt65pz91hyuz.js +0 -1
  737. package/out/_next/static/chunks/1gy9ae4fpd6jm.js +0 -17
  738. package/out/_next/static/chunks/1hq9yt63076pk.js +0 -16
  739. package/out/_next/static/chunks/1ikm9qcx--k3u.js +0 -807
  740. package/out/_next/static/chunks/1izpxynqp99t4.js +0 -193
  741. package/out/_next/static/chunks/1j2ko85jp-5wy.js +0 -807
  742. package/out/_next/static/chunks/1k-cn_5ey1u62.js +0 -15
  743. package/out/_next/static/chunks/1k0mvn915uz76.js +0 -14
  744. package/out/_next/static/chunks/1l4snbkce_jb6.js +0 -15
  745. package/out/_next/static/chunks/1lbsdlf5h6ojc.js +0 -16
  746. package/out/_next/static/chunks/1mwvnv71bl7mc.js +0 -1
  747. package/out/_next/static/chunks/1n7i2rp59o9o8.js +0 -384
  748. package/out/_next/static/chunks/1pklei2ds10d2.js +0 -66
  749. package/out/_next/static/chunks/1pxor-3_vf3du.js +0 -31
  750. package/out/_next/static/chunks/1qp68765j1aiv.js +0 -61
  751. package/out/_next/static/chunks/1r-cvj3mpr-7x.js +0 -87
  752. package/out/_next/static/chunks/1sivy8bkkmwxl.js +0 -5
  753. package/out/_next/static/chunks/1vk6h4qps69vq.js +0 -12
  754. package/out/_next/static/chunks/1vx8_u7-f7q8u.js +0 -28
  755. package/out/_next/static/chunks/1weq9keqxiqpy.js +0 -73
  756. package/out/_next/static/chunks/1xbofs3ibkjvj.js +0 -1
  757. package/out/_next/static/chunks/1ziicn0eb_yji.js +0 -16
  758. package/out/_next/static/chunks/1zza9faw4t3b_.js +0 -46
  759. package/out/_next/static/chunks/1zzpf1xbmchcj.js +0 -132
  760. package/out/_next/static/chunks/2-4ng9fxftmld.js +0 -1
  761. package/out/_next/static/chunks/201rx84kyo8ag.js +0 -1
  762. package/out/_next/static/chunks/20rtv8f0brb0n.js +0 -43
  763. package/out/_next/static/chunks/217_5onj-woma.js +0 -190
  764. package/out/_next/static/chunks/21a19t2pe0fpg.js +0 -81
  765. package/out/_next/static/chunks/21o2yfegozc0m.js +0 -16
  766. package/out/_next/static/chunks/22w2ovaffle-i.js +0 -21
  767. package/out/_next/static/chunks/234pfdqctlnyt.js +0 -100
  768. package/out/_next/static/chunks/252jebodi67kg.js +0 -1
  769. package/out/_next/static/chunks/25d8wr34sbm__.js +0 -15
  770. package/out/_next/static/chunks/275o3ly3svw4p.js +0 -1
  771. package/out/_next/static/chunks/28z1z7in8-kbg.js +0 -26
  772. package/out/_next/static/chunks/29w1exzy704_7.js +0 -8
  773. package/out/_next/static/chunks/2bb7696udjx6k.js +0 -44
  774. package/out/_next/static/chunks/2bm5aw8hqlgf2.js +0 -50
  775. package/out/_next/static/chunks/2c4vy8ofex0ti.js +0 -14
  776. package/out/_next/static/chunks/2c7gw8ronvu-c.js +0 -807
  777. package/out/_next/static/chunks/2cbr3ybo4xsrv.js +0 -43
  778. package/out/_next/static/chunks/2eh6ku1a1zbs4.js +0 -135
  779. package/out/_next/static/chunks/2fed4-6c0ghqp.js +0 -99
  780. package/out/_next/static/chunks/2g39exixp92yf.js +0 -13
  781. package/out/_next/static/chunks/2gil5igdermzh.js +0 -36
  782. package/out/_next/static/chunks/2hm0mbq0vtqmw.js +0 -5
  783. package/out/_next/static/chunks/2hvt_8j6jkd_n.js +0 -14
  784. package/out/_next/static/chunks/2i5uj5i4z-xu8.js +0 -188
  785. package/out/_next/static/chunks/2ismth22knujm.js +0 -1
  786. package/out/_next/static/chunks/2iuznbar_ttrh.js +0 -18
  787. package/out/_next/static/chunks/2j6cph79-th54.js +0 -7
  788. package/out/_next/static/chunks/2jjgby8cd1gdj.js +0 -14
  789. package/out/_next/static/chunks/2jln1kjysf99p.js +0 -1
  790. package/out/_next/static/chunks/2jtk4-i4e9lug.js +0 -1
  791. package/out/_next/static/chunks/2k020ab3luqev.js +0 -1
  792. package/out/_next/static/chunks/2kbieaechn8m8.js +0 -1
  793. package/out/_next/static/chunks/2ljoq6sr-g2da.js +0 -1
  794. package/out/_next/static/chunks/2lwxs_ly4bz1o.js +0 -12
  795. package/out/_next/static/chunks/2mr2k4sb6i021.js +0 -32
  796. package/out/_next/static/chunks/2na27-e8gs0-f.js +0 -171
  797. package/out/_next/static/chunks/2nn3_f04lnr0b.js +0 -807
  798. package/out/_next/static/chunks/2ocwu5vbc5r34.js +0 -73
  799. package/out/_next/static/chunks/2qprgjhjl8d4c.js +0 -807
  800. package/out/_next/static/chunks/2rtyphk0o1hbr.js +0 -5
  801. package/out/_next/static/chunks/2skxi0oqka3ef.js +0 -26
  802. package/out/_next/static/chunks/2sukt9l-1md8_.js +0 -25
  803. package/out/_next/static/chunks/2t3t6gm5vlg_0.js +0 -58
  804. package/out/_next/static/chunks/2vt52_i-6cdbh.js +0 -10
  805. package/out/_next/static/chunks/2w5y5xf0nriwx.js +0 -1
  806. package/out/_next/static/chunks/30g-s0ioynhjx.js +0 -224
  807. package/out/_next/static/chunks/31y7dx6ytab7h.js +0 -3
  808. package/out/_next/static/chunks/363ng2l8o_bee.js +0 -101
  809. package/out/_next/static/chunks/36jick0alh9oa.js +0 -50
  810. package/out/_next/static/chunks/36pa0vs0telmp.js +0 -1
  811. package/out/_next/static/chunks/36yth4lm03_j8.js +0 -1
  812. package/out/_next/static/chunks/37phwvegpccj0.js +0 -217
  813. package/out/_next/static/chunks/38b7m-s26ciug.js +0 -137
  814. package/out/_next/static/chunks/38ipj45w-tqay.js +0 -21
  815. package/out/_next/static/chunks/38pz7fmyf6ay0.js +0 -1
  816. package/out/_next/static/chunks/39634va9fx9s2.js +0 -13
  817. package/out/_next/static/chunks/3a0hqx7ohm5lh.js +0 -23
  818. package/out/_next/static/chunks/3a7wm2331v13r.js +0 -3
  819. package/out/_next/static/chunks/3dr_oa5hx41is.js +0 -14
  820. package/out/_next/static/chunks/3e7w6ko5psik7.js +0 -17
  821. package/out/_next/static/chunks/3ebh4y7h6y1vq.js +0 -58
  822. package/out/_next/static/chunks/3eow7lw1727kt.js +0 -13
  823. package/out/_next/static/chunks/3f1gb4_hyhtho.js +0 -20
  824. package/out/_next/static/chunks/3g4qj6_qh97q_.js +0 -12
  825. package/out/_next/static/chunks/3gfjdynb9mg8h.js +0 -23
  826. package/out/_next/static/chunks/3gx4smk7pb27x.js +0 -119
  827. package/out/_next/static/chunks/3jcf4ei6zgnca.js +0 -17
  828. package/out/_next/static/chunks/3kisw9hre44e5.js +0 -807
  829. package/out/_next/static/chunks/3mnt471ayfsvh.js +0 -22
  830. package/out/_next/static/chunks/3ondw3-zthjz5.js +0 -15
  831. package/out/_next/static/chunks/3opuxnw_w3yb5.js +0 -101
  832. package/out/_next/static/chunks/3oxv1fo564rrf.js +0 -142
  833. package/out/_next/static/chunks/3ra_41-fw410n.js +0 -14
  834. package/out/_next/static/chunks/3s22ovhmk-4h7.js +0 -1
  835. package/out/_next/static/chunks/3sktz8258so64.js +0 -2
  836. package/out/_next/static/chunks/3tq-bb0j1_lpu.js +0 -14
  837. package/out/_next/static/chunks/3v1dxn4rp-o3v.js +0 -315
  838. package/out/_next/static/chunks/3w_wwl_hd91od.js +0 -1
  839. package/out/_next/static/chunks/3ww_p-agyd9u-.js +0 -14
  840. package/out/_next/static/chunks/3wzzh45yillzb.js +0 -1
  841. package/out/_next/static/chunks/3xfj8_2nd5d_1.js +0 -1
  842. package/out/_next/static/chunks/3xhmfg-981n_5.js +0 -61
  843. package/out/_next/static/chunks/3yz34q3ulli7q.js +0 -12
  844. package/out/_next/static/chunks/3z_c5kpm-e1ty.js +0 -15
  845. package/out/_next/static/chunks/3zs002htik_8l.js +0 -21
  846. package/out/_next/static/chunks/4079hjuumfmm2.js +0 -31
  847. package/out/_next/static/chunks/40922jbr_e5ug.js +0 -51
  848. package/out/_next/static/chunks/40zy6mxa-be0m.js +0 -1
  849. package/out/_next/static/chunks/41fbmiggueudh.js +0 -13
  850. package/out/_next/static/chunks/43e0fp97w800k.js +0 -13
  851. package/out/_next/static/chunks/43gv4x1sfyb5l.js +0 -9
  852. package/out/_next/static/chunks/44nj9c766dqvc.js +0 -807
  853. package/out/_next/static/chunks/44r51e87s4z_d.js +0 -8
  854. package/out/_next/static/chunks/458tg2eg5h8j5.js +0 -324
  855. package/out/_next/static/chunks/45cd4ypk94sw2.js +0 -807
  856. package/out/_next/static/chunks/turbopack-01866gjdddrxa.js +0 -1
  857. package/out/_next/static/chunks/turbopack-08ttg7vxsdnsj.js +0 -1
  858. package/out/_next/static/chunks/turbopack-0a3j0ezn8okfg.js +0 -1
  859. package/out/_next/static/chunks/turbopack-0anbjm4c1j4u4.js +0 -1
  860. package/out/_next/static/chunks/turbopack-0ga3wfg-oyyst.js +0 -1
  861. package/out/_next/static/chunks/turbopack-0m3lvbvrn923g.js +0 -1
  862. package/out/_next/static/chunks/turbopack-0pmjdjcdx7cqp.js +0 -1
  863. package/out/_next/static/chunks/turbopack-0ptvhnhsw0_c7.js +0 -1
  864. package/out/_next/static/chunks/turbopack-0s4b5r_1d8yqv.js +0 -1
  865. package/out/_next/static/chunks/turbopack-0sihqflu4qpvw.js +0 -1
  866. package/out/_next/static/chunks/turbopack-0tc31uax4buqq.js +0 -1
  867. package/out/_next/static/chunks/turbopack-0w2rzh4i3j2og.js +0 -1
  868. package/out/_next/static/chunks/turbopack-10ldzl5n31zl-.js +0 -1
  869. package/out/_next/static/chunks/turbopack-19e_bi5k2rqyy.js +0 -1
  870. package/out/_next/static/chunks/turbopack-19i6-4a5o4fil.js +0 -1
  871. package/out/_next/static/chunks/turbopack-19vr9o5829d-f.js +0 -1
  872. package/out/_next/static/chunks/turbopack-19yw5qwon7l57.js +0 -1
  873. package/out/_next/static/chunks/turbopack-1cx5i7_gdoz5k.js +0 -1
  874. package/out/_next/static/chunks/turbopack-1d-c7awe26kf5.js +0 -1
  875. package/out/_next/static/chunks/turbopack-1l1aen9tojmq4.js +0 -1
  876. package/out/_next/static/chunks/turbopack-1o1rar8ouv6h9.js +0 -1
  877. package/out/_next/static/chunks/turbopack-1od_4a7nj02l4.js +0 -1
  878. package/out/_next/static/chunks/turbopack-1r_0o22d_puxo.js +0 -1
  879. package/out/_next/static/chunks/turbopack-1rmdtpi005n_6.js +0 -1
  880. package/out/_next/static/chunks/turbopack-1wx5785osz26z.js +0 -1
  881. package/out/_next/static/chunks/turbopack-21vayl2_q4r5u.js +0 -1
  882. package/out/_next/static/chunks/turbopack-23nr2ioaqw90j.js +0 -1
  883. package/out/_next/static/chunks/turbopack-23u97wxsuqiqb.js +0 -1
  884. package/out/_next/static/chunks/turbopack-24ylsu2au7hg1.js +0 -1
  885. package/out/_next/static/chunks/turbopack-28_dvdmt6lvhn.js +0 -1
  886. package/out/_next/static/chunks/turbopack-2bo7hmw4eirxu.js +0 -1
  887. package/out/_next/static/chunks/turbopack-2dk8ur1fvwxzj.js +0 -1
  888. package/out/_next/static/chunks/turbopack-2e_wy0ffi64id.js +0 -1
  889. package/out/_next/static/chunks/turbopack-2fuk9oepxr5n0.js +0 -1
  890. package/out/_next/static/chunks/turbopack-2g2viapamsvwe.js +0 -1
  891. package/out/_next/static/chunks/turbopack-2ga09m38zacev.js +0 -1
  892. package/out/_next/static/chunks/turbopack-2pxtve7lryqre.js +0 -1
  893. package/out/_next/static/chunks/turbopack-2qbfd_-7v5dbo.js +0 -1
  894. package/out/_next/static/chunks/turbopack-2rz_y4ejrvafp.js +0 -1
  895. package/out/_next/static/chunks/turbopack-2u0ls0liblo_9.js +0 -1
  896. package/out/_next/static/chunks/turbopack-2u_328z53ed9p.js +0 -1
  897. package/out/_next/static/chunks/turbopack-2xfom16ggx1i3.js +0 -1
  898. package/out/_next/static/chunks/turbopack-2ycfwit0p-fkf.js +0 -1
  899. package/out/_next/static/chunks/turbopack-2yekm5ij2g-aw.js +0 -1
  900. package/out/_next/static/chunks/turbopack-3-w-v8og1lok2.js +0 -1
  901. package/out/_next/static/chunks/turbopack-30qkgccwlkv7n.js +0 -1
  902. package/out/_next/static/chunks/turbopack-36bl9-rerhcfg.js +0 -1
  903. package/out/_next/static/chunks/turbopack-37a6lyjyz7fts.js +0 -1
  904. package/out/_next/static/chunks/turbopack-37lb9ujef-ujm.js +0 -1
  905. package/out/_next/static/chunks/turbopack-39nctu3yv9iv4.js +0 -1
  906. package/out/_next/static/chunks/turbopack-3_mmmbs60vr14.js +0 -1
  907. package/out/_next/static/chunks/turbopack-3_o3qz69ih0uu.js +0 -1
  908. package/out/_next/static/chunks/turbopack-3cv39r7v3s2gr.js +0 -1
  909. package/out/_next/static/chunks/turbopack-3cv3hgsoo_z1k.js +0 -1
  910. package/out/_next/static/chunks/turbopack-3pgmc-lv74ewz.js +0 -1
  911. package/out/_next/static/chunks/turbopack-3uj40sz7i7jg0.js +0 -1
  912. package/out/_next/static/chunks/turbopack-3v4nxmdavly34.js +0 -1
  913. package/out/_next/static/chunks/turbopack-3vfm6fp92up6y.js +0 -1
  914. package/out/_next/static/chunks/turbopack-3vyi51cuxeowy.js +0 -1
  915. package/out/_next/static/chunks/turbopack-3w26eu86co02z.js +0 -1
  916. package/out/_next/static/chunks/turbopack-3zc0h1216mtm2.js +0 -1
  917. package/out/_next/static/chunks/turbopack-4166pmk5_y_4x.js +0 -1
  918. package/out/_next/static/chunks/turbopack-431y1sh-m_0mp.js +0 -1
  919. package/out/manifest.json +0 -48
  920. /package/out/_next/static/{F8ReqaxPvLqFJ2DaPfMdn → jOx5PlckLwWIJ5yrvePdU}/_clientMiddlewareManifest.js +0 -0
  921. /package/out/_next/static/{F8ReqaxPvLqFJ2DaPfMdn → jOx5PlckLwWIJ5yrvePdU}/_ssgManifest.js +0 -0
@@ -0,0 +1,63 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[74954,e=>{var t=e.i(91398),s=e.i(91788);e.s(["f",0,({value:e,duration:l=300})=>{let[a,r]=(0,s.useState)(0);return(0,s.useEffect)(()=>{let t,s;if(0===e)return void r(0);let a=i=>{t||(t=i);let n=Math.min((i-t)/l,1);r(Math.round((1-Math.pow(1-n,3))*e)),n<1&&(s=requestAnimationFrame(a))};return s=requestAnimationFrame(a),()=>{s&&cancelAnimationFrame(s)}},[e,l]),(0,t.jsx)("span",{children:a})}])},42427,e=>{var t=e.i(91398),s=e.i(72043);e.s(["f",0,({id:e,label:l,value:a,onChange:r,placeholder:i,min:n,max:d,className:o,containerClassName:u})=>(0,t.jsxs)("div",{className:(0,s.default)("flex flex-col gap-1",u),children:[l&&(0,t.jsx)("label",{htmlFor:e,className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:l}),(0,t.jsx)("input",{type:"date",id:e,value:a||"",onChange:e=>{r(e.target.value||null)},placeholder:i,min:n,max:d,className:(0,s.default)("w-full rounded-md border-1 border-slate-300 dark:border-slate-700 bg-white dark:bg-slate-900 px-3 py-2 text-sm shadow-xs text-slate-900 dark:text-slate-200 focus:outline-hidden focus:ring-2 focus:ring-slate-800 dark:[color-scheme:dark]",o)})]})])},78704,e=>{var t=e.i(91398),s=e.i(91788),l=e.i(12197);e.s(["f",0,({loading:e,hasMore:a,onLoadMore:r,children:i,threshold:n=200})=>{let d=(0,s.useRef)(null),o=(0,s.useCallback)(t=>{let[s]=t;s.isIntersecting&&a&&!e&&r()},[a,e,r]);return(0,s.useEffect)(()=>{let e=d.current;if(!e)return;let t=new IntersectionObserver(o,{rootMargin:`${n}px`});return t.observe(e),()=>{t.disconnect()}},[o,n]),(0,t.jsxs)(t.Fragment,{children:[i,(0,t.jsx)("div",{ref:d,className:"h-4"}),e&&(0,t.jsx)("div",{className:"flex justify-center py-4",children:(0,t.jsx)(l.f,{})})]})}])},94724,e=>{var t=e.i(91398),s=e.i(69322);e.s(["f",0,({children:e=null,totalRecords:l=null})=>{let{formatMessage:a}=(0,s.S)();return(0,t.jsxs)("div",{className:"mt-5",children:[null!==l?(0,t.jsx)("div",{className:"text-md text-slate-950 dark:text-slate-100 mb-3",children:a({id:"total_records",defaultMessage:"{total} records found"},{total:l??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})})]})}])},75229,88737,e=>{var t=e.i(91398);e.s(["f",0,({name:e="",showName:s=!0,className:l=""}={})=>(0,t.jsx)("div",{className:`flex-col ${l}`,children:e&&s&&(0,t.jsx)("p",{className:"text-sm font-medium text-slate-700 group-hover:text-slate-900",children:e})})],75229);var s=e.i(91788);let l=s.forwardRef(function({title:e,titleId:t,...l},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},l),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 0 0-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 0 0-16.536-1.84M7.5 14.25 5.106 5.272M6 20.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm12.75 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"}))});e.s(["f",0,l],88737)},16371,e=>{var t=e.i(91788),s=e.i(30943);e.s(["f",0,({children:e,container:l=null,className:a=""})=>{let r=(0,t.useRef)(null),[i,n]=(0,t.useState)(!1);return((0,t.useEffect)(()=>{let e=document.createElement("div");a&&(e.className=a),r.current=e;let t=l||document.body;return t.appendChild(e),n(!0),()=>{r.current&&t.contains(r.current)&&t.removeChild(r.current)}},[l,a]),i&&r.current)?(0,s.createPortal)(e,r.current):null}])},20495,e=>{var t=e.i(91398),s=e.i(69322),l=e.i(2765);e.s(["f",0,({inputText:e=null,onInputChange:a,defaultValue:r})=>{let{formatMessage:i}=(0,s.S)(),n=(0,l.f)(200)(a);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:r,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=>{var t=e.i(91398),s=e.i(69322),l=e.i(3828),a=e.i(20495),r=e.i(68835),i=e.i(65153),n=e.i(83147),d=e.i(73319);e.s(["f",0,({children:e,onSearchChange:o,defaultSearchValue:u,showTagFilter:c=!1,availableTagOptions:f=[]})=>{let{formatMessage:m}=(0,s.S)(),{query:x,push:h}=(0,l.useRouter)(),g=e=>{if((0,d.T)(e))h({query:(0,n._)(x,e?.join(","),"tags")});else{let{tags:e,...t}=x;h({query:(0,n._)(t)})}};return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"my-3 flex flex-col gap-3",children:(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start gap-3",children:[(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(a.f,{onInputChange:o,defaultValue:u})}),c&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 flex-1 sm:border-l sm:border-slate-300 sm:dark:border-slate-700 sm:pl-3",children:[(0,t.jsx)("div",{className:"max-w-xs",children:(0,t.jsx)(r.f,{buttonText:m({id:"apply",defaultMessage:"Apply"}),placeholder:m({id:"enter_tag",defaultMessage:"Enter tag..."}),tagList:x?.tags?.split(","),onChange:g,selectOptions:f,showTagsInline:!1})}),x?.tags?.split(",").filter(Boolean).length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:x?.tags?.split(",").filter(Boolean).map(e=>(0,t.jsx)(i.f,{text:e,color:"slate",onClick:()=>{let t=x?.tags?.split(",").filter(t=>t!==e);g(t.length>0?t:null)}},e))})]})]})}),e]})}])},3095,e=>{var t=e.i(91398),s=e.i(91788),l=e.i(69322),a=e.i(86712),r=e.i(76842),i=e.i(24557),n=e.i(16371);e.s(["f",0,({onEdit:e,onDelete:d,editLabel:o,deleteLabel:u,showEdit:c=!0,showDelete:f=!0})=>{let{formatMessage:m}=(0,l.S)(),[x,h]=(0,s.useState)(!1),[g,p]=(0,s.useState)({top:0,left:0}),j=(0,s.useRef)(null),v=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&h(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let b=(e,t)=>{e.stopPropagation(),e.preventDefault(),t&&t(),h(!1)};return 0===[c&&e,f&&d].filter(Boolean).length?null:(0,t.jsxs)("div",{className:"flex justify-end w-full",children:[(0,t.jsx)("button",{ref:v,type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),x||(()=>{if(!v.current)return;let e=v.current.getBoundingClientRect(),t=e.bottom+4,s=e.right-192;s<8&&(s=8),t+80>window.innerHeight-8&&(t=e.top-80-4),p({top:t,left:s})})(),h(!x)},className:"flex items-center justify-center w-8 h-8 rounded-md hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors","aria-label":m({id:"table_actions_menu",defaultMessage:"Actions menu"}),children:(0,t.jsx)(a.f,{className:"w-5 h-5 text-slate-500 dark:text-slate-400"})}),x&&(0,t.jsx)(n.f,{children:(0,t.jsx)("div",{ref:j,className:"fixed w-48 bg-white dark:bg-slate-800 rounded-md shadow-xl border border-slate-200 dark:border-slate-700 z-[9999]",style:{top:g.top,left:g.left},children:(0,t.jsxs)("div",{className:"py-1",children:[c&&e&&(0,t.jsxs)("button",{type:"button",onClick:t=>b(t,e),className:"flex items-center w-full px-4 py-2 text-sm text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors",children:[(0,t.jsx)(r.f,{className:"mr-3 h-5 w-5"}),o||m({id:"edit",defaultMessage:"Edit"})]}),f&&d&&(0,t.jsxs)("button",{type:"button",onClick:e=>b(e,d),className:"flex items-center w-full px-4 py-2 text-sm text-rose-500 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/20 transition-colors",children:[(0,t.jsx)(i.f,{className:"mr-3 h-5 w-5"}),u||m({id:"delete",defaultMessage:"Delete"})]})]})})})]})}])},60513,75284,e=>{var t=e.i(91788),s=e.i(28401),l=e.i(69322),a=e.i(30086),r=e.i(66773),i=e.i(98926),n=e.i(63104),d=e.i(3828);e.s(["f",0,()=>{let[e,o]=(0,t.useState)(!1),u=(0,i.f)(),c=(0,d.useRouter)(),{addWork:f}=(0,a.f)(),{formatMessage:m}=(0,l.S)(),x=(0,t.useCallback)(async e=>{let{data:t}=await u.query({query:(0,n.k)(),variables:{workId:e},fetchPolicy:"network-only"});return t?.work??null},[u]);return{isExporting:e,exportCSV:(0,t.useCallback)(async({type:e,pollInterval:t=2e3,...l})=>{o(!0);try{let s=await f({type:r.i.BulkExport,input:{type:e,...l}}),a=s?.data?.addWork?._id;if(!a)throw Error("Failed to create export work");await new Promise((e,s)=>{let l=setInterval(async()=>{try{let t=await x(a);if(!t)throw Error("Work not found");(t.status===r.h.Success||t.status===r.h.Failed)&&(clearInterval(l),t.status===r.h.Success&&t.success?(c.push(`/exports?workId=${t._id}`),e(t)):s(t.error||Error("Export failed")))}catch(e){clearInterval(l),s(e)}},t)})}catch(e){return console.error("Export failed:",e),s.c.error(m({id:"export_failed",defaultMessage:"Export failed. Please try again."})),null}finally{o(!1)}},[f,x,c,m])}}],60513);var o=e.i(91398),u=e.i(69211),c=e.i(64127),f=e.i(98949),m=e.i(99160);e.s(["f",0,function({options:e,onSubmit:s,loading:a=!1,successMessage:r=""}){let{formatMessage:i}=(0,l.S)(),n=(0,t.useMemo)(()=>e.reduce((e,t)=>(e[t.key]=t.defaultChecked??!0,e),{}),[e]),d=async e=>(await s(e),{success:!0}),x=(0,f.f)({successMessage:r||i({id:"export_completed",defaultMessage:"Data exported successfully"}),submit:d,enableReinitialize:!0,initialValues:n});return(0,o.jsx)(u.f,{form:x,children:x.formik.isSubmitting?(0,o.jsxs)("div",{className:"flex items-center gap-3 p-4 mb-4 rounded-lg animate-pulse",children:[(0,o.jsx)("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),(0,o.jsx)("span",{className:"text-sm font-medium text-blue-700 dark:text-blue-300",children:i({id:"exporting_message",defaultMessage:"Generating your export files. This may take a moment..."})})]}):(0,o.jsxs)("fieldset",{disabled:a,style:{border:"none",padding:0},children:[(0,o.jsxs)("h3",{children:[" ",i({id:"export_options",defaultMessage:"Export options"})]}),e.map(e=>(0,o.jsx)(c.f,{name:e.key,label:e.label,hideLabel:!0,className:"mr-2 h-4 w-4 justify-between rounded-sm border-slate-300 dark:border-slate-600 bg-white text-slate-950 focus:ring-slate-800 lg:items-center",type:"checkbox"},e.key)),(0,o.jsx)(m.f,{label:i({id:"submit",defaultMessage:"Submit"}),disabled:a})]})})}],75284)},64127,e=>{var t=e.i(91398),s=e.i(72043),l=e.i(60741);e.s(["f",0,e=>{let{disabled:a,labelClassName:r,containerClassName:i,inputClassName:n,...d}=e,o=(0,l.f)({...e,type:"checkbox"});return(0,t.jsxs)("div",{className:(0,s.default)("",{"text-rose-600":!!o.error,checkbox:!0,disabled:o.disabled,required:o.required},i),children:[(0,t.jsx)("input",{checked:!!o.value,disabled:a,id:o.name,name:o.name,onChange:o.onChange,onBlur:o.onBlur,type:"checkbox",className:(0,s.default)("h-4 w-4 rounded-xs border-slate-300 dark:border-slate-600 bg-white dark:!bg-slate-800 text-indigo-600 dark:text-slate-200 focus:ring-slate-800",n,e.className),...d}),(0,t.jsx)("label",{htmlFor:o.name,className:(0,s.default)("text-sm text-slate-900 dark:text-slate-200",r,{"text-danger":!!o.error}),children:o.label})]})}])},30086,e=>{var t=e.i(59080),s=e.i(76204);let l=t.f`
2
+ mutation AddWork(
3
+ $type: WorkType!
4
+ $priority: Int! = 0
5
+ $input: JSON
6
+ $originalWorkId: ID
7
+ $scheduled: Timestamp
8
+ $retries: Int! = 20
9
+ ) {
10
+ addWork(
11
+ type: $type
12
+ priority: $priority
13
+ input: $input
14
+ originalWorkId: $originalWorkId
15
+ scheduled: $scheduled
16
+ retries: $retries
17
+ ) {
18
+ _id
19
+ }
20
+ }
21
+ `;e.s(["f",0,()=>{let[e]=(0,s.f)(l);return{addWork:async({type:t,priority:s,input:l,originalWorkId:a,scheduled:r=null,retries:i})=>e({variables:{type:t,priority:s,input:l,originalWorkId:a,scheduled:r,retries:i},refetchQueries:["WorkQueue"]})}}])},63104,e=>{var t=e.i(59080),s=e.i(32171),l=e.i(70693),a=e.i(94672);let r=(e="")=>t.f`
22
+ query Work($workId: ID!) {
23
+ work(workId: $workId) {
24
+ ...WorkFragment
25
+ ${e}
26
+ error
27
+ priority
28
+ worker
29
+ timeout
30
+ }
31
+ }
32
+ ${a.f}
33
+ `;e.s(["k",0,r,"U",0,({workId:e=null,...t})=>{let{customProperties:a}=(0,l.f)(),{data:i,loading:n,error:d,previousData:o}=(0,s.f)(r(a?.Work),{skip:!e,variables:{workId:e},...t});return{work:i?.work||o?.work,loading:n,error:d}}])},51774,e=>{var t=e.i(91398),s=e.i(69322),l=e.i(3828),a=e.i(58971),r=e.i(8918),i=e.i(41158),n=e.i(66773),d=e.i(65153),o=e.i(75229),u=e.i(3095),c=e.i(93380),f=e.i(51870),m=e.i(6607),x=e.i(15971),h=e.i(23745),g=e.i(12197),p=e.i(91788);let j=p.forwardRef(function({title:e,titleId:t,...s},l){return p.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:l,"aria-labelledby":t},s),e?p.createElement("title",{id:t},e):null,p.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 10.5V6a3.75 3.75 0 1 0-7.5 0v4.5m11.356-1.993 1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 0 1-1.12-1.243l1.264-12A1.125 1.125 0 0 1 5.513 7.5h12.974c.576 0 1.059.435 1.119 1.007ZM8.625 10.5a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm7.5 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))});var v=e.i(88737),b=e.i(28401),w=e.i(72419);let k=({lastLogin:e})=>{let{locale:l}=(0,s.S)(),a=new Date(e?.timestamp);if(!a?.getTime())return null;let r=a.toLocaleDateString(l,{year:"numeric",month:"numeric",day:"numeric"}),i=a.toLocaleTimeString(l,{hour:"2-digit",minute:"2-digit"});return(0,t.jsxs)("div",{className:"text-sm text-slate-500",children:[r,", ",i]})},y=({user:e})=>{let{formatMessage:p,locale:y}=(0,s.S)(),N=(0,l.useRouter)(),{currentUser:M,loading:C}=(0,f.f)(),{hasRole:_}=(0,a.f)(),{setModal:S}=(0,m.f)(),{deleteUser:$}=(0,h.f)(),E=!!e?.primaryEmail?.verified;if(C&&!M)return(0,t.jsx)(g.f,{});let I=async()=>{await S((0,t.jsx)(x.f,{onCancelClick:async()=>S(""),message:p({id:"delete_user_warning",defaultMessage:"This action will permanently delete this user and all associated data. Are you sure you want to continue?"}),onOkClick:async()=>{S("");try{await $(e._id)}catch(e){b.c.error((0,w.f)(e,p))}},okText:p({id:"delete_user",defaultMessage:"Delete User"})}))};return(0,t.jsxs)(r.f.Row,{className:"group",children:[(0,t.jsx)(r.f.Cell,{children:(0,t.jsxs)(i.default,{href:`/users?userId=${e._id}`,className:"flex items-center text-sm text-slate-900 dark:text-slate-300 group-hover:text-slate-700 dark:group-hover:text-slate-100",children:[(0,t.jsx)(o.f,{showName:!1,name:e.username,className:"mr-3"}),(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"font-semibold",children:(0,c.f)(e)}),e.isGuest&&(0,t.jsx)(d.f,{text:p({id:"guest",defaultMessage:"Guest"}),color:"blue"})]})})]})}),(0,t.jsx)(r.f.Cell,{children:(0,t.jsx)(i.default,{href:`/users?userId=${e._id}`,className:"block",children:(0,t.jsx)("div",{className:"text-sm text-slate-900 dark:text-slate-300",children:e?.primaryEmail?.address})})}),(0,t.jsx)(r.f.Cell,{children:(0,t.jsx)(i.default,{href:`/users?userId=${e._id}`,className:"block",children:(0,t.jsx)(d.f,{text:E?p({id:"verified",defaultMessage:"Verified"}):p({id:"unverified",defaultMessage:"Unverified"}),color:E?"green":"yellow",square:!0})})}),(0,t.jsx)(r.f.Cell,{children:(0,t.jsx)(i.default,{href:`/users?userId=${e._id}`,className:"block",children:(0,t.jsx)(k,{lastLogin:e?.lastLogin})})}),(0,t.jsx)(r.f.Cell,{children:(0,t.jsx)(i.default,{href:`/users?userId=${e._id}`,className:"block",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:e.tags?.map(e=>(0,t.jsx)(d.f,{text:e,color:"slate"},e))})})}),(0,t.jsx)(r.f.Cell,{children:(0,t.jsx)(i.default,{href:`/users?userId=${e._id}&tab=orders&includeCarts=true`,className:"block",children:(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(v.f,{className:"w-4 h-4 text-slate-500"}),(0,t.jsx)("span",{className:"text-sm",children:e?.cart?.items?.length||0})]})})}),(0,t.jsx)(r.f.Cell,{children:(0,t.jsx)(i.default,{href:`/users?userId=${e._id}&tab=orders`,className:"block",children:(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(j,{className:"w-4 h-4 text-slate-500"}),(0,t.jsx)("span",{className:"text-sm",children:e?.orders?.length||0})]})})}),(0,t.jsx)(r.f.Cell,{className:"text-right",children:(0,t.jsx)(u.f,{onEdit:()=>{N.push(`/users?userId=${e._id}`)},onDelete:I,showEdit:!0,showDelete:_(n.C.RemoveUser)})})]})},N=({users:e})=>{let{formatMessage:l}=(0,s.S)(),{hasRole:i}=(0,a.f)();return(0,t.jsxs)(r.f,{className:"min-w-full",children:[e?.map(e=>(0,t.jsxs)(r.f.Row,{header:!0,children:[(0,t.jsx)(r.f.Cell,{children:l({id:"name",defaultMessage:"Name"})}),(0,t.jsx)(r.f.Cell,{children:l({id:"email",defaultMessage:"Email"})}),(0,t.jsx)(r.f.Cell,{children:l({id:"status",defaultMessage:"Status"})}),(0,t.jsx)(r.f.Cell,{children:l({id:"last_login",defaultMessage:"Last Login:"})}),(0,t.jsx)(r.f.Cell,{children:l({id:"tags",defaultMessage:"Tags"})}),(0,t.jsx)(r.f.Cell,{children:l({id:"cart",defaultMessage:"Cart"})}),(0,t.jsx)(r.f.Cell,{children:l({id:"orders",defaultMessage:"Orders"})}),(0,t.jsx)(r.f.Cell,{className:"text-right",children:" "})]},e._id)),e?.map(e=>(0,t.jsx)(y,{user:e},`${e?._id}-body`))]})};var M=e.i(59080),C=e.i(32171),_=e.i(73298);let S=M.f`
34
+ query Users(
35
+ $limit: Int
36
+ $offset: Int
37
+ $includeGuests: Boolean
38
+ $queryString: String
39
+ $lastLogin: DateFilterInput
40
+ $emailVerified: Boolean
41
+ $tags: [LowerCaseString!]
42
+ ) {
43
+ users(
44
+ limit: $limit
45
+ offset: $offset
46
+ includeGuests: $includeGuests
47
+ queryString: $queryString
48
+ lastLogin: $lastLogin
49
+ emailVerified: $emailVerified
50
+ tags: $tags
51
+ ) {
52
+ ...UserFragment
53
+ }
54
+ usersCount(
55
+ includeGuests: $includeGuests
56
+ queryString: $queryString
57
+ lastLogin: $lastLogin
58
+ emailVerified: $emailVerified
59
+ tags: $tags
60
+ )
61
+ }
62
+ ${_.f}
63
+ `;var $=e.i(61494),E=e.i(78704),I=e.i(17644),L=e.i(64591),q=e.i(60193),R=e.i(94724),T=e.i(84818),B=e.i(42427);let V=()=>{let{parseDate:e}=(0,T.f)(),a=(0,l.useRouter)(),{formatMessage:r}=(0,s.S)(),i=(e,t)=>{if(t)a.push({query:{...a.query,[e]:t}});else if(!t&&a.query?.[e]){let t=a.query;delete t[e],a.push({query:{...t}})}};return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"mt-5 flex flex-wrap gap-10",children:[(0,t.jsxs)("div",{className:"flex-1 min-w-[200px]",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-slate-700 dark:text-slate-500 mb-1",children:r({id:"email_verified_label",defaultMessage:"E-Mail verified"})}),(0,t.jsxs)("select",{className:"w-full p-2 border-1 border-slate-300 rounded-lg dark:bg-slate-700 dark:border-slate-500 focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:outline-hidden",defaultValue:a.query?.emailVerified||"",onChange:e=>i("emailVerified",e.target.value),children:[(0,t.jsx)("option",{value:"",children:r({id:"email_verified_default",defaultMessage:"All"})}),(0,t.jsx)("option",{value:(!0).toString(),children:r({id:"email_verified_true",defaultMessage:"verified"})}),(0,t.jsx)("option",{value:(!1).toString(),children:r({id:"email_verified_false",defaultMessage:"unverified"})})]})]}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-slate-700 dark:text-slate-500 mb-1",children:r({id:"login_date_range",defaultMessage:"Login Date Range"})}),(0,t.jsxs)("div",{className:"flex items-center flex-wrap md:flex-nowrap space-y-1 md:space-x-3",children:[(0,t.jsx)("label",{htmlFor:"lastLoginStart",className:"text-sm",children:r({id:"from",defaultMessage:"From"})}),(0,t.jsx)(B.f,{id:"lastLoginStart",onChange:e=>i("start",e?new Date(e).toISOString():null),placeholder:r({id:"start_date",defaultMessage:"Start date"}),value:a.query.start?e(a.query.start):null,containerClassName:"w-full focus:outline-hidden focus:ring-slate-800"}),(0,t.jsx)("label",{htmlFor:"lastLoginEnd",className:"text-sm",children:r({id:"to",defaultMessage:"To"})}),(0,t.jsx)(B.f,{id:"lastLoginEnd",onChange:e=>i("end",e?new Date(e).toISOString():null),placeholder:r({id:"end_date",defaultMessage:"End Date"}),value:a.query.end?e(a.query.end):null,containerClassName:"w-full focus:outline-hidden focus:ring-slate-800"})]})]})]})})};var A=e.i(26178),F=e.i(51128),D=e.i(2385),U=e.i(74954),W=e.i(57561);e.s(["default",0,()=>{let{formatMessage:e}=(0,s.S)(),{query:r,push:i,isReady:d}=(0,l.useRouter)(),{shopInfo:o}=(0,W.f)(),{queryString:u,tags:c,userId:f,...m}=r,{hasRole:x}=(0,a.f)(),h=parseInt(r?.limit,10)||q.h,p=parseInt(r?.skip,10)||0,j=r?.includeGuests==="true",v=null;r?.emailVerified==="true"?v=!0:r?.emailVerified==="false"&&(v=!1);let{users:b,usersCount:w,loading:k,loadMore:y,hasMore:M}=(({limit:e=20,offset:t=0,includeGuests:s=!1,queryString:l=null,lastLogin:a=null,emailVerified:r=null,tags:i=null})=>{let{data:n,loading:d,error:o,fetchMore:u}=(0,C.f)(S,{variables:{limit:e,offset:t,includeGuests:s,queryString:l,lastLogin:a,emailVerified:r,tags:i}}),c=n?.users||[],f=n?.usersCount,m=c?.length<f;return{users:c,usersCount:f,hasMore:m,loading:d,error:o,loadMore:()=>{u({variables:{offset:c?.length}})}}})({limit:h,includeGuests:j,queryString:u,offset:p,lastLogin:(r?.start||r?.end)&&{start:r?.start,end:r?.end},emailVerified:v,tags:c});if(!d)return null;if(f)return(0,t.jsx)(D.default,{userId:f});let _=1===w?e({id:"user_header",defaultMessage:"1 User"}):e({id:"user_count_header",defaultMessage:"{count} Users"},{count:(0,t.jsx)(U.f,{value:w})});return(0,t.jsxs)("div",{className:"mb-10",children:[(0,t.jsx)($.f,{}),(0,t.jsx)(I.f,{title:e({id:"user_page_title",defaultMessage:"{count, plural, one {# User} other {# Users}}"},{count:w}),headerText:_,addPath:x(n.C.EnrollUser)?"/users/new":void 0,addButtonText:e({id:"add_user",defaultMessage:"Add User"})}),(0,t.jsx)(V,{}),(0,t.jsx)(R.f,{children:(0,t.jsx)(L.f,{toggleKey:"includeGuests",toggleText:e({id:"show_guests",defaultMessage:"Show Guests"})})}),(0,t.jsx)(F.f,{onSearchChange:e=>{let{skip:t,...s}=m||{skip:null};e?i({query:{...s,queryString:e}}):i({query:{...m}})},defaultSearchValue:u,showTagFilter:!0,availableTagOptions:(o?.adminUiConfig?.userTags||[]).map(e=>({label:e,value:e})),children:(0,t.jsxs)(E.f,{loading:k,hasMore:M,onLoadMore:y,children:[k&&b?.length===0?(0,t.jsx)(g.f,{}):(0,t.jsx)(N,{users:b}),!k&&!b?.length&&(0,t.jsx)(A.f,{message:e({id:"user",defaultMessage:"User"})})]})})]})}],51774)},76842,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...l},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},l),e?t.createElement("title",{id:s},e):null,t.createElement("path",{d:"m2.695 14.762-1.262 3.155a.5.5 0 0 0 .65.65l3.155-1.262a4 4 0 0 0 1.343-.886L17.5 5.501a2.121 2.121 0 0 0-3-3L3.58 13.419a4 4 0 0 0-.885 1.343Z"}))});e.s(["f",0,s],76842)},24557,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...l},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},l),e?t.createElement("title",{id:s},e):null,t.createElement("path",{fillRule:"evenodd",d:"M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z",clipRule:"evenodd"}))});e.s(["f",0,s],24557)},86712,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...l},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},l),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"}))});e.s(["f",0,s],86712)}],21449,(e,t,s)=>{let l="/users";(window.__NEXT_P=window.__NEXT_P||[]).push([l,()=>e.r(51774)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([l])})}]);
@@ -0,0 +1,41 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[60513,75284,e=>{var t=e.i(91788),r=e.i(28401),s=e.i(69322),a=e.i(30086),i=e.i(66773),l=e.i(98926),d=e.i(63104),o=e.i(3828);e.s(["f",0,()=>{let[e,n]=(0,t.useState)(!1),u=(0,l.f)(),c=(0,o.useRouter)(),{addWork:f}=(0,a.f)(),{formatMessage:k}=(0,s.S)(),x=(0,t.useCallback)(async e=>{let{data:t}=await u.query({query:(0,d.k)(),variables:{workId:e},fetchPolicy:"network-only"});return t?.work??null},[u]);return{isExporting:e,exportCSV:(0,t.useCallback)(async({type:e,pollInterval:t=2e3,...s})=>{n(!0);try{let r=await f({type:i.i.BulkExport,input:{type:e,...s}}),a=r?.data?.addWork?._id;if(!a)throw Error("Failed to create export work");await new Promise((e,r)=>{let s=setInterval(async()=>{try{let t=await x(a);if(!t)throw Error("Work not found");(t.status===i.h.Success||t.status===i.h.Failed)&&(clearInterval(s),t.status===i.h.Success&&t.success?(c.push(`/exports?workId=${t._id}`),e(t)):r(t.error||Error("Export failed")))}catch(e){clearInterval(s),r(e)}},t)})}catch(e){return console.error("Export failed:",e),r.c.error(k({id:"export_failed",defaultMessage:"Export failed. Please try again."})),null}finally{n(!1)}},[f,x,c,k])}}],60513);var n=e.i(91398),u=e.i(69211),c=e.i(64127),f=e.i(98949),k=e.i(99160);e.s(["f",0,function({options:e,onSubmit:r,loading:a=!1,successMessage:i=""}){let{formatMessage:l}=(0,s.S)(),d=(0,t.useMemo)(()=>e.reduce((e,t)=>(e[t.key]=t.defaultChecked??!0,e),{}),[e]),o=async e=>(await r(e),{success:!0}),x=(0,f.f)({successMessage:i||l({id:"export_completed",defaultMessage:"Data exported successfully"}),submit:o,enableReinitialize:!0,initialValues:d});return(0,n.jsx)(u.f,{form:x,children:x.formik.isSubmitting?(0,n.jsxs)("div",{className:"flex items-center gap-3 p-4 mb-4 rounded-lg animate-pulse",children:[(0,n.jsx)("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),(0,n.jsx)("span",{className:"text-sm font-medium text-blue-700 dark:text-blue-300",children:l({id:"exporting_message",defaultMessage:"Generating your export files. This may take a moment..."})})]}):(0,n.jsxs)("fieldset",{disabled:a,style:{border:"none",padding:0},children:[(0,n.jsxs)("h3",{children:[" ",l({id:"export_options",defaultMessage:"Export options"})]}),e.map(e=>(0,n.jsx)(c.f,{name:e.key,label:e.label,hideLabel:!0,className:"mr-2 h-4 w-4 justify-between rounded-sm border-slate-300 dark:border-slate-600 bg-white text-slate-950 focus:ring-slate-800 lg:items-center",type:"checkbox"},e.key)),(0,n.jsx)(k.f,{label:l({id:"submit",defaultMessage:"Submit"}),disabled:a})]})})}],75284)},64127,e=>{var t=e.i(91398),r=e.i(72043),s=e.i(60741);e.s(["f",0,e=>{let{disabled:a,labelClassName:i,containerClassName:l,inputClassName:d,...o}=e,n=(0,s.f)({...e,type:"checkbox"});return(0,t.jsxs)("div",{className:(0,r.default)("",{"text-rose-600":!!n.error,checkbox:!0,disabled:n.disabled,required:n.required},l),children:[(0,t.jsx)("input",{checked:!!n.value,disabled:a,id:n.name,name:n.name,onChange:n.onChange,onBlur:n.onBlur,type:"checkbox",className:(0,r.default)("h-4 w-4 rounded-xs border-slate-300 dark:border-slate-600 bg-white dark:!bg-slate-800 text-indigo-600 dark:text-slate-200 focus:ring-slate-800",d,e.className),...o}),(0,t.jsx)("label",{htmlFor:n.name,className:(0,r.default)("text-sm text-slate-900 dark:text-slate-200",i,{"text-danger":!!n.error}),children:n.label})]})}])},30086,e=>{var t=e.i(59080),r=e.i(76204);let s=t.f`
2
+ mutation AddWork(
3
+ $type: WorkType!
4
+ $priority: Int! = 0
5
+ $input: JSON
6
+ $originalWorkId: ID
7
+ $scheduled: Timestamp
8
+ $retries: Int! = 20
9
+ ) {
10
+ addWork(
11
+ type: $type
12
+ priority: $priority
13
+ input: $input
14
+ originalWorkId: $originalWorkId
15
+ scheduled: $scheduled
16
+ retries: $retries
17
+ ) {
18
+ _id
19
+ }
20
+ }
21
+ `;e.s(["f",0,()=>{let[e]=(0,r.f)(s);return{addWork:async({type:t,priority:r,input:s,originalWorkId:a,scheduled:i=null,retries:l})=>e({variables:{type:t,priority:r,input:s,originalWorkId:a,scheduled:i,retries:l},refetchQueries:["WorkQueue"]})}}])},63104,e=>{var t=e.i(59080),r=e.i(32171),s=e.i(70693),a=e.i(94672);let i=(e="")=>t.f`
22
+ query Work($workId: ID!) {
23
+ work(workId: $workId) {
24
+ ...WorkFragment
25
+ ${e}
26
+ error
27
+ priority
28
+ worker
29
+ timeout
30
+ }
31
+ }
32
+ ${a.f}
33
+ `;e.s(["k",0,i,"U",0,({workId:e=null,...t})=>{let{customProperties:a}=(0,s.f)(),{data:l,loading:d,error:o,previousData:n}=(0,r.f)(i(a?.Work),{skip:!e,variables:{workId:e},...t});return{work:l?.work||n?.work,loading:d,error:o}}])},2385,e=>{var t=e.i(91398),r=e.i(3828),s=e.i(66773),a=e.i(69322),i=e.i(59080),l=e.i(32171),d=e.i(70693),o=e.i(73298);let n=({userId:e=null}={})=>{let{customProperties:t,hydrateFragment:r}=(0,d.f)(),{data:s,loading:a,error:n}=(0,l.f)(((e="")=>i.f`
34
+ query User($userId: ID) {
35
+ user(userId: $userId) {
36
+ ${e}
37
+ ...UserFragment
38
+ }
39
+ }
40
+ ${o.f}
41
+ `)(t?.User),{skip:!e,variables:{userId:e}}),u=s?.user,c=r(t?.User,u);return{user:u,loading:a,error:n,extendedData:c}};var u=e.i(61494),c=e.i(17644),f=e.i(62274),k=e.i(23745),x=e.i(91788),p=e.i(6607),m=e.i(15971),h=e.i(28401),b=e.i(58971),g=e.i(93380),y=e.i(81013),w=e.i(60513),_=e.i(75284);let v=({userId:e})=>{let{setModal:r}=(0,p.f)(),{user:s,loading:i}=n({userId:e}),{exportUser:l,isExporting:d}=(()=>{let{exportCSV:e,isExporting:t}=(0,w.f)();return{exportUser:(0,x.useCallback)(async t=>{await e({type:"User",...t})},[e]),isExporting:t}})(),{formatMessage:o}=(0,a.S)(),u=[{key:"exportBookmarks",label:o({id:"bookmarks",defaultMessage:"Bookmarks"}),defaultChecked:!0},{key:"exportOrders",label:o({id:"orders",defaultMessage:"Orders"}),defaultChecked:!0},{key:"exportReviews",label:o({id:"reviews",defaultMessage:"Reviews"}),defaultChecked:!0},{key:"exportQuotations",label:o({id:"quotations",defaultMessage:"Quotations"}),defaultChecked:!0},{key:"exportEnrollments",label:o({id:"enrollments",defaultMessage:"Enrollments"}),defaultChecked:!0}],c=(0,x.useCallback)(async t=>{await l({userId:e,...t}),r(null)},[e,l,r]);return i?null:(0,t.jsx)(y.f,{onClick:()=>{r((0,t.jsx)(_.f,{options:u,onSubmit:c,loading:d}))},disabled:d||!s,variant:"secondary",text:o(d?{id:"exporting",defaultMessage:"Exporting..."}:{id:"export",defaultMessage:"Export"})})};var $=e.i(72419);e.s(["default",0,({userId:e})=>{let{formatMessage:i}=(0,a.S)(),{setModal:l}=(0,p.f)(),{deleteUser:d}=(0,k.f)(),{user:o,extendedData:y}=n({userId:e}),w=(0,r.useRouter)(),{hasRole:_}=(0,b.f)(),j=(0,x.useCallback)(async()=>{await l((0,t.jsx)(m.f,{onCancelClick:async()=>l(""),message:i({id:"delete_user_account_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it "}),onOkClick:async()=>{l("");try{await d(o._id),h.c.success(i({id:"user_deleted",defaultMessage:"User deleted successfully"})),w.push("/users")}catch(e){h.c.error((0,$.f)(e,i))}},okText:i({id:"delete_user_account",defaultMessage:"Delete user"})}))},[o]);return(0,t.jsxs)("div",{className:" max-w-6xl",children:[(0,t.jsx)(u.f,{currentPageTitle:o?`${o?.name}`:""}),(0,t.jsx)(c.f,{headerText:(0,g.f)(o)||i({id:"users_setting_list_header",defaultMessage:"User settings"}),onDelete:!o?.deleted&&_(s.C.RemoveUser)?j:null,title:i({id:"user_detail_title",defaultMessage:"User {id}"},{id:o?.username}),children:(0,t.jsx)(v,{userId:e})}),(0,t.jsx)(f.f,{user:o,extendedData:y})]})}],2385)}],36792,(e,t,r)=>{let s="/users/UserDetailPage";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(2385)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([s])})}]);
@@ -0,0 +1,39 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[61494,e=>{var t=e.i(91398),s=e.i(41158),r=e.i(3828),a=e.i(69322);e.s(["f",0,({routeName:e=null,currentPageTitle:l=null,depth:i=null})=>{let d=(0,r.useRouter)(),{formatMessage:n}=(0,a.S)(),o={home:"home",products:"products",orders:"orders",users:"users",assortments:"assortments",filters:"filters",tokens:"tokens",quotations:"quotations",enrollments:"enrollments",activities:"activities",works:"work_queue",events:"events",currency:"currencies",country:"countries",language:"languages","delivery-provider":"delivery_providers","payment-provider":"payment_providers","warehousing-provider":"warehousing_provider",system:"system",account:"account",new:"new",edit:"edit"},c=d.asPath?.split("/")?.filter((e,t)=>d.asPath?.split("/")?.indexOf(e)===t);if(1===c.length)return null;let u="";i&&c.splice(i),e&&(c[c.length-1]=e);let m=c?.map(t=>{if(u+=`${t}/`,!t)return{name:n({id:"home",defaultMessage:"Home"}),path:"/"};let s=t?.split("?")[0],r=e?s:s.replace(/-/g," "),a=o[s];return{name:a?n({id:a,defaultMessage:r}):decodeURIComponent(r),path:u.replace(/.$/,"")}});return(0,t.jsx)("nav",{className:"mb-5 hidden sm:flex lg:mt-5 lg:mb-8","aria-label":"Breadcrumb",children:(0,t.jsx)("ol",{className:"flex items-center space-x-4",children:m?.map((e,r)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-center",children:[0!==r&&(0,t.jsx)("svg",{className:"mr-4 h-5 w-5 shrink-0 text-slate-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,t.jsx)(s.default,{href:e.path,className:"text-sm font-medium capitalize text-slate-500 dark:text-slate-400 dark:hover:text-slate-300 hover:text-slate-700 focus:outline-hidden focus:ring-2 focus:ring-slate-800 rounded-md px-1 py-1",children:r===m.length-1&&l?l:e.name})]})},e.path))})})}])},81013,e=>{var t=e.i(91398),s=e.i(72043);e.s(["f",0,({text:e,children:r,onClick:a,className:l="",disabled:i=!1,id:d="",variant:n="primary",size:o="md",type:c="button",loading:u=!1,icon:m,iconRight:f,fullWidth:x=!1,rounded:h="md",ariaLabel:g,...p})=>{let b=r||e,j=(m||f)&&b?"gap-2":"";return(0,t.jsx)("button",{id:d,type:c,disabled:i||u,onClick:a,"aria-label":g,className:(0,s.default)("inline-flex items-center justify-center font-medium shadow-xs focus:outline-hidden focus:ring-2 focus:ring-offset-2 transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-50",{xs:"px-2.5 py-1.5 text-xs h-6",sm:"px-3 py-2 text-sm h-8",md:"px-4 py-2 text-sm h-9",lg:"px-6 py-3 text-base h-11"}[o],{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}[h],{primary:"border border-slate-800 dark:border-slate-600 bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:ring-slate-800 dark:focus:ring-slate-400",secondary:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-700 dark:text-slate-200 hover:bg-slate-50 dark:hover:bg-slate-700 focus:ring-slate-500",tertiary:"border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700 focus:ring-slate-400",quaternary:"bg-transparent text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",danger:"border border-rose-500 dark:border-rose-400 bg-white dark:bg-slate-800 text-rose-600 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/10 focus:ring-rose-500",ghost:"bg-transparent border border-transparent text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",success:"border border-emerald-500 dark:border-emerald-400 bg-emerald-50 dark:bg-emerald-900/20 text-emerald-600 dark:text-emerald-400 hover:bg-emerald-100 dark:hover:bg-emerald-900/30 focus:ring-emerald-500",neutral:"border border-slate-300 dark:border-slate-600 bg-slate-100 dark:bg-slate-700 text-slate-600 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:ring-slate-400",input:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-900 dark:text-slate-100 hover:border-slate-400 dark:hover:border-slate-500 focus:ring-slate-500 focus:border-slate-500"}[n],j,{"w-full":x},l),...p,children:u?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),b]}):(0,t.jsxs)(t.Fragment,{children:[m,b,f]})})}])},42427,e=>{var t=e.i(91398),s=e.i(72043);e.s(["f",0,({id:e,label:r,value:a,onChange:l,placeholder:i,min:d,max:n,className:o,containerClassName:c})=>(0,t.jsxs)("div",{className:(0,s.default)("flex flex-col gap-1",c),children:[r&&(0,t.jsx)("label",{htmlFor:e,className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:r}),(0,t.jsx)("input",{type:"date",id:e,value:a||"",onChange:e=>{l(e.target.value||null)},placeholder:i,min:d,max:n,className:(0,s.default)("w-full rounded-md border-1 border-slate-300 dark:border-slate-700 bg-white dark:bg-slate-900 px-3 py-2 text-sm shadow-xs text-slate-900 dark:text-slate-200 focus:outline-hidden focus:ring-2 focus:ring-slate-800 dark:[color-scheme:dark]",o)})]})])},81359,e=>{var t=e.i(91398),s=e.i(24608),r=e.i(69322);e.s(["f",0,({onClick:e,text:a=null,Icon:l=null})=>{let{formatMessage:i}=(0,r.S)();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.f,{className:"h-5 w-5"})}),a||i({id:"delete",defaultMessage:"Delete"})]})}])},78704,e=>{var t=e.i(91398),s=e.i(91788),r=e.i(12197);e.s(["f",0,({loading:e,hasMore:a,onLoadMore:l,children:i,threshold:d=200})=>{let n=(0,s.useRef)(null),o=(0,s.useCallback)(t=>{let[s]=t;s.isIntersecting&&a&&!e&&l()},[a,e,l]);return(0,s.useEffect)(()=>{let e=n.current;if(!e)return;let t=new IntersectionObserver(o,{rootMargin:`${d}px`});return t.observe(e),()=>{t.disconnect()}},[o,d]),(0,t.jsxs)(t.Fragment,{children:[i,(0,t.jsx)("div",{ref:n,className:"h-4"}),e&&(0,t.jsx)("div",{className:"flex justify-center py-4",children:(0,t.jsx)(r.f,{})})]})}])},55215,e=>{var t=e.i(91398),s=e.i(72043);e.s(["f",0,({value:e,className:r,onChange:a=()=>{},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",r),value:e,onChange:a,rows:d,...i})}])},93924,69315,e=>{var t=e.i(91398),s=e.i(91788),r=e.i(69322),a=e.i(65153);e.s(["f",0,({tagList:e,onChange:l,options:i,label:d})=>{let{formatMessage:n}=(0,r.S)(),o=(0,s.useRef)(!1),c=(0,s.useRef)(!1),[u,m]=(0,s.useState)([]);return(0,s.useEffect)(()=>{if(!o.current&&i.length>0){let t=new Set(e||[]);m(i.filter(({label:e})=>t.has(e)).map(({value:e})=>e)),o.current=!0}},[i,e]),(0,s.useEffect)(()=>{c.current?l(u):c.current=!0},[u]),(0,t.jsxs)("div",{className:"mt-2 flex-col sm:mt-0",children:[d&&(0,t.jsx)("h3",{className:"text-sm font-semibold text-gray-700 dark:text-slate-200 uppercase tracking-wide mb-3",children:d}),(0,t.jsx)("div",{children:u.map(e=>{let s=i.find(t=>t.value===e)?.label||e;return(0,t.jsx)(a.f,{text:s,color:"slate",onClick:()=>{m(t=>t.filter(t=>t!==e))},className:"ml-2 mb-2"},e)})}),(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"mt-1 flex max-w-full rounded-md shadow-xs dark:text-slate-200",children:(0,t.jsx)("div",{className:"relative flex grow items-stretch focus-within:z-10",children:(0,t.jsxs)("select",{id:"tag-input",className:"mt-1 block w-full rounded-md dark:bg-slate-800 border-slate-300 dark:border-slate-700 py-2 pl-3 text-base focus:outline-hidden focus:ring-slate-800 sm:text-sm",onChange:e=>{var t;(t=e.target.value)&&!u.includes(t)&&m(e=>[...e,t])},value:"",children:[(0,t.jsx)("option",{value:"",children:n({id:"select_option",defaultMessage:"Select an option"})}),i.map(e=>(0,t.jsx)("option",{value:e.value,className:"dark:text-slate-200",children:e.label},e.value))]})})})})]})}],93924);var l=e.i(3828),i=e.i(83147),d=e.i(42427),n=e.i(84818);e.s(["f",0,()=>{let{parseDate:e}=(0,n.f)(),{formatMessage:s}=(0,r.S)(),a=(0,l.useRouter)();return(0,t.jsxs)("div",{className:"flex items-center justify-center",children:[(0,t.jsx)("label",{className:"ml-1 mr-2",htmlFor:"work-start",children:s({id:"from",defaultMessage:"From"})}),(0,t.jsx)(d.f,{id:"work-start",onChange:e=>{if(e)a.push({query:(0,i._)(a.query,new Date(e).toISOString(),"start")});else{let{start:e,...t}=a.query;a.push({query:{...t}})}},placeholder:s({id:"start_date",defaultMessage:"Start date"}),value:a?.query?.start?e(a?.query?.start):null,containerClassName:"w-full"}),(0,t.jsx)("label",{className:"mr-2 ml-3 ",htmlFor:"report-end",children:s({id:"to",defaultMessage:"To"})}),(0,t.jsx)(d.f,{id:"work-end",onChange:e=>{if(e)a.push({query:(0,i._)(a.query,new Date(e).toISOString(),"end")});else{let{end:e,...t}=a.query;a.push({query:{...t}})}},placeholder:s({id:"end_date",defaultMessage:"End Date"}),value:e(a?.query?.end?a?.query?.end:new Date),containerClassName:"w-full"})]})}],69315)},17644,e=>{var t=e.i(91398),s=e.i(58678),r=e.i(41158),a=e.i(69322),l=e.i(37369),i=e.i(81013);e.s(["f",0,({headerText:e=null,onEdit:d=null,onDelete:n=null,children:o=null,title:c=null,addPath:u=null,addButtonText:m=null})=>{let{formatMessage:f}=(0,a.S)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{children:(0,t.jsxs)("title",{children:["Unchained AdminUI - ",c||e," "]})}),(0,t.jsx)("div",{className:"flex gap-3 flex-wrap items-center justify-between",children:(0,t.jsxs)("div",{className:"flex items-center flex-wrap justify-between w-full gap-4",children:[e&&(0,t.jsx)("h2",{className:"text-2xl font-medium text-slate-900 dark:text-slate-300 sm:truncate sm:text-3xl lg:text-4xl",children:e}),(0,t.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[o,u&&(0,t.jsx)(r.default,{href:u,children:(0,t.jsx)(i.f,{variant:"secondary",icon:(0,t.jsx)(l.f,{className:"h-5 w-5"}),text:m||f({id:"add",defaultMessage:"Add"})})}),d&&(0,t.jsx)(i.f,{variant:"secondary",onClick:d,text:f({id:"edit",defaultMessage:"Edit"})}),n&&(0,t.jsx)(i.f,{variant:"danger",onClick:n,text:f({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},51128,e=>{var t=e.i(91398),s=e.i(69322),r=e.i(3828),a=e.i(20495),l=e.i(68835),i=e.i(65153),d=e.i(83147),n=e.i(73319);e.s(["f",0,({children:e,onSearchChange:o,defaultSearchValue:c,showTagFilter:u=!1,availableTagOptions:m=[]})=>{let{formatMessage:f}=(0,s.S)(),{query:x,push:h}=(0,r.useRouter)(),g=e=>{if((0,n.T)(e))h({query:(0,d._)(x,e?.join(","),"tags")});else{let{tags:e,...t}=x;h({query:(0,d._)(t)})}};return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"my-3 flex flex-col gap-3",children:(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start gap-3",children:[(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(a.f,{onInputChange:o,defaultValue:c})}),u&&(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.f,{buttonText:f({id:"apply",defaultMessage:"Apply"}),placeholder:f({id:"enter_tag",defaultMessage:"Enter tag..."}),tagList:x?.tags?.split(","),onChange:g,selectOptions:m,showTagsInline:!1})}),x?.tags?.split(",").filter(Boolean).length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:x?.tags?.split(",").filter(Boolean).map(e=>(0,t.jsx)(i.f,{text:e,color:"slate",onClick:()=>{let t=x?.tags?.split(",").filter(t=>t!==e);g(t.length>0?t:null)}},e))})]})]})}),e]})}])},92229,e=>{var t=e.i(91398),s=e.i(91788),r=e.i(69322);e.s(["f",0,({selectedStatuses:e,onStatusChange:a,statuses:l})=>{let{formatMessage:i}=(0,r.S)(),[d,n]=(0,s.useState)(e||[]),o=e=>{let t,{value:s,checked:r}=e.target;n(t=r?[...d,s]:d.filter(e=>e!==s)),a(t)};return l?.map(e=>(0,t.jsxs)("div",{className:"inline-flex items-center rounded-md py-2 text-sm font-medium text-slate-900",children:[(0,t.jsx)("input",{className:"h-4 w-4 rounded-sm border-slate-300 dark:border-slate-600 bg-white dark:!bg-slate-800 text-slate-950 focus:ring-slate-800",type:"checkbox",id:e,name:e,value:e,checked:d.includes(e),onChange:o}),(0,t.jsx)("div",{className:"ml-2",children:(0,t.jsx)("label",{className:"text-sm text-slate-600 dark:text-slate-200",htmlFor:e,children:i({id:e.toLowerCase(),defaultMessage:e})})})]},e))}])},41523,e=>{var t=e.i(91398),s=e.i(72043),r=e.i(3828),a=e.i(91788),l=e.i(69322);e.s(["f",0,({children:e,tabItems:i,defaultTab:d,updateRoute:n=!0})=>{let o=(0,r.useRouter)(),{tab:c=d}=o?.query||{},u=Array.isArray(c)?c[0]:c,{formatMessage:m}=(0,l.S)(),f=e=>{if(n){let{sort:t,...s}=o?.query||{};o.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=>f(e.target.value),id:"selected-tab",name:"selected-tab",className:"mt-1 block dark:bg-slate-800 dark:text-white w-full rounded-md border-slate-300 dark:border-slate-600 py-2 pl-3 pr-10 text-base capitalize focus:outline-none focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:border-slate-800 dark:focus:border-slate-400 sm:text-sm",value:u,children:i.filter(Boolean).map(e=>(0,t.jsx)("option",{value:e.id,className:"dark:text-white",children:e?.title||e?.id},e.id))})]}),(0,t.jsx)("div",{className:"mt-5 hidden lg:block",children:(0,t.jsx)("div",{className:"",children:(0,t.jsx)("nav",{className:"flex flex-wrap gap-3",children:i.filter(Boolean).map(e=>(0,t.jsx)("a",{id:e.id,tabIndex:0,onClick:()=>f(e.id),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),f(e.id))},className:(0,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":u===e.id},"cursor-pointer relative whitespace-nowrap border border-slate-200 dark:border-slate-800 py-2 px-1 pr-3 pl-2 text-sm dark:text-slate-400 font-medium hover:bg-white dark:hover:bg-slate-800 hover:border-slate-300 dark:hover:border-slate-500 rounded-lg focus:outline-none focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:ring-offset-2 dark:focus:ring-offset-slate-900"),children:(0,t.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,t.jsx)("div",{children:e.Icon}),(0,t.jsx)("div",{className:"capitalize",children:e?.title||e?.id}),e?.length?(0,t.jsx)("span",{className:"absolute top-0 right-0 inline-flex translate-x-1/2 -translate-y-1/2 transform items-center justify-center rounded-full bg-slate-400 px-1 py-0.5 text-sm leading-none text-slate-900",children:e?.length}):null]})},e.id))})})}),(0,t.jsx)("div",{className:"mt-5",children:a.default.cloneElement(e,{selectedView:u})})]})}])},73319,e=>{let t=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["Q",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"C",0,t,"T",0,e=>!(!e||null==e||t(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},83147,e=>{let t=e=>e&&e?.split(",").reduce((e,t)=>{let[s=null,r=null]=(t||"")?.split("_")||[];return{...e,[s]:r}},null)||{};e.s(["S",0,(...e)=>e.filter(Boolean).join(" "),"R",0,e=>Object.entries(t(e))?.map(([e,t])=>({key:e,value:t})),"D",0,e=>e?.label&&e?.version?`${e.label} ${e.version}`:"","v",0,t,"Q",0,(e,t,s=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"region"}).of(t)} ${s?`(${t})`:""}`}catch{return t}},"j",0,(e,t,s=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"currency"}).of(t)} ${s?`(${t})`:""}`}catch{return t}},"I",0,(e,t,s=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"language"}).of(t)} ${s?`(${t})`:""}`}catch{return t}},"_",0,(e,t,s)=>{let r;return r=s?{...e,[s]:t}:e,Object.keys(r)?.map(e=>[e,r[e]].join("="))?.join("&")},"d",0,()=>({formatPrice:e=>{if(!e?.currencyCode)return"n/a";if(e?.amount===void 0||e?.amount===null)return"";let{amount:t,currencyCode:s}=e||{};return new Intl.NumberFormat(navigator.language,{style:"currency",currency:s}).format(t/100)}})])},38247,e=>{var t=e.i(91398),s=e.i(72043),r=e.i(60741),a=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(["f",0,({validators:e=[],className:d,parseDate:n=i,...o})=>{let c=(0,r.f)({validators:[...e,a.G],...o}),u=c.value?new Date(c.value).toISOString().split("T")[0]:"";return(0,t.jsx)(l.f,{...c,className:o.containerClassName,children:(0,t.jsx)("input",{type:"date",id:c.id,name:c.name,disabled:c.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":!!c.error}),onChange:e=>c.setValue(e.target.value),value:u,placeholder:c.placeholder,autoComplete:"off",...o})})}])},7105,e=>{var t=e.i(91398),s=e.i(72043),r=e.i(55215),a=e.i(60741),l=e.i(29691);e.s(["f",0,({validators:e=[],rows:i=10,...d})=>{let n=(0,a.f)({...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.f,{...n,children:(0,t.jsx)(r.f,{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":!!n.error},d.className),disabled:n.disabled,id:n.name,name:n.name,onChange:e=>{try{JSON.parse(e.target.value||"{}"),n.setError("")}catch(e){n.setError(e.message?.replace("JSON.parse",""))}finally{n.setValue(e.target.value,!0),n.setTouched(!0)}},onBlur:e=>{try{n.setValue(JSON.stringify(JSON.parse(e.target.value),void 0,2),!0),n.setError("")}catch(e){n.setError(e.message)}},placeholder:n.placeholder,autoComplete:n.autoComplete,value:n.value})})}])},99160,e=>{var t=e.i(91398),s=e.i(72043),r=e.i(38865),a=e.i(61898);e.s(["f",0,({label:e,disabled:l=!1,className:i="",hidden:d=!1,...n})=>{let o=(0,r.m)(),{...c}=n,u=Object.fromEntries(Object.keys(o.initialValues).map(e=>[e,o.getFieldMeta(e)])),{disabled:m}=(0,a.f)(),f=Object.values(u).reduce((e,{error:t,touched:s})=>e||t&&s,!1),x=l||m||o.isSubmitting||f,h=o.isSubmitting&&!f,g=(l||m||f)&&!o.isSubmitting;return(0,t.jsx)("input",{className:(0,s.default)("inline-flex cursor-pointer justify-center rounded-sm border border-slate-300 px-4 py-2 text-center text-sm font-medium leading-5 shadow-sm hover:shadow-md focus:ring-slate-800 dark:focus:ring-slate-400",i,{"bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900":g,"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600":h,"bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent":!x,hidden:d}),"aria-label":e,type:"submit",value:e,disabled:x,...c})}])},45229,e=>{var t=e.i(91398),s=e.i(72043),r=e.i(82226),a=e.i(60741),l=e.i(29691);e.s(["f",0,({maxLength:e=0,validators:i=[],...d})=>{let n=(0,a.f)({validators:[...i,e&&(0,r.f)(e)],...d});return(0,t.jsx)(l.f,{...n,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":!!n.error,"border-slate-300 placeholder-slate-400":!n.error}),disabled:n.disabled,id:n.name,name:n.name,onChange:n.onChange,onClick:e=>{e.stopPropagation()},onBlur:n.onBlur,placeholder:n.placeholder,autoComplete:n.autoComplete||"off",type:n.type||"text",value:n.value,autoFocus:n.autoFocus})})}])},15971,e=>{var t=e.i(91398),s=e.i(69322);e.s(["f",0,({onOkClick:e,onCancelClick:r,okText:a=null,cancelText:l=null,headerText:i=null,message:d=null,icon:n=null,close:o=null})=>{let{formatMessage:c}=(0,s.S)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sm:flex sm:items-start",children:[n||(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||c({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||c({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:a||c({id:"continue",defaultMessage:"Continue"})}),(0,t.jsx)("button",{id:"danger_cancel",onClick:r||o,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||c({id:"cancel",defaultMessage:"Cancel"})})]})]})}])},6607,e=>{var t=e.i(91788),s=e.i(6444);e.s(["f",0,()=>(0,t.useContext)(s.f)])},30086,e=>{var t=e.i(59080),s=e.i(76204);let r=t.f`
2
+ mutation AddWork(
3
+ $type: WorkType!
4
+ $priority: Int! = 0
5
+ $input: JSON
6
+ $originalWorkId: ID
7
+ $scheduled: Timestamp
8
+ $retries: Int! = 20
9
+ ) {
10
+ addWork(
11
+ type: $type
12
+ priority: $priority
13
+ input: $input
14
+ originalWorkId: $originalWorkId
15
+ scheduled: $scheduled
16
+ retries: $retries
17
+ ) {
18
+ _id
19
+ }
20
+ }
21
+ `;e.s(["f",0,()=>{let[e]=(0,s.f)(r);return{addWork:async({type:t,priority:s,input:r,originalWorkId:a,scheduled:l=null,retries:i})=>e({variables:{type:t,priority:s,input:r,originalWorkId:a,scheduled:l,retries:i},refetchQueries:["WorkQueue"]})}}])},3334,35496,54020,e=>{var t=e.i(98170),s=e.i(50216),r=e.i(27861),a=e.i(36980),l=e.i(57322),i=e.i(24323),d=e.i(60836),n=e.i(2848);let o=["years","months","weeks","days","hours","minutes","seconds"];e.s(["f",0,()=>({getScheduledTime:e=>{if(!e)return null;let{scheduled:o,status:c,started:u}=e;if("FAILED"===c||"SUCCESS"===c||"DELETED"===c)return null;let m=new Date(o).getTime();if("ALLOCATED"===c||"NEW"===c&&!u){var f;return f={addSuffix:!0},function(e,t,o){let c,u=(0,r.f)(),m=o?.locale??u.locale??s.f,f=(0,d.f)(e,t);if(isNaN(f))throw RangeError("Invalid time value");let x=Object.assign({},o,{addSuffix:o?.addSuffix,comparison:f}),[h,g]=(0,i.f)(o?.in,...f>0?[t,e]:[e,t]),p=(0,a.f)(o?.roundingMethod??"round"),b=g.getTime()-h.getTime(),j=b/n.z,v=(b-((0,l.f)(g)-(0,l.f)(h)))/n.z,k=o?.unit;if("second"===(c=k||(j<1?"second":j<60?"minute":j<n.k?"hour":v<n.d?"day":v<n.l?"month":"year"))){let e=p(b/1e3);return m.formatDistance("xSeconds",e,x)}if("minute"===c){let e=p(j);return m.formatDistance("xMinutes",e,x)}if("hour"===c){let e=p(j/60);return m.formatDistance("xHours",e,x)}if("day"===c){let e=p(v/n.k);return m.formatDistance("xDays",e,x)}if("month"===c){let e=p(v/n.d);return 12===e&&"month"!==k?m.formatDistance("xYears",1,x):m.formatDistance("xMonths",e,x)}else{let e=p(v/n.l);return m.formatDistance("xYears",e,x)}}(m,(0,t.f)(m,Date.now()),f)}return null},getDuration:e=>{var t,a;let l,i,d,n,c,u;if(!e)return null;let{started:m,finished:f}=e,x=new Date().getTime();return m?(t={hours:Number(Math.floor((l=f?new Date(f).getTime()-new Date(m).getTime():x-new Date(m).getTime())/1e3/60/60)%24),minutes:Number(Math.floor(l/1e3/60)%60),seconds:Number(Math.ceil(l/1e3)%60)},a={zero:!1},i=(0,r.f)(),d=a?.locale??i.locale??s.f,n=a?.format??o,c=a?.zero??!1,u=a?.delimiter??" ",d.formatDistance?n.reduce((e,s)=>{let r=`x${s.replace(/(^.)/,e=>e.toUpperCase())}`,a=t[s];return void 0!==a&&(c||t[s])?e.concat(d.formatDistance(r,a)):e},[]).join(u):""):null}})],3334);var c=e.i(91398),u=e.i(91788);e.s(["f",0,({text:e,children:t})=>{let[s,r]=(0,u.useState)(!1);return(0,c.jsxs)("div",{className:"relative",children:[(0,c.jsx)("div",{onMouseEnter:()=>{r(!0)},onMouseLeave:()=>{r(!1)},children:t}),s&&(0,c.jsx)("div",{className:"tooltip absolute p-2 bg-slate-700 text-white rounded-lg whitespace-nowrap",children:e})]})}],35496),e.s(["f",0,({work:e,children:t=null})=>e?.original?e?.original?.retries===e?.retries?(0,c.jsxs)("span",{children:[(0,c.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,c.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,c.jsx)("span",{children:(0,c.jsxs)("span",{children:[(0,c.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,c.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,c.jsx)("span",{className:"text-rose-400 text-sm ml-2",children:`${e?.retries} / ${e?.original?.retries}`})]})}):t],54020)},63104,e=>{var t=e.i(59080),s=e.i(32171),r=e.i(70693),a=e.i(94672);let l=(e="")=>t.f`
22
+ query Work($workId: ID!) {
23
+ work(workId: $workId) {
24
+ ...WorkFragment
25
+ ${e}
26
+ error
27
+ priority
28
+ worker
29
+ timeout
30
+ }
31
+ }
32
+ ${a.f}
33
+ `;e.s(["k",0,l,"U",0,({workId:e=null,...t})=>{let{customProperties:a}=(0,r.f)(),{data:i,loading:d,error:n,previousData:o}=(0,s.f)(l(a?.Work),{skip:!e,variables:{workId:e},...t});return{work:i?.work||o?.work,loading:d,error:n}}])},9459,e=>{var t=e.i(91398),s=e.i(3828),r=e.i(69322),a=e.i(28401),l=e.i(41158),i=e.i(91788),d=e.i(65153),n=e.i(84818),o=e.i(60193),c=e.i(55215),u=e.i(3334),m=e.i(35496),f=e.i(54020);let x=({work:e})=>{let{formatMessage:s}=(0,r.S)(),{formatDateTime:a}=(0,n.f)(),{getDuration:x,getScheduledTime:h}=(0,u.f)(),[,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,o.c)(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.f,{text:e?.status,color:o.Q[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)(f.f,{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.f,{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:a(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.f,{text:a(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:a(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:a(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:x(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:a(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)(c.f,{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)(c.f,{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)(c.f,{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 b=g.f`
34
+ mutation RemoveWork($workId: ID!) {
35
+ removeWork(workId: $workId) {
36
+ _id
37
+ }
38
+ }
39
+ `;var j=e.i(30086),v=e.i(12197),k=e.i(17644),y=e.i(61494),w=e.i(15971),N=e.i(6607),S=e.i(81359),C=e.i(86129),M=e.i(66773),_=e.i(5505),E=e.i(38247),$=e.i(69211),D=e.i(7105),I=e.i(99160),O=e.i(45229),T=e.i(98949);let L=({work:e,onSubmit:a})=>{let{formatMessage:l,locale:i}=(0,r.S)(),d=(0,s.useRouter)(),n=l({id:"work_added_success",defaultMessage:"Work added successfully!"}),o=(0,T.f)({submit:a,successMessage:n,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)(_.U,{children:(0,t.jsx)($.f,{form:o,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.f,{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.f,{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)(E.f,{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)(D.f,{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)(I.f,{label:l({id:"retry_submit",defaultMessage:"Retry"})})})]})})})};e.s(["default",0,({workerId:e})=>{let l,{formatMessage:d}=(0,r.S)(),{push:n}=(0,s.useRouter)(),{work:o}=(0,h.U)({workId:e,pollInterval:2e3}),{setModal:c}=(0,N.f)(),{removeWork:u}=(()=>{let[e]=(0,p.f)(b);return{removeWork:async({workId:t})=>e({variables:{workId:t},refetchQueries:["WorkQueue"]})}})(),{addWork:m}=(0,j.f)(),f=(0,i.useCallback)(async()=>{c((0,t.jsx)(L,{work:o,onSubmit:async e=>{try{let{data:t}=await m({type:o?.type,priority:e.priority||o?.priority,retries:e.retries,scheduled:e.scheduled,input:JSON.parse(e.input||"{}"),originalWorkId:o?._id});return n(`/works?workerId=${t.addWork._id}`),c(null),{success:!0}}catch(e){return{success:!1,error:e}}}}),{closeOnOutsideClick:!0})},[o]),g=async()=>{await c((0,t.jsx)(w.f,{onCancelClick:()=>c(""),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()=>{c(""),await u({workId:e}),a.c.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)(y.f,{}),(0,t.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,t.jsx)(k.f,{headerText:d({id:"work_detail",defaultMessage:"Work Detail"}),title:d({id:"work_detail_title",defaultMessage:"Work {id}"},{id:o?._id})}),o&&(o?.status===M.h.Failed||o?.status===M.h.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:f,children:[(0,t.jsx)("span",{className:"pr-1",children:(0,t.jsx)(C.f,{className:"h-5 w-5"})}),d({id:"retry-work",defaultMessage:"Retry"})]}):null,o&&((l=o?.status)===M.h.New||l===M.h.Allocated)?(0,t.jsx)(S.f,{onClick:g}):null]}),o?(0,t.jsx)(x,{work:o}):(0,t.jsx)(v.f,{})]})}],9459)},6506,e=>{var t=e.i(91398),s=e.i(69322),r=e.i(3828),a=e.i(91788),l=e.i(78704),i=e.i(12197),d=e.i(93924),n=e.i(92229),o=e.i(73319),c=e.i(83147),u=e.i(69315);let m=["NEW","ALLOCATED","SUCCESS","FAILED","DELETED"],f=({workTypes:e=[]})=>{let a=(0,r.useRouter)(),{formatMessage:l}=(0,s.S)(),i=(0,o.Q)(a.query.status),f=(0,o.Q)(a.query.types);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mt-5 text-md text-slate-600 dark:text-slate-200",children:l({id:"filter_by_creation_date",defaultMessage:"Filter by creation date"})}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)(u.f,{})}),e?.length?(0,t.jsx)("div",{className:"mt-5",children:(0,t.jsx)(d.f,{label:l({id:"select_type",defaultMessage:"Select type"}),tagList:f,onChange:e=>{let{types:t,...s}=a.query;e?.length?a.push({query:(0,c._)(s,e?.join(","),"types")}):a.push({query:(0,c._)(s)})},options:e.map(e=>({label:e,value:e}))})}):null,(0,t.jsxs)("div",{className:"mt-5",children:[(0,t.jsx)("div",{className:"text-md text-slate-800 dark:text-slate-200",children:l({id:"status",defaultMessage:"Status"})}),(0,t.jsx)("div",{className:"flex flex-wrap gap-5",children:(0,t.jsx)(n.f,{onStatusChange:e=>{let{status:t,...s}=a.query;e?.length?a.push({query:(0,c._)(s,e,"status")}):a.push({query:s})},selectedStatuses:i,statuses:m})})]})]})};var x=e.i(8918),h=e.i(41158),g=e.i(65153),p=e.i(60193),b=e.i(84818),j=e.i(3334),v=e.i(35496),k=e.i(54020);let y=({work:e})=>{let{formatMessage:r}=(0,s.S)(),{formatDateTime:l}=(0,b.f)(),{getScheduledTime:i,getDuration:d}=(0,j.f)(),[,n]=(0,a.useState)(null);(0,a.useEffect)(()=>{let t=null;return e&&("NEW"===e.status||"ALLOCATED"===e.status)&&(t=setInterval(()=>n(Date.now()),1e3)),()=>{clearInterval(t)}},[e?.status]);let o={dateStyle:"short",timeStyle:"short"};return(0,t.jsxs)(x.f.Row,{children:[(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:(0,t.jsx)(h.default,{href:`/works?workerId=${e._id}`,className:"text-slate-900 dark:text-slate-300",children:(0,t.jsx)(k.f,{work:e,children:e?.type||(0,t.jsxs)(t.Fragment,{children:[e._id," ",(0,t.jsx)(g.f,{color:"blue",text:r({id:"type",defaultMessage:"Type"})})]})})})})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)(g.f,{text:e?.status,color:p.Q[e.status],square:!0})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.created?l(e.created,o):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:(0,t.jsx)(v.f,{text:l(e?.scheduled,o),children:i(e)})})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.started?l(e.started,o):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.finished?l(e.finished,o):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:d(e)})})]})},w=({workQueue:e,sortable:r})=>{let{formatMessage:a}=(0,s.S)();return(0,t.jsxs)(x.f,{className:"min-w-full",children:[e?.map(e=>(0,t.jsxs)(x.f.Row,{header:!0,enablesort:r,children:[(0,t.jsx)(x.f.Cell,{sortKey:"type",children:a({id:"work_type_header",defaultMessage:"Type"})}),(0,t.jsx)(x.f.Cell,{sortKey:"status",children:a({id:"status",defaultMessage:"Status"})}),(0,t.jsx)(x.f.Cell,{sortKey:"created",children:a({id:"created",defaultMessage:"Created"})}),(0,t.jsx)(x.f.Cell,{sortKey:"scheduled",defaultSortDirection:"DESC",children:a({id:"scheduled",defaultMessage:"Scheduled"})}),(0,t.jsx)(x.f.Cell,{sortKey:"started",children:a({id:"started",defaultMessage:"Started"})}),(0,t.jsx)(x.f.Cell,{sortKey:"finished",children:a({id:"finished",defaultMessage:"Finished"})}),(0,t.jsx)(x.f.Cell,{children:a({id:"duration",defaultMessage:"Duration"})})]},`${e._id}-header`)),e?.map(e=>(0,t.jsx)(y,{work:e},`${e?._id}-body-${JSON.stringify(e)}`))]})};var N=e.i(38187);let S=a.forwardRef(function({title:e,titleId:t,...s},r){return a.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":t},s),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}),C=({messageWork:e,childWorks:r,expanded:a,onToggleExpanded:l})=>{let{formatMessage:i}=(0,s.S)(),{formatDateTime:d}=(0,b.f)(),n=((e,t,s)=>{if(Array.isArray(e?.result?.forked)&&0===e.result.forked.length||e?.result?.forked==="[]")return s({id:"message_status_skipped",defaultMessage:"Skipped"});if(!t||0===t.length)return s("SUCCESS"===e.status?{id:"message_status_sent",defaultMessage:"Sent"}:{id:"message_status_processing",defaultMessage:"Processing"});let r=t.some(e=>"SUCCESS"===e.status),a=t.every(e=>"FAILED"===e.status);return s(t.some(e=>"NEW"===e.status||"ALLOCATED"===e.status)?{id:"message_status_sending",defaultMessage:"Sending"}:r&&!a?{id:"message_status_sent",defaultMessage:"Sent"}:a?{id:"message_status_undeliverable",defaultMessage:"Undeliverable"}:{id:"message_status_processing",defaultMessage:"Processing"})})(e,r,i),o=((e,t)=>{if(Array.isArray(e?.result?.forked)&&0===e.result.forked.length||e?.result?.forked==="[]")return"slate";if(!t||0===t.length)return"SUCCESS"===e.status?"green":"yellow";let s=t.some(e=>"SUCCESS"===e.status),r=t.every(e=>"FAILED"===e.status);return t.some(e=>"NEW"===e.status||"ALLOCATED"===e.status)?"blue":s&&!r?"green":r?"red":"yellow"})(e,r),c={dateStyle:"short",timeStyle:"short"},u=Object.entries(r?.reduce((e,t)=>(e[t.type]||(e[t.type]=0),e[t.type]++,e),{})||{}).map(([e,t])=>`${t} ${e}${t>1?"s":""}`).join(", ")||i({id:"no_retries",defaultMessage:"No retries"});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(x.f.Row,{className:"bg-slate-50 dark:bg-slate-800/50",children:[(0,t.jsx)(x.f.Cell,{children:(0,t.jsxs)("div",{className:"flex items-center text-sm",children:[(0,t.jsx)("button",{onClick:l,className:"mr-2 p-1 hover:bg-slate-200 dark:hover:bg-slate-700 rounded",children:a?(0,t.jsx)(N.f,{className:"w-4 h-4"}):(0,t.jsx)(S,{className:"w-4 h-4"})}),(0,t.jsx)(h.default,{href:`/works?workerId=${e._id}`,className:"text-slate-900 dark:text-slate-300 font-medium",children:e?.input?.template}),(0,t.jsxs)("span",{className:"ml-2 text-slate-500 text-xs",children:["(",u,")"]})]})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)(g.f,{text:n,color:o,square:!0})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.created?d(e.created,c):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.scheduled?d(e.scheduled,c):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.started?d(e.started,c):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.finished?d(e.finished,c):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:"-"})})]}),a&&r?.map(e=>(0,t.jsxs)(x.f.Row,{className:"bg-slate-25 dark:bg-slate-900/30",children:[(0,t.jsx)(x.f.Cell,{children:(0,t.jsxs)("div",{className:"flex items-center text-sm pl-8",children:[(0,t.jsx)(h.default,{href:`/works?workerId=${e._id}`,className:"text-slate-700 dark:text-slate-400",children:e.type}),e.retries>0&&(0,t.jsxs)("span",{className:"ml-2 text-xs text-orange-600 dark:text-orange-400",children:["(",i({id:"retry_remaining",defaultMessage:"retry"})," ",e.retries,")"]})]})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)(g.f,{text:e.status,color:p.Q[e.status],square:!0})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.created?d(e.created,c):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.scheduled?d(e.scheduled,c):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.started?d(e.started,c):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.finished?d(e.finished,c):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:"-"})})]},e._id))]})},M=({messageGroups:e,sortable:r,expandedMessages:a,onToggleExpanded:l})=>{let{formatMessage:i}=(0,s.S)();return(0,t.jsxs)(x.f,{className:"min-w-full",children:[(0,t.jsxs)(x.f.Row,{header:!0,enablesort:r,children:[(0,t.jsx)(x.f.Cell,{sortKey:"type",children:i({id:"work_type_header",defaultMessage:"Type"})}),(0,t.jsx)(x.f.Cell,{sortKey:"status",children:i({id:"status",defaultMessage:"Status"})}),(0,t.jsx)(x.f.Cell,{sortKey:"created",children:i({id:"created",defaultMessage:"Created"})}),(0,t.jsx)(x.f.Cell,{sortKey:"scheduled",defaultSortDirection:"DESC",children:i({id:"scheduled",defaultMessage:"Scheduled"})}),(0,t.jsx)(x.f.Cell,{sortKey:"started",children:i({id:"started",defaultMessage:"Started"})}),(0,t.jsx)(x.f.Cell,{sortKey:"finished",children:i({id:"finished",defaultMessage:"Finished"})}),(0,t.jsx)(x.f.Cell,{children:i({id:"duration",defaultMessage:"Duration"})})]}),e.filter(e=>e?.message?.input?.template)?.map(e=>(0,t.jsx)(C,{messageWork:e.message,childWorks:e.children,expanded:a.has(e.message._id),onToggleExpanded:()=>l(e.message._id)},`${e.message._id}-${e?.message?.created}-${e?.message?.status}-${e?.message?.scheduled}-${e?.message?.finished}`))]})};var _=e.i(41523),E=e.i(51128),$=e.i(52835);let D=a.forwardRef(function({title:e,titleId:t,...s},r){return a.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":t},s),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75"}))});var I=e.i(85192);e.s(["default",0,()=>{let{query:e,push:d}=(0,r.useRouter)(),{formatMessage:n}=(0,s.S)(),[o,u]=(0,a.useState)(new Set),m={created:{start:e?.start,end:e?.end},status:e?.status?.split(","),types:e?.tab==="messages"?["MESSAGE","EMAIL",...(e.types??"").split(",")].filter(Boolean):e?.types?.split(",")},x=parseInt(e?.limit,10)||p.h,h=parseInt(e?.skip,10)||0,g=e?.sort||"",{queryString:b,workerId:j,...v}=e,k=(0,c.R)(g),{workQueue:y,loadMore:N,loading:S,activeWorkTypes:C,total:O,hasMore:T}=(0,$.f)({queryString:b,limit:x,...m,sort:k,offset:h}),{messageGroups:L}=(0,a.useMemo)(()=>({messageGroups:(e=>{if(!e)return[];let t=e.filter(e=>"MESSAGE"===e.type),s=e.filter(e=>e.original&&e.original._id),r=[];return t.forEach(e=>{let t=s.filter(t=>t.original._id===e._id);r.push({message:e,children:t.sort((e,t)=>e.retries-t.retries)})}),r.sort((e,t)=>new Date(t.message.created).getTime()-new Date(e.message.created).getTime())})(y)}),[y]),W=(0,a.useMemo)(()=>[{id:"all",title:n({id:"all_workers",defaultMessage:"All Workers"}),Icon:(0,t.jsx)(I.f,{className:"h-5 w-5"})},{id:"messages",title:n({id:"messages",defaultMessage:"Messages"}),Icon:(0,t.jsx)(D,{className:"h-5 w-5"})}],[n]),R=(0,a.useCallback)(e=>{let{skip:t,...s}=v;e?d({query:(0,c._)(s,e,"queryString")}):d({query:(0,c._)(v)})},[v,d]),q=(0,a.useCallback)(e=>{u(t=>{let s=new Set(t);return s.has(e)?s.delete(e):s.add(e),s})},[]),A=(0,a.useCallback)(({selectedView:e="all"})=>{let s="messages"===e,r=s?T&&L.length>0:T;return(0,t.jsx)(l.f,{loading:S,hasMore:r,onLoadMore:N,threshold:s?600:200,children:S&&y?.length===0?(0,t.jsx)(i.f,{}):s?(0,t.jsx)(M,{messageGroups:L,sortable:!0,expandedMessages:o,onToggleExpanded:q}):(0,t.jsx)(w,{workQueue:y,sortable:!0})})},[S,T,N,y,L,o,q]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f,{workTypes:e?.tab==="messages"?[]:C}),(0,t.jsx)(E.f,{onSearchChange:R,defaultSearchValue:b,children:(0,t.jsx)(_.f,{tabItems:W,defaultTab:"all",children:(0,t.jsx)(A,{})})})]})}],6506)},72200,e=>{var t=e.i(91398),s=e.i(69322),r=e.i(66773),a=e.i(3828),l=e.i(61494),i=e.i(17644),d=e.i(58971),n=e.i(9459),o=e.i(6506);e.s(["default",0,()=>{let{query:e}=(0,a.useRouter)(),{hasRole:c}=(0,d.f)(),{formatMessage:u}=(0,s.S)(),{workerId:m}=e;return m?(0,t.jsx)(n.default,{workerId:m}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.f,{depth:3,currentPageTitle:u({id:"work_queue_header",defaultMessage:"Work queue"})}),(0,t.jsx)(i.f,{title:u({id:"work_queue_header",defaultMessage:"Work queue"}),addPath:c(r.C.ManageWorker)&&"/works/management",addButtonText:u({id:"manage",defaultMessage:"Manage"})}),(0,t.jsx)(o.default,{})]})}])},76204,e=>{var t=e.i(24669),s=e.i(91788),r=e.i(30928),a=e.i(52006);let l=e.i(21953).f?s.useLayoutEffect:s.useEffect;var i=e.i(98926);function d(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["f",0,function(e,n){let o=(0,i.f)(n?.client),[c,u]=s.useState(()=>d(o)),m=s.useRef({result:c,mutationId:0,isMounted:!0,client:o,mutation:e,options:n});l(()=>{Object.assign(m.current,{client:o,options:n,mutation:e})});let f=s.useCallback((e={})=>{let{options:s,mutation:l}=m.current,i={...s,mutation:l},d=e.client||m.current.client,n="function"==typeof e.context?e.context(s?.context):e.context;!m.current.result.loading&&m.current.isMounted&&u(m.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:d});let o=++m.current.mutationId,c=(0,r.f)(i,{...e,context:n});return(0,a.f)(d.mutate(c).then(s=>{let{data:r,error:a}=s,l=e.onError||m.current.options?.onError;if(a&&l&&l(a,c),o===m.current.mutationId){let e={called:!0,loading:!1,data:r,error:a,client:d};m.current.isMounted&&!(0,t.f)(m.current.result,e)&&u(m.current.result=e)}let i=e.onCompleted||m.current.options?.onCompleted;return a||i?.(s.data,c),s},s=>{if(o===m.current.mutationId&&m.current.isMounted){let e={loading:!1,error:s,data:void 0,called:!0,client:d};(0,t.f)(m.current.result,e)||u(m.current.result=e)}let r=e.onError||m.current.options?.onError;throw r&&r(s,c),s}))},[]),x=s.useCallback(()=>{if(m.current.isMounted){let e=d(m.current.client);Object.assign(m.current,{mutationId:0,result:e}),u(e)}},[]);return s.useEffect(()=>{let e=m.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[f,{reset:x,...c}]}],76204)},86129,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...r},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},r),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(["f",0,s],86129)},38187,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...r},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},r),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(["f",0,s],38187)},37369,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...r},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["f",0,s],37369)},24608,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...r},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))});e.s(["f",0,s],24608)},36980,e=>{e.s(["f",0,function(e){return t=>{let s=(e?Math[e]:Math.trunc)(t);return 0===s?0:s}}])},60836,e=>{var t=e.i(35113);e.s(["f",0,function(e,s){let r=(0,t.f)(e)-(0,t.f)(s);return r<0?-1:r>0?1:r}])},9356,e=>{var t=e.i(35113);e.s(["f",0,function(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,t.f)(e)))}],9356)},49543,e=>{var t=e.i(35113);e.s(["f",0,function(e,s){let r=(0,t.f)(e,s?.in);return r.setHours(0,0,0,0),r}])},35113,2848,98170,e=>{let t=Symbol.for("constructDateFrom");function s(e,s){return"function"==typeof e?e(s):e&&"object"==typeof e&&t in e?e[t](s):e instanceof Date?new e.constructor(s):new Date(s)}e.s(["C",0,t,"_",0,864e5,"r",0,36e5,"z",0,6e4,"A",0,6048e5,"k",0,1440,"d",0,43200,"l",0,525600],2848),e.s(["f",0,s],98170),e.s(["f",0,function(e,t){return s(t||e,e)}],35113)},34980,(e,t,s)=>{var r=e.r(49957),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},d={};function n(e){return r.isMemo(e)?i:d[e.$$typeof]||a}d[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},d[r.Memo]=i;var o=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,x=Object.prototype;t.exports=function e(t,s,r){if("string"!=typeof s){if(x){var a=f(s);a&&a!==x&&e(t,a,r)}var i=c(s);u&&(i=i.concat(u(s)));for(var d=n(t),h=n(s),g=0;g<i.length;++g){var p=i[g];if(!l[p]&&!(r&&r[p])&&!(h&&h[p])&&!(d&&d[p])){var b=m(s,p);try{o(t,p,b)}catch(e){}}}}return t}},40563,(e,t,s)=>{var r="function"==typeof Symbol&&Symbol.for,a=r?Symbol.for("react.element"):60103,l=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,d=r?Symbol.for("react.strict_mode"):60108,n=r?Symbol.for("react.profiler"):60114,o=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,m=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,x=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,p=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,j=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,k=r?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case u:case m:case i:case n:case d:case x:return e;default:switch(e=e&&e.$$typeof){case c:case f:case p:case g:case o:return e;default:return t}}case l:return t}}}function w(e){return y(e)===m}s.AsyncMode=u,s.ConcurrentMode=m,s.ContextConsumer=c,s.ContextProvider=o,s.Element=a,s.ForwardRef=f,s.Fragment=i,s.Lazy=p,s.Memo=g,s.Portal=l,s.Profiler=n,s.StrictMode=d,s.Suspense=x,s.isAsyncMode=function(e){return w(e)||y(e)===u},s.isConcurrentMode=w,s.isContextConsumer=function(e){return y(e)===c},s.isContextProvider=function(e){return y(e)===o},s.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},s.isForwardRef=function(e){return y(e)===f},s.isFragment=function(e){return y(e)===i},s.isLazy=function(e){return y(e)===p},s.isMemo=function(e){return y(e)===g},s.isPortal=function(e){return y(e)===l},s.isProfiler=function(e){return y(e)===n},s.isStrictMode=function(e){return y(e)===d},s.isSuspense=function(e){return y(e)===x},s.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===m||e===n||e===d||e===x||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===g||e.$$typeof===o||e.$$typeof===c||e.$$typeof===f||e.$$typeof===j||e.$$typeof===v||e.$$typeof===k||e.$$typeof===b)},s.typeOf=y},49957,(e,t,s)=>{e.i(50461),t.exports=e.r(40563)}],29543,(e,t,s)=>{let r="/works";(window.__NEXT_P=window.__NEXT_P||[]).push([r,()=>e.r(72200)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([r])})}]);
@@ -0,0 +1,59 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[61494,e=>{var r=e.i(91398),t=e.i(41158),a=e.i(3828),s=e.i(69322);e.s(["f",0,({routeName:e=null,currentPageTitle:o=null,depth:l=null})=>{let i=(0,a.useRouter)(),{formatMessage:n}=(0,s.S)(),d={home:"home",products:"products",orders:"orders",users:"users",assortments:"assortments",filters:"filters",tokens:"tokens",quotations:"quotations",enrollments:"enrollments",activities:"activities",works:"work_queue",events:"events",currency:"currencies",country:"countries",language:"languages","delivery-provider":"delivery_providers","payment-provider":"payment_providers","warehousing-provider":"warehousing_provider",system:"system",account:"account",new:"new",edit:"edit"},c=i.asPath?.split("/")?.filter((e,r)=>i.asPath?.split("/")?.indexOf(e)===r);if(1===c.length)return null;let u="";l&&c.splice(l),e&&(c[c.length-1]=e);let f=c?.map(r=>{if(u+=`${r}/`,!r)return{name:n({id:"home",defaultMessage:"Home"}),path:"/"};let t=r?.split("?")[0],a=e?t:t.replace(/-/g," "),s=d[t];return{name:s?n({id:s,defaultMessage:a}):decodeURIComponent(a),path:u.replace(/.$/,"")}});return(0,r.jsx)("nav",{className:"mb-5 hidden sm:flex lg:mt-5 lg:mb-8","aria-label":"Breadcrumb",children:(0,r.jsx)("ol",{className:"flex items-center space-x-4",children:f?.map((e,a)=>(0,r.jsx)("li",{children:(0,r.jsxs)("div",{className:"flex items-center",children:[0!==a&&(0,r.jsx)("svg",{className:"mr-4 h-5 w-5 shrink-0 text-slate-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,r.jsx)(t.default,{href:e.path,className:"text-sm font-medium capitalize text-slate-500 dark:text-slate-400 dark:hover:text-slate-300 hover:text-slate-700 focus:outline-hidden focus:ring-2 focus:ring-slate-800 rounded-md px-1 py-1",children:a===f.length-1&&o?o:e.name})]})},e.path))})})}])},81013,e=>{var r=e.i(91398),t=e.i(72043);e.s(["f",0,({text:e,children:a,onClick:s,className:o="",disabled:l=!1,id:i="",variant:n="primary",size:d="md",type:c="button",loading:u=!1,icon:f,iconRight:p,fullWidth:m=!1,rounded:b="md",ariaLabel:v,...y})=>{let g=a||e,x=(f||p)&&g?"gap-2":"";return(0,r.jsx)("button",{id:i,type:c,disabled:l||u,onClick:s,"aria-label":v,className:(0,t.default)("inline-flex items-center justify-center font-medium shadow-xs focus:outline-hidden focus:ring-2 focus:ring-offset-2 transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-50",{xs:"px-2.5 py-1.5 text-xs h-6",sm:"px-3 py-2 text-sm h-8",md:"px-4 py-2 text-sm h-9",lg:"px-6 py-3 text-base h-11"}[d],{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}[b],{primary:"border border-slate-800 dark:border-slate-600 bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:ring-slate-800 dark:focus:ring-slate-400",secondary:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-700 dark:text-slate-200 hover:bg-slate-50 dark:hover:bg-slate-700 focus:ring-slate-500",tertiary:"border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700 focus:ring-slate-400",quaternary:"bg-transparent text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",danger:"border border-rose-500 dark:border-rose-400 bg-white dark:bg-slate-800 text-rose-600 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/10 focus:ring-rose-500",ghost:"bg-transparent border border-transparent text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",success:"border border-emerald-500 dark:border-emerald-400 bg-emerald-50 dark:bg-emerald-900/20 text-emerald-600 dark:text-emerald-400 hover:bg-emerald-100 dark:hover:bg-emerald-900/30 focus:ring-emerald-500",neutral:"border border-slate-300 dark:border-slate-600 bg-slate-100 dark:bg-slate-700 text-slate-600 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:ring-slate-400",input:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-900 dark:text-slate-100 hover:border-slate-400 dark:hover:border-slate-500 focus:ring-slate-500 focus:border-slate-500"}[n],x,{"w-full":m},o),...y,children:u?(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),g]}):(0,r.jsxs)(r.Fragment,{children:[f,g,p]})})}])},68057,e=>{var r=e.i(91398),t=e.i(69322),a=e.i(69211),s=e.i(73419),o=e.i(99160),l=e.i(98949),i=e.i(5505);e.s(["f",0,({onSubmit:e,onSubmitSuccess:n,providerTypes:d,providerInterfaces:c,onProviderChange:u,readOnly:f})=>{let{formatMessage:p}=(0,t.S)(),m=p({id:"provider_created_success",defaultMessage:"Provider created successfully!"}),b=(0,l.f)({submit:e,onSubmitSuccess:n,successMessage:m,enableReinitialize:!0,initialValues:{adapterKey:"",type:""}});return(0,r.jsx)(i.U,{children:(0,r.jsx)(a.f,{form:b,children:(0,r.jsxs)("div",{className:"shadow-sm dark:shadow-none sm:max-w-full sm:rounded-lg",children:[(0,r.jsxs)("div",{className:"px-4 pt-4 pb-6",children:[(0,r.jsx)(s.f,{onChange:e=>u(e.target.value),name:"type",disabled:f,required:!0,label:p({id:"type",defaultMessage:"Type"}),options:d,className:"mb-5"}),(0,r.jsx)(s.f,{name:"adapterKey",required:!0,disabled:f,options:c,label:p({id:"adapter",defaultMessage:"Adapter"}),className:"mt-2"})]}),!f&&(0,r.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-6 px-5 text-right",children:(0,r.jsx)(o.f,{label:p({id:"create_provider",defaultMessage:"Create provider"})})})]})})})}])},17644,e=>{var r=e.i(91398),t=e.i(58678),a=e.i(41158),s=e.i(69322),o=e.i(37369),l=e.i(81013);e.s(["f",0,({headerText:e=null,onEdit:i=null,onDelete:n=null,children:d=null,title:c=null,addPath:u=null,addButtonText:f=null})=>{let{formatMessage:p}=(0,s.S)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.default,{children:(0,r.jsxs)("title",{children:["Unchained AdminUI - ",c||e," "]})}),(0,r.jsx)("div",{className:"flex gap-3 flex-wrap items-center justify-between",children:(0,r.jsxs)("div",{className:"flex items-center flex-wrap justify-between w-full gap-4",children:[e&&(0,r.jsx)("h2",{className:"text-2xl font-medium text-slate-900 dark:text-slate-300 sm:truncate sm:text-3xl lg:text-4xl",children:e}),(0,r.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[d,u&&(0,r.jsx)(a.default,{href:u,children:(0,r.jsx)(l.f,{variant:"secondary",icon:(0,r.jsx)(o.f,{className:"h-5 w-5"}),text:f||p({id:"add",defaultMessage:"Add"})})}),i&&(0,r.jsx)(l.f,{variant:"secondary",onClick:i,text:p({id:"edit",defaultMessage:"Edit"})}),n&&(0,r.jsx)(l.f,{variant:"danger",onClick:n,text:p({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},1504,e=>{e.s(["f",0,(e,r,t)=>Object.assign({},...e?.map(e=>({[e[t]]:e[r]}))||[])])},36494,e=>{var r=e.i(59080);let t=r.f`
2
+ fragment AddressFragment on Address {
3
+ firstName
4
+ lastName
5
+ company
6
+ addressLine
7
+ postalCode
8
+ city
9
+ countryCode
10
+ regionCode
11
+ }
12
+ `;e.s(["f",0,t])},73319,e=>{let r=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["Q",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"C",0,r,"T",0,e=>!(!e||null==e||r(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},93333,e=>{var r=e.i(59080),t=e.i(32171);let a=r.f`
13
+ query DeliveryProvidersType {
14
+ deliveryProviderType: __type(name: "DeliveryProviderType") {
15
+ options: enumValues {
16
+ value: name
17
+ label: description
18
+ }
19
+ }
20
+ }
21
+ `;e.s(["f",0,()=>{let{data:e,loading:r,error:s}=(0,t.f)(a);return{deliveryProviderType:e?.deliveryProviderType?.options||[],loading:r,error:s}}])},73419,e=>{var r=e.i(91398),t=e.i(72043),a=e.i(60741),s=e.i(29691);e.s(["f",0,e=>{let{options:o,...l}=(0,a.f)(e),{className:i}=e||{className:""};return(0,r.jsx)(s.f,{...l,children:(0,r.jsx)("div",{className:"select-wrap",children:(0,r.jsxs)("select",{className:(0,t.default)("block w-full dark:bg-slate-900 dark:text-white rounded-md border-1 border-slate-300 dark:border-slate-700 py-2.5 pl-3 pr-10 text-base text-black shadow-xs focus:outline-hidden focus:ring-2 focus:ring-slate-800 sm:text-sm",i,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!l.error}),disabled:l.disabled,id:l.name,name:l.name,onChange:l.onChange,onBlur:l.onBlur,value:l.value,children:[(0,r.jsx)("option",{className:"dark:text-slate-200",value:"",disabled:l.required,hidden:l.required,children:l.placeholder||l.label}),Object.entries(o).map(([e,t])=>(0,r.jsx)("option",{className:"dark:text-slate-200",value:e,children:t},e))]})})})}])},99160,e=>{var r=e.i(91398),t=e.i(72043),a=e.i(38865),s=e.i(61898);e.s(["f",0,({label:e,disabled:o=!1,className:l="",hidden:i=!1,...n})=>{let d=(0,a.m)(),{...c}=n,u=Object.fromEntries(Object.keys(d.initialValues).map(e=>[e,d.getFieldMeta(e)])),{disabled:f}=(0,s.f)(),p=Object.values(u).reduce((e,{error:r,touched:t})=>e||r&&t,!1),m=o||f||d.isSubmitting||p,b=d.isSubmitting&&!p,v=(o||f||p)&&!d.isSubmitting;return(0,r.jsx)("input",{className:(0,t.default)("inline-flex cursor-pointer justify-center rounded-sm border border-slate-300 px-4 py-2 text-center text-sm font-medium leading-5 shadow-sm hover:shadow-md focus:ring-slate-800 dark:focus:ring-slate-400",l,{"bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900":v,"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600":b,"bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent":!m,hidden:i}),"aria-label":e,type:"submit",value:e,disabled:m,...c})}])},8320,e=>{var r=e.i(91398),t=e.i(91788),a=e.i(66773),s=e.i(3828),o=e.i(69322),l=e.i(58971),i=e.i(61494),n=e.i(68057),d=e.i(17644),c=e.i(1504),u=e.i(59080),f=e.i(76204),p=e.i(36494);let m=u.f`
22
+ mutation CreateDeliveryProvider(
23
+ $deliveryProvider: CreateDeliveryProviderInput!
24
+ ) {
25
+ createDeliveryProvider(deliveryProvider: $deliveryProvider) {
26
+ _id
27
+ created
28
+ updated
29
+ deleted
30
+ type
31
+ isActive
32
+ configuration
33
+ interface {
34
+ _id
35
+ label
36
+ version
37
+ }
38
+ configurationError
39
+ ... on DeliveryProviderPickUp {
40
+ pickUpLocations {
41
+ _id
42
+ name
43
+ address {
44
+ ...AddressFragment
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ ${p.f}
51
+ `;var b=e.i(32171);let v=u.f`
52
+ query DeliveryInterfaces($providerType: DeliveryProviderType) {
53
+ deliveryInterfaces(type: $providerType) {
54
+ _id
55
+ value: _id
56
+ label
57
+ }
58
+ }
59
+ `;var y=e.i(93333);e.s(["default",0,()=>{let[e,u]=(0,t.useState)(a.F.Shipping),{formatMessage:p}=(0,o.S)(),{createDeliveryProvider:g}=(()=>{let[e,{data:r,error:t,loading:a}]=(0,f.f)(m);return{createDeliveryProvider:async({deliveryProvider:{adapterKey:r,type:t}})=>e({variables:{deliveryProvider:{adapterKey:r,type:t}},refetchQueries:["DeliveryProviders","ShopStatus"]}),newDeliveryProvider:r?.createDeliveryProvider,loading:a,error:t}})(),{deliveryProviderType:x}=(0,y.f)(),{deliveryInterfaces:h}=(({providerType:e=null})=>{let{data:r,loading:t,error:a}=(0,b.f)(v,{skip:!e,variables:{providerType:e}});return{deliveryInterfaces:r?.deliveryInterfaces||[],loading:t,error:a}})({providerType:e}),{hasRole:k}=(0,l.f)(),j=async({adapterKey:e,type:r})=>{let{data:t,error:a}=await g({deliveryProvider:{adapterKey:e,type:r}});return!a&&{success:!0,data:t?.createDeliveryProvider}},w=(0,s.useRouter)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.f,{}),(0,r.jsxs)("div",{className:"mx-auto sm:max-w-2xl",children:[(0,r.jsx)(d.f,{headerText:p({id:"new_delivery_provider",defaultMessage:"New delivery provider"})}),(0,r.jsx)("div",{className:"mt-6",children:(0,r.jsx)(n.f,{readOnly:!k(a.C.ManageDeliveryProviders),providerInterfaces:(0,c.f)(h,"label","value"),providerTypes:(0,c.f)(x,"label","value"),onSubmit:j,onSubmitSuccess:(e,{_id:r})=>{w.replace(`/delivery-provider?deliveryProviderId=${r}`)},onProviderChange:e=>u(e)})})]})]})}],8320)},76204,e=>{var r=e.i(24669),t=e.i(91788),a=e.i(30928),s=e.i(52006);let o=e.i(21953).f?t.useLayoutEffect:t.useEffect;var l=e.i(98926);function i(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["f",0,function(e,n){let d=(0,l.f)(n?.client),[c,u]=t.useState(()=>i(d)),f=t.useRef({result:c,mutationId:0,isMounted:!0,client:d,mutation:e,options:n});o(()=>{Object.assign(f.current,{client:d,options:n,mutation:e})});let p=t.useCallback((e={})=>{let{options:t,mutation:o}=f.current,l={...t,mutation:o},i=e.client||f.current.client,n="function"==typeof e.context?e.context(t?.context):e.context;!f.current.result.loading&&f.current.isMounted&&u(f.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:i});let d=++f.current.mutationId,c=(0,a.f)(l,{...e,context:n});return(0,s.f)(i.mutate(c).then(t=>{let{data:a,error:s}=t,o=e.onError||f.current.options?.onError;if(s&&o&&o(s,c),d===f.current.mutationId){let e={called:!0,loading:!1,data:a,error:s,client:i};f.current.isMounted&&!(0,r.f)(f.current.result,e)&&u(f.current.result=e)}let l=e.onCompleted||f.current.options?.onCompleted;return s||l?.(t.data,c),t},t=>{if(d===f.current.mutationId&&f.current.isMounted){let e={loading:!1,error:t,data:void 0,called:!0,client:i};(0,r.f)(f.current.result,e)||u(f.current.result=e)}let a=e.onError||f.current.options?.onError;throw a&&a(t,c),t}))},[]),m=t.useCallback(()=>{if(f.current.isMounted){let e=i(f.current.client);Object.assign(f.current,{mutationId:0,result:e}),u(e)}},[]);return t.useEffect(()=>{let e=f.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[p,{reset:m,...c}]}],76204)},37369,e=>{var r=e.i(91788);let t=r.forwardRef(function({title:e,titleId:t,...a},s){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["f",0,t],37369)},9356,e=>{var r=e.i(35113);e.s(["f",0,function(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,r.f)(e)))}],9356)},49543,e=>{var r=e.i(35113);e.s(["f",0,function(e,t){let a=(0,r.f)(e,t?.in);return a.setHours(0,0,0,0),a}])},35113,2848,98170,e=>{let r=Symbol.for("constructDateFrom");function t(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&r in e?e[r](t):e instanceof Date?new e.constructor(t):new Date(t)}e.s(["C",0,r,"_",0,864e5,"r",0,36e5,"z",0,6e4,"A",0,6048e5,"k",0,1440,"d",0,43200,"l",0,525600],2848),e.s(["f",0,t],98170),e.s(["f",0,function(e,r){return t(r||e,e)}],35113)},34980,(e,r,t)=>{var a=e.r(49957),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function n(e){return a.isMemo(e)?l:i[e.$$typeof]||s}i[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[a.Memo]=l;var d=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;r.exports=function e(r,t,a){if("string"!=typeof t){if(m){var s=p(t);s&&s!==m&&e(r,s,a)}var l=c(t);u&&(l=l.concat(u(t)));for(var i=n(r),b=n(t),v=0;v<l.length;++v){var y=l[v];if(!o[y]&&!(a&&a[y])&&!(b&&b[y])&&!(i&&i[y])){var g=f(t,y);try{d(r,y,g)}catch(e){}}}}return r}},40563,(e,r,t)=>{var a="function"==typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103,o=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,i=a?Symbol.for("react.strict_mode"):60108,n=a?Symbol.for("react.profiler"):60114,d=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,u=a?Symbol.for("react.async_mode"):60111,f=a?Symbol.for("react.concurrent_mode"):60111,p=a?Symbol.for("react.forward_ref"):60112,m=a?Symbol.for("react.suspense"):60113,b=a?Symbol.for("react.suspense_list"):60120,v=a?Symbol.for("react.memo"):60115,y=a?Symbol.for("react.lazy"):60116,g=a?Symbol.for("react.block"):60121,x=a?Symbol.for("react.fundamental"):60117,h=a?Symbol.for("react.responder"):60118,k=a?Symbol.for("react.scope"):60119;function j(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case s:switch(e=e.type){case u:case f:case l:case n:case i:case m:return e;default:switch(e=e&&e.$$typeof){case c:case p:case y:case v:case d:return e;default:return r}}case o:return r}}}function w(e){return j(e)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=d,t.Element=s,t.ForwardRef=p,t.Fragment=l,t.Lazy=y,t.Memo=v,t.Portal=o,t.Profiler=n,t.StrictMode=i,t.Suspense=m,t.isAsyncMode=function(e){return w(e)||j(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return j(e)===c},t.isContextProvider=function(e){return j(e)===d},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},t.isForwardRef=function(e){return j(e)===p},t.isFragment=function(e){return j(e)===l},t.isLazy=function(e){return j(e)===y},t.isMemo=function(e){return j(e)===v},t.isPortal=function(e){return j(e)===o},t.isProfiler=function(e){return j(e)===n},t.isStrictMode=function(e){return j(e)===i},t.isSuspense=function(e){return j(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===f||e===n||e===i||e===m||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===v||e.$$typeof===d||e.$$typeof===c||e.$$typeof===p||e.$$typeof===x||e.$$typeof===h||e.$$typeof===k||e.$$typeof===g)},t.typeOf=j},49957,(e,r,t)=>{e.i(50461),r.exports=e.r(40563)}],74795,(e,r,t)=>{let a="/delivery-provider/new";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(8320)]),r.hot&&r.hot.dispose(function(){window.__NEXT_P.push([a])})}]);