@retailrocketgroup/retailrocket-edit.abandoned-basket-vue-email-template-render 1.0.349251 → 1.0.349365
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/assets/main.js +1 -1
- package/package.json +1 -1
package/assets/main.js
CHANGED
|
@@ -93,4 +93,4 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
93
93
|
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function Vd(t){const{h:o,s:e,v:n,a:s}=t,i=a=>{const d=(a+o/60)%6;return n-n*e*Math.max(Math.min(d,4-d,1),0)},r=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:r[0],g:r[1],b:r[2],a:s}}function xT(t){return Vd(CR(t))}function CR(t){const{h:o,s:e,l:n,a:s}=t,i=n+e*Math.min(n,1-n),r=i===0?0:2-2*n/i;return{h:o,s:r,v:i,a:s}}function Fc(t){const o=Math.round(t).toString(16);return("00".substr(0,2-o.length)+o).toUpperCase()}function qdt(t){let{r:o,g:e,b:n,a:s}=t;return`#${[Fc(o),Fc(e),Fc(n),s!==void 0?Fc(Math.round(s*255)):""].join("")}`}function tmt(t){t=emt(t);let[o,e,n,s]=Adt(t,2).map(i=>parseInt(i,16));return s=s===void 0?s:s/255,{r:o,g:e,b:n,a:s}}function emt(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(o=>o+o).join("")),t.length!==6&&(t=FT(FT(t,6),8,"F")),t}function omt(t,o){const e=cR(Yg(t));return e[0]=e[0]+o*10,pR(fR(e))}function nmt(t,o){const e=cR(Yg(t));return e[0]=e[0]-o*10,pR(fR(e))}function imt(t){const o=ir(t);return Yg(o)[1]}function hR(t){const o=Math.abs(vT(ir(0),ir(t)));return Math.abs(vT(ir(16777215),ir(t)))>Math.min(o,50)?"#fff":"#000"}function nu(t,o){return e=>Object.keys(t).reduce((n,s)=>{const r=typeof t[s]=="object"&&t[s]!=null&&!Array.isArray(t[s])?t[s]:{type:t[s]};return e&&s in e?n[s]={...r,default:e[s]}:n[s]=r,o&&!n[s].source&&(n[s].source=o),n},{})}function iu(t,o){const e=Uo();if(!e)throw new Error(`[Vuetify] ${t} ${o||"must be called from inside a setup function"}`);return e}let gR=0,Pc=new WeakMap;function FR(){const t=iu("getUid");if(Pc.has(t))return Pc.get(t);{const o=gR++;return Pc.set(t,o),o}}FR.reset=()=>{gR=0,Pc=new WeakMap};function rmt(t){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:iu("injectSelf");const{provides:e}=o;if(e&&t in e)return e[t]}const Ld=Symbol.for("vuetify:defaults");function smt(t){return ve(t)}function yR(){const t=wr(Ld);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function amt(t,o){var e,n;return typeof((e=t.props)==null?void 0:e[o])<"u"||typeof((n=t.props)==null?void 0:n[Vl(o)])<"u"}function lmt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:yR();const n=iu("useDefaults");if(o=o??n.type.name??n.type.__name,!o)throw new Error("[Vuetify] Could not determine component name");const s=Kt(()=>{var d;return(d=e.value)==null?void 0:d[t._as??o]}),i=new Proxy(t,{get(d,u){var p,h,g,V,b,x,v;const c=Reflect.get(d,u);return u==="class"||u==="style"?[(p=s.value)==null?void 0:p[u],c].filter(I=>I!=null):typeof u=="string"&&!amt(n.vnode,u)?((h=s.value)==null?void 0:h[u])!==void 0?(g=s.value)==null?void 0:g[u]:((b=(V=e.value)==null?void 0:V.global)==null?void 0:b[u])!==void 0?(v=(x=e.value)==null?void 0:x.global)==null?void 0:v[u]:c:c}}),r=rr();Kl(()=>{if(s.value){const d=Object.entries(s.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});r.value=d.length?Object.fromEntries(d):void 0}else r.value=void 0});function a(){const d=rmt(Ld,n);Pf(Ld,Kt(()=>r.value?zr((d==null?void 0:d.value)??{},r.value):d==null?void 0:d.value))}return{props:i,provideSubDefaults:a}}function zd(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=nu(t.props??{},t.name)();const o=Object.keys(t.props).filter(e=>e!=="class"&&e!=="style");t.filterProps=function(n){return Pdt(n,o)},t.props._as=String,t.setup=function(n,s){const i=yR();if(!i.value)return t._setup(n,s);const{props:r,provideSubDefaults:a}=lmt(n,n._as??t.name,i),d=t._setup(r,s);return a(),d}}return t}function SR(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return o=>(t?zd:dt)(o)}function umt(t){const o=iu("useRender");o.render=t}function dmt(t,o,e){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:p=>p,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:p=>p;const i=iu("useProxiedModel"),r=ve(t[o]!==void 0?t[o]:e),a=Vl(o),u=Kt(a!==o?()=>{var p,h,g,V;return t[o],!!(((p=i.vnode.props)!=null&&p.hasOwnProperty(o)||(h=i.vnode.props)!=null&&h.hasOwnProperty(a))&&((g=i.vnode.props)!=null&&g.hasOwnProperty(`onUpdate:${o}`)||(V=i.vnode.props)!=null&&V.hasOwnProperty(`onUpdate:${a}`)))}:()=>{var p,h;return t[o],!!((p=i.vnode.props)!=null&&p.hasOwnProperty(o)&&((h=i.vnode.props)!=null&&h.hasOwnProperty(`onUpdate:${o}`)))});_dt(()=>!u.value,()=>{uo(()=>t[o],p=>{r.value=p})});const c=Kt({get(){const p=t[o];return n(u.value?p:r.value)},set(p){const h=s(p),g=He(u.value?t[o]:r.value);g===h||n(g)===p||(r.value=h,i==null||i.emit(`update:${o}`,h))}});return Object.defineProperty(c,"externalValue",{get:()=>u.value?t[o]:r.value}),c}const mmt={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},_T="$vuetify.",IT=(t,o)=>t.replace(/\{(\d+)\}/g,(e,n)=>String(o[+n])),bR=(t,o,e)=>function(n){for(var s=arguments.length,i=new Array(s>1?s-1:0),r=1;r<s;r++)i[r-1]=arguments[r];if(!n.startsWith(_T))return IT(n,i);const a=n.replace(_T,""),d=t.value&&e.value[t.value],u=o.value&&e.value[o.value];let c=hT(d,a,null);return c||(`${n}${t.value}`,c=hT(u,a,null)),c||(c=n),typeof c!="string"&&(c=n),IT(c,i)};function TR(t,o){return(e,n)=>new Intl.NumberFormat([t.value,o.value],n).format(e)}function fh(t,o,e){const n=dmt(t,o,t[o]??e.value);return n.value=t[o]??e.value,uo(e,s=>{t[o]==null&&(n.value=e.value)}),n}function BR(t){return o=>{const e=fh(o,"locale",t.current),n=fh(o,"fallback",t.fallback),s=fh(o,"messages",t.messages);return{name:"vuetify",current:e,fallback:n,messages:s,t:bR(e,n,s),n:TR(e,n),provide:BR({current:e,fallback:n,messages:s})}}}function cmt(t){const o=rr((t==null?void 0:t.locale)??"en"),e=rr((t==null?void 0:t.fallback)??"en"),n=ve({en:mmt,...t==null?void 0:t.messages});return{name:"vuetify",current:o,fallback:e,messages:n,t:bR(o,e,n),n:TR(o,e),provide:BR({current:o,fallback:e,messages:n})}}const a0=Symbol.for("vuetify:locale");function fmt(t){return t.name!=null}function pmt(t){const o=t!=null&&t.adapter&&fmt(t==null?void 0:t.adapter)?t==null?void 0:t.adapter:cmt(t),e=gmt(o,t);return{...o,...e}}function Cmt(){const t=wr(a0);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}function hmt(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function gmt(t,o){const e=ve((o==null?void 0:o.rtl)??hmt()),n=Kt(()=>e.value[t.current.value]??!1);return{isRtl:n,rtl:e,rtlClasses:Kt(()=>`v-locale--is-${n.value?"rtl":"ltr"}`)}}const tp={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function Fmt(t,o,e){const n=[];let s=[];const i=VR(t),r=LR(t),a=e??tp[o.slice(-2).toUpperCase()]??0,d=(i.getDay()-a+7)%7,u=(r.getDay()-a+7)%7;for(let c=0;c<d;c++){const p=new Date(i);p.setDate(p.getDate()-(d-c)),s.push(p)}for(let c=1;c<=r.getDate();c++){const p=new Date(t.getFullYear(),t.getMonth(),c);s.push(p),s.length===7&&(n.push(s),s=[])}for(let c=1;c<7-u;c++){const p=new Date(r);p.setDate(p.getDate()+c),s.push(p)}return s.length>0&&n.push(s),n}function ymt(t,o,e){const n=e??tp[o.slice(-2).toUpperCase()]??0,s=new Date(t);for(;s.getDay()!==n;)s.setDate(s.getDate()-1);return s}function Smt(t,o){const e=new Date(t),n=((tp[o.slice(-2).toUpperCase()]??0)+6)%7;for(;e.getDay()!==n;)e.setDate(e.getDate()+1);return e}function VR(t){return new Date(t.getFullYear(),t.getMonth(),1)}function LR(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function bmt(t){const o=t.split("-").map(Number);return new Date(o[0],o[1]-1,o[2])}const Tmt=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function DR(t){if(t==null)return new Date;if(t instanceof Date)return t;if(typeof t=="string"){let o;if(Tmt.test(t))return bmt(t);if(o=Date.parse(t),!isNaN(o))return new Date(o)}return null}const ET=new Date(2e3,0,2);function Bmt(t,o){const e=o??tp[t.slice(-2).toUpperCase()]??0;return mR(7).map(n=>{const s=new Date(ET);return s.setDate(ET.getDate()+e+n),new Intl.DateTimeFormat(t,{weekday:"narrow"}).format(s)})}function Vmt(t,o,e,n){const s=DR(t)??new Date,i=n==null?void 0:n[o];if(typeof i=="function")return i(s,o,e);let r={};switch(o){case"fullDate":r={year:"numeric",month:"long",day:"numeric"};break;case"fullDateWithWeekday":r={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const a=s.getDate(),d=new Intl.DateTimeFormat(e,{month:"long"}).format(s);return`${a} ${d}`;case"normalDateWithWeekday":r={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":r={month:"short",day:"numeric"};break;case"year":r={year:"numeric"};break;case"month":r={month:"long"};break;case"monthShort":r={month:"short"};break;case"monthAndYear":r={month:"long",year:"numeric"};break;case"monthAndDate":r={month:"long",day:"numeric"};break;case"weekday":r={weekday:"long"};break;case"weekdayShort":r={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(e).format(s.getDate());case"hours12h":r={hour:"numeric",hour12:!0};break;case"hours24h":r={hour:"numeric",hour12:!1};break;case"minutes":r={minute:"numeric"};break;case"seconds":r={second:"numeric"};break;case"fullTime":r={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime12h":r={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime24h":r={hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"fullDateTime":r={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime12h":r={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime24h":r={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDate":r={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":r={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDateTime12h":r={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"keyboardDateTime24h":r={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;default:r=i??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(e,r).format(s)}function Lmt(t,o){const e=t.toJsDate(o),n=e.getFullYear(),s=yT(String(e.getMonth()+1),2,"0"),i=yT(String(e.getDate()),2,"0");return`${n}-${s}-${i}`}function Dmt(t){const[o,e,n]=t.split("-").map(Number);return new Date(o,e-1,n)}function vmt(t,o){const e=new Date(t);return e.setMinutes(e.getMinutes()+o),e}function Rmt(t,o){const e=new Date(t);return e.setHours(e.getHours()+o),e}function xmt(t,o){const e=new Date(t);return e.setDate(e.getDate()+o),e}function _mt(t,o){const e=new Date(t);return e.setDate(e.getDate()+o*7),e}function Imt(t,o){const e=new Date(t);return e.setDate(1),e.setMonth(e.getMonth()+o),e}function Emt(t){return t.getFullYear()}function Pmt(t){return t.getMonth()}function wmt(t){return t.getDate()}function Nmt(t){return new Date(t.getFullYear(),t.getMonth()+1,1)}function Amt(t){return new Date(t.getFullYear(),t.getMonth()-1,1)}function Wmt(t){return t.getHours()}function kmt(t){return t.getMinutes()}function Mmt(t){return new Date(t.getFullYear(),0,1)}function Omt(t){return new Date(t.getFullYear(),11,31)}function $mt(t,o){return pf(t,o[0])&&jmt(t,o[1])}function Hmt(t){const o=new Date(t);return o instanceof Date&&!isNaN(o.getTime())}function pf(t,o){return t.getTime()>o.getTime()}function Umt(t,o){return pf(l0(t),l0(o))}function jmt(t,o){return t.getTime()<o.getTime()}function PT(t,o){return t.getTime()===o.getTime()}function zmt(t,o){return t.getDate()===o.getDate()&&t.getMonth()===o.getMonth()&&t.getFullYear()===o.getFullYear()}function Gmt(t,o){return t.getMonth()===o.getMonth()&&t.getFullYear()===o.getFullYear()}function Kmt(t,o){return t.getFullYear()===o.getFullYear()}function Ymt(t,o,e){const n=new Date(t),s=new Date(o);switch(e){case"years":return n.getFullYear()-s.getFullYear();case"quarters":return Math.floor((n.getMonth()-s.getMonth()+(n.getFullYear()-s.getFullYear())*12)/4);case"months":return n.getMonth()-s.getMonth()+(n.getFullYear()-s.getFullYear())*12;case"weeks":return Math.floor((n.getTime()-s.getTime())/(1e3*60*60*24*7));case"days":return Math.floor((n.getTime()-s.getTime())/(1e3*60*60*24));case"hours":return Math.floor((n.getTime()-s.getTime())/(1e3*60*60));case"minutes":return Math.floor((n.getTime()-s.getTime())/(1e3*60));case"seconds":return Math.floor((n.getTime()-s.getTime())/1e3);default:return n.getTime()-s.getTime()}}function Zmt(t,o){const e=new Date(t);return e.setHours(o),e}function Jmt(t,o){const e=new Date(t);return e.setMinutes(o),e}function Xmt(t,o){const e=new Date(t);return e.setMonth(o),e}function Qmt(t,o){const e=new Date(t);return e.setDate(o),e}function qmt(t,o){const e=new Date(t);return e.setFullYear(o),e}function l0(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)}function tct(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59,999)}class ect{constructor(o){this.locale=o.locale,this.formats=o.formats}date(o){return DR(o)}toJsDate(o){return o}toISO(o){return Lmt(this,o)}parseISO(o){return Dmt(o)}addMinutes(o,e){return vmt(o,e)}addHours(o,e){return Rmt(o,e)}addDays(o,e){return xmt(o,e)}addWeeks(o,e){return _mt(o,e)}addMonths(o,e){return Imt(o,e)}getWeekArray(o,e){return Fmt(o,this.locale,e?Number(e):void 0)}startOfWeek(o,e){return ymt(o,this.locale,e?Number(e):void 0)}endOfWeek(o){return Smt(o,this.locale)}startOfMonth(o){return VR(o)}endOfMonth(o){return LR(o)}format(o,e){return Vmt(o,e,this.locale,this.formats)}isEqual(o,e){return PT(o,e)}isValid(o){return Hmt(o)}isWithinRange(o,e){return $mt(o,e)}isAfter(o,e){return pf(o,e)}isAfterDay(o,e){return Umt(o,e)}isBefore(o,e){return!pf(o,e)&&!PT(o,e)}isSameDay(o,e){return zmt(o,e)}isSameMonth(o,e){return Gmt(o,e)}isSameYear(o,e){return Kmt(o,e)}setMinutes(o,e){return Jmt(o,e)}setHours(o,e){return Zmt(o,e)}setMonth(o,e){return Xmt(o,e)}setDate(o,e){return Qmt(o,e)}setYear(o,e){return qmt(o,e)}getDiff(o,e,n){return Ymt(o,e,n)}getWeekdays(o){return Bmt(this.locale,o?Number(o):void 0)}getYear(o){return Emt(o)}getMonth(o){return Pmt(o)}getDate(o){return wmt(o)}getNextMonth(o){return Nmt(o)}getPreviousMonth(o){return Amt(o)}getHours(o){return Wmt(o)}getMinutes(o){return kmt(o)}startOfDay(o){return l0(o)}endOfDay(o){return tct(o)}startOfYear(o){return Mmt(o)}endOfYear(o){return Omt(o)}}const oct=Symbol.for("vuetify:date-options"),wT=Symbol.for("vuetify:date-adapter");function nct(t,o){const e=zr({adapter:ect,locale:{af:"af-ZA",bg:"bg-BG",ca:"ca-ES",ckb:"",cs:"cs-CZ",de:"de-DE",el:"el-GR",en:"en-US",et:"et-EE",fa:"fa-IR",fi:"fi-FI",hr:"hr-HR",hu:"hu-HU",he:"he-IL",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lv:"lv-LV",lt:"lt-LT",nl:"nl-NL",no:"no-NO",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",srCyrl:"sr-SP",srLatn:"sr-SP",sv:"sv-SE",th:"th-TH",tr:"tr-TR",az:"az-AZ",uk:"uk-UA",vi:"vi-VN",zhHans:"zh-CN",zhHant:"zh-TW"}},t);return{options:e,instance:ict(e,o)}}function ict(t,o){const e=Pt(typeof t.adapter=="function"?new t.adapter({locale:t.locale[o.current.value]??o.current.value,formats:t.formats}):t.adapter);return uo(o.current,n=>{e.locale=t.locale[n]??n??e.locale}),e}const NT=Symbol.for("vuetify:display"),AT={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},rct=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:AT;return zr(AT,t)};function WT(t){return nr&&!t?window.innerWidth:typeof t=="object"&&t.clientWidth||0}function kT(t){return nr&&!t?window.innerHeight:typeof t=="object"&&t.clientHeight||0}function MT(t){const o=nr&&!t?window.navigator.userAgent:"ssr";function e(V){return!!o.match(V)}const n=e(/android/i),s=e(/iphone|ipad|ipod/i),i=e(/cordova/i),r=e(/electron/i),a=e(/chrome/i),d=e(/edge/i),u=e(/firefox/i),c=e(/opera/i),p=e(/win/i),h=e(/mac/i),g=e(/linux/i);return{android:n,ios:s,cordova:i,electron:r,chrome:a,edge:d,firefox:u,opera:c,win:p,mac:h,linux:g,touch:Idt,ssr:o==="ssr"}}function sct(t,o){const{thresholds:e,mobileBreakpoint:n}=rct(t),s=rr(kT(o)),i=rr(MT(o)),r=Pt({}),a=rr(WT(o));function d(){s.value=kT(),a.value=WT()}function u(){d(),i.value=MT()}return Kl(()=>{const c=a.value<e.sm,p=a.value<e.md&&!c,h=a.value<e.lg&&!(p||c),g=a.value<e.xl&&!(h||p||c),V=a.value<e.xxl&&!(g||h||p||c),b=a.value>=e.xxl,x=c?"xs":p?"sm":h?"md":g?"lg":V?"xl":"xxl",v=typeof n=="number"?n:e[n],I=a.value<v;r.xs=c,r.sm=p,r.md=h,r.lg=g,r.xl=V,r.xxl=b,r.smAndUp=!c,r.mdAndUp=!(c||p),r.lgAndUp=!(c||p||h),r.xlAndUp=!(c||p||h||g),r.smAndDown=!(h||g||V||b),r.mdAndDown=!(g||V||b),r.lgAndDown=!(V||b),r.xlAndDown=!b,r.name=x,r.height=s.value,r.width=a.value,r.mobile=I,r.mobileBreakpoint=n,r.platform=i.value,r.thresholds=e}),nr&&window.addEventListener("resize",d,{passive:!0}),{...T0(r),update:u,ssr:!!o}}const act=Symbol.for("vuetify:goto");function lct(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:t=>t,easeInQuad:t=>t**2,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t**2:-1+(4-2*t)*t,easeInCubic:t=>t**3,easeOutCubic:t=>--t**3+1,easeInOutCubic:t=>t<.5?4*t**3:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t**4,easeOutQuart:t=>1- --t**4,easeInOutQuart:t=>t<.5?8*t**4:1-8*--t**4,easeInQuint:t=>t**5,easeOutQuint:t=>1+--t**5,easeInOutQuint:t=>t<.5?16*t**5:1+16*--t**5}}}function uct(t,o){return{rtl:o.isRtl,options:zr(lct(),t)}}const dct={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",eyeDropper:"mdi-eyedropper"},mct={component:t=>Yl(vR,{...t,class:"mdi"})},cct=[String,Function,Object,Array],OT=Symbol.for("vuetify:icons"),ep=nu({icon:{type:cct},tag:{type:String,required:!0}},"icon");SR()({name:"VComponentIcon",props:ep(),setup(t,o){let{slots:e}=o;return()=>{const n=t.icon;return E(t.tag,null,{default:()=>{var s;return[t.icon?E(n,null,null):(s=e.default)==null?void 0:s.call(e)]}})}}});const fct=zd({name:"VSvgIcon",inheritAttrs:!1,props:ep(),setup(t,o){let{attrs:e}=o;return()=>E(t.tag,vs(e,{style:null}),{default:()=>[E("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(t.icon)?t.icon.map(n=>Array.isArray(n)?E("path",{d:n[0],"fill-opacity":n[1]},null):E("path",{d:n},null)):E("path",{d:t.icon},null)])]})}});zd({name:"VLigatureIcon",props:ep(),setup(t){return()=>E(t.tag,null,{default:()=>[t.icon]})}});const vR=zd({name:"VClassIcon",props:ep(),setup(t){return()=>E(t.tag,{class:t.icon},null)}});function pct(){return{svg:{component:fct},class:{component:vR}}}function Cct(t){const o=pct(),e=(t==null?void 0:t.defaultSet)??"mdi";return e==="mdi"&&!o.mdi&&(o.mdi=mct),zr({defaultSet:e,sets:o,aliases:{...dct,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},t)}const Cf=Symbol.for("vuetify:theme"),hct=nu({theme:String},"theme");function $T(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function gct(){var n,s;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$T();const o=$T();if(!t)return{...o,isDisabled:!0};const e={};for(const[i,r]of Object.entries(t.themes??{})){const a=r.dark||i==="dark"?(n=o.themes)==null?void 0:n.dark:(s=o.themes)==null?void 0:s.light;e[i]=zr(a,r)}return zr(o,{...t,themes:e})}function Fct(t){const o=gct(t),e=ve(o.defaultTheme),n=ve(o.themes),s=Kt(()=>{const c={};for(const[p,h]of Object.entries(n.value)){const g=c[p]={...h,colors:{...h.colors}};if(o.variations)for(const V of o.variations.colors){const b=g.colors[V];if(b)for(const x of["lighten","darken"]){const v=x==="lighten"?omt:nmt;for(const I of mR(o.variations[x],1))g.colors[`${V}-${x}-${I}`]=qdt(v(ir(b),I))}}for(const V of Object.keys(g.colors)){if(/^on-[a-z]/.test(V)||g.colors[`on-${V}`])continue;const b=`on-${V}`,x=ir(g.colors[V]);g.colors[b]=hR(x)}}return c}),i=Kt(()=>s.value[e.value]),r=Kt(()=>{var V;const c=[];(V=i.value)!=null&&V.dark&&la(c,":root",["color-scheme: dark"]),la(c,":root",HT(i.value));for(const[b,x]of Object.entries(s.value))la(c,`.v-theme--${b}`,[`color-scheme: ${x.dark?"dark":"normal"}`,...HT(x)]);const p=[],h=[],g=new Set(Object.values(s.value).flatMap(b=>Object.keys(b.colors)));for(const b of g)/^on-[a-z]/.test(b)?la(h,`.${b}`,[`color: rgb(var(--v-theme-${b})) !important`]):(la(p,`.bg-${b}`,[`--v-theme-overlay-multiplier: var(--v-theme-${b}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${b})) !important`,`color: rgb(var(--v-theme-on-${b})) !important`]),la(h,`.text-${b}`,[`color: rgb(var(--v-theme-${b})) !important`]),la(h,`.border-${b}`,[`--v-border-color: var(--v-theme-${b})`]));return c.push(...p,...h),c.map((b,x)=>x===0?b:` ${b}`).join("")});function a(){return{style:[{children:r.value,id:"vuetify-theme-stylesheet",nonce:o.cspNonce||!1}]}}function d(c){if(o.isDisabled)return;const p=c._context.provides.usehead;if(p)if(p.push){const g=p.push(a);nr&&uo(r,()=>{g.patch(a)})}else nr?(p.addHeadObjs(Kt(a)),Kl(()=>p.updateDOM())):p.addHeadObjs(a());else{let V=function(){if(typeof document<"u"&&!g){const b=document.createElement("style");b.type="text/css",b.id="vuetify-theme-stylesheet",o.cspNonce&&b.setAttribute("nonce",o.cspNonce),g=b,document.head.appendChild(g)}g&&(g.innerHTML=r.value)};var h=V;let g=nr?document.getElementById("vuetify-theme-stylesheet"):null;nr?uo(r,V,{immediate:!0}):V()}}const u=Kt(()=>o.isDisabled?void 0:`v-theme--${e.value}`);return{install:d,isDisabled:o.isDisabled,name:e,themes:n,current:i,computedThemes:s,themeClasses:u,styles:r,global:{name:e,current:i}}}function yct(t){iu("provideTheme");const o=wr(Cf,null);if(!o)throw new Error("Could not find Vuetify theme injection");const e=Kt(()=>t.theme??o.name.value),n=Kt(()=>o.themes.value[e.value]),s=Kt(()=>o.isDisabled?void 0:`v-theme--${e.value}`),i={...o,name:e,current:n,themeClasses:s};return Pf(Cf,i),i}function la(t,o,e){t.push(`${o} {
|
|
94
94
|
`,...e.map(n=>` ${n};
|
|
95
95
|
`),`}
|
|
96
|
-
`)}function HT(t){const o=t.dark?2:1,e=t.dark?1:2,n=[];for(const[s,i]of Object.entries(t.colors)){const r=ir(i);n.push(`--v-theme-${s}: ${r.r},${r.g},${r.b}`),s.startsWith("on-")||n.push(`--v-theme-${s}-overlay-multiplier: ${imt(i)>.18?o:e}`)}for(const[s,i]of Object.entries(t.variables)){const r=typeof i=="string"&&i.startsWith("#")?ir(i):void 0,a=r?`${r.r}, ${r.g}, ${r.b}`:void 0;n.push(`--v-${s}: ${a??i}`)}return n}function RR(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:o,...e}=t,n=zr(o,e),{aliases:s={},components:i={},directives:r={}}=n,a=smt(n.defaults),d=sct(n.display,n.ssr),u=Fct(n.theme),c=Cct(n.icons),p=pmt(n.locale),h=nct(n.date,p),g=uct(n.goTo,p);return{install:b=>{for(const x in r)b.directive(x,r[x]);for(const x in i)b.component(x,i[x]);for(const x in s)b.component(x,zd({...s[x],name:x,aliasName:s[x].name}));if(u.install(b),b.provide(Ld,a),b.provide(NT,d),b.provide(Cf,u),b.provide(OT,c),b.provide(a0,p),b.provide(oct,h.options),b.provide(wT,h.instance),b.provide(act,g),nr&&n.ssr)if(b.$nuxt)b.$nuxt.hook("app:suspense:resolve",()=>{d.update()});else{const{mount:x}=b;b.mount=function(){const v=x(...arguments);return xa(()=>d.update()),b.mount=x,v}}FR.reset(),b.mixin({computed:{$vuetify(){return Pt({defaults:il.call(this,Ld),display:il.call(this,NT),theme:il.call(this,Cf),icons:il.call(this,OT),locale:il.call(this,a0),date:il.call(this,wT)})}}})},defaults:a,display:d,theme:u,icons:c,locale:p,date:h,goTo:g}}const Sct="3.7.2";RR.version=Sct;function il(t){var n,s;const o=this.$,e=((n=o.parent)==null?void 0:n.provides)??((s=o.vnode.appContext)==null?void 0:s.provides);if(e&&t in e)return e[t]}function bct(t){return Wdt(()=>{const o=[],e={};if(t.value.background)if(s0(t.value.background)){if(e.backgroundColor=t.value.background,!t.value.text&&Xdt(t.value.background)){const n=ir(t.value.background);if(n.a==null||n.a===1){const s=hR(n);e.color=s,e.caretColor=s}}}else o.push(`bg-${t.value.background}`);return t.value.text&&(s0(t.value.text)?(e.color=t.value.text,e.caretColor=t.value.text):o.push(`text-${t.value.text}`)),{colorClasses:o,colorStyles:e}})}function Tct(t,o){const e=Kt(()=>({background:bo(t)?t.value:o?t[o]:null})),{colorClasses:n,colorStyles:s}=bct(e);return{backgroundColorClasses:n,backgroundColorStyles:s}}const Bct=nu({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Vct(t){return{dimensionStyles:Kt(()=>{const e={},n=ol(t.height),s=ol(t.maxHeight),i=ol(t.maxWidth),r=ol(t.minHeight),a=ol(t.minWidth),d=ol(t.width);return n!=null&&(e.height=n),s!=null&&(e.maxHeight=s),i!=null&&(e.maxWidth=i),r!=null&&(e.minHeight=r),a!=null&&(e.minWidth=a),d!=null&&(e.width=d),e})}}const Lct=nu({elevation:{type:[Number,String],validator(t){const o=parseInt(t);return!isNaN(o)&&o>=0&&o<=24}}},"elevation");function Dct(t){return{elevationClasses:Kt(()=>{const e=bo(t)?t.value:t.elevation,n=[];return e==null||n.push(`elevation-${e}`),n})}}const vct={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function Rct(t){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E("div",{class:["v-skeleton-loader__bone",`v-skeleton-loader__${t}`]},[o])}function UT(t){const[o,e]=t.split("@");return Array.from({length:e}).map(()=>op(o))}function op(t){let o=[];if(!t)return o;const e=vct[t];if(t!==e){if(t.includes(","))return jT(t);if(t.includes("@"))return UT(t);e.includes(",")?o=jT(e):e.includes("@")?o=UT(e):e&&o.push(op(e))}return[Rct(t,o)]}function jT(t){return t.replace(/\s/g,"").split(",").map(op)}const xct=nu({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...Bct(),...Lct(),...hct()},"VSkeletonLoader"),_ct=SR()({name:"VSkeletonLoader",props:xct(),setup(t,o){let{slots:e}=o;const{backgroundColorClasses:n,backgroundColorStyles:s}=Tct(FB(t,"color")),{dimensionStyles:i}=Vct(t),{elevationClasses:r}=Dct(t),{themeClasses:a}=yct(t),{t:d}=Cmt(),u=Kt(()=>op(wdt(t.type).join(",")));return umt(()=>{var h;const c=!e.default||t.loading,p=t.boilerplate||!c?{}:{ariaLive:"polite",ariaLabel:d(t.loadingText),role:"alert"};return E("div",vs({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":t.boilerplate},a.value,n.value,r.value],style:[s.value,c?i.value:{}]},p),[c?u.value:(h=e.default)==null?void 0:h.call(e)])}),{}}}),Ict=t=>async({context:o,expression:e})=>t.numberExpressionEvaluator({numberExpression:e.ProductId,context:o}).then(n=>"https://cdn.retailrocket.net/api/1.0/partner/"+t.partnerId+"/item/"+n+"/picture/?format=png&width="+e.ImageSize.Width+"&height="+e.ImageSize.Height+"&scale=both"),Dd=t=>({Match:o=>{switch(typeof t){case"string":return(o.whenString??o.defaultValue)(t);case"number":return(o.whenNumber??o.defaultValue)(t);case"boolean":return(o.whenBoolean??o.defaultValue)(t);case"object":return Ect(t)?(o.whenArray??o.defaultValue)(t):(o.whenStruct??o.defaultValue)(t);default:return Ui(t)}}}),Ect=t=>Array.isArray(t),Pct=Ro,Zg=(t,o)=>{let e=o;for(const n of t)e=Pct(n).Match({whenPropertyName:s=>Dd(e).Match({defaultValue:()=>{throw console.error("Property not found: "+s),new Error("Property not found: "+s)},whenStruct:i=>i[s]}),whenArrayIndex:s=>Dd(e).Match({defaultValue:()=>{throw console.error("Array index out of bounds: "+s),new Error("Array index out of bounds: "+s)},whenArray:i=>i[s]})});return e},wct=(t,o)=>Dd(Zg(t,o)).Match({defaultValue:()=>{throw console.error("Value is not a list"),new Error("Value is not a list")},whenArray:e=>e}),Nct=t=>{const o=e=>Tv(e.listExpression).Match({whenContextValueExpression:n=>Promise.resolve(wct(n.Path,e.context)),whenChunkExpression:async n=>{const s=await o({listExpression:n.ListExpression,context:e.context});return s.slice(0,Math.floor(s.length/n.ChunkSize)*n.ChunkSize)},whenLimitExpression:async n=>(await o({listExpression:n.ListExpression,context:e.context})).slice(0,n.Limit),whenDataSource:n=>t.listExpressionDataSourceEvaluator(n)});return o},Act=(t,o)=>Dd(Zg(t,o)).Match({defaultValue:()=>{throw console.error("Value is not a number"),new Error("Value is not a number")},whenNumber:e=>e}),Wct=t=>o=>Bv(o.numberExpression).Match({whenContextValueExpression:e=>Promise.resolve(Act(e.Path,o.context)),whenConstValueExpression:e=>Promise.resolve(e.Value),whenListLengthExpression:async e=>t.listExpressionEvaluator({listExpression:e.ListExpression,context:o.context}).then(n=>n.length),whenDataSource:e=>Promise.resolve(t.numberExpressionDataSourceEvaluator(e))}),kct=(t,o)=>Dd(Zg(t,o)).Match({defaultValue:()=>{throw console.error("Value is not a string "+o+t),new Error("Value is not a string")},whenString:e=>e}),Mct=t=>{const o=e=>{const n=t.stringExpressionDataSourceEvaluatorFactory(o);return Vv(e.stringExpression).Match({whenConcatStringExpressions:s=>Uct({concatStringExpressions:s,stringExpressionEvaluator:o,context:e.context}),whenContextValueExpression:s=>Oct({contextValueExpression:s,context:e.context}),whenConstValueExpression:s=>jct({stringConstValueExpression:s}),whenTruncateValueExpression:s=>$ct({truncateValueExpression:s,context:e.context,stringExpressionEvaluator:o}),whenDataSource:s=>n({stringExpressionDataSource:s,context:e.context}),whenNumberToStringExpression:s=>Hct({numberToStringExpression:s,context:e.context,numberExpressionEvaluator:t.numberExpressionEvaluator})})};return o},Oct=t=>Promise.resolve(kct(t.contextValueExpression.Path,t.context)),$ct=async t=>{const o=t.truncateValueExpression.MaxLength,e=await t.stringExpressionEvaluator({stringExpression:t.truncateValueExpression.StringExpression,context:t.context});return o<e.length?e.slice(0,t.truncateValueExpression.MaxLength)+t.truncateValueExpression.Tail:e},Hct=async t=>(await t.numberExpressionEvaluator({numberExpression:t.numberToStringExpression.NumberExpression,context:t.context})).toString(),Uct=t=>Promise.all(t.concatStringExpressions.StringExpressions.map(o=>t.stringExpressionEvaluator({stringExpression:o,context:t.context}))).then(o=>o.join("")),jct=t=>Promise.resolve(t.stringConstValueExpression.Value),xR=t=>({dataStructBuilderExpression:o,context:e})=>Promise.all(Object.entries(o).map(async([n,s])=>({key:n,value:await t.expressionEvaluator({expression:s,context:e})}))).then(n=>Object.fromEntries(n.map(s=>[s.key,s.value]))),zct=t=>{const o=({expression:e,context:n})=>{const s=t.dataStructBuilderExpressionEvaluatorFactory(o);return Bg(e).Match({whenNumberExpression:i=>t.numberExpressionEvaluator({numberExpression:i,context:n}),whenStringExpression:i=>t.stringExpressionEvaluator({stringExpression:i,context:n}),whenListExpression:i=>t.listExpressionEvaluator({listExpression:i,context:n}),whenRecordBuilderExpression:i=>s({dataStructBuilderExpression:i,context:n})})};return o},ji=t=>async()=>(await t.getAllStockIdsHttpClient({body:{partnerId:t.partnerId}})).body.stockIds,Gct=t=>({getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient})}),Kct=t=>({getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient})}),Yct=t=>({getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient})}),Zct=t=>({getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient})}),Jct=t=>({getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient})}),Xct=t=>({getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient})}),Qct=t=>({getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient})}),_R=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),Jg=t=>{switch(t.stockSource._t){case"CustomerStockIdSource":return t.customerStockId;case"DefaultStoreStockIdSource":return;case"SpecificStockIdSource":return t.stockSource.Value;default:Ui(t.stockSource)}},qct=t=>async(o,e)=>{const n=Jg({stockSource:e,customerStockId:t.customerStockId});return(await t.findProductsBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:o,stockId:n}})).body.products.map(s=>_R(s))},tft=t=>({getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase}),eft=t=>({getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase}),oft=t=>async(o,e)=>{const n=Jg({stockSource:e,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:o.concat([]),stockId:n}})).body.products.map(s=>_R(s))},nft=t=>{const o=oft({partnerId:t.partnerId,productCache:{},customerStockId:t.customerStockId,getProductsByIDsHttpClient:t.productPickerModalWindowBffClient.postGetProductsByIds}),e=qct({partnerId:t.partnerId,customerStockId:t.customerStockId,findProductsBySearchPhrase:t.productPickerModalWindowBffClient.postFindProductsBySearchPhrase});return{selectProductComponentDeps:tft({getProductsByIDs:o,findProductsByPhrase:e}),productSearchComponentDeps:eft({getProductsByIDs:o,findProductsByPhrase:e})}},ift=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),rft=async t=>{const o=t.categoryIds.filter(e=>!t.categoryCache[e]);return o.length>0&&(await t.findCategoriesByID({partnerId:t.partnerId,categoryIds:o})).forEach(e=>t.categoryCache[e.id]=e),t.categoryIds.filter(e=>t.categoryCache[e]).map(e=>t.categoryCache[e])},IR=t=>async o=>(await rft({partnerId:t.partnerId,categoryIds:o,categoryCache:{},findCategoriesByID:async e=>(await t.getCategoriesByIDsHttpClient({body:{partnerId:t.partnerId,categoryIds:e.categoryIds.concat([])}})).body.categories})).map(e=>ift(e)),sft=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),aft=async t=>{const o=await t.findCategoriesByPhrase({phrase:t.phrase});return o.forEach(e=>t.categoryCache[e.id]=e),o},lft=t=>async o=>(await aft({phrase:o,categoryCache:t.categoryCache,findCategoriesByPhrase:async e=>(await t.findProductCategoriesBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:e.phrase}})).body.categories})).map(e=>sft(e)),uft=t=>({getCategoriesByIDs:t.getCategoriesByIDs}),dft=t=>({findCategoriesByName:t.findCategoriesByName,getCategoriesByIDs:t.getCategoriesByIDs}),ER=t=>{const o={},e=IR({partnerId:t.partnerId,categoryCache:o,getCategoriesByIDsHttpClient:t.productCategoryPickerModalWindowBffClient.postGetProductCategoriesByIds}),n=lft({partnerId:t.partnerId,categoryCache:o,findProductCategoriesBySearchPhrase:t.productCategoryPickerModalWindowBffClient.postFindProductCategoriesBySearchPhrase});return{selectCategoryComponentDeps:uft({getCategoriesByIDs:e}),categorySearchComponentDeps:dft({getCategoriesByIDs:e,findCategoriesByName:n})}},mft=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),Xg=t=>async(o,e)=>{const n=Jg({stockSource:e,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:o.concat([]),stockId:n}})).body.products.map(s=>mft(s))},cft=t=>({getProductsByIDs:Xg({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps}),fft=t=>({getProductsByIDs:Xg({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps}),pft=t=>({getProductsByIDs:Xg({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps}),Cft=t=>({getCategoriesByIDs:IR({partnerId:t.partnerId,categoryCache:t.categoryCache,getCategoriesByIDsHttpClient:t.getCategoriesByIDsHttpClient}),getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),categoryListComposerModalWindowDeps:ER({partnerId:t.partnerId,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient})}),hft=t=>{const o={},e={},n=nft({partnerId:t.partnerId,customerStockId:t.customerStockId,productPickerModalWindowBffClient:t.productPickerModalWindowBffClient});return{ProductListComposerModalWindowDeps:n,CategoryListComposerModalWindowDeps:ER({partnerId:t.partnerId,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient}),AbandonedBasketProductListShelfBuilderDeps:Yct({partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds}),AlternativeProductsForAbandonedBasketProductListShelfBuilderDeps:Kct({partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds}),RelatedProductsForAbandonedBasketProductListShelfBuilderDeps:Zct({partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds}),ProductListShelfBuilderDeps:pft({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:o,getProductsByIDsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetProductsByIds,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds,productListComposerModalWindowDeps:n}),RelatedProductListShelfBuilderDeps:fft({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:o,getProductsByIDsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetProductsByIds,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds,productListComposerModalWindowDeps:n}),AlternativeProductListShelfBuilderDeps:cft({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:o,getProductsByIDsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetProductsByIds,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds,productListComposerModalWindowDeps:n}),PopularFromCategoryListShelfBuilderDeps:Cft({partnerId:t.partnerId,categoryCache:e,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds,getCategoriesByIDsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetProductCategoriesByIds,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient}),PopularProductListShelfBuilderDeps:Gct({partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds}),LatestProductListShelfBuilderDeps:Jct({partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds}),SaleByPopularProductListShelfBuilderDeps:Xct({partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds}),SaleByLatestProductListShelfBuilderDeps:Qct({partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds})}},gft=t=>({abandonedBasketProductShelfDataSourceExpressionBuilderModalDeps:hft({partnerId:t.partnerId,customerStockId:t.customerStockId,productShelfBuilderModalWindowBffClient:t.productShelfBuilderModalWindowBffClient,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient,productPickerModalWindowBffClient:t.productPickerModalWindowBffClient})}),Fft={},yft={class:"icon-hover d-flex align-items-center justify-content-center"};function Sft(t,o){return S(),P("i",yft,o[0]||(o[0]=[f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[f("path",{d:"M3.33333 8.33333C3.33333 8.54227 3.64067 8.9056 4.35365 9.26207C5.27603 9.72327 6.58451 10 8 10C9.41547 10 10.7239 9.72327 11.6463 9.26207C12.3593 8.9056 12.6667 8.54227 12.6667 8.33333V6.8858C11.5667 7.56547 9.88487 8 8 8C6.11515 8 4.43331 7.56547 3.33333 6.8858V8.33333ZM12.6667 10.2191C11.5667 10.8988 9.88487 11.3333 8 11.3333C6.11515 11.3333 4.43331 10.8988 3.33333 10.2191V11.6667C3.33333 11.8756 3.64067 12.2389 4.35365 12.5954C5.27603 13.0566 6.58451 13.3333 8 13.3333C9.41547 13.3333 10.7239 13.0566 11.6463 12.5954C12.3593 12.2389 12.6667 11.8756 12.6667 11.6667V10.2191ZM2 11.6667V5C2 3.34315 4.68629 2 8 2C11.3137 2 14 3.34315 14 5V11.6667C14 13.3235 11.3137 14.6667 8 14.6667C4.68629 14.6667 2 13.3235 2 11.6667ZM8 6.66667C9.41547 6.66667 10.7239 6.38995 11.6463 5.92875C12.3593 5.57227 12.6667 5.20895 12.6667 5C12.6667 4.79105 12.3593 4.42773 11.6463 4.07125C10.7239 3.61005 9.41547 3.33333 8 3.33333C6.58451 3.33333 5.27603 3.61005 4.35365 4.07125C3.64067 4.42773 3.33333 4.79105 3.33333 5C3.33333 5.20895 3.64067 5.57227 4.35365 5.92875C5.27603 6.38995 6.58451 6.66667 8 6.66667Z",fill:"black"})],-1)]))}const bft=mt(Fft,[["render",Sft]]),PR=t=>bv(t.listExpression,o=>o.ChunkExpression,o=>o.ListExpression.LimitExpression,o=>o.ListExpression.DataSource).match({none:()=>or.None,some:([o,e,n,s])=>t.productShelfFactoryFromDataSource({limit:n.Limit,atLeast:e.ChunkSize,dataSourceExpression:s}).match({none:()=>or.None,some:i=>Sa.Some(i)})}),Tft={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},Bft={id:"dropdownMenuAlgorithmSelector",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false","data-test":"list-selector__select-button"},Vft={"data-test":"list-selector__current-value"},Lft={class:"bootstrap-styles dropdown-menu w-100 rounded-2","data-test":"list-selector__options","aria-labelledby":"dropdownMenuAlgorithmSelector"},Dft=["onClick"],vft={class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer"},Rft=dt({__name:"ListSelector",props:{list:{},currentKey:{}},emits:["update:currentKey"],setup(t,{emit:o}){const e=t,n=Pt({isDropdownMenuShown:!1,currentKey:e.currentKey}),s=a=>{n.currentKey=a},i=Kt(()=>e.list[n.currentKey]),r=o;return(a,d)=>(S(),P("div",Tft,[f("button",Bft,[f("span",Vft,O(i.value),1),E(jo)]),f("ul",Lft,[(S(!0),P(Dt,null,Fe(e.list,(u,c)=>(S(),P("li",{key:c,class:"bootstrap-styles dropdown-item p-0","data-test":"list-selector__option",onClick:()=>{s(c),r("update:currentKey",c)}},[f("span",vft,O(u),1)],8,Dft))),128))])]))}}),xft=t=>{for(const o in t)if(t[o]!==void 0)return o;throw Error("")},_ft={class:"bootstrap-styles fw-bold mb-5"},Ift={class:"bootstrap-styles container-fluid mb-5"},Eft={class:"bootstrap-styles row gx-2"},Pft={class:"bootstrap-styles col-6"},wft={class:"bootstrap-styles input-number__wrapper bg-color-input border rounded-2 py-1 px-3 d-flex position-relative","data-test":"product-shelf-limiter__products-at-least"},Nft={class:"bootstrap-styles input-group-prepend me-14 cursor-default"},Aft={class:"input-group-text"},Wft={class:"bootstrap-styles col-6"},kft={class:"bootstrap-styles input-number__wrapper bg-color-input border rounded-2 py-1 px-3 d-flex position-relative","data-test":"product-shelf-limiter__products-limit"},Mft={class:"bootstrap-styles input-group-prepend me-14 cursor-default"},Oft={class:"input-group-text"},zi=dt({__name:"ProductListShelfLimiter",props:{productsAtLeast:{},productsLimit:{}},emits:["update:productsAtLeast","update:productsLimit"],setup(t,{emit:o}){const e=t,n=o;return(s,i)=>(S(),P(Dt,null,[f("label",_ft,O(B(F)("productShelfBuilderComponent.productShelfBuilders.productListShelfLimiterLabel")),1),f("div",Ift,[f("div",Eft,[f("div",Pft,[f("div",wft,[f("div",Nft,[f("span",Aft,O(B(F)("productShelfBuilderComponent.productShelfBuilders.productsAtLeast")),1)]),E(Ao,{modelValue:e.productsAtLeast,"onUpdate:modelValue":i[0]||(i[0]=r=>n("update:productsAtLeast",r))},null,8,["modelValue"])])]),f("div",Wft,[f("div",kft,[f("div",Mft,[f("span",Oft,O(B(F)("productShelfBuilderComponent.productShelfBuilders.productsLimit")),1)]),E(Ao,{modelValue:e.productsLimit,"onUpdate:modelValue":i[1]||(i[1]=r=>n("update:productsLimit",r))},null,8,["modelValue"])])])])])],64))}}),zT=t=>({_t:"SpecificStockIdSource",Value:t}),ui=()=>({_t:"DefaultStoreStockIdSource"}),$ft=["value","placeholder"],Hft=["tabindex","onClick"],Uft={class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer"},jft={key:0,class:"bootstrap-styles dropdown-item dropdown-item__empty p-0"},zft={class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-default"},Gft={for:"default-stock-checkbox",class:"bootstrap-styles user-select-none label__checkbox-input"},Kft=dt({__name:"StockSelector",props:{stockIdList:{},stockSource:{}},emits:["onStockSourceUpdated"],setup(t,{emit:o}){const e=t,n=g=>{switch(g._t){case"CustomerStockIdSource":return"";case"DefaultStoreStockIdSource":return"";case"SpecificStockIdSource":return g.Value}},s=Kt(()=>e.stockIdList.filter(g=>g.includes(i.searchPhrase))),i=Pt({isDropdownMenuShown:!1,searchPhrase:n(e.stockSource),stockSource:e.stockSource}),r=g=>{g.target.checked?(i.searchPhrase="",i.stockSource=ui()):i.stockSource=zT(i.searchPhrase),h("onStockSourceUpdated",i.stockSource)},a=g=>{i.isDropdownMenuShown=!1,i.stockSource=zT(g),i.searchPhrase=g,h("onStockSourceUpdated",i.stockSource)},d=g=>{i.isDropdownMenuShown=!0,i.searchPhrase=g},u=g=>{g.relatedTarget===null&&(i.searchPhrase=n(i.stockSource),i.isDropdownMenuShown=!1)},c=ve(null),p=()=>{i.isDropdownMenuShown=!0,xa(()=>{var g;c.value&&((g=c.value.querySelector(".dropdown-item.selected"))==null||g.scrollIntoView())})},h=o;return(g,V)=>(S(),P(Dt,null,[f("div",{class:at([{"pe-none":e.stockSource._t==="DefaultStoreStockIdSource"},"bootstrap-styles stock-selector dropdown d-flex justify-content-between w-100 border rounded-2 bg-color-input position-relative mb-5"])},[f("input",{class:at(["bootstrap-styles w-100 text-start py-1 px-3 stock-selector__input",{disabled:e.stockSource._t==="DefaultStoreStockIdSource"}]),value:e.stockSource._t==="DefaultStoreStockIdSource"?B(F)("productShelfBuilderComponent.productShelfBuilders.defaultStock"):i.searchPhrase,placeholder:B(F)("productShelfBuilderComponent.productShelfBuilders.stockPlaceholder"),onInput:V[0]||(V[0]=b=>d(b.target.value)),onFocusin:V[1]||(V[1]=()=>p()),onBlur:V[2]||(V[2]=b=>u(b))},null,42,$ft),E(jo,{class:at(["stock-selector__icon",{"stock-selector__icon-rotate":i.isDropdownMenuShown}])},null,8,["class"]),i.stockSource._t==="SpecificStockIdSource"?(S(),P("ul",{key:0,ref_key:"refStockIdListWrapper",ref:c,class:at(["bootstrap-styles stock-selector__dropdown-menu w-100 rounded-2",{"d-block":i.isDropdownMenuShown}])},[(S(!0),P(Dt,null,Fe(s.value,(b,x)=>(S(),P("li",{key:x,class:at(["bootstrap-styles dropdown-item p-0",{selected:b===i.stockSource.Value}]),tabindex:x,onClick:()=>a(b)},[f("span",Uft,O(b),1)],10,Hft))),128)),s.value.length===0?(S(),P("li",jft,[f("span",zft,O(`${B(F)("productShelfBuilderComponent.productShelfBuilders.emptySearch")} "${i.searchPhrase}"`),1)])):bt("",!0)],2)):bt("",!0)],2),f("div",{class:at([{"disabled pe-none":e.stockIdList.length===0},"bootstrap-styles d-flex justify-content-start align-items-center"])},[E(Hr,{id:"default-stock-checkbox",checked:e.stockSource._t==="DefaultStoreStockIdSource",onChange:V[3]||(V[3]=b=>r(b))},null,8,["checked"]),f("label",Gft,O(B(F)("productShelfBuilderComponent.productShelfBuilders.defaultStockCheckbox")),1)],2)],64))}});const Gi=mt(Kft,[["__scopeId","data-v-2adccb72"]]),Yft={class:"bootstrap-styles fw-bold mb-5"},Zft={class:"bootstrap-styles container-fluid mb-8"},Jft={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-center align-items-center border-blue-selected mb-8 algorithm-description"},Xft={class:"bootstrap-styles me-3"},Qft=dt({__name:"PopularProductListShelfBuilder",props:{deps:{},popularProductListShelf:{}},emits:["updatedPopularProductListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({stockIdList:[],isStockLoaded:!1});n.isStockLoaded=!1,e.deps.getAllStockIds().then(i=>{n.stockIdList=i,n.isStockLoaded=!0});const s=o;return(i,r)=>(S(),P(Dt,null,[E(Jn,{class:at(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isStockLoaded}])},null,8,["class"]),f("div",{class:at(["bootstrap-styles container-fluid px-11 mt-8 position-relative",{invisible:!n.isStockLoaded}])},[f("label",Yft,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",Zft,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.popularProductListShelf.StockSource,onOnStockSourceUpdated:r[0]||(r[0]=a=>{s("updatedPopularProductListShelf",{...e.popularProductListShelf,StockSource:a})})},null,8,["stockIdList","stockSource"])]),f("div",Jft,[f("div",Xft,[f("i",null,[E(Ti)])]),f("div",null,O(B(F)("productShelfBuilderComponent.productShelfBuilders.popularProductListDescription")),1)]),E(zi,{productsAtLeast:e.popularProductListShelf.AtLeast,productsLimit:e.popularProductListShelf.Limit,"onUpdate:productsAtLeast":r[1]||(r[1]=a=>s("updatedPopularProductListShelf",{...e.popularProductListShelf,AtLeast:a})),"onUpdate:productsLimit":r[2]||(r[2]=a=>s("updatedPopularProductListShelf",{...e.popularProductListShelf,Limit:a}))},null,8,["productsAtLeast","productsLimit"])],2)],64))}});const qft=mt(Qft,[["__scopeId","data-v-9f862dd9"]]),wR=Ro,Ii=t=>wR(t).Match({whenCustomerStockId:()=>({_t:"CustomerStockIdSource"}),whenDefaultStoreStockId:()=>({_t:"DefaultStoreStockIdSource"}),whenSpecificStockId:o=>({_t:"SpecificStockIdSource",Value:o.Value})}),NR=Ro,tpt=Ro,AR=t=>Sa.Some(NR(t.dataSourceExpression).Match({whenAbandonedBasketProductList:({StockSource:o})=>({AbandonedBasketProductListShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(o)}}),whenRelatedProductsForAbandonedBasketProductList:({StockSource:o})=>({RelatedProductsForAbandonedBasketListShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(o)}}),whenAlternativeProductsForAbandonedBasketProductList:({StockSource:o})=>({AlternativeProductsForAbandonedBasketListShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(o)}}),whenProductList:({ProductIds:o,StockSource:e})=>({ProductListShelf:{ProductInternalIDs:o,Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(e)}}),whenRelatedProductsFor:({ProductIds:o,StockSource:e})=>({RelatedProductsForProductListShelf:{ProductInternalIDs:o,Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(e)}}),whenAlternativeProductsFor:({ProductIds:o,StockSource:e})=>({AlternativeProductsForProductListShelf:{ProductInternalIDs:o,Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(e)}}),whenPopularProductsInCategories:({CategoryIds:o,StockSource:e})=>({PopularProductsInCategoryListShelf:{CategoryIdList:o,Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(e)}}),whenPopular:({StockSource:o})=>({PopularProductsShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(o)}}),whenLatest:({StockSource:o})=>({LatestProductsShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(o)}}),whenSaleByPopular:({StockSource:o})=>({SaleByPopularProductsShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(o)}}),whenSaleByLatest:({StockSource:o})=>({SaleByLatestProductsShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(o)}})})),Ei=t=>({ChunkExpression:{ChunkSize:t.atLeast,ListExpression:{LimitExpression:{Limit:t.limit,ListExpression:{DataSource:t.dataSource}}}}}),Pi=t=>{switch(t._t){case"CustomerStockIdSource":return{CustomerStockId:{}};case"DefaultStoreStockIdSource":return{DefaultStoreStockId:{}};case"SpecificStockIdSource":return{SpecificStockId:{Value:t.Value}};default:return Ui(t)}},ept=t=>tpt(t).Match({whenAbandonedBasketProductListShelf:({AtLeast:o,Limit:e,StockSource:n})=>Ei({limit:e,atLeast:o,dataSource:{AbandonedBasketProductList:{StockSource:Pi(n)}}}),whenRelatedProductsForAbandonedBasketListShelf:({AtLeast:o,Limit:e,StockSource:n})=>Ei({limit:e,atLeast:o,dataSource:{RelatedProductsForAbandonedBasketProductList:{StockSource:Pi(n)}}}),whenAlternativeProductsForAbandonedBasketListShelf:({AtLeast:o,Limit:e,StockSource:n})=>Ei({limit:e,atLeast:o,dataSource:{AlternativeProductsForAbandonedBasketProductList:{StockSource:Pi(n)}}}),whenProductListShelf:({ProductInternalIDs:o,AtLeast:e,Limit:n,StockSource:s})=>Ei({limit:n,atLeast:e,dataSource:{ProductList:{ProductIds:o,StockSource:Pi(s)}}}),whenRelatedProductsForProductListShelf:({ProductInternalIDs:o,AtLeast:e,Limit:n,StockSource:s})=>Ei({limit:n,atLeast:e,dataSource:{RelatedProductsFor:{ProductIds:o,StockSource:Pi(s)}}}),whenAlternativeProductsForProductListShelf:({ProductInternalIDs:o,AtLeast:e,Limit:n,StockSource:s})=>Ei({limit:n,atLeast:e,dataSource:{AlternativeProductsFor:{ProductIds:o,StockSource:Pi(s)}}}),whenPopularProductsInCategoryListShelf:({CategoryIdList:o,AtLeast:e,Limit:n,StockSource:s})=>Ei({limit:n,atLeast:e,dataSource:{PopularProductsInCategories:{CategoryIds:o,StockSource:Pi(s)}}}),whenPopularProductsShelf:({AtLeast:o,Limit:e,StockSource:n})=>Ei({limit:e,atLeast:o,dataSource:{Popular:{StockSource:Pi(n)}}}),whenLatestProductsShelf:({AtLeast:o,Limit:e,StockSource:n})=>Ei({limit:e,atLeast:o,dataSource:{Latest:{StockSource:Pi(n)}}}),whenSaleByPopularProductsShelf:({AtLeast:o,Limit:e,StockSource:n})=>Ei({limit:e,atLeast:o,dataSource:{SaleByPopular:{StockSource:Pi(n)}}}),whenSaleByLatestProductsShelf:({AtLeast:o,Limit:e,StockSource:n})=>Ei({limit:e,atLeast:o,dataSource:{SaleByLatest:{StockSource:Pi(n)}}})}),opt={class:"bootstrap-styles container-fluid px-11 mt-8"},npt={class:"bootstrap-styles fw-bold mb-5"},ipt={class:"bootstrap-styles container-fluid mb-8"},rpt={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-center align-items-center border-blue-selected mb-8 algorithm-description"},spt={class:"bootstrap-styles me-3"},apt=dt({__name:"AbandonedBasketProductListShelfBuilder",props:{abandonedBasketProductListShelf:{},deps:{}},emits:["updatedAbandonedBasketProductListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({stockIdList:[]});e.deps.getAllStockIds().then(i=>{n.stockIdList=i});const s=o;return(i,r)=>(S(),P("div",opt,[f("label",npt,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",ipt,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.abandonedBasketProductListShelf.StockSource,onOnStockSourceUpdated:r[0]||(r[0]=a=>{s("updatedAbandonedBasketProductListShelf",{...e.abandonedBasketProductListShelf,StockSource:a})})},null,8,["stockIdList","stockSource"])]),f("div",rpt,[f("div",spt,[f("i",null,[E(Ti)])]),f("div",null,O(B(F)("productShelfBuilderComponent.productShelfBuilders.abandonedBasketProductListDescription")),1)]),E(zi,{productsAtLeast:e.abandonedBasketProductListShelf.AtLeast,productsLimit:e.abandonedBasketProductListShelf.Limit,"onUpdate:productsAtLeast":r[1]||(r[1]=a=>s("updatedAbandonedBasketProductListShelf",{...e.abandonedBasketProductListShelf,AtLeast:a})),"onUpdate:productsLimit":r[2]||(r[2]=a=>s("updatedAbandonedBasketProductListShelf",{...e.abandonedBasketProductListShelf,Limit:a}))},null,8,["productsAtLeast","productsLimit"])]))}});const lpt=mt(apt,[["__scopeId","data-v-41da2842"]]),upt={class:"bootstrap-styles container-fluid px-11 mt-8"},dpt={class:"bootstrap-styles fw-bold mb-5"},mpt={class:"bootstrap-styles container-fluid mb-8"},cpt={class:"bootstrap-styles container-fluid g-0 mb-8"},fpt={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-center align-items-center border-blue-selected mb-8 algorithm-description"},ppt={class:"bootstrap-styles me-3"},Cpt=dt({__name:"AlternativeProductsForAbandonedBasketProductListBuilder",props:{alternativeProductsForAbandonedBasketProductListShelf:{},deps:{}},emits:["updatedAlternativeProductsForAbandonedBasketProductListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({stockIdList:[]});e.deps.getAllStockIds().then(i=>{n.stockIdList=i});const s=o;return(i,r)=>(S(),P("div",upt,[f("label",dpt,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",mpt,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.alternativeProductsForAbandonedBasketProductListShelf.StockSource,onOnStockSourceUpdated:r[0]||(r[0]=a=>{s("updatedAlternativeProductsForAbandonedBasketProductListShelf",{...e.alternativeProductsForAbandonedBasketProductListShelf,StockSource:a})})},null,8,["stockIdList","stockSource"])]),f("div",cpt,[f("div",fpt,[f("div",ppt,[f("i",null,[E(Ti)])]),Ot(f("div",null,null,512),[[B(Qn),B(F)("productShelfBuilderComponent.productShelfBuilders.alternativeProductsForAbandonedBasketProductListDescription")]])])]),E(zi,{productsAtLeast:e.alternativeProductsForAbandonedBasketProductListShelf.AtLeast,productsLimit:e.alternativeProductsForAbandonedBasketProductListShelf.Limit,"onUpdate:productsAtLeast":r[1]||(r[1]=a=>s("updatedAlternativeProductsForAbandonedBasketProductListShelf",{...e.alternativeProductsForAbandonedBasketProductListShelf,AtLeast:a})),"onUpdate:productsLimit":r[2]||(r[2]=a=>s("updatedAlternativeProductsForAbandonedBasketProductListShelf",{...e.alternativeProductsForAbandonedBasketProductListShelf,Limit:a}))},null,8,["productsAtLeast","productsLimit"])]))}});const hpt=mt(Cpt,[["__scopeId","data-v-5ee3732c"]]),gpt={class:"bootstrap-styles container-fluid px-11 mt-8"},Fpt={class:"bootstrap-styles fw-bold mb-5"},ypt={class:"bootstrap-styles container-fluid mb-8"},Spt={class:"bootstrap-styles container-fluid g-0 mb-8"},bpt={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-center align-items-center border-blue-selected mb-8 algorithm-description"},Tpt={class:"bootstrap-styles me-3"},Bpt=dt({__name:"RelatedProductsForAbandonedBasketProductListBuilder",props:{relatedProductsForAbandonedBasketProductListShelf:{},deps:{}},emits:["updatedRelatedProductsForAbandonedBasketProductListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({stockIdList:[]});e.deps.getAllStockIds().then(i=>{n.stockIdList=i});const s=o;return(i,r)=>(S(),P("div",gpt,[f("label",Fpt,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",ypt,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.relatedProductsForAbandonedBasketProductListShelf.StockSource,onOnStockSourceUpdated:r[0]||(r[0]=a=>{s("updatedRelatedProductsForAbandonedBasketProductListShelf",{...e.relatedProductsForAbandonedBasketProductListShelf,StockSource:a})})},null,8,["stockIdList","stockSource"])]),f("div",Spt,[f("div",bpt,[f("div",Tpt,[f("i",null,[E(Ti)])]),Ot(f("div",null,null,512),[[B(Qn),B(F)("productShelfBuilderComponent.productShelfBuilders.relatedProductsForAbandonedBasketProductListDescription")]])])]),E(zi,{productsAtLeast:e.relatedProductsForAbandonedBasketProductListShelf.AtLeast,productsLimit:e.relatedProductsForAbandonedBasketProductListShelf.Limit,"onUpdate:productsAtLeast":r[1]||(r[1]=a=>s("updatedRelatedProductsForAbandonedBasketProductListShelf",{...e.relatedProductsForAbandonedBasketProductListShelf,AtLeast:a})),"onUpdate:productsLimit":r[2]||(r[2]=a=>s("updatedRelatedProductsForAbandonedBasketProductListShelf",{...e.relatedProductsForAbandonedBasketProductListShelf,Limit:a}))},null,8,["productsAtLeast","productsLimit"])]))}});const Vpt=mt(Bpt,[["__scopeId","data-v-eb6e385b"]]),Lpt={class:"bootstrap-styles container-fluid px-11 mt-8"},Dpt={class:"bootstrap-styles fw-bold mb-5"},vpt={class:"bootstrap-styles container-fluid mb-8"},Rpt={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-center align-items-center border-blue-selected mb-8 algorithm-description"},xpt={class:"bootstrap-styles me-3"},_pt=dt({__name:"LatestProductListShelfBuilder",props:{deps:{},latestProductListShelf:{}},emits:["updatedLatestProductListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({stockIdList:[]});e.deps.getAllStockIds().then(i=>{n.stockIdList=i});const s=o;return(i,r)=>(S(),P("div",Lpt,[f("label",Dpt,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",vpt,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.latestProductListShelf.StockSource,onOnStockSourceUpdated:r[0]||(r[0]=a=>{s("updatedLatestProductListShelf",{...e.latestProductListShelf,StockSource:a})})},null,8,["stockIdList","stockSource"])]),f("div",Rpt,[f("div",xpt,[f("i",null,[E(Ti)])]),Ot(f("div",null,null,512),[[B(Qn),B(F)("productShelfBuilderComponent.productShelfBuilders.latestProductListDescription")]])]),E(zi,{productsAtLeast:e.latestProductListShelf.AtLeast,productsLimit:e.latestProductListShelf.Limit,"onUpdate:productsAtLeast":r[1]||(r[1]=a=>s("updatedLatestProductListShelf",{...e.latestProductListShelf,AtLeast:a})),"onUpdate:productsLimit":r[2]||(r[2]=a=>s("updatedLatestProductListShelf",{...e.latestProductListShelf,Limit:a}))},null,8,["productsAtLeast","productsLimit"])]))}});const Ipt=mt(_pt,[["__scopeId","data-v-d6abe5ff"]]),Ept={class:"bootstrap-styles container-fluid px-11 mt-8"},Ppt={class:"bootstrap-styles fw-bold mb-5"},wpt={class:"bootstrap-styles container-fluid mb-8"},Npt={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-center align-items-center border-blue-selected mb-8 algorithm-description"},Apt={class:"bootstrap-styles me-3"},Wpt=dt({__name:"SaleByPopularProductListShelfBuilder",props:{deps:{},saleByPopularProductListShelf:{}},emits:["updatedSaleByPopularProductListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({stockIdList:[]});e.deps.getAllStockIds().then(i=>{n.stockIdList=i});const s=o;return(i,r)=>(S(),P("div",Ept,[f("label",Ppt,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",wpt,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.saleByPopularProductListShelf.StockSource,onOnStockSourceUpdated:r[0]||(r[0]=a=>{s("updatedSaleByPopularProductListShelf",{...e.saleByPopularProductListShelf,StockSource:a})})},null,8,["stockIdList","stockSource"])]),f("div",Npt,[f("div",Apt,[f("i",null,[E(Ti)])]),Ot(f("div",null,null,512),[[B(Qn),B(F)("productShelfBuilderComponent.productShelfBuilders.saleByPopularProductListDescription")]])]),E(zi,{productsAtLeast:e.saleByPopularProductListShelf.AtLeast,productsLimit:e.saleByPopularProductListShelf.Limit,"onUpdate:productsAtLeast":r[1]||(r[1]=a=>s("updatedSaleByPopularProductListShelf",{...e.saleByPopularProductListShelf,AtLeast:a})),"onUpdate:productsLimit":r[2]||(r[2]=a=>s("updatedSaleByPopularProductListShelf",{...e.saleByPopularProductListShelf,Limit:a}))},null,8,["productsAtLeast","productsLimit"])]))}});const kpt=mt(Wpt,[["__scopeId","data-v-eb00a4b2"]]),Mpt={class:"bootstrap-styles container-fluid px-11 mt-8"},Opt={class:"bootstrap-styles fw-bold mb-5"},$pt={class:"bootstrap-styles container-fluid mb-8"},Hpt={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-center align-items-center border-blue-selected mb-8 algorithm-description"},Upt={class:"bootstrap-styles me-3"},jpt=dt({__name:"SaleByLatestProductListShelfBuilder",props:{saleByLatestProductListShelf:{},deps:{}},emits:["updatedSaleByLatestProductListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({stockIdList:[]});e.deps.getAllStockIds().then(i=>{n.stockIdList=i});const s=o;return(i,r)=>(S(),P("div",Mpt,[f("label",Opt,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",$pt,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.saleByLatestProductListShelf.StockSource,onOnStockSourceUpdated:r[0]||(r[0]=a=>{s("updatedSaleByLatestProductListShelf",{...e.saleByLatestProductListShelf,StockSource:a})})},null,8,["stockIdList","stockSource"])]),f("div",Hpt,[f("div",Upt,[f("i",null,[E(Ti)])]),Ot(f("div",null,null,512),[[B(Qn),B(F)("productShelfBuilderComponent.productShelfBuilders.saleByLatestProductListDescription")]])]),E(zi,{productsAtLeast:e.saleByLatestProductListShelf.AtLeast,productsLimit:e.saleByLatestProductListShelf.Limit,"onUpdate:productsAtLeast":r[1]||(r[1]=a=>s("updatedSaleByLatestProductListShelf",{...e.saleByLatestProductListShelf,AtLeast:a})),"onUpdate:productsLimit":r[2]||(r[2]=a=>s("updatedSaleByLatestProductListShelf",{...e.saleByLatestProductListShelf,Limit:a}))},null,8,["productsAtLeast","productsLimit"])]))}});const zpt=mt(jpt,[["__scopeId","data-v-48bf1030"]]),Gpt={},Kpt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function Ypt(t,o){return S(),P("svg",Kpt,o[0]||(o[0]=[f("path",{d:"M12.0208 11.0778L14.876 13.9329L13.9332 14.8757L11.078 12.0206C10.0514 12.8419 8.7495 13.3333 7.3335 13.3333C4.0215 13.3333 1.3335 10.6453 1.3335 7.33325C1.3335 4.02125 4.0215 1.33325 7.3335 1.33325C10.6455 1.33325 13.3335 4.02125 13.3335 7.33325C13.3335 8.74925 12.8422 10.0512 12.0208 11.0778ZM10.6833 10.5831C11.4985 9.74298 12.0002 8.59698 12.0002 7.33325C12.0002 4.75492 9.91183 2.66659 7.3335 2.66659C4.75516 2.66659 2.66683 4.75492 2.66683 7.33325C2.66683 9.91158 4.75516 11.9999 7.3335 11.9999C8.59723 11.9999 9.74323 11.4983 10.5834 10.6831L10.6833 10.5831Z",fill:"var(--gray-500)"},null,-1)]))}const WR=mt(Gpt,[["render",Ypt]]),Zpt={},Jpt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xpt(t,o){return S(),P("svg",Jpt,o[0]||(o[0]=[f("path",{d:"M12.0194 11.0778L14.8745 13.9329L13.9317 14.8757L11.0766 12.0206C10.05 12.8419 8.74803 13.3333 7.33203 13.3333C4.02003 13.3333 1.33203 10.6453 1.33203 7.33325C1.33203 4.02125 4.02003 1.33325 7.33203 1.33325C10.644 1.33325 13.332 4.02125 13.332 7.33325C13.332 8.74925 12.8407 10.0512 12.0194 11.0778ZM10.6818 10.5831C11.497 9.74298 11.9987 8.59698 11.9987 7.33325C11.9987 4.75492 9.91036 2.66659 7.33203 2.66659C4.7537 2.66659 2.66536 4.75492 2.66536 7.33325C2.66536 9.91158 4.7537 11.9999 7.33203 11.9999C8.59576 11.9999 9.74176 11.4983 10.5819 10.6831L10.6818 10.5831Z",fill:"white"},null,-1)]))}const kR=mt(Zpt,[["render",Xpt]]),Qpt={class:"bootstrap-styles row g-0 mb-7"},qpt={class:"bootstrap-styles col-8 d-flex justify-content-between align-items-center"},tCt={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex w-100"},eCt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},oCt=["placeholder"],nCt={class:"bootstrap-styles ps-1 me-7"},iCt={key:0,class:"bootstrap-styles d-flex justify-content-center align-items-center icon-fill"},rCt={class:"bootstrap-styles col-4"},sCt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1 icon-stroke"},aCt=dt({__name:"ProductSearchBar",props:{isButtonAddAllEnable:{type:Boolean},isLoaded:{type:Boolean}},emits:["search","addAllFoundProducts"],setup(t,{emit:o}){const e=t,n=Pt({phrase:""}),s=()=>{n.phrase.length&&i("search",n.phrase)},i=o;return(r,a)=>(S(),P("div",Qpt,[f("div",qpt,[f("div",tCt,[f("i",eCt,[E(WR)]),f("form",{class:"bootstrap-styles w-100 search-form",onSubmit:Le(s,["prevent"])},[Ot(f("input",{"onUpdate:modelValue":a[0]||(a[0]=d=>n.phrase=d),type:"text",class:"bootstrap-styles w-100",placeholder:B(F)("productListComposerModalWindow.searchInputPlaceholder"),required:""},null,8,oCt),[[En,n.phrase]])],32),Ot(f("button",{class:"bootstrap-styles px-14",onClick:a[1]||(a[1]=d=>n.phrase="")},a[3]||(a[3]=[f("i",{class:"bootstrap-styles d-flex justify-content-center align-items-center icon-hover-stroke"},[f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 16 16",fill:"none"},[f("path",{d:"M3 3L13 13",stroke:"var(--gray-500)"}),f("path",{d:"M13 3L3 13",stroke:"var(--gray-500)"})])],-1)]),512),[[_a,n.phrase.length>0]])]),f("div",nCt,[f("button",{class:at([{"button__active-700":n.phrase.length,button__locked:!e.isLoaded||!n.phrase.length},"bootstrap-styles d-flex justify-content-center align-items-center py-1 px-3 rounded-2 button__disabled-700"]),onClick:s},[e.isLoaded?(S(),P("i",iCt,[E(kR)])):(S(),st(fr,{key:1}))],2)])]),f("div",rCt,[f("button",{class:at([{"button__active-100 button__hover-blue-100":e.isButtonAddAllEnable,button__locked:!e.isButtonAddAllEnable},"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 bg-blue-selected button__disabled-100 w-100 me-1"]),onClick:a[2]||(a[2]=()=>i("addAllFoundProducts"))},[f("i",sCt,[E(Yf)]),je(" "+O(B(F)("productListComposerModalWindow.transferAllButton")),1)],2)])]))}});const lCt=mt(aCt,[["__scopeId","data-v-4461b11f"]]),uCt={},dCt={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mCt(t,o){return S(),P("svg",dCt,o[0]||(o[0]=[f("path",{d:"M5 11.75C5 7.89453 8.11719 4.75 12 4.75C15.8555 4.75 19 7.89453 19 11.75C19 15.6328 15.8555 18.75 12 18.75C8.11719 18.75 5 15.6328 5 11.75ZM12 14.8125C12.3555 14.8125 12.6562 14.5391 12.6562 14.1562V12.4062H14.4062C14.7617 12.4062 15.0625 12.1328 15.0625 11.75C15.0625 11.3945 14.7617 11.0938 14.4062 11.0938H12.6562V9.34375C12.6562 8.98828 12.3555 8.6875 12 8.6875C11.6172 8.6875 11.3438 8.98828 11.3438 9.34375V11.0938H9.59375C9.21094 11.0938 8.9375 11.3945 8.9375 11.75C8.9375 12.1328 9.21094 12.4062 9.59375 12.4062H11.3438V14.1562C11.3438 14.5391 11.6172 14.8125 12 14.8125Z",fill:"var(--blue-400)"},null,-1)]))}const MR=mt(uCt,[["render",mCt]]),cCt={},fCt={width:"48",height:"49",viewBox:"0 0 48 49",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function pCt(t,o){return S(),P("svg",fCt,o[0]||(o[0]=[f("rect",{x:"2",y:"2.5",width:"44",height:"44",rx:"2.61259",fill:"#F6F6F6"},null,-1),f("path",{d:"M17.9952 30.5C17.63 30.5 17.334 30.2034 17.334 29.8377V19.1623C17.334 18.7965 17.6375 18.5 17.9952 18.5H30.0061C30.3713 18.5 30.6673 18.7966 30.6673 19.1623V29.8377C30.6673 30.2035 30.3638 30.5 30.0061 30.5H17.9952ZM29.334 26.5V19.8333H18.6673V29.1667L25.334 22.5L29.334 26.5ZM29.334 28.3856L25.334 24.3856L20.5529 29.1667H29.334V28.3856ZM21.334 23.8333C20.5976 23.8333 20.0007 23.2364 20.0007 22.5C20.0007 21.7636 20.5976 21.1667 21.334 21.1667C22.0704 21.1667 22.6673 21.7636 22.6673 22.5C22.6673 23.2364 22.0704 23.8333 21.334 23.8333Z",fill:"#999999"},null,-1)]))}const Qg=mt(cCt,[["render",pCt]]),CCt={class:"bootstrap-styles container-fluid product-list-item"},hCt={class:"bootstrap-styles row g-0 py-1"},gCt={class:"bootstrap-styles col-1"},FCt={class:"bootstrap-styles w-100 d-flex justify-content-center align-items-center product-list-item__image"},yCt=["src","alt"],SCt={class:"bootstrap-styles col-10 ps-3"},bCt={class:"bootstrap-styles h-100 d-flex flex-column align-items-start justify-content-center"},TCt={key:0,class:"bootstrap-styles mb-1 product-list-item__not-available"},BCt={class:"bootstrap-styles mb-1 text-gray-600"},VCt={"data-test":"searched-product-list__item-id"},LCt={class:"bootstrap-styles","data-test":"searched-product-list__item-name"},DCt={class:"bootstrap-styles col-1"},vCt={class:"bootstrap-styles w-100 h-100 d-flex justify-content-end align-items-center pe-14"},RCt=dt({__name:"SearchedProductListItem",props:{product:{}},emits:["addSearchedProduct"],setup(t,{emit:o}){const e=t,n=Pt({isBrokenImage:!1}),s=o;return(i,r)=>(S(),P("div",CCt,[f("div",hCt,[f("div",gCt,[f("div",FCt,[n.isBrokenImage?(S(),st(Qg,{key:1})):(S(),P("img",{key:0,class:"bootstrap-styles mw-100 mh-100",src:e.product.PictureUrl,alt:e.product.Name,"data-test":"searched-product-list__item-image",onError:r[0]||(r[0]=()=>n.isBrokenImage=!0)},null,40,yCt))])]),f("div",SCt,[f("div",bCt,[e.product.IsAvailable?bt("",!0):(S(),P("div",TCt,O(B(F)("productListComposerModalWindow.notAvailableLabel")),1)),f("div",BCt,[r[2]||(r[2]=f("span",{class:"bootstrap-styles me-14"},"ID",-1)),f("span",VCt,O(e.product.ExternalProductId),1)]),f("div",LCt,O(e.product.Name),1)])]),f("div",DCt,[f("div",vCt,[f("button",{"data-test":"searched-product-list__item-add-button",onClick:r[1]||(r[1]=a=>s("addSearchedProduct"))},[f("i",null,[E(MR)])])])])])]))}});const xCt=mt(RCt,[["__scopeId","data-v-b301cf42"]]),_Ct={class:"bootstrap-styles d-flex justify-content-center align-items-center py-7 h-100 overflow-hidden"},ICt={class:"bootstrap-styles empty-product-list d-flex flex-column justify-content-center align-items-center"},ECt={class:"bootstrap-styles bg-color-gray rounded-2 p-3"},PCt={class:"bootstrap-styles text-gray-600 p-3"},wCt=dt({__name:"EmptySearchProductList",setup(t){return(o,e)=>(S(),P("div",_Ct,[f("div",ICt,[e[0]||(e[0]=cr('<div class="bootstrap-styles"><i><svg width="29" height="145" viewBox="0 0 29 145" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.34301 0.806801C1.39524 0.535643 1.65739 0.358164 1.92855 0.410391L6.34733 1.26148C6.61849 1.31371 6.79597 1.57587 6.74374 1.84702C6.69152 2.11818 6.42936 2.29566 6.1582 2.24343L2.23039 1.48691L1.47387 5.41472C1.42164 5.68587 1.15949 5.86335 0.888327 5.81113C0.617168 5.7589 0.439689 5.49674 0.491917 5.22558L1.34301 0.806801ZM2.24802 0.621063C15.8989 20.785 26.0105 46.9369 28.2169 72.9399C30.4235 98.9456 24.7247 124.849 6.69023 144.437L5.95455 143.76C23.7465 124.435 29.4109 98.8391 27.2205 73.0245C25.0298 47.2071 14.9839 21.2171 1.41994 1.18167L2.24802 0.621063Z" fill="url(#paint0_linear_2569_17987)"></path><defs><linearGradient id="paint0_linear_2569_17987" x1="1.71323" y1="0.434833" x2="8.14345" y2="145.179" gradientUnits="userSpaceOnUse"><stop stop-color="#ADB2B8"></stop><stop offset="1" stop-color="#DBE1E8" stop-opacity="0"></stop></linearGradient></defs></svg></i></div>',1)),f("div",ECt,O(B(F)("productListComposerModalWindow.emptySearchProductListTopText")),1),f("div",PCt,O(B(F)("productListComposerModalWindow.emptySearchProductListBottomText")),1),e[1]||(e[1]=f("div",{class:"bootstrap-styles d-flex align-items-end"},[f("span",{class:"bootstrap-styles bg-color-gray rounded-2 p-3 me-1"},"123456"),je(", "),f("span",{class:"bootstrap-styles bg-color-gray rounded-2 p-3 ms-1 me-1"},"123457"),je(", "),f("span",{class:"bootstrap-styles bg-color-gray rounded-2 p-3 ms-1"},"123458")],-1))])]))}}),NCt={key:0,class:"bootstrap-styles d-flex flex-column scrollable","data-test":"searched-product-list"},ACt=dt({__name:"SearchedProductList",props:{searchedProductList:{}},emits:["addSearchedProduct"],setup(t,{emit:o}){const e=t,n=o;return(s,i)=>e.searchedProductList.length?(S(),P("div",NCt,[(S(!0),P(Dt,null,Fe(e.searchedProductList,(r,a)=>(S(),st(xCt,{key:r.InternalProductId,product:r,index:a+1,onAddSearchedProduct:d=>n("addSearchedProduct",r)},null,8,["product","index","onAddSearchedProduct"]))),128))])):(S(),st(wCt,{key:1}))}});const WCt=mt(ACt,[["__scopeId","data-v-4cc75e29"]]),kCt={class:"bootstrap-styles col-6 border-end h-100"},MCt={class:"bootstrap-styles container-fluid g-0 px-11 py-8 d-flex flex-column h-100"},OCt={key:1,class:"bootstrap-styles d-flex justify-content-center align-items-center h-100"},$Ct=dt({__name:"ProductSearchComponent",props:{deps:{},excluded:{},stockSource:{}},emits:["selected"],setup(t,{emit:o}){const e=t,n=a=>a.filter(d=>e.excluded.every(u=>d.InternalProductId!==u)),s=Pt({foundProducts:[],isLoaded:!0}),i=Ss.debounce(a=>{s.isLoaded=!1,e.deps.findProductsByPhrase(a,e.stockSource).then(d=>{s.foundProducts=d,s.isLoaded=!0})},50),r=o;return(a,d)=>(S(),P("div",kCt,[f("div",MCt,[E(lCt,{isButtonAddAllEnable:n(s.foundProducts).length>0,isLoaded:s.isLoaded,onAddAllFoundProducts:d[0]||(d[0]=()=>{r("selected",n(s.foundProducts).map(u=>u.InternalProductId))}),onSearch:d[1]||(d[1]=u=>B(i)(u))},null,8,["isButtonAddAllEnable","isLoaded"]),s.isLoaded?(S(),st(WCt,{key:0,searchedProductList:n(s.foundProducts),onAddSearchedProduct:d[2]||(d[2]=u=>r("selected",[u.InternalProductId]))},null,8,["searchedProductList"])):(S(),P("div",OCt,O(B(F)("productListComposerModalWindow.searching")),1))])]))}}),OR=t=>{const o=t.number%10===1&&t.number%100!==1,e=t.number%10>=2&&t.number%10<=4&&(t.number%100<10||t.number%100>=20);return o?t.titles.one:e?t.titles.few:t.titles.many},HCt={},UCt={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jCt(t,o){return S(),P("svg",UCt,o[0]||(o[0]=[f("path",{d:"M5 11.75C5 7.89453 8.11719 4.75 12 4.75C15.8555 4.75 19 7.89453 19 11.75C19 15.6328 15.8555 18.75 12 18.75C8.11719 18.75 5 15.6328 5 11.75ZM9.78516 10.4648L11.0703 11.75L9.78516 13.0352C9.51172 13.3086 9.51172 13.7188 9.78516 13.9648C10.0312 14.2383 10.4414 14.2383 10.6875 13.9648L11.9727 12.6797L13.2852 13.9648C13.5312 14.2383 13.9414 14.2383 14.1875 13.9648C14.4609 13.7188 14.4609 13.3086 14.1875 13.0352L12.9023 11.75L14.1875 10.4648C14.4609 10.2188 14.4609 9.80859 14.1875 9.53516C13.9414 9.28906 13.5312 9.28906 13.2852 9.53516L11.9727 10.8477L10.6875 9.53516C10.4414 9.28906 10.0312 9.28906 9.78516 9.53516C9.51172 9.80859 9.51172 10.2188 9.78516 10.4648Z",fill:"#E23A4F"},null,-1)]))}const np=mt(HCt,[["render",jCt]]),zCt={class:"bootstrap-styles container-fluid product-list-item"},GCt={class:"bootstrap-styles row g-0 py-1"},KCt={class:"bootstrap-styles col-1"},YCt={class:"bootstrap-styles w-100 h-100 d-flex justify-content-start align-items-center px-14","data-test":"selected-product-list__item-index"},ZCt={class:"bootstrap-styles col-1"},JCt={class:"bootstrap-styles w-100 d-flex justify-content-center align-items-center product-list-item__image"},XCt=["src","alt"],QCt={class:"bootstrap-styles col-9 ps-3"},qCt={class:"bootstrap-styles h-100 d-flex flex-column align-items-start justify-content-center"},tht={key:0,class:"bootstrap-styles mb-1 product-list-item__not-available"},eht={class:"bootstrap-styles mb-1 text-gray-600"},oht={"data-test":"selected-product-list__item-id"},nht={class:"bootstrap-styles","data-test":"selected-product-list__item-name"},iht={class:"bootstrap-styles col-1"},rht={class:"bootstrap-styles w-100 h-100 d-flex justify-content-end align-items-center pe-14"},sht=dt({__name:"SelectedProductListItem",props:{index:{},product:{}},emits:["remove"],setup(t,{emit:o}){const e=t,n=Pt({isBrokenImage:!1}),s=o;return(i,r)=>(S(),P("div",zCt,[f("div",GCt,[f("div",KCt,[f("div",YCt,O(e.index),1)]),f("div",ZCt,[f("div",JCt,[n.isBrokenImage?(S(),st(Qg,{key:1})):(S(),P("img",{key:0,class:"bootstrap-styles mw-100 mh-100",src:e.product.PictureUrl,alt:e.product.Name,"data-test":"selected-product-list__item-image",onError:r[0]||(r[0]=()=>n.isBrokenImage=!0)},null,40,XCt))])]),f("div",QCt,[f("div",qCt,[e.product.IsAvailable?bt("",!0):(S(),P("div",tht,O(B(F)("productListComposerModalWindow.notAvailableLabel")),1)),f("div",eht,[r[2]||(r[2]=f("span",{class:"bootstrap-styles me-14"},"ID",-1)),f("span",oht,O(e.product.ExternalProductId),1)]),f("div",nht,O(e.product.Name),1)])]),f("div",iht,[f("div",rht,[f("button",{"data-test":"selected-product-list__item-remove-button",onClick:r[1]||(r[1]=a=>s("remove"))},[f("i",null,[E(np)])])])])])]))}});const aht=mt(sht,[["__scopeId","data-v-c2917fe1"]]),lht={class:"bootstrap-styles d-flex flex-column scrollable"},uht=dt({__name:"SelectedProductList",props:{selectedProductList:{}},emits:["remove"],setup(t,{emit:o}){const e=t,n=o;return(s,i)=>(S(),P("div",lht,[(S(!0),P(Dt,null,Fe(e.selectedProductList,(r,a)=>(S(),st(aht,{key:r.InternalProductId,product:r,index:a+1,onRemove:d=>n("remove",r.InternalProductId)},null,8,["product","index","onRemove"]))),128))]))}});const dht=mt(uht,[["__scopeId","data-v-90ef23ff"]]),mht={class:"bootstrap-styles container-fluid g-0 h-100 empty-product-list"},cht={class:"bootstrap-styles d-flex flex-column justify-content-center align-items-center h-100"},fht=dt({__name:"EmptyProductList",setup(t){return(o,e)=>(S(),P("div",mht,[f("div",cht,[e[0]||(e[0]=cr('<i class="bootstrap-styles mb-5"><svg width="100" height="101" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.5703 20.5264C17.5703 13.8057 23.0186 8.35742 29.7393 8.35742H63.4097L82.2847 26.6932V80.8564C82.2847 87.5771 76.8364 93.0254 70.1157 93.0254H29.7393C23.0186 93.0254 17.5703 87.5771 17.5703 80.8564V20.5264Z" fill="#E3E9FC"></path><path d="M69.3144 26.6934H82.1895L63.3144 8.35762V20.6934C63.3144 24.0071 66.0007 26.6934 69.3144 26.6934Z" fill="#A5B4E3"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M49.9997 44.0713C49.2107 44.0713 48.5711 44.7109 48.5711 45.4999V50.4999H43.5711C42.7822 50.4999 42.1426 51.1395 42.1426 51.9284C42.1426 52.7174 42.7822 53.357 43.5711 53.357H48.5711V58.357C48.5711 59.146 49.2107 59.7856 49.9997 59.7856C50.7887 59.7856 51.4283 59.146 51.4283 58.357V53.357H56.4283C57.2173 53.357 57.8569 52.7174 57.8569 51.9284C57.8569 51.1395 57.2173 50.4999 56.4283 50.4999H51.4283V45.4999C51.4283 44.7109 50.7887 44.0713 49.9997 44.0713Z" fill="#A5B4E3"></path></svg></i>',1)),f("div",null,O(B(F)("productListComposerModalWindow.emptySelectedProductList")),1)])]))}}),pht={class:"bootstrap-styles col-6 h-100"},Cht={key:0,class:"bootstrap-styles container-fluid g-0 px-11 py-9 d-flex flex-column h-100"},hht={class:"bootstrap-styles mb-7 mt-1"},ght={class:"bootstrap-styles d-flex justify-content-between align-items-center"},Fht={class:"bootstrap-styles fw-bold mb-0"},yht={class:"bootstrap-styles d-flex align-items-center gap-5"},Sht={class:"bootstrap-styles text-gray-600"},bht={key:1,class:"bootstrap-styles d-flex justify-content-center align-items-center h-100"},Tht=dt({__name:"SelectProductComponent",props:{deps:{},productIdList:{},stockSource:{}},emits:["remove","onProductListRemoved"],setup(t,{emit:o}){const e=t,n=Pt({productList:[],isLoaded:!1});ks(()=>{n.isLoaded=!1,e.deps.getProductsByIDs(e.productIdList,e.stockSource).then(i=>{n.productList=i,n.isLoaded=!0})}),uo(()=>e.productIdList,()=>{n.isLoaded=!1,e.deps.getProductsByIDs(e.productIdList,e.stockSource).then(i=>{n.productList=i,n.isLoaded=!0})});const s=o;return(i,r)=>(S(),P("div",pht,[e.productIdList.length?(S(),P("div",Cht,[f("div",hht,[f("div",ght,[f("h6",Fht,O(B(F)("productListComposerModalWindow.selectedProductListTitle")),1),f("div",yht,[f("div",Sht,O(e.productIdList.length)+" "+O(B(OR)({number:e.productIdList.length,titles:{one:B(F)("productListComposerModalWindow.selectedProductListDeclensions.one"),few:B(F)("productListComposerModalWindow.selectedProductListDeclensions.few"),many:B(F)("productListComposerModalWindow.selectedProductListDeclensions.many")}})),1),f("button",{class:"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 border border-blue-selected rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:r[0]||(r[0]=a=>s("onProductListRemoved"))},O(B(F)("productListComposerModalWindow.clearListButton")),1)])])]),n.isLoaded?(S(),st(dht,{key:0,selectedProductList:n.productList,onRemove:r[1]||(r[1]=a=>s("remove",a))},null,8,["selectedProductList"])):(S(),P("div",bht,O(B(F)("productListComposerModalWindow.loading")),1))])):(S(),st(fht,{key:1}))]))}}),Bht={class:"bootstrap-styles container-fluid g-0 d-flex flex-column product-list-composer-modal-window__body"},Vht={class:"bootstrap-styles row g-0 flex-grow-1 h-100 d-flex"},Lht=dt({__name:"ProductListComposerModalWindow",props:{deps:{},stockSource:{},internalIProductDs:{}},emits:["cancel","apply"],setup(t,{emit:o}){const e=t,n=Pt({selectedProductIDs:[...e.internalIProductDs]}),s=()=>{i("cancel")},i=o;return(r,a)=>(S(),st(wn,{class:"product-list-composer-modal-window",headerText:B(F)("productListComposerModalWindow.title"),onClose:a[5]||(a[5]=()=>s())},{body:de(()=>[f("div",Bht,[f("div",Vht,[E($Ct,{excluded:n.selectedProductIDs,deps:e.deps.productSearchComponentDeps,stockSource:e.stockSource,onSelected:a[0]||(a[0]=d=>{n.selectedProductIDs=[...n.selectedProductIDs,...d]})},null,8,["excluded","deps","stockSource"]),E(Tht,{productIdList:n.selectedProductIDs,deps:e.deps.selectProductComponentDeps,stockSource:e.stockSource,onRemove:a[1]||(a[1]=d=>{n.selectedProductIDs=n.selectedProductIDs.filter(u=>u!==d)}),onOnProductListRemoved:a[2]||(a[2]=()=>n.selectedProductIDs=[])},null,8,["productIdList","deps","stockSource"])])])]),"footer-actions":de(()=>[f("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 border border-blue-selected rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:a[3]||(a[3]=Le(d=>s(),["stop"]))},O(B(F)("productListComposerModalWindow.cancelButton")),1),f("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 border rounded-2 bg-color-selected text-white cursor-pointer",onClick:a[4]||(a[4]=Le(d=>i("apply",n.selectedProductIDs),["stop"]))},O(B(F)("productListComposerModalWindow.applyButton")),1)]),_:1},8,["headerText"]))}});const qg=mt(Lht,[["__scopeId","data-v-47cda5d9"]]),Dht={class:"bootstrap-styles container-fluid product-list-item"},vht={class:"bootstrap-styles row g-0 py-1"},Rht={class:"bootstrap-styles col-1 m-auto"},xht={class:"bootstrap-styles w-100 h-100 d-flex flex-column justify-content-start align-items-center px-14"},_ht={class:"product-list-item__sort-button"},Iht={"data-test":"product-list-item__index"},Eht={class:"product-list-item__sort-button"},Pht={class:"bootstrap-styles col-1 m-auto"},wht={class:"bootstrap-styles w-100 d-flex justify-content-center align-items-center product-list-item__image"},Nht=["alt","src"],Aht={class:"bootstrap-styles col-9 ps-3"},Wht={class:"bootstrap-styles h-100 d-flex flex-column align-items-start justify-content-center"},kht={key:0,class:"bootstrap-styles mb-1 product-list-item__not-available"},Mht={class:"bootstrap-styles mb-1 text-gray-600"},Oht={"data-test":"product-list-item__id"},$ht={class:"bootstrap-styles col-1"},Hht={class:"bootstrap-styles w-100 h-100 d-flex justify-content-end align-items-center pe-14"},Uht=dt({__name:"ProductListItem",props:{index:{},product:{}},emits:["remove","moveUp","moveDown"],setup(t,{emit:o}){const e=t,n=Pt({isBrokenImage:!1}),s=o;return(i,r)=>(S(),P("div",Dht,[f("div",vht,[f("div",Rht,[f("div",xht,[f("div",_ht,[f("button",{class:"bootstrap-styles d-flex justify-content-center align-items-center w-100 h-100","data-test":"product-list-item__move-up-button",onClick:r[0]||(r[0]=a=>s("moveUp"))},[E(mv)])]),f("span",Iht,O(e.index),1),f("div",Eht,[f("button",{class:"bootstrap-styles d-flex justify-content-center align-items-center w-100 h-100","data-test":"product-list-item__move-down-button",onClick:r[1]||(r[1]=a=>s("moveDown"))},[E(cv)])])])]),f("div",Pht,[f("div",wht,[n.isBrokenImage?(S(),st(Qg,{key:1})):(S(),P("img",{key:0,alt:e.product.Name,src:e.product.PictureUrl,class:"bootstrap-styles mw-100 mh-100","data-test":"product-list-item__image",onError:r[2]||(r[2]=()=>n.isBrokenImage=!0)},null,40,Nht))])]),f("div",Aht,[f("div",Wht,[e.product.IsAvailable?bt("",!0):(S(),P("div",kht,O(B(F)("productShelfBuilderComponent.productShelfBuilders.notAvailableLabel")),1)),f("div",Mht,[r[4]||(r[4]=f("span",{class:"bootstrap-styles me-14"},"ID",-1)),f("span",Oht,O(e.product.ExternalProductId),1)]),f("div",{class:at(["bootstrap-styles",{"text-gray-600":!e.product.IsAvailable}]),"data-test":"product-list-item__name"},O(e.product.Name),3)])]),f("div",$ht,[f("div",Hht,[f("button",{"data-test":"product-list-item__remove-button",onClick:r[3]||(r[3]=a=>s("remove"))},[f("i",null,[E(np)])])])])])]))}});const jht=mt(Uht,[["__scopeId","data-v-446bb8c0"]]),zht={class:"bootstrap-styles container-fluid scrollable","data-test":"product-list"},Ght={class:"bootstrap-styles d-flex flex-column"},Kht=dt({__name:"ProductList",props:{productList:{}},emits:["updatedProductList"],setup(t,{emit:o}){const e=t,n=a=>{const d=e.productList.filter(u=>u.InternalProductId!==a);r("updatedProductList",d)},s=a=>{if(a===e.productList.length-1)return;const d=[...e.productList],u=d.splice(a,1);d.splice(a+1,0,u[0]),r("updatedProductList",d)},i=a=>{if(a===0)return;const d=[...e.productList],u=d.splice(a,1);d.splice(a-1,0,u[0]),r("updatedProductList",d)},r=o;return(a,d)=>(S(),P("div",zht,[f("div",Ght,[(S(!0),P(Dt,null,Fe(e.productList,(u,c)=>(S(),st(jht,{key:u.InternalProductId,index:c+1,product:u,"data-test":"product-list__item",onRemove:p=>n(u.InternalProductId),onMoveUp:p=>i(c),onMoveDown:p=>s(c)},null,8,["index","product","onRemove","onMoveUp","onMoveDown"]))),128))])]))}});const tF=mt(Kht,[["__scopeId","data-v-1906e819"]]),Yht={class:"bootstrap-styles fw-bold mb-5"},Zht={class:"bootstrap-styles container-fluid mb-8"},Jht={class:"bootstrap-styles position-relative"},Xht={key:1,class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-center align-items-center border-blue-selected mb-8 algorithm-description"},Qht={class:"bootstrap-styles me-3"},qht={class:"bootstrap-styles container-fluid mb-5"},t0t=dt({__name:"ProductListShelfBuilder",props:{deps:{},productListShelf:{}},emits:["updatedProductListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({productListComposerModalWindowIsShown:!1,productList:[],stockIdList:[],isProductListLoaded:!1,isStockLoaded:!1}),s=(r,a)=>{n.isProductListLoaded=!1,e.deps.getProductsByIDs(r,a).then(d=>{n.productList=d,n.isProductListLoaded=!0})};s(e.productListShelf.ProductInternalIDs,e.productListShelf.StockSource),e.deps.getAllStockIds().then(r=>{n.stockIdList=r,n.isStockLoaded=!0});const i=o;return(r,a)=>(S(),P(Dt,null,[E(Jn,{class:at(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isStockLoaded}])},null,8,["class"]),f("div",{class:at(["bootstrap-styles container-fluid px-11 mt-8",{invisible:!n.isStockLoaded}])},[f("label",Yht,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",Zht,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.productListShelf.StockSource,onOnStockSourceUpdated:a[0]||(a[0]=d=>{i("updatedProductListShelf",{...e.productListShelf,StockSource:d}),s(e.productListShelf.ProductInternalIDs,d)})},null,8,["stockIdList","stockSource"])]),f("div",Jht,[E(Jn,{class:at(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isProductListLoaded}])},null,8,["class"]),n.productList.length>0?(S(),st(tF,{key:0,class:at({"mb-8":n.productList.length,invisible:!n.isProductListLoaded}),productList:n.productList,onUpdatedProductList:a[1]||(a[1]=d=>{n.productList=d,i("updatedProductListShelf",{...e.productListShelf,ProductInternalIDs:d.map(u=>u.InternalProductId)})})},null,8,["class","productList"])):(S(),P("div",Xht,[f("div",Qht,[f("i",null,[E(Ti)])]),Ot(f("div",null,null,512),[[B(Qn),B(F)("productShelfBuilderComponent.productShelfBuilders.productListDescription")]])]))]),f("div",qht,[f("button",{class:"bootstrap-styles button__hover-blue-100 d-flex justify-content-center align-items-center text-color-selected border rounded-2 bg-blue-selected border-blue-selected w-100 py-1 px-3",onClick:a[2]||(a[2]=d=>n.productListComposerModalWindowIsShown=!0)},O(B(F)("productShelfBuilderComponent.productShelfBuilders.productsSelectButton")),1)]),E(zi,{productsAtLeast:e.productListShelf.AtLeast,productsLimit:e.productListShelf.Limit,"onUpdate:productsAtLeast":a[3]||(a[3]=d=>i("updatedProductListShelf",{...e.productListShelf,AtLeast:d})),"onUpdate:productsLimit":a[4]||(a[4]=d=>i("updatedProductListShelf",{...e.productListShelf,Limit:d}))},null,8,["productsAtLeast","productsLimit"])],2),(S(),st(mo,{to:"#app"},[n.productListComposerModalWindowIsShown?(S(),st(qg,{key:0,deps:e.deps.productListComposerModalWindowDeps,internalIProductDs:e.productListShelf.ProductInternalIDs,stockSource:e.productListShelf.StockSource,onApply:a[5]||(a[5]=d=>{n.productListComposerModalWindowIsShown=!1,i("updatedProductListShelf",{...e.productListShelf,ProductInternalIDs:d}),s(d,e.productListShelf.StockSource)}),onCancel:a[6]||(a[6]=()=>n.productListComposerModalWindowIsShown=!1)},null,8,["deps","internalIProductDs","stockSource"])):bt("",!0)]))],64))}});const e0t=mt(t0t,[["__scopeId","data-v-c6314696"]]),o0t={class:"bootstrap-styles fw-bold mb-5"},n0t={class:"bootstrap-styles container-fluid mb-8"},i0t={class:"bootstrap-styles position-relative"},r0t={key:1,class:"bootstrap-styles container-fluid g-0 mb-8"},s0t={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-between align-items-center border-blue-selected algorithm-description"},a0t={class:"bootstrap-styles me-3"},l0t={class:"bootstrap-styles container-fluid mb-5"},u0t=dt({__name:"RelatedProductListShelfBuilder",props:{deps:{},relatedProductListShelf:{}},emits:["updatedRelatedProductListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({isProductListComposerModalWindowShown:!1,productList:[],stockIdList:[],isProductListLoaded:!1,isStockLoaded:!1}),s=(r,a)=>{n.isProductListLoaded=!1,e.deps.getProductsByIDs(r,a).then(d=>{n.productList=d,n.isProductListLoaded=!0})};s(e.relatedProductListShelf.ProductInternalIDs,e.relatedProductListShelf.StockSource),e.deps.getAllStockIds().then(r=>{n.stockIdList=r,n.isStockLoaded=!0});const i=o;return(r,a)=>(S(),P(Dt,null,[E(Jn,{class:at(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isStockLoaded}])},null,8,["class"]),f("div",{class:at(["bootstrap-styles container-fluid px-11 mt-8",{invisible:!n.isStockLoaded}])},[f("label",o0t,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",n0t,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.relatedProductListShelf.StockSource,onOnStockSourceUpdated:a[0]||(a[0]=d=>{i("updatedRelatedProductListShelf",{...e.relatedProductListShelf,StockSource:d}),s(e.relatedProductListShelf.ProductInternalIDs,d)})},null,8,["stockIdList","stockSource"])]),f("div",i0t,[E(Jn,{class:at(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isProductListLoaded}])},null,8,["class"]),n.productList.length>0?(S(),st(tF,{key:0,class:at({"mb-8":n.productList.length,invisible:!n.isProductListLoaded}),productList:n.productList,onUpdatedProductList:a[1]||(a[1]=d=>{n.productList=d,i("updatedRelatedProductListShelf",{...e.relatedProductListShelf,ProductInternalIDs:d.map(u=>u.InternalProductId)})})},null,8,["class","productList"])):(S(),P("div",r0t,[f("div",s0t,[f("div",a0t,[f("i",null,[E(Ti)])]),Ot(f("div",null,null,512),[[B(Qn),B(F)("productShelfBuilderComponent.productShelfBuilders.relatedProductListDescription")]])])]))]),f("div",l0t,[f("button",{class:"bootstrap-styles button__hover-blue-100 d-flex justify-content-center align-items-center text-color-selected border rounded-2 bg-blue-selected border-blue-selected w-100 py-1 px-3",onClick:a[2]||(a[2]=d=>n.isProductListComposerModalWindowShown=!0)},O(B(F)("productShelfBuilderComponent.productShelfBuilders.productsSelectButton")),1)]),E(zi,{productsAtLeast:e.relatedProductListShelf.AtLeast,productsLimit:e.relatedProductListShelf.Limit,"onUpdate:productsAtLeast":a[3]||(a[3]=d=>i("updatedRelatedProductListShelf",{...e.relatedProductListShelf,AtLeast:d})),"onUpdate:productsLimit":a[4]||(a[4]=d=>i("updatedRelatedProductListShelf",{...e.relatedProductListShelf,Limit:d}))},null,8,["productsAtLeast","productsLimit"])],2),(S(),st(mo,{to:"#app"},[n.isProductListComposerModalWindowShown?(S(),st(qg,{key:0,deps:e.deps.productListComposerModalWindowDeps,internalIProductDs:e.relatedProductListShelf.ProductInternalIDs,stockSource:e.relatedProductListShelf.StockSource,onApply:a[5]||(a[5]=d=>{n.isProductListComposerModalWindowShown=!1,i("updatedRelatedProductListShelf",{...e.relatedProductListShelf,ProductInternalIDs:d}),s(d,e.relatedProductListShelf.StockSource)}),onCancel:a[6]||(a[6]=()=>n.isProductListComposerModalWindowShown=!1)},null,8,["deps","internalIProductDs","stockSource"])):bt("",!0)]))],64))}});const d0t=mt(u0t,[["__scopeId","data-v-55cda6b9"]]),m0t={},c0t={class:"bootstrap-styles d-flex justify-content-center align-items-center py-7 h-100 overflow-hidden"};function f0t(t,o){return S(),P("div",c0t,o[0]||(o[0]=[cr('<div class="bootstrap-styles empty-product-list d-flex flex-column justify-content-center align-items-center"><div class="bootstrap-styles"><i><svg width="29" height="145" viewBox="0 0 29 145" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.34301 0.806801C1.39524 0.535643 1.65739 0.358164 1.92855 0.410391L6.34733 1.26148C6.61849 1.31371 6.79597 1.57587 6.74374 1.84702C6.69152 2.11818 6.42936 2.29566 6.1582 2.24343L2.23039 1.48691L1.47387 5.41472C1.42164 5.68587 1.15949 5.86335 0.888327 5.81113C0.617168 5.7589 0.439689 5.49674 0.491917 5.22558L1.34301 0.806801ZM2.24802 0.621063C15.8989 20.785 26.0105 46.9369 28.2169 72.9399C30.4235 98.9456 24.7247 124.849 6.69023 144.437L5.95455 143.76C23.7465 124.435 29.4109 98.8391 27.2205 73.0245C25.0298 47.2071 14.9839 21.2171 1.41994 1.18167L2.24802 0.621063Z" fill="url(#paint0_linear_2569_17987)"></path><defs><linearGradient id="paint0_linear_2569_17987" x1="1.71323" y1="0.434833" x2="8.14345" y2="145.179" gradientUnits="userSpaceOnUse"><stop stop-color="#ADB2B8"></stop><stop offset="1" stop-color="#DBE1E8" stop-opacity="0"></stop></linearGradient></defs></svg></i></div><div class="bootstrap-styles text-gray-600 p-3"> Введите название категории, чтобы отобразились результаты </div></div>',1)]))}const p0t=mt(m0t,[["render",f0t]]),C0t={class:"bootstrap-styles container-fluid category-list-item"},h0t={class:"bootstrap-styles row g-0 py-1"},g0t={class:"bootstrap-styles col-11"},F0t={class:"bootstrap-styles h-100 d-flex flex-column align-items-start justify-content-center"},y0t={class:"bootstrap-styles d-flex justify-content-start align-items-center mb-1"},S0t={class:"bootstrap-styles fw-bold me-1"},b0t={class:"bootstrap-styles text-gray-600"},T0t={class:"bootstrap-styles"},B0t={class:"bootstrap-styles col-1"},V0t={class:"bootstrap-styles w-100 h-100 d-flex justify-content-end align-items-center pe-14"},L0t=dt({__name:"SearchedCategoryListItem",props:{category:{}},emits:["addSearchedCategory"],setup(t,{emit:o}){const e=t,n=o;return(s,i)=>(S(),P("div",C0t,[f("div",h0t,[f("div",g0t,[f("div",F0t,[f("div",y0t,[f("div",S0t,O(e.category.Name),1),f("div",b0t,[i[1]||(i[1]=f("span",{class:"bootstrap-styles me-14"},"ID",-1)),f("span",null,O(e.category.CategoryId),1)])]),f("div",T0t,O(e.category.Path),1)])]),f("div",B0t,[f("div",V0t,[f("button",{onClick:i[0]||(i[0]=r=>n("addSearchedCategory"))},[f("i",null,[E(MR)])])])])])]))}});const D0t=mt(L0t,[["__scopeId","data-v-3de1bdba"]]),v0t={key:0,class:"bootstrap-styles d-flex flex-column scrollable"},R0t=dt({__name:"SearchedCategoryList",props:{searchedCategoryList:{}},emits:["addSearchedCategory"],setup(t,{emit:o}){const e=t,n=o;return(s,i)=>e.searchedCategoryList.length?(S(),P("div",v0t,[(S(!0),P(Dt,null,Fe(e.searchedCategoryList,(r,a)=>(S(),st(D0t,{key:a,category:r,index:a+1,onAddSearchedCategory:d=>n("addSearchedCategory",r)},null,8,["category","index","onAddSearchedCategory"]))),128))])):(S(),st(p0t,{key:1}))}});const x0t=mt(R0t,[["__scopeId","data-v-07c9e700"]]),_0t={class:"bootstrap-styles row g-0 mb-7"},I0t={class:"bootstrap-styles col-8 d-flex justify-content-between align-items-center"},E0t={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex w-100"},P0t={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},w0t={class:"bootstrap-styles ps-1 me-7"},N0t={key:0,class:"bootstrap-styles d-flex justify-content-center align-items-center icon-fill"},A0t={class:"bootstrap-styles col-4"},W0t={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1 icon-stroke"},k0t=dt({__name:"CategorySearchBar",props:{isButtonAddAllEnable:{type:Boolean},isLoaded:{type:Boolean}},emits:["search","addAllFoundCategories"],setup(t,{emit:o}){const e=t,n=Pt({phrase:""}),s=()=>{n.phrase.length&&i("search",n.phrase)},i=o;return(r,a)=>(S(),P("div",_0t,[f("div",I0t,[f("div",E0t,[f("i",P0t,[E(WR)]),f("form",{class:"bootstrap-styles w-100 search-form",onSubmit:Le(s,["prevent"])},[Ot(f("input",{"onUpdate:modelValue":a[0]||(a[0]=d=>n.phrase=d),type:"text",class:"bootstrap-styles w-100",placeholder:"Название одной категории или список ID",required:""},null,512),[[En,n.phrase]])],32),Ot(f("button",{class:"bootstrap-styles px-14",onClick:a[1]||(a[1]=d=>n.phrase="")},a[3]||(a[3]=[f("i",{class:"bootstrap-styles d-flex justify-content-center align-items-center icon-hover-stroke"},[f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 16 16",fill:"none"},[f("path",{d:"M3 3L13 13",stroke:"var(--gray-500)"}),f("path",{d:"M13 3L3 13",stroke:"var(--gray-500)"})])],-1)]),512),[[_a,n.phrase.length>0]])]),f("div",w0t,[f("button",{class:at([{"button__active-700":n.phrase.length,button__locked:!e.isLoaded||!n.phrase.length},"bootstrap-styles d-flex justify-content-center align-items-center py-1 px-3 rounded-2 button__disabled-700"]),onClick:s},[e.isLoaded?(S(),P("i",N0t,[E(kR)])):(S(),st(fr,{key:1}))],2)])]),f("div",A0t,[f("button",{class:at([{"button__active-100 button__hover-blue-100":e.isButtonAddAllEnable,button__locked:!e.isButtonAddAllEnable},"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 bg-blue-selected button__disabled-100 w-100 me-1"]),onClick:a[2]||(a[2]=()=>i("addAllFoundCategories"))},[f("i",W0t,[E(Yf)]),a[4]||(a[4]=je(" Перенести всё "))],2)])]))}});const M0t=mt(k0t,[["__scopeId","data-v-5292c2c5"]]),O0t={class:"bootstrap-styles col-6 border-end h-100"},$0t={class:"bootstrap-styles container-fluid g-0 px-11 py-8 d-flex flex-column h-100"},H0t={key:1,class:"bootstrap-styles d-flex justify-content-center align-items-center h-100"},U0t=dt({__name:"CategorySearchComponent",props:{deps:{},excluded:{}},emits:["selected"],setup(t,{emit:o}){const e=t,n=a=>a.filter(d=>e.excluded.every(u=>d.CategoryId!==u)),s=Pt({isLoaded:!0,foundCategories:[]}),i=Ss.debounce(a=>{if(s.isLoaded=!1,a.split(",").every(u=>!isNaN(Number(u.trim())))){const u=a.split(",").map(Number);e.deps.getCategoriesByIDs(u).then(c=>{s.foundCategories=c,s.isLoaded=!0})}else e.deps.findCategoriesByName(a).then(u=>{s.foundCategories=u,s.isLoaded=!0})},50),r=o;return(a,d)=>(S(),P("div",O0t,[f("div",$0t,[E(M0t,{isButtonAddAllEnable:n(s.foundCategories).length>0,isLoaded:s.isLoaded,onAddAllFoundCategories:d[0]||(d[0]=()=>{r("selected",n(s.foundCategories).map(u=>u.CategoryId))}),onSearch:d[1]||(d[1]=u=>B(i)(u))},null,8,["isButtonAddAllEnable","isLoaded"]),s.isLoaded?(S(),st(x0t,{key:0,searchedCategoryList:n(s.foundCategories),onAddSearchedCategory:d[2]||(d[2]=u=>r("selected",[u.CategoryId]))},null,8,["searchedCategoryList"])):(S(),P("div",H0t," Загрузка... "))])]))}}),j0t={class:"bootstrap-styles container-fluid category-list-item"},z0t={class:"bootstrap-styles row g-0 py-1"},G0t={class:"bootstrap-styles col-11"},K0t={class:"bootstrap-styles h-100 d-flex flex-column align-items-start justify-content-center"},Y0t={class:"bootstrap-styles d-flex justify-content-start align-items-center mb-1"},Z0t={class:"bootstrap-styles fw-bold me-1"},J0t={class:"bootstrap-styles text-gray-600"},X0t={class:"bootstrap-styles"},Q0t={class:"bootstrap-styles col-1"},q0t={class:"bootstrap-styles w-100 h-100 d-flex justify-content-end align-items-center pe-14"},tgt=dt({__name:"SelectedCategoryListItem",props:{category:{}},emits:["remove"],setup(t,{emit:o}){const e=t,n=o;return(s,i)=>(S(),P("div",j0t,[f("div",z0t,[f("div",G0t,[f("div",K0t,[f("div",Y0t,[f("div",Z0t,O(e.category.Name),1),f("div",J0t,[i[1]||(i[1]=f("span",{class:"bootstrap-styles me-14"},"ID",-1)),f("span",null,O(e.category.CategoryId),1)])]),f("div",X0t,O(e.category.Path),1)])]),f("div",Q0t,[f("div",q0t,[f("button",{onClick:i[0]||(i[0]=r=>n("remove"))},[f("i",null,[E(np)])])])])])]))}});const egt=mt(tgt,[["__scopeId","data-v-0205956d"]]),ogt={class:"bootstrap-styles d-flex flex-column scrollable"},ngt=dt({__name:"SelectedCategoryList",props:{selectedCategoryList:{}},emits:["remove"],setup(t,{emit:o}){const e=t,n=o;return(s,i)=>(S(),P("div",ogt,[(S(!0),P(Dt,null,Fe(e.selectedCategoryList,(r,a)=>(S(),st(egt,{key:a,category:r,index:a+1,onRemove:d=>n("remove",r.CategoryId)},null,8,["category","index","onRemove"]))),128))]))}});const igt=mt(ngt,[["__scopeId","data-v-854c6a31"]]),rgt={},sgt={class:"bootstrap-styles container-fluid g-0 h-100 empty-product-list"};function agt(t,o){return S(),P("div",sgt,o[0]||(o[0]=[cr('<div class="bootstrap-styles d-flex flex-column justify-content-center align-items-center h-100"><i class="bootstrap-styles mb-5"><svg width="100" height="101" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.5703 20.5264C17.5703 13.8057 23.0186 8.35742 29.7393 8.35742H63.4097L82.2847 26.6932V80.8564C82.2847 87.5771 76.8364 93.0254 70.1157 93.0254H29.7393C23.0186 93.0254 17.5703 87.5771 17.5703 80.8564V20.5264Z" fill="#E3E9FC"></path><path d="M69.3144 26.6934H82.1895L63.3144 8.35762V20.6934C63.3144 24.0071 66.0007 26.6934 69.3144 26.6934Z" fill="#A5B4E3"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M49.9997 44.0713C49.2107 44.0713 48.5711 44.7109 48.5711 45.4999V50.4999H43.5711C42.7822 50.4999 42.1426 51.1395 42.1426 51.9284C42.1426 52.7174 42.7822 53.357 43.5711 53.357H48.5711V58.357C48.5711 59.146 49.2107 59.7856 49.9997 59.7856C50.7887 59.7856 51.4283 59.146 51.4283 58.357V53.357H56.4283C57.2173 53.357 57.8569 52.7174 57.8569 51.9284C57.8569 51.1395 57.2173 50.4999 56.4283 50.4999H51.4283V45.4999C51.4283 44.7109 50.7887 44.0713 49.9997 44.0713Z" fill="#A5B4E3"></path></svg></i><div> Список категорий пока что пуст </div></div>',1)]))}const lgt=mt(rgt,[["render",agt]]),ugt={class:"bootstrap-styles col-6 h-100"},dgt={key:0,class:"bootstrap-styles container-fluid g-0 px-11 py-9 d-flex flex-column h-100"},mgt={class:"bootstrap-styles mb-7 mt-1"},cgt={class:"bootstrap-styles d-flex justify-content-between align-items-center"},fgt={class:"bootstrap-styles text-gray-600"},pgt={key:1,class:"bootstrap-styles d-flex justify-content-center align-items-center h-100"},Cgt=dt({__name:"SelectCategoryComponent",props:{deps:{},categoryIdList:{}},emits:["remove"],setup(t,{emit:o}){const e=t,n=Pt({isLoaded:!0,categoryList:[]});Kl(()=>{n.isLoaded=!1,e.deps.getCategoriesByIDs(e.categoryIdList).then(i=>{n.categoryList=i,n.isLoaded=!0})});const s=o;return(i,r)=>(S(),P("div",ugt,[e.categoryIdList.length?(S(),P("div",dgt,[f("div",mgt,[f("div",cgt,[r[1]||(r[1]=f("h6",{class:"bootstrap-styles fw-bold mb-0"}," Список категорий ",-1)),f("div",fgt,O(e.categoryIdList.length)+" "+O(B(OR)({number:e.categoryIdList.length,titles:{one:"категория",few:"категории",many:"категорий"}})),1)])]),n.isLoaded?(S(),st(igt,{key:0,selectedCategoryList:n.categoryList,onRemove:r[0]||(r[0]=a=>s("remove",a))},null,8,["selectedCategoryList"])):(S(),P("div",pgt," Загрузка... "))])):(S(),st(lgt,{key:1}))]))}}),hgt={class:"bootstrap-styles container-fluid g-0 d-flex flex-column category-list-composer-modal-window__body"},ggt={class:"bootstrap-styles row g-0 flex-grow-1 h-100 d-flex"},Fgt=dt({__name:"CategoryListComposerModalWindow",props:{deps:{},categoryIdList:{}},emits:["cancel","apply"],setup(t,{emit:o}){const e=t,n=Pt({selectedCategoryIdList:[...e.categoryIdList]}),s=()=>{i("cancel")},i=o;return(r,a)=>(S(),st(wn,{class:"category-list-composer-modal-window",headerText:"Выбор категорий",onClose:a[4]||(a[4]=()=>s())},{body:de(()=>[f("div",hgt,[f("div",ggt,[E(U0t,{deps:e.deps.categorySearchComponentDeps,excluded:n.selectedCategoryIdList,onSelected:a[0]||(a[0]=d=>{n.selectedCategoryIdList=[...n.selectedCategoryIdList,...d]})},null,8,["deps","excluded"]),E(Cgt,{deps:e.deps.selectCategoryComponentDeps,categoryIdList:n.selectedCategoryIdList,onRemove:a[1]||(a[1]=d=>{n.selectedCategoryIdList=n.selectedCategoryIdList.filter(u=>u!==d)})},null,8,["deps","categoryIdList"])])])]),"footer-actions":de(()=>[f("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 border border-blue-selected rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:a[2]||(a[2]=Le(d=>s(),["stop"]))}," Отмена "),f("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 border rounded-2 bg-color-selected text-white cursor-pointer",onClick:a[3]||(a[3]=Le(d=>i("apply",n.selectedCategoryIdList),["stop"]))}," Применить ")]),_:1}))}});const ygt=mt(Fgt,[["__scopeId","data-v-ca3ead8c"]]),Sgt={class:"bootstrap-styles container-fluid category-list-item"},bgt={class:"bootstrap-styles row g-0 py-1"},Tgt={class:"bootstrap-styles col-11"},Bgt={class:"bootstrap-styles h-100 d-flex flex-column align-items-start justify-content-center"},Vgt={class:"bootstrap-styles d-flex justify-content-start align-items-center mb-1"},Lgt={class:"bootstrap-styles fw-bold me-1"},Dgt={class:"bootstrap-styles text-gray-600"},vgt={class:"bootstrap-styles"},Rgt={class:"bootstrap-styles col-1"},xgt={class:"bootstrap-styles w-100 h-100 d-flex justify-content-end align-items-center pe-14"},_gt=dt({__name:"CategoryListItem",props:{category:{}},emits:["removeItem"],setup(t,{emit:o}){const e=t,n=o;return(s,i)=>(S(),P("div",Sgt,[f("div",bgt,[f("div",Tgt,[f("div",Bgt,[f("div",Vgt,[f("div",Lgt,O(e.category.Name),1),f("div",Dgt,[i[1]||(i[1]=f("span",{class:"bootstrap-styles me-14"},"ID",-1)),f("span",null,O(e.category.CategoryId),1)])]),f("div",vgt,O(e.category.Path),1)])]),f("div",Rgt,[f("div",xgt,[f("button",{onClick:i[0]||(i[0]=r=>n("removeItem"))},[f("i",null,[E(np)])])])])])]))}});const Igt=mt(_gt,[["__scopeId","data-v-867dfd55"]]),Egt={class:"bootstrap-styles container-fluid scrollable"},Pgt={class:"bootstrap-styles d-flex flex-column"},wgt=dt({__name:"CategoryList",props:{categoryList:{}},emits:["updatedCategoryList"],setup(t,{emit:o}){const e=t,n=i=>{const r=e.categoryList.filter(a=>a.CategoryId!==i);s("updatedCategoryList",r)},s=o;return(i,r)=>(S(),P("div",Egt,[f("div",Pgt,[(S(!0),P(Dt,null,Fe(e.categoryList,(a,d)=>(S(),st(Igt,{key:d,category:a,onRemoveItem:u=>n(a.CategoryId)},null,8,["category","onRemoveItem"]))),128))])]))}});const Ngt=mt(wgt,[["__scopeId","data-v-51b77cb1"]]),Agt={class:"bootstrap-styles fw-bold mb-5"},Wgt={class:"bootstrap-styles container-fluid mb-8"},kgt={class:"bootstrap-styles position-relative"},Mgt={key:1,class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-center align-items-center border-blue-selected mb-8 algorithm-description"},Ogt={class:"bootstrap-styles me-3"},$gt={class:"bootstrap-styles container-fluid mb-5"},Hgt=dt({__name:"PopularFromCategoryListShelfBuilder",props:{deps:{},popularFromCategoryListShelf:{}},emits:["updatedPopularFromCategoryListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({isCategoryListComposerModalWindowShown:!1,categoryList:[],stockIdList:[],isCategoryListLoaded:!1,isStockLoaded:!1}),s=r=>{n.isCategoryListLoaded=!1,e.deps.getCategoriesByIDs(r).then(a=>{n.categoryList=a,n.isCategoryListLoaded=!0})};s(e.popularFromCategoryListShelf.CategoryIdList),e.deps.getAllStockIds().then(r=>{n.stockIdList=r,n.isStockLoaded=!0});const i=o;return(r,a)=>(S(),P(Dt,null,[E(Jn,{class:at(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isStockLoaded}])},null,8,["class"]),f("div",{class:at(["bootstrap-styles container-fluid px-11 mt-8",{invisible:!n.isStockLoaded}])},[f("label",Agt,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",Wgt,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.popularFromCategoryListShelf.StockSource,onOnStockSourceUpdated:a[0]||(a[0]=d=>{i("updatedPopularFromCategoryListShelf",{...e.popularFromCategoryListShelf,StockSource:d})})},null,8,["stockIdList","stockSource"])]),f("div",kgt,[E(Jn,{class:at(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isCategoryListLoaded}])},null,8,["class"]),n.categoryList.length>0?(S(),st(Ngt,{key:0,class:at({"mb-8":n.categoryList.length,invisible:!n.isCategoryListLoaded}),categoryList:n.categoryList,onUpdatedCategoryList:a[1]||(a[1]=d=>{n.categoryList=d,i("updatedPopularFromCategoryListShelf",{...e.popularFromCategoryListShelf,CategoryIdList:d.map(u=>u.CategoryId)})})},null,8,["class","categoryList"])):(S(),P("div",Mgt,[f("div",Ogt,[f("i",null,[E(Ti)])]),Ot(f("div",null,null,512),[[B(Qn),B(F)("productShelfBuilderComponent.productShelfBuilders.popularFromCategoryListDescription")]])]))]),f("div",$gt,[f("button",{class:"bootstrap-styles button__hover-blue-100 d-flex justify-content-center align-items-center text-color-selected border rounded-2 bg-blue-selected border-blue-selected w-100 py-1 px-3",onClick:a[2]||(a[2]=d=>n.isCategoryListComposerModalWindowShown=!0)},O(B(F)("productShelfBuilderComponent.productShelfBuilders.categorySelectButton")),1)]),E(zi,{productsAtLeast:e.popularFromCategoryListShelf.AtLeast,productsLimit:e.popularFromCategoryListShelf.Limit,"onUpdate:productsAtLeast":a[3]||(a[3]=d=>i("updatedPopularFromCategoryListShelf",{...e.popularFromCategoryListShelf,AtLeast:d})),"onUpdate:productsLimit":a[4]||(a[4]=d=>i("updatedPopularFromCategoryListShelf",{...e.popularFromCategoryListShelf,Limit:d}))},null,8,["productsAtLeast","productsLimit"])],2),(S(),st(mo,{to:"#app"},[n.isCategoryListComposerModalWindowShown?(S(),st(ygt,{key:0,deps:e.deps.categoryListComposerModalWindowDeps,categoryIdList:e.popularFromCategoryListShelf.CategoryIdList,onApply:a[5]||(a[5]=d=>{n.isCategoryListComposerModalWindowShown=!1,i("updatedPopularFromCategoryListShelf",{...e.popularFromCategoryListShelf,CategoryIdList:d}),s(d)}),onCancel:a[6]||(a[6]=()=>n.isCategoryListComposerModalWindowShown=!1)},null,8,["deps","categoryIdList"])):bt("",!0)]))],64))}});const Ugt=mt(Hgt,[["__scopeId","data-v-1f890ba1"]]),jgt={class:"bootstrap-styles fw-bold mb-5"},zgt={class:"bootstrap-styles container-fluid mb-8"},Ggt={class:"bootstrap-styles position-relative"},Kgt={key:1,class:"bootstrap-styles container-fluid g-0 mb-8"},Ygt={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-between align-items-center border-blue-selected algorithm-description"},Zgt={class:"bootstrap-styles me-3"},Jgt={class:"bootstrap-styles container-fluid mb-5"},Xgt=dt({__name:"AlternativeProductListShelfBuilder",props:{deps:{},alternativeProductListShelf:{}},emits:["updatedAlternativeProductListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({isProductListComposerModalWindowShown:!1,productList:[],stockIdList:[],isProductListLoaded:!1,isStockLoaded:!1}),s=(r,a)=>{n.isProductListLoaded=!1,e.deps.getProductsByIDs(r,a).then(d=>{n.productList=d,n.isProductListLoaded=!0})};s(e.alternativeProductListShelf.ProductInternalIDs,e.alternativeProductListShelf.StockSource),e.deps.getAllStockIds().then(r=>{n.stockIdList=r,n.isStockLoaded=!0});const i=o;return(r,a)=>(S(),P(Dt,null,[E(Jn,{class:at(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isStockLoaded}])},null,8,["class"]),f("div",{class:at(["bootstrap-styles container-fluid px-11 mt-8",{invisible:!n.isStockLoaded}])},[f("label",jgt,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",zgt,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.alternativeProductListShelf.StockSource,onOnStockSourceUpdated:a[0]||(a[0]=d=>{i("updatedAlternativeProductListShelf",{...e.alternativeProductListShelf,StockSource:d}),s(e.alternativeProductListShelf.ProductInternalIDs,d)})},null,8,["stockIdList","stockSource"])]),f("div",Ggt,[E(Jn,{class:at(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isProductListLoaded}])},null,8,["class"]),n.productList.length>0?(S(),st(tF,{key:0,class:at({"mb-8":n.productList.length,invisible:!n.isProductListLoaded}),productList:n.productList,onUpdatedProductList:a[1]||(a[1]=d=>{n.productList=d,i("updatedAlternativeProductListShelf",{...e.alternativeProductListShelf,ProductInternalIDs:d.map(u=>u.InternalProductId)})})},null,8,["class","productList"])):(S(),P("div",Kgt,[f("div",Ygt,[f("div",Zgt,[f("i",null,[E(Ti)])]),Ot(f("div",null,null,512),[[B(Qn),B(F)("productShelfBuilderComponent.productShelfBuilders.alternativeProductListDescription")]])])]))]),f("div",Jgt,[f("button",{class:"bootstrap-styles button__hover-blue-100 d-flex justify-content-center align-items-center text-color-selected border rounded-2 bg-blue-selected border-blue-selected w-100 py-1 px-3",onClick:a[2]||(a[2]=d=>n.isProductListComposerModalWindowShown=!0)},O(B(F)("productShelfBuilderComponent.productShelfBuilders.productsSelectButton")),1)]),E(zi,{productsAtLeast:e.alternativeProductListShelf.AtLeast,productsLimit:e.alternativeProductListShelf.Limit,"onUpdate:productsAtLeast":a[3]||(a[3]=d=>i("updatedAlternativeProductListShelf",{...e.alternativeProductListShelf,AtLeast:d})),"onUpdate:productsLimit":a[4]||(a[4]=d=>i("updatedAlternativeProductListShelf",{...e.alternativeProductListShelf,Limit:d}))},null,8,["productsAtLeast","productsLimit"])],2),(S(),st(mo,{to:"#app"},[n.isProductListComposerModalWindowShown?(S(),st(qg,{key:0,deps:e.deps.productListComposerModalWindowDeps,internalIProductDs:e.alternativeProductListShelf.ProductInternalIDs,stockSource:e.alternativeProductListShelf.StockSource,onApply:a[5]||(a[5]=d=>{n.isProductListComposerModalWindowShown=!1,i("updatedAlternativeProductListShelf",{...e.alternativeProductListShelf,ProductInternalIDs:d}),s(d,e.alternativeProductListShelf.StockSource)}),onCancel:a[6]||(a[6]=()=>n.isProductListComposerModalWindowShown=!1)},null,8,["deps","internalIProductDs","stockSource"])):bt("",!0)]))],64))}});const Qgt=mt(Xgt,[["__scopeId","data-v-ddb604b3"]]),qgt={class:"bootstrap-styles container-fluid g-0 mt-8"},tFt={class:"bootstrap-styles container-fluid px-11"},eFt={class:"bootstrap-styles fw-bold mb-5"},oFt={class:"bootstrap-styles row g-0"},nFt={class:"bootstrap-styles container-fluid g-0 mb-8"},iFt=dt({__name:"AbandonedBasketProductShelfDataSourceExpressionBuilderModal",props:{deps:{},emailComponent:{}},emits:["cancel","apply"],setup(t,{emit:o}){const e=t,n=o,s={AbandonedBasketProductListShelf:{AtLeast:3,Limit:6,StockSource:ui()},RelatedProductsForAbandonedBasketListShelf:{AtLeast:3,Limit:6,StockSource:ui()},AlternativeProductsForAbandonedBasketListShelf:{AtLeast:3,Limit:6,StockSource:ui()},ProductListShelf:{ProductInternalIDs:[],AtLeast:3,Limit:6,StockSource:ui()},RelatedProductsForProductListShelf:{ProductInternalIDs:[],AtLeast:3,Limit:6,StockSource:ui()},AlternativeProductsForProductListShelf:{ProductInternalIDs:[],AtLeast:3,Limit:6,StockSource:ui()},PopularProductsInCategoryListShelf:{CategoryIdList:[],Limit:6,AtLeast:1,StockSource:ui()},PopularProductsShelf:{Limit:6,AtLeast:1,StockSource:ui()},LatestProductsShelf:{Limit:6,AtLeast:1,StockSource:ui()},SaleByPopularProductsShelf:{Limit:6,AtLeast:1,StockSource:ui()},SaleByLatestProductsShelf:{Limit:6,AtLeast:1,StockSource:ui()}},i=()=>{var c,p,h;return PR({listExpression:(h=(p=(c=e.emailComponent)==null?void 0:c.ContextBuilderExpression)==null?void 0:p.ProductShelfDataSource)==null?void 0:h.ListExpression,productShelfFactoryFromDataSource:AR}).match({some:g=>({currentKey:xft(g),model:{...s,...g}}),none:()=>({currentKey:"PopularProductsShelf",model:s})})},r=Pt(i()),a={AbandonedBasketProductListShelf:F("productShelfBuilderComponent.listSelector.abandonedBasketProductListShelf"),RelatedProductsForAbandonedBasketListShelf:F("productShelfBuilderComponent.listSelector.relatedProductsForAbandonedProductListShelf"),AlternativeProductsForAbandonedBasketListShelf:F("productShelfBuilderComponent.listSelector.alternativeProductsForAbandonedProductListShelf"),ProductListShelf:F("productShelfBuilderComponent.listSelector.productListShelf"),RelatedProductsForProductListShelf:F("productShelfBuilderComponent.listSelector.relatedProductsForProductListShelf"),AlternativeProductsForProductListShelf:F("productShelfBuilderComponent.listSelector.alternativeProductsForProductListShelf"),PopularProductsInCategoryListShelf:F("productShelfBuilderComponent.listSelector.popularProductsInCategoryListShelf"),PopularProductsShelf:F("productShelfBuilderComponent.listSelector.popularProductsShelf"),LatestProductsShelf:F("productShelfBuilderComponent.listSelector.latestProductsShelf"),SaleByPopularProductsShelf:F("productShelfBuilderComponent.listSelector.saleByPopularShelf"),SaleByLatestProductsShelf:F("productShelfBuilderComponent.listSelector.saleByLatestShelf")},d=()=>{r.currentKey=i().currentKey,n("cancel")},u=()=>{n("apply",{...e.emailComponent.ContextBuilderExpression,ProductShelfDataSource:{ListExpression:ept({[r.currentKey]:r.model[r.currentKey]})}})};return(c,p)=>(S(),st(wn,{class:"mass-mailing-product-shelf-builder-modal-window",headerText:B(F)("productShelfBuilderComponent.title"),onClose:p[14]||(p[14]=h=>d())},{body:de(()=>[f("div",qgt,[f("div",tFt,[f("label",eFt,O(B(F)("productShelfBuilderComponent.algorithmLabel")),1),f("div",oFt,[E(Rft,{currentKey:r.currentKey,list:a,"onUpdate:currentKey":p[0]||(p[0]=h=>r.currentKey=h)},null,8,["currentKey"])])]),f("div",nFt,[r.currentKey=="AbandonedBasketProductListShelf"?(S(),st(lpt,{key:0,abandonedBasketProductListShelf:r.model.AbandonedBasketProductListShelf,deps:e.deps.AbandonedBasketProductListShelfBuilderDeps,onUpdatedAbandonedBasketProductListShelf:p[1]||(p[1]=h=>r.model={...r.model,AbandonedBasketProductListShelf:h})},null,8,["abandonedBasketProductListShelf","deps"])):bt("",!0),r.currentKey=="AlternativeProductsForAbandonedBasketListShelf"?(S(),st(hpt,{key:1,alternativeProductsForAbandonedBasketProductListShelf:r.model.AlternativeProductsForAbandonedBasketListShelf,deps:e.deps.AlternativeProductsForAbandonedBasketProductListShelfBuilderDeps,onUpdatedAlternativeProductsForAbandonedBasketProductListShelf:p[2]||(p[2]=h=>r.model={...r.model,AlternativeProductsForAbandonedBasketListShelf:h})},null,8,["alternativeProductsForAbandonedBasketProductListShelf","deps"])):bt("",!0),r.currentKey=="RelatedProductsForAbandonedBasketListShelf"?(S(),st(Vpt,{key:2,relatedProductsForAbandonedBasketProductListShelf:r.model.RelatedProductsForAbandonedBasketListShelf,deps:e.deps.RelatedProductsForAbandonedBasketProductListShelfBuilderDeps,onUpdatedRelatedProductsForAbandonedBasketProductListShelf:p[3]||(p[3]=h=>r.model={...r.model,RelatedProductsForAbandonedBasketListShelf:h})},null,8,["relatedProductsForAbandonedBasketProductListShelf","deps"])):bt("",!0),r.currentKey=="ProductListShelf"?(S(),st(e0t,{key:3,deps:e.deps.ProductListShelfBuilderDeps,productListShelf:r.model.ProductListShelf,onUpdatedProductListShelf:p[4]||(p[4]=h=>r.model={...r.model,ProductListShelf:h})},null,8,["deps","productListShelf"])):bt("",!0),r.currentKey=="RelatedProductsForProductListShelf"?(S(),st(d0t,{key:4,deps:e.deps.RelatedProductListShelfBuilderDeps,relatedProductListShelf:r.model.RelatedProductsForProductListShelf,onUpdatedRelatedProductListShelf:p[5]||(p[5]=h=>r.model={...r.model,RelatedProductsForProductListShelf:h})},null,8,["deps","relatedProductListShelf"])):bt("",!0),r.currentKey=="AlternativeProductsForProductListShelf"?(S(),st(Qgt,{key:5,deps:e.deps.AlternativeProductListShelfBuilderDeps,alternativeProductListShelf:r.model.AlternativeProductsForProductListShelf,onUpdatedAlternativeProductListShelf:p[6]||(p[6]=h=>r.model={...r.model,AlternativeProductsForProductListShelf:h})},null,8,["deps","alternativeProductListShelf"])):bt("",!0),r.currentKey=="PopularProductsInCategoryListShelf"?(S(),st(Ugt,{key:6,deps:e.deps.PopularFromCategoryListShelfBuilderDeps,popularFromCategoryListShelf:r.model.PopularProductsInCategoryListShelf,onUpdatedPopularFromCategoryListShelf:p[7]||(p[7]=h=>r.model={...r.model,PopularProductsInCategoryListShelf:h})},null,8,["deps","popularFromCategoryListShelf"])):bt("",!0),r.currentKey=="PopularProductsShelf"?(S(),st(qft,{key:7,popularProductListShelf:r.model.PopularProductsShelf,deps:e.deps.PopularProductListShelfBuilderDeps,onUpdatedPopularProductListShelf:p[8]||(p[8]=h=>r.model={...r.model,PopularProductsShelf:h})},null,8,["popularProductListShelf","deps"])):bt("",!0),r.currentKey=="LatestProductsShelf"?(S(),st(Ipt,{key:8,latestProductListShelf:r.model.LatestProductsShelf,deps:e.deps.LatestProductListShelfBuilderDeps,onUpdatedLatestProductListShelf:p[9]||(p[9]=h=>r.model={...r.model,LatestProductsShelf:h})},null,8,["latestProductListShelf","deps"])):bt("",!0),r.currentKey=="SaleByPopularProductsShelf"?(S(),st(kpt,{key:9,saleByPopularProductListShelf:r.model.SaleByPopularProductsShelf,deps:e.deps.SaleByPopularProductListShelfBuilderDeps,onUpdatedSaleByPopularProductListShelf:p[10]||(p[10]=h=>r.model={...r.model,SaleByPopularProductsShelf:h})},null,8,["saleByPopularProductListShelf","deps"])):bt("",!0),r.currentKey=="SaleByLatestProductsShelf"?(S(),st(zpt,{key:10,saleByLatestProductListShelf:r.model.SaleByLatestProductsShelf,deps:e.deps.SaleByLatestProductListShelfBuilderDeps,onUpdatedSaleByLatestProductListShelf:p[11]||(p[11]=h=>r.model={...r.model,SaleByLatestProductsShelf:h})},null,8,["saleByLatestProductListShelf","deps"])):bt("",!0)])])]),"footer-actions":de(()=>[f("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 border border-blue-selected rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:p[12]||(p[12]=Le(h=>d(),["stop"]))},O(B(F)("productShelfBuilderComponent.cancelButton")),1),f("button",{class:at([{"cursor-not-allowed":!1},"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 border rounded-2 bg-color-selected text-white cursor-pointer"]),disabled:!1,onClick:p[13]||(p[13]=Le(h=>u(),["stop"]))},O(B(F)("productShelfBuilderComponent.applyButton")),1)]),_:1},8,["headerText"]))}}),rFt={key:0},sFt={class:"data-source-container__inner"},aFt=dt({__name:"AbandonedBasketProductShelfDataSourceExpressionBuilder",props:{deps:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:o}){const e=t,n=o,i=Pt((()=>{var d,u,c;return PR({listExpression:(c=(u=(d=e.modelValue)==null?void 0:d.ContextBuilderExpression)==null?void 0:u.ProductShelfDataSource)==null?void 0:c.ListExpression,productShelfFactoryFromDataSource:AR}).match({some:()=>({isValidExpression:!0,dataSourceModalIsShown:!1}),none:()=>({isValidExpression:!1,dataSourceModalIsShown:!1})})})()),r=()=>{i.dataSourceModalIsShown=!1},a=d=>{n("update:modelValue",{...e.modelValue,ContextBuilderExpression:d}),i.dataSourceModalIsShown=!1};return(d,u)=>i.isValidExpression?(S(),P("span",rFt,[f("button",{class:"bootstrap-styles bg-white rounded-2 shadow data-source-container",onClick:u[0]||(u[0]=()=>i.dataSourceModalIsShown=!0)},[f("span",sFt,[E(bft)])]),(S(),st(mo,{to:"#app"},[i.dataSourceModalIsShown?(S(),st(iFt,{key:0,deps:e.deps.abandonedBasketProductShelfDataSourceExpressionBuilderModalDeps,emailComponent:e.modelValue,onCancel:u[1]||(u[1]=c=>r()),onApply:u[2]||(u[2]=c=>a(c))},null,8,["deps","emailComponent"])):bt("",!0)]))])):bt("",!0)}}),ip=t=>({InternalProductId:t.internalProductId,Name:t.name,Description:t.description,Price:t.price,OldPrice:t.oldPrice,PictureUrl:t.pictureUrl,Url:t.url,CategoryIds:[],Vendor:"p.vendor"}),ua=async t=>(await t.getPopularProductsHttpClient({body:{partnerId:t.partnerId,stockId:t.stockId}})).body.recommendations.map(o=>ip(o)),Xi=t=>wR(t.stockSource).Match({whenCustomerStockId:()=>t.customerStockId,whenDefaultStoreStockId:()=>{},whenSpecificStockId:o=>o.Value}),lFt=t=>({InternalProductId:t.internalId,Name:t.name,Description:t.description,Url:t.url,Price:t.price,OldPrice:t.oldPrice,PictureUrl:t.pictureUrl,CategoryIds:[],Vendor:"p.vendor"}),uFt=async t=>(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:t.productIDs.concat([]),stockId:t.stockId}})).body.products.map(o=>lFt(o)),dFt=async t=>(await t.getRelatedProducts({body:{partnerId:t.partnerId,internalProductIds:t.productIDs.concat([]),stockId:t.stockId}})).body.recommendations.map(o=>ip(o)),mFt=async t=>(await t.getAlternativeProductsHttpClient({body:{partnerId:t.partnerId,internalProductIds:t.productIDs.concat([]),stockId:t.stockId}})).body.recommendations.map(o=>ip(o)),cFt=async t=>(await t.getPopularProductsInCategoriesHttpClient({body:{partnerId:t.partnerId,categoryIds:t.categoryIds.concat([]),stockId:t.stockId}})).body.recommendations.map(o=>ip(o)),fFt=t=>{let o={};return e=>NR(e).Match({whenAbandonedBasketProductList:({StockSource:n})=>ua({partnerId:t.partnerId,stockId:Xi({stockSource:n,customerStockId:t.customerStockId}),getPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetPopularRecommendations}),whenRelatedProductsForAbandonedBasketProductList:({StockSource:n})=>ua({partnerId:t.partnerId,stockId:Xi({stockSource:n,customerStockId:t.customerStockId}),getPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetPopularRecommendations}),whenAlternativeProductsForAbandonedBasketProductList:({StockSource:n})=>ua({partnerId:t.partnerId,stockId:Xi({stockSource:n,customerStockId:t.customerStockId}),getPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetPopularRecommendations}),whenProductList:({ProductIds:n,StockSource:s})=>uFt({partnerId:t.partnerId,productIDs:n,stockId:Xi({stockSource:s,customerStockId:t.customerStockId}),productCache:o,getProductsByIDsHttpClient:t.listExpressionDataSourceBffClient.postGetProductsByIds}),whenRelatedProductsFor:({ProductIds:n,StockSource:s})=>{var i;return dFt({partnerId:t.partnerId,productIDs:n,stockId:((i=s.SpecificStockId)==null?void 0:i.Value)??void 0,getRelatedProducts:t.listExpressionDataSourceBffClient.postGetRelatedRecommendations})},whenAlternativeProductsFor:({ProductIds:n,StockSource:s})=>mFt({partnerId:t.partnerId,productIDs:n,stockId:Xi({stockSource:s,customerStockId:t.customerStockId}),getAlternativeProductsHttpClient:t.listExpressionDataSourceBffClient.postGetAlternativeRecommendations}),whenPopularProductsInCategories:({CategoryIds:n,StockSource:s})=>cFt({partnerId:t.partnerId,categoryIds:n,stockId:Xi({stockSource:s,customerStockId:t.customerStockId}),getPopularProductsInCategoriesHttpClient:t.listExpressionDataSourceBffClient.postGetPopularInCategoriesRecommendations}),whenPopular:({StockSource:n})=>ua({partnerId:t.partnerId,stockId:Xi({stockSource:n,customerStockId:t.customerStockId}),getPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetPopularRecommendations}),whenLatest:({StockSource:n})=>ua({partnerId:t.partnerId,stockId:Xi({stockSource:n,customerStockId:t.customerStockId}),getPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetPopularRecommendations}),whenSaleByPopular:({StockSource:n})=>ua({partnerId:t.partnerId,stockId:Xi({stockSource:n,customerStockId:t.customerStockId}),getPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetPopularRecommendations}),whenSaleByLatest:({StockSource:n})=>ua({partnerId:t.partnerId,stockId:Xi({stockSource:n,customerStockId:t.customerStockId}),getPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetPopularRecommendations})})},pFt=()=>()=>Promise.resolve(0),CFt=Ro,hFt=t=>{const o=t.contactCustomData;return e=>CFt(e.stringExpressionDataSource).Match({whenAbandonedBasketContactCustomData:n=>Promise.resolve(o[n.FieldName]),whenProductImageUrlBuilderExpression:n=>t.productImageUrlBuilderExpressionEvaluator({expression:n,context:e.context})})},gFt=t=>t.triggerAbandonedBasket?JSON.parse(t.triggerAbandonedBasket.componentJson):JSON.parse(t.common.componentJson),FFt=t=>({sectionItemId:t.sectionItemId,sectionItemName:t.sectionItemName,componentTemplate:gFt(t.component)}),yFt=t=>({sectionId:t.sectionId,sectionName:t.sectionName,componentList:t.sectionItems.map(o=>FFt(o))}),SFt=t=>t.map(o=>yFt(o));var eF={},$R=Wt&&Wt.__awaiter||function(t,o,e,n){function s(i){return i instanceof e?i:new e(function(r){r(i)})}return new(e||(e=Promise))(function(i,r){function a(c){try{u(n.next(c))}catch(p){r(p)}}function d(c){try{u(n.throw(c))}catch(p){r(p)}}function u(c){c.done?i(c.value):s(c.value).then(a,d)}u((n=n.apply(t,o||[])).next())})},HR=Wt&&Wt.__generator||function(t,o){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,r=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return r.next=a(0),r.throw=a(1),r.return=a(2),typeof Symbol=="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(u){return function(c){return d([u,c])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,u[0]&&(e=0)),e;)try{if(n=1,s&&(i=u[0]&2?s.return:u[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,u[1])).done)return i;switch(s=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,s=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){e.label=u[1];break}if(u[0]===6&&e.label<i[1]){e.label=i[1],i=u;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(u);break}i[2]&&e.ops.pop(),e.trys.pop();continue}u=o.call(t,e)}catch(c){u=[6,c],s=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(eF,"__esModule",{value:!0});var UR=eF.createApi=void 0,GT=function(t,o){return function(e){return t(e,o)}},bFt=function(t){return{categories:t.categories.map(function(o){return jR(o)})}},TFt=function(t){return{categories:t.categories.map(function(o){return jR(o)})}},jR=function(t){return{id:t.id,name:t.name,path:t.path}};function BFt(t,o){return $R(this,void 0,void 0,function(){var e,n,s;return HR(this,function(i){switch(i.label){case 0:return e="wysiwyg/bff/v2/productCategoryPickerModalWindow/getProductCategoriesByIds/",n=new URLSearchParams,[4,o({path:e,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t.body),query:n.toString()})];case 1:if(s=i.sent(),s.status===200)return[2,{status:200,body:bFt(s.body)}];throw new Error("Unknown response")}})})}function VFt(t,o){return $R(this,void 0,void 0,function(){var e,n,s;return HR(this,function(i){switch(i.label){case 0:return e="wysiwyg/bff/v2/productCategoryPickerModalWindow/findProductCategoriesBySearchPhrase/",n=new URLSearchParams,[4,o({path:e,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t.body),query:n.toString()})];case 1:if(s=i.sent(),s.status===200)return[2,{status:200,body:TFt(s.body)}];throw new Error("Unknown response")}})})}var LFt=function(t){return{postGetProductCategoriesByIds:GT(BFt,t),postFindProductCategoriesBySearchPhrase:GT(VFt,t)}};UR=eF.createApi=LFt;var oF={},zR=Wt&&Wt.__awaiter||function(t,o,e,n){function s(i){return i instanceof e?i:new e(function(r){r(i)})}return new(e||(e=Promise))(function(i,r){function a(c){try{u(n.next(c))}catch(p){r(p)}}function d(c){try{u(n.throw(c))}catch(p){r(p)}}function u(c){c.done?i(c.value):s(c.value).then(a,d)}u((n=n.apply(t,o||[])).next())})},GR=Wt&&Wt.__generator||function(t,o){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,r=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return r.next=a(0),r.throw=a(1),r.return=a(2),typeof Symbol=="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(u){return function(c){return d([u,c])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,u[0]&&(e=0)),e;)try{if(n=1,s&&(i=u[0]&2?s.return:u[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,u[1])).done)return i;switch(s=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,s=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){e.label=u[1];break}if(u[0]===6&&e.label<i[1]){e.label=i[1],i=u;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(u);break}i[2]&&e.ops.pop(),e.trys.pop();continue}u=o.call(t,e)}catch(c){u=[6,c],s=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(oF,"__esModule",{value:!0});var KR=oF.createApi=void 0,KT=function(t,o){return function(e){return t(e,o)}},DFt=function(t){return{products:t.products.map(function(o){return YR(o)})}},vFt=function(t){return{products:t.products.map(function(o){return YR(o)})}},YR=function(t){return{internalId:t.internalId,externalId:t.externalId,name:t.name,pictureUrl:t.pictureUrl,isAvailable:t.isAvailable}};function RFt(t,o){return zR(this,void 0,void 0,function(){var e,n,s;return GR(this,function(i){switch(i.label){case 0:return e="wysiwyg/bff/v2/productPickerModalWindow/findProductsBySearchPhrase/",n=new URLSearchParams,[4,o({path:e,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t.body),query:n.toString()})];case 1:if(s=i.sent(),s.status===200)return[2,{status:200,body:DFt(s.body)}];throw new Error("Unknown response")}})})}function xFt(t,o){return zR(this,void 0,void 0,function(){var e,n,s;return GR(this,function(i){switch(i.label){case 0:return e="wysiwyg/bff/v2/productPickerModalWindow/getProductsByIds/",n=new URLSearchParams,[4,o({path:e,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t.body),query:n.toString()})];case 1:if(s=i.sent(),s.status===200)return[2,{status:200,body:vFt(s.body)}];throw new Error("Unknown response")}})})}var _Ft=function(t){return{postFindProductsBySearchPhrase:KT(RFt,t),postGetProductsByIds:KT(xFt,t)}};KR=oF.createApi=_Ft;const ZR="#app",wi=document.querySelector(ZR),Yt={partnerId:wi.getAttribute("data-partner-id"),wysiwygBffProxyBaseUrl:wi.getAttribute("data-wysiwyg-bff-proxy-base-url"),wysiwygTemplateEditorBffBaseUrl:wi.getAttribute("data-wysiwyg-template-editor-bff-base-url"),antiForgeryHeaderTokenName:wi.getAttribute("data-anti-forgery-header-token-name"),antiForgeryHeaderTokenValue:wi.getAttribute("data-anti-forgery-header-token-value"),antiForgeryFormTokenName:wi.getAttribute("data-anti-forgery-form-token-name"),antiForgeryFormTokenValue:wi.getAttribute("data-anti-forgery-form-token-value"),emailTemplateJson:wi.getAttribute("data-email-template-json"),previewTemplateDataJson:wi.getAttribute("data-preview-template-data-json"),resetTemplateFormUrl:wi.getAttribute("data-reset-template-form-url"),exitLink:wi.getAttribute("data-exit-link")},IFt=t=>Ko({baseUrl:t.baseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue}),EFt=Hv(Ko({baseUrl:Yt.wysiwygTemplateEditorBffBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),PFt=()=>{const t=new FormData;t.append(Yt.antiForgeryFormTokenName,Yt.antiForgeryFormTokenValue);const o=ow({method:"POST",action:Yt.resetTemplateFormUrl,formData:t});document.body.appendChild(o),o.submit()};let wFt={};const NFt=Uv(IFt({baseUrl:Yt.wysiwygBffProxyBaseUrl})),AFt=fFt({partnerId:Yt.partnerId,listExpressionDataSourceBffClient:NFt,customerStockId:void 0}),rp=Nct({listExpressionDataSourceEvaluator:AFt}),WFt=pFt(),hf=Wct({listExpressionEvaluator:rp,numberExpressionDataSourceEvaluator:WFt}),JR=Mct({listExpressionEvaluator:rp,numberExpressionEvaluator:hf,stringExpressionDataSourceEvaluatorFactory:()=>hFt({productImageUrlBuilderExpressionEvaluator:Ict({partnerId:Yt.partnerId,numberExpressionEvaluator:hf}),contactCustomData:wFt})}),XR=zct({listExpressionEvaluator:rp,numberExpressionEvaluator:hf,stringExpressionEvaluator:JR,dataStructBuilderExpressionEvaluatorFactory:t=>xR({expressionEvaluator:t})}),kFt=xR({expressionEvaluator:XR}),nF=Jc(tat,{onTemplateReset:()=>{PFt()},deps:rlt({partnerId:Yt.partnerId,exitLink:Yt.exitLink,saveEmailTemplate:async t=>(await EFt.postSaveTemplate({body:{partnerId:Yt.partnerId,templateJson:JSON.stringify(t.emailTemplate)}})).status===200?"Success":"Fail",listExpressionEvaluator:rp,numberExpressionEvaluator:hf,stringExpressionEvaluator:JR,dataStructExpressionEvaluator:kFt,expressionEvaluator:XR,getComponentLibraryFactory:t=>()=>t.getComponentLibraryHttpClient({body:{partnerId:t.partnerId,componentTypes:[{triggerAbandonedBasket:{}},{common:{}}]}}).then(o=>SFt(o.body.sections)),canProductShelfDataSourceBeConverted:()=>!1,httpClientComponentFactoryDelegate:t=>({triggerAbandonedBasket:{componentJson:JSON.stringify(t)}}),emailComponentSettingsModifierPlugin:Nlt({productShelfDataSourceExpressionBuilderComponent:aFt,deps:gft({partnerId:Yt.partnerId,customerStockId:"customerStockId",productShelfBuilderModalWindowBffClient:Kv(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),productCategoryPickerModalWindowBffClient:UR(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),productPickerModalWindowBffClient:KR(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue}))})}),initialEmailTemplate:JSON.parse(Yt.emailTemplateJson),wysiwygTemplateEditorBffClient:iat({themeLibraryBffClient:Yv(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),componentLibraryBffClient:Zv(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue}))}),addThemeLibrarySectionItemModalWindowBffClient:Qv(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),addComponentLibrarySectionItemModalWindowBffClient:Gv(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),deleteThemeLibrarySectionItemModalWindowBffClient:qv(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),deleteThemeLibrarySectionModalWindowBffClient:tR(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),editThemeLibrarySectionItemModalWindowBffClient:nR(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),createComponentLibrarySectionModalWindowBffClient:iR(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),editComponentLibrarySectionItemModalWindowBffClient:aR(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),deleteComponentLibrarySectionItemModalWindowBffClient:lR(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),createThemeLibrarySectionModalWindowBffClient:uR(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),deleteComponentLibrarySectionModalWindowBffClient:dR(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue}))})});nF.use(RR({components:{VSkeletonLoader:_ct}}));nF.use(yD);nF.mount(ZR);
|
|
96
|
+
`)}function HT(t){const o=t.dark?2:1,e=t.dark?1:2,n=[];for(const[s,i]of Object.entries(t.colors)){const r=ir(i);n.push(`--v-theme-${s}: ${r.r},${r.g},${r.b}`),s.startsWith("on-")||n.push(`--v-theme-${s}-overlay-multiplier: ${imt(i)>.18?o:e}`)}for(const[s,i]of Object.entries(t.variables)){const r=typeof i=="string"&&i.startsWith("#")?ir(i):void 0,a=r?`${r.r}, ${r.g}, ${r.b}`:void 0;n.push(`--v-${s}: ${a??i}`)}return n}function RR(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:o,...e}=t,n=zr(o,e),{aliases:s={},components:i={},directives:r={}}=n,a=smt(n.defaults),d=sct(n.display,n.ssr),u=Fct(n.theme),c=Cct(n.icons),p=pmt(n.locale),h=nct(n.date,p),g=uct(n.goTo,p);return{install:b=>{for(const x in r)b.directive(x,r[x]);for(const x in i)b.component(x,i[x]);for(const x in s)b.component(x,zd({...s[x],name:x,aliasName:s[x].name}));if(u.install(b),b.provide(Ld,a),b.provide(NT,d),b.provide(Cf,u),b.provide(OT,c),b.provide(a0,p),b.provide(oct,h.options),b.provide(wT,h.instance),b.provide(act,g),nr&&n.ssr)if(b.$nuxt)b.$nuxt.hook("app:suspense:resolve",()=>{d.update()});else{const{mount:x}=b;b.mount=function(){const v=x(...arguments);return xa(()=>d.update()),b.mount=x,v}}FR.reset(),b.mixin({computed:{$vuetify(){return Pt({defaults:il.call(this,Ld),display:il.call(this,NT),theme:il.call(this,Cf),icons:il.call(this,OT),locale:il.call(this,a0),date:il.call(this,wT)})}}})},defaults:a,display:d,theme:u,icons:c,locale:p,date:h,goTo:g}}const Sct="3.7.2";RR.version=Sct;function il(t){var n,s;const o=this.$,e=((n=o.parent)==null?void 0:n.provides)??((s=o.vnode.appContext)==null?void 0:s.provides);if(e&&t in e)return e[t]}function bct(t){return Wdt(()=>{const o=[],e={};if(t.value.background)if(s0(t.value.background)){if(e.backgroundColor=t.value.background,!t.value.text&&Xdt(t.value.background)){const n=ir(t.value.background);if(n.a==null||n.a===1){const s=hR(n);e.color=s,e.caretColor=s}}}else o.push(`bg-${t.value.background}`);return t.value.text&&(s0(t.value.text)?(e.color=t.value.text,e.caretColor=t.value.text):o.push(`text-${t.value.text}`)),{colorClasses:o,colorStyles:e}})}function Tct(t,o){const e=Kt(()=>({background:bo(t)?t.value:o?t[o]:null})),{colorClasses:n,colorStyles:s}=bct(e);return{backgroundColorClasses:n,backgroundColorStyles:s}}const Bct=nu({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Vct(t){return{dimensionStyles:Kt(()=>{const e={},n=ol(t.height),s=ol(t.maxHeight),i=ol(t.maxWidth),r=ol(t.minHeight),a=ol(t.minWidth),d=ol(t.width);return n!=null&&(e.height=n),s!=null&&(e.maxHeight=s),i!=null&&(e.maxWidth=i),r!=null&&(e.minHeight=r),a!=null&&(e.minWidth=a),d!=null&&(e.width=d),e})}}const Lct=nu({elevation:{type:[Number,String],validator(t){const o=parseInt(t);return!isNaN(o)&&o>=0&&o<=24}}},"elevation");function Dct(t){return{elevationClasses:Kt(()=>{const e=bo(t)?t.value:t.elevation,n=[];return e==null||n.push(`elevation-${e}`),n})}}const vct={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function Rct(t){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E("div",{class:["v-skeleton-loader__bone",`v-skeleton-loader__${t}`]},[o])}function UT(t){const[o,e]=t.split("@");return Array.from({length:e}).map(()=>op(o))}function op(t){let o=[];if(!t)return o;const e=vct[t];if(t!==e){if(t.includes(","))return jT(t);if(t.includes("@"))return UT(t);e.includes(",")?o=jT(e):e.includes("@")?o=UT(e):e&&o.push(op(e))}return[Rct(t,o)]}function jT(t){return t.replace(/\s/g,"").split(",").map(op)}const xct=nu({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...Bct(),...Lct(),...hct()},"VSkeletonLoader"),_ct=SR()({name:"VSkeletonLoader",props:xct(),setup(t,o){let{slots:e}=o;const{backgroundColorClasses:n,backgroundColorStyles:s}=Tct(FB(t,"color")),{dimensionStyles:i}=Vct(t),{elevationClasses:r}=Dct(t),{themeClasses:a}=yct(t),{t:d}=Cmt(),u=Kt(()=>op(wdt(t.type).join(",")));return umt(()=>{var h;const c=!e.default||t.loading,p=t.boilerplate||!c?{}:{ariaLive:"polite",ariaLabel:d(t.loadingText),role:"alert"};return E("div",vs({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":t.boilerplate},a.value,n.value,r.value],style:[s.value,c?i.value:{}]},p),[c?u.value:(h=e.default)==null?void 0:h.call(e)])}),{}}}),Ict=t=>async({context:o,expression:e})=>t.numberExpressionEvaluator({numberExpression:e.ProductId,context:o}).then(n=>"https://cdn.retailrocket.net/api/1.0/partner/"+t.partnerId+"/item/"+n+"/picture/?format=png&width="+e.ImageSize.Width+"&height="+e.ImageSize.Height+"&scale=both"),Dd=t=>({Match:o=>{switch(typeof t){case"string":return(o.whenString??o.defaultValue)(t);case"number":return(o.whenNumber??o.defaultValue)(t);case"boolean":return(o.whenBoolean??o.defaultValue)(t);case"object":return Ect(t)?(o.whenArray??o.defaultValue)(t):(o.whenStruct??o.defaultValue)(t);default:return Ui(t)}}}),Ect=t=>Array.isArray(t),Pct=Ro,Zg=(t,o)=>{let e=o;for(const n of t)e=Pct(n).Match({whenPropertyName:s=>Dd(e).Match({defaultValue:()=>{throw console.error("Property not found: "+s),new Error("Property not found: "+s)},whenStruct:i=>i[s]}),whenArrayIndex:s=>Dd(e).Match({defaultValue:()=>{throw console.error("Array index out of bounds: "+s),new Error("Array index out of bounds: "+s)},whenArray:i=>i[s]})});return e},wct=(t,o)=>Dd(Zg(t,o)).Match({defaultValue:()=>{throw console.error("Value is not a list"),new Error("Value is not a list")},whenArray:e=>e}),Nct=t=>{const o=e=>Tv(e.listExpression).Match({whenContextValueExpression:n=>Promise.resolve(wct(n.Path,e.context)),whenChunkExpression:async n=>{const s=await o({listExpression:n.ListExpression,context:e.context});return s.slice(0,Math.floor(s.length/n.ChunkSize)*n.ChunkSize)},whenLimitExpression:async n=>(await o({listExpression:n.ListExpression,context:e.context})).slice(0,n.Limit),whenDataSource:n=>t.listExpressionDataSourceEvaluator(n)});return o},Act=(t,o)=>Dd(Zg(t,o)).Match({defaultValue:()=>{throw console.error("Value is not a number"),new Error("Value is not a number")},whenNumber:e=>e}),Wct=t=>o=>Bv(o.numberExpression).Match({whenContextValueExpression:e=>Promise.resolve(Act(e.Path,o.context)),whenConstValueExpression:e=>Promise.resolve(e.Value),whenListLengthExpression:async e=>t.listExpressionEvaluator({listExpression:e.ListExpression,context:o.context}).then(n=>n.length),whenDataSource:e=>Promise.resolve(t.numberExpressionDataSourceEvaluator(e))}),kct=(t,o)=>Dd(Zg(t,o)).Match({defaultValue:()=>{throw console.error("Value is not a string "+o+t),new Error("Value is not a string")},whenString:e=>e}),Mct=t=>{const o=e=>{const n=t.stringExpressionDataSourceEvaluatorFactory(o);return Vv(e.stringExpression).Match({whenConcatStringExpressions:s=>Uct({concatStringExpressions:s,stringExpressionEvaluator:o,context:e.context}),whenContextValueExpression:s=>Oct({contextValueExpression:s,context:e.context}),whenConstValueExpression:s=>jct({stringConstValueExpression:s}),whenTruncateValueExpression:s=>$ct({truncateValueExpression:s,context:e.context,stringExpressionEvaluator:o}),whenDataSource:s=>n({stringExpressionDataSource:s,context:e.context}),whenNumberToStringExpression:s=>Hct({numberToStringExpression:s,context:e.context,numberExpressionEvaluator:t.numberExpressionEvaluator})})};return o},Oct=t=>Promise.resolve(kct(t.contextValueExpression.Path,t.context)),$ct=async t=>{const o=t.truncateValueExpression.MaxLength,e=await t.stringExpressionEvaluator({stringExpression:t.truncateValueExpression.StringExpression,context:t.context});return o<e.length?e.slice(0,t.truncateValueExpression.MaxLength)+t.truncateValueExpression.Tail:e},Hct=async t=>(await t.numberExpressionEvaluator({numberExpression:t.numberToStringExpression.NumberExpression,context:t.context})).toString(),Uct=t=>Promise.all(t.concatStringExpressions.StringExpressions.map(o=>t.stringExpressionEvaluator({stringExpression:o,context:t.context}))).then(o=>o.join("")),jct=t=>Promise.resolve(t.stringConstValueExpression.Value),xR=t=>({dataStructBuilderExpression:o,context:e})=>Promise.all(Object.entries(o).map(async([n,s])=>({key:n,value:await t.expressionEvaluator({expression:s,context:e})}))).then(n=>Object.fromEntries(n.map(s=>[s.key,s.value]))),zct=t=>{const o=({expression:e,context:n})=>{const s=t.dataStructBuilderExpressionEvaluatorFactory(o);return Bg(e).Match({whenNumberExpression:i=>t.numberExpressionEvaluator({numberExpression:i,context:n}),whenStringExpression:i=>t.stringExpressionEvaluator({stringExpression:i,context:n}),whenListExpression:i=>t.listExpressionEvaluator({listExpression:i,context:n}),whenRecordBuilderExpression:i=>s({dataStructBuilderExpression:i,context:n})})};return o},ji=t=>async()=>(await t.getAllStockIdsHttpClient({body:{partnerId:t.partnerId}})).body.stockIds,Gct=t=>({getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient})}),Kct=t=>({getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient})}),Yct=t=>({getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient})}),Zct=t=>({getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient})}),Jct=t=>({getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient})}),Xct=t=>({getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient})}),Qct=t=>({getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient})}),_R=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),Jg=t=>{switch(t.stockSource._t){case"CustomerStockIdSource":return t.customerStockId;case"DefaultStoreStockIdSource":return;case"SpecificStockIdSource":return t.stockSource.Value;default:Ui(t.stockSource)}},qct=t=>async(o,e)=>{const n=Jg({stockSource:e,customerStockId:t.customerStockId});return(await t.findProductsBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:o,stockId:n}})).body.products.map(s=>_R(s))},tft=t=>({getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase}),eft=t=>({getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase}),oft=t=>async(o,e)=>{const n=Jg({stockSource:e,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:o.concat([]),stockId:n}})).body.products.map(s=>_R(s))},nft=t=>{const o=oft({partnerId:t.partnerId,productCache:{},customerStockId:t.customerStockId,getProductsByIDsHttpClient:t.productPickerModalWindowBffClient.postGetProductsByIds}),e=qct({partnerId:t.partnerId,customerStockId:t.customerStockId,findProductsBySearchPhrase:t.productPickerModalWindowBffClient.postFindProductsBySearchPhrase});return{selectProductComponentDeps:tft({getProductsByIDs:o,findProductsByPhrase:e}),productSearchComponentDeps:eft({getProductsByIDs:o,findProductsByPhrase:e})}},ift=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),rft=async t=>{const o=t.categoryIds.filter(e=>!t.categoryCache[e]);return o.length>0&&(await t.findCategoriesByID({partnerId:t.partnerId,categoryIds:o})).forEach(e=>t.categoryCache[e.id]=e),t.categoryIds.filter(e=>t.categoryCache[e]).map(e=>t.categoryCache[e])},IR=t=>async o=>(await rft({partnerId:t.partnerId,categoryIds:o,categoryCache:{},findCategoriesByID:async e=>(await t.getCategoriesByIDsHttpClient({body:{partnerId:t.partnerId,categoryIds:e.categoryIds.concat([])}})).body.categories})).map(e=>ift(e)),sft=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),aft=async t=>{const o=await t.findCategoriesByPhrase({phrase:t.phrase});return o.forEach(e=>t.categoryCache[e.id]=e),o},lft=t=>async o=>(await aft({phrase:o,categoryCache:t.categoryCache,findCategoriesByPhrase:async e=>(await t.findProductCategoriesBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:e.phrase}})).body.categories})).map(e=>sft(e)),uft=t=>({getCategoriesByIDs:t.getCategoriesByIDs}),dft=t=>({findCategoriesByName:t.findCategoriesByName,getCategoriesByIDs:t.getCategoriesByIDs}),ER=t=>{const o={},e=IR({partnerId:t.partnerId,categoryCache:o,getCategoriesByIDsHttpClient:t.productCategoryPickerModalWindowBffClient.postGetProductCategoriesByIds}),n=lft({partnerId:t.partnerId,categoryCache:o,findProductCategoriesBySearchPhrase:t.productCategoryPickerModalWindowBffClient.postFindProductCategoriesBySearchPhrase});return{selectCategoryComponentDeps:uft({getCategoriesByIDs:e}),categorySearchComponentDeps:dft({getCategoriesByIDs:e,findCategoriesByName:n})}},mft=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),Xg=t=>async(o,e)=>{const n=Jg({stockSource:e,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:o.concat([]),stockId:n}})).body.products.map(s=>mft(s))},cft=t=>({getProductsByIDs:Xg({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps}),fft=t=>({getProductsByIDs:Xg({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps}),pft=t=>({getProductsByIDs:Xg({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps}),Cft=t=>({getCategoriesByIDs:IR({partnerId:t.partnerId,categoryCache:t.categoryCache,getCategoriesByIDsHttpClient:t.getCategoriesByIDsHttpClient}),getAllStockIds:ji({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),categoryListComposerModalWindowDeps:ER({partnerId:t.partnerId,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient})}),hft=t=>{const o={},e={},n=nft({partnerId:t.partnerId,customerStockId:t.customerStockId,productPickerModalWindowBffClient:t.productPickerModalWindowBffClient});return{ProductListComposerModalWindowDeps:n,CategoryListComposerModalWindowDeps:ER({partnerId:t.partnerId,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient}),AbandonedBasketProductListShelfBuilderDeps:Yct({partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds}),AlternativeProductsForAbandonedBasketProductListShelfBuilderDeps:Kct({partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds}),RelatedProductsForAbandonedBasketProductListShelfBuilderDeps:Zct({partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds}),ProductListShelfBuilderDeps:pft({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:o,getProductsByIDsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetProductsByIds,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds,productListComposerModalWindowDeps:n}),RelatedProductListShelfBuilderDeps:fft({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:o,getProductsByIDsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetProductsByIds,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds,productListComposerModalWindowDeps:n}),AlternativeProductListShelfBuilderDeps:cft({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:o,getProductsByIDsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetProductsByIds,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds,productListComposerModalWindowDeps:n}),PopularFromCategoryListShelfBuilderDeps:Cft({partnerId:t.partnerId,categoryCache:e,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds,getCategoriesByIDsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetProductCategoriesByIds,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient}),PopularProductListShelfBuilderDeps:Gct({partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds}),LatestProductListShelfBuilderDeps:Jct({partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds}),SaleByPopularProductListShelfBuilderDeps:Xct({partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds}),SaleByLatestProductListShelfBuilderDeps:Qct({partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds})}},gft=t=>({abandonedBasketProductShelfDataSourceExpressionBuilderModalDeps:hft({partnerId:t.partnerId,customerStockId:t.customerStockId,productShelfBuilderModalWindowBffClient:t.productShelfBuilderModalWindowBffClient,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient,productPickerModalWindowBffClient:t.productPickerModalWindowBffClient})}),Fft={},yft={class:"icon-hover d-flex align-items-center justify-content-center"};function Sft(t,o){return S(),P("i",yft,o[0]||(o[0]=[f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[f("path",{d:"M3.33333 8.33333C3.33333 8.54227 3.64067 8.9056 4.35365 9.26207C5.27603 9.72327 6.58451 10 8 10C9.41547 10 10.7239 9.72327 11.6463 9.26207C12.3593 8.9056 12.6667 8.54227 12.6667 8.33333V6.8858C11.5667 7.56547 9.88487 8 8 8C6.11515 8 4.43331 7.56547 3.33333 6.8858V8.33333ZM12.6667 10.2191C11.5667 10.8988 9.88487 11.3333 8 11.3333C6.11515 11.3333 4.43331 10.8988 3.33333 10.2191V11.6667C3.33333 11.8756 3.64067 12.2389 4.35365 12.5954C5.27603 13.0566 6.58451 13.3333 8 13.3333C9.41547 13.3333 10.7239 13.0566 11.6463 12.5954C12.3593 12.2389 12.6667 11.8756 12.6667 11.6667V10.2191ZM2 11.6667V5C2 3.34315 4.68629 2 8 2C11.3137 2 14 3.34315 14 5V11.6667C14 13.3235 11.3137 14.6667 8 14.6667C4.68629 14.6667 2 13.3235 2 11.6667ZM8 6.66667C9.41547 6.66667 10.7239 6.38995 11.6463 5.92875C12.3593 5.57227 12.6667 5.20895 12.6667 5C12.6667 4.79105 12.3593 4.42773 11.6463 4.07125C10.7239 3.61005 9.41547 3.33333 8 3.33333C6.58451 3.33333 5.27603 3.61005 4.35365 4.07125C3.64067 4.42773 3.33333 4.79105 3.33333 5C3.33333 5.20895 3.64067 5.57227 4.35365 5.92875C5.27603 6.38995 6.58451 6.66667 8 6.66667Z",fill:"black"})],-1)]))}const bft=mt(Fft,[["render",Sft]]),PR=t=>bv(t.listExpression,o=>o.ChunkExpression,o=>o.ListExpression.LimitExpression,o=>o.ListExpression.DataSource).match({none:()=>or.None,some:([o,e,n,s])=>t.productShelfFactoryFromDataSource({limit:n.Limit,atLeast:e.ChunkSize,dataSourceExpression:s}).match({none:()=>or.None,some:i=>Sa.Some(i)})}),Tft={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},Bft={id:"dropdownMenuAlgorithmSelector",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false","data-test":"list-selector__select-button"},Vft={"data-test":"list-selector__current-value"},Lft={class:"bootstrap-styles dropdown-menu w-100 rounded-2","data-test":"list-selector__options","aria-labelledby":"dropdownMenuAlgorithmSelector"},Dft=["onClick"],vft={class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer"},Rft=dt({__name:"ListSelector",props:{list:{},currentKey:{}},emits:["update:currentKey"],setup(t,{emit:o}){const e=t,n=Pt({isDropdownMenuShown:!1,currentKey:e.currentKey}),s=a=>{n.currentKey=a},i=Kt(()=>e.list[n.currentKey]),r=o;return(a,d)=>(S(),P("div",Tft,[f("button",Bft,[f("span",Vft,O(i.value),1),E(jo)]),f("ul",Lft,[(S(!0),P(Dt,null,Fe(e.list,(u,c)=>(S(),P("li",{key:c,class:"bootstrap-styles dropdown-item p-0","data-test":"list-selector__option",onClick:()=>{s(c),r("update:currentKey",c)}},[f("span",vft,O(u),1)],8,Dft))),128))])]))}}),xft=t=>{for(const o in t)if(t[o]!==void 0)return o;throw Error("")},_ft={class:"bootstrap-styles fw-bold mb-5"},Ift={class:"bootstrap-styles container-fluid mb-5"},Eft={class:"bootstrap-styles row gx-2"},Pft={class:"bootstrap-styles col-6"},wft={class:"bootstrap-styles input-number__wrapper bg-color-input border rounded-2 py-1 px-3 d-flex position-relative","data-test":"product-shelf-limiter__products-at-least"},Nft={class:"bootstrap-styles input-group-prepend me-14 cursor-default"},Aft={class:"input-group-text"},Wft={class:"bootstrap-styles col-6"},kft={class:"bootstrap-styles input-number__wrapper bg-color-input border rounded-2 py-1 px-3 d-flex position-relative","data-test":"product-shelf-limiter__products-limit"},Mft={class:"bootstrap-styles input-group-prepend me-14 cursor-default"},Oft={class:"input-group-text"},zi=dt({__name:"ProductListShelfLimiter",props:{productsAtLeast:{},productsLimit:{}},emits:["update:productsAtLeast","update:productsLimit"],setup(t,{emit:o}){const e=t,n=o;return(s,i)=>(S(),P(Dt,null,[f("label",_ft,O(B(F)("productShelfBuilderComponent.productShelfBuilders.productListShelfLimiterLabel")),1),f("div",Ift,[f("div",Eft,[f("div",Pft,[f("div",wft,[f("div",Nft,[f("span",Aft,O(B(F)("productShelfBuilderComponent.productShelfBuilders.productsAtLeast")),1)]),E(Ao,{modelValue:e.productsAtLeast,"onUpdate:modelValue":i[0]||(i[0]=r=>n("update:productsAtLeast",r))},null,8,["modelValue"])])]),f("div",Wft,[f("div",kft,[f("div",Mft,[f("span",Oft,O(B(F)("productShelfBuilderComponent.productShelfBuilders.productsLimit")),1)]),E(Ao,{modelValue:e.productsLimit,"onUpdate:modelValue":i[1]||(i[1]=r=>n("update:productsLimit",r))},null,8,["modelValue"])])])])])],64))}}),zT=t=>({_t:"SpecificStockIdSource",Value:t}),ui=()=>({_t:"DefaultStoreStockIdSource"}),$ft=["value","placeholder"],Hft=["tabindex","onClick"],Uft={class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer"},jft={key:0,class:"bootstrap-styles dropdown-item dropdown-item__empty p-0"},zft={class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-default"},Gft={for:"default-stock-checkbox",class:"bootstrap-styles user-select-none label__checkbox-input"},Kft=dt({__name:"StockSelector",props:{stockIdList:{},stockSource:{}},emits:["onStockSourceUpdated"],setup(t,{emit:o}){const e=t,n=g=>{switch(g._t){case"CustomerStockIdSource":return"";case"DefaultStoreStockIdSource":return"";case"SpecificStockIdSource":return g.Value}},s=Kt(()=>e.stockIdList.filter(g=>g.includes(i.searchPhrase))),i=Pt({isDropdownMenuShown:!1,searchPhrase:n(e.stockSource),stockSource:e.stockSource}),r=g=>{g.target.checked?(i.searchPhrase="",i.stockSource=ui()):i.stockSource=zT(i.searchPhrase),h("onStockSourceUpdated",i.stockSource)},a=g=>{i.isDropdownMenuShown=!1,i.stockSource=zT(g),i.searchPhrase=g,h("onStockSourceUpdated",i.stockSource)},d=g=>{i.isDropdownMenuShown=!0,i.searchPhrase=g},u=g=>{g.relatedTarget===null&&(i.searchPhrase=n(i.stockSource),i.isDropdownMenuShown=!1)},c=ve(null),p=()=>{i.isDropdownMenuShown=!0,xa(()=>{var g;c.value&&((g=c.value.querySelector(".dropdown-item.selected"))==null||g.scrollIntoView())})},h=o;return(g,V)=>(S(),P(Dt,null,[f("div",{class:at([{"pe-none":e.stockSource._t==="DefaultStoreStockIdSource"},"bootstrap-styles stock-selector dropdown d-flex justify-content-between w-100 border rounded-2 bg-color-input position-relative mb-5"])},[f("input",{class:at(["bootstrap-styles w-100 text-start py-1 px-3 stock-selector__input",{disabled:e.stockSource._t==="DefaultStoreStockIdSource"}]),value:e.stockSource._t==="DefaultStoreStockIdSource"?B(F)("productShelfBuilderComponent.productShelfBuilders.defaultStock"):i.searchPhrase,placeholder:B(F)("productShelfBuilderComponent.productShelfBuilders.stockPlaceholder"),onInput:V[0]||(V[0]=b=>d(b.target.value)),onFocusin:V[1]||(V[1]=()=>p()),onBlur:V[2]||(V[2]=b=>u(b))},null,42,$ft),E(jo,{class:at(["stock-selector__icon",{"stock-selector__icon-rotate":i.isDropdownMenuShown}])},null,8,["class"]),i.stockSource._t==="SpecificStockIdSource"?(S(),P("ul",{key:0,ref_key:"refStockIdListWrapper",ref:c,class:at(["bootstrap-styles stock-selector__dropdown-menu w-100 rounded-2",{"d-block":i.isDropdownMenuShown}])},[(S(!0),P(Dt,null,Fe(s.value,(b,x)=>(S(),P("li",{key:x,class:at(["bootstrap-styles dropdown-item p-0",{selected:b===i.stockSource.Value}]),tabindex:x,onClick:()=>a(b)},[f("span",Uft,O(b),1)],10,Hft))),128)),s.value.length===0?(S(),P("li",jft,[f("span",zft,O(`${B(F)("productShelfBuilderComponent.productShelfBuilders.emptySearch")} "${i.searchPhrase}"`),1)])):bt("",!0)],2)):bt("",!0)],2),f("div",{class:at([{"disabled pe-none":e.stockIdList.length===0},"bootstrap-styles d-flex justify-content-start align-items-center"])},[E(Hr,{id:"default-stock-checkbox",checked:e.stockSource._t==="DefaultStoreStockIdSource",onChange:V[3]||(V[3]=b=>r(b))},null,8,["checked"]),f("label",Gft,O(B(F)("productShelfBuilderComponent.productShelfBuilders.defaultStockCheckbox")),1)],2)],64))}});const Gi=mt(Kft,[["__scopeId","data-v-2adccb72"]]),Yft={class:"bootstrap-styles fw-bold mb-5"},Zft={class:"bootstrap-styles container-fluid mb-8"},Jft={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-center align-items-center border-blue-selected mb-8 algorithm-description"},Xft={class:"bootstrap-styles me-3"},Qft=dt({__name:"PopularProductListShelfBuilder",props:{deps:{},popularProductListShelf:{}},emits:["updatedPopularProductListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({stockIdList:[],isStockLoaded:!1});n.isStockLoaded=!1,e.deps.getAllStockIds().then(i=>{n.stockIdList=i,n.isStockLoaded=!0});const s=o;return(i,r)=>(S(),P(Dt,null,[E(Jn,{class:at(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isStockLoaded}])},null,8,["class"]),f("div",{class:at(["bootstrap-styles container-fluid px-11 mt-8 position-relative",{invisible:!n.isStockLoaded}])},[f("label",Yft,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",Zft,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.popularProductListShelf.StockSource,onOnStockSourceUpdated:r[0]||(r[0]=a=>{s("updatedPopularProductListShelf",{...e.popularProductListShelf,StockSource:a})})},null,8,["stockIdList","stockSource"])]),f("div",Jft,[f("div",Xft,[f("i",null,[E(Ti)])]),f("div",null,O(B(F)("productShelfBuilderComponent.productShelfBuilders.popularProductListDescription")),1)]),E(zi,{productsAtLeast:e.popularProductListShelf.AtLeast,productsLimit:e.popularProductListShelf.Limit,"onUpdate:productsAtLeast":r[1]||(r[1]=a=>s("updatedPopularProductListShelf",{...e.popularProductListShelf,AtLeast:a})),"onUpdate:productsLimit":r[2]||(r[2]=a=>s("updatedPopularProductListShelf",{...e.popularProductListShelf,Limit:a}))},null,8,["productsAtLeast","productsLimit"])],2)],64))}});const qft=mt(Qft,[["__scopeId","data-v-9f862dd9"]]),wR=Ro,Ii=t=>wR(t).Match({whenCustomerStockId:()=>({_t:"CustomerStockIdSource"}),whenDefaultStoreStockId:()=>({_t:"DefaultStoreStockIdSource"}),whenSpecificStockId:o=>({_t:"SpecificStockIdSource",Value:o.Value})}),NR=Ro,tpt=Ro,AR=t=>Sa.Some(NR(t.dataSourceExpression).Match({whenAbandonedBasketProductList:({StockSource:o})=>({AbandonedBasketProductListShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(o)}}),whenRelatedProductsForAbandonedBasketProductList:({StockSource:o})=>({RelatedProductsForAbandonedBasketListShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(o)}}),whenAlternativeProductsForAbandonedBasketProductList:({StockSource:o})=>({AlternativeProductsForAbandonedBasketListShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(o)}}),whenProductList:({ProductIds:o,StockSource:e})=>({ProductListShelf:{ProductInternalIDs:o,Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(e)}}),whenRelatedProductsFor:({ProductIds:o,StockSource:e})=>({RelatedProductsForProductListShelf:{ProductInternalIDs:o,Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(e)}}),whenAlternativeProductsFor:({ProductIds:o,StockSource:e})=>({AlternativeProductsForProductListShelf:{ProductInternalIDs:o,Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(e)}}),whenPopularProductsInCategories:({CategoryIds:o,StockSource:e})=>({PopularProductsInCategoryListShelf:{CategoryIdList:o,Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(e)}}),whenPopular:({StockSource:o})=>({PopularProductsShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(o)}}),whenLatest:({StockSource:o})=>({LatestProductsShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(o)}}),whenSaleByPopular:({StockSource:o})=>({SaleByPopularProductsShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(o)}}),whenSaleByLatest:({StockSource:o})=>({SaleByLatestProductsShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Ii(o)}})})),Ei=t=>({ChunkExpression:{ChunkSize:t.atLeast,ListExpression:{LimitExpression:{Limit:t.limit,ListExpression:{DataSource:t.dataSource}}}}}),Pi=t=>{switch(t._t){case"CustomerStockIdSource":return{CustomerStockId:{}};case"DefaultStoreStockIdSource":return{DefaultStoreStockId:{}};case"SpecificStockIdSource":return{SpecificStockId:{Value:t.Value}};default:return Ui(t)}},ept=t=>tpt(t).Match({whenAbandonedBasketProductListShelf:({AtLeast:o,Limit:e,StockSource:n})=>Ei({limit:e,atLeast:o,dataSource:{AbandonedBasketProductList:{StockSource:Pi(n)}}}),whenRelatedProductsForAbandonedBasketListShelf:({AtLeast:o,Limit:e,StockSource:n})=>Ei({limit:e,atLeast:o,dataSource:{RelatedProductsForAbandonedBasketProductList:{StockSource:Pi(n)}}}),whenAlternativeProductsForAbandonedBasketListShelf:({AtLeast:o,Limit:e,StockSource:n})=>Ei({limit:e,atLeast:o,dataSource:{AlternativeProductsForAbandonedBasketProductList:{StockSource:Pi(n)}}}),whenProductListShelf:({ProductInternalIDs:o,AtLeast:e,Limit:n,StockSource:s})=>Ei({limit:n,atLeast:e,dataSource:{ProductList:{ProductIds:o,StockSource:Pi(s)}}}),whenRelatedProductsForProductListShelf:({ProductInternalIDs:o,AtLeast:e,Limit:n,StockSource:s})=>Ei({limit:n,atLeast:e,dataSource:{RelatedProductsFor:{ProductIds:o,StockSource:Pi(s)}}}),whenAlternativeProductsForProductListShelf:({ProductInternalIDs:o,AtLeast:e,Limit:n,StockSource:s})=>Ei({limit:n,atLeast:e,dataSource:{AlternativeProductsFor:{ProductIds:o,StockSource:Pi(s)}}}),whenPopularProductsInCategoryListShelf:({CategoryIdList:o,AtLeast:e,Limit:n,StockSource:s})=>Ei({limit:n,atLeast:e,dataSource:{PopularProductsInCategories:{CategoryIds:o,StockSource:Pi(s)}}}),whenPopularProductsShelf:({AtLeast:o,Limit:e,StockSource:n})=>Ei({limit:e,atLeast:o,dataSource:{Popular:{StockSource:Pi(n)}}}),whenLatestProductsShelf:({AtLeast:o,Limit:e,StockSource:n})=>Ei({limit:e,atLeast:o,dataSource:{Latest:{StockSource:Pi(n)}}}),whenSaleByPopularProductsShelf:({AtLeast:o,Limit:e,StockSource:n})=>Ei({limit:e,atLeast:o,dataSource:{SaleByPopular:{StockSource:Pi(n)}}}),whenSaleByLatestProductsShelf:({AtLeast:o,Limit:e,StockSource:n})=>Ei({limit:e,atLeast:o,dataSource:{SaleByLatest:{StockSource:Pi(n)}}})}),opt={class:"bootstrap-styles container-fluid px-11 mt-8"},npt={class:"bootstrap-styles fw-bold mb-5"},ipt={class:"bootstrap-styles container-fluid mb-8"},rpt={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-center align-items-center border-blue-selected mb-8 algorithm-description"},spt={class:"bootstrap-styles me-3"},apt=dt({__name:"AbandonedBasketProductListShelfBuilder",props:{abandonedBasketProductListShelf:{},deps:{}},emits:["updatedAbandonedBasketProductListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({stockIdList:[]});e.deps.getAllStockIds().then(i=>{n.stockIdList=i});const s=o;return(i,r)=>(S(),P("div",opt,[f("label",npt,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",ipt,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.abandonedBasketProductListShelf.StockSource,onOnStockSourceUpdated:r[0]||(r[0]=a=>{s("updatedAbandonedBasketProductListShelf",{...e.abandonedBasketProductListShelf,StockSource:a})})},null,8,["stockIdList","stockSource"])]),f("div",rpt,[f("div",spt,[f("i",null,[E(Ti)])]),f("div",null,O(B(F)("productShelfBuilderComponent.productShelfBuilders.abandonedBasketProductListDescription")),1)]),E(zi,{productsAtLeast:e.abandonedBasketProductListShelf.AtLeast,productsLimit:e.abandonedBasketProductListShelf.Limit,"onUpdate:productsAtLeast":r[1]||(r[1]=a=>s("updatedAbandonedBasketProductListShelf",{...e.abandonedBasketProductListShelf,AtLeast:a})),"onUpdate:productsLimit":r[2]||(r[2]=a=>s("updatedAbandonedBasketProductListShelf",{...e.abandonedBasketProductListShelf,Limit:a}))},null,8,["productsAtLeast","productsLimit"])]))}});const lpt=mt(apt,[["__scopeId","data-v-41da2842"]]),upt={class:"bootstrap-styles container-fluid px-11 mt-8"},dpt={class:"bootstrap-styles fw-bold mb-5"},mpt={class:"bootstrap-styles container-fluid mb-8"},cpt={class:"bootstrap-styles container-fluid g-0 mb-8"},fpt={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-center align-items-center border-blue-selected mb-8 algorithm-description"},ppt={class:"bootstrap-styles me-3"},Cpt=dt({__name:"AlternativeProductsForAbandonedBasketProductListBuilder",props:{alternativeProductsForAbandonedBasketProductListShelf:{},deps:{}},emits:["updatedAlternativeProductsForAbandonedBasketProductListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({stockIdList:[]});e.deps.getAllStockIds().then(i=>{n.stockIdList=i});const s=o;return(i,r)=>(S(),P("div",upt,[f("label",dpt,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",mpt,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.alternativeProductsForAbandonedBasketProductListShelf.StockSource,onOnStockSourceUpdated:r[0]||(r[0]=a=>{s("updatedAlternativeProductsForAbandonedBasketProductListShelf",{...e.alternativeProductsForAbandonedBasketProductListShelf,StockSource:a})})},null,8,["stockIdList","stockSource"])]),f("div",cpt,[f("div",fpt,[f("div",ppt,[f("i",null,[E(Ti)])]),Ot(f("div",null,null,512),[[B(Qn),B(F)("productShelfBuilderComponent.productShelfBuilders.alternativeProductsForAbandonedBasketProductListDescription")]])])]),E(zi,{productsAtLeast:e.alternativeProductsForAbandonedBasketProductListShelf.AtLeast,productsLimit:e.alternativeProductsForAbandonedBasketProductListShelf.Limit,"onUpdate:productsAtLeast":r[1]||(r[1]=a=>s("updatedAlternativeProductsForAbandonedBasketProductListShelf",{...e.alternativeProductsForAbandonedBasketProductListShelf,AtLeast:a})),"onUpdate:productsLimit":r[2]||(r[2]=a=>s("updatedAlternativeProductsForAbandonedBasketProductListShelf",{...e.alternativeProductsForAbandonedBasketProductListShelf,Limit:a}))},null,8,["productsAtLeast","productsLimit"])]))}});const hpt=mt(Cpt,[["__scopeId","data-v-5ee3732c"]]),gpt={class:"bootstrap-styles container-fluid px-11 mt-8"},Fpt={class:"bootstrap-styles fw-bold mb-5"},ypt={class:"bootstrap-styles container-fluid mb-8"},Spt={class:"bootstrap-styles container-fluid g-0 mb-8"},bpt={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-center align-items-center border-blue-selected mb-8 algorithm-description"},Tpt={class:"bootstrap-styles me-3"},Bpt=dt({__name:"RelatedProductsForAbandonedBasketProductListBuilder",props:{relatedProductsForAbandonedBasketProductListShelf:{},deps:{}},emits:["updatedRelatedProductsForAbandonedBasketProductListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({stockIdList:[]});e.deps.getAllStockIds().then(i=>{n.stockIdList=i});const s=o;return(i,r)=>(S(),P("div",gpt,[f("label",Fpt,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",ypt,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.relatedProductsForAbandonedBasketProductListShelf.StockSource,onOnStockSourceUpdated:r[0]||(r[0]=a=>{s("updatedRelatedProductsForAbandonedBasketProductListShelf",{...e.relatedProductsForAbandonedBasketProductListShelf,StockSource:a})})},null,8,["stockIdList","stockSource"])]),f("div",Spt,[f("div",bpt,[f("div",Tpt,[f("i",null,[E(Ti)])]),Ot(f("div",null,null,512),[[B(Qn),B(F)("productShelfBuilderComponent.productShelfBuilders.relatedProductsForAbandonedBasketProductListDescription")]])])]),E(zi,{productsAtLeast:e.relatedProductsForAbandonedBasketProductListShelf.AtLeast,productsLimit:e.relatedProductsForAbandonedBasketProductListShelf.Limit,"onUpdate:productsAtLeast":r[1]||(r[1]=a=>s("updatedRelatedProductsForAbandonedBasketProductListShelf",{...e.relatedProductsForAbandonedBasketProductListShelf,AtLeast:a})),"onUpdate:productsLimit":r[2]||(r[2]=a=>s("updatedRelatedProductsForAbandonedBasketProductListShelf",{...e.relatedProductsForAbandonedBasketProductListShelf,Limit:a}))},null,8,["productsAtLeast","productsLimit"])]))}});const Vpt=mt(Bpt,[["__scopeId","data-v-eb6e385b"]]),Lpt={class:"bootstrap-styles container-fluid px-11 mt-8"},Dpt={class:"bootstrap-styles fw-bold mb-5"},vpt={class:"bootstrap-styles container-fluid mb-8"},Rpt={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-center align-items-center border-blue-selected mb-8 algorithm-description"},xpt={class:"bootstrap-styles me-3"},_pt=dt({__name:"LatestProductListShelfBuilder",props:{deps:{},latestProductListShelf:{}},emits:["updatedLatestProductListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({stockIdList:[]});e.deps.getAllStockIds().then(i=>{n.stockIdList=i});const s=o;return(i,r)=>(S(),P("div",Lpt,[f("label",Dpt,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",vpt,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.latestProductListShelf.StockSource,onOnStockSourceUpdated:r[0]||(r[0]=a=>{s("updatedLatestProductListShelf",{...e.latestProductListShelf,StockSource:a})})},null,8,["stockIdList","stockSource"])]),f("div",Rpt,[f("div",xpt,[f("i",null,[E(Ti)])]),Ot(f("div",null,null,512),[[B(Qn),B(F)("productShelfBuilderComponent.productShelfBuilders.latestProductListDescription")]])]),E(zi,{productsAtLeast:e.latestProductListShelf.AtLeast,productsLimit:e.latestProductListShelf.Limit,"onUpdate:productsAtLeast":r[1]||(r[1]=a=>s("updatedLatestProductListShelf",{...e.latestProductListShelf,AtLeast:a})),"onUpdate:productsLimit":r[2]||(r[2]=a=>s("updatedLatestProductListShelf",{...e.latestProductListShelf,Limit:a}))},null,8,["productsAtLeast","productsLimit"])]))}});const Ipt=mt(_pt,[["__scopeId","data-v-d6abe5ff"]]),Ept={class:"bootstrap-styles container-fluid px-11 mt-8"},Ppt={class:"bootstrap-styles fw-bold mb-5"},wpt={class:"bootstrap-styles container-fluid mb-8"},Npt={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-center align-items-center border-blue-selected mb-8 algorithm-description"},Apt={class:"bootstrap-styles me-3"},Wpt=dt({__name:"SaleByPopularProductListShelfBuilder",props:{deps:{},saleByPopularProductListShelf:{}},emits:["updatedSaleByPopularProductListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({stockIdList:[]});e.deps.getAllStockIds().then(i=>{n.stockIdList=i});const s=o;return(i,r)=>(S(),P("div",Ept,[f("label",Ppt,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",wpt,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.saleByPopularProductListShelf.StockSource,onOnStockSourceUpdated:r[0]||(r[0]=a=>{s("updatedSaleByPopularProductListShelf",{...e.saleByPopularProductListShelf,StockSource:a})})},null,8,["stockIdList","stockSource"])]),f("div",Npt,[f("div",Apt,[f("i",null,[E(Ti)])]),Ot(f("div",null,null,512),[[B(Qn),B(F)("productShelfBuilderComponent.productShelfBuilders.saleByPopularProductListDescription")]])]),E(zi,{productsAtLeast:e.saleByPopularProductListShelf.AtLeast,productsLimit:e.saleByPopularProductListShelf.Limit,"onUpdate:productsAtLeast":r[1]||(r[1]=a=>s("updatedSaleByPopularProductListShelf",{...e.saleByPopularProductListShelf,AtLeast:a})),"onUpdate:productsLimit":r[2]||(r[2]=a=>s("updatedSaleByPopularProductListShelf",{...e.saleByPopularProductListShelf,Limit:a}))},null,8,["productsAtLeast","productsLimit"])]))}});const kpt=mt(Wpt,[["__scopeId","data-v-eb00a4b2"]]),Mpt={class:"bootstrap-styles container-fluid px-11 mt-8"},Opt={class:"bootstrap-styles fw-bold mb-5"},$pt={class:"bootstrap-styles container-fluid mb-8"},Hpt={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-center align-items-center border-blue-selected mb-8 algorithm-description"},Upt={class:"bootstrap-styles me-3"},jpt=dt({__name:"SaleByLatestProductListShelfBuilder",props:{saleByLatestProductListShelf:{},deps:{}},emits:["updatedSaleByLatestProductListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({stockIdList:[]});e.deps.getAllStockIds().then(i=>{n.stockIdList=i});const s=o;return(i,r)=>(S(),P("div",Mpt,[f("label",Opt,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",$pt,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.saleByLatestProductListShelf.StockSource,onOnStockSourceUpdated:r[0]||(r[0]=a=>{s("updatedSaleByLatestProductListShelf",{...e.saleByLatestProductListShelf,StockSource:a})})},null,8,["stockIdList","stockSource"])]),f("div",Hpt,[f("div",Upt,[f("i",null,[E(Ti)])]),Ot(f("div",null,null,512),[[B(Qn),B(F)("productShelfBuilderComponent.productShelfBuilders.saleByLatestProductListDescription")]])]),E(zi,{productsAtLeast:e.saleByLatestProductListShelf.AtLeast,productsLimit:e.saleByLatestProductListShelf.Limit,"onUpdate:productsAtLeast":r[1]||(r[1]=a=>s("updatedSaleByLatestProductListShelf",{...e.saleByLatestProductListShelf,AtLeast:a})),"onUpdate:productsLimit":r[2]||(r[2]=a=>s("updatedSaleByLatestProductListShelf",{...e.saleByLatestProductListShelf,Limit:a}))},null,8,["productsAtLeast","productsLimit"])]))}});const zpt=mt(jpt,[["__scopeId","data-v-48bf1030"]]),Gpt={},Kpt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function Ypt(t,o){return S(),P("svg",Kpt,o[0]||(o[0]=[f("path",{d:"M12.0208 11.0778L14.876 13.9329L13.9332 14.8757L11.078 12.0206C10.0514 12.8419 8.7495 13.3333 7.3335 13.3333C4.0215 13.3333 1.3335 10.6453 1.3335 7.33325C1.3335 4.02125 4.0215 1.33325 7.3335 1.33325C10.6455 1.33325 13.3335 4.02125 13.3335 7.33325C13.3335 8.74925 12.8422 10.0512 12.0208 11.0778ZM10.6833 10.5831C11.4985 9.74298 12.0002 8.59698 12.0002 7.33325C12.0002 4.75492 9.91183 2.66659 7.3335 2.66659C4.75516 2.66659 2.66683 4.75492 2.66683 7.33325C2.66683 9.91158 4.75516 11.9999 7.3335 11.9999C8.59723 11.9999 9.74323 11.4983 10.5834 10.6831L10.6833 10.5831Z",fill:"var(--gray-500)"},null,-1)]))}const WR=mt(Gpt,[["render",Ypt]]),Zpt={},Jpt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xpt(t,o){return S(),P("svg",Jpt,o[0]||(o[0]=[f("path",{d:"M12.0194 11.0778L14.8745 13.9329L13.9317 14.8757L11.0766 12.0206C10.05 12.8419 8.74803 13.3333 7.33203 13.3333C4.02003 13.3333 1.33203 10.6453 1.33203 7.33325C1.33203 4.02125 4.02003 1.33325 7.33203 1.33325C10.644 1.33325 13.332 4.02125 13.332 7.33325C13.332 8.74925 12.8407 10.0512 12.0194 11.0778ZM10.6818 10.5831C11.497 9.74298 11.9987 8.59698 11.9987 7.33325C11.9987 4.75492 9.91036 2.66659 7.33203 2.66659C4.7537 2.66659 2.66536 4.75492 2.66536 7.33325C2.66536 9.91158 4.7537 11.9999 7.33203 11.9999C8.59576 11.9999 9.74176 11.4983 10.5819 10.6831L10.6818 10.5831Z",fill:"white"},null,-1)]))}const kR=mt(Zpt,[["render",Xpt]]),Qpt={class:"bootstrap-styles row g-0 mb-7"},qpt={class:"bootstrap-styles col-8 d-flex justify-content-between align-items-center"},tCt={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex w-100"},eCt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},oCt=["placeholder"],nCt={class:"bootstrap-styles ps-1 me-7"},iCt={key:0,class:"bootstrap-styles d-flex justify-content-center align-items-center icon-fill"},rCt={class:"bootstrap-styles col-4"},sCt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1 icon-stroke"},aCt=dt({__name:"ProductSearchBar",props:{isButtonAddAllEnable:{type:Boolean},isLoaded:{type:Boolean}},emits:["search","addAllFoundProducts"],setup(t,{emit:o}){const e=t,n=Pt({phrase:""}),s=()=>{n.phrase.length&&i("search",n.phrase)},i=o;return(r,a)=>(S(),P("div",Qpt,[f("div",qpt,[f("div",tCt,[f("i",eCt,[E(WR)]),f("form",{class:"bootstrap-styles w-100 search-form",onSubmit:Le(s,["prevent"])},[Ot(f("input",{"onUpdate:modelValue":a[0]||(a[0]=d=>n.phrase=d),type:"text",class:"bootstrap-styles w-100",placeholder:B(F)("productListComposerModalWindow.searchInputPlaceholder"),required:""},null,8,oCt),[[En,n.phrase]])],32),Ot(f("button",{class:"bootstrap-styles px-14",onClick:a[1]||(a[1]=d=>n.phrase="")},a[3]||(a[3]=[f("i",{class:"bootstrap-styles d-flex justify-content-center align-items-center icon-hover-stroke"},[f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 16 16",fill:"none"},[f("path",{d:"M3 3L13 13",stroke:"var(--gray-500)"}),f("path",{d:"M13 3L3 13",stroke:"var(--gray-500)"})])],-1)]),512),[[_a,n.phrase.length>0]])]),f("div",nCt,[f("button",{class:at([{"button__active-700":n.phrase.length,button__locked:!e.isLoaded||!n.phrase.length},"bootstrap-styles d-flex justify-content-center align-items-center py-1 px-3 rounded-2 button__disabled-700"]),onClick:s},[e.isLoaded?(S(),P("i",iCt,[E(kR)])):(S(),st(fr,{key:1}))],2)])]),f("div",rCt,[f("button",{class:at([{"button__active-100 button__hover-blue-100":e.isButtonAddAllEnable,button__locked:!e.isButtonAddAllEnable},"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 bg-blue-selected button__disabled-100 w-100 me-1"]),onClick:a[2]||(a[2]=()=>i("addAllFoundProducts"))},[f("i",sCt,[E(Yf)]),je(" "+O(B(F)("productListComposerModalWindow.transferAllButton")),1)],2)])]))}});const lCt=mt(aCt,[["__scopeId","data-v-4461b11f"]]),uCt={},dCt={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mCt(t,o){return S(),P("svg",dCt,o[0]||(o[0]=[f("path",{d:"M5 11.75C5 7.89453 8.11719 4.75 12 4.75C15.8555 4.75 19 7.89453 19 11.75C19 15.6328 15.8555 18.75 12 18.75C8.11719 18.75 5 15.6328 5 11.75ZM12 14.8125C12.3555 14.8125 12.6562 14.5391 12.6562 14.1562V12.4062H14.4062C14.7617 12.4062 15.0625 12.1328 15.0625 11.75C15.0625 11.3945 14.7617 11.0938 14.4062 11.0938H12.6562V9.34375C12.6562 8.98828 12.3555 8.6875 12 8.6875C11.6172 8.6875 11.3438 8.98828 11.3438 9.34375V11.0938H9.59375C9.21094 11.0938 8.9375 11.3945 8.9375 11.75C8.9375 12.1328 9.21094 12.4062 9.59375 12.4062H11.3438V14.1562C11.3438 14.5391 11.6172 14.8125 12 14.8125Z",fill:"var(--blue-400)"},null,-1)]))}const MR=mt(uCt,[["render",mCt]]),cCt={},fCt={width:"48",height:"49",viewBox:"0 0 48 49",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function pCt(t,o){return S(),P("svg",fCt,o[0]||(o[0]=[f("rect",{x:"2",y:"2.5",width:"44",height:"44",rx:"2.61259",fill:"#F6F6F6"},null,-1),f("path",{d:"M17.9952 30.5C17.63 30.5 17.334 30.2034 17.334 29.8377V19.1623C17.334 18.7965 17.6375 18.5 17.9952 18.5H30.0061C30.3713 18.5 30.6673 18.7966 30.6673 19.1623V29.8377C30.6673 30.2035 30.3638 30.5 30.0061 30.5H17.9952ZM29.334 26.5V19.8333H18.6673V29.1667L25.334 22.5L29.334 26.5ZM29.334 28.3856L25.334 24.3856L20.5529 29.1667H29.334V28.3856ZM21.334 23.8333C20.5976 23.8333 20.0007 23.2364 20.0007 22.5C20.0007 21.7636 20.5976 21.1667 21.334 21.1667C22.0704 21.1667 22.6673 21.7636 22.6673 22.5C22.6673 23.2364 22.0704 23.8333 21.334 23.8333Z",fill:"#999999"},null,-1)]))}const Qg=mt(cCt,[["render",pCt]]),CCt={class:"bootstrap-styles container-fluid product-list-item"},hCt={class:"bootstrap-styles row g-0 py-1"},gCt={class:"bootstrap-styles col-1"},FCt={class:"bootstrap-styles w-100 d-flex justify-content-center align-items-center product-list-item__image"},yCt=["src","alt"],SCt={class:"bootstrap-styles col-10 ps-3"},bCt={class:"bootstrap-styles h-100 d-flex flex-column align-items-start justify-content-center"},TCt={key:0,class:"bootstrap-styles mb-1 product-list-item__not-available"},BCt={class:"bootstrap-styles mb-1 text-gray-600"},VCt={"data-test":"searched-product-list__item-id"},LCt={class:"bootstrap-styles","data-test":"searched-product-list__item-name"},DCt={class:"bootstrap-styles col-1"},vCt={class:"bootstrap-styles w-100 h-100 d-flex justify-content-end align-items-center pe-14"},RCt=dt({__name:"SearchedProductListItem",props:{product:{}},emits:["addSearchedProduct"],setup(t,{emit:o}){const e=t,n=Pt({isBrokenImage:!1}),s=o;return(i,r)=>(S(),P("div",CCt,[f("div",hCt,[f("div",gCt,[f("div",FCt,[n.isBrokenImage?(S(),st(Qg,{key:1})):(S(),P("img",{key:0,class:"bootstrap-styles mw-100 mh-100",src:e.product.PictureUrl,alt:e.product.Name,"data-test":"searched-product-list__item-image",onError:r[0]||(r[0]=()=>n.isBrokenImage=!0)},null,40,yCt))])]),f("div",SCt,[f("div",bCt,[e.product.IsAvailable?bt("",!0):(S(),P("div",TCt,O(B(F)("productListComposerModalWindow.notAvailableLabel")),1)),f("div",BCt,[r[2]||(r[2]=f("span",{class:"bootstrap-styles me-14"},"ID",-1)),f("span",VCt,O(e.product.ExternalProductId),1)]),f("div",LCt,O(e.product.Name),1)])]),f("div",DCt,[f("div",vCt,[f("button",{"data-test":"searched-product-list__item-add-button",onClick:r[1]||(r[1]=a=>s("addSearchedProduct"))},[f("i",null,[E(MR)])])])])])]))}});const xCt=mt(RCt,[["__scopeId","data-v-b301cf42"]]),_Ct={class:"bootstrap-styles d-flex justify-content-center align-items-center py-7 h-100 overflow-hidden"},ICt={class:"bootstrap-styles empty-product-list d-flex flex-column justify-content-center align-items-center"},ECt={class:"bootstrap-styles bg-color-gray rounded-2 p-3"},PCt={class:"bootstrap-styles text-gray-600 p-3"},wCt=dt({__name:"EmptySearchProductList",setup(t){return(o,e)=>(S(),P("div",_Ct,[f("div",ICt,[e[0]||(e[0]=cr('<div class="bootstrap-styles"><i><svg width="29" height="145" viewBox="0 0 29 145" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.34301 0.806801C1.39524 0.535643 1.65739 0.358164 1.92855 0.410391L6.34733 1.26148C6.61849 1.31371 6.79597 1.57587 6.74374 1.84702C6.69152 2.11818 6.42936 2.29566 6.1582 2.24343L2.23039 1.48691L1.47387 5.41472C1.42164 5.68587 1.15949 5.86335 0.888327 5.81113C0.617168 5.7589 0.439689 5.49674 0.491917 5.22558L1.34301 0.806801ZM2.24802 0.621063C15.8989 20.785 26.0105 46.9369 28.2169 72.9399C30.4235 98.9456 24.7247 124.849 6.69023 144.437L5.95455 143.76C23.7465 124.435 29.4109 98.8391 27.2205 73.0245C25.0298 47.2071 14.9839 21.2171 1.41994 1.18167L2.24802 0.621063Z" fill="url(#paint0_linear_2569_17987)"></path><defs><linearGradient id="paint0_linear_2569_17987" x1="1.71323" y1="0.434833" x2="8.14345" y2="145.179" gradientUnits="userSpaceOnUse"><stop stop-color="#ADB2B8"></stop><stop offset="1" stop-color="#DBE1E8" stop-opacity="0"></stop></linearGradient></defs></svg></i></div>',1)),f("div",ECt,O(B(F)("productListComposerModalWindow.emptySearchProductListTopText")),1),f("div",PCt,O(B(F)("productListComposerModalWindow.emptySearchProductListBottomText")),1),e[1]||(e[1]=f("div",{class:"bootstrap-styles d-flex align-items-end"},[f("span",{class:"bootstrap-styles bg-color-gray rounded-2 p-3 me-1"},"123456"),je(", "),f("span",{class:"bootstrap-styles bg-color-gray rounded-2 p-3 ms-1 me-1"},"123457"),je(", "),f("span",{class:"bootstrap-styles bg-color-gray rounded-2 p-3 ms-1"},"123458")],-1))])]))}}),NCt={key:0,class:"bootstrap-styles d-flex flex-column scrollable","data-test":"searched-product-list"},ACt=dt({__name:"SearchedProductList",props:{searchedProductList:{}},emits:["addSearchedProduct"],setup(t,{emit:o}){const e=t,n=o;return(s,i)=>e.searchedProductList.length?(S(),P("div",NCt,[(S(!0),P(Dt,null,Fe(e.searchedProductList,(r,a)=>(S(),st(xCt,{key:r.InternalProductId,product:r,index:a+1,onAddSearchedProduct:d=>n("addSearchedProduct",r)},null,8,["product","index","onAddSearchedProduct"]))),128))])):(S(),st(wCt,{key:1}))}});const WCt=mt(ACt,[["__scopeId","data-v-4cc75e29"]]),kCt={class:"bootstrap-styles col-6 border-end h-100"},MCt={class:"bootstrap-styles container-fluid g-0 px-11 py-8 d-flex flex-column h-100"},OCt={key:1,class:"bootstrap-styles d-flex justify-content-center align-items-center h-100"},$Ct=dt({__name:"ProductSearchComponent",props:{deps:{},excluded:{},stockSource:{}},emits:["selected"],setup(t,{emit:o}){const e=t,n=a=>a.filter(d=>e.excluded.every(u=>d.InternalProductId!==u)),s=Pt({foundProducts:[],isLoaded:!0}),i=Ss.debounce(a=>{s.isLoaded=!1,e.deps.findProductsByPhrase(a,e.stockSource).then(d=>{s.foundProducts=d,s.isLoaded=!0})},50),r=o;return(a,d)=>(S(),P("div",kCt,[f("div",MCt,[E(lCt,{isButtonAddAllEnable:n(s.foundProducts).length>0,isLoaded:s.isLoaded,onAddAllFoundProducts:d[0]||(d[0]=()=>{r("selected",n(s.foundProducts).map(u=>u.InternalProductId))}),onSearch:d[1]||(d[1]=u=>B(i)(u))},null,8,["isButtonAddAllEnable","isLoaded"]),s.isLoaded?(S(),st(WCt,{key:0,searchedProductList:n(s.foundProducts),onAddSearchedProduct:d[2]||(d[2]=u=>r("selected",[u.InternalProductId]))},null,8,["searchedProductList"])):(S(),P("div",OCt,O(B(F)("productListComposerModalWindow.searching")),1))])]))}}),OR=t=>{const o=t.number%10===1&&t.number%100!==1,e=t.number%10>=2&&t.number%10<=4&&(t.number%100<10||t.number%100>=20);return o?t.titles.one:e?t.titles.few:t.titles.many},HCt={},UCt={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jCt(t,o){return S(),P("svg",UCt,o[0]||(o[0]=[f("path",{d:"M5 11.75C5 7.89453 8.11719 4.75 12 4.75C15.8555 4.75 19 7.89453 19 11.75C19 15.6328 15.8555 18.75 12 18.75C8.11719 18.75 5 15.6328 5 11.75ZM9.78516 10.4648L11.0703 11.75L9.78516 13.0352C9.51172 13.3086 9.51172 13.7188 9.78516 13.9648C10.0312 14.2383 10.4414 14.2383 10.6875 13.9648L11.9727 12.6797L13.2852 13.9648C13.5312 14.2383 13.9414 14.2383 14.1875 13.9648C14.4609 13.7188 14.4609 13.3086 14.1875 13.0352L12.9023 11.75L14.1875 10.4648C14.4609 10.2188 14.4609 9.80859 14.1875 9.53516C13.9414 9.28906 13.5312 9.28906 13.2852 9.53516L11.9727 10.8477L10.6875 9.53516C10.4414 9.28906 10.0312 9.28906 9.78516 9.53516C9.51172 9.80859 9.51172 10.2188 9.78516 10.4648Z",fill:"#E23A4F"},null,-1)]))}const np=mt(HCt,[["render",jCt]]),zCt={class:"bootstrap-styles container-fluid product-list-item"},GCt={class:"bootstrap-styles row g-0 py-1"},KCt={class:"bootstrap-styles col-1"},YCt={class:"bootstrap-styles w-100 h-100 d-flex justify-content-start align-items-center px-14","data-test":"selected-product-list__item-index"},ZCt={class:"bootstrap-styles col-1"},JCt={class:"bootstrap-styles w-100 d-flex justify-content-center align-items-center product-list-item__image"},XCt=["src","alt"],QCt={class:"bootstrap-styles col-9 ps-3"},qCt={class:"bootstrap-styles h-100 d-flex flex-column align-items-start justify-content-center"},tht={key:0,class:"bootstrap-styles mb-1 product-list-item__not-available"},eht={class:"bootstrap-styles mb-1 text-gray-600"},oht={"data-test":"selected-product-list__item-id"},nht={class:"bootstrap-styles","data-test":"selected-product-list__item-name"},iht={class:"bootstrap-styles col-1"},rht={class:"bootstrap-styles w-100 h-100 d-flex justify-content-end align-items-center pe-14"},sht=dt({__name:"SelectedProductListItem",props:{index:{},product:{}},emits:["remove"],setup(t,{emit:o}){const e=t,n=Pt({isBrokenImage:!1}),s=o;return(i,r)=>(S(),P("div",zCt,[f("div",GCt,[f("div",KCt,[f("div",YCt,O(e.index),1)]),f("div",ZCt,[f("div",JCt,[n.isBrokenImage?(S(),st(Qg,{key:1})):(S(),P("img",{key:0,class:"bootstrap-styles mw-100 mh-100",src:e.product.PictureUrl,alt:e.product.Name,"data-test":"selected-product-list__item-image",onError:r[0]||(r[0]=()=>n.isBrokenImage=!0)},null,40,XCt))])]),f("div",QCt,[f("div",qCt,[e.product.IsAvailable?bt("",!0):(S(),P("div",tht,O(B(F)("productListComposerModalWindow.notAvailableLabel")),1)),f("div",eht,[r[2]||(r[2]=f("span",{class:"bootstrap-styles me-14"},"ID",-1)),f("span",oht,O(e.product.ExternalProductId),1)]),f("div",nht,O(e.product.Name),1)])]),f("div",iht,[f("div",rht,[f("button",{"data-test":"selected-product-list__item-remove-button",onClick:r[1]||(r[1]=a=>s("remove"))},[f("i",null,[E(np)])])])])])]))}});const aht=mt(sht,[["__scopeId","data-v-c2917fe1"]]),lht={class:"bootstrap-styles d-flex flex-column scrollable"},uht=dt({__name:"SelectedProductList",props:{selectedProductList:{}},emits:["remove"],setup(t,{emit:o}){const e=t,n=o;return(s,i)=>(S(),P("div",lht,[(S(!0),P(Dt,null,Fe(e.selectedProductList,(r,a)=>(S(),st(aht,{key:r.InternalProductId,product:r,index:a+1,onRemove:d=>n("remove",r.InternalProductId)},null,8,["product","index","onRemove"]))),128))]))}});const dht=mt(uht,[["__scopeId","data-v-90ef23ff"]]),mht={class:"bootstrap-styles container-fluid g-0 h-100 empty-product-list"},cht={class:"bootstrap-styles d-flex flex-column justify-content-center align-items-center h-100"},fht=dt({__name:"EmptyProductList",setup(t){return(o,e)=>(S(),P("div",mht,[f("div",cht,[e[0]||(e[0]=cr('<i class="bootstrap-styles mb-5"><svg width="100" height="101" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.5703 20.5264C17.5703 13.8057 23.0186 8.35742 29.7393 8.35742H63.4097L82.2847 26.6932V80.8564C82.2847 87.5771 76.8364 93.0254 70.1157 93.0254H29.7393C23.0186 93.0254 17.5703 87.5771 17.5703 80.8564V20.5264Z" fill="#E3E9FC"></path><path d="M69.3144 26.6934H82.1895L63.3144 8.35762V20.6934C63.3144 24.0071 66.0007 26.6934 69.3144 26.6934Z" fill="#A5B4E3"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M49.9997 44.0713C49.2107 44.0713 48.5711 44.7109 48.5711 45.4999V50.4999H43.5711C42.7822 50.4999 42.1426 51.1395 42.1426 51.9284C42.1426 52.7174 42.7822 53.357 43.5711 53.357H48.5711V58.357C48.5711 59.146 49.2107 59.7856 49.9997 59.7856C50.7887 59.7856 51.4283 59.146 51.4283 58.357V53.357H56.4283C57.2173 53.357 57.8569 52.7174 57.8569 51.9284C57.8569 51.1395 57.2173 50.4999 56.4283 50.4999H51.4283V45.4999C51.4283 44.7109 50.7887 44.0713 49.9997 44.0713Z" fill="#A5B4E3"></path></svg></i>',1)),f("div",null,O(B(F)("productListComposerModalWindow.emptySelectedProductList")),1)])]))}}),pht={class:"bootstrap-styles col-6 h-100"},Cht={key:0,class:"bootstrap-styles container-fluid g-0 px-11 py-9 d-flex flex-column h-100"},hht={class:"bootstrap-styles mb-7 mt-1"},ght={class:"bootstrap-styles d-flex justify-content-between align-items-center"},Fht={class:"bootstrap-styles fw-bold mb-0"},yht={class:"bootstrap-styles d-flex align-items-center gap-5"},Sht={class:"bootstrap-styles text-gray-600"},bht={key:1,class:"bootstrap-styles d-flex justify-content-center align-items-center h-100"},Tht=dt({__name:"SelectProductComponent",props:{deps:{},productIdList:{},stockSource:{}},emits:["remove","onProductListRemoved"],setup(t,{emit:o}){const e=t,n=Pt({productList:[],isLoaded:!1});ks(()=>{n.isLoaded=!1,e.deps.getProductsByIDs(e.productIdList,e.stockSource).then(i=>{n.productList=i,n.isLoaded=!0})}),uo(()=>e.productIdList,()=>{n.isLoaded=!1,e.deps.getProductsByIDs(e.productIdList,e.stockSource).then(i=>{n.productList=i,n.isLoaded=!0})});const s=o;return(i,r)=>(S(),P("div",pht,[e.productIdList.length?(S(),P("div",Cht,[f("div",hht,[f("div",ght,[f("h6",Fht,O(B(F)("productListComposerModalWindow.selectedProductListTitle")),1),f("div",yht,[f("div",Sht,O(e.productIdList.length)+" "+O(B(OR)({number:e.productIdList.length,titles:{one:B(F)("productListComposerModalWindow.selectedProductListDeclensions.one"),few:B(F)("productListComposerModalWindow.selectedProductListDeclensions.few"),many:B(F)("productListComposerModalWindow.selectedProductListDeclensions.many")}})),1),f("button",{class:"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 border border-blue-selected rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:r[0]||(r[0]=a=>s("onProductListRemoved"))},O(B(F)("productListComposerModalWindow.clearListButton")),1)])])]),n.isLoaded?(S(),st(dht,{key:0,selectedProductList:n.productList,onRemove:r[1]||(r[1]=a=>s("remove",a))},null,8,["selectedProductList"])):(S(),P("div",bht,O(B(F)("productListComposerModalWindow.loading")),1))])):(S(),st(fht,{key:1}))]))}}),Bht={class:"bootstrap-styles container-fluid g-0 d-flex flex-column product-list-composer-modal-window__body"},Vht={class:"bootstrap-styles row g-0 flex-grow-1 h-100 d-flex"},Lht=dt({__name:"ProductListComposerModalWindow",props:{deps:{},stockSource:{},internalIProductDs:{}},emits:["cancel","apply"],setup(t,{emit:o}){const e=t,n=Pt({selectedProductIDs:[...e.internalIProductDs]}),s=()=>{i("cancel")},i=o;return(r,a)=>(S(),st(wn,{class:"product-list-composer-modal-window",headerText:B(F)("productListComposerModalWindow.title"),onClose:a[5]||(a[5]=()=>s())},{body:de(()=>[f("div",Bht,[f("div",Vht,[E($Ct,{excluded:n.selectedProductIDs,deps:e.deps.productSearchComponentDeps,stockSource:e.stockSource,onSelected:a[0]||(a[0]=d=>{n.selectedProductIDs=[...n.selectedProductIDs,...d]})},null,8,["excluded","deps","stockSource"]),E(Tht,{productIdList:n.selectedProductIDs,deps:e.deps.selectProductComponentDeps,stockSource:e.stockSource,onRemove:a[1]||(a[1]=d=>{n.selectedProductIDs=n.selectedProductIDs.filter(u=>u!==d)}),onOnProductListRemoved:a[2]||(a[2]=()=>n.selectedProductIDs=[])},null,8,["productIdList","deps","stockSource"])])])]),"footer-actions":de(()=>[f("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 border border-blue-selected rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:a[3]||(a[3]=Le(d=>s(),["stop"]))},O(B(F)("productListComposerModalWindow.cancelButton")),1),f("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 border rounded-2 bg-color-selected text-white cursor-pointer",onClick:a[4]||(a[4]=Le(d=>i("apply",n.selectedProductIDs),["stop"]))},O(B(F)("productListComposerModalWindow.applyButton")),1)]),_:1},8,["headerText"]))}});const qg=mt(Lht,[["__scopeId","data-v-47cda5d9"]]),Dht={class:"bootstrap-styles container-fluid product-list-item"},vht={class:"bootstrap-styles row g-0 py-1"},Rht={class:"bootstrap-styles col-1 m-auto"},xht={class:"bootstrap-styles w-100 h-100 d-flex flex-column justify-content-start align-items-center px-14"},_ht={class:"product-list-item__sort-button"},Iht={"data-test":"product-list-item__index"},Eht={class:"product-list-item__sort-button"},Pht={class:"bootstrap-styles col-1 m-auto"},wht={class:"bootstrap-styles w-100 d-flex justify-content-center align-items-center product-list-item__image"},Nht=["alt","src"],Aht={class:"bootstrap-styles col-9 ps-3"},Wht={class:"bootstrap-styles h-100 d-flex flex-column align-items-start justify-content-center"},kht={key:0,class:"bootstrap-styles mb-1 product-list-item__not-available"},Mht={class:"bootstrap-styles mb-1 text-gray-600"},Oht={"data-test":"product-list-item__id"},$ht={class:"bootstrap-styles col-1"},Hht={class:"bootstrap-styles w-100 h-100 d-flex justify-content-end align-items-center pe-14"},Uht=dt({__name:"ProductListItem",props:{index:{},product:{}},emits:["remove","moveUp","moveDown"],setup(t,{emit:o}){const e=t,n=Pt({isBrokenImage:!1}),s=o;return(i,r)=>(S(),P("div",Dht,[f("div",vht,[f("div",Rht,[f("div",xht,[f("div",_ht,[f("button",{class:"bootstrap-styles d-flex justify-content-center align-items-center w-100 h-100","data-test":"product-list-item__move-up-button",onClick:r[0]||(r[0]=a=>s("moveUp"))},[E(mv)])]),f("span",Iht,O(e.index),1),f("div",Eht,[f("button",{class:"bootstrap-styles d-flex justify-content-center align-items-center w-100 h-100","data-test":"product-list-item__move-down-button",onClick:r[1]||(r[1]=a=>s("moveDown"))},[E(cv)])])])]),f("div",Pht,[f("div",wht,[n.isBrokenImage?(S(),st(Qg,{key:1})):(S(),P("img",{key:0,alt:e.product.Name,src:e.product.PictureUrl,class:"bootstrap-styles mw-100 mh-100","data-test":"product-list-item__image",onError:r[2]||(r[2]=()=>n.isBrokenImage=!0)},null,40,Nht))])]),f("div",Aht,[f("div",Wht,[e.product.IsAvailable?bt("",!0):(S(),P("div",kht,O(B(F)("productShelfBuilderComponent.productShelfBuilders.notAvailableLabel")),1)),f("div",Mht,[r[4]||(r[4]=f("span",{class:"bootstrap-styles me-14"},"ID",-1)),f("span",Oht,O(e.product.ExternalProductId),1)]),f("div",{class:at(["bootstrap-styles",{"text-gray-600":!e.product.IsAvailable}]),"data-test":"product-list-item__name"},O(e.product.Name),3)])]),f("div",$ht,[f("div",Hht,[f("button",{"data-test":"product-list-item__remove-button",onClick:r[3]||(r[3]=a=>s("remove"))},[f("i",null,[E(np)])])])])])]))}});const jht=mt(Uht,[["__scopeId","data-v-446bb8c0"]]),zht={class:"bootstrap-styles container-fluid scrollable","data-test":"product-list"},Ght={class:"bootstrap-styles d-flex flex-column"},Kht=dt({__name:"ProductList",props:{productList:{}},emits:["updatedProductList"],setup(t,{emit:o}){const e=t,n=a=>{const d=e.productList.filter(u=>u.InternalProductId!==a);r("updatedProductList",d)},s=a=>{if(a===e.productList.length-1)return;const d=[...e.productList],u=d.splice(a,1);d.splice(a+1,0,u[0]),r("updatedProductList",d)},i=a=>{if(a===0)return;const d=[...e.productList],u=d.splice(a,1);d.splice(a-1,0,u[0]),r("updatedProductList",d)},r=o;return(a,d)=>(S(),P("div",zht,[f("div",Ght,[(S(!0),P(Dt,null,Fe(e.productList,(u,c)=>(S(),st(jht,{key:u.InternalProductId,index:c+1,product:u,"data-test":"product-list__item",onRemove:p=>n(u.InternalProductId),onMoveUp:p=>i(c),onMoveDown:p=>s(c)},null,8,["index","product","onRemove","onMoveUp","onMoveDown"]))),128))])]))}});const tF=mt(Kht,[["__scopeId","data-v-1906e819"]]),Yht={class:"bootstrap-styles fw-bold mb-5"},Zht={class:"bootstrap-styles container-fluid mb-8"},Jht={class:"bootstrap-styles position-relative"},Xht={key:1,class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-center align-items-center border-blue-selected mb-8 algorithm-description"},Qht={class:"bootstrap-styles me-3"},qht={class:"bootstrap-styles container-fluid mb-5"},t0t=dt({__name:"ProductListShelfBuilder",props:{deps:{},productListShelf:{}},emits:["updatedProductListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({productListComposerModalWindowIsShown:!1,productList:[],stockIdList:[],isProductListLoaded:!1,isStockLoaded:!1}),s=(r,a)=>{n.isProductListLoaded=!1,e.deps.getProductsByIDs(r,a).then(d=>{n.productList=d,n.isProductListLoaded=!0})};s(e.productListShelf.ProductInternalIDs,e.productListShelf.StockSource),e.deps.getAllStockIds().then(r=>{n.stockIdList=r,n.isStockLoaded=!0});const i=o;return(r,a)=>(S(),P(Dt,null,[E(Jn,{class:at(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isStockLoaded}])},null,8,["class"]),f("div",{class:at(["bootstrap-styles container-fluid px-11 mt-8",{invisible:!n.isStockLoaded}])},[f("label",Yht,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",Zht,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.productListShelf.StockSource,onOnStockSourceUpdated:a[0]||(a[0]=d=>{i("updatedProductListShelf",{...e.productListShelf,StockSource:d}),s(e.productListShelf.ProductInternalIDs,d)})},null,8,["stockIdList","stockSource"])]),f("div",Jht,[E(Jn,{class:at(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isProductListLoaded}])},null,8,["class"]),n.productList.length>0?(S(),st(tF,{key:0,class:at({"mb-8":n.productList.length,invisible:!n.isProductListLoaded}),productList:n.productList,onUpdatedProductList:a[1]||(a[1]=d=>{n.productList=d,i("updatedProductListShelf",{...e.productListShelf,ProductInternalIDs:d.map(u=>u.InternalProductId)})})},null,8,["class","productList"])):(S(),P("div",Xht,[f("div",Qht,[f("i",null,[E(Ti)])]),Ot(f("div",null,null,512),[[B(Qn),B(F)("productShelfBuilderComponent.productShelfBuilders.productListDescription")]])]))]),f("div",qht,[f("button",{class:"bootstrap-styles button__hover-blue-100 d-flex justify-content-center align-items-center text-color-selected border rounded-2 bg-blue-selected border-blue-selected w-100 py-1 px-3",onClick:a[2]||(a[2]=d=>n.productListComposerModalWindowIsShown=!0)},O(B(F)("productShelfBuilderComponent.productShelfBuilders.productsSelectButton")),1)]),E(zi,{productsAtLeast:e.productListShelf.AtLeast,productsLimit:e.productListShelf.Limit,"onUpdate:productsAtLeast":a[3]||(a[3]=d=>i("updatedProductListShelf",{...e.productListShelf,AtLeast:d})),"onUpdate:productsLimit":a[4]||(a[4]=d=>i("updatedProductListShelf",{...e.productListShelf,Limit:d}))},null,8,["productsAtLeast","productsLimit"])],2),(S(),st(mo,{to:"#app"},[n.productListComposerModalWindowIsShown?(S(),st(qg,{key:0,deps:e.deps.productListComposerModalWindowDeps,internalIProductDs:e.productListShelf.ProductInternalIDs,stockSource:e.productListShelf.StockSource,onApply:a[5]||(a[5]=d=>{n.productListComposerModalWindowIsShown=!1,i("updatedProductListShelf",{...e.productListShelf,ProductInternalIDs:d}),s(d,e.productListShelf.StockSource)}),onCancel:a[6]||(a[6]=()=>n.productListComposerModalWindowIsShown=!1)},null,8,["deps","internalIProductDs","stockSource"])):bt("",!0)]))],64))}});const e0t=mt(t0t,[["__scopeId","data-v-c6314696"]]),o0t={class:"bootstrap-styles fw-bold mb-5"},n0t={class:"bootstrap-styles container-fluid mb-8"},i0t={class:"bootstrap-styles position-relative"},r0t={key:1,class:"bootstrap-styles container-fluid g-0 mb-8"},s0t={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-between align-items-center border-blue-selected algorithm-description"},a0t={class:"bootstrap-styles me-3"},l0t={class:"bootstrap-styles container-fluid mb-5"},u0t=dt({__name:"RelatedProductListShelfBuilder",props:{deps:{},relatedProductListShelf:{}},emits:["updatedRelatedProductListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({isProductListComposerModalWindowShown:!1,productList:[],stockIdList:[],isProductListLoaded:!1,isStockLoaded:!1}),s=(r,a)=>{n.isProductListLoaded=!1,e.deps.getProductsByIDs(r,a).then(d=>{n.productList=d,n.isProductListLoaded=!0})};s(e.relatedProductListShelf.ProductInternalIDs,e.relatedProductListShelf.StockSource),e.deps.getAllStockIds().then(r=>{n.stockIdList=r,n.isStockLoaded=!0});const i=o;return(r,a)=>(S(),P(Dt,null,[E(Jn,{class:at(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isStockLoaded}])},null,8,["class"]),f("div",{class:at(["bootstrap-styles container-fluid px-11 mt-8",{invisible:!n.isStockLoaded}])},[f("label",o0t,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",n0t,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.relatedProductListShelf.StockSource,onOnStockSourceUpdated:a[0]||(a[0]=d=>{i("updatedRelatedProductListShelf",{...e.relatedProductListShelf,StockSource:d}),s(e.relatedProductListShelf.ProductInternalIDs,d)})},null,8,["stockIdList","stockSource"])]),f("div",i0t,[E(Jn,{class:at(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isProductListLoaded}])},null,8,["class"]),n.productList.length>0?(S(),st(tF,{key:0,class:at({"mb-8":n.productList.length,invisible:!n.isProductListLoaded}),productList:n.productList,onUpdatedProductList:a[1]||(a[1]=d=>{n.productList=d,i("updatedRelatedProductListShelf",{...e.relatedProductListShelf,ProductInternalIDs:d.map(u=>u.InternalProductId)})})},null,8,["class","productList"])):(S(),P("div",r0t,[f("div",s0t,[f("div",a0t,[f("i",null,[E(Ti)])]),Ot(f("div",null,null,512),[[B(Qn),B(F)("productShelfBuilderComponent.productShelfBuilders.relatedProductListDescription")]])])]))]),f("div",l0t,[f("button",{class:"bootstrap-styles button__hover-blue-100 d-flex justify-content-center align-items-center text-color-selected border rounded-2 bg-blue-selected border-blue-selected w-100 py-1 px-3",onClick:a[2]||(a[2]=d=>n.isProductListComposerModalWindowShown=!0)},O(B(F)("productShelfBuilderComponent.productShelfBuilders.productsSelectButton")),1)]),E(zi,{productsAtLeast:e.relatedProductListShelf.AtLeast,productsLimit:e.relatedProductListShelf.Limit,"onUpdate:productsAtLeast":a[3]||(a[3]=d=>i("updatedRelatedProductListShelf",{...e.relatedProductListShelf,AtLeast:d})),"onUpdate:productsLimit":a[4]||(a[4]=d=>i("updatedRelatedProductListShelf",{...e.relatedProductListShelf,Limit:d}))},null,8,["productsAtLeast","productsLimit"])],2),(S(),st(mo,{to:"#app"},[n.isProductListComposerModalWindowShown?(S(),st(qg,{key:0,deps:e.deps.productListComposerModalWindowDeps,internalIProductDs:e.relatedProductListShelf.ProductInternalIDs,stockSource:e.relatedProductListShelf.StockSource,onApply:a[5]||(a[5]=d=>{n.isProductListComposerModalWindowShown=!1,i("updatedRelatedProductListShelf",{...e.relatedProductListShelf,ProductInternalIDs:d}),s(d,e.relatedProductListShelf.StockSource)}),onCancel:a[6]||(a[6]=()=>n.isProductListComposerModalWindowShown=!1)},null,8,["deps","internalIProductDs","stockSource"])):bt("",!0)]))],64))}});const d0t=mt(u0t,[["__scopeId","data-v-55cda6b9"]]),m0t={},c0t={class:"bootstrap-styles d-flex justify-content-center align-items-center py-7 h-100 overflow-hidden"};function f0t(t,o){return S(),P("div",c0t,o[0]||(o[0]=[cr('<div class="bootstrap-styles empty-product-list d-flex flex-column justify-content-center align-items-center"><div class="bootstrap-styles"><i><svg width="29" height="145" viewBox="0 0 29 145" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.34301 0.806801C1.39524 0.535643 1.65739 0.358164 1.92855 0.410391L6.34733 1.26148C6.61849 1.31371 6.79597 1.57587 6.74374 1.84702C6.69152 2.11818 6.42936 2.29566 6.1582 2.24343L2.23039 1.48691L1.47387 5.41472C1.42164 5.68587 1.15949 5.86335 0.888327 5.81113C0.617168 5.7589 0.439689 5.49674 0.491917 5.22558L1.34301 0.806801ZM2.24802 0.621063C15.8989 20.785 26.0105 46.9369 28.2169 72.9399C30.4235 98.9456 24.7247 124.849 6.69023 144.437L5.95455 143.76C23.7465 124.435 29.4109 98.8391 27.2205 73.0245C25.0298 47.2071 14.9839 21.2171 1.41994 1.18167L2.24802 0.621063Z" fill="url(#paint0_linear_2569_17987)"></path><defs><linearGradient id="paint0_linear_2569_17987" x1="1.71323" y1="0.434833" x2="8.14345" y2="145.179" gradientUnits="userSpaceOnUse"><stop stop-color="#ADB2B8"></stop><stop offset="1" stop-color="#DBE1E8" stop-opacity="0"></stop></linearGradient></defs></svg></i></div><div class="bootstrap-styles text-gray-600 p-3"> Введите название категории, чтобы отобразились результаты </div></div>',1)]))}const p0t=mt(m0t,[["render",f0t]]),C0t={class:"bootstrap-styles container-fluid category-list-item"},h0t={class:"bootstrap-styles row g-0 py-1"},g0t={class:"bootstrap-styles col-11"},F0t={class:"bootstrap-styles h-100 d-flex flex-column align-items-start justify-content-center"},y0t={class:"bootstrap-styles d-flex justify-content-start align-items-center mb-1"},S0t={class:"bootstrap-styles fw-bold me-1"},b0t={class:"bootstrap-styles text-gray-600"},T0t={class:"bootstrap-styles"},B0t={class:"bootstrap-styles col-1"},V0t={class:"bootstrap-styles w-100 h-100 d-flex justify-content-end align-items-center pe-14"},L0t=dt({__name:"SearchedCategoryListItem",props:{category:{}},emits:["addSearchedCategory"],setup(t,{emit:o}){const e=t,n=o;return(s,i)=>(S(),P("div",C0t,[f("div",h0t,[f("div",g0t,[f("div",F0t,[f("div",y0t,[f("div",S0t,O(e.category.Name),1),f("div",b0t,[i[1]||(i[1]=f("span",{class:"bootstrap-styles me-14"},"ID",-1)),f("span",null,O(e.category.CategoryId),1)])]),f("div",T0t,O(e.category.Path),1)])]),f("div",B0t,[f("div",V0t,[f("button",{onClick:i[0]||(i[0]=r=>n("addSearchedCategory"))},[f("i",null,[E(MR)])])])])])]))}});const D0t=mt(L0t,[["__scopeId","data-v-3de1bdba"]]),v0t={key:0,class:"bootstrap-styles d-flex flex-column scrollable"},R0t=dt({__name:"SearchedCategoryList",props:{searchedCategoryList:{}},emits:["addSearchedCategory"],setup(t,{emit:o}){const e=t,n=o;return(s,i)=>e.searchedCategoryList.length?(S(),P("div",v0t,[(S(!0),P(Dt,null,Fe(e.searchedCategoryList,(r,a)=>(S(),st(D0t,{key:a,category:r,index:a+1,onAddSearchedCategory:d=>n("addSearchedCategory",r)},null,8,["category","index","onAddSearchedCategory"]))),128))])):(S(),st(p0t,{key:1}))}});const x0t=mt(R0t,[["__scopeId","data-v-07c9e700"]]),_0t={class:"bootstrap-styles row g-0 mb-7"},I0t={class:"bootstrap-styles col-8 d-flex justify-content-between align-items-center"},E0t={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex w-100"},P0t={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},w0t={class:"bootstrap-styles ps-1 me-7"},N0t={key:0,class:"bootstrap-styles d-flex justify-content-center align-items-center icon-fill"},A0t={class:"bootstrap-styles col-4"},W0t={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1 icon-stroke"},k0t=dt({__name:"CategorySearchBar",props:{isButtonAddAllEnable:{type:Boolean},isLoaded:{type:Boolean}},emits:["search","addAllFoundCategories"],setup(t,{emit:o}){const e=t,n=Pt({phrase:""}),s=()=>{n.phrase.length&&i("search",n.phrase)},i=o;return(r,a)=>(S(),P("div",_0t,[f("div",I0t,[f("div",E0t,[f("i",P0t,[E(WR)]),f("form",{class:"bootstrap-styles w-100 search-form",onSubmit:Le(s,["prevent"])},[Ot(f("input",{"onUpdate:modelValue":a[0]||(a[0]=d=>n.phrase=d),type:"text",class:"bootstrap-styles w-100",placeholder:"Название одной категории или список ID",required:""},null,512),[[En,n.phrase]])],32),Ot(f("button",{class:"bootstrap-styles px-14",onClick:a[1]||(a[1]=d=>n.phrase="")},a[3]||(a[3]=[f("i",{class:"bootstrap-styles d-flex justify-content-center align-items-center icon-hover-stroke"},[f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 16 16",fill:"none"},[f("path",{d:"M3 3L13 13",stroke:"var(--gray-500)"}),f("path",{d:"M13 3L3 13",stroke:"var(--gray-500)"})])],-1)]),512),[[_a,n.phrase.length>0]])]),f("div",w0t,[f("button",{class:at([{"button__active-700":n.phrase.length,button__locked:!e.isLoaded||!n.phrase.length},"bootstrap-styles d-flex justify-content-center align-items-center py-1 px-3 rounded-2 button__disabled-700"]),onClick:s},[e.isLoaded?(S(),P("i",N0t,[E(kR)])):(S(),st(fr,{key:1}))],2)])]),f("div",A0t,[f("button",{class:at([{"button__active-100 button__hover-blue-100":e.isButtonAddAllEnable,button__locked:!e.isButtonAddAllEnable},"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 bg-blue-selected button__disabled-100 w-100 me-1"]),onClick:a[2]||(a[2]=()=>i("addAllFoundCategories"))},[f("i",W0t,[E(Yf)]),a[4]||(a[4]=je(" Перенести всё "))],2)])]))}});const M0t=mt(k0t,[["__scopeId","data-v-5292c2c5"]]),O0t={class:"bootstrap-styles col-6 border-end h-100"},$0t={class:"bootstrap-styles container-fluid g-0 px-11 py-8 d-flex flex-column h-100"},H0t={key:1,class:"bootstrap-styles d-flex justify-content-center align-items-center h-100"},U0t=dt({__name:"CategorySearchComponent",props:{deps:{},excluded:{}},emits:["selected"],setup(t,{emit:o}){const e=t,n=a=>a.filter(d=>e.excluded.every(u=>d.CategoryId!==u)),s=Pt({isLoaded:!0,foundCategories:[]}),i=Ss.debounce(a=>{if(s.isLoaded=!1,a.split(",").every(u=>!isNaN(Number(u.trim())))){const u=a.split(",").map(Number);e.deps.getCategoriesByIDs(u).then(c=>{s.foundCategories=c,s.isLoaded=!0})}else e.deps.findCategoriesByName(a).then(u=>{s.foundCategories=u,s.isLoaded=!0})},50),r=o;return(a,d)=>(S(),P("div",O0t,[f("div",$0t,[E(M0t,{isButtonAddAllEnable:n(s.foundCategories).length>0,isLoaded:s.isLoaded,onAddAllFoundCategories:d[0]||(d[0]=()=>{r("selected",n(s.foundCategories).map(u=>u.CategoryId))}),onSearch:d[1]||(d[1]=u=>B(i)(u))},null,8,["isButtonAddAllEnable","isLoaded"]),s.isLoaded?(S(),st(x0t,{key:0,searchedCategoryList:n(s.foundCategories),onAddSearchedCategory:d[2]||(d[2]=u=>r("selected",[u.CategoryId]))},null,8,["searchedCategoryList"])):(S(),P("div",H0t," Загрузка... "))])]))}}),j0t={class:"bootstrap-styles container-fluid category-list-item"},z0t={class:"bootstrap-styles row g-0 py-1"},G0t={class:"bootstrap-styles col-11"},K0t={class:"bootstrap-styles h-100 d-flex flex-column align-items-start justify-content-center"},Y0t={class:"bootstrap-styles d-flex justify-content-start align-items-center mb-1"},Z0t={class:"bootstrap-styles fw-bold me-1"},J0t={class:"bootstrap-styles text-gray-600"},X0t={class:"bootstrap-styles"},Q0t={class:"bootstrap-styles col-1"},q0t={class:"bootstrap-styles w-100 h-100 d-flex justify-content-end align-items-center pe-14"},tgt=dt({__name:"SelectedCategoryListItem",props:{category:{}},emits:["remove"],setup(t,{emit:o}){const e=t,n=o;return(s,i)=>(S(),P("div",j0t,[f("div",z0t,[f("div",G0t,[f("div",K0t,[f("div",Y0t,[f("div",Z0t,O(e.category.Name),1),f("div",J0t,[i[1]||(i[1]=f("span",{class:"bootstrap-styles me-14"},"ID",-1)),f("span",null,O(e.category.CategoryId),1)])]),f("div",X0t,O(e.category.Path),1)])]),f("div",Q0t,[f("div",q0t,[f("button",{onClick:i[0]||(i[0]=r=>n("remove"))},[f("i",null,[E(np)])])])])])]))}});const egt=mt(tgt,[["__scopeId","data-v-0205956d"]]),ogt={class:"bootstrap-styles d-flex flex-column scrollable"},ngt=dt({__name:"SelectedCategoryList",props:{selectedCategoryList:{}},emits:["remove"],setup(t,{emit:o}){const e=t,n=o;return(s,i)=>(S(),P("div",ogt,[(S(!0),P(Dt,null,Fe(e.selectedCategoryList,(r,a)=>(S(),st(egt,{key:a,category:r,index:a+1,onRemove:d=>n("remove",r.CategoryId)},null,8,["category","index","onRemove"]))),128))]))}});const igt=mt(ngt,[["__scopeId","data-v-854c6a31"]]),rgt={},sgt={class:"bootstrap-styles container-fluid g-0 h-100 empty-product-list"};function agt(t,o){return S(),P("div",sgt,o[0]||(o[0]=[cr('<div class="bootstrap-styles d-flex flex-column justify-content-center align-items-center h-100"><i class="bootstrap-styles mb-5"><svg width="100" height="101" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.5703 20.5264C17.5703 13.8057 23.0186 8.35742 29.7393 8.35742H63.4097L82.2847 26.6932V80.8564C82.2847 87.5771 76.8364 93.0254 70.1157 93.0254H29.7393C23.0186 93.0254 17.5703 87.5771 17.5703 80.8564V20.5264Z" fill="#E3E9FC"></path><path d="M69.3144 26.6934H82.1895L63.3144 8.35762V20.6934C63.3144 24.0071 66.0007 26.6934 69.3144 26.6934Z" fill="#A5B4E3"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M49.9997 44.0713C49.2107 44.0713 48.5711 44.7109 48.5711 45.4999V50.4999H43.5711C42.7822 50.4999 42.1426 51.1395 42.1426 51.9284C42.1426 52.7174 42.7822 53.357 43.5711 53.357H48.5711V58.357C48.5711 59.146 49.2107 59.7856 49.9997 59.7856C50.7887 59.7856 51.4283 59.146 51.4283 58.357V53.357H56.4283C57.2173 53.357 57.8569 52.7174 57.8569 51.9284C57.8569 51.1395 57.2173 50.4999 56.4283 50.4999H51.4283V45.4999C51.4283 44.7109 50.7887 44.0713 49.9997 44.0713Z" fill="#A5B4E3"></path></svg></i><div> Список категорий пока что пуст </div></div>',1)]))}const lgt=mt(rgt,[["render",agt]]),ugt={class:"bootstrap-styles col-6 h-100"},dgt={key:0,class:"bootstrap-styles container-fluid g-0 px-11 py-9 d-flex flex-column h-100"},mgt={class:"bootstrap-styles mb-7 mt-1"},cgt={class:"bootstrap-styles d-flex justify-content-between align-items-center"},fgt={class:"bootstrap-styles text-gray-600"},pgt={key:1,class:"bootstrap-styles d-flex justify-content-center align-items-center h-100"},Cgt=dt({__name:"SelectCategoryComponent",props:{deps:{},categoryIdList:{}},emits:["remove"],setup(t,{emit:o}){const e=t,n=Pt({isLoaded:!0,categoryList:[]});Kl(()=>{n.isLoaded=!1,e.deps.getCategoriesByIDs(e.categoryIdList).then(i=>{n.categoryList=i,n.isLoaded=!0})});const s=o;return(i,r)=>(S(),P("div",ugt,[e.categoryIdList.length?(S(),P("div",dgt,[f("div",mgt,[f("div",cgt,[r[1]||(r[1]=f("h6",{class:"bootstrap-styles fw-bold mb-0"}," Список категорий ",-1)),f("div",fgt,O(e.categoryIdList.length)+" "+O(B(OR)({number:e.categoryIdList.length,titles:{one:"категория",few:"категории",many:"категорий"}})),1)])]),n.isLoaded?(S(),st(igt,{key:0,selectedCategoryList:n.categoryList,onRemove:r[0]||(r[0]=a=>s("remove",a))},null,8,["selectedCategoryList"])):(S(),P("div",pgt," Загрузка... "))])):(S(),st(lgt,{key:1}))]))}}),hgt={class:"bootstrap-styles container-fluid g-0 d-flex flex-column category-list-composer-modal-window__body"},ggt={class:"bootstrap-styles row g-0 flex-grow-1 h-100 d-flex"},Fgt=dt({__name:"CategoryListComposerModalWindow",props:{deps:{},categoryIdList:{}},emits:["cancel","apply"],setup(t,{emit:o}){const e=t,n=Pt({selectedCategoryIdList:[...e.categoryIdList]}),s=()=>{i("cancel")},i=o;return(r,a)=>(S(),st(wn,{class:"category-list-composer-modal-window",headerText:"Выбор категорий",onClose:a[4]||(a[4]=()=>s())},{body:de(()=>[f("div",hgt,[f("div",ggt,[E(U0t,{deps:e.deps.categorySearchComponentDeps,excluded:n.selectedCategoryIdList,onSelected:a[0]||(a[0]=d=>{n.selectedCategoryIdList=[...n.selectedCategoryIdList,...d]})},null,8,["deps","excluded"]),E(Cgt,{deps:e.deps.selectCategoryComponentDeps,categoryIdList:n.selectedCategoryIdList,onRemove:a[1]||(a[1]=d=>{n.selectedCategoryIdList=n.selectedCategoryIdList.filter(u=>u!==d)})},null,8,["deps","categoryIdList"])])])]),"footer-actions":de(()=>[f("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 border border-blue-selected rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:a[2]||(a[2]=Le(d=>s(),["stop"]))}," Отмена "),f("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 border rounded-2 bg-color-selected text-white cursor-pointer",onClick:a[3]||(a[3]=Le(d=>i("apply",n.selectedCategoryIdList),["stop"]))}," Применить ")]),_:1}))}});const ygt=mt(Fgt,[["__scopeId","data-v-ca3ead8c"]]),Sgt={class:"bootstrap-styles container-fluid category-list-item"},bgt={class:"bootstrap-styles row g-0 py-1"},Tgt={class:"bootstrap-styles col-11"},Bgt={class:"bootstrap-styles h-100 d-flex flex-column align-items-start justify-content-center"},Vgt={class:"bootstrap-styles d-flex justify-content-start align-items-center mb-1"},Lgt={class:"bootstrap-styles fw-bold me-1"},Dgt={class:"bootstrap-styles text-gray-600"},vgt={class:"bootstrap-styles"},Rgt={class:"bootstrap-styles col-1"},xgt={class:"bootstrap-styles w-100 h-100 d-flex justify-content-end align-items-center pe-14"},_gt=dt({__name:"CategoryListItem",props:{category:{}},emits:["removeItem"],setup(t,{emit:o}){const e=t,n=o;return(s,i)=>(S(),P("div",Sgt,[f("div",bgt,[f("div",Tgt,[f("div",Bgt,[f("div",Vgt,[f("div",Lgt,O(e.category.Name),1),f("div",Dgt,[i[1]||(i[1]=f("span",{class:"bootstrap-styles me-14"},"ID",-1)),f("span",null,O(e.category.CategoryId),1)])]),f("div",vgt,O(e.category.Path),1)])]),f("div",Rgt,[f("div",xgt,[f("button",{onClick:i[0]||(i[0]=r=>n("removeItem"))},[f("i",null,[E(np)])])])])])]))}});const Igt=mt(_gt,[["__scopeId","data-v-867dfd55"]]),Egt={class:"bootstrap-styles container-fluid scrollable"},Pgt={class:"bootstrap-styles d-flex flex-column"},wgt=dt({__name:"CategoryList",props:{categoryList:{}},emits:["updatedCategoryList"],setup(t,{emit:o}){const e=t,n=i=>{const r=e.categoryList.filter(a=>a.CategoryId!==i);s("updatedCategoryList",r)},s=o;return(i,r)=>(S(),P("div",Egt,[f("div",Pgt,[(S(!0),P(Dt,null,Fe(e.categoryList,(a,d)=>(S(),st(Igt,{key:d,category:a,onRemoveItem:u=>n(a.CategoryId)},null,8,["category","onRemoveItem"]))),128))])]))}});const Ngt=mt(wgt,[["__scopeId","data-v-51b77cb1"]]),Agt={class:"bootstrap-styles fw-bold mb-5"},Wgt={class:"bootstrap-styles container-fluid mb-8"},kgt={class:"bootstrap-styles position-relative"},Mgt={key:1,class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-center align-items-center border-blue-selected mb-8 algorithm-description"},Ogt={class:"bootstrap-styles me-3"},$gt={class:"bootstrap-styles container-fluid mb-5"},Hgt=dt({__name:"PopularFromCategoryListShelfBuilder",props:{deps:{},popularFromCategoryListShelf:{}},emits:["updatedPopularFromCategoryListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({isCategoryListComposerModalWindowShown:!1,categoryList:[],stockIdList:[],isCategoryListLoaded:!1,isStockLoaded:!1}),s=r=>{n.isCategoryListLoaded=!1,e.deps.getCategoriesByIDs(r).then(a=>{n.categoryList=a,n.isCategoryListLoaded=!0})};s(e.popularFromCategoryListShelf.CategoryIdList),e.deps.getAllStockIds().then(r=>{n.stockIdList=r,n.isStockLoaded=!0});const i=o;return(r,a)=>(S(),P(Dt,null,[E(Jn,{class:at(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isStockLoaded}])},null,8,["class"]),f("div",{class:at(["bootstrap-styles container-fluid px-11 mt-8",{invisible:!n.isStockLoaded}])},[f("label",Agt,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",Wgt,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.popularFromCategoryListShelf.StockSource,onOnStockSourceUpdated:a[0]||(a[0]=d=>{i("updatedPopularFromCategoryListShelf",{...e.popularFromCategoryListShelf,StockSource:d})})},null,8,["stockIdList","stockSource"])]),f("div",kgt,[E(Jn,{class:at(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isCategoryListLoaded}])},null,8,["class"]),n.categoryList.length>0?(S(),st(Ngt,{key:0,class:at({"mb-8":n.categoryList.length,invisible:!n.isCategoryListLoaded}),categoryList:n.categoryList,onUpdatedCategoryList:a[1]||(a[1]=d=>{n.categoryList=d,i("updatedPopularFromCategoryListShelf",{...e.popularFromCategoryListShelf,CategoryIdList:d.map(u=>u.CategoryId)})})},null,8,["class","categoryList"])):(S(),P("div",Mgt,[f("div",Ogt,[f("i",null,[E(Ti)])]),Ot(f("div",null,null,512),[[B(Qn),B(F)("productShelfBuilderComponent.productShelfBuilders.popularFromCategoryListDescription")]])]))]),f("div",$gt,[f("button",{class:"bootstrap-styles button__hover-blue-100 d-flex justify-content-center align-items-center text-color-selected border rounded-2 bg-blue-selected border-blue-selected w-100 py-1 px-3",onClick:a[2]||(a[2]=d=>n.isCategoryListComposerModalWindowShown=!0)},O(B(F)("productShelfBuilderComponent.productShelfBuilders.categorySelectButton")),1)]),E(zi,{productsAtLeast:e.popularFromCategoryListShelf.AtLeast,productsLimit:e.popularFromCategoryListShelf.Limit,"onUpdate:productsAtLeast":a[3]||(a[3]=d=>i("updatedPopularFromCategoryListShelf",{...e.popularFromCategoryListShelf,AtLeast:d})),"onUpdate:productsLimit":a[4]||(a[4]=d=>i("updatedPopularFromCategoryListShelf",{...e.popularFromCategoryListShelf,Limit:d}))},null,8,["productsAtLeast","productsLimit"])],2),(S(),st(mo,{to:"#app"},[n.isCategoryListComposerModalWindowShown?(S(),st(ygt,{key:0,deps:e.deps.categoryListComposerModalWindowDeps,categoryIdList:e.popularFromCategoryListShelf.CategoryIdList,onApply:a[5]||(a[5]=d=>{n.isCategoryListComposerModalWindowShown=!1,i("updatedPopularFromCategoryListShelf",{...e.popularFromCategoryListShelf,CategoryIdList:d}),s(d)}),onCancel:a[6]||(a[6]=()=>n.isCategoryListComposerModalWindowShown=!1)},null,8,["deps","categoryIdList"])):bt("",!0)]))],64))}});const Ugt=mt(Hgt,[["__scopeId","data-v-1f890ba1"]]),jgt={class:"bootstrap-styles fw-bold mb-5"},zgt={class:"bootstrap-styles container-fluid mb-8"},Ggt={class:"bootstrap-styles position-relative"},Kgt={key:1,class:"bootstrap-styles container-fluid g-0 mb-8"},Ygt={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-between align-items-center border-blue-selected algorithm-description"},Zgt={class:"bootstrap-styles me-3"},Jgt={class:"bootstrap-styles container-fluid mb-5"},Xgt=dt({__name:"AlternativeProductListShelfBuilder",props:{deps:{},alternativeProductListShelf:{}},emits:["updatedAlternativeProductListShelf","cancel"],setup(t,{emit:o}){const e=t,n=Pt({isProductListComposerModalWindowShown:!1,productList:[],stockIdList:[],isProductListLoaded:!1,isStockLoaded:!1}),s=(r,a)=>{n.isProductListLoaded=!1,e.deps.getProductsByIDs(r,a).then(d=>{n.productList=d,n.isProductListLoaded=!0})};s(e.alternativeProductListShelf.ProductInternalIDs,e.alternativeProductListShelf.StockSource),e.deps.getAllStockIds().then(r=>{n.stockIdList=r,n.isStockLoaded=!0});const i=o;return(r,a)=>(S(),P(Dt,null,[E(Jn,{class:at(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isStockLoaded}])},null,8,["class"]),f("div",{class:at(["bootstrap-styles container-fluid px-11 mt-8",{invisible:!n.isStockLoaded}])},[f("label",jgt,O(B(F)("productShelfBuilderComponent.productShelfBuilders.stockLabel")),1),f("div",zgt,[E(Gi,{stockIdList:n.stockIdList,stockSource:e.alternativeProductListShelf.StockSource,onOnStockSourceUpdated:a[0]||(a[0]=d=>{i("updatedAlternativeProductListShelf",{...e.alternativeProductListShelf,StockSource:d}),s(e.alternativeProductListShelf.ProductInternalIDs,d)})},null,8,["stockIdList","stockSource"])]),f("div",Ggt,[E(Jn,{class:at(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isProductListLoaded}])},null,8,["class"]),n.productList.length>0?(S(),st(tF,{key:0,class:at({"mb-8":n.productList.length,invisible:!n.isProductListLoaded}),productList:n.productList,onUpdatedProductList:a[1]||(a[1]=d=>{n.productList=d,i("updatedAlternativeProductListShelf",{...e.alternativeProductListShelf,ProductInternalIDs:d.map(u=>u.InternalProductId)})})},null,8,["class","productList"])):(S(),P("div",Kgt,[f("div",Ygt,[f("div",Zgt,[f("i",null,[E(Ti)])]),Ot(f("div",null,null,512),[[B(Qn),B(F)("productShelfBuilderComponent.productShelfBuilders.alternativeProductListDescription")]])])]))]),f("div",Jgt,[f("button",{class:"bootstrap-styles button__hover-blue-100 d-flex justify-content-center align-items-center text-color-selected border rounded-2 bg-blue-selected border-blue-selected w-100 py-1 px-3",onClick:a[2]||(a[2]=d=>n.isProductListComposerModalWindowShown=!0)},O(B(F)("productShelfBuilderComponent.productShelfBuilders.productsSelectButton")),1)]),E(zi,{productsAtLeast:e.alternativeProductListShelf.AtLeast,productsLimit:e.alternativeProductListShelf.Limit,"onUpdate:productsAtLeast":a[3]||(a[3]=d=>i("updatedAlternativeProductListShelf",{...e.alternativeProductListShelf,AtLeast:d})),"onUpdate:productsLimit":a[4]||(a[4]=d=>i("updatedAlternativeProductListShelf",{...e.alternativeProductListShelf,Limit:d}))},null,8,["productsAtLeast","productsLimit"])],2),(S(),st(mo,{to:"#app"},[n.isProductListComposerModalWindowShown?(S(),st(qg,{key:0,deps:e.deps.productListComposerModalWindowDeps,internalIProductDs:e.alternativeProductListShelf.ProductInternalIDs,stockSource:e.alternativeProductListShelf.StockSource,onApply:a[5]||(a[5]=d=>{n.isProductListComposerModalWindowShown=!1,i("updatedAlternativeProductListShelf",{...e.alternativeProductListShelf,ProductInternalIDs:d}),s(d,e.alternativeProductListShelf.StockSource)}),onCancel:a[6]||(a[6]=()=>n.isProductListComposerModalWindowShown=!1)},null,8,["deps","internalIProductDs","stockSource"])):bt("",!0)]))],64))}});const Qgt=mt(Xgt,[["__scopeId","data-v-ddb604b3"]]),qgt={class:"bootstrap-styles container-fluid g-0 mt-8"},tFt={class:"bootstrap-styles container-fluid px-11"},eFt={class:"bootstrap-styles fw-bold mb-5"},oFt={class:"bootstrap-styles row g-0"},nFt={class:"bootstrap-styles container-fluid g-0 mb-8"},iFt=dt({__name:"AbandonedBasketProductShelfDataSourceExpressionBuilderModal",props:{deps:{},emailComponent:{}},emits:["cancel","apply"],setup(t,{emit:o}){const e=t,n=o,s={AbandonedBasketProductListShelf:{AtLeast:3,Limit:6,StockSource:ui()},RelatedProductsForAbandonedBasketListShelf:{AtLeast:3,Limit:6,StockSource:ui()},AlternativeProductsForAbandonedBasketListShelf:{AtLeast:3,Limit:6,StockSource:ui()},ProductListShelf:{ProductInternalIDs:[],AtLeast:3,Limit:6,StockSource:ui()},RelatedProductsForProductListShelf:{ProductInternalIDs:[],AtLeast:3,Limit:6,StockSource:ui()},AlternativeProductsForProductListShelf:{ProductInternalIDs:[],AtLeast:3,Limit:6,StockSource:ui()},PopularProductsInCategoryListShelf:{CategoryIdList:[],Limit:6,AtLeast:1,StockSource:ui()},PopularProductsShelf:{Limit:6,AtLeast:1,StockSource:ui()},LatestProductsShelf:{Limit:6,AtLeast:1,StockSource:ui()},SaleByPopularProductsShelf:{Limit:6,AtLeast:1,StockSource:ui()},SaleByLatestProductsShelf:{Limit:6,AtLeast:1,StockSource:ui()}},i=()=>{var c,p,h;return PR({listExpression:(h=(p=(c=e.emailComponent)==null?void 0:c.ContextBuilderExpression)==null?void 0:p.ProductShelfDataSource)==null?void 0:h.ListExpression,productShelfFactoryFromDataSource:AR}).match({some:g=>({currentKey:xft(g),model:{...s,...g}}),none:()=>({currentKey:"PopularProductsShelf",model:s})})},r=Pt(i()),a={AbandonedBasketProductListShelf:F("productShelfBuilderComponent.listSelector.abandonedBasketProductListShelf"),RelatedProductsForAbandonedBasketListShelf:F("productShelfBuilderComponent.listSelector.relatedProductsForAbandonedProductListShelf"),AlternativeProductsForAbandonedBasketListShelf:F("productShelfBuilderComponent.listSelector.alternativeProductsForAbandonedProductListShelf"),ProductListShelf:F("productShelfBuilderComponent.listSelector.productListShelf"),RelatedProductsForProductListShelf:F("productShelfBuilderComponent.listSelector.relatedProductsForProductListShelf"),AlternativeProductsForProductListShelf:F("productShelfBuilderComponent.listSelector.alternativeProductsForProductListShelf"),PopularProductsInCategoryListShelf:F("productShelfBuilderComponent.listSelector.popularProductsInCategoryListShelf"),PopularProductsShelf:F("productShelfBuilderComponent.listSelector.popularProductsShelf")},d=()=>{r.currentKey=i().currentKey,n("cancel")},u=()=>{n("apply",{...e.emailComponent.ContextBuilderExpression,ProductShelfDataSource:{ListExpression:ept({[r.currentKey]:r.model[r.currentKey]})}})};return(c,p)=>(S(),st(wn,{class:"mass-mailing-product-shelf-builder-modal-window",headerText:B(F)("productShelfBuilderComponent.title"),onClose:p[14]||(p[14]=h=>d())},{body:de(()=>[f("div",qgt,[f("div",tFt,[f("label",eFt,O(B(F)("productShelfBuilderComponent.algorithmLabel")),1),f("div",oFt,[E(Rft,{currentKey:r.currentKey,list:a,"onUpdate:currentKey":p[0]||(p[0]=h=>r.currentKey=h)},null,8,["currentKey"])])]),f("div",nFt,[r.currentKey=="AbandonedBasketProductListShelf"?(S(),st(lpt,{key:0,abandonedBasketProductListShelf:r.model.AbandonedBasketProductListShelf,deps:e.deps.AbandonedBasketProductListShelfBuilderDeps,onUpdatedAbandonedBasketProductListShelf:p[1]||(p[1]=h=>r.model={...r.model,AbandonedBasketProductListShelf:h})},null,8,["abandonedBasketProductListShelf","deps"])):bt("",!0),r.currentKey=="AlternativeProductsForAbandonedBasketListShelf"?(S(),st(hpt,{key:1,alternativeProductsForAbandonedBasketProductListShelf:r.model.AlternativeProductsForAbandonedBasketListShelf,deps:e.deps.AlternativeProductsForAbandonedBasketProductListShelfBuilderDeps,onUpdatedAlternativeProductsForAbandonedBasketProductListShelf:p[2]||(p[2]=h=>r.model={...r.model,AlternativeProductsForAbandonedBasketListShelf:h})},null,8,["alternativeProductsForAbandonedBasketProductListShelf","deps"])):bt("",!0),r.currentKey=="RelatedProductsForAbandonedBasketListShelf"?(S(),st(Vpt,{key:2,relatedProductsForAbandonedBasketProductListShelf:r.model.RelatedProductsForAbandonedBasketListShelf,deps:e.deps.RelatedProductsForAbandonedBasketProductListShelfBuilderDeps,onUpdatedRelatedProductsForAbandonedBasketProductListShelf:p[3]||(p[3]=h=>r.model={...r.model,RelatedProductsForAbandonedBasketListShelf:h})},null,8,["relatedProductsForAbandonedBasketProductListShelf","deps"])):bt("",!0),r.currentKey=="ProductListShelf"?(S(),st(e0t,{key:3,deps:e.deps.ProductListShelfBuilderDeps,productListShelf:r.model.ProductListShelf,onUpdatedProductListShelf:p[4]||(p[4]=h=>r.model={...r.model,ProductListShelf:h})},null,8,["deps","productListShelf"])):bt("",!0),r.currentKey=="RelatedProductsForProductListShelf"?(S(),st(d0t,{key:4,deps:e.deps.RelatedProductListShelfBuilderDeps,relatedProductListShelf:r.model.RelatedProductsForProductListShelf,onUpdatedRelatedProductListShelf:p[5]||(p[5]=h=>r.model={...r.model,RelatedProductsForProductListShelf:h})},null,8,["deps","relatedProductListShelf"])):bt("",!0),r.currentKey=="AlternativeProductsForProductListShelf"?(S(),st(Qgt,{key:5,deps:e.deps.AlternativeProductListShelfBuilderDeps,alternativeProductListShelf:r.model.AlternativeProductsForProductListShelf,onUpdatedAlternativeProductListShelf:p[6]||(p[6]=h=>r.model={...r.model,AlternativeProductsForProductListShelf:h})},null,8,["deps","alternativeProductListShelf"])):bt("",!0),r.currentKey=="PopularProductsInCategoryListShelf"?(S(),st(Ugt,{key:6,deps:e.deps.PopularFromCategoryListShelfBuilderDeps,popularFromCategoryListShelf:r.model.PopularProductsInCategoryListShelf,onUpdatedPopularFromCategoryListShelf:p[7]||(p[7]=h=>r.model={...r.model,PopularProductsInCategoryListShelf:h})},null,8,["deps","popularFromCategoryListShelf"])):bt("",!0),r.currentKey=="PopularProductsShelf"?(S(),st(qft,{key:7,popularProductListShelf:r.model.PopularProductsShelf,deps:e.deps.PopularProductListShelfBuilderDeps,onUpdatedPopularProductListShelf:p[8]||(p[8]=h=>r.model={...r.model,PopularProductsShelf:h})},null,8,["popularProductListShelf","deps"])):bt("",!0),r.currentKey=="LatestProductsShelf"?(S(),st(Ipt,{key:8,latestProductListShelf:r.model.LatestProductsShelf,deps:e.deps.LatestProductListShelfBuilderDeps,onUpdatedLatestProductListShelf:p[9]||(p[9]=h=>r.model={...r.model,LatestProductsShelf:h})},null,8,["latestProductListShelf","deps"])):bt("",!0),r.currentKey=="SaleByPopularProductsShelf"?(S(),st(kpt,{key:9,saleByPopularProductListShelf:r.model.SaleByPopularProductsShelf,deps:e.deps.SaleByPopularProductListShelfBuilderDeps,onUpdatedSaleByPopularProductListShelf:p[10]||(p[10]=h=>r.model={...r.model,SaleByPopularProductsShelf:h})},null,8,["saleByPopularProductListShelf","deps"])):bt("",!0),r.currentKey=="SaleByLatestProductsShelf"?(S(),st(zpt,{key:10,saleByLatestProductListShelf:r.model.SaleByLatestProductsShelf,deps:e.deps.SaleByLatestProductListShelfBuilderDeps,onUpdatedSaleByLatestProductListShelf:p[11]||(p[11]=h=>r.model={...r.model,SaleByLatestProductsShelf:h})},null,8,["saleByLatestProductListShelf","deps"])):bt("",!0)])])]),"footer-actions":de(()=>[f("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 border border-blue-selected rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:p[12]||(p[12]=Le(h=>d(),["stop"]))},O(B(F)("productShelfBuilderComponent.cancelButton")),1),f("button",{class:at([{"cursor-not-allowed":!1},"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 border rounded-2 bg-color-selected text-white cursor-pointer"]),disabled:!1,onClick:p[13]||(p[13]=Le(h=>u(),["stop"]))},O(B(F)("productShelfBuilderComponent.applyButton")),1)]),_:1},8,["headerText"]))}}),rFt={key:0},sFt={class:"data-source-container__inner"},aFt=dt({__name:"AbandonedBasketProductShelfDataSourceExpressionBuilder",props:{deps:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:o}){const e=t,n=o,i=Pt((()=>{var d,u,c;return PR({listExpression:(c=(u=(d=e.modelValue)==null?void 0:d.ContextBuilderExpression)==null?void 0:u.ProductShelfDataSource)==null?void 0:c.ListExpression,productShelfFactoryFromDataSource:AR}).match({some:()=>({isValidExpression:!0,dataSourceModalIsShown:!1}),none:()=>({isValidExpression:!1,dataSourceModalIsShown:!1})})})()),r=()=>{i.dataSourceModalIsShown=!1},a=d=>{n("update:modelValue",{...e.modelValue,ContextBuilderExpression:d}),i.dataSourceModalIsShown=!1};return(d,u)=>i.isValidExpression?(S(),P("span",rFt,[f("button",{class:"bootstrap-styles bg-white rounded-2 shadow data-source-container",onClick:u[0]||(u[0]=()=>i.dataSourceModalIsShown=!0)},[f("span",sFt,[E(bft)])]),(S(),st(mo,{to:"#app"},[i.dataSourceModalIsShown?(S(),st(iFt,{key:0,deps:e.deps.abandonedBasketProductShelfDataSourceExpressionBuilderModalDeps,emailComponent:e.modelValue,onCancel:u[1]||(u[1]=c=>r()),onApply:u[2]||(u[2]=c=>a(c))},null,8,["deps","emailComponent"])):bt("",!0)]))])):bt("",!0)}}),ip=t=>({InternalProductId:t.internalProductId,Name:t.name,Description:t.description,Price:t.price,OldPrice:t.oldPrice,PictureUrl:t.pictureUrl,Url:t.url,CategoryIds:[],Vendor:"p.vendor"}),ua=async t=>(await t.getPopularProductsHttpClient({body:{partnerId:t.partnerId,stockId:t.stockId}})).body.recommendations.map(o=>ip(o)),Xi=t=>wR(t.stockSource).Match({whenCustomerStockId:()=>t.customerStockId,whenDefaultStoreStockId:()=>{},whenSpecificStockId:o=>o.Value}),lFt=t=>({InternalProductId:t.internalId,Name:t.name,Description:t.description,Url:t.url,Price:t.price,OldPrice:t.oldPrice,PictureUrl:t.pictureUrl,CategoryIds:[],Vendor:"p.vendor"}),uFt=async t=>(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:t.productIDs.concat([]),stockId:t.stockId}})).body.products.map(o=>lFt(o)),dFt=async t=>(await t.getRelatedProducts({body:{partnerId:t.partnerId,internalProductIds:t.productIDs.concat([]),stockId:t.stockId}})).body.recommendations.map(o=>ip(o)),mFt=async t=>(await t.getAlternativeProductsHttpClient({body:{partnerId:t.partnerId,internalProductIds:t.productIDs.concat([]),stockId:t.stockId}})).body.recommendations.map(o=>ip(o)),cFt=async t=>(await t.getPopularProductsInCategoriesHttpClient({body:{partnerId:t.partnerId,categoryIds:t.categoryIds.concat([]),stockId:t.stockId}})).body.recommendations.map(o=>ip(o)),fFt=t=>{let o={};return e=>NR(e).Match({whenAbandonedBasketProductList:({StockSource:n})=>ua({partnerId:t.partnerId,stockId:Xi({stockSource:n,customerStockId:t.customerStockId}),getPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetPopularRecommendations}),whenRelatedProductsForAbandonedBasketProductList:({StockSource:n})=>ua({partnerId:t.partnerId,stockId:Xi({stockSource:n,customerStockId:t.customerStockId}),getPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetPopularRecommendations}),whenAlternativeProductsForAbandonedBasketProductList:({StockSource:n})=>ua({partnerId:t.partnerId,stockId:Xi({stockSource:n,customerStockId:t.customerStockId}),getPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetPopularRecommendations}),whenProductList:({ProductIds:n,StockSource:s})=>uFt({partnerId:t.partnerId,productIDs:n,stockId:Xi({stockSource:s,customerStockId:t.customerStockId}),productCache:o,getProductsByIDsHttpClient:t.listExpressionDataSourceBffClient.postGetProductsByIds}),whenRelatedProductsFor:({ProductIds:n,StockSource:s})=>{var i;return dFt({partnerId:t.partnerId,productIDs:n,stockId:((i=s.SpecificStockId)==null?void 0:i.Value)??void 0,getRelatedProducts:t.listExpressionDataSourceBffClient.postGetRelatedRecommendations})},whenAlternativeProductsFor:({ProductIds:n,StockSource:s})=>mFt({partnerId:t.partnerId,productIDs:n,stockId:Xi({stockSource:s,customerStockId:t.customerStockId}),getAlternativeProductsHttpClient:t.listExpressionDataSourceBffClient.postGetAlternativeRecommendations}),whenPopularProductsInCategories:({CategoryIds:n,StockSource:s})=>cFt({partnerId:t.partnerId,categoryIds:n,stockId:Xi({stockSource:s,customerStockId:t.customerStockId}),getPopularProductsInCategoriesHttpClient:t.listExpressionDataSourceBffClient.postGetPopularInCategoriesRecommendations}),whenPopular:({StockSource:n})=>ua({partnerId:t.partnerId,stockId:Xi({stockSource:n,customerStockId:t.customerStockId}),getPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetPopularRecommendations}),whenLatest:({StockSource:n})=>ua({partnerId:t.partnerId,stockId:Xi({stockSource:n,customerStockId:t.customerStockId}),getPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetPopularRecommendations}),whenSaleByPopular:({StockSource:n})=>ua({partnerId:t.partnerId,stockId:Xi({stockSource:n,customerStockId:t.customerStockId}),getPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetPopularRecommendations}),whenSaleByLatest:({StockSource:n})=>ua({partnerId:t.partnerId,stockId:Xi({stockSource:n,customerStockId:t.customerStockId}),getPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetPopularRecommendations})})},pFt=()=>()=>Promise.resolve(0),CFt=Ro,hFt=t=>{const o=t.contactCustomData;return e=>CFt(e.stringExpressionDataSource).Match({whenAbandonedBasketContactCustomData:n=>Promise.resolve(o[n.FieldName]),whenProductImageUrlBuilderExpression:n=>t.productImageUrlBuilderExpressionEvaluator({expression:n,context:e.context})})},gFt=t=>t.triggerAbandonedBasket?JSON.parse(t.triggerAbandonedBasket.componentJson):JSON.parse(t.common.componentJson),FFt=t=>({sectionItemId:t.sectionItemId,sectionItemName:t.sectionItemName,componentTemplate:gFt(t.component)}),yFt=t=>({sectionId:t.sectionId,sectionName:t.sectionName,componentList:t.sectionItems.map(o=>FFt(o))}),SFt=t=>t.map(o=>yFt(o));var eF={},$R=Wt&&Wt.__awaiter||function(t,o,e,n){function s(i){return i instanceof e?i:new e(function(r){r(i)})}return new(e||(e=Promise))(function(i,r){function a(c){try{u(n.next(c))}catch(p){r(p)}}function d(c){try{u(n.throw(c))}catch(p){r(p)}}function u(c){c.done?i(c.value):s(c.value).then(a,d)}u((n=n.apply(t,o||[])).next())})},HR=Wt&&Wt.__generator||function(t,o){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,r=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return r.next=a(0),r.throw=a(1),r.return=a(2),typeof Symbol=="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(u){return function(c){return d([u,c])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,u[0]&&(e=0)),e;)try{if(n=1,s&&(i=u[0]&2?s.return:u[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,u[1])).done)return i;switch(s=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,s=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){e.label=u[1];break}if(u[0]===6&&e.label<i[1]){e.label=i[1],i=u;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(u);break}i[2]&&e.ops.pop(),e.trys.pop();continue}u=o.call(t,e)}catch(c){u=[6,c],s=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(eF,"__esModule",{value:!0});var UR=eF.createApi=void 0,GT=function(t,o){return function(e){return t(e,o)}},bFt=function(t){return{categories:t.categories.map(function(o){return jR(o)})}},TFt=function(t){return{categories:t.categories.map(function(o){return jR(o)})}},jR=function(t){return{id:t.id,name:t.name,path:t.path}};function BFt(t,o){return $R(this,void 0,void 0,function(){var e,n,s;return HR(this,function(i){switch(i.label){case 0:return e="wysiwyg/bff/v2/productCategoryPickerModalWindow/getProductCategoriesByIds/",n=new URLSearchParams,[4,o({path:e,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t.body),query:n.toString()})];case 1:if(s=i.sent(),s.status===200)return[2,{status:200,body:bFt(s.body)}];throw new Error("Unknown response")}})})}function VFt(t,o){return $R(this,void 0,void 0,function(){var e,n,s;return HR(this,function(i){switch(i.label){case 0:return e="wysiwyg/bff/v2/productCategoryPickerModalWindow/findProductCategoriesBySearchPhrase/",n=new URLSearchParams,[4,o({path:e,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t.body),query:n.toString()})];case 1:if(s=i.sent(),s.status===200)return[2,{status:200,body:TFt(s.body)}];throw new Error("Unknown response")}})})}var LFt=function(t){return{postGetProductCategoriesByIds:GT(BFt,t),postFindProductCategoriesBySearchPhrase:GT(VFt,t)}};UR=eF.createApi=LFt;var oF={},zR=Wt&&Wt.__awaiter||function(t,o,e,n){function s(i){return i instanceof e?i:new e(function(r){r(i)})}return new(e||(e=Promise))(function(i,r){function a(c){try{u(n.next(c))}catch(p){r(p)}}function d(c){try{u(n.throw(c))}catch(p){r(p)}}function u(c){c.done?i(c.value):s(c.value).then(a,d)}u((n=n.apply(t,o||[])).next())})},GR=Wt&&Wt.__generator||function(t,o){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,r=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return r.next=a(0),r.throw=a(1),r.return=a(2),typeof Symbol=="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(u){return function(c){return d([u,c])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,u[0]&&(e=0)),e;)try{if(n=1,s&&(i=u[0]&2?s.return:u[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,u[1])).done)return i;switch(s=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,s=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){e.label=u[1];break}if(u[0]===6&&e.label<i[1]){e.label=i[1],i=u;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(u);break}i[2]&&e.ops.pop(),e.trys.pop();continue}u=o.call(t,e)}catch(c){u=[6,c],s=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(oF,"__esModule",{value:!0});var KR=oF.createApi=void 0,KT=function(t,o){return function(e){return t(e,o)}},DFt=function(t){return{products:t.products.map(function(o){return YR(o)})}},vFt=function(t){return{products:t.products.map(function(o){return YR(o)})}},YR=function(t){return{internalId:t.internalId,externalId:t.externalId,name:t.name,pictureUrl:t.pictureUrl,isAvailable:t.isAvailable}};function RFt(t,o){return zR(this,void 0,void 0,function(){var e,n,s;return GR(this,function(i){switch(i.label){case 0:return e="wysiwyg/bff/v2/productPickerModalWindow/findProductsBySearchPhrase/",n=new URLSearchParams,[4,o({path:e,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t.body),query:n.toString()})];case 1:if(s=i.sent(),s.status===200)return[2,{status:200,body:DFt(s.body)}];throw new Error("Unknown response")}})})}function xFt(t,o){return zR(this,void 0,void 0,function(){var e,n,s;return GR(this,function(i){switch(i.label){case 0:return e="wysiwyg/bff/v2/productPickerModalWindow/getProductsByIds/",n=new URLSearchParams,[4,o({path:e,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t.body),query:n.toString()})];case 1:if(s=i.sent(),s.status===200)return[2,{status:200,body:vFt(s.body)}];throw new Error("Unknown response")}})})}var _Ft=function(t){return{postFindProductsBySearchPhrase:KT(RFt,t),postGetProductsByIds:KT(xFt,t)}};KR=oF.createApi=_Ft;const ZR="#app",wi=document.querySelector(ZR),Yt={partnerId:wi.getAttribute("data-partner-id"),wysiwygBffProxyBaseUrl:wi.getAttribute("data-wysiwyg-bff-proxy-base-url"),wysiwygTemplateEditorBffBaseUrl:wi.getAttribute("data-wysiwyg-template-editor-bff-base-url"),antiForgeryHeaderTokenName:wi.getAttribute("data-anti-forgery-header-token-name"),antiForgeryHeaderTokenValue:wi.getAttribute("data-anti-forgery-header-token-value"),antiForgeryFormTokenName:wi.getAttribute("data-anti-forgery-form-token-name"),antiForgeryFormTokenValue:wi.getAttribute("data-anti-forgery-form-token-value"),emailTemplateJson:wi.getAttribute("data-email-template-json"),previewTemplateDataJson:wi.getAttribute("data-preview-template-data-json"),resetTemplateFormUrl:wi.getAttribute("data-reset-template-form-url"),exitLink:wi.getAttribute("data-exit-link")},IFt=t=>Ko({baseUrl:t.baseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue}),EFt=Hv(Ko({baseUrl:Yt.wysiwygTemplateEditorBffBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),PFt=()=>{const t=new FormData;t.append(Yt.antiForgeryFormTokenName,Yt.antiForgeryFormTokenValue);const o=ow({method:"POST",action:Yt.resetTemplateFormUrl,formData:t});document.body.appendChild(o),o.submit()};let wFt={};const NFt=Uv(IFt({baseUrl:Yt.wysiwygBffProxyBaseUrl})),AFt=fFt({partnerId:Yt.partnerId,listExpressionDataSourceBffClient:NFt,customerStockId:void 0}),rp=Nct({listExpressionDataSourceEvaluator:AFt}),WFt=pFt(),hf=Wct({listExpressionEvaluator:rp,numberExpressionDataSourceEvaluator:WFt}),JR=Mct({listExpressionEvaluator:rp,numberExpressionEvaluator:hf,stringExpressionDataSourceEvaluatorFactory:()=>hFt({productImageUrlBuilderExpressionEvaluator:Ict({partnerId:Yt.partnerId,numberExpressionEvaluator:hf}),contactCustomData:wFt})}),XR=zct({listExpressionEvaluator:rp,numberExpressionEvaluator:hf,stringExpressionEvaluator:JR,dataStructBuilderExpressionEvaluatorFactory:t=>xR({expressionEvaluator:t})}),kFt=xR({expressionEvaluator:XR}),nF=Jc(tat,{onTemplateReset:()=>{PFt()},deps:rlt({partnerId:Yt.partnerId,exitLink:Yt.exitLink,saveEmailTemplate:async t=>(await EFt.postSaveTemplate({body:{partnerId:Yt.partnerId,templateJson:JSON.stringify(t.emailTemplate)}})).status===200?"Success":"Fail",listExpressionEvaluator:rp,numberExpressionEvaluator:hf,stringExpressionEvaluator:JR,dataStructExpressionEvaluator:kFt,expressionEvaluator:XR,getComponentLibraryFactory:t=>()=>t.getComponentLibraryHttpClient({body:{partnerId:t.partnerId,componentTypes:[{triggerAbandonedBasket:{}},{common:{}}]}}).then(o=>SFt(o.body.sections)),canProductShelfDataSourceBeConverted:()=>!1,httpClientComponentFactoryDelegate:t=>({triggerAbandonedBasket:{componentJson:JSON.stringify(t)}}),emailComponentSettingsModifierPlugin:Nlt({productShelfDataSourceExpressionBuilderComponent:aFt,deps:gft({partnerId:Yt.partnerId,customerStockId:"customerStockId",productShelfBuilderModalWindowBffClient:Kv(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),productCategoryPickerModalWindowBffClient:UR(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),productPickerModalWindowBffClient:KR(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue}))})}),initialEmailTemplate:JSON.parse(Yt.emailTemplateJson),wysiwygTemplateEditorBffClient:iat({themeLibraryBffClient:Yv(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),componentLibraryBffClient:Zv(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue}))}),addThemeLibrarySectionItemModalWindowBffClient:Qv(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),addComponentLibrarySectionItemModalWindowBffClient:Gv(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),deleteThemeLibrarySectionItemModalWindowBffClient:qv(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),deleteThemeLibrarySectionModalWindowBffClient:tR(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),editThemeLibrarySectionItemModalWindowBffClient:nR(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),createComponentLibrarySectionModalWindowBffClient:iR(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),editComponentLibrarySectionItemModalWindowBffClient:aR(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),deleteComponentLibrarySectionItemModalWindowBffClient:lR(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),createThemeLibrarySectionModalWindowBffClient:uR(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue})),deleteComponentLibrarySectionModalWindowBffClient:dR(Ko({baseUrl:Yt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Yt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Yt.antiForgeryHeaderTokenValue}))})});nF.use(RR({components:{VSkeletonLoader:_ct}}));nF.use(yD);nF.mount(ZR);
|
package/package.json
CHANGED