@unchainedshop/admin-ui 5.0.0-alpha.5 → 5.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -19
- package/dist/chunk-2RTX42IE.js +2083 -0
- package/dist/chunk-6UGLNLJG.js +44 -0
- package/dist/{chunk-UXG7EYHC.js → chunk-7PPOGX7R.js} +2 -35
- package/dist/{chunk-45H2WVIC.js → chunk-COV7BREX.js} +0 -1
- package/dist/{chunk-RHUFQVKL.js → chunk-F2TCVEQX.js} +1 -1
- package/dist/{chunk-UFYR5WZT.js → chunk-GY2DRQGW.js} +2 -1
- package/dist/{chunk-BGCKJQGS.js → chunk-JAVEZY3Q.js} +22 -15
- package/dist/{chunk-6TXD4TA7.js → chunk-KCN7DDPH.js} +2 -82
- package/dist/{chunk-YSKZE2KN.js → chunk-MSPWYMDY.js} +37 -24
- package/dist/chunk-RORNAN2J.js +12 -0
- package/dist/chunk-YZGQJJCD.js +37 -0
- 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/TagInputField.d.ts +2 -1
- package/dist/components/ui/form/TagInputField.d.ts.map +1 -1
- package/dist/form.js +743 -2510
- package/dist/gql/operation-types.d.ts +13043 -0
- package/dist/gql/operation-types.d.ts.map +1 -0
- package/dist/gql/schema-types.d.ts +3820 -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 -2
- package/dist/modal.js +9 -5
- 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 +219 -63
- package/dist/modules/assortment.js +9 -4
- 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/enrollment.js +23 -2
- package/dist/modules/event.js +1 -1
- package/dist/modules/filter.js +1 -1
- package/dist/modules/language/hooks/useLanguages.d.ts +4 -4
- 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 +9 -3
- package/dist/modules/product-review.js +24 -5
- package/dist/modules/product.js +12 -16
- package/dist/modules/quotation.js +22 -2
- package/dist/modules/token.js +1 -1
- package/dist/modules/work/hooks/useWork.d.ts +14 -14
- package/dist/modules/work.js +17 -5
- package/dist/plugins.js +6 -1
- package/dist/providers.js +3 -3
- 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/ui.js +1291 -3460
- 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/chunks/0-2b37ubdpy0o.js +7 -0
- package/out/_next/static/chunks/0-cyinqk2ne8t.js +16 -0
- package/out/_next/static/chunks/00tf1qsuwqywe.js +17 -0
- package/out/_next/static/chunks/015ge5k3o3f-r.js +226 -0
- package/out/_next/static/chunks/0208v89kdo_s9.js +13 -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/{0xoerh23zk-pj.js → 05o_q7jg8wucs.js} +2 -2
- package/out/_next/static/chunks/0752goe9_9g2s.js +110 -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_puys1lwhv9m.js +16 -0
- package/out/_next/static/chunks/0_xtedn8e1vu_.js +13 -0
- package/out/_next/static/chunks/0a_bg-ub3r2eo.js +60 -0
- package/out/_next/static/chunks/0b33bcf7x5rgy.js +20 -0
- package/out/_next/static/chunks/0ckhtcvz1kyxg.js +1 -0
- package/out/_next/static/chunks/0dewly3vo-mcq.js +20 -0
- package/out/_next/static/chunks/0dnh0kr83_tj0.js +1 -0
- 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/0fv1w56e25gt5.js +14 -0
- package/out/_next/static/chunks/{1jqnrnw0p9tw5.js → 0h0r_q6xa9qr_.js} +1 -1
- package/out/_next/static/chunks/0i9ymn9xxs0nx.js +18 -0
- package/out/_next/static/chunks/0ij8fs6-w0pr_.js +22 -0
- package/out/_next/static/chunks/0iqjlf_9c6eo_.js +59 -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/0kwf2vel2xmdi.js +13 -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/0nga8f0q2d0bl.js +14 -0
- package/out/_next/static/chunks/0nkkcq0-s-9fo.js +1 -0
- package/out/_next/static/chunks/0nlirgt-x5pqr.js +337 -0
- package/out/_next/static/chunks/0o7k5vanq57ch.js +807 -0
- package/out/_next/static/chunks/0om7fxf5bczpu.js +13 -0
- package/out/_next/static/chunks/0ou6gsnpn0wml.js +1 -0
- package/out/_next/static/chunks/0p09_ncs0g7m2.js +14 -0
- package/out/_next/static/chunks/0pji5t2zheb2j.js +234 -0
- package/out/_next/static/chunks/0q6-fplpae_ie.js +21 -0
- package/out/_next/static/chunks/0qh0vqpui2alf.js +9 -0
- package/out/_next/static/chunks/0qq_lp3pk8bjf.js +27 -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/0sc71p-6lnm1e.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/0uw9cbq0ivaz0.js +1 -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/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/1184evhxs01_c.js +11 -0
- package/out/_next/static/chunks/11oq6l46lynfn.js +22 -0
- package/out/_next/static/chunks/11zynllx8mmh5.js +15 -0
- package/out/_next/static/chunks/13__7-sf28ub5.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/14c_mq04p7pu0.js +171 -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/{0hup5ovc9v_-h.js → 18juy_eauk94g.js} +2 -2
- package/out/_next/static/chunks/{2t70ji9pnllxh.js → 19eflki8bmivb.js} +4 -4
- package/out/_next/static/chunks/19eu5d-wm2hfr.js +23 -0
- package/out/_next/static/chunks/19ou9pxeiwehs.js +15 -0
- package/out/_next/static/chunks/19pi48hqksvo9.js +9 -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/{0wooaklx8_14q.js → 1ae-9ft5cgojf.js} +1 -1
- package/out/_next/static/chunks/1am9n6exll687.js +807 -0
- package/out/_next/static/chunks/1cfjbvjo0o9fx.js +104 -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/1dqgs827_hiod.js +16 -0
- package/out/_next/static/chunks/{3827hqe9_anr7.js → 1dt9_bzfioi8a.js} +3 -3
- package/out/_next/static/chunks/1fg6jbuxeuj0w.js +14 -0
- package/out/_next/static/chunks/1fvr9k_o63j_m.js +16 -0
- package/out/_next/static/chunks/1gt65pz91hyuz.js +1 -0
- package/out/_next/static/chunks/1h_o__x8jw8gt.js +15 -0
- package/out/_next/static/chunks/1imv5a-ymrj2t.js +15 -0
- package/out/_next/static/chunks/1k4ep4igedo8p.js +1 -0
- package/out/_next/static/chunks/1kn74nabrpy14.js +3 -0
- package/out/_next/static/chunks/{2a_46b7_7ml_y.js → 1ndk3s-aeqfej.js} +1 -1
- package/out/_next/static/chunks/1o4hor3cwzcxc.js +15 -0
- package/out/_next/static/chunks/1og09fg689_nc.js +180 -0
- package/out/_next/static/chunks/1q_sewe1wbxsk.js +54 -0
- package/out/_next/static/chunks/1qwid0d89bzpw.js +17 -0
- package/out/_next/static/chunks/1r7dh_p70r7o8.js +13 -0
- package/out/_next/static/chunks/1r_e-dk-1oicl.js +2 -0
- package/out/_next/static/chunks/1rtv3c_klo0jk.js +1 -0
- package/out/_next/static/chunks/1rw6681ieb3-5.js +8 -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/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/1xbofs3ibkjvj.js +1 -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/2-7e3ttj92hfr.js +17 -0
- package/out/_next/static/chunks/200_u2ywg-be1.js +43 -0
- package/out/_next/static/chunks/224ovcn90ebcs.js +25 -0
- package/out/_next/static/chunks/24-pobk4qjjvp.js +3 -0
- package/out/_next/static/chunks/{09pees0w94cvm.js → 252jebodi67kg.js} +1 -1
- package/out/_next/static/chunks/2540mqfxc7ehr.js +15 -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/2_l14rwu6kgzl.js +11 -0
- package/out/_next/static/chunks/2_vu2hve2j-6g.js +5 -0
- package/out/_next/static/chunks/2cmaw01_r48ot.js +21 -0
- package/out/_next/static/chunks/2d1zehr8zc3vb.js +9 -0
- package/out/_next/static/chunks/2dvrbmh97duba.js +1 -0
- package/out/_next/static/chunks/{34dhtdp_8idgm.js → 2dyj8q92_k5el.js} +112 -62
- package/out/_next/static/chunks/2e0dz59httb-e.js +43 -0
- package/out/_next/static/chunks/2e47h0g7w7si3.js +7 -0
- package/out/_next/static/chunks/{3a0_vzfa54k35.js → 2f4-hcyxiek_q.js} +2 -2
- package/out/_next/static/chunks/2fjmw94mat8m0.js +807 -0
- package/out/_next/static/chunks/{358r9pdxbk-fv.js → 2fo2ki1egxbah.js} +4 -4
- 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/2kzyda4a6mqut.js +1 -0
- package/out/_next/static/chunks/2l4pfo_tsvn5w.js +11 -0
- package/out/_next/static/chunks/2l629mu99aqil.js +9 -0
- package/out/_next/static/chunks/2le8e8u2nvp0j.js +16 -0
- package/out/_next/static/chunks/{1vnvinjvn78t3.js → 2ljoq6sr-g2da.js} +1 -1
- package/out/_next/static/chunks/2lx_iig9xewfj.js +52 -0
- package/out/_next/static/chunks/2nm_wdmfjcbyc.js +25 -0
- package/out/_next/static/chunks/2o9hdz0gk1-s7.js +165 -0
- package/out/_next/static/chunks/2ork76jhxvxke.js +138 -0
- package/out/_next/static/chunks/2ou2_nhvunq72.js +13 -0
- package/out/_next/static/chunks/2pf0d3jgcae7b.js +99 -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/2rve5gtfjiz-p.js +100 -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/2t-_fecnp5yzr.js +15 -0
- package/out/_next/static/chunks/2tm822rgn8g7-.js +19 -0
- package/out/_next/static/chunks/2u6jwsqz0uhes.js +24 -0
- package/out/_next/static/chunks/2u8ns-x384r3i.js +22 -0
- package/out/_next/static/chunks/{1cn3pe6lxja9e.js → 2v4k4vpb2id7m.js} +5 -5
- package/out/_next/static/chunks/2v57_n8he320z.js +83 -0
- 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/304cl99rh8rs_.js +2 -0
- package/out/_next/static/chunks/30_ns6urg1dkn.js +41 -0
- package/out/_next/static/chunks/313i1x81q2xj1.js +1 -0
- package/out/_next/static/chunks/325a7n__tfxy_.js +61 -0
- package/out/_next/static/chunks/326rk3t0gtxp_.js +14 -0
- package/out/_next/static/chunks/32te9ivrk54l0.js +15 -0
- package/out/_next/static/chunks/339y1tm7s80tn.js +22 -0
- package/out/_next/static/chunks/33emlry70k-lv.js +2 -0
- package/out/_next/static/chunks/{2w1twpn4nui6h.js → 346itdsbw-5tn.js} +2 -2
- package/out/_next/static/chunks/351jscvbk_wb9.js +13 -0
- package/out/_next/static/chunks/355nca7if7l9n.js +17 -0
- package/out/_next/static/chunks/357odtev0t245.js +59 -0
- package/out/_next/static/chunks/35fjd9uhctw7y.js +1 -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/{1xg3ey2rrdxfx.js → 37uz0njkj43tz.js} +1 -1
- package/out/_next/static/chunks/38ffn8gazqz8_.js +3 -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/3_dqxs_vhmfqd.js +14 -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/3cp9qqljcytup.js +9 -0
- package/out/_next/static/chunks/3cq123yj25_36.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/3doujqxnfq19f.js +16 -0
- package/out/_next/static/chunks/3grllla8v0ctl.js +14 -0
- package/out/_next/static/chunks/3hqec4-3one07.js +15 -0
- package/out/_next/static/chunks/3ic_dagw-uvrx.js +234 -0
- package/out/_next/static/chunks/3idwjqiel9n9v.js +18 -0
- package/out/_next/static/chunks/{113_jsmrqky1h.js → 3il9u-mfrp2sn.js} +2 -2
- package/out/_next/static/chunks/3jtzvr48aaoo0.js +13 -0
- package/out/_next/static/chunks/3k5lt5_-g36w9.js +9 -0
- package/out/_next/static/chunks/3l-9xxd1i1sya.js +1 -0
- package/out/_next/static/chunks/3l1zucp3a411p.js +50 -0
- package/out/_next/static/chunks/3ls4kv54f3x8u.js +15 -0
- package/out/_next/static/chunks/3m2yam5_cs1h7.js +13 -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/3o23w25lfn4mo.js +27 -0
- package/out/_next/static/chunks/{0wm5atnhe2mjs.js → 3oynij37wfjb2.js} +5 -5
- package/out/_next/static/chunks/3oz5p4rrvnew1.js +807 -0
- package/out/_next/static/chunks/{434iz38padke2.js → 3pbyo5kkko3wh.js} +1 -1
- package/out/_next/static/chunks/3qjgt-x153i6u.js +234 -0
- package/out/_next/static/chunks/3s-n0xc-vi0ww.js +31 -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/{1qnuk3631sd6i.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/3ulbhhqw8rxd8.js +15 -0
- package/out/_next/static/chunks/3uytb2p7vzafp.js +15 -0
- package/out/_next/static/chunks/3v38tvcona4gy.js +16 -0
- package/out/_next/static/chunks/3vet2a9q9rf2c.js +61 -0
- package/out/_next/static/chunks/3vz3gqmojh7sx.js +4 -0
- package/out/_next/static/chunks/3w9xrlkiztuwi.js +23 -0
- package/out/_next/static/chunks/3wy5jhrulhwb9.js +15 -0
- package/out/_next/static/chunks/{2tc6lgajxmo78.js → 3xmtbqm0gddn8.js} +3 -3
- package/out/_next/static/chunks/3yqmjvx7t3t0_.js +1 -0
- package/out/_next/static/chunks/3yvmkdc088aly.js +1 -0
- package/out/_next/static/chunks/401o5bfi_90qs.js +141 -0
- package/out/_next/static/chunks/40s6ngsexc737.js +15 -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/42p2hm8ca34f6.js +16 -0
- package/out/_next/static/chunks/43jyzccx6x0lw.js +1 -0
- package/out/_next/static/chunks/447b5tn4-avdv.js +16 -0
- package/out/_next/static/chunks/44daaafswok67.css +1 -0
- package/out/_next/static/chunks/{3j6p-522fcsnj.js → 452fv7r-tie6t.js} +1 -1
- package/out/_next/static/chunks/turbopack-02cmv-knpzk52.js +1 -0
- package/out/_next/static/chunks/turbopack-05rmr02n9n2u0.js +1 -0
- package/out/_next/static/chunks/turbopack-07fw0g9aver98.js +1 -0
- package/out/_next/static/chunks/turbopack-08x92457_z4ve.js +1 -0
- package/out/_next/static/chunks/turbopack-0a2sfur4bx222.js +1 -0
- package/out/_next/static/chunks/turbopack-0b-g0lpiikryt.js +1 -0
- package/out/_next/static/chunks/turbopack-0dj-aua684j9c.js +1 -0
- package/out/_next/static/chunks/turbopack-0h5lj7lnf9_tb.js +1 -0
- package/out/_next/static/chunks/turbopack-0k8oea6xmzbjh.js +1 -0
- package/out/_next/static/chunks/turbopack-0m1qzkhnpuk2j.js +1 -0
- package/out/_next/static/chunks/turbopack-0n73ad0fad4yl.js +1 -0
- package/out/_next/static/chunks/turbopack-0qxkaq0f9ka24.js +1 -0
- package/out/_next/static/chunks/turbopack-0ricnx7znhztj.js +1 -0
- package/out/_next/static/chunks/turbopack-0s-h1cgwrfgo-.js +1 -0
- package/out/_next/static/chunks/turbopack-0xgswwqf_4vrt.js +1 -0
- package/out/_next/static/chunks/turbopack-1330tdm8r390q.js +1 -0
- package/out/_next/static/chunks/turbopack-14rn07-ki7f_7.js +1 -0
- package/out/_next/static/chunks/turbopack-1azvbmrq_bxq7.js +1 -0
- package/out/_next/static/chunks/turbopack-1bjaxey2pj8nn.js +1 -0
- package/out/_next/static/chunks/turbopack-1csu0s9cycwgo.js +1 -0
- package/out/_next/static/chunks/turbopack-1g8mmayckmfib.js +1 -0
- package/out/_next/static/chunks/turbopack-1hty_7i5tzg63.js +1 -0
- package/out/_next/static/chunks/turbopack-1p11xfz8qe15i.js +1 -0
- package/out/_next/static/chunks/turbopack-1r_uprn020kr7.js +1 -0
- package/out/_next/static/chunks/turbopack-1rdxfvyldfwrq.js +1 -0
- package/out/_next/static/chunks/turbopack-1td004byboyz2.js +1 -0
- package/out/_next/static/chunks/turbopack-1y3x6n223v6d1.js +1 -0
- package/out/_next/static/chunks/turbopack-2068cl63o32re.js +1 -0
- package/out/_next/static/chunks/turbopack-298vdad77pw5z.js +1 -0
- package/out/_next/static/chunks/turbopack-2d5v28yt0xnri.js +1 -0
- package/out/_next/static/chunks/turbopack-2dicmowo2x4t1.js +1 -0
- package/out/_next/static/chunks/turbopack-2gehqsln39zg1.js +1 -0
- package/out/_next/static/chunks/turbopack-2hj-ffuco6-u7.js +1 -0
- package/out/_next/static/chunks/turbopack-2it1jk212m2ud.js +1 -0
- package/out/_next/static/chunks/turbopack-2l-gbnaw39ht4.js +1 -0
- package/out/_next/static/chunks/turbopack-2mbsjg411_ndq.js +1 -0
- package/out/_next/static/chunks/turbopack-2n2ksqygaakbh.js +1 -0
- package/out/_next/static/chunks/turbopack-2q65pei-ck559.js +1 -0
- package/out/_next/static/chunks/turbopack-2sqnlbl-ardf7.js +1 -0
- package/out/_next/static/chunks/turbopack-2t6ex34_bkvoe.js +1 -0
- package/out/_next/static/chunks/turbopack-2w9_vscbr0eag.js +1 -0
- package/out/_next/static/chunks/turbopack-2z2joyd6mdhpo.js +1 -0
- package/out/_next/static/chunks/turbopack-338xrj-0fpsqu.js +1 -0
- package/out/_next/static/chunks/turbopack-3458e7jmj1e27.js +1 -0
- package/out/_next/static/chunks/turbopack-351l-va10h8kw.js +1 -0
- package/out/_next/static/chunks/turbopack-35awx_qvevnch.js +1 -0
- package/out/_next/static/chunks/turbopack-3a196kafnj312.js +1 -0
- package/out/_next/static/chunks/turbopack-3a6igydfvv1_v.js +1 -0
- package/out/_next/static/chunks/turbopack-3bnkwdcrz_ts-.js +1 -0
- package/out/_next/static/chunks/turbopack-3hsu2nw8qlox4.js +1 -0
- package/out/_next/static/chunks/turbopack-3iiyu2cek78ut.js +1 -0
- package/out/_next/static/chunks/turbopack-3nta8sa99guti.js +1 -0
- package/out/_next/static/chunks/turbopack-3r17oio1oe7jw.js +1 -0
- package/out/_next/static/chunks/turbopack-3r9uyzwi0dtwb.js +1 -0
- package/out/_next/static/chunks/turbopack-3rgdcfralfvsa.js +1 -0
- package/out/_next/static/chunks/turbopack-3tntqotcyx6oq.js +1 -0
- package/out/_next/static/chunks/turbopack-3uc-2ah0uehj3.js +1 -0
- package/out/_next/static/chunks/turbopack-3uvfl95p1ubqn.js +1 -0
- package/out/_next/static/chunks/turbopack-3vncwrj5x9j44.js +1 -0
- package/out/_next/static/chunks/turbopack-3ww1zabqxbxit.js +1 -0
- package/out/_next/static/chunks/turbopack-3wxlut7e7jmsi.js +1 -0
- package/out/_next/static/chunks/turbopack-3yk72bgipb8hc.js +1 -0
- package/out/_next/static/chunks/turbopack-4025_4zwqnrk-.js +1 -0
- package/out/_next/static/chunks/turbopack-425nfopoa8wxd.js +1 -0
- package/out/_next/static/{T3MvrnLGtwi3l3MDtTzwv → hH8h6SzcZWEUFySYqRPbW}/_buildManifest.js +63 -63
- 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 +22 -17
- package/src/sdk/README.md +195 -0
- package/src/sdk/plugin-build.mjs +81 -98
- package/src/sdk/plugin-build.test.mjs +6 -3
- 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/0-p8a6-okjx49.js +0 -15
- package/out/_next/static/chunks/0-u5tid26i8-3.js +0 -188
- package/out/_next/static/chunks/008hxgil51owu.js +0 -234
- package/out/_next/static/chunks/026k3ys50h91u.js +0 -15
- package/out/_next/static/chunks/02aa23atze2y4.js +0 -119
- package/out/_next/static/chunks/03f0hv23abn4a.js +0 -12
- package/out/_next/static/chunks/03p0xulfluyqm.js +0 -15
- package/out/_next/static/chunks/044dmimivt13x.js +0 -233
- package/out/_next/static/chunks/047gokoblz-qy.js +0 -16
- package/out/_next/static/chunks/04yroykjly9ni.js +0 -15
- package/out/_next/static/chunks/05h2_5y4i_fe4.js +0 -12
- package/out/_next/static/chunks/0641gh6yb6tnd.js +0 -3
- package/out/_next/static/chunks/06bsql5zgjpaj.js +0 -315
- package/out/_next/static/chunks/06jtnxd7wr712.js +0 -1
- package/out/_next/static/chunks/070wy1qe-7-uf.js +0 -242
- package/out/_next/static/chunks/07l1vdt21xneu.js +0 -14
- package/out/_next/static/chunks/07q8ufsdxo1tx.js +0 -1
- package/out/_next/static/chunks/0_wmk0z5r9thu.js +0 -95
- package/out/_next/static/chunks/0ab_-095b34n5.js +0 -90
- package/out/_next/static/chunks/0aom8abciz-yf.js +0 -1
- package/out/_next/static/chunks/0cdcsn87u-tzw.js +0 -1
- package/out/_next/static/chunks/0cu-wqc76z_w6.js +0 -1
- package/out/_next/static/chunks/0dnzfqa8el54j.js +0 -135
- package/out/_next/static/chunks/0f-hhcgpd3kjt.js +0 -5
- package/out/_next/static/chunks/0gdriupdpmq28.js +0 -14
- package/out/_next/static/chunks/0hm6-xlqw4vmr.js +0 -1
- package/out/_next/static/chunks/0hmdmxkzhdtjx.js +0 -155
- package/out/_next/static/chunks/0hpirq7m-gjle.js +0 -23
- package/out/_next/static/chunks/0hxsdaxwhc3z4.js +0 -110
- package/out/_next/static/chunks/0j-yonuwgtg0k.js +0 -22
- package/out/_next/static/chunks/0jo3ujn_icmb9.js +0 -28
- package/out/_next/static/chunks/0mayhrft9-4hw.js +0 -13
- package/out/_next/static/chunks/0mdh4qszx-qw8.js +0 -1
- package/out/_next/static/chunks/0nyu34hvyz9_k.js +0 -103
- package/out/_next/static/chunks/0nz8nqr7k7pni.js +0 -61
- package/out/_next/static/chunks/0pjv94c771817.js +0 -13
- package/out/_next/static/chunks/0qrepe4aqal8_.js +0 -2
- package/out/_next/static/chunks/0qtbb-w9hs2i_.js +0 -1
- package/out/_next/static/chunks/0r0l1vs8bls6y.js +0 -1
- package/out/_next/static/chunks/0r2v5se5riad_.js +0 -227
- package/out/_next/static/chunks/0s3aax3no2y3_.js +0 -54
- package/out/_next/static/chunks/0sys36fl1uhl-.js +0 -18
- package/out/_next/static/chunks/0u-md-qpvyccn.js +0 -149
- package/out/_next/static/chunks/0ukobsq85_to1.js +0 -135
- package/out/_next/static/chunks/0vcn7yqzt3qlc.js +0 -10
- package/out/_next/static/chunks/0wl_oo549tgsw.js +0 -14
- package/out/_next/static/chunks/0wpmgf2-hr2iv.js +0 -1
- package/out/_next/static/chunks/0wthf9v7cuwqf.js +0 -3
- package/out/_next/static/chunks/0xcxmgeevaadl.js +0 -8
- package/out/_next/static/chunks/0xvoojz5c4j32.js +0 -14
- package/out/_next/static/chunks/0ykc9b-l7rcv9.js +0 -18
- package/out/_next/static/chunks/0zb8qwy33hihq.js +0 -142
- package/out/_next/static/chunks/0zgu8kiokvsjz.js +0 -1
- package/out/_next/static/chunks/0zk0s8hqsf5tg.js +0 -18
- package/out/_next/static/chunks/0zl6mu89n1_wq.js +0 -1
- package/out/_next/static/chunks/0zntg6ltu_fk3.js +0 -14
- package/out/_next/static/chunks/10996osm11rxi.js +0 -327
- package/out/_next/static/chunks/10q9_f1ss9afd.js +0 -8
- package/out/_next/static/chunks/110vhftkm53lj.js +0 -111
- package/out/_next/static/chunks/11fqypagzye_v.js +0 -43
- package/out/_next/static/chunks/137522d4_apiu.js +0 -166
- package/out/_next/static/chunks/13ml43jv3bxh1.js +0 -1
- package/out/_next/static/chunks/16ad724tleody.js +0 -13
- package/out/_next/static/chunks/16r_t7quts1w0.js +0 -289
- package/out/_next/static/chunks/16yomp2b55xod.js +0 -30
- package/out/_next/static/chunks/17jd_42ijblk-.js +0 -15
- package/out/_next/static/chunks/17xseq9yxu638.js +0 -1
- package/out/_next/static/chunks/18yznjdgjug5c.js +0 -7
- package/out/_next/static/chunks/19i-cq0_2t00g.js +0 -60
- package/out/_next/static/chunks/19ppkss30jscq.js +0 -13
- package/out/_next/static/chunks/1_ov-8bomgh6c.js +0 -54
- package/out/_next/static/chunks/1b9l0n8vz64x7.js +0 -233
- package/out/_next/static/chunks/1dut2ep8qfdv4.js +0 -14
- package/out/_next/static/chunks/1eqs_86cqpxcx.js +0 -138
- package/out/_next/static/chunks/1exlzd6w18o_b.js +0 -8
- package/out/_next/static/chunks/1f04wea7zvjf5.js +0 -2
- package/out/_next/static/chunks/1fqsykinbg1d_.js +0 -12
- package/out/_next/static/chunks/1g5l7e7du4p25.js +0 -1
- package/out/_next/static/chunks/1hokoliuqn63p.js +0 -17
- package/out/_next/static/chunks/1ihjqvn68cj5e.js +0 -36
- package/out/_next/static/chunks/1k798vpov34v6.js +0 -12
- package/out/_next/static/chunks/1lewut00m9sq1.js +0 -1
- package/out/_next/static/chunks/1lwiflo8v2d93.js +0 -1
- package/out/_next/static/chunks/1ng9tsm1f8e_a.js +0 -1
- package/out/_next/static/chunks/1nvy3y5qe_igv.js +0 -233
- package/out/_next/static/chunks/1ozaatz-b_-as.js +0 -41
- package/out/_next/static/chunks/1paq5rkj25r88.js +0 -1
- package/out/_next/static/chunks/1q2l02eq094zc.js +0 -147
- package/out/_next/static/chunks/1q8zx2rmluekr.js +0 -13
- package/out/_next/static/chunks/1r092zo5e6999.js +0 -190
- package/out/_next/static/chunks/1r0aluuzu5vw7.js +0 -13
- package/out/_next/static/chunks/1sgv26vi42stl.js +0 -13
- package/out/_next/static/chunks/1t80pe40g73fh.js +0 -82
- package/out/_next/static/chunks/1u6jfjnf14knz.js +0 -124
- package/out/_next/static/chunks/1xx6ie3yh2hbk.js +0 -235
- package/out/_next/static/chunks/1y-vwb0-v5xv0.js +0 -304
- package/out/_next/static/chunks/2-8-i_m-82mjh.js +0 -43
- package/out/_next/static/chunks/2-s6g5_cyahx8.js +0 -1
- package/out/_next/static/chunks/20ndjd4r5l6vk.js +0 -1
- package/out/_next/static/chunks/20v019mj-zi94.js +0 -13
- package/out/_next/static/chunks/21w-hkh4_w1kl.js +0 -19
- package/out/_next/static/chunks/226ya3lbz_55w.js +0 -19
- package/out/_next/static/chunks/22az81pi-bqjb.js +0 -1
- package/out/_next/static/chunks/22get2_2lcba-.js +0 -21
- package/out/_next/static/chunks/22l-2aehes9lx.js +0 -153
- package/out/_next/static/chunks/23y9nin7qo-xy.js +0 -17
- package/out/_next/static/chunks/25t23h8zbmzh-.js +0 -12
- package/out/_next/static/chunks/273zh05aw6uz2.js +0 -13
- package/out/_next/static/chunks/28o-5560g4bwk.js +0 -7
- package/out/_next/static/chunks/28zahy_uqar2t.js +0 -12
- package/out/_next/static/chunks/29dylunjhn4te.js +0 -34
- package/out/_next/static/chunks/2_3qu55ddb4jo.js +0 -3
- package/out/_next/static/chunks/2_7z1veshuiiw.js +0 -10
- package/out/_next/static/chunks/2_ztj391g9yzt.js +0 -226
- package/out/_next/static/chunks/2a9z_gm1vn39c.js +0 -173
- package/out/_next/static/chunks/2b8nhs_3rpawc.js +0 -1
- package/out/_next/static/chunks/2biyd1hzgc2sv.js +0 -339
- package/out/_next/static/chunks/2c2vssolfspzg.js +0 -50
- package/out/_next/static/chunks/2dbrybnhe5thu.css +0 -1
- package/out/_next/static/chunks/2diqy5aehqe8j.js +0 -58
- package/out/_next/static/chunks/2dq4d-ey-16cq.js +0 -1
- package/out/_next/static/chunks/2dyysegkbptw8.js +0 -11
- package/out/_next/static/chunks/2ei1rfxsl3q65.js +0 -31
- package/out/_next/static/chunks/2f3z_9lk_9lsj.js +0 -14
- package/out/_next/static/chunks/2fazxtc5_9tgo.js +0 -52
- package/out/_next/static/chunks/2fzc9bsweg7nf.js +0 -807
- package/out/_next/static/chunks/2h5-bnhry6wzl.js +0 -14
- package/out/_next/static/chunks/2hmtn1okhj6zz.js +0 -234
- package/out/_next/static/chunks/2htrbj6g7da-e.js +0 -12
- package/out/_next/static/chunks/2j51l4ukmrn7j.js +0 -17
- package/out/_next/static/chunks/2k4cusvrm93cp.js +0 -39
- package/out/_next/static/chunks/2ldks6pel2wcp.js +0 -31
- package/out/_next/static/chunks/2loz6t7f69t0c.js +0 -1
- package/out/_next/static/chunks/2onfts3kpe9d8.js +0 -1
- package/out/_next/static/chunks/2p9aozkdq_z13.js +0 -329
- package/out/_next/static/chunks/2pz2u5us_0jme.js +0 -5
- package/out/_next/static/chunks/2qaf44ypuy_4z.js +0 -1
- package/out/_next/static/chunks/2r1-eyf6hic-m.js +0 -1
- package/out/_next/static/chunks/2ritd1boot22-.js +0 -32
- package/out/_next/static/chunks/2s1__k407zn6n.js +0 -1
- package/out/_next/static/chunks/2s6qkrjh7-b6s.js +0 -1
- package/out/_next/static/chunks/2twd9trj9horc.js +0 -61
- package/out/_next/static/chunks/2ua7-skz9vm4r.js +0 -13
- package/out/_next/static/chunks/2vjkcd8g_hh68.js +0 -46
- package/out/_next/static/chunks/2x4vo24qfe0mr.js +0 -1
- package/out/_next/static/chunks/2zm-d0-e0sxgo.js +0 -23
- package/out/_next/static/chunks/3-u1dp82vzyt9.js +0 -1
- package/out/_next/static/chunks/30iz3jszdu04d.js +0 -11
- package/out/_next/static/chunks/30jmh-3cp5wcg.js +0 -12
- package/out/_next/static/chunks/3178a_a_i-e-q.js +0 -16
- package/out/_next/static/chunks/317qzy7r8meg_.js +0 -1
- package/out/_next/static/chunks/32nwqfli0ne57.js +0 -1
- package/out/_next/static/chunks/33c-rzkj2k2v1.js +0 -14
- package/out/_next/static/chunks/33g91_yljnpiw.js +0 -807
- package/out/_next/static/chunks/34ybf-w3bdlw8.js +0 -13
- package/out/_next/static/chunks/35-vqjhcep-zw.js +0 -60
- package/out/_next/static/chunks/35a6ymsh4q0-o.js +0 -14
- package/out/_next/static/chunks/36yrxjq9zbvpx.js +0 -13
- package/out/_next/static/chunks/377ho63k7qphg.js +0 -14
- package/out/_next/static/chunks/37bs69urhjdz5.js +0 -24
- package/out/_next/static/chunks/37mpnb5qztb_g.js +0 -15
- package/out/_next/static/chunks/3a8a8fpl7-ndf.js +0 -1
- package/out/_next/static/chunks/3b6hct2rk2wu9.js +0 -24
- package/out/_next/static/chunks/3czsj6bdmobbd.js +0 -24
- package/out/_next/static/chunks/3d0ic2ovyeue7.js +0 -2
- package/out/_next/static/chunks/3eq1b2m2xkkmp.js +0 -1
- package/out/_next/static/chunks/3f2ue6ut-mwka.js +0 -2
- package/out/_next/static/chunks/3g67xtrp0vv4m.js +0 -1
- package/out/_next/static/chunks/3iepyd4rzl-tt.js +0 -13
- package/out/_next/static/chunks/3kle_yukf5aux.js +0 -809
- package/out/_next/static/chunks/3l_nx7eopgh02.js +0 -1
- package/out/_next/static/chunks/3mk-cv2ocv93u.js +0 -50
- package/out/_next/static/chunks/3n5290qcigwpc.js +0 -13
- package/out/_next/static/chunks/3nl02jbknvx4p.js +0 -14
- package/out/_next/static/chunks/3o5a5qn0dnq04.js +0 -3
- package/out/_next/static/chunks/3o5kwvdgt_t9z.js +0 -73
- package/out/_next/static/chunks/3qamj8gt1ijdz.js +0 -12
- package/out/_next/static/chunks/3rlrwz262rpw0.js +0 -1
- package/out/_next/static/chunks/3s3v9n_ob4m24.js +0 -18
- package/out/_next/static/chunks/3s47qr8fn6h4j.js +0 -8
- package/out/_next/static/chunks/3slzhmkeoggpm.js +0 -66
- package/out/_next/static/chunks/3tv9csz53av-5.js +0 -1
- package/out/_next/static/chunks/3uec1_7irpl71.js +0 -16
- package/out/_next/static/chunks/3uo1w1gaj7tsx.js +0 -117
- package/out/_next/static/chunks/3uwev5xyub_j1.js +0 -7
- package/out/_next/static/chunks/3w450c1xmh550.js +0 -12
- package/out/_next/static/chunks/3x8aami6-3l79.js +0 -31
- package/out/_next/static/chunks/3xhogi6_bbwh7.js +0 -10
- package/out/_next/static/chunks/3y62dz45ticve.js +0 -1
- package/out/_next/static/chunks/3yjzk_udmhv3i.js +0 -1
- package/out/_next/static/chunks/3z6v84zof80bt.js +0 -1
- package/out/_next/static/chunks/3zncjth-kop8p.js +0 -1
- package/out/_next/static/chunks/3zp4iedgev460.js +0 -35
- package/out/_next/static/chunks/413qu_x6yky1e.js +0 -1
- package/out/_next/static/chunks/41j8mb2ztwydi.js +0 -14
- package/out/_next/static/chunks/41pc5_e25bhgd.js +0 -1
- package/out/_next/static/chunks/424z-zudpy3n0.js +0 -39
- package/out/_next/static/chunks/42o6t6-v2qi37.js +0 -29
- package/out/_next/static/chunks/43pb7hjetp965.js +0 -1
- package/out/_next/static/chunks/44rharl5hvsw-.js +0 -22
- package/out/_next/static/chunks/45ac68ug7hcoc.js +0 -13
- package/out/_next/static/chunks/turbopack-0-chqajqgydnn.js +0 -1
- package/out/_next/static/chunks/turbopack-0-jquaej6q4cd.js +0 -1
- package/out/_next/static/chunks/turbopack-01y_6kjoo1mvp.js +0 -1
- package/out/_next/static/chunks/turbopack-03_sghcquhw33.js +0 -1
- package/out/_next/static/chunks/turbopack-0a_5nw_3znl2r.js +0 -1
- package/out/_next/static/chunks/turbopack-0bbgz21dy5lm3.js +0 -1
- package/out/_next/static/chunks/turbopack-0cqzo60ry70im.js +0 -1
- package/out/_next/static/chunks/turbopack-0ex-kw1o5k02z.js +0 -1
- package/out/_next/static/chunks/turbopack-0jzps1g34dah5.js +0 -1
- package/out/_next/static/chunks/turbopack-0o9rz5e94nq66.js +0 -1
- package/out/_next/static/chunks/turbopack-0rq3y47awgwpt.js +0 -1
- package/out/_next/static/chunks/turbopack-0vs4-gjxe552i.js +0 -1
- package/out/_next/static/chunks/turbopack-0x1jwahqhzo0u.js +0 -1
- package/out/_next/static/chunks/turbopack-11auq8fqexpmm.js +0 -1
- package/out/_next/static/chunks/turbopack-13uretb6lcje8.js +0 -1
- package/out/_next/static/chunks/turbopack-14n2u99h724y-.js +0 -1
- package/out/_next/static/chunks/turbopack-1a774_gjam74t.js +0 -1
- package/out/_next/static/chunks/turbopack-1gy8illqlm_jj.js +0 -1
- package/out/_next/static/chunks/turbopack-1n9q29j854ltr.js +0 -1
- package/out/_next/static/chunks/turbopack-1nathpz4-f-4w.js +0 -1
- package/out/_next/static/chunks/turbopack-1nca86oa17qfx.js +0 -1
- package/out/_next/static/chunks/turbopack-1qe0zbu9fejdb.js +0 -1
- package/out/_next/static/chunks/turbopack-1qg26rdmwlotw.js +0 -1
- package/out/_next/static/chunks/turbopack-1u6lf-rzbdjuj.js +0 -1
- package/out/_next/static/chunks/turbopack-1z85kwwdibjh7.js +0 -1
- package/out/_next/static/chunks/turbopack-22as-nh7md98p.js +0 -1
- package/out/_next/static/chunks/turbopack-23lcv-araye0t.js +0 -1
- package/out/_next/static/chunks/turbopack-25gt3vwmogps-.js +0 -1
- package/out/_next/static/chunks/turbopack-26g97kfge67jz.js +0 -1
- package/out/_next/static/chunks/turbopack-26u67kbn41n8e.js +0 -1
- package/out/_next/static/chunks/turbopack-280jnadydykur.js +0 -1
- package/out/_next/static/chunks/turbopack-2bb6lvvhg6e0w.js +0 -1
- package/out/_next/static/chunks/turbopack-2bw5gluonepob.js +0 -1
- package/out/_next/static/chunks/turbopack-2c36n939jg0pf.js +0 -1
- package/out/_next/static/chunks/turbopack-2ez296aoalbog.js +0 -1
- package/out/_next/static/chunks/turbopack-2frqnl7lfn0h9.js +0 -1
- package/out/_next/static/chunks/turbopack-2jxkmyhbvdw4u.js +0 -1
- package/out/_next/static/chunks/turbopack-2k45z490u3tbj.js +0 -1
- package/out/_next/static/chunks/turbopack-2p-uq1erkf03-.js +0 -1
- package/out/_next/static/chunks/turbopack-2svkg0yvgyw3_.js +0 -1
- package/out/_next/static/chunks/turbopack-31s1c5ipeb5_p.js +0 -1
- package/out/_next/static/chunks/turbopack-33v049epa0erx.js +0 -1
- package/out/_next/static/chunks/turbopack-34jylrj_qw1ak.js +0 -1
- package/out/_next/static/chunks/turbopack-34u-t26ngu-oy.js +0 -1
- package/out/_next/static/chunks/turbopack-34x5gar31d5sv.js +0 -1
- package/out/_next/static/chunks/turbopack-363g_e-jzg5u_.js +0 -1
- package/out/_next/static/chunks/turbopack-39um5sy1v-bvw.js +0 -1
- package/out/_next/static/chunks/turbopack-3__2i-6jdv1s8.js +0 -1
- package/out/_next/static/chunks/turbopack-3b4s935ks8u-b.js +0 -1
- package/out/_next/static/chunks/turbopack-3b5-pdmr324f-.js +0 -1
- package/out/_next/static/chunks/turbopack-3bwm37xq99e4l.js +0 -1
- package/out/_next/static/chunks/turbopack-3ec8ol5n3kb0h.js +0 -1
- package/out/_next/static/chunks/turbopack-3gw7smd4lo5ud.js +0 -1
- package/out/_next/static/chunks/turbopack-3miy8-7wxcnbn.js +0 -1
- package/out/_next/static/chunks/turbopack-3nvjaj1vijowz.js +0 -1
- package/out/_next/static/chunks/turbopack-3poc67i76-q8q.js +0 -1
- package/out/_next/static/chunks/turbopack-3r1pnr94s1u0w.js +0 -1
- package/out/_next/static/chunks/turbopack-3sfa4031m280j.js +0 -1
- package/out/_next/static/chunks/turbopack-3sqs5hm2xhl3s.js +0 -1
- package/out/_next/static/chunks/turbopack-3xha6pmjqez6d.js +0 -1
- package/out/_next/static/chunks/turbopack-3yp7pgp42yfh3.js +0 -1
- package/out/_next/static/chunks/turbopack-3z_g6t7o2z7rb.js +0 -1
- package/out/_next/static/chunks/turbopack-3zb947kjm56zb.js +0 -1
- package/out/_next/static/chunks/turbopack-43m6wi0fybh1f.js +0 -1
- /package/dist/{chunk-BYXBJQAS.js → chunk-QWQ3WJJN.js} +0 -0
- /package/out/_next/static/{T3MvrnLGtwi3l3MDtTzwv → hH8h6SzcZWEUFySYqRPbW}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{T3MvrnLGtwi3l3MDtTzwv → hH8h6SzcZWEUFySYqRPbW}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42469,e=>{"use strict";var r=e.i(91398),t=e.i(56206),o=e.i(60193);e.s(["default",0,({text:e,className:a="",dotted:d=null,color:l="green",square:s=null,onClick:i=null})=>{let b=l?.trim(),n="rainbow"===b;return(0,r.jsx)("span",{id:"badge",className:(0,t.default)(n?"inline-flex items-center text-sm font-bold text-text-primary shadow-lg relative p-[2px] bg-gradient-to-r from-rose-500 via-emerald-500 to-sky-500":`inline-flex items-center border ${(0,o.borderColor)(b,400)} px-2.5 py-0.5 text-sm font-medium ${(0,o.bgColor)(b,100)} ${(0,o.textColor)(b,800)}`,a,{"rounded-full":!s,"rounded-md":s}),children:n?(0,r.jsxs)("span",{className:(0,t.default)("inline-flex items-center bg-white dark:bg-slate-700 px-2.5 py-0.5",{"rounded-full":!s,"rounded-md":s}),children:[d&&(0,r.jsx)("svg",{className:"text-text-primary -ml-1 mr-1.5 h-2 w-2",fill:"currentColor",viewBox:"0 0 8 8",children:(0,r.jsx)("circle",{cx:"4",cy:"4",r:"3"})}),e,i&&(0,r.jsx)("button",{id:"badge-x-button",type:"button",onClick:i,className:"ml-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full text-text-primary hover:bg-slate-900 hover:bg-opacity-10 dark:hover:bg-white dark:hover:bg-opacity-20 focus:outline-hidden focus:bg-slate-900 focus:bg-opacity-20 dark:focus:bg-white dark:focus:bg-opacity-30",children:(0,r.jsx)("svg",{className:"h-2 w-2",stroke:"currentColor",fill:"none",viewBox:"0 0 8 8",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeWidth:"1.5",d:"M1 1l6 6m0-6L1 7"})})})]}):(0,r.jsxs)(r.Fragment,{children:[d&&(0,r.jsx)("svg",{className:`-ml-1 mr-1.5 h-2 w-2 ${(0,o.textColor)(b,400)}`,fill:"currentColor",viewBox:"0 0 8 8",children:(0,r.jsx)("circle",{cx:"4",cy:"4",r:"3"})}),e,i&&(0,r.jsx)("button",{id:"badge-x-button",type:"button",onClick:i,className:`ml-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full ${(0,o.textColor)(b,400)} hover:${(0,o.bgColor)(b,200)} hover:text-${b}-500 focus:outline-hidden focus:${(0,o.bgColor)(b,500)} focus:text-white`,children:(0,r.jsx)("svg",{className:"h-2 w-2",stroke:"currentColor",fill:"none",viewBox:"0 0 8 8",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeWidth:"1.5",d:"M1 1l6 6m0-6L1 7"})})})]})})}])},70693,12970,e=>{"use strict";var r=e.i(91788);let t=r.default.createContext({customProperties:{},hydrateFragment:(e,r)=>null});e.s(["default",0,t],12970),e.s(["default",0,()=>(0,r.useContext)(t)],70693)},73298,2228,e=>{"use strict";var r=e.i(59080);let t=r.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,t],2228);let o=r.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
|
+
${t}
|
|
126
|
+
`;e.s(["default",0,o],73298)},51870,e=>{"use strict";var r=e.i(59080),t=e.i(32171),o=e.i(70693),a=e.i(73298);e.s(["default",0,e=>{let{customProperties:d,hydrateFragment:l}=(0,o.default)(),{data:s,loading:i,error:b}=(0,t.useQuery)(((e="")=>r.gql`
|
|
127
|
+
query CurrentUser {
|
|
128
|
+
me {
|
|
129
|
+
...UserFragment
|
|
130
|
+
allowedActions
|
|
131
|
+
viewerAllowedActions
|
|
132
|
+
${e}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
${a.default}
|
|
136
|
+
`)(d?.User)),n=s?.me,g=l(d?.User,n||null);return{currentUser:n,loading:i,error:b,extendedData:g}}])},55989,48539,e=>{"use strict";var r=e.i(91398),t=e.i(91788),o=e.i(69322),a=e.i(51713),d=e.i(98520),l=e.i(59080),s=e.i(32171);let i=l.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
|
+
`,b=()=>{let{data:e,loading:r,error:t}=(0,s.useQuery)(i,{fetchPolicy:"cache-first"}),{shopInfo:o}=e||{};return{shopInfo:o,defaultLocale:[o?.language?.isoCode,o?.country?.isoCode?.toUpperCase()].filter(Boolean)?.join("-"),loading:r,error:t}};e.s(["default",0,b],48539);var n=e.i(79684),g=e.i(51870);let u=(0,t.createContext)(void 0);e.s(["AppContextWrapper",0,({children:e,onlyFull:l=!1})=>{let s,{currentUser:i}=(0,g.default)(),x=!!i?._id&&!i?.isGuest,{languages:m}=(0,a.default)({skip:!x}),{locale:p}=(0,o.useIntl)(),[c,k]=(0,n.default)("selectedLocale",null),{shopInfo:y,loading:f}=b(),{countries:h}=(0,d.default)({skip:!x}),[C,_]=(0,t.useState)(p),w=e=>{k(e),_(e)};(0,t.useEffect)(()=>{c?_(c):f||w(`${y?.language?.isoCode}-${y?.country?.isoCode?.toUpperCase()}`)},[y,f,p]);let v=(s=[],m.forEach(({_id:e,isoCode:r})=>{s.push({_id:e,isoCode:r}),h.forEach(({isoCode:t,_id:o})=>{let a=[r,t.toUpperCase()].join("-");(e=>{try{return new Intl.DateTimeFormat(e).resolvedOptions().locale.toLowerCase()===e.toLowerCase()}catch(e){return!1}})(a)&&s.push({_id:`${o}-${e}`,isoCode:a})})}),s).filter(e=>!l||e.isoCode.includes("-")),S=!!y?.language&&!!y?.country;return(0,r.jsx)(u.Provider,{value:{selectedLocale:C,setSelectedLocale:w,languageDialectList:v,isSystemReady:S,shopInfo:y},children:e})},"default",0,u],55989)},11056,e=>{"use strict";var r=e.i(91398),t=e.i(91788),o=e.i(5505),a=e.i(57561);e.s(["default",0,({children:e,onlyFull:d=!1})=>{let{languageDialectList:l,selectedLocale:s,setSelectedLocale:i}=(0,a.default)(),b=(0,t.useContext)(o.FormWrapperContext),n=l.filter(e=>!d||e.isoCode.includes("-"));return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:`w-fit mt-5 mb-3 ${b?"ml-5":""}`,children:(0,r.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:s||"",onChange:e=>{e.stopPropagation(),i(e.target.value)},children:n?.map(e=>(0,r.jsx)("option",{value:e.isoCode,children:e.isoCode},e._id))})}),(0,r.jsx)("div",{children:t.default.cloneElement(e)})]})}])},60193,e=>{"use strict";let r={red:{bg:{50:"bg-rose-50 dark:bg-rose-900/20",100:"bg-rose-100 dark:bg-rose-900/30",200:"bg-rose-200",300:"bg-rose-300 dark:bg-rose-900/30",400:"bg-rose-400",500:"bg-rose-500",600:"bg-rose-600",700:"bg-rose-700",800:"bg-rose-800",900:"bg-rose-900"},text:{50:"text-rose-50",100:"text-rose-100",200:"text-rose-200",300:"text-rose-300",400:"text-rose-400 dark:text-rose-300",500:"text-rose-500",600:"text-danger",700:"text-rose-700 dark:text-rose-300",800:"text-rose-800 dark:text-rose-200",900:"text-rose-900"},border:{50:"border-rose-50",100:"border-rose-100",200:"border-rose-200 dark:border-rose-800",300:"border-rose-300 dark:border-rose-700",400:"border-rose-400 dark:border-rose-600",500:"border-rose-500",600:"border-rose-600",700:"border-rose-700",800:"border-rose-800",900:"border-rose-900"}},pink:{bg:{50:"bg-pink-50",100:"bg-pink-100",200:"bg-pink-200",300:"bg-pink-300",400:"bg-pink-400",500:"bg-pink-500",600:"bg-pink-600",700:"bg-pink-700",800:"bg-pink-800",900:"bg-pink-900"},text:{50:"text-pink-50",100:"text-pink-100",200:"text-pink-200",300:"text-pink-300",400:"text-pink-400",500:"text-pink-500",600:"text-pink-600",700:"text-pink-700",800:"text-pink-800",900:"text-pink-900"},border:{50:"border-pink-50",100:"border-pink-100",200:"border-pink-200",300:"border-pink-300",400:"border-pink-400",500:"border-pink-500",600:"border-pink-600",700:"border-pink-700",800:"border-pink-800",900:"border-pink-900"}},purple:{bg:{50:"bg-purple-50 dark:bg-purple-900/20",100:"bg-purple-100 dark:bg-purple-900/30",200:"bg-purple-200",300:"bg-purple-300",400:"bg-purple-400",500:"bg-purple-500",600:"bg-purple-600",700:"bg-purple-700",800:"bg-purple-800",900:"bg-purple-900"},text:{50:"text-purple-50",100:"text-purple-100",200:"text-purple-200",300:"text-purple-300",400:"text-purple-400 dark:text-purple-300",500:"text-purple-500",600:"text-purple-600 dark:text-purple-400",700:"text-purple-700",800:"text-purple-800 dark:text-purple-300",900:"text-purple-900"},border:{50:"border-purple-50",100:"border-purple-100",200:"border-purple-200 dark:border-purple-600",300:"border-purple-300 dark:border-purple-500",400:"border-purple-400 dark:border-purple-500",500:"border-purple-500",600:"border-purple-600",700:"border-purple-700",800:"border-purple-800",900:"border-purple-900"}},"deep-purple":{bg:{50:"bg-deep-purple-50",100:"bg-deep-purple-100",200:"bg-deep-purple-200",300:"bg-deep-purple-300",400:"bg-deep-purple-400",500:"bg-deep-purple-500",600:"bg-deep-purple-600",700:"bg-deep-purple-700",800:"bg-deep-purple-800",900:"bg-deep-purple-900"},text:{50:"text-deep-purple-50",100:"text-deep-purple-100",200:"text-deep-purple-200",300:"text-deep-purple-300",400:"text-deep-purple-400",500:"text-deep-purple-500",600:"text-deep-purple-600",700:"text-deep-purple-700",800:"text-deep-purple-800",900:"text-deep-purple-900"},border:{50:"border-deep-purple-50",100:"border-deep-purple-100",200:"border-deep-purple-200",300:"border-deep-purple-300",400:"border-deep-purple-400",500:"border-deep-purple-500",600:"border-deep-purple-600",700:"border-deep-purple-700",800:"border-deep-purple-800",900:"border-deep-purple-900"}},blue:{bg:{50:"bg-sky-50 dark:bg-sky-900/20",100:"bg-sky-100 dark:bg-sky-900/30",200:"bg-sky-200",300:"bg-sky-300",400:"bg-sky-400",500:"bg-sky-500",600:"bg-sky-600",700:"bg-sky-700",800:"bg-sky-800",900:"bg-sky-900"},text:{50:"text-sky-50",100:"text-sky-100",200:"text-sky-200",300:"text-sky-300",400:"text-sky-400 dark:text-sky-300",500:"text-sky-500",600:"text-sky-600 dark:text-sky-400",700:"text-sky-700 dark:text-sky-300",800:"text-sky-800 dark:text-sky-200",900:"text-sky-900"},border:{50:"border-sky-50",100:"border-sky-100",200:"border-sky-200 dark:border-sky-800",300:"border-sky-300 dark:border-sky-700",400:"border-sky-400 dark:border-sky-600",500:"border-sky-500",600:"border-sky-600",700:"border-sky-700",800:"border-sky-800",900:"border-sky-900"}},"light-blue":{bg:{50:"bg-sky-50",100:"bg-sky-100",200:"bg-sky-200",300:"bg-sky-300",400:"bg-sky-400",500:"bg-sky-500",600:"bg-sky-600",700:"bg-sky-700",800:"bg-sky-800",900:"bg-sky-900"},text:{50:"text-sky-50",100:"text-sky-100",200:"text-sky-200",300:"text-sky-300",400:"text-sky-400",500:"text-sky-500",600:"text-sky-600",700:"text-sky-700",800:"text-sky-800",900:"text-sky-900"},border:{50:"border-sky-50",100:"border-sky-100",200:"border-sky-200",300:"border-sky-300",400:"border-sky-400",500:"border-sky-500",600:"border-sky-600",700:"border-sky-700",800:"border-sky-800",900:"border-sky-900"}},indigo:{bg:{50:"bg-indigo-50",100:"bg-indigo-100",200:"bg-indigo-200",300:"bg-indigo-300",400:"bg-indigo-400",500:"bg-indigo-500",600:"bg-indigo-600",700:"bg-indigo-700",800:"bg-indigo-800",900:"bg-indigo-900"},text:{50:"text-indigo-50",100:"text-indigo-100",200:"text-indigo-200",300:"text-indigo-300",400:"text-indigo-400",500:"text-indigo-500",600:"text-indigo-600",700:"text-indigo-700",800:"text-indigo-800",900:"text-indigo-900"},border:{50:"border-indigo-50",100:"border-indigo-100",200:"border-indigo-200",300:"border-indigo-300",400:"border-indigo-400",500:"border-indigo-500",600:"border-indigo-600",700:"border-indigo-700",800:"border-indigo-800",900:"border-indigo-900"}},cyan:{bg:{50:"bg-cyan-50 dark:bg-cyan-900/20",100:"bg-cyan-100 dark:bg-cyan-900/30",200:"bg-cyan-200",300:"bg-cyan-300",400:"bg-cyan-400",500:"bg-cyan-500",600:"bg-cyan-600",700:"bg-cyan-700",800:"bg-cyan-800",900:"bg-cyan-900"},text:{50:"text-cyan-50",100:"text-cyan-100",200:"text-cyan-200",300:"text-cyan-300",400:"text-cyan-400 dark:text-cyan-300",500:"text-cyan-500",600:"text-cyan-600 dark:text-cyan-400",700:"text-cyan-700 dark:text-cyan-300",800:"text-cyan-800 dark:text-cyan-200",900:"text-cyan-900"},border:{50:"border-cyan-50",100:"border-cyan-100",200:"border-cyan-200 dark:border-cyan-800",300:"border-cyan-300 dark:border-cyan-700",400:"border-cyan-400 dark:border-cyan-600",500:"border-cyan-500",600:"border-cyan-600",700:"border-cyan-700",800:"border-cyan-800",900:"border-cyan-900"}},teal:{bg:{50:"bg-teal-50 dark:bg-teal-900/20",100:"bg-teal-100 dark:bg-teal-900/30",200:"bg-teal-200",300:"bg-teal-300",400:"bg-teal-400",500:"bg-teal-500",600:"bg-teal-600",700:"bg-teal-700",800:"bg-teal-800",900:"bg-teal-900"},text:{50:"text-teal-50",100:"text-teal-100",200:"text-teal-200",300:"text-teal-300",400:"text-teal-400 dark:text-teal-300",500:"text-teal-500",600:"text-teal-600 dark:text-teal-400",700:"text-teal-700 dark:text-teal-300",800:"text-teal-800 dark:text-teal-200",900:"text-teal-900"},border:{50:"border-teal-50",100:"border-teal-100",200:"border-teal-200 dark:border-teal-800",300:"border-teal-300 dark:border-teal-700",400:"border-teal-400 dark:border-teal-600",500:"border-teal-500",600:"border-teal-600",700:"border-teal-700",800:"border-teal-800",900:"border-teal-900"}},green:{bg:{50:"bg-emerald-50 dark:bg-emerald-900/20",100:"bg-emerald-50 dark:bg-emerald-900/30",200:"bg-emerald-200",300:"bg-emerald-300",400:"bg-emerald-400",500:"bg-emerald-500",600:"bg-emerald-600",700:"bg-emerald-700",800:"bg-emerald-800",900:"bg-emerald-900"},text:{50:"text-emerald-50",100:"text-emerald-100",200:"text-emerald-200",300:"text-emerald-300",400:"text-emerald-400",500:"text-emerald-500",600:"text-emerald-600 dark:text-emerald-400",700:"text-emerald-700 dark:text-emerald-300",800:"text-emerald-700 dark:text-emerald-300",900:"text-emerald-900"},border:{50:"border-emerald-50",100:"border-emerald-100",200:"border-emerald-200 dark:border-emerald-800",300:"border-emerald-300 dark:border-emerald-700",400:"border-emerald-200 dark:border-emerald-800",500:"border-emerald-500",600:"border-emerald-600",700:"border-emerald-700",800:"border-emerald-800",900:"border-emerald-900"}},"light-green":{bg:{50:"bg-light-green-50",100:"bg-light-green-100",200:"bg-light-green-200",300:"bg-light-green-300",400:"bg-light-green-400",500:"bg-light-green-500",600:"bg-light-green-600",700:"bg-light-green-700",800:"bg-light-green-800",900:"bg-light-green-900"},text:{50:"text-light-green-50",100:"text-light-green-100",200:"text-light-green-200",300:"text-light-green-300",400:"text-light-green-400",500:"text-light-green-500",600:"text-light-green-600",700:"text-light-green-700",800:"text-light-green-800",900:"text-light-green-900"},border:{50:"border-light-green-50",100:"border-light-green-100",200:"border-light-green-200",300:"border-light-green-300",400:"border-light-green-400",500:"border-light-green-500",600:"border-light-green-600",700:"border-light-green-700",800:"border-light-green-800",900:"border-light-green-900"}},lime:{bg:{50:"bg-lime-50 dark:bg-lime-900/20",100:"bg-lime-100 dark:bg-lime-900/30",200:"bg-lime-200",300:"bg-lime-300",400:"bg-lime-400",500:"bg-lime-500",600:"bg-lime-600",700:"bg-lime-700",800:"bg-lime-800",900:"bg-lime-900"},text:{50:"text-lime-50",100:"text-lime-100",200:"text-lime-200",300:"text-lime-300",400:"text-lime-400 dark:text-lime-300",500:"text-lime-500",600:"text-lime-600 dark:text-lime-400",700:"text-lime-700 dark:text-lime-300",800:"text-lime-800 dark:text-lime-200",900:"text-lime-900"},border:{50:"border-lime-50",100:"border-lime-100",200:"border-lime-200 dark:border-lime-800",300:"border-lime-300 dark:border-lime-700",400:"border-lime-400 dark:border-lime-600",500:"border-lime-500",600:"border-lime-600",700:"border-lime-700",800:"border-lime-800",900:"border-lime-900"}},yellow:{bg:{50:"bg-yellow-50 dark:bg-yellow-900/20",100:"bg-amber-100 dark:bg-yellow-900/30",200:"bg-yellow-200",300:"bg-yellow-300",400:"bg-amber-400",500:"bg-amber-500",600:"bg-yellow-600",700:"bg-yellow-700",800:"bg-yellow-800",900:"bg-yellow-900"},text:{50:"text-yellow-50",100:"text-yellow-100",200:"text-yellow-200",300:"text-yellow-300",400:"text-amber-400 dark:text-yellow-300",500:"text-amber-500",600:"text-amber-600 dark:text-yellow-400",700:"text-yellow-700",800:"text-yellow-800 dark:text-yellow-300",900:"text-yellow-900"},border:{50:"border-yellow-50",100:"border-yellow-100",200:"border-yellow-200 dark:border-yellow-800",300:"border-yellow-300 dark:border-yellow-700",400:"border-amber-400 dark:border-yellow-800",500:"border-yellow-500",600:"border-yellow-600",700:"border-yellow-700",800:"border-yellow-800",900:"border-yellow-900"}},amber:{bg:{50:"bg-amber-50 dark:bg-amber-900/20",100:"bg-amber-100 dark:bg-amber-900/30",200:"bg-amber-200",300:"bg-amber-300",400:"bg-amber-400",500:"bg-amber-500",600:"bg-amber-600",700:"bg-amber-700",800:"bg-amber-800",900:"bg-amber-900"},text:{50:"text-amber-50",100:"text-amber-100",200:"text-amber-200",300:"text-amber-300",400:"text-amber-400 dark:text-amber-300",500:"text-amber-500",600:"text-amber-600 dark:text-amber-400",700:"text-amber-700 dark:text-amber-300",800:"text-amber-800 dark:text-amber-200",900:"text-amber-900"},border:{50:"border-amber-50",100:"border-amber-100",200:"border-amber-200 dark:border-amber-800",300:"border-amber-300 dark:border-amber-700",400:"border-amber-400 dark:border-amber-600",500:"border-amber-500",600:"border-amber-600",700:"border-amber-700",800:"border-amber-800",900:"border-amber-900"}},orange:{bg:{50:"bg-orange-50 dark:bg-orange-900/20",100:"bg-orange-100 dark:bg-orange-900/30",200:"bg-orange-200",300:"bg-orange-300",400:"bg-orange-400",500:"bg-orange-500",600:"bg-orange-600",700:"bg-orange-700",800:"bg-orange-800",900:"bg-orange-900"},text:{50:"text-orange-50",100:"text-orange-100",200:"text-orange-200",300:"text-orange-300",400:"text-orange-400 dark:text-orange-300",500:"text-orange-500",600:"text-orange-600 dark:text-orange-400",700:"text-orange-700 dark:text-orange-300",800:"text-orange-800 dark:text-orange-200",900:"text-orange-900"},border:{50:"border-orange-50",100:"border-orange-100",200:"border-orange-200 dark:border-orange-800",300:"border-orange-300 dark:border-orange-700",400:"border-orange-400 dark:border-orange-600",500:"border-orange-500",600:"border-orange-600",700:"border-orange-700",800:"border-orange-800",900:"border-orange-900"}},"deep-orange":{bg:{50:"bg-deep-orange-50",100:"bg-deep-orange-100",200:"bg-deep-orange-200",300:"bg-deep-orange-300",400:"bg-deep-orange-400",500:"bg-deep-orange-500",600:"bg-deep-orange-600",700:"bg-deep-orange-700",800:"bg-deep-orange-800",900:"bg-deep-orange-900"},text:{50:"text-deep-orange-50",100:"text-deep-orange-100",200:"text-deep-orange-200",300:"text-deep-orange-300",400:"text-deep-orange-400",500:"text-deep-orange-500",600:"text-deep-orange-600",700:"text-deep-orange-700",800:"text-deep-orange-800",900:"text-deep-orange-900"},border:{50:"border-deep-orange-50",100:"border-deep-orange-100",200:"border-deep-orange-200",300:"border-deep-orange-300",400:"border-deep-orange-400",500:"border-deep-orange-500",600:"border-deep-orange-600",700:"border-deep-orange-700",800:"border-deep-orange-800",900:"border-deep-orange-900"}},stone:{bg:{50:"bg-stone-50",100:"bg-stone-100",200:"bg-stone-200",300:"bg-stone-300",400:"bg-stone-400",500:"bg-stone-500",600:"bg-stone-600",700:"bg-stone-700",800:"bg-stone-800",900:"bg-stone-900"},text:{50:"text-stone-50",100:"text-stone-100",200:"text-stone-200",300:"text-stone-300",400:"text-stone-400",500:"text-stone-500",600:"text-stone-600",700:"text-stone-700",800:"text-stone-800",900:"text-stone-900"},border:{50:"border-stone-50",100:"border-stone-100",200:"border-stone-200",300:"border-stone-300",400:"border-stone-400",500:"border-stone-500",600:"border-stone-600",700:"border-stone-700",800:"border-stone-800",900:"border-stone-900"}},slate:{bg:{50:"bg-slate-50",100:"bg-surface/50",200:"bg-slate-200",300:"bg-slate-300",400:"bg-slate-400",500:"bg-slate-500",600:"bg-slate-600",700:"bg-slate-700",800:"bg-slate-800",900:"bg-slate-900"},text:{50:"text-slate-50",100:"text-slate-100",200:"text-slate-200",300:"text-slate-300",400:"text-slate-400",500:"text-slate-500",600:"text-text-secondary",700:"text-slate-700",800:"text-text-secondary",900:"text-slate-900"},border:{50:"border-slate-50",100:"border-slate-100",200:"border-border-default",300:"border-slate-300",400:"border-border-default",500:"border-slate-500",600:"border-slate-600",700:"border-slate-700",800:"border-slate-800",900:"border-slate-900"}},rose:{bg:{50:"bg-rose-50 dark:bg-rose-900/20",100:"bg-rose-100 dark:bg-rose-900/30",200:"bg-rose-200",300:"bg-rose-300 dark:bg-rose-900/30",400:"bg-rose-400",500:"bg-rose-500",600:"bg-rose-600",700:"bg-rose-700",800:"bg-rose-800",900:"bg-rose-900"},text:{50:"text-rose-50",100:"text-rose-100",200:"text-rose-200",300:"text-rose-300",400:"text-rose-400 dark:text-rose-300",500:"text-rose-500",600:"text-danger",700:"text-rose-700 dark:text-rose-300",800:"text-rose-800 dark:text-rose-200",900:"text-rose-900"},border:{50:"border-rose-50",100:"border-rose-100",200:"border-rose-200 dark:border-rose-800",300:"border-rose-300 dark:border-rose-700",400:"border-rose-400 dark:border-rose-600",500:"border-rose-500",600:"border-rose-600",700:"border-rose-700",800:"border-rose-800",900:"border-rose-900"}},sky:{bg:{50:"bg-sky-50 dark:bg-sky-900/20",100:"bg-sky-100 dark:bg-sky-900/30",200:"bg-sky-200",300:"bg-sky-300",400:"bg-sky-400",500:"bg-sky-500",600:"bg-sky-600",700:"bg-sky-700",800:"bg-sky-800",900:"bg-sky-900"},text:{50:"text-sky-50",100:"text-sky-100",200:"text-sky-200",300:"text-sky-300",400:"text-sky-400 dark:text-sky-300",500:"text-sky-500",600:"text-sky-600 dark:text-sky-400",700:"text-sky-700 dark:text-sky-300",800:"text-sky-800 dark:text-sky-200",900:"text-sky-900"},border:{50:"border-sky-50",100:"border-sky-100",200:"border-sky-200 dark:border-sky-800",300:"border-sky-300 dark:border-sky-700",400:"border-sky-400 dark:border-sky-600",500:"border-sky-500",600:"border-sky-600",700:"border-sky-700",800:"border-sky-800",900:"border-sky-900"}},emerald:{bg:{50:"bg-emerald-50 dark:bg-emerald-900/20",100:"bg-emerald-100 dark:bg-emerald-900/30",200:"bg-emerald-200",300:"bg-emerald-300",400:"bg-emerald-400",500:"bg-emerald-500",600:"bg-emerald-600",700:"bg-emerald-700",800:"bg-emerald-800",900:"bg-emerald-900"},text:{50:"text-emerald-50",100:"text-emerald-100",200:"text-emerald-200",300:"text-emerald-300",400:"text-emerald-400",500:"text-emerald-500",600:"text-emerald-600 dark:text-emerald-400",700:"text-emerald-700 dark:text-emerald-300",800:"text-emerald-800 dark:text-emerald-200",900:"text-emerald-900"},border:{50:"border-emerald-50",100:"border-emerald-100",200:"border-emerald-200 dark:border-emerald-800",300:"border-emerald-300 dark:border-emerald-700",400:"border-emerald-400 dark:border-emerald-600",500:"border-emerald-500",600:"border-emerald-600",700:"border-emerald-700",800:"border-emerald-800",900:"border-emerald-900"}},"blue-slate":{bg:{50:"bg-slate-50",100:"bg-slate-100",200:"bg-slate-200",300:"bg-slate-300",400:"bg-slate-400",500:"bg-slate-500",600:"bg-slate-600",700:"bg-slate-700",800:"bg-slate-800",900:"bg-slate-900"},text:{50:"text-slate-50",100:"text-slate-100",200:"text-slate-200",300:"text-slate-300",400:"text-slate-400",500:"text-slate-500",600:"text-slate-600",700:"text-slate-700",800:"text-slate-800",900:"text-slate-900"}}},t={NEW:"shadow-[inset_0_0_0_5px_rgb(168_85_247)]",ALLOCATED:"shadow-[inset_0_0_0_5px_rgb(14_165_233)]",SUCCESS:"shadow-[inset_0_0_0_5px_rgb(16_185_129)]",FAILED:"shadow-[inset_0_0_0_5px_rgb(244_63_94)]",DELETED:"shadow-[inset_0_0_0_5px_rgb(251_146_60)]"};e.s(["DELIVERY_STATUSES",0,{DELIVERED:"green",RETURNED:"red",OPEN:"yellow"},"DefaultLimit",0,50,"ORDER_STATUSES",0,{OPEN:"purple",PENDING:"sky",CONFIRMED:"lime",FULFILLED:"emerald",REJECTED:"rose"},"PAYMENT_STATUSES",0,{PAID:"green",REFUNDED:"red",OPEN:"yellow"},"PROVIDER_TYPE_CLASSES",0,{PHYSICAL:"emerald",CARD:"sky",INVOICE:"lime",GENERIC:"purple",PICKUP:"red",SHIPPING:"sky"},"QUOTATION_STATUS",0,{REQUESTED:"orange",PROCESSING:"yellow",PROPOSED:"cyan",REJECTED:"red",FULFILLED:"emerald"},"TOKEN_STATUSES",0,{CENTRALIZED:"sky",EXPORTING:"amber",DECENTRALIZED:"emerald"},"WORK_STATUSES",0,{NEW:"purple",ALLOCATED:"sky",SUCCESS:"emerald",FAILED:"rose",DELETED:"orange"},"bgColor",0,(e,t)=>`${r?.[e].bg[t]}`,"borderColor",0,(e,t)=>`${r[e]?.border[t]}`,"getShadowStyle",0,e=>`${t[e]}`,"textColor",0,(e,t)=>`${r[e].text[t]}`])},57561,e=>{"use strict";var r=e.i(91788),t=e.i(55989);e.s(["default",0,()=>{let e=(0,r.useContext)(t.default);if(!e)throw Error("useLocale must be used within a LocaleProvider");return e}])},79684,e=>{"use strict";var r=e.i(91788);e.s(["default",0,(e,t)=>{let[o,a]=(0,r.useState)(()=>{try{if(window.localStorage){let r=window.localStorage.getItem(e);return r?JSON.parse(r):t}return t}catch(e){return t}});return[o,r=>{try{if(window.localStorage){let t=r instanceof Function?r(o):r;a(t),window.localStorage.setItem(e,JSON.stringify(t))}else console.error("localStorage is not available")}catch(e){console.error(e)}}]}])},1880,e=>{"use strict";e.s(["default",0,(e={})=>{let{_id:r,texts:t}=e||{};return t||r?`${t?.slug?.split("/").join("")||""}_id_${r}`:null},"parseSlug",0,e=>{if(!e)return null;let[r]=e?.split("_id_")||[];return r},"parseUniqueId",0,e=>{if(!e)return null;let r=e?.split("_id_");return r?.pop()}])},77846,e=>{"use strict";var r=e.i(59080);let t=r.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,t])},98520,e=>{"use strict";var r=e.i(59080),t=e.i(32171),o=e.i(77846);let a=r.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
|
+
${o.default}
|
|
206
|
+
`;e.s(["default",0,({queryString:e="",limit:r=20,offset:o=0,includeInactive:d=!0,sort:l=[],skip:s=!1}={})=>{let{data:i,loading:b,error:n,fetchMore:g}=(0,t.useQuery)(a,{variables:{queryString:e,limit:r,offset:o,includeInactive:d,sort:l},errorPolicy:"all",skip:s}),u=i?.countries||[],x=i?.countriesCount,m=u?.length<x;return{countries:u,countriesCount:x,hasMore:m,loading:b,error:n,loadMore:()=>{g({variables:{offset:u?.length}})}}}])},95064,e=>{"use strict";var r=e.i(59080);let t=r.gql`
|
|
207
|
+
fragment LanguageFragment on Language {
|
|
208
|
+
_id
|
|
209
|
+
isoCode
|
|
210
|
+
isActive
|
|
211
|
+
isBase
|
|
212
|
+
name
|
|
213
|
+
}
|
|
214
|
+
`;e.s(["default",0,t])},51713,e=>{"use strict";var r=e.i(59080),t=e.i(32171),o=e.i(95064);let a=r.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
|
+
${o.default}
|
|
234
|
+
`;e.s(["default",0,({queryString:e="",limit:r=20,offset:o=0,includeInactive:d=!0,sort:l=[],skip:s=!1}={})=>{let{data:i,loading:b,error:n,fetchMore:g}=(0,t.useQuery)(a,{variables:{queryString:e,limit:r,offset:o,includeInactive:d,sort:l},errorPolicy:"all",skip:s}),u=i?.languages||[],x=i?.languagesCount,m=u?.length<x;return{languages:u,languagesCount:x,hasMore:m,loading:b,error:n,loadMore:()=>{g({variables:{offset:u?.length}})}}}])},21799,e=>{"use strict";var r=e.i(91398),t=e.i(3828),o=e.i(69322);e.i(51523);var a=e.i(19518),d=e.i(58971),l=e.i(6634),s=e.i(69211),i=e.i(63094),b=e.i(21128),n=e.i(13120),g=e.i(16984),u=e.i(98949),x=e.i(57561);let m=({onSubmit:e,onSubmitSuccess:t})=>{let{formatMessage:m}=(0,o.useIntl)(),{hasRole:p}=(0,d.default)(),{selectedLocale:c,shopInfo:k}=(0,x.default)(),y=m({id:"assortment_added",defaultMessage:"Assortment added successfully!"}),f=(0,u.default)({submit:async r=>e({...r,locale:c}),onSubmitSuccess:t,successMessage:y,enableReinitialize:!0,initialValues:{isRoot:!0,title:"",subtitle:"",tags:[]}});return(0,r.jsxs)(s.default,{form:f,children:[(0,r.jsxs)("div",{className:"py-5 px-5",children:[(0,r.jsx)(g.default,{name:"title",id:"title",label:m({id:"title",defaultMessage:"Title"}),autoComplete:"off",required:!0,className:"mb-5"}),(0,r.jsx)(g.default,{name:"subtitle",id:"subtitle",label:m({id:"subtitle",defaultMessage:"Subtitle"}),autoComplete:"off",className:"mb-5"}),(0,r.jsx)(n.default,{name:"tags",id:"tags",label:m({id:"tags",defaultMessage:"Tags"}),selectOptions:(k?.adminUiConfig?.assortmentTags||[]).map(e=>({value:e,label:e}))})]}),(0,r.jsxs)("div",{className:"mx-5 mb-5",children:[(0,r.jsx)(l.default,{toggleText:m({id:"root_node",defaultMessage:"Root node"}),active:f.api.values.isRoot,onToggle:()=>f.api.setFieldValue("isRoot",!f.api.values.isRoot)}),(0,r.jsx)("span",{className:"block text-sm text-text-muted mt-2",children:m({id:"root_description",defaultMessage:"This makes the assortment a top level category"})})]}),(0,r.jsx)(i.default,{}),p(a.IRoleAction.ManageAssortments)&&(0,r.jsx)("div",{className:"border-t-slate-100 border-t border-t-border-subtle space-y-6 bg-surface-subtle p-5 text-right",children:(0,r.jsx)(b.default,{label:m({id:"add_assortment",defaultMessage:"Add Assortment"})})})]})};var p=e.i(59080),c=e.i(76204);let k=p.gql`
|
|
235
|
+
mutation CreateAssortment(
|
|
236
|
+
$assortment: CreateAssortmentInput!
|
|
237
|
+
$texts: [AssortmentTextInput!]
|
|
238
|
+
) {
|
|
239
|
+
createAssortment(assortment: $assortment, texts: $texts) {
|
|
240
|
+
_id
|
|
241
|
+
texts {
|
|
242
|
+
_id
|
|
243
|
+
slug
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
`;var y=e.i(50595),f=e.i(5505),h=e.i(25327),C=e.i(1880),_=e.i(11056);e.s(["default",0,()=>{let{formatMessage:e}=(0,o.useIntl)(),a=(0,t.useRouter)(),{createAssortment:d}=(()=>{let[e,{data:r,error:t,loading:o}]=(0,c.useMutation)(k);return{createAssortment:async({isRoot:r=!1,tags:t=[],texts:o})=>e({variables:{assortment:{isRoot:r,tags:t},texts:o},refetchQueries:["Assortments","TranslatedAssortmentTexts","ShopStatus","ShopInfo"]}),loading:o,newAssortment:r?.createAssortment,error:t}})(),l=async({title:e,subtitle:r,isRoot:t,tags:o,locale:a})=>{let{data:l,error:s}=await d({isRoot:t,texts:[{title:e,subtitle:r,locale:a}],tags:o});return!s&&{success:!0,data:l?.createAssortment}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y.default,{}),(0,r.jsxs)("div",{className:"mx-auto sm:max-w-2xl",children:[(0,r.jsx)(h.default,{headerText:e({id:"new_assortment_header",defaultMessage:"New Assortment"})}),(0,r.jsx)("div",{className:"mt-6 sm:max-w-2xl",children:(0,r.jsx)(f.default,{children:(0,r.jsx)(_.default,{children:(0,r.jsx)(m,{onSubmitSuccess:(e,r)=>{a.replace(`/assortments?assortmentSlug=${(0,C.default)(r)}`)},onSubmit:l})})})})]})]})}],21799)},92168,(e,r,t)=>{let o="/assortments/new";(window.__NEXT_P=window.__NEXT_P||[]).push([o,()=>e.r(21799)]),r.hot&&r.hot.dispose(function(){window.__NEXT_P.push([o])})},28805,e=>{e.v(r=>Promise.all(["static/chunks/0h0r_q6xa9qr_.js"].map(r=>e.l(r))).then(()=>r(79466)))},48761,e=>{e.v(r=>Promise.all(["static/chunks/1ae-9ft5cgojf.js"].map(r=>e.l(r))).then(()=>r(93594)))},13521,(e,r,t)=>{"use strict";e.i(50461),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return d}});let o=e.r(41705)._(e.r(91788)),a=e.r(15125),d=o.default.createContext(a.imageConfigDefault)},15125,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={VALID_LOADERS:function(){return d},imageConfigDefault:function(){return l}};for(var a in o)Object.defineProperty(t,a,{enumerable:!0,get:o[a]});let d=["default","imgix","cloudinary","akamai","custom"],l={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79001,34981,58101,e=>{"use strict";var t=e.i(91398),s=e.i(69322)
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79001,34981,58101,e=>{"use strict";var t=e.i(91398),s=e.i(69322);e.i(51523);var a=e.i(19518),r=e.i(28401),i=e.i(59295),l=e.i(6277),n=e.i(53576),d=e.i(15971),o=e.i(6607),c=e.i(65530),u=e.i(57569),m=e.i(91788),f=e.i(69211),g=e.i(21128),x=e.i(98949),h=e.i(35339),p=e.i(47542),v=e.i(13120),y=e.i(58971),j=e.i(5505),b=e.i(63094),M=e.i(37547),A=e.i(59080),I=e.i(32171);let _=A.gql`
|
|
2
2
|
query AssortmentPaths($assortmentId: ID!) {
|
|
3
3
|
assortment(assortmentId: $assortmentId) {
|
|
4
4
|
assortmentPaths {
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
_id
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
`,J=({link:e,onDelete:r,id:i})=>{let{hasRole:n}=(0,y.default)(),{formatMessage:d}=(0,s.useIntl)(),{_id:o,filter:c,tags:u}=e,{attributes:m,listeners:f,setNodeRef:g,transform:x,transition:h}=(0,l.useSortable)({id:i}),p={transform:$.CSS.Transform.toString(x),transition:h};return(0,t.jsx)(T.default,{href:`/filters?filterId=${c._id}`,children:(0,t.jsxs)("div",{ref:g,style:p,className:"group flex items-center justify-between rounded-sm border-b border-border-subtle hover:border-slate-300 dark:hover:border-slate-600 hover:bg-slate-50/80 dark:hover:bg-slate-700/50 transition-all duration-200 ease-in-out hover:shadow-sm px-2 gap-4 last:border-none hover:cursor-pointer",children:[(0,t.jsx)("div",{className:"shrink-0 grow-0 basis-20 pl-5 space-y-1 p-2",children:(0,t.jsx)(S.default,{color:c?.isActive?"emerald":"slate",text:d(c?.isActive?{id:"active",defaultMessage:"Active"}:{id:"inactive",defaultMessage:"In-Active"})})}),(0,t.jsxs)("div",{className:"shrink grow basis-1/3 pl-5 space-y-1 p-2",children:[(0,t.jsxs)("h3",{className:"text-lg text-text-secondary",children:["(",c?.key,") ",c?.texts?.title]}),(0,t.jsx)("p",{className:"text-xs text-slate-600",children:c?.texts?.subtitle}),(0,t.jsx)(S.default,{color:"slate",text:c?.type})]}),(0,t.jsx)("div",{className:"basis-1/4 pl-5 space-y-1 p-2",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:u?.map(e=>(0,t.jsx)(S.default,{color:"slate",text:e},e))})}),(0,t.jsx)("div",{onClick:e=>{e.stopPropagation()},children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-5",children:[n(a.IRoleAction.ManageAssortments)&&(0,t.jsx)("button",{type:"button",...m,...f,className:"hover:cursor-move",children:(0,t.jsx)(C.default,{})}),(0,t.jsx)(D.default,{onDelete:()=>{r(o)},showEdit:n(a.IRoleAction.ViewFilters),showDelete:n(a.IRoleAction.ManageAssortments)})]})})]})})},Y=({filters:e,onRemoveFilter:a,items:r})=>{let{formatMessage:i}=(0,s.useIntl)();return e?.length?(0,t.jsx)(l.SortableContext,{items:r,strategy:l.verticalListSortingStrategy,children:(0,t.jsx)("div",{className:"space-y-4 py-3 px-6 rounded-sm transition-[background-color] ease-in-out delay-200",children:r.map(s=>{let r=
|
|
87
|
+
`,J=({link:e,onDelete:r,id:i})=>{let{hasRole:n}=(0,y.default)(),{formatMessage:d}=(0,s.useIntl)(),{_id:o,filter:c,tags:u}=e,{attributes:m,listeners:f,setNodeRef:g,transform:x,transition:h}=(0,l.useSortable)({id:i}),p={transform:$.CSS.Transform.toString(x),transition:h};return(0,t.jsx)(T.default,{href:`/filters?filterId=${c._id}`,children:(0,t.jsxs)("div",{ref:g,style:p,className:"group flex items-center justify-between rounded-sm border-b border-border-subtle hover:border-slate-300 dark:hover:border-slate-600 hover:bg-slate-50/80 dark:hover:bg-slate-700/50 transition-all duration-200 ease-in-out hover:shadow-sm px-2 gap-4 last:border-none hover:cursor-pointer",children:[(0,t.jsx)("div",{className:"shrink-0 grow-0 basis-20 pl-5 space-y-1 p-2",children:(0,t.jsx)(S.default,{color:c?.isActive?"emerald":"slate",text:d(c?.isActive?{id:"active",defaultMessage:"Active"}:{id:"inactive",defaultMessage:"In-Active"})})}),(0,t.jsxs)("div",{className:"shrink grow basis-1/3 pl-5 space-y-1 p-2",children:[(0,t.jsxs)("h3",{className:"text-lg text-text-secondary",children:["(",c?.key,") ",c?.texts?.title]}),(0,t.jsx)("p",{className:"text-xs text-slate-600",children:c?.texts?.subtitle}),(0,t.jsx)(S.default,{color:"slate",text:c?.type})]}),(0,t.jsx)("div",{className:"basis-1/4 pl-5 space-y-1 p-2",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:u?.map(e=>(0,t.jsx)(S.default,{color:"slate",text:e},e))})}),(0,t.jsx)("div",{onClick:e=>{e.stopPropagation()},children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-5",children:[n(a.IRoleAction.ManageAssortments)&&(0,t.jsx)("button",{type:"button",...m,...f,className:"hover:cursor-move",children:(0,t.jsx)(C.default,{})}),(0,t.jsx)(D.default,{onDelete:()=>{r(o)},showEdit:n(a.IRoleAction.ViewFilters),showDelete:n(a.IRoleAction.ManageAssortments)})]})})]})})},Y=({filters:e,onRemoveFilter:a,items:r})=>{let{formatMessage:i}=(0,s.useIntl)();return e?.length?(0,t.jsx)(l.SortableContext,{items:r,strategy:l.verticalListSortingStrategy,children:(0,t.jsx)("div",{className:"space-y-4 py-3 px-6 rounded-sm transition-[background-color] ease-in-out delay-200",children:r.map(s=>{let r=e.find(e=>e._id===s);return(0,t.jsx)(J,{id:s,link:r,onDelete:a},r?._id)})})}):(0,t.jsx)(k.default,{message:i({id:"filters",defaultMessage:"Filters"})})},ee=A.gql`
|
|
88
88
|
mutation AddAssortmentFilter(
|
|
89
89
|
$assortmentId: ID!
|
|
90
90
|
$filterId: ID!
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
sortKey
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
`;e.s(["default",0,({assortmentId:e})=>{let{formatMessage:c}=(0,s.useIntl)(),{assortmentFilters:u,loading:m}=(({assortmentId:e=null,slug:t=null}={})=>{let s=(0,L.parseUniqueId)(t),{data:a,loading:r,error:i}=(0,I.useQuery)(H,{skip:!e&&!s,variables:{assortmentId:e||s}}),l=a?.assortment;return{loading:r,error:i,assortmentFilters:l?.filterAssignments||[]}})({assortmentId:e}),{setModal:f}=(0,o.default)(),{hasRole:g}=(0,y.default)(),{removeAssortmentFilter:x}=(()=>{let[e]=(0,F.useMutation)(Z);return{removeAssortmentFilter:async({assortmentFilterId:t})=>e({variables:{assortmentFilterId:t},refetchQueries:["AssortmentFilters"]})}})(),{reorderAssortmentFilters:h}=(()=>{let[e]=(0,F.useMutation)(ea);return{reorderAssortmentFilters:async({sortKeys:t})=>e({variables:{sortKeys:t},refetchQueries:["AssortmentFilters"]})}})(),p=u?.map(e=>e._id),v=async e=>{await f((0,t.jsx)(d.default,{onCancelClick:async()=>f(""),message:c({id:"delete_assortment_filter_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this language? "}),onOkClick:async()=>{f(""),await x({assortmentFilterId:e}),r.toast.success(c({id:"assortment_filter_deleted",defaultMessage:"Assortment filter deleted successfully"}))},okText:c({id:"delete_filter",defaultMessage:"Delete filter"})}))},j=async e=>{let{active:t,over:s}=e;if(t.id!==s.id){let e=p.indexOf(t.id),a=p.indexOf(s.id),i=(0,l.arrayMove)(p,e,a).map((e,t)=>({assortmentFilterId:e,sortKey:t}));try{await h({sortKeys:i}),r.toast.success(c({id:"link_reorder",defaultMessage:"Link reorder successfully"}))}catch(e){r.toast.error(c({id:"fail_reorder",defaultMessage:"Reordering failed, Try again!"}))}}else r.toast.info(c({id:"reorder_original",defaultMessage:"Reorder to original location"}))},b=(0,i.useSensors)((0,i.useSensor)(i.PointerSensor,{activationConstraint:{distance:5}}),(0,i.useSensor)(i.KeyboardSensor,{coordinateGetter:l.sortableKeyboardCoordinates}));return(0,t.jsxs)(t.Fragment,{children:[g(a.IRoleAction.ManageAssortments)&&(0,t.jsx)(K.default,{documentationLabel:c({id:"assortment_filters_form_header",defaultMessage:"Filters"}),className:"mt-2 lg:mt-5",documentation:(0,t.jsx)(s.FormattedMessage,{id:"assortment_filter_form_description",defaultMessage:"<ul> <li>Assign filters that will be applied for the assortment </li>\n </ul>",values:{ul:e=>(0,t.jsxs)("ul",{className:"space-y-2",children:[e," "]}),li:e=>(0,t.jsxs)("li",{className:"text-sm",children:[e," "]},Math.random()),strong:e=>(0,t.jsx)("strong",{className:"font-semibold text-text-secondary",children:e})}}),children:(0,t.jsx)(es,{assortmentId:e})}),(0,t.jsx)(K.default,{documentationLabel:c({id:"assortment_filters_header",defaultMessage:"Assortment filters"}),className:"sm:mt-4",documentation:(0,t.jsx)(s.FormattedMessage,{id:"assortment_filter_list_description",defaultMessage:"<ul> <li>All filters that are applied when searching for this assortment </li>\n <li> Drag and drop list items to sort filters order </li>\n </ul>",values:{ul:e=>(0,t.jsxs)("ul",{className:"space-y-2",children:[e," "]}),li:e=>(0,t.jsxs)("li",{className:"text-sm",children:[e," "]},Math.random()),strong:e=>(0,t.jsx)("strong",{className:"font-semibold text-text-secondary",children:e})}}),children:m?(0,t.jsx)("div",{className:"ml-auto shadow-sm dark:shadow-none w-full md:col-span-2",children:(0,t.jsx)(n.default,{})}):(0,t.jsx)("div",{className:"ml-auto shadow-sm dark:shadow-none w-full md:col-span-2 bg-surface",children:(0,t.jsx)(i.DndContext,{sensors:b,collisionDetection:i.closestCenter,onDragEnd:j,id:"assortment-filter",children:(0,t.jsx)(Y,{filters:u,onRemoveFilter:v,items:p})})})})]})}],58101)},45856,24941,e=>{"use strict";var t=e.i(91398),s=e.i(91788)
|
|
110
|
+
`;e.s(["default",0,({assortmentId:e})=>{let{formatMessage:c}=(0,s.useIntl)(),{assortmentFilters:u,loading:m}=(({assortmentId:e=null,slug:t=null}={})=>{let s=(0,L.parseUniqueId)(t),{data:a,loading:r,error:i}=(0,I.useQuery)(H,{skip:!e&&!s,variables:{assortmentId:e||s}}),l=a?.assortment;return{loading:r,error:i,assortmentFilters:l?.filterAssignments||[]}})({assortmentId:e}),{setModal:f}=(0,o.default)(),{hasRole:g}=(0,y.default)(),{removeAssortmentFilter:x}=(()=>{let[e]=(0,F.useMutation)(Z);return{removeAssortmentFilter:async({assortmentFilterId:t})=>e({variables:{assortmentFilterId:t},refetchQueries:["AssortmentFilters"]})}})(),{reorderAssortmentFilters:h}=(()=>{let[e]=(0,F.useMutation)(ea);return{reorderAssortmentFilters:async({sortKeys:t})=>e({variables:{sortKeys:t},refetchQueries:["AssortmentFilters"]})}})(),p=u?.map(e=>e._id),v=async e=>{await f((0,t.jsx)(d.default,{onCancelClick:async()=>f(""),message:c({id:"delete_assortment_filter_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this language? "}),onOkClick:async()=>{f(""),await x({assortmentFilterId:e}),r.toast.success(c({id:"assortment_filter_deleted",defaultMessage:"Assortment filter deleted successfully"}))},okText:c({id:"delete_filter",defaultMessage:"Delete filter"})}))},j=async e=>{let{active:t,over:s}=e;if(t.id!==s.id){let e=p.indexOf(t.id),a=p.indexOf(s.id),i=(0,l.arrayMove)(p,e,a).map((e,t)=>({assortmentFilterId:e,sortKey:t}));try{await h({sortKeys:i}),r.toast.success(c({id:"link_reorder",defaultMessage:"Link reorder successfully"}))}catch(e){r.toast.error(c({id:"fail_reorder",defaultMessage:"Reordering failed, Try again!"}))}}else r.toast.info(c({id:"reorder_original",defaultMessage:"Reorder to original location"}))},b=(0,i.useSensors)((0,i.useSensor)(i.PointerSensor,{activationConstraint:{distance:5}}),(0,i.useSensor)(i.KeyboardSensor,{coordinateGetter:l.sortableKeyboardCoordinates}));return(0,t.jsxs)(t.Fragment,{children:[g(a.IRoleAction.ManageAssortments)&&(0,t.jsx)(K.default,{documentationLabel:c({id:"assortment_filters_form_header",defaultMessage:"Filters"}),className:"mt-2 lg:mt-5",documentation:(0,t.jsx)(s.FormattedMessage,{id:"assortment_filter_form_description",defaultMessage:"<ul> <li>Assign filters that will be applied for the assortment </li>\n </ul>",values:{ul:e=>(0,t.jsxs)("ul",{className:"space-y-2",children:[e," "]}),li:e=>(0,t.jsxs)("li",{className:"text-sm",children:[e," "]},Math.random()),strong:e=>(0,t.jsx)("strong",{className:"font-semibold text-text-secondary",children:e})}}),children:(0,t.jsx)(es,{assortmentId:e})}),(0,t.jsx)(K.default,{documentationLabel:c({id:"assortment_filters_header",defaultMessage:"Assortment filters"}),className:"sm:mt-4",documentation:(0,t.jsx)(s.FormattedMessage,{id:"assortment_filter_list_description",defaultMessage:"<ul> <li>All filters that are applied when searching for this assortment </li>\n <li> Drag and drop list items to sort filters order </li>\n </ul>",values:{ul:e=>(0,t.jsxs)("ul",{className:"space-y-2",children:[e," "]}),li:e=>(0,t.jsxs)("li",{className:"text-sm",children:[e," "]},Math.random()),strong:e=>(0,t.jsx)("strong",{className:"font-semibold text-text-secondary",children:e})}}),children:m?(0,t.jsx)("div",{className:"ml-auto shadow-sm dark:shadow-none w-full md:col-span-2",children:(0,t.jsx)(n.default,{})}):(0,t.jsx)("div",{className:"ml-auto shadow-sm dark:shadow-none w-full md:col-span-2 bg-surface",children:(0,t.jsx)(i.DndContext,{sensors:b,collisionDetection:i.closestCenter,onDragEnd:j,id:"assortment-filter",children:(0,t.jsx)(Y,{filters:u,onRemoveFilter:v,items:p})})})})]})}],58101)},45856,24941,e=>{"use strict";var t=e.i(91398),s=e.i(91788);e.i(51523);var a=e.i(19518),r=e.i(69322),i=e.i(69211),l=e.i(21128),n=e.i(16984),d=e.i(98949),o=e.i(59080),c=e.i(32171);let u=o.gql`
|
|
111
111
|
fragment AssortmentTextsFragment on AssortmentTexts {
|
|
112
112
|
_id
|
|
113
113
|
locale
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
_id
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
|
-
`;e.s(["default",0,()=>{let[e]=(0,s.useMutation)(a);return{updateAssortment:async({assortmentId:t,assortment:{isRoot:s,tags:a,sequence:r,isActive:i}})=>e({variables:{assortment:{isRoot:s,tags:a,sequence:r,isActive:i},assortmentId:t},refetchQueries:["Assortments","Assortment"]})}}])},98568,e=>{"use strict";var t=e.i(91398),s=e.i(69322)
|
|
334
|
+
`;e.s(["default",0,()=>{let[e]=(0,s.useMutation)(a);return{updateAssortment:async({assortmentId:t,assortment:{isRoot:s,tags:a,sequence:r,isActive:i}})=>e({variables:{assortment:{isRoot:s,tags:a,sequence:r,isActive:i},assortmentId:t},refetchQueries:["Assortments","Assortment"]})}}])},98568,e=>{"use strict";var t=e.i(91398),s=e.i(69322);e.i(51523);var a=e.i(19518),r=e.i(28401),i=e.i(3828),l=e.i(50595),n=e.i(53576),d=e.i(25327),o=e.i(13534),c=e.i(70475),u=e.i(25705),m=e.i(27927),f=e.i(50243),g=e.i(52745),x=e.i(93259),h=e.i(76929),p=e.i(11056),v=e.i(92276),y=e.i(21623),j=e.i(24608),b=e.i(83788),M=e.i(15971),A=e.i(75818),I=e.i(45856),_=e.i(24941),w=e.i(79001),N=e.i(34981),k=e.i(58101),$=e.i(921),S=e.i(56779),C=e.i(34948),D=e.i(58971),L=e.i(6607),T=e.i(31494),R=e.i(57561);let q=({id:e,selectedView:s,...a})=>{if("texts"===s)return(0,t.jsx)(p.default,{children:(0,t.jsx)(I.default,{assortmentId:e})});if("links"===s)return(0,t.jsx)(p.default,{children:(0,t.jsx)(w.default,{assortmentId:e})});if("media"===s)return(0,t.jsx)(b.default,{children:(0,t.jsx)(p.default,{children:(0,t.jsx)(_.default,{assortmentId:e})})});if("products"===s)return(0,t.jsx)(p.default,{children:(0,t.jsx)(N.default,{assortmentId:e})});if("filters"===s)return(0,t.jsx)(p.default,{children:(0,t.jsx)(k.default,{assortmentId:e})});if("extended"===s)return(0,t.jsx)(p.default,{children:(0,t.jsx)(T.default,{data:a})});if(s?.startsWith("plugin:")){let a=s.replace("plugin:","");return(0,t.jsx)(c.default,{slot:"assortment:tabs",entityId:e,children:(s,r)=>r.component===a?(0,t.jsx)(s,{entityId:e}):null})}return(0,t.jsx)(p.default,{children:(0,t.jsx)(I.default,{assortmentId:e})})},F=({assortment:e,extendedData:l,hideControls:n=!1})=>{let{isActive:d,isRoot:c}=e||{},{hasRole:p}=(0,D.default)(),{shopInfo:b}=(0,R.default)(),{getSlotPlugins:I}=(0,o.usePlugins)(),{formatMessage:_}=(0,s.useIntl)(),{updateAssortment:w}=(0,$.default)(),{removeAssortment:N}=(0,A.default)(),{setModal:k}=(0,L.default)(),T=(0,i.useRouter)(),F=async t=>{t.target.value&&await w({assortmentId:e?._id,assortment:{sequence:parseInt(t.target.value,10)}})},P=[{id:"texts",title:_({id:"texts",defaultMessage:"Texts"}),Icon:(0,t.jsx)(u.DocumentTextIcon,{className:"h-5 w-5"})},{id:"links",title:_({id:"links",defaultMessage:"Links"}),Icon:(0,t.jsx)(m.LinkIcon,{className:"h-5 w-5"})},{id:"media",title:_({id:"media",defaultMessage:"Media"}),Icon:(0,t.jsx)(f.FilmIcon,{className:"h-5 w-5"})},{id:"products",title:_({id:"products",defaultMessage:"Products"}),Icon:(0,t.jsx)(g.CubeIcon,{className:"h-5 w-5"})},{id:"filters",title:_({id:"filters",defaultMessage:"Filters"}),Icon:(0,t.jsx)(x.FunnelIcon,{className:"h-5 w-5"})},null!==l&&{id:"extended",title:_({id:"extended-fields",defaultMessage:"Extended"}),Icon:(0,t.jsx)(h.PuzzlePieceIcon,{className:"h-5 w-5"})},...I("assortment:tabs").map(({config:e})=>({id:`plugin:${e.component}`,title:e.label,Icon:(0,t.jsx)(h.PuzzlePieceIcon,{className:"h-5 w-5"})}))],K=async t=>(await w({assortmentId:e?._id,assortment:{isRoot:t}}),!0),O=async({tags:t})=>(await w({assortmentId:e?._id,assortment:{tags:t}}),!0),Q=async t=>(await w({assortmentId:e?._id,assortment:{isActive:t}}),!0),U=[{id:"active",title:_({id:"activate",defaultMessage:"Activate"}),selectedTitle:_({id:"activated",defaultMessage:"Activated"}),description:_({id:"activate_assortment_description",defaultMessage:"Will be visible on search"}),current:d,bgColor:"emerald",disable:!p(a.IRoleAction.ManageAssortments),onClick:async()=>{await Q(!0),r.toast.success(_({id:"assortment_activated",defaultMessage:"Assortment activated successfully"}))}},{id:"in-active",title:_({id:"deactivate",defaultMessage:"Deactivate"}),selectedTitle:_({id:"deactivated",defaultMessage:"Deactivated"}),description:_({id:"deactivate_assortment_description",defaultMessage:"Will not be visible on search"}),current:!d,bgColor:"amber",disable:!p(a.IRoleAction.ManageAssortments),onClick:async()=>{await Q(!1),r.toast.success(_({id:"assortment_deactivated",defaultMessage:"Assortment deactivated successfully"}))}}],E=[{id:"root",title:_({id:"make_root",defaultMessage:"Make root"}),selectedTitle:_({id:"root",defaultMessage:"Root"}),description:_({id:"root_assortment_description",defaultMessage:"Can not be assigned as a child of another assortment "}),current:c,bgColor:"emerald",disable:!p(a.IRoleAction.ManageAssortments),onClick:async()=>{await K(!0),r.toast.success(_({id:"assortment_changed_to_root",defaultMessage:"Assortment changed to root"}))}},{id:"leaf",selectedTitle:_({id:"leaf",defaultMessage:"Leaf"}),title:_({id:"make_leaf",defaultMessage:"Make leaf"}),description:_({id:"leaf_assortment_description",defaultMessage:"Can be assigned as a child of another assortment "}),current:!c,bgColor:"emerald",disable:!p(a.IRoleAction.ManageAssortments),onClick:async()=>{await K(!1),r.toast.success(_({id:"assortment_changed_to_leaf",defaultMessage:"Assortment changed to leaf"}))}}],z=async()=>{await k((0,t.jsx)(M.default,{onCancelClick:()=>k(""),message:_({id:"delete_assortment_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it and it is nonreversible. Are you sure you want to delete this assortment?"}),onOkClick:async()=>{k(""),await N({assortmentId:e._id}),r.toast.success(_({id:"assortment_deleted_success",defaultMessage:"Deleted successfully"})),T.push("/assortments")}}))};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mt-5 flex flex-wrap items-center justify-between gap-10",children:[(0,t.jsx)(C.default,{defaultValue:e?.tags,onSubmit:O,enableEdit:p(a.IRoleAction.ManageAssortments),availableTagOptions:b?.adminUiConfig?.assortmentTags?.filter(t=>!(e?.tags||[])?.includes(t))?.map(e=>({value:e,label:e}))||[]}),!n&&(0,t.jsxs)("div",{className:"mt-5 flex flex-wrap gap-3",children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium leading-5 shadow-sm bg-surface h-[38px]",children:[(0,t.jsx)("label",{htmlFor:"sequence",className:"text-text-secondary font-medium",children:_({id:"sequence",defaultMessage:"Display Order"})}),(0,t.jsx)("input",{id:"sequence",type:"number",className:"text-center w-12 bg-transparent border border-border-default rounded focus:ring-0 focus:outline-none text-sm font-semibold text-text-primary px-2 py-1",defaultValue:e?.sequence,disabled:!p(a.IRoleAction.ManageAssortments),onBlur:F})]}),(0,t.jsx)(v.default,{options:E,type:_({id:"assortment",defaultMessage:"Assortment"})}),(0,t.jsx)(v.default,{options:U,type:_({id:"assortment",defaultMessage:"Assortment"})}),p(a.IRoleAction.ManageAssortments)&&(0,t.jsx)(y.default,{variant:"danger",icon:(0,t.jsx)(j.XMarkIcon,{className:"h-5 w-5"}),text:"Delete",onClick:z})]})]}),(0,t.jsx)(S.default,{tabItems:P,defaultTab:"texts",children:(0,t.jsx)(q,{id:e?._id,...l})})]})};var P=e.i(59080),K=e.i(32171),O=e.i(1880),Q=e.i(70693),U=e.i(50931),E=e.i(84818),z=e.i(87284);let V=({media:e=[],onEditMedia:s})=>(0,t.jsx)("div",{className:"my-5",children:(0,t.jsx)("div",{className:"flex gap-3 overflow-x-auto",children:e.map(e=>(0,t.jsx)("div",{className:"relative flex-shrink-0 group",children:(0,t.jsx)("div",{className:"w-16 h-16 bg-surface-raised rounded-lg overflow-hidden cursor-pointer border border-border-subtle",onClick:()=>{var t;return t=e._id,void(s&&s(t))},children:(0,t.jsx)(z.default,{src:e?.file?.url,alt:e.texts?.[0]?.title||e?.file?.url,width:128,height:128,className:"w-full h-full object-cover"})})},e._id))})});e.s(["default",0,({assortmentSlug:e})=>{let{formatDateTime:o}=(0,E.default)(),{formatMessage:c}=(0,s.useIntl)(),{hasRole:u}=(0,D.default)(),{updateAssortment:m}=(0,$.default)(),{removeAssortment:f}=(0,A.default)(),{setModal:g}=(0,L.default)(),x=(0,i.useRouter)(),{assortment:h,loading:p,extendedData:b}=(({assortmentId:e=null,slug:t=null}={})=>{let s=(0,O.parseUniqueId)(t),{customProperties:a,hydrateFragment:r}=(0,Q.default)(),{selectedLocale:i}=(0,R.default)(),{data:l,loading:n,error:d}=(0,K.useQuery)(((e="")=>P.gql`
|
|
335
335
|
query Assortment($assortmentId: ID, $slug: String, $forceLocale: Locale) {
|
|
336
336
|
assortment(assortmentId: $assortmentId, slug: $slug) {
|
|
337
337
|
...AssortmentFragment
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,57986,26013,e=>{"use strict";var t=e.i(91398),s=e.i(69322),a=e.i(15361),i=e.i(10833);e.s(["XCircleIcon",()=>i.default],26013);var i=i,r=e.i(67912),l=e.i(41158),n=e.i(93380),o=e.i(87284);let d=({username:e})=>(0,t.jsx)(r.UserCircleIcon,{className:"h-8 w-8 text-slate-800 dark:text-slate-600"});e.s(["default",0,({user:e,contact:r})=>{let{formatMessage:u}=(0,s.useIntl)();return(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"h-8 w-8 rounded-full",children:e?.avatar?(0,t.jsx)(o.default,{src:e.avatar.url,alt:e.name||e.username,width:100,height:100}):(0,t.jsx)(d,{username:e?.username})}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-4",children:[(0,t.jsx)("div",{className:"flex items-center justify-between gap-3 flex-wrap",children:(0,t.jsxs)("span",{className:"flex items-center",children:[(0,t.jsx)("h3",{className:"text-xl font-semibold capitalize",children:(0,t.jsx)(l.default,{href:`/users?userId=${e?._id}`,className:"text-text-secondary hover:text-slate-900 dark:hover:text-slate-600",children:(0,n.default)(e)})}),e?.primaryEmail?.verified&&(0,t.jsxs)("dl",{className:"self-end",children:[(0,t.jsx)("dt",{className:"sr-only",children:u({id:"account_status",defaultMessage:"Account status"})}),(0,t.jsx)("dd",{className:"mt-3 flex items-center self-end text-sm font-medium capitalize text-slate-900 sm:mr-6 sm:mt-0",children:e?.primaryEmail?.verified?(0,t.jsx)(a.CheckCircleIcon,{className:"h-4 w-4 shrink-0 text-emerald-400","aria-hidden":"true"}):(0,t.jsx)(i.default,{className:"h-4 w-4 shrink-0 text-rose-400","aria-hidden":"true"})})]})]})}),r?.emailAddress&&(0,t.jsx)("div",{children:r.emailAddress}),r?.telNumber&&(0,t.jsx)("div",{children:r.telNumber})]})]})}],57986)},87284,16509,e=>{"use strict";var t=e.i(91398),s=e.i(26019),a=e.i(91788),i=e.i(69322);let r=({src:e,width:t,quality:s=75})=>e?`${e}?w=${t}&q=${s}`:"/no-image.jpg";e.s(["default",0,r],16509);let l=({className:e="w-full h-full",width:s=200,height:a=200})=>(0,t.jsxs)("svg",{width:s,height:a,viewBox:"0 0 200 200",fill:"none",className:e,xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"10",y:"10",width:"180",height:"180",rx:"8",stroke:"currentColor",strokeWidth:"3",strokeDasharray:"8 4",fill:"transparent",className:"text-slate-800 dark:text-slate-400"}),(0,t.jsx)("rect",{x:"40",y:"40",width:"120",height:"80",rx:"4",stroke:"currentColor",strokeWidth:"3",fill:"transparent"}),(0,t.jsx)("path",{d:"M50 100 L70 80 L90 95 L110 75 L130 90 L150 70",stroke:"currentColor",strokeWidth:"3",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("circle",{cx:"130",cy:"55",r:"8",stroke:"currentColor",strokeWidth:"3",fill:"transparent"}),(0,t.jsx)("text",{x:"100",y:"145",textAnchor:"middle",className:"text-text-secondary text-sm font-semibold",fill:"currentColor",children:"No Image"})]});e.s(["default",0,({fallbackSrc:e="",src:n,...o})=>{let[d,u]=(0,a.useState)(n),[c,m]=(0,a.useState)(!1),{formatMessage:f}=(0,i.useIntl)();return c||!d?(0,t.jsx)("div",{className:o.className||"w-full h-full flex items-center justify-center bg-surface",children:(0,t.jsx)(l,{width:o.width||200,height:o.height||200,className:"max-w-full max-h-full"})}):(0,t.jsx)(s.default,{src:d,loader:r,alt:f({id:"image-not-found",defaultMessage:"Image not found"}),...o,onError:()=>{e&&d!==e?u(e):m(!0)}})}],87284)},65897,e=>{"use strict";var t=e.i(91398),s=e.i(56206);e.s(["default",0,({value:e,className:a,onChange:i=()=>{},rows:r=7,...l})=>{let n=Math.max(e?e.split("\n").length:1,r);return(0,t.jsx)("textarea",{className:(0,s.default)("text-black dark:bg-slate-900 dark:text-slate-200 border-transparent border-t border-t-border-subtle resize-y",a),value:e,onChange:i,rows:n,...l})}])},35429,e=>{"use strict";var t=e.i(91398),s=e.i(56206),a=e.i(69322),i=e.i(21128);e.s(["default",0,({cancelText:e=null,showCancel:r=!0,submitText:l=null,showSubmit:n=!0,onCancel:o,className:d=""})=>{let{formatMessage:u}=(0,a.useIntl)();return(0,t.jsxs)("span",{className:(0,s.default)("flex shrink-0 items-center space-x-4 py-5 pl-1",d),children:[r?(0,t.jsx)("button",{onClick:o,"data-id":"cancel_update",type:"button",className:(0,s.default)("focus:ring-focus-ring","inline-flex items-center rounded-md border border-border-default bg-surface px-4 py-2 text-sm font-medium text-text-secondary shadow-xs hover:bg-surface-raised focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2"),children:e||u({id:"cancel",defaultMessage:"Cancel"})}):null,n?(0,t.jsx)(i.default,{label:l||u({id:"save",defaultMessage:"Save"})}):null]})}])},23239,e=>{"use strict";var t=e.i(91398),s=e.i(56206),a=e.i(65897),i=e.i(60741),r=e.i(54879);e.s(["default",0,({validators:e=[],rows:l=10,...n})=>{let o=(0,i.default)({...n,validators:[...e,{isValid:e=>{try{return JSON?.parse(e),!0}catch(e){return!1}},intlMessageDescriptor:{id:"invalid_json_input",defaultMessage:"Invalid JSON input"}}]});return(0,t.jsx)(r.default,{...o,children:(0,t.jsx)(a.default,{className:(0,s.default)("mt-1 block w-full max-w-full rounded-md border-1 border-border-default dark:bg-slate-900 dark:text-slate-200 shadow-xs dark:shadow-none focus:ring-focus-ring sm:text-sm",{"border-rose-300 text-rose-600 focus:border-rose-600 focus:ring-rose-600":!!o.error},n.className),disabled:o.disabled,id:o.name,name:o.name,onChange:e=>{try{JSON.parse(e.target.value||"{}"),o.setError("")}catch(e){o.setError(e.message?.replace("JSON.parse",""))}finally{o.setValue(e.target.value,!0),o.setTouched(!0)}},onBlur:e=>{try{o.setValue(JSON.stringify(JSON.parse(e.target.value),void 0,2),!0),o.setError("")}catch(e){o.setError(e.message)}},placeholder:o.placeholder,autoComplete:o.autoComplete,value:o.value})})}])},66885,e=>{"use strict";var t=e.i(91398),s=e.i(69322),a=e.i(38322),i=e.i(84818),r=e.i(83147),l=e.i(51782);e.s(["default",0,({data:e,statusTypes:n,timeline:o})=>{let{formatMessage:d}=(0,s.useIntl)(),{formatDateTime:u}=(0,i.default)(),{content:c={},id:m}=o[e?.status]||{},f=n.filter(({value:e})=>o[e]?.visible);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flow-root sm:hidden",children:(0,t.jsx)("ul",{className:"my-4",children:f.map(({value:s,label:i},l)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"relative pb-8",children:[l!==f.length-1?(0,t.jsx)("span",{className:(0,r.classNames)(m>l+1?"bg-slate-900":"bg-slate-200","absolute top-2.5 left-2.5 -ml-px h-full w-0.5"),"aria-hidden":"true"}):null,(0,t.jsxs)("div",{className:"relative flex items-center space-x-3",children:[(0,t.jsx)("div",{children:(0,t.jsx)("span",{className:(0,r.classNames)(m>l?"bg-slate-900":"bg-slate-600","flex h-5 w-5 items-center justify-center rounded-full"),children:m>l?(0,t.jsx)(a.CheckIcon,{className:"h-5 w-5 text-white","aria-hidden":"true"}):null})}),(0,t.jsxs)("div",{className:"ml-4 flex min-w-0 flex-1 items-center justify-between",children:[(0,t.jsx)("div",{className:"flex-auto",children:(0,t.jsx)("p",{className:"text-sm text-slate-500",children:(0,t.jsxs)("span",{className:"flex w-full items-center justify-between text-text-primary",children:[s,o[s]?.Component&&o[s].Component]})})}),m>=o[s].id?(0,t.jsx)("div",{className:"whitespace-nowrap text-right text-sm text-text-muted ml-4",children:e[o?.[s]?.content]?u(e[o?.[s]?.content],{dateStyle:"short",timeStyle:"short"}):null}):null]})]})]})},`${s}${i}`))})}),(0,t.jsxs)("div",{className:" p-4 bg-white shadow-sm dark:shadow-none dark:border dark:border-slate-700 sm:rounded-lg dark:bg-slate-900",children:[(0,t.jsxs)("p",{className:"font-medium flex items-center justify-between",children:[(0,t.jsx)(l.OrderStatusBadge,{status:e.status}),(0,t.jsx)("span",{children:e[c]?u(e[c],{dateStyle:"full",timeStyle:"medium"}):d({id:"in_cart",defaultMessage:"In cart"})})]}),(0,t.jsx)("div",{className:"mt-2","aria-hidden":"true",children:(0,t.jsx)("div",{className:"mt-2 hidden text-sm font-medium text-slate-600 sm:flex",children:f.map(({value:s,label:a})=>(0,t.jsxs)("div",{className:"sm:flex-auto",children:[(0,t.jsx)("div",{className:"relative mb-4 mr-1",children:(0,t.jsx)("span",{className:(0,r.classNames)(m>=o[s].id?e?.status==="CONFIRMED"?"bg-lime-600":e?.status==="PENDING"?"bg-amber-600":e?.status==="OPEN"?"bg-sky-600":"bg-emerald-600":"bg-surface-raised","absolute top-0 left-0 -ml-px h-2 w-full"),"aria-hidden":"true"})}),(0,t.jsxs)("div",{className:(0,r.classNames)(m>=o[s].id?"text-slate-900":"opacity-50","text-start"),children:[(0,t.jsx)("span",{className:"text-slate-900 dark:text-slate-400 uppercase",children:o[s]?.Component?o[s].Component:"CONFIRMED"===s?d({id:"confirmed",defaultMessage:"CONFIRMED"}):"PENDING"===s?d({id:"pending",defaultMessage:"PENDING"}):"OPEN"===s?d({id:"open",defaultMessage:"OPEN"}):"FULFILLED"===s?d({id:"fulfilled",defaultMessage:"FULFILLED"}):"REJECTED"===s?d({id:"rejected",defaultMessage:"REJECTED"}):s}),(0,t.jsx)("span",{className:"block text-text-primary",children:m>=o?.[s]?.id?u(e[o?.[s]?.content],{dateStyle:"short",timeStyle:"short"}):null})]})]},`${s}${a}`))})})]})]})}])},11959,e=>{"use strict";var t=e.i(59080),s=e.i(32171);let a=t.gql`
|
|
2
|
+
query StatusTypes($enumName: String!) {
|
|
3
|
+
statusTypes: __type(name: $enumName) {
|
|
4
|
+
options: enumValues {
|
|
5
|
+
value: name
|
|
6
|
+
label: description
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
`;e.s(["default",0,e=>{let{data:t,loading:i,error:r}=(0,s.useQuery)(a,{variables:{enumName:e}});return{statusTypes:t?.statusTypes?.options||[],loading:i,error:r}}])},93380,e=>{"use strict";e.s(["default",0,e=>e?e?.username?e.username:e?.profile?.displayName?e?.profile?.displayName:e?.profile?.address?.firstName||e?.profile?.address?.lastName?`${e?.profile?.address?.firstName} ${e?.profile?.address?.lastName}`:e?.name?e.name:e.isGuest?e?.primaryEmail?.address?.split(".")?.[0]:null:null])},1880,e=>{"use strict";e.s(["default",0,(e={})=>{let{_id:t,texts:s}=e||{};return s||t?`${s?.slug?.split("/").join("")||""}_id_${t}`:null},"parseSlug",0,e=>{if(!e)return null;let[t]=e?.split("_id_")||[];return t},"parseUniqueId",0,e=>{if(!e)return null;let t=e?.split("_id_");return t?.pop()}])},51782,e=>{"use strict";var t=e.i(91398),s=e.i(69322),a=e.i(42469),i=e.i(60193);let r={PENDING:"bg-yellow-100 text-yellow-800",CONFIRMED:"bg-blue-100 text-blue-800",OPEN:"bg-gray-100 text-gray-800",FULFILLED:"bg-green-100 text-green-800",REJECTED:"bg-red-100 text-red-800"};e.s(["OrderStatusBadge",0,({status:e,className:l=""})=>{let{formatMessage:n}=(0,s.useIntl)(),o={PENDING:n({id:"pending",defaultMessage:"PENDING"}),CONFIRMED:n({id:"confirmed",defaultMessage:"CONFIRMED"}),OPEN:n({id:"open",defaultMessage:"OPEN"}),FULFILLED:n({id:"fulfilled",defaultMessage:"FULFILLED"}),REJECTED:n({id:"rejected",defaultMessage:"REJECTED"})},d=o?.[e]??n({id:"cart",defaultMessage:"Cart"});return r?.[e],(0,t.jsx)(a.default,{text:d,color:i.ORDER_STATUSES[e],square:!0,className:`uppercase ${l}`})}])},96097,e=>{"use strict";var t=e.i(91398),s=e.i(69322),a=e.i(50595),i=e.i(53576),r=e.i(25327),l=e.i(41158),n=e.i(53463),o=e.i(26013),d=e.i(66885),u=e.i(11959),c=e.i(21623),m=e.i(6607),f=e.i(59080),x=e.i(76204);let g=f.gql`
|
|
11
|
+
fragment QuotationDetailFragment on Quotation {
|
|
12
|
+
_id
|
|
13
|
+
user {
|
|
14
|
+
_id
|
|
15
|
+
username
|
|
16
|
+
avatar {
|
|
17
|
+
_id
|
|
18
|
+
url
|
|
19
|
+
}
|
|
20
|
+
name
|
|
21
|
+
primaryEmail {
|
|
22
|
+
verified
|
|
23
|
+
address
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
configuration {
|
|
27
|
+
key
|
|
28
|
+
value
|
|
29
|
+
}
|
|
30
|
+
country {
|
|
31
|
+
_id
|
|
32
|
+
isoCode
|
|
33
|
+
flagEmoji
|
|
34
|
+
name
|
|
35
|
+
}
|
|
36
|
+
currency {
|
|
37
|
+
_id
|
|
38
|
+
isoCode
|
|
39
|
+
isActive
|
|
40
|
+
}
|
|
41
|
+
product {
|
|
42
|
+
_id
|
|
43
|
+
texts {
|
|
44
|
+
_id
|
|
45
|
+
slug
|
|
46
|
+
subtitle
|
|
47
|
+
title
|
|
48
|
+
description
|
|
49
|
+
}
|
|
50
|
+
media {
|
|
51
|
+
_id
|
|
52
|
+
file {
|
|
53
|
+
_id
|
|
54
|
+
type
|
|
55
|
+
url
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
status
|
|
60
|
+
created
|
|
61
|
+
expires
|
|
62
|
+
updated
|
|
63
|
+
isExpired
|
|
64
|
+
quotationNumber
|
|
65
|
+
fulfilled
|
|
66
|
+
rejected
|
|
67
|
+
}
|
|
68
|
+
`,p=f.gql`
|
|
69
|
+
mutation VerifyQuotation($quotationId: ID!, $quotationContext: JSON) {
|
|
70
|
+
verifyQuotation(
|
|
71
|
+
quotationId: $quotationId
|
|
72
|
+
quotationContext: $quotationContext
|
|
73
|
+
) {
|
|
74
|
+
...QuotationDetailFragment
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
${g}
|
|
78
|
+
`;var h=e.i(84818),b=e.i(42469),j=e.i(57986),v=e.i(83147);let y=({quotation:e})=>{let{formatMessage:a,locale:i}=(0,s.useIntl)(),{formatDateTime:r}=(0,h.default)();return(0,t.jsxs)("section",{children:[(0,t.jsx)(j.default,{user:e?.user,contact:e?.contact}),(0,t.jsxs)("div",{className:"mt-2 flex border-b border-border-default pb-2 text-sm",children:[(0,t.jsxs)("dl",{className:"flex flex-wrap items-center gap-1",children:[(0,t.jsxs)("dt",{className:"hidden capitalize text-slate-500 sm:block",children:[a({id:"quotation",defaultMessage:"quotation"}),"# "]}),(0,t.jsxs)("dd",{className:"inline-flex text-lg font-medium text-slate-900 sm:text-xl sm:font-semibold",children:[(0,t.jsx)("span",{className:"sm:hidden",children:"# "}),e?.quotationNumber?(0,t.jsx)(b.default,{text:e?.quotationNumber,color:"slate",square:!0,className:"text-lg font-medium sm:text-xl sm:font-semibold"}):(0,t.jsx)(b.default,{text:a({id:"requested",defaultMessage:"Requested"}),color:"yellow",className:"text-lg font-medium sm:text-xl sm:font-semibold"})]}),(0,t.jsx)("dt",{children:(0,t.jsx)("span",{className:"sr-only",children:a({id:"date",defaultMessage:"Date"})})}),(0,t.jsx)("dd",{className:"font-medium text-slate-900",children:e?.ordered&&r(e?.ordered,{timeStyle:"short",dateStyle:"full"})})]}),(0,t.jsxs)("div",{className:"ml-auto flex flex-wrap items-center justify-center gap-x-2 gap-y-1 text-sm text-slate-900 sm:text-base",children:[(0,t.jsx)("span",{children:e?.country?.flagEmoji}),(0,t.jsx)("span",{children:(0,v.normalizeCurrencyISOCode)(i,e?.currency?.isoCode)}),(0,t.jsx)("span",{children:e?.currency?.isoCode&&(0,t.jsx)(b.default,{text:e?.currency?.isoCode,color:"amber",className:"px-2 py-0 sm:py-1",square:!0})})]})]})]})},w=f.gql`
|
|
79
|
+
mutation RejectQuotation($quotationId: ID!, $quotationContext: JSON) {
|
|
80
|
+
rejectQuotation(
|
|
81
|
+
quotationId: $quotationId
|
|
82
|
+
quotationContext: $quotationContext
|
|
83
|
+
) {
|
|
84
|
+
...QuotationDetailFragment
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
${g}
|
|
88
|
+
`;var N=e.i(1880),E=e.i(38322),C=e.i(35429),_=e.i(69211),I=e.i(23239),S=e.i(98949);let k=({successMessage:e,onSubmit:a,onCancel:i,icon:r=null,headerText:l,submitButtonText:n})=>{let{formatMessage:o}=(0,s.useIntl)(),d=o({id:"quotation_updated",defaultMessage:"Quotation updated successfuly"}),u=(0,S.default)({submit:a,successMessage:e??d,onSubmitSuccess:i,initialValues:{quotationContext:null}});return(0,t.jsxs)(_.default,{form:u,id:"quotation_configuration",children:[(0,t.jsxs)("div",{className:"flex items-center text-center mb-3",children:[r||(0,t.jsx)("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-emerald-100 dark:bg-emerald-900/30",children:(0,t.jsx)(E.CheckIcon,{className:"h-8 w-8 text-emerald-600 dark:text-emerald-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"})}),(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)("h3",{className:"text-lg text-text-primary",id:"modal-title",children:l})})]}),(0,t.jsx)("div",{children:(0,t.jsx)(I.default,{name:"quotationContext",required:!1,label:o({id:"quotation-context-input-label",defaultMessage:"Quotation context"}),rows:10,labelClassName:"text-sm font-medium text-slate-500 mb-2"})}),(0,t.jsx)("div",{className:"border border-t-slate-100 bg-slate-50 mt-6 -mx-5 -mb-6 dark:bg-slate-500 dark:border-0",children:(0,t.jsx)(C.default,{onCancel:i,submitText:n,className:"justify-end "})})]})},q=f.gql`
|
|
89
|
+
mutation MakeQuotationProposal($quotationId: ID!, $quotationContext: JSON) {
|
|
90
|
+
makeQuotationProposal(
|
|
91
|
+
quotationId: $quotationId
|
|
92
|
+
quotationContext: $quotationContext
|
|
93
|
+
) {
|
|
94
|
+
...QuotationDetailFragment
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
${g}
|
|
98
|
+
`;var O=e.i(65897),M=e.i(87284);e.i(51523);var R=e.i(19518),P=e.i(58971);let D=({quotation:e})=>{let{formatMessage:a}=(0,s.useIntl)(),{setModal:i}=(0,m.default)(),{hasRole:r}=(0,P.default)(),{statusTypes:f}=(0,u.default)("QuotationStatus"),{VerifyQuotation:g}=(()=>{let[e]=(0,x.useMutation)(p);return{VerifyQuotation:async({quotationId:t=null,quotationContext:s={}})=>e({variables:{quotationId:t,quotationContext:s}})}})(),{rejectQuotation:h}=(()=>{let[e]=(0,x.useMutation)(w);return{rejectQuotation:async({quotationId:t=null,quotationContext:s={}})=>e({variables:{quotationId:t,quotationContext:s}})}})(),{makeQuotationProposal:b}=(()=>{let[e]=(0,x.useMutation)(q);return{makeQuotationProposal:async({quotationId:t=null,quotationContext:s={}})=>e({variables:{quotationId:t,quotationContext:s}})}})();if(!e)return null;let j=async()=>{await i((0,t.jsx)(k,{onSubmit:async({quotationContext:t})=>{await g({quotationId:e?._id,quotationContext:t?JSON.parse(t||null):null}),i("")},onCancel:()=>i(""),successMessage:a({id:"quotation-verified-successfully",defaultMessage:"Quotation verified successfully"}),submitButtonText:a({id:"verify-quotation-submit",defaultMessage:"Verify"}),headerText:a({id:"verify-quotation-quotation",defaultMessage:"Verify quotation?"})}))},v=async()=>{await i((0,t.jsx)(k,{onSubmit:async({quotationContext:t})=>{await h({quotationId:e?._id,quotationContext:t?JSON.parse(t||null):null}),i("")},onCancel:()=>i(""),successMessage:a({id:"quotation-rejection-successfully",defaultMessage:"Quotation rejected successfully"}),headerText:a({id:"reject-quotation-quotation",defaultMessage:"Reject quotation?"}),submitButtonText:a({id:"reject-quotation-submit",defaultMessage:"Reject"}),icon:(0,t.jsx)("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-rose-100 sm:mx-0 sm:h-10 sm:w-10",children:(0,t.jsx)(o.XCircleIcon,{className:"h-6 w-6 text-rose-600"})})}))},E=async()=>{await i((0,t.jsx)(k,{onSubmit:async({quotationContext:t})=>{await b({quotationId:e?._id,quotationContext:t?JSON.parse(t||null):null}),i("")},onCancel:()=>i(""),successMessage:a({id:"quotation-quoted-successfully",defaultMessage:"Quoted successfully"}),headerText:a({id:"make-proposal-header",defaultMessage:"Make quotation proposal"}),submitButtonText:a({id:"process-quotation-submit",defaultMessage:"Mark as processed"}),icon:(0,t.jsx)("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-slate-200 sm:mx-0 sm:h-10 sm:w-10 mr-3",children:(0,t.jsx)(n.PaperAirplaneIcon,{className:"h-6 w-6 text-slate-950"})})}))},C={REQUESTED:{id:1,content:"created",visible:!0,Component:e?.status==="REQUESTED"&&r(R.IRoleAction.AnswerQuotation)&&(0,t.jsx)(c.default,{text:"Verify",onClick:j,className:"bg-white-300 relative -ml-px inline-flex items-center space-x-2 rounded-md border border-accent bg-accent px-2 py-1 text-base font-medium text-text-on-accent hover:bg-accent-hover dark:focus:border-slate-400 focus:outline-hidden focus:ring-0 focus:ring-focus-ring"})},PROCESSING:{id:2,content:"updated",visible:e?.status==="PROCESSING",Component:e?.status==="PROCESSING"&&r(R.IRoleAction.AnswerQuotation)&&(0,t.jsx)(c.default,{text:"Propose",onClick:E,className:"bg-white-300 relative -ml-px inline-flex items-center space-x-2 rounded-md border border-accent bg-accent px-2 py-1 text-base font-medium text-text-on-accent hover:bg-accent-hover dark:focus:border-slate-400 focus:outline-hidden focus:ring-0 focus:ring-focus-ring"})},PROPOSED:{id:3,content:"updated",visible:!0},REJECTED:{id:4,content:"rejected",visible:e?.status!=="FULFILLED",Component:e?.status!=="FULFILLED"&&e?.status!=="REJECTED"&&r(R.IRoleAction.AnswerQuotation)&&(0,t.jsx)(c.default,{text:"Reject",onClick:v,className:"bg-white-300 relative -ml-px inline-flex items-center space-x-2 rounded-md border border-rose-500 bg-rose-500 px-2 py-2 text-base font-medium text-white hover:bg-rose-700 focus:border-rose-400 focus:outline-hidden focus:ring-0 focus:ring-rose-400"})},FULFILLED:{id:5,content:"fulfilled",visible:!0}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y,{quotation:e}),(0,t.jsx)(d.default,{data:e,statusTypes:f,timeline:C}),(0,t.jsx)("section",{"aria-labelledby":"products-heading",className:"my-6",children:(0,t.jsx)("div",{className:"rounded-lg border-t border-b border-border-default bg-white shadow-xs sm:border",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 text-sm sm:grid-cols-12 sm:grid-rows-1 sm:gap-x-6 md:gap-x-8 lg:gap-x-8",children:[(0,t.jsx)("div",{className:"sm:col-span-4 md:col-span-5 md:row-span-2 md:row-end-2",children:(0,t.jsx)("div",{className:"m:col-span-4 rounded-lg bg-slate-50 md:col-span-5 md:row-span-2 md:row-end-2",children:(0,t.jsx)(M.default,{src:e?.product?.media[0]?.file?.url||"/no-image.jpg",layout:"responsive",width:100,height:100,alt:a({id:"image-not-found",defaultMessage:"Image not found"})})})}),(0,t.jsxs)("div",{className:"pt-6 pl-4 sm:col-span-7 md:row-end-1",children:[(0,t.jsx)("h3",{className:"text-lg font-medium text-slate-900",children:(0,t.jsx)(l.default,{href:`/products?slug=${(0,N.default)(e?.product)}`,children:e?.product?.texts?.title})}),(0,t.jsx)("p",{className:"mt-3 text-slate-500",children:e?.product?.description}),(0,t.jsx)(O.default,{disabled:!0,value:JSON.stringify((e?.configuration||[]).map(({__typename:e,...t})=>t),null,2),className:"bg-surface-input dark:text-slate-200 mt-1 block w-full rounded-md resize-none border-border-default sm:text-sm"})]})]})})})]})};var $=e.i(32171),L=e.i(70693);e.s(["default",0,({quotationId:e})=>{let{formatMessage:l}=(0,s.useIntl)(),{quotation:n,loading:o}=(({quotationId:e})=>{let{customProperties:t}=(0,L.default)(),{data:s,loading:a,error:i}=(0,$.useQuery)(((e="")=>f.gql`
|
|
99
|
+
query Quotation($quotationId: ID!) {
|
|
100
|
+
quotation(quotationId: $quotationId) {
|
|
101
|
+
_id
|
|
102
|
+
...QuotationDetailFragment
|
|
103
|
+
${e}
|
|
104
|
+
}
|
|
105
|
+
quotationsCount
|
|
106
|
+
}
|
|
107
|
+
${g}
|
|
108
|
+
`)(t?.Quotation),{skip:!e,variables:{quotationId:e}});return{quotation:s?.quotation,loading:a,error:i}})({quotationId:e});return(0,t.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,t.jsx)(a.default,{currentPageTitle:n?.quotationNumber??""}),(0,t.jsx)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:(0,t.jsx)(r.default,{headerText:l({id:"quotation_detail",defaultMessage:"Quotation Detail"}),title:l({id:"quotation_detail_title",defaultMessage:"Quotation {id}"},{id:n?._id})})}),o?(0,t.jsx)(i.default,{}):(0,t.jsx)(D,{quotation:n})]})}],96097)},89974,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...a},i){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:i,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});e.s(["default",0,s])},15361,e=>{"use strict";var t=e.i(89974);e.s(["CheckCircleIcon",()=>t.default])},57862,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...a},i){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:i,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))});e.s(["default",0,s])},38322,e=>{"use strict";var t=e.i(57862);e.s(["CheckIcon",()=>t.default])},88313,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...a},i){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:i,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5"}))});e.s(["default",0,s])},53463,e=>{"use strict";var t=e.i(88313);e.s(["PaperAirplaneIcon",()=>t.default])},37224,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...a},i){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:i,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))});e.s(["default",0,s])},67912,e=>{"use strict";var t=e.i(37224);e.s(["UserCircleIcon",()=>t.default])},10833,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...a},i){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:i,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});e.s(["default",0,s])},49194,(e,t,s)=>{"use strict";e.i(50461),Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"Image",{enumerable:!0,get:function(){return y}});let a=e.r(41705),i=e.r(52456),r=e.r(91398),l=i._(e.r(91788)),n=a._(e.r(30943)),o=a._(e.r(80963)),d=e.r(66785),u=e.r(15125),c=e.r(13521),m=e.r(25479),f=a._(e.r(3866)),x=e.r(63230),g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function p(e,t,s,a,i,r,l){let n=e?.src;e&&e["data-loaded-src"]!==n&&(e["data-loaded-src"]=n,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),s?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let a=!1,i=!1;s.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>a,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{a=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}a?.current&&a.current(e)}}))}function h(e){return l.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let b="u"<typeof window?l.useEffect:l.useLayoutEffect,j=(0,l.forwardRef)(({src:e,srcSet:t,sizes:s,height:a,width:i,decoding:n,className:o,style:d,fetchPriority:u,placeholder:c,loading:m,unoptimized:f,fill:g,onLoadRef:j,onLoadingCompleteRef:v,setBlurComplete:y,setShowAltText:w,sizesInput:N,onLoad:E,onError:C,..._},I)=>{let S=(0,l.useRef)(!1),k=(0,l.useRef)(null);b(()=>{let{current:e}=S,{current:t}=k;e||null===t||(C&&(t.src=t.src),t.complete&&p(t,c,j,v,y,f,N),S.current=!0)},[e,c,j,v,C,f,N]);let q=(0,x.useMergedRef)(I,k);return(0,r.jsx)("img",{..._,...h(u),loading:m,width:i,height:a,decoding:n,"data-nimg":g?"fill":"1",className:o,style:d,sizes:s,srcSet:t,src:e,ref:q,onLoad:e=>{p(e.currentTarget,c,j,v,y,f,N)},onError:e=>{w(!0),"empty"!==c&&y(!0),C&&C(e)}})});function v({isAppRouter:e,imgAttributes:t}){let s={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...h(t.fetchPriority)};return e&&n.default.preload?(n.default.preload(t.src,s),null):(0,r.jsx)(o.default,{children:(0,r.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...s},"__nimg-"+t.src+t.srcSet+t.sizes)})}let y=(0,l.forwardRef)((e,t)=>{let s=(0,l.useContext)(m.RouterContext),a=(0,l.useContext)(c.ImageConfigContext),i=(0,l.useMemo)(()=>{let e=g||a||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),s=e.deviceSizes.sort((e,t)=>e-t),i=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:s,qualities:i,localPatterns:"u"<typeof window?a?.localPatterns:e.localPatterns}},[a]),{onLoad:n,onLoadingComplete:o}=e,x=(0,l.useRef)(n);(0,l.useEffect)(()=>{x.current=n},[n]);let p=(0,l.useRef)(o);(0,l.useEffect)(()=>{p.current=o},[o]);let[h,b]=(0,l.useState)(!1),[y,w]=(0,l.useState)(!1),{props:N,meta:E}=(0,d.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:h,showAltText:y});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j,{...N,unoptimized:E.unoptimized,placeholder:E.placeholder,fill:E.fill,onLoadRef:x,onLoadingCompleteRef:p,setBlurComplete:b,setShowAltText:w,sizesInput:e.sizes,ref:t}),E.preload?(0,r.jsx)(v,{isAppRouter:!s,imgAttributes:N}):null]})});("function"==typeof s.default||"object"==typeof s.default&&null!==s.default)&&void 0===s.default.__esModule&&(Object.defineProperty(s.default,"__esModule",{value:!0}),Object.assign(s.default,s),t.exports=s.default)},88961,(e,t,s)=>{"use strict";e.i(50461),Object.defineProperty(s,"__esModule",{value:!0});var a={default:function(){return u},getImageProps:function(){return d}};for(var i in a)Object.defineProperty(s,i,{enumerable:!0,get:a[i]});let r=e.r(41705),l=e.r(66785),n=e.r(49194),o=r._(e.r(3866));function d(e){let{props:t}=(0,l.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,s]of Object.entries(t))void 0===s&&delete t[e];return{props:t}}let u=n.Image},26019,(e,t,s)=>{t.exports=e.r(88961)},68816,(e,t,s)=>{"use strict";function a(e,t){let s=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-s)<Math.abs(e-s)?t:e,t.qualities[0]):s}Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"findClosestQuality",{enumerable:!0,get:function(){return a}})},3866,(e,t,s)=>{"use strict";e.i(50461),Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"default",{enumerable:!0,get:function(){return l}});let a=e.r(68816),i=e.r(20262);function r({config:e,src:t,width:s,quality:l}){let n=(0,i.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//"))if(t.includes("/_next/static/immutable")&&!(0,i.getAssetToken)())n=void 0;else{let e=t.indexOf("?");if(-1!==e){let s=new URLSearchParams(t.slice(e+1)),a=s.get("dpl");if(a){n=a,s.delete("dpl");let i=s.toString();t=t.slice(0,e)+(i?"?"+i:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
|
|
109
|
+
Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let o=(0,a.findClosestQuality)(l,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${s}&q=${o}${t.startsWith("/")&&n?`&dpl=${n}`:""}`}r.__next_img_default=!0;let l=r},66785,(e,t,s)=>{"use strict";e.i(50461),Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"getImgProps",{enumerable:!0,get:function(){return d}});let a=e.r(20262),i=e.r(55034),r=e.r(15125),l=["-moz-initial","fill","none","scale-down",void 0];function n(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function d({src:e,sizes:t,unoptimized:s=!1,priority:u=!1,preload:c=!1,loading:m,className:f,quality:x,width:g,height:p,fill:h=!1,style:b,overrideSrc:j,onLoad:v,onLoadingComplete:y,placeholder:w="empty",blurDataURL:N,fetchPriority:E,decoding:C="async",layout:_,objectFit:I,objectPosition:S,lazyBoundary:k,lazyRoot:q,...O},M){var R;let P,D,$,{imgConf:L,showAltText:T,blurComplete:z,defaultLoader:F}=M,A=L||r.imageConfigDefault;if("allSizes"in A)P=A;else{let e=[...A.deviceSizes,...A.imageSizes].sort((e,t)=>e-t),t=A.deviceSizes.sort((e,t)=>e-t),s=A.qualities?.sort((e,t)=>e-t);P={...A,allSizes:e,deviceSizes:t,qualities:s}}if(void 0===F)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let Q=O.loader||F;delete O.loader,delete O.srcSet;let B="__next_img_default"in Q;if(B){if("custom"===P.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
|
|
110
|
+
Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=Q;Q=t=>{let{config:s,...a}=t;return e(a)}}if(_){"fill"===_&&(h=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[_];e&&(b={...b,...e});let s={responsive:"100vw",fill:"100vw"}[_];s&&!t&&(t=s)}let J="",U=o(g),W=o(p);if((R=e)&&"object"==typeof R&&(n(R)||void 0!==R.src)){let t=n(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(D=t.blurWidth,$=t.blurHeight,N=N||t.blurDataURL,J=t.src,!h)if(U||W){if(U&&!W){let e=U/t.width;W=Math.round(t.height*e)}else if(!U&&W){let e=W/t.height;U=Math.round(t.width*e)}}else U=t.width,W=t.height}let G=!u&&!c&&("lazy"===m||void 0===m);(!(e="string"==typeof e?e:J)||e.startsWith("data:")||e.startsWith("blob:"))&&(s=!0,G=!1),P.unoptimized&&(s=!0),B&&!P.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(s=!0);let V=o(x),X=Object.assign(h?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:I,objectPosition:S}:{},T?{}:{color:"transparent"},b),Z=z||"empty"===w?null:"blur"===w?`url("data:image/svg+xml;charset=utf-8,${(0,i.getImageBlurSvg)({widthInt:U,heightInt:W,blurWidth:D,blurHeight:$,blurDataURL:N||"",objectFit:X.objectFit})}")`:`url("${w}")`,H=l.includes(X.objectFit)?"fill"===X.objectFit?"100% 100%":"cover":X.objectFit,K=Z?{backgroundSize:H,backgroundPosition:X.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Z}:{},Y=function({config:e,src:t,unoptimized:s,width:i,quality:r,sizes:l,loader:n}){if(s){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,a.getDeploymentId)();if(t.includes("/_next/static/immutable")&&!(0,a.getAssetToken)())e=void 0;else if(e){let s=t.indexOf("?");if(-1!==s){let a=new URLSearchParams(t.slice(s+1));a.get("dpl")||(a.append("dpl",e),t=t.slice(0,s)+"?"+a.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:o,kind:d}=function({deviceSizes:e,allSizes:t},s,a){if(a){let s=/(^|\s)(1?\d?\d)vw/g,i=[];for(let e;e=s.exec(a);)i.push(parseInt(e[2]));if(i.length){let s=.01*Math.min(...i);return{widths:t.filter(t=>t>=e[0]*s),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof s?{widths:e,kind:"w"}:{widths:[...new Set([s,2*s].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,i,l),u=o.length-1;return{sizes:l||"w"!==d?l:"100vw",srcSet:o.map((s,a)=>`${n({config:e,src:t,quality:r,width:s})} ${"w"===d?s:a+1}${d}`).join(", "),src:n({config:e,src:t,quality:r,width:o[u]})}}({config:P,src:e,unoptimized:s,width:U,quality:V,sizes:t,loader:Q}),ee=G?"lazy":m;return{props:{...O,loading:ee,fetchPriority:E,width:U,height:W,decoding:C,className:f,style:{...X,...K},sizes:Y.sizes,srcSet:Y.srcSet,src:j||Y.src},meta:{unoptimized:s,preload:c||u,placeholder:w,fill:h}}}},55034,(e,t,s)=>{"use strict";function a({widthInt:e,heightInt:t,blurWidth:s,blurHeight:i,blurDataURL:r,objectFit:l}){let n=s?40*s:e,o=i?40*i:t,d=n&&o?`viewBox='0 0 ${n} ${o}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${d}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${d?"none":"contain"===l?"xMidYMid":"cover"===l?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${r}'/%3E%3C/svg%3E`}Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"getImageBlurSvg",{enumerable:!0,get:function(){return a}})},13521,(e,t,s)=>{"use strict";e.i(50461),Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"ImageConfigContext",{enumerable:!0,get:function(){return r}});let a=e.r(41705)._(e.r(91788)),i=e.r(15125),r=a.default.createContext(i.imageConfigDefault)},15125,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a={VALID_LOADERS:function(){return r},imageConfigDefault:function(){return l}};for(var i in a)Object.defineProperty(s,i,{enumerable:!0,get:a[i]});let r=["default","imgix","cloudinary","akamai","custom"],l={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,28805,t=>{t.v(s=>Promise.all(["static/chunks/0h0r_q6xa9qr_.js"].map(s=>t.l(s))).then(()=>s(79466)))},48761,t=>{t.v(s=>Promise.all(["static/chunks/1ae-9ft5cgojf.js"].map(s=>t.l(s))).then(()=>s(93594)))}]);
|