@unchainedshop/admin-ui 4.8.25 → 4.8.26
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/{s9JIgzylJK2SpeEcB-ZI9 → _TiowajLX6Z3MYsLPNgxd}/_buildManifest.js +62 -62
- package/out/_next/static/chunks/{24-r3ko_zk9tx.js → 0-b63f3cwlt9h.js} +2 -2
- package/out/_next/static/chunks/{3_oq57mmti33y.js → 0-uh133eqcz6n.js} +1 -1
- package/out/_next/static/chunks/{0__v8hox2f99w.js → 0172idn4wi-am.js} +3 -3
- package/out/_next/static/chunks/{1snnkviatd2ds.js → 018n9pot9f5uf.js} +3 -3
- package/out/_next/static/chunks/{41mslgyvxwsej.js → 036jcj4okqca4.js} +1 -1
- package/out/_next/static/chunks/{33ndyf-aam_my.js → 03_e40kzqm4nj.js} +2 -2
- package/out/_next/static/chunks/{2yg0gngo1ojjy.js → 05dtc5uryjkmn.js} +2 -2
- package/out/_next/static/chunks/{3laksuh0hh5mn.js → 0989pcuje2j55.js} +1 -1
- package/out/_next/static/chunks/{3t-bgqidpfg2p.js → 0_ngi84ak813x.js} +1 -1
- package/out/_next/static/chunks/{0oikfwsuec7ab.js → 0ac5zzn3zeki5.js} +7 -7
- package/out/_next/static/chunks/{02az0am12ruz7.js → 0c1eqd9oamcur.js} +2 -2
- package/out/_next/static/chunks/{0uh50ckof6hx6.js → 0c2th4nk1xlfd.js} +2 -2
- package/out/_next/static/chunks/{1xp6bya-kpwfn.js → 0cotrfgh1n2cx.js} +1 -1
- package/out/_next/static/chunks/{2vhrwf77u-txi.js → 0dtahnosgvou_.js} +3 -3
- package/out/_next/static/chunks/{3dstnf59_lxjk.js → 0dvf7ltl55td_.js} +2 -2
- package/out/_next/static/chunks/{0rhsm8uteluq4.js → 0k433cermb_mg.js} +11 -11
- package/out/_next/static/chunks/0kkky_8vhaeaz.js +227 -0
- package/out/_next/static/chunks/{2jz9857mvxw1f.js → 0l3hp2c6_v3vu.js} +2 -2
- package/out/_next/static/chunks/{2zclrb781ijot.js → 0o16fnqhx30be.js} +2 -2
- package/out/_next/static/chunks/{2516fxi011eb1.js → 0pecsk3c09b19.js} +2 -2
- package/out/_next/static/chunks/{2k53q5l-08fs3.js → 0pj6j2o4ya0xs.js} +4 -4
- package/out/_next/static/chunks/{079edy40hhkgj.js → 0w2zoz_fn_wha.js} +4 -4
- package/out/_next/static/chunks/{3ahj8n2x-j99f.js → 0yhj5b33a-dp1.js} +4 -4
- package/out/_next/static/chunks/1-uz_5-063kh9.js +188 -0
- package/out/_next/static/chunks/{2jdelz2l311he.js → 10os1s66nimmi.js} +1 -1
- package/out/_next/static/chunks/119eyvb0tl4d7.js +5 -0
- package/out/_next/static/chunks/{3gls52bjnoo8q.js → 12ukdi5bzlbeo.js} +5 -5
- package/out/_next/static/chunks/{2rjnybq036zly.js → 13qk8ukzu1snm.js} +1 -1
- package/out/_next/static/chunks/{3_12z4kmwbyi-.js → 17wc5344qnib1.js} +3 -3
- package/out/_next/static/chunks/{37kg802txlx94.js → 18e-92lfg29wn.js} +9 -9
- package/out/_next/static/chunks/{277akhd6xt9p_.js → 1bhsgjj7bbftc.js} +2 -2
- package/out/_next/static/chunks/{42fk1xz9mr0ln.js → 1bp_0jnta8nj1.js} +2 -2
- package/out/_next/static/chunks/{3v80f5bymfjvd.js → 1cgxgd2cf8u3j.js} +1 -1
- package/out/_next/static/chunks/{0z3r-u3woyf5f.js → 1d951b6ed8oqn.js} +10 -10
- package/out/_next/static/chunks/{2qz0jmtz3yn40.js → 1epelh6347c59.js} +4 -4
- package/out/_next/static/chunks/{05j07j2bqc6wn.js → 1f5-j4f3irx0j.js} +1 -1
- package/out/_next/static/chunks/{32u64w60mh-qb.js → 1f536itbgwelp.js} +2 -2
- package/out/_next/static/chunks/{3uhtf9i__bqje.js → 1g57y7cq7tjcb.js} +3 -3
- package/out/_next/static/chunks/{26ie8u_ab24o8.js → 1gksg35fivk0-.js} +6 -6
- package/out/_next/static/chunks/{278a5_xfwj8t8.js → 1gv6j3dx9s71x.js} +3 -3
- package/out/_next/static/chunks/{238_wkbkqe4ru.js → 1hpx7xjq9a5bq.js} +2 -2
- package/out/_next/static/chunks/{2_bwqw4n9gs7w.js → 1hwup6qqzqzh8.js} +8 -8
- package/out/_next/static/chunks/{1jvgta6cg9f63.js → 1k703f4i1hgfy.js} +2 -2
- package/out/_next/static/chunks/{0qz4fmzwbpwoh.js → 1mo_wvf-1w8h-.js} +3 -3
- package/out/_next/static/chunks/{1_b14nl6-4wtw.js → 1o41sjh1nhwir.js} +10 -10
- package/out/_next/static/chunks/{2ckezjg_6i9cn.js → 1r0jyqmys60fw.js} +2 -2
- package/out/_next/static/chunks/1shkyosfbiwr4.js +1 -0
- package/out/_next/static/chunks/{35995k_05rugk.js → 1sivy8bkkmwxl.js} +1 -1
- package/out/_next/static/chunks/1t20r1ofch5r3.js +95 -0
- package/out/_next/static/chunks/{3ggt1tip88nkp.js → 1w_4l5gk0n27a.js} +2 -2
- package/out/_next/static/chunks/{3g0xmbqgxpj7o.js → 1weq9keqxiqpy.js} +1 -1
- package/out/_next/static/chunks/{3pu2ctsxqn-fl.js → 1zzpf1xbmchcj.js} +1 -1
- package/out/_next/static/chunks/{1wcwzekzzjwlq.js → 2-ciniqgtu96t.js} +3 -3
- package/out/_next/static/chunks/{16eus7dy50oyb.js → 20wamkfz03l6l.js} +2 -2
- package/out/_next/static/chunks/{2soyg4wxppe6n.js → 21c515liq8_sf.js} +2 -2
- package/out/_next/static/chunks/{0ij8zl3c4lqsk.js → 21lf0tu71e9e5.js} +4 -4
- package/out/_next/static/chunks/{3b1om2xaljjvh.js → 27tp9qrxhs6uf.js} +2 -2
- package/out/_next/static/chunks/{003ookoyh79au.js → 28z1z7in8-kbg.js} +1 -1
- package/out/_next/static/chunks/{3j7lb46_vxpd6.js → 2_0bsdj7k4kue.js} +2 -2
- package/out/_next/static/chunks/{1h4ckn5mxvi_8.js → 2b_lhf_533k0a.js} +3 -3
- package/out/_next/static/chunks/{1wez602sl5xny.js → 2cnc1jkfc85_x.js} +2 -2
- package/out/_next/static/chunks/{3_t_mtrxdgcpx.js → 2cwzp5h99c8es.js} +2 -2
- package/out/_next/static/chunks/{2wzimhcqk94rf.js → 2ecq8dhsm2eu1.js} +9 -9
- package/out/_next/static/chunks/{0x1q_xhnh-ahz.js → 2eo4m196-t6ed.js} +2 -2
- package/out/_next/static/chunks/{0id72_o51c3wx.js → 2f8qzo__ksyu7.js} +2 -2
- package/out/_next/static/chunks/{127vzg0pzx801.js → 2g0f0awj5p2qc.js} +2 -2
- package/out/_next/static/chunks/2i5uj5i4z-xu8.js +188 -0
- package/out/_next/static/chunks/2j6cph79-th54.js +7 -0
- package/out/_next/static/chunks/{0frvaf7psqfd-.js → 2o7wjpjbr5vau.js} +2 -2
- package/out/_next/static/chunks/{0feoncudhgyln.js → 2ocwu5vbc5r34.js} +1 -1
- package/out/_next/static/chunks/{43sqln4o-0sbu.js → 2p6deqdf8dlo0.js} +12 -12
- package/out/_next/static/chunks/{2ify0_8_eg6i8.js → 2rw-r9fvx6t4y.js} +2 -2
- package/out/_next/static/chunks/{3rskgltgatai7.js → 2skxi0oqka3ef.js} +4 -4
- package/out/_next/static/chunks/{0v97keszuu2ye.js → 2v0koj5wv-png.js} +2 -2
- package/out/_next/static/chunks/{36wixjyjpx2kp.js → 2vhqw66fy605y.js} +3 -3
- package/out/_next/static/chunks/{2lgzijzm81h5i.js → 2vy8ae-zwwle1.js} +3 -3
- package/out/_next/static/chunks/{3kniyx4tjrwz2.js → 2y9z7y6i5cawj.js} +3 -3
- package/out/_next/static/chunks/{2blfxtx5ec8hc.js → 2z5b35yv3i6aq.js} +2 -2
- package/out/_next/static/chunks/{0je6_km9r9fy3.js → 3-av_88np5f5_.js} +2 -2
- package/out/_next/static/chunks/{2pg_bikt9gdq9.js → 3-h5nu9jontfy.js} +2 -2
- package/out/_next/static/chunks/{2t8p0kniibzz0.js → 3-hdz4_6asex-.js} +2 -2
- package/out/_next/static/chunks/{2tn-d1ba-rexw.js → 30zp6-w17u9rt.js} +2 -2
- package/out/_next/static/chunks/{03lxylxrb--nr.js → 31_pg1fxqgdfx.js} +5 -5
- package/out/_next/static/chunks/{15qb_nbftdngf.js → 31j6x_qgtn-7j.js} +2 -2
- package/out/_next/static/chunks/{1530qvlw3k6-r.js → 363ng2l8o_bee.js} +1 -1
- package/out/_next/static/chunks/378867ti5yucc.js +3 -0
- package/out/_next/static/chunks/{3zscwdzfvog6_.js → 37phwvegpccj0.js} +3 -3
- package/out/_next/static/chunks/{1b350uot8ezcc.js → 37rq4vcfobv9x.js} +2 -2
- package/out/_next/static/chunks/{095k8hpxw-xbn.js → 3dbskin37ha12.js} +2 -2
- package/out/_next/static/chunks/{3h7u-1nejqqtb.js → 3opuxnw_w3yb5.js} +1 -1
- package/out/_next/static/chunks/{3oa7poag0otjv.js → 3s18b668qqa87.js} +3 -3
- package/out/_next/static/chunks/{41zg0kqiqrk1p.js → 3u3tcrl7wxrzi.js} +2 -2
- package/out/_next/static/chunks/{40xs4068rcf2a.js → 3wm88ukxj8u46.js} +2 -2
- package/out/_next/static/chunks/{17oybfz0_w57_.js → 404_8bnljpu18.js} +3 -3
- package/out/_next/static/chunks/{1ape9gu816w4y.js → 40bl8g3_13c59.js} +2 -2
- package/out/_next/static/chunks/{2gkktfamtwne7.js → 40v94fy15qxej.js} +2 -2
- package/out/_next/static/chunks/{1rjt4878-6jpq.js → 4188i5qe83m24.js} +9 -9
- package/out/_next/static/chunks/{39yikkubmtgqz.js → 458tg2eg5h8j5.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3kacigl3rdfnv.js → turbopack-06hufy_7yovzw.js} +1 -1
- package/out/_next/static/chunks/{turbopack-36iwsu47bxp33.js → turbopack-08u3rgl_09tb7.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3krde2-jab_v8.js → turbopack-0bljt1tp0zt4q.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3r3t_benyr3e0.js → turbopack-0bp88aylp19tu.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3ooud-27zb68g.js → turbopack-0cbhwv4g0ak0q.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1w4scyf6vpol5.js → turbopack-0cu-maxx6s175.js} +1 -1
- package/out/_next/static/chunks/{turbopack-44xximgh8gm_p.js → turbopack-0hpk8f7-2xoz3.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2b1khd4qbo4g_.js → turbopack-0i_uv1p6_dyo-.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3qzwty6gp2rp6.js → turbopack-0j92hsdmi8k6p.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3aomwkxdb1xcd.js → turbopack-0jijm5fs2d3pa.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2zkucstqs-uas.js → turbopack-0la8grv9f6bxn.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1nyeff6x3-pse.js → turbopack-0nlhzx_9rg6_p.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1_gglg3dpcrb9.js → turbopack-0rt_vkqrb6ykb.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2qna1gaz_m8yg.js → turbopack-0ywznohf-p_-1.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1sbxamm6uhuz5.js → turbopack-10l1gows-lyo9.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0zgk48rvr1ido.js → turbopack-13nb0axu41yph.js} +1 -1
- package/out/_next/static/chunks/{turbopack-43nacpl_z8zcq.js → turbopack-148_1qw3wae7d.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3it6l3zzhdo9p.js → turbopack-14qzcqdgveoel.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0f19levb05q7i.js → turbopack-14zydki2yqyd3.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0_rgd_u2af3ru.js → turbopack-15x3cqzaaew93.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1us_6ukt1jk6-.js → turbopack-1bnaj5x8w5m6z.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0u-4g74a2wwm5.js → turbopack-1ddkj8w1l0b4_.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2sq3dp63iy9sc.js → turbopack-1gbk68s3o1ulv.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3_5cgc46h8vnh.js → turbopack-1k2h3st-nygbo.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2gd0kzz1h3hib.js → turbopack-1r4g2xna7gckz.js} +1 -1
- package/out/_next/static/chunks/{turbopack-24dn7pallse3c.js → turbopack-1w2r6t0rjz8pp.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0hqshmcyjb59f.js → turbopack-1w3-o4vpw_tgq.js} +1 -1
- package/out/_next/static/chunks/{turbopack-37s27yvm7wqhz.js → turbopack-22r1qh8g6munp.js} +1 -1
- package/out/_next/static/chunks/{turbopack-21wpv-2yjj_2k.js → turbopack-252a5rlyrq9fk.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1hmv9sdzrieda.js → turbopack-25bgi6hb6qg8w.js} +1 -1
- package/out/_next/static/chunks/{turbopack-17yo0nf9vriak.js → turbopack-25hv3ltvy0wos.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3q_fl6svn9p5v.js → turbopack-26z9lzkojt-cx.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2xi5gbt97onhy.js → turbopack-272y7gt3ncsq7.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0ck9bx9i_235a.js → turbopack-2b14t7jx5tgn7.js} +1 -1
- package/out/_next/static/chunks/{turbopack-411xj3ahxrm7x.js → turbopack-2cvqtdfi5z-33.js} +1 -1
- package/out/_next/static/chunks/{turbopack-211nr22unb6cu.js → turbopack-2h3q2k9k2riyq.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3hwp80k71dv65.js → turbopack-2ihmy6dk991x4.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2oib8sz_w6hep.js → turbopack-2jpit5njafpgz.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1tt8er6zdq9n9.js → turbopack-2xm-84om1nxe3.js} +1 -1
- package/out/_next/static/chunks/{turbopack-34ki5zh3v60qq.js → turbopack-3-84r4h6w7ztq.js} +1 -1
- package/out/_next/static/chunks/{turbopack-31mn29md8ofl3.js → turbopack-3-kzs1xrhesa8.js} +1 -1
- package/out/_next/static/chunks/{turbopack-392y78oof71z2.js → turbopack-328hjoqts5fe-.js} +1 -1
- package/out/_next/static/chunks/{turbopack-028t8_6fqod-c.js → turbopack-34cd6px36-_ae.js} +1 -1
- package/out/_next/static/chunks/{turbopack-086jsmtsvtaec.js → turbopack-34gjko7_04blz.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3_-rg9lmp4h0e.js → turbopack-34rebh56g2zjd.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2jz68yzgjx-xl.js → turbopack-3591lq9bl5zm-.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2uzg6ysxx6cf5.js → turbopack-3aujkr72l5znq.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1pld3p02m7h8c.js → turbopack-3cnuj1vf45306.js} +1 -1
- package/out/_next/static/chunks/{turbopack-33hnf_-ch94yh.js → turbopack-3ma-qc75tctdd.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2y9g0j3n6bhv8.js → turbopack-3mxiudedhdbib.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3xna14y4x6294.js → turbopack-3n_3uj335tm0n.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2e4vvf8-6h7il.js → turbopack-3np05fneli2gv.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3vj5mrb50cv96.js → turbopack-3opb94dwpz7bg.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3en5il6z7-a36.js → turbopack-3ouyppea8jp6k.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1xt9y6imo4y47.js → turbopack-3qmjh91o7wte5.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2tvzuc7lcku4v.js → turbopack-3seov_dvv8im-.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0ougsw-ryfqrq.js → turbopack-3uov6gvwwuxmx.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3p5qeedyziucp.js → turbopack-3x5pttfv2qlpw.js} +1 -1
- package/out/_next/static/chunks/{turbopack-3vozqs8tej365.js → turbopack-3xem4akmi9at9.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2u4m169_39_qy.js → turbopack-3z9v3oefxw81i.js} +1 -1
- package/out/_next/static/chunks/{turbopack-2gq3nwbp7cjh5.js → turbopack-3zxsk_hikkrwx.js} +1 -1
- package/out/_next/static/chunks/{turbopack-0bro3_e58rpi5.js → turbopack-42akqkt4irsps.js} +1 -1
- package/out/_next/static/chunks/{turbopack-1hmil1x9p77h_.js → turbopack-44bpgib3rn1s2.js} +1 -1
- 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 +1 -1
- package/dist/chunk-45H2WVIC.js +0 -51
- package/dist/chunk-4VNS5WPM.js +0 -37
- package/dist/chunk-54DKBWXV.js +0 -33
- package/dist/chunk-6TXD4TA7.js +0 -1196
- package/dist/chunk-BGCKJQGS.js +0 -58
- package/dist/chunk-BYXBJQAS.js +0 -1
- package/dist/chunk-EJDZRZSZ.js +0 -59
- package/dist/chunk-ELPURWDC.js +0 -75
- package/dist/chunk-IAQPLRXZ.js +0 -16
- package/dist/chunk-ILYPJE4N.js +0 -57
- package/dist/chunk-IXBMHOB5.js +0 -13
- package/dist/chunk-KH5MK6ZW.js +0 -18
- package/dist/chunk-NT7RB7AK.js +0 -70
- package/dist/chunk-OKGJ6HDE.js +0 -26
- package/dist/chunk-Q6S3LBUF.js +0 -180
- package/dist/chunk-QNLGYFV7.js +0 -22
- package/dist/chunk-RAQV2GYF.js +0 -70
- package/dist/chunk-RHUFQVKL.js +0 -514
- package/dist/chunk-RVG6IOFC.js +0 -11
- package/dist/chunk-SRAAKMWY.js +0 -39
- package/dist/chunk-UFYR5WZT.js +0 -165
- package/dist/chunk-UXG7EYHC.js +0 -614
- package/dist/chunk-VDKQGOMV.js +0 -840
- package/dist/chunk-XHOCXPD5.js +0 -9
- package/dist/chunk-XJBPMIC4.js +0 -284
- package/dist/chunk-YO6PT7KD.js +0 -13
- package/dist/chunk-YSKZE2KN.js +0 -652
- package/dist/components/ui/Accordion/Accordion.d.ts +0 -11
- package/dist/components/ui/Accordion/Accordion.d.ts.map +0 -1
- package/dist/components/ui/Accordion/AccordionHeader.d.ts +0 -6
- package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +0 -1
- package/dist/components/ui/Accordion/AccordionItem.d.ts +0 -11
- package/dist/components/ui/Accordion/AccordionItem.d.ts.map +0 -1
- package/dist/components/ui/ActiveInActive.d.ts +0 -10
- package/dist/components/ui/ActiveInActive.d.ts.map +0 -1
- package/dist/components/ui/AnimatedCounter.d.ts +0 -7
- package/dist/components/ui/AnimatedCounter.d.ts.map +0 -1
- package/dist/components/ui/Badge.d.ts +0 -10
- package/dist/components/ui/Badge.d.ts.map +0 -1
- package/dist/components/ui/BreadCrumbs.d.ts +0 -7
- package/dist/components/ui/BreadCrumbs.d.ts.map +0 -1
- package/dist/components/ui/Button.d.ts +0 -36
- package/dist/components/ui/Button.d.ts.map +0 -1
- package/dist/components/ui/CopyableText.d.ts +0 -5
- package/dist/components/ui/CopyableText.d.ts.map +0 -1
- package/dist/components/ui/DateInput.d.ts +0 -15
- package/dist/components/ui/DateInput.d.ts.map +0 -1
- package/dist/components/ui/DateRangeFilterInput.d.ts +0 -4
- package/dist/components/ui/DateRangeFilterInput.d.ts.map +0 -1
- package/dist/components/ui/DetailHeader.d.ts +0 -6
- package/dist/components/ui/DetailHeader.d.ts.map +0 -1
- package/dist/components/ui/DraggableIcon.d.ts +0 -3
- package/dist/components/ui/DraggableIcon.d.ts.map +0 -1
- package/dist/components/ui/ErrorBoundary.d.ts +0 -18
- package/dist/components/ui/ErrorBoundary.d.ts.map +0 -1
- package/dist/components/ui/ErrorFallback.d.ts +0 -6
- package/dist/components/ui/ErrorFallback.d.ts.map +0 -1
- package/dist/components/ui/HelpText.d.ts +0 -11
- package/dist/components/ui/HelpText.d.ts.map +0 -1
- package/dist/components/ui/ImageWithFallback.d.ts +0 -7
- package/dist/components/ui/ImageWithFallback.d.ts.map +0 -1
- package/dist/components/ui/InfoTextBanner.d.ts +0 -6
- package/dist/components/ui/InfoTextBanner.d.ts.map +0 -1
- package/dist/components/ui/JSONView.d.ts +0 -6
- package/dist/components/ui/JSONView.d.ts.map +0 -1
- package/dist/components/ui/ListHeader.d.ts +0 -6
- package/dist/components/ui/ListHeader.d.ts.map +0 -1
- package/dist/components/ui/Loading.d.ts +0 -3
- package/dist/components/ui/Loading.d.ts.map +0 -1
- package/dist/components/ui/NoData.d.ts +0 -7
- package/dist/components/ui/NoData.d.ts.map +0 -1
- package/dist/components/ui/NoImage.d.ts +0 -7
- package/dist/components/ui/NoImage.d.ts.map +0 -1
- package/dist/components/ui/NoImageSvg.d.ts +0 -8
- package/dist/components/ui/NoImageSvg.d.ts.map +0 -1
- package/dist/components/ui/PageHeader.d.ts +0 -11
- package/dist/components/ui/PageHeader.d.ts.map +0 -1
- package/dist/components/ui/Pagination.d.ts +0 -8
- package/dist/components/ui/Pagination.d.ts.map +0 -1
- package/dist/components/ui/Portal/Portal.d.ts +0 -16
- package/dist/components/ui/Portal/Portal.d.ts.map +0 -1
- package/dist/components/ui/Portal/Portal.types.d.ts +0 -16
- package/dist/components/ui/Portal/Portal.types.d.ts.map +0 -1
- package/dist/components/ui/SaveAndCancelButtons.d.ts +0 -10
- package/dist/components/ui/SaveAndCancelButtons.d.ts.map +0 -1
- package/dist/components/ui/SearchField.d.ts +0 -7
- package/dist/components/ui/SearchField.d.ts.map +0 -1
- package/dist/components/ui/Tab.d.ts +0 -18
- package/dist/components/ui/Tab.d.ts.map +0 -1
- package/dist/components/ui/Tag/TagInput.d.ts +0 -14
- package/dist/components/ui/Tag/TagInput.d.ts.map +0 -1
- package/dist/components/ui/Tag/TagList.d.ts +0 -8
- package/dist/components/ui/Tag/TagList.d.ts.map +0 -1
- package/dist/components/ui/Tag/TagListForm.d.ts +0 -8
- package/dist/components/ui/Tag/TagListForm.d.ts.map +0 -1
- package/dist/components/ui/Toggle.d.ts +0 -11
- package/dist/components/ui/Toggle.d.ts.map +0 -1
- package/dist/components/ui/ToolTip.d.ts +0 -7
- package/dist/components/ui/ToolTip.d.ts.map +0 -1
- package/dist/components/ui/card.d.ts +0 -9
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/chart.d.ts +0 -42
- package/dist/components/ui/chart.d.ts.map +0 -1
- package/dist/components/ui/form/CheckboxField.d.ts +0 -4
- package/dist/components/ui/form/CheckboxField.d.ts.map +0 -1
- package/dist/components/ui/form/ChoicesField.d.ts +0 -12
- package/dist/components/ui/form/ChoicesField.d.ts.map +0 -1
- package/dist/components/ui/form/Combobox.d.ts +0 -20
- package/dist/components/ui/form/Combobox.d.ts.map +0 -1
- package/dist/components/ui/form/DatePickerField.d.ts +0 -4
- package/dist/components/ui/form/DatePickerField.d.ts.map +0 -1
- package/dist/components/ui/form/EmailField.d.ts +0 -7
- package/dist/components/ui/form/EmailField.d.ts.map +0 -1
- package/dist/components/ui/form/FieldWithHelp.d.ts +0 -10
- package/dist/components/ui/form/FieldWithHelp.d.ts.map +0 -1
- package/dist/components/ui/form/FieldWrapper.d.ts +0 -8
- package/dist/components/ui/form/FieldWrapper.d.ts.map +0 -1
- package/dist/components/ui/form/FormErrors.d.ts +0 -6
- package/dist/components/ui/form/FormErrors.d.ts.map +0 -1
- package/dist/components/ui/form/JSONAreaField.d.ts +0 -7
- package/dist/components/ui/form/JSONAreaField.d.ts.map +0 -1
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts +0 -8
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +0 -1
- package/dist/components/ui/form/PasswordField.d.ts +0 -3
- package/dist/components/ui/form/PasswordField.d.ts.map +0 -1
- package/dist/components/ui/form/SelectField.d.ts +0 -11
- package/dist/components/ui/form/SelectField.d.ts.map +0 -1
- package/dist/components/ui/form/SubmitButton.d.ts +0 -9
- package/dist/components/ui/form/SubmitButton.d.ts.map +0 -1
- package/dist/components/ui/form/TagInputField.d.ts +0 -6
- package/dist/components/ui/form/TagInputField.d.ts.map +0 -1
- package/dist/components/ui/form/TextAreaField.d.ts +0 -8
- package/dist/components/ui/form/TextAreaField.d.ts.map +0 -1
- package/dist/components/ui/form/TextField.d.ts +0 -10
- package/dist/components/ui/form/TextField.d.ts.map +0 -1
- package/dist/components/ui/form/index.d.ts +0 -17
- package/dist/components/ui/form/index.d.ts.map +0 -1
- package/dist/components/ui/icons.d.ts +0 -4
- package/dist/components/ui/icons.d.ts.map +0 -1
- package/dist/components/ui/index.d.ts +0 -41
- package/dist/components/ui/index.d.ts.map +0 -1
- package/dist/form.js +0 -30102
- package/dist/gql/types.d.ts +0 -17209
- package/dist/gql/types.d.ts.map +0 -1
- package/dist/hooks.js +0 -41
- package/dist/lib/utils.d.ts +0 -3
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/modal.js +0 -114
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts +0 -8
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +0 -1
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +0 -7
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +0 -1
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +0 -3
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +0 -1
- package/dist/modules/accounts/fragment/UserFragment.d.ts +0 -3
- package/dist/modules/accounts/fragment/UserFragment.d.ts.map +0 -1
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts +0 -10
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +0 -1
- package/dist/modules/accounts/hooks/useUsersCount.d.ts +0 -8
- package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +0 -1
- package/dist/modules/accounts.js +0 -1013
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +0 -8
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +0 -1
- package/dist/modules/assortment.js +0 -1121
- package/dist/modules/common/components/AppContext.d.ts +0 -18
- package/dist/modules/common/components/AppContext.d.ts.map +0 -1
- package/dist/modules/common/components/FormWrapper.d.ts +0 -8
- package/dist/modules/common/components/FormWrapper.d.ts.map +0 -1
- package/dist/modules/common/components/ThemeWrapper.d.ts +0 -10
- package/dist/modules/common/components/ThemeWrapper.d.ts.map +0 -1
- package/dist/modules/common/data/iso-codes.d.ts +0 -4
- package/dist/modules/common/data/iso-codes.d.ts.map +0 -1
- package/dist/modules/common/data/miscellaneous.d.ts +0 -51
- package/dist/modules/common/data/miscellaneous.d.ts.map +0 -1
- package/dist/modules/common/fragments/AddressFragment.d.ts +0 -3
- package/dist/modules/common/fragments/AddressFragment.d.ts.map +0 -1
- package/dist/modules/common/hooks/useApp.d.ts +0 -11
- package/dist/modules/common/hooks/useApp.d.ts.map +0 -1
- package/dist/modules/common/hooks/useCSVExport.d.ts +0 -10
- package/dist/modules/common/hooks/useCSVExport.d.ts.map +0 -1
- package/dist/modules/common/hooks/useCSVImport.d.ts +0 -18
- package/dist/modules/common/hooks/useCSVImport.d.ts.map +0 -1
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +0 -5
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +0 -1
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +0 -10
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +0 -1
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts +0 -23
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +0 -1
- package/dist/modules/common/hooks/useLocalStorage.d.ts +0 -3
- package/dist/modules/common/hooks/useLocalStorage.d.ts.map +0 -1
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts +0 -25
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +0 -1
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +0 -16
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +0 -1
- package/dist/modules/common/hooks/useOutsideClick.d.ts +0 -3
- package/dist/modules/common/hooks/useOutsideClick.d.ts.map +0 -1
- package/dist/modules/common/hooks/usePortal.d.ts +0 -20
- package/dist/modules/common/hooks/usePortal.d.ts.map +0 -1
- package/dist/modules/common/hooks/useShopConfiguration.d.ts +0 -8
- package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +0 -1
- package/dist/modules/common/hooks/useShopInfo.d.ts +0 -41
- package/dist/modules/common/hooks/useShopInfo.d.ts.map +0 -1
- package/dist/modules/common/hooks/useStatusTypes.d.ts +0 -10
- package/dist/modules/common/hooks/useStatusTypes.d.ts.map +0 -1
- package/dist/modules/common/hooks/useSystemRoles.d.ts +0 -7
- package/dist/modules/common/hooks/useSystemRoles.d.ts.map +0 -1
- package/dist/modules/common/hooks/useTheme.d.ts +0 -7
- package/dist/modules/common/hooks/useTheme.d.ts.map +0 -1
- package/dist/modules/common/utils/deBounce.d.ts +0 -3
- package/dist/modules/common/utils/deBounce.d.ts.map +0 -1
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts +0 -7
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +0 -1
- package/dist/modules/common/utils/formatUsername.d.ts +0 -3
- package/dist/modules/common/utils/formatUsername.d.ts.map +0 -1
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +0 -30
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +0 -1
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts +0 -4
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +0 -1
- package/dist/modules/common/utils/useFormatDateTime.d.ts +0 -7
- package/dist/modules/common/utils/useFormatDateTime.d.ts.map +0 -1
- package/dist/modules/common/utils/utils.d.ts +0 -21
- package/dist/modules/common/utils/utils.d.ts.map +0 -1
- package/dist/modules/country/fragments/CountryFragment.d.ts +0 -3
- package/dist/modules/country/fragments/CountryFragment.d.ts.map +0 -1
- package/dist/modules/country/hooks/useCountries.d.ts +0 -22
- package/dist/modules/country/hooks/useCountries.d.ts.map +0 -1
- package/dist/modules/country.js +0 -108
- package/dist/modules/currency.js +0 -119
- package/dist/modules/delivery-provider.js +0 -269
- package/dist/modules/enrollment.js +0 -353
- package/dist/modules/event.js +0 -123
- package/dist/modules/filter.js +0 -448
- package/dist/modules/forms/components/Form.d.ts +0 -8
- package/dist/modules/forms/components/Form.d.ts.map +0 -1
- package/dist/modules/forms/hooks/useField.d.ts +0 -35
- package/dist/modules/forms/hooks/useField.d.ts.map +0 -1
- package/dist/modules/forms/hooks/useForm.d.ts +0 -44
- package/dist/modules/forms/hooks/useForm.d.ts.map +0 -1
- package/dist/modules/forms/hooks/useFormContext.d.ts +0 -3
- package/dist/modules/forms/hooks/useFormContext.d.ts.map +0 -1
- package/dist/modules/forms/lib/FormContext.d.ts +0 -13
- package/dist/modules/forms/lib/FormContext.d.ts.map +0 -1
- package/dist/modules/forms/lib/clean.d.ts +0 -3
- package/dist/modules/forms/lib/clean.d.ts.map +0 -1
- package/dist/modules/forms/lib/validators.d.ts +0 -20
- package/dist/modules/forms/lib/validators.d.ts.map +0 -1
- package/dist/modules/language/fragments/LanguageFragment.d.ts +0 -3
- package/dist/modules/language/fragments/LanguageFragment.d.ts.map +0 -1
- package/dist/modules/language/hooks/useLanguages.d.ts +0 -19
- package/dist/modules/language/hooks/useLanguages.d.ts.map +0 -1
- package/dist/modules/language.js +0 -106
- package/dist/modules/modal/components/AlertMessage.d.ts +0 -9
- package/dist/modules/modal/components/AlertMessage.d.ts.map +0 -1
- package/dist/modules/modal/components/DangerMessage.d.ts +0 -12
- package/dist/modules/modal/components/DangerMessage.d.ts.map +0 -1
- package/dist/modules/modal/components/ImportResultMessage.d.ts +0 -14
- package/dist/modules/modal/components/ImportResultMessage.d.ts.map +0 -1
- package/dist/modules/modal/components/Modal.d.ts +0 -10
- package/dist/modules/modal/components/Modal.d.ts.map +0 -1
- package/dist/modules/modal/components/ModalWrapper.d.ts +0 -6
- package/dist/modules/modal/components/ModalWrapper.d.ts.map +0 -1
- package/dist/modules/modal/hooks/useModal.d.ts +0 -7
- package/dist/modules/modal/hooks/useModal.d.ts.map +0 -1
- package/dist/modules/modal/utils/ModalContext.d.ts +0 -9
- package/dist/modules/modal/utils/ModalContext.d.ts.map +0 -1
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts +0 -3
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +0 -1
- package/dist/modules/order/fragments/OrderFragment.d.ts +0 -3
- package/dist/modules/order/fragments/OrderFragment.d.ts.map +0 -1
- package/dist/modules/order/hooks/useOrders.d.ts +0 -46
- package/dist/modules/order/hooks/useOrders.d.ts.map +0 -1
- package/dist/modules/order.js +0 -563
- package/dist/modules/payment-providers.js +0 -206
- package/dist/modules/product/hooks/useProductsCount.d.ts +0 -8
- package/dist/modules/product/hooks/useProductsCount.d.ts.map +0 -1
- package/dist/modules/product-review.js +0 -251
- package/dist/modules/product.js +0 -1929
- package/dist/modules/quotation.js +0 -297
- package/dist/modules/token.js +0 -143
- package/dist/modules/warehousing-providers.js +0 -206
- package/dist/modules/work/fragments/WorkFragment.d.ts +0 -3
- package/dist/modules/work/fragments/WorkFragment.d.ts.map +0 -1
- package/dist/modules/work/hooks/useAddWork.d.ts +0 -6
- package/dist/modules/work/hooks/useAddWork.d.ts.map +0 -1
- package/dist/modules/work/hooks/useWork.d.ts +0 -32
- package/dist/modules/work/hooks/useWork.d.ts.map +0 -1
- package/dist/modules/work.js +0 -308
- package/dist/plugins.js +0 -8
- package/dist/providers.js +0 -6
- package/dist/sdk/hooks.d.ts +0 -9
- package/dist/sdk/hooks.d.ts.map +0 -1
- package/dist/sdk/modal.d.ts +0 -7
- package/dist/sdk/modal.d.ts.map +0 -1
- package/dist/sdk/plugins.d.ts +0 -67
- package/dist/sdk/plugins.d.ts.map +0 -1
- package/dist/sdk/providers.d.ts +0 -5
- package/dist/sdk/providers.d.ts.map +0 -1
- package/dist/sdk/theme.d.ts +0 -26
- package/dist/sdk/theme.d.ts.map +0 -1
- package/dist/theme.js +0 -34
- package/dist/ui.js +0 -21540
- package/out/_next/static/chunks/0-kffmdf1lcxk.js +0 -1
- package/out/_next/static/chunks/0axbsyx70ajmu.js +0 -5
- package/out/_next/static/chunks/0dlg390tt3o1_.js +0 -107
- package/out/_next/static/chunks/0ki8gfs3dlslv.js +0 -3
- package/out/_next/static/chunks/140i5f2n-78cg.js +0 -7
- package/out/_next/static/chunks/1qx9z7kl93y0b.js +0 -188
- package/out/_next/static/chunks/25mevljp4o01b.js +0 -188
- package/out/_next/static/chunks/2qhvt2n_whgz1.js +0 -227
- package/out/manifest.json +0 -48
- /package/out/_next/static/{s9JIgzylJK2SpeEcB-ZI9 → _TiowajLX6Z3MYsLPNgxd}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{s9JIgzylJK2SpeEcB-ZI9 → _TiowajLX6Z3MYsLPNgxd}/_ssgManifest.js +0 -0
|
@@ -1,1121 +0,0 @@
|
|
|
1
|
-
import { parseUniqueId, parseSlug } from '../chunk-IXBMHOB5.js';
|
|
2
|
-
import { useApp_default } from '../chunk-BGCKJQGS.js';
|
|
3
|
-
import { ProductBriefFragment_default } from '../chunk-EJDZRZSZ.js';
|
|
4
|
-
import '../chunk-ELPURWDC.js';
|
|
5
|
-
import { FilterFragment_default } from '../chunk-OKGJ6HDE.js';
|
|
6
|
-
import { parseMeta_default } from '../chunk-YO6PT7KD.js';
|
|
7
|
-
import '../chunk-RAQV2GYF.js';
|
|
8
|
-
import '../chunk-54DKBWXV.js';
|
|
9
|
-
import { useConfirmMediaUpload_default, PUTMedia_default } from '../chunk-45H2WVIC.js';
|
|
10
|
-
import '../chunk-UFYR5WZT.js';
|
|
11
|
-
import { useUnchainedContext_default } from '../chunk-IAQPLRXZ.js';
|
|
12
|
-
import '../chunk-4VNS5WPM.js';
|
|
13
|
-
import { gql } from '@apollo/client';
|
|
14
|
-
import { useMutation, useQuery } from '@apollo/client/react';
|
|
15
|
-
|
|
16
|
-
var AddAssortmentFilterMutation = gql`
|
|
17
|
-
mutation AddAssortmentFilter(
|
|
18
|
-
$assortmentId: ID!
|
|
19
|
-
$filterId: ID!
|
|
20
|
-
$tags: [LowerCaseString!]
|
|
21
|
-
) {
|
|
22
|
-
addAssortmentFilter(
|
|
23
|
-
assortmentId: $assortmentId
|
|
24
|
-
filterId: $filterId
|
|
25
|
-
tags: $tags
|
|
26
|
-
) {
|
|
27
|
-
_id
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
`;
|
|
31
|
-
var useAddAssortmentFilter = () => {
|
|
32
|
-
const [addAssortmentFilterMutation] = useMutation(AddAssortmentFilterMutation);
|
|
33
|
-
const addAssortmentFilter = async ({
|
|
34
|
-
assortmentId,
|
|
35
|
-
filterId,
|
|
36
|
-
tags
|
|
37
|
-
}) => {
|
|
38
|
-
return addAssortmentFilterMutation({
|
|
39
|
-
variables: { assortmentId, filterId, tags },
|
|
40
|
-
refetchQueries: ["AssortmentFilters"]
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
return {
|
|
44
|
-
addAssortmentFilter
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
var useAddAssortmentFilter_default = useAddAssortmentFilter;
|
|
48
|
-
var AddAssortmentLinkMutation = gql`
|
|
49
|
-
mutation AddAssortmentLink(
|
|
50
|
-
$parentAssortmentId: ID!
|
|
51
|
-
$childAssortmentId: ID!
|
|
52
|
-
$tags: [LowerCaseString!]
|
|
53
|
-
) {
|
|
54
|
-
addAssortmentLink(
|
|
55
|
-
parentAssortmentId: $parentAssortmentId
|
|
56
|
-
childAssortmentId: $childAssortmentId
|
|
57
|
-
tags: $tags
|
|
58
|
-
) {
|
|
59
|
-
_id
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
`;
|
|
63
|
-
var useAddAssortmentLink = () => {
|
|
64
|
-
const [addAssortmentLinkMutation] = useMutation(AddAssortmentLinkMutation);
|
|
65
|
-
const addAssortmentLink = async ({
|
|
66
|
-
parentAssortmentId,
|
|
67
|
-
childAssortmentId,
|
|
68
|
-
tags
|
|
69
|
-
}) => {
|
|
70
|
-
return addAssortmentLinkMutation({
|
|
71
|
-
variables: { parentAssortmentId, childAssortmentId, tags },
|
|
72
|
-
refetchQueries: ["AssortmentLinks"]
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
return {
|
|
76
|
-
addAssortmentLink
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
var useAddAssortmentLink_default = useAddAssortmentLink;
|
|
80
|
-
var PrepareAssortmentMediaUploadMutation = gql`
|
|
81
|
-
mutation PrepareAssortmentMediaUpload(
|
|
82
|
-
$mediaName: String!
|
|
83
|
-
$assortmentId: ID!
|
|
84
|
-
) {
|
|
85
|
-
prepareAssortmentMediaUpload(
|
|
86
|
-
mediaName: $mediaName
|
|
87
|
-
assortmentId: $assortmentId
|
|
88
|
-
) {
|
|
89
|
-
_id
|
|
90
|
-
putURL
|
|
91
|
-
expires
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
`;
|
|
95
|
-
var useAddAssortmentMedia = () => {
|
|
96
|
-
const [prepareAssortmentMediaUploadMutation] = useMutation(PrepareAssortmentMediaUploadMutation);
|
|
97
|
-
const { confirmMediaUpload } = useConfirmMediaUpload_default({
|
|
98
|
-
refetchQueries: ["Assortment"]
|
|
99
|
-
});
|
|
100
|
-
const addAssortmentMedia = async ({ assortmentId, media }) => {
|
|
101
|
-
const { data } = await prepareAssortmentMediaUploadMutation({
|
|
102
|
-
variables: { assortmentId, mediaName: media.name }
|
|
103
|
-
});
|
|
104
|
-
const { prepareAssortmentMediaUpload } = data;
|
|
105
|
-
await PUTMedia_default(media, prepareAssortmentMediaUpload.putURL);
|
|
106
|
-
await confirmMediaUpload({
|
|
107
|
-
mediaUploadTicketId: prepareAssortmentMediaUpload._id,
|
|
108
|
-
size: media?.size,
|
|
109
|
-
type: media?.type
|
|
110
|
-
});
|
|
111
|
-
};
|
|
112
|
-
return {
|
|
113
|
-
addAssortmentMedia
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
var useAddAssortmentMedia_default = useAddAssortmentMedia;
|
|
117
|
-
var AddAssortmentProductMutation = gql`
|
|
118
|
-
mutation AddAssortmentProduct(
|
|
119
|
-
$assortmentId: ID!
|
|
120
|
-
$productId: ID!
|
|
121
|
-
$tags: [LowerCaseString!]
|
|
122
|
-
) {
|
|
123
|
-
addAssortmentProduct(
|
|
124
|
-
assortmentId: $assortmentId
|
|
125
|
-
productId: $productId
|
|
126
|
-
tags: $tags
|
|
127
|
-
) {
|
|
128
|
-
_id
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
`;
|
|
132
|
-
var useAddAssortmentProduct = () => {
|
|
133
|
-
const [addAssortmentProductMutation] = useMutation(AddAssortmentProductMutation);
|
|
134
|
-
const addAssortmentProduct = async ({
|
|
135
|
-
productId,
|
|
136
|
-
assortmentId,
|
|
137
|
-
tags
|
|
138
|
-
}) => {
|
|
139
|
-
return addAssortmentProductMutation({
|
|
140
|
-
variables: { productId, assortmentId, tags },
|
|
141
|
-
refetchQueries: ["AssortmentProducts"]
|
|
142
|
-
});
|
|
143
|
-
};
|
|
144
|
-
return {
|
|
145
|
-
addAssortmentProduct
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
var useAddAssortmentProduct_default = useAddAssortmentProduct;
|
|
149
|
-
var AssortmentFragment = gql`
|
|
150
|
-
fragment AssortmentFragment on Assortment {
|
|
151
|
-
_id
|
|
152
|
-
isActive
|
|
153
|
-
created
|
|
154
|
-
updated
|
|
155
|
-
sequence
|
|
156
|
-
isRoot
|
|
157
|
-
tags
|
|
158
|
-
texts(forceLocale: $forceLocale) {
|
|
159
|
-
_id
|
|
160
|
-
slug
|
|
161
|
-
title
|
|
162
|
-
subtitle
|
|
163
|
-
description
|
|
164
|
-
}
|
|
165
|
-
childrenCount
|
|
166
|
-
media {
|
|
167
|
-
_id
|
|
168
|
-
tags
|
|
169
|
-
file {
|
|
170
|
-
_id
|
|
171
|
-
url
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
`;
|
|
176
|
-
var AssortmentFragment_default = AssortmentFragment;
|
|
177
|
-
|
|
178
|
-
// src/modules/assortment/hooks/useAssortment.ts
|
|
179
|
-
var GetAssortmentQuery = (inlineFragment = "") => gql`
|
|
180
|
-
query Assortment($assortmentId: ID, $slug: String, $forceLocale: Locale) {
|
|
181
|
-
assortment(assortmentId: $assortmentId, slug: $slug) {
|
|
182
|
-
...AssortmentFragment
|
|
183
|
-
${inlineFragment}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
${AssortmentFragment_default}
|
|
187
|
-
`;
|
|
188
|
-
var useAssortment = ({
|
|
189
|
-
assortmentId: id = null,
|
|
190
|
-
slug = null
|
|
191
|
-
} = {}) => {
|
|
192
|
-
const parsedId = parseUniqueId(slug);
|
|
193
|
-
const { customProperties, hydrateFragment } = useUnchainedContext_default();
|
|
194
|
-
const { selectedLocale } = useApp_default();
|
|
195
|
-
const { data, loading, error } = useQuery(
|
|
196
|
-
GetAssortmentQuery(customProperties?.Assortment),
|
|
197
|
-
{
|
|
198
|
-
skip: !id && !slug,
|
|
199
|
-
variables: {
|
|
200
|
-
assortmentId: id || parsedId,
|
|
201
|
-
forceLocale: selectedLocale
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
);
|
|
205
|
-
const assortment = data?.assortment;
|
|
206
|
-
const extendedData = hydrateFragment(
|
|
207
|
-
customProperties?.Assortment,
|
|
208
|
-
assortment
|
|
209
|
-
);
|
|
210
|
-
return {
|
|
211
|
-
loading,
|
|
212
|
-
error,
|
|
213
|
-
assortment,
|
|
214
|
-
extendedData
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
var useAssortment_default = useAssortment;
|
|
218
|
-
var AssortmentChildrenFragment = gql`
|
|
219
|
-
fragment AssortmentChildrenFragment on Assortment {
|
|
220
|
-
_id
|
|
221
|
-
texts {
|
|
222
|
-
_id
|
|
223
|
-
slug
|
|
224
|
-
title
|
|
225
|
-
subtitle
|
|
226
|
-
}
|
|
227
|
-
childrenCount
|
|
228
|
-
}
|
|
229
|
-
`;
|
|
230
|
-
var AssortmentChildrenFragment_default = AssortmentChildrenFragment;
|
|
231
|
-
|
|
232
|
-
// src/modules/assortment/hooks/useAssortmentChildren.ts
|
|
233
|
-
var AssortmentChildrenQuery = gql`
|
|
234
|
-
query AssortmentChildren(
|
|
235
|
-
$slugs: [String!]
|
|
236
|
-
$includeInactive: Boolean
|
|
237
|
-
$includeLeaves: Boolean
|
|
238
|
-
) {
|
|
239
|
-
assortments(
|
|
240
|
-
slugs: $slugs
|
|
241
|
-
includeInactive: $includeInactive
|
|
242
|
-
includeLeaves: $includeLeaves
|
|
243
|
-
) {
|
|
244
|
-
...AssortmentChildrenFragment
|
|
245
|
-
children {
|
|
246
|
-
...AssortmentChildrenFragment
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
${AssortmentChildrenFragment_default}
|
|
251
|
-
`;
|
|
252
|
-
var useAssortmentChildren = ({
|
|
253
|
-
slugs,
|
|
254
|
-
includeInactive = false,
|
|
255
|
-
includeLeaves = false,
|
|
256
|
-
forceLocale
|
|
257
|
-
}) => {
|
|
258
|
-
const normalizedSlug = slugs?.map((slug) => parseSlug(slug));
|
|
259
|
-
const { data, loading, error } = useQuery(
|
|
260
|
-
AssortmentChildrenQuery,
|
|
261
|
-
{
|
|
262
|
-
variables: {
|
|
263
|
-
slugs: normalizedSlug,
|
|
264
|
-
includeInactive,
|
|
265
|
-
includeLeaves
|
|
266
|
-
},
|
|
267
|
-
context: {
|
|
268
|
-
headers: {
|
|
269
|
-
forceLocale
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
);
|
|
274
|
-
const assortments = data?.assortments || [];
|
|
275
|
-
return { assortments, loading, error };
|
|
276
|
-
};
|
|
277
|
-
var useAssortmentChildren_default = useAssortmentChildren;
|
|
278
|
-
var AssortmentFiltersQuery = gql`
|
|
279
|
-
query AssortmentFilters($assortmentId: ID, $slug: String) {
|
|
280
|
-
assortment(assortmentId: $assortmentId, slug: $slug) {
|
|
281
|
-
_id
|
|
282
|
-
filterAssignments {
|
|
283
|
-
_id
|
|
284
|
-
sortKey
|
|
285
|
-
tags
|
|
286
|
-
filter {
|
|
287
|
-
...FilterFragment
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
${FilterFragment_default}
|
|
293
|
-
`;
|
|
294
|
-
var useAssortmentFilters = ({
|
|
295
|
-
assortmentId: id = null,
|
|
296
|
-
slug = null
|
|
297
|
-
} = {}) => {
|
|
298
|
-
const parsedId = parseUniqueId(slug);
|
|
299
|
-
const { data, loading, error } = useQuery(
|
|
300
|
-
AssortmentFiltersQuery,
|
|
301
|
-
{
|
|
302
|
-
skip: !id && !parsedId,
|
|
303
|
-
variables: {
|
|
304
|
-
assortmentId: id || parsedId
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
);
|
|
308
|
-
const assortment = data?.assortment;
|
|
309
|
-
const assortmentFilters = assortment?.filterAssignments || [];
|
|
310
|
-
return {
|
|
311
|
-
loading,
|
|
312
|
-
error,
|
|
313
|
-
assortmentFilters
|
|
314
|
-
};
|
|
315
|
-
};
|
|
316
|
-
var useAssortmentFilters_default = useAssortmentFilters;
|
|
317
|
-
var AssortmentLinksQuery = gql`
|
|
318
|
-
query AssortmentLinks(
|
|
319
|
-
$assortmentId: ID
|
|
320
|
-
$slug: String
|
|
321
|
-
$forceLocale: Locale
|
|
322
|
-
) {
|
|
323
|
-
assortment(assortmentId: $assortmentId, slug: $slug) {
|
|
324
|
-
_id
|
|
325
|
-
linkedAssortments {
|
|
326
|
-
_id
|
|
327
|
-
sortKey
|
|
328
|
-
parent {
|
|
329
|
-
...AssortmentFragment
|
|
330
|
-
}
|
|
331
|
-
child {
|
|
332
|
-
...AssortmentFragment
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
${AssortmentFragment_default}
|
|
338
|
-
`;
|
|
339
|
-
var useAssortmentLinks = ({ assortmentId: id = null, slug = null } = {}) => {
|
|
340
|
-
const parsedId = parseUniqueId(slug);
|
|
341
|
-
const { selectedLocale } = useApp_default();
|
|
342
|
-
const { data, loading, error } = useQuery(
|
|
343
|
-
AssortmentLinksQuery,
|
|
344
|
-
{
|
|
345
|
-
skip: !id && !parsedId,
|
|
346
|
-
variables: {
|
|
347
|
-
assortmentId: id || parsedId,
|
|
348
|
-
forceLocale: selectedLocale
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
);
|
|
352
|
-
const assortment = data?.assortment;
|
|
353
|
-
const linkedAssortments = assortment?.linkedAssortments || [];
|
|
354
|
-
return {
|
|
355
|
-
loading,
|
|
356
|
-
error,
|
|
357
|
-
linkedAssortments
|
|
358
|
-
};
|
|
359
|
-
};
|
|
360
|
-
var useAssortmentLinks_default = useAssortmentLinks;
|
|
361
|
-
var AssortmentMediaQuery = gql`
|
|
362
|
-
query AssortmentMedia($assortmentId: ID, $slug: String) {
|
|
363
|
-
assortment(assortmentId: $assortmentId, slug: $slug) {
|
|
364
|
-
_id
|
|
365
|
-
media {
|
|
366
|
-
_id
|
|
367
|
-
tags
|
|
368
|
-
texts {
|
|
369
|
-
_id
|
|
370
|
-
locale
|
|
371
|
-
title
|
|
372
|
-
subtitle
|
|
373
|
-
}
|
|
374
|
-
file {
|
|
375
|
-
_id
|
|
376
|
-
url
|
|
377
|
-
name
|
|
378
|
-
size
|
|
379
|
-
type
|
|
380
|
-
}
|
|
381
|
-
sortKey
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
`;
|
|
386
|
-
var useAssortmentMedia = ({
|
|
387
|
-
assortmentId: id = null,
|
|
388
|
-
slug = null
|
|
389
|
-
} = {}) => {
|
|
390
|
-
const parsedId = parseUniqueId(slug);
|
|
391
|
-
const { data, loading, error } = useQuery(
|
|
392
|
-
AssortmentMediaQuery,
|
|
393
|
-
{
|
|
394
|
-
skip: !id && !parsedId,
|
|
395
|
-
variables: {
|
|
396
|
-
assortmentId: id || parsedId
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
);
|
|
400
|
-
return {
|
|
401
|
-
loading,
|
|
402
|
-
error,
|
|
403
|
-
assortmentMedia: data?.assortment?.media || []
|
|
404
|
-
};
|
|
405
|
-
};
|
|
406
|
-
var useAssortmentMedia_default = useAssortmentMedia;
|
|
407
|
-
var AssortmentPathsQuery = gql`
|
|
408
|
-
query AssortmentPaths($assortmentId: ID!) {
|
|
409
|
-
assortment(assortmentId: $assortmentId) {
|
|
410
|
-
assortmentPaths {
|
|
411
|
-
links {
|
|
412
|
-
assortmentId
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
`;
|
|
418
|
-
var useAssortmentPaths = ({
|
|
419
|
-
assortmentId
|
|
420
|
-
}) => {
|
|
421
|
-
const { data, loading, error } = useQuery(
|
|
422
|
-
AssortmentPathsQuery,
|
|
423
|
-
{
|
|
424
|
-
variables: {
|
|
425
|
-
assortmentId
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
);
|
|
429
|
-
const assortmentsPaths = (data?.assortment?.assortmentPaths || [])?.flatMap(
|
|
430
|
-
({ links }) => links
|
|
431
|
-
);
|
|
432
|
-
return { assortmentsPaths, loading, error };
|
|
433
|
-
};
|
|
434
|
-
var useAssortmentPaths_default = useAssortmentPaths;
|
|
435
|
-
var AssortmentProductsQuery = gql`
|
|
436
|
-
query AssortmentProducts(
|
|
437
|
-
$assortmentId: ID
|
|
438
|
-
$slug: String
|
|
439
|
-
$forceLocale: Locale
|
|
440
|
-
) {
|
|
441
|
-
assortment(assortmentId: $assortmentId, slug: $slug) {
|
|
442
|
-
_id
|
|
443
|
-
productAssignments {
|
|
444
|
-
_id
|
|
445
|
-
sortKey
|
|
446
|
-
tags
|
|
447
|
-
product {
|
|
448
|
-
...ProductBriefFragment
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
${ProductBriefFragment_default}
|
|
454
|
-
`;
|
|
455
|
-
var useAssortmentProducts = ({
|
|
456
|
-
assortmentId: id = null,
|
|
457
|
-
slug = null
|
|
458
|
-
} = {}) => {
|
|
459
|
-
const { selectedLocale } = useApp_default();
|
|
460
|
-
const parsedId = parseUniqueId(slug);
|
|
461
|
-
const { data, loading, error } = useQuery(
|
|
462
|
-
AssortmentProductsQuery,
|
|
463
|
-
{
|
|
464
|
-
skip: !id && !parsedId,
|
|
465
|
-
variables: {
|
|
466
|
-
assortmentId: id || parsedId,
|
|
467
|
-
forceLocale: selectedLocale
|
|
468
|
-
},
|
|
469
|
-
context: {
|
|
470
|
-
headers: {
|
|
471
|
-
forceLocale: selectedLocale
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
);
|
|
476
|
-
const assortment = data?.assortment;
|
|
477
|
-
const linkedProducts = assortment?.productAssignments || [];
|
|
478
|
-
return {
|
|
479
|
-
loading,
|
|
480
|
-
error,
|
|
481
|
-
linkedProducts
|
|
482
|
-
};
|
|
483
|
-
};
|
|
484
|
-
var useAssortmentProducts_default = useAssortmentProducts;
|
|
485
|
-
var AssortmentsQuery = gql`
|
|
486
|
-
query Assortments(
|
|
487
|
-
$queryString: String
|
|
488
|
-
$tags: [LowerCaseString!]
|
|
489
|
-
$slugs: [String!]
|
|
490
|
-
$limit: Int
|
|
491
|
-
$offset: Int
|
|
492
|
-
$includeInactive: Boolean
|
|
493
|
-
$includeLeaves: Boolean
|
|
494
|
-
$sort: [SortOptionInput!]
|
|
495
|
-
$forceLocale: Locale
|
|
496
|
-
) {
|
|
497
|
-
assortments(
|
|
498
|
-
queryString: $queryString
|
|
499
|
-
tags: $tags
|
|
500
|
-
slugs: $slugs
|
|
501
|
-
limit: $limit
|
|
502
|
-
offset: $offset
|
|
503
|
-
includeInactive: $includeInactive
|
|
504
|
-
includeLeaves: $includeLeaves
|
|
505
|
-
sort: $sort
|
|
506
|
-
) {
|
|
507
|
-
...AssortmentFragment
|
|
508
|
-
linkedAssortments {
|
|
509
|
-
child {
|
|
510
|
-
_id
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
assortmentsCount(
|
|
515
|
-
tags: $tags
|
|
516
|
-
slugs: $slugs
|
|
517
|
-
includeInactive: $includeInactive
|
|
518
|
-
includeLeaves: $includeLeaves
|
|
519
|
-
queryString: $queryString
|
|
520
|
-
)
|
|
521
|
-
}
|
|
522
|
-
${AssortmentFragment_default}
|
|
523
|
-
`;
|
|
524
|
-
var useAssortments = ({
|
|
525
|
-
queryString = "",
|
|
526
|
-
tags = null,
|
|
527
|
-
slugs = null,
|
|
528
|
-
limit = 20,
|
|
529
|
-
offset = 0,
|
|
530
|
-
includeInactive = true,
|
|
531
|
-
includeLeaves = false,
|
|
532
|
-
sort: sortOptions = [],
|
|
533
|
-
forceLocale = ""
|
|
534
|
-
} = {}) => {
|
|
535
|
-
const { data, loading, error, fetchMore, client } = useQuery(AssortmentsQuery, {
|
|
536
|
-
variables: {
|
|
537
|
-
queryString,
|
|
538
|
-
tags,
|
|
539
|
-
slugs: slugs || null,
|
|
540
|
-
limit,
|
|
541
|
-
offset,
|
|
542
|
-
includeInactive,
|
|
543
|
-
includeLeaves,
|
|
544
|
-
sort: sortOptions.length ? sortOptions : [{ key: "sequence", value: "ASC" }],
|
|
545
|
-
forceLocale
|
|
546
|
-
},
|
|
547
|
-
context: {
|
|
548
|
-
headers: { forceLocale }
|
|
549
|
-
}
|
|
550
|
-
});
|
|
551
|
-
const assortments = data?.assortments || [];
|
|
552
|
-
const assortmentsCount = data?.assortmentsCount;
|
|
553
|
-
const hasMore = assortments?.length < assortmentsCount;
|
|
554
|
-
const loadMore = () => {
|
|
555
|
-
fetchMore({
|
|
556
|
-
variables: { offset: assortments?.length }
|
|
557
|
-
});
|
|
558
|
-
};
|
|
559
|
-
return {
|
|
560
|
-
loading,
|
|
561
|
-
error,
|
|
562
|
-
assortmentsCount,
|
|
563
|
-
hasMore,
|
|
564
|
-
assortments: data?.assortments || [],
|
|
565
|
-
loadMore,
|
|
566
|
-
client
|
|
567
|
-
};
|
|
568
|
-
};
|
|
569
|
-
var useAssortments_default = useAssortments;
|
|
570
|
-
var AssortmentsCountQuery = gql`
|
|
571
|
-
query AssortmentsCount(
|
|
572
|
-
$queryString: String
|
|
573
|
-
$tags: [LowerCaseString!]
|
|
574
|
-
$includeInactive: Boolean
|
|
575
|
-
$includeLeaves: Boolean
|
|
576
|
-
) {
|
|
577
|
-
assortmentsCount(
|
|
578
|
-
tags: $tags
|
|
579
|
-
includeInactive: $includeInactive
|
|
580
|
-
includeLeaves: $includeLeaves
|
|
581
|
-
queryString: $queryString
|
|
582
|
-
)
|
|
583
|
-
}
|
|
584
|
-
`;
|
|
585
|
-
var useAssortmentsCount = ({
|
|
586
|
-
queryString = "",
|
|
587
|
-
tags = null,
|
|
588
|
-
includeInactive = true,
|
|
589
|
-
includeLeaves = false
|
|
590
|
-
}) => {
|
|
591
|
-
const { data, loading, error } = useQuery(AssortmentsCountQuery, {
|
|
592
|
-
errorPolicy: "all",
|
|
593
|
-
variables: {
|
|
594
|
-
queryString,
|
|
595
|
-
tags,
|
|
596
|
-
includeInactive,
|
|
597
|
-
includeLeaves
|
|
598
|
-
}
|
|
599
|
-
});
|
|
600
|
-
const assortmentsCount = data?.assortmentsCount;
|
|
601
|
-
return {
|
|
602
|
-
loading,
|
|
603
|
-
error,
|
|
604
|
-
assortmentsCount
|
|
605
|
-
};
|
|
606
|
-
};
|
|
607
|
-
var useAssortmentsCount_default = useAssortmentsCount;
|
|
608
|
-
var CreateAssortmentMutation = gql`
|
|
609
|
-
mutation CreateAssortment(
|
|
610
|
-
$assortment: CreateAssortmentInput!
|
|
611
|
-
$texts: [AssortmentTextInput!]
|
|
612
|
-
) {
|
|
613
|
-
createAssortment(assortment: $assortment, texts: $texts) {
|
|
614
|
-
_id
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
`;
|
|
618
|
-
var useCreateAssortment = () => {
|
|
619
|
-
const [createAssortmentMutation, { data, error, loading }] = useMutation(CreateAssortmentMutation);
|
|
620
|
-
const createAssortment = async ({
|
|
621
|
-
isRoot = false,
|
|
622
|
-
tags = [],
|
|
623
|
-
texts
|
|
624
|
-
}) => {
|
|
625
|
-
return createAssortmentMutation({
|
|
626
|
-
variables: { assortment: { isRoot, tags }, texts },
|
|
627
|
-
refetchQueries: [
|
|
628
|
-
"Assortments",
|
|
629
|
-
"TranslatedAssortmentTexts",
|
|
630
|
-
"ShopStatus",
|
|
631
|
-
"ShopInfo"
|
|
632
|
-
]
|
|
633
|
-
});
|
|
634
|
-
};
|
|
635
|
-
const newAssortment = data?.createAssortment;
|
|
636
|
-
return {
|
|
637
|
-
createAssortment,
|
|
638
|
-
loading,
|
|
639
|
-
newAssortment,
|
|
640
|
-
error
|
|
641
|
-
};
|
|
642
|
-
};
|
|
643
|
-
var useCreateAssortment_default = useCreateAssortment;
|
|
644
|
-
|
|
645
|
-
// src/modules/assortment/hooks/usePrepareAssortmentImport.ts
|
|
646
|
-
var normalizeAssortmentContent = (row) => {
|
|
647
|
-
const content = {};
|
|
648
|
-
const textPrefix = "texts.";
|
|
649
|
-
Object.entries(row).forEach(([key, value]) => {
|
|
650
|
-
if (!key.startsWith(textPrefix)) return;
|
|
651
|
-
const [, locale, field] = key.split(".");
|
|
652
|
-
content[locale] ||= {};
|
|
653
|
-
content[locale][field] = value || "";
|
|
654
|
-
});
|
|
655
|
-
Object.keys(content).forEach((locale) => {
|
|
656
|
-
if (!Object.values(content[locale]).every((v) => !v)) {
|
|
657
|
-
delete content[locale];
|
|
658
|
-
}
|
|
659
|
-
});
|
|
660
|
-
return Object.keys(content).length ? content : null;
|
|
661
|
-
};
|
|
662
|
-
var assortmentMapper = (row) => {
|
|
663
|
-
const content = normalizeAssortmentContent(row);
|
|
664
|
-
const meta = parseMeta_default(row["meta"]);
|
|
665
|
-
return {
|
|
666
|
-
_id: row["_id"] || void 0,
|
|
667
|
-
sequence: typeof row["sequence"] === "string" ? parseInt(row["sequence"] || "0", 10) : row["sequence"] || 0,
|
|
668
|
-
isActive: row["isActive"] === "true",
|
|
669
|
-
isRoot: row["isRoot"] === "true",
|
|
670
|
-
meta,
|
|
671
|
-
tags: row["tags"] ? row["tags"].split(";") : [],
|
|
672
|
-
content
|
|
673
|
-
};
|
|
674
|
-
};
|
|
675
|
-
var buildAssortmentEvents = ({
|
|
676
|
-
children,
|
|
677
|
-
products,
|
|
678
|
-
filters,
|
|
679
|
-
...assortment
|
|
680
|
-
}) => {
|
|
681
|
-
return {
|
|
682
|
-
entity: "assortment",
|
|
683
|
-
operation: "CREATE",
|
|
684
|
-
payload: {
|
|
685
|
-
_id: assortment._id,
|
|
686
|
-
specification: {
|
|
687
|
-
...assortment
|
|
688
|
-
},
|
|
689
|
-
products,
|
|
690
|
-
filters,
|
|
691
|
-
children
|
|
692
|
-
}
|
|
693
|
-
};
|
|
694
|
-
};
|
|
695
|
-
var usePrepareAssortmentImport = () => {
|
|
696
|
-
const prepareAssortmentImport = async ({
|
|
697
|
-
assortmentCSV,
|
|
698
|
-
assortmentProductsCSV,
|
|
699
|
-
assortmentChildrenCSV,
|
|
700
|
-
assortmentFiltersCSV
|
|
701
|
-
}) => {
|
|
702
|
-
return assortmentCSV.map((assortment) => {
|
|
703
|
-
const assortmentProducts = (assortmentProductsCSV || [])?.filter(
|
|
704
|
-
(p) => p.assortmentId === assortment._id
|
|
705
|
-
);
|
|
706
|
-
const assortmentLinks = (assortmentChildrenCSV || [])?.filter(
|
|
707
|
-
(l) => l.assortmentId === assortment._id
|
|
708
|
-
);
|
|
709
|
-
const assortmentFilters = (assortmentFiltersCSV || [])?.filter(
|
|
710
|
-
(f) => f.assortmentId === assortment._id
|
|
711
|
-
);
|
|
712
|
-
let children = void 0;
|
|
713
|
-
let filters = void 0;
|
|
714
|
-
let products = void 0;
|
|
715
|
-
if (assortmentProducts.length) {
|
|
716
|
-
products = assortmentProducts.map(
|
|
717
|
-
({ productId, tags, sortKey, _id }) => ({
|
|
718
|
-
productId,
|
|
719
|
-
tags: tags ? tags.split(";") : [],
|
|
720
|
-
sortKey: sortKey ? Number(sortKey) : void 0,
|
|
721
|
-
_id
|
|
722
|
-
})
|
|
723
|
-
);
|
|
724
|
-
}
|
|
725
|
-
if (assortmentLinks.length) {
|
|
726
|
-
children = assortmentLinks.map(
|
|
727
|
-
({ childAssortmentId, tags, sortKey, _id }) => ({
|
|
728
|
-
assortmentId: childAssortmentId,
|
|
729
|
-
tags: tags ? tags.split(";") : [],
|
|
730
|
-
sortKey: sortKey ? Number(sortKey) : void 0,
|
|
731
|
-
_id
|
|
732
|
-
})
|
|
733
|
-
);
|
|
734
|
-
}
|
|
735
|
-
if (assortmentFilters.length) {
|
|
736
|
-
filters = assortmentFilters.map(({ filterId, tags, sortKey, _id }) => ({
|
|
737
|
-
filterId,
|
|
738
|
-
tags: tags ? tags.split(";") : [],
|
|
739
|
-
sortKey: sortKey ? Number(sortKey) : void 0,
|
|
740
|
-
_id
|
|
741
|
-
}));
|
|
742
|
-
}
|
|
743
|
-
return buildAssortmentEvents({
|
|
744
|
-
...assortmentMapper(assortment),
|
|
745
|
-
filters,
|
|
746
|
-
products,
|
|
747
|
-
children
|
|
748
|
-
});
|
|
749
|
-
});
|
|
750
|
-
};
|
|
751
|
-
return { prepareAssortmentImport };
|
|
752
|
-
};
|
|
753
|
-
var usePrepareAssortmentImport_default = usePrepareAssortmentImport;
|
|
754
|
-
var RemoveAssortmentMutation = gql`
|
|
755
|
-
mutation RemoveAssortment($assortmentId: ID!) {
|
|
756
|
-
removeAssortment(assortmentId: $assortmentId) {
|
|
757
|
-
_id
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
`;
|
|
761
|
-
var useRemoveAssortment = () => {
|
|
762
|
-
const [removeAssortmentMutation] = useMutation(RemoveAssortmentMutation);
|
|
763
|
-
const removeAssortment = async ({
|
|
764
|
-
assortmentId
|
|
765
|
-
}) => {
|
|
766
|
-
return removeAssortmentMutation({
|
|
767
|
-
variables: { assortmentId },
|
|
768
|
-
refetchQueries: ["Assortments", "Assortment", "ShopStatus", "ShopInfo"]
|
|
769
|
-
});
|
|
770
|
-
};
|
|
771
|
-
return {
|
|
772
|
-
removeAssortment
|
|
773
|
-
};
|
|
774
|
-
};
|
|
775
|
-
var useRemoveAssortment_default = useRemoveAssortment;
|
|
776
|
-
var RemoveAssortmentFilterMutation = gql`
|
|
777
|
-
mutation RemoveAssortmentFilter($assortmentFilterId: ID!) {
|
|
778
|
-
removeAssortmentFilter(assortmentFilterId: $assortmentFilterId) {
|
|
779
|
-
_id
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
`;
|
|
783
|
-
var useRemoveAssortmentFilter = () => {
|
|
784
|
-
const [removeAssortmentFilterMutation] = useMutation(RemoveAssortmentFilterMutation);
|
|
785
|
-
const removeAssortmentFilter = async ({
|
|
786
|
-
assortmentFilterId
|
|
787
|
-
}) => {
|
|
788
|
-
return removeAssortmentFilterMutation({
|
|
789
|
-
variables: { assortmentFilterId },
|
|
790
|
-
refetchQueries: ["AssortmentFilters"]
|
|
791
|
-
});
|
|
792
|
-
};
|
|
793
|
-
return {
|
|
794
|
-
removeAssortmentFilter
|
|
795
|
-
};
|
|
796
|
-
};
|
|
797
|
-
var useRemoveAssortmentFilter_default = useRemoveAssortmentFilter;
|
|
798
|
-
var RemoveAssortmentLinkMutation = gql`
|
|
799
|
-
mutation RemoveAssortmentLink($assortmentLinkId: ID!) {
|
|
800
|
-
removeAssortmentLink(assortmentLinkId: $assortmentLinkId) {
|
|
801
|
-
_id
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
`;
|
|
805
|
-
var useRemoveAssortmentLink = () => {
|
|
806
|
-
const [removeAssortmentLinkMutation] = useMutation(RemoveAssortmentLinkMutation);
|
|
807
|
-
const removeAssortmentLink = async ({
|
|
808
|
-
assortmentLinkId
|
|
809
|
-
}) => {
|
|
810
|
-
return removeAssortmentLinkMutation({
|
|
811
|
-
variables: { assortmentLinkId },
|
|
812
|
-
refetchQueries: ["AssortmentLinks"]
|
|
813
|
-
});
|
|
814
|
-
};
|
|
815
|
-
return {
|
|
816
|
-
removeAssortmentLink
|
|
817
|
-
};
|
|
818
|
-
};
|
|
819
|
-
var useRemoveAssortmentLink_default = useRemoveAssortmentLink;
|
|
820
|
-
var RemoveAssortmentMediaMutation = gql`
|
|
821
|
-
mutation RemoveAssortmentMedia($assortmentMediaId: ID!) {
|
|
822
|
-
removeAssortmentMedia(assortmentMediaId: $assortmentMediaId) {
|
|
823
|
-
_id
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
`;
|
|
827
|
-
var useRemoveAssortmentMedia = () => {
|
|
828
|
-
const [removeAssortmentMediaMutation] = useMutation(RemoveAssortmentMediaMutation);
|
|
829
|
-
const removeAssortmentMedia = async ({
|
|
830
|
-
assortmentMediaId
|
|
831
|
-
}) => {
|
|
832
|
-
return removeAssortmentMediaMutation({
|
|
833
|
-
variables: { assortmentMediaId },
|
|
834
|
-
refetchQueries: ["AssortmentMedia"]
|
|
835
|
-
});
|
|
836
|
-
};
|
|
837
|
-
return {
|
|
838
|
-
removeAssortmentMedia
|
|
839
|
-
};
|
|
840
|
-
};
|
|
841
|
-
var useRemoveAssortmentMedia_default = useRemoveAssortmentMedia;
|
|
842
|
-
var RemoveAssortmentProductMutation = gql`
|
|
843
|
-
mutation RemoveAssortmentProduct($assortmentProductId: ID!) {
|
|
844
|
-
removeAssortmentProduct(assortmentProductId: $assortmentProductId) {
|
|
845
|
-
_id
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
`;
|
|
849
|
-
var useRemoveAssortmentProduct = () => {
|
|
850
|
-
const [removeAssortmentProductMutation] = useMutation(RemoveAssortmentProductMutation);
|
|
851
|
-
const removeAssortmentProduct = async ({
|
|
852
|
-
assortmentProductId
|
|
853
|
-
}) => {
|
|
854
|
-
return removeAssortmentProductMutation({
|
|
855
|
-
variables: { assortmentProductId },
|
|
856
|
-
refetchQueries: ["AssortmentProducts"]
|
|
857
|
-
});
|
|
858
|
-
};
|
|
859
|
-
return {
|
|
860
|
-
removeAssortmentProduct
|
|
861
|
-
};
|
|
862
|
-
};
|
|
863
|
-
var useRemoveAssortmentProduct_default = useRemoveAssortmentProduct;
|
|
864
|
-
var ReorderAssortmentFiltersMutation = gql`
|
|
865
|
-
mutation ReorderAssortmentFilters(
|
|
866
|
-
$sortKeys: [ReorderAssortmentFilterInput!]!
|
|
867
|
-
) {
|
|
868
|
-
reorderAssortmentFilters(sortKeys: $sortKeys) {
|
|
869
|
-
_id
|
|
870
|
-
sortKey
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
`;
|
|
874
|
-
var useReorderAssortmentFilters = () => {
|
|
875
|
-
const [reorderAssortmentFiltersMutation] = useMutation(ReorderAssortmentFiltersMutation);
|
|
876
|
-
const reorderAssortmentFilters = async ({
|
|
877
|
-
sortKeys
|
|
878
|
-
}) => {
|
|
879
|
-
return reorderAssortmentFiltersMutation({
|
|
880
|
-
variables: { sortKeys },
|
|
881
|
-
refetchQueries: ["AssortmentFilters"]
|
|
882
|
-
});
|
|
883
|
-
};
|
|
884
|
-
return {
|
|
885
|
-
reorderAssortmentFilters
|
|
886
|
-
};
|
|
887
|
-
};
|
|
888
|
-
var useReorderAssortmentFilters_default = useReorderAssortmentFilters;
|
|
889
|
-
var ReorderAssortmentLinkMutation = gql`
|
|
890
|
-
mutation ReorderAssortmentLinks($sortKeys: [ReorderAssortmentLinkInput!]!) {
|
|
891
|
-
reorderAssortmentLinks(sortKeys: $sortKeys) {
|
|
892
|
-
_id
|
|
893
|
-
sortKey
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
`;
|
|
897
|
-
var useReorderAssortmentLink = () => {
|
|
898
|
-
const [reorderAssortmentLinkMutation] = useMutation(ReorderAssortmentLinkMutation);
|
|
899
|
-
const reorderAssortmentLink = async ({
|
|
900
|
-
sortKeys
|
|
901
|
-
}) => {
|
|
902
|
-
return reorderAssortmentLinkMutation({
|
|
903
|
-
variables: { sortKeys },
|
|
904
|
-
refetchQueries: ["AssortmentLinks"]
|
|
905
|
-
});
|
|
906
|
-
};
|
|
907
|
-
return {
|
|
908
|
-
reorderAssortmentLink
|
|
909
|
-
};
|
|
910
|
-
};
|
|
911
|
-
var useReorderAssortmentLinks_default = useReorderAssortmentLink;
|
|
912
|
-
var ReorderAssortmentMediaMutation = gql`
|
|
913
|
-
mutation ReorderAssortmentMedia($sortKeys: [ReorderAssortmentMediaInput!]!) {
|
|
914
|
-
reorderAssortmentMedia(sortKeys: $sortKeys) {
|
|
915
|
-
_id
|
|
916
|
-
sortKey
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
`;
|
|
920
|
-
var useReorderAssortmentMedia = () => {
|
|
921
|
-
const [reorderAssortmentMediaMutation] = useMutation(ReorderAssortmentMediaMutation);
|
|
922
|
-
const reorderAssortmentMedia = async ({
|
|
923
|
-
sortKeys
|
|
924
|
-
}) => {
|
|
925
|
-
return reorderAssortmentMediaMutation({
|
|
926
|
-
variables: { sortKeys },
|
|
927
|
-
refetchQueries: ["AssortmentMedia"]
|
|
928
|
-
});
|
|
929
|
-
};
|
|
930
|
-
return {
|
|
931
|
-
reorderAssortmentMedia
|
|
932
|
-
};
|
|
933
|
-
};
|
|
934
|
-
var useReorderAssortmentMedia_default = useReorderAssortmentMedia;
|
|
935
|
-
var ReorderAssortmentProductsMutation = gql`
|
|
936
|
-
mutation ReorderAssortmentProducts(
|
|
937
|
-
$sortKeys: [ReorderAssortmentProductInput!]!
|
|
938
|
-
) {
|
|
939
|
-
reorderAssortmentProducts(sortKeys: $sortKeys) {
|
|
940
|
-
_id
|
|
941
|
-
sortKey
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
`;
|
|
945
|
-
var useReorderAssortmentProducts = () => {
|
|
946
|
-
const [reorderAssortmentProductsMutation] = useMutation(ReorderAssortmentProductsMutation);
|
|
947
|
-
const reorderAssortmentProducts = async ({
|
|
948
|
-
sortKeys
|
|
949
|
-
}) => {
|
|
950
|
-
return reorderAssortmentProductsMutation({
|
|
951
|
-
variables: { sortKeys },
|
|
952
|
-
refetchQueries: ["AssortmentProducts"]
|
|
953
|
-
});
|
|
954
|
-
};
|
|
955
|
-
return {
|
|
956
|
-
reorderAssortmentProducts
|
|
957
|
-
};
|
|
958
|
-
};
|
|
959
|
-
var useReorderAssortmentProducts_default = useReorderAssortmentProducts;
|
|
960
|
-
var AssortmentMediaTextsFragment = gql`
|
|
961
|
-
fragment AssortmentMediaTextsFragment on AssortmentMediaTexts {
|
|
962
|
-
_id
|
|
963
|
-
locale
|
|
964
|
-
title
|
|
965
|
-
subtitle
|
|
966
|
-
}
|
|
967
|
-
`;
|
|
968
|
-
var AssortmentMediaTextsFragment_default = AssortmentMediaTextsFragment;
|
|
969
|
-
|
|
970
|
-
// src/modules/assortment/hooks/useTranslatedAssortmentMediaTexts.ts
|
|
971
|
-
var TranslatedAssortmentMediaTextsQuery = gql`
|
|
972
|
-
query TranslatedAssortmentMediaTexts($assortmentMediaId: ID!) {
|
|
973
|
-
translatedAssortmentMediaTexts(assortmentMediaId: $assortmentMediaId) {
|
|
974
|
-
...AssortmentMediaTextsFragment
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
${AssortmentMediaTextsFragment_default}
|
|
978
|
-
`;
|
|
979
|
-
var useTranslatedAssortmentMediaTexts = ({
|
|
980
|
-
assortmentMediaId = null
|
|
981
|
-
}) => {
|
|
982
|
-
const { data, loading, error } = useQuery(TranslatedAssortmentMediaTextsQuery, {
|
|
983
|
-
skip: !assortmentMediaId,
|
|
984
|
-
variables: {
|
|
985
|
-
assortmentMediaId
|
|
986
|
-
}
|
|
987
|
-
});
|
|
988
|
-
const translatedAssortmentMediaTexts = data?.translatedAssortmentMediaTexts || [];
|
|
989
|
-
return {
|
|
990
|
-
loading,
|
|
991
|
-
error,
|
|
992
|
-
translatedAssortmentMediaTexts
|
|
993
|
-
};
|
|
994
|
-
};
|
|
995
|
-
var useTranslatedAssortmentMediaTexts_default = useTranslatedAssortmentMediaTexts;
|
|
996
|
-
var AssortmentTextsFragment = gql`
|
|
997
|
-
fragment AssortmentTextsFragment on AssortmentTexts {
|
|
998
|
-
_id
|
|
999
|
-
locale
|
|
1000
|
-
slug
|
|
1001
|
-
title
|
|
1002
|
-
subtitle
|
|
1003
|
-
description
|
|
1004
|
-
}
|
|
1005
|
-
`;
|
|
1006
|
-
var AssortmentTextsFragment_default = AssortmentTextsFragment;
|
|
1007
|
-
|
|
1008
|
-
// src/modules/assortment/hooks/useTranslatedAssortmentTexts.ts
|
|
1009
|
-
var TranslatedAssortmentTextsQuery = gql`
|
|
1010
|
-
query TranslatedAssortmentTexts($assortmentId: ID!) {
|
|
1011
|
-
translatedAssortmentTexts(assortmentId: $assortmentId) {
|
|
1012
|
-
...AssortmentTextsFragment
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
${AssortmentTextsFragment_default}
|
|
1016
|
-
`;
|
|
1017
|
-
var useTranslatedAssortmentTexts = ({
|
|
1018
|
-
assortmentId = null
|
|
1019
|
-
}) => {
|
|
1020
|
-
const { data, loading, error } = useQuery(TranslatedAssortmentTextsQuery, {
|
|
1021
|
-
skip: !assortmentId,
|
|
1022
|
-
variables: {
|
|
1023
|
-
assortmentId
|
|
1024
|
-
}
|
|
1025
|
-
});
|
|
1026
|
-
const translatedAssortmentTexts = data?.translatedAssortmentTexts || [];
|
|
1027
|
-
return {
|
|
1028
|
-
loading,
|
|
1029
|
-
error,
|
|
1030
|
-
translatedAssortmentTexts
|
|
1031
|
-
};
|
|
1032
|
-
};
|
|
1033
|
-
var useTranslatedAssortmentTexts_default = useTranslatedAssortmentTexts;
|
|
1034
|
-
var UpdateAssortmentMutation = gql`
|
|
1035
|
-
mutation UpdateAssortment(
|
|
1036
|
-
$assortment: UpdateAssortmentInput!
|
|
1037
|
-
$assortmentId: ID!
|
|
1038
|
-
) {
|
|
1039
|
-
updateAssortment(assortment: $assortment, assortmentId: $assortmentId) {
|
|
1040
|
-
_id
|
|
1041
|
-
}
|
|
1042
|
-
}
|
|
1043
|
-
`;
|
|
1044
|
-
var useUpdateAssortment = () => {
|
|
1045
|
-
const [updateAssortmentMutation] = useMutation(UpdateAssortmentMutation);
|
|
1046
|
-
const updateAssortment = async ({
|
|
1047
|
-
assortmentId,
|
|
1048
|
-
assortment: { isRoot, tags, sequence, isActive }
|
|
1049
|
-
}) => {
|
|
1050
|
-
return updateAssortmentMutation({
|
|
1051
|
-
variables: {
|
|
1052
|
-
assortment: { isRoot, tags, sequence, isActive },
|
|
1053
|
-
assortmentId
|
|
1054
|
-
},
|
|
1055
|
-
refetchQueries: ["Assortments", "Assortment"]
|
|
1056
|
-
});
|
|
1057
|
-
};
|
|
1058
|
-
return {
|
|
1059
|
-
updateAssortment
|
|
1060
|
-
};
|
|
1061
|
-
};
|
|
1062
|
-
var useUpdateAssortment_default = useUpdateAssortment;
|
|
1063
|
-
var UpdateAssortmentMediaTextsMutation = gql`
|
|
1064
|
-
mutation UpdateAssortmentMediaTexts(
|
|
1065
|
-
$assortmentMediaId: ID!
|
|
1066
|
-
$texts: [AssortmentMediaTextInput!]!
|
|
1067
|
-
) {
|
|
1068
|
-
updateAssortmentMediaTexts(
|
|
1069
|
-
assortmentMediaId: $assortmentMediaId
|
|
1070
|
-
texts: $texts
|
|
1071
|
-
) {
|
|
1072
|
-
...AssortmentMediaTextsFragment
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
${AssortmentMediaTextsFragment_default}
|
|
1076
|
-
`;
|
|
1077
|
-
var useUpdateAssortmentMediaTexts = () => {
|
|
1078
|
-
const [updateAssortmentMediaTextsMutation] = useMutation(UpdateAssortmentMediaTextsMutation);
|
|
1079
|
-
const updateAssortmentMediaTexts = async ({
|
|
1080
|
-
assortmentMediaId,
|
|
1081
|
-
texts
|
|
1082
|
-
}) => {
|
|
1083
|
-
return updateAssortmentMediaTextsMutation({
|
|
1084
|
-
variables: { assortmentMediaId, texts },
|
|
1085
|
-
refetchQueries: ["TranslatedAssortmentMediaTexts"]
|
|
1086
|
-
});
|
|
1087
|
-
};
|
|
1088
|
-
return {
|
|
1089
|
-
updateAssortmentMediaTexts
|
|
1090
|
-
};
|
|
1091
|
-
};
|
|
1092
|
-
var useUpdateAssortmentMediaTexts_default = useUpdateAssortmentMediaTexts;
|
|
1093
|
-
var UpdateAssortmentTextsMutation = gql`
|
|
1094
|
-
mutation updateAssortmentTexts(
|
|
1095
|
-
$assortmentId: ID!
|
|
1096
|
-
$texts: [AssortmentTextInput!]!
|
|
1097
|
-
) {
|
|
1098
|
-
updateAssortmentTexts(assortmentId: $assortmentId, texts: $texts) {
|
|
1099
|
-
...AssortmentTextsFragment
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
${AssortmentTextsFragment_default}
|
|
1103
|
-
`;
|
|
1104
|
-
var useUpdateAssortmentTexts = () => {
|
|
1105
|
-
const [updateAssortmentTextsMutation] = useMutation(UpdateAssortmentTextsMutation);
|
|
1106
|
-
const updateAssortmentTexts = async ({
|
|
1107
|
-
assortmentId,
|
|
1108
|
-
texts
|
|
1109
|
-
}) => {
|
|
1110
|
-
return updateAssortmentTextsMutation({
|
|
1111
|
-
variables: { assortmentId, texts },
|
|
1112
|
-
refetchQueries: ["TranslatedAssortmentTexts", "Assortment"]
|
|
1113
|
-
});
|
|
1114
|
-
};
|
|
1115
|
-
return {
|
|
1116
|
-
updateAssortmentTexts
|
|
1117
|
-
};
|
|
1118
|
-
};
|
|
1119
|
-
var useUpdateAssortmentTexts_default = useUpdateAssortmentTexts;
|
|
1120
|
-
|
|
1121
|
-
export { useAddAssortmentFilter_default as useAddAssortmentFilter, useAddAssortmentLink_default as useAddAssortmentLink, useAddAssortmentMedia_default as useAddAssortmentMedia, useAddAssortmentProduct_default as useAddAssortmentProduct, useAssortment_default as useAssortment, useAssortmentChildren_default as useAssortmentChildren, useAssortmentFilters_default as useAssortmentFilters, useAssortmentLinks_default as useAssortmentLinks, useAssortmentMedia_default as useAssortmentMedia, useAssortmentPaths_default as useAssortmentPaths, useAssortmentProducts_default as useAssortmentProducts, useAssortments_default as useAssortments, useAssortmentsCount_default as useAssortmentsCount, useCreateAssortment_default as useCreateAssortment, usePrepareAssortmentImport_default as usePrepareAssortmentImport, useRemoveAssortment_default as useRemoveAssortment, useRemoveAssortmentFilter_default as useRemoveAssortmentFilter, useRemoveAssortmentLink_default as useRemoveAssortmentLink, useRemoveAssortmentMedia_default as useRemoveAssortmentMedia, useRemoveAssortmentProduct_default as useRemoveAssortmentProduct, useReorderAssortmentFilters_default as useReorderAssortmentFilters, useReorderAssortmentLinks_default as useReorderAssortmentLinks, useReorderAssortmentMedia_default as useReorderAssortmentMedia, useReorderAssortmentProducts_default as useReorderAssortmentProducts, useTranslatedAssortmentMediaTexts_default as useTranslatedAssortmentMediaTexts, useTranslatedAssortmentTexts_default as useTranslatedAssortmentTexts, useUpdateAssortment_default as useUpdateAssortment, useUpdateAssortmentMediaTexts_default as useUpdateAssortmentMediaTexts, useUpdateAssortmentTexts_default as useUpdateAssortmentTexts };
|