@unchainedshop/admin-ui 4.8.33 → 4.8.34
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/DUswS2PYjGTW9uUGVJ6xd/_buildManifest.js +258 -0
- package/out/_next/static/chunks/0-e21p2v90828.js +23 -0
- package/out/_next/static/chunks/0-w25xfpw-_e9.js +44 -0
- package/out/_next/static/chunks/011h6mc3kuxq9.js +217 -0
- package/out/_next/static/chunks/01n5rd9ngv-t4.js +1 -0
- package/out/_next/static/chunks/01rghd4wcj4ex.js +5 -0
- package/out/_next/static/chunks/03omde6jo6sta.js +1 -0
- package/out/_next/static/chunks/06gyzyq56kw_2.js +6 -0
- package/out/_next/static/chunks/{2ajr0rk0_yax6.js → 06kqbwwnuu3te.js} +1 -1
- package/out/_next/static/chunks/07i53w2a3x0so.js +1 -0
- package/out/_next/static/chunks/09irjy-7k1922.js +1 -0
- package/out/_next/static/chunks/09kihj6ay6mqn.js +39 -0
- package/out/_next/static/chunks/09ml8g7-byzio.js +71 -0
- package/out/_next/static/chunks/09yk8jmltcqcd.js +5 -0
- package/out/_next/static/chunks/0_m0oaoy22un6.js +5 -0
- package/out/_next/static/chunks/0af-w950yl0l5.js +277 -0
- package/out/_next/static/chunks/0ah2m5cl87avs.js +935 -0
- package/out/_next/static/chunks/0ahfhl4hk0fuj.js +12 -0
- package/out/_next/static/chunks/0b4rcc2y1ex8j.js +12 -0
- package/out/_next/static/chunks/0buyef0vid-ym.js +224 -0
- package/out/_next/static/chunks/0czpir4zjwmos.js +1 -0
- package/out/_next/static/chunks/0duy5y86n4tl3.js +5 -0
- package/out/_next/static/chunks/0dzn-wes7gjdt.js +33 -0
- package/out/_next/static/chunks/{2rmgaa88-4bpb.js → 0e4nzgbtw6x_d.js} +4 -4
- package/out/_next/static/chunks/0eb98o1s1ojq7.js +5 -0
- package/out/_next/static/chunks/0gow2wyosbjb6.js +71 -0
- package/out/_next/static/chunks/0h4ehpg2f7fp2.js +46 -0
- package/out/_next/static/chunks/0hgha-mywwcsd.js +8 -0
- package/out/_next/static/chunks/0iliy1guwadr4.js +7 -0
- package/out/_next/static/chunks/0l0hzoqd-va5-.js +1 -0
- package/out/_next/static/chunks/0l1xycyhdztmy.js +46 -0
- package/out/_next/static/chunks/0lh8xbz1qulcr.js +15 -0
- package/out/_next/static/chunks/0mavm6oemhb-d.js +152 -0
- package/out/_next/static/chunks/0nk0kgnsiap5g.js +116 -0
- package/out/_next/static/chunks/0o3o1f00j5wxa.js +8 -0
- package/out/_next/static/chunks/0pny1c_ni8rn7.js +39 -0
- package/out/_next/static/chunks/0q62hlhpcumrt.js +33 -0
- package/out/_next/static/chunks/0qkdih-hi6c2m.js +15 -0
- package/out/_next/static/chunks/0qz61g2g6ijfh.js +54 -0
- package/out/_next/static/chunks/0raj1enjck-ex.js +4 -0
- package/out/_next/static/chunks/0rmomvc8u__n4.js +10 -0
- package/out/_next/static/chunks/0s0ufx1fl32v7.js +12 -0
- package/out/_next/static/chunks/0sgxa66r-iing.js +1 -0
- package/out/_next/static/chunks/0sv5w2_cae8tj.js +7 -0
- package/out/_next/static/chunks/0u_zr87ce7iu-.js +1 -0
- package/out/_next/static/chunks/0ub1l2hrjkz2-.js +1 -0
- package/out/_next/static/chunks/0uef4ugmc_g10.js +1 -0
- package/out/_next/static/chunks/0uksleo_xd7j5.js +1 -0
- package/out/_next/static/chunks/0wbciytf8tnsa.js +18 -0
- package/out/_next/static/chunks/0wd1l2f5cin-0.js +4 -0
- package/out/_next/static/chunks/0zfm51umxvjc6.js +1 -0
- package/out/_next/static/chunks/10enect1zh1vj.js +3 -0
- package/out/_next/static/chunks/11e6h7l-whxh3.js +7 -0
- package/out/_next/static/chunks/11vnr4kb9qkjr.js +1 -0
- package/out/_next/static/chunks/13bcbgywansr-.js +130 -0
- package/out/_next/static/chunks/13ytpmhxkpnwy.js +1 -0
- package/out/_next/static/chunks/14pnkf7som1m1.js +1 -0
- package/out/_next/static/chunks/17nr-ur3sbo_z.js +24 -0
- package/out/_next/static/chunks/1802-tohqffps.js +1 -0
- package/out/_next/static/chunks/181-yaruteuqm.js +61 -0
- package/out/_next/static/chunks/181zsbok_ljo_.js +4 -0
- package/out/_next/static/chunks/187p6ryym-x3i.js +5 -0
- package/out/_next/static/chunks/198-_r3as1j63.js +8 -0
- package/out/_next/static/chunks/19f7gu0kvm7xl.js +7 -0
- package/out/_next/static/chunks/19kin-dby998k.js +8 -0
- package/out/_next/static/chunks/1aojv48cs6ufj.js +6 -0
- package/out/_next/static/chunks/1cs-w7vppvm8o.js +1 -0
- package/out/_next/static/chunks/1cz2fp89ssu5d.js +4 -0
- package/out/_next/static/chunks/1dedrypk-h8qr.js +1 -0
- package/out/_next/static/chunks/1edk56b1rx05q.js +4 -0
- package/out/_next/static/chunks/1ew4i-mm087xs.js +4 -0
- package/out/_next/static/chunks/1ewn0p_wru2ra.js +15 -0
- package/out/_next/static/chunks/1g1na7eoafolj.js +1 -0
- package/out/_next/static/chunks/1gfocmey44pyr.js +7 -0
- package/out/_next/static/chunks/1grwyry6zqknr.js +100 -0
- package/out/_next/static/chunks/1gyt_0aw92ysk.js +5 -0
- package/out/_next/static/chunks/1hvvot0p0442h.js +5 -0
- package/out/_next/static/chunks/1inbspyz1wpdj.js +1 -0
- package/out/_next/static/chunks/1l2p87t0w4-yb.js +8 -0
- package/out/_next/static/chunks/1lew6f82bg1x1.js +1 -0
- package/out/_next/static/chunks/1nbc2o30_g9bj.js +95 -0
- package/out/_next/static/chunks/1nikeez809jr8.js +2 -0
- package/out/_next/static/chunks/1p1f35qy1lt0s.js +7 -0
- package/out/_next/static/chunks/1p3agrt0e0t9t.js +5 -0
- package/out/_next/static/chunks/1p6qsnui0zjik.js +44 -0
- package/out/_next/static/chunks/1pbfjibxvspoj.js +5 -0
- package/out/_next/static/chunks/1pcrg5m_9agof.js +5 -0
- package/out/_next/static/chunks/1rm2w7nvmejdw.js +31 -0
- package/out/_next/static/chunks/{1---h4b693b81.js → 1t5wlk2j9d4ss.js} +1 -1
- package/out/_next/static/chunks/{12yd8t4k6c0t1.js → 1t8jj0-6g8uyd.js} +1 -1
- package/out/_next/static/chunks/1ttpypjue-zdo.js +63 -0
- package/out/_next/static/chunks/1uzvaujlk79rn.js +145 -0
- package/out/_next/static/chunks/1xnlhfvi8m4a8.js +1 -0
- package/out/_next/static/chunks/1y0mbad52vao6.js +5 -0
- package/out/_next/static/chunks/1zfhgsywbsg2e.js +5 -0
- package/out/_next/static/chunks/1zhfbuv-et-34.js +13 -0
- package/out/_next/static/chunks/2-2kg667v82ek.js +171 -0
- package/out/_next/static/chunks/21z3-xqp62vs8.js +7 -0
- package/out/_next/static/chunks/22odam86c8kps.js +1 -0
- package/out/_next/static/chunks/23wfelj92rx3n.js +1 -0
- package/out/_next/static/chunks/243ubs_ig9hwo.js +13 -0
- package/out/_next/static/chunks/249u7sg_mycfl.js +24 -0
- package/out/_next/static/chunks/24_57hr3o_ll8.js +1 -0
- package/out/_next/static/chunks/252_8-fyz3vjh.js +9 -0
- package/out/_next/static/chunks/25_kx8fsd5k0d.js +5 -0
- package/out/_next/static/chunks/26wuxv_gsk3jb.js +30 -0
- package/out/_next/static/chunks/26x7o2gzms54c.js +6 -0
- package/out/_next/static/chunks/27h86ht8kvqop.js +267 -0
- package/out/_next/static/chunks/27tf612b6s-45.js +7 -0
- package/out/_next/static/chunks/{3qzrrjb48t2w3.js → 2893194r7ays6.js} +5 -5
- package/out/_next/static/chunks/294uscwjocbpf.js +5 -0
- package/out/_next/static/chunks/29c8fj1poxxec.js +39 -0
- package/out/_next/static/chunks/{439tz_ubj8h-g.js → 29fdom9djvjop.js} +9 -9
- package/out/_next/static/chunks/2__om5ddn5b91.js +7 -0
- package/out/_next/static/chunks/2_krlw-01uumq.js +119 -0
- package/out/_next/static/chunks/2a1m9ia2zp2t9.js +6 -0
- package/out/_next/static/chunks/2c2arjke9rx-g.js +14 -0
- package/out/_next/static/chunks/2de99go2pdzl3.js +12 -0
- package/out/_next/static/chunks/2dnn7jhe55iy8.js +32 -0
- package/out/_next/static/chunks/2eac98hmhj8tp.js +5 -0
- package/out/_next/static/chunks/2fxjo2s_nsjsa.js +5 -0
- package/out/_next/static/chunks/2h_j6q1pnhf07.js +16 -0
- package/out/_next/static/chunks/2hthxhwh84ls1.css +1 -0
- package/out/_next/static/chunks/2i07f6t3xq708.js +5 -0
- package/out/_next/static/chunks/2i6nzzm63658q.js +10 -0
- package/out/_next/static/chunks/2ksch2zc9k7uj.js +71 -0
- package/out/_next/static/chunks/{1gqd9vrno0rq4.js → 2lh-lsn2en0pp.js} +2 -2
- package/out/_next/static/chunks/2luj-95aqr25b.js +1 -0
- package/out/_next/static/chunks/2m_p_bx_gsrlf.js +5 -0
- package/out/_next/static/chunks/2of_ro6r-fwjx.js +16 -0
- package/out/_next/static/chunks/2oyujmi3aqs6f.js +5 -0
- package/out/_next/static/chunks/2pumckmhpvlo2.js +23 -0
- package/out/_next/static/chunks/2r4x7nghsoqhe.js +7 -0
- package/out/_next/static/chunks/2s-226q_lc70k.js +9 -0
- package/out/_next/static/chunks/2sc_zg0bvlmak.js +78 -0
- package/out/_next/static/chunks/2tlxpweh5c3fh.js +43 -0
- package/out/_next/static/chunks/{1_55km6vm5mc0.js → 2w_0wk23uirx6.js} +7 -7
- package/out/_next/static/chunks/2wg_0x11ef6uc.js +7 -0
- package/out/_next/static/chunks/2zx42lz8zcp91.js +6 -0
- package/out/_next/static/chunks/3-l_ott2smmqm.js +7 -0
- package/out/_next/static/chunks/30lpu8mp25ag1.js +41 -0
- package/out/_next/static/chunks/3168hp9w1h68h.js +68 -0
- package/out/_next/static/chunks/3180oblgqnad5.js +194 -0
- package/out/_next/static/chunks/32traobkc55z_.js +54 -0
- package/out/_next/static/chunks/33s24dpx0eo63.js +2 -0
- package/out/_next/static/chunks/{153ec1_-yt3jb.js → 343n05fzlb2an.js} +5 -5
- package/out/_next/static/chunks/35odkwyh-md-p.js +59 -0
- package/out/_next/static/chunks/35tgy8og7dw73.js +149 -0
- package/out/_next/static/chunks/36mjt8cgckx2r.js +1 -0
- package/out/_next/static/chunks/37j2g662wreov.js +108 -0
- package/out/_next/static/chunks/37vezmh4pf5j4.js +12 -0
- package/out/_next/static/chunks/37y01hdz8sxhr.js +1 -0
- package/out/_next/static/chunks/38uyt89jy0tt7.js +1 -0
- package/out/_next/static/chunks/39-pv-7i0kah_.js +155 -0
- package/out/_next/static/chunks/3__spmlu2_ez6.js +41 -0
- package/out/_next/static/chunks/3_zgl8ng3nj3g.js +9 -0
- package/out/_next/static/chunks/3a6ahlxxtjn1v.js +8 -0
- package/out/_next/static/chunks/{1tkvi0wb-x3v8.js → 3ae7hwg50q67p.js} +2 -2
- package/out/_next/static/chunks/3btzusax1chra.js +36 -0
- package/out/_next/static/chunks/3ciuktttw5i71.js +277 -0
- package/out/_next/static/chunks/{2ho4591ngh3y2.js → 3d0cucf7-qlz9.js} +6 -6
- package/out/_next/static/chunks/3d2mjl6ls12h_.js +5 -0
- package/out/_next/static/chunks/3dxz87hw4lx39.js +1 -0
- package/out/_next/static/chunks/3f2rrfc7u_j6o.js +1 -0
- package/out/_next/static/chunks/3fvf-l1-bp--9.js +5 -0
- package/out/_next/static/chunks/3hubf9lb56zls.js +7 -0
- package/out/_next/static/chunks/3hxp-xwv4g3ek.js +1 -0
- package/out/_next/static/chunks/3ljqspad_536i.js +4 -0
- package/out/_next/static/chunks/3mnca5jc1q8c_.js +43 -0
- package/out/_next/static/chunks/{0q2e8h8498pvo.js → 3qqhr2o1soxh_.js} +1 -1
- package/out/_next/static/chunks/3skw31vkshyt2.js +1 -0
- package/out/_next/static/chunks/3szdkqecej3fb.js +1 -0
- package/out/_next/static/chunks/3t-6admtmkzzy.js +39 -0
- package/out/_next/static/chunks/3t1q9dc-nlr3j.js +1 -0
- package/out/_next/static/chunks/3u6_-nj6i_l_r.js +1 -0
- package/out/_next/static/chunks/3uekb_s0jaboj.js +1 -0
- package/out/_next/static/chunks/3uql2yuaknc-3.js +1 -0
- package/out/_next/static/chunks/3vf-3rhaiq_n1.js +6 -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/3ylglplnmhho2.js +5 -0
- package/out/_next/static/chunks/3ym4exwo-py5d.js +23 -0
- package/out/_next/static/chunks/3yre4w19nehxf.js +1 -0
- package/out/_next/static/chunks/3z51ql4pljujr.js +81 -0
- package/out/_next/static/chunks/3zhcq27e8jjni.js +28 -0
- package/out/_next/static/chunks/40fs5lh83_iox.js +1 -0
- package/out/_next/static/chunks/40kvqov4hgd5s.js +31 -0
- package/out/_next/static/chunks/40trlm34cnu6v.js +108 -0
- package/out/_next/static/chunks/43n5979c79f0d.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 +1 -1
- package/out/_next/static/LYf4c16v7ZGmJ_J77NFgQ/_buildManifest.js +0 -258
- 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/07o9g5hqfpvjc.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/0a5nr3-_q7xx1.js +0 -100
- package/out/_next/static/chunks/0amj69l-d5-85.js +0 -1
- package/out/_next/static/chunks/0b05sca2hdcys.js +0 -30
- 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/0ewr86ctcw7fx.js +0 -1
- 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/0n3ixknyc6_ma.js +0 -1
- 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/0qj3xdz043z8l.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/0zzoylv2rl1xu.js +0 -3
- package/out/_next/static/chunks/10m_etq9t2pkv.js +0 -7
- package/out/_next/static/chunks/11ehf3t7qzbua.js +0 -4
- package/out/_next/static/chunks/11go520d1hcm5.js +0 -1
- package/out/_next/static/chunks/16le3cqxj12u6.js +0 -5
- package/out/_next/static/chunks/16zxfacsu_jbq.js +0 -1
- 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/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/1f7-0l47bx76m.js +0 -13
- package/out/_next/static/chunks/1fbsyczyh9hwh.js +0 -1
- package/out/_next/static/chunks/1g96s7-fwvokd.js +0 -2
- package/out/_next/static/chunks/1hih2cxmgqcd3.js +0 -10
- package/out/_next/static/chunks/1hviha1jcz_og.js +0 -4
- 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/1qi5yjvzxspwv.js +0 -15
- package/out/_next/static/chunks/1rsexg6dg82f0.js +0 -7
- package/out/_next/static/chunks/1s9v5dndopkuz.js +0 -12
- package/out/_next/static/chunks/1sksqjru86hlm.js +0 -1
- 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/20f2gs8iua6fk.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/22-o32hlte36e.js +0 -130
- 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/23swqksldp1rl.js +0 -5
- 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/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/2cj703xtrf5i6.js +0 -46
- package/out/_next/static/chunks/2cj8g3fxmitaa.js +0 -1
- package/out/_next/static/chunks/2ec7xatyld40t.js +0 -7
- package/out/_next/static/chunks/2hoi6cb1lromr.js +0 -4
- package/out/_next/static/chunks/2i5k6tlwd58hp.js +0 -1
- package/out/_next/static/chunks/2iy0jr00qhq-q.js +0 -5
- package/out/_next/static/chunks/2jonbba27xy3u.js +0 -14
- 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/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/2rb1-3t3-sv5s.js +0 -8
- 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/2vveotzevnkfp.js +0 -1
- package/out/_next/static/chunks/2wkg65dtx56je.js +0 -155
- package/out/_next/static/chunks/2wmsx4gjbgvfv.js +0 -18
- 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/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/33v05ol-ire9s.js +0 -10
- package/out/_next/static/chunks/33yzdcbu7w60l.js +0 -13
- 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/3bqaitmo4sp-a.js +0 -116
- 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/3fqonijzsxy8u.js +0 -28
- package/out/_next/static/chunks/3g1ale0hytu9q.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/3oq-khgfpo0nx.js +0 -39
- package/out/_next/static/chunks/3ps25ocfalcap.js +0 -43
- package/out/_next/static/chunks/3q3m075m4bxz1.js +0 -2
- 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/3vgurvjr6hkyv.js +0 -4
- 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/3wlvio5id54ow.js +0 -5
- 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/40l5d7o95aw37.js +0 -4
- 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/{LYf4c16v7ZGmJ_J77NFgQ → DUswS2PYjGTW9uUGVJ6xd}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{LYf4c16v7ZGmJ_J77NFgQ → DUswS2PYjGTW9uUGVJ6xd}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,62274,e=>{"use strict";var s=e.i(91398),a=e.i(53246),t=e.i(27572),l=e.i(64710),d=e.i(92892),r=e.i(61113),i=e.i(76929),n=e.i(40841),o=e.i(23717),c=e.i(5370),u=e.i(29868),m=e.i(3326),f=e.i(66773),x=e.i(31494),g=e.i(90997),h=e.i(12197),b=e.i(41523),p=e.i(34905),v=e.i(58971),w=e.i(60195),j=e.i(51870),y=e.i(37504),N=e.i(50945),M=e.i(97438),k=e.i(73587),_=e.i(43266),C=e.i(75719),I=e.i(69211),$=e.i(72094),S=e.i(99160),A=e.i(98949),U=e.i(79542),E=e.i(72419);let P=({roles:e,userId:a})=>{let{formatMessage:t}=(0,m.S)(),{setRoles:l}=(0,U.f)(),{hasRole:d}=(0,v.f)(),{systemRoles:r}=(0,_.f)(),i=async({updatedRoles:e})=>(await l({roles:e,userId:a}),{success:!0}),n=t({id:"role_updated",defaultMessage:"Role updated successfully!"}),o=(0,A.f)({submit:i,successMessage:n,getSubmitErrorMessage:e=>(0,E.f)(e,t),initialValues:{updatedRoles:[...e||[]]}});return(0,s.jsxs)(I.f,{form:o,className:"flex justify-between align-top gap-4",children:[(0,s.jsx)(C.f,{name:"updatedRoles",labelClassName:"flex items-center mt-1",choiceContainerClassName:"flex flex-wrap",inputClassName:"ml-2",options:Object.fromEntries((r||[]).map(e=>[e,e])),label:t({id:"select_role",defaultMessage:"Select role"}),placeholder:t({id:"select_role",defaultMessage:"Select role"}),multiple:!0},"user-roles"),(0,s.jsx)($.f,{}),d(f.C.ManageUsers)&&(0,s.jsx)(S.f,{disabled:!d(f.C.ManageUsers),label:t({id:"update_role",defaultMessage:"Update role"})})]})};var R=e.i(59080),q=e.i(76204);let D=R.f`
|
|
2
2
|
mutation SetUserTags($tags: [LowerCaseString]!, $userId: ID!) {
|
|
3
3
|
setUserTags(tags: $tags, userId: $userId) {
|
|
4
4
|
_id
|
|
@@ -143,13 +143,13 @@
|
|
|
143
143
|
}
|
|
144
144
|
${eG.f}
|
|
145
145
|
${eK.f}
|
|
146
|
-
`;var eX=e.i(56599);let eY={CENTRALIZED:"purple",EXPORTING:"yellow",DECENTRALIZED:"green"},e0=({_id:e})=>{let{tokens:a,web3Addresses:t,loading:l}=(({userId:e=null})=>{let{data:s,loading:a,error:t}=(0,J.f)(eJ,{variables:{userId:e}});return{tokens:s?.user?.tokens||[],web3Addresses:s?.user?.web3Addresses||[],loading:a,error:t}})({userId:e}),{formatMessage:d}=(0,m.S)(),{formatPrice:r}=(0,eT.d)();return l?(0,s.jsx)(h.f,{}):a.length?(0,s.jsx)("div",{className:"bg-white",children:(0,s.jsx)("div",{className:"mt-5 -mx-px grid grid-cols-1 border-l border-slate-300 sm:mx-0 sm:grid-cols-2 lg:grid-cols-3",children:a?.map(({_id:e,walletAddress:a,chainId:t,tokenSerialNumber:l,product:i,status:n})=>(0,s.jsxs)("div",{className:"group relative border-r border-b border-slate-300 p-4 sm:p-6",children:[(0,s.jsxs)(eH.default,{href:`/products?slug=${(0,eQ.U)(i)}`,className:"aspect-w-1 aspect-h-1 overflow-hidden rounded-lg bg-slate-200 group-hover:opacity-75",children:[(0,s.jsx)("div",{children:(0,s.jsx)(es.f,{src:i?.media?.length&&i.media[0].file?.url||"/no-image.jpg",loader:ea.f,alt:d({id:"product-image",defaultMessage:"Product image"}),width:100,height:100,layout:"responsive",className:" h-full w-full "})}),(0,s.jsxs)("div",{className:"pt-2",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-slate-900",children:i?.texts?.title}),(0,s.jsx)("p",{children:d({id:"token-id",defaultMessage:"Token Serial Number {tokenSerialNumber}"},{tokenSerialNumber:l})}),a?(0,s.jsx)("div",{children:d({id:"wallet-address",defaultMessage:"Wallet {walletAddress}"},{walletAddress:(0,ez.f)(a)})}):null,(0,s.jsx)("p",{children:d({id:"chain-id",defaultMessage:"Chain ID {chainId}"},{chainId:t})}),(0,s.jsx)("p",{children:d({id:"token-id",defaultMessage:"Token Serial Number {tokenSerialNumber}"},{tokenSerialNumber:l})}),(0,s.jsx)("p",{className:"mt-2 text-base font-medium text-slate-900",children:r(i?.simulatedPrice)}),(0,s.jsx)("div",{className:"mt-2 mb-8",children:(0,s.jsx)("div",{className:"",children:(0,s.jsx)(Y.f,{text:"CENTRALIZED"===n?"Off-Chain 🏛":"On-Chain ⛓",color:eY[n]})})})]})]}),"DECENTRALIZED"!==n&&(0,s.jsx)("div",{className:"mt-3 flex items-center justify-between",children:(0,s.jsx)(eX.f,{tokenId:e,tokenStatus:n})})]},e))})}):(0,s.jsx)(eh.f,{message:d({id:"tokens",defaultMessage:"Tokens"})})},e1=({user:e,selectedView:a,...t})=>e?"profile"===a?(0,s.jsx)(e$,{...e}):"account"===a?(0,s.jsx)(eg,{...e}):"orders"===a?(0,s.jsx)(eF,{...e}):"quotations"===a?(0,s.jsx)(eB,{...e}):"enrollments"===a?(0,s.jsx)(eR,{...e}):"reviews"===a?(0,s.jsx)(p.f,{...e}):"payment_credentials"===a?(0,s.jsx)(eb,{...e}):"tokens"===a?(0,s.jsx)(e0,{...e}):"extended"===a?(0,s.jsx)(x.f,{data:t}):"logs"===a?(0,s.jsx)(g.f,{...e}):(0,s.jsx)(e$,{...e}):(0,s.jsx)(h.f,{});e.s(["f",0,({user:e,extendedData:x})=>{let{formatMessage:g}=(0,m.S)(),{hasRole:h}=(0,v.f)(),p=[{id:"profile",title:g({id:"profile",defaultMessage:"Profile"}),Icon:(0,s.jsx)(o.f,{className:"h-5 w-5"})},{id:"account",title:g({id:"account",defaultMessage:"Account"}),Icon:(0,s.jsx)(d.f,{className:"h-5 w-5"})},{id:"orders",title:g({id:"orders",defaultMessage:"Orders"}),Icon:(0,s.jsx)(n.f,{className:"h-5 w-5"})},h(f.C.ViewUserQuotations)&&{id:"quotations",title:g({id:"quotations",defaultMessage:"Quotations"}),Icon:(0,s.jsx)(a.f,{className:"h-5 w-5"})},h(f.C.ViewUserEnrollments)&&{id:"enrollments",title:g({id:"enrollments",defaultMessage:"Enrollments"}),Icon:(0,s.jsx)(t.f,{className:"h-5 w-5"})},{id:"payment_credentials",title:g({id:"payment_credentials",defaultMessage:"Payment credentials"}),Icon:(0,s.jsx)(l.f,{className:"h-5 w-5"})},{id:"tokens",title:g({id:"tokens",defaultMessage:"Tokens"}),Icon:(0,s.jsx)(c.f,{className:"h-5 w-5"})},h(f.C.ViewUserProductReviews)&&{id:"reviews",title:g({id:"reviews",defaultMessage:"Reviews"}),Icon:(0,s.jsx)(r.f,{className:"h-5 w-5"})},{id:"logs",title:g({id:"user-activities",defaultMessage:"Activity"}),Icon:(0,s.jsx)(u.f,{className:"h-5 w-5"})},null!==x&&{id:"extended",title:g({id:"extended-fields",defaultMessage:"Extended"}),Icon:(0,s.jsx)(i.f,{className:"h-5 w-5"})}].filter(Boolean);return(0,s.jsx)(b.f,{tabItems:p,defaultTab:"profile",children:(0,s.jsx)(e1,{user:e,...x})})}],62274)},72419,e=>{var s=e.i(22422);e.s(["f",0,(e,a)=>{let t=s.f.is(e)?e.errors[0]:e;return t?.extensions?.code==="LastAdminError"?a({id:"last_admin_required",defaultMessage:"You can't delete the only active administrator or revoke their admin role. Assign the admin role to another active user first."}):t?.message||a({id:"error-something-went-wrong",defaultMessage:"Unable to complete the task successfully. Please try again."})}])},23745,e=>{var s=e.i(59080),a=e.i(76204);let t=s.f`
|
|
146
|
+
`;var eX=e.i(56599);let eY={CENTRALIZED:"purple",EXPORTING:"yellow",DECENTRALIZED:"green"},e0=({_id:e})=>{let{tokens:a,web3Addresses:t,loading:l}=(({userId:e=null})=>{let{data:s,loading:a,error:t}=(0,J.f)(eJ,{variables:{userId:e}});return{tokens:s?.user?.tokens||[],web3Addresses:s?.user?.web3Addresses||[],loading:a,error:t}})({userId:e}),{formatMessage:d}=(0,m.S)(),{formatPrice:r}=(0,eT.d)();return l?(0,s.jsx)(h.f,{}):a.length?(0,s.jsx)("div",{className:"bg-white",children:(0,s.jsx)("div",{className:"mt-5 -mx-px grid grid-cols-1 border-l border-slate-300 sm:mx-0 sm:grid-cols-2 lg:grid-cols-3",children:a?.map(({_id:e,walletAddress:a,chainId:t,tokenSerialNumber:l,product:i,status:n})=>(0,s.jsxs)("div",{className:"group relative border-r border-b border-slate-300 p-4 sm:p-6",children:[(0,s.jsxs)(eH.default,{href:`/products?slug=${(0,eQ.U)(i)}`,className:"aspect-w-1 aspect-h-1 overflow-hidden rounded-lg bg-slate-200 group-hover:opacity-75",children:[(0,s.jsx)("div",{children:(0,s.jsx)(es.f,{src:i?.media?.length&&i.media[0].file?.url||"/no-image.jpg",loader:ea.f,alt:d({id:"product-image",defaultMessage:"Product image"}),width:100,height:100,layout:"responsive",className:" h-full w-full "})}),(0,s.jsxs)("div",{className:"pt-2",children:[(0,s.jsx)("h3",{className:"text-lg font-medium text-slate-900",children:i?.texts?.title}),(0,s.jsx)("p",{children:d({id:"token-id",defaultMessage:"Token Serial Number {tokenSerialNumber}"},{tokenSerialNumber:l})}),a?(0,s.jsx)("div",{children:d({id:"wallet-address",defaultMessage:"Wallet {walletAddress}"},{walletAddress:(0,ez.f)(a)})}):null,(0,s.jsx)("p",{children:d({id:"chain-id",defaultMessage:"Chain ID {chainId}"},{chainId:t})}),(0,s.jsx)("p",{children:d({id:"token-id",defaultMessage:"Token Serial Number {tokenSerialNumber}"},{tokenSerialNumber:l})}),(0,s.jsx)("p",{className:"mt-2 text-base font-medium text-slate-900",children:r(i?.simulatedPrice)}),(0,s.jsx)("div",{className:"mt-2 mb-8",children:(0,s.jsx)("div",{className:"",children:(0,s.jsx)(Y.f,{text:"CENTRALIZED"===n?"Off-Chain 🏛":"On-Chain ⛓",color:eY[n]})})})]})]}),"DECENTRALIZED"!==n&&(0,s.jsx)("div",{className:"mt-3 flex items-center justify-between",children:(0,s.jsx)(eX.f,{tokenId:e,tokenStatus:n})})]},e))})}):(0,s.jsx)(eh.f,{message:d({id:"tokens",defaultMessage:"Tokens"})})},e1=({user:e,selectedView:a,...t})=>e?"profile"===a?(0,s.jsx)(e$,{...e}):"account"===a?(0,s.jsx)(eg,{...e}):"orders"===a?(0,s.jsx)(eF,{...e}):"quotations"===a?(0,s.jsx)(eB,{...e}):"enrollments"===a?(0,s.jsx)(eR,{...e}):"reviews"===a?(0,s.jsx)(p.f,{...e}):"payment_credentials"===a?(0,s.jsx)(eb,{...e}):"tokens"===a?(0,s.jsx)(e0,{...e}):"extended"===a?(0,s.jsx)(x.f,{data:t}):"logs"===a?(0,s.jsx)(g.f,{...e}):(0,s.jsx)(e$,{...e}):(0,s.jsx)(h.f,{});e.s(["f",0,({user:e,extendedData:x})=>{let{formatMessage:g}=(0,m.S)(),{hasRole:h}=(0,v.f)(),p=[{id:"profile",title:g({id:"profile",defaultMessage:"Profile"}),Icon:(0,s.jsx)(o.f,{className:"h-5 w-5"})},{id:"account",title:g({id:"account",defaultMessage:"Account"}),Icon:(0,s.jsx)(d.f,{className:"h-5 w-5"})},{id:"orders",title:g({id:"orders",defaultMessage:"Orders"}),Icon:(0,s.jsx)(n.f,{className:"h-5 w-5"})},h(f.C.ViewUserQuotations)&&{id:"quotations",title:g({id:"quotations",defaultMessage:"Quotations"}),Icon:(0,s.jsx)(a.f,{className:"h-5 w-5"})},h(f.C.ViewUserEnrollments)&&{id:"enrollments",title:g({id:"enrollments",defaultMessage:"Enrollments"}),Icon:(0,s.jsx)(t.f,{className:"h-5 w-5"})},{id:"payment_credentials",title:g({id:"payment_credentials",defaultMessage:"Payment credentials"}),Icon:(0,s.jsx)(l.f,{className:"h-5 w-5"})},{id:"tokens",title:g({id:"tokens",defaultMessage:"Tokens"}),Icon:(0,s.jsx)(c.f,{className:"h-5 w-5"})},h(f.C.ViewUserProductReviews)&&{id:"reviews",title:g({id:"reviews",defaultMessage:"Reviews"}),Icon:(0,s.jsx)(r.f,{className:"h-5 w-5"})},{id:"logs",title:g({id:"user-activities",defaultMessage:"Activity"}),Icon:(0,s.jsx)(u.f,{className:"h-5 w-5"})},null!==x&&{id:"extended",title:g({id:"extended-fields",defaultMessage:"Extended"}),Icon:(0,s.jsx)(i.f,{className:"h-5 w-5"})}].filter(Boolean);return(0,s.jsx)(b.f,{tabItems:p,defaultTab:"profile",children:(0,s.jsx)(e1,{user:e,...x})})}],62274)},72419,e=>{"use strict";var s=e.i(22422);e.s(["f",0,(e,a)=>{let t=s.f.is(e)?e.errors[0]:e;return t?.extensions?.code==="LastAdminError"?a({id:"last_admin_required",defaultMessage:"You can't delete the only active administrator or revoke their admin role. Assign the admin role to another active user first."}):t?.message||a({id:"error-something-went-wrong",defaultMessage:"Unable to complete the task successfully. Please try again."})}])},23745,e=>{"use strict";var s=e.i(59080),a=e.i(76204);let t=s.f`
|
|
147
147
|
mutation DeleteUser($userId: ID) {
|
|
148
148
|
removeUser(userId: $userId) {
|
|
149
149
|
_id
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
`;e.s(["f",0,()=>{let[e]=(0,a.f)(t);return{deleteUser:async s=>e({variables:{userId:s}})}}])},53246,92892,40841,23717,5370,29868,90997,34905,37504,50945,97438,73587,43266,75719,79542,e=>{var s=e.i(91788);let a=s.forwardRef(function({title:e,titleId:a,...t},l){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},t),e?s.createElement("title",{id:a},e):null,s.createElement("path",{fillRule:"evenodd",d:"M1 4a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4Zm12 4a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM4 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm13-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM1.75 14.5a.75.75 0 0 0 0 1.5c4.417 0 8.693.603 12.749 1.73 1.111.309 2.251-.512 2.251-1.696v-.784a.75.75 0 0 0-1.5 0v.784a.272.272 0 0 1-.35.25A49.043 49.043 0 0 0 1.75 14.5Z",clipRule:"evenodd"}))});e.s(["f",0,a],53246);let t=s.forwardRef(function({title:e,titleId:a,...t},l){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},t),e?s.createElement("title",{id:a},e):null,s.createElement("path",{fillRule:"evenodd",d:"M10 1a4.5 4.5 0 0 0-4.5 4.5V9H5a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2h-.5V5.5A4.5 4.5 0 0 0 10 1Zm3 8V5.5a3 3 0 1 0-6 0V9h6Z",clipRule:"evenodd"}))});e.s(["f",0,t],92892);let l=s.forwardRef(function({title:e,titleId:a,...t},l){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},t),e?s.createElement("title",{id:a},e):null,s.createElement("path",{d:"M1 1.75A.75.75 0 0 1 1.75 1h1.628a1.75 1.75 0 0 1 1.734 1.51L5.18 3a65.25 65.25 0 0 1 13.36 1.412.75.75 0 0 1 .58.875 48.645 48.645 0 0 1-1.618 6.2.75.75 0 0 1-.712.513H6a2.503 2.503 0 0 0-2.292 1.5H17.25a.75.75 0 0 1 0 1.5H2.76a.75.75 0 0 1-.748-.807 4.002 4.002 0 0 1 2.716-3.486L3.626 2.716a.25.25 0 0 0-.248-.216H1.75A.75.75 0 0 1 1 1.75ZM6 17.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM15.5 19a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}))});e.s(["f",0,l],40841);let d=s.forwardRef(function({title:e,titleId:a,...t},l){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},t),e?s.createElement("title",{id:a},e):null,s.createElement("path",{d:"M10 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM3.465 14.493a1.23 1.23 0 0 0 .41 1.412A9.957 9.957 0 0 0 10 18c2.31 0 4.438-.784 6.131-2.1.43-.333.604-.903.408-1.41a7.002 7.002 0 0 0-13.074.003Z"}))});e.s(["f",0,d],23717);let r=s.forwardRef(function({title:e,titleId:a,...t},l){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},t),e?s.createElement("title",{id:a},e):null,s.createElement("path",{d:"M10.75 10.818v2.614A3.13 3.13 0 0 0 11.888 13c.482-.315.612-.648.612-.875 0-.227-.13-.56-.612-.875a3.13 3.13 0 0 0-1.138-.432ZM8.33 8.62c.053.055.115.11.184.164.208.16.46.284.736.363V6.603a2.45 2.45 0 0 0-.35.13c-.14.065-.27.143-.386.233-.377.292-.514.627-.514.909 0 .184.058.39.202.592.037.051.08.102.128.152Z"}),s.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-8-6a.75.75 0 0 1 .75.75v.316a3.78 3.78 0 0 1 1.653.713c.426.33.744.74.925 1.2a.75.75 0 0 1-1.395.55 1.35 1.35 0 0 0-.447-.563 2.187 2.187 0 0 0-.736-.363V9.3c.698.093 1.383.32 1.959.696.787.514 1.29 1.27 1.29 2.13 0 .86-.504 1.616-1.29 2.13-.576.377-1.261.603-1.96.696v.299a.75.75 0 1 1-1.5 0v-.3c-.697-.092-1.382-.318-1.958-.695-.482-.315-.857-.717-1.078-1.188a.75.75 0 1 1 1.359-.636c.08.173.245.376.54.569.313.205.706.353 1.138.432v-2.748a3.782 3.782 0 0 1-1.653-.713C6.9 9.433 6.5 8.681 6.5 7.875c0-.805.4-1.558 1.097-2.096a3.78 3.78 0 0 1 1.653-.713V4.75A.75.75 0 0 1 10 4Z",clipRule:"evenodd"}))});e.s(["f",0,r],5370);let i=s.forwardRef(function({title:e,titleId:a,...t},l){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},t),e?s.createElement("title",{id:a},e):null,s.createElement("path",{fillRule:"evenodd",d:"M15.988 3.012A2.25 2.25 0 0 1 18 5.25v6.5A2.25 2.25 0 0 1 15.75 14H13.5v-3.379a3 3 0 0 0-.879-2.121l-3.12-3.121a3 3 0 0 0-1.402-.791 2.252 2.252 0 0 1 1.913-1.576A2.25 2.25 0 0 1 12.25 1h1.5a2.25 2.25 0 0 1 2.238 2.012ZM11.5 3.25a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 .75.75v.25h-3v-.25Z",clipRule:"evenodd"}),s.createElement("path",{d:"M3.5 6A1.5 1.5 0 0 0 2 7.5v9A1.5 1.5 0 0 0 3.5 18h7a1.5 1.5 0 0 0 1.5-1.5v-5.879a1.5 1.5 0 0 0-.44-1.06L8.44 6.439A1.5 1.5 0 0 0 7.378 6H3.5Z"}))});e.s(["f",0,i],29868);var n=e.i(91398),o=e.i(
|
|
152
|
+
`;e.s(["f",0,()=>{let[e]=(0,a.f)(t);return{deleteUser:async s=>e({variables:{userId:s}})}}])},53246,92892,40841,23717,5370,29868,90997,34905,37504,50945,97438,73587,43266,75719,79542,e=>{"use strict";var s=e.i(91788);let a=s.forwardRef(function({title:e,titleId:a,...t},l){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},t),e?s.createElement("title",{id:a},e):null,s.createElement("path",{fillRule:"evenodd",d:"M1 4a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4Zm12 4a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM4 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm13-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM1.75 14.5a.75.75 0 0 0 0 1.5c4.417 0 8.693.603 12.749 1.73 1.111.309 2.251-.512 2.251-1.696v-.784a.75.75 0 0 0-1.5 0v.784a.272.272 0 0 1-.35.25A49.043 49.043 0 0 0 1.75 14.5Z",clipRule:"evenodd"}))});e.s(["f",0,a],53246);let t=s.forwardRef(function({title:e,titleId:a,...t},l){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},t),e?s.createElement("title",{id:a},e):null,s.createElement("path",{fillRule:"evenodd",d:"M10 1a4.5 4.5 0 0 0-4.5 4.5V9H5a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2h-.5V5.5A4.5 4.5 0 0 0 10 1Zm3 8V5.5a3 3 0 1 0-6 0V9h6Z",clipRule:"evenodd"}))});e.s(["f",0,t],92892);let l=s.forwardRef(function({title:e,titleId:a,...t},l){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},t),e?s.createElement("title",{id:a},e):null,s.createElement("path",{d:"M1 1.75A.75.75 0 0 1 1.75 1h1.628a1.75 1.75 0 0 1 1.734 1.51L5.18 3a65.25 65.25 0 0 1 13.36 1.412.75.75 0 0 1 .58.875 48.645 48.645 0 0 1-1.618 6.2.75.75 0 0 1-.712.513H6a2.503 2.503 0 0 0-2.292 1.5H17.25a.75.75 0 0 1 0 1.5H2.76a.75.75 0 0 1-.748-.807 4.002 4.002 0 0 1 2.716-3.486L3.626 2.716a.25.25 0 0 0-.248-.216H1.75A.75.75 0 0 1 1 1.75ZM6 17.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM15.5 19a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}))});e.s(["f",0,l],40841);let d=s.forwardRef(function({title:e,titleId:a,...t},l){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},t),e?s.createElement("title",{id:a},e):null,s.createElement("path",{d:"M10 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM3.465 14.493a1.23 1.23 0 0 0 .41 1.412A9.957 9.957 0 0 0 10 18c2.31 0 4.438-.784 6.131-2.1.43-.333.604-.903.408-1.41a7.002 7.002 0 0 0-13.074.003Z"}))});e.s(["f",0,d],23717);let r=s.forwardRef(function({title:e,titleId:a,...t},l){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},t),e?s.createElement("title",{id:a},e):null,s.createElement("path",{d:"M10.75 10.818v2.614A3.13 3.13 0 0 0 11.888 13c.482-.315.612-.648.612-.875 0-.227-.13-.56-.612-.875a3.13 3.13 0 0 0-1.138-.432ZM8.33 8.62c.053.055.115.11.184.164.208.16.46.284.736.363V6.603a2.45 2.45 0 0 0-.35.13c-.14.065-.27.143-.386.233-.377.292-.514.627-.514.909 0 .184.058.39.202.592.037.051.08.102.128.152Z"}),s.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-8-6a.75.75 0 0 1 .75.75v.316a3.78 3.78 0 0 1 1.653.713c.426.33.744.74.925 1.2a.75.75 0 0 1-1.395.55 1.35 1.35 0 0 0-.447-.563 2.187 2.187 0 0 0-.736-.363V9.3c.698.093 1.383.32 1.959.696.787.514 1.29 1.27 1.29 2.13 0 .86-.504 1.616-1.29 2.13-.576.377-1.261.603-1.96.696v.299a.75.75 0 1 1-1.5 0v-.3c-.697-.092-1.382-.318-1.958-.695-.482-.315-.857-.717-1.078-1.188a.75.75 0 1 1 1.359-.636c.08.173.245.376.54.569.313.205.706.353 1.138.432v-2.748a3.782 3.782 0 0 1-1.653-.713C6.9 9.433 6.5 8.681 6.5 7.875c0-.805.4-1.558 1.097-2.096a3.78 3.78 0 0 1 1.653-.713V4.75A.75.75 0 0 1 10 4Z",clipRule:"evenodd"}))});e.s(["f",0,r],5370);let i=s.forwardRef(function({title:e,titleId:a,...t},l){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},t),e?s.createElement("title",{id:a},e):null,s.createElement("path",{fillRule:"evenodd",d:"M15.988 3.012A2.25 2.25 0 0 1 18 5.25v6.5A2.25 2.25 0 0 1 15.75 14H13.5v-3.379a3 3 0 0 0-.879-2.121l-3.12-3.121a3 3 0 0 0-1.402-.791 2.252 2.252 0 0 1 1.913-1.576A2.25 2.25 0 0 1 12.25 1h1.5a2.25 2.25 0 0 1 2.238 2.012ZM11.5 3.25a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 .75.75v.25h-3v-.25Z",clipRule:"evenodd"}),s.createElement("path",{d:"M3.5 6A1.5 1.5 0 0 0 2 7.5v9A1.5 1.5 0 0 0 3.5 18h7a1.5 1.5 0 0 0 1.5-1.5v-5.879a1.5 1.5 0 0 0-.44-1.06L8.44 6.439A1.5 1.5 0 0 0 7.378 6H3.5Z"}))});e.s(["f",0,i],29868);var n=e.i(91398),o=e.i(3326),c=e.i(84818),u=e.i(83147);let m=({label:e,value:s})=>(0,n.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between mb-3",children:[(0,n.jsx)("label",{className:"text-sm text-slate-600 dark:text-slate-400 mb-1 md:mb-0 md:mr-4",children:e}),(0,n.jsx)("span",{className:"text-sm text-right text-slate-900 dark:text-slate-200",children:s})]}),f=({loginData:e})=>{let{formatMessage:s,locale:a}=(0,o.S)(),{formatDateTime:t}=(0,c.f)();return e?(0,n.jsxs)("div",{className:"bg-white dark:bg-slate-800 rounded-lg shadow-sm overflow-hidden mt-4 p-4",children:[(0,n.jsx)(m,{label:s({id:"country",defaultMessage:"Country"}),value:e?.countryCode&&(0,u.Q)(a,e?.countryCode)}),(0,n.jsx)(m,{label:s({id:"language",defaultMessage:"Language"}),value:e?.locale&&(0,u.I)(a,e.locale?.split("_")[0])}),(0,n.jsx)(m,{label:s({id:"browser",defaultMessage:"Browser"}),value:e.userAgent}),(0,n.jsx)(m,{label:s({id:"ip",defaultMessage:"IP Address"}),value:e.remoteAddress}),(0,n.jsx)(m,{label:s({id:"time",defaultMessage:"Time"}),value:e.timestamp?t(e?.timestamp,{dateStyle:"short",timeStyle:"short"}):"n/a"})]}):null},x=({firstName:e,lastName:s,company:a,addressLine:t,addressLine2:l,postalCode:d,countryCode:r,regionCode:i,city:c})=>{let{formatMessage:f,locale:x}=(0,o.S)();return(0,n.jsxs)("div",{className:"bg-white dark:bg-slate-800 rounded-lg shadow-sm overflow-hidden mt-4 p-4",children:[(0,n.jsx)(m,{label:f({id:"fullName",defaultMessage:"FullName"}),value:`${e||""} ${s||""}`}),(0,n.jsx)(m,{label:f({id:"company",defaultMessage:"Company"}),value:a}),(0,n.jsx)(m,{label:f({id:"address",defaultMessage:"Address"}),value:t}),(0,n.jsx)(m,{label:f({id:"address2",defaultMessage:"Address 2"}),value:l}),(0,n.jsx)(m,{label:f({id:"postal_code",defaultMessage:"Postal/ZIP code"}),value:d}),(0,n.jsx)(m,{label:f({id:"country",defaultMessage:"Country"}),value:(0,u.Q)(x,r)}),(0,n.jsx)(m,{label:f({id:"city",defaultMessage:"City"}),value:c}),(0,n.jsx)(m,{label:f({id:"region",defaultMessage:"Region"}),value:i})]})};e.s(["f",0,({lastBillingAddress:e,lastLogin:s})=>(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"row",children:(0,n.jsx)(f,{loginData:s})}),(0,n.jsx)("div",{className:"row",children:(0,n.jsx)(x,{...e})})]})],90997);var g=e.i(59080),h=e.i(32171),b=e.i(66773),p=e.i(54529),v=e.i(87593),w=e.i(57561);let j=g.f`
|
|
153
153
|
query UserProductReviews(
|
|
154
154
|
$userId: ID!
|
|
155
155
|
$limit: Int
|
|
@@ -224,4 +224,4 @@
|
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
${q.f}
|
|
227
|
-
`;e.s(["f",0,()=>{let[e]=(0,U.f)(G);return{setRoles:async({roles:s=[],userId:a=null})=>e({variables:{roles:s,userId:a},refetchQueries:["User"]})}}],79542)}])
|
|
227
|
+
`;e.s(["f",0,()=>{let[e]=(0,U.f)(G);return{setRoles:async({roles:s=[],userId:a=null})=>e({variables:{roles:s,userId:a},refetchQueries:["User"]})}}],79542)}]);
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,61494,e=>{"use strict";var t=e.i(91398),r=e.i(41158),s=e.i(3828),a=e.i(3326);e.s(["f",0,({routeName:e=null,currentPageTitle:l=null,depth:n=null})=>{let o=(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=o.asPath?.split("/")?.filter((e,t)=>o.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: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=>{"use strict";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:o="",variant:i="primary",size:d="md",type:c="button",loading:u=!1,icon:f,iconRight:m,fullWidth:p=!1,rounded:x="md",ariaLabel:h,...g})=>{let b=s||e,v=(f||m)&&b?"gap-2":"";return(0,t.jsx)("button",{id:o,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"}[i],v,{"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"}),b]}):(0,t.jsxs)(t.Fragment,{children:[f,b,m]})})}])},62100,e=>{"use strict";var t=e.i(91398),r=e.i(24557),s=e.i(72043),a=e.i(3326);e.s(["f",0,({onClick:e,className:l="",icon:n=null,textRight:o="",textLeft:i="",ariaLabel:d=""})=>{let{formatMessage:c}=(0,a.S)();return(0,t.jsxs)("button",{"aria-label":d||c({id:"delete",defaultMessage:"Delete"}),id:"delete_button",type:"button",onClick:e,className:(0,s.default)("flex justify-center items-center rounded-full dark:bg-slate-800 p-2 w-8 h-8 text-sm text-rose-500 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/20 focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2",l),children:[i||"",n||(0,t.jsx)(r.f,{className:"h-5 w-5"}),o||""]})}])},31494,e=>{"use strict";var t=e.i(91398),r=e.i(3326),s=e.i(84818),a=e.i(35065),l=e.i(64591);let n=({value:e})=>{let{formatDateTime:n}=(0,s.f)(),{formatMessage:o}=(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:o({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)},o=({value:e})=>(0,t.jsx)("h3",{className:"text-base font-medium",children:(0,t.jsx)("span",{className:"text-slate-900",children:e})}),i=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)(o,{value:s},s)),a.forEach(e=>{let a=r[e];if(Array.isArray(a))if(l.push((0,t.jsx)(o,{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:i({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(i({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)(o,{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)(o,{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,i])},17644,e=>{"use strict";var t=e.i(91398),r=e.i(58678),s=e.i(41158),a=e.i(3326),l=e.i(37369),n=e.i(81013);e.s(["f",0,({headerText:e=null,onEdit:o=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)(n.f,{variant:"secondary",icon:(0,t.jsx)(l.f,{className:"h-5 w-5"}),text:f||m({id:"add",defaultMessage:"Add"})})}),o&&(0,t.jsx)(n.f,{variant:"secondary",onClick:o,text:m({id:"edit",defaultMessage:"Edit"})}),i&&(0,t.jsx)(n.f,{variant:"danger",onClick:i,text:m({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},57468,e=>{"use strict";var t=e.i(91398),r=e.i(72043),s=e.i(3326),a=e.i(99160);e.s(["f",0,({cancelText:e=null,showCancel:l=!0,submitText:n=null,showSubmit:o=!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,o?(0,t.jsx)(a.f,{label:n||c({id:"save",defaultMessage:"Save"})}):null]})}])},60195,e=>{"use strict";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:o})=>(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:o||a})]})})])},41523,e=>{"use strict";var t=e.i(91398),r=e.i(72043),s=e.i(3828),a=e.i(91788),l=e.i(3326);e.s(["f",0,({children:e,tabItems:n,defaultTab:o,updateRoute:i=!0})=>{let d=(0,s.useRouter)(),{tab:c=o}=d?.query||{},u=Array.isArray(c)?c[0]:c,{formatMessage:f}=(0,l.S)(),m=e=>{if(i){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})})]})}])},37932,e=>{"use strict";var t=e.i(91398),r=e.i(3326),s=e.i(6607),a=e.i(65153),l=e.i(69211),n=e.i(96015),o=e.i(98949),i=e.i(57468);let d=({tags:e,onSubmit:s,onCancel:a,selectOptions:d=[]})=>{let{formatMessage:c}=(0,r.S)(),u=c({id:"tags_updated",defaultMessage:"Tags updated successfully"}),f=(0,o.f)({submit:s,successMessage:u,onSubmitSuccess:a,initialValues:{tags:e}});return(0,t.jsxs)(l.f,{form:f,id:"add_tag_form",children:[(0,t.jsx)("div",{children:(0,t.jsx)(n.f,{name:"tags",id:"tags",label:c({id:"tags",defaultMessage:"Tags"}),tagList:e,selectOptions:d})}),(0,t.jsx)("div",{className:"border border-t-slate-100 bg-slate-50 mt-6 -mx-6 -mb-6 px-6 dark:bg-slate-900 dark:border-0",children:(0,t.jsx)(i.f,{onCancel:a,className:"justify-end "})})]})};e.s(["f",0,({defaultValue:e,onSubmit:l,enableEdit:n,availableTagOptions:o=[]})=>{let{formatMessage:i}=(0,r.S)(),{setModal:c}=(0,s.f)();return(0,t.jsxs)("div",{className:"flex items-center mr-auto gap-2",children:[(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:e?.length?e.map((e,r)=>(0,t.jsx)("span",{children:(0,t.jsx)(a.f,{text:e,color:"sky"})},`${e}${r+1}`)):(0,t.jsx)("span",{children:(0,t.jsx)(a.f,{text:i({id:"no_tag",defaultMessage:"No Tag"}),color:"slate"})})}),n&&(0,t.jsx)("button",{id:"add_tag",type:"button",className:"rounded-sm hover:shadow-sm px-3 py-2 text-xs inline-flex items-center justify-center text-slate-800 hover:text-slate-900 hover:bg-slate-50 hover:border border-transparent border-1 hover:border-slate-300 dark:text-slate-400 dark:hover:text-slate-200 dark:hover:bg-slate-800 transition-colors focus:outline-hidden focus:ring-2 focus:ring-slate-800",onClick:()=>c((0,t.jsx)(d,{tags:e||[],onCancel:()=>c(""),onSubmit:l,selectOptions:o})),children:i({id:"edit_tags",defaultMessage:"Edit tags"})})]})}],37932)},64591,e=>{"use strict";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:o=!1,className:i="",disabled:d=!1,...c})=>{let u=(0,s.useRouter)(),f=u?.query?.[l]==="true"||o;return(0,t.jsxs)("div",{className:(0,r.default)("",i),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})})]})}])},64479,e=>{"use strict";var t=e.i(59080),r=e.i(76204);let s=t.f`
|
|
2
|
+
mutation ConfirmMediaUpload(
|
|
3
|
+
$mediaUploadTicketId: ID!
|
|
4
|
+
$size: Int!
|
|
5
|
+
$type: String!
|
|
6
|
+
) {
|
|
7
|
+
confirmMediaUpload(
|
|
8
|
+
mediaUploadTicketId: $mediaUploadTicketId
|
|
9
|
+
size: $size
|
|
10
|
+
type: $type
|
|
11
|
+
) {
|
|
12
|
+
_id
|
|
13
|
+
name
|
|
14
|
+
type
|
|
15
|
+
size
|
|
16
|
+
url
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`;e.s(["f",0,(e={})=>{let[t]=(0,r.f)(s,e);return{confirmMediaUpload:async({mediaUploadTicketId:e,size:r,type:s})=>t({variables:{mediaUploadTicketId:e,size:r,type:s}})}}])},93994,e=>{"use strict";let t=async(e,t)=>{let r=await fetch(t,{method:"PUT",body:e});return r.ok?Promise.resolve({}):Promise.reject(Error(r.statusText))};e.s(["f",0,t])},1880,e=>{"use strict";e.s(["U",0,(e={})=>{let{_id:t,texts:r}=e||{};return r||t?`${r?.slug?.split("/").join("")||""}_id_${t}`:null},"P",0,e=>{if(!e)return null;let[t]=e?.split("_id_")||[];return t},"Q",0,e=>{if(!e)return null;let t=e?.split("_id_");return t?.pop()}])},73319,e=>{"use strict";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)])},73483,e=>{"use strict";var t=e.i(91398),r=e.i(72043),s=e.i(3326),a=e.i(91412),l=e.i(91788);let n=l.forwardRef(function({title:e,titleId:t,...r},s){return l.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":t},r),e?l.createElement("title",{id:t},e):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"}))});var o=e.i(7654),i=e.i(31858),d=e.i(3812),c=e.i(98634),u=e.i(82226),f=e.i(60741),m=e.i(29691),p=e.i(41523);let x=({selectedView:e="edit",...s})=>"preview"===e?(0,t.jsx)("div",{className:"prose dark:prose-invert",children:(0,t.jsx)(o.f,{rehypePlugins:[i.f,d.f,c.f],children:s.value})}):(0,t.jsx)("textarea",{className:(0,r.default)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-400 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 border-slate-300 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 placeholder-slate-400 shadow-xs placeholder:text-slate-400 focus:outline-hidden focus:ring-2 focus:ring-slate-800",s.className,{"border-rose-700 placeholder:text-rose-300 placeholder-rose-300":!!s.error}),disabled:s.disabled,id:s.name,name:s.name,rows:s.rows||10,onChange:s.onChange,onBlur:s.onBlur,placeholder:s.placeholder,autoComplete:s.autoComplete||"off",value:s.value});e.s(["f",0,({maxLength:e,validators:r=[],...l})=>{let{formatMessage:o}=(0,s.S)(),i=(0,f.f)({validators:[...r,e&&(0,u.f)(e)],...l}),d=[{id:"editor",title:o({id:"editor",defaultMessage:"Editor"}),Icon:(0,t.jsx)(n,{className:"h-4 w-5"})},{id:"preview",title:o({id:"preview",defaultMessage:"preview"}),Icon:(0,t.jsx)(a.f,{className:"h-4 w-5"})}];return(0,t.jsx)(m.f,{...i,children:(0,t.jsx)("div",{className:"-mt-8",children:(0,t.jsx)(p.f,{tabItems:d,defaultTab:"editor",children:(0,t.jsx)(x,{...i})})})})}],73483)},99160,e=>{"use strict";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:o=!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,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:o}),"aria-label":e,type:"submit",value:e,disabled:p,...c})}])},96015,e=>{"use strict";var t=e.i(91398),r=e.i(72043),s=e.i(68835),a=e.i(60741),l=e.i(82226),n=e.i(29691);e.s(["f",0,({buttonText:e="",validators:o=[],selectOptions:i=[],...d})=>{let c=(0,a.f)({validators:[...o,(0,l.z)(d?.required)],label:"Tags",...d});return(0,t.jsx)(n.f,{...c,children:(0,t.jsx)(s.f,{disabled:c.disabled,id:c.id,name:c.name,className:(0,r.default)({"border-rose-300":!!c.error}),onChange:e=>c.setValue(e),placeholder:c.placeholder,tagList:c.value,buttonText:e,selectOptions:i})})}])},45229,e=>{"use strict";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=[],...o})=>{let i=(0,a.f)({validators:[...n,e&&(0,s.f)(e)],...o});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})})}])},54529,e=>{"use strict";var t=e.i(59080);let r=t.f`
|
|
20
|
+
fragment ProductBriefFragment on Product {
|
|
21
|
+
texts(forceLocale: $forceLocale) {
|
|
22
|
+
_id
|
|
23
|
+
slug
|
|
24
|
+
title
|
|
25
|
+
subtitle
|
|
26
|
+
description
|
|
27
|
+
vendor
|
|
28
|
+
brand
|
|
29
|
+
labels
|
|
30
|
+
locale
|
|
31
|
+
}
|
|
32
|
+
_id
|
|
33
|
+
sequence
|
|
34
|
+
status
|
|
35
|
+
tags
|
|
36
|
+
sequence
|
|
37
|
+
updated
|
|
38
|
+
published
|
|
39
|
+
media {
|
|
40
|
+
_id
|
|
41
|
+
tags
|
|
42
|
+
file {
|
|
43
|
+
_id
|
|
44
|
+
url
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
... on BundleProduct {
|
|
48
|
+
proxies {
|
|
49
|
+
__typename
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
... on SimpleProduct {
|
|
53
|
+
catalogPrice {
|
|
54
|
+
amount
|
|
55
|
+
currencyCode
|
|
56
|
+
}
|
|
57
|
+
proxies {
|
|
58
|
+
__typename
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
... on PlanProduct {
|
|
62
|
+
catalogPrice {
|
|
63
|
+
amount
|
|
64
|
+
currencyCode
|
|
65
|
+
}
|
|
66
|
+
proxies {
|
|
67
|
+
__typename
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
`;e.s(["f",0,r])},76204,e=>{"use strict";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 o(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["f",0,function(e,i){let d=(0,n.f)(i?.client),[c,u]=r.useState(()=>o(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,n={...r,mutation:l},o=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:o});let d=++f.current.mutationId,c=(0,s.f)(n,{...e,context:i});return(0,a.f)(o.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:o};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:o};(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=o(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=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",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)},24557,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",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",{fillRule:"evenodd",d:"M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z",clipRule:"evenodd"}))});e.s(["f",0,r],24557)},91412,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))});e.s(["f",0,r],91412)},37369,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["f",0,r],37369)},67912,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))});e.s(["f",0,r],67912)},9356,e=>{"use strict";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=>{"use strict";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=>{"use strict";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)=>{"use strict";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},o={};function i(e){return s.isMemo(e)?n:o[e.$$typeof]||a}o[s.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[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 o=i(t),x=i(r),h=0;h<n.length;++h){var g=n[h];if(!l[g]&&!(s&&s[g])&&!(x&&x[g])&&!(o&&o[g])){var b=f(r,g);try{d(t,g,b)}catch(e){}}}}return t}},40563,(e,t,r)=>{"use strict";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,o=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,x=s?Symbol.for("react.suspense_list"):60120,h=s?Symbol.for("react.memo"):60115,g=s?Symbol.for("react.lazy"):60116,b=s?Symbol.for("react.block"):60121,v=s?Symbol.for("react.fundamental"):60117,y=s?Symbol.for("react.responder"):60118,j=s?Symbol.for("react.scope"):60119;function k(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 i:case o:case p:return e;default:switch(e=e&&e.$$typeof){case c:case m:case g:case h:case d:return e;default:return t}}case l:return t}}}function w(e){return k(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=g,r.Memo=h,r.Portal=l,r.Profiler=i,r.StrictMode=o,r.Suspense=p,r.isAsyncMode=function(e){return w(e)||k(e)===u},r.isConcurrentMode=w,r.isContextConsumer=function(e){return k(e)===c},r.isContextProvider=function(e){return k(e)===d},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},r.isForwardRef=function(e){return k(e)===m},r.isFragment=function(e){return k(e)===n},r.isLazy=function(e){return k(e)===g},r.isMemo=function(e){return k(e)===h},r.isPortal=function(e){return k(e)===l},r.isProfiler=function(e){return k(e)===i},r.isStrictMode=function(e){return k(e)===o},r.isSuspense=function(e){return k(e)===p},r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===f||e===i||e===o||e===p||e===x||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===d||e.$$typeof===c||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===j||e.$$typeof===b)},r.typeOf=k},49957,(e,t,r)=>{"use strict";e.i(50461),t.exports=e.r(40563)}]);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,11255,(e,t,r)=>{let n="/assortments/AssortmentDetailPage";(window.__NEXT_P=window.__NEXT_P||[]).push([n,()=>e.r(98568)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([n])})},81359,e=>{"use strict";var t=e.i(91398),r=e.i(24608),n=e.i(3326);e.s(["f",0,({onClick:e,text:s=null,Icon:l=null})=>{let{formatMessage:i}=(0,n.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:l||(0,t.jsx)(r.f,{className:"h-5 w-5"})}),s||i({id:"delete",defaultMessage:"Delete"})]})}])},11056,e=>{"use strict";var t=e.i(91398),r=e.i(91788),n=e.i(5505),s=e.i(57561);e.s(["f",0,({children:e,onlyFull:l=!1})=>{let{languageDialectList:i,selectedLocale:a,setSelectedLocale:o}=(0,s.f)(),u=(0,r.useContext)(n.W),c=i.filter(e=>!l||e.isoCode.includes("-"));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`w-fit mt-5 mb-3 ${u?"ml-5":""}`,children:(0,t.jsx)("select",{id:"locale-wrapper",className:"cursor-pointer rounded-md border-1 border-slate-300 dark:border-slate-700 py-1 pr-8 text-sm lg:py-1 lg:pr-10 text-black dark:text-white dark:bg-slate-800 shadow-xs focus:outline-hidden focus:ring-2 focus:ring-slate-800",value:a||"",onChange:e=>{e.stopPropagation(),o(e.target.value)},children:c?.map(e=>(0,t.jsx)("option",{value:e.isoCode,children:e.isoCode},e._id))})}),(0,t.jsx)("div",{children:r.default.cloneElement(e)})]})}])},16371,e=>{"use strict";var t=e.i(91788),r=e.i(30943);e.s(["f",0,({children:e,container:n=null,className:s=""})=>{let l=(0,t.useRef)(null),[i,a]=(0,t.useState)(!1);return((0,t.useEffect)(()=>{let e=document.createElement("div");s&&(e.className=s),l.current=e;let t=n||document.body;return t.appendChild(e),a(!0),()=>{l.current&&t.contains(l.current)&&t.removeChild(l.current)}},[n,s]),i&&l.current)?(0,r.createPortal)(e,l.current):null}])},3095,e=>{"use strict";var t=e.i(91398),r=e.i(91788),n=e.i(3326),s=e.i(86712),l=e.i(76842),i=e.i(24557),a=e.i(16371);e.s(["f",0,({onEdit:e,onDelete:o,editLabel:u,deleteLabel:c,showEdit:d=!0,showDelete:f=!0})=>{let{formatMessage:m}=(0,n.S)(),[h,g]=(0,r.useState)(!1),[x,v]=(0,r.useState)({top:0,left:0}),w=(0,r.useRef)(null),p=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{w.current&&!w.current.contains(e.target)&&g(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let b=(e,t)=>{e.stopPropagation(),e.preventDefault(),t&&t(),g(!1)};return 0===[d&&e,f&&o].filter(Boolean).length?null:(0,t.jsxs)("div",{className:"flex justify-end w-full",children:[(0,t.jsx)("button",{ref:p,type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),h||(()=>{if(!p.current)return;let e=p.current.getBoundingClientRect(),t=e.bottom+4,r=e.right-192;r<8&&(r=8),t+80>window.innerHeight-8&&(t=e.top-80-4),v({top:t,left:r})})(),g(!h)},className:"flex items-center justify-center w-8 h-8 rounded-md hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors","aria-label":m({id:"table_actions_menu",defaultMessage:"Actions menu"}),children:(0,t.jsx)(s.f,{className:"w-5 h-5 text-slate-500 dark:text-slate-400"})}),h&&(0,t.jsx)(a.f,{children:(0,t.jsx)("div",{ref:w,className:"fixed w-48 bg-white dark:bg-slate-800 rounded-md shadow-xl border border-slate-200 dark:border-slate-700 z-[9999]",style:{top:x.top,left:x.left},children:(0,t.jsxs)("div",{className:"py-1",children:[d&&e&&(0,t.jsxs)("button",{type:"button",onClick:t=>b(t,e),className:"flex items-center w-full px-4 py-2 text-sm text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors",children:[(0,t.jsx)(l.f,{className:"mr-3 h-5 w-5"}),u||m({id:"edit",defaultMessage:"Edit"})]}),f&&o&&(0,t.jsxs)("button",{type:"button",onClick:e=>b(e,o),className:"flex items-center w-full px-4 py-2 text-sm text-rose-500 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/20 transition-colors",children:[(0,t.jsx)(i.f,{className:"mr-3 h-5 w-5"}),c||m({id:"delete",defaultMessage:"Delete"})]})]})})})]})}])},83147,e=>{"use strict";let t=e=>e&&e?.split(",").reduce((e,t)=>{let[r=null,n=null]=(t||"")?.split("_")||[];return{...e,[r]:n}},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 n;return n=r?{...e,[r]:t}:e,Object.keys(n)?.map(e=>[e,n[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)}})])},80294,e=>{"use strict";var t=e.i(59080);let r=t.f`
|
|
2
|
+
fragment FilterFragment on Filter {
|
|
3
|
+
_id
|
|
4
|
+
updated
|
|
5
|
+
created
|
|
6
|
+
key
|
|
7
|
+
isActive
|
|
8
|
+
type
|
|
9
|
+
options {
|
|
10
|
+
_id
|
|
11
|
+
texts {
|
|
12
|
+
_id
|
|
13
|
+
title
|
|
14
|
+
subtitle
|
|
15
|
+
locale
|
|
16
|
+
}
|
|
17
|
+
value
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`;e.s(["f",0,r])},54680,e=>{"use strict";var t=e.i(59080),r=e.i(32171),n=e.i(80294);let s=t.f`
|
|
21
|
+
query Filters(
|
|
22
|
+
$queryString: String
|
|
23
|
+
$limit: Int
|
|
24
|
+
$offset: Int
|
|
25
|
+
$includeInactive: Boolean
|
|
26
|
+
$sort: [SortOptionInput!]
|
|
27
|
+
) {
|
|
28
|
+
filters(
|
|
29
|
+
queryString: $queryString
|
|
30
|
+
limit: $limit
|
|
31
|
+
offset: $offset
|
|
32
|
+
includeInactive: $includeInactive
|
|
33
|
+
sort: $sort
|
|
34
|
+
) {
|
|
35
|
+
...FilterFragment
|
|
36
|
+
texts {
|
|
37
|
+
_id
|
|
38
|
+
title
|
|
39
|
+
subtitle
|
|
40
|
+
locale
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
filtersCount(includeInactive: $includeInactive, queryString: $queryString)
|
|
44
|
+
}
|
|
45
|
+
${n.f}
|
|
46
|
+
`;e.s(["f",0,({queryString:e="",limit:t=20,offset:n=0,includeInactive:l=!0,sort:i=[],forceLocale:a=""}={})=>{let{data:o,loading:u,error:c,fetchMore:d,client:f}=(0,r.f)(s,{context:{headers:{forceLocale:a}},variables:{queryString:e,limit:t,offset:n,includeInactive:l,sort:i}}),m=o?.filters||[],h=o?.filtersCount,g=m?.length<h;return{filters:m,filtersCount:h,hasMore:g,loading:u,error:c,loadMore:()=>{d({variables:{offset:m?.length}})},client:f}}])},15971,e=>{"use strict";var t=e.i(91398),r=e.i(3326);e.s(["f",0,({onOkClick:e,onCancelClick:n,okText:s=null,cancelText:l=null,headerText:i=null,message:a=null,icon:o=null,close:u=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:i||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:a||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:n||u,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:l||c({id:"cancel",defaultMessage:"Cancel"})})]})]})}])},6607,e=>{"use strict";var t=e.i(91788),r=e.i(6444);e.s(["f",0,()=>(0,t.useContext)(r.f)])},52745,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{d:"M10.362 1.093a.75.75 0 0 0-.724 0L2.523 5.018 10 9.143l7.477-4.125-7.115-3.925ZM18 6.443l-7.25 4v8.25l6.862-3.786A.75.75 0 0 0 18 14.25V6.443ZM9.25 18.693v-8.25l-7.25-4v7.807a.75.75 0 0 0 .388.657l6.862 3.786Z"}))});e.s(["f",0,r],52745)},76842,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{d:"m2.695 14.762-1.262 3.155a.5.5 0 0 0 .65.65l3.155-1.262a4 4 0 0 0 1.343-.886L17.5 5.501a2.121 2.121 0 0 0-3-3L3.58 13.419a4 4 0 0 0-.885 1.343Z"}))});e.s(["f",0,r],76842)},24557,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z",clipRule:"evenodd"}))});e.s(["f",0,r],24557)},38322,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},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},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))});e.s(["f",0,r],38322)},38187,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},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},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))});e.s(["f",0,r],38187)},86712,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},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},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"}))});e.s(["f",0,r],86712)},24608,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},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},n),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)},40238,(e,t,r)=>{"use strict";var n=e.r(91788),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=n.useSyncExternalStore,i=n.useRef,a=n.useEffect,o=n.useMemo,u=n.useDebugValue;r.useSyncExternalStoreWithSelector=function(e,t,r,n,c){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var m=l(e,(d=o(function(){function e(e){if(!a){if(a=!0,l=e,e=n(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return i=t}return i=e}if(t=i,s(l,e))return t;var r=n(e);return void 0!==c&&c(t,r)?(l=e,t):(l=e,i=r)}var l,i,a=!1,o=void 0===r?null:r;return[function(){return e(t())},null===o?void 0:function(){return e(o())}]},[t,r,n,c]))[0],d[1]);return a(function(){f.hasValue=!0,f.value=m},[m]),u(m),m}},19979,(e,t,r)=>{"use strict";e.i(50461),t.exports=e.r(40238)}]);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
__turbopack_load_page_chunks__("/works/WorkQueueListView", [
|
|
2
|
+
"static/chunks/3jxeyjg2g7w94.js",
|
|
3
|
+
"static/chunks/3skw31vkshyt2.js",
|
|
4
|
+
"static/chunks/0ub1l2hrjkz2-.js",
|
|
5
|
+
"static/chunks/3hxp-xwv4g3ek.js",
|
|
6
|
+
"static/chunks/23wfelj92rx3n.js",
|
|
7
|
+
"static/chunks/turbopack-077hmtqrhcoji.js"
|
|
8
|
+
])
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,1880,t=>{"use strict";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=>{"use strict";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=>{"use strict";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)}]);
|