@unchainedshop/admin-ui 4.8.30 → 4.8.31
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/components/ui/Loading.d.ts +8 -1
- package/dist/components/ui/Loading.d.ts.map +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/ui.js +58 -25
- package/out/403/index.html +3 -2
- package/out/404/index.html +3 -2
- package/out/404.html +3 -2
- package/out/423/index.html +3 -2
- package/out/500/index.html +3 -2
- package/out/_next/static/4ESrB8YpR2n44PFePtbgX/_buildManifest.js +258 -0
- package/out/_next/static/chunks/0-_s79k4_7ei_.js +5 -0
- package/out/_next/static/chunks/00aks9rqke2x0.js +7 -0
- package/out/_next/static/chunks/00az81dk4vdda.js +54 -0
- package/out/_next/static/chunks/01e4gd649r2tq.js +7 -0
- package/out/_next/static/chunks/01j2wi94k90x0.js +5 -0
- package/out/_next/static/chunks/043i-g05cyvrd.js +1 -0
- package/out/_next/static/chunks/04kyktzbxprj0.js +61 -0
- package/out/_next/static/chunks/05p330iybjojg.js +44 -0
- package/out/_next/static/chunks/05qk8ozexvlxp.js +5 -0
- package/out/_next/static/chunks/0696190awbl-j.js +100 -0
- package/out/_next/static/chunks/06i50j458a7g5.js +12 -0
- package/out/_next/static/chunks/07o9g5hqfpvjc.js +12 -0
- package/out/_next/static/chunks/08o61gwabp3h1.js +33 -0
- package/out/_next/static/chunks/09avk6mqdin_1.js +116 -0
- package/out/_next/static/chunks/0_bvgo8ev4gs7.js +7 -0
- package/out/_next/static/chunks/0amj69l-d5-85.js +1 -0
- package/out/_next/static/chunks/0b05sca2hdcys.js +30 -0
- package/out/_next/static/chunks/0c3kwkqr9evm4.js +5 -0
- package/out/_next/static/chunks/0c4jv8pwvpxei.js +1 -0
- package/out/_next/static/chunks/0c7ljn9lo_0oh.js +5 -0
- package/out/_next/static/chunks/0dqw1oya___hr.js +1 -0
- package/out/_next/static/chunks/0ewr86ctcw7fx.js +1 -0
- package/out/_next/static/chunks/0jham55cr3rhy.js +81 -0
- package/out/_next/static/chunks/0lr7o7tyjmrmf.js +8 -0
- package/out/_next/static/chunks/0mx8opz23nwlb.js +5 -0
- package/out/_next/static/chunks/0n3ixknyc6_ma.js +1 -0
- package/out/_next/static/chunks/0o0e82-3pc7ur.js +78 -0
- package/out/_next/static/chunks/0ohk7l49gjm62.js +5 -0
- package/out/_next/static/chunks/0p31l6a9hynnt.js +6 -0
- package/out/_next/static/chunks/0p7said9rdor1.js +1 -0
- package/out/_next/static/chunks/0q2e8h8498pvo.js +4 -0
- package/out/_next/static/chunks/0qa-zbgmv-k3p.js +9 -0
- package/out/_next/static/chunks/0qj3xdz043z8l.js +12 -0
- package/out/_next/static/chunks/0skst735jufgh.js +71 -0
- package/out/_next/static/chunks/0t28q5fb2jp-6.js +8 -0
- package/out/_next/static/chunks/0tmamaq8exyij.js +1 -0
- package/out/_next/static/chunks/0uls4bq8a7gyh.js +18 -0
- package/out/_next/static/chunks/0ydy3ky15gx62.js +1 -0
- package/out/_next/static/chunks/0zh311lu9jf2x.js +5 -0
- package/out/_next/static/chunks/0zpyyygbqx3pf.js +152 -0
- package/out/_next/static/chunks/0zzoylv2rl1xu.js +3 -0
- package/out/_next/static/chunks/1---h4b693b81.js +1 -0
- package/out/_next/static/chunks/10m_etq9t2pkv.js +7 -0
- package/out/_next/static/chunks/11ehf3t7qzbua.js +4 -0
- package/out/_next/static/chunks/120k989vjsno4.js +1 -0
- package/out/_next/static/chunks/12yd8t4k6c0t1.js +1 -0
- package/out/_next/static/chunks/153ec1_-yt3jb.js +344 -0
- package/out/_next/static/chunks/16le3cqxj12u6.js +5 -0
- package/out/_next/static/chunks/16zxfacsu_jbq.js +1 -0
- package/out/_next/static/chunks/17fibl49qtd6c.js +8 -0
- package/out/_next/static/chunks/18xyj4i_i5lyn.js +6 -0
- package/out/_next/static/chunks/1_3e6x79fcyv3.js +5 -0
- package/out/_next/static/chunks/1_55km6vm5mc0.js +596 -0
- package/out/_next/static/chunks/1aej6iqnlr74p.js +1 -0
- package/out/_next/static/chunks/1asbed4hne69c.js +7 -0
- package/out/_next/static/chunks/1c60nzy_x4kez.js +277 -0
- package/out/_next/static/chunks/1c77vl6xdqfd4.js +15 -0
- package/out/_next/static/chunks/1da89agg-nacc.js +224 -0
- package/out/_next/static/chunks/1f7-0l47bx76m.js +13 -0
- package/out/_next/static/chunks/1fbsyczyh9hwh.js +1 -0
- package/out/_next/static/chunks/1g96s7-fwvokd.js +2 -0
- package/out/_next/static/chunks/1gqd9vrno0rq4.js +315 -0
- package/out/_next/static/chunks/1hih2cxmgqcd3.js +10 -0
- package/out/_next/static/chunks/1hviha1jcz_og.js +4 -0
- package/out/_next/static/chunks/1il9vuoxtb2_n.js +43 -0
- package/out/_next/static/chunks/1jaatdt0mlypl.js +16 -0
- package/out/_next/static/chunks/1l4g6_of_bbr8.js +5 -0
- package/out/_next/static/chunks/1lezxecnoaxnn.js +32 -0
- package/out/_next/static/chunks/1m27au_nmk8_k.js +71 -0
- package/out/_next/static/chunks/1m4fwgl1mj4d-.js +46 -0
- package/out/_next/static/chunks/1m85ne6w_6tei.js +1 -0
- package/out/_next/static/chunks/1ma82ip9shpkc.js +24 -0
- package/out/_next/static/chunks/1nbh1zkzirnuw.js +1 -0
- package/out/_next/static/chunks/1nohf8_cc6gmw.js +9 -0
- package/out/_next/static/chunks/1os6pvhjeb16o.js +1 -0
- package/out/_next/static/chunks/1qi5yjvzxspwv.js +15 -0
- package/out/_next/static/chunks/1rsexg6dg82f0.js +7 -0
- package/out/_next/static/chunks/1s9v5dndopkuz.js +12 -0
- package/out/_next/static/chunks/1sh2ogc7tcbu-.js +1 -0
- package/out/_next/static/chunks/1sksqjru86hlm.js +1 -0
- package/out/_next/static/chunks/1tkvi0wb-x3v8.js +16 -0
- package/out/_next/static/chunks/1u79pcgqjgjpq.js +1 -0
- package/out/_next/static/chunks/1uqiaqtv_0v2x.js +5 -0
- package/out/_next/static/chunks/1x8o-luxdxxk7.js +1 -0
- package/out/_next/static/chunks/1yjb7gogaf8po.js +31 -0
- package/out/_next/static/chunks/1zyhzessv0wtg.js +1 -0
- package/out/_next/static/chunks/2-4610weysas_.js +1 -0
- package/out/_next/static/chunks/2-kvt9e7irukm.js +1 -0
- package/out/_next/static/chunks/2-pl31kdikt3k.js +5 -0
- package/out/_next/static/chunks/20c4_1i5r3kkz.js +1 -0
- package/out/_next/static/chunks/20f2gs8iua6fk.js +1 -0
- package/out/_next/static/chunks/20zdaln201w8j.js +277 -0
- package/out/_next/static/chunks/21l46nbaop06z.js +39 -0
- package/out/_next/static/chunks/22-o32hlte36e.js +130 -0
- package/out/_next/static/chunks/231j2_p-ha14w.js +7 -0
- package/out/_next/static/chunks/23s2f7_-ol94s.js +8 -0
- package/out/_next/static/chunks/26_mx-ritu68j.js +24 -0
- package/out/_next/static/chunks/26ckmxeluyknq.js +1 -0
- package/out/_next/static/chunks/26r0y7ldf3iqs.js +6 -0
- package/out/_next/static/chunks/27fzoozwycagi.js +6 -0
- package/out/_next/static/chunks/27jmq7a-vh0b4.js +7 -0
- package/out/_next/static/chunks/283567a82x9qi.js +149 -0
- package/out/_next/static/chunks/29he8uukp5s4u.js +31 -0
- package/out/_next/static/chunks/2adglo0sf0jcg.js +905 -0
- package/out/_next/static/chunks/{2kzyda4a6mqut.js → 2ajr0rk0_yax6.js} +1 -1
- package/out/_next/static/chunks/2b4ewxxz6f462.js +7 -0
- package/out/_next/static/chunks/{3zqfchpzqxd92.css → 2bh2dv7j9m8c8.css} +1 -1
- package/out/_next/static/chunks/2bi8v13lm76lr.js +95 -0
- package/out/_next/static/chunks/2burvpf9877y_.js +44 -0
- package/out/_next/static/chunks/2cj703xtrf5i6.js +46 -0
- package/out/_next/static/chunks/2cj8g3fxmitaa.js +1 -0
- package/out/_next/static/chunks/2ec7xatyld40t.js +7 -0
- package/out/_next/static/chunks/2ho4591ngh3y2.js +61 -0
- package/out/_next/static/chunks/2hoi6cb1lromr.js +4 -0
- package/out/_next/static/chunks/2i5k6tlwd58hp.js +1 -0
- package/out/_next/static/chunks/2iy0jr00qhq-q.js +5 -0
- package/out/_next/static/chunks/2jonbba27xy3u.js +14 -0
- package/out/_next/static/chunks/2l8gepfm4kyjp.js +1 -0
- package/out/_next/static/chunks/2m0rrts8gwqwp.js +1 -0
- package/out/_next/static/chunks/2m_u12ggzosat.js +5 -0
- package/out/_next/static/chunks/2mdns56l5antm.js +5 -0
- package/out/_next/static/chunks/2mrbytgs3uetd.js +4 -0
- package/out/_next/static/chunks/2p9gwjxeui1zd.js +71 -0
- package/out/_next/static/chunks/2pfhy9qy_cijn.js +5 -0
- package/out/_next/static/chunks/2q5k4rozyr2wt.js +4 -0
- package/out/_next/static/chunks/2qx8nnki_qv5v.js +171 -0
- package/out/_next/static/chunks/2r_rj84l3cy7r.js +119 -0
- package/out/_next/static/chunks/2rb1-3t3-sv5s.js +8 -0
- package/out/_next/static/chunks/2rmgaa88-4bpb.js +227 -0
- package/out/_next/static/chunks/2swxmzb-xk_bo.js +108 -0
- package/out/_next/static/chunks/2t0biwx5e_4w_.js +1 -0
- package/out/_next/static/chunks/2ts3v72jkbcdr.js +7 -0
- package/out/_next/static/chunks/2vfexvltv2avy.js +5 -0
- package/out/_next/static/chunks/2vveotzevnkfp.js +1 -0
- package/out/_next/static/chunks/2wkg65dtx56je.js +155 -0
- package/out/_next/static/chunks/2xixk0t9e9mnw.js +1 -0
- package/out/_next/static/chunks/2xz7hnr9ikqzq.js +7 -0
- package/out/_next/static/chunks/2y1lq1efnvcdt.js +23 -0
- package/out/_next/static/chunks/2ziasg8l_c9n7.js +5 -0
- package/out/_next/static/chunks/3-ve59izq9j-p.js +1 -0
- package/out/_next/static/chunks/3-wsablhqgzoa.js +1 -0
- package/out/_next/static/chunks/30ppb2wc-m4ph.js +1 -0
- package/out/_next/static/chunks/336k08jwyc5i-.js +1 -0
- package/out/_next/static/chunks/33d061qpkafqm.js +39 -0
- package/out/_next/static/chunks/33fyy6d5mo55_.js +8 -0
- package/out/_next/static/chunks/33kh18frqc3b1.js +5 -0
- package/out/_next/static/chunks/33v05ol-ire9s.js +10 -0
- package/out/_next/static/chunks/33yzdcbu7w60l.js +13 -0
- package/out/_next/static/chunks/348l8p7-vo4l5.js +63 -0
- package/out/_next/static/chunks/35hu5vin0swdf.js +41 -0
- package/out/_next/static/chunks/37a6yquh875rn.js +39 -0
- package/out/_next/static/chunks/3_2i9du5-ffrp.js +59 -0
- package/out/_next/static/chunks/3_84h3z_tewmg.js +145 -0
- package/out/_next/static/chunks/3bo7uiy-wh63m.js +108 -0
- package/out/_next/static/chunks/3c-an5ft_3emc.js +1 -0
- package/out/_next/static/chunks/3d_222ci0_30_.js +41 -0
- package/out/_next/static/chunks/3dldch03dfaed.js +1 -0
- package/out/_next/static/chunks/3eedy49gsvv_t.js +1 -0
- package/out/_next/static/chunks/3fayuejnrsd90.js +15 -0
- package/out/_next/static/chunks/3fqonijzsxy8u.js +28 -0
- package/out/_next/static/chunks/3g1ale0hytu9q.js +12 -0
- package/out/_next/static/chunks/3jxeyjg2g7w94.js +1 -0
- package/out/_next/static/chunks/3k3gvr7-e3g_s.js +5 -0
- package/out/_next/static/chunks/3kwoyyxi_-q7m.js +1 -0
- package/out/_next/static/chunks/3le1bywe19_u9.js +1 -0
- package/out/_next/static/chunks/3lku4-9kpf-mj.js +267 -0
- package/out/_next/static/chunks/3lz5h1tw50wr_.js +54 -0
- package/out/_next/static/chunks/3oq-khgfpo0nx.js +39 -0
- package/out/_next/static/chunks/3ps25ocfalcap.js +43 -0
- package/out/_next/static/chunks/3q3m075m4bxz1.js +2 -0
- package/out/_next/static/chunks/3qzrrjb48t2w3.js +119 -0
- package/out/_next/static/chunks/3r0i-7zjuz9i1.js +6 -0
- package/out/_next/static/chunks/3rgn5xwtr51ul.js +7 -0
- package/out/_next/static/chunks/3ridg_u19b6ih.js +8 -0
- package/out/_next/static/chunks/3skzk-w2ytvku.js +5 -0
- package/out/_next/static/chunks/3srw10h0hcztd.js +68 -0
- package/out/_next/static/chunks/3tgrftdet8sna.js +15 -0
- package/out/_next/static/chunks/3uax_eq1kjjta.js +1 -0
- package/out/_next/static/chunks/3uj94afpsi6cs.js +1 -0
- package/out/_next/static/chunks/3vgurvjr6hkyv.js +4 -0
- package/out/_next/static/chunks/3viepyovs19ub.js +23 -0
- package/out/_next/static/chunks/3vnzp3n_wd3j_.js +1 -0
- package/out/_next/static/chunks/3w8h5lxnd0z4z.js +1 -0
- package/out/_next/static/chunks/3wh4xa9dnw-55.js +194 -0
- package/out/_next/static/chunks/3wlvio5id54ow.js +5 -0
- package/out/_next/static/chunks/3wzvscqui-9ml.js +23 -0
- package/out/_next/static/chunks/3y8h3g1tqukrv.js +36 -0
- package/out/_next/static/chunks/3zcilnj6p9-t5.js +1 -0
- package/out/_next/static/chunks/3zmmdm68s05-t.js +217 -0
- package/out/_next/static/chunks/40l5d7o95aw37.js +4 -0
- package/out/_next/static/chunks/417kn9hki8k81.js +33 -0
- package/out/_next/static/chunks/42mofxcd0l7qi.js +1 -0
- package/out/_next/static/chunks/439tz_ubj8h-g.js +342 -0
- package/out/_next/static/chunks/43hfssep7ry-z.js +5 -0
- package/out/_next/static/chunks/45bcpjurhxb-j.js +1 -0
- package/out/_next/static/chunks/turbopack-2c3mg3r-05n1w.js +1 -0
- package/out/_offline/index.html +3 -2
- package/out/account/forgot-password/index.html +3 -2
- package/out/account/index.html +3 -2
- package/out/assortments/AssortmentDetailPage/index.html +3 -2
- package/out/assortments/index.html +3 -2
- package/out/assortments/new/index.html +3 -2
- package/out/copilot/index.html +3 -2
- package/out/country/CountryDetailPage/index.html +3 -2
- package/out/country/index.html +3 -2
- package/out/country/new/index.html +3 -2
- package/out/currency/CurrencyDetailPage/index.html +3 -2
- package/out/currency/index.html +3 -2
- package/out/currency/new/index.html +3 -2
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -2
- package/out/delivery-provider/index.html +3 -2
- package/out/delivery-provider/new/index.html +3 -2
- package/out/enrollments/EnrollmentDetailPage/index.html +3 -2
- package/out/enrollments/index.html +3 -2
- package/out/events/EventDetailPage/index.html +3 -2
- package/out/events/index.html +3 -2
- package/out/exports/index.html +3 -2
- package/out/external/index.html +3 -2
- package/out/filters/FilterDetailPage/index.html +3 -2
- package/out/filters/index.html +3 -2
- package/out/filters/new/index.html +3 -2
- package/out/index.html +3 -2
- package/out/install/index.html +3 -2
- package/out/language/LanguageDetailPage/index.html +3 -2
- package/out/language/index.html +3 -2
- package/out/language/new/index.html +3 -2
- package/out/log-in/index.html +3 -2
- package/out/orders/OrderDetailPage/index.html +3 -2
- package/out/orders/index.html +3 -2
- package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -2
- package/out/payment-provider/index.html +3 -2
- package/out/payment-provider/new/index.html +3 -2
- package/out/products/ProductDetailPage/index.html +3 -2
- package/out/products/index.html +3 -2
- package/out/products/new/index.html +3 -2
- package/out/quotations/QuotationDetailPage/index.html +3 -2
- package/out/quotations/index.html +3 -2
- package/out/reset-password/index.html +3 -2
- package/out/sign-up/index.html +3 -2
- package/out/styleguide/index.html +3 -2
- package/out/tokens/TokenDetailPage/index.html +3 -2
- package/out/tokens/index.html +3 -2
- package/out/users/UserDetailPage/index.html +3 -2
- package/out/users/index.html +3 -2
- package/out/users/new/index.html +3 -2
- package/out/verify-email/index.html +3 -2
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -2
- package/out/warehousing-provider/index.html +3 -2
- package/out/warehousing-provider/new/index.html +3 -2
- package/out/works/WorkDetailPage/index.html +3 -2
- package/out/works/WorkQueueListView/index.html +3 -2
- package/out/works/index.html +3 -2
- package/out/works/management/index.html +3 -2
- package/package.json +8 -8
- package/out/_next/static/F8ReqaxPvLqFJ2DaPfMdn/_buildManifest.js +0 -258
- package/out/_next/static/chunks/0-mytn4v5bu5h.js +0 -12
- package/out/_next/static/chunks/0-uh133eqcz6n.js +0 -60
- package/out/_next/static/chunks/0060t3kg_i0lf.js +0 -10
- package/out/_next/static/chunks/0186bg0b60cid.js +0 -13
- package/out/_next/static/chunks/018n9pot9f5uf.js +0 -90
- package/out/_next/static/chunks/01h4ept18s-ns.js +0 -807
- package/out/_next/static/chunks/02cdoh48sex9m.js +0 -1
- package/out/_next/static/chunks/03-z1yl608b56.js +0 -807
- package/out/_next/static/chunks/030bzkeke0edz.js +0 -7
- package/out/_next/static/chunks/037vsiy28s6dg.js +0 -41
- package/out/_next/static/chunks/049clkw76lm67.js +0 -16
- package/out/_next/static/chunks/04bb4k67x398t.js +0 -1
- package/out/_next/static/chunks/057evs7qr5y-t.js +0 -17
- package/out/_next/static/chunks/05qpw6q8uiz3l.js +0 -15
- package/out/_next/static/chunks/062myzj-2ehu-.js +0 -52
- package/out/_next/static/chunks/06l-rqlf4bp81.js +0 -108
- package/out/_next/static/chunks/06tejx8u1_0kg.js +0 -1
- package/out/_next/static/chunks/07nffhr51vke6.js +0 -59
- package/out/_next/static/chunks/08tyybz20igty.js +0 -15
- package/out/_next/static/chunks/0989pcuje2j55.js +0 -66
- package/out/_next/static/chunks/0_02skyivjqh6.js +0 -14
- package/out/_next/static/chunks/0_ngi84ak813x.js +0 -288
- package/out/_next/static/chunks/0bc02hascgv7z.js +0 -1
- package/out/_next/static/chunks/0c9ruqj2wf3n6.js +0 -905
- package/out/_next/static/chunks/0cblqqpscyy7w.js +0 -12
- package/out/_next/static/chunks/0cotrfgh1n2cx.js +0 -346
- package/out/_next/static/chunks/0d6_opzy2p6ik.js +0 -807
- package/out/_next/static/chunks/0e2e0srgvkzk9.js +0 -144
- package/out/_next/static/chunks/0g6hr3dmen536.js +0 -7
- package/out/_next/static/chunks/0gurfn3nhm859.js +0 -1
- package/out/_next/static/chunks/0h0r_q6xa9qr_.js +0 -1
- package/out/_next/static/chunks/0ht2wu-61vq9v.js +0 -807
- package/out/_next/static/chunks/0ibp5q64hnd88.js +0 -18
- package/out/_next/static/chunks/0ichlp5c67dko.js +0 -12
- package/out/_next/static/chunks/0iui_zfuxfa45.js +0 -12
- package/out/_next/static/chunks/0k6z6zl_zxqp7.js +0 -13
- package/out/_next/static/chunks/0kkky_8vhaeaz.js +0 -227
- package/out/_next/static/chunks/0lutmpv07icdg.js +0 -8
- package/out/_next/static/chunks/0m6jydfuy_4o3.js +0 -1
- package/out/_next/static/chunks/0mzh9-epgepi1.js +0 -119
- package/out/_next/static/chunks/0n0uzfbkfb7e5.js +0 -12
- package/out/_next/static/chunks/0nhczsa2mm354.js +0 -16
- package/out/_next/static/chunks/0pecsk3c09b19.js +0 -3
- package/out/_next/static/chunks/0prynyrvhm7ef.js +0 -2
- package/out/_next/static/chunks/0q-14a7j6afh3.js +0 -1
- package/out/_next/static/chunks/0r5wwinf72z4g.js +0 -1
- package/out/_next/static/chunks/0razrbxeai797.js +0 -807
- package/out/_next/static/chunks/0ryqvctymlr3k.js +0 -12
- package/out/_next/static/chunks/0se09klbk8drd.js +0 -68
- package/out/_next/static/chunks/0sh5256hzmj3b.js +0 -14
- package/out/_next/static/chunks/0srpqs12m-bwy.js +0 -13
- package/out/_next/static/chunks/0ukyxgmnqos6o.js +0 -1
- package/out/_next/static/chunks/0uv4d5f9o8wu1.js +0 -10
- package/out/_next/static/chunks/0uw9cbq0ivaz0.js +0 -1
- package/out/_next/static/chunks/0vls1lbu_rh78.js +0 -342
- package/out/_next/static/chunks/0vx_1vxljh4tn.js +0 -13
- package/out/_next/static/chunks/0vxe9bw7ffqy2.js +0 -15
- package/out/_next/static/chunks/0w0zigi7aws2m.js +0 -1
- package/out/_next/static/chunks/0w2zoz_fn_wha.js +0 -137
- package/out/_next/static/chunks/0xuevvy5i5d12.js +0 -138
- package/out/_next/static/chunks/0xxvsq70e4xn0.js +0 -1
- package/out/_next/static/chunks/0yxc1yy1eq4u3.js +0 -149
- package/out/_next/static/chunks/1-uz_5-063kh9.js +0 -188
- package/out/_next/static/chunks/10h7lznd10mmp.js +0 -384
- package/out/_next/static/chunks/10os1s66nimmi.js +0 -110
- package/out/_next/static/chunks/12_5-baf13q49.js +0 -195
- package/out/_next/static/chunks/12qzh85d5on4y.js +0 -44
- package/out/_next/static/chunks/12ukdi5bzlbeo.js +0 -596
- package/out/_next/static/chunks/1398hevtpl_69.js +0 -1
- package/out/_next/static/chunks/13qk8ukzu1snm.js +0 -288
- package/out/_next/static/chunks/164wr2-2gfnlb.js +0 -1
- package/out/_next/static/chunks/16ey81skn09dz.js +0 -1
- package/out/_next/static/chunks/18kae_yjyhjwf.js +0 -16
- package/out/_next/static/chunks/19y4w6_d_qiou.js +0 -1
- package/out/_next/static/chunks/1_quktgfhf40v.js +0 -31
- package/out/_next/static/chunks/1ae-9ft5cgojf.js +0 -1
- package/out/_next/static/chunks/1aegvtb5jv57q.js +0 -12
- package/out/_next/static/chunks/1cgxgd2cf8u3j.js +0 -157
- package/out/_next/static/chunks/1cp4-dvxowp4c.js +0 -24
- package/out/_next/static/chunks/1d951b6ed8oqn.js +0 -110
- package/out/_next/static/chunks/1d_puhcn8lg6q.js +0 -51
- package/out/_next/static/chunks/1drrou5kp4qdz.js +0 -1
- package/out/_next/static/chunks/1e4_28-3u5o85.js +0 -30
- package/out/_next/static/chunks/1f3mflnvp8_7-.js +0 -31
- package/out/_next/static/chunks/1f5-j4f3irx0j.js +0 -147
- package/out/_next/static/chunks/1fzbon-ih4_3j.js +0 -1
- package/out/_next/static/chunks/1g57y7cq7tjcb.js +0 -9
- package/out/_next/static/chunks/1g8f6jrb9cp9v.js +0 -13
- package/out/_next/static/chunks/1gksg35fivk0-.js +0 -224
- package/out/_next/static/chunks/1gt65pz91hyuz.js +0 -1
- package/out/_next/static/chunks/1gy9ae4fpd6jm.js +0 -17
- package/out/_next/static/chunks/1hq9yt63076pk.js +0 -16
- package/out/_next/static/chunks/1ikm9qcx--k3u.js +0 -807
- package/out/_next/static/chunks/1izpxynqp99t4.js +0 -193
- package/out/_next/static/chunks/1j2ko85jp-5wy.js +0 -807
- package/out/_next/static/chunks/1k-cn_5ey1u62.js +0 -15
- package/out/_next/static/chunks/1k0mvn915uz76.js +0 -14
- package/out/_next/static/chunks/1l4snbkce_jb6.js +0 -15
- package/out/_next/static/chunks/1lbsdlf5h6ojc.js +0 -16
- package/out/_next/static/chunks/1mwvnv71bl7mc.js +0 -1
- package/out/_next/static/chunks/1n7i2rp59o9o8.js +0 -384
- package/out/_next/static/chunks/1pklei2ds10d2.js +0 -66
- package/out/_next/static/chunks/1pxor-3_vf3du.js +0 -31
- package/out/_next/static/chunks/1qp68765j1aiv.js +0 -61
- package/out/_next/static/chunks/1r-cvj3mpr-7x.js +0 -87
- package/out/_next/static/chunks/1sivy8bkkmwxl.js +0 -5
- package/out/_next/static/chunks/1vk6h4qps69vq.js +0 -12
- package/out/_next/static/chunks/1vx8_u7-f7q8u.js +0 -28
- package/out/_next/static/chunks/1weq9keqxiqpy.js +0 -73
- package/out/_next/static/chunks/1xbofs3ibkjvj.js +0 -1
- package/out/_next/static/chunks/1ziicn0eb_yji.js +0 -16
- package/out/_next/static/chunks/1zza9faw4t3b_.js +0 -46
- package/out/_next/static/chunks/1zzpf1xbmchcj.js +0 -132
- package/out/_next/static/chunks/2-4ng9fxftmld.js +0 -1
- package/out/_next/static/chunks/201rx84kyo8ag.js +0 -1
- package/out/_next/static/chunks/20rtv8f0brb0n.js +0 -43
- package/out/_next/static/chunks/217_5onj-woma.js +0 -190
- package/out/_next/static/chunks/21a19t2pe0fpg.js +0 -81
- package/out/_next/static/chunks/21o2yfegozc0m.js +0 -16
- package/out/_next/static/chunks/22w2ovaffle-i.js +0 -21
- package/out/_next/static/chunks/234pfdqctlnyt.js +0 -100
- package/out/_next/static/chunks/252jebodi67kg.js +0 -1
- package/out/_next/static/chunks/25d8wr34sbm__.js +0 -15
- package/out/_next/static/chunks/275o3ly3svw4p.js +0 -1
- package/out/_next/static/chunks/28z1z7in8-kbg.js +0 -26
- package/out/_next/static/chunks/29w1exzy704_7.js +0 -8
- package/out/_next/static/chunks/2bb7696udjx6k.js +0 -44
- package/out/_next/static/chunks/2bm5aw8hqlgf2.js +0 -50
- package/out/_next/static/chunks/2c4vy8ofex0ti.js +0 -14
- package/out/_next/static/chunks/2c7gw8ronvu-c.js +0 -807
- package/out/_next/static/chunks/2cbr3ybo4xsrv.js +0 -43
- package/out/_next/static/chunks/2eh6ku1a1zbs4.js +0 -135
- package/out/_next/static/chunks/2fed4-6c0ghqp.js +0 -99
- package/out/_next/static/chunks/2g39exixp92yf.js +0 -13
- package/out/_next/static/chunks/2gil5igdermzh.js +0 -36
- package/out/_next/static/chunks/2hm0mbq0vtqmw.js +0 -5
- package/out/_next/static/chunks/2hvt_8j6jkd_n.js +0 -14
- package/out/_next/static/chunks/2i5uj5i4z-xu8.js +0 -188
- package/out/_next/static/chunks/2ismth22knujm.js +0 -1
- package/out/_next/static/chunks/2iuznbar_ttrh.js +0 -18
- package/out/_next/static/chunks/2j6cph79-th54.js +0 -7
- package/out/_next/static/chunks/2jjgby8cd1gdj.js +0 -14
- package/out/_next/static/chunks/2jln1kjysf99p.js +0 -1
- package/out/_next/static/chunks/2jtk4-i4e9lug.js +0 -1
- package/out/_next/static/chunks/2k020ab3luqev.js +0 -1
- package/out/_next/static/chunks/2kbieaechn8m8.js +0 -1
- package/out/_next/static/chunks/2ljoq6sr-g2da.js +0 -1
- package/out/_next/static/chunks/2lwxs_ly4bz1o.js +0 -12
- package/out/_next/static/chunks/2mr2k4sb6i021.js +0 -32
- package/out/_next/static/chunks/2na27-e8gs0-f.js +0 -171
- package/out/_next/static/chunks/2nn3_f04lnr0b.js +0 -807
- package/out/_next/static/chunks/2ocwu5vbc5r34.js +0 -73
- package/out/_next/static/chunks/2qprgjhjl8d4c.js +0 -807
- package/out/_next/static/chunks/2rtyphk0o1hbr.js +0 -5
- package/out/_next/static/chunks/2skxi0oqka3ef.js +0 -26
- package/out/_next/static/chunks/2sukt9l-1md8_.js +0 -25
- package/out/_next/static/chunks/2t3t6gm5vlg_0.js +0 -58
- package/out/_next/static/chunks/2vt52_i-6cdbh.js +0 -10
- package/out/_next/static/chunks/2w5y5xf0nriwx.js +0 -1
- package/out/_next/static/chunks/30g-s0ioynhjx.js +0 -224
- package/out/_next/static/chunks/31y7dx6ytab7h.js +0 -3
- package/out/_next/static/chunks/363ng2l8o_bee.js +0 -101
- package/out/_next/static/chunks/36jick0alh9oa.js +0 -50
- package/out/_next/static/chunks/36pa0vs0telmp.js +0 -1
- package/out/_next/static/chunks/36yth4lm03_j8.js +0 -1
- package/out/_next/static/chunks/37phwvegpccj0.js +0 -217
- package/out/_next/static/chunks/38b7m-s26ciug.js +0 -137
- package/out/_next/static/chunks/38ipj45w-tqay.js +0 -21
- package/out/_next/static/chunks/38pz7fmyf6ay0.js +0 -1
- package/out/_next/static/chunks/39634va9fx9s2.js +0 -13
- package/out/_next/static/chunks/3a0hqx7ohm5lh.js +0 -23
- package/out/_next/static/chunks/3a7wm2331v13r.js +0 -3
- package/out/_next/static/chunks/3dr_oa5hx41is.js +0 -14
- package/out/_next/static/chunks/3e7w6ko5psik7.js +0 -17
- package/out/_next/static/chunks/3ebh4y7h6y1vq.js +0 -58
- package/out/_next/static/chunks/3eow7lw1727kt.js +0 -13
- package/out/_next/static/chunks/3f1gb4_hyhtho.js +0 -20
- package/out/_next/static/chunks/3g4qj6_qh97q_.js +0 -12
- package/out/_next/static/chunks/3gfjdynb9mg8h.js +0 -23
- package/out/_next/static/chunks/3gx4smk7pb27x.js +0 -119
- package/out/_next/static/chunks/3jcf4ei6zgnca.js +0 -17
- package/out/_next/static/chunks/3kisw9hre44e5.js +0 -807
- package/out/_next/static/chunks/3mnt471ayfsvh.js +0 -22
- package/out/_next/static/chunks/3ondw3-zthjz5.js +0 -15
- package/out/_next/static/chunks/3opuxnw_w3yb5.js +0 -101
- package/out/_next/static/chunks/3oxv1fo564rrf.js +0 -142
- package/out/_next/static/chunks/3ra_41-fw410n.js +0 -14
- package/out/_next/static/chunks/3s22ovhmk-4h7.js +0 -1
- package/out/_next/static/chunks/3sktz8258so64.js +0 -2
- package/out/_next/static/chunks/3tq-bb0j1_lpu.js +0 -14
- package/out/_next/static/chunks/3v1dxn4rp-o3v.js +0 -315
- package/out/_next/static/chunks/3w_wwl_hd91od.js +0 -1
- package/out/_next/static/chunks/3ww_p-agyd9u-.js +0 -14
- package/out/_next/static/chunks/3wzzh45yillzb.js +0 -1
- package/out/_next/static/chunks/3xfj8_2nd5d_1.js +0 -1
- package/out/_next/static/chunks/3xhmfg-981n_5.js +0 -61
- package/out/_next/static/chunks/3yz34q3ulli7q.js +0 -12
- package/out/_next/static/chunks/3z_c5kpm-e1ty.js +0 -15
- package/out/_next/static/chunks/3zs002htik_8l.js +0 -21
- package/out/_next/static/chunks/4079hjuumfmm2.js +0 -31
- package/out/_next/static/chunks/40922jbr_e5ug.js +0 -51
- package/out/_next/static/chunks/40zy6mxa-be0m.js +0 -1
- package/out/_next/static/chunks/41fbmiggueudh.js +0 -13
- package/out/_next/static/chunks/43e0fp97w800k.js +0 -13
- package/out/_next/static/chunks/43gv4x1sfyb5l.js +0 -9
- package/out/_next/static/chunks/44nj9c766dqvc.js +0 -807
- package/out/_next/static/chunks/44r51e87s4z_d.js +0 -8
- package/out/_next/static/chunks/458tg2eg5h8j5.js +0 -324
- package/out/_next/static/chunks/45cd4ypk94sw2.js +0 -807
- package/out/_next/static/chunks/turbopack-01866gjdddrxa.js +0 -1
- package/out/_next/static/chunks/turbopack-08ttg7vxsdnsj.js +0 -1
- package/out/_next/static/chunks/turbopack-0a3j0ezn8okfg.js +0 -1
- package/out/_next/static/chunks/turbopack-0anbjm4c1j4u4.js +0 -1
- package/out/_next/static/chunks/turbopack-0ga3wfg-oyyst.js +0 -1
- package/out/_next/static/chunks/turbopack-0m3lvbvrn923g.js +0 -1
- package/out/_next/static/chunks/turbopack-0pmjdjcdx7cqp.js +0 -1
- package/out/_next/static/chunks/turbopack-0ptvhnhsw0_c7.js +0 -1
- package/out/_next/static/chunks/turbopack-0s4b5r_1d8yqv.js +0 -1
- package/out/_next/static/chunks/turbopack-0sihqflu4qpvw.js +0 -1
- package/out/_next/static/chunks/turbopack-0tc31uax4buqq.js +0 -1
- package/out/_next/static/chunks/turbopack-0w2rzh4i3j2og.js +0 -1
- package/out/_next/static/chunks/turbopack-10ldzl5n31zl-.js +0 -1
- package/out/_next/static/chunks/turbopack-19e_bi5k2rqyy.js +0 -1
- package/out/_next/static/chunks/turbopack-19i6-4a5o4fil.js +0 -1
- package/out/_next/static/chunks/turbopack-19vr9o5829d-f.js +0 -1
- package/out/_next/static/chunks/turbopack-19yw5qwon7l57.js +0 -1
- package/out/_next/static/chunks/turbopack-1cx5i7_gdoz5k.js +0 -1
- package/out/_next/static/chunks/turbopack-1d-c7awe26kf5.js +0 -1
- package/out/_next/static/chunks/turbopack-1l1aen9tojmq4.js +0 -1
- package/out/_next/static/chunks/turbopack-1o1rar8ouv6h9.js +0 -1
- package/out/_next/static/chunks/turbopack-1od_4a7nj02l4.js +0 -1
- package/out/_next/static/chunks/turbopack-1r_0o22d_puxo.js +0 -1
- package/out/_next/static/chunks/turbopack-1rmdtpi005n_6.js +0 -1
- package/out/_next/static/chunks/turbopack-1wx5785osz26z.js +0 -1
- package/out/_next/static/chunks/turbopack-21vayl2_q4r5u.js +0 -1
- package/out/_next/static/chunks/turbopack-23nr2ioaqw90j.js +0 -1
- package/out/_next/static/chunks/turbopack-23u97wxsuqiqb.js +0 -1
- package/out/_next/static/chunks/turbopack-24ylsu2au7hg1.js +0 -1
- package/out/_next/static/chunks/turbopack-28_dvdmt6lvhn.js +0 -1
- package/out/_next/static/chunks/turbopack-2bo7hmw4eirxu.js +0 -1
- package/out/_next/static/chunks/turbopack-2dk8ur1fvwxzj.js +0 -1
- package/out/_next/static/chunks/turbopack-2e_wy0ffi64id.js +0 -1
- package/out/_next/static/chunks/turbopack-2fuk9oepxr5n0.js +0 -1
- package/out/_next/static/chunks/turbopack-2g2viapamsvwe.js +0 -1
- package/out/_next/static/chunks/turbopack-2ga09m38zacev.js +0 -1
- package/out/_next/static/chunks/turbopack-2pxtve7lryqre.js +0 -1
- package/out/_next/static/chunks/turbopack-2qbfd_-7v5dbo.js +0 -1
- package/out/_next/static/chunks/turbopack-2rz_y4ejrvafp.js +0 -1
- package/out/_next/static/chunks/turbopack-2u0ls0liblo_9.js +0 -1
- package/out/_next/static/chunks/turbopack-2u_328z53ed9p.js +0 -1
- package/out/_next/static/chunks/turbopack-2xfom16ggx1i3.js +0 -1
- package/out/_next/static/chunks/turbopack-2ycfwit0p-fkf.js +0 -1
- package/out/_next/static/chunks/turbopack-2yekm5ij2g-aw.js +0 -1
- package/out/_next/static/chunks/turbopack-3-w-v8og1lok2.js +0 -1
- package/out/_next/static/chunks/turbopack-30qkgccwlkv7n.js +0 -1
- package/out/_next/static/chunks/turbopack-36bl9-rerhcfg.js +0 -1
- package/out/_next/static/chunks/turbopack-37a6lyjyz7fts.js +0 -1
- package/out/_next/static/chunks/turbopack-37lb9ujef-ujm.js +0 -1
- package/out/_next/static/chunks/turbopack-39nctu3yv9iv4.js +0 -1
- package/out/_next/static/chunks/turbopack-3_mmmbs60vr14.js +0 -1
- package/out/_next/static/chunks/turbopack-3_o3qz69ih0uu.js +0 -1
- package/out/_next/static/chunks/turbopack-3cv39r7v3s2gr.js +0 -1
- package/out/_next/static/chunks/turbopack-3cv3hgsoo_z1k.js +0 -1
- package/out/_next/static/chunks/turbopack-3pgmc-lv74ewz.js +0 -1
- package/out/_next/static/chunks/turbopack-3uj40sz7i7jg0.js +0 -1
- package/out/_next/static/chunks/turbopack-3v4nxmdavly34.js +0 -1
- package/out/_next/static/chunks/turbopack-3vfm6fp92up6y.js +0 -1
- package/out/_next/static/chunks/turbopack-3vyi51cuxeowy.js +0 -1
- package/out/_next/static/chunks/turbopack-3w26eu86co02z.js +0 -1
- package/out/_next/static/chunks/turbopack-3zc0h1216mtm2.js +0 -1
- package/out/_next/static/chunks/turbopack-4166pmk5_y_4x.js +0 -1
- package/out/_next/static/chunks/turbopack-431y1sh-m_0mp.js +0 -1
- /package/out/_next/static/{F8ReqaxPvLqFJ2DaPfMdn → 4ESrB8YpR2n44PFePtbgX}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{F8ReqaxPvLqFJ2DaPfMdn → 4ESrB8YpR2n44PFePtbgX}/_ssgManifest.js +0 -0
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,5505,e=>{"use strict";var r=e.i(91398),i=e.i(91788),a=e.i(72043);let t=(0,i.createContext)(!1);e.s(["FormWrapperContext",0,t,"default",0,({children:e,className:i=""})=>(0,r.jsx)(t.Provider,{value:!0,children:(0,r.jsx)("div",{className:"sm:max-w-full",children:(0,r.jsx)("div",{className:(0,a.default)("bg-white dark:bg-slate-800 rounded-md shadow-sm overflow-hidden",i),children:e})})})])},68057,e=>{"use strict";var r=e.i(91398),i=e.i(69322),a=e.i(69211),t=e.i(73419),s=e.i(99160),d=e.i(98949),l=e.i(5505);e.s(["default",0,({onSubmit:e,onSubmitSuccess:o,providerTypes:n,providerInterfaces:u,onProviderChange:c,readOnly:v})=>{let{formatMessage:m}=(0,i.useIntl)(),p=m({id:"provider_created_success",defaultMessage:"Provider created successfully!"}),y=(0,d.default)({submit:e,onSubmitSuccess:o,successMessage:p,enableReinitialize:!0,initialValues:{adapterKey:"",type:""}});return(0,r.jsx)(l.default,{children:(0,r.jsx)(a.default,{form:y,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)(t.default,{onChange:e=>c(e.target.value),name:"type",disabled:v,required:!0,label:m({id:"type",defaultMessage:"Type"}),options:n,className:"mb-5"}),(0,r.jsx)(t.default,{name:"adapterKey",required:!0,disabled:v,options:u,label:m({id:"adapter",defaultMessage:"Adapter"}),className:"mt-2"})]}),!v&&(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)(s.default,{label:m({id:"create_provider",defaultMessage:"Create provider"})})})]})})})}])},1504,e=>{"use strict";e.s(["default",0,(e,r,i)=>Object.assign({},...e?.map(e=>({[e[i]]:e[r]}))||[])])},36494,e=>{"use strict";var r=e.i(59080);let i=r.gql`
|
|
2
|
-
fragment AddressFragment on Address {
|
|
3
|
-
firstName
|
|
4
|
-
lastName
|
|
5
|
-
company
|
|
6
|
-
addressLine
|
|
7
|
-
postalCode
|
|
8
|
-
city
|
|
9
|
-
countryCode
|
|
10
|
-
regionCode
|
|
11
|
-
}
|
|
12
|
-
`;e.s(["default",0,i])},93333,e=>{"use strict";var r=e.i(59080),i=e.i(32171);let a=r.gql`
|
|
13
|
-
query DeliveryProvidersType {
|
|
14
|
-
deliveryProviderType: __type(name: "DeliveryProviderType") {
|
|
15
|
-
options: enumValues {
|
|
16
|
-
value: name
|
|
17
|
-
label: description
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
`;e.s(["default",0,()=>{let{data:e,loading:r,error:t}=(0,i.useQuery)(a);return{deliveryProviderType:e?.deliveryProviderType?.options||[],loading:r,error:t}}])},73419,e=>{"use strict";var r=e.i(91398),i=e.i(72043),a=e.i(60741),t=e.i(29691);e.s(["default",0,e=>{let{options:s,...d}=(0,a.default)(e),{className:l}=e||{className:""};return(0,r.jsx)(t.default,{...d,children:(0,r.jsx)("div",{className:"select-wrap",children:(0,r.jsxs)("select",{className:(0,i.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",l,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!d.error}),disabled:d.disabled,id:d.name,name:d.name,onChange:d.onChange,onBlur:d.onBlur,value:d.value,children:[(0,r.jsx)("option",{className:"dark:text-slate-200",value:"",disabled:d.required,hidden:d.required,children:d.placeholder||d.label}),Object.entries(s).map(([e,i])=>(0,r.jsx)("option",{className:"dark:text-slate-200",value:e,children:i},e))]})})})}])},8320,e=>{"use strict";var r=e.i(91398),i=e.i(91788),a=e.i(66773),t=e.i(3828),s=e.i(69322),d=e.i(58971),l=e.i(61494),o=e.i(68057),n=e.i(17644),u=e.i(1504),c=e.i(59080),v=e.i(76204),m=e.i(36494);let p=c.gql`
|
|
22
|
-
mutation CreateDeliveryProvider(
|
|
23
|
-
$deliveryProvider: CreateDeliveryProviderInput!
|
|
24
|
-
) {
|
|
25
|
-
createDeliveryProvider(deliveryProvider: $deliveryProvider) {
|
|
26
|
-
_id
|
|
27
|
-
created
|
|
28
|
-
updated
|
|
29
|
-
deleted
|
|
30
|
-
type
|
|
31
|
-
isActive
|
|
32
|
-
configuration
|
|
33
|
-
interface {
|
|
34
|
-
_id
|
|
35
|
-
label
|
|
36
|
-
version
|
|
37
|
-
}
|
|
38
|
-
configurationError
|
|
39
|
-
... on DeliveryProviderPickUp {
|
|
40
|
-
pickUpLocations {
|
|
41
|
-
_id
|
|
42
|
-
name
|
|
43
|
-
address {
|
|
44
|
-
...AddressFragment
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
${m.default}
|
|
51
|
-
`;var y=e.i(32171);let f=c.gql`
|
|
52
|
-
query DeliveryInterfaces($providerType: DeliveryProviderType) {
|
|
53
|
-
deliveryInterfaces(type: $providerType) {
|
|
54
|
-
_id
|
|
55
|
-
value: _id
|
|
56
|
-
label
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
`;var b=e.i(93333);e.s(["default",0,()=>{let[e,c]=(0,i.useState)(a.IDeliveryProviderType.Shipping),{formatMessage:m}=(0,s.useIntl)(),{createDeliveryProvider:g}=(()=>{let[e,{data:r,error:i,loading:a}]=(0,v.useMutation)(p);return{createDeliveryProvider:async({deliveryProvider:{adapterKey:r,type:i}})=>e({variables:{deliveryProvider:{adapterKey:r,type:i}},refetchQueries:["DeliveryProviders","ShopStatus"]}),newDeliveryProvider:r?.createDeliveryProvider,loading:a,error:i}})(),{deliveryProviderType:h}=(0,b.default)(),{deliveryInterfaces:x}=(({providerType:e=null})=>{let{data:r,loading:i,error:a}=(0,y.useQuery)(f,{skip:!e,variables:{providerType:e}});return{deliveryInterfaces:r?.deliveryInterfaces||[],loading:i,error:a}})({providerType:e}),{hasRole:P}=(0,d.default)(),j=async({adapterKey:e,type:r})=>{let{data:i,error:a}=await g({deliveryProvider:{adapterKey:e,type:r}});return!a&&{success:!0,data:i?.createDeliveryProvider}},_=(0,t.useRouter)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.default,{}),(0,r.jsxs)("div",{className:"mx-auto sm:max-w-2xl",children:[(0,r.jsx)(n.default,{headerText:m({id:"new_delivery_provider",defaultMessage:"New delivery provider"})}),(0,r.jsx)("div",{className:"mt-6",children:(0,r.jsx)(o.default,{readOnly:!P(a.IRoleAction.ManageDeliveryProviders),providerInterfaces:(0,u.default)(x,"label","value"),providerTypes:(0,u.default)(h,"label","value"),onSubmit:j,onSubmitSuccess:(e,{_id:r})=>{_.replace(`/delivery-provider?deliveryProviderId=${r}`)},onProviderChange:e=>c(e)})})]})]})}],8320)},74795,(e,r,i)=>{let a="/delivery-provider/new";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(8320)]),r.hot&&r.hot.dispose(function(){window.__NEXT_P.push([a])})},28805,e=>{e.v(r=>Promise.all(["static/chunks/0h0r_q6xa9qr_.js"].map(r=>e.l(r))).then(()=>r(79466)))},48761,e=>{e.v(r=>Promise.all(["static/chunks/1ae-9ft5cgojf.js"].map(r=>e.l(r))).then(()=>r(93594)))},13521,(e,r,i)=>{"use strict";e.i(50461),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let a=e.r(41705)._(e.r(91788)),t=e.r(15125),s=a.default.createContext(t.imageConfigDefault)},15125,(e,r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a={VALID_LOADERS:function(){return s},imageConfigDefault:function(){return d}};for(var t in a)Object.defineProperty(i,t,{enumerable:!0,get:a[t]});let s=["default","imgix","cloudinary","akamai","custom"],d={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}}]);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
__turbopack_load_page_chunks__("/quotations/QuotationDetailPage", [
|
|
2
|
-
"static/chunks/1xbofs3ibkjvj.js",
|
|
3
|
-
"static/chunks/38pz7fmyf6ay0.js",
|
|
4
|
-
"static/chunks/36yth4lm03_j8.js",
|
|
5
|
-
"static/chunks/2w5y5xf0nriwx.js",
|
|
6
|
-
"static/chunks/01h4ept18s-ns.js",
|
|
7
|
-
"static/chunks/3sktz8258so64.js",
|
|
8
|
-
"static/chunks/252jebodi67kg.js",
|
|
9
|
-
"static/chunks/2-4ng9fxftmld.js",
|
|
10
|
-
"static/chunks/2hm0mbq0vtqmw.js",
|
|
11
|
-
"static/chunks/1vx8_u7-f7q8u.js",
|
|
12
|
-
"static/chunks/10os1s66nimmi.js",
|
|
13
|
-
"static/chunks/06tejx8u1_0kg.js",
|
|
14
|
-
"static/chunks/turbopack-2fuk9oepxr5n0.js"
|
|
15
|
-
])
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,74954,e=>{"use strict";var t=e.i(91398),s=e.i(91788);e.s(["default",0,({value:e,duration:r=300})=>{let[i,a]=(0,s.useState)(0);return(0,s.useEffect)(()=>{let t,s;if(0===e)return void a(0);let i=l=>{t||(t=l);let n=Math.min((l-t)/r,1);a(Math.round((1-Math.pow(1-n,3))*e)),n<1&&(s=requestAnimationFrame(i))};return s=requestAnimationFrame(i),()=>{s&&cancelAnimationFrame(s)}},[e,r]),(0,t.jsx)("span",{children:i})}])},78704,e=>{"use strict";var t=e.i(91398),s=e.i(91788),r=e.i(12197);e.s(["default",0,({loading:e,hasMore:i,onLoadMore:a,children:l,threshold:n=200})=>{let o=(0,s.useRef)(null),d=(0,s.useCallback)(t=>{let[s]=t;s.isIntersecting&&i&&!e&&a()},[i,e,a]);return(0,s.useEffect)(()=>{let e=o.current;if(!e)return;let t=new IntersectionObserver(d,{rootMargin:`${n}px`});return t.observe(e),()=>{t.disconnect()}},[d,n]),(0,t.jsxs)(t.Fragment,{children:[l,(0,t.jsx)("div",{ref:o,className:"h-4"}),e&&(0,t.jsx)("div",{className:"flex justify-center py-4",children:(0,t.jsx)(r.default,{})})]})}])},2875,e=>{"use strict";var t=e.i(91398),s=e.i(44112);e.s(["default",0,({title:e=null,description:r})=>(0,t.jsx)("div",{className:"mb-6 p-4 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg",children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(s.InformationCircleIcon,{className:"w-5 h-5 text-blue-600 dark:text-blue-400 mt-0.5 flex-shrink-0"}),(0,t.jsxs)("div",{children:[e&&(0,t.jsx)("h3",{className:"text-sm font-semibold text-blue-900 dark:text-blue-100 mb-2",children:e}),(0,t.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200 leading-relaxed",children:r})]})]})})])},94724,e=>{"use strict";var t=e.i(91398),s=e.i(69322);e.s(["default",0,({children:e=null,totalRecords:r=null})=>{let{formatMessage:i}=(0,s.useIntl)();return(0,t.jsxs)("div",{className:"mt-5",children:[null!==r?(0,t.jsx)("div",{className:"text-md text-slate-950 dark:text-slate-100 mb-3",children:i({id:"total_records",defaultMessage:"{total} records found"},{total:r??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})})]})}])},26178,e=>{"use strict";var t=e.i(91398),s=e.i(91788);let r=s.forwardRef(function({title:e,titleId:t,...r},i){return s.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:i,"aria-labelledby":t},r),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.364 18.364A9 9 0 0 0 5.636 5.636m12.728 12.728A9 9 0 0 1 5.636 5.636m12.728 12.728L5.636 5.636"}))});var i=e.i(72043),a=e.i(69322);e.s(["default",0,({message:e,className:s="",Icon:l=null})=>(0,t.jsx)("div",{className:(0,i.default)("rounded-md flex w-full flex-col items-center justify-center min-h-[176px] py-8 border-1 border-dashed border-slate-300 dark:border-slate-700 text-slate-500 dark:text-slate-600",s),children:(0,t.jsxs)("div",{className:"grid items-center justify-center",children:[(0,t.jsx)("div",{className:"flex items-center justify-center text-slate-400 dark:text-slate-600",children:l||(0,t.jsx)(r,{className:"h-6 w-6"})}),(0,t.jsx)(a.FormattedMessage,{id:"no_data_message",defaultMessage:"<p>No <span> {message} available</span> </p>",values:{p:e=>(0,t.jsx)("p",{className:"mt-2 m-auto flex items-center justify-center",children:e}),span:e=>(0,t.jsxs)("span",{className:"capitalize ml-1",children:[" ",e," "]}),message:e}})]})})],26178)},20495,e=>{"use strict";var t=e.i(91398),s=e.i(69322),r=e.i(2765);e.s(["default",0,({inputText:e=null,onInputChange:i,defaultValue:a})=>{let{formatMessage:l}=(0,s.useIntl)(),n=(0,r.default)(200)(i);return(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("label",{htmlFor:"search",className:"sr-only",children:e||l({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:l({id:"search",defaultMessage:"Search"}),type:"search"})]})]})}])},51128,e=>{"use strict";var t=e.i(91398),s=e.i(69322),r=e.i(3828),i=e.i(20495),a=e.i(68835),l=e.i(65153),n=e.i(83147),o=e.i(73319);e.s(["default",0,({children:e,onSearchChange:d,defaultSearchValue:u,showTagFilter:c=!1,availableTagOptions:h=[]})=>{let{formatMessage:f}=(0,s.useIntl)(),{query:p,push:m}=(0,r.useRouter)(),g=e=>{if((0,o.isTruthy)(e))m({query:(0,n.normalizeQuery)(p,e?.join(","),"tags")});else{let{tags:e,...t}=p;m({query:(0,n.normalizeQuery)(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)(i.default,{onInputChange:d,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.default,{buttonText:f({id:"apply",defaultMessage:"Apply"}),placeholder:f({id:"enter_tag",defaultMessage:"Enter tag..."}),tagList:p?.tags?.split(","),onChange:g,selectOptions:h,showTagsInline:!1})}),p?.tags?.split(",").filter(Boolean).length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:p?.tags?.split(",").filter(Boolean).map(e=>(0,t.jsx)(l.default,{text:e,color:"slate",onClick:()=>{let t=p?.tags?.split(",").filter(t=>t!==e);g(t.length>0?t:null)}},e))})]})]})}),e]})}])},8918,e=>{"use strict";var t=e.i(91398),s=e.i(91788),r=e.i(72043),i=e.i(69322),a=e.i(88566),l=e.i(25575),n=e.i(3828),o=e.i(83147);let d=({onSort:e,sortDirection:s})=>s?"ASC"===s?(0,t.jsx)(l.ChevronUpIcon,{className:"ml-2 w-5 h-5 text-slate-700",onClick:e}):(0,t.jsx)(a.ChevronDownIcon,{className:"ml-2 w-5 h-5 text-slate-700",onClick:e}):(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"ml-2 w-6 h-6",onClick:e,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})});var u=e.i(26178);let c=e=>{let t=[],r=[],i=[];return s.default.Children.forEach(e.children,e=>{e?.props?.header?t.push(e):e?.props?.footer?i.push(e):r.push(e)}),{header:t,footer:i,body:r}},h=({className:e="",...a})=>{let[l,n]=(0,s.useState)(c(a)),{formatMessage:o}=(0,i.useIntl)(),d={...l,header:s.default.Children.map(l.header,e=>s.default.cloneElement(e))};return(0,s.useEffect)(()=>{n(c(a))},[a.children]),d.header.length||d.body.length?(0,t.jsxs)("table",{className:(0,r.default)("overflow-hidden my-3 flex w-full flex-row flex-nowrap divide-y divide-slate-200 dark:divide-slate-600 shadow-sm sm:rounded-lg sm:bg-white dark:bg-slate-950",e),...a,children:[(0,t.jsx)("thead",{className:"hidden sm:table-header-group bg-slate-100 dark:bg-slate-700 text-sm text-slate-700 dark:text-slate-200",children:d.header}),d.body.length?(0,t.jsx)("tbody",{className:"space-y-4 sm:space-y-0 flex-1 sm:divide-y divide-slate-200 dark:divide-slate-700 sm:bg-white dark:sm:bg-slate-800 sm:flex-none",children:d.body}):null,d.footer.length?(0,t.jsx)("tfoot",{children:d.footer}):null]}):(0,t.jsx)(u.default,{message:o({id:"data",defaultMessage:"Data"})})};h.Row=({className:e="",children:i=[],header:a=!1,enablesort:l=!1,...n})=>{let o=s.default.Children.map(i,e=>s.default?.cloneElement(e||(0,t.jsx)("span",{}),{header:a,enablesort:l}));return(0,t.jsx)("tr",{className:(0,r.default)("grid grid-cols-1 auto-rows-fr border border-slate-100 dark:border-slate-700 sm:border-0 rounded-md sm:mb-0 sm:table-row sm:rounded-none bg-white dark:bg-slate-800 sm:bg-inherit dark:sm:bg-inherit",e),...n,children:o})},h.Cell=({className:e="",header:s=!1,enablesort:i=!1,children:a,sortKey:l=null,defaultSortDirection:u=null,...c})=>{let h=(0,n.useRouter)(),f=(0,o.getSortKeys)(h.query?.sort),p=s?"th":"td";return(0,t.jsx)(p,{className:(0,r.default)(s?"px-4 py-3 text-left text-slate-500 dark:text-slate-200":"whitespace-nowrap px-4 py-3 text-slate-500 dark:text-slate-200 border-b dark:border-slate-300 last:border-b-0 sm:border-b-0 text-left flex items-center sm:table-cell",e),...c,children:(0,t.jsxs)("div",{className:"flex items-center",children:[a,"th"===p&&i&&l&&(0,t.jsx)(d,{onSort:e=>{var t;let s;e.preventDefault(),((t=f[l])?"ASC"===t?"DESC":null:"ASC")||!f[l]?s={...f,[l]:"ASC"===f[l]?"DESC":"ASC"}:(delete f[l],s=f);let r=Object.entries(s).map(([e,t])=>[e,t].join("_")).join(","),{sort:i,...a}=h.query,n=Object.keys(a).map(e=>[e,a[e]].join("=")).join("&"),d=0===Object.keys(a).length?`${h.basePath}?sort=${r}`:`${h.basePath}?${n}&sort=${r}`;r?h.push(d):h.push({query:(0,o.normalizeQuery)(a)})},sortDirection:Object.keys(f).length?f[l]:u})]})})},e.s(["default",0,h],8918)},60513,75284,e=>{"use strict";var t=e.i(91788),s=e.i(28401),r=e.i(69322),i=e.i(30086),a=e.i(66773),l=e.i(98926),n=e.i(63104),o=e.i(3828);e.s(["useCSVExport",0,()=>{let[e,d]=(0,t.useState)(!1),u=(0,l.useApolloClient)(),c=(0,o.useRouter)(),{addWork:h}=(0,i.default)(),{formatMessage:f}=(0,r.useIntl)(),p=(0,t.useCallback)(async e=>{let{data:t}=await u.query({query:(0,n.GetWorkQuery)(),variables:{workId:e},fetchPolicy:"network-only"});return t?.work??null},[u]);return{isExporting:e,exportCSV:(0,t.useCallback)(async({type:e,pollInterval:t=2e3,...r})=>{d(!0);try{let s=await h({type:a.IWorkType.BulkExport,input:{type:e,...r}}),i=s?.data?.addWork?._id;if(!i)throw Error("Failed to create export work");await new Promise((e,s)=>{let r=setInterval(async()=>{try{let t=await p(i);if(!t)throw Error("Work not found");(t.status===a.IWorkStatus.Success||t.status===a.IWorkStatus.Failed)&&(clearInterval(r),t.status===a.IWorkStatus.Success&&t.success?(c.push(`/exports?workId=${t._id}`),e(t)):s(t.error||Error("Export failed")))}catch(e){clearInterval(r),s(e)}},t)})}catch(e){return console.error("Export failed:",e),s.toast.error(f({id:"export_failed",defaultMessage:"Export failed. Please try again."})),null}finally{d(!1)}},[h,p,c,f])}}],60513);var d=e.i(91398),u=e.i(69211),c=e.i(64127),h=e.i(98949),f=e.i(99160);e.s(["default",0,function({options:e,onSubmit:s,loading:i=!1,successMessage:a=""}){let{formatMessage:l}=(0,r.useIntl)(),n=(0,t.useMemo)(()=>e.reduce((e,t)=>(e[t.key]=t.defaultChecked??!0,e),{}),[e]),o=async e=>(await s(e),{success:!0}),p=(0,h.default)({successMessage:a||l({id:"export_completed",defaultMessage:"Data exported successfully"}),submit:o,enableReinitialize:!0,initialValues:n});return(0,d.jsx)(u.default,{form:p,children:p.formik.isSubmitting?(0,d.jsxs)("div",{className:"flex items-center gap-3 p-4 mb-4 rounded-lg animate-pulse",children:[(0,d.jsx)("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),(0,d.jsx)("span",{className:"text-sm font-medium text-blue-700 dark:text-blue-300",children:l({id:"exporting_message",defaultMessage:"Generating your export files. This may take a moment..."})})]}):(0,d.jsxs)("fieldset",{disabled:i,style:{border:"none",padding:0},children:[(0,d.jsxs)("h3",{children:[" ",l({id:"export_options",defaultMessage:"Export options"})]}),e.map(e=>(0,d.jsx)(c.default,{name:e.key,label:e.label,hideLabel:!0,className:"mr-2 h-4 w-4 justify-between rounded-sm border-slate-300 dark:border-slate-600 bg-white text-slate-950 focus:ring-slate-800 lg:items-center",type:"checkbox"},e.key)),(0,d.jsx)(f.default,{label:l({id:"submit",defaultMessage:"Submit"}),disabled:i})]})})}],75284)},78193,e=>{"use strict";var t=e.i(91788),s=e.i(69322),r=e.i(30086),i=e.i(66773);e.s(["useCSVImport",0,({validate:e,process:a})=>{let{addWork:l}=(0,r.default)(),[n,o]=(0,t.useState)(!1),d=(0,s.useIntl)();return{isImporting:n,importItems:async t=>{let s={success:0,failed:0,errors:[]};try{o(!0);let r=e(t,d);r.length>0&&(s.failed+=r.length,s.errors.push(...r));let n=await a(t);for(let e=0;e<n.length;e+=100){let t=n.slice(e,e+100);try{await l({type:i.IWorkType.BulkImport,input:{createShouldUpsertIfIDExists:!0,events:t}}),s.success+=t.length}catch(r){console.error("Batch import failed:",r),s.failed+=t.length,s.errors.push(`Batch starting at index ${e} failed: ${r.message}`)}}return o(!1),s}catch(e){return console.error("Import failed:",e),o(!1),s.errors.push(e.message||"Unknown error"),s}}}}])},79684,e=>{"use strict";var t=e.i(91788);e.s(["default",0,(e,s)=>{let[r,i]=(0,t.useState)(()=>{try{if(window.localStorage){let t=window.localStorage.getItem(e);return t?JSON.parse(t):s}return s}catch(e){return s}});return[r,t=>{try{if(window.localStorage){let s=t instanceof Function?t(r):t;i(s),window.localStorage.setItem(e,JSON.stringify(s))}else console.error("localStorage is not available")}catch(e){console.error(e)}}]}])},83283,78001,e=>{"use strict";var t=e.i(91788),s=e.i(91398),r=e.i(79684);let i=(0,t.createContext)(void 0);e.s(["ThemeContext",0,i,"default",0,({children:e})=>{let[a,l]=(0,r.default)("theme","light");(0,t.useEffect)(()=>{"dark"!==localStorage.theme&&("theme"in localStorage||!window.matchMedia("(prefers-color-scheme: dark)").matches)?document.getElementsByTagName("html")[0].classList.remove("dark"):document.getElementsByTagName("html")[0].classList.add("dark")},[]),(0,t.useEffect)(()=>{"dark"===a?(document.getElementsByTagName("html")[0].classList.add("dark"),localStorage.theme="dark"):(document.getElementsByTagName("html")[0].classList.remove("dark"),localStorage.theme="light")},[a]);let n=(0,t.useMemo)(()=>[a,l],[a]);return(0,s.jsx)(i.Provider,{value:n,children:e})}],78001),e.s(["default",0,()=>{let e=(0,t.useContext)(i);if(void 0===e)throw Error("Theme Context was used outside of its Provider");let[s,r]=e;return{theme:s,setTheme:r}}],83283)},16785,e=>{"use strict";e.s(["downloadCSV",0,(e,t)=>{let s=new Blob([e],{type:"text/csv;charset=utf-8;"}),r=document.createElement("a");if(void 0!==r.download){let e=URL.createObjectURL(s);r.setAttribute("href",e),r.setAttribute("download",t),r.style.visibility="hidden",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(e)}}])},2765,e=>{"use strict";e.s(["default",0,(e=500)=>t=>{let s;return(...r)=>{let i;clearTimeout(s),s=setTimeout(()=>t.apply(i,r),e)}}])},22003,e=>{"use strict";e.s(["default",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}}])},64127,e=>{"use strict";var t=e.i(91398),s=e.i(72043),r=e.i(60741);e.s(["default",0,e=>{let{disabled:i,labelClassName:a,containerClassName:l,inputClassName:n,...o}=e,d=(0,r.default)({...e,type:"checkbox"});return(0,t.jsxs)("div",{className:(0,s.default)("",{"text-rose-600":!!d.error,checkbox:!0,disabled:d.disabled,required:d.required},l),children:[(0,t.jsx)("input",{checked:!!d.value,disabled:i,id:d.name,name:d.name,onChange:d.onChange,onBlur:d.onBlur,type:"checkbox",className:(0,s.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",n,e.className),...o}),(0,t.jsx)("label",{htmlFor:d.name,className:(0,s.default)("text-sm text-slate-900 dark:text-slate-200",a,{"text-danger":!!d.error}),children:d.label})]})}])},42912,e=>{"use strict";var t=e.i(91398),s=e.i(69322);e.s(["default",0,({result:e,title:r,entityName:i="items"})=>{let{formatMessage:a}=(0,s.useIntl)();return(0,t.jsxs)("div",{className:"p-4",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold mb-4",children:r||a({id:"import_results",defaultMessage:"Import Results"})}),(0,t.jsx)("p",{className:"text-green-600",children:a({id:"items_imported",defaultMessage:"{count} {entityName} imported successfully"},{count:e?.success,entityName:i})}),e?.failed>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-red-600 mt-2",children:a({id:"items_failed",defaultMessage:"{count} {entityName} failed to import"},{count:e?.failed,entityName:i})}),(0,t.jsxs)("div",{className:"mt-2 max-h-40 overflow-y-auto",children:[e.errors.slice(0,10).map((e,s)=>(0,t.jsx)("p",{className:"text-sm text-red-500",children:e},s)),e.errors.length>10&&(0,t.jsxs)("p",{className:"text-sm text-gray-500",children:["... and ",e.errors.length-10," more errors"]})]})]})]})}])},75155,e=>{"use strict";var t=e.i(91398),s=e.i(69322),r=e.i(65153);let i={DRAFT:"yellow",ACTIVE:"emerald",DELETED:"amber",null:"yellow",undefined:"yellow"};e.s(["ProductStatusBadge",0,({status:e})=>{let{formatMessage:a}=(0,s.useIntl)();return a({id:"pending",defaultMessage:"PENDING"}),a({id:"confirmed",defaultMessage:"CONFIRMED"}),a({id:"open",defaultMessage:"OPEN"}),a({id:"fulfilled",defaultMessage:"FULFILLED"}),a({id:"rejected",defaultMessage:"REJECTED"}),(0,t.jsx)(r.default,{text:(e=>{switch(e){case"ACTIVE":return a({id:"active",defaultMessage:"Active"});case"DRAFT":default:return a({id:"draft",defaultMessage:"Draft"});case"DELETED":return a({id:"deleted",defaultMessage:"Deleted"})}})(e),color:i[e]||"yellow",square:!0,dotted:!0})}])},92615,e=>{"use strict";var t=e.i(59080),s=e.i(32171);let r=t.gql`
|
|
2
|
-
query ProductsCount(
|
|
3
|
-
$queryString: String
|
|
4
|
-
$tags: [LowerCaseString!]
|
|
5
|
-
$slugs: [String!]
|
|
6
|
-
$includeDrafts: Boolean
|
|
7
|
-
) {
|
|
8
|
-
productsCount(
|
|
9
|
-
tags: $tags
|
|
10
|
-
slugs: $slugs
|
|
11
|
-
includeDrafts: $includeDrafts
|
|
12
|
-
queryString: $queryString
|
|
13
|
-
)
|
|
14
|
-
}
|
|
15
|
-
`;e.s(["default",0,({queryString:e="",tags:t=null,includeDrafts:i=!0})=>{let{data:a,loading:l,error:n}=(0,s.useQuery)(r,{variables:{queryString:e,includeDrafts:i,tags:t}});return{productsCount:a?.productsCount,loading:l,error:n}}])},94672,e=>{"use strict";var t=e.i(59080);let s=t.gql`
|
|
16
|
-
fragment WorkFragment on Work {
|
|
17
|
-
_id
|
|
18
|
-
type
|
|
19
|
-
scheduled
|
|
20
|
-
status
|
|
21
|
-
started
|
|
22
|
-
success
|
|
23
|
-
finished
|
|
24
|
-
created
|
|
25
|
-
deleted
|
|
26
|
-
retries
|
|
27
|
-
original {
|
|
28
|
-
_id
|
|
29
|
-
retries
|
|
30
|
-
}
|
|
31
|
-
input
|
|
32
|
-
result
|
|
33
|
-
}
|
|
34
|
-
`;e.s(["default",0,s])},30086,e=>{"use strict";var t=e.i(59080),s=e.i(76204);let r=t.gql`
|
|
35
|
-
mutation AddWork(
|
|
36
|
-
$type: WorkType!
|
|
37
|
-
$priority: Int! = 0
|
|
38
|
-
$input: JSON
|
|
39
|
-
$originalWorkId: ID
|
|
40
|
-
$scheduled: Timestamp
|
|
41
|
-
$retries: Int! = 20
|
|
42
|
-
) {
|
|
43
|
-
addWork(
|
|
44
|
-
type: $type
|
|
45
|
-
priority: $priority
|
|
46
|
-
input: $input
|
|
47
|
-
originalWorkId: $originalWorkId
|
|
48
|
-
scheduled: $scheduled
|
|
49
|
-
retries: $retries
|
|
50
|
-
) {
|
|
51
|
-
_id
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
`;e.s(["default",0,()=>{let[e]=(0,s.useMutation)(r);return{addWork:async({type:t,priority:s,input:r,originalWorkId:i,scheduled:a=null,retries:l})=>e({variables:{type:t,priority:s,input:r,originalWorkId:i,scheduled:a,retries:l},refetchQueries:["WorkQueue"]})}}])},63104,e=>{"use strict";var t=e.i(59080),s=e.i(32171),r=e.i(70693),i=e.i(94672);let a=(e="")=>t.gql`
|
|
55
|
-
query Work($workId: ID!) {
|
|
56
|
-
work(workId: $workId) {
|
|
57
|
-
...WorkFragment
|
|
58
|
-
${e}
|
|
59
|
-
error
|
|
60
|
-
priority
|
|
61
|
-
worker
|
|
62
|
-
timeout
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
${i.default}
|
|
66
|
-
`;e.s(["GetWorkQuery",0,a,"default",0,({workId:e=null,...t})=>{let{customProperties:i}=(0,r.default)(),{data:l,loading:n,error:o,previousData:d}=(0,s.useQuery)(a(i?.Work),{skip:!e,variables:{workId:e},...t});return{work:l?.work||d?.work,loading:n,error:o}}])},22e3,e=>{"use strict";var t=e.i(91398),s=e.i(69322),r=e.i(66773),i=e.i(3828),a=e.i(61494),l=e.i(94724),n=e.i(17644),o=e.i(64591),d=e.i(60193),u=e.i(12197),c=e.i(78704),h=e.i(8918),f=e.i(24112),p=e.i(41158),m=e.i(65153),g=e.i(77043),x=e.i(3095),y=e.i(1880),_=e.i(58971),v=e.i(6607),b=e.i(15971),w=e.i(41418),k=e.i(88604),C=e.i(75155);let j=({product:e,showAvatar:a=!1,hideSortIndex:l=!1})=>{let{formatMessage:n}=(0,s.useIntl)(),o=(0,i.useRouter)(),{hasRole:d}=(0,_.default)(),{setModal:u}=(0,v.default)(),{updateProduct:c}=(0,w.default)(),{removeProduct:f}=(0,k.default)(),j=async t=>{t.target.value&&await c({productId:e?._id,product:{sequence:parseInt(t.target.value,10)}})},I=async()=>{await u((0,t.jsx)(b.default,{onCancelClick:async()=>u(""),message:n({id:"delete_product_warning",defaultMessage:"This action will permanently delete this product and all associated data. Are you sure you want to continue?"}),onOkClick:async()=>{u(""),await f({productId:e._id})},okText:n({id:"delete_product",defaultMessage:"Delete Product"})}))},E=`/products?slug=${(0,y.default)(e)}`,S=(0,t.jsx)("span",{className:"text-xs mt-1 px-2 py-0.5 bg-slate-100 dark:bg-slate-700 text-slate-700 dark:text-slate-200 rounded w-fit",children:(e.__typename||e.type||"SimpleProduct").replace("Product","")||"Simple"});return(0,t.jsxs)(h.default.Row,{className:"group",children:[(0,t.jsx)(h.default.Cell,{children:e?.status!=="DELETED"?(0,t.jsxs)(p.default,{href:E,className:"flex items-center text-sm text-slate-900 dark:text-slate-300 group-hover:text-slate-700 dark:group-hover:text-slate-100",children:[a&&(0,t.jsx)(g.default,{file:e?.media?.length&&e.media[0].file,className:"mr-3"}),(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsx)("div",{className:"flex items-center gap-2",children:e?.texts?.title||(0,t.jsxs)(t.Fragment,{children:[e._id," ",(0,t.jsx)(m.default,{color:"yellow",text:n({id:"title_not_found",defaultMessage:"Title not found"})})]})})})]}):(0,t.jsxs)("div",{className:"flex items-center text-sm text-slate-900",children:[a&&(0,t.jsx)(g.default,{file:e?.media?.length&&e.media[0].file,className:"mr-3"}),(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsx)("div",{className:"flex items-center gap-2",children:e?.texts?.title||(0,t.jsxs)(t.Fragment,{children:[e._id," ",(0,t.jsx)(m.default,{color:"yellow",text:n({id:"title_not_found",defaultMessage:"Title not found"})})]})})})]})}),(0,t.jsx)(h.default.Cell,{className:"whitespace-nowrap px-6",children:S}),(0,t.jsx)(h.default.Cell,{className:"whitespace-nowrap px-6",children:e?.status!=="DELETED"?(0,t.jsx)(p.default,{href:E,className:"block",children:(0,t.jsx)(C.ProductStatusBadge,{status:e?.status})}):(0,t.jsx)(C.ProductStatusBadge,{status:e?.status})}),(0,t.jsx)(h.default.Cell,{children:e?.status!=="DELETED"?(0,t.jsx)(p.default,{href:E,className:"block",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:e.tags?.map(e=>(0,t.jsx)(m.default,{text:e,color:"slate"},e))})}):(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:e.tags?.map(e=>(0,t.jsx)(m.default,{text:e,color:"slate"},e))})}),l?null:(0,t.jsx)(h.default.Cell,{children:(0,t.jsx)("input",{type:"number",id:`${e?._id}-sequence`,className:"text-center w-16 shadow-xs focus:ring-slate-900 dark:bg-slate-800 dark:border-slate-700 focus:border-slate-900 block text-sm border-slate-300 rounded-md mr-2 font-semibold text-slate-900 dark:text-slate-300",defaultValue:e?.sequence,disabled:!d(r.IRoleAction.ManageProducts),onBlur:j,onClick:e=>e.stopPropagation(),onFocus:e=>e.stopPropagation()})}),(0,t.jsx)(h.default.Cell,{className:"text-right",children:(0,t.jsx)(x.default,{onEdit:e?.status!=="DELETED"?()=>{e?.status!=="DELETED"&&o.push(`/products?slug=${(0,y.default)(e)}`)}:void 0,onDelete:d(r.IRoleAction.ManageProducts)&&e?.status==="DRAFT"?I:void 0,showEdit:e?.status!=="DELETED",showDelete:d(r.IRoleAction.ManageProducts)&&e?.status==="DRAFT"&&!e?.proxies?.length})})]})};var I=e.i(57561);let E=({showAvatar:e=!0,queryString:r,limit:i,offset:a,tags:l,sortKeys:n,includeDrafts:o,sortable:d})=>{let{formatMessage:p}=(0,s.useIntl)(),{selectedLocale:m}=(0,I.default)(),{products:g,loading:x,loadMore:y,hasMore:_}=(0,f.default)({queryString:r,includeDrafts:o,limit:i,offset:a,tags:l,sort:n,forceLocale:m});return x&&g?.length===0?(0,t.jsx)(u.default,{}):(0,t.jsx)(c.default,{loading:x,hasMore:_,onLoadMore:y,children:(0,t.jsxs)(h.default,{className:"min-w-full ",children:[g?.map(e=>(0,t.jsxs)(h.default.Row,{header:!0,enablesort:d,children:[(0,t.jsx)(h.default.Cell,{children:p({id:"name",defaultMessage:"Name"})}),(0,t.jsx)(h.default.Cell,{sortKey:"type",children:p({id:"type",defaultMessage:"Type"})}),(0,t.jsx)(h.default.Cell,{sortKey:"status",children:p({id:"status",defaultMessage:"Status"})}),(0,t.jsx)(h.default.Cell,{children:p({id:"tags",defaultMessage:"Tags"})}),(0,t.jsx)(h.default.Cell,{sortKey:"sequence",defaultSortDirection:"ASC",children:p({id:"sequence",defaultMessage:"Display Order"})}),(0,t.jsx)(h.default.Cell,{children:" "})]},e._id)),g?.map(s=>(0,t.jsx)(j,{product:s,showAvatar:e},`${s?._id}-body`))]})})};var S=e.i(83147),M=e.i(51128),N=e.i(92615),R=e.i(30311),T=e.i(11056),O=e.i(74954),D=e.i(91788),L=e.i(81013),A=e.i(60513);let P=["_id","sku","baseUnit","sequence","status","tags","updated","published","type"],q=["title","subtitle","description","vendor","brand","labels","slug"],F=["productId","amount","currencyCode","countryCode","isTaxable","isNetPrice","maxQuantity"],$=["productId","bundleItemProductId","quantity","configuration"],V=["productId","variationId","key","type"],B=["title","subtitle"],U=["variationId","value"],W=["title","subtitle"];var z=e.i(75284);let K=({queryString:e,includeDrafts:r,tags:i})=>{let{setModal:a}=(0,v.default)(),{productsCount:l,loading:n}=(0,N.default)({queryString:e,includeDrafts:r,tags:i}),{exportProducts:o,isExporting:d}=(()=>{let{exportCSV:e,isExporting:t}=(0,A.useCSVExport)();return{exportProducts:(0,D.useCallback)(async t=>{await e({type:"PRODUCTS",...t})},[e]),isExporting:t}})(),{formatMessage:u}=(0,s.useIntl)(),c=[{key:"exportProducts",label:u({id:"products",defaultMessage:"Products"})},{key:"exportPrices",label:u({id:"prices",defaultMessage:"Prices"})},{key:"exportBundleItems",label:u({id:"bundle_items",defaultMessage:"Bundle items"})},{key:"exportVariations",label:u({id:"variations",defaultMessage:"Variations"})},{key:"exportVariationOptions",label:u({id:"variation_options",defaultMessage:"Variation options"})}],h=(0,D.useCallback)(async t=>{await o({queryString:e,includeDrafts:r,tags:i,...t}),a(null)},[e,r,i,o,a]);return n?null:(0,t.jsx)(L.default,{onClick:()=>{a((0,t.jsx)(z.default,{options:c,onSubmit:h,loading:d}))},disabled:d||!l,variant:"secondary",text:u(d?{id:"exporting",defaultMessage:"Exporting..."}:{id:"export",defaultMessage:"Export"})})};var Q=e.i(78193),Z=e.i(22003);let G={SimpleProduct:"SIMPLE_PRODUCT",BundleProduct:"BUNDLE_PRODUCT",PlanProduct:"PLAN_PRODUCT",ConfigurableProduct:"CONFIGURABLE_PRODUCT",TokenizedProduct:"TOKENIZED_PRODUCT"},H=e=>{let t={};return Object.entries(e).forEach(([e,s])=>{if(!e.startsWith("texts."))return;let[,r,i]=e.split(".");t[r]||={},"labels"===i?t[r][i]=s?s.split(";"):[]:t[r][i]=s||""}),t},J=({productsCSV:e,pricesCSV:t,bundleItemsCSV:s,variationOptionsCSV:i,variationsCSV:a},l)=>{let n=[];for(let t of e)Object.values(G).includes(t?.type)||n.push(l.formatMessage({id:"product_import.validation.invalid_type",defaultMessage:"Invalid product type: {type}"},{type:t.type})),t.sequence||n.push(l.formatMessage({id:"product_import_sequence_required",defaultMessage:"Required field sequence missing"})),t.status&&![r.IProductStatus.Active,r.IProductStatus.Draft,r.IProductStatus.Deleted].includes(t.status)&&n.push(l.formatMessage({id:"product_import_status_invalid",defaultMessage:"Invalid status value given ({status})"},{status:t.status}));for(let e of t)e.productId||n.push(l.formatMessage({id:"product_price_import_product_id_required",defaultMessage:"Required field productId missing"})),e.amount||n.push(l.formatMessage({id:"product_price_import_amount_required",defaultMessage:"Required field amount missing"})),e.countryCode||n.push(l.formatMessage({id:"product_price_import_countryCode_required",defaultMessage:"Required field countryCode missing"})),e.currencyCode||n.push(l.formatMessage({id:"product_price_import_currencyCode_required",defaultMessage:"Required field currencyCode missing"}));for(let e of s)e.productId||n.push(l.formatMessage({id:"product_bundle_import_product_id_required",defaultMessage:"Required field variation productId missing"})),e.bundleItemProductId||n.push(l.formatMessage({id:"product_bundle_import_item_id_required",defaultMessage:"Required field bundleItemProductId missing"}));for(let e of a)e.productId||n.push(l.formatMessage({id:"product_variation_import_product_id_required",defaultMessage:"Required field variation productId missing"})),e.variationId||n.push(l.formatMessage({id:"product_variation_import_variation_id_required",defaultMessage:"Required field variationId missing"})),e.type||n.push(l.formatMessage({id:"product_variation_import_type_required",defaultMessage:"Required field variation type missing"})),e.type&&![r.IProductVariationType.Color,r.IProductVariationType.Text].includes(e.type)&&n.push(l.formatMessage({id:"product_variation_import_invalid_type_required",defaultMessage:"Invalid variation type given ({type})"},{type:e.type}));for(let e of i)e.variationId||n.push(l.formatMessage({id:"product_variation_option_import_variation_id_required",defaultMessage:"Required field variation id missing"})),e.value||n.push(l.formatMessage({id:"product_variation_option_import_value_required",defaultMessage:"Required field variation option value missing"}));return n};var X=e.i(42912),Y=e.i(72552),ee=e.i(16785);let et={productsCSV:P,pricesCSV:F,bundleItemsCSV:$,variationOptionsCSV:U,variationsCSV:V},es=({onImport:e})=>{let r=(0,D.useRef)({}),{formatMessage:i}=(0,s.useIntl)(),{languageDialectList:a}=(0,I.default)(),l=a?.map(e=>e.isoCode)||[],[n,o]=(0,D.useState)({}),[d,u]=(0,D.useState)({productsCSV:[],pricesCSV:[],bundleItemsCSV:[],variationsCSV:[],variationOptionsCSV:[]}),[c,h]=(0,D.useState)(!1),f=[{key:"productsCSV",label:i({id:"product_csv_file",defaultMessage:"Products CSV"})},{key:"pricesCSV",label:i({id:"product_price_csv_file",defaultMessage:"Product prices CSV (Optional)"}),optional:!0},{key:"bundleItemsCSV",label:i({id:"product_bundle_item_csv_file",defaultMessage:"Product bundle items CSV (Optional)"}),optional:!0},{key:"variationsCSV",label:i({id:"product_variations_csv_file",defaultMessage:"Product variations CSV (Optional)"}),optional:!0},{key:"variationOptionsCSV",label:i({id:"product_variation_options_csv_file",defaultMessage:"Product variation options CSV (Optional)"}),optional:!0}],p=async e=>{let t=await e.text();return Y.default.parse(t,{header:!0,skipEmptyLines:!0}).data},m=async(e,t)=>{if(!t)return;let s=await p(t),r=((e,t)=>{if(!t.length)return!1;let s=Object.keys(t[0]),r=et[e].filter(e=>!s.includes(e));return r.length?(o(t=>({...t,[e]:i({id:"csv_missing_fields",defaultMessage:"Missing required columns: {fields}"},{fields:r.join(", ")})})),!1):(o(t=>({...t,[e]:void 0})),!0)})(e,s);u(t=>({...t,[e]:r?s:[]}))},g=async(e,t)=>{let s=e.target.files?.[0];await m(t,s),e.target.value=""},x=(0,D.useCallback)(async()=>{h(!0);try{await e(d)}finally{h(!1)}},[d,e]),y=d.productsCSV.length>0,_=Object.values(n).some(Boolean);return(0,t.jsxs)("div",{className:"sm:max-w-full w-full max-w-xl mx-auto p-6 bg-white border border-gray-200 rounded-lg shadow-md flex flex-col gap-6",children:[(0,t.jsx)("h3",{className:"text-center text-lg font-semibold",children:i({id:"products_import_title",defaultMessage:"Import Products"})}),(0,t.jsx)("p",{className:"text-center text-sm text-gray-600",children:i({id:"product_import_description",defaultMessage:"Select your products CSV and optional CSV files, then click Import."})}),f.map(({key:e,label:s,optional:a})=>(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("input",{ref:t=>{r.current[e]=t??null},type:"file",accept:".csv",onChange:t=>g(t,e),className:"hidden"}),(0,t.jsxs)("div",{className:"flex justify-between items-center gap-2",children:[(0,t.jsx)(L.default,{text:d[e].length?i({id:`${e}_file_selected`,defaultMessage:`${s} Selected`}):i({id:`select_${e}`,defaultMessage:`Select ${s}`}),onClick:()=>r.current[e]?.click(),variant:"secondary",className:"flex-1",disabled:c||!y&&a}),(0,t.jsx)("button",{type:"button",className:"text-xs text-blue-600 hover:underline",title:"Download a CSV template with required columns",onClick:()=>((e,t,s=[])=>{let r=((e,t=[])=>{if("productsCSV"===e)return[...P,...t.flatMap(e=>q.map(t=>`texts.${e}.${t}`)),"supply.weightInGram","supply.heightInMillimeters","supply.lengthInMillimeters","supply.widthInMillimeters"];if("bundleItemsCSV"===e)return[...$];if("pricesCSV"===e)return[...F];if("variationsCSV"===e)return[...V,...t.flatMap(e=>B.map(t=>`texts.${e}.${t}`))];if("variationOptionsCSV"===e)return[...U,...t.flatMap(e=>W.map(t=>`texts.${e}.${t}`))];return[]})(e,s).join(",");(0,ee.downloadCSV)(r,t)})(e,`${e}_template.csv`,l),children:i({id:"download_csv_template",defaultMessage:"Download template"})})]}),n[e]&&(0,t.jsxs)("p",{className:"text-red-600 text-xs flex items-center gap-1",children:["⚠ ",n[e]]})]},e)),(0,t.jsx)(L.default,{text:c?"Importing…":"Import",onClick:x,disabled:c||!y||_,variant:"primary",className:"w-full flex justify-center items-center gap-2",children:c&&(0,t.jsx)("span",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"})}),y&&!_&&(0,t.jsx)("p",{className:"text-center text-xs text-gray-500",children:i({id:"ready_to_import",defaultMessage:"Ready to import {products} products{prices}{bundleItems}{variations}{variationOptions}."},{products:d.productsCSV.length,prices:d.pricesCSV.length?` with ${d.pricesCSV.length} prices`:"",bundleItems:d.bundleItemsCSV.length?` with ${d.bundleItemsCSV.length} bundle items`:"",variations:d.variationsCSV.length?` with ${d.variationsCSV.length} variations`:"",variationOptions:d.variationOptionsCSV.length?` with ${d.variationOptionsCSV.length} variation options`:""})})]})};var er=e.i(28401);let ei=()=>{let{formatMessage:e}=(0,s.useIntl)(),{hasRole:i}=(0,_.default)(),{setModal:a}=(0,v.default)(),{prepareProductImport:l}={prepareProductImport:async({productsCSV:e,pricesCSV:t,bundleItemsCSV:s,variationsCSV:r,variationOptionsCSV:i})=>(e||[]).map(e=>{let a,l,n,o,d,u,c,h=(t||[]).filter(t=>t.productId===e._id),f=(s||[]).filter(t=>t.productId===e._id),p=(r||[]).filter(t=>t.productId===e._id);return h.length&&(a=h.map(({amount:e,maxQuantity:t,isNetPrice:s,isTaxable:r,...i})=>({...i,amount:parseInt(e)??0,isNetPrice:"true"===s,isTaxable:"true"===r,maxQuantity:parseInt(t,2)||0}))),f.length&&(l=f.map(({bundleItemProductId:e,quantity:t,configuration:s})=>({productId:e,quantity:Number(t||1),configuration:(s||"").split(";").map(e=>{let[t,s]=e.split(":");return{key:t,value:s}})}))),p.length&&(n=p.map(({variationId:e,type:t,key:s,configuration:r,...a})=>({variationId:e,key:s,type:t,content:H(a),options:(i||[]).filter(t=>t.variationId===e).map(e=>({value:e?.value??"",content:H(e)}))}))),(({variations:e=[],...t})=>{let s=new Date;return{entity:"PRODUCT",operation:"CREATE",payload:{_id:t._id,specification:{...t,published:"ACTIVE"===t.status?s:null,status:"ACTIVE"===t.status?"ACTIVE":null,warehousing:{sku:t.sku,baseUnit:t.baseUnit},commerce:t.commerce?{pricing:t.commerce}:void 0,bundleItems:t?.bundleItems},variations:e?.length?e:void 0}}})({...(o=e["supply.weightInGram"]||e["supply.heightInMillimeters"]||e["supply.lengthInMillimeters"]||e["supply.widthInMillimeters"],d=e.sku||e.baseUnit,u=H(e),c=(0,Z.default)(e.meta),{_id:e._id||void 0,warehousing:d?{sku:e.sku||void 0,baseUnit:e.baseUnit||void 0}:void 0,sequence:"string"==typeof e.sequence?parseInt(e.sequence||"0",10):e.sequence||0,status:e.status||null,type:e.type,tags:e.tags?e.tags.split(";"):[],updated:e.updated||void 0,published:e.published||void 0,content:u,supply:o?{weightInGram:e["supply.weightInGram"]?parseFloat(e["supply.weightInGram"])??void 0:void 0,heightInMillimeters:e["supply.heightInMillimeters"]?parseFloat(e["supply.heightInMillimeters"])??void 0:void 0,lengthInMillimeters:e["supply.lengthInMillimeters"]?parseFloat(e["supply.lengthInMillimeters"])??void 0:void 0,widthInMillimeters:e["supply.widthInMillimeters"]?parseFloat(e["supply.widthInMillimeters"])??void 0:void 0}:void 0,meta:c}),commerce:a,bundleItems:l,variations:n})})},{isImporting:n,importItems:o}=(0,Q.useCSVImport)({validate:J,process:l});return i(r.IRoleAction.ManageProducts)?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(L.default,{onClick:()=>{a((0,t.jsx)(es,{onImport:async e=>{let s=await o(e);a(null),(0,er.toast)((0,t.jsx)(X.default,{result:s,entityName:"products"}))}}))},disabled:n,variant:"secondary",text:e(n?{id:"importing",defaultMessage:"Importing..."}:{id:"import",defaultMessage:"Import"})})}):null};e.s(["default",0,()=>{let{formatMessage:e}=(0,s.useIntl)(),{shopInfo:u}=(0,I.default)(),{query:c,push:h}=(0,i.useRouter)(),f=parseInt(c?.limit,10)||d.DefaultLimit,p=parseInt(c?.skip,10)||0,m=c?.includeDrafts==="true"||!c?.includeDrafts,g=c.tags?.split(",")||void 0,x=c.sort||"",{hasRole:y}=(0,_.default)(),{queryString:v,slug:b,...w}=c,k=(0,S.convertSortFieldsToQueryFormat)(x),{productsCount:C}=(0,N.default)({queryString:v,includeDrafts:m,tags:g});if(b)return(0,t.jsx)(R.default,{slug:b});let j=1===C?e({id:"products_header",defaultMessage:"1 Product"}):e({id:"products_count_header",defaultMessage:"{count} Products"},{count:(0,t.jsx)(O.default,{value:C??0})}),D=(u?.adminUiConfig?.productTags||[]).map(e=>({value:e,label:e}));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.default,{}),(0,t.jsx)("div",{className:"w-full",children:(0,t.jsxs)(n.default,{title:e({id:"product_page_title",defaultMessage:"{count, plural, one {# Product} other {# Products}}"},{count:C}),headerText:j,addPath:y(r.IRoleAction.ManageProducts)&&"/products/new",addButtonText:e({id:"add_product",defaultMessage:"Add Product"}),children:[(0,t.jsx)(K,{includeDrafts:m,queryString:v,tags:g}),(0,t.jsx)(ei,{})]})}),(0,t.jsxs)("div",{className:"min-w-full overflow-x-auto px-1",children:[(0,t.jsx)(l.default,{children:(0,t.jsx)(o.default,{toggleText:e({id:"include_drafts",defaultMessage:"Include drafts"}),toggleKey:"includeDrafts",active:m})}),(0,t.jsx)(M.default,{onSearchChange:e=>{let{skip:t,...s}=w;e?h({query:(0,S.normalizeQuery)(s,e,"queryString")}):h({query:(0,S.normalizeQuery)(w)})},defaultSearchValue:v,showTagFilter:!0,availableTagOptions:D,children:(0,t.jsx)(T.default,{onlyFull:!0,children:(0,t.jsx)(E,{sortable:!0,queryString:v,includeDrafts:m,limit:f,offset:p,tags:g,sortKeys:k})})})]})]})}],22e3)},85741,(e,t,s)=>{let r="/products";(window.__NEXT_P=window.__NEXT_P||[]).push([r,()=>e.r(22e3)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([r])})},88566,25575,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...r},i){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:i,"aria-labelledby":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))});e.s(["ChevronDownIcon",0,s],88566);let r=t.forwardRef(function({title:e,titleId:s,...r},i){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:i,"aria-labelledby":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{fillRule:"evenodd",d:"M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z",clipRule:"evenodd"}))});e.s(["ChevronUpIcon",0,r],25575)},31004,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...r},i){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:i,"aria-labelledby":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{d:"M7 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM14.5 9a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM1.615 16.428a1.224 1.224 0 0 1-.569-1.175 6.002 6.002 0 0 1 11.908 0c.058.467-.172.92-.57 1.174A9.953 9.953 0 0 1 7 18a9.953 9.953 0 0 1-5.385-1.572ZM14.5 16h-.106c.07-.297.088-.611.048-.933a7.47 7.47 0 0 0-1.588-3.755 4.502 4.502 0 0 1 5.874 2.636.818.818 0 0 1-.36.98A7.465 7.465 0 0 1 14.5 16Z"}))});e.s(["UsersIcon",0,s],31004)},44112,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...r},i){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:i,"aria-labelledby":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))});e.s(["InformationCircleIcon",0,s],44112)},57748,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...r},i){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:i,"aria-labelledby":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))});e.s(["SparklesIcon",0,s],57748)},5270,e=>{"use strict";var t=e.i(91788);let s=(...e)=>e.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim(),r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},i=(0,t.createContext)({}),a=(0,t.forwardRef)(({color:e,size:a,width:l,height:n,strokeWidth:o,absoluteStrokeWidth:d,nonScalingStroke:u,className:c="",children:h,iconNode:f=[],icon:p={node:f,aliases:[],size:24},...m},g)=>{let{size:x=24,strokeWidth:y=2,absoluteStrokeWidth:_=!1,nonScalingStroke:v=!1,color:b="currentColor",className:w=""}=(0,t.useContext)(i)??{},k=!!h||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(m),[C,j,I=[]]=function(e,t={}){return function(e,t={}){let i=t.attributeNames??{},a=e=>i[e]??e,l=e.size??e.width??r.width,n=e.size??e.height??r.height,o=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],d=[...e.name?[`lucide-${e.name}`]:[],...o],u=t.className?.split(" ").filter(Boolean)??[],c=!1===t.includeDefaultClasses?s(...u):s("lucide",...d,...u),h=t.absoluteStrokeWidth?Number(t.strokeWidth??r["stroke-width"])*Number(e.size??e.width??r.width)/Number(t.size??t.width??r.width):t.strokeWidth??r["stroke-width"];return["svg",{...Object.entries(r).reduce((e,[t,s])=>(e[a(t)]=s,e),{}),..."color"in t&&t.color&&{[a("stroke")]:t.color},..."size"in t&&null!=t.size&&{[a("width")]:t.size,[a("height")]:t.size},..."width"in t&&null!=t.width&&{[a("width")]:t.width},..."height"in t&&null!=t.height&&{[a("height")]:t.height},[a("stroke-width")]:h,...c&&{[a("class")]:c},[a("viewBox")]:`0 0 ${l} ${n}`,...!1===t.hasA11yProp?{[a("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[s,r,i]=e,l=t.nonScalingStroke?{[a("vector-effect")]:"non-scaling-stroke",...r}:r;return i?[s,l,i]:[s,l]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(p,{color:e??b,width:l??a??x,height:n??a??x,strokeWidth:o??y,absoluteStrokeWidth:d??_,nonScalingStroke:u??v,className:s(w,c),hasA11yProp:k,attributes:m});return(0,t.createElement)(C,{ref:g,...j},[...I.map(([e,s])=>(0,t.createElement)(e,s)),...Array.isArray(h)?h:[h]])});e.s(["default",0,function(e,s=[],r=[]){let i,l="string"==typeof e?function(e,t,s=[]){if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),size:24,node:t,...s.length>0?{aliases:s}:{}}}(e,s,r):e,n=(0,t.forwardRef)(({className:e,...s},r)=>(0,t.createElement)(a,{ref:r,icon:l,className:e,...s}));return l.name&&(n.displayName=(i=(e=>{let t="",s=!1;for(let r of e){if("-"===r||"_"===r||r<=" "){s=t.length>0;continue}0===t.length?t+=r.toLowerCase():t+=s?r.toUpperCase():r,s=!1}return t})(l.name)).charAt(0).toUpperCase()+i.slice(1)),n}],5270)},72552,(e,t,s)=>{var r;let i;e.e,r=function e(){var t="u">typeof self?self:"u">typeof window?window:void 0!==t?t:{},s=!t.document&&!!t.postMessage,r=t.IS_PAPA_WORKER||!1,i={},a=0,l={};function n(e){return 65279===e.charCodeAt(0)?e.slice(1):e}function o(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=_(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,s){var i=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<i){let t=this._config.newline;t||(a=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,a)),e=[...e.split(t).slice(i)].join(t)}this.isFirstChunk&&b(this._config.beforeFirstChunk)&&void 0!==(a=this._config.beforeFirstChunk(e))&&(e=a),this.isFirstChunk=!1,this._halted=!1;var i=this._partialLine+e,a=(this._partialLine="",this._handle.parse(i,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=a.meta.cursor,this._finished||(this._partialLine=i.substring(e-this._baseIndex),this._baseIndex=e),a&&a.data&&(this._rowCount+=a.data.length),i=this._finished||this._config.preview&&this._rowCount>=this._config.preview,r)t.postMessage({results:a,workerId:l.WORKER_ID,finished:i});else if(b(this._config.chunk)&&!s){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=a=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!i||!b(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),i||a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(e){b(this._config.error)?this._config.error(e):r&&this._config.error&&t.postMessage({workerId:l.WORKER_ID,error:e,finished:!1})}}function d(e){var t;(e=e||{}).chunkSize||(e.chunkSize=l.RemoteChunkSize),o.call(this,e),this._nextChunk=s?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),s||(t.onload=v(this._chunkLoaded,this),t.onerror=v(this._chunkError,this)),t.ontimeout=v(this._chunkTimeout,this),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!s),this._config.downloadTimeout&&!s&&(t.timeout=this._config.downloadTimeout),this._config.downloadRequestHeaders){var e,r,i=this._config.downloadRequestHeaders;for(r in i)t.setRequestHeader(r,i[r])}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)}s&&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 u(e){(e=e||{}).chunkSize||(e.chunkSize=l.LocalChunkSize),o.call(this,e);var t,s,r="u">typeof FileReader;this.stream=function(e){this._input=e,s=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=v(this._chunkLoaded,this),t.onerror=v(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,i=(this._config.chunkSize&&(i=Math.min(this._start+this._config.chunkSize,this._input.size),e=s.call(e,this._start,i)),t.readAsText(e,this._config.encoding));r||this._chunkLoaded({target:{result:i}})},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;o.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,s;if(!this._finished)return t=(e=this._config.chunkSize)?(s=t.substring(0,e),t.substring(e)):(s=t,""),this._finished=!t,this.parseChunk(s)}}function h(e){o.call(this,e=e||{});var t=[],s=!0,r=!1;this.pause=function(){o.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){o.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(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):s=!0},this._streamData=v(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),s&&(s=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=v(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=v(function(){this._streamCleanUp(),r=!0,this._streamData("")},this),this._streamCleanUp=v(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,s,r,i,a=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,n=/^((\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)))$/,o=this,d=0,u=0,c=!1,h=!1,f=[],g={data:[],errors:[],meta:{}};function x(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function y(){if(g&&r&&(w("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+l.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(g.data=g.data.filter(function(e){return!x(e)})),v()){if(g)if(Array.isArray(g.data[0])){for(var t,s=0;v()&&s<g.data.length;s++)g.data[s].forEach(i);g.data.splice(0,1)}else g.data.forEach(i);function i(e){f.push(e)}}function o(t,s){for(var r=e.header?{}:[],i=0;i<t.length;i++){var l=i,o=t[i],o=((t,s)=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping))?"true"===s||"TRUE"===s||"false"!==s&&"FALSE"!==s&&((e=>{if(a.test(e)&&-0x20000000000000<(e=parseFloat(e))&&e<0x20000000000000)return 1})(s)?parseFloat(s):n.test(s)?new Date(s):""===s?null:s):s)(l=e.header?i>=f.length?"__parsed_extra":f[i]:l,o=e.transform?e.transform(o,l):o);"__parsed_extra"===l?(r[l]=r[l]||[],r[l].push(o)):r[l]=o}return e.header&&(i>f.length?w("FieldMismatch","TooManyFields","Too many fields: expected "+f.length+" fields but parsed "+i,u+s):i<f.length&&w("FieldMismatch","TooFewFields","Too few fields: expected "+f.length+" fields but parsed "+i,u+s)),r}g&&(e.header||e.dynamicTyping||e.transform)&&(t=1,!g.data.length||Array.isArray(g.data[0])?(g.data=g.data.map(o),t=g.data.length):g.data=o(g.data,0),e.header&&g.meta&&(g.meta.fields=f),u+=t)}function v(){return e.header&&0===f.length}function w(e,t,s,r){e={type:e,code:t,message:s},void 0!==r&&(e.row=r),g.errors.push(e)}b(e.step)&&(i=e.step,e.step=function(t){g=t,v()?y():(y(),0!==g.data.length&&(d+=t.data.length,e.preview&&d>e.preview?s.abort():(g.data=g.data[0],i(g,o))))}),this.parse=function(i,a,n){var o=e.quoteChar||'"',o=(e.newline||(e.newline=this.guessLineEndings(i,o)),r=!1,e.delimiter?b(e.delimiter)&&(e.delimiter=e.delimiter(i),g.meta.delimiter=e.delimiter):((o=((t,s,r,i,a)=>{var n,o,d,u;a=a||[","," ","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var c=0;c<a.length;c++){for(var h,f=a[c],p=0,g=0,y=0,_=(d=void 0,new m({comments:i,delimiter:f,newline:s,preview:10}).parse(t)),v=0;v<_.data.length;v++)r&&x(_.data[v])?y++:(g+=h=_.data[v].length,void 0===d?d=h:0<h&&(p+=Math.abs(h-d),d=h));0<_.data.length&&(g/=_.data.length-y),1.99<g&&(void 0===o||p<o||p===o&&u<g)&&(o=p,n=f,u=g)}return{successful:!!(e.delimiter=n),bestDelimiter:n}})(i,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=o.bestDelimiter:(r=!0,e.delimiter=l.DefaultDelimiter),g.meta.delimiter=e.delimiter),_(e));return o.header=v(),e.preview&&e.header&&o.preview++,t=i,g=(s=new m(o)).parse(t,a,n),y(),c?{meta:{paused:!0}}:g||{meta:{paused:!1}}},this.paused=function(){return c},this.pause=function(){c=!0,s.abort(),t=b(e.chunk)?"":t.substring(s.getCharIndex())},this.resume=function(){o.streamer._halted?(c=!1,o.streamer.parseChunk(t,!0)):setTimeout(o.resume,3)},this.aborted=function(){return h},this.abort=function(){h=!0,s.abort(),g.meta.aborted=!0,b(e.complete)&&e.complete(g),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576);var t=RegExp(p(t)+"([^]*?)"+p(t),"gm"),s=(e=e.replace(t,"")).split("\r"),t=e.split("\n"),e=1<t.length&&t[0].length<s[0].length;if(1===s.length||e)return"\n";for(var r=0,i=0;i<s.length;i++)"\n"===s[i][0]&&r++;return r>=s.length/2?"\r\n":"\r"}}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function m(e){var t=(e=e||{}).delimiter,s=e.newline,r=e.comments,i=e.step,a=e.preview,o=e.fastMode,d=null,u=!1,c=null==e.quoteChar?'"':e.quoteChar,h=c;if(void 0!==e.escapeChar&&(h=e.escapeChar),("string"!=typeof t||-1<l.BAD_DELIMITERS.indexOf(t))&&(t=","),r===t)throw Error("Comment character same as delimiter");!0===r?r="#":("string"!=typeof r||-1<l.BAD_DELIMITERS.indexOf(r))&&(r=!1),"\n"!==s&&"\r"!==s&&"\r\n"!==s&&(s="\n");var f=0,m=!1;this.parse=function(l,g,x){if("string"!=typeof l)throw Error("Input must be a string");var y=l.length,_=t.length,v=s.length,w=r.length,k=b(i),C=[],j=[],I=[],E=f=0;if(!l)return F();if(o||!1!==o&&-1===l.indexOf(c)){for(var S=l.split(s),M=0;M<S.length;M++){if(I=S[M],f+=I.length,M!==S.length-1)f+=s.length;else if(x)break;if(!r||I.substring(0,w)!==r){if(k){if(C=[],L(I.split(t)),$(),m)return F()}else L(I.split(t));if(a&&a<=M)return C=C.slice(0,a),F(!0)}}return F()}for(var N=l.indexOf(t,f),R=l.indexOf(s,f),T=RegExp(p(h)+p(c),"g"),O=l.indexOf(c,f);;)if(l[f]===c)for(O=f,f++;;){if(-1===(O=l.indexOf(c,O+1)))return x||j.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:C.length,index:f}),P();if(O===y-1)return P(l.substring(f,O).replace(T,c));if(c===h&&l[O+1]===h)O++;else if(c===h||0===O||l[O-1]!==h){-1!==N&&N<O+1&&(N=l.indexOf(t,O+1));var D=A(-1===(R=-1!==R&&R<O+1?l.indexOf(s,O+1):R)?N:Math.min(N,R));if(l.substr(O+1+D,_)===t){I.push(l.substring(f,O).replace(T,c)),l[f=O+1+D+_]!==c&&(O=l.indexOf(c,f)),N=l.indexOf(t,f),R=l.indexOf(s,f);break}if(D=A(R),l.substring(O+1+D,O+1+D+v)===s){if(I.push(l.substring(f,O).replace(T,c)),q(O+1+D+v),N=l.indexOf(t,f),O=l.indexOf(c,f),k&&($(),m))return F();if(a&&C.length>=a)return F(!0);break}j.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:C.length,index:f}),O++}}else if(r&&0===I.length&&l.substring(f,f+w)===r){if(-1===R)return F();f=R+v,R=l.indexOf(s,f),N=l.indexOf(t,f)}else if(-1!==N&&(N<R||-1===R))I.push(l.substring(f,N)),f=N+_,N=l.indexOf(t,f);else{if(-1===R)break;if(I.push(l.substring(f,R)),q(R+v),k&&($(),m))return F();if(a&&C.length>=a)return F(!0)}return P();function L(e){C.push(e),E=f}function A(e){return -1!==e&&(e=l.substring(O+1,e))&&""===e.trim()?e.length:0}function P(e){return x||(void 0===e&&(e=l.substring(f)),I.push(e),f=y,L(I),k&&$()),F()}function q(e){f=e,L(I),I=[],R=l.indexOf(s,f)}function F(r){if(e.header&&!g&&C.length&&!u){var i=C[0],a=Object.create(null),l=new Set(i);let t=!1;for(let s=0;s<i.length;s++){let r=n(i[s]);if(a[r=b(e.transformHeader)?e.transformHeader(r,s):r]){let e,n=a[r];for(;e=r+"_"+n,n++,l.has(e););l.add(e),i[s]=e,a[r]++,t=!0,(d=null===d?{}:d)[e]=r}else a[r]=1,i[s]=r;l.add(r)}t&&console.warn("Duplicate headers found and renamed."),u=!0}return{data:C,errors:j,meta:{delimiter:t,linebreak:s,aborted:m,truncated:!!r,cursor:E+(g||0),renamedHeaders:d}}}function $(){i(F()),C=[],j=[]}},this.abort=function(){m=!0},this.getCharIndex=function(){return f}}function g(e){var t=e.data,s=i[t.workerId],r=!1;if(t.error)s.userError(t.error,t.file);else if(t.results&&t.results.data){var a={abort:function(){r=!0,x(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(b(s.userStep)){for(var l=0;l<t.results.data.length&&(s.userStep({data:t.results.data[l],errors:t.results.errors,meta:t.results.meta},a),!r);l++);delete t.results}else b(s.userChunk)&&(s.userChunk(t.results,a,t.file),delete t.results)}t.finished&&!r&&x(t.workerId,t.results)}function x(e,t){var s=i[e];b(s.userComplete)&&s.userComplete(t),s.terminate(),delete i[e]}function y(){throw Error("Not implemented.")}function _(e){if("object"!=typeof e||null===e)return e;var t,s=Array.isArray(e)?[]:{};for(t in e)s[t]=_(e[t]);return s}function v(e,t){return function(){e.apply(t,arguments)}}function b(e){return"function"==typeof e}return l.parse=function(s,r){var o,f,p,m=(r=r||{}).dynamicTyping||!1;if(b(m)&&(r.dynamicTypingFunction=m,m={}),r.dynamicTyping=m,r.transform=!!b(r.transform)&&r.transform,void 0!==r.downloadTimeout){var m=parseInt(r.downloadTimeout);if(isNaN(m))throw Error("Config downloadTimeout value ("+r.downloadTimeout+") not parsable by parseInt(val).");r.downloadTimeout=m}if(!r.worker||!l.WORKERS_SUPPORTED)return m=null,l.NODE_STREAM_INPUT,"string"==typeof s?(s=n(s),m=new(r.download?d:c)(r)):!0===s.readable&&b(s.read)&&b(s.on)?m=new h(r):(t.File&&s instanceof File||s instanceof Object)&&(m=new u(r)),m.stream(s);(m=!!l.WORKERS_SUPPORTED&&(f=t.URL||t.webkitURL||null,p=e.toString(),o=l.BLOB_URL||(l.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; ","(",p,")();"],{type:"text/javascript"}))),(o=new t.Worker(o)).onmessage=g,o.id=a++,i[o.id]=o)).userStep=r.step,m.userChunk=r.chunk,m.userComplete=r.complete,m.userError=r.error,r.step=b(r.step),r.chunk=b(r.chunk),r.complete=b(r.complete),r.error=b(r.error),delete r.worker,m.postMessage({input:s,config:r,workerId:m.id})},l.unparse=function(e,t){var s=!1,r=!0,i=",",a="\r\n",n='"',o=n+n,d=!1,u=null,c=!1,h=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||l.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(i=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(s=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(d=t.skipEmptyLines),"string"==typeof t.newline&&(a=t.newline),"string"==typeof t.quoteChar&&(o=(n=t.quoteChar)+n),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(o=t.escapeChar+n),t.escapeFormulae instanceof RegExp?c=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(c=/^[=+\-@\t\r].*$/)}})(),RegExp(p(n),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,d);if("object"==typeof e[0])return f(u||Object.keys(e[0]),e,d)}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||u),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||[],d);throw Error("Unable to serialize unrecognized input");function f(e,t,s){var l="",n=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),o=!Array.isArray(t[0]);if(n&&r){for(var d=0;d<e.length;d++)0<d&&(l+=i),l+=m(e[d],d);0<t.length&&(l+=a)}for(var u=0;u<t.length;u++){var c=(n?e:t[u]).length,h=!1,f=n?0===Object.keys(t[u]).length:0===t[u].length;if(s&&!n&&(h="greedy"===s?""===t[u].join("").trim():1===t[u].length&&0===t[u][0].length),"greedy"===s&&n){for(var p=[],g=0;g<c;g++){var x=o?e[g]:g;p.push(t[u][x])}h=""===p.join("").trim()}if(!h){for(var y=0;y<c;y++){0<y&&!f&&(l+=i);var _=n&&o?e[y]:y;l+=m(t[u][_],y)}u<t.length-1&&(!s||0<c&&!f)&&(l+=a)}}return l}function m(e,t){var r,a,d;return null==e?"":e.constructor===Date?isNaN(e.getTime())?"":e.toISOString():(d=!1,c&&"string"==typeof e&&c.test(e)&&(e="'"+e,d=!0),a=(r=e.toString()).replace(h,o),(d=d||!0===s||"function"==typeof s&&s(e,t)||Array.isArray(s)&&s[t]||((e,t)=>{for(var s=0;s<t.length;s++)if(-1<e.indexOf(t[s]))return!0;return!1})(a,l.BAD_DELIMITERS)||-1<a.indexOf(i)||-1<r.indexOf(n)||" "===a.charAt(0)||" "===a.charAt(a.length-1))?n+a+n:a)}},l.RECORD_SEP="\x1e",l.UNIT_SEP="\x1f",l.BYTE_ORDER_MARK="\uFEFF",l.BAD_DELIMITERS=["\r","\n",'"',l.BYTE_ORDER_MARK],l.WORKERS_SUPPORTED=!s&&!!t.Worker,l.NODE_STREAM_INPUT=1,l.LocalChunkSize=0xa00000,l.RemoteChunkSize=5242880,l.DefaultDelimiter=",",l.Parser=m,l.ParserHandle=f,l.NetworkStreamer=d,l.FileStreamer=u,l.StringStreamer=c,l.ReadableStreamStreamer=h,r&&(t.onmessage=function(e){e=e.data,void 0===l.WORKER_ID&&e&&(l.WORKER_ID=e.workerId),"string"==typeof e.input?t.postMessage({workerId:l.WORKER_ID,results:l.parse(e.input,e.config),finished:!0}):(t.File&&e.input instanceof File||e.input instanceof Object)&&(e=l.parse(e.input,e.config))&&t.postMessage({workerId:l.WORKER_ID,results:e,finished:!0})}),(d.prototype=Object.create(o.prototype)).constructor=d,(u.prototype=Object.create(o.prototype)).constructor=u,(c.prototype=Object.create(c.prototype)).constructor=c,(h.prototype=Object.create(o.prototype)).constructor=h,l},"function"==typeof define&&define.amd?void 0!==(i=r())&&e.v(i):t.exports=r()}]);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
__turbopack_load_page_chunks__("/tokens/TokenDetailPage", [
|
|
2
|
-
"static/chunks/02cdoh48sex9m.js",
|
|
3
|
-
"static/chunks/38pz7fmyf6ay0.js",
|
|
4
|
-
"static/chunks/0ht2wu-61vq9v.js",
|
|
5
|
-
"static/chunks/2w5y5xf0nriwx.js",
|
|
6
|
-
"static/chunks/201rx84kyo8ag.js",
|
|
7
|
-
"static/chunks/252jebodi67kg.js",
|
|
8
|
-
"static/chunks/3sktz8258so64.js",
|
|
9
|
-
"static/chunks/06tejx8u1_0kg.js",
|
|
10
|
-
"static/chunks/2hm0mbq0vtqmw.js",
|
|
11
|
-
"static/chunks/1vx8_u7-f7q8u.js",
|
|
12
|
-
"static/chunks/1zzpf1xbmchcj.js",
|
|
13
|
-
"static/chunks/turbopack-0pmjdjcdx7cqp.js"
|
|
14
|
-
])
|