PageSourceSearch

https://app.paa.ge/static/js/1726.f86cfe12.chunk.js

js paa.ge collected 2026-09-24 17:10:59 UTC 27,859 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklamaco=self.webpackChunklamaco||[]).push([[1726],{81726:(e,s,r)=>{r.r(s),r.d(s,{default:()=>Y});var i=r(54617),o=r(80045),n=r(89379),l=r(74117),d=r(40491),t=r(76910),a=r(43801),c=r(36282),m=r(98734),p=r(62640),h=r(26449),y=r(63935),w=r(58553),u=r(65043),k=r(11703),x=r(32036),g=r(26399),v=r(62704),b=r(41578),j=r(22832);const f={af:{keywords:["afg"]},ax:{keywords:["ala","aland"]},al:{keywords:["alb"]},dz:{keywords:["dza"]},as:{keywords:["asm"]},ad:{keywords:["and"]},ao:{keywords:["ago"]},ai:{keywords:["aia"]},aq:{keywords:["ata"]},ag:{keywords:["atg","antigua"]},ar:{keywords:["arg"]},am:{keywords:["arm"]},aw:{keywords:["abw"]},au:{keywords:["aus"]},at:{keywords:["aut"]},az:{keywords:["aze"]},bs:{keywords:["bhs"]},bh:{keywords:["bhr"]},bd:{keywords:["bgd"]},bb:{keywords:["brb"]},by:{keywords:["blr","belarus","white russia"]},be:{keywords:["bel"]},bz:{keywords:["blz"]},bj:{keywords:["ben"]},bm:{keywords:["bmu"]},bt:{keywords:["btn"]},bo:{keywords:["bol","bolivia"]},bq:{keywords:["bes","bonaire","saba","sint eustatius"]},ba:{keywords:["bih","bosnia"]},bw:{keywords:["bwa"]},bv:{keywords:["bvd"]},br:{keywords:["bra"]},io:{keywords:["iot"]},bn:{keywords:["brn","brunei"]},bg:{keywords:["bgr"]},bf:{keywords:["bfa"]},bi:{keywords:["bdi"]},kh:{keywords:["khm"]},cm:{keywords:["cmr"]},ca:{keywords:["can"]},cv:{keywords:["cpv","cabo verde"]},ky:{keywords:["cym"]},cf:{keywords:["caf"]},td:{keywords:["tcd"]},cl:{keywords:["chl"]},cn:{keywords:["chn"]},cx:{keywords:["cxr"]},cc:{keywords:["cck"]},co:{keywords:["col"]},km:{keywords:["com"]},cg:{keywords:["cog","congo brazzaville"]},cd:{keywords:["cod","drc","democratic republic of congo","congo kinshasa"]},ck:{keywords:["cok"]},cr:{keywords:["cri"]},ci:{keywords:["civ","ivory coast"]},hr:{keywords:["hrv"]},cu:{keywords:["cub"]},cw:{keywords:["cuw"]},cy:{keywords:["cyp"]},cz:{keywords:["cze","czechia","czech"]},dk:{keywords:["dnk"]},dj:{keywords:["dji"]},dm:{keywords:["dma"]},do:{keywords:["dom"]},ec:{keywords:["ecu"]},eg:{keywords:["egy"]},sv:{keywords:["slv"]},gq:{keywords:["gnq"]},er:{keywords:["eri"]},ee:{keywords:["est"]},et:{keywords:["eth"]},fk:{keywords:["flk","falklands","malvinas"]},fo:{keywords:["fro"]},fj:{keywords:["fji"]},fi:{keywords:["fin"]},fr:{keywords:["fra","france"]},gf:{keywords:["guf"]},pf:{keywords:["pyf"]},tf:{keywords:["atf"]},ga:{keywords:["gab"]},gm:{keywords:["gmb"]},ge:{keywords:["geo"]},de:{keywords:["deu","deutschland"]},gh:{keywords:["gha"]},gi:{keywords:["gib"]},gr:{keywords:["grc"]},gl:{keywords:["grl"]},gd:{keywords:["grd"]},gp:{keywords:["glp"]},gu:{keywords:["gum"]},gt:{keywords:["gtm"]},gg:{keywords:["ggy"]},gn:{keywords:["gin"]},gw:{keywords:["gnb"]},gy:{keywords:["guy"]},ht:{keywords:["hti"]},hm:{keywords:["hmd","heard island"]},va:{keywords:["vat","vatican","vatican city"]},hn:{keywords:["hnd"]},hk:{keywords:["hkg","hongkong"]},hu:{keywords:["hun"]},is:{keywords:["isl"]},in:{keywords:["ind"]},id:{keywords:["idn"]},ir:{keywords:["irn","iran","persia"]},iq:{keywords:["irq"]},ie:{keywords:["irl"]},im:{keywords:["imn"]},il:{keywords:["isr"]},it:{keywords:["ita"]},jm:{keywords:["jam"]},jp:{keywords:["jpn"]},je:{keywords:["jey"]},jo:{keywords:["jor"]},kz:{keywords:["kaz"]},ke:{keywords:["ken"]},ki:{keywords:["kir"]},kp:{keywords:["prk","north korea"]},kr:{keywords:["kor","south korea","korea"]},xk:{keywords:["xkx"]},kw:{keywords:["kwt"]},kg:{keywords:["kgz"]},la:{keywords:["lao","laos"]},lv:{keywords:["lva"]},lb:{keywords:["lbn"]},ls:{keywords:["lso"]},lr:{keywords:["lbr"]},ly:{keywords:["lby","libya"]},li:{keywords:["lie"]},lt:{keywords:["ltu"]},lu:{keywords:["lux"]},mo:{keywords:["mac","macau"]},mk:{keywords:["mkd","north macedonia","macedonia"]},mg:{keywords:["mdg"]},mw:{keywords:["mwi"]},my:{keywords:["mys"]},mv:{keywords:["mdv"]},ml:{keywords:["mli"]},mt:{keywords:["mlt"]},mh:{keywords:["mhl"]},mq:{keywords:["mtq"]},mr:{keywords:["mrt"]},mu:{keywords:["mus"]},yt:{keywords:["myt"]},mx:{keywords:["mex"]},fm:{keywords:["fsm","micronesia"]},md:{keywords:["mda","moldova"]},mc:{keywords:["mco"]},mn:{keywords:["mng"]},me:{keywords:["mne"]},ms:{keywords:["msr"]},ma:{keywords:["mar"]},mz:{keywords:["moz"]},mm:{keywords:["mmr","burma"]},na:{keywords:["nam"]},nr:{keywords:["nru"]},np:{keywords:["npl"]},nl:{keywords:["nld","holland"]},nc:{keywords:["ncl"]},nz:{keywords:["nzl"]},ni:{keywords:["nic"]},ne:{keywords:["ner"]},ng:{keywords:["nga"]},nu:{keywords:["niu"]},nf:{keywords:["nfk"]}
1,mp:{keywords:["mnp"]},no:{keywords:["nor"]},om:{keywords:["omn"]},pk:{keywords:["pak"]},pw:{keywords:["plw"]},ps:{keywords:["pse","palestine","palestinian"]},pa:{keywords:["pan"]},pg:{keywords:["png"]},py:{keywords:["pry"]},pe:{keywords:["per"]},ph:{keywords:["phl"]},pn:{keywords:["pcn"]},pl:{keywords:["pol"]},pt:{keywords:["prt"]},pr:{keywords:["pri"]},qa:{keywords:["qat"]},re:{keywords:["reu","r\xe9union","reunion island"]},ro:{keywords:["rom"]},ru:{keywords:["rus","russia"]},rw:{keywords:["rwa"]},bl:{keywords:["blm","st barths","st barthelemy","saint barthelemy"]},sh:{keywords:["shn","st helena"]},kn:{keywords:["kna","st kitts"]},lc:{keywords:["lca","st lucia"]},mf:{keywords:["maf","st martin"]},pm:{keywords:["spm","st pierre"]},vc:{keywords:["vct","st vincent"]},ws:{keywords:["wsm"]},sm:{keywords:["smr"]},st:{keywords:["stp","sao tome"]},sa:{keywords:["sau"]},sn:{keywords:["sen"]},rs:{keywords:["srb"]},sc:{keywords:["syc"]},sl:{keywords:["sle"]},sg:{keywords:["sgp"]},sx:{keywords:["sxm","st maarten"]},sk:{keywords:["svk"]},si:{keywords:["svn"]},sb:{keywords:["slb"]},so:{keywords:["som"]},za:{keywords:["zaf"]},gs:{keywords:["sgs","south georgia"]},ss:{keywords:["ssd"]},es:{keywords:["esp","espana","espa\xf1a"]},lk:{keywords:["lka"]},sd:{keywords:["sdn"]},sr:{keywords:["sur"]},sj:{keywords:["sjm"]},sz:{keywords:["swz","eswatini"]},se:{keywords:["swe"]},ch:{keywords:["che","swiss"]},sy:{keywords:["syr","syria"]},tw:{keywords:["twn","taiwan"]},tj:{keywords:["tjk"]},tz:{keywords:["tza","tanzania"]},th:{keywords:["tha"]},tl:{keywords:["tls","east timor","timor-leste"]},tg:{keywords:["tgo"]},tk:{keywords:["tkl"]},to:{keywords:["ton"]},tt:{keywords:["tto","trinidad"]},tn:{keywords:["tun"]},tr:{keywords:["tur"]},tm:{keywords:["tkm"]},tc:{keywords:["tca"]},tv:{keywords:["tuv"]},ug:{keywords:["uga"]},ua:{keywords:["ukr"]},ae:{keywords:["are","uae","emirates"]},gb:{keywords:["gbr","uk","britain","england","great britain","scotland","wales"]},us:{keywords:["usa","america","united states of america","u.s.","u.s.a.","states"]},um:{keywords:["umi","us minor outlying islands"]},uy:{keywords:["ury"]},uz:{keywords:["uzb"]},vu:{keywords:["vut"]},ve:{keywords:["ven"]},vn:{keywords:["vnm","vietnam"]},vg:{keywords:["vgb","british virgin islands","bvi"]},vi:{keywords:["vir","us virgin islands"]},wf:{keywords:["wlf"]},eh:{keywords:["esh"]},ye:{keywords:["yem"]},zm:{keywords:["zmb"]},zw:{keywords:["zwe"]}};function _(e){var s,r;return null!==(s=null===(r=f[e.toLowerCase()])||void 0===r?void 0:r.keywords)&&void 0!==s?s:[]}function A(e){const s=e.code.toLowerCase();return[s,e.label,..._(s)].join(" ").toLowerCase()}var N=r(4686),z=r(6705),F=r(86520),P=r(55319),C=r(70579);const W=e=>{var s,r;let{id:i,countries:o,remove:d,restField:t,form:p,index:w,add:f}=e;const{t:_}=(0,l.Bd)("store/products/create/shipping"),W=a.A.useWatch("shipping_regions",p),I=(0,g.al)(),[V,q]=(0,u.useState)(!1),S=a.A.useWatch("shipping_regions",p),K=a.A.useWatch("allow_shipping",p);return(0,u.useEffect)(()=>{var e,s;null==(null===S||void 0===S||null===(e=S[i])||void 0===e?void 0:e.delivery_time_min)&&null==(null===S||void 0===S||null===(s=S[i])||void 0===s?void 0:s.delivery_time_max)||q(!0)},[null===S||void 0===S||null===(s=S[i])||void 0===s?void 0:s.delivery_time_min,null===S||void 0===S||null===(r=S[i])||void 0===r?void 0:r.delivery_time_max]),(0,C.jsxs)(m.A,{flexDirection:"column",children:[(0,C.jsxs)(m.A,{alignItems:"start",className:"w-100",gap:"xs",children:[(0,C.jsx)(v.A,(0,n.A)((0,n.A)({},t),{},{wrapperStyle:{maxWidth:I?90:150,minWidth:I?90:150},name:[i,"country"],label:0!==w||I?void 0:(0,C.jsx)("div",{className:I?"text-sm-medium":"",children:_("form.country.label")}),className:"w-100 mb-0",rules:K?[{required:!0,message:_("form.country.required")}]:[],children:(0,C.jsx)(j.A,{showSearch:!0,className:"w-100",placeholder:_("form.country.placeholder"),optionFilterProp:"children",dropdownMatchSelectWidth:!1,dropdownStyle:{width:280},filterOption:(e,s)=>"string"===typeof(null===s||void 0===s?void 0:s.searchKey)&&s.searchKey.includes(e.trim().toLowerCase()),options:[{label:(0,C.jsx)("div",{style:{color:y.f},children:_("form.country.regions")}),title:"regions",options:x.b9.filter(e=>{var s;return!(null!==W&&void 0!==W&&W.find(s=>
1(null===s||void 0===s?void 0:s.country)===e.value))||e.value===(null===(s=W[i])||void 0===s?void 0:s.country)}).map(e=>({label:(0,C.jsx)("div",{children:e.label}),value:e.value,searchKey:A({code:e.value,label:e.label})}))},{label:(0,C.jsx)("div",{style:{overflow:"hidden",width:"100%",whiteSpace:"nowrap"},children:"---------------------------------------------------------------------------------------------------------------------------"}),title:"countries",options:o.filter(e=>{var s;return!W||!W.find(s=>!!s&&s.country===e.value)||e.value===(null===(s=W[i])||void 0===s?void 0:s.country)}).map(e=>{let{value:s,label:r}=e;return{label:(0,C.jsxs)("div",{className:"d-flex align-items-center gap-xs",children:[(0,C.jsx)("span",{children:r}),!I&&(0,C.jsx)("img",{style:{width:12,flexShrink:0},alt:"",src:"https://purecatamphetamine.github.io/country-flag-icons/3x2/".concat(s.toUpperCase(),".svg")})]}),value:s,searchKey:A({code:s,label:r})}})}]})})),(0,C.jsx)(v.A,(0,n.A)((0,n.A)({},t),{},{label:0!==w||I?void 0:(0,C.jsxs)("div",{className:"d-flex align-items-center ".concat(I?"text-sm-medium":""),style:{gap:6},children:[_("form.price_alone.label"),(0,C.jsx)(c.A,{placement:"bottom",content:(0,C.jsx)("div",{style:{width:"360px"},children:(0,C.jsxs)(l.x6,{t:_,i18nKey:"form.price_alone.popover",components:{b:(0,C.jsx)("b",{})},children:["This is the shipping price if the product is"," ",(0,C.jsx)("b",{children:"ordered alone."})," "]})}),children:(0,C.jsx)("span",{children:(0,C.jsx)(k.A,{})})})]}),className:"w-100",name:[i,"price_alone"],rules:K?[{required:!0,message:_("form.price_alone.required")},{validator:(e,s)=>null!=s&&s<0?Promise.reject(_("form.price_alone.invalid")):Promise.resolve()}]:[],children:(0,C.jsx)(b.A,{placeholder:"0.00",min:0,style:{width:"100%"}})})),(0,C.jsx)(v.A,(0,n.A)((0,n.A)({},t),{},{label:0!==w||I?void 0:(0,C.jsxs)("div",{className:"d-flex align-items-center ".concat(I?"text-sm-medium":""),style:{gap:6},children:[_("form.price_others"),(0,C.jsx)(c.A,{placement:"bottom",content:(0,C.jsx)("div",{style:{width:"360px"},children:(0,C.jsxs)(l.x6,{t:_,i18nKey:"form.price_others.popover",components:{b:(0,C.jsx)("b",{})},children:["When ",(0,C.jsx)("b",{children:"several products"}),' are ordered together, we will automatically select the highest product shipping price, then apply the "Price with others" for each additional item in the cart.']})}),children:(0,C.jsx)("span",{children:(0,C.jsx)(k.A,{})})})]}),className:"w-100 ",name:[i,"price_others"],rules:K?[{validator:(e,s)=>null!=s&&s<0?Promise.reject(_("form.price_alone.invalid")):Promise.resolve()}]:[],children:(0,C.jsx)(b.A,{placeholder:"0.00",min:0,style:{width:"100%"}})})),(0,C.jsx)(m.A,{style:{marginTop:0!==w||I?0===w&&I?5:0:26},children:0===w?(0,C.jsx)(N.Ay,{type:"ghost",icon:h.PlusSignIcon,onClick:()=>{f()}}):(0,C.jsx)(N.Ay,{style:{marginTop:I?5:0},type:"ghost",icon:h.Delete02Icon,onClick:()=>{d(i)}})})]}),V?(0,C.jsx)(P.A,{className:"mt-2",style:{padding:"12px 16px 16px 16px"},children:(0,C.jsxs)(m.A,{flexDirection:"column",gap:"xs",children:[(0,C.jsxs)(m.A,{alignItems:"center",justifyContent:"between",gap:"xs",children:[(0,C.jsxs)(m.A,{alignItems:"center",gap:"xs",children:[(0,C.jsx)("div",{className:"text-sm-medium",children:_("delivery_time")}),(0,C.jsx)(c.A,{placement:"bottom",content:(0,C.jsx)("div",{style:{width:"360px"},children:_("delivery_time.popover")}),children:(0,C.jsx)("span",{children:(0,C.jsx)(k.A,{})})})]}),(0,C.jsx)(z.A,{style:{height:18},onClick:()=>{p.setFieldValue(["shipping_regions",i,"delivery_time_min"],null),p.setFieldValue(["shipping_regions",i,"delivery_time_max"],null),q(!1)},children:_("remove")})]}),(0,C.jsxs)(m.A,{alignItems:"center",gap:"sm",children:[(0,C.jsx)(v.A,(0,n.A)((0,n.A)({},t),{},{className:"w-100 mb-0",name:[i,"delivery_time_min"],rules:[{validator:(e,s)=>null!=s&&s<1?Promise.reject(_("form.delivery_time.invalid")):Promise.resolve()}],children:(0,C.jsx)(F.A,{placeholder:_("min_days"),precision:0,min:1,style:{width:"100%"}})})),(0,C.jsx)(v.A,(0,n.A)((0,n.A)({},t),{},{className:"w-100 mb-0",name:[i,"delivery_time_max"],rules:[{validator:(e,s)=>
1null!=s&&s<1?Promise.reject(_("form.delivery_time.invalid")):Promise.resolve()}],children:(0,C.jsx)(F.A,{placeholder:_("max_days"),precision:0,min:1,style:{width:"100%"}})}))]})]})}):(0,C.jsx)(m.A,{alignItems:"center",justifyContent:"end",className:"w-100",children:(0,C.jsxs)(z.A,{style:{height:18,marginRight:40},className:"mt-1",onClick:()=>{q(!0),p.setFieldValue(["shipping_regions",i,"delivery_time_min"],null),p.setFieldValue(["shipping_regions",i,"delivery_time_max"],null)},children:["+ ",_("add_delivery_time")]})})]})};var I=r(57544),V=r(85973);const q=["key","name"],S=e=>{let{productForm:s,errorMessage:r,validateShipping:i}=e;const{t:n}=(0,l.Bd)("store/products/create/shipping"),d=(0,g.al)(),{user:t}=(0,V.F7)(),[p,w]=(0,u.useState)(!1),x=a.A.useWatch(["worldwide_shipping_delivery_time_min"],s.form),j=a.A.useWatch(["worldwide_shipping_delivery_time_max"],s.form),f=a.A.useWatch("allow_shipping",s.form);(0,u.useEffect)(()=>{null==x&&null==j||w(!0)},[x,j]);const _=(0,I.Av)();return(0,C.jsxs)(m.A,{flexDirection:"column",style:{gap:16},children:[(0,C.jsxs)("div",{children:[(0,C.jsxs)(m.A,{alignItems:"start",gap:"xs",children:[(0,C.jsx)(v.A,{label:(0,C.jsxs)("div",{className:"d-flex align-items-center ".concat(d?"text-sm-medium":""),style:{gap:6},children:[n("form.price_alone.label"),(0,C.jsx)(c.A,{placement:"bottom",content:(0,C.jsx)("div",{style:{width:"360px"},children:(0,C.jsxs)(l.x6,{t:n,i18nKey:"form.price_alone.popover",components:{b:(0,C.jsx)("b",{})},children:["This is the shipping price if the product is"," ",(0,C.jsx)("b",{children:"ordered alone."})," "]})}),children:(0,C.jsx)("span",{children:(0,C.jsx)(k.A,{})})})]}),className:"w-100 mb-0",name:["worldwide_shipping_price_alone"],rules:f?[{required:!0,message:n("form.price_alone.required")},{validator:(e,s)=>null!=s&&s<0?Promise.reject(n("form.price_alone.invalid")):Promise.resolve()}]:[],children:(0,C.jsx)(b.A,{id:"worldwide_shipping_price_alone-formitem",placeholder:"0.00",min:0,style:{width:"100%"}})}),(0,C.jsx)(v.A,{label:(0,C.jsxs)("div",{className:"d-flex align-items-center ".concat(d?"text-sm-medium":""),style:{gap:6},children:[n("form.price_others"),(0,C.jsx)(c.A,{placement:"bottom",content:(0,C.jsx)("div",{style:{width:"360px"},children:(0,C.jsxs)(l.x6,{t:n,i18nKey:"form.price_others.popover",components:{b:(0,C.jsx)("b",{})},children:["When ",(0,C.jsx)("b",{children:"several products"}),' are ordered together, we will automatically select the highest product shipping price, then apply the "Price with others" for each additional item in the cart.']})}),children:(0,C.jsx)("span",{children:(0,C.jsx)(k.A,{})})})]}),className:"w-100 mb-0",name:["worldwide_shipping_price_others"],rules:f?[{validator:(e,s)=>null!=s&&s<0?Promise.reject(n("form.price_alone.invalid")):Promise.resolve()}]:[],children:(0,C.jsx)(b.A,{id:"worldwide_shipping_price_others-formitem",placeholder:"0.00",min:0,style:{width:"100%"}})})]}),p?(0,C.jsx)(P.A,{className:"mt-2",style:{padding:"12px 16px 16px 16px"},children:(0,C.jsxs)(m.A,{flexDirection:"column",gap:"xs",children:[(0,C.jsxs)(m.A,{alignItems:"center",justifyContent:"between",gap:"xs",children:[(0,C.jsxs)(m.A,{alignItems:"center",gap:"xs",children:[(0,C.jsx)("div",{className:"text-sm-medium",children:n("delivery_time")}),(0,C.jsx)(c.A,{placement:"bottom",content:(0,C.jsx)("div",{style:{width:"360px"},children:n("delivery_time.popover")}),children:(0,C.jsx)("span",{children:(0,C.jsx)(k.A,{})})})]}),(0,C.jsx)(z.A,{style:{height:18},onClick:()=>{s.form.setFieldValue(["worldwide_shipping_delivery_time_min"],null),s.form.setFieldValue(["worldwide_shipping_delivery_time_max"],null),w(!1)},children:n("remove")})]}),(0,C.jsxs)(m.A,{alignItems:"center",gap:"sm",children:[(0,C.jsx)(v.A,{className:"w-100 mb-0",name:["worldwide_shipping_delivery_time_min"],rules:[{validator:(e,s)=>null!=s&&s<1?Promise.reject(n("form.delivery_time.invalid")):Promise.resolve()}],children:(0,C.jsx)(F.A,{placeholder:n("min_days"),precision:0,min:1,style:{width:"100%"}})}),(0,C.jsx)(v.A,{className:"w-100 mb-0",name:["worldwide_shipping_delivery_time_max"],rules:[{validator:(e,s)=>
1null!=s&&s<1?Promise.reject(n("form.delivery_time.invalid")):Promise.resolve()}],children:(0,C.jsx)(F.A,{placeholder:n("max_days"),precision:0,min:1,style:{width:"100%"}})})]})]})}):(0,C.jsx)(m.A,{alignItems:"center",justifyContent:"end",className:"w-100 mt-2",children:(0,C.jsxs)(z.A,{style:{height:18},className:"",onClick:()=>w(!0),children:["+ ",n("add_delivery_time")]})})]}),(0,C.jsx)(a.A.List,{name:"shipping_regions",initialValue:[],rules:[{validator:i}],children:(e,i)=>{let{add:p,remove:w}=i;return(0,C.jsxs)("div",{className:"d-flex flex-column gap-xs",children:[null!==e&&void 0!==e&&e.length?(0,C.jsxs)(m.A,{flexDirection:"column",style:{gap:6},children:[(0,C.jsx)("div",{className:"text-sm-medium",children:n("exceptions")}),(0,C.jsxs)(P.A,{style:{padding:"12px 16px 16px 16px"},children:[d&&(0,C.jsxs)(m.A,{alignItems:"center",gap:"xs",style:{marginBottom:6},children:[(0,C.jsx)("div",{className:"text-sm-medium w-100",style:{minWidth:90,maxWidth:90},children:n("form.country.label")}),(0,C.jsxs)("div",{className:"d-flex align-items-center w-100 ".concat(d?"text-sm-medium":""),style:{gap:6},children:[n("form.price_alone.label"),(0,C.jsx)(c.A,{placement:"bottom",content:(0,C.jsx)("div",{style:{width:"360px"},children:(0,C.jsxs)(l.x6,{t:n,i18nKey:"form.price_alone.popover",components:{b:(0,C.jsx)("b",{})},children:["This is the shipping price if the product is"," ",(0,C.jsx)("b",{children:"ordered alone."})," "]})}),children:(0,C.jsx)("span",{children:(0,C.jsx)(k.A,{})})})]}),(0,C.jsxs)("div",{className:"d-flex align-items-center w-100 ".concat(d?"text-sm-medium":""),style:{gap:6,overflow:"hidden"},children:[(0,C.jsx)("span",{style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"2",overflow:"hidden",textOverflow:"ellipsis"},children:n("form.price_others")}),(0,C.jsx)(c.A,{placement:"bottom",content:(0,C.jsx)("div",{style:{width:"360px"},children:(0,C.jsxs)(l.x6,{t:n,i18nKey:"form.price_others.popover",components:{b:(0,C.jsx)("b",{})},children:["When ",(0,C.jsx)("b",{children:"several products"}),' are ordered together, we will automatically select the highest product shipping price, then apply the "Price with others" for each additional item in the cart.']})}),children:(0,C.jsx)("span",{children:(0,C.jsx)(k.A,{})})})]}),(0,C.jsx)("div",{style:{minWidth:32}})]}),(0,C.jsx)(m.A,{flexDirection:"column",gap:"xs",children:e.map((e,r)=>{let{key:i,name:n}=e,l=(0,o.A)(e,q);return(0,C.jsx)(W,{id:n,countries:_,index:r,restField:l,remove:w,form:s.form,add:p},n)})})]})]}):(0,C.jsx)(m.A,{children:(0,C.jsx)(N.Ay,{type:"ghost",onClick:()=>{p({country:(null===t||void 0===t?void 0:t.country)||"fr",price_alone:null,price_others:null})},icon:h.PlusSignIcon,children:n("add_exceptions")})}),r&&(0,C.jsx)(a.A.Item,{className:"mb-0",children:(0,C.jsx)("div",{className:"text-xs-medium",style:{color:y.a4},children:r})})]})}})]})};var K=r(14040),D=r(49817);const L=["key","name"],B=e=>{let{productForm:s}=e;const{t:r}=(0,l.Bd)("store/products/create/shipping"),{token:i}=(0,D.h)(),{data:x}=(0,K.c)(!i),v=a.A.useWatch("shipping_regions",s.form),b=a.A.useWatch("worldwide_shipping",s.form),{shippingProfile:j}=(0,w._E)(w.BY.CLICK_AND_COLLECT),{shippingProfile:f}=(0,w._E)(w.BY.COURIER),_=a.A.useWatch("allow_shipping",s.form),{user:A}=(0,V.F7)(),N=(0,g.al)(),[z,F]=(0,u.useState)(""),P=(0,I.Av)(),q=()=>{const e=s.form.getFieldValue("shipping_regions"),i=s.form.getFieldValue("allow_shipping"),o=s.form.getFieldValue("enable_hand_delivery"),n=s.form.getFieldValue("enable_click_collect"),l=s.form.getFieldValue("enable_courier_delivery");return i&&(e&&e.length||b)||o||n&&j||l&&f?(F(""),Promise.resolve()):(F(r("error.setup_delivery_method")),Promise.reject())};return(0,u.useEffect)(()=>{x&&1===(null===v||void 0===v?void 0:v.length)&&v[0].country!==x&&s.form.setFieldValue("shipping_regions",[(0,n.A)((0,n.A)({},v[0]),{},{country:x})])},[x]),(0,C.jsxs)(m.A,{flexDirection:"column",gap:"xs",children:[(0,C.jsx)(d.A,{title:r("shipping"),description:r("shipping.description"),actions:[(0,C.jsx)(t.A,{checked:_,onChange:e=>{s.form.setFieldsValue({allow_shipping:e}),!e||null!==v&&void 0!==v&&v.length||b||s.form.setFieldValue("shipping_regions",[{country:(null===A||void 0===A?void 0:A.country)||"fr",price_alone:null,price_others:null}])},defaultChecked:_})],contentStyle:{borderTop:_?void 0:"none"},children:(0,C.jsxs)("div",{className:"p-3 w-100 flex-column gap-lg",style:{display:_?"flex":"none"},children:[(0,C.jsxs)(m.A,{flexDirection:"column",gap:"xs",className:"w-100",children:[(0,C.jsx)("div",{className:"text-sm-medium",children:r("delivery_method")}),(0,C.jsxs)(m.A,{alignItems:"stretch",gap:"xs",className:"w-100",children:[(0,C.jsx)(p.A,{size:"medium",className:"w-100",icon:h.Location01Icon,active:!b,onChange:()=>{s.form.setFieldValue("worldwide_shipping",!1),b&&s.form.setFieldValue("shipping_regions",[{country:(null===A||void 0===A?void 0:A.country)||"fr",price_alone:null,price_others:null}])},children:(0,C.jsxs)(m.A,{flexDirection:"column",gap:"xxs",children:[(0,C.jsx)("div",{className:"text-sm-medium",children:r("specific_countries")}),(0,C.jsx)("div",{className:"text-xs",style:{color:b?y.f:""},children:r("specific_countries.description")})]})}),(0,C.jsx)(p.A,{size:"medium",className:"w-100",icon:h.Globe02Icon,active:b,onChange:()=>{s.form.setFieldValue("worldwide_shipping",!0),s.form.setFieldValue("worldwide_shipping_price_alone",null),s.form.setFieldValue("worldwide_shipping_price_others",null),b||s.form.setFieldValue("shipping_regions",[])},children:(0,C.jsxs)(m.A,{flexDirection:"column",gap:"xxs",children:[(0,C.jsx)("div",{className:"text-sm-medium",children:r("worldwide_shipping")}),(0,C.jsx)("div",{className:"text-xs",style:{color:b?"":y.f},children:r("worldwide_shipping.description")})]})})]})]}),b?(0,C.jsx)(S,{productForm:s,errorMessage:z,validateShipping:q}):(0,C.jsxs)("div",{children:[N&&(0,C.jsxs)(m.A,{alignItems:"center",gap:"xs",style:{marginBottom:6},children:[(0,C.jsx)("div",{className:"text-sm-medium w-100",style:{maxWidth:90,minWidth:90},children:r("form.country.label")}),(0,C.jsxs)("div",{className:"d-flex align-items-center w-100 ".concat(N?"text-sm-medium":""),style:{gap:6},children:[r("form.price_alone.label"),(0,C.jsx)(c.A,{placement:"bottom",content:(0,C.jsx)("div",{style:{width:"360px"},children:(0,C.jsxs)(l.x6,{t:r,i18nKey:"form.price_alone.popover",components:{b:(0,C.jsx)("b",{})},children:["This is the shipping price if the product is"," ",(0,C.jsx)("b",{children:"ordered alone."})," "]})}),children:(0,C.jsx)("span",{children:(0,C.jsx)(k.A,{})})})]}),(0,C.jsxs)("div",{className:"d-flex align-items-center w-100 ".concat(N?"text-sm-medium":""),style:{gap:6},children:[(0,C.jsx)("span",{children:r("form.price_others")}),(0,C.jsx)(c.A,{placement:"bottom",content:(0,C.jsx)("div",{style:{width:"360px"},children:(0,C.jsxs)(l.x6,{t:r,i18nKey:"form.price_others.popover",components:{b:(0,C.jsx)("b",{})},children:["When ",(0,C.jsx)("b",{children:"several products"}),' are ordered together, we will automatically select the highest product shipping price, then apply the "Price with others" for each additional item in the cart.']})}),children:(0,C.jsx)("span",{children:(0,C.jsx)(k.A,{})})})]}),(0,C.jsx)("div",{style:{minWidth:32}})]}),(0,C.jsx)(a.A.List,{name:"shipping_regions",initialValue:[{country:x||(null===A||void 0===A?void 0:A.country)||"fr",price_alone:null,price_others:null}],rules:[{validator:q}],children:(e,r)=>{let{add:i,remove:n}=r;return(0,C.jsx)("div",{className:"d-flex flex-column gap-sm",children:e.map((e,r)=>{let{key:l,name:d}=e,t=(0,o.A)(e,L);return(0,C.jsx)(W,{id:d,countries:P,index:r,restField:t,remove:n,form:s.form,add:i},d)})})}})]})]})}),z&&(0,C.jsx)(a.A.Item,{className:"mb-0",children:(0,C.jsx)("div",{className:"text-xs-medium",style:{color:y.a4},children:z})})]})};var T=r(88010),E=r(45688),O=r(89352),M=r(95406);const Y=e=>{let{productForm:s}=e;const{isSignup:r}=(0,M.IT)(),{t:o}=(0,l.Bd)("store/products/create/shipping"),n=a.A.useWatch("enable_click_collect",s.form),d=a.A.useWatch("enable_courier_delivery",s.form),t=a.A.useWatch("enable_hand_delivery",s.form);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(O.A,{type:"info",content:o("delivery.disclaimer")}),(0,C.jsx)(B,{productForm:s}),!r&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(i.A,{handleActivate:e=>{s.form.setFieldsValue({enable_click_collect:e})},checked:n}),(0,C.jsx)(T.A,{handleActivate:e=>{s.form.setFieldsValue({enable_courier_delivery:e})},checked:d}),(0,C.jsx)(E.A,{handleActivate:e=>{s.form.setFieldsValue({enable_hand_delivery:e})},checked:t})]})]})}},86520:(e,s,r)=>{r.d(s,{A:()=>m});var i,o=r(89379),n=r(57528),l=r(97914),d=r(63935),t=r(2826),a=r(70579);const c=(0,t.Ay)(l.A)(i||(i=(0,n.A)(["\n  border: 1px solid ",";\n  background-color: ",";\n  border-radius: 8px;\n\n  &:has(.ant-input-number-wrapper-disabled) {\n    background-color: "," !important;\n  }\n\n  .ant-input-number-disabled {\n    background-color: "," !important;\n    border-radius: 0;\n  }\n\n  &:hover:not(:has(.ant-input-number-wrapper-disabled)):not(\n      .ant-input-number-status-error\n    ) {\n    background-color: "," !important;\n    border: 1px solid "," !important;\n  }\n\n  &:has(input:active):not(:has(.ant-input-number-wrapper-disabled)) {\n    background-color: "," !important;\n    border: 1px solid "," !important;\n    box-shadow: 0 0 0 2px #000, 0 0 0 4px rgba(0, 0, 0, 0.14) !important;\n  }
1\n\n  &:has(input:focus):not(:has(.ant-input-number-wrapper-disabled)) {\n    background-color: "," !important;\n    border: 1px solid "," !important;\n    box-shadow: 0 0 0 2px #000, 0 0 0 4px rgba(0, 0, 0, 0.14) !important;\n  }\n\n  .ant-input-number-input {\n    font-size: 14px;\n    text-align: left;\n  }\n\n  .ant-input-number-suffix {\n    color: ",";\n  }\n\n  .ant-input-number {\n    border: none !important;\n    box-shadow: none !important;\n  }\n\n  &:has(.ant-input-number-status-error) .ant-input-number {\n    background-color: "," !important;\n  }\n\n  .ant-input-number-input-wrap {\n    @media (min-width: 992px) {\n      height: 30px !important;\n    }\n    display: flex;\n    height: 42px !important;\n  }\n\n  input {\n    @media (min-width: 992px) {\n      height: 30px !important;\n      padding: 4px 4px 4px 10px !important;\n    }\n    padding: 12px 10px !important;\n    height: 42px !important;\n\n    &::placeholder {\n      color: "," !important;\n      font-style: normal;\n      font-weight: 400;\n      line-height: 20px;\n    }\n    font-style: normal;\n    font-weight: 400;\n    line-height: 30px !important;\n    &[disabled] {\n      color: "," !important;\n    }\n  }\n\n  &.ant-input-number-status-error {\n    background-color: "," !important;\n    border: 1px solid "," !important;\n  }\n"])),d.Y2,d.dh,d.mP,d.mP,d.aj,d.Jp,d.dh,d.Jp,d.dh,d.Y2,d.vk,d.Ir,d.vk,d.vk,d.Ir,d.ju),m=e=>(0,a.jsx)(c,(0,o.A)({inputMode:"decimal",controls:!1,size:"large"},e))}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.