@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
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,81359,e=>{"use strict";var t=e.i(91398),r=e.i(24608),i=e.i(3326);e.s(["f",0,({onClick:e,text:s=null,Icon:n=null})=>{let{formatMessage:a}=(0,i.S)();return(0,t.jsxs)("button",{type:"button",onClick:e,"aria-describedby":"header-delete-button",className:"inline-flex items-center gap-2 justify-center rounded-md border border-rose-500 px-4 py-2 text-sm font-medium leading-5 text-rose-600 dark:text-rose-200 shadow-sm hover:border-rose-600 hover:bg-rose-600 hover:text-white focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 h-[38px]",children:[(0,t.jsx)("span",{children:n||(0,t.jsx)(r.f,{className:"h-5 w-5"})}),s||a({id:"delete",defaultMessage:"Delete"})]})}])},11056,e=>{"use strict";var t=e.i(91398),r=e.i(91788),i=e.i(5505),s=e.i(57561);e.s(["f",0,({children:e,onlyFull:n=!1})=>{let{languageDialectList:a,selectedLocale:o,setSelectedLocale:l}=(0,s.f)(),u=(0,r.useContext)(i.W),d=a.filter(e=>!n||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:o||"",onChange:e=>{e.stopPropagation(),l(e.target.value)},children:d?.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:i=null,className:s=""})=>{let n=(0,t.useRef)(null),[a,o]=(0,t.useState)(!1);return((0,t.useEffect)(()=>{let e=document.createElement("div");s&&(e.className=s),n.current=e;let t=i||document.body;return t.appendChild(e),o(!0),()=>{n.current&&t.contains(n.current)&&t.removeChild(n.current)}},[i,s]),a&&n.current)?(0,r.createPortal)(e,n.current):null}])},3095,e=>{"use strict";var t=e.i(91398),r=e.i(91788),i=e.i(3326),s=e.i(86712),n=e.i(76842),a=e.i(24557),o=e.i(16371);e.s(["f",0,({onEdit:e,onDelete:l,editLabel:u,deleteLabel:d,showEdit:c=!0,showDelete:h=!0})=>{let{formatMessage:f}=(0,i.S)(),[m,p]=(0,r.useState)(!1),[g,y]=(0,r.useState)({top:0,left:0}),_=(0,r.useRef)(null),x=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{_.current&&!_.current.contains(e.target)&&p(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let b=(e,t)=>{e.stopPropagation(),e.preventDefault(),t&&t(),p(!1)};return 0===[c&&e,h&&l].filter(Boolean).length?null:(0,t.jsxs)("div",{className:"flex justify-end w-full",children:[(0,t.jsx)("button",{ref:x,type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),m||(()=>{if(!x.current)return;let e=x.current.getBoundingClientRect(),t=e.bottom+4,r=e.right-192;r<8&&(r=8),t+80>window.innerHeight-8&&(t=e.top-80-4),y({top:t,left:r})})(),p(!m)},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":f({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"})}),m&&(0,t.jsx)(o.f,{children:(0,t.jsx)("div",{ref:_,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:g.top,left:g.left},children:(0,t.jsxs)("div",{className:"py-1",children:[c&&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)(n.f,{className:"mr-3 h-5 w-5"}),u||f({id:"edit",defaultMessage:"Edit"})]}),h&&l&&(0,t.jsxs)("button",{type:"button",onClick:e=>b(e,l),className:"flex items-center w-full px-4 py-2 text-sm text-rose-500 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/20 transition-colors",children:[(0,t.jsx)(a.f,{className:"mr-3 h-5 w-5"}),d||f({id:"delete",defaultMessage:"Delete"})]})]})})})]})}])},60513,75284,e=>{"use strict";var t=e.i(91788),r=e.i(28401),i=e.i(3326),s=e.i(30086),n=e.i(66773),a=e.i(98926),o=e.i(63104),l=e.i(3828);e.s(["f",0,()=>{let[e,u]=(0,t.useState)(!1),d=(0,a.f)(),c=(0,l.useRouter)(),{addWork:h}=(0,s.f)(),{formatMessage:f}=(0,i.S)(),m=(0,t.useCallback)(async e=>{let{data:t}=await d.query({query:(0,o.k)(),variables:{workId:e},fetchPolicy:"network-only"});return t?.work??null},[d]);return{isExporting:e,exportCSV:(0,t.useCallback)(async({type:e,pollInterval:t=2e3,...i})=>{u(!0);try{let r=await h({type:n.i.BulkExport,input:{type:e,...i}}),s=r?.data?.addWork?._id;if(!s)throw Error("Failed to create export work");await new Promise((e,r)=>{let i=setInterval(async()=>{try{let t=await m(s);if(!t)throw Error("Work not found");(t.status===n.h.Success||t.status===n.h.Failed)&&(clearInterval(i),t.status===n.h.Success&&t.success?(c.push(`/exports?workId=${t._id}`),e(t)):r(t.error||Error("Export failed")))}catch(e){clearInterval(i),r(e)}},t)})}catch(e){return console.error("Export failed:",e),r.c.error(f({id:"export_failed",defaultMessage:"Export failed. Please try again."})),null}finally{u(!1)}},[h,m,c,f])}}],60513);var u=e.i(91398),d=e.i(69211),c=e.i(64127),h=e.i(98949),f=e.i(99160);e.s(["f",0,function({options:e,onSubmit:r,loading:s=!1,successMessage:n=""}){let{formatMessage:a}=(0,i.S)(),o=(0,t.useMemo)(()=>e.reduce((e,t)=>(e[t.key]=t.defaultChecked??!0,e),{}),[e]),l=async e=>(await r(e),{success:!0}),m=(0,h.f)({successMessage:n||a({id:"export_completed",defaultMessage:"Data exported successfully"}),submit:l,enableReinitialize:!0,initialValues:o});return(0,u.jsx)(d.f,{form:m,children:m.formik.isSubmitting?(0,u.jsxs)("div",{className:"flex items-center gap-3 p-4 mb-4 rounded-lg animate-pulse",children:[(0,u.jsx)("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),(0,u.jsx)("span",{className:"text-sm font-medium text-blue-700 dark:text-blue-300",children:a({id:"exporting_message",defaultMessage:"Generating your export files. This may take a moment..."})})]}):(0,u.jsxs)("fieldset",{disabled:s,style:{border:"none",padding:0},children:[(0,u.jsxs)("h3",{children:[" ",a({id:"export_options",defaultMessage:"Export options"})]}),e.map(e=>(0,u.jsx)(c.f,{name:e.key,label:e.label,hideLabel:!0,className:"mr-2 h-4 w-4 justify-between rounded-sm border-slate-300 dark:border-slate-600 bg-white text-slate-950 focus:ring-slate-800 lg:items-center",type:"checkbox"},e.key)),(0,u.jsx)(f.f,{label:a({id:"submit",defaultMessage:"Submit"}),disabled:s})]})})}],75284)},78193,e=>{"use strict";var t=e.i(91788),r=e.i(3326),i=e.i(30086),s=e.i(66773);e.s(["f",0,({validate:e,process:n})=>{let{addWork:a}=(0,i.f)(),[o,l]=(0,t.useState)(!1),u=(0,r.S)();return{isImporting:o,importItems:async t=>{let r={success:0,failed:0,errors:[]};try{l(!0);let i=e(t,u);i.length>0&&(r.failed+=i.length,r.errors.push(...i));let o=await n(t);for(let e=0;e<o.length;e+=100){let t=o.slice(e,e+100);try{await a({type:s.i.BulkImport,input:{createShouldUpsertIfIDExists:!0,events:t}}),r.success+=t.length}catch(i){console.error("Batch import failed:",i),r.failed+=t.length,r.errors.push(`Batch starting at index ${e} failed: ${i.message}`)}}return l(!1),r}catch(e){return console.error("Import failed:",e),l(!1),r.errors.push(e.message||"Unknown error"),r}}}}])},16785,e=>{"use strict";e.s(["f",0,(e,t)=>{let r=new Blob([e],{type:"text/csv;charset=utf-8;"}),i=document.createElement("a");if(void 0!==i.download){let e=URL.createObjectURL(r);i.setAttribute("href",e),i.setAttribute("download",t),i.style.visibility="hidden",document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(e)}}])},22003,e=>{"use strict";e.s(["f",0,e=>{if("string"==typeof e&&e.trim())try{let t=JSON.parse(e);return t&&"object"==typeof t&&Object.keys(t).length?t:void 0}catch{return}}])},83147,e=>{"use strict";let t=e=>e&&e?.split(",").reduce((e,t)=>{let[r=null,i=null]=(t||"")?.split("_")||[];return{...e,[r]:i}},null)||{};e.s(["S",0,(...e)=>e.filter(Boolean).join(" "),"R",0,e=>Object.entries(t(e))?.map(([e,t])=>({key:e,value:t})),"D",0,e=>e?.label&&e?.version?`${e.label} ${e.version}`:"","v",0,t,"Q",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"region"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"j",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"currency"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"I",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"language"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"_",0,(e,t,r)=>{let i;return i=r?{...e,[r]:t}:e,Object.keys(i)?.map(e=>[e,i[e]].join("="))?.join("&")},"d",0,()=>({formatPrice:e=>{if(!e?.currencyCode)return"n/a";if(e?.amount===void 0||e?.amount===null)return"";let{amount:t,currencyCode:r}=e||{};return new Intl.NumberFormat(navigator.language,{style:"currency",currency:r}).format(t/100)}})])},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),i=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
|
+
${i.f}
|
|
46
|
+
`;e.s(["f",0,({queryString:e="",limit:t=20,offset:i=0,includeInactive:n=!0,sort:a=[],forceLocale:o=""}={})=>{let{data:l,loading:u,error:d,fetchMore:c,client:h}=(0,r.f)(s,{context:{headers:{forceLocale:o}},variables:{queryString:e,limit:t,offset:i,includeInactive:n,sort:a}}),f=l?.filters||[],m=l?.filtersCount,p=f?.length<m;return{filters:f,filtersCount:m,hasMore:p,loading:u,error:d,loadMore:()=>{c({variables:{offset:f?.length}})},client:h}}])},64127,e=>{"use strict";var t=e.i(91398),r=e.i(72043),i=e.i(60741);e.s(["f",0,e=>{let{disabled:s,labelClassName:n,containerClassName:a,inputClassName:o,...l}=e,u=(0,i.f)({...e,type:"checkbox"});return(0,t.jsxs)("div",{className:(0,r.default)("",{"text-rose-600":!!u.error,checkbox:!0,disabled:u.disabled,required:u.required},a),children:[(0,t.jsx)("input",{checked:!!u.value,disabled:s,id:u.name,name:u.name,onChange:u.onChange,onBlur:u.onBlur,type:"checkbox",className:(0,r.default)("h-4 w-4 rounded-xs border-slate-300 dark:border-slate-600 bg-white dark:!bg-slate-800 text-indigo-600 dark:text-slate-200 focus:ring-slate-800",o,e.className),...l}),(0,t.jsx)("label",{htmlFor:u.name,className:(0,r.default)("text-sm text-slate-900 dark:text-slate-200",n,{"text-danger":!!u.error}),children:u.label})]})}])},15971,e=>{"use strict";var t=e.i(91398),r=e.i(3326);e.s(["f",0,({onOkClick:e,onCancelClick:i,okText:s=null,cancelText:n=null,headerText:a=null,message:o=null,icon:l=null,close:u=null})=>{let{formatMessage:d}=(0,r.S)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sm:flex sm:items-start",children:[l||(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:a||d({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:o||d({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||d({id:"continue",defaultMessage:"Continue"})}),(0,t.jsx)("button",{id:"danger_cancel",onClick:i||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:n||d({id:"cancel",defaultMessage:"Cancel"})})]})]})}])},42912,e=>{"use strict";var t=e.i(91398),r=e.i(3326);e.s(["f",0,({result:e,title:i,entityName:s="items"})=>{let{formatMessage:n}=(0,r.S)();return(0,t.jsxs)("div",{className:"p-4",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold mb-4",children:i||n({id:"import_results",defaultMessage:"Import Results"})}),(0,t.jsx)("p",{className:"text-green-600",children:n({id:"items_imported",defaultMessage:"{count} {entityName} imported successfully"},{count:e?.success,entityName:s})}),e?.failed>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-red-600 mt-2",children:n({id:"items_failed",defaultMessage:"{count} {entityName} failed to import"},{count:e?.failed,entityName:s})}),(0,t.jsxs)("div",{className:"mt-2 max-h-40 overflow-y-auto",children:[e.errors.slice(0,10).map((e,r)=>(0,t.jsx)("p",{className:"text-sm text-red-500",children:e},r)),e.errors.length>10&&(0,t.jsxs)("p",{className:"text-sm text-gray-500",children:["... and ",e.errors.length-10," more errors"]})]})]})]})}])},6607,e=>{"use strict";var t=e.i(91788),r=e.i(6444);e.s(["f",0,()=>(0,t.useContext)(r.f)])},30086,e=>{"use strict";var t=e.i(59080),r=e.i(76204);let i=t.f`
|
|
47
|
+
mutation AddWork(
|
|
48
|
+
$type: WorkType!
|
|
49
|
+
$priority: Int! = 0
|
|
50
|
+
$input: JSON
|
|
51
|
+
$originalWorkId: ID
|
|
52
|
+
$scheduled: Timestamp
|
|
53
|
+
$retries: Int! = 20
|
|
54
|
+
) {
|
|
55
|
+
addWork(
|
|
56
|
+
type: $type
|
|
57
|
+
priority: $priority
|
|
58
|
+
input: $input
|
|
59
|
+
originalWorkId: $originalWorkId
|
|
60
|
+
scheduled: $scheduled
|
|
61
|
+
retries: $retries
|
|
62
|
+
) {
|
|
63
|
+
_id
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
`;e.s(["f",0,()=>{let[e]=(0,r.f)(i);return{addWork:async({type:t,priority:r,input:i,originalWorkId:s,scheduled:n=null,retries:a})=>e({variables:{type:t,priority:r,input:i,originalWorkId:s,scheduled:n,retries:a},refetchQueries:["WorkQueue"]})}}])},63104,e=>{"use strict";var t=e.i(59080),r=e.i(32171),i=e.i(70693),s=e.i(94672);let n=(e="")=>t.f`
|
|
67
|
+
query Work($workId: ID!) {
|
|
68
|
+
work(workId: $workId) {
|
|
69
|
+
...WorkFragment
|
|
70
|
+
${e}
|
|
71
|
+
error
|
|
72
|
+
priority
|
|
73
|
+
worker
|
|
74
|
+
timeout
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
${s.f}
|
|
78
|
+
`;e.s(["k",0,n,"U",0,({workId:e=null,...t})=>{let{customProperties:s}=(0,i.f)(),{data:a,loading:o,error:l,previousData:u}=(0,r.f)(n(s?.Work),{skip:!e,variables:{workId:e},...t});return{work:a?.work||u?.work,loading:o,error:l}}])},76842,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...i},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},i),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,...i},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},i),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,...i},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},i),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,...i},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},i),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,...i},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},i),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,...i},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},i),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)},72552,(e,t,r)=>{var i;let s;e.e,i=function e(){var t="u">typeof self?self:"u">typeof window?window:void 0!==t?t:{},r=!t.document&&!!t.postMessage,i=t.IS_PAPA_WORKER||!1,s={},n=0,a={};function o(e){return 65279===e.charCodeAt(0)?e.slice(1):e}function l(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var t=x(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new f(t),(this._handle.streamer=this)._config=t}).call(this,e),this.parseChunk=function(e,r){var s=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<s){let t=this._config.newline;t||(n=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,n)),e=[...e.split(t).slice(s)].join(t)}this.isFirstChunk&&v(this._config.beforeFirstChunk)&&void 0!==(n=this._config.beforeFirstChunk(e))&&(e=n),this.isFirstChunk=!1,this._halted=!1;var s=this._partialLine+e,n=(this._partialLine="",this._handle.parse(s,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=n.meta.cursor,this._finished||(this._partialLine=s.substring(e-this._baseIndex),this._baseIndex=e),n&&n.data&&(this._rowCount+=n.data.length),s=this._finished||this._config.preview&&this._rowCount>=this._config.preview,i)t.postMessage({results:n,workerId:a.WORKER_ID,finished:s});else if(v(this._config.chunk)&&!r){if(this._config.chunk(n,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=n=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),this._completed||!s||!v(this._config.complete)||n&&n.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),s||n&&n.meta.paused||this._nextChunk(),n}this._halted=!0},this._sendError=function(e){v(this._config.error)?this._config.error(e):i&&this._config.error&&t.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=a.RemoteChunkSize),l.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)),t.ontimeout=b(this._chunkTimeout,this),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadTimeout&&!r&&(t.timeout=this._config.downloadTimeout),this._config.downloadRequestHeaders){var e,i,s=this._config.downloadRequestHeaders;for(i in s)t.setRequestHeader(i,s[i])}this._config.chunkSize&&(e=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+e));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){let e;4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null!==(e=(e=t).getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(Error(e))},this._chunkTimeout=function(){this._chunkError("Request timed out after "+this._config.downloadTimeout+"ms")}}function d(e){(e=e||{}).chunkSize||(e.chunkSize=a.LocalChunkSize),l.call(this,e);var t,r,i="u">typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,i?((t=new FileReader).onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,s=(this._config.chunkSize&&(s=Math.min(this._start+this._config.chunkSize,this._input.size),e=r.call(e,this._start,s)),t.readAsText(e,this._config.encoding));i||this._chunkLoaded({target:{result:s}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function c(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,r;if(!this._finished)return t=(e=this._config.chunkSize)?(r=t.substring(0,e),t.substring(e)):(r=t,""),this._finished=!t,this.parseChunk(r)}}function h(e){l.call(this,e=e||{});var t=[],r=!0,i=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){i&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=b(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=b(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=b(function(){this._streamCleanUp(),i=!0,this._streamData("")},this),this._streamCleanUp=b(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function f(e){var t,r,i,s,n=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,o=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,l=this,u=0,d=0,c=!1,h=!1,f=[],g={data:[],errors:[],meta:{}};function y(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function _(){if(g&&i&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),i=!1),e.skipEmptyLines&&(g.data=g.data.filter(function(e){return!y(e)})),b()){if(g)if(Array.isArray(g.data[0])){for(var t,r=0;b()&&r<g.data.length;r++)g.data[r].forEach(s);g.data.splice(0,1)}else g.data.forEach(s);function s(e){f.push(e)}}function l(t,r){for(var i=e.header?{}:[],s=0;s<t.length;s++){var a=s,l=t[s],l=((t,r)=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping))?"true"===r||"TRUE"===r||"false"!==r&&"FALSE"!==r&&((e=>{if(n.test(e)&&-0x20000000000000<(e=parseFloat(e))&&e<0x20000000000000)return 1})(r)?parseFloat(r):o.test(r)?new Date(r):""===r?null:r):r)(a=e.header?s>=f.length?"__parsed_extra":f[s]:a,l=e.transform?e.transform(l,a):l);"__parsed_extra"===a?(i[a]=i[a]||[],i[a].push(l)):i[a]=l}return e.header&&(s>f.length?k("FieldMismatch","TooManyFields","Too many fields: expected "+f.length+" fields but parsed "+s,d+r):s<f.length&&k("FieldMismatch","TooFewFields","Too few fields: expected "+f.length+" fields but parsed "+s,d+r)),i}g&&(e.header||e.dynamicTyping||e.transform)&&(t=1,!g.data.length||Array.isArray(g.data[0])?(g.data=g.data.map(l),t=g.data.length):g.data=l(g.data,0),e.header&&g.meta&&(g.meta.fields=f),d+=t)}function b(){return e.header&&0===f.length}function k(e,t,r,i){e={type:e,code:t,message:r},void 0!==i&&(e.row=i),g.errors.push(e)}v(e.step)&&(s=e.step,e.step=function(t){g=t,b()?_():(_(),0!==g.data.length&&(u+=t.data.length,e.preview&&u>e.preview?r.abort():(g.data=g.data[0],s(g,l))))}),this.parse=function(s,n,o){var l=e.quoteChar||'"',l=(e.newline||(e.newline=this.guessLineEndings(s,l)),i=!1,e.delimiter?v(e.delimiter)&&(e.delimiter=e.delimiter(s),g.meta.delimiter=e.delimiter):((l=((t,r,i,s,n)=>{var o,l,u,d;n=n||[","," ","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var c=0;c<n.length;c++){for(var h,f=n[c],m=0,g=0,_=0,x=(u=void 0,new p({comments:s,delimiter:f,newline:r,preview:10}).parse(t)),b=0;b<x.data.length;b++)i&&y(x.data[b])?_++:(g+=h=x.data[b].length,void 0===u?u=h:0<h&&(m+=Math.abs(h-u),u=h));0<x.data.length&&(g/=x.data.length-_),1.99<g&&(void 0===l||m<l||m===l&&d<g)&&(l=m,o=f,d=g)}return{successful:!!(e.delimiter=o),bestDelimiter:o}})(s,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=l.bestDelimiter:(i=!0,e.delimiter=a.DefaultDelimiter),g.meta.delimiter=e.delimiter),x(e));return l.header=b(),e.preview&&e.header&&l.preview++,t=s,g=(r=new p(l)).parse(t,n,o),_(),c?{meta:{paused:!0}}:g||{meta:{paused:!1}}},this.paused=function(){return c},this.pause=function(){c=!0,r.abort(),t=v(e.chunk)?"":t.substring(r.getCharIndex())},this.resume=function(){l.streamer._halted?(c=!1,l.streamer.parseChunk(t,!0)):setTimeout(l.resume,3)},this.aborted=function(){return h},this.abort=function(){h=!0,r.abort(),g.meta.aborted=!0,v(e.complete)&&e.complete(g),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576);var t=RegExp(m(t)+"([^]*?)"+m(t),"gm"),r=(e=e.replace(t,"")).split("\r"),t=e.split("\n"),e=1<t.length&&t[0].length<r[0].length;if(1===r.length||e)return"\n";for(var i=0,s=0;s<r.length;s++)"\n"===r[s][0]&&i++;return i>=r.length/2?"\r\n":"\r"}}function m(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function p(e){var t=(e=e||{}).delimiter,r=e.newline,i=e.comments,s=e.step,n=e.preview,l=e.fastMode,u=null,d=!1,c=null==e.quoteChar?'"':e.quoteChar,h=c;if(void 0!==e.escapeChar&&(h=e.escapeChar),("string"!=typeof t||-1<a.BAD_DELIMITERS.indexOf(t))&&(t=","),i===t)throw Error("Comment character same as delimiter");!0===i?i="#":("string"!=typeof i||-1<a.BAD_DELIMITERS.indexOf(i))&&(i=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var f=0,p=!1;this.parse=function(a,g,y){if("string"!=typeof a)throw Error("Input must be a string");var _=a.length,x=t.length,b=r.length,k=i.length,w=v(s),E=[],C=[],j=[],R=f=0;if(!a)return B();if(l||!1!==l&&-1===a.indexOf(c)){for(var S=a.split(r),I=0;I<S.length;I++){if(j=S[I],f+=j.length,I!==S.length-1)f+=r.length;else if(y)break;if(!i||j.substring(0,k)!==i){if(w){if(E=[],D(j.split(t)),W(),p)return B()}else D(j.split(t));if(n&&n<=I)return E=E.slice(0,n),B(!0)}}return B()}for(var O=a.indexOf(t,f),N=a.indexOf(r,f),L=RegExp(m(h)+m(c),"g"),T=a.indexOf(c,f);;)if(a[f]===c)for(T=f,f++;;){if(-1===(T=a.indexOf(c,T+1)))return y||C.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:E.length,index:f}),F();if(T===_-1)return F(a.substring(f,T).replace(L,c));if(c===h&&a[T+1]===h)T++;else if(c===h||0===T||a[T-1]!==h){-1!==O&&O<T+1&&(O=a.indexOf(t,T+1));var A=M(-1===(N=-1!==N&&N<T+1?a.indexOf(r,T+1):N)?O:Math.min(O,N));if(a.substr(T+1+A,x)===t){j.push(a.substring(f,T).replace(L,c)),a[f=T+1+A+x]!==c&&(T=a.indexOf(c,f)),O=a.indexOf(t,f),N=a.indexOf(r,f);break}if(A=M(N),a.substring(T+1+A,T+1+A+b)===r){if(j.push(a.substring(f,T).replace(L,c)),$(T+1+A+b),O=a.indexOf(t,f),T=a.indexOf(c,f),w&&(W(),p))return B();if(n&&E.length>=n)return B(!0);break}C.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:E.length,index:f}),T++}}else if(i&&0===j.length&&a.substring(f,f+k)===i){if(-1===N)return B();f=N+b,N=a.indexOf(r,f),O=a.indexOf(t,f)}else if(-1!==O&&(O<N||-1===N))j.push(a.substring(f,O)),f=O+x,O=a.indexOf(t,f);else{if(-1===N)break;if(j.push(a.substring(f,N)),$(N+b),w&&(W(),p))return B();if(n&&E.length>=n)return B(!0)}return F();function D(e){E.push(e),R=f}function M(e){return -1!==e&&(e=a.substring(T+1,e))&&""===e.trim()?e.length:0}function F(e){return y||(void 0===e&&(e=a.substring(f)),j.push(e),f=_,D(j),w&&W()),B()}function $(e){f=e,D(j),j=[],N=a.indexOf(r,f)}function B(i){if(e.header&&!g&&E.length&&!d){var s=E[0],n=Object.create(null),a=new Set(s);let t=!1;for(let r=0;r<s.length;r++){let i=o(s[r]);if(n[i=v(e.transformHeader)?e.transformHeader(i,r):i]){let e,o=n[i];for(;e=i+"_"+o,o++,a.has(e););a.add(e),s[r]=e,n[i]++,t=!0,(u=null===u?{}:u)[e]=i}else n[i]=1,s[r]=i;a.add(i)}t&&console.warn("Duplicate headers found and renamed."),d=!0}return{data:E,errors:C,meta:{delimiter:t,linebreak:r,aborted:p,truncated:!!i,cursor:R+(g||0),renamedHeaders:u}}}function W(){s(B()),E=[],C=[]}},this.abort=function(){p=!0},this.getCharIndex=function(){return f}}function g(e){var t=e.data,r=s[t.workerId],i=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){i=!0,y(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:_,resume:_};if(v(r.userStep)){for(var a=0;a<t.results.data.length&&(r.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},n),!i);a++);delete t.results}else v(r.userChunk)&&(r.userChunk(t.results,n,t.file),delete t.results)}t.finished&&!i&&y(t.workerId,t.results)}function y(e,t){var r=s[e];v(r.userComplete)&&r.userComplete(t),r.terminate(),delete s[e]}function _(){throw Error("Not implemented.")}function x(e){if("object"!=typeof e||null===e)return e;var t,r=Array.isArray(e)?[]:{};for(t in e)r[t]=x(e[t]);return r}function b(e,t){return function(){e.apply(t,arguments)}}function v(e){return"function"==typeof e}return a.parse=function(r,i){var l,f,m,p=(i=i||{}).dynamicTyping||!1;if(v(p)&&(i.dynamicTypingFunction=p,p={}),i.dynamicTyping=p,i.transform=!!v(i.transform)&&i.transform,void 0!==i.downloadTimeout){var p=parseInt(i.downloadTimeout);if(isNaN(p))throw Error("Config downloadTimeout value ("+i.downloadTimeout+") not parsable by parseInt(val).");i.downloadTimeout=p}if(!i.worker||!a.WORKERS_SUPPORTED)return p=null,a.NODE_STREAM_INPUT,"string"==typeof r?(r=o(r),p=new(i.download?u:c)(i)):!0===r.readable&&v(r.read)&&v(r.on)?p=new h(i):(t.File&&r instanceof File||r instanceof Object)&&(p=new d(i)),p.stream(r);(p=!!a.WORKERS_SUPPORTED&&(f=t.URL||t.webkitURL||null,m=e.toString(),l=a.BLOB_URL||(a.BLOB_URL=f.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",m,")();"],{type:"text/javascript"}))),(l=new t.Worker(l)).onmessage=g,l.id=n++,s[l.id]=l)).userStep=i.step,p.userChunk=i.chunk,p.userComplete=i.complete,p.userError=i.error,i.step=v(i.step),i.chunk=v(i.chunk),i.complete=v(i.complete),i.error=v(i.error),delete i.worker,p.postMessage({input:r,config:i,workerId:p.id})},a.unparse=function(e,t){var r=!1,i=!0,s=",",n="\r\n",o='"',l=o+o,u=!1,d=null,c=!1,h=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||a.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(s=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(n=t.newline),"string"==typeof t.quoteChar&&(l=(o=t.quoteChar)+o),"boolean"==typeof t.header&&(i=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw Error("Option columns is empty");d=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+o),t.escapeFormulae instanceof RegExp?c=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(c=/^[=+\-@\t\r].*$/)}})(),RegExp(m(o),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,u);if("object"==typeof e[0])return f(d||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||d),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],u);throw Error("Unable to serialize unrecognized input");function f(e,t,r){var a="",o=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),l=!Array.isArray(t[0]);if(o&&i){for(var u=0;u<e.length;u++)0<u&&(a+=s),a+=p(e[u],u);0<t.length&&(a+=n)}for(var d=0;d<t.length;d++){var c=(o?e:t[d]).length,h=!1,f=o?0===Object.keys(t[d]).length:0===t[d].length;if(r&&!o&&(h="greedy"===r?""===t[d].join("").trim():1===t[d].length&&0===t[d][0].length),"greedy"===r&&o){for(var m=[],g=0;g<c;g++){var y=l?e[g]:g;m.push(t[d][y])}h=""===m.join("").trim()}if(!h){for(var _=0;_<c;_++){0<_&&!f&&(a+=s);var x=o&&l?e[_]:_;a+=p(t[d][x],_)}d<t.length-1&&(!r||0<c&&!f)&&(a+=n)}}return a}function p(e,t){var i,n,u;return null==e?"":e.constructor===Date?isNaN(e.getTime())?"":e.toISOString():(u=!1,c&&"string"==typeof e&&c.test(e)&&(e="'"+e,u=!0),n=(i=e.toString()).replace(h,l),(u=u||!0===r||"function"==typeof r&&r(e,t)||Array.isArray(r)&&r[t]||((e,t)=>{for(var r=0;r<t.length;r++)if(-1<e.indexOf(t[r]))return!0;return!1})(n,a.BAD_DELIMITERS)||-1<n.indexOf(s)||-1<i.indexOf(o)||" "===n.charAt(0)||" "===n.charAt(n.length-1))?o+n+o:n)}},a.RECORD_SEP="\x1e",a.UNIT_SEP="\x1f",a.BYTE_ORDER_MARK="\uFEFF",a.BAD_DELIMITERS=["\r","\n",'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!r&&!!t.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=0xa00000,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=p,a.ParserHandle=f,a.NetworkStreamer=u,a.FileStreamer=d,a.StringStreamer=c,a.ReadableStreamStreamer=h,i&&(t.onmessage=function(e){e=e.data,void 0===a.WORKER_ID&&e&&(a.WORKER_ID=e.workerId),"string"==typeof e.input?t.postMessage({workerId:a.WORKER_ID,results:a.parse(e.input,e.config),finished:!0}):(t.File&&e.input instanceof File||e.input instanceof Object)&&(e=a.parse(e.input,e.config))&&t.postMessage({workerId:a.WORKER_ID,results:e,finished:!0})}),(u.prototype=Object.create(l.prototype)).constructor=u,(d.prototype=Object.create(l.prototype)).constructor=d,(c.prototype=Object.create(c.prototype)).constructor=c,(h.prototype=Object.create(l.prototype)).constructor=h,a},"function"==typeof define&&define.amd?void 0!==(s=i())&&e.v(s):t.exports=i()},40238,(e,t,r)=>{"use strict";var i=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},n=i.useSyncExternalStore,a=i.useRef,o=i.useEffect,l=i.useMemo,u=i.useDebugValue;r.useSyncExternalStoreWithSelector=function(e,t,r,i,d){var c=a(null);if(null===c.current){var h={hasValue:!1,value:null};c.current=h}else h=c.current;var f=n(e,(c=l(function(){function e(e){if(!o){if(o=!0,n=e,e=i(e),void 0!==d&&h.hasValue){var t=h.value;if(d(t,e))return a=t}return a=e}if(t=a,s(n,e))return t;var r=i(e);return void 0!==d&&d(t,r)?(n=e,t):(n=e,a=r)}var n,a,o=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,i,d]))[0],c[1]);return o(function(){h.hasValue=!0,h.value=f},[f]),u(f),f}},19979,(e,t,r)=>{"use strict";e.i(50461),t.exports=e.r(40238)}]);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,50411,(e,r,t)=>{let s="/warehousing-provider/new";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(10983)]),r.hot&&r.hot.dispose(function(){window.__NEXT_P.push([s])})},61494,e=>{"use strict";var r=e.i(91398),t=e.i(41158),s=e.i(3828),a=e.i(3326);e.s(["f",0,({routeName:e=null,currentPageTitle:o=null,depth:n=null})=>{let i=(0,s.useRouter)(),{formatMessage:l}=(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"},u=i.asPath?.split("/")?.filter((e,r)=>i.asPath?.split("/")?.indexOf(e)===r);if(1===u.length)return null;let c="";n&&u.splice(n),e&&(u[u.length-1]=e);let f=u?.map(r=>{if(c+=`${r}/`,!r)return{name:l({id:"home",defaultMessage:"Home"}),path:"/"};let t=r?.split("?")[0],s=e?t:t.replace(/-/g," "),a=d[t];return{name:a?l({id:a,defaultMessage:s}):decodeURIComponent(s),path:c.replace(/.$/,"")}});return(0,r.jsx)("nav",{className:"mb-5 hidden sm:flex lg:mt-5 lg:mb-8","aria-label":"Breadcrumb",children:(0,r.jsx)("ol",{className:"flex items-center space-x-4",children:f?.map((e,s)=>(0,r.jsx)("li",{children:(0,r.jsxs)("div",{className:"flex items-center",children:[0!==s&&(0,r.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,r.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,r.jsx)(t.default,{href:e.path,className:"text-sm font-medium capitalize text-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&&o?o:e.name})]})},e.path))})})}])},81013,e=>{"use strict";var r=e.i(91398),t=e.i(72043);e.s(["f",0,({text:e,children:s,onClick:a,className:o="",disabled:n=!1,id:i="",variant:l="primary",size:d="md",type:u="button",loading:c=!1,icon:f,iconRight:p,fullWidth:m=!1,rounded:b="md",ariaLabel:g,...h})=>{let v=s||e,x=(f||p)&&v?"gap-2":"";return(0,r.jsx)("button",{id:i,type:u,disabled:n||c,onClick:a,"aria-label":g,className:(0,t.default)("inline-flex items-center justify-center font-medium shadow-xs focus:outline-hidden focus:ring-2 focus:ring-offset-2 transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-50",{xs:"px-2.5 py-1.5 text-xs h-6",sm:"px-3 py-2 text-sm h-8",md:"px-4 py-2 text-sm h-9",lg:"px-6 py-3 text-base h-11"}[d],{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}[b],{primary:"border border-slate-800 dark:border-slate-600 bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:ring-slate-800 dark:focus:ring-slate-400",secondary:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-700 dark:text-slate-200 hover:bg-slate-50 dark:hover:bg-slate-700 focus:ring-slate-500",tertiary:"border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700 focus:ring-slate-400",quaternary:"bg-transparent text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",danger:"border border-rose-500 dark:border-rose-400 bg-white dark:bg-slate-800 text-rose-600 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/10 focus:ring-rose-500",ghost:"bg-transparent border border-transparent text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",success:"border border-emerald-500 dark:border-emerald-400 bg-emerald-50 dark:bg-emerald-900/20 text-emerald-600 dark:text-emerald-400 hover:bg-emerald-100 dark:hover:bg-emerald-900/30 focus:ring-emerald-500",neutral:"border border-slate-300 dark:border-slate-600 bg-slate-100 dark:bg-slate-700 text-slate-600 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:ring-slate-400",input:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-900 dark:text-slate-100 hover:border-slate-400 dark:hover:border-slate-500 focus:ring-slate-500 focus:border-slate-500"}[l],x,{"w-full":m},o),...h,children:c?(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),v]}):(0,r.jsxs)(r.Fragment,{children:[f,v,p]})})}])},68057,e=>{"use strict";var r=e.i(91398),t=e.i(3326),s=e.i(69211),a=e.i(73419),o=e.i(99160),n=e.i(98949),i=e.i(5505);e.s(["f",0,({onSubmit:e,onSubmitSuccess:l,providerTypes:d,providerInterfaces:u,onProviderChange:c,readOnly:f})=>{let{formatMessage:p}=(0,t.S)(),m=p({id:"provider_created_success",defaultMessage:"Provider created successfully!"}),b=(0,n.f)({submit:e,onSubmitSuccess:l,successMessage:m,enableReinitialize:!0,initialValues:{adapterKey:"",type:""}});return(0,r.jsx)(i.U,{children:(0,r.jsx)(s.f,{form:b,children:(0,r.jsxs)("div",{className:"shadow-sm dark:shadow-none sm:max-w-full sm:rounded-lg",children:[(0,r.jsxs)("div",{className:"px-4 pt-4 pb-6",children:[(0,r.jsx)(a.f,{onChange:e=>c(e.target.value),name:"type",disabled:f,required:!0,label:p({id:"type",defaultMessage:"Type"}),options:d,className:"mb-5"}),(0,r.jsx)(a.f,{name:"adapterKey",required:!0,disabled:f,options:u,label:p({id:"adapter",defaultMessage:"Adapter"}),className:"mt-2"})]}),!f&&(0,r.jsx)("div",{className:"border-t-slate-100 border-t dark:border-t-slate-700 space-y-6 bg-slate-50 dark:bg-slate-900 p-6 px-5 text-right",children:(0,r.jsx)(o.f,{label:p({id:"create_provider",defaultMessage:"Create provider"})})})]})})})}])},17644,e=>{"use strict";var r=e.i(91398),t=e.i(58678),s=e.i(41158),a=e.i(3326),o=e.i(37369),n=e.i(81013);e.s(["f",0,({headerText:e=null,onEdit:i=null,onDelete:l=null,children:d=null,title:u=null,addPath:c=null,addButtonText:f=null})=>{let{formatMessage:p}=(0,a.S)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.default,{children:(0,r.jsxs)("title",{children:["Unchained AdminUI - ",u||e," "]})}),(0,r.jsx)("div",{className:"flex gap-3 flex-wrap items-center justify-between",children:(0,r.jsxs)("div",{className:"flex items-center flex-wrap justify-between w-full gap-4",children:[e&&(0,r.jsx)("h2",{className:"text-2xl font-medium text-slate-900 dark:text-slate-300 sm:truncate sm:text-3xl lg:text-4xl",children:e}),(0,r.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[d,c&&(0,r.jsx)(s.default,{href:c,children:(0,r.jsx)(n.f,{variant:"secondary",icon:(0,r.jsx)(o.f,{className:"h-5 w-5"}),text:f||p({id:"add",defaultMessage:"Add"})})}),i&&(0,r.jsx)(n.f,{variant:"secondary",onClick:i,text:p({id:"edit",defaultMessage:"Edit"})}),l&&(0,r.jsx)(n.f,{variant:"danger",onClick:l,text:p({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},1504,e=>{"use strict";e.s(["f",0,(e,r,t)=>Object.assign({},...e?.map(e=>({[e[t]]:e[r]}))||[])])},73319,e=>{"use strict";let r=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["Q",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"C",0,r,"T",0,e=>!(!e||null==e||r(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},73419,e=>{"use strict";var r=e.i(91398),t=e.i(72043),s=e.i(60741),a=e.i(29691);e.s(["f",0,e=>{let{options:o,...n}=(0,s.f)(e),{className:i}=e||{className:""};return(0,r.jsx)(a.f,{...n,children:(0,r.jsx)("div",{className:"select-wrap",children:(0,r.jsxs)("select",{className:(0,t.default)("block w-full dark:bg-slate-900 dark:text-white rounded-md border-1 border-slate-300 dark:border-slate-700 py-2.5 pl-3 pr-10 text-base text-black shadow-xs focus:outline-hidden focus:ring-2 focus:ring-slate-800 sm:text-sm",i,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!n.error}),disabled:n.disabled,id:n.name,name:n.name,onChange:n.onChange,onBlur:n.onBlur,value:n.value,children:[(0,r.jsx)("option",{className:"dark:text-slate-200",value:"",disabled:n.required,hidden:n.required,children:n.placeholder||n.label}),Object.entries(o).map(([e,t])=>(0,r.jsx)("option",{className:"dark:text-slate-200",value:e,children:t},e))]})})})}])},99160,e=>{"use strict";var r=e.i(91398),t=e.i(72043),s=e.i(38865),a=e.i(61898);e.s(["f",0,({label:e,disabled:o=!1,className:n="",hidden:i=!1,...l})=>{let d=(0,s.m)(),{...u}=l,c=Object.fromEntries(Object.keys(d.initialValues).map(e=>[e,d.getFieldMeta(e)])),{disabled:f}=(0,a.f)(),p=Object.values(c).reduce((e,{error:r,touched:t})=>e||r&&t,!1),m=o||f||d.isSubmitting||p,b=d.isSubmitting&&!p,g=(o||f||p)&&!d.isSubmitting;return(0,r.jsx)("input",{className:(0,t.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":g,"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600":b,"bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent":!m,hidden:i}),"aria-label":e,type:"submit",value:e,disabled:m,...u})}])},13543,e=>{"use strict";var r=e.i(59080);let t=r.f`
|
|
2
|
+
fragment WarehousingProviderFragment on WarehousingProvider {
|
|
3
|
+
_id
|
|
4
|
+
created
|
|
5
|
+
updated
|
|
6
|
+
deleted
|
|
7
|
+
isActive
|
|
8
|
+
type
|
|
9
|
+
interface {
|
|
10
|
+
_id
|
|
11
|
+
label
|
|
12
|
+
version
|
|
13
|
+
}
|
|
14
|
+
configuration
|
|
15
|
+
configurationError
|
|
16
|
+
}
|
|
17
|
+
`;e.s(["f",0,t])},13271,e=>{"use strict";var r=e.i(59080),t=e.i(32171);let s=r.f`
|
|
18
|
+
query WarehousingProvidersType {
|
|
19
|
+
warehousingProviderType: __type(name: "WarehousingProviderType") {
|
|
20
|
+
options: enumValues {
|
|
21
|
+
value: name
|
|
22
|
+
label: description
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`;e.s(["f",0,()=>{let{data:e,loading:r,error:a}=(0,t.f)(s);return{warehousingProviderType:e?.warehousingProviderType?.options||[],loading:r,error:a}}])},10983,e=>{"use strict";var r=e.i(91398),t=e.i(91788),s=e.i(66773),a=e.i(3828),o=e.i(3326),n=e.i(58971),i=e.i(61494),l=e.i(68057),d=e.i(17644),u=e.i(1504),c=e.i(59080),f=e.i(76204),p=e.i(13543);let m=c.f`
|
|
27
|
+
mutation CreateWarehousingProvider(
|
|
28
|
+
$warehousingProvider: CreateWarehousingProviderInput!
|
|
29
|
+
) {
|
|
30
|
+
createWarehousingProvider(warehousingProvider: $warehousingProvider) {
|
|
31
|
+
...WarehousingProviderFragment
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
${p.f}
|
|
35
|
+
`;var b=e.i(32171);let g=c.f`
|
|
36
|
+
query WarehousingInterfaces($providerType: WarehousingProviderType) {
|
|
37
|
+
warehousingInterfaces(type: $providerType) {
|
|
38
|
+
_id
|
|
39
|
+
value: _id
|
|
40
|
+
label
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`;var h=e.i(13271);e.s(["default",0,()=>{let[e,c]=(0,t.useState)(s._.Physical),{formatMessage:p}=(0,o.S)(),{createWarehousingProvider:v}=(()=>{let[e,{data:r,loading:t,error:s}]=(0,f.f)(m);return{createWarehousingProvider:async({warehousingProvider:{adapterKey:r,type:t}})=>e({variables:{warehousingProvider:{adapterKey:r,type:t}},refetchQueries:["WarehousingProviders","ShopStatus"]}),newWarehousingProvider:r?.createWarehousingProvider,loading:t,error:s}})(),{warehousingProviderType:x}=(0,h.f)(),{warehousingInterfaces:y}=(({providerType:e})=>{let{data:r,loading:t,error:s}=(0,b.f)(g,{skip:!e,variables:{providerType:e}});return{warehousingInterfaces:r?.warehousingInterfaces||[],loading:t,error:s}})({providerType:e}),{hasRole:w}=(0,n.f)(),k=async({adapterKey:e,type:r})=>{let{data:t,error:s}=await v({warehousingProvider:{adapterKey:e,type:r}});return!s&&{success:!0,data:t?.createWarehousingProvider}},j=(0,a.useRouter)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.f,{}),(0,r.jsxs)("div",{className:"mx-auto sm:max-w-2xl",children:[(0,r.jsx)(d.f,{headerText:p({id:"new_warehousing_provider_header",defaultMessage:"New warehousing provider"})}),(0,r.jsx)("div",{className:"mt-6",children:(0,r.jsx)(l.f,{readOnly:!w(s.C.ManageWarehousingProviders),providerInterfaces:(0,u.f)(y,"label","value"),providerTypes:(0,u.f)(x,"label","value"),onSubmit:k,onSubmitSuccess:(e,{_id:r})=>{j.replace(`/warehousing-provider?warehousingProviderId=${r}`)},onProviderChange:e=>c(e)})})]})]})}],10983)},76204,e=>{"use strict";var r=e.i(24669),t=e.i(91788),s=e.i(30928),a=e.i(52006);let o=e.i(21953).f?t.useLayoutEffect:t.useEffect;var n=e.i(98926);function i(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["f",0,function(e,l){let d=(0,n.f)(l?.client),[u,c]=t.useState(()=>i(d)),f=t.useRef({result:u,mutationId:0,isMounted:!0,client:d,mutation:e,options:l});o(()=>{Object.assign(f.current,{client:d,options:l,mutation:e})});let p=t.useCallback((e={})=>{let{options:t,mutation:o}=f.current,n={...t,mutation:o},i=e.client||f.current.client,l="function"==typeof e.context?e.context(t?.context):e.context;!f.current.result.loading&&f.current.isMounted&&c(f.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:i});let d=++f.current.mutationId,u=(0,s.f)(n,{...e,context:l});return(0,a.f)(i.mutate(u).then(t=>{let{data:s,error:a}=t,o=e.onError||f.current.options?.onError;if(a&&o&&o(a,u),d===f.current.mutationId){let e={called:!0,loading:!1,data:s,error:a,client:i};f.current.isMounted&&!(0,r.f)(f.current.result,e)&&c(f.current.result=e)}let n=e.onCompleted||f.current.options?.onCompleted;return a||n?.(t.data,u),t},t=>{if(d===f.current.mutationId&&f.current.isMounted){let e={loading:!1,error:t,data:void 0,called:!0,client:i};(0,r.f)(f.current.result,e)||c(f.current.result=e)}let s=e.onError||f.current.options?.onError;throw s&&s(t,u),t}))},[]),m=t.useCallback(()=>{if(f.current.isMounted){let e=i(f.current.client);Object.assign(f.current,{mutationId:0,result:e}),c(e)}},[]);return t.useEffect(()=>{let e=f.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[p,{reset:m,...u}]}],76204)},37369,e=>{"use strict";var r=e.i(91788);let t=r.forwardRef(function({title:e,titleId:t,...s},a){return r.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":t},s),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["f",0,t],37369)},9356,e=>{"use strict";var r=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,r.f)(e)))}],9356)},49543,e=>{"use strict";var r=e.i(35113);e.s(["f",0,function(e,t){let s=(0,r.f)(e,t?.in);return s.setHours(0,0,0,0),s}])},35113,2848,98170,e=>{"use strict";let r=Symbol.for("constructDateFrom");function t(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&r in e?e[r](t):e instanceof Date?new e.constructor(t):new Date(t)}e.s(["C",0,r,"_",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,t],98170),e.s(["f",0,function(e,r){return t(r||e,e)}],35113)},34980,(e,r,t)=>{"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},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function l(e){return s.isMemo(e)?n:i[e.$$typeof]||a}i[s.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[s.Memo]=n;var d=Object.defineProperty,u=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;r.exports=function e(r,t,s){if("string"!=typeof t){if(m){var a=p(t);a&&a!==m&&e(r,a,s)}var n=u(t);c&&(n=n.concat(c(t)));for(var i=l(r),b=l(t),g=0;g<n.length;++g){var h=n[g];if(!o[h]&&!(s&&s[h])&&!(b&&b[h])&&!(i&&i[h])){var v=f(t,h);try{d(r,h,v)}catch(e){}}}}return r}},40563,(e,r,t)=>{"use strict";var s="function"==typeof Symbol&&Symbol.for,a=s?Symbol.for("react.element"):60103,o=s?Symbol.for("react.portal"):60106,n=s?Symbol.for("react.fragment"):60107,i=s?Symbol.for("react.strict_mode"):60108,l=s?Symbol.for("react.profiler"):60114,d=s?Symbol.for("react.provider"):60109,u=s?Symbol.for("react.context"):60110,c=s?Symbol.for("react.async_mode"):60111,f=s?Symbol.for("react.concurrent_mode"):60111,p=s?Symbol.for("react.forward_ref"):60112,m=s?Symbol.for("react.suspense"):60113,b=s?Symbol.for("react.suspense_list"):60120,g=s?Symbol.for("react.memo"):60115,h=s?Symbol.for("react.lazy"):60116,v=s?Symbol.for("react.block"):60121,x=s?Symbol.for("react.fundamental"):60117,y=s?Symbol.for("react.responder"):60118,w=s?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case a:switch(e=e.type){case c:case f:case n:case l:case i:case m:return e;default:switch(e=e&&e.$$typeof){case u:case p:case h:case g:case d:return e;default:return r}}case o:return r}}}function j(e){return k(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=d,t.Element=a,t.ForwardRef=p,t.Fragment=n,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=m,t.isAsyncMode=function(e){return j(e)||k(e)===c},t.isConcurrentMode=j,t.isContextConsumer=function(e){return k(e)===u},t.isContextProvider=function(e){return k(e)===d},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return k(e)===p},t.isFragment=function(e){return k(e)===n},t.isLazy=function(e){return k(e)===h},t.isMemo=function(e){return k(e)===g},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===l},t.isStrictMode=function(e){return k(e)===i},t.isSuspense=function(e){return k(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===f||e===l||e===i||e===m||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===d||e.$$typeof===u||e.$$typeof===p||e.$$typeof===x||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=k},49957,(e,r,t)=>{"use strict";e.i(50461),r.exports=e.r(40563)}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42929,97057,95379,51628,e=>{"use strict";var t=e.i(91398),a=e.i(3326),s=e.i(66773),l=e.i(25705),i=e.i(50243),r=e.i(94330),d=e.i(43054),n=e.i(95336),o=e.i(16113),c=e.i(82191),u=e.i(31004),m=e.i(76929),f=e.i(27927),p=e.i(61113),x=e.i(11056),g=e.i(42532),h=e.i(10785),b=e.i(1330),v=e.i(73356),j=e.i(50099),y=e.i(77035),w=e.i(56902),M=e.i(41523),N=e.i(19051),k=e.i(11907),P=e.i(37932),I=e.i(41418),_=e.i(58971),C=e.i(91788),$=e.i(44112),S=e.i(5505),T=e.i(30276),V=e.i(59080),D=e.i(32171),E=e.i(1880);let R=V.f`
|
|
2
2
|
fragment ProductAssignmentFragment on ProductVariationAssignment {
|
|
3
3
|
_id
|
|
4
4
|
vectors {
|
|
@@ -138,20 +138,20 @@
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
${ew.f}
|
|
141
|
-
`;e.s(["f",0,()=>{let[e]=(0,K.f)(eN);return{unPublishProduct:async({productId:t})=>e({variables:{productId:t},refetchQueries:["Product","ShopStatus"],awaitRefetchQueries:!0})}}],51628)},88604,e=>{var t=e.i(59080),a=e.i(76204);let s=t.f`
|
|
141
|
+
`;e.s(["f",0,()=>{let[e]=(0,K.f)(eN);return{unPublishProduct:async({productId:t})=>e({variables:{productId:t},refetchQueries:["Product","ShopStatus"],awaitRefetchQueries:!0})}}],51628)},88604,e=>{"use strict";var t=e.i(59080),a=e.i(76204);let s=t.f`
|
|
142
142
|
mutation RemoveProduct($productId: ID!) {
|
|
143
143
|
removeProduct(productId: $productId) {
|
|
144
144
|
_id
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
`;e.s(["f",0,()=>{let[e]=(0,a.f)(s);return{removeProduct:async({productId:t})=>e({variables:{productId:t},refetchQueries:["Products","ShopStatus","ShopInfo"]})}}])},41418,e=>{var t=e.i(59080),a=e.i(76204),s=e.i(62199);let l=t.f`
|
|
147
|
+
`;e.s(["f",0,()=>{let[e]=(0,a.f)(s);return{removeProduct:async({productId:t})=>e({variables:{productId:t},refetchQueries:["Products","ShopStatus","ShopInfo"]})}}])},41418,e=>{"use strict";var t=e.i(59080),a=e.i(76204),s=e.i(62199);let l=t.f`
|
|
148
148
|
mutation UpdateProduct($productId: ID!, $product: UpdateProductInput!) {
|
|
149
149
|
updateProduct(productId: $productId, product: $product) {
|
|
150
150
|
...ProductDetailFragment
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
${s.f}
|
|
154
|
-
`;e.s(["f",0,()=>{let[e]=(0,a.f)(l);return{updateProduct:async({productId:t,product:{tags:a,sequence:s,meta:l}})=>e({variables:{productId:t,product:{tags:a,sequence:s,meta:l}},refetchQueries:["Products","ShopStatus","ShopInfo"]})}}])},30311,e=>{var t=e.i(91398),a=e.i(69322),s=e.i(66773),l=e.i(28401),i=e.i(61494),r=e.i(12197),d=e.i(17644),n=e.i(84818),o=e.i(42929),c=e.i(97057),u=e.i(84278),m=e.i(92276),f=e.i(95379),p=e.i(51628),x=e.i(41418),g=e.i(81359),h=e.i(88604),b=e.i(6607),v=e.i(15971),j=e.i(41215),y=e.i(3828),w=e.i(58971),M=e.i(24608),N=e.i(91788),k=e.i(34728);e.s(["default",0,({slug:e})=>{let{formatMessage:P}=(0,a.S)(),{formatDateTime:I}=(0,n.f)(),{hasRole:_}=(0,w.f)(),{publishProduct:C}=(0,f.f)(),{unPublishProduct:$}=(0,p.f)(),{removeProduct:S}=(0,h.f)(),{updateProduct:T}=(0,x.f)(),{setModal:V}=(0,b.f)(),D=(0,y.useRouter)(),{push:E}=(0,y.useRouter)(),{product:R,loading:A,error:q,extendedData:U}=(0,u.f)({slug:e}),O=R?.status||"DRAFT",L=(0,N.useMemo)(()=>[{id:"published",title:P({id:"published",defaultMessage:"Published"}),description:P({id:"publish_product_description",defaultMessage:"Product will be searchable and is available for orders"}),current:"ACTIVE"===O,selectedTitle:P({id:"published",defaultMessage:"Published"}),onClick:async()=>{try{await C({productId:R?._id}),l.c.success(P({id:"product_published",defaultMessage:"Published successfully "}))}catch(t){console.error("Failed to publish product:",t);let e=t?.message||"Unknown error";l.c.error(`${P({id:"product_publish_error",defaultMessage:"Failed to publish product"})}: ${e}`)}},bgColor:"green",disable:!_(s.C.ManageProducts)},{id:"draft",title:P({id:"draft",defaultMessage:"Draft"}),description:P({id:"draft_product_description",defaultMessage:"Product will not be discoverable and can not be orderose"}),current:"DRAFT"===O,selectedTitle:P({id:"not_published",defaultMessage:"Not published"}),bgColor:"amber",disable:"ACTIVE"===O&&!_(s.C.ManageProducts),onClick:async()=>{if(_(s.C.ManageProducts))try{await $({productId:R?._id}),l.c.success(P({id:"product_drafted",defaultMessage:"Drafted successfully "}))}catch(t){console.error("Failed to unpublish product:",t);let e=t?.message||"Unknown error";l.c.error(`${P({id:"product_unpublish_error",defaultMessage:"Failed to unpublish product"})}: ${e}`)}}}],[R]);if(q)return console.error("Error loading product:",q),(0,t.jsx)("div",{className:"mt-5 max-w-full",children:(0,t.jsx)("div",{className:"text-center py-8",children:(0,t.jsx)("p",{className:"text-rose-600 dark:text-rose-400",children:P({id:"product_load_error",defaultMessage:"Failed to load product"})})})});let B=async e=>{e.target.value&&await T({productId:R?._id,product:{sequence:parseInt(e.target.value,10)}})},F=async()=>{"proxies"in R&&R.proxies?.length?await V((0,t.jsx)(k.f,{headerText:P({id:"product_delete_blocked_header",defaultMessage:"Remove links before deleting"}),message:(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{children:P({id:"product_delete_blocked_intro",defaultMessage:"This product is linked to the following product types:"})}),(0,t.jsx)("ul",{className:"list-disc list-inside text-sm text-slate-700 dark:text-slate-300",children:"proxies"in R&&R.proxies.map(({__typename:e},a)=>(0,t.jsx)("li",{children:e.replace("Product","")},a))}),(0,t.jsx)("p",{children:P({id:"product_delete_blocked_action",defaultMessage:"Please unlink it before trying to delete it."})})]}),buttonText:P({id:"ok",defaultMessage:"Ok"}),onOkClick:()=>V(null)})):await V((0,t.jsx)(v.f,{onCancelClick:()=>V(""),message:P({id:"delete_product_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it and it is nonreversible. Are you sure you want to delete this product?"}),onOkClick:async()=>{V("");try{await S({productId:R?._id}),l.c.success(P({id:"product_deleted_success",defaultMessage:"Deleted successfully"})),D.push("/products")}catch(e){await V((0,t.jsx)(v.f,{onCancelClick:()=>V(""),headerText:P({id:"error",defaultMessage:"Error"}),message:e instanceof j.f?e.message:e,icon:(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)(M.f,{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",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),okText:P({id:"ok",defaultMessage:"Ok"}),onOkClick:async()=>{V("")}}))}}}))};return R||A?A?(0,t.jsx)(r.f,{}):(0,t.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,t.jsx)(i.f,{routeName:e,depth:3,currentPageTitle:R?.texts?.title}),"DELETED"===O&&(0,t.jsx)("div",{className:"mb-4 rounded-md border border-rose-300 bg-rose-50 p-4 text-sm text-rose-800 dark:border-rose-700 dark:bg-rose-900/30 dark:text-rose-300",children:P({id:"product_deleted_notice",defaultMessage:"This product has been deleted and is no longer active. Some actions may be restricted."})}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"items-center flex-wrap flex gap-5 min-w-full justify-between",children:[(0,t.jsx)(d.f,{headerText:(0,t.jsxs)(t.Fragment,{children:[R?.texts?.title||"Untitled Product","DELETED"===O&&(0,t.jsx)("span",{className:"ml-3 rounded bg-rose-100 px-2 py-1 text-xs font-semibold text-rose-800 dark:bg-rose-900/40 dark:text-rose-300",children:P({id:"deleted_status",defaultMessage:"Deleted"})})]}),title:`${R?.texts?.title||"Product"} (${R?._id})`}),(0,t.jsxs)("div",{className:"publish-and-order flex flex-wrap gap-3",children:[O&&"DELETED"!==O&&(0,t.jsx)(m.f,{options:L,type:P({id:"product",defaultMessage:"Product"})}),(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-md dark:border-slate-600 px-4 py-2 text-sm font-medium leading-5 shadow-xs bg-white dark:bg-slate-800 h-[38px]",children:[(0,t.jsx)("label",{htmlFor:"sequence-input",className:"text-slate-700 dark:text-slate-200 font-medium cursor-pointer",children:P({id:"sequence",defaultMessage:"Display Order"})}),(0,t.jsx)("input",{type:"number",id:"sequence-input",disabled:!_(s.C.ManageProducts),className:"text-center w-12 bg-transparent border border-slate-300 dark:border-slate-600 rounded focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:border-transparent focus:outline-none text-sm font-semibold text-slate-900 dark:text-slate-300 px-2 py-1 transition-all",defaultValue:R?.sequence,onBlur:B})]}),"DRAFT"===O&&_(s.C.ManageProducts)&&(0,t.jsx)(g.f,{onClick:F})]})]}),(0,t.jsxs)("div",{className:"mt-8 flex flex-wrap gap-3 gap-x-10 text-slate-600 dark:text-slate-400",children:[(0,t.jsxs)("div",{className:"flex flex-col items-baseline gap-0",children:[(0,t.jsx)("span",{className:"mr-2 text-xs text-slate-500 dark:text-slate-500",children:"ID:"}),(0,t.jsx)("span",{className:"text-sm font-mono",children:R?._id})]}),(0,t.jsxs)("div",{className:"flex flex-col items-baseline gap-0",children:[(0,t.jsx)("span",{className:"text-xs text-slate-500 dark:text-slate-500",children:"Type:"}),(0,t.jsx)("p",{className:"text-sm font-mono",children:R?.__typename})]}),R?.created&&(0,t.jsxs)("div",{className:"flex flex-col items-baseline gap-0",children:[(0,t.jsxs)("span",{className:"text-xs text-slate-500 dark:text-slate-500",children:[P({id:"created",defaultMessage:"Created"}),":"]}),(0,t.jsx)("span",{className:"text-sm font-mono",children:I(R.created,{dateStyle:"medium",timeStyle:"short"})})]}),R?.updated&&(0,t.jsxs)("div",{className:"flex flex-col items-baseline gap-0",children:[(0,t.jsxs)("span",{className:"text-xs text-slate-500 dark:text-slate-500",children:[P({id:"updated",defaultMessage:"Updated"}),":"]}),(0,t.jsx)("span",{className:"text-sm font-mono",children:I(R.updated,{dateStyle:"medium",timeStyle:"short"})})]}),R?.published&&(0,t.jsxs)("div",{className:"flex flex-col items-baseline gap-0",children:[(0,t.jsxs)("span",{className:"text-xs text-slate-500 dark:text-slate-500",children:[P({id:"published",defaultMessage:"Published"}),":"]}),(0,t.jsx)("span",{className:"text-sm font-mono",children:I(R.published,{dateStyle:"medium",timeStyle:"short"})})]})]})]}),(0,t.jsx)(c.f,{productId:R?._id,media:R?.media||[],onEditMedia:e=>{D.push({pathname:D.pathname,query:{...D.query,tab:"media"}},void 0,{shallow:!0})},canEdit:_(s.C.ManageProducts)}),(0,t.jsx)(o.f,{product:R,extendedData:U})]}):(E("/404"),null)}])},94330,43054,95336,16113,82191,42532,10785,1330,73356,50099,77035,56902,19051,84278,11907,e=>{var t=e.i(91788);let a=t.forwardRef(function({title:e,titleId:a,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{fillRule:"evenodd",d:"M6 5v1H4.667a1.75 1.75 0 0 0-1.743 1.598l-.826 9.5A1.75 1.75 0 0 0 3.84 19H16.16a1.75 1.75 0 0 0 1.743-1.902l-.826-9.5A1.75 1.75 0 0 0 15.333 6H14V5a4 4 0 0 0-8 0Zm4-2.5A2.5 2.5 0 0 0 7.5 5v1h5V5A2.5 2.5 0 0 0 10 2.5ZM7.5 10a2.5 2.5 0 0 0 5 0V8.75a.75.75 0 0 1 1.5 0V10a4 4 0 0 1-8 0V8.75a.75.75 0 0 1 1.5 0V10Z",clipRule:"evenodd"}))});e.s(["f",0,a],94330);let s=t.forwardRef(function({title:e,titleId:a,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{d:"M12 9a1 1 0 0 1-1-1V3c0-.552.45-1.007.997-.93a7.004 7.004 0 0 1 5.933 5.933c.078.547-.378.997-.93.997h-5Z"}),t.createElement("path",{d:"M8.003 4.07C8.55 3.994 9 4.449 9 5v5a1 1 0 0 0 1 1h5c.552 0 1.008.45.93.997A7.001 7.001 0 0 1 2 11a7.002 7.002 0 0 1 6.003-6.93Z"}))});e.s(["f",0,s],43054);let l=t.forwardRef(function({title:e,titleId:a,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{d:"M2 3a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H2Z"}),t.createElement("path",{fillRule:"evenodd",d:"M2 7.5h16l-.811 7.71a2 2 0 0 1-1.99 1.79H4.802a2 2 0 0 1-1.99-1.79L2 7.5ZM7 11a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2H8a1 1 0 0 1-1-1Z",clipRule:"evenodd"}))});e.s(["f",0,l],95336);let i=t.forwardRef(function({title:e,titleId:a,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{fillRule:"evenodd",d:"M3.5 2A1.5 1.5 0 0 0 2 3.5V15a3 3 0 1 0 6 0V3.5A1.5 1.5 0 0 0 6.5 2h-3Zm11.753 6.99L9.5 14.743V6.257l1.51-1.51a1.5 1.5 0 0 1 2.122 0l2.121 2.121a1.5 1.5 0 0 1 0 2.122ZM8.364 18H16.5a1.5 1.5 0 0 0 1.5-1.5v-3a1.5 1.5 0 0 0-1.5-1.5h-2.136l-6 6ZM5 16a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))});e.s(["f",0,i],16113);let r=t.forwardRef(function({title:e,titleId:a,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{fillRule:"evenodd",d:"M1 2.75A.75.75 0 0 1 1.75 2h16.5a.75.75 0 0 1 0 1.5H18v8.75A2.75 2.75 0 0 1 15.25 15h-1.072l.798 3.06a.75.75 0 0 1-1.452.38L13.41 18H6.59l-.114.44a.75.75 0 0 1-1.452-.38L5.823 15H4.75A2.75 2.75 0 0 1 2 12.25V3.5h-.25A.75.75 0 0 1 1 2.75ZM7.373 15l-.391 1.5h6.037l-.392-1.5H7.373Zm7.49-8.931a.75.75 0 0 1-.175 1.046 19.326 19.326 0 0 0-3.398 3.098.75.75 0 0 1-1.097.04L8.5 8.561l-2.22 2.22A.75.75 0 1 1 5.22 9.72l2.75-2.75a.75.75 0 0 1 1.06 0l1.664 1.663a20.786 20.786 0 0 1 3.122-2.74.75.75 0 0 1 1.046.176Z",clipRule:"evenodd"}))});e.s(["f",0,r],82191);var d=e.i(91398),n=e.i(66773),o=e.i(38865),c=e.i(69322),u=e.i(58971),m=e.i(5505),f=e.i(1504),p=e.i(98520),x=e.i(79093),g=e.i(64127),h=e.i(69211),b=e.i(72094),v=e.i(73419),j=e.i(99160),y=e.i(45229),w=e.i(81013),M=e.i(98949),N=e.i(82226),k=e.i(59080),P=e.i(32171);let I=k.f`
|
|
154
|
+
`;e.s(["f",0,()=>{let[e]=(0,a.f)(l);return{updateProduct:async({productId:t,product:{tags:a,sequence:s,meta:l}})=>e({variables:{productId:t,product:{tags:a,sequence:s,meta:l}},refetchQueries:["Products","ShopStatus","ShopInfo"]})}}])},30311,e=>{"use strict";var t=e.i(91398),a=e.i(3326),s=e.i(66773),l=e.i(28401),i=e.i(61494),r=e.i(12197),d=e.i(17644),n=e.i(84818),o=e.i(42929),c=e.i(97057),u=e.i(84278),m=e.i(92276),f=e.i(95379),p=e.i(51628),x=e.i(41418),g=e.i(81359),h=e.i(88604),b=e.i(6607),v=e.i(15971),j=e.i(41215),y=e.i(3828),w=e.i(58971),M=e.i(24608),N=e.i(91788),k=e.i(34728);e.s(["default",0,({slug:e})=>{let{formatMessage:P}=(0,a.S)(),{formatDateTime:I}=(0,n.f)(),{hasRole:_}=(0,w.f)(),{publishProduct:C}=(0,f.f)(),{unPublishProduct:$}=(0,p.f)(),{removeProduct:S}=(0,h.f)(),{updateProduct:T}=(0,x.f)(),{setModal:V}=(0,b.f)(),D=(0,y.useRouter)(),{push:E}=(0,y.useRouter)(),{product:R,loading:A,error:q,extendedData:U}=(0,u.f)({slug:e}),O=R?.status||"DRAFT",L=(0,N.useMemo)(()=>[{id:"published",title:P({id:"published",defaultMessage:"Published"}),description:P({id:"publish_product_description",defaultMessage:"Product will be searchable and is available for orders"}),current:"ACTIVE"===O,selectedTitle:P({id:"published",defaultMessage:"Published"}),onClick:async()=>{try{await C({productId:R?._id}),l.c.success(P({id:"product_published",defaultMessage:"Published successfully "}))}catch(t){console.error("Failed to publish product:",t);let e=t?.message||"Unknown error";l.c.error(`${P({id:"product_publish_error",defaultMessage:"Failed to publish product"})}: ${e}`)}},bgColor:"green",disable:!_(s.C.ManageProducts)},{id:"draft",title:P({id:"draft",defaultMessage:"Draft"}),description:P({id:"draft_product_description",defaultMessage:"Product will not be discoverable and can not be orderose"}),current:"DRAFT"===O,selectedTitle:P({id:"not_published",defaultMessage:"Not published"}),bgColor:"amber",disable:"ACTIVE"===O&&!_(s.C.ManageProducts),onClick:async()=>{if(_(s.C.ManageProducts))try{await $({productId:R?._id}),l.c.success(P({id:"product_drafted",defaultMessage:"Drafted successfully "}))}catch(t){console.error("Failed to unpublish product:",t);let e=t?.message||"Unknown error";l.c.error(`${P({id:"product_unpublish_error",defaultMessage:"Failed to unpublish product"})}: ${e}`)}}}],[R]);if(q)return console.error("Error loading product:",q),(0,t.jsx)("div",{className:"mt-5 max-w-full",children:(0,t.jsx)("div",{className:"text-center py-8",children:(0,t.jsx)("p",{className:"text-rose-600 dark:text-rose-400",children:P({id:"product_load_error",defaultMessage:"Failed to load product"})})})});let B=async e=>{e.target.value&&await T({productId:R?._id,product:{sequence:parseInt(e.target.value,10)}})},F=async()=>{"proxies"in R&&R.proxies?.length?await V((0,t.jsx)(k.f,{headerText:P({id:"product_delete_blocked_header",defaultMessage:"Remove links before deleting"}),message:(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{children:P({id:"product_delete_blocked_intro",defaultMessage:"This product is linked to the following product types:"})}),(0,t.jsx)("ul",{className:"list-disc list-inside text-sm text-slate-700 dark:text-slate-300",children:"proxies"in R&&R.proxies.map(({__typename:e},a)=>(0,t.jsx)("li",{children:e.replace("Product","")},a))}),(0,t.jsx)("p",{children:P({id:"product_delete_blocked_action",defaultMessage:"Please unlink it before trying to delete it."})})]}),buttonText:P({id:"ok",defaultMessage:"Ok"}),onOkClick:()=>V(null)})):await V((0,t.jsx)(v.f,{onCancelClick:()=>V(""),message:P({id:"delete_product_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it and it is nonreversible. Are you sure you want to delete this product?"}),onOkClick:async()=>{V("");try{await S({productId:R?._id}),l.c.success(P({id:"product_deleted_success",defaultMessage:"Deleted successfully"})),D.push("/products")}catch(e){await V((0,t.jsx)(v.f,{onCancelClick:()=>V(""),headerText:P({id:"error",defaultMessage:"Error"}),message:e instanceof j.f?e.message:e,icon:(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)(M.f,{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",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),okText:P({id:"ok",defaultMessage:"Ok"}),onOkClick:async()=>{V("")}}))}}}))};return R||A?A?(0,t.jsx)(r.f,{}):(0,t.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,t.jsx)(i.f,{routeName:e,depth:3,currentPageTitle:R?.texts?.title}),"DELETED"===O&&(0,t.jsx)("div",{className:"mb-4 rounded-md border border-rose-300 bg-rose-50 p-4 text-sm text-rose-800 dark:border-rose-700 dark:bg-rose-900/30 dark:text-rose-300",children:P({id:"product_deleted_notice",defaultMessage:"This product has been deleted and is no longer active. Some actions may be restricted."})}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"items-center flex-wrap flex gap-5 min-w-full justify-between",children:[(0,t.jsx)(d.f,{headerText:(0,t.jsxs)(t.Fragment,{children:[R?.texts?.title||"Untitled Product","DELETED"===O&&(0,t.jsx)("span",{className:"ml-3 rounded bg-rose-100 px-2 py-1 text-xs font-semibold text-rose-800 dark:bg-rose-900/40 dark:text-rose-300",children:P({id:"deleted_status",defaultMessage:"Deleted"})})]}),title:`${R?.texts?.title||"Product"} (${R?._id})`}),(0,t.jsxs)("div",{className:"publish-and-order flex flex-wrap gap-3",children:[O&&"DELETED"!==O&&(0,t.jsx)(m.f,{options:L,type:P({id:"product",defaultMessage:"Product"})}),(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-md dark:border-slate-600 px-4 py-2 text-sm font-medium leading-5 shadow-xs bg-white dark:bg-slate-800 h-[38px]",children:[(0,t.jsx)("label",{htmlFor:"sequence-input",className:"text-slate-700 dark:text-slate-200 font-medium cursor-pointer",children:P({id:"sequence",defaultMessage:"Display Order"})}),(0,t.jsx)("input",{type:"number",id:"sequence-input",disabled:!_(s.C.ManageProducts),className:"text-center w-12 bg-transparent border border-slate-300 dark:border-slate-600 rounded focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:border-transparent focus:outline-none text-sm font-semibold text-slate-900 dark:text-slate-300 px-2 py-1 transition-all",defaultValue:R?.sequence,onBlur:B})]}),"DRAFT"===O&&_(s.C.ManageProducts)&&(0,t.jsx)(g.f,{onClick:F})]})]}),(0,t.jsxs)("div",{className:"mt-8 flex flex-wrap gap-3 gap-x-10 text-slate-600 dark:text-slate-400",children:[(0,t.jsxs)("div",{className:"flex flex-col items-baseline gap-0",children:[(0,t.jsx)("span",{className:"mr-2 text-xs text-slate-500 dark:text-slate-500",children:"ID:"}),(0,t.jsx)("span",{className:"text-sm font-mono",children:R?._id})]}),(0,t.jsxs)("div",{className:"flex flex-col items-baseline gap-0",children:[(0,t.jsx)("span",{className:"text-xs text-slate-500 dark:text-slate-500",children:"Type:"}),(0,t.jsx)("p",{className:"text-sm font-mono",children:R?.__typename})]}),R?.created&&(0,t.jsxs)("div",{className:"flex flex-col items-baseline gap-0",children:[(0,t.jsxs)("span",{className:"text-xs text-slate-500 dark:text-slate-500",children:[P({id:"created",defaultMessage:"Created"}),":"]}),(0,t.jsx)("span",{className:"text-sm font-mono",children:I(R.created,{dateStyle:"medium",timeStyle:"short"})})]}),R?.updated&&(0,t.jsxs)("div",{className:"flex flex-col items-baseline gap-0",children:[(0,t.jsxs)("span",{className:"text-xs text-slate-500 dark:text-slate-500",children:[P({id:"updated",defaultMessage:"Updated"}),":"]}),(0,t.jsx)("span",{className:"text-sm font-mono",children:I(R.updated,{dateStyle:"medium",timeStyle:"short"})})]}),R?.published&&(0,t.jsxs)("div",{className:"flex flex-col items-baseline gap-0",children:[(0,t.jsxs)("span",{className:"text-xs text-slate-500 dark:text-slate-500",children:[P({id:"published",defaultMessage:"Published"}),":"]}),(0,t.jsx)("span",{className:"text-sm font-mono",children:I(R.published,{dateStyle:"medium",timeStyle:"short"})})]})]})]}),(0,t.jsx)(c.f,{productId:R?._id,media:R?.media||[],onEditMedia:e=>{D.push({pathname:D.pathname,query:{...D.query,tab:"media"}},void 0,{shallow:!0})},canEdit:_(s.C.ManageProducts)}),(0,t.jsx)(o.f,{product:R,extendedData:U})]}):(E("/404"),null)}])},94330,43054,95336,16113,82191,42532,10785,1330,73356,50099,77035,56902,19051,84278,11907,e=>{"use strict";var t=e.i(91788);let a=t.forwardRef(function({title:e,titleId:a,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{fillRule:"evenodd",d:"M6 5v1H4.667a1.75 1.75 0 0 0-1.743 1.598l-.826 9.5A1.75 1.75 0 0 0 3.84 19H16.16a1.75 1.75 0 0 0 1.743-1.902l-.826-9.5A1.75 1.75 0 0 0 15.333 6H14V5a4 4 0 0 0-8 0Zm4-2.5A2.5 2.5 0 0 0 7.5 5v1h5V5A2.5 2.5 0 0 0 10 2.5ZM7.5 10a2.5 2.5 0 0 0 5 0V8.75a.75.75 0 0 1 1.5 0V10a4 4 0 0 1-8 0V8.75a.75.75 0 0 1 1.5 0V10Z",clipRule:"evenodd"}))});e.s(["f",0,a],94330);let s=t.forwardRef(function({title:e,titleId:a,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{d:"M12 9a1 1 0 0 1-1-1V3c0-.552.45-1.007.997-.93a7.004 7.004 0 0 1 5.933 5.933c.078.547-.378.997-.93.997h-5Z"}),t.createElement("path",{d:"M8.003 4.07C8.55 3.994 9 4.449 9 5v5a1 1 0 0 0 1 1h5c.552 0 1.008.45.93.997A7.001 7.001 0 0 1 2 11a7.002 7.002 0 0 1 6.003-6.93Z"}))});e.s(["f",0,s],43054);let l=t.forwardRef(function({title:e,titleId:a,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{d:"M2 3a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H2Z"}),t.createElement("path",{fillRule:"evenodd",d:"M2 7.5h16l-.811 7.71a2 2 0 0 1-1.99 1.79H4.802a2 2 0 0 1-1.99-1.79L2 7.5ZM7 11a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2H8a1 1 0 0 1-1-1Z",clipRule:"evenodd"}))});e.s(["f",0,l],95336);let i=t.forwardRef(function({title:e,titleId:a,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{fillRule:"evenodd",d:"M3.5 2A1.5 1.5 0 0 0 2 3.5V15a3 3 0 1 0 6 0V3.5A1.5 1.5 0 0 0 6.5 2h-3Zm11.753 6.99L9.5 14.743V6.257l1.51-1.51a1.5 1.5 0 0 1 2.122 0l2.121 2.121a1.5 1.5 0 0 1 0 2.122ZM8.364 18H16.5a1.5 1.5 0 0 0 1.5-1.5v-3a1.5 1.5 0 0 0-1.5-1.5h-2.136l-6 6ZM5 16a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))});e.s(["f",0,i],16113);let r=t.forwardRef(function({title:e,titleId:a,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{fillRule:"evenodd",d:"M1 2.75A.75.75 0 0 1 1.75 2h16.5a.75.75 0 0 1 0 1.5H18v8.75A2.75 2.75 0 0 1 15.25 15h-1.072l.798 3.06a.75.75 0 0 1-1.452.38L13.41 18H6.59l-.114.44a.75.75 0 0 1-1.452-.38L5.823 15H4.75A2.75 2.75 0 0 1 2 12.25V3.5h-.25A.75.75 0 0 1 1 2.75ZM7.373 15l-.391 1.5h6.037l-.392-1.5H7.373Zm7.49-8.931a.75.75 0 0 1-.175 1.046 19.326 19.326 0 0 0-3.398 3.098.75.75 0 0 1-1.097.04L8.5 8.561l-2.22 2.22A.75.75 0 1 1 5.22 9.72l2.75-2.75a.75.75 0 0 1 1.06 0l1.664 1.663a20.786 20.786 0 0 1 3.122-2.74.75.75 0 0 1 1.046.176Z",clipRule:"evenodd"}))});e.s(["f",0,r],82191);var d=e.i(91398),n=e.i(66773),o=e.i(38865),c=e.i(3326),u=e.i(58971),m=e.i(5505),f=e.i(1504),p=e.i(98520),x=e.i(79093),g=e.i(64127),h=e.i(69211),b=e.i(72094),v=e.i(73419),j=e.i(99160),y=e.i(45229),w=e.i(81013),M=e.i(98949),N=e.i(82226),k=e.i(59080),P=e.i(32171);let I=k.f`
|
|
155
155
|
fragment ProductCatalogPriceFragment on ProductCatalogPrice {
|
|
156
156
|
isTaxable
|
|
157
157
|
isNetPrice
|
|
@@ -513,7 +513,7 @@
|
|
|
513
513
|
_id
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
`;var e2=e.i(24112),e3=e.i(5270);let e6={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};e6.node;let
|
|
516
|
+
`;var e2=e.i(24112),e3=e.i(5270);let e6={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};e6.node;let e7=(0,e3.f)(e6);var e4=e.i(38994);let e9=function({onSuccess:e}){let{selectedLocale:t}=(0,U.f)(),{createProduct:a}=(0,e4.f)(),{formatMessage:s}=(0,c.S)();return async({title:l,type:i,quantity:r=1})=>{let d=[{title:l,slug:l.toLowerCase().replace(/\s+/g,"-"),locale:t}],{data:o}=await a({product:{type:i||n.f.SimpleProduct},texts:d}),c=o?.createProduct;if(!c?._id)throw Error(s({id:"product_creation_failed",defaultMessage:"Product creation failed"}));return e?.(c,r),{success:!0}}},e8=({bundleProduct:e,onSuccess:a})=>{let{formatMessage:s}=(0,c.S)(),{hasRole:l}=(0,u.f)(),i=e9({onSuccess:a}),r=(0,t.useMemo)(()=>{let t=e?.texts?.title??"";return`${t} - New Bundle Item`},[e]),o=async({title:e,type:t,quantity:a})=>{try{return await i({title:e,type:t,quantity:a}),{success:!0}}catch(e){return{success:!1,error:{message:e?.message}}}},m=s({id:"bundle-item-scaffolded-success",defaultMessage:"New product scaffolded and added to bundle successfully"}),f=(0,M.f)({submit:o,successMessage:m,enableReinitialize:!0,initialValues:{title:r,type:n.f.SimpleProduct,quantity:1}});return(0,d.jsxs)(h.f,{className:"mt-4 rounded-md border border-slate-200 dark:border-slate-700",form:f,children:[(0,d.jsxs)("div",{className:"p-5 flex flex-col gap-3",children:[(0,d.jsx)("h3",{className:"text-md font-semibold text-slate-800 dark:text-slate-100",children:s({id:"scaffold_bundle_item_title",defaultMessage:"Scaffold New Bundle Item"})}),(0,d.jsx)(y.f,{name:"title",id:"title",label:s({id:"name",defaultMessage:"Name"}),required:!0,className:"block w-full rounded-md border-slate-300 dark:border-slate-800 text-sm"}),(0,d.jsx)(v.f,{className:"mt-1 w-full",label:s({id:"type",defaultMessage:"Type"}),placeholder:s({id:"type",defaultMessage:"Type"}),required:!0,name:"type",options:Object.fromEntries(Object.entries(n.f).filter(([,e])=>e!==n.f.ConfigurableProduct&&e!==n.f.BundleProduct).map(([e,t])=>[t,e]))}),(0,d.jsx)(y.f,{name:"quantity",type:"number",required:!0,label:s({id:"quantity",defaultMessage:"Quantity"})})]}),l(n.C.ManageProducts)&&(0,d.jsx)("div",{className:"border-t border-slate-100 dark:border-slate-700 bg-slate-50 dark:bg-slate-900 p-5 text-right",children:(0,d.jsx)(j.f,{label:s({id:"scaffold_and_add",defaultMessage:"Scaffold & Add"})})})]})},te=({productId:e=null,slug:t=null}={})=>{let a=(0,Z.Q)(t),{customProperties:s,hydrateFragment:l}=(0,T.f)(),{data:i,loading:r,error:d}=(0,P.f)(((e="")=>k.f`
|
|
517
517
|
query Product($productId: ID, $slug: String) {
|
|
518
518
|
product(productId: $productId, slug: $slug) {
|
|
519
519
|
...ProductDetailFragment
|
|
@@ -568,7 +568,7 @@
|
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
${$.f}
|
|
571
|
-
`)(s?.Product),{skip:!e&&!a,variables:{productId:e||a}}),n=l(s?.Product,i?.product);return{product:i?.product,loading:r,error:d,extendedData:n}};e.s(["f",0,te],84278);let tt=({productId:e,disabled:a=!1})=>{let{product:s}=te({productId:e}),{setModal:l}=(0,el.f)(),[i,r]=(0,t.useState)(""),{createProductBundleItem:o}=(()=>{let[e]=(0,C.f)(e5);return{createProductBundleItem:async({productId:t,item:a})=>e({variables:{productId:t,item:a},refetchQueries:["ProductBundleItems"]})}})(),{hasRole:m}=(0,u.f)(),{formatMessage:f}=(0,c.S)(),{products:p,loading:x}=(0,e2.f)({queryString:i,includeDrafts:!0,limit:50,sort:[{key:"created",value:n.A.Desc}]}),g=async({productId:t,quantity:a})=>(await o({item:{productId:t,quantity:a},productId:e}),{success:!0}),b=f({id:"bundle_item_added",defaultMessage:"Bundle product added successfully"}),v=(0,M.f)({disabled:a,submit:g,successMessage:b,onSubmitSuccess:()=>(v.formik.resetForm(),null),initialValues:{productId:"",quantity:1}}),N=(0,t.useCallback)(async()=>{await l((0,d.jsx)(e8,{bundleProduct:s,onSuccess:async(t,a=1)=>{await o({item:{productId:t._id,quantity:a},productId:e}),l("")}}))},[s]);return(0,d.jsxs)(h.f,{form:v,children:[(0,d.jsxs)("div",{className:"flex items-end gap-2 w-full",children:[(0,d.jsx)("div",{className:"flex-1",children:(0,d.jsx)(e1.f,{name:"productId",onFilter:r,queryString:i,label:f({id:"product",defaultMessage:"Product"}),data:((e=[])=>e.map(({_id:e,status:t,texts:a,media:s})=>({id:e,tag:t,...a,image:s?.length?s[0]?.file?.url:null})))(p),isLoading:x,className:"w-full text-sm font-medium text-slate-500",required:!0})}),m(n.C.ManageProducts)&&(0,d.jsx)("div",{className:"pb-3",children:(0,d.jsx)(w.f,{className:"flex items-center justify-center p-2 rounded-md",onClick:N,children:(0,d.jsx)(
|
|
571
|
+
`)(s?.Product),{skip:!e&&!a,variables:{productId:e||a}}),n=l(s?.Product,i?.product);return{product:i?.product,loading:r,error:d,extendedData:n}};e.s(["f",0,te],84278);let tt=({productId:e,disabled:a=!1})=>{let{product:s}=te({productId:e}),{setModal:l}=(0,el.f)(),[i,r]=(0,t.useState)(""),{createProductBundleItem:o}=(()=>{let[e]=(0,C.f)(e5);return{createProductBundleItem:async({productId:t,item:a})=>e({variables:{productId:t,item:a},refetchQueries:["ProductBundleItems"]})}})(),{hasRole:m}=(0,u.f)(),{formatMessage:f}=(0,c.S)(),{products:p,loading:x}=(0,e2.f)({queryString:i,includeDrafts:!0,limit:50,sort:[{key:"created",value:n.A.Desc}]}),g=async({productId:t,quantity:a})=>(await o({item:{productId:t,quantity:a},productId:e}),{success:!0}),b=f({id:"bundle_item_added",defaultMessage:"Bundle product added successfully"}),v=(0,M.f)({disabled:a,submit:g,successMessage:b,onSubmitSuccess:()=>(v.formik.resetForm(),null),initialValues:{productId:"",quantity:1}}),N=(0,t.useCallback)(async()=>{await l((0,d.jsx)(e8,{bundleProduct:s,onSuccess:async(t,a=1)=>{await o({item:{productId:t._id,quantity:a},productId:e}),l("")}}))},[s]);return(0,d.jsxs)(h.f,{form:v,children:[(0,d.jsxs)("div",{className:"flex items-end gap-2 w-full",children:[(0,d.jsx)("div",{className:"flex-1",children:(0,d.jsx)(e1.f,{name:"productId",onFilter:r,queryString:i,label:f({id:"product",defaultMessage:"Product"}),data:((e=[])=>e.map(({_id:e,status:t,texts:a,media:s})=>({id:e,tag:t,...a,image:s?.length?s[0]?.file?.url:null})))(p),isLoading:x,className:"w-full text-sm font-medium text-slate-500",required:!0})}),m(n.C.ManageProducts)&&(0,d.jsx)("div",{className:"pb-3",children:(0,d.jsx)(w.f,{className:"flex items-center justify-center p-2 rounded-md",onClick:N,children:(0,d.jsx)(e7,{className:"h-5 w-5"})})})]}),(0,d.jsx)(y.f,{name:"quantity",type:"number",required:!0,label:f({id:"quantity",defaultMessage:"Quantity"})}),m(n.C.ManageProducts)&&(0,d.jsx)(j.f,{label:f({id:"submit",defaultMessage:"Submit"}),className:"mt-2"})]})};var ta=e.i(54529);let ts=k.f`
|
|
572
572
|
query ProductBundleItems(
|
|
573
573
|
$productId: ID
|
|
574
574
|
$slug: String
|
|
@@ -593,4 +593,4 @@
|
|
|
593
593
|
_id
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
`;var ti=e.i(41158),tr=e.i(35065),td=e.i(22315);let tn=({item:e,onDelete:t,index:a})=>{let{product:s,quantity:l}=e;return(0,d.jsx)(ti.default,{href:`/products?slug=${(0,Z.U)(s)}`,children:(0,d.jsxs)("div",{className:" group flex w-full items-center justify-between border-b border-slate-200 dark:border-slate-700 hover:border-slate-300 dark:hover:border-slate-600 hover:bg-slate-50/80 dark:hover:bg-slate-700/50 transition-all duration-200 ease-in-out hover:shadow-sm last:border-none",children:[(0,d.jsxs)("div",{className:"flex w-full items-center space-x-6 py-4",children:[s.media?.length?(0,d.jsx)("div",{className:"flex w-20 flex-col items-center",children:(0,d.jsx)("div",{className:"relative m-1 mr-2 mt-1 flex items-center justify-center rounded-full ",children:(0,d.jsx)(tr.f,{className:"mx-auto w-auto",src:s.media[0]?.file?.url,width:160,height:100,alt:s?.texts?.title||s?.texts?.subtitle})})}):(0,d.jsx)(td.f,{className:"h-10 w-10"}),(0,d.jsxs)("div",{className:"shrink grow basis-1/2",children:[(0,d.jsx)("h3",{className:"text-lg text-slate-800 dark:text-slate-200",children:s?.texts?.title}),(0,d.jsx)("p",{className:"text-xs text-slate-600 dark:text-slate-200",children:s?.texts?.subtitle})]}),(0,d.jsx)("div",{className:"ml-auto",children:(0,d.jsx)(eN.f,{text:l,color:"slate",square:!0})})]}),(0,d.jsx)(eA.f,{onDelete:()=>{t(a)},showDelete:!0})]})})},to=({productId:e})=>{let{formatMessage:t}=(0,c.S)(),{setModal:a}=(0,el.f)(),{selectedLocale:s}=(0,U.f)(),{bundleItems:l,loading:i}=(({productId:e=null,slug:t=null}={})=>{let{selectedLocale:a}=(0,U.f)(),s=(0,Z.Q)(t),{data:l,loading:i,error:r}=(0,P.f)(ts,{skip:!e&&!s,variables:{productId:e||s,forceLocale:a},context:{headers:{forceLocale:a}}});return{bundleItems:l?.product?.bundleItems||[],loading:i,error:r}})({productId:e,forceLocale:s}),{removeBundleItem:r}=(()=>{let[e]=(0,C.f)(tl);return{removeBundleItem:async({productId:t,index:a})=>e({variables:{productId:t,index:a},refetchQueries:["ProductBundleItems"]})}})(),n=async s=>{await a((0,d.jsx)(ea.f,{onCancelClick:async()=>a(""),message:t({id:"delete_bundle_item_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this bundle item? "}),onOkClick:async()=>{a(""),await r({productId:e,index:s}),L.c.success(t({id:"bundle_item_deleted",defaultMessage:"Bundle item deleted successfully"}))},okText:t({id:"delete_bundle_item",defaultMessage:"Delete item"})}))};return i?(0,d.jsx)(eg.f,{}):l.length?(0,d.jsx)(d.Fragment,{children:l.map((e,t)=>(0,d.jsx)(tn,{index:t,item:e,onDelete:n},e.product._id))}):(0,d.jsx)(J.f,{message:t({id:"bundle",defaultMessage:"Bundle product"})})};e.s(["f",0,({productId:e,disabled:t=!1})=>(0,d.jsx)("div",{className:"mt-6 rounded-md",children:(0,d.jsxs)("div",{className:"lg:grid lg:grid-cols-9",children:[(0,d.jsx)("div",{className:"mb-5 lg:col-span-4 lg:pr-5",children:(0,d.jsx)(tt,{productId:e,disabled:t})}),(0,d.jsx)("div",{className:"col-span-5 ml-auto rounded-md bg-white dark:bg-slate-800 px-8 shadow-md dark:shadow-none lg:w-full",children:(0,d.jsx)("div",{className:"py-4",children:(0,d.jsx)(to,{productId:e})})})]})})],11907)}])
|
|
596
|
+
`;var ti=e.i(41158),tr=e.i(35065),td=e.i(22315);let tn=({item:e,onDelete:t,index:a})=>{let{product:s,quantity:l}=e;return(0,d.jsx)(ti.default,{href:`/products?slug=${(0,Z.U)(s)}`,children:(0,d.jsxs)("div",{className:" group flex w-full items-center justify-between border-b border-slate-200 dark:border-slate-700 hover:border-slate-300 dark:hover:border-slate-600 hover:bg-slate-50/80 dark:hover:bg-slate-700/50 transition-all duration-200 ease-in-out hover:shadow-sm last:border-none",children:[(0,d.jsxs)("div",{className:"flex w-full items-center space-x-6 py-4",children:[s.media?.length?(0,d.jsx)("div",{className:"flex w-20 flex-col items-center",children:(0,d.jsx)("div",{className:"relative m-1 mr-2 mt-1 flex items-center justify-center rounded-full ",children:(0,d.jsx)(tr.f,{className:"mx-auto w-auto",src:s.media[0]?.file?.url,width:160,height:100,alt:s?.texts?.title||s?.texts?.subtitle})})}):(0,d.jsx)(td.f,{className:"h-10 w-10"}),(0,d.jsxs)("div",{className:"shrink grow basis-1/2",children:[(0,d.jsx)("h3",{className:"text-lg text-slate-800 dark:text-slate-200",children:s?.texts?.title}),(0,d.jsx)("p",{className:"text-xs text-slate-600 dark:text-slate-200",children:s?.texts?.subtitle})]}),(0,d.jsx)("div",{className:"ml-auto",children:(0,d.jsx)(eN.f,{text:l,color:"slate",square:!0})})]}),(0,d.jsx)(eA.f,{onDelete:()=>{t(a)},showDelete:!0})]})})},to=({productId:e})=>{let{formatMessage:t}=(0,c.S)(),{setModal:a}=(0,el.f)(),{selectedLocale:s}=(0,U.f)(),{bundleItems:l,loading:i}=(({productId:e=null,slug:t=null}={})=>{let{selectedLocale:a}=(0,U.f)(),s=(0,Z.Q)(t),{data:l,loading:i,error:r}=(0,P.f)(ts,{skip:!e&&!s,variables:{productId:e||s,forceLocale:a},context:{headers:{forceLocale:a}}});return{bundleItems:l?.product?.bundleItems||[],loading:i,error:r}})({productId:e,forceLocale:s}),{removeBundleItem:r}=(()=>{let[e]=(0,C.f)(tl);return{removeBundleItem:async({productId:t,index:a})=>e({variables:{productId:t,index:a},refetchQueries:["ProductBundleItems"]})}})(),n=async s=>{await a((0,d.jsx)(ea.f,{onCancelClick:async()=>a(""),message:t({id:"delete_bundle_item_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this bundle item? "}),onOkClick:async()=>{a(""),await r({productId:e,index:s}),L.c.success(t({id:"bundle_item_deleted",defaultMessage:"Bundle item deleted successfully"}))},okText:t({id:"delete_bundle_item",defaultMessage:"Delete item"})}))};return i?(0,d.jsx)(eg.f,{}):l.length?(0,d.jsx)(d.Fragment,{children:l.map((e,t)=>(0,d.jsx)(tn,{index:t,item:e,onDelete:n},e.product._id))}):(0,d.jsx)(J.f,{message:t({id:"bundle",defaultMessage:"Bundle product"})})};e.s(["f",0,({productId:e,disabled:t=!1})=>(0,d.jsx)("div",{className:"mt-6 rounded-md",children:(0,d.jsxs)("div",{className:"lg:grid lg:grid-cols-9",children:[(0,d.jsx)("div",{className:"mb-5 lg:col-span-4 lg:pr-5",children:(0,d.jsx)(tt,{productId:e,disabled:t})}),(0,d.jsx)("div",{className:"col-span-5 ml-auto rounded-md bg-white dark:bg-slate-800 px-8 shadow-md dark:shadow-none lg:w-full",children:(0,d.jsx)("div",{className:"py-4",children:(0,d.jsx)(to,{productId:e})})})]})})],11907)}]);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,36792,(e,t,r)=>{let s="/users/UserDetailPage";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(2385)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([s])})},60513,75284,e=>{"use strict";var t=e.i(91788),r=e.i(28401),s=e.i(3326),a=e.i(30086),i=e.i(66773),l=e.i(98926),d=e.i(63104),o=e.i(3828);e.s(["f",0,()=>{let[e,u]=(0,t.useState)(!1),n=(0,l.f)(),c=(0,o.useRouter)(),{addWork:f}=(0,a.f)(),{formatMessage:k}=(0,s.S)(),x=(0,t.useCallback)(async e=>{let{data:t}=await n.query({query:(0,d.k)(),variables:{workId:e},fetchPolicy:"network-only"});return t?.work??null},[n]);return{isExporting:e,exportCSV:(0,t.useCallback)(async({type:e,pollInterval:t=2e3,...s})=>{u(!0);try{let r=await f({type:i.i.BulkExport,input:{type:e,...s}}),a=r?.data?.addWork?._id;if(!a)throw Error("Failed to create export work");await new Promise((e,r)=>{let s=setInterval(async()=>{try{let t=await x(a);if(!t)throw Error("Work not found");(t.status===i.h.Success||t.status===i.h.Failed)&&(clearInterval(s),t.status===i.h.Success&&t.success?(c.push(`/exports?workId=${t._id}`),e(t)):r(t.error||Error("Export failed")))}catch(e){clearInterval(s),r(e)}},t)})}catch(e){return console.error("Export failed:",e),r.c.error(k({id:"export_failed",defaultMessage:"Export failed. Please try again."})),null}finally{u(!1)}},[f,x,c,k])}}],60513);var u=e.i(91398),n=e.i(69211),c=e.i(64127),f=e.i(98949),k=e.i(99160);e.s(["f",0,function({options:e,onSubmit:r,loading:a=!1,successMessage:i=""}){let{formatMessage:l}=(0,s.S)(),d=(0,t.useMemo)(()=>e.reduce((e,t)=>(e[t.key]=t.defaultChecked??!0,e),{}),[e]),o=async e=>(await r(e),{success:!0}),x=(0,f.f)({successMessage:i||l({id:"export_completed",defaultMessage:"Data exported successfully"}),submit:o,enableReinitialize:!0,initialValues:d});return(0,u.jsx)(n.f,{form:x,children:x.formik.isSubmitting?(0,u.jsxs)("div",{className:"flex items-center gap-3 p-4 mb-4 rounded-lg animate-pulse",children:[(0,u.jsx)("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),(0,u.jsx)("span",{className:"text-sm font-medium text-blue-700 dark:text-blue-300",children:l({id:"exporting_message",defaultMessage:"Generating your export files. This may take a moment..."})})]}):(0,u.jsxs)("fieldset",{disabled:a,style:{border:"none",padding:0},children:[(0,u.jsxs)("h3",{children:[" ",l({id:"export_options",defaultMessage:"Export options"})]}),e.map(e=>(0,u.jsx)(c.f,{name:e.key,label:e.label,hideLabel:!0,className:"mr-2 h-4 w-4 justify-between rounded-sm border-slate-300 dark:border-slate-600 bg-white text-slate-950 focus:ring-slate-800 lg:items-center",type:"checkbox"},e.key)),(0,u.jsx)(k.f,{label:l({id:"submit",defaultMessage:"Submit"}),disabled:a})]})})}],75284)},64127,e=>{"use strict";var t=e.i(91398),r=e.i(72043),s=e.i(60741);e.s(["f",0,e=>{let{disabled:a,labelClassName:i,containerClassName:l,inputClassName:d,...o}=e,u=(0,s.f)({...e,type:"checkbox"});return(0,t.jsxs)("div",{className:(0,r.default)("",{"text-rose-600":!!u.error,checkbox:!0,disabled:u.disabled,required:u.required},l),children:[(0,t.jsx)("input",{checked:!!u.value,disabled:a,id:u.name,name:u.name,onChange:u.onChange,onBlur:u.onBlur,type:"checkbox",className:(0,r.default)("h-4 w-4 rounded-xs border-slate-300 dark:border-slate-600 bg-white dark:!bg-slate-800 text-indigo-600 dark:text-slate-200 focus:ring-slate-800",d,e.className),...o}),(0,t.jsx)("label",{htmlFor:u.name,className:(0,r.default)("text-sm text-slate-900 dark:text-slate-200",i,{"text-danger":!!u.error}),children:u.label})]})}])},30086,e=>{"use strict";var t=e.i(59080),r=e.i(76204);let s=t.f`
|
|
2
|
+
mutation AddWork(
|
|
3
|
+
$type: WorkType!
|
|
4
|
+
$priority: Int! = 0
|
|
5
|
+
$input: JSON
|
|
6
|
+
$originalWorkId: ID
|
|
7
|
+
$scheduled: Timestamp
|
|
8
|
+
$retries: Int! = 20
|
|
9
|
+
) {
|
|
10
|
+
addWork(
|
|
11
|
+
type: $type
|
|
12
|
+
priority: $priority
|
|
13
|
+
input: $input
|
|
14
|
+
originalWorkId: $originalWorkId
|
|
15
|
+
scheduled: $scheduled
|
|
16
|
+
retries: $retries
|
|
17
|
+
) {
|
|
18
|
+
_id
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`;e.s(["f",0,()=>{let[e]=(0,r.f)(s);return{addWork:async({type:t,priority:r,input:s,originalWorkId:a,scheduled:i=null,retries:l})=>e({variables:{type:t,priority:r,input:s,originalWorkId:a,scheduled:i,retries:l},refetchQueries:["WorkQueue"]})}}])},63104,e=>{"use strict";var t=e.i(59080),r=e.i(32171),s=e.i(70693),a=e.i(94672);let i=(e="")=>t.f`
|
|
22
|
+
query Work($workId: ID!) {
|
|
23
|
+
work(workId: $workId) {
|
|
24
|
+
...WorkFragment
|
|
25
|
+
${e}
|
|
26
|
+
error
|
|
27
|
+
priority
|
|
28
|
+
worker
|
|
29
|
+
timeout
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
${a.f}
|
|
33
|
+
`;e.s(["k",0,i,"U",0,({workId:e=null,...t})=>{let{customProperties:a}=(0,s.f)(),{data:l,loading:d,error:o,previousData:u}=(0,r.f)(i(a?.Work),{skip:!e,variables:{workId:e},...t});return{work:l?.work||u?.work,loading:d,error:o}}])},2385,e=>{"use strict";var t=e.i(91398),r=e.i(3828),s=e.i(66773),a=e.i(3326),i=e.i(59080),l=e.i(32171),d=e.i(70693),o=e.i(73298);let u=({userId:e=null}={})=>{let{customProperties:t,hydrateFragment:r}=(0,d.f)(),{data:s,loading:a,error:u}=(0,l.f)(((e="")=>i.f`
|
|
34
|
+
query User($userId: ID) {
|
|
35
|
+
user(userId: $userId) {
|
|
36
|
+
${e}
|
|
37
|
+
...UserFragment
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
${o.f}
|
|
41
|
+
`)(t?.User),{skip:!e,variables:{userId:e}}),n=s?.user,c=r(t?.User,n);return{user:n,loading:a,error:u,extendedData:c}};var n=e.i(61494),c=e.i(17644),f=e.i(62274),k=e.i(23745),x=e.i(91788),p=e.i(6607),m=e.i(15971),h=e.i(28401),b=e.i(58971),g=e.i(93380),y=e.i(81013),w=e.i(60513),_=e.i(75284);let v=({userId:e})=>{let{setModal:r}=(0,p.f)(),{user:s,loading:i}=u({userId:e}),{exportUser:l,isExporting:d}=(()=>{let{exportCSV:e,isExporting:t}=(0,w.f)();return{exportUser:(0,x.useCallback)(async t=>{await e({type:"User",...t})},[e]),isExporting:t}})(),{formatMessage:o}=(0,a.S)(),n=[{key:"exportBookmarks",label:o({id:"bookmarks",defaultMessage:"Bookmarks"}),defaultChecked:!0},{key:"exportOrders",label:o({id:"orders",defaultMessage:"Orders"}),defaultChecked:!0},{key:"exportReviews",label:o({id:"reviews",defaultMessage:"Reviews"}),defaultChecked:!0},{key:"exportQuotations",label:o({id:"quotations",defaultMessage:"Quotations"}),defaultChecked:!0},{key:"exportEnrollments",label:o({id:"enrollments",defaultMessage:"Enrollments"}),defaultChecked:!0}],c=(0,x.useCallback)(async t=>{await l({userId:e,...t}),r(null)},[e,l,r]);return i?null:(0,t.jsx)(y.f,{onClick:()=>{r((0,t.jsx)(_.f,{options:n,onSubmit:c,loading:d}))},disabled:d||!s,variant:"secondary",text:o(d?{id:"exporting",defaultMessage:"Exporting..."}:{id:"export",defaultMessage:"Export"})})};var $=e.i(72419);e.s(["default",0,({userId:e})=>{let{formatMessage:i}=(0,a.S)(),{setModal:l}=(0,p.f)(),{deleteUser:d}=(0,k.f)(),{user:o,extendedData:y}=u({userId:e}),w=(0,r.useRouter)(),{hasRole:_}=(0,b.f)(),j=(0,x.useCallback)(async()=>{await l((0,t.jsx)(m.f,{onCancelClick:async()=>l(""),message:i({id:"delete_user_account_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it "}),onOkClick:async()=>{l("");try{await d(o._id),h.c.success(i({id:"user_deleted",defaultMessage:"User deleted successfully"})),w.push("/users")}catch(e){h.c.error((0,$.f)(e,i))}},okText:i({id:"delete_user_account",defaultMessage:"Delete user"})}))},[o]);return(0,t.jsxs)("div",{className:" max-w-6xl",children:[(0,t.jsx)(n.f,{currentPageTitle:o?`${o?.name}`:""}),(0,t.jsx)(c.f,{headerText:(0,g.f)(o)||i({id:"users_setting_list_header",defaultMessage:"User settings"}),onDelete:!o?.deleted&&_(s.C.RemoveUser)?j:null,title:i({id:"user_detail_title",defaultMessage:"User {id}"},{id:o?.username}),children:(0,t.jsx)(v,{userId:e})}),(0,t.jsx)(f.f,{user:o,extendedData:y})]})}],2385)}]);
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53674,(e,t,s)=>{let l="/quotations";(window.__NEXT_P=window.__NEXT_P||[]).push([l,()=>e.r(43154)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([l])})},74954,e=>{"use strict";var t=e.i(91398),s=e.i(91788);e.s(["f",0,({value:e,duration:l=300})=>{let[r,a]=(0,s.useState)(0);return(0,s.useEffect)(()=>{let t,s;if(0===e)return void a(0);let r=i=>{t||(t=i);let n=Math.min((i-t)/l,1);a(Math.round((1-Math.pow(1-n,3))*e)),n<1&&(s=requestAnimationFrame(r))};return s=requestAnimationFrame(r),()=>{s&&cancelAnimationFrame(s)}},[e,l]),(0,t.jsx)("span",{children:r})}])},78704,e=>{"use strict";var t=e.i(91398),s=e.i(91788),l=e.i(12197);e.s(["f",0,({loading:e,hasMore:r,onLoadMore:a,children:i,threshold:n=200})=>{let d=(0,s.useRef)(null),o=(0,s.useCallback)(t=>{let[s]=t;s.isIntersecting&&r&&!e&&a()},[r,e,a]);return(0,s.useEffect)(()=>{let e=d.current;if(!e)return;let t=new IntersectionObserver(o,{rootMargin:`${n}px`});return t.observe(e),()=>{t.disconnect()}},[o,n]),(0,t.jsxs)(t.Fragment,{children:[i,(0,t.jsx)("div",{ref:d,className:"h-4"}),e&&(0,t.jsx)("div",{className:"flex justify-center py-4",children:(0,t.jsx)(l.f,{})})]})}])},94724,e=>{"use strict";var t=e.i(91398),s=e.i(3326);e.s(["f",0,({children:e=null,totalRecords:l=null})=>{let{formatMessage:r}=(0,s.S)();return(0,t.jsxs)("div",{className:"mt-5",children:[null!==l?(0,t.jsx)("div",{className:"text-md text-slate-950 dark:text-slate-100 mb-3",children:r({id:"total_records",defaultMessage:"{total} records found"},{total:l??0})}):null,e&&(0,t.jsx)("div",{className:"flex items-center mt-10",children:(0,t.jsx)("h3",{className:"text-xs leading-6 text-slate-500 dark:text-slate-200",children:e})})]})}])},77043,e=>{"use strict";var t=e.i(91398),s=e.i(72043),l=e.i(3326),r=e.i(35065),a=e.i(22315);e.s(["f",0,({file:e,className:i=""})=>{let{formatMessage:n}=(0,l.S)();return(0,t.jsx)("div",{className:(0,s.default)("h-10 w-10 shrink-0",i),children:e?(0,t.jsx)(r.f,{className:"relative h-10 w-10 rounded-sm",src:e.url,width:100,height:100,alt:n({id:"image_not_available",defaultMessage:"Image not available"})}):(0,t.jsx)(a.f,{})})}])},22315,e=>{"use strict";var t=e.i(91398),s=e.i(81618),l=e.i(72043);e.s(["f",0,({className:e="",containerClassName:r="",Icon:a=null})=>(0,t.jsx)("span",{className:(0,l.default)("text-slate-400",r),children:a||(0,t.jsx)(s.f,{className:(0,l.default)(e)})})])},57468,e=>{"use strict";var t=e.i(91398),s=e.i(72043),l=e.i(3326),r=e.i(99160);e.s(["f",0,({cancelText:e=null,showCancel:a=!0,submitText:i=null,showSubmit:n=!0,onCancel:d,className:o=""})=>{let{formatMessage:u}=(0,l.S)();return(0,t.jsxs)("span",{className:(0,s.default)("flex shrink-0 items-center space-x-4 py-5 pl-1",o),children:[a?(0,t.jsx)("button",{onClick:d,"data-id":"cancel_update",type:"button",className:(0,s.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||u({id:"cancel",defaultMessage:"Cancel"})}):null,n?(0,t.jsx)(r.f,{label:i||u({id:"save",defaultMessage:"Save"})}):null]})}])},20495,e=>{"use strict";var t=e.i(91398),s=e.i(3326),l=e.i(2765);e.s(["f",0,({inputText:e=null,onInputChange:r,defaultValue:a})=>{let{formatMessage:i}=(0,s.S)(),n=(0,l.f)(200)(r);return(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("label",{htmlFor:"search",className:"sr-only",children:e||i({id:"search",defaultMessage:"Search"})}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-slate-400 dark:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"})})}),(0,t.jsx)("input",{onChange:e=>n(e.target.value),id:"search",defaultValue:a,name:"search",className:"block w-full rounded-md border-1 border-slate-300 dark:border-slate-700 text-slate-900 dark:bg-slate-900 dark:text-slate-200 py-3 pl-10 px-4 shadow-xs placeholder:text-slate-400 dark:placeholder:text-slate-400 focus:ring-2 focus:ring-slate-800 focus:outline-hidden sm:text-sm",placeholder:i({id:"search",defaultMessage:"Search"}),type:"search"})]})]})}])},51128,e=>{"use strict";var t=e.i(91398),s=e.i(3326),l=e.i(3828),r=e.i(20495),a=e.i(68835),i=e.i(65153),n=e.i(83147),d=e.i(73319);e.s(["f",0,({children:e,onSearchChange:o,defaultSearchValue:u,showTagFilter:c=!1,availableTagOptions:f=[]})=>{let{formatMessage:x}=(0,s.S)(),{query:m,push:h}=(0,l.useRouter)(),p=e=>{if((0,d.T)(e))h({query:(0,n._)(m,e?.join(","),"tags")});else{let{tags:e,...t}=m;h({query:(0,n._)(t)})}};return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"my-3 flex flex-col gap-3",children:(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start gap-3",children:[(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(r.f,{onInputChange:o,defaultValue:u})}),c&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 flex-1 sm:border-l sm:border-slate-300 sm:dark:border-slate-700 sm:pl-3",children:[(0,t.jsx)("div",{className:"max-w-xs",children:(0,t.jsx)(a.f,{buttonText:x({id:"apply",defaultMessage:"Apply"}),placeholder:x({id:"enter_tag",defaultMessage:"Enter tag..."}),tagList:m?.tags?.split(","),onChange:p,selectOptions:f,showTagsInline:!1})}),m?.tags?.split(",").filter(Boolean).length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:m?.tags?.split(",").filter(Boolean).map(e=>(0,t.jsx)(i.f,{text:e,color:"slate",onClick:()=>{let t=m?.tags?.split(",").filter(t=>t!==e);p(t.length>0?t:null)}},e))})]})]})}),e]})}])},1880,e=>{"use strict";e.s(["U",0,(e={})=>{let{_id:t,texts:s}=e||{};return s||t?`${s?.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()}])},71805,40526,e=>{"use strict";var t=e.i(91398),s=e.i(3326),l=e.i(8918),r=e.i(41158),a=e.i(65153),i=e.i(77043),n=e.i(93380),d=e.i(1880),o=e.i(84818),u=e.i(60193);let c=({quotation:e,showUser:c})=>{let{formatMessage:f}=(0,s.S)(),{formatDateTime:x}=(0,o.f)();return(0,t.jsxs)(l.f.Row,{children:[(0,t.jsx)(l.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:(0,t.jsx)(r.default,{href:`/quotations?quotationId=${e?._id}`,className:"font-medium text-slate-800 dark:text-slate-700",children:e?.quotationNumber||e?._id})})}),(0,t.jsx)(l.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:x(e.created,{dateStyle:"short",timeStyle:"short"})})}),(0,t.jsx)(l.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:e.isExpired?(0,t.jsx)(a.f,{text:f({id:"expired",defaultMessage:"Expired"}),color:"amber"}):x(e?.expires,{dateStyle:"short",timeStyle:"short"})})}),c&&(0,t.jsx)(l.f.Cell,{children:(0,t.jsxs)(r.default,{href:`/users?userId=${e?.user._id}`,className:"flex items-center text-sm text-slate-800 dark:text-slate-700 hover:text-decoration",children:[(0,t.jsx)(i.f,{file:e?.user?.avatar,className:"mr-2"}),(0,t.jsx)("span",{className:"font-medium ml-2",children:(0,n.f)(e?.user)})]})}),(0,t.jsx)(l.f.Cell,{children:(0,t.jsx)("div",{children:(0,t.jsxs)(r.default,{href:`/products?slug=${(0,d.U)(e.product)}`,className:"flex items-center text-sm text-slate-800 dark:text-slate-700 hover:text-decoration",children:[(0,t.jsx)(i.f,{file:e.product?.media[0]?.file,className:"mr-3"}),(0,t.jsx)("span",{className:"font-medium ml-2",children:e?.product.texts.title})]})})}),(0,t.jsx)(l.f.Cell,{children:(0,t.jsx)(a.f,{text:e?.status,color:u.L[e?.status],square:!0})})]})};e.s(["f",0,({quotations:e,sortable:r=!1,showUser:a=!1})=>{let{formatMessage:i}=(0,s.S)();return(0,t.jsxs)(l.f,{className:"min-w-full",children:[e?.map(e=>(0,t.jsxs)(l.f.Row,{header:!0,enablesort:r,children:[(0,t.jsx)(l.f.Cell,{sortKey:"quotationNumber",children:i({id:"quotation_number",defaultMessage:"Quotation number"})}),(0,t.jsx)(l.f.Cell,{sortKey:"created",children:i({id:"created",defaultMessage:"Created"})}),(0,t.jsx)(l.f.Cell,{sortKey:"expires",children:i({id:"expires",defaultMessage:"Expires"})}),a&&(0,t.jsx)(l.f.Cell,{children:i({id:"user",defaultMessage:"User"})}),(0,t.jsx)(l.f.Cell,{children:i({id:"product",defaultMessage:"Product"})}),(0,t.jsx)(l.f.Cell,{sortKey:"status",children:i({id:"status",defaultMessage:"Status"})})]},e._id)),e?.map(e=>(0,t.jsx)(c,{showUser:a,quotation:e},`${e?._id}-body`))]})}],71805);var f=e.i(59080);let x=f.f`
|
|
2
|
+
fragment QuotationFragment on Quotation {
|
|
3
|
+
_id
|
|
4
|
+
user {
|
|
5
|
+
_id
|
|
6
|
+
username
|
|
7
|
+
avatar {
|
|
8
|
+
_id
|
|
9
|
+
url
|
|
10
|
+
}
|
|
11
|
+
name
|
|
12
|
+
primaryEmail {
|
|
13
|
+
verified
|
|
14
|
+
address
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
product {
|
|
18
|
+
_id
|
|
19
|
+
texts {
|
|
20
|
+
_id
|
|
21
|
+
slug
|
|
22
|
+
subtitle
|
|
23
|
+
title
|
|
24
|
+
description
|
|
25
|
+
}
|
|
26
|
+
media {
|
|
27
|
+
_id
|
|
28
|
+
file {
|
|
29
|
+
_id
|
|
30
|
+
type
|
|
31
|
+
url
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
currency {
|
|
36
|
+
_id
|
|
37
|
+
contractAddress
|
|
38
|
+
decimals
|
|
39
|
+
isoCode
|
|
40
|
+
}
|
|
41
|
+
status
|
|
42
|
+
created
|
|
43
|
+
expires
|
|
44
|
+
updated
|
|
45
|
+
isExpired
|
|
46
|
+
quotationNumber
|
|
47
|
+
fulfilled
|
|
48
|
+
rejected
|
|
49
|
+
}
|
|
50
|
+
`;e.s(["f",0,x],40526)},43154,e=>{"use strict";var t=e.i(91398),s=e.i(3326),l=e.i(3828),r=e.i(61494),a=e.i(94724),i=e.i(78704),n=e.i(12197),d=e.i(17644),o=e.i(60193),u=e.i(71805),c=e.i(59080),f=e.i(32171),x=e.i(40526);let m=c.f`
|
|
51
|
+
query Quotations(
|
|
52
|
+
$limit: Int
|
|
53
|
+
$offset: Int
|
|
54
|
+
$queryString: String
|
|
55
|
+
$sort: [SortOptionInput!]
|
|
56
|
+
) {
|
|
57
|
+
quotations(
|
|
58
|
+
limit: $limit
|
|
59
|
+
offset: $offset
|
|
60
|
+
queryString: $queryString
|
|
61
|
+
sort: $sort
|
|
62
|
+
) {
|
|
63
|
+
...QuotationFragment
|
|
64
|
+
}
|
|
65
|
+
quotationsCount(queryString: $queryString)
|
|
66
|
+
}
|
|
67
|
+
${x.f}
|
|
68
|
+
`;var h=e.i(83147),p=e.i(51128),g=e.i(96097),j=e.i(74954);e.s(["default",0,()=>{let{formatMessage:e}=(0,s.S)(),{query:c,push:x}=(0,l.useRouter)(),v=parseInt(c?.limit,10)||o.h,b=parseInt(c?.skip,10)||0,w=c?.sort||"",{queryString:N,quotationId:_,...y}=c,{quotations:k,quotationsCount:q,loading:C,loadMore:M,hasMore:S}=(({limit:e=20,offset:t=0,queryString:s="",sort:l=[]}={})=>{let{data:r,loading:a,error:i,fetchMore:n}=(0,f.f)(m,{variables:{limit:e,offset:t,queryString:s,sort:l}}),d=r?.quotations||[],o=r?.quotationsCount,u=d?.length<o;return{quotations:d,quotationsCount:o,hasMore:u,loading:a,error:i,loadMore:()=>{n({variables:{offset:d?.length}})}}})({queryString:N,limit:v,offset:b,sort:(0,h.R)(w)});if(_)return(0,t.jsx)(g.default,{quotationId:_});let E=1===q?e({id:"quotation_header",defaultMessage:"1 Quotation"}):e({id:"quotation_count_header",defaultMessage:"{count} Quotations"},{count:(0,t.jsx)(j.f,{value:q})});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.f,{}),(0,t.jsx)(d.f,{title:e({id:"quotation_page_title",defaultMessage:"{count, plural, one {# Quotation} other {# Quotations}}"},{count:q}),headerText:E}),(0,t.jsxs)("div",{className:"min-w-full overflow-x-auto px-1",children:[(0,t.jsx)(a.f,{}),(0,t.jsx)(p.f,{onSearchChange:e=>{let{skip:t,...s}=y;e?x({query:{...s,queryString:e}}):x({query:{...y}})},defaultSearchValue:N,children:(0,t.jsx)(i.f,{loading:C,hasMore:S,onLoadMore:M,children:C&&k?.length===0?(0,t.jsx)(n.f,{}):(0,t.jsx)(u.f,{sortable:!0,quotations:k,showUser:!0})})})]})]})}],43154)},38322,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...l},r){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:r,"aria-labelledby":s},l),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))});e.s(["f",0,s],38322)},81618,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...l},r){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:r,"aria-labelledby":s},l),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))});e.s(["f",0,s],81618)},67912,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...l},r){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:r,"aria-labelledby":s},l),e?t.createElement("title",{id:s},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,s],67912)}]);
|