@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
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,65897,e=>{"use strict";var t=e.i(91398),r=e.i(56206);e.s(["default",0,({value:e,className:s,onChange:a=()=>{},rows:l=7,...i})=>{let o=Math.max(e?e.split("\n").length:1,l);return(0,t.jsx)("textarea",{className:(0,r.default)("text-black dark:bg-slate-900 dark:text-slate-200 border-transparent border-t border-t-border-subtle resize-y",s),value:e,onChange:a,rows:o,...i})}])},56779,e=>{"use strict";var t=e.i(91398),r=e.i(56206),s=e.i(3828),a=e.i(91788),l=e.i(69322);e.s(["default",0,({children:e,tabItems:i,defaultTab:o,updateRoute:d=!0})=>{let n=(0,s.useRouter)(),{tab:u=o}=n?.query||{},c=Array.isArray(u)?u[0]:u,{formatMessage:m}=(0,l.useIntl)(),f=e=>{if(d){let{sort:t,...r}=n?.query||{};n.push({query:{...r,tab:e}},void 0,{shallow:!0})}};return(0,t.jsxs)("div",{className:"mt-10",children:[(0,t.jsxs)("div",{className:"lg:hidden",children:[(0,t.jsx)("label",{htmlFor:"selected-tab",className:"sr-only",children:m({id:"select_tab",defaultMessage:"Select a tab"})}),(0,t.jsx)("select",{onChange:e=>f(e.target.value),id:"selected-tab",name:"selected-tab",className:"mt-1 block dark:bg-slate-800 dark:text-white w-full rounded-md border-border-default py-2 pl-3 pr-10 text-base capitalize focus:outline-none focus:ring-2 focus:ring-focus-ring focus:border-slate-800 dark:focus:border-slate-400 sm:text-sm",value:c,children:i.filter(Boolean).map(e=>(0,t.jsx)("option",{value:e.id,className:"dark:text-white",children:e?.title||e?.id},e.id))})]}),(0,t.jsx)("div",{className:"mt-5 hidden lg:block",children:(0,t.jsx)("div",{className:"",children:(0,t.jsx)("nav",{className:"flex flex-wrap gap-3",children:i.filter(Boolean).map(e=>(0,t.jsx)("a",{id:e.id,tabIndex:0,onClick:()=>f(e.id),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),f(e.id))},className:(0,r.default)({"cursor-pointer rounded-lg border border-border-default bg-white text-text-primary dark:bg-slate-900 shadow-sm dark:hover:border-slate-500 hover:border-slate-400 focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 dark:focus:ring-offset-slate-900":c===e.id},"cursor-pointer relative whitespace-nowrap border border-border-subtle py-2 px-1 pr-3 pl-2 text-sm dark:text-slate-400 font-medium hover:bg-white dark:hover:bg-slate-800 hover:border-slate-300 dark:hover:border-slate-500 rounded-lg focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 dark:focus:ring-offset-slate-900"),children:(0,t.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,t.jsx)("div",{children:e.Icon}),(0,t.jsx)("div",{className:"capitalize",children:e?.title||e?.id}),e?.length?(0,t.jsx)("span",{className:"absolute top-0 right-0 inline-flex translate-x-1/2 -translate-y-1/2 transform items-center justify-center rounded-full bg-slate-400 px-1 py-0.5 text-sm leading-none text-slate-900",children:e?.length}):null]})},e.id))})})}),(0,t.jsx)("div",{className:"mt-5",children:a.default.cloneElement(e,{selectedView:c})})]})}])},50647,e=>{"use strict";var t=e.i(91398),r=e.i(91788);e.s(["default",0,({text:e,children:s})=>{let[a,l]=(0,r.useState)(!1);return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{onMouseEnter:()=>{l(!0)},onMouseLeave:()=>{l(!1)},children:s}),a&&(0,t.jsx)("div",{className:"tooltip absolute p-2 bg-slate-700 text-white rounded-lg whitespace-nowrap",children:e})]})}])},97776,e=>{"use strict";var t=e.i(91398),r=e.i(56206),s=e.i(60741),a=e.i(82226),l=e.i(54879);e.s(["default",0,({validators:e=[],className:i,...o})=>{let d=(0,s.default)({validators:[...e,a.validateDate],...o}),n=d.value?new Date(d.value).toISOString().split("T")[0]:"";return(0,t.jsx)(l.default,{...d,className:o.containerClassName,children:(0,t.jsx)("input",{type:"date",id:d.id,name:d.name,disabled:d.disabled,className:(0,r.default)("relative mt-0 block w-full appearance-none rounded-md rounded-b-md border-1 border-border-default px-4 py-2.5 text-sm text-text-primary dark:bg-slate-900 placeholder-slate-400 shadow-xs focus:z-10 focus:outline-hidden focus:ring-2 focus:ring-focus-ring",i,{"border-rose-700 placeholder:text-rose-300":!!d.error}),onChange:d.onChange,onBlur:d.onBlur,value:n,placeholder:d.placeholder,autoComplete:"off",...o})})}])},54879,e=>{"use strict";var t=e.i(91398),r=e.i(56206);e.s(["default",0,({children:e,className:s,error:a,disabled:l,required:i,name:o,label:d,hideLabel:n,labelClassName:u})=>(0,t.jsxs)("div",{className:(0,r.default)("container",{"is-invalid":!!a,disabled:l,required:i},s),children:[(0,t.jsx)("label",{"aria-label":d,htmlFor:o,className:(0,r.default)("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":!!a,"sr-only":n},u),children:a||d}),e]})])},23239,e=>{"use strict";var t=e.i(91398),r=e.i(56206),s=e.i(65897),a=e.i(60741),l=e.i(54879);e.s(["default",0,({validators:e=[],rows:i=10,...o})=>{let d=(0,a.default)({...o,validators:[...e,{isValid:e=>{try{return JSON?.parse(e),!0}catch(e){return!1}},intlMessageDescriptor:{id:"invalid_json_input",defaultMessage:"Invalid JSON input"}}]});return(0,t.jsx)(l.default,{...d,children:(0,t.jsx)(s.default,{className:(0,r.default)("mt-1 block w-full max-w-full rounded-md border-1 border-border-default dark:bg-slate-900 dark:text-slate-200 shadow-xs dark:shadow-none focus:ring-focus-ring sm:text-sm",{"border-rose-300 text-rose-600 focus:border-rose-600 focus:ring-rose-600":!!d.error},o.className),disabled:d.disabled,id:d.name,name:d.name,onChange:e=>{try{JSON.parse(e.target.value||"{}"),d.setError("")}catch(e){d.setError(e.message?.replace("JSON.parse",""))}finally{d.setValue(e.target.value,!0),d.setTouched(!0)}},onBlur:e=>{try{d.setValue(JSON.stringify(JSON.parse(e.target.value),void 0,2),!0),d.setError("")}catch(e){d.setError(e.message)}},placeholder:d.placeholder,autoComplete:d.autoComplete,value:d.value})})}])},21128,e=>{"use strict";var t=e.i(91398),r=e.i(56206),s=e.i(58021),a=e.i(61898);e.s(["default",0,({label:e,disabled:l=!1,className:i="",hidden:o=!1,...d})=>{let{formState:n}=(0,s.useFormContext)(),{...u}=d,c=Object.keys(n.errors).length>0&&Object.values(n.errors).some(e=>!!e),{disabled:m}=(0,a.default)(),f=l||m||n.isSubmitting||c,x=n.isSubmitting&&!c,h=(l||m||c)&&!n.isSubmitting;return(0,t.jsx)("input",{className:(0,r.default)("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",i,{"bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900":h,"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600":x,"bg-accent text-text-on-accent hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent":!f,hidden:o}),"aria-label":e,type:"submit",value:e,disabled:f,...u})}])},16984,e=>{"use strict";var t=e.i(91398),r=e.i(56206),s=e.i(82226),a=e.i(60741),l=e.i(54879);e.s(["default",0,({maxLength:e=0,validators:i=[],...o})=>{let d=(0,a.default)({validators:[...i,e&&(0,s.validateMaxLength)(e)],...o});return(0,t.jsx)(l.default,{...d,children:(0,t.jsx)("input",{className:(0,r.default)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-600 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 focus:outline-hidden focus:ring-2 focus:ring-focus-ring shadow-xs",{"border-rose-700 placeholder:text-rose-500":!!d.error,"border-slate-300 placeholder-slate-400":!d.error}),disabled:d.disabled,id:d.name,name:d.name,onChange:d.onChange,onClick:e=>{e.stopPropagation()},onBlur:d.onBlur,placeholder:d.placeholder,autoComplete:d.autoComplete||"off",type:d.type||"text",value:d.value,autoFocus:d.autoFocus})})}])},5505,e=>{"use strict";var t=e.i(91398),r=e.i(91788),s=e.i(98837),a=e.i(56206);let l=(0,s.default)("FormWrapperContext",(0,r.createContext)(!1));e.s(["FormWrapperContext",0,l,"default",0,({children:e,className:r=""})=>(0,t.jsx)(l.Provider,{value:!0,children:(0,t.jsx)("div",{className:"sm:max-w-full",children:(0,t.jsx)("div",{className:(0,a.default)("bg-surface rounded-md shadow-sm overflow-hidden",r),children:e})})})])},73319,e=>{"use strict";let t=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["extractQuery",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"isObject",0,t,"isTruthy",0,e=>!(!e||null==e||t(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},69211,e=>{"use strict";var t=e.i(91398),r=e.i(58021),s=e.i(60170);e.s(["default",0,({form:e,children:a,className:l="",...i})=>(0,t.jsx)(s.default.Provider,{value:e,children:(0,t.jsx)(r.FormProvider,{...e.rhf,children:(0,t.jsx)("form",{onReset:()=>e.api.handleReset(),onSubmit:e.api.handleSubmit,method:"POST",className:l,...i,children:a})})})])},60741,e=>{"use strict";var t=e.i(91788),r=e.i(69322),s=e.i(58021),a=e.i(82226),l=e.i(61898);e.s(["default",0,e=>{let i=(0,r.useIntl)(),{rhf:o,...d}=(0,l.default)(),{name:n,required:u,errorMessage:c,disabled:m=d.disabled||o?.formState?.isSubmitting,label:f=i.formatMessage({id:n,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:x=[]}=e,h=[...x,u&&a.validateRequired].filter(Boolean),g=e=>h.reduce((t,{isValid:r,intlMessageDescriptor:s,intlMessageValues:a})=>t||r(e)?t:c||i.formatMessage(s,{label:f,...a}),""),p=(0,t.useRef)(g);p.current=g;let{field:b,fieldState:v,formState:y}=(0,s.useController)({name:n,control:o?.control,rules:{validate:e=>p.current(e)||!0}}),w=(v.isTouched||y.isSubmitted)&&v.error?.message;return{...e,name:n,error:w,label:f,disabled:m,required:u,onChange:t=>{if(e.onChange&&e.onChange(t),"number"===e.type){let e=t?.target?.value,r=""===e||null==e?null:Number(e);b.onChange(r)}else b.onChange(t)},onBlur:b.onBlur,value:null==b.value?"":b.value,setValue:(e,t)=>{o?.setValue(n,e,{shouldDirty:!0,shouldValidate:t??!1})},setError:e=>{e?o?.setError(n,{type:"manual",message:e}):o?.clearErrors(n)},setTouched:e=>{e&&o?.trigger(n)}}}])},98949,e=>{"use strict";var t=e.i(91788),r=e.i(58021),s=e.i(69322),a=e.i(28401),l=e.i(73319);let i=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=>i(e)):Array.isArray(e)&&e?.length&&(0,l.isObject)(e[0])?e.map(e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[e,i(t)]))):e,o=e=>e&&"object"==typeof e?"string"==typeof e.message&&e.message?e.message:Array.isArray(e)?e.map(e=>o(e)):Object.fromEntries(Object.entries(e).filter(([e])=>"ref"!==e).map(([e,t])=>[e,o(t)])):e;e.s(["default",0,({submit:e,getSubmitErrorMessage:l=()=>"",onSubmitSuccess:d=()=>!0,initialValues:n,initialErrors:u,initialTouched:c,successMessage:m,enableReinitialize:f,validate:x,disabled:h=!1})=>{let g=(0,s.useIntl)(),[p,b]=(0,t.useState)(""),v=(0,r.useForm)({mode:"onTouched",defaultValues:n,values:f?n:void 0,errors:u?Object.fromEntries(Object.entries(u).map(([e,t])=>[e,{type:"manual",message:t}])):void 0}),y=(0,t.useCallback)(e=>{let t=e?.errors?.[0];return g.formatMessage({id:"error_server",defaultMessage:"{details}"},{details:t?.message||""})},[g]),w=(0,t.useCallback)(async t=>{let r=!0;try{let s=await e(Object.fromEntries(Object.entries(t).map(([e,t])=>[e,i(t)]))),o=("boolean"==typeof s?s:s?.success)??!s?.error;if(o)m&&a.toast.success(m),await d(o,s?.data||t);else{let e="boolean"==typeof s?!s:s?.error;Array.isArray(e)?e.forEach(e=>{r=!1,b(l(e)||y(e))}):(r=!1,b(l(e)||y(e)))}}catch(e){r=!1,b(l(e)||y(e))}r&&b("")},[e,m,d,l,y]);return{submitError:p,api:(0,t.useMemo)(()=>({setFieldError:(e,t)=>{v.setError(e,{type:"manual",message:t})},setFieldValue:(e,t)=>{v.setValue(e,t,{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(w),handleReset:()=>{v.reset()},resetForm:e=>{v.reset(e||n)},submitForm:()=>{v.handleSubmit(w)()},getFieldMeta:e=>{let t=v.getFieldState(e,v.formState);return{error:t.error?.message,touched:t.isTouched}},get initialValues(){return n},get errors(){return o(v.formState.errors)}}),[v,w,n]),rhf:v,setSubmitError:b,disabled:h}}],98949)},61898,e=>{"use strict";var t=e.i(91788),r=e.i(60170);e.s(["default",0,()=>(0,t.useContext)(r.default)])},60170,e=>{"use strict";var t=e.i(91788);let r=(0,e.i(98837).default)("FormContext",t.default.createContext({submitError:"",rhf:null,api:null,setSubmitError:()=>{},disabled:!1}));e.s(["default",0,r])},82226,e=>{"use strict";var t=e.i(73663),r=e.i(12051),s=e.i(35113),a=e.i(9356),l=e.i(49543);e.i(69322);let i=["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"],o=["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(["isContractAddress",0,(e=!1)=>({isValid:t=>!e&&!t||/^(0x)?[a-z0-9]{40}$/i.test(t),intlMessageDescriptor:{id:"error_contract_address",defaultMessage:"Invalid contract address"}}),"validateBirthdate",0,{isValid:e=>{if(!e)return!0;let t=new Date(e);if(!(0,a.isValid)(t))return!1;let r=(0,l.startOfDay)(new Date);return!(+(0,s.toDate)(t)>+(0,s.toDate)(r))},intlMessageDescriptor:{id:"error_birthdate_in_future",defaultMessage:"{label} cannot be in the future"}},"validateCountry",0,()=>({isValid:e=>i.includes(e.toUpperCase()),intlMessageDescriptor:{id:"error_country_code",defaultMessage:"Invalid country code"}}),"validateDate",0,{isValid:e=>!e||(0,a.isValid)(new Date(e)),intlMessageDescriptor:{id:"error_invalid_date",defaultMessage:"{label} is not a valid date"}},"validateEmail",0,{isValid:e=>(0,r.default)(e||""),intlMessageDescriptor:{id:"error_email",defaultMessage:"{label} must be a valid email address"}},"validateInteger",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"}}),"validateLanguage",0,()=>({isValid:e=>o.includes(e?.toLowerCase()),intlMessageDescriptor:{id:"error_language_code",defaultMessage:"Invalid language code"}}),"validateMaxLength",0,e=>({isValid:r=>(0,t.default)(r||"",{max:e}),intlMessageDescriptor:{id:"error_max_length"},intlMessageValues:{maxLength:e.toString()}}),"validateProductCommerce",0,(e,t)=>({isValid:()=>{let r="function"==typeof t?t():t;if(!r?.length||r?.length===1)return!0;let s=r[e];return r.filter((t,r)=>r!==e).every(({minQuantity:e,countryCode:t,currencyCode:r})=>e!==s?.minQuantity||t!==s?.countryCode||r!==s?.currencyCode)},intlMessageDescriptor:{id:"error_same_product_prices",defaultMessage:"{label} can not be equal for a price with the same country and currency"}}),"validateProductCommerceOneZero",0,e=>({isValid:()=>{let t="function"==typeof e?e():e;if(!t?.length)return!0;let r=e=>null===e||""===e||void 0===e||0===Number(e);return(1!==t.length||!!r(t[0].minQuantity))&&t.filter(({minQuantity:e})=>r(e))?.length===1},intlMessageDescriptor:{id:"error_commerce_quantity_null_required",defaultMessage:"{label} should have one price with min quantity of 0 or empty"}}),"validateRequired",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"}},"validateRequiredTag",0,e=>({isValid:t=>!e||t.length>0,intlMessageDescriptor:{id:"error_tag_required",defaultMessage:"{label} you must provide at least one tag"}})],82226)},94672,e=>{"use strict";var t=e.i(59080);let r=t.gql`
|
|
2
|
-
fragment WorkFragment on Work {
|
|
3
|
-
_id
|
|
4
|
-
type
|
|
5
|
-
scheduled
|
|
6
|
-
status
|
|
7
|
-
started
|
|
8
|
-
success
|
|
9
|
-
finished
|
|
10
|
-
created
|
|
11
|
-
deleted
|
|
12
|
-
retries
|
|
13
|
-
original {
|
|
14
|
-
_id
|
|
15
|
-
retries
|
|
16
|
-
}
|
|
17
|
-
input
|
|
18
|
-
result
|
|
19
|
-
}
|
|
20
|
-
`;e.s(["default",0,r])},30086,e=>{"use strict";var t=e.i(59080),r=e.i(76204);let s=t.gql`
|
|
21
|
-
mutation AddWork(
|
|
22
|
-
$type: WorkType!
|
|
23
|
-
$priority: Int! = 0
|
|
24
|
-
$input: JSON
|
|
25
|
-
$originalWorkId: ID
|
|
26
|
-
$scheduled: Timestamp
|
|
27
|
-
$retries: Int! = 20
|
|
28
|
-
) {
|
|
29
|
-
addWork(
|
|
30
|
-
type: $type
|
|
31
|
-
priority: $priority
|
|
32
|
-
input: $input
|
|
33
|
-
originalWorkId: $originalWorkId
|
|
34
|
-
scheduled: $scheduled
|
|
35
|
-
retries: $retries
|
|
36
|
-
) {
|
|
37
|
-
_id
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
`;e.s(["default",0,()=>{let[e]=(0,r.useMutation)(s);return{addWork:async({type:t,priority:r,input:s,originalWorkId:a,scheduled:l=null,retries:i})=>e({variables:{type:t,priority:r,input:s,originalWorkId:a,scheduled:l,retries:i},refetchQueries:["WorkQueue"]})}}])},63104,e=>{"use strict";var t=e.i(59080),r=e.i(32171),s=e.i(70693),a=e.i(94672);let l=(e="")=>t.gql`
|
|
41
|
-
query Work($workId: ID!) {
|
|
42
|
-
work(workId: $workId) {
|
|
43
|
-
...WorkFragment
|
|
44
|
-
${e}
|
|
45
|
-
error
|
|
46
|
-
priority
|
|
47
|
-
worker
|
|
48
|
-
timeout
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
${a.default}
|
|
52
|
-
`;e.s(["GetWorkQuery",0,l,"default",0,({workId:e=null,...t})=>{let{customProperties:a}=(0,s.default)(),{data:i,loading:o,error:d,previousData:n}=(0,r.useQuery)(l(a?.Work),{skip:!e,variables:{workId:e},...t});return{work:i?.work||n?.work,loading:o,error:d}}])},30595,54020,e=>{"use strict";var t=e.i(98170),r=e.i(50216),s=e.i(27861),a=e.i(36980),l=e.i(57322),i=e.i(24323),o=e.i(60836),d=e.i(2848);let n=["years","months","weeks","days","hours","minutes","seconds"];e.s(["default",0,()=>({getScheduledTime:e=>{if(!e)return null;let{scheduled:n,status:u,started:c}=e;if("FAILED"===u||"SUCCESS"===u||"DELETED"===u)return null;let m=new Date(n).getTime();if("ALLOCATED"===u||"NEW"===u&&!c){var f;return f={addSuffix:!0},function(e,t,n){let u,c=(0,s.getDefaultOptions)(),m=n?.locale??c.locale??r.defaultLocale,f=(0,o.compareAsc)(e,t);if(isNaN(f))throw RangeError("Invalid time value");let x=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:f}),[h,g]=(0,i.normalizeDates)(n?.in,...f>0?[t,e]:[e,t]),p=(0,a.getRoundingMethod)(n?.roundingMethod??"round"),b=g.getTime()-h.getTime(),v=b/d.millisecondsInMinute,y=(b-((0,l.getTimezoneOffsetInMilliseconds)(g)-(0,l.getTimezoneOffsetInMilliseconds)(h)))/d.millisecondsInMinute,w=n?.unit;if("second"===(u=w||(v<1?"second":v<60?"minute":v<d.minutesInDay?"hour":y<d.minutesInMonth?"day":y<d.minutesInYear?"month":"year"))){let e=p(b/1e3);return m.formatDistance("xSeconds",e,x)}if("minute"===u){let e=p(v);return m.formatDistance("xMinutes",e,x)}if("hour"===u){let e=p(v/60);return m.formatDistance("xHours",e,x)}if("day"===u){let e=p(y/d.minutesInDay);return m.formatDistance("xDays",e,x)}if("month"===u){let e=p(y/d.minutesInMonth);return 12===e&&"month"!==w?m.formatDistance("xYears",1,x):m.formatDistance("xMonths",e,x)}else{let e=p(y/d.minutesInYear);return m.formatDistance("xYears",e,x)}}(m,(0,t.constructFrom)(m,Date.now()),f)}return null},getDuration:e=>{var t,a;let l,i,o,d,u,c;if(!e)return null;let{started:m,finished:f}=e,x=new Date().getTime();return m?(t={hours:Number(Math.floor((l=f?new Date(f).getTime()-new Date(m).getTime():x-new Date(m).getTime())/1e3/60/60)%24),minutes:Number(Math.floor(l/1e3/60)%60),seconds:Number(Math.ceil(l/1e3)%60)},a={zero:!1},i=(0,s.getDefaultOptions)(),o=a?.locale??i.locale??r.defaultLocale,d=a?.format??n,u=a?.zero??!1,c=a?.delimiter??" ",o.formatDistance?d.reduce((e,r)=>{let s=`x${r.replace(/(^.)/,e=>e.toUpperCase())}`,a=t[r];return void 0!==a&&(u||t[r])?e.concat(o.formatDistance(s,a)):e},[]).join(c):""):null}})],30595);var u=e.i(91398);e.s(["default",0,({work:e,children:t=null})=>e?.original?e?.original?.retries===e?.retries?(0,u.jsxs)("span",{children:[(0,u.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-3 h-3 inline-block text-slate-500 mr-2",children:(0,u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})}),t]}):(0,u.jsx)("span",{children:(0,u.jsxs)("span",{children:[(0,u.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-3 h-3 inline-block text-slate-500 mr-2",children:(0,u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})}),t,(0,u.jsx)("span",{className:"text-rose-400 text-sm ml-2",children:`${e?.retries} / ${e?.original?.retries}`})]})}):t],54020)},9459,e=>{"use strict";var t=e.i(91398),r=e.i(3828),s=e.i(69322),a=e.i(28401),l=e.i(41158),i=e.i(91788),o=e.i(42469),d=e.i(84818),n=e.i(60193),u=e.i(65897),c=e.i(30595),m=e.i(50647),f=e.i(54020);let x=({work:e})=>{let{formatMessage:r}=(0,s.useIntl)(),{formatDateTime:a}=(0,d.default)(),{getDuration:x,getScheduledTime:h}=(0,c.default)(),[,g]=(0,i.useState)(null);(0,i.useEffect)(()=>{let t=null;return e&&("NEW"===e.status||"ALLOCATED"===e.status)&&(t=setInterval(()=>g(Date.now()),1e3)),()=>{clearInterval(t)}},[e?.status]);let p={timeStyle:"medium",dateStyle:"long"};return(0,t.jsx)("div",{className:`rounded-xl xl:-mx-8 mt-10 p-2 sm:p-6 lg:p-8 ${(0,n.getShadowStyle)(e?.status)}`,children:(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-2 auto-rows-max",children:[(0,t.jsxs)("div",{className:"max-h-fit col-span-2 rounded-lg border border-border-default bg-surface-input p-4 shadow-md dark:shadow-none sm:p-6 lg:col-span-1 lg:p-8",children:[(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-text-muted ",children:r({id:"work_type",defaultMessage:"Work type"})}),(0,t.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm",children:e?.type})]}),(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-text-muted ",children:r({id:"work_status",defaultMessage:"Work Status"})}),(0,t.jsx)(o.default,{text:e?.status,color:n.WORK_STATUSES[e?.status]})]}),(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-text-muted ",children:r({id:"work_priority",defaultMessage:"Priority"})}),(0,t.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm ",children:e?.priority})]}),(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-text-muted ",children:r({id:"work_retries",defaultMessage:"Retries"})}),(0,t.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm",children:(0,t.jsx)(f.default,{work:e})})]}),(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-text-muted ",children:r({id:"worker",defaultMessage:"Worker"})}),(0,t.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm",children:e?.worker?(0,t.jsx)(o.default,{text:r({id:"worker_dynamic",defaultMessage:"{worker}"},{worker:e?.worker}),color:"purple"}):"n/a"})]}),e?.retries||e?.original?(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-text-muted ",children:r({id:"work_original",defaultMessage:"Original Work"})}),(0,t.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm",children:(0,t.jsx)(l.default,{href:`/works?workerId=${e?.original?._id}`,className:"text-text-primary",children:e?.original?._id})})]}):""]}),(0,t.jsx)("div",{className:"col-span-2 rounded-lg border border-border-default bg-surface-input p-4 shadow-md dark:shadow-none sm:p-6 lg:col-span-1 lg:p-8",children:(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-5",children:[(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-text-muted ",children:r({id:"work_created",defaultMessage:"Created"})}),(0,t.jsx)("div",{className:"flex text-sm",children:a(e?.created,p)})]}),(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-text-muted ",children:r({id:"work_scheduled",defaultMessage:"Scheduled"})}),(0,t.jsx)("div",{className:"flex text-sm w-100",children:(0,t.jsx)(m.default,{text:a(e?.scheduled,p),children:h(e)})})]}),(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-text-muted ",children:r({id:"work_started",defaultMessage:"Started"})}),(0,t.jsx)("div",{className:"flex text-sm",children:a(e?.started,p)})]}),(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-text-muted ",children:r({id:"work_finished",defaultMessage:"Finished"})}),(0,t.jsx)("div",{className:"flex text-sm",children:a(e?.finished,p)})]}),(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-text-muted ",children:r({id:"duration",defaultMessage:"Duration"})}),(0,t.jsx)("div",{className:"flex text-sm",children:x(e)})]}),e?.deleted&&(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-text-muted ",children:r({id:"deleted",defaultMessage:"Deleted"})}),(0,t.jsx)("div",{className:"flex text-sm",children:a(e?.deleted,p)})]})]})}),e?.error&&(0,t.jsxs)("div",{className:"rounded-lg shadow-md dark:shadow-none border-2 border-rose-300 dark:border-rose-800 col-span-2 lg:col-span-2 order-first overflow-hidden bg-rose-100 dark:bg-rose-800",children:[(0,t.jsx)("div",{className:"px-4 py-5 sm:px-6 border-b border-rose-300 dark:border-rose-800",children:(0,t.jsxs)("h3",{className:"text-lg font-medium leading-6 text-rose-700 dark:text-rose-300 flex items-center gap-2",children:[(0,t.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),r({id:"error",defaultMessage:"Error"})]})}),(0,t.jsx)("div",{className:"bg-rose-50 dark:bg-rose-950",children:(0,t.jsx)(u.default,{value:decodeURI(JSON.stringify(e.error,null,2)),disabled:!0,className:"block border-none w-full max-w-full resize-none sm:text-sm text-rose-900 dark:text-rose-100"})})]}),e?.input&&(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border-default col-span-2 shadow-md dark:shadow-none bg-surface-input lg:col-span-1",children:[(0,t.jsx)("div",{className:"px-4 py-5 sm:px-6",children:(0,t.jsx)("h3",{className:"text-lg font-medium leading-6 text-slate-900 dark:text-slate-500",children:r({id:"input",defaultMessage:"Input"})})}),(0,t.jsx)(u.default,{value:JSON.stringify(e.input,null,2),disabled:!0,className:"block w-full max-w-full resize-none sm:text-sm"})]}),e?.result&&(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg shadow-md dark:shadow-none border border-border-default col-span-2 bg-surface-input lg:col-span-1",children:[(0,t.jsxs)("div",{className:"px-4 py-5 sm:px-6 flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"text-lg font-medium leading-6 text-slate-900 dark:text-slate-500",children:r({id:"result",defaultMessage:"Result"})}),e?.type==="BULK_IMPORT"&&e?.result?.created&&(0,t.jsx)("span",{className:"text-sm text-text-secondary",children:r({id:"items_created",defaultMessage:"{count} items created"},{count:e.result.created.length})})]}),(0,t.jsx)(u.default,{value:JSON.stringify(e.result,null,2),disabled:!0,className:`block w-full max-w-full resize-none sm:text-sm ${e?.type==="BULK_IMPORT"&&e?.result?.created?.length>50?"max-h-96 overflow-y-auto":""}`})]})]})})};var h=e.i(63104),g=e.i(59080),p=e.i(76204);let b=g.gql`
|
|
53
|
-
mutation RemoveWork($workId: ID!) {
|
|
54
|
-
removeWork(workId: $workId) {
|
|
55
|
-
_id
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
`;var v=e.i(30086),y=e.i(53576),w=e.i(25327),k=e.i(50595),j=e.i(15971),_=e.i(6607),N=e.i(21623),M=e.i(24608),S=e.i(86129);e.i(51523);var C=e.i(19518),D=e.i(5505),F=e.i(97776),I=e.i(69211),E=e.i(23239),T=e.i(21128),O=e.i(16984),A=e.i(98949);let W=({work:e,onSubmit:a})=>{let{formatMessage:l,locale:i}=(0,s.useIntl)(),o=(0,r.useRouter)(),d=l({id:"work_added_success",defaultMessage:"Work added successfully!"}),n=(0,A.default)({submit:a,successMessage:d,onSubmitSuccess:(e,{_id:t})=>(o.replace(`/works?workerId=${t}`),!0),enableReinitialize:!0,initialValues:{...e,input:JSON.stringify(e?.input||{},null,2)}});return(0,t.jsx)(D.default,{children:(0,t.jsx)(I.default,{form:n,children:(0,t.jsxs)("div",{className:"space-y-6 rounded-md bg-surface-input shadow-md ",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold text-text-primary ",children:l({id:"retry_work",defaultMessage:"Retry Work"})}),(0,t.jsx)("div",{className:"flex flex-col sm:flex-row sm:justify-between sm:items-center dark:border-slate-700 pb-4 mb-4",children:(0,t.jsx)("div",{className:"text-sm text-text-muted mt-2 sm:mt-0 flex flex-col sm:flex-row sm:gap-4",children:(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:l({id:"type",defaultMessage:"Type"})})," ",e.type]})})}),(0,t.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,t.jsx)(O.default,{name:"priority",id:"priority",label:l({id:"priority",defaultMessage:"Priority"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",type:"number",className:"w-full py-2 text-sm text-text-primary dark:bg-slate-800 rounded-md"}),(0,t.jsx)(O.default,{name:"retries",id:"retries",label:l({id:"retries",defaultMessage:"Retries"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",type:"number",className:"w-full py-2 text-sm text-text-primary dark:bg-slate-800 rounded-md"})]}),(0,t.jsx)(F.default,{name:"scheduled",label:l({id:"scheduled",defaultMessage:"Scheduled"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",className:"w-full py-2 text-sm text-text-primary dark:bg-slate-800 rounded-md",containerClassName:"w-full",locale:i,showTimeInput:!0,timeFormat:"p",timeIntervals:15}),(0,t.jsx)("div",{children:(0,t.jsx)(E.default,{name:"input",label:l({id:"input",defaultMessage:"Input"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",className:"w-full h-48 text-sm text-text-primary dark:bg-slate-800 rounded-md"})}),(0,t.jsx)("div",{className:"border-t-slate-100 border-t border-t-border-subtle space-y-6 bg-surface-subtle p-5 text-right",children:(0,t.jsx)(T.default,{label:l({id:"retry_submit",defaultMessage:"Retry"})})})]})})})};e.s(["default",0,({workerId:e})=>{let l,{formatMessage:o}=(0,s.useIntl)(),{push:d}=(0,r.useRouter)(),{work:n}=(0,h.default)({workId:e,pollInterval:2e3}),{setModal:u}=(0,_.default)(),{removeWork:c}=(()=>{let[e]=(0,p.useMutation)(b);return{removeWork:async({workId:t})=>e({variables:{workId:t},refetchQueries:["WorkQueue"]})}})(),{addWork:m}=(0,v.default)(),f=(0,i.useCallback)(async()=>{u((0,t.jsx)(W,{work:n,onSubmit:async e=>{try{let{data:t}=await m({type:n?.type,priority:e.priority||n?.priority,retries:e.retries,scheduled:e.scheduled,input:JSON.parse(e.input||"{}"),originalWorkId:n?._id});return d(`/works?workerId=${t.addWork._id}`),u(null),{success:!0}}catch(e){return{success:!1,error:e}}}}),{closeOnOutsideClick:!0})},[n]),g=async()=>{await u((0,t.jsx)(j.default,{onCancelClick:()=>u(""),message:o({id:"delete_work_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this work? "}),onOkClick:async()=>{u(""),await c({workId:e}),a.toast.success(o({id:"work_deleted",defaultMessage:"Work deleted successfully"}))},okText:o({id:"delete_work",defaultMessage:"Delete work"})}))};return(0,t.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,t.jsx)(k.default,{}),(0,t.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,t.jsx)(w.default,{headerText:o({id:"work_detail",defaultMessage:"Work Detail"}),title:o({id:"work_detail_title",defaultMessage:"Work {id}"},{id:n?._id})}),n&&(n?.status===C.IWorkStatus.Failed||n?.status===C.IWorkStatus.Success)?(0,t.jsxs)("button",{type:"button","aria-describedby":"header-delete-button",className:"my-auto flex items-center justify-center rounded-sm border-1 border-emerald-600 px-3 py-2 text-sm font-semibold text-emerald-600 shadow-xs hover:border-emerald-800 hover:bg-emerald-700 hover:text-white focus:outline-hidden focus:ring-2 focus:ring-emerald-700 focus:ring-offset-2",onClick:f,children:[(0,t.jsx)("span",{className:"pr-1",children:(0,t.jsx)(S.ArrowPathIcon,{className:"h-5 w-5"})}),o({id:"retry-work",defaultMessage:"Retry"})]}):null,n&&((l=n?.status)===C.IWorkStatus.New||l===C.IWorkStatus.Allocated)?(0,t.jsx)(N.default,{variant:"danger",icon:(0,t.jsx)(M.XMarkIcon,{className:"h-5 w-5"}),text:"Delete",onClick:g}):null]}),n?(0,t.jsx)(x,{work:n}):(0,t.jsx)(y.default,{})]})}],9459)},72200,e=>{"use strict";var t=e.i(91398),r=e.i(69322);e.i(51523);var s=e.i(19518),a=e.i(3828),l=e.i(50595),i=e.i(25327),o=e.i(58971),d=e.i(9459),n=e.i(6506);e.s(["default",0,()=>{let{query:e}=(0,a.useRouter)(),{hasRole:u}=(0,o.default)(),{formatMessage:c}=(0,r.useIntl)(),{workerId:m}=e;return m?(0,t.jsx)(d.default,{workerId:m}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.default,{depth:3,currentPageTitle:c({id:"work_queue_header",defaultMessage:"Work queue"})}),(0,t.jsx)(i.default,{title:c({id:"work_queue_header",defaultMessage:"Work queue"}),addPath:u(s.IRoleAction.ManageWorker)&&"/works/management",addButtonText:c({id:"manage",defaultMessage:"Manage"})}),(0,t.jsx)(n.default,{})]})}])},29543,(e,t,r)=>{let s="/works";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(72200)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([s])})},94396,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))});e.s(["default",0,r])},86129,e=>{"use strict";var t=e.i(94396);e.s(["ArrowPathIcon",()=>t.default])},36980,e=>{"use strict";e.s(["getRoundingMethod",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(["compareAsc",0,function(e,r){let s=(0,t.toDate)(e)-(0,t.toDate)(r);return s<0?-1:s>0?1:s}])},78262,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.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))},t.exports=r.default,t.exports.default=r.default},73663,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){(0,a.default)(e),"object"===l(t)?(r=t.min||0,s=t.max):(r=arguments[1]||0,s=arguments[2]);var r,s,i=e.match(/[^\uFE0F\uFE0E][\uFE0F\uFE0E]/g)||[],o=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],d=e.length-i.length-o.length,n=d>=r&&(void 0===s||d<=s);return n&&Array.isArray(null==t?void 0:t.discreteLengths)?t.discreteLengths.some(function(e){return e===d}):n};var s,a=(s=e.r(78262))&&s.__esModule?s:{default:s};function l(e){return(l="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)}t.exports=r.default,t.exports.default=r.default},80930,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){for(var r=0;r<t.length;r++){var s=t[r];if(e===s||"[object RegExp]"===Object.prototype.toString.call(s)&&s.test(e))return!0}return!1},t.exports=r.default,t.exports.default=r.default},60054,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){(0,a.default)(e),"object"===l(t)?(r=t.min||0,s=t.max):(r=arguments[1],s=arguments[2]);var r,s,i=encodeURI(e).split(/%..|./).length-1;return i>=r&&(void 0===s||i<=s)};var s,a=(s=e.r(78262))&&s.__esModule?s:{default:s};function l(e){return(l="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)}t.exports=r.default,t.exports.default=r.default},34058,(e,t,r)=>{"use strict";function s(e){return(s="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(r,"__esModule",{value:!0}),r.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in("object"!==s(e)||null===e)&&(e={}),t)void 0===e[r]&&(e[r]=t[r]);return e},t.exports=r.default,t.exports.default=r.default},96184,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){(0,s.default)(e),(t=(0,a.default)(t,i)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1)),!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var r=e.split("."),l=r[r.length-1];return!(t.require_tld&&(r.length<2||!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(l)||/\s/.test(l)))&&!(!t.allow_numeric_tld&&/^\d+$/.test(l))&&r.every(function(e){return!(e.length>63&&!t.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)||/[\uff01-\uff5e]/.test(e)||/^-|-$/.test(e)||!t.allow_underscores&&/_/.test(e))})};var s=l(e.r(78262)),a=l(e.r(34058));function l(e){return e&&e.__esModule?e:{default:e}}var i={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};t.exports=r.default,t.exports.default=r.default},90498,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.default)(t);var s=("object"===l(r)?r.version:arguments[1])||"";return s?"4"===s.toString()?d.test(t):"6"===s.toString()&&u.test(t):e(t,{version:4})||e(t,{version:6})};var s,a=(s=e.r(78262))&&s.__esModule?s:{default:s};function l(e){return(l="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 i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",o="(".concat(i,"[.]){3}").concat(i),d=new RegExp("^".concat(o,"$")),n="(?:[0-9a-fA-F]{1,4})",u=RegExp("^("+"(?:".concat(n,":){7}(?:").concat(n,"|:)|")+"(?:".concat(n,":){6}(?:").concat(o,"|:").concat(n,"|:)|")+"(?:".concat(n,":){5}(?::").concat(o,"|(:").concat(n,"){1,2}|:)|")+"(?:".concat(n,":){4}(?:(:").concat(n,"){0,1}:").concat(o,"|(:").concat(n,"){1,3}|:)|")+"(?:".concat(n,":){3}(?:(:").concat(n,"){0,2}:").concat(o,"|(:").concat(n,"){1,4}|:)|")+"(?:".concat(n,":){2}(?:(:").concat(n,"){0,3}:").concat(o,"|(:").concat(n,"){1,5}|:)|")+"(?:".concat(n,":){1}(?:(:").concat(n,"){0,4}:").concat(o,"|(:").concat(n,"){1,6}|:)|")+"(?::((?::".concat(n,"){0,5}:").concat(o,"|(?::").concat(n,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");t.exports=r.default,t.exports.default=r.default},12051,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){if((0,s.default)(e),(t=(0,d.default)(t,u)).require_display_name||t.allow_display_name){var r=e.match(c);if(r){var n,p,b=r[1];if(e=e.replace(b,"").replace(/(^<|>$)/g,""),b.endsWith(" ")&&(b=b.slice(0,-1)),!(!(!(p=(n=b).replace(/^"(.+)"$/,"$1")).trim()||/[\.";<>]/.test(p)&&(p===n||p.split('"').length!==p.split('\\"').length))&&1))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>254)return!1;var v=e.split("@"),y=v.pop(),w=y.toLowerCase();if(t.host_blacklist.length>0&&(0,a.default)(w,t.host_blacklist)||t.host_whitelist.length>0&&!(0,a.default)(w,t.host_whitelist))return!1;var k=v.join("@");if(t.domain_specific_validation&&("gmail.com"===w||"googlemail.com"===w)){var j=(k=k.toLowerCase()).split("+")[0];if(!(0,l.default)(j.replace(/\./g,""),{min:6,max:30}))return!1;for(var _=j.split("."),N=0;N<_.length;N++)if(!f.test(_[N]))return!1}if(!1===t.ignore_max_length&&(!(0,l.default)(k,{max:64})||!(0,l.default)(y,{max:254})))return!1;if(!(0,i.default)(y,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length,allow_underscores:t.allow_underscores})){if(!t.allow_ip_domain)return!1;if(!(0,o.default)(y)){if(!y.startsWith("[")||!y.endsWith("]"))return!1;var M=y.slice(1,-1);if(0===M.length||!(0,o.default)(M))return!1}}if(t.blacklisted_chars&&-1!==k.search(RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;if('"'===k[0]&&'"'===k[k.length-1])return k=k.slice(1,k.length-1),t.allow_utf8_local_part?g.test(k):x.test(k);for(var S=t.allow_utf8_local_part?h:m,C=k.split("."),D=0;D<C.length;D++)if(!S.test(C[D]))return!1;return!0};var s=n(e.r(78262)),a=n(e.r(80930)),l=n(e.r(60054)),i=n(e.r(96184)),o=n(e.r(90498)),d=n(e.r(34058));function n(e){return e&&e.__esModule?e:{default:e}}var u={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,m=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,f=/^[a-z\d]+$/,x=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,h=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,g=/^([\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;t.exports=r.default,t.exports.default=r.default}]);
|
|
@@ -1,5 +0,0 @@
|
|
|
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),s=e.i(60360),l=e.i(74664);let u=(0,t.createContext)(null);u.displayName="DescriptionContext";let a=Object.assign((0,l.forwardRefWithAs)(function(e,n){let a=(0,t.useId)(),c=(0,s.useDisabled)(),{id:d=`headlessui-description-${a}`,...f}=e,p=function e(){let n=(0,t.useContext)(u);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}(),m=(0,i.useSyncRefs)(n);(0,r.useIsoMorphicEffect)(()=>p.register(d),[d,p.register]);let v=(0,o.useSlot)({...p.slot,disabled:c||!1}),h={ref:m,...p.props,id:d};return(0,l.useRender)()({ourProps:h,theirProps:f,slot:v,defaultTag:"p",name:p.name||"Description"})}),{});e.s(["Description",0,a,"useDescribedBy",0,function(){var e,n;return null!=(n=null==(e=(0,t.useContext)(u))?void 0:e.value)?n:void 0},"useDescriptions",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.useEvent)(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(u.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(["Keys",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),s=e.i(76925),l=e.i(27544),u=e.i(56833),a=e.i(75621),c=e.i(81093),d=e.i(74664);let f=t.Fragment,p=(0,d.forwardRefWithAs)(function(e,o){let{ownerDocument:p=null,...m}=e,b=(0,t.useRef)(null),g=(0,u.useSyncRefs)((0,u.optionalRef)(e=>{b.current=e}),o),y=(0,s.useOwnerDocument)(b.current),E=function(e){let n=(0,a.usePortalRoot)(),r=(0,t.useContext)(v),[o,i]=(0,t.useState)(()=>{var t;if(!n&&null!==r)return null!=(t=r.current)?t:null;if(c.env.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.useDisposables)(),S=(0,l.useServerHandoffComplete)(),L=(0,d.useRender)();return(0,i.useOnUnmount)(()=>{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))}},L({ourProps:{ref:g},theirProps:m,slot:{},defaultTag:f,name:"Portal"})),E):null}),m=t.Fragment,v=(0,t.createContext)(null),h=(0,t.createContext)(null),b=(0,d.forwardRefWithAs)(function(e,n){let r=(0,u.useSyncRefs)(n),{enabled:o=!0,ownerDocument:i,...s}=e,l=(0,d.useRender)();return o?t.default.createElement(p,{...s,ownerDocument:i,ref:r}):l({ourProps:{ref:r},theirProps:s,slot:{},defaultTag:f,name:"Portal"})}),g=(0,d.forwardRefWithAs)(function(e,n){let{target:r,...o}=e,i={ref:(0,u.useSyncRefs)(n)},s=(0,d.useRender)();return t.default.createElement(v.Provider,{value:r},s({ourProps:i,theirProps:o,defaultTag:m,name:"Popover.Group"}))}),y=Object.assign(b,{Group:g});e.s(["Portal",0,y,"PortalGroup",0,g,"useNestedPortals",0,function(){let e=(0,t.useContext)(h),n=(0,t.useRef)([]),r=(0,o.useEvent)(t=>(n.current.push(t),e&&e.register(t),()=>i(t))),i=(0,o.useEvent)(t=>{let r=n.current.indexOf(t);-1!==r&&n.current.splice(r,1),e&&e.unregister(t)}),s=(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:s},e)},[s])]}])},73483,31774,59778,55839,68327,65383,55251,99901,95031,87264,76925,e=>{"use strict";let t,n,r,o,i,s;var l=e.i(60004),u=e.i(80795),a=e.i(91788),c=e.i(14929),d=e.i(3926),f=e.i(26417),p=Object.defineProperty,m=(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},v=((t=v||{})[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.Machine{constructor(){super(...arguments),m(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),m(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.match)(t.type,h,e,t)}}let g=new d.DefaultMap(()=>b.new());e.s(["ActionTypes",0,v,"stackMachines",0,g],31774);var y=e.i(19979),E=e.i(93481);function w(e,t,n=c.shallowEqual){return(0,y.useSyncExternalStoreWithSelector)((0,E.useEvent)(t=>e.subscribe(T,t)),(0,E.useEvent)(()=>e.state),(0,E.useEvent)(()=>e.state),(0,E.useEvent)(t),n)}function T(e){return e}e.s(["useSlice",0,w],59778);var S=e.i(64728);function L(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.useIsoMorphicEffect)(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),!!e&&(!i||o)}e.s(["useIsTopLayer",0,L],55839);let P=new Map,O=new Map;function M(e){var t;let n=null!=(t=O.get(e))?t:0;return O.set(e,n+1),0!==n?()=>F(e):(P.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>F(e))}function F(e){var t;let n=null!=(t=O.get(e))?t:1;if(1===n?O.delete(e):O.set(e,n-1),1!==n)return;let r=P.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,P.delete(e))}e.s(["useInertOthers",0,function(e,{allowed:t,disallowed:n}={}){let r=L(e,"inert-others");(0,S.useIsoMorphicEffect)(()=>{var e,o;if(!r)return;let i=(0,l.disposables)();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&i.add(M(t));let s=null!=(o=null==t?void 0:t())?o:[];for(let e of s){if(!e)continue;let t=(0,u.getOwnerDocument)(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)s.some(t=>e.contains(t))||i.add(M(e));n=n.parentElement}}return i.dispose},[r,t,n])}],73483);var k=e.i(55367),A=e.i(15067);e.s(["useOnDisappear",0,function(e,t,n){let r=(0,A.useLatestValue)(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:k.isHTMLElement(t)?t:t.current;if(!n)return;let o=(0,l.disposables)();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 C=["[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(","),x=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var R=((n=R||{})[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),N=((r=N||{})[r.Error=0]="Error",r[r.Overflow=1]="Overflow",r[r.Success=2]="Success",r[r.Underflow=3]="Underflow",r),H=((o=H||{})[o.Previous=-1]="Previous",o[o.Next=1]="Next",o);function D(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(C)).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 j(e,t=0){var n;return e!==(null==(n=(0,u.getOwnerDocument)(e))?void 0:n.body)&&(0,f.match)(t,{0:()=>e.matches(C),1(){let t=e;for(;null!==t;){if(t.matches(C))return!0;t=t.parentElement}return!1}})}var W=((s=W||{})[s.Keyboard=0]="Keyboard",s[s.Mouse=1]="Mouse",s);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,s,l;let a=Array.isArray(e)?e.length>0?(0,u.getRootNode)(e[0]):document:(0,u.getRootNode)(e),c=Array.isArray(e)?n?K(e):e:64&t?function(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)))}(e):D(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}:{},m=0,v=c.length,h;do{if(m>=v||m+v<=0)return 0;let e=f+m;if(16&t)e=(e+v)%v;else{if(e<0)return 3;if(e>=v)return 1}null==(h=c[e])||h.focus(p),m+=d}while(h!==(0,u.getActiveElement)(h))return 6&t&&null!=(l=null==(s=null==(i=h)?void 0:i.matches)?void 0:s.call(i,"textarea,input"))&&l&&h.select(),2}function B(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function G(){return B()||/Android/gi.test(window.navigator.userAgent)}function U(e,t,n,r){let o=(0,A.useLatestValue)(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,A.useLatestValue)(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(["Focus",0,R,"FocusResult",0,N,"FocusableMode",0,I,"focusElement",0,function(e){null==e||e.focus({preventScroll:!0})},"focusFrom",0,function(e,t,n=null===e?document.body:(0,u.getRootNode)(e)){return V(D(n),t,{relativeTo:e})},"focusIn",0,V,"focusableSelector",0,C,"isFocusableElement",0,j,"sortByDomNode",0,K],65383),e.s(["isIOS",0,B,"isMobile",0,G],55251),e.s(["useDocumentEvent",0,U],99901),e.s(["useWindowEvent",0,_],95031),e.s(["useOutsideClick",0,function(e,t,n){let r=(0,A.useLatestValue)(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 j(o,I.Loose)||-1===o.tabIndex||e.preventDefault(),r.current(e,o)}},[r,t]),i=(0,a.useRef)(null);U(e,"pointerdown",e=>{var t,n;G()||(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),U(e,"pointerup",e=>{if(G()||!i.current)return;let t=i.current;return i.current=null,o(e,()=>t)},!0);let s=(0,a.useRef)({x:0,y:0});U(e,"touchstart",e=>{s.current.x=e.touches[0].clientX,s.current.y=e.touches[0].clientY},!0),U(e,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-s.current.x)>=30||Math.abs(t.y-s.current.y)>=30))return o(e,()=>k.isHTMLorSVGElement(e.target)?e.target:null)},!0),_(e,"blur",e=>o(e,()=>k.isHTMLIframeElement(window.document.activeElement)?window.document.activeElement:null),!0)}],87264),e.s(["useOwnerDocument",0,function(...e){return(0,a.useMemo)(()=>(0,u.getOwnerDocument)(...e),[...e])}],76925)},21867,e=>{"use strict";var t=e.i(91788),n=e.i(38403),r=e.i(93481);e.s(["useOnUnmount",0,function(e){let o=(0,r.useEvent)(e),i=(0,t.useRef)(!1);(0,t.useEffect)(()=>(i.current=!1,()=>{i.current=!0,(0,n.microTask)(()=>{i.current&&o()})}),[o])}])},99030,e=>{"use strict";var t=e.i(91788);e.s(["useResolveButtonType",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),s=e.i(64728),l=e.i(60004),u=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,l.disposables)(),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.isIOS)()?{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,l.disposables)();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(u.isHTMLorSVGElement(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:o}=new URL(n.href),s=e.querySelector(o);u.isHTMLorSVGElement(s)&&!r(s)&&(i=s)}catch{}},!0),t.group(n=>{t.addEventListener(e,"touchstart",e=>{if(n.dispose(),u.isHTMLorSVGElement(e.target)&&u.hasInlineStyle(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(u.isHTMLorSVGElement(e.target)&&!u.isHTMLInputElement(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(["useScrollLock",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,s.useIsoMorphicEffect)(()=>{if(!(!t||!e))return d.dispatch("PUSH",t,n),()=>d.dispatch("POP",t,n)},[e,t])}((0,f.useIsTopLayer)(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(["useServerHandoffComplete",0,function(){let e,r=(e="u"<typeof document,"useSyncExternalStore"in t&&(0,t.useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[o,i]=t.useState(n.env.isHandoffComplete);return o&&!1===n.env.isHandoffComplete&&i(!1),t.useEffect(()=>{!0!==o&&i(!0)},[o]),t.useEffect(()=>n.env.handoff(),[]),!r&&o}],27544);let r=(0,t.createContext)(!1);e.s(["ForcePortalRoot",0,function(e){return t.default.createElement(r.Provider,{value:e.force},e.children)},"usePortalRoot",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(["useSlot",0,function(e){return(0,o.useMemo)(()=>e,Object.values(e))}],8404);var i=e.i(93481);let s=Symbol();e.s(["optionalRef",0,function(e,t=!0){return Object.assign(e,{[s]:t})},"useSyncRefs",0,function(...e){let t=(0,o.useRef)(e);(0,o.useEffect)(()=>{t.current=e},[e]);let n=(0,i.useEvent)(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[s]))?void 0:n}],56833);var l=e.i(50461),u=e.i(60004),a=e.i(26171),c=e.i(64728);void 0!==l.default&&"u">typeof globalThis&&"u">typeof Element&&(null==(n=null==l.default?void 0:l.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(["transitionDataAttributes",0,function(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t},"useTransition",0,function(e,t,n,r){let[i,s]=(0,o.useState)(n),{hasFlag:l,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),[]),s=(0,o.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:r,addFlag:i,hasFlag:s,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),m=(0,o.useRef)(!1),v=(0,a.useDisposables)();return(0,c.useIsoMorphicEffect)(()=>{var o;if(e){if(n&&s(!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,u.disposables)();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,u.disposables)();if(!e)return o.dispose;let i=!1;o.add(()=>{i=!0});let s=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===s.length?t():Promise.allSettled(s.map(e=>e.finished)).then(()=>{i||t()}),o.dispose}(e,r))})}),i.dispose}(t,{inFlight:p,prepare(){m.current?m.current=!1:m.current=p.current,p.current=!0,m.current||(n?(d(3),f(4)):(d(4),f(2)))},run(){m.current?n?(f(3),d(4)):(f(4),d(3)):n?f(1):d(1)},done(){var e,o,i,l;m.current&&(null!=(l=null==(i=(o=t).getAnimations)?void 0:i.call(o))?l:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)||(p.current=!1,f(7),n||s(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})}},[e,n,t,v]),e?[i,{closed:l(1),enter:l(2),leave:l(4),transition:l(2)||l(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(["useDisabled",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.forwardRefWithAs)(function(e,t){var r;let{features:o=1,...i}=e,s={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.useRender)()({ourProps:s,theirProps:i,slot:{},defaultTag:"span",name:"Hidden"})});e.s(["Hidden",0,o,"HiddenFeatures",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(["OpenClosedProvider",0,function({value:e,children:t}){return n.default.createElement(r.Provider,{value:e},t)},"ResetOpenClosedProvider",0,function({children:e}){return n.default.createElement(r.Provider,{value:null},e)},"State",0,o,"useOpenClosed",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(["DefaultMap",0,t],3926);var n,r,o,i=e.i(60004),s=e.i(81093),l=Object.defineProperty,u=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},a=(e,t,n)=>(u(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)=>(u(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()):!!(m(e)&&m(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 m(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(["Machine",0,class{constructor(e){c(this,n,{}),c(this,r,new t(()=>new Set)),c(this,o,new Set),((e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?l(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n})(this,"disposables",(0,i.disposables)()),d(this,n,e),s.env.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return a(this,n)}subscribe(e,t){if(s.env.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 s.env.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)}}},"batch",0,function(e){let[t,n]=e(),r=(0,i.disposables)();return(...e)=>{t(...e),r.dispose(),r.microTask(n)}},"shallowEqual",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(["hasInlineStyle",0,function(e){return n(e)&&"style"in e},"isElement",0,n,"isHTMLElement",0,r,"isHTMLFieldSetElement",0,o,"isHTMLIframeElement",0,function(e){return r(e)&&"IFRAME"===e.nodeName},"isHTMLInputElement",0,function(e){return r(e)&&"INPUT"===e.nodeName},"isHTMLLabelElement",0,function(e){return r(e)&&"LABEL"===e.nodeName},"isHTMLLegendElement",0,i,"isHTMLorSVGElement",0,function(e){return n(e)&&"tabIndex"in e},"isInteractiveElement",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]')},"isNode",0,t],55367),e.s(["isDisabledReactIssue7711",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(["match",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(["classNames",0,o],21713);var i=e.i(26417),s=((t=s||{})[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t),l=((n=l||{})[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n);function u(e,t={},n,i,s){let{as:l=n,children:a,refName:m="ref",...v}=f(e,["unmount","static"]),h=void 0!==e.ref?{[m]: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 v&&v.className&&"function"==typeof v.className&&(v.className=v.className(t)),v["aria-labelledby"]&&v["aria-labelledby"]===v.id&&(v["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(l)&&(Object.keys(d(v)).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(v)).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(v)).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),v.className):o(t,v.className),i=c(b.props,d(f(v,["ref"])));for(let e in g)e in i&&delete g[e];return(0,r.cloneElement)(b,Object.assign({},i,g,h,{ref:s((y=b,r.default.version.split(".")[0]>="19"?y.props.ref:y.ref),h.ref)},n?{className:n}:{}))}return(0,r.createElement)(l,Object.assign({},f(v,["ref"]),!p(l)&&h,!p(l)&&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(["RenderFeatures",0,s,"RenderStrategy",0,l,"compact",0,d,"forwardRefWithAs",0,function(e){var t;return Object.assign((0,r.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})},"isFragment",0,p,"mergeProps",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},"useRender",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:s=!0,name:l,mergeRefs:d}){d=null!=d?d:a;let f=c(t,e);if(s)return u(f,n,r,l,d);let p=null!=o?o:0;if(2&p){let{static:e=!1,...t}=f;if(e)return u(t,n,r,l,d)}if(1&p){let{unmount:e=!0,...t}=f;return(0,i.match)(+!e,{0:()=>null,1:()=>u({...t,hidden:!0,style:{display:"none"}},n,r,l,d)})}return u(f,n,r,l,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}let s=null;"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 a="u">typeof document?u.default.useLayoutEffect:()=>{};function c(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function d(e){let t=(0,u.useRef)({isFocused:!1,observer:null});return a(()=>{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=c(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 f(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 p(e){return"u">typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function m(e){let t=null;return()=>(null==t&&(t=e()),t)}let v=m(function(){return p(/^Mac/i)}),h=m(function(){return p(/^iPhone/i)}),b=m(function(){return p(/^iPad/i)||v()&&navigator.maxTouchPoints>1}),g=m(function(){return h()||b()});m(function(){return v()||g()});let y=m(function(){return f(/AppleWebKit/i)&&(g()||!E())});m(function(){return y()&&!E()&&!T()});let E=m(function(){return f(/Chrome|CriOS|CrMo/i)}),w=m(function(){return f(/Android/i)}),T=m(function(){return f(/(Firefox|FxiOS)/i)});function S(e,t,n=!0){let{metaKey:r,ctrlKey:o,altKey:i,shiftKey:l}=t;!y()&&T()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(v()?r=!0:o=!0);let u=y()&&v()&&!b()&&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});S.isOpening=n;if(function(){if(null==s){s=!1;try{document.createElement("div").focus({get preventScroll(){return s=!0,!0}})}catch{}}return s}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}e.dispatchEvent(u),S.isOpening=!1}S.isOpening=!1;let L={prefix:String(Math.round(1e10*Math.random())),current:0};u.default.createContext(L),u.default.createContext(!1),"u">typeof window&&window.document&&window.document.createElement,new WeakMap;u.default.useId;let P=null,O=new Set,M=new Map,F=!1,k=!1,A={Tab:!0,Escape:!0};function C(e,t){for(let n of O)n(e,t)}function x(e){F=!0,S.isOpening||e.metaKey||!v()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(P="keyboard",C("keyboard",e))}function R(e){P="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(F=!0,C("pointer",e))}function N(e){S.isOpening||(""!==e.pointerType||!e.isTrusted)&&(w()&&e.pointerType?"click"!==e.type||1!==e.buttons:0!==e.detail||e.pointerType)||(F=!0,P="virtual")}function H(e){let t=i(e),o=r(t),s=n(t);if(t===o){k=!0;return}t!==s&&e.isTrusted&&(F||k||(P="virtual",C("virtual",e)),F=!1,k=!1)}function D(){F=!1,k=!0}function I(e){if("u"<typeof window||"u"<typeof document)return;let t=r(e),o=n(e);if(M.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),t.addEventListener("focus",H,!0),t.addEventListener("blur",D,!1),"u">typeof PointerEvent&&(o.addEventListener("pointerdown",R,!0),o.addEventListener("pointermove",R,!0),o.addEventListener("pointerup",R,!0)),t.addEventListener("beforeunload",()=>{j(e)},{once:!0}),M.set(t,{focus:i})}let j=(e,t)=>{let o=r(e),i=n(e);t&&i.removeEventListener("DOMContentLoaded",t),M.has(o)&&(Reflect.defineProperty(o.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:M.get(o).focus}),i.removeEventListener("keydown",x,!0),i.removeEventListener("keyup",x,!0),i.removeEventListener("click",N,!0),o.removeEventListener("focus",H,!0),o.removeEventListener("blur",D,!1),"u">typeof PointerEvent&&(i.removeEventListener("pointerdown",R,!0),i.removeEventListener("pointermove",R,!0),i.removeEventListener("pointerup",R,!0)),M.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(["useFocusRing",0,function(e={}){var t;let{autoFocus:s=!1,isTextInput:l,within:a}=e,f=(0,u.useRef)({isFocused:!1,isFocusVisible:s||W()}),[p,m]=(0,u.useState)(!1),[v,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(),m(e),b()},[b]);t={enabled:p,isTextInput:l},I(),(0,u.useEffect)(()=>{if(t?.enabled===!1)return;let e=(e,o)=>{var s;let l,u,a,c,d,p,m,v;s=!!t?.isTextInput,u=n(l=o?i(o):void 0),c=void 0!==(a=r(l))?a.HTMLInputElement:HTMLInputElement,d=void 0!==a?a.HTMLTextAreaElement:HTMLTextAreaElement,p=void 0!==a?a.HTMLElement:HTMLElement,m=void 0!==a?a.KeyboardEvent:KeyboardEvent,v=((e=document)=>e.activeElement)(u),(s=s||v instanceof c&&!K.has(v.type)||v instanceof d||v instanceof p&&v.isContentEditable)&&"keyboard"===e&&o instanceof m&&!A[o.key]||(e=>{f.current.isFocusVisible=e,b()})(W())};return O.add(e),()=>{O.delete(e)}},[l,p]);let{focusProps:y}=function(e){let{isDisabled:t,onFocus:r,onBlur:o,onFocusChange:s}=e,l=(0,u.useCallback)(e=>{if(i(e)===e.currentTarget)return o&&o(e),s&&s(!1),!0},[o,s]),a=d(l),c=(0,u.useCallback)(e=>{let t=i(e),o=n(t),l=o?((e=document)=>e.activeElement)(o):((e=document)=>e.activeElement)();t===e.currentTarget&&t===l&&(r&&r(e),s&&s(!0),a(e))},[s,r,a]);return{focusProps:{onFocus:!t&&(r||s||o)?c:void 0,onBlur:!t&&(o||s)?l:void 0}}}({isDisabled:a,onFocusChange:g}),{focusWithinProps:E}=function(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:s,onFocusWithinChange:l}=e,a=(0,u.useRef)({isFocusWithin:!1}),{addGlobalListener:f,removeAllGlobalListeners:p}=V(),m=(0,u.useCallback)(e=>{o(e.currentTarget,i(e))&&a.current.isFocusWithin&&!o(e.currentTarget,e.relatedTarget)&&(a.current.isFocusWithin=!1,p(),r&&r(e),l&&l(!1))},[r,l,a,p]),v=d(m),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(!a.current.isFocusWithin&&u===t){s&&s(e),l&&l(!0),a.current.isFocusWithin=!0,v(e);let t=e.currentTarget;f(r,"focus",e=>{let n=i(e);if(a.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}),m(c(e))}},{capture:!0})}},[s,l,v,f,m]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:m}}}({isDisabled:!a,onFocusWithinChange:g});return{isFocused:p,isFocusVisible:v,focusProps:a?E:y}}],86567);let B=!1,G=0;function U(e){"touch"===e.pointerType&&(B=!0,setTimeout(()=>{B=!1},500))}function _(){let e=n(null);if(void 0!==e)return 0===G&&"u">typeof PointerEvent&&e.addEventListener("pointerup",U),G++,()=>{!(--G>0)&&"u">typeof PointerEvent&&e.removeEventListener("pointerup",U)}}e.s(["useHover",0,function(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:s,isDisabled:l}=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:m,triggerHoverEnd:v}=(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(),s&&s({type:"hoverend",target:n,pointerType:t}),r&&r(!1),c(!1))},u={};return"u">typeof PointerEvent&&(u.onPointerEnter=s=>{B&&"mouse"===s.pointerType||((s,u)=>{if(d.pointerType=u,l||"touch"===u||d.isHovered||!o(s.currentTarget,i(s)))return;d.isHovered=!0;let a=s.currentTarget;d.target=a,f(n(i(s)),"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)})(s,s.pointerType)},u.onPointerLeave=t=>{!l&&o(t.currentTarget,i(t))&&e(t,t.pointerType)}),{hoverProps:u,triggerHoverEnd:e}},[t,r,s,l,d,f,p]);return(0,u.useEffect)(()=>{l&&v({currentTarget:d.target},d.pointerType)},[l]),{hoverProps:m,isHovered:a}}],45229);var $=Object.defineProperty,q=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?$(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 X(e){var t;return Y.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function z(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 Z(e){var t,n;return null!=(n=null==(t=z(e))?void 0:t.activeElement)?n:null}function J(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 J(()=>{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(["env",0,Y],81093),e.s(["getActiveElement",0,Z,"getOwnerDocument",0,X,"getRootNode",0,z,"isActiveElement",0,function(e){return Z(e)===e}],80795),e.s(["microTask",0,J],38403),e.s(["disposables",0,Q],60004),e.s(["useDisposables",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(["useIsoMorphicEffect",0,et],64728),e.s(["useLatestValue",0,en],15067);let er=function(e){let t=en(e);return u.default.useCallback((...e)=>t.current(...e),[t])};e.s(["useEvent",0,er],93481),e.s(["useActivePress",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()}),s=er(e=>{if(o.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=X(e.currentTarget);o.addEventListener(n,"pointerup",i,!1),o.addEventListener(n,"pointermove",e=>{if(t.current){var n,o;let i,s;r((i=e.width/2,s=e.height/2,n={top:e.clientY-s,right:e.clientX+i,bottom:e.clientY+s,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:s,onPointerUp:i,onClick:i}}}],72016)}]);
|