@unchainedshop/admin-ui 4.8.29 → 4.8.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-3L6EZQ6P.js +135 -0
- package/dist/chunk-5WPFHQZN.js +388 -0
- package/dist/chunk-BMDNY67T.js +22547 -0
- package/dist/{chunk-JAVEZY3Q.js → chunk-BOMSMJF2.js} +17 -5
- package/dist/{chunk-2RTX42IE.js → chunk-E77YIMGR.js} +2 -2
- package/dist/{chunk-XHOCXPD5.js → chunk-F6LBNV3H.js} +1 -1
- package/dist/chunk-FDHXLNZQ.js +44 -0
- package/dist/{chunk-XJBPMIC4.js → chunk-HERLM47Z.js} +81 -56
- package/dist/{chunk-MSPWYMDY.js → chunk-HJKRGBDG.js} +87 -58
- package/dist/{chunk-7PPOGX7R.js → chunk-I64TXIE7.js} +48 -11
- package/dist/chunk-ICJH36K4.js +326 -0
- package/dist/chunk-IWKDBADX.js +73 -0
- package/dist/{chunk-QNLGYFV7.js → chunk-IYKPRAWC.js} +4 -0
- package/dist/chunk-J23QSWDL.js +8 -0
- package/dist/chunk-KRIRF7F6.js +76 -0
- package/dist/chunk-OTXM2UCD.js +19 -0
- package/dist/chunk-PJLYVMUM.js +3308 -0
- package/dist/{chunk-SRAAKMWY.js → chunk-PUI5BIKO.js} +4 -2
- package/dist/chunk-QHR23GVH.js +1099 -0
- package/dist/chunk-VBO377AY.js +14 -0
- package/dist/chunk-VYEXPG3M.js +107 -0
- package/dist/{chunk-4VNS5WPM.js → chunk-WPLOTFGW.js} +7 -8
- package/dist/{chunk-VDKQGOMV.js → chunk-ZUOVKRKC.js} +118 -1
- package/dist/components/ui/Badge.d.ts.map +1 -1
- package/dist/components/ui/BreadCrumbs.d.ts.map +1 -1
- package/dist/components/ui/Loading.d.ts +8 -1
- package/dist/components/ui/Loading.d.ts.map +1 -1
- package/dist/components/ui/Pagination.d.ts.map +1 -1
- package/dist/components/ui/form/ChoicesField.d.ts.map +1 -1
- package/dist/components/ui/form/Combobox.d.ts.map +1 -1
- package/dist/components/ui/form/TextField.d.ts.map +1 -1
- package/dist/components/ui/form/index.d.ts +1 -0
- package/dist/components/ui/form/index.d.ts.map +1 -1
- package/dist/components/ui/index.d.ts +6 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/form.js +1808 -27501
- package/dist/gql/operation-types.d.ts +201 -5
- package/dist/gql/operation-types.d.ts.map +1 -1
- package/dist/gql/schema-types.d.ts +63 -7
- package/dist/gql/schema-types.d.ts.map +1 -1
- package/dist/hooks.js +13 -6
- package/dist/modal.js +11 -78
- package/dist/modules/Auth/AuthContext.d.ts +9 -0
- package/dist/modules/Auth/AuthContext.d.ts.map +1 -0
- package/dist/modules/Auth/useAuth.d.ts +6 -0
- package/dist/modules/Auth/useAuth.d.ts.map +1 -0
- package/dist/modules/accounts.js +183 -3
- package/dist/modules/assortment.js +83 -4
- package/dist/modules/common/components/AppContext.d.ts.map +1 -1
- package/dist/modules/common/components/FormWrapper.d.ts.map +1 -1
- package/dist/modules/common/components/LocaleWrapper.d.ts +7 -0
- package/dist/modules/common/components/LocaleWrapper.d.ts.map +1 -0
- package/dist/modules/common/components/MediaAvatar.d.ts +6 -0
- package/dist/modules/common/components/MediaAvatar.d.ts.map +1 -0
- package/dist/modules/common/components/SelectOptions.d.ts +17 -0
- package/dist/modules/common/components/SelectOptions.d.ts.map +1 -0
- package/dist/modules/common/components/Table.d.ts +25 -0
- package/dist/modules/common/components/Table.d.ts.map +1 -0
- package/dist/modules/common/components/TableCell.d.ts +12 -0
- package/dist/modules/common/components/TableCell.d.ts.map +1 -0
- package/dist/modules/common/components/TableRow.d.ts +10 -0
- package/dist/modules/common/components/TableRow.d.ts.map +1 -0
- package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -1
- package/dist/modules/common/data/miscellaneous.d.ts +1 -0
- package/dist/modules/common/data/miscellaneous.d.ts.map +1 -1
- package/dist/modules/common/utils/sharedContext.d.ts +9 -0
- package/dist/modules/common/utils/sharedContext.d.ts.map +1 -0
- package/dist/modules/country.js +1 -1
- package/dist/modules/currency.js +1 -1
- package/dist/modules/delivery-provider.js +1 -1
- package/dist/modules/enrollment.js +66 -9
- package/dist/modules/event.js +1 -1
- package/dist/modules/filter.js +52 -3
- package/dist/modules/forms/lib/FormContext.d.ts.map +1 -1
- package/dist/modules/language.js +1 -1
- package/dist/modules/modal/hooks/useModal.d.ts.map +1 -1
- package/dist/modules/modal/utils/ModalContext.d.ts.map +1 -1
- package/dist/modules/order.js +2 -2
- package/dist/modules/payment-providers.js +1 -1
- package/dist/modules/product-review.js +4 -4
- package/dist/modules/product.js +5000 -11
- package/dist/modules/quotation.js +8 -1
- package/dist/modules/token.js +3 -3
- package/dist/modules/warehousing-providers.js +1 -1
- package/dist/modules/work.js +23 -111
- package/dist/plugins.js +1 -1
- package/dist/providers.js +8 -5
- package/dist/sdk/hooks.d.ts +3 -0
- package/dist/sdk/hooks.d.ts.map +1 -1
- package/dist/shims/admin-ui-plugins.js +1 -1
- package/dist/shims/apollo-client-react.js +1 -1
- package/dist/shims/apollo-client.js +1 -1
- package/dist/shims/next-head.js +1 -1
- package/dist/shims/next-image.js +1 -1
- package/dist/shims/next-link.js +1 -1
- package/dist/shims/next-router.js +1 -1
- package/dist/shims/react-dom-client.js +1 -1
- package/dist/shims/react-dom.js +1 -1
- package/dist/shims/react-hook-form.js +1 -1
- package/dist/shims/react-intl.js +1 -1
- package/dist/shims/react-jsx-runtime.js +1 -1
- package/dist/shims/react-toastify.js +1 -1
- package/dist/shims/react.js +1 -1
- package/dist/theme.js +1 -1
- package/dist/ui.js +3533 -3127
- package/out/403/index.html +3 -2
- package/out/404/index.html +3 -2
- package/out/404.html +3 -2
- package/out/423/index.html +3 -2
- package/out/500/index.html +3 -2
- package/out/_next/static/4ESrB8YpR2n44PFePtbgX/_buildManifest.js +258 -0
- package/out/_next/static/chunks/0-_s79k4_7ei_.js +5 -0
- package/out/_next/static/chunks/00aks9rqke2x0.js +7 -0
- package/out/_next/static/chunks/00az81dk4vdda.js +54 -0
- package/out/_next/static/chunks/01e4gd649r2tq.js +7 -0
- package/out/_next/static/chunks/01j2wi94k90x0.js +5 -0
- package/out/_next/static/chunks/043i-g05cyvrd.js +1 -0
- package/out/_next/static/chunks/04kyktzbxprj0.js +61 -0
- package/out/_next/static/chunks/05p330iybjojg.js +44 -0
- package/out/_next/static/chunks/05qk8ozexvlxp.js +5 -0
- package/out/_next/static/chunks/0696190awbl-j.js +100 -0
- package/out/_next/static/chunks/06i50j458a7g5.js +12 -0
- package/out/_next/static/chunks/07o9g5hqfpvjc.js +12 -0
- package/out/_next/static/chunks/08o61gwabp3h1.js +33 -0
- package/out/_next/static/chunks/09avk6mqdin_1.js +116 -0
- package/out/_next/static/chunks/0_bvgo8ev4gs7.js +7 -0
- package/out/_next/static/chunks/0amj69l-d5-85.js +1 -0
- package/out/_next/static/chunks/0b05sca2hdcys.js +30 -0
- package/out/_next/static/chunks/0c3kwkqr9evm4.js +5 -0
- package/out/_next/static/chunks/0c4jv8pwvpxei.js +1 -0
- package/out/_next/static/chunks/0c7ljn9lo_0oh.js +5 -0
- package/out/_next/static/chunks/0dqw1oya___hr.js +1 -0
- package/out/_next/static/chunks/0ewr86ctcw7fx.js +1 -0
- package/out/_next/static/chunks/0jham55cr3rhy.js +81 -0
- package/out/_next/static/chunks/0lr7o7tyjmrmf.js +8 -0
- package/out/_next/static/chunks/0mx8opz23nwlb.js +5 -0
- package/out/_next/static/chunks/0n3ixknyc6_ma.js +1 -0
- package/out/_next/static/chunks/0o0e82-3pc7ur.js +78 -0
- package/out/_next/static/chunks/0ohk7l49gjm62.js +5 -0
- package/out/_next/static/chunks/0p31l6a9hynnt.js +6 -0
- package/out/_next/static/chunks/0p7said9rdor1.js +1 -0
- package/out/_next/static/chunks/0q2e8h8498pvo.js +4 -0
- package/out/_next/static/chunks/0qa-zbgmv-k3p.js +9 -0
- package/out/_next/static/chunks/0qj3xdz043z8l.js +12 -0
- package/out/_next/static/chunks/0skst735jufgh.js +71 -0
- package/out/_next/static/chunks/0t28q5fb2jp-6.js +8 -0
- package/out/_next/static/chunks/0tmamaq8exyij.js +1 -0
- package/out/_next/static/chunks/0uls4bq8a7gyh.js +18 -0
- package/out/_next/static/chunks/0ydy3ky15gx62.js +1 -0
- package/out/_next/static/chunks/0zh311lu9jf2x.js +5 -0
- package/out/_next/static/chunks/0zpyyygbqx3pf.js +152 -0
- package/out/_next/static/chunks/0zzoylv2rl1xu.js +3 -0
- package/out/_next/static/chunks/1---h4b693b81.js +1 -0
- package/out/_next/static/chunks/10m_etq9t2pkv.js +7 -0
- package/out/_next/static/chunks/11ehf3t7qzbua.js +4 -0
- package/out/_next/static/chunks/120k989vjsno4.js +1 -0
- package/out/_next/static/chunks/12yd8t4k6c0t1.js +1 -0
- package/out/_next/static/chunks/153ec1_-yt3jb.js +344 -0
- package/out/_next/static/chunks/16le3cqxj12u6.js +5 -0
- package/out/_next/static/chunks/16zxfacsu_jbq.js +1 -0
- package/out/_next/static/chunks/17fibl49qtd6c.js +8 -0
- package/out/_next/static/chunks/18xyj4i_i5lyn.js +6 -0
- package/out/_next/static/chunks/1_3e6x79fcyv3.js +5 -0
- package/out/_next/static/chunks/1_55km6vm5mc0.js +596 -0
- package/out/_next/static/chunks/1aej6iqnlr74p.js +1 -0
- package/out/_next/static/chunks/1asbed4hne69c.js +7 -0
- package/out/_next/static/chunks/1c60nzy_x4kez.js +277 -0
- package/out/_next/static/chunks/1c77vl6xdqfd4.js +15 -0
- package/out/_next/static/chunks/1da89agg-nacc.js +224 -0
- package/out/_next/static/chunks/1f7-0l47bx76m.js +13 -0
- package/out/_next/static/chunks/1fbsyczyh9hwh.js +1 -0
- package/out/_next/static/chunks/1g96s7-fwvokd.js +2 -0
- package/out/_next/static/chunks/1gqd9vrno0rq4.js +315 -0
- package/out/_next/static/chunks/1hih2cxmgqcd3.js +10 -0
- package/out/_next/static/chunks/1hviha1jcz_og.js +4 -0
- package/out/_next/static/chunks/1il9vuoxtb2_n.js +43 -0
- package/out/_next/static/chunks/1jaatdt0mlypl.js +16 -0
- package/out/_next/static/chunks/1l4g6_of_bbr8.js +5 -0
- package/out/_next/static/chunks/1lezxecnoaxnn.js +32 -0
- package/out/_next/static/chunks/1m27au_nmk8_k.js +71 -0
- package/out/_next/static/chunks/1m4fwgl1mj4d-.js +46 -0
- package/out/_next/static/chunks/1m85ne6w_6tei.js +1 -0
- package/out/_next/static/chunks/1ma82ip9shpkc.js +24 -0
- package/out/_next/static/chunks/1nbh1zkzirnuw.js +1 -0
- package/out/_next/static/chunks/1nohf8_cc6gmw.js +9 -0
- package/out/_next/static/chunks/1os6pvhjeb16o.js +1 -0
- package/out/_next/static/chunks/1qi5yjvzxspwv.js +15 -0
- package/out/_next/static/chunks/1rsexg6dg82f0.js +7 -0
- package/out/_next/static/chunks/1s9v5dndopkuz.js +12 -0
- package/out/_next/static/chunks/1sh2ogc7tcbu-.js +1 -0
- package/out/_next/static/chunks/1sksqjru86hlm.js +1 -0
- package/out/_next/static/chunks/1tkvi0wb-x3v8.js +16 -0
- package/out/_next/static/chunks/1u79pcgqjgjpq.js +1 -0
- package/out/_next/static/chunks/1uqiaqtv_0v2x.js +5 -0
- package/out/_next/static/chunks/1x8o-luxdxxk7.js +1 -0
- package/out/_next/static/chunks/1yjb7gogaf8po.js +31 -0
- package/out/_next/static/chunks/1zyhzessv0wtg.js +1 -0
- package/out/_next/static/chunks/2-4610weysas_.js +1 -0
- package/out/_next/static/chunks/2-kvt9e7irukm.js +1 -0
- package/out/_next/static/chunks/2-pl31kdikt3k.js +5 -0
- package/out/_next/static/chunks/20c4_1i5r3kkz.js +1 -0
- package/out/_next/static/chunks/20f2gs8iua6fk.js +1 -0
- package/out/_next/static/chunks/20zdaln201w8j.js +277 -0
- package/out/_next/static/chunks/21l46nbaop06z.js +39 -0
- package/out/_next/static/chunks/22-o32hlte36e.js +130 -0
- package/out/_next/static/chunks/231j2_p-ha14w.js +7 -0
- package/out/_next/static/chunks/23s2f7_-ol94s.js +8 -0
- package/out/_next/static/chunks/26_mx-ritu68j.js +24 -0
- package/out/_next/static/chunks/26ckmxeluyknq.js +1 -0
- package/out/_next/static/chunks/26r0y7ldf3iqs.js +6 -0
- package/out/_next/static/chunks/27fzoozwycagi.js +6 -0
- package/out/_next/static/chunks/27jmq7a-vh0b4.js +7 -0
- package/out/_next/static/chunks/283567a82x9qi.js +149 -0
- package/out/_next/static/chunks/29he8uukp5s4u.js +31 -0
- package/out/_next/static/chunks/2adglo0sf0jcg.js +905 -0
- package/out/_next/static/chunks/{2kzyda4a6mqut.js → 2ajr0rk0_yax6.js} +1 -1
- package/out/_next/static/chunks/2b4ewxxz6f462.js +7 -0
- package/out/_next/static/chunks/{3zqfchpzqxd92.css → 2bh2dv7j9m8c8.css} +1 -1
- package/out/_next/static/chunks/2bi8v13lm76lr.js +95 -0
- package/out/_next/static/chunks/2burvpf9877y_.js +44 -0
- package/out/_next/static/chunks/2cj703xtrf5i6.js +46 -0
- package/out/_next/static/chunks/2cj8g3fxmitaa.js +1 -0
- package/out/_next/static/chunks/2ec7xatyld40t.js +7 -0
- package/out/_next/static/chunks/2ho4591ngh3y2.js +61 -0
- package/out/_next/static/chunks/2hoi6cb1lromr.js +4 -0
- package/out/_next/static/chunks/2i5k6tlwd58hp.js +1 -0
- package/out/_next/static/chunks/2iy0jr00qhq-q.js +5 -0
- package/out/_next/static/chunks/2jonbba27xy3u.js +14 -0
- package/out/_next/static/chunks/2l8gepfm4kyjp.js +1 -0
- package/out/_next/static/chunks/2m0rrts8gwqwp.js +1 -0
- package/out/_next/static/chunks/2m_u12ggzosat.js +5 -0
- package/out/_next/static/chunks/2mdns56l5antm.js +5 -0
- package/out/_next/static/chunks/2mrbytgs3uetd.js +4 -0
- package/out/_next/static/chunks/2p9gwjxeui1zd.js +71 -0
- package/out/_next/static/chunks/2pfhy9qy_cijn.js +5 -0
- package/out/_next/static/chunks/2q5k4rozyr2wt.js +4 -0
- package/out/_next/static/chunks/2qx8nnki_qv5v.js +171 -0
- package/out/_next/static/chunks/2r_rj84l3cy7r.js +119 -0
- package/out/_next/static/chunks/2rb1-3t3-sv5s.js +8 -0
- package/out/_next/static/chunks/2rmgaa88-4bpb.js +227 -0
- package/out/_next/static/chunks/2swxmzb-xk_bo.js +108 -0
- package/out/_next/static/chunks/2t0biwx5e_4w_.js +1 -0
- package/out/_next/static/chunks/2ts3v72jkbcdr.js +7 -0
- package/out/_next/static/chunks/2vfexvltv2avy.js +5 -0
- package/out/_next/static/chunks/2vveotzevnkfp.js +1 -0
- package/out/_next/static/chunks/2wkg65dtx56je.js +155 -0
- package/out/_next/static/chunks/2xixk0t9e9mnw.js +1 -0
- package/out/_next/static/chunks/2xz7hnr9ikqzq.js +7 -0
- package/out/_next/static/chunks/2y1lq1efnvcdt.js +23 -0
- package/out/_next/static/chunks/2ziasg8l_c9n7.js +5 -0
- package/out/_next/static/chunks/3-ve59izq9j-p.js +1 -0
- package/out/_next/static/chunks/3-wsablhqgzoa.js +1 -0
- package/out/_next/static/chunks/30ppb2wc-m4ph.js +1 -0
- package/out/_next/static/chunks/336k08jwyc5i-.js +1 -0
- package/out/_next/static/chunks/33d061qpkafqm.js +39 -0
- package/out/_next/static/chunks/33fyy6d5mo55_.js +8 -0
- package/out/_next/static/chunks/33kh18frqc3b1.js +5 -0
- package/out/_next/static/chunks/33v05ol-ire9s.js +10 -0
- package/out/_next/static/chunks/33yzdcbu7w60l.js +13 -0
- package/out/_next/static/chunks/348l8p7-vo4l5.js +63 -0
- package/out/_next/static/chunks/35hu5vin0swdf.js +41 -0
- package/out/_next/static/chunks/37a6yquh875rn.js +39 -0
- package/out/_next/static/chunks/3_2i9du5-ffrp.js +59 -0
- package/out/_next/static/chunks/3_84h3z_tewmg.js +145 -0
- package/out/_next/static/chunks/3bo7uiy-wh63m.js +108 -0
- package/out/_next/static/chunks/3c-an5ft_3emc.js +1 -0
- package/out/_next/static/chunks/3d_222ci0_30_.js +41 -0
- package/out/_next/static/chunks/3dldch03dfaed.js +1 -0
- package/out/_next/static/chunks/3eedy49gsvv_t.js +1 -0
- package/out/_next/static/chunks/3fayuejnrsd90.js +15 -0
- package/out/_next/static/chunks/3fqonijzsxy8u.js +28 -0
- package/out/_next/static/chunks/3g1ale0hytu9q.js +12 -0
- package/out/_next/static/chunks/3jxeyjg2g7w94.js +1 -0
- package/out/_next/static/chunks/3k3gvr7-e3g_s.js +5 -0
- package/out/_next/static/chunks/3kwoyyxi_-q7m.js +1 -0
- package/out/_next/static/chunks/3le1bywe19_u9.js +1 -0
- package/out/_next/static/chunks/3lku4-9kpf-mj.js +267 -0
- package/out/_next/static/chunks/3lz5h1tw50wr_.js +54 -0
- package/out/_next/static/chunks/3oq-khgfpo0nx.js +39 -0
- package/out/_next/static/chunks/3ps25ocfalcap.js +43 -0
- package/out/_next/static/chunks/3q3m075m4bxz1.js +2 -0
- package/out/_next/static/chunks/3qzrrjb48t2w3.js +119 -0
- package/out/_next/static/chunks/3r0i-7zjuz9i1.js +6 -0
- package/out/_next/static/chunks/3rgn5xwtr51ul.js +7 -0
- package/out/_next/static/chunks/3ridg_u19b6ih.js +8 -0
- package/out/_next/static/chunks/3skzk-w2ytvku.js +5 -0
- package/out/_next/static/chunks/3srw10h0hcztd.js +68 -0
- package/out/_next/static/chunks/3tgrftdet8sna.js +15 -0
- package/out/_next/static/chunks/3uax_eq1kjjta.js +1 -0
- package/out/_next/static/chunks/3uj94afpsi6cs.js +1 -0
- package/out/_next/static/chunks/3vgurvjr6hkyv.js +4 -0
- package/out/_next/static/chunks/3viepyovs19ub.js +23 -0
- package/out/_next/static/chunks/3vnzp3n_wd3j_.js +1 -0
- package/out/_next/static/chunks/3w8h5lxnd0z4z.js +1 -0
- package/out/_next/static/chunks/3wh4xa9dnw-55.js +194 -0
- package/out/_next/static/chunks/3wlvio5id54ow.js +5 -0
- package/out/_next/static/chunks/3wzvscqui-9ml.js +23 -0
- package/out/_next/static/chunks/3y8h3g1tqukrv.js +36 -0
- package/out/_next/static/chunks/3zcilnj6p9-t5.js +1 -0
- package/out/_next/static/chunks/3zmmdm68s05-t.js +217 -0
- package/out/_next/static/chunks/40l5d7o95aw37.js +4 -0
- package/out/_next/static/chunks/417kn9hki8k81.js +33 -0
- package/out/_next/static/chunks/42mofxcd0l7qi.js +1 -0
- package/out/_next/static/chunks/439tz_ubj8h-g.js +342 -0
- package/out/_next/static/chunks/43hfssep7ry-z.js +5 -0
- package/out/_next/static/chunks/45bcpjurhxb-j.js +1 -0
- package/out/_next/static/chunks/turbopack-2c3mg3r-05n1w.js +1 -0
- package/out/_offline/index.html +3 -2
- package/out/account/forgot-password/index.html +3 -2
- package/out/account/index.html +3 -2
- package/out/assortments/AssortmentDetailPage/index.html +3 -2
- package/out/assortments/index.html +3 -2
- package/out/assortments/new/index.html +3 -2
- package/out/copilot/index.html +3 -2
- package/out/country/CountryDetailPage/index.html +3 -2
- package/out/country/index.html +3 -2
- package/out/country/new/index.html +3 -2
- package/out/currency/CurrencyDetailPage/index.html +3 -2
- package/out/currency/index.html +3 -2
- package/out/currency/new/index.html +3 -2
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -2
- package/out/delivery-provider/index.html +3 -2
- package/out/delivery-provider/new/index.html +3 -2
- package/out/enrollments/EnrollmentDetailPage/index.html +3 -2
- package/out/enrollments/index.html +3 -2
- package/out/events/EventDetailPage/index.html +3 -2
- package/out/events/index.html +3 -2
- package/out/exports/index.html +3 -2
- package/out/external/index.html +3 -2
- package/out/filters/FilterDetailPage/index.html +3 -2
- package/out/filters/index.html +3 -2
- package/out/filters/new/index.html +3 -2
- package/out/index.html +3 -2
- package/out/install/index.html +3 -2
- package/out/language/LanguageDetailPage/index.html +3 -2
- package/out/language/index.html +3 -2
- package/out/language/new/index.html +3 -2
- package/out/log-in/index.html +3 -2
- package/out/orders/OrderDetailPage/index.html +3 -2
- package/out/orders/index.html +3 -2
- package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -2
- package/out/payment-provider/index.html +3 -2
- package/out/payment-provider/new/index.html +3 -2
- package/out/products/ProductDetailPage/index.html +3 -2
- package/out/products/index.html +3 -2
- package/out/products/new/index.html +3 -2
- package/out/quotations/QuotationDetailPage/index.html +3 -2
- package/out/quotations/index.html +3 -2
- package/out/reset-password/index.html +3 -2
- package/out/sign-up/index.html +3 -2
- package/out/styleguide/index.html +3 -2
- package/out/tokens/TokenDetailPage/index.html +3 -2
- package/out/tokens/index.html +3 -2
- package/out/users/UserDetailPage/index.html +3 -2
- package/out/users/index.html +3 -2
- package/out/users/new/index.html +3 -2
- package/out/verify-email/index.html +3 -2
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -2
- package/out/warehousing-provider/index.html +3 -2
- package/out/warehousing-provider/new/index.html +3 -2
- package/out/works/WorkDetailPage/index.html +3 -2
- package/out/works/WorkQueueListView/index.html +3 -2
- package/out/works/index.html +3 -2
- package/out/works/management/index.html +3 -2
- package/package.json +8 -8
- package/dist/chunk-F2TCVEQX.js +0 -514
- package/dist/chunk-KCN7DDPH.js +0 -1116
- package/dist/chunk-RORNAN2J.js +0 -12
- package/dist/chunk-RVG6IOFC.js +0 -11
- package/dist/chunk-YZGQJJCD.js +0 -37
- package/out/_next/static/4-xf4wPkZc5rcBq3jUTDg/_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/1wvicoevgxhkk.js +0 -14
- 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/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/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/2we4fnghpvprw.js +0 -190
- 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-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-1zn9gl4fpayoc.js +0 -1
- package/out/_next/static/chunks/turbopack-21vayl2_q4r5u.js +0 -1
- package/out/_next/static/chunks/turbopack-23nr2ioaqw90j.js +0 -1
- package/out/_next/static/chunks/turbopack-23u97wxsuqiqb.js +0 -1
- package/out/_next/static/chunks/turbopack-24ylsu2au7hg1.js +0 -1
- package/out/_next/static/chunks/turbopack-28_dvdmt6lvhn.js +0 -1
- package/out/_next/static/chunks/turbopack-2bo7hmw4eirxu.js +0 -1
- package/out/_next/static/chunks/turbopack-2dk8ur1fvwxzj.js +0 -1
- package/out/_next/static/chunks/turbopack-2e_wy0ffi64id.js +0 -1
- package/out/_next/static/chunks/turbopack-2fuk9oepxr5n0.js +0 -1
- package/out/_next/static/chunks/turbopack-2g2viapamsvwe.js +0 -1
- package/out/_next/static/chunks/turbopack-2ga09m38zacev.js +0 -1
- package/out/_next/static/chunks/turbopack-2pxtve7lryqre.js +0 -1
- package/out/_next/static/chunks/turbopack-2qbfd_-7v5dbo.js +0 -1
- package/out/_next/static/chunks/turbopack-2rz_y4ejrvafp.js +0 -1
- package/out/_next/static/chunks/turbopack-2u0ls0liblo_9.js +0 -1
- package/out/_next/static/chunks/turbopack-2u_328z53ed9p.js +0 -1
- package/out/_next/static/chunks/turbopack-2xfom16ggx1i3.js +0 -1
- package/out/_next/static/chunks/turbopack-2ycfwit0p-fkf.js +0 -1
- package/out/_next/static/chunks/turbopack-2yekm5ij2g-aw.js +0 -1
- package/out/_next/static/chunks/turbopack-3-w-v8og1lok2.js +0 -1
- package/out/_next/static/chunks/turbopack-30qkgccwlkv7n.js +0 -1
- package/out/_next/static/chunks/turbopack-36bl9-rerhcfg.js +0 -1
- package/out/_next/static/chunks/turbopack-37a6lyjyz7fts.js +0 -1
- package/out/_next/static/chunks/turbopack-37lb9ujef-ujm.js +0 -1
- package/out/_next/static/chunks/turbopack-39nctu3yv9iv4.js +0 -1
- package/out/_next/static/chunks/turbopack-3_mmmbs60vr14.js +0 -1
- package/out/_next/static/chunks/turbopack-3_o3qz69ih0uu.js +0 -1
- package/out/_next/static/chunks/turbopack-3cv39r7v3s2gr.js +0 -1
- package/out/_next/static/chunks/turbopack-3cv3hgsoo_z1k.js +0 -1
- package/out/_next/static/chunks/turbopack-3pgmc-lv74ewz.js +0 -1
- package/out/_next/static/chunks/turbopack-3uj40sz7i7jg0.js +0 -1
- package/out/_next/static/chunks/turbopack-3v4nxmdavly34.js +0 -1
- package/out/_next/static/chunks/turbopack-3vfm6fp92up6y.js +0 -1
- package/out/_next/static/chunks/turbopack-3vyi51cuxeowy.js +0 -1
- package/out/_next/static/chunks/turbopack-3w26eu86co02z.js +0 -1
- package/out/_next/static/chunks/turbopack-3zc0h1216mtm2.js +0 -1
- package/out/_next/static/chunks/turbopack-4166pmk5_y_4x.js +0 -1
- package/out/_next/static/chunks/turbopack-431y1sh-m_0mp.js +0 -1
- /package/out/_next/static/{4-xf4wPkZc5rcBq3jUTDg → 4ESrB8YpR2n44PFePtbgX}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{4-xf4wPkZc5rcBq3jUTDg → 4ESrB8YpR2n44PFePtbgX}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,56599,e=>{var t=e.i(91398),s=e.i(90645),a=e.i(72043),r=e.i(91788),l=e.i(69322),d=e.i(59080),i=e.i(76204),n=e.i(21649);let o=d.f`
|
|
2
|
+
mutation ExportToken(
|
|
3
|
+
$tokenId: ID!
|
|
4
|
+
$quantity: Int! = 1
|
|
5
|
+
$recipientWalletAddress: String!
|
|
6
|
+
) {
|
|
7
|
+
exportToken(
|
|
8
|
+
tokenId: $tokenId
|
|
9
|
+
quantity: $quantity
|
|
10
|
+
recipientWalletAddress: $recipientWalletAddress
|
|
11
|
+
) {
|
|
12
|
+
...TokenFragment
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
${n.f}
|
|
16
|
+
`,c=({isOpen:e,addresses:s,cancel:a,onExport:d})=>{let[i,n]=(0,r.useState)(""),{formatMessage:o}=(0,l.S)();return e&&(0,t.jsxs)("div",{className:"relative z-10","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",children:[(0,t.jsx)("div",{className:"fixed inset-0 bg-slate-500 bg-opacity/75 transition-opacity"}),(0,t.jsx)("div",{className:"fixed inset-0 z-10 overflow-y-auto",children:(0,t.jsx)("div",{className:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0",children:(0,t.jsxs)("div",{className:"relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6",children:[(0,t.jsx)("div",{children:(0,t.jsx)("fieldset",{className:"space-y-5",children:s?.map(e=>(0,t.jsxs)("div",{className:"relative flex items-start",children:[(0,t.jsx)("div",{className:"flex h-5 items-center",children:(0,t.jsx)("input",{id:e.address,name:"addresses",value:e.address,onChange:()=>{n(e.address)},checked:i?.toLowerCase()===e.address?.toLowerCase(),type:"checkbox",className:"h-4 w-4 rounded-sm border-slate-300 dark:border-slate-600 bg-white dark:!bg-slate-800 text-slate-950 focus:ring-slate-900"})}),(0,t.jsx)("div",{className:"ml-3 text-sm",children:(0,t.jsx)("label",{htmlFor:"comments",className:"font-medium text-slate-700",children:e.address})})]},e.address))})}),(0,t.jsxs)("div",{className:"mt-4",children:[(0,t.jsx)("label",{htmlFor:"Address",className:"block text-sm font-medium text-slate-700",children:o({id:"or_manually_enter_address",defaultMessage:"Or enter address manually"})}),(0,t.jsx)("div",{className:"mt-1",children:(0,t.jsx)("input",{type:"text",onChange:e=>n(e.target.value),value:i,name:"Address",id:"Address",className:"block w-full rounded-md border-slate-300 shadow-xs focus:border-slate-900 focus:ring-slate-900 sm:text-sm",placeholder:"0xF5F72AE7fa1fa990ebaF163208Ed7aD6a3f42DEA"})})]}),(0,t.jsxs)("div",{className:"mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:()=>d(i),className:"inline-flex w-full justify-center rounded-md border border-transparent bg-slate-950 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-slate-950 focus:outline-hidden focus:ring-2 focus:ring-slate-900 focus:ring-offset-2 sm:col-start-2 sm:text-sm",children:o({id:"export",defaultMessage:"Export"})}),(0,t.jsx)("button",{type:"button",onClick:a,className:"mt-3 inline-flex w-full justify-center rounded-md border border-slate-300 bg-white px-4 py-2 text-base font-medium text-slate-700 shadow-xs hover:bg-slate-50 focus:outline-hidden focus:ring-2 focus:ring-slate-900 focus:ring-offset-2 sm:col-start-1 sm:mt-0 sm:text-sm",children:o({id:"cancel",defaultMessage:"Cancel"})})]})]})})})]})};e.s(["f",0,({tokenId:e,tokenStatus:d,addresses:n=[]})=>{let{exportToken:u}=(()=>{let[e]=(0,i.f)(o);return{exportToken:async({quantity:t,recipientWalletAddress:s,tokenId:a})=>e({variables:{quantity:t,recipientWalletAddress:s,tokenId:a}})}})(),{formatMessage:m}=(0,l.S)(),[f,x]=(0,r.useState)(!1),h=async t=>{await u({tokenId:e,recipientWalletAddress:t}),x(!1)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c,{isOpen:f,cancel:()=>{x(!1)},onExport:h,addresses:n}),"DECENTRALIZED"!==d&&(0,t.jsxs)("button",{type:"button",onClick:()=>x(!0),disabled:"EXPORTING"===d,className:(0,a.default)(" text-center inline-flex truncate rounded-md border border-transparent bg-slate-950 px-5 py-1 text-base font-medium text-white shadow-xs hover:bg-slate-950 focus:outline-hidden focus:ring-2 focus:ring-slate-900 focus:ring-offset-2",{"bg-slate-400 hover:bg-slate-500":"EXPORTING"===d}),children:[(0,t.jsx)(s.f,{className:"w-6 h-6 mr-2"}),m("CENTRALIZED"===d?{id:"export",defaultMessage:"Export"}:{id:"exporting",defaultMessage:"Exporting..."})]})]})}],56599)},97351,e=>{var t=e.i(10576),s=e.i(59080),a=e.i(76204);let r=s.f`
|
|
17
|
+
mutation CreateWebAuthnCredentialCreationOptions($username: String!) {
|
|
18
|
+
createWebAuthnCredentialCreationOptions(username: $username)
|
|
19
|
+
}
|
|
20
|
+
`,l=e=>window.btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");e.s(["f",0,()=>{let{createWebAuthnCredentialCreationOptions:e}=(()=>{let[e]=(0,a.f)(r);return{createWebAuthnCredentialCreationOptions:async({username:t})=>e({variables:{username:t}})}})();return{generateWebAuthCredentials:async({username:s})=>{let{data:a}=await e({username:s}),{createWebAuthnCredentialCreationOptions:r}=a,d=new TextEncoder;r.challenge=(0,t.f)(r.challenge),r.user={id:d.encode(s),name:s,displayName:s};let i=await navigator.credentials.create({publicKey:r}),n=l(i.response.attestationObject),o=l(i.response.clientDataJSON),c=l(i.rawId),u=i.response.getAuthenticatorData?l(i.response.getAuthenticatorData()):"",m=i.response.getPublicKey?l(i.response.getPublicKey()):"";return{id:c,rawId:c,response:{clientDataJSON:o,attestationObject:n,authenticatorData:u,publicKey:m,publicKeyAlgorithm:i.response.getPublicKeyAlgorithm?i.response.getPublicKeyAlgorithm():-7,transports:i.response.getTransports?i.response.getTransports():["internal"]},authenticatorAttachment:i.authenticatorAttachment||"platform",clientExtensionResults:i.getClientExtensionResults?.()||{},type:"public-key",user:{id:s,name:s,displayName:s}}}}}],97351)},41215,e=>{e.s(["f",0,class extends Error{constructor(e){super(e),this.name="CustomError"}}])},44926,e=>{var t=e.i(91398),s=e.i(72043),a=e.i(69322);e.s(["f",0,({isActive:e,activeText:r=null,activeClassName:l="",inActiveClassName:d="",inActiveText:i=null,containerClassName:n=""})=>{let{formatMessage:o}=(0,a.S)();return(0,t.jsx)("span",{className:(0,s.default)("",n),children:e?(0,t.jsx)("span",{className:(0,s.default)("inline-flex items-center border rounded-full px-2.5 py-0.5 text-sm font-medium bg-emerald-50 dark:bg-emerald-900/30 text-emerald-700 dark:text-emerald-300 border-emerald-200 dark:border-emerald-800 uppercase",l),children:r||o({id:"active",defaultMessage:"Active"})}):(0,t.jsx)("span",{className:(0,s.default)("inline-flex items-center border rounded-full px-2.5 py-0.5 text-sm font-medium bg-amber-100 dark:bg-yellow-900/30 text-yellow-800 dark:text-yellow-300 border-amber-400 dark:border-yellow-800 uppercase",d),children:i||o({id:"inactive",defaultMessage:"In-Active"})})})}])},77043,e=>{var t=e.i(91398),s=e.i(72043),a=e.i(69322),r=e.i(35065),l=e.i(22315);e.s(["f",0,({file:e,className:d=""})=>{let{formatMessage:i}=(0,a.S)();return(0,t.jsx)("div",{className:(0,s.default)("h-10 w-10 shrink-0",d),children:e?(0,t.jsx)(r.f,{className:"relative h-10 w-10 rounded-sm",src:e.url,width:100,height:100,alt:i({id:"image_not_available",defaultMessage:"Image not available"})}):(0,t.jsx)(l.f,{})})}])},22315,e=>{var t=e.i(91398),s=e.i(81618),a=e.i(72043);e.s(["f",0,({className:e="",containerClassName:r="",Icon:l=null})=>(0,t.jsx)("span",{className:(0,a.default)("text-slate-400",r),children:l||(0,t.jsx)(s.f,{className:(0,a.default)(e)})})])},20495,e=>{var t=e.i(91398),s=e.i(69322),a=e.i(2765);e.s(["f",0,({inputText:e=null,onInputChange:r,defaultValue:l})=>{let{formatMessage:d}=(0,s.S)(),i=(0,a.f)(200)(r);return(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("label",{htmlFor:"search",className:"sr-only",children:e||d({id:"search",defaultMessage:"Search"})}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-slate-400 dark:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"})})}),(0,t.jsx)("input",{onChange:e=>i(e.target.value),id:"search",defaultValue:l,name:"search",className:"block w-full rounded-md border-1 border-slate-300 dark:border-slate-700 text-slate-900 dark:bg-slate-900 dark:text-slate-200 py-3 pl-10 px-4 shadow-xs placeholder:text-slate-400 dark:placeholder:text-slate-400 focus:ring-2 focus:ring-slate-800 focus:outline-hidden sm:text-sm",placeholder:d({id:"search",defaultMessage:"Search"}),type:"search"})]})]})}])},10576,e=>{e.s(["f",0,e=>{if(window.atob&&Uint8Array){let t=e.replace(/-/g,"+").replace(/_/g,"/"),s=t+"=".repeat((4-t.length%4)%4),a=window.atob(s),r=a.length,l=new Uint8Array(r);for(let e=0;e<r;e+=1)l[e]=a.charCodeAt(e);return l.buffer}throw Error("The atob and Uint8Array methods are not available")}])},15356,e=>{e.s(["f",0,e=>e?`${e.substr(0,6)}...${e.substr(-4,4)}`:"0x0"])},77930,70081,e=>{var t=e.i(91398),s=e.i(69322),a=e.i(8918),r=e.i(41158),l=e.i(65153),d=e.i(84818),i=e.i(1880),n=e.i(77043),o=e.i(93380);let c={INITIAL:"orange",PAUSED:"yellow",TERMINATED:"amber",ACTIVE:"emerald"},u=({enrollment:e,showUser:u})=>{let{formatMessage:m}=(0,s.S)(),{formatDateTime:f}=(0,d.f)();return(0,t.jsxs)(a.f.Row,{children:[(0,t.jsx)(a.f.Cell,{children:(0,t.jsx)("div",{className:"text-sm",children:(0,t.jsx)(r.default,{href:`/enrollments?enrollmentId=${e._id}`,className:"font-medium text-slate-800 dark:text-slate-700",children:e?.enrollmentNumber||e._id?.substr(0,10)})})}),(0,t.jsx)(a.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:f(e.created,{dateStyle:"medium",timeStyle:"medium"})})}),(0,t.jsx)(a.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:e.isExpired?(0,t.jsx)(l.f,{text:m({id:"expired",defaultMessage:"Expired"}),color:"amber"}):f(e.expires,{dateStyle:"medium",timeStyle:"medium"})})}),u&&e.user&&(0,t.jsx)(a.f.Cell,{children:(0,t.jsxs)(r.default,{href:`/users?userId=${e.user._id}`,className:"flex items-center text-sm text-slate-800 dark:text-slate-700 hover:text-decoration",children:[(0,t.jsx)("span",{className:"inline-block h-9 w-9 rounded-full",children:(0,t.jsx)(n.f,{file:e?.user?.avatar,className:"mr-3"})}),(0,t.jsx)("span",{className:"ml-2",children:(0,o.f)(e.user)})]})}),(0,t.jsx)(a.f.Cell,{children:(0,t.jsxs)(r.default,{href:`/products?slug=${(0,i.U)(e.plan.product)}`,className:"flex items-center text-sm text-slate-800 dark:text-slate-700 hover:text-decoration",children:[(0,t.jsx)(n.f,{file:e?.plan?.product?.media?.file,className:"mr-3"}),(0,t.jsx)("span",{className:"ml-2",children:e?.plan?.product?.texts?.title})]})}),(0,t.jsx)(a.f.Cell,{children:(0,t.jsx)(l.f,{text:e?.status,color:c[e.status],square:!0})})]})};e.s(["f",0,({enrollments:e,showUser:r=null,sortable:l=!1})=>{let{formatMessage:d}=(0,s.S)();return(0,t.jsxs)(a.f,{className:"min-w-full",children:[e?.map(e=>(0,t.jsxs)(a.f.Row,{header:!0,enablesort:l,children:[(0,t.jsx)(a.f.Cell,{sortKey:"enrollmentNumber",children:d({id:"enrollment_number",defaultMessage:"Enrollment number"})}),(0,t.jsx)(a.f.Cell,{sortKey:"created",children:d({id:"created",defaultMessage:"Created"})}),(0,t.jsx)(a.f.Cell,{children:d({id:"expires",defaultMessage:"Expires"})}),r&&(0,t.jsx)(a.f.Cell,{children:d({id:"user",defaultMessage:"User"})}),(0,t.jsx)(a.f.Cell,{children:d({id:"product",defaultMessage:"Product"})}),(0,t.jsx)(a.f.Cell,{sortKey:"status",children:d({id:"status",defaultMessage:"Status"})})]},e._id)),e?.map(e=>(0,t.jsx)(u,{showUser:!0,enrollment:e},`${e?._id}-body`))]})}],77930);var m=e.i(59080);let f=m.f`
|
|
21
|
+
fragment EnrollmentFragment on Enrollment {
|
|
22
|
+
_id
|
|
23
|
+
country {
|
|
24
|
+
_id
|
|
25
|
+
isoCode
|
|
26
|
+
}
|
|
27
|
+
currency {
|
|
28
|
+
_id
|
|
29
|
+
isoCode
|
|
30
|
+
}
|
|
31
|
+
enrollmentNumber
|
|
32
|
+
updated
|
|
33
|
+
status
|
|
34
|
+
created
|
|
35
|
+
expires
|
|
36
|
+
isExpired
|
|
37
|
+
periods {
|
|
38
|
+
start
|
|
39
|
+
end
|
|
40
|
+
isTrial
|
|
41
|
+
}
|
|
42
|
+
payment {
|
|
43
|
+
provider {
|
|
44
|
+
_id
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
delivery {
|
|
48
|
+
provider {
|
|
49
|
+
_id
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
plan {
|
|
53
|
+
product {
|
|
54
|
+
_id
|
|
55
|
+
media {
|
|
56
|
+
_id
|
|
57
|
+
file {
|
|
58
|
+
_id
|
|
59
|
+
url
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
texts {
|
|
63
|
+
_id
|
|
64
|
+
title
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
quantity
|
|
68
|
+
}
|
|
69
|
+
user {
|
|
70
|
+
_id
|
|
71
|
+
username
|
|
72
|
+
name
|
|
73
|
+
avatar {
|
|
74
|
+
_id
|
|
75
|
+
url
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
`;e.s(["f",0,f],70081)},21056,e=>{var t=e.i(59080),s=e.i(76204);let a=t.f`
|
|
80
|
+
mutation SendEnrollmentEmail($email: String!) {
|
|
81
|
+
sendEnrollmentEmail(email: $email) {
|
|
82
|
+
success
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
`;e.s(["f",0,()=>{let[e]=(0,s.f)(a);return{sendEnrollmentEmail:async({email:t})=>e({variables:{email:t}})}}])},38247,e=>{var t=e.i(91398),s=e.i(72043),a=e.i(60741),r=e.i(82226),l=e.i(29691);let d=e=>{let t=new Date(e);return isNaN(t.getTime())?null:t.toISOString().split("T")[0]};e.s(["f",0,({validators:e=[],className:i,parseDate:n=d,...o})=>{let c=(0,a.f)({validators:[...e,r.G],...o}),u=c.value?new Date(c.value).toISOString().split("T")[0]:"";return(0,t.jsx)(l.f,{...c,className:o.containerClassName,children:(0,t.jsx)("input",{type:"date",id:c.id,name:c.name,disabled:c.disabled,className:(0,s.default)("relative mt-0 block w-full appearance-none rounded-md rounded-b-md border-1 border-slate-300 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 dark:text-slate-200 dark:bg-slate-900 placeholder-slate-400 shadow-xs focus:z-10 focus:outline-hidden focus:ring-2 focus:ring-slate-800",i,{"border-rose-700 placeholder:text-rose-300":!!c.error}),onChange:e=>c.setValue(e.target.value),value:u,placeholder:c.placeholder,autoComplete:"off",...o})})}])},72094,e=>{var t=e.i(91398),s=e.i(91788),a=e.i(61898);let r=(e,t="")=>Object.fromEntries(Object.entries(e).reduce((e=[],[a,l])=>"string"==typeof l||s.default.isValidElement(l)?[...e,[`${t}${a}`,l]]:[...Object.entries(r(Object.assign({},...l),`${t}${a}.`)),...e],[])),l=({submitError:e="",fieldErrors:a=[]})=>(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(r(a)).map(([e,a])=>(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:s.default.isValidElement(a)?a:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:a}})})},e))]})});e.s(["f",0,({displayFieldErrors:e=!1})=>{let{submitError:s,formik:r}=(0,a.f)(),d=r?.errors;return(s||e)&&(0,t.jsx)(l,{submitError:s,fieldErrors:e&&d})}])},68095,e=>{var t=e.i(91398),s=e.i(72043),a=e.i(91788),r=e.i(45229);e.s(["f",0,({autoComplete:e="on",...l})=>{let[d,i]=(0,a.useState)(!1),n=e=>{e.preventDefault(),i(!d)};return(0,t.jsxs)("div",{className:(0,s.default)("relative",l.className),children:[(0,t.jsx)(r.f,{autoComplete:e||"on",name:"password",...l,type:d?"text":"password"}),(0,t.jsx)("span",{role:"button",tabIndex:-1,"aria-label":"toggle password visibility",className:"absolute translate-y-[-137%] outline-hidden block right-3",onClick:n,onKeyUp:n,children:d?(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 stroke-slate-700",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]}):(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 stroke-slate-700",fill:"none",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})})})]})}])},73419,e=>{var t=e.i(91398),s=e.i(72043),a=e.i(60741),r=e.i(29691);e.s(["f",0,e=>{let{options:l,...d}=(0,a.f)(e),{className:i}=e||{className:""};return(0,t.jsx)(r.f,{...d,children:(0,t.jsx)("div",{className:"select-wrap",children:(0,t.jsxs)("select",{className:(0,s.default)("block w-full dark:bg-slate-900 dark:text-white rounded-md border-1 border-slate-300 dark:border-slate-700 py-2.5 pl-3 pr-10 text-base text-black shadow-xs focus:outline-hidden focus:ring-2 focus:ring-slate-800 sm:text-sm",i,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!d.error}),disabled:d.disabled,id:d.name,name:d.name,onChange:d.onChange,onBlur:d.onBlur,value:d.value,children:[(0,t.jsx)("option",{className:"dark:text-slate-200",value:"",disabled:d.required,hidden:d.required,children:d.placeholder||d.label}),Object.entries(l).map(([e,s])=>(0,t.jsx)("option",{className:"dark:text-slate-200",value:e,children:s},e))]})})})}])},44959,e=>{var t=e.i(91398),s=e.i(69322),a=e.i(8918),r=e.i(41158),l=e.i(65153),d=e.i(93380),i=e.i(84818),n=e.i(83147),o=e.i(51782);let c=({order:e,showUser:c})=>{let{formatMessage:u}=(0,s.S)(),{formatPrice:m}=(0,n.d)(),{formatDateTime:f}=(0,i.f)();return(0,t.jsxs)(a.f.Row,{className:"group",children:[(0,t.jsx)(a.f.Cell,{children:(0,t.jsx)(r.default,{href:`/orders?orderId=${e._id}`,className:"flex items-center gap-3 text-sm font-medium text-slate-800 dark:text-slate-300 group-hover:text-slate-900 dark:group-hover:text-slate-200",children:e?.orderNumber||(0,t.jsxs)(t.Fragment,{children:[e._id," ",(0,t.jsx)(l.f,{color:"yellow",text:u({id:"cart",defaultMessage:"Cart"})})]})})}),(0,t.jsx)(a.f.Cell,{children:(0,t.jsx)(r.default,{href:`/orders?orderId=${e._id}`,className:"flex items-center text-sm dark:text-slate-300",children:f(e.ordered,{dateStyle:"short",timeStyle:"short"})})}),(0,t.jsx)(a.f.Cell,{children:(0,t.jsx)(r.default,{href:`/orders?orderId=${e._id}`,className:"flex items-center text-sm dark:text-slate-300",children:m(e.total)})}),c&&e.user&&(0,t.jsx)(a.f.Cell,{children:(0,t.jsx)(r.default,{href:`/users?userId=${e.user._id}`,className:"flex items-center text-sm text-slate-800 dark:text-slate-300 hover:text-decoration",onClick:e=>e.stopPropagation(),children:(0,t.jsx)("span",{className:"font-medium",children:(0,d.f)(e.user)})})}),(0,t.jsx)(a.f.Cell,{children:(0,t.jsx)(r.default,{href:`/orders?orderId=${e._id}`,className:"block",children:(0,t.jsx)(o.f,{status:e.status})})})]})};e.s(["f",0,({orders:e,showUser:r,loading:l,sortable:d})=>{let{formatMessage:i}=(0,s.S)();return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(a.f,{className:"min-w-full",children:[(e||[])?.map(e=>(0,t.jsxs)(a.f.Row,{header:!0,enablesort:d,children:[(0,t.jsx)(a.f.Cell,{sortKey:"orderNumber",children:i({id:"order_number",defaultMessage:"Order #"})}),(0,t.jsx)(a.f.Cell,{sortKey:"ordered",defaultSortDirection:"DESC",children:i({id:"order_date",defaultMessage:"Order date"})}),(0,t.jsx)(a.f.Cell,{children:i({id:"total",defaultMessage:"Total"})}),r&&(0,t.jsx)(a.f.Cell,{children:i({id:"user",defaultMessage:"User"})}),(0,t.jsx)(a.f.Cell,{sortKey:"status",children:i({id:"status",defaultMessage:"Status"})})]},e._id)),(e||[])?.map(e=>(0,t.jsx)(c,{order:e,showUser:!0},`${e?._id}-body`))]})})}],44959)},51782,e=>{var t=e.i(91398),s=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,s.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"})},o=n?.[e]??i({id:"cart",defaultMessage:"Cart"});return l?.[e],(0,t.jsx)(a.f,{text:o,color:r.v[e],square:!0,className:`uppercase ${d}`})}])},35308,e=>{var t=e.i(59080);let s=t.f`
|
|
86
|
+
fragment OrderFragment on Order {
|
|
87
|
+
_id
|
|
88
|
+
status
|
|
89
|
+
created
|
|
90
|
+
updated
|
|
91
|
+
ordered
|
|
92
|
+
orderNumber
|
|
93
|
+
confirmed
|
|
94
|
+
fulfilled
|
|
95
|
+
contact {
|
|
96
|
+
telNumber
|
|
97
|
+
emailAddress
|
|
98
|
+
}
|
|
99
|
+
total {
|
|
100
|
+
isTaxable
|
|
101
|
+
isNetPrice
|
|
102
|
+
amount
|
|
103
|
+
currencyCode
|
|
104
|
+
}
|
|
105
|
+
user {
|
|
106
|
+
_id
|
|
107
|
+
username
|
|
108
|
+
isGuest
|
|
109
|
+
avatar {
|
|
110
|
+
_id
|
|
111
|
+
url
|
|
112
|
+
}
|
|
113
|
+
profile {
|
|
114
|
+
displayName
|
|
115
|
+
address {
|
|
116
|
+
firstName
|
|
117
|
+
lastName
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
`;e.s(["f",0,s])},21649,e=>{var t=e.i(59080);let s=t.f`
|
|
123
|
+
fragment TokenFragment on Token {
|
|
124
|
+
_id
|
|
125
|
+
walletAddress
|
|
126
|
+
status
|
|
127
|
+
quantity
|
|
128
|
+
contractAddress
|
|
129
|
+
chainId
|
|
130
|
+
tokenSerialNumber
|
|
131
|
+
invalidatedDate
|
|
132
|
+
expiryDate
|
|
133
|
+
ercMetadata
|
|
134
|
+
accessKey
|
|
135
|
+
isInvalidateable
|
|
136
|
+
}
|
|
137
|
+
`;e.s(["f",0,s])},71805,40526,e=>{var t=e.i(91398),s=e.i(69322),a=e.i(8918),r=e.i(41158),l=e.i(65153),d=e.i(77043),i=e.i(93380),n=e.i(1880),o=e.i(84818),c=e.i(60193);let u=({quotation:e,showUser:u})=>{let{formatMessage:m}=(0,s.S)(),{formatDateTime:f}=(0,o.f)();return(0,t.jsxs)(a.f.Row,{children:[(0,t.jsx)(a.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:(0,t.jsx)(r.default,{href:`/quotations?quotationId=${e?._id}`,className:"font-medium text-slate-800 dark:text-slate-700",children:e?.quotationNumber||e?._id})})}),(0,t.jsx)(a.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:f(e.created,{dateStyle:"short",timeStyle:"short"})})}),(0,t.jsx)(a.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:e.isExpired?(0,t.jsx)(l.f,{text:m({id:"expired",defaultMessage:"Expired"}),color:"amber"}):f(e?.expires,{dateStyle:"short",timeStyle:"short"})})}),u&&(0,t.jsx)(a.f.Cell,{children:(0,t.jsxs)(r.default,{href:`/users?userId=${e?.user._id}`,className:"flex items-center text-sm text-slate-800 dark:text-slate-700 hover:text-decoration",children:[(0,t.jsx)(d.f,{file:e?.user?.avatar,className:"mr-2"}),(0,t.jsx)("span",{className:"font-medium ml-2",children:(0,i.f)(e?.user)})]})}),(0,t.jsx)(a.f.Cell,{children:(0,t.jsx)("div",{children:(0,t.jsxs)(r.default,{href:`/products?slug=${(0,n.U)(e.product)}`,className:"flex items-center text-sm text-slate-800 dark:text-slate-700 hover:text-decoration",children:[(0,t.jsx)(d.f,{file:e.product?.media[0]?.file,className:"mr-3"}),(0,t.jsx)("span",{className:"font-medium ml-2",children:e?.product.texts.title})]})})}),(0,t.jsx)(a.f.Cell,{children:(0,t.jsx)(l.f,{text:e?.status,color:c.L[e?.status],square:!0})})]})};e.s(["f",0,({quotations:e,sortable:r=!1,showUser:l=!1})=>{let{formatMessage:d}=(0,s.S)();return(0,t.jsxs)(a.f,{className:"min-w-full",children:[e?.map(e=>(0,t.jsxs)(a.f.Row,{header:!0,enablesort:r,children:[(0,t.jsx)(a.f.Cell,{sortKey:"quotationNumber",children:d({id:"quotation_number",defaultMessage:"Quotation number"})}),(0,t.jsx)(a.f.Cell,{sortKey:"created",children:d({id:"created",defaultMessage:"Created"})}),(0,t.jsx)(a.f.Cell,{sortKey:"expires",children:d({id:"expires",defaultMessage:"Expires"})}),l&&(0,t.jsx)(a.f.Cell,{children:d({id:"user",defaultMessage:"User"})}),(0,t.jsx)(a.f.Cell,{children:d({id:"product",defaultMessage:"Product"})}),(0,t.jsx)(a.f.Cell,{sortKey:"status",children:d({id:"status",defaultMessage:"Status"})})]},e._id)),e?.map(e=>(0,t.jsx)(u,{showUser:l,quotation:e},`${e?._id}-body`))]})}],71805);var m=e.i(59080);let f=m.f`
|
|
138
|
+
fragment QuotationFragment on Quotation {
|
|
139
|
+
_id
|
|
140
|
+
user {
|
|
141
|
+
_id
|
|
142
|
+
username
|
|
143
|
+
avatar {
|
|
144
|
+
_id
|
|
145
|
+
url
|
|
146
|
+
}
|
|
147
|
+
name
|
|
148
|
+
primaryEmail {
|
|
149
|
+
verified
|
|
150
|
+
address
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
product {
|
|
154
|
+
_id
|
|
155
|
+
texts {
|
|
156
|
+
_id
|
|
157
|
+
slug
|
|
158
|
+
subtitle
|
|
159
|
+
title
|
|
160
|
+
description
|
|
161
|
+
}
|
|
162
|
+
media {
|
|
163
|
+
_id
|
|
164
|
+
file {
|
|
165
|
+
_id
|
|
166
|
+
type
|
|
167
|
+
url
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
currency {
|
|
172
|
+
_id
|
|
173
|
+
contractAddress
|
|
174
|
+
decimals
|
|
175
|
+
isoCode
|
|
176
|
+
}
|
|
177
|
+
status
|
|
178
|
+
created
|
|
179
|
+
expires
|
|
180
|
+
updated
|
|
181
|
+
isExpired
|
|
182
|
+
quotationNumber
|
|
183
|
+
fulfilled
|
|
184
|
+
rejected
|
|
185
|
+
}
|
|
186
|
+
`;e.s(["f",0,f],40526)},27572,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...a},r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{fillRule:"evenodd",d:"M15.988 3.012A2.25 2.25 0 0 1 18 5.25v6.5A2.25 2.25 0 0 1 15.75 14H13.5V7A2.5 2.5 0 0 0 11 4.5H8.128a2.252 2.252 0 0 1 1.884-1.488A2.25 2.25 0 0 1 12.25 1h1.5a2.25 2.25 0 0 1 2.238 2.012ZM11.5 3.25a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 .75.75v.25h-3v-.25Z",clipRule:"evenodd"}),t.createElement("path",{fillRule:"evenodd",d:"M2 7a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7Zm2 3.25a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Zm0 3.5a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"}))});e.s(["f",0,s],27572)},64710,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...a},r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{fillRule:"evenodd",d:"M2.5 4A1.5 1.5 0 0 0 1 5.5V6h18v-.5A1.5 1.5 0 0 0 17.5 4h-15ZM19 8.5H1v6A1.5 1.5 0 0 0 2.5 16h15a1.5 1.5 0 0 0 1.5-1.5v-6ZM3 13.25a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1-.75-.75Zm4.75-.75a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5h-3.5Z",clipRule:"evenodd"}))});e.s(["f",0,s],64710)},61113,87593,39833,84339,19471,66859,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...a},r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{fillRule:"evenodd",d:"M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401Z",clipRule:"evenodd"}))});e.s(["f",0,s],61113);var a=e.i(59080);let r=a.f`
|
|
187
|
+
fragment ProductReviewDetailFragment on ProductReview {
|
|
188
|
+
_id
|
|
189
|
+
created
|
|
190
|
+
updated
|
|
191
|
+
deleted
|
|
192
|
+
author {
|
|
193
|
+
_id
|
|
194
|
+
username
|
|
195
|
+
name
|
|
196
|
+
profile {
|
|
197
|
+
displayName
|
|
198
|
+
address {
|
|
199
|
+
firstName
|
|
200
|
+
lastName
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
isGuest
|
|
204
|
+
avatar {
|
|
205
|
+
_id
|
|
206
|
+
|
|
207
|
+
url
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
product {
|
|
211
|
+
_id
|
|
212
|
+
texts(forceLocale: $forceLocale) {
|
|
213
|
+
_id
|
|
214
|
+
title
|
|
215
|
+
subtitle
|
|
216
|
+
}
|
|
217
|
+
media {
|
|
218
|
+
_id
|
|
219
|
+
file {
|
|
220
|
+
_id
|
|
221
|
+
url
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
rating
|
|
226
|
+
title
|
|
227
|
+
review
|
|
228
|
+
upVote: voteCount(type: UPVOTE)
|
|
229
|
+
downVote: voteCount(type: DOWNVOTE)
|
|
230
|
+
voteReport: voteCount(type: REPORT)
|
|
231
|
+
ownVotes {
|
|
232
|
+
timestamp
|
|
233
|
+
type
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
`;e.s(["f",0,r],87593);var l=e.i(91398);let d=t.forwardRef(function({title:e,titleId:s,...a},r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 3v1.5M3 21v-6m0 0 2.77-.693a9 9 0 0 1 6.208.682l.108.054a9 9 0 0 0 6.086.71l3.114-.732a48.524 48.524 0 0 1-.005-10.499l-3.11.732a9 9 0 0 1-6.085-.711l-.108-.054a9 9 0 0 0-6.208-.682L3 4.5M3 15V4.5"}))}),i=t.forwardRef(function({title:e,titleId:s,...a},r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.498 15.25H4.372c-1.026 0-1.945-.694-2.054-1.715a12.137 12.137 0 0 1-.068-1.285c0-2.848.992-5.464 2.649-7.521C5.287 4.247 5.886 4 6.504 4h4.016a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23h1.294M7.498 15.25c.618 0 .991.724.725 1.282A7.471 7.471 0 0 0 7.5 19.75 2.25 2.25 0 0 0 9.75 22a.75.75 0 0 0 .75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 0 0 2.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384m-10.253 1.5H9.7m8.075-9.75c.01.05.027.1.05.148.593 1.2.925 2.55.925 3.977 0 1.487-.36 2.89-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398-.306.774-1.086 1.227-1.918 1.227h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 0 0 .303-.54"}))});e.s(["f",0,i],39833);let n=t.forwardRef(function({title:e,titleId:s,...a},r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.633 10.25c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75a.75.75 0 0 1 .75-.75 2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282m0 0h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23H5.904m10.598-9.75H14.25M5.904 18.5c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 0 1-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 9.953 4.167 9.5 5 9.5h1.053c.472 0 .745.556.5.96a8.958 8.958 0 0 0-1.302 4.665c0 1.194.232 2.333.654 3.375Z"}))});e.s(["f",0,n],84339);var o=e.i(69322),c=e.i(66773),u=e.i(28401),m=e.i(72043),f=e.i(62100),x=e.i(84818),h=e.i(15971),p=e.i(6607),g=e.i(76204);let b=a.f`
|
|
237
|
+
mutation RemoveProductReview($productReviewId: ID!) {
|
|
238
|
+
removeProductReview(productReviewId: $productReviewId) {
|
|
239
|
+
_id
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
`;var v=e.i(65153),j=e.i(35065),w=e.i(93380);let y=a.f`
|
|
243
|
+
mutation AddProductReviewVote(
|
|
244
|
+
$productReviewId: ID!
|
|
245
|
+
$type: ProductReviewVoteType!
|
|
246
|
+
$meta: JSON
|
|
247
|
+
$forceLocale: Locale
|
|
248
|
+
) {
|
|
249
|
+
addProductReviewVote(
|
|
250
|
+
productReviewId: $productReviewId
|
|
251
|
+
type: $type
|
|
252
|
+
meta: $meta
|
|
253
|
+
) {
|
|
254
|
+
_id
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
`,N=a.f`
|
|
258
|
+
mutation RemoveProductReviewVote(
|
|
259
|
+
$productReviewId: ID!
|
|
260
|
+
$type: ProductReviewVoteType!
|
|
261
|
+
$forceLocale: Locale
|
|
262
|
+
) {
|
|
263
|
+
removeProductReviewVote(productReviewId: $productReviewId, type: $type) {
|
|
264
|
+
_id
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
`;var k=e.i(58971),C=e.i(51870),E=e.i(69211),_=e.i(99160),R=e.i(82226),M=e.i(60741),I=e.i(29691);let S=({maxLength:e,validators:t=[],...s})=>{let a=(0,M.f)({validators:[...t,e&&(0,R.f)(e)],...s});return(0,l.jsx)(I.f,{...a,children:(0,l.jsx)("textarea",{className:(0,m.default)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-400 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 border-slate-300 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 placeholder-slate-400 shadow-xs placeholder:text-slate-400 focus:outline-hidden focus:ring-2 focus:ring-slate-800",a.className,{"border-rose-700 placeholder:text-rose-300 placeholder-rose-300":!!a.error}),disabled:a.disabled,id:a.name,name:a.name,rows:a.rows||10,onChange:a.onChange,onBlur:a.onBlur,placeholder:a.placeholder,autoComplete:a.autoComplete||"off",value:a.value})})};e.s(["f",0,S],19471);var $=e.i(98949);let A=({onSubmit:e,onSubmitSuccess:t=async()=>!0})=>{let{formatMessage:s}=(0,o.S)(),a=s({id:"product_review_added",defaultMessage:"Review added successfully!"}),r=(0,$.f)({submit:e,successMessage:a,onSubmitSuccess:t,initialValues:{message:""}});return(0,l.jsxs)(E.f,{form:r,children:[(0,l.jsx)(S,{rows:3,required:!0,name:"message",id:"message",label:s({id:"message",defaultMessage:"Message"})}),(0,l.jsx)("div",{className:"-mx-6 -mb-6 mt-6 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,l.jsx)(_.f,{label:s({id:"report-submit",defaultMessage:"Submit"})})})]})};var P=e.i(41215);let O="UPVOTE",T="DOWNVOTE",L="REPORT";e.s(["f",0,({review:e,enableDelete:t=!0,showProduct:s=!1})=>{let{formatMessage:a}=(0,o.S)(),{currentUser:r}=(0,C.f)(),{formatDateTime:E}=(0,x.f)(),{setModal:_}=(0,p.f)(),{addProductReviewVote:R}=(()=>{let[e]=(0,g.f)(y);return{addProductReviewVote:async({productReviewId:t,type:s,meta:a})=>e({variables:{productReviewId:t,type:s,meta:a},refetchQueries:["ProductReviewByProduct","ProductReviewByUser"]})}})(),{removeProductReviewVote:M}=(()=>{let[e]=(0,g.f)(N);return{removeProductReviewVote:async({productReviewId:t,type:s})=>e({variables:{productReviewId:t,type:s},refetchQueries:["ProductReviewByProduct","ProductReviewByUser"]})}})(),{hasRole:I,isAdmin:S}=(0,k.f)(),$=t=>!!e.ownVotes.find(e=>e.type===t),D=async t=>{let s=async({message:s})=>{try{return await R({productReviewId:e._id,type:t,meta:{message:s}}),{success:!0}}catch(e){if(e instanceof P.f)return{success:!1,error:e?.message};return{success:!1,error:e}}};$(t)?await M({productReviewId:e._id,type:t}):t===L?await _((0,l.jsx)(A,{onSubmit:s,onSubmitSuccess:async()=>_(null)})):await R({productReviewId:e._id,type:t})},{removeProductReview:V}=(()=>{let[e]=(0,g.f)(b);return{removeProductReview:async({productReviewId:t})=>e({variables:{productReviewId:t},refetchQueries:["ProductReviewByProduct","ProductReviewByUser"]})}})(),F=!e.deleted&&I(c.C.VoteProductReview)&&t&&e?.author?._id===r?._id||S()&&!e.deleted,U=!e.deleted&&I(c.C.VoteProductReview),B=e?.product,q=async e=>{await _((0,l.jsx)(h.f,{onCancelClick:async()=>_(""),message:a({id:"delete_review_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this review? "}),onOkClick:async()=>{_(""),await V({productReviewId:e}),u.c.success(a({id:"review_deleted",defaultMessage:"Review deleted successfully"}))},okText:a({id:"delete_review",defaultMessage:"Delete review"})}))};return(0,l.jsxs)("div",{className:(0,m.default)("mb-4 rounded-lg shadow-sm bg-white dark:bg-slate-800 p-4",{"border-rose-200 bg-rose-50 dark:bg-rose-950":e.deleted},{"border-slate-200 dark:border-slate-700":!e.deleted}),children:[(0,l.jsxs)("div",{className:"flex items-center",children:[s?(0,l.jsx)(j.f,{src:B?.media[0]?.file?.url,alt:e?.author?.username,width:48,height:48,className:"h-12 w-12 rounded-full aspect-square object-cover object-center"}):(0,l.jsx)(j.f,{src:e?.author?.avatar?.url,alt:e?.author?.username,width:48,height:48,className:"h-12 w-12 rounded-full aspect-square object-cover object-center"}),(0,l.jsxs)("div",{className:"ml-4 flex-1",children:[(0,l.jsx)("h4",{className:"text-sm font-semibold text-slate-900 dark:text-slate-100",children:s?B?.texts?.title||(0,l.jsxs)(l.Fragment,{children:[B._id," ",(0,l.jsx)(v.f,{color:"yellow",text:a({id:"title_not_found",defaultMessage:"Title not found"})})]}):(0,w.f)(e?.author)}),(0,l.jsx)("p",{className:"text-xs text-slate-500 dark:text-slate-400",children:(0,l.jsx)("time",{dateTime:e.updated||e.created,children:E(e.updated||e.created,{dateStyle:"short",timeStyle:"short"})})})]}),(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsxs)("button",{type:"button",disabled:!U,onClick:async()=>D(O),className:`flex items-center gap-1 px-2 py-1 rounded-md transition-colors disabled:opacity-50 ${$(O)?"bg-emerald-100 dark:bg-emerald-900 hover:bg-emerald-200 dark:hover:bg-emerald-800":"hover:bg-slate-100 dark:hover:bg-slate-700"}`,children:[(0,l.jsx)(n,{className:`h-5 w-5 ${$(O)?"text-emerald-600 dark:text-emerald-400":"text-slate-400 dark:text-slate-500"}`}),(0,l.jsx)("span",{className:`text-sm font-medium ${$(O)?"text-emerald-700 dark:text-emerald-300":"text-slate-700 dark:text-slate-300"}`,children:e.upVote})]}),(0,l.jsxs)("button",{type:"button",disabled:!U,onClick:async()=>D(T),className:`flex items-center gap-1 px-2 py-1 rounded-md transition-colors disabled:opacity-50 ${$(T)?"bg-rose-100 dark:bg-rose-900 hover:bg-rose-200 dark:hover:bg-rose-800":"hover:bg-slate-100 dark:hover:bg-slate-700"}`,children:[(0,l.jsx)(i,{className:`h-5 w-5 ${$(T)?"text-rose-600 dark:text-rose-400":"text-slate-400 dark:text-slate-500"}`}),(0,l.jsx)("span",{className:`text-sm font-medium ${$(T)?"text-rose-700 dark:text-rose-300":"text-slate-700 dark:text-slate-300"}`,children:e.downVote})]})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2 ml-4",children:[I(c.C.VoteProductReview)&&(0,l.jsx)("button",{type:"button",disabled:!U,onClick:async()=>D(L),className:`p-2 rounded-md transition-colors disabled:opacity-50 ${$(L)?"bg-orange-100 dark:bg-orange-900 hover:bg-orange-200 dark:hover:bg-orange-800":"hover:bg-slate-100 dark:hover:bg-slate-700"}`,title:"Report review",children:(0,l.jsx)(d,{className:(0,m.default)("h-4 w-4",{"text-orange-600 dark:text-orange-400":$(L),"text-slate-400 dark:text-slate-500":!$(L)})})}),F&&(0,l.jsx)(f.f,{onClick:()=>q(e._id),className:""}),e.deleted&&(0,l.jsx)(v.f,{text:a({id:"deleted_text",defaultMessage:"Deleted"}),color:"red",className:"ml-2"})]})]}),(0,l.jsxs)("div",{className:"mt-4 space-y-3",children:[(0,l.jsx)("h3",{className:"text-base font-semibold text-slate-900 dark:text-slate-100",children:e.title}),(0,l.jsx)("p",{className:"text-sm text-slate-700 dark:text-slate-300 leading-relaxed",children:e.review})]})]},e._id)}],66859)},81618,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...a},r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))});e.s(["f",0,s],81618)}])})();
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[74954,e=>{var t=e.i(91398),r=e.i(91788);e.s(["f",0,({value:e,duration:s=300})=>{let[a,l]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let t,r;if(0===e)return void l(0);let a=n=>{t||(t=n);let i=Math.min((n-t)/s,1);l(Math.round((1-Math.pow(1-i,3))*e)),i<1&&(r=requestAnimationFrame(a))};return r=requestAnimationFrame(a),()=>{r&&cancelAnimationFrame(r)}},[e,s]),(0,t.jsx)("span",{children:a})}])},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:n=null})=>{let i=(0,s.useRouter)(),{formatMessage:o}=(0,a.S)(),d={home:"home",products:"products",orders:"orders",users:"users",assortments:"assortments",filters:"filters",tokens:"tokens",quotations:"quotations",enrollments:"enrollments",activities:"activities",works:"work_queue",events:"events",currency:"currencies",country:"countries",language:"languages","delivery-provider":"delivery_providers","payment-provider":"payment_providers","warehousing-provider":"warehousing_provider",system:"system",account:"account",new:"new",edit:"edit"},u=i.asPath?.split("/")?.filter((e,t)=>i.asPath?.split("/")?.indexOf(e)===t);if(1===u.length)return null;let c="";n&&u.splice(n),e&&(u[u.length-1]=e);let f=u?.map(t=>{if(c+=`${t}/`,!t)return{name:o({id:"home",defaultMessage:"Home"}),path:"/"};let r=t?.split("?")[0],s=e?r:r.replace(/-/g," "),a=d[r];return{name:a?o({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:n=!1,id:i="",variant:o="primary",size:d="md",type:u="button",loading:c=!1,icon:f,iconRight:m,fullWidth:x=!1,rounded:h="md",ariaLabel:g,...p})=>{let b=s||e,y=(f||m)&&b?"gap-2":"";return(0,t.jsx)("button",{id:i,type:u,disabled:n||c,onClick:a,"aria-label":g,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"}[h],{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"}[o],y,{"w-full":x},l),...p,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"}),b]}):(0,t.jsxs)(t.Fragment,{children:[f,b,m]})})}])},81359,e=>{var t=e.i(91398),r=e.i(24608),s=e.i(69322);e.s(["f",0,({onClick:e,text:a=null,Icon:l=null})=>{let{formatMessage:n}=(0,s.S)();return(0,t.jsxs)("button",{type:"button",onClick:e,"aria-describedby":"header-delete-button",className:"inline-flex items-center gap-2 justify-center rounded-md border border-rose-500 px-4 py-2 text-sm font-medium leading-5 text-rose-600 dark:text-rose-200 shadow-sm hover:border-rose-600 hover:bg-rose-600 hover:text-white focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 h-[38px]",children:[(0,t.jsx)("span",{children:l||(0,t.jsx)(r.f,{className:"h-5 w-5"})}),a||n({id:"delete",defaultMessage:"Delete"})]})}])},78704,e=>{var t=e.i(91398),r=e.i(91788),s=e.i(12197);e.s(["f",0,({loading:e,hasMore:a,onLoadMore:l,children:n,threshold:i=200})=>{let o=(0,r.useRef)(null),d=(0,r.useCallback)(t=>{let[r]=t;r.isIntersecting&&a&&!e&&l()},[a,e,l]);return(0,r.useEffect)(()=>{let e=o.current;if(!e)return;let t=new IntersectionObserver(d,{rootMargin:`${i}px`});return t.observe(e),()=>{t.disconnect()}},[d,i]),(0,t.jsxs)(t.Fragment,{children:[n,(0,t.jsx)("div",{ref:o,className:"h-4"}),e&&(0,t.jsx)("div",{className:"flex justify-center py-4",children:(0,t.jsx)(s.f,{})})]})}])},2875,e=>{var t=e.i(91398),r=e.i(44112);e.s(["f",0,({title:e=null,description:s})=>(0,t.jsx)("div",{className:"mb-6 p-4 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg",children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(r.f,{className:"w-5 h-5 text-blue-600 dark:text-blue-400 mt-0.5 flex-shrink-0"}),(0,t.jsxs)("div",{children:[e&&(0,t.jsx)("h3",{className:"text-sm font-semibold text-blue-900 dark:text-blue-100 mb-2",children:e}),(0,t.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200 leading-relaxed",children:s})]})]})})])},94724,e=>{var t=e.i(91398),r=e.i(69322);e.s(["f",0,({children:e=null,totalRecords:s=null})=>{let{formatMessage:a}=(0,r.S)();return(0,t.jsxs)("div",{className:"mt-5",children:[null!==s?(0,t.jsx)("div",{className:"text-md text-slate-950 dark:text-slate-100 mb-3",children:a({id:"total_records",defaultMessage:"{total} records found"},{total:s??0})}):null,e&&(0,t.jsx)("div",{className:"flex items-center mt-10",children:(0,t.jsx)("h3",{className:"text-xs leading-6 text-slate-500 dark:text-slate-200",children:e})})]})}])},17644,e=>{var t=e.i(91398),r=e.i(58678),s=e.i(41158),a=e.i(69322),l=e.i(37369),n=e.i(81013);e.s(["f",0,({headerText:e=null,onEdit:i=null,onDelete:o=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)(n.f,{variant:"secondary",icon:(0,t.jsx)(l.f,{className:"h-5 w-5"}),text:f||m({id:"add",defaultMessage:"Add"})})}),i&&(0,t.jsx)(n.f,{variant:"secondary",onClick:i,text:m({id:"edit",defaultMessage:"Edit"})}),o&&(0,t.jsx)(n.f,{variant:"danger",onClick:o,text:m({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},16371,e=>{var t=e.i(91788),r=e.i(30943);e.s(["f",0,({children:e,container:s=null,className:a=""})=>{let l=(0,t.useRef)(null),[n,i]=(0,t.useState)(!1);return((0,t.useEffect)(()=>{let e=document.createElement("div");a&&(e.className=a),l.current=e;let t=s||document.body;return t.appendChild(e),i(!0),()=>{l.current&&t.contains(l.current)&&t.removeChild(l.current)}},[s,a]),n&&l.current)?(0,r.createPortal)(e,l.current):null}])},20495,e=>{var t=e.i(91398),r=e.i(69322),s=e.i(2765);e.s(["f",0,({inputText:e=null,onInputChange:a,defaultValue:l})=>{let{formatMessage:n}=(0,r.S)(),i=(0,s.f)(200)(a);return(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("label",{htmlFor:"search",className:"sr-only",children:e||n({id:"search",defaultMessage:"Search"})}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-slate-400 dark:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"})})}),(0,t.jsx)("input",{onChange:e=>i(e.target.value),id:"search",defaultValue:l,name:"search",className:"block w-full rounded-md border-1 border-slate-300 dark:border-slate-700 text-slate-900 dark:bg-slate-900 dark:text-slate-200 py-3 pl-10 px-4 shadow-xs placeholder:text-slate-400 dark:placeholder:text-slate-400 focus:ring-2 focus:ring-slate-800 focus:outline-hidden sm:text-sm",placeholder:n({id:"search",defaultMessage:"Search"}),type:"search"})]})]})}])},51128,e=>{var t=e.i(91398),r=e.i(69322),s=e.i(3828),a=e.i(20495),l=e.i(68835),n=e.i(65153),i=e.i(83147),o=e.i(73319);e.s(["f",0,({children:e,onSearchChange:d,defaultSearchValue:u,showTagFilter:c=!1,availableTagOptions:f=[]})=>{let{formatMessage:m}=(0,r.S)(),{query:x,push:h}=(0,s.useRouter)(),g=e=>{if((0,o.T)(e))h({query:(0,i._)(x,e?.join(","),"tags")});else{let{tags:e,...t}=x;h({query:(0,i._)(t)})}};return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"my-3 flex flex-col gap-3",children:(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start gap-3",children:[(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(a.f,{onInputChange:d,defaultValue:u})}),c&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 flex-1 sm:border-l sm:border-slate-300 sm:dark:border-slate-700 sm:pl-3",children:[(0,t.jsx)("div",{className:"max-w-xs",children:(0,t.jsx)(l.f,{buttonText:m({id:"apply",defaultMessage:"Apply"}),placeholder:m({id:"enter_tag",defaultMessage:"Enter tag..."}),tagList:x?.tags?.split(","),onChange:g,selectOptions:f,showTagsInline:!1})}),x?.tags?.split(",").filter(Boolean).length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:x?.tags?.split(",").filter(Boolean).map(e=>(0,t.jsx)(n.f,{text:e,color:"slate",onClick:()=>{let t=x?.tags?.split(",").filter(t=>t!==e);g(t.length>0?t:null)}},e))})]})]})}),e]})}])},3095,e=>{var t=e.i(91398),r=e.i(91788),s=e.i(69322),a=e.i(86712),l=e.i(76842),n=e.i(24557),i=e.i(16371);e.s(["f",0,({onEdit:e,onDelete:o,editLabel:d,deleteLabel:u,showEdit:c=!0,showDelete:f=!0})=>{let{formatMessage:m}=(0,s.S)(),[x,h]=(0,r.useState)(!1),[g,p]=(0,r.useState)({top:0,left:0}),b=(0,r.useRef)(null),y=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{b.current&&!b.current.contains(e.target)&&h(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let v=(e,t)=>{e.stopPropagation(),e.preventDefault(),t&&t(),h(!1)};return 0===[c&&e,f&&o].filter(Boolean).length?null:(0,t.jsxs)("div",{className:"flex justify-end w-full",children:[(0,t.jsx)("button",{ref:y,type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),x||(()=>{if(!y.current)return;let e=y.current.getBoundingClientRect(),t=e.bottom+4,r=e.right-192;r<8&&(r=8),t+80>window.innerHeight-8&&(t=e.top-80-4),p({top:t,left:r})})(),h(!x)},className:"flex items-center justify-center w-8 h-8 rounded-md hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors","aria-label":m({id:"table_actions_menu",defaultMessage:"Actions menu"}),children:(0,t.jsx)(a.f,{className:"w-5 h-5 text-slate-500 dark:text-slate-400"})}),x&&(0,t.jsx)(i.f,{children:(0,t.jsx)("div",{ref:b,className:"fixed w-48 bg-white dark:bg-slate-800 rounded-md shadow-xl border border-slate-200 dark:border-slate-700 z-[9999]",style:{top:g.top,left:g.left},children:(0,t.jsxs)("div",{className:"py-1",children:[c&&e&&(0,t.jsxs)("button",{type:"button",onClick:t=>v(t,e),className:"flex items-center w-full px-4 py-2 text-sm text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors",children:[(0,t.jsx)(l.f,{className:"mr-3 h-5 w-5"}),d||m({id:"edit",defaultMessage:"Edit"})]}),f&&o&&(0,t.jsxs)("button",{type:"button",onClick:e=>v(e,o),className:"flex items-center w-full px-4 py-2 text-sm text-rose-500 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/20 transition-colors",children:[(0,t.jsx)(n.f,{className:"mr-3 h-5 w-5"}),u||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:n=null,active:i=!1,className:o="",disabled:d=!1,...u})=>{let c=(0,s.useRouter)(),f=c?.query?.[l]==="true"||i;return(0,t.jsxs)("div",{className:(0,r.default)("",o),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:n||(()=>{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})})]})}])},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)])},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)}})])},80689,e=>{var t=e.i(91398),r=e.i(69322),s=e.i(66773),a=e.i(58971),l=e.i(1504),n=e.i(79093),i=e.i(64591),o=e.i(69211),d=e.i(73419),u=e.i(99160),c=e.i(45229),f=e.i(98949),m=e.i(82226);e.s(["f",0,({onSubmit:e,onSubmitSuccess:x=null,defaultValue:h={},isEdit:g=!1})=>{let{formatMessage:p}=(0,r.S)(),{hasRole:b}=(0,a.f)(),y=p({id:"country_added",defaultMessage:"Country added successfully!"}),v=p({id:"country_updated",defaultMessage:"Country updated successfully!"}),{currencies:j}=(0,n.f)(),w=(0,f.f)({submit:e,onSubmitSuccess:x,successMessage:g?v:y,getSubmitErrorMessage:e=>{if(e?.message?.includes("duplicate key"))return w.formik.setFieldError("isoCode",p({id:"country_exists",defaultMessage:"Country with the same ISO code already exists"})),null},enableReinitialize:!0,initialValues:{isoCode:"",...h}});return(0,t.jsxs)(o.f,{form:w,children:[(0,t.jsxs)("div",{className:"p-5 pb-7",children:[(0,t.jsx)(c.f,{name:"isoCode",id:"isoCode",validators:[(0,m.v)()],disabled:!b(s.C.ManageCountries),label:p({id:"iso_code",defaultMessage:"ISO code"}),required:!0,autoComplete:"on"}),g&&(0,t.jsxs)("div",{className:"my-3 min-w-0 flex-1",children:[(0,t.jsx)(d.f,{name:"defaultCurrencyCode",disabled:!b(s.C.ManageCountries),id:"defaultCurrencyCode",label:p({id:"default_currency",defaultMessage:"Default currency"}),options:(0,l.f)(j,"isoCode","isoCode"),className:"mb-2 text-sm"}),(0,t.jsx)(i.f,{toggleText:p({id:"active",defaultMessage:"Active"}),disabled:!b(s.C.ManageCountries),active:w.formik.values.isActive,onToggle:()=>w.formik.setFieldValue("isActive",!w.formik.values.isActive)})]})]}),b(s.C.ManageCountries)&&(0,t.jsx)("div",{className:"space-y-6 border-t border-t-slate-100 dark:border-t-slate-700 bg-slate-50 dark:bg-slate-900 p-5 text-right",children:(0,t.jsx)(u.f,{label:g?p({id:"update_country",defaultMessage:"Update Country"}):p({id:"add_country",defaultMessage:"Add Country"})})})]})}])},97118,e=>{var t=e.i(59080),r=e.i(32171),s=e.i(70693),a=e.i(77846);e.s(["f",0,({countryId:e})=>{let{customProperties:l}=(0,s.f)(),{data:n,loading:i,error:o}=(0,r.f)(((e="")=>t.f`
|
|
2
|
+
query Country($countryId: ID!) {
|
|
3
|
+
country(countryId: $countryId) {
|
|
4
|
+
...CountryFragment
|
|
5
|
+
${e}
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
${a.f}
|
|
9
|
+
`)(l?.Country),{skip:!e,variables:{countryId:e}});return{country:n?.country,loading:i,error:o}}])},71846,e=>{var t=e.i(59080),r=e.i(76204),s=e.i(77846);let a=t.f`
|
|
10
|
+
mutation RemoveCountry($countryId: ID!) {
|
|
11
|
+
removeCountry(countryId: $countryId) {
|
|
12
|
+
...CountryFragment
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
${s.f}
|
|
16
|
+
`;e.s(["f",0,()=>{let[e]=(0,r.f)(a);return{removeCountry:async({countryId:t})=>e({variables:{countryId:t},refetchQueries:["Countries","ShopStatus","ShopInfo"]})}}])},68191,e=>{var t=e.i(59080);let r=t.f`
|
|
17
|
+
fragment CurrencyFragment on Currency {
|
|
18
|
+
_id
|
|
19
|
+
isoCode
|
|
20
|
+
isActive
|
|
21
|
+
contractAddress
|
|
22
|
+
decimals
|
|
23
|
+
}
|
|
24
|
+
`;e.s(["f",0,r])},79093,e=>{var t=e.i(59080),r=e.i(32171),s=e.i(68191);let a=t.f`
|
|
25
|
+
query Currencies(
|
|
26
|
+
$queryString: String
|
|
27
|
+
$limit: Int
|
|
28
|
+
$offset: Int
|
|
29
|
+
$includeInactive: Boolean
|
|
30
|
+
$sort: [SortOptionInput!]
|
|
31
|
+
) {
|
|
32
|
+
currencies(
|
|
33
|
+
queryString: $queryString
|
|
34
|
+
limit: $limit
|
|
35
|
+
offset: $offset
|
|
36
|
+
includeInactive: $includeInactive
|
|
37
|
+
sort: $sort
|
|
38
|
+
) {
|
|
39
|
+
...CurrencyFragment
|
|
40
|
+
}
|
|
41
|
+
currenciesCount(
|
|
42
|
+
includeInactive: $includeInactive
|
|
43
|
+
queryString: $queryString
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
${s.f}
|
|
47
|
+
`;e.s(["f",0,({queryString:e="",limit:t=20,offset:s=0,includeInactive:l=!0,sort:n=[]}={})=>{let{data:i,loading:o,error:d,fetchMore:u}=(0,r.f)(a,{variables:{queryString:e,limit:t,offset:s,includeInactive:l,sort:n}}),c=i?.currencies||[],f=i?.currenciesCount,m=c?.length<f;return{currencies:c,currenciesCount:f,hasMore:m,loading:o,error:d,loadMore:()=>{u({variables:{offset:c?.length}})}}}])},73419,e=>{var t=e.i(91398),r=e.i(72043),s=e.i(60741),a=e.i(29691);e.s(["f",0,e=>{let{options:l,...n}=(0,s.f)(e),{className:i}=e||{className:""};return(0,t.jsx)(a.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",i,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!n.error}),disabled:n.disabled,id:n.name,name:n.name,onChange:n.onChange,onBlur:n.onBlur,value:n.value,children:[(0,t.jsx)("option",{className:"dark:text-slate-200",value:"",disabled:n.required,hidden:n.required,children:n.placeholder||n.label}),Object.entries(l).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),s=e.i(38865),a=e.i(61898);e.s(["f",0,({label:e,disabled:l=!1,className:n="",hidden:i=!1,...o})=>{let d=(0,s.m)(),{...u}=o,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),x=l||f||d.isSubmitting||m,h=d.isSubmitting&&!m,g=(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",n,{"bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900":g,"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600":h,"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":!x,hidden:i}),"aria-label":e,type:"submit",value:e,disabled:x,...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:n=[],...i})=>{let o=(0,a.f)({validators:[...n,e&&(0,s.f)(e)],...i});return(0,t.jsx)(l.f,{...o,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":!!o.error,"border-slate-300 placeholder-slate-400":!o.error}),disabled:o.disabled,id:o.name,name:o.name,onChange:o.onChange,onClick:e=>{e.stopPropagation()},onBlur:o.onBlur,placeholder:o.placeholder,autoComplete:o.autoComplete||"off",type:o.type||"text",value:o.value,autoFocus:o.autoFocus})})}])},15971,e=>{var t=e.i(91398),r=e.i(69322);e.s(["f",0,({onOkClick:e,onCancelClick:s,okText:a=null,cancelText:l=null,headerText:n=null,message:i=null,icon:o=null,close:d=null})=>{let{formatMessage:u}=(0,r.S)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sm:flex sm:items-start",children:[o||(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900/30 sm:mx-0 sm:h-10 sm:w-10",children:(0,t.jsx)("svg",{className:"h-6 w-6 text-rose-600 dark:text-rose-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,t.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,t.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",id:"modal-title",children:n||u({id:"warning",defaultMessage:"Warning!"})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("p",{className:"text-sm text-slate-500 dark:text-slate-200",children:i||u({id:"are_you_sure",defaultMessage:"Are you sure?"})})})]})]}),(0,t.jsxs)("div",{className:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse",children:[(0,t.jsx)("button",{id:"danger_continue",onClick:e,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-rose-600 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-rose-700 focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",children:a||u({id:"continue",defaultMessage:"Continue"})}),(0,t.jsx)("button",{id:"danger_cancel",onClick:s||d,type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-slate-300 bg-white px-4 py-2 text-base font-medium text-slate-700 shadow-xs hover:bg-slate-50 focus:outline-hidden focus:ring-2 focus:ring-slate-800 focus:ring-offset-2 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",children:l||u({id:"cancel",defaultMessage:"Cancel"})})]})]})}])},6607,e=>{var t=e.i(91788),r=e.i(6444);e.s(["f",0,()=>(0,t.useContext)(r.f)])},55868,e=>{var t=e.i(91398),r=e.i(3828),s=e.i(66773),a=e.i(69322),l=e.i(28401),n=e.i(5505),i=e.i(61494),o=e.i(17644),d=e.i(80689),u=e.i(97118),c=e.i(71846),f=e.i(59080),m=e.i(76204),x=e.i(77846);let h=f.f`
|
|
48
|
+
mutation UpdateCountry($country: UpdateCountryInput!, $countryId: ID!) {
|
|
49
|
+
updateCountry(country: $country, countryId: $countryId) {
|
|
50
|
+
...CountryFragment
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
${x.f}
|
|
54
|
+
`;var g=e.i(15971),p=e.i(6607),b=e.i(81359),y=e.i(12197),v=e.i(83147),j=e.i(58971);e.s(["default",0,({countryId:e})=>{let{push:f}=(0,r.useRouter)(),{formatMessage:x,locale:w}=(0,a.S)(),{setModal:k}=(0,p.f)(),{hasRole:C}=(0,j.f)(),{country:N,loading:M}=(0,u.f)({countryId:e}),{updateCountry:S}=(()=>{let[e]=(0,m.f)(h);return{updateCountry:async({country:t,countryId:r})=>e({variables:{country:t,countryId:r},refetchQueries:["Countries","ShopStatus","ShopInfo"]})}})(),{removeCountry:_}=(0,c.f)(),$=async({isActive:t,isoCode:r,defaultCurrencyCode:s})=>(await S({country:{isActive:t,isoCode:r,defaultCurrencyCode:s},countryId:e}),!0),I=async()=>{await k((0,t.jsx)(g.f,{onCancelClick:async()=>k(""),message:x({id:"delete_country_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this country? "}),onOkClick:async()=>{k(""),await _({countryId:e}),l.c.success(x({id:"country_deleted",defaultMessage:"Country deleted successfully"})),f("/country")},okText:x({id:"delete_country",defaultMessage:"Delete country"})}))};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.f,{currentPageTitle:(0,v.Q)(w,N?.isoCode)}),(0,t.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,t.jsx)(o.f,{headerText:(0,v.Q)(w,N?.isoCode)}),C(s.C.ManageCountries)&&(0,t.jsx)(b.f,{onClick:I})]}),M?(0,t.jsx)(y.f,{}):(0,t.jsx)("div",{className:"mx-auto mt-6 sm:max-w-xl",children:(0,t.jsx)(n.U,{children:(0,t.jsx)(d.f,{isEdit:!0,defaultValue:{isActive:N?.isActive,isoCode:N?.isoCode},onSubmit:$})})})]})}],55868)},99912,e=>{var t=e.i(91398),r=e.i(69322),s=e.i(66773),a=e.i(28401),l=e.i(3828),n=e.i(61494),i=e.i(94724),o=e.i(78704),d=e.i(12197),u=e.i(17644),c=e.i(64591),f=e.i(60193),m=e.i(58971),x=e.i(8918),h=e.i(65153),g=e.i(3095),p=e.i(83147);let b=({country:e,onRemove:s,enableEdit:a,enableDelete:n})=>{let{locale:i,formatMessage:o}=(0,r.S)(),d=(0,l.useRouter)(),u={true:o({id:"active",defaultMessage:"Active"}),false:o({id:"in_active",defaultMessage:"In-Active"})},c=e.defaultCurrency&&e.defaultCurrency.isoCode,f=async()=>{await s(e._id)};return(0,t.jsxs)(x.f.Row,{className:"text-sm",children:[(0,t.jsx)(x.f.Cell,{className:"whitespace-nowrap",children:(0,t.jsxs)("div",{children:[e.isoCode,e.isBase&&(0,t.jsx)(h.f,{text:o({id:"base_country",defaultMessage:"Base"}),className:"ml-2 ",color:"sky",square:!0})]})}),(0,t.jsx)(x.f.Cell,{className:"whitespace-nowrap",children:(0,p.Q)(i,e?.isoCode,!1)}),(0,t.jsx)(x.f.Cell,{className:"whitespace-nowrap",children:c?(0,p.j)(i,c):null}),(0,t.jsx)(x.f.Cell,{className:"whitespace-nowrap",children:(0,t.jsx)(h.f,{text:u[e.isActive],color:e.isActive?"emerald":"amber",square:!0})}),(a||n)&&(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)(g.f,{onEdit:a?()=>{d.push(`/country?countryId=${e._id}`)}:void 0,onDelete:n?f:void 0,showEdit:a,showDelete:n})})]})},y=({countries:e,onRemoveCountry:a,sortable:l})=>{let{formatMessage:n}=(0,r.S)(),{hasRole:i}=(0,m.f)();return(0,t.jsxs)(x.f,{className:"min-w-full",children:[e?.map(e=>(0,t.jsxs)(x.f.Row,{header:!0,enablesort:l,children:[(0,t.jsx)(x.f.Cell,{sortKey:"isoCode",children:n({id:"iso_code",defaultMessage:"ISO code"})}),(0,t.jsx)(x.f.Cell,{children:n({id:"name",defaultMessage:"Name"})}),(0,t.jsx)(x.f.Cell,{children:n({id:"default_currency",defaultMessage:"Default currency"})}),(0,t.jsx)(x.f.Cell,{sortKey:"isActive",children:n({id:"status",defaultMessage:"Status"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsxs)("span",{className:"sr-only",children:[n({id:"edit",defaultMessage:"Edit"}),n({id:"delete",defaultMessage:"Delete"})]})})]},e._id)),e?.map(e=>(0,t.jsx)(b,{country:e,onRemove:a,enableEdit:i(s.C.ViewCountry),enableDelete:i(s.C.ManageCountries)},`${e?._id}-body`))]})};var v=e.i(98520),j=e.i(71846),w=e.i(15971),k=e.i(6607),C=e.i(51128),N=e.i(55868),M=e.i(74954),S=e.i(2875);e.s(["default",0,()=>{let{formatMessage:e}=(0,r.S)(),{query:x,push:h}=(0,l.useRouter)(),g=parseInt(x?.limit,10)||f.h,b=parseInt(x?.skip,10)||0,_=x?.sort||"",$=x?.includeInactive==="true"||!x?.includeInactive,{hasRole:I}=(0,m.f)(),{queryString:E,countryId:O,...R}=x,A=(0,p.R)(_),{countries:T,countriesCount:D,loading:P,loadMore:F,hasMore:B}=(0,v.f)({queryString:E,limit:g,includeInactive:$,offset:b,sort:A}),{setModal:q}=(0,k.f)(),{removeCountry:L}=(0,j.f)(),z=async r=>{await q((0,t.jsx)(w.f,{onCancelClick:async()=>q(""),message:e({id:"delete_country_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this country? "}),onOkClick:async()=>{q(""),await L({countryId:r}),a.c.success(e({id:"country_deleted",defaultMessage:"Country deleted successfully"}))},okText:e({id:"delete_country",defaultMessage:"Delete country"})}))};if(O)return(0,t.jsx)(N.default,{countryId:O});let U=1===D?e({id:"country_header",defaultMessage:"1 Country"}):e({id:"country_count_header",defaultMessage:"{count} Countries"},{count:(0,t.jsx)(M.f,{value:D})});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.f,{}),(0,t.jsx)(S.f,{title:e({id:"default_country_info_title",defaultMessage:"About base country"}),description:e({id:"default_country_info_description",defaultMessage:"If you support multiple countries, please set the base country by adjusting the environment variable UNCHAINED_COUNTRY, for ex. UNCHAINED_COUNTRY=ch. That way, Unchained knows what localization needs to be sent if it can not determine country from user agent set header"})}),(0,t.jsx)(u.f,{title:e({id:"countries_page_title",defaultMessage:"{count, plural, one {# Country} other {# Countries}}"},{count:D}),headerText:U,addPath:I(s.C.ManageCountries)&&"/country/new",addButtonText:e({id:"add_country",defaultMessage:"Add Country"})}),(0,t.jsxs)("div",{className:"min-w-full overflow-x-auto px-1",children:[(0,t.jsx)(i.f,{children:(0,t.jsx)(c.f,{toggleText:e({id:"show_inactive",defaultMessage:"Show Inactive"}),toggleKey:"includeInactive",active:$})}),(0,t.jsx)(C.f,{onSearchChange:e=>{let{skip:t,...r}=R;e?h({query:(0,p._)(r,e,"queryString")}):h({query:(0,p._)(R)})},defaultSearchValue:E,children:(0,t.jsx)(o.f,{loading:P,hasMore:B,onLoadMore:F,children:P&&T?.length===0?(0,t.jsx)(d.f,{}):(0,t.jsx)(y,{sortable:!0,countries:T,onRemoveCountry:z})})})]})]})}],99912)},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 n=e.i(98926);function i(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["f",0,function(e,o){let d=(0,n.f)(o?.client),[u,c]=r.useState(()=>i(d)),f=r.useRef({result:u,mutationId:0,isMounted:!0,client:d,mutation:e,options:o});l(()=>{Object.assign(f.current,{client:d,options:o,mutation:e})});let m=r.useCallback((e={})=>{let{options:r,mutation:l}=f.current,n={...r,mutation:l},i=e.client||f.current.client,o="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:i});let d=++f.current.mutationId,u=(0,s.f)(n,{...e,context:o});return(0,a.f)(i.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:i};f.current.isMounted&&!(0,t.f)(f.current.result,e)&&c(f.current.result=e)}let n=e.onCompleted||f.current.options?.onCompleted;return a||n?.(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:i};(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}))},[]),x=r.useCallback(()=>{if(f.current.isMounted){let e=i(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:x,...u}]}],76204)},76842,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",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{d:"m2.695 14.762-1.262 3.155a.5.5 0 0 0 .65.65l3.155-1.262a4 4 0 0 0 1.343-.886L17.5 5.501a2.121 2.121 0 0 0-3-3L3.58 13.419a4 4 0 0 0-.885 1.343Z"}))});e.s(["f",0,r],76842)},24557,e=>{var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z",clipRule:"evenodd"}))});e.s(["f",0,r],24557)},86712,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:"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"}))});e.s(["f",0,r],86712)},44112,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:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))});e.s(["f",0,r],44112)},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)},24608,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:"M6 18 18 6M6 6l12 12"}))});e.s(["f",0,r],24608)},9356,e=>{var t=e.i(35113);e.s(["f",0,function(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,t.f)(e)))}],9356)},49543,e=>{var t=e.i(35113);e.s(["f",0,function(e,r){let 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},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function o(e){return s.isMemo(e)?n:i[e.$$typeof]||a}i[s.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[s.Memo]=n;var d=Object.defineProperty,u=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,x=Object.prototype;t.exports=function e(t,r,s){if("string"!=typeof r){if(x){var a=m(r);a&&a!==x&&e(t,a,s)}var n=u(r);c&&(n=n.concat(c(r)));for(var i=o(t),h=o(r),g=0;g<n.length;++g){var p=n[g];if(!l[p]&&!(s&&s[p])&&!(h&&h[p])&&!(i&&i[p])){var b=f(r,p);try{d(t,p,b)}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,n=s?Symbol.for("react.fragment"):60107,i=s?Symbol.for("react.strict_mode"):60108,o=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,x=s?Symbol.for("react.suspense"):60113,h=s?Symbol.for("react.suspense_list"):60120,g=s?Symbol.for("react.memo"):60115,p=s?Symbol.for("react.lazy"):60116,b=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 w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case c:case f:case n:case o:case i:case x:return e;default:switch(e=e&&e.$$typeof){case u:case m:case p:case g:case d:return e;default:return t}}case l:return t}}}function k(e){return w(e)===f}r.AsyncMode=c,r.ConcurrentMode=f,r.ContextConsumer=u,r.ContextProvider=d,r.Element=a,r.ForwardRef=m,r.Fragment=n,r.Lazy=p,r.Memo=g,r.Portal=l,r.Profiler=o,r.StrictMode=i,r.Suspense=x,r.isAsyncMode=function(e){return k(e)||w(e)===c},r.isConcurrentMode=k,r.isContextConsumer=function(e){return w(e)===u},r.isContextProvider=function(e){return w(e)===d},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},r.isForwardRef=function(e){return w(e)===m},r.isFragment=function(e){return w(e)===n},r.isLazy=function(e){return w(e)===p},r.isMemo=function(e){return w(e)===g},r.isPortal=function(e){return w(e)===l},r.isProfiler=function(e){return w(e)===o},r.isStrictMode=function(e){return w(e)===i},r.isSuspense=function(e){return w(e)===x},r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===f||e===o||e===i||e===x||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===g||e.$$typeof===d||e.$$typeof===u||e.$$typeof===m||e.$$typeof===y||e.$$typeof===v||e.$$typeof===j||e.$$typeof===b)},r.typeOf=w},49957,(e,t,r)=>{e.i(50461),t.exports=e.r(40563)}],5955,(e,t,r)=>{let s="/country";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(99912)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([s])})}]);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[61494,e=>{var t=e.i(91398),r=e.i(41158),a=e.i(3828),s=e.i(69322);e.s(["f",0,({routeName:e=null,currentPageTitle:n=null,depth:o=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"},u=l.asPath?.split("/")?.filter((e,t)=>l.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],a=e?r:r.replace(/-/g," "),s=d[r];return{name:s?i({id:s,defaultMessage:a}):decodeURIComponent(a),path:c.replace(/.$/,"")}});return(0,t.jsx)("nav",{className:"mb-5 hidden sm:flex lg:mt-5 lg:mb-8","aria-label":"Breadcrumb",children:(0,t.jsx)("ol",{className:"flex items-center space-x-4",children:f?.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-center",children:[0!==a&&(0,t.jsx)("svg",{className:"mr-4 h-5 w-5 shrink-0 text-slate-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,t.jsx)(r.default,{href:e.path,className:"text-sm font-medium capitalize text-slate-500 dark:text-slate-400 dark:hover:text-slate-300 hover:text-slate-700 focus:outline-hidden focus:ring-2 focus:ring-slate-800 rounded-md px-1 py-1",children:a===f.length-1&&n?n:e.name})]})},e.path))})})}])},81013,e=>{var t=e.i(91398),r=e.i(72043);e.s(["f",0,({text:e,children:a,onClick:s,className:n="",disabled:o=!1,id:l="",variant:i="primary",size:d="md",type:u="button",loading:c=!1,icon:f,iconRight:m,fullWidth:p=!1,rounded:b="md",ariaLabel:g,...y})=>{let x=a||e,h=(f||m)&&x?"gap-2":"";return(0,t.jsx)("button",{id:l,type:u,disabled:o||c,onClick:s,"aria-label":g,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],h,{"w-full":p},n),...y,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"}),x]}):(0,t.jsxs)(t.Fragment,{children:[f,x,m]})})}])},17644,e=>{var t=e.i(91398),r=e.i(58678),a=e.i(41158),s=e.i(69322),n=e.i(37369),o=e.i(81013);e.s(["f",0,({headerText:e=null,onEdit:l=null,onDelete:i=null,children:d=null,title:u=null,addPath:c=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 - ",u||e," "]})}),(0,t.jsx)("div",{className:"flex gap-3 flex-wrap items-center justify-between",children:(0,t.jsxs)("div",{className:"flex items-center flex-wrap justify-between w-full gap-4",children:[e&&(0,t.jsx)("h2",{className:"text-2xl font-medium text-slate-900 dark:text-slate-300 sm:truncate sm:text-3xl lg:text-4xl",children:e}),(0,t.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[d,c&&(0,t.jsx)(a.default,{href:c,children:(0,t.jsx)(o.f,{variant:"secondary",icon:(0,t.jsx)(n.f,{className:"h-5 w-5"}),text:f||m({id:"add",defaultMessage:"Add"})})}),l&&(0,t.jsx)(o.f,{variant:"secondary",onClick:l,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),a=e.i(3828),s=e.i(83147);e.s(["f",0,({toggleText:e="",toggleKey:n=null,onToggle:o=null,active:l=!1,className:i="",disabled:d=!1,...u})=>{let c=(0,a.useRouter)(),f=c?.query?.[n]==="true"||l;return(0,t.jsxs)("div",{className:(0,r.default)("",i),children:[(0,t.jsxs)("button",{id:n,disabled:d,type:"button",className:(0,r.default)("relative inline-flex h-3.5 w-9 shrink-0 cursor-pointer rounded-full border-1 border-transparent transition-all duration-200 ease-in-out focus:outline-hidden focus:ring-2 focus:ring-slate-400 focus:ring-offset-2",{"bg-slate-200 dark:bg-slate-700":!f,"bg-emerald-500 dark:bg-emerald-600 shadow-sm":f}),role:"switch",onClick:o||(()=>{let{skip:e,...t}=c.query;c.push({query:(0,s._)(t,!f,n)})}),"aria-checked":f?"true":"false",...u,children:[(0,t.jsx)("span",{className:"sr-only",children:e}),(0,t.jsxs)("span",{className:(0,r.default)("ml-0.5 pointer-events-none relative inline-block h-3 w-3 transform rounded-full bg-white shadow-sm ring-0 transition-all duration-200 ease-in-out",{"translate-x-5 shadow-md":f,"translate-x-0":!f}),children:[(0,t.jsx)("span",{className:(0,r.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-0 duration-100 ease-out":f,"opacity-100 duration-200 ease-in":!f}),"aria-hidden":"true",children:(0,t.jsx)("svg",{className:"h-3 w-3 text-slate-400",fill:"none",viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)("span",{className:(0,r.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-100 duration-200 ease-in":f,"opacity-0 duration-100 ease-out":!f}),"aria-hidden":"true",children:(0,t.jsx)("svg",{className:"h-3 w-3 text-emerald-500",fill:"currentColor",viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"})})})]})]}),(0,t.jsx)("span",{className:"ml-3",id:"annual-billing-label",children:(0,t.jsx)("span",{className:"text-sm font-medium text-slate-900 dark:text-slate-200",children:e})})]})}])},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)])},83147,e=>{let t=e=>e&&e?.split(",").reduce((e,t)=>{let[r=null,a=null]=(t||"")?.split("_")||[];return{...e,[r]:a}},null)||{};e.s(["S",0,(...e)=>e.filter(Boolean).join(" "),"R",0,e=>Object.entries(t(e))?.map(([e,t])=>({key:e,value:t})),"D",0,e=>e?.label&&e?.version?`${e.label} ${e.version}`:"","v",0,t,"Q",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"region"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"j",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"currency"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"I",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"language"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"_",0,(e,t,r)=>{let a;return a=r?{...e,[r]:t}:e,Object.keys(a)?.map(e=>[e,a[e]].join("="))?.join("&")},"d",0,()=>({formatPrice:e=>{if(!e?.currencyCode)return"n/a";if(e?.amount===void 0||e?.amount===null)return"";let{amount:t,currencyCode:r}=e||{};return new Intl.NumberFormat(navigator.language,{style:"currency",currency:r}).format(t/100)}})])},80689,e=>{var t=e.i(91398),r=e.i(69322),a=e.i(66773),s=e.i(58971),n=e.i(1504),o=e.i(79093),l=e.i(64591),i=e.i(69211),d=e.i(73419),u=e.i(99160),c=e.i(45229),f=e.i(98949),m=e.i(82226);e.s(["f",0,({onSubmit:e,onSubmitSuccess:p=null,defaultValue:b={},isEdit:g=!1})=>{let{formatMessage:y}=(0,r.S)(),{hasRole:x}=(0,s.f)(),h=y({id:"country_added",defaultMessage:"Country added successfully!"}),v=y({id:"country_updated",defaultMessage:"Country updated successfully!"}),{currencies:k}=(0,o.f)(),j=(0,f.f)({submit:e,onSubmitSuccess:p,successMessage:g?v:h,getSubmitErrorMessage:e=>{if(e?.message?.includes("duplicate key"))return j.formik.setFieldError("isoCode",y({id:"country_exists",defaultMessage:"Country with the same ISO code already exists"})),null},enableReinitialize:!0,initialValues:{isoCode:"",...b}});return(0,t.jsxs)(i.f,{form:j,children:[(0,t.jsxs)("div",{className:"p-5 pb-7",children:[(0,t.jsx)(c.f,{name:"isoCode",id:"isoCode",validators:[(0,m.v)()],disabled:!x(a.C.ManageCountries),label:y({id:"iso_code",defaultMessage:"ISO code"}),required:!0,autoComplete:"on"}),g&&(0,t.jsxs)("div",{className:"my-3 min-w-0 flex-1",children:[(0,t.jsx)(d.f,{name:"defaultCurrencyCode",disabled:!x(a.C.ManageCountries),id:"defaultCurrencyCode",label:y({id:"default_currency",defaultMessage:"Default currency"}),options:(0,n.f)(k,"isoCode","isoCode"),className:"mb-2 text-sm"}),(0,t.jsx)(l.f,{toggleText:y({id:"active",defaultMessage:"Active"}),disabled:!x(a.C.ManageCountries),active:j.formik.values.isActive,onToggle:()=>j.formik.setFieldValue("isActive",!j.formik.values.isActive)})]})]}),x(a.C.ManageCountries)&&(0,t.jsx)("div",{className:"space-y-6 border-t border-t-slate-100 dark:border-t-slate-700 bg-slate-50 dark:bg-slate-900 p-5 text-right",children:(0,t.jsx)(u.f,{label:g?y({id:"update_country",defaultMessage:"Update Country"}):y({id:"add_country",defaultMessage:"Add Country"})})})]})}])},68191,e=>{var t=e.i(59080);let r=t.f`
|
|
2
|
+
fragment CurrencyFragment on Currency {
|
|
3
|
+
_id
|
|
4
|
+
isoCode
|
|
5
|
+
isActive
|
|
6
|
+
contractAddress
|
|
7
|
+
decimals
|
|
8
|
+
}
|
|
9
|
+
`;e.s(["f",0,r])},79093,e=>{var t=e.i(59080),r=e.i(32171),a=e.i(68191);let s=t.f`
|
|
10
|
+
query Currencies(
|
|
11
|
+
$queryString: String
|
|
12
|
+
$limit: Int
|
|
13
|
+
$offset: Int
|
|
14
|
+
$includeInactive: Boolean
|
|
15
|
+
$sort: [SortOptionInput!]
|
|
16
|
+
) {
|
|
17
|
+
currencies(
|
|
18
|
+
queryString: $queryString
|
|
19
|
+
limit: $limit
|
|
20
|
+
offset: $offset
|
|
21
|
+
includeInactive: $includeInactive
|
|
22
|
+
sort: $sort
|
|
23
|
+
) {
|
|
24
|
+
...CurrencyFragment
|
|
25
|
+
}
|
|
26
|
+
currenciesCount(
|
|
27
|
+
includeInactive: $includeInactive
|
|
28
|
+
queryString: $queryString
|
|
29
|
+
)
|
|
30
|
+
}
|
|
31
|
+
${a.f}
|
|
32
|
+
`;e.s(["f",0,({queryString:e="",limit:t=20,offset:a=0,includeInactive:n=!0,sort:o=[]}={})=>{let{data:l,loading:i,error:d,fetchMore:u}=(0,r.f)(s,{variables:{queryString:e,limit:t,offset:a,includeInactive:n,sort:o}}),c=l?.currencies||[],f=l?.currenciesCount,m=c?.length<f;return{currencies:c,currenciesCount:f,hasMore:m,loading:i,error:d,loadMore:()=>{u({variables:{offset:c?.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:n,...o}=(0,a.f)(e),{className:l}=e||{className:""};return(0,t.jsx)(s.f,{...o,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":!!o.error}),disabled:o.disabled,id:o.name,name:o.name,onChange:o.onChange,onBlur:o.onBlur,value:o.value,children:[(0,t.jsx)("option",{className:"dark:text-slate-200",value:"",disabled:o.required,hidden:o.required,children:o.placeholder||o.label}),Object.entries(n).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:n=!1,className:o="",hidden:l=!1,...i})=>{let d=(0,a.m)(),{...u}=i,c=Object.fromEntries(Object.keys(d.initialValues).map(e=>[e,d.getFieldMeta(e)])),{disabled:f}=(0,s.f)(),m=Object.values(c).reduce((e,{error:t,touched:r})=>e||t&&r,!1),p=n||f||d.isSubmitting||m,b=d.isSubmitting&&!m,g=(n||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":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:l}),"aria-label":e,type:"submit",value:e,disabled:p,...u})}])},45229,e=>{var t=e.i(91398),r=e.i(72043),a=e.i(82226),s=e.i(60741),n=e.i(29691);e.s(["f",0,({maxLength:e=0,validators:o=[],...l})=>{let i=(0,s.f)({validators:[...o,e&&(0,a.f)(e)],...l});return(0,t.jsx)(n.f,{...i,children:(0,t.jsx)("input",{className:(0,r.default)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-600 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 focus:outline-hidden focus:ring-2 focus:ring-slate-800 shadow-xs",{"border-rose-700 placeholder:text-rose-500":!!i.error,"border-slate-300 placeholder-slate-400":!i.error}),disabled:i.disabled,id:i.name,name:i.name,onChange:i.onChange,onClick:e=>{e.stopPropagation()},onBlur:i.onBlur,placeholder:i.placeholder,autoComplete:i.autoComplete||"off",type:i.type||"text",value:i.value,autoFocus:i.autoFocus})})}])},5219,e=>{var t=e.i(91398),r=e.i(3828),a=e.i(69322),s=e.i(61494),n=e.i(5505),o=e.i(17644),l=e.i(80689),i=e.i(59080),d=e.i(76204),u=e.i(77846);let c=i.f`
|
|
33
|
+
mutation CreateCountry($country: CreateCountryInput!) {
|
|
34
|
+
createCountry(country: $country) {
|
|
35
|
+
...CountryFragment
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
${u.f}
|
|
39
|
+
`;e.s(["default",0,()=>{let{formatMessage:e}=(0,a.S)(),{replace:i}=(0,r.useRouter)(),{createCountry:u}=(()=>{let[e,{data:t,loading:r,error:a}]=(0,d.f)(c);return{createCountry:async({country:t})=>e({variables:{country:t},refetchQueries:["Countries","ShopStatus","ShopInfo"]}),newCountry:t?.createCountry,loading:r,error:a}})(),f=async({isoCode:e})=>{let{data:t,error:r}=await u({country:{isoCode:e}});return!r&&{success:!0,data:t?.createCountry}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.f,{}),(0,t.jsxs)("div",{className:"mx-auto sm:max-w-2xl",children:[(0,t.jsx)(o.f,{headerText:e({id:"new_country_header",defaultMessage:"New country"})}),(0,t.jsx)("div",{className:"mt-6 sm:max-w-xl",children:(0,t.jsx)(n.U,{children:(0,t.jsx)(l.f,{onSubmitSuccess:(e,{_id:t})=>{i(`/country?countryId=${t}`)},onSubmit:f})})})]})]})}],5219)},76204,e=>{var t=e.i(24669),r=e.i(91788),a=e.i(30928),s=e.i(52006);let n=e.i(21953).f?r.useLayoutEffect:r.useEffect;var o=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,o.f)(i?.client),[u,c]=r.useState(()=>l(d)),f=r.useRef({result:u,mutationId:0,isMounted:!0,client:d,mutation:e,options:i});n(()=>{Object.assign(f.current,{client:d,options:i,mutation:e})});let m=r.useCallback((e={})=>{let{options:r,mutation:n}=f.current,o={...r,mutation:n},l=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:l});let d=++f.current.mutationId,u=(0,a.f)(o,{...e,context:i});return(0,s.f)(l.mutate(u).then(r=>{let{data:a,error:s}=r,n=e.onError||f.current.options?.onError;if(s&&n&&n(s,u),d===f.current.mutationId){let e={called:!0,loading:!1,data:a,error:s,client:l};f.current.isMounted&&!(0,t.f)(f.current.result,e)&&c(f.current.result=e)}let o=e.onCompleted||f.current.options?.onCompleted;return s||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:l};(0,t.f)(f.current.result,e)||c(f.current.result=e)}let a=e.onError||f.current.options?.onError;throw a&&a(r,u),r}))},[]),p=r.useCallback(()=>{if(f.current.isMounted){let e=l(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,...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},n={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},l={};function i(e){return a.isMemo(e)?o:l[e.$$typeof]||s}l[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[a.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,a){if("string"!=typeof r){if(p){var s=m(r);s&&s!==p&&e(t,s,a)}var o=u(r);c&&(o=o.concat(c(r)));for(var l=i(t),b=i(r),g=0;g<o.length;++g){var y=o[g];if(!n[y]&&!(a&&a[y])&&!(b&&b[y])&&!(l&&l[y])){var x=f(r,y);try{d(t,y,x)}catch(e){}}}}return t}},40563,(e,t,r)=>{var a="function"==typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103,n=a?Symbol.for("react.portal"):60106,o=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,u=a?Symbol.for("react.context"):60110,c=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,x=a?Symbol.for("react.block"):60121,h=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 t=e.$$typeof;switch(t){case s:switch(e=e.type){case c:case f:case o:case i:case l:case p:return e;default:switch(e=e&&e.$$typeof){case u:case m:case y:case g:case d:return e;default:return t}}case n:return t}}}function w(e){return j(e)===f}r.AsyncMode=c,r.ConcurrentMode=f,r.ContextConsumer=u,r.ContextProvider=d,r.Element=s,r.ForwardRef=m,r.Fragment=o,r.Lazy=y,r.Memo=g,r.Portal=n,r.Profiler=i,r.StrictMode=l,r.Suspense=p,r.isAsyncMode=function(e){return w(e)||j(e)===c},r.isConcurrentMode=w,r.isContextConsumer=function(e){return j(e)===u},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)===o},r.isLazy=function(e){return j(e)===y},r.isMemo=function(e){return j(e)===g},r.isPortal=function(e){return j(e)===n},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===o||e===f||e===i||e===l||e===p||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===d||e.$$typeof===u||e.$$typeof===m||e.$$typeof===h||e.$$typeof===v||e.$$typeof===k||e.$$typeof===x)},r.typeOf=j},49957,(e,t,r)=>{e.i(50461),t.exports=e.r(40563)}],26458,(e,t,r)=>{let a="/country/new";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(5219)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([a])})}]);
|