@unchainedshop/admin-ui 5.0.0-alpha.5 → 5.0.0-alpha.7

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 (754) hide show
  1. package/README.md +27 -19
  2. package/dist/chunk-2RTX42IE.js +2083 -0
  3. package/dist/chunk-6UGLNLJG.js +44 -0
  4. package/dist/{chunk-UXG7EYHC.js → chunk-7PPOGX7R.js} +2 -35
  5. package/dist/{chunk-45H2WVIC.js → chunk-COV7BREX.js} +0 -1
  6. package/dist/{chunk-RHUFQVKL.js → chunk-F2TCVEQX.js} +1 -1
  7. package/dist/{chunk-UFYR5WZT.js → chunk-GY2DRQGW.js} +2 -1
  8. package/dist/{chunk-BGCKJQGS.js → chunk-JAVEZY3Q.js} +22 -15
  9. package/dist/{chunk-6TXD4TA7.js → chunk-KCN7DDPH.js} +2 -82
  10. package/dist/{chunk-YSKZE2KN.js → chunk-MSPWYMDY.js} +37 -24
  11. package/dist/chunk-RORNAN2J.js +12 -0
  12. package/dist/chunk-YZGQJJCD.js +37 -0
  13. package/dist/components/ui/Tag/TagInput.d.ts +10 -5
  14. package/dist/components/ui/Tag/TagInput.d.ts.map +1 -1
  15. package/dist/components/ui/form/TagInputField.d.ts +2 -1
  16. package/dist/components/ui/form/TagInputField.d.ts.map +1 -1
  17. package/dist/form.js +743 -2510
  18. package/dist/gql/operation-types.d.ts +13043 -0
  19. package/dist/gql/operation-types.d.ts.map +1 -0
  20. package/dist/gql/schema-types.d.ts +3820 -0
  21. package/dist/gql/schema-types.d.ts.map +1 -0
  22. package/dist/gql/types.d.ts +2 -17208
  23. package/dist/gql/types.d.ts.map +1 -1
  24. package/dist/hooks.js +3 -2
  25. package/dist/modal.js +9 -5
  26. package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -1
  27. package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -1
  28. package/dist/modules/accounts.js +219 -63
  29. package/dist/modules/assortment.js +9 -4
  30. package/dist/modules/common/hooks/useApp.d.ts +1 -1
  31. package/dist/modules/common/hooks/useBulkResultHandler.d.ts +8 -0
  32. package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +1 -0
  33. package/dist/modules/common/hooks/useBulkSelection.d.ts +12 -0
  34. package/dist/modules/common/hooks/useBulkSelection.d.ts.map +1 -0
  35. package/dist/modules/common/hooks/useScrollRestoration.d.ts +8 -0
  36. package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +1 -0
  37. package/dist/modules/common/hooks/useShopInfo.d.ts +13 -13
  38. package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -1
  39. package/dist/modules/common/utils/useFormatDateTime.d.ts +10 -1
  40. package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -1
  41. package/dist/modules/country/hooks/useCountries.d.ts +4 -4
  42. package/dist/modules/enrollment.js +23 -2
  43. package/dist/modules/event.js +1 -1
  44. package/dist/modules/filter.js +1 -1
  45. package/dist/modules/language/hooks/useLanguages.d.ts +4 -4
  46. package/dist/modules/modal/components/DangerMessage.d.ts +2 -1
  47. package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -1
  48. package/dist/modules/order/hooks/useOrders.d.ts +20 -20
  49. package/dist/modules/order/hooks/useOrders.d.ts.map +1 -1
  50. package/dist/modules/order.js +9 -3
  51. package/dist/modules/product-review.js +24 -5
  52. package/dist/modules/product.js +12 -16
  53. package/dist/modules/quotation.js +22 -2
  54. package/dist/modules/token.js +1 -1
  55. package/dist/modules/work/hooks/useWork.d.ts +14 -14
  56. package/dist/modules/work.js +17 -5
  57. package/dist/plugins.js +6 -1
  58. package/dist/providers.js +3 -3
  59. package/dist/sdk/plugins.d.ts +11 -0
  60. package/dist/sdk/plugins.d.ts.map +1 -1
  61. package/dist/sdk/shims/admin-ui-plugins.d.ts +3 -0
  62. package/dist/sdk/shims/admin-ui-plugins.d.ts.map +1 -0
  63. package/dist/sdk/shims/apollo-client-react.d.ts +3 -0
  64. package/dist/sdk/shims/apollo-client-react.d.ts.map +1 -0
  65. package/dist/sdk/shims/apollo-client.d.ts +3 -0
  66. package/dist/sdk/shims/apollo-client.d.ts.map +1 -0
  67. package/dist/sdk/shims/host.d.ts +17 -0
  68. package/dist/sdk/shims/host.d.ts.map +1 -0
  69. package/dist/sdk/shims/next-head.d.ts +3 -0
  70. package/dist/sdk/shims/next-head.d.ts.map +1 -0
  71. package/dist/sdk/shims/next-image.d.ts +3 -0
  72. package/dist/sdk/shims/next-image.d.ts.map +1 -0
  73. package/dist/sdk/shims/next-link.d.ts +3 -0
  74. package/dist/sdk/shims/next-link.d.ts.map +1 -0
  75. package/dist/sdk/shims/next-router.d.ts +3 -0
  76. package/dist/sdk/shims/next-router.d.ts.map +1 -0
  77. package/dist/sdk/shims/react-dom-client.d.ts +3 -0
  78. package/dist/sdk/shims/react-dom-client.d.ts.map +1 -0
  79. package/dist/sdk/shims/react-dom.d.ts +3 -0
  80. package/dist/sdk/shims/react-dom.d.ts.map +1 -0
  81. package/dist/sdk/shims/react-hook-form.d.ts +3 -0
  82. package/dist/sdk/shims/react-hook-form.d.ts.map +1 -0
  83. package/dist/sdk/shims/react-intl.d.ts +3 -0
  84. package/dist/sdk/shims/react-intl.d.ts.map +1 -0
  85. package/dist/sdk/shims/react-jsx-runtime.d.ts +3 -0
  86. package/dist/sdk/shims/react-jsx-runtime.d.ts.map +1 -0
  87. package/dist/sdk/shims/react-toastify.d.ts +3 -0
  88. package/dist/sdk/shims/react-toastify.d.ts.map +1 -0
  89. package/dist/sdk/shims/react.d.ts +3 -0
  90. package/dist/sdk/shims/react.d.ts.map +1 -0
  91. package/dist/shims/admin-ui-plugins.js +9 -0
  92. package/dist/shims/apollo-client-react.js +25 -0
  93. package/dist/shims/apollo-client.js +55 -0
  94. package/dist/shims/next-head.js +9 -0
  95. package/dist/shims/next-image.js +9 -0
  96. package/dist/shims/next-link.js +9 -0
  97. package/dist/shims/next-router.js +13 -0
  98. package/dist/shims/react-dom-client.js +11 -0
  99. package/dist/shims/react-dom.js +22 -0
  100. package/dist/shims/react-hook-form.js +25 -0
  101. package/dist/shims/react-intl.js +37 -0
  102. package/dist/shims/react-jsx-runtime.js +11 -0
  103. package/dist/shims/react-toastify.js +16 -0
  104. package/dist/shims/react.js +52 -0
  105. package/dist/ui.js +1291 -3460
  106. package/out/403/index.html +2 -2
  107. package/out/404/index.html +2 -2
  108. package/out/404.html +2 -2
  109. package/out/423/index.html +2 -2
  110. package/out/500/index.html +2 -2
  111. package/out/_next/static/chunks/0-2b37ubdpy0o.js +7 -0
  112. package/out/_next/static/chunks/0-cyinqk2ne8t.js +16 -0
  113. package/out/_next/static/chunks/00tf1qsuwqywe.js +17 -0
  114. package/out/_next/static/chunks/015ge5k3o3f-r.js +226 -0
  115. package/out/_next/static/chunks/0208v89kdo_s9.js +13 -0
  116. package/out/_next/static/chunks/05-ui58k9illr.js +234 -0
  117. package/out/_next/static/chunks/05au-xyt__0f2.js +3 -0
  118. package/out/_next/static/chunks/{087a2d-0e1pvn.js → 05nn5xr3ufcsh.js} +1 -1
  119. package/out/_next/static/chunks/{0xoerh23zk-pj.js → 05o_q7jg8wucs.js} +2 -2
  120. package/out/_next/static/chunks/0752goe9_9g2s.js +110 -0
  121. package/out/_next/static/chunks/07o7bmqljy89r.js +1 -0
  122. package/out/_next/static/chunks/083ylavob4a8d.js +3 -0
  123. package/out/_next/static/chunks/09qx8ltnvw8f2.js +12 -0
  124. package/out/_next/static/chunks/0_puys1lwhv9m.js +16 -0
  125. package/out/_next/static/chunks/0_xtedn8e1vu_.js +13 -0
  126. package/out/_next/static/chunks/0a_bg-ub3r2eo.js +60 -0
  127. package/out/_next/static/chunks/0b33bcf7x5rgy.js +20 -0
  128. package/out/_next/static/chunks/0ckhtcvz1kyxg.js +1 -0
  129. package/out/_next/static/chunks/0dewly3vo-mcq.js +20 -0
  130. package/out/_next/static/chunks/0dnh0kr83_tj0.js +1 -0
  131. package/out/_next/static/chunks/0dxu94yin5gdn.js +35 -0
  132. package/out/_next/static/chunks/0e2c-jlh2q_eq.js +74 -0
  133. package/out/_next/static/chunks/0fv1w56e25gt5.js +14 -0
  134. package/out/_next/static/chunks/{1jqnrnw0p9tw5.js → 0h0r_q6xa9qr_.js} +1 -1
  135. package/out/_next/static/chunks/0i9ymn9xxs0nx.js +18 -0
  136. package/out/_next/static/chunks/0ij8fs6-w0pr_.js +22 -0
  137. package/out/_next/static/chunks/0iqjlf_9c6eo_.js +59 -0
  138. package/out/_next/static/chunks/0j838r-8ied1f.js +1 -0
  139. package/out/_next/static/chunks/0jeddko6bac8h.js +1 -0
  140. package/out/_next/static/chunks/0kwf2vel2xmdi.js +13 -0
  141. package/out/_next/static/chunks/0m6jydfuy_4o3.js +1 -0
  142. package/out/_next/static/chunks/0mez27zlo26ni.js +103 -0
  143. package/out/_next/static/chunks/0n9to89fz811b.js +3 -0
  144. package/out/_next/static/chunks/0nga8f0q2d0bl.js +14 -0
  145. package/out/_next/static/chunks/0nkkcq0-s-9fo.js +1 -0
  146. package/out/_next/static/chunks/0nlirgt-x5pqr.js +337 -0
  147. package/out/_next/static/chunks/0o7k5vanq57ch.js +807 -0
  148. package/out/_next/static/chunks/0om7fxf5bczpu.js +13 -0
  149. package/out/_next/static/chunks/0ou6gsnpn0wml.js +1 -0
  150. package/out/_next/static/chunks/0p09_ncs0g7m2.js +14 -0
  151. package/out/_next/static/chunks/0pji5t2zheb2j.js +234 -0
  152. package/out/_next/static/chunks/0q6-fplpae_ie.js +21 -0
  153. package/out/_next/static/chunks/0qh0vqpui2alf.js +9 -0
  154. package/out/_next/static/chunks/0qq_lp3pk8bjf.js +27 -0
  155. package/out/_next/static/chunks/0rgdxqr_0y-g-.js +136 -0
  156. package/out/_next/static/chunks/0rqjr_lmrk4pz.js +5 -0
  157. package/out/_next/static/chunks/0sc71p-6lnm1e.js +13 -0
  158. package/out/_next/static/chunks/0tej_--_qru5h.js +126 -0
  159. package/out/_next/static/chunks/0tnyefaaxof6-.js +247 -0
  160. package/out/_next/static/chunks/{1dsjo02ozub3p.js → 0ubzi2s1spm4e.js} +4 -4
  161. package/out/_next/static/chunks/0uecw_5mn0zvr.js +110 -0
  162. package/out/_next/static/chunks/0uw9cbq0ivaz0.js +1 -0
  163. package/out/_next/static/chunks/0vbqa5pd_ajm5.js +1 -0
  164. package/out/_next/static/chunks/0w7ic_22nz92w.js +58 -0
  165. package/out/_next/static/chunks/0y4eg57kgif01.js +1 -0
  166. package/out/_next/static/chunks/0ywlba3uh1t0x.js +16 -0
  167. package/out/_next/static/chunks/0zoum0jzrtu0s.js +145 -0
  168. package/out/_next/static/chunks/1184evhxs01_c.js +11 -0
  169. package/out/_next/static/chunks/11oq6l46lynfn.js +22 -0
  170. package/out/_next/static/chunks/11zynllx8mmh5.js +15 -0
  171. package/out/_next/static/chunks/13__7-sf28ub5.js +17 -0
  172. package/out/_next/static/chunks/13u_a5l2xngm4.js +1 -0
  173. package/out/_next/static/chunks/13wfvr2b0-qlj.js +30 -0
  174. package/out/_next/static/chunks/14c_mq04p7pu0.js +171 -0
  175. package/out/_next/static/chunks/151puw-sc__by.js +103 -0
  176. package/out/_next/static/chunks/15vz50rks0o2-.js +238 -0
  177. package/out/_next/static/chunks/17b4rvj5k8ye2.js +807 -0
  178. package/out/_next/static/chunks/188l-km9dyejj.js +34 -0
  179. package/out/_next/static/chunks/{0hup5ovc9v_-h.js → 18juy_eauk94g.js} +2 -2
  180. package/out/_next/static/chunks/{2t70ji9pnllxh.js → 19eflki8bmivb.js} +4 -4
  181. package/out/_next/static/chunks/19eu5d-wm2hfr.js +23 -0
  182. package/out/_next/static/chunks/19ou9pxeiwehs.js +15 -0
  183. package/out/_next/static/chunks/19pi48hqksvo9.js +9 -0
  184. package/out/_next/static/chunks/1_5ba1obzc231.js +1 -0
  185. package/out/_next/static/chunks/1_lrjs51fhhko.js +807 -0
  186. package/out/_next/static/chunks/{0wooaklx8_14q.js → 1ae-9ft5cgojf.js} +1 -1
  187. package/out/_next/static/chunks/1am9n6exll687.js +807 -0
  188. package/out/_next/static/chunks/1cfjbvjo0o9fx.js +104 -0
  189. package/out/_next/static/chunks/1cqhbfj3zp710.js +1 -0
  190. package/out/_next/static/chunks/1cy-2yb5j5_9b.js +157 -0
  191. package/out/_next/static/chunks/1dqgs827_hiod.js +16 -0
  192. package/out/_next/static/chunks/{3827hqe9_anr7.js → 1dt9_bzfioi8a.js} +3 -3
  193. package/out/_next/static/chunks/1fg6jbuxeuj0w.js +14 -0
  194. package/out/_next/static/chunks/1fvr9k_o63j_m.js +16 -0
  195. package/out/_next/static/chunks/1gt65pz91hyuz.js +1 -0
  196. package/out/_next/static/chunks/1h_o__x8jw8gt.js +15 -0
  197. package/out/_next/static/chunks/1imv5a-ymrj2t.js +15 -0
  198. package/out/_next/static/chunks/1k4ep4igedo8p.js +1 -0
  199. package/out/_next/static/chunks/1kn74nabrpy14.js +3 -0
  200. package/out/_next/static/chunks/{2a_46b7_7ml_y.js → 1ndk3s-aeqfej.js} +1 -1
  201. package/out/_next/static/chunks/1o4hor3cwzcxc.js +15 -0
  202. package/out/_next/static/chunks/1og09fg689_nc.js +180 -0
  203. package/out/_next/static/chunks/1q_sewe1wbxsk.js +54 -0
  204. package/out/_next/static/chunks/1qwid0d89bzpw.js +17 -0
  205. package/out/_next/static/chunks/1r7dh_p70r7o8.js +13 -0
  206. package/out/_next/static/chunks/1r_e-dk-1oicl.js +2 -0
  207. package/out/_next/static/chunks/1rtv3c_klo0jk.js +1 -0
  208. package/out/_next/static/chunks/1rw6681ieb3-5.js +8 -0
  209. package/out/_next/static/chunks/1srfjl1rurrm9.js +3 -0
  210. package/out/_next/static/chunks/1t8mb2td_pm1h.js +43 -0
  211. package/out/_next/static/chunks/1v-2aqdslc2g1.js +1 -0
  212. package/out/_next/static/chunks/1w5uao_cylgd1.js +234 -0
  213. package/out/_next/static/chunks/1x-t9f0f5vr10.js +329 -0
  214. package/out/_next/static/chunks/1xbofs3ibkjvj.js +1 -0
  215. package/out/_next/static/chunks/1ylgjha1c0ua_.js +124 -0
  216. package/out/_next/static/chunks/1yp98n-n4gxwy.js +15 -0
  217. package/out/_next/static/chunks/1yy_-xc9xthfo.js +3 -0
  218. package/out/_next/static/chunks/1z1esw-t8kopy.js +1 -0
  219. package/out/_next/static/chunks/2-7e3ttj92hfr.js +17 -0
  220. package/out/_next/static/chunks/200_u2ywg-be1.js +43 -0
  221. package/out/_next/static/chunks/224ovcn90ebcs.js +25 -0
  222. package/out/_next/static/chunks/24-pobk4qjjvp.js +3 -0
  223. package/out/_next/static/chunks/{09pees0w94cvm.js → 252jebodi67kg.js} +1 -1
  224. package/out/_next/static/chunks/2540mqfxc7ehr.js +15 -0
  225. package/out/_next/static/chunks/{1rgwj4dr0k4_b.js → 270ua9t85a7ev.js} +1 -1
  226. package/out/_next/static/chunks/27jaailh2k450.js +879 -0
  227. package/out/_next/static/chunks/2_l14rwu6kgzl.js +11 -0
  228. package/out/_next/static/chunks/2_vu2hve2j-6g.js +5 -0
  229. package/out/_next/static/chunks/2cmaw01_r48ot.js +21 -0
  230. package/out/_next/static/chunks/2d1zehr8zc3vb.js +9 -0
  231. package/out/_next/static/chunks/2dvrbmh97duba.js +1 -0
  232. package/out/_next/static/chunks/{34dhtdp_8idgm.js → 2dyj8q92_k5el.js} +112 -62
  233. package/out/_next/static/chunks/2e0dz59httb-e.js +43 -0
  234. package/out/_next/static/chunks/2e47h0g7w7si3.js +7 -0
  235. package/out/_next/static/chunks/{3a0_vzfa54k35.js → 2f4-hcyxiek_q.js} +2 -2
  236. package/out/_next/static/chunks/2fjmw94mat8m0.js +807 -0
  237. package/out/_next/static/chunks/{358r9pdxbk-fv.js → 2fo2ki1egxbah.js} +4 -4
  238. package/out/_next/static/chunks/2httcwd92at4i.js +9 -0
  239. package/out/_next/static/chunks/2ib6fee-nqe-z.js +23 -0
  240. package/out/_next/static/chunks/2kzyda4a6mqut.js +1 -0
  241. package/out/_next/static/chunks/2l4pfo_tsvn5w.js +11 -0
  242. package/out/_next/static/chunks/2l629mu99aqil.js +9 -0
  243. package/out/_next/static/chunks/2le8e8u2nvp0j.js +16 -0
  244. package/out/_next/static/chunks/{1vnvinjvn78t3.js → 2ljoq6sr-g2da.js} +1 -1
  245. package/out/_next/static/chunks/2lx_iig9xewfj.js +52 -0
  246. package/out/_next/static/chunks/2nm_wdmfjcbyc.js +25 -0
  247. package/out/_next/static/chunks/2o9hdz0gk1-s7.js +165 -0
  248. package/out/_next/static/chunks/2ork76jhxvxke.js +138 -0
  249. package/out/_next/static/chunks/2ou2_nhvunq72.js +13 -0
  250. package/out/_next/static/chunks/2pf0d3jgcae7b.js +99 -0
  251. package/out/_next/static/chunks/2q-mpau-4gsvd.js +1 -0
  252. package/out/_next/static/chunks/2qzxq2qs80c_8.js +11 -0
  253. package/out/_next/static/chunks/2rddaar-ns45d.js +116 -0
  254. package/out/_next/static/chunks/2rve5gtfjiz-p.js +100 -0
  255. package/out/_next/static/chunks/2rywg4dn0aeez.js +1 -0
  256. package/out/_next/static/chunks/2s6u8274_jzk2.js +105 -0
  257. package/out/_next/static/chunks/2t-_fecnp5yzr.js +15 -0
  258. package/out/_next/static/chunks/2tm822rgn8g7-.js +19 -0
  259. package/out/_next/static/chunks/2u6jwsqz0uhes.js +24 -0
  260. package/out/_next/static/chunks/2u8ns-x384r3i.js +22 -0
  261. package/out/_next/static/chunks/{1cn3pe6lxja9e.js → 2v4k4vpb2id7m.js} +5 -5
  262. package/out/_next/static/chunks/2v57_n8he320z.js +83 -0
  263. package/out/_next/static/chunks/2vkqez8xx-yp9.js +807 -0
  264. package/out/_next/static/chunks/2ztcyhxd9w5_m.js +1 -0
  265. package/out/_next/static/chunks/304cl99rh8rs_.js +2 -0
  266. package/out/_next/static/chunks/30_ns6urg1dkn.js +41 -0
  267. package/out/_next/static/chunks/313i1x81q2xj1.js +1 -0
  268. package/out/_next/static/chunks/325a7n__tfxy_.js +61 -0
  269. package/out/_next/static/chunks/326rk3t0gtxp_.js +14 -0
  270. package/out/_next/static/chunks/32te9ivrk54l0.js +15 -0
  271. package/out/_next/static/chunks/339y1tm7s80tn.js +22 -0
  272. package/out/_next/static/chunks/33emlry70k-lv.js +2 -0
  273. package/out/_next/static/chunks/{2w1twpn4nui6h.js → 346itdsbw-5tn.js} +2 -2
  274. package/out/_next/static/chunks/351jscvbk_wb9.js +13 -0
  275. package/out/_next/static/chunks/355nca7if7l9n.js +17 -0
  276. package/out/_next/static/chunks/357odtev0t245.js +59 -0
  277. package/out/_next/static/chunks/35fjd9uhctw7y.js +1 -0
  278. package/out/_next/static/chunks/36aqs7u7s-lb1.js +119 -0
  279. package/out/_next/static/chunks/36zrtyhmqlx_n.js +807 -0
  280. package/out/_next/static/chunks/{1xg3ey2rrdxfx.js → 37uz0njkj43tz.js} +1 -1
  281. package/out/_next/static/chunks/38ffn8gazqz8_.js +3 -0
  282. package/out/_next/static/chunks/39-19ao-xkexy.js +2 -0
  283. package/out/_next/static/chunks/39m5tbxzzsmn4.js +807 -0
  284. package/out/_next/static/chunks/3_dqxs_vhmfqd.js +14 -0
  285. package/out/_next/static/chunks/3bgtu00fe99yc.js +1 -0
  286. package/out/_next/static/chunks/3c1rc1w-xe4u7.js +39 -0
  287. package/out/_next/static/chunks/3cdfuacs4_0d-.js +1 -0
  288. package/out/_next/static/chunks/3cp9qqljcytup.js +9 -0
  289. package/out/_next/static/chunks/3cq123yj25_36.js +1 -0
  290. package/out/_next/static/chunks/3d1ofcqmlbg-5.js +52 -0
  291. package/out/_next/static/chunks/3dopaxkoi5px6.js +1 -0
  292. package/out/_next/static/chunks/3doujqxnfq19f.js +16 -0
  293. package/out/_next/static/chunks/3grllla8v0ctl.js +14 -0
  294. package/out/_next/static/chunks/3hqec4-3one07.js +15 -0
  295. package/out/_next/static/chunks/3ic_dagw-uvrx.js +234 -0
  296. package/out/_next/static/chunks/3idwjqiel9n9v.js +18 -0
  297. package/out/_next/static/chunks/{113_jsmrqky1h.js → 3il9u-mfrp2sn.js} +2 -2
  298. package/out/_next/static/chunks/3jtzvr48aaoo0.js +13 -0
  299. package/out/_next/static/chunks/3k5lt5_-g36w9.js +9 -0
  300. package/out/_next/static/chunks/3l-9xxd1i1sya.js +1 -0
  301. package/out/_next/static/chunks/3l1zucp3a411p.js +50 -0
  302. package/out/_next/static/chunks/3ls4kv54f3x8u.js +15 -0
  303. package/out/_next/static/chunks/3m2yam5_cs1h7.js +13 -0
  304. package/out/_next/static/chunks/3mancxzz8c7hl.js +51 -0
  305. package/out/_next/static/chunks/3nkse7h0-kbyx.js +126 -0
  306. package/out/_next/static/chunks/3o23w25lfn4mo.js +27 -0
  307. package/out/_next/static/chunks/{0wm5atnhe2mjs.js → 3oynij37wfjb2.js} +5 -5
  308. package/out/_next/static/chunks/3oz5p4rrvnew1.js +807 -0
  309. package/out/_next/static/chunks/{434iz38padke2.js → 3pbyo5kkko3wh.js} +1 -1
  310. package/out/_next/static/chunks/3qjgt-x153i6u.js +234 -0
  311. package/out/_next/static/chunks/3s-n0xc-vi0ww.js +31 -0
  312. package/out/_next/static/chunks/3t_3vlnk1ntkb.js +95 -0
  313. package/out/_next/static/chunks/3ti7tims6gz1j.js +234 -0
  314. package/out/_next/static/chunks/3tzaludii6vtu.js +54 -0
  315. package/out/_next/static/chunks/{1qnuk3631sd6i.js → 3u504487p_y7e.js} +2 -2
  316. package/out/_next/static/chunks/3ufg-in2riva7.js +1 -0
  317. package/out/_next/static/chunks/3ugwv1vrnbivg.js +1 -0
  318. package/out/_next/static/chunks/3ulbhhqw8rxd8.js +15 -0
  319. package/out/_next/static/chunks/3uytb2p7vzafp.js +15 -0
  320. package/out/_next/static/chunks/3v38tvcona4gy.js +16 -0
  321. package/out/_next/static/chunks/3vet2a9q9rf2c.js +61 -0
  322. package/out/_next/static/chunks/3vz3gqmojh7sx.js +4 -0
  323. package/out/_next/static/chunks/3w9xrlkiztuwi.js +23 -0
  324. package/out/_next/static/chunks/3wy5jhrulhwb9.js +15 -0
  325. package/out/_next/static/chunks/{2tc6lgajxmo78.js → 3xmtbqm0gddn8.js} +3 -3
  326. package/out/_next/static/chunks/3yqmjvx7t3t0_.js +1 -0
  327. package/out/_next/static/chunks/3yvmkdc088aly.js +1 -0
  328. package/out/_next/static/chunks/401o5bfi_90qs.js +141 -0
  329. package/out/_next/static/chunks/40s6ngsexc737.js +15 -0
  330. package/out/_next/static/chunks/40xhwnc_48o73.js +297 -0
  331. package/out/_next/static/chunks/41e2wlkp9_pvk.js +28 -0
  332. package/out/_next/static/chunks/41g7mv3yuhz6k.js +68 -0
  333. package/out/_next/static/chunks/429ihwc6co7u7.js +32 -0
  334. package/out/_next/static/chunks/42p2hm8ca34f6.js +16 -0
  335. package/out/_next/static/chunks/43jyzccx6x0lw.js +1 -0
  336. package/out/_next/static/chunks/447b5tn4-avdv.js +16 -0
  337. package/out/_next/static/chunks/44daaafswok67.css +1 -0
  338. package/out/_next/static/chunks/{3j6p-522fcsnj.js → 452fv7r-tie6t.js} +1 -1
  339. package/out/_next/static/chunks/turbopack-02cmv-knpzk52.js +1 -0
  340. package/out/_next/static/chunks/turbopack-05rmr02n9n2u0.js +1 -0
  341. package/out/_next/static/chunks/turbopack-07fw0g9aver98.js +1 -0
  342. package/out/_next/static/chunks/turbopack-08x92457_z4ve.js +1 -0
  343. package/out/_next/static/chunks/turbopack-0a2sfur4bx222.js +1 -0
  344. package/out/_next/static/chunks/turbopack-0b-g0lpiikryt.js +1 -0
  345. package/out/_next/static/chunks/turbopack-0dj-aua684j9c.js +1 -0
  346. package/out/_next/static/chunks/turbopack-0h5lj7lnf9_tb.js +1 -0
  347. package/out/_next/static/chunks/turbopack-0k8oea6xmzbjh.js +1 -0
  348. package/out/_next/static/chunks/turbopack-0m1qzkhnpuk2j.js +1 -0
  349. package/out/_next/static/chunks/turbopack-0n73ad0fad4yl.js +1 -0
  350. package/out/_next/static/chunks/turbopack-0qxkaq0f9ka24.js +1 -0
  351. package/out/_next/static/chunks/turbopack-0ricnx7znhztj.js +1 -0
  352. package/out/_next/static/chunks/turbopack-0s-h1cgwrfgo-.js +1 -0
  353. package/out/_next/static/chunks/turbopack-0xgswwqf_4vrt.js +1 -0
  354. package/out/_next/static/chunks/turbopack-1330tdm8r390q.js +1 -0
  355. package/out/_next/static/chunks/turbopack-14rn07-ki7f_7.js +1 -0
  356. package/out/_next/static/chunks/turbopack-1azvbmrq_bxq7.js +1 -0
  357. package/out/_next/static/chunks/turbopack-1bjaxey2pj8nn.js +1 -0
  358. package/out/_next/static/chunks/turbopack-1csu0s9cycwgo.js +1 -0
  359. package/out/_next/static/chunks/turbopack-1g8mmayckmfib.js +1 -0
  360. package/out/_next/static/chunks/turbopack-1hty_7i5tzg63.js +1 -0
  361. package/out/_next/static/chunks/turbopack-1p11xfz8qe15i.js +1 -0
  362. package/out/_next/static/chunks/turbopack-1r_uprn020kr7.js +1 -0
  363. package/out/_next/static/chunks/turbopack-1rdxfvyldfwrq.js +1 -0
  364. package/out/_next/static/chunks/turbopack-1td004byboyz2.js +1 -0
  365. package/out/_next/static/chunks/turbopack-1y3x6n223v6d1.js +1 -0
  366. package/out/_next/static/chunks/turbopack-2068cl63o32re.js +1 -0
  367. package/out/_next/static/chunks/turbopack-298vdad77pw5z.js +1 -0
  368. package/out/_next/static/chunks/turbopack-2d5v28yt0xnri.js +1 -0
  369. package/out/_next/static/chunks/turbopack-2dicmowo2x4t1.js +1 -0
  370. package/out/_next/static/chunks/turbopack-2gehqsln39zg1.js +1 -0
  371. package/out/_next/static/chunks/turbopack-2hj-ffuco6-u7.js +1 -0
  372. package/out/_next/static/chunks/turbopack-2it1jk212m2ud.js +1 -0
  373. package/out/_next/static/chunks/turbopack-2l-gbnaw39ht4.js +1 -0
  374. package/out/_next/static/chunks/turbopack-2mbsjg411_ndq.js +1 -0
  375. package/out/_next/static/chunks/turbopack-2n2ksqygaakbh.js +1 -0
  376. package/out/_next/static/chunks/turbopack-2q65pei-ck559.js +1 -0
  377. package/out/_next/static/chunks/turbopack-2sqnlbl-ardf7.js +1 -0
  378. package/out/_next/static/chunks/turbopack-2t6ex34_bkvoe.js +1 -0
  379. package/out/_next/static/chunks/turbopack-2w9_vscbr0eag.js +1 -0
  380. package/out/_next/static/chunks/turbopack-2z2joyd6mdhpo.js +1 -0
  381. package/out/_next/static/chunks/turbopack-338xrj-0fpsqu.js +1 -0
  382. package/out/_next/static/chunks/turbopack-3458e7jmj1e27.js +1 -0
  383. package/out/_next/static/chunks/turbopack-351l-va10h8kw.js +1 -0
  384. package/out/_next/static/chunks/turbopack-35awx_qvevnch.js +1 -0
  385. package/out/_next/static/chunks/turbopack-3a196kafnj312.js +1 -0
  386. package/out/_next/static/chunks/turbopack-3a6igydfvv1_v.js +1 -0
  387. package/out/_next/static/chunks/turbopack-3bnkwdcrz_ts-.js +1 -0
  388. package/out/_next/static/chunks/turbopack-3hsu2nw8qlox4.js +1 -0
  389. package/out/_next/static/chunks/turbopack-3iiyu2cek78ut.js +1 -0
  390. package/out/_next/static/chunks/turbopack-3nta8sa99guti.js +1 -0
  391. package/out/_next/static/chunks/turbopack-3r17oio1oe7jw.js +1 -0
  392. package/out/_next/static/chunks/turbopack-3r9uyzwi0dtwb.js +1 -0
  393. package/out/_next/static/chunks/turbopack-3rgdcfralfvsa.js +1 -0
  394. package/out/_next/static/chunks/turbopack-3tntqotcyx6oq.js +1 -0
  395. package/out/_next/static/chunks/turbopack-3uc-2ah0uehj3.js +1 -0
  396. package/out/_next/static/chunks/turbopack-3uvfl95p1ubqn.js +1 -0
  397. package/out/_next/static/chunks/turbopack-3vncwrj5x9j44.js +1 -0
  398. package/out/_next/static/chunks/turbopack-3ww1zabqxbxit.js +1 -0
  399. package/out/_next/static/chunks/turbopack-3wxlut7e7jmsi.js +1 -0
  400. package/out/_next/static/chunks/turbopack-3yk72bgipb8hc.js +1 -0
  401. package/out/_next/static/chunks/turbopack-4025_4zwqnrk-.js +1 -0
  402. package/out/_next/static/chunks/turbopack-425nfopoa8wxd.js +1 -0
  403. package/out/_next/static/{T3MvrnLGtwi3l3MDtTzwv → hH8h6SzcZWEUFySYqRPbW}/_buildManifest.js +63 -63
  404. package/out/_offline/index.html +2 -2
  405. package/out/account/forgot-password/index.html +2 -2
  406. package/out/account/index.html +2 -2
  407. package/out/assortments/AssortmentDetailPage/index.html +2 -2
  408. package/out/assortments/index.html +2 -2
  409. package/out/assortments/new/index.html +2 -2
  410. package/out/copilot/index.html +2 -2
  411. package/out/country/CountryDetailPage/index.html +2 -2
  412. package/out/country/index.html +2 -2
  413. package/out/country/new/index.html +2 -2
  414. package/out/currency/CurrencyDetailPage/index.html +2 -2
  415. package/out/currency/index.html +2 -2
  416. package/out/currency/new/index.html +2 -2
  417. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
  418. package/out/delivery-provider/index.html +2 -2
  419. package/out/delivery-provider/new/index.html +2 -2
  420. package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
  421. package/out/enrollments/index.html +2 -2
  422. package/out/events/EventDetailPage/index.html +2 -2
  423. package/out/events/index.html +2 -2
  424. package/out/exports/index.html +2 -2
  425. package/out/ext/[[...slug]]/index.html +2 -2
  426. package/out/external/index.html +2 -2
  427. package/out/filters/FilterDetailPage/index.html +2 -2
  428. package/out/filters/index.html +2 -2
  429. package/out/filters/new/index.html +2 -2
  430. package/out/index.html +2 -2
  431. package/out/install/index.html +2 -2
  432. package/out/language/LanguageDetailPage/index.html +2 -2
  433. package/out/language/index.html +2 -2
  434. package/out/language/new/index.html +2 -2
  435. package/out/log-in/index.html +2 -2
  436. package/out/orders/OrderDetailPage/index.html +2 -2
  437. package/out/orders/index.html +2 -2
  438. package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
  439. package/out/payment-provider/index.html +2 -2
  440. package/out/payment-provider/new/index.html +2 -2
  441. package/out/products/ProductDetailPage/index.html +2 -2
  442. package/out/products/index.html +2 -2
  443. package/out/products/new/index.html +2 -2
  444. package/out/quotations/QuotationDetailPage/index.html +2 -2
  445. package/out/quotations/index.html +2 -2
  446. package/out/reset-password/index.html +2 -2
  447. package/out/sign-up/index.html +2 -2
  448. package/out/styleguide/index.html +2 -2
  449. package/out/tokens/TokenDetailPage/index.html +2 -2
  450. package/out/tokens/index.html +2 -2
  451. package/out/users/UserDetailPage/index.html +2 -2
  452. package/out/users/index.html +2 -2
  453. package/out/users/new/index.html +2 -2
  454. package/out/verify-email/index.html +2 -2
  455. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
  456. package/out/warehousing-provider/index.html +2 -2
  457. package/out/warehousing-provider/new/index.html +2 -2
  458. package/out/works/WorkDetailPage/index.html +2 -2
  459. package/out/works/WorkQueueListView/index.html +2 -2
  460. package/out/works/index.html +2 -2
  461. package/out/works/management/index.html +2 -2
  462. package/package.json +22 -17
  463. package/src/sdk/README.md +195 -0
  464. package/src/sdk/plugin-build.mjs +81 -98
  465. package/src/sdk/plugin-build.test.mjs +6 -3
  466. package/src/sdk/plugin-runtime.cjs +66 -0
  467. package/src/sdk/plugin-runtime.d.mts +11 -0
  468. package/src/sdk/plugin-runtime.mjs +27 -0
  469. package/src/sdk/plugin-runtime.test.mjs +32 -0
  470. package/src/sdk/plugins.mjs +17 -0
  471. package/src/sdk/plugins.ts +17 -0
  472. package/src/sdk/shims/admin-ui-plugins.ts +3 -0
  473. package/src/sdk/shims/apollo-client-react.ts +3 -0
  474. package/src/sdk/shims/apollo-client.ts +3 -0
  475. package/src/sdk/shims/host.ts +61 -0
  476. package/src/sdk/shims/next-head.ts +3 -0
  477. package/src/sdk/shims/next-image.ts +3 -0
  478. package/src/sdk/shims/next-link.ts +3 -0
  479. package/src/sdk/shims/next-router.ts +3 -0
  480. package/src/sdk/shims/react-dom-client.ts +3 -0
  481. package/src/sdk/shims/react-dom.ts +3 -0
  482. package/src/sdk/shims/react-hook-form.ts +3 -0
  483. package/src/sdk/shims/react-intl.ts +3 -0
  484. package/src/sdk/shims/react-jsx-runtime.ts +3 -0
  485. package/src/sdk/shims/react-toastify.ts +3 -0
  486. package/src/sdk/shims/react.ts +3 -0
  487. package/out/_next/static/chunks/0-p8a6-okjx49.js +0 -15
  488. package/out/_next/static/chunks/0-u5tid26i8-3.js +0 -188
  489. package/out/_next/static/chunks/008hxgil51owu.js +0 -234
  490. package/out/_next/static/chunks/026k3ys50h91u.js +0 -15
  491. package/out/_next/static/chunks/02aa23atze2y4.js +0 -119
  492. package/out/_next/static/chunks/03f0hv23abn4a.js +0 -12
  493. package/out/_next/static/chunks/03p0xulfluyqm.js +0 -15
  494. package/out/_next/static/chunks/044dmimivt13x.js +0 -233
  495. package/out/_next/static/chunks/047gokoblz-qy.js +0 -16
  496. package/out/_next/static/chunks/04yroykjly9ni.js +0 -15
  497. package/out/_next/static/chunks/05h2_5y4i_fe4.js +0 -12
  498. package/out/_next/static/chunks/0641gh6yb6tnd.js +0 -3
  499. package/out/_next/static/chunks/06bsql5zgjpaj.js +0 -315
  500. package/out/_next/static/chunks/06jtnxd7wr712.js +0 -1
  501. package/out/_next/static/chunks/070wy1qe-7-uf.js +0 -242
  502. package/out/_next/static/chunks/07l1vdt21xneu.js +0 -14
  503. package/out/_next/static/chunks/07q8ufsdxo1tx.js +0 -1
  504. package/out/_next/static/chunks/0_wmk0z5r9thu.js +0 -95
  505. package/out/_next/static/chunks/0ab_-095b34n5.js +0 -90
  506. package/out/_next/static/chunks/0aom8abciz-yf.js +0 -1
  507. package/out/_next/static/chunks/0cdcsn87u-tzw.js +0 -1
  508. package/out/_next/static/chunks/0cu-wqc76z_w6.js +0 -1
  509. package/out/_next/static/chunks/0dnzfqa8el54j.js +0 -135
  510. package/out/_next/static/chunks/0f-hhcgpd3kjt.js +0 -5
  511. package/out/_next/static/chunks/0gdriupdpmq28.js +0 -14
  512. package/out/_next/static/chunks/0hm6-xlqw4vmr.js +0 -1
  513. package/out/_next/static/chunks/0hmdmxkzhdtjx.js +0 -155
  514. package/out/_next/static/chunks/0hpirq7m-gjle.js +0 -23
  515. package/out/_next/static/chunks/0hxsdaxwhc3z4.js +0 -110
  516. package/out/_next/static/chunks/0j-yonuwgtg0k.js +0 -22
  517. package/out/_next/static/chunks/0jo3ujn_icmb9.js +0 -28
  518. package/out/_next/static/chunks/0mayhrft9-4hw.js +0 -13
  519. package/out/_next/static/chunks/0mdh4qszx-qw8.js +0 -1
  520. package/out/_next/static/chunks/0nyu34hvyz9_k.js +0 -103
  521. package/out/_next/static/chunks/0nz8nqr7k7pni.js +0 -61
  522. package/out/_next/static/chunks/0pjv94c771817.js +0 -13
  523. package/out/_next/static/chunks/0qrepe4aqal8_.js +0 -2
  524. package/out/_next/static/chunks/0qtbb-w9hs2i_.js +0 -1
  525. package/out/_next/static/chunks/0r0l1vs8bls6y.js +0 -1
  526. package/out/_next/static/chunks/0r2v5se5riad_.js +0 -227
  527. package/out/_next/static/chunks/0s3aax3no2y3_.js +0 -54
  528. package/out/_next/static/chunks/0sys36fl1uhl-.js +0 -18
  529. package/out/_next/static/chunks/0u-md-qpvyccn.js +0 -149
  530. package/out/_next/static/chunks/0ukobsq85_to1.js +0 -135
  531. package/out/_next/static/chunks/0vcn7yqzt3qlc.js +0 -10
  532. package/out/_next/static/chunks/0wl_oo549tgsw.js +0 -14
  533. package/out/_next/static/chunks/0wpmgf2-hr2iv.js +0 -1
  534. package/out/_next/static/chunks/0wthf9v7cuwqf.js +0 -3
  535. package/out/_next/static/chunks/0xcxmgeevaadl.js +0 -8
  536. package/out/_next/static/chunks/0xvoojz5c4j32.js +0 -14
  537. package/out/_next/static/chunks/0ykc9b-l7rcv9.js +0 -18
  538. package/out/_next/static/chunks/0zb8qwy33hihq.js +0 -142
  539. package/out/_next/static/chunks/0zgu8kiokvsjz.js +0 -1
  540. package/out/_next/static/chunks/0zk0s8hqsf5tg.js +0 -18
  541. package/out/_next/static/chunks/0zl6mu89n1_wq.js +0 -1
  542. package/out/_next/static/chunks/0zntg6ltu_fk3.js +0 -14
  543. package/out/_next/static/chunks/10996osm11rxi.js +0 -327
  544. package/out/_next/static/chunks/10q9_f1ss9afd.js +0 -8
  545. package/out/_next/static/chunks/110vhftkm53lj.js +0 -111
  546. package/out/_next/static/chunks/11fqypagzye_v.js +0 -43
  547. package/out/_next/static/chunks/137522d4_apiu.js +0 -166
  548. package/out/_next/static/chunks/13ml43jv3bxh1.js +0 -1
  549. package/out/_next/static/chunks/16ad724tleody.js +0 -13
  550. package/out/_next/static/chunks/16r_t7quts1w0.js +0 -289
  551. package/out/_next/static/chunks/16yomp2b55xod.js +0 -30
  552. package/out/_next/static/chunks/17jd_42ijblk-.js +0 -15
  553. package/out/_next/static/chunks/17xseq9yxu638.js +0 -1
  554. package/out/_next/static/chunks/18yznjdgjug5c.js +0 -7
  555. package/out/_next/static/chunks/19i-cq0_2t00g.js +0 -60
  556. package/out/_next/static/chunks/19ppkss30jscq.js +0 -13
  557. package/out/_next/static/chunks/1_ov-8bomgh6c.js +0 -54
  558. package/out/_next/static/chunks/1b9l0n8vz64x7.js +0 -233
  559. package/out/_next/static/chunks/1dut2ep8qfdv4.js +0 -14
  560. package/out/_next/static/chunks/1eqs_86cqpxcx.js +0 -138
  561. package/out/_next/static/chunks/1exlzd6w18o_b.js +0 -8
  562. package/out/_next/static/chunks/1f04wea7zvjf5.js +0 -2
  563. package/out/_next/static/chunks/1fqsykinbg1d_.js +0 -12
  564. package/out/_next/static/chunks/1g5l7e7du4p25.js +0 -1
  565. package/out/_next/static/chunks/1hokoliuqn63p.js +0 -17
  566. package/out/_next/static/chunks/1ihjqvn68cj5e.js +0 -36
  567. package/out/_next/static/chunks/1k798vpov34v6.js +0 -12
  568. package/out/_next/static/chunks/1lewut00m9sq1.js +0 -1
  569. package/out/_next/static/chunks/1lwiflo8v2d93.js +0 -1
  570. package/out/_next/static/chunks/1ng9tsm1f8e_a.js +0 -1
  571. package/out/_next/static/chunks/1nvy3y5qe_igv.js +0 -233
  572. package/out/_next/static/chunks/1ozaatz-b_-as.js +0 -41
  573. package/out/_next/static/chunks/1paq5rkj25r88.js +0 -1
  574. package/out/_next/static/chunks/1q2l02eq094zc.js +0 -147
  575. package/out/_next/static/chunks/1q8zx2rmluekr.js +0 -13
  576. package/out/_next/static/chunks/1r092zo5e6999.js +0 -190
  577. package/out/_next/static/chunks/1r0aluuzu5vw7.js +0 -13
  578. package/out/_next/static/chunks/1sgv26vi42stl.js +0 -13
  579. package/out/_next/static/chunks/1t80pe40g73fh.js +0 -82
  580. package/out/_next/static/chunks/1u6jfjnf14knz.js +0 -124
  581. package/out/_next/static/chunks/1xx6ie3yh2hbk.js +0 -235
  582. package/out/_next/static/chunks/1y-vwb0-v5xv0.js +0 -304
  583. package/out/_next/static/chunks/2-8-i_m-82mjh.js +0 -43
  584. package/out/_next/static/chunks/2-s6g5_cyahx8.js +0 -1
  585. package/out/_next/static/chunks/20ndjd4r5l6vk.js +0 -1
  586. package/out/_next/static/chunks/20v019mj-zi94.js +0 -13
  587. package/out/_next/static/chunks/21w-hkh4_w1kl.js +0 -19
  588. package/out/_next/static/chunks/226ya3lbz_55w.js +0 -19
  589. package/out/_next/static/chunks/22az81pi-bqjb.js +0 -1
  590. package/out/_next/static/chunks/22get2_2lcba-.js +0 -21
  591. package/out/_next/static/chunks/22l-2aehes9lx.js +0 -153
  592. package/out/_next/static/chunks/23y9nin7qo-xy.js +0 -17
  593. package/out/_next/static/chunks/25t23h8zbmzh-.js +0 -12
  594. package/out/_next/static/chunks/273zh05aw6uz2.js +0 -13
  595. package/out/_next/static/chunks/28o-5560g4bwk.js +0 -7
  596. package/out/_next/static/chunks/28zahy_uqar2t.js +0 -12
  597. package/out/_next/static/chunks/29dylunjhn4te.js +0 -34
  598. package/out/_next/static/chunks/2_3qu55ddb4jo.js +0 -3
  599. package/out/_next/static/chunks/2_7z1veshuiiw.js +0 -10
  600. package/out/_next/static/chunks/2_ztj391g9yzt.js +0 -226
  601. package/out/_next/static/chunks/2a9z_gm1vn39c.js +0 -173
  602. package/out/_next/static/chunks/2b8nhs_3rpawc.js +0 -1
  603. package/out/_next/static/chunks/2biyd1hzgc2sv.js +0 -339
  604. package/out/_next/static/chunks/2c2vssolfspzg.js +0 -50
  605. package/out/_next/static/chunks/2dbrybnhe5thu.css +0 -1
  606. package/out/_next/static/chunks/2diqy5aehqe8j.js +0 -58
  607. package/out/_next/static/chunks/2dq4d-ey-16cq.js +0 -1
  608. package/out/_next/static/chunks/2dyysegkbptw8.js +0 -11
  609. package/out/_next/static/chunks/2ei1rfxsl3q65.js +0 -31
  610. package/out/_next/static/chunks/2f3z_9lk_9lsj.js +0 -14
  611. package/out/_next/static/chunks/2fazxtc5_9tgo.js +0 -52
  612. package/out/_next/static/chunks/2fzc9bsweg7nf.js +0 -807
  613. package/out/_next/static/chunks/2h5-bnhry6wzl.js +0 -14
  614. package/out/_next/static/chunks/2hmtn1okhj6zz.js +0 -234
  615. package/out/_next/static/chunks/2htrbj6g7da-e.js +0 -12
  616. package/out/_next/static/chunks/2j51l4ukmrn7j.js +0 -17
  617. package/out/_next/static/chunks/2k4cusvrm93cp.js +0 -39
  618. package/out/_next/static/chunks/2ldks6pel2wcp.js +0 -31
  619. package/out/_next/static/chunks/2loz6t7f69t0c.js +0 -1
  620. package/out/_next/static/chunks/2onfts3kpe9d8.js +0 -1
  621. package/out/_next/static/chunks/2p9aozkdq_z13.js +0 -329
  622. package/out/_next/static/chunks/2pz2u5us_0jme.js +0 -5
  623. package/out/_next/static/chunks/2qaf44ypuy_4z.js +0 -1
  624. package/out/_next/static/chunks/2r1-eyf6hic-m.js +0 -1
  625. package/out/_next/static/chunks/2ritd1boot22-.js +0 -32
  626. package/out/_next/static/chunks/2s1__k407zn6n.js +0 -1
  627. package/out/_next/static/chunks/2s6qkrjh7-b6s.js +0 -1
  628. package/out/_next/static/chunks/2twd9trj9horc.js +0 -61
  629. package/out/_next/static/chunks/2ua7-skz9vm4r.js +0 -13
  630. package/out/_next/static/chunks/2vjkcd8g_hh68.js +0 -46
  631. package/out/_next/static/chunks/2x4vo24qfe0mr.js +0 -1
  632. package/out/_next/static/chunks/2zm-d0-e0sxgo.js +0 -23
  633. package/out/_next/static/chunks/3-u1dp82vzyt9.js +0 -1
  634. package/out/_next/static/chunks/30iz3jszdu04d.js +0 -11
  635. package/out/_next/static/chunks/30jmh-3cp5wcg.js +0 -12
  636. package/out/_next/static/chunks/3178a_a_i-e-q.js +0 -16
  637. package/out/_next/static/chunks/317qzy7r8meg_.js +0 -1
  638. package/out/_next/static/chunks/32nwqfli0ne57.js +0 -1
  639. package/out/_next/static/chunks/33c-rzkj2k2v1.js +0 -14
  640. package/out/_next/static/chunks/33g91_yljnpiw.js +0 -807
  641. package/out/_next/static/chunks/34ybf-w3bdlw8.js +0 -13
  642. package/out/_next/static/chunks/35-vqjhcep-zw.js +0 -60
  643. package/out/_next/static/chunks/35a6ymsh4q0-o.js +0 -14
  644. package/out/_next/static/chunks/36yrxjq9zbvpx.js +0 -13
  645. package/out/_next/static/chunks/377ho63k7qphg.js +0 -14
  646. package/out/_next/static/chunks/37bs69urhjdz5.js +0 -24
  647. package/out/_next/static/chunks/37mpnb5qztb_g.js +0 -15
  648. package/out/_next/static/chunks/3a8a8fpl7-ndf.js +0 -1
  649. package/out/_next/static/chunks/3b6hct2rk2wu9.js +0 -24
  650. package/out/_next/static/chunks/3czsj6bdmobbd.js +0 -24
  651. package/out/_next/static/chunks/3d0ic2ovyeue7.js +0 -2
  652. package/out/_next/static/chunks/3eq1b2m2xkkmp.js +0 -1
  653. package/out/_next/static/chunks/3f2ue6ut-mwka.js +0 -2
  654. package/out/_next/static/chunks/3g67xtrp0vv4m.js +0 -1
  655. package/out/_next/static/chunks/3iepyd4rzl-tt.js +0 -13
  656. package/out/_next/static/chunks/3kle_yukf5aux.js +0 -809
  657. package/out/_next/static/chunks/3l_nx7eopgh02.js +0 -1
  658. package/out/_next/static/chunks/3mk-cv2ocv93u.js +0 -50
  659. package/out/_next/static/chunks/3n5290qcigwpc.js +0 -13
  660. package/out/_next/static/chunks/3nl02jbknvx4p.js +0 -14
  661. package/out/_next/static/chunks/3o5a5qn0dnq04.js +0 -3
  662. package/out/_next/static/chunks/3o5kwvdgt_t9z.js +0 -73
  663. package/out/_next/static/chunks/3qamj8gt1ijdz.js +0 -12
  664. package/out/_next/static/chunks/3rlrwz262rpw0.js +0 -1
  665. package/out/_next/static/chunks/3s3v9n_ob4m24.js +0 -18
  666. package/out/_next/static/chunks/3s47qr8fn6h4j.js +0 -8
  667. package/out/_next/static/chunks/3slzhmkeoggpm.js +0 -66
  668. package/out/_next/static/chunks/3tv9csz53av-5.js +0 -1
  669. package/out/_next/static/chunks/3uec1_7irpl71.js +0 -16
  670. package/out/_next/static/chunks/3uo1w1gaj7tsx.js +0 -117
  671. package/out/_next/static/chunks/3uwev5xyub_j1.js +0 -7
  672. package/out/_next/static/chunks/3w450c1xmh550.js +0 -12
  673. package/out/_next/static/chunks/3x8aami6-3l79.js +0 -31
  674. package/out/_next/static/chunks/3xhogi6_bbwh7.js +0 -10
  675. package/out/_next/static/chunks/3y62dz45ticve.js +0 -1
  676. package/out/_next/static/chunks/3yjzk_udmhv3i.js +0 -1
  677. package/out/_next/static/chunks/3z6v84zof80bt.js +0 -1
  678. package/out/_next/static/chunks/3zncjth-kop8p.js +0 -1
  679. package/out/_next/static/chunks/3zp4iedgev460.js +0 -35
  680. package/out/_next/static/chunks/413qu_x6yky1e.js +0 -1
  681. package/out/_next/static/chunks/41j8mb2ztwydi.js +0 -14
  682. package/out/_next/static/chunks/41pc5_e25bhgd.js +0 -1
  683. package/out/_next/static/chunks/424z-zudpy3n0.js +0 -39
  684. package/out/_next/static/chunks/42o6t6-v2qi37.js +0 -29
  685. package/out/_next/static/chunks/43pb7hjetp965.js +0 -1
  686. package/out/_next/static/chunks/44rharl5hvsw-.js +0 -22
  687. package/out/_next/static/chunks/45ac68ug7hcoc.js +0 -13
  688. package/out/_next/static/chunks/turbopack-0-chqajqgydnn.js +0 -1
  689. package/out/_next/static/chunks/turbopack-0-jquaej6q4cd.js +0 -1
  690. package/out/_next/static/chunks/turbopack-01y_6kjoo1mvp.js +0 -1
  691. package/out/_next/static/chunks/turbopack-03_sghcquhw33.js +0 -1
  692. package/out/_next/static/chunks/turbopack-0a_5nw_3znl2r.js +0 -1
  693. package/out/_next/static/chunks/turbopack-0bbgz21dy5lm3.js +0 -1
  694. package/out/_next/static/chunks/turbopack-0cqzo60ry70im.js +0 -1
  695. package/out/_next/static/chunks/turbopack-0ex-kw1o5k02z.js +0 -1
  696. package/out/_next/static/chunks/turbopack-0jzps1g34dah5.js +0 -1
  697. package/out/_next/static/chunks/turbopack-0o9rz5e94nq66.js +0 -1
  698. package/out/_next/static/chunks/turbopack-0rq3y47awgwpt.js +0 -1
  699. package/out/_next/static/chunks/turbopack-0vs4-gjxe552i.js +0 -1
  700. package/out/_next/static/chunks/turbopack-0x1jwahqhzo0u.js +0 -1
  701. package/out/_next/static/chunks/turbopack-11auq8fqexpmm.js +0 -1
  702. package/out/_next/static/chunks/turbopack-13uretb6lcje8.js +0 -1
  703. package/out/_next/static/chunks/turbopack-14n2u99h724y-.js +0 -1
  704. package/out/_next/static/chunks/turbopack-1a774_gjam74t.js +0 -1
  705. package/out/_next/static/chunks/turbopack-1gy8illqlm_jj.js +0 -1
  706. package/out/_next/static/chunks/turbopack-1n9q29j854ltr.js +0 -1
  707. package/out/_next/static/chunks/turbopack-1nathpz4-f-4w.js +0 -1
  708. package/out/_next/static/chunks/turbopack-1nca86oa17qfx.js +0 -1
  709. package/out/_next/static/chunks/turbopack-1qe0zbu9fejdb.js +0 -1
  710. package/out/_next/static/chunks/turbopack-1qg26rdmwlotw.js +0 -1
  711. package/out/_next/static/chunks/turbopack-1u6lf-rzbdjuj.js +0 -1
  712. package/out/_next/static/chunks/turbopack-1z85kwwdibjh7.js +0 -1
  713. package/out/_next/static/chunks/turbopack-22as-nh7md98p.js +0 -1
  714. package/out/_next/static/chunks/turbopack-23lcv-araye0t.js +0 -1
  715. package/out/_next/static/chunks/turbopack-25gt3vwmogps-.js +0 -1
  716. package/out/_next/static/chunks/turbopack-26g97kfge67jz.js +0 -1
  717. package/out/_next/static/chunks/turbopack-26u67kbn41n8e.js +0 -1
  718. package/out/_next/static/chunks/turbopack-280jnadydykur.js +0 -1
  719. package/out/_next/static/chunks/turbopack-2bb6lvvhg6e0w.js +0 -1
  720. package/out/_next/static/chunks/turbopack-2bw5gluonepob.js +0 -1
  721. package/out/_next/static/chunks/turbopack-2c36n939jg0pf.js +0 -1
  722. package/out/_next/static/chunks/turbopack-2ez296aoalbog.js +0 -1
  723. package/out/_next/static/chunks/turbopack-2frqnl7lfn0h9.js +0 -1
  724. package/out/_next/static/chunks/turbopack-2jxkmyhbvdw4u.js +0 -1
  725. package/out/_next/static/chunks/turbopack-2k45z490u3tbj.js +0 -1
  726. package/out/_next/static/chunks/turbopack-2p-uq1erkf03-.js +0 -1
  727. package/out/_next/static/chunks/turbopack-2svkg0yvgyw3_.js +0 -1
  728. package/out/_next/static/chunks/turbopack-31s1c5ipeb5_p.js +0 -1
  729. package/out/_next/static/chunks/turbopack-33v049epa0erx.js +0 -1
  730. package/out/_next/static/chunks/turbopack-34jylrj_qw1ak.js +0 -1
  731. package/out/_next/static/chunks/turbopack-34u-t26ngu-oy.js +0 -1
  732. package/out/_next/static/chunks/turbopack-34x5gar31d5sv.js +0 -1
  733. package/out/_next/static/chunks/turbopack-363g_e-jzg5u_.js +0 -1
  734. package/out/_next/static/chunks/turbopack-39um5sy1v-bvw.js +0 -1
  735. package/out/_next/static/chunks/turbopack-3__2i-6jdv1s8.js +0 -1
  736. package/out/_next/static/chunks/turbopack-3b4s935ks8u-b.js +0 -1
  737. package/out/_next/static/chunks/turbopack-3b5-pdmr324f-.js +0 -1
  738. package/out/_next/static/chunks/turbopack-3bwm37xq99e4l.js +0 -1
  739. package/out/_next/static/chunks/turbopack-3ec8ol5n3kb0h.js +0 -1
  740. package/out/_next/static/chunks/turbopack-3gw7smd4lo5ud.js +0 -1
  741. package/out/_next/static/chunks/turbopack-3miy8-7wxcnbn.js +0 -1
  742. package/out/_next/static/chunks/turbopack-3nvjaj1vijowz.js +0 -1
  743. package/out/_next/static/chunks/turbopack-3poc67i76-q8q.js +0 -1
  744. package/out/_next/static/chunks/turbopack-3r1pnr94s1u0w.js +0 -1
  745. package/out/_next/static/chunks/turbopack-3sfa4031m280j.js +0 -1
  746. package/out/_next/static/chunks/turbopack-3sqs5hm2xhl3s.js +0 -1
  747. package/out/_next/static/chunks/turbopack-3xha6pmjqez6d.js +0 -1
  748. package/out/_next/static/chunks/turbopack-3yp7pgp42yfh3.js +0 -1
  749. package/out/_next/static/chunks/turbopack-3z_g6t7o2z7rb.js +0 -1
  750. package/out/_next/static/chunks/turbopack-3zb947kjm56zb.js +0 -1
  751. package/out/_next/static/chunks/turbopack-43m6wi0fybh1f.js +0 -1
  752. /package/dist/{chunk-BYXBJQAS.js → chunk-QWQ3WJJN.js} +0 -0
  753. /package/out/_next/static/{T3MvrnLGtwi3l3MDtTzwv → hH8h6SzcZWEUFySYqRPbW}/_clientMiddlewareManifest.js +0 -0
  754. /package/out/_next/static/{T3MvrnLGtwi3l3MDtTzwv → hH8h6SzcZWEUFySYqRPbW}/_ssgManifest.js +0 -0
@@ -0,0 +1,297 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,57986,26013,e=>{"use strict";var s=e.i(91398),t=e.i(69322),a=e.i(15361),r=e.i(10833);e.s(["XCircleIcon",()=>r.default],26013);var r=r,l=e.i(67912),d=e.i(41158),i=e.i(93380),n=e.i(87284);let c=({username:e})=>(0,s.jsx)(l.UserCircleIcon,{className:"h-8 w-8 text-slate-800 dark:text-slate-600"});e.s(["default",0,({user:e,contact:l})=>{let{formatMessage:o}=(0,t.useIntl)();return(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"h-8 w-8 rounded-full",children:e?.avatar?(0,s.jsx)(n.default,{src:e.avatar.url,alt:e.name||e.username,width:100,height:100}):(0,s.jsx)(c,{username:e?.username})}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-4",children:[(0,s.jsx)("div",{className:"flex items-center justify-between gap-3 flex-wrap",children:(0,s.jsxs)("span",{className:"flex items-center",children:[(0,s.jsx)("h3",{className:"text-xl font-semibold capitalize",children:(0,s.jsx)(d.default,{href:`/users?userId=${e?._id}`,className:"text-text-secondary hover:text-slate-900 dark:hover:text-slate-600",children:(0,i.default)(e)})}),e?.primaryEmail?.verified&&(0,s.jsxs)("dl",{className:"self-end",children:[(0,s.jsx)("dt",{className:"sr-only",children:o({id:"account_status",defaultMessage:"Account status"})}),(0,s.jsx)("dd",{className:"mt-3 flex items-center self-end text-sm font-medium capitalize text-slate-900 sm:mr-6 sm:mt-0",children:e?.primaryEmail?.verified?(0,s.jsx)(a.CheckCircleIcon,{className:"h-4 w-4 shrink-0 text-emerald-400","aria-hidden":"true"}):(0,s.jsx)(r.default,{className:"h-4 w-4 shrink-0 text-rose-400","aria-hidden":"true"})})]})]})}),l?.emailAddress&&(0,s.jsx)("div",{children:l.emailAddress}),l?.telNumber&&(0,s.jsx)("div",{children:l.telNumber})]})]})}],57986)},66885,e=>{"use strict";var s=e.i(91398),t=e.i(69322),a=e.i(38322),r=e.i(84818),l=e.i(83147),d=e.i(51782);e.s(["default",0,({data:e,statusTypes:i,timeline:n})=>{let{formatMessage:c}=(0,t.useIntl)(),{formatDateTime:o}=(0,r.default)(),{content:u={},id:m}=n[e?.status]||{},x=i.filter(({value:e})=>n[e]?.visible);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"flow-root sm:hidden",children:(0,s.jsx)("ul",{className:"my-4",children:x.map(({value:t,label:r},d)=>(0,s.jsx)("li",{children:(0,s.jsxs)("div",{className:"relative pb-8",children:[d!==x.length-1?(0,s.jsx)("span",{className:(0,l.classNames)(m>d+1?"bg-slate-900":"bg-slate-200","absolute top-2.5 left-2.5 -ml-px h-full w-0.5"),"aria-hidden":"true"}):null,(0,s.jsxs)("div",{className:"relative flex items-center space-x-3",children:[(0,s.jsx)("div",{children:(0,s.jsx)("span",{className:(0,l.classNames)(m>d?"bg-slate-900":"bg-slate-600","flex h-5 w-5 items-center justify-center rounded-full"),children:m>d?(0,s.jsx)(a.CheckIcon,{className:"h-5 w-5 text-white","aria-hidden":"true"}):null})}),(0,s.jsxs)("div",{className:"ml-4 flex min-w-0 flex-1 items-center justify-between",children:[(0,s.jsx)("div",{className:"flex-auto",children:(0,s.jsx)("p",{className:"text-sm text-slate-500",children:(0,s.jsxs)("span",{className:"flex w-full items-center justify-between text-text-primary",children:[t,n[t]?.Component&&n[t].Component]})})}),m>=n[t].id?(0,s.jsx)("div",{className:"whitespace-nowrap text-right text-sm text-text-muted ml-4",children:e[n?.[t]?.content]?o(e[n?.[t]?.content],{dateStyle:"short",timeStyle:"short"}):null}):null]})]})]})},`${t}${r}`))})}),(0,s.jsxs)("div",{className:" p-4 bg-white shadow-sm dark:shadow-none dark:border dark:border-slate-700 sm:rounded-lg dark:bg-slate-900",children:[(0,s.jsxs)("p",{className:"font-medium flex items-center justify-between",children:[(0,s.jsx)(d.OrderStatusBadge,{status:e.status}),(0,s.jsx)("span",{children:e[u]?o(e[u],{dateStyle:"full",timeStyle:"medium"}):c({id:"in_cart",defaultMessage:"In cart"})})]}),(0,s.jsx)("div",{className:"mt-2","aria-hidden":"true",children:(0,s.jsx)("div",{className:"mt-2 hidden text-sm font-medium text-slate-600 sm:flex",children:x.map(({value:t,label:a})=>(0,s.jsxs)("div",{className:"sm:flex-auto",children:[(0,s.jsx)("div",{className:"relative mb-4 mr-1",children:(0,s.jsx)("span",{className:(0,l.classNames)(m>=n[t].id?e?.status==="CONFIRMED"?"bg-lime-600":e?.status==="PENDING"?"bg-amber-600":e?.status==="OPEN"?"bg-sky-600":"bg-emerald-600":"bg-surface-raised","absolute top-0 left-0 -ml-px h-2 w-full"),"aria-hidden":"true"})}),(0,s.jsxs)("div",{className:(0,l.classNames)(m>=n[t].id?"text-slate-900":"opacity-50","text-start"),children:[(0,s.jsx)("span",{className:"text-slate-900 dark:text-slate-400 uppercase",children:n[t]?.Component?n[t].Component:"CONFIRMED"===t?c({id:"confirmed",defaultMessage:"CONFIRMED"}):"PENDING"===t?c({id:"pending",defaultMessage:"PENDING"}):"OPEN"===t?c({id:"open",defaultMessage:"OPEN"}):"FULFILLED"===t?c({id:"fulfilled",defaultMessage:"FULFILLED"}):"REJECTED"===t?c({id:"rejected",defaultMessage:"REJECTED"}):t}),(0,s.jsx)("span",{className:"block text-text-primary",children:m>=n?.[t]?.id?o(e[n?.[t]?.content],{dateStyle:"short",timeStyle:"short"}):null})]})]},`${t}${a}`))})})]})]})}])},11959,e=>{"use strict";var s=e.i(59080),t=e.i(32171);let a=s.gql`
2
+ query StatusTypes($enumName: String!) {
3
+ statusTypes: __type(name: $enumName) {
4
+ options: enumValues {
5
+ value: name
6
+ label: description
7
+ }
8
+ }
9
+ }
10
+ `;e.s(["default",0,e=>{let{data:s,loading:r,error:l}=(0,t.useQuery)(a,{variables:{enumName:e}});return{statusTypes:s?.statusTypes?.options||[],loading:r,error:l}}])},34728,e=>{"use strict";var s=e.i(91398),t=e.i(38322);e.s(["default",0,({onOkClick:e,buttonText:a,headerText:r,message:l,icon:d=null})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{children:[d||(0,s.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-emerald-100 dark:bg-emerald-900/30",children:(0,s.jsx)(t.CheckIcon,{className:"h-6 w-6 text-emerald-600 dark:text-emerald-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"})}),(0,s.jsxs)("div",{className:"mt-3 text-center sm:mt-5",children:[(0,s.jsx)("h3",{className:"text-lg text-text-primary",id:"modal-title",children:r}),(0,s.jsx)("div",{className:"mt-2",children:(0,s.jsx)("p",{className:"text-sm text-text-muted",children:l})})]})]}),(0,s.jsx)("div",{className:"mt-5 sm:mt-6",children:(0,s.jsx)("button",{id:"alert_ok",onClick:e,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-accent px-4 py-2 text-base font-medium text-text-on-accent shadow-xs hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 sm:text-sm",children:a})})]})])},71774,e=>{"use strict";var s=e.i(91398),t=e.i(3828);e.i(51523);var a=e.i(19518),r=e.i(69322),l=e.i(28401),d=e.i(50595),i=e.i(53576),n=e.i(59080),c=e.i(32171),o=e.i(70693),u=e.i(36494);let m=n.gql`
11
+ fragment OrderDetailFragment on Order {
12
+ _id
13
+ totalTax: total(category: TAXES) {
14
+ amount
15
+ currencyCode
16
+ }
17
+ itemsTotal: total(category: ITEMS) {
18
+ amount
19
+ currencyCode
20
+ }
21
+ totalDiscount: total(category: DISCOUNTS) {
22
+ amount
23
+ currencyCode
24
+ }
25
+
26
+ totalPayment: total(category: PAYMENT) {
27
+ amount
28
+ currencyCode
29
+ }
30
+ totalDelivery: total(category: DELIVERY) {
31
+ amount
32
+ currencyCode
33
+ }
34
+
35
+ user {
36
+ _id
37
+ username
38
+ isGuest
39
+ avatar {
40
+ _id
41
+ url
42
+ }
43
+ profile {
44
+ displayName
45
+ address {
46
+ firstName
47
+ lastName
48
+ }
49
+ }
50
+ }
51
+ discounts {
52
+ _id
53
+ trigger
54
+ code
55
+ interface {
56
+ _id
57
+ label
58
+ version
59
+ }
60
+ total {
61
+ amount
62
+ currencyCode
63
+ isTaxable
64
+ isNetPrice
65
+ }
66
+ discounted {
67
+ _id
68
+ orderDiscount {
69
+ _id
70
+ total {
71
+ amount
72
+ currencyCode
73
+ isTaxable
74
+ isNetPrice
75
+ }
76
+ }
77
+ total {
78
+ amount
79
+ currencyCode
80
+ isTaxable
81
+ isNetPrice
82
+ }
83
+ }
84
+ }
85
+ payment {
86
+ _id
87
+ provider {
88
+ _id
89
+ type
90
+ interface {
91
+ _id
92
+ label
93
+ version
94
+ }
95
+ }
96
+ status
97
+ fee {
98
+ currencyCode
99
+ amount
100
+ }
101
+ paid
102
+ }
103
+
104
+ orderNumber
105
+ status
106
+ created
107
+ updated
108
+ ordered
109
+
110
+ confirmed
111
+ fulfilled
112
+ contact {
113
+ telNumber
114
+ emailAddress
115
+ }
116
+ country {
117
+ _id
118
+ isoCode
119
+ flagEmoji
120
+ name
121
+ }
122
+ currency {
123
+ _id
124
+ isoCode
125
+ isActive
126
+ }
127
+ billingAddress {
128
+ ...AddressFragment
129
+ }
130
+ delivery {
131
+ _id
132
+ ... on OrderDeliveryPickUp {
133
+ activePickUpLocation {
134
+ _id
135
+ name
136
+ address {
137
+ ...AddressFragment
138
+ }
139
+ }
140
+ }
141
+ ... on OrderDeliveryShipping {
142
+ address {
143
+ ...AddressFragment
144
+ }
145
+ }
146
+ provider {
147
+ _id
148
+ created
149
+ updated
150
+ deleted
151
+ type
152
+ configuration
153
+ interface {
154
+ _id
155
+ label
156
+ version
157
+ }
158
+ }
159
+ status
160
+ delivered
161
+ fee {
162
+ isTaxable
163
+ isNetPrice
164
+ amount
165
+ currencyCode
166
+ }
167
+ discounts {
168
+ _id
169
+ orderDiscount {
170
+ _id
171
+ trigger
172
+ code
173
+ order {
174
+ _id
175
+ orderNumber
176
+ }
177
+ interface {
178
+ _id
179
+ label
180
+ version
181
+ }
182
+ total {
183
+ isTaxable
184
+ isNetPrice
185
+ amount
186
+ currencyCode
187
+ }
188
+ discounted {
189
+ _id
190
+ orderDiscount {
191
+ _id
192
+ trigger
193
+ code
194
+ order {
195
+ _id
196
+ orderNumber
197
+ }
198
+ interface {
199
+ _id
200
+ label
201
+ version
202
+ }
203
+ total {
204
+ isTaxable
205
+ isNetPrice
206
+ amount
207
+ currencyCode
208
+ }
209
+ }
210
+ }
211
+ }
212
+ }
213
+
214
+ delivered
215
+ }
216
+ total {
217
+ isTaxable
218
+ isTaxable
219
+ amount
220
+ currencyCode
221
+ }
222
+ items {
223
+ _id
224
+ product {
225
+ _id
226
+ texts {
227
+ _id
228
+ slug
229
+ brand
230
+ vendor
231
+ title
232
+ subtitle
233
+ }
234
+ media {
235
+ _id
236
+ file {
237
+ _id
238
+ url
239
+ }
240
+ }
241
+ }
242
+ quantity
243
+
244
+ unitPrice {
245
+ amount
246
+ isTaxable
247
+ isNetPrice
248
+ currencyCode
249
+ }
250
+ total {
251
+ amount
252
+ isTaxable
253
+ isNetPrice
254
+ currencyCode
255
+ }
256
+ }
257
+ }
258
+ ${u.default}
259
+ `;var x=e.i(41158),f=e.i(83147),h=e.i(1880),p=e.i(87284);let g=({item:e})=>{let{formatMessage:t}=(0,r.useIntl)(),{formatPrice:a}=(0,f.useFormatPrice)();return(0,s.jsx)(x.default,{href:`/products?slug=${(0,h.default)(e.product)}`,children:(0,s.jsx)("div",{className:"space-y-8",children:(0,s.jsxs)("div",{className:"flex items-center flex-wrap",children:[(0,s.jsx)("div",{className:"flex shrink-0 overflow-hidden rounded-lg sm:mx-0 ",children:e.product?.media?.length?(0,s.jsx)(p.default,{src:`${e.product?.media[0].file.url}`,alt:e?.product?.texts?.title||e?.product?.texts?.subtitle,className:"object-cover object-center",width:80,height:80}):null}),(0,s.jsxs)("div",{className:"flex flex-col justify-center sm:mt-0 ml-3 sm:flex-auto",children:[(0,s.jsx)("h3",{className:"text-base text-text-primary truncate",dangerouslySetInnerHTML:{__html:e?.product?.texts?.title||e?.product?.texts?.subtitle}}),(0,s.jsx)("div",{className:"mt-1 text-sm dark:text-slate-400",children:a(e?.unitPrice)}),(0,s.jsxs)("div",{className:"mt-1 text-sm dark:text-slate-400",children:[t({id:"item_quantity",defaultMessage:"Quantity:"}),(0,s.jsx)("span",{className:"ml-1",children:e?.quantity})]})]})]})})})},v=({order:e})=>{let{formatMessage:t}=(0,r.useIntl)(),{formatPrice:a}=(0,f.useFormatPrice)(),l=e?.status==="OPEN"||!e?.orderNumber;return(0,s.jsx)("div",{"aria-labelledby":"summary-heading",children:(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between pb-3 text-xl",children:[(0,s.jsx)("dt",{className:"",children:t({id:"order_total",defaultMessage:"Order total"})}),(0,s.jsx)("dd",{className:"",children:a(e?.total)})]}),!l&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("dt",{className:"text-text-secondary",children:t({id:"discount",defaultMessage:"Discount"})}),(0,s.jsx)("dd",{className:"",children:a(e?.totalDiscount)})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("dt",{className:"text-text-secondary",children:t({id:"shipping",defaultMessage:"Shipping"})}),(0,s.jsx)("dd",{className:"",children:a(e?.totalDelivery)})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("dt",{className:"text-text-secondary",children:t({id:"tax",defaultMessage:"Tax"})}),(0,s.jsx)("dd",{className:"",children:a(e?.totalTax)})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("dt",{className:"text-text-secondary",children:t({id:"order_payment_fees",defaultMessage:"Fees"})}),(0,s.jsx)("dd",{className:"",children:a(e?.totalPayment)})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("dt",{className:"text-text-secondary",children:t({id:"subtotal",defaultMessage:"Subtotal"})}),(0,s.jsx)("dd",{className:"",children:a(e?.itemsTotal)})]})]})]})})};var j=e.i(37369),y=e.i(34728),b=e.i(6607),N=e.i(76204);let k=n.gql`
260
+ mutation PayOrder($orderId: ID!) {
261
+ payOrder(orderId: $orderId) {
262
+ _id
263
+ }
264
+ }
265
+ `;var _=e.i(51967),w=e.i(11959),I=e.i(84818);let M=({enumType:e,currentType:t,label:a,component:l=null})=>{let{formatMessage:d}=(0,r.useIntl)();return l||(0,s.jsx)("span",{title:a,className:`${t===e?"border-slate-300 bg-slate-200 text-slate-950 dark:bg-slate-800 dark:text-slate-200":"opacity-10 dark:bg-slate-900 "} mr-2 mb-2 inline-flex items-center rounded-md border border-slate-300 bg-white px-2 py-1 text-sm uppercase dark:border-slate-700 dark:bg-slate-800 dark:text-slate-200 transition-colors duration-200 ease-in-out hover:bg-surface-raised focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 focus:ring-offset-white dark:focus:ring-offset-slate-800`,children:(e=>{switch(e){case"INVOICE":return d({id:"invoice",defaultMessage:"INVOICE"});case"SHIPPING":return d({id:"shipping_method",defaultMessage:"SHIPPING"});case"OPEN":return d({id:"open",defaultMessage:"OPEN"});case"DELIVERED":return d({id:"delivered",defaultMessage:"Delivered"}).toUpperCase();case"PAID":return d({id:"paid",defaultMessage:"Paid"}).toUpperCase();default:return e}})(e)})};var C=e.i(58971);let E=({order:e})=>{let{paymentProviderType:t}=(0,_.default)(),{statusTypes:d}=(0,w.default)("OrderPaymentStatus"),{formatDateTime:i}=(0,I.default)(),{formatPrice:n}=(0,f.useFormatPrice)(),{formatMessage:c}=(0,r.useIntl)(),{setModal:o}=(0,b.default)(),{payOrder:u}=(()=>{let[e]=(0,N.useMutation)(k);return{payOrder:async({orderId:s})=>e({variables:{orderId:s},refetchQueries:["Order"]})}})(),{hasRole:m}=(0,C.default)(),h=async()=>{await o((0,s.jsx)(y.default,{buttonText:c({id:"pay",defaultMessage:"Mark paid"}),message:c({id:"mark_as_paid_question",defaultMessage:"This will change the order payment status to Paid."}),headerText:c({id:"mark_as_paid_question_header",defaultMessage:"Mark as paid?"}),onOkClick:async()=>{o(""),await u({orderId:e._id}),l.toast.success(c({id:"order_paid",defaultMessage:"Order paid successfully"}))}}))};return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,s.jsx)("h2",{className:"pt-4 text-2xl text-text-primary",children:c({id:"payment",defaultMessage:"Payment"})}),e?.payment?.fee?.currencyCode&&(0,s.jsx)("span",{className:"block",children:n(e.payment.fee)}),e?.payment?.paid&&(0,s.jsx)("span",{className:"font-mono",children:i(e.payment.paid,{timeStyle:"short",dateStyle:"medium"})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"mb-5 block text-xs font-mono",children:e?.payment?.provider&&(0,s.jsx)(x.default,{href:`/payment-provider?paymentProviderId=${e.payment.provider._id}`,className:"text-slate-500 dark:text-slate-300 hover:text-slate-800 dark:hover:text-slate-600",children:(0,f.getInterfaceLabel)(e.payment?.provider?.interface)})}),(0,s.jsx)("div",{className:"mt-3 text-sm text-text-muted",children:c({id:"method",defaultMessage:"Method"})}),(0,s.jsx)("span",{className:"mr-2 block rounded-full py-1 text-xs font-semibold leading-5",children:[...t].sort((s,t)=>s.value===e.payment?.provider?.type?-1:+(t.value===e.payment?.provider?.type)).map(t=>(0,s.jsx)(M,{enumType:t.value,currentType:e.payment?.provider?.type,label:t.label},t.value))}),(0,s.jsx)("div",{className:"mt-3 text-sm text-text-muted",children:c({id:"delivery_status",defaultMessage:"Status"})}),(0,s.jsx)("span",{className:"mr-2 block rounded-full py-1 text-xs font-semibold leading-5",children:[...d].sort((s,t)=>s.value===e.payment?.status?-1:+(t.value===e.payment?.status)).map(t=>(0,s.jsx)(M,{enumType:t.value,currentType:e.payment?.status,label:t.label,component:"OPEN"===e.payment.status&&"PAID"===t.value&&m(a.IRoleAction.MarkOrderPaid)&&(0,s.jsxs)("button",{id:"pay",type:"button",onClick:h,className:"cursor-pointer my-2 mr-2 inline-flex h-full items-center justify-center rounded-sm border border-transparent bg-accent py-1 px-2 text-xs font-semibold text-text-on-accent shadow-xs hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-focus-ring dark:focus:ring-focus-ring focus:ring-offset-2",children:[(0,s.jsx)("span",{className:"mr-1",children:(0,s.jsx)(j.PlusIcon,{className:"inline-block h-3 w-3 text-white"})}),c({id:"mark_as_paid",defaultMessage:"Mark as Paid"})]})},t.value))})]})]})};var O=e.i(93333);let T=n.gql`
266
+ mutation DeliverOrder($orderId: ID!) {
267
+ deliverOrder(orderId: $orderId) {
268
+ _id
269
+ }
270
+ }
271
+ `,P=({order:e})=>{let{deliveryProviderType:t}=(0,O.default)(),{setModal:d}=(0,b.default)(),{statusTypes:i}=(0,w.default)("OrderDeliveryStatus"),{deliverOrder:n}=(()=>{let[e]=(0,N.useMutation)(T);return{deliverOrder:async({orderId:s})=>e({variables:{orderId:s},refetchQueries:["Order"]})}})(),{formatPrice:c}=(0,f.useFormatPrice)(),{formatMessage:o}=(0,r.useIntl)(),{formatDateTime:u}=(0,I.default)(),{hasRole:m}=(0,C.default)(),h=async()=>{await d((0,s.jsx)(y.default,{buttonText:o({id:"delivered",defaultMessage:"Delivered"}),message:o({id:"mark_as_delivered_message",defaultMessage:"This will change the order delivery status to delivered"}),headerText:o({id:"mark_as_delivered_question",defaultMessage:"Mark as delivered ?"}),onOkClick:async()=>{d(""),await n({orderId:e._id}),l.toast.success(o({id:"order__marked_delivered",defaultMessage:"Order marked as delivered successfully"}))}}))};return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,s.jsx)("h2",{className:"pt-4 text-2xl",children:o({id:"delivery",defaultMessage:"Delivery"})}),e?.delivery?.fee?.currencyCode&&(0,s.jsx)("span",{className:"block",children:c(e.delivery.fee)}),e?.delivery?.delivered&&(0,s.jsx)("span",{className:"font-mono",children:u(e.delivery.delivered,{timeStyle:"short",dateStyle:"medium"})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"mb-5 block font-mono text-xs",children:e?.delivery&&(0,s.jsx)(x.default,{href:`/delivery-provider?deliveryProviderId=${e?.delivery?.provider?._id}`,className:"text-slate-500 dark:text-slate-300 hover:text-slate-800 dark:hover:text-slate-600",children:(0,f.getInterfaceLabel)(e?.delivery?.provider?.interface)})}),(0,s.jsx)("div",{className:"mt-3 text-sm text-text-muted",children:o({id:"method",defaultMessage:"Method"})}),(0,s.jsx)("span",{className:"mr-2 block rounded-full py-1 text-xs font-semibold leading-5",children:[...t].sort((s,t)=>s.value===e?.delivery?.provider?.type?-1:+(t.value===e?.delivery?.provider?.type)).map(t=>(0,s.jsx)(M,{enumType:t.value,currentType:e?.delivery?.provider?.type,label:t.label},t.value))}),(0,s.jsx)("div",{className:"mt-3 text-sm text-text-muted",children:o({id:"status",defaultMessage:"Status"})}),(0,s.jsx)("span",{className:"mr-2 block rounded-full py-1 text-xs font-semibold leading-5",children:[...i].sort((s,t)=>s.value===e?.delivery?.status?-1:+(t.value===e?.delivery?.status)).map(t=>(0,s.jsx)(M,{enumType:t.value,currentType:e?.delivery?.status,label:t.label,component:e?.delivery?.status==="OPEN"&&"DELIVERED"===t.value&&m(a.IRoleAction.MarkOrderDelivered)&&(0,s.jsxs)("button",{id:"deliver",type:"button",onClick:h,className:"my-2 mr-2 inline-flex h-full items-center justify-center rounded-sm border border-slate-300 border-transparent bg-accent py-1 px-2 text-xs font-semibold text-text-on-accent shadow-xs hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-focus-ring dark:focus:ring-focus-ring focus:ring-offset-2",children:[(0,s.jsx)("span",{className:"mr-1",children:(0,s.jsx)(j.PlusIcon,{className:"inline-block h-3 w-3 text-white"})}),o({id:"mark_as_delivered",defaultMessage:"Mark as delivered"})]})},t.value))})]})]})};var D=e.i(64710),A=e.i(49740),$=e.i(91788);let R=$.forwardRef(function({title:e,titleId:s,...t},a){return $.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},t),e?$.createElement("title",{id:s},e):null,$.createElement("path",{d:"M2.879 7.121A3 3 0 0 0 7.5 6.66a2.997 2.997 0 0 0 2.5 1.34 2.997 2.997 0 0 0 2.5-1.34 3 3 0 1 0 4.622-3.78l-.293-.293A2 2 0 0 0 15.415 2H4.585a2 2 0 0 0-1.414.586l-.292.292a3 3 0 0 0 0 4.243ZM3 9.032a4.507 4.507 0 0 0 4.5-.29A4.48 4.48 0 0 0 10 9.5a4.48 4.48 0 0 0 2.5-.758 4.507 4.507 0 0 0 4.5.29V16.5h.25a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75v-3.5a.75.75 0 0 0-.75-.75h-2.5a.75.75 0 0 0-.75.75v3.5a.75.75 0 0 1-.75.75h-4.5a.75.75 0 0 1 0-1.5H3V9.032Z"}))}),S=({order:e})=>{let{formatMessage:t}=(0,r.useIntl)(),a=e?.delivery,l=a?.provider?.type==="PICKUP",d=a?.address||a?.activePickUpLocation?.address||{},i=a?.activePickUpLocation?.name;return(0,s.jsxs)("section",{"aria-labelledby":"addresses-heading",className:"lg:grid lg:grid-cols-2 flex flex-col gap-8",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mb-2 text-xl dark:text-slate-400 flex items-center gap-2",children:[(0,s.jsx)(D.CreditCardIcon,{className:"h-5 w-5"}),t({id:"billing_address",defaultMessage:"Billing address"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"block",children:e?.billingAddress?.firstName&&e?.billingAddress?.lastName?`${e.billingAddress.firstName} ${e.billingAddress.lastName}`:e?.billingAddress?.firstName||e?.billingAddress?.lastName||""}),(0,s.jsx)("span",{className:"block",children:e?.billingAddress?.addressLine}),e?.billingAddress?.addressLine2&&(0,s.jsx)("span",{className:"block",children:e.billingAddress.addressLine2}),(0,s.jsx)("span",{children:e?.billingAddress?.postalCode})," ",(0,s.jsx)("span",{children:e?.billingAddress?.city}),(0,s.jsx)("span",{className:"block",children:e?.country?.name&&(0,s.jsxs)(s.Fragment,{children:[e.country.name," ",(0,s.jsx)("span",{className:"inline-block grayscale hover:grayscale-0 transition-all text-xl",children:e.country.flagEmoji})]})})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mb-2 text-xl dark:text-slate-400 flex items-center gap-2",children:[(0,s.jsx)(A.TruckIcon,{className:"h-5 w-5"}),t({id:"delivery_details",defaultMessage:"Delivery details"})]}),(0,s.jsxs)("div",{children:[l?(0,s.jsxs)("div",{className:"mb-1 flex items-center gap-1",children:[(0,s.jsx)(R,{className:"h-5 w-5 text-gray-500"}),(0,s.jsx)("span",{className:"font-semibold",children:i||t({id:"pickup_location",defaultMessage:"Pickup Location"})})]}):null,(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"block",children:d?.firstName&&d?.lastName?`${d.firstName} ${d.lastName}`:d?.firstName||d?.lastName||""}),d?.company&&(0,s.jsx)("span",{className:"block",children:d.company}),(0,s.jsx)("span",{className:"block",children:d?.addressLine}),d?.addressLine2&&(0,s.jsx)("span",{className:"block",children:d.addressLine2}),(0,s.jsx)("span",{children:d?.postalCode})," ",(0,s.jsx)("span",{children:d?.city}),(0,s.jsxs)("span",{className:"block text-gray-500 text-sm",children:[d?.regionCode," — ",d?.countryCode]})]})]})]})]})};var F=e.i(8918),L=e.i(42469),q=e.i(2194);let U={SYSTEM:"teal",USER:"indigo"},V=({discounts:e})=>{let{formatMessage:t}=(0,r.useIntl)(),{formatPrice:a}=(0,f.useFormatPrice)();return(0,s.jsxs)("div",{className:"flex flex-auto flex-col",children:[(0,s.jsx)("h2",{className:"text-2xl",children:t({id:"discount_information",defaultMessage:"Discounts"})}),(0,s.jsx)("div",{className:"mt-2",children:e?.length?(0,s.jsxs)(F.default,{className:"min-w-full ",children:[(e||[])?.map(e=>(0,s.jsxs)(F.default.Row,{header:!0,children:[(0,s.jsx)(F.default.Cell,{children:t({id:"code",defaultMessage:"Code"})}),(0,s.jsx)(F.default.Cell,{children:t({id:"discount_amount",defaultMessage:"Discount Amount"})})]},e._id)),(e||[])?.map(e=>(0,s.jsx)($.Fragment,{children:(0,s.jsxs)(F.default.Row,{children:[(0,s.jsx)(F.default.Cell,{children:(0,s.jsxs)("div",{className:"flex items-center text-sm text-slate-900",children:[e.code?e.code:"n/a",(0,s.jsx)("span",{className:"mr-2 inline-block rounded-full py-1 text-xs font-semibold leading-5",children:(0,s.jsx)(L.default,{text:e.trigger,color:U[e.trigger],square:!0})})]})}),(0,s.jsx)(F.default.Cell,{children:(0,s.jsx)("div",{className:"flex items-center text-sm text-slate-900",children:a(e.total)})})]})},e._id))]}):(0,s.jsx)(q.default,{message:t({id:"discounts",defaultMessage:"Discounts"})})})]})},B=n.gql`
272
+ mutation ConfirmOrder($orderId: ID!) {
273
+ confirmOrder(orderId: $orderId) {
274
+ _id
275
+ }
276
+ }
277
+ `;var G=e.i(66885),Z=e.i(57986);let Q=({order:e})=>{let{formatMessage:t,locale:a}=(0,r.useIntl)(),{formatDateTime:l}=(0,I.default)();if(!e)return null;let d=e?.status==="OPEN"||!e?.orderNumber;return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex justify-between items-baseline flex-wrap mb-10",children:[(0,s.jsx)("div",{className:"flex items-center justify-between gap-5 flex-wrap",children:(0,s.jsx)("h2",{className:"text-2xl font-medium text-text-primary sm:truncate sm:text-3xl lg:text-4xl xl:text-5xl",children:d?(0,s.jsxs)(s.Fragment,{children:[t({id:"cart",defaultMessage:"Cart"}),` ${e._id}`]}):(0,s.jsxs)(s.Fragment,{children:[t({id:"order_number",defaultMessage:"Order #"}),e?.orderNumber?`${e.orderNumber}`:""]})})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"mr-1 text-text-muted",children:t(d?{id:"cart_created",defaultMessage:"Warenkorb erstellt"}:{id:"order_placed",defaultMessage:"Order placed"})}),d?l(e.created):e?.ordered?l(e.ordered):null]})]}),!d&&(0,s.jsx)(Z.default,{user:e?.user,contact:e?.contact}),d&&e?.user&&(0,s.jsx)("div",{className:"mt-5",children:(0,s.jsx)("span",{className:"text-lg text-text-secondary",children:e.user.profile?.displayName||(e.user.profile?.address?.firstName&&e.user.profile?.address?.lastName?`${e.user.profile.address.firstName} ${e.user.profile.address.lastName}`:e.user.username)||"Guest"})})]})},H=n.gql`
278
+ mutation RejectOrder($orderId: ID!) {
279
+ rejectOrder(orderId: $orderId) {
280
+ _id
281
+ }
282
+ }
283
+ `;var J=e.i(15971),K=e.i(70475);let W=({order:e})=>{let{formatMessage:t}=(0,r.useIntl)(),{setModal:d}=(0,b.default)(),{confirmOrder:i}=(()=>{let[e]=(0,N.useMutation)(B);return{confirmOrder:async({orderId:s})=>e({variables:{orderId:s},refetchQueries:["Order"]})}})(),{rejectOrder:n}=(()=>{let[e]=(0,N.useMutation)(H);return{rejectOrder:async({orderId:s})=>e({variables:{orderId:s},refetchQueries:["Order"]})}})(),{hasRole:c}=(0,C.default)(),{statusTypes:o}=(0,w.default)("OrderStatus");if(!e)return null;let u=e?.status==="OPEN"||!e?.orderNumber,m=async()=>{await d((0,s.jsx)(y.default,{buttonText:t({id:"confirm_order_alert_button",defaultMessage:"Confirm"}),headerText:t({id:"confirm_order_alert_header",defaultMessage:"Confirm order?"}),message:t({id:"confirm_order_alert_message",defaultMessage:"This will mark order as confirmed"}),onOkClick:async()=>{d(""),await i({orderId:e._id}),l.toast.success(t({id:"order_confirmed_success",defaultMessage:"Order confirmed successfully"}))}}))},x=async()=>{await d((0,s.jsx)(J.default,{onCancelClick:async()=>d(""),okText:t({id:"reject_order_alert_button",defaultMessage:"Reject"}),headerText:t({id:"reject_order_alert_header",defaultMessage:"Reject order?"}),onOkClick:async()=>{d(""),await n({orderId:e._id}),l.toast.success(t({id:"order_reject_success",defaultMessage:"Order rejected successfully"}))}}))},f={OPEN:{id:1,content:"created",visible:!0},PENDING:{id:2,content:"ordered",Component:e?.status==="PENDING"&&(0,s.jsxs)(s.Fragment,{children:[c(a.IRoleAction.MarkOrderConfirmed)&&(0,s.jsx)("button",{id:"confirm_order",onClick:m,type:"button",className:"bg-white-300 relative -ml-px inline-flex items-center space-x-2 rounded-md border border-accent bg-accent px-2 py-1 text-sm font-medium text-text-on-accent hover:bg-accent-hover dark:focus:border-slate-400 focus:outline-hidden focus:ring-0 focus:ring-focus-ring",children:t({id:"confirm_order",defaultMessage:"Confirm order"})}),c(a.IRoleAction.MarkOrderRejected)&&(0,s.jsx)("button",{id:"reject_order",onClick:x,type:"button",className:"bg-white-300 relative -ml-px inline-flex items-center space-x-2 rounded-md border border-rose-500 bg-rose-500 px-2 py-1 text-sm font-medium text-white hover:bg-rose-700 focus:border-rose-400 focus:outline-hidden focus:ring-0 focus:ring-rose-400",children:t({id:"reject_order",defaultMessage:"Reject order"})})]}),visible:!0},REJECTED:{id:3,content:"rejected",visible:e?.status==="REJECTED"},CONFIRMED:{id:4,content:"confirmed",visible:e?.status!=="REJECTED"},FULFILLED:{id:5,content:"fulfilled",visible:e?.status!=="REJECTED"}};return(0,s.jsxs)("div",{className:"space-y-4 lg:gap-10 dark:text-slate-200",children:[(0,s.jsx)("div",{children:(0,s.jsx)(Q,{order:e})}),!u&&(0,s.jsx)("div",{className:"mt-10",children:(0,s.jsx)(S,{order:e})}),(0,s.jsxs)("div",{className:"mt-20 lg:grid lg:grid-cols-2 lg:gap-10",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"mb-6 text-xl dark:text-slate-400",children:t({id:"items_purchased",defaultMessage:"Items purchased"})}),(0,s.jsx)("div",{className:"flex gap-5 flex-col",children:e?.items.map(e=>(0,s.jsx)(g,{item:e},e._id))})]}),(0,s.jsx)("div",{children:(0,s.jsx)(v,{order:e})})]}),(0,s.jsx)("div",{className:"mt-20",children:(0,s.jsx)(G.default,{data:e,statusTypes:o,timeline:f})}),!u&&(0,s.jsxs)("div",{className:"mt-10 lg:mt-30 lg:grid lg:grid-cols-2 xl:grid-cols-3 lg:gap-10",children:[(0,s.jsx)(P,{order:e}),(0,s.jsx)(E,{order:e}),(0,s.jsx)(V,{discounts:e?.discounts})]}),(0,s.jsx)(K.default,{slot:"order:tabs",entityId:e._id,children:(t,a,r)=>(0,s.jsx)("div",{className:"mt-10",children:(0,s.jsx)(t,{order:e,entityId:e._id})})})]})},X=n.gql`
284
+ mutation RemoveOrder($orderId: ID!) {
285
+ removeOrder(orderId: $orderId) {
286
+ _id
287
+ }
288
+ }
289
+ `;var Y=e.i(21623),z=e.i(24608);e.s(["default",0,({orderId:e})=>{let{formatMessage:u}=(0,r.useIntl)(),{setModal:x}=(0,b.default)(),{removeOrder:f}=(()=>{let[e]=(0,N.useMutation)(X);return{removeOrder:async({orderId:s})=>e({variables:{orderId:s},refetchQueries:["Order"]})}})(),h=(0,t.useRouter)(),{hasRole:p}=(0,C.default)(),{order:g,loading:v}=(({orderId:e=null})=>{let{customProperties:s}=(0,o.default)(),{data:t,loading:a,error:r}=(0,c.useQuery)(((e="")=>n.gql`
290
+ query Order($orderId: ID!) {
291
+ order(orderId: $orderId) {
292
+ ...OrderDetailFragment
293
+ ${e}
294
+ }
295
+ }
296
+ ${m}
297
+ `)(s?.Order),{skip:!e,variables:{orderId:e}});return{order:t?.order,loading:a,error:r}})({orderId:e}),j=async()=>{await x((0,s.jsx)(J.default,{message:u({id:"delete_order_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this order? "}),onCancelClick:async()=>x(""),onOkClick:async()=>{x(""),await f({orderId:e}),l.toast.success(u({id:"order_deleted",defaultMessage:"Order deleted successfully"})),h.push("/orders")},okText:u({id:"delete_order",defaultMessage:"Delete order"})}))};return(0,s.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,s.jsx)(d.default,{currentPageTitle:g?.orderNumber?`#${g?.orderNumber}`:""}),(0,s.jsx)("div",{className:"items-center flex min-w-full justify-end gap-3 flex-wrap",children:g&&"OPEN"===g.status&&p(a.IRoleAction.UpdateOrder)?(0,s.jsx)(Y.default,{variant:"danger",icon:(0,s.jsx)(z.XMarkIcon,{className:"h-5 w-5"}),text:"Delete",onClick:j}):null}),v?(0,s.jsx)(i.default,{}):(0,s.jsx)(W,{order:g})]})}],71774)},49740,e=>{"use strict";var s=e.i(91788);let t=s.forwardRef(function({title:e,titleId:t,...a},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},a),e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M6.5 3c-1.051 0-2.093.04-3.125.117A1.49 1.49 0 0 0 2 4.607V10.5h9V4.606c0-.771-.59-1.43-1.375-1.489A41.568 41.568 0 0 0 6.5 3ZM2 12v2.5A1.5 1.5 0 0 0 3.5 16h.041a3 3 0 0 1 5.918 0h.791a.75.75 0 0 0 .75-.75V12H2Z"}),s.createElement("path",{d:"M6.5 18a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM13.25 5a.75.75 0 0 0-.75.75v8.514a3.001 3.001 0 0 1 4.893 1.44c.37-.275.61-.719.595-1.227a24.905 24.905 0 0 0-1.784-8.549A1.486 1.486 0 0 0 14.823 5H13.25ZM14.5 18a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}))});e.s(["TruckIcon",0,t],49740)},89974,e=>{"use strict";var s=e.i(91788);let t=s.forwardRef(function({title:e,titleId:t,...a},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},a),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});e.s(["default",0,t])},15361,e=>{"use strict";var s=e.i(89974);e.s(["CheckCircleIcon",()=>s.default])},10833,e=>{"use strict";var s=e.i(91788);let t=s.forwardRef(function({title:e,titleId:t,...a},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},a),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});e.s(["default",0,t])}]);
@@ -0,0 +1,28 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69322,15845,4216,e=>{"use strict";var t,r,i,n,s,o,a=e.i(91788);function l(e,t){let r=t&&t.cache?t.cache:f,i=t&&t.serializer?t.serializer:c;return(t&&t.strategy?t.strategy:function(e,t){var r,i;let n=1===e.length?h:u;return r=t.cache.create(),i=t.serializer,n.bind(this,e,r,i)})(e,{cache:r,serializer:i})}function h(e,t,r,i){let n=null==i||"number"==typeof i||"boolean"==typeof i?i:r(i),s=t.get(n);return void 0===s&&(s=e.call(this,i),t.set(n,s)),s}function u(e,t,r){let i=Array.prototype.slice.call(arguments,3),n=r(i),s=t.get(n);return void 0===s&&(s=e.apply(this,i),t.set(n,s)),s}let c=function(){return JSON.stringify(arguments)};var m=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}};let f={create:function(){return new m}},p={variadic:function(e,t){var r,i;return r=t.cache.create(),i=t.serializer,u.bind(this,e,r,i)},monadic:function(e,t){var r,i;return r=t.cache.create(),i=t.serializer,h.bind(this,e,r,i)}};e.s(["memoize",0,l,"strategies",0,p],15845);let g=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,d=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,b=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,y=/^(@+)?(\+|#+)?[rs]?$/g,E=/(\*)(0+)|(#+)(0+)|(0+)/g,H=/^(0+)$/;function T(e){let t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(y,function(e,r,i){return"string"!=typeof i?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===i?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof i?i.length:0)),""}),t}function B(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function I(e){let t=B(e);return t||{}}let P=((t={})[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG",t),S=((r={})[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag",r);function N(e){return!!(e&&"object"==typeof e&&0===e.type)}function A(e){return!!(e&&"object"==typeof e&&1===e.type)}let D=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,L=/([^\t-\r -\/:-@\[-\^`\{-~\x85\xA0-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u1680\u2000-\u200A\u2010-\u2029\u202F-\u203E\u2041-\u2053\u2055-\u205F\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3000-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]*)/g,F={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},_=RegExp(`^${D.source}*`),v=RegExp(`${D.source}*$`);function R(e,t){return{start:e,end:t}}let M=!!Object.fromEntries,O=!!String.prototype.trimStart,w=!!String.prototype.trimEnd,C=M?Object.fromEntries:function(e){let t={};for(let[r,i]of e)t[r]=i;return t},G=O?function(e){return e.trimStart()}:function(e){return e.replace(_,"")},U=w?function(e){return e.trimEnd()}:function(e){return e.replace(v,"")},x=function(){try{let e=RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");if(e.exec("a ")?.[1]==="a")return e}catch{}return L}();var k=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(0!==this.offset())throw Error("parser can only be used once");if(this.message.length>0){let e=this.message.charCodeAt(0);if(35!==e&&39!==e&&60!==e&&123!==e&&125!==e){let e=function(e){if(0===e.length)return null;let t=1,r=1;for(let i=0;i<e.length;){let n=e.charCodeAt(i);switch(n){case 35:case 39:case 60:case 123:case 125:return null}if(10===n)t++,r=1,i++;else if(r++,n>=55296&&n<=56319&&i+1<e.length){let t=e.charCodeAt(i+1);i+=t>=56320&&t<=57343?2:1}else i++}return{offset:e.length,line:t,column:r}}(this.message);if(e){let t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:R(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,"",!1)}parseMessage(e,t,r){let i=[];for(;!this.isEOF();){let n=this.char();if(123===n){let t=this.parseArgument(e,r);if(t.err)return t;i.push(t.val)}else if(125===n&&e>0)break;else if(35===n&&("plural"===t||"selectordinal"===t)){let e=this.clonePosition();this.bump(),i.push({type:7,location:R(e,this.clonePosition())})}else if(60!==n||this.ignoreTag||47!==this.peek())if(60===n&&!this.ignoreTag&&j(this.peek()||0)){let r=this.parseTag(e,t);if(r.err)return r;i.push(r.val)}else{let r=this.parseLiteral(e,t);if(r.err)return r;i.push(r.val)}else if(!r)return this.error(26,R(this.clonePosition(),this.clonePosition()));else break}return{val:i,err:null}}parseTag(e,t){let r=this.clonePosition();this.bump();let i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:0,value:`<${i}/>`,location:R(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(23,R(r,this.clonePosition()));{let n=this.parseMessage(e+1,t,!0);if(n.err)return n;let s=n.val,o=this.clonePosition();if(!this.bumpIf("</"))return this.error(27,R(r,this.clonePosition()));{if(this.isEOF()||!j(this.char()))return this.error(23,R(o,this.clonePosition()));let e=this.clonePosition();return i!==this.parseTagName()?this.error(26,R(e,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:8,value:i,children:s,location:R(r,this.clonePosition())},err:null}:this.error(23,R(o,this.clonePosition()))}}}parseTagName(){var e;let t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())}parseLiteral(e,t){let r=this.clonePosition(),i="";for(;;){let r=this.tryParseQuote(t);if(r){i+=r;continue}let n=this.tryParseUnquoted(e,t);if(n){i+=n;continue}let s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}return{val:{type:0,value:i,location:R(r,this.clonePosition())},err:null}}tryParseLeftAngleBracket(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(j(e=this.peek()||0)||47===e)?null:(this.bump(),"<")}tryParseQuote(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(39===e)if(39===this.peek())t.push(39),this.bump();else{this.bump();break}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),String.fromCodePoint(r))}parseArgument(e,t){let r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,R(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(2,R(r,this.clonePosition()));let i=this.parseIdentifierIfPossible().value;if(!i)return this.error(3,R(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,R(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:i,location:R(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,R(r,this.clonePosition()));return this.parseArgumentOptions(e,t,i,r);default:return this.error(3,R(r,this.clonePosition()))}}parseIdentifierIfPossible(){var e;let t=this.clonePosition(),r=this.offset(),i=(e=this.message,x.lastIndex=r,x.exec(e)[1]??""),n=r+i.length;return this.bumpTo(n),{value:i,location:R(t,this.clonePosition())}}parseArgumentOptions(e,t,r,i){let n=this.clonePosition(),s=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(s){case"":return this.error(4,R(n,o));case"number":case"date":case"time":{this.bumpSpace();let e=null;if(this.bumpIf(",")){this.bumpSpace();let t=this.clonePosition(),r=this.parseSimpleArgStyleIfPossible();if(r.err)return r;let i=U(r.val);if(0===i.length)return this.error(6,R(this.clonePosition(),this.clonePosition()));e={style:i,styleLocation:R(t,this.clonePosition())}}let t=this.tryParseArgumentClose(i);if(t.err)return t;let n=R(i,this.clonePosition());if(e&&e.style.startsWith("::")){let t=G(e.style.slice(2));if("number"===s){let i=this.parseNumberSkeletonFromString(t,e.styleLocation);if(i.err)return i;return{val:{type:2,value:r,location:n,style:i.val},err:null}}{let i;if(0===t.length)return this.error(10,n);let o=t;return this.locale&&(o=function(e,t){let r="";for(let i=0;i<e.length;i++){let n=e.charAt(i);if("j"===n){let s=0;for(;i+1<e.length&&e.charAt(i+1)===n;)s++,i++;let o=1+(1&s),a=s<2?1:3+(s>>1),l=function(e){let t,r=e.hourCycle;if(void 0===r&&(r=e.getHourCycles?.()[0]??e.hourCycles?.[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}let i=e.language;return"root"!==i&&(t=e.maximize().region),(F[`${i}-${t}`]||F[t||""]||F[i||""]||F[`${i}-001`]||F["001"])[0].charAt(0)}(t);for(("H"==l||"k"==l)&&(a=0);a-- >0;)r+="a";for(;o-- >0;)r=l+r}else"J"===n?r+="H":r+=n}return r}(t,this.locale)),{val:{type:"date"===s?3:4,value:r,location:n,style:{type:1,pattern:o,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},o.replace(g,e=>{let t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-3];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-3];break;case"a":i.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}}},err:null}}}return{val:{type:"number"===s?2:"date"===s?3:4,value:r,location:n,style:e?.style??null},err:null}}case"plural":case"selectordinal":case"select":{let n=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(12,R(n,{...n}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),a=0;if("select"!==s&&"offset"===o.value){if(!this.bumpIf(":"))return this.error(13,R(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),a=e.val}let l=this.tryParsePluralOrSelectOptions(e,s,t,o);if(l.err)return l;let h=this.tryParseArgumentClose(i);if(h.err)return h;let u=R(i,this.clonePosition());if("select"===s)return{val:{type:5,value:r,options:C(l.val),location:u},err:null};return{val:{type:6,value:r,options:C(l.val),offset:a,pluralType:"plural"===s?"cardinal":"ordinal",location:u},err:null}}default:return this.error(5,R(n,o))}}tryParseArgumentClose(e){return this.isEOF()||125!==this.char()?this.error(1,R(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil("'"))return this.error(11,R(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");let t=e.split(d).filter(e=>e.length>0),r=[];for(let e of t){let t=e.split("/");if(0===t.length)throw Error("Invalid number skeleton");let[i,...n]=t;for(let e of n)if(0===e.length)throw Error("Invalid number skeleton");r.push({stem:i,options:n})}return r}(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){let t={};for(let r of e){switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t={...t,notation:"scientific",...r.options.reduce((e,t)=>({...e,...I(t)}),{})};continue;case"engineering":t={...t,notation:"engineering",...r.options.reduce((e,t)=>({...e,...I(t)}),{})};continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(E,function(e,r,i,n,s,o){if(r)t.minimumIntegerDigits=i.length;else if(n&&s)throw Error("We currently do not support maximum integer digits");else if(o)throw Error("We currently do not support exact integer digits");return""});continue}if(H.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(b.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(b,function(e,r,i,n,s,o){return"*"===i?t.minimumFractionDigits=r.length:n&&"#"===n[0]?t.maximumFractionDigits=n.length:s&&o?(t.minimumFractionDigits=s.length,t.maximumFractionDigits=s.length+o.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});let e=r.options[0];"w"===e?t={...t,trailingZeroDisplay:"stripIfInteger"}:e&&(t={...t,...T(e)});continue}if(y.test(r.stem)){t={...t,...T(r.stem)};continue}let e=B(r.stem);e&&(t={...t,...e});let i=function(e){let t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){let r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!H.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);i&&(t={...t,...i})}return t}(r):{}},err:null}}tryParsePluralOrSelectOptions(e,t,r,i){let n=!1,s=[],o=new Set,{value:a,location:l}=i;for(;;){if(0===a.length){let e=this.clonePosition();if("select"!==t&&this.bumpIf("=")){let t=this.tryParseDecimalInteger(16,19);if(t.err)return t;l=R(e,this.clonePosition()),a=this.message.slice(e.offset,this.offset())}else break}if(o.has(a))return this.error("select"===t?21:20,l);"other"===a&&(n=!0),this.bumpSpace();let i=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?17:18,R(this.clonePosition(),this.clonePosition()));let h=this.parseMessage(e+1,t,r);if(h.err)return h;let u=this.tryParseArgumentClose(i);if(u.err)return u;s.push([a,{value:h.val,location:R(i,this.clonePosition())}]),o.add(a),this.bumpSpace(),{value:a,location:l}=this.parseIdentifierIfPossible()}return 0===s.length?this.error("select"===t?15:16,R(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(22,R(this.clonePosition(),this.clonePosition())):{val:s,err:null}}tryParseDecimalInteger(e,t){let r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);let n=!1,s=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)n=!0,s=10*s+(e-48),this.bump();else break}let o=R(i,this.clonePosition());return n?Number.isSafeInteger(s*=r)?{val:s,err:null}:this.error(t,o):this.error(e,o)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");let t=this.message.codePointAt(e);if(void 0===t)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){let t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(var e;!this.isEOF()&&((e=this.char())>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e);)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function j(e){return e>=97&&e<=122||e>=65&&e<=90}function $(e,t={}){let r=new k(e,t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t}).parse();if(r.err){let e=SyntaxError(P[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return t?.captureLocation||function e(t){t.forEach(t=>{if(delete t.location,5===t.type||6===t.type)for(let r in t.options)delete t.options[r].location,e(t.options[r].value);else 2===t.type&&N(t.style)||(3===t.type||4===t.type)&&A(t.style)?delete t.style.location:8===t.type&&e(t.children)})}(r.val),r.val}let V=((i={}).MISSING_VALUE="MISSING_VALUE",i.INVALID_VALUE="INVALID_VALUE",i.MISSING_INTL_API="MISSING_INTL_API",i);var K=class extends Error{constructor(e,t,r){super(e),this.code=t,this.originalMessage=r}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},Z=class extends K{constructor(e,t,r,i){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(r).join('", "')}"`,"INVALID_VALUE",i)}},X=class extends K{constructor(e,t,r){super(`Value for "${e}" must be of type ${t}`,"INVALID_VALUE",r)}},Y=class extends K{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,"MISSING_VALUE",t)}};function W(e){return"function"==typeof e}function z(e){return{create:()=>({get:t=>e[t],set(t,r){e[t]=r}})}}var J=class e{constructor(t,r=e.defaultLocale,i,n){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(1===t.length)return t[0].value;let r=t.reduce((e,t)=>(e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e),[]);return r.length<=1?r[0]||"":r},this.formatToParts=e=>(function e(t,r,i,n,s,o,a){if(1===t.length&&0===t[0].type)return[{type:0,value:t[0].value}];let l=[];for(let h of t){if(0===h.type){l.push({type:0,value:h.value});continue}if(7===h.type){"number"==typeof o&&l.push({type:0,value:i.getNumberFormat(r).format(o)});continue}let{value:t}=h;if(!(s&&t in s))throw new Y(t,a);let u=s[t];if(1===h.type){u&&"string"!=typeof u&&"number"!=typeof u&&"bigint"!=typeof u||(u="string"==typeof u||"number"==typeof u||"bigint"==typeof u?String(u):""),l.push({type:+("string"!=typeof u),value:u});continue}if(3===h.type){let e="string"==typeof h.style?n.date[h.style]:A(h.style)?h.style.parsedOptions:void 0;l.push({type:0,value:i.getDateTimeFormat(r,e).format(u)});continue}if(4===h.type){let e="string"==typeof h.style?n.time[h.style]:A(h.style)?h.style.parsedOptions:n.time.medium;l.push({type:0,value:i.getDateTimeFormat(r,e).format(u)});continue}if(2===h.type){let e="string"==typeof h.style?n.number[h.style]:N(h.style)?h.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if("bigint"==typeof u){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);u*=BigInt(t)}else u*=t}l.push({type:0,value:i.getNumberFormat(r,e).format(u)});continue}if(8===h.type){let{children:t,value:u}=h,c=s[u];if(!W(c))throw new X(u,"function",a);let m=c(e(t,r,i,n,s,o).map(e=>e.value));Array.isArray(m)||(m=[m]),l.push(...m.map(e=>({type:+("string"!=typeof e),value:e})))}if(5===h.type){let t=u,o=(Object.prototype.hasOwnProperty.call(h.options,t)?h.options[t]:void 0)||h.options.other;if(!o)throw new Z(h.value,u,Object.keys(h.options),a);l.push(...e(o.value,r,i,n,s));continue}if(6===h.type){let t=`=${u}`,o=Object.prototype.hasOwnProperty.call(h.options,t)?h.options[t]:void 0;if(!o){if(!Intl.PluralRules)throw new K(`Intl.PluralRules is not available in this environment.
2
+ Try polyfilling it using "@formatjs/intl-pluralrules"
3
+ `,"MISSING_INTL_API",a);let e="bigint"==typeof u?Number(u):u,t=i.getPluralRules(r,{type:h.pluralType}).select(e-(h.offset||0));o=(Object.prototype.hasOwnProperty.call(h.options,t)?h.options[t]:void 0)||h.options.other}if(!o)throw new Z(h.value,u,Object.keys(h.options),a);let c="bigint"==typeof u?Number(u):u;l.push(...e(o.value,r,i,n,s,c-(h.offset||0)));continue}}return l.length<2?l:l.reduce((e,t)=>{let r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e},[])})(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");const{...r}=n||{};this.ast=e.__parse(t,{...r,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce((r,i)=>{var n,s;return r[i]=(n=e[i],(s=t[i])?{...n,...s,...Object.keys(n).reduce((e,t)=>(e[t]={...n[t],...s[t]},e),{})}:n),r},{...e}):e}(e.formats,i),this.formatters=n&&n.formatters||function(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:l((...e)=>new Intl.NumberFormat(...e),{cache:z(e.number),strategy:p.variadic}),getDateTimeFormat:l((...e)=>new Intl.DateTimeFormat(...e),{cache:z(e.dateTime),strategy:p.variadic}),getPluralRules:l((...e)=>new Intl.PluralRules(...e),{cache:z(e.pluralRules),strategy:p.variadic})}}(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(void 0===Intl.Locale)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])}}static{this.__parse=$}static{this.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}};let q=((n={}).FORMAT_ERROR="FORMAT_ERROR",n.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",n.INVALID_CONFIG="INVALID_CONFIG",n.MISSING_DATA="MISSING_DATA",n.MISSING_TRANSLATION="MISSING_TRANSLATION",n);var Q=class e extends Error{constructor(t,r,i){const n=i?i instanceof Error?i:Error(String(i)):void 0;super(`[@formatjs/intl Error ${t}] ${r}
4
+ ${n?`
5
+ ${n.message}
6
+ ${n.stack}`:""}`),this.code=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}},ee=class extends Q{constructor(e,t){super("UNSUPPORTED_FORMATTER",e,t)}},et=class extends Q{constructor(e,t){super("INVALID_CONFIG",e,t)}},er=class extends Q{constructor(e,t){super("MISSING_DATA",e,t)}},ei=class extends Q{constructor(e,t,r){super("FORMAT_ERROR",`${e}
7
+ Locale: ${t}
8
+ `,r),this.locale=t}},en=class extends ei{constructor(e,t,r,i){super(`${e}
9
+ MessageID: ${r?.id}
10
+ Default Message: ${r?.defaultMessage}
11
+ Description: ${r?.description}
12
+ `,t,i),this.descriptor=r,this.locale=t}},es=class extends Q{constructor(e,t){super("MISSING_TRANSLATION",`Missing message: "${e.id}" for locale "${t}", using ${e.defaultMessage?`default message (${"string"==typeof e.defaultMessage?e.defaultMessage:e.defaultMessage.map(e=>e.value??JSON.stringify(e)).join()})`:"id"} as fallback.`),this.descriptor=e}};function eo(e,t,r={}){return t.reduce((t,i)=>(i in e?t[i]=e[i]:i in r&&(t[i]=r[i]),t),{})}let ea={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:e=>{},onWarn:e=>{}};function el(){return{dateTime:{},number:{},message:{},duration:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function eh(e){return{create:()=>({get:t=>e[t],set(t,r){e[t]=r}})}}function eu(e,t,r,i){let n,s=e&&e[t];if(s&&(n=s[r]),n)return n;i(new ee(`No ${t} format named: ${r}`))}function ec(e,t){return Object.keys(e).reduce((r,i)=>(r[i]={timeZone:t,...e[i]},r),{})}function em(e,t){return Object.keys({...e,...t}).reduce((r,i)=>(r[i]={...e[i],...t[i]},r),{})}function ef(e,t){if(!t)return e;let r=J.formats;return{...r,...e,date:em(ec(r.date,t),ec(e.date||{},t)),time:em(ec(r.time,t),ec(e.time||{},t))}}let ep=({locale:e,formats:t,messages:r,defaultLocale:i,defaultFormats:n,fallbackOnEmptyString:s,onError:o,timeZone:a,defaultRichTextElements:l},h,u={id:""},c,m)=>{let{id:f,defaultMessage:p}=u;f||function(e,t,r=Error){if(!e)throw new r(t)}(!1,`[@formatjs/intl] An \`id\` must be provided to format a message. You can either:
13
+ 1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)
14
+ or [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR
15
+ 2. Configure your \`eslint\` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)
16
+ to autofix this issue${function(e){let{defaultMessage:t}=e;try{return void 0!==t?`
17
+ Default Message: ${"string"==typeof t?t:JSON.stringify(t)}`:`
18
+ Message Descriptor: ${JSON.stringify(e)}`}catch{return""}}(u)}`);let g=String(f),d=r&&Object.prototype.hasOwnProperty.call(r,g)&&r[g];if(Array.isArray(d)&&1===d.length&&d[0].type===S.literal)return d[0].value;if(c={...l,...c},t=ef(t,a),n=ef(n,a),!d){if(!1===s&&""===d)return d;if((!p||e&&e.toLowerCase()!==i.toLowerCase())&&o(new es(u,e)),p)try{return h.getMessageFormat(p,i,n,m).format(c)}catch(t){return o(new en(`Error formatting default message for: "${g}", rendering default message verbatim`,e,u,t)),"string"==typeof p?p:g}return g}try{return h.getMessageFormat(d,e,t,{formatters:h,...m}).format(c)}catch(t){o(new en(`Error formatting message: "${g}", using ${p?"default message":"id"} as fallback.`,e,u,t))}if(p)try{return h.getMessageFormat(p,i,n,m).format(c)}catch(t){o(new en(`Error formatting the default message for: "${g}", rendering message verbatim`,e,u,t))}return"string"==typeof d?d:"string"==typeof p?p:g},eg=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function ed({locale:e,formats:t,onError:r,timeZone:i},n,s,o={}){let{format:a}=o,l=eo(o,eg,{...i&&{timeZone:i},...a&&eu(t,n,a,r)});return"time"!==n||l.hour||l.minute||l.second||l.timeStyle||l.dateStyle||(l={...l,hour:"numeric",minute:"numeric"}),s(e,l)}function eb(e,t,r,i={}){let n="string"==typeof r?new Date(r||0):r;try{return ed(e,"date",t,i).format(n)}catch(t){e.onError(new ei("Error formatting date.",e.locale,t))}return String(n)}function ey(e,t,r,i={}){let n="string"==typeof r?new Date(r||0):r;try{return ed(e,"time",t,i).format(n)}catch(t){e.onError(new ei("Error formatting time.",e.locale,t))}return String(n)}function eE(e,t,r,i,n={}){let s="string"==typeof r?new Date(r||0):r,o="string"==typeof i?new Date(i||0):i;try{return ed(e,"dateTimeRange",t,n).formatRange(s,o)}catch(t){e.onError(new ei("Error formatting date time range.",e.locale,t))}return String(s)}function eH(e,t,r,i={}){let n="string"==typeof r?new Date(r||0):r;try{return ed(e,"date",t,i).formatToParts(n)}catch(t){e.onError(new ei("Error formatting date.",e.locale,t))}return[]}function eT(e,t,r,i={}){let n="string"==typeof r?new Date(r||0):r;try{return ed(e,"time",t,i).formatToParts(n)}catch(t){e.onError(new ei("Error formatting time.",e.locale,t))}return[]}let eB=["style","numberingSystem","years","yearsDisplay","months","monthsDisplay","weeks","weeksDisplay","days","daysDisplay","hours","hoursDisplay","minutes","minutesDisplay","seconds","secondsDisplay","milliseconds","millisecondsDisplay","microseconds","microsecondsDisplay","nanoseconds","nanosecondsDisplay","fractionalDigits"];function eI({locale:e,formats:t,onError:r},i,n){if(!Intl.DurationFormat)return void r(new K('Intl.DurationFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-durationformat"',V.MISSING_INTL_API));let{format:s}=n;return i(e,eo(n,eB,s&&eu(t,"duration",s,r)||{}))}function eP(e,t,r,i={}){try{return eI(e,t,i)?.format(r)??""}catch(t){e.onError(new ei("Error formatting duration.",e.locale,t))}return""}function eS(e,t,r,i={}){try{return eI(e,t,i)?.formatToParts(r)??[]}catch(t){e.onError(new ei("Error formatting duration.",e.locale,t))}return[]}let eN=["style","type","fallback","languageDisplay"];function eA({locale:e,onError:t},r,i,n){Intl.DisplayNames||t(new K(`Intl.DisplayNames is not available in this environment.
19
+ Try polyfilling it using "@formatjs/intl-displaynames"
20
+ `,V.MISSING_INTL_API));let s=eo(n,eN);try{return r(e,s).of(i)}catch(r){t(new ei("Error formatting display name.",e,r))}}let eD=["type","style"],eL=Date.now();function eF(e,t,r,i={}){let n=e_(e,t,r,i).reduce((e,t)=>{let r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e},[]);return 1===n.length?n[0]:0===n.length?"":n}function e_({locale:e,onError:t},r,i,n={}){Intl.ListFormat||t(new K(`Intl.ListFormat is not available in this environment.
21
+ Try polyfilling it using "@formatjs/intl-listformat"
22
+ `,V.MISSING_INTL_API));let s=eo(n,eD);try{let t={},n=Array.from(i).map((e,r)=>{if("object"==typeof e&&null!==e){let i=`${eL}_${r}_${eL}`;return t[i]=e,i}return String(e)});return r(e,s).formatToParts(n).map(e=>"literal"===e.type?e:{...e,value:t[e.value]||e.value})}catch(r){t(new ei("Error formatting list.",e,r))}return i}let ev=["type"];function eR({locale:e,onError:t},r,i,n={}){Intl.PluralRules||t(new K(`Intl.PluralRules is not available in this environment.
23
+ Try polyfilling it using "@formatjs/intl-pluralrules"
24
+ `,V.MISSING_INTL_API));let s=eo(n,ev);try{return r(e,s).select(i)}catch(r){t(new ei("Error formatting plural.",e,r))}return"other"}let eM=["numeric","style"];function eO(e,t,r,i,n={}){i||(i="second"),Intl.RelativeTimeFormat||e.onError(new K(`Intl.RelativeTimeFormat is not available in this environment.
25
+ Try polyfilling it using "@formatjs/intl-relativetimeformat"
26
+ `,V.MISSING_INTL_API));try{return(function({locale:e,formats:t,onError:r},i,n={}){let{format:s}=n;return i(e,eo(n,eM,!!s&&eu(t,"relative",s,r)||{}))})(e,t,n).format(r,i)}catch(t){e.onError(new ei("Error formatting relative time.",e.locale,t))}return String(r)}let ew=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function eC({locale:e,formats:t,onError:r},i,n={}){let{format:s}=n;return i(e,eo(n,ew,s&&eu(t,"number",s,r)||{}))}function eG(e,t,r,i={}){try{return eC(e,t,i).format(r)}catch(t){e.onError(new ei("Error formatting number.",e.locale,t))}return String(r)}function eU(e,t,r,i={}){try{return eC(e,t,i).formatToParts(r)}catch(t){e.onError(new ei("Error formatting number.",e.locale,t))}return[]}function ex(e,t){var r;let i=function(e=el()){let t=Intl.RelativeTimeFormat,r=Intl.ListFormat,i=Intl.DisplayNames,n=l((...e)=>new Intl.DateTimeFormat(...e),{cache:eh(e.dateTime),strategy:p.variadic}),s=l((...e)=>new Intl.NumberFormat(...e),{cache:eh(e.number),strategy:p.variadic}),o=l((...e)=>new Intl.PluralRules(...e),{cache:eh(e.pluralRules),strategy:p.variadic});return{getDateTimeFormat:n,getNumberFormat:s,getMessageFormat:l((e,t,r,i)=>new J(e,t,r,{formatters:{getNumberFormat:s,getDateTimeFormat:n,getPluralRules:o},...i}),{cache:eh(e.message),strategy:p.variadic}),getDurationFormat:l((...e)=>new Intl.DurationFormat(...e),{cache:eh(e.duration),strategy:p.variadic}),getRelativeTimeFormat:l((...e)=>new t(...e),{cache:eh(e.relativeTime),strategy:p.variadic}),getPluralRules:o,getListFormat:l((...e)=>new r(...e),{cache:eh(e.list),strategy:p.variadic}),getDisplayNames:l((...e)=>new i(...e),{cache:eh(e.displayNames),strategy:p.variadic})}}(t),n={...ea,...e},{locale:s,defaultLocale:o,onError:a}=n;return s?!Intl.NumberFormat.supportedLocalesOf(s).length&&a?a(new er(`Missing locale data for locale: "${s}" in Intl.NumberFormat. Using default locale: "${o}" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details`)):!Intl.DateTimeFormat.supportedLocalesOf(s).length&&a&&a(new er(`Missing locale data for locale: "${s}" in Intl.DateTimeFormat. Using default locale: "${o}" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details`)):(a&&a(new et(`"locale" was not configured, using "${o}" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details`)),n.locale=n.defaultLocale||"en"),n.onWarn&&n.defaultRichTextElements&&"string"==typeof(r=n.messages||{})[Object.keys(r)[0]]&&n.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
27
+ Please consider using "@formatjs/cli" to pre-compile your messages for performance.
28
+ For more details see https://formatjs.github.io/docs/getting-started/message-distribution`),{...n,formatters:i,formatNumber:eG.bind(null,n,i.getNumberFormat),formatNumberToParts:eU.bind(null,n,i.getNumberFormat),formatDuration:eP.bind(null,n,i.getDurationFormat),formatDurationToParts:eS.bind(null,n,i.getDurationFormat),formatRelativeTime:eO.bind(null,n,i.getRelativeTimeFormat),formatDate:eb.bind(null,n,i.getDateTimeFormat),formatDateToParts:eH.bind(null,n,i.getDateTimeFormat),formatTime:ey.bind(null,n,i.getDateTimeFormat),formatDateTimeRange:eE.bind(null,n,i.getDateTimeFormat),formatTimeToParts:eT.bind(null,n,i.getDateTimeFormat),formatPlural:eR.bind(null,n,i.getPluralRules),formatMessage:ep.bind(null,n,i),$t:ep.bind(null,n,i),formatList:eF.bind(null,n,i.getListFormat),formatListToParts:e_.bind(null,n,i.getListFormat),formatDisplayName:eA.bind(null,n,i.getDisplayNames)}}e.s(["DEFAULT_INTL_CONFIG",0,ea,"IntlError",0,Q,"IntlErrorCode",0,q,"InvalidConfigError",0,et,"MessageFormatError",0,en,"MissingDataError",0,er,"MissingTranslationError",0,es,"UnsupportedFormatterError",0,ee,"createIntl",0,ex,"createIntlCache",0,el,"defineMessages",0,function(e,t){return e},"formatMessage",0,ep],4216);var ek=e.i(91398);function ej(e,t,r=Error){if(!e)throw new r(t)}function e$(e){ej(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}let eV={...ea,textComponent:a.Fragment},eK=e=>a.Children.toArray(e).map((e,t)=>a.isValidElement(e)?(0,ek.jsx)(a.Fragment,{children:e},t):e);function eZ(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),i=Object.keys(t),n=r.length;if(i.length!==n)return!1;for(var s=0;s<n;s++){var o=r[s];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}let eX=a.createContext(null),eY=eX.Provider;function eW(){let e=a.useContext(eX);return e$(e),e}var ez=((s=ez||{}).formatDate="FormattedDate",s.formatTime="FormattedTime",s.formatNumber="FormattedNumber",s.formatList="FormattedList",s.formatDuration="FormattedDuration",s.formatDisplayName="FormattedDisplayName",s),eJ=((o=eJ||{}).formatDate="FormattedDateParts",o.formatTime="FormattedTimeParts",o.formatNumber="FormattedNumberParts",o.formatList="FormattedListParts",o);let eq=e=>{let t=eW(),{value:r,children:i,...n}=e;return i(t.formatNumberToParts(r,n))};eq.displayName="FormattedNumberParts";let eQ=e=>{let t=eW(),{value:r,children:i,...n}=e;return i(t.formatDurationToParts(r,n))};eQ.displayName="FormattedDurationParts";let e0=e=>{let t=eW(),{value:r,children:i,...n}=e;return i(t.formatListToParts(r,n))};function e1(e){let t=t=>{let r=eW(),{value:i,children:n,...s}=t,o="string"==typeof i?new Date(i||0):i;return n("formatDate"===e?r.formatDateToParts(o,s):r.formatTimeToParts(o,s))};return t.displayName=eJ[e],t}function e2(e){let t=t=>{let r=eW(),{value:i,children:n,...s}=t,o=r[e](i,s);if("function"==typeof n)return n(o);let l=r.textComponent||a.Fragment;return(0,ek.jsx)(l,{children:o})};return t.displayName=ez[e],t}function e3(e){return e?Object.keys(e).reduce((t,r)=>{let i=e[r];return t[r]=W(i)?function(e){return i(eK(e))}:i,t},{}):e}e0.displayName="FormattedListParts";let e5=(e,t,r,i,...n)=>{let s=ep(e,t,r,e3(i),...n);return Array.isArray(s)?eK(s):s},e6=({defaultRichTextElements:e,...t},r)=>{let i=e3(e),n=ex({...eV,...t,defaultRichTextElements:i},r),s={locale:n.locale,timeZone:n.timeZone,fallbackOnEmptyString:n.fallbackOnEmptyString,formats:n.formats,defaultLocale:n.defaultLocale,defaultFormats:n.defaultFormats,messages:n.messages,onError:n.onError,defaultRichTextElements:i};return{...n,formatMessage:e5.bind(null,s,n.formatters),$t:e5.bind(null,s,n.formatters)}},e4=e=>{let t=eW(),{from:r,to:i,children:n,...s}=e,o=t.formatDateTimeRange(r,i,s);if("function"==typeof n)return n(o);let l=t.textComponent||a.Fragment;return(0,ek.jsx)(l,{children:o})};function e8(e){let{formatMessage:t,textComponent:r=a.Fragment}=eW(),{id:i,description:n,defaultMessage:s,values:o,children:l,tagName:h=r,ignoreTag:u}=e,c=t({id:i,description:n,defaultMessage:s},o,{ignoreTag:u});return"function"==typeof l?l(Array.isArray(c)?c:[c]):h?(0,ek.jsx)(h,{children:c}):(0,ek.jsx)(ek.Fragment,{children:c})}e4.displayName="FormattedDateTimeRange",e8.displayName="FormattedMessage";let e9=a.memo(e8,function(e,t){let{values:r,...i}=e,{values:n,...s}=t;return eZ(n,r)&&eZ(i,s)});e9.displayName="MemoizedFormattedMessage";let e7=e=>{let{formatPlural:t,textComponent:r}=eW(),{value:i,other:n,children:s}=e,o=e[t(i,e)]||n;return"function"==typeof s?s(o):r?(0,ek.jsx)(r,{children:o}):o};function te(e){var t;let r=a.useRef(el()),i=a.useRef(void 0),n=a.useRef(void 0),s={};for(let t in e)void 0!==e[t]&&(s[t]=e[t]);let o={locale:(t={...eV,...s}).locale,timeZone:t.timeZone,fallbackOnEmptyString:t.fallbackOnEmptyString,formats:t.formats,textComponent:t.textComponent,messages:t.messages,defaultLocale:t.defaultLocale,defaultFormats:t.defaultFormats,onError:t.onError,onWarn:t.onWarn,wrapRichTextChunksInFragment:t.wrapRichTextChunksInFragment,defaultRichTextElements:t.defaultRichTextElements};return i.current&&eZ(i.current,o)||(i.current=o,n.current=e6(o,r.current)),e$(n.current),(0,ek.jsx)(eY,{value:n.current,children:e.children})}function tt(e){let t=Math.abs(e);return t<60?"second":t<3600?"minute":t<86400?"hour":"day"}function tr(e){switch(e){case"second":return 1;case"minute":return 60;case"hour":return 3600;default:return 86400}}e7.displayName="FormattedPlural",te.displayName="IntlProvider";let ti=["second","minute","hour"];function tn(e="second"){return ti.indexOf(e)>-1}let ts=e=>{let{formatRelativeTime:t,textComponent:r}=eW(),{children:i,value:n,unit:s,...o}=e,a=t(n||0,s,o);return"function"==typeof i?i(a):r?(0,ek.jsx)(r,{children:a}):(0,ek.jsx)(ek.Fragment,{children:a})},to=({value:e=0,unit:t="second",updateIntervalInSeconds:r,...i})=>{ej(!r||!!(r&&tn(t)),"Cannot schedule update with unit longer than hour");let[n,s]=a.useState(),[o,l]=a.useState(0),[h,u]=a.useState(0),c=a.useRef(void 0);(t!==n||e!==o)&&(l(e||0),s(t),u(tn(t)?function(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return 60*e;default:return 3600*e}}(e,t):0)),a.useEffect(()=>{function e(){clearTimeout(c.current)}if(e(),!r||!tn(t))return e;let i=h-r,n=tt(i);if("day"===n)return e;let s=tr(n),o=i-i%s,a=o>=h?o-s:o,l=Math.abs(a-h);return h!==a&&(c.current=setTimeout(()=>u(a),1e3*l)),e},[h,r,t]);let m=e||0,f=t;if(tn(t)&&"number"==typeof h&&r){let e=tr(f=tt(h));m=Math.round(h/e)}return(0,ek.jsx)(ts,{value:m,unit:f,...i})};to.displayName="FormattedRelativeTime";let ta=e2("formatDate"),tl=e2("formatTime"),th=e2("formatNumber"),tu=e2("formatDuration"),tc=e2("formatList"),tm=e2("formatDisplayName"),tf=e1("formatDate"),tp=e1("formatTime");e.s(["FormattedDate",0,ta,"FormattedDateParts",0,tf,"FormattedDateTimeRange",0,e4,"FormattedDisplayName",0,tm,"FormattedDuration",0,tu,"FormattedDurationParts",0,eQ,"FormattedList",0,tc,"FormattedListParts",0,e0,"FormattedMessage",0,e9,"FormattedNumber",0,th,"FormattedNumberParts",0,eq,"FormattedPlural",0,e7,"FormattedRelativeTime",0,to,"FormattedTime",0,tl,"FormattedTimeParts",0,tp,"IntlContext",0,eX,"IntlProvider",0,te,"RawIntlProvider",0,eY,"createIntl",0,e6,"defineMessage",0,function(e,t){return e},"useIntl",0,eW],69322)}]);