@unchainedshop/admin-ui 4.8.30 → 4.8.32
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/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/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/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/0_bvgo8ev4gs7.js +7 -0
- package/out/_next/static/chunks/0a5nr3-_q7xx1.js +100 -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/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/11go520d1hcm5.js +1 -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/182l1mlbf0glb.js +1 -0
- package/out/_next/static/chunks/18xyj4i_i5lyn.js +6 -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/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/1wnuiwsbi70eq.js +116 -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-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/2wmsx4gjbgvfv.js +18 -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/41p3ng89i5lem.js +5 -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/_next/static/jOx5PlckLwWIJ5yrvePdU/_buildManifest.js +258 -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 +36 -36
- package/dist/chunk-3L6EZQ6P.js +0 -135
- package/dist/chunk-54DKBWXV.js +0 -33
- package/dist/chunk-5WPFHQZN.js +0 -388
- package/dist/chunk-6UGLNLJG.js +0 -44
- package/dist/chunk-BMDNY67T.js +0 -22547
- package/dist/chunk-BOMSMJF2.js +0 -77
- package/dist/chunk-COV7BREX.js +0 -50
- package/dist/chunk-E77YIMGR.js +0 -2083
- package/dist/chunk-EJDZRZSZ.js +0 -59
- package/dist/chunk-ELPURWDC.js +0 -75
- package/dist/chunk-F6LBNV3H.js +0 -9
- package/dist/chunk-FDHXLNZQ.js +0 -44
- package/dist/chunk-GY2DRQGW.js +0 -166
- package/dist/chunk-HERLM47Z.js +0 -309
- package/dist/chunk-HJKRGBDG.js +0 -694
- package/dist/chunk-I64TXIE7.js +0 -618
- package/dist/chunk-IAQPLRXZ.js +0 -16
- package/dist/chunk-ICJH36K4.js +0 -326
- package/dist/chunk-ILYPJE4N.js +0 -57
- package/dist/chunk-IWKDBADX.js +0 -73
- package/dist/chunk-IXBMHOB5.js +0 -13
- package/dist/chunk-IYKPRAWC.js +0 -26
- package/dist/chunk-J23QSWDL.js +0 -8
- package/dist/chunk-KH5MK6ZW.js +0 -18
- package/dist/chunk-KRIRF7F6.js +0 -76
- package/dist/chunk-NT7RB7AK.js +0 -70
- package/dist/chunk-OKGJ6HDE.js +0 -26
- package/dist/chunk-OTXM2UCD.js +0 -19
- package/dist/chunk-PJLYVMUM.js +0 -3308
- package/dist/chunk-PUI5BIKO.js +0 -41
- package/dist/chunk-Q6S3LBUF.js +0 -180
- package/dist/chunk-QHR23GVH.js +0 -1099
- package/dist/chunk-QWQ3WJJN.js +0 -1
- package/dist/chunk-RAQV2GYF.js +0 -70
- package/dist/chunk-VBO377AY.js +0 -14
- package/dist/chunk-VYEXPG3M.js +0 -107
- package/dist/chunk-WPLOTFGW.js +0 -36
- package/dist/chunk-YO6PT7KD.js +0 -13
- package/dist/chunk-ZUOVKRKC.js +0 -957
- package/dist/components/ui/Accordion/Accordion.d.ts +0 -11
- package/dist/components/ui/Accordion/Accordion.d.ts.map +0 -1
- package/dist/components/ui/Accordion/AccordionHeader.d.ts +0 -6
- package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +0 -1
- package/dist/components/ui/Accordion/AccordionItem.d.ts +0 -11
- package/dist/components/ui/Accordion/AccordionItem.d.ts.map +0 -1
- package/dist/components/ui/ActiveInActive.d.ts +0 -10
- package/dist/components/ui/ActiveInActive.d.ts.map +0 -1
- package/dist/components/ui/AnimatedCounter.d.ts +0 -7
- package/dist/components/ui/AnimatedCounter.d.ts.map +0 -1
- package/dist/components/ui/Badge.d.ts +0 -10
- package/dist/components/ui/Badge.d.ts.map +0 -1
- package/dist/components/ui/BreadCrumbs.d.ts +0 -7
- package/dist/components/ui/BreadCrumbs.d.ts.map +0 -1
- package/dist/components/ui/Button.d.ts +0 -36
- package/dist/components/ui/Button.d.ts.map +0 -1
- package/dist/components/ui/CopyableText.d.ts +0 -5
- package/dist/components/ui/CopyableText.d.ts.map +0 -1
- package/dist/components/ui/DateInput.d.ts +0 -15
- package/dist/components/ui/DateInput.d.ts.map +0 -1
- package/dist/components/ui/DateRangeFilterInput.d.ts +0 -4
- package/dist/components/ui/DateRangeFilterInput.d.ts.map +0 -1
- package/dist/components/ui/DetailHeader.d.ts +0 -6
- package/dist/components/ui/DetailHeader.d.ts.map +0 -1
- package/dist/components/ui/DraggableIcon.d.ts +0 -3
- package/dist/components/ui/DraggableIcon.d.ts.map +0 -1
- package/dist/components/ui/ErrorBoundary.d.ts +0 -18
- package/dist/components/ui/ErrorBoundary.d.ts.map +0 -1
- package/dist/components/ui/ErrorFallback.d.ts +0 -6
- package/dist/components/ui/ErrorFallback.d.ts.map +0 -1
- package/dist/components/ui/HelpText.d.ts +0 -11
- package/dist/components/ui/HelpText.d.ts.map +0 -1
- package/dist/components/ui/ImageWithFallback.d.ts +0 -7
- package/dist/components/ui/ImageWithFallback.d.ts.map +0 -1
- package/dist/components/ui/InfoTextBanner.d.ts +0 -6
- package/dist/components/ui/InfoTextBanner.d.ts.map +0 -1
- package/dist/components/ui/JSONView.d.ts +0 -6
- package/dist/components/ui/JSONView.d.ts.map +0 -1
- package/dist/components/ui/ListHeader.d.ts +0 -6
- package/dist/components/ui/ListHeader.d.ts.map +0 -1
- package/dist/components/ui/Loading.d.ts +0 -3
- package/dist/components/ui/Loading.d.ts.map +0 -1
- package/dist/components/ui/NoData.d.ts +0 -7
- package/dist/components/ui/NoData.d.ts.map +0 -1
- package/dist/components/ui/NoImage.d.ts +0 -7
- package/dist/components/ui/NoImage.d.ts.map +0 -1
- package/dist/components/ui/NoImageSvg.d.ts +0 -8
- package/dist/components/ui/NoImageSvg.d.ts.map +0 -1
- package/dist/components/ui/PageHeader.d.ts +0 -11
- package/dist/components/ui/PageHeader.d.ts.map +0 -1
- package/dist/components/ui/Pagination.d.ts +0 -8
- package/dist/components/ui/Pagination.d.ts.map +0 -1
- package/dist/components/ui/Portal/Portal.d.ts +0 -16
- package/dist/components/ui/Portal/Portal.d.ts.map +0 -1
- package/dist/components/ui/Portal/Portal.types.d.ts +0 -16
- package/dist/components/ui/Portal/Portal.types.d.ts.map +0 -1
- package/dist/components/ui/SaveAndCancelButtons.d.ts +0 -10
- package/dist/components/ui/SaveAndCancelButtons.d.ts.map +0 -1
- package/dist/components/ui/SearchField.d.ts +0 -7
- package/dist/components/ui/SearchField.d.ts.map +0 -1
- package/dist/components/ui/Tab.d.ts +0 -18
- package/dist/components/ui/Tab.d.ts.map +0 -1
- package/dist/components/ui/Tag/TagInput.d.ts +0 -19
- package/dist/components/ui/Tag/TagInput.d.ts.map +0 -1
- package/dist/components/ui/Tag/TagList.d.ts +0 -8
- package/dist/components/ui/Tag/TagList.d.ts.map +0 -1
- package/dist/components/ui/Tag/TagListForm.d.ts +0 -8
- package/dist/components/ui/Tag/TagListForm.d.ts.map +0 -1
- package/dist/components/ui/Toggle.d.ts +0 -11
- package/dist/components/ui/Toggle.d.ts.map +0 -1
- package/dist/components/ui/ToolTip.d.ts +0 -7
- package/dist/components/ui/ToolTip.d.ts.map +0 -1
- package/dist/components/ui/card.d.ts +0 -9
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/chart.d.ts +0 -42
- package/dist/components/ui/chart.d.ts.map +0 -1
- package/dist/components/ui/form/CheckboxField.d.ts +0 -4
- package/dist/components/ui/form/CheckboxField.d.ts.map +0 -1
- package/dist/components/ui/form/ChoicesField.d.ts +0 -12
- package/dist/components/ui/form/ChoicesField.d.ts.map +0 -1
- package/dist/components/ui/form/Combobox.d.ts +0 -20
- package/dist/components/ui/form/Combobox.d.ts.map +0 -1
- package/dist/components/ui/form/DatePickerField.d.ts +0 -4
- package/dist/components/ui/form/DatePickerField.d.ts.map +0 -1
- package/dist/components/ui/form/EmailField.d.ts +0 -7
- package/dist/components/ui/form/EmailField.d.ts.map +0 -1
- package/dist/components/ui/form/FieldWithHelp.d.ts +0 -10
- package/dist/components/ui/form/FieldWithHelp.d.ts.map +0 -1
- package/dist/components/ui/form/FieldWrapper.d.ts +0 -8
- package/dist/components/ui/form/FieldWrapper.d.ts.map +0 -1
- package/dist/components/ui/form/FormErrors.d.ts +0 -6
- package/dist/components/ui/form/FormErrors.d.ts.map +0 -1
- package/dist/components/ui/form/JSONAreaField.d.ts +0 -7
- package/dist/components/ui/form/JSONAreaField.d.ts.map +0 -1
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts +0 -8
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +0 -1
- package/dist/components/ui/form/PasswordField.d.ts +0 -3
- package/dist/components/ui/form/PasswordField.d.ts.map +0 -1
- package/dist/components/ui/form/SelectField.d.ts +0 -11
- package/dist/components/ui/form/SelectField.d.ts.map +0 -1
- package/dist/components/ui/form/SubmitButton.d.ts +0 -9
- package/dist/components/ui/form/SubmitButton.d.ts.map +0 -1
- package/dist/components/ui/form/TagInputField.d.ts +0 -7
- package/dist/components/ui/form/TagInputField.d.ts.map +0 -1
- package/dist/components/ui/form/TextAreaField.d.ts +0 -8
- package/dist/components/ui/form/TextAreaField.d.ts.map +0 -1
- package/dist/components/ui/form/TextField.d.ts +0 -10
- package/dist/components/ui/form/TextField.d.ts.map +0 -1
- package/dist/components/ui/form/index.d.ts +0 -18
- package/dist/components/ui/form/index.d.ts.map +0 -1
- package/dist/components/ui/icons.d.ts +0 -4
- package/dist/components/ui/icons.d.ts.map +0 -1
- package/dist/components/ui/index.d.ts +0 -46
- package/dist/components/ui/index.d.ts.map +0 -1
- package/dist/form.js +0 -2617
- package/dist/gql/operation-types.d.ts +0 -13239
- package/dist/gql/operation-types.d.ts.map +0 -1
- package/dist/gql/schema-types.d.ts +0 -3876
- package/dist/gql/schema-types.d.ts.map +0 -1
- package/dist/gql/types.d.ts +0 -3
- package/dist/gql/types.d.ts.map +0 -1
- package/dist/hooks.js +0 -49
- package/dist/lib/utils.d.ts +0 -3
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/modal.js +0 -51
- package/dist/modules/Auth/AuthContext.d.ts +0 -9
- package/dist/modules/Auth/AuthContext.d.ts.map +0 -1
- package/dist/modules/Auth/useAuth.d.ts +0 -6
- package/dist/modules/Auth/useAuth.d.ts.map +0 -1
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts +0 -8
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +0 -1
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +0 -7
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +0 -1
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +0 -3
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +0 -1
- package/dist/modules/accounts/fragment/UserFragment.d.ts +0 -3
- package/dist/modules/accounts/fragment/UserFragment.d.ts.map +0 -1
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts +0 -10
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +0 -1
- package/dist/modules/accounts/hooks/useUsersCount.d.ts +0 -8
- package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +0 -1
- package/dist/modules/accounts.js +0 -1349
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +0 -8
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +0 -1
- package/dist/modules/assortment.js +0 -1205
- package/dist/modules/common/components/AppContext.d.ts +0 -18
- package/dist/modules/common/components/AppContext.d.ts.map +0 -1
- package/dist/modules/common/components/FormWrapper.d.ts +0 -8
- package/dist/modules/common/components/FormWrapper.d.ts.map +0 -1
- package/dist/modules/common/components/LocaleWrapper.d.ts +0 -7
- package/dist/modules/common/components/LocaleWrapper.d.ts.map +0 -1
- package/dist/modules/common/components/MediaAvatar.d.ts +0 -6
- package/dist/modules/common/components/MediaAvatar.d.ts.map +0 -1
- package/dist/modules/common/components/SelectOptions.d.ts +0 -17
- package/dist/modules/common/components/SelectOptions.d.ts.map +0 -1
- package/dist/modules/common/components/Table.d.ts +0 -25
- package/dist/modules/common/components/Table.d.ts.map +0 -1
- package/dist/modules/common/components/TableCell.d.ts +0 -12
- package/dist/modules/common/components/TableCell.d.ts.map +0 -1
- package/dist/modules/common/components/TableRow.d.ts +0 -10
- package/dist/modules/common/components/TableRow.d.ts.map +0 -1
- package/dist/modules/common/components/ThemeWrapper.d.ts +0 -10
- package/dist/modules/common/components/ThemeWrapper.d.ts.map +0 -1
- package/dist/modules/common/data/iso-codes.d.ts +0 -4
- package/dist/modules/common/data/iso-codes.d.ts.map +0 -1
- package/dist/modules/common/data/miscellaneous.d.ts +0 -52
- package/dist/modules/common/data/miscellaneous.d.ts.map +0 -1
- package/dist/modules/common/fragments/AddressFragment.d.ts +0 -3
- package/dist/modules/common/fragments/AddressFragment.d.ts.map +0 -1
- package/dist/modules/common/hooks/useApp.d.ts +0 -11
- package/dist/modules/common/hooks/useApp.d.ts.map +0 -1
- package/dist/modules/common/hooks/useBulkResultHandler.d.ts +0 -8
- package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +0 -1
- package/dist/modules/common/hooks/useBulkSelection.d.ts +0 -12
- package/dist/modules/common/hooks/useBulkSelection.d.ts.map +0 -1
- package/dist/modules/common/hooks/useCSVExport.d.ts +0 -10
- package/dist/modules/common/hooks/useCSVExport.d.ts.map +0 -1
- package/dist/modules/common/hooks/useCSVImport.d.ts +0 -18
- package/dist/modules/common/hooks/useCSVImport.d.ts.map +0 -1
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +0 -5
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +0 -1
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +0 -10
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +0 -1
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts +0 -23
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +0 -1
- package/dist/modules/common/hooks/useLocalStorage.d.ts +0 -3
- package/dist/modules/common/hooks/useLocalStorage.d.ts.map +0 -1
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts +0 -25
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +0 -1
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +0 -16
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +0 -1
- package/dist/modules/common/hooks/useOutsideClick.d.ts +0 -3
- package/dist/modules/common/hooks/useOutsideClick.d.ts.map +0 -1
- package/dist/modules/common/hooks/usePortal.d.ts +0 -20
- package/dist/modules/common/hooks/usePortal.d.ts.map +0 -1
- package/dist/modules/common/hooks/useScrollRestoration.d.ts +0 -8
- package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +0 -1
- package/dist/modules/common/hooks/useShopConfiguration.d.ts +0 -8
- package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +0 -1
- package/dist/modules/common/hooks/useShopInfo.d.ts +0 -41
- package/dist/modules/common/hooks/useShopInfo.d.ts.map +0 -1
- package/dist/modules/common/hooks/useStatusTypes.d.ts +0 -10
- package/dist/modules/common/hooks/useStatusTypes.d.ts.map +0 -1
- package/dist/modules/common/hooks/useSystemRoles.d.ts +0 -7
- package/dist/modules/common/hooks/useSystemRoles.d.ts.map +0 -1
- package/dist/modules/common/hooks/useTheme.d.ts +0 -7
- package/dist/modules/common/hooks/useTheme.d.ts.map +0 -1
- package/dist/modules/common/utils/deBounce.d.ts +0 -3
- package/dist/modules/common/utils/deBounce.d.ts.map +0 -1
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts +0 -7
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +0 -1
- package/dist/modules/common/utils/formatUsername.d.ts +0 -3
- package/dist/modules/common/utils/formatUsername.d.ts.map +0 -1
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +0 -30
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +0 -1
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts +0 -4
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +0 -1
- package/dist/modules/common/utils/sharedContext.d.ts +0 -9
- package/dist/modules/common/utils/sharedContext.d.ts.map +0 -1
- package/dist/modules/common/utils/useFormatDateTime.d.ts +0 -16
- package/dist/modules/common/utils/useFormatDateTime.d.ts.map +0 -1
- package/dist/modules/common/utils/utils.d.ts +0 -21
- package/dist/modules/common/utils/utils.d.ts.map +0 -1
- package/dist/modules/country/fragments/CountryFragment.d.ts +0 -3
- package/dist/modules/country/fragments/CountryFragment.d.ts.map +0 -1
- package/dist/modules/country/hooks/useCountries.d.ts +0 -22
- package/dist/modules/country/hooks/useCountries.d.ts.map +0 -1
- package/dist/modules/country.js +0 -108
- package/dist/modules/currency.js +0 -119
- package/dist/modules/delivery-provider.js +0 -269
- package/dist/modules/enrollment.js +0 -431
- package/dist/modules/event.js +0 -123
- package/dist/modules/filter.js +0 -497
- package/dist/modules/forms/components/Form.d.ts +0 -8
- package/dist/modules/forms/components/Form.d.ts.map +0 -1
- package/dist/modules/forms/hooks/useField.d.ts +0 -35
- package/dist/modules/forms/hooks/useField.d.ts.map +0 -1
- package/dist/modules/forms/hooks/useForm.d.ts +0 -44
- package/dist/modules/forms/hooks/useForm.d.ts.map +0 -1
- package/dist/modules/forms/hooks/useFormContext.d.ts +0 -3
- package/dist/modules/forms/hooks/useFormContext.d.ts.map +0 -1
- package/dist/modules/forms/lib/FormContext.d.ts +0 -13
- package/dist/modules/forms/lib/FormContext.d.ts.map +0 -1
- package/dist/modules/forms/lib/clean.d.ts +0 -3
- package/dist/modules/forms/lib/clean.d.ts.map +0 -1
- package/dist/modules/forms/lib/validators.d.ts +0 -20
- package/dist/modules/forms/lib/validators.d.ts.map +0 -1
- package/dist/modules/language/fragments/LanguageFragment.d.ts +0 -3
- package/dist/modules/language/fragments/LanguageFragment.d.ts.map +0 -1
- package/dist/modules/language/hooks/useLanguages.d.ts +0 -19
- package/dist/modules/language/hooks/useLanguages.d.ts.map +0 -1
- package/dist/modules/language.js +0 -106
- package/dist/modules/modal/components/AlertMessage.d.ts +0 -9
- package/dist/modules/modal/components/AlertMessage.d.ts.map +0 -1
- package/dist/modules/modal/components/DangerMessage.d.ts +0 -13
- package/dist/modules/modal/components/DangerMessage.d.ts.map +0 -1
- package/dist/modules/modal/components/ImportResultMessage.d.ts +0 -14
- package/dist/modules/modal/components/ImportResultMessage.d.ts.map +0 -1
- package/dist/modules/modal/components/Modal.d.ts +0 -10
- package/dist/modules/modal/components/Modal.d.ts.map +0 -1
- package/dist/modules/modal/components/ModalWrapper.d.ts +0 -6
- package/dist/modules/modal/components/ModalWrapper.d.ts.map +0 -1
- package/dist/modules/modal/hooks/useModal.d.ts +0 -7
- package/dist/modules/modal/hooks/useModal.d.ts.map +0 -1
- package/dist/modules/modal/utils/ModalContext.d.ts +0 -9
- package/dist/modules/modal/utils/ModalContext.d.ts.map +0 -1
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts +0 -3
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +0 -1
- package/dist/modules/order/fragments/OrderFragment.d.ts +0 -3
- package/dist/modules/order/fragments/OrderFragment.d.ts.map +0 -1
- package/dist/modules/order/hooks/useOrders.d.ts +0 -46
- package/dist/modules/order/hooks/useOrders.d.ts.map +0 -1
- package/dist/modules/order.js +0 -569
- package/dist/modules/payment-providers.js +0 -206
- package/dist/modules/product/hooks/useProductsCount.d.ts +0 -8
- package/dist/modules/product/hooks/useProductsCount.d.ts.map +0 -1
- package/dist/modules/product-review.js +0 -270
- package/dist/modules/product.js +0 -6914
- package/dist/modules/quotation.js +0 -324
- package/dist/modules/token.js +0 -143
- package/dist/modules/warehousing-providers.js +0 -206
- package/dist/modules/work/fragments/WorkFragment.d.ts +0 -3
- package/dist/modules/work/fragments/WorkFragment.d.ts.map +0 -1
- package/dist/modules/work/hooks/useAddWork.d.ts +0 -6
- package/dist/modules/work/hooks/useAddWork.d.ts.map +0 -1
- package/dist/modules/work/hooks/useWork.d.ts +0 -32
- package/dist/modules/work/hooks/useWork.d.ts.map +0 -1
- package/dist/modules/work.js +0 -232
- package/dist/plugins.js +0 -13
- package/dist/providers.js +0 -9
- package/dist/sdk/hooks.d.ts +0 -12
- package/dist/sdk/hooks.d.ts.map +0 -1
- package/dist/sdk/modal.d.ts +0 -7
- package/dist/sdk/modal.d.ts.map +0 -1
- package/dist/sdk/plugins.d.ts +0 -78
- package/dist/sdk/plugins.d.ts.map +0 -1
- package/dist/sdk/providers.d.ts +0 -5
- package/dist/sdk/providers.d.ts.map +0 -1
- package/dist/sdk/shims/admin-ui-plugins.d.ts +0 -3
- package/dist/sdk/shims/admin-ui-plugins.d.ts.map +0 -1
- package/dist/sdk/shims/apollo-client-react.d.ts +0 -3
- package/dist/sdk/shims/apollo-client-react.d.ts.map +0 -1
- package/dist/sdk/shims/apollo-client.d.ts +0 -3
- package/dist/sdk/shims/apollo-client.d.ts.map +0 -1
- package/dist/sdk/shims/host.d.ts +0 -17
- package/dist/sdk/shims/host.d.ts.map +0 -1
- package/dist/sdk/shims/next-head.d.ts +0 -3
- package/dist/sdk/shims/next-head.d.ts.map +0 -1
- package/dist/sdk/shims/next-image.d.ts +0 -3
- package/dist/sdk/shims/next-image.d.ts.map +0 -1
- package/dist/sdk/shims/next-link.d.ts +0 -3
- package/dist/sdk/shims/next-link.d.ts.map +0 -1
- package/dist/sdk/shims/next-router.d.ts +0 -3
- package/dist/sdk/shims/next-router.d.ts.map +0 -1
- package/dist/sdk/shims/react-dom-client.d.ts +0 -3
- package/dist/sdk/shims/react-dom-client.d.ts.map +0 -1
- package/dist/sdk/shims/react-dom.d.ts +0 -3
- package/dist/sdk/shims/react-dom.d.ts.map +0 -1
- package/dist/sdk/shims/react-hook-form.d.ts +0 -3
- package/dist/sdk/shims/react-hook-form.d.ts.map +0 -1
- package/dist/sdk/shims/react-intl.d.ts +0 -3
- package/dist/sdk/shims/react-intl.d.ts.map +0 -1
- package/dist/sdk/shims/react-jsx-runtime.d.ts +0 -3
- package/dist/sdk/shims/react-jsx-runtime.d.ts.map +0 -1
- package/dist/sdk/shims/react-toastify.d.ts +0 -3
- package/dist/sdk/shims/react-toastify.d.ts.map +0 -1
- package/dist/sdk/shims/react.d.ts +0 -3
- package/dist/sdk/shims/react.d.ts.map +0 -1
- package/dist/sdk/theme.d.ts +0 -26
- package/dist/sdk/theme.d.ts.map +0 -1
- package/dist/shims/admin-ui-plugins.js +0 -9
- package/dist/shims/apollo-client-react.js +0 -25
- package/dist/shims/apollo-client.js +0 -55
- package/dist/shims/next-head.js +0 -9
- package/dist/shims/next-image.js +0 -9
- package/dist/shims/next-link.js +0 -9
- package/dist/shims/next-router.js +0 -13
- package/dist/shims/react-dom-client.js +0 -11
- package/dist/shims/react-dom.js +0 -22
- package/dist/shims/react-hook-form.js +0 -25
- package/dist/shims/react-intl.js +0 -37
- package/dist/shims/react-jsx-runtime.js +0 -11
- package/dist/shims/react-toastify.js +0 -16
- package/dist/shims/react.js +0 -52
- package/dist/theme.js +0 -34
- package/dist/ui.js +0 -19731
- 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/manifest.json +0 -48
- /package/out/_next/static/{F8ReqaxPvLqFJ2DaPfMdn → jOx5PlckLwWIJ5yrvePdU}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{F8ReqaxPvLqFJ2DaPfMdn → jOx5PlckLwWIJ5yrvePdU}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[36494,e=>{var r=e.i(59080);let i=r.f`
|
|
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(["f",0,i])},93333,e=>{var r=e.i(59080),i=e.i(32171);let d=r.f`
|
|
13
|
+
query DeliveryProvidersType {
|
|
14
|
+
deliveryProviderType: __type(name: "DeliveryProviderType") {
|
|
15
|
+
options: enumValues {
|
|
16
|
+
value: name
|
|
17
|
+
label: description
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`;e.s(["f",0,()=>{let{data:e,loading:r,error:s}=(0,i.f)(d);return{deliveryProviderType:e?.deliveryProviderType?.options||[],loading:r,error:s}}])},35997,e=>{var r=e.i(59080),i=e.i(32171),d=e.i(36494);let s=r.f`
|
|
22
|
+
query DeliveryProviders($type: DeliveryProviderType) {
|
|
23
|
+
deliveryProviders(type: $type) {
|
|
24
|
+
_id
|
|
25
|
+
created
|
|
26
|
+
updated
|
|
27
|
+
deleted
|
|
28
|
+
type
|
|
29
|
+
isActive
|
|
30
|
+
configuration
|
|
31
|
+
interface {
|
|
32
|
+
_id
|
|
33
|
+
label
|
|
34
|
+
version
|
|
35
|
+
}
|
|
36
|
+
configurationError
|
|
37
|
+
... on DeliveryProviderPickUp {
|
|
38
|
+
pickUpLocations {
|
|
39
|
+
_id
|
|
40
|
+
name
|
|
41
|
+
address {
|
|
42
|
+
...AddressFragment
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
deliveryProvidersCount(type: $type)
|
|
48
|
+
}
|
|
49
|
+
${d.f}
|
|
50
|
+
`;e.s(["f",0,({type:e=null}={})=>{let{data:r,loading:d,error:t}=(0,i.f)(s,{variables:{type:e}});return{deliveryProviders:r?.deliveryProviders||[],loading:d,error:t,deliveryProvidersCount:r?.deliveryProvidersCount||0}}])},7125,43007,e=>{var r=e.i(91398),i=e.i(3828),d=e.i(66773),s=e.i(69322),t=e.i(28401),a=e.i(61494),o=e.i(17644),l=e.i(12197),v=e.i(15971),n=e.i(6607),y=e.i(59080),c=e.i(76204);let u=y.f`
|
|
51
|
+
mutation RemoveDeliveryProvider($deliveryProviderId: ID!) {
|
|
52
|
+
removeDeliveryProvider(deliveryProviderId: $deliveryProviderId) {
|
|
53
|
+
_id
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`,p=()=>{let[e]=(0,c.f)(u);return{removeDeliveryProvider:async({deliveryProviderId:r})=>e({variables:{deliveryProviderId:r},refetchQueries:["DeliveryProviders","ShopStatus"]})}};e.s(["f",0,p],43007);var f=e.i(36494);let P=y.f`
|
|
57
|
+
mutation UpdateDeliveryProvider(
|
|
58
|
+
$deliveryProvider: UpdateProviderInput!
|
|
59
|
+
$deliveryProviderId: ID!
|
|
60
|
+
) {
|
|
61
|
+
updateDeliveryProvider(
|
|
62
|
+
deliveryProvider: $deliveryProvider
|
|
63
|
+
deliveryProviderId: $deliveryProviderId
|
|
64
|
+
) {
|
|
65
|
+
_id
|
|
66
|
+
created
|
|
67
|
+
updated
|
|
68
|
+
deleted
|
|
69
|
+
type
|
|
70
|
+
isActive
|
|
71
|
+
configuration
|
|
72
|
+
interface {
|
|
73
|
+
_id
|
|
74
|
+
label
|
|
75
|
+
version
|
|
76
|
+
}
|
|
77
|
+
configurationError
|
|
78
|
+
... on DeliveryProviderPickUp {
|
|
79
|
+
pickUpLocations {
|
|
80
|
+
_id
|
|
81
|
+
name
|
|
82
|
+
address {
|
|
83
|
+
...AddressFragment
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
${f.f}
|
|
90
|
+
`;var m=e.i(32171),_=e.i(70693),g=e.i(33457),h=e.i(81359),x=e.i(83147),D=e.i(58971);e.s(["default",0,({deliveryProviderId:e})=>{let{formatMessage:u}=(0,s.S)(),{push:j,replace:C}=(0,i.useRouter)(),{setModal:k}=(0,n.f)(),{hasRole:T}=(0,D.f)(),{removeDeliveryProvider:w}=p(),{updateDeliveryProvider:b}=(()=>{let[e]=(0,c.f)(P);return{updateDeliveryProvider:async({deliveryProvider:{configuration:r},deliveryProviderId:i})=>e({variables:{deliveryProvider:{configuration:r},deliveryProviderId:i}})}})(),{deliveryProvider:I,loading:M}=(({deliveryProviderId:e=null})=>{let{customProperties:r}=(0,_.f)(),{data:i,loading:d,error:s}=(0,m.f)(((e="")=>y.f`
|
|
91
|
+
query DeliveryProvider($deliveryProviderId: ID!) {
|
|
92
|
+
deliveryProvider(deliveryProviderId: $deliveryProviderId) {
|
|
93
|
+
_id
|
|
94
|
+
created
|
|
95
|
+
updated
|
|
96
|
+
deleted
|
|
97
|
+
type
|
|
98
|
+
isActive
|
|
99
|
+
configuration
|
|
100
|
+
interface {
|
|
101
|
+
_id
|
|
102
|
+
label
|
|
103
|
+
version
|
|
104
|
+
}
|
|
105
|
+
configurationError
|
|
106
|
+
...on DeliveryProviderPickUp {
|
|
107
|
+
pickUpLocations {
|
|
108
|
+
_id
|
|
109
|
+
name
|
|
110
|
+
address {
|
|
111
|
+
...AddressFragment
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
${e}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
${f.f}
|
|
119
|
+
`)(r?.DeliveryProvider),{skip:!e,variables:{deliveryProviderId:e}});return{deliveryProvider:i?.deliveryProvider,loading:d,error:s}})({deliveryProviderId:e}),$=async({configuration:r})=>(await b({deliveryProvider:{configuration:JSON.parse(r||"[]")},deliveryProviderId:e}),!0),U=async()=>{await k((0,r.jsx)(v.f,{onCancelClick:async()=>k(""),message:u({id:"delete_delivery_provider_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this delivery provider?"}),onOkClick:async()=>{await k(""),await w({deliveryProviderId:e}),t.c.success(u({id:"delivery_provider_deleted",defaultMessage:"Delivery provider deleted successfully"})),j("/delivery-provider")},okText:u({id:"delete_delivery_provider",defaultMessage:"Delete delivery provider"})}))};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.f,{currentPageTitle:(0,x.D)(I?.interface)}),(0,r.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,r.jsx)(o.f,{headerText:u({id:"update_delivery_configuration",defaultMessage:"Update delivery provider"}),title:u({id:"delivery_provider_title",defaultMessage:"Delivery provider {id}"},{id:I?._id})}),T(d.C.ManageDeliveryProviders)&&(0,r.jsx)(h.f,{onClick:U})]}),M?(0,r.jsx)(l.f,{}):(0,r.jsx)(g.f,{readOnly:!T(d.C.ManageDeliveryProviders),provider:I,onSubmit:$,onSubmitSuccess:()=>{C("/delivery-provider")},children:I?.type==="PICKUP"&&I.pickUpLocations?.length>0&&(0,r.jsxs)("div",{className:"mt-6",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold mb-2",children:u({id:"pickup_locations",defaultMessage:"Pick-up Locations"})}),(0,r.jsx)("ul",{className:"space-y-2",children:I.pickUpLocations.map(e=>(0,r.jsxs)("li",{className:"border rounded-md p-3 bg-slate-50 dark:bg-slate-800",children:[(0,r.jsx)("div",{className:"font-medium",children:e.name}),e.address&&(0,r.jsxs)("div",{className:"text-sm text-slate-600 dark:text-slate-300",children:[e.address.addressLine,e.address.addressLine2?`, ${e.address.addressLine2}`:"",", ",e.address.city,", ",e.address.regionCode,","," ",e.address.postalCode,", ",e.address.countryCode]})]},e._id))})]})})]})}],7125)},20976,e=>{var r=e.i(91398),i=e.i(3828),d=e.i(66773),s=e.i(69322),t=e.i(28401),a=e.i(58971),o=e.i(61494),l=e.i(94724),v=e.i(12197),n=e.i(17644),y=e.i(44658),c=e.i(65395),u=e.i(35997),p=e.i(93333),f=e.i(43007),P=e.i(15971),m=e.i(6607),_=e.i(7125);e.s(["default",0,()=>{let{query:e}=(0,i.useRouter)(),{type:g,deliveryProviderId:h}=e,{formatMessage:x}=(0,s.S)(),{hasRole:D}=(0,a.f)(),{deliveryProviders:j,deliveryProvidersCount:C,loading:k}=(0,u.f)({type:g}),{setModal:T}=(0,m.f)(),{removeDeliveryProvider:w}=(0,f.f)(),{deliveryProviderType:b}=(0,p.f)(),I=async e=>{await T((0,r.jsx)(P.f,{onCancelClick:async()=>T(""),message:x({id:"delete_delivery_provider_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this delivery provider?"}),onOkClick:async()=>{T(""),await w({deliveryProviderId:e}),t.c.success(x({id:"deliveryProviders_deleted",defaultMessage:"DeliveryProviders deleted successfully"}))},okText:x({id:"delete_delivery_provider",defaultMessage:"Delete delivery provider"})}))};return h?(0,r.jsx)(_.default,{deliveryProviderId:h}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.f,{}),(0,r.jsx)(n.f,{headerText:x((C??0)===1?{id:"delivery_provider_count_header_singular",defaultMessage:"1 Delivery Provider"}:{id:"delivery_providers_count_header",defaultMessage:"{count} Delivery Providers"},{count:C??0}),addPath:D(d.C.ManageDeliveryProviders)&&"/delivery-provider/new",addButtonText:x({id:"add_delivery_provider",defaultMessage:"Add Delivery Provider"})}),(0,r.jsx)(l.f,{children:(0,r.jsx)(y.f,{providerType:b?.map(({value:e})=>e)})}),k?(0,r.jsx)(v.f,{}):(0,r.jsx)(c.f,{canEdit:D(d.C.ViewDeliveryProvider),canDelete:D(d.C.ManageDeliveryProviders),providerPath:"/delivery-provider?deliveryProviderId",providers:j,onRemove:I})]})}])}],89237,(e,r,i)=>{let d="/delivery-provider";(window.__NEXT_P=window.__NEXT_P||[]).push([d,()=>e.r(20976)]),r.hot&&r.hot.dispose(function(){window.__NEXT_P.push([d])})}]);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
__turbopack_load_page_chunks__("/orders", [
|
|
2
|
+
"static/chunks/26ckmxeluyknq.js",
|
|
3
|
+
"static/chunks/1gqd9vrno0rq4.js",
|
|
4
|
+
"static/chunks/3w8h5lxnd0z4z.js",
|
|
5
|
+
"static/chunks/336k08jwyc5i-.js",
|
|
6
|
+
"static/chunks/2wkg65dtx56je.js",
|
|
7
|
+
"static/chunks/turbopack-2c3mg3r-05n1w.js"
|
|
8
|
+
])
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[74954,e=>{var t=e.i(91398),s=e.i(91788);e.s(["f",0,({value:e,duration:l=300})=>{let[a,r]=(0,s.useState)(0);return(0,s.useEffect)(()=>{let t,s;if(0===e)return void r(0);let a=i=>{t||(t=i);let n=Math.min((i-t)/l,1);r(Math.round((1-Math.pow(1-n,3))*e)),n<1&&(s=requestAnimationFrame(a))};return s=requestAnimationFrame(a),()=>{s&&cancelAnimationFrame(s)}},[e,l]),(0,t.jsx)("span",{children:a})}])},78704,e=>{var t=e.i(91398),s=e.i(91788),l=e.i(12197);e.s(["f",0,({loading:e,hasMore:a,onLoadMore:r,children:i,threshold:n=200})=>{let d=(0,s.useRef)(null),o=(0,s.useCallback)(t=>{let[s]=t;s.isIntersecting&&a&&!e&&r()},[a,e,r]);return(0,s.useEffect)(()=>{let e=d.current;if(!e)return;let t=new IntersectionObserver(o,{rootMargin:`${n}px`});return t.observe(e),()=>{t.disconnect()}},[o,n]),(0,t.jsxs)(t.Fragment,{children:[i,(0,t.jsx)("div",{ref:d,className:"h-4"}),e&&(0,t.jsx)("div",{className:"flex justify-center py-4",children:(0,t.jsx)(l.f,{})})]})}])},94724,e=>{var t=e.i(91398),s=e.i(69322);e.s(["f",0,({children:e=null,totalRecords:l=null})=>{let{formatMessage:a}=(0,s.S)();return(0,t.jsxs)("div",{className:"mt-5",children:[null!==l?(0,t.jsx)("div",{className:"text-md text-slate-950 dark:text-slate-100 mb-3",children:a({id:"total_records",defaultMessage:"{total} records found"},{total:l??0})}):null,e&&(0,t.jsx)("div",{className:"flex items-center mt-10",children:(0,t.jsx)("h3",{className:"text-xs leading-6 text-slate-500 dark:text-slate-200",children:e})})]})}])},77043,e=>{var t=e.i(91398),s=e.i(72043),l=e.i(69322),a=e.i(35065),r=e.i(22315);e.s(["f",0,({file:e,className:i=""})=>{let{formatMessage:n}=(0,l.S)();return(0,t.jsx)("div",{className:(0,s.default)("h-10 w-10 shrink-0",i),children:e?(0,t.jsx)(a.f,{className:"relative h-10 w-10 rounded-sm",src:e.url,width:100,height:100,alt:n({id:"image_not_available",defaultMessage:"Image not available"})}):(0,t.jsx)(r.f,{})})}])},22315,e=>{var t=e.i(91398),s=e.i(81618),l=e.i(72043);e.s(["f",0,({className:e="",containerClassName:a="",Icon:r=null})=>(0,t.jsx)("span",{className:(0,l.default)("text-slate-400",a),children:r||(0,t.jsx)(s.f,{className:(0,l.default)(e)})})])},57468,e=>{var t=e.i(91398),s=e.i(72043),l=e.i(69322),a=e.i(99160);e.s(["f",0,({cancelText:e=null,showCancel:r=!0,submitText:i=null,showSubmit:n=!0,onCancel:d,className:o=""})=>{let{formatMessage:u}=(0,l.S)();return(0,t.jsxs)("span",{className:(0,s.default)("flex shrink-0 items-center space-x-4 py-5 pl-1",o),children:[r?(0,t.jsx)("button",{onClick:d,"data-id":"cancel_update",type:"button",className:(0,s.default)("focus:ring-slate-800","inline-flex items-center rounded-md border border-slate-300 dark:border-slate-700 bg-white dark:bg-slate-800 px-4 py-2 text-sm font-medium text-slate-700 dark:text-slate-300 shadow-xs hover:bg-slate-50 dark:hover:bg-slate-700 focus:outline-hidden focus:ring-2 focus:ring-slate-800 focus:ring-offset-2"),children:e||u({id:"cancel",defaultMessage:"Cancel"})}):null,n?(0,t.jsx)(a.f,{label:i||u({id:"save",defaultMessage:"Save"})}):null]})}])},20495,e=>{var t=e.i(91398),s=e.i(69322),l=e.i(2765);e.s(["f",0,({inputText:e=null,onInputChange:a,defaultValue:r})=>{let{formatMessage:i}=(0,s.S)(),n=(0,l.f)(200)(a);return(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("label",{htmlFor:"search",className:"sr-only",children:e||i({id:"search",defaultMessage:"Search"})}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-slate-400 dark:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"})})}),(0,t.jsx)("input",{onChange:e=>n(e.target.value),id:"search",defaultValue:r,name:"search",className:"block w-full rounded-md border-1 border-slate-300 dark:border-slate-700 text-slate-900 dark:bg-slate-900 dark:text-slate-200 py-3 pl-10 px-4 shadow-xs placeholder:text-slate-400 dark:placeholder:text-slate-400 focus:ring-2 focus:ring-slate-800 focus:outline-hidden sm:text-sm",placeholder:i({id:"search",defaultMessage:"Search"}),type:"search"})]})]})}])},51128,e=>{var t=e.i(91398),s=e.i(69322),l=e.i(3828),a=e.i(20495),r=e.i(68835),i=e.i(65153),n=e.i(83147),d=e.i(73319);e.s(["f",0,({children:e,onSearchChange:o,defaultSearchValue:u,showTagFilter:c=!1,availableTagOptions:f=[]})=>{let{formatMessage:x}=(0,s.S)(),{query:m,push:h}=(0,l.useRouter)(),p=e=>{if((0,d.T)(e))h({query:(0,n._)(m,e?.join(","),"tags")});else{let{tags:e,...t}=m;h({query:(0,n._)(t)})}};return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"my-3 flex flex-col gap-3",children:(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start gap-3",children:[(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(a.f,{onInputChange:o,defaultValue:u})}),c&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 flex-1 sm:border-l sm:border-slate-300 sm:dark:border-slate-700 sm:pl-3",children:[(0,t.jsx)("div",{className:"max-w-xs",children:(0,t.jsx)(r.f,{buttonText:x({id:"apply",defaultMessage:"Apply"}),placeholder:x({id:"enter_tag",defaultMessage:"Enter tag..."}),tagList:m?.tags?.split(","),onChange:p,selectOptions:f,showTagsInline:!1})}),m?.tags?.split(",").filter(Boolean).length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:m?.tags?.split(",").filter(Boolean).map(e=>(0,t.jsx)(i.f,{text:e,color:"slate",onClick:()=>{let t=m?.tags?.split(",").filter(t=>t!==e);p(t.length>0?t:null)}},e))})]})]})}),e]})}])},1880,e=>{e.s(["U",0,(e={})=>{let{_id:t,texts:s}=e||{};return s||t?`${s?.slug?.split("/").join("")||""}_id_${t}`:null},"P",0,e=>{if(!e)return null;let[t]=e?.split("_id_")||[];return t},"Q",0,e=>{if(!e)return null;let t=e?.split("_id_");return t?.pop()}])},71805,40526,e=>{var t=e.i(91398),s=e.i(69322),l=e.i(8918),a=e.i(41158),r=e.i(65153),i=e.i(77043),n=e.i(93380),d=e.i(1880),o=e.i(84818),u=e.i(60193);let c=({quotation:e,showUser:c})=>{let{formatMessage:f}=(0,s.S)(),{formatDateTime:x}=(0,o.f)();return(0,t.jsxs)(l.f.Row,{children:[(0,t.jsx)(l.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:(0,t.jsx)(a.default,{href:`/quotations?quotationId=${e?._id}`,className:"font-medium text-slate-800 dark:text-slate-700",children:e?.quotationNumber||e?._id})})}),(0,t.jsx)(l.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:x(e.created,{dateStyle:"short",timeStyle:"short"})})}),(0,t.jsx)(l.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:e.isExpired?(0,t.jsx)(r.f,{text:f({id:"expired",defaultMessage:"Expired"}),color:"amber"}):x(e?.expires,{dateStyle:"short",timeStyle:"short"})})}),c&&(0,t.jsx)(l.f.Cell,{children:(0,t.jsxs)(a.default,{href:`/users?userId=${e?.user._id}`,className:"flex items-center text-sm text-slate-800 dark:text-slate-700 hover:text-decoration",children:[(0,t.jsx)(i.f,{file:e?.user?.avatar,className:"mr-2"}),(0,t.jsx)("span",{className:"font-medium ml-2",children:(0,n.f)(e?.user)})]})}),(0,t.jsx)(l.f.Cell,{children:(0,t.jsx)("div",{children:(0,t.jsxs)(a.default,{href:`/products?slug=${(0,d.U)(e.product)}`,className:"flex items-center text-sm text-slate-800 dark:text-slate-700 hover:text-decoration",children:[(0,t.jsx)(i.f,{file:e.product?.media[0]?.file,className:"mr-3"}),(0,t.jsx)("span",{className:"font-medium ml-2",children:e?.product.texts.title})]})})}),(0,t.jsx)(l.f.Cell,{children:(0,t.jsx)(r.f,{text:e?.status,color:u.L[e?.status],square:!0})})]})};e.s(["f",0,({quotations:e,sortable:a=!1,showUser:r=!1})=>{let{formatMessage:i}=(0,s.S)();return(0,t.jsxs)(l.f,{className:"min-w-full",children:[e?.map(e=>(0,t.jsxs)(l.f.Row,{header:!0,enablesort:a,children:[(0,t.jsx)(l.f.Cell,{sortKey:"quotationNumber",children:i({id:"quotation_number",defaultMessage:"Quotation number"})}),(0,t.jsx)(l.f.Cell,{sortKey:"created",children:i({id:"created",defaultMessage:"Created"})}),(0,t.jsx)(l.f.Cell,{sortKey:"expires",children:i({id:"expires",defaultMessage:"Expires"})}),r&&(0,t.jsx)(l.f.Cell,{children:i({id:"user",defaultMessage:"User"})}),(0,t.jsx)(l.f.Cell,{children:i({id:"product",defaultMessage:"Product"})}),(0,t.jsx)(l.f.Cell,{sortKey:"status",children:i({id:"status",defaultMessage:"Status"})})]},e._id)),e?.map(e=>(0,t.jsx)(c,{showUser:r,quotation:e},`${e?._id}-body`))]})}],71805);var f=e.i(59080);let x=f.f`
|
|
2
|
+
fragment QuotationFragment on Quotation {
|
|
3
|
+
_id
|
|
4
|
+
user {
|
|
5
|
+
_id
|
|
6
|
+
username
|
|
7
|
+
avatar {
|
|
8
|
+
_id
|
|
9
|
+
url
|
|
10
|
+
}
|
|
11
|
+
name
|
|
12
|
+
primaryEmail {
|
|
13
|
+
verified
|
|
14
|
+
address
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
product {
|
|
18
|
+
_id
|
|
19
|
+
texts {
|
|
20
|
+
_id
|
|
21
|
+
slug
|
|
22
|
+
subtitle
|
|
23
|
+
title
|
|
24
|
+
description
|
|
25
|
+
}
|
|
26
|
+
media {
|
|
27
|
+
_id
|
|
28
|
+
file {
|
|
29
|
+
_id
|
|
30
|
+
type
|
|
31
|
+
url
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
currency {
|
|
36
|
+
_id
|
|
37
|
+
contractAddress
|
|
38
|
+
decimals
|
|
39
|
+
isoCode
|
|
40
|
+
}
|
|
41
|
+
status
|
|
42
|
+
created
|
|
43
|
+
expires
|
|
44
|
+
updated
|
|
45
|
+
isExpired
|
|
46
|
+
quotationNumber
|
|
47
|
+
fulfilled
|
|
48
|
+
rejected
|
|
49
|
+
}
|
|
50
|
+
`;e.s(["f",0,x],40526)},43154,e=>{var t=e.i(91398),s=e.i(69322),l=e.i(3828),a=e.i(61494),r=e.i(94724),i=e.i(78704),n=e.i(12197),d=e.i(17644),o=e.i(60193),u=e.i(71805),c=e.i(59080),f=e.i(32171),x=e.i(40526);let m=c.f`
|
|
51
|
+
query Quotations(
|
|
52
|
+
$limit: Int
|
|
53
|
+
$offset: Int
|
|
54
|
+
$queryString: String
|
|
55
|
+
$sort: [SortOptionInput!]
|
|
56
|
+
) {
|
|
57
|
+
quotations(
|
|
58
|
+
limit: $limit
|
|
59
|
+
offset: $offset
|
|
60
|
+
queryString: $queryString
|
|
61
|
+
sort: $sort
|
|
62
|
+
) {
|
|
63
|
+
...QuotationFragment
|
|
64
|
+
}
|
|
65
|
+
quotationsCount(queryString: $queryString)
|
|
66
|
+
}
|
|
67
|
+
${x.f}
|
|
68
|
+
`;var h=e.i(83147),p=e.i(51128),g=e.i(96097),j=e.i(74954);e.s(["default",0,()=>{let{formatMessage:e}=(0,s.S)(),{query:c,push:x}=(0,l.useRouter)(),v=parseInt(c?.limit,10)||o.h,b=parseInt(c?.skip,10)||0,w=c?.sort||"",{queryString:N,quotationId:_,...y}=c,{quotations:k,quotationsCount:q,loading:C,loadMore:M,hasMore:S}=(({limit:e=20,offset:t=0,queryString:s="",sort:l=[]}={})=>{let{data:a,loading:r,error:i,fetchMore:n}=(0,f.f)(m,{variables:{limit:e,offset:t,queryString:s,sort:l}}),d=a?.quotations||[],o=a?.quotationsCount,u=d?.length<o;return{quotations:d,quotationsCount:o,hasMore:u,loading:r,error:i,loadMore:()=>{n({variables:{offset:d?.length}})}}})({queryString:N,limit:v,offset:b,sort:(0,h.R)(w)});if(_)return(0,t.jsx)(g.default,{quotationId:_});let E=1===q?e({id:"quotation_header",defaultMessage:"1 Quotation"}):e({id:"quotation_count_header",defaultMessage:"{count} Quotations"},{count:(0,t.jsx)(j.f,{value:q})});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.f,{}),(0,t.jsx)(d.f,{title:e({id:"quotation_page_title",defaultMessage:"{count, plural, one {# Quotation} other {# Quotations}}"},{count:q}),headerText:E}),(0,t.jsxs)("div",{className:"min-w-full overflow-x-auto px-1",children:[(0,t.jsx)(r.f,{}),(0,t.jsx)(p.f,{onSearchChange:e=>{let{skip:t,...s}=y;e?x({query:{...s,queryString:e}}):x({query:{...y}})},defaultSearchValue:N,children:(0,t.jsx)(i.f,{loading:C,hasMore:S,onLoadMore:M,children:C&&k?.length===0?(0,t.jsx)(n.f,{}):(0,t.jsx)(u.f,{sortable:!0,quotations:k,showUser:!0})})})]})]})}],43154)},38322,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...l},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},l),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))});e.s(["f",0,s],38322)},81618,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...l},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},l),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))});e.s(["f",0,s],81618)},67912,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...l},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},l),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))});e.s(["f",0,s],67912)}],53674,(e,t,s)=>{let l="/quotations";(window.__NEXT_P=window.__NEXT_P||[]).push([l,()=>e.r(43154)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([l])})}]);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[74954,e=>{var t=e.i(91398),s=e.i(91788);e.s(["f",0,({value:e,duration:i=300})=>{let[a,l]=(0,s.useState)(0);return(0,s.useEffect)(()=>{let t,s;if(0===e)return void l(0);let a=r=>{t||(t=r);let n=Math.min((r-t)/i,1);l(Math.round((1-Math.pow(1-n,3))*e)),n<1&&(s=requestAnimationFrame(a))};return s=requestAnimationFrame(a),()=>{s&&cancelAnimationFrame(s)}},[e,i]),(0,t.jsx)("span",{children:a})}])},78704,e=>{var t=e.i(91398),s=e.i(91788),i=e.i(12197);e.s(["f",0,({loading:e,hasMore:a,onLoadMore:l,children:r,threshold:n=200})=>{let d=(0,s.useRef)(null),o=(0,s.useCallback)(t=>{let[s]=t;s.isIntersecting&&a&&!e&&l()},[a,e,l]);return(0,s.useEffect)(()=>{let e=d.current;if(!e)return;let t=new IntersectionObserver(o,{rootMargin:`${n}px`});return t.observe(e),()=>{t.disconnect()}},[o,n]),(0,t.jsxs)(t.Fragment,{children:[r,(0,t.jsx)("div",{ref:d,className:"h-4"}),e&&(0,t.jsx)("div",{className:"flex justify-center py-4",children:(0,t.jsx)(i.f,{})})]})}])},94724,e=>{var t=e.i(91398),s=e.i(69322);e.s(["f",0,({children:e=null,totalRecords:i=null})=>{let{formatMessage:a}=(0,s.S)();return(0,t.jsxs)("div",{className:"mt-5",children:[null!==i?(0,t.jsx)("div",{className:"text-md text-slate-950 dark:text-slate-100 mb-3",children:a({id:"total_records",defaultMessage:"{total} records found"},{total:i??0})}):null,e&&(0,t.jsx)("div",{className:"flex items-center mt-10",children:(0,t.jsx)("h3",{className:"text-xs leading-6 text-slate-500 dark:text-slate-200",children:e})})]})}])},77043,e=>{var t=e.i(91398),s=e.i(72043),i=e.i(69322),a=e.i(35065),l=e.i(22315);e.s(["f",0,({file:e,className:r=""})=>{let{formatMessage:n}=(0,i.S)();return(0,t.jsx)("div",{className:(0,s.default)("h-10 w-10 shrink-0",r),children:e?(0,t.jsx)(a.f,{className:"relative h-10 w-10 rounded-sm",src:e.url,width:100,height:100,alt:n({id:"image_not_available",defaultMessage:"Image not available"})}):(0,t.jsx)(l.f,{})})}])},22315,e=>{var t=e.i(91398),s=e.i(81618),i=e.i(72043);e.s(["f",0,({className:e="",containerClassName:a="",Icon:l=null})=>(0,t.jsx)("span",{className:(0,i.default)("text-slate-400",a),children:l||(0,t.jsx)(s.f,{className:(0,i.default)(e)})})])},51128,e=>{var t=e.i(91398),s=e.i(69322),i=e.i(3828),a=e.i(20495),l=e.i(68835),r=e.i(65153),n=e.i(83147),d=e.i(73319);e.s(["f",0,({children:e,onSearchChange:o,defaultSearchValue:u,showTagFilter:c=!1,availableTagOptions:p=[]})=>{let{formatMessage:f}=(0,s.S)(),{query:m,push:g}=(0,i.useRouter)(),h=e=>{if((0,d.T)(e))g({query:(0,n._)(m,e?.join(","),"tags")});else{let{tags:e,...t}=m;g({query:(0,n._)(t)})}};return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"my-3 flex flex-col gap-3",children:(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start gap-3",children:[(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(a.f,{onInputChange:o,defaultValue:u})}),c&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 flex-1 sm:border-l sm:border-slate-300 sm:dark:border-slate-700 sm:pl-3",children:[(0,t.jsx)("div",{className:"max-w-xs",children:(0,t.jsx)(l.f,{buttonText:f({id:"apply",defaultMessage:"Apply"}),placeholder:f({id:"enter_tag",defaultMessage:"Enter tag..."}),tagList:m?.tags?.split(","),onChange:h,selectOptions:p,showTagsInline:!1})}),m?.tags?.split(",").filter(Boolean).length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:m?.tags?.split(",").filter(Boolean).map(e=>(0,t.jsx)(r.f,{text:e,color:"slate",onClick:()=>{let t=m?.tags?.split(",").filter(t=>t!==e);h(t.length>0?t:null)}},e))})]})]})}),e]})}])},75155,e=>{var t=e.i(91398),s=e.i(69322),i=e.i(65153);let a={DRAFT:"yellow",ACTIVE:"emerald",DELETED:"amber",null:"yellow",undefined:"yellow"};e.s(["f",0,({status:e})=>{let{formatMessage:l}=(0,s.S)();return l({id:"pending",defaultMessage:"PENDING"}),l({id:"confirmed",defaultMessage:"CONFIRMED"}),l({id:"open",defaultMessage:"OPEN"}),l({id:"fulfilled",defaultMessage:"FULFILLED"}),l({id:"rejected",defaultMessage:"REJECTED"}),(0,t.jsx)(i.f,{text:(e=>{switch(e){case"ACTIVE":return l({id:"active",defaultMessage:"Active"});case"DRAFT":default:return l({id:"draft",defaultMessage:"Draft"});case"DELETED":return l({id:"deleted",defaultMessage:"Deleted"})}})(e),color:a[e]||"yellow",square:!0,dotted:!0})}])},92615,e=>{var t=e.i(59080),s=e.i(32171);let i=t.f`
|
|
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(["f",0,({queryString:e="",tags:t=null,includeDrafts:a=!0})=>{let{data:l,loading:r,error:n}=(0,s.f)(i,{variables:{queryString:e,includeDrafts:a,tags:t}});return{productsCount:l?.productsCount,loading:r,error:n}}])},22e3,e=>{var t=e.i(91398),s=e.i(69322),i=e.i(66773),a=e.i(3828),l=e.i(61494),r=e.i(94724),n=e.i(17644),d=e.i(64591),o=e.i(60193),u=e.i(12197),c=e.i(78704),p=e.i(8918),f=e.i(24112),m=e.i(41158),g=e.i(65153),h=e.i(77043),x=e.i(3095),v=e.i(1880),_=e.i(58971),y=e.i(6607),w=e.i(15971),b=e.i(41418),j=e.i(88604),C=e.i(75155);let M=({product:e,showAvatar:l=!1,hideSortIndex:r=!1})=>{let{formatMessage:n}=(0,s.S)(),d=(0,a.useRouter)(),{hasRole:o}=(0,_.f)(),{setModal:u}=(0,y.f)(),{updateProduct:c}=(0,b.f)(),{removeProduct:f}=(0,j.f)(),M=async t=>{t.target.value&&await c({productId:e?._id,product:{sequence:parseInt(t.target.value,10)}})},I=async()=>{await u((0,t.jsx)(w.f,{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"})}))},k=`/products?slug=${(0,v.U)(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)(p.f.Row,{className:"group",children:[(0,t.jsx)(p.f.Cell,{children:e?.status!=="DELETED"?(0,t.jsxs)(m.default,{href:k,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:[l&&(0,t.jsx)(h.f,{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)(g.f,{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:[l&&(0,t.jsx)(h.f,{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)(g.f,{color:"yellow",text:n({id:"title_not_found",defaultMessage:"Title not found"})})]})})})]})}),(0,t.jsx)(p.f.Cell,{className:"whitespace-nowrap px-6",children:S}),(0,t.jsx)(p.f.Cell,{className:"whitespace-nowrap px-6",children:e?.status!=="DELETED"?(0,t.jsx)(m.default,{href:k,className:"block",children:(0,t.jsx)(C.f,{status:e?.status})}):(0,t.jsx)(C.f,{status:e?.status})}),(0,t.jsx)(p.f.Cell,{children:e?.status!=="DELETED"?(0,t.jsx)(m.default,{href:k,className:"block",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:e.tags?.map(e=>(0,t.jsx)(g.f,{text:e,color:"slate"},e))})}):(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:e.tags?.map(e=>(0,t.jsx)(g.f,{text:e,color:"slate"},e))})}),r?null:(0,t.jsx)(p.f.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:!o(i.C.ManageProducts),onBlur:M,onClick:e=>e.stopPropagation(),onFocus:e=>e.stopPropagation()})}),(0,t.jsx)(p.f.Cell,{className:"text-right",children:(0,t.jsx)(x.f,{onEdit:e?.status!=="DELETED"?()=>{e?.status!=="DELETED"&&d.push(`/products?slug=${(0,v.U)(e)}`)}:void 0,onDelete:o(i.C.ManageProducts)&&e?.status==="DRAFT"?I:void 0,showEdit:e?.status!=="DELETED",showDelete:o(i.C.ManageProducts)&&e?.status==="DRAFT"&&!e?.proxies?.length})})]})};var I=e.i(57561);let k=({showAvatar:e=!0,queryString:i,limit:a,offset:l,tags:r,sortKeys:n,includeDrafts:d,sortable:o})=>{let{formatMessage:m}=(0,s.S)(),{selectedLocale:g}=(0,I.f)(),{products:h,loading:x,loadMore:v,hasMore:_}=(0,f.f)({queryString:i,includeDrafts:d,limit:a,offset:l,tags:r,sort:n,forceLocale:g});return x&&h?.length===0?(0,t.jsx)(u.f,{}):(0,t.jsx)(c.f,{loading:x,hasMore:_,onLoadMore:v,children:(0,t.jsxs)(p.f,{className:"min-w-full ",children:[h?.map(e=>(0,t.jsxs)(p.f.Row,{header:!0,enablesort:o,children:[(0,t.jsx)(p.f.Cell,{children:m({id:"name",defaultMessage:"Name"})}),(0,t.jsx)(p.f.Cell,{sortKey:"type",children:m({id:"type",defaultMessage:"Type"})}),(0,t.jsx)(p.f.Cell,{sortKey:"status",children:m({id:"status",defaultMessage:"Status"})}),(0,t.jsx)(p.f.Cell,{children:m({id:"tags",defaultMessage:"Tags"})}),(0,t.jsx)(p.f.Cell,{sortKey:"sequence",defaultSortDirection:"ASC",children:m({id:"sequence",defaultMessage:"Display Order"})}),(0,t.jsx)(p.f.Cell,{children:" "})]},e._id)),h?.map(s=>(0,t.jsx)(M,{product:s,showAvatar:e},`${s?._id}-body`))]})})};var S=e.i(83147),N=e.i(51128),E=e.i(92615),P=e.i(30311),q=e.i(11056),D=e.i(74954),T=e.i(91788),V=e.i(81013),R=e.i(60513);let O=["_id","sku","baseUnit","sequence","status","tags","updated","published","type"],L=["title","subtitle","description","vendor","brand","labels","slug"],$=["productId","amount","currencyCode","countryCode","isTaxable","isNetPrice","maxQuantity"],A=["productId","bundleItemProductId","quantity","configuration"],F=["productId","variationId","key","type"],U=["title","subtitle"],B=["variationId","value"],z=["title","subtitle"];var W=e.i(75284);let Z=({queryString:e,includeDrafts:i,tags:a})=>{let{setModal:l}=(0,y.f)(),{productsCount:r,loading:n}=(0,E.f)({queryString:e,includeDrafts:i,tags:a}),{exportProducts:d,isExporting:o}=(()=>{let{exportCSV:e,isExporting:t}=(0,R.f)();return{exportProducts:(0,T.useCallback)(async t=>{await e({type:"PRODUCTS",...t})},[e]),isExporting:t}})(),{formatMessage:u}=(0,s.S)(),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"})}],p=(0,T.useCallback)(async t=>{await d({queryString:e,includeDrafts:i,tags:a,...t}),l(null)},[e,i,a,d,l]);return n?null:(0,t.jsx)(V.f,{onClick:()=>{l((0,t.jsx)(W.f,{options:c,onSubmit:p,loading:o}))},disabled:o||!r,variant:"secondary",text:u(o?{id:"exporting",defaultMessage:"Exporting..."}:{id:"export",defaultMessage:"Export"})})};var G=e.i(78193),K=e.i(22003);let X={SimpleProduct:"SIMPLE_PRODUCT",BundleProduct:"BUNDLE_PRODUCT",PlanProduct:"PLAN_PRODUCT",ConfigurableProduct:"CONFIGURABLE_PRODUCT",TokenizedProduct:"TOKENIZED_PRODUCT"},Q=e=>{let t={};return Object.entries(e).forEach(([e,s])=>{if(!e.startsWith("texts."))return;let[,i,a]=e.split(".");t[i]||={},"labels"===a?t[i][a]=s?s.split(";"):[]:t[i][a]=s||""}),t},H=({productsCSV:e,pricesCSV:t,bundleItemsCSV:s,variationOptionsCSV:a,variationsCSV:l},r)=>{let n=[];for(let t of e)Object.values(X).includes(t?.type)||n.push(r.formatMessage({id:"product_import.validation.invalid_type",defaultMessage:"Invalid product type: {type}"},{type:t.type})),t.sequence||n.push(r.formatMessage({id:"product_import_sequence_required",defaultMessage:"Required field sequence missing"})),t.status&&![i.X.Active,i.X.Draft,i.X.Deleted].includes(t.status)&&n.push(r.formatMessage({id:"product_import_status_invalid",defaultMessage:"Invalid status value given ({status})"},{status:t.status}));for(let e of t)e.productId||n.push(r.formatMessage({id:"product_price_import_product_id_required",defaultMessage:"Required field productId missing"})),e.amount||n.push(r.formatMessage({id:"product_price_import_amount_required",defaultMessage:"Required field amount missing"})),e.countryCode||n.push(r.formatMessage({id:"product_price_import_countryCode_required",defaultMessage:"Required field countryCode missing"})),e.currencyCode||n.push(r.formatMessage({id:"product_price_import_currencyCode_required",defaultMessage:"Required field currencyCode missing"}));for(let e of s)e.productId||n.push(r.formatMessage({id:"product_bundle_import_product_id_required",defaultMessage:"Required field variation productId missing"})),e.bundleItemProductId||n.push(r.formatMessage({id:"product_bundle_import_item_id_required",defaultMessage:"Required field bundleItemProductId missing"}));for(let e of l)e.productId||n.push(r.formatMessage({id:"product_variation_import_product_id_required",defaultMessage:"Required field variation productId missing"})),e.variationId||n.push(r.formatMessage({id:"product_variation_import_variation_id_required",defaultMessage:"Required field variationId missing"})),e.type||n.push(r.formatMessage({id:"product_variation_import_type_required",defaultMessage:"Required field variation type missing"})),e.type&&![i.k.Color,i.k.Text].includes(e.type)&&n.push(r.formatMessage({id:"product_variation_import_invalid_type_required",defaultMessage:"Invalid variation type given ({type})"},{type:e.type}));for(let e of a)e.variationId||n.push(r.formatMessage({id:"product_variation_option_import_variation_id_required",defaultMessage:"Required field variation id missing"})),e.value||n.push(r.formatMessage({id:"product_variation_option_import_value_required",defaultMessage:"Required field variation option value missing"}));return n};var J=e.i(42912),Y=e.i(72552),ee=e.i(16785);let et={productsCSV:O,pricesCSV:$,bundleItemsCSV:A,variationOptionsCSV:B,variationsCSV:F},es=({onImport:e})=>{let i=(0,T.useRef)({}),{formatMessage:a}=(0,s.S)(),{languageDialectList:l}=(0,I.f)(),r=l?.map(e=>e.isoCode)||[],[n,d]=(0,T.useState)({}),[o,u]=(0,T.useState)({productsCSV:[],pricesCSV:[],bundleItemsCSV:[],variationsCSV:[],variationOptionsCSV:[]}),[c,p]=(0,T.useState)(!1),f=[{key:"productsCSV",label:a({id:"product_csv_file",defaultMessage:"Products CSV"})},{key:"pricesCSV",label:a({id:"product_price_csv_file",defaultMessage:"Product prices CSV (Optional)"}),optional:!0},{key:"bundleItemsCSV",label:a({id:"product_bundle_item_csv_file",defaultMessage:"Product bundle items CSV (Optional)"}),optional:!0},{key:"variationsCSV",label:a({id:"product_variations_csv_file",defaultMessage:"Product variations CSV (Optional)"}),optional:!0},{key:"variationOptionsCSV",label:a({id:"product_variation_options_csv_file",defaultMessage:"Product variation options CSV (Optional)"}),optional:!0}],m=async e=>{let t=await e.text();return Y.default.parse(t,{header:!0,skipEmptyLines:!0}).data},g=async(e,t)=>{if(!t)return;let s=await m(t),i=((e,t)=>{if(!t.length)return!1;let s=Object.keys(t[0]),i=et[e].filter(e=>!s.includes(e));return i.length?(d(t=>({...t,[e]:a({id:"csv_missing_fields",defaultMessage:"Missing required columns: {fields}"},{fields:i.join(", ")})})),!1):(d(t=>({...t,[e]:void 0})),!0)})(e,s);u(t=>({...t,[e]:i?s:[]}))},h=async(e,t)=>{let s=e.target.files?.[0];await g(t,s),e.target.value=""},x=(0,T.useCallback)(async()=>{p(!0);try{await e(o)}finally{p(!1)}},[o,e]),v=o.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:a({id:"products_import_title",defaultMessage:"Import Products"})}),(0,t.jsx)("p",{className:"text-center text-sm text-gray-600",children:a({id:"product_import_description",defaultMessage:"Select your products CSV and optional CSV files, then click Import."})}),f.map(({key:e,label:s,optional:l})=>(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("input",{ref:t=>{i.current[e]=t??null},type:"file",accept:".csv",onChange:t=>h(t,e),className:"hidden"}),(0,t.jsxs)("div",{className:"flex justify-between items-center gap-2",children:[(0,t.jsx)(V.f,{text:o[e].length?a({id:`${e}_file_selected`,defaultMessage:`${s} Selected`}):a({id:`select_${e}`,defaultMessage:`Select ${s}`}),onClick:()=>i.current[e]?.click(),variant:"secondary",className:"flex-1",disabled:c||!v&&l}),(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 i=((e,t=[])=>{if("productsCSV"===e)return[...O,...t.flatMap(e=>L.map(t=>`texts.${e}.${t}`)),"supply.weightInGram","supply.heightInMillimeters","supply.lengthInMillimeters","supply.widthInMillimeters"];if("bundleItemsCSV"===e)return[...A];if("pricesCSV"===e)return[...$];if("variationsCSV"===e)return[...F,...t.flatMap(e=>U.map(t=>`texts.${e}.${t}`))];if("variationOptionsCSV"===e)return[...B,...t.flatMap(e=>z.map(t=>`texts.${e}.${t}`))];return[]})(e,s).join(",");(0,ee.f)(i,t)})(e,`${e}_template.csv`,r),children:a({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)(V.f,{text:c?"Importing…":"Import",onClick:x,disabled:c||!v||_,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"})}),v&&!_&&(0,t.jsx)("p",{className:"text-center text-xs text-gray-500",children:a({id:"ready_to_import",defaultMessage:"Ready to import {products} products{prices}{bundleItems}{variations}{variationOptions}."},{products:o.productsCSV.length,prices:o.pricesCSV.length?` with ${o.pricesCSV.length} prices`:"",bundleItems:o.bundleItemsCSV.length?` with ${o.bundleItemsCSV.length} bundle items`:"",variations:o.variationsCSV.length?` with ${o.variationsCSV.length} variations`:"",variationOptions:o.variationOptionsCSV.length?` with ${o.variationOptionsCSV.length} variation options`:""})})]})};var ei=e.i(28401);let ea=()=>{let{formatMessage:e}=(0,s.S)(),{hasRole:a}=(0,_.f)(),{setModal:l}=(0,y.f)(),{prepareProductImport:r}={prepareProductImport:async({productsCSV:e,pricesCSV:t,bundleItemsCSV:s,variationsCSV:i,variationOptionsCSV:a})=>(e||[]).map(e=>{let l,r,n,d,o,u,c,p=(t||[]).filter(t=>t.productId===e._id),f=(s||[]).filter(t=>t.productId===e._id),m=(i||[]).filter(t=>t.productId===e._id);return p.length&&(l=p.map(({amount:e,maxQuantity:t,isNetPrice:s,isTaxable:i,...a})=>({...a,amount:parseInt(e)??0,isNetPrice:"true"===s,isTaxable:"true"===i,maxQuantity:parseInt(t,2)||0}))),f.length&&(r=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}})}))),m.length&&(n=m.map(({variationId:e,type:t,key:s,configuration:i,...l})=>({variationId:e,key:s,type:t,content:Q(l),options:(a||[]).filter(t=>t.variationId===e).map(e=>({value:e?.value??"",content:Q(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}}})({...(d=e["supply.weightInGram"]||e["supply.heightInMillimeters"]||e["supply.lengthInMillimeters"]||e["supply.widthInMillimeters"],o=e.sku||e.baseUnit,u=Q(e),c=(0,K.f)(e.meta),{_id:e._id||void 0,warehousing:o?{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:d?{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:l,bundleItems:r,variations:n})})},{isImporting:n,importItems:d}=(0,G.f)({validate:H,process:r});return a(i.C.ManageProducts)?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(V.f,{onClick:()=>{l((0,t.jsx)(es,{onImport:async e=>{let s=await d(e);l(null),(0,ei.c)((0,t.jsx)(J.f,{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.S)(),{shopInfo:u}=(0,I.f)(),{query:c,push:p}=(0,a.useRouter)(),f=parseInt(c?.limit,10)||o.h,m=parseInt(c?.skip,10)||0,g=c?.includeDrafts==="true"||!c?.includeDrafts,h=c.tags?.split(",")||void 0,x=c.sort||"",{hasRole:v}=(0,_.f)(),{queryString:y,slug:w,...b}=c,j=(0,S.R)(x),{productsCount:C}=(0,E.f)({queryString:y,includeDrafts:g,tags:h});if(w)return(0,t.jsx)(P.default,{slug:w});let M=1===C?e({id:"products_header",defaultMessage:"1 Product"}):e({id:"products_count_header",defaultMessage:"{count} Products"},{count:(0,t.jsx)(D.f,{value:C??0})}),T=(u?.adminUiConfig?.productTags||[]).map(e=>({value:e,label:e}));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.f,{}),(0,t.jsx)("div",{className:"w-full",children:(0,t.jsxs)(n.f,{title:e({id:"product_page_title",defaultMessage:"{count, plural, one {# Product} other {# Products}}"},{count:C}),headerText:M,addPath:v(i.C.ManageProducts)&&"/products/new",addButtonText:e({id:"add_product",defaultMessage:"Add Product"}),children:[(0,t.jsx)(Z,{includeDrafts:g,queryString:y,tags:h}),(0,t.jsx)(ea,{})]})}),(0,t.jsxs)("div",{className:"min-w-full overflow-x-auto px-1",children:[(0,t.jsx)(r.f,{children:(0,t.jsx)(d.f,{toggleText:e({id:"include_drafts",defaultMessage:"Include drafts"}),toggleKey:"includeDrafts",active:g})}),(0,t.jsx)(N.f,{onSearchChange:e=>{let{skip:t,...s}=b;e?p({query:(0,S._)(s,e,"queryString")}):p({query:(0,S._)(b)})},defaultSearchValue:y,showTagFilter:!0,availableTagOptions:T,children:(0,t.jsx)(q.f,{onlyFull:!0,children:(0,t.jsx)(k,{sortable:!0,queryString:y,includeDrafts:g,limit:f,offset:m,tags:h,sortKeys:j})})})]})]})}],22e3)},31004,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...i},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},i),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(["f",0,s],31004)},81618,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...i},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},i),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))});e.s(["f",0,s],81618)},57748,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...i},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},i),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(["f",0,s],57748)},5270,e=>{var t=e.i(91788);let s=(...e)=>e.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim(),i={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"},a=(0,t.createContext)({}),l=(0,t.forwardRef)(({color:e,size:l,width:r,height:n,strokeWidth:d,absoluteStrokeWidth:o,nonScalingStroke:u,className:c="",children:p,iconNode:f=[],icon:m={node:f,aliases:[],size:24},...g},h)=>{let{size:x=24,strokeWidth:v=2,absoluteStrokeWidth:_=!1,nonScalingStroke:y=!1,color:w="currentColor",className:b=""}=(0,t.useContext)(a)??{},j=!!p||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(g),[C,M,I=[]]=function(e,t={}){return function(e,t={}){let a=t.attributeNames??{},l=e=>a[e]??e,r=e.size??e.width??i.width,n=e.size??e.height??i.height,d=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],o=[...e.name?[`lucide-${e.name}`]:[],...d],u=t.className?.split(" ").filter(Boolean)??[],c=!1===t.includeDefaultClasses?s(...u):s("lucide",...o,...u),p=t.absoluteStrokeWidth?Number(t.strokeWidth??i["stroke-width"])*Number(e.size??e.width??i.width)/Number(t.size??t.width??i.width):t.strokeWidth??i["stroke-width"];return["svg",{...Object.entries(i).reduce((e,[t,s])=>(e[l(t)]=s,e),{}),..."color"in t&&t.color&&{[l("stroke")]:t.color},..."size"in t&&null!=t.size&&{[l("width")]:t.size,[l("height")]:t.size},..."width"in t&&null!=t.width&&{[l("width")]:t.width},..."height"in t&&null!=t.height&&{[l("height")]:t.height},[l("stroke-width")]:p,...c&&{[l("class")]:c},[l("viewBox")]:`0 0 ${r} ${n}`,...!1===t.hasA11yProp?{[l("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[s,i,a]=e,r=t.nonScalingStroke?{[l("vector-effect")]:"non-scaling-stroke",...i}:i;return a?[s,r,a]:[s,r]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(m,{color:e??w,width:r??l??x,height:n??l??x,strokeWidth:d??v,absoluteStrokeWidth:o??_,nonScalingStroke:u??y,className:s(b,c),hasA11yProp:j,attributes:g});return(0,t.createElement)(C,{ref:h,...M},[...I.map(([e,s])=>(0,t.createElement)(e,s)),...Array.isArray(p)?p:[p]])});e.s(["f",0,function(e,s=[],i=[]){let a,r="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,i):e,n=(0,t.forwardRef)(({className:e,...s},i)=>(0,t.createElement)(l,{ref:i,icon:r,className:e,...s}));return r.name&&(n.displayName=(a=(e=>{let t="",s=!1;for(let i of e){if("-"===i||"_"===i||i<=" "){s=t.length>0;continue}0===t.length?t+=i.toLowerCase():t+=s?i.toUpperCase():i,s=!1}return t})(r.name)).charAt(0).toUpperCase()+a.slice(1)),n}],5270)}],85741,(e,t,s)=>{let i="/products";(window.__NEXT_P=window.__NEXT_P||[]).push([i,()=>e.r(22e3)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([i])})}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[11309,e=>{var t=e.i(91398),l=e.i(72043),s=e.i(88566),a=e.i(25575),r=e.i(91788);let d=({header:e,body:d,headerCSS:i="",bodyCSS:n="",itemContainerCSS:o="",itemindex:c=1,hideChevron:x=!1})=>{let[u,f]=(0,r.useState)(!1);return(0,t.jsxs)("div",{className:(0,l.default)("mt-3",o),"data-itemindex":c,children:[(0,t.jsxs)("button",{type:"button",onClick:()=>f(!u),className:(0,l.default)("relative cursor-pointer border dark:border-slate-800 bg-white dark:bg-slate-900 text-slate-500 dark:text-slate-200 hover:bg-slate-50 dark:hover:bg-slate-700 w-full max-w-full overflow-hidden",i),children:[(0,t.jsx)("div",{className:"w-full",children:e}),!x&&(0,t.jsx)("span",{className:"px-2",children:u?(0,t.jsx)(a.f,{className:"h-5 w-5"}):(0,t.jsx)(s.f,{className:"h-5 w-5"})})]}),u?(0,t.jsx)("div",{className:(0,l.default)("rounded-lg sm:p-4 xl:p-10 relative overflow-visible",n),children:d}):""]})};e.s(["f",0,({data:e,containerCSS:s="",headerCSS:a="",bodyCSS:r="",itemContainerCSS:i="",hideChevron:n=!1,...o})=>(0,t.jsx)("div",{className:(0,l.default)("my-3",s),...o,children:e.map(({header:e,body:l},s)=>(0,t.jsx)(d,{itemindex:s,header:e,body:l,headerCSS:a,bodyCSS:r,itemContainerCSS:i,hideChevron:n},s))})],11309)},26178,e=>{var t=e.i(91398),l=e.i(91788);let s=l.forwardRef(function({title:e,titleId:t,...s},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},s),e?l.createElement("title",{id:t},e):null,l.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 a=e.i(72043),r=e.i(69322);e.s(["f",0,({message:e,className:l="",Icon:d=null})=>(0,t.jsx)("div",{className:(0,a.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",l),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:d||(0,t.jsx)(s,{className:"h-6 w-6"})}),(0,t.jsx)(r.K,{id:"no_data_message",defaultMessage:"<p>No <span> {message} available</span> </p>",values:{p:e=>(0,t.jsx)("p",{className:"mt-2 m-auto flex items-center justify-center",children:e}),span:e=>(0,t.jsxs)("span",{className:"capitalize ml-1",children:[" ",e," "]}),message:e}})]})})],26178)},8918,e=>{var t=e.i(91398),l=e.i(91788),s=e.i(72043),a=e.i(69322),r=e.i(88566),d=e.i(25575),i=e.i(3828),n=e.i(83147);let o=({onSort:e,sortDirection:l})=>l?"ASC"===l?(0,t.jsx)(d.f,{className:"ml-2 w-5 h-5 text-slate-700",onClick:e}):(0,t.jsx)(r.f,{className:"ml-2 w-5 h-5 text-slate-700",onClick:e}):(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"ml-2 w-6 h-6",onClick:e,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})});var c=e.i(26178);let x=e=>{let t=[],s=[],a=[];return l.default.Children.forEach(e.children,e=>{e?.props?.header?t.push(e):e?.props?.footer?a.push(e):s.push(e)}),{header:t,footer:a,body:s}},u=({className:e="",...r})=>{let[d,i]=(0,l.useState)(x(r)),{formatMessage:n}=(0,a.S)(),o={...d,header:l.default.Children.map(d.header,e=>l.default.cloneElement(e))};return(0,l.useEffect)(()=>{i(x(r))},[r.children]),o.header.length||o.body.length?(0,t.jsxs)("table",{className:(0,s.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),...r,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:o.header}),o.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:o.body}):null,o.footer.length?(0,t.jsx)("tfoot",{children:o.footer}):null]}):(0,t.jsx)(c.f,{message:n({id:"data",defaultMessage:"Data"})})};u.Row=({className:e="",children:a=[],header:r=!1,enablesort:d=!1,...i})=>{let n=l.default.Children.map(a,e=>l.default?.cloneElement(e||(0,t.jsx)("span",{}),{header:r,enablesort:d}));return(0,t.jsx)("tr",{className:(0,s.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),...i,children:n})},u.Cell=({className:e="",header:l=!1,enablesort:a=!1,children:r,sortKey:d=null,defaultSortDirection:c=null,...x})=>{let u=(0,i.useRouter)(),f=(0,n.v)(u.query?.sort),h=l?"th":"td";return(0,t.jsx)(h,{className:(0,s.default)(l?"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),...x,children:(0,t.jsxs)("div",{className:"flex items-center",children:[r,"th"===h&&a&&d&&(0,t.jsx)(o,{onSort:e=>{var t;let l;e.preventDefault(),((t=f[d])?"ASC"===t?"DESC":null:"ASC")||!f[d]?l={...f,[d]:"ASC"===f[d]?"DESC":"ASC"}:(delete f[d],l=f);let s=Object.entries(l).map(([e,t])=>[e,t].join("_")).join(","),{sort:a,...r}=u.query,i=Object.keys(r).map(e=>[e,r[e]].join("=")).join("&"),o=0===Object.keys(r).length?`${u.basePath}?sort=${s}`:`${u.basePath}?${i}&sort=${s}`;s?u.push(o):u.push({query:(0,n._)(r)})},sortDirection:Object.keys(f).length?f[d]:c})]})})},e.s(["f",0,u],8918)},71701,e=>{var t=e.i(91398),l=e.i(5432),s=e.i(17644),a=e.i(61494),r=e.i(69322),d=e.i(8918),i=e.i(41158),n=e.i(84818),o=e.i(83147),c=e.i(3828),x=e.i(11309),u=e.i(81013);e.s(["default",0,()=>{let{formatMessage:e}=(0,r.S)(),f={dateStyle:"short",timeStyle:"short"},{formatDateTime:h}=(0,n.f)(),m=(0,c.useRouter)(),{query:p,pathname:b}=m,j=(0,o.R)(p?.sort),g=p?.workId,w=(0,l.f)({sortOptions:j,queryString:g}),v=()=>{let{workId:e,...t}=p;m.push({pathname:b,query:t})},k=(w?.exports||[]).map(l=>({header:(0,t.jsxs)("div",{className:"flex flex-1 justify-between items-center px-4 py-2 text-sm",children:[(0,t.jsxs)("div",{className:"flex flex-col items-start text-left",children:[(0,t.jsxs)("span",{className:"text-xs text-slate-400",children:[e({id:"id",defaultMessage:"ID"})," ",l.id.slice(-6).toUpperCase()]}),(0,t.jsx)("span",{className:"font-bold text-slate-700 dark:text-slate-100",children:l.type})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start text-left",children:[(0,t.jsx)("span",{className:"text-slate-600 dark:text-slate-300",children:h(l.finished,f)}),(0,t.jsx)("span",{className:"text-xs text-slate-400",children:e({id:"exported",defaultMessage:"Exported"})})]}),(0,t.jsxs)("div",{className:"bg-blue-50 dark:bg-slate-800 text-blue-600 dark:text-blue-400 px-3 py-1 rounded-full text-xs font-bold",children:[l.files.length," ",e({id:"files",defaultMessage:"Files"})]})]}),body:(0,t.jsxs)(d.f,{className:"min-w-full",children:[(0,t.jsxs)(d.f.Row,{header:!0,children:[(0,t.jsx)(d.f.Cell,{children:e({id:"file",defaultMessage:"File"})}),(0,t.jsx)(d.f.Cell,{children:e({id:"expires",defaultMessage:"Expires"})}),(0,t.jsx)(d.f.Cell,{children:" "})]}),l.files.map(l=>(0,t.jsxs)(d.f.Row,{children:[(0,t.jsx)(d.f.Cell,{className:"font-medium",children:l.name.replace(/([A-Z])/g," $1").trim()}),(0,t.jsx)(d.f.Cell,{className:"text-red-500 dark:text-red-400",children:h(l.expiresAt,f)}),(0,t.jsx)(d.f.Cell,{children:(0,t.jsx)(i.default,{href:l.url,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800 dark:text-blue-400 font-bold underline",children:e({id:"download",defaultMessage:"Download"})})})]},l.url))]})}));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.f,{depth:3,currentPageTitle:e({id:"recent_exports",defaultMessage:"Recent exports"})}),(0,t.jsxs)("div",{className:"flex justify-between items-end mb-4",children:[(0,t.jsx)(s.f,{title:e({id:"recent_exports_page_title",defaultMessage:"{count, plural, one {# Export} other {# Exports}}"},{count:w?.count||0}),headerText:e({id:"recent_exports_page_title",defaultMessage:"{count, plural, one {# Export} other {# Exports}}"},{count:w?.count||0})}),g&&(0,t.jsx)(u.f,{onClick:v,children:e({id:"show_all_exports",defaultMessage:"Show all exports"})})]}),w?.count?(0,t.jsx)(x.f,{data:k,headerCSS:"flex items-center rounded-lg shadow-sm",bodyCSS:"bg-slate-50 dark:bg-slate-800/50 rounded-b-lg border-x border-b dark:border-slate-800"}):(0,t.jsxs)("div",{className:"p-10 text-center border-2 border-dashed rounded-xl",children:[(0,t.jsx)("p",{className:"text-slate-500",children:e({id:"no_active_exports_found",defaultMessage:"No active files found or all links have expired."})}),g&&(0,t.jsx)("button",{onClick:v,className:"mt-4 text-blue-600 underline",children:e({id:"clear_filter",defaultMessage:"Clear filter"})})]})]})}])},88566,25575,e=>{var t=e.i(91788);let l=t.forwardRef(function({title:e,titleId:l,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":l},s),e?t.createElement("title",{id:l},e):null,t.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))});e.s(["f",0,l],88566);let s=t.forwardRef(function({title:e,titleId:l,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":l},s),e?t.createElement("title",{id:l},e):null,t.createElement("path",{fillRule:"evenodd",d:"M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z",clipRule:"evenodd"}))});e.s(["f",0,s],25575)}],94983,(e,t,l)=>{let s="/exports";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(71701)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([s])})}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,84818,e=>{var t=e.i(92042);e.i(27861);let n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={},a=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),i="06/25/2014, 00:00:00"===a||"06/25/2014 00:00:00"===a;function o(e,t,n,r,a,i,o){let u=new Date(0);return u.setUTCFullYear(e,t,n),u.setUTCHours(r,a,i,o),u}let u=/^(Z)$/,l=/^([+-]\d{2})$/,s=/^([+-])(\d{2}):?(\d{2})$/;function d(e,t,n){let r,a;if(!e)return 0;let i=u.exec(e);if(i)return 0;if(i=l.exec(e))return f(r=parseInt(i[1],10))?-(36e5*r):0/0;if(i=s.exec(e)){r=parseInt(i[2],10);let e=parseInt(i[3],10);return f(r,e)?(a=36e5*Math.abs(r)+6e4*e,"+"===i[1]?-a:a):0/0}if(function(e){if(h[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),h[e]=!0,!0}catch(e){return!1}}(e)){var d;t=new Date(t||Date.now());let r=c(n?t:o((d=t).getFullYear(),d.getMonth(),d.getDate(),d.getHours(),d.getMinutes(),d.getSeconds(),d.getMilliseconds()),e);return-(n?r:function(e,t,n){let r=e.getTime()-t,a=c(new Date(r),n);if(t===a)return t;let i=c(new Date(r-=a-t),n);return a===i?a:Math.max(a,i)}(t,r,e))}return 0/0}function c(e,t){var a,u,l;let s,d,c,f=(r[a=t]||(r[a]=i?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:a,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:a,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),"formatToParts"in(c=r[a])?function(e,t){try{let r=e.formatToParts(t),a=[];for(let e=0;e<r.length;e++){let t=n[r[e].type];void 0!==t&&(a[t]=parseInt(r[e].value,10))}return a}catch(e){if(e instanceof RangeError)return[0/0];throw e}}(c,e):(u=c,l=e,s=u.format(l),[parseInt((d=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(s))[3],10),parseInt(d[1],10),parseInt(d[2],10),parseInt(d[4],10),parseInt(d[5],10),parseInt(d[6],10)])),h=o(f[0],f[1]-1,f[2],f[3]%24,f[4],f[5],0).getTime(),m=e.getTime(),g=m%1e3;return h-(m-=g>=0?g:1e3+g)}function f(e,t){return -23<=e&&e<=23&&(null==t||0<=t&&t<=59)}let h={};function m(e){let t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e-t}let g=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,w=/^([0-9W+-]+)(T| )(.*)/,y=/^([0-9W+-]+)(.*)/,b=/^(\d{2})$/,p=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],v=/^(\d{4})/,D=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],M=/^-(\d{2})$/,x=/^-?(\d{3})$/,T=/^-?(\d{2})-?(\d{2})$/,k=/^-?W(\d{2})$/,S=/^-?W(\d{2})-?(\d{1})$/,P=/^(\d{2}([.,]\d*)?)$/,C=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,W=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/;function F(e,t={}){if(arguments.length<1)throw TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(0/0);let n=null==t.additionalDigits?2:Number(t.additionalDigits);if(2!==n&&1!==n&&0!==n)throw RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("[object String]"!==Object.prototype.toString.call(e))return new Date(0/0);let r=function(e){let t,n={},r=w.exec(e);if(r?(n.date=r[1],t=r[3]):(r=y.exec(e))?(n.date=r[1],t=r[2]):(n.date=null,t=e),t){let e=g.exec(t);e?(n.time=t.replace(e[1],""),n.timeZone=e[1].trim()):n.time=t}return n}(e),{year:a,restDateString:i}=function(e,t){if(e){let n=p[t],r=D[t],a=v.exec(e)||r.exec(e);if(a){let t=a[1];return{year:parseInt(t,10),restDateString:e.slice(t.length)}}if(a=b.exec(e)||n.exec(e)){let t=a[1];return{year:100*parseInt(t,10),restDateString:e.slice(t.length)}}}return{year:null}}(r.date,n),o=function(e,t){let n,r,a;if(null===t)return null;if(!e||!e.length)return(n=new Date(0)).setUTCFullYear(t),n;let i=M.exec(e);if(i)return(n=new Date(0),$(t,r=parseInt(i[1],10)-1))?(n.setUTCFullYear(t,r),n):new Date(0/0);if(i=x.exec(e)){n=new Date(0);let e=parseInt(i[1],10);return!function(e,t){if(t<1)return!1;let n=O(e);return(!n||!(t>366))&&(!!n||!(t>365))}(t,e)?new Date(0/0):(n.setUTCFullYear(t,0,e),n)}if(i=T.exec(e)){n=new Date(0),r=parseInt(i[1],10)-1;let e=parseInt(i[2],10);return $(t,r,e)?(n.setUTCFullYear(t,r,e),n):new Date(0/0)}if(i=k.exec(e))return j(a=parseInt(i[1],10)-1)?Y(t,a):new Date(0/0);if(i=S.exec(e)){a=parseInt(i[1],10)-1;let e=parseInt(i[2],10)-1;return j(a,e)?Y(t,a,e):new Date(0/0)}return null}(i,a);if(null===o||isNaN(o.getTime())||!o)return new Date(0/0);{let e,n=o.getTime(),a=0;if(r.time&&(null===(a=function(e){let t,n,r=P.exec(e);if(r)return q(t=parseFloat(r[1].replace(",",".")))?t%24*36e5:0/0;if(r=C.exec(e))return q(t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")))?t%24*36e5+6e4*n:0/0;if(r=W.exec(e)){t=parseInt(r[1],10),n=parseInt(r[2],10);let e=parseFloat(r[3].replace(",","."));return q(t,n,e)?t%24*36e5+6e4*n+1e3*e:0/0}return null}(r.time))||isNaN(a)))return new Date(0/0);if(r.timeZone||t.timeZone){if(isNaN(e=d(r.timeZone||t.timeZone,new Date(n+a))))return new Date(0/0)}else e=m(new Date(n+a)),e=m(new Date(n+a+e));return new Date(n+a+e)}}function Y(e,t,n){t=t||0,n=n||0;let r=new Date(0);r.setUTCFullYear(e,0,4);let a=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+a),r}let N=[31,28,31,30,31,30,31,31,30,31,30,31],I=[31,29,31,30,31,30,31,31,30,31,30,31];function O(e){return e%400==0||e%4==0&&e%100!=0}function $(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;let r=O(e);if(r&&n>I[t]||!r&&n>N[t])return!1}return!0}function j(e,t){return!(e<0)&&!(e>52)&&(null==t||!(t<0)&&!(t>6))}function q(e,t,n){return!(e<0)&&!(e>=25)&&(null==t||!(t<0)&&!(t>=60))&&(null==n||!(n<0)&&!(n>=60))}e.s(["f",0,()=>({formatDateTime:(e,t={})=>e&&Date.parse(e)?Intl.DateTimeFormat(void 0,t).format(new Date(e).getTime()):"n/a",getDateFormatPattern:()=>new Intl.DateTimeFormat(void 0).formatToParts(new Date).map(e=>{switch(e.type){case"day":return"d".repeat(e.value.length);case"month":return"M".repeat(e.value.length);case"year":return"y".repeat(e.value.length);case"literal":return e.value;default:return"dd.mm.yyyy"}}).join(""),parseDate:e=>(0,t.f)(function(e,t){if("string"==typeof e&&!e.match(g))return F(e,{timeZone:t});let n=o((e=F(e,void 0)).getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()).getTime(),r=d(t,new Date(n));return new Date(n+r)}(e,Intl.DateTimeFormat().resolvedOptions().timeZone),"yyyy-MM-dd")})],84818)},83147,e=>{let t=e=>e&&e?.split(",").reduce((e,t)=>{let[n=null,r=null]=(t||"")?.split("_")||[];return{...e,[n]:r}},null)||{};e.s(["S",0,(...e)=>e.filter(Boolean).join(" "),"R",0,e=>Object.entries(t(e))?.map(([e,t])=>({key:e,value:t})),"D",0,e=>e?.label&&e?.version?`${e.label} ${e.version}`:"","v",0,t,"Q",0,(e,t,n=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"region"}).of(t)} ${n?`(${t})`:""}`}catch{return t}},"j",0,(e,t,n=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"currency"}).of(t)} ${n?`(${t})`:""}`}catch{return t}},"I",0,(e,t,n=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"language"}).of(t)} ${n?`(${t})`:""}`}catch{return t}},"_",0,(e,t,n)=>{let r;return r=n?{...e,[n]:t}:e,Object.keys(r)?.map(e=>[e,r[e]].join("="))?.join("&")},"d",0,()=>({formatPrice:e=>{if(!e?.currencyCode)return"n/a";if(e?.amount===void 0||e?.amount===null)return"";let{amount:t,currencyCode:n}=e||{};return new Intl.NumberFormat(navigator.language,{style:"currency",currency:n}).format(t/100)}})])},92042,50216,27861,57322,24323,e=>{let t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function n(e){return (t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}let r={date:n({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:n({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:n({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function i(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,a=n?.width?String(n.width):t;r=e.formattingValues[a]||e.formattingValues[t]}else{let t=e.defaultWidth,a=n?.width?String(n.width):e.defaultWidth;r=e.values[a]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function o(e){return(t,n={})=>{let r,a=n.width,i=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;let u=o[0],l=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(l,e=>e.test(u)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(l,e=>e.test(u));return r=e.valueCallback?e.valueCallback(s):s,{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(u.length)}}}let u={code:"en-US",formatDistance:(e,n,r)=>{let a,i=t[e];if(a="string"==typeof i?i:1===n?i.one:i.other.replace("{{count}}",n.toString()),r?.addSuffix)if(r.comparison&&r.comparison>0)return"in "+a;else return a+" ago";return a},formatLong:r,formatRelative:(e,t,n,r)=>a[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:i({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:i({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:i({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:i({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:i({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(d={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{let n=e.match(d.matchPattern);if(!n)return null;let r=n[0],a=e.match(d.parsePattern);if(!a)return null;let i=d.valueCallback?d.valueCallback(a[0]):a[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:o({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:o({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:o({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:o({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:o({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};e.s(["f",0,u],50216);let l={};function s(){return l}e.s(["f",0,s],27861);var d,c=e.i(35113);function f(e){let t=(0,c.f)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-n}e.s(["f",0,f],57322);var h=e.i(98170);function m(e,...t){let n=h.f.bind(null,e||t.find(e=>"object"==typeof e));return t.map(n)}e.s(["f",0,m],24323);var g=e.i(2848),w=e.i(49543);function y(e,t){let n=s(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=(0,c.f)(e,t?.in),i=a.getDay();return a.setDate(a.getDate()-(7*(i<r)+i-r)),a.setHours(0,0,0,0),a}function b(e,t){return y(e,{...t,weekStartsOn:1})}function p(e,t){let n=(0,c.f)(e,t?.in),r=n.getFullYear(),a=(0,h.f)(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);let i=b(a),o=(0,h.f)(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let u=b(o);return n.getTime()>=i.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function v(e,t){let n=(0,c.f)(e,t?.in),r=n.getFullYear(),a=s(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,o=(0,h.f)(t?.in||e,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);let u=y(o,t),l=(0,h.f)(t?.in||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);let d=y(l,t);return+n>=+u?r+1:+n>=+d?r:r-1}function D(e,t){let n=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+n}let M={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return D("yy"===t?r%100:r,t.length)},M(e,t){let n=e.getMonth();return"M"===t?String(n+1):D(n+1,2)},d:(e,t)=>D(e.getDate(),t.length),a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>D(e.getHours()%12||12,t.length),H:(e,t)=>D(e.getHours(),t.length),m:(e,t)=>D(e.getMinutes(),t.length),s:(e,t)=>D(e.getSeconds(),t.length),S(e,t){let n=t.length;return D(Math.trunc(e.getMilliseconds()*Math.pow(10,n-3)),t.length)}},x={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){let t=e.getFullYear();return n.ordinalNumber(t>0?t:1-t,{unit:"year"})}return M.y(e,t)},Y:function(e,t,n,r){let a=v(e,r),i=a>0?a:1-a;return"YY"===t?D(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):D(i,t.length)},R:function(e,t){return D(p(e),t.length)},u:function(e,t){return D(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return D(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return D(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){let r=e.getMonth();switch(t){case"M":case"MM":return M.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return D(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){let a,i,o,u,l,d=Math.round((y(a=(0,c.f)(e,r?.in),r)-(i=s(),o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,u=v(a,r),(l=(0,h.f)(r?.in||a,0)).setFullYear(u,0,o),l.setHours(0,0,0,0),y(l,r)))/g.A)+1;return"wo"===t?n.ordinalNumber(d,{unit:"week"}):D(d,t.length)},I:function(e,t,n){let r,a,i,o=Math.round((b(r=(0,c.f)(e,void 0))-(a=p(r,void 0),(i=(0,h.f)(r,0)).setFullYear(a,0,4),i.setHours(0,0,0,0),b(i)))/g.A)+1;return"Io"===t?n.ordinalNumber(o,{unit:"week"}):D(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):M.d(e,t)},D:function(e,t,n){let r,a,i=function(e,t){let[n,r]=m(void 0,e,t),a=(0,w.f)(n),i=(0,w.f)(r);return Math.round((a-f(a)-(i-f(i)))/g._)}(r=(0,c.f)(e,void 0),((a=(0,c.f)(r,void 0)).setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a))+1;return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):D(i,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){let a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return D(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){let a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return D(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){let r=e.getDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return D(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){let r,a=e.getHours();switch(r=12===a?"noon":0===a?"midnight":a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){let r,a=e.getHours();switch(r=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return M.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):M.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):D(r,t.length)},k:function(e,t,n){let r=e.getHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):D(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):M.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):M.s(e,t)},S:function(e,t){return M.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return k(r);case"XXXX":case"XX":return S(r);default:return S(r,":")}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"x":return k(r);case"xxxx":case"xx":return S(r);default:return S(r,":")}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+T(r,":");default:return"GMT"+S(r,":")}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+T(r,":");default:return"GMT"+S(r,":")}},t:function(e,t,n){return D(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return D(+e,t.length)}};function T(e,t=""){let n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),i=r%60;return 0===i?n+String(a):n+String(a)+t+D(i,2)}function k(e,t){return e%60==0?(e>0?"-":"+")+D(Math.abs(e)/60,2):S(e,t)}function S(e,t=""){let n=Math.abs(e);return(e>0?"-":"+")+D(Math.trunc(n/60),2)+t+D(n%60,2)}let P=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},C=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},W={p:C,P:(e,t)=>{let n,r=e.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return P(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",P(a,t)).replace("{{time}}",C(i,t))}},F=/^D+$/,Y=/^Y+$/,N=["D","DD","YY","YYYY"];var I=e.i(9356);let O=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,j=/^'([^]*?)'?$/,q=/''/g,H=/[a-zA-Z]/;e.s(["f",0,function(e,t,n){let r=s(),a=n?.locale??r.locale??u,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=(0,c.f)(e,n?.in);if(!(0,I.f)(l))throw RangeError("Invalid time value");let d=t.match($).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,W[t])(e,a.formatLong):e}).join("").match(O).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t){var n;let t;return{isToken:!1,value:(t=(n=e).match(j))?t[1].replace(q,"'"):n}}if(x[t])return{isToken:!0,value:e};if(t.match(H))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});a.localize.preprocessor&&(d=a.localize.preprocessor(l,d));let f={firstWeekContainsDate:i,weekStartsOn:o,locale:a};return d.map(r=>{if(!r.isToken)return r.value;let i=r.value;return(!n?.useAdditionalWeekYearTokens&&Y.test(i)||!n?.useAdditionalDayOfYearTokens&&F.test(i))&&function(e,t,n){var r,a,i;let o,u=(r=e,a=t,i=n,o="Y"===r[0]?"years":"days of the month",`Use \`${r.toLowerCase()}\` instead of \`${r}\` (in \`${a}\`) for formatting ${o} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(console.warn(u),N.includes(e))throw RangeError(u)}(i,t,String(e)),(0,x[i[0]])(l,i,a.localize,f)}).join("")}],92042)},9356,e=>{var t=e.i(35113);e.s(["f",0,function(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,t.f)(e)))}],9356)},49543,e=>{var t=e.i(35113);e.s(["f",0,function(e,n){let r=(0,t.f)(e,n?.in);return r.setHours(0,0,0,0),r}])},35113,2848,98170,e=>{let t=Symbol.for("constructDateFrom");function n(e,n){return"function"==typeof e?e(n):e&&"object"==typeof e&&t in e?e[t](n):e instanceof Date?new e.constructor(n):new Date(n)}e.s(["C",0,t,"_",0,864e5,"r",0,36e5,"z",0,6e4,"A",0,6048e5,"k",0,1440,"d",0,43200,"l",0,525600],2848),e.s(["f",0,n],98170),e.s(["f",0,function(e,t){return n(t||e,e)}],35113)}])})();
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[61494,e=>{var t=e.i(91398),r=e.i(41158),a=e.i(3828),s=e.i(69322);e.s(["f",0,({routeName:e=null,currentPageTitle:n=null,depth:l=null})=>{let o=(0,a.useRouter)(),{formatMessage:i}=(0,s.S)(),d={home:"home",products:"products",orders:"orders",users:"users",assortments:"assortments",filters:"filters",tokens:"tokens",quotations:"quotations",enrollments:"enrollments",activities:"activities",works:"work_queue",events:"events",currency:"currencies",country:"countries",language:"languages","delivery-provider":"delivery_providers","payment-provider":"payment_providers","warehousing-provider":"warehousing_provider",system:"system",account:"account",new:"new",edit:"edit"},u=o.asPath?.split("/")?.filter((e,t)=>o.asPath?.split("/")?.indexOf(e)===t);if(1===u.length)return null;let c="";l&&u.splice(l),e&&(u[u.length-1]=e);let f=u?.map(t=>{if(c+=`${t}/`,!t)return{name:i({id:"home",defaultMessage:"Home"}),path:"/"};let r=t?.split("?")[0],a=e?r:r.replace(/-/g," "),s=d[r];return{name:s?i({id:s,defaultMessage:a}):decodeURIComponent(a),path:c.replace(/.$/,"")}});return(0,t.jsx)("nav",{className:"mb-5 hidden sm:flex lg:mt-5 lg:mb-8","aria-label":"Breadcrumb",children:(0,t.jsx)("ol",{className:"flex items-center space-x-4",children:f?.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-center",children:[0!==a&&(0,t.jsx)("svg",{className:"mr-4 h-5 w-5 shrink-0 text-slate-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,t.jsx)(r.default,{href:e.path,className:"text-sm font-medium capitalize text-slate-500 dark:text-slate-400 dark:hover:text-slate-300 hover:text-slate-700 focus:outline-hidden focus:ring-2 focus:ring-slate-800 rounded-md px-1 py-1",children:a===f.length-1&&n?n:e.name})]})},e.path))})})}])},81013,e=>{var t=e.i(91398),r=e.i(72043);e.s(["f",0,({text:e,children:a,onClick:s,className:n="",disabled:l=!1,id:o="",variant:i="primary",size:d="md",type:u="button",loading:c=!1,icon:f,iconRight:g,fullWidth:m=!1,rounded:p="md",ariaLabel:x,...b})=>{let h=a||e,y=(f||g)&&h?"gap-2":"";return(0,t.jsx)("button",{id:o,type:u,disabled:l||c,onClick:s,"aria-label":x,className:(0,r.default)("inline-flex items-center justify-center font-medium shadow-xs focus:outline-hidden focus:ring-2 focus:ring-offset-2 transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-50",{xs:"px-2.5 py-1.5 text-xs h-6",sm:"px-3 py-2 text-sm h-8",md:"px-4 py-2 text-sm h-9",lg:"px-6 py-3 text-base h-11"}[d],{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}[p],{primary:"border border-slate-800 dark:border-slate-600 bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:ring-slate-800 dark:focus:ring-slate-400",secondary:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-700 dark:text-slate-200 hover:bg-slate-50 dark:hover:bg-slate-700 focus:ring-slate-500",tertiary:"border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700 focus:ring-slate-400",quaternary:"bg-transparent text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",danger:"border border-rose-500 dark:border-rose-400 bg-white dark:bg-slate-800 text-rose-600 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/10 focus:ring-rose-500",ghost:"bg-transparent border border-transparent text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",success:"border border-emerald-500 dark:border-emerald-400 bg-emerald-50 dark:bg-emerald-900/20 text-emerald-600 dark:text-emerald-400 hover:bg-emerald-100 dark:hover:bg-emerald-900/30 focus:ring-emerald-500",neutral:"border border-slate-300 dark:border-slate-600 bg-slate-100 dark:bg-slate-700 text-slate-600 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:ring-slate-400",input:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-900 dark:text-slate-100 hover:border-slate-400 dark:hover:border-slate-500 focus:ring-slate-500 focus:border-slate-500"}[i],y,{"w-full":m},n),...b,children:c?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),h]}):(0,t.jsxs)(t.Fragment,{children:[f,h,g]})})}])},81359,e=>{var t=e.i(91398),r=e.i(24608),a=e.i(69322);e.s(["f",0,({onClick:e,text:s=null,Icon:n=null})=>{let{formatMessage:l}=(0,a.S)();return(0,t.jsxs)("button",{type:"button",onClick:e,"aria-describedby":"header-delete-button",className:"inline-flex items-center gap-2 justify-center rounded-md border border-rose-500 px-4 py-2 text-sm font-medium leading-5 text-rose-600 dark:text-rose-200 shadow-sm hover:border-rose-600 hover:bg-rose-600 hover:text-white focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 h-[38px]",children:[(0,t.jsx)("span",{children:n||(0,t.jsx)(r.f,{className:"h-5 w-5"})}),s||l({id:"delete",defaultMessage:"Delete"})]})}])},17644,e=>{var t=e.i(91398),r=e.i(58678),a=e.i(41158),s=e.i(69322),n=e.i(37369),l=e.i(81013);e.s(["f",0,({headerText:e=null,onEdit:o=null,onDelete:i=null,children:d=null,title:u=null,addPath:c=null,addButtonText:f=null})=>{let{formatMessage:g}=(0,s.S)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{children:(0,t.jsxs)("title",{children:["Unchained AdminUI - ",u||e," "]})}),(0,t.jsx)("div",{className:"flex gap-3 flex-wrap items-center justify-between",children:(0,t.jsxs)("div",{className:"flex items-center flex-wrap justify-between w-full gap-4",children:[e&&(0,t.jsx)("h2",{className:"text-2xl font-medium text-slate-900 dark:text-slate-300 sm:truncate sm:text-3xl lg:text-4xl",children:e}),(0,t.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[d,c&&(0,t.jsx)(a.default,{href:c,children:(0,t.jsx)(l.f,{variant:"secondary",icon:(0,t.jsx)(n.f,{className:"h-5 w-5"}),text:f||g({id:"add",defaultMessage:"Add"})})}),o&&(0,t.jsx)(l.f,{variant:"secondary",onClick:o,text:g({id:"edit",defaultMessage:"Edit"})}),i&&(0,t.jsx)(l.f,{variant:"danger",onClick:i,text:g({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},64591,e=>{var t=e.i(91398),r=e.i(72043),a=e.i(3828),s=e.i(83147);e.s(["f",0,({toggleText:e="",toggleKey:n=null,onToggle:l=null,active:o=!1,className:i="",disabled:d=!1,...u})=>{let c=(0,a.useRouter)(),f=c?.query?.[n]==="true"||o;return(0,t.jsxs)("div",{className:(0,r.default)("",i),children:[(0,t.jsxs)("button",{id:n,disabled:d,type:"button",className:(0,r.default)("relative inline-flex h-3.5 w-9 shrink-0 cursor-pointer rounded-full border-1 border-transparent transition-all duration-200 ease-in-out focus:outline-hidden focus:ring-2 focus:ring-slate-400 focus:ring-offset-2",{"bg-slate-200 dark:bg-slate-700":!f,"bg-emerald-500 dark:bg-emerald-600 shadow-sm":f}),role:"switch",onClick:l||(()=>{let{skip:e,...t}=c.query;c.push({query:(0,s._)(t,!f,n)})}),"aria-checked":f?"true":"false",...u,children:[(0,t.jsx)("span",{className:"sr-only",children:e}),(0,t.jsxs)("span",{className:(0,r.default)("ml-0.5 pointer-events-none relative inline-block h-3 w-3 transform rounded-full bg-white shadow-sm ring-0 transition-all duration-200 ease-in-out",{"translate-x-5 shadow-md":f,"translate-x-0":!f}),children:[(0,t.jsx)("span",{className:(0,r.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-0 duration-100 ease-out":f,"opacity-100 duration-200 ease-in":!f}),"aria-hidden":"true",children:(0,t.jsx)("svg",{className:"h-3 w-3 text-slate-400",fill:"none",viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)("span",{className:(0,r.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-100 duration-200 ease-in":f,"opacity-0 duration-100 ease-out":!f}),"aria-hidden":"true",children:(0,t.jsx)("svg",{className:"h-3 w-3 text-emerald-500",fill:"currentColor",viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"})})})]})]}),(0,t.jsx)("span",{className:"ml-3",id:"annual-billing-label",children:(0,t.jsx)("span",{className:"text-sm font-medium text-slate-900 dark:text-slate-200",children:e})})]})}])},73319,e=>{let t=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["Q",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"C",0,t,"T",0,e=>!(!e||null==e||t(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},83147,e=>{let t=e=>e&&e?.split(",").reduce((e,t)=>{let[r=null,a=null]=(t||"")?.split("_")||[];return{...e,[r]:a}},null)||{};e.s(["S",0,(...e)=>e.filter(Boolean).join(" "),"R",0,e=>Object.entries(t(e))?.map(([e,t])=>({key:e,value:t})),"D",0,e=>e?.label&&e?.version?`${e.label} ${e.version}`:"","v",0,t,"Q",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"region"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"j",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"currency"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"I",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"language"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"_",0,(e,t,r)=>{let a;return a=r?{...e,[r]:t}:e,Object.keys(a)?.map(e=>[e,a[e]].join("="))?.join("&")},"d",0,()=>({formatPrice:e=>{if(!e?.currencyCode)return"n/a";if(e?.amount===void 0||e?.amount===null)return"";let{amount:t,currencyCode:r}=e||{};return new Intl.NumberFormat(navigator.language,{style:"currency",currency:r}).format(t/100)}})])},99160,e=>{var t=e.i(91398),r=e.i(72043),a=e.i(38865),s=e.i(61898);e.s(["f",0,({label:e,disabled:n=!1,className:l="",hidden:o=!1,...i})=>{let d=(0,a.m)(),{...u}=i,c=Object.fromEntries(Object.keys(d.initialValues).map(e=>[e,d.getFieldMeta(e)])),{disabled:f}=(0,s.f)(),g=Object.values(c).reduce((e,{error:t,touched:r})=>e||t&&r,!1),m=n||f||d.isSubmitting||g,p=d.isSubmitting&&!g,x=(n||f||g)&&!d.isSubmitting;return(0,t.jsx)("input",{className:(0,r.default)("inline-flex cursor-pointer justify-center rounded-sm border border-slate-300 px-4 py-2 text-center text-sm font-medium leading-5 shadow-sm hover:shadow-md focus:ring-slate-800 dark:focus:ring-slate-400",l,{"bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900":x,"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600":p,"bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent":!m,hidden:o}),"aria-label":e,type:"submit",value:e,disabled:m,...u})}])},45229,e=>{var t=e.i(91398),r=e.i(72043),a=e.i(82226),s=e.i(60741),n=e.i(29691);e.s(["f",0,({maxLength:e=0,validators:l=[],...o})=>{let i=(0,s.f)({validators:[...l,e&&(0,a.f)(e)],...o});return(0,t.jsx)(n.f,{...i,children:(0,t.jsx)("input",{className:(0,r.default)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-600 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 focus:outline-hidden focus:ring-2 focus:ring-slate-800 shadow-xs",{"border-rose-700 placeholder:text-rose-500":!!i.error,"border-slate-300 placeholder-slate-400":!i.error}),disabled:i.disabled,id:i.name,name:i.name,onChange:i.onChange,onClick:e=>{e.stopPropagation()},onBlur:i.onBlur,placeholder:i.placeholder,autoComplete:i.autoComplete||"off",type:i.type||"text",value:i.value,autoFocus:i.autoFocus})})}])},95148,e=>{var t=e.i(91398),r=e.i(69322),a=e.i(66773),s=e.i(58971),n=e.i(64591),l=e.i(69211),o=e.i(99160),i=e.i(45229),d=e.i(98949),u=e.i(82226);e.s(["f",0,({onSubmit:e,onSubmitSuccess:c=null,isEdit:f=!1,defaultValue:g})=>{let{formatMessage:m}=(0,r.S)(),{hasRole:p}=(0,s.f)(),x=m({id:"language_added",defaultMessage:"Language added successfully!"}),b=m({id:"language_updated",defaultMessage:"Language updated successfully!"}),h=(0,d.f)({submit:e,onSubmitSuccess:c,successMessage:f?b:x,getSubmitErrorMessage:e=>{if(e?.message?.includes("duplicate"))return h.formik.setFieldError("isoCode",m({id:"language_exists",defaultMessage:"Language with the same ISO code already exists"})),""},enableReinitialize:!0,initialValues:{isoCode:"",isActive:"",...g}});return(0,t.jsxs)(l.f,{form:h,children:[(0,t.jsxs)("div",{className:"p-5",children:[(0,t.jsx)(i.f,{name:"isoCode",disabled:!p(a.C.ManageLanguages),id:"isoCode",validators:[(0,u.y)()],label:m({id:"iso_code",defaultMessage:"ISO code"}),autoComplete:"on",required:!0}),f&&(0,t.jsx)("div",{className:"mt-5 flex items-center flex-wrap",children:(0,t.jsx)(n.f,{toggleText:m({id:"active",defaultMessage:"Active"}),disabled:!p(a.C.ManageLanguages),active:h.formik.values.isActive,onToggle:()=>h.formik.setFieldValue("isActive",!h.formik.values.isActive)})})]}),p(a.C.ManageLanguages)&&(0,t.jsx)("div",{className:"border-t-slate-100 border-t dark:border-t-slate-700 mt-5 space-y-6 bg-slate-50 dark:bg-slate-900 p-5 text-right",children:(0,t.jsx)(o.f,{label:f?m({id:"update_language",defaultMessage:"Update Language"}):m({id:"add_language",defaultMessage:"Add Language"})})})]})}])},89062,e=>{var t=e.i(59080),r=e.i(32171),a=e.i(70693),s=e.i(95064);e.s(["f",0,({languageId:e})=>{let{customProperties:n}=(0,a.f)(),{data:l,loading:o,error:i}=(0,r.f)(((e="")=>t.f`
|
|
2
|
+
query Language($languageId: ID!) {
|
|
3
|
+
language(languageId: $languageId) {
|
|
4
|
+
...LanguageFragment
|
|
5
|
+
${e}
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
${s.f}
|
|
9
|
+
`)(n?.Language),{skip:!e,variables:{languageId:e}});return{language:l?.language,loading:o,error:i}}])},83735,e=>{var t=e.i(59080),r=e.i(76204),a=e.i(95064);let s=t.f`
|
|
10
|
+
mutation RemoveLanguage($languageId: ID!) {
|
|
11
|
+
removeLanguage(languageId: $languageId) {
|
|
12
|
+
...LanguageFragment
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
${a.f}
|
|
16
|
+
`;e.s(["f",0,()=>{let[e]=(0,r.f)(s);return{removeLanguage:async({languageId:t})=>e({variables:{languageId:t},refetchQueries:["ShopStatus","ShopInfo","Languages"]})}}])},15971,e=>{var t=e.i(91398),r=e.i(69322);e.s(["f",0,({onOkClick:e,onCancelClick:a,okText:s=null,cancelText:n=null,headerText:l=null,message:o=null,icon:i=null,close:d=null})=>{let{formatMessage:u}=(0,r.S)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sm:flex sm:items-start",children:[i||(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900/30 sm:mx-0 sm:h-10 sm:w-10",children:(0,t.jsx)("svg",{className:"h-6 w-6 text-rose-600 dark:text-rose-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,t.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,t.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",id:"modal-title",children:l||u({id:"warning",defaultMessage:"Warning!"})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("p",{className:"text-sm text-slate-500 dark:text-slate-200",children:o||u({id:"are_you_sure",defaultMessage:"Are you sure?"})})})]})]}),(0,t.jsxs)("div",{className:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse",children:[(0,t.jsx)("button",{id:"danger_continue",onClick:e,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-rose-600 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-rose-700 focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",children:s||u({id:"continue",defaultMessage:"Continue"})}),(0,t.jsx)("button",{id:"danger_cancel",onClick:a||d,type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-slate-300 bg-white px-4 py-2 text-base font-medium text-slate-700 shadow-xs hover:bg-slate-50 focus:outline-hidden focus:ring-2 focus:ring-slate-800 focus:ring-offset-2 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",children:n||u({id:"cancel",defaultMessage:"Cancel"})})]})]})}])},6607,e=>{var t=e.i(91788),r=e.i(6444);e.s(["f",0,()=>(0,t.useContext)(r.f)])},98450,e=>{var t=e.i(91398),r=e.i(3828),a=e.i(66773),s=e.i(69322),n=e.i(28401),l=e.i(95148),o=e.i(89062),i=e.i(83735),d=e.i(59080),u=e.i(76204),c=e.i(95064);let f=d.f`
|
|
17
|
+
mutation UpdateLanguage($language: UpdateLanguageInput!, $languageId: ID!) {
|
|
18
|
+
updateLanguage(language: $language, languageId: $languageId) {
|
|
19
|
+
...LanguageFragment
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
${c.f}
|
|
23
|
+
`;var g=e.i(17644),m=e.i(61494),p=e.i(15971),x=e.i(6607),b=e.i(81359),h=e.i(5505),y=e.i(12197),v=e.i(58971);e.s(["default",0,({languageId:e})=>{let{updateLanguage:d}=(()=>{let[e]=(0,u.f)(f);return{updateLanguage:async({language:{isoCode:t,isActive:r},languageId:a})=>e({variables:{language:{isoCode:t,isActive:r},languageId:a},refetchQueries:["ShopStatus","ShopInfo","Languages"]})}})(),{push:c}=(0,r.useRouter)(),{setModal:j}=(0,x.f)(),{removeLanguage:w}=(0,i.f)(),{language:k,loading:C}=(0,o.f)({languageId:e}),{hasRole:$}=(0,v.f)(),{formatMessage:N,locale:M}=(0,s.S)(),S=async({isoCode:t,isActive:r})=>(await d({language:{isoCode:t,isActive:r},languageId:e}),!0),L=async()=>{await j((0,t.jsx)(p.f,{onCancelClick:async()=>j(""),message:N({id:"delete_language_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this language?"}),onOkClick:async()=>{j(""),await w({languageId:e}),n.c.success(N({id:"language_deleted",defaultMessage:"Language deleted successfully"})),c("/language")},okText:N({id:"delete_language",defaultMessage:"Delete language"})}))},_=e=>e?`${new Intl.DisplayNames([M],{type:"language"}).of(k.isoCode)} (${e})`:"";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.f,{currentPageTitle:_(k?.isoCode)}),(0,t.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,t.jsx)(g.f,{headerText:_(k?.isoCode)}),$(a.C.ManageLanguages)&&(0,t.jsx)(b.f,{onClick:L})]}),C?(0,t.jsx)(y.f,{}):(0,t.jsx)("div",{className:"mx-auto mt-6 sm:max-w-xl",children:(0,t.jsx)(h.U,{children:(0,t.jsx)(l.f,{isEdit:!0,defaultValue:k,onSubmit:S})})})]})}],98450)},76204,e=>{var t=e.i(24669),r=e.i(91788),a=e.i(30928),s=e.i(52006);let n=e.i(21953).f?r.useLayoutEffect:r.useEffect;var l=e.i(98926);function o(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["f",0,function(e,i){let d=(0,l.f)(i?.client),[u,c]=r.useState(()=>o(d)),f=r.useRef({result:u,mutationId:0,isMounted:!0,client:d,mutation:e,options:i});n(()=>{Object.assign(f.current,{client:d,options:i,mutation:e})});let g=r.useCallback((e={})=>{let{options:r,mutation:n}=f.current,l={...r,mutation:n},o=e.client||f.current.client,i="function"==typeof e.context?e.context(r?.context):e.context;!f.current.result.loading&&f.current.isMounted&&c(f.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:o});let d=++f.current.mutationId,u=(0,a.f)(l,{...e,context:i});return(0,s.f)(o.mutate(u).then(r=>{let{data:a,error:s}=r,n=e.onError||f.current.options?.onError;if(s&&n&&n(s,u),d===f.current.mutationId){let e={called:!0,loading:!1,data:a,error:s,client:o};f.current.isMounted&&!(0,t.f)(f.current.result,e)&&c(f.current.result=e)}let l=e.onCompleted||f.current.options?.onCompleted;return s||l?.(r.data,u),r},r=>{if(d===f.current.mutationId&&f.current.isMounted){let e={loading:!1,error:r,data:void 0,called:!0,client:o};(0,t.f)(f.current.result,e)||c(f.current.result=e)}let a=e.onError||f.current.options?.onError;throw a&&a(r,u),r}))},[]),m=r.useCallback(()=>{if(f.current.isMounted){let e=o(f.current.client);Object.assign(f.current,{mutationId:0,result:e}),c(e)}},[]);return r.useEffect(()=>{let e=f.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[g,{reset:m,...u}]}],76204)},37369,e=>{var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...a},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["f",0,r],37369)},24608,e=>{var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...a},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))});e.s(["f",0,r],24608)},9356,e=>{var t=e.i(35113);e.s(["f",0,function(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,t.f)(e)))}],9356)},49543,e=>{var t=e.i(35113);e.s(["f",0,function(e,r){let a=(0,t.f)(e,r?.in);return a.setHours(0,0,0,0),a}])},35113,2848,98170,e=>{let t=Symbol.for("constructDateFrom");function r(e,r){return"function"==typeof e?e(r):e&&"object"==typeof e&&t in e?e[t](r):e instanceof Date?new e.constructor(r):new Date(r)}e.s(["C",0,t,"_",0,864e5,"r",0,36e5,"z",0,6e4,"A",0,6048e5,"k",0,1440,"d",0,43200,"l",0,525600],2848),e.s(["f",0,r],98170),e.s(["f",0,function(e,t){return r(t||e,e)}],35113)},34980,(e,t,r)=>{var a=e.r(49957),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(e){return a.isMemo(e)?l:o[e.$$typeof]||s}o[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[a.Memo]=l;var d=Object.defineProperty,u=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,m=Object.prototype;t.exports=function e(t,r,a){if("string"!=typeof r){if(m){var s=g(r);s&&s!==m&&e(t,s,a)}var l=u(r);c&&(l=l.concat(c(r)));for(var o=i(t),p=i(r),x=0;x<l.length;++x){var b=l[x];if(!n[b]&&!(a&&a[b])&&!(p&&p[b])&&!(o&&o[b])){var h=f(r,b);try{d(t,b,h)}catch(e){}}}}return t}},40563,(e,t,r)=>{var a="function"==typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103,n=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,o=a?Symbol.for("react.strict_mode"):60108,i=a?Symbol.for("react.profiler"):60114,d=a?Symbol.for("react.provider"):60109,u=a?Symbol.for("react.context"):60110,c=a?Symbol.for("react.async_mode"):60111,f=a?Symbol.for("react.concurrent_mode"):60111,g=a?Symbol.for("react.forward_ref"):60112,m=a?Symbol.for("react.suspense"):60113,p=a?Symbol.for("react.suspense_list"):60120,x=a?Symbol.for("react.memo"):60115,b=a?Symbol.for("react.lazy"):60116,h=a?Symbol.for("react.block"):60121,y=a?Symbol.for("react.fundamental"):60117,v=a?Symbol.for("react.responder"):60118,j=a?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case s:switch(e=e.type){case c:case f:case l:case i:case o:case m:return e;default:switch(e=e&&e.$$typeof){case u:case g:case b:case x:case d:return e;default:return t}}case n:return t}}}function k(e){return w(e)===f}r.AsyncMode=c,r.ConcurrentMode=f,r.ContextConsumer=u,r.ContextProvider=d,r.Element=s,r.ForwardRef=g,r.Fragment=l,r.Lazy=b,r.Memo=x,r.Portal=n,r.Profiler=i,r.StrictMode=o,r.Suspense=m,r.isAsyncMode=function(e){return k(e)||w(e)===c},r.isConcurrentMode=k,r.isContextConsumer=function(e){return w(e)===u},r.isContextProvider=function(e){return w(e)===d},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},r.isForwardRef=function(e){return w(e)===g},r.isFragment=function(e){return w(e)===l},r.isLazy=function(e){return w(e)===b},r.isMemo=function(e){return w(e)===x},r.isPortal=function(e){return w(e)===n},r.isProfiler=function(e){return w(e)===i},r.isStrictMode=function(e){return w(e)===o},r.isSuspense=function(e){return w(e)===m},r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===f||e===i||e===o||e===m||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===x||e.$$typeof===d||e.$$typeof===u||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===j||e.$$typeof===h)},r.typeOf=w},49957,(e,t,r)=>{e.i(50461),t.exports=e.r(40563)}],39541,(e,t,r)=>{let a="/language/LanguageDetailPage";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(98450)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([a])})}]);
|