@unchainedshop/admin-ui 5.0.0-alpha.10 → 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-HTPSKUXQ.js → chunk-33ZO52Z7.js} +3337 -1778
- package/dist/{chunk-AE5LOZGH.js → chunk-4MXPTVDL.js} +16 -58
- package/dist/{chunk-I64TXIE7.js → chunk-ATZJXTRA.js} +1 -1
- package/dist/{chunk-AOR2B5N5.js → chunk-BOMSMJF2.js} +4 -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-E7BVYJ3R.js → chunk-ED2FP42R.js} +2 -2
- package/dist/{chunk-H6G4UTZ5.js → chunk-GWMLIF3C.js} +5 -11
- package/dist/chunk-IWKDBADX.js +73 -0
- package/dist/{chunk-3L6EZQ6P.js → chunk-NFJE5EJG.js} +1 -1
- package/dist/chunk-VYEXPG3M.js +107 -0
- package/dist/{chunk-DTJ2DTKS.js → chunk-YUXHILXY.js} +15 -3
- package/dist/{chunk-VDKQGOMV.js → chunk-ZUOVKRKC.js} +118 -1
- package/dist/components/ui/Badge.d.ts.map +1 -1
- package/dist/components/ui/BreadCrumbs.d.ts.map +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/Pagination.d.ts.map +1 -1
- package/dist/components/ui/form/Combobox.d.ts.map +1 -1
- package/dist/components/ui/form/TextField.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 +814 -292
- package/dist/gql/operation-types.d.ts +195 -19
- package/dist/gql/operation-types.d.ts.map +1 -1
- package/dist/gql/schema-types.d.ts +65 -9
- package/dist/gql/schema-types.d.ts.map +1 -1
- package/dist/hooks.js +5 -5
- package/dist/modal.js +5 -5
- package/dist/modules/accounts.js +183 -3
- package/dist/modules/assortment.js +82 -3
- package/dist/modules/common/components/AppContext.d.ts.map +1 -1
- package/dist/modules/common/components/FormWrapper.d.ts.map +1 -1
- package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -1
- package/dist/modules/common/data/miscellaneous.d.ts +1 -0
- package/dist/modules/common/data/miscellaneous.d.ts.map +1 -1
- package/dist/modules/country.js +1 -1
- package/dist/modules/currency.js +1 -1
- package/dist/modules/delivery-provider.js +1 -1
- package/dist/modules/enrollment.js +66 -9
- package/dist/modules/event.js +1 -1
- package/dist/modules/filter.js +52 -3
- package/dist/modules/language.js +1 -1
- package/dist/modules/order.js +2 -2
- package/dist/modules/payment-providers.js +1 -1
- package/dist/modules/product-review.js +3 -3
- package/dist/modules/product.js +261 -13
- package/dist/modules/quotation.js +8 -1
- package/dist/modules/token.js +2 -2
- package/dist/modules/warehousing-providers.js +1 -1
- package/dist/modules/work.js +18 -102
- package/dist/plugins.js +1 -1
- package/dist/providers.js +6 -6
- 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 +3965 -3417
- package/out/403/index.html +3 -2
- package/out/404/index.html +3 -2
- package/out/404.html +3 -2
- package/out/423/index.html +3 -2
- package/out/500/index.html +3 -2
- 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/{2kzyda4a6mqut.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/0hv3x0mo1tt7i.js +5 -0
- 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/0mcu2o1ir2t_w.js +7 -0
- 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/0p7said9rdor1.js +1 -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/157ndq6b9jcvv.js +342 -0
- 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/1mx0p6r-9c5u_.js +4 -0
- 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/1sh2ogc7tcbu-.js +1 -0
- package/out/_next/static/chunks/1t8jj0-6g8uyd.js +1 -0
- 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/1ug1ie2lrhi0a.js +7 -0
- package/out/_next/static/chunks/1ulje1tawz8fl.js +1 -0
- 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/1z-etrje5tsj6.js +7 -0
- package/out/_next/static/chunks/1z1d11slpalrq.js +4 -0
- package/out/_next/static/chunks/1z1mbux-7g74d.js +1 -0
- package/out/_next/static/chunks/1zdral15la_p7.js +99 -0
- package/out/_next/static/chunks/2-4610weysas_.js +1 -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/249b4cg2ev597.js +187 -0
- 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/28oppyg7ev102.js +1 -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/2ipcn3vy6d4_6.js +2 -0
- 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/2l8gepfm4kyjp.js +1 -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/2u64ldp2xfy8a.js +709 -0
- 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/2y8uau15r3p-o.js +1 -0
- package/out/_next/static/chunks/2zb-xmda5rbn0.js +1 -0
- package/out/_next/static/chunks/2zsvxbghbsuz1.js +4 -0
- package/out/_next/static/chunks/3-ve59izq9j-p.js +1 -0
- package/out/_next/static/chunks/3205eg3ochzp4.js +297 -0
- 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/36x7q29atus_r.js +161 -0
- package/out/_next/static/chunks/37jjn1wguhj-a.js +5 -0
- package/out/_next/static/chunks/393--hagnnm97.js +39 -0
- 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/3e7d8sb4289js.js +5 -0
- 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/3jxeyjg2g7w94.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/3xs_undkbcqp7.js +367 -0
- 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-077hmtqrhcoji.js +1 -0
- package/out/_offline/index.html +3 -2
- package/out/account/forgot-password/index.html +3 -2
- package/out/account/index.html +3 -2
- package/out/assortments/AssortmentDetailPage/index.html +3 -2
- package/out/assortments/index.html +3 -2
- package/out/assortments/new/index.html +3 -2
- package/out/copilot/index.html +3 -2
- package/out/country/CountryDetailPage/index.html +3 -2
- package/out/country/index.html +3 -2
- package/out/country/new/index.html +3 -2
- package/out/currency/CurrencyDetailPage/index.html +3 -2
- package/out/currency/index.html +3 -2
- package/out/currency/new/index.html +3 -2
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -2
- package/out/delivery-provider/index.html +3 -2
- package/out/delivery-provider/new/index.html +3 -2
- package/out/enrollments/EnrollmentDetailPage/index.html +3 -2
- package/out/enrollments/index.html +3 -2
- package/out/events/EventDetailPage/index.html +3 -2
- package/out/events/index.html +3 -2
- package/out/exports/index.html +3 -2
- package/out/ext/[[...slug]]/index.html +3 -2
- package/out/external/index.html +3 -2
- package/out/filters/FilterDetailPage/index.html +3 -2
- package/out/filters/index.html +3 -2
- package/out/filters/new/index.html +3 -2
- package/out/index.html +3 -2
- package/out/install/index.html +3 -2
- package/out/language/LanguageDetailPage/index.html +3 -2
- package/out/language/index.html +3 -2
- package/out/language/new/index.html +3 -2
- package/out/log-in/index.html +3 -2
- package/out/orders/OrderDetailPage/index.html +3 -2
- package/out/orders/index.html +3 -2
- package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -2
- package/out/payment-provider/index.html +3 -2
- package/out/payment-provider/new/index.html +3 -2
- package/out/products/ProductDetailPage/index.html +3 -2
- package/out/products/index.html +3 -2
- package/out/products/new/index.html +3 -2
- package/out/quotations/QuotationDetailPage/index.html +3 -2
- package/out/quotations/index.html +3 -2
- package/out/reset-password/index.html +3 -2
- package/out/sign-up/index.html +3 -2
- package/out/styleguide/index.html +3 -2
- package/out/tokens/TokenDetailPage/index.html +3 -2
- package/out/tokens/index.html +3 -2
- package/out/users/UserDetailPage/index.html +3 -2
- package/out/users/index.html +3 -2
- package/out/users/new/index.html +3 -2
- package/out/verify-email/index.html +3 -2
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -2
- package/out/warehousing-provider/index.html +3 -2
- package/out/warehousing-provider/new/index.html +3 -2
- package/out/works/WorkDetailPage/index.html +3 -2
- package/out/works/WorkQueueListView/index.html +3 -2
- package/out/works/index.html +3 -2
- package/out/works/management/index.html +3 -2
- 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/accounts/index.ts +6 -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/assortment/index.ts +2 -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/enrollment/index.ts +2 -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/filter/index.ts +2 -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/index.ts +4 -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/modules/work/index.ts +1 -0
- package/src/sdk/README.md +12 -3
- package/src/sdk/plugin-navigation.test.mjs +59 -0
- package/out/_next/static/chunks/0-2b37ubdpy0o.js +0 -7
- package/out/_next/static/chunks/012cafv-4m7rj.js +0 -807
- package/out/_next/static/chunks/02dnhll1bce87.js +0 -46
- package/out/_next/static/chunks/02ptvddfjlsxb.js +0 -1
- package/out/_next/static/chunks/03ebenjfvoj8n.js +0 -1
- package/out/_next/static/chunks/03r347235l6c4.js +0 -7
- package/out/_next/static/chunks/05au-xyt__0f2.js +0 -3
- package/out/_next/static/chunks/05nn5xr3ufcsh.js +0 -1
- package/out/_next/static/chunks/05o_q7jg8wucs.js +0 -44
- package/out/_next/static/chunks/05scroolqe8fu.js +0 -234
- package/out/_next/static/chunks/072qxdqjtqvn9.js +0 -11
- package/out/_next/static/chunks/0752goe9_9g2s.js +0 -110
- package/out/_next/static/chunks/07e-sk6v9u-qh.js +0 -807
- package/out/_next/static/chunks/07evy5u8ldd1y.js +0 -50
- package/out/_next/static/chunks/083ylavob4a8d.js +0 -3
- package/out/_next/static/chunks/08jrw03_vxllg.js +0 -54
- package/out/_next/static/chunks/08pag0k09j2b3.js +0 -807
- package/out/_next/static/chunks/09n6h-_l73rez.js +0 -13
- package/out/_next/static/chunks/0_b5faks_mrvi.js +0 -14
- package/out/_next/static/chunks/0a_bg-ub3r2eo.js +0 -60
- package/out/_next/static/chunks/0aqxsjssb0dh9.js +0 -21
- package/out/_next/static/chunks/0aw4jxe6zcc0c.js +0 -32
- package/out/_next/static/chunks/0b0hrx3sbbs70.js +0 -807
- package/out/_next/static/chunks/0bg4_y1qh5y5h.js +0 -47
- package/out/_next/static/chunks/0bgz44wi1lidl.js +0 -13
- package/out/_next/static/chunks/0dcpvidzyamvk.js +0 -100
- package/out/_next/static/chunks/0dnh0kr83_tj0.js +0 -1
- package/out/_next/static/chunks/0dxp17sbyy_dr.js +0 -22
- package/out/_next/static/chunks/0dxu94yin5gdn.js +0 -35
- package/out/_next/static/chunks/0e2c-jlh2q_eq.js +0 -74
- package/out/_next/static/chunks/0el7gr-83bm5j.js +0 -3
- package/out/_next/static/chunks/0f_ofo__wyqsp.js +0 -22
- package/out/_next/static/chunks/0gx9t6j5kx_ho.js +0 -9
- package/out/_next/static/chunks/0h0r_q6xa9qr_.js +0 -1
- package/out/_next/static/chunks/0i9ymn9xxs0nx.js +0 -18
- package/out/_next/static/chunks/0iy11ws57hzzr.js +0 -99
- package/out/_next/static/chunks/0j8_uikfyrn1f.js +0 -1
- package/out/_next/static/chunks/0jeddko6bac8h.js +0 -1
- package/out/_next/static/chunks/0jzx7vxh13cpi.js +0 -15
- package/out/_next/static/chunks/0kody3217__os.js +0 -16
- package/out/_next/static/chunks/0kwo-m1-mo-s-.js +0 -31
- package/out/_next/static/chunks/0lp_pnq1t06sl.js +0 -104
- package/out/_next/static/chunks/0m6jydfuy_4o3.js +0 -1
- package/out/_next/static/chunks/0mez27zlo26ni.js +0 -103
- package/out/_next/static/chunks/0nj8vn3509oe-.js +0 -9
- package/out/_next/static/chunks/0np9pcbt6dmxe.js +0 -25
- package/out/_next/static/chunks/0o7k5vanq57ch.js +0 -807
- package/out/_next/static/chunks/0r5wwinf72z4g.js +0 -1
- package/out/_next/static/chunks/0rqjr_lmrk4pz.js +0 -5
- package/out/_next/static/chunks/0swe0fkt4vyzn.js +0 -136
- package/out/_next/static/chunks/0u4st428hgv1v.js +0 -27
- package/out/_next/static/chunks/0u7--d8_-qyne.js +0 -83
- package/out/_next/static/chunks/0ubzi2s1spm4e.js +0 -342
- package/out/_next/static/chunks/0uecw_5mn0zvr.js +0 -110
- package/out/_next/static/chunks/0uw9cbq0ivaz0.js +0 -1
- package/out/_next/static/chunks/0uxwblyj0htyb.js +0 -1
- package/out/_next/static/chunks/0uyhr7vs9ltp0.js +0 -141
- package/out/_next/static/chunks/0vr19nswhvt2-.js +0 -14
- package/out/_next/static/chunks/0vyvc19p87f_r.js +0 -234
- package/out/_next/static/chunks/0wznlnzc2xsbz.js +0 -16
- package/out/_next/static/chunks/0ycu-q8fcc8ta.js +0 -1
- package/out/_next/static/chunks/0ytserk6fuf71.js +0 -175
- package/out/_next/static/chunks/0zoum0jzrtu0s.js +0 -145
- package/out/_next/static/chunks/1-6s62fsl_z_7.js +0 -126
- package/out/_next/static/chunks/10b6et0qn-pa0.js +0 -59
- package/out/_next/static/chunks/13m7st62a61df.js +0 -25
- package/out/_next/static/chunks/13u_a5l2xngm4.js +0 -1
- package/out/_next/static/chunks/15vz50rks0o2-.js +0 -238
- package/out/_next/static/chunks/1647yxi4ymq0z.js +0 -14
- package/out/_next/static/chunks/16hd7xvkocqxs.js +0 -807
- package/out/_next/static/chunks/16t18hhd4ax36.js +0 -2
- package/out/_next/static/chunks/17wle25pg9jkp.js +0 -11
- package/out/_next/static/chunks/18juy_eauk94g.js +0 -58
- package/out/_next/static/chunks/19eflki8bmivb.js +0 -81
- package/out/_next/static/chunks/19eu5d-wm2hfr.js +0 -23
- package/out/_next/static/chunks/19izcjxrrapb3.js +0 -9
- package/out/_next/static/chunks/1_jbj-c1d2606.js +0 -21
- package/out/_next/static/chunks/1_pwqdjxb6oou.js +0 -226
- package/out/_next/static/chunks/1ae-9ft5cgojf.js +0 -1
- package/out/_next/static/chunks/1bftmuhck_-7b.js +0 -1
- package/out/_next/static/chunks/1bww_2og01jxh.js +0 -807
- package/out/_next/static/chunks/1c0cemuv_tf6i.js +0 -16
- package/out/_next/static/chunks/1c4a2qxtb3r4_.js +0 -16
- package/out/_next/static/chunks/1cjd95y23a9qx.js +0 -1
- package/out/_next/static/chunks/1cy-2yb5j5_9b.js +0 -157
- package/out/_next/static/chunks/1dkv555kaccbl.js +0 -13
- package/out/_next/static/chunks/1dt9_bzfioi8a.js +0 -24
- package/out/_next/static/chunks/1fd7ewfb7bi_g.js +0 -234
- package/out/_next/static/chunks/1gncrqljnmqjn.js +0 -43
- package/out/_next/static/chunks/1gt65pz91hyuz.js +0 -1
- package/out/_next/static/chunks/1iewktf-9h_n8.js +0 -15
- package/out/_next/static/chunks/1l7p7exnzd0c2.js +0 -12
- package/out/_next/static/chunks/1nqu3ymv6lgev.js +0 -3
- package/out/_next/static/chunks/1o_8g-kpuqi9h.js +0 -1
- package/out/_next/static/chunks/1oent0-9-0rgb.js +0 -20
- package/out/_next/static/chunks/1og09fg689_nc.js +0 -180
- package/out/_next/static/chunks/1pj279k5ntty3.js +0 -13
- package/out/_next/static/chunks/1q_sewe1wbxsk.js +0 -54
- package/out/_next/static/chunks/1qvs4gd4rbhb2.js +0 -15
- package/out/_next/static/chunks/1rtv3c_klo0jk.js +0 -1
- package/out/_next/static/chunks/1sdqr2_r6o46f.js +0 -16
- package/out/_next/static/chunks/1vti949e9wuhz.js +0 -15
- package/out/_next/static/chunks/1x-yucftdml28.js +0 -1
- package/out/_next/static/chunks/1xbofs3ibkjvj.js +0 -1
- package/out/_next/static/chunks/1ylgjha1c0ua_.js +0 -124
- package/out/_next/static/chunks/1yp98n-n4gxwy.js +0 -15
- package/out/_next/static/chunks/1zcm_9oew7412.js +0 -14
- package/out/_next/static/chunks/2-e0d1qpp7rk9.js +0 -14
- package/out/_next/static/chunks/20ubrczdsehfm.js +0 -879
- package/out/_next/static/chunks/23m--gc-gjenm.js +0 -3
- package/out/_next/static/chunks/24-pobk4qjjvp.js +0 -3
- package/out/_next/static/chunks/24jptulqn322i.js +0 -15
- package/out/_next/static/chunks/24jyi7e2pq4gy.js +0 -15
- package/out/_next/static/chunks/252jebodi67kg.js +0 -1
- package/out/_next/static/chunks/26eux546aoag5.js +0 -58
- package/out/_next/static/chunks/270ua9t85a7ev.js +0 -5
- package/out/_next/static/chunks/28r_j2kquxrjn.js +0 -807
- package/out/_next/static/chunks/2_ccruvok3u8j.js +0 -16
- package/out/_next/static/chunks/2_ojfjgg8do9t.js +0 -1
- package/out/_next/static/chunks/2aj5aq_c0b4r_.js +0 -13
- package/out/_next/static/chunks/2ba3n9zx9e9q9.js +0 -807
- package/out/_next/static/chunks/2d-hxb31pgpn7.js +0 -13
- package/out/_next/static/chunks/2df2cqwidgpan.js +0 -15
- package/out/_next/static/chunks/2djnsowjy3p8y.js +0 -1
- package/out/_next/static/chunks/2dyj8q92_k5el.js +0 -708
- package/out/_next/static/chunks/2e0k9dt1emjfm.js +0 -1
- package/out/_next/static/chunks/2e3gba1n-yyuj.js +0 -15
- package/out/_next/static/chunks/2e_p1vqr0g_-_.js +0 -7
- package/out/_next/static/chunks/2e_te6sbs_5uw.js +0 -1
- package/out/_next/static/chunks/2f16josk9b_cl.js +0 -8
- package/out/_next/static/chunks/2fo2ki1egxbah.js +0 -39
- package/out/_next/static/chunks/2g8gzs8wpsofk.js +0 -2
- package/out/_next/static/chunks/2gh355-kh19zx.js +0 -13
- package/out/_next/static/chunks/2gr4t5xe0atdr.js +0 -15
- package/out/_next/static/chunks/2ib6fee-nqe-z.js +0 -23
- package/out/_next/static/chunks/2kjux30i3gg-c.js +0 -5
- package/out/_next/static/chunks/2ljoq6sr-g2da.js +0 -1
- package/out/_next/static/chunks/2ll_mqee86g8c.js +0 -1
- package/out/_next/static/chunks/2lx_iig9xewfj.js +0 -52
- package/out/_next/static/chunks/2lylr4-3tu1_t.js +0 -15
- package/out/_next/static/chunks/2n1v8ph2nt43w.js +0 -17
- package/out/_next/static/chunks/2o9hdz0gk1-s7.js +0 -165
- package/out/_next/static/chunks/2oadogfqpak51.js +0 -1
- package/out/_next/static/chunks/2oogwntgnu9rf.js +0 -17
- package/out/_next/static/chunks/2p4e3kh8sa8iq.js +0 -13
- package/out/_next/static/chunks/2q-mpau-4gsvd.js +0 -1
- package/out/_next/static/chunks/2rddaar-ns45d.js +0 -116
- package/out/_next/static/chunks/2s3qhuh87mu_w.js +0 -126
- package/out/_next/static/chunks/2s6u8274_jzk2.js +0 -105
- package/out/_next/static/chunks/2skfzjx2g9hkk.js +0 -134
- package/out/_next/static/chunks/2u6jwsqz0uhes.js +0 -24
- package/out/_next/static/chunks/2v4k4vpb2id7m.js +0 -44
- package/out/_next/static/chunks/2xctb084h1lyg.js +0 -329
- package/out/_next/static/chunks/2xgpwzpd6-tdb.js +0 -234
- package/out/_next/static/chunks/3-soz24u9483h.js +0 -15
- package/out/_next/static/chunks/30_ns6urg1dkn.js +0 -41
- package/out/_next/static/chunks/30nxkqu5mcga3.js +0 -1
- package/out/_next/static/chunks/313i1x81q2xj1.js +0 -1
- package/out/_next/static/chunks/31qwglme02a_r.js +0 -807
- package/out/_next/static/chunks/31sk60zzj3bc5.js +0 -17
- package/out/_next/static/chunks/325a7n__tfxy_.js +0 -61
- package/out/_next/static/chunks/33emlry70k-lv.js +0 -2
- package/out/_next/static/chunks/33v8la4hkia7j.js +0 -1
- package/out/_next/static/chunks/34ar-34flu6bu.js +0 -43
- package/out/_next/static/chunks/34z48lfdm9u0l.js +0 -9
- package/out/_next/static/chunks/351jscvbk_wb9.js +0 -13
- package/out/_next/static/chunks/357odtev0t245.js +0 -59
- package/out/_next/static/chunks/360g4b1clnt45.js +0 -142
- package/out/_next/static/chunks/360uyru28azf6.js +0 -20
- package/out/_next/static/chunks/366apf6d0xh2u.js +0 -30
- package/out/_next/static/chunks/36_zbuqpk5cpj.js +0 -14
- package/out/_next/static/chunks/36aqs7u7s-lb1.js +0 -119
- package/out/_next/static/chunks/36beon3q8orx2.js +0 -1
- package/out/_next/static/chunks/37703j9_zf5_h.js +0 -13
- package/out/_next/static/chunks/37rwzuocwsv_k.js +0 -16
- package/out/_next/static/chunks/37w6b3h04uc4c.js +0 -19
- package/out/_next/static/chunks/38ffn8gazqz8_.js +0 -3
- package/out/_next/static/chunks/38xse6_r51yqp.js +0 -234
- package/out/_next/static/chunks/39s8xbnm9f08v.js +0 -14
- package/out/_next/static/chunks/39x-p8r_sl0ng.js +0 -15
- package/out/_next/static/chunks/39zisxvmik0t_.js +0 -34
- package/out/_next/static/chunks/3_97tge0xvvon.js +0 -11
- package/out/_next/static/chunks/3aw-ri7876ngd.js +0 -39
- package/out/_next/static/chunks/3bv7gi3o6-41h.js +0 -11
- package/out/_next/static/chunks/3cdfuacs4_0d-.js +0 -1
- package/out/_next/static/chunks/3cxpx38ycu7u2.js +0 -9
- package/out/_next/static/chunks/3d1ofcqmlbg-5.js +0 -52
- package/out/_next/static/chunks/3e3i3qqkv_my7.js +0 -15
- package/out/_next/static/chunks/3ex71q3pp_ekc.js +0 -247
- package/out/_next/static/chunks/3g1lpkudwo8kg.js +0 -1
- package/out/_next/static/chunks/3h68t22714to5.js +0 -3
- package/out/_next/static/chunks/3jpzhwqgdnobq.js +0 -103
- package/out/_next/static/chunks/3jxuqt_2-j_uc.js +0 -18
- package/out/_next/static/chunks/3kqqv33l7ssn0.js +0 -16
- package/out/_next/static/chunks/3l-9xxd1i1sya.js +0 -1
- package/out/_next/static/chunks/3mancxzz8c7hl.js +0 -51
- package/out/_next/static/chunks/3mq2s9rfy78je.js +0 -27
- package/out/_next/static/chunks/3om1fkw-lrmng.js +0 -1
- package/out/_next/static/chunks/3oynij37wfjb2.js +0 -119
- package/out/_next/static/chunks/3pbyo5kkko3wh.js +0 -1
- package/out/_next/static/chunks/3pjja1obml896.js +0 -15
- package/out/_next/static/chunks/3qaiz-jwi7q2x.js +0 -1
- package/out/_next/static/chunks/3rh3nigvg06yu.js +0 -337
- package/out/_next/static/chunks/3rppjab6j3_k9.js +0 -1
- package/out/_next/static/chunks/3t_3vlnk1ntkb.js +0 -95
- package/out/_next/static/chunks/3tpo2ho54vtth.js +0 -807
- package/out/_next/static/chunks/3tqspv0ggt8j0.js +0 -17
- package/out/_next/static/chunks/3um54w4ca27n_.js +0 -17
- package/out/_next/static/chunks/3vet2a9q9rf2c.js +0 -61
- package/out/_next/static/chunks/3vjgbl76cgrmt.js +0 -1
- package/out/_next/static/chunks/3vz3gqmojh7sx.js +0 -4
- package/out/_next/static/chunks/3w2e5xa061qou.js +0 -9
- package/out/_next/static/chunks/3w9xrlkiztuwi.js +0 -23
- package/out/_next/static/chunks/3x4xfy_av3o0d.js +0 -1
- package/out/_next/static/chunks/3x9k13s5fam4j.js +0 -22
- package/out/_next/static/chunks/3xmtbqm0gddn8.js +0 -3
- package/out/_next/static/chunks/3z5uyt9mc9_fd.js +0 -2
- package/out/_next/static/chunks/3zlwp96x3hoy9.js +0 -16
- package/out/_next/static/chunks/3zr_sumh1g7il.js +0 -22
- package/out/_next/static/chunks/40jl8yfmy6tp6.js +0 -234
- package/out/_next/static/chunks/40xhwnc_48o73.js +0 -297
- package/out/_next/static/chunks/41-iysd7qkyg1.js +0 -16
- package/out/_next/static/chunks/4105a9rejv_p4.js +0 -1
- package/out/_next/static/chunks/41e2wlkp9_pvk.js +0 -28
- package/out/_next/static/chunks/41g7mv3yuhz6k.js +0 -68
- package/out/_next/static/chunks/43jyzccx6x0lw.js +0 -1
- package/out/_next/static/chunks/43vuxh3wdo567.js +0 -10
- package/out/_next/static/chunks/44daaafswok67.css +0 -1
- package/out/_next/static/chunks/452fv7r-tie6t.js +0 -1
- package/out/_next/static/chunks/457j51b69odrw.js +0 -1
- package/out/_next/static/chunks/turbopack-02vysfmmbped5.js +0 -1
- package/out/_next/static/chunks/turbopack-03fj2scz_09ul.js +0 -1
- package/out/_next/static/chunks/turbopack-07wtduwtfqsl_.js +0 -1
- package/out/_next/static/chunks/turbopack-0_zihh5ueb_wj.js +0 -1
- package/out/_next/static/chunks/turbopack-0b8-ww_z1vgvn.js +0 -1
- package/out/_next/static/chunks/turbopack-0beql_u-wc_3e.js +0 -1
- package/out/_next/static/chunks/turbopack-0dxdn-gyy3_qj.js +0 -1
- package/out/_next/static/chunks/turbopack-0hqw81t-42tbj.js +0 -1
- package/out/_next/static/chunks/turbopack-0jsdrr-oq87lm.js +0 -1
- package/out/_next/static/chunks/turbopack-0jxa33q3ikjqg.js +0 -1
- package/out/_next/static/chunks/turbopack-0k9zths9zte_8.js +0 -1
- package/out/_next/static/chunks/turbopack-0pa42wgwsv141.js +0 -1
- package/out/_next/static/chunks/turbopack-0te09_mp07k1x.js +0 -1
- package/out/_next/static/chunks/turbopack-0xsxl45thi-35.js +0 -1
- package/out/_next/static/chunks/turbopack-10-8q-q2zomxa.js +0 -1
- package/out/_next/static/chunks/turbopack-142w-8owzbg7_.js +0 -1
- package/out/_next/static/chunks/turbopack-18tezl3vagvil.js +0 -1
- package/out/_next/static/chunks/turbopack-1_1a-_v7vml72.js +0 -1
- package/out/_next/static/chunks/turbopack-1_k-7s9lmntml.js +0 -1
- package/out/_next/static/chunks/turbopack-1a47di2tss4e-.js +0 -1
- package/out/_next/static/chunks/turbopack-1c60gn7g-uduw.js +0 -1
- package/out/_next/static/chunks/turbopack-1e1yk3pkaodr5.js +0 -1
- package/out/_next/static/chunks/turbopack-1jtk1c9w2axlk.js +0 -1
- package/out/_next/static/chunks/turbopack-1k2ukl9u-7ovo.js +0 -1
- package/out/_next/static/chunks/turbopack-1lkz81ntcp1zv.js +0 -1
- package/out/_next/static/chunks/turbopack-1pkw_r5dvv20d.js +0 -1
- package/out/_next/static/chunks/turbopack-1pu2s2k3szn0s.js +0 -1
- package/out/_next/static/chunks/turbopack-1rxz_6lqtls5b.js +0 -1
- package/out/_next/static/chunks/turbopack-1uf07pugrv1fy.js +0 -1
- package/out/_next/static/chunks/turbopack-1uobzdn2r7ebw.js +0 -1
- package/out/_next/static/chunks/turbopack-1wv610ktbtzka.js +0 -1
- package/out/_next/static/chunks/turbopack-1wz4te1fj20zp.js +0 -1
- package/out/_next/static/chunks/turbopack-1zi2ss8eiiyfx.js +0 -1
- package/out/_next/static/chunks/turbopack-207p7bsc5wea7.js +0 -1
- package/out/_next/static/chunks/turbopack-21zngkzhonfcm.js +0 -1
- package/out/_next/static/chunks/turbopack-23y20ll8n-nwk.js +0 -1
- package/out/_next/static/chunks/turbopack-26wtylwa4_s95.js +0 -1
- package/out/_next/static/chunks/turbopack-27l7xplqpifq6.js +0 -1
- package/out/_next/static/chunks/turbopack-285oyoobdo21x.js +0 -1
- package/out/_next/static/chunks/turbopack-28b0zyhf3uqaq.js +0 -1
- package/out/_next/static/chunks/turbopack-28m_9eg3draop.js +0 -1
- package/out/_next/static/chunks/turbopack-29h9fgcal-fng.js +0 -1
- package/out/_next/static/chunks/turbopack-2a84kh6nmf_78.js +0 -1
- package/out/_next/static/chunks/turbopack-2b73dx1bsdg5f.js +0 -1
- package/out/_next/static/chunks/turbopack-2bslf96g-y1vv.js +0 -1
- package/out/_next/static/chunks/turbopack-2d-2wg8-_f9-v.js +0 -1
- package/out/_next/static/chunks/turbopack-2ez-mfb63qve0.js +0 -1
- package/out/_next/static/chunks/turbopack-2g7u83j1wlswz.js +0 -1
- package/out/_next/static/chunks/turbopack-2m4gns1_64-7_.js +0 -1
- package/out/_next/static/chunks/turbopack-2n4ba44aafc4x.js +0 -1
- package/out/_next/static/chunks/turbopack-2t3zb47_j-ahd.js +0 -1
- package/out/_next/static/chunks/turbopack-2tf6rdek5zvm6.js +0 -1
- package/out/_next/static/chunks/turbopack-2vb0p2htqo4nd.js +0 -1
- package/out/_next/static/chunks/turbopack-30-bi-9_7jd01.js +0 -1
- package/out/_next/static/chunks/turbopack-32pjcar5xpn1o.js +0 -1
- package/out/_next/static/chunks/turbopack-3a3skasosq9-4.js +0 -1
- package/out/_next/static/chunks/turbopack-3d2rk8-5wcgrs.js +0 -1
- package/out/_next/static/chunks/turbopack-3i91g2le3tkne.js +0 -1
- package/out/_next/static/chunks/turbopack-3j4bdo8-ldea5.js +0 -1
- package/out/_next/static/chunks/turbopack-3m47jybfw85nc.js +0 -1
- package/out/_next/static/chunks/turbopack-3yfksvslbm14s.js +0 -1
- package/out/_next/static/chunks/turbopack-414roft8p92hp.js +0 -1
- package/out/_next/static/chunks/turbopack-424slv1lqxh_5.js +0 -1
- package/out/_next/static/chunks/turbopack-444yt6auyioxn.js +0 -1
- package/out/_next/static/z5KrmhOz2mLscINN5EbUf/_buildManifest.js +0 -262
- /package/dist/{chunk-JED6SHHG.js → chunk-PUI5BIKO.js} +0 -0
- /package/out/_next/static/{z5KrmhOz2mLscINN5EbUf → bg3Z_ZBjStiTvJAHlsPDE}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{z5KrmhOz2mLscINN5EbUf → bg3Z_ZBjStiTvJAHlsPDE}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,83549,(e,t,i)=>{let l="/filters";(window.__NEXT_P=window.__NEXT_P||[]).push([l,()=>e.r(16205)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([l])})},64481,e=>{"use strict";var t=e.i(91788),i=e.i(30943);e.s(["f",0,({children:e,container:l=null,className:s=""})=>{let r=(0,t.useRef)(null),[a,n]=(0,t.useState)(!1);return((0,t.useEffect)(()=>{let e=document.createElement("div");s&&(e.className=s),r.current=e;let t=l||document.body;return t.appendChild(e),n(!0),()=>{r.current&&t.contains(r.current)&&t.removeChild(r.current)}},[l,s]),a&&r.current)?(0,i.createPortal)(e,r.current):null}])},11056,e=>{"use strict";var t=e.i(91398),i=e.i(91788),l=e.i(5505),s=e.i(57561);e.s(["f",0,({children:e,onlyFull:r=!1})=>{let{languageDialectList:a,selectedLocale:n,setSelectedLocale:o}=(0,s.f)(),d=(0,i.useContext)(l.W),u=a.filter(e=>!r||e.isoCode.includes("-"));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`w-fit mt-5 mb-3 ${d?"ml-5":""}`,children:(0,t.jsx)("select",{id:"locale-wrapper",className:"cursor-pointer rounded-md border-1 border-border-default py-1 pr-8 text-sm lg:py-1 lg:pr-10 text-black dark:text-white dark:bg-slate-800 shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring",value:n||"",onChange:e=>{e.stopPropagation(),o(e.target.value)},children:u?.map(e=>(0,t.jsx)("option",{value:e.isoCode,children:e.isoCode},e._id))})}),(0,t.jsx)("div",{children:i.default.cloneElement(e)})]})}])},3095,e=>{"use strict";var t=e.i(91398),i=e.i(91788),l=e.i(3326),s=e.i(86712),r=e.i(76842),a=e.i(24557),n=e.i(64481);e.s(["f",0,({onEdit:e,onDelete:o,editLabel:d,deleteLabel:u,showEdit:c=!0,showDelete:f=!0})=>{let{formatMessage:p}=(0,l.X)(),[m,x]=(0,i.useState)(!1),[v,g]=(0,i.useState)({top:0,left:0}),b=(0,i.useRef)(null),h=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=e=>{b.current&&!b.current.contains(e.target)&&x(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let y=(e,t)=>{e.stopPropagation(),e.preventDefault(),t&&t(),x(!1)};return 0===[c&&e,f&&o].filter(Boolean).length?null:(0,t.jsxs)("div",{className:"flex justify-end w-full",children:[(0,t.jsx)("button",{ref:h,type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),m||(()=>{if(!h.current)return;let e=h.current.getBoundingClientRect(),t=e.bottom+4,i=e.right-192;i<8&&(i=8),t+80>window.innerHeight-8&&(t=e.top-80-4),g({top:t,left:i})})(),x(!m)},className:"flex items-center justify-center w-8 h-8 rounded-md hover:bg-surface-raised transition-colors","aria-label":p({id:"table_actions_menu",defaultMessage:"Actions menu"}),children:(0,t.jsx)(s.f,{className:"w-5 h-5 text-text-muted"})}),m&&(0,t.jsx)(n.f,{children:(0,t.jsx)("div",{ref:b,className:"fixed w-48 bg-surface rounded-md shadow-xl border border-border-subtle z-[9999]",style:{top:v.top,left:v.left},children:(0,t.jsxs)("div",{className:"py-1",children:[c&&e&&(0,t.jsxs)("button",{type:"button",onClick:t=>y(t,e),className:"flex items-center w-full px-4 py-2 text-sm text-text-secondary hover:bg-surface-raised transition-colors",children:[(0,t.jsx)(r.f,{className:"mr-3 h-5 w-5"}),d||p({id:"edit",defaultMessage:"Edit"})]}),f&&o&&(0,t.jsxs)("button",{type:"button",onClick:e=>y(e,o),className:"flex items-center w-full px-4 py-2 text-sm text-rose-500 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/20 transition-colors",children:[(0,t.jsx)(a.f,{className:"mr-3 h-5 w-5"}),u||p({id:"delete",defaultMessage:"Delete"})]})]})})})]})}])},83147,e=>{"use strict";let t=e=>e&&e?.split(",").reduce((e,t)=>{let[i=null,l=null]=(t||"")?.split("_")||[];return{...e,[i]:l}},null)||{};e.s(["S",0,(...e)=>e.filter(Boolean).join(" "),"R",0,e=>Object.entries(t(e))?.map(([e,t])=>({key:e,value:t})),"D",0,e=>e?.label&&e?.version?`${e.label} ${e.version}`:"","v",0,t,"Q",0,(e,t,i=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"region"}).of(t)} ${i?`(${t})`:""}`}catch{return t}},"j",0,(e,t,i=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"currency"}).of(t)} ${i?`(${t})`:""}`}catch{return t}},"I",0,(e,t,i=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"language"}).of(t)} ${i?`(${t})`:""}`}catch{return t}},"_",0,(e,t,i)=>{let l;return l=i?{...e,[i]:t}:e,Object.keys(l)?.map(e=>[e,l[e]].join("="))?.join("&")},"d",0,()=>({formatPrice:e=>{if(!e?.currencyCode)return"n/a";if(e?.amount===void 0||e?.amount===null)return"";let{amount:t,currencyCode:i}=e||{};return new Intl.NumberFormat(navigator.language,{style:"currency",currency:i}).format(t/100)}})])},19759,78495,e=>{"use strict";var t=e.i(91398),i=e.i(3326),l=e.i(25705),s=e.i(27572),r=e.i(76929);e.i(51523);var a=e.i(19518),n=e.i(28401),o=e.i(92276),d=e.i(56779),u=e.i(91788),c=e.i(69211),f=e.i(21128),p=e.i(16984),m=e.i(98949),x=e.i(59080),v=e.i(76204);let g=x.a`
|
|
2
|
+
fragment FilterTextsFragment on FilterTexts {
|
|
3
|
+
_id
|
|
4
|
+
locale
|
|
5
|
+
title
|
|
6
|
+
subtitle
|
|
7
|
+
}
|
|
8
|
+
`,b=x.a`
|
|
9
|
+
mutation UpdateFilterTexts(
|
|
10
|
+
$filterId: ID!
|
|
11
|
+
$filterOptionValue: String
|
|
12
|
+
$texts: [FilterTextInput!]!
|
|
13
|
+
) {
|
|
14
|
+
updateFilterTexts(
|
|
15
|
+
filterId: $filterId
|
|
16
|
+
filterOptionValue: $filterOptionValue
|
|
17
|
+
texts: $texts
|
|
18
|
+
) {
|
|
19
|
+
...FilterTextsFragment
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
${g}
|
|
23
|
+
`,h=()=>{let[e]=(0,v.f)(b);return{updateFilterTexts:async({filterId:t,filterOptionValue:i,texts:l})=>e({variables:{filterOptionValue:i,filterId:t,texts:l},refetchQueries:["TranslatedFilterTexts","FilterOptions"]})}};var y=e.i(32171);let j=x.a`
|
|
24
|
+
query TranslatedFilterTexts($filterId: ID!, $filterOptionValue: String) {
|
|
25
|
+
translatedFilterTexts(
|
|
26
|
+
filterId: $filterId
|
|
27
|
+
filterOptionValue: $filterOptionValue
|
|
28
|
+
) {
|
|
29
|
+
...FilterTextsFragment
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
${g}
|
|
33
|
+
`;var w=e.i(60195),I=e.i(58971),k=e.i(5505),_=e.i(57561);let C=({filterId:e})=>{let{formatMessage:l}=(0,i.X)(),{selectedLocale:s}=(0,_.f)(),{translatedFilterTexts:r,loading:n}=(({filterId:e=null,filterOptionValue:t=null})=>{let{data:i,loading:l,error:s}=(0,y.f)(j,{variables:{filterId:e,filterOptionValue:t}});return{translatedFilterTexts:i?.translatedFilterTexts||[],loading:l,error:s}})({filterId:e}),{hasRole:o}=(0,I.f)(),d=l({id:"saved",defaultMessage:"Saved"}),{updateFilterTexts:x}=h(),v=async({title:t,subtitle:i})=>(await x({filterId:e,texts:[{locale:s,title:t,subtitle:i}]}),{success:!0}),g=(0,m.f)({submit:v,successMessage:d,initialValues:{title:"",subtitle:"",...!n&&r?.find(e=>e.locale===s)||{}}});return(0,u.useEffect)(()=>{let e=r?.find(e=>e.locale===s);g.api.setValues({title:"",subtitle:"",...e||{}})},[r,s]),(0,t.jsx)(w.f,{documentationLabel:l({id:"text",defaultMessage:"Text"}),documentation:(0,t.jsx)(i.L,{id:"filter_text_form_description",defaultMessage:"<ul> <li>You can change the language of filter using the dropdown found at top left corner</li>\n </ul>",values:{ul:e=>(0,t.jsxs)("ul",{className:"space-y-1",children:[e," "]}),li:e=>(0,t.jsxs)("li",{children:[e," "]})}}),children:(0,t.jsx)(k.U,{children:(0,t.jsxs)(c.f,{form:g,className:"border-border-default pt-2 lg:shadow-sm",children:[(0,t.jsx)("div",{children:(0,t.jsx)(p.f,{name:"title",id:"title",disabled:!o(a.C.ManageFilters),label:l({id:"title",defaultMessage:"Title"}),autoComplete:"on",className:"mt-2 px-4 text-sm"})}),(0,t.jsx)("div",{children:(0,t.jsx)(p.f,{name:"subtitle",id:"subtitle",disabled:!o(a.C.ManageFilters),label:l({id:"subtitle",defaultMessage:"Subtitle"}),autoComplete:"on",className:"mt-5 px-4 text-sm"})}),o(a.C.ManageFilters)&&(0,t.jsx)("div",{className:"flex bg-slate-100 dark:bg-slate-900 mt-5",children:(0,t.jsx)(f.f,{label:l({id:"update_filter",defaultMessage:"Update filter"}),className:"my-4 ml-auto mr-4"})})]})})})};var S=e.i(6607);let F=x.a`
|
|
34
|
+
mutation CreateFilterOption(
|
|
35
|
+
$filterId: ID!
|
|
36
|
+
$option: String!
|
|
37
|
+
$texts: [FilterTextInput!]
|
|
38
|
+
) {
|
|
39
|
+
createFilterOption(filterId: $filterId, option: $option, texts: $texts) {
|
|
40
|
+
_id
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`,M=x.a`
|
|
44
|
+
fragment FilterOptionFragment on FilterOption {
|
|
45
|
+
_id
|
|
46
|
+
texts(forceLocale: $forceLocale) {
|
|
47
|
+
_id
|
|
48
|
+
title
|
|
49
|
+
subtitle
|
|
50
|
+
locale
|
|
51
|
+
}
|
|
52
|
+
value
|
|
53
|
+
}
|
|
54
|
+
`,O=x.a`
|
|
55
|
+
query FilterOptions($filterId: ID, $forceLocale: Locale) {
|
|
56
|
+
filter(filterId: $filterId) {
|
|
57
|
+
_id
|
|
58
|
+
options {
|
|
59
|
+
...FilterOptionFragment
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
${M}
|
|
64
|
+
`,N=({onCancel:e,onSubmit:l})=>{let{formatMessage:s}=(0,i.X)(),{hasRole:r}=(0,I.f)(),a=s({id:"filter_option_added_success",defaultMessage:"Filter option added successfully"}),n=(0,m.f)({submit:l,successMessage:a,initialValues:{title:"",value:""}});return(0,t.jsxs)(c.f,{form:n,children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(p.f,{name:"value",label:s({id:"filter_option_value",defaultMessage:"Value"}),required:!0}),(0,t.jsx)(p.f,{name:"title",label:s({id:"filter_option_title",defaultMessage:"Title"}),required:!0})]}),(0,t.jsxs)("div",{className:"mt-5 flex justify-end",children:[(0,t.jsx)("button",{onClick:e,type:"button",className:"mr-2 rounded-md border border-border-subtle bg-surface px-3 py-1 text-sm font-medium leading-5 text-slate-700 dark:text-slate-500 shadow-xs",children:s({id:"cancel",defaultMessage:"Cancel"})}),(0,t.jsx)("span",{className:"flex items-center",children:(0,t.jsx)(f.f,{className:"m-auto w-full",label:s({id:"add_filter_option",defaultMessage:"Add option"})})})]})]})},E=x.a`
|
|
65
|
+
mutation RemoveFilterOption($filterId: ID!, $filterOptionValue: String!) {
|
|
66
|
+
removeFilterOption(
|
|
67
|
+
filterId: $filterId
|
|
68
|
+
filterOptionValue: $filterOptionValue
|
|
69
|
+
) {
|
|
70
|
+
_id
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
`;var $=e.i(15971),R=e.i(42469),T=e.i(3095),A=e.i(21623);let D=({filterId:e,option:l,onDelete:s})=>{let{formatMessage:r}=(0,i.X)(),[a,n]=(0,u.useState)(!1),{selectedLocale:o}=(0,_.f)(),d=r({id:"saved",defaultMessage:"Saved"}),{updateFilterTexts:f}=h(),x=async({title:t,value:i,subtitle:l})=>(await f({filterId:e,filterOptionValue:i,texts:[{locale:o,title:t,subtitle:l}]}),n(!1),{success:!0}),v=(0,m.f)({submit:x,successMessage:d,initialValues:{title:"",subtitle:"",...l,...l?.texts}});return(0,t.jsx)(c.f,{form:v,children:(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("li",{className:"py-2 px-2",children:(0,t.jsxs)("div",{className:"flex justify-between items-center gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center flex-wrap gap-3",children:[(0,t.jsx)(R.f,{text:l?.value,color:"slate",square:!0,className:"break-all"}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,t.jsx)("div",{className:"truncate text-sm text-text-primary",children:a?(0,t.jsx)(p.f,{name:"title",required:!0,label:r({id:"title",defaultMessage:"Title"})}):l?.texts?.title}),(0,t.jsx)("div",{className:"truncate text-sm text-text-muted",children:a?(0,t.jsx)(p.f,{name:"subtitle",label:r({id:"subtitle",defaultMessage:"Subtitle"})}):l?.texts?.subtitle&&l?.texts?.subtitle})]})]}),(0,t.jsx)("div",{children:a?(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(A.f,{variant:"secondary",onClick:()=>n(!a),text:r({id:"cancel",defaultMessage:"Cancel"})}),(0,t.jsx)(A.f,{variant:"primary",disabled:!v.api.isValid,onClick:v.api.handleSubmit,text:r({id:"save",defaultMessage:"Save"})})]}):(0,t.jsx)(T.f,{onEdit:()=>{n(!a)},onDelete:()=>{s(l?.value)},showEdit:!0,showDelete:!0})})]})})})})},L=({filterId:e,options:l})=>{let{formatMessage:s}=(0,i.X)(),{setModal:r}=(0,S.f)(),{selectedLocale:a}=(0,_.f)(),{removeFilterOption:o}=(()=>{let[e]=(0,v.f)(E);return{removeFilterOption:async({filterId:t,filterOptionValue:i})=>e({variables:{filterOptionValue:i,filterId:t},refetchQueries:["FilterOptions"]})}})(),d=async i=>{await r((0,t.jsx)($.f,{onCancelClick:async()=>r(""),message:s({id:"delete_filter_option_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this filter option? "}),onOkClick:async()=>{r(""),await o({filterId:e,filterOptionValue:i}),n.toast.success(s({id:"filter_deleted",defaultMessage:"Filter deleted successfully"}))},okText:s({id:"delete_filter_option",defaultMessage:"Delete option"})}))};return(0,t.jsx)("div",{children:(0,t.jsx)("ul",{className:"-my-5 divide-y divide-slate-200 dark:divide-slate-700 pb-3 ",children:l.map(i=>(0,t.jsx)(D,{filterId:e,option:i,onDelete:d},`${i._id}${a}`))})})},P=({filterId:e})=>{let{formatMessage:l}=(0,i.X)(),{selectedLocale:s}=(0,_.f)(),{filterOptions:r}=(({filterId:e=null,locale:t}={})=>{let{data:i,loading:l,error:s}=(0,y.f)(O,{skip:!e,variables:{filterId:e,forceLocale:t}});return{filterOptions:i?.filter?.options||[],loading:l,error:s}})({filterId:e,locale:s}),{setModal:n}=(0,S.f)(),{createFilterOption:o}=(()=>{let[e]=(0,v.f)(F);return{createFilterOption:async({filterId:t,option:i,texts:l})=>e({variables:{filterId:t,option:i,texts:l},refetchQueries:["FilterOptions"]})}})(),{hasRole:d}=(0,I.f)(),u=async({value:t,title:i,subtitle:l})=>(await o({filterId:e,option:t,texts:[{title:i,locale:s,subtitle:l}]}),n(""),{success:!0});return(0,t.jsx)(w.f,{documentationLabel:l({id:"filer_options",defaultMessage:"Filter options"}),sideComponents:d(a.C.ManageFilters)?(0,t.jsx)("button",{type:"button",onClick:()=>n((0,t.jsx)(N,{onSubmit:u,onCancel:()=>n("")})),className:"fixed top-0 right-0 z-10 mb-5 mt-5 mr-2 h-9 rounded-md border border-transparent bg-accent px-3 py-1 text-sm font-medium leading-5 text-text-on-accent shadow-xs hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-focus-ring sm:fixed sm:top-auto sm:right-auto",children:l({id:"add_filter_option",defaultMessage:"Add option"})}):null,children:(0,t.jsx)("div",{className:"mt-8 w-full border-border-default p-3 sm:mt-0 shadow-md bg-surface-input",children:(0,t.jsx)(L,{filterId:e,options:r})})})},V=({filterKey:e,filterType:l})=>{let{formatMessage:s}=(0,i.X)();return(0,t.jsxs)("div",{className:"mt-5 flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"text-sm",children:s({id:"key",defaultMessage:"Key"})}),(0,t.jsx)("div",{className:"rounded-md border-1 border-slate-200 dark:border-slate-600 bg-surface-raised py-1 px-2 text-sm text-text-secondary",children:e})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"text-sm",children:s({id:"filter_type",defaultMessage:"Filter Type"})}),(0,t.jsx)("div",{className:"rounded-md border-1 border-slate-200 dark:border-slate-600 bg-surface-raised py-1 px-2 text-sm text-text-secondary",children:l})]})]})};var B=e.i(80294);let q=x.a`
|
|
74
|
+
mutation UpdateFilter($filter: UpdateFilterInput!, $filterId: ID!) {
|
|
75
|
+
updateFilter(filter: $filter, filterId: $filterId) {
|
|
76
|
+
...FilterFragment
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
${B.f}
|
|
80
|
+
`;var X=e.i(31494),Q=e.i(11056),z=e.i(13534),U=e.i(70475);let Z=({selectedView:e,id:i,...l})=>{if("text"===e)return(0,t.jsx)(Q.f,{children:(0,t.jsx)(C,{filterId:i})});if("options"===e)return(0,t.jsx)(Q.f,{children:(0,t.jsx)(P,{filterId:i})});if("extended"===e)return(0,t.jsx)(X.f,{data:l});if(e?.startsWith("plugin:")){let l=e.replace("plugin:","");return(0,t.jsx)(U.f,{slot:"filter:tabs",entityId:i,children:(e,s)=>s.component===l?(0,t.jsx)(e,{entityId:i}):null})}return(0,t.jsx)(Q.f,{children:(0,t.jsx)(C,{filterId:i})})};e.s(["f",0,({filter:e,extendedData:u})=>{let{_id:c,isActive:f,key:p,type:m,created:x,updated:g}=e||{},{formatMessage:b,formatDate:h}=(0,i.X)(),{updateFilter:y}=(()=>{let[e]=(0,v.f)(q);return{updateFilter:async({filterId:t,filter:i})=>e({variables:{filter:i,filterId:t}})}})(),{hasRole:j}=(0,I.f)(),{getSlotPlugins:w}=(0,z.L)(),k=[{id:"text",title:b({id:"text",defaultMessage:"Text"}),Icon:(0,t.jsx)(l.f,{className:"h-5 w-5"})},{id:"options",title:b({id:"options",defaultMessage:"Options"}),Icon:(0,t.jsx)(s.f,{className:"h-5 w-5"})},null!==u&&{id:"extended",title:b({id:"extended-fields",defaultMessage:"Extended"}),Icon:(0,t.jsx)(r.f,{className:"h-5 w-5"})},...w("filter:tabs").map(({config:e})=>({id:`plugin:${e.component}`,title:e.label,Icon:(0,t.jsx)(r.f,{className:"h-5 w-5"})}))].filter(Boolean),_=[{id:"activate",title:b({id:"activate",defaultMessage:"Activate"}),selectedTitle:b({id:"active",defaultMessage:"Active"}),onClick:async()=>{await y({filterId:c,filter:{isActive:!0}}),n.toast.success(b({id:"filter_activated",defaultMessage:"Filter activated!",description:"shown on successful toggle of filter status"}))},current:f,disable:!j(a.C.ManageFilters),bgColor:"green"},{id:"deactivate",title:b({id:"deactivate",defaultMessage:"Deactivate"}),onClick:async()=>{await y({filterId:c,filter:{isActive:!1}}),n.toast.success(b({id:"filter_deactivated",defaultMessage:"Filter deactivated!",description:"shown on successful toggle of filter status"}))},selectedTitle:b({id:"deactivated",defaultMessage:"Deactivated"}),current:!f,disable:!j(a.C.ManageFilters),bgColor:"slate"}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("div",{children:(0,t.jsx)(V,{filterKey:p,filterType:m})}),(0,t.jsx)("div",{className:"self-end",children:(0,t.jsx)(o.f,{options:_,type:b({id:"filter",defaultMessage:"Filter"})})})]}),(0,t.jsx)(d.f,{tabItems:k,defaultTab:"text",children:(0,t.jsx)(Z,{id:e?._id,...u})})]})}],19759);var K=e.i(70693);e.s(["f",0,({filterId:e=null}={})=>{let{customProperties:t,hydrateFragment:i}=(0,K.f)(),{data:l,loading:s,error:r}=(0,y.f)(((e="")=>x.a`
|
|
81
|
+
query Filter($filterId: ID) {
|
|
82
|
+
filter(filterId: $filterId) {
|
|
83
|
+
...FilterFragment
|
|
84
|
+
${e}
|
|
85
|
+
texts {
|
|
86
|
+
_id
|
|
87
|
+
title
|
|
88
|
+
subtitle
|
|
89
|
+
locale
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
${B.f}
|
|
94
|
+
`)(t?.Filter),{skip:!e,variables:{filterId:e}}),a=l?.filter,n=i(t?.Filter,a);return{filter:a,loading:s,error:r,extendedData:n}}],78495)},80294,e=>{"use strict";var t=e.i(59080);let i=t.a`
|
|
95
|
+
fragment FilterFragment on Filter {
|
|
96
|
+
_id
|
|
97
|
+
updated
|
|
98
|
+
created
|
|
99
|
+
key
|
|
100
|
+
isActive
|
|
101
|
+
type
|
|
102
|
+
options {
|
|
103
|
+
_id
|
|
104
|
+
texts {
|
|
105
|
+
_id
|
|
106
|
+
title
|
|
107
|
+
subtitle
|
|
108
|
+
locale
|
|
109
|
+
}
|
|
110
|
+
value
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
`;e.s(["f",0,i])},54680,e=>{"use strict";var t=e.i(59080),i=e.i(32171),l=e.i(80294);let s=t.a`
|
|
114
|
+
query Filters(
|
|
115
|
+
$queryString: String
|
|
116
|
+
$limit: Int
|
|
117
|
+
$offset: Int
|
|
118
|
+
$includeInactive: Boolean
|
|
119
|
+
$sort: [SortOptionInput!]
|
|
120
|
+
) {
|
|
121
|
+
filters(
|
|
122
|
+
queryString: $queryString
|
|
123
|
+
limit: $limit
|
|
124
|
+
offset: $offset
|
|
125
|
+
includeInactive: $includeInactive
|
|
126
|
+
sort: $sort
|
|
127
|
+
) {
|
|
128
|
+
...FilterFragment
|
|
129
|
+
texts {
|
|
130
|
+
_id
|
|
131
|
+
title
|
|
132
|
+
subtitle
|
|
133
|
+
locale
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
filtersCount(includeInactive: $includeInactive, queryString: $queryString)
|
|
137
|
+
}
|
|
138
|
+
${l.f}
|
|
139
|
+
`;e.s(["f",0,({queryString:e="",limit:t=20,offset:l=0,includeInactive:r=!0,sort:a=[],forceLocale:n=""}={})=>{let{data:o,loading:d,error:u,fetchMore:c,client:f}=(0,i.f)(s,{context:{headers:{forceLocale:n}},variables:{queryString:e,limit:t,offset:l,includeInactive:r,sort:a}}),p=o?.filters||[],m=o?.filtersCount,x=p?.length<m;return{filters:p,filtersCount:m,hasMore:x,loading:d,error:u,loadMore:()=>{c({variables:{offset:p?.length}})},client:f}}])},50259,e=>{"use strict";var t=e.i(59080),i=e.i(76204);let l=t.a`
|
|
140
|
+
mutation RemoveFilter($filterId: ID!) {
|
|
141
|
+
removeFilter(filterId: $filterId) {
|
|
142
|
+
_id
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
`;e.s(["f",0,()=>{let[e]=(0,i.f)(l);return{removeFilter:async({filterId:t})=>e({variables:{filterId:t},refetchQueries:["Filters"]})}}])},15971,e=>{"use strict";var t=e.i(91398),i=e.i(3326);e.s(["f",0,({onOkClick:e,onCancelClick:l,okText:s=null,cancelText:r=null,headerText:a=null,message:n=null,icon:o=null,close:d=null,loading:u=!1})=>{let{formatMessage:c}=(0,i.X)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sm:flex sm:items-start",children:[o||(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900/30 sm:mx-0 sm:h-10 sm:w-10",children:(0,t.jsx)("svg",{className:"h-6 w-6 text-danger",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,t.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,t.jsx)("h3",{className:"text-lg text-text-primary",id:"modal-title",children:a||c({id:"warning",defaultMessage:"Warning!"})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("p",{className:"text-sm text-text-muted",children:n||c({id:"are_you_sure",defaultMessage:"Are you sure?"})})})]})]}),(0,t.jsxs)("div",{className:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse",children:[(0,t.jsx)("button",{id:"danger_continue",onClick:e,disabled:u,"aria-busy":u,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-rose-600 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-rose-700 focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:ml-3 sm:w-auto sm:text-sm",children:s||c({id:"continue",defaultMessage:"Continue"})}),(0,t.jsx)("button",{id:"danger_cancel",onClick:l||d,disabled:u,type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-border-default bg-surface px-4 py-2 text-base font-medium text-text-secondary shadow-xs hover:bg-surface-raised focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",children:r||c({id:"cancel",defaultMessage:"Cancel"})})]})]})}])},6607,e=>{"use strict";var t=e.i(91788),i=e.i(6444);e.s(["f",0,()=>(0,t.useContext)(i.f)])},89142,e=>{"use strict";var t=e.i(91398),i=e.i(3828);e.i(51523);var l=e.i(19518),s=e.i(3326),r=e.i(28401),a=e.i(58971),n=e.i(50595),o=e.i(21623),d=e.i(24608),u=e.i(53576),c=e.i(25327),f=e.i(19759),p=e.i(78495),m=e.i(50259),x=e.i(15971),v=e.i(6607);e.s(["default",0,({filterId:e})=>{let{formatMessage:g}=(0,s.X)(),{setModal:b}=(0,v.f)(),h=(0,i.useRouter)(),{filter:y,loading:j,extendedData:w}=(0,p.f)({filterId:e}),{hasRole:I}=(0,a.f)(),{removeFilter:k}=(0,m.f)(),_=async()=>{await b((0,t.jsx)(x.f,{onCancelClick:async()=>b(""),message:g({id:"delete_filter_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this filter? "}),onOkClick:async()=>{b(""),await k({filterId:e}),r.toast.success(g({id:"filter_deleted",defaultMessage:"Filter deleted successfully"})),h.push("/filters")},okText:g({id:"delete_filter",defaultMessage:"Delete filter"})}))};return y||j?j?(0,t.jsx)(u.f,{variant:"detail"}):(0,t.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,t.jsx)(n.f,{currentPageTitle:y?.key}),(0,t.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,t.jsx)(c.f,{headerText:g({id:"filter_detail",defaultMessage:"Filter Detail"}),title:g({id:"filter_detail_title",defaultMessage:"Filter {id}"},{id:y?._id})}),I(l.C.ManageFilters)&&(0,t.jsx)(o.f,{variant:"danger",icon:(0,t.jsx)(d.f,{className:"h-5 w-5"}),text:"Delete",onClick:_})]}),(0,t.jsx)(f.f,{filter:y,extendedData:w})]}):(h.push("/404"),null)}])},16205,e=>{"use strict";var t=e.i(91398),i=e.i(3326);e.i(51523);var l=e.i(19518),s=e.i(28401),r=e.i(3828),a=e.i(50595),n=e.i(70553),o=e.i(25327),d=e.i(6634),u=e.i(60193),c=e.i(58971),f=e.i(53576),p=e.i(78704),m=e.i(8918),x=e.i(71800),v=e.i(70050),g=e.i(71977),b=e.i(59080),h=e.i(76204);let y=b.a`
|
|
146
|
+
mutation BulkRemoveFilters($filterIds: [ID!]!) {
|
|
147
|
+
bulkRemoveFilters(filterIds: $filterIds) {
|
|
148
|
+
successCount
|
|
149
|
+
failedCount
|
|
150
|
+
failedIds
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
`,j=b.a`
|
|
154
|
+
mutation BulkSetFilterActive($filterIds: [ID!]!, $isActive: Boolean!) {
|
|
155
|
+
bulkSetFilterActive(filterIds: $filterIds, isActive: $isActive) {
|
|
156
|
+
successCount
|
|
157
|
+
failedCount
|
|
158
|
+
failedIds
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
`,w=["Filters","FiltersCount"];var I=e.i(70316),k=e.i(54680),_=e.i(41158),C=e.i(42469),S=e.i(3095);let F={SWITCH:"sky",SINGLE_CHOICE:"lime",MULTI_CHOICE:"cyan"},M=({filter:e,onRemove:s,isSelected:a=!1,onToggleSelect:n,showCheckbox:o=!1})=>{let{formatMessage:d}=(0,i.X)(),{hasRole:u}=(0,c.f)(),f=(0,r.useRouter)(),p={true:d({id:"active",defaultMessage:"Active"}),false:d({id:"in_active",defaultMessage:"In-Active"})},x=async()=>{await s(e?._id)};return(0,t.jsxs)(m.f.Row,{className:"group",children:[o&&(0,t.jsx)(m.f.Cell,{children:(0,t.jsx)("input",{type:"checkbox",checked:a,onChange:n,className:"h-4 w-4 rounded border-slate-300 text-slate-800 focus:ring-slate-800 cursor-pointer",onClick:e=>e.stopPropagation()})}),(0,t.jsx)(m.f.Cell,{children:(0,t.jsx)(_.default,{href:`/filters?filterId=${e._id}`,className:"flex items-center text-sm text-text-primary group-hover:text-slate-700 dark:group-hover:text-slate-100",children:e?.key&&(e?.key||(0,t.jsxs)(t.Fragment,{children:[e._id," ",(0,t.jsx)(C.f,{color:"blue",text:d({id:"name",defaultMessage:"Name"})})]}))})}),(0,t.jsx)(m.f.Cell,{children:(0,t.jsx)(_.default,{href:`/filters?filterId=${e._id}`,className:"block",children:(0,t.jsx)(C.f,{text:e.type?.split("_")?.join(" "),color:F[e.type],square:!0})})}),(0,t.jsx)(m.f.Cell,{children:(0,t.jsx)(_.default,{href:`/filters?filterId=${e._id}`,className:"block",children:(0,t.jsx)(C.f,{text:p[e.isActive],color:e.isActive?"emerald":"amber",square:!0})})}),(0,t.jsx)(m.f.Cell,{children:(0,t.jsx)(_.default,{href:`/filters?filterId=${e._id}`,className:"block",children:e.options?.length})}),(0,t.jsx)(m.f.Cell,{className:"text-right",children:(0,t.jsx)(S.f,{onEdit:()=>{f.push(`/filters?filterId=${e._id}`)},onDelete:x,showEdit:!0,showDelete:u(l.C.ManageFilters)})})]})};var O=e.i(57561);let N=({onRemoveFilter:e,sortKeys:s,queryString:r,limit:a,includeInactive:n,offset:o})=>{let{formatMessage:d}=(0,i.X)(),{selectedLocale:u}=(0,O.f)(),{hasRole:b}=(0,c.f)(),{filters:_,loading:C,loadMore:S,hasMore:F}=(0,k.f)({queryString:r,limit:a,includeInactive:n,offset:o,sort:s,forceLocale:u}),N=_?.map(e=>e._id)||[],{selectedIds:E,selectedCount:$,allSelected:R,toggle:T,selectAll:A,clearAll:D,isSelected:L,toggleAll:P}=(0,v.f)(N),{bulkRemoveFilters:V,bulkSetFilterActive:B}=(()=>{let[e]=(0,h.f)(y),[t]=(0,h.f)(j);return{bulkRemoveFilters:t=>e({variables:{filterIds:t},refetchQueries:w,awaitRefetchQueries:!0}),bulkSetFilterActive:(e,i)=>t({variables:{filterIds:e,isActive:i},refetchQueries:w,awaitRefetchQueries:!0})}})(),q=(0,g.f)(),X=(0,I.f)(),Q=b(l.C.BulkSetFilterActive),z=b(l.C.BulkRemoveFilters),U=[...Q?[{key:"activate",label:d({id:"bulk_activate",defaultMessage:"Activate"}),onAction:e=>q(()=>B(e,!0),"bulkSetFilterActive")},{key:"deactivate",label:d({id:"bulk_deactivate",defaultMessage:"Deactivate"}),onAction:e=>q(()=>B(e,!1),"bulkSetFilterActive")}]:[],...z?[{key:"delete",label:d({id:"bulk_delete",defaultMessage:"Delete"}),variant:"danger",onAction:e=>X({message:d({id:"bulk_delete_filters_warning",defaultMessage:"This will permanently delete {count} filters. Are you sure?"},{count:e.length}),okText:d({id:"delete_filters",defaultMessage:"Delete Filters"}),onConfirm:()=>q(()=>V(e),"bulkRemoveFilters")})}]:[]],Z=U.length>0;return C&&_?.length===0?(0,t.jsx)(f.f,{variant:"list"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.f,{selectedCount:$,selectedIds:E,onClear:D,onSelectionChange:A,actions:U}),(0,t.jsx)(p.f,{loading:C,hasMore:F,onLoadMore:S,children:(0,t.jsxs)(m.f,{className:"min-w-full ",children:[_?.map(e=>(0,t.jsxs)(m.f.Row,{header:!0,children:[Z&&(0,t.jsx)(m.f.Cell,{children:(0,t.jsx)("input",{type:"checkbox",checked:R,onChange:P,className:"h-4 w-4 rounded border-slate-300 text-slate-800 focus:ring-slate-800 cursor-pointer",onClick:e=>e.stopPropagation()})}),(0,t.jsx)(m.f.Cell,{children:d({id:"filter_key",defaultMessage:"Key",description:"Filter form key"})}),(0,t.jsx)(m.f.Cell,{name:"type",children:d({id:"type",defaultMessage:"Type"})}),(0,t.jsx)(m.f.Cell,{name:"isActive",children:d({id:"active",defaultMessage:"Active"})}),(0,t.jsx)(m.f.Cell,{children:d({id:"options",defaultMessage:"Options"})}),(0,t.jsx)(m.f.Cell,{children:(0,t.jsx)("span",{className:"sr-only",children:d({id:"delete",defaultMessage:"Delete"})})})]},e._id)),_?.map(i=>(0,t.jsx)(M,{filter:i,onRemove:e,isSelected:L(i._id),onToggleSelect:()=>T(i._id),showCheckbox:Z},`${i?._id}-body`))]})})]})};var E=e.i(15971),$=e.i(6607),R=e.i(50259),T=e.i(83147),A=e.i(51128),D=e.i(32171);let L=b.a`
|
|
162
|
+
query FiltersCount($queryString: String, $includeInactive: Boolean) {
|
|
163
|
+
filtersCount(includeInactive: $includeInactive, queryString: $queryString)
|
|
164
|
+
}
|
|
165
|
+
`,P=({queryString:e="",includeInactive:t=!0}={})=>{let{data:i,loading:l,error:s}=(0,D.f)(L,{variables:{queryString:e,includeInactive:t}});return{filtersCount:i?.filtersCount,loading:l,error:s}};var V=e.i(89142),B=e.i(11056),q=e.i(25093),X=e.i(91788),Q=e.i(21623),z=e.i(60513);let U=["_id","key","type","isActive"],Z=["optionId","filterId","value"],K=["title","subtitle"];var W=e.i(75284);let H=({queryString:e,includeInactive:l})=>{let{formatMessage:s}=(0,i.X)(),{filtersCount:r,loading:a}=P({queryString:e,includeInactive:l}),{setModal:n}=(0,$.f)(),{exportFilters:o,isExporting:d}=(()=>{let{exportCSV:e,isExporting:t}=(0,z.f)();return{exportFilters:(0,X.useCallback)(async t=>{await e({type:"FILTERS",...t})},[e]),isExporting:t}})(),u=[{key:"exportFilters",label:s({id:"filters",defaultMessage:"Filters"})},{key:"exportFilterOptions",label:s({id:"filter_options",defaultMessage:"Filter options"})}],c=(0,X.useCallback)(async t=>{await o({queryString:e,includeInactive:l,...t}),n(null)},[e,l,o,n]);return a?null:(0,t.jsx)(Q.f,{onClick:()=>{n((0,t.jsx)(W.f,{options:u,onSubmit:c,loading:d}))},disabled:d||!r,variant:"secondary",text:s(d?{id:"exporting",defaultMessage:"Exporting..."}:{id:"export",defaultMessage:"Export"})})};var J=e.i(78193),G=e.i(22003);let Y=e=>{let t=e.value,i={};return Object.entries(e).forEach(([e,t])=>{if(!e.startsWith("texts."))return;let[,l,s]=e.split(".");i[l]||={},i[l][s]=t||""}),{value:t,content:i}},ee=({filtersCSV:e,optionsCSV:t},i)=>{let s=[];for(let t of e)t._id||s.push(i.formatMessage({id:"filter_import.id_missing",defaultMessage:"Filter _id is required"})),t.key||s.push(i.formatMessage({id:"filter_import.key_missing",defaultMessage:"Filter key is required"})),t.type||s.push(i.formatMessage({id:"filter_import.type_missing",defaultMessage:"Filter type is required"})),t.type&&![l.J.SingleChoice,l.J.MultiChoice,l.J.Range,l.J.Switch].includes(t.type)&&s.push(i.formatMessage({id:"filter_csv_invalid_type_set",defaultMessage:"invalid filter type {type}"},{type:t.type}));for(let e of t)e.value||s.push(i.formatMessage({id:"filter_option_csv_value_missing",defaultMessage:"Filter options value is required"})),e.filterId||s.push(i.formatMessage({id:"filter_option_csv_filterId_missing",defaultMessage:"Filter option filterId is required"}));return s};var et=e.i(72552),ei=e.i(16785);let el={filtersCSV:U,optionsCSV:Z},es=({onImport:e})=>{let l=(0,X.useRef)({}),{languageDialectList:s}=(0,O.f)(),r=s?.map(e=>e.isoCode)||[],[a,n]=(0,X.useState)({filtersCSV:[],optionsCSV:[]}),[o,d]=(0,X.useState)({}),[u,c]=(0,X.useState)(!1),{formatMessage:f}=(0,i.X)(),p=[{key:"filtersCSV",label:f({id:"filters_csv_file",defaultMessage:"Filters CSV"})},{key:"optionsCSV",label:f({id:"filter_options_csv_file",defaultMessage:"Filter options CSV (Optional)"}),optional:!0}],m=async e=>{let t=await e.text();return et.default.parse(t,{header:!0,skipEmptyLines:!0}).data},x=async(e,t)=>{if(!t)return;let i=await m(t),l=((e,t)=>{if(!t.length)return!1;let i=Object.keys(t[0]),l=el[e].filter(e=>!i.includes(e));return l.length?(d(t=>({...t,[e]:f({id:"csv_missing_fields",defaultMessage:"Missing required columns: {fields}"},{fields:l.join(", ")})})),!1):(d(t=>({...t,[e]:void 0})),!0)})(e,i);n(t=>({...t,[e]:l?i:[]}))},v=async(e,t)=>{let i=e.target.files?.[0];await x(t,i),e.target.value=""},g=(0,X.useCallback)(async()=>{c(!0);try{await e(a)}catch(e){console.error("Error importing filters:",e)}finally{c(!1)}},[a,e]),b=a.filtersCSV.length>0,h=Object.values(o).some(Boolean);return(0,t.jsxs)("div",{className:"max-w-md mx-auto p-6 bg-white border border-gray-200 rounded-lg shadow-md flex flex-col gap-6",children:[(0,t.jsx)("h3",{className:"text-center text-lg font-semibold",children:f({id:"filter_import_title",defaultMessage:"Import Filters"})}),(0,t.jsx)("p",{className:"text-center text-sm text-gray-600",children:f({id:"filter_import_description",defaultMessage:"Select your filters CSV and optional filter options CSV, then click Import."})}),p.map(({key:e,label:i,optional:s})=>(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("input",{ref:t=>{l.current[e]=t??null},type:"file",accept:".csv",onChange:t=>v(t,e),className:"hidden"}),(0,t.jsxs)("div",{className:"flex justify-between items-center gap-2",children:[(0,t.jsx)(Q.f,{text:a[e].length?f({id:`${e}_file_selected`,defaultMessage:`${i} Selected`}):f({id:`select_${e}`,defaultMessage:`Select ${i}`}),onClick:()=>l.current[e]?.click(),variant:"secondary",className:"flex-1",disabled:u||!b&&s}),(0,t.jsx)("button",{type:"button",className:"text-xs text-blue-600 hover:underline",title:"Download a CSV template with required columns",onClick:()=>((e,t,i=[])=>{let l=((e,t=[])=>{if("filtersCSV"===e)return[...U,...t.flatMap(e=>K.map(t=>`texts.${e}.${t}`))];if("optionsCSV"===e)return[...Z,...t.flatMap(e=>K.map(t=>`texts.${e}.${t}`))];return[]})(e,i).join(",");(0,ei.f)(l,t)})(e,`${e}_template.csv`,r),children:f({id:"download_csv_template",defaultMessage:"Download template"})})]}),o[e]&&(0,t.jsxs)("p",{className:"text-red-600 text-xs flex items-center gap-1",children:["⚠ ",o[e]]})]},e)),(0,t.jsx)(Q.f,{text:u?"Importing…":"Import",onClick:g,disabled:u||!b||h,variant:"primary",className:"w-full flex justify-center items-center gap-2",children:u&&(0,t.jsx)("span",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"})}),b&&!h&&(0,t.jsx)("p",{className:"text-center text-xs text-gray-500",children:f({id:"ready_to_import_filters",defaultMessage:"Ready to import {filters} filters{options}."},{filters:a.filtersCSV.length,options:a.optionsCSV.length?` with ${a.optionsCSV.length} options`:""})})]})};var er=e.i(42912);let ea=()=>{let{formatMessage:e}=(0,i.X)(),{hasRole:r}=(0,c.f)(),{setModal:a}=(0,$.f)(),{prepareFilterImport:n}={prepareFilterImport:async({filtersCSV:e,optionsCSV:t})=>e.map(e=>{var i;let l,s=(t||[]).filter(t=>t.filterId===e._id);return i={...e,options:s},l=(0,G.f)(i.meta),{entity:"FILTER",operation:"CREATE",payload:{_id:i._id,specification:{type:i.type,key:i.key||"",isActive:"true"===i.isActive,content:((e,t="texts.")=>{let i={};return Object.entries(e).forEach(([e,l])=>{if(!e.startsWith(t))return;let[,s,r]=e.split(".");i[s]=i[s]||{},i[s][r]=l||""}),i})(i),options:(i?.options??[]).map(Y),meta:l}}}})},{isImporting:o,importItems:d}=(0,J.f)({validate:ee,process:n});return r(l.C.ManageProducts)?(0,t.jsx)(Q.f,{onClick:()=>{a((0,t.jsx)(es,{onImport:async e=>{let i=await d(e);a(null),(0,s.toast)((0,t.jsx)(er.f,{result:i,entityName:"Filters"}))}}))},disabled:o,variant:"secondary",text:e(o?{id:"importing",defaultMessage:"Importing..."}:{id:"import",defaultMessage:"Import"})}):null};e.s(["default",0,()=>{let{query:e,push:f}=(0,r.useRouter)(),p=parseInt(e?.limit,10)||u.h,m=parseInt(e?.skip,10)||0,x=e?.sort||"",{hasRole:v}=(0,c.f)(),g=e?.includeInactive==="true"||!e?.includeInactive,{setModal:b}=(0,$.f)(),{removeFilter:h}=(0,R.f)(),{queryString:y,filterId:j,...w}=e,{filtersCount:I}=P({queryString:y,includeInactive:g}),k=(0,T.R)(x),{formatMessage:_}=(0,i.X)(),C=async e=>{await b((0,t.jsx)(E.f,{onCancelClick:async()=>b(""),message:_({id:"delete_filter_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this filter? "}),onOkClick:async()=>{b(""),await h({filterId:e}),s.toast.success(_({id:"filter_deleted",defaultMessage:"Filter deleted successfully"}))},okText:_({id:"delete_filter",defaultMessage:"Delete filter"})}))};if(j)return(0,t.jsx)(V.default,{filterId:j});let S=1===I?_({id:"filter_header",defaultMessage:"1 Filter"}):_({id:"filter_count_header",defaultMessage:"{count} Filters"},{count:(0,t.jsx)(q.f,{value:I})});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.f,{}),(0,t.jsx)("div",{className:"w-full",children:(0,t.jsxs)(o.f,{title:_({id:"filter_page_title",defaultMessage:"{count, plural, one {# Filter} other {# Filters}}"},{count:I}),headerText:S,addPath:v(l.C.ManageFilters)&&"/filters/new",addButtonText:_({id:"add_filter",defaultMessage:"Add Filter"}),children:[(0,t.jsx)(H,{queryString:y,includeInactive:g}),(0,t.jsx)(ea,{})]})}),(0,t.jsxs)("div",{className:"min-w-full overflow-x-auto px-1",children:[(0,t.jsx)(n.f,{children:(0,t.jsx)(d.f,{toggleText:_({id:"include_inactive",defaultMessage:"Include inactive"}),toggleKey:"includeInactive",active:g})}),(0,t.jsx)(A.f,{onSearchChange:e=>{let{skip:t,...i}=w;e?f({query:(0,T._)(i,e,"queryString")}):f({query:(0,T._)(w)})},defaultSearchValue:y,children:(0,t.jsx)(B.f,{onlyFull:!0,children:(0,t.jsx)(N,{onRemoveFilter:C,queryString:y,limit:p,includeInactive:g,offset:m,sortKeys:k})})})]})]})}],16205)},27572,e=>{"use strict";var t=e.i(91788);let i=t.forwardRef(function({title:e,titleId:i,...l},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":i},l),e?t.createElement("title",{id:i},e):null,t.createElement("path",{fillRule:"evenodd",d:"M15.988 3.012A2.25 2.25 0 0 1 18 5.25v6.5A2.25 2.25 0 0 1 15.75 14H13.5V7A2.5 2.5 0 0 0 11 4.5H8.128a2.252 2.252 0 0 1 1.884-1.488A2.25 2.25 0 0 1 12.25 1h1.5a2.25 2.25 0 0 1 2.238 2.012ZM11.5 3.25a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 .75.75v.25h-3v-.25Z",clipRule:"evenodd"}),t.createElement("path",{fillRule:"evenodd",d:"M2 7a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7Zm2 3.25a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Zm0 3.5a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"}))});e.s(["f",0,i],27572)},25705,92276,e=>{"use strict";let t,i,l,s;var r=e.i(91788);let a=r.forwardRef(function({title:e,titleId:t,...i},l){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:l,"aria-labelledby":t},i),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M4.5 2A1.5 1.5 0 0 0 3 3.5v13A1.5 1.5 0 0 0 4.5 18h11a1.5 1.5 0 0 0 1.5-1.5V7.621a1.5 1.5 0 0 0-.44-1.06l-4.12-4.122A1.5 1.5 0 0 0 11.378 2H4.5Zm2.25 8.5a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Zm0 3a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Z",clipRule:"evenodd"}))});e.s(["f",0,a],25705);var n=e.i(91398),o=e.i(86567),d=e.i(45229),u=e.i(30943),c=e.i(72016),f=e.i(59146),p=e.i(29672),m=e.i(60374),x=e.i(26171),v=e.i(80150),g=e.i(93481),b=e.i(71147),h=e.i(73483),y=e.i(64728),j=e.i(15067),w=e.i(68327),I=e.i(87264),k=e.i(76925),_=e.i(41888),C=e.i(99030),S=e.i(4067),F=e.i(8404),M=e.i(56833),O=e.i(55367);let N=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function E(e){var t,i;let l=null!=(t=e.innerText)?t:"",s=e.cloneNode(!0);if(!O.F(s))return l;let r=!1;for(let e of s.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),r=!0;let a=r?null!=(i=s.innerText)?i:"":l;return N.test(a)&&(a=a.replace(N,"")),a}var $=e.i(98294),R=e.i(80281),T=e.i(60360),A=e.i(15503),D=e.i(28708),L=e.i(48714),P=e.i(96061),V=e.i(96694),B=e.i(31774),q=e.i(59778),X=e.i(87706),Q=e.i(60004),z=e.i(65383),U=e.i(47105),Z=e.i(26417),K=e.i(80795),W=e.i(74664),H=e.i(72381),J=e.i(78270),G=e.i(9769),Y=e.i(62750),ee=e.i(14929),et=e.i(61614),ei=Object.defineProperty,el=(e,t,i)=>{let l;return(l="symbol"!=typeof t?t+"":t)in e?ei(e,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[l]=i,i},es=((t=es||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),er=((i=er||{})[i.Single=0]="Single",i[i.Multi=1]="Multi",i),ea=((l=ea||{})[l.Pointer=0]="Pointer",l[l.Other=1]="Other",l),en=((s=en||{})[s.OpenListbox=0]="OpenListbox",s[s.CloseListbox=1]="CloseListbox",s[s.GoToOption=2]="GoToOption",s[s.Search=3]="Search",s[s.ClearSearch=4]="ClearSearch",s[s.SelectOption=5]="SelectOption",s[s.RegisterOptions=6]="RegisterOptions",s[s.UnregisterOptions=7]="UnregisterOptions",s[s.SetButtonElement=8]="SetButtonElement",s[s.SetOptionsElement=9]="SetOptionsElement",s[s.SortOptions=10]="SortOptions",s[s.MarkButtonAsMoved=11]="MarkButtonAsMoved",s);function eo(e,t=e=>e){let i=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,l=(0,z.T)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),s=i?l.indexOf(i):null;return -1===s&&(s=null),{options:l,activeOptionIndex:s}}let ed={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?et.L.Tracked((0,et.Q)(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:X.b.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:t}},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let i=e.activeOptionIndex,{isSelected:l}=e.dataRef.current,s=e.options.findIndex(e=>l(e.dataRef.current.value));return -1!==s&&(i=s),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:i,__demoMode:!1,buttonPositionState:et.L.Idle}},2(e,t){var i,l,s,r,a;if(e.dataRef.current.disabled||1===e.listboxState)return e;let n={...e,searchQuery:"",activationTrigger:null!=(i=t.trigger)?i:1,__demoMode:!1};if(t.focus===X.b.Nothing)return{...n,activeOptionIndex:null};if(t.focus===X.b.Specific)return{...n,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===X.b.Previous){let i=e.activeOptionIndex;if(null!==i){let r=e.options[i].dataRef.current.domRef,a=(0,X.j)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.options[a].dataRef.current.domRef;if((null==(l=r.current)?void 0:l.previousElementSibling)===t.current||(null==(s=t.current)?void 0:s.previousElementSibling)===null)return{...n,activeOptionIndex:a}}}}else if(t.focus===X.b.Next){let i=e.activeOptionIndex;if(null!==i){let l=e.options[i].dataRef.current.domRef,s=(0,X.j)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==s){let t=e.options[s].dataRef.current.domRef;if((null==(r=l.current)?void 0:r.nextElementSibling)===t.current||(null==(a=t.current)?void 0:a.nextElementSibling)===null)return{...n,activeOptionIndex:s}}}}let o=eo(e),d=(0,X.j)(t,{resolveItems:()=>o.options,resolveActiveIndex:()=>o.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...n,...o,activeOptionIndex:d}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let i=+(""===e.searchQuery),l=e.searchQuery+t.value.toLowerCase(),s=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+i).concat(e.options.slice(0,e.activeOptionIndex+i)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(l))}),r=s?e.options.indexOf(s):-1;return -1===r||r===e.activeOptionIndex?{...e,searchQuery:l}:{...e,searchQuery:l,activeOptionIndex:r,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:e=>0===e.dataRef.current.mode?{...e,frozenValue:!0}:{...e},6:(e,t)=>{let i=e.options.concat(t.options),l=e.activeOptionIndex;if(e.pendingFocus.focus!==X.b.Nothing&&(l=(0,X.j)(e.pendingFocus,{resolveItems:()=>i,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=i.findIndex(e=>null==t?void 0:t(e.dataRef.current.value));-1!==e&&(l=e)}}return{...e,options:i,activeOptionIndex:l,pendingFocus:{focus:X.b.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let i=e.options,l=[],s=new Set(t.options);for(let[e,t]of i.entries())if(s.has(t.id)&&(l.push(e),s.delete(t.id),0===s.size))break;if(l.length>0)for(let e of(i=i.slice(),l.reverse()))i.splice(e,1);return{...e,options:i,activationTrigger:1}},8:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},9:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},10:e=>e.pendingShouldSort?{...e,...eo(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:et.L.Moved}};class eu extends ee.${constructor(e){super(e),el(this,"actions",{onChange:e=>{let{onChange:t,compare:i,mode:l,value:s}=this.state.dataRef.current;return(0,Z.f)(l,{0:()=>null==t?void 0:t(e),1:()=>{let l=s.slice(),r=l.findIndex(t=>i(t,e));return -1===r?l.push(e):l.splice(r,1),null==t?void 0:t(l)}})},registerOption:(0,ee.W)(()=>{let e=[],t=new Set;return[(i,l)=>{t.has(l)||(t.add(l),e.push({id:i,dataRef:l}))},()=>(t.clear(),this.send({type:6,options:e.splice(0)}))]}),unregisterOption:(0,ee.W)(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]}),goToOption:(0,ee.W)(()=>{let e=null;return[(t,i)=>{e={type:2,...t,trigger:i}},()=>e&&this.send(e)]}),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{var e;if(null!==this.state.activeOptionIndex){let{dataRef:e}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(e.current.value)}else 0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(e=this.state.buttonElement)||e.focus({preventScroll:!0}))},selectOption:e=>{this.send({type:5,value:e})},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:8,element:e})},setOptionsElement:e=>{this.send({type:9,element:e})}}),el(this,"selectors",{activeDescendantId(e){var t;let i=e.activeOptionIndex,l=e.options;return null===i||null==(t=l[i])?void 0:t.id},isActive(e,t){var i;let l=e.activeOptionIndex,s=e.options;return null!==l&&(null==(i=s[l])?void 0:i.id)===t},hasFrozenValue:e=>e.frozenValue,shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let e=this.state.id,t=B.l.get(null);this.disposables.add(t.on(B.R.Push,i=>{t.selectors.isTop(i,e)||0!==this.state.listboxState||this.actions.closeListbox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add((0,et.Y)(t.buttonElement,t.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(e,t)=>{var i;this.actions.onChange(t.value),0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(i=this.state.buttonElement)||i.focus({preventScroll:!0}))})}static new({id:e,__demoMode:t=!1}){return new eu({id:e,dataRef:{current:{}},listboxState:+!t,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:X.b.Nothing},frozenValue:!1,__demoMode:t,buttonPositionState:et.L.Idle})}reduce(e,t){return(0,Z.f)(t.type,ed,e,t)}}var ec=e.i(21867);let ef=(0,r.createContext)(null);function ep(e){let t=(0,r.useContext)(ef);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,em),t}return t}function em({id:e,__demoMode:t=!1}){let i=(0,r.useMemo)(()=>eu.new({id:e,__demoMode:t}),[]);return(0,ec.f)(()=>i.dispose()),i}let ex=(0,r.createContext)(null);function ev(e){let t=(0,r.useContext)(ex);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ev),t}return t}ex.displayName="ListboxDataContext";let eg=r.Fragment,eb=(0,r.createContext)(!1),eh=W.J.RenderStrategy|W.J.Static,ey=r.Fragment,ej=Object.assign((0,W.t)(function(e,t){let i=(0,r.useId)(),l=(0,T.f)(),{value:s,defaultValue:a,form:n,name:o,onChange:d,by:u,invalid:c=!1,disabled:x=l||!1,horizontal:v=!1,multiple:g=!1,__demoMode:b=!1,...h}=e,j=(0,M.V)(t),w=(0,m.f)(a),[k=g?[]:void 0,_]=(0,p.f)(s,d,w),C=em({id:i,__demoMode:b}),S=(0,r.useRef)({static:!1,hold:!1}),O=(0,r.useRef)(new Map),N=(0,f.f)(u),E=(0,r.useCallback)(e=>(0,Z.f)($.mode,{[er.Multi]:()=>k.some(t=>N(t,e)),[er.Single]:()=>N(k,e)}),[k]),$=(0,F.f)({value:k,disabled:x,invalid:c,mode:g?er.Multi:er.Single,orientation:v?"horizontal":"vertical",onChange:_,compare:N,isSelected:E,optionsPropsRef:S,listRef:O});(0,y.f)(()=>{C.state.dataRef.current=$},[$]);let R=(0,q.f)(C,e=>e.listboxState),L=B.l.get(null),P=(0,q.f)(L,(0,r.useCallback)(e=>L.selectors.isTop(e,i),[L,i])),[X,Q]=(0,q.f)(C,e=>[e.buttonElement,e.optionsElement]);(0,I.f)(P,[X,Q],(e,t)=>{C.send({type:en.CloseListbox}),(0,z.d)(t,z.m.Loose)||(e.preventDefault(),null==X||X.focus())});let U=(0,F.f)({open:R===es.Open,disabled:x,invalid:c,value:k}),[K,H]=(0,G.m)({inherit:!0}),J=(0,r.useCallback)(()=>{if(void 0!==w)return null==_?void 0:_(w)},[_,w]),Y=(0,W.n)();return r.default.createElement(H,{value:K,props:{htmlFor:null==X?void 0:X.id},slot:{open:R===es.Open,disabled:x}},r.default.createElement(A.j,null,r.default.createElement(ef.Provider,{value:C},r.default.createElement(ex.Provider,{value:$},r.default.createElement(V.z,{value:(0,Z.f)(R,{[es.Open]:V.A.Open,[es.Closed]:V.A.Closed})},null!=o&&null!=k&&r.default.createElement(D.f,{disabled:x,data:{[o]:k},form:n,onReset:J}),Y({ourProps:{ref:j},theirProps:h,slot:U,defaultTag:eg,name:"Listbox"}))))))}),{Button:(0,W.t)(function(e,t){let i=(0,r.useId)(),l=(0,P.f)(),s=ev("Listbox.Button"),a=ep("Listbox.Button"),{id:n=l||`headlessui-listbox-button-${i}`,disabled:f=s.disabled||!1,autoFocus:p=!1,...m}=e,x=(0,M.V)(t,(0,A.$)(),a.actions.setButtonElement),v=(0,A.f)(),[h,y,j]=(0,q.f)(a,e=>[e.listboxState,e.buttonElement,e.optionsElement]),w=h===es.Open;(0,_.f)(w,{trigger:y,action:(0,r.useCallback)(e=>{if(null!=y&&y.contains(e.target))return _.m.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return O.F(t)?_.m.Select(t):null!=j&&j.contains(e.target)?_.m.Ignore:_.m.Close},[y,j]),close:a.actions.closeListbox,select:a.actions.selectActiveOption});let I=(0,g.f)(e=>{switch(e.key){case J.f.Enter:(0,U.o)(e.currentTarget);break;case J.f.Space:case J.f.ArrowDown:e.preventDefault(),a.actions.openListbox({focus:s.value?X.b.Nothing:X.b.First});break;case J.f.ArrowUp:e.preventDefault(),a.actions.openListbox({focus:s.value?X.b.Nothing:X.b.Last})}}),k=(0,g.f)(e=>{e.key===J.f.Space&&e.preventDefault()}),S=(0,b.f)(e=>{var t;a.state.listboxState===es.Open?((0,u.flushSync)(()=>a.actions.closeListbox()),null==(t=a.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),a.actions.openListbox({focus:X.b.Nothing}))}),N=(0,g.f)(e=>e.preventDefault()),E=(0,G.I)([n]),$=(0,H.A)(),{isFocusVisible:R,focusProps:T}=(0,o.f)({autoFocus:p}),{isHovered:D,hoverProps:L}=(0,d.f)({isDisabled:f}),{pressed:V,pressProps:B}=(0,c.f)({disabled:f}),Q=(0,F.f)({open:h===es.Open,active:V||h===es.Open,disabled:f,invalid:s.invalid,value:s.value,hover:D,focus:R,autofocus:p}),z=(0,q.f)(a,e=>e.listboxState===es.Open),Z=(0,W.w)(v(),{ref:x,id:n,type:(0,C.f)(e,y),"aria-haspopup":"listbox","aria-controls":null==j?void 0:j.id,"aria-expanded":z,"aria-labelledby":E,"aria-describedby":$,disabled:f||void 0,autoFocus:p,onKeyDown:I,onKeyUp:k,onKeyPress:N},S,T,L,B);return(0,W.n)()({ourProps:Z,theirProps:m,slot:Q,defaultTag:"button",name:"Listbox.Button"})}),Label:G.Q,Options:(0,W.t)(function(e,t){let i=(0,r.useId)(),{id:l=`headlessui-listbox-options-${i}`,anchor:s,portal:a=!1,modal:n=!0,transition:o=!1,...d}=e,c=(0,A.L)(s),[f,p]=(0,r.useState)(null);c&&(a=!0);let m=ev("Listbox.Options"),b=ep("Listbox.Options"),[y,j,I,_]=(0,q.f)(b,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),C=(0,k.f)(j),O=(0,k.f)(I),N=(0,V.N)(),[E,$]=(0,R.S)(o,f,null!==N?(N&V.A.Open)===V.A.Open:y===es.Open);(0,w.f)(E,j,b.actions.closeListbox);let T=!_&&n&&y===es.Open;(0,S.f)(T,O);let D=!_&&n&&y===es.Open;(0,h.f)(D,{allowed:(0,r.useCallback)(()=>[j,I],[j,I])});let P=!(0,q.f)(b,b.selectors.didButtonMove)&&E,B=(0,q.f)(b,b.selectors.hasFrozenValue)&&!e.static,Q=(0,L.o)(B,m.value),U=(0,r.useCallback)(e=>m.compare(Q,e),[m.compare,Q]),H=(0,q.f)(b,e=>{var t;if(null==c||!(null!=(t=null==c?void 0:c.to)&&t.includes("selection")))return null;let i=e.options.findIndex(e=>U(e.dataRef.current.value));return -1===i&&(i=0),i}),G=(()=>{if(null==c)return;if(null===H)return{...c,inner:void 0};let e=Array.from(m.listRef.current.values());return{...c,inner:{listRef:{current:e},index:H}}})(),[ee,et]=(0,A.X)(G),ei=(0,A.S)(),el=(0,M.V)(t,c?ee:null,b.actions.setOptionsElement,p),ea=(0,x.f)();(0,r.useEffect)(()=>{I&&y===es.Open&&((0,K.M)(I)||null==I||I.focus({preventScroll:!0}))},[y,I]);let en=(0,g.f)(e=>{var t;switch(ea.dispose(),e.key){case J.f.Space:if(""!==b.state.searchQuery)return e.preventDefault(),e.stopPropagation(),b.actions.search(e.key);case J.f.Enter:e.preventDefault(),e.stopPropagation(),b.actions.selectActiveOption();break;case(0,Z.f)(m.orientation,{vertical:J.f.ArrowDown,horizontal:J.f.ArrowRight}):return e.preventDefault(),e.stopPropagation(),b.actions.goToOption({focus:X.b.Next});case(0,Z.f)(m.orientation,{vertical:J.f.ArrowUp,horizontal:J.f.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),b.actions.goToOption({focus:X.b.Previous});case J.f.Home:case J.f.PageUp:return e.preventDefault(),e.stopPropagation(),b.actions.goToOption({focus:X.b.First});case J.f.End:case J.f.PageDown:return e.preventDefault(),e.stopPropagation(),b.actions.goToOption({focus:X.b.Last});case J.f.Escape:e.preventDefault(),e.stopPropagation(),(0,u.flushSync)(()=>b.actions.closeListbox()),null==(t=b.state.buttonElement)||t.focus({preventScroll:!0});return;case J.f.Tab:e.preventDefault(),e.stopPropagation(),(0,u.flushSync)(()=>b.actions.closeListbox()),(0,z.e)(b.state.buttonElement,e.shiftKey?z.b.Previous:z.b.Next);break;default:1===e.key.length&&(b.actions.search(e.key),ea.setTimeout(()=>b.actions.clearSearch(),350))}}),eo=(0,q.f)(b,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),ed=(0,F.f)({open:y===es.Open}),eu=(0,W.w)(c?ei():{},{id:l,ref:el,"aria-activedescendant":(0,q.f)(b,b.selectors.activeDescendantId),"aria-multiselectable":m.mode===er.Multi||void 0,"aria-labelledby":eo,"aria-orientation":m.orientation,onKeyDown:en,role:"listbox",tabIndex:y===es.Open?0:void 0,style:{...d.style,...et,"--button-width":(0,v.f)(E,j,!0).width},...(0,R.p)($)}),ec=(0,W.n)(),ef=(0,r.useMemo)(()=>m.mode===er.Multi?m:{...m,isSelected:U},[m,U]);return r.default.createElement(Y.z,{enabled:!!a&&(e.static||E),ownerDocument:C},r.default.createElement(ex.Provider,{value:ef},ec({ourProps:eu,theirProps:d,slot:ed,defaultTag:"div",features:eh,visible:P,name:"Listbox.Options"})))}),Option:(0,W.t)(function(e,t){let i,l,s=(0,r.useId)(),{id:a=`headlessui-listbox-option-${s}`,disabled:n=!1,value:o,...d}=e,u=!0===(0,r.useContext)(eb),c=ev("Listbox.Option"),f=ep("Listbox.Option"),p=(0,q.f)(f,e=>f.selectors.isActive(e,a)),m=c.isSelected(o),x=(0,r.useRef)(null),v=(i=(0,r.useRef)(""),l=(0,r.useRef)(""),(0,g.f)(()=>{let e=x.current;if(!e)return"";let t=e.innerText;if(i.current===t)return l.current;let s=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let i=e.getAttribute("aria-labelledby");if(i){let e=i.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():E(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return E(e).trim()})(e).trim().toLowerCase();return i.current=t,l.current=s,s})),b=(0,j.f)({disabled:n,value:o,domRef:x,get textValue(){return v()}}),h=(0,M.V)(t,x,e=>{e?c.listRef.current.set(a,e):c.listRef.current.delete(a)}),w=(0,q.f)(f,e=>f.selectors.shouldScrollIntoView(e,a));(0,y.f)(()=>{if(w)return(0,Q.f)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=x.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[w,x]),(0,y.f)(()=>{if(!u)return f.actions.registerOption(a,b),()=>f.actions.unregisterOption(a)},[b,a,u]);let I=(0,g.f)(e=>{if(n)return e.preventDefault();f.actions.selectOption(o)}),k=(0,g.f)(()=>{if(n)return f.actions.goToOption({focus:X.b.Nothing});f.actions.goToOption({focus:X.b.Specific,id:a})}),_=(0,$.f)(),C=(0,g.f)(e=>_.update(e)),S=(0,g.f)(e=>{_.wasMoved(e)&&(n||p&&f.state.activationTrigger===ea.Pointer||f.actions.goToOption({focus:X.b.Specific,id:a},ea.Pointer))}),O=(0,g.f)(e=>{_.wasMoved(e)&&(n||p&&f.state.activationTrigger===ea.Pointer&&f.actions.goToOption({focus:X.b.Nothing}))}),N=(0,F.f)({active:p,focus:p,selected:m,disabled:n,selectedOption:m&&u}),R=u?{}:{id:a,ref:h,role:"option",tabIndex:!0===n?void 0:-1,"aria-disabled":!0===n||void 0,"aria-selected":m,disabled:void 0,onClick:I,onFocus:k,onPointerEnter:C,onMouseEnter:C,onPointerMove:S,onMouseMove:S,onPointerLeave:O,onMouseLeave:O},T=(0,W.n)();return!m&&u?null:T({ourProps:R,theirProps:d,slot:N,defaultTag:"div",name:"Listbox.Option"})}),SelectedOption:(0,W.t)(function(e,t){let{options:i,placeholder:l,...s}=e,a={ref:(0,M.V)(t)},n=ev("ListboxSelectedOption"),o=(0,F.f)({}),d=void 0===n.value||null===n.value||n.mode===er.Multi&&Array.isArray(n.value)&&0===n.value.length,u=(0,W.n)();return r.default.createElement(eb.Provider,{value:!0},u({ourProps:a,theirProps:{...s,children:r.default.createElement(r.default.Fragment,null,l&&d?l:i)},slot:o,defaultTag:ey,name:"ListboxSelectedOption"}))})});var ew=e.i(95485),eI=e.i(38322),ek=e.i(38187),e_=e.i(3326);function eC(...e){return e.filter(Boolean).join(" ")}let eS={green:{button:"bg-emerald-50 dark:bg-emerald-900/30 text-emerald-700 dark:text-emerald-300 border border-emerald-200 dark:border-emerald-700",hover:"hover:bg-emerald-100 dark:hover:bg-emerald-900/50",focus:"focus:ring-emerald-500",dropdown:"text-emerald-700 dark:text-emerald-300 bg-emerald-50 dark:bg-emerald-900/30 border border-emerald-200 dark:border-emerald-700",description:"text-emerald-600 dark:text-emerald-400"},amber:{button:"bg-amber-50 dark:bg-amber-900/30 text-amber-700 dark:text-amber-300 border border-amber-200 dark:border-amber-700",hover:"hover:bg-amber-100 dark:hover:bg-amber-900/50",focus:"focus:ring-amber-500",dropdown:"text-amber-700 dark:text-amber-300 bg-amber-50 dark:bg-amber-900/30 border border-amber-200 dark:border-amber-700",description:"text-amber-600 dark:text-amber-400"},slate:{button:"bg-surface text-text-secondary border border-slate-200 dark:border-slate-600",hover:"hover:bg-slate-100 dark:hover:bg-slate-600",focus:"focus:ring-focus-ring",dropdown:"text-text-secondary bg-surface border border-slate-200 dark:border-slate-600",description:"text-text-secondary"},stone:{button:"bg-stone-50 dark:bg-stone-800 text-stone-700 dark:text-stone-300 border border-stone-200 dark:border-stone-700",hover:"hover:bg-stone-100 dark:hover:bg-stone-700",focus:"focus:ring-stone-500",dropdown:"text-stone-700 dark:text-stone-300 bg-stone-50 dark:bg-stone-800 border border-stone-200 dark:border-stone-700",description:"text-stone-600 dark:text-stone-400"},emerald:{button:"bg-emerald-50 dark:bg-emerald-900/30 text-emerald-700 dark:text-emerald-300 border border-emerald-200 dark:border-emerald-700",hover:"hover:bg-emerald-100 dark:hover:bg-emerald-900/50",focus:"focus:ring-emerald-500",dropdown:"text-emerald-700 dark:text-emerald-300 bg-emerald-50 dark:bg-emerald-900/30 border border-emerald-200 dark:border-emerald-700",description:"text-emerald-600 dark:text-emerald-400"}};e.s(["f",0,({options:e,type:t})=>{let[i,l]=(0,r.useState)(!1),[s,a]=(0,r.useState)(e?.find(({current:e})=>e)||e?.[0]),{formatMessage:o}=(0,e_.X)();if(!s?.id||!e?.length)return null;let d=eS[s.bgColor]||eS.emerald;return(0,n.jsx)(ej,{value:s,onChange:a,children:({open:a})=>(0,n.jsxs)("div",{id:s.id,children:[(0,n.jsx)(ej.Label,{className:"sr-only",children:o({id:"select_options_toggle",defaultMessage:"Change {type} status"},{type:t})}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsxs)(ej.Button,{onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),className:eC("inline-flex items-center gap-2 rounded-md px-3 py-2 text-sm font-medium shadow-sm transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 h-[38px]",d.button,d.hover,d.focus,(()=>{if(!i)return"";switch(s.bgColor){case"green":case"emerald":return"bg-emerald-100";case"amber":return"bg-amber-100";case"stone":return"bg-stone-100";default:return"bg-slate-100"}})()),children:[(0,n.jsx)(eI.f,{className:"h-4 w-4","aria-hidden":"true"}),(0,n.jsx)("span",{children:s?.selectedTitle||s.title}),(0,n.jsx)(ek.f,{className:eC("h-4 w-4 -mr-1 transition-transform duration-200",a&&"rotate-180"),"aria-hidden":"true"})]}),(0,n.jsx)(ew.I,{show:a,as:r.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,n.jsx)(ej.Options,{className:"mt-1 absolute right-0 z-10 w-64 origin-top-right divide-y divide-slate-200 dark:divide-slate-600 overflow-hidden rounded-md bg-surface shadow-lg ring-1 ring-black dark:ring-slate-600 ring-opacity-5 dark:ring-opacity-50 focus:outline-hidden",children:e.map(e=>(0,n.jsx)(ej.Option,{className:()=>eC("group",e?.disable&&"cursor-not-allowed","relative cursor-default select-none p-3 text-sm"),value:e,disabled:e.disable,children:(0,n.jsx)("div",{className:`${e?.disable&&"pointer-events-none"}`,onClick:e?.onClick,children:(0,n.jsx)("div",{className:"flex items-start justify-between gap-3",children:(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:eC("inline-flex items-center rounded-md px-2 py-1 text-xs font-medium",(eS[e.bgColor]||eS.emerald).dropdown),children:e.title}),e.id===s.id&&(0,n.jsx)(eI.f,{className:"h-4 w-4 text-slate-600","aria-hidden":"true"})]}),e?.description&&(0,n.jsx)("div",{className:eC("mt-2 ms-1 text-sm text-text-secondary"),children:e.description})]})})})},e.title))})})]})]})})}],92276)},76842,e=>{"use strict";var t=e.i(91788);let i=t.forwardRef(function({title:e,titleId:i,...l},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":i},l),e?t.createElement("title",{id:i},e):null,t.createElement("path",{d:"m2.695 14.762-1.262 3.155a.5.5 0 0 0 .65.65l3.155-1.262a4 4 0 0 0 1.343-.886L17.5 5.501a2.121 2.121 0 0 0-3-3L3.58 13.419a4 4 0 0 0-.885 1.343Z"}))});e.s(["f",0,i],76842)},24557,e=>{"use strict";var t=e.i(91788);let i=t.forwardRef(function({title:e,titleId:i,...l},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":i},l),e?t.createElement("title",{id:i},e):null,t.createElement("path",{fillRule:"evenodd",d:"M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z",clipRule:"evenodd"}))});e.s(["f",0,i],24557)},38322,e=>{"use strict";var t=e.i(57862);e.s(["f",()=>t.f])},38187,e=>{"use strict";var t=e.i(76237);e.s(["f",()=>t.f])},86712,e=>{"use strict";var t=e.i(93026);e.s(["f",()=>t.f])},24608,e=>{"use strict";var t=e.i(30999);e.s(["f",()=>t.f])}]);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,50411,(e,r,t)=>{let a="/warehousing-provider/new";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(10983)]),r.hot&&r.hot.dispose(function(){window.__NEXT_P.push([a])})},50595,e=>{"use strict";var r=e.i(91398),t=e.i(41158),a=e.i(3828),s=e.i(3326);e.s(["f",0,({routeName:e=null,currentPageTitle:i=null,depth:o=null})=>{let l=(0,a.useRouter)(),{formatMessage:n}=(0,s.X)(),u={home:"home",products:"products",orders:"orders",users:"users",assortments:"assortments",filters:"filters",tokens:"tokens",quotations:"quotations",enrollments:"enrollments",activities:"activities",works:"work_queue",events:"events",currency:"currencies",country:"countries",language:"languages","delivery-provider":"delivery_providers","payment-provider":"payment_providers","warehousing-provider":"warehousing_provider",system:"system",account:"account",new:"new",edit:"edit"},d=l.asPath?.split("/")?.filter((e,r)=>l.asPath?.split("/")?.indexOf(e)===r);if(1===d.length)return null;let c="";o&&d.splice(o),e&&(d[d.length-1]=e);let f=d?.map(r=>{if(c+=`${r}/`,!r)return{name:n({id:"home",defaultMessage:"Home"}),path:"/"};let t=r?.split("?")[0],a=e?t:t.replace(/-/g," "),s=u[t];return{name:s?n({id:s,defaultMessage:a}):decodeURIComponent(a),path:c.replace(/.$/,"")}}),m=f?.length>1?f[f.length-2]:null;return(0,r.jsxs)(r.Fragment,{children:[m&&(0,r.jsx)("nav",{className:"mb-4 flex sm:hidden","aria-label":"Breadcrumb",children:(0,r.jsxs)(t.default,{href:m.path,className:"flex items-center text-sm font-medium capitalize text-text-muted hover:text-text-primary focus:outline-hidden focus:ring-2 focus:ring-focus-ring rounded-md px-1 py-1",children:[(0,r.jsx)("svg",{className:"mr-1.5 h-4 w-4 shrink-0",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"})}),m.name]})}),(0,r.jsx)("nav",{className:"mb-5 hidden sm:flex lg:mt-5 lg:mb-8","aria-label":"Breadcrumb",children:(0,r.jsx)("ol",{className:"flex items-center space-x-4",children:f?.map((e,a)=>(0,r.jsx)("li",{children:(0,r.jsxs)("div",{className:"flex items-center",children:[0!==a&&(0,r.jsx)("svg",{className:"mr-4 h-5 w-5 shrink-0 text-text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,r.jsx)(t.default,{href:e.path,className:"text-sm font-medium capitalize text-text-muted hover:text-text-primary focus:outline-hidden focus:ring-2 focus:ring-focus-ring rounded-md px-1 py-1",children:a===f.length-1&&i?i:e.name})]})},e.path))})})]})}])},21623,e=>{"use strict";var r=e.i(91398),t=e.i(56206);e.s(["f",0,({text:e,children:a,onClick:s,className:i="",disabled:o=!1,id:l="",variant:n="primary",size:u="md",type:d="button",loading:c=!1,icon:f,iconRight:m,fullWidth:g=!1,rounded:p="md",ariaLabel:h,...b})=>{let x=a||e,v=(f||m)&&x?"gap-2":"";return(0,r.jsx)("button",{id:l,type:d,disabled:o||c,onClick:s,"aria-label":h,className:(0,t.U)("inline-flex items-center justify-center font-medium shadow-xs focus:outline-hidden focus:ring-2 focus:ring-offset-2 transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-50",{xs:"px-2.5 py-1.5 text-xs h-6",sm:"px-3 py-2 text-sm h-8",md:"px-4 py-2 text-sm h-9",lg:"px-6 py-3 text-base h-11"}[u],{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}[p],{primary:"border border-accent bg-accent text-text-on-accent hover:bg-accent-hover focus:ring-focus-ring",secondary:"border border-border-default bg-surface text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",tertiary:"border border-border-subtle bg-surface text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",quaternary:"bg-transparent text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",danger:"border border-danger bg-surface text-danger hover:bg-rose-50 dark:hover:bg-rose-900/10 focus:ring-rose-500",ghost:"bg-transparent border border-transparent text-text-secondary hover:text-text-primary hover:bg-surface-raised focus:ring-focus-ring",success:"border border-emerald-500 dark:border-emerald-400 bg-emerald-50 dark:bg-emerald-900/20 text-emerald-600 dark:text-emerald-400 hover:bg-emerald-100 dark:hover:bg-emerald-900/30 focus:ring-emerald-500",neutral:"border border-border-default bg-surface-raised text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",input:"border border-border-default bg-surface text-text-primary hover:border-slate-400 dark:hover:border-slate-500 focus:ring-focus-ring focus:border-slate-500"}[n],v,{"w-full":g},i),...b,children:c?(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),x]}):(0,r.jsxs)(r.Fragment,{children:[f,x,m]})})}])},25327,e=>{"use strict";var r=e.i(91398),t=e.i(5205),a=e.i(41158),s=e.i(3326),i=e.i(37369),o=e.i(21623);e.s(["f",0,({headerText:e=null,onEdit:l=null,onDelete:n=null,children:u=null,title:d=null,addPath:c=null,addButtonText:f=null})=>{let{formatMessage:m}=(0,s.X)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.default,{children:(0,r.jsxs)("title",{children:["Unchained AdminUI - ",d||e," "]})}),(0,r.jsx)("div",{className:"flex gap-3 flex-wrap items-center justify-between",children:(0,r.jsxs)("div",{className:"flex items-center flex-wrap justify-between w-full gap-4",children:[e&&(0,r.jsx)("h2",{className:"text-2xl font-medium text-slate-900 dark:text-slate-300 sm:truncate sm:text-3xl lg:text-4xl",children:e}),(0,r.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[u,c&&(0,r.jsx)(a.default,{href:c,children:(0,r.jsx)(o.f,{variant:"secondary",icon:(0,r.jsx)(i.f,{className:"h-5 w-5"}),text:f||m({id:"add",defaultMessage:"Add"})})}),l&&(0,r.jsx)(o.f,{variant:"secondary",onClick:l,text:m({id:"edit",defaultMessage:"Edit"})}),n&&(0,r.jsx)(o.f,{variant:"danger",onClick:n,text:m({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},54879,e=>{"use strict";var r=e.i(91398),t=e.i(56206);e.s(["f",0,({children:e,className:a,error:s,disabled:i,required:o,name:l,label:n,hideLabel:u,labelClassName:d})=>(0,r.jsxs)("div",{className:(0,t.U)("container",{"is-invalid":!!s,disabled:i,required:o},a),children:[(0,r.jsx)("label",{"aria-label":n,htmlFor:l,className:(0,t.U)("mb-2 block text-left text-sm font-light text-text-secondary",{"mt-1 rounded-sm border border-rose-100 dark:border-rose-800 bg-rose-50 dark:bg-rose-900/20 p-2 pl-4 text-rose-700 dark:text-rose-400":!!s,"sr-only":u},d),children:s||n}),e]})])},10685,e=>{"use strict";var r=e.i(91398),t=e.i(56206),a=e.i(60741),s=e.i(54879);e.s(["f",0,e=>{let{options:i,...o}=(0,a.f)(e),{className:l}=e||{className:""};return(0,r.jsx)(s.f,{...o,children:(0,r.jsx)("div",{className:"select-wrap",children:(0,r.jsxs)("select",{className:(0,t.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",l,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!o.error}),disabled:o.disabled,id:o.name,name:o.name,onChange:o.onChange,onBlur:o.onBlur,value:o.value,children:[(0,r.jsx)("option",{className:"text-text-secondary",value:"",disabled:o.required,hidden:o.required,children:o.placeholder||o.label}),Object.entries(i).map(([e,t])=>(0,r.jsx)("option",{className:"text-text-secondary",value:e,children:t},e))]})})})}])},21128,e=>{"use strict";var r=e.i(91398),t=e.i(56206),a=e.i(58021),s=e.i(61898);e.s(["f",0,({label:e,disabled:i=!1,className:o="",hidden:l=!1,...n})=>{let{formState:u}=(0,a.useFormContext)(),{...d}=n,c=Object.keys(u.errors).length>0&&Object.values(u.errors).some(e=>!!e),{disabled:f}=(0,s.f)(),m=i||f||u.isSubmitting||c,g=u.isSubmitting&&!c,p=(i||f||c)&&!u.isSubmitting;return(0,r.jsx)("input",{className:(0,t.U)("inline-flex cursor-pointer justify-center rounded-sm border border-slate-300 px-4 py-2 text-center text-sm font-medium leading-5 shadow-sm hover:shadow-md focus:ring-focus-ring",o,{"bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900":p,"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600":g,"bg-accent text-text-on-accent hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent":!m,hidden:l}),"aria-label":e,type:"submit",value:e,disabled:m,...d})}])},68057,e=>{"use strict";var r=e.i(91398),t=e.i(3326),a=e.i(69211),s=e.i(10685),i=e.i(21128),o=e.i(98949),l=e.i(5505);e.s(["f",0,({onSubmit:e,onSubmitSuccess:n,providerTypes:u,providerInterfaces:d,onProviderChange:c,readOnly:f})=>{let{formatMessage:m}=(0,t.X)(),g=m({id:"provider_created_success",defaultMessage:"Provider created successfully!"}),p=(0,o.f)({submit:e,onSubmitSuccess:n,successMessage:g,enableReinitialize:!0,initialValues:{adapterKey:"",type:""}});return(0,r.jsx)(l.U,{children:(0,r.jsx)(a.f,{form:p,children:(0,r.jsxs)("div",{className:"shadow-sm dark:shadow-none sm:max-w-full sm:rounded-lg",children:[(0,r.jsxs)("div",{className:"px-4 pt-4 pb-6",children:[(0,r.jsx)(s.f,{onChange:e=>c(e.target.value),name:"type",disabled:f,required:!0,label:m({id:"type",defaultMessage:"Type"}),options:u,className:"mb-5"}),(0,r.jsx)(s.f,{name:"adapterKey",required:!0,disabled:f,options:d,label:m({id:"adapter",defaultMessage:"Adapter"}),className:"mt-2"})]}),!f&&(0,r.jsx)("div",{className:"border-t-slate-100 border-t border-t-border-subtle space-y-6 bg-surface-subtle p-6 px-5 text-right",children:(0,r.jsx)(i.f,{label:m({id:"create_provider",defaultMessage:"Create provider"})})})]})})})}])},1504,e=>{"use strict";e.s(["f",0,(e,r,t)=>Object.assign({},...e?.map(e=>({[e[t]]:e[r]}))||[])])},73319,e=>{"use strict";let r=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["Q",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"C",0,r,"T",0,e=>!(!e||null==e||r(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},69211,e=>{"use strict";var r=e.i(91398),t=e.i(58021),a=e.i(60170);e.s(["f",0,({form:e,children:s,className:i="",...o})=>(0,r.jsx)(a.f.Provider,{value:e,children:(0,r.jsx)(t.FormProvider,{...e.rhf,children:(0,r.jsx)("form",{onReset:()=>e.api.handleReset(),onSubmit:e.api.handleSubmit,method:"POST",className:i,...o,children:s})})})])},60741,e=>{"use strict";var r=e.i(91788),t=e.i(3326),a=e.i(58021),s=e.i(82226),i=e.i(61898);e.s(["f",0,e=>{let o=(0,t.X)(),{rhf:l,...n}=(0,i.f)(),{name:u,required:d,errorMessage:c,disabled:f=n.disabled||l?.formState?.isSubmitting,label:m=o.formatMessage({id:u,defaultMessage:"default_input_name",description:"DO not translate Skip this as it's the default given label when a component is not provided explicit label"}),validators:g=[]}=e,p=[...g,d&&s.w].filter(Boolean),h=e=>p.reduce((r,{isValid:t,intlMessageDescriptor:a,intlMessageValues:s})=>r||t(e)?r:c||o.formatMessage(a,{label:m,...s}),""),b=(0,r.useRef)(h);b.current=h;let{field:x,fieldState:v,formState:y}=(0,a.useController)({name:u,control:l?.control,rules:{validate:e=>b.current(e)||!0}}),_=(v.isTouched||y.isSubmitted)&&v.error?.message;return{...e,name:u,error:_,label:m,disabled:f,required:d,onChange:r=>{if(e.onChange&&e.onChange(r),"number"===e.type){let e=r?.target?.value,t=""===e||null==e?null:Number(e);x.onChange(t)}else x.onChange(r)},onBlur:x.onBlur,value:null==x.value?"":x.value,setValue:(e,r)=>{l?.setValue(u,e,{shouldDirty:!0,shouldValidate:r??!1})},setError:e=>{e?l?.setError(u,{type:"manual",message:e}):l?.clearErrors(u)},setTouched:e=>{e&&l?.trigger(u)}}}])},98949,e=>{"use strict";var r=e.i(91788),t=e.i(58021),a=e.i(3326),s=e.i(28401),i=e.i(73319);let o=e=>""===e||"string"==typeof e&&e?.trim()===""?null:"string"==typeof e&&e.length?e.trim():Array.isArray(e)&&e?.length&&"string"==typeof e[0]?e.map(e=>o(e)):Array.isArray(e)&&e?.length&&(0,i.C)(e[0])?e.map(e=>Object.fromEntries(Object.entries(e).map(([e,r])=>[e,o(r)]))):e,l=e=>e&&"object"==typeof e?"string"==typeof e.message&&e.message?e.message:Array.isArray(e)?e.map(e=>l(e)):Object.fromEntries(Object.entries(e).filter(([e])=>"ref"!==e).map(([e,r])=>[e,l(r)])):e;e.s(["f",0,({submit:e,getSubmitErrorMessage:i=()=>"",onSubmitSuccess:n=()=>!0,initialValues:u,initialErrors:d,initialTouched:c,successMessage:f,enableReinitialize:m,validate:g,disabled:p=!1})=>{let h=(0,a.X)(),[b,x]=(0,r.useState)(""),v=(0,t.useForm)({mode:"onTouched",defaultValues:u,values:m?u:void 0,errors:d?Object.fromEntries(Object.entries(d).map(([e,r])=>[e,{type:"manual",message:r}])):void 0}),y=(0,r.useCallback)(e=>{let r=e?.errors?.[0];return h.formatMessage({id:"error_server",defaultMessage:"{details}"},{details:r?.message||""})},[h]),_=(0,r.useCallback)(async r=>{let t=!0;try{let a=await e(Object.fromEntries(Object.entries(r).map(([e,r])=>[e,o(r)]))),l=("boolean"==typeof a?a:a?.success)??!a?.error;if(l)f&&s.toast.success(f),await n(l,a?.data||r);else{let e="boolean"==typeof a?!a:a?.error;Array.isArray(e)?e.forEach(e=>{t=!1,x(i(e)||y(e))}):(t=!1,x(i(e)||y(e)))}}catch(e){t=!1,x(i(e)||y(e))}t&&x("")},[e,f,n,i,y]);return{submitError:b,api:(0,r.useMemo)(()=>({setFieldError:(e,r)=>{v.setError(e,{type:"manual",message:r})},setFieldValue:(e,r)=>{v.setValue(e,r,{shouldDirty:!0,shouldTouch:!0})},setValues:e=>{v.reset(e,{keepDirtyValues:!1,keepErrors:!1})},get values(){return v.getValues()},get isValid(){return v.formState.isValid},get isSubmitting(){return v.formState.isSubmitting},handleSubmit:v.handleSubmit(_),handleReset:()=>{v.reset()},resetForm:e=>{v.reset(e||u)},submitForm:()=>{v.handleSubmit(_)()},getFieldMeta:e=>{let r=v.getFieldState(e,v.formState);return{error:r.error?.message,touched:r.isTouched}},get initialValues(){return u},get errors(){return l(v.formState.errors)}}),[v,_,u]),rhf:v,setSubmitError:x,disabled:p}}],98949)},61898,e=>{"use strict";var r=e.i(91788),t=e.i(60170);e.s(["f",0,()=>(0,r.useContext)(t.f)])},60170,e=>{"use strict";var r=e.i(91788);let t=(0,e.i(98837).f)("FormContext",r.default.createContext({submitError:"",rhf:null,api:null,setSubmitError:()=>{},disabled:!1}));e.s(["f",0,t])},82226,e=>{"use strict";var r=e.i(73663),t=e.i(12051),a=e.i(35113),s=e.i(9356),i=e.i(49543);e.i(3326);let o=["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GH","GI","GL","GM","GN","GQ","GR","GT","GU","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IM","IN","IQ","IR","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SK","SL","SM","SN","SO","SR","ST","SV","SY","SZ","TC","TD","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],l=["ab","aa","af","ak","sq","am","ar","an","hy","as","av","ae","ay","az","bm","ba","eu","be","bn","bh","bi","bs","br","bg","my","ca","ch","ce","ny","zh","cv","kw","co","cr","hr","cs","da","dv","nl","en","eo","et","ee","fo","fj","fi","fr","ff","gl","ka","de","el","gn","gu","ht","ha","he","hz","hi","ho","hu","ia","id","ie","ga","ig","ik","io","is","it","iu","ja","jv","kl","kn","kr","ks","kk","km","ki","rw","ky","kv","kg","ko","ku","kj","la","lb","lg","li","ln","lo","lt","lu","lv","gv","mk","mg","ms","ml","mt","mi","mr","mh","mn","na","nv","nb","nd","ne","ng","nn","no","ii","nr","oc","oj","cu","om","or","os","pa","pi","fa","pl","ps","pt","qu","rm","rn","ro","ru","sa","sc","sd","se","sm","sg","sr","gd","sn","si","sk","sl","so","st","es","su","sw","ss","sv","ta","te","tg","th","ti","bo","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","cy","wo","fy","xh","yi","yo","za"];e.s(["J",0,(e=!1)=>({isValid:r=>!e&&!r||/^(0x)?[a-z0-9]{40}$/i.test(r),intlMessageDescriptor:{id:"error_contract_address",defaultMessage:"Invalid contract address"}}),"$",0,{isValid:e=>{if(!e)return!0;let r=new Date(e);if(!(0,s.f)(r))return!1;let t=(0,i.f)(new Date);return!(+(0,a.f)(r)>+(0,a.f)(t))},intlMessageDescriptor:{id:"error_birthdate_in_future",defaultMessage:"{label} cannot be in the future"}},"v",0,()=>({isValid:e=>o.includes(e.toUpperCase()),intlMessageDescriptor:{id:"error_country_code",defaultMessage:"Invalid country code"}}),"G",0,{isValid:e=>!e||(0,s.f)(new Date(e)),intlMessageDescriptor:{id:"error_invalid_date",defaultMessage:"{label} is not a valid date"}},"L",0,{isValid:e=>(0,t.default)(e||""),intlMessageDescriptor:{id:"error_email",defaultMessage:"{label} must be a valid email address"}},"j",0,()=>({isValid:e=>null==e||""===e||!Number.isNaN(e)&&Number.isInteger(Number(e)),intlMessageDescriptor:{id:"error_number_not_int",defaultMessage:"Invalid value please provide integer value"}}),"y",0,()=>({isValid:e=>l.includes(e?.toLowerCase()),intlMessageDescriptor:{id:"error_language_code",defaultMessage:"Invalid language code"}}),"f",0,e=>({isValid:t=>(0,r.default)(t||"",{max:e}),intlMessageDescriptor:{id:"error_max_length"},intlMessageValues:{maxLength:e.toString()}}),"D",0,(e,r)=>({isValid:()=>{let t="function"==typeof r?r():r;if(!t?.length||t?.length===1)return!0;let a=t[e];return t.filter((r,t)=>t!==e).every(({minQuantity:e,countryCode:r,currencyCode:t})=>e!==a?.minQuantity||r!==a?.countryCode||t!==a?.currencyCode)},intlMessageDescriptor:{id:"error_same_product_prices",defaultMessage:"{label} can not be equal for a price with the same country and currency"}}),"P",0,e=>({isValid:()=>{let r="function"==typeof e?e():e;if(!r?.length)return!0;let t=e=>null===e||""===e||void 0===e||0===Number(e);return(1!==r.length||!!t(r[0].minQuantity))&&r.filter(({minQuantity:e})=>t(e))?.length===1},intlMessageDescriptor:{id:"error_commerce_quantity_null_required",defaultMessage:"{label} should have one price with min quantity of 0 or empty"}}),"w",0,{isValid:e=>"string"==typeof e?e.trim().length>0:"number"==typeof e||(Array.isArray(e)?e.length>0:!!e),intlMessageDescriptor:{id:"error_required",defaultMessage:"{label} is a required field"}},"x",0,e=>({isValid:r=>!e||r.length>0,intlMessageDescriptor:{id:"error_tag_required",defaultMessage:"{label} you must provide at least one tag"}})],82226)},13543,e=>{"use strict";var r=e.i(59080);let t=r.a`
|
|
2
|
+
fragment WarehousingProviderFragment on WarehousingProvider {
|
|
3
|
+
_id
|
|
4
|
+
created
|
|
5
|
+
updated
|
|
6
|
+
deleted
|
|
7
|
+
isActive
|
|
8
|
+
type
|
|
9
|
+
interface {
|
|
10
|
+
_id
|
|
11
|
+
label
|
|
12
|
+
version
|
|
13
|
+
}
|
|
14
|
+
configuration
|
|
15
|
+
configurationError
|
|
16
|
+
}
|
|
17
|
+
`;e.s(["f",0,t])},13271,e=>{"use strict";var r=e.i(59080),t=e.i(32171);let a=r.a`
|
|
18
|
+
query WarehousingProvidersType {
|
|
19
|
+
warehousingProviderType: __type(name: "WarehousingProviderType") {
|
|
20
|
+
options: enumValues {
|
|
21
|
+
value: name
|
|
22
|
+
label: description
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`;e.s(["f",0,()=>{let{data:e,loading:r,error:s}=(0,t.f)(a);return{warehousingProviderType:e?.warehousingProviderType?.options||[],loading:r,error:s}}])},10983,e=>{"use strict";var r=e.i(91398),t=e.i(91788);e.i(51523);var a=e.i(19518),s=e.i(3828),i=e.i(3326),o=e.i(58971),l=e.i(50595),n=e.i(68057),u=e.i(25327),d=e.i(1504),c=e.i(59080),f=e.i(76204),m=e.i(13543);let g=c.a`
|
|
27
|
+
mutation CreateWarehousingProvider(
|
|
28
|
+
$warehousingProvider: CreateWarehousingProviderInput!
|
|
29
|
+
) {
|
|
30
|
+
createWarehousingProvider(warehousingProvider: $warehousingProvider) {
|
|
31
|
+
...WarehousingProviderFragment
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
${m.f}
|
|
35
|
+
`;var p=e.i(32171);let h=c.a`
|
|
36
|
+
query WarehousingInterfaces($providerType: WarehousingProviderType) {
|
|
37
|
+
warehousingInterfaces(type: $providerType) {
|
|
38
|
+
_id
|
|
39
|
+
value: _id
|
|
40
|
+
label
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`;var b=e.i(13271);e.s(["default",0,()=>{let[e,c]=(0,t.useState)(a._.Physical),{formatMessage:m}=(0,i.X)(),{createWarehousingProvider:x}=(()=>{let[e,{data:r,loading:t,error:a}]=(0,f.f)(g);return{createWarehousingProvider:async({warehousingProvider:{adapterKey:r,type:t}})=>e({variables:{warehousingProvider:{adapterKey:r,type:t}},refetchQueries:["WarehousingProviders","ShopStatus"]}),newWarehousingProvider:r?.createWarehousingProvider,loading:t,error:a}})(),{warehousingProviderType:v}=(0,b.f)(),{warehousingInterfaces:y}=(({providerType:e})=>{let{data:r,loading:t,error:a}=(0,p.f)(h,{skip:!e,variables:{providerType:e}});return{warehousingInterfaces:r?.warehousingInterfaces||[],loading:t,error:a}})({providerType:e}),{hasRole:_}=(0,o.f)(),w=async({adapterKey:e,type:r})=>{let{data:t,error:a}=await x({warehousingProvider:{adapterKey:e,type:r}});return!a&&{success:!0,data:t?.createWarehousingProvider}},j=(0,s.useRouter)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.f,{}),(0,r.jsxs)("div",{className:"mx-auto sm:max-w-2xl",children:[(0,r.jsx)(u.f,{headerText:m({id:"new_warehousing_provider_header",defaultMessage:"New warehousing provider"})}),(0,r.jsx)("div",{className:"mt-6",children:(0,r.jsx)(n.f,{readOnly:!_(a.C.ManageWarehousingProviders),providerInterfaces:(0,d.f)(y,"label","value"),providerTypes:(0,d.f)(v,"label","value"),onSubmit:w,onSubmitSuccess:(e,{_id:r})=>{j.replace(`/warehousing-provider?warehousingProviderId=${r}`)},onProviderChange:e=>c(e)})})]})]})}],10983)},37369,e=>{"use strict";var r=e.i(84985);e.s(["f",()=>r.f])},60054,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,r){(0,s.default)(e),"object"===i(r)?(t=r.min||0,a=r.max):(t=arguments[1],a=arguments[2]);var t,a,o=encodeURI(e).split(/%..|./).length-1;return o>=t&&(void 0===a||o<=a)};var a,s=(a=e.r(78262))&&a.__esModule?a:{default:a};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.exports=t.default,r.exports.default=t.default},12051,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,r){if((0,a.default)(e),(r=(0,n.default)(r,d)).require_display_name||r.allow_display_name){var t=e.match(c);if(t){var u,b,x=t[1];if(e=e.replace(x,"").replace(/(^<|>$)/g,""),x.endsWith(" ")&&(x=x.slice(0,-1)),!(!(!(b=(u=x).replace(/^"(.+)"$/,"$1")).trim()||/[\.";<>]/.test(b)&&(b===u||b.split('"').length!==b.split('\\"').length))&&1))return!1}else if(r.require_display_name)return!1}if(!r.ignore_max_length&&e.length>254)return!1;var v=e.split("@"),y=v.pop(),_=y.toLowerCase();if(r.host_blacklist.length>0&&(0,s.default)(_,r.host_blacklist)||r.host_whitelist.length>0&&!(0,s.default)(_,r.host_whitelist))return!1;var w=v.join("@");if(r.domain_specific_validation&&("gmail.com"===_||"googlemail.com"===_)){var j=(w=w.toLowerCase()).split("+")[0];if(!(0,i.default)(j.replace(/\./g,""),{min:6,max:30}))return!1;for(var M=j.split("."),F=0;F<M.length;F++)if(!m.test(M[F]))return!1}if(!1===r.ignore_max_length&&(!(0,i.default)(w,{max:64})||!(0,i.default)(y,{max:254})))return!1;if(!(0,o.default)(y,{require_tld:r.require_tld,ignore_max_length:r.ignore_max_length,allow_underscores:r.allow_underscores})){if(!r.allow_ip_domain)return!1;if(!(0,l.default)(y)){if(!y.startsWith("[")||!y.endsWith("]"))return!1;var S=y.slice(1,-1);if(0===S.length||!(0,l.default)(S))return!1}}if(r.blacklisted_chars&&-1!==w.search(RegExp("[".concat(r.blacklisted_chars,"]+"),"g")))return!1;if('"'===w[0]&&'"'===w[w.length-1])return w=w.slice(1,w.length-1),r.allow_utf8_local_part?h.test(w):g.test(w);for(var C=r.allow_utf8_local_part?p:f,k=w.split("."),N=0;N<k.length;N++)if(!C.test(k[N]))return!1;return!0};var a=u(e.r(78262)),s=u(e.r(80930)),i=u(e.r(60054)),o=u(e.r(96184)),l=u(e.r(90498)),n=u(e.r(34058));function u(e){return e&&e.__esModule?e:{default:e}}var d={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},c=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,f=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,m=/^[a-z\d]+$/,g=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,p=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,h=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;r.exports=t.default,r.exports.default=t.default},96184,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,r){(0,a.default)(e),(r=(0,s.default)(r,o)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1)),!0===r.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var t=e.split("."),i=t[t.length-1];return!(r.require_tld&&(t.length<2||!r.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(i)||/\s/.test(i)))&&!(!r.allow_numeric_tld&&/^\d+$/.test(i))&&t.every(function(e){return!(e.length>63&&!r.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)||/[\uff01-\uff5e]/.test(e)||/^-|-$/.test(e)||!r.allow_underscores&&/_/.test(e))})};var a=i(e.r(78262)),s=i(e.r(34058));function i(e){return e&&e.__esModule?e:{default:e}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};r.exports=t.default,r.exports.default=t.default},90498,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.default)(r);var a=("object"===i(t)?t.version:arguments[1])||"";return a?"4"===a.toString()?n.test(r):"6"===a.toString()&&d.test(r):e(r,{version:4})||e(r,{version:6})};var a,s=(a=e.r(78262))&&a.__esModule?a:{default:a};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",l="(".concat(o,"[.]){3}").concat(o),n=new RegExp("^".concat(l,"$")),u="(?:[0-9a-fA-F]{1,4})",d=RegExp("^("+"(?:".concat(u,":){7}(?:").concat(u,"|:)|")+"(?:".concat(u,":){6}(?:").concat(l,"|:").concat(u,"|:)|")+"(?:".concat(u,":){5}(?::").concat(l,"|(:").concat(u,"){1,2}|:)|")+"(?:".concat(u,":){4}(?:(:").concat(u,"){0,1}:").concat(l,"|(:").concat(u,"){1,3}|:)|")+"(?:".concat(u,":){3}(?:(:").concat(u,"){0,2}:").concat(l,"|(:").concat(u,"){1,4}|:)|")+"(?:".concat(u,":){2}(?:(:").concat(u,"){0,3}:").concat(l,"|(:").concat(u,"){1,5}|:)|")+"(?:".concat(u,":){1}(?:(:").concat(u,"){0,4}:").concat(l,"|(:").concat(u,"){1,6}|:)|")+"(?::((?::".concat(u,"){0,5}:").concat(l,"|(?::").concat(u,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");r.exports=t.default,r.exports.default=t.default},73663,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,r){(0,s.default)(e),"object"===i(r)?(t=r.min||0,a=r.max):(t=arguments[1]||0,a=arguments[2]);var t,a,o=e.match(/[^\uFE0F\uFE0E][\uFE0F\uFE0E]/g)||[],l=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],n=e.length-o.length-l.length,u=n>=t&&(void 0===a||n<=a);return u&&Array.isArray(null==r?void 0:r.discreteLengths)?r.discreteLengths.some(function(e){return e===n}):u};var a,s=(a=e.r(78262))&&a.__esModule?a:{default:a};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.exports=t.default,r.exports.default=t.default},78262,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null==e)throw TypeError("Expected a string but received a ".concat(e));if("String"!==e.constructor.name)throw TypeError("Expected a string but received a ".concat(e.constructor.name))},r.exports=t.default,r.exports.default=t.default},80930,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,r){for(var t=0;t<r.length;t++){var a=r[t];if(e===a||"[object RegExp]"===Object.prototype.toString.call(a)&&a.test(e))return!0}return!1},r.exports=t.default,r.exports.default=t.default},34058,(e,r,t)=>{"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;for(var t in("object"!==a(e)||null===e)&&(e={}),r)void 0===e[t]&&(e[t]=r[t]);return e},r.exports=t.default,r.exports.default=t.default}]);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
__turbopack_load_page_chunks__("/account", [
|
|
2
|
+
"static/chunks/2hc3d38gb0q-v.js",
|
|
3
|
+
"static/chunks/1ubmbegreszhk.js",
|
|
4
|
+
"static/chunks/3xs_undkbcqp7.js",
|
|
5
|
+
"static/chunks/11vnr4kb9qkjr.js",
|
|
6
|
+
"static/chunks/3x_gia2m5w9_l.js",
|
|
7
|
+
"static/chunks/turbopack-077hmtqrhcoji.js"
|
|
8
|
+
])
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,72381,e=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";var t=e.i(91788);let n=(0,t.createContext)(void 0);e.s(["f",0,function(){return(0,t.useContext)(n)}])},78530,e=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75229,e=>{"use strict";var t=e.i(91398);e.s(["f",0,({name:e="",showName:r=!0,className:i=""}={})=>(0,t.jsx)("div",{className:`flex-col ${i}`,children:e&&r&&(0,t.jsx)("p",{className:"text-sm font-medium text-slate-700 group-hover:text-slate-900",children:e})})])},83147,e=>{"use strict";let t=e=>e&&e?.split(",").reduce((e,t)=>{let[r=null,i=null]=(t||"")?.split("_")||[];return{...e,[r]:i}},null)||{};e.s(["S",0,(...e)=>e.filter(Boolean).join(" "),"R",0,e=>Object.entries(t(e))?.map(([e,t])=>({key:e,value:t})),"D",0,e=>e?.label&&e?.version?`${e.label} ${e.version}`:"","v",0,t,"Q",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"region"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"j",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"currency"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"I",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"language"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"_",0,(e,t,r)=>{let i;return i=r?{...e,[r]:t}:e,Object.keys(i)?.map(e=>[e,i[e]].join("="))?.join("&")},"d",0,()=>({formatPrice:e=>{if(!e?.currencyCode)return"n/a";if(e?.amount===void 0||e?.amount===null)return"";let{amount:t,currencyCode:r}=e||{};return new Intl.NumberFormat(navigator.language,{style:"currency",currency:r}).format(t/100)}})])},51782,e=>{"use strict";var t=e.i(91398),r=e.i(3326),i=e.i(42469),s=e.i(60193);let a={PENDING:"bg-yellow-100 text-yellow-800",CONFIRMED:"bg-blue-100 text-blue-800",OPEN:"bg-gray-100 text-gray-800",FULFILLED:"bg-green-100 text-green-800",REJECTED:"bg-red-100 text-red-800"};e.s(["f",0,({status:e,className:n=""})=>{let{formatMessage:l}=(0,r.X)(),o={PENDING:l({id:"pending",defaultMessage:"PENDING"}),CONFIRMED:l({id:"confirmed",defaultMessage:"CONFIRMED"}),OPEN:l({id:"open",defaultMessage:"OPEN"}),FULFILLED:l({id:"fulfilled",defaultMessage:"FULFILLED"}),REJECTED:l({id:"rejected",defaultMessage:"REJECTED"})},u=o?.[e]??l({id:"cart",defaultMessage:"Cart"});return a?.[e],(0,t.jsx)(i.f,{text:u,color:s.v[e],square:!0,className:`uppercase ${n}`})}])},75155,e=>{"use strict";var t=e.i(91398),r=e.i(3326),i=e.i(42469);let s={DRAFT:"yellow",ACTIVE:"emerald",DELETED:"amber",null:"yellow",undefined:"yellow"};e.s(["f",0,({status:e})=>{let{formatMessage:a}=(0,r.X)();return a({id:"pending",defaultMessage:"PENDING"}),a({id:"confirmed",defaultMessage:"CONFIRMED"}),a({id:"open",defaultMessage:"OPEN"}),a({id:"fulfilled",defaultMessage:"FULFILLED"}),a({id:"rejected",defaultMessage:"REJECTED"}),(0,t.jsx)(i.f,{text:(e=>{switch(e){case"ACTIVE":return a({id:"active",defaultMessage:"Active"});case"DRAFT":default:return a({id:"draft",defaultMessage:"Draft"});case"DELETED":return a({id:"deleted",defaultMessage:"Deleted"})}})(e),color:s[e]||"yellow",square:!0,dotted:!0})}])},86129,e=>{"use strict";var t=e.i(94396);e.s(["f",()=>t.f])},38187,e=>{"use strict";var t=e.i(76237);e.s(["f",()=>t.f])},91412,e=>{"use strict";var t=e.i(86173);e.s(["f",()=>t.f])},44112,e=>{"use strict";var t=e.i(39775);e.s(["f",()=>t.f])},53463,e=>{"use strict";var t=e.i(88313);e.s(["f",()=>t.f])},81618,e=>{"use strict";var t=e.i(43119);e.s(["f",()=>t.f])},88737,e=>{"use strict";var t=e.i(90418);e.s(["f",()=>t.f])},57748,e=>{"use strict";var t=e.i(69059);e.s(["f",()=>t.f])},39382,e=>{"use strict";var t=e.i(56859);e.s(["f",()=>t.f])},24608,e=>{"use strict";var t=e.i(30999);e.s(["f",()=>t.f])},36980,e=>{"use strict";e.s(["f",0,function(e){return t=>{let r=(e?Math[e]:Math.trunc)(t);return 0===r?0:r}}])},60836,e=>{"use strict";var t=e.i(35113);e.s(["f",0,function(e,r){let i=(0,t.f)(e)-(0,t.f)(r);return i<0?-1:i>0?1:i}])},5270,e=>{"use strict";var t=e.i(91788);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},s=(0,t.createContext)({}),a=(0,t.forwardRef)(({color:e,size:a,width:n,height:l,strokeWidth:o,absoluteStrokeWidth:u,nonScalingStroke:c,className:d="",children:f,iconNode:h=[],icon:g={node:h,aliases:[],size:24},...m},w)=>{let{size:E=24,strokeWidth:p=2,absoluteStrokeWidth:N=!1,nonScalingStroke:v=!1,color:y="currentColor",className:b=""}=(0,t.useContext)(s)??{},D=!!f||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(m),[k,C,x=[]]=function(e,t={}){return function(e,t={}){let s=t.attributeNames??{},a=e=>s[e]??e,n=e.size??e.width??i.width,l=e.size??e.height??i.height,o=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],u=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(" ").filter(Boolean)??[],d=!1===t.includeDefaultClasses?r(...c):r("lucide",...u,...c),f=t.absoluteStrokeWidth?Number(t.strokeWidth??i["stroke-width"])*Number(e.size??e.width??i.width)/Number(t.size??t.width??i.width):t.strokeWidth??i["stroke-width"];return["svg",{...Object.entries(i).reduce((e,[t,r])=>(e[a(t)]=r,e),{}),..."color"in t&&t.color&&{[a("stroke")]:t.color},..."size"in t&&null!=t.size&&{[a("width")]:t.size,[a("height")]:t.size},..."width"in t&&null!=t.width&&{[a("width")]:t.width},..."height"in t&&null!=t.height&&{[a("height")]:t.height},[a("stroke-width")]:f,...d&&{[a("class")]:d},[a("viewBox")]:`0 0 ${n} ${l}`,...!1===t.hasA11yProp?{[a("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[r,i,s]=e,n=t.nonScalingStroke?{[a("vector-effect")]:"non-scaling-stroke",...i}:i;return s?[r,n,s]:[r,n]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(g,{color:e??y,width:n??a??E,height:l??a??E,strokeWidth:o??p,absoluteStrokeWidth:u??N,nonScalingStroke:c??v,className:r(b,d),hasA11yProp:D,attributes:m});return(0,t.createElement)(k,{ref:w,...C},[...x.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(f)?f:[f]])});e.s(["f",0,function(e,r=[],i=[]){let s,n="string"==typeof e?function(e,t,r=[]){if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),size:24,node:t,...r.length>0?{aliases:r}:{}}}(e,r,i):e,l=(0,t.forwardRef)(({className:e,...r},i)=>(0,t.createElement)(a,{ref:i,icon:n,className:e,...r}));return n.name&&(l.displayName=(s=(e=>{let t="",r=!1;for(let i of e){if("-"===i||"_"===i||i<=" "){r=t.length>0;continue}0===t.length?t+=i.toLowerCase():t+=r?i.toUpperCase():i,r=!1}return t})(n.name)).charAt(0).toUpperCase()+s.slice(1)),l}],5270)}]);
|