@unchainedshop/admin-ui 4.8.17 → 4.8.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/403/index.html +2 -2
- package/out/404/index.html +2 -2
- package/out/404.html +2 -2
- package/out/423/index.html +2 -2
- package/out/500/index.html +2 -2
- package/out/_next/static/{ElK-EU4dUFcTKmDBC1Zne → FNg7dw2L88E-_7FIFWIOB}/_buildManifest.js +62 -62
- package/out/_next/static/chunks/0-_c63net7ool.js +288 -0
- package/out/_next/static/chunks/0-ewdgd-3fele.js +108 -0
- package/out/_next/static/chunks/0-kx7dau8mwj3.js +12 -0
- package/out/_next/static/chunks/0-vvjiu6i6io1.js +8 -0
- package/out/_next/static/chunks/019cyy1s5g_vv.js +1 -0
- package/out/_next/static/chunks/01g2163tzyp94.js +9 -0
- package/out/_next/static/chunks/01jj_whurmsv9.js +81 -0
- package/out/_next/static/chunks/020ygnpt2hvr6.js +12 -0
- package/out/_next/static/chunks/02789wou-krp2.js +17 -0
- package/out/_next/static/chunks/02pyaua1iclmh.js +14 -0
- package/out/_next/static/chunks/03p87qyak-kej.js +1 -0
- package/out/_next/static/chunks/04rnz0wyo1ztn.js +157 -0
- package/out/_next/static/chunks/05qpw6q8uiz3l.js +15 -0
- package/out/_next/static/chunks/075wli4d5-r2p.js +12 -0
- package/out/_next/static/chunks/07lpvxx321vm4.js +68 -0
- package/out/_next/static/chunks/07q8ufsdxo1tx.js +1 -0
- package/out/_next/static/chunks/07xk6mpkd-n5a.js +23 -0
- package/out/_next/static/chunks/09pees0w94cvm.js +1 -0
- package/out/_next/static/chunks/0a3azl0t7oxma.js +51 -0
- package/out/_next/static/chunks/0a6dpcp83gk_d.js +1 -0
- package/out/_next/static/chunks/0c9ruqj2wf3n6.js +905 -0
- package/out/_next/static/chunks/0d6coeyltto6f.js +14 -0
- package/out/_next/static/chunks/0fxe2yz57puxo.js +171 -0
- package/out/_next/static/chunks/{2-dekw6fz0zyy.js → 0h1tx_euiem85.js} +65 -65
- package/out/_next/static/chunks/0i9-n-ou9xlff.js +16 -0
- package/out/_next/static/chunks/0kj2fqqsy6i5a.js +14 -0
- package/out/_next/static/chunks/0mdsh3hratj8d.js +44 -0
- package/out/_next/static/chunks/0mzh9-epgepi1.js +119 -0
- package/out/_next/static/chunks/0nbl8z8pgn4hi.js +147 -0
- package/out/_next/static/chunks/0nwdczm-ggidm.js +10 -0
- package/out/_next/static/chunks/0o44zd65hf7ja.js +18 -0
- package/out/_next/static/chunks/0paxpysd7n2bf.js +142 -0
- package/out/_next/static/chunks/0pqur8ngvdiuk.js +31 -0
- package/out/_next/static/chunks/0q-14a7j6afh3.js +1 -0
- package/out/_next/static/chunks/0s_joidkwu3rl.js +12 -0
- package/out/_next/static/chunks/0smqsy4u3s0p_.js +18 -0
- package/out/_next/static/chunks/0t399g0sf94-s.js +1 -0
- package/out/_next/static/chunks/0tgsccom6_8bl.js +26 -0
- package/out/_next/static/chunks/0u7f6bhe_pq3r.js +807 -0
- package/out/_next/static/chunks/0ukyxgmnqos6o.js +1 -0
- package/out/_next/static/chunks/{03vpe61v8f-gu.js → 0vls1lbu_rh78.js} +118 -118
- package/out/_next/static/chunks/0w3869b8gkxvn.js +14 -0
- package/out/_next/static/chunks/0wjutk95t9soh.js +13 -0
- package/out/_next/static/chunks/0wpmgf2-hr2iv.js +1 -0
- package/out/_next/static/chunks/0x1z6teidvfkx.js +59 -0
- package/out/_next/static/chunks/0x_0u_0plqr2a.js +807 -0
- package/out/_next/static/chunks/0xxvsq70e4xn0.js +1 -0
- package/out/_next/static/chunks/0yxc1yy1eq4u3.js +149 -0
- package/out/_next/static/chunks/0zna0xdp64z_l.js +31 -0
- package/out/_next/static/chunks/1-bcv-77wl_kr.js +12 -0
- package/out/_next/static/chunks/10h7lznd10mmp.js +384 -0
- package/out/_next/static/chunks/1398hevtpl_69.js +1 -0
- package/out/_next/static/chunks/139j9yzp_s2dj.js +60 -0
- package/out/_next/static/chunks/145z4rx1s-om6.js +16 -0
- package/out/_next/static/chunks/14_1kd8rfy011.js +66 -0
- package/out/_next/static/chunks/14d4ht1a81_9x.js +137 -0
- package/out/_next/static/chunks/15efce81fs21v.js +1 -0
- package/out/_next/static/chunks/{3ciz0xpu_rprn.js → 1608o1bg3qrvl.js} +23 -23
- package/out/_next/static/chunks/166ijn8z_lj4u.js +107 -0
- package/out/_next/static/chunks/16h_9qcx1bkbi.js +12 -0
- package/out/_next/static/chunks/1765w9f3cd__i.js +9 -0
- package/out/_next/static/chunks/18-orz9acmfb5.js +5 -0
- package/out/_next/static/chunks/18karcwbeuhu0.js +23 -0
- package/out/_next/static/chunks/199qn4mcr74y9.js +13 -0
- package/out/_next/static/chunks/1_g-csysa-i-9.js +1 -0
- package/out/_next/static/chunks/1ak71-19pow9-.js +807 -0
- package/out/_next/static/chunks/1bg27j6ir_vye.js +110 -0
- package/out/_next/static/chunks/1bkf26dd0a1je.js +14 -0
- package/out/_next/static/chunks/1blrx65zlz-6e.js +73 -0
- package/out/_next/static/chunks/1cd0q27lcn0v9.js +12 -0
- package/out/_next/static/chunks/1crid0go3l_po.js +26 -0
- package/out/_next/static/chunks/1d2gpcttrfusd.js +15 -0
- package/out/_next/static/chunks/1d7yxt38n9q85.js +217 -0
- package/out/_next/static/chunks/1f3mflnvp8_7-.js +31 -0
- package/out/_next/static/chunks/1g685jdb1v1ic.js +10 -0
- package/out/_next/static/chunks/1gi1me_-4zp4j.js +20 -0
- package/out/_next/static/chunks/1gma2qehx-wg8.js +8 -0
- package/out/_next/static/chunks/1h9pl5vl0xk0u.js +66 -0
- package/out/_next/static/chunks/1iq49d9o76aue.js +288 -0
- package/out/_next/static/chunks/1l1jh7r2164fp.js +12 -0
- package/out/_next/static/chunks/1lewut00m9sq1.js +1 -0
- package/out/_next/static/chunks/1lwiflo8v2d93.js +1 -0
- package/out/_next/static/chunks/1n7i2rp59o9o8.js +384 -0
- package/out/_next/static/chunks/1oes025cnqfi6.js +101 -0
- package/out/_next/static/chunks/1ovn52nf7wkip.js +807 -0
- package/out/_next/static/chunks/1ozxpp_-0fs6j.js +101 -0
- package/out/_next/static/chunks/1paq5rkj25r88.js +1 -0
- package/out/_next/static/chunks/1pl21uldingrs.js +10 -0
- package/out/_next/static/chunks/{0x3i8esz6im79.js → 1pntoz1y5w4jv.js} +2 -2
- package/out/_next/static/chunks/1qbor4wcmq0tb.js +25 -0
- package/out/_next/static/chunks/1qp68765j1aiv.js +61 -0
- package/out/_next/static/chunks/1snnkviatd2ds.js +90 -0
- package/out/_next/static/chunks/1uhhsszv0yyqu.js +12 -0
- package/out/_next/static/chunks/1vnvinjvn78t3.js +1 -0
- package/out/_next/static/chunks/1vv5s7q0i03vv.js +13 -0
- package/out/_next/static/chunks/1w5v62vtd_95h.js +807 -0
- package/out/_next/static/chunks/1yyu_d1-f6du-.js +41 -0
- package/out/_next/static/chunks/1zad4c_24j5tx.js +51 -0
- package/out/_next/static/chunks/1zza9faw4t3b_.js +46 -0
- package/out/_next/static/chunks/2-4ng9fxftmld.js +1 -0
- package/out/_next/static/chunks/23wvgu9l7gubq.js +138 -0
- package/out/_next/static/chunks/25xp4jhpkoys-.js +15 -0
- package/out/_next/static/chunks/266ifjsae9o8y.js +15 -0
- package/out/_next/static/chunks/26ie8u_ab24o8.js +224 -0
- package/out/_next/static/chunks/26oz4niuq196h.js +15 -0
- package/out/_next/static/chunks/26vq8d2yx49i9.js +52 -0
- package/out/_next/static/chunks/27gg7ro90t698.js +12 -0
- package/out/_next/static/chunks/27jaj6rxxuu8m.js +13 -0
- package/out/_next/static/chunks/27zb6orujvv40.js +110 -0
- package/out/_next/static/chunks/295a0pnwvg1qc.js +16 -0
- package/out/_next/static/chunks/296i-4_dt00_q.js +195 -0
- package/out/_next/static/chunks/2_et414wqnlow.js +16 -0
- package/out/_next/static/chunks/2_km26udzt4rw.js +13 -0
- package/out/_next/static/chunks/2_ria73vuq53h.js +50 -0
- package/out/_next/static/chunks/2a4b5y3ivwz_k.js +16 -0
- package/out/_next/static/chunks/2a8d-7cbu-vup.js +1 -0
- package/out/_next/static/chunks/2ap6w76e8ol5u.js +22 -0
- package/out/_next/static/chunks/2bijmez61unrj.js +1 -0
- package/out/_next/static/chunks/2cpj8dwdlemoy.js +24 -0
- package/out/_next/static/chunks/2d3glkbseygki.js +807 -0
- package/out/_next/static/chunks/{2w9yaommb4zvu.js → 2gil5igdermzh.js} +1 -1
- package/out/_next/static/chunks/2h5g2a91memt0.js +14 -0
- package/out/_next/static/chunks/2hw-87k5hxjnd.js +7 -0
- package/out/_next/static/chunks/2i5s2lrccoh2z.js +8 -0
- package/out/_next/static/chunks/2i6ytth8ua7yu.js +1 -0
- package/out/_next/static/chunks/2ismth22knujm.js +1 -0
- package/out/_next/static/chunks/2j0l7kybho547.js +1 -0
- package/out/_next/static/chunks/2jln1kjysf99p.js +1 -0
- package/out/_next/static/chunks/2jtk4-i4e9lug.js +1 -0
- package/out/_next/static/chunks/2kbieaechn8m8.js +1 -0
- package/out/_next/static/chunks/2l4fd8k9i9ern.js +1 -0
- package/out/_next/static/chunks/2lieac0n6yk-w.js +21 -0
- package/out/_next/static/chunks/2mr2k4sb6i021.js +32 -0
- package/out/_next/static/chunks/2nloomc5p8k3z.js +15 -0
- package/out/_next/static/chunks/2obwy2cjs-tkl.js +807 -0
- package/out/_next/static/chunks/2od99og1m_66w.js +7 -0
- package/out/_next/static/chunks/2oj6yl1izft24.js +190 -0
- package/out/_next/static/chunks/2ph1xxjuzrdi5.js +43 -0
- package/out/_next/static/chunks/2qaf44ypuy_4z.js +1 -0
- package/out/_next/static/chunks/2qvjmevwc7-wa.js +73 -0
- package/out/_next/static/chunks/2r743v9afkc6o.js +21 -0
- package/out/_next/static/chunks/2rxn56o3dny16.js +13 -0
- package/out/_next/static/chunks/2s-a-q9n-4720.js +7 -0
- package/out/_next/static/chunks/2s426qu6fjzkw.js +3 -0
- package/out/_next/static/chunks/2su-xumzbu8do.js +144 -0
- package/out/_next/static/chunks/2t6-c849j1gzo.js +15 -0
- package/out/_next/static/chunks/2t8-bqg8qce33.js +28 -0
- package/out/_next/static/chunks/2ts8ed-v0uy3f.js +30 -0
- package/out/_next/static/chunks/2v5wqxg5po6bi.js +21 -0
- package/out/_next/static/chunks/2vvbiquh__xca.js +193 -0
- package/out/_next/static/chunks/2w5y5xf0nriwx.js +1 -0
- package/out/_next/static/chunks/2w9zv8rs1v2dp.js +5 -0
- package/out/_next/static/chunks/2xw9-6m7g1h0u.js +14 -0
- package/out/_next/static/chunks/2zifte49qslcg.js +31 -0
- package/out/_next/static/chunks/2zz0wsy9o6axm.js +17 -0
- package/out/_next/static/chunks/3-aohmw8_9eax.js +1 -0
- package/out/_next/static/chunks/301x4aphmzmmz.js +13 -0
- package/out/_next/static/chunks/30g-s0ioynhjx.js +224 -0
- package/out/_next/static/chunks/31y7dx6ytab7h.js +3 -0
- package/out/_next/static/chunks/34_uxvoed7itd.js +58 -0
- package/out/_next/static/chunks/350fjlg6t9ofm.js +132 -0
- package/out/_next/static/chunks/35995k_05rugk.js +5 -0
- package/out/_next/static/chunks/35ndg6fzxcnty.js +346 -0
- package/out/_next/static/chunks/36iem94awn5te.js +1 -0
- package/out/_next/static/chunks/36yqqmqp09-ru.js +807 -0
- package/out/_next/static/chunks/389ltf_fd8x4o.js +17 -0
- package/out/_next/static/chunks/38qud89s5advf.js +50 -0
- package/out/_next/static/chunks/3_0owfg_yy8cl.js +807 -0
- package/out/_next/static/chunks/3_aj_qrufrk1e.js +99 -0
- package/out/_next/static/chunks/3_jg-uorf4j_e.js +324 -0
- package/out/_next/static/chunks/3bdwwpbemvjx7.js +807 -0
- package/out/_next/static/chunks/3bxtyo0u_psf7.js +1 -0
- package/out/_next/static/chunks/3by6890zct23p.js +1 -0
- package/out/_next/static/chunks/3d8omzb1f_5o-.js +87 -0
- package/out/_next/static/chunks/3dhm792n15b_j.js +14 -0
- package/out/_next/static/chunks/3dktrkr-x_gg5.js +14 -0
- package/out/_next/static/chunks/3eifvfd9dxcau.js +16 -0
- package/out/_next/static/chunks/3fatocqr45gc-.js +1 -0
- package/out/_next/static/chunks/3g67xtrp0vv4m.js +1 -0
- package/out/_next/static/chunks/{22myl2_m23rb-.js → 3gls52bjnoo8q.js} +149 -149
- package/out/_next/static/chunks/3gps2w4oz_5nb.js +1 -0
- package/out/_next/static/chunks/3h0e1anfs79d8.js +807 -0
- package/out/_next/static/chunks/3hj289l9ticmi.js +188 -0
- package/out/_next/static/chunks/3k98cr566roh-.js +2 -0
- package/out/_next/static/chunks/3mggjyvwt-zcv.js +16 -0
- package/out/_next/static/chunks/3mmh55q1q01dm.js +1 -0
- package/out/_next/static/chunks/3q4vx3y0y3b8f.js +15 -0
- package/out/_next/static/chunks/3rj9t5qgjkv4i.js +44 -0
- package/out/_next/static/chunks/3shn20joqkv6a.js +3 -0
- package/out/_next/static/chunks/3t_5g2yunib45.js +188 -0
- package/out/_next/static/chunks/3tv9csz53av-5.js +1 -0
- package/out/_next/static/chunks/3v1dxn4rp-o3v.js +315 -0
- package/out/_next/static/chunks/3wgzrp3bxrd2j.js +135 -0
- package/out/_next/static/chunks/3wzzh45yillzb.js +1 -0
- package/out/_next/static/chunks/3xhmfg-981n_5.js +61 -0
- package/out/_next/static/chunks/3y40s9fvu5vvw.js +807 -0
- package/out/_next/static/chunks/3yqw8z_udrol0.js +1 -0
- package/out/_next/static/chunks/3zbvc7hsqe--6.js +17 -0
- package/out/_next/static/chunks/3zmshqnnou1t1.js +13 -0
- package/out/_next/static/chunks/3zqfchpzqxd92.css +1 -0
- package/out/_next/static/chunks/405g8in3lmiz-.js +807 -0
- package/out/_next/static/chunks/{2ng7fu4nip4iz.js → 40bj8p05_weue.js} +3 -3
- package/out/_next/static/chunks/40t7r6dc5nu9x.js +58 -0
- package/out/_next/static/chunks/413qu_x6yky1e.js +1 -0
- package/out/_next/static/chunks/4259vr3f_srqk.js +13 -0
- package/out/_next/static/chunks/436wzlp_dvy3-.js +13 -0
- package/out/_next/static/chunks/43_nzxwfqw0z1.js +43 -0
- package/out/_next/static/chunks/44z0hn5p9y_kc.js +14 -0
- package/out/_next/static/chunks/turbopack-00ci999vh-rng.js +1 -0
- package/out/_next/static/chunks/turbopack-06wgqo3oih99j.js +1 -0
- package/out/_next/static/chunks/turbopack-0bszywoq094m7.js +1 -0
- package/out/_next/static/chunks/turbopack-0buuzij_wb6oo.js +1 -0
- package/out/_next/static/chunks/turbopack-0eu635c5mf8n8.js +1 -0
- package/out/_next/static/chunks/turbopack-0fnpjhnuzd5u3.js +1 -0
- package/out/_next/static/chunks/turbopack-0g4rv9x40334-.js +1 -0
- package/out/_next/static/chunks/turbopack-0ji4m_gwcrznb.js +1 -0
- package/out/_next/static/chunks/turbopack-0lyjo4pc9gmta.js +1 -0
- package/out/_next/static/chunks/turbopack-0m_8d8fkbgdq2.js +1 -0
- package/out/_next/static/chunks/turbopack-0mrm_61ye6alf.js +1 -0
- package/out/_next/static/chunks/turbopack-0vye15xyn32t0.js +1 -0
- package/out/_next/static/chunks/turbopack-0zbiiplahh0oz.js +1 -0
- package/out/_next/static/chunks/turbopack-1-k77vmj16_cx.js +1 -0
- package/out/_next/static/chunks/turbopack-127hudw-h8baj.js +1 -0
- package/out/_next/static/chunks/turbopack-135_3fkj93zbs.js +1 -0
- package/out/_next/static/chunks/turbopack-15i5cecuky2l3.js +1 -0
- package/out/_next/static/chunks/turbopack-16qmgek24j718.js +1 -0
- package/out/_next/static/chunks/turbopack-16rsk8cgzyrid.js +1 -0
- package/out/_next/static/chunks/turbopack-17phmvom13nf9.js +1 -0
- package/out/_next/static/chunks/turbopack-18m7hwg4kb2kn.js +1 -0
- package/out/_next/static/chunks/turbopack-18n83cxq16dpq.js +1 -0
- package/out/_next/static/chunks/turbopack-1a-z9vrevc8ko.js +1 -0
- package/out/_next/static/chunks/turbopack-1b93bv1_u6do1.js +1 -0
- package/out/_next/static/chunks/turbopack-1ca001k8h1tj9.js +1 -0
- package/out/_next/static/chunks/turbopack-1kulpwt8cpabn.js +1 -0
- package/out/_next/static/chunks/turbopack-1s84g8rorq9z9.js +1 -0
- package/out/_next/static/chunks/turbopack-1udgwh4h-oxxi.js +1 -0
- package/out/_next/static/chunks/turbopack-204_fz_4gv1rb.js +1 -0
- package/out/_next/static/chunks/turbopack-23deartek7k-k.js +1 -0
- package/out/_next/static/chunks/turbopack-27_d4pvfj1l5l.js +1 -0
- package/out/_next/static/chunks/turbopack-28qsbatnihqpt.js +1 -0
- package/out/_next/static/chunks/turbopack-28uqnzo3g6ndb.js +1 -0
- package/out/_next/static/chunks/turbopack-2b1s2sz_wpnmj.js +1 -0
- package/out/_next/static/chunks/turbopack-2d5m_036sipx_.js +1 -0
- package/out/_next/static/chunks/turbopack-2fwm49apzpwdw.js +1 -0
- package/out/_next/static/chunks/turbopack-2ie3qfkx-wpx5.js +1 -0
- package/out/_next/static/chunks/turbopack-2mg7lq0gzqzmj.js +1 -0
- package/out/_next/static/chunks/turbopack-2qbdkv-049pcn.js +1 -0
- package/out/_next/static/chunks/turbopack-2qy0dj2qllnma.js +1 -0
- package/out/_next/static/chunks/turbopack-2rfxy8cvv65ky.js +1 -0
- package/out/_next/static/chunks/turbopack-2s0e_i163zhnh.js +1 -0
- package/out/_next/static/chunks/turbopack-2sh26n5idbo4t.js +1 -0
- package/out/_next/static/chunks/turbopack-2w5uttg2gaa96.js +1 -0
- package/out/_next/static/chunks/turbopack-2xogbjelfebs9.js +1 -0
- package/out/_next/static/chunks/turbopack-30360onh0u-p-.js +1 -0
- package/out/_next/static/chunks/turbopack-33v_pjoh5kiex.js +1 -0
- package/out/_next/static/chunks/turbopack-34h_7ojk9pxqb.js +1 -0
- package/out/_next/static/chunks/turbopack-34w-nmqfd_xdk.js +1 -0
- package/out/_next/static/chunks/turbopack-35oxrv2nrziql.js +1 -0
- package/out/_next/static/chunks/turbopack-36v8l4mm2nd3z.js +1 -0
- package/out/_next/static/chunks/turbopack-371tszwah_bcv.js +1 -0
- package/out/_next/static/chunks/turbopack-3bc1k7779spg8.js +1 -0
- package/out/_next/static/chunks/turbopack-3d3ft7r25v06f.js +1 -0
- package/out/_next/static/chunks/turbopack-3fzs_vfrvq1be.js +1 -0
- package/out/_next/static/chunks/turbopack-3h4zeqo_iafeu.js +1 -0
- package/out/_next/static/chunks/turbopack-3lruq1-v_utu8.js +1 -0
- package/out/_next/static/chunks/turbopack-3mjx39qg9tei_.js +1 -0
- package/out/_next/static/chunks/turbopack-3o7ajhrpw1q1f.js +1 -0
- package/out/_next/static/chunks/turbopack-3q2nl2ba0-b4r.js +1 -0
- package/out/_next/static/chunks/turbopack-3rx8eccbo_7r5.js +1 -0
- package/out/_next/static/chunks/turbopack-3sr314c8tit-f.js +1 -0
- package/out/_next/static/chunks/turbopack-3z1kj0q9v13m5.js +1 -0
- package/out/_offline/index.html +2 -2
- package/out/account/forgot-password/index.html +2 -2
- package/out/account/index.html +2 -2
- package/out/assortments/AssortmentDetailPage/index.html +2 -2
- package/out/assortments/index.html +2 -2
- package/out/assortments/new/index.html +2 -2
- package/out/copilot/index.html +2 -2
- package/out/country/CountryDetailPage/index.html +2 -2
- package/out/country/index.html +2 -2
- package/out/country/new/index.html +2 -2
- package/out/currency/CurrencyDetailPage/index.html +2 -2
- package/out/currency/index.html +2 -2
- package/out/currency/new/index.html +2 -2
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
- package/out/delivery-provider/index.html +2 -2
- package/out/delivery-provider/new/index.html +2 -2
- package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
- package/out/enrollments/index.html +2 -2
- package/out/events/EventDetailPage/index.html +2 -2
- package/out/events/index.html +2 -2
- package/out/exports/index.html +2 -2
- package/out/external/index.html +2 -2
- package/out/filters/FilterDetailPage/index.html +2 -2
- package/out/filters/index.html +2 -2
- package/out/filters/new/index.html +2 -2
- package/out/index.html +2 -2
- package/out/install/index.html +2 -2
- package/out/language/LanguageDetailPage/index.html +2 -2
- package/out/language/index.html +2 -2
- package/out/language/new/index.html +2 -2
- package/out/log-in/index.html +2 -2
- package/out/orders/OrderDetailPage/index.html +2 -2
- package/out/orders/index.html +2 -2
- package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
- package/out/payment-provider/index.html +2 -2
- package/out/payment-provider/new/index.html +2 -2
- package/out/products/ProductDetailPage/index.html +2 -2
- package/out/products/index.html +2 -2
- package/out/products/new/index.html +2 -2
- package/out/quotations/QuotationDetailPage/index.html +2 -2
- package/out/quotations/index.html +2 -2
- package/out/reset-password/index.html +2 -2
- package/out/sign-up/index.html +2 -2
- package/out/styleguide/index.html +2 -2
- package/out/tokens/TokenDetailPage/index.html +2 -2
- package/out/tokens/index.html +2 -2
- package/out/users/UserDetailPage/index.html +2 -2
- package/out/users/index.html +2 -2
- package/out/users/new/index.html +2 -2
- package/out/verify-email/index.html +2 -2
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
- package/out/warehousing-provider/index.html +2 -2
- package/out/warehousing-provider/new/index.html +2 -2
- package/out/works/WorkDetailPage/index.html +2 -2
- package/out/works/WorkQueueListView/index.html +2 -2
- package/out/works/index.html +2 -2
- package/out/works/management/index.html +2 -2
- package/package.json +4 -4
- package/out/_next/static/chunks/0-5fyr7499zt-.js +0 -1
- package/out/_next/static/chunks/0-fh37zk913w7.js +0 -13
- package/out/_next/static/chunks/008lcuc11zfte.js +0 -43
- package/out/_next/static/chunks/016okam34efcb.js +0 -81
- package/out/_next/static/chunks/023-zg31-pn7e.js +0 -288
- package/out/_next/static/chunks/02vbc6plhv4r5.js +0 -384
- package/out/_next/static/chunks/0385oypvv03tp.js +0 -22
- package/out/_next/static/chunks/046r7jg73yrg4.js +0 -7
- package/out/_next/static/chunks/0476m35sf_p60.js +0 -147
- package/out/_next/static/chunks/04eely9r7xy_m.js +0 -12
- package/out/_next/static/chunks/0554zqf5q6aco.js +0 -103
- package/out/_next/static/chunks/05x_nq6c7164m.js +0 -1
- package/out/_next/static/chunks/06e1aw5kfb7xi.js +0 -5
- package/out/_next/static/chunks/083qufblh7mjm.js +0 -1
- package/out/_next/static/chunks/08k08iasjrir_.js +0 -31
- package/out/_next/static/chunks/0_zceuhyoka_a.js +0 -110
- package/out/_next/static/chunks/0aj0bvtuku7d_.js +0 -291
- package/out/_next/static/chunks/0altoqexicqbh.js +0 -1
- package/out/_next/static/chunks/0awxngl8a0ic5.js +0 -5
- package/out/_next/static/chunks/0chevnsryc57m.js +0 -16
- package/out/_next/static/chunks/0dbwh_dc2wx4a.js +0 -288
- package/out/_next/static/chunks/0es-a44yzoi_c.js +0 -3
- package/out/_next/static/chunks/0fxio1d8po6h5.js +0 -21
- package/out/_next/static/chunks/0h2609m294ysz.js +0 -41
- package/out/_next/static/chunks/0hgd0co23t_8i.js +0 -1
- package/out/_next/static/chunks/0hq1mco02oyfu.js +0 -15
- package/out/_next/static/chunks/0idef676w-1dr.js +0 -22
- package/out/_next/static/chunks/0ivn6vm7qrjvq.js +0 -1
- package/out/_next/static/chunks/0j01zkyli64rz.js +0 -14
- package/out/_next/static/chunks/0j1q0r96xzpzy.js +0 -46
- package/out/_next/static/chunks/0jian6h40drni.js +0 -13
- package/out/_next/static/chunks/0kj2b7pv7vovm.js +0 -22
- package/out/_next/static/chunks/0lt88y29dqxzp.js +0 -807
- package/out/_next/static/chunks/0m4bdyytr95sc.js +0 -177
- package/out/_next/static/chunks/0m7b5siv8r0ut.js +0 -1
- package/out/_next/static/chunks/0mpudwrx5wimh.js +0 -12
- package/out/_next/static/chunks/0nocitcg_prcn.js +0 -12
- package/out/_next/static/chunks/0nxlx7tthmg78.js +0 -31
- package/out/_next/static/chunks/0owtren6z_d3d.js +0 -15
- package/out/_next/static/chunks/0pc76ldf1jpm5.js +0 -807
- package/out/_next/static/chunks/0qchl2kwxk5_b.js +0 -9
- package/out/_next/static/chunks/0qxzncya34yzs.js +0 -135
- package/out/_next/static/chunks/0s1c1ap63wp7w.js +0 -1
- package/out/_next/static/chunks/0semy5tiq3zfa.js +0 -217
- package/out/_next/static/chunks/0sy4g9cj0c0nw.js +0 -1
- package/out/_next/static/chunks/0uvf4fw2u8xlt.js +0 -1
- package/out/_next/static/chunks/0v8wplj4_g1yk.js +0 -14
- package/out/_next/static/chunks/0vsekcvrno4r-.js +0 -12
- package/out/_next/static/chunks/0vskxstx7o46u.js +0 -200
- package/out/_next/static/chunks/0winpgp117o2-.js +0 -14
- package/out/_next/static/chunks/0wq-kibsj03f4.js +0 -3
- package/out/_next/static/chunks/0x8f0sp4gid52.js +0 -5
- package/out/_next/static/chunks/0xcsxtbxsj1ez.js +0 -807
- package/out/_next/static/chunks/0xmblnoqgtm4c.js +0 -13
- package/out/_next/static/chunks/0y9-ayhjhhngf.js +0 -101
- package/out/_next/static/chunks/0ysqpo9mvr0zd.js +0 -15
- package/out/_next/static/chunks/1-3-xh5bp6iml.js +0 -12
- package/out/_next/static/chunks/10a6m_uzed9ah.js +0 -7
- package/out/_next/static/chunks/110t5i029b2k2.js +0 -15
- package/out/_next/static/chunks/11p5hx0zojiun.js +0 -14
- package/out/_next/static/chunks/11tlxn06pl0v_.js +0 -807
- package/out/_next/static/chunks/1256wg-50z130.js +0 -224
- package/out/_next/static/chunks/12tyi7_yn5xtz.js +0 -13
- package/out/_next/static/chunks/14u7jeuqdz0nk.js +0 -108
- package/out/_next/static/chunks/14voa-w_qaloy.js +0 -10
- package/out/_next/static/chunks/151znlrk2b4e5.js +0 -61
- package/out/_next/static/chunks/1527ha2whtazw.js +0 -88
- package/out/_next/static/chunks/16dj7dz5shhv_.js +0 -1
- package/out/_next/static/chunks/17gp91vlnlpn7.js +0 -346
- package/out/_next/static/chunks/17h2_757nwv56.js +0 -807
- package/out/_next/static/chunks/18609lny07j4e.js +0 -1
- package/out/_next/static/chunks/18keiz8xbbpkq.js +0 -26
- package/out/_next/static/chunks/18pkchouqfxun.js +0 -1
- package/out/_next/static/chunks/199mkuw023v8s.js +0 -144
- package/out/_next/static/chunks/19wuto_c4vh0r.js +0 -1
- package/out/_next/static/chunks/1_evskl07e2cf.js +0 -132
- package/out/_next/static/chunks/1_pteaeq2-av2.js +0 -807
- package/out/_next/static/chunks/1_q3-gzp0dk5q.js +0 -59
- package/out/_next/static/chunks/1dr9_l25_z_bx.js +0 -1
- package/out/_next/static/chunks/1ec3to11jffvy.js +0 -10
- package/out/_next/static/chunks/1ev76ynqrcgrk.js +0 -1
- package/out/_next/static/chunks/1f3f0m0y4umue.js +0 -1
- package/out/_next/static/chunks/1gg4cjedszfwk.js +0 -13
- package/out/_next/static/chunks/1jhqf1cmlc7pe.js +0 -16
- package/out/_next/static/chunks/1jifp8h0xxr5a.js +0 -1
- package/out/_next/static/chunks/1jtbcag00kp9r.js +0 -90
- package/out/_next/static/chunks/1juxa73hu8ac4.js +0 -23
- package/out/_next/static/chunks/1kytgf0whx_qo.js +0 -14
- package/out/_next/static/chunks/1l2mamh-5uwio.js +0 -1
- package/out/_next/static/chunks/1l8j-zb8_9nsi.js +0 -1
- package/out/_next/static/chunks/1m_5ag79zi_f9.js +0 -14
- package/out/_next/static/chunks/1mnpt-bd73euh.js +0 -807
- package/out/_next/static/chunks/1mwnl27etu8p6.js +0 -1
- package/out/_next/static/chunks/1n0nlm7kpcww-.js +0 -61
- package/out/_next/static/chunks/1n3mdw-qdco80.js +0 -8
- package/out/_next/static/chunks/1nbgbej8adbrl.js +0 -188
- package/out/_next/static/chunks/1nj8g7amact5j.js +0 -8
- package/out/_next/static/chunks/1nzeajwrffqt9.js +0 -1
- package/out/_next/static/chunks/1oa-sp6_nb4s7.js +0 -119
- package/out/_next/static/chunks/1ocvav-_1h1ar.js +0 -13
- package/out/_next/static/chunks/1okn_q5vylut9.js +0 -384
- package/out/_next/static/chunks/1p8vfdg0fsork.js +0 -1
- package/out/_next/static/chunks/1qned-0hap5wh.js +0 -1
- package/out/_next/static/chunks/1tj0_95clq0gz.js +0 -13
- package/out/_next/static/chunks/1tss29yg71n68.js +0 -26
- package/out/_next/static/chunks/1uxu8tui0bawr.js +0 -286
- package/out/_next/static/chunks/1viswjqhymg_v.js +0 -836
- package/out/_next/static/chunks/1vt4kev5t-rtb.js +0 -16
- package/out/_next/static/chunks/1vvpmer7-2bqu.js +0 -73
- package/out/_next/static/chunks/1w-zy6fc2ehco.js +0 -1
- package/out/_next/static/chunks/1x-mhg4wgh8xs.js +0 -1
- package/out/_next/static/chunks/1x4ypu6tmfyhg.js +0 -14
- package/out/_next/static/chunks/1y4f465xdm5b5.js +0 -50
- package/out/_next/static/chunks/2--jjxpscypa2.js +0 -31
- package/out/_next/static/chunks/2-i1ckgje2swc.js +0 -20
- package/out/_next/static/chunks/20wpn0cmj1uyu.js +0 -7
- package/out/_next/static/chunks/223ol_txid_e9.js +0 -227
- package/out/_next/static/chunks/23o_a2htnomyg.js +0 -43
- package/out/_next/static/chunks/246yfl5ko957t.js +0 -103
- package/out/_next/static/chunks/26430jr5_zhmz.js +0 -193
- package/out/_next/static/chunks/26fgtdpouev8j.js +0 -1
- package/out/_next/static/chunks/26jxcw998t9wn.js +0 -10
- package/out/_next/static/chunks/26vkx8q85z8r4.js +0 -1
- package/out/_next/static/chunks/279v6ulm8bak8.js +0 -13
- package/out/_next/static/chunks/27c0k45sjypl5.js +0 -138
- package/out/_next/static/chunks/27xa29kcgotjt.js +0 -11
- package/out/_next/static/chunks/289aq9_pa_l-5.js +0 -1
- package/out/_next/static/chunks/28l8pqb5msman.js +0 -142
- package/out/_next/static/chunks/2_t9cm2tzlx6m.js +0 -1
- package/out/_next/static/chunks/2bejn7kgdoibj.js +0 -16
- package/out/_next/static/chunks/2c1gkwwv20spk.js +0 -384
- package/out/_next/static/chunks/2cykgzchwdf8h.js +0 -13
- package/out/_next/static/chunks/2d2xdaq--g766.js +0 -342
- package/out/_next/static/chunks/2dnaool9uxxya.js +0 -17
- package/out/_next/static/chunks/2dwssdhayrajs.js +0 -807
- package/out/_next/static/chunks/2fzxnvqcxp4zs.js +0 -13
- package/out/_next/static/chunks/2ghls3qe3puh7.js +0 -1
- package/out/_next/static/chunks/2h88_6ug5c-64.js +0 -46
- package/out/_next/static/chunks/2i__ckq4rpsy-.js +0 -16
- package/out/_next/static/chunks/2k7cmes14f81v.js +0 -14
- package/out/_next/static/chunks/2kcgr1_1bt0ja.js +0 -13
- package/out/_next/static/chunks/2kw8sncead6q1.js +0 -1
- package/out/_next/static/chunks/2kx374mbbo2fx.js +0 -23
- package/out/_next/static/chunks/2l05fni6rturu.js +0 -324
- package/out/_next/static/chunks/2lpu0fgihk_1a.js +0 -1
- package/out/_next/static/chunks/2n37m9ums7yxo.js +0 -209
- package/out/_next/static/chunks/2ndzew-ih0j7o.js +0 -1
- package/out/_next/static/chunks/2npbjddbiwni8.js +0 -87
- package/out/_next/static/chunks/2nqaesgt8e-dq.js +0 -807
- package/out/_next/static/chunks/2nwi9ew7sgrj3.js +0 -2
- package/out/_next/static/chunks/2ovkbxsq5d7zw.js +0 -101
- package/out/_next/static/chunks/2p2c9lu_w9xpm.js +0 -1
- package/out/_next/static/chunks/2p56h7y83ga43.js +0 -173
- package/out/_next/static/chunks/2q14v90xec8c3.js +0 -188
- package/out/_next/static/chunks/2tuoxofyqz54_.js +0 -12
- package/out/_next/static/chunks/2vg32f3cpxij2.js +0 -1
- package/out/_next/static/chunks/2vkhxhpfyjmdo.js +0 -14
- package/out/_next/static/chunks/2vtw28_by1t1w.js +0 -13
- package/out/_next/static/chunks/2y7sjkehompze.js +0 -32
- package/out/_next/static/chunks/2yme0y_2pzj9n.js +0 -44
- package/out/_next/static/chunks/30dk0bk_p44ir.js +0 -905
- package/out/_next/static/chunks/31eux-b8vx_2o.js +0 -596
- package/out/_next/static/chunks/31kcvq4mpuk-n.js +0 -8
- package/out/_next/static/chunks/32iahzknlfas2.js +0 -1
- package/out/_next/static/chunks/32l0f9qsyr70b.js +0 -1
- package/out/_next/static/chunks/32lrbx2g2oi58.js +0 -1
- package/out/_next/static/chunks/33lr5t1t8hzsu.js +0 -15
- package/out/_next/static/chunks/34erk-605s-mm.js +0 -1
- package/out/_next/static/chunks/36vha92ibdqa5.js +0 -12
- package/out/_next/static/chunks/37clktwywpajv.js +0 -1
- package/out/_next/static/chunks/37s4hnkf3fb_y.js +0 -807
- package/out/_next/static/chunks/37sa01ltf42fy.js +0 -13
- package/out/_next/static/chunks/38afjslqo-ezj.js +0 -8
- package/out/_next/static/chunks/38bczx6d8d6lo.js +0 -5
- package/out/_next/static/chunks/3a0mg8mbspn1l.js +0 -46
- package/out/_next/static/chunks/3blt-diyq-naw.js +0 -14
- package/out/_next/static/chunks/3e35x8fg5e3pv.js +0 -60
- package/out/_next/static/chunks/3f2jxhatqetvc.js +0 -807
- package/out/_next/static/chunks/3fj61jbc190pd.js +0 -13
- package/out/_next/static/chunks/3fq6z0s1jshzn.js +0 -15
- package/out/_next/static/chunks/3g4cm3-yeecm2.js +0 -44
- package/out/_next/static/chunks/3h3tsq4-en0ds.js +0 -51
- package/out/_next/static/chunks/3hu6bowb801qu.js +0 -73
- package/out/_next/static/chunks/3kml-ussugoev.js +0 -15
- package/out/_next/static/chunks/3l02yeb2txq56.js +0 -137
- package/out/_next/static/chunks/3ldab1ofpij6b.js +0 -19
- package/out/_next/static/chunks/3lvyfkgg8oenq.js +0 -13
- package/out/_next/static/chunks/3mflhqmkkt1mw.js +0 -807
- package/out/_next/static/chunks/3nvwtolqxr_ge.js +0 -1
- package/out/_next/static/chunks/3o4iqy5pws1z9.js +0 -1
- package/out/_next/static/chunks/3qz-e8u_rngvz.js +0 -1
- package/out/_next/static/chunks/3t_1dfdqi26e9.js +0 -18
- package/out/_next/static/chunks/3tl7_-7zqlvzg.js +0 -12
- package/out/_next/static/chunks/3tvg8ygnthkjr.js +0 -16
- package/out/_next/static/chunks/3v36muwibbmij.js +0 -58
- package/out/_next/static/chunks/3x304g0u9phqv.js +0 -51
- package/out/_next/static/chunks/3ya0b3uv203hq.js +0 -22
- package/out/_next/static/chunks/40ang7smtylgf.css +0 -1
- package/out/_next/static/chunks/40j1w9hi4os9m.js +0 -66
- package/out/_next/static/chunks/40kd8woagvta6.js +0 -471
- package/out/_next/static/chunks/42xkht0rt6xf_.js +0 -12
- package/out/_next/static/chunks/43a7fwbiu6x-5.js +0 -13
- package/out/_next/static/chunks/43uz-_umdm9hg.js +0 -50
- package/out/_next/static/chunks/44cjcus7fzro2.js +0 -5
- package/out/_next/static/chunks/455-ehefgubqn.js +0 -20
- package/out/_next/static/chunks/45cbkkq5ja1gw.js +0 -15
- package/out/_next/static/chunks/turbopack-060-1ln7tnj_o.js +0 -1
- package/out/_next/static/chunks/turbopack-06b_rq-xsg8x-.js +0 -1
- package/out/_next/static/chunks/turbopack-07j_ygzde0ibk.js +0 -1
- package/out/_next/static/chunks/turbopack-083kyitc50o38.js +0 -1
- package/out/_next/static/chunks/turbopack-0_j93cg1w4d7-.js +0 -1
- package/out/_next/static/chunks/turbopack-0bujhjoujrelz.js +0 -1
- package/out/_next/static/chunks/turbopack-0c990us3hqca2.js +0 -1
- package/out/_next/static/chunks/turbopack-0fneu371vdjf1.js +0 -1
- package/out/_next/static/chunks/turbopack-0fnocyew0acyq.js +0 -1
- package/out/_next/static/chunks/turbopack-0fr9xmcpxfoqa.js +0 -1
- package/out/_next/static/chunks/turbopack-0j5di01a8gcxh.js +0 -1
- package/out/_next/static/chunks/turbopack-0j_pfj3li7kkn.js +0 -1
- package/out/_next/static/chunks/turbopack-0jh0k3boktvim.js +0 -1
- package/out/_next/static/chunks/turbopack-0kwipuq5-xmz3.js +0 -1
- package/out/_next/static/chunks/turbopack-0n7sl47ktn9hk.js +0 -1
- package/out/_next/static/chunks/turbopack-0w37q33v5-6zm.js +0 -1
- package/out/_next/static/chunks/turbopack-1-j7m49r309x4.js +0 -1
- package/out/_next/static/chunks/turbopack-10nzf9877-okq.js +0 -1
- package/out/_next/static/chunks/turbopack-11yslp77vs6mo.js +0 -1
- package/out/_next/static/chunks/turbopack-12kl06t32c8h5.js +0 -1
- package/out/_next/static/chunks/turbopack-15ck0zsoo17qk.js +0 -1
- package/out/_next/static/chunks/turbopack-15z1m4_0bv4zo.js +0 -1
- package/out/_next/static/chunks/turbopack-17hgg9dccrviq.js +0 -1
- package/out/_next/static/chunks/turbopack-17mnrbrw40xul.js +0 -1
- package/out/_next/static/chunks/turbopack-1_alzj1dxez-l.js +0 -1
- package/out/_next/static/chunks/turbopack-1_ij44qvn9x25.js +0 -1
- package/out/_next/static/chunks/turbopack-1c3d9r9igrmgh.js +0 -1
- package/out/_next/static/chunks/turbopack-1dzfw_agzw78l.js +0 -1
- package/out/_next/static/chunks/turbopack-1e49xkg-hxkgw.js +0 -1
- package/out/_next/static/chunks/turbopack-1hz-oep9si1n4.js +0 -1
- package/out/_next/static/chunks/turbopack-1jsw2ikqqzdii.js +0 -1
- package/out/_next/static/chunks/turbopack-1kl8gahvsru18.js +0 -1
- package/out/_next/static/chunks/turbopack-1lzj42w3ao9lv.js +0 -1
- package/out/_next/static/chunks/turbopack-1nfsu5t6wryjs.js +0 -1
- package/out/_next/static/chunks/turbopack-1sqpspyd-b_u8.js +0 -1
- package/out/_next/static/chunks/turbopack-1yguzhp-196yl.js +0 -1
- package/out/_next/static/chunks/turbopack-2-2b7u4disa9e.js +0 -1
- package/out/_next/static/chunks/turbopack-216mhl7lyker7.js +0 -1
- package/out/_next/static/chunks/turbopack-251iteu80yhxd.js +0 -1
- package/out/_next/static/chunks/turbopack-25pjztf35pyvg.js +0 -1
- package/out/_next/static/chunks/turbopack-268fyi4wvgswd.js +0 -1
- package/out/_next/static/chunks/turbopack-2a85b71rfv1vo.js +0 -1
- package/out/_next/static/chunks/turbopack-2e_abq5410ocm.js +0 -1
- package/out/_next/static/chunks/turbopack-2jptw2odupw9z.js +0 -1
- package/out/_next/static/chunks/turbopack-2k6z_-8-c70t7.js +0 -1
- package/out/_next/static/chunks/turbopack-2ky1o00phr0zz.js +0 -1
- package/out/_next/static/chunks/turbopack-2n5cgk5tdnyrr.js +0 -1
- package/out/_next/static/chunks/turbopack-2qh9qcni48nfb.js +0 -1
- package/out/_next/static/chunks/turbopack-2ubouwa3lj2ih.js +0 -1
- package/out/_next/static/chunks/turbopack-2vs1uxhibnike.js +0 -1
- package/out/_next/static/chunks/turbopack-30nunvblnhi54.js +0 -1
- package/out/_next/static/chunks/turbopack-32v2pq35jf6zj.js +0 -1
- package/out/_next/static/chunks/turbopack-32zc13tm-_v-k.js +0 -1
- package/out/_next/static/chunks/turbopack-3_a0ktgrf9wjr.js +0 -1
- package/out/_next/static/chunks/turbopack-3a-4by2ed-ay-.js +0 -1
- package/out/_next/static/chunks/turbopack-3m-jkhd44c_0-.js +0 -1
- package/out/_next/static/chunks/turbopack-3nry4c4egh21l.js +0 -1
- package/out/_next/static/chunks/turbopack-3oyddom9vwd53.js +0 -1
- package/out/_next/static/chunks/turbopack-3oydg87ftdlr2.js +0 -1
- package/out/_next/static/chunks/turbopack-3qzb2zfs2-8io.js +0 -1
- package/out/_next/static/chunks/turbopack-3rxchig-6vsve.js +0 -1
- package/out/_next/static/chunks/turbopack-41o-6q85-g0ju.js +0 -1
- package/out/_next/static/chunks/turbopack-44efn8-0a_co0.js +0 -1
- /package/out/_next/static/{ElK-EU4dUFcTKmDBC1Zne → FNg7dw2L88E-_7FIFWIOB}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{ElK-EU4dUFcTKmDBC1Zne → FNg7dw2L88E-_7FIFWIOB}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,73298,2228,e=>{"use strict";var t=e.i(59080);let a=t.gql`
|
|
2
|
+
fragment MD5MetaDataFragment on WebAuthnMDSv3Metadata {
|
|
3
|
+
legalHeader
|
|
4
|
+
description
|
|
5
|
+
authenticatorVersion
|
|
6
|
+
protocolFamily
|
|
7
|
+
schema
|
|
8
|
+
authenticationAlgorithms
|
|
9
|
+
publicKeyAlgAndEncodings
|
|
10
|
+
attestationTypes
|
|
11
|
+
keyProtection
|
|
12
|
+
upv
|
|
13
|
+
tcDisplay
|
|
14
|
+
authenticationAlgorithms
|
|
15
|
+
publicKeyAlgAndEncodings
|
|
16
|
+
icon
|
|
17
|
+
authenticatorGetInfo
|
|
18
|
+
}
|
|
19
|
+
`;e.s(["default",0,a],2228);let s=t.gql`
|
|
20
|
+
fragment UserFragment on User {
|
|
21
|
+
_id
|
|
22
|
+
lastBillingAddress {
|
|
23
|
+
firstName
|
|
24
|
+
lastName
|
|
25
|
+
company
|
|
26
|
+
addressLine
|
|
27
|
+
addressLine2
|
|
28
|
+
postalCode
|
|
29
|
+
countryCode
|
|
30
|
+
regionCode
|
|
31
|
+
city
|
|
32
|
+
}
|
|
33
|
+
lastContact {
|
|
34
|
+
emailAddress
|
|
35
|
+
telNumber
|
|
36
|
+
}
|
|
37
|
+
lastLogin {
|
|
38
|
+
countryCode
|
|
39
|
+
locale
|
|
40
|
+
remoteAddress
|
|
41
|
+
remotePort
|
|
42
|
+
timestamp
|
|
43
|
+
userAgent
|
|
44
|
+
}
|
|
45
|
+
avatar {
|
|
46
|
+
_id
|
|
47
|
+
name
|
|
48
|
+
size
|
|
49
|
+
type
|
|
50
|
+
url
|
|
51
|
+
}
|
|
52
|
+
allowedActions
|
|
53
|
+
paymentCredentials {
|
|
54
|
+
_id
|
|
55
|
+
isValid
|
|
56
|
+
isPreferred
|
|
57
|
+
paymentProvider {
|
|
58
|
+
_id
|
|
59
|
+
type
|
|
60
|
+
interface {
|
|
61
|
+
_id
|
|
62
|
+
label
|
|
63
|
+
version
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
emails {
|
|
68
|
+
verified
|
|
69
|
+
address
|
|
70
|
+
}
|
|
71
|
+
web3Addresses {
|
|
72
|
+
address
|
|
73
|
+
nonce
|
|
74
|
+
verified
|
|
75
|
+
}
|
|
76
|
+
webAuthnCredentials {
|
|
77
|
+
_id
|
|
78
|
+
created
|
|
79
|
+
aaguid
|
|
80
|
+
counter
|
|
81
|
+
mdsMetadata {
|
|
82
|
+
...MD5MetaDataFragment
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
profile {
|
|
86
|
+
displayName
|
|
87
|
+
phoneMobile
|
|
88
|
+
gender
|
|
89
|
+
address {
|
|
90
|
+
firstName
|
|
91
|
+
lastName
|
|
92
|
+
company
|
|
93
|
+
addressLine
|
|
94
|
+
addressLine2
|
|
95
|
+
postalCode
|
|
96
|
+
countryCode
|
|
97
|
+
regionCode
|
|
98
|
+
city
|
|
99
|
+
}
|
|
100
|
+
birthday
|
|
101
|
+
}
|
|
102
|
+
username
|
|
103
|
+
primaryEmail {
|
|
104
|
+
verified
|
|
105
|
+
address
|
|
106
|
+
}
|
|
107
|
+
isGuest
|
|
108
|
+
isInitialPassword
|
|
109
|
+
name
|
|
110
|
+
roles
|
|
111
|
+
tags
|
|
112
|
+
deleted
|
|
113
|
+
cart {
|
|
114
|
+
_id
|
|
115
|
+
items {
|
|
116
|
+
_id
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
orders {
|
|
120
|
+
_id
|
|
121
|
+
items {
|
|
122
|
+
_id
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
${a}
|
|
127
|
+
`;e.s(["default",0,s],73298)},51870,e=>{"use strict";var t=e.i(59080),a=e.i(32171),s=e.i(70693),r=e.i(73298);e.s(["default",0,e=>{let{customProperties:l,hydrateFragment:i}=(0,s.default)(),{data:d,loading:o,error:n}=(0,a.useQuery)(((e="")=>t.gql`
|
|
128
|
+
query CurrentUser {
|
|
129
|
+
me {
|
|
130
|
+
...UserFragment
|
|
131
|
+
${e}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
${r.default}
|
|
135
|
+
`)(l?.User)),c=d?.me,u=i(l?.User,c||null);return{currentUser:c,loading:o,error:n,extendedData:u}}])},41215,e=>{"use strict";e.s(["default",0,class extends Error{constructor(e){super(e),this.name="CustomError"}}])},62100,e=>{"use strict";var t=e.i(91398),a=e.i(24557),s=e.i(72043),r=e.i(69322);e.s(["default",0,({onClick:e,className:l="",icon:i=null,textRight:d="",textLeft:o="",ariaLabel:n=""})=>{let{formatMessage:c}=(0,r.useIntl)();return(0,t.jsxs)("button",{"aria-label":n||c({id:"delete",defaultMessage:"Delete"}),id:"delete_button",type:"button",onClick:e,className:(0,s.default)("flex justify-center items-center rounded-full dark:bg-slate-800 p-2 w-8 h-8 text-sm text-rose-500 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/20 focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2",l),children:[o||"",i||(0,t.jsx)(a.TrashIcon,{className:"h-5 w-5"}),d||""]})}])},31494,e=>{"use strict";var t=e.i(91398),a=e.i(69322),s=e.i(84818),r=e.i(35065),l=e.i(64591);let i=({value:e})=>{let{formatDateTime:i}=(0,s.default)(),{formatMessage:d}=(0,a.useIntl)();return(e=>{try{return new URL(e)}catch{return!1}})(e)?(e=>{try{let{pathname:t}=new URL(e),a=t?.split("."),s=`.${a[a.length-1]}`;return[".jpg",".jpeg",".png",".gif",".bmp"].includes(s)}catch{return!1}})(e)?(0,t.jsx)("div",{className:"ring-2 ring-offset-2 ring-slate-900 group block w-full aspect-w-10 aspect-h-7 rounded-lg bg-slate-50 overflow-hidden",children:(0,t.jsx)(r.default,{src:e,className:"relative h-10 w-10 rounded-full",width:100,height:100,alt:d({id:"image_not_available",defaultMessage:"Image not available"})})}):(0,t.jsx)("div",{className:"ml-4 shrink-0",children:(0,t.jsxs)("a",{href:e,className:"font-medium text-slate-900 hover:text-slate-800",target:"_blank",rel:"noreferrer",children:[new URL(e).host,"...",new URL(e).pathname]})}):(e=>{try{return"boolean"==typeof JSON.parse(e)}catch{return!1}})(e)?(0,t.jsx)(l.default,{disabled:!0,active:JSON.parse(e)}):!Number.isNaN(Date.parse(e))&&Number.isNaN(Number(e))?i(e,{dateStyle:"long",timeStyle:"short"}):(!Number.isNaN(e),e)},d=({value:e})=>(0,t.jsx)("h3",{className:"text-base font-medium",children:(0,t.jsx)("span",{className:"text-slate-900",children:e})}),o=e=>{let{data:a,parentKey:s}=e;if(!a)return null;let r=Object.keys(a),l=[];return void 0!==s&&l.push((0,t.jsx)(d,{value:s},s)),r.forEach(e=>{let r=a[e];if(Array.isArray(r))if(l.push((0,t.jsx)(d,{value:e},e)),r.every(e=>"string"==typeof e||"number"==typeof e))l.push((0,t.jsx)("div",{className:" p-2",children:r?.map(e=>(0,t.jsx)("span",{className:"inline-flex items-center rounded-md bg-slate-50 px-2.5 py-0.5 text-sm font-medium text-slate-800 ml-2",children:(0,t.jsx)(i,{value:e})},e))},e));else{let a=[];r.forEach((e,s)=>{a.push((0,t.jsx)("li",{className:"flex items-center text-slate-600 justify-between py-3 pl-3 pr-4 text-sm",children:o({data:e,parentKey:s})},s))}),l.push((0,t.jsx)("ul",{className:"divide-y divide-slate-200 rounded-md ",children:a},e))}else"object"==typeof r?l.push(o({data:r,parentKey:e})):void 0===s?l.push((0,t.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:py-5",children:[(0,t.jsx)("dt",{className:"text-sm font-medium text-slate-700",children:(0,t.jsx)(d,{value:e},e)}),(0,t.jsx)("dd",{className:"mt-1 text-sm text-slate-900 sm:col-span-2 sm:mt-0",children:(0,t.jsx)(i,{value:r})})]},e)):l.push((0,t.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:py-5 sm:px-6",children:[(0,t.jsx)("dt",{className:"text-sm font-medium text-slate-700",children:(0,t.jsx)(d,{value:e},e)}),(0,t.jsx)("dd",{className:"mt-1 text-sm text-slate-900 sm:col-span-2 sm:mt-0",children:(0,t.jsx)(i,{value:r})})]},e))}),(0,t.jsx)("div",{className:" bg-white px-4 py-5 ",children:(0,t.jsx)("dl",{children:l})})};e.s(["default",0,o])},5505,e=>{"use strict";var t=e.i(91398),a=e.i(91788),s=e.i(72043);let r=(0,a.createContext)(!1);e.s(["FormWrapperContext",0,r,"default",0,({children:e,className:a=""})=>(0,t.jsx)(r.Provider,{value:!0,children:(0,t.jsx)("div",{className:"sm:max-w-full",children:(0,t.jsx)("div",{className:(0,s.default)("bg-white dark:bg-slate-800 rounded-md shadow-sm overflow-hidden",a),children:e})})})])},57468,e=>{"use strict";var t=e.i(91398),a=e.i(72043),s=e.i(69322),r=e.i(99160);e.s(["default",0,({cancelText:e=null,showCancel:l=!0,submitText:i=null,showSubmit:d=!0,onCancel:o,className:n=""})=>{let{formatMessage:c}=(0,s.useIntl)();return(0,t.jsxs)("span",{className:(0,a.default)("flex shrink-0 items-center space-x-4 py-5 pl-1",n),children:[l?(0,t.jsx)("button",{onClick:o,"data-id":"cancel_update",type:"button",className:(0,a.default)("focus:ring-slate-800","inline-flex items-center rounded-md border border-slate-300 dark:border-slate-700 bg-white dark:bg-slate-800 px-4 py-2 text-sm font-medium text-slate-700 dark:text-slate-300 shadow-xs hover:bg-slate-50 dark:hover:bg-slate-700 focus:outline-hidden focus:ring-2 focus:ring-slate-800 focus:ring-offset-2"),children:e||c({id:"cancel",defaultMessage:"Cancel"})}):null,d?(0,t.jsx)(r.default,{label:i||c({id:"save",defaultMessage:"Save"})}):null]})}])},60195,e=>{"use strict";var t=e.i(91398),a=e.i(72043);e.s(["default",0,({documentationLabel:e,documentation:s=null,mainContent:r=null,sideComponents:l=null,className:i=null,children:d})=>(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:(0,a.default)("mt-5 lg:grid lg:grid-cols-3 lg:gap-6",i),children:[(0,t.jsx)("div",{className:"lg:col-span-1 mt-10 lg:mt-1",children:(0,t.jsxs)("div",{className:"px-4 sm:px-0",children:[(0,t.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",children:e}),(0,t.jsx)("div",{className:"mt-1 text-sm text-slate-600 dark:text-slate-500",children:s}),l]})}),(0,t.jsx)("div",{className:"lg:col-span-2 lg:mt-0",children:d||r})]})})])},41523,e=>{"use strict";var t=e.i(91398),a=e.i(72043),s=e.i(3828),r=e.i(91788),l=e.i(69322);e.s(["default",0,({children:e,tabItems:i,defaultTab:d,updateRoute:o=!0})=>{let n=(0,s.useRouter)(),{tab:c=d}=n?.query||{},u=Array.isArray(c)?c[0]:c,{formatMessage:m}=(0,l.useIntl)(),f=e=>{if(o){let{sort:t,...a}=n?.query||{};n.push({query:{...a,tab:e}},void 0,{shallow:!0})}};return(0,t.jsxs)("div",{className:"mt-10",children:[(0,t.jsxs)("div",{className:"lg:hidden",children:[(0,t.jsx)("label",{htmlFor:"selected-tab",className:"sr-only",children:m({id:"select_tab",defaultMessage:"Select a tab"})}),(0,t.jsx)("select",{onChange:e=>f(e.target.value),id:"selected-tab",name:"selected-tab",className:"mt-1 block dark:bg-slate-800 dark:text-white w-full rounded-md border-slate-300 dark:border-slate-600 py-2 pl-3 pr-10 text-base capitalize focus:outline-none focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:border-slate-800 dark:focus:border-slate-400 sm:text-sm",value:u,children:i.filter(Boolean).map(e=>(0,t.jsx)("option",{value:e.id,className:"dark:text-white",children:e?.title||e?.id},e.id))})]}),(0,t.jsx)("div",{className:"mt-5 hidden lg:block",children:(0,t.jsx)("div",{className:"",children:(0,t.jsx)("nav",{className:"flex flex-wrap gap-3",children:i.filter(Boolean).map(e=>(0,t.jsx)("a",{id:e.id,tabIndex:0,onClick:()=>f(e.id),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),f(e.id))},className:(0,a.default)({"cursor-pointer rounded-lg border border-slate-300 dark:border-slate-600 bg-white text-slate-900 dark:text-slate-100 dark:bg-slate-900 shadow-sm dark:hover:border-slate-500 hover:border-slate-400 focus:outline-none focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:ring-offset-2 dark:focus:ring-offset-slate-900":u===e.id},"cursor-pointer relative whitespace-nowrap border border-slate-200 dark:border-slate-800 py-2 px-1 pr-3 pl-2 text-sm dark:text-slate-400 font-medium hover:bg-white dark:hover:bg-slate-800 hover:border-slate-300 dark:hover:border-slate-500 rounded-lg focus:outline-none focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:ring-offset-2 dark:focus:ring-offset-slate-900"),children:(0,t.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,t.jsx)("div",{children:e.Icon}),(0,t.jsx)("div",{className:"capitalize",children:e?.title||e?.id}),e?.length?(0,t.jsx)("span",{className:"absolute top-0 right-0 inline-flex translate-x-1/2 -translate-y-1/2 transform items-center justify-center rounded-full bg-slate-400 px-1 py-0.5 text-sm leading-none text-slate-900",children:e?.length}):null]})},e.id))})})}),(0,t.jsx)("div",{className:"mt-5",children:r.default.cloneElement(e,{selectedView:u})})]})}])},37932,e=>{"use strict";var t=e.i(91398),a=e.i(69322),s=e.i(6607),r=e.i(65153),l=e.i(69211),i=e.i(96015),d=e.i(98949),o=e.i(57468);let n=({tags:e,onSubmit:s,onCancel:r,selectOptions:n=[]})=>{let{formatMessage:c}=(0,a.useIntl)(),u=c({id:"tags_updated",defaultMessage:"Tags updated successfully"}),m=(0,d.default)({submit:s,successMessage:u,onSubmitSuccess:r,initialValues:{tags:e}});return(0,t.jsxs)(l.default,{form:m,id:"add_tag_form",children:[(0,t.jsx)("div",{children:(0,t.jsx)(i.default,{name:"tags",id:"tags",label:c({id:"tags",defaultMessage:"Tags"}),tagList:e,selectOptions:n})}),(0,t.jsx)("div",{className:"border border-t-slate-100 bg-slate-50 mt-6 -mx-6 -mb-6 px-6 dark:bg-slate-900 dark:border-0",children:(0,t.jsx)(o.default,{onCancel:r,className:"justify-end "})})]})};e.s(["default",0,({defaultValue:e,onSubmit:l,enableEdit:i,availableTagOptions:d=[]})=>{let{formatMessage:o}=(0,a.useIntl)(),{setModal:c}=(0,s.default)();return(0,t.jsxs)("div",{className:"flex items-center mr-auto gap-2",children:[(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:e?.length?e.map((e,a)=>(0,t.jsx)("span",{children:(0,t.jsx)(r.default,{text:e,color:"sky"})},`${e}${a+1}`)):(0,t.jsx)("span",{children:(0,t.jsx)(r.default,{text:o({id:"no_tag",defaultMessage:"No Tag"}),color:"slate"})})}),i&&(0,t.jsx)("button",{id:"add_tag",type:"button",className:"rounded-sm hover:shadow-sm px-3 py-2 text-xs inline-flex items-center justify-center text-slate-800 hover:text-slate-900 hover:bg-slate-50 hover:border border-transparent border-1 hover:border-slate-300 dark:text-slate-400 dark:hover:text-slate-200 dark:hover:bg-slate-800 transition-colors focus:outline-hidden focus:ring-2 focus:ring-slate-800",onClick:()=>c((0,t.jsx)(n,{tags:e||[],onCancel:()=>c(""),onSubmit:l,selectOptions:d})),children:o({id:"edit_tags",defaultMessage:"Edit tags"})})]})}],37932)},64591,e=>{"use strict";var t=e.i(91398),a=e.i(72043),s=e.i(3828),r=e.i(83147);e.s(["default",0,({toggleText:e="",toggleKey:l=null,onToggle:i=null,active:d=!1,className:o="",disabled:n=!1,...c})=>{let u=(0,s.useRouter)(),m=u?.query?.[l]==="true"||d;return(0,t.jsxs)("div",{className:(0,a.default)("",o),children:[(0,t.jsxs)("button",{id:l,disabled:n,type:"button",className:(0,a.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":!m,"bg-emerald-500 dark:bg-emerald-600 shadow-sm":m}),role:"switch",onClick:i||(()=>{let{skip:e,...t}=u.query;u.push({query:(0,r.normalizeQuery)(t,!m,l)})}),"aria-checked":m?"true":"false",...c,children:[(0,t.jsx)("span",{className:"sr-only",children:e}),(0,t.jsxs)("span",{className:(0,a.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":m,"translate-x-0":!m}),children:[(0,t.jsx)("span",{className:(0,a.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-0 duration-100 ease-out":m,"opacity-100 duration-200 ease-in":!m}),"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,a.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-100 duration-200 ease-in":m,"opacity-0 duration-100 ease-out":!m}),"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})})]})}])},57561,48539,55989,e=>{"use strict";var t=e.i(91788),a=e.i(91398),s=e.i(69322),r=e.i(51713),l=e.i(98520),i=e.i(59080),d=e.i(32171);let o=i.gql`
|
|
136
|
+
query ShopInfo {
|
|
137
|
+
shopInfo {
|
|
138
|
+
_id
|
|
139
|
+
version
|
|
140
|
+
language {
|
|
141
|
+
_id
|
|
142
|
+
isoCode
|
|
143
|
+
name
|
|
144
|
+
}
|
|
145
|
+
country {
|
|
146
|
+
_id
|
|
147
|
+
isoCode
|
|
148
|
+
flagEmoji
|
|
149
|
+
name
|
|
150
|
+
defaultCurrency {
|
|
151
|
+
_id
|
|
152
|
+
isoCode
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
adminUiConfig {
|
|
156
|
+
singleSignOnURL
|
|
157
|
+
externalLinks {
|
|
158
|
+
href
|
|
159
|
+
title
|
|
160
|
+
target
|
|
161
|
+
}
|
|
162
|
+
customProperties {
|
|
163
|
+
entityName
|
|
164
|
+
inlineFragment
|
|
165
|
+
}
|
|
166
|
+
productTags
|
|
167
|
+
assortmentTags
|
|
168
|
+
userTags
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
`,n=()=>{let{data:e,loading:t,error:a}=(0,d.useQuery)(o,{fetchPolicy:"cache-first"}),{shopInfo:s}=e||{};return{shopInfo:s,defaultLocale:[s?.language?.isoCode,s?.country?.isoCode?.toUpperCase()].filter(Boolean)?.join("-"),loading:t,error:a}};e.s(["default",0,n],48539);var c=e.i(79684);let u=(0,t.createContext)(void 0);e.s(["AppContextWrapper",0,({children:e,onlyFull:i=!1})=>{let d,{languages:o}=(0,r.default)(),{locale:m}=(0,s.useIntl)(),[f,h]=(0,c.default)("selectedLocale",null),{shopInfo:g,loading:x}=n(),{countries:p}=(0,l.default)(),[v,b]=(0,t.useState)(m),y=e=>{h(e),b(e)};(0,t.useEffect)(()=>{f?b(f):x||y(`${g?.language?.isoCode}-${g?.country?.isoCode?.toUpperCase()}`)},[g,x,m]);let w=(d=[],o.forEach(({_id:e,isoCode:t})=>{d.push({_id:e,isoCode:t}),p.forEach(({isoCode:a,_id:s})=>{let r=[t,a.toUpperCase()].join("-");(e=>{try{return new Intl.DateTimeFormat(e).resolvedOptions().locale.toLowerCase()===e.toLowerCase()}catch(e){return!1}})(r)&&d.push({_id:`${s}-${e}`,isoCode:r})})}),d).filter(e=>!i||e.isoCode.includes("-")),j=!!g?.language&&!!g?.country;return(0,a.jsx)(u.Provider,{value:{selectedLocale:v,setSelectedLocale:y,languageDialectList:w,isSystemReady:j,shopInfo:g},children:e})},"default",0,u],55989),e.s(["default",0,()=>{let e=(0,t.useContext)(u);if(!e)throw Error("useLocale must be used within a LocaleProvider");return e}],57561)},64479,e=>{"use strict";var t=e.i(59080),a=e.i(76204);let s=t.gql`
|
|
173
|
+
mutation ConfirmMediaUpload(
|
|
174
|
+
$mediaUploadTicketId: ID!
|
|
175
|
+
$size: Int!
|
|
176
|
+
$type: String!
|
|
177
|
+
) {
|
|
178
|
+
confirmMediaUpload(
|
|
179
|
+
mediaUploadTicketId: $mediaUploadTicketId
|
|
180
|
+
size: $size
|
|
181
|
+
type: $type
|
|
182
|
+
) {
|
|
183
|
+
_id
|
|
184
|
+
name
|
|
185
|
+
type
|
|
186
|
+
size
|
|
187
|
+
url
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
`;e.s(["default",0,(e={})=>{let[t]=(0,a.useMutation)(s,e);return{confirmMediaUpload:async({mediaUploadTicketId:e,size:a,type:s})=>t({variables:{mediaUploadTicketId:e,size:a,type:s}})}}])},93994,e=>{"use strict";let t=async(e,t)=>{let a=await fetch(t,{method:"PUT",body:e});return a.ok?Promise.resolve({}):Promise.reject(Error(a.statusText))};e.s(["default",0,t])},77846,e=>{"use strict";var t=e.i(59080);let a=t.gql`
|
|
191
|
+
fragment CountryFragment on Country {
|
|
192
|
+
_id
|
|
193
|
+
isoCode
|
|
194
|
+
isActive
|
|
195
|
+
isBase
|
|
196
|
+
|
|
197
|
+
defaultCurrency {
|
|
198
|
+
_id
|
|
199
|
+
isoCode
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
`;e.s(["default",0,a])},98520,e=>{"use strict";var t=e.i(59080),a=e.i(32171),s=e.i(77846);let r=t.gql`
|
|
203
|
+
query Countries(
|
|
204
|
+
$queryString: String
|
|
205
|
+
$limit: Int
|
|
206
|
+
$offset: Int
|
|
207
|
+
$includeInactive: Boolean
|
|
208
|
+
$sort: [SortOptionInput!]
|
|
209
|
+
) {
|
|
210
|
+
countries(
|
|
211
|
+
queryString: $queryString
|
|
212
|
+
limit: $limit
|
|
213
|
+
offset: $offset
|
|
214
|
+
includeInactive: $includeInactive
|
|
215
|
+
sort: $sort
|
|
216
|
+
) {
|
|
217
|
+
...CountryFragment
|
|
218
|
+
}
|
|
219
|
+
countriesCount(includeInactive: $includeInactive, queryString: $queryString)
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
${s.default}
|
|
223
|
+
`;e.s(["default",0,({queryString:e="",limit:t=20,offset:s=0,includeInactive:l=!0,sort:i=[]}={})=>{let{data:d,loading:o,error:n,fetchMore:c}=(0,a.useQuery)(r,{variables:{queryString:e,limit:t,offset:s,includeInactive:l,sort:i}}),u=d?.countries||[],m=d?.countriesCount,f=u?.length<m;return{countries:u,countriesCount:m,hasMore:f,loading:o,error:n,loadMore:()=>{c({variables:{offset:u?.length}})}}}])},73483,e=>{"use strict";var t=e.i(91398),a=e.i(72043),s=e.i(69322),r=e.i(91412),l=e.i(91788);let i=l.forwardRef(function({title:e,titleId:t,...a},s){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?l.createElement("title",{id:t},e):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"}))});var d=e.i(7654),o=e.i(31858),n=e.i(3812),c=e.i(98634),u=e.i(82226),m=e.i(60741),f=e.i(29691),h=e.i(41523);let g=({selectedView:e="edit",...s})=>"preview"===e?(0,t.jsx)("div",{className:"prose dark:prose-invert",children:(0,t.jsx)(d.default,{rehypePlugins:[o.default,n.default,c.default],children:s.value})}):(0,t.jsx)("textarea",{className:(0,a.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",s.className,{"border-rose-700 placeholder:text-rose-300 placeholder-rose-300":!!s.error}),disabled:s.disabled,id:s.name,name:s.name,rows:s.rows||10,onChange:s.onChange,onBlur:s.onBlur,placeholder:s.placeholder,autoComplete:s.autoComplete||"off",value:s.value});e.s(["default",0,({maxLength:e,validators:a=[],...l})=>{let{formatMessage:d}=(0,s.useIntl)(),o=(0,m.default)({validators:[...a,e&&(0,u.validateMaxLength)(e)],...l}),n=[{id:"editor",title:d({id:"editor",defaultMessage:"Editor"}),Icon:(0,t.jsx)(i,{className:"h-4 w-5"})},{id:"preview",title:d({id:"preview",defaultMessage:"preview"}),Icon:(0,t.jsx)(r.EyeIcon,{className:"h-4 w-5"})}];return(0,t.jsx)(f.default,{...o,children:(0,t.jsx)("div",{className:"-mt-8",children:(0,t.jsx)(h.default,{tabItems:n,defaultTab:"editor",children:(0,t.jsx)(g,{...o})})})})}],73483)},73419,e=>{"use strict";var t=e.i(91398),a=e.i(72043),s=e.i(60741),r=e.i(29691);e.s(["default",0,e=>{let{options:l,...i}=(0,s.default)(e),{className:d}=e||{className:""};return(0,t.jsx)(r.default,{...i,children:(0,t.jsx)("div",{className:"select-wrap",children:(0,t.jsxs)("select",{className:(0,a.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",d,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!i.error}),disabled:i.disabled,id:i.name,name:i.name,onChange:i.onChange,onBlur:i.onBlur,value:i.value,children:[(0,t.jsx)("option",{className:"dark:text-slate-200",value:"",disabled:i.required,hidden:i.required,children:i.placeholder||i.label}),Object.entries(l).map(([e,a])=>(0,t.jsx)("option",{className:"dark:text-slate-200",value:e,children:a},e))]})})})}])},96015,e=>{"use strict";var t=e.i(91398),a=e.i(72043),s=e.i(68835),r=e.i(60741),l=e.i(82226),i=e.i(29691);e.s(["default",0,({buttonText:e="",validators:d=[],selectOptions:o=[],...n})=>{let c=(0,r.default)({validators:[...d,(0,l.validateRequiredTag)(n?.required)],label:"Tags",...n});return(0,t.jsx)(i.default,{...c,children:(0,t.jsx)(s.default,{disabled:c.disabled,id:c.id,name:c.name,className:(0,a.default)({"border-rose-300":!!c.error}),onChange:e=>c.setValue(e),placeholder:c.placeholder,tagList:c.value,buttonText:e,selectOptions:o})})}])},45229,e=>{"use strict";var t=e.i(91398),a=e.i(72043),s=e.i(82226),r=e.i(60741),l=e.i(29691);e.s(["default",0,({maxLength:e=0,validators:i=[],...d})=>{let o=(0,r.default)({validators:[...i,e&&(0,s.validateMaxLength)(e)],...d});return(0,t.jsx)(l.default,{...o,children:(0,t.jsx)("input",{className:(0,a.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})})}])},95064,e=>{"use strict";var t=e.i(59080);let a=t.gql`
|
|
224
|
+
fragment LanguageFragment on Language {
|
|
225
|
+
_id
|
|
226
|
+
isoCode
|
|
227
|
+
isActive
|
|
228
|
+
isBase
|
|
229
|
+
name
|
|
230
|
+
}
|
|
231
|
+
`;e.s(["default",0,a])},51713,e=>{"use strict";var t=e.i(59080),a=e.i(32171),s=e.i(95064);let r=t.gql`
|
|
232
|
+
query Languages(
|
|
233
|
+
$queryString: String
|
|
234
|
+
$offset: Int
|
|
235
|
+
$limit: Int
|
|
236
|
+
$includeInactive: Boolean
|
|
237
|
+
$sort: [SortOptionInput!]
|
|
238
|
+
) {
|
|
239
|
+
languages(
|
|
240
|
+
queryString: $queryString
|
|
241
|
+
offset: $offset
|
|
242
|
+
limit: $limit
|
|
243
|
+
includeInactive: $includeInactive
|
|
244
|
+
sort: $sort
|
|
245
|
+
) {
|
|
246
|
+
...LanguageFragment
|
|
247
|
+
}
|
|
248
|
+
languagesCount(includeInactive: $includeInactive, queryString: $queryString)
|
|
249
|
+
}
|
|
250
|
+
${s.default}
|
|
251
|
+
`;e.s(["default",0,({queryString:e="",limit:t=20,offset:s=0,includeInactive:l=!0,sort:i=[]}={})=>{let{data:d,loading:o,error:n,fetchMore:c}=(0,a.useQuery)(r,{variables:{queryString:e,limit:t,offset:s,includeInactive:l,sort:i}}),u=d?.languages||[],m=d?.languagesCount,f=u?.length<m;return{languages:u,languagesCount:m,hasMore:f,loading:o,error:n,loadMore:()=>{c({variables:{offset:u?.length}})}}}])},54529,e=>{"use strict";var t=e.i(59080);let a=t.gql`
|
|
252
|
+
fragment ProductBriefFragment on Product {
|
|
253
|
+
texts(forceLocale: $forceLocale) {
|
|
254
|
+
_id
|
|
255
|
+
slug
|
|
256
|
+
title
|
|
257
|
+
subtitle
|
|
258
|
+
description
|
|
259
|
+
vendor
|
|
260
|
+
brand
|
|
261
|
+
labels
|
|
262
|
+
locale
|
|
263
|
+
}
|
|
264
|
+
_id
|
|
265
|
+
sequence
|
|
266
|
+
status
|
|
267
|
+
tags
|
|
268
|
+
sequence
|
|
269
|
+
updated
|
|
270
|
+
published
|
|
271
|
+
media {
|
|
272
|
+
_id
|
|
273
|
+
tags
|
|
274
|
+
file {
|
|
275
|
+
_id
|
|
276
|
+
url
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
... on BundleProduct {
|
|
280
|
+
proxies {
|
|
281
|
+
__typename
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
... on SimpleProduct {
|
|
285
|
+
catalogPrice {
|
|
286
|
+
amount
|
|
287
|
+
currencyCode
|
|
288
|
+
}
|
|
289
|
+
proxies {
|
|
290
|
+
__typename
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
... on PlanProduct {
|
|
294
|
+
catalogPrice {
|
|
295
|
+
amount
|
|
296
|
+
currencyCode
|
|
297
|
+
}
|
|
298
|
+
proxies {
|
|
299
|
+
__typename
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
`;e.s(["default",0,a])},76929,e=>{"use strict";var t=e.i(91788);let a=t.forwardRef(function({title:e,titleId:a,...s},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":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{d:"M12 4.467c0-.405.262-.75.559-1.027.276-.257.441-.584.441-.94 0-.828-.895-1.5-2-1.5s-2 .672-2 1.5c0 .362.171.694.456.953.29.265.544.6.544.994a.968.968 0 0 1-1.024.974 39.655 39.655 0 0 1-3.014-.306.75.75 0 0 0-.847.847c.14.993.242 1.999.306 3.014A.968.968 0 0 1 4.447 10c-.393 0-.729-.253-.994-.544C3.194 9.17 2.862 9 2.5 9 1.672 9 1 9.895 1 11s.672 2 1.5 2c.356 0 .683-.165.94-.441.276-.297.622-.559 1.027-.559a.997.997 0 0 1 1.004 1.03 39.747 39.747 0 0 1-.319 3.734.75.75 0 0 0 .64.842c1.05.146 2.111.252 3.184.318A.97.97 0 0 0 10 16.948c0-.394-.254-.73-.545-.995C9.171 15.693 9 15.362 9 15c0-.828.895-1.5 2-1.5s2 .672 2 1.5c0 .356-.165.683-.441.94-.297.276-.559.622-.559 1.027a.998.998 0 0 0 1.03 1.005c1.337-.05 2.659-.162 3.961-.337a.75.75 0 0 0 .644-.644c.175-1.302.288-2.624.337-3.961A.998.998 0 0 0 16.967 12c-.405 0-.75.262-1.027.559-.257.276-.584.441-.94.441-.828 0-1.5-.895-1.5-2s.672-2 1.5-2c.362 0 .694.17.953.455.265.291.601.545.995.545a.97.97 0 0 0 .976-1.024 41.159 41.159 0 0 0-.318-3.184.75.75 0 0 0-.842-.64c-1.228.164-2.473.271-3.734.319A.997.997 0 0 1 12 4.467Z"}))});e.s(["PuzzlePieceIcon",0,a],76929)},61113,87593,39833,84339,19471,66859,e=>{"use strict";var t=e.i(91788);let a=t.forwardRef(function({title:e,titleId:a,...s},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":a},s),e?t.createElement("title",{id:a},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(["StarIcon",0,a],61113);var s=e.i(59080);let r=s.gql`
|
|
304
|
+
fragment ProductReviewDetailFragment on ProductReview {
|
|
305
|
+
_id
|
|
306
|
+
created
|
|
307
|
+
updated
|
|
308
|
+
deleted
|
|
309
|
+
author {
|
|
310
|
+
_id
|
|
311
|
+
username
|
|
312
|
+
name
|
|
313
|
+
profile {
|
|
314
|
+
displayName
|
|
315
|
+
address {
|
|
316
|
+
firstName
|
|
317
|
+
lastName
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
isGuest
|
|
321
|
+
avatar {
|
|
322
|
+
_id
|
|
323
|
+
|
|
324
|
+
url
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
product {
|
|
328
|
+
_id
|
|
329
|
+
texts(forceLocale: $forceLocale) {
|
|
330
|
+
_id
|
|
331
|
+
title
|
|
332
|
+
subtitle
|
|
333
|
+
}
|
|
334
|
+
media {
|
|
335
|
+
_id
|
|
336
|
+
file {
|
|
337
|
+
_id
|
|
338
|
+
url
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
rating
|
|
343
|
+
title
|
|
344
|
+
review
|
|
345
|
+
upVote: voteCount(type: UPVOTE)
|
|
346
|
+
downVote: voteCount(type: DOWNVOTE)
|
|
347
|
+
voteReport: voteCount(type: REPORT)
|
|
348
|
+
ownVotes {
|
|
349
|
+
timestamp
|
|
350
|
+
type
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
`;e.s(["default",0,r],87593);var l=e.i(91398);let i=t.forwardRef(function({title:e,titleId:a,...s},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":a},s),e?t.createElement("title",{id:a},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"}))}),d=t.forwardRef(function({title:e,titleId:a,...s},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":a},s),e?t.createElement("title",{id:a},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(["HandThumbDownIcon",0,d],39833);let o=t.forwardRef(function({title:e,titleId:a,...s},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":a},s),e?t.createElement("title",{id:a},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(["HandThumbUpIcon",0,o],84339);var n=e.i(69322),c=e.i(66773),u=e.i(28401),m=e.i(72043),f=e.i(62100),h=e.i(84818),g=e.i(15971),x=e.i(6607),p=e.i(76204);let v=s.gql`
|
|
354
|
+
mutation RemoveProductReview($productReviewId: ID!) {
|
|
355
|
+
removeProductReview(productReviewId: $productReviewId) {
|
|
356
|
+
_id
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
`;var b=e.i(65153),y=e.i(35065),w=e.i(93380);let j=s.gql`
|
|
360
|
+
mutation AddProductReviewVote(
|
|
361
|
+
$productReviewId: ID!
|
|
362
|
+
$type: ProductReviewVoteType!
|
|
363
|
+
$meta: JSON
|
|
364
|
+
$forceLocale: Locale
|
|
365
|
+
) {
|
|
366
|
+
addProductReviewVote(
|
|
367
|
+
productReviewId: $productReviewId
|
|
368
|
+
type: $type
|
|
369
|
+
meta: $meta
|
|
370
|
+
) {
|
|
371
|
+
_id
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
`,k=s.gql`
|
|
375
|
+
mutation RemoveProductReviewVote(
|
|
376
|
+
$productReviewId: ID!
|
|
377
|
+
$type: ProductReviewVoteType!
|
|
378
|
+
$forceLocale: Locale
|
|
379
|
+
) {
|
|
380
|
+
removeProductReviewVote(productReviewId: $productReviewId, type: $type) {
|
|
381
|
+
_id
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
`;var N=e.i(58971),C=e.i(51870),_=e.i(69211),I=e.i(99160),R=e.i(82226),$=e.i(60741),L=e.i(29691);let P=({maxLength:e,validators:t=[],...a})=>{let s=(0,$.default)({validators:[...t,e&&(0,R.validateMaxLength)(e)],...a});return(0,l.jsx)(L.default,{...s,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",s.className,{"border-rose-700 placeholder:text-rose-300 placeholder-rose-300":!!s.error}),disabled:s.disabled,id:s.name,name:s.name,rows:s.rows||10,onChange:s.onChange,onBlur:s.onBlur,placeholder:s.placeholder,autoComplete:s.autoComplete||"off",value:s.value})})};e.s(["default",0,P],19471);var M=e.i(98949);let E=({onSubmit:e,onSubmitSuccess:t=async()=>!0})=>{let{formatMessage:a}=(0,n.useIntl)(),s=a({id:"product_review_added",defaultMessage:"Review added successfully!"}),r=(0,M.default)({submit:e,successMessage:s,onSubmitSuccess:t,initialValues:{message:""}});return(0,l.jsxs)(_.default,{form:r,children:[(0,l.jsx)(P,{rows:3,required:!0,name:"message",id:"message",label:a({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)(I.default,{label:a({id:"report-submit",defaultMessage:"Submit"})})})]})};var q=e.i(41215);let S="UPVOTE",T="DOWNVOTE",B="REPORT";e.s(["default",0,({review:e,enableDelete:t=!0,showProduct:a=!1})=>{let{formatMessage:s}=(0,n.useIntl)(),{currentUser:r}=(0,C.default)(),{formatDateTime:_}=(0,h.default)(),{setModal:I}=(0,x.default)(),{addProductReviewVote:R}=(()=>{let[e]=(0,p.useMutation)(j);return{addProductReviewVote:async({productReviewId:t,type:a,meta:s})=>e({variables:{productReviewId:t,type:a,meta:s},refetchQueries:["ProductReviewByProduct","ProductReviewByUser"]})}})(),{removeProductReviewVote:$}=(()=>{let[e]=(0,p.useMutation)(k);return{removeProductReviewVote:async({productReviewId:t,type:a})=>e({variables:{productReviewId:t,type:a},refetchQueries:["ProductReviewByProduct","ProductReviewByUser"]})}})(),{hasRole:L,isAdmin:P}=(0,N.default)(),M=t=>!!e.ownVotes.find(e=>e.type===t),A=async t=>{let a=async({message:a})=>{try{return await R({productReviewId:e._id,type:t,meta:{message:a}}),{success:!0}}catch(e){if(e instanceof q.default)return{success:!1,error:e?.message};return{success:!1,error:e}}};M(t)?await $({productReviewId:e._id,type:t}):t===B?await I((0,l.jsx)(E,{onSubmit:a,onSubmitSuccess:async()=>I(null)})):await R({productReviewId:e._id,type:t})},{removeProductReview:O}=(()=>{let[e]=(0,p.useMutation)(v);return{removeProductReview:async({productReviewId:t})=>e({variables:{productReviewId:t},refetchQueries:["ProductReviewByProduct","ProductReviewByUser"]})}})(),U=!e.deleted&&L(c.IRoleAction.VoteProductReview)&&t&&e?.author?._id===r?._id||P()&&!e.deleted,V=!e.deleted&&L(c.IRoleAction.VoteProductReview),D=e?.product,F=async e=>{await I((0,l.jsx)(g.default,{onCancelClick:async()=>I(""),message:s({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()=>{I(""),await O({productReviewId:e}),u.toast.success(s({id:"review_deleted",defaultMessage:"Review deleted successfully"}))},okText:s({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:[a?(0,l.jsx)(y.default,{src:D?.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)(y.default,{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:a?D?.texts?.title||(0,l.jsxs)(l.Fragment,{children:[D._id," ",(0,l.jsx)(b.default,{color:"yellow",text:s({id:"title_not_found",defaultMessage:"Title not found"})})]}):(0,w.default)(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.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:!V,onClick:async()=>A(S),className:`flex items-center gap-1 px-2 py-1 rounded-md transition-colors disabled:opacity-50 ${M(S)?"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)(o,{className:`h-5 w-5 ${M(S)?"text-emerald-600 dark:text-emerald-400":"text-slate-400 dark:text-slate-500"}`}),(0,l.jsx)("span",{className:`text-sm font-medium ${M(S)?"text-emerald-700 dark:text-emerald-300":"text-slate-700 dark:text-slate-300"}`,children:e.upVote})]}),(0,l.jsxs)("button",{type:"button",disabled:!V,onClick:async()=>A(T),className:`flex items-center gap-1 px-2 py-1 rounded-md transition-colors disabled:opacity-50 ${M(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)(d,{className:`h-5 w-5 ${M(T)?"text-rose-600 dark:text-rose-400":"text-slate-400 dark:text-slate-500"}`}),(0,l.jsx)("span",{className:`text-sm font-medium ${M(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:[L(c.IRoleAction.VoteProductReview)&&(0,l.jsx)("button",{type:"button",disabled:!V,onClick:async()=>A(B),className:`p-2 rounded-md transition-colors disabled:opacity-50 ${M(B)?"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)(i,{className:(0,m.default)("h-4 w-4",{"text-orange-600 dark:text-orange-400":M(B),"text-slate-400 dark:text-slate-500":!M(B)})})}),U&&(0,l.jsx)(f.default,{onClick:()=>F(e._id),className:""}),e.deleted&&(0,l.jsx)(b.default,{text:s({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)},91412,e=>{"use strict";var t=e.i(91788);let a=t.forwardRef(function({title:e,titleId:a,...s},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":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))});e.s(["EyeIcon",0,a],91412)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70693,12970,e=>{"use strict";var r=e.i(91788);let t=r.default.createContext({customProperties:{},hydrateFragment:(e,r)=>null});e.s(["default",0,t],12970),e.s(["default",0,()=>(0,r.useContext)(t)],70693)},74954,e=>{"use strict";var r=e.i(91398),t=e.i(91788);e.s(["default",0,({value:e,duration:l=300})=>{let[a,s]=(0,t.useState)(0);return(0,t.useEffect)(()=>{let r,t;if(0===e)return void s(0);let a=o=>{r||(r=o);let d=Math.min((o-r)/l,1);s(Math.round((1-Math.pow(1-d,3))*e)),d<1&&(t=requestAnimationFrame(a))};return t=requestAnimationFrame(a),()=>{t&&cancelAnimationFrame(t)}},[e,l]),(0,r.jsx)("span",{children:a})}])},65153,e=>{"use strict";var r=e.i(91398),t=e.i(72043),l=e.i(60193);e.s(["default",0,({text:e,className:a="",dotted:s=null,color:o="green",square:d=null,onClick:n=null})=>{let i=o?.trim(),b="rainbow"===i;return(0,r.jsx)("span",{id:"badge",className:(0,t.default)(b?"inline-flex items-center text-sm font-bold text-slate-900 dark:text-white shadow-lg relative p-[2px] bg-gradient-to-r from-rose-500 via-emerald-500 to-sky-500":`inline-flex items-center border ${(0,l.borderColor)(i,400)} px-2.5 py-0.5 text-sm font-medium ${(0,l.bgColor)(i,100)} ${(0,l.textColor)(i,800)}`,a,{"rounded-full":!d,"rounded-md":d}),children:b?(0,r.jsxs)("span",{className:(0,t.default)("inline-flex items-center bg-white dark:bg-slate-700 px-2.5 py-0.5",{"rounded-full":!d,"rounded-md":d}),children:[s&&(0,r.jsx)("svg",{className:"text-slate-900 dark:text-white -ml-1 mr-1.5 h-2 w-2",fill:"currentColor",viewBox:"0 0 8 8",children:(0,r.jsx)("circle",{cx:"4",cy:"4",r:"3"})}),e,n&&(0,r.jsx)("button",{id:"badge-x-button",type:"button",onClick:n,className:"ml-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full text-slate-900 dark:text-white hover:bg-slate-900 hover:bg-opacity-10 dark:hover:bg-white dark:hover:bg-opacity-20 focus:outline-hidden focus:bg-slate-900 focus:bg-opacity-20 dark:focus:bg-white dark:focus:bg-opacity-30",children:(0,r.jsx)("svg",{className:"h-2 w-2",stroke:"currentColor",fill:"none",viewBox:"0 0 8 8",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeWidth:"1.5",d:"M1 1l6 6m0-6L1 7"})})})]}):(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)("svg",{className:`-ml-1 mr-1.5 h-2 w-2 ${(0,l.textColor)(i,400)}`,fill:"currentColor",viewBox:"0 0 8 8",children:(0,r.jsx)("circle",{cx:"4",cy:"4",r:"3"})}),e,n&&(0,r.jsx)("button",{id:"badge-x-button",type:"button",onClick:n,className:`ml-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full ${(0,l.textColor)(i,400)} hover:${(0,l.bgColor)(i,200)} hover:text-${i}-500 focus:outline-hidden focus:${(0,l.bgColor)(i,500)} focus:text-white`,children:(0,r.jsx)("svg",{className:"h-2 w-2",stroke:"currentColor",fill:"none",viewBox:"0 0 8 8",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeWidth:"1.5",d:"M1 1l6 6m0-6L1 7"})})})]})})}])},81359,e=>{"use strict";var r=e.i(91398),t=e.i(24608),l=e.i(69322);e.s(["default",0,({onClick:e,text:a=null,Icon:s=null})=>{let{formatMessage:o}=(0,l.useIntl)();return(0,r.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,r.jsx)("span",{children:s||(0,r.jsx)(t.XMarkIcon,{className:"h-5 w-5"})}),a||o({id:"delete",defaultMessage:"Delete"})]})}])},78704,e=>{"use strict";var r=e.i(91398),t=e.i(91788),l=e.i(12197);e.s(["default",0,({loading:e,hasMore:a,onLoadMore:s,children:o,threshold:d=200})=>{let n=(0,t.useRef)(null),i=(0,t.useCallback)(r=>{let[t]=r;t.isIntersecting&&a&&!e&&s()},[a,e,s]);return(0,t.useEffect)(()=>{let e=n.current;if(!e)return;let r=new IntersectionObserver(i,{rootMargin:`${d}px`});return r.observe(e),()=>{r.disconnect()}},[i,d]),(0,r.jsxs)(r.Fragment,{children:[o,(0,r.jsx)("div",{ref:n,className:"h-4"}),e&&(0,r.jsx)("div",{className:"flex justify-center py-4",children:(0,r.jsx)(l.default,{})})]})}])},94724,e=>{"use strict";var r=e.i(91398),t=e.i(69322);e.s(["default",0,({children:e=null,totalRecords:l=null})=>{let{formatMessage:a}=(0,t.useIntl)();return(0,r.jsxs)("div",{className:"mt-5",children:[null!==l?(0,r.jsx)("div",{className:"text-md text-slate-950 dark:text-slate-100 mb-3",children:a({id:"total_records",defaultMessage:"{total} records found"},{total:l??0})}):null,e&&(0,r.jsx)("div",{className:"flex items-center mt-10",children:(0,r.jsx)("h3",{className:"text-xs leading-6 text-slate-500 dark:text-slate-200",children:e})})]})}])},12197,e=>{"use strict";var r=e.i(91398),t=e.i(69322);e.s(["default",0,()=>{let{formatMessage:e}=(0,t.useIntl)();return(0,r.jsx)("div",{className:"my-5 flex h-full w-full items-center justify-center bg-slate-50 dark:bg-slate-950 py-5",children:(0,r.jsxs)("div",{className:"flex items-center justify-center space-x-1 text-sm text-slate-700 dark:text-slate-200",children:[(0,r.jsx)("svg",{fill:"none",className:"h-6 w-6 animate-spin",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{clipRule:"evenodd",d:"M15.165 8.53a.5.5 0 01-.404.58A7 7 0 1023 16a.5.5 0 011 0 8 8 0 11-9.416-7.874.5.5 0 01.58.404z",fill:"currentColor",fillRule:"evenodd"})}),(0,r.jsx)("div",{children:e({id:"loading",defaultMessage:"Loading ..."})})]})})}])},26178,e=>{"use strict";var r=e.i(91398),t=e.i(91788);let l=t.forwardRef(function({title:e,titleId:r,...l},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},l),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.364 18.364A9 9 0 0 0 5.636 5.636m12.728 12.728A9 9 0 0 1 5.636 5.636m12.728 12.728L5.636 5.636"}))});var a=e.i(72043),s=e.i(69322);e.s(["default",0,({message:e,className:t="",Icon:o=null})=>(0,r.jsx)("div",{className:(0,a.default)("rounded-md flex w-full flex-col items-center justify-center min-h-[176px] py-8 border-1 border-dashed border-slate-300 dark:border-slate-700 text-slate-500 dark:text-slate-600",t),children:(0,r.jsxs)("div",{className:"grid items-center justify-center",children:[(0,r.jsx)("div",{className:"flex items-center justify-center text-slate-400 dark:text-slate-600",children:o||(0,r.jsx)(l,{className:"h-6 w-6"})}),(0,r.jsx)(s.FormattedMessage,{id:"no_data_message",defaultMessage:"<p>No <span> {message} available</span> </p>",values:{p:e=>(0,r.jsx)("p",{className:"mt-2 m-auto flex items-center justify-center",children:e}),span:e=>(0,r.jsxs)("span",{className:"capitalize ml-1",children:[" ",e," "]}),message:e}})]})})],26178)},16371,e=>{"use strict";var r=e.i(91788),t=e.i(30943);e.s(["default",0,({children:e,container:l=null,className:a=""})=>{let s=(0,r.useRef)(null),[o,d]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{let e=document.createElement("div");a&&(e.className=a),s.current=e;let r=l||document.body;return r.appendChild(e),d(!0),()=>{s.current&&r.contains(s.current)&&r.removeChild(s.current)}},[l,a]),o&&s.current)?(0,t.createPortal)(e,s.current):null}])},20495,e=>{"use strict";var r=e.i(91398),t=e.i(69322),l=e.i(2765);e.s(["default",0,({inputText:e=null,onInputChange:a,defaultValue:s})=>{let{formatMessage:o}=(0,t.useIntl)(),d=(0,l.default)(200)(a);return(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)("label",{htmlFor:"search",className:"sr-only",children:e||o({id:"search",defaultMessage:"Search"})}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:(0,r.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,r.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,r.jsx)("input",{onChange:e=>d(e.target.value),id:"search",defaultValue:s,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:o({id:"search",defaultMessage:"Search"}),type:"search"})]})]})}])},51128,e=>{"use strict";var r=e.i(91398),t=e.i(69322),l=e.i(3828),a=e.i(20495),s=e.i(68835),o=e.i(65153),d=e.i(83147),n=e.i(73319);e.s(["default",0,({children:e,onSearchChange:i,defaultSearchValue:b,showTagFilter:g=!1,availableTagOptions:x=[]})=>{let{formatMessage:u}=(0,t.useIntl)(),{query:c,push:m}=(0,l.useRouter)(),p=e=>{if((0,n.isTruthy)(e))m({query:(0,d.normalizeQuery)(c,e?.join(","),"tags")});else{let{tags:e,...r}=c;m({query:(0,d.normalizeQuery)(r)})}};return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"my-3 flex flex-col gap-3",children:(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start gap-3",children:[(0,r.jsx)("div",{className:"flex-shrink-0",children:(0,r.jsx)(a.default,{onInputChange:i,defaultValue:b})}),g&&(0,r.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,r.jsx)("div",{className:"max-w-xs",children:(0,r.jsx)(s.default,{buttonText:u({id:"apply",defaultMessage:"Apply"}),placeholder:u({id:"enter_tag",defaultMessage:"Enter tag..."}),tagList:c?.tags?.split(","),onChange:p,selectOptions:x,showTagsInline:!1})}),c?.tags?.split(",").filter(Boolean).length>0&&(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:c?.tags?.split(",").filter(Boolean).map(e=>(0,r.jsx)(o.default,{text:e,color:"slate",onClick:()=>{let r=c?.tags?.split(",").filter(r=>r!==e);p(r.length>0?r:null)}},e))})]})]})}),e]})}])},8918,e=>{"use strict";var r=e.i(91398),t=e.i(91788),l=e.i(72043),a=e.i(69322),s=e.i(88566),o=e.i(25575),d=e.i(3828),n=e.i(83147);let i=({onSort:e,sortDirection:t})=>t?"ASC"===t?(0,r.jsx)(o.ChevronUpIcon,{className:"ml-2 w-5 h-5 text-slate-700",onClick:e}):(0,r.jsx)(s.ChevronDownIcon,{className:"ml-2 w-5 h-5 text-slate-700",onClick:e}):(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"ml-2 w-6 h-6",onClick:e,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})});var b=e.i(26178);let g=e=>{let r=[],l=[],a=[];return t.default.Children.forEach(e.children,e=>{e?.props?.header?r.push(e):e?.props?.footer?a.push(e):l.push(e)}),{header:r,footer:a,body:l}},x=({className:e="",...s})=>{let[o,d]=(0,t.useState)(g(s)),{formatMessage:n}=(0,a.useIntl)(),i={...o,header:t.default.Children.map(o.header,e=>t.default.cloneElement(e))};return(0,t.useEffect)(()=>{d(g(s))},[s.children]),i.header.length||i.body.length?(0,r.jsxs)("table",{className:(0,l.default)("overflow-hidden my-3 flex w-full flex-row flex-nowrap divide-y divide-slate-200 dark:divide-slate-600 shadow-sm sm:rounded-lg sm:bg-white dark:bg-slate-950",e),...s,children:[(0,r.jsx)("thead",{className:"hidden sm:table-header-group bg-slate-100 dark:bg-slate-700 text-sm text-slate-700 dark:text-slate-200",children:i.header}),i.body.length?(0,r.jsx)("tbody",{className:"space-y-4 sm:space-y-0 flex-1 sm:divide-y divide-slate-200 dark:divide-slate-700 sm:bg-white dark:sm:bg-slate-800 sm:flex-none",children:i.body}):null,i.footer.length?(0,r.jsx)("tfoot",{children:i.footer}):null]}):(0,r.jsx)(b.default,{message:n({id:"data",defaultMessage:"Data"})})};x.Row=({className:e="",children:a=[],header:s=!1,enablesort:o=!1,...d})=>{let n=t.default.Children.map(a,e=>t.default?.cloneElement(e||(0,r.jsx)("span",{}),{header:s,enablesort:o}));return(0,r.jsx)("tr",{className:(0,l.default)("grid grid-cols-1 auto-rows-fr border border-slate-100 dark:border-slate-700 sm:border-0 rounded-md sm:mb-0 sm:table-row sm:rounded-none bg-white dark:bg-slate-800 sm:bg-inherit dark:sm:bg-inherit",e),...d,children:n})},x.Cell=({className:e="",header:t=!1,enablesort:a=!1,children:s,sortKey:o=null,defaultSortDirection:b=null,...g})=>{let x=(0,d.useRouter)(),u=(0,n.getSortKeys)(x.query?.sort),c=t?"th":"td";return(0,r.jsx)(c,{className:(0,l.default)(t?"px-4 py-3 text-left text-slate-500 dark:text-slate-200":"whitespace-nowrap px-4 py-3 text-slate-500 dark:text-slate-200 border-b dark:border-slate-300 last:border-b-0 sm:border-b-0 text-left flex items-center sm:table-cell",e),...g,children:(0,r.jsxs)("div",{className:"flex items-center",children:[s,"th"===c&&a&&o&&(0,r.jsx)(i,{onSort:e=>{var r;let t;e.preventDefault(),((r=u[o])?"ASC"===r?"DESC":null:"ASC")||!u[o]?t={...u,[o]:"ASC"===u[o]?"DESC":"ASC"}:(delete u[o],t=u);let l=Object.entries(t).map(([e,r])=>[e,r].join("_")).join(","),{sort:a,...s}=x.query,d=Object.keys(s).map(e=>[e,s[e]].join("=")).join("&"),i=0===Object.keys(s).length?`${x.basePath}?sort=${l}`:`${x.basePath}?${d}&sort=${l}`;l?x.push(i):x.push({query:(0,n.normalizeQuery)(s)})},sortDirection:Object.keys(u).length?u[o]:b})]})})},e.s(["default",0,x],8918)},3095,e=>{"use strict";var r=e.i(91398),t=e.i(91788),l=e.i(69322),a=e.i(86712),s=e.i(76842),o=e.i(24557),d=e.i(16371);e.s(["default",0,({onEdit:e,onDelete:n,editLabel:i,deleteLabel:b,showEdit:g=!0,showDelete:x=!0})=>{let{formatMessage:u}=(0,l.useIntl)(),[c,m]=(0,t.useState)(!1),[p,k]=(0,t.useState)({top:0,left:0}),h=(0,t.useRef)(null),y=(0,t.useRef)(null);(0,t.useEffect)(()=>{let e=e=>{h.current&&!h.current.contains(e.target)&&m(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let f=(e,r)=>{e.stopPropagation(),e.preventDefault(),r&&r(),m(!1)};return 0===[g&&e,x&&n].filter(Boolean).length?null:(0,r.jsxs)("div",{className:"flex justify-end w-full",children:[(0,r.jsx)("button",{ref:y,type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),c||(()=>{if(!y.current)return;let e=y.current.getBoundingClientRect(),r=e.bottom+4,t=e.right-192;t<8&&(t=8),r+80>window.innerHeight-8&&(r=e.top-80-4),k({top:r,left:t})})(),m(!c)},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":u({id:"table_actions_menu",defaultMessage:"Actions menu"}),children:(0,r.jsx)(a.EllipsisHorizontalIcon,{className:"w-5 h-5 text-slate-500 dark:text-slate-400"})}),c&&(0,r.jsx)(d.default,{children:(0,r.jsx)("div",{ref:h,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:p.top,left:p.left},children:(0,r.jsxs)("div",{className:"py-1",children:[g&&e&&(0,r.jsxs)("button",{type:"button",onClick:r=>f(r,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,r.jsx)(s.PencilIcon,{className:"mr-3 h-5 w-5"}),i||u({id:"edit",defaultMessage:"Edit"})]}),x&&n&&(0,r.jsxs)("button",{type:"button",onClick:e=>f(e,n),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,r.jsx)(o.TrashIcon,{className:"mr-3 h-5 w-5"}),b||u({id:"delete",defaultMessage:"Delete"})]})]})})})]})}])},60193,e=>{"use strict";let r={red:{bg:{50:"bg-rose-50 dark:bg-rose-900/20",100:"bg-rose-100 dark:bg-rose-900/30",200:"bg-rose-200",300:"bg-rose-300 dark:bg-rose-900/30",400:"bg-rose-400",500:"bg-rose-500",600:"bg-rose-600",700:"bg-rose-700",800:"bg-rose-800",900:"bg-rose-900"},text:{50:"text-rose-50",100:"text-rose-100",200:"text-rose-200",300:"text-rose-300",400:"text-rose-400 dark:text-rose-300",500:"text-rose-500",600:"text-rose-600 dark:text-rose-400",700:"text-rose-700 dark:text-rose-300",800:"text-rose-800 dark:text-rose-200",900:"text-rose-900"},border:{50:"border-rose-50",100:"border-rose-100",200:"border-rose-200 dark:border-rose-800",300:"border-rose-300 dark:border-rose-700",400:"border-rose-400 dark:border-rose-600",500:"border-rose-500",600:"border-rose-600",700:"border-rose-700",800:"border-rose-800",900:"border-rose-900"}},pink:{bg:{50:"bg-pink-50",100:"bg-pink-100",200:"bg-pink-200",300:"bg-pink-300",400:"bg-pink-400",500:"bg-pink-500",600:"bg-pink-600",700:"bg-pink-700",800:"bg-pink-800",900:"bg-pink-900"},text:{50:"text-pink-50",100:"text-pink-100",200:"text-pink-200",300:"text-pink-300",400:"text-pink-400",500:"text-pink-500",600:"text-pink-600",700:"text-pink-700",800:"text-pink-800",900:"text-pink-900"},border:{50:"border-pink-50",100:"border-pink-100",200:"border-pink-200",300:"border-pink-300",400:"border-pink-400",500:"border-pink-500",600:"border-pink-600",700:"border-pink-700",800:"border-pink-800",900:"border-pink-900"}},purple:{bg:{50:"bg-purple-50 dark:bg-purple-900/20",100:"bg-purple-100 dark:bg-purple-900/30",200:"bg-purple-200",300:"bg-purple-300",400:"bg-purple-400",500:"bg-purple-500",600:"bg-purple-600",700:"bg-purple-700",800:"bg-purple-800",900:"bg-purple-900"},text:{50:"text-purple-50",100:"text-purple-100",200:"text-purple-200",300:"text-purple-300",400:"text-purple-400 dark:text-purple-300",500:"text-purple-500",600:"text-purple-600 dark:text-purple-400",700:"text-purple-700",800:"text-purple-800 dark:text-purple-300",900:"text-purple-900"},border:{50:"border-purple-50",100:"border-purple-100",200:"border-purple-200 dark:border-purple-600",300:"border-purple-300 dark:border-purple-500",400:"border-purple-400 dark:border-purple-500",500:"border-purple-500",600:"border-purple-600",700:"border-purple-700",800:"border-purple-800",900:"border-purple-900"}},"deep-purple":{bg:{50:"bg-deep-purple-50",100:"bg-deep-purple-100",200:"bg-deep-purple-200",300:"bg-deep-purple-300",400:"bg-deep-purple-400",500:"bg-deep-purple-500",600:"bg-deep-purple-600",700:"bg-deep-purple-700",800:"bg-deep-purple-800",900:"bg-deep-purple-900"},text:{50:"text-deep-purple-50",100:"text-deep-purple-100",200:"text-deep-purple-200",300:"text-deep-purple-300",400:"text-deep-purple-400",500:"text-deep-purple-500",600:"text-deep-purple-600",700:"text-deep-purple-700",800:"text-deep-purple-800",900:"text-deep-purple-900"},border:{50:"border-deep-purple-50",100:"border-deep-purple-100",200:"border-deep-purple-200",300:"border-deep-purple-300",400:"border-deep-purple-400",500:"border-deep-purple-500",600:"border-deep-purple-600",700:"border-deep-purple-700",800:"border-deep-purple-800",900:"border-deep-purple-900"}},blue:{bg:{50:"bg-sky-50 dark:bg-sky-900/20",100:"bg-sky-100 dark:bg-sky-900/30",200:"bg-sky-200",300:"bg-sky-300",400:"bg-sky-400",500:"bg-sky-500",600:"bg-sky-600",700:"bg-sky-700",800:"bg-sky-800",900:"bg-sky-900"},text:{50:"text-sky-50",100:"text-sky-100",200:"text-sky-200",300:"text-sky-300",400:"text-sky-400 dark:text-sky-300",500:"text-sky-500",600:"text-sky-600 dark:text-sky-400",700:"text-sky-700 dark:text-sky-300",800:"text-sky-800 dark:text-sky-200",900:"text-sky-900"},border:{50:"border-sky-50",100:"border-sky-100",200:"border-sky-200 dark:border-sky-800",300:"border-sky-300 dark:border-sky-700",400:"border-sky-400 dark:border-sky-600",500:"border-sky-500",600:"border-sky-600",700:"border-sky-700",800:"border-sky-800",900:"border-sky-900"}},"light-blue":{bg:{50:"bg-sky-50",100:"bg-sky-100",200:"bg-sky-200",300:"bg-sky-300",400:"bg-sky-400",500:"bg-sky-500",600:"bg-sky-600",700:"bg-sky-700",800:"bg-sky-800",900:"bg-sky-900"},text:{50:"text-sky-50",100:"text-sky-100",200:"text-sky-200",300:"text-sky-300",400:"text-sky-400",500:"text-sky-500",600:"text-sky-600",700:"text-sky-700",800:"text-sky-800",900:"text-sky-900"},border:{50:"border-sky-50",100:"border-sky-100",200:"border-sky-200",300:"border-sky-300",400:"border-sky-400",500:"border-sky-500",600:"border-sky-600",700:"border-sky-700",800:"border-sky-800",900:"border-sky-900"}},indigo:{bg:{50:"bg-indigo-50",100:"bg-indigo-100",200:"bg-indigo-200",300:"bg-indigo-300",400:"bg-indigo-400",500:"bg-indigo-500",600:"bg-indigo-600",700:"bg-indigo-700",800:"bg-indigo-800",900:"bg-indigo-900"},text:{50:"text-indigo-50",100:"text-indigo-100",200:"text-indigo-200",300:"text-indigo-300",400:"text-indigo-400",500:"text-indigo-500",600:"text-indigo-600",700:"text-indigo-700",800:"text-indigo-800",900:"text-indigo-900"},border:{50:"border-indigo-50",100:"border-indigo-100",200:"border-indigo-200",300:"border-indigo-300",400:"border-indigo-400",500:"border-indigo-500",600:"border-indigo-600",700:"border-indigo-700",800:"border-indigo-800",900:"border-indigo-900"}},cyan:{bg:{50:"bg-cyan-50 dark:bg-cyan-900/20",100:"bg-cyan-100 dark:bg-cyan-900/30",200:"bg-cyan-200",300:"bg-cyan-300",400:"bg-cyan-400",500:"bg-cyan-500",600:"bg-cyan-600",700:"bg-cyan-700",800:"bg-cyan-800",900:"bg-cyan-900"},text:{50:"text-cyan-50",100:"text-cyan-100",200:"text-cyan-200",300:"text-cyan-300",400:"text-cyan-400 dark:text-cyan-300",500:"text-cyan-500",600:"text-cyan-600 dark:text-cyan-400",700:"text-cyan-700 dark:text-cyan-300",800:"text-cyan-800 dark:text-cyan-200",900:"text-cyan-900"},border:{50:"border-cyan-50",100:"border-cyan-100",200:"border-cyan-200 dark:border-cyan-800",300:"border-cyan-300 dark:border-cyan-700",400:"border-cyan-400 dark:border-cyan-600",500:"border-cyan-500",600:"border-cyan-600",700:"border-cyan-700",800:"border-cyan-800",900:"border-cyan-900"}},teal:{bg:{50:"bg-teal-50 dark:bg-teal-900/20",100:"bg-teal-100 dark:bg-teal-900/30",200:"bg-teal-200",300:"bg-teal-300",400:"bg-teal-400",500:"bg-teal-500",600:"bg-teal-600",700:"bg-teal-700",800:"bg-teal-800",900:"bg-teal-900"},text:{50:"text-teal-50",100:"text-teal-100",200:"text-teal-200",300:"text-teal-300",400:"text-teal-400 dark:text-teal-300",500:"text-teal-500",600:"text-teal-600 dark:text-teal-400",700:"text-teal-700 dark:text-teal-300",800:"text-teal-800 dark:text-teal-200",900:"text-teal-900"},border:{50:"border-teal-50",100:"border-teal-100",200:"border-teal-200 dark:border-teal-800",300:"border-teal-300 dark:border-teal-700",400:"border-teal-400 dark:border-teal-600",500:"border-teal-500",600:"border-teal-600",700:"border-teal-700",800:"border-teal-800",900:"border-teal-900"}},green:{bg:{50:"bg-emerald-50 dark:bg-emerald-900/20",100:"bg-emerald-50 dark:bg-emerald-900/30",200:"bg-emerald-200",300:"bg-emerald-300",400:"bg-emerald-400",500:"bg-emerald-500",600:"bg-emerald-600",700:"bg-emerald-700",800:"bg-emerald-800",900:"bg-emerald-900"},text:{50:"text-emerald-50",100:"text-emerald-100",200:"text-emerald-200",300:"text-emerald-300",400:"text-emerald-400",500:"text-emerald-500",600:"text-emerald-600 dark:text-emerald-400",700:"text-emerald-700 dark:text-emerald-300",800:"text-emerald-700 dark:text-emerald-300",900:"text-emerald-900"},border:{50:"border-emerald-50",100:"border-emerald-100",200:"border-emerald-200 dark:border-emerald-800",300:"border-emerald-300 dark:border-emerald-700",400:"border-emerald-200 dark:border-emerald-800",500:"border-emerald-500",600:"border-emerald-600",700:"border-emerald-700",800:"border-emerald-800",900:"border-emerald-900"}},"light-green":{bg:{50:"bg-light-green-50",100:"bg-light-green-100",200:"bg-light-green-200",300:"bg-light-green-300",400:"bg-light-green-400",500:"bg-light-green-500",600:"bg-light-green-600",700:"bg-light-green-700",800:"bg-light-green-800",900:"bg-light-green-900"},text:{50:"text-light-green-50",100:"text-light-green-100",200:"text-light-green-200",300:"text-light-green-300",400:"text-light-green-400",500:"text-light-green-500",600:"text-light-green-600",700:"text-light-green-700",800:"text-light-green-800",900:"text-light-green-900"},border:{50:"border-light-green-50",100:"border-light-green-100",200:"border-light-green-200",300:"border-light-green-300",400:"border-light-green-400",500:"border-light-green-500",600:"border-light-green-600",700:"border-light-green-700",800:"border-light-green-800",900:"border-light-green-900"}},lime:{bg:{50:"bg-lime-50 dark:bg-lime-900/20",100:"bg-lime-100 dark:bg-lime-900/30",200:"bg-lime-200",300:"bg-lime-300",400:"bg-lime-400",500:"bg-lime-500",600:"bg-lime-600",700:"bg-lime-700",800:"bg-lime-800",900:"bg-lime-900"},text:{50:"text-lime-50",100:"text-lime-100",200:"text-lime-200",300:"text-lime-300",400:"text-lime-400 dark:text-lime-300",500:"text-lime-500",600:"text-lime-600 dark:text-lime-400",700:"text-lime-700 dark:text-lime-300",800:"text-lime-800 dark:text-lime-200",900:"text-lime-900"},border:{50:"border-lime-50",100:"border-lime-100",200:"border-lime-200 dark:border-lime-800",300:"border-lime-300 dark:border-lime-700",400:"border-lime-400 dark:border-lime-600",500:"border-lime-500",600:"border-lime-600",700:"border-lime-700",800:"border-lime-800",900:"border-lime-900"}},yellow:{bg:{50:"bg-yellow-50 dark:bg-yellow-900/20",100:"bg-amber-100 dark:bg-yellow-900/30",200:"bg-yellow-200",300:"bg-yellow-300",400:"bg-amber-400",500:"bg-amber-500",600:"bg-yellow-600",700:"bg-yellow-700",800:"bg-yellow-800",900:"bg-yellow-900"},text:{50:"text-yellow-50",100:"text-yellow-100",200:"text-yellow-200",300:"text-yellow-300",400:"text-amber-400 dark:text-yellow-300",500:"text-amber-500",600:"text-amber-600 dark:text-yellow-400",700:"text-yellow-700",800:"text-yellow-800 dark:text-yellow-300",900:"text-yellow-900"},border:{50:"border-yellow-50",100:"border-yellow-100",200:"border-yellow-200 dark:border-yellow-800",300:"border-yellow-300 dark:border-yellow-700",400:"border-amber-400 dark:border-yellow-800",500:"border-yellow-500",600:"border-yellow-600",700:"border-yellow-700",800:"border-yellow-800",900:"border-yellow-900"}},amber:{bg:{50:"bg-amber-50 dark:bg-amber-900/20",100:"bg-amber-100 dark:bg-amber-900/30",200:"bg-amber-200",300:"bg-amber-300",400:"bg-amber-400",500:"bg-amber-500",600:"bg-amber-600",700:"bg-amber-700",800:"bg-amber-800",900:"bg-amber-900"},text:{50:"text-amber-50",100:"text-amber-100",200:"text-amber-200",300:"text-amber-300",400:"text-amber-400 dark:text-amber-300",500:"text-amber-500",600:"text-amber-600 dark:text-amber-400",700:"text-amber-700 dark:text-amber-300",800:"text-amber-800 dark:text-amber-200",900:"text-amber-900"},border:{50:"border-amber-50",100:"border-amber-100",200:"border-amber-200 dark:border-amber-800",300:"border-amber-300 dark:border-amber-700",400:"border-amber-400 dark:border-amber-600",500:"border-amber-500",600:"border-amber-600",700:"border-amber-700",800:"border-amber-800",900:"border-amber-900"}},orange:{bg:{50:"bg-orange-50 dark:bg-orange-900/20",100:"bg-orange-100 dark:bg-orange-900/30",200:"bg-orange-200",300:"bg-orange-300",400:"bg-orange-400",500:"bg-orange-500",600:"bg-orange-600",700:"bg-orange-700",800:"bg-orange-800",900:"bg-orange-900"},text:{50:"text-orange-50",100:"text-orange-100",200:"text-orange-200",300:"text-orange-300",400:"text-orange-400 dark:text-orange-300",500:"text-orange-500",600:"text-orange-600 dark:text-orange-400",700:"text-orange-700 dark:text-orange-300",800:"text-orange-800 dark:text-orange-200",900:"text-orange-900"},border:{50:"border-orange-50",100:"border-orange-100",200:"border-orange-200 dark:border-orange-800",300:"border-orange-300 dark:border-orange-700",400:"border-orange-400 dark:border-orange-600",500:"border-orange-500",600:"border-orange-600",700:"border-orange-700",800:"border-orange-800",900:"border-orange-900"}},"deep-orange":{bg:{50:"bg-deep-orange-50",100:"bg-deep-orange-100",200:"bg-deep-orange-200",300:"bg-deep-orange-300",400:"bg-deep-orange-400",500:"bg-deep-orange-500",600:"bg-deep-orange-600",700:"bg-deep-orange-700",800:"bg-deep-orange-800",900:"bg-deep-orange-900"},text:{50:"text-deep-orange-50",100:"text-deep-orange-100",200:"text-deep-orange-200",300:"text-deep-orange-300",400:"text-deep-orange-400",500:"text-deep-orange-500",600:"text-deep-orange-600",700:"text-deep-orange-700",800:"text-deep-orange-800",900:"text-deep-orange-900"},border:{50:"border-deep-orange-50",100:"border-deep-orange-100",200:"border-deep-orange-200",300:"border-deep-orange-300",400:"border-deep-orange-400",500:"border-deep-orange-500",600:"border-deep-orange-600",700:"border-deep-orange-700",800:"border-deep-orange-800",900:"border-deep-orange-900"}},stone:{bg:{50:"bg-stone-50",100:"bg-stone-100",200:"bg-stone-200",300:"bg-stone-300",400:"bg-stone-400",500:"bg-stone-500",600:"bg-stone-600",700:"bg-stone-700",800:"bg-stone-800",900:"bg-stone-900"},text:{50:"text-stone-50",100:"text-stone-100",200:"text-stone-200",300:"text-stone-300",400:"text-stone-400",500:"text-stone-500",600:"text-stone-600",700:"text-stone-700",800:"text-stone-800",900:"text-stone-900"},border:{50:"border-stone-50",100:"border-stone-100",200:"border-stone-200",300:"border-stone-300",400:"border-stone-400",500:"border-stone-500",600:"border-stone-600",700:"border-stone-700",800:"border-stone-800",900:"border-stone-900"}},slate:{bg:{50:"bg-slate-50",100:"bg-slate-50 dark:bg-slate-800/50",200:"bg-slate-200",300:"bg-slate-300",400:"bg-slate-400",500:"bg-slate-500",600:"bg-slate-600",700:"bg-slate-700",800:"bg-slate-800",900:"bg-slate-900"},text:{50:"text-slate-50",100:"text-slate-100",200:"text-slate-200",300:"text-slate-300",400:"text-slate-400",500:"text-slate-500",600:"text-slate-600 dark:text-slate-400",700:"text-slate-700",800:"text-slate-600 dark:text-slate-400",900:"text-slate-900"},border:{50:"border-slate-50",100:"border-slate-100",200:"border-slate-300 dark:border-slate-700",300:"border-slate-300",400:"border-slate-300 dark:border-slate-700",500:"border-slate-500",600:"border-slate-600",700:"border-slate-700",800:"border-slate-800",900:"border-slate-900"}},rose:{bg:{50:"bg-rose-50 dark:bg-rose-900/20",100:"bg-rose-100 dark:bg-rose-900/30",200:"bg-rose-200",300:"bg-rose-300 dark:bg-rose-900/30",400:"bg-rose-400",500:"bg-rose-500",600:"bg-rose-600",700:"bg-rose-700",800:"bg-rose-800",900:"bg-rose-900"},text:{50:"text-rose-50",100:"text-rose-100",200:"text-rose-200",300:"text-rose-300",400:"text-rose-400 dark:text-rose-300",500:"text-rose-500",600:"text-rose-600 dark:text-rose-400",700:"text-rose-700 dark:text-rose-300",800:"text-rose-800 dark:text-rose-200",900:"text-rose-900"},border:{50:"border-rose-50",100:"border-rose-100",200:"border-rose-200 dark:border-rose-800",300:"border-rose-300 dark:border-rose-700",400:"border-rose-400 dark:border-rose-600",500:"border-rose-500",600:"border-rose-600",700:"border-rose-700",800:"border-rose-800",900:"border-rose-900"}},sky:{bg:{50:"bg-sky-50 dark:bg-sky-900/20",100:"bg-sky-100 dark:bg-sky-900/30",200:"bg-sky-200",300:"bg-sky-300",400:"bg-sky-400",500:"bg-sky-500",600:"bg-sky-600",700:"bg-sky-700",800:"bg-sky-800",900:"bg-sky-900"},text:{50:"text-sky-50",100:"text-sky-100",200:"text-sky-200",300:"text-sky-300",400:"text-sky-400 dark:text-sky-300",500:"text-sky-500",600:"text-sky-600 dark:text-sky-400",700:"text-sky-700 dark:text-sky-300",800:"text-sky-800 dark:text-sky-200",900:"text-sky-900"},border:{50:"border-sky-50",100:"border-sky-100",200:"border-sky-200 dark:border-sky-800",300:"border-sky-300 dark:border-sky-700",400:"border-sky-400 dark:border-sky-600",500:"border-sky-500",600:"border-sky-600",700:"border-sky-700",800:"border-sky-800",900:"border-sky-900"}},emerald:{bg:{50:"bg-emerald-50 dark:bg-emerald-900/20",100:"bg-emerald-100 dark:bg-emerald-900/30",200:"bg-emerald-200",300:"bg-emerald-300",400:"bg-emerald-400",500:"bg-emerald-500",600:"bg-emerald-600",700:"bg-emerald-700",800:"bg-emerald-800",900:"bg-emerald-900"},text:{50:"text-emerald-50",100:"text-emerald-100",200:"text-emerald-200",300:"text-emerald-300",400:"text-emerald-400",500:"text-emerald-500",600:"text-emerald-600 dark:text-emerald-400",700:"text-emerald-700 dark:text-emerald-300",800:"text-emerald-800 dark:text-emerald-200",900:"text-emerald-900"},border:{50:"border-emerald-50",100:"border-emerald-100",200:"border-emerald-200 dark:border-emerald-800",300:"border-emerald-300 dark:border-emerald-700",400:"border-emerald-400 dark:border-emerald-600",500:"border-emerald-500",600:"border-emerald-600",700:"border-emerald-700",800:"border-emerald-800",900:"border-emerald-900"}},"blue-slate":{bg:{50:"bg-slate-50",100:"bg-slate-100",200:"bg-slate-200",300:"bg-slate-300",400:"bg-slate-400",500:"bg-slate-500",600:"bg-slate-600",700:"bg-slate-700",800:"bg-slate-800",900:"bg-slate-900"},text:{50:"text-slate-50",100:"text-slate-100",200:"text-slate-200",300:"text-slate-300",400:"text-slate-400",500:"text-slate-500",600:"text-slate-600",700:"text-slate-700",800:"text-slate-800",900:"text-slate-900"}}},t={NEW:"shadow-[inset_0_0_0_5px_rgb(168_85_247)]",ALLOCATED:"shadow-[inset_0_0_0_5px_rgb(14_165_233)]",SUCCESS:"shadow-[inset_0_0_0_5px_rgb(16_185_129)]",FAILED:"shadow-[inset_0_0_0_5px_rgb(244_63_94)]",DELETED:"shadow-[inset_0_0_0_5px_rgb(251_146_60)]"};e.s(["DELIVERY_STATUSES",0,{DELIVERED:"green",RETURNED:"red",OPEN:"yellow"},"DefaultLimit",0,50,"ORDER_STATUSES",0,{OPEN:"purple",PENDING:"sky",CONFIRMED:"lime",FULFILLED:"emerald",REJECTED:"rose"},"PAYMENT_STATUSES",0,{PAID:"green",REFUNDED:"red",OPEN:"yellow"},"PROVIDER_TYPE_CLASSES",0,{PHYSICAL:"emerald",CARD:"sky",INVOICE:"lime",GENERIC:"purple",PICKUP:"red",SHIPPING:"sky"},"QUOTATION_STATUS",0,{REQUESTED:"orange",PROCESSING:"yellow",PROPOSED:"cyan",REJECTED:"red",FULFILLED:"emerald"},"TOKEN_STATUSES",0,{CENTRALIZED:"sky",EXPORTING:"amber",DECENTRALIZED:"emerald"},"WORK_STATUSES",0,{NEW:"purple",ALLOCATED:"sky",SUCCESS:"emerald",FAILED:"rose",DELETED:"orange"},"bgColor",0,(e,t)=>`${r?.[e].bg[t]}`,"borderColor",0,(e,t)=>`${r[e]?.border[t]}`,"getShadowStyle",0,e=>`${t[e]}`,"textColor",0,(e,t)=>`${r[e].text[t]}`])},79684,e=>{"use strict";var r=e.i(91788);e.s(["default",0,(e,t)=>{let[l,a]=(0,r.useState)(()=>{try{if(window.localStorage){let r=window.localStorage.getItem(e);return r?JSON.parse(r):t}return t}catch(e){return t}});return[l,r=>{try{if(window.localStorage){let t=r instanceof Function?r(l):r;a(t),window.localStorage.setItem(e,JSON.stringify(t))}else console.error("localStorage is not available")}catch(e){console.error(e)}}]}])},83283,78001,e=>{"use strict";var r=e.i(91788),t=e.i(91398),l=e.i(79684);let a=(0,r.createContext)(void 0);e.s(["ThemeContext",0,a,"default",0,({children:e})=>{let[s,o]=(0,l.default)("theme","light");(0,r.useEffect)(()=>{"dark"!==localStorage.theme&&("theme"in localStorage||!window.matchMedia("(prefers-color-scheme: dark)").matches)?document.getElementsByTagName("html")[0].classList.remove("dark"):document.getElementsByTagName("html")[0].classList.add("dark")},[]),(0,r.useEffect)(()=>{"dark"===s?(document.getElementsByTagName("html")[0].classList.add("dark"),localStorage.theme="dark"):(document.getElementsByTagName("html")[0].classList.remove("dark"),localStorage.theme="light")},[s]);let d=(0,r.useMemo)(()=>[s,o],[s]);return(0,t.jsx)(a.Provider,{value:d,children:e})}],78001),e.s(["default",0,()=>{let e=(0,r.useContext)(a);if(void 0===e)throw Error("Theme Context was used outside of its Provider");let[t,l]=e;return{theme:t,setTheme:l}}],83283)},2765,e=>{"use strict";e.s(["default",0,(e=500)=>r=>{let t;return(...l)=>{let a;clearTimeout(t),t=setTimeout(()=>r.apply(a,l),e)}}])},83147,e=>{"use strict";let r=e=>e&&e?.split(",").reduce((e,r)=>{let[t=null,l=null]=(r||"")?.split("_")||[];return{...e,[t]:l}},null)||{};e.s(["classNames",0,(...e)=>e.filter(Boolean).join(" "),"convertSortFieldsToQueryFormat",0,e=>Object.entries(r(e))?.map(([e,r])=>({key:e,value:r})),"getInterfaceLabel",0,e=>e?.label&&e?.version?`${e.label} ${e.version}`:"","getSortKeys",0,r,"normalizeCountryISOCode",0,(e,r,t=!0)=>{if(!r)return"";try{return`${new Intl.DisplayNames([e],{type:"region"}).of(r)} ${t?`(${r})`:""}`}catch{return r}},"normalizeCurrencyISOCode",0,(e,r,t=!0)=>{if(!r)return"";try{return`${new Intl.DisplayNames([e],{type:"currency"}).of(r)} ${t?`(${r})`:""}`}catch{return r}},"normalizeLanguageISOCode",0,(e,r,t=!0)=>{if(!r)return"";try{return`${new Intl.DisplayNames([e],{type:"language"}).of(r)} ${t?`(${r})`:""}`}catch{return r}},"normalizeQuery",0,(e,r,t)=>{let l;return l=t?{...e,[t]:r}:e,Object.keys(l)?.map(e=>[e,l[e]].join("="))?.join("&")},"useFormatPrice",0,()=>({formatPrice:e=>{if(!e?.currencyCode)return"n/a";if(e?.amount===void 0||e?.amount===null)return"";let{amount:r,currencyCode:t}=e||{};return new Intl.NumberFormat(navigator.language,{style:"currency",currency:t}).format(r/100)}})])},15971,e=>{"use strict";var r=e.i(91398),t=e.i(69322);e.s(["default",0,({onOkClick:e,onCancelClick:l,okText:a=null,cancelText:s=null,headerText:o=null,message:d=null,icon:n=null,close:i=null})=>{let{formatMessage:b}=(0,t.useIntl)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"sm:flex sm:items-start",children:[n||(0,r.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,r.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,r.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,r.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,r.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",id:"modal-title",children:o||b({id:"warning",defaultMessage:"Warning!"})}),(0,r.jsx)("div",{className:"mt-2",children:(0,r.jsx)("p",{className:"text-sm text-slate-500 dark:text-slate-200",children:d||b({id:"are_you_sure",defaultMessage:"Are you sure?"})})})]})]}),(0,r.jsxs)("div",{className:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse",children:[(0,r.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||b({id:"continue",defaultMessage:"Continue"})}),(0,r.jsx)("button",{id:"danger_cancel",onClick:l||i,type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-slate-300 bg-white px-4 py-2 text-base font-medium text-slate-700 shadow-xs hover:bg-slate-50 focus:outline-hidden focus:ring-2 focus:ring-slate-800 focus:ring-offset-2 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",children:s||b({id:"cancel",defaultMessage:"Cancel"})})]})]})}])},6607,e=>{"use strict";var r=e.i(91788),t=e.i(6444);e.s(["default",0,()=>(0,r.useContext)(t.default)])},6444,e=>{"use strict";let r=e.i(91788).default.createContext({setModal:()=>{throw Error("No ModalContext/ModalWrapper ancestor found.")}});e.s(["default",0,r])},88566,25575,e=>{"use strict";var r=e.i(91788);let t=r.forwardRef(function({title:e,titleId:t,...l},a){return r.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":t},l),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))});e.s(["ChevronDownIcon",0,t],88566);let l=r.forwardRef(function({title:e,titleId:t,...l},a){return r.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":t},l),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z",clipRule:"evenodd"}))});e.s(["ChevronUpIcon",0,l],25575)},76842,e=>{"use strict";var r=e.i(91788);let t=r.forwardRef(function({title:e,titleId:t,...l},a){return r.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":t},l),e?r.createElement("title",{id:t},e):null,r.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(["PencilIcon",0,t],76842)},24557,e=>{"use strict";var r=e.i(91788);let t=r.forwardRef(function({title:e,titleId:t,...l},a){return r.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":t},l),e?r.createElement("title",{id:t},e):null,r.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(["TrashIcon",0,t],24557)},86712,e=>{"use strict";var r=e.i(91788);let t=r.forwardRef(function({title:e,titleId:t,...l},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},l),e?r.createElement("title",{id:t},e):null,r.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(["EllipsisHorizontalIcon",0,t],86712)},24608,e=>{"use strict";var r=e.i(91788);let t=r.forwardRef(function({title:e,titleId:t,...l},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},l),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))});e.s(["XMarkIcon",0,t],24608)}]);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,36792,(e,t,s)=>{let r="/users/UserDetailPage";(window.__NEXT_P=window.__NEXT_P||[]).push([r,()=>e.r(2385)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([r])})},60513,75284,e=>{"use strict";var t=e.i(91788),s=e.i(28401),r=e.i(69322),a=e.i(30086),l=e.i(66773),i=e.i(98926),d=e.i(63104),u=e.i(3828);e.s(["useCSVExport",0,()=>{let[e,o]=(0,t.useState)(!1),n=(0,i.useApolloClient)(),c=(0,u.useRouter)(),{addWork:k}=(0,a.default)(),{formatMessage:f}=(0,r.useIntl)(),p=(0,t.useCallback)(async e=>{let{data:t}=await n.query({query:(0,d.GetWorkQuery)(),variables:{workId:e},fetchPolicy:"network-only"});return t?.work??null},[n]);return{isExporting:e,exportCSV:(0,t.useCallback)(async({type:e,pollInterval:t=2e3,...r})=>{o(!0);try{let s=await k({type:l.IWorkType.BulkExport,input:{type:e,...r}}),a=s?.data?.addWork?._id;if(!a)throw Error("Failed to create export work");await new Promise((e,s)=>{let r=setInterval(async()=>{try{let t=await p(a);if(!t)throw Error("Work not found");(t.status===l.IWorkStatus.Success||t.status===l.IWorkStatus.Failed)&&(clearInterval(r),t.status===l.IWorkStatus.Success&&t.success?(c.push(`/exports?workId=${t._id}`),e(t)):s(t.error||Error("Export failed")))}catch(e){clearInterval(r),s(e)}},t)})}catch(e){return console.error("Export failed:",e),s.toast.error(f({id:"export_failed",defaultMessage:"Export failed. Please try again."})),null}finally{o(!1)}},[k,p,c,f])}}],60513);var o=e.i(91398),n=e.i(69211),c=e.i(64127),k=e.i(98949),f=e.i(99160);e.s(["default",0,function({options:e,onSubmit:s,loading:a=!1,successMessage:l=""}){let{formatMessage:i}=(0,r.useIntl)(),d=(0,t.useMemo)(()=>e.reduce((e,t)=>(e[t.key]=t.defaultChecked??!0,e),{}),[e]),u=async e=>(await s(e),{success:!0}),p=(0,k.default)({successMessage:l||i({id:"export_completed",defaultMessage:"Data exported successfully"}),submit:u,enableReinitialize:!0,initialValues:d});return(0,o.jsx)(n.default,{form:p,children:p.formik.isSubmitting?(0,o.jsxs)("div",{className:"flex items-center gap-3 p-4 mb-4 rounded-lg animate-pulse",children:[(0,o.jsx)("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),(0,o.jsx)("span",{className:"text-sm font-medium text-blue-700 dark:text-blue-300",children:i({id:"exporting_message",defaultMessage:"Generating your export files. This may take a moment..."})})]}):(0,o.jsxs)("fieldset",{disabled:a,style:{border:"none",padding:0},children:[(0,o.jsxs)("h3",{children:[" ",i({id:"export_options",defaultMessage:"Export options"})]}),e.map(e=>(0,o.jsx)(c.default,{name:e.key,label:e.label,hideLabel:!0,className:"mr-2 h-4 w-4 justify-between rounded-sm border-slate-300 dark:border-slate-600 bg-white text-slate-950 focus:ring-slate-800 lg:items-center",type:"checkbox"},e.key)),(0,o.jsx)(f.default,{label:i({id:"submit",defaultMessage:"Submit"}),disabled:a})]})})}],75284)},64127,e=>{"use strict";var t=e.i(91398),s=e.i(72043),r=e.i(60741);e.s(["default",0,e=>{let{disabled:a,labelClassName:l,containerClassName:i,inputClassName:d,...u}=e,o=(0,r.default)({...e,type:"checkbox"});return(0,t.jsxs)("div",{className:(0,s.default)("",{"text-rose-600":!!o.error,checkbox:!0,disabled:o.disabled,required:o.required},i),children:[(0,t.jsx)("input",{checked:!!o.value,disabled:a,id:o.name,name:o.name,onChange:o.onChange,onBlur:o.onBlur,type:"checkbox",className:(0,s.default)("h-4 w-4 rounded-xs border-slate-300 dark:border-slate-600 bg-white dark:!bg-slate-800 text-indigo-600 dark:text-slate-200 focus:ring-slate-800",d,e.className),...u}),(0,t.jsx)("label",{htmlFor:o.name,className:(0,s.default)("text-sm text-slate-900 dark:text-slate-200",l,{"text-danger":!!o.error}),children:o.label})]})}])},94672,e=>{"use strict";var t=e.i(59080);let s=t.gql`
|
|
2
|
+
fragment WorkFragment on Work {
|
|
3
|
+
_id
|
|
4
|
+
type
|
|
5
|
+
scheduled
|
|
6
|
+
status
|
|
7
|
+
started
|
|
8
|
+
success
|
|
9
|
+
finished
|
|
10
|
+
created
|
|
11
|
+
deleted
|
|
12
|
+
retries
|
|
13
|
+
original {
|
|
14
|
+
_id
|
|
15
|
+
retries
|
|
16
|
+
}
|
|
17
|
+
input
|
|
18
|
+
result
|
|
19
|
+
}
|
|
20
|
+
`;e.s(["default",0,s])},30086,e=>{"use strict";var t=e.i(59080),s=e.i(76204);let r=t.gql`
|
|
21
|
+
mutation AddWork(
|
|
22
|
+
$type: WorkType!
|
|
23
|
+
$priority: Int! = 0
|
|
24
|
+
$input: JSON
|
|
25
|
+
$originalWorkId: ID
|
|
26
|
+
$scheduled: Timestamp
|
|
27
|
+
$retries: Int! = 20
|
|
28
|
+
) {
|
|
29
|
+
addWork(
|
|
30
|
+
type: $type
|
|
31
|
+
priority: $priority
|
|
32
|
+
input: $input
|
|
33
|
+
originalWorkId: $originalWorkId
|
|
34
|
+
scheduled: $scheduled
|
|
35
|
+
retries: $retries
|
|
36
|
+
) {
|
|
37
|
+
_id
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`;e.s(["default",0,()=>{let[e]=(0,s.useMutation)(r);return{addWork:async({type:t,priority:s,input:r,originalWorkId:a,scheduled:l=null,retries:i})=>e({variables:{type:t,priority:s,input:r,originalWorkId:a,scheduled:l,retries:i},refetchQueries:["WorkQueue"]})}}])},63104,e=>{"use strict";var t=e.i(59080),s=e.i(32171),r=e.i(70693),a=e.i(94672);let l=(e="")=>t.gql`
|
|
41
|
+
query Work($workId: ID!) {
|
|
42
|
+
work(workId: $workId) {
|
|
43
|
+
...WorkFragment
|
|
44
|
+
${e}
|
|
45
|
+
error
|
|
46
|
+
priority
|
|
47
|
+
worker
|
|
48
|
+
timeout
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
${a.default}
|
|
52
|
+
`;e.s(["GetWorkQuery",0,l,"default",0,({workId:e=null,...t})=>{let{customProperties:a}=(0,r.default)(),{data:i,loading:d,error:u,previousData:o}=(0,s.useQuery)(l(a?.Work),{skip:!e,variables:{workId:e},...t});return{work:i?.work||o?.work,loading:d,error:u}}])},2385,e=>{"use strict";var t=e.i(91398),s=e.i(3828),r=e.i(66773),a=e.i(69322),l=e.i(59080),i=e.i(32171),d=e.i(70693),u=e.i(73298);let o=({userId:e=null}={})=>{let{customProperties:t,hydrateFragment:s}=(0,d.default)(),{data:r,loading:a,error:o}=(0,i.useQuery)(((e="")=>l.gql`
|
|
53
|
+
query User($userId: ID) {
|
|
54
|
+
user(userId: $userId) {
|
|
55
|
+
${e}
|
|
56
|
+
...UserFragment
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
${u.default}
|
|
60
|
+
`)(t?.User),{skip:!e,variables:{userId:e}}),n=r?.user,c=s(t?.User,n);return{user:n,loading:a,error:o,extendedData:c}};var n=e.i(61494),c=e.i(17644),k=e.i(62274),f=e.i(23745),p=e.i(91788),x=e.i(6607),m=e.i(15971),h=e.i(28401),g=e.i(58971),b=e.i(93380),y=e.i(81013),w=e.i(60513),_=e.i(75284);let I=({userId:e})=>{let{setModal:s}=(0,x.default)(),{user:r,loading:l}=o({userId:e}),{exportUser:i,isExporting:d}=(()=>{let{exportCSV:e,isExporting:t}=(0,w.useCSVExport)();return{exportUser:(0,p.useCallback)(async t=>{await e({type:"User",...t})},[e]),isExporting:t}})(),{formatMessage:u}=(0,a.useIntl)(),n=[{key:"exportBookmarks",label:u({id:"bookmarks",defaultMessage:"Bookmarks"}),defaultChecked:!0},{key:"exportOrders",label:u({id:"orders",defaultMessage:"Orders"}),defaultChecked:!0},{key:"exportReviews",label:u({id:"reviews",defaultMessage:"Reviews"}),defaultChecked:!0},{key:"exportQuotations",label:u({id:"quotations",defaultMessage:"Quotations"}),defaultChecked:!0},{key:"exportEnrollments",label:u({id:"enrollments",defaultMessage:"Enrollments"}),defaultChecked:!0}],c=(0,p.useCallback)(async t=>{await i({userId:e,...t}),s(null)},[e,i,s]);return l?null:(0,t.jsx)(y.default,{onClick:()=>{s((0,t.jsx)(_.default,{options:n,onSubmit:c,loading:d}))},disabled:d||!r,variant:"secondary",text:u(d?{id:"exporting",defaultMessage:"Exporting..."}:{id:"export",defaultMessage:"Export"})})};e.s(["default",0,({userId:e})=>{let{formatMessage:l}=(0,a.useIntl)(),{setModal:i}=(0,x.default)(),{deleteUser:d}=(0,f.default)(),{user:u,extendedData:y}=o({userId:e}),w=(0,s.useRouter)(),{hasRole:_}=(0,g.default)(),v=(0,p.useCallback)(async()=>{await i((0,t.jsx)(m.default,{onCancelClick:async()=>i(""),message:l({id:"delete_user_account_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it "}),onOkClick:async()=>{i(""),await d(u._id),h.toast.success(l({id:"user_deleted",defaultMessage:"User deleted successfully"})),w.push("/users")},okText:l({id:"delete_user_account",defaultMessage:"Delete user"})}))},[u]);return(0,t.jsxs)("div",{className:" max-w-6xl",children:[(0,t.jsx)(n.default,{currentPageTitle:u?`${u?.name}`:""}),(0,t.jsx)(c.default,{headerText:(0,b.default)(u)||l({id:"users_setting_list_header",defaultMessage:"User settings"}),onDelete:!u?.deleted&&_(r.IRoleAction.RemoveUser)?v:null,title:l({id:"user_detail_title",defaultMessage:"User {id}"},{id:u?.username}),children:(0,t.jsx)(I,{userId:e})}),(0,t.jsx)(k.default,{user:u,extendedData:y})]})}],2385)},28805,e=>{e.v(t=>Promise.all(["static/chunks/1jqnrnw0p9tw5.js"].map(t=>e.l(t))).then(()=>t(79466)))},48761,e=>{e.v(t=>Promise.all(["static/chunks/0wooaklx8_14q.js"].map(t=>e.l(t))).then(()=>t(93594)))}]);
|