@unchainedshop/admin-ui 5.0.0-alpha.6 → 5.0.0-alpha.8
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.
- package/README.md +27 -19
- package/dist/chunk-2ARWAOZW.js +17 -0
- package/dist/chunk-6UGLNLJG.js +44 -0
- package/dist/{chunk-UXG7EYHC.js → chunk-6ZZIMVID.js} +1 -1
- package/dist/{chunk-6TXD4TA7.js → chunk-A3WBMBUF.js} +5 -84
- package/dist/{chunk-45H2WVIC.js → chunk-COV7BREX.js} +0 -1
- package/dist/{chunk-UFYR5WZT.js → chunk-GY2DRQGW.js} +2 -1
- package/dist/{chunk-QNLGYFV7.js → chunk-IYKPRAWC.js} +4 -0
- package/dist/{chunk-BGCKJQGS.js → chunk-JAVEZY3Q.js} +22 -15
- package/dist/{chunk-RHUFQVKL.js → chunk-QVKXUZEC.js} +1 -1
- package/dist/chunk-RORNAN2J.js +12 -0
- package/dist/{chunk-YSKZE2KN.js → chunk-SDA2A6TP.js} +37 -24
- package/dist/{chunk-4VNS5WPM.js → chunk-WPLOTFGW.js} +7 -8
- package/dist/components/ui/Tag/TagInput.d.ts +10 -5
- package/dist/components/ui/Tag/TagInput.d.ts.map +1 -1
- package/dist/components/ui/form/ChoicesField.d.ts.map +1 -1
- package/dist/components/ui/form/TagInputField.d.ts +2 -1
- package/dist/components/ui/form/TagInputField.d.ts.map +1 -1
- package/dist/components/ui/index.d.ts +2 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/form.js +1071 -2806
- package/dist/gql/operation-types.d.ts +13063 -0
- package/dist/gql/operation-types.d.ts.map +1 -0
- package/dist/gql/schema-types.d.ts +3821 -0
- package/dist/gql/schema-types.d.ts.map +1 -0
- package/dist/gql/types.d.ts +2 -17208
- package/dist/gql/types.d.ts.map +1 -1
- package/dist/hooks.js +3 -3
- package/dist/modal.js +11 -6
- package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -1
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -1
- package/dist/modules/accounts.js +220 -64
- package/dist/modules/assortment.js +10 -5
- package/dist/modules/common/components/MediaAvatar.d.ts +6 -0
- package/dist/modules/common/components/MediaAvatar.d.ts.map +1 -0
- package/dist/modules/common/components/Table.d.ts +25 -0
- package/dist/modules/common/components/Table.d.ts.map +1 -0
- package/dist/modules/common/components/TableCell.d.ts +12 -0
- package/dist/modules/common/components/TableCell.d.ts.map +1 -0
- package/dist/modules/common/components/TableRow.d.ts +10 -0
- package/dist/modules/common/components/TableRow.d.ts.map +1 -0
- package/dist/modules/common/hooks/useApp.d.ts +1 -1
- package/dist/modules/common/hooks/useBulkResultHandler.d.ts +8 -0
- package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +1 -0
- package/dist/modules/common/hooks/useBulkSelection.d.ts +12 -0
- package/dist/modules/common/hooks/useBulkSelection.d.ts.map +1 -0
- package/dist/modules/common/hooks/useScrollRestoration.d.ts +8 -0
- package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +1 -0
- package/dist/modules/common/hooks/useShopInfo.d.ts +13 -13
- package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -1
- package/dist/modules/common/utils/useFormatDateTime.d.ts +10 -1
- package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -1
- package/dist/modules/country/hooks/useCountries.d.ts +4 -4
- package/dist/modules/country.js +1 -1
- package/dist/modules/currency.js +1 -1
- package/dist/modules/delivery-provider.js +1 -1
- package/dist/modules/enrollment.js +24 -3
- package/dist/modules/event.js +2 -2
- package/dist/modules/filter.js +2 -2
- package/dist/modules/language/hooks/useLanguages.d.ts +4 -4
- package/dist/modules/language.js +1 -1
- package/dist/modules/modal/components/DangerMessage.d.ts +2 -1
- package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -1
- package/dist/modules/order/hooks/useOrders.d.ts +20 -20
- package/dist/modules/order/hooks/useOrders.d.ts.map +1 -1
- package/dist/modules/order.js +10 -4
- package/dist/modules/payment-providers.js +1 -1
- package/dist/modules/product-review.js +25 -6
- package/dist/modules/product.js +14 -18
- package/dist/modules/quotation.js +23 -3
- package/dist/modules/token.js +3 -3
- package/dist/modules/warehousing-providers.js +1 -1
- package/dist/modules/work/hooks/useWork.d.ts +14 -14
- package/dist/modules/work.js +15 -7
- package/dist/plugins.js +7 -2
- package/dist/providers.js +5 -4
- package/dist/sdk/plugins.d.ts +11 -0
- package/dist/sdk/plugins.d.ts.map +1 -1
- package/dist/sdk/shims/admin-ui-plugins.d.ts +3 -0
- package/dist/sdk/shims/admin-ui-plugins.d.ts.map +1 -0
- package/dist/sdk/shims/apollo-client-react.d.ts +3 -0
- package/dist/sdk/shims/apollo-client-react.d.ts.map +1 -0
- package/dist/sdk/shims/apollo-client.d.ts +3 -0
- package/dist/sdk/shims/apollo-client.d.ts.map +1 -0
- package/dist/sdk/shims/host.d.ts +17 -0
- package/dist/sdk/shims/host.d.ts.map +1 -0
- package/dist/sdk/shims/next-head.d.ts +3 -0
- package/dist/sdk/shims/next-head.d.ts.map +1 -0
- package/dist/sdk/shims/next-image.d.ts +3 -0
- package/dist/sdk/shims/next-image.d.ts.map +1 -0
- package/dist/sdk/shims/next-link.d.ts +3 -0
- package/dist/sdk/shims/next-link.d.ts.map +1 -0
- package/dist/sdk/shims/next-router.d.ts +3 -0
- package/dist/sdk/shims/next-router.d.ts.map +1 -0
- package/dist/sdk/shims/react-dom-client.d.ts +3 -0
- package/dist/sdk/shims/react-dom-client.d.ts.map +1 -0
- package/dist/sdk/shims/react-dom.d.ts +3 -0
- package/dist/sdk/shims/react-dom.d.ts.map +1 -0
- package/dist/sdk/shims/react-hook-form.d.ts +3 -0
- package/dist/sdk/shims/react-hook-form.d.ts.map +1 -0
- package/dist/sdk/shims/react-intl.d.ts +3 -0
- package/dist/sdk/shims/react-intl.d.ts.map +1 -0
- package/dist/sdk/shims/react-jsx-runtime.d.ts +3 -0
- package/dist/sdk/shims/react-jsx-runtime.d.ts.map +1 -0
- package/dist/sdk/shims/react-toastify.d.ts +3 -0
- package/dist/sdk/shims/react-toastify.d.ts.map +1 -0
- package/dist/sdk/shims/react.d.ts +3 -0
- package/dist/sdk/shims/react.d.ts.map +1 -0
- package/dist/shims/admin-ui-plugins.js +9 -0
- package/dist/shims/apollo-client-react.js +25 -0
- package/dist/shims/apollo-client.js +55 -0
- package/dist/shims/next-head.js +9 -0
- package/dist/shims/next-image.js +9 -0
- package/dist/shims/next-link.js +9 -0
- package/dist/shims/next-router.js +13 -0
- package/dist/shims/react-dom-client.js +11 -0
- package/dist/shims/react-dom.js +22 -0
- package/dist/shims/react-hook-form.js +25 -0
- package/dist/shims/react-intl.js +37 -0
- package/dist/shims/react-jsx-runtime.js +11 -0
- package/dist/shims/react-toastify.js +16 -0
- package/dist/shims/react.js +52 -0
- package/dist/theme.js +1 -1
- package/dist/ui.js +1438 -1465
- package/out/403/index.html +2 -2
- package/out/404/index.html +2 -2
- package/out/404.html +2 -2
- package/out/423/index.html +2 -2
- package/out/500/index.html +2 -2
- package/out/_next/static/{VYWUvBJY94uiS3jm4HOFN → 9EKCOng_3jDFmFdZSuNp0}/_buildManifest.js +63 -63
- package/out/_next/static/chunks/0-2b37ubdpy0o.js +7 -0
- package/out/_next/static/chunks/015ge5k3o3f-r.js +226 -0
- package/out/_next/static/chunks/05-ui58k9illr.js +234 -0
- package/out/_next/static/chunks/05au-xyt__0f2.js +3 -0
- package/out/_next/static/chunks/{087a2d-0e1pvn.js → 05nn5xr3ufcsh.js} +1 -1
- package/out/_next/static/chunks/{1m5m15javwn8p.js → 05o_q7jg8wucs.js} +1 -1
- package/out/_next/static/chunks/065x9wl2mga3m.js +11 -0
- package/out/_next/static/chunks/0752goe9_9g2s.js +110 -0
- package/out/_next/static/chunks/07evy5u8ldd1y.js +50 -0
- package/out/_next/static/chunks/07o7bmqljy89r.js +1 -0
- package/out/_next/static/chunks/083ylavob4a8d.js +3 -0
- package/out/_next/static/chunks/09qx8ltnvw8f2.js +12 -0
- package/out/_next/static/chunks/0_o5motvr7gdv.js +21 -0
- package/out/_next/static/chunks/0_puys1lwhv9m.js +16 -0
- package/out/_next/static/chunks/0a_bg-ub3r2eo.js +60 -0
- package/out/_next/static/chunks/0b28h3157pjxr.js +17 -0
- package/out/_next/static/chunks/0bd_--7-52ko6.js +13 -0
- package/out/_next/static/chunks/0bg4_y1qh5y5h.js +47 -0
- package/out/_next/static/chunks/0ckhtcvz1kyxg.js +1 -0
- package/out/_next/static/chunks/{19y4w6_d_qiou.js → 0dnh0kr83_tj0.js} +1 -1
- package/out/_next/static/chunks/0dxu94yin5gdn.js +35 -0
- package/out/_next/static/chunks/0e2c-jlh2q_eq.js +74 -0
- package/out/_next/static/chunks/0e7hhok2eawc3.js +9 -0
- package/out/_next/static/chunks/0el-98_f_r8ex.js +27 -0
- package/out/_next/static/chunks/0g2igd8sj5-gg.js +16 -0
- package/out/_next/static/chunks/0gx9t6j5kx_ho.js +9 -0
- package/out/_next/static/chunks/0i9ymn9xxs0nx.js +18 -0
- package/out/_next/static/chunks/0iebz0rtddbw8.js +15 -0
- package/out/_next/static/chunks/0iqjlf_9c6eo_.js +59 -0
- package/out/_next/static/chunks/0iy11ws57hzzr.js +99 -0
- package/out/_next/static/chunks/0j838r-8ied1f.js +1 -0
- package/out/_next/static/chunks/0jeddko6bac8h.js +1 -0
- package/out/_next/static/chunks/0l4eldqr95f75.js +16 -0
- package/out/_next/static/chunks/0ld6wd2it3xix.js +18 -0
- package/out/_next/static/chunks/0lzvfs3koqtzr.js +15 -0
- package/out/_next/static/chunks/0m6jydfuy_4o3.js +1 -0
- package/out/_next/static/chunks/0mez27zlo26ni.js +103 -0
- package/out/_next/static/chunks/0n9to89fz811b.js +3 -0
- package/out/_next/static/chunks/0nkkcq0-s-9fo.js +1 -0
- package/out/_next/static/chunks/0o7k5vanq57ch.js +807 -0
- package/out/_next/static/chunks/0ou6gsnpn0wml.js +1 -0
- package/out/_next/static/chunks/0pgpevl26rrte.js +13 -0
- package/out/_next/static/chunks/0pji5t2zheb2j.js +234 -0
- package/out/_next/static/chunks/0r5wwinf72z4g.js +1 -0
- package/out/_next/static/chunks/0rgdxqr_0y-g-.js +136 -0
- package/out/_next/static/chunks/0rqjr_lmrk4pz.js +5 -0
- package/out/_next/static/chunks/0s165pqd53i2e.js +13 -0
- package/out/_next/static/chunks/0tej_--_qru5h.js +126 -0
- package/out/_next/static/chunks/0tnyefaaxof6-.js +247 -0
- package/out/_next/static/chunks/{1dsjo02ozub3p.js → 0ubzi2s1spm4e.js} +4 -4
- package/out/_next/static/chunks/0uecw_5mn0zvr.js +110 -0
- package/out/_next/static/chunks/0v0928tdjepyk.js +16 -0
- package/out/_next/static/chunks/0vbqa5pd_ajm5.js +1 -0
- package/out/_next/static/chunks/0w7ic_22nz92w.js +58 -0
- package/out/_next/static/chunks/0x97pf4va0tdj.js +17 -0
- package/out/_next/static/chunks/0y4eg57kgif01.js +1 -0
- package/out/_next/static/chunks/0ywlba3uh1t0x.js +16 -0
- package/out/_next/static/chunks/0zoum0jzrtu0s.js +145 -0
- package/out/_next/static/chunks/10u71-qve349q.js +14 -0
- package/out/_next/static/chunks/10vpdjjvq7u53.js +15 -0
- package/out/_next/static/chunks/13pcz259h-_kj.js +17 -0
- package/out/_next/static/chunks/13u_a5l2xngm4.js +1 -0
- package/out/_next/static/chunks/13wfvr2b0-qlj.js +30 -0
- package/out/_next/static/chunks/151puw-sc__by.js +103 -0
- package/out/_next/static/chunks/15vz50rks0o2-.js +238 -0
- package/out/_next/static/chunks/17b4rvj5k8ye2.js +807 -0
- package/out/_next/static/chunks/188l-km9dyejj.js +34 -0
- package/out/_next/static/chunks/{252n_i72ate30.js → 18juy_eauk94g.js} +2 -2
- package/out/_next/static/chunks/{0k-vf2ns330qm.js → 19eflki8bmivb.js} +1 -1
- package/out/_next/static/chunks/19eu5d-wm2hfr.js +23 -0
- package/out/_next/static/chunks/1_5ba1obzc231.js +1 -0
- package/out/_next/static/chunks/1_lrjs51fhhko.js +807 -0
- package/out/_next/static/chunks/1a5z9hqww-usq.js +20 -0
- package/out/_next/static/chunks/1am9n6exll687.js +807 -0
- package/out/_next/static/chunks/1cqhbfj3zp710.js +1 -0
- package/out/_next/static/chunks/1cy-2yb5j5_9b.js +157 -0
- package/out/_next/static/chunks/{1ji44prsmhq_a.js → 1dt9_bzfioi8a.js} +3 -3
- package/out/_next/static/chunks/1feyuu-4twwai.js +15 -0
- package/out/_next/static/chunks/1i8wb5lh3jac1.js +13 -0
- package/out/_next/static/chunks/1k4ep4igedo8p.js +1 -0
- package/out/_next/static/chunks/1kn74nabrpy14.js +3 -0
- package/out/_next/static/chunks/{34sm1u3s14z4b.js → 1ndk3s-aeqfej.js} +1 -1
- package/out/_next/static/chunks/1ngpcnj86ohnv.js +14 -0
- package/out/_next/static/chunks/1ocvneidf1syf.js +25 -0
- package/out/_next/static/chunks/1og09fg689_nc.js +180 -0
- package/out/_next/static/chunks/1p639idox1vll.js +16 -0
- package/out/_next/static/chunks/1q5b4oexneef5.js +17 -0
- package/out/_next/static/chunks/1q_sewe1wbxsk.js +54 -0
- package/out/_next/static/chunks/1r_e-dk-1oicl.js +2 -0
- package/out/_next/static/chunks/1rkg8vhvo8vgz.js +83 -0
- package/out/_next/static/chunks/1rtv3c_klo0jk.js +1 -0
- package/out/_next/static/chunks/1s8vxngh_0xfn.js +13 -0
- package/out/_next/static/chunks/1srfjl1rurrm9.js +3 -0
- package/out/_next/static/chunks/1t8mb2td_pm1h.js +43 -0
- package/out/_next/static/chunks/1tkaly-z0eb-q.js +14 -0
- package/out/_next/static/chunks/1tvr-10z5x0by.js +104 -0
- package/out/_next/static/chunks/1v-2aqdslc2g1.js +1 -0
- package/out/_next/static/chunks/1w5uao_cylgd1.js +234 -0
- package/out/_next/static/chunks/1x-t9f0f5vr10.js +329 -0
- package/out/_next/static/chunks/1ylgjha1c0ua_.js +124 -0
- package/out/_next/static/chunks/1yp98n-n4gxwy.js +15 -0
- package/out/_next/static/chunks/1yy_-xc9xthfo.js +3 -0
- package/out/_next/static/chunks/1z1esw-t8kopy.js +1 -0
- package/out/_next/static/chunks/1z1jxtjhg_5v6.js +11 -0
- package/out/_next/static/chunks/1zgah7t55d46v.js +19 -0
- package/out/_next/static/chunks/200_u2ywg-be1.js +43 -0
- package/out/_next/static/chunks/205q4wv45jomk.js +13 -0
- package/out/_next/static/chunks/20usp87kxiivk.js +14 -0
- package/out/_next/static/chunks/224p31baeu3c3.js +15 -0
- package/out/_next/static/chunks/22mj125470p07.js +15 -0
- package/out/_next/static/chunks/22ud9v8dzixqk.js +15 -0
- package/out/_next/static/chunks/24-pobk4qjjvp.js +3 -0
- package/out/_next/static/chunks/24mbze45k4evy.js +22 -0
- package/out/_next/static/chunks/26mue2l4069m0.js +22 -0
- package/out/_next/static/chunks/26yksvb45bfug.js +13 -0
- package/out/_next/static/chunks/{1rgwj4dr0k4_b.js → 270ua9t85a7ev.js} +1 -1
- package/out/_next/static/chunks/27jaailh2k450.js +879 -0
- package/out/_next/static/chunks/29m1e34-eyni_.js +9 -0
- package/out/_next/static/chunks/2__i5ksblcvil.js +16 -0
- package/out/_next/static/chunks/2d_tll2e3tyei.js +9 -0
- package/out/_next/static/chunks/2dnjzvnx4dg-n.js +22 -0
- package/out/_next/static/chunks/{34dhtdp_8idgm.js → 2dyj8q92_k5el.js} +112 -62
- package/out/_next/static/chunks/2e47h0g7w7si3.js +7 -0
- package/out/_next/static/chunks/2f16josk9b_cl.js +8 -0
- package/out/_next/static/chunks/2fjmw94mat8m0.js +807 -0
- package/out/_next/static/chunks/{0f7z8oojvqahv.js → 2fo2ki1egxbah.js} +1 -1
- package/out/_next/static/chunks/2g7t-73faoik2.js +15 -0
- package/out/_next/static/chunks/2hg887w-4-saz.js +11 -0
- package/out/_next/static/chunks/2httcwd92at4i.js +9 -0
- package/out/_next/static/chunks/2ib6fee-nqe-z.js +23 -0
- package/out/_next/static/chunks/2j3p_ne416507.js +16 -0
- package/out/_next/static/chunks/2k5rg3rwz2qz1.js +15 -0
- package/out/_next/static/chunks/2kjux30i3gg-c.js +5 -0
- package/out/_next/static/chunks/2l629mu99aqil.js +9 -0
- package/out/_next/static/chunks/2lal4ruoql8-s.js +16 -0
- package/out/_next/static/chunks/2lx_iig9xewfj.js +52 -0
- package/out/_next/static/chunks/2m4su5mqey5cb.js +14 -0
- package/out/_next/static/chunks/2o9hdz0gk1-s7.js +165 -0
- package/out/_next/static/chunks/2on7of8c32boh.js +15 -0
- package/out/_next/static/chunks/2q-mpau-4gsvd.js +1 -0
- package/out/_next/static/chunks/2qzxq2qs80c_8.js +11 -0
- package/out/_next/static/chunks/2rddaar-ns45d.js +116 -0
- package/out/_next/static/chunks/2rywg4dn0aeez.js +1 -0
- package/out/_next/static/chunks/2s6u8274_jzk2.js +105 -0
- package/out/_next/static/chunks/{0qjv_q4seojfh.js → 2skfzjx2g9hkk.js} +7 -3
- package/out/_next/static/chunks/2sw8wfufjrcpb.js +14 -0
- package/out/_next/static/chunks/2szj6o9fr-rib.js +15 -0
- package/out/_next/static/chunks/{1cgliwmj52a0t.js → 2u6jwsqz0uhes.js} +3 -3
- package/out/_next/static/chunks/{08o69avnk4qvk.js → 2v4k4vpb2id7m.js} +1 -1
- package/out/_next/static/chunks/2vkqez8xx-yp9.js +807 -0
- package/out/_next/static/chunks/2ztcyhxd9w5_m.js +1 -0
- package/out/_next/static/chunks/2zynam_mr2g6y.js +21 -0
- package/out/_next/static/chunks/3-xi25w8-k-02.js +15 -0
- package/out/_next/static/chunks/304cl99rh8rs_.js +2 -0
- package/out/_next/static/chunks/30_ns6urg1dkn.js +41 -0
- package/out/_next/static/chunks/{0gurfn3nhm859.js → 313i1x81q2xj1.js} +1 -1
- package/out/_next/static/chunks/325a7n__tfxy_.js +61 -0
- package/out/_next/static/chunks/32gi2dpw3twz7.js +17 -0
- package/out/_next/static/chunks/33emlry70k-lv.js +2 -0
- package/out/_next/static/chunks/{202a3z9hys0o7.js → 346itdsbw-5tn.js} +2 -2
- package/out/_next/static/chunks/348d_4lpnrkzq.js +100 -0
- package/out/_next/static/chunks/351jscvbk_wb9.js +13 -0
- package/out/_next/static/chunks/357odtev0t245.js +59 -0
- package/out/_next/static/chunks/{2oz58zpay0wub.js → 35fjd9uhctw7y.js} +1 -1
- package/out/_next/static/chunks/35mb--fw85e9-.js +20 -0
- package/out/_next/static/chunks/360g4b1clnt45.js +142 -0
- package/out/_next/static/chunks/36aqs7u7s-lb1.js +119 -0
- package/out/_next/static/chunks/36zrtyhmqlx_n.js +807 -0
- package/out/_next/static/chunks/{18yg2pj3hb_in.js → 37uz0njkj43tz.js} +1 -1
- package/out/_next/static/chunks/38ffn8gazqz8_.js +3 -0
- package/out/_next/static/chunks/38kjuo_3xeof3.js +14 -0
- package/out/_next/static/chunks/39-19ao-xkexy.js +2 -0
- package/out/_next/static/chunks/39m5tbxzzsmn4.js +807 -0
- package/out/_next/static/chunks/3bgtu00fe99yc.js +1 -0
- package/out/_next/static/chunks/3c1rc1w-xe4u7.js +39 -0
- package/out/_next/static/chunks/3cdfuacs4_0d-.js +1 -0
- package/out/_next/static/chunks/3d1ofcqmlbg-5.js +52 -0
- package/out/_next/static/chunks/3dopaxkoi5px6.js +1 -0
- package/out/_next/static/chunks/3ic_dagw-uvrx.js +234 -0
- package/out/_next/static/chunks/3jtzvr48aaoo0.js +13 -0
- package/out/_next/static/chunks/3k5lt5_-g36w9.js +9 -0
- package/out/_next/static/chunks/3krpx72smyufn.js +15 -0
- package/out/_next/static/chunks/3l-9xxd1i1sya.js +1 -0
- package/out/_next/static/chunks/3m2hre_c-kclo.js +25 -0
- package/out/_next/static/chunks/3mancxzz8c7hl.js +51 -0
- package/out/_next/static/chunks/3nkse7h0-kbyx.js +126 -0
- package/out/_next/static/chunks/3om1fkw-lrmng.js +1 -0
- package/out/_next/static/chunks/{3m7-q-ztmzcf5.js → 3oynij37wfjb2.js} +2 -2
- package/out/_next/static/chunks/3oz5p4rrvnew1.js +807 -0
- package/out/_next/static/chunks/3p0ir-pqcslbi.js +175 -0
- package/out/_next/static/chunks/{434iz38padke2.js → 3pbyo5kkko3wh.js} +1 -1
- package/out/_next/static/chunks/3pr477_ci25mm.js +22 -0
- package/out/_next/static/chunks/3qjgt-x153i6u.js +234 -0
- package/out/_next/static/chunks/3r54d1b_uyq95.js +13 -0
- package/out/_next/static/chunks/3rh3nigvg06yu.js +337 -0
- package/out/_next/static/chunks/3s-n0xc-vi0ww.js +31 -0
- package/out/_next/static/chunks/3sc7jsyx25g08.js +16 -0
- package/out/_next/static/chunks/3t_3vlnk1ntkb.js +95 -0
- package/out/_next/static/chunks/3ti7tims6gz1j.js +234 -0
- package/out/_next/static/chunks/3tzaludii6vtu.js +54 -0
- package/out/_next/static/chunks/{01q9gliprwq-_.js → 3u504487p_y7e.js} +2 -2
- package/out/_next/static/chunks/3ufg-in2riva7.js +1 -0
- package/out/_next/static/chunks/3ugwv1vrnbivg.js +1 -0
- package/out/_next/static/chunks/3vet2a9q9rf2c.js +61 -0
- package/out/_next/static/chunks/3vjgbl76cgrmt.js +1 -0
- package/out/_next/static/chunks/3vz3gqmojh7sx.js +4 -0
- package/out/_next/static/chunks/3w9xrlkiztuwi.js +23 -0
- package/out/_next/static/chunks/3xmtbqm0gddn8.js +3 -0
- package/out/_next/static/chunks/3yqmjvx7t3t0_.js +1 -0
- package/out/_next/static/chunks/3z3k6qx61arup.js +27 -0
- package/out/_next/static/chunks/401o5bfi_90qs.js +141 -0
- package/out/_next/static/chunks/40xhwnc_48o73.js +297 -0
- package/out/_next/static/chunks/41e2wlkp9_pvk.js +28 -0
- package/out/_next/static/chunks/41g7mv3yuhz6k.js +68 -0
- package/out/_next/static/chunks/429ihwc6co7u7.js +32 -0
- package/out/_next/static/chunks/42x9tn0uff92o.js +15 -0
- package/out/_next/static/chunks/43jyzccx6x0lw.js +1 -0
- package/out/_next/static/chunks/44daaafswok67.css +1 -0
- package/out/_next/static/chunks/turbopack-02-k6w2e9_3af.js +1 -0
- package/out/_next/static/chunks/{turbopack-04ukk4jyuwwfc.js → turbopack-03fj2scz_09ul.js} +1 -1
- package/out/_next/static/chunks/{turbopack-40xcd2mr6qovi.js → turbopack-0_42u9tky4zng.js} +1 -1
- package/out/_next/static/chunks/turbopack-0gnmdx6ye6n_e.js +1 -0
- package/out/_next/static/chunks/turbopack-0iozo8xy34oiw.js +1 -0
- package/out/_next/static/chunks/turbopack-0rb_mm-wnau-3.js +1 -0
- package/out/_next/static/chunks/{turbopack-29n-soxzu37jf.js → turbopack-0v5-op7r79bhf.js} +1 -1
- package/out/_next/static/chunks/{turbopack-34749rlp0_n5c.js → turbopack-0zf_85we0x_rs.js} +1 -1
- package/out/_next/static/chunks/turbopack-1-ukcimwb2wq1.js +1 -0
- package/out/_next/static/chunks/turbopack-10anz7o9kcb98.js +1 -0
- package/out/_next/static/chunks/{turbopack-0w2ztfttfubzl.js → turbopack-12-4lgc8wbnmx.js} +1 -1
- package/out/_next/static/chunks/turbopack-14bpgd3qmna2b.js +1 -0
- package/out/_next/static/chunks/{turbopack-04s7-zvvb1coi.js → turbopack-16ecm5pf7vta6.js} +1 -1
- package/out/_next/static/chunks/{turbopack-298r66lt68r_n.js → turbopack-16gej7p33tsw5.js} +1 -1
- package/out/_next/static/chunks/{turbopack-41cj0-dssfw9l.js → turbopack-1iglf5syrme2d.js} +1 -1
- package/out/_next/static/chunks/turbopack-1l2mxrtt6fj2q.js +1 -0
- package/out/_next/static/chunks/turbopack-1nwkuzx-97xdl.js +1 -0
- package/out/_next/static/chunks/{turbopack-1h9u07n6a83dl.js → turbopack-1od40dnbx8fg3.js} +1 -1
- package/out/_next/static/chunks/turbopack-1qg_72lzl6ek8.js +1 -0
- package/out/_next/static/chunks/turbopack-1rmjnbaunrx2u.js +1 -0
- package/out/_next/static/chunks/{turbopack-3b2k0p0g1mako.js → turbopack-1wpa09idv1cyh.js} +1 -1
- package/out/_next/static/chunks/turbopack-1ykuk8u3enawr.js +1 -0
- package/out/_next/static/chunks/{turbopack-0cwxwz82vstff.js → turbopack-21_p8k9zs76-x.js} +1 -1
- package/out/_next/static/chunks/{turbopack-13v4uorj3l10n.js → turbopack-220rj632xmu2e.js} +1 -1
- package/out/_next/static/chunks/turbopack-22p012gdqk61c.js +1 -0
- package/out/_next/static/chunks/turbopack-25j7jj4dskbwu.js +1 -0
- package/out/_next/static/chunks/turbopack-27pc-r2lunwha.js +1 -0
- package/out/_next/static/chunks/{turbopack-3p-k1txa6-4ik.js → turbopack-2bb143jjb45b6.js} +1 -1
- package/out/_next/static/chunks/turbopack-2esinq43hb-vc.js +1 -0
- package/out/_next/static/chunks/{turbopack-32kxihayw_v97.js → turbopack-2g3vf-v8r3qd2.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1noe2ur-_o71n.js → turbopack-2gxln6h99_6pp.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3j07f1odh4keh.js → turbopack-2j5sxbr_zaxjf.js} +1 -1
- package/out/_next/static/chunks/turbopack-2j61phdts4xpn.js +1 -0
- package/out/_next/static/chunks/{turbopack-2k2d3c2qq-0z0.js → turbopack-2nd6qjscj3z2p.js} +1 -1
- package/out/_next/static/chunks/turbopack-2o76al0gsswxo.js +1 -0
- package/out/_next/static/chunks/turbopack-2pe-c3nyyswmm.js +1 -0
- package/out/_next/static/chunks/{turbopack-0sv7lr_kx3kdq.js → turbopack-2tz1t67cqt8ex.js} +1 -1
- package/out/_next/static/chunks/turbopack-2u-4w10t8mu6i.js +1 -0
- package/out/_next/static/chunks/turbopack-2u879ap4um9kt.js +1 -0
- package/out/_next/static/chunks/turbopack-2ubl1vyufevbf.js +1 -0
- package/out/_next/static/chunks/{turbopack-1wqjl3y4c1ij-.js → turbopack-2x85w-5txf7i5.js} +1 -1
- package/out/_next/static/chunks/turbopack-32oolm1x2hqm8.js +1 -0
- package/out/_next/static/chunks/turbopack-32unbrrzdhim9.js +1 -0
- package/out/_next/static/chunks/{turbopack-3jw01psrsjqdi.js → turbopack-37e-e484qmc03.js} +1 -1
- package/out/_next/static/chunks/turbopack-3aa45-9tjh99k.js +1 -0
- package/out/_next/static/chunks/{turbopack-1-ceqxb_000x-.js → turbopack-3d9zuhypuljic.js} +1 -1
- package/out/_next/static/chunks/turbopack-3dl00zga30bss.js +1 -0
- package/out/_next/static/chunks/turbopack-3f06s1e12y6j9.js +1 -0
- package/out/_next/static/chunks/{turbopack-0qa163y1bx_g6.js → turbopack-3g98_iakkqypg.js} +1 -1
- package/out/_next/static/chunks/turbopack-3j4bdo8-ldea5.js +1 -0
- package/out/_next/static/chunks/{turbopack-1au-y5u3wzv22.js → turbopack-3l3o1x7j1z_63.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1sllc7f9its9a.js → turbopack-3lm631px3s8-4.js} +1 -1
- package/out/_next/static/chunks/{turbopack-14kspgbfigjpa.js → turbopack-3mwf6he42ff9n.js} +1 -1
- package/out/_next/static/chunks/turbopack-3oih6rrmvb7t3.js +1 -0
- package/out/_next/static/chunks/turbopack-3oq88d3632ksa.js +1 -0
- package/out/_next/static/chunks/turbopack-3q1s32jzw2pnu.js +1 -0
- package/out/_next/static/chunks/turbopack-3snas0eww9sey.js +1 -0
- package/out/_next/static/chunks/turbopack-3tg-pp9_bemtn.js +1 -0
- package/out/_next/static/chunks/turbopack-3tlngjwse53m1.js +1 -0
- package/out/_next/static/chunks/turbopack-3tp3s3o8o9e-_.js +1 -0
- package/out/_next/static/chunks/turbopack-3tyhe6yjnx5h6.js +1 -0
- package/out/_next/static/chunks/turbopack-3v3wnwaeu0os5.js +1 -0
- package/out/_next/static/chunks/turbopack-3xc_rmnnnzfkm.js +1 -0
- package/out/_next/static/chunks/turbopack-4592lth1oe0jg.js +1 -0
- package/out/_offline/index.html +2 -2
- package/out/account/forgot-password/index.html +2 -2
- package/out/account/index.html +2 -2
- package/out/assortments/AssortmentDetailPage/index.html +2 -2
- package/out/assortments/index.html +2 -2
- package/out/assortments/new/index.html +2 -2
- package/out/copilot/index.html +2 -2
- package/out/country/CountryDetailPage/index.html +2 -2
- package/out/country/index.html +2 -2
- package/out/country/new/index.html +2 -2
- package/out/currency/CurrencyDetailPage/index.html +2 -2
- package/out/currency/index.html +2 -2
- package/out/currency/new/index.html +2 -2
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
- package/out/delivery-provider/index.html +2 -2
- package/out/delivery-provider/new/index.html +2 -2
- package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
- package/out/enrollments/index.html +2 -2
- package/out/events/EventDetailPage/index.html +2 -2
- package/out/events/index.html +2 -2
- package/out/exports/index.html +2 -2
- package/out/ext/[[...slug]]/index.html +2 -2
- package/out/external/index.html +2 -2
- package/out/filters/FilterDetailPage/index.html +2 -2
- package/out/filters/index.html +2 -2
- package/out/filters/new/index.html +2 -2
- package/out/index.html +2 -2
- package/out/install/index.html +2 -2
- package/out/language/LanguageDetailPage/index.html +2 -2
- package/out/language/index.html +2 -2
- package/out/language/new/index.html +2 -2
- package/out/log-in/index.html +2 -2
- package/out/orders/OrderDetailPage/index.html +2 -2
- package/out/orders/index.html +2 -2
- package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
- package/out/payment-provider/index.html +2 -2
- package/out/payment-provider/new/index.html +2 -2
- package/out/products/ProductDetailPage/index.html +2 -2
- package/out/products/index.html +2 -2
- package/out/products/new/index.html +2 -2
- package/out/quotations/QuotationDetailPage/index.html +2 -2
- package/out/quotations/index.html +2 -2
- package/out/reset-password/index.html +2 -2
- package/out/sign-up/index.html +2 -2
- package/out/styleguide/index.html +2 -2
- package/out/tokens/TokenDetailPage/index.html +2 -2
- package/out/tokens/index.html +2 -2
- package/out/users/UserDetailPage/index.html +2 -2
- package/out/users/index.html +2 -2
- package/out/users/new/index.html +2 -2
- package/out/verify-email/index.html +2 -2
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
- package/out/warehousing-provider/index.html +2 -2
- package/out/warehousing-provider/new/index.html +2 -2
- package/out/works/WorkDetailPage/index.html +2 -2
- package/out/works/WorkQueueListView/index.html +2 -2
- package/out/works/index.html +2 -2
- package/out/works/management/index.html +2 -2
- package/package.json +18 -13
- package/src/sdk/README.md +195 -0
- package/src/sdk/plugin-build.mjs +83 -98
- package/src/sdk/plugin-build.test.mjs +39 -4
- package/src/sdk/plugin-runtime.cjs +66 -0
- package/src/sdk/plugin-runtime.d.mts +11 -0
- package/src/sdk/plugin-runtime.mjs +27 -0
- package/src/sdk/plugin-runtime.test.mjs +32 -0
- package/src/sdk/plugins.mjs +17 -0
- package/src/sdk/plugins.ts +17 -0
- package/src/sdk/shims/admin-ui-plugins.ts +3 -0
- package/src/sdk/shims/apollo-client-react.ts +3 -0
- package/src/sdk/shims/apollo-client.ts +3 -0
- package/src/sdk/shims/host.ts +61 -0
- package/src/sdk/shims/next-head.ts +3 -0
- package/src/sdk/shims/next-image.ts +3 -0
- package/src/sdk/shims/next-link.ts +3 -0
- package/src/sdk/shims/next-router.ts +3 -0
- package/src/sdk/shims/react-dom-client.ts +3 -0
- package/src/sdk/shims/react-dom.ts +3 -0
- package/src/sdk/shims/react-hook-form.ts +3 -0
- package/src/sdk/shims/react-intl.ts +3 -0
- package/src/sdk/shims/react-jsx-runtime.ts +3 -0
- package/src/sdk/shims/react-toastify.ts +3 -0
- package/src/sdk/shims/react.ts +3 -0
- package/out/_next/static/chunks/00zpb_zgq36h-.js +0 -14
- package/out/_next/static/chunks/02aa23atze2y4.js +0 -119
- package/out/_next/static/chunks/02u93m0n7n-q-.js +0 -12
- package/out/_next/static/chunks/03n4up296yhei.js +0 -138
- package/out/_next/static/chunks/03zrzz0sb-gy8.js +0 -14
- package/out/_next/static/chunks/044dmimivt13x.js +0 -233
- package/out/_next/static/chunks/07pwkvl-lm4vp.js +0 -24
- package/out/_next/static/chunks/08vf2wf3mxta3.js +0 -13
- package/out/_next/static/chunks/094s-grteo6tb.js +0 -31
- package/out/_next/static/chunks/0_wt7zjqgpl76.js +0 -807
- package/out/_next/static/chunks/0a81cjauoijka.js +0 -1
- package/out/_next/static/chunks/0ab_-095b34n5.js +0 -90
- package/out/_next/static/chunks/0ac9c5ecooaav.js +0 -234
- package/out/_next/static/chunks/0b--0624xswmi.js +0 -16
- package/out/_next/static/chunks/0b3hl4d_27v6q.js +0 -173
- package/out/_next/static/chunks/0braigkg4hdry.js +0 -39
- package/out/_next/static/chunks/0cdcsn87u-tzw.js +0 -1
- package/out/_next/static/chunks/0d9cf7svcpjcu.js +0 -1
- package/out/_next/static/chunks/0eooy6dat270h.js +0 -226
- package/out/_next/static/chunks/0ety-u93s5lsq.js +0 -188
- package/out/_next/static/chunks/0fb5j_lva6f8h.js +0 -19
- package/out/_next/static/chunks/0hm6-xlqw4vmr.js +0 -1
- package/out/_next/static/chunks/0im5k2e2u2uz_.js +0 -8
- package/out/_next/static/chunks/0iv288bepx0ug.js +0 -29
- package/out/_next/static/chunks/0ld2eenwz_blg.js +0 -52
- package/out/_next/static/chunks/0m9y8-nk64c1e.js +0 -12
- package/out/_next/static/chunks/0nz8nqr7k7pni.js +0 -61
- package/out/_next/static/chunks/0pyfoz6288y0f.js +0 -1
- package/out/_next/static/chunks/0qfjbvj6nn9zr.js +0 -18
- package/out/_next/static/chunks/0r0l1vs8bls6y.js +0 -1
- package/out/_next/static/chunks/0r2v5se5riad_.js +0 -227
- package/out/_next/static/chunks/0rdl1jrsef2ew.js +0 -3
- package/out/_next/static/chunks/0sutuaadm9sa2.js +0 -11
- package/out/_next/static/chunks/0tmo-o_wjgk4-.js +0 -8
- package/out/_next/static/chunks/0u-md-qpvyccn.js +0 -149
- package/out/_next/static/chunks/0u881hesm8z4s.js +0 -14
- package/out/_next/static/chunks/0u_efcr52k9v1.js +0 -15
- package/out/_next/static/chunks/0ukobsq85_to1.js +0 -135
- package/out/_next/static/chunks/0vxvcl2s96x4f.js +0 -24
- package/out/_next/static/chunks/0vyfm3usoot1p.js +0 -60
- package/out/_next/static/chunks/0wr0r7tr1jbcz.js +0 -10
- package/out/_next/static/chunks/0x_i69reqib8u.js +0 -3
- package/out/_next/static/chunks/0xxl7fb2bi8_8.js +0 -82
- package/out/_next/static/chunks/0z7jldn83dst6.js +0 -13
- package/out/_next/static/chunks/1-4f-vlpf5end.js +0 -43
- package/out/_next/static/chunks/1293ysgb8y4y3.js +0 -12
- package/out/_next/static/chunks/129pi8m3j6761.js +0 -1
- package/out/_next/static/chunks/12lbg_ctrshrg.js +0 -1
- package/out/_next/static/chunks/13f9ypdy9t6l8.js +0 -15
- package/out/_next/static/chunks/13g90lbjehcp1.js +0 -12
- package/out/_next/static/chunks/1413uu5ol2rfr.js +0 -166
- package/out/_next/static/chunks/15-duc2e3btcy.js +0 -1
- package/out/_next/static/chunks/155jjdhtr4dhn.js +0 -30
- package/out/_next/static/chunks/1679i7xv8jnle.js +0 -117
- package/out/_next/static/chunks/16a-8jlyrl0m8.js +0 -12
- package/out/_next/static/chunks/16bdu48a5vry_.js +0 -13
- package/out/_next/static/chunks/16r_t7quts1w0.js +0 -289
- package/out/_next/static/chunks/189epg0ebf7bc.js +0 -13
- package/out/_next/static/chunks/18ujb5-7bg1p4.js +0 -1
- package/out/_next/static/chunks/19fzi9f2kw8zv.js +0 -233
- package/out/_next/static/chunks/1_ov-8bomgh6c.js +0 -54
- package/out/_next/static/chunks/1axp79-x4n7i4.js +0 -242
- package/out/_next/static/chunks/1bga5_ny7avyr.js +0 -23
- package/out/_next/static/chunks/1bgsls3okrjue.js +0 -1
- package/out/_next/static/chunks/1cliieayy_gw1.js +0 -13
- package/out/_next/static/chunks/1cvyi5qu_s_d7.js +0 -10
- package/out/_next/static/chunks/1dcw-b0uqh6b0.js +0 -1
- package/out/_next/static/chunks/1drrou5kp4qdz.js +0 -1
- package/out/_next/static/chunks/1e4ue1_7qn6kz.js +0 -14
- package/out/_next/static/chunks/1emope9zm_-ch.js +0 -14
- package/out/_next/static/chunks/1f7ar56dj5j8s.js +0 -21
- package/out/_next/static/chunks/1fk9whsy-495f.js +0 -1
- package/out/_next/static/chunks/1fp7uihlvzcij.js +0 -13
- package/out/_next/static/chunks/1g0syfr6r0rj8.js +0 -111
- package/out/_next/static/chunks/1g5l7e7du4p25.js +0 -1
- package/out/_next/static/chunks/1h03py7retxw8.js +0 -13
- package/out/_next/static/chunks/1i6-vxhyp4fan.js +0 -73
- package/out/_next/static/chunks/1ihjqvn68cj5e.js +0 -36
- package/out/_next/static/chunks/1ij-bgloqrwlw.js +0 -809
- package/out/_next/static/chunks/1l1_ntden2a5-.js +0 -58
- package/out/_next/static/chunks/1m0x2mb91rv2i.js +0 -13
- package/out/_next/static/chunks/1mw35msx036qx.js +0 -66
- package/out/_next/static/chunks/1ou8q3ltdifd1.js +0 -34
- package/out/_next/static/chunks/1prx7jjoz9cq8.js +0 -3
- package/out/_next/static/chunks/1q1js93yqv2ym.js +0 -14
- package/out/_next/static/chunks/1qkgln72hya5g.js +0 -1
- package/out/_next/static/chunks/1qn6du1pk46f0.js +0 -14
- package/out/_next/static/chunks/1r_q8-_cl6_b-.js +0 -23
- package/out/_next/static/chunks/1rirgtcu6_bpa.js +0 -17
- package/out/_next/static/chunks/1rpgl9uhsj7jq.js +0 -28
- package/out/_next/static/chunks/1tzo3v9d5ccon.js +0 -15
- package/out/_next/static/chunks/1uculcrefh01f.js +0 -16
- package/out/_next/static/chunks/1uinfdu-lhddb.js +0 -1
- package/out/_next/static/chunks/1uiqmuia9hpwc.js +0 -32
- package/out/_next/static/chunks/1ukg1j06gk9j7.js +0 -233
- package/out/_next/static/chunks/1v2r-dm5xnwxd.js +0 -95
- package/out/_next/static/chunks/1x8c4f-tlz8oq.js +0 -54
- package/out/_next/static/chunks/1xic7x33en-_t.js +0 -46
- package/out/_next/static/chunks/1y-vwb0-v5xv0.js +0 -304
- package/out/_next/static/chunks/1ymswtxkxcnfi.js +0 -11
- package/out/_next/static/chunks/1yrby6v2msnio.js +0 -13
- package/out/_next/static/chunks/1yx8v1-jzs__q.js +0 -234
- package/out/_next/static/chunks/1yxsj_p-0xiav.js +0 -14
- package/out/_next/static/chunks/2-1ihmwxm5nd8.js +0 -13
- package/out/_next/static/chunks/2-hsn5zne_kbo.js +0 -18
- package/out/_next/static/chunks/20ndjd4r5l6vk.js +0 -1
- package/out/_next/static/chunks/22l-2aehes9lx.js +0 -153
- package/out/_next/static/chunks/23ju3v8ue0m8a.js +0 -8
- package/out/_next/static/chunks/23lmor9w4r767.js +0 -1
- package/out/_next/static/chunks/24p5ic154k1id.js +0 -50
- package/out/_next/static/chunks/250qu8q7duhe7.js +0 -1
- package/out/_next/static/chunks/25asi1rq6d8hb.js +0 -7
- package/out/_next/static/chunks/263u-_eyq54xn.js +0 -155
- package/out/_next/static/chunks/26ca8aneaqvre.js +0 -2
- package/out/_next/static/chunks/27_5des_qn7kz.js +0 -1
- package/out/_next/static/chunks/27ek8w2c2mk46.js +0 -15
- package/out/_next/static/chunks/28d90lqq_6ddl.js +0 -135
- package/out/_next/static/chunks/29yitf66u5w9d.js +0 -1
- package/out/_next/static/chunks/2_3qu55ddb4jo.js +0 -3
- package/out/_next/static/chunks/2b8nhs_3rpawc.js +0 -1
- package/out/_next/static/chunks/2bby8chs2h2zt.js +0 -190
- package/out/_next/static/chunks/2ch1ir5bauqm-.js +0 -41
- package/out/_next/static/chunks/2cwzq52lgg7tg.js +0 -147
- package/out/_next/static/chunks/2dbrybnhe5thu.css +0 -1
- package/out/_next/static/chunks/2dddh3jepg6r9.js +0 -22
- package/out/_next/static/chunks/2epfbio36cp2x.js +0 -13
- package/out/_next/static/chunks/2ev7bgw2foqui.js +0 -12
- package/out/_next/static/chunks/2f0e2t3pz-rua.js +0 -1
- package/out/_next/static/chunks/2ibnigbqfhrjb.js +0 -8
- package/out/_next/static/chunks/2iuu4shi025hv.js +0 -10
- package/out/_next/static/chunks/2n3x1m3a_ria_.js +0 -1
- package/out/_next/static/chunks/2ngg-2uli_wsk.js +0 -17
- package/out/_next/static/chunks/2nofj6ud99639.js +0 -2
- package/out/_next/static/chunks/2onfts3kpe9d8.js +0 -1
- package/out/_next/static/chunks/2rdh3y4-gf0r1.js +0 -7
- package/out/_next/static/chunks/2ry72x6et3uyk.js +0 -235
- package/out/_next/static/chunks/2t2zzfasof1ej.js +0 -18
- package/out/_next/static/chunks/2tw-iq1oliu-h.js +0 -1
- package/out/_next/static/chunks/2twd9trj9horc.js +0 -61
- package/out/_next/static/chunks/2uln0xj_hk2xv.js +0 -22
- package/out/_next/static/chunks/2x0c4v5dipld3.js +0 -13
- package/out/_next/static/chunks/2xhllcys1_u52.js +0 -14
- package/out/_next/static/chunks/3-n5bzlk225-y.js +0 -1
- package/out/_next/static/chunks/3154519pby2gj.js +0 -5
- package/out/_next/static/chunks/327jk4epgudqh.js +0 -110
- package/out/_next/static/chunks/334lcmrt6lgtz.js +0 -14
- package/out/_next/static/chunks/33bnjdrokmipf.js +0 -12
- package/out/_next/static/chunks/33g91_yljnpiw.js +0 -807
- package/out/_next/static/chunks/33getgbb1rmpa.js +0 -43
- package/out/_next/static/chunks/342etvf_c28cb.js +0 -39
- package/out/_next/static/chunks/34kqgu8bnykwx.js +0 -315
- package/out/_next/static/chunks/34zya3wqxvl8k.js +0 -19
- package/out/_next/static/chunks/35k7e1g1muu56.js +0 -5
- package/out/_next/static/chunks/399t21noeueqk.js +0 -13
- package/out/_next/static/chunks/39ze4mwy903wm.js +0 -13
- package/out/_next/static/chunks/3_8h-x8lcmhr7.js +0 -339
- package/out/_next/static/chunks/3_j5zrbyysq1g.js +0 -31
- package/out/_next/static/chunks/3a8a8fpl7-ndf.js +0 -1
- package/out/_next/static/chunks/3a9g7ouf888jt.js +0 -1
- package/out/_next/static/chunks/3anxg7pk9-h3t.js +0 -50
- package/out/_next/static/chunks/3blzs4z5wryub.js +0 -1
- package/out/_next/static/chunks/3cfkqo3t0m0es.js +0 -3
- package/out/_next/static/chunks/3coz1fo064u6a.js +0 -12
- package/out/_next/static/chunks/3cr1as0q659er.js +0 -1
- package/out/_next/static/chunks/3crdcex_nrx3o.js +0 -12
- package/out/_next/static/chunks/3crkl2ligc-kt.js +0 -14
- package/out/_next/static/chunks/3d0ic2ovyeue7.js +0 -2
- package/out/_next/static/chunks/3ddaet08eakmw.js +0 -18
- package/out/_next/static/chunks/3dh3x6thy7fef.js +0 -1
- package/out/_next/static/chunks/3e75y5wr7_vem.js +0 -327
- package/out/_next/static/chunks/3e98ykfx_vamf.js +0 -60
- package/out/_next/static/chunks/3eq-uts_yz1e5.js +0 -1
- package/out/_next/static/chunks/3ghzaufs2n8uq.js +0 -2
- package/out/_next/static/chunks/3ie60090urams.js +0 -16
- package/out/_next/static/chunks/3jffivfbeet7f.js +0 -15
- package/out/_next/static/chunks/3mskn3uvx6s77.js +0 -142
- package/out/_next/static/chunks/3oppyz2wurlv-.js +0 -329
- package/out/_next/static/chunks/3p-pioxz8jyip.js +0 -15
- package/out/_next/static/chunks/3po1wffu1pc3k.js +0 -12
- package/out/_next/static/chunks/3rvxjwpm2hkzt.js +0 -13
- package/out/_next/static/chunks/3snnfwi0hsfwy.js +0 -31
- package/out/_next/static/chunks/3so-jsqyai73m.js +0 -1
- package/out/_next/static/chunks/3voheu4m42ctw.js +0 -14
- package/out/_next/static/chunks/3x3oqxb68-ull.js +0 -7
- package/out/_next/static/chunks/3ysj3lx_q697-.js +0 -124
- package/out/_next/static/chunks/3zncjth-kop8p.js +0 -1
- package/out/_next/static/chunks/3zp4iedgev460.js +0 -35
- package/out/_next/static/chunks/40jzqlki-ix7b.js +0 -17
- package/out/_next/static/chunks/4138xi7jgdv_o.js +0 -107
- package/out/_next/static/chunks/413d2n3_vvshb.js +0 -14
- package/out/_next/static/chunks/41mslgyvxwsej.js +0 -1
- package/out/_next/static/chunks/44kw4hk598ruu.js +0 -1
- package/out/_next/static/chunks/44um3bi95nxcy.js +0 -1
- package/out/_next/static/chunks/44xj9eghssy4h.js +0 -1
- package/out/_next/static/chunks/turbopack-00bqo3amk802l.js +0 -1
- package/out/_next/static/chunks/turbopack-00xv5x2980kaw.js +0 -1
- package/out/_next/static/chunks/turbopack-07riv31885zxj.js +0 -1
- package/out/_next/static/chunks/turbopack-0_sc_n1p1bcp9.js +0 -1
- package/out/_next/static/chunks/turbopack-0a3d8s54evtiu.js +0 -1
- package/out/_next/static/chunks/turbopack-0eg08vs3s4808.js +0 -1
- package/out/_next/static/chunks/turbopack-0j5aiynif9rh6.js +0 -1
- package/out/_next/static/chunks/turbopack-0utbjxefp9fml.js +0 -1
- package/out/_next/static/chunks/turbopack-12eu9ngd0g762.js +0 -1
- package/out/_next/static/chunks/turbopack-169mif_3j2xs7.js +0 -1
- package/out/_next/static/chunks/turbopack-16y9ecuw-sg_1.js +0 -1
- package/out/_next/static/chunks/turbopack-17gr4a9fxe8he.js +0 -1
- package/out/_next/static/chunks/turbopack-19agtluuz9hs9.js +0 -1
- package/out/_next/static/chunks/turbopack-1qm1ao7m24ujy.js +0 -1
- package/out/_next/static/chunks/turbopack-1tefm98ftz444.js +0 -1
- package/out/_next/static/chunks/turbopack-1yd96mx8ypi2r.js +0 -1
- package/out/_next/static/chunks/turbopack-1yr-b62bnm8pn.js +0 -1
- package/out/_next/static/chunks/turbopack-20jztdd3emk_4.js +0 -1
- package/out/_next/static/chunks/turbopack-24wh5-0ze4f20.js +0 -1
- package/out/_next/static/chunks/turbopack-27e97jv6b-s-_.js +0 -1
- package/out/_next/static/chunks/turbopack-2_-s3bsa7fy5n.js +0 -1
- package/out/_next/static/chunks/turbopack-2agmtzzi93gcu.js +0 -1
- package/out/_next/static/chunks/turbopack-2krkwbmqyusjo.js +0 -1
- package/out/_next/static/chunks/turbopack-2ktr6ad7w59-u.js +0 -1
- package/out/_next/static/chunks/turbopack-2o3ztc3qxaqmv.js +0 -1
- package/out/_next/static/chunks/turbopack-2ocojyxy_6ohm.js +0 -1
- package/out/_next/static/chunks/turbopack-2p09rgir8a_rr.js +0 -1
- package/out/_next/static/chunks/turbopack-2s314huts4-ih.js +0 -1
- package/out/_next/static/chunks/turbopack-2uy0-z_9q9r-t.js +0 -1
- package/out/_next/static/chunks/turbopack-2xkr4g1kb-c30.js +0 -1
- package/out/_next/static/chunks/turbopack-38uc2-slitwye.js +0 -1
- package/out/_next/static/chunks/turbopack-3_vxq7t7y83kn.js +0 -1
- package/out/_next/static/chunks/turbopack-3b4ho7bon8y1n.js +0 -1
- package/out/_next/static/chunks/turbopack-3ldzloccscyev.js +0 -1
- package/out/_next/static/chunks/turbopack-3o2wlpvy73vfc.js +0 -1
- package/out/_next/static/chunks/turbopack-3u8iq4uiukeh-.js +0 -1
- package/out/_next/static/chunks/turbopack-3ywen4wf3l3h-.js +0 -1
- package/out/_next/static/chunks/turbopack-3zajpzv2knbum.js +0 -1
- package/out/_next/static/chunks/turbopack-42c24-sypz5zz.js +0 -1
- /package/dist/{chunk-BYXBJQAS.js → chunk-QWQ3WJJN.js} +0 -0
- /package/out/_next/static/{VYWUvBJY94uiS3jm4HOFN → 9EKCOng_3jDFmFdZSuNp0}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{VYWUvBJY94uiS3jm4HOFN → 9EKCOng_3jDFmFdZSuNp0}/_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)}]);
|