@unchainedshop/admin-ui 5.0.0-alpha.1 → 5.0.0-alpha.2
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/{_ZCNVAj2ptQ3WvyS9d8fH → NCD-SJ8yCV0Afw8rFopK9}/_buildManifest.js +62 -62
- package/out/_next/static/chunks/0-beu4vu82jrh.js +1 -0
- package/out/_next/static/chunks/0-bq_~1lrxscv.js +1 -0
- package/out/_next/static/chunks/0-gs6rs8.en66.js +807 -0
- package/out/_next/static/chunks/0.4qfzuvwzsxc.js +346 -0
- package/out/_next/static/chunks/0.ezy3xvxrqcc.js +15 -0
- package/out/_next/static/chunks/0.i9a933lfo25.js +110 -0
- package/out/_next/static/chunks/0.qv4h3l4v.mz.js +807 -0
- package/out/_next/static/chunks/00-1l-sb67jn-.js +807 -0
- package/out/_next/static/chunks/0063j04yfdol-.js +13 -0
- package/out/_next/static/chunks/006d2uxhsngs-.js +1 -0
- package/out/_next/static/chunks/00d66~in48qe1.js +108 -0
- package/out/_next/static/chunks/00u_9mz-xfmbu.js +119 -0
- package/out/_next/static/chunks/00ysn67q-k.lf.js +384 -0
- package/out/_next/static/chunks/00z8y5zmd5ley.js +16 -0
- package/out/_next/static/chunks/01.ug0e_hak5n.js +31 -0
- package/out/_next/static/chunks/{0.7jou~9s-9ly.js → 01755gvyv1u4p.js} +35 -35
- package/out/_next/static/chunks/024hggxa5rlsk.js +16 -0
- package/out/_next/static/chunks/025rs.6-.kttm.js +177 -0
- package/out/_next/static/chunks/029met6o9c69_.js +132 -0
- package/out/_next/static/chunks/035ijcwfe128..js +13 -0
- package/out/_next/static/chunks/039.n12k.ourz.js +1 -0
- package/out/_next/static/chunks/039laq217w5af.js +1 -0
- package/out/_next/static/chunks/03awhk2amfyg9.js +13 -0
- package/out/_next/static/chunks/03b6o0yl3wq69.js +324 -0
- package/out/_next/static/chunks/03exf~-d8n0~p.js +12 -0
- package/out/_next/static/chunks/043qhigp~b~xd.js +288 -0
- package/out/_next/static/chunks/047b32b2zk0zr.js +50 -0
- package/out/_next/static/chunks/{0ltj_coftxt~y.js → 04ljxsi4h8opa.js} +2 -2
- package/out/_next/static/chunks/05-wy9wkovd44.js +66 -0
- package/out/_next/static/chunks/059j6ba8pjbxt.js +2 -0
- package/out/_next/static/chunks/05c669_6-rcl4.js +15 -0
- package/out/_next/static/chunks/05ebn-rbx77t1.js +1 -0
- package/out/_next/static/chunks/05ijoypg9erzj.js +15 -0
- package/out/_next/static/chunks/05mdbs7fsyl0j.js +15 -0
- package/out/_next/static/chunks/05xkbw-s9zm4v.js +1 -0
- package/out/_next/static/chunks/05y5i1xi9l7xo.js +46 -0
- package/out/_next/static/chunks/06jxo~w32bob0.js +14 -0
- package/out/_next/static/chunks/06l-x0hfnht~9.js +12 -0
- package/out/_next/static/chunks/06rpbu900ohev.js +807 -0
- package/out/_next/static/chunks/06wxd~64yev29.js +1 -0
- package/out/_next/static/chunks/074t2kkalxoor.js +54 -0
- package/out/_next/static/chunks/0757.exyqs35o.js +1 -0
- package/out/_next/static/chunks/07bj_95mgrfr7.js +81 -0
- package/out/_next/static/chunks/07gsr_4x3t83l.js +1 -0
- package/out/_next/static/chunks/07m0kcby2q9_3.js +119 -0
- package/out/_next/static/chunks/07rosayyue4dv.js +5 -0
- package/out/_next/static/chunks/07vc0lr9~n374.js +807 -0
- package/out/_next/static/chunks/07we~tcuuf587.js +1 -0
- package/out/_next/static/chunks/08-e12375gky7.js +1 -0
- package/out/_next/static/chunks/08g5cr0k-wewy.js +13 -0
- package/out/_next/static/chunks/08gnfg~ucaonj.js +31 -0
- package/out/_next/static/chunks/08l8.c5-zq8l_.js +13 -0
- package/out/_next/static/chunks/08s08655wboxs.js +224 -0
- package/out/_next/static/chunks/08ubwqxtv1pi8.js +471 -0
- package/out/_next/static/chunks/093du9_a7j~e9.js +22 -0
- package/out/_next/static/chunks/09ar00gwggnv2.js +92 -0
- package/out/_next/static/chunks/09ew07.pd~qmo.js +31 -0
- package/out/_next/static/chunks/09h16th.ukf49.js +9 -0
- package/out/_next/static/chunks/09i.iewg619r8.js +1 -0
- package/out/_next/static/chunks/09ird980jk5l4.js +1 -0
- package/out/_next/static/chunks/09ti6--w-81qk.js +12 -0
- package/out/_next/static/chunks/0_.rynghl8eid.js +16 -0
- package/out/_next/static/chunks/0_fjllta7r.pd.js +1 -0
- package/out/_next/static/chunks/0_hapi9~w_m74.js +807 -0
- package/out/_next/static/chunks/0_rymam7ts5h_.js +61 -0
- package/out/_next/static/chunks/0_tmrtwx_w001.js +1 -0
- package/out/_next/static/chunks/0_wmd30ovkohg.js +14 -0
- package/out/_next/static/chunks/0a1flay6uksa2.js +1 -0
- package/out/_next/static/chunks/0a4iuso54enw6.js +43 -0
- package/out/_next/static/chunks/0a9xn3eyi55p7.js +807 -0
- package/out/_next/static/chunks/0ab-_zb.d-ta~.js +13 -0
- package/out/_next/static/chunks/0agmcim_ow38h.js +41 -0
- package/out/_next/static/chunks/0ah_xk7gumihc.js +10 -0
- package/out/_next/static/chunks/0al9fetggpofs.js +101 -0
- package/out/_next/static/chunks/0apih1f_pg7x5.js +22 -0
- package/out/_next/static/chunks/0aqef_pw6d4-x.js +12 -0
- package/out/_next/static/chunks/0av.mpk52l~sj.js +78 -0
- package/out/_next/static/chunks/0b26w_2v.jnnp.js +23 -0
- package/out/_next/static/chunks/{0y153o27bxgcb.js → 0bgpq4k~.1ow~.js} +1 -1
- package/out/_next/static/chunks/0b~~k586vhgzn.js +22 -0
- package/out/_next/static/chunks/0c1ohyu0~45-6.js +16 -0
- package/out/_next/static/chunks/0c6zpdc5tnyit.js +14 -0
- package/out/_next/static/chunks/0cxr_f9owlixa.js +147 -0
- package/out/_next/static/chunks/0d4_~230qii9x.js +8 -0
- package/out/_next/static/chunks/0d7ng.3g0fqyq.js +14 -0
- package/out/_next/static/chunks/0dgzbrz_ks6y3.js +836 -0
- package/out/_next/static/chunks/0dmlsqy.34z7l.js +5 -0
- package/out/_next/static/chunks/0d~mpqdnsqc_3.js +217 -0
- package/out/_next/static/chunks/0e.ov59u.i2g..js +26 -0
- package/out/_next/static/chunks/0e7j7~xp-kfcl.js +1 -0
- package/out/_next/static/chunks/0eshxr9tyc-ob.js +1 -0
- package/out/_next/static/chunks/0eyuawigvkque.js +144 -0
- package/out/_next/static/chunks/0f0p~b_1z06f-.js +12 -0
- package/out/_next/static/chunks/0f1vh2kuipe~w.js +1 -0
- package/out/_next/static/chunks/0f2lcm2fvm0o4.js +15 -0
- package/out/_next/static/chunks/0f5-n-rcb1ksy.js +61 -0
- package/out/_next/static/chunks/0f7rfo-9v~6ta.js +16 -0
- package/out/_next/static/chunks/0fadm_h6dqral.js +1 -0
- package/out/_next/static/chunks/0fgje3pp6kr-..js +21 -0
- package/out/_next/static/chunks/0fixfg1.spty7.js +8 -0
- package/out/_next/static/chunks/0fo857sizpzb..js +14 -0
- package/out/_next/static/chunks/0fpmn5~h1l5fy.js +51 -0
- package/out/_next/static/chunks/0fzx56yu8w89-.js +1 -0
- package/out/_next/static/chunks/0g5.zeq8z86p8.js +22 -0
- package/out/_next/static/chunks/0gcrw01taxxl6.js +1 -0
- package/out/_next/static/chunks/0hprhos6ompyh.js +1 -0
- package/out/_next/static/chunks/0htfk2vj7m.9j.js +1 -0
- package/out/_next/static/chunks/0hv.16xst798a.js +807 -0
- package/out/_next/static/chunks/0i67~d9m79069.js +1 -0
- package/out/_next/static/chunks/0i9ujbll13rjg.js +7 -0
- package/out/_next/static/chunks/0ixp-hqnt2hdk.js +188 -0
- package/out/_next/static/chunks/0j3_ll.umtrlh.js +15 -0
- package/out/_next/static/chunks/0j8_vntnh3wh1.js +384 -0
- package/out/_next/static/chunks/0jcl.bguz9-il.js +173 -0
- package/out/_next/static/chunks/0jhfv_wn9s6x1.js +1 -0
- package/out/_next/static/chunks/0jthyhkkkajye.js +87 -0
- package/out/_next/static/chunks/0jyfzjlxmkv47.js +1 -0
- package/out/_next/static/chunks/0k33b3l3swmdp.js +14 -0
- package/out/_next/static/chunks/0k8cqr5rpupnp.js +12 -0
- package/out/_next/static/chunks/0kacoozv1plky.js +12 -0
- package/out/_next/static/chunks/{17l28vjc_z915.js → 0kb8vq-u9e5ie.js} +61 -61
- package/out/_next/static/chunks/0kpfj.1wbd8ym.js +200 -0
- package/out/_next/static/chunks/0kws6.oh9adj9.js +14 -0
- package/out/_next/static/chunks/0l6-vjb..0-s7.js +286 -0
- package/out/_next/static/chunks/0l8ujxmk7702g.js +1 -0
- package/out/_next/static/chunks/0lcd2so6jg-_l.js +44 -0
- package/out/_next/static/chunks/0lhvveiv7i555.js +13 -0
- package/out/_next/static/chunks/0lim3v66fnjbi.js +73 -0
- package/out/_next/static/chunks/0lj_~1h9s9o4p.js +15 -0
- package/out/_next/static/chunks/0m2jz56bm31rn.js +13 -0
- package/out/_next/static/chunks/0mw6751mia5o-.js +13 -0
- package/out/_next/static/chunks/0m~4npg.nbafl.js +807 -0
- package/out/_next/static/chunks/0nnrgfwlre~2w.js +12 -0
- package/out/_next/static/chunks/0nvdm-r7zmv-l.js +1 -0
- package/out/_next/static/chunks/0nyyy1v4911lw.js +59 -0
- package/out/_next/static/chunks/0o05daemjdhug.js +227 -0
- package/out/_next/static/chunks/0o6szwcbqvtk..js +1 -0
- package/out/_next/static/chunks/0oq1lazm-ypco.js +15 -0
- package/out/_next/static/chunks/0owfq70q4gv3g.js +11 -0
- package/out/_next/static/chunks/0o~ytet2snd7..js +18 -0
- package/out/_next/static/chunks/0pooq0ei74.fu.js +17 -0
- package/out/_next/static/chunks/0q92oiu-paus_.js +1 -0
- package/out/_next/static/chunks/{0wc49~p9kujfb.js → 0r.pkr~.dyugv.js} +30 -30
- package/out/_next/static/chunks/0r.xn-_woklgt.js +138 -0
- package/out/_next/static/chunks/0r2eg~z0yxhkm.js +384 -0
- package/out/_next/static/chunks/{02mkjzfq3ks0c.js → 0rf4yd5v399-n.js} +35 -35
- package/out/_next/static/chunks/0s9gw8v77opep.js +12 -0
- package/out/_next/static/chunks/0sq1ba8siz_al.js +46 -0
- package/out/_next/static/chunks/0tgyufn7ieyma.js +23 -0
- package/out/_next/static/chunks/0tq-lptj3-s~9.js +7 -0
- package/out/_next/static/chunks/0tur4u0bq8afu.js +1 -0
- package/out/_next/static/chunks/0u.p7-5euvw9g.js +101 -0
- package/out/_next/static/chunks/0u0zlnx_0uuo~.js +1 -0
- package/out/_next/static/chunks/0ud072y3rsxuo.js +26 -0
- package/out/_next/static/chunks/0ueboweabxsm_.js +12 -0
- package/out/_next/static/chunks/0ulpot4q9efmn.js +1 -0
- package/out/_next/static/chunks/0up4o93erzv5i.js +15 -0
- package/out/_next/static/chunks/0uppdoxx035f~.js +807 -0
- package/out/_next/static/chunks/0v01e3xk0z2zz.js +10 -0
- package/out/_next/static/chunks/0v7odmyxhwxk9.js +5 -0
- package/out/_next/static/chunks/0vaop4ncta92i.js +43 -0
- package/out/_next/static/chunks/0vef8~~ul~q~3.js +188 -0
- package/out/_next/static/chunks/0vjviijon1cf_.js +227 -0
- package/out/_next/static/chunks/0vo3lqvc1gnao.js +1 -0
- package/out/_next/static/chunks/0vqde~70jg4mp.js +13 -0
- package/out/_next/static/chunks/0w_lpiygl_gbj.js +51 -0
- package/out/_next/static/chunks/0wm9vrqp0f2-g.js +1 -0
- package/out/_next/static/chunks/0wt4fkc59wtk~.js +1 -0
- package/out/_next/static/chunks/0x0ro0p0oede-.js +1 -0
- package/out/_next/static/chunks/0x5~rk9ckvkzm.js +5 -0
- package/out/_next/static/chunks/0xa.gldl0ypuc.js +36 -0
- package/out/_next/static/chunks/0xyz4eb8oj14e.js +32 -0
- package/out/_next/static/chunks/0x~m529wi_q8r.js +807 -0
- package/out/_next/static/chunks/0ygzo.kyf038-.js +13 -0
- package/out/_next/static/chunks/0z5_-ukry36hl.js +905 -0
- package/out/_next/static/chunks/0z69nmy7s-zha.js +10 -0
- package/out/_next/static/chunks/0zcy4ll048jyy.js +13 -0
- package/out/_next/static/chunks/0zpa9vt2u_r06.js +14 -0
- package/out/_next/static/chunks/0zsl0gp2-m_8s.js +1 -0
- package/out/_next/static/chunks/0zw1-wa39f8lg.js +1 -0
- package/out/_next/static/chunks/0z~lvtnl1p.em.js +78 -0
- package/out/_next/static/chunks/0~4r9ol9.3i_l.js +46 -0
- package/out/_next/static/chunks/0~4s5vi61p7ev.js +291 -0
- package/out/_next/static/chunks/0~6ud_t-945ch.js +288 -0
- package/out/_next/static/chunks/0~mh5ybxo9nf2.js +19 -0
- package/out/_next/static/chunks/0~zg_~~subg_x.js +1 -0
- package/out/_next/static/chunks/10.uqlra33~68.js +13 -0
- package/out/_next/static/chunks/10g0ipk~-ofy6.js +20 -0
- package/out/_next/static/chunks/10h4imeqlg217.js +8 -0
- package/out/_next/static/chunks/10jiudk1sj2jm.js +14 -0
- package/out/_next/static/chunks/10kcfk2uu1e6x.js +73 -0
- package/out/_next/static/chunks/10pv9vc9myzuy.js +58 -0
- package/out/_next/static/chunks/11d00p~.l1k_u.js +8 -0
- package/out/_next/static/chunks/{0ei4k52e-lv4o.js → 11lx7_qu.04js.js} +61 -61
- package/out/_next/static/chunks/11svm4d1gbpg3.js +13 -0
- package/out/_next/static/chunks/11xvbwibrxg70.js +44 -0
- package/out/_next/static/chunks/12_-fnbe.fpy3.js +142 -0
- package/out/_next/static/chunks/12_5sds1suvhm.js +13 -0
- package/out/_next/static/chunks/12eo~x2_f0n1c.js +1 -0
- package/out/_next/static/chunks/131o1ib1p4q0~.js +807 -0
- package/out/_next/static/chunks/13azvhnsuoq~i.js +193 -0
- package/out/_next/static/chunks/13qkehmx~~nca.js +1 -0
- package/out/_next/static/chunks/13xo605mvuvr..js +137 -0
- package/out/_next/static/chunks/14-js791sn0n..js +90 -0
- package/out/_next/static/chunks/149uwpe4mqt~4.js +3 -0
- package/out/_next/static/chunks/152e33k3zn_7h.js +13 -0
- package/out/_next/static/chunks/{10m8c175impy1.js → 156o0mg9e~c1z.js} +4 -4
- package/out/_next/static/chunks/15946_7~ym9mj.js +1 -0
- package/out/_next/static/chunks/15im3g6.ezb86.js +16 -0
- package/out/_next/static/chunks/167enz~evud8u.js +1 -0
- package/out/_next/static/chunks/16dxg.m0iyhff.js +20 -0
- package/out/_next/static/chunks/16e76-izprx_3.js +60 -0
- package/out/_next/static/chunks/17556jivokcgt.js +13 -0
- package/out/_next/static/chunks/17831iuhggap-.js +5 -0
- package/out/_next/static/chunks/17lq99ack-rqn.js +7 -0
- package/out/_next/static/chunks/1801hoawv7tvj.js +209 -0
- package/out/_next/static/chunks/turbopack-0-f1h~_vf~hgt.js +1 -0
- package/out/_next/static/chunks/turbopack-00gp6932c5-pc.js +1 -0
- package/out/_next/static/chunks/turbopack-00tplfce3sqmv.js +1 -0
- package/out/_next/static/chunks/turbopack-02xfqg-e5e5bq.js +1 -0
- package/out/_next/static/chunks/turbopack-033ew5zdp4sni.js +1 -0
- package/out/_next/static/chunks/turbopack-04ryg.qj6ce.e.js +1 -0
- package/out/_next/static/chunks/turbopack-05pr_j8b3qpck.js +1 -0
- package/out/_next/static/chunks/turbopack-05t73_ssb6_h5.js +1 -0
- package/out/_next/static/chunks/turbopack-06k1fv3edi.oc.js +1 -0
- package/out/_next/static/chunks/turbopack-06s9wk6xrnhe..js +1 -0
- package/out/_next/static/chunks/turbopack-07pf350usbyrn.js +1 -0
- package/out/_next/static/chunks/turbopack-07qx6il~q8zvj.js +1 -0
- package/out/_next/static/chunks/turbopack-093c3g8x0fud~.js +1 -0
- package/out/_next/static/chunks/turbopack-09mkh-~o1m0t4.js +1 -0
- package/out/_next/static/chunks/turbopack-0_6hyjgtzvvlt.js +1 -0
- package/out/_next/static/chunks/turbopack-0_jrb8zv4u-h5.js +1 -0
- package/out/_next/static/chunks/turbopack-0_z4clx8_mihg.js +1 -0
- package/out/_next/static/chunks/turbopack-0_~3azjxcbh7b.js +1 -0
- package/out/_next/static/chunks/{turbopack-0uukmkfqyl0h8.js → turbopack-0acoq2sfyoi9y.js} +1 -1
- package/out/_next/static/chunks/turbopack-0ce310hugu4ud.js +1 -0
- package/out/_next/static/chunks/turbopack-0cq29kq0j_4v~.js +1 -0
- package/out/_next/static/chunks/turbopack-0e-cncqz58fjt.js +1 -0
- package/out/_next/static/chunks/turbopack-0e2su8irrrxe9.js +1 -0
- package/out/_next/static/chunks/turbopack-0e8f.eohopo8i.js +1 -0
- package/out/_next/static/chunks/turbopack-0ek~cn8gmycju.js +1 -0
- package/out/_next/static/chunks/turbopack-0eywiuu9zzv~v.js +1 -0
- package/out/_next/static/chunks/turbopack-0ft2eo1uoq84f.js +1 -0
- package/out/_next/static/chunks/turbopack-0h0v60mhtl8e5.js +1 -0
- package/out/_next/static/chunks/turbopack-0hd7gd_hw0ffd.js +1 -0
- package/out/_next/static/chunks/turbopack-0ho~reia368_n.js +1 -0
- package/out/_next/static/chunks/turbopack-0hs67a4-408yr.js +1 -0
- package/out/_next/static/chunks/turbopack-0hzo_yuvuoq4p.js +1 -0
- package/out/_next/static/chunks/turbopack-0iqen9zbwhwwt.js +1 -0
- package/out/_next/static/chunks/turbopack-0lse_458kpvoc.js +1 -0
- package/out/_next/static/chunks/turbopack-0m802fcmg9zeo.js +1 -0
- package/out/_next/static/chunks/turbopack-0mh8jqpakiu6t.js +1 -0
- package/out/_next/static/chunks/turbopack-0n7uk~in3~kz5.js +1 -0
- package/out/_next/static/chunks/turbopack-0oq4yqp_mwlp8.js +1 -0
- package/out/_next/static/chunks/turbopack-0p8.m9z07pk0d.js +1 -0
- package/out/_next/static/chunks/turbopack-0q35m3rl2~7_w.js +1 -0
- package/out/_next/static/chunks/turbopack-0qj_d90z9-.xb.js +1 -0
- package/out/_next/static/chunks/turbopack-0rw3antw3c5q1.js +1 -0
- package/out/_next/static/chunks/turbopack-0s1w5b4s~tq0a.js +1 -0
- package/out/_next/static/chunks/turbopack-0s3brlp4-qpvy.js +1 -0
- package/out/_next/static/chunks/turbopack-0ssu8b8ns4wgj.js +1 -0
- package/out/_next/static/chunks/turbopack-0txlw7w4nbwom.js +1 -0
- package/out/_next/static/chunks/turbopack-0umaqu4ffby0g.js +1 -0
- package/out/_next/static/chunks/turbopack-0upagoxw-k-s-.js +1 -0
- package/out/_next/static/chunks/turbopack-0v97f616jctw_.js +1 -0
- package/out/_next/static/chunks/turbopack-0vborwvkaogp3.js +1 -0
- package/out/_next/static/chunks/turbopack-0vii195vc_rhx.js +1 -0
- package/out/_next/static/chunks/turbopack-0vy4m9hkmjj~..js +1 -0
- package/out/_next/static/chunks/turbopack-0wkwlz_hsol74.js +1 -0
- package/out/_next/static/chunks/turbopack-0w~j_hagmzb-9.js +1 -0
- package/out/_next/static/chunks/turbopack-0xe-7k8uoudaf.js +1 -0
- package/out/_next/static/chunks/turbopack-107_r~te8y84z.js +1 -0
- package/out/_next/static/chunks/turbopack-10m1bv2pqkdnu.js +1 -0
- package/out/_next/static/chunks/turbopack-11b3cci1vf3sv.js +1 -0
- package/out/_next/static/chunks/turbopack-11bncwch._hz4.js +1 -0
- package/out/_next/static/chunks/turbopack-11f~mh1t1pbfv.js +1 -0
- package/out/_next/static/chunks/turbopack-14fqn-ie4g30t.js +1 -0
- package/out/_next/static/chunks/turbopack-151-hh8klk1hk.js +1 -0
- package/out/_next/static/chunks/turbopack-16yza259goc47.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 +9 -13
- package/out/_next/static/chunks/0-3aqi0z~0~kq.js +0 -1
- package/out/_next/static/chunks/0-_n2k06ojx7r.js +0 -5
- package/out/_next/static/chunks/0-b7z0cgkcxjg.js +0 -12
- package/out/_next/static/chunks/0-khetjtcca7j.js +0 -23
- package/out/_next/static/chunks/0-vzy055sp9wr.js +0 -1
- package/out/_next/static/chunks/0.7c6ora-keix.js +0 -291
- package/out/_next/static/chunks/0.9xrb29zv20w.js +0 -1
- package/out/_next/static/chunks/0.qq-wh2-26q3.js +0 -1
- package/out/_next/static/chunks/00.vtv-~sgyl1.js +0 -1
- package/out/_next/static/chunks/002w~0kz13czu.js +0 -2
- package/out/_next/static/chunks/00am.v9yslbhb.js +0 -227
- package/out/_next/static/chunks/00z-be-uhq5~b.js +0 -138
- package/out/_next/static/chunks/01.ky4xf9k36u.js +0 -1
- package/out/_next/static/chunks/01m_2h75jti7r.js +0 -173
- package/out/_next/static/chunks/01r~p51b_ree7.js +0 -12
- package/out/_next/static/chunks/01ua~kzkn_2re.js +0 -2
- package/out/_next/static/chunks/01~bicjgx9ycz.js +0 -13
- package/out/_next/static/chunks/02.h.hxc5z45l.js +0 -58
- package/out/_next/static/chunks/020ov1cd5ubsp.js +0 -1
- package/out/_next/static/chunks/022.6ji94gj66.js +0 -90
- package/out/_next/static/chunks/02ljwx.y7xl4e.js +0 -384
- package/out/_next/static/chunks/034ij~x6p.1xq.js +0 -7
- package/out/_next/static/chunks/0387wujkm6quw.js +0 -26
- package/out/_next/static/chunks/03j~743_iaz5a.js +0 -87
- package/out/_next/static/chunks/03zc-8olk-a4z.js +0 -11
- package/out/_next/static/chunks/042vny1lzms1d.js +0 -1
- package/out/_next/static/chunks/045b8oqunhkwz.js +0 -1
- package/out/_next/static/chunks/04d1nicvb1h43.js +0 -12
- package/out/_next/static/chunks/04hnzv8.xnhtq.js +0 -12
- package/out/_next/static/chunks/04j3vrvch7ujx.js +0 -1
- package/out/_next/static/chunks/04j47t-gfncz0.js +0 -17
- package/out/_next/static/chunks/04wxvqon75sl5.js +0 -15
- package/out/_next/static/chunks/0511iudhvmzyd.js +0 -14
- package/out/_next/static/chunks/054x6af~vznwl.js +0 -13
- package/out/_next/static/chunks/055l.ongzthsf.js +0 -2
- package/out/_next/static/chunks/05r6-kh0ahzac.js +0 -288
- package/out/_next/static/chunks/068vu6mcq90.a.js +0 -14
- package/out/_next/static/chunks/069qmjrpifff9.js +0 -10
- package/out/_next/static/chunks/06c.18b146dst.js +0 -43
- package/out/_next/static/chunks/06ciqx79i2-.y.js +0 -16
- package/out/_next/static/chunks/06em3notkoupj.js +0 -60
- package/out/_next/static/chunks/06fu~nzcm6-xx.js +0 -13
- package/out/_next/static/chunks/06ldt6o0kv861.js +0 -12
- package/out/_next/static/chunks/06nnfpkytc2xp.js +0 -101
- package/out/_next/static/chunks/071ms7.~t3bpc.js +0 -73
- package/out/_next/static/chunks/07absjbyi5efz.js +0 -200
- package/out/_next/static/chunks/07gn.w-1ng2vv.js +0 -13
- package/out/_next/static/chunks/07ok4zsn3fbvv.js +0 -8
- package/out/_next/static/chunks/07rzofd~n_8p3.js +0 -111
- package/out/_next/static/chunks/08mu1xcbu0z5i.js +0 -1
- package/out/_next/static/chunks/08np.usn69g26.js +0 -12
- package/out/_next/static/chunks/08oxo2i_s5k32.js +0 -22
- package/out/_next/static/chunks/09.xyqg-s5.hj.js +0 -1
- package/out/_next/static/chunks/09kdzdul.4ws~.js +0 -5
- package/out/_next/static/chunks/09u84u49rpg~q.js +0 -10
- package/out/_next/static/chunks/0_0s9kzhzuc0n.js +0 -51
- package/out/_next/static/chunks/0_34hlmm2xs02.js +0 -1
- package/out/_next/static/chunks/0__0blfuajz3u.js +0 -1
- package/out/_next/static/chunks/0_bohk37n03zc.js +0 -13
- package/out/_next/static/chunks/0_fs4fka5dmk4.js +0 -14
- package/out/_next/static/chunks/0_t._or66p529.js +0 -10
- package/out/_next/static/chunks/0a6n-.sxlxj9i.js +0 -44
- package/out/_next/static/chunks/0aewtng76o8~g.js +0 -1
- package/out/_next/static/chunks/0aokk5k383t_7.js +0 -1
- package/out/_next/static/chunks/0bb3o6y0psmp~.js +0 -137
- package/out/_next/static/chunks/0binkax94nk~0.js +0 -286
- package/out/_next/static/chunks/0b~s0.jgd-9e2.js +0 -1
- package/out/_next/static/chunks/0c6p-vlcfco03.js +0 -2
- package/out/_next/static/chunks/0cau~hqb0jkf..js +0 -1
- package/out/_next/static/chunks/0chk_j9c0w74~.js +0 -21
- package/out/_next/static/chunks/0cnjwc8yv_7du.js +0 -36
- package/out/_next/static/chunks/0d1xe7n4~ift~.js +0 -119
- package/out/_next/static/chunks/0d2egm4vz55tp.js +0 -16
- package/out/_next/static/chunks/0dcng-~m.1-6b.js +0 -31
- package/out/_next/static/chunks/0dwysww-f770p.js +0 -43
- package/out/_next/static/chunks/0d~ogeoavcw1p.js +0 -2
- package/out/_next/static/chunks/0eh08mw_ge-97.js +0 -20
- package/out/_next/static/chunks/0ehfzo.p_8b1p.js +0 -142
- package/out/_next/static/chunks/0eq_bq11j1d8h.js +0 -73
- package/out/_next/static/chunks/0exrsz6ax-mbc.js +0 -50
- package/out/_next/static/chunks/0f7dus4chk-b7.js +0 -1
- package/out/_next/static/chunks/0f_2kctvcf9fc.js +0 -132
- package/out/_next/static/chunks/0fiu9kb2mg_pe.js +0 -1
- package/out/_next/static/chunks/0fzcyuwh8xfnw.js +0 -2
- package/out/_next/static/chunks/0gepdh_x8l03e.js +0 -31
- package/out/_next/static/chunks/0h3apzm4sorb-.js +0 -144
- package/out/_next/static/chunks/0hf6k~k9i9dml.js +0 -101
- package/out/_next/static/chunks/0hggeos.n3ho1.js +0 -324
- package/out/_next/static/chunks/0hs_qs3vvqt40.js +0 -224
- package/out/_next/static/chunks/0i.xcdg6xys-l.js +0 -1
- package/out/_next/static/chunks/0i2a62pwzd90a.js +0 -1
- package/out/_next/static/chunks/0i6yv64iri6c7.js +0 -14
- package/out/_next/static/chunks/0id0hab4x07mp.js +0 -13
- package/out/_next/static/chunks/0itsov_woj_gc.js +0 -11
- package/out/_next/static/chunks/0j0vos96uuvzn.js +0 -19
- package/out/_next/static/chunks/0jl_db3hgihi8.js +0 -1
- package/out/_next/static/chunks/0jsod19bi_.b4.js +0 -1
- package/out/_next/static/chunks/0jt2g8-m-bu3h.js +0 -15
- package/out/_next/static/chunks/0jxpx..caiup3.js +0 -51
- package/out/_next/static/chunks/0k3anlop2ta22.js +0 -1
- package/out/_next/static/chunks/0kg9ib_s2gdgg.js +0 -13
- package/out/_next/static/chunks/0klqyqhl-cmiq.js +0 -46
- package/out/_next/static/chunks/0krimw~~gz366.js +0 -2
- package/out/_next/static/chunks/0kwn.hg1e.um~.js +0 -44
- package/out/_next/static/chunks/0kwrzdkwhn88r.js +0 -13
- package/out/_next/static/chunks/0lcrt1adr76yw.js +0 -8
- package/out/_next/static/chunks/0ljk.6lm3l484.js +0 -7
- package/out/_next/static/chunks/0lq8y5ij59ip~.js +0 -1
- package/out/_next/static/chunks/0lvph83c6z2a-.js +0 -1
- package/out/_next/static/chunks/0mehfyjroyd5m.js +0 -22
- package/out/_next/static/chunks/0n0rvtqgyilhu.js +0 -13
- package/out/_next/static/chunks/0n_8yfa~wwmvn.js +0 -16
- package/out/_next/static/chunks/0ncx_fjx5r3e9.js +0 -13
- package/out/_next/static/chunks/0njruqifmj7eb.js +0 -73
- package/out/_next/static/chunks/0nxa2d3rd~_hk.js +0 -20
- package/out/_next/static/chunks/0oavskn-j3nfr.js +0 -12
- package/out/_next/static/chunks/0oe9_~e6jba2c.js +0 -108
- package/out/_next/static/chunks/0on_9mgul7_i2.js +0 -188
- package/out/_next/static/chunks/0o~whquist5u6.js +0 -1
- package/out/_next/static/chunks/0p1dktj9e81.u.js +0 -209
- package/out/_next/static/chunks/0p2l~~8x6478b.js +0 -73
- package/out/_next/static/chunks/0p47r5clv~tji.js +0 -10
- package/out/_next/static/chunks/0pu7s41rb3je3.js +0 -1
- package/out/_next/static/chunks/0pvo5m24k8fer.js +0 -61
- package/out/_next/static/chunks/0q_s9ru.9iese.js +0 -193
- package/out/_next/static/chunks/0qoukboupb.ht.js +0 -14
- package/out/_next/static/chunks/0qsxmm8vi313~.js +0 -1
- package/out/_next/static/chunks/0qvf8s9fxj~ah.js +0 -41
- package/out/_next/static/chunks/0qy-relppwey0.js +0 -384
- package/out/_next/static/chunks/0r-a0zxkpzy.c.js +0 -14
- package/out/_next/static/chunks/0r017e-0mhnx2.js +0 -16
- package/out/_next/static/chunks/0r4jylm5inuxv.js +0 -13
- package/out/_next/static/chunks/0r6m.pwe-fw0s.js +0 -18
- package/out/_next/static/chunks/0rbjbp6y.a5ze.js +0 -8
- package/out/_next/static/chunks/0rds3div~3bsj.js +0 -15
- package/out/_next/static/chunks/0ridpuenplsy6.js +0 -46
- package/out/_next/static/chunks/0rwb5kn3yi~nn.js +0 -16
- package/out/_next/static/chunks/0s8kpaa2at0vl.js +0 -1
- package/out/_next/static/chunks/0sbwu9f3ons7y.js +0 -13
- package/out/_next/static/chunks/0sqtyywk.m-gb.js +0 -119
- package/out/_next/static/chunks/0suvx3w6t11x1.js +0 -14
- package/out/_next/static/chunks/0t.cqbkm36.29.js +0 -16
- package/out/_next/static/chunks/0ta5trm5g8qpx.js +0 -1
- package/out/_next/static/chunks/0u5rgvh_590-0.js +0 -15
- package/out/_next/static/chunks/0uzv9isqw0xwo.js +0 -12
- package/out/_next/static/chunks/0vu00vv4k8fm2.js +0 -5
- package/out/_next/static/chunks/0wbeo27c~tc9b.js +0 -13
- package/out/_next/static/chunks/0we-.8a4ky2dw.js +0 -2
- package/out/_next/static/chunks/0whq69wyy9mrh.js +0 -1
- package/out/_next/static/chunks/0wjcrj2l-j~_f.js +0 -188
- package/out/_next/static/chunks/0wo4urhtm22ug.js +0 -1
- package/out/_next/static/chunks/0wuu4uyer4mlk.js +0 -31
- package/out/_next/static/chunks/0x4-t7xmjlqx1.js +0 -12
- package/out/_next/static/chunks/0x6_x80dsgoq7.js +0 -2
- package/out/_next/static/chunks/0xczkhpv81j3p.js +0 -1
- package/out/_next/static/chunks/0xo2uquse155f.js +0 -26
- package/out/_next/static/chunks/0xve~a_ipc.21.js +0 -81
- package/out/_next/static/chunks/0y51ico3_h9g3.js +0 -346
- package/out/_next/static/chunks/0y5ttyo5uc5l-.js +0 -15
- package/out/_next/static/chunks/0ydxs-rl4u1j7.js +0 -8
- package/out/_next/static/chunks/0yrt60iy59wz5.js +0 -13
- package/out/_next/static/chunks/0z.rzro53h5n6.js +0 -15
- package/out/_next/static/chunks/0zhqlp5hndrqa.js +0 -1
- package/out/_next/static/chunks/0znn2bf~0xx64.js +0 -46
- package/out/_next/static/chunks/0zpe1nbzz~f8h.js +0 -5
- package/out/_next/static/chunks/0zr4c4gwoe48t.js +0 -15
- package/out/_next/static/chunks/0~gsuncyic_fy.js +0 -2
- package/out/_next/static/chunks/0~tk5o7vtfrjq.js +0 -66
- package/out/_next/static/chunks/103dw~jwhci8m.js +0 -61
- package/out/_next/static/chunks/1041bp0usprml.js +0 -217
- package/out/_next/static/chunks/10bhd86pfsoy5.js +0 -3
- package/out/_next/static/chunks/10jmwo0cv2790.js +0 -100
- package/out/_next/static/chunks/10y5-.kflf93t.js +0 -13
- package/out/_next/static/chunks/11_s223xijkg..js +0 -14
- package/out/_next/static/chunks/11fl4v~k-i6dd.js +0 -1
- package/out/_next/static/chunks/11rfgl5vsu7np.js +0 -147
- package/out/_next/static/chunks/11sml2nj796.7.js +0 -59
- package/out/_next/static/chunks/11smy7~k0731f.js +0 -12
- package/out/_next/static/chunks/12e_gn-hj1ad4.js +0 -5
- package/out/_next/static/chunks/12nnf6pgi3n_-.js +0 -16
- package/out/_next/static/chunks/12q9qfk5yyvku.js +0 -288
- package/out/_next/static/chunks/13h_3r03rklr2.js +0 -54
- package/out/_next/static/chunks/13tjz9q-ls~t3.js +0 -1
- package/out/_next/static/chunks/13ytbvm.zbpoc.js +0 -13
- package/out/_next/static/chunks/13ztct7h9n9ly.js +0 -1
- package/out/_next/static/chunks/14.go5qd.nd-p.js +0 -22
- package/out/_next/static/chunks/14e4xylnze3x2.js +0 -1
- package/out/_next/static/chunks/14kk7enrk.1zd.js +0 -14
- package/out/_next/static/chunks/14q69-rwokbvm.js +0 -13
- package/out/_next/static/chunks/14tbg01czewdy.js +0 -1
- package/out/_next/static/chunks/14vhb8kz5tl75.js +0 -471
- package/out/_next/static/chunks/15r--ckscx-95.js +0 -227
- package/out/_next/static/chunks/15wy-.8-w435h.js +0 -92
- package/out/_next/static/chunks/15z9m-o4tbe0n.js +0 -1
- package/out/_next/static/chunks/169ub5vhwew62.js +0 -1
- package/out/_next/static/chunks/16_-z_hnq-xk7.js +0 -12
- package/out/_next/static/chunks/16s_3ks~~cizu.js +0 -31
- package/out/_next/static/chunks/16wl81ja44b1o.js +0 -54
- package/out/_next/static/chunks/16yuttvlotzf1.js +0 -13
- package/out/_next/static/chunks/17iwj3.fr3dk8.js +0 -7
- package/out/_next/static/chunks/17v04.so.9g1..js +0 -1
- package/out/_next/static/chunks/181fxym9wgh_m.js +0 -1
- package/out/_next/static/chunks/188m.-obobpy_.js +0 -178
- package/out/_next/static/chunks/turbopack-0-c-m~y_.l8n2.js +0 -1
- package/out/_next/static/chunks/turbopack-0-ly3m1ffx4wa.js +0 -1
- package/out/_next/static/chunks/turbopack-0-w~ect25bcud.js +0 -1
- package/out/_next/static/chunks/turbopack-0.2nskz5ux6vf.js +0 -1
- package/out/_next/static/chunks/turbopack-00s1egv_1qxjy.js +0 -1
- package/out/_next/static/chunks/turbopack-00xxfsstzot2t.js +0 -1
- package/out/_next/static/chunks/turbopack-01cocbtxks9vh.js +0 -1
- package/out/_next/static/chunks/turbopack-032afnigdvseo.js +0 -1
- package/out/_next/static/chunks/turbopack-03hvtuilfwgpp.js +0 -1
- package/out/_next/static/chunks/turbopack-04r-j8f.wnbc8.js +0 -1
- package/out/_next/static/chunks/turbopack-06m0ig9acgabg.js +0 -1
- package/out/_next/static/chunks/turbopack-06rfum.y.5-0h.js +0 -1
- package/out/_next/static/chunks/turbopack-07kkmwgy.zqc4.js +0 -1
- package/out/_next/static/chunks/turbopack-07qbascdm6h.j.js +0 -1
- package/out/_next/static/chunks/turbopack-087jzd1gou_ln.js +0 -1
- package/out/_next/static/chunks/turbopack-08h61bgwzagra.js +0 -1
- package/out/_next/static/chunks/turbopack-09d04tqccs343.js +0 -1
- package/out/_next/static/chunks/turbopack-0a1fdpd8.q282.js +0 -1
- package/out/_next/static/chunks/turbopack-0azc8sns1skk7.js +0 -1
- package/out/_next/static/chunks/turbopack-0b6fo_~4ih.xu.js +0 -1
- package/out/_next/static/chunks/turbopack-0bv6z-ics5a1v.js +0 -1
- package/out/_next/static/chunks/turbopack-0c6v~i5zl-_gb.js +0 -1
- package/out/_next/static/chunks/turbopack-0cn_kcha7l~dv.js +0 -1
- package/out/_next/static/chunks/turbopack-0d6899l2l47lo.js +0 -1
- package/out/_next/static/chunks/turbopack-0f3a-2xdfi37o.js +0 -1
- package/out/_next/static/chunks/turbopack-0h1nt4kh7q.sg.js +0 -1
- package/out/_next/static/chunks/turbopack-0hh49n1y8gh-z.js +0 -1
- package/out/_next/static/chunks/turbopack-0ike2xsgynih8.js +0 -1
- package/out/_next/static/chunks/turbopack-0iyvc628rll34.js +0 -1
- package/out/_next/static/chunks/turbopack-0j-vlj505~ob9.js +0 -1
- package/out/_next/static/chunks/turbopack-0j4w2c8pgyzts.js +0 -1
- package/out/_next/static/chunks/turbopack-0kblf3k62bseb.js +0 -1
- package/out/_next/static/chunks/turbopack-0l-~7v3-4~9hg.js +0 -1
- package/out/_next/static/chunks/turbopack-0lb9brrvzbipj.js +0 -1
- package/out/_next/static/chunks/turbopack-0lxybl6vxlhqz.js +0 -1
- package/out/_next/static/chunks/turbopack-0mlri9n~ktoxa.js +0 -1
- package/out/_next/static/chunks/turbopack-0mrgw~e1q9n4l.js +0 -1
- package/out/_next/static/chunks/turbopack-0na33zduv8spb.js +0 -1
- package/out/_next/static/chunks/turbopack-0o_.gb8s5jo85.js +0 -1
- package/out/_next/static/chunks/turbopack-0ofwh3p918g-t.js +0 -1
- package/out/_next/static/chunks/turbopack-0o~anfgw~s_~q.js +0 -1
- package/out/_next/static/chunks/turbopack-0q3dp3wkxb9ro.js +0 -1
- package/out/_next/static/chunks/turbopack-0q5hq623ooh_q.js +0 -1
- package/out/_next/static/chunks/turbopack-0rd~zo~yh9.xl.js +0 -1
- package/out/_next/static/chunks/turbopack-0s3jauzip9.x..js +0 -1
- package/out/_next/static/chunks/turbopack-0w_qsium_grk3.js +0 -1
- package/out/_next/static/chunks/turbopack-0wbajkw2~1l3z.js +0 -1
- package/out/_next/static/chunks/turbopack-0wej6bu7ey9au.js +0 -1
- package/out/_next/static/chunks/turbopack-0wk424kj.kar2.js +0 -1
- package/out/_next/static/chunks/turbopack-0xew6rccsve8y.js +0 -1
- package/out/_next/static/chunks/turbopack-0y898tb-~kae~.js +0 -1
- package/out/_next/static/chunks/turbopack-0~lzxx1ip4b0u.js +0 -1
- package/out/_next/static/chunks/turbopack-11.ar48mv3rch.js +0 -1
- package/out/_next/static/chunks/turbopack-11eqwvrhzm6gb.js +0 -1
- package/out/_next/static/chunks/turbopack-12cd3.da_pv_e.js +0 -1
- package/out/_next/static/chunks/turbopack-12hcx9pi_e_wy.js +0 -1
- package/out/_next/static/chunks/turbopack-12pksi_8~z4-a.js +0 -1
- package/out/_next/static/chunks/turbopack-146i7rj93.pk3.js +0 -1
- package/out/_next/static/chunks/turbopack-15d8c1ob0a6m0.js +0 -1
- package/out/_next/static/chunks/turbopack-16-bzzuvc9d9..js +0 -1
- package/out/_next/static/chunks/turbopack-17sr.m9o6jhdb.js +0 -1
- package/out/_next/static/chunks/turbopack-1829xb~o3h36e.js +0 -1
- /package/out/_next/static/{_ZCNVAj2ptQ3WvyS9d8fH → NCD-SJ8yCV0Afw8rFopK9}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{_ZCNVAj2ptQ3WvyS9d8fH → NCD-SJ8yCV0Afw8rFopK9}/_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}}])},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})})})])},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})})}])},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})})]})}])},77846,e=>{"use strict";var t=e.i(59080);let a=t.gql`
|
|
136
|
+
fragment CountryFragment on Country {
|
|
137
|
+
_id
|
|
138
|
+
isoCode
|
|
139
|
+
isActive
|
|
140
|
+
isBase
|
|
141
|
+
|
|
142
|
+
defaultCurrency {
|
|
143
|
+
_id
|
|
144
|
+
isoCode
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
`;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`
|
|
148
|
+
query Countries(
|
|
149
|
+
$queryString: String
|
|
150
|
+
$limit: Int
|
|
151
|
+
$offset: Int
|
|
152
|
+
$includeInactive: Boolean
|
|
153
|
+
$sort: [SortOptionInput!]
|
|
154
|
+
) {
|
|
155
|
+
countries(
|
|
156
|
+
queryString: $queryString
|
|
157
|
+
limit: $limit
|
|
158
|
+
offset: $offset
|
|
159
|
+
includeInactive: $includeInactive
|
|
160
|
+
sort: $sort
|
|
161
|
+
) {
|
|
162
|
+
...CountryFragment
|
|
163
|
+
}
|
|
164
|
+
countriesCount(includeInactive: $includeInactive, queryString: $queryString)
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
${s.default}
|
|
168
|
+
`;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}})}}}])},95064,e=>{"use strict";var t=e.i(59080);let a=t.gql`
|
|
169
|
+
fragment LanguageFragment on Language {
|
|
170
|
+
_id
|
|
171
|
+
isoCode
|
|
172
|
+
isActive
|
|
173
|
+
isBase
|
|
174
|
+
name
|
|
175
|
+
}
|
|
176
|
+
`;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`
|
|
177
|
+
query Languages(
|
|
178
|
+
$queryString: String
|
|
179
|
+
$offset: Int
|
|
180
|
+
$limit: Int
|
|
181
|
+
$includeInactive: Boolean
|
|
182
|
+
$sort: [SortOptionInput!]
|
|
183
|
+
) {
|
|
184
|
+
languages(
|
|
185
|
+
queryString: $queryString
|
|
186
|
+
offset: $offset
|
|
187
|
+
limit: $limit
|
|
188
|
+
includeInactive: $includeInactive
|
|
189
|
+
sort: $sort
|
|
190
|
+
) {
|
|
191
|
+
...LanguageFragment
|
|
192
|
+
}
|
|
193
|
+
languagesCount(includeInactive: $includeInactive, queryString: $queryString)
|
|
194
|
+
}
|
|
195
|
+
${s.default}
|
|
196
|
+
`;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}})}}}])},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`
|
|
197
|
+
query ShopInfo {
|
|
198
|
+
shopInfo {
|
|
199
|
+
_id
|
|
200
|
+
version
|
|
201
|
+
language {
|
|
202
|
+
_id
|
|
203
|
+
isoCode
|
|
204
|
+
name
|
|
205
|
+
}
|
|
206
|
+
country {
|
|
207
|
+
_id
|
|
208
|
+
isoCode
|
|
209
|
+
flagEmoji
|
|
210
|
+
name
|
|
211
|
+
defaultCurrency {
|
|
212
|
+
_id
|
|
213
|
+
isoCode
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
adminUiConfig {
|
|
217
|
+
singleSignOnURL
|
|
218
|
+
externalLinks {
|
|
219
|
+
href
|
|
220
|
+
title
|
|
221
|
+
target
|
|
222
|
+
}
|
|
223
|
+
customProperties {
|
|
224
|
+
entityName
|
|
225
|
+
inlineFragment
|
|
226
|
+
}
|
|
227
|
+
productTags
|
|
228
|
+
assortmentTags
|
|
229
|
+
userTags
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
`,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:p}=n(),{countries:x}=(0,l.default)(),[v,b]=(0,t.useState)(m),y=e=>{h(e),b(e)};(0,t.useEffect)(()=>{f?b(f):p||y(`${g?.language?.isoCode}-${g?.country?.isoCode?.toUpperCase()}`)},[g,p,m]);let w=(d=[],o.forEach(({_id:e,isoCode:t})=>{d.push({_id:e,isoCode:t}),x.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)},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})})]})}])},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)},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])},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})]})})])},54529,e=>{"use strict";var t=e.i(59080);let a=t.gql`
|
|
234
|
+
fragment ProductBriefFragment on Product {
|
|
235
|
+
texts(forceLocale: $forceLocale) {
|
|
236
|
+
_id
|
|
237
|
+
slug
|
|
238
|
+
title
|
|
239
|
+
subtitle
|
|
240
|
+
description
|
|
241
|
+
vendor
|
|
242
|
+
brand
|
|
243
|
+
labels
|
|
244
|
+
locale
|
|
245
|
+
}
|
|
246
|
+
_id
|
|
247
|
+
sequence
|
|
248
|
+
status
|
|
249
|
+
tags
|
|
250
|
+
sequence
|
|
251
|
+
updated
|
|
252
|
+
published
|
|
253
|
+
media {
|
|
254
|
+
_id
|
|
255
|
+
tags
|
|
256
|
+
file {
|
|
257
|
+
_id
|
|
258
|
+
url
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
... on BundleProduct {
|
|
262
|
+
proxies {
|
|
263
|
+
__typename
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
... on SimpleProduct {
|
|
267
|
+
catalogPrice {
|
|
268
|
+
amount
|
|
269
|
+
currencyCode
|
|
270
|
+
}
|
|
271
|
+
proxies {
|
|
272
|
+
__typename
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
... on PlanProduct {
|
|
276
|
+
catalogPrice {
|
|
277
|
+
amount
|
|
278
|
+
currencyCode
|
|
279
|
+
}
|
|
280
|
+
proxies {
|
|
281
|
+
__typename
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
`;e.s(["default",0,a])},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]})}])},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})})}])},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||""]})}])},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)},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)},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)},64479,e=>{"use strict";var t=e.i(59080),a=e.i(76204);let s=t.gql`
|
|
286
|
+
mutation ConfirmMediaUpload(
|
|
287
|
+
$mediaUploadTicketId: ID!
|
|
288
|
+
$size: Int!
|
|
289
|
+
$type: String!
|
|
290
|
+
) {
|
|
291
|
+
confirmMediaUpload(
|
|
292
|
+
mediaUploadTicketId: $mediaUploadTicketId
|
|
293
|
+
size: $size
|
|
294
|
+
type: $type
|
|
295
|
+
) {
|
|
296
|
+
_id
|
|
297
|
+
name
|
|
298
|
+
type
|
|
299
|
+
size
|
|
300
|
+
url
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
`;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])},41215,e=>{"use strict";class t extends Error{constructor(e){super(e),this.name="CustomError"}}e.s(["default",()=>t])},61113,87593,39833,84339,19471,66859,e=>{"use strict";var t,a=e.i(91788);let s=a.forwardRef(function({title:e,titleId:t,...s},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},s),e?a.createElement("title",{id:t},e):null,a.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,s],61113);var r=e.i(59080);let l=r.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,l],87593);var i=e.i(91398);let d=a.forwardRef(function({title:e,titleId:t,...s},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},s),e?a.createElement("title",{id:t},e):null,a.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"}))}),o=a.forwardRef(function({title:e,titleId:t,...s},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},s),e?a.createElement("title",{id:t},e):null,a.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,o],39833);let n=a.forwardRef(function({title:e,titleId:t,...s},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},s),e?a.createElement("title",{id:t},e):null,a.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,n],84339);var c=e.i(69322),u=e.i(66773),m=e.i(28401),f=e.i(72043),h=e.i(62100),g=e.i(84818),p=e.i(15971),x=e.i(6607),v=e.i(76204);let b=r.gql`
|
|
354
|
+
mutation RemoveProductReview($productReviewId: ID!) {
|
|
355
|
+
removeProductReview(productReviewId: $productReviewId) {
|
|
356
|
+
_id
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
`;var y=e.i(65153),w=e.i(35065),j=e.i(93380);(t={}).UPVOTE="UPVOTE",t.DOWNVOTE="DOWNVOTE",t.REPORT="REPORT";let k=r.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
|
+
`,N=r.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 C=e.i(58971),_=e.i(51870),R=e.i(69211),I=e.i(99160),$=e.i(82226),P=e.i(60741),L=e.i(29691);let M=({maxLength:e,validators:t=[],...a})=>{let s=(0,P.default)({validators:[...t,e&&(0,$.validateMaxLength)(e)],...a});return(0,i.jsx)(L.default,{...s,children:(0,i.jsx)("textarea",{className:(0,f.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,M],19471);var E=e.i(98949);let T=({onSubmit:e,onSubmitSuccess:t=async()=>!0})=>{let{formatMessage:a}=(0,c.useIntl)(),s=a({id:"product_review_added",defaultMessage:"Review added successfully!"}),r=(0,E.default)({submit:e,successMessage:s,onSubmitSuccess:t,initialValues:{message:""}});return(0,i.jsxs)(R.default,{form:r,children:[(0,i.jsx)(M,{rows:3,required:!0,name:"message",id:"message",label:a({id:"message",defaultMessage:"Message"})}),(0,i.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,i.jsx)(I.default,{label:a({id:"report-submit",defaultMessage:"Submit"})})})]})};var q=e.i(41215);let S="UPVOTE",O="DOWNVOTE",A="REPORT";e.s(["default",0,({review:e,enableDelete:t=!0,showProduct:a=!1})=>{let{formatMessage:s}=(0,c.useIntl)(),{currentUser:r}=(0,_.default)(),{formatDateTime:l}=(0,g.default)(),{setModal:R}=(0,x.default)(),{addProductReviewVote:I}=(()=>{let[e]=(0,v.useMutation)(k);return{addProductReviewVote:async({productReviewId:t,type:a,meta:s})=>e({variables:{productReviewId:t,type:a,meta:s},refetchQueries:["ProductReviewByProduct","ProductReviewByUser"]})}})(),{removeProductReviewVote:$}=(()=>{let[e]=(0,v.useMutation)(N);return{removeProductReviewVote:async({productReviewId:t,type:a})=>e({variables:{productReviewId:t,type:a},refetchQueries:["ProductReviewByProduct","ProductReviewByUser"]})}})(),{hasRole:P,isAdmin:L}=(0,C.default)(),M=t=>!!e.ownVotes.find(e=>e.type===t),E=async t=>{let a=async({message:a})=>{try{return await I({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===A?await R((0,i.jsx)(T,{onSubmit:a,onSubmitSuccess:async()=>R(null)})):await I({productReviewId:e._id,type:t})},{removeProductReview:B}=(()=>{let[e]=(0,v.useMutation)(b);return{removeProductReview:async({productReviewId:t})=>e({variables:{productReviewId:t},refetchQueries:["ProductReviewByProduct","ProductReviewByUser"]})}})(),V=!e.deleted&&P(u.IRoleAction.VoteProductReview)&&t&&e?.author?._id===r?._id||L()&&!e.deleted,U=!e.deleted&&P(u.IRoleAction.VoteProductReview),D=e?.product,F=async e=>{await R((0,i.jsx)(p.default,{onCancelClick:async()=>R(""),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()=>{R(""),await B({productReviewId:e}),m.toast.success(s({id:"review_deleted",defaultMessage:"Review deleted successfully"}))},okText:s({id:"delete_review",defaultMessage:"Delete review"})}))};return(0,i.jsxs)("div",{className:(0,f.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,i.jsxs)("div",{className:"flex items-center",children:[a?(0,i.jsx)(w.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,i.jsx)(w.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,i.jsxs)("div",{className:"ml-4 flex-1",children:[(0,i.jsx)("h4",{className:"text-sm font-semibold text-slate-900 dark:text-slate-100",children:a?D?.texts?.title||(0,i.jsxs)(i.Fragment,{children:[D._id," ",(0,i.jsx)(y.default,{color:"yellow",text:s({id:"title_not_found",defaultMessage:"Title not found"})})]}):(0,j.default)(e?.author)}),(0,i.jsx)("p",{className:"text-xs text-slate-500 dark:text-slate-400",children:(0,i.jsx)("time",{dateTime:e.updated||e.created,children:l(e.updated||e.created,{dateStyle:"short",timeStyle:"short"})})})]}),(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsxs)("button",{type:"button",disabled:!U,onClick:async()=>E(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,i.jsx)(n,{className:`h-5 w-5 ${M(S)?"text-emerald-600 dark:text-emerald-400":"text-slate-400 dark:text-slate-500"}`}),(0,i.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,i.jsxs)("button",{type:"button",disabled:!U,onClick:async()=>E(O),className:`flex items-center gap-1 px-2 py-1 rounded-md transition-colors disabled:opacity-50 ${M(O)?"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,i.jsx)(o,{className:`h-5 w-5 ${M(O)?"text-rose-600 dark:text-rose-400":"text-slate-400 dark:text-slate-500"}`}),(0,i.jsx)("span",{className:`text-sm font-medium ${M(O)?"text-rose-700 dark:text-rose-300":"text-slate-700 dark:text-slate-300"}`,children:e.downVote})]})]}),(0,i.jsxs)("div",{className:"flex items-center gap-2 ml-4",children:[P(u.IRoleAction.VoteProductReview)&&(0,i.jsx)("button",{type:"button",disabled:!U,onClick:async()=>E(A),className:`p-2 rounded-md transition-colors disabled:opacity-50 ${M(A)?"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,i.jsx)(d,{className:(0,f.default)("h-4 w-4",{"text-orange-600 dark:text-orange-400":M(A),"text-slate-400 dark:text-slate-500":!M(A)})})}),V&&(0,i.jsx)(h.default,{onClick:()=>F(e._id),className:""}),e.deleted&&(0,i.jsx)(y.default,{text:s({id:"deleted_text",defaultMessage:"Deleted"}),color:"red",className:"ml-2"})]})]}),(0,i.jsxs)("div",{className:"mt-4 space-y-3",children:[(0,i.jsx)("h3",{className:"text-base font-semibold text-slate-900 dark:text-slate-100",children:e.title}),(0,i.jsx)("p",{className:"text-sm text-slate-700 dark:text-slate-300 leading-relaxed",children:e.review})]})]},e._id)}],66859)}]);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,15125,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={VALID_LOADERS:function(){return i},imageConfigDefault:function(){return n}};for(var s in a)Object.defineProperty(t,s,{enumerable:!0,get:a[s]});let i=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},13521,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return i}});let a=e.r(31640)._(e.r(91788)),s=e.r(15125),i=a.default.createContext(s.imageConfigDefault)},83147,e=>{"use strict";let r=e=>e&&e?.split(",").reduce((e,r)=>{let[t=null,a=null]=(r||"")?.split("_")||[];return{...e,[t]:a}},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 a;return a=t?{...e,[t]:r}:e,Object.keys(a)?.map(e=>[e,a[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)}})])},99160,e=>{"use strict";var r=e.i(91398),t=e.i(72043),a=e.i(38865),s=e.i(61898);e.s(["default",0,({label:e,disabled:i=!1,className:n="",hidden:o=!1,...l})=>{let d=(0,a.useFormikContext)(),{...u}=l,c=Object.fromEntries(Object.keys(d.initialValues).map(e=>[e,d.getFieldMeta(e)])),{disabled:m}=(0,s.default)(),g=Object.values(c).reduce((e,{error:r,touched:t})=>e||r&&t,!1),v=i||m||d.isSubmitting||g,w=d.isSubmitting&&!g,f=(i||m||g)&&!d.isSubmitting;return(0,r.jsx)("input",{className:(0,t.default)("inline-flex cursor-pointer justify-center rounded-sm border border-slate-300 px-4 py-2 text-center text-sm font-medium leading-5 shadow-sm hover:shadow-md focus:ring-slate-800 dark:focus:ring-slate-400",n,{"bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900":f,"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600":w,"bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent":!v,hidden:o}),"aria-label":e,type:"submit",value:e,disabled:v,...u})}])},66773,e=>{"use strict";var r,t,a,s,i,n,o,l,d,u,c,m=((r={}).Pickup="PICKUP",r.Shipping="SHIPPING",r),g=((t={}).MultiChoice="MULTI_CHOICE",t.Range="RANGE",t.SingleChoice="SINGLE_CHOICE",t.Switch="SWITCH",t),v=((a={}).Generic="GENERIC",a.Invoice="INVOICE",a),w=((s={}).Active="ACTIVE",s.Deleted="DELETED",s.Draft="DRAFT",s),f=((i={}).BundleProduct="BUNDLE_PRODUCT",i.ConfigurableProduct="CONFIGURABLE_PRODUCT",i.PlanProduct="PLAN_PRODUCT",i.SimpleProduct="SIMPLE_PRODUCT",i.TokenizedProduct="TOKENIZED_PRODUCT",i),p=((n={}).Color="COLOR",n.Text="TEXT",n),h=((o={}).AnswerQuotation="answerQuotation",o.BookmarkProduct="bookmarkProduct",o.BulkImport="bulkImport",o.ChangePassword="changePassword",o.CheckoutCart="checkoutCart",o.ConfirmMediaUpload="confirmMediaUpload",o.CreateCart="createCart",o.CreateEnrollment="createEnrollment",o.CreateUser="createUser",o.DownloadFile="downloadFile",o.EnrollUser="enrollUser",o.ForgotPassword="forgotPassword",o.Heartbeat="heartbeat",o.Impersonate="impersonate",o.LoginAsGuest="loginAsGuest",o.LoginWithPassword="loginWithPassword",o.LoginWithWebAuthn="loginWithWebAuthn",o.Logout="logout",o.LogoutAllSessions="logoutAllSessions",o.ManageAssortments="manageAssortments",o.ManageBookmarks="manageBookmarks",o.ManageCountries="manageCountries",o.ManageCurrencies="manageCurrencies",o.ManageDeliveryProviders="manageDeliveryProviders",o.ManageFilters="manageFilters",o.ManageLanguages="manageLanguages",o.ManagePaymentCredentials="managePaymentCredentials",o.ManagePaymentProviders="managePaymentProviders",o.ManageProductReviews="manageProductReviews",o.ManageProducts="manageProducts",o.ManageQuotations="manageQuotations",o.ManageUsers="manageUsers",o.ManageWarehousingProviders="manageWarehousingProviders",o.ManageWorker="manageWorker",o.MarkOrderConfirmed="markOrderConfirmed",o.MarkOrderDelivered="markOrderDelivered",o.MarkOrderPaid="markOrderPaid",o.MarkOrderRejected="markOrderRejected",o.PageView="pageView",o.RegisterPaymentCredentials="registerPaymentCredentials",o.RemoveUser="removeUser",o.RequestQuotation="requestQuotation",o.ResetPassword="resetPassword",o.ReviewProduct="reviewProduct",o.Search="search",o.SendEmail="sendEmail",o.StopImpersonation="stopImpersonation",o.UpdateCart="updateCart",o.UpdateEnrollment="updateEnrollment",o.UpdateOrder="updateOrder",o.UpdateOrderDelivery="updateOrderDelivery",o.UpdateOrderDiscount="updateOrderDiscount",o.UpdateOrderItem="updateOrderItem",o.UpdateOrderPayment="updateOrderPayment",o.UpdateProductReview="updateProductReview",o.UpdateToken="updateToken",o.UpdateUser="updateUser",o.UpdateUsername="updateUsername",o.UploadTempFile="uploadTempFile",o.UploadUserAvatar="uploadUserAvatar",o.UseWebAuthn="useWebAuthn",o.VerifyEmail="verifyEmail",o.ViewAssortment="viewAssortment",o.ViewAssortments="viewAssortments",o.ViewCountries="viewCountries",o.ViewCountry="viewCountry",o.ViewCurrencies="viewCurrencies",o.ViewCurrency="viewCurrency",o.ViewDeliveryInterfaces="viewDeliveryInterfaces",o.ViewDeliveryProvider="viewDeliveryProvider",o.ViewDeliveryProviders="viewDeliveryProviders",o.ViewEnrollment="viewEnrollment",o.ViewEnrollments="viewEnrollments",o.ViewEvent="viewEvent",o.ViewEvents="viewEvents",o.ViewFilter="viewFilter",o.ViewFilters="viewFilters",o.ViewLanguage="viewLanguage",o.ViewLanguages="viewLanguages",o.ViewLogs="viewLogs",o.ViewOrder="viewOrder",o.ViewOrders="viewOrders",o.ViewPaymentInterfaces="viewPaymentInterfaces",o.ViewPaymentProvider="viewPaymentProvider",o.ViewPaymentProviders="viewPaymentProviders",o.ViewProduct="viewProduct",o.ViewProducts="viewProducts",o.ViewQuotation="viewQuotation",o.ViewQuotations="viewQuotations",o.ViewShopInfo="viewShopInfo",o.ViewStatistics="viewStatistics",o.ViewToken="viewToken",o.ViewTokens="viewTokens",o.ViewTranslations="viewTranslations",o.ViewUser="viewUser",o.ViewUserCount="viewUserCount",o.ViewUserEnrollments="viewUserEnrollments",o.ViewUserOrders="viewUserOrders",o.ViewUserPrivateInfos="viewUserPrivateInfos",o.ViewUserProductReviews="viewUserProductReviews",o.ViewUserPublicInfos="viewUserPublicInfos",o.ViewUserQuotations="viewUserQuotations",o.ViewUserRoles="viewUserRoles",o.ViewUserTokens="viewUserTokens",o.ViewUsers="viewUsers",o.ViewWarehousingInterfaces="viewWarehousingInterfaces",o.ViewWarehousingProvider="viewWarehousingProvider",o.ViewWarehousingProviders="viewWarehousingProviders",o.ViewWork="viewWork",o.ViewWorkQueue="viewWorkQueue",o.VoteProductReview="voteProductReview",o),y=((l={}).Asc="ASC",l.Desc="DESC",l),C=((d={}).Physical="PHYSICAL",d.Virtual="VIRTUAL",d),P=((u={}).Allocated="ALLOCATED",u.Deleted="DELETED",u.Failed="FAILED",u.New="NEW",u.Success="SUCCESS",u),b=((c={}).Budgetsms="BUDGETSMS",c.Bulkgate="BULKGATE",c.BulkExport="BULK_EXPORT",c.BulkImport="BULK_IMPORT",c.Email="EMAIL",c.EnrollmentOrderGenerator="ENROLLMENT_ORDER_GENERATOR",c.ErrorNotifications="ERROR_NOTIFICATIONS",c.ExportToken="EXPORT_TOKEN",c.External="EXTERNAL",c.Heartbeat="HEARTBEAT",c.HttpRequest="HTTP_REQUEST",c.Message="MESSAGE",c.Push="PUSH",c.RefreshTokens="REFRESH_TOKENS",c.Twilio="TWILIO",c.Unknown="UNKNOWN",c.UpdateCoinbaseRates="UPDATE_COINBASE_RATES",c.UpdateEcbRates="UPDATE_ECB_RATES",c.UpdateTokenOwnership="UPDATE_TOKEN_OWNERSHIP",c.ZombieKiller="ZOMBIE_KILLER",c);e.s(["IDeliveryProviderType",()=>m,"IFilterType",()=>g,"IPaymentProviderType",()=>v,"IProductStatus",()=>w,"IProductType",()=>f,"IProductVariationType",()=>p,"IRoleAction",()=>h,"ISortDirection",()=>y,"IWarehousingProviderType",()=>C,"IWorkStatus",()=>P,"IWorkType",()=>b])},58971,95015,e=>{"use strict";var r=e.i(91788);let t=r.default.createContext({isAdmin:()=>!1,hasRole:()=>!1});e.s(["default",0,t],95015),e.s(["default",0,()=>(0,r.useContext)(t)],58971)},5505,e=>{"use strict";var r=e.i(91398),t=e.i(91788),a=e.i(72043);let s=(0,t.createContext)(!1);e.s(["FormWrapperContext",0,s,"default",0,({children:e,className:t=""})=>(0,r.jsx)(s.Provider,{value:!0,children:(0,r.jsx)("div",{className:"sm:max-w-full",children:(0,r.jsx)("div",{className:(0,a.default)("bg-white dark:bg-slate-800 rounded-md shadow-sm overflow-hidden",t),children:e})})})])},45229,e=>{"use strict";var r=e.i(91398),t=e.i(72043),a=e.i(82226),s=e.i(60741),i=e.i(29691);e.s(["default",0,({maxLength:e=0,validators:n=[],...o})=>{let l=(0,s.default)({validators:[...n,e&&(0,a.validateMaxLength)(e)],...o});return(0,r.jsx)(i.default,{...l,children:(0,r.jsx)("input",{className:(0,t.default)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-600 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 focus:outline-hidden focus:ring-2 focus:ring-slate-800 shadow-xs",{"border-rose-700 placeholder:text-rose-500":!!l.error,"border-slate-300 placeholder-slate-400":!l.error}),disabled:l.disabled,id:l.name,name:l.name,onChange:l.onChange,onClick:e=>{e.stopPropagation()},onBlur:l.onBlur,placeholder:l.placeholder,autoComplete:l.autoComplete||"off",type:l.type||"text",value:l.value,autoFocus:l.autoFocus})})}])},64591,e=>{"use strict";var r=e.i(91398),t=e.i(72043),a=e.i(3828),s=e.i(83147);e.s(["default",0,({toggleText:e="",toggleKey:i=null,onToggle:n=null,active:o=!1,className:l="",disabled:d=!1,...u})=>{let c=(0,a.useRouter)(),m=c?.query?.[i]==="true"||o;return(0,r.jsxs)("div",{className:(0,t.default)("",l),children:[(0,r.jsxs)("button",{id:i,disabled:d,type:"button",className:(0,t.default)("relative inline-flex h-3.5 w-9 shrink-0 cursor-pointer rounded-full border-1 border-transparent transition-all duration-200 ease-in-out focus:outline-hidden focus:ring-2 focus:ring-slate-400 focus:ring-offset-2",{"bg-slate-200 dark:bg-slate-700":!m,"bg-emerald-500 dark:bg-emerald-600 shadow-sm":m}),role:"switch",onClick:n||(()=>{let{skip:e,...r}=c.query;c.push({query:(0,s.normalizeQuery)(r,!m,i)})}),"aria-checked":m?"true":"false",...u,children:[(0,r.jsx)("span",{className:"sr-only",children:e}),(0,r.jsxs)("span",{className:(0,t.default)("ml-0.5 pointer-events-none relative inline-block h-3 w-3 transform rounded-full bg-white shadow-sm ring-0 transition-all duration-200 ease-in-out",{"translate-x-5 shadow-md":m,"translate-x-0":!m}),children:[(0,r.jsx)("span",{className:(0,t.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-0 duration-100 ease-out":m,"opacity-100 duration-200 ease-in":!m}),"aria-hidden":"true",children:(0,r.jsx)("svg",{className:"h-3 w-3 text-slate-400",fill:"none",viewBox:"0 0 12 12",children:(0,r.jsx)("path",{d:"M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,r.jsx)("span",{className:(0,t.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-100 duration-200 ease-in":m,"opacity-0 duration-100 ease-out":!m}),"aria-hidden":"true",children:(0,r.jsx)("svg",{className:"h-3 w-3 text-emerald-500",fill:"currentColor",viewBox:"0 0 12 12",children:(0,r.jsx)("path",{d:"M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"})})})]})]}),(0,r.jsx)("span",{className:"ml-3",id:"annual-billing-label",children:(0,r.jsx)("span",{className:"text-sm font-medium text-slate-900 dark:text-slate-200",children:e})})]})}])},73419,e=>{"use strict";var r=e.i(91398),t=e.i(72043),a=e.i(60741),s=e.i(29691);e.s(["default",0,e=>{let{options:i,...n}=(0,a.default)(e),{className:o}=e||{className:""};return(0,r.jsx)(s.default,{...n,children:(0,r.jsx)("div",{className:"select-wrap",children:(0,r.jsxs)("select",{className:(0,t.default)("block w-full dark:bg-slate-900 dark:text-white rounded-md border-1 border-slate-300 dark:border-slate-700 py-2.5 pl-3 pr-10 text-base text-black shadow-xs focus:outline-hidden focus:ring-2 focus:ring-slate-800 sm:text-sm",o,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!n.error}),disabled:n.disabled,id:n.name,name:n.name,onChange:n.onChange,onBlur:n.onBlur,value:n.value,children:[(0,r.jsx)("option",{className:"dark:text-slate-200",value:"",disabled:n.required,hidden:n.required,children:n.placeholder||n.label}),Object.entries(i).map(([e,t])=>(0,r.jsx)("option",{className:"dark:text-slate-200",value:e,children:t},e))]})})})}])},68191,e=>{"use strict";var r=e.i(59080);let t=r.gql`
|
|
2
|
+
fragment CurrencyFragment on Currency {
|
|
3
|
+
_id
|
|
4
|
+
isoCode
|
|
5
|
+
isActive
|
|
6
|
+
contractAddress
|
|
7
|
+
decimals
|
|
8
|
+
}
|
|
9
|
+
`;e.s(["default",0,t])},40191,e=>{"use strict";var r=e.i(91398),t=e.i(69322),a=e.i(66773),s=e.i(58971),i=e.i(64591),n=e.i(69211),o=e.i(99160),l=e.i(45229),d=e.i(73419),u=e.i(98949),c=e.i(82226);e.s(["default",0,({onSubmit:e,onSubmitSuccess:m=null,defaultValue:g={},isEdit:v=!1})=>{let{formatMessage:w}=(0,t.useIntl)(),{hasRole:f}=(0,s.default)(),p=w({id:"currency_added",defaultMessage:"Currency added successfully!"}),h=w({id:"currency_updated",defaultMessage:"Currency updated successfully!"}),y=(0,u.default)({submit:e,onSubmitSuccess:m,successMessage:v?h:p,getSubmitErrorMessage:e=>{if(e?.message?.includes("duplicate key"))return y.formik.setFieldError("isoCode",w({id:"currency_exists",defaultMessage:"Currency with the same ISO code already exists"})),null},initialValues:{isoCode:"",contractAddress:"",isActive:!1,decimals:2,...g}});return(0,r.jsxs)(n.default,{form:y,children:[(0,r.jsxs)("div",{className:"p-5 pb-7",children:[(0,r.jsx)(l.default,{name:"isoCode",disabled:!f(a.IRoleAction.ManageCurrencies),id:"isoCode",label:w({id:"iso_code",defaultMessage:"ISO code"}),autoComplete:"on",required:!0}),(0,r.jsx)(l.default,{name:"contractAddress",disabled:!f(a.IRoleAction.ManageCurrencies),id:"contractAddress",validators:[(0,c.isContractAddress)()],label:w({id:"contract_address",defaultMessage:"Contract Address"}),autoComplete:"on",className:"mt-4"}),(0,r.jsx)(d.default,{className:"mt-4",label:w({id:"decimals",defaultMessage:"Decimals"}),required:!0,name:"decimals",disabled:!f(a.IRoleAction.ManageCurrencies),options:Object.fromEntries(Array(32).fill(null).map((e,r)=>[r,`${r}`]))}),v&&(0,r.jsx)("div",{className:"mt-5 flex items-center",children:(0,r.jsx)(i.default,{toggleText:w({id:"active",defaultMessage:"Active"}),disabled:!f(a.IRoleAction.ManageCurrencies),active:y.formik.values.isActive,onToggle:()=>y.formik.setFieldValue("isActive",!y.formik.values.isActive)})})]}),f(a.IRoleAction.ManageCurrencies)&&(0,r.jsx)("div",{className:"border-t-slate-100 border-t dark:border-t-slate-700 space-y-6 rounded-b-md bg-slate-50 dark:bg-slate-900 p-5 text-right",children:(0,r.jsx)(o.default,{label:v?w({id:"update_currency",defaultMessage:"Update Currency"}):w({id:"add_currency",defaultMessage:"Add Currency"})})})]})}])},39503,e=>{"use strict";var r=e.i(91398),t=e.i(3828),a=e.i(69322),s=e.i(61494),i=e.i(5505),n=e.i(17644),o=e.i(40191),l=e.i(59080),d=e.i(76204),u=e.i(68191);let c=l.gql`
|
|
10
|
+
mutation CreateCurrency($currency: CreateCurrencyInput!) {
|
|
11
|
+
createCurrency(currency: $currency) {
|
|
12
|
+
...CurrencyFragment
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
${u.default}
|
|
16
|
+
`;e.s(["default",0,()=>{let{createCurrency:e}=(()=>{let[e,{data:r,loading:t,error:a}]=(0,d.useMutation)(c);return{createCurrency:async({currency:{isoCode:r,contractAddress:t,decimals:a}})=>e({variables:{currency:{isoCode:r,contractAddress:t,decimals:parseInt(a||"2",10)}},refetchQueries:["Currencies","ShopStatus","ShopInfo"]}),newCurrency:r?.createCurrency,error:a,loading:t}})(),l=(0,t.useRouter)(),{formatMessage:u}=(0,a.useIntl)(),m=async({isoCode:r,contractAddress:t,decimals:a})=>{let{data:s,error:i}=await e({currency:{isoCode:r,contractAddress:t,decimals:a}});return!i&&{success:!0,data:s?.createCurrency}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.default,{}),(0,r.jsx)(n.default,{headerText:u({id:"new_currency_header",defaultMessage:"New currency"})}),(0,r.jsxs)("div",{className:"mt-6 lg:grid lg:grid-cols-3 gap-10",children:[(0,r.jsx)("div",{className:"lg:col-span-2",children:(0,r.jsx)(i.default,{children:(0,r.jsx)(o.default,{onSubmit:m,onSubmitSuccess:(e,{_id:r})=>{l.replace(`/currency?currencyId=${r}`)}})})}),(0,r.jsx)("div",{className:"mt-10 lg:mt-44 lg:col-span-1",children:(0,r.jsx)("div",{className:"-my-5 divide-y divide-slate-200 dark:divide-slate-700 dark:text-slate-400 mr-4",children:u({id:"currency_contract_address_description",defaultMessage:"Contract address is optional and represents address of the 40 character long deployed token contract on the ethereum network. "})})})]})]})}],39503)},81910,(e,r,t)=>{let a="/currency/new";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(39503)]),r.hot&&r.hot.dispose(function(){window.__NEXT_P.push([a])})},48761,e=>{e.v(r=>Promise.all(["static/chunks/0a1flay6uksa2.js"].map(r=>e.l(r))).then(()=>r(93594)))},28805,e=>{e.v(r=>Promise.all(["static/chunks/0htfk2vj7m.9j.js"].map(r=>e.l(r))).then(()=>r(79466)))}]);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,15125,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s={VALID_LOADERS:function(){return r},imageConfigDefault:function(){return i}};for(var l in s)Object.defineProperty(a,l,{enumerable:!0,get:s[l]});let r=["default","imgix","cloudinary","akamai","custom"],i={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},13521,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"ImageConfigContext",{enumerable:!0,get:function(){return r}});let s=e.r(31640)._(e.r(91788)),l=e.r(15125),r=s.default.createContext(l.imageConfigDefault)},55215,e=>{"use strict";var t=e.i(91398),a=e.i(72043);e.s(["default",0,({value:e,className:s,onChange:l=()=>{},rows:r=7,...i})=>{let d=Math.max(e?e.split("\n").length:1,r);return(0,t.jsx)("textarea",{className:(0,a.default)("text-black dark:bg-slate-900 dark:text-slate-200 border-transparent border-t border-t-slate-200 dark:border-t-slate-800 resize-y",s),value:e,onChange:l,rows:d,...i})}])},7105,e=>{"use strict";var t=e.i(91398),a=e.i(72043),s=e.i(55215),l=e.i(60741),r=e.i(29691);e.s(["default",0,({validators:e=[],rows:i=10,...d})=>{let o=(0,l.default)({...d,validators:[...e,{isValid:e=>{try{return JSON?.parse(e),!0}catch(e){return!1}},intlMessageDescriptor:{id:"invalid_json_input",defaultMessage:"Invalid JSON input"}}]});return(0,t.jsx)(r.default,{...o,children:(0,t.jsx)(s.default,{className:(0,a.default)("mt-1 block w-full max-w-full rounded-md border-1 border-slate-300 dark:border-slate-800 dark:bg-slate-900 dark:text-slate-200 shadow-xs dark:shadow-none focus:ring-slate-800 sm:text-sm",{"border-rose-300 text-rose-600 focus:border-rose-600 focus:ring-rose-600":!!o.error},d.className),disabled:o.disabled,id:o.name,name:o.name,onChange:e=>{try{JSON.parse(e.target.value||"{}"),o.setError("")}catch(e){o.setError(e.message?.replace("JSON.parse",""))}finally{o.setValue(e.target.value,!0),o.setTouched(!0)}},onBlur:e=>{try{o.setValue(JSON.stringify(JSON.parse(e.target.value),void 0,2),!0),o.setError("")}catch(e){o.setError(e.message)}},placeholder:o.placeholder,autoComplete:o.autoComplete,value:o.value})})}])},73419,e=>{"use strict";var t=e.i(91398),a=e.i(72043),s=e.i(60741),l=e.i(29691);e.s(["default",0,e=>{let{options:r,...i}=(0,s.default)(e),{className:d}=e||{className:""};return(0,t.jsx)(l.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(r).map(([e,a])=>(0,t.jsx)("option",{className:"dark:text-slate-200",value:e,children:a},e))]})})})}])},1504,e=>{"use strict";e.s(["default",0,(e,t,a)=>Object.assign({},...e?.map(e=>({[e[a]]:e[t]}))||[])])},5505,e=>{"use strict";var t=e.i(91398),a=e.i(91788),s=e.i(72043);let l=(0,a.createContext)(!1);e.s(["FormWrapperContext",0,l,"default",0,({children:e,className:a=""})=>(0,t.jsx)(l.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})})})])},45229,e=>{"use strict";var t=e.i(91398),a=e.i(72043),s=e.i(82226),l=e.i(60741),r=e.i(29691);e.s(["default",0,({maxLength:e=0,validators:i=[],...d})=>{let o=(0,l.default)({validators:[...i,e&&(0,s.validateMaxLength)(e)],...d});return(0,t.jsx)(r.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})})}])},24557,e=>{"use strict";var t=e.i(91788);let a=t.forwardRef(function({title:e,titleId:a,...s},l){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:l,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{fillRule:"evenodd",d:"M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z",clipRule:"evenodd"}))});e.s(["TrashIcon",0,a],24557)},41523,e=>{"use strict";var t=e.i(91398),a=e.i(72043),s=e.i(3828),l=e.i(91788),r=e.i(69322);e.s(["default",0,({children:e,tabItems:i,defaultTab:d,updateRoute:o=!0})=>{let n=(0,s.useRouter)(),{tab:u=d}=n?.query||{},c=Array.isArray(u)?u[0]:u,{formatMessage:m}=(0,r.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:c,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":c===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:l.default.cloneElement(e,{selectedView:c})})]})}])},72094,e=>{"use strict";var t=e.i(91398),a=e.i(91788),s=e.i(61898);let l=(e,t="")=>Object.fromEntries(Object.entries(e).reduce((e=[],[s,r])=>"string"==typeof r||a.default.isValidElement(r)?[...e,[`${t}${s}`,r]]:[...Object.entries(l(Object.assign({},...r),`${t}${s}.`)),...e],[])),r=({submitError:e="",fieldErrors:s=[]})=>(0,t.jsx)("div",{className:"my-2 mb-5 text-rose-700",children:(0,t.jsxs)("ul",{className:"space-y-1",children:[e&&(0,t.jsx)("li",{className:"disabled",children:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})},"submitError"),Object.entries(l(s)).map(([e,s])=>(0,t.jsx)("li",{className:"disabled",children:(0,t.jsx)("button",{type:"button",className:"no-button text-rose-600 dark:text-rose-400","aria-label":"Error button",onClick:()=>{let t=document.getElementById(e);t&&t.focus()},children:a.default.isValidElement(s)?s:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:s}})})},e))]})});e.s(["default",0,({displayFieldErrors:e=!1})=>{let{submitError:a,formik:l}=(0,s.default)(),i=l?.errors;return(a||e)&&(0,t.jsx)(r,{submitError:a,fieldErrors:e&&i})}])},62100,e=>{"use strict";var t=e.i(91398),a=e.i(24557),s=e.i(72043),l=e.i(69322);e.s(["default",0,({onClick:e,className:r="",icon:i=null,textRight:d="",textLeft:o="",ariaLabel:n=""})=>{let{formatMessage:u}=(0,l.useIntl)();return(0,t.jsxs)("button",{"aria-label":n||u({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",r),children:[o||"",i||(0,t.jsx)(a.TrashIcon,{className:"h-5 w-5"}),d||""]})}])},30086,e=>{"use strict";var t=e.i(59080),a=e.i(76204);let s=t.gql`
|
|
2
|
+
mutation AddWork(
|
|
3
|
+
$type: WorkType!
|
|
4
|
+
$priority: Int! = 0
|
|
5
|
+
$input: JSON
|
|
6
|
+
$originalWorkId: ID
|
|
7
|
+
$scheduled: Timestamp
|
|
8
|
+
$retries: Int! = 20
|
|
9
|
+
) {
|
|
10
|
+
addWork(
|
|
11
|
+
type: $type
|
|
12
|
+
priority: $priority
|
|
13
|
+
input: $input
|
|
14
|
+
originalWorkId: $originalWorkId
|
|
15
|
+
scheduled: $scheduled
|
|
16
|
+
retries: $retries
|
|
17
|
+
) {
|
|
18
|
+
_id
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`;e.s(["default",0,()=>{let[e]=(0,a.useMutation)(s);return{addWork:async({type:t,priority:a,input:s,originalWorkId:l,scheduled:r=null,retries:i})=>e({variables:{type:t,priority:a,input:s,originalWorkId:l,scheduled:r,retries:i},refetchQueries:["WorkQueue"]})}}])},38247,e=>{"use strict";var t=e.i(91398),a=e.i(72043),s=e.i(60741),l=e.i(82226),r=e.i(29691);let i=e=>{let t=new Date(e);return isNaN(t.getTime())?null:t.toISOString().split("T")[0]};e.s(["default",0,({validators:e=[],className:d,parseDate:o=i,...n})=>{let u=(0,s.default)({validators:[...e,l.validateDate],...n}),c=u.value?new Date(u.value).toISOString().split("T")[0]:"";return(0,t.jsx)(r.default,{...u,className:n.containerClassName,children:(0,t.jsx)("input",{type:"date",id:u.id,name:u.name,disabled:u.disabled,className:(0,a.default)("relative mt-0 block w-full appearance-none rounded-md rounded-b-md border-1 border-slate-300 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 dark:text-slate-200 dark:bg-slate-900 placeholder-slate-400 shadow-xs focus:z-10 focus:outline-hidden focus:ring-2 focus:ring-slate-800",d,{"border-rose-700 placeholder:text-rose-300":!!u.error}),onChange:e=>u.setValue(e.target.value),value:c,placeholder:u.placeholder,autoComplete:"off",...n})})}])},59914,e=>{"use strict";var t=e.i(91398),a=e.i(69322),s=e.i(61494),l=e.i(17644),r=e.i(41523),i=e.i(38865),d=e.i(66773),o=e.i(3828),n=e.i(58971),u=e.i(62100),c=e.i(5505),m=e.i(1504),f=e.i(69211),x=e.i(72094),p=e.i(73419),b=e.i(99160),h=e.i(45229),g=e.i(98949),k=e.i(59080),v=e.i(76204);let w=k.gql`
|
|
22
|
+
mutation AllocateWork($types: [WorkType], $worker: String) {
|
|
23
|
+
allocateWork(types: $types, worker: $worker) {
|
|
24
|
+
_id
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
`;var y=e.i(32171);let j=k.gql`
|
|
28
|
+
query ActiveWorkTypes {
|
|
29
|
+
activeWorkTypes
|
|
30
|
+
}
|
|
31
|
+
`,N=()=>{let{data:e,loading:t,error:a}=(0,y.useQuery)(j);return{workTypes:(e?.activeWorkTypes||[]).map(e=>({value:e,label:e})),loading:t,error:a}},_=()=>{let{formatMessage:e}=(0,a.useIntl)(),s=(0,o.useRouter)(),{allocateWork:l}=(()=>{let[e]=(0,v.useMutation)(w);return{allocateWork:async({types:t,worker:a})=>e({variables:{types:t,worker:a},refetchQueries:["WorkQueue"]})}})(),{hasRole:r}=(0,n.default)(),k=async({types:e,worker:t})=>{let{data:a,error:s}=await l({types:e,worker:t});return{success:!!a?.allocateWork,data:a?.allocateWork,error:s}},y=e({id:"work_allocated_success",defaultMessage:"Allocate work successfully!"}),j=(0,g.default)({submit:k,onSubmitSuccess:(e,{_id:t})=>(s.push(`/works?workerId=${t}`),null),getSubmitErrorMessage:t=>t?.message||e({id:"error-something-went-wrong",defaultMessage:"Unable to complete the task successfully please try again"}),successMessage:y,enableReinitialize:!0,initialValues:{types:[""],worker:""}}),{workTypes:_}=N(),{values:C}=j.formik;return(0,t.jsx)(c.default,{children:(0,t.jsxs)(f.default,{form:j,children:[(0,t.jsxs)("div",{className:"p-6",children:[(0,t.jsx)("div",{className:"mb-3",children:(0,t.jsx)(h.default,{name:"worker",id:"worker",label:e({id:"worker",defaultMessage:"Worker"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",placeholder:e({id:"worker",defaultMessage:"Worker"}),className:"max-w-full text-sm text-slate-900 sm:mt-0"})}),(0,t.jsx)(i.FieldArray,{name:"types",children:({push:a,remove:s})=>(0,t.jsxs)("div",{children:[C.types.map((a,l)=>(0,t.jsxs)("div",{className:"flex max-w-4xl items-center",children:[(0,t.jsx)("div",{className:"w-100 relative w-full pl-5 space-y-1 rounded-md sm:pr-2",children:(0,t.jsx)("div",{className:"max-w-4xl justify-between align-baseline sm:flex",children:(0,t.jsx)(p.default,{className:"w-full py-2 text-sm text-slate-500 dark:text-slate-200 sm:mt-0",label:e({id:"type",defaultMessage:"Type"}),placeholder:e({id:"type",defaultMessage:"Type"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",name:`types[${l}`,required:!0,options:(0,m.default)(_,"label","value")})})}),(0,t.jsx)("div",{className:"ml-2 mt-5 shrink-0 sm:mt-4",children:(0,t.jsx)(u.default,{onClick:()=>s(l)})})]},l)),(0,t.jsxs)("div",{className:"mt-2 flex flex-wrap items-center justify-between sm:flex-nowrap",children:[(0,t.jsx)("div",{className:" "}),(0,t.jsx)("div",{className:" mt-2 shrink-0",children:(0,t.jsx)("div",{className:"shrink-0",children:(0,t.jsx)("button",{type:"button",className:"items-right inline-flex rounded-full border border-transparent bg-slate-800 px-2 py-2 text-sm font-medium text-white shadow-xs bg-slate-950 focus:outline-hidden focus:ring-2 focus:ring-slate-800 focus:ring-offset-2",onClick:()=>a(""),children:(0,t.jsx)("svg",{className:"h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})})})})})]})]})})]}),(0,t.jsx)(x.default,{}),r(d.IRoleAction.ManageWorker)&&(0,t.jsx)("div",{className:"border-t-slate-100 border-t dark:border-slate-700 space-y-6 bg-slate-50 dark:bg-slate-800 px-5 py-6 text-right",children:(0,t.jsx)(b.default,{label:e({id:"allocate_work",defaultMessage:"Allocate Work"})})})]})})};var C=e.i(38247),I=e.i(7105),M=e.i(30086);let W=()=>{let{formatMessage:e,locale:s}=(0,a.useIntl)(),{workTypes:l}=N(),{hasRole:r}=(0,n.default)(),{addWork:i}=(0,M.default)(),u=(0,o.useRouter)(),x=e({id:"work_added_success",defaultMessage:"Work added successfully!"}),k=async({type:e,retries:t,priority:a,input:s,scheduled:l,originalWorkId:r})=>{let d=parseInt(t,10),o=parseInt(a,10),{data:n,error:u}=await i({type:e,retries:Number.isNaN(d)?void 0:d,priority:Number.isNaN(o)?void 0:o,input:JSON.parse(s||"[]"),scheduled:l,originalWorkId:r});return u?{success:!1}:{success:!0,data:n?.addWork}},v=(0,g.default)({submit:k,successMessage:x,onSubmitSuccess:(e,{_id:t})=>(u.replace(`/works?workerId=${t}`),!0),enableReinitialize:!0,initialValues:{priority:"",retries:"",originalWorkId:null,scheduled:"",type:"",input:"{}"}});return(0,t.jsx)(c.default,{children:(0,t.jsxs)(f.default,{form:v,children:[(0,t.jsxs)("div",{className:"relative max-w-full space-y-6 rounded-md p-6",children:[(0,t.jsx)("div",{className:"max-w-4xl justify-between align-baseline sm:flex",children:(0,t.jsx)(p.default,{className:"w-full py-2 text-sm text-slate-900 sm:mt-0",label:e({id:"type",defaultMessage:"Type"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",name:"type",required:!0,options:(0,m.default)(l,"label","value")})}),(0,t.jsxs)("div",{className:"max-w-4xl justify-between align-baseline sm:flex sm:gap-4",children:[(0,t.jsx)(h.default,{name:"priority",id:"priority",label:e({id:"priority",defaultMessage:"Priority"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",type:"number",className:"w-full py-2 text-sm text-slate-900 sm:mt-0"}),(0,t.jsx)(h.default,{name:"retries",id:"retries",label:e({id:"retries",defaultMessage:"Retries"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",type:"number",className:"w-full py-2 text-sm text-slate-900 sm:mt-0"})]}),(0,t.jsxs)("div",{className:"max-w-4xl justify-between align-baseline sm:flex sm:gap-4",children:[(0,t.jsx)(h.default,{name:"originalWorkId",id:"original_work_id",label:e({id:"original_work_id",defaultMessage:"Original Work Id"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",autoComplete:"on",className:"w-full py-2 text-sm text-slate-900 sm:mt-0"}),(0,t.jsx)(C.default,{label:e({id:"scheduled",defaultMessage:"Scheduled"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",className:"w-full py-2 text-sm text-slate-900 dark:text-slate-200 dark:bg-slate-900 sm:mt-0 ",containerClassName:"w-full py-2 text-sm text-slate-900 sm:mt-0",name:"scheduled",locale:s,showTimeInput:!0,timeFormat:"p",timeIntervals:15})]}),(0,t.jsx)("div",{children:(0,t.jsx)(I.default,{name:"input",className:"dark:text-slate-200",labelClassName:"font-sm text-slate-500 mb-1",label:e({id:"input",defaultMessage:"Input"})})})]}),r(d.IRoleAction.ManageWorker)&&(0,t.jsx)("div",{className:"border-t-slate-100 border-t dark:border-t-slate-700 space-y-6 bg-slate-50 dark:bg-slate-900 p-5 text-right",children:(0,t.jsx)(b.default,{label:e({id:"add_work",defaultMessage:"Add Work"})})})]})})},S=({selectedView:e=null})=>"add_work"===e?(0,t.jsx)(W,{}):"allocate_work"===e?(0,t.jsx)(_,{}):(0,t.jsx)(W,{});e.s(["default",0,()=>{let{formatMessage:e}=(0,a.useIntl)(),i=[{id:"add_work",title:e({id:"add_work",defaultMessage:"Add Work"})},{id:"allocate_work",title:e({id:"allocate_work",defaultMessage:"Allocate Work"})}];return(0,t.jsxs)("div",{className:"mt-6 max-w-4xl",children:[(0,t.jsx)(s.default,{}),(0,t.jsx)(l.default,{headerText:e({id:"work_management_setting_list_header",defaultMessage:"Work Management Settings"})}),(0,t.jsx)(r.default,{tabItems:i,defaultTab:"add_work",children:(0,t.jsx)(S,{})})]})}],59914)},95260,(e,t,a)=>{let s="/works/management";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(59914)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([s])})},48761,e=>{e.v(t=>Promise.all(["static/chunks/0a1flay6uksa2.js"].map(t=>e.l(t))).then(()=>t(93594)))},28805,e=>{e.v(t=>Promise.all(["static/chunks/0htfk2vj7m.9j.js"].map(t=>e.l(t))).then(()=>t(79466)))}]);
|