@unchainedshop/admin-ui 4.9.0 → 4.9.1
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/dist/{chunk-WPLOTFGW.js → chunk-2HTCKO4E.js} +12 -3
- package/dist/{chunk-PJLYVMUM.js → chunk-4MXPTVDL.js} +2 -2
- package/dist/{chunk-I64TXIE7.js → chunk-ATZJXTRA.js} +1 -1
- package/dist/{chunk-QHR23GVH.js → chunk-CUYIP5XG.js} +1 -1
- package/dist/{chunk-5WPFHQZN.js → chunk-E6HDJYA6.js} +3 -3
- package/dist/{chunk-FDHXLNZQ.js → chunk-EAVP6XZQ.js} +1 -1
- package/dist/{chunk-E77YIMGR.js → chunk-ED2FP42R.js} +1 -1
- package/dist/{chunk-HJKRGBDG.js → chunk-GWMLIF3C.js} +1 -1
- package/dist/{chunk-3L6EZQ6P.js → chunk-NFJE5EJG.js} +1 -1
- package/dist/{chunk-BMDNY67T.js → chunk-PGJTFYBT.js} +1385 -932
- package/dist/{chunk-ICJH36K4.js → chunk-YUXHILXY.js} +1 -1
- package/dist/form.js +797 -286
- package/dist/hooks.js +3 -3
- package/dist/modal.js +5 -5
- package/dist/modules/accounts.js +1 -1
- package/dist/modules/assortment.js +1 -1
- package/dist/modules/country.js +1 -1
- package/dist/modules/currency.js +1 -1
- package/dist/modules/delivery-provider.js +1 -1
- package/dist/modules/enrollment.js +1 -1
- package/dist/modules/event.js +1 -1
- package/dist/modules/filter.js +1 -1
- package/dist/modules/language.js +1 -1
- package/dist/modules/order.js +1 -1
- package/dist/modules/payment-providers.js +1 -1
- package/dist/modules/product-review.js +1 -1
- package/dist/modules/product.js +5 -5
- package/dist/modules/quotation.js +1 -1
- package/dist/modules/token.js +1 -1
- package/dist/modules/warehousing-providers.js +1 -1
- package/dist/modules/work.js +1 -1
- package/dist/plugins.js +1 -1
- package/dist/providers.js +5 -5
- package/dist/shims/admin-ui-plugins.js +1 -1
- package/dist/shims/apollo-client-react.js +1 -1
- package/dist/shims/apollo-client.js +1 -1
- package/dist/shims/next-head.js +1 -1
- package/dist/shims/next-image.js +1 -1
- package/dist/shims/next-link.js +1 -1
- package/dist/shims/next-router.js +1 -1
- package/dist/shims/react-dom-client.js +1 -1
- package/dist/shims/react-dom.js +1 -1
- package/dist/shims/react-hook-form.js +1 -1
- package/dist/shims/react-intl.js +1 -1
- package/dist/shims/react-jsx-runtime.js +1 -1
- package/dist/shims/react-toastify.js +1 -1
- package/dist/shims/react.js +1 -1
- package/dist/theme.js +1 -1
- package/dist/ui.js +3884 -3401
- package/out/403/index.html +3 -3
- package/out/404/index.html +3 -3
- package/out/404.html +3 -3
- package/out/423/index.html +3 -3
- package/out/500/index.html +3 -3
- package/out/_next/static/3N8lTawkhD5WNCBa3Xrre/_buildManifest.js +258 -0
- package/out/_next/static/chunks/0-66i4h-noxvn.js +7 -0
- package/out/_next/static/chunks/0-wbl3cr3959x.js +1 -0
- package/out/_next/static/chunks/01bmb-z2nror5.js +63 -0
- package/out/_next/static/chunks/01ehk69jm7o3h.js +1 -0
- package/out/_next/static/chunks/01v4zuf_1s632.js +24 -0
- package/out/_next/static/chunks/02bw09719wk6m.js +59 -0
- package/out/_next/static/chunks/04u9l5z90u8zc.js +108 -0
- package/out/_next/static/chunks/{439tz_ubj8h-g.js → 05kae8xt4d-mt.js} +9 -9
- package/out/_next/static/chunks/060-0-y0yq4tn.js +4 -0
- package/out/_next/static/chunks/06umepciqel5y.js +15 -0
- package/out/_next/static/chunks/{2rmgaa88-4bpb.js → 07oa-1j75vunn.js} +4 -4
- package/out/_next/static/chunks/{0zzoylv2rl1xu.js → 07qh9c3qklj41.js} +1 -1
- package/out/_next/static/chunks/08aonh4sng6e2.js +7 -0
- package/out/_next/static/chunks/08u8uu0r0k0o9.js +9 -0
- package/out/_next/static/chunks/096x-m7s73l-c.js +1 -0
- package/out/_next/static/chunks/0ab6zl-u7ml1p.js +5 -0
- package/out/_next/static/chunks/{40l5d7o95aw37.js → 0bvh9mjjgn_w3.js} +1 -1
- package/out/_next/static/chunks/0crno_6ew111i.js +8 -0
- package/out/_next/static/chunks/0czpir4zjwmos.js +1 -0
- package/out/_next/static/chunks/0fogiqvh9bznp.js +2 -0
- package/out/_next/static/chunks/0g1uyaoneybnf.js +41 -0
- package/out/_next/static/chunks/0h373kx_wlwzy.js +1 -0
- package/out/_next/static/chunks/0h7smollos00x.js +6 -0
- package/out/_next/static/chunks/{2hoi6cb1lromr.js → 0hq9p72y7ki0h.js} +1 -1
- package/out/_next/static/chunks/0hqvf-b6yry5-.js +12 -0
- package/out/_next/static/chunks/0ikig1vazlo5p.js +1 -0
- package/out/_next/static/chunks/0jol393fjamwq.js +277 -0
- package/out/_next/static/chunks/0jr0_6oupairk.js +13 -0
- package/out/_next/static/chunks/0l0hzoqd-va5-.js +1 -0
- package/out/_next/static/chunks/0m006z-rbif-h.js +5 -0
- package/out/_next/static/chunks/0nsa2b75vwe9r.js +43 -0
- package/out/_next/static/chunks/0oeas4d1fnzbb.js +36 -0
- package/out/_next/static/chunks/0q7n10ncl7jak.js +119 -0
- package/out/_next/static/chunks/0qyx2854lfah9.js +152 -0
- package/out/_next/static/chunks/0rjrvdq5w-984.js +78 -0
- package/out/_next/static/chunks/0tavmhzr7m3u9.js +5 -0
- package/out/_next/static/chunks/0tp8_k14lgo7i.js +12 -0
- package/out/_next/static/chunks/{1tkvi0wb-x3v8.js → 0u290yfuv_u2_.js} +2 -2
- package/out/_next/static/chunks/0u_zr87ce7iu-.js +1 -0
- package/out/_next/static/chunks/0v2v5x8dtpfh6.js +7 -0
- package/out/_next/static/chunks/0var4u7x1jrna.js +1 -0
- package/out/_next/static/chunks/0vik72soxnie0.js +32 -0
- package/out/_next/static/chunks/0xry2ss7g-gk_.js +33 -0
- package/out/_next/static/chunks/0xywzizg7ntfd.js +44 -0
- package/out/_next/static/chunks/0y3lr_rwmezii.js +1 -0
- package/out/_next/static/chunks/0zvpipo0q47xl.js +15 -0
- package/out/_next/static/chunks/1-jp7as2d7zp6.js +44 -0
- package/out/_next/static/chunks/10jrq6wew06i6.js +23 -0
- package/out/_next/static/chunks/1164-c5abnfyy.js +5 -0
- package/out/_next/static/chunks/{3qzrrjb48t2w3.js → 119d8cbr8mij2.js} +5 -5
- package/out/_next/static/chunks/122a0xxhrak7b.js +1 -0
- package/out/_next/static/chunks/129-110-fx4g2.js +277 -0
- package/out/_next/static/chunks/12hh2h53sa5vl.js +33 -0
- package/out/_next/static/chunks/14qvgxj89rj3h.js +16 -0
- package/out/_next/static/chunks/179acu8_sgizp.js +4 -0
- package/out/_next/static/chunks/1a120nyn1xssj.js +46 -0
- package/out/_next/static/chunks/1ata93ftwo5e5.js +1 -0
- package/out/_next/static/chunks/1ca5de-nq28g5.js +5 -0
- package/out/_next/static/chunks/1cm161_p0htmv.js +6 -0
- package/out/_next/static/chunks/1cp5rjbtbj7im.js +7 -0
- package/out/_next/static/chunks/1d-xju_35oiky.js +7 -0
- package/out/_next/static/chunks/1d2l6vs2y96io.js +5 -0
- package/out/_next/static/chunks/1dedrypk-h8qr.js +1 -0
- package/out/_next/static/chunks/1dl-ild2tc5fi.js +10 -0
- package/out/_next/static/chunks/1eh2ap8tgodgp.js +224 -0
- package/out/_next/static/chunks/1eq7kau-2figm.js +81 -0
- package/out/_next/static/chunks/1h9sc720aq7zm.js +5 -0
- package/out/_next/static/chunks/1igwz8p4ycvw8.js +68 -0
- package/out/_next/static/chunks/1kti-rwl34_4h.js +194 -0
- package/out/_next/static/chunks/{2ho4591ngh3y2.js → 1l_4m35yky3vy.js} +6 -6
- package/out/_next/static/chunks/1n3dc-2mpab65.js +39 -0
- package/out/_next/static/chunks/1nmwo96drt-k-.js +18 -0
- package/out/_next/static/chunks/1o2f_mtcw23zu.js +7 -0
- package/out/_next/static/chunks/1p6gh68l05_ak.js +1 -0
- package/out/_next/static/chunks/1sf71q2hkno8s.js +43 -0
- package/out/_next/static/chunks/{1gqd9vrno0rq4.js → 1u0hy0trwf8uk.js} +2 -2
- package/out/_next/static/chunks/1w22i299136_d.js +5 -0
- package/out/_next/static/chunks/1w69w7bav5fw7.js +5 -0
- package/out/_next/static/chunks/1xjtni6_z8nxp.js +15 -0
- package/out/_next/static/chunks/1y-db7_k0jgmb.js +1 -0
- package/out/_next/static/chunks/1y7wv_pb43doo.js +31 -0
- package/out/_next/static/chunks/1y84xua0xgwrn.js +39 -0
- package/out/_next/static/chunks/1yqexzm6_8pjh.js +71 -0
- package/out/_next/static/chunks/1zsrg53se30e4.js +7 -0
- package/out/_next/static/chunks/2-e86kt6vo58k.js +24 -0
- package/out/_next/static/chunks/2-lj_k3ewua_k.js +71 -0
- package/out/_next/static/chunks/2-omz_z29hp_j.js +1 -0
- package/out/_next/static/chunks/21hoklicpietg.js +41 -0
- package/out/_next/static/chunks/22kqizuxl67c-.js +108 -0
- package/out/_next/static/chunks/22odam86c8kps.js +1 -0
- package/out/_next/static/chunks/23wfelj92rx3n.js +1 -0
- package/out/_next/static/chunks/259obwu0l4d7_.js +8 -0
- package/out/_next/static/chunks/{22-o32hlte36e.js → 25k-q1asg1of_.js} +6 -6
- package/out/_next/static/chunks/28cyd6sk-kr-8.js +8 -0
- package/out/_next/static/chunks/{3vgurvjr6hkyv.js → 29j-tq9ymqima.js} +1 -1
- package/out/_next/static/chunks/29lz37yh8ev4g.js +267 -0
- package/out/_next/static/chunks/29qzk6rf1oo1g.js +8 -0
- package/out/_next/static/chunks/2_0nlvri-u3yb.js +5 -0
- package/out/_next/static/chunks/2_ebmmbmnfung.js +5 -0
- package/out/_next/static/chunks/2_nlmvpwjvbuc.js +1 -0
- package/out/_next/static/chunks/2abvgs_fkmp8g.js +12 -0
- package/out/_next/static/chunks/2ad3aff-kd860.js +16 -0
- package/out/_next/static/chunks/2asfqwl1f6ptd.js +71 -0
- package/out/_next/static/chunks/2bo7flfdpsojx.js +1 -0
- package/out/_next/static/chunks/2c3pj-ifdt9sv.js +8 -0
- package/out/_next/static/chunks/{1_55km6vm5mc0.js → 2dem0g4wrt39t.js} +5 -5
- package/out/_next/static/chunks/{153ec1_-yt3jb.js → 2dg0lloufpbdb.js} +5 -5
- package/out/_next/static/chunks/2e-u5srw2p0n6.js +23 -0
- package/out/_next/static/chunks/2fxjo2s_nsjsa.js +5 -0
- package/out/_next/static/chunks/2gfl5yx5-dzk7.js +5 -0
- package/out/_next/static/chunks/2gqvhjmjfypz9.js +6 -0
- package/out/_next/static/chunks/2hqwx9e8xxk58.js +1 -0
- package/out/_next/static/chunks/2hthxhwh84ls1.css +1 -0
- package/out/_next/static/chunks/2jro0zgoal0kz.js +39 -0
- package/out/_next/static/chunks/2khmu80rhpzi0.js +7 -0
- package/out/_next/static/chunks/2luj-95aqr25b.js +1 -0
- package/out/_next/static/chunks/2mohqnh8393k0.js +935 -0
- package/out/_next/static/chunks/{11ehf3t7qzbua.js → 2ozm0eim2f3sc.js} +1 -1
- package/out/_next/static/chunks/2pass0agqwhhu.js +30 -0
- package/out/_next/static/chunks/2q16yoj85f5--.js +217 -0
- package/out/_next/static/chunks/2qgzju2ps7tn2.js +5 -0
- package/out/_next/static/chunks/2qmtn9qs15pe6.js +23 -0
- package/out/_next/static/chunks/2starzmj1ng6d.js +13 -0
- package/out/_next/static/chunks/2tltorbhbyodj.js +1 -0
- package/out/_next/static/chunks/2u8vf0tm3oweg.js +145 -0
- package/out/_next/static/chunks/2xq9wvqdb609r.js +1 -0
- package/out/_next/static/chunks/2ye-zd_107wh_.js +6 -0
- package/out/_next/static/chunks/2yttr5mp9mh23.js +171 -0
- package/out/_next/static/chunks/2z6e-_lzi04v4.js +149 -0
- package/out/_next/static/chunks/2z_zbj33aeywz.js +5 -0
- package/out/_next/static/chunks/2zq9_3p7cg3wb.js +9 -0
- package/out/_next/static/chunks/2zuoqtb2013in.js +7 -0
- package/out/_next/static/chunks/302pe6kwodzps.js +31 -0
- package/out/_next/static/chunks/30c42kdwlkc30.js +7 -0
- package/out/_next/static/chunks/30jqt_vus0ht9.js +1 -0
- package/out/_next/static/chunks/30lj8m3h07k4v.js +1 -0
- package/out/_next/static/chunks/3328j3xx0enu_.js +1 -0
- package/out/_next/static/chunks/339grcmrh2be_.js +1 -0
- package/out/_next/static/chunks/33pzdslirf1vx.js +6 -0
- package/out/_next/static/chunks/33s24dpx0eo63.js +2 -0
- package/out/_next/static/chunks/33w88h3hbfzbk.js +1 -0
- package/out/_next/static/chunks/35wqmtcm47y_w.js +39 -0
- package/out/_next/static/chunks/36o0xcj8l-mau.js +9 -0
- package/out/_next/static/chunks/37lm6c8w-c7bs.js +5 -0
- package/out/_next/static/chunks/37y01hdz8sxhr.js +1 -0
- package/out/_next/static/chunks/38op2tjm2a38-.js +10 -0
- package/out/_next/static/chunks/398z-133dgtem.js +14 -0
- package/out/_next/static/chunks/39_3a5rlqmxjd.js +5 -0
- package/out/_next/static/chunks/3admj5_pwyksw.js +1 -0
- package/out/_next/static/chunks/3c7j6t3by9tj7.js +155 -0
- package/out/_next/static/chunks/3cyj5euwvlu1t.js +1 -0
- package/out/_next/static/chunks/3d8yko5j3oni7.js +100 -0
- package/out/_next/static/chunks/3de9en65e-2qx.js +1 -0
- package/out/_next/static/chunks/3f_aw3x3h5zrb.js +54 -0
- package/out/_next/static/chunks/3fdcfxfy7_ijd.js +5 -0
- package/out/_next/static/chunks/3g-zjnc7_4583.js +1 -0
- package/out/_next/static/chunks/3h22kt6ngwxji.js +12 -0
- package/out/_next/static/chunks/3id1esivwnwn0.js +5 -0
- package/out/_next/static/chunks/{3fqonijzsxy8u.js → 3jy48b2yol0pg.js} +1 -1
- package/out/_next/static/chunks/3k_w16w3eoy6p.js +7 -0
- package/out/_next/static/chunks/3ks-dq47wvmwf.js +5 -0
- package/out/_next/static/chunks/3lch4_9c5hsbw.js +5 -0
- package/out/_next/static/chunks/3lirqns-0nf0z.js +5 -0
- package/out/_next/static/chunks/{1hviha1jcz_og.js → 3o83hyi0qcw6f.js} +1 -1
- package/out/_next/static/chunks/3ot810y4c4j5w.js +7 -0
- package/out/_next/static/chunks/3q2g8_47dz6k3.js +95 -0
- package/out/_next/static/chunks/{0q2e8h8498pvo.js → 3qqhr2o1soxh_.js} +1 -1
- package/out/_next/static/chunks/3s0alhaimym6o.js +61 -0
- package/out/_next/static/chunks/3sull2f3eleju.js +6 -0
- package/out/_next/static/chunks/3tzv_v3fezh8p.js +1 -0
- package/out/_next/static/chunks/3uekb_s0jaboj.js +1 -0
- package/out/_next/static/chunks/3xtawjchyn0qb.js +1 -0
- package/out/_next/static/chunks/3xze13c1irm_5.js +1 -0
- package/out/_next/static/chunks/3z14p5htgyrv9.js +7 -0
- package/out/_next/static/chunks/40tteajtwsyj8.js +116 -0
- package/out/_next/static/chunks/40vdr7s_c0h75.js +8 -0
- package/out/_next/static/chunks/41184_al87--k.js +46 -0
- package/out/_next/static/chunks/42iy04ceb32i1.js +5 -0
- package/out/_next/static/chunks/438vgwwahfwwj.js +54 -0
- package/out/_next/static/chunks/44l-287ai2bc0.js +12 -0
- package/out/_next/static/chunks/44p9j-nopxm66.js +1 -0
- package/out/_next/static/chunks/{turbopack-2c3mg3r-05n1w.js → turbopack-077hmtqrhcoji.js} +1 -1
- package/out/_offline/index.html +3 -3
- package/out/account/forgot-password/index.html +3 -3
- package/out/account/index.html +3 -3
- package/out/assortments/AssortmentDetailPage/index.html +3 -3
- package/out/assortments/index.html +3 -3
- package/out/assortments/new/index.html +3 -3
- package/out/copilot/index.html +3 -3
- package/out/country/CountryDetailPage/index.html +3 -3
- package/out/country/index.html +3 -3
- package/out/country/new/index.html +3 -3
- package/out/currency/CurrencyDetailPage/index.html +3 -3
- package/out/currency/index.html +3 -3
- package/out/currency/new/index.html +3 -3
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -3
- package/out/delivery-provider/index.html +3 -3
- package/out/delivery-provider/new/index.html +3 -3
- package/out/enrollments/EnrollmentDetailPage/index.html +3 -3
- package/out/enrollments/index.html +3 -3
- package/out/events/EventDetailPage/index.html +3 -3
- package/out/events/index.html +3 -3
- package/out/exports/index.html +3 -3
- package/out/external/index.html +3 -3
- package/out/filters/FilterDetailPage/index.html +3 -3
- package/out/filters/index.html +3 -3
- package/out/filters/new/index.html +3 -3
- package/out/index.html +3 -3
- package/out/install/index.html +3 -3
- package/out/language/LanguageDetailPage/index.html +3 -3
- package/out/language/index.html +3 -3
- package/out/language/new/index.html +3 -3
- package/out/log-in/index.html +3 -3
- package/out/orders/OrderDetailPage/index.html +3 -3
- package/out/orders/index.html +3 -3
- package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -3
- package/out/payment-provider/index.html +3 -3
- package/out/payment-provider/new/index.html +3 -3
- package/out/products/ProductDetailPage/index.html +3 -3
- package/out/products/index.html +3 -3
- package/out/products/new/index.html +3 -3
- package/out/quotations/QuotationDetailPage/index.html +3 -3
- package/out/quotations/index.html +3 -3
- package/out/reset-password/index.html +3 -3
- package/out/sign-up/index.html +3 -3
- package/out/styleguide/index.html +3 -3
- package/out/tokens/TokenDetailPage/index.html +3 -3
- package/out/tokens/index.html +3 -3
- package/out/users/UserDetailPage/index.html +3 -3
- package/out/users/index.html +3 -3
- package/out/users/new/index.html +3 -3
- package/out/verify-email/index.html +3 -3
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -3
- package/out/warehousing-provider/index.html +3 -3
- package/out/warehousing-provider/new/index.html +3 -3
- package/out/works/WorkDetailPage/index.html +3 -3
- package/out/works/WorkQueueListView/index.html +3 -3
- package/out/works/index.html +3 -3
- package/out/works/management/index.html +3 -3
- package/package.json +26 -26
- package/out/_next/static/chunks/0-_s79k4_7ei_.js +0 -5
- package/out/_next/static/chunks/00aks9rqke2x0.js +0 -7
- package/out/_next/static/chunks/00az81dk4vdda.js +0 -54
- package/out/_next/static/chunks/01e4gd649r2tq.js +0 -7
- package/out/_next/static/chunks/01j2wi94k90x0.js +0 -5
- package/out/_next/static/chunks/043i-g05cyvrd.js +0 -1
- package/out/_next/static/chunks/04kyktzbxprj0.js +0 -61
- package/out/_next/static/chunks/05p330iybjojg.js +0 -44
- package/out/_next/static/chunks/05qk8ozexvlxp.js +0 -5
- package/out/_next/static/chunks/06i50j458a7g5.js +0 -12
- package/out/_next/static/chunks/08o61gwabp3h1.js +0 -33
- package/out/_next/static/chunks/0_bvgo8ev4gs7.js +0 -7
- package/out/_next/static/chunks/0b05sca2hdcys.js +0 -30
- package/out/_next/static/chunks/0bc8hmxlcg6h5.js +0 -18
- package/out/_next/static/chunks/0c3kwkqr9evm4.js +0 -5
- package/out/_next/static/chunks/0c4jv8pwvpxei.js +0 -1
- package/out/_next/static/chunks/0c7ljn9lo_0oh.js +0 -5
- package/out/_next/static/chunks/0djb38xrt32ao.js +0 -12
- package/out/_next/static/chunks/0drw_p7p-jjq1.js +0 -5
- package/out/_next/static/chunks/0ewr86ctcw7fx.js +0 -1
- package/out/_next/static/chunks/0hz0qu27uks3z.js +0 -8
- package/out/_next/static/chunks/0jham55cr3rhy.js +0 -81
- package/out/_next/static/chunks/0lr7o7tyjmrmf.js +0 -8
- package/out/_next/static/chunks/0mx8opz23nwlb.js +0 -5
- package/out/_next/static/chunks/0o0e82-3pc7ur.js +0 -78
- package/out/_next/static/chunks/0ohk7l49gjm62.js +0 -5
- package/out/_next/static/chunks/0p31l6a9hynnt.js +0 -6
- package/out/_next/static/chunks/0qa-zbgmv-k3p.js +0 -9
- package/out/_next/static/chunks/0rzjz052fwjjc.js +0 -12
- package/out/_next/static/chunks/0skst735jufgh.js +0 -71
- package/out/_next/static/chunks/0t28q5fb2jp-6.js +0 -8
- package/out/_next/static/chunks/0tmamaq8exyij.js +0 -1
- package/out/_next/static/chunks/0ydy3ky15gx62.js +0 -1
- package/out/_next/static/chunks/0zh311lu9jf2x.js +0 -5
- package/out/_next/static/chunks/0zpyyygbqx3pf.js +0 -152
- package/out/_next/static/chunks/10m_etq9t2pkv.js +0 -7
- package/out/_next/static/chunks/16le3cqxj12u6.js +0 -5
- package/out/_next/static/chunks/16zxfacsu_jbq.js +0 -1
- package/out/_next/static/chunks/170d-jbu8ilzu.js +0 -100
- package/out/_next/static/chunks/17fibl49qtd6c.js +0 -8
- package/out/_next/static/chunks/182l1mlbf0glb.js +0 -1
- package/out/_next/static/chunks/18xyj4i_i5lyn.js +0 -6
- package/out/_next/static/chunks/1a9-pdm78ri7r.js +0 -1
- package/out/_next/static/chunks/1aej6iqnlr74p.js +0 -1
- package/out/_next/static/chunks/1asbed4hne69c.js +0 -7
- package/out/_next/static/chunks/1c60nzy_x4kez.js +0 -277
- package/out/_next/static/chunks/1c77vl6xdqfd4.js +0 -15
- package/out/_next/static/chunks/1da89agg-nacc.js +0 -224
- package/out/_next/static/chunks/1epju6xepfqtq.js +0 -2
- package/out/_next/static/chunks/1fbsyczyh9hwh.js +0 -1
- package/out/_next/static/chunks/1hih2cxmgqcd3.js +0 -10
- package/out/_next/static/chunks/1il9vuoxtb2_n.js +0 -43
- package/out/_next/static/chunks/1jaatdt0mlypl.js +0 -16
- package/out/_next/static/chunks/1l4g6_of_bbr8.js +0 -5
- package/out/_next/static/chunks/1lezxecnoaxnn.js +0 -32
- package/out/_next/static/chunks/1m27au_nmk8_k.js +0 -71
- package/out/_next/static/chunks/1m4fwgl1mj4d-.js +0 -46
- package/out/_next/static/chunks/1ma82ip9shpkc.js +0 -24
- package/out/_next/static/chunks/1nbh1zkzirnuw.js +0 -1
- package/out/_next/static/chunks/1nohf8_cc6gmw.js +0 -9
- package/out/_next/static/chunks/1os6pvhjeb16o.js +0 -1
- package/out/_next/static/chunks/1r0w-hk6d2kqw.js +0 -15
- package/out/_next/static/chunks/1rsexg6dg82f0.js +0 -7
- package/out/_next/static/chunks/1u79pcgqjgjpq.js +0 -1
- package/out/_next/static/chunks/1uqiaqtv_0v2x.js +0 -5
- package/out/_next/static/chunks/1x8o-luxdxxk7.js +0 -1
- package/out/_next/static/chunks/1yjb7gogaf8po.js +0 -31
- package/out/_next/static/chunks/1zyhzessv0wtg.js +0 -1
- package/out/_next/static/chunks/2-pl31kdikt3k.js +0 -5
- package/out/_next/static/chunks/20c4_1i5r3kkz.js +0 -1
- package/out/_next/static/chunks/20zdaln201w8j.js +0 -277
- package/out/_next/static/chunks/21l46nbaop06z.js +0 -39
- package/out/_next/static/chunks/231j2_p-ha14w.js +0 -7
- package/out/_next/static/chunks/23s2f7_-ol94s.js +0 -8
- package/out/_next/static/chunks/25frktmrq-xu0.js +0 -1
- package/out/_next/static/chunks/26_mx-ritu68j.js +0 -24
- package/out/_next/static/chunks/26ckmxeluyknq.js +0 -1
- package/out/_next/static/chunks/26r0y7ldf3iqs.js +0 -6
- package/out/_next/static/chunks/27fzoozwycagi.js +0 -6
- package/out/_next/static/chunks/27jmq7a-vh0b4.js +0 -7
- package/out/_next/static/chunks/283567a82x9qi.js +0 -149
- package/out/_next/static/chunks/29he8uukp5s4u.js +0 -31
- package/out/_next/static/chunks/2adglo0sf0jcg.js +0 -905
- package/out/_next/static/chunks/2ajr0rk0_yax6.js +0 -1
- package/out/_next/static/chunks/2b4ewxxz6f462.js +0 -7
- package/out/_next/static/chunks/2bh2dv7j9m8c8.css +0 -1
- package/out/_next/static/chunks/2bi8v13lm76lr.js +0 -95
- package/out/_next/static/chunks/2burvpf9877y_.js +0 -44
- package/out/_next/static/chunks/2cclew3l28rc4.js +0 -14
- package/out/_next/static/chunks/2cj703xtrf5i6.js +0 -46
- package/out/_next/static/chunks/2ec7xatyld40t.js +0 -7
- package/out/_next/static/chunks/2iy0jr00qhq-q.js +0 -5
- package/out/_next/static/chunks/2m0rrts8gwqwp.js +0 -1
- package/out/_next/static/chunks/2m_u12ggzosat.js +0 -5
- package/out/_next/static/chunks/2mdns56l5antm.js +0 -5
- package/out/_next/static/chunks/2mrbytgs3uetd.js +0 -4
- package/out/_next/static/chunks/2olb298bph2yc.js +0 -13
- package/out/_next/static/chunks/2p9gwjxeui1zd.js +0 -71
- package/out/_next/static/chunks/2pfhy9qy_cijn.js +0 -5
- package/out/_next/static/chunks/2q5k4rozyr2wt.js +0 -4
- package/out/_next/static/chunks/2qx8nnki_qv5v.js +0 -171
- package/out/_next/static/chunks/2r_rj84l3cy7r.js +0 -119
- package/out/_next/static/chunks/2swxmzb-xk_bo.js +0 -108
- package/out/_next/static/chunks/2t0biwx5e_4w_.js +0 -1
- package/out/_next/static/chunks/2ts3v72jkbcdr.js +0 -7
- package/out/_next/static/chunks/2vfexvltv2avy.js +0 -5
- package/out/_next/static/chunks/2wkg65dtx56je.js +0 -155
- package/out/_next/static/chunks/2xixk0t9e9mnw.js +0 -1
- package/out/_next/static/chunks/2xz7hnr9ikqzq.js +0 -7
- package/out/_next/static/chunks/2y1lq1efnvcdt.js +0 -23
- package/out/_next/static/chunks/2ziasg8l_c9n7.js +0 -5
- package/out/_next/static/chunks/3-wsablhqgzoa.js +0 -1
- package/out/_next/static/chunks/30ppb2wc-m4ph.js +0 -1
- package/out/_next/static/chunks/336k08jwyc5i-.js +0 -1
- package/out/_next/static/chunks/33_-2ne9ecvay.js +0 -1
- package/out/_next/static/chunks/33d061qpkafqm.js +0 -39
- package/out/_next/static/chunks/33fyy6d5mo55_.js +0 -8
- package/out/_next/static/chunks/33kh18frqc3b1.js +0 -5
- package/out/_next/static/chunks/33qeilxkl3ckn.js +0 -116
- package/out/_next/static/chunks/33tewe5d_lfl-.js +0 -13
- package/out/_next/static/chunks/33v05ol-ire9s.js +0 -10
- package/out/_next/static/chunks/348l8p7-vo4l5.js +0 -63
- package/out/_next/static/chunks/35hu5vin0swdf.js +0 -41
- package/out/_next/static/chunks/37a6yquh875rn.js +0 -39
- package/out/_next/static/chunks/3_2i9du5-ffrp.js +0 -59
- package/out/_next/static/chunks/3_84h3z_tewmg.js +0 -145
- package/out/_next/static/chunks/3bo7uiy-wh63m.js +0 -108
- package/out/_next/static/chunks/3c-an5ft_3emc.js +0 -1
- package/out/_next/static/chunks/3d_222ci0_30_.js +0 -41
- package/out/_next/static/chunks/3dldch03dfaed.js +0 -1
- package/out/_next/static/chunks/3eedy49gsvv_t.js +0 -1
- package/out/_next/static/chunks/3fayuejnrsd90.js +0 -15
- package/out/_next/static/chunks/3g1ale0hytu9q.js +0 -12
- package/out/_next/static/chunks/3i9q2-4e0mix5.js +0 -12
- package/out/_next/static/chunks/3k3gvr7-e3g_s.js +0 -5
- package/out/_next/static/chunks/3kwoyyxi_-q7m.js +0 -1
- package/out/_next/static/chunks/3le1bywe19_u9.js +0 -1
- package/out/_next/static/chunks/3lku4-9kpf-mj.js +0 -267
- package/out/_next/static/chunks/3lz5h1tw50wr_.js +0 -54
- package/out/_next/static/chunks/3m4smrmdqi2-3.js +0 -5
- package/out/_next/static/chunks/3oq-khgfpo0nx.js +0 -39
- package/out/_next/static/chunks/3ps25ocfalcap.js +0 -43
- package/out/_next/static/chunks/3r0i-7zjuz9i1.js +0 -6
- package/out/_next/static/chunks/3rgn5xwtr51ul.js +0 -7
- package/out/_next/static/chunks/3ridg_u19b6ih.js +0 -8
- package/out/_next/static/chunks/3skzk-w2ytvku.js +0 -5
- package/out/_next/static/chunks/3srw10h0hcztd.js +0 -68
- package/out/_next/static/chunks/3tgrftdet8sna.js +0 -15
- package/out/_next/static/chunks/3uax_eq1kjjta.js +0 -1
- package/out/_next/static/chunks/3uj94afpsi6cs.js +0 -1
- package/out/_next/static/chunks/3viepyovs19ub.js +0 -23
- package/out/_next/static/chunks/3vnzp3n_wd3j_.js +0 -1
- package/out/_next/static/chunks/3w8h5lxnd0z4z.js +0 -1
- package/out/_next/static/chunks/3wh4xa9dnw-55.js +0 -194
- package/out/_next/static/chunks/3wzvscqui-9ml.js +0 -23
- package/out/_next/static/chunks/3y8h3g1tqukrv.js +0 -36
- package/out/_next/static/chunks/3zcilnj6p9-t5.js +0 -1
- package/out/_next/static/chunks/3zmmdm68s05-t.js +0 -217
- package/out/_next/static/chunks/3zw4-oie-f7_0.js +0 -2
- package/out/_next/static/chunks/417kn9hki8k81.js +0 -33
- package/out/_next/static/chunks/42mofxcd0l7qi.js +0 -1
- package/out/_next/static/chunks/43hfssep7ry-z.js +0 -5
- package/out/_next/static/chunks/45bcpjurhxb-j.js +0 -1
- package/out/_next/static/nrNmgRi1nHylx_8lvjG2D/_buildManifest.js +0 -258
- /package/out/_next/static/{nrNmgRi1nHylx_8lvjG2D → 3N8lTawkhD5WNCBa3Xrre}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{nrNmgRi1nHylx_8lvjG2D → 3N8lTawkhD5WNCBa3Xrre}/_ssgManifest.js +0 -0
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[44926,e=>{var t=e.i(91398),r=e.i(72043),a=e.i(69322);e.s(["f",0,({isActive:e,activeText:s=null,activeClassName:n="",inActiveClassName:l="",inActiveText:i=null,containerClassName:o=""})=>{let{formatMessage:d}=(0,a.S)();return(0,t.jsx)("span",{className:(0,r.default)("",o),children:e?(0,t.jsx)("span",{className:(0,r.default)("inline-flex items-center border rounded-full px-2.5 py-0.5 text-sm font-medium bg-emerald-50 dark:bg-emerald-900/30 text-emerald-700 dark:text-emerald-300 border-emerald-200 dark:border-emerald-800 uppercase",n),children:s||d({id:"active",defaultMessage:"Active"})}):(0,t.jsx)("span",{className:(0,r.default)("inline-flex items-center border rounded-full px-2.5 py-0.5 text-sm font-medium bg-amber-100 dark:bg-yellow-900/30 text-yellow-800 dark:text-yellow-300 border-amber-400 dark:border-yellow-800 uppercase",l),children:i||d({id:"inactive",defaultMessage:"In-Active"})})})}])},61494,e=>{var t=e.i(91398),r=e.i(41158),a=e.i(3828),s=e.i(69322);e.s(["f",0,({routeName:e=null,currentPageTitle:n=null,depth:l=null})=>{let i=(0,a.useRouter)(),{formatMessage:o}=(0,s.S)(),d={home:"home",products:"products",orders:"orders",users:"users",assortments:"assortments",filters:"filters",tokens:"tokens",quotations:"quotations",enrollments:"enrollments",activities:"activities",works:"work_queue",events:"events",currency:"currencies",country:"countries",language:"languages","delivery-provider":"delivery_providers","payment-provider":"payment_providers","warehousing-provider":"warehousing_provider",system:"system",account:"account",new:"new",edit:"edit"},c=i.asPath?.split("/")?.filter((e,t)=>i.asPath?.split("/")?.indexOf(e)===t);if(1===c.length)return null;let u="";l&&c.splice(l),e&&(c[c.length-1]=e);let m=c?.map(t=>{if(u+=`${t}/`,!t)return{name:o({id:"home",defaultMessage:"Home"}),path:"/"};let r=t?.split("?")[0],a=e?r:r.replace(/-/g," "),s=d[r];return{name:s?o({id:s,defaultMessage:a}):decodeURIComponent(a),path:u.replace(/.$/,"")}});return(0,t.jsx)("nav",{className:"mb-5 hidden sm:flex lg:mt-5 lg:mb-8","aria-label":"Breadcrumb",children:(0,t.jsx)("ol",{className:"flex items-center space-x-4",children:m?.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-center",children:[0!==a&&(0,t.jsx)("svg",{className:"mr-4 h-5 w-5 shrink-0 text-slate-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,t.jsx)(r.default,{href:e.path,className:"text-sm font-medium capitalize text-slate-500 dark:text-slate-400 dark:hover:text-slate-300 hover:text-slate-700 focus:outline-hidden focus:ring-2 focus:ring-slate-800 rounded-md px-1 py-1",children:a===m.length-1&&n?n:e.name})]})},e.path))})})}])},81013,e=>{var t=e.i(91398),r=e.i(72043);e.s(["f",0,({text:e,children:a,onClick:s,className:n="",disabled:l=!1,id:i="",variant:o="primary",size:d="md",type:c="button",loading:u=!1,icon:m,iconRight:f,fullWidth:x=!1,rounded:p="md",ariaLabel:g,...b})=>{let y=a||e,h=(m||f)&&y?"gap-2":"";return(0,t.jsx)("button",{id:i,type:c,disabled:l||u,onClick:s,"aria-label":g,className:(0,r.default)("inline-flex items-center justify-center font-medium shadow-xs focus:outline-hidden focus:ring-2 focus:ring-offset-2 transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-50",{xs:"px-2.5 py-1.5 text-xs h-6",sm:"px-3 py-2 text-sm h-8",md:"px-4 py-2 text-sm h-9",lg:"px-6 py-3 text-base h-11"}[d],{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}[p],{primary:"border border-slate-800 dark:border-slate-600 bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:ring-slate-800 dark:focus:ring-slate-400",secondary:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-700 dark:text-slate-200 hover:bg-slate-50 dark:hover:bg-slate-700 focus:ring-slate-500",tertiary:"border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700 focus:ring-slate-400",quaternary:"bg-transparent text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",danger:"border border-rose-500 dark:border-rose-400 bg-white dark:bg-slate-800 text-rose-600 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/10 focus:ring-rose-500",ghost:"bg-transparent border border-transparent text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",success:"border border-emerald-500 dark:border-emerald-400 bg-emerald-50 dark:bg-emerald-900/20 text-emerald-600 dark:text-emerald-400 hover:bg-emerald-100 dark:hover:bg-emerald-900/30 focus:ring-emerald-500",neutral:"border border-slate-300 dark:border-slate-600 bg-slate-100 dark:bg-slate-700 text-slate-600 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:ring-slate-400",input:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-900 dark:text-slate-100 hover:border-slate-400 dark:hover:border-slate-500 focus:ring-slate-500 focus:border-slate-500"}[o],h,{"w-full":x},n),...b,children:u?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),y]}):(0,t.jsxs)(t.Fragment,{children:[m,y,f]})})}])},81359,e=>{var t=e.i(91398),r=e.i(24608),a=e.i(69322);e.s(["f",0,({onClick:e,text:s=null,Icon:n=null})=>{let{formatMessage:l}=(0,a.S)();return(0,t.jsxs)("button",{type:"button",onClick:e,"aria-describedby":"header-delete-button",className:"inline-flex items-center gap-2 justify-center rounded-md border border-rose-500 px-4 py-2 text-sm font-medium leading-5 text-rose-600 dark:text-rose-200 shadow-sm hover:border-rose-600 hover:bg-rose-600 hover:text-white focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 h-[38px]",children:[(0,t.jsx)("span",{children:n||(0,t.jsx)(r.f,{className:"h-5 w-5"})}),s||l({id:"delete",defaultMessage:"Delete"})]})}])},17644,e=>{var t=e.i(91398),r=e.i(58678),a=e.i(41158),s=e.i(69322),n=e.i(37369),l=e.i(81013);e.s(["f",0,({headerText:e=null,onEdit:i=null,onDelete:o=null,children:d=null,title:c=null,addPath:u=null,addButtonText:m=null})=>{let{formatMessage:f}=(0,s.S)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{children:(0,t.jsxs)("title",{children:["Unchained AdminUI - ",c||e," "]})}),(0,t.jsx)("div",{className:"flex gap-3 flex-wrap items-center justify-between",children:(0,t.jsxs)("div",{className:"flex items-center flex-wrap justify-between w-full gap-4",children:[e&&(0,t.jsx)("h2",{className:"text-2xl font-medium text-slate-900 dark:text-slate-300 sm:truncate sm:text-3xl lg:text-4xl",children:e}),(0,t.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[d,u&&(0,t.jsx)(a.default,{href:u,children:(0,t.jsx)(l.f,{variant:"secondary",icon:(0,t.jsx)(n.f,{className:"h-5 w-5"}),text:m||f({id:"add",defaultMessage:"Add"})})}),i&&(0,t.jsx)(l.f,{variant:"secondary",onClick:i,text:f({id:"edit",defaultMessage:"Edit"})}),o&&(0,t.jsx)(l.f,{variant:"danger",onClick:o,text:f({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},33457,e=>{var t=e.i(91398),r=e.i(15361),a=e.i(69322),s=e.i(83147),n=e.i(84818),l=e.i(60193),i=e.i(7105),o=e.i(99160),d=e.i(98949),c=e.i(69211),u=e.i(72094);let m=({onSubmit:e,onSubmitSuccess:r,provider:s,disabled:n})=>{let{formatMessage:l}=(0,a.S)(),m=(0,d.f)({initialValues:{configuration:JSON.stringify(s?.configuration||{},null,2)},submit:e,getSubmitErrorMessage:e=>e?.message||"",onSubmitSuccess:r});return(0,t.jsx)(c.f,{form:m,className:"mt-6",children:(0,t.jsxs)("div",{className:"mt-1 sm:mt-0",children:[(0,t.jsx)(i.f,{id:"configuration",name:"configuration",disabled:n,value:m.formik.values.configuration,label:l({id:"configuration",defaultMessage:"Configuration"})}),(0,t.jsx)(u.f,{}),!n&&(0,t.jsx)(o.f,{label:l({id:"update_configuration",defaultMessage:"Update configuration"}),className:"mt-3"})]})})};var f=e.i(44926),x=e.i(65153);e.s(["f",0,({provider:e,onSubmit:i,onSubmitSuccess:o,readOnly:d,children:c=null})=>{let{formatMessage:u}=(0,a.S)(),{formatDateTime:p}=(0,n.f)();return(0,t.jsx)("div",{className:"my-6",children:(0,t.jsx)("div",{className:"space-y-8",children:(0,t.jsxs)("div",{className:"space-y-8 sm:space-y-5",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("h3",{className:"text-2xl leading-6 text-slate-900 dark:text-slate-200 mr-2",children:(0,s.D)(e?.interface)}),(0,t.jsx)(f.f,{containerClassName:"self-end",isActive:e?.isActive})]}),(0,t.jsxs)("div",{className:"space-y-4 max-w-xs",children:[(0,t.jsxs)("div",{className:"flex justify-between w-full gap-3",children:[(0,t.jsx)("dt",{className:"my-auto inline-block text-sm text-slate-400 ",children:u({id:"type_colon",defaultMessage:"Type:"})}),(0,t.jsx)("dd",{children:(0,t.jsx)(x.f,{text:e?.type,color:l._[e?.type]})})]}),(0,t.jsxs)("div",{className:"flex flex-col justify-center space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("dt",{className:"text-sm font-normal text-slate-400 pr-2",children:u({id:"created_colon",defaultMessage:"Created:"})}),(0,t.jsx)("dd",{className:"ml-auto text-base",children:p(e?.created,{dateStyle:"long",timeStyle:"short"})})]}),(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("dt",{className:"text-sm font-normal text-slate-400 pr-2",children:u({id:"last_updated",defaultMessage:"Last Updated:"})}),(0,t.jsx)("dd",{className:"ml-auto text-base",children:p(e?.updated,{dateStyle:"long",timeStyle:"short"})})]})]})]}),c&&(0,t.jsx)("div",{className:"w-full",children:c}),(0,t.jsx)(m,{onSubmit:i,onSubmitSuccess:o,provider:e,disabled:d}),(0,t.jsxs)("div",{className:"mt-6 mb-3",children:[(0,t.jsx)("dt",{className:"inline-block text-sm font-normal text-slate-400",children:u({id:"configuration_status",defaultMessage:"Configuration status"})}),e?.configurationError?(0,t.jsx)("dd",{className:"mt-2",children:(0,t.jsxs)("div",{className:"flex items-start p-3 bg-rose-50 dark:bg-rose-900/20 border border-rose-200 dark:border-rose-800 rounded-md",children:[(0,t.jsx)("svg",{className:"h-5 w-5 text-rose-400 dark:text-rose-500 mt-0.5 mr-3 flex-shrink-0",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z",clipRule:"evenodd"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-sm font-medium text-rose-800 dark:text-rose-200",children:u({id:"configuration_invalid",defaultMessage:"Invalid configuration"})}),(0,t.jsx)("div",{className:"mt-1 text-sm text-rose-700 dark:text-rose-300",children:e?.configurationError})]})]})}):(0,t.jsx)("dd",{className:"mt-2",children:(0,t.jsxs)("div",{className:"flex items-center p-3 bg-emerald-50 dark:bg-emerald-900/20 border border-emerald-200 dark:border-emerald-800 rounded-md",children:[(0,t.jsx)(r.f,{className:"h-5 w-5 text-emerald-600 dark:text-emerald-400 mr-3 flex-shrink-0"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-sm font-medium text-emerald-800 dark:text-emerald-200",children:u({id:"configuration_valid",defaultMessage:"Valid configuration"})}),(0,t.jsx)("p",{className:"mt-1 text-sm text-emerald-700 dark:text-emerald-300",children:u({id:"configuration_valid_description",defaultMessage:"All configuration parameters are correctly set and validated."})})]})]})})]})]})})})}],33457)},73319,e=>{let t=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["Q",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"C",0,t,"T",0,e=>!(!e||null==e||t(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},83147,e=>{let t=e=>e&&e?.split(",").reduce((e,t)=>{let[r=null,a=null]=(t||"")?.split("_")||[];return{...e,[r]:a}},null)||{};e.s(["S",0,(...e)=>e.filter(Boolean).join(" "),"R",0,e=>Object.entries(t(e))?.map(([e,t])=>({key:e,value:t})),"D",0,e=>e?.label&&e?.version?`${e.label} ${e.version}`:"","v",0,t,"Q",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"region"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"j",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"currency"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"I",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"language"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"_",0,(e,t,r)=>{let a;return a=r?{...e,[r]:t}:e,Object.keys(a)?.map(e=>[e,a[e]].join("="))?.join("&")},"d",0,()=>({formatPrice:e=>{if(!e?.currencyCode)return"n/a";if(e?.amount===void 0||e?.amount===null)return"";let{amount:t,currencyCode:r}=e||{};return new Intl.NumberFormat(navigator.language,{style:"currency",currency:r}).format(t/100)}})])},72094,e=>{var t=e.i(91398),r=e.i(91788),a=e.i(61898);let s=(e,t="")=>Object.fromEntries(Object.entries(e).reduce((e=[],[a,n])=>"string"==typeof n||r.default.isValidElement(n)?[...e,[`${t}${a}`,n]]:[...Object.entries(s(Object.assign({},...n),`${t}${a}.`)),...e],[])),n=({submitError:e="",fieldErrors:a=[]})=>(0,t.jsx)("div",{className:"my-2 mb-5 text-rose-700",children:(0,t.jsxs)("ul",{className:"space-y-1",children:[e&&(0,t.jsx)("li",{className:"disabled",children:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})},"submitError"),Object.entries(s(a)).map(([e,a])=>(0,t.jsx)("li",{className:"disabled",children:(0,t.jsx)("button",{type:"button",className:"no-button text-rose-600 dark:text-rose-400","aria-label":"Error button",onClick:()=>{let t=document.getElementById(e);t&&t.focus()},children:r.default.isValidElement(a)?a:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:a}})})},e))]})});e.s(["f",0,({displayFieldErrors:e=!1})=>{let{submitError:r,formik:s}=(0,a.f)(),l=s?.errors;return(r||e)&&(0,t.jsx)(n,{submitError:r,fieldErrors:e&&l})}])},99160,e=>{var t=e.i(91398),r=e.i(72043),a=e.i(38865),s=e.i(61898);e.s(["f",0,({label:e,disabled:n=!1,className:l="",hidden:i=!1,...o})=>{let d=(0,a.m)(),{...c}=o,u=Object.fromEntries(Object.keys(d.initialValues).map(e=>[e,d.getFieldMeta(e)])),{disabled:m}=(0,s.f)(),f=Object.values(u).reduce((e,{error:t,touched:r})=>e||t&&r,!1),x=n||m||d.isSubmitting||f,p=d.isSubmitting&&!f,g=(n||m||f)&&!d.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-slate-800 dark:focus:ring-slate-400",l,{"bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900":g,"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600":p,"bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent":!x,hidden:i}),"aria-label":e,type:"submit",value:e,disabled:x,...c})}])},15971,e=>{var t=e.i(91398),r=e.i(69322);e.s(["f",0,({onOkClick:e,onCancelClick:a,okText:s=null,cancelText:n=null,headerText:l=null,message:i=null,icon:o=null,close:d=null})=>{let{formatMessage:c}=(0,r.S)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sm:flex sm:items-start",children:[o||(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900/30 sm:mx-0 sm:h-10 sm:w-10",children:(0,t.jsx)("svg",{className:"h-6 w-6 text-rose-600 dark:text-rose-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,t.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,t.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",id:"modal-title",children:l||c({id:"warning",defaultMessage:"Warning!"})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("p",{className:"text-sm text-slate-500 dark:text-slate-200",children:i||c({id:"are_you_sure",defaultMessage:"Are you sure?"})})})]})]}),(0,t.jsxs)("div",{className:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse",children:[(0,t.jsx)("button",{id:"danger_continue",onClick:e,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-rose-600 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-rose-700 focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",children:s||c({id:"continue",defaultMessage:"Continue"})}),(0,t.jsx)("button",{id:"danger_cancel",onClick:a||d,type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-slate-300 bg-white px-4 py-2 text-base font-medium text-slate-700 shadow-xs hover:bg-slate-50 focus:outline-hidden focus:ring-2 focus:ring-slate-800 focus:ring-offset-2 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",children:n||c({id:"cancel",defaultMessage:"Cancel"})})]})]})}])},6607,e=>{var t=e.i(91788),r=e.i(6444);e.s(["f",0,()=>(0,t.useContext)(r.f)])},16238,e=>{var t=e.i(59080);let r=t.f`
|
|
2
|
-
fragment PaymentProviderFragment on PaymentProvider {
|
|
3
|
-
_id
|
|
4
|
-
created
|
|
5
|
-
updated
|
|
6
|
-
deleted
|
|
7
|
-
isActive
|
|
8
|
-
type
|
|
9
|
-
interface {
|
|
10
|
-
_id
|
|
11
|
-
label
|
|
12
|
-
version
|
|
13
|
-
}
|
|
14
|
-
configuration
|
|
15
|
-
configurationError
|
|
16
|
-
}
|
|
17
|
-
`;e.s(["f",0,r])},53555,e=>{var t=e.i(59080),r=e.i(32171),a=e.i(70693),s=e.i(16238);e.s(["f",0,({paymentProviderId:e=null})=>{let{customProperties:n}=(0,a.f)(),{data:l,loading:i,error:o}=(0,r.f)(((e="")=>t.f`
|
|
18
|
-
query PaymentProvider($paymentProviderId: ID!) {
|
|
19
|
-
paymentProvider(paymentProviderId: $paymentProviderId) {
|
|
20
|
-
...PaymentProviderFragment
|
|
21
|
-
${e}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
${s.f}
|
|
25
|
-
`)(n?.PaymentProvider),{skip:!e,variables:{paymentProviderId:e}});return{paymentProvider:l?.paymentProvider,loading:i,error:o}}])},74982,e=>{var t=e.i(59080),r=e.i(76204);let a=t.f`
|
|
26
|
-
mutation RemovePaymentProvider($paymentProviderId: ID!) {
|
|
27
|
-
removePaymentProvider(paymentProviderId: $paymentProviderId) {
|
|
28
|
-
_id
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
`;e.s(["f",0,()=>{let[e]=(0,r.f)(a);return{removePaymentProvider:async({paymentProviderId:t})=>e({variables:{paymentProviderId:t},refetchQueries:["PaymentProviders","ShopStatus"]})}}])},70365,e=>{var t=e.i(91398),r=e.i(3828),a=e.i(66773),s=e.i(69322),n=e.i(28401),l=e.i(61494),i=e.i(17644),o=e.i(53555),d=e.i(74982),c=e.i(59080),u=e.i(76204),m=e.i(16238);let f=c.f`
|
|
32
|
-
mutation UpdatePaymentProvider(
|
|
33
|
-
$paymentProvider: UpdateProviderInput!
|
|
34
|
-
$paymentProviderId: ID!
|
|
35
|
-
) {
|
|
36
|
-
updatePaymentProvider(
|
|
37
|
-
paymentProvider: $paymentProvider
|
|
38
|
-
paymentProviderId: $paymentProviderId
|
|
39
|
-
) {
|
|
40
|
-
...PaymentProviderFragment
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
${m.f}
|
|
44
|
-
`;var x=e.i(12197),p=e.i(15971),g=e.i(6607),b=e.i(33457),y=e.i(81359),h=e.i(83147),v=e.i(58971);e.s(["default",0,({paymentProviderId:e})=>{let{formatMessage:c}=(0,s.S)(),{setModal:m}=(0,g.f)(),{push:j,replace:w}=(0,r.useRouter)(),{hasRole:k}=(0,v.f)(),{updatePaymentProvider:N}=(()=>{let[e]=(0,u.f)(f);return{updatePaymentProvider:async({configuration:t,paymentProviderId:r})=>e({variables:{paymentProvider:{configuration:t},paymentProviderId:r}})}})(),{removePaymentProvider:P}=(0,d.f)(),{paymentProvider:S,loading:M}=(0,o.f)({paymentProviderId:e}),$=async({configuration:t})=>(await N({configuration:JSON.parse(t||"[]"),paymentProviderId:e}),!0),_=async()=>{await m((0,t.jsx)(p.f,{onCancelClick:async()=>m(""),message:c({id:"delete_payment_provider_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this payment provider? "}),onOkClick:async()=>{m(""),await P({paymentProviderId:e}),n.c.success(c({id:"payment_provider_deleted",defaultMessage:"Payment provider deleted successfully"})),j("/payment-provider")},okText:c({id:"delete_payment_provider",defaultMessage:"Delete payment provider"})}))};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.f,{currentPageTitle:(0,h.D)(S?.interface)}),(0,t.jsxs)("div",{className:"items-center flex min-w-full justify-between",children:[(0,t.jsx)(i.f,{headerText:c({id:"update_payment_provider_header",defaultMessage:"Update payment provider"}),title:c({id:"payment_detail_title",defaultMessage:"Payment provider {id}"},{id:S?._id})}),k(a.C.ManagePaymentProviders)&&(0,t.jsx)(y.f,{onClick:_})]}),M?(0,t.jsx)(x.f,{}):(0,t.jsx)(b.f,{readOnly:!k(a.C.ManagePaymentProviders),provider:S,onSubmit:$,onSubmitSuccess:()=>{w("/payment-provider")}})]})}],70365)},76204,e=>{var t=e.i(24669),r=e.i(91788),a=e.i(30928),s=e.i(52006);let n=e.i(21953).f?r.useLayoutEffect:r.useEffect;var l=e.i(98926);function i(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["f",0,function(e,o){let d=(0,l.f)(o?.client),[c,u]=r.useState(()=>i(d)),m=r.useRef({result:c,mutationId:0,isMounted:!0,client:d,mutation:e,options:o});n(()=>{Object.assign(m.current,{client:d,options:o,mutation:e})});let f=r.useCallback((e={})=>{let{options:r,mutation:n}=m.current,l={...r,mutation:n},i=e.client||m.current.client,o="function"==typeof e.context?e.context(r?.context):e.context;!m.current.result.loading&&m.current.isMounted&&u(m.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:i});let d=++m.current.mutationId,c=(0,a.f)(l,{...e,context:o});return(0,s.f)(i.mutate(c).then(r=>{let{data:a,error:s}=r,n=e.onError||m.current.options?.onError;if(s&&n&&n(s,c),d===m.current.mutationId){let e={called:!0,loading:!1,data:a,error:s,client:i};m.current.isMounted&&!(0,t.f)(m.current.result,e)&&u(m.current.result=e)}let l=e.onCompleted||m.current.options?.onCompleted;return s||l?.(r.data,c),r},r=>{if(d===m.current.mutationId&&m.current.isMounted){let e={loading:!1,error:r,data:void 0,called:!0,client:i};(0,t.f)(m.current.result,e)||u(m.current.result=e)}let a=e.onError||m.current.options?.onError;throw a&&a(r,c),r}))},[]),x=r.useCallback(()=>{if(m.current.isMounted){let e=i(m.current.client);Object.assign(m.current,{mutationId:0,result:e}),u(e)}},[]);return r.useEffect(()=>{let e=m.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[f,{reset:x,...c}]}],76204)},15361,e=>{var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...a},s){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:s,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});e.s(["f",0,r],15361)},37369,e=>{var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...a},s){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:s,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["f",0,r],37369)},24608,e=>{var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...a},s){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:s,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))});e.s(["f",0,r],24608)},9356,e=>{var t=e.i(35113);e.s(["f",0,function(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,t.f)(e)))}],9356)},49543,e=>{var t=e.i(35113);e.s(["f",0,function(e,r){let a=(0,t.f)(e,r?.in);return a.setHours(0,0,0,0),a}])},35113,2848,98170,e=>{let t=Symbol.for("constructDateFrom");function r(e,r){return"function"==typeof e?e(r):e&&"object"==typeof e&&t in e?e[t](r):e instanceof Date?new e.constructor(r):new Date(r)}e.s(["C",0,t,"_",0,864e5,"r",0,36e5,"z",0,6e4,"A",0,6048e5,"k",0,1440,"d",0,43200,"l",0,525600],2848),e.s(["f",0,r],98170),e.s(["f",0,function(e,t){return r(t||e,e)}],35113)},34980,(e,t,r)=>{var a=e.r(49957),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function o(e){return a.isMemo(e)?l:i[e.$$typeof]||s}i[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[a.Memo]=l;var d=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,x=Object.prototype;t.exports=function e(t,r,a){if("string"!=typeof r){if(x){var s=f(r);s&&s!==x&&e(t,s,a)}var l=c(r);u&&(l=l.concat(u(r)));for(var i=o(t),p=o(r),g=0;g<l.length;++g){var b=l[g];if(!n[b]&&!(a&&a[b])&&!(p&&p[b])&&!(i&&i[b])){var y=m(r,b);try{d(t,b,y)}catch(e){}}}}return t}},40563,(e,t,r)=>{var a="function"==typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103,n=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,i=a?Symbol.for("react.strict_mode"):60108,o=a?Symbol.for("react.profiler"):60114,d=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,u=a?Symbol.for("react.async_mode"):60111,m=a?Symbol.for("react.concurrent_mode"):60111,f=a?Symbol.for("react.forward_ref"):60112,x=a?Symbol.for("react.suspense"):60113,p=a?Symbol.for("react.suspense_list"):60120,g=a?Symbol.for("react.memo"):60115,b=a?Symbol.for("react.lazy"):60116,y=a?Symbol.for("react.block"):60121,h=a?Symbol.for("react.fundamental"):60117,v=a?Symbol.for("react.responder"):60118,j=a?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case s:switch(e=e.type){case u:case m:case l:case o:case i:case x:return e;default:switch(e=e&&e.$$typeof){case c:case f:case b:case g:case d:return e;default:return t}}case n:return t}}}function k(e){return w(e)===m}r.AsyncMode=u,r.ConcurrentMode=m,r.ContextConsumer=c,r.ContextProvider=d,r.Element=s,r.ForwardRef=f,r.Fragment=l,r.Lazy=b,r.Memo=g,r.Portal=n,r.Profiler=o,r.StrictMode=i,r.Suspense=x,r.isAsyncMode=function(e){return k(e)||w(e)===u},r.isConcurrentMode=k,r.isContextConsumer=function(e){return w(e)===c},r.isContextProvider=function(e){return w(e)===d},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},r.isForwardRef=function(e){return w(e)===f},r.isFragment=function(e){return w(e)===l},r.isLazy=function(e){return w(e)===b},r.isMemo=function(e){return w(e)===g},r.isPortal=function(e){return w(e)===n},r.isProfiler=function(e){return w(e)===o},r.isStrictMode=function(e){return w(e)===i},r.isSuspense=function(e){return w(e)===x},r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===m||e===o||e===i||e===x||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===d||e.$$typeof===c||e.$$typeof===f||e.$$typeof===h||e.$$typeof===v||e.$$typeof===j||e.$$typeof===y)},r.typeOf=w},49957,(e,t,r)=>{e.i(50461),t.exports=e.r(40563)}],56158,(e,t,r)=>{let a="/payment-provider/PaymentProviderDetailPage";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(70365)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([a])})}]);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[61494,e=>{var t=e.i(91398),r=e.i(41158),s=e.i(3828),a=e.i(69322);e.s(["f",0,({routeName:e=null,currentPageTitle:l=null,depth:o=null})=>{let n=(0,s.useRouter)(),{formatMessage:i}=(0,a.S)(),d={home:"home",products:"products",orders:"orders",users:"users",assortments:"assortments",filters:"filters",tokens:"tokens",quotations:"quotations",enrollments:"enrollments",activities:"activities",works:"work_queue",events:"events",currency:"currencies",country:"countries",language:"languages","delivery-provider":"delivery_providers","payment-provider":"payment_providers","warehousing-provider":"warehousing_provider",system:"system",account:"account",new:"new",edit:"edit"},c=n.asPath?.split("/")?.filter((e,t)=>n.asPath?.split("/")?.indexOf(e)===t);if(1===c.length)return null;let u="";o&&c.splice(o),e&&(c[c.length-1]=e);let f=c?.map(t=>{if(u+=`${t}/`,!t)return{name:i({id:"home",defaultMessage:"Home"}),path:"/"};let r=t?.split("?")[0],s=e?r:r.replace(/-/g," "),a=d[r];return{name:a?i({id:a,defaultMessage:s}):decodeURIComponent(s),path:u.replace(/.$/,"")}});return(0,t.jsx)("nav",{className:"mb-5 hidden sm:flex lg:mt-5 lg:mb-8","aria-label":"Breadcrumb",children:(0,t.jsx)("ol",{className:"flex items-center space-x-4",children:f?.map((e,s)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-center",children:[0!==s&&(0,t.jsx)("svg",{className:"mr-4 h-5 w-5 shrink-0 text-slate-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,t.jsx)(r.default,{href:e.path,className:"text-sm font-medium capitalize text-slate-500 dark:text-slate-400 dark:hover:text-slate-300 hover:text-slate-700 focus:outline-hidden focus:ring-2 focus:ring-slate-800 rounded-md px-1 py-1",children:s===f.length-1&&l?l:e.name})]})},e.path))})})}])},81013,e=>{var t=e.i(91398),r=e.i(72043);e.s(["f",0,({text:e,children:s,onClick:a,className:l="",disabled:o=!1,id:n="",variant:i="primary",size:d="md",type:c="button",loading:u=!1,icon:f,iconRight:m,fullWidth:p=!1,rounded:b="md",ariaLabel:x,...g})=>{let h=s||e,y=(f||m)&&h?"gap-2":"";return(0,t.jsx)("button",{id:n,type:c,disabled:o||u,onClick:a,"aria-label":x,className:(0,r.default)("inline-flex items-center justify-center font-medium shadow-xs focus:outline-hidden focus:ring-2 focus:ring-offset-2 transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-50",{xs:"px-2.5 py-1.5 text-xs h-6",sm:"px-3 py-2 text-sm h-8",md:"px-4 py-2 text-sm h-9",lg:"px-6 py-3 text-base h-11"}[d],{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}[b],{primary:"border border-slate-800 dark:border-slate-600 bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:ring-slate-800 dark:focus:ring-slate-400",secondary:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-700 dark:text-slate-200 hover:bg-slate-50 dark:hover:bg-slate-700 focus:ring-slate-500",tertiary:"border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700 focus:ring-slate-400",quaternary:"bg-transparent text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",danger:"border border-rose-500 dark:border-rose-400 bg-white dark:bg-slate-800 text-rose-600 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/10 focus:ring-rose-500",ghost:"bg-transparent border border-transparent text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",success:"border border-emerald-500 dark:border-emerald-400 bg-emerald-50 dark:bg-emerald-900/20 text-emerald-600 dark:text-emerald-400 hover:bg-emerald-100 dark:hover:bg-emerald-900/30 focus:ring-emerald-500",neutral:"border border-slate-300 dark:border-slate-600 bg-slate-100 dark:bg-slate-700 text-slate-600 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:ring-slate-400",input:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-900 dark:text-slate-100 hover:border-slate-400 dark:hover:border-slate-500 focus:ring-slate-500 focus:border-slate-500"}[i],y,{"w-full":p},l),...g,children:u?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),h]}):(0,t.jsxs)(t.Fragment,{children:[f,h,m]})})}])},17644,e=>{var t=e.i(91398),r=e.i(58678),s=e.i(41158),a=e.i(69322),l=e.i(37369),o=e.i(81013);e.s(["f",0,({headerText:e=null,onEdit:n=null,onDelete:i=null,children:d=null,title:c=null,addPath:u=null,addButtonText:f=null})=>{let{formatMessage:m}=(0,a.S)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{children:(0,t.jsxs)("title",{children:["Unchained AdminUI - ",c||e," "]})}),(0,t.jsx)("div",{className:"flex gap-3 flex-wrap items-center justify-between",children:(0,t.jsxs)("div",{className:"flex items-center flex-wrap justify-between w-full gap-4",children:[e&&(0,t.jsx)("h2",{className:"text-2xl font-medium text-slate-900 dark:text-slate-300 sm:truncate sm:text-3xl lg:text-4xl",children:e}),(0,t.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[d,u&&(0,t.jsx)(s.default,{href:u,children:(0,t.jsx)(o.f,{variant:"secondary",icon:(0,t.jsx)(l.f,{className:"h-5 w-5"}),text:f||m({id:"add",defaultMessage:"Add"})})}),n&&(0,t.jsx)(o.f,{variant:"secondary",onClick:n,text:m({id:"edit",defaultMessage:"Edit"})}),i&&(0,t.jsx)(o.f,{variant:"danger",onClick:i,text:m({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},57468,e=>{var t=e.i(91398),r=e.i(72043),s=e.i(69322),a=e.i(99160);e.s(["f",0,({cancelText:e=null,showCancel:l=!0,submitText:o=null,showSubmit:n=!0,onCancel:i,className:d=""})=>{let{formatMessage:c}=(0,s.S)();return(0,t.jsxs)("span",{className:(0,r.default)("flex shrink-0 items-center space-x-4 py-5 pl-1",d),children:[l?(0,t.jsx)("button",{onClick:i,"data-id":"cancel_update",type:"button",className:(0,r.default)("focus:ring-slate-800","inline-flex items-center rounded-md border border-slate-300 dark:border-slate-700 bg-white dark:bg-slate-800 px-4 py-2 text-sm font-medium text-slate-700 dark:text-slate-300 shadow-xs hover:bg-slate-50 dark:hover:bg-slate-700 focus:outline-hidden focus:ring-2 focus:ring-slate-800 focus:ring-offset-2"),children:e||c({id:"cancel",defaultMessage:"Cancel"})}):null,n?(0,t.jsx)(a.f,{label:o||c({id:"save",defaultMessage:"Save"})}):null]})}])},73319,e=>{let t=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["Q",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"C",0,t,"T",0,e=>!(!e||null==e||t(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},38247,e=>{var t=e.i(91398),r=e.i(72043),s=e.i(60741),a=e.i(82226),l=e.i(29691);let o=e=>{let t=new Date(e);return isNaN(t.getTime())?null:t.toISOString().split("T")[0]};e.s(["f",0,({validators:e=[],className:n,parseDate:i=o,...d})=>{let c=(0,s.f)({validators:[...e,a.G],...d}),u=c.value?new Date(c.value).toISOString().split("T")[0]:"";return(0,t.jsx)(l.f,{...c,className:d.containerClassName,children:(0,t.jsx)("input",{type:"date",id:c.id,name:c.name,disabled:c.disabled,className:(0,r.default)("relative mt-0 block w-full appearance-none rounded-md rounded-b-md border-1 border-slate-300 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 dark:text-slate-200 dark:bg-slate-900 placeholder-slate-400 shadow-xs focus:z-10 focus:outline-hidden focus:ring-2 focus:ring-slate-800",n,{"border-rose-700 placeholder:text-rose-300":!!c.error}),onChange:e=>c.setValue(e.target.value),value:u,placeholder:c.placeholder,autoComplete:"off",...d})})}])},73462,e=>{var t=e.i(91398),r=e.i(45229),s=e.i(82226);e.s(["f",0,({validators:e=[],value:a="",...l})=>(0,t.jsx)(r.f,{value:a,autoComplete:l?.autoComplete||"on",name:"email",validators:[...e,s.L],...l})])},72094,e=>{var t=e.i(91398),r=e.i(91788),s=e.i(61898);let a=(e,t="")=>Object.fromEntries(Object.entries(e).reduce((e=[],[s,l])=>"string"==typeof l||r.default.isValidElement(l)?[...e,[`${t}${s}`,l]]:[...Object.entries(a(Object.assign({},...l),`${t}${s}.`)),...e],[])),l=({submitError:e="",fieldErrors:s=[]})=>(0,t.jsx)("div",{className:"my-2 mb-5 text-rose-700",children:(0,t.jsxs)("ul",{className:"space-y-1",children:[e&&(0,t.jsx)("li",{className:"disabled",children:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})},"submitError"),Object.entries(a(s)).map(([e,s])=>(0,t.jsx)("li",{className:"disabled",children:(0,t.jsx)("button",{type:"button",className:"no-button text-rose-600 dark:text-rose-400","aria-label":"Error button",onClick:()=>{let t=document.getElementById(e);t&&t.focus()},children:r.default.isValidElement(s)?s:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:s}})})},e))]})});e.s(["f",0,({displayFieldErrors:e=!1})=>{let{submitError:r,formik:a}=(0,s.f)(),o=a?.errors;return(r||e)&&(0,t.jsx)(l,{submitError:r,fieldErrors:e&&o})}])},68095,e=>{var t=e.i(91398),r=e.i(72043),s=e.i(91788),a=e.i(45229);e.s(["f",0,({autoComplete:e="on",...l})=>{let[o,n]=(0,s.useState)(!1),i=e=>{e.preventDefault(),n(!o)};return(0,t.jsxs)("div",{className:(0,r.default)("relative",l.className),children:[(0,t.jsx)(a.f,{autoComplete:e||"on",name:"password",...l,type:o?"text":"password"}),(0,t.jsx)("span",{role:"button",tabIndex:-1,"aria-label":"toggle password visibility",className:"absolute translate-y-[-137%] outline-hidden block right-3",onClick:i,onKeyUp:i,children:o?(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 stroke-slate-700",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]}):(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 stroke-slate-700",fill:"none",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})})})]})}])},73419,e=>{var t=e.i(91398),r=e.i(72043),s=e.i(60741),a=e.i(29691);e.s(["f",0,e=>{let{options:l,...o}=(0,s.f)(e),{className:n}=e||{className:""};return(0,t.jsx)(a.f,{...o,children:(0,t.jsx)("div",{className:"select-wrap",children:(0,t.jsxs)("select",{className:(0,r.default)("block w-full dark:bg-slate-900 dark:text-white rounded-md border-1 border-slate-300 dark:border-slate-700 py-2.5 pl-3 pr-10 text-base text-black shadow-xs focus:outline-hidden focus:ring-2 focus:ring-slate-800 sm:text-sm",n,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!o.error}),disabled:o.disabled,id:o.name,name:o.name,onChange:o.onChange,onBlur:o.onBlur,value:o.value,children:[(0,t.jsx)("option",{className:"dark:text-slate-200",value:"",disabled:o.required,hidden:o.required,children:o.placeholder||o.label}),Object.entries(l).map(([e,r])=>(0,t.jsx)("option",{className:"dark:text-slate-200",value:e,children:r},e))]})})})}])},99160,e=>{var t=e.i(91398),r=e.i(72043),s=e.i(38865),a=e.i(61898);e.s(["f",0,({label:e,disabled:l=!1,className:o="",hidden:n=!1,...i})=>{let d=(0,s.m)(),{...c}=i,u=Object.fromEntries(Object.keys(d.initialValues).map(e=>[e,d.getFieldMeta(e)])),{disabled:f}=(0,a.f)(),m=Object.values(u).reduce((e,{error:t,touched:r})=>e||t&&r,!1),p=l||f||d.isSubmitting||m,b=d.isSubmitting&&!m,x=(l||f||m)&&!d.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-slate-800 dark:focus:ring-slate-400",o,{"bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900":x,"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600":b,"bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent":!p,hidden:n}),"aria-label":e,type:"submit",value:e,disabled:p,...c})}])},45229,e=>{var t=e.i(91398),r=e.i(72043),s=e.i(82226),a=e.i(60741),l=e.i(29691);e.s(["f",0,({maxLength:e=0,validators:o=[],...n})=>{let i=(0,a.f)({validators:[...o,e&&(0,s.f)(e)],...n});return(0,t.jsx)(l.f,{...i,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-slate-800 shadow-xs",{"border-rose-700 placeholder:text-rose-500":!!i.error,"border-slate-300 placeholder-slate-400":!i.error}),disabled:i.disabled,id:i.name,name:i.name,onChange:i.onChange,onClick:e=>{e.stopPropagation()},onBlur:i.onBlur,placeholder:i.placeholder,autoComplete:i.autoComplete||"off",type:i.type||"text",value:i.value,autoFocus:i.autoFocus})})}])},54021,e=>{var t=e.i(91398),r=e.i(3828),s=e.i(66773),a=e.i(69322),l=e.i(98949),o=e.i(69211),n=e.i(45229),i=e.i(73419),d=e.i(38247),c=e.i(73462),u=e.i(68095),f=e.i(57468),m=e.i(72094),p=e.i(82226);let b=({onSubmit:e,onSubmitSuccess:s})=>{let{formatMessage:b}=(0,a.S)(),x=(0,r.useRouter)(),g=b({id:"user_profile_created",defaultMessage:"User profile created successfully!"}),h=(0,l.f)({submit:e,onSubmitSuccess:s,getSubmitErrorMessage:e=>(e?.message?.toLowerCase().includes("email already exists")&&h.formik.setFieldError("email",b({id:"email_already_exists_error",defaultMessage:"Email already exists"})),""),successMessage:g,initialValues:{displayName:"",gender:"",birthday:new Date,phoneMobile:"",email:"",password:"",firstName:"",lastName:"",company:"",addressLine:"",addressLine2:"",postalCode:"",regionCode:"",countryCode:"",city:""}}),y=()=>{x.back()};return(0,t.jsx)(o.f,{form:h,className:"max-w-6xl",children:(0,t.jsxs)("div",{className:"space-y-4 overflow-hidden rounded-md lg:grid lg:grid-cols-3",children:[(0,t.jsxs)("div",{className:"flex justify-between pt-5 sm:col-span-1",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",children:b({id:"profile",defaultMessage:"Profile"})}),(0,t.jsx)("p",{className:"divide-y divide-slate-200 dark:divide-slate-700 dark:text-slate-400 mr-4",children:b({id:"profile_notice",defaultMessage:"This information will be displayed publicly so be careful what you share."})})]}),(0,t.jsx)("span",{className:"ml-4 flex shrink-0 items-start space-x-4"})]}),(0,t.jsxs)("div",{className:"mt-1 rounded-md border-slate-300 dark:border-slate-800 bg-white dark:bg-slate-800 pt-5 shadow-sm dark:shadow-none lg:col-span-2",children:[(0,t.jsxs)("div",{className:"px-6 space-y-4",children:[(0,t.jsx)("div",{children:(0,t.jsx)(c.f,{className:"mt-0 w-full",name:"email",required:!0,label:b({id:"email",defaultMessage:"Email"})})}),(0,t.jsx)("div",{children:(0,t.jsx)(u.f,{className:"mt-0 w-full",name:"password",label:b({id:"password",defaultMessage:"Password"})})}),(0,t.jsx)("div",{children:(0,t.jsx)(n.f,{className:"mt-0 w-full",name:"displayName",label:b({id:"display_name",defaultMessage:"Display name"})})}),(0,t.jsx)("div",{children:(0,t.jsx)(i.f,{className:"mt-0 w-full",label:b({id:"gender",defaultMessage:"Gender"}),name:"gender",options:{M:b({id:"male",defaultMessage:"Male"}),F:b({id:"female",defaultMessage:"Female"})}})}),(0,t.jsx)("div",{children:(0,t.jsx)(d.f,{label:b({id:"birthday",defaultMessage:"Birthday"}),className:"mt-0 w-full",name:"birthday",validators:[p.$]})}),(0,t.jsx)("div",{children:(0,t.jsx)(n.f,{className:"mt-0 w-full",name:"phoneMobile",label:b({id:"mobile_phone",defaultMessage:"Mobile phone"})})})]}),(0,t.jsxs)("div",{className:"border-t-slate-100 border-t dark:border-t-slate-700 bg-slate-50 dark:bg-slate-800 mt-5 pr-5",children:[(0,t.jsx)(m.f,{}),(0,t.jsx)(f.f,{className:"justify-end",onCancel:y})]})]}),(0,t.jsx)("div",{className:"mb-6 w-full lg:col-span-3"}),(0,t.jsx)("div",{className:"flex justify-between pt-6 lg:col-span-1",children:(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",children:b({id:"address",defaultMessage:"Address"})}),(0,t.jsx)("p",{className:"divide-y divide-slate-200 dark:divide-slate-700 dark:text-slate-400 mr-4",children:b({id:"address_notice",defaultMessage:"This information will be displayed publicly so be careful what you share."})})]})}),(0,t.jsxs)("div",{className:"rounded-md bg-white dark:bg-slate-800 pt-5 mb-5 shadow-sm dark:shadow-none lg:col-span-2",children:[(0,t.jsxs)("div",{className:"px-5 space-y-4",children:[(0,t.jsx)("div",{className:"mt-1 flex text-sm sm:mt-0",children:(0,t.jsxs)("div",{className:"flex w-full",children:[(0,t.jsx)(n.f,{className:"mt-0 w-full",name:"firstName",label:b({id:"first_name",defaultMessage:"First name"})}),(0,t.jsx)(n.f,{className:"ml-2 mt-0 w-full",name:"lastName",label:b({id:"last_Name",defaultMessage:"Last name"})})]})}),(0,t.jsx)("div",{children:(0,t.jsx)(n.f,{className:"mt-0 w-full",name:"company",label:b({id:"company",defaultMessage:"Company"})})}),(0,t.jsx)("div",{children:(0,t.jsx)(n.f,{className:"mt-0 w-full",name:"addressLine",label:b({id:"address_line_1",defaultMessage:"Address line 1 (Street, House no)"})})}),(0,t.jsx)("div",{children:(0,t.jsx)(n.f,{className:"mt-0 w-full",name:"addressLine2",label:b({id:"address_line_2",defaultMessage:"Address line 2"})})}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-x-4 sm:grid-cols-2 space-y-4 sm:space-y-0",children:[(0,t.jsx)("div",{children:(0,t.jsx)(n.f,{className:"mt-0 w-full",name:"regionCode",label:b({id:"region_Code",defaultMessage:"Region"})})}),(0,t.jsx)("div",{children:(0,t.jsx)(n.f,{className:"mt-0 w-full",name:"postalCode",label:b({id:"postal_code",defaultMessage:"Postal/ZIP code"})})})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-x-4 sm:grid-cols-2 space-y-4 sm:space-y-0",children:[(0,t.jsx)("div",{children:(0,t.jsx)(n.f,{className:"mt-0 w-full",name:"city",label:b({id:"city",defaultMessage:"City"})})}),(0,t.jsx)("div",{children:(0,t.jsx)(n.f,{className:"mt-0 w-full",name:"countryCode",label:b({id:"country_code",defaultMessage:"Country code"})})})]})]}),(0,t.jsx)("div",{className:"border-t border-slate-100 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 mt-5 pr-5",children:(0,t.jsx)(f.f,{className:"justify-end",onCancel:y})})]})]})})};var x=e.i(61494),g=e.i(17644),h=e.i(58971),y=e.i(59080),v=e.i(76204),j=e.i(73298);let w=y.f`
|
|
2
|
-
mutation EnrollUser(
|
|
3
|
-
$email: String!
|
|
4
|
-
$plainPassword: String
|
|
5
|
-
$profile: UserProfileInput!
|
|
6
|
-
) {
|
|
7
|
-
enrollUser(email: $email, password: $plainPassword, profile: $profile) {
|
|
8
|
-
...UserFragment
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
${j.f}
|
|
12
|
-
`;e.s(["default",0,()=>{let{formatMessage:e}=(0,a.S)(),{enrollUser:l}=(()=>{let[e,{data:t,error:r,loading:s}]=(0,v.f)(w);return{enrollUser:async({email:t,password:r,profile:s})=>{let a={email:t,profile:s,plainPassword:null};return a.plainPassword=r,e({variables:a,refetchQueries:["Users"]})},newUser:t?.enrollUser,error:r,loading:s}})(),{hasRole:o}=(0,h.f)(),n=(0,r.useRouter)(),i=async e=>{let{phoneMobile:t,birthday:r,gender:s,password:a,email:o,displayName:n}=e,{firstName:i,lastName:d,company:c,addressLine:u,addressLine2:f,postalCode:m,regionCode:p,countryCode:b,city:x}=e;return await l({email:o,password:a,profile:{displayName:n,phoneMobile:t,birthday:r,gender:s,address:{firstName:i,lastName:d,company:c,addressLine:u,addressLine2:f,postalCode:m,regionCode:p,countryCode:b,city:x}}})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.f,{}),(0,t.jsx)(g.f,{headerText:e({id:"new_user_header",defaultMessage:"New user"})}),(0,t.jsx)("div",{className:"mt-6",children:(0,t.jsx)(b,{onSubmit:i,onSubmitSuccess:(e,{enrollUser:t})=>{o(s.C.ViewUser)&&n.replace(`/users?userId=${t?._id}`)}})})]})}],54021)},76204,e=>{var t=e.i(24669),r=e.i(91788),s=e.i(30928),a=e.i(52006);let l=e.i(21953).f?r.useLayoutEffect:r.useEffect;var o=e.i(98926);function n(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["f",0,function(e,i){let d=(0,o.f)(i?.client),[c,u]=r.useState(()=>n(d)),f=r.useRef({result:c,mutationId:0,isMounted:!0,client:d,mutation:e,options:i});l(()=>{Object.assign(f.current,{client:d,options:i,mutation:e})});let m=r.useCallback((e={})=>{let{options:r,mutation:l}=f.current,o={...r,mutation:l},n=e.client||f.current.client,i="function"==typeof e.context?e.context(r?.context):e.context;!f.current.result.loading&&f.current.isMounted&&u(f.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:n});let d=++f.current.mutationId,c=(0,s.f)(o,{...e,context:i});return(0,a.f)(n.mutate(c).then(r=>{let{data:s,error:a}=r,l=e.onError||f.current.options?.onError;if(a&&l&&l(a,c),d===f.current.mutationId){let e={called:!0,loading:!1,data:s,error:a,client:n};f.current.isMounted&&!(0,t.f)(f.current.result,e)&&u(f.current.result=e)}let o=e.onCompleted||f.current.options?.onCompleted;return a||o?.(r.data,c),r},r=>{if(d===f.current.mutationId&&f.current.isMounted){let e={loading:!1,error:r,data:void 0,called:!0,client:n};(0,t.f)(f.current.result,e)||u(f.current.result=e)}let s=e.onError||f.current.options?.onError;throw s&&s(r,c),r}))},[]),p=r.useCallback(()=>{if(f.current.isMounted){let e=n(f.current.client);Object.assign(f.current,{mutationId:0,result:e}),u(e)}},[]);return r.useEffect(()=>{let e=f.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[m,{reset:p,...c}]}],76204)},37369,e=>{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:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["f",0,r],37369)},9356,e=>{var t=e.i(35113);e.s(["f",0,function(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,t.f)(e)))}],9356)},49543,e=>{var t=e.i(35113);e.s(["f",0,function(e,r){let s=(0,t.f)(e,r?.in);return s.setHours(0,0,0,0),s}])},35113,2848,98170,e=>{let t=Symbol.for("constructDateFrom");function r(e,r){return"function"==typeof e?e(r):e&&"object"==typeof e&&t in e?e[t](r):e instanceof Date?new e.constructor(r):new Date(r)}e.s(["C",0,t,"_",0,864e5,"r",0,36e5,"z",0,6e4,"A",0,6048e5,"k",0,1440,"d",0,43200,"l",0,525600],2848),e.s(["f",0,r],98170),e.s(["f",0,function(e,t){return r(t||e,e)}],35113)},34980,(e,t,r)=>{var s=e.r(49957),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},n={};function i(e){return s.isMemo(e)?o:n[e.$$typeof]||a}n[s.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},n[s.Memo]=o;var d=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,p=Object.prototype;t.exports=function e(t,r,s){if("string"!=typeof r){if(p){var a=m(r);a&&a!==p&&e(t,a,s)}var o=c(r);u&&(o=o.concat(u(r)));for(var n=i(t),b=i(r),x=0;x<o.length;++x){var g=o[x];if(!l[g]&&!(s&&s[g])&&!(b&&b[g])&&!(n&&n[g])){var h=f(r,g);try{d(t,g,h)}catch(e){}}}}return t}},40563,(e,t,r)=>{var s="function"==typeof Symbol&&Symbol.for,a=s?Symbol.for("react.element"):60103,l=s?Symbol.for("react.portal"):60106,o=s?Symbol.for("react.fragment"):60107,n=s?Symbol.for("react.strict_mode"):60108,i=s?Symbol.for("react.profiler"):60114,d=s?Symbol.for("react.provider"):60109,c=s?Symbol.for("react.context"):60110,u=s?Symbol.for("react.async_mode"):60111,f=s?Symbol.for("react.concurrent_mode"):60111,m=s?Symbol.for("react.forward_ref"):60112,p=s?Symbol.for("react.suspense"):60113,b=s?Symbol.for("react.suspense_list"):60120,x=s?Symbol.for("react.memo"):60115,g=s?Symbol.for("react.lazy"):60116,h=s?Symbol.for("react.block"):60121,y=s?Symbol.for("react.fundamental"):60117,v=s?Symbol.for("react.responder"):60118,j=s?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case u:case f:case o:case i:case n:case p:return e;default:switch(e=e&&e.$$typeof){case c:case m:case g:case x:case d:return e;default:return t}}case l:return t}}}function k(e){return w(e)===f}r.AsyncMode=u,r.ConcurrentMode=f,r.ContextConsumer=c,r.ContextProvider=d,r.Element=a,r.ForwardRef=m,r.Fragment=o,r.Lazy=g,r.Memo=x,r.Portal=l,r.Profiler=i,r.StrictMode=n,r.Suspense=p,r.isAsyncMode=function(e){return k(e)||w(e)===u},r.isConcurrentMode=k,r.isContextConsumer=function(e){return w(e)===c},r.isContextProvider=function(e){return w(e)===d},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},r.isForwardRef=function(e){return w(e)===m},r.isFragment=function(e){return w(e)===o},r.isLazy=function(e){return w(e)===g},r.isMemo=function(e){return w(e)===x},r.isPortal=function(e){return w(e)===l},r.isProfiler=function(e){return w(e)===i},r.isStrictMode=function(e){return w(e)===n},r.isSuspense=function(e){return w(e)===p},r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===i||e===n||e===p||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===x||e.$$typeof===d||e.$$typeof===c||e.$$typeof===m||e.$$typeof===y||e.$$typeof===v||e.$$typeof===j||e.$$typeof===h)},r.typeOf=w},49957,(e,t,r)=>{e.i(50461),t.exports=e.r(40563)}],75186,(e,t,r)=>{let s="/users/new";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(54021)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([s])})}]);
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,74954,e=>{var t=e.i(91398),r=e.i(91788);e.s(["f",0,({value:e,duration:s=300})=>{let[a,l]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let t,r;if(0===e)return void l(0);let a=n=>{t||(t=n);let i=Math.min((n-t)/s,1);l(Math.round((1-Math.pow(1-i,3))*e)),i<1&&(r=requestAnimationFrame(a))};return r=requestAnimationFrame(a),()=>{r&&cancelAnimationFrame(r)}},[e,s]),(0,t.jsx)("span",{children:a})}])},61494,e=>{var t=e.i(91398),r=e.i(41158),s=e.i(3828),a=e.i(69322);e.s(["f",0,({routeName:e=null,currentPageTitle:l=null,depth:n=null})=>{let i=(0,s.useRouter)(),{formatMessage:o}=(0,a.S)(),d={home:"home",products:"products",orders:"orders",users:"users",assortments:"assortments",filters:"filters",tokens:"tokens",quotations:"quotations",enrollments:"enrollments",activities:"activities",works:"work_queue",events:"events",currency:"currencies",country:"countries",language:"languages","delivery-provider":"delivery_providers","payment-provider":"payment_providers","warehousing-provider":"warehousing_provider",system:"system",account:"account",new:"new",edit:"edit"},c=i.asPath?.split("/")?.filter((e,t)=>i.asPath?.split("/")?.indexOf(e)===t);if(1===c.length)return null;let u="";n&&c.splice(n),e&&(c[c.length-1]=e);let f=c?.map(t=>{if(u+=`${t}/`,!t)return{name:o({id:"home",defaultMessage:"Home"}),path:"/"};let r=t?.split("?")[0],s=e?r:r.replace(/-/g," "),a=d[r];return{name:a?o({id:a,defaultMessage:s}):decodeURIComponent(s),path:u.replace(/.$/,"")}});return(0,t.jsx)("nav",{className:"mb-5 hidden sm:flex lg:mt-5 lg:mb-8","aria-label":"Breadcrumb",children:(0,t.jsx)("ol",{className:"flex items-center space-x-4",children:f?.map((e,s)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-center",children:[0!==s&&(0,t.jsx)("svg",{className:"mr-4 h-5 w-5 shrink-0 text-slate-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,t.jsx)(r.default,{href:e.path,className:"text-sm font-medium capitalize text-slate-500 dark:text-slate-400 dark:hover:text-slate-300 hover:text-slate-700 focus:outline-hidden focus:ring-2 focus:ring-slate-800 rounded-md px-1 py-1",children:s===f.length-1&&l?l:e.name})]})},e.path))})})}])},81013,e=>{var t=e.i(91398),r=e.i(72043);e.s(["f",0,({text:e,children:s,onClick:a,className:l="",disabled:n=!1,id:i="",variant:o="primary",size:d="md",type:c="button",loading:u=!1,icon:f,iconRight:m,fullWidth:p=!1,rounded:x="md",ariaLabel:h,...b})=>{let g=s||e,y=(f||m)&&g?"gap-2":"";return(0,t.jsx)("button",{id:i,type:c,disabled:n||u,onClick:a,"aria-label":h,className:(0,r.default)("inline-flex items-center justify-center font-medium shadow-xs focus:outline-hidden focus:ring-2 focus:ring-offset-2 transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-50",{xs:"px-2.5 py-1.5 text-xs h-6",sm:"px-3 py-2 text-sm h-8",md:"px-4 py-2 text-sm h-9",lg:"px-6 py-3 text-base h-11"}[d],{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}[x],{primary:"border border-slate-800 dark:border-slate-600 bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:ring-slate-800 dark:focus:ring-slate-400",secondary:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-700 dark:text-slate-200 hover:bg-slate-50 dark:hover:bg-slate-700 focus:ring-slate-500",tertiary:"border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700 focus:ring-slate-400",quaternary:"bg-transparent text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",danger:"border border-rose-500 dark:border-rose-400 bg-white dark:bg-slate-800 text-rose-600 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/10 focus:ring-rose-500",ghost:"bg-transparent border border-transparent text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",success:"border border-emerald-500 dark:border-emerald-400 bg-emerald-50 dark:bg-emerald-900/20 text-emerald-600 dark:text-emerald-400 hover:bg-emerald-100 dark:hover:bg-emerald-900/30 focus:ring-emerald-500",neutral:"border border-slate-300 dark:border-slate-600 bg-slate-100 dark:bg-slate-700 text-slate-600 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:ring-slate-400",input:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-900 dark:text-slate-100 hover:border-slate-400 dark:hover:border-slate-500 focus:ring-slate-500 focus:border-slate-500"}[o],y,{"w-full":p},l),...b,children:u?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),g]}):(0,t.jsxs)(t.Fragment,{children:[f,g,m]})})}])},31494,e=>{var t=e.i(91398),r=e.i(69322),s=e.i(84818),a=e.i(35065),l=e.i(64591);let n=({value:e})=>{let{formatDateTime:n}=(0,s.f)(),{formatMessage:i}=(0,r.S)();return(e=>{try{return new URL(e)}catch{return!1}})(e)?(e=>{try{let{pathname:t}=new URL(e),r=t?.split("."),s=`.${r[r.length-1]}`;return[".jpg",".jpeg",".png",".gif",".bmp"].includes(s)}catch{return!1}})(e)?(0,t.jsx)("div",{className:"ring-2 ring-offset-2 ring-slate-900 group block w-full aspect-w-10 aspect-h-7 rounded-lg bg-slate-50 overflow-hidden",children:(0,t.jsx)(a.f,{src:e,className:"relative h-10 w-10 rounded-full",width:100,height:100,alt:i({id:"image_not_available",defaultMessage:"Image not available"})})}):(0,t.jsx)("div",{className:"ml-4 shrink-0",children:(0,t.jsxs)("a",{href:e,className:"font-medium text-slate-900 hover:text-slate-800",target:"_blank",rel:"noreferrer",children:[new URL(e).host,"...",new URL(e).pathname]})}):(e=>{try{return"boolean"==typeof JSON.parse(e)}catch{return!1}})(e)?(0,t.jsx)(l.f,{disabled:!0,active:JSON.parse(e)}):!Number.isNaN(Date.parse(e))&&Number.isNaN(Number(e))?n(e,{dateStyle:"long",timeStyle:"short"}):(!Number.isNaN(e),e)},i=({value:e})=>(0,t.jsx)("h3",{className:"text-base font-medium",children:(0,t.jsx)("span",{className:"text-slate-900",children:e})}),o=e=>{let{data:r,parentKey:s}=e;if(!r)return null;let a=Object.keys(r),l=[];return void 0!==s&&l.push((0,t.jsx)(i,{value:s},s)),a.forEach(e=>{let a=r[e];if(Array.isArray(a))if(l.push((0,t.jsx)(i,{value:e},e)),a.every(e=>"string"==typeof e||"number"==typeof e))l.push((0,t.jsx)("div",{className:" p-2",children:a?.map(e=>(0,t.jsx)("span",{className:"inline-flex items-center rounded-md bg-slate-50 px-2.5 py-0.5 text-sm font-medium text-slate-800 ml-2",children:(0,t.jsx)(n,{value:e})},e))},e));else{let r=[];a.forEach((e,s)=>{r.push((0,t.jsx)("li",{className:"flex items-center text-slate-600 justify-between py-3 pl-3 pr-4 text-sm",children:o({data:e,parentKey:s})},s))}),l.push((0,t.jsx)("ul",{className:"divide-y divide-slate-200 rounded-md ",children:r},e))}else"object"==typeof a?l.push(o({data:a,parentKey:e})):void 0===s?l.push((0,t.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:py-5",children:[(0,t.jsx)("dt",{className:"text-sm font-medium text-slate-700",children:(0,t.jsx)(i,{value:e},e)}),(0,t.jsx)("dd",{className:"mt-1 text-sm text-slate-900 sm:col-span-2 sm:mt-0",children:(0,t.jsx)(n,{value:a})})]},e)):l.push((0,t.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:py-5 sm:px-6",children:[(0,t.jsx)("dt",{className:"text-sm font-medium text-slate-700",children:(0,t.jsx)(i,{value:e},e)}),(0,t.jsx)("dd",{className:"mt-1 text-sm text-slate-900 sm:col-span-2 sm:mt-0",children:(0,t.jsx)(n,{value:a})})]},e))}),(0,t.jsx)("div",{className:" bg-white px-4 py-5 ",children:(0,t.jsx)("dl",{children:l})})};e.s(["f",0,o])},78704,e=>{var t=e.i(91398),r=e.i(91788),s=e.i(12197);e.s(["f",0,({loading:e,hasMore:a,onLoadMore:l,children:n,threshold:i=200})=>{let o=(0,r.useRef)(null),d=(0,r.useCallback)(t=>{let[r]=t;r.isIntersecting&&a&&!e&&l()},[a,e,l]);return(0,r.useEffect)(()=>{let e=o.current;if(!e)return;let t=new IntersectionObserver(d,{rootMargin:`${i}px`});return t.observe(e),()=>{t.disconnect()}},[d,i]),(0,t.jsxs)(t.Fragment,{children:[n,(0,t.jsx)("div",{ref:o,className:"h-4"}),e&&(0,t.jsx)("div",{className:"flex justify-center py-4",children:(0,t.jsx)(s.f,{})})]})}])},94724,e=>{var t=e.i(91398),r=e.i(69322);e.s(["f",0,({children:e=null,totalRecords:s=null})=>{let{formatMessage:a}=(0,r.S)();return(0,t.jsxs)("div",{className:"mt-5",children:[null!==s?(0,t.jsx)("div",{className:"text-md text-slate-950 dark:text-slate-100 mb-3",children:a({id:"total_records",defaultMessage:"{total} records found"},{total:s??0})}):null,e&&(0,t.jsx)("div",{className:"flex items-center mt-10",children:(0,t.jsx)("h3",{className:"text-xs leading-6 text-slate-500 dark:text-slate-200",children:e})})]})}])},17644,e=>{var t=e.i(91398),r=e.i(58678),s=e.i(41158),a=e.i(69322),l=e.i(37369),n=e.i(81013);e.s(["f",0,({headerText:e=null,onEdit:i=null,onDelete:o=null,children:d=null,title:c=null,addPath:u=null,addButtonText:f=null})=>{let{formatMessage:m}=(0,a.S)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{children:(0,t.jsxs)("title",{children:["Unchained AdminUI - ",c||e," "]})}),(0,t.jsx)("div",{className:"flex gap-3 flex-wrap items-center justify-between",children:(0,t.jsxs)("div",{className:"flex items-center flex-wrap justify-between w-full gap-4",children:[e&&(0,t.jsx)("h2",{className:"text-2xl font-medium text-slate-900 dark:text-slate-300 sm:truncate sm:text-3xl lg:text-4xl",children:e}),(0,t.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[d,u&&(0,t.jsx)(s.default,{href:u,children:(0,t.jsx)(n.f,{variant:"secondary",icon:(0,t.jsx)(l.f,{className:"h-5 w-5"}),text:f||m({id:"add",defaultMessage:"Add"})})}),i&&(0,t.jsx)(n.f,{variant:"secondary",onClick:i,text:m({id:"edit",defaultMessage:"Edit"})}),o&&(0,t.jsx)(n.f,{variant:"danger",onClick:o,text:m({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},51128,e=>{var t=e.i(91398),r=e.i(69322),s=e.i(3828),a=e.i(20495),l=e.i(68835),n=e.i(65153),i=e.i(83147),o=e.i(73319);e.s(["f",0,({children:e,onSearchChange:d,defaultSearchValue:c,showTagFilter:u=!1,availableTagOptions:f=[]})=>{let{formatMessage:m}=(0,r.S)(),{query:p,push:x}=(0,s.useRouter)(),h=e=>{if((0,o.T)(e))x({query:(0,i._)(p,e?.join(","),"tags")});else{let{tags:e,...t}=p;x({query:(0,i._)(t)})}};return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"my-3 flex flex-col gap-3",children:(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start gap-3",children:[(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(a.f,{onInputChange:d,defaultValue:c})}),u&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 flex-1 sm:border-l sm:border-slate-300 sm:dark:border-slate-700 sm:pl-3",children:[(0,t.jsx)("div",{className:"max-w-xs",children:(0,t.jsx)(l.f,{buttonText:m({id:"apply",defaultMessage:"Apply"}),placeholder:m({id:"enter_tag",defaultMessage:"Enter tag..."}),tagList:p?.tags?.split(","),onChange:h,selectOptions:f,showTagsInline:!1})}),p?.tags?.split(",").filter(Boolean).length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:p?.tags?.split(",").filter(Boolean).map(e=>(0,t.jsx)(n.f,{text:e,color:"slate",onClick:()=>{let t=p?.tags?.split(",").filter(t=>t!==e);h(t.length>0?t:null)}},e))})]})]})}),e]})}])},60195,e=>{var t=e.i(91398),r=e.i(72043);e.s(["f",0,({documentationLabel:e,documentation:s=null,mainContent:a=null,sideComponents:l=null,className:n=null,children:i})=>(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:(0,r.default)("mt-5 lg:grid lg:grid-cols-3 lg:gap-6",n),children:[(0,t.jsx)("div",{className:"lg:col-span-1 mt-10 lg:mt-1",children:(0,t.jsxs)("div",{className:"px-4 sm:px-0",children:[(0,t.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",children:e}),(0,t.jsx)("div",{className:"mt-1 text-sm text-slate-600 dark:text-slate-500",children:s}),l]})}),(0,t.jsx)("div",{className:"lg:col-span-2 lg:mt-0",children:i||a})]})})])},41523,e=>{var t=e.i(91398),r=e.i(72043),s=e.i(3828),a=e.i(91788),l=e.i(69322);e.s(["f",0,({children:e,tabItems:n,defaultTab:i,updateRoute:o=!0})=>{let d=(0,s.useRouter)(),{tab:c=i}=d?.query||{},u=Array.isArray(c)?c[0]:c,{formatMessage:f}=(0,l.S)(),m=e=>{if(o){let{sort:t,...r}=d?.query||{};d.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:f({id:"select_tab",defaultMessage:"Select a tab"})}),(0,t.jsx)("select",{onChange:e=>m(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-slate-300 dark:border-slate-600 py-2 pl-3 pr-10 text-base capitalize focus:outline-none focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:border-slate-800 dark:focus:border-slate-400 sm:text-sm",value:u,children:n.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:n.filter(Boolean).map(e=>(0,t.jsx)("a",{id:e.id,tabIndex:0,onClick:()=>m(e.id),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),m(e.id))},className:(0,r.default)({"cursor-pointer rounded-lg border border-slate-300 dark:border-slate-600 bg-white text-slate-900 dark:text-slate-100 dark:bg-slate-900 shadow-sm dark:hover:border-slate-500 hover:border-slate-400 focus:outline-none focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:ring-offset-2 dark:focus:ring-offset-slate-900":u===e.id},"cursor-pointer relative whitespace-nowrap border border-slate-200 dark:border-slate-800 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-slate-800 dark:focus:ring-slate-400 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:u})})]})}])},64591,e=>{var t=e.i(91398),r=e.i(72043),s=e.i(3828),a=e.i(83147);e.s(["f",0,({toggleText:e="",toggleKey:l=null,onToggle:n=null,active:i=!1,className:o="",disabled:d=!1,...c})=>{let u=(0,s.useRouter)(),f=u?.query?.[l]==="true"||i;return(0,t.jsxs)("div",{className:(0,r.default)("",o),children:[(0,t.jsxs)("button",{id:l,disabled:d,type:"button",className:(0,r.default)("relative inline-flex h-3.5 w-9 shrink-0 cursor-pointer rounded-full border-1 border-transparent transition-all duration-200 ease-in-out focus:outline-hidden focus:ring-2 focus:ring-slate-400 focus:ring-offset-2",{"bg-slate-200 dark:bg-slate-700":!f,"bg-emerald-500 dark:bg-emerald-600 shadow-sm":f}),role:"switch",onClick:n||(()=>{let{skip:e,...t}=u.query;u.push({query:(0,a._)(t,!f,l)})}),"aria-checked":f?"true":"false",...c,children:[(0,t.jsx)("span",{className:"sr-only",children:e}),(0,t.jsxs)("span",{className:(0,r.default)("ml-0.5 pointer-events-none relative inline-block h-3 w-3 transform rounded-full bg-white shadow-sm ring-0 transition-all duration-200 ease-in-out",{"translate-x-5 shadow-md":f,"translate-x-0":!f}),children:[(0,t.jsx)("span",{className:(0,r.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-0 duration-100 ease-out":f,"opacity-100 duration-200 ease-in":!f}),"aria-hidden":"true",children:(0,t.jsx)("svg",{className:"h-3 w-3 text-slate-400",fill:"none",viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)("span",{className:(0,r.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-100 duration-200 ease-in":f,"opacity-0 duration-100 ease-out":!f}),"aria-hidden":"true",children:(0,t.jsx)("svg",{className:"h-3 w-3 text-emerald-500",fill:"currentColor",viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"})})})]})]}),(0,t.jsx)("span",{className:"ml-3",id:"annual-billing-label",children:(0,t.jsx)("span",{className:"text-sm font-medium text-slate-900 dark:text-slate-200",children:e})})]})}])},60513,75284,e=>{var t=e.i(91788),r=e.i(28401),s=e.i(69322),a=e.i(30086),l=e.i(66773),n=e.i(98926),i=e.i(63104),o=e.i(3828);e.s(["f",0,()=>{let[e,d]=(0,t.useState)(!1),c=(0,n.f)(),u=(0,o.useRouter)(),{addWork:f}=(0,a.f)(),{formatMessage:m}=(0,s.S)(),p=(0,t.useCallback)(async e=>{let{data:t}=await c.query({query:(0,i.k)(),variables:{workId:e},fetchPolicy:"network-only"});return t?.work??null},[c]);return{isExporting:e,exportCSV:(0,t.useCallback)(async({type:e,pollInterval:t=2e3,...s})=>{d(!0);try{let r=await f({type:l.i.BulkExport,input:{type:e,...s}}),a=r?.data?.addWork?._id;if(!a)throw Error("Failed to create export work");await new Promise((e,r)=>{let s=setInterval(async()=>{try{let t=await p(a);if(!t)throw Error("Work not found");(t.status===l.h.Success||t.status===l.h.Failed)&&(clearInterval(s),t.status===l.h.Success&&t.success?(u.push(`/exports?workId=${t._id}`),e(t)):r(t.error||Error("Export failed")))}catch(e){clearInterval(s),r(e)}},t)})}catch(e){return console.error("Export failed:",e),r.c.error(m({id:"export_failed",defaultMessage:"Export failed. Please try again."})),null}finally{d(!1)}},[f,p,u,m])}}],60513);var d=e.i(91398),c=e.i(69211),u=e.i(64127),f=e.i(98949),m=e.i(99160);e.s(["f",0,function({options:e,onSubmit:r,loading:a=!1,successMessage:l=""}){let{formatMessage:n}=(0,s.S)(),i=(0,t.useMemo)(()=>e.reduce((e,t)=>(e[t.key]=t.defaultChecked??!0,e),{}),[e]),o=async e=>(await r(e),{success:!0}),p=(0,f.f)({successMessage:l||n({id:"export_completed",defaultMessage:"Data exported successfully"}),submit:o,enableReinitialize:!0,initialValues:i});return(0,d.jsx)(c.f,{form:p,children:p.formik.isSubmitting?(0,d.jsxs)("div",{className:"flex items-center gap-3 p-4 mb-4 rounded-lg animate-pulse",children:[(0,d.jsx)("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),(0,d.jsx)("span",{className:"text-sm font-medium text-blue-700 dark:text-blue-300",children:n({id:"exporting_message",defaultMessage:"Generating your export files. This may take a moment..."})})]}):(0,d.jsxs)("fieldset",{disabled:a,style:{border:"none",padding:0},children:[(0,d.jsxs)("h3",{children:[" ",n({id:"export_options",defaultMessage:"Export options"})]}),e.map(e=>(0,d.jsx)(u.f,{name:e.key,label:e.label,hideLabel:!0,className:"mr-2 h-4 w-4 justify-between rounded-sm border-slate-300 dark:border-slate-600 bg-white text-slate-950 focus:ring-slate-800 lg:items-center",type:"checkbox"},e.key)),(0,d.jsx)(m.f,{label:n({id:"submit",defaultMessage:"Submit"}),disabled:a})]})})}],75284)},73319,e=>{let t=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["Q",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"C",0,t,"T",0,e=>!(!e||null==e||t(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},64127,e=>{var t=e.i(91398),r=e.i(72043),s=e.i(60741);e.s(["f",0,e=>{let{disabled:a,labelClassName:l,containerClassName:n,inputClassName:i,...o}=e,d=(0,s.f)({...e,type:"checkbox"});return(0,t.jsxs)("div",{className:(0,r.default)("",{"text-rose-600":!!d.error,checkbox:!0,disabled:d.disabled,required:d.required},n),children:[(0,t.jsx)("input",{checked:!!d.value,disabled:a,id:d.name,name:d.name,onChange:d.onChange,onBlur:d.onBlur,type:"checkbox",className:(0,r.default)("h-4 w-4 rounded-xs border-slate-300 dark:border-slate-600 bg-white dark:!bg-slate-800 text-indigo-600 dark:text-slate-200 focus:ring-slate-800",i,e.className),...o}),(0,t.jsx)("label",{htmlFor:d.name,className:(0,r.default)("text-sm text-slate-900 dark:text-slate-200",l,{"text-danger":!!d.error}),children:d.label})]})}])},99160,e=>{var t=e.i(91398),r=e.i(72043),s=e.i(38865),a=e.i(61898);e.s(["f",0,({label:e,disabled:l=!1,className:n="",hidden:i=!1,...o})=>{let d=(0,s.m)(),{...c}=o,u=Object.fromEntries(Object.keys(d.initialValues).map(e=>[e,d.getFieldMeta(e)])),{disabled:f}=(0,a.f)(),m=Object.values(u).reduce((e,{error:t,touched:r})=>e||t&&r,!1),p=l||f||d.isSubmitting||m,x=d.isSubmitting&&!m,h=(l||f||m)&&!d.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-slate-800 dark:focus:ring-slate-400",n,{"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-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent":!p,hidden:i}),"aria-label":e,type:"submit",value:e,disabled:p,...c})}])},45229,e=>{var t=e.i(91398),r=e.i(72043),s=e.i(82226),a=e.i(60741),l=e.i(29691);e.s(["f",0,({maxLength:e=0,validators:n=[],...i})=>{let o=(0,a.f)({validators:[...n,e&&(0,s.f)(e)],...i});return(0,t.jsx)(l.f,{...o,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-slate-800 shadow-xs",{"border-rose-700 placeholder:text-rose-500":!!o.error,"border-slate-300 placeholder-slate-400":!o.error}),disabled:o.disabled,id:o.name,name:o.name,onChange:o.onChange,onClick:e=>{e.stopPropagation()},onBlur:o.onBlur,placeholder:o.placeholder,autoComplete:o.autoComplete||"off",type:o.type||"text",value:o.value,autoFocus:o.autoFocus})})}])},30086,e=>{var t=e.i(59080),r=e.i(76204);let s=t.f`
|
|
2
|
-
mutation AddWork(
|
|
3
|
-
$type: WorkType!
|
|
4
|
-
$priority: Int! = 0
|
|
5
|
-
$input: JSON
|
|
6
|
-
$originalWorkId: ID
|
|
7
|
-
$scheduled: Timestamp
|
|
8
|
-
$retries: Int! = 20
|
|
9
|
-
) {
|
|
10
|
-
addWork(
|
|
11
|
-
type: $type
|
|
12
|
-
priority: $priority
|
|
13
|
-
input: $input
|
|
14
|
-
originalWorkId: $originalWorkId
|
|
15
|
-
scheduled: $scheduled
|
|
16
|
-
retries: $retries
|
|
17
|
-
) {
|
|
18
|
-
_id
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
`;e.s(["f",0,()=>{let[e]=(0,r.f)(s);return{addWork:async({type:t,priority:r,input:s,originalWorkId:a,scheduled:l=null,retries:n})=>e({variables:{type:t,priority:r,input:s,originalWorkId:a,scheduled:l,retries:n},refetchQueries:["WorkQueue"]})}}])},63104,e=>{var t=e.i(59080),r=e.i(32171),s=e.i(70693),a=e.i(94672);let l=(e="")=>t.f`
|
|
22
|
-
query Work($workId: ID!) {
|
|
23
|
-
work(workId: $workId) {
|
|
24
|
-
...WorkFragment
|
|
25
|
-
${e}
|
|
26
|
-
error
|
|
27
|
-
priority
|
|
28
|
-
worker
|
|
29
|
-
timeout
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
${a.f}
|
|
33
|
-
`;e.s(["k",0,l,"U",0,({workId:e=null,...t})=>{let{customProperties:a}=(0,s.f)(),{data:n,loading:i,error:o,previousData:d}=(0,r.f)(l(a?.Work),{skip:!e,variables:{workId:e},...t});return{work:n?.work||d?.work,loading:i,error:o}}])},76204,e=>{var t=e.i(24669),r=e.i(91788),s=e.i(30928),a=e.i(52006);let l=e.i(21953).f?r.useLayoutEffect:r.useEffect;var n=e.i(98926);function i(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["f",0,function(e,o){let d=(0,n.f)(o?.client),[c,u]=r.useState(()=>i(d)),f=r.useRef({result:c,mutationId:0,isMounted:!0,client:d,mutation:e,options:o});l(()=>{Object.assign(f.current,{client:d,options:o,mutation:e})});let m=r.useCallback((e={})=>{let{options:r,mutation:l}=f.current,n={...r,mutation:l},i=e.client||f.current.client,o="function"==typeof e.context?e.context(r?.context):e.context;!f.current.result.loading&&f.current.isMounted&&u(f.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:i});let d=++f.current.mutationId,c=(0,s.f)(n,{...e,context:o});return(0,a.f)(i.mutate(c).then(r=>{let{data:s,error:a}=r,l=e.onError||f.current.options?.onError;if(a&&l&&l(a,c),d===f.current.mutationId){let e={called:!0,loading:!1,data:s,error:a,client:i};f.current.isMounted&&!(0,t.f)(f.current.result,e)&&u(f.current.result=e)}let n=e.onCompleted||f.current.options?.onCompleted;return a||n?.(r.data,c),r},r=>{if(d===f.current.mutationId&&f.current.isMounted){let e={loading:!1,error:r,data:void 0,called:!0,client:i};(0,t.f)(f.current.result,e)||u(f.current.result=e)}let s=e.onError||f.current.options?.onError;throw s&&s(r,c),r}))},[]),p=r.useCallback(()=>{if(f.current.isMounted){let e=i(f.current.client);Object.assign(f.current,{mutationId:0,result:e}),u(e)}},[]);return r.useEffect(()=>{let e=f.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[m,{reset:p,...c}]}],76204)},76929,e=>{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",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{d:"M12 4.467c0-.405.262-.75.559-1.027.276-.257.441-.584.441-.94 0-.828-.895-1.5-2-1.5s-2 .672-2 1.5c0 .362.171.694.456.953.29.265.544.6.544.994a.968.968 0 0 1-1.024.974 39.655 39.655 0 0 1-3.014-.306.75.75 0 0 0-.847.847c.14.993.242 1.999.306 3.014A.968.968 0 0 1 4.447 10c-.393 0-.729-.253-.994-.544C3.194 9.17 2.862 9 2.5 9 1.672 9 1 9.895 1 11s.672 2 1.5 2c.356 0 .683-.165.94-.441.276-.297.622-.559 1.027-.559a.997.997 0 0 1 1.004 1.03 39.747 39.747 0 0 1-.319 3.734.75.75 0 0 0 .64.842c1.05.146 2.111.252 3.184.318A.97.97 0 0 0 10 16.948c0-.394-.254-.73-.545-.995C9.171 15.693 9 15.362 9 15c0-.828.895-1.5 2-1.5s2 .672 2 1.5c0 .356-.165.683-.441.94-.297.276-.559.622-.559 1.027a.998.998 0 0 0 1.03 1.005c1.337-.05 2.659-.162 3.961-.337a.75.75 0 0 0 .644-.644c.175-1.302.288-2.624.337-3.961A.998.998 0 0 0 16.967 12c-.405 0-.75.262-1.027.559-.257.276-.584.441-.94.441-.828 0-1.5-.895-1.5-2s.672-2 1.5-2c.362 0 .694.17.953.455.265.291.601.545.995.545a.97.97 0 0 0 .976-1.024 41.159 41.159 0 0 0-.318-3.184.75.75 0 0 0-.842-.64c-1.228.164-2.473.271-3.734.319A.997.997 0 0 1 12 4.467Z"}))});e.s(["f",0,r],76929)},37369,e=>{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:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["f",0,r],37369)},9356,e=>{var t=e.i(35113);e.s(["f",0,function(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,t.f)(e)))}],9356)},49543,e=>{var t=e.i(35113);e.s(["f",0,function(e,r){let s=(0,t.f)(e,r?.in);return s.setHours(0,0,0,0),s}])},35113,2848,98170,e=>{let t=Symbol.for("constructDateFrom");function r(e,r){return"function"==typeof e?e(r):e&&"object"==typeof e&&t in e?e[t](r):e instanceof Date?new e.constructor(r):new Date(r)}e.s(["C",0,t,"_",0,864e5,"r",0,36e5,"z",0,6e4,"A",0,6048e5,"k",0,1440,"d",0,43200,"l",0,525600],2848),e.s(["f",0,r],98170),e.s(["f",0,function(e,t){return r(t||e,e)}],35113)},34980,(e,t,r)=>{var s=e.r(49957),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function o(e){return s.isMemo(e)?n:i[e.$$typeof]||a}i[s.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[s.Memo]=n;var d=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,p=Object.prototype;t.exports=function e(t,r,s){if("string"!=typeof r){if(p){var a=m(r);a&&a!==p&&e(t,a,s)}var n=c(r);u&&(n=n.concat(u(r)));for(var i=o(t),x=o(r),h=0;h<n.length;++h){var b=n[h];if(!l[b]&&!(s&&s[b])&&!(x&&x[b])&&!(i&&i[b])){var g=f(r,b);try{d(t,b,g)}catch(e){}}}}return t}},40563,(e,t,r)=>{var s="function"==typeof Symbol&&Symbol.for,a=s?Symbol.for("react.element"):60103,l=s?Symbol.for("react.portal"):60106,n=s?Symbol.for("react.fragment"):60107,i=s?Symbol.for("react.strict_mode"):60108,o=s?Symbol.for("react.profiler"):60114,d=s?Symbol.for("react.provider"):60109,c=s?Symbol.for("react.context"):60110,u=s?Symbol.for("react.async_mode"):60111,f=s?Symbol.for("react.concurrent_mode"):60111,m=s?Symbol.for("react.forward_ref"):60112,p=s?Symbol.for("react.suspense"):60113,x=s?Symbol.for("react.suspense_list"):60120,h=s?Symbol.for("react.memo"):60115,b=s?Symbol.for("react.lazy"):60116,g=s?Symbol.for("react.block"):60121,y=s?Symbol.for("react.fundamental"):60117,v=s?Symbol.for("react.responder"):60118,k=s?Symbol.for("react.scope"):60119;function j(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case u:case f:case n:case o:case i:case p:return e;default:switch(e=e&&e.$$typeof){case c:case m:case b:case h:case d:return e;default:return t}}case l:return t}}}function w(e){return j(e)===f}r.AsyncMode=u,r.ConcurrentMode=f,r.ContextConsumer=c,r.ContextProvider=d,r.Element=a,r.ForwardRef=m,r.Fragment=n,r.Lazy=b,r.Memo=h,r.Portal=l,r.Profiler=o,r.StrictMode=i,r.Suspense=p,r.isAsyncMode=function(e){return w(e)||j(e)===u},r.isConcurrentMode=w,r.isContextConsumer=function(e){return j(e)===c},r.isContextProvider=function(e){return j(e)===d},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},r.isForwardRef=function(e){return j(e)===m},r.isFragment=function(e){return j(e)===n},r.isLazy=function(e){return j(e)===b},r.isMemo=function(e){return j(e)===h},r.isPortal=function(e){return j(e)===l},r.isProfiler=function(e){return j(e)===o},r.isStrictMode=function(e){return j(e)===i},r.isSuspense=function(e){return j(e)===p},r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===f||e===o||e===i||e===p||e===x||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===h||e.$$typeof===d||e.$$typeof===c||e.$$typeof===m||e.$$typeof===y||e.$$typeof===v||e.$$typeof===k||e.$$typeof===g)},r.typeOf=j},49957,(e,t,r)=>{e.i(50461),t.exports=e.r(40563)}])})();
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[10576,e=>{e.s(["f",0,e=>{if(window.atob&&Uint8Array){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=t+"=".repeat((4-t.length%4)%4),s=window.atob(r),a=s.length,n=new Uint8Array(a);for(let e=0;e<a;e+=1)n[e]=s.charCodeAt(e);return n.buffer}throw Error("The atob and Uint8Array methods are not available")}])},73319,e=>{let t=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["Q",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"C",0,t,"T",0,e=>!(!e||null==e||t(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},72094,e=>{var t=e.i(91398),r=e.i(91788),s=e.i(61898);let a=(e,t="")=>Object.fromEntries(Object.entries(e).reduce((e=[],[s,n])=>"string"==typeof n||r.default.isValidElement(n)?[...e,[`${t}${s}`,n]]:[...Object.entries(a(Object.assign({},...n),`${t}${s}.`)),...e],[])),n=({submitError:e="",fieldErrors:s=[]})=>(0,t.jsx)("div",{className:"my-2 mb-5 text-rose-700",children:(0,t.jsxs)("ul",{className:"space-y-1",children:[e&&(0,t.jsx)("li",{className:"disabled",children:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})},"submitError"),Object.entries(a(s)).map(([e,s])=>(0,t.jsx)("li",{className:"disabled",children:(0,t.jsx)("button",{type:"button",className:"no-button text-rose-600 dark:text-rose-400","aria-label":"Error button",onClick:()=>{let t=document.getElementById(e);t&&t.focus()},children:r.default.isValidElement(s)?s:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:s}})})},e))]})});e.s(["f",0,({displayFieldErrors:e=!1})=>{let{submitError:r,formik:a}=(0,s.f)(),o=a?.errors;return(r||e)&&(0,t.jsx)(n,{submitError:r,fieldErrors:e&&o})}])},68095,e=>{var t=e.i(91398),r=e.i(72043),s=e.i(91788),a=e.i(45229);e.s(["f",0,({autoComplete:e="on",...n})=>{let[o,l]=(0,s.useState)(!1),i=e=>{e.preventDefault(),l(!o)};return(0,t.jsxs)("div",{className:(0,r.default)("relative",n.className),children:[(0,t.jsx)(a.f,{autoComplete:e||"on",name:"password",...n,type:o?"text":"password"}),(0,t.jsx)("span",{role:"button",tabIndex:-1,"aria-label":"toggle password visibility",className:"absolute translate-y-[-137%] outline-hidden block right-3",onClick:i,onKeyUp:i,children:o?(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 stroke-slate-700",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]}):(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 stroke-slate-700",fill:"none",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})})})]})}])},45229,e=>{var t=e.i(91398),r=e.i(72043),s=e.i(82226),a=e.i(60741),n=e.i(29691);e.s(["f",0,({maxLength:e=0,validators:o=[],...l})=>{let i=(0,a.f)({validators:[...o,e&&(0,s.f)(e)],...l});return(0,t.jsx)(n.f,{...i,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-slate-800 shadow-xs",{"border-rose-700 placeholder:text-rose-500":!!i.error,"border-slate-300 placeholder-slate-400":!i.error}),disabled:i.disabled,id:i.name,name:i.name,onChange:i.onChange,onClick:e=>{e.stopPropagation()},onBlur:i.onBlur,placeholder:i.placeholder,autoComplete:i.autoComplete||"off",type:i.type||"text",value:i.value,autoFocus:i.autoFocus})})}])},95636,e=>{var t=e.i(91398),r=e.i(41158),s=e.i(3828),a=e.i(69322),n=e.i(28401),o=e.i(5505),l=e.i(69211),i=e.i(72094),u=e.i(68095),c=e.i(45229),d=e.i(98949),f=e.i(10576),p=e.i(59080),m=e.i(76204);let g=p.f`
|
|
2
|
-
mutation CreateWebAuthnCredentialRequestOptions($username: String) {
|
|
3
|
-
createWebAuthnCredentialRequestOptions(username: $username)
|
|
4
|
-
}
|
|
5
|
-
`,h=e=>{let t=e instanceof Uint8Array?e:new Uint8Array(e);return window.btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},y=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z]{2,})+$/i,b=p.f`
|
|
6
|
-
mutation LoginWithPassword(
|
|
7
|
-
$username: String
|
|
8
|
-
$email: String
|
|
9
|
-
$password: String!
|
|
10
|
-
) {
|
|
11
|
-
loginWithPassword(username: $username, email: $email, password: $password) {
|
|
12
|
-
_id
|
|
13
|
-
tokenExpires
|
|
14
|
-
user {
|
|
15
|
-
_id
|
|
16
|
-
allowedActions
|
|
17
|
-
roles
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
`,x=p.f`
|
|
22
|
-
mutation LoginWithWebAuthn($webAuthnPublicKeyCredentials: JSON!) {
|
|
23
|
-
loginWithWebAuthn(
|
|
24
|
-
webAuthnPublicKeyCredentials: $webAuthnPublicKeyCredentials
|
|
25
|
-
) {
|
|
26
|
-
_id
|
|
27
|
-
tokenExpires
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
`;var w=e.i(91788),v=e.i(70693);let j=({step:e})=>{let{formatMessage:s}=(0,a.S)();return 2===e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.f,{id:"password",name:"password",autoComplete:"current-password",autoFocus:!0,required:!0,label:s({id:"password",defaultMessage:"Password"})}),(0,t.jsx)("div",{className:"my-1 text-sm sm:my-0 text-left",children:(0,t.jsx)(r.default,{href:"/account/forgot-password",className:"font-medium text-slate-950 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-300",children:s({id:"forget_password",defaultMessage:"Forgot your password?"})})})]}):(0,t.jsx)(c.f,{id:"username-or-email",name:"usernameOrEmail",className:"mt-1",type:"text",autoComplete:"on",autoFocus:!0,required:!0,label:s({id:"username_or_email",defaultMessage:"Username/Email"})})},k=()=>{let e=(0,a.S)(),{logInWithPassword:u}=(()=>{let[e,{client:t}]=(0,m.f)(b,{errorPolicy:"all"});return{logInWithPassword:async({usernameOrEmail:r,password:s})=>{let a={username:null,email:null,password:null};"string"==typeof r&&y.test(r.trim())?a.email=r?.trim():a.username=r,a.password=s;let n=await e({variables:a,awaitRefetchQueries:!0});return n?.data?.loginWithPassword&&await t.resetStore(),n}}})(),{loginWithWebAuthn:c}=(()=>{let[e,{client:t}]=(0,m.f)(x);return{loginWithWebAuthn:async({webAuthnPublicKeyCredentials:r})=>{let s=await e({variables:{webAuthnPublicKeyCredentials:r},awaitRefetchQueries:!0});return await t.resetStore(),s}}})(),{singleSignOnURL:p}=(0,v.f)(),[k,C]=(0,w.useState)(1),S=(0,s.useRouter)(),$=(0,w.useCallback)(()=>{C(k+1)},[k]),_=(0,w.useCallback)(()=>{C(k-1)},[k]),{generateLoginCredentials:M}=(()=>{let{createWebAuthnCredentialRequestOptions:e}=(()=>{let[e]=(0,m.f)(g);return{createWebAuthnCredentialRequestOptions:async({username:t})=>e({variables:{username:t}})}})();return{generateLoginCredentials:async({username:t})=>{let{data:r}=await e({username:t}),s=r?.createWebAuthnCredentialRequestOptions;if(!s?.allowCredentials?.length)return null;s.challenge=(0,f.f)(s.challenge),s.allowCredentials=s.allowCredentials?.map(({id:e,...t})=>({id:(0,f.f)(e),...t}))||[];let a=await navigator.credentials.get({publicKey:s}),n=h(a.response.authenticatorData),o=h(a.response.signature),l=a.response.userHandle?h(a.response.userHandle):h(new TextEncoder().encode(t)),i=h(a.response.clientDataJSON),u=h(a.rawId);return{requestId:s.requestId,id:u,response:{clientDataJSON:i,authenticatorData:n,signature:o,userHandle:l}}}}})(),{formatMessage:N}=(0,a.S)(),P=async e=>{let t=await M({username:e});if(t){let{data:e,error:r}=await c({webAuthnPublicKeyCredentials:t});if(e&&e?.loginWithWebAuthn)return{success:!0,error:r}}return{success:!1,error:null}},A=async({usernameOrEmail:e,password:t})=>{if(1===k){let{success:t,error:r}=await P(e);if(r)return{success:!0,error:r};t||$()}if(2===k){let{data:r,error:s}=await u({usernameOrEmail:e,password:t});if(!s){let{_id:e}=r.loginWithPassword;return{success:!!e,...r.loginWithPassword}}if(!s?.message?.includes("2FA code required"))return{success:!1,error:s};$()}if(3===k){let{data:r,error:s}=await u({usernameOrEmail:e,password:t});if(!s){let{_id:e}=r.loginWithPassword;return{success:!!e,...r.loginWithPassword}}return{success:!1,error:s}}return{success:!1}},O=async(e,t)=>{let r=t?.username||t?.displayName||t?.profile?.displayName||"there";return n.c.success(N({id:"welcome_user",defaultMessage:"Welcome back, {name}!"},{name:r})),S.push("/"),!0},E=(0,d.f)({submit:A,onSubmitSuccess:O,getSubmitErrorMessage:e=>e?.message?.includes("Invalid credentials")?N({id:"invalid_credential_error",defaultMessage:"Invalid credential, please try again"}):e?.message?.toLowerCase().includes("no password set")?N({id:"user_password_not_set",defaultMessage:"User password not set"}):e?.message?.toLowerCase().includes("is not valid json")?N({id:"connection_to_server_error",defaultMessage:"Currently not connected to unchained engine, please check your connection to server and try again."}):"",initialValues:{usernameOrEmail:null,password:null}});return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"flex min-h-screen items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"w-full max-w-md space-y-4 text-center",children:[(0,t.jsx)("div",{children:(0,t.jsx)("h2",{className:"text-center text-3xl text-slate-900 dark:text-slate-200",children:N({id:"login_header",defaultMessage:"Log in to your account"})})}),(0,t.jsx)(o.U,{children:(0,t.jsxs)(l.f,{form:E,className:"space-y-6 px-4 pb-5 pt-3 sm:rounded-lg sm:px-10",children:[(0,t.jsx)(j,{step:k}),(0,t.jsx)(i.f,{}),(0,t.jsxs)("div",{className:"flex items-center gap-4 mt-4",children:[1!==k&&(0,t.jsxs)("button",{type:"button",id:"previous-button",name:"previous-button",onClick:_,className:"group relative flex w-full justify-center rounded-md border border-slate-300 bg-slate-100 dark:bg-slate-700 dark:border-slate-600 py-2 px-4 text-sm font-medium text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:outline-hidden focus:ring-2 focus:ring-slate-500 dark:focus:ring-slate-400 focus:ring-offset-2",children:[(0,t.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3"}),N({id:"previous",defaultMessage:"Previous"})]}),(0,t.jsxs)("button",{type:"submit",id:"submit",disabled:!E.formik.isValid,name:"submit",className:"group relative flex w-full justify-center rounded-md border border-transparent bg-slate-800 dark:bg-slate-600 py-2 px-4 text-sm font-medium text-white hover:bg-slate-950 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:ring-offset-2",children:[(0,t.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-white group-hover:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})})}),N({id:"continue",defaultMessage:"Continue"})]}),p&&2!==k&&(0,t.jsxs)("a",{type:"button",href:p,className:"group relative flex w-full justify-center rounded-md border border-transparent bg-slate-800 dark:bg-slate-600 py-2 px-4 text-sm font-medium text-white hover:bg-slate-950 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:ring-offset-2",children:[(0,t.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-white group-hover:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})})}),N({id:"continue_with_sso",defaultMessage:"Login with SSO"})]})]}),(0,t.jsxs)("div",{className:"text-sm text-slate-400 dark:text-slate-200",children:[N({id:"create_new_account",defaultMessage:"Create new account?"}),(0,t.jsx)(r.default,{href:"/sign-up",className:"ml-2 font-medium text-slate-950 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-400",children:e.formatMessage({id:"sign_up",defaultMessage:"Sign up"})})]})]})})]})})})},C=()=>(0,t.jsx)(k,{});C.getLayout=e=>e,e.s(["default",0,C],95636)},76204,e=>{var t=e.i(24669),r=e.i(91788),s=e.i(30928),a=e.i(52006);let n=e.i(21953).f?r.useLayoutEffect:r.useEffect;var o=e.i(98926);function l(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["f",0,function(e,i){let u=(0,o.f)(i?.client),[c,d]=r.useState(()=>l(u)),f=r.useRef({result:c,mutationId:0,isMounted:!0,client:u,mutation:e,options:i});n(()=>{Object.assign(f.current,{client:u,options:i,mutation:e})});let p=r.useCallback((e={})=>{let{options:r,mutation:n}=f.current,o={...r,mutation:n},l=e.client||f.current.client,i="function"==typeof e.context?e.context(r?.context):e.context;!f.current.result.loading&&f.current.isMounted&&d(f.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:l});let u=++f.current.mutationId,c=(0,s.f)(o,{...e,context:i});return(0,a.f)(l.mutate(c).then(r=>{let{data:s,error:a}=r,n=e.onError||f.current.options?.onError;if(a&&n&&n(a,c),u===f.current.mutationId){let e={called:!0,loading:!1,data:s,error:a,client:l};f.current.isMounted&&!(0,t.f)(f.current.result,e)&&d(f.current.result=e)}let o=e.onCompleted||f.current.options?.onCompleted;return a||o?.(r.data,c),r},r=>{if(u===f.current.mutationId&&f.current.isMounted){let e={loading:!1,error:r,data:void 0,called:!0,client:l};(0,t.f)(f.current.result,e)||d(f.current.result=e)}let s=e.onError||f.current.options?.onError;throw s&&s(r,c),r}))},[]),m=r.useCallback(()=>{if(f.current.isMounted){let e=l(f.current.client);Object.assign(f.current,{mutationId:0,result:e}),d(e)}},[]);return r.useEffect(()=>{let e=f.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[p,{reset:m,...c}]}],76204)},9356,e=>{var t=e.i(35113);e.s(["f",0,function(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,t.f)(e)))}],9356)},49543,e=>{var t=e.i(35113);e.s(["f",0,function(e,r){let s=(0,t.f)(e,r?.in);return s.setHours(0,0,0,0),s}])},35113,2848,98170,e=>{let t=Symbol.for("constructDateFrom");function r(e,r){return"function"==typeof e?e(r):e&&"object"==typeof e&&t in e?e[t](r):e instanceof Date?new e.constructor(r):new Date(r)}e.s(["C",0,t,"_",0,864e5,"r",0,36e5,"z",0,6e4,"A",0,6048e5,"k",0,1440,"d",0,43200,"l",0,525600],2848),e.s(["f",0,r],98170),e.s(["f",0,function(e,t){return r(t||e,e)}],35113)},34980,(e,t,r)=>{var s=e.r(49957),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function i(e){return s.isMemo(e)?o:l[e.$$typeof]||a}l[s.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[s.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;t.exports=function e(t,r,s){if("string"!=typeof r){if(m){var a=p(r);a&&a!==m&&e(t,a,s)}var o=c(r);d&&(o=o.concat(d(r)));for(var l=i(t),g=i(r),h=0;h<o.length;++h){var y=o[h];if(!n[y]&&!(s&&s[y])&&!(g&&g[y])&&!(l&&l[y])){var b=f(r,y);try{u(t,y,b)}catch(e){}}}}return t}},40563,(e,t,r)=>{var s="function"==typeof Symbol&&Symbol.for,a=s?Symbol.for("react.element"):60103,n=s?Symbol.for("react.portal"):60106,o=s?Symbol.for("react.fragment"):60107,l=s?Symbol.for("react.strict_mode"):60108,i=s?Symbol.for("react.profiler"):60114,u=s?Symbol.for("react.provider"):60109,c=s?Symbol.for("react.context"):60110,d=s?Symbol.for("react.async_mode"):60111,f=s?Symbol.for("react.concurrent_mode"):60111,p=s?Symbol.for("react.forward_ref"):60112,m=s?Symbol.for("react.suspense"):60113,g=s?Symbol.for("react.suspense_list"):60120,h=s?Symbol.for("react.memo"):60115,y=s?Symbol.for("react.lazy"):60116,b=s?Symbol.for("react.block"):60121,x=s?Symbol.for("react.fundamental"):60117,w=s?Symbol.for("react.responder"):60118,v=s?Symbol.for("react.scope"):60119;function j(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case d:case f:case o:case i:case l:case m:return e;default:switch(e=e&&e.$$typeof){case c:case p:case y:case h:case u:return e;default:return t}}case n:return t}}}function k(e){return j(e)===f}r.AsyncMode=d,r.ConcurrentMode=f,r.ContextConsumer=c,r.ContextProvider=u,r.Element=a,r.ForwardRef=p,r.Fragment=o,r.Lazy=y,r.Memo=h,r.Portal=n,r.Profiler=i,r.StrictMode=l,r.Suspense=m,r.isAsyncMode=function(e){return k(e)||j(e)===d},r.isConcurrentMode=k,r.isContextConsumer=function(e){return j(e)===c},r.isContextProvider=function(e){return j(e)===u},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},r.isForwardRef=function(e){return j(e)===p},r.isFragment=function(e){return j(e)===o},r.isLazy=function(e){return j(e)===y},r.isMemo=function(e){return j(e)===h},r.isPortal=function(e){return j(e)===n},r.isProfiler=function(e){return j(e)===i},r.isStrictMode=function(e){return j(e)===l},r.isSuspense=function(e){return j(e)===m},r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===i||e===l||e===m||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===h||e.$$typeof===u||e.$$typeof===c||e.$$typeof===p||e.$$typeof===x||e.$$typeof===w||e.$$typeof===v||e.$$typeof===b)},r.typeOf=j},49957,(e,t,r)=>{e.i(50461),t.exports=e.r(40563)}],96826,(e,t,r)=>{let s="/log-in";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(95636)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([s])})}]);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
__turbopack_load_page_chunks__("/_app", [
|
|
2
|
-
"static/chunks/2ajr0rk0_yax6.js",
|
|
3
|
-
"static/chunks/1zyhzessv0wtg.js",
|
|
4
|
-
"static/chunks/182l1mlbf0glb.js",
|
|
5
|
-
"static/chunks/25frktmrq-xu0.js",
|
|
6
|
-
"static/chunks/2-pl31kdikt3k.js",
|
|
7
|
-
"static/chunks/2adglo0sf0jcg.js",
|
|
8
|
-
"static/chunks/3zmmdm68s05-t.js",
|
|
9
|
-
"static/chunks/33_-2ne9ecvay.js",
|
|
10
|
-
"static/chunks/170d-jbu8ilzu.js",
|
|
11
|
-
"static/chunks/1epju6xepfqtq.js",
|
|
12
|
-
"static/chunks/3fqonijzsxy8u.js",
|
|
13
|
-
"static/chunks/3zw4-oie-f7_0.js",
|
|
14
|
-
"static/chunks/2xixk0t9e9mnw.js",
|
|
15
|
-
"static/chunks/0zh311lu9jf2x.js",
|
|
16
|
-
"static/chunks/2bh2dv7j9m8c8.css",
|
|
17
|
-
"static/chunks/turbopack-2c3mg3r-05n1w.js"
|
|
18
|
-
])
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,1880,t=>{t.s(["U",0,(t={})=>{let{_id:e,texts:n}=t||{};return n||e?`${n?.slug?.split("/").join("")||""}_id_${e}`:null},"P",0,t=>{if(!t)return null;let[e]=t?.split("_id_")||[];return e},"Q",0,t=>{if(!t)return null;let e=t?.split("_id_");return e?.pop()}])},96015,t=>{var e=t.i(91398),n=t.i(72043),i=t.i(68835),r=t.i(60741),l=t.i(82226),o=t.i(29691);t.s(["f",0,({buttonText:t="",validators:f=[],selectOptions:a=[],...c})=>{let u=(0,r.f)({validators:[...f,(0,l.z)(c?.required)],label:"Tags",...c});return(0,e.jsx)(o.f,{...u,children:(0,e.jsx)(i.f,{disabled:u.disabled,id:u.id,name:u.name,className:(0,n.default)({"border-rose-300":!!u.error}),onChange:t=>u.setValue(t),placeholder:u.placeholder,tagList:u.value,buttonText:t,selectOptions:a})})}])},95963,32572,36394,t=>{let e,n=["top","right","bottom","left"],i=n.reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]),r=Math.min,l=Math.max,o=Math.round,f=Math.floor,a=t=>({x:t,y:t}),c={left:"right",right:"left",bottom:"top",top:"bottom"};function u(t,e,n){return l(t,r(e,n))}function s(t,e){return"function"==typeof t?t(e):t}function d(t){return t.split("-")[0]}function h(t){return t.split("-")[1]}function m(t){return"x"===t?"y":"x"}function p(t){return"y"===t?"height":"width"}function g(t){let e=t[0];return"t"===e||"b"===e?"y":"x"}function w(t){return m(g(t))}function v(t,e,n){void 0===n&&(n=!1);let i=h(t),r=w(t),l=p(r),o="x"===r?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[l]>e.floating[l]&&(o=O(o)),[o,O(o)]}function y(t){let e=O(t);return[x(t),e,x(e)]}function x(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}let b=["left","right"],R=["right","left"],T=["top","bottom"],L=["bottom","top"];function A(t,e,n,i){let r=h(t),l=function(t,e,n){switch(t){case"top":case"bottom":if(n)return e?R:b;return e?b:R;case"left":case"right":return e?T:L;default:return[]}}(d(t),"start"===n,i);return r&&(l=l.map(t=>t+"-"+r),e&&(l=l.concat(l.map(x)))),l}function O(t){let e=d(t);return c[e]+t.slice(e.length)}function E(t){var e,n,i,r;return"number"!=typeof t?{top:null!=(e=t.top)?e:0,right:null!=(n=t.right)?n:0,bottom:null!=(i=t.bottom)?i:0,left:null!=(r=t.left)?r:0}:{top:t,right:t,bottom:t,left:t}}function C(t){let{x:e,y:n,width:i,height:r}=t;return{width:i,height:r,top:n,left:e,right:e+i,bottom:n+r,x:e,y:n}}function P(t,e,n){let i,{reference:r,floating:l}=t,o=g(e),f=w(e),a=p(f),c=d(e),u=r.x+r.width/2-l.width/2,s=r.y+r.height/2-l.height/2,m=r[a]/2-l[a]/2;switch(c){case"top":i={x:u,y:r.y-l.height};break;case"bottom":i={x:u,y:r.y+r.height};break;case"right":i={x:r.x+r.width,y:s};break;case"left":i={x:r.x-l.width,y:s};break;default:i={x:r.x,y:r.y}}let v=h(e);return v&&(i[f]+=m*("end"===v?1:-1)*(n&&"y"===o?-1:1)),i}async function S(t,e){var n;void 0===e&&(e={});let{x:i,y:r,platform:l,rects:o,elements:f,strategy:a}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=s(e,t),p=E(m),g=f[h?"floating"===d?"reference":"floating":d],w=C(await l.getClippingRect({element:null==(n=await (null==l.isElement?void 0:l.isElement(g)))||n?g:g.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(f.floating)),boundary:c,rootBoundary:u,strategy:a})),v="floating"===d?{x:i,y:r,width:o.floating.width,height:o.floating.height}:o.reference,y=await (null==l.getOffsetParent?void 0:l.getOffsetParent(f.floating)),x=await (null==l.isElement?void 0:l.isElement(y))&&await (null==l.getScale?void 0:l.getScale(y))||{x:1,y:1},b=C(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:v,offsetParent:y,strategy:a}):v);return{top:(w.top-b.top+p.top)/x.y,bottom:(b.bottom-w.bottom+p.bottom)/x.y,left:(w.left-b.left+p.left)/x.x,right:(b.right-w.right+p.right)/x.x}}t.s(["O",0,u,"I",0,a,"h",0,s,"w",0,f,"R",0,h,"i",0,w,"N",0,v,"T",0,p,"P",0,y,"o",0,x,"J",0,m,"K",0,A,"t",0,O,"j",0,E,"m",0,d,"$",0,g,"y",0,l,"u",0,r,"Z",0,i,"_",0,C,"H",0,o,"M",0,n],32572);let D=async(t,e,n)=>{let{placement:i="bottom",strategy:r="absolute",middleware:l=[],platform:o}=n,f=o.detectOverflow?o:{...o,detectOverflow:S},a=await (null==o.isRTL?void 0:o.isRTL(e)),c=await o.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:s}=P(c,i,a),d=i,h=0,m={};for(let n=0;n<l.length;n++){let p=l[n];if(!p)continue;let{name:g,fn:w}=p,{x:v,y:y,data:x,reset:b}=await w({x:u,y:s,initialPlacement:i,placement:d,strategy:r,middlewareData:m,rects:c,platform:f,elements:{reference:t,floating:e}});u=null!=v?v:u,s=null!=y?y:s,m[g]={...m[g],...x},b&&h<50&&(h++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(c=!0===b.rects?await o.getElementRects({reference:t,floating:e,strategy:r}):b.rects),{x:u,y:s}=P(c,d,a)),n=-1)}return{x:u,y:s,placement:d,strategy:r,middlewareData:m}};function H(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function F(t){return n.some(e=>t[e]>=0)}function W(t){let e=r(...t.map(t=>t.left)),n=r(...t.map(t=>t.top));return{x:e,y:n,width:l(...t.map(t=>t.right))-e,height:l(...t.map(t=>t.bottom))-n}}let V=new Set(["left","top"]);async function _(t,e){let{placement:n,platform:i,elements:r}=t,l=await (null==i.isRTL?void 0:i.isRTL(r.floating)),o=d(n),f=h(n),a="y"===g(n),c=V.has(o)?-1:1,u=l&&a?-1:1,m=s(e,t),{mainAxis:p,crossAxis:w,alignmentAxis:v}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return f&&"number"==typeof v&&(w="end"===f?-1*v:v),a?{x:w*u,y:p*c}:{x:p*c,y:w*u}}function k(){return"u">typeof window}function B(t){return N(t)?(t.nodeName||"").toLowerCase():"#document"}function M(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function z(t){var e;return null==(e=(N(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function N(t){return!!k()&&(t instanceof Node||t instanceof M(t).Node)}function j(t){return!!k()&&(t instanceof Element||t instanceof M(t).Element)}function $(t){return!!k()&&(t instanceof HTMLElement||t instanceof M(t).HTMLElement)}function I(t){return!(!k()||"u"<typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof M(t).ShadowRoot)}function q(t){let{overflow:e,overflowX:n,overflowY:i,display:r}=te(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&"inline"!==r&&"contents"!==r}function K(t){return/^(table|td|th)$/.test(B(t))}function U(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}let G=/transform|translate|scale|rotate|perspective|filter/,J=/paint|layout|strict|content/,Q=t=>!!t&&"none"!==t;function X(t){let e=j(t)?te(t):t;return Q(e.transform)||Q(e.translate)||Q(e.scale)||Q(e.rotate)||Q(e.perspective)||!Y()&&(Q(e.backdropFilter)||Q(e.filter))||G.test(e.willChange||"")||J.test(e.contain||"")}function Z(t){let e=ti(t);for(;$(e)&&!tt(e);){if(X(e))return e;if(U(e))break;e=ti(e)}return null}function Y(){return null==e&&(e="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),e}function tt(t){return/^(html|body|#document)$/.test(B(t))}function te(t){return M(t).getComputedStyle(t)}function tn(t){return j(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ti(t){if("html"===B(t))return t;let e=t.assignedSlot||t.parentNode||I(t)&&t.host||z(t);return I(e)?e.host:e}function tr(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);let r=function t(e){let n=ti(e);return tt(n)?(e.ownerDocument||e).body:$(n)&&q(n)?n:t(n)}(t),l=r===(null==(i=t.ownerDocument)?void 0:i.body),o=M(r);if(!l)return e.concat(r,tr(r,[],n));{let t=tl(o);return e.concat(o,o.visualViewport||[],q(r)?r:[],t&&n?tr(t):[])}}function tl(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function to(t){let e=te(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,r=$(t),l=r?t.offsetWidth:n,f=r?t.offsetHeight:i,a=o(n)!==l||o(i)!==f;return a&&(n=l,i=f),{width:n,height:i,$:a}}function tf(t){return j(t)?t:t.contextElement}function ta(t){let e=tf(t);if(!$(e))return a(1);let n=e.getBoundingClientRect(),{width:i,height:r,$:l}=to(e),f=(l?o(n.width):n.width)/i,c=(l?o(n.height):n.height)/r;return f&&Number.isFinite(f)||(f=1),c&&Number.isFinite(c)||(c=1),{x:f,y:c}}t.s(["X",0,te,"f",0,Z,"I",0,z,"w",0,tl,"A",0,B,"Q",0,tn,"G",0,tr,"J",0,ti,"K",0,M,"e",0,X,"m",0,j,"E",0,$,"Z",0,tt,"B",0,q,"R",0,I,"S",0,K,"D",0,U,"i",0,Y],36394);let tc=a(0);function tu(t){let e=M(t);return Y()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:tc}function ts(t,e,n,i){var r;void 0===e&&(e=!1),void 0===n&&(n=!1);let l=t.getBoundingClientRect(),o=tf(t),f=a(1);e&&(i?j(i)&&(f=ta(i)):f=ta(t));let c=(void 0===(r=n)&&(r=!1),i&&r&&i===M(o))?tu(o):a(0),u=(l.left+c.x)/f.x,s=(l.top+c.y)/f.y,d=l.width/f.x,h=l.height/f.y;if(o&&i){let t=M(o),e=j(i)?M(i):i,n=t,r=tl(n);for(;r&&e!==n;){let t=ta(r),e=r.getBoundingClientRect(),i=te(r),l=e.left+(r.clientLeft+parseFloat(i.paddingLeft))*t.x,o=e.top+(r.clientTop+parseFloat(i.paddingTop))*t.y;u*=t.x,s*=t.y,d*=t.x,h*=t.y,u+=l,s+=o,r=tl(n=M(r))}}return C({width:d,height:h,x:u,y:s})}function td(t,e){let n=tn(t).scrollLeft;return e?e.left+n:ts(z(t)).left+n}function th(t,e){let n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-td(t,n),y:n.top+e.scrollTop}}function tm(t,e,n){var i;let r;if("viewport"===e||"layoutViewport"===e)r=function(t,e,n){void 0===n&&(n="viewport");let i="layoutViewport"===n,r=M(t),l=z(t),o=r.visualViewport,f=l.clientWidth,a=l.clientHeight,c=0,u=0;if(o){let t=!Y()||"fixed"===e;i?t||(c=-o.offsetLeft,u=-o.offsetTop):(f=o.width,a=o.height,t&&(c=o.offsetLeft,u=o.offsetTop))}if(0>=td(l)){let t=l.ownerDocument,e=t.body,n=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,r=Math.abs(l.clientWidth-e.clientWidth-i),o="stable both-edges"===getComputedStyle(l).scrollbarGutter?r/2:r;o<=25&&(f-=o)}return{width:f,height:a,x:c,y:u}}(t,n,e);else if("document"===e){let e,n,o,f,a,c;e=tn(i=z(t)),n=i.ownerDocument.body,o=l(i.scrollWidth,i.clientWidth,n.scrollWidth,n.clientWidth),f=l(i.scrollHeight,i.clientHeight,n.scrollHeight,n.clientHeight),a=-e.scrollLeft+td(i),c=-e.scrollTop,"rtl"===te(n).direction&&(a+=l(i.clientWidth,n.clientWidth)-o),r={width:o,height:f,x:a,y:c}}else if(j(e)){let t,i,l,o,f,a;i=(t=ts(e,!0,"fixed"===n)).top+e.clientTop,l=t.left+e.clientLeft,o=ta(e),f=e.clientWidth*o.x,a=e.clientHeight*o.y,r={width:f,height:a,x:l*o.x,y:i*o.y}}else{let n=tu(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return C(r)}function tp(t){return"static"===te(t).position}function tg(t,e){if(!$(t)||"fixed"===te(t).position)return null;if(e)return e(t);let n=t.offsetParent;return z(t)===n&&(n=n.ownerDocument.body),n}function tw(t,e){let n=M(t);if(U(t))return n;if(!$(t)){let e=ti(t);for(;e&&!tt(e);){if(j(e)&&!tp(e))return e;e=ti(e)}return n}let i=tg(t,e);for(;i&&K(i)&&tp(i);)i=tg(i,e);return i&&tt(i)&&tp(i)&&!X(i)?n:i||Z(t)||n}let tv=async function(t){let e=this.getOffsetParent||tw,n=this.getDimensions,i=await n(t.floating);return{reference:function(t,e,n){let i=$(e),r=z(e),l="fixed"===n,o=ts(t,!0,l,e),f={scrollLeft:0,scrollTop:0},c=a(0);if((i||!l)&&(("body"!==B(e)||q(r))&&(f=tn(e)),i)){let t=ts(e,!0,l,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}!i&&r&&(c.x=td(r));let u=!r||i||l?a(0):th(r,f);return{x:o.left+f.scrollLeft-c.x-u.x,y:o.top+f.scrollTop-c.y-u.y,width:o.width,height:o.height}}(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},ty={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:r}=t,l="fixed"===r,o=z(i),f=!!e&&U(e.floating);if(i===o||f&&l)return n;let c={scrollLeft:0,scrollTop:0},u=a(1),s=a(0),d=$(i);if((d||!l)&&(("body"!==B(i)||q(o))&&(c=tn(i)),d)){let t=ts(i);u=ta(i),s.x=t.x+i.clientLeft,s.y=t.y+i.clientTop}let h=!o||d||l?a(0):th(o,c);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+s.x+h.x,y:n.y*u.y-c.scrollTop*u.y+s.y+h.y}},getDocumentElement:z,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t,f=[..."clippingAncestors"===n?U(e)?[]:function(t,e){let n=e.get(t);if(n)return n;let i=tr(t,[],!1).filter(t=>j(t)&&"body"!==B(t)),r=null,l="fixed"===te(t).position,o=l?ti(t):t;for(;j(o)&&!tt(o);){let t=te(o),e=X(o),n=r?r.position:l?"fixed":"";e||"fixed"!==n&&("absolute"!==n||"static"!==t.position)?r=t:i=i.filter(t=>t!==o),o=ti(o)}return e.set(t,i),i}(e,this._c):[].concat(n),i],a=tm(e,f[0],o),c=a.top,u=a.right,s=a.bottom,d=a.left;for(let t=1;t<f.length;t++){let n=tm(e,f[t],o);c=l(n.top,c),u=r(n.right,u),s=r(n.bottom,s),d=l(n.left,d)}return{width:u-d,height:s-c,x:d,y:c}},getOffsetParent:tw,getElementRects:tv,getClientRects:function(t){return t.getClientRects?Array.from(t.getClientRects()):[]},getDimensions:function(t){let{width:e,height:n}=to(t);return{width:e,height:n}},getScale:ta,isElement:j,isRTL:function(t){return"rtl"===te(t).direction}};function tx(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}t.s(["P",0,t=>({name:"arrow",options:t,async fn(e){let{x:n,y:i,placement:l,rects:o,platform:f,elements:a,middlewareData:c}=e,{element:d,padding:m=0}=s(t,e)||{};if(null==d)return{};let g=E(m),v={x:n,y:i},y=w(l),x=p(y),b=await f.getDimensions(d),R="y"===y,T=R?"clientHeight":"clientWidth",L=o.reference[x]+o.reference[y]-v[y]-o.floating[x],A=v[y]-o.reference[y],O=await (null==f.getOffsetParent?void 0:f.getOffsetParent(d)),C=O?O[T]:0;C&&await (null==f.isElement?void 0:f.isElement(O))||(C=a.floating[T]||o.floating[x]);let P=C/2-b[x]/2-1,S=r(g[R?"top":"left"],P),D=r(g[R?"bottom":"right"],P),H=C-b[x]-D,F=C/2-b[x]/2+(L/2-A/2),W=u(S,F,H),V=!c.arrow&&null!=h(l)&&F!==W&&o.reference[x]/2-(F<S?S:D)-b[x]/2<0,_=V?F<S?F-S:F-H:0;return{[y]:v[y]+_,data:{[y]:W,centerOffset:F-W-_,...V&&{alignmentOffset:_}},reset:V}}}),"p",0,function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,r,l,o;let{rects:f,middlewareData:a,placement:c,platform:u,elements:m}=e,{crossAxis:p=!1,alignment:g,allowedPlacements:w=i,autoAlignment:y=!0,...b}=s(t,e),R=void 0!==g||w===i?((o=g||null)?[...w.filter(t=>h(t)===o),...w.filter(t=>h(t)!==o)]:w.filter(t=>d(t)===t)).filter(t=>!o||h(t)===o||!!y&&x(t)!==t):w,T=(null==(n=a.autoPlacement)?void 0:n.index)||0,L=R[T];if(null==L)return{};if(c!==L)return{reset:{placement:R[0]}};let A=await u.detectOverflow(e,b),O=v(L,f,await (null==u.isRTL?void 0:u.isRTL(m.floating))),E=[A[d(L)],A[O[0]],A[O[1]]],C=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:L,overflows:E}],P=R[T+1];if(P)return{data:{index:T+1,overflows:C},reset:{placement:P}};let S=C.map(t=>{let e=h(t.placement);return[t.placement,e&&p?t.overflows.slice(0,2).reduce((t,e)=>t+e,0):t.overflows[0],t.overflows]}).sort((t,e)=>t[1]-e[1]),D=(null==(l=S.filter(t=>t[2].slice(0,h(t[0])?2:3).every(t=>t<=0))[0])?void 0:l[0])||S[0][0];return D!==c?{data:{index:T+1,overflows:C},reset:{placement:D}}:{}}}},"n",0,function(t,e,n,i){let o;void 0===i&&(i={});let{ancestorScroll:a=!0,ancestorResize:c=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:d=!1}=i,h=tf(t),m=a||c?[...h?tr(h):[],...e?tr(e):[]]:[];m.forEach(t=>{a&&t.addEventListener("scroll",n),c&&t.addEventListener("resize",n)});let p=h&&s?function(t,e,n){let i,o=null,a=z(t);function c(){var t;clearTimeout(i),null==(t=o)||t.disconnect(),o=null}function u(n,s){void 0===n&&(n=!1),void 0===s&&(s=1),c();let d=t.getBoundingClientRect(),{left:h,top:m,width:p,height:g}=d;if(n||e(),!p||!g)return;let w={rootMargin:-f(m)+"px "+-f(a.clientWidth-(h+p))+"px "+-f(a.clientHeight-(m+g))+"px "+-f(h)+"px",threshold:l(0,r(1,s))||1},v=!0;function y(e){let n=e[0].intersectionRatio;if(!tx(d,t.getBoundingClientRect()))return u();if(n!==s){if(!v)return u();n?u(!1,n):i=setTimeout(()=>{u(!1,1e-7)},1e3)}v=!1}try{o=new IntersectionObserver(y,{...w,root:a.ownerDocument})}catch(t){o=new IntersectionObserver(y,w)}o.observe(t)}let s=M(t),d=()=>u(n);return s.addEventListener("resize",d),u(!0),()=>{s.removeEventListener("resize",d),c()}}(h,n,c):null,g=-1,w=null;u&&(w=new ResizeObserver(t=>{let[i]=t;i&&i.target===h&&w&&e&&(w.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=w)||t.observe(e)})),n()}),h&&!d&&w.observe(h),e&&w.observe(e));let v=d?ts(t):null;return d&&function e(){let i=ts(t);v&&!tx(v,i)&&n(),v=i,o=requestAnimationFrame(e)}(),n(),()=>{var t;m.forEach(t=>{a&&t.removeEventListener("scroll",n),c&&t.removeEventListener("resize",n)}),null==p||p(),null==(t=w)||t.disconnect(),w=null,d&&cancelAnimationFrame(o)}},"A",0,(t,e,n)=>{let i=new Map,r=null!=n?n:{},l={...ty,...r.platform,_c:i};return D(t,e,{...r,platform:l})},"k",0,S,"x",0,function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i,r,l,o;let{placement:f,middlewareData:a,rects:c,initialPlacement:u,platform:h,elements:m}=e,{mainAxis:p=!0,crossAxis:w=!0,fallbackPlacements:x,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:T=!0,...L}=s(t,e);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};let E=d(f),C=g(u),P=d(u)===u,S=await (null==h.isRTL?void 0:h.isRTL(m.floating)),D=x||(P||!T?[O(u)]:y(u)),H="none"!==R;!x&&H&&D.push(...A(u,T,R,S));let F=[u,...D],W=await h.detectOverflow(e,L),V=[],_=(null==(i=a.flip)?void 0:i.overflows)||[];if(p&&V.push(W[E]),w){let t=v(f,c,S);V.push(W[t[0]],W[t[1]])}if(_=[..._,{placement:f,overflows:V}],!V.every(t=>t<=0)){let t=((null==(r=a.flip)?void 0:r.index)||0)+1,e=F[t];if(e&&("alignment"!==w||C===g(e)||_.every(t=>g(t.placement)!==C||t.overflows[0]>0)))return{data:{index:t,overflows:_},reset:{placement:e}};let n=null==(l=_.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:l.placement;if(!n)switch(b){case"bestFit":{let t=null==(o=_.filter(t=>{if(H){let e=g(t.placement);return e===C||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:o[0];t&&(n=t);break}case"initialPlacement":n=u}if(f!==n)return{reset:{placement:n}}}return{}}}},"c",0,function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n,platform:i}=e,{strategy:r="referenceHidden",...l}=s(t,e);switch(r){case"referenceHidden":{let t=H(await i.detectOverflow(e,{...l,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:F(t)}}}case"escaped":{let t=H(await i.detectOverflow(e,{...l,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:F(t)}}}default:return{}}}}},"g",0,function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){let{placement:n,elements:i,rects:o,platform:f,strategy:a}=e,{padding:c=2,x:u,y:h}=s(t,e),m=Array.from(await (null==f.getClientRects?void 0:f.getClientRects(i.reference))||[]);if(!m.length)return{};let p=function(t){let e=t.slice().sort((t,e)=>t.y-e.y),n=[],i=null;for(let t=0;t<e.length;t++){let r=e[t];!i||r.y-i.y>i.height/2?n.push([r]):n[n.length-1].push(r),i=r}return n.map(t=>C(W(t)))}(m),w=C(W(m)),v=E(c),y=await f.getElementRects({reference:{getBoundingClientRect:function(){if(2===p.length&&(p[0].left>p[1].right||p[1].left>p[0].right)&&null!=u&&null!=h)return p.find(t=>u>t.left-v.left&&u<t.right+v.right&&h>t.top-v.top&&h<t.bottom+v.bottom)||w;if(p.length>=2){if("y"===g(n)){let t=p[0],e=p[p.length-1],i="top"===d(n),r=t.top,l=e.bottom,o=i?t.left:e.left;return C({x:o,y:r,width:(i?t.right:e.right)-o,height:l-r})}let t="left"===d(n),e=l(...p.map(t=>t.right)),i=r(...p.map(t=>t.left)),o=p.filter(n=>t?n.left===i:n.right===e),f=o[0].top;return C({x:i,y:f,width:e-i,height:o[o.length-1].bottom-f})}return w}},floating:i.floating,strategy:a});return o.reference.x!==y.reference.x||o.reference.y!==y.reference.y||o.reference.width!==y.reference.width||o.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}},"o",0,function(t){return void 0===t&&(t={}),{options:t,fn(e){var n,i,r,l;let{x:o,y:f,placement:a,rects:c,middlewareData:u}=e,{offset:h=0,mainAxis:p=!0,crossAxis:w=!0}=s(t,e),v={x:o,y:f},y=g(a),x=m(y),b=v[x],R=v[y],T=s(h,e),L="number"==typeof T?{mainAxis:T,crossAxis:0}:{mainAxis:null!=(n=T.mainAxis)?n:0,crossAxis:null!=(i=T.crossAxis)?i:0};if(p){let t="y"===x?"height":"width",e=c.reference[x]-c.floating[t]+L.mainAxis,n=c.reference[x]+c.reference[t]-L.mainAxis;b<e?b=e:b>n&&(b=n)}if(w){let t="y"===x?"width":"height",e=V.has(d(a)),n=c.reference[y]-c.floating[t]+(e&&(null==(r=u.offset)?void 0:r[y])||0)+(e?0:L.crossAxis),i=c.reference[y]+c.reference[t]+(e?0:(null==(l=u.offset)?void 0:l[y])||0)-(e?L.crossAxis:0);R<n?R=n:R>i&&(R=i)}return{[x]:b,[y]:R}}}},"T",0,function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,i;let{x:r,y:l,placement:o,middlewareData:f}=e,a=await _(e,t);return o===(null==(n=f.offset)?void 0:n.placement)&&null!=(i=f.arrow)&&i.alignmentOffset?{}:{x:r+a.x,y:l+a.y,data:{...a,placement:o}}}}},"e",0,function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:i,placement:r,platform:l}=e,{mainAxis:o=!0,crossAxis:f=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=s(t,e),d={x:n,y:i},h=await l.detectOverflow(e,c),p=g(r),w=m(p),v=d[w],y=d[p],x=(t,e)=>u(e+h["y"===t?"top":"left"],e,e-h["y"===t?"bottom":"right"]);o&&(v=x(w,v)),f&&(y=x(p,y));let b=a.fn({...e,[w]:v,[p]:y});return{...b,data:{x:b.x-n,y:b.y-i,enabled:{[w]:o,[p]:f}}}}}},"q",0,function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){let n,i,{placement:o,rects:f,platform:a,elements:c}=e,{apply:u=()=>{},...m}=s(t,e),p=await a.detectOverflow(e,m),w=d(o),v=h(o),y="y"===g(o),{width:x,height:b}=f.floating;"top"===w||"bottom"===w?(n=w,i=v===(await (null==a.isRTL?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(i=w,n="end"===v?"top":"bottom");let R=b-p.top-p.bottom,T=x-p.left-p.right,L=r(b-p[n],R),A=r(x-p[i],T),O=e.middlewareData.shift,E=!O,C=L,P=A;null!=O&&O.enabled.x&&(P=T),null!=O&&O.enabled.y&&(C=R),E&&!v&&(y?P=x-2*l(p.left,p.right):C=b-2*l(p.top,p.bottom)),await u({...e,availableWidth:P,availableHeight:C});let S=await a.getDimensions(c.floating);return x!==S.width||b!==S.height?{reset:{rects:!0}}:{}}}}],95963)}])})();
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
__turbopack_load_page_chunks__("/users", [
|
|
2
|
-
"static/chunks/348l8p7-vo4l5.js",
|
|
3
|
-
"static/chunks/3wh4xa9dnw-55.js",
|
|
4
|
-
"static/chunks/0ewr86ctcw7fx.js",
|
|
5
|
-
"static/chunks/3-wsablhqgzoa.js",
|
|
6
|
-
"static/chunks/3c-an5ft_3emc.js",
|
|
7
|
-
"static/chunks/1a9-pdm78ri7r.js",
|
|
8
|
-
"static/chunks/0zpyyygbqx3pf.js",
|
|
9
|
-
"static/chunks/336k08jwyc5i-.js",
|
|
10
|
-
"static/chunks/2rmgaa88-4bpb.js",
|
|
11
|
-
"static/chunks/turbopack-2c3mg3r-05n1w.js"
|
|
12
|
-
])
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,26178,e=>{var t=e.i(91398),n=e.i(91788);let r=n.forwardRef(function({title:e,titleId:t,...r},l){return n.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:l,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.364 18.364A9 9 0 0 0 5.636 5.636m12.728 12.728A9 9 0 0 1 5.636 5.636m12.728 12.728L5.636 5.636"}))});var l=e.i(72043),i=e.i(69322);e.s(["f",0,({message:e,className:n="",Icon:o=null})=>(0,t.jsx)("div",{className:(0,l.default)("rounded-md flex w-full flex-col items-center justify-center min-h-[176px] py-8 border-1 border-dashed border-slate-300 dark:border-slate-700 text-slate-500 dark:text-slate-600",n),children:(0,t.jsxs)("div",{className:"grid items-center justify-center",children:[(0,t.jsx)("div",{className:"flex items-center justify-center text-slate-400 dark:text-slate-600",children:o||(0,t.jsx)(r,{className:"h-6 w-6"})}),(0,t.jsx)(i.K,{id:"no_data_message",defaultMessage:"<p>No <span> {message} available</span> </p>",values:{p:e=>(0,t.jsx)("p",{className:"mt-2 m-auto flex items-center justify-center",children:e}),span:e=>(0,t.jsxs)("span",{className:"capitalize ml-1",children:[" ",e," "]}),message:e}})]})})],26178)},8918,e=>{var t=e.i(91398),n=e.i(91788),r=e.i(72043),l=e.i(69322),i=e.i(88566),o=e.i(25575),a=e.i(3828),s=e.i(83147);let f=({onSort:e,sortDirection:n})=>n?"ASC"===n?(0,t.jsx)(o.f,{className:"ml-2 w-5 h-5 text-slate-700",onClick:e}):(0,t.jsx)(i.f,{className:"ml-2 w-5 h-5 text-slate-700",onClick:e}):(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"ml-2 w-6 h-6",onClick:e,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})});var c=e.i(26178);let u=e=>{let t=[],r=[],l=[];return n.default.Children.forEach(e.children,e=>{e?.props?.header?t.push(e):e?.props?.footer?l.push(e):r.push(e)}),{header:t,footer:l,body:r}},d=({className:e="",...i})=>{let[o,a]=(0,n.useState)(u(i)),{formatMessage:s}=(0,l.S)(),f={...o,header:n.default.Children.map(o.header,e=>n.default.cloneElement(e))};return(0,n.useEffect)(()=>{a(u(i))},[i.children]),f.header.length||f.body.length?(0,t.jsxs)("table",{className:(0,r.default)("overflow-hidden my-3 flex w-full flex-row flex-nowrap divide-y divide-slate-200 dark:divide-slate-600 shadow-sm sm:rounded-lg sm:bg-white dark:bg-slate-950",e),...i,children:[(0,t.jsx)("thead",{className:"hidden sm:table-header-group bg-slate-100 dark:bg-slate-700 text-sm text-slate-700 dark:text-slate-200",children:f.header}),f.body.length?(0,t.jsx)("tbody",{className:"space-y-4 sm:space-y-0 flex-1 sm:divide-y divide-slate-200 dark:divide-slate-700 sm:bg-white dark:sm:bg-slate-800 sm:flex-none",children:f.body}):null,f.footer.length?(0,t.jsx)("tfoot",{children:f.footer}):null]}):(0,t.jsx)(c.f,{message:s({id:"data",defaultMessage:"Data"})})};d.Row=({className:e="",children:l=[],header:i=!1,enablesort:o=!1,...a})=>{let s=n.default.Children.map(l,e=>n.default?.cloneElement(e||(0,t.jsx)("span",{}),{header:i,enablesort:o}));return(0,t.jsx)("tr",{className:(0,r.default)("grid grid-cols-1 auto-rows-fr border border-slate-100 dark:border-slate-700 sm:border-0 rounded-md sm:mb-0 sm:table-row sm:rounded-none bg-white dark:bg-slate-800 sm:bg-inherit dark:sm:bg-inherit",e),...a,children:s})},d.Cell=({className:e="",header:n=!1,enablesort:l=!1,children:i,sortKey:o=null,defaultSortDirection:c=null,...u})=>{let d=(0,a.useRouter)(),h=(0,s.v)(d.query?.sort),m=n?"th":"td";return(0,t.jsx)(m,{className:(0,r.default)(n?"px-4 py-3 text-left text-slate-500 dark:text-slate-200":"whitespace-nowrap px-4 py-3 text-slate-500 dark:text-slate-200 border-b dark:border-slate-300 last:border-b-0 sm:border-b-0 text-left flex items-center sm:table-cell",e),...u,children:(0,t.jsxs)("div",{className:"flex items-center",children:[i,"th"===m&&l&&o&&(0,t.jsx)(f,{onSort:e=>{var t;let n;e.preventDefault(),((t=h[o])?"ASC"===t?"DESC":null:"ASC")||!h[o]?n={...h,[o]:"ASC"===h[o]?"DESC":"ASC"}:(delete h[o],n=h);let r=Object.entries(n).map(([e,t])=>[e,t].join("_")).join(","),{sort:l,...i}=d.query,a=Object.keys(i).map(e=>[e,i[e]].join("=")).join("&"),f=0===Object.keys(i).length?`${d.basePath}?sort=${r}`:`${d.basePath}?${a}&sort=${r}`;r?d.push(f):d.push({query:(0,s._)(i)})},sortDirection:Object.keys(h).length?h[o]:c})]})})},e.s(["f",0,d],8918)},2765,e=>{e.s(["f",0,(e=500)=>t=>{let n;return(...r)=>{let l;clearTimeout(n),n=setTimeout(()=>t.apply(l,r),e)}}])},95963,32572,36394,e=>{let t,n=["top","right","bottom","left"],r=n.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),l=Math.min,i=Math.max,o=Math.round,a=Math.floor,s=e=>({x:e,y:e}),f={left:"right",right:"left",bottom:"top",top:"bottom"};function c(e,t,n){return i(e,l(t,n))}function u(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function p(e){return"y"===e?"height":"width"}function g(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function w(e){return m(g(e))}function x(e,t,n){void 0===n&&(n=!1);let r=h(e),l=w(e),i=p(l),o="x"===l?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=A(o)),[o,A(o)]}function v(e){let t=A(e);return[y(e),t,y(t)]}function y(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let b=["left","right"],R=["right","left"],L=["top","bottom"],C=["bottom","top"];function E(e,t,n,r){let l=h(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?R:b;return t?b:R;case"left":case"right":return t?L:C;default:return[]}}(d(e),"start"===n,r);return l&&(i=i.map(e=>e+"-"+l),t&&(i=i.concat(i.map(y)))),i}function A(e){let t=d(e);return f[t]+e.slice(t.length)}function T(e){var t,n,r,l;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(l=e.left)?l:0}:{top:e,right:e,bottom:e,left:e}}function j(e){let{x:t,y:n,width:r,height:l}=e;return{width:r,height:l,top:n,left:t,right:t+r,bottom:n+l,x:t,y:n}}function k(e,t,n){let r,{reference:l,floating:i}=e,o=g(t),a=w(t),s=p(a),f=d(t),c=l.x+l.width/2-i.width/2,u=l.y+l.height/2-i.height/2,m=l[s]/2-i[s]/2;switch(f){case"top":r={x:c,y:l.y-i.height};break;case"bottom":r={x:c,y:l.y+l.height};break;case"right":r={x:l.x+l.width,y:u};break;case"left":r={x:l.x-i.width,y:u};break;default:r={x:l.x,y:l.y}}let x=h(t);return x&&(r[a]+=m*("end"===x?1:-1)*(n&&"y"===o?-1:1)),r}async function O(e,t){var n;void 0===t&&(t={});let{x:r,y:l,platform:i,rects:o,elements:a,strategy:s}=e,{boundary:f="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=u(t,e),p=T(m),g=a[h?"floating"===d?"reference":"floating":d],w=j(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:f,rootBoundary:c,strategy:s})),x="floating"===d?{x:r,y:l,width:o.floating.width,height:o.floating.height}:o.reference,v=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await (null==i.isElement?void 0:i.isElement(v))&&await (null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},b=j(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:v,strategy:s}):x);return{top:(w.top-b.top+p.top)/y.y,bottom:(b.bottom-w.bottom+p.bottom)/y.y,left:(w.left-b.left+p.left)/y.x,right:(b.right-w.right+p.right)/y.x}}e.s(["O",0,c,"I",0,s,"h",0,u,"w",0,a,"R",0,h,"i",0,w,"N",0,x,"T",0,p,"P",0,v,"o",0,y,"J",0,m,"K",0,E,"t",0,A,"j",0,T,"m",0,d,"$",0,g,"y",0,i,"u",0,l,"Z",0,r,"_",0,j,"H",0,o,"M",0,n],32572);let S=async(e,t,n)=>{let{placement:r="bottom",strategy:l="absolute",middleware:i=[],platform:o}=n,a=o.detectOverflow?o:{...o,detectOverflow:O},s=await (null==o.isRTL?void 0:o.isRTL(t)),f=await o.getElementRects({reference:e,floating:t,strategy:l}),{x:c,y:u}=k(f,r,s),d=r,h=0,m={};for(let n=0;n<i.length;n++){let p=i[n];if(!p)continue;let{name:g,fn:w}=p,{x:x,y:v,data:y,reset:b}=await w({x:c,y:u,initialPlacement:r,placement:d,strategy:l,middlewareData:m,rects:f,platform:a,elements:{reference:e,floating:t}});c=null!=x?x:c,u=null!=v?v:u,m[g]={...m[g],...y},b&&h<50&&(h++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(f=!0===b.rects?await o.getElementRects({reference:e,floating:t,strategy:l}):b.rects),{x:c,y:u}=k(f,d,s)),n=-1)}return{x:c,y:u,placement:d,strategy:l,middlewareData:m}};function N(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function D(e){return n.some(t=>e[t]>=0)}function P(e){let t=l(...e.map(e=>e.left)),n=l(...e.map(e=>e.top));return{x:t,y:n,width:i(...e.map(e=>e.right))-t,height:i(...e.map(e=>e.bottom))-n}}let M=new Set(["left","top"]);async function H(e,t){let{placement:n,platform:r,elements:l}=e,i=await (null==r.isRTL?void 0:r.isRTL(l.floating)),o=d(n),a=h(n),s="y"===g(n),f=M.has(o)?-1:1,c=i&&s?-1:1,m=u(t,e),{mainAxis:p,crossAxis:w,alignmentAxis:x}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&"number"==typeof x&&(w="end"===a?-1*x:x),s?{x:w*c,y:p*f}:{x:p*f,y:w*c}}function B(){return"u">typeof window}function F(e){return _(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function V(e){var t;return null==(t=(_(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function _(e){return!!B()&&(e instanceof Node||e instanceof W(e).Node)}function $(e){return!!B()&&(e instanceof Element||e instanceof W(e).Element)}function z(e){return!!B()&&(e instanceof HTMLElement||e instanceof W(e).HTMLElement)}function q(e){return!(!B()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof W(e).ShadowRoot)}function I(e){let{overflow:t,overflowX:n,overflowY:r,display:l}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==l&&"contents"!==l}function K(e){return/^(table|td|th)$/.test(F(e))}function Z(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let G=/transform|translate|scale|rotate|perspective|filter/,J=/paint|layout|strict|content/,U=e=>!!e&&"none"!==e;function X(e){let t=$(e)?et(e):e;return U(t.transform)||U(t.translate)||U(t.scale)||U(t.rotate)||U(t.perspective)||!Y()&&(U(t.backdropFilter)||U(t.filter))||G.test(t.willChange||"")||J.test(t.contain||"")}function Q(e){let t=er(e);for(;z(t)&&!ee(t);){if(X(t))return t;if(Z(t))break;t=er(t)}return null}function Y(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function ee(e){return/^(html|body|#document)$/.test(F(e))}function et(e){return W(e).getComputedStyle(e)}function en(e){return $(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function er(e){if("html"===F(e))return e;let t=e.assignedSlot||e.parentNode||q(e)&&e.host||V(e);return q(t)?t.host:t}function el(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let l=function e(t){let n=er(t);return ee(n)?(t.ownerDocument||t).body:z(n)&&I(n)?n:e(n)}(e),i=l===(null==(r=e.ownerDocument)?void 0:r.body),o=W(l);if(!i)return t.concat(l,el(l,[],n));{let e=ei(o);return t.concat(o,o.visualViewport||[],I(l)?l:[],e&&n?el(e):[])}}function ei(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eo(e){let t=et(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,l=z(e),i=l?e.offsetWidth:n,a=l?e.offsetHeight:r,s=o(n)!==i||o(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function ea(e){return $(e)?e:e.contextElement}function es(e){let t=ea(e);if(!z(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:l,$:i}=eo(t),a=(i?o(n.width):n.width)/r,f=(i?o(n.height):n.height)/l;return a&&Number.isFinite(a)||(a=1),f&&Number.isFinite(f)||(f=1),{x:a,y:f}}e.s(["X",0,et,"f",0,Q,"I",0,V,"w",0,ei,"A",0,F,"Q",0,en,"G",0,el,"J",0,er,"K",0,W,"e",0,X,"m",0,$,"E",0,z,"Z",0,ee,"B",0,I,"R",0,q,"S",0,K,"D",0,Z,"i",0,Y],36394);let ef=s(0);function ec(e){let t=W(e);return Y()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ef}function eu(e,t,n,r){var l;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),o=ea(e),a=s(1);t&&(r?$(r)&&(a=es(r)):a=es(e));let f=(void 0===(l=n)&&(l=!1),r&&l&&r===W(o))?ec(o):s(0),c=(i.left+f.x)/a.x,u=(i.top+f.y)/a.y,d=i.width/a.x,h=i.height/a.y;if(o&&r){let e=W(o),t=$(r)?W(r):r,n=e,l=ei(n);for(;l&&t!==n;){let e=es(l),t=l.getBoundingClientRect(),r=et(l),i=t.left+(l.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(l.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,h*=e.y,c+=i,u+=o,l=ei(n=W(l))}}return j({width:d,height:h,x:c,y:u})}function ed(e,t){let n=en(e).scrollLeft;return t?t.left+n:eu(V(e)).left+n}function eh(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ed(e,n),y:n.top+t.scrollTop}}function em(e,t,n){var r;let l;if("viewport"===t||"layoutViewport"===t)l=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,l=W(e),i=V(e),o=l.visualViewport,a=i.clientWidth,s=i.clientHeight,f=0,c=0;if(o){let e=!Y()||"fixed"===t;r?e||(f=-o.offsetLeft,c=-o.offsetTop):(a=o.width,s=o.height,e&&(f=o.offsetLeft,c=o.offsetTop))}if(0>=ed(i)){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(i.clientWidth-t.clientWidth-r),o="stable both-edges"===getComputedStyle(i).scrollbarGutter?l/2:l;o<=25&&(a-=o)}return{width:a,height:s,x:f,y:c}}(e,n,t);else if("document"===t){let t,n,o,a,s,f;t=en(r=V(e)),n=r.ownerDocument.body,o=i(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),a=i(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),s=-t.scrollLeft+ed(r),f=-t.scrollTop,"rtl"===et(n).direction&&(s+=i(r.clientWidth,n.clientWidth)-o),l={width:o,height:a,x:s,y:f}}else if($(t)){let e,r,i,o,a,s;r=(e=eu(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,o=es(t),a=t.clientWidth*o.x,s=t.clientHeight*o.y,l={width:a,height:s,x:i*o.x,y:r*o.y}}else{let n=ec(e);l={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return j(l)}function ep(e){return"static"===et(e).position}function eg(e,t){if(!z(e)||"fixed"===et(e).position)return null;if(t)return t(e);let n=e.offsetParent;return V(e)===n&&(n=n.ownerDocument.body),n}function ew(e,t){let n=W(e);if(Z(e))return n;if(!z(e)){let t=er(e);for(;t&&!ee(t);){if($(t)&&!ep(t))return t;t=er(t)}return n}let r=eg(e,t);for(;r&&K(r)&&ep(r);)r=eg(r,t);return r&&ee(r)&&ep(r)&&!X(r)?n:r||Q(e)||n}let ex=async function(e){let t=this.getOffsetParent||ew,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=z(t),l=V(t),i="fixed"===n,o=eu(e,!0,i,t),a={scrollLeft:0,scrollTop:0},f=s(0);if((r||!i)&&(("body"!==F(t)||I(l))&&(a=en(t)),r)){let e=eu(t,!0,i,t);f.x=e.x+t.clientLeft,f.y=e.y+t.clientTop}!r&&l&&(f.x=ed(l));let c=!l||r||i?s(0):eh(l,a);return{x:o.left+a.scrollLeft-f.x-c.x,y:o.top+a.scrollTop-f.y-c.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ev={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:l}=e,i="fixed"===l,o=V(r),a=!!t&&Z(t.floating);if(r===o||a&&i)return n;let f={scrollLeft:0,scrollTop:0},c=s(1),u=s(0),d=z(r);if((d||!i)&&(("body"!==F(r)||I(o))&&(f=en(r)),d)){let e=eu(r);c=es(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let h=!o||d||i?s(0):eh(o,f);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-f.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-f.scrollTop*c.y+u.y+h.y}},getDocumentElement:V,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,a=[..."clippingAncestors"===n?Z(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=el(e,[],!1).filter(e=>$(e)&&"body"!==F(e)),l=null,i="fixed"===et(e).position,o=i?er(e):e;for(;$(o)&&!ee(o);){let e=et(o),t=X(o),n=l?l.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?l=e:r=r.filter(e=>e!==o),o=er(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=em(t,a[0],o),f=s.top,c=s.right,u=s.bottom,d=s.left;for(let e=1;e<a.length;e++){let n=em(t,a[e],o);f=i(n.top,f),c=l(n.right,c),u=l(n.bottom,u),d=i(n.left,d)}return{width:c-d,height:u-f,x:d,y:f}},getOffsetParent:ew,getElementRects:ex,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=eo(e);return{width:t,height:n}},getScale:es,isElement:$,isRTL:function(e){return"rtl"===et(e).direction}};function ey(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}e.s(["P",0,e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:f}=t,{element:d,padding:m=0}=u(e,t)||{};if(null==d)return{};let g=T(m),x={x:n,y:r},v=w(i),y=p(v),b=await a.getDimensions(d),R="y"===v,L=R?"clientHeight":"clientWidth",C=o.reference[y]+o.reference[v]-x[v]-o.floating[y],E=x[v]-o.reference[v],A=await (null==a.getOffsetParent?void 0:a.getOffsetParent(d)),j=A?A[L]:0;j&&await (null==a.isElement?void 0:a.isElement(A))||(j=s.floating[L]||o.floating[y]);let k=j/2-b[y]/2-1,O=l(g[R?"top":"left"],k),S=l(g[R?"bottom":"right"],k),N=j-b[y]-S,D=j/2-b[y]/2+(C/2-E/2),P=c(O,D,N),M=!f.arrow&&null!=h(i)&&D!==P&&o.reference[y]/2-(D<O?O:S)-b[y]/2<0,H=M?D<O?D-O:D-N:0;return{[v]:x[v]+H,data:{[v]:P,centerOffset:D-P-H,...M&&{alignmentOffset:H}},reset:M}}}),"p",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,l,i,o;let{rects:a,middlewareData:s,placement:f,platform:c,elements:m}=t,{crossAxis:p=!1,alignment:g,allowedPlacements:w=r,autoAlignment:v=!0,...b}=u(e,t),R=void 0!==g||w===r?((o=g||null)?[...w.filter(e=>h(e)===o),...w.filter(e=>h(e)!==o)]:w.filter(e=>d(e)===e)).filter(e=>!o||h(e)===o||!!v&&y(e)!==e):w,L=(null==(n=s.autoPlacement)?void 0:n.index)||0,C=R[L];if(null==C)return{};if(f!==C)return{reset:{placement:R[0]}};let E=await c.detectOverflow(t,b),A=x(C,a,await (null==c.isRTL?void 0:c.isRTL(m.floating))),T=[E[d(C)],E[A[0]],E[A[1]]],j=[...(null==(l=s.autoPlacement)?void 0:l.overflows)||[],{placement:C,overflows:T}],k=R[L+1];if(k)return{data:{index:L+1,overflows:j},reset:{placement:k}};let O=j.map(e=>{let t=h(e.placement);return[e.placement,t&&p?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),S=(null==(i=O.filter(e=>e[2].slice(0,h(e[0])?2:3).every(e=>e<=0))[0])?void 0:i[0])||O[0][0];return S!==f?{data:{index:L+1,overflows:j},reset:{placement:S}}:{}}}},"n",0,function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:s=!0,ancestorResize:f=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,h=ea(e),m=s||f?[...h?el(h):[],...t?el(t):[]]:[];m.forEach(e=>{s&&e.addEventListener("scroll",n),f&&e.addEventListener("resize",n)});let p=h&&u?function(e,t,n){let r,o=null,s=V(e);function f(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function c(n,u){void 0===n&&(n=!1),void 0===u&&(u=1),f();let d=e.getBoundingClientRect(),{left:h,top:m,width:p,height:g}=d;if(n||t(),!p||!g)return;let w={rootMargin:-a(m)+"px "+-a(s.clientWidth-(h+p))+"px "+-a(s.clientHeight-(m+g))+"px "+-a(h)+"px",threshold:i(0,l(1,u))||1},x=!0;function v(t){let n=t[0].intersectionRatio;if(!ey(d,e.getBoundingClientRect()))return c();if(n!==u){if(!x)return c();n?c(!1,n):r=setTimeout(()=>{c(!1,1e-7)},1e3)}x=!1}try{o=new IntersectionObserver(v,{...w,root:s.ownerDocument})}catch(e){o=new IntersectionObserver(v,w)}o.observe(e)}let u=W(e),d=()=>c(n);return u.addEventListener("resize",d),c(!0),()=>{u.removeEventListener("resize",d),f()}}(h,n,f):null,g=-1,w=null;c&&(w=new ResizeObserver(e=>{let[r]=e;r&&r.target===h&&w&&t&&(w.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=w)||e.observe(t)})),n()}),h&&!d&&w.observe(h),t&&w.observe(t));let x=d?eu(e):null;return d&&function t(){let r=eu(e);x&&!ey(x,r)&&n(),x=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{s&&e.removeEventListener("scroll",n),f&&e.removeEventListener("resize",n)}),null==p||p(),null==(e=w)||e.disconnect(),w=null,d&&cancelAnimationFrame(o)}},"A",0,(e,t,n)=>{let r=new Map,l=null!=n?n:{},i={...ev,...l.platform,_c:r};return S(e,t,{...l,platform:i})},"k",0,O,"x",0,function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,l,i,o;let{placement:a,middlewareData:s,rects:f,initialPlacement:c,platform:h,elements:m}=t,{mainAxis:p=!0,crossAxis:w=!0,fallbackPlacements:y,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:L=!0,...C}=u(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let T=d(a),j=g(c),k=d(c)===c,O=await (null==h.isRTL?void 0:h.isRTL(m.floating)),S=y||(k||!L?[A(c)]:v(c)),N="none"!==R;!y&&N&&S.push(...E(c,L,R,O));let D=[c,...S],P=await h.detectOverflow(t,C),M=[],H=(null==(r=s.flip)?void 0:r.overflows)||[];if(p&&M.push(P[T]),w){let e=x(a,f,O);M.push(P[e[0]],P[e[1]])}if(H=[...H,{placement:a,overflows:M}],!M.every(e=>e<=0)){let e=((null==(l=s.flip)?void 0:l.index)||0)+1,t=D[e];if(t&&("alignment"!==w||j===g(t)||H.every(e=>g(e.placement)!==j||e.overflows[0]>0)))return{data:{index:e,overflows:H},reset:{placement:t}};let n=null==(i=H.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(b){case"bestFit":{let e=null==(o=H.filter(e=>{if(N){let t=g(e.placement);return t===j||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}},"c",0,function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:l="referenceHidden",...i}=u(e,t);switch(l){case"referenceHidden":{let e=N(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:D(e)}}}case"escaped":{let e=N(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:D(e)}}}default:return{}}}}},"g",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:r,rects:o,platform:a,strategy:s}=t,{padding:f=2,x:c,y:h}=u(e,t),m=Array.from(await (null==a.getClientRects?void 0:a.getClientRects(r.reference))||[]);if(!m.length)return{};let p=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let l=t[e];!r||l.y-r.y>r.height/2?n.push([l]):n[n.length-1].push(l),r=l}return n.map(e=>j(P(e)))}(m),w=j(P(m)),x=T(f),v=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===p.length&&(p[0].left>p[1].right||p[1].left>p[0].right)&&null!=c&&null!=h)return p.find(e=>c>e.left-x.left&&c<e.right+x.right&&h>e.top-x.top&&h<e.bottom+x.bottom)||w;if(p.length>=2){if("y"===g(n)){let e=p[0],t=p[p.length-1],r="top"===d(n),l=e.top,i=t.bottom,o=r?e.left:t.left;return j({x:o,y:l,width:(r?e.right:t.right)-o,height:i-l})}let e="left"===d(n),t=i(...p.map(e=>e.right)),r=l(...p.map(e=>e.left)),o=p.filter(n=>e?n.left===r:n.right===t),a=o[0].top;return j({x:r,y:a,width:t-r,height:o[o.length-1].bottom-a})}return w}},floating:r.floating,strategy:s});return o.reference.x!==v.reference.x||o.reference.y!==v.reference.y||o.reference.width!==v.reference.width||o.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}},"o",0,function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,r,l,i;let{x:o,y:a,placement:s,rects:f,middlewareData:c}=t,{offset:h=0,mainAxis:p=!0,crossAxis:w=!0}=u(e,t),x={x:o,y:a},v=g(s),y=m(v),b=x[y],R=x[v],L=u(h,t),C="number"==typeof L?{mainAxis:L,crossAxis:0}:{mainAxis:null!=(n=L.mainAxis)?n:0,crossAxis:null!=(r=L.crossAxis)?r:0};if(p){let e="y"===y?"height":"width",t=f.reference[y]-f.floating[e]+C.mainAxis,n=f.reference[y]+f.reference[e]-C.mainAxis;b<t?b=t:b>n&&(b=n)}if(w){let e="y"===y?"width":"height",t=M.has(d(s)),n=f.reference[v]-f.floating[e]+(t&&(null==(l=c.offset)?void 0:l[v])||0)+(t?0:C.crossAxis),r=f.reference[v]+f.reference[e]+(t?0:(null==(i=c.offset)?void 0:i[v])||0)-(t?C.crossAxis:0);R<n?R=n:R>r&&(R=r)}return{[y]:b,[v]:R}}}},"T",0,function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:l,y:i,placement:o,middlewareData:a}=t,s=await H(t,e);return o===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:l+s.x,y:i+s.y,data:{...s,placement:o}}}}},"e",0,function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:l,platform:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...f}=u(e,t),d={x:n,y:r},h=await i.detectOverflow(t,f),p=g(l),w=m(p),x=d[w],v=d[p],y=(e,t)=>c(t+h["y"===e?"top":"left"],t,t-h["y"===e?"bottom":"right"]);o&&(x=y(w,x)),a&&(v=y(p,v));let b=s.fn({...t,[w]:x,[p]:v});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[w]:o,[p]:a}}}}}},"q",0,function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r,{placement:o,rects:a,platform:s,elements:f}=t,{apply:c=()=>{},...m}=u(e,t),p=await s.detectOverflow(t,m),w=d(o),x=h(o),v="y"===g(o),{width:y,height:b}=a.floating;"top"===w||"bottom"===w?(n=w,r=x===(await (null==s.isRTL?void 0:s.isRTL(f.floating))?"start":"end")?"left":"right"):(r=w,n="end"===x?"top":"bottom");let R=b-p.top-p.bottom,L=y-p.left-p.right,C=l(b-p[n],R),E=l(y-p[r],L),A=t.middlewareData.shift,T=!A,j=C,k=E;null!=A&&A.enabled.x&&(k=L),null!=A&&A.enabled.y&&(j=R),T&&!x&&(v?k=y-2*i(p.left,p.right):j=b-2*i(p.top,p.bottom)),await c({...t,availableWidth:k,availableHeight:j});let O=await s.getDimensions(f.floating);return y!==O.width||b!==O.height?{reset:{rects:!0}}:{}}}}],95963)},88566,25575,e=>{var t=e.i(91788);let n=t.forwardRef(function({title:e,titleId:n,...r},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))});e.s(["f",0,n],88566);let r=t.forwardRef(function({title:e,titleId:n,...r},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{fillRule:"evenodd",d:"M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z",clipRule:"evenodd"}))});e.s(["f",0,r],25575)}])})();
|