@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,33 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[81359,e=>{var t=e.i(91398),r=e.i(24608),i=e.i(69322);e.s(["f",0,({onClick:e,text:n=null,Icon:s=null})=>{let{formatMessage:a}=(0,i.S)();return(0,t.jsxs)("button",{type:"button",onClick:e,"aria-describedby":"header-delete-button",className:"inline-flex items-center gap-2 justify-center rounded-md border border-rose-500 px-4 py-2 text-sm font-medium leading-5 text-rose-600 dark:text-rose-200 shadow-sm hover:border-rose-600 hover:bg-rose-600 hover:text-white focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 h-[38px]",children:[(0,t.jsx)("span",{children:s||(0,t.jsx)(r.f,{className:"h-5 w-5"})}),n||a({id:"delete",defaultMessage:"Delete"})]})}])},11056,e=>{var t=e.i(91398),r=e.i(91788),i=e.i(5505),n=e.i(57561);e.s(["f",0,({children:e,onlyFull:s=!1})=>{let{languageDialectList:a,selectedLocale:o,setSelectedLocale:l}=(0,n.f)(),u=(0,r.useContext)(i.W),d=a.filter(e=>!s||e.isoCode.includes("-"));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`w-fit mt-5 mb-3 ${u?"ml-5":""}`,children:(0,t.jsx)("select",{id:"locale-wrapper",className:"cursor-pointer rounded-md border-1 border-slate-300 dark:border-slate-700 py-1 pr-8 text-sm lg:py-1 lg:pr-10 text-black dark:text-white dark:bg-slate-800 shadow-xs focus:outline-hidden focus:ring-2 focus:ring-slate-800",value:o||"",onChange:e=>{e.stopPropagation(),l(e.target.value)},children:d?.map(e=>(0,t.jsx)("option",{value:e.isoCode,children:e.isoCode},e._id))})}),(0,t.jsx)("div",{children:r.default.cloneElement(e)})]})}])},16371,e=>{var t=e.i(91788),r=e.i(30943);e.s(["f",0,({children:e,container:i=null,className:n=""})=>{let s=(0,t.useRef)(null),[a,o]=(0,t.useState)(!1);return((0,t.useEffect)(()=>{let e=document.createElement("div");n&&(e.className=n),s.current=e;let t=i||document.body;return t.appendChild(e),o(!0),()=>{s.current&&t.contains(s.current)&&t.removeChild(s.current)}},[i,n]),a&&s.current)?(0,r.createPortal)(e,s.current):null}])},3095,e=>{var t=e.i(91398),r=e.i(91788),i=e.i(69322),n=e.i(86712),s=e.i(76842),a=e.i(24557),o=e.i(16371);e.s(["f",0,({onEdit:e,onDelete:l,editLabel:u,deleteLabel:d,showEdit:c=!0,showDelete:h=!0})=>{let{formatMessage:f}=(0,i.S)(),[m,p]=(0,r.useState)(!1),[g,x]=(0,r.useState)({top:0,left:0}),_=(0,r.useRef)(null),y=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{_.current&&!_.current.contains(e.target)&&p(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let b=(e,t)=>{e.stopPropagation(),e.preventDefault(),t&&t(),p(!1)};return 0===[c&&e,h&&l].filter(Boolean).length?null:(0,t.jsxs)("div",{className:"flex justify-end w-full",children:[(0,t.jsx)("button",{ref:y,type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),m||(()=>{if(!y.current)return;let e=y.current.getBoundingClientRect(),t=e.bottom+4,r=e.right-192;r<8&&(r=8),t+80>window.innerHeight-8&&(t=e.top-80-4),x({top:t,left:r})})(),p(!m)},className:"flex items-center justify-center w-8 h-8 rounded-md hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors","aria-label":f({id:"table_actions_menu",defaultMessage:"Actions menu"}),children:(0,t.jsx)(n.f,{className:"w-5 h-5 text-slate-500 dark:text-slate-400"})}),m&&(0,t.jsx)(o.f,{children:(0,t.jsx)("div",{ref:_,className:"fixed w-48 bg-white dark:bg-slate-800 rounded-md shadow-xl border border-slate-200 dark:border-slate-700 z-[9999]",style:{top:g.top,left:g.left},children:(0,t.jsxs)("div",{className:"py-1",children:[c&&e&&(0,t.jsxs)("button",{type:"button",onClick:t=>b(t,e),className:"flex items-center w-full px-4 py-2 text-sm text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors",children:[(0,t.jsx)(s.f,{className:"mr-3 h-5 w-5"}),u||f({id:"edit",defaultMessage:"Edit"})]}),h&&l&&(0,t.jsxs)("button",{type:"button",onClick:e=>b(e,l),className:"flex items-center w-full px-4 py-2 text-sm text-rose-500 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/20 transition-colors",children:[(0,t.jsx)(a.f,{className:"mr-3 h-5 w-5"}),d||f({id:"delete",defaultMessage:"Delete"})]})]})})})]})}])},60513,75284,e=>{var t=e.i(91788),r=e.i(28401),i=e.i(69322),n=e.i(30086),s=e.i(66773),a=e.i(98926),o=e.i(63104),l=e.i(3828);e.s(["f",0,()=>{let[e,u]=(0,t.useState)(!1),d=(0,a.f)(),c=(0,l.useRouter)(),{addWork:h}=(0,n.f)(),{formatMessage:f}=(0,i.S)(),m=(0,t.useCallback)(async e=>{let{data:t}=await d.query({query:(0,o.k)(),variables:{workId:e},fetchPolicy:"network-only"});return t?.work??null},[d]);return{isExporting:e,exportCSV:(0,t.useCallback)(async({type:e,pollInterval:t=2e3,...i})=>{u(!0);try{let r=await h({type:s.i.BulkExport,input:{type:e,...i}}),n=r?.data?.addWork?._id;if(!n)throw Error("Failed to create export work");await new Promise((e,r)=>{let i=setInterval(async()=>{try{let t=await m(n);if(!t)throw Error("Work not found");(t.status===s.h.Success||t.status===s.h.Failed)&&(clearInterval(i),t.status===s.h.Success&&t.success?(c.push(`/exports?workId=${t._id}`),e(t)):r(t.error||Error("Export failed")))}catch(e){clearInterval(i),r(e)}},t)})}catch(e){return console.error("Export failed:",e),r.c.error(f({id:"export_failed",defaultMessage:"Export failed. Please try again."})),null}finally{u(!1)}},[h,m,c,f])}}],60513);var u=e.i(91398),d=e.i(69211),c=e.i(64127),h=e.i(98949),f=e.i(99160);e.s(["f",0,function({options:e,onSubmit:r,loading:n=!1,successMessage:s=""}){let{formatMessage:a}=(0,i.S)(),o=(0,t.useMemo)(()=>e.reduce((e,t)=>(e[t.key]=t.defaultChecked??!0,e),{}),[e]),l=async e=>(await r(e),{success:!0}),m=(0,h.f)({successMessage:s||a({id:"export_completed",defaultMessage:"Data exported successfully"}),submit:l,enableReinitialize:!0,initialValues:o});return(0,u.jsx)(d.f,{form:m,children:m.formik.isSubmitting?(0,u.jsxs)("div",{className:"flex items-center gap-3 p-4 mb-4 rounded-lg animate-pulse",children:[(0,u.jsx)("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),(0,u.jsx)("span",{className:"text-sm font-medium text-blue-700 dark:text-blue-300",children:a({id:"exporting_message",defaultMessage:"Generating your export files. This may take a moment..."})})]}):(0,u.jsxs)("fieldset",{disabled:n,style:{border:"none",padding:0},children:[(0,u.jsxs)("h3",{children:[" ",a({id:"export_options",defaultMessage:"Export options"})]}),e.map(e=>(0,u.jsx)(c.f,{name:e.key,label:e.label,hideLabel:!0,className:"mr-2 h-4 w-4 justify-between rounded-sm border-slate-300 dark:border-slate-600 bg-white text-slate-950 focus:ring-slate-800 lg:items-center",type:"checkbox"},e.key)),(0,u.jsx)(f.f,{label:a({id:"submit",defaultMessage:"Submit"}),disabled:n})]})})}],75284)},78193,e=>{var t=e.i(91788),r=e.i(69322),i=e.i(30086),n=e.i(66773);e.s(["f",0,({validate:e,process:s})=>{let{addWork:a}=(0,i.f)(),[o,l]=(0,t.useState)(!1),u=(0,r.S)();return{isImporting:o,importItems:async t=>{let r={success:0,failed:0,errors:[]};try{l(!0);let i=e(t,u);i.length>0&&(r.failed+=i.length,r.errors.push(...i));let o=await s(t);for(let e=0;e<o.length;e+=100){let t=o.slice(e,e+100);try{await a({type:n.i.BulkImport,input:{createShouldUpsertIfIDExists:!0,events:t}}),r.success+=t.length}catch(i){console.error("Batch import failed:",i),r.failed+=t.length,r.errors.push(`Batch starting at index ${e} failed: ${i.message}`)}}return l(!1),r}catch(e){return console.error("Import failed:",e),l(!1),r.errors.push(e.message||"Unknown error"),r}}}}])},16785,e=>{e.s(["f",0,(e,t)=>{let r=new Blob([e],{type:"text/csv;charset=utf-8;"}),i=document.createElement("a");if(void 0!==i.download){let e=URL.createObjectURL(r);i.setAttribute("href",e),i.setAttribute("download",t),i.style.visibility="hidden",document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(e)}}])},22003,e=>{e.s(["f",0,e=>{if("string"==typeof e&&e.trim())try{let t=JSON.parse(e);return t&&"object"==typeof t&&Object.keys(t).length?t:void 0}catch{return}}])},83147,e=>{let t=e=>e&&e?.split(",").reduce((e,t)=>{let[r=null,i=null]=(t||"")?.split("_")||[];return{...e,[r]:i}},null)||{};e.s(["S",0,(...e)=>e.filter(Boolean).join(" "),"R",0,e=>Object.entries(t(e))?.map(([e,t])=>({key:e,value:t})),"D",0,e=>e?.label&&e?.version?`${e.label} ${e.version}`:"","v",0,t,"Q",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"region"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"j",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"currency"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"I",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"language"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"_",0,(e,t,r)=>{let i;return i=r?{...e,[r]:t}:e,Object.keys(i)?.map(e=>[e,i[e]].join("="))?.join("&")},"d",0,()=>({formatPrice:e=>{if(!e?.currencyCode)return"n/a";if(e?.amount===void 0||e?.amount===null)return"";let{amount:t,currencyCode:r}=e||{};return new Intl.NumberFormat(navigator.language,{style:"currency",currency:r}).format(t/100)}})])},64127,e=>{var t=e.i(91398),r=e.i(72043),i=e.i(60741);e.s(["f",0,e=>{let{disabled:n,labelClassName:s,containerClassName:a,inputClassName:o,...l}=e,u=(0,i.f)({...e,type:"checkbox"});return(0,t.jsxs)("div",{className:(0,r.default)("",{"text-rose-600":!!u.error,checkbox:!0,disabled:u.disabled,required:u.required},a),children:[(0,t.jsx)("input",{checked:!!u.value,disabled:n,id:u.name,name:u.name,onChange:u.onChange,onBlur:u.onBlur,type:"checkbox",className:(0,r.default)("h-4 w-4 rounded-xs border-slate-300 dark:border-slate-600 bg-white dark:!bg-slate-800 text-indigo-600 dark:text-slate-200 focus:ring-slate-800",o,e.className),...l}),(0,t.jsx)("label",{htmlFor:u.name,className:(0,r.default)("text-sm text-slate-900 dark:text-slate-200",s,{"text-danger":!!u.error}),children:u.label})]})}])},15971,e=>{var t=e.i(91398),r=e.i(69322);e.s(["f",0,({onOkClick:e,onCancelClick:i,okText:n=null,cancelText:s=null,headerText:a=null,message:o=null,icon:l=null,close:u=null})=>{let{formatMessage:d}=(0,r.S)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sm:flex sm:items-start",children:[l||(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900/30 sm:mx-0 sm:h-10 sm:w-10",children:(0,t.jsx)("svg",{className:"h-6 w-6 text-rose-600 dark:text-rose-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,t.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,t.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",id:"modal-title",children:a||d({id:"warning",defaultMessage:"Warning!"})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("p",{className:"text-sm text-slate-500 dark:text-slate-200",children:o||d({id:"are_you_sure",defaultMessage:"Are you sure?"})})})]})]}),(0,t.jsxs)("div",{className:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse",children:[(0,t.jsx)("button",{id:"danger_continue",onClick:e,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-rose-600 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-rose-700 focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",children:n||d({id:"continue",defaultMessage:"Continue"})}),(0,t.jsx)("button",{id:"danger_cancel",onClick:i||u,type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-slate-300 bg-white px-4 py-2 text-base font-medium text-slate-700 shadow-xs hover:bg-slate-50 focus:outline-hidden focus:ring-2 focus:ring-slate-800 focus:ring-offset-2 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",children:s||d({id:"cancel",defaultMessage:"Cancel"})})]})]})}])},42912,e=>{var t=e.i(91398),r=e.i(69322);e.s(["f",0,({result:e,title:i,entityName:n="items"})=>{let{formatMessage:s}=(0,r.S)();return(0,t.jsxs)("div",{className:"p-4",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold mb-4",children:i||s({id:"import_results",defaultMessage:"Import Results"})}),(0,t.jsx)("p",{className:"text-green-600",children:s({id:"items_imported",defaultMessage:"{count} {entityName} imported successfully"},{count:e?.success,entityName:n})}),e?.failed>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-red-600 mt-2",children:s({id:"items_failed",defaultMessage:"{count} {entityName} failed to import"},{count:e?.failed,entityName:n})}),(0,t.jsxs)("div",{className:"mt-2 max-h-40 overflow-y-auto",children:[e.errors.slice(0,10).map((e,r)=>(0,t.jsx)("p",{className:"text-sm text-red-500",children:e},r)),e.errors.length>10&&(0,t.jsxs)("p",{className:"text-sm text-gray-500",children:["... and ",e.errors.length-10," more errors"]})]})]})]})}])},6607,e=>{var t=e.i(91788),r=e.i(6444);e.s(["f",0,()=>(0,t.useContext)(r.f)])},30086,e=>{var t=e.i(59080),r=e.i(76204);let i=t.f`
|
|
2
|
+
mutation AddWork(
|
|
3
|
+
$type: WorkType!
|
|
4
|
+
$priority: Int! = 0
|
|
5
|
+
$input: JSON
|
|
6
|
+
$originalWorkId: ID
|
|
7
|
+
$scheduled: Timestamp
|
|
8
|
+
$retries: Int! = 20
|
|
9
|
+
) {
|
|
10
|
+
addWork(
|
|
11
|
+
type: $type
|
|
12
|
+
priority: $priority
|
|
13
|
+
input: $input
|
|
14
|
+
originalWorkId: $originalWorkId
|
|
15
|
+
scheduled: $scheduled
|
|
16
|
+
retries: $retries
|
|
17
|
+
) {
|
|
18
|
+
_id
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`;e.s(["f",0,()=>{let[e]=(0,r.f)(i);return{addWork:async({type:t,priority:r,input:i,originalWorkId:n,scheduled:s=null,retries:a})=>e({variables:{type:t,priority:r,input:i,originalWorkId:n,scheduled:s,retries:a},refetchQueries:["WorkQueue"]})}}])},63104,e=>{var t=e.i(59080),r=e.i(32171),i=e.i(70693),n=e.i(94672);let s=(e="")=>t.f`
|
|
22
|
+
query Work($workId: ID!) {
|
|
23
|
+
work(workId: $workId) {
|
|
24
|
+
...WorkFragment
|
|
25
|
+
${e}
|
|
26
|
+
error
|
|
27
|
+
priority
|
|
28
|
+
worker
|
|
29
|
+
timeout
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
${n.f}
|
|
33
|
+
`;e.s(["k",0,s,"U",0,({workId:e=null,...t})=>{let{customProperties:n}=(0,i.f)(),{data:a,loading:o,error:l,previousData:u}=(0,r.f)(s(n?.Work),{skip:!e,variables:{workId:e},...t});return{work:a?.work||u?.work,loading:o,error:l}}])},76842,e=>{var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...i},n){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:n,"aria-labelledby":r},i),e?t.createElement("title",{id:r},e):null,t.createElement("path",{d:"m2.695 14.762-1.262 3.155a.5.5 0 0 0 .65.65l3.155-1.262a4 4 0 0 0 1.343-.886L17.5 5.501a2.121 2.121 0 0 0-3-3L3.58 13.419a4 4 0 0 0-.885 1.343Z"}))});e.s(["f",0,r],76842)},24557,e=>{var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...i},n){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:n,"aria-labelledby":r},i),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z",clipRule:"evenodd"}))});e.s(["f",0,r],24557)},38322,e=>{var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...i},n){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:n,"aria-labelledby":r},i),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))});e.s(["f",0,r],38322)},38187,e=>{var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...i},n){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:n,"aria-labelledby":r},i),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))});e.s(["f",0,r],38187)},86712,e=>{var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...i},n){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:n,"aria-labelledby":r},i),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"}))});e.s(["f",0,r],86712)},24608,e=>{var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...i},n){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:n,"aria-labelledby":r},i),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))});e.s(["f",0,r],24608)},40238,(e,t,r)=>{var i=e.r(91788),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,a=i.useRef,o=i.useEffect,l=i.useMemo,u=i.useDebugValue;r.useSyncExternalStoreWithSelector=function(e,t,r,i,d){var c=a(null);if(null===c.current){var h={hasValue:!1,value:null};c.current=h}else h=c.current;var f=s(e,(c=l(function(){function e(e){if(!o){if(o=!0,s=e,e=i(e),void 0!==d&&h.hasValue){var t=h.value;if(d(t,e))return a=t}return a=e}if(t=a,n(s,e))return t;var r=i(e);return void 0!==d&&d(t,r)?(s=e,t):(s=e,a=r)}var s,a,o=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,i,d]))[0],c[1]);return o(function(){h.hasValue=!0,h.value=f},[f]),u(f),f}},19979,(e,t,r)=>{e.i(50461),t.exports=e.r(40238)}],72552,(e,t,r)=>{var i;let n;e.e,i=function e(){var t="u">typeof self?self:"u">typeof window?window:void 0!==t?t:{},r=!t.document&&!!t.postMessage,i=t.IS_PAPA_WORKER||!1,n={},s=0,a={};function o(e){return 65279===e.charCodeAt(0)?e.slice(1):e}function l(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var t=y(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new f(t),(this._handle.streamer=this)._config=t}).call(this,e),this.parseChunk=function(e,r){var n=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<n){let t=this._config.newline;t||(s=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,s)),e=[...e.split(t).slice(n)].join(t)}this.isFirstChunk&&k(this._config.beforeFirstChunk)&&void 0!==(s=this._config.beforeFirstChunk(e))&&(e=s),this.isFirstChunk=!1,this._halted=!1;var n=this._partialLine+e,s=(this._partialLine="",this._handle.parse(n,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=s.meta.cursor,this._finished||(this._partialLine=n.substring(e-this._baseIndex),this._baseIndex=e),s&&s.data&&(this._rowCount+=s.data.length),n=this._finished||this._config.preview&&this._rowCount>=this._config.preview,i)t.postMessage({results:s,workerId:a.WORKER_ID,finished:n});else if(k(this._config.chunk)&&!r){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=s=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!n||!k(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),n||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){k(this._config.error)?this._config.error(e):i&&this._config.error&&t.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=a.RemoteChunkSize),l.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)),t.ontimeout=b(this._chunkTimeout,this),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadTimeout&&!r&&(t.timeout=this._config.downloadTimeout),this._config.downloadRequestHeaders){var e,i,n=this._config.downloadRequestHeaders;for(i in n)t.setRequestHeader(i,n[i])}this._config.chunkSize&&(e=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+e));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){let e;4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null!==(e=(e=t).getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(Error(e))},this._chunkTimeout=function(){this._chunkError("Request timed out after "+this._config.downloadTimeout+"ms")}}function d(e){(e=e||{}).chunkSize||(e.chunkSize=a.LocalChunkSize),l.call(this,e);var t,r,i="u">typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,i?((t=new FileReader).onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,n=(this._config.chunkSize&&(n=Math.min(this._start+this._config.chunkSize,this._input.size),e=r.call(e,this._start,n)),t.readAsText(e,this._config.encoding));i||this._chunkLoaded({target:{result:n}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function c(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,r;if(!this._finished)return t=(e=this._config.chunkSize)?(r=t.substring(0,e),t.substring(e)):(r=t,""),this._finished=!t,this.parseChunk(r)}}function h(e){l.call(this,e=e||{});var t=[],r=!0,i=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){i&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=b(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=b(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=b(function(){this._streamCleanUp(),i=!0,this._streamData("")},this),this._streamCleanUp=b(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function f(e){var t,r,i,n,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,o=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,l=this,u=0,d=0,c=!1,h=!1,f=[],g={data:[],errors:[],meta:{}};function x(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function _(){if(g&&i&&(v("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),i=!1),e.skipEmptyLines&&(g.data=g.data.filter(function(e){return!x(e)})),b()){if(g)if(Array.isArray(g.data[0])){for(var t,r=0;b()&&r<g.data.length;r++)g.data[r].forEach(n);g.data.splice(0,1)}else g.data.forEach(n);function n(e){f.push(e)}}function l(t,r){for(var i=e.header?{}:[],n=0;n<t.length;n++){var a=n,l=t[n],l=((t,r)=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping))?"true"===r||"TRUE"===r||"false"!==r&&"FALSE"!==r&&((e=>{if(s.test(e)&&-0x20000000000000<(e=parseFloat(e))&&e<0x20000000000000)return 1})(r)?parseFloat(r):o.test(r)?new Date(r):""===r?null:r):r)(a=e.header?n>=f.length?"__parsed_extra":f[n]:a,l=e.transform?e.transform(l,a):l);"__parsed_extra"===a?(i[a]=i[a]||[],i[a].push(l)):i[a]=l}return e.header&&(n>f.length?v("FieldMismatch","TooManyFields","Too many fields: expected "+f.length+" fields but parsed "+n,d+r):n<f.length&&v("FieldMismatch","TooFewFields","Too few fields: expected "+f.length+" fields but parsed "+n,d+r)),i}g&&(e.header||e.dynamicTyping||e.transform)&&(t=1,!g.data.length||Array.isArray(g.data[0])?(g.data=g.data.map(l),t=g.data.length):g.data=l(g.data,0),e.header&&g.meta&&(g.meta.fields=f),d+=t)}function b(){return e.header&&0===f.length}function v(e,t,r,i){e={type:e,code:t,message:r},void 0!==i&&(e.row=i),g.errors.push(e)}k(e.step)&&(n=e.step,e.step=function(t){g=t,b()?_():(_(),0!==g.data.length&&(u+=t.data.length,e.preview&&u>e.preview?r.abort():(g.data=g.data[0],n(g,l))))}),this.parse=function(n,s,o){var l=e.quoteChar||'"',l=(e.newline||(e.newline=this.guessLineEndings(n,l)),i=!1,e.delimiter?k(e.delimiter)&&(e.delimiter=e.delimiter(n),g.meta.delimiter=e.delimiter):((l=((t,r,i,n,s)=>{var o,l,u,d;s=s||[","," ","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var c=0;c<s.length;c++){for(var h,f=s[c],m=0,g=0,_=0,y=(u=void 0,new p({comments:n,delimiter:f,newline:r,preview:10}).parse(t)),b=0;b<y.data.length;b++)i&&x(y.data[b])?_++:(g+=h=y.data[b].length,void 0===u?u=h:0<h&&(m+=Math.abs(h-u),u=h));0<y.data.length&&(g/=y.data.length-_),1.99<g&&(void 0===l||m<l||m===l&&d<g)&&(l=m,o=f,d=g)}return{successful:!!(e.delimiter=o),bestDelimiter:o}})(n,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=l.bestDelimiter:(i=!0,e.delimiter=a.DefaultDelimiter),g.meta.delimiter=e.delimiter),y(e));return l.header=b(),e.preview&&e.header&&l.preview++,t=n,g=(r=new p(l)).parse(t,s,o),_(),c?{meta:{paused:!0}}:g||{meta:{paused:!1}}},this.paused=function(){return c},this.pause=function(){c=!0,r.abort(),t=k(e.chunk)?"":t.substring(r.getCharIndex())},this.resume=function(){l.streamer._halted?(c=!1,l.streamer.parseChunk(t,!0)):setTimeout(l.resume,3)},this.aborted=function(){return h},this.abort=function(){h=!0,r.abort(),g.meta.aborted=!0,k(e.complete)&&e.complete(g),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576);var t=RegExp(m(t)+"([^]*?)"+m(t),"gm"),r=(e=e.replace(t,"")).split("\r"),t=e.split("\n"),e=1<t.length&&t[0].length<r[0].length;if(1===r.length||e)return"\n";for(var i=0,n=0;n<r.length;n++)"\n"===r[n][0]&&i++;return i>=r.length/2?"\r\n":"\r"}}function m(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function p(e){var t=(e=e||{}).delimiter,r=e.newline,i=e.comments,n=e.step,s=e.preview,l=e.fastMode,u=null,d=!1,c=null==e.quoteChar?'"':e.quoteChar,h=c;if(void 0!==e.escapeChar&&(h=e.escapeChar),("string"!=typeof t||-1<a.BAD_DELIMITERS.indexOf(t))&&(t=","),i===t)throw Error("Comment character same as delimiter");!0===i?i="#":("string"!=typeof i||-1<a.BAD_DELIMITERS.indexOf(i))&&(i=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var f=0,p=!1;this.parse=function(a,g,x){if("string"!=typeof a)throw Error("Input must be a string");var _=a.length,y=t.length,b=r.length,v=i.length,w=k(n),E=[],j=[],C=[],R=f=0;if(!a)return W();if(l||!1!==l&&-1===a.indexOf(c)){for(var S=a.split(r),O=0;O<S.length;O++){if(C=S[O],f+=C.length,O!==S.length-1)f+=r.length;else if(x)break;if(!i||C.substring(0,v)!==i){if(w){if(E=[],D(C.split(t)),B(),p)return W()}else D(C.split(t));if(s&&s<=O)return E=E.slice(0,s),W(!0)}}return W()}for(var I=a.indexOf(t,f),N=a.indexOf(r,f),L=RegExp(m(h)+m(c),"g"),T=a.indexOf(c,f);;)if(a[f]===c)for(T=f,f++;;){if(-1===(T=a.indexOf(c,T+1)))return x||j.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:E.length,index:f}),F();if(T===_-1)return F(a.substring(f,T).replace(L,c));if(c===h&&a[T+1]===h)T++;else if(c===h||0===T||a[T-1]!==h){-1!==I&&I<T+1&&(I=a.indexOf(t,T+1));var A=M(-1===(N=-1!==N&&N<T+1?a.indexOf(r,T+1):N)?I:Math.min(I,N));if(a.substr(T+1+A,y)===t){C.push(a.substring(f,T).replace(L,c)),a[f=T+1+A+y]!==c&&(T=a.indexOf(c,f)),I=a.indexOf(t,f),N=a.indexOf(r,f);break}if(A=M(N),a.substring(T+1+A,T+1+A+b)===r){if(C.push(a.substring(f,T).replace(L,c)),$(T+1+A+b),I=a.indexOf(t,f),T=a.indexOf(c,f),w&&(B(),p))return W();if(s&&E.length>=s)return W(!0);break}j.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:E.length,index:f}),T++}}else if(i&&0===C.length&&a.substring(f,f+v)===i){if(-1===N)return W();f=N+b,N=a.indexOf(r,f),I=a.indexOf(t,f)}else if(-1!==I&&(I<N||-1===N))C.push(a.substring(f,I)),f=I+y,I=a.indexOf(t,f);else{if(-1===N)break;if(C.push(a.substring(f,N)),$(N+b),w&&(B(),p))return W();if(s&&E.length>=s)return W(!0)}return F();function D(e){E.push(e),R=f}function M(e){return -1!==e&&(e=a.substring(T+1,e))&&""===e.trim()?e.length:0}function F(e){return x||(void 0===e&&(e=a.substring(f)),C.push(e),f=_,D(C),w&&B()),W()}function $(e){f=e,D(C),C=[],N=a.indexOf(r,f)}function W(i){if(e.header&&!g&&E.length&&!d){var n=E[0],s=Object.create(null),a=new Set(n);let t=!1;for(let r=0;r<n.length;r++){let i=o(n[r]);if(s[i=k(e.transformHeader)?e.transformHeader(i,r):i]){let e,o=s[i];for(;e=i+"_"+o,o++,a.has(e););a.add(e),n[r]=e,s[i]++,t=!0,(u=null===u?{}:u)[e]=i}else s[i]=1,n[r]=i;a.add(i)}t&&console.warn("Duplicate headers found and renamed."),d=!0}return{data:E,errors:j,meta:{delimiter:t,linebreak:r,aborted:p,truncated:!!i,cursor:R+(g||0),renamedHeaders:u}}}function B(){n(W()),E=[],j=[]}},this.abort=function(){p=!0},this.getCharIndex=function(){return f}}function g(e){var t=e.data,r=n[t.workerId],i=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var s={abort:function(){i=!0,x(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:_,resume:_};if(k(r.userStep)){for(var a=0;a<t.results.data.length&&(r.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},s),!i);a++);delete t.results}else k(r.userChunk)&&(r.userChunk(t.results,s,t.file),delete t.results)}t.finished&&!i&&x(t.workerId,t.results)}function x(e,t){var r=n[e];k(r.userComplete)&&r.userComplete(t),r.terminate(),delete n[e]}function _(){throw Error("Not implemented.")}function y(e){if("object"!=typeof e||null===e)return e;var t,r=Array.isArray(e)?[]:{};for(t in e)r[t]=y(e[t]);return r}function b(e,t){return function(){e.apply(t,arguments)}}function k(e){return"function"==typeof e}return a.parse=function(r,i){var l,f,m,p=(i=i||{}).dynamicTyping||!1;if(k(p)&&(i.dynamicTypingFunction=p,p={}),i.dynamicTyping=p,i.transform=!!k(i.transform)&&i.transform,void 0!==i.downloadTimeout){var p=parseInt(i.downloadTimeout);if(isNaN(p))throw Error("Config downloadTimeout value ("+i.downloadTimeout+") not parsable by parseInt(val).");i.downloadTimeout=p}if(!i.worker||!a.WORKERS_SUPPORTED)return p=null,a.NODE_STREAM_INPUT,"string"==typeof r?(r=o(r),p=new(i.download?u:c)(i)):!0===r.readable&&k(r.read)&&k(r.on)?p=new h(i):(t.File&&r instanceof File||r instanceof Object)&&(p=new d(i)),p.stream(r);(p=!!a.WORKERS_SUPPORTED&&(f=t.URL||t.webkitURL||null,m=e.toString(),l=a.BLOB_URL||(a.BLOB_URL=f.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",m,")();"],{type:"text/javascript"}))),(l=new t.Worker(l)).onmessage=g,l.id=s++,n[l.id]=l)).userStep=i.step,p.userChunk=i.chunk,p.userComplete=i.complete,p.userError=i.error,i.step=k(i.step),i.chunk=k(i.chunk),i.complete=k(i.complete),i.error=k(i.error),delete i.worker,p.postMessage({input:r,config:i,workerId:p.id})},a.unparse=function(e,t){var r=!1,i=!0,n=",",s="\r\n",o='"',l=o+o,u=!1,d=null,c=!1,h=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||a.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(n=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(l=(o=t.quoteChar)+o),"boolean"==typeof t.header&&(i=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw Error("Option columns is empty");d=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+o),t.escapeFormulae instanceof RegExp?c=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(c=/^[=+\-@\t\r].*$/)}})(),RegExp(m(o),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,u);if("object"==typeof e[0])return f(d||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||d),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],u);throw Error("Unable to serialize unrecognized input");function f(e,t,r){var a="",o=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),l=!Array.isArray(t[0]);if(o&&i){for(var u=0;u<e.length;u++)0<u&&(a+=n),a+=p(e[u],u);0<t.length&&(a+=s)}for(var d=0;d<t.length;d++){var c=(o?e:t[d]).length,h=!1,f=o?0===Object.keys(t[d]).length:0===t[d].length;if(r&&!o&&(h="greedy"===r?""===t[d].join("").trim():1===t[d].length&&0===t[d][0].length),"greedy"===r&&o){for(var m=[],g=0;g<c;g++){var x=l?e[g]:g;m.push(t[d][x])}h=""===m.join("").trim()}if(!h){for(var _=0;_<c;_++){0<_&&!f&&(a+=n);var y=o&&l?e[_]:_;a+=p(t[d][y],_)}d<t.length-1&&(!r||0<c&&!f)&&(a+=s)}}return a}function p(e,t){var i,s,u;return null==e?"":e.constructor===Date?isNaN(e.getTime())?"":e.toISOString():(u=!1,c&&"string"==typeof e&&c.test(e)&&(e="'"+e,u=!0),s=(i=e.toString()).replace(h,l),(u=u||!0===r||"function"==typeof r&&r(e,t)||Array.isArray(r)&&r[t]||((e,t)=>{for(var r=0;r<t.length;r++)if(-1<e.indexOf(t[r]))return!0;return!1})(s,a.BAD_DELIMITERS)||-1<s.indexOf(n)||-1<i.indexOf(o)||" "===s.charAt(0)||" "===s.charAt(s.length-1))?o+s+o:s)}},a.RECORD_SEP="\x1e",a.UNIT_SEP="\x1f",a.BYTE_ORDER_MARK="\uFEFF",a.BAD_DELIMITERS=["\r","\n",'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!r&&!!t.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=0xa00000,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=p,a.ParserHandle=f,a.NetworkStreamer=u,a.FileStreamer=d,a.StringStreamer=c,a.ReadableStreamStreamer=h,i&&(t.onmessage=function(e){e=e.data,void 0===a.WORKER_ID&&e&&(a.WORKER_ID=e.workerId),"string"==typeof e.input?t.postMessage({workerId:a.WORKER_ID,results:a.parse(e.input,e.config),finished:!0}):(t.File&&e.input instanceof File||e.input instanceof Object)&&(e=a.parse(e.input,e.config))&&t.postMessage({workerId:a.WORKER_ID,results:e,finished:!0})}),(u.prototype=Object.create(l.prototype)).constructor=u,(d.prototype=Object.create(l.prototype)).constructor=d,(c.prototype=Object.create(c.prototype)).constructor=c,(h.prototype=Object.create(l.prototype)).constructor=h,a},"function"==typeof define&&define.amd?void 0!==(n=i())&&e.v(n):t.exports=i()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[81013,e=>{var t=e.i(91398),r=e.i(72043);e.s(["f",0,({text:e,children:a,onClick:s,className:l="",disabled:d=!1,id:o="",variant:i="primary",size:n="md",type:c="button",loading:x=!1,icon:u,iconRight:h,fullWidth:b=!1,rounded:g="md",ariaLabel:m,...f})=>{let k=a||e,p=(u||h)&&k?"gap-2":"";return(0,t.jsx)("button",{id:o,type:c,disabled:d||x,onClick:s,"aria-label":m,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"}[n],{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}[g],{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],p,{"w-full":b},l),...f,children:x?(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"}),k]}):(0,t.jsxs)(t.Fragment,{children:[u,k,h]})})}])},29332,e=>{var t=e.i(91398),r=e.i(3828),a=e.i(69322),s=e.i(45880),l=e.i(13938),d=e.i(86610),o=e.i(98926),i=e.i(28401),n=e.i(5505),c=e.i(81013);let x=()=>{let{formatMessage:e}=(0,a.S)(),x=(0,o.f)(),u=(0,r.useRouter)(),h=async()=>{await (0,d.f)(x,u),i.c.success(e({id:"goodbye_simple",defaultMessage:"Goodbye!"}))};return(0,t.jsx)("div",{className:"flex min-h-screen items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"w-full max-w-md space-y-4 text-center",children:[(0,t.jsx)("div",{children:(0,t.jsx)("h2",{className:"text-center text-3xl text-slate-900 dark:text-slate-200",children:e({id:"access_restricted",defaultMessage:"Access Restricted"})})}),(0,t.jsx)(n.U,{children:(0,t.jsxs)("div",{className:"space-y-6 px-4 pb-5 pt-3 sm:rounded-lg sm:px-10",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-yellow-100 dark:bg-yellow-900",children:(0,t.jsx)("svg",{className:"h-6 w-6 text-yellow-600 dark:text-yellow-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 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})})}),(0,t.jsx)("p",{className:"mt-4 text-sm font-semibold uppercase tracking-wide text-yellow-600 dark:text-yellow-400",children:e({id:"error_423",defaultMessage:"423 Locked"})}),(0,t.jsx)("p",{className:"mt-2 text-base text-slate-500 dark:text-slate-400",children:e({id:"required-role-not-satisfied",defaultMessage:"Current account does not have access, please log in with an account that has the required role."})}),(0,t.jsx)("p",{className:"mt-2 text-sm text-slate-400 dark:text-slate-500",children:e({id:"contact_admin_help",defaultMessage:"Contact system administrator for further information."})})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 mt-6",children:[(0,t.jsx)(c.f,{onClick:h,icon:(0,t.jsx)(s.f,{className:"h-5 w-5"}),variant:"primary",fullWidth:!0,text:e({id:"use-another-account",defaultMessage:"Use Another Account"})}),(0,t.jsx)(c.f,{onClick:()=>window.history.back(),icon:(0,t.jsx)(l.f,{className:"h-5 w-5"}),variant:"secondary",fullWidth:!0,text:e({id:"go_back",defaultMessage:"Go Back"})})]})]})})]})})};x.getLayout=e=>e,e.s(["default",0,x])},13938,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:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"}))});e.s(["f",0,r],13938)}],66265,(e,t,r)=>{let a="/423";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(29332)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([a])})}]);
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79001,34981,58101,e=>{var s=e.i(91398),t=e.i(69322),a=e.i(66773),r=e.i(28401),i=e.i(59295),l=e.i(6277),n=e.i(12197),d=e.i(15971),o=e.i(6607),c=e.i(65530),m=e.i(57569),u=e.i(91788),f=e.i(69211),x=e.i(99160),g=e.i(98949),h=e.i(35339),p=e.i(47542),v=e.i(96015),j=e.i(58971),y=e.i(5505),b=e.i(72094),M=e.i(37547),A=e.i(59080),k=e.i(32171);let _=A.f`
|
|
2
|
+
query AssortmentPaths($assortmentId: ID!) {
|
|
3
|
+
assortment(assortmentId: $assortmentId) {
|
|
4
|
+
assortmentPaths {
|
|
5
|
+
links {
|
|
6
|
+
assortmentId
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
`;var w=e.i(57561);let I=({assortmentId:e})=>{let{formatMessage:r}=(0,t.S)(),{addAssortmentLink:i}=(0,h.f)(),{assortmentsPaths:l}=(({assortmentId:e})=>{let{data:s,loading:t,error:a}=(0,k.f)(_,{variables:{assortmentId:e}});return{assortmentsPaths:(s?.assortment?.assortmentPaths||[])?.flatMap(({links:e})=>e),loading:t,error:a}})({assortmentId:e}),{selectedLocale:n}=(0,w.f)(),d=l?.map(({assortmentId:e})=>e),{hasRole:o}=(0,j.f)(),[c,m]=(0,u.useState)(""),{assortments:A,loading:I}=(0,M.f)({queryString:c,includeInactive:!0,includeLeaves:!0,limit:50,sort:[{key:"created",value:a.A.Desc}],forceLocale:n}),N=async({childAssortmentId:s,tags:t})=>(await i({childAssortmentId:s,parentAssortmentId:e,tags:t}),{success:!0}),$=r({id:"saved",defaultMessage:"Saved"}),C=(0,g.f)({submit:N,successMessage:$,initialValues:{childAssortmentId:"",tags:""}});return(0,s.jsx)(y.U,{children:(0,s.jsx)(f.f,{form:C,id:"assortment_link_form",children:(0,s.jsxs)("div",{className:"sm:rounded-md",children:[(0,s.jsx)("div",{className:"grid gap-6 px-4 py-5 sm:p-6",children:(0,s.jsxs)("div",{className:"col-span-12",children:[(0,s.jsx)(v.f,{name:"tags",id:"tags",label:r({id:"tags",defaultMessage:"Tags"}),className:"mt-1 w-full text-sm"}),(0,s.jsx)(p.f,{name:"childAssortmentId",label:r({id:"child_assortment",defaultMessage:"Sub-Assortment"}),required:!0,isLoading:I,onFilter:m,queryString:c,data:((e=[])=>e?.map(({_id:e,status:s,texts:t,media:a})=>({id:e,tag:s,...t,image:a?.length?a[0]?.file?.url:null})))((A||[]).filter(({_id:s})=>s!==e&&!d.includes(s))),className:"mt-1 w-full py-2 text-sm text-slate-500"})]})}),(0,s.jsx)(b.f,{}),o(a.C.ManageAssortments)&&(0,s.jsx)("div",{className:"border-t-slate-100 border-t dark:border-t-slate-700 bg-slate-50 dark:bg-slate-900 px-4 py-5 text-right sm:px-6",children:(0,s.jsx)(x.f,{label:r({id:"save",defaultMessage:"Save"})})})]})})})};var N=e.i(26178),$=e.i(46341),C=e.i(65153),D=e.i(42016),T=e.i(3095),S=e.i(1880),L=e.i(41158);let P=({link:e,onDelete:t,linkId:r,isParent:i,id:n})=>{let{hasRole:d}=(0,j.f)(),{attributes:o,listeners:c,setNodeRef:m,transform:u,transition:f}=(0,l.s)({id:n}),x={transform:$.r.Transform.toString(u),transition:f};return(0,s.jsx)(L.default,{href:`/assortments?assortmentSlug=${(0,S.U)(e)}`,children:(0,s.jsxs)("div",{className:"group flex items-center justify-between rounded-sm border-b border-slate-200 dark:border-slate-700 hover:border-slate-300 dark:hover:border-slate-600 hover:bg-slate-50/80 dark:hover:bg-slate-700/50 transition-all duration-200 ease-in-out hover:shadow-sm px-2 text-slate-900 dark:text-slate-200 last:border-none hover:cursor-pointer",ref:m,style:x,children:[(0,s.jsx)("div",{className:"flex flex-col justify-center space-x-6 py-4 flex-auto",children:(0,s.jsxs)("div",{className:"flex gap-5 items-center",children:[(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsx)(C.f,{color:"cyan",text:i?"Parent":"Descendant"})}),(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-wrap gap-5",children:[(0,s.jsx)("h3",{className:"text-lg flex-auto",children:e?.texts?.title}),e?.texts?.title&&(0,s.jsx)("p",{className:"flex-auto text-xs text-slate-600 dark:text-slate-400 my-auto",children:e?.texts?.subtitle})]}),e?.tags&&(0,s.jsx)("div",{className:"flex gap-2",children:e?.tags.map((e,t)=>(0,s.jsx)(C.f,{text:e,color:"blue",className:"px-3 text-sm font-light capitalize py-0"},`${e}${t+1}`))})]})]})}),(0,s.jsx)("div",{onClick:e=>{e.stopPropagation()},children:(0,s.jsxs)("div",{className:"flex items-center gap-5",children:[d(a.C.ManageAssortments)&&(0,s.jsx)("button",{type:"button",...o,...c,className:"hover:cursor-move",children:(0,s.jsx)(D.f,{})}),(0,s.jsx)(T.f,{onDelete:()=>{t(r)},showEdit:!0,showDelete:d(a.C.ManageAssortments)})]})})]})})},F=({currentAssortmentId:e,links:a,onRemoveLink:r,items:i})=>{let{formatMessage:n}=(0,t.S)();return a.length?(0,s.jsx)(l.V,{items:i,strategy:l.W,children:(0,s.jsx)("div",{className:"space-y-4 py-3 px-6 rounded-sm transition-[background-color] ease-in-out delay-200",children:i.map(t=>{let{child:i,parent:l,_id:n}=Object.values(a).find(e=>e._id===t),d=[];return l&&l._id!==e&&d.push((0,s.jsx)(P,{id:t,link:l,isParent:l?.childrenCount,linkId:n,onDelete:r},l._id)),i&&i._id!==e&&d.push((0,s.jsx)(P,{id:t,link:i,linkId:n,isParent:i._id===e,onDelete:r},i._id)),d})})}):(0,s.jsx)(N.f,{message:n({id:"linked_assortment",defaultMessage:"Linked assortment"})})};var R=e.i(76204);let K=A.f`
|
|
12
|
+
mutation ReorderAssortmentLinks($sortKeys: [ReorderAssortmentLinkInput!]!) {
|
|
13
|
+
reorderAssortmentLinks(sortKeys: $sortKeys) {
|
|
14
|
+
_id
|
|
15
|
+
sortKey
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`;var q=e.i(60195);e.s(["f",0,({assortmentId:e})=>{let{formatMessage:u}=(0,t.S)(),{setModal:f}=(0,o.f)(),{hasRole:x}=(0,j.f)(),{linkedAssortments:g,loading:h}=(0,c.f)({assortmentId:e}),{removeAssortmentLink:p}=(0,m.f)(),{reorderAssortmentLink:v}=(()=>{let[e]=(0,R.f)(K);return{reorderAssortmentLink:async({sortKeys:s})=>e({variables:{sortKeys:s},refetchQueries:["AssortmentLinks"]})}})(),y=g?.map(e=>e._id),b=async e=>{await f((0,s.jsx)(d.f,{onCancelClick:async()=>f(""),message:u({id:"delete_assortment_link",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this language? "}),onOkClick:async()=>{f(""),await p({assortmentLinkId:e}),r.c.success(u({id:"assortment_link",defaultMessage:"Link deleted successfully"}))},okText:u({id:"delete_link",defaultMessage:"Delete link"})}))},M=async e=>{let{active:s,over:t}=e;if(s.id!==t.id){let e=y.indexOf(s.id),a=y.indexOf(t.id),i=(0,l.e)(y,e,a).map((e,s)=>({assortmentLinkId:e,sortKey:s}));try{await v({sortKeys:i}),r.c.success(u({id:"link_reorder",defaultMessage:"Link reorder successfully"}))}catch(e){r.c.error(u({id:"fail_reorder",defaultMessage:"Reordering failed, Try again!"}))}}else r.c.info(u({id:"reorder_original",defaultMessage:"Reorder to original location"}))},A=(0,i.n)((0,i.J)(i.k,{activationConstraint:{distance:5}}),(0,i.J)(i.y,{coordinateGetter:l.j}));return(0,s.jsxs)(s.Fragment,{children:[x(a.C.ManageAssortments)&&(0,s.jsx)(q.f,{documentationLabel:u({id:"assortment_link_form_header",defaultMessage:"Child assortments"}),className:"mt-2 lg:mt-5",documentation:(0,s.jsx)(t.K,{id:"assortment_link_form_description",defaultMessage:"<ul> <li>Assign assortment that are direct child of this assortment </li>\n </ul>",values:{ul:e=>(0,s.jsxs)("ul",{className:"space-y-2",children:[e," "]}),li:e=>(0,s.jsxs)("li",{className:"text-sm",children:[e," "]},Math.random()),strong:e=>(0,s.jsx)("strong",{className:"font-semibold text-slate-800 dark:text-slate-200",children:e})}}),children:(0,s.jsx)(I,{assortmentId:e})}),(0,s.jsx)(q.f,{documentationLabel:u({id:"assortment_links_header",defaultMessage:"Assortment links"}),className:"sm:mt-4",documentation:(0,s.jsx)(t.K,{id:"assortment_link_list_description",defaultMessage:"<ul> <li>All assortments found on the assortment relation tree</li>\n <li> Drag and drop list items to sort assortment links </li>\n <li> Parents are assortments found in the ancestors tree on any level </li>\n <li> Descendants are assortments found in the children tree on any level </li> </ul>",values:{ul:e=>(0,s.jsxs)("ul",{className:"space-y-2",children:[e," "]}),li:e=>(0,s.jsxs)("li",{className:"text-sm",children:[e," "]},Math.random()),strong:e=>(0,s.jsx)("strong",{className:"font-semibold text-slate-800 dark:text-slate-200",children:e})}}),children:h?(0,s.jsx)(n.f,{}):(0,s.jsx)("div",{className:"ml-auto shadow-sm dark:shadow-none dark:bg-slate-800 w-full md:col-span-2 bg-white",children:(0,s.jsx)(i.H,{sensors:A,collisionDetection:i.P,onDragEnd:M,id:"assortment-link",children:(0,s.jsx)(F,{currentAssortmentId:e,links:g||[],onRemoveLink:b,items:y})})})})]})}],79001);var O=e.i(54529);let U=A.f`
|
|
19
|
+
query AssortmentProducts(
|
|
20
|
+
$assortmentId: ID
|
|
21
|
+
$slug: String
|
|
22
|
+
$forceLocale: Locale
|
|
23
|
+
) {
|
|
24
|
+
assortment(assortmentId: $assortmentId, slug: $slug) {
|
|
25
|
+
_id
|
|
26
|
+
productAssignments {
|
|
27
|
+
_id
|
|
28
|
+
sortKey
|
|
29
|
+
tags
|
|
30
|
+
product {
|
|
31
|
+
...ProductBriefFragment
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
${O.f}
|
|
37
|
+
`,E=A.f`
|
|
38
|
+
mutation RemoveAssortmentProduct($assortmentProductId: ID!) {
|
|
39
|
+
removeAssortmentProduct(assortmentProductId: $assortmentProductId) {
|
|
40
|
+
_id
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`,Q=A.f`
|
|
44
|
+
mutation AddAssortmentProduct(
|
|
45
|
+
$assortmentId: ID!
|
|
46
|
+
$productId: ID!
|
|
47
|
+
$tags: [LowerCaseString!]
|
|
48
|
+
) {
|
|
49
|
+
addAssortmentProduct(
|
|
50
|
+
assortmentId: $assortmentId
|
|
51
|
+
productId: $productId
|
|
52
|
+
tags: $tags
|
|
53
|
+
) {
|
|
54
|
+
_id
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
`;var V=e.i(24112);let B=({assortmentId:e})=>{let[r,i]=(0,u.useState)(""),{formatMessage:l}=(0,t.S)(),{addAssortmentProduct:n}=(()=>{let[e]=(0,R.f)(Q);return{addAssortmentProduct:async({productId:s,assortmentId:t,tags:a})=>e({variables:{productId:s,assortmentId:t,tags:a},refetchQueries:["AssortmentProducts"]})}})(),{hasRole:d}=(0,j.f)(),o=l({id:"saved",defaultMessage:"Saved"}),{products:c,loading:m}=(0,V.f)({queryString:r,includeDrafts:!0,limit:50,sort:[{key:"created",value:a.A.Desc}]}),h=async({productId:s,tags:t})=>(await n({productId:s,assortmentId:e,tags:t}),{success:!0}),b=(0,g.f)({submit:h,successMessage:o,initialValues:{productId:"",tags:""}});return(0,s.jsx)(y.U,{children:(0,s.jsx)(f.f,{form:b,id:"assortment_product_form",children:(0,s.jsxs)("div",{className:"shadow dark:shadow-none sm:rounded-md",children:[(0,s.jsx)("div",{className:"grid gap-6 px-4 py-5 sm:p-6",children:(0,s.jsxs)("div",{className:"col-span-12",children:[(0,s.jsx)(v.f,{name:"tags",id:"tags",className:"mt-1 w-full text-sm"}),(0,s.jsx)(p.f,{name:"productId",data:((e=[])=>e?.map(({_id:e,status:s,texts:t,media:a})=>({id:e,tag:s,...t,image:a?.length?a[0]?.file?.url:null})))(c),isLoading:m,label:l({id:"product",defaultMessage:"Product"}),required:!0,onFilter:i,queryString:r,className:"mt-1 w-full py-2 text-sm text-slate-500"})]})}),d(a.C.ManageAssortments)&&(0,s.jsx)("div",{className:"border-t-slate-100 border-t dark:border-t-slate-700 bg-slate-50 dark:bg-slate-900 px-4 py-5 text-right sm:px-6",children:(0,s.jsx)(x.f,{label:l({id:"save",defaultMessage:"Save"})})})]})})})},J=({link:e,onDelete:t,id:r})=>{let{hasRole:i}=(0,j.f)(),{_id:n,product:d,tags:o}=e,{attributes:c,listeners:m,setNodeRef:u,transform:f,transition:x}=(0,l.s)({id:r}),g={transform:$.r.Transform.toString(f),transition:x};return(0,s.jsx)(L.default,{href:`/products?slug=${(0,S.U)(d)}`,children:(0,s.jsxs)("div",{ref:u,style:g,className:"group flex items-center justify-between rounded-sm border-b border-slate-200 dark:border-slate-700 hover:border-slate-300 dark:hover:border-slate-600 hover:bg-slate-50/80 dark:hover:bg-slate-700/50 transition-all duration-200 ease-in-out hover:shadow-sm px-2 text-slate-900 dark:text-slate-200 last:border-none hover:cursor-pointer",children:[(0,s.jsx)("div",{className:"flex items-center py-4",children:(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-lg text-slate-800 dark:text-slate-200",children:d?.texts?.title}),(0,s.jsx)("p",{className:"text-xs text-slate-600 dark:text-slate-200",children:d?.texts?.subtitle})]})}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:(o||[])?.map(e=>(0,s.jsx)(C.f,{text:e,color:"cyan"},e))}),(0,s.jsx)("div",{onClick:e=>{e.stopPropagation()},children:(0,s.jsxs)("div",{className:"flex items-center justify-between gap-5",children:[i(a.C.ManageAssortments)&&(0,s.jsx)("button",{type:"button",...c,...m,className:"hover:cursor-move",children:(0,s.jsx)(D.f,{})}),(0,s.jsx)(T.f,{onDelete:()=>{t(n)},showEdit:i(a.C.ViewProducts),showDelete:i(a.C.ManageAssortments)})]})})]})})},W=({products:e,onRemoveProduct:a,items:r})=>{let{formatMessage:i}=(0,t.S)();return e.length?(0,s.jsx)(l.V,{items:r,strategy:l.W,children:(0,s.jsx)("div",{className:"block py-3 rounded-sm px-6 bg-white dark:bg-slate-800 shadow-sm dark:shadow-none transition-[background-color] ease-in-out delay-200",children:r.map(t=>{let r=Object.values(e).find(e=>e._id===t);return(0,s.jsx)(J,{id:t,link:r,onDelete:a},r._id)})})}):(0,s.jsx)(N.f,{message:i({id:"assigned_products",defaultMessage:"Assigned Products"})})},H=A.f`
|
|
58
|
+
mutation ReorderAssortmentProducts(
|
|
59
|
+
$sortKeys: [ReorderAssortmentProductInput!]!
|
|
60
|
+
) {
|
|
61
|
+
reorderAssortmentProducts(sortKeys: $sortKeys) {
|
|
62
|
+
_id
|
|
63
|
+
sortKey
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
`;e.s(["f",0,({assortmentId:e})=>{let{formatMessage:c}=(0,t.S)(),{linkedProducts:m,loading:u}=(({assortmentId:e=null,slug:s=null}={})=>{let{selectedLocale:t}=(0,w.f)(),a=(0,S.Q)(s),{data:r,loading:i,error:l}=(0,k.f)(U,{skip:!e&&!a,variables:{assortmentId:e||a,forceLocale:t},context:{headers:{forceLocale:t}}}),n=r?.assortment;return{loading:i,error:l,linkedProducts:n?.productAssignments||[]}})({assortmentId:e}),{setModal:f}=(0,o.f)(),{hasRole:x}=(0,j.f)(),{removeAssortmentProduct:g}=(()=>{let[e]=(0,R.f)(E);return{removeAssortmentProduct:async({assortmentProductId:s})=>e({variables:{assortmentProductId:s},refetchQueries:["AssortmentProducts"]})}})(),{reorderAssortmentProducts:h}=(()=>{let[e]=(0,R.f)(H);return{reorderAssortmentProducts:async({sortKeys:s})=>e({variables:{sortKeys:s},refetchQueries:["AssortmentProducts"]})}})(),p=m?.map(e=>e._id),v=async e=>{await f((0,s.jsx)(d.f,{onCancelClick:async()=>f(""),message:c({id:"delete_product_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it and it is nonreversible. Are you sure you want to delete this product? "}),onOkClick:async()=>{f(""),await g({assortmentProductId:e}),r.c.success(c({id:"product_deleted",defaultMessage:"Product deleted successfully"}))},okText:c({id:"delete_product",defaultMessage:"Delete Product"})}))},y=async e=>{let{active:s,over:t}=e;if(s.id!==t.id){let e=p.indexOf(s.id),a=p.indexOf(t.id),i=(0,l.e)(p,e,a).map((e,s)=>({assortmentProductId:e,sortKey:s}));try{await h({sortKeys:i}),r.c.success(c({id:"link_reorder",defaultMessage:"Link reorder successfully"}))}catch(e){r.c.error(c({id:"fail_reorder",defaultMessage:"Reordering failed, Try again!"}))}}else r.c.info(c({id:"reorder_original",defaultMessage:"Reorder to original location"}))},b=(0,i.n)((0,i.J)(i.k,{activationConstraint:{distance:5}}),(0,i.J)(i.y,{coordinateGetter:l.j}));return(0,s.jsxs)(s.Fragment,{children:[x(a.C.ManageAssortments)&&(0,s.jsx)(q.f,{documentationLabel:c({id:"assortment_product_form_header",defaultMessage:"Products"}),className:"mt-2 lg:mt-5",documentation:(0,s.jsx)(t.K,{id:"assortment_product_form_description",defaultMessage:"<ul> <li>Products that belong to this assortment </li>\n </ul>",values:{ul:e=>(0,s.jsxs)("ul",{className:"space-y-2",children:[e," "]}),li:e=>(0,s.jsxs)("li",{className:"text-sm",children:[e," "]},Math.random()),strong:e=>(0,s.jsx)("strong",{className:"font-semibold text-slate-800 dark:text-slate-200",children:e})}}),children:(0,s.jsx)(B,{assortmentId:e})}),(0,s.jsx)(q.f,{documentationLabel:c({id:"assortment_products_header",defaultMessage:"Assortment product"}),className:"sm:mt-4",documentation:(0,s.jsx)(t.K,{id:"assortment_product_list_description",defaultMessage:"<ul> <li>All products that belong to this assortment</li>\n <li> Drag and drop list items to sort products order </li>\n </ul>",values:{ul:e=>(0,s.jsxs)("ul",{className:"space-y-2",children:[e," "]}),li:e=>(0,s.jsxs)("li",{className:"text-sm",children:[e," "]},Math.random()),strong:e=>(0,s.jsx)("strong",{className:"font-semibold text-slate-800 dark:text-slate-200",children:e})}}),children:u?(0,s.jsx)("div",{className:"ml-auto w-full md:col-span-2 my-auto",children:(0,s.jsx)(n.f,{})}):(0,s.jsx)("div",{className:"ml-auto my-auto w-full rounded-sm shadow-sm dark:shadow-none md:col-span-2",children:(0,s.jsx)(i.H,{sensors:b,collisionDetection:i.P,onDragEnd:y,id:"assortment-product",children:(0,s.jsx)(W,{products:m,onRemoveProduct:v,items:p})})})})]})}],34981);var z=e.i(80294);let G=A.f`
|
|
67
|
+
query AssortmentFilters($assortmentId: ID, $slug: String) {
|
|
68
|
+
assortment(assortmentId: $assortmentId, slug: $slug) {
|
|
69
|
+
_id
|
|
70
|
+
filterAssignments {
|
|
71
|
+
_id
|
|
72
|
+
sortKey
|
|
73
|
+
tags
|
|
74
|
+
filter {
|
|
75
|
+
...FilterFragment
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
${z.f}
|
|
81
|
+
`,Z=A.f`
|
|
82
|
+
mutation RemoveAssortmentFilter($assortmentFilterId: ID!) {
|
|
83
|
+
removeAssortmentFilter(assortmentFilterId: $assortmentFilterId) {
|
|
84
|
+
_id
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
`,X=({link:e,onDelete:r,id:i})=>{let{hasRole:n}=(0,j.f)(),{formatMessage:d}=(0,t.S)(),{_id:o,filter:c,tags:m}=e,{attributes:u,listeners:f,setNodeRef:x,transform:g,transition:h}=(0,l.s)({id:i}),p={transform:$.r.Transform.toString(g),transition:h};return(0,s.jsx)(L.default,{href:`/filters?filterId=${c._id}`,children:(0,s.jsxs)("div",{ref:x,style:p,className:"group flex items-center justify-between rounded-sm border-b border-slate-200 dark:border-slate-700 hover:border-slate-300 dark:hover:border-slate-600 hover:bg-slate-50/80 dark:hover:bg-slate-700/50 transition-all duration-200 ease-in-out hover:shadow-sm px-2 gap-4 last:border-none hover:cursor-pointer",children:[(0,s.jsx)("div",{className:"shrink-0 grow-0 basis-20 pl-5 space-y-1 p-2",children:(0,s.jsx)(C.f,{color:c?.isActive?"emerald":"slate",text:d(c?.isActive?{id:"active",defaultMessage:"Active"}:{id:"inactive",defaultMessage:"In-Active"})})}),(0,s.jsxs)("div",{className:"shrink grow basis-1/3 pl-5 space-y-1 p-2",children:[(0,s.jsxs)("h3",{className:"text-lg text-slate-800 dark:text-slate-200",children:["(",c?.key,") ",c?.texts?.title]}),(0,s.jsx)("p",{className:"text-xs text-slate-600",children:c?.texts?.subtitle}),(0,s.jsx)(C.f,{color:"slate",text:c?.type})]}),(0,s.jsx)("div",{className:"basis-1/4 pl-5 space-y-1 p-2",children:(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:m?.map(e=>(0,s.jsx)(C.f,{color:"slate",text:e},e))})}),(0,s.jsx)("div",{onClick:e=>{e.stopPropagation()},children:(0,s.jsxs)("div",{className:"flex items-center justify-between gap-5",children:[n(a.C.ManageAssortments)&&(0,s.jsx)("button",{type:"button",...u,...f,className:"hover:cursor-move",children:(0,s.jsx)(D.f,{})}),(0,s.jsx)(T.f,{onDelete:()=>{r(o)},showEdit:n(a.C.ViewFilters),showDelete:n(a.C.ManageAssortments)})]})})]})})},Y=({filters:e,onRemoveFilter:a,items:r})=>{let{formatMessage:i}=(0,t.S)();return e?.length?(0,s.jsx)(l.V,{items:r,strategy:l.W,children:(0,s.jsx)("div",{className:"space-y-4 py-3 px-6 rounded-sm transition-[background-color] ease-in-out delay-200",children:r.map(t=>{let r=Object.values(e).find(e=>e._id===t);return(0,s.jsx)(X,{id:t,link:r,onDelete:a},r._id)})})}):(0,s.jsx)(N.f,{message:i({id:"filters",defaultMessage:"Filters"})})},ee=A.f`
|
|
88
|
+
mutation AddAssortmentFilter(
|
|
89
|
+
$assortmentId: ID!
|
|
90
|
+
$filterId: ID!
|
|
91
|
+
$tags: [LowerCaseString!]
|
|
92
|
+
) {
|
|
93
|
+
addAssortmentFilter(
|
|
94
|
+
assortmentId: $assortmentId
|
|
95
|
+
filterId: $filterId
|
|
96
|
+
tags: $tags
|
|
97
|
+
) {
|
|
98
|
+
_id
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
`;var es=e.i(54680);let et=({assortmentId:e})=>{let{formatMessage:r}=(0,t.S)(),{addAssortmentFilter:i}=(()=>{let[e]=(0,R.f)(ee);return{addAssortmentFilter:async({assortmentId:s,filterId:t,tags:a})=>e({variables:{assortmentId:s,filterId:t,tags:a},refetchQueries:["AssortmentFilters"]})}})(),{hasRole:l}=(0,j.f)(),[n,d]=(0,u.useState)(""),{filters:o}=(0,es.f)({queryString:n,limit:50,includeInactive:!0,sort:[{key:"created",value:a.A.Desc}]}),c=r({id:"saved",defaultMessage:"Saved"}),m=async({filterId:s,tags:t})=>(await i({filterId:s,assortmentId:e,tags:t}),{success:!0}),h=(0,g.f)({submit:m,successMessage:c,initialValues:{filterId:"",tags:""}});return(0,s.jsx)(y.U,{children:(0,s.jsx)(f.f,{form:h,id:"assortment_filter_form",children:(0,s.jsxs)("div",{className:"shadow dark:shadow-none sm:rounded-md",children:[(0,s.jsx)("div",{className:"grid gap-6 px-4 py-5 sm:p-6",children:(0,s.jsxs)("div",{className:"col-span-12",children:[(0,s.jsx)(v.f,{name:"tags",id:"tags",label:r({id:"tags",defaultMessage:"Tags"}),className:"mt-1 w-full text-sm font-medium text-slate-500"}),(0,s.jsx)(p.f,{name:"filterId",required:!0,label:r({id:"filter",defaultMessage:"Filter"}),data:o?.map(({_id:e,texts:s,key:t})=>({id:e,title:` (${t})-${s?.title}`})),queryString:n,onFilter:d,className:"mt-1 w-full py-2 text-sm font-medium text-slate-500"})]})}),(0,s.jsx)(b.f,{}),l(a.C.ManageAssortments)&&(0,s.jsx)("div",{className:"border-t-slate-100 border-t dark:border-t-slate-700 bg-slate-50 dark:bg-slate-900 px-4 py-5 text-right sm:px-6",children:(0,s.jsx)(x.f,{label:r({id:"save",defaultMessage:"Save"})})})]})})})},ea=A.f`
|
|
102
|
+
mutation ReorderAssortmentFilters(
|
|
103
|
+
$sortKeys: [ReorderAssortmentFilterInput!]!
|
|
104
|
+
) {
|
|
105
|
+
reorderAssortmentFilters(sortKeys: $sortKeys) {
|
|
106
|
+
_id
|
|
107
|
+
sortKey
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
`;e.s(["f",0,({assortmentId:e})=>{let{formatMessage:c}=(0,t.S)(),{assortmentFilters:m,loading:u}=(({assortmentId:e=null,slug:s=null}={})=>{let t=(0,S.Q)(s),{data:a,loading:r,error:i}=(0,k.f)(G,{skip:!e&&!t,variables:{assortmentId:e||t}}),l=a?.assortment;return{loading:r,error:i,assortmentFilters:l?.filterAssignments||[]}})({assortmentId:e}),{setModal:f}=(0,o.f)(),{hasRole:x}=(0,j.f)(),{removeAssortmentFilter:g}=(()=>{let[e]=(0,R.f)(Z);return{removeAssortmentFilter:async({assortmentFilterId:s})=>e({variables:{assortmentFilterId:s},refetchQueries:["AssortmentFilters"]})}})(),{reorderAssortmentFilters:h}=(()=>{let[e]=(0,R.f)(ea);return{reorderAssortmentFilters:async({sortKeys:s})=>e({variables:{sortKeys:s},refetchQueries:["AssortmentFilters"]})}})(),p=m?.map(e=>e._id),v=async e=>{await f((0,s.jsx)(d.f,{onCancelClick:async()=>f(""),message:c({id:"delete_assortment_filter_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()=>{f(""),await g({assortmentFilterId:e}),r.c.success(c({id:"assortment_filter_deleted",defaultMessage:"Assortment filter deleted successfully"}))},okText:c({id:"delete_filter",defaultMessage:"Delete filter"})}))},y=async e=>{let{active:s,over:t}=e;if(s.id!==t.id){let e=p.indexOf(s.id),a=p.indexOf(t.id),i=(0,l.e)(p,e,a).map((e,s)=>({assortmentFilterId:e,sortKey:s}));try{await h({sortKeys:i}),r.c.success(c({id:"link_reorder",defaultMessage:"Link reorder successfully"}))}catch(e){r.c.error(c({id:"fail_reorder",defaultMessage:"Reordering failed, Try again!"}))}}else r.c.info(c({id:"reorder_original",defaultMessage:"Reorder to original location"}))},b=(0,i.n)((0,i.J)(i.k,{activationConstraint:{distance:5}}),(0,i.J)(i.y,{coordinateGetter:l.j}));return(0,s.jsxs)(s.Fragment,{children:[x(a.C.ManageAssortments)&&(0,s.jsx)(q.f,{documentationLabel:c({id:"assortment_filters_form_header",defaultMessage:"Filters"}),className:"mt-2 lg:mt-5",documentation:(0,s.jsx)(t.K,{id:"assortment_filter_form_description",defaultMessage:"<ul> <li>Assign filters that will be applied for the assortment </li>\n </ul>",values:{ul:e=>(0,s.jsxs)("ul",{className:"space-y-2",children:[e," "]}),li:e=>(0,s.jsxs)("li",{className:"text-sm",children:[e," "]},Math.random()),strong:e=>(0,s.jsx)("strong",{className:"font-semibold text-slate-800 dark:text-slate-200",children:e})}}),children:(0,s.jsx)(et,{assortmentId:e})}),(0,s.jsx)(q.f,{documentationLabel:c({id:"assortment_filters_header",defaultMessage:"Assortment filters"}),className:"sm:mt-4",documentation:(0,s.jsx)(t.K,{id:"assortment_filter_list_description",defaultMessage:"<ul> <li>All filters that are applied when searching for this assortment </li>\n <li> Drag and drop list items to sort filters order </li>\n </ul>",values:{ul:e=>(0,s.jsxs)("ul",{className:"space-y-2",children:[e," "]}),li:e=>(0,s.jsxs)("li",{className:"text-sm",children:[e," "]},Math.random()),strong:e=>(0,s.jsx)("strong",{className:"font-semibold text-slate-800 dark:text-slate-200",children:e})}}),children:u?(0,s.jsx)("div",{className:"ml-auto shadow-sm dark:shadow-none w-full md:col-span-2",children:(0,s.jsx)(n.f,{})}):(0,s.jsx)("div",{className:"ml-auto shadow-sm dark:shadow-none w-full md:col-span-2 bg-white dark:bg-slate-800",children:(0,s.jsx)(i.H,{sensors:b,collisionDetection:i.P,onDragEnd:y,id:"assortment-filter",children:(0,s.jsx)(Y,{filters:m,onRemoveFilter:v,items:p})})})})]})}],58101)},45856,24941,e=>{var s=e.i(91398),t=e.i(91788),a=e.i(66773),r=e.i(69322),i=e.i(69211),l=e.i(99160),n=e.i(45229),d=e.i(98949),o=e.i(59080),c=e.i(32171);let m=o.f`
|
|
111
|
+
fragment AssortmentTextsFragment on AssortmentTexts {
|
|
112
|
+
_id
|
|
113
|
+
locale
|
|
114
|
+
slug
|
|
115
|
+
title
|
|
116
|
+
subtitle
|
|
117
|
+
description
|
|
118
|
+
}
|
|
119
|
+
`,u=o.f`
|
|
120
|
+
query TranslatedAssortmentTexts($assortmentId: ID!) {
|
|
121
|
+
translatedAssortmentTexts(assortmentId: $assortmentId) {
|
|
122
|
+
...AssortmentTextsFragment
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
${m}
|
|
126
|
+
`;var f=e.i(76204);let x=o.f`
|
|
127
|
+
mutation updateAssortmentTexts(
|
|
128
|
+
$assortmentId: ID!
|
|
129
|
+
$texts: [AssortmentTextInput!]!
|
|
130
|
+
) {
|
|
131
|
+
updateAssortmentTexts(assortmentId: $assortmentId, texts: $texts) {
|
|
132
|
+
...AssortmentTextsFragment
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
${m}
|
|
136
|
+
`;var g=e.i(60195),h=e.i(58971),p=e.i(5505),v=e.i(73483),j=e.i(57561),y=e.i(48539);e.s(["f",0,({assortmentId:e})=>{let{formatMessage:o}=(0,r.S)(),{hasRole:m}=(0,h.f)(),{defaultLocale:b,shopInfo:M,loading:A}=(0,y.f)(),{selectedLocale:k,setSelectedLocale:_,languageDialectList:w}=(0,j.f)(),{translatedAssortmentTexts:I,loading:N}=(({assortmentId:e=null})=>{let{data:s,loading:t,error:a}=(0,c.f)(u,{skip:!e,variables:{assortmentId:e}});return{loading:t,error:a,translatedAssortmentTexts:s?.translatedAssortmentTexts||[]}})({assortmentId:e}),$=o({id:"saved",defaultMessage:"Saved"}),{updateAssortmentTexts:C}=(()=>{let[e]=(0,f.f)(x);return{updateAssortmentTexts:async({assortmentId:s,texts:t})=>e({variables:{assortmentId:s,texts:t},refetchQueries:["TranslatedAssortmentTexts","Assortment"]})}})(),D=async({slug:s,title:t,subtitle:a,description:r})=>(await C({assortmentId:e,texts:[{locale:k,slug:s,title:t,subtitle:a,description:r}]}),{success:!0}),T=(0,d.f)({submit:D,successMessage:$,initialValues:{slug:"",title:"",subtitle:"",...!N&&I?.find(e=>e.locale===k)||{}}});return(0,t.useEffect)(()=>{let e=I?.find(e=>e.locale===k);T.formik.setValues({slug:e?.slug||"",title:e?.title||"",subtitle:e?.subtitle||"",description:e?.description||"",...e||{}})},[I,k]),(0,t.useEffect)(()=>{if(M&&I?.length&&!I?.find(({locale:e})=>e===k))if(b&&I?.find(({locale:e})=>e===b))_(b);else if(b&&I?.find(({locale:e})=>e===b.split("-")[0]))_(b.split("-")[0]);else{let e=I?.find(({locale:e})=>e&&w?.find(({isoCode:s})=>s===e));_(e?.locale)}},[A,I]),(0,s.jsx)(g.f,{documentationLabel:o({id:"texts",defaultMessage:"Texts"}),className:"mt-2 lg:mt-5",documentation:(0,s.jsx)(r.K,{id:"assortment_text_form_description",defaultMessage:"<ul> <li><strong>Slug:</strong> The unique part of your category URL (e.g., 'electronics' or 'summer-collection'). Keep it short and descriptive.</li>\n <li><strong>Localization:</strong> Switch languages using the dropdown at the top left to translate content for different markets.</li>\n <li><strong>Description:</strong> Supports Markdown and HTML formatting. Use double backslash (\\\\\\\\\\\\\\\\) for line breaks.</li>\n <li><strong>Category Organization:</strong> Use clear, descriptive titles that help customers navigate your product catalog. Think about how customers would search for this category.</li>\n <li><strong>SEO Tip:</strong> Well-written category descriptions help search engines understand your product organization and improve discoverability.</li>\n </ul>",values:{ul:e=>(0,s.jsxs)("ul",{className:"space-y-2",children:[e," "]}),li:e=>(0,s.jsxs)("li",{className:"text-sm",children:[e," "]},Math.random()),strong:e=>(0,s.jsx)("strong",{className:"font-semibold text-slate-800 dark:text-slate-200",children:e})}}),children:(0,s.jsx)(p.U,{children:(0,s.jsx)(i.f,{form:T,disabled:!m(a.C.ManageAssortments),children:(0,s.jsxs)("div",{className:"shadow sm:rounded-md",children:[(0,s.jsxs)("div",{className:"grid gap-6 px-4 py-5 sm:p-6",children:[(0,s.jsx)("div",{className:"col-span-12",children:(0,s.jsx)(n.f,{name:"slug",disabled:!m(a.C.ManageAssortments),required:!0,id:"slug",label:o({id:"slug",defaultMessage:"Slug"}),autoComplete:"on",className:"mt-1 w-full text-sm"})}),(0,s.jsx)("div",{className:"col-span-12",children:(0,s.jsx)(n.f,{name:"title",disabled:!m(a.C.ManageAssortments),id:"title",label:o({id:"title",defaultMessage:"Title"}),required:!0,autoComplete:"on",className:"mt-1 w-full text-sm"})}),(0,s.jsx)("div",{className:"col-span-12",children:(0,s.jsx)(n.f,{name:"subtitle",disabled:!m(a.C.ManageAssortments),id:"subtitle",label:o({id:"subtitle",defaultMessage:"Subtitle"}),autoComplete:"on",className:"mt-1 w-full text-sm"})}),(0,s.jsx)("div",{className:"col-span-12",children:(0,s.jsx)(v.f,{name:"description",disabled:!m(a.C.ManageAssortments),id:"description",label:o({id:"description",defaultMessage:"Description"})})})]}),(0,s.jsx)("div",{className:"border-t-slate-100 border-t dark:border-t-slate-700 bg-slate-50 dark:bg-slate-900 px-4 py-5 text-right sm:px-6",children:m(a.C.ManageAssortments)&&(0,s.jsx)(l.f,{label:o({id:"save",defaultMessage:"Save"})})})]})})})})}],45856);var b=e.i(28401),M=e.i(59295),A=e.i(6277),k=e.i(33006),_=e.i(15971),w=e.i(6607),I=e.i(64479),N=e.i(93994);let $=o.f`
|
|
137
|
+
mutation PrepareAssortmentMediaUpload(
|
|
138
|
+
$mediaName: String!
|
|
139
|
+
$assortmentId: ID!
|
|
140
|
+
) {
|
|
141
|
+
prepareAssortmentMediaUpload(
|
|
142
|
+
mediaName: $mediaName
|
|
143
|
+
assortmentId: $assortmentId
|
|
144
|
+
) {
|
|
145
|
+
_id
|
|
146
|
+
putURL
|
|
147
|
+
expires
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
`,C=()=>{let[e]=(0,f.f)($),{confirmMediaUpload:s}=(0,I.f)({refetchQueries:["Assortment"]});return{addAssortmentMedia:async({assortmentId:t,media:a})=>{let{data:r}=await e({variables:{assortmentId:t,mediaName:a.name}}),{prepareAssortmentMediaUpload:i}=r;await (0,N.f)(a,i.putURL),await s({mediaUploadTicketId:i._id,size:a?.size,type:a?.type})}}};var D=e.i(1880);let T=o.f`
|
|
151
|
+
query AssortmentMedia($assortmentId: ID, $slug: String) {
|
|
152
|
+
assortment(assortmentId: $assortmentId, slug: $slug) {
|
|
153
|
+
_id
|
|
154
|
+
media {
|
|
155
|
+
_id
|
|
156
|
+
tags
|
|
157
|
+
texts {
|
|
158
|
+
_id
|
|
159
|
+
locale
|
|
160
|
+
title
|
|
161
|
+
subtitle
|
|
162
|
+
}
|
|
163
|
+
file {
|
|
164
|
+
_id
|
|
165
|
+
url
|
|
166
|
+
name
|
|
167
|
+
size
|
|
168
|
+
type
|
|
169
|
+
}
|
|
170
|
+
sortKey
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
`,S=({assortmentId:e=null,slug:s=null}={})=>{let t=(0,D.Q)(s),{data:a,loading:r,error:i}=(0,c.f)(T,{skip:!e&&!t,variables:{assortmentId:e||t}});return{loading:r,error:i,assortmentMedia:a?.assortment?.media||[]}},L=o.f`
|
|
175
|
+
mutation RemoveAssortmentMedia($assortmentMediaId: ID!) {
|
|
176
|
+
removeAssortmentMedia(assortmentMediaId: $assortmentMediaId) {
|
|
177
|
+
_id
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
`,P=()=>{let[e]=(0,f.f)(L);return{removeAssortmentMedia:async({assortmentMediaId:s})=>e({variables:{assortmentMediaId:s},refetchQueries:["AssortmentMedia"]})}},F=o.f`
|
|
181
|
+
mutation ReorderAssortmentMedia($sortKeys: [ReorderAssortmentMediaInput!]!) {
|
|
182
|
+
reorderAssortmentMedia(sortKeys: $sortKeys) {
|
|
183
|
+
_id
|
|
184
|
+
sortKey
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
`,R=()=>{let[e]=(0,f.f)(F);return{reorderAssortmentMedia:async({sortKeys:s})=>e({variables:{sortKeys:s},refetchQueries:["AssortmentMedia"]})}};var K=e.i(26178),q=e.i(90062);let O=o.f`
|
|
188
|
+
fragment AssortmentMediaTextsFragment on AssortmentMediaTexts {
|
|
189
|
+
_id
|
|
190
|
+
locale
|
|
191
|
+
title
|
|
192
|
+
subtitle
|
|
193
|
+
}
|
|
194
|
+
`,U=o.f`
|
|
195
|
+
query TranslatedAssortmentMediaTexts($assortmentMediaId: ID!) {
|
|
196
|
+
translatedAssortmentMediaTexts(assortmentMediaId: $assortmentMediaId) {
|
|
197
|
+
...AssortmentMediaTextsFragment
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
${O}
|
|
201
|
+
`,E=o.f`
|
|
202
|
+
mutation UpdateAssortmentMediaTexts(
|
|
203
|
+
$assortmentMediaId: ID!
|
|
204
|
+
$texts: [AssortmentMediaTextInput!]!
|
|
205
|
+
) {
|
|
206
|
+
updateAssortmentMediaTexts(
|
|
207
|
+
assortmentMediaId: $assortmentMediaId
|
|
208
|
+
texts: $texts
|
|
209
|
+
) {
|
|
210
|
+
...AssortmentMediaTextsFragment
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
${O}
|
|
214
|
+
`,Q=({media:e,onDelete:a,locale:r,id:i})=>{let[l,n]=(0,t.useState)(!1),{updateAssortmentMediaTexts:d}=(()=>{let[e]=(0,f.f)(E);return{updateAssortmentMediaTexts:async({assortmentMediaId:s,texts:t})=>e({variables:{assortmentMediaId:s,texts:t},refetchQueries:["TranslatedAssortmentMediaTexts"]})}})(),{translatedAssortmentMediaTexts:o}=(({assortmentMediaId:e=null})=>{let{data:s,loading:t,error:a}=(0,c.f)(U,{skip:!e,variables:{assortmentMediaId:e}});return{loading:t,error:a,translatedAssortmentMediaTexts:s?.translatedAssortmentMediaTexts||[]}})({assortmentMediaId:e._id}),m=o?.find(e=>e.locale===r)||{},u=async({title:s,subtitle:t})=>(await d({assortmentMediaId:e._id,texts:[{title:s,locale:r,subtitle:t}]}),n(!1),!0);return(0,s.jsx)(q.f,{media:e,mediaText:m,isEdit:l,onDelete:a,onEdit:n,onUpdate:u,id:i})},V=({medias:e=[],onDeleteMedia:t,items:a=[]})=>{let{formatMessage:i}=(0,r.S)(),{selectedLocale:l}=(0,j.f)();return A.V&&Q&&K.f?(0,s.jsx)("div",{className:"rounded-md lg:col-span-6",children:(0,s.jsxs)("div",{className:"mx-auto max-w-7xl overflow-hidden",children:[(0,s.jsx)("h2",{className:"sr-only",children:i({id:"assortment_media",defaultMessage:"Assortment Media"})}),(0,s.jsx)(A.V,{items:a,strategy:A.W,children:(0,s.jsx)("ul",{className:"space-y-4 transition-[background-color] ease-in-out delay-200",children:e.length?a.map(a=>{let r=Object.values(e).find(e=>e._id===a);return r?(0,s.jsx)(Q,{id:a,media:r,locale:l,onDelete:t},r._id):(console.warn(`Media with ID ${a} not found in medias array`),null)}).filter(Boolean):(0,s.jsx)(K.f,{message:i({id:"media",defaultMessage:"Media"})})})})]})}):(console.error("Required components not loaded in AssortmentMediaList:",{SortableContext:!!A.V,AssortmentMediaListItem:!!Q,NoData:!!K.f}),(0,s.jsx)("div",{className:"rounded-md lg:col-span-6",children:(0,s.jsx)("div",{className:"mx-auto max-w-7xl overflow-hidden",children:(0,s.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,s.jsx)("div",{className:"text-rose-500",children:"Media list component loading error. Please refresh the page."})})})}))},B=({assortmentId:e})=>{let{assortmentMedia:t,loading:i,error:l}=S({assortmentId:e}),{formatMessage:n}=(0,r.S)(),{setModal:d}=(0,w.f)(),{hasRole:o}=(0,h.f)(),{removeAssortmentMedia:c}=P(),{reorderAssortmentMedia:m}=R(),{addAssortmentMedia:u}=C(),f=(0,M.n)((0,M.J)(M.k,{activationConstraint:{distance:5}}),(0,M.J)(M.y,{coordinateGetter:A.j})),x=(t||[]).map(e=>e._id);if(!k.f||!M.H||!V)return console.error("Required components not loaded:",{MediaUploader:!!k.f,DndContext:!!M.H,AssortmentMediaList:!!V}),(0,s.jsx)("div",{className:"mx-auto mt-5 max-w-full bg-white dark:bg-slate-800 py-6 shadow-sm dark:shadow-none lg:rounded-sm",children:(0,s.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,s.jsx)("div",{className:"text-rose-500",children:n({id:"component_loading_error",defaultMessage:"Component loading error. Please refresh the page."})})})});if(i)return(0,s.jsx)("div",{className:"mx-auto mt-5 max-w-full bg-white dark:bg-slate-800 py-6 shadow-sm dark:shadow-none lg:rounded-sm",children:(0,s.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,s.jsx)("div",{className:"text-slate-500 dark:text-slate-400",children:n({id:"loading_media",defaultMessage:"Loading media..."})})})});if(l)return(0,s.jsx)("div",{className:"mx-auto mt-5 max-w-full bg-white dark:bg-slate-800 py-6 shadow-sm dark:shadow-none lg:rounded-sm",children:(0,s.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,s.jsxs)("div",{className:"text-rose-500",children:[n({id:"error_loading_media",defaultMessage:"Error loading media: "})," ",l.message]})})});let g=async s=>{try{await u({assortmentId:e,media:s}),b.c.success(n({id:"assortment_media_upload",defaultMessage:"Media uploaded successfully"}))}catch(e){b.c.error(n({id:"fail_upload",defaultMessage:"Media upload failed"}))}},p=async e=>{await d((0,s.jsx)(_.f,{onCancelClick:async()=>d(""),message:n({id:"delete_assortment_media_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this currency? "}),onOkClick:async()=>{d(""),await c({assortmentMediaId:e}),b.c.success(n({id:"assortment_media_deleted",defaultMessage:"Media deleted successfully"}))},okText:n({id:"delete_assortment_media",defaultMessage:"Delete media"})}))},v=async e=>{let{active:s,over:t}=e;if(s.id!==t.id){let e=x.indexOf(s.id),a=x.indexOf(t.id),r=(0,A.e)(x,e,a).map((e,s)=>({assortmentMediaId:e,sortKey:s}));try{await m({sortKeys:r}),b.c.success(n({id:"link_reorder",defaultMessage:"Link reorder successfully"}))}catch(e){b.c.error(n({id:"fail_reorder",defaultMessage:"Reordering failed, Try again!"}))}}else b.c.info(n({id:"reorder_original",defaultMessage:"Reorder to original location"}))};return(0,s.jsxs)("div",{className:"mx-auto mt-5 max-w-fullpy-6 grid lg:grid-cols-12 gap-5",children:[o(a.C.ManageAssortments)&&(0,s.jsx)("div",{className:"lg:col-span-6",children:(0,s.jsx)(k.f,{onlyDragAndDrop:!0,addMedia:g})}),(0,s.jsx)("div",{className:"lg:col-span-6",children:(0,s.jsx)(M.H,{sensors:f,collisionDetection:M.P,onDragEnd:v,id:"assortment-media",children:(0,s.jsx)(V,{medias:t,onDeleteMedia:p,items:x})})})]})};e.s(["f",0,e=>{let t=Object.entries({MediaUploader:k.f,DangerMessage:_.f,useModal:w.f,useAddAssortmentMedia:C,useAssortmentMedia:S,useRemoveAssortmentMedia:P,useReorderAssortmentMedia:R,AssortmentMediaList:V,DndContext:M.H,closestCenter:M.P,KeyboardSensor:M.y,PointerSensor:M.k,useSensor:M.J,useSensors:M.n,arrayMove:A.e,sortableKeyboardCoordinates:A.j}).filter(([e,s])=>!s).map(([e])=>e);if(t.length>0)return console.error("Missing dependencies in AssortmentMediaForm:",t),(0,s.jsx)("div",{className:"mx-auto mt-5 max-w-full bg-white dark:bg-slate-800 py-6 shadow-sm dark:shadow-none lg:rounded-sm",children:(0,s.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"text-rose-500 mb-2",children:"Missing Dependencies"}),(0,s.jsxs)("div",{className:"text-sm text-slate-600 dark:text-slate-400",children:["The following dependencies are missing:"," ",t.join(", ")]})]})})});try{return(0,s.jsx)(B,{...e})}catch(e){return console.error("Error rendering AssortmentMediaForm:",e),(0,s.jsx)("div",{className:"mx-auto mt-5 max-w-full bg-white dark:bg-slate-800 py-6 shadow-sm dark:shadow-none lg:rounded-sm",children:(0,s.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"text-rose-500 mb-2",children:"Component Error"}),(0,s.jsx)("div",{className:"text-sm text-slate-600 dark:text-slate-400",children:e instanceof Error?e.message:"Unknown error occurred"})]})})})}}],24941)},50931,e=>{var s=e.i(59080);let t=s.f`
|
|
215
|
+
fragment AssortmentFragment on Assortment {
|
|
216
|
+
_id
|
|
217
|
+
isActive
|
|
218
|
+
created
|
|
219
|
+
updated
|
|
220
|
+
sequence
|
|
221
|
+
isRoot
|
|
222
|
+
tags
|
|
223
|
+
texts(forceLocale: $forceLocale) {
|
|
224
|
+
_id
|
|
225
|
+
slug
|
|
226
|
+
title
|
|
227
|
+
subtitle
|
|
228
|
+
description
|
|
229
|
+
}
|
|
230
|
+
childrenCount
|
|
231
|
+
media {
|
|
232
|
+
_id
|
|
233
|
+
tags
|
|
234
|
+
file {
|
|
235
|
+
_id
|
|
236
|
+
url
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
`;e.s(["f",0,t])},65530,57569,35339,e=>{var s=e.i(59080),t=e.i(32171),a=e.i(1880),r=e.i(50931),i=e.i(57561);let l=s.f`
|
|
241
|
+
query AssortmentLinks(
|
|
242
|
+
$assortmentId: ID
|
|
243
|
+
$slug: String
|
|
244
|
+
$forceLocale: Locale
|
|
245
|
+
) {
|
|
246
|
+
assortment(assortmentId: $assortmentId, slug: $slug) {
|
|
247
|
+
_id
|
|
248
|
+
linkedAssortments {
|
|
249
|
+
_id
|
|
250
|
+
sortKey
|
|
251
|
+
parent {
|
|
252
|
+
...AssortmentFragment
|
|
253
|
+
}
|
|
254
|
+
child {
|
|
255
|
+
...AssortmentFragment
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
${r.f}
|
|
261
|
+
`;e.s(["f",0,({assortmentId:e=null,slug:s=null}={})=>{let r=(0,a.Q)(s),{selectedLocale:n}=(0,i.f)(),{data:d,loading:o,error:c}=(0,t.f)(l,{skip:!e&&!r,variables:{assortmentId:e||r,forceLocale:n}}),m=d?.assortment;return{loading:o,error:c,linkedAssortments:m?.linkedAssortments||[]}}],65530);var n=e.i(76204);let d=s.f`
|
|
262
|
+
mutation RemoveAssortmentLink($assortmentLinkId: ID!) {
|
|
263
|
+
removeAssortmentLink(assortmentLinkId: $assortmentLinkId) {
|
|
264
|
+
_id
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
`;e.s(["f",0,()=>{let[e]=(0,n.f)(d);return{removeAssortmentLink:async({assortmentLinkId:s})=>e({variables:{assortmentLinkId:s},refetchQueries:["AssortmentLinks"]})}}],57569);let o=s.f`
|
|
268
|
+
mutation AddAssortmentLink(
|
|
269
|
+
$parentAssortmentId: ID!
|
|
270
|
+
$childAssortmentId: ID!
|
|
271
|
+
$tags: [LowerCaseString!]
|
|
272
|
+
) {
|
|
273
|
+
addAssortmentLink(
|
|
274
|
+
parentAssortmentId: $parentAssortmentId
|
|
275
|
+
childAssortmentId: $childAssortmentId
|
|
276
|
+
tags: $tags
|
|
277
|
+
) {
|
|
278
|
+
_id
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
`;e.s(["f",0,()=>{let[e]=(0,n.f)(o);return{addAssortmentLink:async({parentAssortmentId:s,childAssortmentId:t,tags:a})=>e({variables:{parentAssortmentId:s,childAssortmentId:t,tags:a},refetchQueries:["AssortmentLinks"]})}}],35339)},37547,e=>{var s=e.i(59080),t=e.i(32171),a=e.i(50931);let r=s.f`
|
|
282
|
+
query Assortments(
|
|
283
|
+
$queryString: String
|
|
284
|
+
$tags: [LowerCaseString!]
|
|
285
|
+
$slugs: [String!]
|
|
286
|
+
$limit: Int
|
|
287
|
+
$offset: Int
|
|
288
|
+
$includeInactive: Boolean
|
|
289
|
+
$includeLeaves: Boolean
|
|
290
|
+
$sort: [SortOptionInput!]
|
|
291
|
+
$forceLocale: Locale
|
|
292
|
+
) {
|
|
293
|
+
assortments(
|
|
294
|
+
queryString: $queryString
|
|
295
|
+
tags: $tags
|
|
296
|
+
slugs: $slugs
|
|
297
|
+
limit: $limit
|
|
298
|
+
offset: $offset
|
|
299
|
+
includeInactive: $includeInactive
|
|
300
|
+
includeLeaves: $includeLeaves
|
|
301
|
+
sort: $sort
|
|
302
|
+
) {
|
|
303
|
+
...AssortmentFragment
|
|
304
|
+
linkedAssortments {
|
|
305
|
+
child {
|
|
306
|
+
_id
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
assortmentsCount(
|
|
311
|
+
tags: $tags
|
|
312
|
+
slugs: $slugs
|
|
313
|
+
includeInactive: $includeInactive
|
|
314
|
+
includeLeaves: $includeLeaves
|
|
315
|
+
queryString: $queryString
|
|
316
|
+
)
|
|
317
|
+
}
|
|
318
|
+
${a.f}
|
|
319
|
+
`;e.s(["f",0,({queryString:e="",tags:s=null,slugs:a=null,limit:i=20,offset:l=0,includeInactive:n=!0,includeLeaves:d=!1,sort:o=[],forceLocale:c=""}={})=>{let{data:m,loading:u,error:f,fetchMore:x,client:g}=(0,t.f)(r,{variables:{queryString:e,tags:s,slugs:a||null,limit:i,offset:l,includeInactive:n,includeLeaves:d,sort:o.length?o:[{key:"sequence",value:"ASC"}],forceLocale:c},context:{headers:{forceLocale:c}}}),h=m?.assortments||[],p=m?.assortmentsCount,v=h?.length<p;return{loading:u,error:f,assortmentsCount:p,hasMore:v,assortments:m?.assortments||[],loadMore:()=>{x({variables:{offset:h?.length}})},client:g}}])},75818,e=>{var s=e.i(59080),t=e.i(76204);let a=s.f`
|
|
320
|
+
mutation RemoveAssortment($assortmentId: ID!) {
|
|
321
|
+
removeAssortment(assortmentId: $assortmentId) {
|
|
322
|
+
_id
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
`;e.s(["f",0,()=>{let[e]=(0,t.f)(a);return{removeAssortment:async({assortmentId:s})=>e({variables:{assortmentId:s},refetchQueries:["Assortments","Assortment","ShopStatus","ShopInfo"]})}}])},921,e=>{var s=e.i(59080),t=e.i(76204);let a=s.f`
|
|
326
|
+
mutation UpdateAssortment(
|
|
327
|
+
$assortment: UpdateAssortmentInput!
|
|
328
|
+
$assortmentId: ID!
|
|
329
|
+
) {
|
|
330
|
+
updateAssortment(assortment: $assortment, assortmentId: $assortmentId) {
|
|
331
|
+
_id
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
`;e.s(["f",0,()=>{let[e]=(0,t.f)(a);return{updateAssortment:async({assortmentId:s,assortment:{isRoot:t,tags:a,sequence:r,isActive:i}})=>e({variables:{assortment:{isRoot:t,tags:a,sequence:r,isActive:i},assortmentId:s},refetchQueries:["Assortments","Assortment"]})}}])},98568,e=>{var s=e.i(91398),t=e.i(69322),a=e.i(66773),r=e.i(28401),i=e.i(3828),l=e.i(61494),n=e.i(12197),d=e.i(17644),o=e.i(25705),c=e.i(27927),m=e.i(50243),u=e.i(52745),f=e.i(93259),x=e.i(76929),g=e.i(11056),h=e.i(92276),p=e.i(81359),v=e.i(8199),j=e.i(15971),y=e.i(75818),b=e.i(45856),M=e.i(24941),A=e.i(79001),k=e.i(34981),_=e.i(58101),w=e.i(921),I=e.i(41523),N=e.i(37932),$=e.i(58971),C=e.i(6607),D=e.i(31494),T=e.i(57561);let S=({id:e,selectedView:t,...a})=>"texts"===t?(0,s.jsx)(g.f,{children:(0,s.jsx)(b.f,{assortmentId:e})}):"links"===t?(0,s.jsx)(g.f,{children:(0,s.jsx)(A.f,{assortmentId:e})}):"media"===t?(0,s.jsx)(v.f,{children:(0,s.jsx)(g.f,{children:(0,s.jsx)(M.f,{assortmentId:e})})}):"products"===t?(0,s.jsx)(g.f,{children:(0,s.jsx)(k.f,{assortmentId:e})}):"filters"===t?(0,s.jsx)(g.f,{children:(0,s.jsx)(_.f,{assortmentId:e})}):"extended"===t?(0,s.jsx)(g.f,{children:(0,s.jsx)(D.f,{data:a})}):(0,s.jsx)(g.f,{children:(0,s.jsx)(b.f,{assortmentId:e})}),L=({assortment:e,extendedData:l,hideControls:n=!1})=>{let{isActive:d,isRoot:g}=e||{},{hasRole:v}=(0,$.f)(),{shopInfo:b}=(0,T.f)(),{formatMessage:M}=(0,t.S)(),{updateAssortment:A}=(0,w.f)(),{removeAssortment:k}=(0,y.f)(),{setModal:_}=(0,C.f)(),D=(0,i.useRouter)(),L=async s=>{s.target.value&&await A({assortmentId:e?._id,assortment:{sequence:parseInt(s.target.value,10)}})},P=[{id:"texts",title:M({id:"texts",defaultMessage:"Texts"}),Icon:(0,s.jsx)(o.f,{className:"h-5 w-5"})},{id:"links",title:M({id:"links",defaultMessage:"Links"}),Icon:(0,s.jsx)(c.f,{className:"h-5 w-5"})},{id:"media",title:M({id:"media",defaultMessage:"Media"}),Icon:(0,s.jsx)(m.f,{className:"h-5 w-5"})},{id:"products",title:M({id:"products",defaultMessage:"Products"}),Icon:(0,s.jsx)(u.f,{className:"h-5 w-5"})},{id:"filters",title:M({id:"filters",defaultMessage:"Filters"}),Icon:(0,s.jsx)(f.f,{className:"h-5 w-5"})},null!==l&&{id:"extended",title:M({id:"extended-fields",defaultMessage:"Extended"}),Icon:(0,s.jsx)(x.f,{className:"h-5 w-5"})}],F=async s=>(await A({assortmentId:e?._id,assortment:{isRoot:s}}),!0),R=async({tags:s})=>(await A({assortmentId:e?._id,assortment:{tags:s}}),!0),K=async s=>(await A({assortmentId:e?._id,assortment:{isActive:s}}),!0),q=[{id:"active",title:M({id:"activate",defaultMessage:"Activate"}),selectedTitle:M({id:"activated",defaultMessage:"Activated"}),description:M({id:"activate_assortment_description",defaultMessage:"Will be visible on search"}),current:d,bgColor:"emerald",onClick:async()=>{await K(!0),r.c.success(M({id:"assortment_activated",defaultMessage:"Assortment activated successfully"}))}},{id:"in-active",title:M({id:"deactivate",defaultMessage:"Deactivate"}),selectedTitle:M({id:"deactivated",defaultMessage:"Deactivated"}),description:M({id:"deactivate_assortment_description",defaultMessage:"Will not be visible on search"}),current:!d,bgColor:"amber",onClick:async()=>{await K(!1),r.c.success(M({id:"assortment_deactivated",defaultMessage:"Assortment deactivated successfully"}))}}],O=[{id:"root",title:M({id:"make_root",defaultMessage:"Make root"}),selectedTitle:M({id:"root",defaultMessage:"Root"}),description:M({id:"root_assortment_description",defaultMessage:"Can not be assigned as a child of another assortment "}),current:g,bgColor:"emerald",onClick:async()=>{await F(!0),r.c.success(M({id:"assortment_changed_to_root",defaultMessage:"Assortment changed to root"}))}},{id:"leaf",selectedTitle:M({id:"leaf",defaultMessage:"Leaf"}),title:M({id:"make_leaf",defaultMessage:"Make leaf"}),description:M({id:"leaf_assortment_description",defaultMessage:"Can be assigned as a child of another assortment "}),current:!g,bgColor:"emerald",onClick:async()=>{await F(!1),r.c.success(M({id:"assortment_changed_to_leaf",defaultMessage:"Assortment changed to leaf"}))}}],U=async()=>{await _((0,s.jsx)(j.f,{onCancelClick:()=>_(""),message:M({id:"delete_assortment_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it and it is nonreversible. Are you sure you want to delete this assortment?"}),onOkClick:async()=>{_(""),await k({assortmentId:e._id}),r.c.success(M({id:"assortment_deleted_success",defaultMessage:"Deleted successfully"})),D.push("/assortments")}}))};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"mt-5 flex flex-wrap items-center justify-between gap-10",children:[(0,s.jsx)(N.f,{defaultValue:e?.tags,onSubmit:R,enableEdit:v(a.C.ManageAssortments),availableTagOptions:b?.adminUiConfig?.assortmentTags?.filter(s=>!(e?.tags||[])?.includes(s))?.map(e=>({value:e,label:e}))||[]}),!n&&(0,s.jsxs)("div",{className:"mt-5 flex flex-wrap gap-3",children:[(0,s.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium leading-5 shadow-sm bg-white dark:bg-slate-800 h-[38px]",children:[(0,s.jsx)("label",{htmlFor:"sequence",className:"text-slate-700 dark:text-slate-200 font-medium",children:M({id:"sequence",defaultMessage:"Display Order"})}),(0,s.jsx)("input",{id:"sequence",type:"number",className:"text-center w-12 bg-transparent border border-slate-300 dark:border-slate-600 rounded focus:ring-0 focus:outline-none text-sm font-semibold text-slate-900 dark:text-slate-300 px-2 py-1",defaultValue:e?.sequence,onBlur:L})]}),(0,s.jsx)(h.f,{options:O,type:M({id:"assortment",defaultMessage:"Assortment"})}),(0,s.jsx)(h.f,{options:q,type:M({id:"assortment",defaultMessage:"Assortment"})}),v(a.C.ManageAssortments)&&(0,s.jsx)(p.f,{onClick:U})]})]}),(0,s.jsx)(I.f,{tabItems:P,defaultTab:"texts",children:(0,s.jsx)(S,{id:e?._id,...l})})]})};var P=e.i(59080),F=e.i(32171),R=e.i(1880),K=e.i(70693),q=e.i(50931),O=e.i(84818),U=e.i(35065);let E=({media:e=[],onEditMedia:t})=>(0,s.jsx)("div",{className:"my-5",children:(0,s.jsx)("div",{className:"flex gap-3 overflow-x-auto",children:e.map(e=>(0,s.jsx)("div",{className:"relative flex-shrink-0 group",children:(0,s.jsx)("div",{className:"w-16 h-16 bg-slate-100 dark:bg-slate-800 rounded-lg overflow-hidden cursor-pointer border border-slate-200 dark:border-slate-700",onClick:()=>{var s;return s=e._id,void(t&&t(s))},children:(0,s.jsx)(U.f,{src:e?.file?.url,alt:e.texts?.[0]?.title||e?.file?.url,width:128,height:128,className:"w-full h-full object-cover"})})},e._id))})});e.s(["default",0,({assortmentSlug:e})=>{let{formatDateTime:o}=(0,O.f)(),{formatMessage:c}=(0,t.S)(),{hasRole:m}=(0,$.f)(),{updateAssortment:u}=(0,w.f)(),{removeAssortment:f}=(0,y.f)(),{setModal:x}=(0,C.f)(),g=(0,i.useRouter)(),{assortment:v,loading:b,extendedData:M}=(({assortmentId:e=null,slug:s=null}={})=>{let t=(0,R.Q)(s),{customProperties:a,hydrateFragment:r}=(0,K.f)(),{selectedLocale:i}=(0,T.f)(),{data:l,loading:n,error:d}=(0,F.f)(((e="")=>P.f`
|
|
335
|
+
query Assortment($assortmentId: ID, $slug: String, $forceLocale: Locale) {
|
|
336
|
+
assortment(assortmentId: $assortmentId, slug: $slug) {
|
|
337
|
+
...AssortmentFragment
|
|
338
|
+
${e}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
${q.f}
|
|
342
|
+
`)(a?.Assortment),{skip:!e&&!s,variables:{assortmentId:e||t,forceLocale:i}}),o=l?.assortment,c=r(a?.Assortment,o);return{loading:n,error:d,assortment:o,extendedData:c}})({slug:e}),{isActive:A,isRoot:k}=v||{},_=async e=>{e.target.value&&await u({assortmentId:v?._id,assortment:{sequence:parseInt(e.target.value,10)}})},I=async e=>(await u({assortmentId:v?._id,assortment:{isRoot:e}}),!0),N=async e=>(await u({assortmentId:v?._id,assortment:{isActive:e}}),!0),D=[{id:"active",title:c({id:"activate",defaultMessage:"Activate"}),selectedTitle:c({id:"activated",defaultMessage:"Activated"}),description:c({id:"activate_assortment_description",defaultMessage:"Will be visible on search"}),current:A,disable:!m(a.C.ManageAssortments),bgColor:"emerald",onClick:async()=>{await N(!0),r.c.success(c({id:"assortment_activated",defaultMessage:"Assortment activated successfully"}))}},{id:"in-active",title:c({id:"deactivate",defaultMessage:"Deactivate"}),selectedTitle:c({id:"deactivated",defaultMessage:"Deactivated"}),description:c({id:"deactivate_assortment_description",defaultMessage:"Will not be visible on search"}),current:!A,disable:!m(a.C.ManageAssortments),bgColor:"amber",onClick:async()=>{await N(!1),r.c.success(c({id:"assortment_deactivated",defaultMessage:"Assortment deactivated successfully"}))}}],S=[{id:"root",title:c({id:"make_root",defaultMessage:"Make root"}),selectedTitle:c({id:"root",defaultMessage:"Root"}),description:c({id:"root_assortment_description",defaultMessage:"Can not be assigned as a child of another assortment "}),disable:!m(a.C.ManageAssortments),current:k,bgColor:"stone",onClick:async()=>{await I(!0),r.c.success(c({id:"assortment_changed_to_root",defaultMessage:"Assortment changed to root"}))}},{id:"leaf",selectedTitle:c({id:"leaf",defaultMessage:"Leaf"}),title:c({id:"make_leaf",defaultMessage:"Make leaf"}),disable:!m(a.C.ManageAssortments),description:c({id:"leaf_assortment_description",defaultMessage:"Can be assigned as a child of another assortment "}),current:!k,bgColor:"emerald",onClick:async()=>{await I(!1),r.c.success(c({id:"assortment_changed_to_leaf",defaultMessage:"Assortment changed to leaf"}))}}],U=async()=>{await x((0,s.jsx)(j.f,{onCancelClick:()=>x(""),message:c({id:"delete_assortment_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it and it is nonreversible. Are you sure you want to delete this assortment?"}),onOkClick:async()=>{x(""),await f({assortmentId:v._id}),r.c.success(c({id:"assortment_deleted_success",defaultMessage:"Deleted successfully"})),g.push("/assortments")}}))};return v||b?b?(0,s.jsx)(n.f,{}):(0,s.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,s.jsx)(l.f,{routeName:e,depth:3,currentPageTitle:v?.texts?.title}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"items-center flex-wrap flex gap-5 min-w-full justify-between",children:[(0,s.jsx)(d.f,{headerText:v?.texts?.title||"Untitled Assortment",title:`${v?.texts?.title||"Assortment"} (${v?._id})`}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,s.jsx)(h.f,{options:D,type:c({id:"assortment",defaultMessage:"Assortment"})}),(0,s.jsx)(h.f,{options:S,type:c({id:"assortment",defaultMessage:"Assortment"})}),(0,s.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium leading-5 shadow-sm bg-white dark:bg-slate-800 h-[38px]",children:[(0,s.jsx)("label",{htmlFor:"sequence",className:"text-slate-700 dark:text-slate-200 font-medium",children:c({id:"sequence",defaultMessage:"Display Order"})}),(0,s.jsx)("input",{id:"sequence",type:"number",disabled:!m(a.C.ManageAssortments),className:"text-center w-12 bg-transparent border border-slate-300 dark:border-slate-600 rounded focus:ring-0 focus:outline-none text-sm font-semibold text-slate-900 dark:text-slate-300 px-2 py-1",defaultValue:v?.sequence,onBlur:_})]}),m(a.C.ManageAssortments)&&(0,s.jsx)(p.f,{onClick:U})]})]}),(0,s.jsxs)("div",{className:"mt-8 flex flex-wrap gap-3 gap-x-10 text-slate-600 dark:text-slate-400",children:[(0,s.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,s.jsx)("span",{className:"text-xs text-slate-600 dark:text-slate-400",children:"ID:"}),(0,s.jsx)("span",{className:"text-sm font-mono",children:v?._id})]}),v?.created&&(0,s.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,s.jsxs)("span",{className:"text-xs text-slate-600 dark:text-slate-300",children:[c({id:"created",defaultMessage:"Created"}),":"]}),(0,s.jsx)("span",{className:"text-sm font-mono",children:o(v.created,{dateStyle:"medium",timeStyle:"short"})})]}),v?.updated&&(0,s.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,s.jsxs)("span",{className:"text-xs text-slate-600 dark:text-slate-300",children:[c({id:"updated",defaultMessage:"Updated"}),":"]}),(0,s.jsx)("span",{className:"text-sm font-mono",children:o(v.updated,{dateStyle:"medium",timeStyle:"short"})})]})]})]}),(0,s.jsx)(E,{assortmentId:v?._id,media:v?.media||[],onEditMedia:e=>{g.push({pathname:g.pathname,query:{...g.query,tab:"media"}},void 0,{shallow:!0})},canEdit:m(a.C.ManageAssortments)}),(0,s.jsx)(L,{assortment:v,extendedData:M,hideControls:!0})]}):(g.push("/404"),null)}],98568)},93259,e=>{var s=e.i(91788);let t=s.forwardRef(function({title:e,titleId:t,...a},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},a),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M2.628 1.601C5.028 1.206 7.49 1 10 1s4.973.206 7.372.601a.75.75 0 0 1 .628.74v2.288a2.25 2.25 0 0 1-.659 1.59l-4.682 4.683a2.25 2.25 0 0 0-.659 1.59v3.037c0 .684-.31 1.33-.844 1.757l-1.937 1.55A.75.75 0 0 1 8 18.25v-5.757a2.25 2.25 0 0 0-.659-1.591L2.659 6.22A2.25 2.25 0 0 1 2 4.629V2.34a.75.75 0 0 1 .628-.74Z",clipRule:"evenodd"}))});e.s(["f",0,t],93259)}])})();
|