@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,95 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53296,e=>{"use strict";var t=e.i(91398),s=e.i(74040),s=s,a=e.i(69322);e.s(["default",0,({messageKey:e,defaultMessage:r,values:d,className:l="",showIcon:i=!0})=>{let{formatMessage:o}=(0,a.useIntl)(),u=o({id:e,defaultMessage:r},d);return u?(0,t.jsxs)("div",{className:`flex items-start space-x-1 text-sm text-text-secondary ${l}`,children:[i&&(0,t.jsx)(s.default,{className:"h-4 w-4 mt-0.5 flex-shrink-0"}),(0,t.jsx)("span",{children:u})]}):null}],53296)},11056,e=>{"use strict";var t=e.i(91398),s=e.i(91788),a=e.i(5505),r=e.i(57561);e.s(["default",0,({children:e,onlyFull:d=!1})=>{let{languageDialectList:l,selectedLocale:i,setSelectedLocale:o}=(0,r.default)(),u=(0,s.useContext)(a.FormWrapperContext),c=l.filter(e=>!d||e.isoCode.includes("-"));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`w-fit mt-5 mb-3 ${u?"ml-5":""}`,children:(0,t.jsx)("select",{id:"locale-wrapper",className:"cursor-pointer rounded-md border-1 border-border-default py-1 pr-8 text-sm lg:py-1 lg:pr-10 text-black dark:text-white dark:bg-slate-800 shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring",value:i||"",onChange:e=>{e.stopPropagation(),o(e.target.value)},children:c?.map(e=>(0,t.jsx)("option",{value:e.isoCode,children:e.isoCode},e._id))})}),(0,t.jsx)("div",{children:s.default.cloneElement(e)})]})}])},38994,62199,14336,e=>{"use strict";var t=e.i(59080),s=e.i(76204);let a=t.gql`
|
|
2
|
+
fragment ProductDetailFragment on Product {
|
|
3
|
+
_id
|
|
4
|
+
sequence
|
|
5
|
+
status
|
|
6
|
+
created
|
|
7
|
+
tags
|
|
8
|
+
updated
|
|
9
|
+
published
|
|
10
|
+
|
|
11
|
+
media {
|
|
12
|
+
_id
|
|
13
|
+
tags
|
|
14
|
+
file {
|
|
15
|
+
_id
|
|
16
|
+
url
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
reviews {
|
|
20
|
+
_id
|
|
21
|
+
created
|
|
22
|
+
author {
|
|
23
|
+
_id
|
|
24
|
+
username
|
|
25
|
+
isGuest
|
|
26
|
+
}
|
|
27
|
+
rating
|
|
28
|
+
title
|
|
29
|
+
review
|
|
30
|
+
voteCount
|
|
31
|
+
ownVotes {
|
|
32
|
+
type
|
|
33
|
+
timestamp
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
siblings {
|
|
37
|
+
_id
|
|
38
|
+
media {
|
|
39
|
+
_id
|
|
40
|
+
file {
|
|
41
|
+
_id
|
|
42
|
+
url
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
`;e.s(["default",0,a],62199);let r=t.gql`
|
|
48
|
+
fragment ProductTextsFragment on ProductTexts {
|
|
49
|
+
_id
|
|
50
|
+
locale
|
|
51
|
+
slug
|
|
52
|
+
title
|
|
53
|
+
subtitle
|
|
54
|
+
description
|
|
55
|
+
vendor
|
|
56
|
+
brand
|
|
57
|
+
labels
|
|
58
|
+
}
|
|
59
|
+
`;e.s(["default",0,r],14336);let d=t.gql`
|
|
60
|
+
mutation CreateProduct(
|
|
61
|
+
$product: CreateProductInput!
|
|
62
|
+
$texts: [ProductTextInput!]
|
|
63
|
+
) {
|
|
64
|
+
createProduct(product: $product, texts: $texts) {
|
|
65
|
+
...ProductDetailFragment
|
|
66
|
+
... on SimpleProduct {
|
|
67
|
+
texts {
|
|
68
|
+
...ProductTextsFragment
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
... on ConfigurableProduct {
|
|
72
|
+
texts {
|
|
73
|
+
...ProductTextsFragment
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
... on BundleProduct {
|
|
77
|
+
texts {
|
|
78
|
+
...ProductTextsFragment
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
... on TokenizedProduct {
|
|
82
|
+
texts {
|
|
83
|
+
...ProductTextsFragment
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
... on PlanProduct {
|
|
87
|
+
texts {
|
|
88
|
+
...ProductTextsFragment
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
${a}
|
|
94
|
+
${r}
|
|
95
|
+
`;e.s(["default",0,()=>{let[e,{data:t,error:a,loading:r}]=(0,s.useMutation)(d);return{createProduct:async({product:{type:t,tags:s},texts:a})=>e({variables:{product:{type:t,tags:s},texts:a},refetchQueries:["Products","ShopStatus","ShopInfo"]}),newProduct:t?.createProduct,error:a,loading:r}}],38994)},46342,e=>{"use strict";var t=e.i(91398),s=e.i(3828),a=e.i(69322),r=e.i(50595),d=e.i(5505),l=e.i(25327),i=e.i(1880);e.i(51523);var o=e.i(19518),u=e.i(58971),c=e.i(69211),n=e.i(10685),p=e.i(21128),m=e.i(13120),f=e.i(16984),g=e.i(98949),h=e.i(53296),x=e.i(57561);let b=({onSubmit:e,onSubmitSuccess:s})=>{let{formatMessage:r}=(0,a.useIntl)(),{hasRole:d}=(0,u.default)(),{selectedLocale:l,shopInfo:i}=(0,x.default)(),b=r({id:"product_added",defaultMessage:"Product added successfully!"}),j=(0,g.default)({submit:async t=>{let{title:s,subtitle:a,type:r,tags:d}=t;if(!s||!r)return{success:!1};let i=[{title:s,subtitle:a||"",slug:s.toLowerCase().replace(/\s+/g,"-"),locale:l}];return await e({texts:i,type:r,tags:d||[]})},onSubmitSuccess:s,successMessage:b,initialValues:{title:"",subtitle:"",type:o.IProductType.SimpleProduct,tags:[]}});return(0,t.jsxs)(c.default,{form:j,children:[(0,t.jsxs)("div",{className:"p-5 pb-7 sm:max-w-full flex flex-col gap-3",children:[(0,t.jsx)(f.default,{name:"title",id:"title",label:r({id:"name",defaultMessage:"Name"}),required:!0,className:"block w-full max-w-full rounded-md border-border-default text-sm focus:ring-focus-ring sm:text-sm"}),(0,t.jsx)(f.default,{name:"subtitle",id:"subtitle",label:r({id:"subtitle",defaultMessage:"Subtitle"}),className:"block w-full max-w-full rounded-md border-border-default text-sm focus:ring-focus-ring sm:text-sm"}),(0,t.jsx)(n.default,{className:"mt-1 w-full",label:r({id:"type",defaultMessage:"Type"}),placeholder:r({id:"type",defaultMessage:"Type"}),required:!0,name:"type",options:Object.fromEntries(Object.entries(o.IProductType).map(([e,t])=>[t,e]))}),(0,t.jsx)(m.default,{name:"tags",label:r({id:"tags",defaultMessage:"Tags"}),placeholder:r({id:"enter_tag",defaultMessage:"Enter tag..."}),selectOptions:(i?.adminUiConfig.productTags||[]).map(e=>({value:e,label:e}))}),(0,t.jsx)(h.default,{messageKey:"product_tags_help",defaultMessage:"Add keywords to organize and filter products (e.g., 'electronics', 'outdoor', 'premium'). These work across all languages and help customers find products through search and filters.",className:"mt-1"})]}),d(o.IRoleAction.ManageProducts)&&(0,t.jsx)("div",{className:"border-t border-t-border-subtle bg-surface-subtle p-5 text-right",children:(0,t.jsx)(p.default,{label:r({id:"add_product",defaultMessage:"Add Product"})})})]})};var j=e.i(38994),v=e.i(11056);e.s(["default",0,()=>{let{createProduct:e}=(0,j.default)(),o=(0,s.useRouter)(),{formatMessage:u}=(0,a.useIntl)(),c=async({texts:t,type:s,tags:a})=>{let{data:r,error:d}=await e({product:{type:s,tags:a},texts:t});return d?{success:!1}:{success:!0,data:r?.createProduct}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{}),(0,t.jsx)(l.default,{headerText:u({id:"new_product_header",defaultMessage:"New product"})}),(0,t.jsxs)("div",{className:"mt-6 lg:grid lg:grid-cols-3 gap-10",children:[(0,t.jsx)("div",{className:"lg:col-span-2",children:(0,t.jsx)(d.default,{children:(0,t.jsx)(v.default,{children:(0,t.jsx)(b,{onSubmit:c,onSubmitSuccess:(e,{...t})=>(o.replace(`/products?slug=${(0,i.default)(t)}`),!0)})})})}),(0,t.jsxs)("div",{className:"mt-10 lg:mt-0 lg:col-span-1 space-y-2",children:[(0,t.jsx)("h3",{className:"text-lg text-text-primary",children:u({id:"product_type",defaultMessage:"Product type"})}),(0,t.jsxs)("div",{className:"text-sm divide-y divide-slate-200 dark:divide-slate-800 dark:text-slate-400 lg:mr-10",children:[(0,t.jsx)("div",{className:"my-2 py-2",children:(0,t.jsx)(a.FormattedMessage,{id:"simple_product_definition",defaultMessage:" <h3>Simple</h3> <p>Simple product is the most commonly used type of product type. It accepts configuration values for price, dimension and warehousing. Most e-commerce product needs are satisfied by this type </p>",values:{h3:e=>(0,t.jsx)("h3",{className:"font-semibold ",children:e}),p:e=>(0,t.jsx)("p",{children:e})}})}),(0,t.jsx)("div",{className:"my-2 py-2",children:(0,t.jsx)(a.FormattedMessage,{id:"plan_product_definition",defaultMessage:" <h3>Plan</h3> <p>Plan product is use when you have a product that is offered per subscription base. Since for this type of product the payment is usually recurring, you can adjust the interval of payment calculation.\n\n </p>",values:{h3:e=>(0,t.jsx)("h3",{className:"font-semibold ",children:e}),p:e=>(0,t.jsx)("p",{children:e})}})}),(0,t.jsx)("div",{className:"my-2 py-2",children:(0,t.jsx)(a.FormattedMessage,{id:"bundle_product_definition",defaultMessage:" <h3>Bundle</h3> <p>As the name suggest this product type enables you to create a collection/bundle of products as one and set the price accordingly. This type of product is useful if you have christmas package for example. </p>",values:{h3:e=>(0,t.jsx)("h3",{className:"font-semibold ",children:e}),p:e=>(0,t.jsx)("p",{children:e})}})}),(0,t.jsx)("div",{className:"my-2 py-2",children:(0,t.jsx)(a.FormattedMessage,{id:"configurable_product_definition",defaultMessage:" <h3>Configurable</h3> <p>Configurable Product is used to organize varieties of a product. A product might have a variation in color, size or other distinct property in that case you can use a configurable product type to organize all the variation under one category and outline-solid there difference. </p>",values:{h3:e=>(0,t.jsx)("h3",{className:"font-semibold ",children:e}),p:e=>(0,t.jsx)("p",{children:e})}})})]})]})]})]})}],46342)},85463,(e,t,s)=>{let a="/products/new";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(46342)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([a])})},74040,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...a},r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))});e.s(["default",0,s])},28805,e=>{e.v(t=>Promise.all(["static/chunks/0h0r_q6xa9qr_.js"].map(t=>e.l(t))).then(()=>t(79466)))},48761,e=>{e.v(t=>Promise.all(["static/chunks/1ae-9ft5cgojf.js"].map(t=>e.l(t))).then(()=>t(93594)))}]);
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70693,12970,e=>{"use strict";var t=e.i(91788);let r=t.default.createContext({customProperties:{},hydrateFragment:(e,t)=>null});e.s(["default",0,r],12970),e.s(["default",0,()=>(0,t.useContext)(r)],70693)},73298,2228,e=>{"use strict";var t=e.i(59080);let r=t.gql`
|
|
2
|
+
fragment MD5MetaDataFragment on WebAuthnMDSv3Metadata {
|
|
3
|
+
legalHeader
|
|
4
|
+
description
|
|
5
|
+
authenticatorVersion
|
|
6
|
+
protocolFamily
|
|
7
|
+
schema
|
|
8
|
+
authenticationAlgorithms
|
|
9
|
+
publicKeyAlgAndEncodings
|
|
10
|
+
attestationTypes
|
|
11
|
+
keyProtection
|
|
12
|
+
upv
|
|
13
|
+
tcDisplay
|
|
14
|
+
authenticationAlgorithms
|
|
15
|
+
publicKeyAlgAndEncodings
|
|
16
|
+
icon
|
|
17
|
+
authenticatorGetInfo
|
|
18
|
+
}
|
|
19
|
+
`;e.s(["default",0,r],2228);let i=t.gql`
|
|
20
|
+
fragment UserFragment on User {
|
|
21
|
+
_id
|
|
22
|
+
lastBillingAddress {
|
|
23
|
+
firstName
|
|
24
|
+
lastName
|
|
25
|
+
company
|
|
26
|
+
addressLine
|
|
27
|
+
addressLine2
|
|
28
|
+
postalCode
|
|
29
|
+
countryCode
|
|
30
|
+
regionCode
|
|
31
|
+
city
|
|
32
|
+
}
|
|
33
|
+
lastContact {
|
|
34
|
+
emailAddress
|
|
35
|
+
telNumber
|
|
36
|
+
}
|
|
37
|
+
lastLogin {
|
|
38
|
+
countryCode
|
|
39
|
+
locale
|
|
40
|
+
remoteAddress
|
|
41
|
+
remotePort
|
|
42
|
+
timestamp
|
|
43
|
+
userAgent
|
|
44
|
+
}
|
|
45
|
+
avatar {
|
|
46
|
+
_id
|
|
47
|
+
name
|
|
48
|
+
size
|
|
49
|
+
type
|
|
50
|
+
url
|
|
51
|
+
}
|
|
52
|
+
paymentCredentials {
|
|
53
|
+
_id
|
|
54
|
+
isValid
|
|
55
|
+
isPreferred
|
|
56
|
+
paymentProvider {
|
|
57
|
+
_id
|
|
58
|
+
type
|
|
59
|
+
interface {
|
|
60
|
+
_id
|
|
61
|
+
label
|
|
62
|
+
version
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
emails {
|
|
67
|
+
verified
|
|
68
|
+
address
|
|
69
|
+
}
|
|
70
|
+
web3Addresses {
|
|
71
|
+
address
|
|
72
|
+
nonce
|
|
73
|
+
verified
|
|
74
|
+
}
|
|
75
|
+
webAuthnCredentials {
|
|
76
|
+
_id
|
|
77
|
+
created
|
|
78
|
+
aaguid
|
|
79
|
+
counter
|
|
80
|
+
mdsMetadata {
|
|
81
|
+
...MD5MetaDataFragment
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
profile {
|
|
85
|
+
displayName
|
|
86
|
+
phoneMobile
|
|
87
|
+
gender
|
|
88
|
+
address {
|
|
89
|
+
firstName
|
|
90
|
+
lastName
|
|
91
|
+
company
|
|
92
|
+
addressLine
|
|
93
|
+
addressLine2
|
|
94
|
+
postalCode
|
|
95
|
+
countryCode
|
|
96
|
+
regionCode
|
|
97
|
+
city
|
|
98
|
+
}
|
|
99
|
+
birthday
|
|
100
|
+
}
|
|
101
|
+
username
|
|
102
|
+
primaryEmail {
|
|
103
|
+
verified
|
|
104
|
+
address
|
|
105
|
+
}
|
|
106
|
+
isGuest
|
|
107
|
+
isInitialPassword
|
|
108
|
+
name
|
|
109
|
+
roles
|
|
110
|
+
tags
|
|
111
|
+
deleted
|
|
112
|
+
cart {
|
|
113
|
+
_id
|
|
114
|
+
items {
|
|
115
|
+
_id
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
orders {
|
|
119
|
+
_id
|
|
120
|
+
items {
|
|
121
|
+
_id
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
${r}
|
|
126
|
+
`;e.s(["default",0,i],73298)},51870,e=>{"use strict";var t=e.i(59080),r=e.i(32171),i=e.i(70693),n=e.i(73298);e.s(["default",0,e=>{let{customProperties:o,hydrateFragment:s}=(0,i.default)(),{data:a,loading:u,error:l}=(0,r.useQuery)(((e="")=>t.gql`
|
|
127
|
+
query CurrentUser {
|
|
128
|
+
me {
|
|
129
|
+
...UserFragment
|
|
130
|
+
allowedActions
|
|
131
|
+
viewerAllowedActions
|
|
132
|
+
${e}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
${n.default}
|
|
136
|
+
`)(o?.User)),c=a?.me,d=s(o?.User,c||null);return{currentUser:c,loading:u,error:l,extendedData:d}}])},55989,48539,e=>{"use strict";var t=e.i(91398),r=e.i(91788),i=e.i(69322),n=e.i(51713),o=e.i(98520),s=e.i(59080),a=e.i(32171);let u=s.gql`
|
|
137
|
+
query ShopInfo {
|
|
138
|
+
shopInfo {
|
|
139
|
+
_id
|
|
140
|
+
version
|
|
141
|
+
language {
|
|
142
|
+
_id
|
|
143
|
+
isoCode
|
|
144
|
+
name
|
|
145
|
+
}
|
|
146
|
+
country {
|
|
147
|
+
_id
|
|
148
|
+
isoCode
|
|
149
|
+
flagEmoji
|
|
150
|
+
name
|
|
151
|
+
defaultCurrency {
|
|
152
|
+
_id
|
|
153
|
+
isoCode
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
adminUiConfig {
|
|
157
|
+
singleSignOnURL
|
|
158
|
+
externalLinks {
|
|
159
|
+
href
|
|
160
|
+
title
|
|
161
|
+
target
|
|
162
|
+
}
|
|
163
|
+
customProperties {
|
|
164
|
+
entityName
|
|
165
|
+
inlineFragment
|
|
166
|
+
}
|
|
167
|
+
productTags
|
|
168
|
+
assortmentTags
|
|
169
|
+
userTags
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
`,l=()=>{let{data:e,loading:t,error:r}=(0,a.useQuery)(u,{fetchPolicy:"cache-first"}),{shopInfo:i}=e||{};return{shopInfo:i,defaultLocale:[i?.language?.isoCode,i?.country?.isoCode?.toUpperCase()].filter(Boolean)?.join("-"),loading:t,error:r}};e.s(["default",0,l],48539);var c=e.i(79684),d=e.i(51870);let f=(0,r.createContext)(void 0);e.s(["AppContextWrapper",0,({children:e,onlyFull:s=!1})=>{let a,{currentUser:u}=(0,d.default)(),h=!!u?._id&&!u?.isGuest,{languages:p}=(0,n.default)({skip:!h}),{locale:y}=(0,i.useIntl)(),[v,b]=(0,c.default)("selectedLocale",null),{shopInfo:g,loading:m}=l(),{countries:_}=(0,o.default)({skip:!h}),[S,w]=(0,r.useState)(y),C=e=>{b(e),w(e)};(0,r.useEffect)(()=>{v?w(v):m||C(`${g?.language?.isoCode}-${g?.country?.isoCode?.toUpperCase()}`)},[g,m,y]);let A=(a=[],p.forEach(({_id:e,isoCode:t})=>{a.push({_id:e,isoCode:t}),_.forEach(({isoCode:r,_id:i})=>{let n=[t,r.toUpperCase()].join("-");(e=>{try{return new Intl.DateTimeFormat(e).resolvedOptions().locale.toLowerCase()===e.toLowerCase()}catch(e){return!1}})(n)&&a.push({_id:`${i}-${e}`,isoCode:n})})}),a).filter(e=>!s||e.isoCode.includes("-")),x=!!g?.language&&!!g?.country;return(0,t.jsx)(f.Provider,{value:{selectedLocale:S,setSelectedLocale:C,languageDialectList:A,isSystemReady:x,shopInfo:g},children:e})},"default",0,f],55989)},79684,e=>{"use strict";var t=e.i(91788);e.s(["default",0,(e,r)=>{let[i,n]=(0,t.useState)(()=>{try{if(window.localStorage){let t=window.localStorage.getItem(e);return t?JSON.parse(t):r}return r}catch(e){return r}});return[i,t=>{try{if(window.localStorage){let r=t instanceof Function?t(i):t;n(r),window.localStorage.setItem(e,JSON.stringify(r))}else console.error("localStorage is not available")}catch(e){console.error(e)}}]}])},77846,e=>{"use strict";var t=e.i(59080);let r=t.gql`
|
|
174
|
+
fragment CountryFragment on Country {
|
|
175
|
+
_id
|
|
176
|
+
isoCode
|
|
177
|
+
isActive
|
|
178
|
+
isBase
|
|
179
|
+
|
|
180
|
+
defaultCurrency {
|
|
181
|
+
_id
|
|
182
|
+
isoCode
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
`;e.s(["default",0,r])},98520,e=>{"use strict";var t=e.i(59080),r=e.i(32171),i=e.i(77846);let n=t.gql`
|
|
186
|
+
query Countries(
|
|
187
|
+
$queryString: String
|
|
188
|
+
$limit: Int
|
|
189
|
+
$offset: Int
|
|
190
|
+
$includeInactive: Boolean
|
|
191
|
+
$sort: [SortOptionInput!]
|
|
192
|
+
) {
|
|
193
|
+
countries(
|
|
194
|
+
queryString: $queryString
|
|
195
|
+
limit: $limit
|
|
196
|
+
offset: $offset
|
|
197
|
+
includeInactive: $includeInactive
|
|
198
|
+
sort: $sort
|
|
199
|
+
) {
|
|
200
|
+
...CountryFragment
|
|
201
|
+
}
|
|
202
|
+
countriesCount(includeInactive: $includeInactive, queryString: $queryString)
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
${i.default}
|
|
206
|
+
`;e.s(["default",0,({queryString:e="",limit:t=20,offset:i=0,includeInactive:o=!0,sort:s=[],skip:a=!1}={})=>{let{data:u,loading:l,error:c,fetchMore:d}=(0,r.useQuery)(n,{variables:{queryString:e,limit:t,offset:i,includeInactive:o,sort:s},errorPolicy:"all",skip:a}),f=u?.countries||[],h=u?.countriesCount,p=f?.length<h;return{countries:f,countriesCount:h,hasMore:p,loading:l,error:c,loadMore:()=>{d({variables:{offset:f?.length}})}}}])},95064,e=>{"use strict";var t=e.i(59080);let r=t.gql`
|
|
207
|
+
fragment LanguageFragment on Language {
|
|
208
|
+
_id
|
|
209
|
+
isoCode
|
|
210
|
+
isActive
|
|
211
|
+
isBase
|
|
212
|
+
name
|
|
213
|
+
}
|
|
214
|
+
`;e.s(["default",0,r])},51713,e=>{"use strict";var t=e.i(59080),r=e.i(32171),i=e.i(95064);let n=t.gql`
|
|
215
|
+
query Languages(
|
|
216
|
+
$queryString: String
|
|
217
|
+
$offset: Int
|
|
218
|
+
$limit: Int
|
|
219
|
+
$includeInactive: Boolean
|
|
220
|
+
$sort: [SortOptionInput!]
|
|
221
|
+
) {
|
|
222
|
+
languages(
|
|
223
|
+
queryString: $queryString
|
|
224
|
+
offset: $offset
|
|
225
|
+
limit: $limit
|
|
226
|
+
includeInactive: $includeInactive
|
|
227
|
+
sort: $sort
|
|
228
|
+
) {
|
|
229
|
+
...LanguageFragment
|
|
230
|
+
}
|
|
231
|
+
languagesCount(includeInactive: $includeInactive, queryString: $queryString)
|
|
232
|
+
}
|
|
233
|
+
${i.default}
|
|
234
|
+
`;e.s(["default",0,({queryString:e="",limit:t=20,offset:i=0,includeInactive:o=!0,sort:s=[],skip:a=!1}={})=>{let{data:u,loading:l,error:c,fetchMore:d}=(0,r.useQuery)(n,{variables:{queryString:e,limit:t,offset:i,includeInactive:o,sort:s},errorPolicy:"all",skip:a}),f=u?.languages||[],h=u?.languagesCount,p=f?.length<h;return{languages:f,languagesCount:h,hasMore:p,loading:l,error:c,loadMore:()=>{d({variables:{offset:f?.length}})}}}])},76810,e=>{"use strict";var t,r;(r=t||(t={}))[r.loading=1]="loading",r[r.setVariables=2]="setVariables",r[r.fetchMore=3]="fetchMore",r[r.refetch=4]="refetch",r[r.poll=6]="poll",r[r.ready=7]="ready",r[r.error=8]="error",r[r.streaming=9]="streaming",e.s(["NetworkStatus",0,t])},1151,e=>{"use strict";let t=Symbol.for("apollo.skipToken");e.s(["skipToken",0,t])},28775,e=>{"use strict";var t=e.i(24669),r=e.i(91788);e.s(["useDeepMemo",0,function(e,i){let n=r.useRef(void 0);return n.current&&(0,t.equal)(n.current.deps,i)||(n.current={value:e(),deps:i}),n.current.value}])},97046,e=>{"use strict";var t=e.i(91788);let r=Symbol.for("apollo.hook.wrappers");var i=e.i(21805);e.s(["wrapHook",0,function(e,n,o){let s=[o.queryManager,e.startsWith("use")?t.useContext((0,i.getApolloContext)()):void 0],a=n;for(let t of s){let i=t?.[r]?.[e];i&&(a=i(a))}return a}],97046)},32171,e=>{"use strict";var t=e.i(24669),r=e.i(91788),i=e.i(18018),n=e.i(32106),o=e.i(76810),s=e.i(91584),a=e.i(30928),u=e.i(15953),l=e.i(1151),c=e.i(28775),d=e.i(97046),f=e.i(98926),h=e.i(32854);let p=Symbol(),y=function(e,...[t]){return(0,d.wrapHook)("useQuery",v,(0,f.useApolloClient)("object"==typeof t?t.client:void 0))(e,t)};function v(e,o={}){var s,d,g,m,_,S,w,C;let A,x=(0,f.useApolloClient)("object"==typeof o?o.client:void 0),{ssr:I}="object"==typeof o?o:{},P=(s=e,d=o,g=x.defaultOptions.watchQuery,(0,c.useDeepMemo)(()=>{if(d===l.skipToken){let e={...(0,a.mergeOptions)(g,{query:s,fetchPolicy:"standby"}),[u.variablesUnknownSymbol]:!0};return e[b]=!0,e}let e=(0,a.mergeOptions)(g,{...d,query:s});return d.skip&&(e.initialFetchPolicy=d.initialFetchPolicy||d.fetchPolicy,e.fetchPolicy="standby"),e},[s,d,g]));function E(t){let r=x.watchQuery(P);return{client:x,query:e,observable:r,resultData:{current:r.getCurrentResult(),previousData:t?.resultData.current.data,variables:r.variables}}}let[q,T]=r.useState(E);(x!==q.client||e!==q.query)&&T(q=E(q));let{observable:O,resultData:$}=q;m=P,_=O,m.fetchPolicy||(m.fetchPolicy=_.options.initialFetchPolicy),function(e,r,i){if(r[p]&&!(0,t.equal)(r[p],i)){var n,o;r[p][b]&&!i.initialFetchPolicy&&(i.initialFetchPolicy=i.fetchPolicy),(n=r[p],o=i,n.query===o.query&&(0,t.equal)(n.variables,o.variables)&&(n.fetchPolicy===o.fetchPolicy||"standby"!==o.fetchPolicy&&"standby"!==n.fetchPolicy))?r.applyOptions(i):r.reobserve(i);let s=r.getCurrentResult();(0,t.equal)(s.data,e.current.data)||(e.previousData=e.current.data||e.previousData),e.current=s,e.variables=r.variables}r[p]=i}($,O,P);let F=(S=O,w=$,C=I,A=S.options.fetchPolicy,(0,h.useSyncExternalStore)(r.useCallback(e=>{let r=S.pipe((0,n.observeOn)(i.asapScheduler)).subscribe(r=>{let i=w.current;(0,t.equal)(i,r)&&(0,t.equal)(w.variables,S.variables)||(w.variables=S.variables,i.data&&!(0,t.equal)(i.data,r.data)&&(w.previousData=i.data),w.current=r,e())});return()=>{setTimeout(()=>r.unsubscribe())}},[S,w]),()=>w.current,()=>"standby"!==A&&!1===C||"no-cache"===A?y.ssrDisabledResult:w.current)),k=r.useMemo(()=>({refetch:O.refetch.bind(O),fetchMore:O.fetchMore.bind(O),updateQuery:O.updateQuery.bind(O),startPolling:O.startPolling.bind(O),stopPolling:O.stopPolling.bind(O),subscribeToMore:O.subscribeToMore.bind(O)}),[O]),D=$.previousData;return r.useMemo(()=>{let{partial:e,...t}=F;return{...t,client:x,observable:O,variables:O.variables,previousData:D,...k}},[F,x,O,D,k])}let b=Symbol();y.ssrDisabledResult=(0,s.maybeDeepFreeze)({loading:!0,data:void 0,dataState:"empty",error:void 0,networkStatus:o.NetworkStatus.loading,partial:!0}),e.s(["useQuery",0,y])},32854,e=>{"use strict";var t=e.i(91788),r=e.i(29520),i=e.i(21953),n=e.i(22420),o=e.i(93532);let s=!1,a=t.useSyncExternalStore,u="ReactNative"==(0,n.maybe)(()=>navigator.product),l=(0,n.maybe)(()=>navigator.userAgent.indexOf("jsdom")>=0)||!1,c=(i.canUseDOM||u)&&!l,d=a||((e,i,n)=>{let a=i();r.__DEV__&&!s&&a!==i()&&(s=!0,o.invariant.error(36));let[{inst:u},l]=t.useState({inst:{value:a,getSnapshot:i}});return c?t.useLayoutEffect(()=>{Object.assign(u,{value:a,getSnapshot:i}),f(u)&&l({inst:u})},[e,a,i]):Object.assign(u,{value:a,getSnapshot:i}),t.useEffect(()=>(f(u)&&l({inst:u}),e(function(){f(u)&&l({inst:u})})),[e]),a});function f({value:e,getSnapshot:t}){try{return e!==t()}catch{return!0}}e.s(["useSyncExternalStore",0,d])},91584,66930,15953,e=>{"use strict";var t=e.i(29520);function r(e){return null!==e&&"object"==typeof e}e.s(["isNonNullObject",0,r],66930),e.s(["maybeDeepFreeze",0,function(e){let i;return t.__DEV__&&(i=new Set([e])).forEach(e=>{r(e)&&function(e){if(t.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(t=>{r(e[t])&&i.add(e[t])})}),e}],91584);let i=Symbol.for("apollo.result.extensions"),n=Symbol.for("apollo.result.streamInfo"),o=Symbol.for("apollo.observableQuery.variablesUnknown"),s=Symbol.for("apollo.cache.handleIncremental");e.s(["extensionsSymbol",0,i,"handleIncrementalSymbol",0,s,"streamInfoSymbol",0,n,"variablesUnknownSymbol",0,o],15953)},61340,57070,72572,e=>{"use strict";var t=e.i(89280),r=e.i(49363);function i(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}e.s(["createErrorClass",0,i],57070);var n=i(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function o(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}e.s(["arrRemove",0,o],72572);var s=function(){var e;function i(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,i,o,s,a,l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=(0,t.__values)(l),d=c.next();!d.done;d=c.next())d.value.remove(this)}catch(t){e={error:t}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(e)throw e.error}}else l.remove(this);var f=this.initialTeardown;if((0,r.isFunction)(f))try{f()}catch(e){a=e instanceof n?e.errors:[e]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var p=(0,t.__values)(h),y=p.next();!y.done;y=p.next()){var v=y.value;try{u(v)}catch(e){a=null!=a?a:[],e instanceof n?a=(0,t.__spreadArray)((0,t.__spreadArray)([],(0,t.__read)(a)),(0,t.__read)(e.errors)):a.push(e)}}}catch(e){o={error:e}}finally{try{y&&!y.done&&(s=p.return)&&s.call(p)}finally{if(o)throw o.error}}}if(a)throw new n(a)}},i.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)u(e);else{if(e instanceof i){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},i.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},i.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},i.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&o(t,e)},i.prototype.remove=function(e){var t=this._finalizers;t&&o(t,e),e instanceof i&&e._removeParent(this)},(e=new i).closed=!0,i.EMPTY=e,i}(),a=s.EMPTY;function u(e){(0,r.isFunction)(e)?e():e.unsubscribe()}e.s(["EMPTY_SUBSCRIPTION",0,a,"Subscription",0,s,"isSubscription",0,function(e){return e instanceof s||e&&"closed"in e&&(0,r.isFunction)(e.remove)&&(0,r.isFunction)(e.add)&&(0,r.isFunction)(e.unsubscribe)}],61340)},99657,80406,33229,58365,13616,e=>{"use strict";var t=e.i(89280),r=e.i(49363),i=e.i(61340),n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};e.s(["config",0,n],80406);var o={setTimeout:function(e,r){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var s=o.delegate;return(null==s?void 0:s.setTimeout)?s.setTimeout.apply(s,(0,t.__spreadArray)([e,r],(0,t.__read)(i))):setTimeout.apply(void 0,(0,t.__spreadArray)([e,r],(0,t.__read)(i)))},clearTimeout:function(e){var t=o.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function s(e){o.setTimeout(function(){var t=n.onUnhandledError;if(t)t(e);else throw e})}function a(){}e.s(["reportUnhandledError",0,s],33229);var u=l("C",void 0,void 0);function l(e,t,r){return{kind:e,value:t,error:r}}var c=null;function d(e){n.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=e)}e.s(["captureError",0,d,"errorContext",0,function(e){if(n.useDeprecatedSynchronousErrorHandling){var t=!c;if(t&&(c={errorThrown:!1,error:null}),e(),t){var r=c,i=r.errorThrown,o=r.error;if(c=null,i)throw o}}else e()}],58365);var f=function(e){function r(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,(0,i.isSubscription)(t)&&t.add(r)):r.destination=m,r}return(0,t.__extends)(r,e),r.create=function(e,t,r){return new v(e,t,r)},r.prototype.next=function(e){this.isStopped?g(l("N",e,void 0),this):this._next(e)},r.prototype.error=function(e){this.isStopped?g(l("E",void 0,e),this):(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped?g(u,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(i.Subscription),h=Function.prototype.bind;function p(e,t){return h.call(e,t)}var y=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){b(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){b(e)}else b(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){b(e)}},e}(),v=function(e){function i(t,i,o){var s,a,u=e.call(this)||this;return(0,r.isFunction)(t)||!t?s={next:null!=t?t:void 0,error:null!=i?i:void 0,complete:null!=o?o:void 0}:u&&n.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return u.unsubscribe()},s={next:t.next&&p(t.next,a),error:t.error&&p(t.error,a),complete:t.complete&&p(t.complete,a)}):s=t,u.destination=new y(s),u}return(0,t.__extends)(i,e),i}(f);function b(e){n.useDeprecatedSynchronousErrorHandling?d(e):s(e)}function g(e,t){var r=n.onStoppedNotification;r&&o.setTimeout(function(){return r(e,t)})}var m={closed:!0,next:a,error:function(e){throw e},complete:a};e.s(["SafeSubscriber",0,v,"Subscriber",0,f],13616);var _=function(e){function r(t,r,i,n,o,s){var a=e.call(this,t)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=n?function(e){try{n(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=i?function(){try{i()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return(0,t.__extends)(r,e),r.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null==(t=this.onFinalize)||t.call(this)}},r}(f);e.s(["createOperatorSubscriber",0,function(e,t,r,i,n){return new _(e,t,r,i,n)}],99657)},32106,e=>{"use strict";var t=e.i(95065),r=e.i(81288),i=e.i(99657);e.s(["observeOn",0,function(e,n){return void 0===n&&(n=0),(0,r.operate)(function(r,o){r.subscribe((0,i.createOperatorSubscriber)(o,function(r){return(0,t.executeSchedule)(o,e,function(){return o.next(r)},n)},function(){return(0,t.executeSchedule)(o,e,function(){return o.complete()},n)},function(r){return(0,t.executeSchedule)(o,e,function(){return o.error(r)},n)}))})}])},42410,e=>{"use strict";var t,r=e.i(89280),i=e.i(87268),n=1,o={};function s(e){return e in o&&(delete o[e],!0)}var a=function(e){var r=n++;return o[r]=!0,t||(t=Promise.resolve()),t.then(function(){return s(r)&&e()}),r},u=function(e){s(e)},l={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=l.delegate;return((null==i?void 0:i.setImmediate)||a).apply(void 0,(0,r.__spreadArray)([],(0,r.__read)(e)))},clearImmediate:function(e){var t=l.delegate;return((null==t?void 0:t.clearImmediate)||u)(e)},delegate:void 0},c=function(e){function t(t,r){var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i}return(0,r.__extends)(t,e),t.prototype.requestAsyncId=function(t,r,i){return(void 0===i&&(i=0),null!==i&&i>0)?e.prototype.requestAsyncId.call(this,t,r,i):(t.actions.push(this),t._scheduled||(t._scheduled=l.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,i){if(void 0===i&&(i=0),null!=i?i>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,i);var n,o=t.actions;null!=r&&(null==(n=o[o.length-1])?void 0:n.id)!==r&&(l.clearImmediate(r),t._scheduled===r&&(t._scheduled=void 0))},t}(i.AsyncAction);e.s(["AsapAction",0,c],42410)},87268,e=>{"use strict";var t=e.i(89280),r=function(e){function r(t,r){return e.call(this)||this}return(0,t.__extends)(r,e),r.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},r}(e.i(61340).Subscription),i={setInterval:function(e,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var s=i.delegate;return(null==s?void 0:s.setInterval)?s.setInterval.apply(s,(0,t.__spreadArray)([e,r],(0,t.__read)(n))):setInterval.apply(void 0,(0,t.__spreadArray)([e,r],(0,t.__read)(n)))},clearInterval:function(e){var t=i.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},n=e.i(72572),o=function(e){function r(t,r){var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i.pending=!1,i}return(0,t.__extends)(r,e),r.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r,i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,t)),this.pending=!0,this.delay=t,this.id=null!=(r=this.id)?r:this.requestAsyncId(n,this.id,t),this},r.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),i.setInterval(e.flush.bind(e,this),r)},r.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&i.clearInterval(t)},r.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},r.prototype._execute=function(e,t){var r,i=!1;try{this.work(e)}catch(e){i=!0,r=e||Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r},r.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,i=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,n.arrRemove)(i,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},r}(r);e.s(["AsyncAction",0,o],87268)},12884,e=>{"use strict";var t=e.i(89280),r=e.i(68827),i=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=r.dateTimestampProvider.now,e}(),n=function(e){function r(t,r){void 0===r&&(r=i.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return(0,t.__extends)(r,e),r.prototype.flush=function(e){var t,r=this.actions;if(this._active)return void r.push(e);this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift())if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},r}(i);e.s(["AsyncScheduler",0,n],12884)},18018,e=>{"use strict";var t=e.i(42410),r=e.i(89280),i=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.flush=function(e){this._active=!0;var t,r=this._scheduled;this._scheduled=void 0;var i=this.actions;e=e||i.shift();do if(t=e.execute(e.state,e.delay))break;while((e=i[0])&&e.id===r&&i.shift())if(this._active=!1,t){for(;(e=i[0])&&e.id===r&&i.shift();)e.unsubscribe();throw t}},t}(e.i(12884).AsyncScheduler))(t.AsapAction);e.s(["asapScheduler",0,i],18018)},68827,e=>{"use strict";var t={now:function(){return(t.delegate||Date).now()},delegate:void 0};e.s(["dateTimestampProvider",0,t])},95065,e=>{"use strict";e.s(["executeSchedule",0,function(e,t,r,i,n){void 0===i&&(i=0),void 0===n&&(n=!1);var o=t.schedule(function(){r(),n?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(o),!n)return o}])},49363,e=>{"use strict";e.s(["isFunction",0,function(e){return"function"==typeof e}])},81288,e=>{"use strict";var t=e.i(49363);e.s(["operate",0,function(e){return function(r){if((0,t.isFunction)(null==r?void 0:r.lift))return r.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}])}]);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,6634,e=>{"use strict";var t=e.i(91398),r=e.i(56206),a=e.i(3828),l=e.i(83147);e.s(["default",0,({toggleText:e="",toggleKey:s=null,onToggle:i=null,active:o=!1,className:n="",disabled:u=!1,...d})=>{let c=(0,a.useRouter)(),f=c?.query?.[s]==="true"||o;return(0,t.jsxs)("div",{className:(0,r.default)("",n),children:[(0,t.jsxs)("button",{id:s,disabled:u,type:"button",className:(0,r.default)("relative inline-flex h-3.5 w-9 shrink-0 cursor-pointer rounded-full border-1 border-transparent transition-all duration-200 ease-in-out focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2",{"bg-slate-200 dark:bg-slate-700":!f,"bg-emerald-500 dark:bg-emerald-600 shadow-sm":f}),role:"switch",onClick:i||(()=>{let{skip:e,...t}=c.query;c.push({query:(0,l.normalizeQuery)(t,!f,s)})}),"aria-checked":f?"true":"false",...d,children:[(0,t.jsx)("span",{className:"sr-only",children:e}),(0,t.jsxs)("span",{className:(0,r.default)("ml-0.5 pointer-events-none relative inline-block h-3 w-3 transform rounded-full bg-white shadow-sm ring-0 transition-all duration-200 ease-in-out",{"translate-x-5 shadow-md":f,"translate-x-0":!f}),children:[(0,t.jsx)("span",{className:(0,r.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-0 duration-100 ease-out":f,"opacity-100 duration-200 ease-in":!f}),"aria-hidden":"true",children:(0,t.jsx)("svg",{className:"h-3 w-3 text-slate-400",fill:"none",viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)("span",{className:(0,r.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-100 duration-200 ease-in":f,"opacity-0 duration-100 ease-out":!f}),"aria-hidden":"true",children:(0,t.jsx)("svg",{className:"h-3 w-3 text-emerald-500",fill:"currentColor",viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"})})})]})]}),(0,t.jsx)("span",{className:"ml-3",id:"annual-billing-label",children:(0,t.jsx)("span",{className:"text-sm font-medium text-text-primary",children:e})})]})}])},54879,e=>{"use strict";var t=e.i(91398),r=e.i(56206);e.s(["default",0,({children:e,className:a,error:l,disabled:s,required:i,name:o,label:n,hideLabel:u,labelClassName:d})=>(0,t.jsxs)("div",{className:(0,r.default)("container",{"is-invalid":!!l,disabled:s,required:i},a),children:[(0,t.jsx)("label",{"aria-label":n,htmlFor:o,className:(0,r.default)("mb-2 block text-left text-sm font-light text-text-secondary",{"mt-1 rounded-sm border border-rose-100 dark:border-rose-800 bg-rose-50 dark:bg-rose-900/20 p-2 pl-4 text-rose-700 dark:text-rose-400":!!l,"sr-only":u},d),children:l||n}),e]})])},10685,e=>{"use strict";var t=e.i(91398),r=e.i(56206),a=e.i(60741),l=e.i(54879);e.s(["default",0,e=>{let{options:s,...i}=(0,a.default)(e),{className:o}=e||{className:""};return(0,t.jsx)(l.default,{...i,children:(0,t.jsx)("div",{className:"select-wrap",children:(0,t.jsxs)("select",{className:(0,r.default)("block w-full dark:bg-slate-900 dark:text-white rounded-md border-1 border-border-default py-2.5 pl-3 pr-10 text-base text-black shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring sm:text-sm",o,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!i.error}),disabled:i.disabled,id:i.name,name:i.name,onChange:i.onChange,onBlur:i.onBlur,value:i.value,children:[(0,t.jsx)("option",{className:"dark:text-slate-200",value:"",disabled:i.required,hidden:i.required,children:i.placeholder||i.label}),Object.entries(s).map(([e,r])=>(0,t.jsx)("option",{className:"dark:text-slate-200",value:e,children:r},e))]})})})}])},21128,e=>{"use strict";var t=e.i(91398),r=e.i(56206),a=e.i(58021),l=e.i(61898);e.s(["default",0,({label:e,disabled:s=!1,className:i="",hidden:o=!1,...n})=>{let{formState:u}=(0,a.useFormContext)(),{...d}=n,c=Object.keys(u.errors).length>0&&Object.values(u.errors).some(e=>!!e),{disabled:f}=(0,l.default)(),m=s||f||u.isSubmitting||c,g=u.isSubmitting&&!c,y=(s||f||c)&&!u.isSubmitting;return(0,t.jsx)("input",{className:(0,r.default)("inline-flex cursor-pointer justify-center rounded-sm border border-slate-300 px-4 py-2 text-center text-sm font-medium leading-5 shadow-sm hover:shadow-md focus:ring-focus-ring",i,{"bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900":y,"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600":g,"bg-accent text-text-on-accent hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent":!m,hidden:o}),"aria-label":e,type:"submit",value:e,disabled:m,...d})}])},16984,e=>{"use strict";var t=e.i(91398),r=e.i(56206),a=e.i(82226),l=e.i(60741),s=e.i(54879);e.s(["default",0,({maxLength:e=0,validators:i=[],...o})=>{let n=(0,l.default)({validators:[...i,e&&(0,a.validateMaxLength)(e)],...o});return(0,t.jsx)(s.default,{...n,children:(0,t.jsx)("input",{className:(0,r.default)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-600 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 focus:outline-hidden focus:ring-2 focus:ring-focus-ring shadow-xs",{"border-rose-700 placeholder:text-rose-500":!!n.error,"border-slate-300 placeholder-slate-400":!n.error}),disabled:n.disabled,id:n.name,name:n.name,onChange:n.onChange,onClick:e=>{e.stopPropagation()},onBlur:n.onBlur,placeholder:n.placeholder,autoComplete:n.autoComplete||"off",type:n.type||"text",value:n.value,autoFocus:n.autoFocus})})}])},5505,e=>{"use strict";var t=e.i(91398),r=e.i(91788),a=e.i(56206);let l=(0,r.createContext)(!1);e.s(["FormWrapperContext",0,l,"default",0,({children:e,className:r=""})=>(0,t.jsx)(l.Provider,{value:!0,children:(0,t.jsx)("div",{className:"sm:max-w-full",children:(0,t.jsx)("div",{className:(0,a.default)("bg-surface rounded-md shadow-sm overflow-hidden",r),children:e})})})])},1504,e=>{"use strict";e.s(["default",0,(e,t,r)=>Object.assign({},...e?.map(e=>({[e[r]]:e[t]}))||[])])},73319,e=>{"use strict";let t=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["extractQuery",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"isObject",0,t,"isTruthy",0,e=>!(!e||null==e||t(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},80689,e=>{"use strict";var t=e.i(91398),r=e.i(69322);e.i(51523);var a=e.i(19518),l=e.i(58971),s=e.i(1504),i=e.i(79093),o=e.i(6634),n=e.i(69211),u=e.i(10685),d=e.i(21128),c=e.i(16984),f=e.i(98949),m=e.i(82226);e.s(["default",0,({onSubmit:e,onSubmitSuccess:g=null,defaultValue:y={},isEdit:p=!1})=>{let{formatMessage:h}=(0,r.useIntl)(),{hasRole:b}=(0,l.default)(),x=h({id:"country_added",defaultMessage:"Country added successfully!"}),v=h({id:"country_updated",defaultMessage:"Country updated successfully!"}),{currencies:_}=(0,i.default)(),C=(0,f.default)({submit:e,onSubmitSuccess:g,successMessage:p?v:x,getSubmitErrorMessage:e=>{if(e?.message?.includes("duplicate key"))return C.api.setFieldError("isoCode",h({id:"country_exists",defaultMessage:"Country with the same ISO code already exists"})),null},enableReinitialize:!0,initialValues:{isoCode:"",...y}});return(0,t.jsxs)(n.default,{form:C,children:[(0,t.jsxs)("div",{className:"p-5 pb-7",children:[(0,t.jsx)(c.default,{name:"isoCode",id:"isoCode",validators:[(0,m.validateCountry)()],disabled:!b(a.IRoleAction.ManageCountries),label:h({id:"iso_code",defaultMessage:"ISO code"}),required:!0,autoComplete:"on"}),p&&(0,t.jsxs)("div",{className:"my-3 min-w-0 flex-1",children:[(0,t.jsx)(u.default,{name:"defaultCurrencyCode",disabled:!b(a.IRoleAction.ManageCountries),id:"defaultCurrencyCode",label:h({id:"default_currency",defaultMessage:"Default currency"}),options:(0,s.default)(_,"isoCode","isoCode"),className:"mb-2 text-sm"}),(0,t.jsx)(o.default,{toggleText:h({id:"active",defaultMessage:"Active"}),disabled:!b(a.IRoleAction.ManageCountries),active:C.api.values.isActive,onToggle:()=>C.api.setFieldValue("isActive",!C.api.values.isActive)})]})]}),b(a.IRoleAction.ManageCountries)&&(0,t.jsx)("div",{className:"space-y-6 border-t border-t-border-subtle bg-surface-subtle p-5 text-right",children:(0,t.jsx)(d.default,{label:p?h({id:"update_country",defaultMessage:"Update Country"}):h({id:"add_country",defaultMessage:"Add Country"})})})]})}])},97118,e=>{"use strict";var t=e.i(59080),r=e.i(32171),a=e.i(70693),l=e.i(77846);e.s(["default",0,({countryId:e})=>{let{customProperties:s}=(0,a.default)(),{data:i,loading:o,error:n}=(0,r.useQuery)(((e="")=>t.gql`
|
|
2
|
+
query Country($countryId: ID!) {
|
|
3
|
+
country(countryId: $countryId) {
|
|
4
|
+
...CountryFragment
|
|
5
|
+
${e}
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
${l.default}
|
|
9
|
+
`)(s?.Country),{skip:!e,variables:{countryId:e}});return{country:i?.country,loading:o,error:n}}])},71846,e=>{"use strict";var t=e.i(59080),r=e.i(76204),a=e.i(77846);let l=t.gql`
|
|
10
|
+
mutation RemoveCountry($countryId: ID!) {
|
|
11
|
+
removeCountry(countryId: $countryId) {
|
|
12
|
+
...CountryFragment
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
${a.default}
|
|
16
|
+
`;e.s(["default",0,()=>{let[e]=(0,r.useMutation)(l);return{removeCountry:async({countryId:t})=>e({variables:{countryId:t},refetchQueries:["Countries","ShopStatus","ShopInfo"]})}}])},68191,e=>{"use strict";var t=e.i(59080);let r=t.gql`
|
|
17
|
+
fragment CurrencyFragment on Currency {
|
|
18
|
+
_id
|
|
19
|
+
isoCode
|
|
20
|
+
isActive
|
|
21
|
+
contractAddress
|
|
22
|
+
decimals
|
|
23
|
+
}
|
|
24
|
+
`;e.s(["default",0,r])},79093,e=>{"use strict";var t=e.i(59080),r=e.i(32171),a=e.i(68191);let l=t.gql`
|
|
25
|
+
query Currencies(
|
|
26
|
+
$queryString: String
|
|
27
|
+
$limit: Int
|
|
28
|
+
$offset: Int
|
|
29
|
+
$includeInactive: Boolean
|
|
30
|
+
$sort: [SortOptionInput!]
|
|
31
|
+
) {
|
|
32
|
+
currencies(
|
|
33
|
+
queryString: $queryString
|
|
34
|
+
limit: $limit
|
|
35
|
+
offset: $offset
|
|
36
|
+
includeInactive: $includeInactive
|
|
37
|
+
sort: $sort
|
|
38
|
+
) {
|
|
39
|
+
...CurrencyFragment
|
|
40
|
+
}
|
|
41
|
+
currenciesCount(
|
|
42
|
+
includeInactive: $includeInactive
|
|
43
|
+
queryString: $queryString
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
${a.default}
|
|
47
|
+
`;e.s(["default",0,({queryString:e="",limit:t=20,offset:a=0,includeInactive:s=!0,sort:i=[]}={})=>{let{data:o,loading:n,error:u,fetchMore:d}=(0,r.useQuery)(l,{variables:{queryString:e,limit:t,offset:a,includeInactive:s,sort:i}}),c=o?.currencies||[],f=o?.currenciesCount,m=c?.length<f;return{currencies:c,currenciesCount:f,hasMore:m,loading:n,error:u,loadMore:()=>{d({variables:{offset:c?.length}})}}}])},69211,e=>{"use strict";var t=e.i(91398),r=e.i(58021),a=e.i(60170);e.s(["default",0,({form:e,children:l,className:s="",...i})=>(0,t.jsx)(a.default.Provider,{value:e,children:(0,t.jsx)(r.FormProvider,{...e.rhf,children:(0,t.jsx)("form",{onReset:()=>e.api.handleReset(),onSubmit:e.api.handleSubmit,method:"POST",className:s,...i,children:l})})})])},60741,e=>{"use strict";var t=e.i(91788),r=e.i(69322),a=e.i(58021),l=e.i(82226),s=e.i(61898);e.s(["default",0,e=>{let i=(0,r.useIntl)(),{rhf:o,...n}=(0,s.default)(),{name:u,required:d,errorMessage:c,disabled:f=n.disabled||o?.formState?.isSubmitting,label:m=i.formatMessage({id:u,defaultMessage:"default_input_name",description:"DO not translate Skip this as it's the default given label when a component is not provided explicit label"}),validators:g=[]}=e,y=[...g,d&&l.validateRequired].filter(Boolean),p=e=>y.reduce((t,{isValid:r,intlMessageDescriptor:a,intlMessageValues:l})=>t||r(e)?t:c||i.formatMessage(a,{label:m,...l}),""),h=(0,t.useRef)(p);h.current=p;let{field:b,fieldState:x,formState:v}=(0,a.useController)({name:u,control:o?.control,rules:{validate:e=>h.current(e)||!0}}),_=(x.isTouched||v.isSubmitted)&&x.error?.message;return{...e,name:u,error:_,label:m,disabled:f,required:d,onChange:t=>{if(e.onChange&&e.onChange(t),"number"===e.type){let e=t?.target?.value,r=""===e||null==e?null:Number(e);b.onChange(r)}else b.onChange(t)},onBlur:b.onBlur,value:null==b.value?"":b.value,setValue:(e,t)=>{o?.setValue(u,e,{shouldDirty:!0,shouldValidate:t??!1})},setError:e=>{e?o?.setError(u,{type:"manual",message:e}):o?.clearErrors(u)},setTouched:e=>{e&&o?.trigger(u)}}}])},98949,e=>{"use strict";var t=e.i(91788),r=e.i(58021),a=e.i(69322),l=e.i(28401),s=e.i(73319);let i=e=>""===e||"string"==typeof e&&e?.trim()===""?null:"string"==typeof e&&e.length?e.trim():Array.isArray(e)&&e?.length&&"string"==typeof e[0]?e.map(e=>i(e)):Array.isArray(e)&&e?.length&&(0,s.isObject)(e[0])?e.map(e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[e,i(t)]))):e,o=e=>e&&"object"==typeof e?"string"==typeof e.message&&e.message?e.message:Array.isArray(e)?e.map(e=>o(e)):Object.fromEntries(Object.entries(e).filter(([e])=>"ref"!==e).map(([e,t])=>[e,o(t)])):e;e.s(["default",0,({submit:e,getSubmitErrorMessage:s=()=>"",onSubmitSuccess:n=()=>!0,initialValues:u,initialErrors:d,initialTouched:c,successMessage:f,enableReinitialize:m,validate:g,disabled:y=!1})=>{let p=(0,a.useIntl)(),[h,b]=(0,t.useState)(""),x=(0,r.useForm)({mode:"onTouched",defaultValues:u,values:m?u:void 0,errors:d?Object.fromEntries(Object.entries(d).map(([e,t])=>[e,{type:"manual",message:t}])):void 0}),v=(0,t.useCallback)(e=>{let t=e?.errors?.[0];return p.formatMessage({id:"error_server",defaultMessage:"{details}"},{details:t?.message||""})},[p]),_=(0,t.useCallback)(async t=>{let r=!0;try{let a=await e(Object.fromEntries(Object.entries(t).map(([e,t])=>[e,i(t)]))),o=("boolean"==typeof a?a:a?.success)??!a?.error;if(o)f&&l.toast.success(f),await n(o,a?.data||t);else{let e="boolean"==typeof a?!a:a?.error;Array.isArray(e)?e.forEach(e=>{r=!1,b(s(e)||v(e))}):(r=!1,b(s(e)||v(e)))}}catch(e){r=!1,b(s(e)||v(e))}r&&b("")},[e,f,n,s,v]);return{submitError:h,api:(0,t.useMemo)(()=>({setFieldError:(e,t)=>{x.setError(e,{type:"manual",message:t})},setFieldValue:(e,t)=>{x.setValue(e,t,{shouldDirty:!0,shouldTouch:!0})},setValues:e=>{x.reset(e,{keepDirtyValues:!1,keepErrors:!1})},get values(){return x.getValues()},get isValid(){return x.formState.isValid},get isSubmitting(){return x.formState.isSubmitting},handleSubmit:x.handleSubmit(_),handleReset:()=>{x.reset()},resetForm:e=>{x.reset(e||u)},submitForm:()=>{x.handleSubmit(_)()},getFieldMeta:e=>{let t=x.getFieldState(e,x.formState);return{error:t.error?.message,touched:t.isTouched}},get initialValues(){return u},get errors(){return o(x.formState.errors)}}),[x,_,u]),rhf:x,setSubmitError:b,disabled:y}}],98949)},61898,e=>{"use strict";var t=e.i(91788),r=e.i(60170);e.s(["default",0,()=>(0,t.useContext)(r.default)])},60170,e=>{"use strict";let t=e.i(91788).default.createContext({submitError:"",rhf:null,api:null,setSubmitError:()=>{},disabled:!1});e.s(["default",0,t])},82226,e=>{"use strict";var t=e.i(73663),r=e.i(12051),a=e.i(35113),l=e.i(9356),s=e.i(49543);e.i(69322);let i=["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GH","GI","GL","GM","GN","GQ","GR","GT","GU","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IM","IN","IQ","IR","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SK","SL","SM","SN","SO","SR","ST","SV","SY","SZ","TC","TD","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],o=["ab","aa","af","ak","sq","am","ar","an","hy","as","av","ae","ay","az","bm","ba","eu","be","bn","bh","bi","bs","br","bg","my","ca","ch","ce","ny","zh","cv","kw","co","cr","hr","cs","da","dv","nl","en","eo","et","ee","fo","fj","fi","fr","ff","gl","ka","de","el","gn","gu","ht","ha","he","hz","hi","ho","hu","ia","id","ie","ga","ig","ik","io","is","it","iu","ja","jv","kl","kn","kr","ks","kk","km","ki","rw","ky","kv","kg","ko","ku","kj","la","lb","lg","li","ln","lo","lt","lu","lv","gv","mk","mg","ms","ml","mt","mi","mr","mh","mn","na","nv","nb","nd","ne","ng","nn","no","ii","nr","oc","oj","cu","om","or","os","pa","pi","fa","pl","ps","pt","qu","rm","rn","ro","ru","sa","sc","sd","se","sm","sg","sr","gd","sn","si","sk","sl","so","st","es","su","sw","ss","sv","ta","te","tg","th","ti","bo","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","cy","wo","fy","xh","yi","yo","za"];e.s(["isContractAddress",0,(e=!1)=>({isValid:t=>!e&&!t||/^(0x)?[a-z0-9]{40}$/i.test(t),intlMessageDescriptor:{id:"error_contract_address",defaultMessage:"Invalid contract address"}}),"validateBirthdate",0,{isValid:e=>{if(!e)return!0;let t=new Date(e);if(!(0,l.isValid)(t))return!1;let r=(0,s.startOfDay)(new Date);return!(+(0,a.toDate)(t)>+(0,a.toDate)(r))},intlMessageDescriptor:{id:"error_birthdate_in_future",defaultMessage:"{label} cannot be in the future"}},"validateCountry",0,()=>({isValid:e=>i.includes(e.toUpperCase()),intlMessageDescriptor:{id:"error_country_code",defaultMessage:"Invalid country code"}}),"validateDate",0,{isValid:e=>!e||(0,l.isValid)(new Date(e)),intlMessageDescriptor:{id:"error_invalid_date",defaultMessage:"{label} is not a valid date"}},"validateEmail",0,{isValid:e=>(0,r.default)(e||""),intlMessageDescriptor:{id:"error_email",defaultMessage:"{label} must be a valid email address"}},"validateInteger",0,()=>({isValid:e=>null==e||""===e||!Number.isNaN(e)&&Number.isInteger(Number(e)),intlMessageDescriptor:{id:"error_number_not_int",defaultMessage:"Invalid value please provide integer value"}}),"validateLanguage",0,()=>({isValid:e=>o.includes(e?.toLowerCase()),intlMessageDescriptor:{id:"error_language_code",defaultMessage:"Invalid language code"}}),"validateMaxLength",0,e=>({isValid:r=>(0,t.default)(r||"",{max:e}),intlMessageDescriptor:{id:"error_max_length"},intlMessageValues:{maxLength:e.toString()}}),"validateProductCommerce",0,(e,t)=>({isValid:()=>{let r="function"==typeof t?t():t;if(!r?.length||r?.length===1)return!0;let a=r[e];return r.filter((t,r)=>r!==e).every(({minQuantity:e,countryCode:t,currencyCode:r})=>e!==a?.minQuantity||t!==a?.countryCode||r!==a?.currencyCode)},intlMessageDescriptor:{id:"error_same_product_prices",defaultMessage:"{label} can not be equal for a price with the same country and currency"}}),"validateProductCommerceOneZero",0,e=>({isValid:()=>{let t="function"==typeof e?e():e;if(!t?.length)return!0;let r=e=>null===e||""===e||void 0===e||0===Number(e);return(1!==t.length||!!r(t[0].minQuantity))&&t.filter(({minQuantity:e})=>r(e))?.length===1},intlMessageDescriptor:{id:"error_commerce_quantity_null_required",defaultMessage:"{label} should have one price with min quantity of 0 or empty"}}),"validateRequired",0,{isValid:e=>"string"==typeof e?e.trim().length>0:"number"==typeof e||(Array.isArray(e)?e.length>0:!!e),intlMessageDescriptor:{id:"error_required",defaultMessage:"{label} is a required field"}},"validateRequiredTag",0,e=>({isValid:t=>!e||t.length>0,intlMessageDescriptor:{id:"error_tag_required",defaultMessage:"{label} you must provide at least one tag"}})],82226)},55868,e=>{"use strict";var t=e.i(91398),r=e.i(3828);e.i(51523);var a=e.i(19518),l=e.i(69322),s=e.i(28401),i=e.i(5505),o=e.i(50595),n=e.i(25327),u=e.i(80689),d=e.i(97118),c=e.i(71846),f=e.i(59080),m=e.i(76204),g=e.i(77846);let y=f.gql`
|
|
48
|
+
mutation UpdateCountry($country: UpdateCountryInput!, $countryId: ID!) {
|
|
49
|
+
updateCountry(country: $country, countryId: $countryId) {
|
|
50
|
+
...CountryFragment
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
${g.default}
|
|
54
|
+
`;var p=e.i(15971),h=e.i(6607),b=e.i(21623),x=e.i(24608),v=e.i(53576),_=e.i(83147),C=e.i(58971);e.s(["default",0,({countryId:e})=>{let{push:f}=(0,r.useRouter)(),{formatMessage:g,locale:M}=(0,l.useIntl)(),{setModal:S}=(0,h.default)(),{hasRole:j}=(0,C.default)(),{country:F,loading:w}=(0,d.default)({countryId:e}),{updateCountry:k}=(()=>{let[e]=(0,m.useMutation)(y);return{updateCountry:async({country:t,countryId:r})=>e({variables:{country:t,countryId:r},refetchQueries:["Countries","ShopStatus","ShopInfo"]})}})(),{removeCountry:A}=(0,c.default)(),I=async({isActive:t,isoCode:r,defaultCurrencyCode:a})=>(await k({country:{isActive:t,isoCode:r,defaultCurrencyCode:a},countryId:e}),!0),D=async()=>{await S((0,t.jsx)(p.default,{onCancelClick:async()=>S(""),message:g({id:"delete_country_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this country? "}),onOkClick:async()=>{S(""),await A({countryId:e}),s.toast.success(g({id:"country_deleted",defaultMessage:"Country deleted successfully"})),f("/country")},okText:g({id:"delete_country",defaultMessage:"Delete country"})}))};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.default,{currentPageTitle:(0,_.normalizeCountryISOCode)(M,F?.isoCode)}),(0,t.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,t.jsx)(n.default,{headerText:(0,_.normalizeCountryISOCode)(M,F?.isoCode)}),j(a.IRoleAction.ManageCountries)&&(0,t.jsx)(b.default,{variant:"danger",icon:(0,t.jsx)(x.XMarkIcon,{className:"h-5 w-5"}),text:"Delete",onClick:D})]}),w?(0,t.jsx)(v.default,{}):(0,t.jsx)("div",{className:"mx-auto mt-6 sm:max-w-xl",children:(0,t.jsx)(i.default,{children:(0,t.jsx)(u.default,{isEdit:!0,defaultValue:{isActive:F?.isActive,isoCode:F?.isoCode,defaultCurrencyCode:F?.defaultCurrency?.isoCode},onSubmit:I})})})]})}],55868)},78262,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){if(null==e)throw TypeError("Expected a string but received a ".concat(e));if("String"!==e.constructor.name)throw TypeError("Expected a string but received a ".concat(e.constructor.name))},t.exports=r.default,t.exports.default=r.default},73663,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){(0,l.default)(e),"object"===s(t)?(r=t.min||0,a=t.max):(r=arguments[1]||0,a=arguments[2]);var r,a,i=e.match(/[^\uFE0F\uFE0E][\uFE0F\uFE0E]/g)||[],o=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],n=e.length-i.length-o.length,u=n>=r&&(void 0===a||n<=a);return u&&Array.isArray(null==t?void 0:t.discreteLengths)?t.discreteLengths.some(function(e){return e===n}):u};var a,l=(a=e.r(78262))&&a.__esModule?a:{default:a};function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.exports=r.default,t.exports.default=r.default},80930,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){for(var r=0;r<t.length;r++){var a=t[r];if(e===a||"[object RegExp]"===Object.prototype.toString.call(a)&&a.test(e))return!0}return!1},t.exports=r.default,t.exports.default=r.default},60054,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){(0,l.default)(e),"object"===s(t)?(r=t.min||0,a=t.max):(r=arguments[1],a=arguments[2]);var r,a,i=encodeURI(e).split(/%..|./).length-1;return i>=r&&(void 0===a||i<=a)};var a,l=(a=e.r(78262))&&a.__esModule?a:{default:a};function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.exports=r.default,t.exports.default=r.default},34058,(e,t,r)=>{"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in("object"!==a(e)||null===e)&&(e={}),t)void 0===e[r]&&(e[r]=t[r]);return e},t.exports=r.default,t.exports.default=r.default},96184,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){(0,a.default)(e),(t=(0,l.default)(t,i)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1)),!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var r=e.split("."),s=r[r.length-1];return!(t.require_tld&&(r.length<2||!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(s)||/\s/.test(s)))&&!(!t.allow_numeric_tld&&/^\d+$/.test(s))&&r.every(function(e){return!(e.length>63&&!t.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)||/[\uff01-\uff5e]/.test(e)||/^-|-$/.test(e)||!t.allow_underscores&&/_/.test(e))})};var a=s(e.r(78262)),l=s(e.r(34058));function s(e){return e&&e.__esModule?e:{default:e}}var i={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};t.exports=r.default,t.exports.default=r.default},90498,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,l.default)(t);var a=("object"===s(r)?r.version:arguments[1])||"";return a?"4"===a.toString()?n.test(t):"6"===a.toString()&&d.test(t):e(t,{version:4})||e(t,{version:6})};var a,l=(a=e.r(78262))&&a.__esModule?a:{default:a};function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",o="(".concat(i,"[.]){3}").concat(i),n=new RegExp("^".concat(o,"$")),u="(?:[0-9a-fA-F]{1,4})",d=RegExp("^("+"(?:".concat(u,":){7}(?:").concat(u,"|:)|")+"(?:".concat(u,":){6}(?:").concat(o,"|:").concat(u,"|:)|")+"(?:".concat(u,":){5}(?::").concat(o,"|(:").concat(u,"){1,2}|:)|")+"(?:".concat(u,":){4}(?:(:").concat(u,"){0,1}:").concat(o,"|(:").concat(u,"){1,3}|:)|")+"(?:".concat(u,":){3}(?:(:").concat(u,"){0,2}:").concat(o,"|(:").concat(u,"){1,4}|:)|")+"(?:".concat(u,":){2}(?:(:").concat(u,"){0,3}:").concat(o,"|(:").concat(u,"){1,5}|:)|")+"(?:".concat(u,":){1}(?:(:").concat(u,"){0,4}:").concat(o,"|(:").concat(u,"){1,6}|:)|")+"(?::((?::".concat(u,"){0,5}:").concat(o,"|(?::").concat(u,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");t.exports=r.default,t.exports.default=r.default},12051,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){if((0,a.default)(e),(t=(0,n.default)(t,d)).require_display_name||t.allow_display_name){var r=e.match(c);if(r){var u,h,b=r[1];if(e=e.replace(b,"").replace(/(^<|>$)/g,""),b.endsWith(" ")&&(b=b.slice(0,-1)),!(!(!(h=(u=b).replace(/^"(.+)"$/,"$1")).trim()||/[\.";<>]/.test(h)&&(h===u||h.split('"').length!==h.split('\\"').length))&&1))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>254)return!1;var x=e.split("@"),v=x.pop(),_=v.toLowerCase();if(t.host_blacklist.length>0&&(0,l.default)(_,t.host_blacklist)||t.host_whitelist.length>0&&!(0,l.default)(_,t.host_whitelist))return!1;var C=x.join("@");if(t.domain_specific_validation&&("gmail.com"===_||"googlemail.com"===_)){var M=(C=C.toLowerCase()).split("+")[0];if(!(0,s.default)(M.replace(/\./g,""),{min:6,max:30}))return!1;for(var S=M.split("."),j=0;j<S.length;j++)if(!m.test(S[j]))return!1}if(!1===t.ignore_max_length&&(!(0,s.default)(C,{max:64})||!(0,s.default)(v,{max:254})))return!1;if(!(0,i.default)(v,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length,allow_underscores:t.allow_underscores})){if(!t.allow_ip_domain)return!1;if(!(0,o.default)(v)){if(!v.startsWith("[")||!v.endsWith("]"))return!1;var F=v.slice(1,-1);if(0===F.length||!(0,o.default)(F))return!1}}if(t.blacklisted_chars&&-1!==C.search(RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;if('"'===C[0]&&'"'===C[C.length-1])return C=C.slice(1,C.length-1),t.allow_utf8_local_part?p.test(C):g.test(C);for(var w=t.allow_utf8_local_part?y:f,k=C.split("."),A=0;A<k.length;A++)if(!w.test(k[A]))return!1;return!0};var a=u(e.r(78262)),l=u(e.r(80930)),s=u(e.r(60054)),i=u(e.r(96184)),o=u(e.r(90498)),n=u(e.r(34058));function u(e){return e&&e.__esModule?e:{default:e}}var d={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},c=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,f=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,m=/^[a-z\d]+$/,g=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,y=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,p=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;t.exports=r.default,t.exports.default=r.default}]);
|