@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
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
self.__BUILD_MANIFEST = {
|
|
2
|
+
"/": [
|
|
3
|
+
"static/chunks/2tq8sqd3-wavo.js"
|
|
4
|
+
],
|
|
5
|
+
"/403": [
|
|
6
|
+
"static/chunks/2zsvxbghbsuz1.js"
|
|
7
|
+
],
|
|
8
|
+
"/404": [
|
|
9
|
+
"static/chunks/1p5lt4tkyouxz.js"
|
|
10
|
+
],
|
|
11
|
+
"/423": [
|
|
12
|
+
"static/chunks/2ege1545af18d.js"
|
|
13
|
+
],
|
|
14
|
+
"/500": [
|
|
15
|
+
"static/chunks/1mx0p6r-9c5u_.js"
|
|
16
|
+
],
|
|
17
|
+
"/_error": [
|
|
18
|
+
"static/chunks/1cz2fp89ssu5d.js"
|
|
19
|
+
],
|
|
20
|
+
"/_offline": [
|
|
21
|
+
"static/chunks/2a9dpzjx5mfjp.js"
|
|
22
|
+
],
|
|
23
|
+
"/account": [
|
|
24
|
+
"static/chunks/34gspkpv7wikw.js"
|
|
25
|
+
],
|
|
26
|
+
"/account/forgot-password": [
|
|
27
|
+
"static/chunks/0ao00r36i0nko.js"
|
|
28
|
+
],
|
|
29
|
+
"/assortments": [
|
|
30
|
+
"static/chunks/0oauw10y-zu7q.js"
|
|
31
|
+
],
|
|
32
|
+
"/assortments/AssortmentDetailPage": [
|
|
33
|
+
"static/chunks/1tej7js0fwv1h.js"
|
|
34
|
+
],
|
|
35
|
+
"/assortments/new": [
|
|
36
|
+
"static/chunks/33v1m9okpss0r.js"
|
|
37
|
+
],
|
|
38
|
+
"/copilot": [
|
|
39
|
+
"static/chunks/0f4mwm9gegsvc.js"
|
|
40
|
+
],
|
|
41
|
+
"/country": [
|
|
42
|
+
"static/chunks/32thgoqghnqfk.js"
|
|
43
|
+
],
|
|
44
|
+
"/country/CountryDetailPage": [
|
|
45
|
+
"static/chunks/2xd_5hafdvicw.js"
|
|
46
|
+
],
|
|
47
|
+
"/country/new": [
|
|
48
|
+
"static/chunks/0wvck3kmtd8h3.js"
|
|
49
|
+
],
|
|
50
|
+
"/currency": [
|
|
51
|
+
"static/chunks/3qt1oiw306jtf.js"
|
|
52
|
+
],
|
|
53
|
+
"/currency/CurrencyDetailPage": [
|
|
54
|
+
"static/chunks/20t2g2u3jhtvy.js"
|
|
55
|
+
],
|
|
56
|
+
"/currency/new": [
|
|
57
|
+
"static/chunks/0ffdde8s4b7e2.js"
|
|
58
|
+
],
|
|
59
|
+
"/delivery-provider": [
|
|
60
|
+
"static/chunks/0rj53mrsrvu49.js"
|
|
61
|
+
],
|
|
62
|
+
"/delivery-provider/DeliveryProviderDetailPage": [
|
|
63
|
+
"static/chunks/3l9ixfzewn8ct.js"
|
|
64
|
+
],
|
|
65
|
+
"/delivery-provider/new": [
|
|
66
|
+
"static/chunks/1t1ecrjkykbv1.js"
|
|
67
|
+
],
|
|
68
|
+
"/enrollments": [
|
|
69
|
+
"static/chunks/195cwzh3q1i0h.js"
|
|
70
|
+
],
|
|
71
|
+
"/enrollments/EnrollmentDetailPage": [
|
|
72
|
+
"static/chunks/0ejd4so6pfsb9.js"
|
|
73
|
+
],
|
|
74
|
+
"/events": [
|
|
75
|
+
"static/chunks/3_u_uxeaysv2y.js"
|
|
76
|
+
],
|
|
77
|
+
"/events/EventDetailPage": [
|
|
78
|
+
"static/chunks/1yvl8l5yx1rj8.js"
|
|
79
|
+
],
|
|
80
|
+
"/exports": [
|
|
81
|
+
"static/chunks/25ite4-jpq_mo.js"
|
|
82
|
+
],
|
|
83
|
+
"/ext/[[...slug]]": [
|
|
84
|
+
"static/chunks/0zlzflyq18hhy.js"
|
|
85
|
+
],
|
|
86
|
+
"/external": [
|
|
87
|
+
"static/chunks/3yktizlgzr6vc.js"
|
|
88
|
+
],
|
|
89
|
+
"/filters": [
|
|
90
|
+
"static/chunks/2ubbeh02scr2l.js"
|
|
91
|
+
],
|
|
92
|
+
"/filters/FilterDetailPage": [
|
|
93
|
+
"static/chunks/231mhpexhdm2g.js"
|
|
94
|
+
],
|
|
95
|
+
"/filters/new": [
|
|
96
|
+
"static/chunks/31i76bjr7wp3u.js"
|
|
97
|
+
],
|
|
98
|
+
"/install": [
|
|
99
|
+
"static/chunks/3s_74oi_rqb7q.js"
|
|
100
|
+
],
|
|
101
|
+
"/language": [
|
|
102
|
+
"static/chunks/1u7l4tos3wysc.js"
|
|
103
|
+
],
|
|
104
|
+
"/language/LanguageDetailPage": [
|
|
105
|
+
"static/chunks/1k1b69hvwr-0g.js"
|
|
106
|
+
],
|
|
107
|
+
"/language/new": [
|
|
108
|
+
"static/chunks/2v_bdu-atp2qq.js"
|
|
109
|
+
],
|
|
110
|
+
"/log-in": [
|
|
111
|
+
"static/chunks/2rri_ex6s-d8g.js"
|
|
112
|
+
],
|
|
113
|
+
"/login-code": [
|
|
114
|
+
"static/chunks/2h4bxz0oww5pk.js"
|
|
115
|
+
],
|
|
116
|
+
"/orders": [
|
|
117
|
+
"static/chunks/08gngcgmdigfl.js"
|
|
118
|
+
],
|
|
119
|
+
"/orders/OrderDetailPage": [
|
|
120
|
+
"static/chunks/08htfpcq8k2ct.js"
|
|
121
|
+
],
|
|
122
|
+
"/payment-provider": [
|
|
123
|
+
"static/chunks/25b_pi2_ro9yy.js"
|
|
124
|
+
],
|
|
125
|
+
"/payment-provider/PaymentProviderDetailPage": [
|
|
126
|
+
"static/chunks/26yarz_db5ms0.js"
|
|
127
|
+
],
|
|
128
|
+
"/payment-provider/new": [
|
|
129
|
+
"static/chunks/0gclli_nyb0px.js"
|
|
130
|
+
],
|
|
131
|
+
"/products": [
|
|
132
|
+
"static/chunks/0lgoprkr2wj68.js"
|
|
133
|
+
],
|
|
134
|
+
"/products/ProductDetailPage": [
|
|
135
|
+
"static/chunks/2gfljy_oo0nnr.js"
|
|
136
|
+
],
|
|
137
|
+
"/products/new": [
|
|
138
|
+
"static/chunks/2dn2ma73q9ye0.js"
|
|
139
|
+
],
|
|
140
|
+
"/quotations": [
|
|
141
|
+
"static/chunks/0az9r1m1m5nw7.js"
|
|
142
|
+
],
|
|
143
|
+
"/quotations/QuotationDetailPage": [
|
|
144
|
+
"static/chunks/0hv62tllrjbgx.js"
|
|
145
|
+
],
|
|
146
|
+
"/reset-password": [
|
|
147
|
+
"static/chunks/2fnn6q9fmhu3s.js"
|
|
148
|
+
],
|
|
149
|
+
"/sign-up": [
|
|
150
|
+
"static/chunks/407elvwrmcfn6.js"
|
|
151
|
+
],
|
|
152
|
+
"/styleguide": [
|
|
153
|
+
"static/chunks/3s5_6nq23zb_5.js"
|
|
154
|
+
],
|
|
155
|
+
"/tokens": [
|
|
156
|
+
"static/chunks/0y-xf7e4lgmru.js"
|
|
157
|
+
],
|
|
158
|
+
"/tokens/TokenDetailPage": [
|
|
159
|
+
"static/chunks/3nrrzhhoy8amt.js"
|
|
160
|
+
],
|
|
161
|
+
"/users": [
|
|
162
|
+
"static/chunks/24zfmgc4cu-n1.js"
|
|
163
|
+
],
|
|
164
|
+
"/users/UserDetailPage": [
|
|
165
|
+
"static/chunks/15ullli2vlj87.js"
|
|
166
|
+
],
|
|
167
|
+
"/users/new": [
|
|
168
|
+
"static/chunks/1l2ix83845lui.js"
|
|
169
|
+
],
|
|
170
|
+
"/verify-email": [
|
|
171
|
+
"static/chunks/04_r4qnsjmy81.js"
|
|
172
|
+
],
|
|
173
|
+
"/warehousing-provider": [
|
|
174
|
+
"static/chunks/2sc6dwzzc2t7n.js"
|
|
175
|
+
],
|
|
176
|
+
"/warehousing-provider/WarehousingProviderDetailPage": [
|
|
177
|
+
"static/chunks/2693w1263bb3s.js"
|
|
178
|
+
],
|
|
179
|
+
"/warehousing-provider/new": [
|
|
180
|
+
"static/chunks/3_tuio1shb_8w.js"
|
|
181
|
+
],
|
|
182
|
+
"/works": [
|
|
183
|
+
"static/chunks/0bahbwxzev843.js"
|
|
184
|
+
],
|
|
185
|
+
"/works/WorkDetailPage": [
|
|
186
|
+
"static/chunks/1qd4fupa708s4.js"
|
|
187
|
+
],
|
|
188
|
+
"/works/WorkQueueListView": [
|
|
189
|
+
"static/chunks/35zhvtyq31ani.js"
|
|
190
|
+
],
|
|
191
|
+
"/works/management": [
|
|
192
|
+
"static/chunks/3-grp4-_b_uin.js"
|
|
193
|
+
],
|
|
194
|
+
"__rewrites": {
|
|
195
|
+
"afterFiles": [],
|
|
196
|
+
"beforeFiles": [],
|
|
197
|
+
"fallback": []
|
|
198
|
+
},
|
|
199
|
+
"sortedPages": [
|
|
200
|
+
"/",
|
|
201
|
+
"/403",
|
|
202
|
+
"/404",
|
|
203
|
+
"/423",
|
|
204
|
+
"/500",
|
|
205
|
+
"/_app",
|
|
206
|
+
"/_error",
|
|
207
|
+
"/_offline",
|
|
208
|
+
"/account",
|
|
209
|
+
"/account/forgot-password",
|
|
210
|
+
"/assortments",
|
|
211
|
+
"/assortments/AssortmentDetailPage",
|
|
212
|
+
"/assortments/new",
|
|
213
|
+
"/copilot",
|
|
214
|
+
"/country",
|
|
215
|
+
"/country/CountryDetailPage",
|
|
216
|
+
"/country/new",
|
|
217
|
+
"/currency",
|
|
218
|
+
"/currency/CurrencyDetailPage",
|
|
219
|
+
"/currency/new",
|
|
220
|
+
"/delivery-provider",
|
|
221
|
+
"/delivery-provider/DeliveryProviderDetailPage",
|
|
222
|
+
"/delivery-provider/new",
|
|
223
|
+
"/enrollments",
|
|
224
|
+
"/enrollments/EnrollmentDetailPage",
|
|
225
|
+
"/events",
|
|
226
|
+
"/events/EventDetailPage",
|
|
227
|
+
"/exports",
|
|
228
|
+
"/ext/[[...slug]]",
|
|
229
|
+
"/external",
|
|
230
|
+
"/filters",
|
|
231
|
+
"/filters/FilterDetailPage",
|
|
232
|
+
"/filters/new",
|
|
233
|
+
"/install",
|
|
234
|
+
"/language",
|
|
235
|
+
"/language/LanguageDetailPage",
|
|
236
|
+
"/language/new",
|
|
237
|
+
"/log-in",
|
|
238
|
+
"/login-code",
|
|
239
|
+
"/orders",
|
|
240
|
+
"/orders/OrderDetailPage",
|
|
241
|
+
"/payment-provider",
|
|
242
|
+
"/payment-provider/PaymentProviderDetailPage",
|
|
243
|
+
"/payment-provider/new",
|
|
244
|
+
"/products",
|
|
245
|
+
"/products/ProductDetailPage",
|
|
246
|
+
"/products/new",
|
|
247
|
+
"/quotations",
|
|
248
|
+
"/quotations/QuotationDetailPage",
|
|
249
|
+
"/reset-password",
|
|
250
|
+
"/sign-up",
|
|
251
|
+
"/styleguide",
|
|
252
|
+
"/tokens",
|
|
253
|
+
"/tokens/TokenDetailPage",
|
|
254
|
+
"/users",
|
|
255
|
+
"/users/UserDetailPage",
|
|
256
|
+
"/users/new",
|
|
257
|
+
"/verify-email",
|
|
258
|
+
"/warehousing-provider",
|
|
259
|
+
"/warehousing-provider/WarehousingProviderDetailPage",
|
|
260
|
+
"/warehousing-provider/new",
|
|
261
|
+
"/works",
|
|
262
|
+
"/works/WorkDetailPage",
|
|
263
|
+
"/works/WorkQueueListView",
|
|
264
|
+
"/works/management"
|
|
265
|
+
]
|
|
266
|
+
};self.__TURBOPACK_PAGE_BOOTSTRAP = {"/403":{"otherChunks":["static/chunks/1gl4h7w9t850f.js"],"runtimeModuleIds":[10783,50899]},"/404":{"otherChunks":["static/chunks/21zghy5-42i1e.js"],"runtimeModuleIds":[10783,38291]},"/423":{"otherChunks":["static/chunks/25vdihxswn7dy.js"],"runtimeModuleIds":[10783,66265]},"/500":{"otherChunks":["static/chunks/1z1mbux-7g74d.js"],"runtimeModuleIds":[10783,78465]},"/_offline":{"otherChunks":["static/chunks/29x7cj-318eaa.js"],"runtimeModuleIds":[10783,64906]},"/exports":{"otherChunks":["static/chunks/177p92k5pdloo.js"],"runtimeModuleIds":[10783,94983]},"/external":{"otherChunks":["static/chunks/3t48n1yk76zoa.js"],"runtimeModuleIds":[10783,7798]},"/":{"otherChunks":["static/chunks/2u2obxhc_n6xk.js","static/chunks/1th8knz7txt9f.js","static/chunks/3uekb_s0jaboj.js"],"runtimeModuleIds":[10783,3050]},"/install":{"otherChunks":["static/chunks/3jfe0uesrzz7a.js","static/chunks/05ghb-a4hshp1.js"],"runtimeModuleIds":[10783,82788]},"/log-in":{"otherChunks":["static/chunks/0pnifxx4n6jz4.js"],"runtimeModuleIds":[10783,96826]},"/login-code":{"otherChunks":["static/chunks/1tzkeg4c-br-z.js"],"runtimeModuleIds":[10783,49796]},"/reset-password":{"otherChunks":["static/chunks/139wqbl161pdw.js"],"runtimeModuleIds":[10783,7345]},"/sign-up":{"otherChunks":["static/chunks/2y8uau15r3p-o.js","static/chunks/05ghb-a4hshp1.js"],"runtimeModuleIds":[10783,64670]},"/styleguide":{"otherChunks":["static/chunks/2a2cayocu5mc3.js","static/chunks/01otzjqxk372n.js","static/chunks/0iohwbogpxe5r.js","static/chunks/1ulje1tawz8fl.js"],"runtimeModuleIds":[10783,5628]},"/verify-email":{"otherChunks":["static/chunks/1e2jykfql801f.js"],"runtimeModuleIds":[10783,43661]},"/works/WorkDetailPage":{"otherChunks":["static/chunks/13sl42_jx13hh.js","static/chunks/12z0--swhgre2.js"],"runtimeModuleIds":[10783,34071]},"/works/WorkQueueListView":{"otherChunks":["static/chunks/3jxeyjg2g7w94.js","static/chunks/1fou9xz0_rm6d.js","static/chunks/0iohwbogpxe5r.js","static/chunks/1ulje1tawz8fl.js"],"runtimeModuleIds":[10783,75761]},"/works":{"otherChunks":["static/chunks/04kydtjv2qqb1.js","static/chunks/2texlu369byon.js","static/chunks/0iohwbogpxe5r.js","static/chunks/1ulje1tawz8fl.js","static/chunks/20p146xfq-xrq.js"],"runtimeModuleIds":[10783,29543]},"/works/management":{"otherChunks":["static/chunks/395bs5xmcnl_3.js","static/chunks/2j4g1tyyp8ta1.js"],"runtimeModuleIds":[10783,95260]},"/warehousing-provider/WarehousingProviderDetailPage":{"otherChunks":["static/chunks/12cy_5m_0fj96.js","static/chunks/40j4nxaeofft-.js"],"runtimeModuleIds":[10783,1581]},"/warehousing-provider":{"otherChunks":["static/chunks/40j4nxaeofft-.js","static/chunks/0o4aj3bm49d_h.js"],"runtimeModuleIds":[10783,73191]},"/warehousing-provider/new":{"otherChunks":["static/chunks/15oodwh44nrve.js"],"runtimeModuleIds":[10783,50411]},"/users/UserDetailPage":{"otherChunks":["static/chunks/36x7q29atus_r.js","static/chunks/039xltalow0bh.js","static/chunks/3ud-crkzgoj7q.js","static/chunks/1v0ag3k96c56s.js","static/chunks/1ossmsdseqyeu.js"],"runtimeModuleIds":[10783,36792]},"/users":{"otherChunks":["static/chunks/249b4cg2ev597.js","static/chunks/03awz8e25u6-9.js","static/chunks/2u6n7ohruqpxp.js","static/chunks/1v0ag3k96c56s.js","static/chunks/33svzh7wrh2ca.js","static/chunks/3ud-crkzgoj7q.js"],"runtimeModuleIds":[10783,21449]},"/users/new":{"otherChunks":["static/chunks/0-kvzk5p0hp-4.js","static/chunks/3ltrxqm61t2um.js"],"runtimeModuleIds":[10783,75186]},"/tokens/TokenDetailPage":{"otherChunks":["static/chunks/19-1z6h5eeq_w.js"],"runtimeModuleIds":[10783,88970]},"/tokens":{"otherChunks":["static/chunks/2ga95n_v_6_7b.js"],"runtimeModuleIds":[10783,44484]},"/quotations/QuotationDetailPage":{"otherChunks":["static/chunks/299pou8yuoq6b.js","static/chunks/36vqjcd_y2j30.js"],"runtimeModuleIds":[10783,23499]},"/quotations":{"otherChunks":["static/chunks/1tuf110jbpl_r.js","static/chunks/08e3-wndual-j.js"],"runtimeModuleIds":[10783,53674]},"/products/ProductDetailPage":{"otherChunks":["static/chunks/0p7said9rdor1.js","static/chunks/2u6n7ohruqpxp.js","static/chunks/19-fs9eq1syvw.js","static/chunks/44xnlcqhabyj6.js","static/chunks/1v0ag3k96c56s.js","static/chunks/3wr9v36meolw7.js","static/chunks/0iohwbogpxe5r.js","static/chunks/1ulje1tawz8fl.js","static/chunks/2zb-xmda5rbn0.js"],"runtimeModuleIds":[10783,34768]},"/products":{"otherChunks":["static/chunks/1pm7k55e4pfpm.js","static/chunks/2u6n7ohruqpxp.js","static/chunks/0iohwbogpxe5r.js","static/chunks/3jp_xvjzuj3ts.js","static/chunks/1v0ag3k96c56s.js","static/chunks/2zb-xmda5rbn0.js","static/chunks/2u9myo1sjc-q0.js","static/chunks/1ulje1tawz8fl.js","static/chunks/3wr9v36meolw7.js"],"runtimeModuleIds":[10783,85741]},"/products/new":{"otherChunks":["static/chunks/2bugi3kot5jtu.js","static/chunks/1kyjdq0bnkw10.js"],"runtimeModuleIds":[10783,85463]},"/payment-provider/PaymentProviderDetailPage":{"otherChunks":["static/chunks/1tosw188dr9d6.js","static/chunks/40j4nxaeofft-.js"],"runtimeModuleIds":[10783,56158]},"/payment-provider":{"otherChunks":["static/chunks/40j4nxaeofft-.js","static/chunks/1kdcu-0jkya-b.js"],"runtimeModuleIds":[10783,33777]},"/payment-provider/new":{"otherChunks":["static/chunks/38043sp-g7lor.js"],"runtimeModuleIds":[10783,68086]},"/orders/OrderDetailPage":{"otherChunks":["static/chunks/1sh2ogc7tcbu-.js","static/chunks/2ym9q2u0yw0m8.js"],"runtimeModuleIds":[10783,32082]},"/orders":{"otherChunks":["static/chunks/1yv22tvuqofr_.js","static/chunks/3skconxcf6r_s.js","static/chunks/0iohwbogpxe5r.js","static/chunks/1ulje1tawz8fl.js"],"runtimeModuleIds":[10783,23591]},"/language/LanguageDetailPage":{"otherChunks":["static/chunks/2apnv1hcv-4zc.js","static/chunks/0389l__ljgq-b.js"],"runtimeModuleIds":[10783,39541]},"/language":{"otherChunks":["static/chunks/3_jqu6hq_bq0s.js","static/chunks/0ik3suboifvvc.js"],"runtimeModuleIds":[10783,77507]},"/language/new":{"otherChunks":["static/chunks/1in8spfokcjsp.js","static/chunks/1pqyz1opm5_7r.js"],"runtimeModuleIds":[10783,13061]},"/filters/FilterDetailPage":{"otherChunks":["static/chunks/3-ve59izq9j-p.js","static/chunks/3ij_85v4doyfu.js","static/chunks/0-nzk-g6k41e-.js","static/chunks/1ulje1tawz8fl.js"],"runtimeModuleIds":[10783,83350]},"/filters":{"otherChunks":["static/chunks/06gqojz2tfk7h.js","static/chunks/3_adkt8r_brx4.js","static/chunks/3ij_85v4doyfu.js","static/chunks/1ulje1tawz8fl.js"],"runtimeModuleIds":[10783,83549]},"/filters/new":{"otherChunks":["static/chunks/393--hagnnm97.js","static/chunks/3i7obrooylax2.js"],"runtimeModuleIds":[10783,49758]},"/ext/[[...slug]]":{"otherChunks":["static/chunks/2ipcn3vy6d4_6.js"],"runtimeModuleIds":[10783,54466]},"/events/EventDetailPage":{"otherChunks":["static/chunks/1rmlm4404fsge.js"],"runtimeModuleIds":[10783,6960]},"/events":{"otherChunks":["static/chunks/2vyv371s8n48m.js","static/chunks/1ulje1tawz8fl.js","static/chunks/0iohwbogpxe5r.js"],"runtimeModuleIds":[10783,72183]},"/enrollments/EnrollmentDetailPage":{"otherChunks":["static/chunks/2l8gepfm4kyjp.js","static/chunks/3xun85a44o067.js","static/chunks/0iohwbogpxe5r.js","static/chunks/1ulje1tawz8fl.js","static/chunks/3jgmo9q79w1-c.js"],"runtimeModuleIds":[10783,20586]},"/enrollments":{"otherChunks":["static/chunks/3xun85a44o067.js","static/chunks/14wav1vmqi2oo.js","static/chunks/0iohwbogpxe5r.js","static/chunks/1ulje1tawz8fl.js"],"runtimeModuleIds":[10783,21002]},"/delivery-provider/DeliveryProviderDetailPage":{"otherChunks":["static/chunks/2gfzt_fdr-h96.js","static/chunks/40j4nxaeofft-.js"],"runtimeModuleIds":[10783,93774]},"/delivery-provider":{"otherChunks":["static/chunks/40j4nxaeofft-.js","static/chunks/449x6nw2kd7l6.js"],"runtimeModuleIds":[10783,89237]},"/delivery-provider/new":{"otherChunks":["static/chunks/3e9x78_cfl4gs.js"],"runtimeModuleIds":[10783,74795]},"/currency/CurrencyDetailPage":{"otherChunks":["static/chunks/0_ppdn6x6ci0v.js","static/chunks/0389l__ljgq-b.js"],"runtimeModuleIds":[10783,14917]},"/currency":{"otherChunks":["static/chunks/2u6n7ohruqpxp.js","static/chunks/42ijceja_327z.js"],"runtimeModuleIds":[10783,58895]},"/currency/new":{"otherChunks":["static/chunks/0s2jvi6_qj0lc.js","static/chunks/1pqyz1opm5_7r.js"],"runtimeModuleIds":[10783,81910]},"/country/CountryDetailPage":{"otherChunks":["static/chunks/3t_520l4ihlg3.js","static/chunks/0389l__ljgq-b.js"],"runtimeModuleIds":[10783,65367]},"/country":{"otherChunks":["static/chunks/2u6n7ohruqpxp.js","static/chunks/0jsbw2npug66o.js"],"runtimeModuleIds":[10783,5955]},"/country/new":{"otherChunks":["static/chunks/1s3ool53utm9o.js","static/chunks/1pqyz1opm5_7r.js"],"runtimeModuleIds":[10783,26458]},"/copilot":{"otherChunks":["static/chunks/0v2f0xq8mp63h.js","static/chunks/3uekb_s0jaboj.js","static/chunks/1v0ag3k96c56s.js","static/chunks/1th8knz7txt9f.js","static/chunks/14jd75j8ij4u2.js"],"runtimeModuleIds":[10783,60166]},"/assortments/AssortmentDetailPage":{"otherChunks":["static/chunks/28oppyg7ev102.js","static/chunks/28xbb7hkhkoup.js","static/chunks/04egfa7kckou_.js","static/chunks/2zb-xmda5rbn0.js","static/chunks/1ulje1tawz8fl.js","static/chunks/2u4cc_r_qo0s4.js","static/chunks/0iohwbogpxe5r.js","static/chunks/1v0ag3k96c56s.js"],"runtimeModuleIds":[10783,11255]},"/assortments":{"otherChunks":["static/chunks/0p55j-ysba0wq.js","static/chunks/2gfot_-pkeohl.js","static/chunks/2u4cc_r_qo0s4.js","static/chunks/1r61kgm2ct0nf.js","static/chunks/3ij_85v4doyfu.js","static/chunks/1v0ag3k96c56s.js","static/chunks/1ulje1tawz8fl.js","static/chunks/3uekb_s0jaboj.js","static/chunks/0iohwbogpxe5r.js","static/chunks/2zb-xmda5rbn0.js","static/chunks/00p6gl0n0kga2.js"],"runtimeModuleIds":[10783,34984]},"/assortments/new":{"otherChunks":["static/chunks/20au-bdji0nu2.js","static/chunks/1pqyz1opm5_7r.js"],"runtimeModuleIds":[10783,92168]},"/account/forgot-password":{"otherChunks":["static/chunks/0mpgc4f7hc1dd.js"],"runtimeModuleIds":[10783,8530]},"/account":{"otherChunks":["static/chunks/2hc3d38gb0q-v.js","static/chunks/039xltalow0bh.js","static/chunks/3ud-crkzgoj7q.js","static/chunks/1v0ag3k96c56s.js","static/chunks/1ossmsdseqyeu.js"],"runtimeModuleIds":[10783,51585]},"/_app":{"otherChunks":["static/chunks/06kqbwwnuu3te.js","static/chunks/440jwge6wnjj6.js","static/chunks/26guwpx1_pkxv.js","static/chunks/0uef4ugmc_g10.js","static/chunks/1sc2ug6_szd_d.js","static/chunks/17g3a6iz0s59f.js","static/chunks/1w6iuc_ba9g-3.js","static/chunks/34wf3lz_fft3k.js","static/chunks/0f0aouv41459l.js","static/chunks/0728622u98g6r.js","static/chunks/3ek1bahoqa_ll.js","static/chunks/1x7cm_fuwp9m8.js","static/chunks/32g5gxee1kcdc.js","static/chunks/2hci18oosfv5d.js","static/chunks/0ftb36h7poyeo.js","static/chunks/2mt78e61hd_4p.js","static/chunks/2_cq751vth7u7.js","static/chunks/3_0q-dmk8few_.css"],"runtimeModuleIds":[10783,92666]},"/_error":{"otherChunks":["static/chunks/1t8jj0-6g8uyd.js"],"runtimeModuleIds":[10783,80184]}};self.__TURBOPACK_CHUNK_LOADING_GLOBAL = "TURBOPACK";self.__BUILD_MANIFEST_CB && self.__BUILD_MANIFEST_CB()
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75186,(e,s,a)=>{let l="/users/new";(window.__NEXT_P=window.__NEXT_P||[]).push([l,()=>e.r(54021)]),s.hot&&s.hot.dispose(function(){window.__NEXT_P.push([l])})},57243,e=>{"use strict";var s=e.i(91398),a=e.i(16984),l=e.i(82226);e.s(["f",0,({validators:e=[],value:i="",...d})=>(0,s.jsx)(a.f,{value:i,autoComplete:d?.autoComplete||"on",name:"email",validators:[...e,l.L],...d})])},54021,e=>{"use strict";var s=e.i(91398),a=e.i(3828);e.i(51523);var l=e.i(19518),i=e.i(3326),d=e.i(98949),r=e.i(69211),t=e.i(16984),n=e.i(10685),m=e.i(97776),c=e.i(57243),o=e.i(56985),u=e.i(35429),f=e.i(63094),x=e.i(82226);let p=({onSubmit:e,onSubmitSuccess:l})=>{let{formatMessage:p}=(0,i.X)(),h=(0,a.useRouter)(),j=p({id:"user_profile_created",defaultMessage:"User profile created successfully!"}),g=(0,d.f)({submit:e,onSubmitSuccess:l,getSubmitErrorMessage:e=>(e?.message?.toLowerCase().includes("email already exists")&&g.api.setFieldError("email",p({id:"email_already_exists_error",defaultMessage:"Email already exists"})),""),successMessage:j,initialValues:{displayName:"",gender:"",birthday:new Date,phoneMobile:"",email:"",password:"",firstName:"",lastName:"",company:"",addressLine:"",addressLine2:"",postalCode:"",regionCode:"",countryCode:"",city:""}}),b=()=>{h.back()};return(0,s.jsx)(r.f,{form:g,className:"max-w-6xl",children:(0,s.jsxs)("div",{className:"space-y-4 overflow-hidden rounded-md lg:grid lg:grid-cols-3",children:[(0,s.jsxs)("div",{className:"flex justify-between pt-5 sm:col-span-1",children:[(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)("h3",{className:"text-lg text-text-primary",children:p({id:"profile",defaultMessage:"Profile"})}),(0,s.jsx)("p",{className:"divide-y divide-slate-200 dark:divide-slate-700 dark:text-slate-400 mr-4",children:p({id:"profile_notice",defaultMessage:"This information will be displayed publicly so be careful what you share."})})]}),(0,s.jsx)("span",{className:"ml-4 flex shrink-0 items-start space-x-4"})]}),(0,s.jsxs)("div",{className:"mt-1 rounded-md border-border-default bg-surface pt-5 shadow-sm dark:shadow-none lg:col-span-2",children:[(0,s.jsxs)("div",{className:"px-6 space-y-4",children:[(0,s.jsx)("div",{children:(0,s.jsx)(c.f,{className:"mt-0 w-full",name:"email",required:!0,label:p({id:"email",defaultMessage:"Email"})})}),(0,s.jsx)("div",{children:(0,s.jsx)(o.f,{className:"mt-0 w-full",name:"password",label:p({id:"password",defaultMessage:"Password"})})}),(0,s.jsx)("div",{children:(0,s.jsx)(t.f,{className:"mt-0 w-full",name:"displayName",label:p({id:"display_name",defaultMessage:"Display name"})})}),(0,s.jsx)("div",{children:(0,s.jsx)(n.f,{className:"mt-0 w-full",label:p({id:"gender",defaultMessage:"Gender"}),name:"gender",options:{M:p({id:"male",defaultMessage:"Male"}),F:p({id:"female",defaultMessage:"Female"})}})}),(0,s.jsx)("div",{children:(0,s.jsx)(m.f,{label:p({id:"birthday",defaultMessage:"Birthday"}),className:"mt-0 w-full",name:"birthday",validators:[x.$]})}),(0,s.jsx)("div",{children:(0,s.jsx)(t.f,{className:"mt-0 w-full",name:"phoneMobile",label:p({id:"mobile_phone",defaultMessage:"Mobile phone"})})})]}),(0,s.jsxs)("div",{className:"border-t-slate-100 border-t border-t-border-subtle bg-surface mt-5 pr-5",children:[(0,s.jsx)(f.f,{}),(0,s.jsx)(u.f,{className:"justify-end",onCancel:b})]})]}),(0,s.jsx)("div",{className:"mb-6 w-full lg:col-span-3"}),(0,s.jsx)("div",{className:"flex justify-between pt-6 lg:col-span-1",children:(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)("h3",{className:"text-lg text-text-primary",children:p({id:"address",defaultMessage:"Address"})}),(0,s.jsx)("p",{className:"divide-y divide-slate-200 dark:divide-slate-700 dark:text-slate-400 mr-4",children:p({id:"address_notice",defaultMessage:"This information will be displayed publicly so be careful what you share."})})]})}),(0,s.jsxs)("div",{className:"rounded-md bg-surface pt-5 mb-5 shadow-sm dark:shadow-none lg:col-span-2",children:[(0,s.jsxs)("div",{className:"px-5 space-y-4",children:[(0,s.jsx)("div",{className:"mt-1 flex text-sm sm:mt-0",children:(0,s.jsxs)("div",{className:"flex w-full",children:[(0,s.jsx)(t.f,{className:"mt-0 w-full",name:"firstName",label:p({id:"first_name",defaultMessage:"First name"})}),(0,s.jsx)(t.f,{className:"ml-2 mt-0 w-full",name:"lastName",label:p({id:"last_Name",defaultMessage:"Last name"})})]})}),(0,s.jsx)("div",{children:(0,s.jsx)(t.f,{className:"mt-0 w-full",name:"company",label:p({id:"company",defaultMessage:"Company"})})}),(0,s.jsx)("div",{children:(0,s.jsx)(t.f,{className:"mt-0 w-full",name:"addressLine",label:p({id:"address_line_1",defaultMessage:"Address line 1 (Street, House no)"})})}),(0,s.jsx)("div",{children:(0,s.jsx)(t.f,{className:"mt-0 w-full",name:"addressLine2",label:p({id:"address_line_2",defaultMessage:"Address line 2"})})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-x-4 sm:grid-cols-2 space-y-4 sm:space-y-0",children:[(0,s.jsx)("div",{children:(0,s.jsx)(t.f,{className:"mt-0 w-full",name:"regionCode",label:p({id:"region_Code",defaultMessage:"Region"})})}),(0,s.jsx)("div",{children:(0,s.jsx)(t.f,{className:"mt-0 w-full",name:"postalCode",label:p({id:"postal_code",defaultMessage:"Postal/ZIP code"})})})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-x-4 sm:grid-cols-2 space-y-4 sm:space-y-0",children:[(0,s.jsx)("div",{children:(0,s.jsx)(t.f,{className:"mt-0 w-full",name:"city",label:p({id:"city",defaultMessage:"City"})})}),(0,s.jsx)("div",{children:(0,s.jsx)(t.f,{className:"mt-0 w-full",name:"countryCode",label:p({id:"country_code",defaultMessage:"Country code"})})})]})]}),(0,s.jsx)("div",{className:"border-t border-border-subtle bg-surface mt-5 pr-5",children:(0,s.jsx)(u.f,{className:"justify-end",onCancel:b})})]})]})})};var h=e.i(50595),j=e.i(25327),g=e.i(58971),b=e.i(59080),w=e.i(76204);let N=b.a`
|
|
2
|
+
mutation EnrollUser(
|
|
3
|
+
$email: String!
|
|
4
|
+
$plainPassword: String
|
|
5
|
+
$profile: UserProfileInput!
|
|
6
|
+
) {
|
|
7
|
+
enrollUser(email: $email, password: $plainPassword, profile: $profile) {
|
|
8
|
+
_id
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
`;e.s(["default",0,()=>{let{formatMessage:e}=(0,i.X)(),{enrollUser:d}=(()=>{let[e,{data:s,error:a,loading:l}]=(0,w.f)(N);return{enrollUser:async({email:s,password:a,profile:l})=>{let i={email:s,profile:l,plainPassword:null};return i.plainPassword=a,e({variables:i,refetchQueries:["Users"]})},newUser:s?.enrollUser,error:a,loading:l}})(),{hasRole:r}=(0,g.f)(),t=(0,a.useRouter)(),n=async e=>{let{phoneMobile:s,birthday:a,gender:l,password:i,email:r,displayName:t}=e,{firstName:n,lastName:m,company:c,addressLine:o,addressLine2:u,postalCode:f,regionCode:x,countryCode:p,city:h}=e;return await d({email:r,password:i,profile:{displayName:t,phoneMobile:s,birthday:a,gender:l,address:{firstName:n,lastName:m,company:c,addressLine:o,addressLine2:u,postalCode:f,regionCode:x,countryCode:p,city:h}}})};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.f,{}),(0,s.jsx)(j.f,{headerText:e({id:"new_user_header",defaultMessage:"New user"})}),(0,s.jsx)("div",{className:"mt-6",children:(0,s.jsx)(p,{onSubmit:n,onSubmitSuccess:(e,{enrollUser:s})=>{r(l.C.ViewUser)&&t.replace(`/users?userId=${s?._id}`)}})})]})}],54021)}]);
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,64481,e=>{"use strict";var t=e.i(91788),i=e.i(30943);e.s(["f",0,({children:e,container:r=null,className:l=""})=>{let s=(0,t.useRef)(null),[a,n]=(0,t.useState)(!1);return((0,t.useEffect)(()=>{let e=document.createElement("div");l&&(e.className=l),s.current=e;let t=r||document.body;return t.appendChild(e),n(!0),()=>{s.current&&t.contains(s.current)&&t.removeChild(s.current)}},[r,l]),a&&s.current)?(0,i.createPortal)(e,s.current):null}])},11056,e=>{"use strict";var t=e.i(91398),i=e.i(91788),r=e.i(5505),l=e.i(57561);e.s(["f",0,({children:e,onlyFull:s=!1})=>{let{languageDialectList:a,selectedLocale:n,setSelectedLocale:o}=(0,l.f)(),d=(0,i.useContext)(r.W),u=a.filter(e=>!s||e.isoCode.includes("-"));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`w-fit mt-5 mb-3 ${d?"ml-5":""}`,children:(0,t.jsx)("select",{id:"locale-wrapper",className:"cursor-pointer rounded-md border-1 border-border-default py-1 pr-8 text-sm lg:py-1 lg:pr-10 text-black dark:text-white dark:bg-slate-800 shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring",value:n||"",onChange:e=>{e.stopPropagation(),o(e.target.value)},children:u?.map(e=>(0,t.jsx)("option",{value:e.isoCode,children:e.isoCode},e._id))})}),(0,t.jsx)("div",{children:i.default.cloneElement(e)})]})}])},3095,e=>{"use strict";var t=e.i(91398),i=e.i(91788),r=e.i(3326),l=e.i(86712),s=e.i(76842),a=e.i(24557),n=e.i(64481);e.s(["f",0,({onEdit:e,onDelete:o,editLabel:d,deleteLabel:u,showEdit:c=!0,showDelete:f=!0})=>{let{formatMessage:p}=(0,r.X)(),[m,x]=(0,i.useState)(!1),[b,v]=(0,i.useState)({top:0,left:0}),g=(0,i.useRef)(null),h=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=e=>{g.current&&!g.current.contains(e.target)&&x(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let y=(e,t)=>{e.stopPropagation(),e.preventDefault(),t&&t(),x(!1)};return 0===[c&&e,f&&o].filter(Boolean).length?null:(0,t.jsxs)("div",{className:"flex justify-end w-full",children:[(0,t.jsx)("button",{ref:h,type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),m||(()=>{if(!h.current)return;let e=h.current.getBoundingClientRect(),t=e.bottom+4,i=e.right-192;i<8&&(i=8),t+80>window.innerHeight-8&&(t=e.top-80-4),v({top:t,left:i})})(),x(!m)},className:"flex items-center justify-center w-8 h-8 rounded-md hover:bg-surface-raised transition-colors","aria-label":p({id:"table_actions_menu",defaultMessage:"Actions menu"}),children:(0,t.jsx)(l.f,{className:"w-5 h-5 text-text-muted"})}),m&&(0,t.jsx)(n.f,{children:(0,t.jsx)("div",{ref:g,className:"fixed w-48 bg-surface rounded-md shadow-xl border border-border-subtle z-[9999]",style:{top:b.top,left:b.left},children:(0,t.jsxs)("div",{className:"py-1",children:[c&&e&&(0,t.jsxs)("button",{type:"button",onClick:t=>y(t,e),className:"flex items-center w-full px-4 py-2 text-sm text-text-secondary hover:bg-surface-raised transition-colors",children:[(0,t.jsx)(s.f,{className:"mr-3 h-5 w-5"}),d||p({id:"edit",defaultMessage:"Edit"})]}),f&&o&&(0,t.jsxs)("button",{type:"button",onClick:e=>y(e,o),className:"flex items-center w-full px-4 py-2 text-sm text-rose-500 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/20 transition-colors",children:[(0,t.jsx)(a.f,{className:"mr-3 h-5 w-5"}),u||p({id:"delete",defaultMessage:"Delete"})]})]})})})]})}])},83147,e=>{"use strict";let t=e=>e&&e?.split(",").reduce((e,t)=>{let[i=null,r=null]=(t||"")?.split("_")||[];return{...e,[i]:r}},null)||{};e.s(["S",0,(...e)=>e.filter(Boolean).join(" "),"R",0,e=>Object.entries(t(e))?.map(([e,t])=>({key:e,value:t})),"D",0,e=>e?.label&&e?.version?`${e.label} ${e.version}`:"","v",0,t,"Q",0,(e,t,i=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"region"}).of(t)} ${i?`(${t})`:""}`}catch{return t}},"j",0,(e,t,i=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"currency"}).of(t)} ${i?`(${t})`:""}`}catch{return t}},"I",0,(e,t,i=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"language"}).of(t)} ${i?`(${t})`:""}`}catch{return t}},"_",0,(e,t,i)=>{let r;return r=i?{...e,[i]:t}:e,Object.keys(r)?.map(e=>[e,r[e]].join("="))?.join("&")},"d",0,()=>({formatPrice:e=>{if(!e?.currencyCode)return"n/a";if(e?.amount===void 0||e?.amount===null)return"";let{amount:t,currencyCode:i}=e||{};return new Intl.NumberFormat(navigator.language,{style:"currency",currency:i}).format(t/100)}})])},19759,78495,e=>{"use strict";var t=e.i(91398),i=e.i(3326),r=e.i(25705),l=e.i(27572),s=e.i(76929);e.i(51523);var a=e.i(19518),n=e.i(28401),o=e.i(92276),d=e.i(56779),u=e.i(91788),c=e.i(69211),f=e.i(21128),p=e.i(16984),m=e.i(98949),x=e.i(59080),b=e.i(76204);let v=x.a`
|
|
2
|
+
fragment FilterTextsFragment on FilterTexts {
|
|
3
|
+
_id
|
|
4
|
+
locale
|
|
5
|
+
title
|
|
6
|
+
subtitle
|
|
7
|
+
}
|
|
8
|
+
`,g=x.a`
|
|
9
|
+
mutation UpdateFilterTexts(
|
|
10
|
+
$filterId: ID!
|
|
11
|
+
$filterOptionValue: String
|
|
12
|
+
$texts: [FilterTextInput!]!
|
|
13
|
+
) {
|
|
14
|
+
updateFilterTexts(
|
|
15
|
+
filterId: $filterId
|
|
16
|
+
filterOptionValue: $filterOptionValue
|
|
17
|
+
texts: $texts
|
|
18
|
+
) {
|
|
19
|
+
...FilterTextsFragment
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
${v}
|
|
23
|
+
`,h=()=>{let[e]=(0,b.f)(g);return{updateFilterTexts:async({filterId:t,filterOptionValue:i,texts:r})=>e({variables:{filterOptionValue:i,filterId:t,texts:r},refetchQueries:["TranslatedFilterTexts","FilterOptions"]})}};var y=e.i(32171);let j=x.a`
|
|
24
|
+
query TranslatedFilterTexts($filterId: ID!, $filterOptionValue: String) {
|
|
25
|
+
translatedFilterTexts(
|
|
26
|
+
filterId: $filterId
|
|
27
|
+
filterOptionValue: $filterOptionValue
|
|
28
|
+
) {
|
|
29
|
+
...FilterTextsFragment
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
${v}
|
|
33
|
+
`;var w=e.i(60195),O=e.i(58971),I=e.i(5505),k=e.i(57561);let F=({filterId:e})=>{let{formatMessage:r}=(0,i.X)(),{selectedLocale:l}=(0,k.f)(),{translatedFilterTexts:s,loading:n}=(({filterId:e=null,filterOptionValue:t=null})=>{let{data:i,loading:r,error:l}=(0,y.f)(j,{variables:{filterId:e,filterOptionValue:t}});return{translatedFilterTexts:i?.translatedFilterTexts||[],loading:r,error:l}})({filterId:e}),{hasRole:o}=(0,O.f)(),d=r({id:"saved",defaultMessage:"Saved"}),{updateFilterTexts:x}=h(),b=async({title:t,subtitle:i})=>(await x({filterId:e,texts:[{locale:l,title:t,subtitle:i}]}),{success:!0}),v=(0,m.f)({submit:b,successMessage:d,initialValues:{title:"",subtitle:"",...!n&&s?.find(e=>e.locale===l)||{}}});return(0,u.useEffect)(()=>{let e=s?.find(e=>e.locale===l);v.api.setValues({title:"",subtitle:"",...e||{}})},[s,l]),(0,t.jsx)(w.f,{documentationLabel:r({id:"text",defaultMessage:"Text"}),documentation:(0,t.jsx)(i.L,{id:"filter_text_form_description",defaultMessage:"<ul> <li>You can change the language of filter using the dropdown found at top left corner</li>\n </ul>",values:{ul:e=>(0,t.jsxs)("ul",{className:"space-y-1",children:[e," "]}),li:e=>(0,t.jsxs)("li",{children:[e," "]})}}),children:(0,t.jsx)(I.U,{children:(0,t.jsxs)(c.f,{form:v,className:"border-border-default pt-2 lg:shadow-sm",children:[(0,t.jsx)("div",{children:(0,t.jsx)(p.f,{name:"title",id:"title",disabled:!o(a.C.ManageFilters),label:r({id:"title",defaultMessage:"Title"}),autoComplete:"on",className:"mt-2 px-4 text-sm"})}),(0,t.jsx)("div",{children:(0,t.jsx)(p.f,{name:"subtitle",id:"subtitle",disabled:!o(a.C.ManageFilters),label:r({id:"subtitle",defaultMessage:"Subtitle"}),autoComplete:"on",className:"mt-5 px-4 text-sm"})}),o(a.C.ManageFilters)&&(0,t.jsx)("div",{className:"flex bg-slate-100 dark:bg-slate-900 mt-5",children:(0,t.jsx)(f.f,{label:r({id:"update_filter",defaultMessage:"Update filter"}),className:"my-4 ml-auto mr-4"})})]})})})};var S=e.i(6607);let M=x.a`
|
|
34
|
+
mutation CreateFilterOption(
|
|
35
|
+
$filterId: ID!
|
|
36
|
+
$option: String!
|
|
37
|
+
$texts: [FilterTextInput!]
|
|
38
|
+
) {
|
|
39
|
+
createFilterOption(filterId: $filterId, option: $option, texts: $texts) {
|
|
40
|
+
_id
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`,C=x.a`
|
|
44
|
+
fragment FilterOptionFragment on FilterOption {
|
|
45
|
+
_id
|
|
46
|
+
texts(forceLocale: $forceLocale) {
|
|
47
|
+
_id
|
|
48
|
+
title
|
|
49
|
+
subtitle
|
|
50
|
+
locale
|
|
51
|
+
}
|
|
52
|
+
value
|
|
53
|
+
}
|
|
54
|
+
`,N=x.a`
|
|
55
|
+
query FilterOptions($filterId: ID, $forceLocale: Locale) {
|
|
56
|
+
filter(filterId: $filterId) {
|
|
57
|
+
_id
|
|
58
|
+
options {
|
|
59
|
+
...FilterOptionFragment
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
${C}
|
|
64
|
+
`,E=({onCancel:e,onSubmit:r})=>{let{formatMessage:l}=(0,i.X)(),{hasRole:s}=(0,O.f)(),a=l({id:"filter_option_added_success",defaultMessage:"Filter option added successfully"}),n=(0,m.f)({submit:r,successMessage:a,initialValues:{title:"",value:""}});return(0,t.jsxs)(c.f,{form:n,children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(p.f,{name:"value",label:l({id:"filter_option_value",defaultMessage:"Value"}),required:!0}),(0,t.jsx)(p.f,{name:"title",label:l({id:"filter_option_title",defaultMessage:"Title"}),required:!0})]}),(0,t.jsxs)("div",{className:"mt-5 flex justify-end",children:[(0,t.jsx)("button",{onClick:e,type:"button",className:"mr-2 rounded-md border border-border-subtle bg-surface px-3 py-1 text-sm font-medium leading-5 text-slate-700 dark:text-slate-500 shadow-xs",children:l({id:"cancel",defaultMessage:"Cancel"})}),(0,t.jsx)("span",{className:"flex items-center",children:(0,t.jsx)(f.f,{className:"m-auto w-full",label:l({id:"add_filter_option",defaultMessage:"Add option"})})})]})]})},_=x.a`
|
|
65
|
+
mutation RemoveFilterOption($filterId: ID!, $filterOptionValue: String!) {
|
|
66
|
+
removeFilterOption(
|
|
67
|
+
filterId: $filterId
|
|
68
|
+
filterOptionValue: $filterOptionValue
|
|
69
|
+
) {
|
|
70
|
+
_id
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
`;var T=e.i(15971),R=e.i(42469),D=e.i(3095),L=e.i(21623);let $=({filterId:e,option:r,onDelete:l})=>{let{formatMessage:s}=(0,i.X)(),[a,n]=(0,u.useState)(!1),{selectedLocale:o}=(0,k.f)(),d=s({id:"saved",defaultMessage:"Saved"}),{updateFilterTexts:f}=h(),x=async({title:t,value:i,subtitle:r})=>(await f({filterId:e,filterOptionValue:i,texts:[{locale:o,title:t,subtitle:r}]}),n(!1),{success:!0}),b=(0,m.f)({submit:x,successMessage:d,initialValues:{title:"",subtitle:"",...r,...r?.texts}});return(0,t.jsx)(c.f,{form:b,children:(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("li",{className:"py-2 px-2",children:(0,t.jsxs)("div",{className:"flex justify-between items-center gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center flex-wrap gap-3",children:[(0,t.jsx)(R.f,{text:r?.value,color:"slate",square:!0,className:"break-all"}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,t.jsx)("div",{className:"truncate text-sm text-text-primary",children:a?(0,t.jsx)(p.f,{name:"title",required:!0,label:s({id:"title",defaultMessage:"Title"})}):r?.texts?.title}),(0,t.jsx)("div",{className:"truncate text-sm text-text-muted",children:a?(0,t.jsx)(p.f,{name:"subtitle",label:s({id:"subtitle",defaultMessage:"Subtitle"})}):r?.texts?.subtitle&&r?.texts?.subtitle})]})]}),(0,t.jsx)("div",{children:a?(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(L.f,{variant:"secondary",onClick:()=>n(!a),text:s({id:"cancel",defaultMessage:"Cancel"})}),(0,t.jsx)(L.f,{variant:"primary",disabled:!b.api.isValid,onClick:b.api.handleSubmit,text:s({id:"save",defaultMessage:"Save"})})]}):(0,t.jsx)(D.f,{onEdit:()=>{n(!a)},onDelete:()=>{l(r?.value)},showEdit:!0,showDelete:!0})})]})})})})},P=({filterId:e,options:r})=>{let{formatMessage:l}=(0,i.X)(),{setModal:s}=(0,S.f)(),{selectedLocale:a}=(0,k.f)(),{removeFilterOption:o}=(()=>{let[e]=(0,b.f)(_);return{removeFilterOption:async({filterId:t,filterOptionValue:i})=>e({variables:{filterOptionValue:i,filterId:t},refetchQueries:["FilterOptions"]})}})(),d=async i=>{await s((0,t.jsx)(T.f,{onCancelClick:async()=>s(""),message:l({id:"delete_filter_option_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this filter option? "}),onOkClick:async()=>{s(""),await o({filterId:e,filterOptionValue:i}),n.toast.success(l({id:"filter_deleted",defaultMessage:"Filter deleted successfully"}))},okText:l({id:"delete_filter_option",defaultMessage:"Delete option"})}))};return(0,t.jsx)("div",{children:(0,t.jsx)("ul",{className:"-my-5 divide-y divide-slate-200 dark:divide-slate-700 pb-3 ",children:r.map(i=>(0,t.jsx)($,{filterId:e,option:i,onDelete:d},`${i._id}${a}`))})})},A=({filterId:e})=>{let{formatMessage:r}=(0,i.X)(),{selectedLocale:l}=(0,k.f)(),{filterOptions:s}=(({filterId:e=null,locale:t}={})=>{let{data:i,loading:r,error:l}=(0,y.f)(N,{skip:!e,variables:{filterId:e,forceLocale:t}});return{filterOptions:i?.filter?.options||[],loading:r,error:l}})({filterId:e,locale:l}),{setModal:n}=(0,S.f)(),{createFilterOption:o}=(()=>{let[e]=(0,b.f)(M);return{createFilterOption:async({filterId:t,option:i,texts:r})=>e({variables:{filterId:t,option:i,texts:r},refetchQueries:["FilterOptions"]})}})(),{hasRole:d}=(0,O.f)(),u=async({value:t,title:i,subtitle:r})=>(await o({filterId:e,option:t,texts:[{title:i,locale:l,subtitle:r}]}),n(""),{success:!0});return(0,t.jsx)(w.f,{documentationLabel:r({id:"filer_options",defaultMessage:"Filter options"}),sideComponents:d(a.C.ManageFilters)?(0,t.jsx)("button",{type:"button",onClick:()=>n((0,t.jsx)(E,{onSubmit:u,onCancel:()=>n("")})),className:"fixed top-0 right-0 z-10 mb-5 mt-5 mr-2 h-9 rounded-md border border-transparent bg-accent px-3 py-1 text-sm font-medium leading-5 text-text-on-accent shadow-xs hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-focus-ring sm:fixed sm:top-auto sm:right-auto",children:r({id:"add_filter_option",defaultMessage:"Add option"})}):null,children:(0,t.jsx)("div",{className:"mt-8 w-full border-border-default p-3 sm:mt-0 shadow-md bg-surface-input",children:(0,t.jsx)(P,{filterId:e,options:s})})})},V=({filterKey:e,filterType:r})=>{let{formatMessage:l}=(0,i.X)();return(0,t.jsxs)("div",{className:"mt-5 flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"text-sm",children:l({id:"key",defaultMessage:"Key"})}),(0,t.jsx)("div",{className:"rounded-md border-1 border-slate-200 dark:border-slate-600 bg-surface-raised py-1 px-2 text-sm text-text-secondary",children:e})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"text-sm",children:l({id:"filter_type",defaultMessage:"Filter Type"})}),(0,t.jsx)("div",{className:"rounded-md border-1 border-slate-200 dark:border-slate-600 bg-surface-raised py-1 px-2 text-sm text-text-secondary",children:r})]})]})};var B=e.i(80294);let z=x.a`
|
|
74
|
+
mutation UpdateFilter($filter: UpdateFilterInput!, $filterId: ID!) {
|
|
75
|
+
updateFilter(filter: $filter, filterId: $filterId) {
|
|
76
|
+
...FilterFragment
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
${B.f}
|
|
80
|
+
`;var Q=e.i(31494),U=e.i(11056),Z=e.i(13534),X=e.i(70475);let q=({selectedView:e,id:i,...r})=>{if("text"===e)return(0,t.jsx)(U.f,{children:(0,t.jsx)(F,{filterId:i})});if("options"===e)return(0,t.jsx)(U.f,{children:(0,t.jsx)(A,{filterId:i})});if("extended"===e)return(0,t.jsx)(Q.f,{data:r});if(e?.startsWith("plugin:")){let r=e.replace("plugin:","");return(0,t.jsx)(X.f,{slot:"filter:tabs",entityId:i,children:(e,l)=>l.component===r?(0,t.jsx)(e,{entityId:i}):null})}return(0,t.jsx)(U.f,{children:(0,t.jsx)(F,{filterId:i})})};e.s(["f",0,({filter:e,extendedData:u})=>{let{_id:c,isActive:f,key:p,type:m,created:x,updated:v}=e||{},{formatMessage:g,formatDate:h}=(0,i.X)(),{updateFilter:y}=(()=>{let[e]=(0,b.f)(z);return{updateFilter:async({filterId:t,filter:i})=>e({variables:{filter:i,filterId:t}})}})(),{hasRole:j}=(0,O.f)(),{getSlotPlugins:w}=(0,Z.L)(),I=[{id:"text",title:g({id:"text",defaultMessage:"Text"}),Icon:(0,t.jsx)(r.f,{className:"h-5 w-5"})},{id:"options",title:g({id:"options",defaultMessage:"Options"}),Icon:(0,t.jsx)(l.f,{className:"h-5 w-5"})},null!==u&&{id:"extended",title:g({id:"extended-fields",defaultMessage:"Extended"}),Icon:(0,t.jsx)(s.f,{className:"h-5 w-5"})},...w("filter:tabs").map(({config:e})=>({id:`plugin:${e.component}`,title:e.label,Icon:(0,t.jsx)(s.f,{className:"h-5 w-5"})}))].filter(Boolean),k=[{id:"activate",title:g({id:"activate",defaultMessage:"Activate"}),selectedTitle:g({id:"active",defaultMessage:"Active"}),onClick:async()=>{await y({filterId:c,filter:{isActive:!0}}),n.toast.success(g({id:"filter_activated",defaultMessage:"Filter activated!",description:"shown on successful toggle of filter status"}))},current:f,disable:!j(a.C.ManageFilters),bgColor:"green"},{id:"deactivate",title:g({id:"deactivate",defaultMessage:"Deactivate"}),onClick:async()=>{await y({filterId:c,filter:{isActive:!1}}),n.toast.success(g({id:"filter_deactivated",defaultMessage:"Filter deactivated!",description:"shown on successful toggle of filter status"}))},selectedTitle:g({id:"deactivated",defaultMessage:"Deactivated"}),current:!f,disable:!j(a.C.ManageFilters),bgColor:"slate"}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("div",{children:(0,t.jsx)(V,{filterKey:p,filterType:m})}),(0,t.jsx)("div",{className:"self-end",children:(0,t.jsx)(o.f,{options:k,type:g({id:"filter",defaultMessage:"Filter"})})})]}),(0,t.jsx)(d.f,{tabItems:I,defaultTab:"text",children:(0,t.jsx)(q,{id:e?._id,...u})})]})}],19759);var K=e.i(70693);e.s(["f",0,({filterId:e=null}={})=>{let{customProperties:t,hydrateFragment:i}=(0,K.f)(),{data:r,loading:l,error:s}=(0,y.f)(((e="")=>x.a`
|
|
81
|
+
query Filter($filterId: ID) {
|
|
82
|
+
filter(filterId: $filterId) {
|
|
83
|
+
...FilterFragment
|
|
84
|
+
${e}
|
|
85
|
+
texts {
|
|
86
|
+
_id
|
|
87
|
+
title
|
|
88
|
+
subtitle
|
|
89
|
+
locale
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
${B.f}
|
|
94
|
+
`)(t?.Filter),{skip:!e,variables:{filterId:e}}),a=r?.filter,n=i(t?.Filter,a);return{filter:a,loading:l,error:s,extendedData:n}}],78495)},80294,e=>{"use strict";var t=e.i(59080);let i=t.a`
|
|
95
|
+
fragment FilterFragment on Filter {
|
|
96
|
+
_id
|
|
97
|
+
updated
|
|
98
|
+
created
|
|
99
|
+
key
|
|
100
|
+
isActive
|
|
101
|
+
type
|
|
102
|
+
options {
|
|
103
|
+
_id
|
|
104
|
+
texts {
|
|
105
|
+
_id
|
|
106
|
+
title
|
|
107
|
+
subtitle
|
|
108
|
+
locale
|
|
109
|
+
}
|
|
110
|
+
value
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
`;e.s(["f",0,i])},50259,e=>{"use strict";var t=e.i(59080),i=e.i(76204);let r=t.a`
|
|
114
|
+
mutation RemoveFilter($filterId: ID!) {
|
|
115
|
+
removeFilter(filterId: $filterId) {
|
|
116
|
+
_id
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
`;e.s(["f",0,()=>{let[e]=(0,i.f)(r);return{removeFilter:async({filterId:t})=>e({variables:{filterId:t},refetchQueries:["Filters"]})}}])},15971,e=>{"use strict";var t=e.i(91398),i=e.i(3326);e.s(["f",0,({onOkClick:e,onCancelClick:r,okText:l=null,cancelText:s=null,headerText:a=null,message:n=null,icon:o=null,close:d=null,loading:u=!1})=>{let{formatMessage:c}=(0,i.X)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sm:flex sm:items-start",children:[o||(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900/30 sm:mx-0 sm:h-10 sm:w-10",children:(0,t.jsx)("svg",{className:"h-6 w-6 text-danger",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,t.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,t.jsx)("h3",{className:"text-lg text-text-primary",id:"modal-title",children:a||c({id:"warning",defaultMessage:"Warning!"})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("p",{className:"text-sm text-text-muted",children:n||c({id:"are_you_sure",defaultMessage:"Are you sure?"})})})]})]}),(0,t.jsxs)("div",{className:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse",children:[(0,t.jsx)("button",{id:"danger_continue",onClick:e,disabled:u,"aria-busy":u,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-rose-600 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-rose-700 focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:ml-3 sm:w-auto sm:text-sm",children:l||c({id:"continue",defaultMessage:"Continue"})}),(0,t.jsx)("button",{id:"danger_cancel",onClick:r||d,disabled:u,type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-border-default bg-surface px-4 py-2 text-base 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 disabled:cursor-not-allowed disabled:opacity-50 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",children:s||c({id:"cancel",defaultMessage:"Cancel"})})]})]})}])},6607,e=>{"use strict";var t=e.i(91788),i=e.i(6444);e.s(["f",0,()=>(0,t.useContext)(i.f)])},89142,e=>{"use strict";var t=e.i(91398),i=e.i(3828);e.i(51523);var r=e.i(19518),l=e.i(3326),s=e.i(28401),a=e.i(58971),n=e.i(50595),o=e.i(21623),d=e.i(24608),u=e.i(53576),c=e.i(25327),f=e.i(19759),p=e.i(78495),m=e.i(50259),x=e.i(15971),b=e.i(6607);e.s(["default",0,({filterId:e})=>{let{formatMessage:v}=(0,l.X)(),{setModal:g}=(0,b.f)(),h=(0,i.useRouter)(),{filter:y,loading:j,extendedData:w}=(0,p.f)({filterId:e}),{hasRole:O}=(0,a.f)(),{removeFilter:I}=(0,m.f)(),k=async()=>{await g((0,t.jsx)(x.f,{onCancelClick:async()=>g(""),message:v({id:"delete_filter_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this filter? "}),onOkClick:async()=>{g(""),await I({filterId:e}),s.toast.success(v({id:"filter_deleted",defaultMessage:"Filter deleted successfully"})),h.push("/filters")},okText:v({id:"delete_filter",defaultMessage:"Delete filter"})}))};return y||j?j?(0,t.jsx)(u.f,{variant:"detail"}):(0,t.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,t.jsx)(n.f,{currentPageTitle:y?.key}),(0,t.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,t.jsx)(c.f,{headerText:v({id:"filter_detail",defaultMessage:"Filter Detail"}),title:v({id:"filter_detail_title",defaultMessage:"Filter {id}"},{id:y?._id})}),O(r.C.ManageFilters)&&(0,t.jsx)(o.f,{variant:"danger",icon:(0,t.jsx)(d.f,{className:"h-5 w-5"}),text:"Delete",onClick:k})]}),(0,t.jsx)(f.f,{filter:y,extendedData:w})]}):(h.push("/404"),null)}])},27572,e=>{"use strict";var t=e.i(91788);let i=t.forwardRef(function({title:e,titleId:i,...r},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":i},r),e?t.createElement("title",{id:i},e):null,t.createElement("path",{fillRule:"evenodd",d:"M15.988 3.012A2.25 2.25 0 0 1 18 5.25v6.5A2.25 2.25 0 0 1 15.75 14H13.5V7A2.5 2.5 0 0 0 11 4.5H8.128a2.252 2.252 0 0 1 1.884-1.488A2.25 2.25 0 0 1 12.25 1h1.5a2.25 2.25 0 0 1 2.238 2.012ZM11.5 3.25a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 .75.75v.25h-3v-.25Z",clipRule:"evenodd"}),t.createElement("path",{fillRule:"evenodd",d:"M2 7a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7Zm2 3.25a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Zm0 3.5a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"}))});e.s(["f",0,i],27572)},25705,92276,e=>{"use strict";let t,i,r,l;var s=e.i(91788);let a=s.forwardRef(function({title:e,titleId:t,...i},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},i),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M4.5 2A1.5 1.5 0 0 0 3 3.5v13A1.5 1.5 0 0 0 4.5 18h11a1.5 1.5 0 0 0 1.5-1.5V7.621a1.5 1.5 0 0 0-.44-1.06l-4.12-4.122A1.5 1.5 0 0 0 11.378 2H4.5Zm2.25 8.5a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Zm0 3a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Z",clipRule:"evenodd"}))});e.s(["f",0,a],25705);var n=e.i(91398),o=e.i(86567),d=e.i(45229),u=e.i(30943),c=e.i(72016),f=e.i(59146),p=e.i(29672),m=e.i(60374),x=e.i(26171),b=e.i(80150),v=e.i(93481),g=e.i(71147),h=e.i(73483),y=e.i(64728),j=e.i(15067),w=e.i(68327),O=e.i(87264),I=e.i(76925),k=e.i(41888),F=e.i(99030),S=e.i(4067),M=e.i(8404),C=e.i(56833),N=e.i(55367);let E=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function _(e){var t,i;let r=null!=(t=e.innerText)?t:"",l=e.cloneNode(!0);if(!N.F(l))return r;let s=!1;for(let e of l.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),s=!0;let a=s?null!=(i=l.innerText)?i:"":r;return E.test(a)&&(a=a.replace(E,"")),a}var T=e.i(98294),R=e.i(80281),D=e.i(60360),L=e.i(15503),$=e.i(28708),P=e.i(48714),A=e.i(96061),V=e.i(96694),B=e.i(31774),z=e.i(59778),Q=e.i(87706),U=e.i(60004),Z=e.i(65383),X=e.i(47105),q=e.i(26417),K=e.i(80795),W=e.i(74664),H=e.i(72381),G=e.i(78270),J=e.i(9769),Y=e.i(62750),ee=e.i(14929),et=e.i(61614),ei=Object.defineProperty,er=(e,t,i)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?ei(e,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[r]=i,i},el=((t=el||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),es=((i=es||{})[i.Single=0]="Single",i[i.Multi=1]="Multi",i),ea=((r=ea||{})[r.Pointer=0]="Pointer",r[r.Other=1]="Other",r),en=((l=en||{})[l.OpenListbox=0]="OpenListbox",l[l.CloseListbox=1]="CloseListbox",l[l.GoToOption=2]="GoToOption",l[l.Search=3]="Search",l[l.ClearSearch=4]="ClearSearch",l[l.SelectOption=5]="SelectOption",l[l.RegisterOptions=6]="RegisterOptions",l[l.UnregisterOptions=7]="UnregisterOptions",l[l.SetButtonElement=8]="SetButtonElement",l[l.SetOptionsElement=9]="SetOptionsElement",l[l.SortOptions=10]="SortOptions",l[l.MarkButtonAsMoved=11]="MarkButtonAsMoved",l);function eo(e,t=e=>e){let i=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,Z.T)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),l=i?r.indexOf(i):null;return -1===l&&(l=null),{options:r,activeOptionIndex:l}}let ed={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?et.L.Tracked((0,et.Q)(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:Q.b.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:t}},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let i=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,l=e.options.findIndex(e=>r(e.dataRef.current.value));return -1!==l&&(i=l),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:i,__demoMode:!1,buttonPositionState:et.L.Idle}},2(e,t){var i,r,l,s,a;if(e.dataRef.current.disabled||1===e.listboxState)return e;let n={...e,searchQuery:"",activationTrigger:null!=(i=t.trigger)?i:1,__demoMode:!1};if(t.focus===Q.b.Nothing)return{...n,activeOptionIndex:null};if(t.focus===Q.b.Specific)return{...n,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===Q.b.Previous){let i=e.activeOptionIndex;if(null!==i){let s=e.options[i].dataRef.current.domRef,a=(0,Q.j)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.options[a].dataRef.current.domRef;if((null==(r=s.current)?void 0:r.previousElementSibling)===t.current||(null==(l=t.current)?void 0:l.previousElementSibling)===null)return{...n,activeOptionIndex:a}}}}else if(t.focus===Q.b.Next){let i=e.activeOptionIndex;if(null!==i){let r=e.options[i].dataRef.current.domRef,l=(0,Q.j)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==l){let t=e.options[l].dataRef.current.domRef;if((null==(s=r.current)?void 0:s.nextElementSibling)===t.current||(null==(a=t.current)?void 0:a.nextElementSibling)===null)return{...n,activeOptionIndex:l}}}}let o=eo(e),d=(0,Q.j)(t,{resolveItems:()=>o.options,resolveActiveIndex:()=>o.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...n,...o,activeOptionIndex:d}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let i=+(""===e.searchQuery),r=e.searchQuery+t.value.toLowerCase(),l=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+i).concat(e.options.slice(0,e.activeOptionIndex+i)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))}),s=l?e.options.indexOf(l):-1;return -1===s||s===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:s,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:e=>0===e.dataRef.current.mode?{...e,frozenValue:!0}:{...e},6:(e,t)=>{let i=e.options.concat(t.options),r=e.activeOptionIndex;if(e.pendingFocus.focus!==Q.b.Nothing&&(r=(0,Q.j)(e.pendingFocus,{resolveItems:()=>i,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=i.findIndex(e=>null==t?void 0:t(e.dataRef.current.value));-1!==e&&(r=e)}}return{...e,options:i,activeOptionIndex:r,pendingFocus:{focus:Q.b.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let i=e.options,r=[],l=new Set(t.options);for(let[e,t]of i.entries())if(l.has(t.id)&&(r.push(e),l.delete(t.id),0===l.size))break;if(r.length>0)for(let e of(i=i.slice(),r.reverse()))i.splice(e,1);return{...e,options:i,activationTrigger:1}},8:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},9:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},10:e=>e.pendingShouldSort?{...e,...eo(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:et.L.Moved}};class eu extends ee.${constructor(e){super(e),er(this,"actions",{onChange:e=>{let{onChange:t,compare:i,mode:r,value:l}=this.state.dataRef.current;return(0,q.f)(r,{0:()=>null==t?void 0:t(e),1:()=>{let r=l.slice(),s=r.findIndex(t=>i(t,e));return -1===s?r.push(e):r.splice(s,1),null==t?void 0:t(r)}})},registerOption:(0,ee.W)(()=>{let e=[],t=new Set;return[(i,r)=>{t.has(r)||(t.add(r),e.push({id:i,dataRef:r}))},()=>(t.clear(),this.send({type:6,options:e.splice(0)}))]}),unregisterOption:(0,ee.W)(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]}),goToOption:(0,ee.W)(()=>{let e=null;return[(t,i)=>{e={type:2,...t,trigger:i}},()=>e&&this.send(e)]}),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{var e;if(null!==this.state.activeOptionIndex){let{dataRef:e}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(e.current.value)}else 0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(e=this.state.buttonElement)||e.focus({preventScroll:!0}))},selectOption:e=>{this.send({type:5,value:e})},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:8,element:e})},setOptionsElement:e=>{this.send({type:9,element:e})}}),er(this,"selectors",{activeDescendantId(e){var t;let i=e.activeOptionIndex,r=e.options;return null===i||null==(t=r[i])?void 0:t.id},isActive(e,t){var i;let r=e.activeOptionIndex,l=e.options;return null!==r&&(null==(i=l[r])?void 0:i.id)===t},hasFrozenValue:e=>e.frozenValue,shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let e=this.state.id,t=B.l.get(null);this.disposables.add(t.on(B.R.Push,i=>{t.selectors.isTop(i,e)||0!==this.state.listboxState||this.actions.closeListbox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add((0,et.Y)(t.buttonElement,t.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(e,t)=>{var i;this.actions.onChange(t.value),0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(i=this.state.buttonElement)||i.focus({preventScroll:!0}))})}static new({id:e,__demoMode:t=!1}){return new eu({id:e,dataRef:{current:{}},listboxState:+!t,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:Q.b.Nothing},frozenValue:!1,__demoMode:t,buttonPositionState:et.L.Idle})}reduce(e,t){return(0,q.f)(t.type,ed,e,t)}}var ec=e.i(21867);let ef=(0,s.createContext)(null);function ep(e){let t=(0,s.useContext)(ef);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,em),t}return t}function em({id:e,__demoMode:t=!1}){let i=(0,s.useMemo)(()=>eu.new({id:e,__demoMode:t}),[]);return(0,ec.f)(()=>i.dispose()),i}let ex=(0,s.createContext)(null);function eb(e){let t=(0,s.useContext)(ex);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eb),t}return t}ex.displayName="ListboxDataContext";let ev=s.Fragment,eg=(0,s.createContext)(!1),eh=W.J.RenderStrategy|W.J.Static,ey=s.Fragment,ej=Object.assign((0,W.t)(function(e,t){let i=(0,s.useId)(),r=(0,D.f)(),{value:l,defaultValue:a,form:n,name:o,onChange:d,by:u,invalid:c=!1,disabled:x=r||!1,horizontal:b=!1,multiple:v=!1,__demoMode:g=!1,...h}=e,j=(0,C.V)(t),w=(0,m.f)(a),[I=v?[]:void 0,k]=(0,p.f)(l,d,w),F=em({id:i,__demoMode:g}),S=(0,s.useRef)({static:!1,hold:!1}),N=(0,s.useRef)(new Map),E=(0,f.f)(u),_=(0,s.useCallback)(e=>(0,q.f)(T.mode,{[es.Multi]:()=>I.some(t=>E(t,e)),[es.Single]:()=>E(I,e)}),[I]),T=(0,M.f)({value:I,disabled:x,invalid:c,mode:v?es.Multi:es.Single,orientation:b?"horizontal":"vertical",onChange:k,compare:E,isSelected:_,optionsPropsRef:S,listRef:N});(0,y.f)(()=>{F.state.dataRef.current=T},[T]);let R=(0,z.f)(F,e=>e.listboxState),P=B.l.get(null),A=(0,z.f)(P,(0,s.useCallback)(e=>P.selectors.isTop(e,i),[P,i])),[Q,U]=(0,z.f)(F,e=>[e.buttonElement,e.optionsElement]);(0,O.f)(A,[Q,U],(e,t)=>{F.send({type:en.CloseListbox}),(0,Z.d)(t,Z.m.Loose)||(e.preventDefault(),null==Q||Q.focus())});let X=(0,M.f)({open:R===el.Open,disabled:x,invalid:c,value:I}),[K,H]=(0,J.m)({inherit:!0}),G=(0,s.useCallback)(()=>{if(void 0!==w)return null==k?void 0:k(w)},[k,w]),Y=(0,W.n)();return s.default.createElement(H,{value:K,props:{htmlFor:null==Q?void 0:Q.id},slot:{open:R===el.Open,disabled:x}},s.default.createElement(L.j,null,s.default.createElement(ef.Provider,{value:F},s.default.createElement(ex.Provider,{value:T},s.default.createElement(V.z,{value:(0,q.f)(R,{[el.Open]:V.A.Open,[el.Closed]:V.A.Closed})},null!=o&&null!=I&&s.default.createElement($.f,{disabled:x,data:{[o]:I},form:n,onReset:G}),Y({ourProps:{ref:j},theirProps:h,slot:X,defaultTag:ev,name:"Listbox"}))))))}),{Button:(0,W.t)(function(e,t){let i=(0,s.useId)(),r=(0,A.f)(),l=eb("Listbox.Button"),a=ep("Listbox.Button"),{id:n=r||`headlessui-listbox-button-${i}`,disabled:f=l.disabled||!1,autoFocus:p=!1,...m}=e,x=(0,C.V)(t,(0,L.$)(),a.actions.setButtonElement),b=(0,L.f)(),[h,y,j]=(0,z.f)(a,e=>[e.listboxState,e.buttonElement,e.optionsElement]),w=h===el.Open;(0,k.f)(w,{trigger:y,action:(0,s.useCallback)(e=>{if(null!=y&&y.contains(e.target))return k.m.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return N.F(t)?k.m.Select(t):null!=j&&j.contains(e.target)?k.m.Ignore:k.m.Close},[y,j]),close:a.actions.closeListbox,select:a.actions.selectActiveOption});let O=(0,v.f)(e=>{switch(e.key){case G.f.Enter:(0,X.o)(e.currentTarget);break;case G.f.Space:case G.f.ArrowDown:e.preventDefault(),a.actions.openListbox({focus:l.value?Q.b.Nothing:Q.b.First});break;case G.f.ArrowUp:e.preventDefault(),a.actions.openListbox({focus:l.value?Q.b.Nothing:Q.b.Last})}}),I=(0,v.f)(e=>{e.key===G.f.Space&&e.preventDefault()}),S=(0,g.f)(e=>{var t;a.state.listboxState===el.Open?((0,u.flushSync)(()=>a.actions.closeListbox()),null==(t=a.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),a.actions.openListbox({focus:Q.b.Nothing}))}),E=(0,v.f)(e=>e.preventDefault()),_=(0,J.I)([n]),T=(0,H.A)(),{isFocusVisible:R,focusProps:D}=(0,o.f)({autoFocus:p}),{isHovered:$,hoverProps:P}=(0,d.f)({isDisabled:f}),{pressed:V,pressProps:B}=(0,c.f)({disabled:f}),U=(0,M.f)({open:h===el.Open,active:V||h===el.Open,disabled:f,invalid:l.invalid,value:l.value,hover:$,focus:R,autofocus:p}),Z=(0,z.f)(a,e=>e.listboxState===el.Open),q=(0,W.w)(b(),{ref:x,id:n,type:(0,F.f)(e,y),"aria-haspopup":"listbox","aria-controls":null==j?void 0:j.id,"aria-expanded":Z,"aria-labelledby":_,"aria-describedby":T,disabled:f||void 0,autoFocus:p,onKeyDown:O,onKeyUp:I,onKeyPress:E},S,D,P,B);return(0,W.n)()({ourProps:q,theirProps:m,slot:U,defaultTag:"button",name:"Listbox.Button"})}),Label:J.Q,Options:(0,W.t)(function(e,t){let i=(0,s.useId)(),{id:r=`headlessui-listbox-options-${i}`,anchor:l,portal:a=!1,modal:n=!0,transition:o=!1,...d}=e,c=(0,L.L)(l),[f,p]=(0,s.useState)(null);c&&(a=!0);let m=eb("Listbox.Options"),g=ep("Listbox.Options"),[y,j,O,k]=(0,z.f)(g,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),F=(0,I.f)(j),N=(0,I.f)(O),E=(0,V.N)(),[_,T]=(0,R.S)(o,f,null!==E?(E&V.A.Open)===V.A.Open:y===el.Open);(0,w.f)(_,j,g.actions.closeListbox);let D=!k&&n&&y===el.Open;(0,S.f)(D,N);let $=!k&&n&&y===el.Open;(0,h.f)($,{allowed:(0,s.useCallback)(()=>[j,O],[j,O])});let A=!(0,z.f)(g,g.selectors.didButtonMove)&&_,B=(0,z.f)(g,g.selectors.hasFrozenValue)&&!e.static,U=(0,P.o)(B,m.value),X=(0,s.useCallback)(e=>m.compare(U,e),[m.compare,U]),H=(0,z.f)(g,e=>{var t;if(null==c||!(null!=(t=null==c?void 0:c.to)&&t.includes("selection")))return null;let i=e.options.findIndex(e=>X(e.dataRef.current.value));return -1===i&&(i=0),i}),J=(()=>{if(null==c)return;if(null===H)return{...c,inner:void 0};let e=Array.from(m.listRef.current.values());return{...c,inner:{listRef:{current:e},index:H}}})(),[ee,et]=(0,L.X)(J),ei=(0,L.S)(),er=(0,C.V)(t,c?ee:null,g.actions.setOptionsElement,p),ea=(0,x.f)();(0,s.useEffect)(()=>{O&&y===el.Open&&((0,K.M)(O)||null==O||O.focus({preventScroll:!0}))},[y,O]);let en=(0,v.f)(e=>{var t;switch(ea.dispose(),e.key){case G.f.Space:if(""!==g.state.searchQuery)return e.preventDefault(),e.stopPropagation(),g.actions.search(e.key);case G.f.Enter:e.preventDefault(),e.stopPropagation(),g.actions.selectActiveOption();break;case(0,q.f)(m.orientation,{vertical:G.f.ArrowDown,horizontal:G.f.ArrowRight}):return e.preventDefault(),e.stopPropagation(),g.actions.goToOption({focus:Q.b.Next});case(0,q.f)(m.orientation,{vertical:G.f.ArrowUp,horizontal:G.f.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),g.actions.goToOption({focus:Q.b.Previous});case G.f.Home:case G.f.PageUp:return e.preventDefault(),e.stopPropagation(),g.actions.goToOption({focus:Q.b.First});case G.f.End:case G.f.PageDown:return e.preventDefault(),e.stopPropagation(),g.actions.goToOption({focus:Q.b.Last});case G.f.Escape:e.preventDefault(),e.stopPropagation(),(0,u.flushSync)(()=>g.actions.closeListbox()),null==(t=g.state.buttonElement)||t.focus({preventScroll:!0});return;case G.f.Tab:e.preventDefault(),e.stopPropagation(),(0,u.flushSync)(()=>g.actions.closeListbox()),(0,Z.e)(g.state.buttonElement,e.shiftKey?Z.b.Previous:Z.b.Next);break;default:1===e.key.length&&(g.actions.search(e.key),ea.setTimeout(()=>g.actions.clearSearch(),350))}}),eo=(0,z.f)(g,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),ed=(0,M.f)({open:y===el.Open}),eu=(0,W.w)(c?ei():{},{id:r,ref:er,"aria-activedescendant":(0,z.f)(g,g.selectors.activeDescendantId),"aria-multiselectable":m.mode===es.Multi||void 0,"aria-labelledby":eo,"aria-orientation":m.orientation,onKeyDown:en,role:"listbox",tabIndex:y===el.Open?0:void 0,style:{...d.style,...et,"--button-width":(0,b.f)(_,j,!0).width},...(0,R.p)(T)}),ec=(0,W.n)(),ef=(0,s.useMemo)(()=>m.mode===es.Multi?m:{...m,isSelected:X},[m,X]);return s.default.createElement(Y.z,{enabled:!!a&&(e.static||_),ownerDocument:F},s.default.createElement(ex.Provider,{value:ef},ec({ourProps:eu,theirProps:d,slot:ed,defaultTag:"div",features:eh,visible:A,name:"Listbox.Options"})))}),Option:(0,W.t)(function(e,t){let i,r,l=(0,s.useId)(),{id:a=`headlessui-listbox-option-${l}`,disabled:n=!1,value:o,...d}=e,u=!0===(0,s.useContext)(eg),c=eb("Listbox.Option"),f=ep("Listbox.Option"),p=(0,z.f)(f,e=>f.selectors.isActive(e,a)),m=c.isSelected(o),x=(0,s.useRef)(null),b=(i=(0,s.useRef)(""),r=(0,s.useRef)(""),(0,v.f)(()=>{let e=x.current;if(!e)return"";let t=e.innerText;if(i.current===t)return r.current;let l=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let i=e.getAttribute("aria-labelledby");if(i){let e=i.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():_(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return _(e).trim()})(e).trim().toLowerCase();return i.current=t,r.current=l,l})),g=(0,j.f)({disabled:n,value:o,domRef:x,get textValue(){return b()}}),h=(0,C.V)(t,x,e=>{e?c.listRef.current.set(a,e):c.listRef.current.delete(a)}),w=(0,z.f)(f,e=>f.selectors.shouldScrollIntoView(e,a));(0,y.f)(()=>{if(w)return(0,U.f)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=x.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[w,x]),(0,y.f)(()=>{if(!u)return f.actions.registerOption(a,g),()=>f.actions.unregisterOption(a)},[g,a,u]);let O=(0,v.f)(e=>{if(n)return e.preventDefault();f.actions.selectOption(o)}),I=(0,v.f)(()=>{if(n)return f.actions.goToOption({focus:Q.b.Nothing});f.actions.goToOption({focus:Q.b.Specific,id:a})}),k=(0,T.f)(),F=(0,v.f)(e=>k.update(e)),S=(0,v.f)(e=>{k.wasMoved(e)&&(n||p&&f.state.activationTrigger===ea.Pointer||f.actions.goToOption({focus:Q.b.Specific,id:a},ea.Pointer))}),N=(0,v.f)(e=>{k.wasMoved(e)&&(n||p&&f.state.activationTrigger===ea.Pointer&&f.actions.goToOption({focus:Q.b.Nothing}))}),E=(0,M.f)({active:p,focus:p,selected:m,disabled:n,selectedOption:m&&u}),R=u?{}:{id:a,ref:h,role:"option",tabIndex:!0===n?void 0:-1,"aria-disabled":!0===n||void 0,"aria-selected":m,disabled:void 0,onClick:O,onFocus:I,onPointerEnter:F,onMouseEnter:F,onPointerMove:S,onMouseMove:S,onPointerLeave:N,onMouseLeave:N},D=(0,W.n)();return!m&&u?null:D({ourProps:R,theirProps:d,slot:E,defaultTag:"div",name:"Listbox.Option"})}),SelectedOption:(0,W.t)(function(e,t){let{options:i,placeholder:r,...l}=e,a={ref:(0,C.V)(t)},n=eb("ListboxSelectedOption"),o=(0,M.f)({}),d=void 0===n.value||null===n.value||n.mode===es.Multi&&Array.isArray(n.value)&&0===n.value.length,u=(0,W.n)();return s.default.createElement(eg.Provider,{value:!0},u({ourProps:a,theirProps:{...l,children:s.default.createElement(s.default.Fragment,null,r&&d?r:i)},slot:o,defaultTag:ey,name:"ListboxSelectedOption"}))})});var ew=e.i(95485),eO=e.i(38322),eI=e.i(38187),ek=e.i(3326);function eF(...e){return e.filter(Boolean).join(" ")}let eS={green:{button:"bg-emerald-50 dark:bg-emerald-900/30 text-emerald-700 dark:text-emerald-300 border border-emerald-200 dark:border-emerald-700",hover:"hover:bg-emerald-100 dark:hover:bg-emerald-900/50",focus:"focus:ring-emerald-500",dropdown:"text-emerald-700 dark:text-emerald-300 bg-emerald-50 dark:bg-emerald-900/30 border border-emerald-200 dark:border-emerald-700",description:"text-emerald-600 dark:text-emerald-400"},amber:{button:"bg-amber-50 dark:bg-amber-900/30 text-amber-700 dark:text-amber-300 border border-amber-200 dark:border-amber-700",hover:"hover:bg-amber-100 dark:hover:bg-amber-900/50",focus:"focus:ring-amber-500",dropdown:"text-amber-700 dark:text-amber-300 bg-amber-50 dark:bg-amber-900/30 border border-amber-200 dark:border-amber-700",description:"text-amber-600 dark:text-amber-400"},slate:{button:"bg-surface text-text-secondary border border-slate-200 dark:border-slate-600",hover:"hover:bg-slate-100 dark:hover:bg-slate-600",focus:"focus:ring-focus-ring",dropdown:"text-text-secondary bg-surface border border-slate-200 dark:border-slate-600",description:"text-text-secondary"},stone:{button:"bg-stone-50 dark:bg-stone-800 text-stone-700 dark:text-stone-300 border border-stone-200 dark:border-stone-700",hover:"hover:bg-stone-100 dark:hover:bg-stone-700",focus:"focus:ring-stone-500",dropdown:"text-stone-700 dark:text-stone-300 bg-stone-50 dark:bg-stone-800 border border-stone-200 dark:border-stone-700",description:"text-stone-600 dark:text-stone-400"},emerald:{button:"bg-emerald-50 dark:bg-emerald-900/30 text-emerald-700 dark:text-emerald-300 border border-emerald-200 dark:border-emerald-700",hover:"hover:bg-emerald-100 dark:hover:bg-emerald-900/50",focus:"focus:ring-emerald-500",dropdown:"text-emerald-700 dark:text-emerald-300 bg-emerald-50 dark:bg-emerald-900/30 border border-emerald-200 dark:border-emerald-700",description:"text-emerald-600 dark:text-emerald-400"}};e.s(["f",0,({options:e,type:t})=>{let[i,r]=(0,s.useState)(!1),[l,a]=(0,s.useState)(e?.find(({current:e})=>e)||e?.[0]),{formatMessage:o}=(0,ek.X)();if(!l?.id||!e?.length)return null;let d=eS[l.bgColor]||eS.emerald;return(0,n.jsx)(ej,{value:l,onChange:a,children:({open:a})=>(0,n.jsxs)("div",{id:l.id,children:[(0,n.jsx)(ej.Label,{className:"sr-only",children:o({id:"select_options_toggle",defaultMessage:"Change {type} status"},{type:t})}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsxs)(ej.Button,{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),className:eF("inline-flex items-center gap-2 rounded-md px-3 py-2 text-sm font-medium shadow-sm transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 h-[38px]",d.button,d.hover,d.focus,(()=>{if(!i)return"";switch(l.bgColor){case"green":case"emerald":return"bg-emerald-100";case"amber":return"bg-amber-100";case"stone":return"bg-stone-100";default:return"bg-slate-100"}})()),children:[(0,n.jsx)(eO.f,{className:"h-4 w-4","aria-hidden":"true"}),(0,n.jsx)("span",{children:l?.selectedTitle||l.title}),(0,n.jsx)(eI.f,{className:eF("h-4 w-4 -mr-1 transition-transform duration-200",a&&"rotate-180"),"aria-hidden":"true"})]}),(0,n.jsx)(ew.I,{show:a,as:s.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,n.jsx)(ej.Options,{className:"mt-1 absolute right-0 z-10 w-64 origin-top-right divide-y divide-slate-200 dark:divide-slate-600 overflow-hidden rounded-md bg-surface shadow-lg ring-1 ring-black dark:ring-slate-600 ring-opacity-5 dark:ring-opacity-50 focus:outline-hidden",children:e.map(e=>(0,n.jsx)(ej.Option,{className:()=>eF("group",e?.disable&&"cursor-not-allowed","relative cursor-default select-none p-3 text-sm"),value:e,disabled:e.disable,children:(0,n.jsx)("div",{className:`${e?.disable&&"pointer-events-none"}`,onClick:e?.onClick,children:(0,n.jsx)("div",{className:"flex items-start justify-between gap-3",children:(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:eF("inline-flex items-center rounded-md px-2 py-1 text-xs font-medium",(eS[e.bgColor]||eS.emerald).dropdown),children:e.title}),e.id===l.id&&(0,n.jsx)(eO.f,{className:"h-4 w-4 text-slate-600","aria-hidden":"true"})]}),e?.description&&(0,n.jsx)("div",{className:eF("mt-2 ms-1 text-sm text-text-secondary"),children:e.description})]})})})},e.title))})})]})]})})}],92276)},76842,e=>{"use strict";var t=e.i(91788);let i=t.forwardRef(function({title:e,titleId:i,...r},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":i},r),e?t.createElement("title",{id:i},e):null,t.createElement("path",{d:"m2.695 14.762-1.262 3.155a.5.5 0 0 0 .65.65l3.155-1.262a4 4 0 0 0 1.343-.886L17.5 5.501a2.121 2.121 0 0 0-3-3L3.58 13.419a4 4 0 0 0-.885 1.343Z"}))});e.s(["f",0,i],76842)},24557,e=>{"use strict";var t=e.i(91788);let i=t.forwardRef(function({title:e,titleId:i,...r},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":i},r),e?t.createElement("title",{id:i},e):null,t.createElement("path",{fillRule:"evenodd",d:"M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z",clipRule:"evenodd"}))});e.s(["f",0,i],24557)},38322,e=>{"use strict";var t=e.i(57862);e.s(["f",()=>t.f])},38187,e=>{"use strict";var t=e.i(76237);e.s(["f",()=>t.f])},86712,e=>{"use strict";var t=e.i(93026);e.s(["f",()=>t.f])},24608,e=>{"use strict";var t=e.i(30999);e.s(["f",()=>t.f])}]);
|