@unchainedshop/admin-ui 4.9.0 → 4.9.1
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-WPLOTFGW.js → chunk-2HTCKO4E.js} +12 -3
- package/dist/{chunk-PJLYVMUM.js → chunk-4MXPTVDL.js} +2 -2
- package/dist/{chunk-I64TXIE7.js → chunk-ATZJXTRA.js} +1 -1
- package/dist/{chunk-QHR23GVH.js → chunk-CUYIP5XG.js} +1 -1
- package/dist/{chunk-5WPFHQZN.js → chunk-E6HDJYA6.js} +3 -3
- package/dist/{chunk-FDHXLNZQ.js → chunk-EAVP6XZQ.js} +1 -1
- package/dist/{chunk-E77YIMGR.js → chunk-ED2FP42R.js} +1 -1
- package/dist/{chunk-HJKRGBDG.js → chunk-GWMLIF3C.js} +1 -1
- package/dist/{chunk-3L6EZQ6P.js → chunk-NFJE5EJG.js} +1 -1
- package/dist/{chunk-BMDNY67T.js → chunk-PGJTFYBT.js} +1385 -932
- package/dist/{chunk-ICJH36K4.js → chunk-YUXHILXY.js} +1 -1
- package/dist/form.js +797 -286
- package/dist/hooks.js +3 -3
- package/dist/modal.js +5 -5
- package/dist/modules/accounts.js +1 -1
- package/dist/modules/assortment.js +1 -1
- 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 +1 -1
- package/dist/modules/event.js +1 -1
- package/dist/modules/filter.js +1 -1
- package/dist/modules/language.js +1 -1
- package/dist/modules/order.js +1 -1
- package/dist/modules/payment-providers.js +1 -1
- package/dist/modules/product-review.js +1 -1
- package/dist/modules/product.js +5 -5
- package/dist/modules/quotation.js +1 -1
- package/dist/modules/token.js +1 -1
- package/dist/modules/warehousing-providers.js +1 -1
- package/dist/modules/work.js +1 -1
- package/dist/plugins.js +1 -1
- package/dist/providers.js +5 -5
- 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 +3884 -3401
- package/out/403/index.html +3 -3
- package/out/404/index.html +3 -3
- package/out/404.html +3 -3
- package/out/423/index.html +3 -3
- package/out/500/index.html +3 -3
- package/out/_next/static/3N8lTawkhD5WNCBa3Xrre/_buildManifest.js +258 -0
- package/out/_next/static/chunks/0-66i4h-noxvn.js +7 -0
- package/out/_next/static/chunks/0-wbl3cr3959x.js +1 -0
- package/out/_next/static/chunks/01bmb-z2nror5.js +63 -0
- package/out/_next/static/chunks/01ehk69jm7o3h.js +1 -0
- package/out/_next/static/chunks/01v4zuf_1s632.js +24 -0
- package/out/_next/static/chunks/02bw09719wk6m.js +59 -0
- package/out/_next/static/chunks/04u9l5z90u8zc.js +108 -0
- package/out/_next/static/chunks/{439tz_ubj8h-g.js → 05kae8xt4d-mt.js} +9 -9
- package/out/_next/static/chunks/060-0-y0yq4tn.js +4 -0
- package/out/_next/static/chunks/06umepciqel5y.js +15 -0
- package/out/_next/static/chunks/{2rmgaa88-4bpb.js → 07oa-1j75vunn.js} +4 -4
- package/out/_next/static/chunks/{0zzoylv2rl1xu.js → 07qh9c3qklj41.js} +1 -1
- package/out/_next/static/chunks/08aonh4sng6e2.js +7 -0
- package/out/_next/static/chunks/08u8uu0r0k0o9.js +9 -0
- package/out/_next/static/chunks/096x-m7s73l-c.js +1 -0
- package/out/_next/static/chunks/0ab6zl-u7ml1p.js +5 -0
- package/out/_next/static/chunks/{40l5d7o95aw37.js → 0bvh9mjjgn_w3.js} +1 -1
- package/out/_next/static/chunks/0crno_6ew111i.js +8 -0
- package/out/_next/static/chunks/0czpir4zjwmos.js +1 -0
- package/out/_next/static/chunks/0fogiqvh9bznp.js +2 -0
- package/out/_next/static/chunks/0g1uyaoneybnf.js +41 -0
- package/out/_next/static/chunks/0h373kx_wlwzy.js +1 -0
- package/out/_next/static/chunks/0h7smollos00x.js +6 -0
- package/out/_next/static/chunks/{2hoi6cb1lromr.js → 0hq9p72y7ki0h.js} +1 -1
- package/out/_next/static/chunks/0hqvf-b6yry5-.js +12 -0
- package/out/_next/static/chunks/0ikig1vazlo5p.js +1 -0
- package/out/_next/static/chunks/0jol393fjamwq.js +277 -0
- package/out/_next/static/chunks/0jr0_6oupairk.js +13 -0
- package/out/_next/static/chunks/0l0hzoqd-va5-.js +1 -0
- package/out/_next/static/chunks/0m006z-rbif-h.js +5 -0
- package/out/_next/static/chunks/0nsa2b75vwe9r.js +43 -0
- package/out/_next/static/chunks/0oeas4d1fnzbb.js +36 -0
- package/out/_next/static/chunks/0q7n10ncl7jak.js +119 -0
- package/out/_next/static/chunks/0qyx2854lfah9.js +152 -0
- package/out/_next/static/chunks/0rjrvdq5w-984.js +78 -0
- package/out/_next/static/chunks/0tavmhzr7m3u9.js +5 -0
- package/out/_next/static/chunks/0tp8_k14lgo7i.js +12 -0
- package/out/_next/static/chunks/{1tkvi0wb-x3v8.js → 0u290yfuv_u2_.js} +2 -2
- package/out/_next/static/chunks/0u_zr87ce7iu-.js +1 -0
- package/out/_next/static/chunks/0v2v5x8dtpfh6.js +7 -0
- package/out/_next/static/chunks/0var4u7x1jrna.js +1 -0
- package/out/_next/static/chunks/0vik72soxnie0.js +32 -0
- package/out/_next/static/chunks/0xry2ss7g-gk_.js +33 -0
- package/out/_next/static/chunks/0xywzizg7ntfd.js +44 -0
- package/out/_next/static/chunks/0y3lr_rwmezii.js +1 -0
- package/out/_next/static/chunks/0zvpipo0q47xl.js +15 -0
- package/out/_next/static/chunks/1-jp7as2d7zp6.js +44 -0
- package/out/_next/static/chunks/10jrq6wew06i6.js +23 -0
- package/out/_next/static/chunks/1164-c5abnfyy.js +5 -0
- package/out/_next/static/chunks/{3qzrrjb48t2w3.js → 119d8cbr8mij2.js} +5 -5
- package/out/_next/static/chunks/122a0xxhrak7b.js +1 -0
- package/out/_next/static/chunks/129-110-fx4g2.js +277 -0
- package/out/_next/static/chunks/12hh2h53sa5vl.js +33 -0
- package/out/_next/static/chunks/14qvgxj89rj3h.js +16 -0
- package/out/_next/static/chunks/179acu8_sgizp.js +4 -0
- package/out/_next/static/chunks/1a120nyn1xssj.js +46 -0
- package/out/_next/static/chunks/1ata93ftwo5e5.js +1 -0
- package/out/_next/static/chunks/1ca5de-nq28g5.js +5 -0
- package/out/_next/static/chunks/1cm161_p0htmv.js +6 -0
- package/out/_next/static/chunks/1cp5rjbtbj7im.js +7 -0
- package/out/_next/static/chunks/1d-xju_35oiky.js +7 -0
- package/out/_next/static/chunks/1d2l6vs2y96io.js +5 -0
- package/out/_next/static/chunks/1dedrypk-h8qr.js +1 -0
- package/out/_next/static/chunks/1dl-ild2tc5fi.js +10 -0
- package/out/_next/static/chunks/1eh2ap8tgodgp.js +224 -0
- package/out/_next/static/chunks/1eq7kau-2figm.js +81 -0
- package/out/_next/static/chunks/1h9sc720aq7zm.js +5 -0
- package/out/_next/static/chunks/1igwz8p4ycvw8.js +68 -0
- package/out/_next/static/chunks/1kti-rwl34_4h.js +194 -0
- package/out/_next/static/chunks/{2ho4591ngh3y2.js → 1l_4m35yky3vy.js} +6 -6
- package/out/_next/static/chunks/1n3dc-2mpab65.js +39 -0
- package/out/_next/static/chunks/1nmwo96drt-k-.js +18 -0
- package/out/_next/static/chunks/1o2f_mtcw23zu.js +7 -0
- package/out/_next/static/chunks/1p6gh68l05_ak.js +1 -0
- package/out/_next/static/chunks/1sf71q2hkno8s.js +43 -0
- package/out/_next/static/chunks/{1gqd9vrno0rq4.js → 1u0hy0trwf8uk.js} +2 -2
- package/out/_next/static/chunks/1w22i299136_d.js +5 -0
- package/out/_next/static/chunks/1w69w7bav5fw7.js +5 -0
- package/out/_next/static/chunks/1xjtni6_z8nxp.js +15 -0
- package/out/_next/static/chunks/1y-db7_k0jgmb.js +1 -0
- package/out/_next/static/chunks/1y7wv_pb43doo.js +31 -0
- package/out/_next/static/chunks/1y84xua0xgwrn.js +39 -0
- package/out/_next/static/chunks/1yqexzm6_8pjh.js +71 -0
- package/out/_next/static/chunks/1zsrg53se30e4.js +7 -0
- package/out/_next/static/chunks/2-e86kt6vo58k.js +24 -0
- package/out/_next/static/chunks/2-lj_k3ewua_k.js +71 -0
- package/out/_next/static/chunks/2-omz_z29hp_j.js +1 -0
- package/out/_next/static/chunks/21hoklicpietg.js +41 -0
- package/out/_next/static/chunks/22kqizuxl67c-.js +108 -0
- package/out/_next/static/chunks/22odam86c8kps.js +1 -0
- package/out/_next/static/chunks/23wfelj92rx3n.js +1 -0
- package/out/_next/static/chunks/259obwu0l4d7_.js +8 -0
- package/out/_next/static/chunks/{22-o32hlte36e.js → 25k-q1asg1of_.js} +6 -6
- package/out/_next/static/chunks/28cyd6sk-kr-8.js +8 -0
- package/out/_next/static/chunks/{3vgurvjr6hkyv.js → 29j-tq9ymqima.js} +1 -1
- package/out/_next/static/chunks/29lz37yh8ev4g.js +267 -0
- package/out/_next/static/chunks/29qzk6rf1oo1g.js +8 -0
- package/out/_next/static/chunks/2_0nlvri-u3yb.js +5 -0
- package/out/_next/static/chunks/2_ebmmbmnfung.js +5 -0
- package/out/_next/static/chunks/2_nlmvpwjvbuc.js +1 -0
- package/out/_next/static/chunks/2abvgs_fkmp8g.js +12 -0
- package/out/_next/static/chunks/2ad3aff-kd860.js +16 -0
- package/out/_next/static/chunks/2asfqwl1f6ptd.js +71 -0
- package/out/_next/static/chunks/2bo7flfdpsojx.js +1 -0
- package/out/_next/static/chunks/2c3pj-ifdt9sv.js +8 -0
- package/out/_next/static/chunks/{1_55km6vm5mc0.js → 2dem0g4wrt39t.js} +5 -5
- package/out/_next/static/chunks/{153ec1_-yt3jb.js → 2dg0lloufpbdb.js} +5 -5
- package/out/_next/static/chunks/2e-u5srw2p0n6.js +23 -0
- package/out/_next/static/chunks/2fxjo2s_nsjsa.js +5 -0
- package/out/_next/static/chunks/2gfl5yx5-dzk7.js +5 -0
- package/out/_next/static/chunks/2gqvhjmjfypz9.js +6 -0
- package/out/_next/static/chunks/2hqwx9e8xxk58.js +1 -0
- package/out/_next/static/chunks/2hthxhwh84ls1.css +1 -0
- package/out/_next/static/chunks/2jro0zgoal0kz.js +39 -0
- package/out/_next/static/chunks/2khmu80rhpzi0.js +7 -0
- package/out/_next/static/chunks/2luj-95aqr25b.js +1 -0
- package/out/_next/static/chunks/2mohqnh8393k0.js +935 -0
- package/out/_next/static/chunks/{11ehf3t7qzbua.js → 2ozm0eim2f3sc.js} +1 -1
- package/out/_next/static/chunks/2pass0agqwhhu.js +30 -0
- package/out/_next/static/chunks/2q16yoj85f5--.js +217 -0
- package/out/_next/static/chunks/2qgzju2ps7tn2.js +5 -0
- package/out/_next/static/chunks/2qmtn9qs15pe6.js +23 -0
- package/out/_next/static/chunks/2starzmj1ng6d.js +13 -0
- package/out/_next/static/chunks/2tltorbhbyodj.js +1 -0
- package/out/_next/static/chunks/2u8vf0tm3oweg.js +145 -0
- package/out/_next/static/chunks/2xq9wvqdb609r.js +1 -0
- package/out/_next/static/chunks/2ye-zd_107wh_.js +6 -0
- package/out/_next/static/chunks/2yttr5mp9mh23.js +171 -0
- package/out/_next/static/chunks/2z6e-_lzi04v4.js +149 -0
- package/out/_next/static/chunks/2z_zbj33aeywz.js +5 -0
- package/out/_next/static/chunks/2zq9_3p7cg3wb.js +9 -0
- package/out/_next/static/chunks/2zuoqtb2013in.js +7 -0
- package/out/_next/static/chunks/302pe6kwodzps.js +31 -0
- package/out/_next/static/chunks/30c42kdwlkc30.js +7 -0
- package/out/_next/static/chunks/30jqt_vus0ht9.js +1 -0
- package/out/_next/static/chunks/30lj8m3h07k4v.js +1 -0
- package/out/_next/static/chunks/3328j3xx0enu_.js +1 -0
- package/out/_next/static/chunks/339grcmrh2be_.js +1 -0
- package/out/_next/static/chunks/33pzdslirf1vx.js +6 -0
- package/out/_next/static/chunks/33s24dpx0eo63.js +2 -0
- package/out/_next/static/chunks/33w88h3hbfzbk.js +1 -0
- package/out/_next/static/chunks/35wqmtcm47y_w.js +39 -0
- package/out/_next/static/chunks/36o0xcj8l-mau.js +9 -0
- package/out/_next/static/chunks/37lm6c8w-c7bs.js +5 -0
- package/out/_next/static/chunks/37y01hdz8sxhr.js +1 -0
- package/out/_next/static/chunks/38op2tjm2a38-.js +10 -0
- package/out/_next/static/chunks/398z-133dgtem.js +14 -0
- package/out/_next/static/chunks/39_3a5rlqmxjd.js +5 -0
- package/out/_next/static/chunks/3admj5_pwyksw.js +1 -0
- package/out/_next/static/chunks/3c7j6t3by9tj7.js +155 -0
- package/out/_next/static/chunks/3cyj5euwvlu1t.js +1 -0
- package/out/_next/static/chunks/3d8yko5j3oni7.js +100 -0
- package/out/_next/static/chunks/3de9en65e-2qx.js +1 -0
- package/out/_next/static/chunks/3f_aw3x3h5zrb.js +54 -0
- package/out/_next/static/chunks/3fdcfxfy7_ijd.js +5 -0
- package/out/_next/static/chunks/3g-zjnc7_4583.js +1 -0
- package/out/_next/static/chunks/3h22kt6ngwxji.js +12 -0
- package/out/_next/static/chunks/3id1esivwnwn0.js +5 -0
- package/out/_next/static/chunks/{3fqonijzsxy8u.js → 3jy48b2yol0pg.js} +1 -1
- package/out/_next/static/chunks/3k_w16w3eoy6p.js +7 -0
- package/out/_next/static/chunks/3ks-dq47wvmwf.js +5 -0
- package/out/_next/static/chunks/3lch4_9c5hsbw.js +5 -0
- package/out/_next/static/chunks/3lirqns-0nf0z.js +5 -0
- package/out/_next/static/chunks/{1hviha1jcz_og.js → 3o83hyi0qcw6f.js} +1 -1
- package/out/_next/static/chunks/3ot810y4c4j5w.js +7 -0
- package/out/_next/static/chunks/3q2g8_47dz6k3.js +95 -0
- package/out/_next/static/chunks/{0q2e8h8498pvo.js → 3qqhr2o1soxh_.js} +1 -1
- package/out/_next/static/chunks/3s0alhaimym6o.js +61 -0
- package/out/_next/static/chunks/3sull2f3eleju.js +6 -0
- package/out/_next/static/chunks/3tzv_v3fezh8p.js +1 -0
- package/out/_next/static/chunks/3uekb_s0jaboj.js +1 -0
- package/out/_next/static/chunks/3xtawjchyn0qb.js +1 -0
- package/out/_next/static/chunks/3xze13c1irm_5.js +1 -0
- package/out/_next/static/chunks/3z14p5htgyrv9.js +7 -0
- package/out/_next/static/chunks/40tteajtwsyj8.js +116 -0
- package/out/_next/static/chunks/40vdr7s_c0h75.js +8 -0
- package/out/_next/static/chunks/41184_al87--k.js +46 -0
- package/out/_next/static/chunks/42iy04ceb32i1.js +5 -0
- package/out/_next/static/chunks/438vgwwahfwwj.js +54 -0
- package/out/_next/static/chunks/44l-287ai2bc0.js +12 -0
- package/out/_next/static/chunks/44p9j-nopxm66.js +1 -0
- package/out/_next/static/chunks/{turbopack-2c3mg3r-05n1w.js → turbopack-077hmtqrhcoji.js} +1 -1
- package/out/_offline/index.html +3 -3
- package/out/account/forgot-password/index.html +3 -3
- package/out/account/index.html +3 -3
- package/out/assortments/AssortmentDetailPage/index.html +3 -3
- package/out/assortments/index.html +3 -3
- package/out/assortments/new/index.html +3 -3
- package/out/copilot/index.html +3 -3
- package/out/country/CountryDetailPage/index.html +3 -3
- package/out/country/index.html +3 -3
- package/out/country/new/index.html +3 -3
- package/out/currency/CurrencyDetailPage/index.html +3 -3
- package/out/currency/index.html +3 -3
- package/out/currency/new/index.html +3 -3
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -3
- package/out/delivery-provider/index.html +3 -3
- package/out/delivery-provider/new/index.html +3 -3
- package/out/enrollments/EnrollmentDetailPage/index.html +3 -3
- package/out/enrollments/index.html +3 -3
- package/out/events/EventDetailPage/index.html +3 -3
- package/out/events/index.html +3 -3
- package/out/exports/index.html +3 -3
- package/out/external/index.html +3 -3
- package/out/filters/FilterDetailPage/index.html +3 -3
- package/out/filters/index.html +3 -3
- package/out/filters/new/index.html +3 -3
- package/out/index.html +3 -3
- package/out/install/index.html +3 -3
- package/out/language/LanguageDetailPage/index.html +3 -3
- package/out/language/index.html +3 -3
- package/out/language/new/index.html +3 -3
- package/out/log-in/index.html +3 -3
- package/out/orders/OrderDetailPage/index.html +3 -3
- package/out/orders/index.html +3 -3
- package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -3
- package/out/payment-provider/index.html +3 -3
- package/out/payment-provider/new/index.html +3 -3
- package/out/products/ProductDetailPage/index.html +3 -3
- package/out/products/index.html +3 -3
- package/out/products/new/index.html +3 -3
- package/out/quotations/QuotationDetailPage/index.html +3 -3
- package/out/quotations/index.html +3 -3
- package/out/reset-password/index.html +3 -3
- package/out/sign-up/index.html +3 -3
- package/out/styleguide/index.html +3 -3
- package/out/tokens/TokenDetailPage/index.html +3 -3
- package/out/tokens/index.html +3 -3
- package/out/users/UserDetailPage/index.html +3 -3
- package/out/users/index.html +3 -3
- package/out/users/new/index.html +3 -3
- package/out/verify-email/index.html +3 -3
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -3
- package/out/warehousing-provider/index.html +3 -3
- package/out/warehousing-provider/new/index.html +3 -3
- package/out/works/WorkDetailPage/index.html +3 -3
- package/out/works/WorkQueueListView/index.html +3 -3
- package/out/works/index.html +3 -3
- package/out/works/management/index.html +3 -3
- package/package.json +26 -26
- package/out/_next/static/chunks/0-_s79k4_7ei_.js +0 -5
- package/out/_next/static/chunks/00aks9rqke2x0.js +0 -7
- package/out/_next/static/chunks/00az81dk4vdda.js +0 -54
- package/out/_next/static/chunks/01e4gd649r2tq.js +0 -7
- package/out/_next/static/chunks/01j2wi94k90x0.js +0 -5
- package/out/_next/static/chunks/043i-g05cyvrd.js +0 -1
- package/out/_next/static/chunks/04kyktzbxprj0.js +0 -61
- package/out/_next/static/chunks/05p330iybjojg.js +0 -44
- package/out/_next/static/chunks/05qk8ozexvlxp.js +0 -5
- package/out/_next/static/chunks/06i50j458a7g5.js +0 -12
- package/out/_next/static/chunks/08o61gwabp3h1.js +0 -33
- package/out/_next/static/chunks/0_bvgo8ev4gs7.js +0 -7
- package/out/_next/static/chunks/0b05sca2hdcys.js +0 -30
- package/out/_next/static/chunks/0bc8hmxlcg6h5.js +0 -18
- package/out/_next/static/chunks/0c3kwkqr9evm4.js +0 -5
- package/out/_next/static/chunks/0c4jv8pwvpxei.js +0 -1
- package/out/_next/static/chunks/0c7ljn9lo_0oh.js +0 -5
- package/out/_next/static/chunks/0djb38xrt32ao.js +0 -12
- package/out/_next/static/chunks/0drw_p7p-jjq1.js +0 -5
- package/out/_next/static/chunks/0ewr86ctcw7fx.js +0 -1
- package/out/_next/static/chunks/0hz0qu27uks3z.js +0 -8
- package/out/_next/static/chunks/0jham55cr3rhy.js +0 -81
- package/out/_next/static/chunks/0lr7o7tyjmrmf.js +0 -8
- package/out/_next/static/chunks/0mx8opz23nwlb.js +0 -5
- package/out/_next/static/chunks/0o0e82-3pc7ur.js +0 -78
- package/out/_next/static/chunks/0ohk7l49gjm62.js +0 -5
- package/out/_next/static/chunks/0p31l6a9hynnt.js +0 -6
- package/out/_next/static/chunks/0qa-zbgmv-k3p.js +0 -9
- package/out/_next/static/chunks/0rzjz052fwjjc.js +0 -12
- package/out/_next/static/chunks/0skst735jufgh.js +0 -71
- package/out/_next/static/chunks/0t28q5fb2jp-6.js +0 -8
- package/out/_next/static/chunks/0tmamaq8exyij.js +0 -1
- package/out/_next/static/chunks/0ydy3ky15gx62.js +0 -1
- package/out/_next/static/chunks/0zh311lu9jf2x.js +0 -5
- package/out/_next/static/chunks/0zpyyygbqx3pf.js +0 -152
- package/out/_next/static/chunks/10m_etq9t2pkv.js +0 -7
- package/out/_next/static/chunks/16le3cqxj12u6.js +0 -5
- package/out/_next/static/chunks/16zxfacsu_jbq.js +0 -1
- package/out/_next/static/chunks/170d-jbu8ilzu.js +0 -100
- package/out/_next/static/chunks/17fibl49qtd6c.js +0 -8
- package/out/_next/static/chunks/182l1mlbf0glb.js +0 -1
- package/out/_next/static/chunks/18xyj4i_i5lyn.js +0 -6
- package/out/_next/static/chunks/1a9-pdm78ri7r.js +0 -1
- package/out/_next/static/chunks/1aej6iqnlr74p.js +0 -1
- package/out/_next/static/chunks/1asbed4hne69c.js +0 -7
- package/out/_next/static/chunks/1c60nzy_x4kez.js +0 -277
- package/out/_next/static/chunks/1c77vl6xdqfd4.js +0 -15
- package/out/_next/static/chunks/1da89agg-nacc.js +0 -224
- package/out/_next/static/chunks/1epju6xepfqtq.js +0 -2
- package/out/_next/static/chunks/1fbsyczyh9hwh.js +0 -1
- package/out/_next/static/chunks/1hih2cxmgqcd3.js +0 -10
- package/out/_next/static/chunks/1il9vuoxtb2_n.js +0 -43
- package/out/_next/static/chunks/1jaatdt0mlypl.js +0 -16
- package/out/_next/static/chunks/1l4g6_of_bbr8.js +0 -5
- package/out/_next/static/chunks/1lezxecnoaxnn.js +0 -32
- package/out/_next/static/chunks/1m27au_nmk8_k.js +0 -71
- package/out/_next/static/chunks/1m4fwgl1mj4d-.js +0 -46
- package/out/_next/static/chunks/1ma82ip9shpkc.js +0 -24
- package/out/_next/static/chunks/1nbh1zkzirnuw.js +0 -1
- package/out/_next/static/chunks/1nohf8_cc6gmw.js +0 -9
- package/out/_next/static/chunks/1os6pvhjeb16o.js +0 -1
- package/out/_next/static/chunks/1r0w-hk6d2kqw.js +0 -15
- package/out/_next/static/chunks/1rsexg6dg82f0.js +0 -7
- package/out/_next/static/chunks/1u79pcgqjgjpq.js +0 -1
- package/out/_next/static/chunks/1uqiaqtv_0v2x.js +0 -5
- package/out/_next/static/chunks/1x8o-luxdxxk7.js +0 -1
- package/out/_next/static/chunks/1yjb7gogaf8po.js +0 -31
- package/out/_next/static/chunks/1zyhzessv0wtg.js +0 -1
- package/out/_next/static/chunks/2-pl31kdikt3k.js +0 -5
- package/out/_next/static/chunks/20c4_1i5r3kkz.js +0 -1
- package/out/_next/static/chunks/20zdaln201w8j.js +0 -277
- package/out/_next/static/chunks/21l46nbaop06z.js +0 -39
- package/out/_next/static/chunks/231j2_p-ha14w.js +0 -7
- package/out/_next/static/chunks/23s2f7_-ol94s.js +0 -8
- package/out/_next/static/chunks/25frktmrq-xu0.js +0 -1
- package/out/_next/static/chunks/26_mx-ritu68j.js +0 -24
- package/out/_next/static/chunks/26ckmxeluyknq.js +0 -1
- package/out/_next/static/chunks/26r0y7ldf3iqs.js +0 -6
- package/out/_next/static/chunks/27fzoozwycagi.js +0 -6
- package/out/_next/static/chunks/27jmq7a-vh0b4.js +0 -7
- package/out/_next/static/chunks/283567a82x9qi.js +0 -149
- package/out/_next/static/chunks/29he8uukp5s4u.js +0 -31
- package/out/_next/static/chunks/2adglo0sf0jcg.js +0 -905
- package/out/_next/static/chunks/2ajr0rk0_yax6.js +0 -1
- package/out/_next/static/chunks/2b4ewxxz6f462.js +0 -7
- package/out/_next/static/chunks/2bh2dv7j9m8c8.css +0 -1
- package/out/_next/static/chunks/2bi8v13lm76lr.js +0 -95
- package/out/_next/static/chunks/2burvpf9877y_.js +0 -44
- package/out/_next/static/chunks/2cclew3l28rc4.js +0 -14
- package/out/_next/static/chunks/2cj703xtrf5i6.js +0 -46
- package/out/_next/static/chunks/2ec7xatyld40t.js +0 -7
- package/out/_next/static/chunks/2iy0jr00qhq-q.js +0 -5
- package/out/_next/static/chunks/2m0rrts8gwqwp.js +0 -1
- package/out/_next/static/chunks/2m_u12ggzosat.js +0 -5
- package/out/_next/static/chunks/2mdns56l5antm.js +0 -5
- package/out/_next/static/chunks/2mrbytgs3uetd.js +0 -4
- package/out/_next/static/chunks/2olb298bph2yc.js +0 -13
- package/out/_next/static/chunks/2p9gwjxeui1zd.js +0 -71
- package/out/_next/static/chunks/2pfhy9qy_cijn.js +0 -5
- package/out/_next/static/chunks/2q5k4rozyr2wt.js +0 -4
- package/out/_next/static/chunks/2qx8nnki_qv5v.js +0 -171
- package/out/_next/static/chunks/2r_rj84l3cy7r.js +0 -119
- package/out/_next/static/chunks/2swxmzb-xk_bo.js +0 -108
- package/out/_next/static/chunks/2t0biwx5e_4w_.js +0 -1
- package/out/_next/static/chunks/2ts3v72jkbcdr.js +0 -7
- package/out/_next/static/chunks/2vfexvltv2avy.js +0 -5
- package/out/_next/static/chunks/2wkg65dtx56je.js +0 -155
- package/out/_next/static/chunks/2xixk0t9e9mnw.js +0 -1
- package/out/_next/static/chunks/2xz7hnr9ikqzq.js +0 -7
- package/out/_next/static/chunks/2y1lq1efnvcdt.js +0 -23
- package/out/_next/static/chunks/2ziasg8l_c9n7.js +0 -5
- package/out/_next/static/chunks/3-wsablhqgzoa.js +0 -1
- package/out/_next/static/chunks/30ppb2wc-m4ph.js +0 -1
- package/out/_next/static/chunks/336k08jwyc5i-.js +0 -1
- package/out/_next/static/chunks/33_-2ne9ecvay.js +0 -1
- package/out/_next/static/chunks/33d061qpkafqm.js +0 -39
- package/out/_next/static/chunks/33fyy6d5mo55_.js +0 -8
- package/out/_next/static/chunks/33kh18frqc3b1.js +0 -5
- package/out/_next/static/chunks/33qeilxkl3ckn.js +0 -116
- package/out/_next/static/chunks/33tewe5d_lfl-.js +0 -13
- package/out/_next/static/chunks/33v05ol-ire9s.js +0 -10
- package/out/_next/static/chunks/348l8p7-vo4l5.js +0 -63
- package/out/_next/static/chunks/35hu5vin0swdf.js +0 -41
- package/out/_next/static/chunks/37a6yquh875rn.js +0 -39
- package/out/_next/static/chunks/3_2i9du5-ffrp.js +0 -59
- package/out/_next/static/chunks/3_84h3z_tewmg.js +0 -145
- package/out/_next/static/chunks/3bo7uiy-wh63m.js +0 -108
- package/out/_next/static/chunks/3c-an5ft_3emc.js +0 -1
- package/out/_next/static/chunks/3d_222ci0_30_.js +0 -41
- package/out/_next/static/chunks/3dldch03dfaed.js +0 -1
- package/out/_next/static/chunks/3eedy49gsvv_t.js +0 -1
- package/out/_next/static/chunks/3fayuejnrsd90.js +0 -15
- package/out/_next/static/chunks/3g1ale0hytu9q.js +0 -12
- package/out/_next/static/chunks/3i9q2-4e0mix5.js +0 -12
- package/out/_next/static/chunks/3k3gvr7-e3g_s.js +0 -5
- package/out/_next/static/chunks/3kwoyyxi_-q7m.js +0 -1
- package/out/_next/static/chunks/3le1bywe19_u9.js +0 -1
- package/out/_next/static/chunks/3lku4-9kpf-mj.js +0 -267
- package/out/_next/static/chunks/3lz5h1tw50wr_.js +0 -54
- package/out/_next/static/chunks/3m4smrmdqi2-3.js +0 -5
- package/out/_next/static/chunks/3oq-khgfpo0nx.js +0 -39
- package/out/_next/static/chunks/3ps25ocfalcap.js +0 -43
- package/out/_next/static/chunks/3r0i-7zjuz9i1.js +0 -6
- package/out/_next/static/chunks/3rgn5xwtr51ul.js +0 -7
- package/out/_next/static/chunks/3ridg_u19b6ih.js +0 -8
- package/out/_next/static/chunks/3skzk-w2ytvku.js +0 -5
- package/out/_next/static/chunks/3srw10h0hcztd.js +0 -68
- package/out/_next/static/chunks/3tgrftdet8sna.js +0 -15
- package/out/_next/static/chunks/3uax_eq1kjjta.js +0 -1
- package/out/_next/static/chunks/3uj94afpsi6cs.js +0 -1
- package/out/_next/static/chunks/3viepyovs19ub.js +0 -23
- package/out/_next/static/chunks/3vnzp3n_wd3j_.js +0 -1
- package/out/_next/static/chunks/3w8h5lxnd0z4z.js +0 -1
- package/out/_next/static/chunks/3wh4xa9dnw-55.js +0 -194
- package/out/_next/static/chunks/3wzvscqui-9ml.js +0 -23
- package/out/_next/static/chunks/3y8h3g1tqukrv.js +0 -36
- package/out/_next/static/chunks/3zcilnj6p9-t5.js +0 -1
- package/out/_next/static/chunks/3zmmdm68s05-t.js +0 -217
- package/out/_next/static/chunks/3zw4-oie-f7_0.js +0 -2
- package/out/_next/static/chunks/417kn9hki8k81.js +0 -33
- package/out/_next/static/chunks/42mofxcd0l7qi.js +0 -1
- package/out/_next/static/chunks/43hfssep7ry-z.js +0 -5
- package/out/_next/static/chunks/45bcpjurhxb-j.js +0 -1
- package/out/_next/static/nrNmgRi1nHylx_8lvjG2D/_buildManifest.js +0 -258
- /package/out/_next/static/{nrNmgRi1nHylx_8lvjG2D → 3N8lTawkhD5WNCBa3Xrre}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{nrNmgRi1nHylx_8lvjG2D → 3N8lTawkhD5WNCBa3Xrre}/_ssgManifest.js +0 -0
|
@@ -1,54 +0,0 @@
|
|
|
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])})}]);
|