@unchainedshop/admin-ui 5.0.0-alpha.11 → 5.0.0-alpha.12
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-BMDNY67T.js → chunk-33ZO52Z7.js} +3241 -1753
- package/dist/{chunk-PJLYVMUM.js → chunk-4MXPTVDL.js} +2 -2
- package/dist/{chunk-I64TXIE7.js → chunk-ATZJXTRA.js} +1 -1
- 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-E77YIMGR.js → chunk-ED2FP42R.js} +1 -1
- package/dist/{chunk-HJKRGBDG.js → chunk-GWMLIF3C.js} +1 -1
- package/dist/{chunk-3L6EZQ6P.js → chunk-NFJE5EJG.js} +1 -1
- package/dist/{chunk-ICJH36K4.js → chunk-YUXHILXY.js} +1 -1
- 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 +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/form.js +797 -286
- package/dist/gql/schema-types.d.ts +3 -2
- package/dist/gql/schema-types.d.ts.map +1 -1
- package/dist/hooks.js +3 -3
- package/dist/modal.js +5 -5
- package/dist/modules/accounts.js +1 -1
- package/dist/modules/assortment.js +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 +1 -1
- package/dist/modules/event.js +1 -1
- package/dist/modules/filter.js +1 -1
- package/dist/modules/language.js +1 -1
- package/dist/modules/order.js +1 -1
- package/dist/modules/payment-providers.js +1 -1
- package/dist/modules/product-review.js +1 -1
- package/dist/modules/product.js +5 -5
- package/dist/modules/quotation.js +1 -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 +3933 -3416
- 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/bg3Z_ZBjStiTvJAHlsPDE/_buildManifest.js +262 -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/00wlebfe9j80r.js +24 -0
- package/out/_next/static/chunks/01isyk4v59s_4.js +5 -0
- package/out/_next/static/chunks/01otzjqxk372n.js +1 -0
- package/out/_next/static/chunks/03x_mgpai_kbn.js +1 -0
- package/out/_next/static/chunks/04327_1fq5i7-.js +9 -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/05474mknnr_tw.js +4 -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/09irjy-7k1922.js +1 -0
- package/out/_next/static/chunks/0_3suta3t3lus.js +5 -0
- package/out/_next/static/chunks/0_a5fzdztv84p.js +272 -0
- package/out/_next/static/chunks/0_ppdn6x6ci0v.js +31 -0
- package/out/_next/static/chunks/0br42_xli8-2x.js +6 -0
- package/out/_next/static/chunks/0cdk-eqghrgee.js +5 -0
- package/out/_next/static/chunks/0d54jo566j9ka.js +12 -0
- package/out/_next/static/chunks/0gfia1t8drmnx.js +182 -0
- package/out/_next/static/chunks/0gwd6ju8j_bwr.js +39 -0
- package/out/_next/static/chunks/{0_pn7w49dpkak.js → 0hv3x0mo1tt7i.js} +2 -2
- package/out/_next/static/chunks/0i481ym5-ss1t.js +5 -0
- package/out/_next/static/chunks/0iohwbogpxe5r.js +1 -0
- package/out/_next/static/chunks/0j46qnxaxeqk_.js +1 -0
- package/out/_next/static/chunks/{1jmdpa0tc5puj.js → 0mcu2o1ir2t_w.js} +3 -3
- package/out/_next/static/chunks/0o4aj3bm49d_h.js +61 -0
- package/out/_next/static/chunks/0op3htrvd-ix6.js +5 -0
- package/out/_next/static/chunks/0p55j-ysba0wq.js +63 -0
- package/out/_next/static/chunks/0qv2nce7okzy5.js +103 -0
- package/out/_next/static/chunks/0rrhyxuk32t3n.js +95 -0
- package/out/_next/static/chunks/0rt4le6syjqdj.js +21 -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/0v1tb34y7e1y4.js +5 -0
- package/out/_next/static/chunks/0w9d4swf95hvu.js +33 -0
- package/out/_next/static/chunks/0we1tw4xvdb7o.js +7 -0
- package/out/_next/static/chunks/0zlzflyq18hhy.js +4 -0
- package/out/_next/static/chunks/0zqdvl0b4w5nc.js +7 -0
- package/out/_next/static/chunks/1-wbp_4f-c4-3.js +837 -0
- package/out/_next/static/chunks/11vnr4kb9qkjr.js +1 -0
- package/out/_next/static/chunks/12cy_5m_0fj96.js +44 -0
- package/out/_next/static/chunks/131uuhqexo4si.js +4 -0
- package/out/_next/static/chunks/14eqp21pspjud.js +234 -0
- package/out/_next/static/chunks/14jd75j8ij4u2.js +3 -0
- package/out/_next/static/chunks/153-_av1r1ssb.js +4 -0
- package/out/_next/static/chunks/{0m73vd78oga92.js → 157ndq6b9jcvv.js} +11 -11
- package/out/_next/static/chunks/177p92k5pdloo.js +1 -0
- package/out/_next/static/chunks/19-1z6h5eeq_w.js +134 -0
- package/out/_next/static/chunks/1bxznw06g-5u2.js +5 -0
- package/out/_next/static/chunks/1bypzyw5fs3w2.js +59 -0
- package/out/_next/static/chunks/1cz2fp89ssu5d.js +4 -0
- package/out/_next/static/chunks/1e2jykfql801f.js +16 -0
- package/out/_next/static/chunks/1eokbzdgdicpa.js +33 -0
- package/out/_next/static/chunks/1f0t23r6y0hni.js +1 -0
- package/out/_next/static/chunks/1fehej_7rgmmo.js +5 -0
- package/out/_next/static/chunks/1gl4h7w9t850f.js +1 -0
- package/out/_next/static/chunks/1gv0k-w7m83om.js +41 -0
- package/out/_next/static/chunks/1hzt0aoixrv4_.js +7 -0
- package/out/_next/static/chunks/1ia6hdgf7pj9y.js +174 -0
- package/out/_next/static/chunks/1in8spfokcjsp.js +8 -0
- package/out/_next/static/chunks/1j2gw9gyg8j80.js +5 -0
- package/out/_next/static/chunks/1k06h8wbfrx_v.js +5 -0
- package/out/_next/static/chunks/1kdcu-0jkya-b.js +61 -0
- package/out/_next/static/chunks/1msc4qrgaanh7.js +43 -0
- package/out/_next/static/chunks/{1iamjw8qh1m4o.js → 1mx0p6r-9c5u_.js} +1 -1
- package/out/_next/static/chunks/1oqc8etm-romv.js +1 -0
- package/out/_next/static/chunks/1p5lt4tkyouxz.js +4 -0
- package/out/_next/static/chunks/1q7wxp4rlhy0x.js +12 -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/{12yd8t4k6c0t1.js → 1t8jj0-6g8uyd.js} +1 -1
- package/out/_next/static/chunks/1tbd6m-xvx0um.js +353 -0
- package/out/_next/static/chunks/1th1-x1szvnq8.js +5 -0
- package/out/_next/static/chunks/1tosw188dr9d6.js +44 -0
- package/out/_next/static/chunks/1tw97cvdosb89.js +5 -0
- package/out/_next/static/chunks/1ubmbegreszhk.js +1 -0
- package/out/_next/static/chunks/{43uqmej6-s4am.js → 1ug1ie2lrhi0a.js} +3 -3
- package/out/_next/static/chunks/1uw7hr3o4w5cj.js +8 -0
- package/out/_next/static/chunks/1vzs8hvrsoslf.js +5 -0
- package/out/_next/static/chunks/1w6gc_cygbi6h.js +5 -0
- package/out/_next/static/chunks/1xybsisfyvqrj.js +115 -0
- package/out/_next/static/chunks/1yvl8l5yx1rj8.js +4 -0
- package/out/_next/static/chunks/{3dcwbsiechj8e.js → 1z-etrje5tsj6.js} +3 -3
- package/out/_next/static/chunks/1z1d11slpalrq.js +4 -0
- package/out/_next/static/chunks/1zdral15la_p7.js +99 -0
- package/out/_next/static/chunks/2-qo63s4vlxol.js +156 -0
- package/out/_next/static/chunks/20au-bdji0nu2.js +14 -0
- package/out/_next/static/chunks/21zghy5-42i1e.js +1 -0
- package/out/_next/static/chunks/22duvsj-priip.js +7 -0
- package/out/_next/static/chunks/22rdge7enz4nd.js +12 -0
- package/out/_next/static/chunks/{3m_9ozv0orvze.js → 249b4cg2ev597.js} +3 -3
- package/out/_next/static/chunks/24caedynuzux0.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/26guwpx1_pkxv.js +1 -0
- package/out/_next/static/chunks/28o6402k4vuky.js +11 -0
- package/out/_next/static/chunks/29x7cj-318eaa.js +1 -0
- package/out/_next/static/chunks/2_0v0fw6x71zy.js +46 -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/2b4k5t_myq-pa.js +1 -0
- package/out/_next/static/chunks/2bugi3kot5jtu.js +1 -0
- package/out/_next/static/chunks/2bxdh-td1el8z.js +5 -0
- package/out/_next/static/chunks/2dz0_3jf4m9cy.js +31 -0
- package/out/_next/static/chunks/2ege1545af18d.js +4 -0
- package/out/_next/static/chunks/2erqawjj0rnih.js +117 -0
- package/out/_next/static/chunks/2gfzt_fdr-h96.js +81 -0
- package/out/_next/static/chunks/2grm6dtosrvoq.js +1 -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/2imf3_f1_ex86.js +1 -0
- package/out/_next/static/chunks/{3fpgg_wy6j2ph.js → 2ipcn3vy6d4_6.js} +1 -1
- package/out/_next/static/chunks/2iwst7mjldlcz.js +1 -0
- package/out/_next/static/chunks/2ja0dztzyw8zw.js +1 -0
- package/out/_next/static/chunks/2ja1--2x_gs49.js +83 -0
- package/out/_next/static/chunks/2lec5u8obskt6.js +5 -0
- package/out/_next/static/chunks/2m38nntt3z8zi.js +103 -0
- package/out/_next/static/chunks/2pogx3xggqd8y.js +1 -0
- package/out/_next/static/chunks/2q988j4vovsiy.js +8 -0
- package/out/_next/static/chunks/2s-0q8i8lr2p2.js +5 -0
- package/out/_next/static/chunks/{0a_gulnq-c7to.js → 2u64ldp2xfy8a.js} +7 -7
- package/out/_next/static/chunks/2ud5j0_nqocf4.js +5 -0
- package/out/_next/static/chunks/2uo6puoi0y082.js +5 -0
- package/out/_next/static/chunks/2w3z7kqh6nbmw.js +23 -0
- package/out/_next/static/chunks/2y11qf38baxpu.js +14 -0
- package/out/_next/static/chunks/{2yw5sk06gdixu.js → 2y8uau15r3p-o.js} +1 -1
- package/out/_next/static/chunks/2zb-xmda5rbn0.js +1 -0
- package/out/_next/static/chunks/2zsvxbghbsuz1.js +4 -0
- package/out/_next/static/chunks/{0s6u_6w75ggbw.js → 3205eg3ochzp4.js} +7 -7
- package/out/_next/static/chunks/32g5gxee1kcdc.js +28 -0
- package/out/_next/static/chunks/32whi9clpxjd0.js +5 -0
- package/out/_next/static/chunks/3368kg846t33d.js +57 -0
- package/out/_next/static/chunks/33oz-znvi5-m6.js +1 -0
- package/out/_next/static/chunks/345s7967cwd02.js +5 -0
- package/out/_next/static/chunks/34wf3lz_fft3k.js +2 -0
- package/out/_next/static/chunks/{3btkj1_irjkq7.js → 36x7q29atus_r.js} +6 -6
- package/out/_next/static/chunks/37jjn1wguhj-a.js +5 -0
- package/out/_next/static/chunks/{1so6ouxrq_ffa.js → 393--hagnnm97.js} +3 -3
- package/out/_next/static/chunks/39moagn46hde9.js +5 -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/3b1kt-r_75q1a.js +43 -0
- package/out/_next/static/chunks/3e38rrs6dszgt.js +8 -0
- package/out/_next/static/chunks/{01xy3u9ybz9ts.js → 3e7d8sb4289js.js} +2 -2
- package/out/_next/static/chunks/3ek1bahoqa_ll.js +5 -0
- package/out/_next/static/chunks/3ek680kdzjdr7.js +1 -0
- package/out/_next/static/chunks/3eth7s2-06yuz.js +1 -0
- package/out/_next/static/chunks/3exy4ii5maq4x.js +54 -0
- package/out/_next/static/chunks/3fevbt4ysloo8.js +8 -0
- package/out/_next/static/chunks/3fu072xwkf88o.js +6 -0
- package/out/_next/static/chunks/3h6a3clw5m5ro.js +4 -0
- package/out/_next/static/chunks/3hmoy4f23y1s4.js +147 -0
- package/out/_next/static/chunks/3i4_3b36nutw7.js +33 -0
- package/out/_next/static/chunks/3jfe0uesrzz7a.js +1 -0
- package/out/_next/static/chunks/3k01tdsm6l20w.js +54 -0
- package/out/_next/static/chunks/3lr6hkso67d68.js +6 -0
- package/out/_next/static/chunks/3lzin6_25n8rs.js +30 -0
- package/out/_next/static/chunks/3nrrzhhoy8amt.js +4 -0
- package/out/_next/static/chunks/3o-h2po9z09dk.js +4 -0
- package/out/_next/static/chunks/3onharcadlou0.js +327 -0
- package/out/_next/static/chunks/3pls-kicv4xu9.js +175 -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/3tg_clsx6ux4o.js +1 -0
- package/out/_next/static/chunks/3ttz1zgoq3xmp.js +1 -0
- package/out/_next/static/chunks/3uekb_s0jaboj.js +1 -0
- package/out/_next/static/chunks/3ujdligrod612.js +5 -0
- package/out/_next/static/chunks/3www97fxyknos.js +4 -0
- package/out/_next/static/chunks/3x_gia2m5w9_l.js +147 -0
- package/out/_next/static/chunks/{3j25u7rzawm9f.js → 3xs_undkbcqp7.js} +5 -5
- package/out/_next/static/chunks/3yktizlgzr6vc.js +4 -0
- package/out/_next/static/chunks/3ytp87o76hzmx.js +100 -0
- package/out/_next/static/chunks/40kvu3lk3s9h2.js +276 -0
- package/out/_next/static/chunks/41c4n9whpyrjc.js +7 -0
- package/out/_next/static/chunks/42dygj7ul4k54.js +33 -0
- package/out/_next/static/chunks/449x6nw2kd7l6.js +119 -0
- package/out/_next/static/chunks/44b7_q6pkf1k9.js +5 -0
- package/out/_next/static/chunks/44qc0zn0tudui.js +2 -0
- package/out/_next/static/chunks/45c05mbjow5wz.js +4 -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/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/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/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/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 +65 -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 +110 -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 +29 -0
- package/src/modules/enrollment/hooks/useTerminateEnrollment.ts +36 -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 +255 -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 +51 -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 +50 -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 +61 -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 +51 -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-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 +70 -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/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/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-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/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 → bg3Z_ZBjStiTvJAHlsPDE}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{BPoacQET3TJr2q9E370Ez → bg3Z_ZBjStiTvJAHlsPDE}/_ssgManifest.js +0 -0
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[10685,e=>{var t=e.i(91398),i=e.i(56206),r=e.i(60741),s=e.i(54879);e.s(["f",0,e=>{let{options:a,...n}=(0,r.f)(e),{className:o}=e||{className:""};return(0,t.jsx)(s.f,{...n,children:(0,t.jsx)("div",{className:"select-wrap",children:(0,t.jsxs)("select",{className:(0,i.U)("block w-full bg-surface-input rounded-md border-1 border-border-default py-2.5 pl-3 pr-10 text-base text-text-primary shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring sm:text-sm",o,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!n.error}),disabled:n.disabled,id:n.name,name:n.name,onChange:n.onChange,onBlur:n.onBlur,value:n.value,children:[(0,t.jsx)("option",{className:"text-text-secondary",value:"",disabled:n.required,hidden:n.required,children:n.placeholder||n.label}),Object.entries(a).map(([e,i])=>(0,t.jsx)("option",{className:"text-text-secondary",value:e,children:i},e))]})})})}])},1504,e=>{e.s(["f",0,(e,t,i)=>Object.assign({},...e?.map(e=>({[e[i]]:e[t]}))||[])])},80689,e=>{var t=e.i(91398),i=e.i(69322);e.i(51523);var r=e.i(19518),s=e.i(58971),a=e.i(1504),n=e.i(79093),o=e.i(6634),u=e.i(69211),d=e.i(10685),l=e.i(21128),c=e.i(16984),f=e.i(98949),y=e.i(82226);e.s(["f",0,({onSubmit:e,onSubmitSuccess:C=null,defaultValue:m={},isEdit:g=!1})=>{let{formatMessage:x}=(0,i.X)(),{hasRole:v}=(0,s.f)(),p=x({id:"country_added",defaultMessage:"Country added successfully!"}),h=x({id:"country_updated",defaultMessage:"Country updated successfully!"}),{currencies:b}=(0,n.f)(),j=(0,f.f)({submit:e,onSubmitSuccess:C,successMessage:g?h:p,getSubmitErrorMessage:e=>{if(e?.message?.includes("duplicate key"))return j.api.setFieldError("isoCode",x({id:"country_exists",defaultMessage:"Country with the same ISO code already exists"})),null},enableReinitialize:!0,initialValues:{isoCode:"",...m}});return(0,t.jsxs)(u.f,{form:j,children:[(0,t.jsxs)("div",{className:"p-5 pb-7",children:[(0,t.jsx)(c.f,{name:"isoCode",id:"isoCode",validators:[(0,y.v)()],disabled:!v(r.C.ManageCountries),label:x({id:"iso_code",defaultMessage:"ISO code"}),required:!0,autoComplete:"on"}),g&&(0,t.jsxs)("div",{className:"my-3 min-w-0 flex-1",children:[(0,t.jsx)(d.f,{name:"defaultCurrencyCode",disabled:!v(r.C.ManageCountries),id:"defaultCurrencyCode",label:x({id:"default_currency",defaultMessage:"Default currency"}),options:(0,a.f)(b,"isoCode","isoCode"),className:"mb-2 text-sm"}),(0,t.jsx)(o.f,{toggleText:x({id:"active",defaultMessage:"Active"}),disabled:!v(r.C.ManageCountries),active:j.api.values.isActive,onToggle:()=>j.api.setFieldValue("isActive",!j.api.values.isActive)})]})]}),v(r.C.ManageCountries)&&(0,t.jsx)("div",{className:"space-y-6 border-t border-t-border-subtle bg-surface-subtle p-5 text-right",children:(0,t.jsx)(l.f,{label:g?x({id:"update_country",defaultMessage:"Update Country"}):x({id:"add_country",defaultMessage:"Add Country"})})})]})}])},97118,e=>{var t=e.i(59080),i=e.i(32171),r=e.i(70693),s=e.i(77846);e.s(["f",0,({countryId:e})=>{let{customProperties:a}=(0,r.f)(),{data:n,loading:o,error:u}=(0,i.f)(((e="")=>t.a`
|
|
2
|
-
query Country($countryId: ID!) {
|
|
3
|
-
country(countryId: $countryId) {
|
|
4
|
-
...CountryFragment
|
|
5
|
-
${e}
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
${s.f}
|
|
9
|
-
`)(a?.Country),{skip:!e,variables:{countryId:e}});return{country:n?.country,loading:o,error:u}}])},71846,e=>{var t=e.i(59080),i=e.i(76204),r=e.i(77846);let s=t.a`
|
|
10
|
-
mutation RemoveCountry($countryId: ID!) {
|
|
11
|
-
removeCountry(countryId: $countryId) {
|
|
12
|
-
...CountryFragment
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
${r.f}
|
|
16
|
-
`;e.s(["f",0,()=>{let[e]=(0,i.f)(s);return{removeCountry:async({countryId:t})=>e({variables:{countryId:t},refetchQueries:["Countries","ShopStatus","ShopInfo"]})}}])},68191,e=>{var t=e.i(59080);let i=t.a`
|
|
17
|
-
fragment CurrencyFragment on Currency {
|
|
18
|
-
_id
|
|
19
|
-
isoCode
|
|
20
|
-
isActive
|
|
21
|
-
contractAddress
|
|
22
|
-
decimals
|
|
23
|
-
}
|
|
24
|
-
`;e.s(["f",0,i])},79093,e=>{var t=e.i(59080),i=e.i(32171),r=e.i(68191);let s=t.a`
|
|
25
|
-
query Currencies(
|
|
26
|
-
$queryString: String
|
|
27
|
-
$limit: Int
|
|
28
|
-
$offset: Int
|
|
29
|
-
$includeInactive: Boolean
|
|
30
|
-
$sort: [SortOptionInput!]
|
|
31
|
-
) {
|
|
32
|
-
currencies(
|
|
33
|
-
queryString: $queryString
|
|
34
|
-
limit: $limit
|
|
35
|
-
offset: $offset
|
|
36
|
-
includeInactive: $includeInactive
|
|
37
|
-
sort: $sort
|
|
38
|
-
) {
|
|
39
|
-
...CurrencyFragment
|
|
40
|
-
}
|
|
41
|
-
currenciesCount(
|
|
42
|
-
includeInactive: $includeInactive
|
|
43
|
-
queryString: $queryString
|
|
44
|
-
)
|
|
45
|
-
}
|
|
46
|
-
${r.f}
|
|
47
|
-
`;e.s(["f",0,({queryString:e="",limit:t=20,offset:r=0,includeInactive:a=!0,sort:n=[]}={})=>{let{data:o,loading:u,error:d,fetchMore:l}=(0,i.f)(s,{variables:{queryString:e,limit:t,offset:r,includeInactive:a,sort:n}}),c=o?.currencies||[],f=o?.currenciesCount,y=c?.length<f;return{currencies:c,currenciesCount:f,hasMore:y,loading:u,error:d,loadMore:()=>{l({variables:{offset:c?.length}})}}}])},55868,e=>{var t=e.i(91398),i=e.i(3828);e.i(51523);var r=e.i(19518),s=e.i(69322),a=e.i(28401),n=e.i(5505),o=e.i(50595),u=e.i(25327),d=e.i(80689),l=e.i(97118),c=e.i(71846),f=e.i(59080),y=e.i(76204),C=e.i(77846);let m=f.a`
|
|
48
|
-
mutation UpdateCountry($country: UpdateCountryInput!, $countryId: ID!) {
|
|
49
|
-
updateCountry(country: $country, countryId: $countryId) {
|
|
50
|
-
...CountryFragment
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
${C.f}
|
|
54
|
-
`;var g=e.i(15971),x=e.i(6607),v=e.i(21623),p=e.i(24608),h=e.i(53576),b=e.i(83147),j=e.i(58971);e.s(["default",0,({countryId:e})=>{let{push:f}=(0,i.useRouter)(),{formatMessage:C,locale:I}=(0,s.X)(),{setModal:$}=(0,x.f)(),{hasRole:w}=(0,j.f)(),{country:_,loading:M}=(0,l.f)({countryId:e}),{updateCountry:S}=(()=>{let[e]=(0,y.f)(m);return{updateCountry:async({country:t,countryId:i})=>e({variables:{country:t,countryId:i},refetchQueries:["Countries","ShopStatus","ShopInfo"]})}})(),{removeCountry:N}=(0,c.f)(),T=async({isActive:t,isoCode:i,defaultCurrencyCode:r})=>(await S({country:{isActive:t,isoCode:i,defaultCurrencyCode:r},countryId:e}),!0),A=async()=>{await $((0,t.jsx)(g.f,{onCancelClick:async()=>$(""),message:C({id:"delete_country_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this country? "}),onOkClick:async()=>{$(""),await N({countryId:e}),a.toast.success(C({id:"country_deleted",defaultMessage:"Country deleted successfully"})),f("/country")},okText:C({id:"delete_country",defaultMessage:"Delete country"})}))};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.f,{currentPageTitle:(0,b.Q)(I,_?.isoCode)}),(0,t.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,t.jsx)(u.f,{headerText:(0,b.Q)(I,_?.isoCode)}),w(r.C.ManageCountries)&&(0,t.jsx)(v.f,{variant:"danger",icon:(0,t.jsx)(p.f,{className:"h-5 w-5"}),text:"Delete",onClick:A})]}),M?(0,t.jsx)(h.f,{}):(0,t.jsx)("div",{className:"mx-auto mt-6 sm:max-w-xl",children:(0,t.jsx)(n.U,{children:(0,t.jsx)(d.f,{isEdit:!0,defaultValue:{isActive:_?.isActive,isoCode:_?.isoCode,defaultCurrencyCode:_?.defaultCurrency?.isoCode},onSubmit:T})})})]})}],55868)}],65367,(e,t,i)=>{let r="/country/CountryDetailPage";(window.__NEXT_P=window.__NEXT_P||[]).push([r,()=>e.r(55868)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([r])})}]);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,72381,e=>{var t=e.i(91788),n=e.i(93481),r=e.i(64728),o=e.i(8404),i=e.i(56833),l=e.i(60360),u=e.i(74664);let s=(0,t.createContext)(null);s.displayName="DescriptionContext";let a=Object.assign((0,u.t)(function(e,n){let a=(0,t.useId)(),c=(0,l.f)(),{id:d=`headlessui-description-${a}`,...f}=e,p=function e(){let n=(0,t.useContext)(s);if(null===n){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return n}(),v=(0,i.V)(n);(0,r.f)(()=>p.register(d),[d,p.register]);let m=(0,o.f)({...p.slot,disabled:c||!1}),h={ref:v,...p.props,id:d};return(0,u.n)()({ourProps:h,theirProps:f,slot:m,defaultTag:"p",name:p.name||"Description"})}),{});e.s(["u",0,a,"A",0,function(){var e,n;return null!=(n=null==(e=(0,t.useContext)(s))?void 0:e.value)?n:void 0},"s",0,function(){let[e,r]=(0,t.useState)([]);return[e.length>0?e.join(" "):void 0,(0,t.useMemo)(()=>function(e){let o=(0,n.f)(e=>(r(t=>[...t,e]),()=>r(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),i=(0,t.useMemo)(()=>({register:o,slot:e.slot,name:e.name,props:e.props,value:e.value}),[o,e.slot,e.name,e.props,e.value]);return t.default.createElement(s.Provider,{value:i},e.children)},[r])]}])},78270,e=>{let t;var n=((t=n||{}).Space=" ",t.Enter="Enter",t.Escape="Escape",t.Backspace="Backspace",t.Delete="Delete",t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Home="Home",t.End="End",t.PageUp="PageUp",t.PageDown="PageDown",t.Tab="Tab",t);e.s(["f",0,n])},62750,e=>{var t=e.i(91788),n=e.i(30943),r=e.i(26171),o=e.i(93481),i=e.i(21867),l=e.i(76925),u=e.i(27544),s=e.i(56833),a=e.i(75621),c=e.i(81093),d=e.i(74664);let f=t.Fragment,p=(0,d.t)(function(e,o){let{ownerDocument:p=null,...v}=e,b=(0,t.useRef)(null),g=(0,s.V)((0,s.f)(e=>{b.current=e}),o),y=(0,l.f)(b.current),E=function(e){let n=(0,a.e)(),r=(0,t.useContext)(m),[o,i]=(0,t.useState)(()=>{var t;if(!n&&null!==r)return null!=(t=r.current)?t:null;if(c.f.isServer)return null;let o=null==e?void 0:e.getElementById("headlessui-portal-root");if(o)return o;if(null===e)return null;let i=e.createElement("div");return i.setAttribute("id","headlessui-portal-root"),e.body.appendChild(i)});return(0,t.useEffect)(()=>{null!==o&&(null!=e&&e.body.contains(o)||null==e||e.body.appendChild(o))},[o,e]),(0,t.useEffect)(()=>{n||null!==r&&i(r.current)},[r,i,n]),o}(null!=p?p:y),w=(0,t.useContext)(h),T=(0,r.f)(),S=(0,u.f)(),P=(0,d.n)();return(0,i.f)(()=>{var e;E&&E.childNodes.length<=0&&(null==(e=E.parentElement)||e.removeChild(E))}),E&&S?(0,n.createPortal)(t.default.createElement("div",{"data-headlessui-portal":"",ref:e=>{T.dispose(),w&&e&&T.add(w.register(e))}},P({ourProps:{ref:g},theirProps:v,slot:{},defaultTag:f,name:"Portal"})),E):null}),v=t.Fragment,m=(0,t.createContext)(null),h=(0,t.createContext)(null),b=(0,d.t)(function(e,n){let r=(0,s.V)(n),{enabled:o=!0,ownerDocument:i,...l}=e,u=(0,d.n)();return o?t.default.createElement(p,{...l,ownerDocument:i,ref:r}):u({ourProps:{ref:r},theirProps:l,slot:{},defaultTag:f,name:"Portal"})}),g=(0,d.t)(function(e,n){let{target:r,...o}=e,i={ref:(0,s.V)(n)},l=(0,d.n)();return t.default.createElement(m.Provider,{value:r},l({ourProps:i,theirProps:o,defaultTag:v,name:"Popover.Group"}))}),y=Object.assign(b,{Group:g});e.s(["z",0,y,"n",0,g,"U",0,function(){let e=(0,t.useContext)(h),n=(0,t.useRef)([]),r=(0,o.f)(t=>(n.current.push(t),e&&e.register(t),()=>i(t))),i=(0,o.f)(t=>{let r=n.current.indexOf(t);-1!==r&&n.current.splice(r,1),e&&e.unregister(t)}),l=(0,t.useMemo)(()=>({register:r,unregister:i,portals:n}),[r,i,n]);return[n,(0,t.useMemo)(()=>function({children:e}){return t.default.createElement(h.Provider,{value:l},e)},[l])]}])},73483,31774,59778,55839,68327,65383,55251,99901,95031,87264,76925,e=>{let t,n,r,o,i,l;var u=e.i(60004),s=e.i(80795),a=e.i(91788),c=e.i(14929),d=e.i(3926),f=e.i(26417),p=Object.defineProperty,v=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?p(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n},m=((t=m||{})[t.Push=0]="Push",t[t.Pop=1]="Pop",t);let h={0(e,t){let n=t.id,r=e.stack,o=e.stack.indexOf(n);if(-1!==o){let t=e.stack.slice();return t.splice(o,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let o=e.stack.slice();return o.splice(r,1),{...e,stack:o}}};class b extends c.${constructor(){super(...arguments),v(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),v(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new b({stack:[]})}reduce(e,t){return(0,f.f)(t.type,h,e,t)}}let g=new d.f(()=>b.new());e.s(["R",0,m,"l",0,g],31774);var y=e.i(19979),E=e.i(93481);function w(e,t,n=c.o){return(0,y.useSyncExternalStoreWithSelector)((0,E.f)(t=>e.subscribe(T,t)),(0,E.f)(()=>e.state),(0,E.f)(()=>e.state),(0,E.f)(t),n)}function T(e){return e}e.s(["f",0,w],59778);var S=e.i(64728);function P(e,t){let n=(0,a.useId)(),r=g.get(t),[o,i]=w(r,(0,a.useCallback)(e=>[r.selectors.isTop(e,n),r.selectors.inStack(e,n)],[r,n]));return(0,S.f)(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),!!e&&(!i||o)}e.s(["f",0,P],55839);let L=new Map,k=new Map;function F(e){var t;let n=null!=(t=k.get(e))?t:0;return k.set(e,n+1),0!==n?()=>O(e):(L.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>O(e))}function O(e){var t;let n=null!=(t=k.get(e))?t:1;if(1===n?k.delete(e):k.set(e,n-1),1!==n)return;let r=L.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,L.delete(e))}e.s(["f",0,function(e,{allowed:t,disallowed:n}={}){let r=P(e,"inert-others");(0,S.f)(()=>{var e,o;if(!r)return;let i=(0,u.f)();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&i.add(F(t));let l=null!=(o=null==t?void 0:t())?o:[];for(let e of l){if(!e)continue;let t=(0,s.o)(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)l.some(t=>e.contains(t))||i.add(F(e));n=n.parentElement}}return i.dispose},[r,t,n])}],73483);var A=e.i(55367),C=e.i(15067);e.s(["f",0,function(e,t,n){let r=(0,C.f)(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()});(0,a.useEffect)(()=>{if(!e)return;let n=null===t?null:A.F(t)?t:t.current;if(!n)return;let o=(0,u.f)();if("u">typeof ResizeObserver){let e=new ResizeObserver(()=>r.current(n));e.observe(n),o.add(()=>e.disconnect())}if("u">typeof IntersectionObserver){let e=new IntersectionObserver(()=>r.current(n));e.observe(n),o.add(()=>e.disconnect())}return()=>o.dispose()},[t,r,e])}],68327);let x=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),M=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var N=((n=N||{})[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll",n[n.AutoFocus=64]="AutoFocus",n),j=((r=j||{})[r.Error=0]="Error",r[r.Overflow=1]="Overflow",r[r.Success=2]="Success",r[r.Underflow=3]="Underflow",r),R=((o=R||{})[o.Previous=-1]="Previous",o[o.Next=1]="Next",o);function H(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(x)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var I=((i=I||{})[i.Strict=0]="Strict",i[i.Loose=1]="Loose",i);function D(e,t=0){var n;return e!==(null==(n=(0,s.o)(e))?void 0:n.body)&&(0,f.f)(t,{0:()=>e.matches(x),1(){let t=e;for(;null!==t;){if(t.matches(x))return!0;t=t.parentElement}return!1}})}var W=((l=W||{})[l.Keyboard=0]="Keyboard",l[l.Mouse=1]="Mouse",l);function K(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function V(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var i,l,u;let a=Array.isArray(e)?e.length>0?(0,s.g)(e[0]):document:(0,s.g)(e),c=Array.isArray(e)?n?K(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(M)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):H(e);o.length>0&&c.length>1&&(c=c.filter(e=>!o.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),r=null!=r?r:null==a?void 0:a.activeElement;let d=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,c.indexOf(r))-1;if(4&t)return Math.max(0,c.indexOf(r))+1;if(8&t)return c.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=32&t?{preventScroll:!0}:{},v=0,m=c.length,h;do{if(v>=m||v+m<=0)return 0;let e=f+v;if(16&t)e=(e+m)%m;else{if(e<0)return 3;if(e>=m)return 1}null==(h=c[e])||h.focus(p),v+=d}while(h!==(0,s.z)(h))return 6&t&&null!=(u=null==(l=null==(i=h)?void 0:i.matches)?void 0:l.call(i,"textarea,input"))&&u&&h.select(),2}function U(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function B(){return U()||/Android/gi.test(window.navigator.userAgent)}function $(e,t,n,r){let o=(0,C.f)(n);(0,a.useEffect)(()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){o.current(e)}},[e,t,r])}function _(e,t,n,r){let o=(0,C.f)(n);(0,a.useEffect)(()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){o.current(e)}},[e,t,r])}"u">typeof window&&"u">typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0)),e.s(["b",0,N,"f",0,j,"m",0,I,"a",0,function(e){null==e||e.focus({preventScroll:!0})},"e",0,function(e,t,n=null===e?document.body:(0,s.g)(e)){return V(H(n),t,{relativeTo:e})},"R",0,V,"c",0,x,"d",0,D,"T",0,K],65383),e.s(["I",0,U,"F",0,B],55251),e.s(["f",0,$],99901),e.s(["f",0,_],95031),e.s(["f",0,function(e,t,n){let r=(0,C.f)(n),o=(0,a.useCallback)(function(e,n){if(e.defaultPrevented)return;let o=n(e);if(null!==o&&o.getRootNode().contains(o)&&o.isConnected){for(let n of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t))if(null!==n&&(n.contains(o)||e.composed&&e.composedPath().includes(n)))return;return D(o,I.Loose)||-1===o.tabIndex||e.preventDefault(),r.current(e,o)}},[r,t]),i=(0,a.useRef)(null);$(e,"pointerdown",e=>{var t,n;B()||(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),$(e,"pointerup",e=>{if(B()||!i.current)return;let t=i.current;return i.current=null,o(e,()=>t)},!0);let l=(0,a.useRef)({x:0,y:0});$(e,"touchstart",e=>{l.current.x=e.touches[0].clientX,l.current.y=e.touches[0].clientY},!0),$(e,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-l.current.x)>=30||Math.abs(t.y-l.current.y)>=30))return o(e,()=>A.N(e.target)?e.target:null)},!0),_(e,"blur",e=>o(e,()=>A.I(window.document.activeElement)?window.document.activeElement:null),!0)}],87264),e.s(["f",0,function(...e){return(0,a.useMemo)(()=>(0,s.o)(...e),[...e])}],76925)},21867,e=>{var t=e.i(91788),n=e.i(38403),r=e.i(93481);e.s(["f",0,function(e){let o=(0,r.f)(e),i=(0,t.useRef)(!1);(0,t.useEffect)(()=>(i.current=!1,()=>{i.current=!0,(0,n.f)(()=>{i.current&&o()})}),[o])}])},99030,e=>{var t=e.i(91788);e.s(["f",0,function(e,n){return(0,t.useMemo)(()=>{var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";if("string"==typeof r&&"button"===r.toLowerCase()||(null==n?void 0:n.tagName)==="BUTTON"&&!n.hasAttribute("type"))return"button"},[e.type,e.as,n])}])},4067,e=>{let t,n;var r,o,i=e.i(91788),l=e.i(64728),u=e.i(60004),s=e.i(55367),a=e.i(55251);function c(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let d=(r=()=>new Map,o={PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,u.f)(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=c(r.meta),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=c(n.meta)),this},SCROLL_PREVENT(e){let t,n={doc:e.doc,d:e.d,meta:()=>e.computedMeta},r=[(0,a.I)()?{before({doc:e,d:t,meta:n}){function r(e){for(let t of n().containers)for(let n of t())if(n.contains(e))return!0;return!1}t.microTask(()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=(0,u.f)();n.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>n.dispose()))}let o=null!=(n=window.scrollY)?n:window.pageYOffset,i=null;t.addEventListener(e,"click",t=>{if(s.N(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:o}=new URL(n.href),l=e.querySelector(o);s.N(l)&&!r(l)&&(i=l)}catch{}},!0),t.group(n=>{t.addEventListener(e,"touchstart",e=>{if(n.dispose(),s.N(e.target)&&s.E(e.target))if(r(e.target)){let t=e.target;for(;t.parentElement&&r(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",e=>{if(s.N(e.target)&&!s.k(e.target))if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()},{passive:!1}),t.add(()=>{var e;o!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,o),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{},{before({doc:e}){var n;let r=e.documentElement;t=Math.max(0,(null!=(n=e.defaultView)?n:window).innerWidth-r.clientWidth)},after({doc:e,d:n}){let r=e.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,t-o);n.style(r,"paddingRight",`${i}px`)}},{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];r.forEach(({before:e})=>null==e?void 0:e(n)),r.forEach(({after:e})=>null==e?void 0:e(n))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}},t=r(),n=new Set,{getSnapshot:()=>t,subscribe:e=>(n.add(e),()=>n.delete(e)),dispatch(e,...r){let i=o[e].call(t,...r);i&&(t=i,n.forEach(e=>e()))}});d.subscribe(()=>{let e=d.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&d.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&d.dispatch("TEARDOWN",n)}});var f=e.i(55839);e.s(["f",0,function(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let r=(0,i.useSyncExternalStore)(d.subscribe,d.getSnapshot,d.getSnapshot),o=t?r.get(t):void 0;o&&o.count,(0,l.f)(()=>{if(!(!t||!e))return d.dispatch("PUSH",t,n),()=>d.dispatch("POP",t,n)},[e,t])}((0,f.f)(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}],4067)},27544,75621,e=>{var t=e.i(91788),n=e.i(81093);e.s(["f",0,function(){let e,r=(e="u"<typeof document,"useSyncExternalStore"in t&&(0,t.useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[o,i]=t.useState(n.f.isHandoffComplete);return o&&!1===n.f.isHandoffComplete&&i(!1),t.useEffect(()=>{!0!==o&&i(!0)},[o]),t.useEffect(()=>n.f.handoff(),[]),!r&&o}],27544);let r=(0,t.createContext)(!1);e.s(["d",0,function(e){return t.default.createElement(r.Provider,{value:e.force},e.children)},"e",0,function(){return(0,t.useContext)(r)}],75621)},8404,56833,80281,e=>{let t;var n,r,o=e.i(91788);e.s(["f",0,function(e){return(0,o.useMemo)(()=>e,Object.values(e))}],8404);var i=e.i(93481);let l=Symbol();e.s(["f",0,function(e,t=!0){return Object.assign(e,{[l]:t})},"V",0,function(...e){let t=(0,o.useRef)(e);(0,o.useEffect)(()=>{t.current=e},[e]);let n=(0,i.f)(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[l]))?void 0:n}],56833);var u=e.i(50461),s=e.i(60004),a=e.i(26171),c=e.i(64728);void 0!==u.default&&"u">typeof globalThis&&"u">typeof Element&&(null==(n=null==u.default?void 0:u.default.env)?void 0:n.NODE_ENV)==="test"&&void 0===(null==(r=null==Element?void 0:Element.prototype)?void 0:r.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
|
2
|
-
`)),[]});var d=((t=d||{})[t.None=0]="None",t[t.Closed=1]="Closed",t[t.Enter=2]="Enter",t[t.Leave=4]="Leave",t);e.s(["p",0,function(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t},"S",0,function(e,t,n,r){let[i,l]=(0,o.useState)(n),{hasFlag:u,addFlag:d,removeFlag:f}=function(e=0){let[t,n]=(0,o.useState)(e),r=(0,o.useCallback)(e=>n(e),[]),i=(0,o.useCallback)(e=>n(t=>t|e),[]),l=(0,o.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:r,addFlag:i,hasFlag:l,removeFlag:(0,o.useCallback)(e=>n(t=>t&~e),[]),toggleFlag:(0,o.useCallback)(e=>n(t=>t^e),[])}}(e&&i?3:0),p=(0,o.useRef)(!1),v=(0,o.useRef)(!1),m=(0,a.f)();return(0,c.f)(()=>{var o;if(e){if(n&&l(!0),!t){n&&d(3);return}return null==(o=null==r?void 0:r.start)||o.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:o}){let i=(0,s.f)();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:o}),i.nextFrame(()=>{n(),i.requestAnimationFrame(()=>{i.add(function(e,t){var n,r;let o=(0,s.f)();if(!e)return o.dispose;let i=!1;o.add(()=>{i=!0});let l=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===l.length?t():Promise.allSettled(l.map(e=>e.finished)).then(()=>{i||t()}),o.dispose}(e,r))})}),i.dispose}(t,{inFlight:p,prepare(){v.current?v.current=!1:v.current=p.current,p.current=!0,v.current||(n?(d(3),f(4)):(d(4),f(2)))},run(){v.current?n?(f(3),d(4)):(f(4),d(3)):n?f(1):d(1)},done(){var e,o,i,u;v.current&&(null!=(u=null==(i=(o=t).getAnimations)?void 0:i.call(o))?u:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)||(p.current=!1,f(7),n||l(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})}},[e,n,t,m]),e?[i,{closed:u(1),enter:u(2),leave:u(4),transition:u(2)||u(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}],80281)},60360,e=>{var t=e.i(91788);let n=(0,t.createContext)(void 0);e.s(["f",0,function(){return(0,t.useContext)(n)}])},78530,e=>{let t;var n=e.i(74664),r=((t=r||{})[t.None=1]="None",t[t.Focusable=2]="Focusable",t[t.Hidden=4]="Hidden",t);let o=(0,n.t)(function(e,t){var r;let{features:o=1,...i}=e,l={ref:t,"aria-hidden":(2&o)==2||(null!=(r=i["aria-hidden"])?r:void 0),hidden:(4&o)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&o)==4&&(2&o)!=2&&{display:"none"}}};return(0,n.n)()({ourProps:l,theirProps:i,slot:{},defaultTag:"span",name:"Hidden"})});e.s(["g",0,o,"X",0,r])},96694,e=>{let t;var n=e.i(91788);let r=(0,n.createContext)(null);r.displayName="OpenClosedContext";var o=((t=o||{})[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t);e.s(["z",0,function({value:e,children:t}){return n.default.createElement(r.Provider,{value:e},t)},"P",0,function({children:e}){return n.default.createElement(r.Provider,{value:null},e)},"A",0,o,"N",0,function(){return(0,n.useContext)(r)}])},14929,3926,e=>{class t extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}e.s(["f",0,t],3926);var n,r,o,i=e.i(60004),l=e.i(81093),u=Object.defineProperty,s=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},a=(e,t,n)=>(s(e,t,"read from private field"),n?n.call(e):t.get(e)),c=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},d=(e,t,n,r)=>(s(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function f(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&p(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&p(e.entries(),t.entries()):!!(v(e)&&v(t))&&p(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function p(e,t){for(;;){let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function v(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}n=new WeakMap,r=new WeakMap,o=new WeakMap,e.s(["$",0,class{constructor(e){var s,a;let f;c(this,n,{}),c(this,r,new t(()=>new Set)),c(this,o,new Set),s="disposables",a=(0,i.f)(),(f="symbol"!=typeof s?s+"":s)in this?u(this,f,{enumerable:!0,configurable:!0,writable:!0,value:a}):this[f]=a,d(this,n,e),l.f.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return a(this,n)}subscribe(e,t){if(l.f.isServer)return()=>{};let r={selector:e,callback:t,current:e(a(this,n))};return a(this,o).add(r),this.disposables.add(()=>{a(this,o).delete(r)})}on(e,t){return l.f.isServer?()=>{}:(a(this,r).get(e).add(t),this.disposables.add(()=>{a(this,r).get(e).delete(t)}))}send(e){let t=this.reduce(a(this,n),e);if(t!==a(this,n)){for(let e of(d(this,n,t),a(this,o))){let t=e.selector(a(this,n));f(e.current,t)||(e.current=t,e.callback(t))}for(let t of a(this,r).get(e.type))t(a(this,n),e)}}},"W",0,function(e){let[t,n]=e(),r=(0,i.f)();return(...e)=>{t(...e),r.dispose(),r.microTask(n)}},"o",0,f],14929)},30317,55367,e=>{function t(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function n(e){return t(e)&&"tagName"in e}function r(e){return n(e)&&"accessKey"in e}function o(e){return r(e)&&"FIELDSET"===e.nodeName}function i(e){return r(e)&&"LEGEND"===e.nodeName}e.s(["E",0,function(e){return n(e)&&"style"in e},"m",0,n,"F",0,r,"J",0,o,"I",0,function(e){return r(e)&&"IFRAME"===e.nodeName},"k",0,function(e){return r(e)&&"INPUT"===e.nodeName},"M",0,function(e){return r(e)&&"LABEL"===e.nodeName},"D",0,i,"N",0,function(e){return n(e)&&"tabIndex"in e},"W",0,function(e){return!!n(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')},"t",0,t],55367),e.s(["f",0,function(e){let t=e.parentElement,n=null;for(;t&&!o(t);)i(t)&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(i(t))return!1;t=t.previousElementSibling}return!0}(n))&&r}],30317)},26417,e=>{e.s(["f",0,function e(t,n,...r){if(t in n){let e=n[t];return"function"==typeof e?e(...r):e}let o=Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,e),o}])},74664,21713,e=>{let t,n;var r=e.i(91788);function o(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}e.s(["f",0,o],21713);var i=e.i(26417),l=((t=l||{})[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t),u=((n=u||{})[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n);function s(e,t={},n,i,l){let{as:u=n,children:a,refName:v="ref",...m}=f(e,["unmount","static"]),h=void 0!==e.ref?{[v]:e.ref}:{},b="function"==typeof a?a(t):a;b=function e(t){if(null!=t&&t.$$typeof===Symbol.for("react.lazy")){let n=t._payload;if(null!=n&&"fulfilled"===n.status)return e(n.value)}return t}(b),"className"in m&&m.className&&"function"==typeof m.className&&(m.className=m.className(t)),m["aria-labelledby"]&&m["aria-labelledby"]===m.id&&(m["aria-labelledby"]=void 0);let g={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e)for(let e of(g["data-headlessui-state"]=n.join(" "),n))g[`data-${e}`]=""}if(p(u)&&(Object.keys(d(m)).length>0||Object.keys(d(g)).length>0))if(!(0,r.isValidElement)(b)||Array.isArray(b)&&b.length>1||p(b.type)){if(Object.keys(d(m)).length>0)throw Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(d(m)).concat(Object.keys(d(g))).map(e=>` - ${e}`).join(`
|
|
3
|
-
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join(`
|
|
4
|
-
`)].join(`
|
|
5
|
-
`))}else{var y;let e=b.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>o(t(...e),m.className):o(t,m.className),i=c(b.props,d(f(m,["ref"])));for(let e in g)e in i&&delete g[e];return(0,r.cloneElement)(b,Object.assign({},i,g,h,{ref:l((y=b,r.default.version.split(".")[0]>="19"?y.props.ref:y.ref),h.ref)},n?{className:n}:{}))}return(0,r.createElement)(u,Object.assign({},f(m,["ref"]),!p(u)&&h,!p(u)&&g),b)}function a(...e){return e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function c(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...r){for(let o of n[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;o(t,...r)}}});return t}function d(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function f(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function p(e){return e===r.Fragment||e===Symbol.for("react.fragment")}e.s(["J",0,l,"j",0,u,"x",0,d,"t",0,function(e){var t;return Object.assign((0,r.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})},"F",0,p,"w",0,function(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let e in n)Object.assign(t,{[e](...t){for(let r of n[e])null==r||r(...t)}});return t},"n",0,function(){let e,t,n=(e=(0,r.useRef)([]),t=(0,r.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]),(...n)=>{if(!n.every(e=>null==e))return e.current=n,t});return(0,r.useCallback)(e=>(function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:l=!0,name:u,mergeRefs:d}){d=null!=d?d:a;let f=c(t,e);if(l)return s(f,n,r,u,d);let p=null!=o?o:0;if(2&p){let{static:e=!1,...t}=f;if(e)return s(t,n,r,u,d)}if(1&p){let{unmount:e=!0,...t}=f;return(0,i.f)(+!e,{0:()=>null,1:()=>s({...t,hidden:!0,style:{display:"none"}},n,r,u,d)})}return s(f,n,r,u,d)})({mergeRefs:n,...e}),[n])}],74664)},86567,45229,81093,80795,38403,60004,26171,64728,15067,93481,72016,e=>{let t,n=e=>{var t,n;return"object"==typeof(t=e)&&null!=t&&"window"in t&&t.window===t?e.document:function(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType}(n=e)&&9===n.nodeType?e:e?.ownerDocument??("u">typeof document?document:void 0)},r=e=>{let t=n(e);return t?.defaultView??("u">typeof window?window:void 0)};function o(e,t){return!!t&&!!e&&e.contains(t)}function i(e){return e.target}"u">typeof Element&&Element.prototype;let l=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"];l.join(":not([hidden]),"),l.push('[tabindex]:not([tabindex="-1"]):not([disabled])'),l.join(':not([hidden]):not([tabindex="-1"]),');var u=e.i(91788);let s="u">typeof document?u.default.useLayoutEffect:()=>{};function a(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function c(e){let t=(0,u.useRef)({isFocused:!1,observer:null});return s(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,u.useCallback)(n=>{let r=i(n);(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)&&(t.current.isFocused=!0,r.addEventListener("focusout",n=>{if(t.current.isFocused=!1,r.disabled){let t=a(n);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){t.current.observer?.disconnect();let e=r===((e=document)=>e.activeElement)()?null:((e=document)=>e.activeElement)();r.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]}))},[e])}function d(e){if("u"<typeof window||null==window.navigator)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function f(e){return"u">typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function p(e){let t=null;return()=>(null==t&&(t=e()),t)}let v=p(function(){return f(/^Mac/i)}),m=p(function(){return f(/^iPhone/i)}),h=p(function(){return f(/^iPad/i)||v()&&navigator.maxTouchPoints>1}),b=p(function(){return m()||h()});p(function(){return v()||b()});let g=p(function(){return d(/AppleWebKit/i)&&(b()||!y())});p(function(){return g()&&!y()&&!w()});let y=p(function(){return d(/Chrome|CriOS|CrMo/i)}),E=p(function(){return d(/Android/i)}),w=p(function(){return d(/(Firefox|FxiOS)/i)});function T(e,t,n=!0){let{metaKey:r,ctrlKey:o,altKey:i,shiftKey:l}=t,u=g()&&v()&&!h()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:o,altKey:i,shiftKey:l}):new MouseEvent("click",{metaKey:r,ctrlKey:o,altKey:i,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});T.isOpening=n,e.focus({preventScroll:!0}),e.dispatchEvent(u),T.isOpening=!1}T.isOpening=!1;let S={prefix:String(Math.round(1e10*Math.random())),current:0};u.default.createContext(S),u.default.createContext(!1),"u">typeof window&&window.document&&window.document.createElement,new WeakMap;u.default.useId;let P=null,L=new Set,k=new Map,F=!1,O=!1,A={Tab:!0,Escape:!0};function C(e,t){for(let n of L)n(e,t)}function x(e){F=!0,T.isOpening||e.metaKey||!v()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(P="keyboard",C("keyboard",e))}function M(e){P="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(F=!0,C("pointer",e))}function N(e){T.isOpening||(""!==e.pointerType||!e.isTrusted)&&(E()&&e.pointerType?"click"!==e.type||1!==e.buttons:0!==e.detail||e.pointerType)||(F=!0,P="virtual")}function j(e){let t=i(e),o=r(t),l=n(t);if(t===o){O=!0;return}t!==l&&e.isTrusted&&(F||O||(P="virtual",C("virtual",e)),F=!1,O=!1)}function R(){F=!1,O=!0}function H(e){let t=((e=document)=>e.activeElement)(n(i(e)));queueMicrotask(()=>{var r;((e=document)=>e.activeElement)(n(i(e)))!==t&&(P=r="keyboard",C(r,null))})}function I(e){if("u"<typeof window||"u"<typeof document)return;let t=r(e),o=n(e);if(k.get(t))return;let i=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){F=!0,i.apply(this,arguments)}}),o.addEventListener("keydown",x,!0),o.addEventListener("keyup",x,!0),o.addEventListener("click",N,!0),o.addEventListener("invalid",H,!0),t.addEventListener("focus",j,!0),t.addEventListener("blur",R,!1),"u">typeof PointerEvent&&(o.addEventListener("pointerdown",M,!0),o.addEventListener("pointermove",M,!0),o.addEventListener("pointerup",M,!0)),t.addEventListener("beforeunload",()=>{D(e)},{once:!0}),k.set(t,{focus:i})}let D=(e,t)=>{let o=r(e),i=n(e);t&&i.removeEventListener("DOMContentLoaded",t),k.has(o)&&(Reflect.defineProperty(o.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:k.get(o).focus}),i.removeEventListener("keydown",x,!0),i.removeEventListener("keyup",x,!0),i.removeEventListener("click",N,!0),i.removeEventListener("invalid",H,!0),o.removeEventListener("focus",j,!0),o.removeEventListener("blur",R,!1),"u">typeof PointerEvent&&(i.removeEventListener("pointerdown",M,!0),i.removeEventListener("pointermove",M,!0),i.removeEventListener("pointerup",M,!0)),k.delete(o))};function W(){return"pointer"!==P}"u">typeof document&&("loading"!==(t=n(void 0)).readyState?I(void 0):t.addEventListener("DOMContentLoaded",()=>{I(void 0)}));let K=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function V(){let e=(0,u.useRef)(new Map),t=(0,u.useCallback)((t,n,r,o)=>{let i=o?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,i,o)},[]),n=(0,u.useCallback)((t,n,r,o)=>{let i=e.current.get(r)?.fn||r;t.removeEventListener(n,i,o),e.current.delete(r)},[]),r=(0,u.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,u.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}e.s(["f",0,function(e={}){var t;let{autoFocus:l=!1,isTextInput:s,within:d}=e,f=(0,u.useRef)({isFocused:!1,isFocusVisible:l||W()}),[p,v]=(0,u.useState)(!1),[m,h]=(0,u.useState)(()=>f.current.isFocused&&f.current.isFocusVisible),b=(0,u.useCallback)(()=>h(f.current.isFocused&&f.current.isFocusVisible),[]),g=(0,u.useCallback)(e=>{f.current.isFocused=e,f.current.isFocusVisible=W(),v(e),b()},[b]);t={enabled:p,isTextInput:s},I(),(0,u.useEffect)(()=>{if(t?.enabled===!1)return;let e=(e,o)=>{var l;let u,s,a,c,d,p,v,m;l=!!t?.isTextInput,s=n(u=o?i(o):void 0),c=void 0!==(a=r(u))?a.HTMLInputElement:HTMLInputElement,d=void 0!==a?a.HTMLTextAreaElement:HTMLTextAreaElement,p=void 0!==a?a.HTMLElement:HTMLElement,v=void 0!==a?a.KeyboardEvent:KeyboardEvent,m=((e=document)=>e.activeElement)(s),(l=l||m instanceof c&&!K.has(m.type)||m instanceof d||m instanceof p&&m.isContentEditable)&&"keyboard"===e&&o instanceof v&&!A[o.key]||(e=>{f.current.isFocusVisible=e,b()})(W())};return L.add(e),()=>{L.delete(e)}},[s,p]);let{focusProps:y}=function(e){let{isDisabled:t,onFocus:r,onBlur:o,onFocusChange:l}=e,s=(0,u.useCallback)(e=>{if(i(e)===e.currentTarget)return o&&o(e),l&&l(!1),!0},[o,l]),a=c(s),d=(0,u.useCallback)(e=>{let t=i(e),o=n(t),u=o?((e=document)=>e.activeElement)(o):((e=document)=>e.activeElement)();t===e.currentTarget&&t===u&&(r&&r(e),l&&l(!0),a(e))},[l,r,a]);return{focusProps:{onFocus:!t&&(r||l||o)?d:void 0,onBlur:!t&&(o||l)?s:void 0}}}({isDisabled:d,onFocusChange:g}),{focusWithinProps:E}=function(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:l,onFocusWithinChange:s}=e,d=(0,u.useRef)({isFocusWithin:!1}),{addGlobalListener:f,removeAllGlobalListeners:p}=V(),v=(0,u.useCallback)(e=>{o(e.currentTarget,i(e))&&d.current.isFocusWithin&&!o(e.currentTarget,e.relatedTarget)&&(d.current.isFocusWithin=!1,p(),r&&r(e),s&&s(!1))},[r,s,d,p]),m=c(v),h=(0,u.useCallback)(e=>{if(!o(e.currentTarget,i(e)))return;let t=i(e),r=n(t),u=((e=document)=>e.activeElement)(r);if(!d.current.isFocusWithin&&u===t){l&&l(e),s&&s(!0),d.current.isFocusWithin=!0,m(e);let t=e.currentTarget;f(r,"focus",e=>{let n=i(e);if(d.current.isFocusWithin&&!o(t,n)){let e=new r.defaultView.FocusEvent("blur",{relatedTarget:n});Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t}),v(a(e))}},{capture:!0})}},[l,s,m,f,v]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:v}}}({isDisabled:!d,onFocusWithinChange:g});return{isFocused:p,isFocusVisible:m,focusProps:d?E:y}}],86567);let U=!1,B=0;function $(e){"touch"===e.pointerType&&(U=!0,setTimeout(()=>{U=!1},500))}function _(){let e=n(null);if(void 0!==e)return 0===B&&"u">typeof PointerEvent&&e.addEventListener("pointerup",$),B++,()=>{!(--B>0)&&"u">typeof PointerEvent&&e.removeEventListener("pointerup",$)}}e.s(["f",0,function(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:l,isDisabled:s}=e,[a,c]=(0,u.useState)(!1),d=(0,u.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,u.useEffect)(_,[]);let{addGlobalListener:f,removeAllGlobalListeners:p}=V(),{hoverProps:v,triggerHoverEnd:m}=(0,u.useMemo)(()=>{let e=(e,t)=>{let n=d.target;d.pointerType="",d.target=null,"touch"!==t&&d.isHovered&&n&&(d.isHovered=!1,p(),l&&l({type:"hoverend",target:n,pointerType:t}),r&&r(!1),c(!1))},u={};return"u">typeof PointerEvent&&(u.onPointerEnter=l=>{U&&"mouse"===l.pointerType||((l,u)=>{if(d.pointerType=u,s||"touch"===u||d.isHovered||!o(l.currentTarget,i(l)))return;d.isHovered=!0;let a=l.currentTarget;d.target=a,f(n(i(l)),"pointerover",t=>{d.isHovered&&d.target&&!o(d.target,i(t))&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:a,pointerType:u}),r&&r(!0),c(!0)})(l,l.pointerType)},u.onPointerLeave=t=>{!s&&o(t.currentTarget,i(t))&&e(t,t.pointerType)}),{hoverProps:u,triggerHoverEnd:e}},[t,r,l,s,d,f,p]);return(0,u.useEffect)(()=>{s&&m({currentTarget:d.target},d.pointerType)},[s]),{hoverProps:v,isHovered:a}}],45229);var G=Object.defineProperty,q=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?G(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n};let Y=new class{constructor(){q(this,"current",this.detect()),q(this,"handoffState","pending"),q(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"u"<typeof window||"u"<typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function z(e){var t;return Y.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function X(e){var t,n;return Y.isServer?null:null==e?document:null!=(n=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e))?n:document}function J(e){var t,n;return null!=(n=null==(t=X(e))?void 0:t.activeElement)?n:null}function Z(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function Q(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add(()=>e.removeEventListener(n,r,o))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return Z(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=Q();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function ee(){let[e]=(0,u.useState)(Q);return(0,u.useEffect)(()=>()=>e.dispose(),[e]),e}e.s(["f",0,Y],81093),e.s(["z",0,J,"o",0,z,"g",0,X,"M",0,function(e){return J(e)===e}],80795),e.s(["f",0,Z],38403),e.s(["f",0,Q],60004),e.s(["f",0,ee],26171);let et=(e,t)=>{Y.isServer?(0,u.useEffect)(e,t):(0,u.useLayoutEffect)(e,t)};function en(e){let t=(0,u.useRef)(e);return et(()=>{t.current=e},[e]),t}e.s(["f",0,et],64728),e.s(["f",0,en],15067);let er=function(e){let t=en(e);return u.default.useCallback((...e)=>t.current(...e),[t])};e.s(["f",0,er],93481),e.s(["f",0,function({disabled:e=!1}={}){let t=(0,u.useRef)(null),[n,r]=(0,u.useState)(!1),o=ee(),i=er(()=>{t.current=null,r(!1),o.dispose()}),l=er(e=>{if(o.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=z(e.currentTarget);o.addEventListener(n,"pointerup",i,!1),o.addEventListener(n,"pointermove",e=>{if(t.current){var n,o;let i,l;r((i=e.width/2,l=e.height/2,n={top:e.clientY-l,right:e.clientX+i,bottom:e.clientY+l,left:e.clientX-i},o=t.current.getBoundingClientRect(),!(!n||!o||n.right<o.left||n.left>o.right||n.bottom<o.top||n.top>o.bottom)))}},!1),o.addEventListener(n,"pointercancel",i,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:l,onPointerUp:i,onClick:i}}}],72016)}])})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,64906,(e,t,s)=>{let n="/_offline";(window.__NEXT_P=window.__NEXT_P||[]).push([n,()=>e.r(98312)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([n])})},98312,e=>{"use strict";var t=e.i(91398),s=e.i(3828),n=e.i(69322),r=e.i(5505);let a=()=>{let{formatMessage:e}=(0,n.X)(),a=(0,s.useRouter)();return(0,t.jsx)("div",{className:"flex min-h-screen items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"w-full max-w-md space-y-4 text-center",children:[(0,t.jsx)("div",{children:(0,t.jsx)("h2",{className:"text-center text-3xl text-text-primary",children:e({id:"offline_mode",defaultMessage:"You're Offline"})})}),(0,t.jsx)(r.U,{children:(0,t.jsxs)("div",{className:"space-y-6 px-4 pb-5 pt-3 sm:rounded-lg sm:px-10",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-orange-100 dark:bg-orange-900",children:(0,t.jsx)("svg",{className:"h-6 w-6 text-orange-600 dark:text-orange-400",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:"M18.364 5.636l-3.536 3.536m0 5.656l3.536 3.536M9.172 9.172L5.636 5.636m3.536 9.192L5.636 18.364M12 2.25v15M21 12H3"})})}),(0,t.jsx)("p",{className:"mt-4 text-sm font-semibold uppercase tracking-wide text-orange-600 dark:text-orange-400",children:e({id:"connection_status",defaultMessage:"No Connection"})}),(0,t.jsx)("p",{className:"mt-2 text-base text-text-muted",children:e({id:"no_internet_access",defaultMessage:"You aren't connected to a working internet connection."})}),(0,t.jsx)("p",{className:"mt-2 text-sm text-text-muted",children:e({id:"offline_help_message",defaultMessage:"Please check your connection and try again."})})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 mt-6",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>a.reload(),className:"group relative flex w-full justify-center rounded-md border border-transparent bg-accent py-2 px-4 text-sm font-medium text-text-on-accent hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2",children:[(0,t.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-white group-hover:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z",clipRule:"evenodd"})})}),e({id:"retry",defaultMessage:"Retry Connection"})]}),(0,t.jsxs)("button",{type:"button",onClick:()=>window.history.back(),className:"group relative flex w-full justify-center rounded-md border border-slate-300 bg-surface-raised dark:border-slate-600 py-2 px-4 text-sm font-medium text-text-secondary hover:bg-surface-raised focus:outline-hidden focus:ring-2 focus:ring-focus-ring dark:focus:ring-focus-ring focus:ring-offset-2",children:[(0,t.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-text-muted group-hover:text-slate-600 dark:group-hover:text-slate-300",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M7.707 14.707a1 1 0 01-1.414 0L3 11.414V13a1 1 0 11-2 0V9a1 1 0 011-1h4a1 1 0 110 2H4.414l3.293 3.293a1 1 0 010 1.414z",clipRule:"evenodd"})})}),e({id:"go_back",defaultMessage:"Go Back"})]})]})]})})]})})};a.getLayout=e=>e,e.s(["default",0,a])}]);
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[46758,e=>{var r=e.i(91398),t=e.i(56206),s=e.i(69322);e.s(["f",0,({isActive:e,activeText:i=null,activeClassName:a="",inActiveClassName:l="",inActiveText:d=null,containerClassName:n=""})=>{let{formatMessage:o}=(0,s.X)();return(0,r.jsx)("span",{className:(0,t.U)("",n),children:e?(0,r.jsx)("span",{className:(0,t.U)("inline-flex items-center border rounded-full px-2.5 py-0.5 text-sm font-medium bg-emerald-50 dark:bg-emerald-900/30 text-emerald-700 dark:text-emerald-300 border-emerald-200 dark:border-emerald-800 uppercase",a),children:i||o({id:"active",defaultMessage:"Active"})}):(0,r.jsx)("span",{className:(0,t.U)("inline-flex items-center border rounded-full px-2.5 py-0.5 text-sm font-medium bg-amber-100 dark:bg-yellow-900/30 text-yellow-800 dark:text-yellow-300 border-amber-400 dark:border-yellow-800 uppercase",l),children:d||o({id:"inactive",defaultMessage:"In-Active"})})})}])},65897,e=>{var r=e.i(91398),t=e.i(56206);e.s(["f",0,({value:e,className:s,onChange:i=()=>{},rows:a=7,...l})=>{let d=Math.max(e?e.split("\n").length:1,a);return(0,r.jsx)("textarea",{className:(0,t.U)("text-black dark:bg-slate-900 dark:text-slate-200 border-transparent border-t border-t-border-subtle resize-y",s),value:e,onChange:i,rows:d,...l})}])},70553,e=>{var r=e.i(91398),t=e.i(69322);e.s(["f",0,({children:e=null,totalRecords:s=null})=>{let{formatMessage:i}=(0,t.X)();return(0,r.jsxs)("div",{className:"mt-5",children:[null!==s?(0,r.jsx)("div",{className:"text-md text-slate-950 dark:text-slate-100 mb-3",children:i({id:"total_records",defaultMessage:"{total} records found"},{total:s??0})}):null,e&&(0,r.jsx)("div",{className:"flex items-center mt-10",children:(0,r.jsx)("h3",{className:"text-xs leading-6 text-text-muted",children:e})})]})}])},2194,e=>{var r=e.i(91398),t=e.i(92802),t=t,s=e.i(56206),i=e.i(69322);e.s(["f",0,({message:e,className:a="",Icon:l=null})=>(0,r.jsx)("div",{className:(0,s.U)("rounded-md flex w-full flex-col items-center justify-center min-h-[176px] py-8 border-1 border-dashed border-border-default text-slate-500 dark:text-slate-600",a),children:(0,r.jsxs)("div",{className:"grid items-center justify-center",children:[(0,r.jsx)("div",{className:"flex items-center justify-center text-slate-400 dark:text-slate-600",children:l||(0,r.jsx)(t.f,{className:"h-6 w-6"})}),(0,r.jsx)(i.L,{id:"no_data_message",defaultMessage:"<p>No <span> {message} available</span> </p>",values:{p:e=>(0,r.jsx)("p",{className:"mt-2 m-auto flex items-center justify-center",children:e}),span:e=>(0,r.jsxs)("span",{className:"capitalize ml-1",children:[" ",e," "]}),message:e}})]})})],2194)},64481,e=>{var r=e.i(91788),t=e.i(30943);e.s(["f",0,({children:e,container:s=null,className:i=""})=>{let a=(0,r.useRef)(null),[l,d]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{let e=document.createElement("div");i&&(e.className=i),a.current=e;let r=s||document.body;return r.appendChild(e),d(!0),()=>{a.current&&r.contains(a.current)&&r.removeChild(a.current)}},[s,i]),l&&a.current)?(0,t.createPortal)(e,a.current):null}])},63094,e=>{var r=e.i(91398),t=e.i(91788),s=e.i(61898);let i=(e,r="")=>e&&"object"==typeof e?Object.entries(e).reduce((e,[s,a])=>{if(!a||"ref"===s)return e;let l=`${r}${s}`;return"string"==typeof a||t.default.isValidElement(a)?e[l]=a:"string"==typeof a.message&&a.message?e[l]=a.message:"object"==typeof a&&Object.assign(e,i(a,`${l}.`)),e},{}):{},a=({submitError:e="",fieldErrors:s={}})=>(0,r.jsx)("div",{className:"my-2 mb-5 text-rose-700",children:(0,r.jsxs)("ul",{className:"space-y-1",children:[e&&(0,r.jsx)("li",{className:"disabled",children:(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})},"submitError"),Object.entries(s).map(([e,s])=>(0,r.jsx)("li",{className:"disabled",children:(0,r.jsx)("button",{type:"button",className:"no-button text-danger","aria-label":"Error button",onClick:()=>{let r=document.getElementById(e);r&&r.focus()},children:t.default.isValidElement(s)?s:(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:s}})})},e))]})});e.s(["f",0,({displayFieldErrors:e=!1})=>{var t;let l,{submitError:d,rhf:n}=(0,s.f)(),o=e?(t=i(n?.formState?.errors),l=new Set,Object.fromEntries(Object.entries(t).filter(([,e])=>"string"!=typeof e||!l.has(e)&&(l.add(e),!0)))):{};return(d||e)&&(0,r.jsx)(a,{submitError:d,fieldErrors:o})}])},23239,e=>{var r=e.i(91398),t=e.i(56206),s=e.i(65897),i=e.i(60741),a=e.i(54879);e.s(["f",0,({validators:e=[],rows:l=10,...d})=>{let n=(0,i.f)({...d,validators:[...e,{isValid:e=>{try{return JSON?.parse(e),!0}catch(e){return!1}},intlMessageDescriptor:{id:"invalid_json_input",defaultMessage:"Invalid JSON input"}}]});return(0,r.jsx)(a.f,{...n,children:(0,r.jsx)(s.f,{className:(0,t.U)("mt-1 block w-full max-w-full rounded-md border-1 border-border-default dark:bg-slate-900 dark:text-slate-200 shadow-xs dark:shadow-none focus:ring-focus-ring sm:text-sm",{"border-rose-300 text-rose-600 focus:border-rose-600 focus:ring-rose-600":!!n.error},d.className),disabled:n.disabled,id:n.name,name:n.name,onChange:e=>{try{JSON.parse(e.target.value||"{}"),n.setError("")}catch(e){n.setError(e.message?.replace("JSON.parse",""))}finally{n.setValue(e.target.value,!0),n.setTouched(!0)}},onBlur:e=>{try{n.setValue(JSON.stringify(JSON.parse(e.target.value),void 0,2),!0),n.setError("")}catch(e){n.setError(e.message)}},placeholder:n.placeholder,autoComplete:n.autoComplete,value:n.value})})}])},33457,e=>{var r=e.i(91398),t=e.i(15361),s=e.i(69322),i=e.i(83147),a=e.i(84818),l=e.i(60193),d=e.i(23239),n=e.i(21128),o=e.i(98949),c=e.i(69211),u=e.i(63094);let m=({onSubmit:e,onSubmitSuccess:t,provider:i,disabled:a})=>{let{formatMessage:l}=(0,s.X)(),m=(0,o.f)({initialValues:{configuration:JSON.stringify(i?.configuration||{},null,2)},submit:e,getSubmitErrorMessage:e=>e?.message||"",onSubmitSuccess:t});return(0,r.jsx)(c.f,{form:m,className:"mt-6",children:(0,r.jsxs)("div",{className:"mt-1 sm:mt-0",children:[(0,r.jsx)(d.f,{id:"configuration",name:"configuration",disabled:a,value:m.api.values.configuration,label:l({id:"configuration",defaultMessage:"Configuration"})}),(0,r.jsx)(u.f,{}),!a&&(0,r.jsx)(n.f,{label:l({id:"update_configuration",defaultMessage:"Update configuration"}),className:"mt-3"})]})})};var f=e.i(46758),v=e.i(42469);e.s(["f",0,({provider:e,onSubmit:d,onSubmitSuccess:n,readOnly:o,children:c=null})=>{let{formatMessage:u}=(0,s.X)(),{formatDateTime:x}=(0,a.f)();return(0,r.jsx)("div",{className:"my-6",children:(0,r.jsx)("div",{className:"space-y-8",children:(0,r.jsxs)("div",{className:"space-y-8 sm:space-y-5",children:[(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("h3",{className:"text-2xl leading-6 text-text-primary mr-2",children:(0,i.D)(e?.interface)}),(0,r.jsx)(f.f,{containerClassName:"self-end",isActive:e?.isActive})]}),(0,r.jsxs)("div",{className:"space-y-4 max-w-xs",children:[(0,r.jsxs)("div",{className:"flex justify-between w-full gap-3",children:[(0,r.jsx)("dt",{className:"my-auto inline-block text-sm text-slate-400 ",children:u({id:"type_colon",defaultMessage:"Type:"})}),(0,r.jsx)("dd",{children:(0,r.jsx)(v.f,{text:e?.type,color:l._[e?.type]})})]}),(0,r.jsxs)("div",{className:"flex flex-col justify-center space-y-2",children:[(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("dt",{className:"text-sm font-normal text-slate-400 pr-2",children:u({id:"created_colon",defaultMessage:"Created:"})}),(0,r.jsx)("dd",{className:"ml-auto text-base",children:x(e?.created,{dateStyle:"long",timeStyle:"short"})})]}),(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("dt",{className:"text-sm font-normal text-slate-400 pr-2",children:u({id:"last_updated",defaultMessage:"Last Updated:"})}),(0,r.jsx)("dd",{className:"ml-auto text-base",children:x(e?.updated,{dateStyle:"long",timeStyle:"short"})})]})]})]}),c&&(0,r.jsx)("div",{className:"w-full",children:c}),(0,r.jsx)(m,{onSubmit:d,onSubmitSuccess:n,provider:e,disabled:o}),(0,r.jsxs)("div",{className:"mt-6 mb-3",children:[(0,r.jsx)("dt",{className:"inline-block text-sm font-normal text-slate-400",children:u({id:"configuration_status",defaultMessage:"Configuration status"})}),e?.configurationError?(0,r.jsx)("dd",{className:"mt-2",children:(0,r.jsxs)("div",{className:"flex items-start p-3 bg-rose-50 dark:bg-rose-900/20 border border-rose-200 dark:border-rose-800 rounded-md",children:[(0,r.jsx)("svg",{className:"h-5 w-5 text-rose-400 dark:text-rose-500 mt-0.5 mr-3 flex-shrink-0",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z",clipRule:"evenodd"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-sm font-medium text-rose-800 dark:text-rose-200",children:u({id:"configuration_invalid",defaultMessage:"Invalid configuration"})}),(0,r.jsx)("div",{className:"mt-1 text-sm text-rose-700 dark:text-rose-300",children:e?.configurationError})]})]})}):(0,r.jsx)("dd",{className:"mt-2",children:(0,r.jsxs)("div",{className:"flex items-center p-3 bg-emerald-50 dark:bg-emerald-900/20 border border-emerald-200 dark:border-emerald-800 rounded-md",children:[(0,r.jsx)(t.f,{className:"h-5 w-5 text-emerald-600 dark:text-emerald-400 mr-3 flex-shrink-0"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-sm font-medium text-emerald-800 dark:text-emerald-200",children:u({id:"configuration_valid",defaultMessage:"Valid configuration"})}),(0,r.jsx)("p",{className:"mt-1 text-sm text-emerald-700 dark:text-emerald-300",children:u({id:"configuration_valid_description",defaultMessage:"All configuration parameters are correctly set and validated."})})]})]})})]})]})})})}],33457)},44658,e=>{var r=e.i(91398),t=e.i(3828),s=e.i(69322);e.s(["f",0,({providerType:e,onProviderFilterChange:i=null})=>{let{formatMessage:a}=(0,s.X)(),l=(0,t.useRouter)();return(0,r.jsx)("div",{className:"w-100",children:(0,r.jsx)("div",{className:"relative my-2 flex items-start",children:(0,r.jsxs)("select",{onChange:e=>{let r=e.target.value;if(i)return void i(e.target.value);let{type:t,...s}=l.query;r?l.push({query:{...s,type:r}}):l.push({query:{...s}})},defaultValue:null,id:"select-type",name:"select-type",autoComplete:"off",className:"dark:bg-slate-800 dark:text-slate-300 dark:border-slate-700 w-50 block w-full rounded-md border-slate-300 shadow-xs focus:ring-focus-ring sm:text-sm",children:[(0,r.jsx)("option",{value:"",children:a({id:"filter_by_type",defaultMessage:"Filter by type"})}),e.map(e=>(0,r.jsx)("option",{value:e,children:a({id:e,defaultMessage:e,description:"Delivery provider type"})},e))]})})})}])},65395,e=>{var r=e.i(91398),t=e.i(69322),s=e.i(3828),i=e.i(42469),a=e.i(8918),l=e.i(3095),d=e.i(60193),n=e.i(83147),o=e.i(46758);let c=({configuration:e,color:t})=>{let s=null;try{e&&(s=JSON.parse(e))}catch(r){s=e}return(0,r.jsx)("div",{className:"flex flex-wrap",children:s&&s.map(e=>{var s;let a=`${e.key} | ${null==(s=e.value)?"":"object"==typeof s?JSON.stringify(s):String(s)}`,l=a.length>20?`${a.slice(0,20)}...`:a;return(0,r.jsx)(i.f,{text:l,color:t,square:!0,className:"px-1.5 py-0 mr-2 my-1"},`${e.key}-${JSON.stringify(e.value)}`)})})},u=({provider:e,onRemove:t,providerPath:u,canEdit:m,canDelete:f})=>{let v=(0,s.useRouter)(),x=async()=>{await t(e?._id)};return(0,r.jsxs)(a.f.Row,{children:[(0,r.jsx)(a.f.Cell,{children:(0,r.jsxs)("div",{className:"text-text-primary",children:[(0,r.jsxs)("span",{className:"flex items-center",children:[(0,r.jsx)("span",{className:"mr-2",children:(0,n.D)(e?.interface)}),(0,r.jsx)(o.f,{isActive:e?.isActive})]}),(0,r.jsx)(c,{configuration:e?.configuration,color:d._[e?.type]})]})}),(0,r.jsx)(a.f.Cell,{children:(0,r.jsx)("span",{className:"font-semibold",children:(0,r.jsx)(i.f,{text:e?.type,color:d._[e?.type],square:!0})})}),(m||f)&&(0,r.jsx)(a.f.Cell,{children:(0,r.jsx)(l.f,{onEdit:m?()=>{v.push(`${u}=${e?._id}`)}:void 0,onDelete:f?x:void 0,showEdit:m,showDelete:f})})]})};e.s(["f",0,({providers:e,providerPath:s,onRemove:i,canEdit:l,canDelete:d})=>{let{formatMessage:n}=(0,t.X)();return(0,r.jsxs)(a.f,{children:[e?.map(e=>(0,r.jsxs)(a.f.Row,{header:!0,children:[(0,r.jsx)(a.f.Cell,{children:n({id:"interface",defaultMessage:"Interface"})}),(0,r.jsx)(a.f.Cell,{children:n({id:"type",defaultMessage:"Type"})}),l||d?(0,r.jsx)(a.f.Cell,{children:(0,r.jsxs)("span",{className:"sr-only",children:[n({id:"edit",defaultMessage:"Edit"}),n({id:"delete",defaultMessage:"Delete"})]})}):(0,r.jsx)(a.f.Cell,{children:" "})]},e._id)),e?.map(e=>(0,r.jsx)(u,{provider:e,providerPath:s,onRemove:i,canEdit:l,canDelete:d},`${e?._id}-body`))]})}],65395)},8918,e=>{var r=e.i(91398),t=e.i(91788),s=e.i(56206),i=e.i(69322),a=e.i(88566),l=e.i(25575),d=e.i(3828),n=e.i(83147);let o=({onSort:e,sortDirection:t})=>t?"ASC"===t?(0,r.jsx)(l.f,{className:"ml-2 w-5 h-5 text-slate-700",onClick:e}):(0,r.jsx)(a.f,{className:"ml-2 w-5 h-5 text-slate-700",onClick:e}):(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"ml-2 w-6 h-6",onClick:e,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})});var c=e.i(2194);let u=e=>{let r=[],s=[],i=[];return t.default.Children.forEach(e.children,e=>{e?.props?.header?r.push(e):e?.props?.footer?i.push(e):s.push(e)}),{header:r,footer:i,body:s}},m=({className:e="",...a})=>{let[l,d]=(0,t.useState)(u(a)),{formatMessage:n}=(0,i.X)(),o={...l,header:t.default.Children.map(l.header,e=>t.default.cloneElement(e))};return(0,t.useEffect)(()=>{d(u(a))},[a.children]),o.header.length||o.body.length?(0,r.jsxs)("table",{className:(0,s.U)("overflow-hidden my-3 flex w-full flex-row flex-nowrap divide-y divide-slate-200 dark:divide-slate-600 shadow-sm sm:rounded-lg sm:bg-white dark:bg-slate-950",e),...a,children:[(0,r.jsx)("thead",{className:"hidden sm:table-header-group bg-surface-raised text-sm text-text-secondary",children:o.header}),o.body.length?(0,r.jsx)("tbody",{className:"space-y-4 sm:space-y-0 flex-1 sm:divide-y divide-slate-200 dark:divide-slate-700 sm:bg-white dark:sm:bg-slate-800 sm:flex-none",children:o.body}):null,o.footer.length?(0,r.jsx)("tfoot",{children:o.footer}):null]}):(0,r.jsx)(c.f,{message:n({id:"data",defaultMessage:"Data"})})};m.Row=({className:e="",children:i=[],header:a=!1,enablesort:l=!1,...d})=>{let n=t.default.Children.map(i,e=>t.default?.cloneElement(e||(0,r.jsx)("span",{}),{header:a,enablesort:l}));return(0,r.jsx)("tr",{className:(0,s.U)("grid grid-cols-1 auto-rows-fr border border-border-subtle sm:border-0 rounded-md sm:mb-0 sm:table-row sm:rounded-none bg-surface sm:bg-inherit dark:sm:bg-inherit",e),...d,children:n})},m.Cell=({className:e="",header:t=!1,enablesort:i=!1,children:a,sortKey:l=null,defaultSortDirection:c=null,...u})=>{let m=(0,d.useRouter)(),f=(0,n.v)(m.query?.sort),v=t?"th":"td";return(0,r.jsx)(v,{className:(0,s.U)(t?"px-4 py-3 text-left text-text-muted":"whitespace-nowrap px-4 py-3 text-text-muted border-b dark:border-slate-300 last:border-b-0 sm:border-b-0 text-left flex items-center sm:table-cell",e),...u,children:(0,r.jsxs)("div",{className:"flex items-center",children:[a,"th"===v&&i&&l&&(0,r.jsx)(o,{onSort:e=>{var r;let t;e.preventDefault(),((r=f[l])?"ASC"===r?"DESC":null:"ASC")||!f[l]?t={...f,[l]:"ASC"===f[l]?"DESC":"ASC"}:(delete f[l],t=f);let s=Object.entries(t).map(([e,r])=>[e,r].join("_")).join(","),{sort:i,...a}=m.query,d=Object.keys(a).map(e=>[e,a[e]].join("=")).join("&"),o=0===Object.keys(a).length?`${m.basePath}?sort=${s}`:`${m.basePath}?${d}&sort=${s}`;s?m.push(o):m.push({query:(0,n._)(a)})},sortDirection:Object.keys(f).length?f[l]:c})]})})},e.s(["f",0,m],8918)},3095,e=>{var r=e.i(91398),t=e.i(91788),s=e.i(69322),i=e.i(86712),a=e.i(76842),l=e.i(24557),d=e.i(64481);e.s(["f",0,({onEdit:e,onDelete:n,editLabel:o,deleteLabel:c,showEdit:u=!0,showDelete:m=!0})=>{let{formatMessage:f}=(0,s.X)(),[v,x]=(0,t.useState)(!1),[p,h]=(0,t.useState)({top:0,left:0}),y=(0,t.useRef)(null),g=(0,t.useRef)(null);(0,t.useEffect)(()=>{let e=e=>{y.current&&!y.current.contains(e.target)&&x(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let j=(e,r)=>{e.stopPropagation(),e.preventDefault(),r&&r(),x(!1)};return 0===[u&&e,m&&n].filter(Boolean).length?null:(0,r.jsxs)("div",{className:"flex justify-end w-full",children:[(0,r.jsx)("button",{ref:g,type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),v||(()=>{if(!g.current)return;let e=g.current.getBoundingClientRect(),r=e.bottom+4,t=e.right-192;t<8&&(t=8),r+80>window.innerHeight-8&&(r=e.top-80-4),h({top:r,left:t})})(),x(!v)},className:"flex items-center justify-center w-8 h-8 rounded-md hover:bg-surface-raised transition-colors","aria-label":f({id:"table_actions_menu",defaultMessage:"Actions menu"}),children:(0,r.jsx)(i.f,{className:"w-5 h-5 text-text-muted"})}),v&&(0,r.jsx)(d.f,{children:(0,r.jsx)("div",{ref:y,className:"fixed w-48 bg-surface rounded-md shadow-xl border border-border-subtle z-[9999]",style:{top:p.top,left:p.left},children:(0,r.jsxs)("div",{className:"py-1",children:[u&&e&&(0,r.jsxs)("button",{type:"button",onClick:r=>j(r,e),className:"flex items-center w-full px-4 py-2 text-sm text-text-secondary hover:bg-surface-raised transition-colors",children:[(0,r.jsx)(a.f,{className:"mr-3 h-5 w-5"}),o||f({id:"edit",defaultMessage:"Edit"})]}),m&&n&&(0,r.jsxs)("button",{type:"button",onClick:e=>j(e,n),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,r.jsx)(l.f,{className:"mr-3 h-5 w-5"}),c||f({id:"delete",defaultMessage:"Delete"})]})]})})})]})}])},36494,e=>{var r=e.i(59080);let t=r.a`
|
|
2
|
-
fragment AddressFragment on Address {
|
|
3
|
-
firstName
|
|
4
|
-
lastName
|
|
5
|
-
company
|
|
6
|
-
addressLine
|
|
7
|
-
postalCode
|
|
8
|
-
city
|
|
9
|
-
countryCode
|
|
10
|
-
regionCode
|
|
11
|
-
}
|
|
12
|
-
`;e.s(["f",0,t])},93333,e=>{var r=e.i(59080),t=e.i(32171);let s=r.a`
|
|
13
|
-
query DeliveryProvidersType {
|
|
14
|
-
deliveryProviderType: __type(name: "DeliveryProviderType") {
|
|
15
|
-
options: enumValues {
|
|
16
|
-
value: name
|
|
17
|
-
label: description
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
`;e.s(["f",0,()=>{let{data:e,loading:r,error:i}=(0,t.f)(s);return{deliveryProviderType:e?.deliveryProviderType?.options||[],loading:r,error:i}}])},35997,e=>{var r=e.i(59080),t=e.i(32171),s=e.i(36494);let i=r.a`
|
|
22
|
-
query DeliveryProviders($type: DeliveryProviderType) {
|
|
23
|
-
deliveryProviders(type: $type) {
|
|
24
|
-
_id
|
|
25
|
-
created
|
|
26
|
-
updated
|
|
27
|
-
deleted
|
|
28
|
-
type
|
|
29
|
-
isActive
|
|
30
|
-
configuration
|
|
31
|
-
interface {
|
|
32
|
-
_id
|
|
33
|
-
label
|
|
34
|
-
version
|
|
35
|
-
}
|
|
36
|
-
configurationError
|
|
37
|
-
... on DeliveryProviderPickUp {
|
|
38
|
-
pickUpLocations {
|
|
39
|
-
_id
|
|
40
|
-
name
|
|
41
|
-
address {
|
|
42
|
-
...AddressFragment
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
deliveryProvidersCount(type: $type)
|
|
48
|
-
}
|
|
49
|
-
${s.f}
|
|
50
|
-
`;e.s(["f",0,({type:e=null}={})=>{let{data:r,loading:s,error:a}=(0,t.f)(i,{variables:{type:e}});return{deliveryProviders:r?.deliveryProviders||[],loading:s,error:a,deliveryProvidersCount:r?.deliveryProvidersCount||0}}])},7125,43007,e=>{var r=e.i(91398),t=e.i(3828);e.i(51523);var s=e.i(19518),i=e.i(69322),a=e.i(28401),l=e.i(50595),d=e.i(25327),n=e.i(53576),o=e.i(15971),c=e.i(6607),u=e.i(59080),m=e.i(76204);let f=u.a`
|
|
51
|
-
mutation RemoveDeliveryProvider($deliveryProviderId: ID!) {
|
|
52
|
-
removeDeliveryProvider(deliveryProviderId: $deliveryProviderId) {
|
|
53
|
-
_id
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
`,v=()=>{let[e]=(0,m.f)(f);return{removeDeliveryProvider:async({deliveryProviderId:r})=>e({variables:{deliveryProviderId:r},refetchQueries:["DeliveryProviders","ShopStatus"]})}};e.s(["f",0,v],43007);var x=e.i(36494);let p=u.a`
|
|
57
|
-
mutation UpdateDeliveryProvider(
|
|
58
|
-
$deliveryProvider: UpdateProviderInput!
|
|
59
|
-
$deliveryProviderId: ID!
|
|
60
|
-
) {
|
|
61
|
-
updateDeliveryProvider(
|
|
62
|
-
deliveryProvider: $deliveryProvider
|
|
63
|
-
deliveryProviderId: $deliveryProviderId
|
|
64
|
-
) {
|
|
65
|
-
_id
|
|
66
|
-
created
|
|
67
|
-
updated
|
|
68
|
-
deleted
|
|
69
|
-
type
|
|
70
|
-
isActive
|
|
71
|
-
configuration
|
|
72
|
-
interface {
|
|
73
|
-
_id
|
|
74
|
-
label
|
|
75
|
-
version
|
|
76
|
-
}
|
|
77
|
-
configurationError
|
|
78
|
-
... on DeliveryProviderPickUp {
|
|
79
|
-
pickUpLocations {
|
|
80
|
-
_id
|
|
81
|
-
name
|
|
82
|
-
address {
|
|
83
|
-
...AddressFragment
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
${x.f}
|
|
90
|
-
`;var h=e.i(32171),y=e.i(70693),g=e.i(33457),j=e.i(21623),b=e.i(24608),w=e.i(83147),N=e.i(58971);e.s(["default",0,({deliveryProviderId:e})=>{let{formatMessage:f}=(0,i.X)(),{push:_,replace:P}=(0,t.useRouter)(),{setModal:k}=(0,c.f)(),{hasRole:C}=(0,N.f)(),{removeDeliveryProvider:M}=v(),{updateDeliveryProvider:D}=(()=>{let[e]=(0,m.f)(p);return{updateDeliveryProvider:async({deliveryProvider:{configuration:r},deliveryProviderId:t})=>e({variables:{deliveryProvider:{configuration:r},deliveryProviderId:t}})}})(),{deliveryProvider:E,loading:S}=(({deliveryProviderId:e=null})=>{let{customProperties:r}=(0,y.f)(),{data:t,loading:s,error:i}=(0,h.f)(((e="")=>u.a`
|
|
91
|
-
query DeliveryProvider($deliveryProviderId: ID!) {
|
|
92
|
-
deliveryProvider(deliveryProviderId: $deliveryProviderId) {
|
|
93
|
-
_id
|
|
94
|
-
created
|
|
95
|
-
updated
|
|
96
|
-
deleted
|
|
97
|
-
type
|
|
98
|
-
isActive
|
|
99
|
-
configuration
|
|
100
|
-
interface {
|
|
101
|
-
_id
|
|
102
|
-
label
|
|
103
|
-
version
|
|
104
|
-
}
|
|
105
|
-
configurationError
|
|
106
|
-
...on DeliveryProviderPickUp {
|
|
107
|
-
pickUpLocations {
|
|
108
|
-
_id
|
|
109
|
-
name
|
|
110
|
-
address {
|
|
111
|
-
...AddressFragment
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
${e}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
${x.f}
|
|
119
|
-
`)(r?.DeliveryProvider),{skip:!e,variables:{deliveryProviderId:e}});return{deliveryProvider:t?.deliveryProvider,loading:s,error:i}})({deliveryProviderId:e}),$=async({configuration:r})=>(await D({deliveryProvider:{configuration:JSON.parse(r||"[]")},deliveryProviderId:e}),!0),A=async()=>{await k((0,r.jsx)(o.f,{onCancelClick:async()=>k(""),message:f({id:"delete_delivery_provider_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this delivery provider?"}),onOkClick:async()=>{await k(""),await M({deliveryProviderId:e}),a.toast.success(f({id:"delivery_provider_deleted",defaultMessage:"Delivery provider deleted successfully"})),_("/delivery-provider")},okText:f({id:"delete_delivery_provider",defaultMessage:"Delete delivery provider"})}))};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.f,{currentPageTitle:(0,w.D)(E?.interface)}),(0,r.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,r.jsx)(d.f,{headerText:f({id:"update_delivery_configuration",defaultMessage:"Update delivery provider"}),title:f({id:"delivery_provider_title",defaultMessage:"Delivery provider {id}"},{id:E?._id})}),C(s.C.ManageDeliveryProviders)&&(0,r.jsx)(j.f,{variant:"danger",icon:(0,r.jsx)(b.f,{className:"h-5 w-5"}),text:"Delete",onClick:A})]}),S?(0,r.jsx)(n.f,{}):(0,r.jsx)(g.f,{readOnly:!C(s.C.ManageDeliveryProviders),provider:E,onSubmit:$,onSubmitSuccess:()=>{P("/delivery-provider")},children:E?.type==="PICKUP"&&E.pickUpLocations?.length>0&&(0,r.jsxs)("div",{className:"mt-6",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold mb-2",children:f({id:"pickup_locations",defaultMessage:"Pick-up Locations"})}),(0,r.jsx)("ul",{className:"space-y-2",children:E.pickUpLocations.map(e=>(0,r.jsxs)("li",{className:"border rounded-md p-3 bg-surface",children:[(0,r.jsx)("div",{className:"font-medium",children:e.name}),e.address&&(0,r.jsxs)("div",{className:"text-sm text-text-secondary",children:[e.address.addressLine,e.address.addressLine2?`, ${e.address.addressLine2}`:"",", ",e.address.city,", ",e.address.regionCode,","," ",e.address.postalCode,", ",e.address.countryCode]})]},e._id))})]})})]})}],7125)},20976,e=>{var r=e.i(91398),t=e.i(3828);e.i(51523);var s=e.i(19518),i=e.i(69322),a=e.i(28401),l=e.i(58971),d=e.i(50595),n=e.i(70553),o=e.i(53576),c=e.i(25327),u=e.i(44658),m=e.i(65395),f=e.i(35997),v=e.i(93333),x=e.i(43007),p=e.i(15971),h=e.i(6607),y=e.i(7125);e.s(["default",0,()=>{let{query:e}=(0,t.useRouter)(),{type:g,deliveryProviderId:j}=e,{formatMessage:b}=(0,i.X)(),{hasRole:w}=(0,l.f)(),{deliveryProviders:N,deliveryProvidersCount:_,loading:P}=(0,f.f)({type:g}),{setModal:k}=(0,h.f)(),{removeDeliveryProvider:C}=(0,x.f)(),{deliveryProviderType:M}=(0,v.f)(),D=async e=>{await k((0,r.jsx)(p.f,{onCancelClick:async()=>k(""),message:b({id:"delete_delivery_provider_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this delivery provider?"}),onOkClick:async()=>{k(""),await C({deliveryProviderId:e}),a.toast.success(b({id:"deliveryProviders_deleted",defaultMessage:"DeliveryProviders deleted successfully"}))},okText:b({id:"delete_delivery_provider",defaultMessage:"Delete delivery provider"})}))};return j?(0,r.jsx)(y.default,{deliveryProviderId:j}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.f,{}),(0,r.jsx)(c.f,{headerText:b((_??0)===1?{id:"delivery_provider_count_header_singular",defaultMessage:"1 Delivery Provider"}:{id:"delivery_providers_count_header",defaultMessage:"{count} Delivery Providers"},{count:_??0}),addPath:w(s.C.ManageDeliveryProviders)&&"/delivery-provider/new",addButtonText:b({id:"add_delivery_provider",defaultMessage:"Add Delivery Provider"})}),(0,r.jsx)(n.f,{children:(0,r.jsx)(u.f,{providerType:M?.map(({value:e})=>e)})}),P?(0,r.jsx)(o.f,{}):(0,r.jsx)(m.f,{canEdit:w(s.C.ViewDeliveryProvider),canDelete:w(s.C.ManageDeliveryProviders),providerPath:"/delivery-provider?deliveryProviderId",providers:N,onRemove:D})]})}])},88566,25575,e=>{var r=e.i(91788);let t=r.forwardRef(function({title:e,titleId:t,...s},i){return r.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:i,"aria-labelledby":t},s),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))});e.s(["f",0,t],88566);let s=r.forwardRef(function({title:e,titleId:t,...s},i){return r.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:i,"aria-labelledby":t},s),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z",clipRule:"evenodd"}))});e.s(["f",0,s],25575)},76842,e=>{var r=e.i(91788);let t=r.forwardRef(function({title:e,titleId:t,...s},i){return r.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:i,"aria-labelledby":t},s),e?r.createElement("title",{id:t},e):null,r.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,t],76842)},24557,e=>{var r=e.i(91788);let t=r.forwardRef(function({title:e,titleId:t,...s},i){return r.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:i,"aria-labelledby":t},s),e?r.createElement("title",{id:t},e):null,r.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,t],24557)},15361,e=>{var r=e.i(89974);e.s(["f",()=>r.f])},86712,e=>{var r=e.i(93026);e.s(["f",()=>r.f])}],89237,(e,r,t)=>{let s="/delivery-provider";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(20976)]),r.hot&&r.hot.dispose(function(){window.__NEXT_P.push([s])})}]);
|