@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,315 @@
|
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23647,26013,e=>{var s=e.i(91398),t=e.i(69322),a=e.i(15361),r=e.i(91788);let l=r.forwardRef(function({title:e,titleId:s,...t},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},t),e?r.createElement("title",{id:s},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});e.s(["f",0,l],26013);var d=e.i(67912),i=e.i(41158),n=e.i(93380),c=e.i(35065);let o=({username:e})=>(0,s.jsx)(d.f,{className:"h-8 w-8 text-slate-800 dark:text-slate-600"});e.s(["f",0,({user:e,contact:r})=>{let{formatMessage:d}=(0,t.S)();return(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"h-8 w-8 rounded-full",children:e?.avatar?(0,s.jsx)(c.f,{src:e.avatar.url,alt:e.name||e.username,width:100,height:100}):(0,s.jsx)(o,{username:e?.username})}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-4",children:[(0,s.jsx)("div",{className:"flex items-center justify-between gap-3 flex-wrap",children:(0,s.jsxs)("span",{className:"flex items-center",children:[(0,s.jsx)("h3",{className:"text-xl font-semibold capitalize",children:(0,s.jsx)(i.default,{href:`/users?userId=${e?._id}`,className:"text-slate-800 dark:text-slate-300 hover:text-slate-900 dark:hover:text-slate-600",children:(0,n.f)(e)})}),e?.primaryEmail?.verified&&(0,s.jsxs)("dl",{className:"self-end",children:[(0,s.jsx)("dt",{className:"sr-only",children:d({id:"account_status",defaultMessage:"Account status"})}),(0,s.jsx)("dd",{className:"mt-3 flex items-center self-end text-sm font-medium capitalize text-slate-900 sm:mr-6 sm:mt-0",children:e?.primaryEmail?.verified?(0,s.jsx)(a.f,{className:"h-4 w-4 shrink-0 text-emerald-400","aria-hidden":"true"}):(0,s.jsx)(l,{className:"h-4 w-4 shrink-0 text-rose-400","aria-hidden":"true"})})]})]})}),r?.emailAddress&&(0,s.jsx)("div",{children:r.emailAddress}),r?.telNumber&&(0,s.jsx)("div",{children:r.telNumber})]})]})}],23647)},66885,e=>{var s=e.i(91398),t=e.i(69322),a=e.i(38322),r=e.i(84818),l=e.i(83147),d=e.i(51782);e.s(["f",0,({data:e,statusTypes:i,timeline:n})=>{let{formatMessage:c}=(0,t.S)(),{formatDateTime:o}=(0,r.f)(),{content:u={},id:m}=n[e?.status]||{},x=i.filter(({value:e})=>n[e]?.visible);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"flow-root sm:hidden",children:(0,s.jsx)("ul",{className:"my-4",children:x.map(({value:t,label:r},d)=>(0,s.jsx)("li",{children:(0,s.jsxs)("div",{className:"relative pb-8",children:[d!==x.length-1?(0,s.jsx)("span",{className:(0,l.S)(m>d+1?"bg-slate-900":"bg-slate-200","absolute top-2.5 left-2.5 -ml-px h-full w-0.5"),"aria-hidden":"true"}):null,(0,s.jsxs)("div",{className:"relative flex items-center space-x-3",children:[(0,s.jsx)("div",{children:(0,s.jsx)("span",{className:(0,l.S)(m>d?"bg-slate-900":"bg-slate-600","flex h-5 w-5 items-center justify-center rounded-full"),children:m>d?(0,s.jsx)(a.f,{className:"h-5 w-5 text-white","aria-hidden":"true"}):null})}),(0,s.jsxs)("div",{className:"ml-4 flex min-w-0 flex-1 items-center justify-between",children:[(0,s.jsx)("div",{className:"flex-auto",children:(0,s.jsx)("p",{className:"text-sm text-slate-500",children:(0,s.jsxs)("span",{className:"flex w-full items-center justify-between text-slate-900 dark:text-slate-200",children:[t,n[t]?.Component&&n[t].Component]})})}),m>=n[t].id?(0,s.jsx)("div",{className:"whitespace-nowrap text-right text-sm text-slate-500 dark:text-slate-200 ml-4",children:e[n?.[t]?.content]?o(e[n?.[t]?.content],{dateStyle:"short",timeStyle:"short"}):null}):null]})]})]})},`${t}${r}`))})}),(0,s.jsxs)("div",{className:" p-4 bg-white shadow-sm dark:shadow-none dark:border dark:border-slate-700 sm:rounded-lg dark:bg-slate-900",children:[(0,s.jsxs)("p",{className:"font-medium flex items-center justify-between",children:[(0,s.jsx)(d.f,{status:e.status}),(0,s.jsx)("span",{children:e[u]?o(e[u],{dateStyle:"full",timeStyle:"medium"}):c({id:"in_cart",defaultMessage:"In cart"})})]}),(0,s.jsx)("div",{className:"mt-2","aria-hidden":"true",children:(0,s.jsx)("div",{className:"mt-2 hidden text-sm font-medium text-slate-600 sm:flex",children:x.map(({value:t,label:a})=>(0,s.jsxs)("div",{className:"sm:flex-auto",children:[(0,s.jsx)("div",{className:"relative mb-4 mr-1",children:(0,s.jsx)("span",{className:(0,l.S)(m>=n[t].id?e?.status==="CONFIRMED"?"bg-lime-600":e?.status==="PENDING"?"bg-amber-600":e?.status==="OPEN"?"bg-sky-600":"bg-emerald-600":"bg-slate-200 dark:bg-slate-700","absolute top-0 left-0 -ml-px h-2 w-full"),"aria-hidden":"true"})}),(0,s.jsxs)("div",{className:(0,l.S)(m>=n[t].id?"text-slate-900":"opacity-50","text-start"),children:[(0,s.jsx)("span",{className:"text-slate-900 dark:text-slate-400 uppercase",children:n[t]?.Component?n[t].Component:"CONFIRMED"===t?c({id:"confirmed",defaultMessage:"CONFIRMED"}):"PENDING"===t?c({id:"pending",defaultMessage:"PENDING"}):"OPEN"===t?c({id:"open",defaultMessage:"OPEN"}):"FULFILLED"===t?c({id:"fulfilled",defaultMessage:"FULFILLED"}):"REJECTED"===t?c({id:"rejected",defaultMessage:"REJECTED"}):t}),(0,s.jsx)("span",{className:"block text-slate-900 dark:text-slate-100",children:m>=n?.[t]?.id?o(e[n?.[t]?.content],{dateStyle:"short",timeStyle:"short"}):null})]})]},`${t}${a}`))})})]})]})}])},1880,e=>{e.s(["U",0,(e={})=>{let{_id:s,texts:t}=e||{};return t||s?`${t?.slug?.split("/").join("")||""}_id_${s}`:null},"P",0,e=>{if(!e)return null;let[s]=e?.split("_id_")||[];return s},"Q",0,e=>{if(!e)return null;let s=e?.split("_id_");return s?.pop()}])},34728,e=>{var s=e.i(91398),t=e.i(38322);e.s(["f",0,({onOkClick:e,buttonText:a,headerText:r,message:l,icon:d=null})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{children:[d||(0,s.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-emerald-100 dark:bg-emerald-900/30",children:(0,s.jsx)(t.f,{className:"h-6 w-6 text-emerald-600 dark:text-emerald-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"})}),(0,s.jsxs)("div",{className:"mt-3 text-center sm:mt-5",children:[(0,s.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",id:"modal-title",children:r}),(0,s.jsx)("div",{className:"mt-2",children:(0,s.jsx)("p",{className:"text-sm text-slate-500 dark:text-slate-200",children:l})})]})]}),(0,s.jsx)("div",{className:"mt-5 sm:mt-6",children:(0,s.jsx)("button",{id:"alert_ok",onClick:e,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-slate-800 dark:bg-slate-600 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-slate-950 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:ring-offset-2 sm:text-sm",children:a})})]})])},51782,e=>{var s=e.i(91398),t=e.i(69322),a=e.i(65153),r=e.i(60193);let l={PENDING:"bg-yellow-100 text-yellow-800",CONFIRMED:"bg-blue-100 text-blue-800",OPEN:"bg-gray-100 text-gray-800",FULFILLED:"bg-green-100 text-green-800",REJECTED:"bg-red-100 text-red-800"};e.s(["f",0,({status:e,className:d=""})=>{let{formatMessage:i}=(0,t.S)(),n={PENDING:i({id:"pending",defaultMessage:"PENDING"}),CONFIRMED:i({id:"confirmed",defaultMessage:"CONFIRMED"}),OPEN:i({id:"open",defaultMessage:"OPEN"}),FULFILLED:i({id:"fulfilled",defaultMessage:"FULFILLED"}),REJECTED:i({id:"rejected",defaultMessage:"REJECTED"})},c=n?.[e]??i({id:"cart",defaultMessage:"Cart"});return l?.[e],(0,s.jsx)(a.f,{text:c,color:r.v[e],square:!0,className:`uppercase ${d}`})}])},71774,e=>{var s=e.i(91398),t=e.i(3828),a=e.i(66773),r=e.i(69322),l=e.i(28401),d=e.i(61494),i=e.i(12197),n=e.i(59080),c=e.i(32171),o=e.i(70693),u=e.i(36494);let m=n.f`
|
|
2
|
+
fragment OrderDetailFragment on Order {
|
|
3
|
+
_id
|
|
4
|
+
totalTax: total(category: TAXES) {
|
|
5
|
+
amount
|
|
6
|
+
currencyCode
|
|
7
|
+
}
|
|
8
|
+
itemsTotal: total(category: ITEMS) {
|
|
9
|
+
amount
|
|
10
|
+
currencyCode
|
|
11
|
+
}
|
|
12
|
+
totalDiscount: total(category: DISCOUNTS) {
|
|
13
|
+
amount
|
|
14
|
+
currencyCode
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
totalPayment: total(category: PAYMENT) {
|
|
18
|
+
amount
|
|
19
|
+
currencyCode
|
|
20
|
+
}
|
|
21
|
+
totalDelivery: total(category: DELIVERY) {
|
|
22
|
+
amount
|
|
23
|
+
currencyCode
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
user {
|
|
27
|
+
_id
|
|
28
|
+
username
|
|
29
|
+
isGuest
|
|
30
|
+
avatar {
|
|
31
|
+
_id
|
|
32
|
+
url
|
|
33
|
+
}
|
|
34
|
+
profile {
|
|
35
|
+
displayName
|
|
36
|
+
address {
|
|
37
|
+
firstName
|
|
38
|
+
lastName
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
discounts {
|
|
43
|
+
_id
|
|
44
|
+
trigger
|
|
45
|
+
code
|
|
46
|
+
interface {
|
|
47
|
+
_id
|
|
48
|
+
label
|
|
49
|
+
version
|
|
50
|
+
}
|
|
51
|
+
total {
|
|
52
|
+
amount
|
|
53
|
+
currencyCode
|
|
54
|
+
isTaxable
|
|
55
|
+
isNetPrice
|
|
56
|
+
}
|
|
57
|
+
discounted {
|
|
58
|
+
_id
|
|
59
|
+
orderDiscount {
|
|
60
|
+
_id
|
|
61
|
+
total {
|
|
62
|
+
amount
|
|
63
|
+
currencyCode
|
|
64
|
+
isTaxable
|
|
65
|
+
isNetPrice
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
total {
|
|
69
|
+
amount
|
|
70
|
+
currencyCode
|
|
71
|
+
isTaxable
|
|
72
|
+
isNetPrice
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
payment {
|
|
77
|
+
_id
|
|
78
|
+
provider {
|
|
79
|
+
_id
|
|
80
|
+
type
|
|
81
|
+
interface {
|
|
82
|
+
_id
|
|
83
|
+
label
|
|
84
|
+
version
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
status
|
|
88
|
+
fee {
|
|
89
|
+
currencyCode
|
|
90
|
+
amount
|
|
91
|
+
}
|
|
92
|
+
paid
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
orderNumber
|
|
96
|
+
status
|
|
97
|
+
created
|
|
98
|
+
updated
|
|
99
|
+
ordered
|
|
100
|
+
|
|
101
|
+
confirmed
|
|
102
|
+
fulfilled
|
|
103
|
+
contact {
|
|
104
|
+
telNumber
|
|
105
|
+
emailAddress
|
|
106
|
+
}
|
|
107
|
+
country {
|
|
108
|
+
_id
|
|
109
|
+
isoCode
|
|
110
|
+
flagEmoji
|
|
111
|
+
name
|
|
112
|
+
}
|
|
113
|
+
currency {
|
|
114
|
+
_id
|
|
115
|
+
isoCode
|
|
116
|
+
isActive
|
|
117
|
+
}
|
|
118
|
+
billingAddress {
|
|
119
|
+
...AddressFragment
|
|
120
|
+
}
|
|
121
|
+
delivery {
|
|
122
|
+
_id
|
|
123
|
+
... on OrderDeliveryPickUp {
|
|
124
|
+
activePickUpLocation {
|
|
125
|
+
_id
|
|
126
|
+
name
|
|
127
|
+
address {
|
|
128
|
+
...AddressFragment
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
... on OrderDeliveryShipping {
|
|
133
|
+
address {
|
|
134
|
+
...AddressFragment
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
provider {
|
|
138
|
+
_id
|
|
139
|
+
created
|
|
140
|
+
updated
|
|
141
|
+
deleted
|
|
142
|
+
type
|
|
143
|
+
configuration
|
|
144
|
+
interface {
|
|
145
|
+
_id
|
|
146
|
+
label
|
|
147
|
+
version
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
status
|
|
151
|
+
delivered
|
|
152
|
+
fee {
|
|
153
|
+
isTaxable
|
|
154
|
+
isNetPrice
|
|
155
|
+
amount
|
|
156
|
+
currencyCode
|
|
157
|
+
}
|
|
158
|
+
discounts {
|
|
159
|
+
_id
|
|
160
|
+
orderDiscount {
|
|
161
|
+
_id
|
|
162
|
+
trigger
|
|
163
|
+
code
|
|
164
|
+
order {
|
|
165
|
+
_id
|
|
166
|
+
orderNumber
|
|
167
|
+
}
|
|
168
|
+
interface {
|
|
169
|
+
_id
|
|
170
|
+
label
|
|
171
|
+
version
|
|
172
|
+
}
|
|
173
|
+
total {
|
|
174
|
+
isTaxable
|
|
175
|
+
isNetPrice
|
|
176
|
+
amount
|
|
177
|
+
currencyCode
|
|
178
|
+
}
|
|
179
|
+
discounted {
|
|
180
|
+
_id
|
|
181
|
+
orderDiscount {
|
|
182
|
+
_id
|
|
183
|
+
trigger
|
|
184
|
+
code
|
|
185
|
+
order {
|
|
186
|
+
_id
|
|
187
|
+
orderNumber
|
|
188
|
+
}
|
|
189
|
+
interface {
|
|
190
|
+
_id
|
|
191
|
+
label
|
|
192
|
+
version
|
|
193
|
+
}
|
|
194
|
+
total {
|
|
195
|
+
isTaxable
|
|
196
|
+
isNetPrice
|
|
197
|
+
amount
|
|
198
|
+
currencyCode
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
delivered
|
|
206
|
+
}
|
|
207
|
+
total {
|
|
208
|
+
isTaxable
|
|
209
|
+
isTaxable
|
|
210
|
+
amount
|
|
211
|
+
currencyCode
|
|
212
|
+
}
|
|
213
|
+
items {
|
|
214
|
+
_id
|
|
215
|
+
product {
|
|
216
|
+
_id
|
|
217
|
+
texts {
|
|
218
|
+
_id
|
|
219
|
+
slug
|
|
220
|
+
brand
|
|
221
|
+
vendor
|
|
222
|
+
title
|
|
223
|
+
subtitle
|
|
224
|
+
}
|
|
225
|
+
media {
|
|
226
|
+
_id
|
|
227
|
+
file {
|
|
228
|
+
_id
|
|
229
|
+
url
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
quantity
|
|
234
|
+
|
|
235
|
+
unitPrice {
|
|
236
|
+
amount
|
|
237
|
+
isTaxable
|
|
238
|
+
isNetPrice
|
|
239
|
+
currencyCode
|
|
240
|
+
}
|
|
241
|
+
total {
|
|
242
|
+
amount
|
|
243
|
+
isTaxable
|
|
244
|
+
isNetPrice
|
|
245
|
+
currencyCode
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
${u.f}
|
|
250
|
+
`;var x=e.i(41158),f=e.i(83147),h=e.i(1880),p=e.i(35065);let g=({item:e})=>{let{formatMessage:t}=(0,r.S)(),{formatPrice:a}=(0,f.d)();return(0,s.jsx)(x.default,{href:`/products?slug=${(0,h.U)(e.product)}`,children:(0,s.jsx)("div",{className:"space-y-8",children:(0,s.jsxs)("div",{className:"flex items-center flex-wrap",children:[(0,s.jsx)("div",{className:"flex shrink-0 overflow-hidden rounded-lg sm:mx-0 ",children:e.product?.media?.length?(0,s.jsx)(p.f,{src:`${e.product?.media[0].file.url}`,alt:e?.product?.texts?.title||e?.product?.texts?.subtitle,className:"object-cover object-center",width:80,height:80}):null}),(0,s.jsxs)("div",{className:"flex flex-col justify-center sm:mt-0 ml-3 sm:flex-auto",children:[(0,s.jsx)("h3",{className:"text-base text-slate-900 dark:text-slate-200 truncate",dangerouslySetInnerHTML:{__html:e?.product?.texts?.title||e?.product?.texts?.subtitle}}),(0,s.jsx)("div",{className:"mt-1 text-sm dark:text-slate-400",children:a(e?.unitPrice)}),(0,s.jsxs)("div",{className:"mt-1 text-sm dark:text-slate-400",children:[t({id:"item_quantity",defaultMessage:"Quantity:"}),(0,s.jsx)("span",{className:"ml-1",children:e?.quantity})]})]})]})})})},v=({order:e})=>{let{formatMessage:t}=(0,r.S)(),{formatPrice:a}=(0,f.d)(),l=e?.status==="OPEN"||!e?.orderNumber;return(0,s.jsx)("div",{"aria-labelledby":"summary-heading",children:(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between pb-3 text-xl",children:[(0,s.jsx)("dt",{className:"",children:t({id:"order_total",defaultMessage:"Order total"})}),(0,s.jsx)("dd",{className:"",children:a(e?.total)})]}),!l&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("dt",{className:"text-slate-600 dark:text-slate-400",children:t({id:"discount",defaultMessage:"Discount"})}),(0,s.jsx)("dd",{className:"",children:a(e?.totalDiscount)})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("dt",{className:"text-slate-600 dark:text-slate-400",children:t({id:"shipping",defaultMessage:"Shipping"})}),(0,s.jsx)("dd",{className:"",children:a(e?.totalDelivery)})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("dt",{className:"text-slate-600 dark:text-slate-400",children:t({id:"tax",defaultMessage:"Tax"})}),(0,s.jsx)("dd",{className:"",children:a(e?.totalTax)})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("dt",{className:"text-slate-600 dark:text-slate-400",children:t({id:"order_payment_fees",defaultMessage:"Fees"})}),(0,s.jsx)("dd",{className:"",children:a(e?.totalPayment)})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("dt",{className:"text-slate-600 dark:text-slate-400",children:t({id:"subtotal",defaultMessage:"Subtotal"})}),(0,s.jsx)("dd",{className:"",children:a(e?.itemsTotal)})]})]})]})})};var j=e.i(37369),b=e.i(34728),y=e.i(6607),N=e.i(76204);let k=n.f`
|
|
251
|
+
mutation PayOrder($orderId: ID!) {
|
|
252
|
+
payOrder(orderId: $orderId) {
|
|
253
|
+
_id
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
`;var _=e.i(51967);let w=n.f`
|
|
257
|
+
query OrderPaymentStatus {
|
|
258
|
+
paymentStatusTypes: __type(name: "OrderPaymentStatus") {
|
|
259
|
+
options: enumValues {
|
|
260
|
+
value: name
|
|
261
|
+
label: description
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
`;var E=e.i(84818);let M=({enumType:e,currentType:t,label:a,component:l=null})=>{let{formatMessage:d}=(0,r.S)();return l||(0,s.jsx)("span",{title:a,className:`${t===e?"border-slate-300 bg-slate-200 text-slate-950 dark:bg-slate-800 dark:text-slate-200":"opacity-10 dark:bg-slate-900 "} mr-2 mb-2 inline-flex items-center rounded-md border border-slate-300 bg-white px-2 py-1 text-sm uppercase dark:border-slate-700 dark:bg-slate-800 dark:text-slate-200 transition-colors duration-200 ease-in-out hover:bg-slate-100 dark:hover:bg-slate-700 focus:outline-hidden focus:ring-2 focus:ring-slate-800 focus:ring-offset-2 focus:ring-offset-white dark:focus:ring-offset-slate-800`,children:(e=>{switch(e){case"INVOICE":return d({id:"invoice",defaultMessage:"INVOICE"});case"SHIPPING":return d({id:"shipping_method",defaultMessage:"SHIPPING"});case"OPEN":return d({id:"open",defaultMessage:"OPEN"});case"DELIVERED":return d({id:"delivered",defaultMessage:"Delivered"}).toUpperCase();case"PAID":return d({id:"paid",defaultMessage:"Paid"}).toUpperCase();default:return e}})(e)})};var C=e.i(58971);let O=({order:e})=>{let{paymentProviderType:t}=(0,_.f)(),{paymentStatusTypes:d}=(()=>{let{data:e,loading:s,error:t}=(0,c.f)(w);return{paymentStatusTypes:e?.paymentStatusTypes?.options||[],loading:s,error:t}})(),{formatDateTime:i}=(0,E.f)(),{formatPrice:n}=(0,f.d)(),{formatMessage:o}=(0,r.S)(),{setModal:u}=(0,y.f)(),{payOrder:m}=(()=>{let[e]=(0,N.f)(k);return{payOrder:async({orderId:s})=>e({variables:{orderId:s},refetchQueries:["Order"]})}})(),{hasRole:h}=(0,C.f)(),p=async()=>{await u((0,s.jsx)(b.f,{buttonText:o({id:"pay",defaultMessage:"Mark paid"}),message:o({id:"mark_as_paid_question",defaultMessage:"This will change the order payment status to Paid."}),headerText:o({id:"mark_as_paid_question_header",defaultMessage:"Mark as paid?"}),onOkClick:async()=>{u(""),await m({orderId:e._id}),l.c.success(o({id:"order_paid",defaultMessage:"Order paid successfully"}))}}))};return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,s.jsx)("h2",{className:"pt-4 text-2xl text-slate-900 dark:text-slate-200",children:o({id:"payment",defaultMessage:"Payment"})}),e?.payment?.fee?.currencyCode&&(0,s.jsx)("span",{className:"block",children:n(e.payment.fee)}),e?.payment?.paid&&(0,s.jsx)("span",{className:"font-mono",children:i(e.payment.paid,{timeStyle:"short",dateStyle:"medium"})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"mb-5 block text-xs font-mono",children:e?.payment?.provider&&(0,s.jsx)(x.default,{href:`/payment-provider?paymentProviderId=${e.payment.provider._id}`,className:"text-slate-500 dark:text-slate-300 hover:text-slate-800 dark:hover:text-slate-600",children:(0,f.D)(e.payment?.provider?.interface)})}),(0,s.jsx)("div",{className:"mt-3 text-sm text-slate-500 dark:text-slate-200",children:o({id:"method",defaultMessage:"Method"})}),(0,s.jsx)("span",{className:"mr-2 block rounded-full py-1 text-xs font-semibold leading-5",children:[...t].sort((s,t)=>s.value===e.payment?.provider?.type?-1:+(t.value===e.payment?.provider?.type)).map(t=>(0,s.jsx)(M,{enumType:t.value,currentType:e.payment?.provider?.type,label:t.label},t.value))}),(0,s.jsx)("div",{className:"mt-3 text-sm text-slate-500 dark:text-slate-200",children:o({id:"delivery_status",defaultMessage:"Status"})}),(0,s.jsx)("span",{className:"mr-2 block rounded-full py-1 text-xs font-semibold leading-5",children:[...d].sort((s,t)=>s.value===e.payment?.status?-1:+(t.value===e.payment?.status)).map(t=>(0,s.jsx)(M,{enumType:t.value,currentType:e.payment?.status,label:t.label,component:"OPEN"===e.payment.status&&"PAID"===t.value&&h(a.C.MarkOrderPaid)&&(0,s.jsxs)("button",{id:"pay",type:"button",onClick:p,className:"cursor-pointer my-2 mr-2 inline-flex h-full items-center justify-center rounded-sm border border-transparent bg-slate-800 dark:bg-slate-600 py-1 px-2 text-xs font-semibold text-white shadow-xs hover:bg-slate-950 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-slate-700 dark:focus:ring-slate-400 focus:ring-offset-2",children:[(0,s.jsx)("span",{className:"mr-1",children:(0,s.jsx)(j.f,{className:"inline-block h-3 w-3 text-white"})}),o({id:"mark_as_paid",defaultMessage:"Mark as Paid"})]})},t.value))})]})]})};var I=e.i(93333);let D=n.f`
|
|
266
|
+
query OrderDeliveryStatus {
|
|
267
|
+
deliveryStatusType: __type(name: "OrderDeliveryStatus") {
|
|
268
|
+
options: enumValues {
|
|
269
|
+
value: name
|
|
270
|
+
label: description
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
`,T=n.f`
|
|
275
|
+
mutation DeliverOrder($orderId: ID!) {
|
|
276
|
+
deliverOrder(orderId: $orderId) {
|
|
277
|
+
_id
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
`,P=({order:e})=>{let{deliveryProviderType:t}=(0,I.f)(),{setModal:d}=(0,y.f)(),{deliveryStatusType:i}=(()=>{let{data:e,loading:s,error:t}=(0,c.f)(D);return{deliveryStatusType:e?.deliveryStatusType?.options||[],loading:s,error:t}})(),{deliverOrder:n}=(()=>{let[e]=(0,N.f)(T);return{deliverOrder:async({orderId:s})=>e({variables:{orderId:s},refetchQueries:["Order"]})}})(),{formatPrice:o}=(0,f.d)(),{formatMessage:u}=(0,r.S)(),{formatDateTime:m}=(0,E.f)(),{hasRole:h}=(0,C.f)(),p=async()=>{await d((0,s.jsx)(b.f,{buttonText:u({id:"delivered",defaultMessage:"Delivered"}),message:u({id:"mark_as_delivered_message",defaultMessage:"This will change the order delivery status to delivered"}),headerText:u({id:"mark_as_delivered_question",defaultMessage:"Mark as delivered ?"}),onOkClick:async()=>{d(""),await n({orderId:e._id}),l.c.success(u({id:"order__marked_delivered",defaultMessage:"Order marked as delivered successfully"}))}}))};return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,s.jsx)("h2",{className:"pt-4 text-2xl",children:u({id:"delivery",defaultMessage:"Delivery"})}),e?.delivery?.fee?.currencyCode&&(0,s.jsx)("span",{className:"block",children:o(e.delivery.fee)}),e?.delivery?.delivered&&(0,s.jsx)("span",{className:"font-mono",children:m(e.delivery.delivered,{timeStyle:"short",dateStyle:"medium"})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"mb-5 block font-mono text-xs",children:e?.delivery&&(0,s.jsx)(x.default,{href:`/delivery-provider?deliveryProviderId=${e?.delivery?.provider?._id}`,className:"text-slate-500 dark:text-slate-300 hover:text-slate-800 dark:hover:text-slate-600",children:(0,f.D)(e?.delivery?.provider?.interface)})}),(0,s.jsx)("div",{className:"mt-3 text-sm text-slate-500 dark:text-slate-200",children:u({id:"method",defaultMessage:"Method"})}),(0,s.jsx)("span",{className:"mr-2 block rounded-full py-1 text-xs font-semibold leading-5",children:[...t].sort((s,t)=>s.value===e?.delivery?.provider?.type?-1:+(t.value===e?.delivery?.provider?.type)).map(t=>(0,s.jsx)(M,{enumType:t.value,currentType:e?.delivery?.provider?.type,label:t.label},t.value))}),(0,s.jsx)("div",{className:"mt-3 text-sm text-slate-500 dark:text-slate-200",children:u({id:"status",defaultMessage:"Status"})}),(0,s.jsx)("span",{className:"mr-2 block rounded-full py-1 text-xs font-semibold leading-5",children:[...i].sort((s,t)=>s.value===e?.delivery?.status?-1:+(t.value===e?.delivery?.status)).map(t=>(0,s.jsx)(M,{enumType:t.value,currentType:e?.delivery?.status,label:t.label,component:e?.delivery?.status==="OPEN"&&"DELIVERED"===t.value&&h(a.C.MarkOrderDelivered)&&(0,s.jsxs)("button",{id:"deliver",type:"button",onClick:p,className:"my-2 mr-2 inline-flex h-full items-center justify-center rounded-sm border border-slate-300 border-transparent bg-slate-800 dark:bg-slate-600 py-1 px-2 text-xs font-semibold text-white shadow-xs hover:bg-slate-950 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-slate-700 dark:focus:ring-slate-400 focus:ring-offset-2",children:[(0,s.jsx)("span",{className:"mr-1",children:(0,s.jsx)(j.f,{className:"inline-block h-3 w-3 text-white"})}),u({id:"mark_as_delivered",defaultMessage:"Mark as delivered"})]})},t.value))})]})]})};var S=e.i(64710),L=e.i(91788);let A=L.forwardRef(function({title:e,titleId:s,...t},a){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},t),e?L.createElement("title",{id:s},e):null,L.createElement("path",{d:"M6.5 3c-1.051 0-2.093.04-3.125.117A1.49 1.49 0 0 0 2 4.607V10.5h9V4.606c0-.771-.59-1.43-1.375-1.489A41.568 41.568 0 0 0 6.5 3ZM2 12v2.5A1.5 1.5 0 0 0 3.5 16h.041a3 3 0 0 1 5.918 0h.791a.75.75 0 0 0 .75-.75V12H2Z"}),L.createElement("path",{d:"M6.5 18a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM13.25 5a.75.75 0 0 0-.75.75v8.514a3.001 3.001 0 0 1 4.893 1.44c.37-.275.61-.719.595-1.227a24.905 24.905 0 0 0-1.784-8.549A1.486 1.486 0 0 0 14.823 5H13.25ZM14.5 18a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}))}),R=L.forwardRef(function({title:e,titleId:s,...t},a){return L.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},t),e?L.createElement("title",{id:s},e):null,L.createElement("path",{d:"M2.879 7.121A3 3 0 0 0 7.5 6.66a2.997 2.997 0 0 0 2.5 1.34 2.997 2.997 0 0 0 2.5-1.34 3 3 0 1 0 4.622-3.78l-.293-.293A2 2 0 0 0 15.415 2H4.585a2 2 0 0 0-1.414.586l-.292.292a3 3 0 0 0 0 4.243ZM3 9.032a4.507 4.507 0 0 0 4.5-.29A4.48 4.48 0 0 0 10 9.5a4.48 4.48 0 0 0 2.5-.758 4.507 4.507 0 0 0 4.5.29V16.5h.25a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75v-3.5a.75.75 0 0 0-.75-.75h-2.5a.75.75 0 0 0-.75.75v3.5a.75.75 0 0 1-.75.75h-4.5a.75.75 0 0 1 0-1.5H3V9.032Z"}))}),$=({order:e})=>{let{formatMessage:t}=(0,r.S)(),a=e?.delivery,l=a?.provider?.type==="PICKUP",d=a?.address||a?.activePickUpLocation?.address||{},i=a?.activePickUpLocation?.name;return(0,s.jsxs)("section",{"aria-labelledby":"addresses-heading",className:"lg:grid lg:grid-cols-2 flex flex-col gap-8",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mb-2 text-xl dark:text-slate-400 flex items-center gap-2",children:[(0,s.jsx)(S.f,{className:"h-5 w-5"}),t({id:"billing_address",defaultMessage:"Billing address"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"block",children:e?.billingAddress?.firstName&&e?.billingAddress?.lastName?`${e.billingAddress.firstName} ${e.billingAddress.lastName}`:e?.billingAddress?.firstName||e?.billingAddress?.lastName||""}),(0,s.jsx)("span",{className:"block",children:e?.billingAddress?.addressLine}),e?.billingAddress?.addressLine2&&(0,s.jsx)("span",{className:"block",children:e.billingAddress.addressLine2}),(0,s.jsx)("span",{children:e?.billingAddress?.postalCode})," ",(0,s.jsx)("span",{children:e?.billingAddress?.city}),(0,s.jsx)("span",{className:"block",children:e?.country?.name&&(0,s.jsxs)(s.Fragment,{children:[e.country.name," ",(0,s.jsx)("span",{className:"inline-block grayscale hover:grayscale-0 transition-all text-xl",children:e.country.flagEmoji})]})})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mb-2 text-xl dark:text-slate-400 flex items-center gap-2",children:[(0,s.jsx)(A,{className:"h-5 w-5"}),t({id:"delivery_details",defaultMessage:"Delivery details"})]}),(0,s.jsxs)("div",{children:[l?(0,s.jsxs)("div",{className:"mb-1 flex items-center gap-1",children:[(0,s.jsx)(R,{className:"h-5 w-5 text-gray-500"}),(0,s.jsx)("span",{className:"font-semibold",children:i||t({id:"pickup_location",defaultMessage:"Pickup Location"})})]}):null,(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"block",children:d?.firstName&&d?.lastName?`${d.firstName} ${d.lastName}`:d?.firstName||d?.lastName||""}),d?.company&&(0,s.jsx)("span",{className:"block",children:d.company}),(0,s.jsx)("span",{className:"block",children:d?.addressLine}),d?.addressLine2&&(0,s.jsx)("span",{className:"block",children:d.addressLine2}),(0,s.jsx)("span",{children:d?.postalCode})," ",(0,s.jsx)("span",{children:d?.city}),(0,s.jsxs)("span",{className:"block text-gray-500 text-sm",children:[d?.regionCode," — ",d?.countryCode]})]})]})]})]})};var F=e.i(8918),U=e.i(65153),V=e.i(26178);let q={SYSTEM:"teal",USER:"indigo"},G=({discounts:e})=>{let{formatMessage:t}=(0,r.S)(),{formatPrice:a}=(0,f.d)();return(0,s.jsxs)("div",{className:"flex flex-auto flex-col",children:[(0,s.jsx)("h2",{className:"text-2xl",children:t({id:"discount_information",defaultMessage:"Discounts"})}),(0,s.jsx)("div",{className:"mt-2",children:e?.length?(0,s.jsxs)(F.f,{className:"min-w-full ",children:[(e||[])?.map(e=>(0,s.jsxs)(F.f.Row,{header:!0,children:[(0,s.jsx)(F.f.Cell,{children:t({id:"code",defaultMessage:"Code"})}),(0,s.jsx)(F.f.Cell,{children:t({id:"discount_amount",defaultMessage:"Discount Amount"})})]},e._id)),(e||[])?.map(e=>(0,s.jsx)(L.Fragment,{children:(0,s.jsxs)(F.f.Row,{children:[(0,s.jsx)(F.f.Cell,{children:(0,s.jsxs)("div",{className:"flex items-center text-sm text-slate-900",children:[e.code?e.code:"n/a",(0,s.jsx)("span",{className:"mr-2 inline-block rounded-full py-1 text-xs font-semibold leading-5",children:(0,s.jsx)(U.f,{text:e.trigger,color:q[e.trigger],square:!0})})]})}),(0,s.jsx)(F.f.Cell,{children:(0,s.jsx)("div",{className:"flex items-center text-sm text-slate-900",children:a(e.total)})})]})},e._id))]}):(0,s.jsx)(V.f,{message:t({id:"discounts",defaultMessage:"Discounts"})})})]})},B=n.f`
|
|
281
|
+
query OrderStatus {
|
|
282
|
+
orderStatusType: __type(name: "OrderStatus") {
|
|
283
|
+
options: enumValues {
|
|
284
|
+
value: name
|
|
285
|
+
label: description
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
`,Z=n.f`
|
|
290
|
+
mutation ConfirmOrder($orderId: ID!) {
|
|
291
|
+
confirmOrder(orderId: $orderId) {
|
|
292
|
+
_id
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
`;var J=e.i(66885),H=e.i(23647);let Q=({order:e})=>{let{formatMessage:t,locale:a}=(0,r.S)(),{formatDateTime:l}=(0,E.f)();if(!e)return null;let d=e?.status==="OPEN"||!e?.orderNumber;return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex justify-between items-baseline flex-wrap mb-10",children:[(0,s.jsx)("div",{className:"flex items-center justify-between gap-5 flex-wrap",children:(0,s.jsx)("h2",{className:"text-2xl font-medium text-slate-900 dark:text-slate-200 sm:truncate sm:text-3xl lg:text-4xl xl:text-5xl",children:d?(0,s.jsxs)(s.Fragment,{children:[t({id:"cart",defaultMessage:"Cart"}),` ${e._id}`]}):(0,s.jsxs)(s.Fragment,{children:[t({id:"order_number",defaultMessage:"Order #"}),e?.orderNumber?`${e.orderNumber}`:""]})})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"mr-1 text-slate-400 dark:text-slate-500",children:t(d?{id:"cart_created",defaultMessage:"Warenkorb erstellt"}:{id:"order_placed",defaultMessage:"Order placed"})}),d?l(e.created):e?.ordered?l(e.ordered):null]})]}),!d&&(0,s.jsx)(H.f,{user:e?.user,contact:e?.contact}),d&&e?.user&&(0,s.jsx)("div",{className:"mt-5",children:(0,s.jsx)("span",{className:"text-lg text-slate-600 dark:text-slate-400",children:e.user.profile?.displayName||(e.user.profile?.address?.firstName&&e.user.profile?.address?.lastName?`${e.user.profile.address.firstName} ${e.user.profile.address.lastName}`:e.user.username)||"Guest"})})]})},W=n.f`
|
|
296
|
+
mutation RejectOrder($orderId: ID!) {
|
|
297
|
+
rejectOrder(orderId: $orderId) {
|
|
298
|
+
_id
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
`;var K=e.i(15971);let Y=({order:e})=>{let{formatMessage:t}=(0,r.S)(),{setModal:d}=(0,y.f)(),{confirmOrder:i}=(()=>{let[e]=(0,N.f)(Z);return{confirmOrder:async({orderId:s})=>e({variables:{orderId:s},refetchQueries:["Order"]})}})(),{rejectOrder:n}=(()=>{let[e]=(0,N.f)(W);return{rejectOrder:async({orderId:s})=>e({variables:{orderId:s},refetchQueries:["Order"]})}})(),{hasRole:o}=(0,C.f)(),{orderStatusType:u}=(()=>{let{data:e,loading:s,error:t}=(0,c.f)(B);return{orderStatusType:e?.orderStatusType?.options||[],loading:s,error:t}})();if(!e)return null;let m=e?.status==="OPEN"||!e?.orderNumber,x=async()=>{await d((0,s.jsx)(b.f,{buttonText:t({id:"confirm_order_alert_button",defaultMessage:"Confirm"}),headerText:t({id:"confirm_order_alert_header",defaultMessage:"Confirm order?"}),message:t({id:"confirm_order_alert_message",defaultMessage:"This will mark order as confirmed"}),onOkClick:async()=>{d(""),await i({orderId:e._id}),l.c.success(t({id:"order_confirmed_success",defaultMessage:"Order confirmed successfully"}))}}))},f=async()=>{await d((0,s.jsx)(K.f,{onCancelClick:async()=>d(""),okText:t({id:"reject_order_alert_button",defaultMessage:"Reject"}),headerText:t({id:"reject_order_alert_header",defaultMessage:"Reject order?"}),onOkClick:async()=>{d(""),await n({orderId:e._id}),l.c.success(t({id:"order_reject_success",defaultMessage:"Order rejected successfully"}))}}))},h={OPEN:{id:1,content:"created",visible:!0},PENDING:{id:2,content:"ordered",Component:e?.status==="PENDING"&&(0,s.jsxs)(s.Fragment,{children:[o(a.C.MarkOrderConfirmed)&&(0,s.jsx)("button",{id:"confirm_order",onClick:x,type:"button",className:"bg-white-300 relative -ml-px inline-flex items-center space-x-2 rounded-md border border-slate-900 dark:border-slate-600 bg-slate-800 dark:bg-slate-600 px-2 py-1 text-sm font-medium text-white hover:bg-slate-950 dark:hover:bg-slate-500 dark:focus:border-slate-400 focus:outline-hidden focus:ring-0 focus:ring-slate-800 dark:focus:ring-slate-400",children:t({id:"confirm_order",defaultMessage:"Confirm order"})}),o(a.C.MarkOrderRejected)&&(0,s.jsx)("button",{id:"reject_order",onClick:f,type:"button",className:"bg-white-300 relative -ml-px inline-flex items-center space-x-2 rounded-md border border-rose-500 bg-rose-500 px-2 py-1 text-sm font-medium text-white hover:bg-rose-700 focus:border-rose-400 focus:outline-hidden focus:ring-0 focus:ring-rose-400",children:t({id:"reject_order",defaultMessage:"Reject order"})})]}),visible:!0},REJECTED:{id:3,content:"rejected",visible:e?.status==="REJECTED"},CONFIRMED:{id:4,content:"confirmed",visible:e?.status!=="REJECTED"},FULFILLED:{id:5,content:"fulfilled",visible:e?.status!=="REJECTED"}};return(0,s.jsxs)("div",{className:"space-y-4 lg:gap-10 dark:text-slate-200",children:[(0,s.jsx)("div",{children:(0,s.jsx)(Q,{order:e})}),!m&&(0,s.jsx)("div",{className:"mt-10",children:(0,s.jsx)($,{order:e})}),(0,s.jsxs)("div",{className:"mt-20 lg:grid lg:grid-cols-2 lg:gap-10",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"mb-6 text-xl dark:text-slate-400",children:t({id:"items_purchased",defaultMessage:"Items purchased"})}),(0,s.jsx)("div",{className:"flex gap-5 flex-col",children:e?.items.map(e=>(0,s.jsx)(g,{item:e},e._id))})]}),(0,s.jsx)("div",{children:(0,s.jsx)(v,{order:e})})]}),(0,s.jsx)("div",{className:"mt-20",children:(0,s.jsx)(J.f,{data:e,statusTypes:u,timeline:h})}),!m&&(0,s.jsxs)("div",{className:"mt-10 lg:mt-30 lg:grid lg:grid-cols-2 xl:grid-cols-3 lg:gap-10",children:[(0,s.jsx)(P,{order:e}),(0,s.jsx)(O,{order:e}),(0,s.jsx)(G,{discounts:e?.discounts})]})]})},z=n.f`
|
|
302
|
+
mutation RemoveOrder($orderId: ID!) {
|
|
303
|
+
removeOrder(orderId: $orderId) {
|
|
304
|
+
_id
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
`;var X=e.i(81359);e.s(["default",0,({orderId:e})=>{let{formatMessage:u}=(0,r.S)(),{setModal:x}=(0,y.f)(),{removeOrder:f}=(()=>{let[e]=(0,N.f)(z);return{removeOrder:async({orderId:s})=>e({variables:{orderId:s},refetchQueries:["Order"]})}})(),h=(0,t.useRouter)(),{hasRole:p}=(0,C.f)(),{order:g,loading:v}=(({orderId:e=null})=>{let{customProperties:s}=(0,o.f)(),{data:t,loading:a,error:r}=(0,c.f)(((e="")=>n.f`
|
|
308
|
+
query Order($orderId: ID!) {
|
|
309
|
+
order(orderId: $orderId) {
|
|
310
|
+
...OrderDetailFragment
|
|
311
|
+
${e}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
${m}
|
|
315
|
+
`)(s?.Order),{skip:!e,variables:{orderId:e}});return{order:t?.order,loading:a,error:r}})({orderId:e}),j=async()=>{await x((0,s.jsx)(K.f,{message:u({id:"delete_order_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this order? "}),onCancelClick:async()=>x(""),onOkClick:async()=>{x(""),await f({orderId:e}),l.c.success(u({id:"order_deleted",defaultMessage:"Order deleted successfully"})),h.push("/orders")},okText:u({id:"delete_order",defaultMessage:"Delete order"})}))};return(0,s.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,s.jsx)(d.f,{currentPageTitle:g?.orderNumber?`#${g?.orderNumber}`:""}),(0,s.jsx)("div",{className:"items-center flex min-w-full justify-end gap-3 flex-wrap",children:g&&"OPEN"===g.status&&p(a.C.UpdateOrder)?(0,s.jsx)(X.f,{onClick:j}):null}),v?(0,s.jsx)(i.f,{}):(0,s.jsx)(Y,{order:g})]})}],71774)},15361,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",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},a),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});e.s(["f",0,t],15361)},38322,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",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},a),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))});e.s(["f",0,t],38322)},67912,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",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},a),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))});e.s(["f",0,t],67912)}])})();
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[61494,e=>{var t=e.i(91398),r=e.i(41158),s=e.i(3828),a=e.i(69322);e.s(["f",0,({routeName:e=null,currentPageTitle:l=null,depth:o=null})=>{let n=(0,s.useRouter)(),{formatMessage:i}=(0,a.S)(),d={home:"home",products:"products",orders:"orders",users:"users",assortments:"assortments",filters:"filters",tokens:"tokens",quotations:"quotations",enrollments:"enrollments",activities:"activities",works:"work_queue",events:"events",currency:"currencies",country:"countries",language:"languages","delivery-provider":"delivery_providers","payment-provider":"payment_providers","warehousing-provider":"warehousing_provider",system:"system",account:"account",new:"new",edit:"edit"},u=n.asPath?.split("/")?.filter((e,t)=>n.asPath?.split("/")?.indexOf(e)===t);if(1===u.length)return null;let c="";o&&u.splice(o),e&&(u[u.length-1]=e);let f=u?.map(t=>{if(c+=`${t}/`,!t)return{name:i({id:"home",defaultMessage:"Home"}),path:"/"};let r=t?.split("?")[0],s=e?r:r.replace(/-/g," "),a=d[r];return{name:a?i({id:a,defaultMessage:s}):decodeURIComponent(s),path:c.replace(/.$/,"")}});return(0,t.jsx)("nav",{className:"mb-5 hidden sm:flex lg:mt-5 lg:mb-8","aria-label":"Breadcrumb",children:(0,t.jsx)("ol",{className:"flex items-center space-x-4",children:f?.map((e,s)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-center",children:[0!==s&&(0,t.jsx)("svg",{className:"mr-4 h-5 w-5 shrink-0 text-slate-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,t.jsx)(r.default,{href:e.path,className:"text-sm font-medium capitalize text-slate-500 dark:text-slate-400 dark:hover:text-slate-300 hover:text-slate-700 focus:outline-hidden focus:ring-2 focus:ring-slate-800 rounded-md px-1 py-1",children:s===f.length-1&&l?l:e.name})]})},e.path))})})}])},81013,e=>{var t=e.i(91398),r=e.i(72043);e.s(["f",0,({text:e,children:s,onClick:a,className:l="",disabled:o=!1,id:n="",variant:i="primary",size:d="md",type:u="button",loading:c=!1,icon:f,iconRight:m,fullWidth:p=!1,rounded:b="md",ariaLabel:x,...g})=>{let h=s||e,y=(f||m)&&h?"gap-2":"";return(0,t.jsx)("button",{id:n,type:u,disabled:o||c,onClick:a,"aria-label":x,className:(0,r.default)("inline-flex items-center justify-center font-medium shadow-xs focus:outline-hidden focus:ring-2 focus:ring-offset-2 transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-50",{xs:"px-2.5 py-1.5 text-xs h-6",sm:"px-3 py-2 text-sm h-8",md:"px-4 py-2 text-sm h-9",lg:"px-6 py-3 text-base h-11"}[d],{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}[b],{primary:"border border-slate-800 dark:border-slate-600 bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:ring-slate-800 dark:focus:ring-slate-400",secondary:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-700 dark:text-slate-200 hover:bg-slate-50 dark:hover:bg-slate-700 focus:ring-slate-500",tertiary:"border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700 focus:ring-slate-400",quaternary:"bg-transparent text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",danger:"border border-rose-500 dark:border-rose-400 bg-white dark:bg-slate-800 text-rose-600 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/10 focus:ring-rose-500",ghost:"bg-transparent border border-transparent text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",success:"border border-emerald-500 dark:border-emerald-400 bg-emerald-50 dark:bg-emerald-900/20 text-emerald-600 dark:text-emerald-400 hover:bg-emerald-100 dark:hover:bg-emerald-900/30 focus:ring-emerald-500",neutral:"border border-slate-300 dark:border-slate-600 bg-slate-100 dark:bg-slate-700 text-slate-600 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:ring-slate-400",input:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-900 dark:text-slate-100 hover:border-slate-400 dark:hover:border-slate-500 focus:ring-slate-500 focus:border-slate-500"}[i],y,{"w-full":p},l),...g,children:c?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),h]}):(0,t.jsxs)(t.Fragment,{children:[f,h,m]})})}])},11056,e=>{var t=e.i(91398),r=e.i(91788),s=e.i(5505),a=e.i(57561);e.s(["f",0,({children:e,onlyFull:l=!1})=>{let{languageDialectList:o,selectedLocale:n,setSelectedLocale:i}=(0,a.f)(),d=(0,r.useContext)(s.W),u=o.filter(e=>!l||e.isoCode.includes("-"));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`w-fit mt-5 mb-3 ${d?"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:n||"",onChange:e=>{e.stopPropagation(),i(e.target.value)},children:u?.map(e=>(0,t.jsx)("option",{value:e.isoCode,children:e.isoCode},e._id))})}),(0,t.jsx)("div",{children:r.default.cloneElement(e)})]})}])},17644,e=>{var t=e.i(91398),r=e.i(58678),s=e.i(41158),a=e.i(69322),l=e.i(37369),o=e.i(81013);e.s(["f",0,({headerText:e=null,onEdit:n=null,onDelete:i=null,children:d=null,title:u=null,addPath:c=null,addButtonText:f=null})=>{let{formatMessage:m}=(0,a.S)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{children:(0,t.jsxs)("title",{children:["Unchained AdminUI - ",u||e," "]})}),(0,t.jsx)("div",{className:"flex gap-3 flex-wrap items-center justify-between",children:(0,t.jsxs)("div",{className:"flex items-center flex-wrap justify-between w-full gap-4",children:[e&&(0,t.jsx)("h2",{className:"text-2xl font-medium text-slate-900 dark:text-slate-300 sm:truncate sm:text-3xl lg:text-4xl",children:e}),(0,t.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[d,c&&(0,t.jsx)(s.default,{href:c,children:(0,t.jsx)(o.f,{variant:"secondary",icon:(0,t.jsx)(l.f,{className:"h-5 w-5"}),text:f||m({id:"add",defaultMessage:"Add"})})}),n&&(0,t.jsx)(o.f,{variant:"secondary",onClick:n,text:m({id:"edit",defaultMessage:"Edit"})}),i&&(0,t.jsx)(o.f,{variant:"danger",onClick:i,text:m({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},64591,e=>{var t=e.i(91398),r=e.i(72043),s=e.i(3828),a=e.i(83147);e.s(["f",0,({toggleText:e="",toggleKey:l=null,onToggle:o=null,active:n=!1,className:i="",disabled:d=!1,...u})=>{let c=(0,s.useRouter)(),f=c?.query?.[l]==="true"||n;return(0,t.jsxs)("div",{className:(0,r.default)("",i),children:[(0,t.jsxs)("button",{id:l,disabled:d,type:"button",className:(0,r.default)("relative inline-flex h-3.5 w-9 shrink-0 cursor-pointer rounded-full border-1 border-transparent transition-all duration-200 ease-in-out focus:outline-hidden focus:ring-2 focus:ring-slate-400 focus:ring-offset-2",{"bg-slate-200 dark:bg-slate-700":!f,"bg-emerald-500 dark:bg-emerald-600 shadow-sm":f}),role:"switch",onClick:o||(()=>{let{skip:e,...t}=c.query;c.push({query:(0,a._)(t,!f,l)})}),"aria-checked":f?"true":"false",...u,children:[(0,t.jsx)("span",{className:"sr-only",children:e}),(0,t.jsxs)("span",{className:(0,r.default)("ml-0.5 pointer-events-none relative inline-block h-3 w-3 transform rounded-full bg-white shadow-sm ring-0 transition-all duration-200 ease-in-out",{"translate-x-5 shadow-md":f,"translate-x-0":!f}),children:[(0,t.jsx)("span",{className:(0,r.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-0 duration-100 ease-out":f,"opacity-100 duration-200 ease-in":!f}),"aria-hidden":"true",children:(0,t.jsx)("svg",{className:"h-3 w-3 text-slate-400",fill:"none",viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)("span",{className:(0,r.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-100 duration-200 ease-in":f,"opacity-0 duration-100 ease-out":!f}),"aria-hidden":"true",children:(0,t.jsx)("svg",{className:"h-3 w-3 text-emerald-500",fill:"currentColor",viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"})})})]})]}),(0,t.jsx)("span",{className:"ml-3",id:"annual-billing-label",children:(0,t.jsx)("span",{className:"text-sm font-medium text-slate-900 dark:text-slate-200",children:e})})]})}])},73319,e=>{let t=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["Q",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"C",0,t,"T",0,e=>!(!e||null==e||t(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},83147,e=>{let t=e=>e&&e?.split(",").reduce((e,t)=>{let[r=null,s=null]=(t||"")?.split("_")||[];return{...e,[r]:s}},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 s;return s=r?{...e,[r]:t}:e,Object.keys(s)?.map(e=>[e,s[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)}})])},72094,e=>{var t=e.i(91398),r=e.i(91788),s=e.i(61898);let a=(e,t="")=>Object.fromEntries(Object.entries(e).reduce((e=[],[s,l])=>"string"==typeof l||r.default.isValidElement(l)?[...e,[`${t}${s}`,l]]:[...Object.entries(a(Object.assign({},...l),`${t}${s}.`)),...e],[])),l=({submitError:e="",fieldErrors:s=[]})=>(0,t.jsx)("div",{className:"my-2 mb-5 text-rose-700",children:(0,t.jsxs)("ul",{className:"space-y-1",children:[e&&(0,t.jsx)("li",{className:"disabled",children:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})},"submitError"),Object.entries(a(s)).map(([e,s])=>(0,t.jsx)("li",{className:"disabled",children:(0,t.jsx)("button",{type:"button",className:"no-button text-rose-600 dark:text-rose-400","aria-label":"Error button",onClick:()=>{let t=document.getElementById(e);t&&t.focus()},children:r.default.isValidElement(s)?s:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:s}})})},e))]})});e.s(["f",0,({displayFieldErrors:e=!1})=>{let{submitError:r,formik:a}=(0,s.f)(),o=a?.errors;return(r||e)&&(0,t.jsx)(l,{submitError:r,fieldErrors:e&&o})}])},99160,e=>{var t=e.i(91398),r=e.i(72043),s=e.i(38865),a=e.i(61898);e.s(["f",0,({label:e,disabled:l=!1,className:o="",hidden:n=!1,...i})=>{let d=(0,s.m)(),{...u}=i,c=Object.fromEntries(Object.keys(d.initialValues).map(e=>[e,d.getFieldMeta(e)])),{disabled:f}=(0,a.f)(),m=Object.values(c).reduce((e,{error:t,touched:r})=>e||t&&r,!1),p=l||f||d.isSubmitting||m,b=d.isSubmitting&&!m,x=(l||f||m)&&!d.isSubmitting;return(0,t.jsx)("input",{className:(0,r.default)("inline-flex cursor-pointer justify-center rounded-sm border border-slate-300 px-4 py-2 text-center text-sm font-medium leading-5 shadow-sm hover:shadow-md focus:ring-slate-800 dark:focus:ring-slate-400",o,{"bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900":x,"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600":b,"bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent":!p,hidden:n}),"aria-label":e,type:"submit",value:e,disabled:p,...u})}])},45229,e=>{var t=e.i(91398),r=e.i(72043),s=e.i(82226),a=e.i(60741),l=e.i(29691);e.s(["f",0,({maxLength:e=0,validators:o=[],...n})=>{let i=(0,a.f)({validators:[...o,e&&(0,s.f)(e)],...n});return(0,t.jsx)(l.f,{...i,children:(0,t.jsx)("input",{className:(0,r.default)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-600 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 focus:outline-hidden focus:ring-2 focus:ring-slate-800 shadow-xs",{"border-rose-700 placeholder:text-rose-500":!!i.error,"border-slate-300 placeholder-slate-400":!i.error}),disabled:i.disabled,id:i.name,name:i.name,onChange:i.onChange,onClick:e=>{e.stopPropagation()},onBlur:i.onBlur,placeholder:i.placeholder,autoComplete:i.autoComplete||"off",type:i.type||"text",value:i.value,autoFocus:i.autoFocus})})}])},21799,e=>{var t=e.i(91398),r=e.i(3828),s=e.i(69322),a=e.i(66773),l=e.i(58971),o=e.i(64591),n=e.i(69211),i=e.i(72094),d=e.i(99160),u=e.i(96015),c=e.i(45229),f=e.i(98949),m=e.i(57561);let p=({onSubmit:e,onSubmitSuccess:r})=>{let{formatMessage:p}=(0,s.S)(),{hasRole:b}=(0,l.f)(),{selectedLocale:x,shopInfo:g}=(0,m.f)(),h=p({id:"assortment_added",defaultMessage:"Assortment added successfully!"}),y=(0,f.f)({submit:async t=>e({...t,locale:x}),onSubmitSuccess:r,successMessage:h,enableReinitialize:!0,initialValues:{isRoot:!0,title:"",subtitle:"",tags:[]}});return(0,t.jsxs)(n.f,{form:y,children:[(0,t.jsxs)("div",{className:"py-5 px-5",children:[(0,t.jsx)(c.f,{name:"title",id:"title",label:p({id:"title",defaultMessage:"Title"}),autoComplete:"off",required:!0,className:"mb-5"}),(0,t.jsx)(c.f,{name:"subtitle",id:"subtitle",label:p({id:"subtitle",defaultMessage:"Subtitle"}),autoComplete:"off",className:"mb-5"}),(0,t.jsx)(u.f,{name:"tags",id:"tags",label:p({id:"tags",defaultMessage:"Tags"}),selectOptions:(g?.adminUiConfig?.assortmentTags||[]).map(e=>({value:e,label:e}))})]}),(0,t.jsxs)("div",{className:"mx-5 mb-5",children:[(0,t.jsx)(o.f,{toggleText:p({id:"root_node",defaultMessage:"Root node"}),active:y.formik.values.isRoot,onToggle:()=>y.formik.setFieldValue("isRoot",!y.formik.values.isRoot)}),(0,t.jsx)("span",{className:"block text-sm text-slate-400 dark:text-slate-500 mt-2",children:p({id:"root_description",defaultMessage:"This makes the assortment a top level category"})})]}),(0,t.jsx)(i.f,{}),b(a.C.ManageAssortments)&&(0,t.jsx)("div",{className:"border-t-slate-100 border-t dark:border-t-slate-700 space-y-6 bg-slate-50 dark:bg-slate-900 p-5 text-right",children:(0,t.jsx)(d.f,{label:p({id:"add_assortment",defaultMessage:"Add Assortment"})})})]})};var b=e.i(59080),x=e.i(76204);let g=b.f`
|
|
2
|
+
mutation CreateAssortment(
|
|
3
|
+
$assortment: CreateAssortmentInput!
|
|
4
|
+
$texts: [AssortmentTextInput!]
|
|
5
|
+
) {
|
|
6
|
+
createAssortment(assortment: $assortment, texts: $texts) {
|
|
7
|
+
_id
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
`;var h=e.i(61494),y=e.i(5505),v=e.i(17644),j=e.i(1880),k=e.i(11056);e.s(["default",0,()=>{let{formatMessage:e}=(0,s.S)(),a=(0,r.useRouter)(),{createAssortment:l}=(()=>{let[e,{data:t,error:r,loading:s}]=(0,x.f)(g);return{createAssortment:async({isRoot:t=!1,tags:r=[],texts:s})=>e({variables:{assortment:{isRoot:t,tags:r},texts:s},refetchQueries:["Assortments","TranslatedAssortmentTexts","ShopStatus","ShopInfo"]}),loading:s,newAssortment:t?.createAssortment,error:r}})(),o=async({title:e,subtitle:t,isRoot:r,tags:s,locale:a})=>{let{data:o,error:n}=await l({isRoot:r,texts:[{title:e,subtitle:t,locale:a}],tags:s});return!n&&{success:!0,data:o?.createAssortment}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.f,{}),(0,t.jsxs)("div",{className:"mx-auto sm:max-w-2xl",children:[(0,t.jsx)(v.f,{headerText:e({id:"new_assortment_header",defaultMessage:"New Assortment"})}),(0,t.jsx)("div",{className:"mt-6 sm:max-w-2xl",children:(0,t.jsx)(y.U,{children:(0,t.jsx)(k.f,{children:(0,t.jsx)(p,{onSubmitSuccess:(e,t)=>{a.replace(`/assortments?assortmentSlug=${(0,j.U)(t)}`)},onSubmit:o})})})})]})]})}],21799)},76204,e=>{var t=e.i(24669),r=e.i(91788),s=e.i(30928),a=e.i(52006);let l=e.i(21953).f?r.useLayoutEffect:r.useEffect;var o=e.i(98926);function n(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["f",0,function(e,i){let d=(0,o.f)(i?.client),[u,c]=r.useState(()=>n(d)),f=r.useRef({result:u,mutationId:0,isMounted:!0,client:d,mutation:e,options:i});l(()=>{Object.assign(f.current,{client:d,options:i,mutation:e})});let m=r.useCallback((e={})=>{let{options:r,mutation:l}=f.current,o={...r,mutation:l},n=e.client||f.current.client,i="function"==typeof e.context?e.context(r?.context):e.context;!f.current.result.loading&&f.current.isMounted&&c(f.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:n});let d=++f.current.mutationId,u=(0,s.f)(o,{...e,context:i});return(0,a.f)(n.mutate(u).then(r=>{let{data:s,error:a}=r,l=e.onError||f.current.options?.onError;if(a&&l&&l(a,u),d===f.current.mutationId){let e={called:!0,loading:!1,data:s,error:a,client:n};f.current.isMounted&&!(0,t.f)(f.current.result,e)&&c(f.current.result=e)}let o=e.onCompleted||f.current.options?.onCompleted;return a||o?.(r.data,u),r},r=>{if(d===f.current.mutationId&&f.current.isMounted){let e={loading:!1,error:r,data:void 0,called:!0,client:n};(0,t.f)(f.current.result,e)||c(f.current.result=e)}let s=e.onError||f.current.options?.onError;throw s&&s(r,u),r}))},[]),p=r.useCallback(()=>{if(f.current.isMounted){let e=n(f.current.client);Object.assign(f.current,{mutationId:0,result:e}),c(e)}},[]);return r.useEffect(()=>{let e=f.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[m,{reset:p,...u}]}],76204)},37369,e=>{var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["f",0,r],37369)},9356,e=>{var t=e.i(35113);e.s(["f",0,function(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,t.f)(e)))}],9356)},49543,e=>{var t=e.i(35113);e.s(["f",0,function(e,r){let s=(0,t.f)(e,r?.in);return s.setHours(0,0,0,0),s}])},35113,2848,98170,e=>{let t=Symbol.for("constructDateFrom");function r(e,r){return"function"==typeof e?e(r):e&&"object"==typeof e&&t in e?e[t](r):e instanceof Date?new e.constructor(r):new Date(r)}e.s(["C",0,t,"_",0,864e5,"r",0,36e5,"z",0,6e4,"A",0,6048e5,"k",0,1440,"d",0,43200,"l",0,525600],2848),e.s(["f",0,r],98170),e.s(["f",0,function(e,t){return r(t||e,e)}],35113)},34980,(e,t,r)=>{var s=e.r(49957),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},n={};function i(e){return s.isMemo(e)?o:n[e.$$typeof]||a}n[s.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},n[s.Memo]=o;var d=Object.defineProperty,u=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,p=Object.prototype;t.exports=function e(t,r,s){if("string"!=typeof r){if(p){var a=m(r);a&&a!==p&&e(t,a,s)}var o=u(r);c&&(o=o.concat(c(r)));for(var n=i(t),b=i(r),x=0;x<o.length;++x){var g=o[x];if(!l[g]&&!(s&&s[g])&&!(b&&b[g])&&!(n&&n[g])){var h=f(r,g);try{d(t,g,h)}catch(e){}}}}return t}},40563,(e,t,r)=>{var s="function"==typeof Symbol&&Symbol.for,a=s?Symbol.for("react.element"):60103,l=s?Symbol.for("react.portal"):60106,o=s?Symbol.for("react.fragment"):60107,n=s?Symbol.for("react.strict_mode"):60108,i=s?Symbol.for("react.profiler"):60114,d=s?Symbol.for("react.provider"):60109,u=s?Symbol.for("react.context"):60110,c=s?Symbol.for("react.async_mode"):60111,f=s?Symbol.for("react.concurrent_mode"):60111,m=s?Symbol.for("react.forward_ref"):60112,p=s?Symbol.for("react.suspense"):60113,b=s?Symbol.for("react.suspense_list"):60120,x=s?Symbol.for("react.memo"):60115,g=s?Symbol.for("react.lazy"):60116,h=s?Symbol.for("react.block"):60121,y=s?Symbol.for("react.fundamental"):60117,v=s?Symbol.for("react.responder"):60118,j=s?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case c:case f:case o:case i:case n:case p:return e;default:switch(e=e&&e.$$typeof){case u:case m:case g:case x:case d:return e;default:return t}}case l:return t}}}function w(e){return k(e)===f}r.AsyncMode=c,r.ConcurrentMode=f,r.ContextConsumer=u,r.ContextProvider=d,r.Element=a,r.ForwardRef=m,r.Fragment=o,r.Lazy=g,r.Memo=x,r.Portal=l,r.Profiler=i,r.StrictMode=n,r.Suspense=p,r.isAsyncMode=function(e){return w(e)||k(e)===c},r.isConcurrentMode=w,r.isContextConsumer=function(e){return k(e)===u},r.isContextProvider=function(e){return k(e)===d},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},r.isForwardRef=function(e){return k(e)===m},r.isFragment=function(e){return k(e)===o},r.isLazy=function(e){return k(e)===g},r.isMemo=function(e){return k(e)===x},r.isPortal=function(e){return k(e)===l},r.isProfiler=function(e){return k(e)===i},r.isStrictMode=function(e){return k(e)===n},r.isSuspense=function(e){return k(e)===p},r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===i||e===n||e===p||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===x||e.$$typeof===d||e.$$typeof===u||e.$$typeof===m||e.$$typeof===y||e.$$typeof===v||e.$$typeof===j||e.$$typeof===h)},r.typeOf=k},49957,(e,t,r)=>{e.i(50461),t.exports=e.r(40563)}],92168,(e,t,r)=>{let s="/assortments/new";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(21799)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([s])})}]);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[61494,e=>{var t=e.i(91398),r=e.i(41158),a=e.i(3828),s=e.i(69322);e.s(["f",0,({routeName:e=null,currentPageTitle:o=null,depth:n=null})=>{let l=(0,a.useRouter)(),{formatMessage:i}=(0,s.S)(),d={home:"home",products:"products",orders:"orders",users:"users",assortments:"assortments",filters:"filters",tokens:"tokens",quotations:"quotations",enrollments:"enrollments",activities:"activities",works:"work_queue",events:"events",currency:"currencies",country:"countries",language:"languages","delivery-provider":"delivery_providers","payment-provider":"payment_providers","warehousing-provider":"warehousing_provider",system:"system",account:"account",new:"new",edit:"edit"},c=l.asPath?.split("/")?.filter((e,t)=>l.asPath?.split("/")?.indexOf(e)===t);if(1===c.length)return null;let u="";n&&c.splice(n),e&&(c[c.length-1]=e);let f=c?.map(t=>{if(u+=`${t}/`,!t)return{name:i({id:"home",defaultMessage:"Home"}),path:"/"};let r=t?.split("?")[0],a=e?r:r.replace(/-/g," "),s=d[r];return{name:s?i({id:s,defaultMessage:a}):decodeURIComponent(a),path:u.replace(/.$/,"")}});return(0,t.jsx)("nav",{className:"mb-5 hidden sm:flex lg:mt-5 lg:mb-8","aria-label":"Breadcrumb",children:(0,t.jsx)("ol",{className:"flex items-center space-x-4",children:f?.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-center",children:[0!==a&&(0,t.jsx)("svg",{className:"mr-4 h-5 w-5 shrink-0 text-slate-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,t.jsx)(r.default,{href:e.path,className:"text-sm font-medium capitalize text-slate-500 dark:text-slate-400 dark:hover:text-slate-300 hover:text-slate-700 focus:outline-hidden focus:ring-2 focus:ring-slate-800 rounded-md px-1 py-1",children:a===f.length-1&&o?o:e.name})]})},e.path))})})}])},81013,e=>{var t=e.i(91398),r=e.i(72043);e.s(["f",0,({text:e,children:a,onClick:s,className:o="",disabled:n=!1,id:l="",variant:i="primary",size:d="md",type:c="button",loading:u=!1,icon:f,iconRight:m,fullWidth:p=!1,rounded:b="md",ariaLabel:y,...g})=>{let v=a||e,x=(f||m)&&v?"gap-2":"";return(0,t.jsx)("button",{id:l,type:c,disabled:n||u,onClick:s,"aria-label":y,className:(0,r.default)("inline-flex items-center justify-center font-medium shadow-xs focus:outline-hidden focus:ring-2 focus:ring-offset-2 transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-50",{xs:"px-2.5 py-1.5 text-xs h-6",sm:"px-3 py-2 text-sm h-8",md:"px-4 py-2 text-sm h-9",lg:"px-6 py-3 text-base h-11"}[d],{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}[b],{primary:"border border-slate-800 dark:border-slate-600 bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:ring-slate-800 dark:focus:ring-slate-400",secondary:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-700 dark:text-slate-200 hover:bg-slate-50 dark:hover:bg-slate-700 focus:ring-slate-500",tertiary:"border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700 focus:ring-slate-400",quaternary:"bg-transparent text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",danger:"border border-rose-500 dark:border-rose-400 bg-white dark:bg-slate-800 text-rose-600 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/10 focus:ring-rose-500",ghost:"bg-transparent border border-transparent text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",success:"border border-emerald-500 dark:border-emerald-400 bg-emerald-50 dark:bg-emerald-900/20 text-emerald-600 dark:text-emerald-400 hover:bg-emerald-100 dark:hover:bg-emerald-900/30 focus:ring-emerald-500",neutral:"border border-slate-300 dark:border-slate-600 bg-slate-100 dark:bg-slate-700 text-slate-600 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:ring-slate-400",input:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-900 dark:text-slate-100 hover:border-slate-400 dark:hover:border-slate-500 focus:ring-slate-500 focus:border-slate-500"}[i],x,{"w-full":p},o),...g,children:u?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),v]}):(0,t.jsxs)(t.Fragment,{children:[f,v,m]})})}])},68057,e=>{var t=e.i(91398),r=e.i(69322),a=e.i(69211),s=e.i(73419),o=e.i(99160),n=e.i(98949),l=e.i(5505);e.s(["f",0,({onSubmit:e,onSubmitSuccess:i,providerTypes:d,providerInterfaces:c,onProviderChange:u,readOnly:f})=>{let{formatMessage:m}=(0,r.S)(),p=m({id:"provider_created_success",defaultMessage:"Provider created successfully!"}),b=(0,n.f)({submit:e,onSubmitSuccess:i,successMessage:p,enableReinitialize:!0,initialValues:{adapterKey:"",type:""}});return(0,t.jsx)(l.U,{children:(0,t.jsx)(a.f,{form:b,children:(0,t.jsxs)("div",{className:"shadow-sm dark:shadow-none sm:max-w-full sm:rounded-lg",children:[(0,t.jsxs)("div",{className:"px-4 pt-4 pb-6",children:[(0,t.jsx)(s.f,{onChange:e=>u(e.target.value),name:"type",disabled:f,required:!0,label:m({id:"type",defaultMessage:"Type"}),options:d,className:"mb-5"}),(0,t.jsx)(s.f,{name:"adapterKey",required:!0,disabled:f,options:c,label:m({id:"adapter",defaultMessage:"Adapter"}),className:"mt-2"})]}),!f&&(0,t.jsx)("div",{className:"border-t-slate-100 border-t dark:border-t-slate-700 space-y-6 bg-slate-50 dark:bg-slate-900 p-6 px-5 text-right",children:(0,t.jsx)(o.f,{label:m({id:"create_provider",defaultMessage:"Create provider"})})})]})})})}])},17644,e=>{var t=e.i(91398),r=e.i(58678),a=e.i(41158),s=e.i(69322),o=e.i(37369),n=e.i(81013);e.s(["f",0,({headerText:e=null,onEdit:l=null,onDelete:i=null,children:d=null,title:c=null,addPath:u=null,addButtonText:f=null})=>{let{formatMessage:m}=(0,s.S)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{children:(0,t.jsxs)("title",{children:["Unchained AdminUI - ",c||e," "]})}),(0,t.jsx)("div",{className:"flex gap-3 flex-wrap items-center justify-between",children:(0,t.jsxs)("div",{className:"flex items-center flex-wrap justify-between w-full gap-4",children:[e&&(0,t.jsx)("h2",{className:"text-2xl font-medium text-slate-900 dark:text-slate-300 sm:truncate sm:text-3xl lg:text-4xl",children:e}),(0,t.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[d,u&&(0,t.jsx)(a.default,{href:u,children:(0,t.jsx)(n.f,{variant:"secondary",icon:(0,t.jsx)(o.f,{className:"h-5 w-5"}),text:f||m({id:"add",defaultMessage:"Add"})})}),l&&(0,t.jsx)(n.f,{variant:"secondary",onClick:l,text:m({id:"edit",defaultMessage:"Edit"})}),i&&(0,t.jsx)(n.f,{variant:"danger",onClick:i,text:m({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},1504,e=>{e.s(["f",0,(e,t,r)=>Object.assign({},...e?.map(e=>({[e[r]]:e[t]}))||[])])},73319,e=>{let t=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["Q",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"C",0,t,"T",0,e=>!(!e||null==e||t(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},73419,e=>{var t=e.i(91398),r=e.i(72043),a=e.i(60741),s=e.i(29691);e.s(["f",0,e=>{let{options:o,...n}=(0,a.f)(e),{className:l}=e||{className:""};return(0,t.jsx)(s.f,{...n,children:(0,t.jsx)("div",{className:"select-wrap",children:(0,t.jsxs)("select",{className:(0,r.default)("block w-full dark:bg-slate-900 dark:text-white rounded-md border-1 border-slate-300 dark:border-slate-700 py-2.5 pl-3 pr-10 text-base text-black shadow-xs focus:outline-hidden focus:ring-2 focus:ring-slate-800 sm:text-sm",l,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!n.error}),disabled:n.disabled,id:n.name,name:n.name,onChange:n.onChange,onBlur:n.onBlur,value:n.value,children:[(0,t.jsx)("option",{className:"dark:text-slate-200",value:"",disabled:n.required,hidden:n.required,children:n.placeholder||n.label}),Object.entries(o).map(([e,r])=>(0,t.jsx)("option",{className:"dark:text-slate-200",value:e,children:r},e))]})})})}])},99160,e=>{var t=e.i(91398),r=e.i(72043),a=e.i(38865),s=e.i(61898);e.s(["f",0,({label:e,disabled:o=!1,className:n="",hidden:l=!1,...i})=>{let d=(0,a.m)(),{...c}=i,u=Object.fromEntries(Object.keys(d.initialValues).map(e=>[e,d.getFieldMeta(e)])),{disabled:f}=(0,s.f)(),m=Object.values(u).reduce((e,{error:t,touched:r})=>e||t&&r,!1),p=o||f||d.isSubmitting||m,b=d.isSubmitting&&!m,y=(o||f||m)&&!d.isSubmitting;return(0,t.jsx)("input",{className:(0,r.default)("inline-flex cursor-pointer justify-center rounded-sm border border-slate-300 px-4 py-2 text-center text-sm font-medium leading-5 shadow-sm hover:shadow-md focus:ring-slate-800 dark:focus:ring-slate-400",n,{"bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900":y,"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600":b,"bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent":!p,hidden:l}),"aria-label":e,type:"submit",value:e,disabled:p,...c})}])},16238,e=>{var t=e.i(59080);let r=t.f`
|
|
2
|
+
fragment PaymentProviderFragment on PaymentProvider {
|
|
3
|
+
_id
|
|
4
|
+
created
|
|
5
|
+
updated
|
|
6
|
+
deleted
|
|
7
|
+
isActive
|
|
8
|
+
type
|
|
9
|
+
interface {
|
|
10
|
+
_id
|
|
11
|
+
label
|
|
12
|
+
version
|
|
13
|
+
}
|
|
14
|
+
configuration
|
|
15
|
+
configurationError
|
|
16
|
+
}
|
|
17
|
+
`;e.s(["f",0,r])},51967,e=>{var t=e.i(59080),r=e.i(32171);let a=t.f`
|
|
18
|
+
query PaymentProvidersType {
|
|
19
|
+
paymentProviderType: __type(name: "PaymentProviderType") {
|
|
20
|
+
options: enumValues {
|
|
21
|
+
value: name
|
|
22
|
+
label: description
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`;e.s(["f",0,()=>{let{data:e,loading:t,error:s}=(0,r.f)(a);return{paymentProviderType:e?.paymentProviderType?.options||[],loading:t,error:s}}])},27461,e=>{var t=e.i(91398),r=e.i(91788),a=e.i(66773),s=e.i(3828),o=e.i(69322),n=e.i(58971),l=e.i(61494),i=e.i(68057),d=e.i(17644),c=e.i(1504),u=e.i(59080),f=e.i(76204),m=e.i(16238);let p=u.f`
|
|
27
|
+
mutation CreatePaymentProvider(
|
|
28
|
+
$paymentProvider: CreatePaymentProviderInput!
|
|
29
|
+
) {
|
|
30
|
+
createPaymentProvider(paymentProvider: $paymentProvider) {
|
|
31
|
+
...PaymentProviderFragment
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
${m.f}
|
|
35
|
+
`;var b=e.i(32171);let y=u.f`
|
|
36
|
+
query PaymentInterfaces($providerType: PaymentProviderType) {
|
|
37
|
+
paymentInterfaces(type: $providerType) {
|
|
38
|
+
_id
|
|
39
|
+
value: _id
|
|
40
|
+
label
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`;var g=e.i(51967);e.s(["default",0,()=>{let[e,u]=(0,r.useState)(a.R.Invoice),{formatMessage:m}=(0,o.S)(),{createPaymentProvider:v}=(()=>{let[e,{data:t,loading:r,error:a}]=(0,f.f)(p);return{createPaymentProvider:async({paymentProvider:t})=>e({variables:{paymentProvider:t},refetchQueries:["PaymentProviders","ShopStatus"]}),newPaymentProvider:t?.createPaymentProvider,loading:r,error:a}})(),{paymentProviderType:x}=(0,g.f)(),{paymentInterfaces:h}=(({providerType:e})=>{let{data:t,loading:r,error:a}=(0,b.f)(y,{skip:!e,variables:{providerType:e}});return{paymentInterfaces:t?.paymentInterfaces||[],loading:r,error:a}})({providerType:e}),{hasRole:k}=(0,n.f)(),j=async({adapterKey:e,type:t})=>{let{data:r,error:a}=await v({paymentProvider:{adapterKey:e,type:t}});return!a&&{success:!0,data:r?.createPaymentProvider}},w=(0,s.useRouter)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.f,{}),(0,t.jsxs)("div",{className:"mx-auto sm:max-w-2xl",children:[(0,t.jsx)(d.f,{headerText:m({id:"new_payment_provider_header",defaultMessage:"New payment provider"})}),(0,t.jsx)("div",{className:"mt-6",children:(0,t.jsx)(i.f,{readOnly:!k(a.C.ManagePaymentProviders),providerInterfaces:(0,c.f)(h,"label","value"),providerTypes:(0,c.f)(x,"label","value"),onSubmit:j,onSubmitSuccess:(e,{_id:t})=>{w.replace(`/payment-provider?paymentProviderId=${t}`)},onProviderChange:e=>u(e)})})]})]})}],27461)},76204,e=>{var t=e.i(24669),r=e.i(91788),a=e.i(30928),s=e.i(52006);let o=e.i(21953).f?r.useLayoutEffect:r.useEffect;var n=e.i(98926);function l(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["f",0,function(e,i){let d=(0,n.f)(i?.client),[c,u]=r.useState(()=>l(d)),f=r.useRef({result:c,mutationId:0,isMounted:!0,client:d,mutation:e,options:i});o(()=>{Object.assign(f.current,{client:d,options:i,mutation:e})});let m=r.useCallback((e={})=>{let{options:r,mutation:o}=f.current,n={...r,mutation:o},l=e.client||f.current.client,i="function"==typeof e.context?e.context(r?.context):e.context;!f.current.result.loading&&f.current.isMounted&&u(f.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:l});let d=++f.current.mutationId,c=(0,a.f)(n,{...e,context:i});return(0,s.f)(l.mutate(c).then(r=>{let{data:a,error:s}=r,o=e.onError||f.current.options?.onError;if(s&&o&&o(s,c),d===f.current.mutationId){let e={called:!0,loading:!1,data:a,error:s,client:l};f.current.isMounted&&!(0,t.f)(f.current.result,e)&&u(f.current.result=e)}let n=e.onCompleted||f.current.options?.onCompleted;return s||n?.(r.data,c),r},r=>{if(d===f.current.mutationId&&f.current.isMounted){let e={loading:!1,error:r,data:void 0,called:!0,client:l};(0,t.f)(f.current.result,e)||u(f.current.result=e)}let a=e.onError||f.current.options?.onError;throw a&&a(r,c),r}))},[]),p=r.useCallback(()=>{if(f.current.isMounted){let e=l(f.current.client);Object.assign(f.current,{mutationId:0,result:e}),u(e)}},[]);return r.useEffect(()=>{let e=f.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[m,{reset:p,...c}]}],76204)},37369,e=>{var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...a},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["f",0,r],37369)},9356,e=>{var t=e.i(35113);e.s(["f",0,function(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,t.f)(e)))}],9356)},49543,e=>{var t=e.i(35113);e.s(["f",0,function(e,r){let a=(0,t.f)(e,r?.in);return a.setHours(0,0,0,0),a}])},35113,2848,98170,e=>{let t=Symbol.for("constructDateFrom");function r(e,r){return"function"==typeof e?e(r):e&&"object"==typeof e&&t in e?e[t](r):e instanceof Date?new e.constructor(r):new Date(r)}e.s(["C",0,t,"_",0,864e5,"r",0,36e5,"z",0,6e4,"A",0,6048e5,"k",0,1440,"d",0,43200,"l",0,525600],2848),e.s(["f",0,r],98170),e.s(["f",0,function(e,t){return r(t||e,e)}],35113)},34980,(e,t,r)=>{var a=e.r(49957),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function i(e){return a.isMemo(e)?n:l[e.$$typeof]||s}l[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[a.Memo]=n;var d=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,p=Object.prototype;t.exports=function e(t,r,a){if("string"!=typeof r){if(p){var s=m(r);s&&s!==p&&e(t,s,a)}var n=c(r);u&&(n=n.concat(u(r)));for(var l=i(t),b=i(r),y=0;y<n.length;++y){var g=n[y];if(!o[g]&&!(a&&a[g])&&!(b&&b[g])&&!(l&&l[g])){var v=f(r,g);try{d(t,g,v)}catch(e){}}}}return t}},40563,(e,t,r)=>{var a="function"==typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103,o=a?Symbol.for("react.portal"):60106,n=a?Symbol.for("react.fragment"):60107,l=a?Symbol.for("react.strict_mode"):60108,i=a?Symbol.for("react.profiler"):60114,d=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,u=a?Symbol.for("react.async_mode"):60111,f=a?Symbol.for("react.concurrent_mode"):60111,m=a?Symbol.for("react.forward_ref"):60112,p=a?Symbol.for("react.suspense"):60113,b=a?Symbol.for("react.suspense_list"):60120,y=a?Symbol.for("react.memo"):60115,g=a?Symbol.for("react.lazy"):60116,v=a?Symbol.for("react.block"):60121,x=a?Symbol.for("react.fundamental"):60117,h=a?Symbol.for("react.responder"):60118,k=a?Symbol.for("react.scope"):60119;function j(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case s:switch(e=e.type){case u:case f:case n:case i:case l:case p:return e;default:switch(e=e&&e.$$typeof){case c:case m:case g:case y:case d:return e;default:return t}}case o:return t}}}function w(e){return j(e)===f}r.AsyncMode=u,r.ConcurrentMode=f,r.ContextConsumer=c,r.ContextProvider=d,r.Element=s,r.ForwardRef=m,r.Fragment=n,r.Lazy=g,r.Memo=y,r.Portal=o,r.Profiler=i,r.StrictMode=l,r.Suspense=p,r.isAsyncMode=function(e){return w(e)||j(e)===u},r.isConcurrentMode=w,r.isContextConsumer=function(e){return j(e)===c},r.isContextProvider=function(e){return j(e)===d},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},r.isForwardRef=function(e){return j(e)===m},r.isFragment=function(e){return j(e)===n},r.isLazy=function(e){return j(e)===g},r.isMemo=function(e){return j(e)===y},r.isPortal=function(e){return j(e)===o},r.isProfiler=function(e){return j(e)===i},r.isStrictMode=function(e){return j(e)===l},r.isSuspense=function(e){return j(e)===p},r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===f||e===i||e===l||e===p||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===y||e.$$typeof===d||e.$$typeof===c||e.$$typeof===m||e.$$typeof===x||e.$$typeof===h||e.$$typeof===k||e.$$typeof===v)},r.typeOf=j},49957,(e,t,r)=>{e.i(50461),t.exports=e.r(40563)}],68086,(e,t,r)=>{let a="/payment-provider/new";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(27461)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([a])})}]);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[61494,e=>{var r=e.i(91398),t=e.i(41158),a=e.i(3828),s=e.i(69322);e.s(["f",0,({routeName:e=null,currentPageTitle:n=null,depth:l=null})=>{let o=(0,a.useRouter)(),{formatMessage:i}=(0,s.S)(),d={home:"home",products:"products",orders:"orders",users:"users",assortments:"assortments",filters:"filters",tokens:"tokens",quotations:"quotations",enrollments:"enrollments",activities:"activities",works:"work_queue",events:"events",currency:"currencies",country:"countries",language:"languages","delivery-provider":"delivery_providers","payment-provider":"payment_providers","warehousing-provider":"warehousing_provider",system:"system",account:"account",new:"new",edit:"edit"},c=o.asPath?.split("/")?.filter((e,r)=>o.asPath?.split("/")?.indexOf(e)===r);if(1===c.length)return null;let u="";l&&c.splice(l),e&&(c[c.length-1]=e);let f=c?.map(r=>{if(u+=`${r}/`,!r)return{name:i({id:"home",defaultMessage:"Home"}),path:"/"};let t=r?.split("?")[0],a=e?t:t.replace(/-/g," "),s=d[t];return{name:s?i({id:s,defaultMessage:a}):decodeURIComponent(a),path:u.replace(/.$/,"")}});return(0,r.jsx)("nav",{className:"mb-5 hidden sm:flex lg:mt-5 lg:mb-8","aria-label":"Breadcrumb",children:(0,r.jsx)("ol",{className:"flex items-center space-x-4",children:f?.map((e,a)=>(0,r.jsx)("li",{children:(0,r.jsxs)("div",{className:"flex items-center",children:[0!==a&&(0,r.jsx)("svg",{className:"mr-4 h-5 w-5 shrink-0 text-slate-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,r.jsx)(t.default,{href:e.path,className:"text-sm font-medium capitalize text-slate-500 dark:text-slate-400 dark:hover:text-slate-300 hover:text-slate-700 focus:outline-hidden focus:ring-2 focus:ring-slate-800 rounded-md px-1 py-1",children:a===f.length-1&&n?n:e.name})]})},e.path))})})}])},81013,e=>{var r=e.i(91398),t=e.i(72043);e.s(["f",0,({text:e,children:a,onClick:s,className:n="",disabled:l=!1,id:o="",variant:i="primary",size:d="md",type:c="button",loading:u=!1,icon:f,iconRight:m,fullWidth:p=!1,rounded:b="md",ariaLabel:g,...y})=>{let h=a||e,x=(f||m)&&h?"gap-2":"";return(0,r.jsx)("button",{id:o,type:c,disabled:l||u,onClick:s,"aria-label":g,className:(0,t.default)("inline-flex items-center justify-center font-medium shadow-xs focus:outline-hidden focus:ring-2 focus:ring-offset-2 transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-50",{xs:"px-2.5 py-1.5 text-xs h-6",sm:"px-3 py-2 text-sm h-8",md:"px-4 py-2 text-sm h-9",lg:"px-6 py-3 text-base h-11"}[d],{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}[b],{primary:"border border-slate-800 dark:border-slate-600 bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:ring-slate-800 dark:focus:ring-slate-400",secondary:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-700 dark:text-slate-200 hover:bg-slate-50 dark:hover:bg-slate-700 focus:ring-slate-500",tertiary:"border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700 focus:ring-slate-400",quaternary:"bg-transparent text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",danger:"border border-rose-500 dark:border-rose-400 bg-white dark:bg-slate-800 text-rose-600 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/10 focus:ring-rose-500",ghost:"bg-transparent border border-transparent text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",success:"border border-emerald-500 dark:border-emerald-400 bg-emerald-50 dark:bg-emerald-900/20 text-emerald-600 dark:text-emerald-400 hover:bg-emerald-100 dark:hover:bg-emerald-900/30 focus:ring-emerald-500",neutral:"border border-slate-300 dark:border-slate-600 bg-slate-100 dark:bg-slate-700 text-slate-600 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:ring-slate-400",input:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-900 dark:text-slate-100 hover:border-slate-400 dark:hover:border-slate-500 focus:ring-slate-500 focus:border-slate-500"}[i],x,{"w-full":p},n),...y,children:u?(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),h]}):(0,r.jsxs)(r.Fragment,{children:[f,h,m]})})}])},17644,e=>{var r=e.i(91398),t=e.i(58678),a=e.i(41158),s=e.i(69322),n=e.i(37369),l=e.i(81013);e.s(["f",0,({headerText:e=null,onEdit:o=null,onDelete:i=null,children:d=null,title:c=null,addPath:u=null,addButtonText:f=null})=>{let{formatMessage:m}=(0,s.S)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.default,{children:(0,r.jsxs)("title",{children:["Unchained AdminUI - ",c||e," "]})}),(0,r.jsx)("div",{className:"flex gap-3 flex-wrap items-center justify-between",children:(0,r.jsxs)("div",{className:"flex items-center flex-wrap justify-between w-full gap-4",children:[e&&(0,r.jsx)("h2",{className:"text-2xl font-medium text-slate-900 dark:text-slate-300 sm:truncate sm:text-3xl lg:text-4xl",children:e}),(0,r.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[d,u&&(0,r.jsx)(a.default,{href:u,children:(0,r.jsx)(l.f,{variant:"secondary",icon:(0,r.jsx)(n.f,{className:"h-5 w-5"}),text:f||m({id:"add",defaultMessage:"Add"})})}),o&&(0,r.jsx)(l.f,{variant:"secondary",onClick:o,text:m({id:"edit",defaultMessage:"Edit"})}),i&&(0,r.jsx)(l.f,{variant:"danger",onClick:i,text:m({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},64591,e=>{var r=e.i(91398),t=e.i(72043),a=e.i(3828),s=e.i(83147);e.s(["f",0,({toggleText:e="",toggleKey:n=null,onToggle:l=null,active:o=!1,className:i="",disabled:d=!1,...c})=>{let u=(0,a.useRouter)(),f=u?.query?.[n]==="true"||o;return(0,r.jsxs)("div",{className:(0,t.default)("",i),children:[(0,r.jsxs)("button",{id:n,disabled:d,type:"button",className:(0,t.default)("relative inline-flex h-3.5 w-9 shrink-0 cursor-pointer rounded-full border-1 border-transparent transition-all duration-200 ease-in-out focus:outline-hidden focus:ring-2 focus:ring-slate-400 focus:ring-offset-2",{"bg-slate-200 dark:bg-slate-700":!f,"bg-emerald-500 dark:bg-emerald-600 shadow-sm":f}),role:"switch",onClick:l||(()=>{let{skip:e,...r}=u.query;u.push({query:(0,s._)(r,!f,n)})}),"aria-checked":f?"true":"false",...c,children:[(0,r.jsx)("span",{className:"sr-only",children:e}),(0,r.jsxs)("span",{className:(0,t.default)("ml-0.5 pointer-events-none relative inline-block h-3 w-3 transform rounded-full bg-white shadow-sm ring-0 transition-all duration-200 ease-in-out",{"translate-x-5 shadow-md":f,"translate-x-0":!f}),children:[(0,r.jsx)("span",{className:(0,t.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-0 duration-100 ease-out":f,"opacity-100 duration-200 ease-in":!f}),"aria-hidden":"true",children:(0,r.jsx)("svg",{className:"h-3 w-3 text-slate-400",fill:"none",viewBox:"0 0 12 12",children:(0,r.jsx)("path",{d:"M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,r.jsx)("span",{className:(0,t.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-100 duration-200 ease-in":f,"opacity-0 duration-100 ease-out":!f}),"aria-hidden":"true",children:(0,r.jsx)("svg",{className:"h-3 w-3 text-emerald-500",fill:"currentColor",viewBox:"0 0 12 12",children:(0,r.jsx)("path",{d:"M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"})})})]})]}),(0,r.jsx)("span",{className:"ml-3",id:"annual-billing-label",children:(0,r.jsx)("span",{className:"text-sm font-medium text-slate-900 dark:text-slate-200",children:e})})]})}])},73319,e=>{let r=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["Q",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"C",0,r,"T",0,e=>!(!e||null==e||r(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},83147,e=>{let r=e=>e&&e?.split(",").reduce((e,r)=>{let[t=null,a=null]=(r||"")?.split("_")||[];return{...e,[t]:a}},null)||{};e.s(["S",0,(...e)=>e.filter(Boolean).join(" "),"R",0,e=>Object.entries(r(e))?.map(([e,r])=>({key:e,value:r})),"D",0,e=>e?.label&&e?.version?`${e.label} ${e.version}`:"","v",0,r,"Q",0,(e,r,t=!0)=>{if(!r)return"";try{return`${new Intl.DisplayNames([e],{type:"region"}).of(r)} ${t?`(${r})`:""}`}catch{return r}},"j",0,(e,r,t=!0)=>{if(!r)return"";try{return`${new Intl.DisplayNames([e],{type:"currency"}).of(r)} ${t?`(${r})`:""}`}catch{return r}},"I",0,(e,r,t=!0)=>{if(!r)return"";try{return`${new Intl.DisplayNames([e],{type:"language"}).of(r)} ${t?`(${r})`:""}`}catch{return r}},"_",0,(e,r,t)=>{let a;return a=t?{...e,[t]:r}:e,Object.keys(a)?.map(e=>[e,a[e]].join("="))?.join("&")},"d",0,()=>({formatPrice:e=>{if(!e?.currencyCode)return"n/a";if(e?.amount===void 0||e?.amount===null)return"";let{amount:r,currencyCode:t}=e||{};return new Intl.NumberFormat(navigator.language,{style:"currency",currency:t}).format(r/100)}})])},40191,e=>{var r=e.i(91398),t=e.i(69322),a=e.i(66773),s=e.i(58971),n=e.i(64591),l=e.i(69211),o=e.i(99160),i=e.i(45229),d=e.i(73419),c=e.i(98949),u=e.i(82226);e.s(["f",0,({onSubmit:e,onSubmitSuccess:f=null,defaultValue:m={},isEdit:p=!1})=>{let{formatMessage:b}=(0,t.S)(),{hasRole:g}=(0,s.f)(),y=b({id:"currency_added",defaultMessage:"Currency added successfully!"}),h=b({id:"currency_updated",defaultMessage:"Currency updated successfully!"}),x=(0,c.f)({submit:e,onSubmitSuccess:f,successMessage:p?h:y,getSubmitErrorMessage:e=>{if(e?.message?.includes("duplicate key"))return x.formik.setFieldError("isoCode",b({id:"currency_exists",defaultMessage:"Currency with the same ISO code already exists"})),null},initialValues:{isoCode:"",contractAddress:"",isActive:!1,decimals:2,...m}});return(0,r.jsxs)(l.f,{form:x,children:[(0,r.jsxs)("div",{className:"p-5 pb-7",children:[(0,r.jsx)(i.f,{name:"isoCode",disabled:!g(a.C.ManageCurrencies),id:"isoCode",label:b({id:"iso_code",defaultMessage:"ISO code"}),autoComplete:"on",required:!0}),(0,r.jsx)(i.f,{name:"contractAddress",disabled:!g(a.C.ManageCurrencies),id:"contractAddress",validators:[(0,u.J)()],label:b({id:"contract_address",defaultMessage:"Contract Address"}),autoComplete:"on",className:"mt-4"}),(0,r.jsx)(d.f,{className:"mt-4",label:b({id:"decimals",defaultMessage:"Decimals"}),required:!0,name:"decimals",disabled:!g(a.C.ManageCurrencies),options:Object.fromEntries(Array(32).fill(null).map((e,r)=>[r,`${r}`]))}),p&&(0,r.jsx)("div",{className:"mt-5 flex items-center",children:(0,r.jsx)(n.f,{toggleText:b({id:"active",defaultMessage:"Active"}),disabled:!g(a.C.ManageCurrencies),active:x.formik.values.isActive,onToggle:()=>x.formik.setFieldValue("isActive",!x.formik.values.isActive)})})]}),g(a.C.ManageCurrencies)&&(0,r.jsx)("div",{className:"border-t-slate-100 border-t dark:border-t-slate-700 space-y-6 rounded-b-md bg-slate-50 dark:bg-slate-900 p-5 text-right",children:(0,r.jsx)(o.f,{label:p?b({id:"update_currency",defaultMessage:"Update Currency"}):b({id:"add_currency",defaultMessage:"Add Currency"})})})]})}])},68191,e=>{var r=e.i(59080);let t=r.f`
|
|
2
|
+
fragment CurrencyFragment on Currency {
|
|
3
|
+
_id
|
|
4
|
+
isoCode
|
|
5
|
+
isActive
|
|
6
|
+
contractAddress
|
|
7
|
+
decimals
|
|
8
|
+
}
|
|
9
|
+
`;e.s(["f",0,t])},73419,e=>{var r=e.i(91398),t=e.i(72043),a=e.i(60741),s=e.i(29691);e.s(["f",0,e=>{let{options:n,...l}=(0,a.f)(e),{className:o}=e||{className:""};return(0,r.jsx)(s.f,{...l,children:(0,r.jsx)("div",{className:"select-wrap",children:(0,r.jsxs)("select",{className:(0,t.default)("block w-full dark:bg-slate-900 dark:text-white rounded-md border-1 border-slate-300 dark:border-slate-700 py-2.5 pl-3 pr-10 text-base text-black shadow-xs focus:outline-hidden focus:ring-2 focus:ring-slate-800 sm:text-sm",o,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!l.error}),disabled:l.disabled,id:l.name,name:l.name,onChange:l.onChange,onBlur:l.onBlur,value:l.value,children:[(0,r.jsx)("option",{className:"dark:text-slate-200",value:"",disabled:l.required,hidden:l.required,children:l.placeholder||l.label}),Object.entries(n).map(([e,t])=>(0,r.jsx)("option",{className:"dark:text-slate-200",value:e,children:t},e))]})})})}])},99160,e=>{var r=e.i(91398),t=e.i(72043),a=e.i(38865),s=e.i(61898);e.s(["f",0,({label:e,disabled:n=!1,className:l="",hidden:o=!1,...i})=>{let d=(0,a.m)(),{...c}=i,u=Object.fromEntries(Object.keys(d.initialValues).map(e=>[e,d.getFieldMeta(e)])),{disabled:f}=(0,s.f)(),m=Object.values(u).reduce((e,{error:r,touched:t})=>e||r&&t,!1),p=n||f||d.isSubmitting||m,b=d.isSubmitting&&!m,g=(n||f||m)&&!d.isSubmitting;return(0,r.jsx)("input",{className:(0,t.default)("inline-flex cursor-pointer justify-center rounded-sm border border-slate-300 px-4 py-2 text-center text-sm font-medium leading-5 shadow-sm hover:shadow-md focus:ring-slate-800 dark:focus:ring-slate-400",l,{"bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900":g,"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600":b,"bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent":!p,hidden:o}),"aria-label":e,type:"submit",value:e,disabled:p,...c})}])},45229,e=>{var r=e.i(91398),t=e.i(72043),a=e.i(82226),s=e.i(60741),n=e.i(29691);e.s(["f",0,({maxLength:e=0,validators:l=[],...o})=>{let i=(0,s.f)({validators:[...l,e&&(0,a.f)(e)],...o});return(0,r.jsx)(n.f,{...i,children:(0,r.jsx)("input",{className:(0,t.default)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-600 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 focus:outline-hidden focus:ring-2 focus:ring-slate-800 shadow-xs",{"border-rose-700 placeholder:text-rose-500":!!i.error,"border-slate-300 placeholder-slate-400":!i.error}),disabled:i.disabled,id:i.name,name:i.name,onChange:i.onChange,onClick:e=>{e.stopPropagation()},onBlur:i.onBlur,placeholder:i.placeholder,autoComplete:i.autoComplete||"off",type:i.type||"text",value:i.value,autoFocus:i.autoFocus})})}])},39503,e=>{var r=e.i(91398),t=e.i(3828),a=e.i(69322),s=e.i(61494),n=e.i(5505),l=e.i(17644),o=e.i(40191),i=e.i(59080),d=e.i(76204),c=e.i(68191);let u=i.f`
|
|
10
|
+
mutation CreateCurrency($currency: CreateCurrencyInput!) {
|
|
11
|
+
createCurrency(currency: $currency) {
|
|
12
|
+
...CurrencyFragment
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
${c.f}
|
|
16
|
+
`;e.s(["default",0,()=>{let{createCurrency:e}=(()=>{let[e,{data:r,loading:t,error:a}]=(0,d.f)(u);return{createCurrency:async({currency:{isoCode:r,contractAddress:t,decimals:a}})=>e({variables:{currency:{isoCode:r,contractAddress:t,decimals:parseInt(a||"2",10)}},refetchQueries:["Currencies","ShopStatus","ShopInfo"]}),newCurrency:r?.createCurrency,error:a,loading:t}})(),i=(0,t.useRouter)(),{formatMessage:c}=(0,a.S)(),f=async({isoCode:r,contractAddress:t,decimals:a})=>{let{data:s,error:n}=await e({currency:{isoCode:r,contractAddress:t,decimals:a}});return!n&&{success:!0,data:s?.createCurrency}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.f,{}),(0,r.jsx)(l.f,{headerText:c({id:"new_currency_header",defaultMessage:"New currency"})}),(0,r.jsxs)("div",{className:"mt-6 lg:grid lg:grid-cols-3 gap-10",children:[(0,r.jsx)("div",{className:"lg:col-span-2",children:(0,r.jsx)(n.U,{children:(0,r.jsx)(o.f,{onSubmit:f,onSubmitSuccess:(e,{_id:r})=>{i.replace(`/currency?currencyId=${r}`)}})})}),(0,r.jsx)("div",{className:"mt-10 lg:mt-44 lg:col-span-1",children:(0,r.jsx)("div",{className:"-my-5 divide-y divide-slate-200 dark:divide-slate-700 dark:text-slate-400 mr-4",children:c({id:"currency_contract_address_description",defaultMessage:"Contract address is optional and represents address of the 40 character long deployed token contract on the ethereum network. "})})})]})]})}],39503)},76204,e=>{var r=e.i(24669),t=e.i(91788),a=e.i(30928),s=e.i(52006);let n=e.i(21953).f?t.useLayoutEffect:t.useEffect;var l=e.i(98926);function o(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["f",0,function(e,i){let d=(0,l.f)(i?.client),[c,u]=t.useState(()=>o(d)),f=t.useRef({result:c,mutationId:0,isMounted:!0,client:d,mutation:e,options:i});n(()=>{Object.assign(f.current,{client:d,options:i,mutation:e})});let m=t.useCallback((e={})=>{let{options:t,mutation:n}=f.current,l={...t,mutation:n},o=e.client||f.current.client,i="function"==typeof e.context?e.context(t?.context):e.context;!f.current.result.loading&&f.current.isMounted&&u(f.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:o});let d=++f.current.mutationId,c=(0,a.f)(l,{...e,context:i});return(0,s.f)(o.mutate(c).then(t=>{let{data:a,error:s}=t,n=e.onError||f.current.options?.onError;if(s&&n&&n(s,c),d===f.current.mutationId){let e={called:!0,loading:!1,data:a,error:s,client:o};f.current.isMounted&&!(0,r.f)(f.current.result,e)&&u(f.current.result=e)}let l=e.onCompleted||f.current.options?.onCompleted;return s||l?.(t.data,c),t},t=>{if(d===f.current.mutationId&&f.current.isMounted){let e={loading:!1,error:t,data:void 0,called:!0,client:o};(0,r.f)(f.current.result,e)||u(f.current.result=e)}let a=e.onError||f.current.options?.onError;throw a&&a(t,c),t}))},[]),p=t.useCallback(()=>{if(f.current.isMounted){let e=o(f.current.client);Object.assign(f.current,{mutationId:0,result:e}),u(e)}},[]);return t.useEffect(()=>{let e=f.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[m,{reset:p,...c}]}],76204)},37369,e=>{var r=e.i(91788);let t=r.forwardRef(function({title:e,titleId:t,...a},s){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["f",0,t],37369)},9356,e=>{var r=e.i(35113);e.s(["f",0,function(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,r.f)(e)))}],9356)},49543,e=>{var r=e.i(35113);e.s(["f",0,function(e,t){let a=(0,r.f)(e,t?.in);return a.setHours(0,0,0,0),a}])},35113,2848,98170,e=>{let r=Symbol.for("constructDateFrom");function t(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&r in e?e[r](t):e instanceof Date?new e.constructor(t):new Date(t)}e.s(["C",0,r,"_",0,864e5,"r",0,36e5,"z",0,6e4,"A",0,6048e5,"k",0,1440,"d",0,43200,"l",0,525600],2848),e.s(["f",0,t],98170),e.s(["f",0,function(e,r){return t(r||e,e)}],35113)},34980,(e,r,t)=>{var a=e.r(49957),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(e){return a.isMemo(e)?l:o[e.$$typeof]||s}o[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[a.Memo]=l;var d=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,p=Object.prototype;r.exports=function e(r,t,a){if("string"!=typeof t){if(p){var s=m(t);s&&s!==p&&e(r,s,a)}var l=c(t);u&&(l=l.concat(u(t)));for(var o=i(r),b=i(t),g=0;g<l.length;++g){var y=l[g];if(!n[y]&&!(a&&a[y])&&!(b&&b[y])&&!(o&&o[y])){var h=f(t,y);try{d(r,y,h)}catch(e){}}}}return r}},40563,(e,r,t)=>{var a="function"==typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103,n=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,o=a?Symbol.for("react.strict_mode"):60108,i=a?Symbol.for("react.profiler"):60114,d=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,u=a?Symbol.for("react.async_mode"):60111,f=a?Symbol.for("react.concurrent_mode"):60111,m=a?Symbol.for("react.forward_ref"):60112,p=a?Symbol.for("react.suspense"):60113,b=a?Symbol.for("react.suspense_list"):60120,g=a?Symbol.for("react.memo"):60115,y=a?Symbol.for("react.lazy"):60116,h=a?Symbol.for("react.block"):60121,x=a?Symbol.for("react.fundamental"):60117,v=a?Symbol.for("react.responder"):60118,k=a?Symbol.for("react.scope"):60119;function j(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case s:switch(e=e.type){case u:case f:case l:case i:case o:case p:return e;default:switch(e=e&&e.$$typeof){case c:case m:case y:case g:case d:return e;default:return r}}case n:return r}}}function w(e){return j(e)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=d,t.Element=s,t.ForwardRef=m,t.Fragment=l,t.Lazy=y,t.Memo=g,t.Portal=n,t.Profiler=i,t.StrictMode=o,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||j(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return j(e)===c},t.isContextProvider=function(e){return j(e)===d},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},t.isForwardRef=function(e){return j(e)===m},t.isFragment=function(e){return j(e)===l},t.isLazy=function(e){return j(e)===y},t.isMemo=function(e){return j(e)===g},t.isPortal=function(e){return j(e)===n},t.isProfiler=function(e){return j(e)===i},t.isStrictMode=function(e){return j(e)===o},t.isSuspense=function(e){return j(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===f||e===i||e===o||e===p||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===d||e.$$typeof===c||e.$$typeof===m||e.$$typeof===x||e.$$typeof===v||e.$$typeof===k||e.$$typeof===h)},t.typeOf=j},49957,(e,r,t)=>{e.i(50461),r.exports=e.r(40563)}],81910,(e,r,t)=>{let a="/currency/new";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(39503)]),r.hot&&r.hot.dispose(function(){window.__NEXT_P.push([a])})}]);
|