@unchainedshop/admin-ui 5.0.0-alpha.11 → 5.0.0-alpha.14
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 +1 -1
- package/dist/{chunk-WPLOTFGW.js → chunk-2HTCKO4E.js} +12 -3
- package/dist/{chunk-I64TXIE7.js → chunk-5UHBGLFV.js} +40 -2
- package/dist/{chunk-PJLYVMUM.js → chunk-6WMH7PLC.js} +2 -2
- package/dist/{chunk-QHR23GVH.js → chunk-CUYIP5XG.js} +1 -1
- package/dist/{chunk-5WPFHQZN.js → chunk-E6HDJYA6.js} +3 -3
- package/dist/{chunk-FDHXLNZQ.js → chunk-EAVP6XZQ.js} +1 -1
- package/dist/{chunk-HJKRGBDG.js → chunk-EKWWSFDK.js} +1 -1
- package/dist/{chunk-Q6S3LBUF.js → chunk-JC6PXYZP.js} +7 -1
- package/dist/{chunk-BOMSMJF2.js → chunk-JGER2LQO.js} +1 -0
- package/dist/{chunk-ICJH36K4.js → chunk-M2242FCR.js} +1 -1
- package/dist/{chunk-3L6EZQ6P.js → chunk-NFJE5EJG.js} +1 -1
- package/dist/{chunk-BMDNY67T.js → chunk-NUGWX3KO.js} +3361 -1769
- package/dist/{chunk-E77YIMGR.js → chunk-XZ2V6XTD.js} +2 -2
- package/dist/components/ui/Loading.d.ts +8 -1
- package/dist/components/ui/Loading.d.ts.map +1 -1
- package/dist/components/ui/index.d.ts +2 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/form.js +798 -379
- package/dist/gql/operation-types.d.ts +51 -18
- package/dist/gql/operation-types.d.ts.map +1 -1
- package/dist/gql/schema-types.d.ts +28 -2
- package/dist/gql/schema-types.d.ts.map +1 -1
- package/dist/hooks.js +5 -5
- package/dist/modal.js +5 -5
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts +1 -0
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +1 -1
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +1 -0
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +1 -1
- package/dist/modules/accounts.js +48 -2
- package/dist/modules/assortment.js +2 -2
- package/dist/modules/common/components/SearchWithTags.d.ts +10 -0
- package/dist/modules/common/components/SearchWithTags.d.ts.map +1 -0
- package/dist/modules/common/hooks/useShopInfo.d.ts +1 -0
- package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -1
- package/dist/modules/country.js +1 -1
- package/dist/modules/currency.js +1 -1
- package/dist/modules/delivery-provider.js +1 -1
- package/dist/modules/enrollment.js +25 -11
- package/dist/modules/event.js +1 -1
- package/dist/modules/filter.js +1 -1
- package/dist/modules/forms/lib/validators.d.ts +3 -1
- package/dist/modules/forms/lib/validators.d.ts.map +1 -1
- package/dist/modules/language.js +1 -1
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +1 -1
- package/dist/modules/order.js +1 -2
- package/dist/modules/payment-providers.js +1 -1
- package/dist/modules/product/hooks/useProductsCount.d.ts +1 -1
- package/dist/modules/product/hooks/useProductsCount.d.ts.map +1 -1
- package/dist/modules/product-review.js +2 -2
- package/dist/modules/product.js +437 -25
- package/dist/modules/quotation.js +2 -1
- package/dist/modules/token.js +1 -1
- package/dist/modules/warehousing-providers.js +1 -1
- package/dist/modules/work.js +1 -1
- package/dist/plugins.js +1 -1
- package/dist/providers.js +5 -5
- package/dist/shims/admin-ui-plugins.js +1 -1
- package/dist/shims/apollo-client-react.js +1 -1
- package/dist/shims/apollo-client.js +1 -1
- package/dist/shims/next-head.js +1 -1
- package/dist/shims/next-image.js +1 -1
- package/dist/shims/next-link.js +1 -1
- package/dist/shims/next-router.js +1 -1
- package/dist/shims/react-dom-client.js +1 -1
- package/dist/shims/react-dom.js +1 -1
- package/dist/shims/react-hook-form.js +1 -1
- package/dist/shims/react-intl.js +1 -1
- package/dist/shims/react-jsx-runtime.js +1 -1
- package/dist/shims/react-toastify.js +1 -1
- package/dist/shims/react.js +1 -1
- package/dist/theme.js +1 -1
- package/dist/ui.js +9627 -8204
- package/out/403/index.html +3 -3
- package/out/404/index.html +3 -3
- package/out/404.html +3 -3
- package/out/423/index.html +3 -3
- package/out/500/index.html +3 -3
- package/out/_next/static/WEaZ5SW9HLnJWzXs84JMH/_buildManifest.js +266 -0
- package/out/_next/static/chunks/0-kvzk5p0hp-4.js +11 -0
- package/out/_next/static/chunks/0-nzk-g6k41e-.js +119 -0
- package/out/_next/static/chunks/00p6gl0n0kga2.js +46 -0
- package/out/_next/static/chunks/01otzjqxk372n.js +1 -0
- package/out/_next/static/chunks/0389l__ljgq-b.js +1 -0
- package/out/_next/static/chunks/039xltalow0bh.js +1 -0
- package/out/_next/static/chunks/03awz8e25u6-9.js +33 -0
- package/out/_next/static/chunks/04_r4qnsjmy81.js +4 -0
- package/out/_next/static/chunks/04egfa7kckou_.js +165 -0
- package/out/_next/static/chunks/04kydtjv2qqb1.js +39 -0
- package/out/_next/static/chunks/05ghb-a4hshp1.js +24 -0
- package/out/_next/static/chunks/06gqojz2tfk7h.js +33 -0
- package/out/_next/static/chunks/{2ajr0rk0_yax6.js → 06kqbwwnuu3te.js} +1 -1
- package/out/_next/static/chunks/0728622u98g6r.js +1 -0
- package/out/_next/static/chunks/08e3-wndual-j.js +183 -0
- package/out/_next/static/chunks/08gngcgmdigfl.js +7 -0
- package/out/_next/static/chunks/{01xy3u9ybz9ts.js → 08htfpcq8k2ct.js} +2 -2
- package/out/_next/static/chunks/09irjy-7k1922.js +1 -0
- package/out/_next/static/chunks/0_ppdn6x6ci0v.js +31 -0
- package/out/_next/static/chunks/0ao00r36i0nko.js +4 -0
- package/out/_next/static/chunks/0az9r1m1m5nw7.js +5 -0
- package/out/_next/static/chunks/0bahbwxzev843.js +8 -0
- package/out/_next/static/chunks/0ejd4so6pfsb9.js +8 -0
- package/out/_next/static/chunks/0f0aouv41459l.js +99 -0
- package/out/_next/static/chunks/0f4mwm9gegsvc.js +8 -0
- package/out/_next/static/chunks/0ffdde8s4b7e2.js +5 -0
- package/out/_next/static/chunks/0ftb36h7poyeo.js +235 -0
- package/out/_next/static/chunks/0gclli_nyb0px.js +4 -0
- package/out/_next/static/chunks/0hv62tllrjbgx.js +5 -0
- package/out/_next/static/chunks/0ik3suboifvvc.js +1 -0
- package/out/_next/static/chunks/0iohwbogpxe5r.js +1 -0
- package/out/_next/static/chunks/0jsbw2npug66o.js +54 -0
- package/out/_next/static/chunks/0lgoprkr2wj68.js +12 -0
- package/out/_next/static/chunks/0mpgc4f7hc1dd.js +7 -0
- package/out/_next/static/chunks/0o4aj3bm49d_h.js +61 -0
- package/out/_next/static/chunks/0oauw10y-zu7q.js +14 -0
- package/out/_next/static/chunks/0p55j-ysba0wq.js +63 -0
- package/out/_next/static/chunks/0pnifxx4n6jz4.js +30 -0
- package/out/_next/static/chunks/0rj53mrsrvu49.js +5 -0
- package/out/_next/static/chunks/0s2jvi6_qj0lc.js +16 -0
- package/out/_next/static/chunks/0uef4ugmc_g10.js +1 -0
- package/out/_next/static/chunks/0v2f0xq8mp63h.js +1 -0
- package/out/_next/static/chunks/0wvck3kmtd8h3.js +5 -0
- package/out/_next/static/chunks/0y-xf7e4lgmru.js +4 -0
- package/out/_next/static/chunks/0zlzflyq18hhy.js +4 -0
- package/out/_next/static/chunks/12cy_5m_0fj96.js +44 -0
- package/out/_next/static/chunks/12z0--swhgre2.js +33 -0
- package/out/_next/static/chunks/139wqbl161pdw.js +12 -0
- package/out/_next/static/chunks/13sl42_jx13hh.js +7 -0
- package/out/_next/static/chunks/14jd75j8ij4u2.js +3 -0
- package/out/_next/static/chunks/14wav1vmqi2oo.js +371 -0
- package/out/_next/static/chunks/15oodwh44nrve.js +43 -0
- package/out/_next/static/chunks/15ullli2vlj87.js +8 -0
- package/out/_next/static/chunks/177p92k5pdloo.js +1 -0
- package/out/_next/static/chunks/17g3a6iz0s59f.js +837 -0
- package/out/_next/static/chunks/19-1z6h5eeq_w.js +134 -0
- package/out/_next/static/chunks/19-fs9eq1syvw.js +103 -0
- package/out/_next/static/chunks/195cwzh3q1i0h.js +7 -0
- package/out/_next/static/chunks/1cz2fp89ssu5d.js +4 -0
- package/out/_next/static/chunks/1e2jykfql801f.js +16 -0
- package/out/_next/static/chunks/1fou9xz0_rm6d.js +5 -0
- package/out/_next/static/chunks/1gl4h7w9t850f.js +1 -0
- package/out/_next/static/chunks/1in8spfokcjsp.js +8 -0
- package/out/_next/static/chunks/1k1b69hvwr-0g.js +5 -0
- package/out/_next/static/chunks/1kdcu-0jkya-b.js +61 -0
- package/out/_next/static/chunks/1kyjdq0bnkw10.js +95 -0
- package/out/_next/static/chunks/1l2ix83845lui.js +5 -0
- package/out/_next/static/chunks/{1iamjw8qh1m4o.js → 1mx0p6r-9c5u_.js} +1 -1
- package/out/_next/static/chunks/1ossmsdseqyeu.js +147 -0
- package/out/_next/static/chunks/1p5lt4tkyouxz.js +4 -0
- package/out/_next/static/chunks/1pm7k55e4pfpm.js +59 -0
- package/out/_next/static/chunks/1pqyz1opm5_7r.js +1 -0
- package/out/_next/static/chunks/1qd4fupa708s4.js +5 -0
- package/out/_next/static/chunks/1r61kgm2ct0nf.js +74 -0
- package/out/_next/static/chunks/1rmlm4404fsge.js +15 -0
- package/out/_next/static/chunks/1s3ool53utm9o.js +39 -0
- package/out/_next/static/chunks/1sc2ug6_szd_d.js +2 -0
- package/out/_next/static/chunks/1t1ecrjkykbv1.js +4 -0
- package/out/_next/static/chunks/{12yd8t4k6c0t1.js → 1t8jj0-6g8uyd.js} +1 -1
- package/out/_next/static/chunks/1tej7js0fwv1h.js +11 -0
- package/out/_next/static/chunks/1th8knz7txt9f.js +5 -0
- package/out/_next/static/chunks/1tosw188dr9d6.js +44 -0
- package/out/_next/static/chunks/1tuf110jbpl_r.js +1 -0
- package/out/_next/static/chunks/1tzkeg4c-br-z.js +17 -0
- package/out/_next/static/chunks/1u7l4tos3wysc.js +5 -0
- package/out/_next/static/chunks/1v0ag3k96c56s.js +1 -0
- package/out/_next/static/chunks/1w6iuc_ba9g-3.js +3 -0
- package/out/_next/static/chunks/1x7cm_fuwp9m8.js +1 -0
- package/out/_next/static/chunks/1yv22tvuqofr_.js +296 -0
- package/out/_next/static/chunks/1yvl8l5yx1rj8.js +4 -0
- package/out/_next/static/chunks/2-s-hteo3lrnj.js +21 -0
- package/out/_next/static/chunks/20au-bdji0nu2.js +14 -0
- package/out/_next/static/chunks/20p146xfq-xrq.js +5 -0
- package/out/_next/static/chunks/20t2g2u3jhtvy.js +5 -0
- package/out/_next/static/chunks/21zghy5-42i1e.js +1 -0
- package/out/_next/static/chunks/{43uqmej6-s4am.js → 231mhpexhdm2g.js} +3 -3
- package/out/_next/static/chunks/{3m_9ozv0orvze.js → 249b4cg2ev597.js} +3 -3
- package/out/_next/static/chunks/24zfmgc4cu-n1.js +9 -0
- package/out/_next/static/chunks/25b_pi2_ro9yy.js +5 -0
- package/out/_next/static/chunks/25ite4-jpq_mo.js +4 -0
- package/out/_next/static/chunks/25vdihxswn7dy.js +1 -0
- package/out/_next/static/chunks/2693w1263bb3s.js +5 -0
- package/out/_next/static/chunks/26guwpx1_pkxv.js +1 -0
- package/out/_next/static/chunks/26yarz_db5ms0.js +5 -0
- package/out/_next/static/chunks/28xbb7hkhkoup.js +1 -0
- package/out/_next/static/chunks/299pou8yuoq6b.js +116 -0
- package/out/_next/static/chunks/29x7cj-318eaa.js +1 -0
- package/out/_next/static/chunks/2_cq751vth7u7.js +81 -0
- package/out/_next/static/chunks/2a2cayocu5mc3.js +1 -0
- package/out/_next/static/chunks/2a9dpzjx5mfjp.js +4 -0
- package/out/_next/static/chunks/2apnv1hcv-4zc.js +23 -0
- package/out/_next/static/chunks/2bugi3kot5jtu.js +1 -0
- package/out/_next/static/chunks/2dn2ma73q9ye0.js +5 -0
- package/out/_next/static/chunks/2ege1545af18d.js +4 -0
- package/out/_next/static/chunks/2fnn6q9fmhu3s.js +4 -0
- package/out/_next/static/chunks/2ga95n_v_6_7b.js +175 -0
- package/out/_next/static/chunks/2gfljy_oo0nnr.js +12 -0
- package/out/_next/static/chunks/2gfot_-pkeohl.js +103 -0
- package/out/_next/static/chunks/2gfzt_fdr-h96.js +81 -0
- package/out/_next/static/chunks/2h4bxz0oww5pk.js +4 -0
- package/out/_next/static/chunks/2hc3d38gb0q-v.js +1 -0
- package/out/_next/static/chunks/2hci18oosfv5d.js +5 -0
- package/out/_next/static/chunks/{3fpgg_wy6j2ph.js → 2ipcn3vy6d4_6.js} +1 -1
- package/out/_next/static/chunks/2j4g1tyyp8ta1.js +1 -0
- package/out/_next/static/chunks/2mt78e61hd_4p.js +100 -0
- package/out/_next/static/chunks/2rri_ex6s-d8g.js +4 -0
- package/out/_next/static/chunks/2sc6dwzzc2t7n.js +5 -0
- package/out/_next/static/chunks/2texlu369byon.js +1 -0
- package/out/_next/static/chunks/2tq8sqd3-wavo.js +6 -0
- package/out/_next/static/chunks/2u2obxhc_n6xk.js +119 -0
- package/out/_next/static/chunks/{0m73vd78oga92.js → 2u4cc_r_qo0s4.js} +14 -14
- package/out/_next/static/chunks/2u6n7ohruqpxp.js +1 -0
- package/out/_next/static/chunks/2u9myo1sjc-q0.js +276 -0
- package/out/_next/static/chunks/2ubbeh02scr2l.js +7 -0
- package/out/_next/static/chunks/2v_bdu-atp2qq.js +5 -0
- package/out/_next/static/chunks/2vyv371s8n48m.js +41 -0
- package/out/_next/static/chunks/2xd_5hafdvicw.js +5 -0
- package/out/_next/static/chunks/{2yw5sk06gdixu.js → 2y8uau15r3p-o.js} +1 -1
- package/out/_next/static/chunks/2ym9q2u0yw0m8.js +326 -0
- package/out/_next/static/chunks/2zb-xmda5rbn0.js +1 -0
- package/out/_next/static/chunks/2zsvxbghbsuz1.js +4 -0
- package/out/_next/static/chunks/3-grp4-_b_uin.js +5 -0
- package/out/_next/static/chunks/31i76bjr7wp3u.js +5 -0
- package/out/_next/static/chunks/32g5gxee1kcdc.js +28 -0
- package/out/_next/static/chunks/32thgoqghnqfk.js +5 -0
- package/out/_next/static/chunks/33svzh7wrh2ca.js +147 -0
- package/out/_next/static/chunks/33v1m9okpss0r.js +5 -0
- package/out/_next/static/chunks/34gspkpv7wikw.js +8 -0
- package/out/_next/static/chunks/34wf3lz_fft3k.js +2 -0
- package/out/_next/static/chunks/{1jmdpa0tc5puj.js → 35zhvtyq31ani.js} +3 -3
- package/out/_next/static/chunks/36vqjcd_y2j30.js +1 -0
- package/out/_next/static/chunks/{3btkj1_irjkq7.js → 36x7q29atus_r.js} +6 -6
- package/out/_next/static/chunks/38043sp-g7lor.js +43 -0
- package/out/_next/static/chunks/{1so6ouxrq_ffa.js → 393--hagnnm97.js} +3 -3
- package/out/_next/static/chunks/395bs5xmcnl_3.js +31 -0
- package/out/_next/static/chunks/3_0q-dmk8few_.css +1 -0
- package/out/_next/static/chunks/3_adkt8r_brx4.js +165 -0
- package/out/_next/static/chunks/3_jqu6hq_bq0s.js +23 -0
- package/out/_next/static/chunks/3_tuio1shb_8w.js +4 -0
- package/out/_next/static/chunks/3_u_uxeaysv2y.js +6 -0
- package/out/_next/static/chunks/3e9x78_cfl4gs.js +59 -0
- package/out/_next/static/chunks/3ek1bahoqa_ll.js +5 -0
- package/out/_next/static/chunks/3i7obrooylax2.js +1 -0
- package/out/_next/static/chunks/3ij_85v4doyfu.js +2 -0
- package/out/_next/static/chunks/3jfe0uesrzz7a.js +1 -0
- package/out/_next/static/chunks/3jgmo9q79w1-c.js +290 -0
- package/out/_next/static/chunks/3jp_xvjzuj3ts.js +33 -0
- package/out/_next/static/chunks/3l9ixfzewn8ct.js +5 -0
- package/out/_next/static/chunks/3ltrxqm61t2um.js +1 -0
- package/out/_next/static/chunks/3nrrzhhoy8amt.js +4 -0
- package/out/_next/static/chunks/3qt1oiw306jtf.js +5 -0
- package/out/_next/static/chunks/3s5_6nq23zb_5.js +7 -0
- package/out/_next/static/chunks/3s_74oi_rqb7q.js +5 -0
- package/out/_next/static/chunks/3skconxcf6r_s.js +156 -0
- package/out/_next/static/chunks/3t48n1yk76zoa.js +1 -0
- package/out/_next/static/chunks/3t_520l4ihlg3.js +54 -0
- package/out/_next/static/chunks/{3j25u7rzawm9f.js → 3ud-crkzgoj7q.js} +8 -8
- package/out/_next/static/chunks/3uekb_s0jaboj.js +1 -0
- package/out/_next/static/chunks/3wr9v36meolw7.js +710 -0
- package/out/_next/static/chunks/3xun85a44o067.js +1 -0
- package/out/_next/static/chunks/3yktizlgzr6vc.js +4 -0
- package/out/_next/static/chunks/407elvwrmcfn6.js +5 -0
- package/out/_next/static/chunks/40j4nxaeofft-.js +1 -0
- package/out/_next/static/chunks/42ijceja_327z.js +54 -0
- package/out/_next/static/chunks/440jwge6wnjj6.js +1 -0
- package/out/_next/static/chunks/449x6nw2kd7l6.js +119 -0
- package/out/_next/static/chunks/44xnlcqhabyj6.js +174 -0
- package/out/_next/static/chunks/{turbopack-2c3mg3r-05n1w.js → turbopack-077hmtqrhcoji.js} +1 -1
- package/out/_offline/index.html +3 -3
- package/out/account/forgot-password/index.html +3 -3
- package/out/account/index.html +3 -3
- package/out/assortments/AssortmentDetailPage/index.html +3 -3
- package/out/assortments/index.html +3 -3
- package/out/assortments/new/index.html +3 -3
- package/out/copilot/index.html +3 -3
- package/out/country/CountryDetailPage/index.html +3 -3
- package/out/country/index.html +3 -3
- package/out/country/new/index.html +3 -3
- package/out/currency/CurrencyDetailPage/index.html +3 -3
- package/out/currency/index.html +3 -3
- package/out/currency/new/index.html +3 -3
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -3
- package/out/delivery-provider/index.html +3 -3
- package/out/delivery-provider/new/index.html +3 -3
- package/out/enrollments/EnrollmentDetailPage/index.html +3 -3
- package/out/enrollments/index.html +3 -3
- package/out/events/EventDetailPage/index.html +3 -3
- package/out/events/index.html +3 -3
- package/out/exports/index.html +3 -3
- package/out/ext/[[...slug]]/index.html +3 -3
- package/out/external/index.html +3 -3
- package/out/filters/FilterDetailPage/index.html +3 -3
- package/out/filters/index.html +3 -3
- package/out/filters/new/index.html +3 -3
- package/out/index.html +3 -3
- package/out/install/index.html +3 -3
- package/out/language/LanguageDetailPage/index.html +3 -3
- package/out/language/index.html +3 -3
- package/out/language/new/index.html +3 -3
- package/out/log-in/index.html +3 -3
- package/out/login-code/index.html +12 -0
- package/out/orders/OrderDetailPage/index.html +3 -3
- package/out/orders/index.html +3 -3
- package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -3
- package/out/payment-provider/index.html +3 -3
- package/out/payment-provider/new/index.html +3 -3
- package/out/products/ProductDetailPage/index.html +3 -3
- package/out/products/index.html +3 -3
- package/out/products/new/index.html +3 -3
- package/out/quotations/QuotationDetailPage/index.html +3 -3
- package/out/quotations/index.html +3 -3
- package/out/reset-password/index.html +3 -3
- package/out/sign-up/index.html +3 -3
- package/out/styleguide/index.html +3 -3
- package/out/tokens/TokenDetailPage/index.html +3 -3
- package/out/tokens/index.html +3 -3
- package/out/users/UserDetailPage/index.html +3 -3
- package/out/users/index.html +3 -3
- package/out/users/new/index.html +3 -3
- package/out/verify-email/index.html +3 -3
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -3
- package/out/warehousing-provider/index.html +3 -3
- package/out/warehousing-provider/new/index.html +3 -3
- package/out/works/WorkDetailPage/index.html +3 -3
- package/out/works/WorkQueueListView/index.html +3 -3
- package/out/works/index.html +3 -3
- package/out/works/management/index.html +3 -3
- package/package.json +10 -10
- package/src/modules/accounts/hooks/logOut.ts +26 -0
- package/src/modules/accounts/hooks/useAddEmail.ts +34 -0
- package/src/modules/accounts/hooks/useAddWeb3Address.ts +38 -0
- package/src/modules/accounts/hooks/useAddWebAuthnCredentials.ts +48 -0
- package/src/modules/accounts/hooks/useBulkUserOperations.ts +91 -0
- package/src/modules/accounts/hooks/useChangePassword.ts +36 -0
- package/src/modules/accounts/hooks/useCreateUser.ts +74 -0
- package/src/modules/accounts/hooks/useCreateWebAuthnCredentialCreationOptions.ts +31 -0
- package/src/modules/accounts/hooks/useCreateWebAuthnCredentialRequestOptions.ts +30 -0
- package/src/modules/accounts/hooks/useCurrentUser.ts +44 -0
- package/src/modules/accounts/hooks/useDeleteUser.ts +26 -0
- package/src/modules/accounts/hooks/useEnrollUser.ts +48 -0
- package/src/modules/accounts/hooks/useForgotPassword.ts +35 -0
- package/src/modules/accounts/hooks/useGenerateLoginCredentials.ts +80 -0
- package/src/modules/accounts/hooks/useGenerateWebAuthCredentials.ts +102 -0
- package/src/modules/accounts/hooks/useLoginWithLoginCode.ts +45 -0
- package/src/modules/accounts/hooks/useLoginWithPassword.ts +65 -0
- package/src/modules/accounts/hooks/useLoginWithWebAuthn.ts +38 -0
- package/src/modules/accounts/hooks/useLogoutAllSessions.ts +27 -0
- package/src/modules/accounts/hooks/useRemoveBookmark.ts +36 -0
- package/src/modules/accounts/hooks/useRemoveEmail.ts +40 -0
- package/src/modules/accounts/hooks/useRemoveWeb3Address.ts +38 -0
- package/src/modules/accounts/hooks/useRemoveWebAuthCredentials.ts +36 -0
- package/src/modules/accounts/hooks/useRequestLoginCode.ts +31 -0
- package/src/modules/accounts/hooks/useResetPassword.ts +46 -0
- package/src/modules/accounts/hooks/useSendVerificationEmail.ts +35 -0
- package/src/modules/accounts/hooks/useSetPassword.ts +38 -0
- package/src/modules/accounts/hooks/useSetRoles.ts +40 -0
- package/src/modules/accounts/hooks/useSetUserTags.ts +48 -0
- package/src/modules/accounts/hooks/useSetUsername.ts +40 -0
- package/src/modules/accounts/hooks/useUpdateUserAvatar.ts +49 -0
- package/src/modules/accounts/hooks/useUpdateUserProfile.ts +40 -0
- package/src/modules/accounts/hooks/useUser.ts +201 -0
- package/src/modules/accounts/hooks/useUserBookmarks.ts +51 -0
- package/src/modules/accounts/hooks/useUserExport.ts +107 -0
- package/src/modules/accounts/hooks/useUserWebAuthnCredentials.ts +44 -0
- package/src/modules/accounts/hooks/useUsers.ts +82 -0
- package/src/modules/accounts/hooks/useUsersCount.ts +50 -0
- package/src/modules/accounts/hooks/useValidateEmailVerificationToken.ts +34 -0
- package/src/modules/accounts/hooks/useValidateResetPasswordToken.ts +35 -0
- package/src/modules/accounts/hooks/useVerifyEmail.ts +41 -0
- package/src/modules/accounts/hooks/useVerifyWeb3Address.ts +40 -0
- package/src/modules/accounts/index.ts +2 -0
- package/src/modules/assortment/fragments/AssortmentChildrenFragment.ts +16 -0
- package/src/modules/assortment/fragments/AssortmentFragment.ts +31 -0
- package/src/modules/assortment/fragments/AssortmentLinkFragment.ts +18 -0
- package/src/modules/assortment/fragments/AssortmentMediaFragment.ts +19 -0
- package/src/modules/assortment/fragments/AssortmentMediaTextsFragment.ts +12 -0
- package/src/modules/assortment/fragments/AssortmentTextsFragment.ts +14 -0
- package/src/modules/assortment/hooks/useAddAssortmentFilter.ts +46 -0
- package/src/modules/assortment/hooks/useAddAssortmentLink.ts +46 -0
- package/src/modules/assortment/hooks/useAddAssortmentMedia.ts +52 -0
- package/src/modules/assortment/hooks/useAddAssortmentProduct.ts +46 -0
- package/src/modules/assortment/hooks/useAssortment.ts +56 -0
- package/src/modules/assortment/hooks/useAssortmentChildren.ts +58 -0
- package/src/modules/assortment/hooks/useAssortmentExport.ts +60 -0
- package/src/modules/assortment/hooks/useAssortmentFilters.ts +51 -0
- package/src/modules/assortment/hooks/useAssortmentLinks.ts +54 -0
- package/src/modules/assortment/hooks/useAssortmentMedia.ts +57 -0
- package/src/modules/assortment/hooks/useAssortmentPaths.ts +39 -0
- package/src/modules/assortment/hooks/useAssortmentProducts.ts +62 -0
- package/src/modules/assortment/hooks/useAssortments.ts +103 -0
- package/src/modules/assortment/hooks/useAssortmentsCount.ts +51 -0
- package/src/modules/assortment/hooks/useBulkAssortmentOperations.ts +100 -0
- package/src/modules/assortment/hooks/useCreateAssortment.ts +55 -0
- package/src/modules/assortment/hooks/usePrepareAssortmentImport.ts +211 -0
- package/src/modules/assortment/hooks/useRemoveAssortment.ts +36 -0
- package/src/modules/assortment/hooks/useRemoveAssortmentFilter.ts +36 -0
- package/src/modules/assortment/hooks/useRemoveAssortmentLink.ts +36 -0
- package/src/modules/assortment/hooks/useRemoveAssortmentMedia.ts +36 -0
- package/src/modules/assortment/hooks/useRemoveAssortmentProduct.ts +36 -0
- package/src/modules/assortment/hooks/useReorderAssortmentFilters.ts +39 -0
- package/src/modules/assortment/hooks/useReorderAssortmentLinks.ts +37 -0
- package/src/modules/assortment/hooks/useReorderAssortmentMedia.ts +37 -0
- package/src/modules/assortment/hooks/useReorderAssortmentProducts.ts +39 -0
- package/src/modules/assortment/hooks/useTranslatedAssortmentMediaTexts.ts +41 -0
- package/src/modules/assortment/hooks/useTranslatedAssortmentTexts.ts +40 -0
- package/src/modules/assortment/hooks/useUpdateAssortment.ts +43 -0
- package/src/modules/assortment/hooks/useUpdateAssortmentMediaTexts.ts +45 -0
- package/src/modules/assortment/hooks/useUpdateAssortmentTexts.ts +42 -0
- package/src/modules/common/fragments/AddressFragment.ts +16 -0
- package/src/modules/common/hooks/useApp.ts +11 -0
- package/src/modules/common/hooks/useBulkActionConfirmation.tsx +68 -0
- package/src/modules/common/hooks/useBulkResultHandler.ts +83 -0
- package/src/modules/common/hooks/useBulkSelection.ts +86 -0
- package/src/modules/common/hooks/useCSVExport.ts +94 -0
- package/src/modules/common/hooks/useCSVImport.ts +69 -0
- package/src/modules/common/hooks/useChatEndpointChecker.ts +25 -0
- package/src/modules/common/hooks/useConfirmMediaUpload.ts +45 -0
- package/src/modules/common/hooks/useDashboardMetrics.ts +42 -0
- package/src/modules/common/hooks/useLocalStorage.ts +34 -0
- package/src/modules/common/hooks/useOrderAnalytics.ts +139 -0
- package/src/modules/common/hooks/useOrderItemsAnalytics.ts +107 -0
- package/src/modules/common/hooks/useOutsideClick.ts +29 -0
- package/src/modules/common/hooks/usePortal.ts +54 -0
- package/src/modules/common/hooks/useScrollRestoration.ts +123 -0
- package/src/modules/common/hooks/useShopConfiguration.ts +83 -0
- package/src/modules/common/hooks/useShopInfo.ts +66 -0
- package/src/modules/common/hooks/useStatusTypes.ts +29 -0
- package/src/modules/common/hooks/useSystemRoles.ts +29 -0
- package/src/modules/common/hooks/useTheme.ts +14 -0
- package/src/modules/copilot/hooks/useAvailableTools.ts +92 -0
- package/src/modules/copilot/hooks/useChatManager.ts +169 -0
- package/src/modules/copilot/hooks/useToolTextNormalizer.ts +84 -0
- package/src/modules/country/fragments/CountryFragment.ts +17 -0
- package/src/modules/country/hooks/useCountries.ts +66 -0
- package/src/modules/country/hooks/useCountry.ts +34 -0
- package/src/modules/country/hooks/useCreateCountry.ts +41 -0
- package/src/modules/country/hooks/useRemoveCountry.ts +38 -0
- package/src/modules/country/hooks/useUpdateCountry.ts +42 -0
- package/src/modules/currency/fragments/CurrencyFragment.ts +13 -0
- package/src/modules/currency/hooks/useCreateCurrency.ts +48 -0
- package/src/modules/currency/hooks/useCurrencies.ts +68 -0
- package/src/modules/currency/hooks/useCurrency.ts +34 -0
- package/src/modules/currency/hooks/useRemoveCurrency.ts +38 -0
- package/src/modules/currency/hooks/useUpdateCurrency.ts +47 -0
- package/src/modules/delivery-provider/hooks/useCreateDeliveryProvider.ts +67 -0
- package/src/modules/delivery-provider/hooks/useDeliveryInterfacesByType.ts +38 -0
- package/src/modules/delivery-provider/hooks/useDeliveryProvider.ts +60 -0
- package/src/modules/delivery-provider/hooks/useDeliveryProviderTypes.ts +34 -0
- package/src/modules/delivery-provider/hooks/useDeliveryProviders.ts +59 -0
- package/src/modules/delivery-provider/hooks/useRemoveDeliveryProvider.ts +38 -0
- package/src/modules/delivery-provider/hooks/useUpdateDeliveryProvider.ts +68 -0
- package/src/modules/enrollment/fragments/EnrollmentDetailFragment.ts +111 -0
- package/src/modules/enrollment/fragments/EnrollmentFragment.ts +66 -0
- package/src/modules/enrollment/hooks/useActivateEnrollment.ts +36 -0
- package/src/modules/enrollment/hooks/useEnrollment.ts +39 -0
- package/src/modules/enrollment/hooks/useEnrollments.ts +70 -0
- package/src/modules/enrollment/hooks/useSendEnrollmentEmail.ts +35 -0
- package/src/modules/enrollment/hooks/useSuspendEnrollment.ts +31 -0
- package/src/modules/enrollment/hooks/useTerminateEnrollment.ts +48 -0
- package/src/modules/enrollment/hooks/useUpdateEnrollmentExpires.ts +38 -0
- package/src/modules/enrollment/hooks/useUpdateEnrollmentPlan.ts +45 -0
- package/src/modules/enrollment/hooks/useUserEnrollments.ts +61 -0
- package/src/modules/event/fragments/EventFragment.ts +12 -0
- package/src/modules/event/hooks/useEvent.ts +32 -0
- package/src/modules/event/hooks/useEventTypes.ts +29 -0
- package/src/modules/event/hooks/useEvents.ts +77 -0
- package/src/modules/filter/fragments/FilterFragment.ts +24 -0
- package/src/modules/filter/fragments/FilterOptionFragment.ts +16 -0
- package/src/modules/filter/fragments/FilterTextsFragment.ts +12 -0
- package/src/modules/filter/hooks/useBulkFilterOperations.ts +59 -0
- package/src/modules/filter/hooks/useCreateFilter.ts +44 -0
- package/src/modules/filter/hooks/useCreateFilterOption.ts +42 -0
- package/src/modules/filter/hooks/useFilter.ts +44 -0
- package/src/modules/filter/hooks/useFilterExport.ts +35 -0
- package/src/modules/filter/hooks/useFilterOptions.ts +40 -0
- package/src/modules/filter/hooks/useFilterTypes.ts +34 -0
- package/src/modules/filter/hooks/useFilters.ts +78 -0
- package/src/modules/filter/hooks/useFiltersCount.ts +37 -0
- package/src/modules/filter/hooks/usePrepareFilterImport.ts +142 -0
- package/src/modules/filter/hooks/useRemoveFilter.ts +34 -0
- package/src/modules/filter/hooks/useRemoveFilterOption.ts +40 -0
- package/src/modules/filter/hooks/useTranslatedFilterTexts.ts +40 -0
- package/src/modules/filter/hooks/useUpdateFilter.ts +38 -0
- package/src/modules/filter/hooks/useUpdateFilterTexts.ts +48 -0
- package/src/modules/forms/hooks/useField.ts +151 -0
- package/src/modules/forms/hooks/useForm.ts +210 -0
- package/src/modules/forms/hooks/useFormContext.ts +7 -0
- package/src/modules/language/fragments/LanguageFragment.ts +13 -0
- package/src/modules/language/hooks/useCreateLanguage.ts +40 -0
- package/src/modules/language/hooks/useLanguage.ts +34 -0
- package/src/modules/language/hooks/useLanguages.ts +64 -0
- package/src/modules/language/hooks/useRemoveLanguage.ts +38 -0
- package/src/modules/language/hooks/useUpdateLanguage.ts +42 -0
- package/src/modules/modal/hooks/useModal.ts +8 -0
- package/src/modules/order/fragments/OrderDetailFragment.ts +254 -0
- package/src/modules/order/fragments/OrderFragment.ts +42 -0
- package/src/modules/order/hooks/useConfirmOrder.ts +36 -0
- package/src/modules/order/hooks/useDeliverOrder.ts +36 -0
- package/src/modules/order/hooks/useOrder.ts +35 -0
- package/src/modules/order/hooks/useOrders.ts +105 -0
- package/src/modules/order/hooks/usePayOrder.ts +36 -0
- package/src/modules/order/hooks/useRejectOrder.ts +36 -0
- package/src/modules/order/hooks/useRemoveOrder.ts +36 -0
- package/src/modules/order/hooks/useUserCart.ts +71 -0
- package/src/modules/order/hooks/useUserOrders.ts +65 -0
- package/src/modules/payment-providers/fragments/PaymentProviderFragment.ts +21 -0
- package/src/modules/payment-providers/hooks/useCreatePaymentProvider.ts +43 -0
- package/src/modules/payment-providers/hooks/usePaymentInterfacesByType.ts +38 -0
- package/src/modules/payment-providers/hooks/usePaymentProvider.ts +39 -0
- package/src/modules/payment-providers/hooks/usePaymentProviderTypes.ts +34 -0
- package/src/modules/payment-providers/hooks/usePaymentProviders.ts +42 -0
- package/src/modules/payment-providers/hooks/useRemovePaymentProvider.ts +38 -0
- package/src/modules/payment-providers/hooks/useUpdatePaymentProvider.ts +47 -0
- package/src/modules/product/fragments/ProductAssignmentFragment.ts +39 -0
- package/src/modules/product/fragments/ProductBriefFragment.ts +57 -0
- package/src/modules/product/fragments/ProductCatalogPriceFragment.ts +23 -0
- package/src/modules/product/fragments/ProductDetailFragment.ts +51 -0
- package/src/modules/product/fragments/ProductDimensionFragment.ts +12 -0
- package/src/modules/product/fragments/ProductMediaFragment.ts +24 -0
- package/src/modules/product/fragments/ProductMediaTextsFragment.ts +12 -0
- package/src/modules/product/fragments/ProductPlanConfigurationFragment.ts +14 -0
- package/src/modules/product/fragments/ProductTextsFragment.ts +17 -0
- package/src/modules/product/fragments/ProductVariationFragment.ts +27 -0
- package/src/modules/product/fragments/TokenFragment.ts +24 -0
- package/src/modules/product/hooks/useAddProductAssignment.ts +46 -0
- package/src/modules/product/hooks/useAddProductMedia.ts +47 -0
- package/src/modules/product/hooks/useBulkProductOperations.ts +123 -0
- package/src/modules/product/hooks/useCreateProduct.ts +72 -0
- package/src/modules/product/hooks/useCreateProductBundleItem.ts +40 -0
- package/src/modules/product/hooks/useCreateProductVariation.ts +46 -0
- package/src/modules/product/hooks/useCreateProductVariationOption.ts +46 -0
- package/src/modules/product/hooks/useExportToken.ts +51 -0
- package/src/modules/product/hooks/useMenuPosition.ts +34 -0
- package/src/modules/product/hooks/usePrepareProductImport.ts +350 -0
- package/src/modules/product/hooks/useProduct.ts +93 -0
- package/src/modules/product/hooks/useProductAssignments.ts +71 -0
- package/src/modules/product/hooks/useProductBundleItems.ts +61 -0
- package/src/modules/product/hooks/useProductCatalogPrices.ts +39 -0
- package/src/modules/product/hooks/useProductExport.ts +90 -0
- package/src/modules/product/hooks/useProductFulfillmentSimulation.ts +137 -0
- package/src/modules/product/hooks/useProductMedia.ts +44 -0
- package/src/modules/product/hooks/useProductPlan.ts +50 -0
- package/src/modules/product/hooks/useProductPlanConfigurationOptions.ts +42 -0
- package/src/modules/product/hooks/useProductReviews.ts +62 -0
- package/src/modules/product/hooks/useProductSupply.ts +52 -0
- package/src/modules/product/hooks/useProductTokenization.ts +52 -0
- package/src/modules/product/hooks/useProductVariationTypes.ts +34 -0
- package/src/modules/product/hooks/useProductVariations.ts +50 -0
- package/src/modules/product/hooks/useProductWarehousing.ts +45 -0
- package/src/modules/product/hooks/useProducts.ts +111 -0
- package/src/modules/product/hooks/useProductsCount.ts +54 -0
- package/src/modules/product/hooks/usePublishProduct.ts +39 -0
- package/src/modules/product/hooks/useReOrderProductMedia.ts +36 -0
- package/src/modules/product/hooks/useRemoveBundleItem.ts +37 -0
- package/src/modules/product/hooks/useRemoveProduct.ts +36 -0
- package/src/modules/product/hooks/useRemoveProductAssignment.ts +40 -0
- package/src/modules/product/hooks/useRemoveProductMedia.ts +36 -0
- package/src/modules/product/hooks/useRemoveProductVariation.ts +36 -0
- package/src/modules/product/hooks/useRemoveProductVariationOption.ts +43 -0
- package/src/modules/product/hooks/useScaffoldBundleItem.ts +38 -0
- package/src/modules/product/hooks/useScaffoldVariationProduct.ts +50 -0
- package/src/modules/product/hooks/useSmartContractStandards.ts +34 -0
- package/src/modules/product/hooks/useTranslatedProductMediaTexts.ts +39 -0
- package/src/modules/product/hooks/useTranslatedProductTexts.ts +42 -0
- package/src/modules/product/hooks/useUnPublishProduct.ts +39 -0
- package/src/modules/product/hooks/useUpdateProduct.ts +46 -0
- package/src/modules/product/hooks/useUpdateProductCommerce.ts +50 -0
- package/src/modules/product/hooks/useUpdateProductMediaTexts.ts +42 -0
- package/src/modules/product/hooks/useUpdateProductPlan.ts +54 -0
- package/src/modules/product/hooks/useUpdateProductSupply.ts +60 -0
- package/src/modules/product/hooks/useUpdateProductTexts.ts +39 -0
- package/src/modules/product/hooks/useUpdateProductTokenization.ts +58 -0
- package/src/modules/product/hooks/useUpdateProductVariationTexts.ts +50 -0
- package/src/modules/product/hooks/useUpdateProductWarehousing.ts +50 -0
- package/src/modules/product/hooks/useUserTokens.ts +48 -0
- package/src/modules/product/index.ts +3 -0
- package/src/modules/product-review/fragments/ProductReviewDetailFragment.ts +55 -0
- package/src/modules/product-review/hooks/useAddProductReviewVote.ts +55 -0
- package/src/modules/product-review/hooks/useCreateProductReview.ts +47 -0
- package/src/modules/product-review/hooks/useProductReviewsByProductId.ts +70 -0
- package/src/modules/product-review/hooks/useRemoveProductReview.ts +38 -0
- package/src/modules/product-review/hooks/useRemoveProductReviewVote.ts +43 -0
- package/src/modules/product-review/hooks/useUserProductReviews.ts +92 -0
- package/src/modules/quotation/fragments/QuotationDetailFragment.ts +71 -0
- package/src/modules/quotation/fragments/QuotationFragment.ts +54 -0
- package/src/modules/quotation/hooks/useMakeQuotationProposal.ts +41 -0
- package/src/modules/quotation/hooks/useQuotation.ts +37 -0
- package/src/modules/quotation/hooks/useQuotations.ts +61 -0
- package/src/modules/quotation/hooks/useRejectQuotation.ts +41 -0
- package/src/modules/quotation/hooks/useUserQuotations.ts +60 -0
- package/src/modules/quotation/hooks/useVerifyQuotation.ts +41 -0
- package/src/modules/search/fragments/GlobalSearchFragment.ts +20 -0
- package/src/modules/search/hooks/useGlobalSearch.ts +168 -0
- package/src/modules/token/hooks/useInvalidateTicket.ts +27 -0
- package/src/modules/token/hooks/useToken.ts +64 -0
- package/src/modules/token/hooks/useTokens.ts +72 -0
- package/src/modules/warehousing-providers/fragments/WarehousingProviderFragment.ts +21 -0
- package/src/modules/warehousing-providers/hooks/useCreateWarehousingProvider.ts +46 -0
- package/src/modules/warehousing-providers/hooks/useRemoveWarehousingProvider.ts +38 -0
- package/src/modules/warehousing-providers/hooks/useUpdateWarehousingProvider.ts +47 -0
- package/src/modules/warehousing-providers/hooks/useWarehousingInterfacesByType.ts +38 -0
- package/src/modules/warehousing-providers/hooks/useWarehousingProvider.ts +39 -0
- package/src/modules/warehousing-providers/hooks/useWarehousingProviderTypes.ts +34 -0
- package/src/modules/warehousing-providers/hooks/useWarehousingProviders.ts +41 -0
- package/src/modules/work/fragments/WorkFragment.ts +24 -0
- package/src/modules/work/hooks/useActiveWorkTypes.ts +29 -0
- package/src/modules/work/hooks/useAddWork.ts +62 -0
- package/src/modules/work/hooks/useAllocateWork.ts +40 -0
- package/src/modules/work/hooks/useRecentExports.ts +129 -0
- package/src/modules/work/hooks/useRegisteredWorkTypes.ts +27 -0
- package/src/modules/work/hooks/useRemoveWork.ts +36 -0
- package/src/modules/work/hooks/useWork.ts +42 -0
- package/src/modules/work/hooks/useWorkQueue.ts +98 -0
- package/src/sdk/README.md +2 -2
- package/out/_next/static/BPoacQET3TJr2q9E370Ez/_buildManifest.js +0 -262
- package/out/_next/static/chunks/02ir8k2vqhw7u.js +0 -4
- package/out/_next/static/chunks/03mdkmx9pb3yx.js +0 -28
- package/out/_next/static/chunks/03spbldywp99b.js +0 -31
- package/out/_next/static/chunks/0531sa8v36e39.js +0 -1
- package/out/_next/static/chunks/065ltxdt7s8b2.js +0 -134
- package/out/_next/static/chunks/06b1jza2fvc6f.js +0 -4
- package/out/_next/static/chunks/0701uizxsgs75.js +0 -4
- package/out/_next/static/chunks/09olk50zbo5r6.js +0 -5
- package/out/_next/static/chunks/09pabifvs84zb.js +0 -12
- package/out/_next/static/chunks/0_pn7w49dpkak.js +0 -5
- package/out/_next/static/chunks/0a_gulnq-c7to.js +0 -709
- package/out/_next/static/chunks/0agx-csdwbk-x.js +0 -5
- package/out/_next/static/chunks/0clmvy-auef0p.js +0 -14
- package/out/_next/static/chunks/0czktxcs2aa12.js +0 -1
- package/out/_next/static/chunks/0d_qylr054ab-.js +0 -5
- package/out/_next/static/chunks/0e2znhpcecrqs.js +0 -175
- package/out/_next/static/chunks/0ef4vp3ehm369.js +0 -4
- package/out/_next/static/chunks/0fggi8jpi5gjk.js +0 -165
- package/out/_next/static/chunks/0gyabz3vqllr6.js +0 -83
- package/out/_next/static/chunks/0j05dboa5_xkw.js +0 -5
- package/out/_next/static/chunks/0kr4ift9_1a3s.js +0 -1
- package/out/_next/static/chunks/0l8tmlevl_6p0.js +0 -1
- package/out/_next/static/chunks/0o91usftba97q.js +0 -54
- package/out/_next/static/chunks/0oi1kpp0levnm.js +0 -1
- package/out/_next/static/chunks/0p86ng98eiz5q.js +0 -11
- package/out/_next/static/chunks/0pw1zl8_l93xl.js +0 -5
- package/out/_next/static/chunks/0py8-umjmwiwi.js +0 -156
- package/out/_next/static/chunks/0q0m2pv-3b2e2.js +0 -4
- package/out/_next/static/chunks/0r57e83u39trg.js +0 -5
- package/out/_next/static/chunks/0r9a_mcjh1k24.js +0 -6
- package/out/_next/static/chunks/0rgtc82y8z7_x.js +0 -5
- package/out/_next/static/chunks/0rxhx_x-7dojh.js +0 -182
- package/out/_next/static/chunks/0s6u_6w75ggbw.js +0 -297
- package/out/_next/static/chunks/0teb3b5h78855.js +0 -44
- package/out/_next/static/chunks/0thsuuvsozjop.js +0 -54
- package/out/_next/static/chunks/0v6x3uondh5hw.js +0 -5
- package/out/_next/static/chunks/0v_uz3j8jolmq.js +0 -4
- package/out/_next/static/chunks/0vwmp6qrw7odm.js +0 -7
- package/out/_next/static/chunks/0w6t6v_jzrudq.js +0 -4
- package/out/_next/static/chunks/0w7gz501ry22r.js +0 -4
- package/out/_next/static/chunks/0xgn-89s97a5w.js +0 -1
- package/out/_next/static/chunks/0xqtemh7t38y9.js +0 -119
- package/out/_next/static/chunks/1-1rj15j67dqt.js +0 -1
- package/out/_next/static/chunks/10drou7w-k58p.js +0 -4
- package/out/_next/static/chunks/11w7hldkge7sg.js +0 -8
- package/out/_next/static/chunks/130c8cta7pec6.js +0 -1
- package/out/_next/static/chunks/13qi39a_b6gkv.js +0 -1
- package/out/_next/static/chunks/15142badc5ufq.js +0 -4
- package/out/_next/static/chunks/155boltbcvwo-.js +0 -63
- package/out/_next/static/chunks/15_nwd8p454gd.js +0 -1
- package/out/_next/static/chunks/15s4qkdyz56pg.js +0 -115
- package/out/_next/static/chunks/15vdx0kewzv-6.js +0 -33
- package/out/_next/static/chunks/16shuavdpgni8.js +0 -327
- package/out/_next/static/chunks/170j06y4-47o4.js +0 -5
- package/out/_next/static/chunks/18a5kibvycb6u.js +0 -1
- package/out/_next/static/chunks/1_bckhq06wfmb.js +0 -4
- package/out/_next/static/chunks/1_ymf_rfke1aw.js +0 -6
- package/out/_next/static/chunks/1a1m389awxw4k.js +0 -1
- package/out/_next/static/chunks/1albq_5cppsa1.js +0 -5
- package/out/_next/static/chunks/1bhibqf8k2-z1.js +0 -117
- package/out/_next/static/chunks/1bxesp6kakz8_.js +0 -353
- package/out/_next/static/chunks/1d80ahah359g5.js +0 -174
- package/out/_next/static/chunks/1dbjry-rs_5we.js +0 -1
- package/out/_next/static/chunks/1dlr1eig6zpl1.js +0 -12
- package/out/_next/static/chunks/1gq8ickcg_vmv.js +0 -147
- package/out/_next/static/chunks/1gyrsx1nip-lm.js +0 -2
- package/out/_next/static/chunks/1hma23kynopdj.js +0 -3
- package/out/_next/static/chunks/1i996uxxmc736.js +0 -234
- package/out/_next/static/chunks/1ivhp-mi-5l--.js +0 -57
- package/out/_next/static/chunks/1ktkks-wpk8q-.js +0 -1
- package/out/_next/static/chunks/1kz62r46jwi0y.js +0 -5
- package/out/_next/static/chunks/1lex3myb5hmsw.js +0 -1
- package/out/_next/static/chunks/1lha1nklxo2g7.js +0 -1
- package/out/_next/static/chunks/1mwmcucidjio0.js +0 -8
- package/out/_next/static/chunks/1mzejejof4s6g.js +0 -147
- package/out/_next/static/chunks/1os6pvhjeb16o.js +0 -1
- package/out/_next/static/chunks/1p937fyqa7ssz.js +0 -1
- package/out/_next/static/chunks/1po7d3udj6iv4.js +0 -5
- package/out/_next/static/chunks/1qxxbcidu-hmv.js +0 -1
- package/out/_next/static/chunks/1re4i2t_po4sr.js +0 -95
- package/out/_next/static/chunks/1s4oi1bw8zl5d.js +0 -31
- package/out/_next/static/chunks/1sb04cqudnfpj.js +0 -4
- package/out/_next/static/chunks/1uom050rz5iol.js +0 -272
- package/out/_next/static/chunks/1uymuiqrms2h8.js +0 -103
- package/out/_next/static/chunks/1wijj_fal57co.js +0 -2
- package/out/_next/static/chunks/1wpen9t3_zbte.js +0 -1
- package/out/_next/static/chunks/1wpv1sl7vwg04.js +0 -99
- package/out/_next/static/chunks/1y3poj860g968.js +0 -24
- package/out/_next/static/chunks/1yk0pxcl4urkd.js +0 -4
- package/out/_next/static/chunks/1z2rl3h7scna4.js +0 -7
- package/out/_next/static/chunks/1zyhq82pkterc.js +0 -61
- package/out/_next/static/chunks/2-4610weysas_.js +0 -1
- package/out/_next/static/chunks/2-zr9-ri30va5.css +0 -1
- package/out/_next/static/chunks/20j8cdot33hql.js +0 -13
- package/out/_next/static/chunks/21fo9zerxyx-l.js +0 -59
- package/out/_next/static/chunks/22sxsq82r3cwy.js +0 -41
- package/out/_next/static/chunks/23nwkbry8kz0-.js +0 -1
- package/out/_next/static/chunks/259ckrmoldaqg.js +0 -5
- package/out/_next/static/chunks/25y2dqqrhstuq.js +0 -5
- package/out/_next/static/chunks/28myh-gi8t3t7.js +0 -7
- package/out/_next/static/chunks/29y82c6-u55hj.js +0 -5
- package/out/_next/static/chunks/2ahlen2u4lbnm.js +0 -16
- package/out/_next/static/chunks/2c3ehieqiwiw8.js +0 -119
- package/out/_next/static/chunks/2c5gq6izeq6nx.js +0 -81
- package/out/_next/static/chunks/2cj8g3fxmitaa.js +0 -1
- package/out/_next/static/chunks/2d9lzme_uzwvq.js +0 -1
- package/out/_next/static/chunks/2dqoft2pp4355.js +0 -1
- package/out/_next/static/chunks/2gso7_8v7owco.js +0 -1
- package/out/_next/static/chunks/2hc4nowrexhn3.js +0 -100
- package/out/_next/static/chunks/2hoi6cb1lromr.js +0 -4
- package/out/_next/static/chunks/2hw2_8kkf_2fg.js +0 -1
- package/out/_next/static/chunks/2kd4p_esjbozz.js +0 -21
- package/out/_next/static/chunks/2lwhn1ypqwukz.js +0 -11
- package/out/_next/static/chunks/2oz432iieo_c6.js +0 -43
- package/out/_next/static/chunks/2qjnhmz4c5fq1.js +0 -23
- package/out/_next/static/chunks/2rdjgc7_za785.js +0 -9
- package/out/_next/static/chunks/2ru66cyp0hbxn.js +0 -103
- package/out/_next/static/chunks/2ung-az_h871_.js +0 -4
- package/out/_next/static/chunks/2v4rvvdyh028e.js +0 -1
- package/out/_next/static/chunks/2vsl3-revotpl.js +0 -43
- package/out/_next/static/chunks/2wbc_9uwtsjbp.js +0 -15
- package/out/_next/static/chunks/2xixk0t9e9mnw.js +0 -1
- package/out/_next/static/chunks/2y6i_xssusr93.js +0 -1
- package/out/_next/static/chunks/2y_t26eglpeka.js +0 -4
- package/out/_next/static/chunks/3-hgyqm9mhcm9.js +0 -33
- package/out/_next/static/chunks/364y5vueeinvz.js +0 -276
- package/out/_next/static/chunks/366b9y413lk4d.js +0 -33
- package/out/_next/static/chunks/36vauyb71ot_b.js +0 -61
- package/out/_next/static/chunks/394m309ssmlo3.js +0 -5
- package/out/_next/static/chunks/39pveojee3ma1.js +0 -33
- package/out/_next/static/chunks/3_--novhq2u1q.js +0 -807
- package/out/_next/static/chunks/3apnk6kuvwze8.js +0 -5
- package/out/_next/static/chunks/3b0868kyqqkn3.js +0 -5
- package/out/_next/static/chunks/3dcwbsiechj8e.js +0 -7
- package/out/_next/static/chunks/3dyd0ilb-ee5w.js +0 -8
- package/out/_next/static/chunks/3eftzknnu45-s.js +0 -1
- package/out/_next/static/chunks/3ejsx4af27cct.js +0 -7
- package/out/_next/static/chunks/3es4yddhl8uwc.js +0 -7
- package/out/_next/static/chunks/3inp15oicq85k.js +0 -1
- package/out/_next/static/chunks/3kd-t_qz3nxh7.js +0 -30
- package/out/_next/static/chunks/3kl8vv7w9jkjr.js +0 -23
- package/out/_next/static/chunks/3kmfx3f7oyfdm.js +0 -5
- package/out/_next/static/chunks/3koj4-48a7p_9.js +0 -4
- package/out/_next/static/chunks/3l7glrtu8ueuo.js +0 -4
- package/out/_next/static/chunks/3lgq9oa_2erwo.js +0 -5
- package/out/_next/static/chunks/3muxcxam24i5z.js +0 -1
- package/out/_next/static/chunks/3nimt7ngr5zv6.js +0 -46
- package/out/_next/static/chunks/3pwezwpggrz59.js +0 -74
- package/out/_next/static/chunks/3r02t7a7jknrv.js +0 -7
- package/out/_next/static/chunks/3s40iuaou1rt4.js +0 -1
- package/out/_next/static/chunks/3selzn479n73i.js +0 -16
- package/out/_next/static/chunks/3srflqnqdfd60.js +0 -5
- package/out/_next/static/chunks/3t57k35xu2eo8.js +0 -5
- package/out/_next/static/chunks/3tu90a7do336z.js +0 -12
- package/out/_next/static/chunks/3ukgj2jzxf10n.js +0 -5
- package/out/_next/static/chunks/3vosu-lpiis6v.js +0 -5
- package/out/_next/static/chunks/3xaz8fvw2x6b3.js +0 -5
- package/out/_next/static/chunks/3xgjhwzul66dp.js +0 -4
- package/out/_next/static/chunks/3zze6y1x00k__.js +0 -165
- package/out/_next/static/chunks/40730dyt912zu.js +0 -5
- package/out/_next/static/chunks/40f26tfp8txip.js +0 -5
- package/out/_next/static/chunks/40kc42ezz2dri.js +0 -1
- package/out/_next/static/chunks/41f60q88qcigi.js +0 -39
- package/out/_next/static/chunks/41l5iphw-rna3.js +0 -44
- package/out/_next/static/chunks/423kk9x5t9_b8.js +0 -5
- package/out/_next/static/chunks/42k5e3tr3uyzs.js +0 -54
- package/out/_next/static/chunks/4481d7yj7bm2q.js +0 -5
- package/out/_next/static/chunks/448is1kpt9eaa.js +0 -39
- package/out/_next/static/chunks/44fkzg2e80pqt.js +0 -8
- /package/out/_next/static/{BPoacQET3TJr2q9E370Ez → WEaZ5SW9HLnJWzXs84JMH}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{BPoacQET3TJr2q9E370Ez → WEaZ5SW9HLnJWzXs84JMH}/_ssgManifest.js +0 -0
package/dist/modules/product.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ProductReviewDetailFragment_default } from '../chunk-ILYPJE4N.js';
|
|
2
2
|
import { TokenFragment_default } from '../chunk-IYKPRAWC.js';
|
|
3
3
|
import { useCurrencies_default } from '../chunk-NT7RB7AK.js';
|
|
4
|
-
import { FormWrapper_default, NoData_default, ImageWithFallback_default, SaveAndCancelButtons_default,
|
|
5
|
-
import { TextField_default, MarkdownTextAreaField_default, FormErrors_default } from '../chunk-
|
|
6
|
-
import { Form_default, TagInputField_default, HelpText_default, SubmitButton_default, clsx_default, PencilSquareIcon_default, TrashIcon_default } from '../chunk-
|
|
4
|
+
import { FormWrapper_default, NoData_default, Button_default, ImageWithFallback_default, SaveAndCancelButtons_default, DraggableIcon_default } from '../chunk-M2242FCR.js';
|
|
5
|
+
import { TextField_default, MarkdownTextAreaField_default, FormErrors_default, CheckboxField_default, SelectField_default } from '../chunk-NUGWX3KO.js';
|
|
6
|
+
import { Form_default, TagInputField_default, HelpText_default, SubmitButton_default, clsx_default, PencilSquareIcon_default, TrashIcon_default } from '../chunk-EKWWSFDK.js';
|
|
7
7
|
import '../chunk-ZUOVKRKC.js';
|
|
8
8
|
import { useAuth_default } from '../chunk-OTXM2UCD.js';
|
|
9
|
-
import { useForm_default } from '../chunk-
|
|
10
|
-
import '../chunk-
|
|
9
|
+
import { useForm_default } from '../chunk-JC6PXYZP.js';
|
|
10
|
+
import { validateProductCommerce, validateProductCommerceOneZero } from '../chunk-5UHBGLFV.js';
|
|
11
11
|
import { DangerMessage_default } from '../chunk-KRIRF7F6.js';
|
|
12
12
|
import { UserCircleIcon_default } from '../chunk-HERLM47Z.js';
|
|
13
13
|
import { useModal_default } from '../chunk-F6LBNV3H.js';
|
|
@@ -15,8 +15,8 @@ import '../chunk-VBO377AY.js';
|
|
|
15
15
|
import { parseUniqueId } from '../chunk-IXBMHOB5.js';
|
|
16
16
|
import { ProductBriefFragment_default } from '../chunk-EJDZRZSZ.js';
|
|
17
17
|
import { parseMeta_default } from '../chunk-YO6PT7KD.js';
|
|
18
|
-
import { useApp_default, useShopInfo_default } from '../chunk-
|
|
19
|
-
import '../chunk-ELPURWDC.js';
|
|
18
|
+
import { useApp_default, useShopInfo_default } from '../chunk-JGER2LQO.js';
|
|
19
|
+
import { useCountries_default } from '../chunk-ELPURWDC.js';
|
|
20
20
|
import '../chunk-RAQV2GYF.js';
|
|
21
21
|
import '../chunk-54DKBWXV.js';
|
|
22
22
|
import '../chunk-J23QSWDL.js';
|
|
@@ -26,7 +26,7 @@ import '../chunk-VYEXPG3M.js';
|
|
|
26
26
|
import '../chunk-QWQ3WJJN.js';
|
|
27
27
|
import '../chunk-GY2DRQGW.js';
|
|
28
28
|
import { useUnchainedContext_default } from '../chunk-IAQPLRXZ.js';
|
|
29
|
-
import '../chunk-
|
|
29
|
+
import '../chunk-2HTCKO4E.js';
|
|
30
30
|
import { gql } from '@apollo/client';
|
|
31
31
|
import { useMutation, useQuery } from '@apollo/client/react';
|
|
32
32
|
import React3, { createContext, useRef, useState, useEffect, useCallback, useMemo, memo, useReducer, useLayoutEffect, useContext } from 'react';
|
|
@@ -34,6 +34,7 @@ import { useIntl, FormattedMessage } from 'react-intl';
|
|
|
34
34
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
35
35
|
import { toast } from 'react-toastify';
|
|
36
36
|
import { unstable_batchedUpdates, createPortal } from 'react-dom';
|
|
37
|
+
import { useFormContext, useFieldArray } from 'react-hook-form';
|
|
37
38
|
|
|
38
39
|
var AddProductAssignmentMutation = gql`
|
|
39
40
|
mutation AddProductAssignment(
|
|
@@ -1185,6 +1186,7 @@ var ProductTokenizationQuery = gql`
|
|
|
1185
1186
|
contractConfiguration {
|
|
1186
1187
|
tokenId
|
|
1187
1188
|
supply
|
|
1189
|
+
ercMetadataProperties
|
|
1188
1190
|
}
|
|
1189
1191
|
contractStandard
|
|
1190
1192
|
contractAddress
|
|
@@ -1414,26 +1416,30 @@ var ProductsCountQuery = gql`
|
|
|
1414
1416
|
$tags: [LowerCaseString!]
|
|
1415
1417
|
$slugs: [String!]
|
|
1416
1418
|
$includeDrafts: Boolean
|
|
1419
|
+
$type: ProductType
|
|
1417
1420
|
) {
|
|
1418
1421
|
productsCount(
|
|
1419
1422
|
tags: $tags
|
|
1420
1423
|
slugs: $slugs
|
|
1421
1424
|
includeDrafts: $includeDrafts
|
|
1422
1425
|
queryString: $queryString
|
|
1426
|
+
type: $type
|
|
1423
1427
|
)
|
|
1424
1428
|
}
|
|
1425
1429
|
`;
|
|
1426
1430
|
var useProductsCount = ({
|
|
1427
1431
|
queryString = "",
|
|
1428
1432
|
tags = null,
|
|
1429
|
-
includeDrafts = true
|
|
1433
|
+
includeDrafts = true,
|
|
1434
|
+
type = null
|
|
1430
1435
|
}) => {
|
|
1431
1436
|
const { data, loading, error } = useQuery(ProductsCountQuery, {
|
|
1432
1437
|
errorPolicy: "all",
|
|
1433
1438
|
variables: {
|
|
1434
1439
|
queryString,
|
|
1435
1440
|
includeDrafts,
|
|
1436
|
-
tags
|
|
1441
|
+
tags,
|
|
1442
|
+
type
|
|
1437
1443
|
}
|
|
1438
1444
|
});
|
|
1439
1445
|
const productsCount = data?.productsCount;
|
|
@@ -1847,7 +1853,7 @@ var useUpdateProduct_default = useUpdateProduct;
|
|
|
1847
1853
|
var toMinorUnit = (value, decimals) => {
|
|
1848
1854
|
if (!value || decimals < 0) return 0;
|
|
1849
1855
|
const trimmedValue = value.trim();
|
|
1850
|
-
if (!/^-?\d
|
|
1856
|
+
if (!/^-?\d*(?:\.\d*)?$/.test(trimmedValue)) return 0;
|
|
1851
1857
|
const dotIndex = trimmedValue.indexOf(".");
|
|
1852
1858
|
if (dotIndex === -1) {
|
|
1853
1859
|
return Number(trimmedValue) * 10 ** decimals;
|
|
@@ -1859,6 +1865,62 @@ var toMinorUnit = (value, decimals) => {
|
|
|
1859
1865
|
const result = integerPart + paddedDecimal;
|
|
1860
1866
|
return Number(result);
|
|
1861
1867
|
};
|
|
1868
|
+
var fromMinorUnit = (amount, decimals) => {
|
|
1869
|
+
if (decimals < 0) return "0";
|
|
1870
|
+
if (decimals === 0) return amount.toString();
|
|
1871
|
+
const amountStr = amount.toString();
|
|
1872
|
+
if (amountStr === "0") return "0." + "0".repeat(decimals);
|
|
1873
|
+
const isNegative = amountStr.startsWith("-");
|
|
1874
|
+
const absAmountStr = isNegative ? amountStr.slice(1) : amountStr;
|
|
1875
|
+
if (absAmountStr.length <= decimals) {
|
|
1876
|
+
const paddedAmount = absAmountStr.padStart(decimals, "0");
|
|
1877
|
+
return `${isNegative ? "-" : ""}0.${paddedAmount}`;
|
|
1878
|
+
}
|
|
1879
|
+
const splitPoint = absAmountStr.length - decimals;
|
|
1880
|
+
const intPart = absAmountStr.slice(0, splitPoint);
|
|
1881
|
+
const decimalPart = absAmountStr.slice(splitPoint);
|
|
1882
|
+
return `${isNegative ? "-" : ""}${intPart}.${decimalPart}`;
|
|
1883
|
+
};
|
|
1884
|
+
var decimalsOf = (currencies, currencyCode) => currencies.find(
|
|
1885
|
+
({ isoCode }) => isoCode.toLowerCase() === currencyCode?.toLowerCase()
|
|
1886
|
+
)?.decimals ?? 2;
|
|
1887
|
+
var toPricingFormValues = (prices = [], currencies = []) => prices.map(
|
|
1888
|
+
({
|
|
1889
|
+
amount,
|
|
1890
|
+
currencyCode,
|
|
1891
|
+
countryCode,
|
|
1892
|
+
isTaxable,
|
|
1893
|
+
isNetPrice,
|
|
1894
|
+
minQuantity
|
|
1895
|
+
}) => ({
|
|
1896
|
+
countryCode,
|
|
1897
|
+
currencyCode,
|
|
1898
|
+
isTaxable: !!isTaxable,
|
|
1899
|
+
isNetPrice: !!isNetPrice,
|
|
1900
|
+
amount: fromMinorUnit(amount, decimalsOf(currencies, currencyCode)),
|
|
1901
|
+
minQuantity: minQuantity ?? ""
|
|
1902
|
+
})
|
|
1903
|
+
);
|
|
1904
|
+
var toPricingInput = (rows = [], currencies = []) => rows.map(
|
|
1905
|
+
({
|
|
1906
|
+
amount,
|
|
1907
|
+
currencyCode,
|
|
1908
|
+
countryCode,
|
|
1909
|
+
isTaxable,
|
|
1910
|
+
isNetPrice,
|
|
1911
|
+
minQuantity
|
|
1912
|
+
}) => ({
|
|
1913
|
+
currencyCode,
|
|
1914
|
+
countryCode,
|
|
1915
|
+
isTaxable: !!isTaxable,
|
|
1916
|
+
isNetPrice: !!isNetPrice,
|
|
1917
|
+
amount: toMinorUnit(
|
|
1918
|
+
String(amount ?? ""),
|
|
1919
|
+
decimalsOf(currencies, currencyCode)
|
|
1920
|
+
),
|
|
1921
|
+
...minQuantity !== "" && minQuantity !== null && minQuantity !== void 0 && { minQuantity: Number(minQuantity) }
|
|
1922
|
+
})
|
|
1923
|
+
);
|
|
1862
1924
|
|
|
1863
1925
|
// src/modules/product/hooks/useUpdateProductCommerce.ts
|
|
1864
1926
|
var UpdateProductCommerceMutation = gql`
|
|
@@ -1879,21 +1941,11 @@ var useUpdateProductCommerce = () => {
|
|
|
1879
1941
|
productId,
|
|
1880
1942
|
commerce: { pricing }
|
|
1881
1943
|
}) => {
|
|
1882
|
-
const normalizedPricing = pricing.map((price) => {
|
|
1883
|
-
const currency = currencies.find(
|
|
1884
|
-
({ isoCode }) => isoCode === price.currencyCode
|
|
1885
|
-
);
|
|
1886
|
-
const amount = toMinorUnit(price.amount.toString(), currency.decimals);
|
|
1887
|
-
return {
|
|
1888
|
-
...price,
|
|
1889
|
-
amount
|
|
1890
|
-
};
|
|
1891
|
-
});
|
|
1892
1944
|
return updateProductCommerceMutation({
|
|
1893
1945
|
variables: {
|
|
1894
1946
|
productId,
|
|
1895
1947
|
commerce: {
|
|
1896
|
-
pricing:
|
|
1948
|
+
pricing: toPricingInput(pricing, currencies)
|
|
1897
1949
|
}
|
|
1898
1950
|
},
|
|
1899
1951
|
refetchQueries: ["Products"]
|
|
@@ -2057,7 +2109,13 @@ var useUpdateProductTokenization = () => {
|
|
|
2057
2109
|
const [updateProductTokenizationMutation] = useMutation(UpdateProductTokenizationMutation);
|
|
2058
2110
|
const updateProductTokenization = async ({
|
|
2059
2111
|
productId,
|
|
2060
|
-
tokenization: {
|
|
2112
|
+
tokenization: {
|
|
2113
|
+
contractAddress,
|
|
2114
|
+
contractStandard,
|
|
2115
|
+
tokenId,
|
|
2116
|
+
supply,
|
|
2117
|
+
ercMetadataProperties
|
|
2118
|
+
}
|
|
2061
2119
|
}) => {
|
|
2062
2120
|
return updateProductTokenizationMutation({
|
|
2063
2121
|
variables: {
|
|
@@ -2066,7 +2124,8 @@ var useUpdateProductTokenization = () => {
|
|
|
2066
2124
|
contractAddress,
|
|
2067
2125
|
contractStandard,
|
|
2068
2126
|
tokenId,
|
|
2069
|
-
supply: parseInt(supply, 10)
|
|
2127
|
+
supply: parseInt(supply, 10),
|
|
2128
|
+
ercMetadataProperties
|
|
2070
2129
|
}
|
|
2071
2130
|
},
|
|
2072
2131
|
refetchQueries: ["Product", "Products"]
|
|
@@ -6911,4 +6970,357 @@ var ProductMediaForm = ({ productId }) => {
|
|
|
6911
6970
|
};
|
|
6912
6971
|
var ProductMediaForm_default = ProductMediaForm;
|
|
6913
6972
|
|
|
6914
|
-
|
|
6973
|
+
// src/modules/common/convertArrayOfObjectToObject.ts
|
|
6974
|
+
var convertArrayOfObjectToObject = (arr, label, key) => Object.assign(
|
|
6975
|
+
{},
|
|
6976
|
+
...arr?.map((item) => ({ [item[key]]: item[label] })) || []
|
|
6977
|
+
);
|
|
6978
|
+
var convertArrayOfObjectToObject_default = convertArrayOfObjectToObject;
|
|
6979
|
+
var PricingFieldArray = ({
|
|
6980
|
+
name,
|
|
6981
|
+
defaultCountryValue,
|
|
6982
|
+
defaultCurrencyValue,
|
|
6983
|
+
countries,
|
|
6984
|
+
currencies
|
|
6985
|
+
}) => {
|
|
6986
|
+
const { formatMessage } = useIntl();
|
|
6987
|
+
const { hasRole } = useAuth_default();
|
|
6988
|
+
const { watch, getValues, trigger } = useFormContext();
|
|
6989
|
+
const { fields, append, remove } = useFieldArray({ name });
|
|
6990
|
+
watch(name);
|
|
6991
|
+
const getPricing = () => getValues(name);
|
|
6992
|
+
const revalidateMinQuantities = () => {
|
|
6993
|
+
const names = fields.map((_, i) => `${name}.${i}.minQuantity`);
|
|
6994
|
+
setTimeout(() => trigger(names), 0);
|
|
6995
|
+
};
|
|
6996
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
6997
|
+
fields.map((field, index) => {
|
|
6998
|
+
const minQtyValidators = [
|
|
6999
|
+
validateProductCommerce(index, getPricing),
|
|
7000
|
+
validateProductCommerceOneZero(index, getPricing)
|
|
7001
|
+
];
|
|
7002
|
+
return /* @__PURE__ */ jsxs(
|
|
7003
|
+
"div",
|
|
7004
|
+
{
|
|
7005
|
+
className: "relative max-w-full border-b dark:border-slate-700 pt-1 pb-5 mb-3 align-baseline lg:flex",
|
|
7006
|
+
children: [
|
|
7007
|
+
/* @__PURE__ */ jsxs("div", { className: "flex w-full gap-x-2", children: [
|
|
7008
|
+
/* @__PURE__ */ jsx(
|
|
7009
|
+
TextField_default,
|
|
7010
|
+
{
|
|
7011
|
+
className: "w-full",
|
|
7012
|
+
disabled: !hasRole("manageProducts" /* ManageProducts */),
|
|
7013
|
+
validators: minQtyValidators,
|
|
7014
|
+
name: `${name}.${index}.minQuantity`,
|
|
7015
|
+
id: `${name}.${index}.minQuantity`,
|
|
7016
|
+
type: "number",
|
|
7017
|
+
min: 0,
|
|
7018
|
+
hideLabel: true,
|
|
7019
|
+
onChange: revalidateMinQuantities,
|
|
7020
|
+
label: formatMessage({
|
|
7021
|
+
id: "min_quantity",
|
|
7022
|
+
defaultMessage: "Min Quantity"
|
|
7023
|
+
})
|
|
7024
|
+
}
|
|
7025
|
+
),
|
|
7026
|
+
/* @__PURE__ */ jsx(
|
|
7027
|
+
TextField_default,
|
|
7028
|
+
{
|
|
7029
|
+
type: "number",
|
|
7030
|
+
className: "w-full",
|
|
7031
|
+
disabled: !hasRole("manageProducts" /* ManageProducts */),
|
|
7032
|
+
name: `${name}.${index}.amount`,
|
|
7033
|
+
id: `${name}.${index}.amount`,
|
|
7034
|
+
required: true,
|
|
7035
|
+
hideLabel: true,
|
|
7036
|
+
label: formatMessage({
|
|
7037
|
+
id: "price",
|
|
7038
|
+
defaultMessage: "Price "
|
|
7039
|
+
})
|
|
7040
|
+
}
|
|
7041
|
+
)
|
|
7042
|
+
] }),
|
|
7043
|
+
/* @__PURE__ */ jsxs("div", { className: "flex w-full gap-x-2 pt-3 pb-2", children: [
|
|
7044
|
+
/* @__PURE__ */ jsx("div", { className: "w-full lg:ml-8 lg:items-center", children: /* @__PURE__ */ jsx(
|
|
7045
|
+
CheckboxField_default,
|
|
7046
|
+
{
|
|
7047
|
+
name: `${name}.${index}.isTaxable`,
|
|
7048
|
+
labelClassName: "lg:sr-only items-center ",
|
|
7049
|
+
disabled: !hasRole("manageProducts" /* ManageProducts */),
|
|
7050
|
+
label: formatMessage({
|
|
7051
|
+
id: "vat_suspect",
|
|
7052
|
+
defaultMessage: "Vat Suspect"
|
|
7053
|
+
}),
|
|
7054
|
+
className: "mr-2 h-4 w-4 rounded-sm border-border-default bg-white dark:!bg-slate-900 text-slate-950 focus:ring-focus-ring lg:items-center",
|
|
7055
|
+
type: "checkbox"
|
|
7056
|
+
}
|
|
7057
|
+
) }),
|
|
7058
|
+
/* @__PURE__ */ jsx("div", { className: "w-full lg:ml-8", children: /* @__PURE__ */ jsx(
|
|
7059
|
+
CheckboxField_default,
|
|
7060
|
+
{
|
|
7061
|
+
name: `${name}.${index}.isNetPrice`,
|
|
7062
|
+
labelClassName: "lg:sr-only items-center",
|
|
7063
|
+
disabled: !hasRole("manageProducts" /* ManageProducts */),
|
|
7064
|
+
label: formatMessage({
|
|
7065
|
+
id: "net_price",
|
|
7066
|
+
defaultMessage: "Net Price"
|
|
7067
|
+
}),
|
|
7068
|
+
hideLabel: true,
|
|
7069
|
+
className: "mr-2 h-4 w-4 justify-between rounded-sm border-border-default bg-white dark:!bg-slate-900 text-slate-950 focus:ring-focus-ring lg:items-center",
|
|
7070
|
+
type: "checkbox"
|
|
7071
|
+
}
|
|
7072
|
+
) })
|
|
7073
|
+
] }),
|
|
7074
|
+
/* @__PURE__ */ jsxs("div", { className: "flex w-full gap-x-2 mt-1", children: [
|
|
7075
|
+
/* @__PURE__ */ jsx(
|
|
7076
|
+
SelectField_default,
|
|
7077
|
+
{
|
|
7078
|
+
defaultValue: defaultCountryValue,
|
|
7079
|
+
className: "w-full lg:ml-4 lg:mr-4",
|
|
7080
|
+
label: formatMessage({
|
|
7081
|
+
id: "country",
|
|
7082
|
+
defaultMessage: "Country"
|
|
7083
|
+
}),
|
|
7084
|
+
name: `${name}.${index}.countryCode`,
|
|
7085
|
+
id: `${name}.${index}.countryCode`,
|
|
7086
|
+
disabled: !hasRole("manageProducts" /* ManageProducts */),
|
|
7087
|
+
required: true,
|
|
7088
|
+
options: convertArrayOfObjectToObject_default(
|
|
7089
|
+
countries,
|
|
7090
|
+
"isoCode",
|
|
7091
|
+
"isoCode"
|
|
7092
|
+
),
|
|
7093
|
+
hideLabel: true,
|
|
7094
|
+
onChange: revalidateMinQuantities
|
|
7095
|
+
}
|
|
7096
|
+
),
|
|
7097
|
+
/* @__PURE__ */ jsx(
|
|
7098
|
+
SelectField_default,
|
|
7099
|
+
{
|
|
7100
|
+
defaultValue: defaultCurrencyValue,
|
|
7101
|
+
className: "w-full lg:mr-8 ",
|
|
7102
|
+
label: formatMessage({
|
|
7103
|
+
id: "currency",
|
|
7104
|
+
defaultMessage: "Currency"
|
|
7105
|
+
}),
|
|
7106
|
+
disabled: !hasRole("manageProducts" /* ManageProducts */),
|
|
7107
|
+
name: `${name}.${index}.currencyCode`,
|
|
7108
|
+
id: `${name}.${index}.currencyCode`,
|
|
7109
|
+
required: true,
|
|
7110
|
+
options: convertArrayOfObjectToObject_default(
|
|
7111
|
+
currencies,
|
|
7112
|
+
"isoCode",
|
|
7113
|
+
"isoCode"
|
|
7114
|
+
),
|
|
7115
|
+
hideLabel: true,
|
|
7116
|
+
onChange: revalidateMinQuantities,
|
|
7117
|
+
placeholder: formatMessage({
|
|
7118
|
+
id: "country_currency",
|
|
7119
|
+
defaultMessage: "Currency"
|
|
7120
|
+
})
|
|
7121
|
+
}
|
|
7122
|
+
)
|
|
7123
|
+
] }),
|
|
7124
|
+
hasRole("manageProducts" /* ManageProducts */) && /* @__PURE__ */ jsx("div", { className: "absolute -top-2 right-0 mt-0 mr-0 shrink-0 pb-1 md:mr-0 lg:mt-6 lg:py-0 lg:px-0 ", children: /* @__PURE__ */ jsx(
|
|
7125
|
+
"button",
|
|
7126
|
+
{
|
|
7127
|
+
className: "items-center rounded-full bg-surface-input px-1 py-1 text-sm text-rose-500 dark:text-rose-400 hover:bg-rose-50 focus:outline-hidden focus:ring-0 focus:ring-rose-500 focus:ring-offset-2",
|
|
7128
|
+
type: "button",
|
|
7129
|
+
onClick: () => {
|
|
7130
|
+
remove(index);
|
|
7131
|
+
revalidateMinQuantities();
|
|
7132
|
+
},
|
|
7133
|
+
children: /* @__PURE__ */ jsxs(
|
|
7134
|
+
"svg",
|
|
7135
|
+
{
|
|
7136
|
+
className: "h-4 w-4",
|
|
7137
|
+
viewBox: "0 0 24 24",
|
|
7138
|
+
fill: "none",
|
|
7139
|
+
stroke: "currentColor",
|
|
7140
|
+
strokeWidth: "2",
|
|
7141
|
+
strokeLinecap: "round",
|
|
7142
|
+
strokeLinejoin: "round",
|
|
7143
|
+
children: [
|
|
7144
|
+
/* @__PURE__ */ jsx("polyline", { points: "3 6 5 6 21 6" }),
|
|
7145
|
+
/* @__PURE__ */ jsx("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }),
|
|
7146
|
+
/* @__PURE__ */ jsx("line", { x1: "10", y1: "11", x2: "10", y2: "17" }),
|
|
7147
|
+
/* @__PURE__ */ jsx("line", { x1: "14", y1: "11", x2: "14", y2: "17" })
|
|
7148
|
+
]
|
|
7149
|
+
}
|
|
7150
|
+
)
|
|
7151
|
+
}
|
|
7152
|
+
) })
|
|
7153
|
+
]
|
|
7154
|
+
},
|
|
7155
|
+
field.id
|
|
7156
|
+
);
|
|
7157
|
+
}),
|
|
7158
|
+
hasRole("manageProducts" /* ManageProducts */) && /* @__PURE__ */ jsx("div", { className: "mt-6", children: /* @__PURE__ */ jsx(
|
|
7159
|
+
Button_default,
|
|
7160
|
+
{
|
|
7161
|
+
variant: "tertiary",
|
|
7162
|
+
text: formatMessage({
|
|
7163
|
+
id: "add_price_row",
|
|
7164
|
+
defaultMessage: "Add Price Row"
|
|
7165
|
+
}),
|
|
7166
|
+
className: "w-full items-center justify-center",
|
|
7167
|
+
onClick: () => append({
|
|
7168
|
+
minQuantity: "",
|
|
7169
|
+
amount: null,
|
|
7170
|
+
isTaxable: false,
|
|
7171
|
+
isNetPrice: false,
|
|
7172
|
+
currencyCode: defaultCurrencyValue,
|
|
7173
|
+
countryCode: defaultCountryValue
|
|
7174
|
+
})
|
|
7175
|
+
}
|
|
7176
|
+
) })
|
|
7177
|
+
] });
|
|
7178
|
+
};
|
|
7179
|
+
var PricingFields = ({
|
|
7180
|
+
name = "pricing",
|
|
7181
|
+
defaultCountryValue,
|
|
7182
|
+
defaultCurrencyValue,
|
|
7183
|
+
countries,
|
|
7184
|
+
currencies
|
|
7185
|
+
}) => {
|
|
7186
|
+
const { formatMessage } = useIntl();
|
|
7187
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7188
|
+
/* @__PURE__ */ jsxs("label", { className: "sr-only flex w-full font-sans text-sm text-text-muted lg:not-sr-only", children: [
|
|
7189
|
+
/* @__PURE__ */ jsxs("span", { className: "flex w-full", children: [
|
|
7190
|
+
/* @__PURE__ */ jsx("span", { className: "w-full", children: formatMessage({
|
|
7191
|
+
id: "min_quantity",
|
|
7192
|
+
defaultMessage: "Min Quantity"
|
|
7193
|
+
}) }),
|
|
7194
|
+
/* @__PURE__ */ jsx("span", { className: "w-full lg:ml-5", children: formatMessage({
|
|
7195
|
+
id: "price",
|
|
7196
|
+
defaultMessage: "Price"
|
|
7197
|
+
}) })
|
|
7198
|
+
] }),
|
|
7199
|
+
/* @__PURE__ */ jsxs("span", { className: "flex w-full", children: [
|
|
7200
|
+
/* @__PURE__ */ jsx("span", { className: "w-full lg:ml-8", children: formatMessage({
|
|
7201
|
+
id: "vat_suspect",
|
|
7202
|
+
defaultMessage: "Vat Suspect"
|
|
7203
|
+
}) }),
|
|
7204
|
+
/* @__PURE__ */ jsx("span", { className: "w-full lg:ml-12", children: formatMessage({
|
|
7205
|
+
id: "net_price",
|
|
7206
|
+
defaultMessage: "Net Price"
|
|
7207
|
+
}) })
|
|
7208
|
+
] }),
|
|
7209
|
+
/* @__PURE__ */ jsxs("span", { className: "mr-5 flex w-full", children: [
|
|
7210
|
+
/* @__PURE__ */ jsx("span", { className: "ml-10 w-full", children: formatMessage({
|
|
7211
|
+
id: "country",
|
|
7212
|
+
defaultMessage: "Country"
|
|
7213
|
+
}) }),
|
|
7214
|
+
/* @__PURE__ */ jsx("span", { className: "w-full", children: formatMessage({
|
|
7215
|
+
id: "currency",
|
|
7216
|
+
defaultMessage: "Currency"
|
|
7217
|
+
}) })
|
|
7218
|
+
] })
|
|
7219
|
+
] }),
|
|
7220
|
+
/* @__PURE__ */ jsx(
|
|
7221
|
+
PricingFieldArray,
|
|
7222
|
+
{
|
|
7223
|
+
name,
|
|
7224
|
+
defaultCountryValue,
|
|
7225
|
+
defaultCurrencyValue,
|
|
7226
|
+
countries,
|
|
7227
|
+
currencies
|
|
7228
|
+
}
|
|
7229
|
+
)
|
|
7230
|
+
] });
|
|
7231
|
+
};
|
|
7232
|
+
var PricingFields_default = PricingFields;
|
|
7233
|
+
var normalizeCatalogPrices = (prices = [], currencies = []) => currencies.length ? toPricingFormValues(
|
|
7234
|
+
prices.map(({ country, currency, ...price }) => ({
|
|
7235
|
+
...price,
|
|
7236
|
+
countryCode: country.isoCode,
|
|
7237
|
+
currencyCode: currency.isoCode
|
|
7238
|
+
})),
|
|
7239
|
+
currencies
|
|
7240
|
+
) : [];
|
|
7241
|
+
var CommerceForm = ({ productId, disabled = false }) => {
|
|
7242
|
+
const { formatMessage } = useIntl();
|
|
7243
|
+
const { catalogPrices } = useProductCatalogPrices_default({ productId });
|
|
7244
|
+
const { hasRole } = useAuth_default();
|
|
7245
|
+
const { updateProductCommerce } = useUpdateProductCommerce_default();
|
|
7246
|
+
const { countries } = useCountries_default();
|
|
7247
|
+
const { currencies } = useCurrencies_default();
|
|
7248
|
+
const baseCountry = countries?.find(({ isBase }) => isBase);
|
|
7249
|
+
const defaultCountryValue = baseCountry?.isoCode;
|
|
7250
|
+
const defaultCurrencyValue = baseCountry?.defaultCurrency?.isoCode;
|
|
7251
|
+
const onSubmit = async ({ pricing }) => {
|
|
7252
|
+
await updateProductCommerce({ productId, commerce: { pricing } });
|
|
7253
|
+
return { success: true };
|
|
7254
|
+
};
|
|
7255
|
+
const successMessage = formatMessage({
|
|
7256
|
+
id: "saved",
|
|
7257
|
+
defaultMessage: "Saved"
|
|
7258
|
+
});
|
|
7259
|
+
const normalizedCatalogPrices = normalizeCatalogPrices(
|
|
7260
|
+
catalogPrices,
|
|
7261
|
+
currencies
|
|
7262
|
+
);
|
|
7263
|
+
const form = useForm_default({
|
|
7264
|
+
disabled,
|
|
7265
|
+
submit: onSubmit,
|
|
7266
|
+
successMessage,
|
|
7267
|
+
enableReinitialize: true,
|
|
7268
|
+
initialValues: {
|
|
7269
|
+
pricing: [
|
|
7270
|
+
...normalizedCatalogPrices?.length ? normalizedCatalogPrices : [
|
|
7271
|
+
{
|
|
7272
|
+
minQuantity: "",
|
|
7273
|
+
amount: null,
|
|
7274
|
+
isTaxable: false,
|
|
7275
|
+
isNetPrice: false,
|
|
7276
|
+
currencyCode: defaultCurrencyValue,
|
|
7277
|
+
countryCode: defaultCountryValue
|
|
7278
|
+
}
|
|
7279
|
+
]
|
|
7280
|
+
]
|
|
7281
|
+
}
|
|
7282
|
+
});
|
|
7283
|
+
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("div", { className: "mt-5 md:col-span-3 lg:mt-0", children: [
|
|
7284
|
+
/* @__PURE__ */ jsx(FormWrapper_default, { children: /* @__PURE__ */ jsxs(
|
|
7285
|
+
Form_default,
|
|
7286
|
+
{
|
|
7287
|
+
className: "mt-3 rounded-md",
|
|
7288
|
+
form,
|
|
7289
|
+
disabled: !hasRole("manageProducts" /* ManageProducts */),
|
|
7290
|
+
children: [
|
|
7291
|
+
/* @__PURE__ */ jsxs("div", { className: "relative max-w-full p-3 sm:px-5", children: [
|
|
7292
|
+
/* @__PURE__ */ jsx("div", { className: "max-w-full justify-between align-baseline" }),
|
|
7293
|
+
/* @__PURE__ */ jsx(
|
|
7294
|
+
PricingFields_default,
|
|
7295
|
+
{
|
|
7296
|
+
name: "pricing",
|
|
7297
|
+
defaultCountryValue,
|
|
7298
|
+
defaultCurrencyValue,
|
|
7299
|
+
countries,
|
|
7300
|
+
currencies
|
|
7301
|
+
}
|
|
7302
|
+
)
|
|
7303
|
+
] }),
|
|
7304
|
+
/* @__PURE__ */ jsx(FormErrors_default, { displayFieldErrors: true }),
|
|
7305
|
+
hasRole("manageProducts" /* ManageProducts */) && /* @__PURE__ */ jsx("div", { className: "-mx-6 p-6 bg-surface-subtle text-right", children: /* @__PURE__ */ jsx(
|
|
7306
|
+
SubmitButton_default,
|
|
7307
|
+
{
|
|
7308
|
+
className: "mx-6",
|
|
7309
|
+
label: formatMessage({
|
|
7310
|
+
id: "save",
|
|
7311
|
+
defaultMessage: "Save"
|
|
7312
|
+
})
|
|
7313
|
+
}
|
|
7314
|
+
) })
|
|
7315
|
+
]
|
|
7316
|
+
}
|
|
7317
|
+
) }),
|
|
7318
|
+
/* @__PURE__ */ jsx("p", { className: "mt-6 mb-10 text-sm text-text-muted", children: formatMessage({
|
|
7319
|
+
id: "product_commerce_info",
|
|
7320
|
+
defaultMessage: "Every country and currency needs one price with a min quantity of 0 (or empty), and no two prices may share the same min quantity, currency and country"
|
|
7321
|
+
}) })
|
|
7322
|
+
] }) });
|
|
7323
|
+
};
|
|
7324
|
+
var CommerceForm_default = CommerceForm;
|
|
7325
|
+
|
|
7326
|
+
export { CommerceForm_default as CommerceForm, PricingFields_default as PricingFields, ProductMediaForm_default as ProductMediaForm, ProductTextsForm_default as ProductTextsForm, toPricingFormValues, toPricingInput, useAddProductAssignment_default as useAddProductAssignment, useAddProductMedia_default as useAddProductMedia, useBulkProductOperations_default as useBulkProductOperations, useCreateProduct_default as useCreateProduct, useCreateProductBundleItem_default as useCreateProductBundleItem, useCreateProductVariation_default as useCreateProductVariation, useCreateProductVariationOption_default as useCreateProductVariationOption, useExportToken_default as useExportToken, useMenuPosition, usePrepareProductImport_default as usePrepareProductImport, useProduct_default as useProduct, useProductAssignments_default as useProductAssignments, useProductBundleItems_default as useProductBundleItems, useProductCatalogPrices_default as useProductCatalogPrices, useProductExport, useProductFulfillmentSimulation_default as useProductFulfillmentSimulation, useProductMedia_default as useProductMedia, useProductPlan_default as useProductPlan, useProductPlanConfigurationOptions_default as useProductPlanConfigurationOptions, useProductReviews_default as useProductReviews, useProductSupply_default as useProductSupply, useProductTokenization_default as useProductTokenization, useProductVariationTypes_default as useProductVariationTypes, useProductVariations_default as useProductVariations, useProductWarehousing_default as useProductWarehousing, useProducts_default as useProducts, useProductsCount_default as useProductsCount, usePublishProduct_default as usePublishProduct, useReOrderProductMedia_default as useReOrderProductMedia, useRemoveBundleItem_default as useRemoveBundleItem, useRemoveProduct_default as useRemoveProduct, useRemoveProductAssignment_default as useRemoveProductAssignment, useRemoveProductMedia_default as useRemoveProductMedia, useRemoveProductVariation_default as useRemoveProductVariation, useRemoveProductVariationOption_default as useRemoveProductVariationOption, useScaffoldBundleItem_default as useScaffoldBundleItem, useScaffoldVariationProduct_default as useScaffoldVariationProduct, useSmartContractStandards_default as useSmartContractStandards, useTranslatedProductMediaTexts_default as useTranslatedProductMediaTexts, useTranslatedProductTexts_default as useTranslatedProductTexts, useUnPublishProduct_default as useUnPublishProduct, useUpdateProduct_default as useUpdateProduct, useUpdateProductCommerce_default as useUpdateProductCommerce, useUpdateProductMediaTexts_default as useUpdateProductMediaTexts, useUpdateProductPlan_default as useUpdateProductPlan, useUpdateProductSupply_default as useUpdateProductSupply, useUpdateProductTexts_default as useUpdateProductTexts, useUpdateProductTokenization_default as useUpdateProductTokenization, useUpdateProductVariationTexts_default as useUpdateProductVariationTexts, useUpdateProductWarehousing_default as useUpdateProductWarehousing, useUserTokens_default as useUserTokens };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useUnchainedContext_default } from '../chunk-IAQPLRXZ.js';
|
|
2
|
-
import '../chunk-
|
|
2
|
+
import '../chunk-2HTCKO4E.js';
|
|
3
3
|
import { gql } from '@apollo/client';
|
|
4
4
|
import { useMutation, useQuery } from '@apollo/client/react';
|
|
5
5
|
|
|
@@ -33,6 +33,7 @@ var QuotationDetailFragment = gql`
|
|
|
33
33
|
_id
|
|
34
34
|
isoCode
|
|
35
35
|
isActive
|
|
36
|
+
decimals
|
|
36
37
|
}
|
|
37
38
|
product {
|
|
38
39
|
_id
|
package/dist/modules/token.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TokenFragment_default } from '../chunk-IYKPRAWC.js';
|
|
2
2
|
import { DefaultLimit } from '../chunk-ZUOVKRKC.js';
|
|
3
3
|
import { ProductBriefFragment_default } from '../chunk-EJDZRZSZ.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-2HTCKO4E.js';
|
|
5
5
|
import { gql } from '@apollo/client';
|
|
6
6
|
import { useMutation, useQuery } from '@apollo/client/react';
|
|
7
7
|
|
package/dist/modules/work.js
CHANGED
|
@@ -2,7 +2,7 @@ import { WorkFragment_default } from '../chunk-VYEXPG3M.js';
|
|
|
2
2
|
export { useAddWork_default as useAddWork, useWork_default as useWork } from '../chunk-VYEXPG3M.js';
|
|
3
3
|
import '../chunk-QWQ3WJJN.js';
|
|
4
4
|
import '../chunk-IAQPLRXZ.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-2HTCKO4E.js';
|
|
6
6
|
import { gql } from '@apollo/client';
|
|
7
7
|
import { useQuery, useMutation } from '@apollo/client/react';
|
|
8
8
|
import { useMemo } from 'react';
|
package/dist/plugins.js
CHANGED
package/dist/providers.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { ThemeContext, ThemeWrapper_default as ThemeWrapper } from './chunk-PUI5BIKO.js';
|
|
2
|
-
export { ModalWrapper_default as ModalWrapper } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
2
|
+
export { ModalWrapper_default as ModalWrapper } from './chunk-E6HDJYA6.js';
|
|
3
|
+
import './chunk-NFJE5EJG.js';
|
|
4
|
+
import './chunk-EAVP6XZQ.js';
|
|
5
|
+
import './chunk-CUYIP5XG.js';
|
|
6
6
|
import './chunk-VBO377AY.js';
|
|
7
7
|
import './chunk-54DKBWXV.js';
|
|
8
8
|
import './chunk-J23QSWDL.js';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-2HTCKO4E.js';
|
package/dist/shims/next-head.js
CHANGED