@unchainedshop/admin-ui 4.8.24 → 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/{1VR1ml6ZgsrkIHz15x9AN → _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/{423wh31vs9fkd.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/{2c7jus8h2lvwm.js → 0k433cermb_mg.js} +12 -12
- 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/{1ian7p0y14cf8.js → 0yhj5b33a-dp1.js} +5 -5
- 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/{2nsiy55zbhk1z.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/{1jhwnwl2v85h3.js → 1epelh6347c59.js} +5 -5
- 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/{21505qvz72rrr.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/{04jdni_d0ild5.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/{20g8sxfy8vkaq.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/{1zapg4a_w8idd.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/2tw-iq1oliu-h.js +1 -0
- 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/{2tv9xcqwcx7cx.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/{0tpwg7ts4gi8y.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-2tgdz9h51_lba.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-1fgjbzhy-a0wc.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-0svt-kcwdzhha.js → turbopack-14qzcqdgveoel.js} +1 -1
- package/out/_next/static/chunks/{turbopack-43sxh-28xjh-f.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-43j5vro9m-e5s.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-0ifrpl-_oaw20.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-3zvyyemmsh9sp.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-1691x76-jvxsz.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-2jdl7nqnftjeq.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-0mdwnlfssojp9.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/0ki8gfs3dlslv.js +0 -3
- package/out/_next/static/chunks/1-kfgv00-58xr.js +0 -1
- package/out/_next/static/chunks/140i5f2n-78cg.js +0 -7
- package/out/_next/static/chunks/18-yq__gv10ty.js +0 -107
- 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/{1VR1ml6ZgsrkIHz15x9AN → _TiowajLX6Z3MYsLPNgxd}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{1VR1ml6ZgsrkIHz15x9AN → _TiowajLX6Z3MYsLPNgxd}/_ssgManifest.js +0 -0
package/dist/chunk-UXG7EYHC.js
DELETED
|
@@ -1,614 +0,0 @@
|
|
|
1
|
-
import { __commonJS, __toESM } from './chunk-4VNS5WPM.js';
|
|
2
|
-
import React, { useContext, useRef } from 'react';
|
|
3
|
-
import { useIntl } from 'react-intl';
|
|
4
|
-
import { useController } from 'react-hook-form';
|
|
5
|
-
|
|
6
|
-
// ../node_modules/validator/lib/util/assertString.js
|
|
7
|
-
var require_assertString = __commonJS({
|
|
8
|
-
"../node_modules/validator/lib/util/assertString.js"(exports, module) {
|
|
9
|
-
Object.defineProperty(exports, "__esModule", {
|
|
10
|
-
value: true
|
|
11
|
-
});
|
|
12
|
-
exports.default = assertString;
|
|
13
|
-
function assertString(input) {
|
|
14
|
-
if (input === void 0 || input === null) throw new TypeError("Expected a string but received a ".concat(input));
|
|
15
|
-
if (input.constructor.name !== "String") throw new TypeError("Expected a string but received a ".concat(input.constructor.name));
|
|
16
|
-
}
|
|
17
|
-
module.exports = exports.default;
|
|
18
|
-
module.exports.default = exports.default;
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
// ../node_modules/validator/lib/isLength.js
|
|
23
|
-
var require_isLength = __commonJS({
|
|
24
|
-
"../node_modules/validator/lib/isLength.js"(exports, module) {
|
|
25
|
-
Object.defineProperty(exports, "__esModule", {
|
|
26
|
-
value: true
|
|
27
|
-
});
|
|
28
|
-
exports.default = isLength2;
|
|
29
|
-
var _assertString = _interopRequireDefault(require_assertString());
|
|
30
|
-
function _interopRequireDefault(e) {
|
|
31
|
-
return e && e.__esModule ? e : { default: e };
|
|
32
|
-
}
|
|
33
|
-
function _typeof(o) {
|
|
34
|
-
"@babel/helpers - typeof";
|
|
35
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
36
|
-
return typeof o2;
|
|
37
|
-
} : function(o2) {
|
|
38
|
-
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
39
|
-
}, _typeof(o);
|
|
40
|
-
}
|
|
41
|
-
function isLength2(str, options) {
|
|
42
|
-
(0, _assertString.default)(str);
|
|
43
|
-
var min;
|
|
44
|
-
var max;
|
|
45
|
-
if (_typeof(options) === "object") {
|
|
46
|
-
min = options.min || 0;
|
|
47
|
-
max = options.max;
|
|
48
|
-
} else {
|
|
49
|
-
min = arguments[1] || 0;
|
|
50
|
-
max = arguments[2];
|
|
51
|
-
}
|
|
52
|
-
var presentationSequences = str.match(/[^\uFE0F\uFE0E][\uFE0F\uFE0E]/g) || [];
|
|
53
|
-
var surrogatePairs = str.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g) || [];
|
|
54
|
-
var len = str.length - presentationSequences.length - surrogatePairs.length;
|
|
55
|
-
var isInsideRange = len >= min && (typeof max === "undefined" || len <= max);
|
|
56
|
-
if (isInsideRange && Array.isArray(options === null || options === void 0 ? void 0 : options.discreteLengths)) {
|
|
57
|
-
return options.discreteLengths.some(function(discreteLen) {
|
|
58
|
-
return discreteLen === len;
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
return isInsideRange;
|
|
62
|
-
}
|
|
63
|
-
module.exports = exports.default;
|
|
64
|
-
module.exports.default = exports.default;
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
// ../node_modules/validator/lib/util/checkHost.js
|
|
69
|
-
var require_checkHost = __commonJS({
|
|
70
|
-
"../node_modules/validator/lib/util/checkHost.js"(exports, module) {
|
|
71
|
-
Object.defineProperty(exports, "__esModule", {
|
|
72
|
-
value: true
|
|
73
|
-
});
|
|
74
|
-
exports.default = checkHost;
|
|
75
|
-
function isRegExp(obj) {
|
|
76
|
-
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
77
|
-
}
|
|
78
|
-
function checkHost(host, matches) {
|
|
79
|
-
for (var i = 0; i < matches.length; i++) {
|
|
80
|
-
var match = matches[i];
|
|
81
|
-
if (host === match || isRegExp(match) && match.test(host)) {
|
|
82
|
-
return true;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
return false;
|
|
86
|
-
}
|
|
87
|
-
module.exports = exports.default;
|
|
88
|
-
module.exports.default = exports.default;
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
// ../node_modules/validator/lib/isByteLength.js
|
|
93
|
-
var require_isByteLength = __commonJS({
|
|
94
|
-
"../node_modules/validator/lib/isByteLength.js"(exports, module) {
|
|
95
|
-
Object.defineProperty(exports, "__esModule", {
|
|
96
|
-
value: true
|
|
97
|
-
});
|
|
98
|
-
exports.default = isByteLength;
|
|
99
|
-
var _assertString = _interopRequireDefault(require_assertString());
|
|
100
|
-
function _interopRequireDefault(e) {
|
|
101
|
-
return e && e.__esModule ? e : { default: e };
|
|
102
|
-
}
|
|
103
|
-
function _typeof(o) {
|
|
104
|
-
"@babel/helpers - typeof";
|
|
105
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
106
|
-
return typeof o2;
|
|
107
|
-
} : function(o2) {
|
|
108
|
-
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
109
|
-
}, _typeof(o);
|
|
110
|
-
}
|
|
111
|
-
function isByteLength(str, options) {
|
|
112
|
-
(0, _assertString.default)(str);
|
|
113
|
-
var min;
|
|
114
|
-
var max;
|
|
115
|
-
if (_typeof(options) === "object") {
|
|
116
|
-
min = options.min || 0;
|
|
117
|
-
max = options.max;
|
|
118
|
-
} else {
|
|
119
|
-
min = arguments[1];
|
|
120
|
-
max = arguments[2];
|
|
121
|
-
}
|
|
122
|
-
var len = encodeURI(str).split(/%..|./).length - 1;
|
|
123
|
-
return len >= min && (typeof max === "undefined" || len <= max);
|
|
124
|
-
}
|
|
125
|
-
module.exports = exports.default;
|
|
126
|
-
module.exports.default = exports.default;
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
|
|
130
|
-
// ../node_modules/validator/lib/util/merge.js
|
|
131
|
-
var require_merge = __commonJS({
|
|
132
|
-
"../node_modules/validator/lib/util/merge.js"(exports, module) {
|
|
133
|
-
Object.defineProperty(exports, "__esModule", {
|
|
134
|
-
value: true
|
|
135
|
-
});
|
|
136
|
-
exports.default = merge;
|
|
137
|
-
function _typeof(o) {
|
|
138
|
-
"@babel/helpers - typeof";
|
|
139
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
140
|
-
return typeof o2;
|
|
141
|
-
} : function(o2) {
|
|
142
|
-
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
143
|
-
}, _typeof(o);
|
|
144
|
-
}
|
|
145
|
-
function merge() {
|
|
146
|
-
var obj = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
147
|
-
var defaults = arguments.length > 1 ? arguments[1] : void 0;
|
|
148
|
-
if (_typeof(obj) !== "object" || obj === null) {
|
|
149
|
-
obj = {};
|
|
150
|
-
}
|
|
151
|
-
for (var key in defaults) {
|
|
152
|
-
if (typeof obj[key] === "undefined") {
|
|
153
|
-
obj[key] = defaults[key];
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
return obj;
|
|
157
|
-
}
|
|
158
|
-
module.exports = exports.default;
|
|
159
|
-
module.exports.default = exports.default;
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
|
|
163
|
-
// ../node_modules/validator/lib/isFQDN.js
|
|
164
|
-
var require_isFQDN = __commonJS({
|
|
165
|
-
"../node_modules/validator/lib/isFQDN.js"(exports, module) {
|
|
166
|
-
Object.defineProperty(exports, "__esModule", {
|
|
167
|
-
value: true
|
|
168
|
-
});
|
|
169
|
-
exports.default = isFQDN;
|
|
170
|
-
var _assertString = _interopRequireDefault(require_assertString());
|
|
171
|
-
var _merge = _interopRequireDefault(require_merge());
|
|
172
|
-
function _interopRequireDefault(e) {
|
|
173
|
-
return e && e.__esModule ? e : { default: e };
|
|
174
|
-
}
|
|
175
|
-
var default_fqdn_options = {
|
|
176
|
-
require_tld: true,
|
|
177
|
-
allow_underscores: false,
|
|
178
|
-
allow_trailing_dot: false,
|
|
179
|
-
allow_numeric_tld: false,
|
|
180
|
-
allow_wildcard: false,
|
|
181
|
-
ignore_max_length: false
|
|
182
|
-
};
|
|
183
|
-
function isFQDN(str, options) {
|
|
184
|
-
(0, _assertString.default)(str);
|
|
185
|
-
options = (0, _merge.default)(options, default_fqdn_options);
|
|
186
|
-
if (options.allow_trailing_dot && str[str.length - 1] === ".") {
|
|
187
|
-
str = str.substring(0, str.length - 1);
|
|
188
|
-
}
|
|
189
|
-
if (options.allow_wildcard === true && str.indexOf("*.") === 0) {
|
|
190
|
-
str = str.substring(2);
|
|
191
|
-
}
|
|
192
|
-
var parts = str.split(".");
|
|
193
|
-
var tld = parts[parts.length - 1];
|
|
194
|
-
if (options.require_tld) {
|
|
195
|
-
if (parts.length < 2) {
|
|
196
|
-
return false;
|
|
197
|
-
}
|
|
198
|
-
if (!options.allow_numeric_tld && !/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {
|
|
199
|
-
return false;
|
|
200
|
-
}
|
|
201
|
-
if (/\s/.test(tld)) {
|
|
202
|
-
return false;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
if (!options.allow_numeric_tld && /^\d+$/.test(tld)) {
|
|
206
|
-
return false;
|
|
207
|
-
}
|
|
208
|
-
return parts.every(function(part) {
|
|
209
|
-
if (part.length > 63 && !options.ignore_max_length) {
|
|
210
|
-
return false;
|
|
211
|
-
}
|
|
212
|
-
if (!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(part)) {
|
|
213
|
-
return false;
|
|
214
|
-
}
|
|
215
|
-
if (/[\uff01-\uff5e]/.test(part)) {
|
|
216
|
-
return false;
|
|
217
|
-
}
|
|
218
|
-
if (/^-|-$/.test(part)) {
|
|
219
|
-
return false;
|
|
220
|
-
}
|
|
221
|
-
if (!options.allow_underscores && /_/.test(part)) {
|
|
222
|
-
return false;
|
|
223
|
-
}
|
|
224
|
-
return true;
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
module.exports = exports.default;
|
|
228
|
-
module.exports.default = exports.default;
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
|
-
|
|
232
|
-
// ../node_modules/validator/lib/isIP.js
|
|
233
|
-
var require_isIP = __commonJS({
|
|
234
|
-
"../node_modules/validator/lib/isIP.js"(exports, module) {
|
|
235
|
-
Object.defineProperty(exports, "__esModule", {
|
|
236
|
-
value: true
|
|
237
|
-
});
|
|
238
|
-
exports.default = isIP;
|
|
239
|
-
var _assertString = _interopRequireDefault(require_assertString());
|
|
240
|
-
function _interopRequireDefault(e) {
|
|
241
|
-
return e && e.__esModule ? e : { default: e };
|
|
242
|
-
}
|
|
243
|
-
function _typeof(o) {
|
|
244
|
-
"@babel/helpers - typeof";
|
|
245
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
246
|
-
return typeof o2;
|
|
247
|
-
} : function(o2) {
|
|
248
|
-
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
249
|
-
}, _typeof(o);
|
|
250
|
-
}
|
|
251
|
-
var IPv4SegmentFormat = "(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])";
|
|
252
|
-
var IPv4AddressFormat = "(".concat(IPv4SegmentFormat, "[.]){3}").concat(IPv4SegmentFormat);
|
|
253
|
-
var IPv4AddressRegExp = new RegExp("^".concat(IPv4AddressFormat, "$"));
|
|
254
|
-
var IPv6SegmentFormat = "(?:[0-9a-fA-F]{1,4})";
|
|
255
|
-
var IPv6AddressRegExp = new RegExp("^(" + "(?:".concat(IPv6SegmentFormat, ":){7}(?:").concat(IPv6SegmentFormat, "|:)|") + "(?:".concat(IPv6SegmentFormat, ":){6}(?:").concat(IPv4AddressFormat, "|:").concat(IPv6SegmentFormat, "|:)|") + "(?:".concat(IPv6SegmentFormat, ":){5}(?::").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,2}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){4}(?:(:").concat(IPv6SegmentFormat, "){0,1}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,3}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){3}(?:(:").concat(IPv6SegmentFormat, "){0,2}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,4}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){2}(?:(:").concat(IPv6SegmentFormat, "){0,3}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,5}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){1}(?:(:").concat(IPv6SegmentFormat, "){0,4}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,6}|:)|") + "(?::((?::".concat(IPv6SegmentFormat, "){0,5}:").concat(IPv4AddressFormat, "|(?::").concat(IPv6SegmentFormat, "){1,7}|:))") + ")(%[0-9a-zA-Z.]{1,})?$");
|
|
256
|
-
function isIP(ipAddress) {
|
|
257
|
-
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
258
|
-
(0, _assertString.default)(ipAddress);
|
|
259
|
-
var version = (_typeof(options) === "object" ? options.version : arguments[1]) || "";
|
|
260
|
-
if (!version) {
|
|
261
|
-
return isIP(ipAddress, {
|
|
262
|
-
version: 4
|
|
263
|
-
}) || isIP(ipAddress, {
|
|
264
|
-
version: 6
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
if (version.toString() === "4") {
|
|
268
|
-
return IPv4AddressRegExp.test(ipAddress);
|
|
269
|
-
}
|
|
270
|
-
if (version.toString() === "6") {
|
|
271
|
-
return IPv6AddressRegExp.test(ipAddress);
|
|
272
|
-
}
|
|
273
|
-
return false;
|
|
274
|
-
}
|
|
275
|
-
module.exports = exports.default;
|
|
276
|
-
module.exports.default = exports.default;
|
|
277
|
-
}
|
|
278
|
-
});
|
|
279
|
-
|
|
280
|
-
// ../node_modules/validator/lib/isEmail.js
|
|
281
|
-
var require_isEmail = __commonJS({
|
|
282
|
-
"../node_modules/validator/lib/isEmail.js"(exports, module) {
|
|
283
|
-
Object.defineProperty(exports, "__esModule", {
|
|
284
|
-
value: true
|
|
285
|
-
});
|
|
286
|
-
exports.default = isEmail2;
|
|
287
|
-
var _assertString = _interopRequireDefault(require_assertString());
|
|
288
|
-
var _checkHost = _interopRequireDefault(require_checkHost());
|
|
289
|
-
var _isByteLength = _interopRequireDefault(require_isByteLength());
|
|
290
|
-
var _isFQDN = _interopRequireDefault(require_isFQDN());
|
|
291
|
-
var _isIP = _interopRequireDefault(require_isIP());
|
|
292
|
-
var _merge = _interopRequireDefault(require_merge());
|
|
293
|
-
function _interopRequireDefault(e) {
|
|
294
|
-
return e && e.__esModule ? e : { default: e };
|
|
295
|
-
}
|
|
296
|
-
var default_email_options = {
|
|
297
|
-
allow_display_name: false,
|
|
298
|
-
allow_underscores: false,
|
|
299
|
-
require_display_name: false,
|
|
300
|
-
allow_utf8_local_part: true,
|
|
301
|
-
require_tld: true,
|
|
302
|
-
blacklisted_chars: "",
|
|
303
|
-
ignore_max_length: false,
|
|
304
|
-
host_blacklist: [],
|
|
305
|
-
host_whitelist: []
|
|
306
|
-
};
|
|
307
|
-
var splitNameAddress = /^([^\x00-\x1F\x7F-\x9F\cX]+)</i;
|
|
308
|
-
var emailUserPart = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i;
|
|
309
|
-
var gmailUserPart = /^[a-z\d]+$/;
|
|
310
|
-
var quotedEmailUser = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i;
|
|
311
|
-
var emailUserUtf8Part = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i;
|
|
312
|
-
var quotedEmailUserUtf8 = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;
|
|
313
|
-
var defaultMaxEmailLength = 254;
|
|
314
|
-
function validateDisplayName(display_name) {
|
|
315
|
-
var display_name_without_quotes = display_name.replace(/^"(.+)"$/, "$1");
|
|
316
|
-
if (!display_name_without_quotes.trim()) {
|
|
317
|
-
return false;
|
|
318
|
-
}
|
|
319
|
-
var contains_illegal = /[\.";<>]/.test(display_name_without_quotes);
|
|
320
|
-
if (contains_illegal) {
|
|
321
|
-
if (display_name_without_quotes === display_name) {
|
|
322
|
-
return false;
|
|
323
|
-
}
|
|
324
|
-
var all_start_with_back_slash = display_name_without_quotes.split('"').length === display_name_without_quotes.split('\\"').length;
|
|
325
|
-
if (!all_start_with_back_slash) {
|
|
326
|
-
return false;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
return true;
|
|
330
|
-
}
|
|
331
|
-
function isEmail2(str, options) {
|
|
332
|
-
(0, _assertString.default)(str);
|
|
333
|
-
options = (0, _merge.default)(options, default_email_options);
|
|
334
|
-
if (options.require_display_name || options.allow_display_name) {
|
|
335
|
-
var display_email = str.match(splitNameAddress);
|
|
336
|
-
if (display_email) {
|
|
337
|
-
var display_name = display_email[1];
|
|
338
|
-
str = str.replace(display_name, "").replace(/(^<|>$)/g, "");
|
|
339
|
-
if (display_name.endsWith(" ")) {
|
|
340
|
-
display_name = display_name.slice(0, -1);
|
|
341
|
-
}
|
|
342
|
-
if (!validateDisplayName(display_name)) {
|
|
343
|
-
return false;
|
|
344
|
-
}
|
|
345
|
-
} else if (options.require_display_name) {
|
|
346
|
-
return false;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
if (!options.ignore_max_length && str.length > defaultMaxEmailLength) {
|
|
350
|
-
return false;
|
|
351
|
-
}
|
|
352
|
-
var parts = str.split("@");
|
|
353
|
-
var domain = parts.pop();
|
|
354
|
-
var lower_domain = domain.toLowerCase();
|
|
355
|
-
if (options.host_blacklist.length > 0 && (0, _checkHost.default)(lower_domain, options.host_blacklist)) {
|
|
356
|
-
return false;
|
|
357
|
-
}
|
|
358
|
-
if (options.host_whitelist.length > 0 && !(0, _checkHost.default)(lower_domain, options.host_whitelist)) {
|
|
359
|
-
return false;
|
|
360
|
-
}
|
|
361
|
-
var user = parts.join("@");
|
|
362
|
-
if (options.domain_specific_validation && (lower_domain === "gmail.com" || lower_domain === "googlemail.com")) {
|
|
363
|
-
user = user.toLowerCase();
|
|
364
|
-
var username = user.split("+")[0];
|
|
365
|
-
if (!(0, _isByteLength.default)(username.replace(/\./g, ""), {
|
|
366
|
-
min: 6,
|
|
367
|
-
max: 30
|
|
368
|
-
})) {
|
|
369
|
-
return false;
|
|
370
|
-
}
|
|
371
|
-
var _user_parts = username.split(".");
|
|
372
|
-
for (var i = 0; i < _user_parts.length; i++) {
|
|
373
|
-
if (!gmailUserPart.test(_user_parts[i])) {
|
|
374
|
-
return false;
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
if (options.ignore_max_length === false && (!(0, _isByteLength.default)(user, {
|
|
379
|
-
max: 64
|
|
380
|
-
}) || !(0, _isByteLength.default)(domain, {
|
|
381
|
-
max: 254
|
|
382
|
-
}))) {
|
|
383
|
-
return false;
|
|
384
|
-
}
|
|
385
|
-
if (!(0, _isFQDN.default)(domain, {
|
|
386
|
-
require_tld: options.require_tld,
|
|
387
|
-
ignore_max_length: options.ignore_max_length,
|
|
388
|
-
allow_underscores: options.allow_underscores
|
|
389
|
-
})) {
|
|
390
|
-
if (!options.allow_ip_domain) {
|
|
391
|
-
return false;
|
|
392
|
-
}
|
|
393
|
-
if (!(0, _isIP.default)(domain)) {
|
|
394
|
-
if (!domain.startsWith("[") || !domain.endsWith("]")) {
|
|
395
|
-
return false;
|
|
396
|
-
}
|
|
397
|
-
var noBracketdomain = domain.slice(1, -1);
|
|
398
|
-
if (noBracketdomain.length === 0 || !(0, _isIP.default)(noBracketdomain)) {
|
|
399
|
-
return false;
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
if (options.blacklisted_chars) {
|
|
404
|
-
if (user.search(new RegExp("[".concat(options.blacklisted_chars, "]+"), "g")) !== -1) return false;
|
|
405
|
-
}
|
|
406
|
-
if (user[0] === '"' && user[user.length - 1] === '"') {
|
|
407
|
-
user = user.slice(1, user.length - 1);
|
|
408
|
-
return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user);
|
|
409
|
-
}
|
|
410
|
-
var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;
|
|
411
|
-
var user_parts = user.split(".");
|
|
412
|
-
for (var _i = 0; _i < user_parts.length; _i++) {
|
|
413
|
-
if (!pattern.test(user_parts[_i])) {
|
|
414
|
-
return false;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
return true;
|
|
418
|
-
}
|
|
419
|
-
module.exports = exports.default;
|
|
420
|
-
module.exports.default = exports.default;
|
|
421
|
-
}
|
|
422
|
-
});
|
|
423
|
-
var FormContext = React.createContext({
|
|
424
|
-
submitError: "",
|
|
425
|
-
rhf: null,
|
|
426
|
-
api: null,
|
|
427
|
-
setSubmitError: () => {
|
|
428
|
-
},
|
|
429
|
-
disabled: false
|
|
430
|
-
});
|
|
431
|
-
var FormContext_default = FormContext;
|
|
432
|
-
|
|
433
|
-
// src/modules/forms/hooks/useFormContext.ts
|
|
434
|
-
var useFormContext = () => useContext(FormContext_default);
|
|
435
|
-
var useFormContext_default = useFormContext;
|
|
436
|
-
|
|
437
|
-
// src/modules/forms/lib/validators.ts
|
|
438
|
-
var import_isLength = __toESM(require_isLength(), 1);
|
|
439
|
-
var import_isEmail = __toESM(require_isEmail(), 1);
|
|
440
|
-
var millisecondsInWeek = 6048e5;
|
|
441
|
-
var millisecondsInDay = 864e5;
|
|
442
|
-
var constructFromSymbol = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
443
|
-
|
|
444
|
-
// ../node_modules/date-fns/constructFrom.js
|
|
445
|
-
function constructFrom(date, value) {
|
|
446
|
-
if (typeof date === "function") return date(value);
|
|
447
|
-
if (date && typeof date === "object" && constructFromSymbol in date)
|
|
448
|
-
return date[constructFromSymbol](value);
|
|
449
|
-
if (date instanceof Date) return new date.constructor(value);
|
|
450
|
-
return new Date(value);
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
// ../node_modules/date-fns/toDate.js
|
|
454
|
-
function toDate(argument, context) {
|
|
455
|
-
return constructFrom(context || argument, argument);
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
// ../node_modules/date-fns/startOfDay.js
|
|
459
|
-
function startOfDay(date, options) {
|
|
460
|
-
const _date = toDate(date, options?.in);
|
|
461
|
-
_date.setHours(0, 0, 0, 0);
|
|
462
|
-
return _date;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
// ../node_modules/date-fns/isDate.js
|
|
466
|
-
function isDate(value) {
|
|
467
|
-
return value instanceof Date || typeof value === "object" && Object.prototype.toString.call(value) === "[object Date]";
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
// ../node_modules/date-fns/isValid.js
|
|
471
|
-
function isValid(date) {
|
|
472
|
-
return !(!isDate(date) && typeof date !== "number" || isNaN(+toDate(date)));
|
|
473
|
-
}
|
|
474
|
-
var isString = (value) => typeof value === "string";
|
|
475
|
-
var validateMaxLength = (max) => ({
|
|
476
|
-
isValid: (value) => (0, import_isLength.default)(value || "", { max }),
|
|
477
|
-
intlMessageDescriptor: { id: "error_max_length" },
|
|
478
|
-
intlMessageValues: { maxLength: max.toString() }
|
|
479
|
-
});
|
|
480
|
-
var validateEmail = {
|
|
481
|
-
isValid: (value) => (0, import_isEmail.default)(value || ""),
|
|
482
|
-
intlMessageDescriptor: {
|
|
483
|
-
id: "error_email",
|
|
484
|
-
defaultMessage: "{label} must be a valid email address"
|
|
485
|
-
}
|
|
486
|
-
};
|
|
487
|
-
var validateRequired = {
|
|
488
|
-
isValid: (value) => {
|
|
489
|
-
if (isString(value)) {
|
|
490
|
-
return value.trim().length > 0;
|
|
491
|
-
}
|
|
492
|
-
if (typeof value === "number") {
|
|
493
|
-
return true;
|
|
494
|
-
}
|
|
495
|
-
if (Array.isArray(value)) {
|
|
496
|
-
return value.length > 0;
|
|
497
|
-
}
|
|
498
|
-
return !!value;
|
|
499
|
-
},
|
|
500
|
-
intlMessageDescriptor: {
|
|
501
|
-
id: "error_required",
|
|
502
|
-
defaultMessage: "{label} is a required field"
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
|
-
var validateDate = {
|
|
506
|
-
isValid: (value) => value ? isValid(new Date(value)) : true,
|
|
507
|
-
intlMessageDescriptor: {
|
|
508
|
-
id: "error_invalid_date",
|
|
509
|
-
defaultMessage: "{label} is not a valid date"
|
|
510
|
-
}
|
|
511
|
-
};
|
|
512
|
-
var validateRequiredTag = (isRequired) => ({
|
|
513
|
-
isValid: (value) => isRequired ? value.length > 0 : true,
|
|
514
|
-
intlMessageDescriptor: {
|
|
515
|
-
id: "error_tag_required",
|
|
516
|
-
defaultMessage: "{label} you must provide at least one tag"
|
|
517
|
-
}
|
|
518
|
-
});
|
|
519
|
-
|
|
520
|
-
// src/modules/forms/hooks/useField.ts
|
|
521
|
-
var useField = (props) => {
|
|
522
|
-
const intl = useIntl();
|
|
523
|
-
const { rhf, ...form } = useFormContext_default();
|
|
524
|
-
const {
|
|
525
|
-
name,
|
|
526
|
-
required,
|
|
527
|
-
errorMessage,
|
|
528
|
-
disabled = form.disabled || rhf?.formState?.isSubmitting,
|
|
529
|
-
label = intl.formatMessage({
|
|
530
|
-
id: name,
|
|
531
|
-
defaultMessage: "default_input_name",
|
|
532
|
-
description: "DO not translate Skip this as it's the default given label when a component is not provided explicit label"
|
|
533
|
-
}),
|
|
534
|
-
validators = []
|
|
535
|
-
} = props;
|
|
536
|
-
const combinedValidators = [
|
|
537
|
-
...validators,
|
|
538
|
-
required && validateRequired
|
|
539
|
-
].filter(Boolean);
|
|
540
|
-
const validate = (value) => {
|
|
541
|
-
return combinedValidators.reduce(
|
|
542
|
-
(acc, { isValid: isValid2, intlMessageDescriptor, intlMessageValues }) => {
|
|
543
|
-
if (acc) return acc;
|
|
544
|
-
if (!isValid2(value))
|
|
545
|
-
return errorMessage || intl.formatMessage(intlMessageDescriptor, {
|
|
546
|
-
label,
|
|
547
|
-
...intlMessageValues
|
|
548
|
-
});
|
|
549
|
-
return acc;
|
|
550
|
-
},
|
|
551
|
-
""
|
|
552
|
-
);
|
|
553
|
-
};
|
|
554
|
-
const validateRef = useRef(validate);
|
|
555
|
-
validateRef.current = validate;
|
|
556
|
-
const { field, fieldState, formState } = useController({
|
|
557
|
-
name,
|
|
558
|
-
control: rhf?.control,
|
|
559
|
-
rules: {
|
|
560
|
-
validate: (value) => {
|
|
561
|
-
const error2 = validateRef.current(value);
|
|
562
|
-
return error2 || true;
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
});
|
|
566
|
-
const error = (fieldState.isTouched || formState.isSubmitted) && fieldState.error?.message;
|
|
567
|
-
const onChange = (event) => {
|
|
568
|
-
if (props.onChange) {
|
|
569
|
-
props.onChange(event);
|
|
570
|
-
}
|
|
571
|
-
if (props.type === "number") {
|
|
572
|
-
const raw = event?.target?.value;
|
|
573
|
-
const num = raw === "" || raw == null ? null : Number(raw);
|
|
574
|
-
field.onChange(num);
|
|
575
|
-
} else {
|
|
576
|
-
field.onChange(event);
|
|
577
|
-
}
|
|
578
|
-
};
|
|
579
|
-
const isNullOrUndefined = (v) => {
|
|
580
|
-
return v === null || v === void 0;
|
|
581
|
-
};
|
|
582
|
-
return {
|
|
583
|
-
...props,
|
|
584
|
-
name,
|
|
585
|
-
error,
|
|
586
|
-
label,
|
|
587
|
-
disabled,
|
|
588
|
-
required,
|
|
589
|
-
onChange,
|
|
590
|
-
onBlur: field.onBlur,
|
|
591
|
-
value: isNullOrUndefined(field.value) ? "" : field.value,
|
|
592
|
-
setValue: (value, shouldValidate) => {
|
|
593
|
-
rhf?.setValue(name, value, {
|
|
594
|
-
shouldDirty: true,
|
|
595
|
-
shouldValidate: shouldValidate ?? false
|
|
596
|
-
});
|
|
597
|
-
},
|
|
598
|
-
setError: (message) => {
|
|
599
|
-
if (message) {
|
|
600
|
-
rhf?.setError(name, { type: "manual", message });
|
|
601
|
-
} else {
|
|
602
|
-
rhf?.clearErrors(name);
|
|
603
|
-
}
|
|
604
|
-
},
|
|
605
|
-
setTouched: (touched) => {
|
|
606
|
-
if (touched) {
|
|
607
|
-
rhf?.trigger(name);
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
};
|
|
611
|
-
};
|
|
612
|
-
var useField_default = useField;
|
|
613
|
-
|
|
614
|
-
export { FormContext_default, constructFrom, isValid, millisecondsInDay, millisecondsInWeek, startOfDay, toDate, useField_default, useFormContext_default, validateDate, validateEmail, validateMaxLength, validateRequiredTag };
|