@unchainedshop/admin-ui 4.8.30 → 4.8.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (540) hide show
  1. package/dist/components/ui/Loading.d.ts +8 -1
  2. package/dist/components/ui/Loading.d.ts.map +1 -1
  3. package/dist/components/ui/index.d.ts +1 -0
  4. package/dist/components/ui/index.d.ts.map +1 -1
  5. package/dist/ui.js +58 -25
  6. package/out/403/index.html +3 -2
  7. package/out/404/index.html +3 -2
  8. package/out/404.html +3 -2
  9. package/out/423/index.html +3 -2
  10. package/out/500/index.html +3 -2
  11. package/out/_next/static/4ESrB8YpR2n44PFePtbgX/_buildManifest.js +258 -0
  12. package/out/_next/static/chunks/0-_s79k4_7ei_.js +5 -0
  13. package/out/_next/static/chunks/00aks9rqke2x0.js +7 -0
  14. package/out/_next/static/chunks/00az81dk4vdda.js +54 -0
  15. package/out/_next/static/chunks/01e4gd649r2tq.js +7 -0
  16. package/out/_next/static/chunks/01j2wi94k90x0.js +5 -0
  17. package/out/_next/static/chunks/043i-g05cyvrd.js +1 -0
  18. package/out/_next/static/chunks/04kyktzbxprj0.js +61 -0
  19. package/out/_next/static/chunks/05p330iybjojg.js +44 -0
  20. package/out/_next/static/chunks/05qk8ozexvlxp.js +5 -0
  21. package/out/_next/static/chunks/0696190awbl-j.js +100 -0
  22. package/out/_next/static/chunks/06i50j458a7g5.js +12 -0
  23. package/out/_next/static/chunks/07o9g5hqfpvjc.js +12 -0
  24. package/out/_next/static/chunks/08o61gwabp3h1.js +33 -0
  25. package/out/_next/static/chunks/09avk6mqdin_1.js +116 -0
  26. package/out/_next/static/chunks/0_bvgo8ev4gs7.js +7 -0
  27. package/out/_next/static/chunks/0amj69l-d5-85.js +1 -0
  28. package/out/_next/static/chunks/0b05sca2hdcys.js +30 -0
  29. package/out/_next/static/chunks/0c3kwkqr9evm4.js +5 -0
  30. package/out/_next/static/chunks/0c4jv8pwvpxei.js +1 -0
  31. package/out/_next/static/chunks/0c7ljn9lo_0oh.js +5 -0
  32. package/out/_next/static/chunks/0dqw1oya___hr.js +1 -0
  33. package/out/_next/static/chunks/0ewr86ctcw7fx.js +1 -0
  34. package/out/_next/static/chunks/0jham55cr3rhy.js +81 -0
  35. package/out/_next/static/chunks/0lr7o7tyjmrmf.js +8 -0
  36. package/out/_next/static/chunks/0mx8opz23nwlb.js +5 -0
  37. package/out/_next/static/chunks/0n3ixknyc6_ma.js +1 -0
  38. package/out/_next/static/chunks/0o0e82-3pc7ur.js +78 -0
  39. package/out/_next/static/chunks/0ohk7l49gjm62.js +5 -0
  40. package/out/_next/static/chunks/0p31l6a9hynnt.js +6 -0
  41. package/out/_next/static/chunks/0p7said9rdor1.js +1 -0
  42. package/out/_next/static/chunks/0q2e8h8498pvo.js +4 -0
  43. package/out/_next/static/chunks/0qa-zbgmv-k3p.js +9 -0
  44. package/out/_next/static/chunks/0qj3xdz043z8l.js +12 -0
  45. package/out/_next/static/chunks/0skst735jufgh.js +71 -0
  46. package/out/_next/static/chunks/0t28q5fb2jp-6.js +8 -0
  47. package/out/_next/static/chunks/0tmamaq8exyij.js +1 -0
  48. package/out/_next/static/chunks/0uls4bq8a7gyh.js +18 -0
  49. package/out/_next/static/chunks/0ydy3ky15gx62.js +1 -0
  50. package/out/_next/static/chunks/0zh311lu9jf2x.js +5 -0
  51. package/out/_next/static/chunks/0zpyyygbqx3pf.js +152 -0
  52. package/out/_next/static/chunks/0zzoylv2rl1xu.js +3 -0
  53. package/out/_next/static/chunks/1---h4b693b81.js +1 -0
  54. package/out/_next/static/chunks/10m_etq9t2pkv.js +7 -0
  55. package/out/_next/static/chunks/11ehf3t7qzbua.js +4 -0
  56. package/out/_next/static/chunks/120k989vjsno4.js +1 -0
  57. package/out/_next/static/chunks/12yd8t4k6c0t1.js +1 -0
  58. package/out/_next/static/chunks/153ec1_-yt3jb.js +344 -0
  59. package/out/_next/static/chunks/16le3cqxj12u6.js +5 -0
  60. package/out/_next/static/chunks/16zxfacsu_jbq.js +1 -0
  61. package/out/_next/static/chunks/17fibl49qtd6c.js +8 -0
  62. package/out/_next/static/chunks/18xyj4i_i5lyn.js +6 -0
  63. package/out/_next/static/chunks/1_3e6x79fcyv3.js +5 -0
  64. package/out/_next/static/chunks/1_55km6vm5mc0.js +596 -0
  65. package/out/_next/static/chunks/1aej6iqnlr74p.js +1 -0
  66. package/out/_next/static/chunks/1asbed4hne69c.js +7 -0
  67. package/out/_next/static/chunks/1c60nzy_x4kez.js +277 -0
  68. package/out/_next/static/chunks/1c77vl6xdqfd4.js +15 -0
  69. package/out/_next/static/chunks/1da89agg-nacc.js +224 -0
  70. package/out/_next/static/chunks/1f7-0l47bx76m.js +13 -0
  71. package/out/_next/static/chunks/1fbsyczyh9hwh.js +1 -0
  72. package/out/_next/static/chunks/1g96s7-fwvokd.js +2 -0
  73. package/out/_next/static/chunks/1gqd9vrno0rq4.js +315 -0
  74. package/out/_next/static/chunks/1hih2cxmgqcd3.js +10 -0
  75. package/out/_next/static/chunks/1hviha1jcz_og.js +4 -0
  76. package/out/_next/static/chunks/1il9vuoxtb2_n.js +43 -0
  77. package/out/_next/static/chunks/1jaatdt0mlypl.js +16 -0
  78. package/out/_next/static/chunks/1l4g6_of_bbr8.js +5 -0
  79. package/out/_next/static/chunks/1lezxecnoaxnn.js +32 -0
  80. package/out/_next/static/chunks/1m27au_nmk8_k.js +71 -0
  81. package/out/_next/static/chunks/1m4fwgl1mj4d-.js +46 -0
  82. package/out/_next/static/chunks/1m85ne6w_6tei.js +1 -0
  83. package/out/_next/static/chunks/1ma82ip9shpkc.js +24 -0
  84. package/out/_next/static/chunks/1nbh1zkzirnuw.js +1 -0
  85. package/out/_next/static/chunks/1nohf8_cc6gmw.js +9 -0
  86. package/out/_next/static/chunks/1os6pvhjeb16o.js +1 -0
  87. package/out/_next/static/chunks/1qi5yjvzxspwv.js +15 -0
  88. package/out/_next/static/chunks/1rsexg6dg82f0.js +7 -0
  89. package/out/_next/static/chunks/1s9v5dndopkuz.js +12 -0
  90. package/out/_next/static/chunks/1sh2ogc7tcbu-.js +1 -0
  91. package/out/_next/static/chunks/1sksqjru86hlm.js +1 -0
  92. package/out/_next/static/chunks/1tkvi0wb-x3v8.js +16 -0
  93. package/out/_next/static/chunks/1u79pcgqjgjpq.js +1 -0
  94. package/out/_next/static/chunks/1uqiaqtv_0v2x.js +5 -0
  95. package/out/_next/static/chunks/1x8o-luxdxxk7.js +1 -0
  96. package/out/_next/static/chunks/1yjb7gogaf8po.js +31 -0
  97. package/out/_next/static/chunks/1zyhzessv0wtg.js +1 -0
  98. package/out/_next/static/chunks/2-4610weysas_.js +1 -0
  99. package/out/_next/static/chunks/2-kvt9e7irukm.js +1 -0
  100. package/out/_next/static/chunks/2-pl31kdikt3k.js +5 -0
  101. package/out/_next/static/chunks/20c4_1i5r3kkz.js +1 -0
  102. package/out/_next/static/chunks/20f2gs8iua6fk.js +1 -0
  103. package/out/_next/static/chunks/20zdaln201w8j.js +277 -0
  104. package/out/_next/static/chunks/21l46nbaop06z.js +39 -0
  105. package/out/_next/static/chunks/22-o32hlte36e.js +130 -0
  106. package/out/_next/static/chunks/231j2_p-ha14w.js +7 -0
  107. package/out/_next/static/chunks/23s2f7_-ol94s.js +8 -0
  108. package/out/_next/static/chunks/26_mx-ritu68j.js +24 -0
  109. package/out/_next/static/chunks/26ckmxeluyknq.js +1 -0
  110. package/out/_next/static/chunks/26r0y7ldf3iqs.js +6 -0
  111. package/out/_next/static/chunks/27fzoozwycagi.js +6 -0
  112. package/out/_next/static/chunks/27jmq7a-vh0b4.js +7 -0
  113. package/out/_next/static/chunks/283567a82x9qi.js +149 -0
  114. package/out/_next/static/chunks/29he8uukp5s4u.js +31 -0
  115. package/out/_next/static/chunks/2adglo0sf0jcg.js +905 -0
  116. package/out/_next/static/chunks/{2kzyda4a6mqut.js → 2ajr0rk0_yax6.js} +1 -1
  117. package/out/_next/static/chunks/2b4ewxxz6f462.js +7 -0
  118. package/out/_next/static/chunks/{3zqfchpzqxd92.css → 2bh2dv7j9m8c8.css} +1 -1
  119. package/out/_next/static/chunks/2bi8v13lm76lr.js +95 -0
  120. package/out/_next/static/chunks/2burvpf9877y_.js +44 -0
  121. package/out/_next/static/chunks/2cj703xtrf5i6.js +46 -0
  122. package/out/_next/static/chunks/2cj8g3fxmitaa.js +1 -0
  123. package/out/_next/static/chunks/2ec7xatyld40t.js +7 -0
  124. package/out/_next/static/chunks/2ho4591ngh3y2.js +61 -0
  125. package/out/_next/static/chunks/2hoi6cb1lromr.js +4 -0
  126. package/out/_next/static/chunks/2i5k6tlwd58hp.js +1 -0
  127. package/out/_next/static/chunks/2iy0jr00qhq-q.js +5 -0
  128. package/out/_next/static/chunks/2jonbba27xy3u.js +14 -0
  129. package/out/_next/static/chunks/2l8gepfm4kyjp.js +1 -0
  130. package/out/_next/static/chunks/2m0rrts8gwqwp.js +1 -0
  131. package/out/_next/static/chunks/2m_u12ggzosat.js +5 -0
  132. package/out/_next/static/chunks/2mdns56l5antm.js +5 -0
  133. package/out/_next/static/chunks/2mrbytgs3uetd.js +4 -0
  134. package/out/_next/static/chunks/2p9gwjxeui1zd.js +71 -0
  135. package/out/_next/static/chunks/2pfhy9qy_cijn.js +5 -0
  136. package/out/_next/static/chunks/2q5k4rozyr2wt.js +4 -0
  137. package/out/_next/static/chunks/2qx8nnki_qv5v.js +171 -0
  138. package/out/_next/static/chunks/2r_rj84l3cy7r.js +119 -0
  139. package/out/_next/static/chunks/2rb1-3t3-sv5s.js +8 -0
  140. package/out/_next/static/chunks/2rmgaa88-4bpb.js +227 -0
  141. package/out/_next/static/chunks/2swxmzb-xk_bo.js +108 -0
  142. package/out/_next/static/chunks/2t0biwx5e_4w_.js +1 -0
  143. package/out/_next/static/chunks/2ts3v72jkbcdr.js +7 -0
  144. package/out/_next/static/chunks/2vfexvltv2avy.js +5 -0
  145. package/out/_next/static/chunks/2vveotzevnkfp.js +1 -0
  146. package/out/_next/static/chunks/2wkg65dtx56je.js +155 -0
  147. package/out/_next/static/chunks/2xixk0t9e9mnw.js +1 -0
  148. package/out/_next/static/chunks/2xz7hnr9ikqzq.js +7 -0
  149. package/out/_next/static/chunks/2y1lq1efnvcdt.js +23 -0
  150. package/out/_next/static/chunks/2ziasg8l_c9n7.js +5 -0
  151. package/out/_next/static/chunks/3-ve59izq9j-p.js +1 -0
  152. package/out/_next/static/chunks/3-wsablhqgzoa.js +1 -0
  153. package/out/_next/static/chunks/30ppb2wc-m4ph.js +1 -0
  154. package/out/_next/static/chunks/336k08jwyc5i-.js +1 -0
  155. package/out/_next/static/chunks/33d061qpkafqm.js +39 -0
  156. package/out/_next/static/chunks/33fyy6d5mo55_.js +8 -0
  157. package/out/_next/static/chunks/33kh18frqc3b1.js +5 -0
  158. package/out/_next/static/chunks/33v05ol-ire9s.js +10 -0
  159. package/out/_next/static/chunks/33yzdcbu7w60l.js +13 -0
  160. package/out/_next/static/chunks/348l8p7-vo4l5.js +63 -0
  161. package/out/_next/static/chunks/35hu5vin0swdf.js +41 -0
  162. package/out/_next/static/chunks/37a6yquh875rn.js +39 -0
  163. package/out/_next/static/chunks/3_2i9du5-ffrp.js +59 -0
  164. package/out/_next/static/chunks/3_84h3z_tewmg.js +145 -0
  165. package/out/_next/static/chunks/3bo7uiy-wh63m.js +108 -0
  166. package/out/_next/static/chunks/3c-an5ft_3emc.js +1 -0
  167. package/out/_next/static/chunks/3d_222ci0_30_.js +41 -0
  168. package/out/_next/static/chunks/3dldch03dfaed.js +1 -0
  169. package/out/_next/static/chunks/3eedy49gsvv_t.js +1 -0
  170. package/out/_next/static/chunks/3fayuejnrsd90.js +15 -0
  171. package/out/_next/static/chunks/3fqonijzsxy8u.js +28 -0
  172. package/out/_next/static/chunks/3g1ale0hytu9q.js +12 -0
  173. package/out/_next/static/chunks/3jxeyjg2g7w94.js +1 -0
  174. package/out/_next/static/chunks/3k3gvr7-e3g_s.js +5 -0
  175. package/out/_next/static/chunks/3kwoyyxi_-q7m.js +1 -0
  176. package/out/_next/static/chunks/3le1bywe19_u9.js +1 -0
  177. package/out/_next/static/chunks/3lku4-9kpf-mj.js +267 -0
  178. package/out/_next/static/chunks/3lz5h1tw50wr_.js +54 -0
  179. package/out/_next/static/chunks/3oq-khgfpo0nx.js +39 -0
  180. package/out/_next/static/chunks/3ps25ocfalcap.js +43 -0
  181. package/out/_next/static/chunks/3q3m075m4bxz1.js +2 -0
  182. package/out/_next/static/chunks/3qzrrjb48t2w3.js +119 -0
  183. package/out/_next/static/chunks/3r0i-7zjuz9i1.js +6 -0
  184. package/out/_next/static/chunks/3rgn5xwtr51ul.js +7 -0
  185. package/out/_next/static/chunks/3ridg_u19b6ih.js +8 -0
  186. package/out/_next/static/chunks/3skzk-w2ytvku.js +5 -0
  187. package/out/_next/static/chunks/3srw10h0hcztd.js +68 -0
  188. package/out/_next/static/chunks/3tgrftdet8sna.js +15 -0
  189. package/out/_next/static/chunks/3uax_eq1kjjta.js +1 -0
  190. package/out/_next/static/chunks/3uj94afpsi6cs.js +1 -0
  191. package/out/_next/static/chunks/3vgurvjr6hkyv.js +4 -0
  192. package/out/_next/static/chunks/3viepyovs19ub.js +23 -0
  193. package/out/_next/static/chunks/3vnzp3n_wd3j_.js +1 -0
  194. package/out/_next/static/chunks/3w8h5lxnd0z4z.js +1 -0
  195. package/out/_next/static/chunks/3wh4xa9dnw-55.js +194 -0
  196. package/out/_next/static/chunks/3wlvio5id54ow.js +5 -0
  197. package/out/_next/static/chunks/3wzvscqui-9ml.js +23 -0
  198. package/out/_next/static/chunks/3y8h3g1tqukrv.js +36 -0
  199. package/out/_next/static/chunks/3zcilnj6p9-t5.js +1 -0
  200. package/out/_next/static/chunks/3zmmdm68s05-t.js +217 -0
  201. package/out/_next/static/chunks/40l5d7o95aw37.js +4 -0
  202. package/out/_next/static/chunks/417kn9hki8k81.js +33 -0
  203. package/out/_next/static/chunks/42mofxcd0l7qi.js +1 -0
  204. package/out/_next/static/chunks/439tz_ubj8h-g.js +342 -0
  205. package/out/_next/static/chunks/43hfssep7ry-z.js +5 -0
  206. package/out/_next/static/chunks/45bcpjurhxb-j.js +1 -0
  207. package/out/_next/static/chunks/turbopack-2c3mg3r-05n1w.js +1 -0
  208. package/out/_offline/index.html +3 -2
  209. package/out/account/forgot-password/index.html +3 -2
  210. package/out/account/index.html +3 -2
  211. package/out/assortments/AssortmentDetailPage/index.html +3 -2
  212. package/out/assortments/index.html +3 -2
  213. package/out/assortments/new/index.html +3 -2
  214. package/out/copilot/index.html +3 -2
  215. package/out/country/CountryDetailPage/index.html +3 -2
  216. package/out/country/index.html +3 -2
  217. package/out/country/new/index.html +3 -2
  218. package/out/currency/CurrencyDetailPage/index.html +3 -2
  219. package/out/currency/index.html +3 -2
  220. package/out/currency/new/index.html +3 -2
  221. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -2
  222. package/out/delivery-provider/index.html +3 -2
  223. package/out/delivery-provider/new/index.html +3 -2
  224. package/out/enrollments/EnrollmentDetailPage/index.html +3 -2
  225. package/out/enrollments/index.html +3 -2
  226. package/out/events/EventDetailPage/index.html +3 -2
  227. package/out/events/index.html +3 -2
  228. package/out/exports/index.html +3 -2
  229. package/out/external/index.html +3 -2
  230. package/out/filters/FilterDetailPage/index.html +3 -2
  231. package/out/filters/index.html +3 -2
  232. package/out/filters/new/index.html +3 -2
  233. package/out/index.html +3 -2
  234. package/out/install/index.html +3 -2
  235. package/out/language/LanguageDetailPage/index.html +3 -2
  236. package/out/language/index.html +3 -2
  237. package/out/language/new/index.html +3 -2
  238. package/out/log-in/index.html +3 -2
  239. package/out/orders/OrderDetailPage/index.html +3 -2
  240. package/out/orders/index.html +3 -2
  241. package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -2
  242. package/out/payment-provider/index.html +3 -2
  243. package/out/payment-provider/new/index.html +3 -2
  244. package/out/products/ProductDetailPage/index.html +3 -2
  245. package/out/products/index.html +3 -2
  246. package/out/products/new/index.html +3 -2
  247. package/out/quotations/QuotationDetailPage/index.html +3 -2
  248. package/out/quotations/index.html +3 -2
  249. package/out/reset-password/index.html +3 -2
  250. package/out/sign-up/index.html +3 -2
  251. package/out/styleguide/index.html +3 -2
  252. package/out/tokens/TokenDetailPage/index.html +3 -2
  253. package/out/tokens/index.html +3 -2
  254. package/out/users/UserDetailPage/index.html +3 -2
  255. package/out/users/index.html +3 -2
  256. package/out/users/new/index.html +3 -2
  257. package/out/verify-email/index.html +3 -2
  258. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -2
  259. package/out/warehousing-provider/index.html +3 -2
  260. package/out/warehousing-provider/new/index.html +3 -2
  261. package/out/works/WorkDetailPage/index.html +3 -2
  262. package/out/works/WorkQueueListView/index.html +3 -2
  263. package/out/works/index.html +3 -2
  264. package/out/works/management/index.html +3 -2
  265. package/package.json +8 -8
  266. package/out/_next/static/F8ReqaxPvLqFJ2DaPfMdn/_buildManifest.js +0 -258
  267. package/out/_next/static/chunks/0-mytn4v5bu5h.js +0 -12
  268. package/out/_next/static/chunks/0-uh133eqcz6n.js +0 -60
  269. package/out/_next/static/chunks/0060t3kg_i0lf.js +0 -10
  270. package/out/_next/static/chunks/0186bg0b60cid.js +0 -13
  271. package/out/_next/static/chunks/018n9pot9f5uf.js +0 -90
  272. package/out/_next/static/chunks/01h4ept18s-ns.js +0 -807
  273. package/out/_next/static/chunks/02cdoh48sex9m.js +0 -1
  274. package/out/_next/static/chunks/03-z1yl608b56.js +0 -807
  275. package/out/_next/static/chunks/030bzkeke0edz.js +0 -7
  276. package/out/_next/static/chunks/037vsiy28s6dg.js +0 -41
  277. package/out/_next/static/chunks/049clkw76lm67.js +0 -16
  278. package/out/_next/static/chunks/04bb4k67x398t.js +0 -1
  279. package/out/_next/static/chunks/057evs7qr5y-t.js +0 -17
  280. package/out/_next/static/chunks/05qpw6q8uiz3l.js +0 -15
  281. package/out/_next/static/chunks/062myzj-2ehu-.js +0 -52
  282. package/out/_next/static/chunks/06l-rqlf4bp81.js +0 -108
  283. package/out/_next/static/chunks/06tejx8u1_0kg.js +0 -1
  284. package/out/_next/static/chunks/07nffhr51vke6.js +0 -59
  285. package/out/_next/static/chunks/08tyybz20igty.js +0 -15
  286. package/out/_next/static/chunks/0989pcuje2j55.js +0 -66
  287. package/out/_next/static/chunks/0_02skyivjqh6.js +0 -14
  288. package/out/_next/static/chunks/0_ngi84ak813x.js +0 -288
  289. package/out/_next/static/chunks/0bc02hascgv7z.js +0 -1
  290. package/out/_next/static/chunks/0c9ruqj2wf3n6.js +0 -905
  291. package/out/_next/static/chunks/0cblqqpscyy7w.js +0 -12
  292. package/out/_next/static/chunks/0cotrfgh1n2cx.js +0 -346
  293. package/out/_next/static/chunks/0d6_opzy2p6ik.js +0 -807
  294. package/out/_next/static/chunks/0e2e0srgvkzk9.js +0 -144
  295. package/out/_next/static/chunks/0g6hr3dmen536.js +0 -7
  296. package/out/_next/static/chunks/0gurfn3nhm859.js +0 -1
  297. package/out/_next/static/chunks/0h0r_q6xa9qr_.js +0 -1
  298. package/out/_next/static/chunks/0ht2wu-61vq9v.js +0 -807
  299. package/out/_next/static/chunks/0ibp5q64hnd88.js +0 -18
  300. package/out/_next/static/chunks/0ichlp5c67dko.js +0 -12
  301. package/out/_next/static/chunks/0iui_zfuxfa45.js +0 -12
  302. package/out/_next/static/chunks/0k6z6zl_zxqp7.js +0 -13
  303. package/out/_next/static/chunks/0kkky_8vhaeaz.js +0 -227
  304. package/out/_next/static/chunks/0lutmpv07icdg.js +0 -8
  305. package/out/_next/static/chunks/0m6jydfuy_4o3.js +0 -1
  306. package/out/_next/static/chunks/0mzh9-epgepi1.js +0 -119
  307. package/out/_next/static/chunks/0n0uzfbkfb7e5.js +0 -12
  308. package/out/_next/static/chunks/0nhczsa2mm354.js +0 -16
  309. package/out/_next/static/chunks/0pecsk3c09b19.js +0 -3
  310. package/out/_next/static/chunks/0prynyrvhm7ef.js +0 -2
  311. package/out/_next/static/chunks/0q-14a7j6afh3.js +0 -1
  312. package/out/_next/static/chunks/0r5wwinf72z4g.js +0 -1
  313. package/out/_next/static/chunks/0razrbxeai797.js +0 -807
  314. package/out/_next/static/chunks/0ryqvctymlr3k.js +0 -12
  315. package/out/_next/static/chunks/0se09klbk8drd.js +0 -68
  316. package/out/_next/static/chunks/0sh5256hzmj3b.js +0 -14
  317. package/out/_next/static/chunks/0srpqs12m-bwy.js +0 -13
  318. package/out/_next/static/chunks/0ukyxgmnqos6o.js +0 -1
  319. package/out/_next/static/chunks/0uv4d5f9o8wu1.js +0 -10
  320. package/out/_next/static/chunks/0uw9cbq0ivaz0.js +0 -1
  321. package/out/_next/static/chunks/0vls1lbu_rh78.js +0 -342
  322. package/out/_next/static/chunks/0vx_1vxljh4tn.js +0 -13
  323. package/out/_next/static/chunks/0vxe9bw7ffqy2.js +0 -15
  324. package/out/_next/static/chunks/0w0zigi7aws2m.js +0 -1
  325. package/out/_next/static/chunks/0w2zoz_fn_wha.js +0 -137
  326. package/out/_next/static/chunks/0xuevvy5i5d12.js +0 -138
  327. package/out/_next/static/chunks/0xxvsq70e4xn0.js +0 -1
  328. package/out/_next/static/chunks/0yxc1yy1eq4u3.js +0 -149
  329. package/out/_next/static/chunks/1-uz_5-063kh9.js +0 -188
  330. package/out/_next/static/chunks/10h7lznd10mmp.js +0 -384
  331. package/out/_next/static/chunks/10os1s66nimmi.js +0 -110
  332. package/out/_next/static/chunks/12_5-baf13q49.js +0 -195
  333. package/out/_next/static/chunks/12qzh85d5on4y.js +0 -44
  334. package/out/_next/static/chunks/12ukdi5bzlbeo.js +0 -596
  335. package/out/_next/static/chunks/1398hevtpl_69.js +0 -1
  336. package/out/_next/static/chunks/13qk8ukzu1snm.js +0 -288
  337. package/out/_next/static/chunks/164wr2-2gfnlb.js +0 -1
  338. package/out/_next/static/chunks/16ey81skn09dz.js +0 -1
  339. package/out/_next/static/chunks/18kae_yjyhjwf.js +0 -16
  340. package/out/_next/static/chunks/19y4w6_d_qiou.js +0 -1
  341. package/out/_next/static/chunks/1_quktgfhf40v.js +0 -31
  342. package/out/_next/static/chunks/1ae-9ft5cgojf.js +0 -1
  343. package/out/_next/static/chunks/1aegvtb5jv57q.js +0 -12
  344. package/out/_next/static/chunks/1cgxgd2cf8u3j.js +0 -157
  345. package/out/_next/static/chunks/1cp4-dvxowp4c.js +0 -24
  346. package/out/_next/static/chunks/1d951b6ed8oqn.js +0 -110
  347. package/out/_next/static/chunks/1d_puhcn8lg6q.js +0 -51
  348. package/out/_next/static/chunks/1drrou5kp4qdz.js +0 -1
  349. package/out/_next/static/chunks/1e4_28-3u5o85.js +0 -30
  350. package/out/_next/static/chunks/1f3mflnvp8_7-.js +0 -31
  351. package/out/_next/static/chunks/1f5-j4f3irx0j.js +0 -147
  352. package/out/_next/static/chunks/1fzbon-ih4_3j.js +0 -1
  353. package/out/_next/static/chunks/1g57y7cq7tjcb.js +0 -9
  354. package/out/_next/static/chunks/1g8f6jrb9cp9v.js +0 -13
  355. package/out/_next/static/chunks/1gksg35fivk0-.js +0 -224
  356. package/out/_next/static/chunks/1gt65pz91hyuz.js +0 -1
  357. package/out/_next/static/chunks/1gy9ae4fpd6jm.js +0 -17
  358. package/out/_next/static/chunks/1hq9yt63076pk.js +0 -16
  359. package/out/_next/static/chunks/1ikm9qcx--k3u.js +0 -807
  360. package/out/_next/static/chunks/1izpxynqp99t4.js +0 -193
  361. package/out/_next/static/chunks/1j2ko85jp-5wy.js +0 -807
  362. package/out/_next/static/chunks/1k-cn_5ey1u62.js +0 -15
  363. package/out/_next/static/chunks/1k0mvn915uz76.js +0 -14
  364. package/out/_next/static/chunks/1l4snbkce_jb6.js +0 -15
  365. package/out/_next/static/chunks/1lbsdlf5h6ojc.js +0 -16
  366. package/out/_next/static/chunks/1mwvnv71bl7mc.js +0 -1
  367. package/out/_next/static/chunks/1n7i2rp59o9o8.js +0 -384
  368. package/out/_next/static/chunks/1pklei2ds10d2.js +0 -66
  369. package/out/_next/static/chunks/1pxor-3_vf3du.js +0 -31
  370. package/out/_next/static/chunks/1qp68765j1aiv.js +0 -61
  371. package/out/_next/static/chunks/1r-cvj3mpr-7x.js +0 -87
  372. package/out/_next/static/chunks/1sivy8bkkmwxl.js +0 -5
  373. package/out/_next/static/chunks/1vk6h4qps69vq.js +0 -12
  374. package/out/_next/static/chunks/1vx8_u7-f7q8u.js +0 -28
  375. package/out/_next/static/chunks/1weq9keqxiqpy.js +0 -73
  376. package/out/_next/static/chunks/1xbofs3ibkjvj.js +0 -1
  377. package/out/_next/static/chunks/1ziicn0eb_yji.js +0 -16
  378. package/out/_next/static/chunks/1zza9faw4t3b_.js +0 -46
  379. package/out/_next/static/chunks/1zzpf1xbmchcj.js +0 -132
  380. package/out/_next/static/chunks/2-4ng9fxftmld.js +0 -1
  381. package/out/_next/static/chunks/201rx84kyo8ag.js +0 -1
  382. package/out/_next/static/chunks/20rtv8f0brb0n.js +0 -43
  383. package/out/_next/static/chunks/217_5onj-woma.js +0 -190
  384. package/out/_next/static/chunks/21a19t2pe0fpg.js +0 -81
  385. package/out/_next/static/chunks/21o2yfegozc0m.js +0 -16
  386. package/out/_next/static/chunks/22w2ovaffle-i.js +0 -21
  387. package/out/_next/static/chunks/234pfdqctlnyt.js +0 -100
  388. package/out/_next/static/chunks/252jebodi67kg.js +0 -1
  389. package/out/_next/static/chunks/25d8wr34sbm__.js +0 -15
  390. package/out/_next/static/chunks/275o3ly3svw4p.js +0 -1
  391. package/out/_next/static/chunks/28z1z7in8-kbg.js +0 -26
  392. package/out/_next/static/chunks/29w1exzy704_7.js +0 -8
  393. package/out/_next/static/chunks/2bb7696udjx6k.js +0 -44
  394. package/out/_next/static/chunks/2bm5aw8hqlgf2.js +0 -50
  395. package/out/_next/static/chunks/2c4vy8ofex0ti.js +0 -14
  396. package/out/_next/static/chunks/2c7gw8ronvu-c.js +0 -807
  397. package/out/_next/static/chunks/2cbr3ybo4xsrv.js +0 -43
  398. package/out/_next/static/chunks/2eh6ku1a1zbs4.js +0 -135
  399. package/out/_next/static/chunks/2fed4-6c0ghqp.js +0 -99
  400. package/out/_next/static/chunks/2g39exixp92yf.js +0 -13
  401. package/out/_next/static/chunks/2gil5igdermzh.js +0 -36
  402. package/out/_next/static/chunks/2hm0mbq0vtqmw.js +0 -5
  403. package/out/_next/static/chunks/2hvt_8j6jkd_n.js +0 -14
  404. package/out/_next/static/chunks/2i5uj5i4z-xu8.js +0 -188
  405. package/out/_next/static/chunks/2ismth22knujm.js +0 -1
  406. package/out/_next/static/chunks/2iuznbar_ttrh.js +0 -18
  407. package/out/_next/static/chunks/2j6cph79-th54.js +0 -7
  408. package/out/_next/static/chunks/2jjgby8cd1gdj.js +0 -14
  409. package/out/_next/static/chunks/2jln1kjysf99p.js +0 -1
  410. package/out/_next/static/chunks/2jtk4-i4e9lug.js +0 -1
  411. package/out/_next/static/chunks/2k020ab3luqev.js +0 -1
  412. package/out/_next/static/chunks/2kbieaechn8m8.js +0 -1
  413. package/out/_next/static/chunks/2ljoq6sr-g2da.js +0 -1
  414. package/out/_next/static/chunks/2lwxs_ly4bz1o.js +0 -12
  415. package/out/_next/static/chunks/2mr2k4sb6i021.js +0 -32
  416. package/out/_next/static/chunks/2na27-e8gs0-f.js +0 -171
  417. package/out/_next/static/chunks/2nn3_f04lnr0b.js +0 -807
  418. package/out/_next/static/chunks/2ocwu5vbc5r34.js +0 -73
  419. package/out/_next/static/chunks/2qprgjhjl8d4c.js +0 -807
  420. package/out/_next/static/chunks/2rtyphk0o1hbr.js +0 -5
  421. package/out/_next/static/chunks/2skxi0oqka3ef.js +0 -26
  422. package/out/_next/static/chunks/2sukt9l-1md8_.js +0 -25
  423. package/out/_next/static/chunks/2t3t6gm5vlg_0.js +0 -58
  424. package/out/_next/static/chunks/2vt52_i-6cdbh.js +0 -10
  425. package/out/_next/static/chunks/2w5y5xf0nriwx.js +0 -1
  426. package/out/_next/static/chunks/30g-s0ioynhjx.js +0 -224
  427. package/out/_next/static/chunks/31y7dx6ytab7h.js +0 -3
  428. package/out/_next/static/chunks/363ng2l8o_bee.js +0 -101
  429. package/out/_next/static/chunks/36jick0alh9oa.js +0 -50
  430. package/out/_next/static/chunks/36pa0vs0telmp.js +0 -1
  431. package/out/_next/static/chunks/36yth4lm03_j8.js +0 -1
  432. package/out/_next/static/chunks/37phwvegpccj0.js +0 -217
  433. package/out/_next/static/chunks/38b7m-s26ciug.js +0 -137
  434. package/out/_next/static/chunks/38ipj45w-tqay.js +0 -21
  435. package/out/_next/static/chunks/38pz7fmyf6ay0.js +0 -1
  436. package/out/_next/static/chunks/39634va9fx9s2.js +0 -13
  437. package/out/_next/static/chunks/3a0hqx7ohm5lh.js +0 -23
  438. package/out/_next/static/chunks/3a7wm2331v13r.js +0 -3
  439. package/out/_next/static/chunks/3dr_oa5hx41is.js +0 -14
  440. package/out/_next/static/chunks/3e7w6ko5psik7.js +0 -17
  441. package/out/_next/static/chunks/3ebh4y7h6y1vq.js +0 -58
  442. package/out/_next/static/chunks/3eow7lw1727kt.js +0 -13
  443. package/out/_next/static/chunks/3f1gb4_hyhtho.js +0 -20
  444. package/out/_next/static/chunks/3g4qj6_qh97q_.js +0 -12
  445. package/out/_next/static/chunks/3gfjdynb9mg8h.js +0 -23
  446. package/out/_next/static/chunks/3gx4smk7pb27x.js +0 -119
  447. package/out/_next/static/chunks/3jcf4ei6zgnca.js +0 -17
  448. package/out/_next/static/chunks/3kisw9hre44e5.js +0 -807
  449. package/out/_next/static/chunks/3mnt471ayfsvh.js +0 -22
  450. package/out/_next/static/chunks/3ondw3-zthjz5.js +0 -15
  451. package/out/_next/static/chunks/3opuxnw_w3yb5.js +0 -101
  452. package/out/_next/static/chunks/3oxv1fo564rrf.js +0 -142
  453. package/out/_next/static/chunks/3ra_41-fw410n.js +0 -14
  454. package/out/_next/static/chunks/3s22ovhmk-4h7.js +0 -1
  455. package/out/_next/static/chunks/3sktz8258so64.js +0 -2
  456. package/out/_next/static/chunks/3tq-bb0j1_lpu.js +0 -14
  457. package/out/_next/static/chunks/3v1dxn4rp-o3v.js +0 -315
  458. package/out/_next/static/chunks/3w_wwl_hd91od.js +0 -1
  459. package/out/_next/static/chunks/3ww_p-agyd9u-.js +0 -14
  460. package/out/_next/static/chunks/3wzzh45yillzb.js +0 -1
  461. package/out/_next/static/chunks/3xfj8_2nd5d_1.js +0 -1
  462. package/out/_next/static/chunks/3xhmfg-981n_5.js +0 -61
  463. package/out/_next/static/chunks/3yz34q3ulli7q.js +0 -12
  464. package/out/_next/static/chunks/3z_c5kpm-e1ty.js +0 -15
  465. package/out/_next/static/chunks/3zs002htik_8l.js +0 -21
  466. package/out/_next/static/chunks/4079hjuumfmm2.js +0 -31
  467. package/out/_next/static/chunks/40922jbr_e5ug.js +0 -51
  468. package/out/_next/static/chunks/40zy6mxa-be0m.js +0 -1
  469. package/out/_next/static/chunks/41fbmiggueudh.js +0 -13
  470. package/out/_next/static/chunks/43e0fp97w800k.js +0 -13
  471. package/out/_next/static/chunks/43gv4x1sfyb5l.js +0 -9
  472. package/out/_next/static/chunks/44nj9c766dqvc.js +0 -807
  473. package/out/_next/static/chunks/44r51e87s4z_d.js +0 -8
  474. package/out/_next/static/chunks/458tg2eg5h8j5.js +0 -324
  475. package/out/_next/static/chunks/45cd4ypk94sw2.js +0 -807
  476. package/out/_next/static/chunks/turbopack-01866gjdddrxa.js +0 -1
  477. package/out/_next/static/chunks/turbopack-08ttg7vxsdnsj.js +0 -1
  478. package/out/_next/static/chunks/turbopack-0a3j0ezn8okfg.js +0 -1
  479. package/out/_next/static/chunks/turbopack-0anbjm4c1j4u4.js +0 -1
  480. package/out/_next/static/chunks/turbopack-0ga3wfg-oyyst.js +0 -1
  481. package/out/_next/static/chunks/turbopack-0m3lvbvrn923g.js +0 -1
  482. package/out/_next/static/chunks/turbopack-0pmjdjcdx7cqp.js +0 -1
  483. package/out/_next/static/chunks/turbopack-0ptvhnhsw0_c7.js +0 -1
  484. package/out/_next/static/chunks/turbopack-0s4b5r_1d8yqv.js +0 -1
  485. package/out/_next/static/chunks/turbopack-0sihqflu4qpvw.js +0 -1
  486. package/out/_next/static/chunks/turbopack-0tc31uax4buqq.js +0 -1
  487. package/out/_next/static/chunks/turbopack-0w2rzh4i3j2og.js +0 -1
  488. package/out/_next/static/chunks/turbopack-10ldzl5n31zl-.js +0 -1
  489. package/out/_next/static/chunks/turbopack-19e_bi5k2rqyy.js +0 -1
  490. package/out/_next/static/chunks/turbopack-19i6-4a5o4fil.js +0 -1
  491. package/out/_next/static/chunks/turbopack-19vr9o5829d-f.js +0 -1
  492. package/out/_next/static/chunks/turbopack-19yw5qwon7l57.js +0 -1
  493. package/out/_next/static/chunks/turbopack-1cx5i7_gdoz5k.js +0 -1
  494. package/out/_next/static/chunks/turbopack-1d-c7awe26kf5.js +0 -1
  495. package/out/_next/static/chunks/turbopack-1l1aen9tojmq4.js +0 -1
  496. package/out/_next/static/chunks/turbopack-1o1rar8ouv6h9.js +0 -1
  497. package/out/_next/static/chunks/turbopack-1od_4a7nj02l4.js +0 -1
  498. package/out/_next/static/chunks/turbopack-1r_0o22d_puxo.js +0 -1
  499. package/out/_next/static/chunks/turbopack-1rmdtpi005n_6.js +0 -1
  500. package/out/_next/static/chunks/turbopack-1wx5785osz26z.js +0 -1
  501. package/out/_next/static/chunks/turbopack-21vayl2_q4r5u.js +0 -1
  502. package/out/_next/static/chunks/turbopack-23nr2ioaqw90j.js +0 -1
  503. package/out/_next/static/chunks/turbopack-23u97wxsuqiqb.js +0 -1
  504. package/out/_next/static/chunks/turbopack-24ylsu2au7hg1.js +0 -1
  505. package/out/_next/static/chunks/turbopack-28_dvdmt6lvhn.js +0 -1
  506. package/out/_next/static/chunks/turbopack-2bo7hmw4eirxu.js +0 -1
  507. package/out/_next/static/chunks/turbopack-2dk8ur1fvwxzj.js +0 -1
  508. package/out/_next/static/chunks/turbopack-2e_wy0ffi64id.js +0 -1
  509. package/out/_next/static/chunks/turbopack-2fuk9oepxr5n0.js +0 -1
  510. package/out/_next/static/chunks/turbopack-2g2viapamsvwe.js +0 -1
  511. package/out/_next/static/chunks/turbopack-2ga09m38zacev.js +0 -1
  512. package/out/_next/static/chunks/turbopack-2pxtve7lryqre.js +0 -1
  513. package/out/_next/static/chunks/turbopack-2qbfd_-7v5dbo.js +0 -1
  514. package/out/_next/static/chunks/turbopack-2rz_y4ejrvafp.js +0 -1
  515. package/out/_next/static/chunks/turbopack-2u0ls0liblo_9.js +0 -1
  516. package/out/_next/static/chunks/turbopack-2u_328z53ed9p.js +0 -1
  517. package/out/_next/static/chunks/turbopack-2xfom16ggx1i3.js +0 -1
  518. package/out/_next/static/chunks/turbopack-2ycfwit0p-fkf.js +0 -1
  519. package/out/_next/static/chunks/turbopack-2yekm5ij2g-aw.js +0 -1
  520. package/out/_next/static/chunks/turbopack-3-w-v8og1lok2.js +0 -1
  521. package/out/_next/static/chunks/turbopack-30qkgccwlkv7n.js +0 -1
  522. package/out/_next/static/chunks/turbopack-36bl9-rerhcfg.js +0 -1
  523. package/out/_next/static/chunks/turbopack-37a6lyjyz7fts.js +0 -1
  524. package/out/_next/static/chunks/turbopack-37lb9ujef-ujm.js +0 -1
  525. package/out/_next/static/chunks/turbopack-39nctu3yv9iv4.js +0 -1
  526. package/out/_next/static/chunks/turbopack-3_mmmbs60vr14.js +0 -1
  527. package/out/_next/static/chunks/turbopack-3_o3qz69ih0uu.js +0 -1
  528. package/out/_next/static/chunks/turbopack-3cv39r7v3s2gr.js +0 -1
  529. package/out/_next/static/chunks/turbopack-3cv3hgsoo_z1k.js +0 -1
  530. package/out/_next/static/chunks/turbopack-3pgmc-lv74ewz.js +0 -1
  531. package/out/_next/static/chunks/turbopack-3uj40sz7i7jg0.js +0 -1
  532. package/out/_next/static/chunks/turbopack-3v4nxmdavly34.js +0 -1
  533. package/out/_next/static/chunks/turbopack-3vfm6fp92up6y.js +0 -1
  534. package/out/_next/static/chunks/turbopack-3vyi51cuxeowy.js +0 -1
  535. package/out/_next/static/chunks/turbopack-3w26eu86co02z.js +0 -1
  536. package/out/_next/static/chunks/turbopack-3zc0h1216mtm2.js +0 -1
  537. package/out/_next/static/chunks/turbopack-4166pmk5_y_4x.js +0 -1
  538. package/out/_next/static/chunks/turbopack-431y1sh-m_0mp.js +0 -1
  539. /package/out/_next/static/{F8ReqaxPvLqFJ2DaPfMdn → 4ESrB8YpR2n44PFePtbgX}/_clientMiddlewareManifest.js +0 -0
  540. /package/out/_next/static/{F8ReqaxPvLqFJ2DaPfMdn → 4ESrB8YpR2n44PFePtbgX}/_ssgManifest.js +0 -0
@@ -1,149 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,19759,78495,e=>{"use strict";var t=e.i(91398),l=e.i(69322),i=e.i(25705),a=e.i(27572),s=e.i(76929),r=e.i(28401),d=e.i(92276),n=e.i(41523),u=e.i(91788),o=e.i(66773),f=e.i(69211),c=e.i(99160),x=e.i(45229),p=e.i(98949),m=e.i(59080),g=e.i(76204);let h=m.gql`
2
- fragment FilterTextsFragment on FilterTexts {
3
- _id
4
- locale
5
- title
6
- subtitle
7
- }
8
- `,v=m.gql`
9
- mutation UpdateFilterTexts(
10
- $filterId: ID!
11
- $filterOptionValue: String
12
- $texts: [FilterTextInput!]!
13
- ) {
14
- updateFilterTexts(
15
- filterId: $filterId
16
- filterOptionValue: $filterOptionValue
17
- texts: $texts
18
- ) {
19
- ...FilterTextsFragment
20
- }
21
- }
22
- ${h}
23
- `,y=()=>{let[e]=(0,g.useMutation)(v);return{updateFilterTexts:async({filterId:t,filterOptionValue:l,texts:i})=>e({variables:{filterOptionValue:l,filterId:t,texts:i},refetchQueries:["TranslatedFilterTexts","FilterOptions"]})}};var j=e.i(32171);let b=m.gql`
24
- query TranslatedFilterTexts($filterId: ID!, $filterOptionValue: String) {
25
- translatedFilterTexts(
26
- filterId: $filterId
27
- filterOptionValue: $filterOptionValue
28
- ) {
29
- ...FilterTextsFragment
30
- }
31
- }
32
- ${h}
33
- `;var _=e.i(60195),I=e.i(58971),F=e.i(5505),M=e.i(57561);let w=({filterId:e})=>{let{formatMessage:i}=(0,l.useIntl)(),{selectedLocale:a}=(0,M.default)(),{translatedFilterTexts:s,loading:r}=(({filterId:e=null,filterOptionValue:t=null})=>{let{data:l,loading:i,error:a}=(0,j.useQuery)(b,{variables:{filterId:e,filterOptionValue:t}});return{translatedFilterTexts:l?.translatedFilterTexts||[],loading:i,error:a}})({filterId:e}),{hasRole:d}=(0,I.default)(),n=i({id:"saved",defaultMessage:"Saved"}),{updateFilterTexts:m}=y(),g=async({title:t,subtitle:l})=>(await m({filterId:e,texts:[{locale:a,title:t,subtitle:l}]}),{success:!0}),h=(0,p.default)({submit:g,successMessage:n,initialValues:{title:"",subtitle:"",...!r&&s?.find(e=>e.locale===a)||{}}});return(0,u.useEffect)(()=>{let e=s?.find(e=>e.locale===a);h.formik.setValues({title:"",subtitle:"",...e||{}})},[s,a]),(0,t.jsx)(_.default,{documentationLabel:i({id:"text",defaultMessage:"Text"}),documentation:(0,t.jsx)(l.FormattedMessage,{id:"filter_text_form_description",defaultMessage:"<ul> <li>You can change the language of filter using the dropdown found at top left corner</li>\n </ul>",values:{ul:e=>(0,t.jsxs)("ul",{className:"space-y-1",children:[e," "]}),li:e=>(0,t.jsxs)("li",{children:[e," "]})}}),children:(0,t.jsx)(F.default,{children:(0,t.jsxs)(f.default,{form:h,className:"border-slate-300 dark:border-slate-800 pt-2 lg:shadow-sm",children:[(0,t.jsx)("div",{children:(0,t.jsx)(x.default,{name:"title",id:"title",label:i({id:"title",defaultMessage:"Title"}),autoComplete:"on",className:"mt-2 px-4 text-sm"})}),(0,t.jsx)("div",{children:(0,t.jsx)(x.default,{name:"subtitle",id:"subtitle",label:i({id:"subtitle",defaultMessage:"Subtitle"}),autoComplete:"on",className:"mt-5 px-4 text-sm"})}),d(o.IRoleAction.ManageFilters)&&(0,t.jsx)("div",{className:"flex bg-slate-100 dark:bg-slate-900 mt-5",children:(0,t.jsx)(c.default,{label:i({id:"update_filter",defaultMessage:"Update filter"}),className:"my-4 ml-auto mr-4"})})]})})})};var C=e.i(6607);let k=m.gql`
34
- mutation CreateFilterOption(
35
- $filterId: ID!
36
- $option: String!
37
- $texts: [FilterTextInput!]
38
- ) {
39
- createFilterOption(filterId: $filterId, option: $option, texts: $texts) {
40
- _id
41
- }
42
- }
43
- `,$=m.gql`
44
- fragment FilterOptionFragment on FilterOption {
45
- _id
46
- texts(forceLocale: $forceLocale) {
47
- _id
48
- title
49
- subtitle
50
- locale
51
- }
52
- value
53
- }
54
- `,N=m.gql`
55
- query FilterOptions($filterId: ID, $forceLocale: Locale) {
56
- filter(filterId: $filterId) {
57
- _id
58
- options {
59
- ...FilterOptionFragment
60
- }
61
- }
62
- }
63
- ${$}
64
- `,S=({onCancel:e,onSubmit:i})=>{let{formatMessage:a}=(0,l.useIntl)(),{hasRole:s}=(0,I.default)(),r=a({id:"filter_option_added_success",defaultMessage:"Filter option added successfully"}),d=(0,p.default)({submit:i,successMessage:r,initialValues:{title:"",value:""}});return(0,t.jsxs)(f.default,{form:d,children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(x.default,{name:"value",label:a({id:"filter_option_value",defaultMessage:"Value"}),required:!0}),(0,t.jsx)(x.default,{name:"title",label:a({id:"filter_option_title",defaultMessage:"Title"}),required:!0})]}),(0,t.jsxs)("div",{className:"mt-5 flex justify-end",children:[(0,t.jsx)("button",{onClick:e,type:"button",className:"mr-2 rounded-md border border-slate-100 dark:border-slate-700 bg-white dark:bg-slate-800 px-3 py-1 text-sm font-medium leading-5 text-slate-700 dark:text-slate-500 shadow-xs",children:a({id:"cancel",defaultMessage:"Cancel"})}),(0,t.jsx)("span",{className:"flex items-center",children:(0,t.jsx)(c.default,{className:"m-auto w-full",label:a({id:"add_filter_option",defaultMessage:"Add option"})})})]})]})},T=m.gql`
65
- mutation RemoveFilterOption($filterId: ID!, $filterOptionValue: String!) {
66
- removeFilterOption(
67
- filterId: $filterId
68
- filterOptionValue: $filterOptionValue
69
- ) {
70
- _id
71
- }
72
- }
73
- `;var q=e.i(15971),O=e.i(65153),V=e.i(3095),A=e.i(81013);let R=({filterId:e,option:i,onDelete:a})=>{let{formatMessage:s}=(0,l.useIntl)(),[r,d]=(0,u.useState)(!1),{selectedLocale:n}=(0,M.default)(),o=s({id:"saved",defaultMessage:"Saved"}),{updateFilterTexts:c}=y(),m=async({title:t,value:l,subtitle:i})=>(await c({filterId:e,filterOptionValue:l,texts:[{locale:n,title:t,subtitle:i}]}),d(!1),{success:!0}),g=(0,p.default)({submit:m,successMessage:o,initialValues:{title:"",subtitle:"",...i,...i?.texts}});return(0,t.jsx)(f.default,{form:g,children:(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("li",{className:"py-2 px-2",children:(0,t.jsxs)("div",{className:"flex justify-between items-center gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center flex-wrap gap-3",children:[(0,t.jsx)(O.default,{text:i?.value,color:"slate",square:!0,className:"break-all"}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,t.jsx)("div",{className:"truncate text-sm text-slate-900 dark:text-slate-200",children:r?(0,t.jsx)(x.default,{name:"title",required:!0,label:s({id:"title",defaultMessage:"Title"})}):i?.texts?.title}),(0,t.jsx)("div",{className:"truncate text-sm text-slate-500 dark:text-slate-200",children:r?(0,t.jsx)(x.default,{name:"subtitle",label:s({id:"subtitle",defaultMessage:"Subtitle"})}):i?.texts?.subtitle&&i?.texts?.subtitle})]})]}),(0,t.jsx)("div",{children:r?(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(A.default,{variant:"secondary",onClick:()=>d(!r),text:s({id:"cancel",defaultMessage:"Cancel"})}),(0,t.jsx)(A.default,{variant:"primary",disabled:!g.formik.isValid,onClick:g.formik.handleSubmit,text:s({id:"save",defaultMessage:"Save"})})]}):(0,t.jsx)(V.default,{onEdit:()=>{d(!r)},onDelete:()=>{a(i?.value)},showEdit:!0,showDelete:!0})})]})})})})},D=({filterId:e,options:i})=>{let{formatMessage:a}=(0,l.useIntl)(),{setModal:s}=(0,C.default)(),{selectedLocale:d}=(0,M.default)(),{removeFilterOption:n}=(()=>{let[e]=(0,g.useMutation)(T);return{removeFilterOption:async({filterId:t,filterOptionValue:l})=>e({variables:{filterOptionValue:l,filterId:t},refetchQueries:["FilterOptions"]})}})(),u=async l=>{await s((0,t.jsx)(q.default,{onCancelClick:async()=>s(""),message:a({id:"delete_filter_option_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this filter option? "}),onOkClick:async()=>{s(""),await n({filterId:e,filterOptionValue:l}),r.toast.success(a({id:"filter_deleted",defaultMessage:"Filter deleted successfully"}))},okText:a({id:"delete_filter_option",defaultMessage:"Delete option"})}))};return(0,t.jsx)("div",{children:(0,t.jsx)("ul",{className:"-my-5 divide-y divide-slate-200 dark:divide-slate-700 pb-3 ",children:i.map(l=>(0,t.jsx)(R,{filterId:e,option:l,onDelete:u},`${l._id}${d}`))})})},E=({filterId:e})=>{let{formatMessage:i}=(0,l.useIntl)(),{selectedLocale:a}=(0,M.default)(),{filterOptions:s}=(({filterId:e=null,locale:t}={})=>{let{data:l,loading:i,error:a}=(0,j.useQuery)(N,{skip:!e,variables:{filterId:e,forceLocale:t}});return{filterOptions:l?.filter?.options||[],loading:i,error:a}})({filterId:e,locale:a}),{setModal:r}=(0,C.default)(),{createFilterOption:d}=(()=>{let[e]=(0,g.useMutation)(k);return{createFilterOption:async({filterId:t,option:l,texts:i})=>e({variables:{filterId:t,option:l,texts:i},refetchQueries:["FilterOptions"]})}})(),{hasRole:n}=(0,I.default)(),u=async({value:t,title:l,subtitle:i})=>(await d({filterId:e,option:t,texts:[{title:l,locale:a,subtitle:i}]}),r(""),{success:!0});return(0,t.jsx)(_.default,{documentationLabel:i({id:"filer_options",defaultMessage:"Filter options"}),sideComponents:n(o.IRoleAction.ManageFilters)?(0,t.jsx)("button",{type:"button",onClick:()=>r((0,t.jsx)(S,{onSubmit:u,onCancel:()=>r("")})),className:"fixed top-0 right-0 z-10 mb-5 mt-5 mr-2 h-9 rounded-md border border-transparent bg-slate-800 dark:bg-slate-600 px-3 py-1 text-sm font-medium leading-5 text-white shadow-xs hover:bg-slate-950 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 sm:fixed sm:top-auto sm:right-auto",children:i({id:"add_filter_option",defaultMessage:"Add option"})}):null,children:(0,t.jsx)("div",{className:"mt-8 w-full border-slate-300 dark:border-slate-800 p-3 sm:mt-0 shadow-md bg-white dark:bg-slate-900",children:(0,t.jsx)(D,{filterId:e,options:s})})})},L=({filterKey:e,filterType:i})=>{let{formatMessage:a}=(0,l.useIntl)();return(0,t.jsxs)("div",{className:"mt-5 flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"text-sm",children:a({id:"key",defaultMessage:"Key"})}),(0,t.jsx)("div",{className:"rounded-md border-1 border-slate-200 dark:border-slate-600 bg-slate-100 dark:bg-slate-700 py-1 px-2 text-sm text-slate-700 dark:text-slate-200",children:e})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"text-sm",children:a({id:"filter_type",defaultMessage:"Filter Type"})}),(0,t.jsx)("div",{className:"rounded-md border-1 border-slate-200 dark:border-slate-600 bg-slate-100 dark:bg-slate-700 py-1 px-2 text-sm text-slate-700 dark:text-slate-200",children:i})]})]})};var Q=e.i(80294);let P=m.gql`
74
- mutation UpdateFilter($filter: UpdateFilterInput!, $filterId: ID!) {
75
- updateFilter(filter: $filter, filterId: $filterId) {
76
- ...FilterFragment
77
- }
78
- }
79
- ${Q.default}
80
- `;var B=e.i(31494),U=e.i(11056);let H=({selectedView:e,id:l,...i})=>"text"===e?(0,t.jsx)(U.default,{children:(0,t.jsx)(w,{filterId:l})}):"options"===e?(0,t.jsx)(U.default,{children:(0,t.jsx)(E,{filterId:l})}):"extended"===e?(0,t.jsx)(B.default,{data:i}):(0,t.jsx)(U.default,{children:(0,t.jsx)(w,{filterId:l})});e.s(["default",0,({filter:e,extendedData:u})=>{let{_id:o,isActive:f,key:c,type:x,created:p,updated:m}=e||{},{formatMessage:h,formatDate:v}=(0,l.useIntl)(),{updateFilter:y}=(()=>{let[e]=(0,g.useMutation)(P);return{updateFilter:async({filterId:t,filter:l})=>e({variables:{filter:l,filterId:t}})}})(),j=[{id:"text",title:h({id:"text",defaultMessage:"Text"}),Icon:(0,t.jsx)(i.DocumentTextIcon,{className:"h-5 w-5"})},{id:"options",title:h({id:"options",defaultMessage:"Options"}),Icon:(0,t.jsx)(a.ClipboardDocumentListIcon,{className:"h-5 w-5"})},null!==u&&{id:"extended",title:h({id:"extended-fields",defaultMessage:"Extended"}),Icon:(0,t.jsx)(s.PuzzlePieceIcon,{className:"h-5 w-5"})}].filter(Boolean),b=[{id:"activate",title:h({id:"activate",defaultMessage:"Activate"}),selectedTitle:h({id:"active",defaultMessage:"Active"}),onClick:async()=>{await y({filterId:o,filter:{isActive:!0}}),r.toast.success(h({id:"filter_activated",defaultMessage:"Filter activated!",description:"shown on successful toggle of filter status"}))},current:f,bgColor:"green"},{id:"deactivate",title:h({id:"deactivate",defaultMessage:"Deactivate"}),onClick:async()=>{await y({filterId:o,filter:{isActive:!1}}),r.toast.success(h({id:"filter_deactivated",defaultMessage:"Filter deactivated!",description:"shown on successful toggle of filter status"}))},selectedTitle:h({id:"deactivated",defaultMessage:"Deactivated"}),current:!f,bgColor:"slate"}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("div",{children:(0,t.jsx)(L,{filterKey:c,filterType:x})}),(0,t.jsx)("div",{className:"self-end",children:(0,t.jsx)(d.default,{options:b,type:h({id:"filter",defaultMessage:"Filter"})})})]}),(0,t.jsx)(n.default,{tabItems:j,defaultTab:"text",children:(0,t.jsx)(H,{id:e?._id,...u})})]})}],19759);var K=e.i(70693);e.s(["default",0,({filterId:e=null}={})=>{let{customProperties:t,hydrateFragment:l}=(0,K.default)(),{data:i,loading:a,error:s}=(0,j.useQuery)(((e="")=>m.gql`
81
- query Filter($filterId: ID) {
82
- filter(filterId: $filterId) {
83
- ...FilterFragment
84
- ${e}
85
- texts {
86
- _id
87
- title
88
- subtitle
89
- locale
90
- }
91
- }
92
- }
93
- ${Q.default}
94
- `)(t?.Filter),{skip:!e,variables:{filterId:e}}),r=i?.filter,d=l(t?.Filter,r);return{filter:r,loading:a,error:s,extendedData:d}}],78495)},80294,e=>{"use strict";var t=e.i(59080);let l=t.gql`
95
- fragment FilterFragment on Filter {
96
- _id
97
- updated
98
- created
99
- key
100
- isActive
101
- type
102
- options {
103
- _id
104
- texts {
105
- _id
106
- title
107
- subtitle
108
- locale
109
- }
110
- value
111
- }
112
- }
113
- `;e.s(["default",0,l])},54680,e=>{"use strict";var t=e.i(59080),l=e.i(32171),i=e.i(80294);let a=t.gql`
114
- query Filters(
115
- $queryString: String
116
- $limit: Int
117
- $offset: Int
118
- $includeInactive: Boolean
119
- $sort: [SortOptionInput!]
120
- ) {
121
- filters(
122
- queryString: $queryString
123
- limit: $limit
124
- offset: $offset
125
- includeInactive: $includeInactive
126
- sort: $sort
127
- ) {
128
- ...FilterFragment
129
- texts {
130
- _id
131
- title
132
- subtitle
133
- locale
134
- }
135
- }
136
- filtersCount(includeInactive: $includeInactive, queryString: $queryString)
137
- }
138
- ${i.default}
139
- `;e.s(["default",0,({queryString:e="",limit:t=20,offset:i=0,includeInactive:s=!0,sort:r=[],forceLocale:d=""}={})=>{let{data:n,loading:u,error:o,fetchMore:f,client:c}=(0,l.useQuery)(a,{context:{headers:{forceLocale:d}},variables:{queryString:e,limit:t,offset:i,includeInactive:s,sort:r}}),x=n?.filters||[],p=n?.filtersCount,m=x?.length<p;return{filters:x,filtersCount:p,hasMore:m,loading:u,error:o,loadMore:()=>{f({variables:{offset:x?.length}})},client:c}}])},50259,e=>{"use strict";var t=e.i(59080),l=e.i(76204);let i=t.gql`
140
- mutation RemoveFilter($filterId: ID!) {
141
- removeFilter(filterId: $filterId) {
142
- _id
143
- }
144
- }
145
- `;e.s(["default",0,()=>{let[e]=(0,l.useMutation)(i);return{removeFilter:async({filterId:t})=>e({variables:{filterId:t},refetchQueries:["Filters"]})}}])},89142,e=>{"use strict";var t=e.i(91398),l=e.i(3828),i=e.i(66773),a=e.i(69322),s=e.i(28401),r=e.i(58971),d=e.i(61494),n=e.i(81359),u=e.i(12197),o=e.i(17644),f=e.i(19759),c=e.i(78495),x=e.i(50259),p=e.i(15971),m=e.i(6607);e.s(["default",0,({filterId:e})=>{let{formatMessage:g}=(0,a.useIntl)(),{setModal:h}=(0,m.default)(),v=(0,l.useRouter)(),{filter:y,loading:j,extendedData:b}=(0,c.default)({filterId:e}),{hasRole:_}=(0,r.default)(),{removeFilter:I}=(0,x.default)(),F=async()=>{await h((0,t.jsx)(p.default,{onCancelClick:async()=>h(""),message:g({id:"delete_filter_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this filter? "}),onOkClick:async()=>{h(""),await I({filterId:e}),s.toast.success(g({id:"filter_deleted",defaultMessage:"Filter deleted successfully"})),v.push("/filters")},okText:g({id:"delete_filter",defaultMessage:"Delete filter"})}))};return y||j?j?(0,t.jsx)(u.default,{}):(0,t.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,t.jsx)(d.default,{currentPageTitle:y?.key}),(0,t.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,t.jsx)(o.default,{headerText:g({id:"filter_detail",defaultMessage:"Filter Detail"}),title:g({id:"filter_detail_title",defaultMessage:"Filter {id}"},{id:y?._id})}),_(i.IRoleAction.ManageFilters)&&(0,t.jsx)(n.default,{onClick:F})]}),(0,t.jsx)(f.default,{filter:y,extendedData:b})]}):(v.push("/404"),null)}])},16205,e=>{"use strict";var t=e.i(91398),l=e.i(69322),i=e.i(66773),a=e.i(28401),s=e.i(3828),r=e.i(61494),d=e.i(94724),n=e.i(17644),u=e.i(64591),o=e.i(60193),f=e.i(58971),c=e.i(12197),x=e.i(78704),p=e.i(8918),m=e.i(54680),g=e.i(41158),h=e.i(65153),v=e.i(3095);let y={SWITCH:"sky",SINGLE_CHOICE:"lime",MULTI_CHOICE:"cyan"},j=({filter:e,onRemove:a})=>{let{formatMessage:r}=(0,l.useIntl)(),{hasRole:d}=(0,f.default)(),n=(0,s.useRouter)(),u={true:r({id:"active",defaultMessage:"Active"}),false:r({id:"in_active",defaultMessage:"In-Active"})},o=async()=>{await a(e?._id)};return(0,t.jsxs)(p.default.Row,{className:"group",children:[(0,t.jsx)(p.default.Cell,{children:(0,t.jsx)(g.default,{href:`/filters?filterId=${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:e?.key&&(e?.key||(0,t.jsxs)(t.Fragment,{children:[e._id," ",(0,t.jsx)(h.default,{color:"blue",text:r({id:"name",defaultMessage:"Name"})})]}))})}),(0,t.jsx)(p.default.Cell,{children:(0,t.jsx)(g.default,{href:`/filters?filterId=${e._id}`,className:"block",children:(0,t.jsx)(h.default,{text:e.type?.split("_")?.join(" "),color:y[e.type],square:!0})})}),(0,t.jsx)(p.default.Cell,{children:(0,t.jsx)(g.default,{href:`/filters?filterId=${e._id}`,className:"block",children:(0,t.jsx)(h.default,{text:u[e.isActive],color:e.isActive?"emerald":"amber",square:!0})})}),(0,t.jsx)(p.default.Cell,{children:(0,t.jsx)(g.default,{href:`/filters?filterId=${e._id}`,className:"block",children:e.options?.length})}),(0,t.jsx)(p.default.Cell,{className:"text-right",children:(0,t.jsx)(v.default,{onEdit:()=>{n.push(`/filters?filterId=${e._id}`)},onDelete:o,showEdit:!0,showDelete:d(i.IRoleAction.ManageFilters)})})]})};var b=e.i(57561);let _=({onRemoveFilter:e,sortKeys:a,queryString:s,limit:r,includeInactive:d,offset:n})=>{let{formatMessage:u}=(0,l.useIntl)(),{selectedLocale:o}=(0,b.default)(),{hasRole:g}=(0,f.default)(),{filters:h,loading:v,loadMore:y,hasMore:_}=(0,m.default)({queryString:s,limit:r,includeInactive:d,offset:n,sort:a,forceLocale:o});return v&&h?.length===0?(0,t.jsx)(c.default,{}):(0,t.jsx)(x.default,{loading:v,hasMore:_,onLoadMore:y,children:(0,t.jsxs)(p.default,{className:"min-w-full ",children:[h?.map(e=>(0,t.jsxs)(p.default.Row,{header:!0,children:[(0,t.jsx)(p.default.Cell,{children:u({id:"filter_key",defaultMessage:"Key",description:"Filter form key"})}),(0,t.jsx)(p.default.Cell,{name:"type",children:u({id:"type",defaultMessage:"Type"})}),(0,t.jsx)(p.default.Cell,{name:"isActive",children:u({id:"active",defaultMessage:"Active"})}),(0,t.jsx)(p.default.Cell,{children:u({id:"options",defaultMessage:"Options"})}),g(i.IRoleAction.ManageFilters)&&(0,t.jsx)(p.default.Cell,{children:(0,t.jsx)("span",{className:"sr-only",children:u({id:"delete",defaultMessage:"Delete"})})})]},e._id)),h?.map(l=>(0,t.jsx)(j,{filter:l,onRemove:e},`${l?._id}-body`))]})})};var I=e.i(15971),F=e.i(6607),M=e.i(50259),w=e.i(83147),C=e.i(51128),k=e.i(59080),$=e.i(32171);let N=k.gql`
146
- query FiltersCount($queryString: String, $includeInactive: Boolean) {
147
- filtersCount(includeInactive: $includeInactive, queryString: $queryString)
148
- }
149
- `,S=({queryString:e="",includeInactive:t=!0}={})=>{let{data:l,loading:i,error:a}=(0,$.useQuery)(N,{variables:{queryString:e,includeInactive:t}});return{filtersCount:l?.filtersCount,loading:i,error:a}};var T=e.i(89142),q=e.i(11056),O=e.i(74954),V=e.i(91788),A=e.i(81013),R=e.i(60513);let D=["_id","key","type","isActive"],E=["optionId","filterId","value"],L=["title","subtitle"];var Q=e.i(75284);let P=({queryString:e,includeInactive:i})=>{let{formatMessage:a}=(0,l.useIntl)(),{filtersCount:s,loading:r}=S({queryString:e,includeInactive:i}),{setModal:d}=(0,F.default)(),{exportFilters:n,isExporting:u}=(()=>{let{exportCSV:e,isExporting:t}=(0,R.useCSVExport)();return{exportFilters:(0,V.useCallback)(async t=>{await e({type:"FILTERS",...t})},[e]),isExporting:t}})(),o=[{key:"exportFilters",label:a({id:"filters",defaultMessage:"Filters"})},{key:"exportFilterOptions",label:a({id:"filter_options",defaultMessage:"Filter options"})}],f=(0,V.useCallback)(async t=>{await n({queryString:e,includeInactive:i,...t}),d(null)},[e,i,n,d]);return r?null:(0,t.jsx)(A.default,{onClick:()=>{d((0,t.jsx)(Q.default,{options:o,onSubmit:f,loading:u}))},disabled:u||!s,variant:"secondary",text:a(u?{id:"exporting",defaultMessage:"Exporting..."}:{id:"export",defaultMessage:"Export"})})};var B=e.i(78193),U=e.i(22003);let H=e=>{let t=e.value,l={};return Object.entries(e).forEach(([e,t])=>{if(!e.startsWith("texts."))return;let[,i,a]=e.split(".");l[i]||={},l[i][a]=t||""}),{value:t,content:l}},K=({filtersCSV:e,optionsCSV:t},l)=>{let a=[];for(let t of e)t._id||a.push(l.formatMessage({id:"filter_import.id_missing",defaultMessage:"Filter _id is required"})),t.key||a.push(l.formatMessage({id:"filter_import.key_missing",defaultMessage:"Filter key is required"})),t.type||a.push(l.formatMessage({id:"filter_import.type_missing",defaultMessage:"Filter type is required"})),t.type&&![i.IFilterType.SingleChoice,i.IFilterType.MultiChoice,i.IFilterType.Range,i.IFilterType.Switch].includes(t.type)&&a.push(l.formatMessage({id:"filter_csv_invalid_type_set",defaultMessage:"invalid filter type {type}"},{type:t.type}));for(let e of t)e.value||a.push(l.formatMessage({id:"filter_option_csv_value_missing",defaultMessage:"Filter options value is required"})),e.filterId||a.push(l.formatMessage({id:"filter_option_csv_filterId_missing",defaultMessage:"Filter option filterId is required"}));return a};var z=e.i(72552),Z=e.i(16785);let W={filtersCSV:D,optionsCSV:E},X=({onImport:e})=>{let i=(0,V.useRef)({}),{languageDialectList:a}=(0,b.default)(),s=a?.map(e=>e.isoCode)||[],[r,d]=(0,V.useState)({filtersCSV:[],optionsCSV:[]}),[n,u]=(0,V.useState)({}),[o,f]=(0,V.useState)(!1),{formatMessage:c}=(0,l.useIntl)(),x=[{key:"filtersCSV",label:c({id:"filters_csv_file",defaultMessage:"Filters CSV"})},{key:"optionsCSV",label:c({id:"filter_options_csv_file",defaultMessage:"Filter options CSV (Optional)"}),optional:!0}],p=async e=>{let t=await e.text();return z.default.parse(t,{header:!0,skipEmptyLines:!0}).data},m=async(e,t)=>{if(!t)return;let l=await p(t),i=((e,t)=>{if(!t.length)return!1;let l=Object.keys(t[0]),i=W[e].filter(e=>!l.includes(e));return i.length?(u(t=>({...t,[e]:c({id:"csv_missing_fields",defaultMessage:"Missing required columns: {fields}"},{fields:i.join(", ")})})),!1):(u(t=>({...t,[e]:void 0})),!0)})(e,l);d(t=>({...t,[e]:i?l:[]}))},g=async(e,t)=>{let l=e.target.files?.[0];await m(t,l),e.target.value=""},h=(0,V.useCallback)(async()=>{f(!0);try{await e(r)}catch(e){console.error("Error importing filters:",e)}finally{f(!1)}},[r,e]),v=r.filtersCSV.length>0,y=Object.values(n).some(Boolean);return(0,t.jsxs)("div",{className:"max-w-md mx-auto p-6 bg-white border border-gray-200 rounded-lg shadow-md flex flex-col gap-6",children:[(0,t.jsx)("h3",{className:"text-center text-lg font-semibold",children:c({id:"filter_import_title",defaultMessage:"Import Filters"})}),(0,t.jsx)("p",{className:"text-center text-sm text-gray-600",children:c({id:"filter_import_description",defaultMessage:"Select your filters CSV and optional filter options CSV, then click Import."})}),x.map(({key:e,label:l,optional:a})=>(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("input",{ref:t=>{i.current[e]=t??null},type:"file",accept:".csv",onChange:t=>g(t,e),className:"hidden"}),(0,t.jsxs)("div",{className:"flex justify-between items-center gap-2",children:[(0,t.jsx)(A.default,{text:r[e].length?c({id:`${e}_file_selected`,defaultMessage:`${l} Selected`}):c({id:`select_${e}`,defaultMessage:`Select ${l}`}),onClick:()=>i.current[e]?.click(),variant:"secondary",className:"flex-1",disabled:o||!v&&a}),(0,t.jsx)("button",{type:"button",className:"text-xs text-blue-600 hover:underline",title:"Download a CSV template with required columns",onClick:()=>((e,t,l=[])=>{let i=((e,t=[])=>{if("filtersCSV"===e)return[...D,...t.flatMap(e=>L.map(t=>`texts.${e}.${t}`))];if("optionsCSV"===e)return[...E,...t.flatMap(e=>L.map(t=>`texts.${e}.${t}`))];return[]})(e,l).join(",");(0,Z.downloadCSV)(i,t)})(e,`${e}_template.csv`,s),children:c({id:"download_csv_template",defaultMessage:"Download template"})})]}),n[e]&&(0,t.jsxs)("p",{className:"text-red-600 text-xs flex items-center gap-1",children:["⚠ ",n[e]]})]},e)),(0,t.jsx)(A.default,{text:o?"Importing…":"Import",onClick:h,disabled:o||!v||y,variant:"primary",className:"w-full flex justify-center items-center gap-2",children:o&&(0,t.jsx)("span",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"})}),v&&!y&&(0,t.jsx)("p",{className:"text-center text-xs text-gray-500",children:c({id:"ready_to_import_filters",defaultMessage:"Ready to import {filters} filters{options}."},{filters:r.filtersCSV.length,options:r.optionsCSV.length?` with ${r.optionsCSV.length} options`:""})})]})};var G=e.i(42912);let Y=()=>{let{formatMessage:e}=(0,l.useIntl)(),{hasRole:s}=(0,f.default)(),{setModal:r}=(0,F.default)(),{prepareFilterImport:d}={prepareFilterImport:async({filtersCSV:e,optionsCSV:t})=>e.map(e=>{var l;let i,a=(t||[]).filter(t=>t.filterId===e._id);return l={...e,options:a},i=(0,U.default)(l.meta),{entity:"FILTER",operation:"CREATE",payload:{_id:l._id,specification:{type:l.type,key:l.key||"",isActive:"true"===l.isActive,content:((e,t="texts.")=>{let l={};return Object.entries(e).forEach(([e,i])=>{if(!e.startsWith(t))return;let[,a,s]=e.split(".");l[a]=l[a]||{},l[a][s]=i||""}),l})(l),options:(l?.options??[]).map(H),meta:i}}}})},{isImporting:n,importItems:u}=(0,B.useCSVImport)({validate:K,process:d});return s(i.IRoleAction.ManageProducts)?(0,t.jsx)(A.default,{onClick:()=>{r((0,t.jsx)(X,{onImport:async e=>{let l=await u(e);r(null),(0,a.toast)((0,t.jsx)(G.default,{result:l,entityName:"Filters"}))}}))},disabled:n,variant:"secondary",text:e(n?{id:"importing",defaultMessage:"Importing..."}:{id:"import",defaultMessage:"Import"})}):null};e.s(["default",0,()=>{let{query:e,push:c}=(0,s.useRouter)(),x=parseInt(e?.limit,10)||o.DefaultLimit,p=parseInt(e?.skip,10)||0,m=e?.sort||"",{hasRole:g}=(0,f.default)(),h=e?.includeInactive==="true"||!e?.includeInactive,{setModal:v}=(0,F.default)(),{removeFilter:y}=(0,M.default)(),{queryString:j,filterId:b,...k}=e,{filtersCount:$}=S({queryString:j,includeInactive:h}),N=(0,w.convertSortFieldsToQueryFormat)(m),{formatMessage:V}=(0,l.useIntl)(),A=async e=>{await v((0,t.jsx)(I.default,{onCancelClick:async()=>v(""),message:V({id:"delete_filter_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this filter? "}),onOkClick:async()=>{v(""),await y({filterId:e}),a.toast.success(V({id:"filter_deleted",defaultMessage:"Filter deleted successfully"}))},okText:V({id:"delete_filter",defaultMessage:"Delete filter"})}))};if(b)return(0,t.jsx)(T.default,{filterId:b});let R=1===$?V({id:"filter_header",defaultMessage:"1 Filter"}):V({id:"filter_count_header",defaultMessage:"{count} Filters"},{count:(0,t.jsx)(O.default,{value:$})});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{}),(0,t.jsx)("div",{className:"w-full",children:(0,t.jsxs)(n.default,{title:V({id:"filter_page_title",defaultMessage:"{count, plural, one {# Filter} other {# Filters}}"},{count:$}),headerText:R,addPath:g(i.IRoleAction.ManageFilters)&&"/filters/new",addButtonText:V({id:"add_filter",defaultMessage:"Add Filter"}),children:[(0,t.jsx)(P,{queryString:j,includeInactive:h}),(0,t.jsx)(Y,{})]})}),(0,t.jsxs)("div",{className:"min-w-full overflow-x-auto px-1",children:[(0,t.jsx)(d.default,{children:(0,t.jsx)(u.default,{toggleText:V({id:"include_inactive",defaultMessage:"Include inactive"}),toggleKey:"includeInactive",active:h})}),(0,t.jsx)(C.default,{onSearchChange:e=>{let{skip:t,...l}=k;e?c({query:(0,w.normalizeQuery)(l,e,"queryString")}):c({query:(0,w.normalizeQuery)(k)})},defaultSearchValue:j,children:(0,t.jsx)(q.default,{onlyFull:!0,children:(0,t.jsx)(_,{onRemoveFilter:A,queryString:j,limit:x,includeInactive:h,offset:p,sortKeys:N})})})]})]})}],16205)},83549,(e,t,l)=>{let i="/filters";(window.__NEXT_P=window.__NEXT_P||[]).push([i,()=>e.r(16205)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([i])})},27572,e=>{"use strict";var t=e.i(91788);let l=t.forwardRef(function({title:e,titleId:l,...i},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":l},i),e?t.createElement("title",{id:l},e):null,t.createElement("path",{fillRule:"evenodd",d:"M15.988 3.012A2.25 2.25 0 0 1 18 5.25v6.5A2.25 2.25 0 0 1 15.75 14H13.5V7A2.5 2.5 0 0 0 11 4.5H8.128a2.252 2.252 0 0 1 1.884-1.488A2.25 2.25 0 0 1 12.25 1h1.5a2.25 2.25 0 0 1 2.238 2.012ZM11.5 3.25a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 .75.75v.25h-3v-.25Z",clipRule:"evenodd"}),t.createElement("path",{fillRule:"evenodd",d:"M2 7a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7Zm2 3.25a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Zm0 3.5a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"}))});e.s(["ClipboardDocumentListIcon",0,l],27572)}]);
@@ -1,188 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,56599,e=>{"use strict";var t=e.i(91398),r=e.i(90645),s=e.i(72043),a=e.i(91788),l=e.i(69322),i=e.i(59080),n=e.i(76204),d=e.i(21649);let o=i.gql`
2
- mutation ExportToken(
3
- $tokenId: ID!
4
- $quantity: Int! = 1
5
- $recipientWalletAddress: String!
6
- ) {
7
- exportToken(
8
- tokenId: $tokenId
9
- quantity: $quantity
10
- recipientWalletAddress: $recipientWalletAddress
11
- ) {
12
- ...TokenFragment
13
- }
14
- }
15
- ${d.default}
16
- `,u=({isOpen:e,addresses:r,cancel:s,onExport:i})=>{let[n,d]=(0,a.useState)(""),{formatMessage:o}=(0,l.useIntl)();return e&&(0,t.jsxs)("div",{className:"relative z-10","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",children:[(0,t.jsx)("div",{className:"fixed inset-0 bg-slate-500 bg-opacity/75 transition-opacity"}),(0,t.jsx)("div",{className:"fixed inset-0 z-10 overflow-y-auto",children:(0,t.jsx)("div",{className:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0",children:(0,t.jsxs)("div",{className:"relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6",children:[(0,t.jsx)("div",{children:(0,t.jsx)("fieldset",{className:"space-y-5",children:r?.map(e=>(0,t.jsxs)("div",{className:"relative flex items-start",children:[(0,t.jsx)("div",{className:"flex h-5 items-center",children:(0,t.jsx)("input",{id:e.address,name:"addresses",value:e.address,onChange:()=>{d(e.address)},checked:n?.toLowerCase()===e.address?.toLowerCase(),type:"checkbox",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-900"})}),(0,t.jsx)("div",{className:"ml-3 text-sm",children:(0,t.jsx)("label",{htmlFor:"comments",className:"font-medium text-slate-700",children:e.address})})]},e.address))})}),(0,t.jsxs)("div",{className:"mt-4",children:[(0,t.jsx)("label",{htmlFor:"Address",className:"block text-sm font-medium text-slate-700",children:o({id:"or_manually_enter_address",defaultMessage:"Or enter address manually"})}),(0,t.jsx)("div",{className:"mt-1",children:(0,t.jsx)("input",{type:"text",onChange:e=>d(e.target.value),value:n,name:"Address",id:"Address",className:"block w-full rounded-md border-slate-300 shadow-xs focus:border-slate-900 focus:ring-slate-900 sm:text-sm",placeholder:"0xF5F72AE7fa1fa990ebaF163208Ed7aD6a3f42DEA"})})]}),(0,t.jsxs)("div",{className:"mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:()=>i(n),className:"inline-flex w-full justify-center rounded-md border border-transparent bg-slate-950 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-slate-950 focus:outline-hidden focus:ring-2 focus:ring-slate-900 focus:ring-offset-2 sm:col-start-2 sm:text-sm",children:o({id:"export",defaultMessage:"Export"})}),(0,t.jsx)("button",{type:"button",onClick:s,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-900 focus:ring-offset-2 sm:col-start-1 sm:mt-0 sm:text-sm",children:o({id:"cancel",defaultMessage:"Cancel"})})]})]})})})]})};e.s(["default",0,({tokenId:e,tokenStatus:i,addresses:d=[]})=>{let{exportToken:c}=(()=>{let[e]=(0,n.useMutation)(o);return{exportToken:async({quantity:t,recipientWalletAddress:r,tokenId:s})=>e({variables:{quantity:t,recipientWalletAddress:r,tokenId:s}})}})(),{formatMessage:m}=(0,l.useIntl)(),[f,h]=(0,a.useState)(!1),x=async t=>{await c({tokenId:e,recipientWalletAddress:t}),h(!1)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u,{isOpen:f,cancel:()=>{h(!1)},onExport:x,addresses:d}),"DECENTRALIZED"!==i&&(0,t.jsxs)("button",{type:"button",onClick:()=>h(!0),disabled:"EXPORTING"===i,className:(0,s.default)(" text-center inline-flex truncate rounded-md border border-transparent bg-slate-950 px-5 py-1 text-base font-medium text-white shadow-xs hover:bg-slate-950 focus:outline-hidden focus:ring-2 focus:ring-slate-900 focus:ring-offset-2",{"bg-slate-400 hover:bg-slate-500":"EXPORTING"===i}),children:[(0,t.jsx)(r.LinkIcon,{className:"w-6 h-6 mr-2"}),m("CENTRALIZED"===i?{id:"export",defaultMessage:"Export"}:{id:"exporting",defaultMessage:"Exporting..."})]})]})}],56599)},97351,e=>{"use strict";var t=e.i(10576),r=e.i(59080),s=e.i(76204);let a=r.gql`
17
- mutation CreateWebAuthnCredentialCreationOptions($username: String!) {
18
- createWebAuthnCredentialCreationOptions(username: $username)
19
- }
20
- `,l=e=>window.btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");e.s(["default",0,()=>{let{createWebAuthnCredentialCreationOptions:e}=(()=>{let[e]=(0,s.useMutation)(a);return{createWebAuthnCredentialCreationOptions:async({username:t})=>e({variables:{username:t}})}})();return{generateWebAuthCredentials:async({username:r})=>{let{data:s}=await e({username:r}),{createWebAuthnCredentialCreationOptions:a}=s,i=new TextEncoder;a.challenge=(0,t.default)(a.challenge),a.user={id:i.encode(r),name:r,displayName:r};let n=await navigator.credentials.create({publicKey:a}),d=l(n.response.attestationObject),o=l(n.response.clientDataJSON),u=l(n.rawId),c=n.response.getAuthenticatorData?l(n.response.getAuthenticatorData()):"",m=n.response.getPublicKey?l(n.response.getPublicKey()):"";return{id:u,rawId:u,response:{clientDataJSON:o,attestationObject:d,authenticatorData:c,publicKey:m,publicKeyAlgorithm:n.response.getPublicKeyAlgorithm?n.response.getPublicKeyAlgorithm():-7,transports:n.response.getTransports?n.response.getTransports():["internal"]},authenticatorAttachment:n.authenticatorAttachment||"platform",clientExtensionResults:n.getClientExtensionResults?.()||{},type:"public-key",user:{id:r,name:r,displayName:r}}}}}],97351)},44926,e=>{"use strict";var t=e.i(91398),r=e.i(72043),s=e.i(69322);e.s(["default",0,({isActive:e,activeText:a=null,activeClassName:l="",inActiveClassName:i="",inActiveText:n=null,containerClassName:d=""})=>{let{formatMessage:o}=(0,s.useIntl)();return(0,t.jsx)("span",{className:(0,r.default)("",d),children:e?(0,t.jsx)("span",{className:(0,r.default)("inline-flex items-center border rounded-full px-2.5 py-0.5 text-sm font-medium bg-emerald-50 dark:bg-emerald-900/30 text-emerald-700 dark:text-emerald-300 border-emerald-200 dark:border-emerald-800 uppercase",l),children:a||o({id:"active",defaultMessage:"Active"})}):(0,t.jsx)("span",{className:(0,r.default)("inline-flex items-center border rounded-full px-2.5 py-0.5 text-sm font-medium bg-amber-100 dark:bg-yellow-900/30 text-yellow-800 dark:text-yellow-300 border-amber-400 dark:border-yellow-800 uppercase",i),children:n||o({id:"inactive",defaultMessage:"In-Active"})})})}])},35065,16509,e=>{"use strict";var t=e.i(91398),r=e.i(26019),s=e.i(91788),a=e.i(69322);let l=({src:e,width:t,quality:r=75})=>e?`${e}?w=${t}&q=${r}`:"/no-image.jpg";e.s(["default",0,l],16509);let i=({className:e="w-full h-full",width:r=200,height:s=200})=>(0,t.jsxs)("svg",{width:r,height:s,viewBox:"0 0 200 200",fill:"none",className:e,xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"10",y:"10",width:"180",height:"180",rx:"8",stroke:"currentColor",strokeWidth:"3",strokeDasharray:"8 4",fill:"transparent",className:"text-slate-800 dark:text-slate-400"}),(0,t.jsx)("rect",{x:"40",y:"40",width:"120",height:"80",rx:"4",stroke:"currentColor",strokeWidth:"3",fill:"transparent"}),(0,t.jsx)("path",{d:"M50 100 L70 80 L90 95 L110 75 L130 90 L150 70",stroke:"currentColor",strokeWidth:"3",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("circle",{cx:"130",cy:"55",r:"8",stroke:"currentColor",strokeWidth:"3",fill:"transparent"}),(0,t.jsx)("text",{x:"100",y:"145",textAnchor:"middle",className:"text-slate-800 dark:text-slate-300 text-sm font-semibold",fill:"currentColor",children:"No Image"})]});e.s(["default",0,({fallbackSrc:e="",src:n,...d})=>{let[o,u]=(0,s.useState)(n),[c,m]=(0,s.useState)(!1),{formatMessage:f}=(0,a.useIntl)();return c||!o?(0,t.jsx)("div",{className:d.className||"w-full h-full flex items-center justify-center bg-slate-50 dark:bg-slate-800",children:(0,t.jsx)(i,{width:d.width||200,height:d.height||200,className:"max-w-full max-h-full"})}):(0,t.jsx)(r.default,{src:o,loader:l,alt:f({id:"image-not-found",defaultMessage:"Image not found"}),...d,onError:()=>{e&&o!==e?u(e):m(!0)}})}],35065)},77043,e=>{"use strict";var t=e.i(91398),r=e.i(72043),s=e.i(69322),a=e.i(35065),l=e.i(22315);e.s(["default",0,({file:e,className:i=""})=>{let{formatMessage:n}=(0,s.useIntl)();return(0,t.jsx)("div",{className:(0,r.default)("h-10 w-10 shrink-0",i),children:e?(0,t.jsx)(a.default,{className:"relative h-10 w-10 rounded-sm",src:e.url,width:100,height:100,alt:n({id:"image_not_available",defaultMessage:"Image not available"})}):(0,t.jsx)(l.default,{})})}])},22315,e=>{"use strict";var t=e.i(91398),r=e.i(81618),s=e.i(72043);e.s(["default",0,({className:e="",containerClassName:a="",Icon:l=null})=>(0,t.jsx)("span",{className:(0,s.default)("text-slate-400",a),children:l||(0,t.jsx)(r.PhotoIcon,{className:(0,s.default)(e)})})])},10576,e=>{"use strict";e.s(["default",0,e=>{if(window.atob&&Uint8Array){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=t+"=".repeat((4-t.length%4)%4),s=window.atob(r),a=s.length,l=new Uint8Array(a);for(let e=0;e<a;e+=1)l[e]=s.charCodeAt(e);return l.buffer}throw Error("The atob and Uint8Array methods are not available")}])},93380,e=>{"use strict";e.s(["default",0,e=>e?e?.username?e.username:e?.profile?.displayName?e?.profile?.displayName:e?.profile?.address?.firstName||e?.profile?.address?.lastName?`${e?.profile?.address?.firstName} ${e?.profile?.address?.lastName}`:e?.name?e.name:e.isGuest?e?.primaryEmail?.address?.split(".")?.[0]:null:null])},1880,e=>{"use strict";e.s(["default",0,(e={})=>{let{_id:t,texts:r}=e||{};return r||t?`${r?.slug?.split("/").join("")||""}_id_${t}`:null},"parseSlug",0,e=>{if(!e)return null;let[t]=e?.split("_id_")||[];return t},"parseUniqueId",0,e=>{if(!e)return null;let t=e?.split("_id_");return t?.pop()}])},15356,e=>{"use strict";e.s(["default",0,e=>e?`${e.substr(0,6)}...${e.substr(-4,4)}`:"0x0"])},77930,70081,e=>{"use strict";var t=e.i(91398),r=e.i(69322),s=e.i(8918),a=e.i(41158),l=e.i(65153),i=e.i(84818),n=e.i(1880),d=e.i(77043),o=e.i(93380);let u={INITIAL:"orange",PAUSED:"yellow",TERMINATED:"amber",ACTIVE:"emerald"},c=({enrollment:e,showUser:c})=>{let{formatMessage:m}=(0,r.useIntl)(),{formatDateTime:f}=(0,i.default)();return(0,t.jsxs)(s.default.Row,{children:[(0,t.jsx)(s.default.Cell,{children:(0,t.jsx)("div",{className:"text-sm",children:(0,t.jsx)(a.default,{href:`/enrollments?enrollmentId=${e._id}`,className:"font-medium text-slate-800 dark:text-slate-700",children:e?.enrollmentNumber||e._id?.substr(0,10)})})}),(0,t.jsx)(s.default.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:f(e.created,{dateStyle:"medium",timeStyle:"medium"})})}),(0,t.jsx)(s.default.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:e.isExpired?(0,t.jsx)(l.default,{text:m({id:"expired",defaultMessage:"Expired"}),color:"amber"}):f(e.expires,{dateStyle:"medium",timeStyle:"medium"})})}),c&&e.user&&(0,t.jsx)(s.default.Cell,{children:(0,t.jsxs)(a.default,{href:`/users?userId=${e.user._id}`,className:"flex items-center text-sm text-slate-800 dark:text-slate-700 hover:text-decoration",children:[(0,t.jsx)("span",{className:"inline-block h-9 w-9 rounded-full",children:(0,t.jsx)(d.default,{file:e?.user?.avatar,className:"mr-3"})}),(0,t.jsx)("span",{className:"ml-2",children:(0,o.default)(e.user)})]})}),(0,t.jsx)(s.default.Cell,{children:(0,t.jsxs)(a.default,{href:`/products?slug=${(0,n.default)(e.plan.product)}`,className:"flex items-center text-sm text-slate-800 dark:text-slate-700 hover:text-decoration",children:[(0,t.jsx)(d.default,{file:e?.plan?.product?.media?.file,className:"mr-3"}),(0,t.jsx)("span",{className:"ml-2",children:e?.plan?.product?.texts?.title})]})}),(0,t.jsx)(s.default.Cell,{children:(0,t.jsx)(l.default,{text:e?.status,color:u[e.status],square:!0})})]})};e.s(["default",0,({enrollments:e,showUser:a=null,sortable:l=!1})=>{let{formatMessage:i}=(0,r.useIntl)();return(0,t.jsxs)(s.default,{className:"min-w-full",children:[e?.map(e=>(0,t.jsxs)(s.default.Row,{header:!0,enablesort:l,children:[(0,t.jsx)(s.default.Cell,{sortKey:"enrollmentNumber",children:i({id:"enrollment_number",defaultMessage:"Enrollment number"})}),(0,t.jsx)(s.default.Cell,{sortKey:"created",children:i({id:"created",defaultMessage:"Created"})}),(0,t.jsx)(s.default.Cell,{children:i({id:"expires",defaultMessage:"Expires"})}),a&&(0,t.jsx)(s.default.Cell,{children:i({id:"user",defaultMessage:"User"})}),(0,t.jsx)(s.default.Cell,{children:i({id:"product",defaultMessage:"Product"})}),(0,t.jsx)(s.default.Cell,{sortKey:"status",children:i({id:"status",defaultMessage:"Status"})})]},e._id)),e?.map(e=>(0,t.jsx)(c,{showUser:!0,enrollment:e},`${e?._id}-body`))]})}],77930);var m=e.i(59080);let f=m.gql`
21
- fragment EnrollmentFragment on Enrollment {
22
- _id
23
- country {
24
- _id
25
- isoCode
26
- }
27
- currency {
28
- _id
29
- isoCode
30
- }
31
- enrollmentNumber
32
- updated
33
- status
34
- created
35
- expires
36
- isExpired
37
- periods {
38
- start
39
- end
40
- isTrial
41
- }
42
- payment {
43
- provider {
44
- _id
45
- }
46
- }
47
- delivery {
48
- provider {
49
- _id
50
- }
51
- }
52
- plan {
53
- product {
54
- _id
55
- media {
56
- _id
57
- file {
58
- _id
59
- url
60
- }
61
- }
62
- texts {
63
- _id
64
- title
65
- }
66
- }
67
- quantity
68
- }
69
- user {
70
- _id
71
- username
72
- name
73
- avatar {
74
- _id
75
- url
76
- }
77
- }
78
- }
79
- `;e.s(["default",0,f],70081)},21056,e=>{"use strict";var t=e.i(59080),r=e.i(76204);let s=t.gql`
80
- mutation SendEnrollmentEmail($email: String!) {
81
- sendEnrollmentEmail(email: $email) {
82
- success
83
- }
84
- }
85
- `;e.s(["default",0,()=>{let[e]=(0,r.useMutation)(s);return{sendEnrollmentEmail:async({email:t})=>e({variables:{email:t}})}}])},38247,e=>{"use strict";var t=e.i(91398),r=e.i(72043),s=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(["default",0,({validators:e=[],className:n,parseDate:d=i,...o})=>{let u=(0,s.default)({validators:[...e,a.validateDate],...o}),c=u.value?new Date(u.value).toISOString().split("T")[0]:"";return(0,t.jsx)(l.default,{...u,className:o.containerClassName,children:(0,t.jsx)("input",{type:"date",id:u.id,name:u.name,disabled:u.disabled,className:(0,r.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",n,{"border-rose-700 placeholder:text-rose-300":!!u.error}),onChange:e=>u.setValue(e.target.value),value:c,placeholder:u.placeholder,autoComplete:"off",...o})})}])},72094,e=>{"use strict";var t=e.i(91398),r=e.i(91788),s=e.i(61898);let a=(e,t="")=>Object.fromEntries(Object.entries(e).reduce((e=[],[s,l])=>"string"==typeof l||r.default.isValidElement(l)?[...e,[`${t}${s}`,l]]:[...Object.entries(a(Object.assign({},...l),`${t}${s}.`)),...e],[])),l=({submitError:e="",fieldErrors:s=[]})=>(0,t.jsx)("div",{className:"my-2 mb-5 text-rose-700",children:(0,t.jsxs)("ul",{className:"space-y-1",children:[e&&(0,t.jsx)("li",{className:"disabled",children:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})},"submitError"),Object.entries(a(s)).map(([e,s])=>(0,t.jsx)("li",{className:"disabled",children:(0,t.jsx)("button",{type:"button",className:"no-button text-rose-600 dark:text-rose-400","aria-label":"Error button",onClick:()=>{let t=document.getElementById(e);t&&t.focus()},children:r.default.isValidElement(s)?s:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:s}})})},e))]})});e.s(["default",0,({displayFieldErrors:e=!1})=>{let{submitError:r,formik:a}=(0,s.default)(),i=a?.errors;return(r||e)&&(0,t.jsx)(l,{submitError:r,fieldErrors:e&&i})}])},68095,e=>{"use strict";var t=e.i(91398),r=e.i(72043),s=e.i(91788),a=e.i(45229);e.s(["default",0,({autoComplete:e="on",...l})=>{let[i,n]=(0,s.useState)(!1),d=e=>{e.preventDefault(),n(!i)};return(0,t.jsxs)("div",{className:(0,r.default)("relative",l.className),children:[(0,t.jsx)(a.default,{autoComplete:e||"on",name:"password",...l,type:i?"text":"password"}),(0,t.jsx)("span",{role:"button",tabIndex:-1,"aria-label":"toggle password visibility",className:"absolute translate-y-[-137%] outline-hidden block right-3",onClick:d,onKeyUp:d,children:i?(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 stroke-slate-700",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]}):(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 stroke-slate-700",fill:"none",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})})})]})}])},44959,e=>{"use strict";var t=e.i(91398),r=e.i(69322),s=e.i(8918),a=e.i(41158),l=e.i(65153),i=e.i(93380),n=e.i(84818),d=e.i(83147),o=e.i(51782);let u=({order:e,showUser:u})=>{let{formatMessage:c}=(0,r.useIntl)(),{formatPrice:m}=(0,d.useFormatPrice)(),{formatDateTime:f}=(0,n.default)();return(0,t.jsxs)(s.default.Row,{className:"group",children:[(0,t.jsx)(s.default.Cell,{children:(0,t.jsx)(a.default,{href:`/orders?orderId=${e._id}`,className:"flex items-center gap-3 text-sm font-medium text-slate-800 dark:text-slate-300 group-hover:text-slate-900 dark:group-hover:text-slate-200",children:e?.orderNumber||(0,t.jsxs)(t.Fragment,{children:[e._id," ",(0,t.jsx)(l.default,{color:"yellow",text:c({id:"cart",defaultMessage:"Cart"})})]})})}),(0,t.jsx)(s.default.Cell,{children:(0,t.jsx)(a.default,{href:`/orders?orderId=${e._id}`,className:"flex items-center text-sm dark:text-slate-300",children:f(e.ordered,{dateStyle:"short",timeStyle:"short"})})}),(0,t.jsx)(s.default.Cell,{children:(0,t.jsx)(a.default,{href:`/orders?orderId=${e._id}`,className:"flex items-center text-sm dark:text-slate-300",children:m(e.total)})}),u&&e.user&&(0,t.jsx)(s.default.Cell,{children:(0,t.jsx)(a.default,{href:`/users?userId=${e.user._id}`,className:"flex items-center text-sm text-slate-800 dark:text-slate-300 hover:text-decoration",onClick:e=>e.stopPropagation(),children:(0,t.jsx)("span",{className:"font-medium",children:(0,i.default)(e.user)})})}),(0,t.jsx)(s.default.Cell,{children:(0,t.jsx)(a.default,{href:`/orders?orderId=${e._id}`,className:"block",children:(0,t.jsx)(o.OrderStatusBadge,{status:e.status})})})]})};e.s(["default",0,({orders:e,showUser:a,loading:l,sortable:i})=>{let{formatMessage:n}=(0,r.useIntl)();return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(s.default,{className:"min-w-full",children:[(e||[])?.map(e=>(0,t.jsxs)(s.default.Row,{header:!0,enablesort:i,children:[(0,t.jsx)(s.default.Cell,{sortKey:"orderNumber",children:n({id:"order_number",defaultMessage:"Order #"})}),(0,t.jsx)(s.default.Cell,{sortKey:"ordered",defaultSortDirection:"DESC",children:n({id:"order_date",defaultMessage:"Order date"})}),(0,t.jsx)(s.default.Cell,{children:n({id:"total",defaultMessage:"Total"})}),a&&(0,t.jsx)(s.default.Cell,{children:n({id:"user",defaultMessage:"User"})}),(0,t.jsx)(s.default.Cell,{sortKey:"status",children:n({id:"status",defaultMessage:"Status"})})]},e._id)),(e||[])?.map(e=>(0,t.jsx)(u,{order:e,showUser:!0},`${e?._id}-body`))]})})}],44959)},51782,e=>{"use strict";var t=e.i(91398),r=e.i(69322),s=e.i(65153),a=e.i(60193);let l={PENDING:"bg-yellow-100 text-yellow-800",CONFIRMED:"bg-blue-100 text-blue-800",OPEN:"bg-gray-100 text-gray-800",FULFILLED:"bg-green-100 text-green-800",REJECTED:"bg-red-100 text-red-800"};e.s(["OrderStatusBadge",0,({status:e,className:i=""})=>{let{formatMessage:n}=(0,r.useIntl)(),d={PENDING:n({id:"pending",defaultMessage:"PENDING"}),CONFIRMED:n({id:"confirmed",defaultMessage:"CONFIRMED"}),OPEN:n({id:"open",defaultMessage:"OPEN"}),FULFILLED:n({id:"fulfilled",defaultMessage:"FULFILLED"}),REJECTED:n({id:"rejected",defaultMessage:"REJECTED"})},o=d?.[e]??n({id:"cart",defaultMessage:"Cart"});return l?.[e],(0,t.jsx)(s.default,{text:o,color:a.ORDER_STATUSES[e],square:!0,className:`uppercase ${i}`})}])},35308,e=>{"use strict";var t=e.i(59080);let r=t.gql`
86
- fragment OrderFragment on Order {
87
- _id
88
- status
89
- created
90
- updated
91
- ordered
92
- orderNumber
93
- confirmed
94
- fulfilled
95
- contact {
96
- telNumber
97
- emailAddress
98
- }
99
- total {
100
- isTaxable
101
- isNetPrice
102
- amount
103
- currencyCode
104
- }
105
- user {
106
- _id
107
- username
108
- isGuest
109
- avatar {
110
- _id
111
- url
112
- }
113
- profile {
114
- displayName
115
- address {
116
- firstName
117
- lastName
118
- }
119
- }
120
- }
121
- }
122
- `;e.s(["default",0,r])},21649,e=>{"use strict";var t=e.i(59080);let r=t.gql`
123
- fragment TokenFragment on Token {
124
- _id
125
- walletAddress
126
- status
127
- quantity
128
- contractAddress
129
- chainId
130
- tokenSerialNumber
131
- invalidatedDate
132
- expiryDate
133
- ercMetadata
134
- accessKey
135
- isInvalidateable
136
- }
137
- `;e.s(["default",0,r])},71805,40526,e=>{"use strict";var t=e.i(91398),r=e.i(69322),s=e.i(8918),a=e.i(41158),l=e.i(65153),i=e.i(77043),n=e.i(93380),d=e.i(1880),o=e.i(84818),u=e.i(60193);let c=({quotation:e,showUser:c})=>{let{formatMessage:m}=(0,r.useIntl)(),{formatDateTime:f}=(0,o.default)();return(0,t.jsxs)(s.default.Row,{children:[(0,t.jsx)(s.default.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:(0,t.jsx)(a.default,{href:`/quotations?quotationId=${e?._id}`,className:"font-medium text-slate-800 dark:text-slate-700",children:e?.quotationNumber||e?._id})})}),(0,t.jsx)(s.default.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:f(e.created,{dateStyle:"short",timeStyle:"short"})})}),(0,t.jsx)(s.default.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:e.isExpired?(0,t.jsx)(l.default,{text:m({id:"expired",defaultMessage:"Expired"}),color:"amber"}):f(e?.expires,{dateStyle:"short",timeStyle:"short"})})}),c&&(0,t.jsx)(s.default.Cell,{children:(0,t.jsxs)(a.default,{href:`/users?userId=${e?.user._id}`,className:"flex items-center text-sm text-slate-800 dark:text-slate-700 hover:text-decoration",children:[(0,t.jsx)(i.default,{file:e?.user?.avatar,className:"mr-2"}),(0,t.jsx)("span",{className:"font-medium ml-2",children:(0,n.default)(e?.user)})]})}),(0,t.jsx)(s.default.Cell,{children:(0,t.jsx)("div",{children:(0,t.jsxs)(a.default,{href:`/products?slug=${(0,d.default)(e.product)}`,className:"flex items-center text-sm text-slate-800 dark:text-slate-700 hover:text-decoration",children:[(0,t.jsx)(i.default,{file:e.product?.media[0]?.file,className:"mr-3"}),(0,t.jsx)("span",{className:"font-medium ml-2",children:e?.product.texts.title})]})})}),(0,t.jsx)(s.default.Cell,{children:(0,t.jsx)(l.default,{text:e?.status,color:u.QUOTATION_STATUS[e?.status],square:!0})})]})};e.s(["default",0,({quotations:e,sortable:a=!1,showUser:l=!1})=>{let{formatMessage:i}=(0,r.useIntl)();return(0,t.jsxs)(s.default,{className:"min-w-full",children:[e?.map(e=>(0,t.jsxs)(s.default.Row,{header:!0,enablesort:a,children:[(0,t.jsx)(s.default.Cell,{sortKey:"quotationNumber",children:i({id:"quotation_number",defaultMessage:"Quotation number"})}),(0,t.jsx)(s.default.Cell,{sortKey:"created",children:i({id:"created",defaultMessage:"Created"})}),(0,t.jsx)(s.default.Cell,{sortKey:"expires",children:i({id:"expires",defaultMessage:"Expires"})}),l&&(0,t.jsx)(s.default.Cell,{children:i({id:"user",defaultMessage:"User"})}),(0,t.jsx)(s.default.Cell,{children:i({id:"product",defaultMessage:"Product"})}),(0,t.jsx)(s.default.Cell,{sortKey:"status",children:i({id:"status",defaultMessage:"Status"})})]},e._id)),e?.map(e=>(0,t.jsx)(c,{showUser:l,quotation:e},`${e?._id}-body`))]})}],71805);var m=e.i(59080);let f=m.gql`
138
- fragment QuotationFragment on Quotation {
139
- _id
140
- user {
141
- _id
142
- username
143
- avatar {
144
- _id
145
- url
146
- }
147
- name
148
- primaryEmail {
149
- verified
150
- address
151
- }
152
- }
153
- product {
154
- _id
155
- texts {
156
- _id
157
- slug
158
- subtitle
159
- title
160
- description
161
- }
162
- media {
163
- _id
164
- file {
165
- _id
166
- type
167
- url
168
- }
169
- }
170
- }
171
- currency {
172
- _id
173
- contractAddress
174
- decimals
175
- isoCode
176
- }
177
- status
178
- created
179
- expires
180
- updated
181
- isExpired
182
- quotationNumber
183
- fulfilled
184
- rejected
185
- }
186
- `;e.s(["default",0,f],40526)},22422,94144,e=>{"use strict";function t(e,t){return"object"==typeof e&&null!==e&&e[Symbol.for("apollo.error")]===t}function r(e){Object.defineProperty(e,Symbol.for("apollo.error"),{value:e.name,enumerable:!1,writable:!1,configurable:!1})}function s(e){return e.filter(e=>e).map(e=>e.message||"Error message not found.").join("\n")}e.s(["brand",0,r,"isBranded",0,t],94144);class a extends Error{static is(e){return t(e,"CombinedGraphQLErrors")}static formatMessage=s;errors;data;extensions;constructor(e,t=e.errors||[]){super(a.formatMessage(t,{result:e,defaultFormatMessage:s})),this.errors=t,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",r(this),Object.setPrototypeOf(this,a.prototype)}}e.s(["CombinedGraphQLErrors",0,a],22422)},27572,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M15.988 3.012A2.25 2.25 0 0 1 18 5.25v6.5A2.25 2.25 0 0 1 15.75 14H13.5V7A2.5 2.5 0 0 0 11 4.5H8.128a2.252 2.252 0 0 1 1.884-1.488A2.25 2.25 0 0 1 12.25 1h1.5a2.25 2.25 0 0 1 2.238 2.012ZM11.5 3.25a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 .75.75v.25h-3v-.25Z",clipRule:"evenodd"}),t.createElement("path",{fillRule:"evenodd",d:"M2 7a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7Zm2 3.25a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Zm0 3.5a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"}))});e.s(["ClipboardDocumentListIcon",0,r],27572)},64710,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M2.5 4A1.5 1.5 0 0 0 1 5.5V6h18v-.5A1.5 1.5 0 0 0 17.5 4h-15ZM19 8.5H1v6A1.5 1.5 0 0 0 2.5 16h15a1.5 1.5 0 0 0 1.5-1.5v-6ZM3 13.25a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1-.75-.75Zm4.75-.75a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5h-3.5Z",clipRule:"evenodd"}))});e.s(["CreditCardIcon",0,r],64710)},90645,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))});e.s(["LinkIcon",0,r],90645)},81618,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))});e.s(["PhotoIcon",0,r],81618)},67912,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))});e.s(["UserCircleIcon",0,r],67912)},49194,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return y}});let s=e.r(41705),a=e.r(52456),l=e.r(91398),i=a._(e.r(91788)),n=s._(e.r(30943)),d=s._(e.r(80963)),o=e.r(66785),u=e.r(15125),c=e.r(13521),m=e.r(25479),f=s._(e.r(3866)),h=e.r(63230),x={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function p(e,t,r,s,a,l,i){let n=e?.src;e&&e["data-loaded-src"]!==n&&(e["data-loaded-src"]=n,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&a(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let s=!1,a=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>s,isPropagationStopped:()=>a,persist:()=>{},preventDefault:()=>{s=!0,t.preventDefault()},stopPropagation:()=>{a=!0,t.stopPropagation()}})}s?.current&&s.current(e)}}))}function g(e){return i.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let b="u"<typeof window?i.useEffect:i.useLayoutEffect,j=(0,i.forwardRef)(({src:e,srcSet:t,sizes:r,height:s,width:a,decoding:n,className:d,style:o,fetchPriority:u,placeholder:c,loading:m,unoptimized:f,fill:x,onLoadRef:j,onLoadingCompleteRef:v,setBlurComplete:y,setShowAltText:w,sizesInput:E,onLoad:C,onError:N,..._},k)=>{let S=(0,i.useRef)(!1),I=(0,i.useRef)(null);b(()=>{let{current:e}=S,{current:t}=I;e||null===t||(N&&(t.src=t.src),t.complete&&p(t,c,j,v,y,f,E),S.current=!0)},[e,c,j,v,N,f,E]);let M=(0,h.useMergedRef)(k,I);return(0,l.jsx)("img",{..._,...g(u),loading:m,width:a,height:s,decoding:n,"data-nimg":x?"fill":"1",className:d,style:o,sizes:r,srcSet:t,src:e,ref:M,onLoad:e=>{p(e.currentTarget,c,j,v,y,f,E)},onError:e=>{w(!0),"empty"!==c&&y(!0),N&&N(e)}})});function v({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...g(t.fetchPriority)};return e&&n.default.preload?(n.default.preload(t.src,r),null):(0,l.jsx)(d.default,{children:(0,l.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let y=(0,i.forwardRef)((e,t)=>{let r=(0,i.useContext)(m.RouterContext),s=(0,i.useContext)(c.ImageConfigContext),a=(0,i.useMemo)(()=>{let e=x||s||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t),a=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:a,localPatterns:"u"<typeof window?s?.localPatterns:e.localPatterns}},[s]),{onLoad:n,onLoadingComplete:d}=e,h=(0,i.useRef)(n);(0,i.useEffect)(()=>{h.current=n},[n]);let p=(0,i.useRef)(d);(0,i.useEffect)(()=>{p.current=d},[d]);let[g,b]=(0,i.useState)(!1),[y,w]=(0,i.useState)(!1),{props:E,meta:C}=(0,o.getImgProps)(e,{defaultLoader:f.default,imgConf:a,blurComplete:g,showAltText:y});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(j,{...E,unoptimized:C.unoptimized,placeholder:C.placeholder,fill:C.fill,onLoadRef:h,onLoadingCompleteRef:p,setBlurComplete:b,setShowAltText:w,sizesInput:e.sizes,ref:t}),C.preload?(0,l.jsx)(v,{isAppRouter:!r,imgAttributes:E}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88961,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0});var s={default:function(){return u},getImageProps:function(){return o}};for(var a in s)Object.defineProperty(r,a,{enumerable:!0,get:s[a]});let l=e.r(41705),i=e.r(66785),n=e.r(49194),d=l._(e.r(3866));function o(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:d.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let u=n.Image},26019,(e,t,r)=>{t.exports=e.r(88961)},15633,(e,t,r)=>{"use strict";function s(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,t.qualities[0]):r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findClosestQuality",{enumerable:!0,get:function(){return s}})},3866,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}});let s=e.r(15633),a=e.r(20262);function l({config:e,src:t,width:r,quality:i}){let n=(0,a.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//"))if(t.includes("/_next/static/immutable")&&!(0,a.getAssetToken)())n=void 0;else{let e=t.indexOf("?");if(-1!==e){let r=new URLSearchParams(t.slice(e+1)),s=r.get("dpl");if(s){n=s,r.delete("dpl");let a=r.toString();t=t.slice(0,e)+(a?"?"+a:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
187
- Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let d=(0,s.findClosestQuality)(i,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${d}${t.startsWith("/")&&n?`&dpl=${n}`:""}`}l.__next_img_default=!0;let i=l},66785,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return o}});let s=e.r(20262),a=e.r(55034),l=e.r(15125),i=["-moz-initial","fill","none","scale-down",void 0];function n(e){return void 0!==e.default}function d(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function o({src:e,sizes:t,unoptimized:r=!1,priority:u=!1,preload:c=!1,loading:m,className:f,quality:h,width:x,height:p,fill:g=!1,style:b,overrideSrc:j,onLoad:v,onLoadingComplete:y,placeholder:w="empty",blurDataURL:E,fetchPriority:C,decoding:N="async",layout:_,objectFit:k,objectPosition:S,lazyBoundary:I,lazyRoot:M,...O},R){var P;let A,$,D,{imgConf:L,showAltText:T,blurComplete:z,defaultLoader:q}=R,F=L||l.imageConfigDefault;if("allSizes"in F)A=F;else{let e=[...F.deviceSizes,...F.imageSizes].sort((e,t)=>e-t),t=F.deviceSizes.sort((e,t)=>e-t),r=F.qualities?.sort((e,t)=>e-t);A={...F,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===q)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let W=O.loader||q;delete O.loader,delete O.srcSet;let U="__next_img_default"in W;if(U){if("custom"===A.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
188
- Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=W;W=t=>{let{config:r,...s}=t;return e(s)}}if(_){"fill"===_&&(g=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[_];e&&(b={...b,...e});let r={responsive:"100vw",fill:"100vw"}[_];r&&!t&&(t=r)}let B="",K=d(x),G=d(p);if((P=e)&&"object"==typeof P&&(n(P)||void 0!==P.src)){let t=n(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if($=t.blurWidth,D=t.blurHeight,E=E||t.blurDataURL,B=t.src,!g)if(K||G){if(K&&!G){let e=K/t.width;G=Math.round(t.height*e)}else if(!K&&G){let e=G/t.height;K=Math.round(t.width*e)}}else K=t.width,G=t.height}let Z=!u&&!c&&("lazy"===m||void 0===m);(!(e="string"==typeof e?e:B)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,Z=!1),A.unoptimized&&(r=!0),U&&!A.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let V=d(h),H=Object.assign(g?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:k,objectPosition:S}:{},T?{}:{color:"transparent"},b),Q=z||"empty"===w?null:"blur"===w?`url("data:image/svg+xml;charset=utf-8,${(0,a.getImageBlurSvg)({widthInt:K,heightInt:G,blurWidth:$,blurHeight:D,blurDataURL:E||"",objectFit:H.objectFit})}")`:`url("${w}")`,X=i.includes(H.objectFit)?"fill"===H.objectFit?"100% 100%":"cover":H.objectFit,J=Q?{backgroundSize:X,backgroundPosition:H.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Q}:{},Y=function({config:e,src:t,unoptimized:r,width:a,quality:l,sizes:i,loader:n}){if(r){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,s.getDeploymentId)();if(t.includes("/_next/static/immutable")&&!(0,s.getAssetToken)())e=void 0;else if(e){let r=t.indexOf("?");if(-1!==r){let s=new URLSearchParams(t.slice(r+1));s.get("dpl")||(s.append("dpl",e),t=t.slice(0,r)+"?"+s.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:d,kind:o}=function({deviceSizes:e,allSizes:t},r,s){if(s){let r=/(^|\s)(1?\d?\d)vw/g,a=[];for(let e;e=r.exec(s);)a.push(parseInt(e[2]));if(a.length){let r=.01*Math.min(...a);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,a,i),u=d.length-1;return{sizes:i||"w"!==o?i:"100vw",srcSet:d.map((r,s)=>`${n({config:e,src:t,quality:l,width:r})} ${"w"===o?r:s+1}${o}`).join(", "),src:n({config:e,src:t,quality:l,width:d[u]})}}({config:A,src:e,unoptimized:r,width:K,quality:V,sizes:t,loader:W}),ee=Z?"lazy":m;return{props:{...O,loading:ee,fetchPriority:C,width:K,height:G,decoding:N,className:f,style:{...H,...J},sizes:Y.sizes,srcSet:Y.srcSet,src:j||Y.src},meta:{unoptimized:r,preload:c||u,placeholder:w,fill:g}}}},55034,(e,t,r)=>{"use strict";function s({widthInt:e,heightInt:t,blurWidth:r,blurHeight:a,blurDataURL:l,objectFit:i}){let n=r?40*r:e,d=a?40*a:t,o=n&&d?`viewBox='0 0 ${n} ${d}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${o}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${o?"none":"contain"===i?"xMidYMid":"cover"===i?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${l}'/%3E%3C/svg%3E`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return s}})},13521,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return l}});let s=e.r(41705)._(e.r(91788)),a=e.r(15125),l=s.default.createContext(a.imageConfigDefault)},15125,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={VALID_LOADERS:function(){return l},imageConfigDefault:function(){return i}};for(var a in s)Object.defineProperty(r,a,{enumerable:!0,get:s[a]});let l=["default","imgix","cloudinary","akamai","custom"],i={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}}]);