@retailrocketgroup/retailrocket-edit.abandoned-view-na-vue-email-template-render 5.0.384700 → 5.0.384767
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/.turbo/turbo-build.log +4 -4
- package/dist/assets/index.js +0 -1
- package/package.json +1 -1
- package/vite.config.ts +0 -1
- package/dist/assets/index.js.map +0 -1
package/dist/assets/index.js
CHANGED
|
@@ -376,4 +376,3 @@ ${p.slice(u+2)}`,d+=1;else break}e.push({indent:u,number:parseInt(a,10),content:
|
|
|
376
376
|
`},renderMarkdown:()=>`
|
|
377
377
|
`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:o,editor:n})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:i}=o;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=n.extensionManager,l=i||r.$to.parentOffset&&r.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&l&&s){const d=l.filter(m=>a.includes(m.type.name));u.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});var u0e={},c0e={},d0e={},m0e;function p6(){return m0e||(m0e=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isNone=t.isSome=t.None=t.Some=t.OptionType=void 0,t.OptionType={Some:Symbol(":some"),None:Symbol(":none")};function e(s){return typeof s>"u"?n():o(s)}t.Some=e,t.None=n();function o(s){return{type:t.OptionType.Some,isSome(){return!0},isNone(){return!1},match(a){return a.some(s)},map(a){return o(a(s))},andThen(a){return a(s)},or(a){return this},and(a){return a},unwrapOr(a){return s},unwrap(){return s}}}function n(){return{type:t.OptionType.None,isSome(){return!1},isNone(){return!0},match(s){const{none:a}=s;return typeof a=="function"?a():a},map(s){return n()},andThen(s){return n()},or(s){return s},and(s){return n()},unwrapOr(s){if(s==null)throw new Error("Cannot call unwrapOr with a missing value.");return s},unwrap(){throw new ReferenceError("Trying to unwrap None.")}}}function r(s){return s.isSome()}t.isSome=r;function i(s){return s.isNone()}t.isNone=i})(d0e)),d0e}var p0e;function $Io(){return p0e||(p0e=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isRight=t.isLeft=t.Right=t.Left=t.EitherType=void 0;const e=p6();t.EitherType={Left:Symbol(":left"),Right:Symbol(":right")};function o(s){return{type:t.EitherType.Left,isLeft(){return!0},isRight(){return!1},left(){return(0,e.Some)(s)},leftAndThen(a){return a(s)},right(){return e.None},rightAndThen(a){return o(s)},unwrap(){return s},unwrapLeft(){return s},unwrapLeftOr(a){return s},unwrapLeftOrElse(a){return s},unwrapRight(){throw new ReferenceError("Cannot unwrap Right value of Either.Left")},unwrapRightOr(a){return a},unwrapRightOrElse(a){return a(s)},match(a){return a.left(s)},map(a){return o(a(s))},mapLeft(a){return o(a(s))},mapRight(a){return o(s)}}}t.Left=o;function n(s){return{type:t.EitherType.Right,isLeft(){return!1},isRight(){return!0},left(){return e.None},leftAndThen(a){return n(s)},right(){return(0,e.Some)(s)},rightAndThen(a){return a(s)},unwrap(){return s},unwrapLeft(){throw new ReferenceError("Cannot unwrap Left value of Either.Right")},unwrapLeftOr(a){return a},unwrapLeftOrElse(a){return a(s)},unwrapRight(){return s},unwrapRightOr(a){return s},unwrapRightOrElse(a){return s},match(a){return a.right(s)},map(a){return n(a(s))},mapLeft(a){return n(s)},mapRight(a){return n(a(s))}}}t.Right=n;function r(s){return s.isLeft()}t.isLeft=r;function i(s){return s.isRight()}t.isRight=i})(c0e)),c0e}var h0e={},f0e;function AIo(){return f0e||(f0e=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isErr=t.isOk=t.Err=t.Ok=t.ResultType=void 0;const e=p6();t.ResultType={Ok:Symbol(":ok"),Err:Symbol(":err")};function o(s){return{type:t.ResultType.Ok,isOk(){return!0},isErr(){return!1},ok(){return(0,e.Some)(s)},err(){return e.None},unwrap(){return s},unwrapOr(a){return s},unwrapOrElse(a){return s},unwrapErr(){throw new ReferenceError("Cannot unwrap Err value of Result.Ok")},match(a){return a.ok(s)},map(a){return o(a(s))},mapErr(a){return o(s)},andThen(a){return a(s)},orElse(a){return o(s)}}}t.Ok=o;function n(s){return{type:t.ResultType.Err,isOk(){return!1},isErr(){return!0},ok(){return e.None},err(){return(0,e.Some)(s)},unwrap(){throw new ReferenceError("Cannot unwrap Ok value of Result.Err")},unwrapOr(a){return a},unwrapOrElse(a){return a(s)},unwrapErr(){return s},match(a){return a.err(s)},map(a){return n(s)},mapErr(a){return n(a(s))},andThen(a){return n(s)},orElse(a){return a(s)}}}t.Err=n;function r(s){return s.isOk()}t.isOk=r;function i(s){return s.isErr()}t.isErr=i})(h0e)),h0e}var g0e;function NIo(){return g0e||(g0e=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Ok=t.isOk=t.isErr=t.Err=t.Some=t.None=t.isSome=t.isNone=t.Right=t.Left=t.isRight=t.isLeft=void 0;var e=$Io();Object.defineProperty(t,"isLeft",{enumerable:!0,get:function(){return e.isLeft}}),Object.defineProperty(t,"isRight",{enumerable:!0,get:function(){return e.isRight}}),Object.defineProperty(t,"Left",{enumerable:!0,get:function(){return e.Left}}),Object.defineProperty(t,"Right",{enumerable:!0,get:function(){return e.Right}});var o=p6();Object.defineProperty(t,"isNone",{enumerable:!0,get:function(){return o.isNone}}),Object.defineProperty(t,"isSome",{enumerable:!0,get:function(){return o.isSome}}),Object.defineProperty(t,"None",{enumerable:!0,get:function(){return o.None}}),Object.defineProperty(t,"Some",{enumerable:!0,get:function(){return o.Some}});var n=AIo();Object.defineProperty(t,"Err",{enumerable:!0,get:function(){return n.Err}}),Object.defineProperty(t,"isErr",{enumerable:!0,get:function(){return n.isErr}}),Object.defineProperty(t,"isOk",{enumerable:!0,get:function(){return n.isOk}}),Object.defineProperty(t,"Ok",{enumerable:!0,get:function(){return n.Ok}})})(u0e)),u0e}var dv=NIo();const VIo=t=>{throw new Error("Didn't expect to get here"+t)},IIo=t=>({Match:e=>{for(const o in t)if(t[o]!==void 0)return e[o](t[o]);throw Error("")}});function l1(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(t==null||t==="")return;const o=Number(t);return isNaN(o)?String(t):isFinite(o)?`${o}${e}`:void 0}function y0e(t){let e;return t!==null&&typeof t=="object"&&((e=Object.getPrototypeOf(t))===Object.prototype||e===null)}function T8(t,e){return e.every(o=>t.hasOwnProperty(o))}function PIo(t,e){const o={};for(const n of e)Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n]);return o}function MIo(t){return t==null?[]:Array.isArray(t)?t:[t]}function C0e(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return t+o.repeat(Math.max(0,e-t.length))}function OIo(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const o=[];let n=0;for(;n<t.length;)o.push(t.substr(n,e)),n+=e;return o}function Z4e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const n={};for(const r in t)n[r]=t[r];for(const r in e){const i=t[r],s=e[r];if(y0e(i)&&y0e(s)){n[r]=Z4e(i,s,o);continue}if(o&&Array.isArray(i)&&Array.isArray(s)){n[r]=o(i,s);continue}n[r]=s}return n}function hL(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(hL.cache.has(t))return hL.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return hL.cache.set(t,e),e}hL.cache=new Map;function WIo(t){const e=Se({});Pn(()=>{const n=t();for(const r in n)e[r]=n[r]},{flush:"sync"});const o={};for(const n in e)o[n]=ce(()=>e[n]);return o}const u1=2.4,b0e=.2126729,v0e=.7151522,S0e=.072175,HIo=.55,zIo=.58,jIo=.57,KIo=.62,pR=.03,w0e=1.45,UIo=5e-4,qIo=1.25,GIo=1.25,T0e=.078,x0e=12.82051282051282,hR=.06,F0e=.001;function k0e(t,e){const o=(t.r/255)**u1,n=(t.g/255)**u1,r=(t.b/255)**u1,i=(e.r/255)**u1,s=(e.g/255)**u1,a=(e.b/255)**u1;let l=o*b0e+n*v0e+r*S0e,u=i*b0e+s*v0e+a*S0e;if(l<=pR&&(l+=(pR-l)**w0e),u<=pR&&(u+=(pR-u)**w0e),Math.abs(u-l)<UIo)return 0;let c;if(u>l){const d=(u**HIo-l**zIo)*qIo;c=d<F0e?0:d<T0e?d-d*x0e*hR:d-hR}else{const d=(u**KIo-l**jIo)*GIo;c=d>-F0e?0:d>-T0e?d-d*x0e*hR:d+hR}return c*100}function Tq(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function JIo(t){return Tq(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const L0e=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,YIo={rgb:(t,e,o,n)=>({r:t,g:e,b:o,a:n}),rgba:(t,e,o,n)=>({r:t,g:e,b:o,a:n}),hsl:(t,e,o,n)=>E0e({h:t,s:e,l:o,a:n}),hsla:(t,e,o,n)=>E0e({h:t,s:e,l:o,a:n}),hsv:(t,e,o,n)=>QE({h:t,s:e,v:o,a:n}),hsva:(t,e,o,n)=>QE({h:t,s:e,v:o,a:n})};function xF(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&L0e.test(t)){const{groups:e}=t.match(L0e),{fn:o,values:n}=e,r=n.split(/,\s*|\s*\/\s*|\s+/).map((i,s)=>i.endsWith("%")||s>0&&s<3&&["hsl","hsla","hsv","hsva"].includes(o)?parseFloat(i)/100:parseFloat(i));return YIo[o](...r)}else if(typeof t=="string"){let e=t.startsWith("#")?t.slice(1):t;return[3,4].includes(e.length)?e=e.split("").map(o=>o+o).join(""):[6,8].includes(e.length)||void 0,ZIo(e)}else if(typeof t=="object"){if(T8(t,["r","g","b"]))return t;if(T8(t,["h","s","l"]))return QE(X4e(t));if(T8(t,["h","s","v"]))return QE(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name}
|
|
378
378
|
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function QE(t){const{h:e,s:o,v:n,a:r}=t,i=a=>{const l=(a+e/60)%6;return n-n*o*Math.max(Math.min(l,4-l,1),0)},s=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:s[0],g:s[1],b:s[2],a:r}}function E0e(t){return QE(X4e(t))}function X4e(t){const{h:e,s:o,l:n,a:r}=t,i=n+o*Math.min(n,1-n),s=i===0?0:2-2*n/i;return{h:e,s,v:i,a:r}}function ZIo(t){t=XIo(t);let[e,o,n,r]=OIo(t,2).map(i=>parseInt(i,16));return r=r===void 0?r:r/255,{r:e,g:o,b:n,a:r}}function XIo(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(e=>e+e).join("")),t.length!==6&&(t=C0e(C0e(t,6),8,"F")),t}function QIo(t){const e=Math.abs(k0e(xF(0),xF(t)));return Math.abs(k0e(xF(16777215),xF(t)))>Math.min(e,50)?"#fff":"#000"}function b_(t,e){return o=>Object.keys(t).reduce((n,r)=>{const i=typeof t[r]=="object"&&t[r]!=null&&!Array.isArray(t[r])?t[r]:{type:t[r]};return o&&r in o?n[r]={...i,default:o[r]}:n[r]=i,e&&!n[r].source&&(n[r].source=e),n},{})}function h6(t,e){const o=Fs();if(!o)throw new Error(`[Vuetify] ${t} must be called from inside a setup function`);return o}function ePo(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h6("injectSelf");const{provides:o}=e;if(o&&t in o)return o[t]}const xq=Symbol.for("vuetify:defaults");function Q4e(){const t=zt(xq);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function tPo(t,e){return t.props&&(typeof t.props[e]<"u"||typeof t.props[hL(e)]<"u")}function oPo(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Q4e();const n=h6("useDefaults");if(e=e??n.type.name??n.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const r=q(()=>o.value?.[t._as??e]),i=new Proxy(t,{get(l,u){const c=Reflect.get(l,u);if(u==="class"||u==="style")return[r.value?.[u],c].filter(p=>p!=null);if(tPo(n.vnode,u))return c;const d=r.value?.[u];if(d!==void 0)return d;const m=o.value?.global?.[u];return m!==void 0?m:c}}),s=po();Pn(()=>{if(r.value){const l=Object.entries(r.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});s.value=l.length?Object.fromEntries(l):void 0}else s.value=void 0});function a(){const l=ePo(xq,n);dn(xq,q(()=>s.value?Z4e(l?.value??{},s.value):l?.value))}return{props:i,provideSubDefaults:a}}function nPo(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=b_(t.props??{},t.name)();const e=Object.keys(t.props).filter(o=>o!=="class"&&o!=="style");t.filterProps=function(o){return PIo(o,e)},t.props._as=String,t.setup=function(o,n){const r=Q4e();if(!r.value)return t._setup(o,n);const{props:i,provideSubDefaults:s}=oPo(o,o._as??t.name,r),a=t._setup(i,n);return s(),a}}return t}function rPo(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?nPo:Q)(e)}function iPo(t){const e=h6("useRender");e.render=t}function sPo(t){return WIo(()=>{const{class:e,style:o}=lPo(t);return{colorClasses:e,colorStyles:o}})}function aPo(t){const{colorClasses:e,colorStyles:o}=sPo(()=>({background:bn(t)}));return{backgroundColorClasses:e,backgroundColorStyles:o}}function lPo(t){const e=bn(t),o=[],n={};if(e.background)if(Tq(e.background)){if(n.backgroundColor=e.background,!e.text&&JIo(e.background)){const r=xF(e.background);if(r.a==null||r.a===1){const i=QIo(r);n.color=i,n.caretColor=i}}}else o.push(`bg-${e.background}`);return e.text&&(Tq(e.text)?(n.color=e.text,n.caretColor=e.text):o.push(`text-${e.text}`)),{class:o,style:n}}const uPo=b_({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function cPo(t){return{dimensionStyles:q(()=>{const e={},o=l1(t.height),n=l1(t.maxHeight),r=l1(t.maxWidth),i=l1(t.minHeight),s=l1(t.minWidth),a=l1(t.width);return o!=null&&(e.height=o),n!=null&&(e.maxHeight=n),r!=null&&(e.maxWidth=r),i!=null&&(e.minHeight=i),s!=null&&(e.minWidth=s),a!=null&&(e.width=a),e})}}const dPo=b_({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function mPo(t){return{elevationClasses:ce(()=>{const e=$o(t)?t.value:t.elevation;return e==null?[]:[`elevation-${e}`]})}}const pPo=Symbol.for("vuetify:locale");function hPo(){const t=zt(pPo);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}const _0e=Symbol.for("vuetify:theme"),fPo=b_({theme:String},"theme");function gPo(t){h6("provideTheme");const e=zt(_0e,null);if(!e)throw new Error("Could not find Vuetify theme injection");const o=ce(()=>t.theme??e.name.value),n=ce(()=>e.themes.value[o.value]),r=ce(()=>e.isDisabled?void 0:`${e.prefix}theme--${o.value}`),i={...e,name:o,current:n,themeClasses:r};return dn(_0e,i),i}const yPo={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 CPo(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y("div",{class:j(["v-skeleton-loader__bone",`v-skeleton-loader__${t}`])},[e])}function B0e(t){const[e,o]=t.split("@");return Array.from({length:o}).map(()=>f6(e))}function f6(t){let e=[];if(!t)return e;const o=yPo[t];if(t!==o){if(t.includes(","))return D0e(t);if(t.includes("@"))return B0e(t);o.includes(",")?e=D0e(o):o.includes("@")?e=B0e(o):o&&e.push(f6(o))}return[CPo(t,e)]}function D0e(t){return t.replace(/\s/g,"").split(",").map(f6)}const bPo=b_({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...uPo(),...dPo(),...fPo()},"VSkeletonLoader");rPo()({name:"VSkeletonLoader",inheritAttrs:!1,props:bPo(),setup(t,e){let{attrs:o,slots:n}=e;const{backgroundColorClasses:r,backgroundColorStyles:i}=aPo(()=>t.color),{dimensionStyles:s}=cPo(t),{elevationClasses:a}=mPo(t),{themeClasses:l}=gPo(t),{t:u}=hPo(),c=q(()=>f6(MIo(t.type).join(",")));return iPo(()=>{const d=!n.default||t.loading,m=t.boilerplate||!d?{}:{ariaLive:"polite",ariaLabel:u(t.loadingText),role:"alert"};return d?y("div",Lo({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":t.boilerplate},l.value,r.value,a.value],style:[i.value,s.value]},m,o),[c.value]):y(me,null,[n.default?.()])}),{}}});var ls="top",Qa="bottom",el="right",us="left",g6="auto",sT=[ls,Qa,el,us],D0="start",fw="end",e5e="clippingParents",Bte="viewport",mv="popper",t5e="reference",Fq=sT.reduce(function(t,e){return t.concat([e+"-"+D0,e+"-"+fw])},[]),Dte=[].concat(sT,[g6]).reduce(function(t,e){return t.concat([e,e+"-"+D0,e+"-"+fw])},[]),o5e="beforeRead",n5e="read",r5e="afterRead",i5e="beforeMain",s5e="main",a5e="afterMain",l5e="beforeWrite",u5e="write",c5e="afterWrite",d5e=[o5e,n5e,r5e,i5e,s5e,a5e,l5e,u5e,c5e];function Ed(t){return t?(t.nodeName||"").toLowerCase():null}function tl(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function R0(t){var e=tl(t).Element;return t instanceof e||t instanceof Element}function Hl(t){var e=tl(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Rte(t){if(typeof ShadowRoot>"u")return!1;var e=tl(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function vPo(t){var e=t.state;Object.keys(e.elements).forEach(function(o){var n=e.styles[o]||{},r=e.attributes[o]||{},i=e.elements[o];!Hl(i)||!Ed(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(s){var a=r[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function SPo(t){var e=t.state,o={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,o.popper),e.styles=o,e.elements.arrow&&Object.assign(e.elements.arrow.style,o.arrow),function(){Object.keys(e.elements).forEach(function(n){var r=e.elements[n],i=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:o[n]),a=s.reduce(function(l,u){return l[u]="",l},{});!Hl(r)||!Ed(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const $te={name:"applyStyles",enabled:!0,phase:"write",fn:vPo,effect:SPo,requires:["computeStyles"]};function ad(t){return t.split("-")[0]}var qC=Math.max,LP=Math.min,gw=Math.round;function kq(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function m5e(){return!/^((?!chrome|android).)*safari/i.test(kq())}function yw(t,e,o){e===void 0&&(e=!1),o===void 0&&(o=!1);var n=t.getBoundingClientRect(),r=1,i=1;e&&Hl(t)&&(r=t.offsetWidth>0&&gw(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&gw(n.height)/t.offsetHeight||1);var s=R0(t)?tl(t):window,a=s.visualViewport,l=!m5e()&&o,u=(n.left+(l&&a?a.offsetLeft:0))/r,c=(n.top+(l&&a?a.offsetTop:0))/i,d=n.width/r,m=n.height/i;return{width:d,height:m,top:c,right:u+d,bottom:c+m,left:u,x:u,y:c}}function Ate(t){var e=yw(t),o=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-o)<=1&&(o=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:n}}function p5e(t,e){var o=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(o&&Rte(o)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function gp(t){return tl(t).getComputedStyle(t)}function wPo(t){return["table","td","th"].indexOf(Ed(t))>=0}function jg(t){return((R0(t)?t.ownerDocument:t.document)||window.document).documentElement}function y6(t){return Ed(t)==="html"?t:t.assignedSlot||t.parentNode||(Rte(t)?t.host:null)||jg(t)}function R0e(t){return!Hl(t)||gp(t).position==="fixed"?null:t.offsetParent}function TPo(t){var e=/firefox/i.test(kq()),o=/Trident/i.test(kq());if(o&&Hl(t)){var n=gp(t);if(n.position==="fixed")return null}var r=y6(t);for(Rte(r)&&(r=r.host);Hl(r)&&["html","body"].indexOf(Ed(r))<0;){var i=gp(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function v_(t){for(var e=tl(t),o=R0e(t);o&&wPo(o)&&gp(o).position==="static";)o=R0e(o);return o&&(Ed(o)==="html"||Ed(o)==="body"&&gp(o).position==="static")?e:o||TPo(t)||e}function Nte(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function fL(t,e,o){return qC(t,LP(e,o))}function xPo(t,e,o){var n=fL(t,e,o);return n>o?o:n}function h5e(){return{top:0,right:0,bottom:0,left:0}}function f5e(t){return Object.assign({},h5e(),t)}function g5e(t,e){return e.reduce(function(o,n){return o[n]=t,o},{})}var FPo=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,f5e(typeof t!="number"?t:g5e(t,sT))};function kPo(t){var e,o=t.state,n=t.name,r=t.options,i=o.elements.arrow,s=o.modifiersData.popperOffsets,a=ad(o.placement),l=Nte(a),u=[us,el].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=FPo(r.padding,o),m=Ate(i),p=l==="y"?ls:us,h=l==="y"?Qa:el,f=o.rects.reference[c]+o.rects.reference[l]-s[l]-o.rects.popper[c],g=s[l]-o.rects.reference[l],C=v_(i),v=C?l==="y"?C.clientHeight||0:C.clientWidth||0:0,S=f/2-g/2,w=d[p],T=v-m[c]-d[h],F=v/2-m[c]/2+S,_=fL(w,F,T),N=l;o.modifiersData[n]=(e={},e[N]=_,e.centerOffset=_-F,e)}}function LPo(t){var e=t.state,o=t.options,n=o.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||p5e(e.elements.popper,r)&&(e.elements.arrow=r))}const y5e={name:"arrow",enabled:!0,phase:"main",fn:kPo,effect:LPo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Cw(t){return t.split("-")[1]}var EPo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _Po(t,e){var o=t.x,n=t.y,r=e.devicePixelRatio||1;return{x:gw(o*r)/r||0,y:gw(n*r)/r||0}}function $0e(t){var e,o=t.popper,n=t.popperRect,r=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,d=t.isFixed,m=s.x,p=m===void 0?0:m,h=s.y,f=h===void 0?0:h,g=typeof c=="function"?c({x:p,y:f}):{x:p,y:f};p=g.x,f=g.y;var C=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),S=us,w=ls,T=window;if(u){var F=v_(o),_="clientHeight",N="clientWidth";if(F===tl(o)&&(F=jg(o),gp(F).position!=="static"&&a==="absolute"&&(_="scrollHeight",N="scrollWidth")),F=F,r===ls||(r===us||r===el)&&i===fw){w=Qa;var $=d&&F===T&&T.visualViewport?T.visualViewport.height:F[_];f-=$-n.height,f*=l?1:-1}if(r===us||(r===ls||r===Qa)&&i===fw){S=el;var P=d&&F===T&&T.visualViewport?T.visualViewport.width:F[N];p-=P-n.width,p*=l?1:-1}}var L=Object.assign({position:a},u&&EPo),E=c===!0?_Po({x:p,y:f},tl(o)):{x:p,y:f};if(p=E.x,f=E.y,l){var A;return Object.assign({},L,(A={},A[w]=v?"0":"",A[S]=C?"0":"",A.transform=(T.devicePixelRatio||1)<=1?"translate("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",A))}return Object.assign({},L,(e={},e[w]=v?f+"px":"",e[S]=C?p+"px":"",e.transform="",e))}function BPo(t){var e=t.state,o=t.options,n=o.gpuAcceleration,r=n===void 0?!0:n,i=o.adaptive,s=i===void 0?!0:i,a=o.roundOffsets,l=a===void 0?!0:a,u={placement:ad(e.placement),variation:Cw(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,$0e(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,$0e(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Vte={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:BPo,data:{}};var fR={passive:!0};function DPo(t){var e=t.state,o=t.instance,n=t.options,r=n.scroll,i=r===void 0?!0:r,s=n.resize,a=s===void 0?!0:s,l=tl(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",o.update,fR)}),a&&l.addEventListener("resize",o.update,fR),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",o.update,fR)}),a&&l.removeEventListener("resize",o.update,fR)}}const Ite={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:DPo,data:{}};var RPo={left:"right",right:"left",bottom:"top",top:"bottom"};function J$(t){return t.replace(/left|right|bottom|top/g,function(e){return RPo[e]})}var $Po={start:"end",end:"start"};function A0e(t){return t.replace(/start|end/g,function(e){return $Po[e]})}function Pte(t){var e=tl(t),o=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:o,scrollTop:n}}function Mte(t){return yw(jg(t)).left+Pte(t).scrollLeft}function APo(t,e){var o=tl(t),n=jg(t),r=o.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;var u=m5e();(u||!u&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a+Mte(t),y:l}}function NPo(t){var e,o=jg(t),n=Pte(t),r=(e=t.ownerDocument)==null?void 0:e.body,i=qC(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=qC(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+Mte(t),l=-n.scrollTop;return gp(r||o).direction==="rtl"&&(a+=qC(o.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Ote(t){var e=gp(t),o=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function C5e(t){return["html","body","#document"].indexOf(Ed(t))>=0?t.ownerDocument.body:Hl(t)&&Ote(t)?t:C5e(y6(t))}function gL(t,e){var o;e===void 0&&(e=[]);var n=C5e(t),r=n===((o=t.ownerDocument)==null?void 0:o.body),i=tl(n),s=r?[i].concat(i.visualViewport||[],Ote(n)?n:[]):n,a=e.concat(s);return r?a:a.concat(gL(y6(s)))}function Lq(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function VPo(t,e){var o=yw(t,!1,e==="fixed");return o.top=o.top+t.clientTop,o.left=o.left+t.clientLeft,o.bottom=o.top+t.clientHeight,o.right=o.left+t.clientWidth,o.width=t.clientWidth,o.height=t.clientHeight,o.x=o.left,o.y=o.top,o}function N0e(t,e,o){return e===Bte?Lq(APo(t,o)):R0(e)?VPo(e,o):Lq(NPo(jg(t)))}function IPo(t){var e=gL(y6(t)),o=["absolute","fixed"].indexOf(gp(t).position)>=0,n=o&&Hl(t)?v_(t):t;return R0(n)?e.filter(function(r){return R0(r)&&p5e(r,n)&&Ed(r)!=="body"}):[]}function PPo(t,e,o,n){var r=e==="clippingParents"?IPo(t):[].concat(e),i=[].concat(r,[o]),s=i[0],a=i.reduce(function(l,u){var c=N0e(t,u,n);return l.top=qC(c.top,l.top),l.right=LP(c.right,l.right),l.bottom=LP(c.bottom,l.bottom),l.left=qC(c.left,l.left),l},N0e(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function b5e(t){var e=t.reference,o=t.element,n=t.placement,r=n?ad(n):null,i=n?Cw(n):null,s=e.x+e.width/2-o.width/2,a=e.y+e.height/2-o.height/2,l;switch(r){case ls:l={x:s,y:e.y-o.height};break;case Qa:l={x:s,y:e.y+e.height};break;case el:l={x:e.x+e.width,y:a};break;case us:l={x:e.x-o.width,y:a};break;default:l={x:e.x,y:e.y}}var u=r?Nte(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case D0:l[u]=l[u]-(e[c]/2-o[c]/2);break;case fw:l[u]=l[u]+(e[c]/2-o[c]/2);break}}return l}function bw(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=n===void 0?t.placement:n,i=o.strategy,s=i===void 0?t.strategy:i,a=o.boundary,l=a===void 0?e5e:a,u=o.rootBoundary,c=u===void 0?Bte:u,d=o.elementContext,m=d===void 0?mv:d,p=o.altBoundary,h=p===void 0?!1:p,f=o.padding,g=f===void 0?0:f,C=f5e(typeof g!="number"?g:g5e(g,sT)),v=m===mv?t5e:mv,S=t.rects.popper,w=t.elements[h?v:m],T=PPo(R0(w)?w:w.contextElement||jg(t.elements.popper),l,c,s),F=yw(t.elements.reference),_=b5e({reference:F,element:S,placement:r}),N=Lq(Object.assign({},S,_)),$=m===mv?N:F,P={top:T.top-$.top+C.top,bottom:$.bottom-T.bottom+C.bottom,left:T.left-$.left+C.left,right:$.right-T.right+C.right},L=t.modifiersData.offset;if(m===mv&&L){var E=L[r];Object.keys(P).forEach(function(A){var V=[el,Qa].indexOf(A)>=0?1:-1,H=[ls,Qa].indexOf(A)>=0?"y":"x";P[A]+=E[H]*V})}return P}function MPo(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=o.boundary,i=o.rootBoundary,s=o.padding,a=o.flipVariations,l=o.allowedAutoPlacements,u=l===void 0?Dte:l,c=Cw(n),d=c?a?Fq:Fq.filter(function(h){return Cw(h)===c}):sT,m=d.filter(function(h){return u.indexOf(h)>=0});m.length===0&&(m=d);var p=m.reduce(function(h,f){return h[f]=bw(t,{placement:f,boundary:r,rootBoundary:i,padding:s})[ad(f)],h},{});return Object.keys(p).sort(function(h,f){return p[h]-p[f]})}function OPo(t){if(ad(t)===g6)return[];var e=J$(t);return[A0e(t),e,A0e(e)]}function WPo(t){var e=t.state,o=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!0:s,l=o.fallbackPlacements,u=o.padding,c=o.boundary,d=o.rootBoundary,m=o.altBoundary,p=o.flipVariations,h=p===void 0?!0:p,f=o.allowedAutoPlacements,g=e.options.placement,C=ad(g),v=C===g,S=l||(v||!h?[J$(g)]:OPo(g)),w=[g].concat(S).reduce(function(pe,W){return pe.concat(ad(W)===g6?MPo(e,{placement:W,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:f}):W)},[]),T=e.rects.reference,F=e.rects.popper,_=new Map,N=!0,$=w[0],P=0;P<w.length;P++){var L=w[P],E=ad(L),A=Cw(L)===D0,V=[ls,Qa].indexOf(E)>=0,H=V?"width":"height",O=bw(e,{placement:L,boundary:c,rootBoundary:d,altBoundary:m,padding:u}),K=V?A?el:us:A?Qa:ls;T[H]>F[H]&&(K=J$(K));var he=J$(K),Fe=[];if(i&&Fe.push(O[E]<=0),a&&Fe.push(O[K]<=0,O[he]<=0),Fe.every(function(pe){return pe})){$=L,N=!1;break}_.set(L,Fe)}if(N)for(var be=h?3:1,Y=function(pe){var W=w.find(function(fe){var ee=_.get(fe);if(ee)return ee.slice(0,pe).every(function(ne){return ne})});if(W)return $=W,"break"},Te=be;Te>0;Te--){var G=Y(Te);if(G==="break")break}e.placement!==$&&(e.modifiersData[n]._skip=!0,e.placement=$,e.reset=!0)}}const v5e={name:"flip",enabled:!0,phase:"main",fn:WPo,requiresIfExists:["offset"],data:{_skip:!1}};function V0e(t,e,o){return o===void 0&&(o={x:0,y:0}),{top:t.top-e.height-o.y,right:t.right-e.width+o.x,bottom:t.bottom-e.height+o.y,left:t.left-e.width-o.x}}function I0e(t){return[ls,el,Qa,us].some(function(e){return t[e]>=0})}function HPo(t){var e=t.state,o=t.name,n=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,s=bw(e,{elementContext:"reference"}),a=bw(e,{altBoundary:!0}),l=V0e(s,n),u=V0e(a,r,i),c=I0e(l),d=I0e(u);e.modifiersData[o]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const S5e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:HPo};function zPo(t,e,o){var n=ad(t),r=[us,ls].indexOf(n)>=0?-1:1,i=typeof o=="function"?o(Object.assign({},e,{placement:t})):o,s=i[0],a=i[1];return s=s||0,a=(a||0)*r,[us,el].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function jPo(t){var e=t.state,o=t.options,n=t.name,r=o.offset,i=r===void 0?[0,0]:r,s=Dte.reduce(function(c,d){return c[d]=zPo(d,e.rects,i),c},{}),a=s[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=s}const w5e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:jPo};function KPo(t){var e=t.state,o=t.name;e.modifiersData[o]=b5e({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Wte={name:"popperOffsets",enabled:!0,phase:"read",fn:KPo,data:{}};function UPo(t){return t==="x"?"y":"x"}function qPo(t){var e=t.state,o=t.options,n=t.name,r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!1:s,l=o.boundary,u=o.rootBoundary,c=o.altBoundary,d=o.padding,m=o.tether,p=m===void 0?!0:m,h=o.tetherOffset,f=h===void 0?0:h,g=bw(e,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),C=ad(e.placement),v=Cw(e.placement),S=!v,w=Nte(C),T=UPo(w),F=e.modifiersData.popperOffsets,_=e.rects.reference,N=e.rects.popper,$=typeof f=="function"?f(Object.assign({},e.rects,{placement:e.placement})):f,P=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,E={x:0,y:0};if(F){if(i){var A,V=w==="y"?ls:us,H=w==="y"?Qa:el,O=w==="y"?"height":"width",K=F[w],he=K+g[V],Fe=K-g[H],be=p?-N[O]/2:0,Y=v===D0?_[O]:N[O],Te=v===D0?-N[O]:-_[O],G=e.elements.arrow,pe=p&&G?Ate(G):{width:0,height:0},W=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:h5e(),fe=W[V],ee=W[H],ne=fL(0,_[O],pe[O]),ft=S?_[O]/2-be-ne-fe-P.mainAxis:Y-ne-fe-P.mainAxis,vt=S?-_[O]/2+be+ne+ee+P.mainAxis:Te+ne+ee+P.mainAxis,St=e.elements.arrow&&v_(e.elements.arrow),z=St?w==="y"?St.clientTop||0:St.clientLeft||0:0,U=(A=L?.[w])!=null?A:0,te=K+ft-U-z,re=K+vt-U,ie=fL(p?LP(he,te):he,K,p?qC(Fe,re):Fe);F[w]=ie,E[w]=ie-K}if(a){var le,ge=w==="x"?ls:us,ye=w==="x"?Qa:el,oe=F[T],se=T==="y"?"height":"width",Ge=oe+g[ge],ke=oe-g[ye],xe=[ls,us].indexOf(C)!==-1,Le=(le=L?.[T])!=null?le:0,Ie=xe?Ge:oe-_[se]-N[se]-Le+P.altAxis,we=xe?oe+_[se]+N[se]-Le-P.altAxis:ke,Qe=p&&xe?xPo(Ie,oe,we):fL(p?Ie:Ge,oe,p?we:ke);F[T]=Qe,E[T]=Qe-oe}e.modifiersData[n]=E}}const T5e={name:"preventOverflow",enabled:!0,phase:"main",fn:qPo,requiresIfExists:["offset"]};function GPo(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function JPo(t){return t===tl(t)||!Hl(t)?Pte(t):GPo(t)}function YPo(t){var e=t.getBoundingClientRect(),o=gw(e.width)/t.offsetWidth||1,n=gw(e.height)/t.offsetHeight||1;return o!==1||n!==1}function ZPo(t,e,o){o===void 0&&(o=!1);var n=Hl(e),r=Hl(e)&&YPo(e),i=jg(e),s=yw(t,r,o),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!o)&&((Ed(e)!=="body"||Ote(i))&&(a=JPo(e)),Hl(e)?(l=yw(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=Mte(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function XPo(t){var e=new Map,o=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function r(i){o.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!o.has(a)){var l=e.get(a);l&&r(l)}}),n.push(i)}return t.forEach(function(i){o.has(i.name)||r(i)}),n}function QPo(t){var e=XPo(t);return d5e.reduce(function(o,n){return o.concat(e.filter(function(r){return r.phase===n}))},[])}function eMo(t){var e;return function(){return e||(e=new Promise(function(o){Promise.resolve().then(function(){e=void 0,o(t())})})),e}}function tMo(t){var e=t.reduce(function(o,n){var r=o[n.name];return o[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,o},{});return Object.keys(e).map(function(o){return e[o]})}var P0e={placement:"bottom",modifiers:[],strategy:"absolute"};function M0e(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function C6(t){t===void 0&&(t={});var e=t,o=e.defaultModifiers,n=o===void 0?[]:o,r=e.defaultOptions,i=r===void 0?P0e:r;return function(s,a,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},P0e,i),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},c=[],d=!1,m={state:u,setOptions:function(f){var g=typeof f=="function"?f(u.options):f;h(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:R0(s)?gL(s):s.contextElement?gL(s.contextElement):[],popper:gL(a)};var C=QPo(tMo([].concat(n,u.options.modifiers)));return u.orderedModifiers=C.filter(function(v){return v.enabled}),p(),m.update()},forceUpdate:function(){if(!d){var f=u.elements,g=f.reference,C=f.popper;if(M0e(g,C)){u.rects={reference:ZPo(g,v_(C),u.options.strategy==="fixed"),popper:Ate(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(N){return u.modifiersData[N.name]=Object.assign({},N.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var S=u.orderedModifiers[v],w=S.fn,T=S.options,F=T===void 0?{}:T,_=S.name;typeof w=="function"&&(u=w({state:u,options:F,name:_,instance:m})||u)}}}},update:eMo(function(){return new Promise(function(f){m.forceUpdate(),f(u)})}),destroy:function(){h(),d=!0}};if(!M0e(s,a))return m;m.setOptions(l).then(function(f){!d&&l.onFirstUpdate&&l.onFirstUpdate(f)});function p(){u.orderedModifiers.forEach(function(f){var g=f.name,C=f.options,v=C===void 0?{}:C,S=f.effect;if(typeof S=="function"){var w=S({state:u,name:g,instance:m,options:v}),T=function(){};c.push(w||T)}})}function h(){c.forEach(function(f){return f()}),c=[]}return m}}var oMo=C6(),nMo=[Ite,Wte,Vte,$te],rMo=C6({defaultModifiers:nMo}),iMo=[Ite,Wte,Vte,$te,w5e,v5e,T5e,y5e,S5e],Hte=C6({defaultModifiers:iMo});const x5e=Object.freeze(Object.defineProperty({__proto__:null,afterMain:a5e,afterRead:r5e,afterWrite:c5e,applyStyles:$te,arrow:y5e,auto:g6,basePlacements:sT,beforeMain:i5e,beforeRead:o5e,beforeWrite:l5e,bottom:Qa,clippingParents:e5e,computeStyles:Vte,createPopper:Hte,createPopperBase:oMo,createPopperLite:rMo,detectOverflow:bw,end:fw,eventListeners:Ite,flip:v5e,hide:S5e,left:us,main:s5e,modifierPhases:d5e,offset:w5e,placements:Dte,popper:mv,popperGenerator:C6,popperOffsets:Wte,preventOverflow:T5e,read:n5e,reference:t5e,right:el,start:D0,top:ls,variationPlacements:Fq,viewport:Bte,write:u5e},Symbol.toStringTag,{value:"Module"})),Ch=new Map,x8={set(t,e,o){Ch.has(t)||Ch.set(t,new Map);const n=Ch.get(t);if(!n.has(e)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(e,o)},get(t,e){return Ch.has(t)&&Ch.get(t).get(e)||null},remove(t,e){if(!Ch.has(t))return;const o=Ch.get(t);o.delete(e),o.size===0&&Ch.delete(t)}},sMo=1e6,aMo=1e3,Eq="transitionend",F5e=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,o)=>`#${CSS.escape(o)}`)),t),lMo=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),uMo=t=>{do t+=Math.floor(Math.random()*sMo);while(document.getElementById(t));return t},cMo=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:o}=window.getComputedStyle(t);const n=Number.parseFloat(e),r=Number.parseFloat(o);return!n&&!r?0:(e=e.split(",")[0],o=o.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(o))*aMo)},k5e=t=>{t.dispatchEvent(new Event(Eq))},tp=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),tg=t=>tp(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(F5e(t)):null,aT=t=>{if(!tp(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",o=t.closest("details:not([open])");if(!o)return e;if(o!==t){const n=t.closest("summary");if(n&&n.parentNode!==o||n===null)return!1}return e},og=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",L5e=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?L5e(t.parentNode):null},EP=()=>{},S_=t=>{t.offsetHeight},E5e=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,F8=[],dMo=t=>{document.readyState==="loading"?(F8.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of F8)e()}),F8.push(t)):t()},au=()=>document.documentElement.dir==="rtl",fu=t=>{dMo(()=>{const e=E5e();if(e){const o=t.NAME,n=e.fn[o];e.fn[o]=t.jQueryInterface,e.fn[o].Constructor=t,e.fn[o].noConflict=()=>(e.fn[o]=n,t.jQueryInterface)}})},Hs=(t,e=[],o=t)=>typeof t=="function"?t.call(...e):o,_5e=(t,e,o=!0)=>{if(!o){Hs(t);return}const n=cMo(e)+5;let r=!1;const i=({target:s})=>{s===e&&(r=!0,e.removeEventListener(Eq,i),Hs(t))};e.addEventListener(Eq,i),setTimeout(()=>{r||k5e(e)},n)},zte=(t,e,o,n)=>{const r=t.length;let i=t.indexOf(e);return i===-1?!o&&n?t[r-1]:t[0]:(i+=o?1:-1,n&&(i=(i+r)%r),t[Math.max(0,Math.min(i,r-1))])},mMo=/[^.]*(?=\..*)\.|.*/,pMo=/\..*/,hMo=/::\d+$/,k8={};let O0e=1;const B5e={mouseenter:"mouseover",mouseleave:"mouseout"},fMo=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function D5e(t,e){return e&&`${e}::${O0e++}`||t.uidEvent||O0e++}function R5e(t){const e=D5e(t);return t.uidEvent=e,k8[e]=k8[e]||{},k8[e]}function gMo(t,e){return function o(n){return jte(n,{delegateTarget:t}),o.oneOff&&Ve.off(t,n.type,e),e.apply(t,[n])}}function yMo(t,e,o){return function n(r){const i=t.querySelectorAll(e);for(let{target:s}=r;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return jte(r,{delegateTarget:s}),n.oneOff&&Ve.off(t,r.type,e,o),o.apply(s,[r])}}function $5e(t,e,o=null){return Object.values(t).find(n=>n.callable===e&&n.delegationSelector===o)}function A5e(t,e,o){const n=typeof e=="string",r=n?o:e||o;let i=N5e(t);return fMo.has(i)||(i=t),[n,r,i]}function W0e(t,e,o,n,r){if(typeof e!="string"||!t)return;let[i,s,a]=A5e(e,o,n);e in B5e&&(s=(p=>function(h){if(!h.relatedTarget||h.relatedTarget!==h.delegateTarget&&!h.delegateTarget.contains(h.relatedTarget))return p.call(this,h)})(s));const l=R5e(t),u=l[a]||(l[a]={}),c=$5e(u,s,i?o:null);if(c){c.oneOff=c.oneOff&&r;return}const d=D5e(s,e.replace(mMo,"")),m=i?yMo(t,o,s):gMo(t,s);m.delegationSelector=i?o:null,m.callable=s,m.oneOff=r,m.uidEvent=d,u[d]=m,t.addEventListener(a,m,i)}function _q(t,e,o,n,r){const i=$5e(e[o],n,r);i&&(t.removeEventListener(o,i,!!r),delete e[o][i.uidEvent])}function CMo(t,e,o,n){const r=e[o]||{};for(const[i,s]of Object.entries(r))i.includes(n)&&_q(t,e,o,s.callable,s.delegationSelector)}function N5e(t){return t=t.replace(pMo,""),B5e[t]||t}const Ve={on(t,e,o,n){W0e(t,e,o,n,!1)},one(t,e,o,n){W0e(t,e,o,n,!0)},off(t,e,o,n){if(typeof e!="string"||!t)return;const[r,i,s]=A5e(e,o,n),a=s!==e,l=R5e(t),u=l[s]||{},c=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;_q(t,l,s,i,r?o:null);return}if(c)for(const d of Object.keys(l))CMo(t,l,d,e.slice(1));for(const[d,m]of Object.entries(u)){const p=d.replace(hMo,"");(!a||e.includes(p))&&_q(t,l,s,m.callable,m.delegationSelector)}},trigger(t,e,o){if(typeof e!="string"||!t)return null;const n=E5e(),r=N5e(e),i=e!==r;let s=null,a=!0,l=!0,u=!1;i&&n&&(s=n.Event(e,o),n(t).trigger(s),a=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented());const c=jte(new Event(e,{bubbles:a,cancelable:!0}),o);return u&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function jte(t,e={}){for(const[o,n]of Object.entries(e))try{t[o]=n}catch{Object.defineProperty(t,o,{configurable:!0,get(){return n}})}return t}function H0e(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function L8(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const op={setDataAttribute(t,e,o){t.setAttribute(`data-bs-${L8(e)}`,o)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${L8(e)}`)},getDataAttributes(t){if(!t)return{};const e={},o=Object.keys(t.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of o){let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1),e[r]=H0e(t.dataset[n])}return e},getDataAttribute(t,e){return H0e(t.getAttribute(`data-bs-${L8(e)}`))}};class w_{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,o){const n=tp(o)?op.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...tp(o)?op.getDataAttributes(o):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,o=this.constructor.DefaultType){for(const[n,r]of Object.entries(o)){const i=e[n],s=tp(i)?"element":lMo(i);if(!new RegExp(r).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${r}".`)}}}const bMo="5.3.8";class Cc extends w_{constructor(e,o){super(),e=tg(e),e&&(this._element=e,this._config=this._getConfig(o),x8.set(this._element,this.constructor.DATA_KEY,this))}dispose(){x8.remove(this._element,this.constructor.DATA_KEY),Ve.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,o,n=!0){_5e(e,o,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return x8.get(tg(e),this.DATA_KEY)}static getOrCreateInstance(e,o={}){return this.getInstance(e)||new this(e,typeof o=="object"?o:null)}static get VERSION(){return bMo}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const E8=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let o=t.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),e=o&&o!=="#"?o.trim():null}return e?e.split(",").map(o=>F5e(o)).join(","):null},Et={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(o=>o.matches(e))},parents(t,e){const o=[];let n=t.parentNode.closest(e);for(;n;)o.push(n),n=n.parentNode.closest(e);return o},prev(t,e){let o=t.previousElementSibling;for(;o;){if(o.matches(e))return[o];o=o.previousElementSibling}return[]},next(t,e){let o=t.nextElementSibling;for(;o;){if(o.matches(e))return[o];o=o.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(o=>!og(o)&&aT(o))},getSelectorFromElement(t){const e=E8(t);return e&&Et.findOne(e)?e:null},getElementFromSelector(t){const e=E8(t);return e?Et.findOne(e):null},getMultipleElementsFromSelector(t){const e=E8(t);return e?Et.find(e):[]}},b6=(t,e="hide")=>{const o=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;Ve.on(document,o,`[data-bs-dismiss="${n}"]`,function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),og(this))return;const i=Et.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(i)[e]()})},vMo="alert",SMo="bs.alert",V5e=`.${SMo}`,wMo=`close${V5e}`,TMo=`closed${V5e}`,xMo="fade",FMo="show";class v6 extends Cc{static get NAME(){return vMo}close(){if(Ve.trigger(this._element,wMo).defaultPrevented)return;this._element.classList.remove(FMo);const e=this._element.classList.contains(xMo);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),Ve.trigger(this._element,TMo),this.dispose()}static jQueryInterface(e){return this.each(function(){const o=v6.getOrCreateInstance(this);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}}b6(v6,"close");fu(v6);const kMo="button",LMo="bs.button",EMo=`.${LMo}`,_Mo=".data-api",BMo="active",z0e='[data-bs-toggle="button"]',DMo=`click${EMo}${_Mo}`;class S6 extends Cc{static get NAME(){return kMo}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(BMo))}static jQueryInterface(e){return this.each(function(){const o=S6.getOrCreateInstance(this);e==="toggle"&&o[e]()})}}Ve.on(document,DMo,z0e,t=>{t.preventDefault();const e=t.target.closest(z0e);S6.getOrCreateInstance(e).toggle()});fu(S6);const RMo="swipe",lT=".bs.swipe",$Mo=`touchstart${lT}`,AMo=`touchmove${lT}`,NMo=`touchend${lT}`,VMo=`pointerdown${lT}`,IMo=`pointerup${lT}`,PMo="touch",MMo="pen",OMo="pointer-event",WMo=40,HMo={endCallback:null,leftCallback:null,rightCallback:null},zMo={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class _P extends w_{constructor(e,o){super(),this._element=e,!(!e||!_P.isSupported())&&(this._config=this._getConfig(o),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return HMo}static get DefaultType(){return zMo}static get NAME(){return RMo}dispose(){Ve.off(this._element,lT)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Hs(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=WMo)return;const o=e/this._deltaX;this._deltaX=0,o&&Hs(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Ve.on(this._element,VMo,e=>this._start(e)),Ve.on(this._element,IMo,e=>this._end(e)),this._element.classList.add(OMo)):(Ve.on(this._element,$Mo,e=>this._start(e)),Ve.on(this._element,AMo,e=>this._move(e)),Ve.on(this._element,NMo,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===MMo||e.pointerType===PMo)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const jMo="carousel",KMo="bs.carousel",Kg=`.${KMo}`,I5e=".data-api",UMo="ArrowLeft",qMo="ArrowRight",GMo=500,_x="next",c1="prev",pv="left",Y$="right",JMo=`slide${Kg}`,_8=`slid${Kg}`,YMo=`keydown${Kg}`,ZMo=`mouseenter${Kg}`,XMo=`mouseleave${Kg}`,QMo=`dragstart${Kg}`,eOo=`load${Kg}${I5e}`,tOo=`click${Kg}${I5e}`,P5e="carousel",gR="active",oOo="slide",nOo="carousel-item-end",rOo="carousel-item-start",iOo="carousel-item-next",sOo="carousel-item-prev",M5e=".active",O5e=".carousel-item",aOo=M5e+O5e,lOo=".carousel-item img",uOo=".carousel-indicators",cOo="[data-bs-slide], [data-bs-slide-to]",dOo='[data-bs-ride="carousel"]',mOo={[UMo]:Y$,[qMo]:pv},pOo={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},hOo={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class T_ extends Cc{constructor(e,o){super(e,o),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Et.findOne(uOo,this._element),this._addEventListeners(),this._config.ride===P5e&&this.cycle()}static get Default(){return pOo}static get DefaultType(){return hOo}static get NAME(){return jMo}next(){this._slide(_x)}nextWhenVisible(){!document.hidden&&aT(this._element)&&this.next()}prev(){this._slide(c1)}pause(){this._isSliding&&k5e(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Ve.one(this._element,_8,()=>this.cycle());return}this.cycle()}}to(e){const o=this._getItems();if(e>o.length-1||e<0)return;if(this._isSliding){Ve.one(this._element,_8,()=>this.to(e));return}const n=this._getItemIndex(this._getActive());if(n===e)return;const r=e>n?_x:c1;this._slide(r,o[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Ve.on(this._element,YMo,e=>this._keydown(e)),this._config.pause==="hover"&&(Ve.on(this._element,ZMo,()=>this.pause()),Ve.on(this._element,XMo,()=>this._maybeEnableCycle())),this._config.touch&&_P.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of Et.find(lOo,this._element))Ve.on(o,QMo,n=>n.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(pv)),rightCallback:()=>this._slide(this._directionToOrder(Y$)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),GMo+this._config.interval))}};this._swipeHelper=new _P(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const o=mOo[e.key];o&&(e.preventDefault(),this._slide(this._directionToOrder(o)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const o=Et.findOne(M5e,this._indicatorsElement);o.classList.remove(gR),o.removeAttribute("aria-current");const n=Et.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(gR),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const o=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=o||this._config.defaultInterval}_slide(e,o=null){if(this._isSliding)return;const n=this._getActive(),r=e===_x,i=o||zte(this._getItems(),n,r,this._config.wrap);if(i===n)return;const s=this._getItemIndex(i),a=m=>Ve.trigger(this._element,m,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:s});if(a(JMo).defaultPrevented||!n||!i)return;const l=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=r?rOo:nOo,c=r?iOo:sOo;i.classList.add(c),S_(i),n.classList.add(u),i.classList.add(u);const d=()=>{i.classList.remove(u,c),i.classList.add(gR),n.classList.remove(gR,c,u),this._isSliding=!1,a(_8)};this._queueCallback(d,n,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains(oOo)}_getActive(){return Et.findOne(aOo,this._element)}_getItems(){return Et.find(O5e,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return au()?e===pv?c1:_x:e===pv?_x:c1}_orderToDirection(e){return au()?e===c1?pv:Y$:e===c1?Y$:pv}static jQueryInterface(e){return this.each(function(){const o=T_.getOrCreateInstance(this,e);if(typeof e=="number"){o.to(e);return}if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}}Ve.on(document,tOo,cOo,function(t){const e=Et.getElementFromSelector(this);if(!e||!e.classList.contains(P5e))return;t.preventDefault();const o=T_.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");if(n){o.to(n),o._maybeEnableCycle();return}if(op.getDataAttribute(this,"slide")==="next"){o.next(),o._maybeEnableCycle();return}o.prev(),o._maybeEnableCycle()});Ve.on(window,eOo,()=>{const t=Et.find(dOo);for(const e of t)T_.getOrCreateInstance(e)});fu(T_);const fOo="collapse",gOo="bs.collapse",x_=`.${gOo}`,yOo=".data-api",COo=`show${x_}`,bOo=`shown${x_}`,vOo=`hide${x_}`,SOo=`hidden${x_}`,wOo=`click${x_}${yOo}`,B8="show",kv="collapse",yR="collapsing",TOo="collapsed",xOo=`:scope .${kv} .${kv}`,FOo="collapse-horizontal",kOo="width",LOo="height",EOo=".collapse.show, .collapse.collapsing",Bq='[data-bs-toggle="collapse"]',_Oo={parent:null,toggle:!0},BOo={parent:"(null|element)",toggle:"boolean"};class e2 extends Cc{constructor(e,o){super(e,o),this._isTransitioning=!1,this._triggerArray=[];const n=Et.find(Bq);for(const r of n){const i=Et.getSelectorFromElement(r),s=Et.find(i).filter(a=>a===this._element);i!==null&&s.length&&this._triggerArray.push(r)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return _Oo}static get DefaultType(){return BOo}static get NAME(){return fOo}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(EOo).filter(i=>i!==this._element).map(i=>e2.getOrCreateInstance(i,{toggle:!1}))),e.length&&e[0]._isTransitioning||Ve.trigger(this._element,COo).defaultPrevented)return;for(const i of e)i.hide();const o=this._getDimension();this._element.classList.remove(kv),this._element.classList.add(yR),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(yR),this._element.classList.add(kv,B8),this._element.style[o]="",Ve.trigger(this._element,bOo)},r=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(n,this._element,!0),this._element.style[o]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||Ve.trigger(this._element,vOo).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,S_(this._element),this._element.classList.add(yR),this._element.classList.remove(kv,B8);for(const n of this._triggerArray){const r=Et.getElementFromSelector(n);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([n],!1)}this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(yR),this._element.classList.add(kv),Ve.trigger(this._element,SOo)};this._element.style[e]="",this._queueCallback(o,this._element,!0)}_isShown(e=this._element){return e.classList.contains(B8)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=tg(e.parent),e}_getDimension(){return this._element.classList.contains(FOo)?kOo:LOo}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Bq);for(const o of e){const n=Et.getElementFromSelector(o);n&&this._addAriaAndCollapsedClass([o],this._isShown(n))}}_getFirstLevelChildren(e){const o=Et.find(xOo,this._config.parent);return Et.find(e,this._config.parent).filter(n=>!o.includes(n))}_addAriaAndCollapsedClass(e,o){if(e.length)for(const n of e)n.classList.toggle(TOo,!o),n.setAttribute("aria-expanded",o)}static jQueryInterface(e){const o={};return typeof e=="string"&&/show|hide/.test(e)&&(o.toggle=!1),this.each(function(){const n=e2.getOrCreateInstance(this,o);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}Ve.on(document,wOo,Bq,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of Et.getMultipleElementsFromSelector(this))e2.getOrCreateInstance(e,{toggle:!1}).toggle()});fu(e2);const j0e="dropdown",DOo="bs.dropdown",mb=`.${DOo}`,Kte=".data-api",ROo="Escape",K0e="Tab",$Oo="ArrowUp",U0e="ArrowDown",AOo=2,NOo=`hide${mb}`,VOo=`hidden${mb}`,IOo=`show${mb}`,POo=`shown${mb}`,W5e=`click${mb}${Kte}`,H5e=`keydown${mb}${Kte}`,MOo=`keyup${mb}${Kte}`,hv="show",OOo="dropup",WOo="dropend",HOo="dropstart",zOo="dropup-center",jOo="dropdown-center",qy='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',KOo=`${qy}.${hv}`,Z$=".dropdown-menu",UOo=".navbar",qOo=".navbar-nav",GOo=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",JOo=au()?"top-end":"top-start",YOo=au()?"top-start":"top-end",ZOo=au()?"bottom-end":"bottom-start",XOo=au()?"bottom-start":"bottom-end",QOo=au()?"left-start":"right-start",e6o=au()?"right-start":"left-start",t6o="top",o6o="bottom",n6o={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},r6o={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class js extends Cc{constructor(e,o){super(e,o),this._popper=null,this._parent=this._element.parentNode,this._menu=Et.next(this._element,Z$)[0]||Et.prev(this._element,Z$)[0]||Et.findOne(Z$,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return n6o}static get DefaultType(){return r6o}static get NAME(){return j0e}toggle(){return this._isShown()?this.hide():this.show()}show(){if(og(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!Ve.trigger(this._element,IOo,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(qOo))for(const o of[].concat(...document.body.children))Ve.on(o,"mouseover",EP);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(hv),this._element.classList.add(hv),Ve.trigger(this._element,POo,e)}}hide(){if(og(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Ve.trigger(this._element,NOo,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))Ve.off(o,"mouseover",EP);this._popper&&this._popper.destroy(),this._menu.classList.remove(hv),this._element.classList.remove(hv),this._element.setAttribute("aria-expanded","false"),op.removeDataAttribute(this._menu,"popper"),Ve.trigger(this._element,VOo,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!tp(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${j0e.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof x5e>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;this._config.reference==="parent"?e=this._parent:tp(this._config.reference)?e=tg(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const o=this._getPopperConfig();this._popper=Hte(e,this._menu,o)}_isShown(){return this._menu.classList.contains(hv)}_getPlacement(){const e=this._parent;if(e.classList.contains(WOo))return QOo;if(e.classList.contains(HOo))return e6o;if(e.classList.contains(zOo))return t6o;if(e.classList.contains(jOo))return o6o;const o=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(OOo)?o?YOo:JOo:o?XOo:ZOo}_detectNavbar(){return this._element.closest(UOo)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(o=>Number.parseInt(o,10)):typeof e=="function"?o=>e(o,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(op.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Hs(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:o}){const n=Et.find(GOo,this._menu).filter(r=>aT(r));n.length&&zte(n,o,e===U0e,!n.includes(o)).focus()}static jQueryInterface(e){return this.each(function(){const o=js.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}static clearMenus(e){if(e.button===AOo||e.type==="keyup"&&e.key!==K0e)return;const o=Et.find(KOo);for(const n of o){const r=js.getInstance(n);if(!r||r._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(r._menu);if(i.includes(r._element)||r._config.autoClose==="inside"&&!s||r._config.autoClose==="outside"&&s||r._menu.contains(e.target)&&(e.type==="keyup"&&e.key===K0e||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:r._element};e.type==="click"&&(a.clickEvent=e),r._completeHide(a)}}static dataApiKeydownHandler(e){const o=/input|textarea/i.test(e.target.tagName),n=e.key===ROo,r=[$Oo,U0e].includes(e.key);if(!r&&!n||o&&!n)return;e.preventDefault();const i=this.matches(qy)?this:Et.prev(this,qy)[0]||Et.next(this,qy)[0]||Et.findOne(qy,e.delegateTarget.parentNode),s=js.getOrCreateInstance(i);if(r){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}Ve.on(document,H5e,qy,js.dataApiKeydownHandler);Ve.on(document,H5e,Z$,js.dataApiKeydownHandler);Ve.on(document,W5e,js.clearMenus);Ve.on(document,MOo,js.clearMenus);Ve.on(document,W5e,qy,function(t){t.preventDefault(),js.getOrCreateInstance(this).toggle()});fu(js);const z5e="backdrop",i6o="fade",q0e="show",G0e=`mousedown.bs.${z5e}`,s6o={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},a6o={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class j5e extends w_{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return s6o}static get DefaultType(){return a6o}static get NAME(){return z5e}show(e){if(!this._config.isVisible){Hs(e);return}this._append();const o=this._getElement();this._config.isAnimated&&S_(o),o.classList.add(q0e),this._emulateAnimation(()=>{Hs(e)})}hide(e){if(!this._config.isVisible){Hs(e);return}this._getElement().classList.remove(q0e),this._emulateAnimation(()=>{this.dispose(),Hs(e)})}dispose(){this._isAppended&&(Ve.off(this._element,G0e),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(i6o),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=tg(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),Ve.on(e,G0e,()=>{Hs(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){_5e(e,this._getElement(),this._config.isAnimated)}}const l6o="focustrap",u6o="bs.focustrap",BP=`.${u6o}`,c6o=`focusin${BP}`,d6o=`keydown.tab${BP}`,m6o="Tab",p6o="forward",J0e="backward",h6o={autofocus:!0,trapElement:null},f6o={autofocus:"boolean",trapElement:"element"};class K5e extends w_{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return h6o}static get DefaultType(){return f6o}static get NAME(){return l6o}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Ve.off(document,BP),Ve.on(document,c6o,e=>this._handleFocusin(e)),Ve.on(document,d6o,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Ve.off(document,BP))}_handleFocusin(e){const{trapElement:o}=this._config;if(e.target===document||e.target===o||o.contains(e.target))return;const n=Et.focusableChildren(o);n.length===0?o.focus():this._lastTabNavDirection===J0e?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===m6o&&(this._lastTabNavDirection=e.shiftKey?J0e:p6o)}}const Y0e=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Z0e=".sticky-top",CR="padding-right",X0e="margin-right";class Dq{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,CR,o=>o+e),this._setElementAttributes(Y0e,CR,o=>o+e),this._setElementAttributes(Z0e,X0e,o=>o-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,CR),this._resetElementAttributes(Y0e,CR),this._resetElementAttributes(Z0e,X0e)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,o,n){const r=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+r)return;this._saveInitialAttribute(s,o);const a=window.getComputedStyle(s).getPropertyValue(o);s.style.setProperty(o,`${n(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,o){const n=e.style.getPropertyValue(o);n&&op.setDataAttribute(e,o,n)}_resetElementAttributes(e,o){const n=r=>{const i=op.getDataAttribute(r,o);if(i===null){r.style.removeProperty(o);return}op.removeDataAttribute(r,o),r.style.setProperty(o,i)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,o){if(tp(e)){o(e);return}for(const n of Et.find(e,this._element))o(n)}}const g6o="modal",y6o="bs.modal",lu=`.${y6o}`,C6o=".data-api",b6o="Escape",v6o=`hide${lu}`,S6o=`hidePrevented${lu}`,U5e=`hidden${lu}`,q5e=`show${lu}`,w6o=`shown${lu}`,T6o=`resize${lu}`,x6o=`click.dismiss${lu}`,F6o=`mousedown.dismiss${lu}`,k6o=`keydown.dismiss${lu}`,L6o=`click${lu}${C6o}`,Q0e="modal-open",E6o="fade",ebe="show",D8="modal-static",_6o=".modal.show",B6o=".modal-dialog",D6o=".modal-body",R6o='[data-bs-toggle="modal"]',$6o={backdrop:!0,focus:!0,keyboard:!0},A6o={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class vw extends Cc{constructor(e,o){super(e,o),this._dialog=Et.findOne(B6o,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Dq,this._addEventListeners()}static get Default(){return $6o}static get DefaultType(){return A6o}static get NAME(){return g6o}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Ve.trigger(this._element,q5e,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Q0e),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Ve.trigger(this._element,v6o).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ebe),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Ve.off(window,lu),Ve.off(this._dialog,lu),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new j5e({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new K5e({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const o=Et.findOne(D6o,this._dialog);o&&(o.scrollTop=0),S_(this._element),this._element.classList.add(ebe);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Ve.trigger(this._element,w6o,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){Ve.on(this._element,k6o,e=>{if(e.key===b6o){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Ve.on(window,T6o,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Ve.on(this._element,F6o,e=>{Ve.one(this._element,x6o,o=>{if(!(this._element!==e.target||this._element!==o.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Q0e),this._resetAdjustments(),this._scrollBar.reset(),Ve.trigger(this._element,U5e)})}_isAnimated(){return this._element.classList.contains(E6o)}_triggerBackdropTransition(){if(Ve.trigger(this._element,S6o).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._element.style.overflowY;o==="hidden"||this._element.classList.contains(D8)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(D8),this._queueCallback(()=>{this._element.classList.remove(D8),this._queueCallback(()=>{this._element.style.overflowY=o},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._scrollBar.getWidth(),n=o>0;if(n&&!e){const r=au()?"paddingLeft":"paddingRight";this._element.style[r]=`${o}px`}if(!n&&e){const r=au()?"paddingRight":"paddingLeft";this._element.style[r]=`${o}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,o){return this.each(function(){const n=vw.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](o)}})}}Ve.on(document,L6o,R6o,function(t){const e=Et.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ve.one(e,q5e,n=>{n.defaultPrevented||Ve.one(e,U5e,()=>{aT(this)&&this.focus()})});const o=Et.findOne(_6o);o&&vw.getInstance(o).hide(),vw.getOrCreateInstance(e).toggle(this)});b6(vw);fu(vw);const N6o="offcanvas",V6o="bs.offcanvas",Gp=`.${V6o}`,G5e=".data-api",I6o=`load${Gp}${G5e}`,P6o="Escape",tbe="show",obe="showing",nbe="hiding",M6o="offcanvas-backdrop",J5e=".offcanvas.show",O6o=`show${Gp}`,W6o=`shown${Gp}`,H6o=`hide${Gp}`,rbe=`hidePrevented${Gp}`,Y5e=`hidden${Gp}`,z6o=`resize${Gp}`,j6o=`click${Gp}${G5e}`,K6o=`keydown.dismiss${Gp}`,U6o='[data-bs-toggle="offcanvas"]',q6o={backdrop:!0,keyboard:!0,scroll:!1},G6o={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class ng extends Cc{constructor(e,o){super(e,o),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return q6o}static get DefaultType(){return G6o}static get NAME(){return N6o}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||Ve.trigger(this._element,O6o,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Dq().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(obe);const o=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(tbe),this._element.classList.remove(obe),Ve.trigger(this._element,W6o,{relatedTarget:e})};this._queueCallback(o,this._element,!0)}hide(){if(!this._isShown||Ve.trigger(this._element,H6o).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(nbe),this._backdrop.hide();const e=()=>{this._element.classList.remove(tbe,nbe),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Dq().reset(),Ve.trigger(this._element,Y5e)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){Ve.trigger(this._element,rbe);return}this.hide()},o=!!this._config.backdrop;return new j5e({className:M6o,isVisible:o,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:o?e:null})}_initializeFocusTrap(){return new K5e({trapElement:this._element})}_addEventListeners(){Ve.on(this._element,K6o,e=>{if(e.key===P6o){if(this._config.keyboard){this.hide();return}Ve.trigger(this._element,rbe)}})}static jQueryInterface(e){return this.each(function(){const o=ng.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}}Ve.on(document,j6o,U6o,function(t){const e=Et.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),og(this))return;Ve.one(e,Y5e,()=>{aT(this)&&this.focus()});const o=Et.findOne(J5e);o&&o!==e&&ng.getInstance(o).hide(),ng.getOrCreateInstance(e).toggle(this)});Ve.on(window,I6o,()=>{for(const t of Et.find(J5e))ng.getOrCreateInstance(t).show()});Ve.on(window,z6o,()=>{for(const t of Et.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&ng.getOrCreateInstance(t).hide()});b6(ng);fu(ng);const J6o=/^aria-[\w-]*$/i,Z5e={"*":["class","dir","id","lang","role",J6o],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Y6o=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Z6o=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,X6o=(t,e)=>{const o=t.nodeName.toLowerCase();return e.includes(o)?Y6o.has(o)?!!Z6o.test(t.nodeValue):!0:e.filter(n=>n instanceof RegExp).some(n=>n.test(o))};function Q6o(t,e,o){if(!t.length)return t;if(o&&typeof o=="function")return o(t);const n=new window.DOMParser().parseFromString(t,"text/html"),r=[].concat(...n.body.querySelectorAll("*"));for(const i of r){const s=i.nodeName.toLowerCase();if(!Object.keys(e).includes(s)){i.remove();continue}const a=[].concat(...i.attributes),l=[].concat(e["*"]||[],e[s]||[]);for(const u of a)X6o(u,l)||i.removeAttribute(u.nodeName)}return n.body.innerHTML}const e4o="TemplateFactory",t4o={allowList:Z5e,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},o4o={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},n4o={entry:"(string|element|function|null)",selector:"(string|element)"};class r4o extends w_{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return t4o}static get DefaultType(){return o4o}static get NAME(){return e4o}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[r,i]of Object.entries(this._config.content))this._setContent(e,i,r);const o=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&o.classList.add(...n.split(" ")),o}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[o,n]of Object.entries(e))super._typeCheckConfig({selector:o,entry:n},n4o)}_setContent(e,o,n){const r=Et.findOne(n,e);if(r){if(o=this._resolvePossibleFunction(o),!o){r.remove();return}if(tp(o)){this._putElementInTemplate(tg(o),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(o);return}r.textContent=o}}_maybeSanitize(e){return this._config.sanitize?Q6o(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Hs(e,[void 0,this])}_putElementInTemplate(e,o){if(this._config.html){o.innerHTML="",o.append(e);return}o.textContent=e.textContent}}const i4o="tooltip",s4o=new Set(["sanitize","allowList","sanitizeFn"]),R8="fade",a4o="modal",bR="show",l4o=".tooltip-inner",ibe=`.${a4o}`,sbe="hide.bs.modal",Bx="hover",$8="focus",A8="click",u4o="manual",c4o="hide",d4o="hidden",m4o="show",p4o="shown",h4o="inserted",f4o="click",g4o="focusin",y4o="focusout",C4o="mouseenter",b4o="mouseleave",v4o={AUTO:"auto",TOP:"top",RIGHT:au()?"left":"right",BOTTOM:"bottom",LEFT:au()?"right":"left"},S4o={allowList:Z5e,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},w4o={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class uT extends Cc{constructor(e,o){if(typeof x5e>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,o),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return S4o}static get DefaultType(){return w4o}static get NAME(){return i4o}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Ve.off(this._element.closest(ibe),sbe,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=Ve.trigger(this._element,this.constructor.eventName(m4o)),o=(L5e(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!o)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),Ve.trigger(this._element,this.constructor.eventName(h4o))),this._popper=this._createPopper(n),n.classList.add(bR),"ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))Ve.on(s,"mouseover",EP);const i=()=>{Ve.trigger(this._element,this.constructor.eventName(p4o)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(i,this.tip,this._isAnimated())}hide(){if(!this._isShown()||Ve.trigger(this._element,this.constructor.eventName(c4o)).defaultPrevented)return;if(this._getTipElement().classList.remove(bR),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))Ve.off(o,"mouseover",EP);this._activeTrigger[A8]=!1,this._activeTrigger[$8]=!1,this._activeTrigger[Bx]=!1,this._isHovered=null;const e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Ve.trigger(this._element,this.constructor.eventName(d4o)))};this._queueCallback(e,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const o=this._getTemplateFactory(e).toHtml();if(!o)return null;o.classList.remove(R8,bR),o.classList.add(`bs-${this.constructor.NAME}-auto`);const n=uMo(this.constructor.NAME).toString();return o.setAttribute("id",n),this._isAnimated()&&o.classList.add(R8),o}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new r4o({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[l4o]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(R8)}_isShown(){return this.tip&&this.tip.classList.contains(bR)}_createPopper(e){const o=Hs(this._config.placement,[this,e,this._element]),n=v4o[o.toUpperCase()];return Hte(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(o=>Number.parseInt(o,10)):typeof e=="function"?o=>e(o,this._element):e}_resolvePossibleFunction(e){return Hs(e,[this._element,this._element])}_getPopperConfig(e){const o={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...o,...Hs(this._config.popperConfig,[void 0,o])}}_setListeners(){const e=this._config.trigger.split(" ");for(const o of e)if(o==="click")Ve.on(this._element,this.constructor.eventName(f4o),this._config.selector,n=>{const r=this._initializeOnDelegatedTarget(n);r._activeTrigger[A8]=!(r._isShown()&&r._activeTrigger[A8]),r.toggle()});else if(o!==u4o){const n=o===Bx?this.constructor.eventName(C4o):this.constructor.eventName(g4o),r=o===Bx?this.constructor.eventName(b4o):this.constructor.eventName(y4o);Ve.on(this._element,n,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?$8:Bx]=!0,s._enter()}),Ve.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?$8:Bx]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Ve.on(this._element.closest(ibe),sbe,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,o){clearTimeout(this._timeout),this._timeout=setTimeout(e,o)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const o=op.getDataAttributes(this._element);for(const n of Object.keys(o))s4o.has(n)&&delete o[n];return e={...o,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:tg(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[o,n]of Object.entries(this._config))this.constructor.Default[o]!==n&&(e[o]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const o=uT.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}}fu(uT);const T4o="popover",x4o=".popover-header",F4o=".popover-body",k4o={...uT.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},L4o={...uT.DefaultType,content:"(null|string|element|function)"};class Ute extends uT{static get Default(){return k4o}static get DefaultType(){return L4o}static get NAME(){return T4o}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[x4o]:this._getTitle(),[F4o]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const o=Ute.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}}fu(Ute);const E4o="scrollspy",_4o="bs.scrollspy",qte=`.${_4o}`,B4o=".data-api",D4o=`activate${qte}`,abe=`click${qte}`,R4o=`load${qte}${B4o}`,$4o="dropdown-item",d1="active",A4o='[data-bs-spy="scroll"]',N8="[href]",N4o=".nav, .list-group",lbe=".nav-link",V4o=".nav-item",I4o=".list-group-item",P4o=`${lbe}, ${V4o} > ${lbe}, ${I4o}`,M4o=".dropdown",O4o=".dropdown-toggle",W4o={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},H4o={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};let X5e=class Q5e extends Cc{constructor(e,o){super(e,o),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return W4o}static get DefaultType(){return H4o}static get NAME(){return E4o}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=tg(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(o=>Number.parseFloat(o))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Ve.off(this._config.target,abe),Ve.on(this._config.target,abe,N8,e=>{const o=this._observableSections.get(e.target.hash);if(o){e.preventDefault();const n=this._rootElement||window,r=o.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:"smooth"});return}n.scrollTop=r}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(o=>this._observerCallback(o),e)}_observerCallback(e){const o=s=>this._targetLinks.get(`#${s.target.id}`),n=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(o(s))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(o(s));continue}const a=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&a){if(n(s),!r)return;continue}!i&&!a&&n(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Et.find(N8,this._config.target);for(const o of e){if(!o.hash||og(o))continue;const n=Et.findOne(decodeURI(o.hash),this._element);aT(n)&&(this._targetLinks.set(decodeURI(o.hash),o),this._observableSections.set(o.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(d1),this._activateParents(e),Ve.trigger(this._element,D4o,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains($4o)){Et.findOne(O4o,e.closest(M4o)).classList.add(d1);return}for(const o of Et.parents(e,N4o))for(const n of Et.prev(o,P4o))n.classList.add(d1)}_clearActiveClass(e){e.classList.remove(d1);const o=Et.find(`${N8}.${d1}`,e);for(const n of o)n.classList.remove(d1)}static jQueryInterface(e){return this.each(function(){const o=Q5e.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ve.on(window,R4o,()=>{for(const t of Et.find(A4o))X5e.getOrCreateInstance(t)});fu(X5e);const z4o="tab",j4o="bs.tab",pb=`.${j4o}`,K4o=`hide${pb}`,U4o=`hidden${pb}`,q4o=`show${pb}`,G4o=`shown${pb}`,J4o=`click${pb}`,Y4o=`keydown${pb}`,Z4o=`load${pb}`,X4o="ArrowLeft",ube="ArrowRight",Q4o="ArrowUp",cbe="ArrowDown",V8="Home",dbe="End",Gy="active",mbe="fade",I8="show",e5o="dropdown",eWe=".dropdown-toggle",t5o=".dropdown-menu",P8=`:not(${eWe})`,o5o='.list-group, .nav, [role="tablist"]',n5o=".nav-item, .list-group-item",r5o=`.nav-link${P8}, .list-group-item${P8}, [role="tab"]${P8}`,tWe='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',M8=`${r5o}, ${tWe}`,i5o=`.${Gy}[data-bs-toggle="tab"], .${Gy}[data-bs-toggle="pill"], .${Gy}[data-bs-toggle="list"]`;class Sw extends Cc{constructor(e){super(e),this._parent=this._element.closest(o5o),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Ve.on(this._element,Y4o,o=>this._keydown(o)))}static get NAME(){return z4o}show(){const e=this._element;if(this._elemIsActive(e))return;const o=this._getActiveElem(),n=o?Ve.trigger(o,K4o,{relatedTarget:e}):null;Ve.trigger(e,q4o,{relatedTarget:o}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(o,e),this._activate(e,o))}_activate(e,o){if(!e)return;e.classList.add(Gy),this._activate(Et.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(I8);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),Ve.trigger(e,G4o,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(mbe))}_deactivate(e,o){if(!e)return;e.classList.remove(Gy),e.blur(),this._deactivate(Et.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(I8);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),Ve.trigger(e,U4o,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(mbe))}_keydown(e){if(![X4o,ube,Q4o,cbe,V8,dbe].includes(e.key))return;e.stopPropagation(),e.preventDefault();const o=this._getChildren().filter(r=>!og(r));let n;if([V8,dbe].includes(e.key))n=o[e.key===V8?0:o.length-1];else{const r=[ube,cbe].includes(e.key);n=zte(o,e.target,r,!0)}n&&(n.focus({preventScroll:!0}),Sw.getOrCreateInstance(n).show())}_getChildren(){return Et.find(M8,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,o){this._setAttributeIfNotExists(e,"role","tablist");for(const n of o)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const o=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",o),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),o||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const o=Et.getElementFromSelector(e);o&&(this._setAttributeIfNotExists(o,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(o,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,o){const n=this._getOuterElement(e);if(!n.classList.contains(e5o))return;const r=(i,s)=>{const a=Et.findOne(i,n);a&&a.classList.toggle(s,o)};r(eWe,Gy),r(t5o,I8),n.setAttribute("aria-expanded",o)}_setAttributeIfNotExists(e,o,n){e.hasAttribute(o)||e.setAttribute(o,n)}_elemIsActive(e){return e.classList.contains(Gy)}_getInnerElement(e){return e.matches(M8)?e:Et.findOne(M8,e)}_getOuterElement(e){return e.closest(n5o)||e}static jQueryInterface(e){return this.each(function(){const o=Sw.getOrCreateInstance(this);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}}Ve.on(document,J4o,tWe,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!og(this)&&Sw.getOrCreateInstance(this).show()});Ve.on(window,Z4o,()=>{for(const t of Et.find(i5o))Sw.getOrCreateInstance(t)});fu(Sw);const s5o="toast",a5o="bs.toast",Ug=`.${a5o}`,l5o=`mouseover${Ug}`,u5o=`mouseout${Ug}`,c5o=`focusin${Ug}`,d5o=`focusout${Ug}`,m5o=`hide${Ug}`,p5o=`hidden${Ug}`,h5o=`show${Ug}`,f5o=`shown${Ug}`,g5o="fade",pbe="hide",vR="show",SR="showing",y5o={animation:"boolean",autohide:"boolean",delay:"number"},C5o={animation:!0,autohide:!0,delay:5e3};class w6 extends Cc{constructor(e,o){super(e,o),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return C5o}static get DefaultType(){return y5o}static get NAME(){return s5o}show(){if(Ve.trigger(this._element,h5o).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(g5o);const e=()=>{this._element.classList.remove(SR),Ve.trigger(this._element,f5o),this._maybeScheduleHide()};this._element.classList.remove(pbe),S_(this._element),this._element.classList.add(vR,SR),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||Ve.trigger(this._element,m5o).defaultPrevented)return;const e=()=>{this._element.classList.add(pbe),this._element.classList.remove(SR,vR),Ve.trigger(this._element,p5o)};this._element.classList.add(SR),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(vR),super.dispose()}isShown(){return this._element.classList.contains(vR)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,o){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=o;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=o;break}}if(o){this._clearTimeout();return}const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Ve.on(this._element,l5o,e=>this._onInteraction(e,!0)),Ve.on(this._element,u5o,e=>this._onInteraction(e,!1)),Ve.on(this._element,c5o,e=>this._onInteraction(e,!0)),Ve.on(this._element,d5o,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const o=w6.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e](this)}})}}b6(w6);fu(w6);const oa=(t,e)=>{const o=t.__vccOpts||t;for(const[n,r]of e)o[n]=r;return o},hb={beforeMount(t,e){t.innerHTML=dCe.sanitize(e.value)},beforeUpdate(t,e){t.innerHTML=dCe.sanitize(e.value)}},b5o=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"],v5o={class:"bootstrap-styles modal fade show d-block position-absolute"},S5o={class:"bootstrap-styles modal-dialog modal-dialog-centered"},w5o={class:"bootstrap-styles modal-content border rounded-3 shadow","data-test":"modal-window__content"},T5o={class:"bootstrap-styles modal-header p-0"},x5o={class:"bootstrap-styles container-fluid border-bottom g-0"},F5o={class:"bootstrap-styles d-flex justify-content-between align-items-center px-11 py-7"},k5o={class:"bootstrap-styles modal-title border-0","data-test":"modal-window__header-text"},L5o={class:"bootstrap-styles modal-body p-0","data-test":"modal-window__body"},E5o={class:"bootstrap-styles modal-footer p-0 g-0"},_5o={class:"bootstrap-styles container-fluid border-top"},B5o={class:"bootstrap-styles d-flex justify-content-end py-8 px-11"},D5o={class:"bootstrap-styles col-6 d-flex justify-content-end","data-test":"modal-window__footer-actions"},R5o=Q({__name:"ModalWindow",props:{headerText:{}},emits:["close"],setup(t,{emit:e}){const o=t,n=e;return(r,i)=>(x(),B("div",v5o,[y("div",{class:"bootstrap-styles modal-blur d-block position-fixed top-0 left-0 w-100 vh-100","data-test":"modal-window__outside",onClick:i[0]||(i[0]=s=>n("close"))}),y("div",S5o,[y("div",w5o,[y("div",T5o,[y("div",x5o,[y("div",F5o,[y("h5",k5o,M(o.headerText),1),y("button",{type:"button","aria-label":"Close","data-bs-dismiss":"modal","data-test":"modal-window__close-button",onClick:i[1]||(i[1]=s=>n("close"))},[...i[2]||(i[2]=[y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[y("path",{d:"M3 3L13 13",stroke:"var(--gray-500)"}),y("path",{d:"M13 3L3 13",stroke:"var(--gray-500)"})],-1)])])])])]),y("div",L5o,[ud(r.$slots,"body",{},void 0,!0)]),y("div",E5o,[y("div",_5o,[y("div",B5o,[y("div",D5o,[ud(r.$slots,"footer-actions",{},void 0,!0)])])])])])])]))}}),oWe=oa(R5o,[["__scopeId","data-v-7a4aac23"]]),Qo=t=>e=>t[e.localeKey];qp.create({name:"textTransform",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textTransform:{default:"none",parseHTML:t=>t.style.textTransform,renderHTML:t=>t.textTransform?{style:`text-transform: ${t.textTransform}`}:{}}}}]},addCommands(){return{setTextTransform:t=>({chain:e})=>e().setMark("textStyle",{textTransform:t}).run(),unsetTextTransform:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textTransform:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textTransform:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=e=>e.isUppercase?this.editor.commands.unsetTextTransform():this.editor.commands.setTextTransform("uppercase");return{"Mod-Shift-u":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})},"Mod-Shift-U":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})}}}});qp.create({name:"fontSize",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:t=>t.style.fontSize.replace(/['"]+/g,""),renderHTML:t=>t.fontSize?{style:`font-size: ${t.fontSize}`}:{}}}}]},addCommands(){return{setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t+"px"}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}});qp.create({name:"lineHeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:null,parseHTML:t=>t.style.lineHeight.replace(/['"]+/g,""),renderHTML:t=>t.lineHeight?{style:`line-height: ${t.lineHeight}`}:{}}}}]},addCommands(){return{setLineHeight:t=>({chain:e})=>e().setMark("textStyle",{lineHeight:t+"px"}).run(),resetLineHeight:()=>({chain:t})=>t().setMark("textStyle",{lineHeight:null}).run()}}});qp.create({name:"fontWeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontWeight:{default:null,parseHTML:t=>t.style.fontWeight,renderHTML:t=>t.fontWeight?{style:`font-weight: ${t.fontWeight}`}:{}}}}]},addCommands(){return{setFontWeight:t=>({chain:e})=>e().setMark("textStyle",{fontWeight:t}).run(),unsetFontWeight:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontWeight:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontWeight:"normal"}).focus().run()},resetFontWeight:()=>({chain:t})=>t().setMark("textStyle",{fontWeight:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isBold?this.editor.commands.unsetFontWeight():this.editor.commands.setFontWeight("bold");return{"Mod-b":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})},"Mod-B":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})}}}});qp.create({name:"fontStyle",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontStyle:{default:null,parseHTML:t=>t.style.fontStyle,renderHTML:t=>t.fontStyle?{style:`font-style: ${t.fontStyle}`}:{}}}}]},addCommands(){return{setFontStyle:t=>({chain:e})=>e().setMark("textStyle",{fontStyle:t}).run(),unsetFontStyle:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontStyle:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontStyle:"normal"}).focus().run()},resetFontStyle:()=>({chain:t})=>t().setMark("textStyle",{fontStyle:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isItalic?this.editor.commands.unsetFontStyle():this.editor.commands.setFontStyle("italic");return{"Mod-i":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})},"Mod-I":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})}}}});qp.create({name:"unsubscribeLink",priority:1e3,addOptions(){return{HTMLAttributes:{"data-type":"unsubscribe-link",class:"rich-text__unsubscribe-link"}}},parseHTML(){return[{tag:'span[data-type="unsubscribe-link"]'}]},renderHTML({HTMLAttributes:t}){return["span",Xa(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnsubscribeLink:()=>({chain:t})=>t().setMark("unsubscribeLink").focus().run(),unsetUnsubscribeLink:()=>({chain:t,state:e})=>{const{from:o,to:n}=e.selection,r=e.doc.textBetween(o,n," ");return e.doc.nodeAt(o)?.type.name==="image"?t().unsetMark("unsubscribeLink").focus().run():r.length?t().setTextSelection({from:o,to:o+r.length}).unsetMark("unsubscribeLink").focus().run():t().unsetMark("unsubscribeLink",{extendEmptyMarkRange:!0}).focus().run()}}}});qp.create({name:"textDecoration",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textDecoration:{parseHTML:t=>t.style.textDecoration,renderHTML:t=>t.textDecoration?{style:`text-decoration: ${t.textDecoration}`}:{}}}}]},addCommands(){return{setTextDecoration:t=>({chain:e})=>e().setMark("textStyle",{textDecoration:t}).run(),unsetTextDecoration:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textDecoration:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textDecoration:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=o=>o.isUnderline?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("underline"),e=o=>o.isLineThrough?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("line-through");return{"Mod-Shift-s":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"line-through"});return e({isLineThrough:o})},"Mod-u":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})},"Mod-U":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})}}}});Go.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>{const e=t.style.fontFamily.split(",").map(o=>o.trim()).map(o=>o.replace(/^['"]|['"]$/g,"")).map(o=>o.replace(/ /g,""));return b5o.find(o=>e.includes(o))||null},renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}});const $5o=t=>new Promise((e,o)=>{const n=new Image;n.onload=()=>{e({width:n.naturalWidth,height:n.naturalHeight})},n.onerror=o,n.src=t});Id.create({name:"image",addOptions(){return{inline:!0,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},width:{default:null},height:{default:null},isRetina:{default:!1}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",Xa(this.options.HTMLAttributes,{src:t.src,alt:t.alt,title:t.title,width:t.isRetina?t.width/2:t.width,height:t.isRetina?t.height/2:t.height,isRetina:t.isRetina})]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[pVo({find:/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,type:this.type,getAttributes:t=>{const[,,e,o,n]=t;return{src:o,alt:e,title:n}}})]},addProseMirrorPlugins(){return[new Zn({view:t=>((async()=>{const{state:e,dispatch:o}=t;e.doc.descendants((n,r)=>{if(n.type.name===this.name){const{src:i,width:s,height:a}=n.attrs;i&&(!s||!a)&&$5o(i).then(l=>{const u=e.tr.setNodeMarkup(r,void 0,{...n.attrs,width:l.width,height:l.height});o(u)})}})})(),{})})]}});const A5o={},N5o={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function V5o(t,e){return x(),B("svg",N5o,[...e[0]||(e[0]=[y("path",{d:"M8.00033 10.0002L5.17188 7.17184L6.11469 6.229L8.00033 8.11464L9.88593 6.229L10.8287 7.17184L8.00033 10.0002Z",fill:"var(--gray-500)"},null,-1)])])}const nWe=oa(A5o,[["render",V5o]]),I5o={},P5o={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"};function M5o(t,e){return x(),B("svg",P5o,[...e[0]||(e[0]=[y("path",{d:"M4.00003 2.38419e-07L1 2.99997L2.00001 4L4.00003 1.99998L6.00001 4L7 2.99997L4.00003 2.38419e-07Z",fill:"var(--gray-500)"},null,-1)])])}const rWe=oa(I5o,[["render",M5o],["__scopeId","data-v-19c42a7a"]]),O5o={},W5o={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"};function H5o(t,e){return x(),B("svg",W5o,[...e[0]||(e[0]=[y("path",{d:"M4.00003 8L1 5.00003L2.00001 4L4.00003 6.00002L6.00001 4L7 5.00003L4.00003 8Z",fill:"var(--gray-500)"},null,-1)])])}const iWe=oa(O5o,[["render",H5o],["__scopeId","data-v-313c2951"]]),z5o={},j5o={class:"bootstrap-styles d-flex justify-content-center align-items-center icon-fill icon-loading"};function K5o(t,e){return x(),B("i",j5o,[...e[0]||(e[0]=[y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 16",fill:"none"},[y("path",{d:"M12.2427 3.75736L11.2998 4.70017C10.4553 3.85567 9.28867 3.33333 8 3.33333C5.42267 3.33333 3.33333 5.42267 3.33333 8C3.33333 10.5773 5.42267 12.6667 8 12.6667C10.5773 12.6667 12.6667 10.5773 12.6667 8H14C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C9.65687 2 11.1569 2.67157 12.2427 3.75736Z",fill:"white"})],-1)])])}const sWe=oa(z5o,[["render",K5o],["__scopeId","data-v-c3fea24e"]]),U5o={},q5o={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function G5o(t,e){return x(),B("svg",q5o,[...e[0]||(e[0]=[y("path",{d:"M2 8H14",stroke:"var(--blue-400)","stroke-width":"1.5"},null,-1),y("path",{d:"M8 2L8 14",stroke:"var(--blue-400)","stroke-width":"1.5"},null,-1)])])}const aWe=oa(U5o,[["render",G5o]]),hbe={display:"dynamic",reference:"parent",autoClose:"outside",offset:[0,5]},J5o={mounted(t,e){return new js(t,{...hbe,...e.value})},updated(t,e){const o=js.getInstance(t);return o!==null&&o.hide(),new js(t,{...hbe,...e.value})},unmounted(t){const e=js.getInstance(t);e!==null&&e.dispose()}},Y5o={},Z5o={class:"bootstrap-styles d-flex justify-content-center align-items-center icon-fill icon-loading"};function X5o(t,e){return x(),B("i",Z5o,[...e[0]||(e[0]=[y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[y("path",{d:"M12.2427 3.75736L11.2998 4.70017C10.4553 3.85567 9.28867 3.33333 8 3.33333C5.42267 3.33333 3.33333 5.42267 3.33333 8C3.33333 10.5773 5.42267 12.6667 8 12.6667C10.5773 12.6667 12.6667 10.5773 12.6667 8H14C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C9.65687 2 11.1569 2.67157 12.2427 3.75736Z",fill:"var(--gray-500)"})],-1)])])}const yp=oa(Y5o,[["render",X5o],["__scopeId","data-v-369906aa"]]),Q5o=["value"],eWo={class:"bootstrap-styles input-number__button-wrapper input-number__button-increment d-none position-absolute align-items-end justify-content-center",style:{right:"10px",top:"0",width:"16px",height:"16px"}},tWo={class:"bootstrap-styles input-number__button-wrapper input-number__button-decrement d-none position-absolute align-items-start justify-content-center",style:{right:"10px",bottom:"0",width:"16px",height:"16px"}},oWo=Q({__name:"InputNumber",props:{modelValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const o=t,n=()=>{i("update:modelValue",Number(o.modelValue)+1)},r=()=>{o.modelValue!==0&&i("update:modelValue",Number(o.modelValue)-1)},i=e;return(s,a)=>(x(),B(me,null,[y("input",{type:"number",class:"bootstrap-styles input-number__input",style:{width:"calc(100% - 20px)"},value:o.modelValue,"data-test":"input-number",onInput:a[0]||(a[0]=l=>i("update:modelValue",Number(l.target.value)))},null,40,Q5o),y("div",eWo,[y("input",{type:"button",class:"bootstrap-styles input-number__button position-absolute",style:{width:"100%",height:"100%",top:"0",left:"0"},"data-test":"input-number__button-increment",onClick:n}),R(rWe)]),y("div",tWo,[y("input",{type:"button",class:"bootstrap-styles input-number__button position-absolute",style:{width:"100%",height:"100%",top:"0",left:"0"},"data-test":"input-number__button-decrement",onClick:r}),R(iWe)])],64))}}),fbe=oa(oWo,[["__scopeId","data-v-41f882ad"]]),nWo={},rWo={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function iWo(t,e){return x(),B("svg",rWo,[...e[0]||(e[0]=[y("path",{d:"M8.00065 14.6668C4.31875 14.6668 1.33398 11.682 1.33398 8.00016C1.33398 4.31826 4.31875 1.3335 8.00065 1.3335C11.6825 1.3335 14.6673 4.31826 14.6673 8.00016C14.6673 11.682 11.6825 14.6668 8.00065 14.6668ZM8.00065 13.3335C10.9462 13.3335 13.334 10.9457 13.334 8.00016C13.334 5.05464 10.9462 2.66683 8.00065 2.66683C5.05513 2.66683 2.66732 5.05464 2.66732 8.00016C2.66732 10.9457 5.05513 13.3335 8.00065 13.3335ZM7.33398 4.66683H8.66732V6.00016H7.33398V4.66683ZM7.33398 7.3335H8.66732V11.3335H7.33398V7.3335Z",fill:"var(--blue-400)"},null,-1)])])}const qg=oa(nWo,[["render",iWo]]),sWo=(t,e,o,n)=>{if(t==null)return dv.None;const r=e(t);if(r==null)return dv.None;const i=o(r);if(i==null)return dv.None;const s=n(i);return s==null?dv.None:dv.Some([t,r,i,s])},aWo={},lWo={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uWo(t,e){return x(),B("svg",lWo,[...e[0]||(e[0]=[y("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 lWe=oa(aWo,[["render",uWo]]),cWo={},dWo={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function mWo(t,e){return x(),B("svg",dWo,[...e[0]||(e[0]=[y("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 uWe=oa(cWo,[["render",mWo]]),pWo={},hWo={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function fWo(t,e){return x(),B("svg",hWo,[...e[0]||(e[0]=[y("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 cWe=oa(pWo,[["render",fWo]]),gWo={},yWo={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function CWo(t,e){return x(),B("svg",yWo,[...e[0]||(e[0]=[y("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 T6=oa(gWo,[["render",CWo]]),bWo={},vWo={width:"48",height:"49",viewBox:"0 0 48 49",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function SWo(t,e){return x(),B("svg",vWo,[...e[0]||(e[0]=[y("rect",{x:"2",y:"2.5",width:"44",height:"44",rx:"2.61259",fill:"#F6F6F6"},null,-1),y("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 Gte=oa(bWo,[["render",SWo]]),dWe=t=>{const e=t.number%10===1&&t.number%100!==1,o=t.number%10>=2&&t.number%10<=4&&(t.number%100<10||t.number%100>=20);return e?t.titles.one:o?t.titles.few:t.titles.many},en=(t,e)=>{const o=t.__vccOpts||t;for(const[n,r]of e)o[n]=r;return o},wWo={productListShelfLimiterLabel:"Product limit",productsAtLeast:"At least",productsLimit:"Limit"},TWo={productListShelfLimiterLabel:"Количество товаров",productsAtLeast:"От",productsLimit:"До"},O8=Qo({en:wWo,ru:TWo}),xWo={class:"bootstrap-styles fw-bold mb-5"},FWo={class:"bootstrap-styles container-fluid mb-5 product-list-shelf-limiter"},kWo={class:"bootstrap-styles row gx-2"},LWo={class:"bootstrap-styles col-6"},EWo={class:"bootstrap-styles input-group-prepend me-14 cursor-default"},_Wo={class:"input-group-text"},BWo={class:"bootstrap-styles col-6"},DWo={class:"bootstrap-styles input-group-prepend me-14 cursor-default"},RWo={class:"input-group-text"},$Wo=Q({__name:"ProductListShelfLimiter",props:{deps:{},productsAtLeast:{},productsLimit:{}},emits:["update:productsAtLeast","update:productsLimit"],setup(t,{emit:e}){const o=t,n={productListShelfLimiterLabel:O8({localeKey:o.deps.localeKey}).productListShelfLimiterLabel,productsAtLeast:O8({localeKey:o.deps.localeKey}).productsAtLeast,productsLimit:O8({localeKey:o.deps.localeKey}).productsLimit},r=Se({productsAtLeast:o.productsAtLeast,productsLimit:o.productsLimit,hasError:!1}),i=l=>{r.hasError=l>o.productsLimit||l===0,a("update:productsAtLeast",l)},s=l=>{r.hasError=l===0,a("update:productsLimit",l)},a=e;return wi(()=>{r.hasError=o.productsAtLeast>o.productsLimit}),(l,u)=>(x(),B(me,null,[y("label",xWo,M(n.productListShelfLimiterLabel),1),y("div",FWo,[y("div",kWo,[y("div",LWo,[y("div",{class:j(["bootstrap-styles input-number__wrapper rounded-2 py-1 px-3 d-flex position-relative",{"has-error":r.hasError}]),"data-test":"product-shelf-limiter__products-at-least"},[y("div",EWo,[y("span",_Wo,M(n.productsAtLeast),1)]),R(I(fbe),{modelValue:o.productsAtLeast,"onUpdate:modelValue":u[0]||(u[0]=c=>i(c))},null,8,["modelValue"])],2)]),y("div",BWo,[y("div",{class:j(["bootstrap-styles input-number__wrapper rounded-2 py-1 px-3 d-flex position-relative",{"has-error":r.hasError}]),"data-test":"product-shelf-limiter__products-limit"},[y("div",DWo,[y("span",RWo,M(n.productsLimit),1)]),R(I(fbe),{modelValue:o.productsLimit,"onUpdate:modelValue":u[1]||(u[1]=c=>s(c))},null,8,["modelValue"])],2)])])])],64))}}),bc=en($Wo,[["__scopeId","data-v-774a101d"]]),AWo=t=>({_t:"SpecificStockIdSource",Value:t}),Lu=()=>({_t:"DefaultStoreStockIdSource"}),NWo={stockSourceVariantLabel:"Stock source",stockLabel:"Stock ID",stockPlaceholder:"Select an ID",defaultStock:"Default",emptySearch:"No results for search"},VWo={stockSourceVariantLabel:"Склад товаров",stockLabel:"Идентификатор склада",stockPlaceholder:"Выберите идентификатор",defaultStock:"Идентификатор по умолчанию",emptySearch:"Нет результатов поиска"},Dx=Qo({en:NWo,ru:VWo}),IWo={stockSourceVariantLabel:"Stock source",defaultStockSource:"Default stock",specificStockSource:"Specific stock",customerStockSource:"Customer stock"},PWo={stockSourceVariantLabel:"Склад товаров",defaultStockSource:"Склад по-умолчанию",specificStockSource:"Конкретный склад",customerStockSource:"Склад покупателя"},wR=Qo({en:IWo,ru:PWo}),MWo={class:"bootstrap-styles fw-bold mb-5"},OWo={class:"bootstrap-styles dropdown border rounded-2 bg-color-input mb-8"},WWo=["disabled"],HWo={class:"bootstrap-styles d-flex justify-content-center align-items-center"},zWo={"aria-labelledby":"stock-source-selector",class:"bootstrap-styles dropdown-menu w-100 rounded-2"},jWo={class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer"},KWo={class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer"},UWo={class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer"},qWo=Q({__name:"StockSourceSelector",props:{deps:{},hasStockList:{type:Boolean},stockSource:{}},emits:["onStockSourceSelected"],setup(t,{emit:e}){const o=t,n={stockSourceVariantLabel:wR({localeKey:o.deps.localeKey}).stockSourceVariantLabel,defaultStockSource:wR({localeKey:o.deps.localeKey}).defaultStockSource,specificStockSource:wR({localeKey:o.deps.localeKey}).specificStockSource,customerStockSource:wR({localeKey:o.deps.localeKey}).customerStockSource},r=q(()=>{switch(o.stockSource._t){case"SpecificStockIdSource":return n.specificStockSource;case"DefaultStoreStockIdSource":return n.defaultStockSource;case"CustomerStockIdSource":return n.customerStockSource;default:throw new Error("Unknown stock source type")}}),i=e;return(s,a)=>(x(),B(me,null,[y("label",MWo,M(n.stockSourceVariantLabel),1),y("div",OWo,[Ee((x(),B("button",{id:"stock-source-selector",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",disabled:!o.hasStockList},[y("span",null,M(r.value),1),y("i",HWo,[R(I(nWe))])],8,WWo)),[[I(J5o)]]),y("ul",zWo,[o.hasStockList?(x(),B("li",{key:0,class:j(["bootstrap-styles dropdown-item p-0",{selected:o.stockSource._t==="SpecificStockIdSource"}]),onClick:a[0]||(a[0]=()=>i("onStockSourceSelected",{_t:"SpecificStockIdSource",Value:""}))},[y("span",jWo,M(n.specificStockSource),1)],2)):X("",!0),o.hasStockList?(x(),B("li",{key:1,class:j(["bootstrap-styles dropdown-item p-0",{selected:o.stockSource._t==="CustomerStockIdSource"}]),onClick:a[1]||(a[1]=()=>i("onStockSourceSelected",{_t:"CustomerStockIdSource"}))},[y("span",KWo,M(n.customerStockSource),1)],2)):X("",!0),y("li",{class:j(["bootstrap-styles dropdown-item p-0",{selected:o.stockSource._t==="DefaultStoreStockIdSource"}]),onClick:a[2]||(a[2]=()=>i("onStockSourceSelected",{_t:"DefaultStoreStockIdSource"}))},[y("span",UWo,M(n.defaultStockSource),1)],2)])])],64))}}),GWo={key:0},JWo={class:"bootstrap-styles fw-bold mb-5"},YWo={class:"bootstrap-styles stock-selector dropdown d-flex justify-content-between w-100 border rounded-2 bg-color-input position-relative mb-5"},ZWo=["value","placeholder"],XWo=["tabindex","onClick"],QWo={class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer"},eHo={key:0,class:"bootstrap-styles dropdown-item dropdown-item__empty p-0"},tHo={class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-default"},oHo=Q({__name:"StockSelector",props:{deps:{},stockIdList:{},stockSource:{}},emits:["onStockSourceUpdated"],setup(t,{emit:e}){const o=t,n={stockSourceVariantLabel:Dx({localeKey:o.deps.localeKey}).stockSourceVariantLabel,stockLabel:Dx({localeKey:o.deps.localeKey}).stockLabel,stockPlaceholder:Dx({localeKey:o.deps.localeKey}).stockPlaceholder,defaultStock:Dx({localeKey:o.deps.localeKey}).defaultStock,emptySearch:Dx({localeKey:o.deps.localeKey}).emptySearch},r=p=>{switch(p._t){case"CustomerStockIdSource":return"";case"DefaultStoreStockIdSource":return"";case"SpecificStockIdSource":return p.Value}},i=q(()=>o.stockIdList.filter(p=>p.includes(s.searchPhrase))),s=Se({isDropdownMenuShown:!1,searchPhrase:r(o.stockSource),stockSource:o.stockSource}),a=p=>{s.isDropdownMenuShown=!1,s.stockSource=AWo(p),s.searchPhrase=p,m("onStockSourceUpdated",s.stockSource)},l=p=>{s.isDropdownMenuShown=!0,s.searchPhrase=p},u=p=>{p.relatedTarget===null&&(s.searchPhrase=r(s.stockSource),s.isDropdownMenuShown=!1)},c=ut(null),d=()=>{s.isDropdownMenuShown=!0,mi(()=>{c.value&&c.value.querySelector(".dropdown-item.selected")?.scrollIntoView()})},m=e;return(p,h)=>(x(),B(me,null,[R(qWo,{deps:o.deps.stockSourceSelectorDeps,hasStockList:o.stockIdList.length>0,stockSource:s.stockSource,onOnStockSourceSelected:h[0]||(h[0]=f=>{s.stockSource=f,m("onStockSourceUpdated",f)})},null,8,["deps","hasStockList","stockSource"]),s.stockSource._t==="SpecificStockIdSource"?(x(),B("div",GWo,[y("label",JWo,M(n.stockLabel),1),y("div",YWo,[y("input",{class:j(["bootstrap-styles w-100 text-start py-1 px-3 stock-selector__input",{disabled:o.stockSource._t==="DefaultStoreStockIdSource"}]),value:s.searchPhrase,placeholder:n.stockPlaceholder,onInput:h[1]||(h[1]=f=>l(f.target.value)),onFocusin:h[2]||(h[2]=()=>d()),onBlur:h[3]||(h[3]=f=>u(f))},null,42,ZWo),R(I(nWe),{class:j(["stock-selector__icon",{"stock-selector__icon-rotate":s.isDropdownMenuShown}])},null,8,["class"]),y("ul",{ref_key:"refStockIdListWrapper",ref:c,class:j(["bootstrap-styles stock-selector__dropdown-menu w-100 rounded-2",{"d-block":s.isDropdownMenuShown}])},[(x(!0),B(me,null,pt(i.value,(f,g)=>(x(),B("li",{key:g,class:j(["bootstrap-styles dropdown-item p-0",{selected:f===s.stockSource.Value}]),tabindex:g,onClick:()=>a(f)},[y("span",QWo,M(f),1)],10,XWo))),128)),i.value.length===0?(x(),B("li",eHo,[y("span",tHo,M(`${n.emptySearch} "${s.searchPhrase}"`),1)])):X("",!0)],2)])])):X("",!0)],64))}}),vc=en(oHo,[["__scopeId","data-v-8ae82cc7"]]);var gbe=p6();const mWe=t=>sWo(t.listExpression,e=>e.ChunkExpression,e=>e.ListExpression.LimitExpression,e=>e.ListExpression.DataSource).match({none:()=>gbe.None,some:([e,o,n,r])=>t.productShelfFactoryFromDataSource({limit:n.Limit,atLeast:o.ChunkSize,dataSourceExpression:r}).match({none:()=>gbe.None,some:i=>dv.Some(i)})}),nHo=IIo,Eu=t=>nHo(t).Match({CustomerStockId:()=>({_t:"CustomerStockIdSource"}),DefaultStoreStockId:()=>({_t:"DefaultStoreStockIdSource"}),SpecificStockId:e=>({_t:"SpecificStockIdSource",Value:e.Value})}),_u=t=>({ChunkExpression:{ChunkSize:t.atLeast,ListExpression:{LimitExpression:{Limit:t.limit,ListExpression:{DataSource:t.dataSource}}}}}),Bu=t=>{switch(t._t){case"CustomerStockIdSource":return{CustomerStockId:{}};case"DefaultStoreStockIdSource":return{DefaultStoreStockId:{}};case"SpecificStockIdSource":return{SpecificStockId:{Value:t.Value}};default:return VIo(t)}},rHo={latestProductListDescription:"The email will display the latest products in the store"},iHo={latestProductListDescription:"В письме будут отображаться новинки магазина"},sHo=Qo({en:rHo,ru:iHo}),aHo={class:"bootstrap-styles container-fluid mb-8"},lHo={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-center align-items-center text-center border-blue-selected mb-8 algorithm-description"},uHo={class:"bootstrap-styles me-14"},cHo=Q({__name:"LatestProductListShelfBuilder",props:{deps:{},latestProductListShelf:{}},emits:["updatedLatestProductListShelf","cancel"],setup(t,{emit:e}){const o=t,n=Se({stockIdList:[]});o.deps.getAllStockIds().then(s=>{n.stockIdList=s});const r={latestProductListDescription:sHo({localeKey:o.deps.localeKey}).latestProductListDescription},i=e;return(s,a)=>(x(),B("div",{class:j(["bootstrap-styles container-fluid px-11 mt-8",{"is-specific-stock-source":o.latestProductListShelf.StockSource._t==="SpecificStockIdSource"}])},[y("div",aHo,[R(vc,{deps:o.deps.stockSelectorDeps,stockIdList:n.stockIdList,stockSource:o.latestProductListShelf.StockSource,onOnStockSourceUpdated:a[0]||(a[0]=l=>{i("updatedLatestProductListShelf",{...o.latestProductListShelf,StockSource:l})})},null,8,["deps","stockIdList","stockSource"])]),y("div",lHo,[y("i",uHo,[R(I(qg))]),Ee(y("span",null,null,512),[[I(hb),r.latestProductListDescription]])]),R(bc,{deps:o.deps.productListShelfLimiterDeps,productsAtLeast:o.latestProductListShelf.AtLeast,productsLimit:o.latestProductListShelf.Limit,"onUpdate:productsAtLeast":a[1]||(a[1]=l=>i("updatedLatestProductListShelf",{...o.latestProductListShelf,AtLeast:l})),"onUpdate:productsLimit":a[2]||(a[2]=l=>i("updatedLatestProductListShelf",{...o.latestProductListShelf,Limit:l}))},null,8,["deps","productsAtLeast","productsLimit"])],2))}}),dHo=en(cHo,[["__scopeId","data-v-ab853508"]]),mHo={saleByLatestProductListDescription:"The email will display the latest products in the store on sale"},pHo={saleByLatestProductListDescription:"В письме будут отображаться новинки магазина со скидкой"},hHo=Qo({en:mHo,ru:pHo}),fHo={class:"bootstrap-styles container-fluid mb-8"},gHo={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"},yHo={class:"bootstrap-styles me-3"},CHo=Q({__name:"SaleByLatestProductListShelfBuilder",props:{saleByLatestProductListShelf:{},deps:{}},emits:["updatedSaleByLatestProductListShelf","cancel"],setup(t,{emit:e}){const o=t,n=Se({stockIdList:[]});o.deps.getAllStockIds().then(s=>{n.stockIdList=s});const r={saleByLatestProductListDescription:hHo({localeKey:o.deps.localeKey}).saleByLatestProductListDescription},i=e;return(s,a)=>(x(),B("div",{class:j(["bootstrap-styles container-fluid px-11 mt-8",{"is-specific-stock-source":o.saleByLatestProductListShelf.StockSource._t==="SpecificStockIdSource"}])},[y("div",fHo,[R(vc,{deps:o.deps.stockSelectorDeps,stockIdList:n.stockIdList,stockSource:o.saleByLatestProductListShelf.StockSource,onOnStockSourceUpdated:a[0]||(a[0]=l=>{i("updatedSaleByLatestProductListShelf",{...o.saleByLatestProductListShelf,StockSource:l})})},null,8,["deps","stockIdList","stockSource"])]),y("div",gHo,[y("div",yHo,[y("i",null,[R(I(qg))])]),Ee(y("div",null,null,512),[[I(hb),r.saleByLatestProductListDescription]])]),R(bc,{deps:o.deps.productListShelfLimiterDeps,productsAtLeast:o.saleByLatestProductListShelf.AtLeast,productsLimit:o.saleByLatestProductListShelf.Limit,"onUpdate:productsAtLeast":a[1]||(a[1]=l=>i("updatedSaleByLatestProductListShelf",{...o.saleByLatestProductListShelf,AtLeast:l})),"onUpdate:productsLimit":a[2]||(a[2]=l=>i("updatedSaleByLatestProductListShelf",{...o.saleByLatestProductListShelf,Limit:l}))},null,8,["deps","productsAtLeast","productsLimit"])],2))}}),bHo=en(CHo,[["__scopeId","data-v-44c50ec9"]]),vHo={saleByPopularProductListDescription:"The email will display popular products in the store on sale"},SHo={saleByPopularProductListDescription:"В письме будут отображаться популярные товары магазина со скидкой"},wHo=Qo({en:vHo,ru:SHo}),THo={class:"bootstrap-styles container-fluid mb-8"},xHo={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"},FHo={class:"bootstrap-styles me-3"},kHo=Q({__name:"SaleByPopularProductListShelfBuilder",props:{deps:{},saleByPopularProductListShelf:{}},emits:["updatedSaleByPopularProductListShelf","cancel"],setup(t,{emit:e}){const o=t,n=Se({stockIdList:[]});o.deps.getAllStockIds().then(s=>{n.stockIdList=s});const r={saleByPopularProductListDescription:wHo({localeKey:o.deps.localeKey}).saleByPopularProductListDescription},i=e;return(s,a)=>(x(),B("div",{class:j(["bootstrap-styles container-fluid px-11 mt-8",{"is-specific-stock-source":o.saleByPopularProductListShelf.StockSource._t==="SpecificStockIdSource"}])},[y("div",THo,[R(vc,{deps:o.deps.stockSelectorDeps,stockIdList:n.stockIdList,stockSource:o.saleByPopularProductListShelf.StockSource,onOnStockSourceUpdated:a[0]||(a[0]=l=>{i("updatedSaleByPopularProductListShelf",{...o.saleByPopularProductListShelf,StockSource:l})})},null,8,["deps","stockIdList","stockSource"])]),y("div",xHo,[y("div",FHo,[y("i",null,[R(I(qg))])]),Ee(y("div",null,null,512),[[I(hb),r.saleByPopularProductListDescription]])]),R(bc,{deps:o.deps.productListShelfLimiterDeps,productsAtLeast:o.saleByPopularProductListShelf.AtLeast,productsLimit:o.saleByPopularProductListShelf.Limit,"onUpdate:productsAtLeast":a[1]||(a[1]=l=>i("updatedSaleByPopularProductListShelf",{...o.saleByPopularProductListShelf,AtLeast:l})),"onUpdate:productsLimit":a[2]||(a[2]=l=>i("updatedSaleByPopularProductListShelf",{...o.saleByPopularProductListShelf,Limit:l}))},null,8,["deps","productsAtLeast","productsLimit"])],2))}}),LHo=en(kHo,[["__scopeId","data-v-629b4af4"]]),EHo={searchInputPlaceholder:"Name of one product or list of IDs",transferAllButton:"Add all"},_Ho={searchInputPlaceholder:"Название одного товара или список ID",transferAllButton:"Перенести все"},ybe=Qo({en:EHo,ru:_Ho}),BHo={class:"bootstrap-styles row g-0 mb-7"},DHo={class:"bootstrap-styles col-8 d-flex justify-content-between align-items-center"},RHo={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex w-100"},$Ho={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},AHo=["placeholder"],NHo={class:"bootstrap-styles ps-1 me-7"},VHo={key:0,class:"bootstrap-styles d-flex justify-content-center align-items-center icon-fill"},IHo={class:"bootstrap-styles col-4"},PHo={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1 icon-stroke"},MHo=Q({__name:"ProductSearchBar",props:{isButtonAddAllEnable:{type:Boolean},isLoaded:{type:Boolean},deps:{}},emits:["search","addAllFoundProducts"],setup(t,{emit:e}){const o=t,n={searchInputPlaceholder:ybe({localeKey:o.deps.localeKey}).searchInputPlaceholder,transferAllButton:ybe({localeKey:o.deps.localeKey}).transferAllButton},r=Se({phrase:""}),i=()=>{r.phrase.length&&s("search",r.phrase)},s=e;return(a,l)=>(x(),B("div",BHo,[y("div",DHo,[y("div",RHo,[y("i",$Ho,[R(I(uWe))]),y("form",{class:"bootstrap-styles w-100 search-form",onSubmit:bt(i,["prevent"])},[Ee(y("input",{"onUpdate:modelValue":l[0]||(l[0]=u=>r.phrase=u),type:"text",class:"bootstrap-styles w-100",placeholder:n.searchInputPlaceholder,required:""},null,8,AHo),[[cd,r.phrase]])],32),Ee(y("button",{class:"bootstrap-styles px-14",onClick:l[1]||(l[1]=u=>r.phrase="")},[...l[3]||(l[3]=[y("i",{class:"bootstrap-styles d-flex justify-content-center align-items-center icon-hover-stroke"},[y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 16 16",fill:"none"},[y("path",{d:"M3 3L13 13",stroke:"var(--gray-500)"}),y("path",{d:"M13 3L3 13",stroke:"var(--gray-500)"})])],-1)])],512),[[I0,r.phrase.length>0]])]),y("div",NHo,[y("button",{class:j([{"button__active-700":r.phrase.length,button__locked:!o.isLoaded||!r.phrase.length},"bootstrap-styles d-flex justify-content-center align-items-center py-1 px-3 rounded-2 button__disabled-700"]),onClick:i},[o.isLoaded?(x(),B("i",VHo,[R(I(cWe))])):(x(),Z(I(sWe),{key:1}))],2)])]),y("div",IHo,[y("button",{class:j([{"button__active-100 button__hover-blue-100":o.isButtonAddAllEnable,button__locked:!o.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:l[2]||(l[2]=()=>s("addAllFoundProducts"))},[y("i",PHo,[R(I(aWe))]),To(" "+M(n.transferAllButton),1)],2)])]))}}),OHo=en(MHo,[["__scopeId","data-v-dfe20ea3"]]),WHo={notAvailableLabel:"not available"},HHo={notAvailableLabel:"нет в наличии"},zHo=Qo({en:WHo,ru:HHo}),jHo={class:"bootstrap-styles container-fluid product-list-item"},KHo={class:"bootstrap-styles row g-0 py-1"},UHo={class:"bootstrap-styles col-1"},qHo={class:"bootstrap-styles w-100 d-flex justify-content-center align-items-center product-list-item__image"},GHo=["src","alt"],JHo={class:"bootstrap-styles col-10 ps-3"},YHo={class:"bootstrap-styles h-100 d-flex flex-column align-items-start justify-content-center"},ZHo={key:0,class:"bootstrap-styles mb-1 product-list-item__not-available"},XHo={class:"bootstrap-styles mb-1 text-gray-600"},QHo={"data-test":"searched-product-list__item-id"},e7o={class:"bootstrap-styles","data-test":"searched-product-list__item-name"},t7o={class:"bootstrap-styles col-1"},o7o={class:"bootstrap-styles w-100 h-100 d-flex justify-content-end align-items-center pe-14"},n7o=Q({__name:"SearchedProductListItem",props:{product:{},deps:{}},emits:["addSearchedProduct"],setup(t,{emit:e}){const o=t,n={notAvailableLabel:zHo({localeKey:o.deps.localeKey}).notAvailableLabel},r=Se({isBrokenImage:!1}),i=e;return(s,a)=>(x(),B("div",jHo,[y("div",KHo,[y("div",UHo,[y("div",qHo,[r.isBrokenImage?(x(),Z(I(Gte),{key:1})):(x(),B("img",{key:0,class:"bootstrap-styles mw-100 mh-100",src:o.product.PictureUrl,alt:o.product.Name,"data-test":"searched-product-list__item-image",onError:a[0]||(a[0]=()=>r.isBrokenImage=!0)},null,40,GHo))])]),y("div",JHo,[y("div",YHo,[o.product.IsAvailable?X("",!0):(x(),B("div",ZHo,M(n.notAvailableLabel),1)),y("div",XHo,[a[2]||(a[2]=y("span",{class:"bootstrap-styles me-14"},"ID",-1)),y("span",QHo,M(o.product.ExternalProductId),1)]),y("div",e7o,M(o.product.Name),1)])]),y("div",t7o,[y("div",o7o,[y("button",{"data-test":"searched-product-list__item-add-button",onClick:a[1]||(a[1]=l=>i("addSearchedProduct"))},[y("i",null,[R(I(lWe))])])])])])]))}}),r7o=en(n7o,[["__scopeId","data-v-7f89e1e5"]]),i7o={emptySearchProductListTopText:"Name of one product",emptySearchProductListBottomText:"or a list of IDs separated by commas"},s7o={emptySearchProductListTopText:"Название одного товара",emptySearchProductListBottomText:"или список ID через запятую"},Cbe=Qo({en:i7o,ru:s7o}),a7o={class:"bootstrap-styles d-flex justify-content-center align-items-center py-7 h-100 overflow-hidden"},l7o={class:"bootstrap-styles empty-product-list d-flex flex-column justify-content-center align-items-center"},u7o={class:"bootstrap-styles bg-color-gray rounded-2 p-3"},c7o={class:"bootstrap-styles text-gray-600 p-3"},d7o=Q({__name:"EmptySearchProductList",props:{deps:{}},setup(t){const e=t,o={emptySearchProductListTopText:Cbe({localeKey:e.deps.localeKey}).emptySearchProductListTopText,emptySearchProductListBottomText:Cbe({localeKey:e.deps.localeKey}).emptySearchProductListBottomText};return(n,r)=>(x(),B("div",a7o,[y("div",l7o,[r[0]||(r[0]=wp('<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)),y("div",u7o,M(o.emptySearchProductListTopText),1),y("div",c7o,M(o.emptySearchProductListBottomText),1),r[1]||(r[1]=y("div",{class:"bootstrap-styles d-flex align-items-end"},[y("span",{class:"bootstrap-styles bg-color-gray rounded-2 p-3 me-1"},"123456"),To(", "),y("span",{class:"bootstrap-styles bg-color-gray rounded-2 p-3 ms-1 me-1"},"123457"),To(", "),y("span",{class:"bootstrap-styles bg-color-gray rounded-2 p-3 ms-1"},"123458")],-1))])]))}}),m7o={key:0,class:"bootstrap-styles d-flex flex-column scrollable","data-test":"searched-product-list"},p7o=Q({__name:"SearchedProductList",props:{searchedProductList:{},deps:{}},emits:["addSearchedProduct"],setup(t,{emit:e}){const o=t,n=e;return(r,i)=>o.searchedProductList.length?(x(),B("div",m7o,[(x(!0),B(me,null,pt(o.searchedProductList,s=>(x(),Z(r7o,{key:s.InternalProductId,product:s,deps:o.deps.searchedProductListItemDeps,onAddSearchedProduct:a=>n("addSearchedProduct",s)},null,8,["product","deps","onAddSearchedProduct"]))),128))])):(x(),Z(d7o,{key:1,deps:o.deps.emptySearchProductListDeps},null,8,["deps"]))}}),h7o=en(p7o,[["__scopeId","data-v-3a3392d9"]]),f7o={searching:"Search..."},g7o={searching:"Поиск..."},y7o=Qo({en:f7o,ru:g7o}),C7o={class:"bootstrap-styles col-6 border-end h-100"},b7o={class:"bootstrap-styles container-fluid g-0 px-11 py-8 d-flex flex-column h-100"},v7o={key:1,class:"bootstrap-styles d-flex justify-content-center align-items-center h-100"},S7o=Q({__name:"ProductSearchComponent",props:{deps:{},excluded:{},stockSource:{}},emits:["selected"],setup(t,{emit:e}){const o=t,n={searching:y7o({localeKey:o.deps.localeKey}).searching},r=l=>l.filter(u=>o.excluded.every(c=>u.InternalProductId!==c)),i=Se({foundProducts:[],isLoaded:!0}),s=qOe(l=>{i.isLoaded=!1,o.deps.findProductsByPhrase(l,o.stockSource).then(u=>{i.foundProducts=u,i.isLoaded=!0})},50),a=e;return(l,u)=>(x(),B("div",C7o,[y("div",b7o,[R(OHo,{isButtonAddAllEnable:r(i.foundProducts).length>0,isLoaded:i.isLoaded,deps:o.deps.productSearchBarDeps,onAddAllFoundProducts:u[0]||(u[0]=()=>{a("selected",r(i.foundProducts).map(c=>c.InternalProductId))}),onSearch:u[1]||(u[1]=c=>I(s)(c))},null,8,["isButtonAddAllEnable","isLoaded","deps"]),i.isLoaded?(x(),Z(h7o,{key:0,searchedProductList:r(i.foundProducts),deps:o.deps.searchedProductListDeps,onAddSearchedProduct:u[2]||(u[2]=c=>a("selected",[c.InternalProductId]))},null,8,["searchedProductList","deps"])):(x(),B("div",v7o,M(n.searching),1))])]))}}),w7o={notAvailableLabel:"not available"},T7o={notAvailableLabel:"нет в наличии"},x7o=Qo({en:w7o,ru:T7o}),F7o={class:"bootstrap-styles container-fluid product-list-item"},k7o={class:"bootstrap-styles row g-0 py-1"},L7o={class:"bootstrap-styles col-1"},E7o={class:"bootstrap-styles w-100 h-100 d-flex justify-content-start align-items-center px-14","data-test":"selected-product-list__item-index"},_7o={class:"bootstrap-styles col-1"},B7o={class:"bootstrap-styles w-100 d-flex justify-content-center align-items-center product-list-item__image"},D7o=["src","alt"],R7o={class:"bootstrap-styles col-9 ps-3"},$7o={class:"bootstrap-styles h-100 d-flex flex-column align-items-start justify-content-center"},A7o={key:0,class:"bootstrap-styles mb-1 product-list-item__not-available"},N7o={class:"bootstrap-styles mb-1 text-gray-600"},V7o={"data-test":"selected-product-list__item-id"},I7o={class:"bootstrap-styles","data-test":"selected-product-list__item-name"},P7o={class:"bootstrap-styles col-1"},M7o={class:"bootstrap-styles w-100 h-100 d-flex justify-content-end align-items-center pe-14"},O7o=Q({__name:"SelectedProductListItem",props:{index:{},product:{},deps:{}},emits:["remove"],setup(t,{emit:e}){const o=t,n={notAvailableLabel:x7o({localeKey:o.deps.localeKey}).notAvailableLabel},r=Se({isBrokenImage:!1}),i=e;return(s,a)=>(x(),B("div",F7o,[y("div",k7o,[y("div",L7o,[y("div",E7o,M(o.index),1)]),y("div",_7o,[y("div",B7o,[r.isBrokenImage?(x(),Z(I(Gte),{key:1})):(x(),B("img",{key:0,class:"bootstrap-styles mw-100 mh-100",src:o.product.PictureUrl,alt:o.product.Name,"data-test":"selected-product-list__item-image",onError:a[0]||(a[0]=()=>r.isBrokenImage=!0)},null,40,D7o))])]),y("div",R7o,[y("div",$7o,[o.product.IsAvailable?X("",!0):(x(),B("div",A7o,M(n.notAvailableLabel),1)),y("div",N7o,[a[2]||(a[2]=y("span",{class:"bootstrap-styles me-14"},"ID",-1)),y("span",V7o,M(o.product.ExternalProductId),1)]),y("div",I7o,M(o.product.Name),1)])]),y("div",P7o,[y("div",M7o,[y("button",{"data-test":"selected-product-list__item-remove-button",onClick:a[1]||(a[1]=l=>i("remove"))},[y("i",null,[R(I(T6))])])])])])]))}}),W7o=en(O7o,[["__scopeId","data-v-fb672885"]]),H7o={class:"bootstrap-styles d-flex flex-column scrollable"},z7o=Q({__name:"SelectedProductList",props:{selectedProductList:{},deps:{}},emits:["remove"],setup(t,{emit:e}){const o=t,n=e;return(r,i)=>(x(),B("div",H7o,[(x(!0),B(me,null,pt(o.selectedProductList,(s,a)=>(x(),Z(W7o,{key:s.InternalProductId,product:s,index:a+1,deps:o.deps.selectedProductListItemDeps,onRemove:l=>n("remove",s.InternalProductId)},null,8,["product","index","deps","onRemove"]))),128))]))}}),j7o=en(z7o,[["__scopeId","data-v-a11be8d9"]]),K7o={emptySelectedProductList:"The product list is currently empty."},U7o={emptySelectedProductList:"Список товаров пока что пуст."},q7o=Qo({en:K7o,ru:U7o}),G7o={class:"bootstrap-styles container-fluid g-0 h-100 empty-product-list"},J7o={class:"bootstrap-styles d-flex flex-column justify-content-center align-items-center h-100"},Y7o=Q({__name:"EmptyProductList",props:{deps:{}},setup(t){const e={emptySelectedProductList:q7o({localeKey:t.deps.localeKey}).emptySelectedProductList};return(o,n)=>(x(),B("div",G7o,[y("div",J7o,[n[0]||(n[0]=wp('<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)),y("div",null,M(e.emptySelectedProductList),1)])]))}}),Z7o={selectedProductListTitle:"Selected products",selectedProductListDeclensions:{one:"product",few:"products",many:"products"},clearListButton:"Clear list",loading:"Loading..."},X7o={selectedProductListTitle:"Выбранные товары",selectedProductListDeclensions:{one:"товар",few:"товара",many:"товаров"},clearListButton:"Очистить список",loading:"Загрузка..."},m1=Qo({en:Z7o,ru:X7o}),Q7o={class:"bootstrap-styles col-6 h-100"},e8o={key:0,class:"bootstrap-styles container-fluid g-0 px-11 py-9 d-flex flex-column h-100"},t8o={class:"bootstrap-styles mb-7 mt-1"},o8o={class:"bootstrap-styles d-flex justify-content-between align-items-center"},n8o={class:"bootstrap-styles fw-bold mb-0"},r8o={class:"bootstrap-styles d-flex align-items-center gap-5"},i8o={class:"bootstrap-styles text-gray-600"},s8o={key:1,class:"bootstrap-styles d-flex justify-content-center align-items-center h-100"},a8o=Q({__name:"SelectProductComponent",props:{deps:{},productIdList:{},stockSource:{}},emits:["remove","onProductListRemoved"],setup(t,{emit:e}){const o=t,n={selectedProductListTitle:m1({localeKey:o.deps.localeKey}).selectedProductListTitle,selectedProductListDeclensions:{one:m1({localeKey:o.deps.localeKey}).selectedProductListDeclensions.one,few:m1({localeKey:o.deps.localeKey}).selectedProductListDeclensions.few,many:m1({localeKey:o.deps.localeKey}).selectedProductListDeclensions.many},clearListButton:m1({localeKey:o.deps.localeKey}).clearListButton,loading:m1({localeKey:o.deps.localeKey}).loading},r=Se({productList:[],isLoaded:!1});wi(()=>{r.isLoaded=!1,o.deps.getProductsByIDs(o.productIdList,o.stockSource).then(s=>{r.productList=s,r.isLoaded=!0})}),Ct(()=>o.productIdList,()=>{r.isLoaded=!1,o.deps.getProductsByIDs(o.productIdList,o.stockSource).then(s=>{r.productList=s,r.isLoaded=!0})});const i=e;return(s,a)=>(x(),B("div",Q7o,[o.productIdList.length?(x(),B("div",e8o,[y("div",t8o,[y("div",o8o,[y("h6",n8o,M(n.selectedProductListTitle),1),y("div",r8o,[y("div",i8o,M(o.productIdList.length)+" "+M(I(dWe)({number:o.productIdList.length,titles:{one:n.selectedProductListDeclensions.one,few:n.selectedProductListDeclensions.few,many:n.selectedProductListDeclensions.many}})),1),y("button",{class:"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:a[0]||(a[0]=l=>i("onProductListRemoved"))},M(n.clearListButton),1)])])]),r.isLoaded?(x(),Z(j7o,{key:0,selectedProductList:r.productList,deps:o.deps.selectedProductListDeps,onRemove:a[1]||(a[1]=l=>i("remove",l))},null,8,["selectedProductList","deps"])):(x(),B("div",s8o,M(n.loading),1))])):(x(),Z(Y7o,{key:1,deps:o.deps.emptyProductListDeps},null,8,["deps"]))]))}}),l8o={title:"Select products",cancelButton:"Cancel",applyButton:"Apply"},u8o={title:"Выбрать товары",cancelButton:"Отмена",applyButton:"Применить"},W8=Qo({en:l8o,ru:u8o}),c8o={class:"bootstrap-styles container-fluid g-0 d-flex flex-column product-list-composer-modal-window__body"},d8o={class:"bootstrap-styles row g-0 flex-grow-1 h-100 d-flex"},m8o=Q({__name:"ProductListComposerModalWindow",props:{deps:{},stockSource:{},internalIProductDs:{}},emits:["cancel","apply"],setup(t,{emit:e}){const o=t,n=Se({selectedProductIDs:[...o.internalIProductDs]}),r={title:W8({localeKey:o.deps.localeKey}).title,cancelButton:W8({localeKey:o.deps.localeKey}).cancelButton,applyButton:W8({localeKey:o.deps.localeKey}).applyButton},i=()=>{s("cancel")},s=e;return(a,l)=>(x(),Z(I(oWe),{class:"product-list-composer-modal-window",headerText:r.title,onClose:l[5]||(l[5]=()=>i())},{body:gt(()=>[y("div",c8o,[y("div",d8o,[R(S7o,{excluded:n.selectedProductIDs,deps:o.deps.productSearchComponentDeps,stockSource:o.stockSource,onSelected:l[0]||(l[0]=u=>{n.selectedProductIDs=[...n.selectedProductIDs,...u]})},null,8,["excluded","deps","stockSource"]),R(a8o,{productIdList:n.selectedProductIDs,deps:o.deps.selectProductComponentDeps,stockSource:o.stockSource,onRemove:l[1]||(l[1]=u=>{n.selectedProductIDs=n.selectedProductIDs.filter(c=>c!==u)}),onOnProductListRemoved:l[2]||(l[2]=()=>n.selectedProductIDs=[])},null,8,["productIdList","deps","stockSource"])])])]),"footer-actions":gt(()=>[y("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:l[3]||(l[3]=bt(u=>i(),["stop"]))},M(r.cancelButton),1),y("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 bg-color-selected text-white cursor-pointer button__hover-blue-400",onClick:l[4]||(l[4]=bt(u=>s("apply",n.selectedProductIDs),["stop"]))},M(r.applyButton),1)]),_:1},8,["headerText"]))}}),Jte=en(m8o,[["__scopeId","data-v-97257ce7"]]),p8o={notAvailableLabel:"Not available"},h8o={notAvailableLabel:"Недоступен"},f8o=Qo({en:p8o,ru:h8o}),g8o={class:"bootstrap-styles container-fluid product-list-item"},y8o={class:"bootstrap-styles row g-0 py-1"},C8o={class:"bootstrap-styles col-1 m-auto"},b8o={class:"bootstrap-styles w-100 h-100 d-flex flex-column justify-content-start align-items-center px-14"},v8o={class:"product-list-item__sort-button"},S8o={"data-test":"product-list-item__index"},w8o={class:"product-list-item__sort-button"},T8o={class:"bootstrap-styles col-1 m-auto"},x8o={class:"bootstrap-styles w-100 d-flex justify-content-center align-items-center product-list-item__image"},F8o=["alt","src"],k8o={class:"bootstrap-styles col-9 ps-3"},L8o={class:"bootstrap-styles h-100 d-flex flex-column align-items-start justify-content-center"},E8o={key:0,class:"bootstrap-styles mb-1 product-list-item__not-available"},_8o={class:"bootstrap-styles mb-1 text-gray-600"},B8o={"data-test":"product-list-item__id"},D8o={class:"bootstrap-styles col-1"},R8o={class:"bootstrap-styles w-100 h-100 d-flex justify-content-end align-items-center pe-14"},$8o=Q({__name:"ProductListItem",props:{deps:{},index:{},product:{}},emits:["remove","moveUp","moveDown"],setup(t,{emit:e}){const o=t,n={notAvailableLabel:f8o({localeKey:o.deps.localeKey}).notAvailableLabel},r=Se({isBrokenImage:!1}),i=e;return(s,a)=>(x(),B("div",g8o,[y("div",y8o,[y("div",C8o,[y("div",b8o,[y("div",v8o,[y("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:a[0]||(a[0]=l=>i("moveUp"))},[R(I(rWe))])]),y("span",S8o,M(o.index),1),y("div",w8o,[y("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:a[1]||(a[1]=l=>i("moveDown"))},[R(I(iWe))])])])]),y("div",T8o,[y("div",x8o,[r.isBrokenImage?(x(),Z(I(Gte),{key:1})):(x(),B("img",{key:0,alt:o.product.Name,src:o.product.PictureUrl,class:"bootstrap-styles mw-100 mh-100","data-test":"product-list-item__image",onError:a[2]||(a[2]=()=>r.isBrokenImage=!0)},null,40,F8o))])]),y("div",k8o,[y("div",L8o,[o.product.IsAvailable?X("",!0):(x(),B("div",E8o,M(n.notAvailableLabel),1)),y("div",_8o,[a[4]||(a[4]=y("span",{class:"bootstrap-styles me-14"},"ID",-1)),y("span",B8o,M(o.product.ExternalProductId),1)]),y("div",{class:j(["bootstrap-styles",{"text-gray-600":!o.product.IsAvailable}]),"data-test":"product-list-item__name"},M(o.product.Name),3)])]),y("div",D8o,[y("div",R8o,[y("button",{"data-test":"product-list-item__remove-button",onClick:a[3]||(a[3]=l=>i("remove"))},[y("i",null,[R(I(T6))])])])])])]))}}),A8o=en($8o,[["__scopeId","data-v-6ca1fbf0"]]),N8o={class:"bootstrap-styles container-fluid scrollable","data-test":"product-list"},V8o={class:"bootstrap-styles d-flex flex-column"},I8o=Q({__name:"ProductList",props:{deps:{},productList:{}},emits:["updatedProductList"],setup(t,{emit:e}){const o=t,n=a=>{const l=o.productList.filter(u=>u.InternalProductId!==a);s("updatedProductList",l)},r=a=>{if(a===o.productList.length-1)return;const l=[...o.productList],[u]=l.splice(a,1);u&&(l.splice(a+1,0,u),s("updatedProductList",l))},i=a=>{if(a===0)return;const l=[...o.productList],[u]=l.splice(a,1);u&&(l.splice(a-1,0,u),s("updatedProductList",l))},s=e;return(a,l)=>(x(),B("div",N8o,[y("div",V8o,[(x(!0),B(me,null,pt(o.productList,(u,c)=>(x(),Z(A8o,{key:u.InternalProductId,deps:o.deps.productListItemDeps,index:c+1,product:u,"data-test":"product-list__item",onRemove:d=>n(u.InternalProductId),onMoveUp:d=>i(c),onMoveDown:d=>r(c)},null,8,["deps","index","product","onRemove","onMoveUp","onMoveDown"]))),128))])]))}}),Yte=en(I8o,[["__scopeId","data-v-6795d034"]]),P8o={relatedProductListDescription:"Select a product block to define which items will receive <b>related product</b> recommendations.<br>Note: Customers will see algorithmically generated <b>related products</b> in the email, not the specific products you select here.",productsSelectButton:"Select products"},M8o={relatedProductListDescription:"Выберите блок товаров, чтобы определить, к каким из них мы предложим <b>сопутствующие товары</b>.<br>Пожалуйста, учтите, что клиенты увидят в письме не выбранные товары, а товары рассчитанные по алгоритму <b>сопутствующие товары</b> к выбранным товарам.",productsSelectButton:"Выбрать товары"},bbe=Qo({en:P8o,ru:M8o}),O8o={class:"bootstrap-styles container-fluid mb-8"},W8o={class:"bootstrap-styles position-relative"},H8o={key:1,class:"bootstrap-styles container-fluid g-0 mb-8"},z8o={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"},j8o={class:"bootstrap-styles me-3"},K8o={class:"bootstrap-styles container-fluid mb-5"},U8o=Q({__name:"RelatedProductListShelfBuilder",props:{deps:{},relatedProductListShelf:{}},emits:["updatedRelatedProductListShelf","cancel"],setup(t,{emit:e}){const o=t,n=Se({isProductListComposerModalWindowShown:!1,productList:[],stockIdList:[],isProductListLoaded:!1,isStockLoaded:!1}),r=(a,l)=>{n.isProductListLoaded=!1,o.deps.getProductsByIDs(a,l).then(u=>{n.productList=u,n.isProductListLoaded=!0})};r(o.relatedProductListShelf.ProductInternalIDs,o.relatedProductListShelf.StockSource),o.deps.getAllStockIds().then(a=>{n.stockIdList=a,n.isStockLoaded=!0});const i={relatedProductListDescription:bbe({localeKey:o.deps.localeKey}).relatedProductListDescription,productsSelectButton:bbe({localeKey:o.deps.localeKey}).productsSelectButton},s=e;return(a,l)=>(x(),B(me,null,[R(I(yp),{class:j(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isStockLoaded}])},null,8,["class"]),y("div",{class:j(["bootstrap-styles container-fluid px-11 mt-8",{invisible:!n.isStockLoaded,"is-specific-stock-source":o.relatedProductListShelf.StockSource._t==="SpecificStockIdSource"}])},[y("div",O8o,[R(vc,{deps:o.deps.stockSelectorDeps,stockIdList:n.stockIdList,stockSource:o.relatedProductListShelf.StockSource,onOnStockSourceUpdated:l[0]||(l[0]=u=>{s("updatedRelatedProductListShelf",{...o.relatedProductListShelf,StockSource:u}),r(o.relatedProductListShelf.ProductInternalIDs,u)})},null,8,["deps","stockIdList","stockSource"])]),y("div",W8o,[R(I(yp),{class:j(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isProductListLoaded}])},null,8,["class"]),n.productList.length>0?(x(),Z(Yte,{key:0,class:j({"mb-8":n.productList.length,invisible:!n.isProductListLoaded}),deps:o.deps.productListDeps,productList:n.productList,onUpdatedProductList:l[1]||(l[1]=u=>{n.productList=u,s("updatedRelatedProductListShelf",{...o.relatedProductListShelf,ProductInternalIDs:u.map(c=>c.InternalProductId)})})},null,8,["class","deps","productList"])):(x(),B("div",H8o,[y("div",z8o,[y("div",j8o,[y("i",null,[R(I(qg))])]),Ee(y("div",null,null,512),[[I(hb),i.relatedProductListDescription]])])]))]),y("div",K8o,[y("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:l[2]||(l[2]=u=>n.isProductListComposerModalWindowShown=!0)},M(i.productsSelectButton),1)]),R(bc,{deps:o.deps.productListShelfLimiterDeps,productsAtLeast:o.relatedProductListShelf.AtLeast,productsLimit:o.relatedProductListShelf.Limit,"onUpdate:productsAtLeast":l[3]||(l[3]=u=>s("updatedRelatedProductListShelf",{...o.relatedProductListShelf,AtLeast:u})),"onUpdate:productsLimit":l[4]||(l[4]=u=>s("updatedRelatedProductListShelf",{...o.relatedProductListShelf,Limit:u}))},null,8,["deps","productsAtLeast","productsLimit"])],2),(x(),Z(Io,{to:"#app"},[n.isProductListComposerModalWindowShown?(x(),Z(Jte,{key:0,deps:o.deps.productListComposerModalWindowDeps,internalIProductDs:o.relatedProductListShelf.ProductInternalIDs,stockSource:o.relatedProductListShelf.StockSource,onApply:l[5]||(l[5]=u=>{n.isProductListComposerModalWindowShown=!1,s("updatedRelatedProductListShelf",{...o.relatedProductListShelf,ProductInternalIDs:u}),r(u,o.relatedProductListShelf.StockSource)}),onCancel:l[6]||(l[6]=()=>n.isProductListComposerModalWindowShown=!1)},null,8,["deps","internalIProductDs","stockSource"])):X("",!0)]))],64))}}),q8o=en(U8o,[["__scopeId","data-v-b313376b"]]),G8o={popularProductListDescription:"The email will display the most popular products in the store."},J8o={popularProductListDescription:"В письме будут отображаться самые популярные товары магазина."},Y8o=Qo({en:G8o,ru:J8o}),Z8o={class:"bootstrap-styles container-fluid mb-8"},X8o={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-center align-items-center text-center border-blue-selected mb-8 algorithm-description"},Q8o={class:"bootstrap-styles me-14"},e9o=Q({__name:"PopularProductListShelfBuilder",props:{deps:{},popularProductListShelf:{}},emits:["updatedPopularProductListShelf","cancel"],setup(t,{emit:e}){const o=t,n=Se({stockIdList:[],isStockLoaded:!1});n.isStockLoaded=!1,o.deps.getAllStockIds().then(s=>{n.stockIdList=s,n.isStockLoaded=!0});const r=q(()=>Y8o({localeKey:o.deps.localeKey})),i=e;return(s,a)=>(x(),B(me,null,[R(I(yp),{class:j(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isStockLoaded}])},null,8,["class"]),y("div",{class:j(["bootstrap-styles container-fluid px-11 mt-8 position-relative",{invisible:!n.isStockLoaded,"is-specific-stock-source":o.popularProductListShelf.StockSource._t==="SpecificStockIdSource"}])},[y("div",Z8o,[R(vc,{deps:o.deps.stockSelectorDeps,stockIdList:n.stockIdList,stockSource:o.popularProductListShelf.StockSource,onOnStockSourceUpdated:a[0]||(a[0]=l=>{i("updatedPopularProductListShelf",{...o.popularProductListShelf,StockSource:l})})},null,8,["deps","stockIdList","stockSource"])]),y("div",X8o,[y("div",null,[y("i",Q8o,[R(I(qg))]),To(" "+M(r.value.popularProductListDescription),1)])]),R(bc,{deps:o.deps.productListShelfLimiterDeps,productsAtLeast:o.popularProductListShelf.AtLeast,productsLimit:o.popularProductListShelf.Limit,"onUpdate:productsAtLeast":a[1]||(a[1]=l=>i("updatedPopularProductListShelf",{...o.popularProductListShelf,AtLeast:l})),"onUpdate:productsLimit":a[2]||(a[2]=l=>i("updatedPopularProductListShelf",{...o.popularProductListShelf,Limit:l}))},null,8,["deps","productsAtLeast","productsLimit"])],2)],64))}}),t9o=en(e9o,[["__scopeId","data-v-10c73a38"]]),o9o={productListDescription:"Select products to display",productsSelectButton:"Select products"},n9o={productListDescription:"Выберите товары для отображения",productsSelectButton:"Выбрать товары"},vbe=Qo({en:o9o,ru:n9o}),r9o={class:"bootstrap-styles container-fluid mb-8"},i9o={class:"bootstrap-styles position-relative"},s9o={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 text-center"},a9o={class:"bootstrap-styles me-14"},l9o={class:"bootstrap-styles container-fluid mb-5"},u9o=Q({__name:"ProductListShelfBuilder",props:{deps:{},productListShelf:{}},emits:["updatedProductListShelf","cancel"],setup(t,{emit:e}){const o=t,n=Se({productListComposerModalWindowIsShown:!1,productList:[],stockIdList:[],isProductListLoaded:!1,isStockLoaded:!1}),r=(a,l)=>{n.isProductListLoaded=!1,o.deps.getProductsByIDs(a,l).then(u=>{n.productList=u,n.isProductListLoaded=!0})};r(o.productListShelf.ProductInternalIDs,o.productListShelf.StockSource),o.deps.getAllStockIds().then(a=>{n.stockIdList=a,n.isStockLoaded=!0});const i={productListDescription:vbe({localeKey:o.deps.localeKey}).productListDescription,productsSelectButton:vbe({localeKey:o.deps.localeKey}).productsSelectButton},s=e;return(a,l)=>(x(),B(me,null,[R(I(yp),{class:j(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isStockLoaded}])},null,8,["class"]),y("div",{class:j(["bootstrap-styles container-fluid px-11 mt-8",{invisible:!n.isStockLoaded,"is-specific-stock-source":o.productListShelf.StockSource._t==="SpecificStockIdSource"}])},[y("div",r9o,[R(vc,{deps:o.deps.stockSelectorDeps,stockIdList:n.stockIdList,stockSource:o.productListShelf.StockSource,onOnStockSourceUpdated:l[0]||(l[0]=u=>{s("updatedProductListShelf",{...o.productListShelf,StockSource:u}),r(o.productListShelf.ProductInternalIDs,u)})},null,8,["deps","stockIdList","stockSource"])]),y("div",i9o,[R(I(yp),{class:j(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isProductListLoaded}])},null,8,["class"]),n.productList.length>0?(x(),Z(Yte,{key:0,class:j({"mb-8":n.productList.length,invisible:!n.isProductListLoaded}),deps:o.deps.productListDeps,productList:n.productList,onUpdatedProductList:l[1]||(l[1]=u=>{n.productList=u,s("updatedProductListShelf",{...o.productListShelf,ProductInternalIDs:u.map(c=>c.InternalProductId)})})},null,8,["class","deps","productList"])):(x(),B("div",s9o,[y("div",null,[y("i",a9o,[R(I(qg))]),Ee(y("span",null,null,512),[[I(hb),i.productListDescription]])])]))]),y("div",l9o,[y("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:l[2]||(l[2]=u=>n.productListComposerModalWindowIsShown=!0)},M(i.productsSelectButton),1)]),R(bc,{deps:o.deps.productListShelfLimiterDeps,productsAtLeast:o.productListShelf.AtLeast,productsLimit:o.productListShelf.Limit,"onUpdate:productsAtLeast":l[3]||(l[3]=u=>s("updatedProductListShelf",{...o.productListShelf,AtLeast:u})),"onUpdate:productsLimit":l[4]||(l[4]=u=>s("updatedProductListShelf",{...o.productListShelf,Limit:u}))},null,8,["deps","productsAtLeast","productsLimit"])],2),(x(),Z(Io,{to:"#app"},[n.productListComposerModalWindowIsShown?(x(),Z(Jte,{key:0,deps:o.deps.productListComposerModalWindowDeps,internalIProductDs:o.productListShelf.ProductInternalIDs,stockSource:o.productListShelf.StockSource,onApply:l[5]||(l[5]=u=>{n.productListComposerModalWindowIsShown=!1,s("updatedProductListShelf",{...o.productListShelf,ProductInternalIDs:u}),r(u,o.productListShelf.StockSource)}),onCancel:l[6]||(l[6]=()=>n.productListComposerModalWindowIsShown=!1)},null,8,["deps","internalIProductDs","stockSource"])):X("",!0)]))],64))}}),c9o=en(u9o,[["__scopeId","data-v-eca07399"]]),d9o={emptySearchCategoryListText:"Enter a category name to display results."},m9o={emptySearchCategoryListText:"Введите название категории, чтобы отобразились результаты."},p9o=Qo({en:d9o,ru:m9o}),h9o={class:"bootstrap-styles d-flex justify-content-center align-items-center py-7 h-100 overflow-hidden"},f9o={class:"bootstrap-styles empty-product-list d-flex flex-column justify-content-center align-items-center"},g9o={class:"bootstrap-styles text-gray-600 p-3"},y9o=Q({__name:"EmptySearchCategoryList",props:{deps:{}},setup(t){const e={emptySearchCategoryListText:p9o({localeKey:t.deps.localeKey}).emptySearchCategoryListText};return(o,n)=>(x(),B("div",h9o,[y("div",f9o,[n[0]||(n[0]=wp('<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)),y("div",g9o,M(e.emptySearchCategoryListText),1)])]))}}),C9o={class:"bootstrap-styles container-fluid category-list-item"},b9o={class:"bootstrap-styles row g-0 py-1"},v9o={class:"bootstrap-styles col-11"},S9o={class:"bootstrap-styles h-100 d-flex flex-column align-items-start justify-content-center"},w9o={class:"bootstrap-styles d-flex justify-content-start align-items-center mb-1"},T9o={class:"bootstrap-styles fw-bold me-1"},x9o={class:"bootstrap-styles text-gray-600"},F9o={class:"bootstrap-styles"},k9o={class:"bootstrap-styles col-1"},L9o={class:"bootstrap-styles w-100 h-100 d-flex justify-content-end align-items-center pe-14"},E9o=Q({__name:"SearchedCategoryListItem",props:{category:{}},emits:["addSearchedCategory"],setup(t,{emit:e}){const o=t,n=e;return(r,i)=>(x(),B("div",C9o,[y("div",b9o,[y("div",v9o,[y("div",S9o,[y("div",w9o,[y("div",T9o,M(o.category.Name),1),y("div",x9o,[i[1]||(i[1]=y("span",{class:"bootstrap-styles me-14"},"ID",-1)),y("span",null,M(o.category.CategoryId),1)])]),y("div",F9o,M(o.category.Path),1)])]),y("div",k9o,[y("div",L9o,[y("button",{onClick:i[0]||(i[0]=s=>n("addSearchedCategory"))},[y("i",null,[R(I(lWe))])])])])])]))}}),_9o=en(E9o,[["__scopeId","data-v-48b05e4b"]]),B9o={key:0,class:"bootstrap-styles d-flex flex-column scrollable"},D9o=Q({__name:"SearchedCategoryList",props:{searchedCategoryList:{},deps:{}},emits:["addSearchedCategory"],setup(t,{emit:e}){const o=t,n=e;return(r,i)=>o.searchedCategoryList.length?(x(),B("div",B9o,[(x(!0),B(me,null,pt(o.searchedCategoryList,(s,a)=>(x(),Z(_9o,{key:a,category:s,onAddSearchedCategory:l=>n("addSearchedCategory",s)},null,8,["category","onAddSearchedCategory"]))),128))])):(x(),Z(y9o,{key:1,deps:o.deps.emptySearchCategoryListDeps},null,8,["deps"]))}}),R9o=en(D9o,[["__scopeId","data-v-9428560f"]]),$9o={searchInputPlaceholder:"Name of one category or list of IDs",transferAllButton:"Add all"},A9o={searchInputPlaceholder:"Название одной категории или список ID",transferAllButton:"Перенести все"},Sbe=Qo({en:$9o,ru:A9o}),N9o={class:"bootstrap-styles row g-0 mb-7"},V9o={class:"bootstrap-styles col-8 d-flex justify-content-between align-items-center"},I9o={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex w-100"},P9o={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},M9o=["placeholder"],O9o={class:"bootstrap-styles ps-1 me-7"},W9o={key:0,class:"bootstrap-styles d-flex justify-content-center align-items-center icon-fill"},H9o={class:"bootstrap-styles col-4"},z9o={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1 icon-stroke"},j9o=Q({__name:"CategorySearchBar",props:{isButtonAddAllEnable:{type:Boolean},isLoaded:{type:Boolean},deps:{}},emits:["search","addAllFoundCategories"],setup(t,{emit:e}){const o=t,n={searchInputPlaceholder:Sbe({localeKey:o.deps.localeKey}).searchInputPlaceholder,transferAllButton:Sbe({localeKey:o.deps.localeKey}).transferAllButton},r=Se({phrase:""}),i=()=>{r.phrase.length&&s("search",r.phrase)},s=e;return(a,l)=>(x(),B("div",N9o,[y("div",V9o,[y("div",I9o,[y("i",P9o,[R(I(uWe))]),y("form",{class:"bootstrap-styles w-100 search-form",onSubmit:bt(i,["prevent"])},[Ee(y("input",{"onUpdate:modelValue":l[0]||(l[0]=u=>r.phrase=u),type:"text",class:"bootstrap-styles w-100",placeholder:n.searchInputPlaceholder,required:""},null,8,M9o),[[cd,r.phrase]])],32),Ee(y("button",{class:"bootstrap-styles px-14",onClick:l[1]||(l[1]=u=>r.phrase="")},[...l[3]||(l[3]=[y("i",{class:"bootstrap-styles d-flex justify-content-center align-items-center icon-hover-stroke"},[y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 16 16",fill:"none"},[y("path",{d:"M3 3L13 13",stroke:"var(--gray-500)"}),y("path",{d:"M13 3L3 13",stroke:"var(--gray-500)"})])],-1)])],512),[[I0,r.phrase.length>0]])]),y("div",O9o,[y("button",{class:j([{"button__active-700":r.phrase.length,button__locked:!o.isLoaded||!r.phrase.length},"bootstrap-styles d-flex justify-content-center align-items-center py-1 px-3 rounded-2 button__disabled-700"]),onClick:i},[o.isLoaded?(x(),B("i",W9o,[R(I(cWe))])):(x(),Z(I(sWe),{key:1}))],2)])]),y("div",H9o,[y("button",{class:j([{"button__active-100 button__hover-blue-100":o.isButtonAddAllEnable,button__locked:!o.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:l[2]||(l[2]=()=>s("addAllFoundCategories"))},[y("i",z9o,[R(I(aWe))]),To(" "+M(n.transferAllButton),1)],2)])]))}}),K9o=en(j9o,[["__scopeId","data-v-a9f4756a"]]),U9o={searching:"Search..."},q9o={searching:"Поиск..."},G9o=Qo({en:U9o,ru:q9o}),J9o={class:"bootstrap-styles col-6 border-end h-100"},Y9o={class:"bootstrap-styles container-fluid g-0 px-11 py-8 d-flex flex-column h-100"},Z9o={key:1,class:"bootstrap-styles d-flex justify-content-center align-items-center h-100"},X9o=Q({__name:"CategorySearchComponent",props:{deps:{},excluded:{}},emits:["selected"],setup(t,{emit:e}){const o=t,n={searching:G9o({localeKey:o.deps.localeKey}).searching},r=l=>l.filter(u=>o.excluded.every(c=>u.CategoryId!==c)),i=Se({isLoaded:!0,foundCategories:[]}),s=qOe(l=>{if(i.isLoaded=!1,l.split(",").every(u=>!isNaN(Number(u.trim())))){const u=l.split(",").map(Number);o.deps.getCategoriesByIDs(u).then(c=>{i.foundCategories=c,i.isLoaded=!0})}else o.deps.findCategoriesByName(l).then(u=>{i.foundCategories=u,i.isLoaded=!0})},50),a=e;return(l,u)=>(x(),B("div",J9o,[y("div",Y9o,[R(K9o,{isButtonAddAllEnable:r(i.foundCategories).length>0,isLoaded:i.isLoaded,deps:o.deps.categorySearchBarDeps,onAddAllFoundCategories:u[0]||(u[0]=()=>{a("selected",r(i.foundCategories).map(c=>c.CategoryId))}),onSearch:u[1]||(u[1]=c=>I(s)(c))},null,8,["isButtonAddAllEnable","isLoaded","deps"]),i.isLoaded?(x(),Z(R9o,{key:0,searchedCategoryList:r(i.foundCategories),deps:o.deps.searchedCategoryListDeps,onAddSearchedCategory:u[2]||(u[2]=c=>a("selected",[c.CategoryId]))},null,8,["searchedCategoryList","deps"])):(x(),B("div",Z9o,M(n.searching),1))])]))}}),Q9o={class:"bootstrap-styles container-fluid category-list-item"},ezo={class:"bootstrap-styles row g-0 py-1"},tzo={class:"bootstrap-styles col-11"},ozo={class:"bootstrap-styles h-100 d-flex flex-column align-items-start justify-content-center"},nzo={class:"bootstrap-styles d-flex justify-content-start align-items-center mb-1"},rzo={class:"bootstrap-styles fw-bold me-1"},izo={class:"bootstrap-styles text-gray-600"},szo={class:"bootstrap-styles"},azo={class:"bootstrap-styles col-1"},lzo={class:"bootstrap-styles w-100 h-100 d-flex justify-content-end align-items-center pe-14"},uzo=Q({__name:"SelectedCategoryListItem",props:{category:{}},emits:["remove"],setup(t,{emit:e}){const o=t,n=e;return(r,i)=>(x(),B("div",Q9o,[y("div",ezo,[y("div",tzo,[y("div",ozo,[y("div",nzo,[y("div",rzo,M(o.category.Name),1),y("div",izo,[i[1]||(i[1]=y("span",{class:"bootstrap-styles me-14"},"ID",-1)),y("span",null,M(o.category.CategoryId),1)])]),y("div",szo,M(o.category.Path),1)])]),y("div",azo,[y("div",lzo,[y("button",{onClick:i[0]||(i[0]=s=>n("remove"))},[y("i",null,[R(I(T6))])])])])])]))}}),czo=en(uzo,[["__scopeId","data-v-70160e74"]]),dzo={class:"bootstrap-styles d-flex flex-column scrollable"},mzo=Q({__name:"SelectedCategoryList",props:{selectedCategoryList:{},deps:{}},emits:["remove"],setup(t,{emit:e}){const o=t,n=e;return(r,i)=>(x(),B("div",dzo,[(x(!0),B(me,null,pt(o.selectedCategoryList,(s,a)=>(x(),Z(czo,{key:a,category:s,onRemove:l=>n("remove",s.CategoryId)},null,8,["category","onRemove"]))),128))]))}}),pzo=en(mzo,[["__scopeId","data-v-5b557c28"]]),hzo={emptySelectedCategoryListText:"The category list is currently empty."},fzo={emptySelectedCategoryListText:"Список категорий пока что пуст."},gzo=Qo({en:hzo,ru:fzo}),yzo={class:"bootstrap-styles container-fluid g-0 h-100 empty-product-list"},Czo={class:"bootstrap-styles d-flex flex-column justify-content-center align-items-center h-100"},bzo=Q({__name:"EmptyCategoryList",props:{deps:{}},setup(t){const e={emptySelectedCategoryListText:gzo({localeKey:t.deps.localeKey}).emptySelectedCategoryListText};return(o,n)=>(x(),B("div",yzo,[y("div",Czo,[n[0]||(n[0]=wp('<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)),y("div",null,M(e.emptySelectedCategoryListText),1)])]))}}),vzo={selectedCategoryListTitleText:"Category list",selectedCategoryListDeclensions:{one:"category",few:"categories",many:"categories"},loading:"Loading..."},Szo={selectedCategoryListTitleText:"Список категорий",selectedCategoryListDeclensions:{one:"категория",few:"категории",many:"категорий"},loading:"Загрузка..."},Rx=Qo({en:vzo,ru:Szo}),wzo={class:"bootstrap-styles col-6 h-100"},Tzo={key:0,class:"bootstrap-styles container-fluid g-0 px-11 py-9 d-flex flex-column h-100"},xzo={class:"bootstrap-styles mb-7 mt-1"},Fzo={class:"bootstrap-styles d-flex justify-content-between align-items-center"},kzo={class:"bootstrap-styles fw-bold mb-0"},Lzo={class:"bootstrap-styles text-gray-600"},Ezo={key:1,class:"bootstrap-styles d-flex justify-content-center align-items-center h-100"},_zo=Q({__name:"SelectCategoryComponent",props:{deps:{},categoryIdList:{}},emits:["remove"],setup(t,{emit:e}){const o=t,n={selectedCategoryListTitleText:Rx({localeKey:o.deps.localeKey}).selectedCategoryListTitleText,selectedCategoryListDeclensions:{one:Rx({localeKey:o.deps.localeKey}).selectedCategoryListDeclensions.one,few:Rx({localeKey:o.deps.localeKey}).selectedCategoryListDeclensions.few,many:Rx({localeKey:o.deps.localeKey}).selectedCategoryListDeclensions.many},loading:Rx({localeKey:o.deps.localeKey}).loading},r=Se({isLoaded:!0,categoryList:[]});Pn(()=>{r.isLoaded=!1,o.deps.getCategoriesByIDs(o.categoryIdList).then(s=>{r.categoryList=s,r.isLoaded=!0})});const i=e;return(s,a)=>(x(),B("div",wzo,[o.categoryIdList.length?(x(),B("div",Tzo,[y("div",xzo,[y("div",Fzo,[y("h6",kzo,M(n.selectedCategoryListTitleText),1),y("div",Lzo,M(o.categoryIdList.length)+" "+M(I(dWe)({number:o.categoryIdList.length,titles:{one:n.selectedCategoryListDeclensions.one,few:n.selectedCategoryListDeclensions.few,many:n.selectedCategoryListDeclensions.many}})),1)])]),r.isLoaded?(x(),Z(pzo,{key:0,selectedCategoryList:r.categoryList,deps:o.deps.selectedCategoryListDeps,onRemove:a[0]||(a[0]=l=>i("remove",l))},null,8,["selectedCategoryList","deps"])):(x(),B("div",Ezo,M(n.loading),1))])):(x(),Z(bzo,{key:1,deps:o.deps.emptyCategoryListDeps},null,8,["deps"]))]))}}),Bzo={title:"Select categories",cancelButton:"Cancel",applyButton:"Apply"},Dzo={title:"Выбрать категории",cancelButton:"Отмена",applyButton:"Применить"},H8=Qo({en:Bzo,ru:Dzo}),Rzo={class:"bootstrap-styles container-fluid g-0 d-flex flex-column category-list-composer-modal-window__body"},$zo={class:"bootstrap-styles row g-0 flex-grow-1 h-100 d-flex"},Azo=Q({__name:"CategoryListComposerModalWindow",props:{deps:{},categoryIdList:{}},emits:["cancel","apply"],setup(t,{emit:e}){const o=t,n={title:H8({localeKey:o.deps.localeKey}).title,cancelButton:H8({localeKey:o.deps.localeKey}).cancelButton,applyButton:H8({localeKey:o.deps.localeKey}).applyButton},r=Se({selectedCategoryIdList:[...o.categoryIdList]}),i=()=>{s("cancel")},s=e;return(a,l)=>(x(),Z(I(oWe),{class:"category-list-composer-modal-window",headerText:n.title,onClose:l[4]||(l[4]=()=>i())},{body:gt(()=>[y("div",Rzo,[y("div",$zo,[R(X9o,{deps:o.deps.categorySearchComponentDeps,excluded:r.selectedCategoryIdList,onSelected:l[0]||(l[0]=u=>{r.selectedCategoryIdList=[...r.selectedCategoryIdList,...u]})},null,8,["deps","excluded"]),R(_zo,{deps:o.deps.selectCategoryComponentDeps,categoryIdList:r.selectedCategoryIdList,onRemove:l[1]||(l[1]=u=>{r.selectedCategoryIdList=r.selectedCategoryIdList.filter(c=>c!==u)})},null,8,["deps","categoryIdList"])])])]),"footer-actions":gt(()=>[y("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:l[2]||(l[2]=bt(u=>i(),["stop"]))},M(n.cancelButton),1),y("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 bg-color-selected text-white cursor-pointer button__hover-blue-400",onClick:l[3]||(l[3]=bt(u=>s("apply",r.selectedCategoryIdList),["stop"]))},M(n.applyButton),1)]),_:1},8,["headerText"]))}}),Nzo=en(Azo,[["__scopeId","data-v-4fd2fc41"]]),Vzo={class:"bootstrap-styles container-fluid category-list-item"},Izo={class:"bootstrap-styles row g-0 py-1"},Pzo={class:"bootstrap-styles col-11"},Mzo={class:"bootstrap-styles h-100 d-flex flex-column align-items-start justify-content-center"},Ozo={class:"bootstrap-styles d-flex justify-content-start align-items-center mb-1"},Wzo={class:"bootstrap-styles fw-bold me-1"},Hzo={class:"bootstrap-styles text-gray-600"},zzo={class:"bootstrap-styles"},jzo={class:"bootstrap-styles col-1"},Kzo={class:"bootstrap-styles w-100 h-100 d-flex justify-content-end align-items-center pe-14"},Uzo=Q({__name:"CategoryListItem",props:{category:{}},emits:["removeItem"],setup(t,{emit:e}){const o=t,n=e;return(r,i)=>(x(),B("div",Vzo,[y("div",Izo,[y("div",Pzo,[y("div",Mzo,[y("div",Ozo,[y("div",Wzo,M(o.category.Name),1),y("div",Hzo,[i[1]||(i[1]=y("span",{class:"bootstrap-styles me-14"},"ID",-1)),y("span",null,M(o.category.CategoryId),1)])]),y("div",zzo,M(o.category.Path),1)])]),y("div",jzo,[y("div",Kzo,[y("button",{onClick:i[0]||(i[0]=s=>n("removeItem"))},[y("i",null,[R(I(T6))])])])])])]))}}),qzo=en(Uzo,[["__scopeId","data-v-2b7154c9"]]),Gzo={class:"bootstrap-styles container-fluid scrollable"},Jzo={class:"bootstrap-styles d-flex flex-column"},Yzo=Q({__name:"CategoryList",props:{categoryList:{}},emits:["updatedCategoryList"],setup(t,{emit:e}){const o=t,n=i=>{const s=o.categoryList.filter(a=>a.CategoryId!==i);r("updatedCategoryList",s)},r=e;return(i,s)=>(x(),B("div",Gzo,[y("div",Jzo,[(x(!0),B(me,null,pt(o.categoryList,(a,l)=>(x(),Z(qzo,{key:l,category:a,onRemoveItem:u=>n(a.CategoryId)},null,8,["category","onRemoveItem"]))),128))])]))}}),Zzo=en(Yzo,[["__scopeId","data-v-103286e1"]]),Xzo={popularFromCategoryListDescription:"Select a block of categories to define which ones we will offer <b>popular products</b> for.<br>Please note that customers will see additional products in the email that match your selection.",categorySelectButton:"Select categories"},Qzo={popularFromCategoryListDescription:"Выберите блок категорий, чтобы определить, к каким из них мы предложим <b>популярные товары</b>.<br>Пожалуйста, учтите, что клиенты увидят в письме дополнительные товары, соответствующие вашему выбору.",categorySelectButton:"Выбрать категории"},wbe=Qo({en:Xzo,ru:Qzo}),ejo={class:"bootstrap-styles container-fluid mb-8"},tjo={class:"bootstrap-styles position-relative"},ojo={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"},njo={class:"bootstrap-styles me-3"},rjo={class:"bootstrap-styles container-fluid mb-5"},ijo=Q({__name:"PopularFromCategoryListShelfBuilder",props:{deps:{},popularFromCategoryListShelf:{}},emits:["updatedPopularFromCategoryListShelf","cancel"],setup(t,{emit:e}){const o=t,n=Se({isCategoryListComposerModalWindowShown:!1,categoryList:[],stockIdList:[],isCategoryListLoaded:!1,isStockLoaded:!1}),r=a=>{n.isCategoryListLoaded=!1,o.deps.getCategoriesByIDs(a).then(l=>{n.categoryList=l,n.isCategoryListLoaded=!0})};r(o.popularFromCategoryListShelf.CategoryIdList),o.deps.getAllStockIds().then(a=>{n.stockIdList=a,n.isStockLoaded=!0});const i={popularFromCategoryListDescription:wbe({localeKey:o.deps.localeKey}).popularFromCategoryListDescription,categorySelectButton:wbe({localeKey:o.deps.localeKey}).categorySelectButton},s=e;return(a,l)=>(x(),B(me,null,[R(I(yp),{class:j(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isStockLoaded}])},null,8,["class"]),y("div",{class:j(["bootstrap-styles container-fluid px-11 mt-8",{invisible:!n.isStockLoaded,"is-specific-stock-source":o.popularFromCategoryListShelf.StockSource._t==="SpecificStockIdSource"}])},[y("div",ejo,[R(vc,{deps:o.deps.stockSelectorDeps,stockIdList:n.stockIdList,stockSource:o.popularFromCategoryListShelf.StockSource,onOnStockSourceUpdated:l[0]||(l[0]=u=>{s("updatedPopularFromCategoryListShelf",{...o.popularFromCategoryListShelf,StockSource:u})})},null,8,["deps","stockIdList","stockSource"])]),y("div",tjo,[R(I(yp),{class:j(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isCategoryListLoaded}])},null,8,["class"]),n.categoryList.length>0?(x(),Z(Zzo,{key:0,class:j({"mb-8":n.categoryList.length,invisible:!n.isCategoryListLoaded}),categoryList:n.categoryList,onUpdatedCategoryList:l[1]||(l[1]=u=>{n.categoryList=u,s("updatedPopularFromCategoryListShelf",{...o.popularFromCategoryListShelf,CategoryIdList:u.map(c=>c.CategoryId)})})},null,8,["class","categoryList"])):(x(),B("div",ojo,[y("div",null,[y("i",njo,[R(I(qg))])]),Ee(y("div",null,null,512),[[I(hb),i.popularFromCategoryListDescription]])]))]),y("div",rjo,[y("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:l[2]||(l[2]=u=>n.isCategoryListComposerModalWindowShown=!0)},M(i.categorySelectButton),1)]),R(bc,{deps:o.deps.productListShelfLimiterDeps,productsAtLeast:o.popularFromCategoryListShelf.AtLeast,productsLimit:o.popularFromCategoryListShelf.Limit,"onUpdate:productsAtLeast":l[3]||(l[3]=u=>s("updatedPopularFromCategoryListShelf",{...o.popularFromCategoryListShelf,AtLeast:u})),"onUpdate:productsLimit":l[4]||(l[4]=u=>s("updatedPopularFromCategoryListShelf",{...o.popularFromCategoryListShelf,Limit:u}))},null,8,["deps","productsAtLeast","productsLimit"])],2),(x(),Z(Io,{to:"#app"},[n.isCategoryListComposerModalWindowShown?(x(),Z(Nzo,{key:0,deps:o.deps.categoryListComposerModalWindowDeps,categoryIdList:o.popularFromCategoryListShelf.CategoryIdList,onApply:l[5]||(l[5]=u=>{n.isCategoryListComposerModalWindowShown=!1,s("updatedPopularFromCategoryListShelf",{...o.popularFromCategoryListShelf,CategoryIdList:u}),r(u)}),onCancel:l[6]||(l[6]=()=>n.isCategoryListComposerModalWindowShown=!1)},null,8,["deps","categoryIdList"])):X("",!0)]))],64))}}),sjo=en(ijo,[["__scopeId","data-v-6b210059"]]),ajo={alternativeProductListDescription:"Select a block of products to define which ones we will offer <b>alternative products</b> for.<br>Please note that customers will see in the email not the selected products, but the products calculated by the <b>alternative products</b> algorithm for the selected products.",productsSelectButton:"Select products"},ljo={alternativeProductListDescription:"Выберите блок товаров, чтобы определить, к каким из них мы предложим <b>альтернативные товары</b>.<br>Пожалуйста, учтите, что клиенты увидят в письме не выбранные товары, а товары рассчитанные по алгоритму <b>альтернативные товары</b> к выбранным товарам.",productsSelectButton:"Выбрать товары"},Tbe=Qo({en:ajo,ru:ljo}),ujo={class:"bootstrap-styles container-fluid mb-8"},cjo={class:"bootstrap-styles position-relative"},djo={key:1,class:"bootstrap-styles container-fluid g-0 mb-8"},mjo={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"},pjo={class:"bootstrap-styles me-3"},hjo={class:"bootstrap-styles container-fluid mb-5"},fjo=Q({__name:"AlternativeProductListShelfBuilder",props:{deps:{},alternativeProductListShelf:{}},emits:["updatedAlternativeProductListShelf","cancel"],setup(t,{emit:e}){const o=t,n=Se({isProductListComposerModalWindowShown:!1,productList:[],stockIdList:[],isProductListLoaded:!1,isStockLoaded:!1}),r=(a,l)=>{n.isProductListLoaded=!1,o.deps.getProductsByIDs(a,l).then(u=>{n.productList=u,n.isProductListLoaded=!0})};r(o.alternativeProductListShelf.ProductInternalIDs,o.alternativeProductListShelf.StockSource),o.deps.getAllStockIds().then(a=>{n.stockIdList=a,n.isStockLoaded=!0});const i={alternativeProductListDescription:Tbe({localeKey:o.deps.localeKey}).alternativeProductListDescription,productsSelectButton:Tbe({localeKey:o.deps.localeKey}).productsSelectButton},s=e;return(a,l)=>(x(),B(me,null,[R(I(yp),{class:j(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isStockLoaded}])},null,8,["class"]),y("div",{class:j(["bootstrap-styles container-fluid px-11 mt-8",{invisible:!n.isStockLoaded,"is-specific-stock-source":o.alternativeProductListShelf.StockSource._t==="SpecificStockIdSource"}])},[y("div",ujo,[R(vc,{deps:o.deps.stockSelectorDeps,stockIdList:n.stockIdList,stockSource:o.alternativeProductListShelf.StockSource,onOnStockSourceUpdated:l[0]||(l[0]=u=>{s("updatedAlternativeProductListShelf",{...o.alternativeProductListShelf,StockSource:u}),r(o.alternativeProductListShelf.ProductInternalIDs,u)})},null,8,["deps","stockIdList","stockSource"])]),y("div",cjo,[R(I(yp),{class:j(["bootstrap-styles position-absolute top-50 start-50",{invisible:n.isProductListLoaded}])},null,8,["class"]),n.productList.length>0?(x(),Z(Yte,{key:0,class:j({"mb-8":n.productList.length,invisible:!n.isProductListLoaded}),deps:o.deps.productListDeps,productList:n.productList,onUpdatedProductList:l[1]||(l[1]=u=>{n.productList=u,s("updatedAlternativeProductListShelf",{...o.alternativeProductListShelf,ProductInternalIDs:u.map(c=>c.InternalProductId)})})},null,8,["class","deps","productList"])):(x(),B("div",djo,[y("div",mjo,[y("div",pjo,[y("i",null,[R(I(qg))])]),Ee(y("div",null,null,512),[[I(hb),i.alternativeProductListDescription]])])]))]),y("div",hjo,[y("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:l[2]||(l[2]=u=>n.isProductListComposerModalWindowShown=!0)},M(i.productsSelectButton),1)]),R(bc,{deps:o.deps.productListShelfLimiterDeps,productsAtLeast:o.alternativeProductListShelf.AtLeast,productsLimit:o.alternativeProductListShelf.Limit,"onUpdate:productsAtLeast":l[3]||(l[3]=u=>s("updatedAlternativeProductListShelf",{...o.alternativeProductListShelf,AtLeast:u})),"onUpdate:productsLimit":l[4]||(l[4]=u=>s("updatedAlternativeProductListShelf",{...o.alternativeProductListShelf,Limit:u}))},null,8,["deps","productsAtLeast","productsLimit"])],2),(x(),Z(Io,{to:"#app"},[n.isProductListComposerModalWindowShown?(x(),Z(Jte,{key:0,deps:o.deps.productListComposerModalWindowDeps,internalIProductDs:o.alternativeProductListShelf.ProductInternalIDs,stockSource:o.alternativeProductListShelf.StockSource,onApply:l[5]||(l[5]=u=>{n.isProductListComposerModalWindowShown=!1,s("updatedAlternativeProductListShelf",{...o.alternativeProductListShelf,ProductInternalIDs:u}),r(u,o.alternativeProductListShelf.StockSource)}),onCancel:l[6]||(l[6]=()=>n.isProductListComposerModalWindowShown=!1)},null,8,["deps","internalIProductDs","stockSource"])):X("",!0)]))],64))}}),gjo=en(fjo,[["__scopeId","data-v-bbf4d1cd"]]),yjo=qO,pWe=t=>oLo.Some(jOe(t.dataSourceExpression).Match({AbandonedViewNAProductList:({StockSource:e})=>({AbandonedViewNAProductListShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Eu(e)}}),RelatedProductsForAbandonedViewNAProductList:({StockSource:e})=>({RelatedProductsForAbandonedViewNAListShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Eu(e)}}),AlternativeProductsForAbandonedViewNAProductList:({StockSource:e})=>({AlternativeProductsForAbandonedViewNAListShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Eu(e)}}),ProductList:({ProductIds:e,StockSource:o})=>({ProductListShelf:{ProductInternalIDs:e,Limit:t.limit,AtLeast:t.atLeast,StockSource:Eu(o)}}),RelatedProductsFor:({ProductIds:e,StockSource:o})=>({RelatedProductsForProductListShelf:{ProductInternalIDs:e,Limit:t.limit,AtLeast:t.atLeast,StockSource:Eu(o)}}),AlternativeProductsFor:({ProductIds:e,StockSource:o})=>({AlternativeProductsForProductListShelf:{ProductInternalIDs:e,Limit:t.limit,AtLeast:t.atLeast,StockSource:Eu(o)}}),PopularProductsInCategories:({CategoryIds:e,StockSource:o})=>({PopularProductsInCategoryListShelf:{CategoryIdList:e,Limit:t.limit,AtLeast:t.atLeast,StockSource:Eu(o)}}),Popular:({StockSource:e})=>({PopularProductsShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Eu(e)}}),Latest:({StockSource:e})=>({LatestProductsShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Eu(e)}}),SaleByPopular:({StockSource:e})=>({SaleByPopularProductsShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Eu(e)}}),SaleByLatest:({StockSource:e})=>({SaleByLatestProductsShelf:{Limit:t.limit,AtLeast:t.atLeast,StockSource:Eu(e)}})})),Cjo=t=>yjo(t).Match({AbandonedViewNAProductListShelf:({AtLeast:e,Limit:o,StockSource:n})=>_u({limit:o,atLeast:e,dataSource:{AbandonedViewNAProductList:{StockSource:Bu(n)}}}),RelatedProductsForAbandonedViewNAListShelf:({AtLeast:e,Limit:o,StockSource:n})=>_u({limit:o,atLeast:e,dataSource:{RelatedProductsForAbandonedViewNAProductList:{StockSource:Bu(n)}}}),AlternativeProductsForAbandonedViewNAListShelf:({AtLeast:e,Limit:o,StockSource:n})=>_u({limit:o,atLeast:e,dataSource:{AlternativeProductsForAbandonedViewNAProductList:{StockSource:Bu(n)}}}),ProductListShelf:({ProductInternalIDs:e,AtLeast:o,Limit:n,StockSource:r})=>_u({limit:n,atLeast:o,dataSource:{ProductList:{ProductIds:e,StockSource:Bu(r)}}}),RelatedProductsForProductListShelf:({ProductInternalIDs:e,AtLeast:o,Limit:n,StockSource:r})=>_u({limit:n,atLeast:o,dataSource:{RelatedProductsFor:{ProductIds:e,StockSource:Bu(r)}}}),AlternativeProductsForProductListShelf:({ProductInternalIDs:e,AtLeast:o,Limit:n,StockSource:r})=>_u({limit:n,atLeast:o,dataSource:{AlternativeProductsFor:{ProductIds:e,StockSource:Bu(r)}}}),PopularProductsInCategoryListShelf:({CategoryIdList:e,AtLeast:o,Limit:n,StockSource:r})=>_u({limit:n,atLeast:o,dataSource:{PopularProductsInCategories:{CategoryIds:e,StockSource:Bu(r)}}}),PopularProductsShelf:({AtLeast:e,Limit:o,StockSource:n})=>_u({limit:o,atLeast:e,dataSource:{Popular:{StockSource:Bu(n)}}}),LatestProductsShelf:({AtLeast:e,Limit:o,StockSource:n})=>_u({limit:o,atLeast:e,dataSource:{Latest:{StockSource:Bu(n)}}}),SaleByPopularProductsShelf:({AtLeast:e,Limit:o,StockSource:n})=>_u({limit:o,atLeast:e,dataSource:{SaleByPopular:{StockSource:Bu(n)}}}),SaleByLatestProductsShelf:({AtLeast:e,Limit:o,StockSource:n})=>_u({limit:o,atLeast:e,dataSource:{SaleByLatest:{StockSource:Bu(n)}}})}),bjo={abandonedViewNAProductListDescription:"The email will display products from the abandoned view NA"},vjo={abandonedViewNAProductListDescription:"В письме будут отображаться товары из брошенного просмотра NA"},Sjo=n6({en:bjo,ru:vjo}),wjo={class:"bootstrap-styles container-fluid mb-8"},Tjo={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"},xjo={class:"bootstrap-styles me-3"},Fjo=Q({__name:"AbandonedViewNAProductListShelfBuilder",props:{abandonedViewNAProductListShelf:{},deps:{}},emits:["updatedAbandonedViewNAProductListShelf","cancel"],setup(t,{emit:e}){const o=t,n=Se({stockIdList:[]});o.deps.getAllStockIds().then(s=>{n.stockIdList=s});const r={abandonedViewNAProductListDescription:Sjo({localeKey:o.deps.localeKey}).abandonedViewNAProductListDescription},i=e;return(s,a)=>(x(),B("div",{class:j(["bootstrap-styles container-fluid px-11 mt-8",{"is-specific-stock-source":o.abandonedViewNAProductListShelf.StockSource._t==="SpecificStockIdSource"}])},[y("div",wjo,[R(I(vc),{deps:o.deps.stockSelectorDeps,stockIdList:n.stockIdList,stockSource:o.abandonedViewNAProductListShelf.StockSource,onOnStockSourceUpdated:a[0]||(a[0]=l=>{i("updatedAbandonedViewNAProductListShelf",{...o.abandonedViewNAProductListShelf,StockSource:l})})},null,8,["deps","stockIdList","stockSource"])]),y("div",Tjo,[y("div",xjo,[y("i",null,[R(I(Kee))])]),y("div",null,M(r.abandonedViewNAProductListDescription),1)]),R(I(bc),{deps:o.deps.productListShelfLimiterDeps,productsAtLeast:o.abandonedViewNAProductListShelf.AtLeast,productsLimit:o.abandonedViewNAProductListShelf.Limit,"onUpdate:productsAtLeast":a[1]||(a[1]=l=>i("updatedAbandonedViewNAProductListShelf",{...o.abandonedViewNAProductListShelf,AtLeast:l})),"onUpdate:productsLimit":a[2]||(a[2]=l=>i("updatedAbandonedViewNAProductListShelf",{...o.abandonedViewNAProductListShelf,Limit:l}))},null,8,["deps","productsAtLeast","productsLimit"])],2))}}),x6=(t,e)=>{const o=t.__vccOpts||t;for(const[n,r]of e)o[n]=r;return o},kjo=x6(Fjo,[["__scopeId","data-v-8202f189"]]),Ljo={alternativeProductsForAbandonedViewNAProductListDescription:"The email will display alternative recommendations for abandoned view NA products"},Ejo={alternativeProductsForAbandonedViewNAProductListDescription:"В письме будут отображаться альтернативные рекомендации к товарам из брошенного просмотра NA"},_jo=n6({en:Ljo,ru:Ejo}),Bjo={class:"bootstrap-styles container-fluid mb-8"},Djo={class:"bootstrap-styles container-fluid g-0 mb-8"},Rjo={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"},$jo={class:"bootstrap-styles me-3"},Ajo=Q({__name:"AlternativeProductsForAbandonedViewNAProductListBuilder",props:{alternativeProductsForAbandonedViewNAProductListShelf:{},deps:{}},emits:["updatedAlternativeProductsForAbandonedViewNAProductListShelf","cancel"],setup(t,{emit:e}){const o=t,n=Se({stockIdList:[]});o.deps.getAllStockIds().then(s=>{n.stockIdList=s});const r={alternativeProductsForAbandonedViewNAProductListDescription:_jo({localeKey:o.deps.localeKey}).alternativeProductsForAbandonedViewNAProductListDescription},i=e;return(s,a)=>(x(),B("div",{class:j(["bootstrap-styles container-fluid px-11 mt-8",{"is-specific-stock-source":o.alternativeProductsForAbandonedViewNAProductListShelf.StockSource._t==="SpecificStockIdSource"}])},[y("div",Bjo,[R(I(vc),{deps:o.deps.stockSelectorDeps,stockIdList:n.stockIdList,stockSource:o.alternativeProductsForAbandonedViewNAProductListShelf.StockSource,onOnStockSourceUpdated:a[0]||(a[0]=l=>{i("updatedAlternativeProductsForAbandonedViewNAProductListShelf",{...o.alternativeProductsForAbandonedViewNAProductListShelf,StockSource:l})})},null,8,["deps","stockIdList","stockSource"])]),y("div",Djo,[y("div",Rjo,[y("div",$jo,[y("i",null,[R(I(Kee))])]),Ee(y("div",null,null,512),[[I(zOe),r.alternativeProductsForAbandonedViewNAProductListDescription]])])]),R(I(bc),{deps:o.deps.productListShelfLimiterDeps,productsAtLeast:o.alternativeProductsForAbandonedViewNAProductListShelf.AtLeast,productsLimit:o.alternativeProductsForAbandonedViewNAProductListShelf.Limit,"onUpdate:productsAtLeast":a[1]||(a[1]=l=>i("updatedAlternativeProductsForAbandonedViewNAProductListShelf",{...o.alternativeProductsForAbandonedViewNAProductListShelf,AtLeast:l})),"onUpdate:productsLimit":a[2]||(a[2]=l=>i("updatedAlternativeProductsForAbandonedViewNAProductListShelf",{...o.alternativeProductsForAbandonedViewNAProductListShelf,Limit:l}))},null,8,["deps","productsAtLeast","productsLimit"])],2))}}),Njo=x6(Ajo,[["__scopeId","data-v-05abd029"]]),Vjo={relatedProductsForAbandonedViewNAProductListDescription:"The email will display related recommendations for abandoned view NA products"},Ijo={relatedProductsForAbandonedViewNAProductListDescription:"В письме будут отображаться сопутствующие рекомендации к товарам из брошенного просмотра NA"},Pjo=n6({en:Vjo,ru:Ijo}),Mjo={class:"bootstrap-styles container-fluid mb-8"},Ojo={class:"bootstrap-styles container-fluid g-0 mb-8"},Wjo={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"},Hjo={class:"bootstrap-styles me-3"},zjo=Q({__name:"RelatedProductsForAbandonedViewNAProductListBuilder",props:{relatedProductsForAbandonedViewNAProductListShelf:{},deps:{}},emits:["updatedRelatedProductsForAbandonedViewNAProductListShelf","cancel"],setup(t,{emit:e}){const o=t,n=Se({stockIdList:[]});o.deps.getAllStockIds().then(s=>{n.stockIdList=s});const r={relatedProductsForAbandonedViewNAProductListDescription:Pjo({localeKey:o.deps.localeKey}).relatedProductsForAbandonedViewNAProductListDescription},i=e;return(s,a)=>(x(),B("div",{class:j(["bootstrap-styles container-fluid px-11 mt-8",{"is-specific-stock-source":o.relatedProductsForAbandonedViewNAProductListShelf.StockSource._t==="SpecificStockIdSource"}])},[y("div",Mjo,[R(I(vc),{deps:o.deps.stockSelectorDeps,stockIdList:n.stockIdList,stockSource:o.relatedProductsForAbandonedViewNAProductListShelf.StockSource,onOnStockSourceUpdated:a[0]||(a[0]=l=>{i("updatedRelatedProductsForAbandonedViewNAProductListShelf",{...o.relatedProductsForAbandonedViewNAProductListShelf,StockSource:l})})},null,8,["deps","stockIdList","stockSource"])]),y("div",Ojo,[y("div",Wjo,[y("div",Hjo,[y("i",null,[R(I(Kee))])]),Ee(y("div",null,null,512),[[I(zOe),r.relatedProductsForAbandonedViewNAProductListDescription]])])]),R(I(bc),{deps:o.deps.productListShelfLimiterDeps,productsAtLeast:o.relatedProductsForAbandonedViewNAProductListShelf.AtLeast,productsLimit:o.relatedProductsForAbandonedViewNAProductListShelf.Limit,"onUpdate:productsAtLeast":a[1]||(a[1]=l=>i("updatedRelatedProductsForAbandonedViewNAProductListShelf",{...o.relatedProductsForAbandonedViewNAProductListShelf,AtLeast:l})),"onUpdate:productsLimit":a[2]||(a[2]=l=>i("updatedRelatedProductsForAbandonedViewNAProductListShelf",{...o.relatedProductsForAbandonedViewNAProductListShelf,Limit:l}))},null,8,["deps","productsAtLeast","productsLimit"])],2))}}),jjo=x6(zjo,[["__scopeId","data-v-75b64435"]]),Kjo={title:"Product shelf settings",algorithmLabel:"Product selection algorithm",cancelButton:"Cancel",applyButton:"Apply",listSelector:{abandonedViewNAProductListShelf:"Abandoned view NA products",relatedProductsForAbandonedViewNAProductListShelf:"Related products for abandoned view NA",alternativeProductsForAbandonedViewNAProductListShelf:"Alternative products for abandoned view NA",productListShelf:"Product shelf",relatedProductsForProductListShelf:"Related products for products",alternativeProductsForProductListShelf:"Alternative products for products",popularProductsInCategoryListShelf:"Popular products in category",popularProductsShelf:"Popular products",latestProductsShelf:"Latest products",saleByPopularShelf:"Popular products on sale",saleByLatestShelf:"Latest products on sale"}},Ujo={title:"Настройки товарной полки",algorithmLabel:"Алгоритм подбора товаров",cancelButton:"Отмена",applyButton:"Применить",listSelector:{abandonedViewNAProductListShelf:"Товары из брошенного просмотра NA",relatedProductsForAbandonedViewNAProductListShelf:"Сопутствующие товары к товарам из брошенного просмотра NA",alternativeProductsForAbandonedViewNAProductListShelf:"Альтернативы товаров из брошенного просмотра NA",productListShelf:"Продуктовая полка",relatedProductsForProductListShelf:"Сопутствующие товары к товарам",alternativeProductsForProductListShelf:"Альтернативы товаров",popularProductsInCategoryListShelf:"Популярные товары из категории",popularProductsShelf:"Популярные товары",latestProductsShelf:"Новинки магазина",saleByPopularShelf:"Популярные товары со скидкой",saleByLatestShelf:"Новинки магазина со скидкой"}},Ni=n6({en:Kjo,ru:Ujo}),qjo={class:"bootstrap-styles container-fluid g-0 mt-8"},Gjo={class:"bootstrap-styles container-fluid px-11"},Jjo={class:"bootstrap-styles fw-bold mb-5"},Yjo={class:"bootstrap-styles row g-0"},Zjo={class:"bootstrap-styles container-fluid g-0 mb-8"},Xjo=Q({__name:"AbandonedViewNAProductShelfDataSourceExpressionBuilderModal",props:{deps:{},emailComponent:{}},emits:["cancel","apply"],setup(t,{emit:e}){const o=t,n=e,r={AbandonedViewNAProductListShelf:{AtLeast:3,Limit:6,StockSource:Lu()},RelatedProductsForAbandonedViewNAListShelf:{AtLeast:3,Limit:6,StockSource:Lu()},AlternativeProductsForAbandonedViewNAListShelf:{AtLeast:3,Limit:6,StockSource:Lu()},ProductListShelf:{ProductInternalIDs:[],AtLeast:3,Limit:6,StockSource:Lu()},RelatedProductsForProductListShelf:{ProductInternalIDs:[],AtLeast:3,Limit:6,StockSource:Lu()},AlternativeProductsForProductListShelf:{ProductInternalIDs:[],AtLeast:3,Limit:6,StockSource:Lu()},PopularProductsInCategoryListShelf:{CategoryIdList:[],Limit:6,AtLeast:1,StockSource:Lu()},PopularProductsShelf:{Limit:6,AtLeast:1,StockSource:Lu()},LatestProductsShelf:{Limit:6,AtLeast:1,StockSource:Lu()},SaleByPopularProductsShelf:{Limit:6,AtLeast:1,StockSource:Lu()},SaleByLatestProductsShelf:{Limit:6,AtLeast:1,StockSource:Lu()}},i=()=>mWe({listExpression:o.emailComponent?.ContextBuilderExpression?.ProductShelfDataSource?.ListExpression,productShelfFactoryFromDataSource:pWe}).match({some:m=>({currentKey:nLo(m),model:{...r,...m}}),none:()=>({currentKey:"PopularProductsShelf",model:r})}),s=Se(i()),a=()=>{const m={[s.currentKey]:s.model[s.currentKey]},p=qO(m),h=C=>C.length===0,f=C=>C.length===0,g=C=>C?"Error":"OK";return p.Match({AbandonedViewNAProductListShelf:()=>"OK",AlternativeProductsForAbandonedViewNAListShelf:()=>"OK",RelatedProductsForAbandonedViewNAListShelf:()=>"OK",ProductListShelf:({ProductInternalIDs:C})=>g(h(C)),RelatedProductsForProductListShelf:({ProductInternalIDs:C})=>g(h(C)),AlternativeProductsForProductListShelf:({ProductInternalIDs:C})=>g(h(C)),PopularProductsInCategoryListShelf:({CategoryIdList:C})=>g(f(C)),PopularProductsShelf:()=>"OK",LatestProductsShelf:()=>"OK",SaleByPopularProductsShelf:()=>"OK",SaleByLatestProductsShelf:()=>"OK"})},l={title:Ni({localeKey:o.deps.localeKey}).title,algorithmLabel:Ni({localeKey:o.deps.localeKey}).algorithmLabel,cancelButton:Ni({localeKey:o.deps.localeKey}).cancelButton,applyButton:Ni({localeKey:o.deps.localeKey}).applyButton,listSelector:{abandonedViewNAProductListShelf:Ni({localeKey:o.deps.localeKey}).listSelector.abandonedViewNAProductListShelf,relatedProductsForAbandonedViewNAProductListShelf:Ni({localeKey:o.deps.localeKey}).listSelector.relatedProductsForAbandonedViewNAProductListShelf,alternativeProductsForAbandonedViewNAProductListShelf:Ni({localeKey:o.deps.localeKey}).listSelector.alternativeProductsForAbandonedViewNAProductListShelf,productListShelf:Ni({localeKey:o.deps.localeKey}).listSelector.productListShelf,relatedProductsForProductListShelf:Ni({localeKey:o.deps.localeKey}).listSelector.relatedProductsForProductListShelf,alternativeProductsForProductListShelf:Ni({localeKey:o.deps.localeKey}).listSelector.alternativeProductsForProductListShelf,popularProductsInCategoryListShelf:Ni({localeKey:o.deps.localeKey}).listSelector.popularProductsInCategoryListShelf,popularProductsShelf:Ni({localeKey:o.deps.localeKey}).listSelector.popularProductsShelf,latestProductsShelf:Ni({localeKey:o.deps.localeKey}).listSelector.latestProductsShelf,saleByLatestShelf:Ni({localeKey:o.deps.localeKey}).listSelector.saleByLatestShelf,saleByPopularShelf:Ni({localeKey:o.deps.localeKey}).listSelector.saleByPopularShelf}},u={AbandonedViewNAProductListShelf:l.listSelector.abandonedViewNAProductListShelf,RelatedProductsForAbandonedViewNAListShelf:l.listSelector.relatedProductsForAbandonedViewNAProductListShelf,AlternativeProductsForAbandonedViewNAListShelf:l.listSelector.alternativeProductsForAbandonedViewNAProductListShelf,ProductListShelf:l.listSelector.productListShelf,RelatedProductsForProductListShelf:l.listSelector.relatedProductsForProductListShelf,AlternativeProductsForProductListShelf:l.listSelector.alternativeProductsForProductListShelf,PopularProductsInCategoryListShelf:l.listSelector.popularProductsInCategoryListShelf,PopularProductsShelf:l.listSelector.popularProductsShelf,LatestProductsShelf:l.listSelector.latestProductsShelf,SaleByPopularProductsShelf:l.listSelector.saleByPopularShelf,SaleByLatestProductsShelf:l.listSelector.saleByLatestShelf},c=()=>{s.currentKey=i().currentKey,n("cancel")},d=()=>{n("apply",{...o.emailComponent.ContextBuilderExpression,ProductShelfDataSource:{ListExpression:Cjo({[s.currentKey]:s.model[s.currentKey]})}})};return(m,p)=>(x(),Z(I(eRo),{class:"mass-mailing-product-shelf-builder-modal-window",headerText:l.title,onClose:p[14]||(p[14]=h=>c())},{body:gt(()=>[y("div",qjo,[y("div",Gjo,[y("label",Jjo,M(l.algorithmLabel),1),y("div",Yjo,[R(I(bRo),{currentKey:s.currentKey,list:u,"onUpdate:currentKey":p[0]||(p[0]=h=>s.currentKey=h)},null,8,["currentKey"])])]),y("div",Zjo,[s.currentKey=="AbandonedViewNAProductListShelf"?(x(),Z(kjo,{key:0,abandonedViewNAProductListShelf:s.model.AbandonedViewNAProductListShelf,deps:o.deps.AbandonedViewNAProductListShelfBuilderDeps,onUpdatedAbandonedViewNAProductListShelf:p[1]||(p[1]=h=>s.model={...s.model,AbandonedViewNAProductListShelf:h})},null,8,["abandonedViewNAProductListShelf","deps"])):X("",!0),s.currentKey=="AlternativeProductsForAbandonedViewNAListShelf"?(x(),Z(Njo,{key:1,alternativeProductsForAbandonedViewNAProductListShelf:s.model.AlternativeProductsForAbandonedViewNAListShelf,deps:o.deps.AlternativeProductsForAbandonedViewNAProductListShelfBuilderDeps,onUpdatedAlternativeProductsForAbandonedViewNAProductListShelf:p[2]||(p[2]=h=>s.model={...s.model,AlternativeProductsForAbandonedViewNAListShelf:h})},null,8,["alternativeProductsForAbandonedViewNAProductListShelf","deps"])):X("",!0),s.currentKey=="RelatedProductsForAbandonedViewNAListShelf"?(x(),Z(jjo,{key:2,relatedProductsForAbandonedViewNAProductListShelf:s.model.RelatedProductsForAbandonedViewNAListShelf,deps:o.deps.RelatedProductsForAbandonedViewNAProductListShelfBuilderDeps,onUpdatedRelatedProductsForAbandonedViewNAProductListShelf:p[3]||(p[3]=h=>s.model={...s.model,RelatedProductsForAbandonedViewNAListShelf:h})},null,8,["relatedProductsForAbandonedViewNAProductListShelf","deps"])):X("",!0),s.currentKey=="ProductListShelf"?(x(),Z(I(c9o),{key:3,deps:o.deps.ProductListShelfBuilderDeps,productListShelf:s.model.ProductListShelf,onUpdatedProductListShelf:p[4]||(p[4]=h=>s.model={...s.model,ProductListShelf:h})},null,8,["deps","productListShelf"])):X("",!0),s.currentKey=="RelatedProductsForProductListShelf"?(x(),Z(I(q8o),{key:4,deps:o.deps.RelatedProductListShelfBuilderDeps,relatedProductListShelf:s.model.RelatedProductsForProductListShelf,onUpdatedRelatedProductListShelf:p[5]||(p[5]=h=>s.model={...s.model,RelatedProductsForProductListShelf:h})},null,8,["deps","relatedProductListShelf"])):X("",!0),s.currentKey=="AlternativeProductsForProductListShelf"?(x(),Z(I(gjo),{key:5,deps:o.deps.AlternativeProductListShelfBuilderDeps,alternativeProductListShelf:s.model.AlternativeProductsForProductListShelf,onUpdatedAlternativeProductListShelf:p[6]||(p[6]=h=>s.model={...s.model,AlternativeProductsForProductListShelf:h})},null,8,["deps","alternativeProductListShelf"])):X("",!0),s.currentKey=="PopularProductsInCategoryListShelf"?(x(),Z(I(sjo),{key:6,deps:o.deps.PopularFromCategoryListShelfBuilderDeps,popularFromCategoryListShelf:s.model.PopularProductsInCategoryListShelf,onUpdatedPopularFromCategoryListShelf:p[7]||(p[7]=h=>s.model={...s.model,PopularProductsInCategoryListShelf:h})},null,8,["deps","popularFromCategoryListShelf"])):X("",!0),s.currentKey=="PopularProductsShelf"?(x(),Z(I(t9o),{key:7,popularProductListShelf:s.model.PopularProductsShelf,deps:o.deps.PopularProductListShelfBuilderDeps,onUpdatedPopularProductListShelf:p[8]||(p[8]=h=>s.model={...s.model,PopularProductsShelf:h})},null,8,["popularProductListShelf","deps"])):X("",!0),s.currentKey=="LatestProductsShelf"?(x(),Z(I(dHo),{key:8,latestProductListShelf:s.model.LatestProductsShelf,deps:o.deps.LatestProductListShelfBuilderDeps,onUpdatedLatestProductListShelf:p[9]||(p[9]=h=>s.model={...s.model,LatestProductsShelf:h})},null,8,["latestProductListShelf","deps"])):X("",!0),s.currentKey=="SaleByPopularProductsShelf"?(x(),Z(I(LHo),{key:9,saleByPopularProductListShelf:s.model.SaleByPopularProductsShelf,deps:o.deps.SaleByPopularProductListShelfBuilderDeps,onUpdatedSaleByPopularProductListShelf:p[10]||(p[10]=h=>s.model={...s.model,SaleByPopularProductsShelf:h})},null,8,["saleByPopularProductListShelf","deps"])):X("",!0),s.currentKey=="SaleByLatestProductsShelf"?(x(),Z(I(bHo),{key:10,saleByLatestProductListShelf:s.model.SaleByLatestProductsShelf,deps:o.deps.SaleByLatestProductListShelfBuilderDeps,onUpdatedSaleByLatestProductListShelf:p[11]||(p[11]=h=>s.model={...s.model,SaleByLatestProductsShelf:h})},null,8,["saleByLatestProductListShelf","deps"])):X("",!0)])])]),"footer-actions":gt(()=>[y("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:p[12]||(p[12]=bt(h=>c(),["stop"]))},M(l.cancelButton),1),y("button",{class:j([{"disabled cursor-not-allowed":a()==="Error"},"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 bg-color-selected text-white cursor-pointer button__hover-blue-400"]),onClick:p[13]||(p[13]=bt(h=>d(),["stop"]))},M(l.applyButton),3)]),_:1},8,["headerText"]))}}),Qjo=x6(Xjo,[["__scopeId","data-v-b87b8344"]]),eKo={key:0},tKo={class:"data-source-container__inner"},oKo=Q({__name:"AbandonedViewNAProductShelfDataSourceExpressionBuilder",props:{deps:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const o=t,n=e,r=Se(mWe({listExpression:o.modelValue?.ContextBuilderExpression?.ProductShelfDataSource?.ListExpression,productShelfFactoryFromDataSource:pWe}).match({some:()=>({isValidExpression:!0,dataSourceModalIsShown:!1}),none:()=>({isValidExpression:!1,dataSourceModalIsShown:!1})})),i=()=>{r.dataSourceModalIsShown=!1},s=a=>{n("update:modelValue",{...o.modelValue,ContextBuilderExpression:a}),r.dataSourceModalIsShown=!1};return(a,l)=>r.isValidExpression?(x(),B("span",eKo,[y("button",{class:"bootstrap-styles bg-white rounded-2 shadow data-source-container",onClick:l[0]||(l[0]=()=>r.dataSourceModalIsShown=!0)},[y("span",tKo,[R(I(mRo))])]),(x(),Z(Io,{to:"#app"},[r.dataSourceModalIsShown?(x(),Z(Qjo,{key:0,deps:o.deps.abandonedViewNAProductShelfDataSourceExpressionBuilderModalDeps,emailComponent:o.modelValue,onCancel:l[1]||(l[1]=u=>i()),onApply:l[2]||(l[2]=u=>s(u))},null,8,["deps","emailComponent"])):X("",!0)]))])):X("",!0)}}),nKo=t=>{let e={};return o=>jOe(o).Match({AbandonedViewNAProductList:({StockSource:n})=>hH({partnerId:t.partnerId,stockId:ku({stockSource:n,customerStockId:t.customerStockId}),getSampleProductsForPreviewHttpClient:t.listExpressionDataSourceBffClient.postGetSampleProductsForPreview}),RelatedProductsForAbandonedViewNAProductList:({StockSource:n})=>hH({partnerId:t.partnerId,stockId:ku({stockSource:n,customerStockId:t.customerStockId}),getSampleProductsForPreviewHttpClient:t.listExpressionDataSourceBffClient.postGetSampleProductsForPreview}),AlternativeProductsForAbandonedViewNAProductList:({StockSource:n})=>hH({partnerId:t.partnerId,stockId:ku({stockSource:n,customerStockId:t.customerStockId}),getSampleProductsForPreviewHttpClient:t.listExpressionDataSourceBffClient.postGetSampleProductsForPreview}),ProductList:({ProductIds:n,StockSource:r})=>hco({partnerId:t.partnerId,productIDs:n,stockId:ku({stockSource:r,customerStockId:t.customerStockId}),productCache:e,getProductsByIDsHttpClient:t.listExpressionDataSourceBffClient.postGetProductsByIds}),RelatedProductsFor:({ProductIds:n,StockSource:r})=>fco({partnerId:t.partnerId,productIDs:n,stockId:ku({stockSource:r,customerStockId:t.customerStockId}),getRelatedProducts:t.listExpressionDataSourceBffClient.postGetRelatedRecommendations}),AlternativeProductsFor:({ProductIds:n,StockSource:r})=>gco({partnerId:t.partnerId,productIDs:n,stockId:ku({stockSource:r,customerStockId:t.customerStockId}),getAlternativeProductsHttpClient:t.listExpressionDataSourceBffClient.postGetAlternativeRecommendations}),PopularProductsInCategories:({CategoryIds:n,StockSource:r})=>yco({partnerId:t.partnerId,categoryIds:n,stockId:ku({stockSource:r,customerStockId:t.customerStockId}),getPopularProductsInCategoriesHttpClient:t.listExpressionDataSourceBffClient.postGetPopularInCategoriesRecommendations}),Popular:({StockSource:n})=>_Xt({partnerId:t.partnerId,stockId:ku({stockSource:n,customerStockId:t.customerStockId}),getPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetPopularRecommendations}),Latest:({StockSource:n})=>Cco({partnerId:t.partnerId,stockId:ku({stockSource:n,customerStockId:t.customerStockId}),getLatestProductsHttpClient:t.listExpressionDataSourceBffClient.postGetLatestRecommendations}),SaleByPopular:({StockSource:n})=>bco({partnerId:t.partnerId,stockId:ku({stockSource:n,customerStockId:t.customerStockId}),getSaleByPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetSaleByPopularRecommendations}),SaleByLatest:({StockSource:n})=>vco({partnerId:t.partnerId,stockId:ku({stockSource:n,customerStockId:t.customerStockId}),getSaleByLatestProductsHttpClient:t.listExpressionDataSourceBffClient.postGetSaleByLatestRecommendations})})},rKo=()=>()=>Promise.resolve(0),iKo=t=>{const e=t.contactCustomData;return o=>vRo(o.stringExpressionDataSource).Match({StringFromContactCustomData:n=>Promise.resolve(e[n.FieldName]),StringFromContactCustomDataWithFallback:n=>Promise.resolve(n.FieldName in e&&typeof e[n.FieldName]=="string"?e[n.FieldName]:n.FallbackValue),ProductImageUrlBuilderExpression:n=>t.productImageUrlBuilderExpressionEvaluator({expression:n,context:o.context}),NextCouponFromBatch:()=>Promise.resolve("Coupon")})},sKo=t=>t.triggerAbandonedViewNA?JSON.parse(t.triggerAbandonedViewNA.componentJson):JSON.parse(t.common.componentJson),aKo=t=>({sectionItemId:t.sectionItemId,sectionItemName:t.sectionItemName,componentTemplate:sKo(t.component)}),lKo=t=>({sectionId:t.sectionId,sectionName:t.sectionName,componentList:t.sectionItems.map(e=>aKo(e))}),uKo=t=>t.map(e=>lKo(e)),cKo=t=>({localeKey:t.localeKey,getAllStockIds:cc({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),dKo=t=>({localeKey:t.localeKey,getAllStockIds:cc({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),mKo=t=>({localeKey:t.localeKey,getAllStockIds:cc({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),pKo=t=>{const e={},o={},n=mXt({localeKey:t.localeKey,partnerId:t.partnerId,customerStockId:t.customerStockId,productPickerModalWindowBffClient:t.productPickerModalWindowBffClient});return{localeKey:t.localeKey,ProductListComposerModalWindowDeps:n,CategoryListComposerModalWindowDeps:cDe({localeKey:t.localeKey,partnerId:t.partnerId,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient}),AbandonedViewNAProductListShelfBuilderDeps:mKo({localeKey:t.localeKey,partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds}),AlternativeProductsForAbandonedViewNAProductListShelfBuilderDeps:cKo({localeKey:t.localeKey,partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds}),RelatedProductsForAbandonedViewNAProductListShelfBuilderDeps:dKo({localeKey:t.localeKey,partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds}),ProductListShelfBuilderDeps:LXt({localeKey:t.localeKey,partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:e,getProductsByIDsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetProductsByIds,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds,productListComposerModalWindowDeps:n}),RelatedProductListShelfBuilderDeps:kXt({localeKey:t.localeKey,partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:e,getProductsByIDsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetProductsByIds,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds,productListComposerModalWindowDeps:n}),AlternativeProductListShelfBuilderDeps:FXt({localeKey:t.localeKey,partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:e,getProductsByIDsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetProductsByIds,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds,productListComposerModalWindowDeps:n}),PopularFromCategoryListShelfBuilderDeps:EXt({localeKey:t.localeKey,partnerId:t.partnerId,categoryCache:o,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds,getCategoriesByIDsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetProductCategoriesByIds,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient}),PopularProductListShelfBuilderDeps:ZZt({localeKey:t.localeKey,partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds}),LatestProductListShelfBuilderDeps:XZt({localeKey:t.localeKey,partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds}),SaleByPopularProductListShelfBuilderDeps:QZt({localeKey:t.localeKey,partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds}),SaleByLatestProductListShelfBuilderDeps:eXt({localeKey:t.localeKey,partnerId:t.partnerId,getAllStockIdsHttpClient:t.productShelfBuilderModalWindowBffClient.postGetAllStockIds})}},hKo=t=>({abandonedViewNAProductShelfDataSourceExpressionBuilderModalDeps:pKo({localeKey:t.localeKey,partnerId:t.partnerId,customerStockId:t.customerStockId,productShelfBuilderModalWindowBffClient:t.productShelfBuilderModalWindowBffClient,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient,productPickerModalWindowBffClient:t.productPickerModalWindowBffClient})});var Xd={},xbe;function fKo(){if(xbe)return Xd;xbe=1;var t=Xd&&Xd.__awaiter||function(s,a,l,u){function c(d){return d instanceof l?d:new l(function(m){m(d)})}return new(l||(l=Promise))(function(d,m){function p(g){try{f(u.next(g))}catch(C){m(C)}}function h(g){try{f(u.throw(g))}catch(C){m(C)}}function f(g){g.done?d(g.value):c(g.value).then(p,h)}f((u=u.apply(s,a||[])).next())})},e=Xd&&Xd.__generator||function(s,a){var l={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},u,c,d,m=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return m.next=p(0),m.throw=p(1),m.return=p(2),typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function p(f){return function(g){return h([f,g])}}function h(f){if(u)throw new TypeError("Generator is already executing.");for(;m&&(m=0,f[0]&&(l=0)),l;)try{if(u=1,c&&(d=f[0]&2?c.return:f[0]?c.throw||((d=c.return)&&d.call(c),0):c.next)&&!(d=d.call(c,f[1])).done)return d;switch(c=0,d&&(f=[f[0]&2,d.value]),f[0]){case 0:case 1:d=f;break;case 4:return l.label++,{value:f[1],done:!1};case 5:l.label++,c=f[1],f=[0];continue;case 7:f=l.ops.pop(),l.trys.pop();continue;default:if(d=l.trys,!(d=d.length>0&&d[d.length-1])&&(f[0]===6||f[0]===2)){l=0;continue}if(f[0]===3&&(!d||f[1]>d[0]&&f[1]<d[3])){l.label=f[1];break}if(f[0]===6&&l.label<d[1]){l.label=d[1],d=f;break}if(d&&l.label<d[2]){l.label=d[2],l.ops.push(f);break}d[2]&&l.ops.pop(),l.trys.pop();continue}f=a.call(s,l)}catch(g){f=[6,g],c=0}finally{u=d=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}};Object.defineProperty(Xd,"__esModule",{value:!0}),Xd.createApi=void 0;var o=function(s,a){return function(l){return s(l,a)}},n=function(s){return{message:s.message}};function r(s,a){return t(this,void 0,void 0,function(){var l,u,c;return e(this,function(d){switch(d.label){case 0:return l="wysiwyg/bff/v2/triggerAbandonedViewNaWysiwygTemplateEditor/saveTemplate/",u=new URLSearchParams,[4,a({path:l,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s.body),query:u.toString()})];case 1:if(c=d.sent(),c.status===200)return[2,{status:200}];if(c.status===400)return[2,{status:400,body:n(c.body)}];throw new Error("Unknown response")}})})}var i=function(s){return{postSaveTemplate:o(r,s)}};return Xd.createApi=i,Xd}var gKo=fKo(),Qd={},Fbe;function yKo(){if(Fbe)return Qd;Fbe=1;var t=Qd&&Qd.__awaiter||function(c,d,m,p){function h(f){return f instanceof m?f:new m(function(g){g(f)})}return new(m||(m=Promise))(function(f,g){function C(w){try{S(p.next(w))}catch(T){g(T)}}function v(w){try{S(p.throw(w))}catch(T){g(T)}}function S(w){w.done?f(w.value):h(w.value).then(C,v)}S((p=p.apply(c,d||[])).next())})},e=Qd&&Qd.__generator||function(c,d){var m={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},p,h,f,g=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return g.next=C(0),g.throw=C(1),g.return=C(2),typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function C(S){return function(w){return v([S,w])}}function v(S){if(p)throw new TypeError("Generator is already executing.");for(;g&&(g=0,S[0]&&(m=0)),m;)try{if(p=1,h&&(f=S[0]&2?h.return:S[0]?h.throw||((f=h.return)&&f.call(h),0):h.next)&&!(f=f.call(h,S[1])).done)return f;switch(h=0,f&&(S=[S[0]&2,f.value]),S[0]){case 0:case 1:f=S;break;case 4:return m.label++,{value:S[1],done:!1};case 5:m.label++,h=S[1],S=[0];continue;case 7:S=m.ops.pop(),m.trys.pop();continue;default:if(f=m.trys,!(f=f.length>0&&f[f.length-1])&&(S[0]===6||S[0]===2)){m=0;continue}if(S[0]===3&&(!f||S[1]>f[0]&&S[1]<f[3])){m.label=S[1];break}if(S[0]===6&&m.label<f[1]){m.label=f[1],f=S;break}if(f&&m.label<f[2]){m.label=f[2],m.ops.push(S);break}f[2]&&m.ops.pop(),m.trys.pop();continue}S=d.call(c,m)}catch(w){S=[6,w],h=0}finally{p=f=0}if(S[0]&5)throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}};Object.defineProperty(Qd,"__esModule",{value:!0}),Qd.createApi=void 0;var o=function(c,d){return function(m){return c(m,d)}},n=function(c){return{sections:c.sections.map(function(d){return r(d)})}},r=function(c){return{sectionId:c.sectionId,sectionName:c.sectionName}},i=function(c){return{sectionItemId:c.sectionItemId}},s=function(c){return{message:c.message}};function a(c,d){return t(this,void 0,void 0,function(){var m,p,h;return e(this,function(f){switch(f.label){case 0:return m="wysiwyg/bff/v2/addComponentLibrarySectionItemModalWindow/getComponentLibrarySections/",p=new URLSearchParams,[4,d({path:m,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c.body),query:p.toString()})];case 1:if(h=f.sent(),h.status===200)return[2,{status:200,body:n(h.body)}];throw new Error("Unknown response")}})})}function l(c,d){return t(this,void 0,void 0,function(){var m,p,h;return e(this,function(f){switch(f.label){case 0:return m="wysiwyg/bff/v2/addComponentLibrarySectionItemModalWindow/createComponentLibrarySectionItem/",p=new URLSearchParams,[4,d({path:m,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c.body),query:p.toString()})];case 1:if(h=f.sent(),h.status===200)return[2,{status:200,body:i(h.body)}];if(h.status===400)return[2,{status:400,body:s(h.body)}];throw new Error("Unknown response")}})})}var u=function(c){return{postGetComponentLibrarySections:o(a,c),postCreateComponentLibrarySectionItem:o(l,c)}};return Qd.createApi=u,Qd}var CKo=yKo(),em={},kbe;function bKo(){if(kbe)return em;kbe=1;var t=em&&em.__awaiter||function(L,E,A,V){function H(O){return O instanceof A?O:new A(function(K){K(O)})}return new(A||(A=Promise))(function(O,K){function he(Y){try{be(V.next(Y))}catch(Te){K(Te)}}function Fe(Y){try{be(V.throw(Y))}catch(Te){K(Te)}}function be(Y){Y.done?O(Y.value):H(Y.value).then(he,Fe)}be((V=V.apply(L,E||[])).next())})},e=em&&em.__generator||function(L,E){var A={label:0,sent:function(){if(O[0]&1)throw O[1];return O[1]},trys:[],ops:[]},V,H,O,K=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return K.next=he(0),K.throw=he(1),K.return=he(2),typeof Symbol=="function"&&(K[Symbol.iterator]=function(){return this}),K;function he(be){return function(Y){return Fe([be,Y])}}function Fe(be){if(V)throw new TypeError("Generator is already executing.");for(;K&&(K=0,be[0]&&(A=0)),A;)try{if(V=1,H&&(O=be[0]&2?H.return:be[0]?H.throw||((O=H.return)&&O.call(H),0):H.next)&&!(O=O.call(H,be[1])).done)return O;switch(H=0,O&&(be=[be[0]&2,O.value]),be[0]){case 0:case 1:O=be;break;case 4:return A.label++,{value:be[1],done:!1};case 5:A.label++,H=be[1],be=[0];continue;case 7:be=A.ops.pop(),A.trys.pop();continue;default:if(O=A.trys,!(O=O.length>0&&O[O.length-1])&&(be[0]===6||be[0]===2)){A=0;continue}if(be[0]===3&&(!O||be[1]>O[0]&&be[1]<O[3])){A.label=be[1];break}if(be[0]===6&&A.label<O[1]){A.label=O[1],O=be;break}if(O&&A.label<O[2]){A.label=O[2],A.ops.push(be);break}O[2]&&A.ops.pop(),A.trys.pop();continue}be=E.call(L,A)}catch(Y){be=[6,Y],H=0}finally{V=O=0}if(be[0]&5)throw be[1];return{value:be[0]?be[1]:void 0,done:!0}}};Object.defineProperty(em,"__esModule",{value:!0}),em.createApi=void 0;var o=function(L,E){return function(A){return L(A,E)}},n=function(L){return{products:L.products.map(function(E){return i(E)})}},r=function(L){return{products:L.products.map(function(E){return i(E)})}},i=function(L){return{internalId:L.internalId,externalId:L.externalId,name:L.name,description:L.description,vendor:L.vendor?L.vendor:void 0,price:L.price,oldPrice:L.oldPrice,discountPercentage:L.discountPercentage?L.discountPercentage:void 0,pictureUrl:L.pictureUrl,url:L.url,parameters:L.parameters.map(function(E){return f(E)})}},s=function(L){return{recommendations:L.recommendations.map(function(E){return h(E)})}},a=function(L){return{recommendations:L.recommendations.map(function(E){return h(E)})}},l=function(L){return{recommendations:L.recommendations.map(function(E){return h(E)})}},u=function(L){return{recommendations:L.recommendations.map(function(E){return h(E)})}},c=function(L){return{recommendations:L.recommendations.map(function(E){return h(E)})}},d=function(L){return{recommendations:L.recommendations.map(function(E){return h(E)})}},m=function(L){return{recommendations:L.recommendations.map(function(E){return h(E)})}},p=function(L){return{recommendations:L.recommendations.map(function(E){return h(E)})}},h=function(L){return{internalProductId:L.internalProductId,externalProductId:L.externalProductId,name:L.name,description:L.description,vendor:L.vendor?L.vendor:void 0,price:L.price,oldPrice:L.oldPrice,discountPercentage:L.discountPercentage?L.discountPercentage:void 0,pictureUrl:L.pictureUrl,url:L.url,parameters:L.parameters.map(function(E){return f(E)})}},f=function(L){return{name:L.name,value:L.value}};function g(L,E){return t(this,void 0,void 0,function(){var A,V,H;return e(this,function(O){switch(O.label){case 0:return A="wysiwyg/bff/v2/listExpressionDataSource/getProductsByIds/",V=new URLSearchParams,[4,E({path:A,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(L.body),query:V.toString()})];case 1:if(H=O.sent(),H.status===200)return[2,{status:200,body:n(H.body)}];throw new Error("Unknown response")}})})}function C(L,E){return t(this,void 0,void 0,function(){var A,V,H;return e(this,function(O){switch(O.label){case 0:return A="wysiwyg/bff/v2/listExpressionDataSource/getPopularRecommendations/",V=new URLSearchParams,[4,E({path:A,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(L.body),query:V.toString()})];case 1:if(H=O.sent(),H.status===200)return[2,{status:200,body:s(H.body)}];throw new Error("Unknown response")}})})}function v(L,E){return t(this,void 0,void 0,function(){var A,V,H;return e(this,function(O){switch(O.label){case 0:return A="wysiwyg/bff/v2/listExpressionDataSource/getPopularInCategoriesRecommendations/",V=new URLSearchParams,[4,E({path:A,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(L.body),query:V.toString()})];case 1:if(H=O.sent(),H.status===200)return[2,{status:200,body:a(H.body)}];throw new Error("Unknown response")}})})}function S(L,E){return t(this,void 0,void 0,function(){var A,V,H;return e(this,function(O){switch(O.label){case 0:return A="wysiwyg/bff/v2/listExpressionDataSource/getRelatedRecommendations/",V=new URLSearchParams,[4,E({path:A,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(L.body),query:V.toString()})];case 1:if(H=O.sent(),H.status===200)return[2,{status:200,body:l(H.body)}];throw new Error("Unknown response")}})})}function w(L,E){return t(this,void 0,void 0,function(){var A,V,H;return e(this,function(O){switch(O.label){case 0:return A="wysiwyg/bff/v2/listExpressionDataSource/getAlternativeRecommendations/",V=new URLSearchParams,[4,E({path:A,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(L.body),query:V.toString()})];case 1:if(H=O.sent(),H.status===200)return[2,{status:200,body:u(H.body)}];throw new Error("Unknown response")}})})}function T(L,E){return t(this,void 0,void 0,function(){var A,V,H;return e(this,function(O){switch(O.label){case 0:return A="wysiwyg/bff/v2/listExpressionDataSource/getSearchRecommendations/",V=new URLSearchParams,[4,E({path:A,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(L.body),query:V.toString()})];case 1:if(H=O.sent(),H.status===200)return[2,{status:200,body:c(H.body)}];throw new Error("Unknown response")}})})}function F(L,E){return t(this,void 0,void 0,function(){var A,V,H;return e(this,function(O){switch(O.label){case 0:return A="wysiwyg/bff/v2/listExpressionDataSource/getLatestRecommendations/",V=new URLSearchParams,[4,E({path:A,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(L.body),query:V.toString()})];case 1:if(H=O.sent(),H.status===200)return[2,{status:200,body:d(H.body)}];throw new Error("Unknown response")}})})}function _(L,E){return t(this,void 0,void 0,function(){var A,V,H;return e(this,function(O){switch(O.label){case 0:return A="wysiwyg/bff/v2/listExpressionDataSource/getSaleByPopularRecommendations/",V=new URLSearchParams,[4,E({path:A,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(L.body),query:V.toString()})];case 1:if(H=O.sent(),H.status===200)return[2,{status:200,body:m(H.body)}];throw new Error("Unknown response")}})})}function N(L,E){return t(this,void 0,void 0,function(){var A,V,H;return e(this,function(O){switch(O.label){case 0:return A="wysiwyg/bff/v2/listExpressionDataSource/getSaleByLatestRecommendations/",V=new URLSearchParams,[4,E({path:A,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(L.body),query:V.toString()})];case 1:if(H=O.sent(),H.status===200)return[2,{status:200,body:p(H.body)}];throw new Error("Unknown response")}})})}function $(L,E){return t(this,void 0,void 0,function(){var A,V,H;return e(this,function(O){switch(O.label){case 0:return A="wysiwyg/bff/v2/listExpressionDataSource/getSampleProductsForPreview/",V=new URLSearchParams,[4,E({path:A,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(L.body),query:V.toString()})];case 1:if(H=O.sent(),H.status===200)return[2,{status:200,body:r(H.body)}];throw new Error("Unknown response")}})})}var P=function(L){return{postGetProductsByIds:o(g,L),postGetPopularRecommendations:o(C,L),postGetPopularInCategoriesRecommendations:o(v,L),postGetRelatedRecommendations:o(S,L),postGetAlternativeRecommendations:o(w,L),postGetSearchRecommendations:o(T,L),postGetLatestRecommendations:o(F,L),postGetSaleByPopularRecommendations:o(_,L),postGetSaleByLatestRecommendations:o(N,L),postGetSampleProductsForPreview:o($,L)}};return em.createApi=P,em}var vKo=bKo(),tm={},Lbe;function SKo(){if(Lbe)return tm;Lbe=1;var t=tm&&tm.__awaiter||function(p,h,f,g){function C(v){return v instanceof f?v:new f(function(S){S(v)})}return new(f||(f=Promise))(function(v,S){function w(_){try{F(g.next(_))}catch(N){S(N)}}function T(_){try{F(g.throw(_))}catch(N){S(N)}}function F(_){_.done?v(_.value):C(_.value).then(w,T)}F((g=g.apply(p,h||[])).next())})},e=tm&&tm.__generator||function(p,h){var f={label:0,sent:function(){if(v[0]&1)throw v[1];return v[1]},trys:[],ops:[]},g,C,v,S=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return S.next=w(0),S.throw=w(1),S.return=w(2),typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function w(F){return function(_){return T([F,_])}}function T(F){if(g)throw new TypeError("Generator is already executing.");for(;S&&(S=0,F[0]&&(f=0)),f;)try{if(g=1,C&&(v=F[0]&2?C.return:F[0]?C.throw||((v=C.return)&&v.call(C),0):C.next)&&!(v=v.call(C,F[1])).done)return v;switch(C=0,v&&(F=[F[0]&2,v.value]),F[0]){case 0:case 1:v=F;break;case 4:return f.label++,{value:F[1],done:!1};case 5:f.label++,C=F[1],F=[0];continue;case 7:F=f.ops.pop(),f.trys.pop();continue;default:if(v=f.trys,!(v=v.length>0&&v[v.length-1])&&(F[0]===6||F[0]===2)){f=0;continue}if(F[0]===3&&(!v||F[1]>v[0]&&F[1]<v[3])){f.label=F[1];break}if(F[0]===6&&f.label<v[1]){f.label=v[1],v=F;break}if(v&&f.label<v[2]){f.label=v[2],f.ops.push(F);break}v[2]&&f.ops.pop(),f.trys.pop();continue}F=h.call(p,f)}catch(_){F=[6,_],C=0}finally{g=v=0}if(F[0]&5)throw F[1];return{value:F[0]?F[1]:void 0,done:!0}}};Object.defineProperty(tm,"__esModule",{value:!0}),tm.createApi=void 0;var o=function(p){return p},n=function(p,h){return function(f){return p(f,h)}},r=function(p){return{products:p.products.map(function(h){return i(h)})}},i=function(p){return{internalId:p.internalId,externalId:p.externalId,name:p.name,pictureUrl:p.pictureUrl,isAvailable:p.isAvailable}},s=function(p){return{categories:p.categories.map(function(h){return a(h)})}},a=function(p){return{id:p.id,name:p.name,path:p.path}},l=function(p){return{stockIds:p.stockIds.map(o)}};function u(p,h){return t(this,void 0,void 0,function(){var f,g,C;return e(this,function(v){switch(v.label){case 0:return f="wysiwyg/bff/v2/productShelfModalWindow/getProductsByIds/",g=new URLSearchParams,[4,h({path:f,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p.body),query:g.toString()})];case 1:if(C=v.sent(),C.status===200)return[2,{status:200,body:r(C.body)}];throw new Error("Unknown response")}})})}function c(p,h){return t(this,void 0,void 0,function(){var f,g,C;return e(this,function(v){switch(v.label){case 0:return f="wysiwyg/bff/v2/productShelfModalWindow/getProductCategoriesByIds/",g=new URLSearchParams,[4,h({path:f,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p.body),query:g.toString()})];case 1:if(C=v.sent(),C.status===200)return[2,{status:200,body:s(C.body)}];throw new Error("Unknown response")}})})}function d(p,h){return t(this,void 0,void 0,function(){var f,g,C;return e(this,function(v){switch(v.label){case 0:return f="wysiwyg/bff/v2/productShelfModalWindow/getAllStockIds/",g=new URLSearchParams,[4,h({path:f,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p.body),query:g.toString()})];case 1:if(C=v.sent(),C.status===200)return[2,{status:200,body:l(C.body)}];throw new Error("Unknown response")}})})}var m=function(p){return{postGetProductsByIds:n(u,p),postGetProductCategoriesByIds:n(c,p),postGetAllStockIds:n(d,p)}};return tm.createApi=m,tm}var wKo=SKo(),om={},Ebe;function TKo(){if(Ebe)return om;Ebe=1;var t=om&&om.__awaiter||function(u,c,d,m){function p(h){return h instanceof d?h:new d(function(f){f(h)})}return new(d||(d=Promise))(function(h,f){function g(S){try{v(m.next(S))}catch(w){f(w)}}function C(S){try{v(m.throw(S))}catch(w){f(w)}}function v(S){S.done?h(S.value):p(S.value).then(g,C)}v((m=m.apply(u,c||[])).next())})},e=om&&om.__generator||function(u,c){var d={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},m,p,h,f=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return f.next=g(0),f.throw=g(1),f.return=g(2),typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function g(v){return function(S){return C([v,S])}}function C(v){if(m)throw new TypeError("Generator is already executing.");for(;f&&(f=0,v[0]&&(d=0)),d;)try{if(m=1,p&&(h=v[0]&2?p.return:v[0]?p.throw||((h=p.return)&&h.call(p),0):p.next)&&!(h=h.call(p,v[1])).done)return h;switch(p=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return d.label++,{value:v[1],done:!1};case 5:d.label++,p=v[1],v=[0];continue;case 7:v=d.ops.pop(),d.trys.pop();continue;default:if(h=d.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){d=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){d.label=v[1];break}if(v[0]===6&&d.label<h[1]){d.label=h[1],h=v;break}if(h&&d.label<h[2]){d.label=h[2],d.ops.push(v);break}h[2]&&d.ops.pop(),d.trys.pop();continue}v=c.call(u,d)}catch(S){v=[6,S],p=0}finally{m=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}};Object.defineProperty(om,"__esModule",{value:!0}),om.createApi=void 0;var o=function(u,c){return function(d){return u(d,c)}},n=function(u){return{sections:u.sections.map(function(c){return r(c)})}},r=function(u){return{sectionId:u.sectionId,sectionName:u.sectionName,sectionItems:u.sectionItems.map(function(c){return i(c)})}},i=function(u){return{sectionItemId:u.sectionItemId,sectionItemName:u.sectionItemName,theme:s(u.theme)}},s=function(u){return{json:u.json}};function a(u,c){return t(this,void 0,void 0,function(){var d,m,p;return e(this,function(h){switch(h.label){case 0:return d="wysiwyg/bff/v2/themeLibrary/getThemeLibrary/",m=new URLSearchParams,[4,c({path:d,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u.body),query:m.toString()})];case 1:if(p=h.sent(),p.status===200)return[2,{status:200,body:n(p.body)}];throw new Error("Unknown response")}})})}var l=function(u){return{postGetThemeLibrary:o(a,u)}};return om.createApi=l,om}var xKo=TKo(),nm={},_be;function FKo(){if(_be)return nm;_be=1;var t=nm&&nm.__awaiter||function(E,A,V,H){function O(K){return K instanceof V?K:new V(function(he){he(K)})}return new(V||(V=Promise))(function(K,he){function Fe(Te){try{Y(H.next(Te))}catch(G){he(G)}}function be(Te){try{Y(H.throw(Te))}catch(G){he(G)}}function Y(Te){Te.done?K(Te.value):O(Te.value).then(Fe,be)}Y((H=H.apply(E,A||[])).next())})},e=nm&&nm.__generator||function(E,A){var V={label:0,sent:function(){if(K[0]&1)throw K[1];return K[1]},trys:[],ops:[]},H,O,K,he=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return he.next=Fe(0),he.throw=Fe(1),he.return=Fe(2),typeof Symbol=="function"&&(he[Symbol.iterator]=function(){return this}),he;function Fe(Y){return function(Te){return be([Y,Te])}}function be(Y){if(H)throw new TypeError("Generator is already executing.");for(;he&&(he=0,Y[0]&&(V=0)),V;)try{if(H=1,O&&(K=Y[0]&2?O.return:Y[0]?O.throw||((K=O.return)&&K.call(O),0):O.next)&&!(K=K.call(O,Y[1])).done)return K;switch(O=0,K&&(Y=[Y[0]&2,K.value]),Y[0]){case 0:case 1:K=Y;break;case 4:return V.label++,{value:Y[1],done:!1};case 5:V.label++,O=Y[1],Y=[0];continue;case 7:Y=V.ops.pop(),V.trys.pop();continue;default:if(K=V.trys,!(K=K.length>0&&K[K.length-1])&&(Y[0]===6||Y[0]===2)){V=0;continue}if(Y[0]===3&&(!K||Y[1]>K[0]&&Y[1]<K[3])){V.label=Y[1];break}if(Y[0]===6&&V.label<K[1]){V.label=K[1],K=Y;break}if(K&&V.label<K[2]){V.label=K[2],V.ops.push(Y);break}K[2]&&V.ops.pop(),V.trys.pop();continue}Y=A.call(E,V)}catch(Te){Y=[6,Te],O=0}finally{H=K=0}if(Y[0]&5)throw Y[1];return{value:Y[0]?Y[1]:void 0,done:!0}}};Object.defineProperty(nm,"__esModule",{value:!0}),nm.createApi=void 0;function o(E){return E==null}var n=function(E,A){return function(V){return E(V,A)}},r=function(E){return{sections:E.sections.map(function(A){return i(A)})}},i=function(E){return{sectionId:E.sectionId,sectionName:E.sectionName,sectionItems:E.sectionItems.map(function(A){return s(A)})}},s=function(E){return{sectionItemId:E.sectionItemId,sectionItemName:E.sectionItemName,component:a(E.component),lastModifiedAt:new Date(E.lastModifiedAt)}},a=function(E){if(!o(E.common))return{common:l(E.common)};if(!o(E.multicast))return{multicast:u(E.multicast)};if(!o(E.transactional))return{transactional:c(E.transactional)};if(!o(E.triggerAbandonedBasket))return{triggerAbandonedBasket:d(E.triggerAbandonedBasket)};if(!o(E.triggerAbandonedBasketPriceDrop))return{triggerAbandonedBasketPriceDrop:m(E.triggerAbandonedBasketPriceDrop)};if(!o(E.triggerAbandonedCategory))return{triggerAbandonedCategory:p(E.triggerAbandonedCategory)};if(!o(E.triggerAbandonedSearch))return{triggerAbandonedSearch:h(E.triggerAbandonedSearch)};if(!o(E.triggerAbandonedView))return{triggerAbandonedView:f(E.triggerAbandonedView)};if(!o(E.triggerAbandonedViewNA))return{triggerAbandonedViewNA:g(E.triggerAbandonedViewNA)};if(!o(E.triggerAbandonedViewPriceDrop))return{triggerAbandonedViewPriceDrop:C(E.triggerAbandonedViewPriceDrop)};if(!o(E.triggerNextBestOffer2))return{triggerNextBestOffer2:v(E.triggerNextBestOffer2)};if(!o(E.triggerPostTransaction))return{triggerPostTransaction:S(E.triggerPostTransaction)};if(!o(E.triggerRepurchase))return{triggerRepurchase:w(E.triggerRepurchase)};if(!o(E.triggerPriceDrop))return{triggerPriceDrop:T(E.triggerPriceDrop)};if(!o(E.triggerProductBackInStock))return{triggerProductBackInStock:F(E.triggerProductBackInStock)};if(!o(E.triggerProductStillOutOfStock))return{triggerProductStillOutOfStock:_(E.triggerProductStillOutOfStock)};if(!o(E.triggerReactivation))return{triggerReactivation:N(E.triggerReactivation)};if(!o(E.triggerWelcomeSequence))return{triggerWelcomeSequence:$(E.triggerWelcomeSequence)};throw new Error("unknown property")},l=function(E){return{componentJson:E.componentJson}},u=function(E){return{componentJson:E.componentJson}},c=function(E){return{componentJson:E.componentJson}},d=function(E){return{componentJson:E.componentJson}},m=function(E){return{componentJson:E.componentJson}},p=function(E){return{componentJson:E.componentJson}},h=function(E){return{componentJson:E.componentJson}},f=function(E){return{componentJson:E.componentJson}},g=function(E){return{componentJson:E.componentJson}},C=function(E){return{componentJson:E.componentJson}},v=function(E){return{componentJson:E.componentJson}},S=function(E){return{componentJson:E.componentJson}},w=function(E){return{componentJson:E.componentJson}},T=function(E){return{componentJson:E.componentJson}},F=function(E){return{componentJson:E.componentJson}},_=function(E){return{componentJson:E.componentJson}},N=function(E){return{componentJson:E.componentJson}},$=function(E){return{componentJson:E.componentJson}};function P(E,A){return t(this,void 0,void 0,function(){var V,H,O;return e(this,function(K){switch(K.label){case 0:return V="wysiwyg/bff/v2/componentLibrary/getComponentLibrary/",H=new URLSearchParams,[4,A({path:V,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:H.toString()})];case 1:if(O=K.sent(),O.status===200)return[2,{status:200,body:r(O.body)}];throw new Error("Unknown response")}})})}var L=function(E){return{postGetComponentLibrary:n(P,E)}};return nm.createApi=L,nm}var kKo=FKo(),rm={},Bbe;function LKo(){if(Bbe)return rm;Bbe=1;var t=rm&&rm.__awaiter||function(c,d,m,p){function h(f){return f instanceof m?f:new m(function(g){g(f)})}return new(m||(m=Promise))(function(f,g){function C(w){try{S(p.next(w))}catch(T){g(T)}}function v(w){try{S(p.throw(w))}catch(T){g(T)}}function S(w){w.done?f(w.value):h(w.value).then(C,v)}S((p=p.apply(c,d||[])).next())})},e=rm&&rm.__generator||function(c,d){var m={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},p,h,f,g=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return g.next=C(0),g.throw=C(1),g.return=C(2),typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function C(S){return function(w){return v([S,w])}}function v(S){if(p)throw new TypeError("Generator is already executing.");for(;g&&(g=0,S[0]&&(m=0)),m;)try{if(p=1,h&&(f=S[0]&2?h.return:S[0]?h.throw||((f=h.return)&&f.call(h),0):h.next)&&!(f=f.call(h,S[1])).done)return f;switch(h=0,f&&(S=[S[0]&2,f.value]),S[0]){case 0:case 1:f=S;break;case 4:return m.label++,{value:S[1],done:!1};case 5:m.label++,h=S[1],S=[0];continue;case 7:S=m.ops.pop(),m.trys.pop();continue;default:if(f=m.trys,!(f=f.length>0&&f[f.length-1])&&(S[0]===6||S[0]===2)){m=0;continue}if(S[0]===3&&(!f||S[1]>f[0]&&S[1]<f[3])){m.label=S[1];break}if(S[0]===6&&m.label<f[1]){m.label=f[1],f=S;break}if(f&&m.label<f[2]){m.label=f[2],m.ops.push(S);break}f[2]&&m.ops.pop(),m.trys.pop();continue}S=d.call(c,m)}catch(w){S=[6,w],h=0}finally{p=f=0}if(S[0]&5)throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}};Object.defineProperty(rm,"__esModule",{value:!0}),rm.createApi=void 0;var o=function(c,d){return function(m){return c(m,d)}},n=function(c){return{sections:c.sections.map(function(d){return r(d)})}},r=function(c){return{sectionId:c.sectionId,sectionName:c.sectionName}},i=function(c){return{sectionItemId:c.sectionItemId}},s=function(c){return{message:c.message}};function a(c,d){return t(this,void 0,void 0,function(){var m,p,h;return e(this,function(f){switch(f.label){case 0:return m="wysiwyg/bff/v2/addThemeLibrarySectionItemModalWindow/getThemeLibrarySections/",p=new URLSearchParams,[4,d({path:m,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c.body),query:p.toString()})];case 1:if(h=f.sent(),h.status===200)return[2,{status:200,body:n(h.body)}];throw new Error("Unknown response")}})})}function l(c,d){return t(this,void 0,void 0,function(){var m,p,h;return e(this,function(f){switch(f.label){case 0:return m="wysiwyg/bff/v2/addThemeLibrarySectionItemModalWindow/createThemeLibrarySectionItem/",p=new URLSearchParams,[4,d({path:m,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c.body),query:p.toString()})];case 1:if(h=f.sent(),h.status===200)return[2,{status:200,body:i(h.body)}];if(h.status===400)return[2,{status:400,body:s(h.body)}];throw new Error("Unknown response")}})})}var u=function(c){return{postGetThemeLibrarySections:o(a,c),postCreateThemeLibrarySectionItem:o(l,c)}};return rm.createApi=u,rm}var EKo=LKo(),im={},Dbe;function _Ko(){if(Dbe)return im;Dbe=1;var t=im&&im.__awaiter||function(i,s,a,l){function u(c){return c instanceof a?c:new a(function(d){d(c)})}return new(a||(a=Promise))(function(c,d){function m(f){try{h(l.next(f))}catch(g){d(g)}}function p(f){try{h(l.throw(f))}catch(g){d(g)}}function h(f){f.done?c(f.value):u(f.value).then(m,p)}h((l=l.apply(i,s||[])).next())})},e=im&&im.__generator||function(i,s){var a={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},l,u,c,d=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return d.next=m(0),d.throw=m(1),d.return=m(2),typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function m(h){return function(f){return p([h,f])}}function p(h){if(l)throw new TypeError("Generator is already executing.");for(;d&&(d=0,h[0]&&(a=0)),a;)try{if(l=1,u&&(c=h[0]&2?u.return:h[0]?u.throw||((c=u.return)&&c.call(u),0):u.next)&&!(c=c.call(u,h[1])).done)return c;switch(u=0,c&&(h=[h[0]&2,c.value]),h[0]){case 0:case 1:c=h;break;case 4:return a.label++,{value:h[1],done:!1};case 5:a.label++,u=h[1],h=[0];continue;case 7:h=a.ops.pop(),a.trys.pop();continue;default:if(c=a.trys,!(c=c.length>0&&c[c.length-1])&&(h[0]===6||h[0]===2)){a=0;continue}if(h[0]===3&&(!c||h[1]>c[0]&&h[1]<c[3])){a.label=h[1];break}if(h[0]===6&&a.label<c[1]){a.label=c[1],c=h;break}if(c&&a.label<c[2]){a.label=c[2],a.ops.push(h);break}c[2]&&a.ops.pop(),a.trys.pop();continue}h=s.call(i,a)}catch(f){h=[6,f],u=0}finally{l=c=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}};Object.defineProperty(im,"__esModule",{value:!0}),im.createApi=void 0;var o=function(i,s){return function(a){return i(a,s)}};function n(i,s){return t(this,void 0,void 0,function(){var a,l,u;return e(this,function(c){switch(c.label){case 0:return a="wysiwyg/bff/v2/deleteThemeLibrarySectionItemModalWindow/deleteThemeLibrarySectionItem/",l=new URLSearchParams,[4,s({path:a,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i.body),query:l.toString()})];case 1:if(u=c.sent(),u.status===200)return[2,{status:200}];throw new Error("Unknown response")}})})}var r=function(i){return{postDeleteThemeLibrarySectionItem:o(n,i)}};return im.createApi=r,im}var BKo=_Ko(),sm={},Rbe;function DKo(){if(Rbe)return sm;Rbe=1;var t=sm&&sm.__awaiter||function(s,a,l,u){function c(d){return d instanceof l?d:new l(function(m){m(d)})}return new(l||(l=Promise))(function(d,m){function p(g){try{f(u.next(g))}catch(C){m(C)}}function h(g){try{f(u.throw(g))}catch(C){m(C)}}function f(g){g.done?d(g.value):c(g.value).then(p,h)}f((u=u.apply(s,a||[])).next())})},e=sm&&sm.__generator||function(s,a){var l={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},u,c,d,m=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return m.next=p(0),m.throw=p(1),m.return=p(2),typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function p(f){return function(g){return h([f,g])}}function h(f){if(u)throw new TypeError("Generator is already executing.");for(;m&&(m=0,f[0]&&(l=0)),l;)try{if(u=1,c&&(d=f[0]&2?c.return:f[0]?c.throw||((d=c.return)&&d.call(c),0):c.next)&&!(d=d.call(c,f[1])).done)return d;switch(c=0,d&&(f=[f[0]&2,d.value]),f[0]){case 0:case 1:d=f;break;case 4:return l.label++,{value:f[1],done:!1};case 5:l.label++,c=f[1],f=[0];continue;case 7:f=l.ops.pop(),l.trys.pop();continue;default:if(d=l.trys,!(d=d.length>0&&d[d.length-1])&&(f[0]===6||f[0]===2)){l=0;continue}if(f[0]===3&&(!d||f[1]>d[0]&&f[1]<d[3])){l.label=f[1];break}if(f[0]===6&&l.label<d[1]){l.label=d[1],d=f;break}if(d&&l.label<d[2]){l.label=d[2],l.ops.push(f);break}d[2]&&l.ops.pop(),l.trys.pop();continue}f=a.call(s,l)}catch(g){f=[6,g],c=0}finally{u=d=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}};Object.defineProperty(sm,"__esModule",{value:!0}),sm.createApi=void 0;var o=function(s,a){return function(l){return s(l,a)}},n=function(s){return{message:s.message}};function r(s,a){return t(this,void 0,void 0,function(){var l,u,c;return e(this,function(d){switch(d.label){case 0:return l="wysiwyg/bff/v2/deleteThemeLibrarySectionModalWindow/deleteThemeLibrarySection/",u=new URLSearchParams,[4,a({path:l,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s.body),query:u.toString()})];case 1:if(c=d.sent(),c.status===200)return[2,{status:200}];if(c.status===400)return[2,{status:400,body:n(c.body)}];throw new Error("Unknown response")}})})}var i=function(s){return{postDeleteThemeLibrarySection:o(r,s)}};return sm.createApi=i,sm}var RKo=DKo(),am={},$be;function $Ko(){if($be)return am;$be=1;var t=am&&am.__awaiter||function(u,c,d,m){function p(h){return h instanceof d?h:new d(function(f){f(h)})}return new(d||(d=Promise))(function(h,f){function g(S){try{v(m.next(S))}catch(w){f(w)}}function C(S){try{v(m.throw(S))}catch(w){f(w)}}function v(S){S.done?h(S.value):p(S.value).then(g,C)}v((m=m.apply(u,c||[])).next())})},e=am&&am.__generator||function(u,c){var d={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},m,p,h,f=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return f.next=g(0),f.throw=g(1),f.return=g(2),typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function g(v){return function(S){return C([v,S])}}function C(v){if(m)throw new TypeError("Generator is already executing.");for(;f&&(f=0,v[0]&&(d=0)),d;)try{if(m=1,p&&(h=v[0]&2?p.return:v[0]?p.throw||((h=p.return)&&h.call(p),0):p.next)&&!(h=h.call(p,v[1])).done)return h;switch(p=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return d.label++,{value:v[1],done:!1};case 5:d.label++,p=v[1],v=[0];continue;case 7:v=d.ops.pop(),d.trys.pop();continue;default:if(h=d.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){d=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){d.label=v[1];break}if(v[0]===6&&d.label<h[1]){d.label=h[1],h=v;break}if(h&&d.label<h[2]){d.label=h[2],d.ops.push(v);break}h[2]&&d.ops.pop(),d.trys.pop();continue}v=c.call(u,d)}catch(S){v=[6,S],p=0}finally{m=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}};Object.defineProperty(am,"__esModule",{value:!0}),am.createApi=void 0;var o=function(u,c){return function(d){return u(d,c)}},n=function(u){return{sections:u.sections.map(function(c){return r(c)})}},r=function(u){return{sectionId:u.sectionId,sectionName:u.sectionName}},i=function(u){return{message:u.message}};function s(u,c){return t(this,void 0,void 0,function(){var d,m,p;return e(this,function(h){switch(h.label){case 0:return d="wysiwyg/bff/v2/editThemeLibrarySectionItemModalWindow/getThemeLibrarySections/",m=new URLSearchParams,[4,c({path:d,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u.body),query:m.toString()})];case 1:if(p=h.sent(),p.status===200)return[2,{status:200,body:n(p.body)}];throw new Error("Unknown response")}})})}function a(u,c){return t(this,void 0,void 0,function(){var d,m,p;return e(this,function(h){switch(h.label){case 0:return d="wysiwyg/bff/v2/editThemeLibrarySectionItemModalWindow/updateThemeLibrarySectionItem/",m=new URLSearchParams,[4,c({path:d,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u.body),query:m.toString()})];case 1:if(p=h.sent(),p.status===200)return[2,{status:200}];if(p.status===400)return[2,{status:400,body:i(p.body)}];throw new Error("Unknown response")}})})}var l=function(u){return{postGetThemeLibrarySections:o(s,u),postUpdateThemeLibrarySectionItem:o(a,u)}};return am.createApi=l,am}var AKo=$Ko(),lm={},Abe;function NKo(){if(Abe)return lm;Abe=1;var t=lm&&lm.__awaiter||function(s,a,l,u){function c(d){return d instanceof l?d:new l(function(m){m(d)})}return new(l||(l=Promise))(function(d,m){function p(g){try{f(u.next(g))}catch(C){m(C)}}function h(g){try{f(u.throw(g))}catch(C){m(C)}}function f(g){g.done?d(g.value):c(g.value).then(p,h)}f((u=u.apply(s,a||[])).next())})},e=lm&&lm.__generator||function(s,a){var l={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},u,c,d,m=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return m.next=p(0),m.throw=p(1),m.return=p(2),typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function p(f){return function(g){return h([f,g])}}function h(f){if(u)throw new TypeError("Generator is already executing.");for(;m&&(m=0,f[0]&&(l=0)),l;)try{if(u=1,c&&(d=f[0]&2?c.return:f[0]?c.throw||((d=c.return)&&d.call(c),0):c.next)&&!(d=d.call(c,f[1])).done)return d;switch(c=0,d&&(f=[f[0]&2,d.value]),f[0]){case 0:case 1:d=f;break;case 4:return l.label++,{value:f[1],done:!1};case 5:l.label++,c=f[1],f=[0];continue;case 7:f=l.ops.pop(),l.trys.pop();continue;default:if(d=l.trys,!(d=d.length>0&&d[d.length-1])&&(f[0]===6||f[0]===2)){l=0;continue}if(f[0]===3&&(!d||f[1]>d[0]&&f[1]<d[3])){l.label=f[1];break}if(f[0]===6&&l.label<d[1]){l.label=d[1],d=f;break}if(d&&l.label<d[2]){l.label=d[2],l.ops.push(f);break}d[2]&&l.ops.pop(),l.trys.pop();continue}f=a.call(s,l)}catch(g){f=[6,g],c=0}finally{u=d=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}};Object.defineProperty(lm,"__esModule",{value:!0}),lm.createApi=void 0;var o=function(s,a){return function(l){return s(l,a)}},n=function(s){return{sectionId:s.sectionId}};function r(s,a){return t(this,void 0,void 0,function(){var l,u,c;return e(this,function(d){switch(d.label){case 0:return l="wysiwyg/bff/v2/addComponentLibrarySectionModalWindow/createComponentLibrarySection/",u=new URLSearchParams,[4,a({path:l,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s.body),query:u.toString()})];case 1:if(c=d.sent(),c.status===200)return[2,{status:200,body:n(c.body)}];throw new Error("Unknown response")}})})}var i=function(s){return{postCreateComponentLibrarySection:o(r,s)}};return lm.createApi=i,lm}var VKo=NKo(),um={},Nbe;function IKo(){if(Nbe)return um;Nbe=1;var t=um&&um.__awaiter||function(u,c,d,m){function p(h){return h instanceof d?h:new d(function(f){f(h)})}return new(d||(d=Promise))(function(h,f){function g(S){try{v(m.next(S))}catch(w){f(w)}}function C(S){try{v(m.throw(S))}catch(w){f(w)}}function v(S){S.done?h(S.value):p(S.value).then(g,C)}v((m=m.apply(u,c||[])).next())})},e=um&&um.__generator||function(u,c){var d={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},m,p,h,f=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return f.next=g(0),f.throw=g(1),f.return=g(2),typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function g(v){return function(S){return C([v,S])}}function C(v){if(m)throw new TypeError("Generator is already executing.");for(;f&&(f=0,v[0]&&(d=0)),d;)try{if(m=1,p&&(h=v[0]&2?p.return:v[0]?p.throw||((h=p.return)&&h.call(p),0):p.next)&&!(h=h.call(p,v[1])).done)return h;switch(p=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return d.label++,{value:v[1],done:!1};case 5:d.label++,p=v[1],v=[0];continue;case 7:v=d.ops.pop(),d.trys.pop();continue;default:if(h=d.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){d=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){d.label=v[1];break}if(v[0]===6&&d.label<h[1]){d.label=h[1],h=v;break}if(h&&d.label<h[2]){d.label=h[2],d.ops.push(v);break}h[2]&&d.ops.pop(),d.trys.pop();continue}v=c.call(u,d)}catch(S){v=[6,S],p=0}finally{m=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}};Object.defineProperty(um,"__esModule",{value:!0}),um.createApi=void 0;var o=function(u,c){return function(d){return u(d,c)}},n=function(u){return{sections:u.sections.map(function(c){return r(c)})}},r=function(u){return{sectionId:u.sectionId,sectionName:u.sectionName}},i=function(u){return{message:u.message}};function s(u,c){return t(this,void 0,void 0,function(){var d,m,p;return e(this,function(h){switch(h.label){case 0:return d="wysiwyg/bff/v2/editComponentLibrarySectionItemModalWindow/getComponentLibrarySections/",m=new URLSearchParams,[4,c({path:d,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u.body),query:m.toString()})];case 1:if(p=h.sent(),p.status===200)return[2,{status:200,body:n(p.body)}];throw new Error("Unknown response")}})})}function a(u,c){return t(this,void 0,void 0,function(){var d,m,p;return e(this,function(h){switch(h.label){case 0:return d="wysiwyg/bff/v2/editComponentLibrarySectionItemModalWindow/updateComponentLibrarySectionItem/",m=new URLSearchParams,[4,c({path:d,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u.body),query:m.toString()})];case 1:if(p=h.sent(),p.status===200)return[2,{status:200}];if(p.status===400)return[2,{status:400,body:i(p.body)}];throw new Error("Unknown response")}})})}var l=function(u){return{postGetComponentLibrarySections:o(s,u),postUpdateComponentLibrarySectionItem:o(a,u)}};return um.createApi=l,um}var PKo=IKo(),cm={},Vbe;function MKo(){if(Vbe)return cm;Vbe=1;var t=cm&&cm.__awaiter||function(i,s,a,l){function u(c){return c instanceof a?c:new a(function(d){d(c)})}return new(a||(a=Promise))(function(c,d){function m(f){try{h(l.next(f))}catch(g){d(g)}}function p(f){try{h(l.throw(f))}catch(g){d(g)}}function h(f){f.done?c(f.value):u(f.value).then(m,p)}h((l=l.apply(i,s||[])).next())})},e=cm&&cm.__generator||function(i,s){var a={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},l,u,c,d=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return d.next=m(0),d.throw=m(1),d.return=m(2),typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function m(h){return function(f){return p([h,f])}}function p(h){if(l)throw new TypeError("Generator is already executing.");for(;d&&(d=0,h[0]&&(a=0)),a;)try{if(l=1,u&&(c=h[0]&2?u.return:h[0]?u.throw||((c=u.return)&&c.call(u),0):u.next)&&!(c=c.call(u,h[1])).done)return c;switch(u=0,c&&(h=[h[0]&2,c.value]),h[0]){case 0:case 1:c=h;break;case 4:return a.label++,{value:h[1],done:!1};case 5:a.label++,u=h[1],h=[0];continue;case 7:h=a.ops.pop(),a.trys.pop();continue;default:if(c=a.trys,!(c=c.length>0&&c[c.length-1])&&(h[0]===6||h[0]===2)){a=0;continue}if(h[0]===3&&(!c||h[1]>c[0]&&h[1]<c[3])){a.label=h[1];break}if(h[0]===6&&a.label<c[1]){a.label=c[1],c=h;break}if(c&&a.label<c[2]){a.label=c[2],a.ops.push(h);break}c[2]&&a.ops.pop(),a.trys.pop();continue}h=s.call(i,a)}catch(f){h=[6,f],u=0}finally{l=c=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}};Object.defineProperty(cm,"__esModule",{value:!0}),cm.createApi=void 0;var o=function(i,s){return function(a){return i(a,s)}};function n(i,s){return t(this,void 0,void 0,function(){var a,l,u;return e(this,function(c){switch(c.label){case 0:return a="wysiwyg/bff/v2/deleteComponentLibrarySectionItemModalWindow/deleteComponentLibrarySectionItem/",l=new URLSearchParams,[4,s({path:a,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i.body),query:l.toString()})];case 1:if(u=c.sent(),u.status===200)return[2,{status:200}];throw new Error("Unknown response")}})})}var r=function(i){return{postDeleteComponentLibrarySectionItem:o(n,i)}};return cm.createApi=r,cm}var OKo=MKo(),dm={},Ibe;function WKo(){if(Ibe)return dm;Ibe=1;var t=dm&&dm.__awaiter||function(s,a,l,u){function c(d){return d instanceof l?d:new l(function(m){m(d)})}return new(l||(l=Promise))(function(d,m){function p(g){try{f(u.next(g))}catch(C){m(C)}}function h(g){try{f(u.throw(g))}catch(C){m(C)}}function f(g){g.done?d(g.value):c(g.value).then(p,h)}f((u=u.apply(s,a||[])).next())})},e=dm&&dm.__generator||function(s,a){var l={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},u,c,d,m=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return m.next=p(0),m.throw=p(1),m.return=p(2),typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function p(f){return function(g){return h([f,g])}}function h(f){if(u)throw new TypeError("Generator is already executing.");for(;m&&(m=0,f[0]&&(l=0)),l;)try{if(u=1,c&&(d=f[0]&2?c.return:f[0]?c.throw||((d=c.return)&&d.call(c),0):c.next)&&!(d=d.call(c,f[1])).done)return d;switch(c=0,d&&(f=[f[0]&2,d.value]),f[0]){case 0:case 1:d=f;break;case 4:return l.label++,{value:f[1],done:!1};case 5:l.label++,c=f[1],f=[0];continue;case 7:f=l.ops.pop(),l.trys.pop();continue;default:if(d=l.trys,!(d=d.length>0&&d[d.length-1])&&(f[0]===6||f[0]===2)){l=0;continue}if(f[0]===3&&(!d||f[1]>d[0]&&f[1]<d[3])){l.label=f[1];break}if(f[0]===6&&l.label<d[1]){l.label=d[1],d=f;break}if(d&&l.label<d[2]){l.label=d[2],l.ops.push(f);break}d[2]&&l.ops.pop(),l.trys.pop();continue}f=a.call(s,l)}catch(g){f=[6,g],c=0}finally{u=d=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}};Object.defineProperty(dm,"__esModule",{value:!0}),dm.createApi=void 0;var o=function(s,a){return function(l){return s(l,a)}},n=function(s){return{sectionId:s.sectionId}};function r(s,a){return t(this,void 0,void 0,function(){var l,u,c;return e(this,function(d){switch(d.label){case 0:return l="wysiwyg/bff/v2/addThemeLibrarySectionModalWindow/createThemeLibrarySection/",u=new URLSearchParams,[4,a({path:l,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s.body),query:u.toString()})];case 1:if(c=d.sent(),c.status===200)return[2,{status:200,body:n(c.body)}];throw new Error("Unknown response")}})})}var i=function(s){return{postCreateThemeLibrarySection:o(r,s)}};return dm.createApi=i,dm}var HKo=WKo(),mm={},Pbe;function zKo(){if(Pbe)return mm;Pbe=1;var t=mm&&mm.__awaiter||function(s,a,l,u){function c(d){return d instanceof l?d:new l(function(m){m(d)})}return new(l||(l=Promise))(function(d,m){function p(g){try{f(u.next(g))}catch(C){m(C)}}function h(g){try{f(u.throw(g))}catch(C){m(C)}}function f(g){g.done?d(g.value):c(g.value).then(p,h)}f((u=u.apply(s,a||[])).next())})},e=mm&&mm.__generator||function(s,a){var l={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},u,c,d,m=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return m.next=p(0),m.throw=p(1),m.return=p(2),typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function p(f){return function(g){return h([f,g])}}function h(f){if(u)throw new TypeError("Generator is already executing.");for(;m&&(m=0,f[0]&&(l=0)),l;)try{if(u=1,c&&(d=f[0]&2?c.return:f[0]?c.throw||((d=c.return)&&d.call(c),0):c.next)&&!(d=d.call(c,f[1])).done)return d;switch(c=0,d&&(f=[f[0]&2,d.value]),f[0]){case 0:case 1:d=f;break;case 4:return l.label++,{value:f[1],done:!1};case 5:l.label++,c=f[1],f=[0];continue;case 7:f=l.ops.pop(),l.trys.pop();continue;default:if(d=l.trys,!(d=d.length>0&&d[d.length-1])&&(f[0]===6||f[0]===2)){l=0;continue}if(f[0]===3&&(!d||f[1]>d[0]&&f[1]<d[3])){l.label=f[1];break}if(f[0]===6&&l.label<d[1]){l.label=d[1],d=f;break}if(d&&l.label<d[2]){l.label=d[2],l.ops.push(f);break}d[2]&&l.ops.pop(),l.trys.pop();continue}f=a.call(s,l)}catch(g){f=[6,g],c=0}finally{u=d=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}};Object.defineProperty(mm,"__esModule",{value:!0}),mm.createApi=void 0;var o=function(s,a){return function(l){return s(l,a)}},n=function(s){return{message:s.message}};function r(s,a){return t(this,void 0,void 0,function(){var l,u,c;return e(this,function(d){switch(d.label){case 0:return l="wysiwyg/bff/v2/deleteComponentLibrarySectionModalWindow/deleteComponentLibrarySection/",u=new URLSearchParams,[4,a({path:l,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s.body),query:u.toString()})];case 1:if(c=d.sent(),c.status===200)return[2,{status:200}];if(c.status===400)return[2,{status:400,body:n(c.body)}];throw new Error("Unknown response")}})})}var i=function(s){return{postDeleteComponentLibrarySection:o(r,s)}};return mm.createApi=i,mm}var jKo=zKo(),pm={},Mbe;function KKo(){if(Mbe)return pm;Mbe=1;var t=pm&&pm.__awaiter||function(u,c,d,m){function p(h){return h instanceof d?h:new d(function(f){f(h)})}return new(d||(d=Promise))(function(h,f){function g(S){try{v(m.next(S))}catch(w){f(w)}}function C(S){try{v(m.throw(S))}catch(w){f(w)}}function v(S){S.done?h(S.value):p(S.value).then(g,C)}v((m=m.apply(u,c||[])).next())})},e=pm&&pm.__generator||function(u,c){var d={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},m,p,h,f=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return f.next=g(0),f.throw=g(1),f.return=g(2),typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function g(v){return function(S){return C([v,S])}}function C(v){if(m)throw new TypeError("Generator is already executing.");for(;f&&(f=0,v[0]&&(d=0)),d;)try{if(m=1,p&&(h=v[0]&2?p.return:v[0]?p.throw||((h=p.return)&&h.call(p),0):p.next)&&!(h=h.call(p,v[1])).done)return h;switch(p=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return d.label++,{value:v[1],done:!1};case 5:d.label++,p=v[1],v=[0];continue;case 7:v=d.ops.pop(),d.trys.pop();continue;default:if(h=d.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){d=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){d.label=v[1];break}if(v[0]===6&&d.label<h[1]){d.label=h[1],h=v;break}if(h&&d.label<h[2]){d.label=h[2],d.ops.push(v);break}h[2]&&d.ops.pop(),d.trys.pop();continue}v=c.call(u,d)}catch(S){v=[6,S],p=0}finally{m=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}};Object.defineProperty(pm,"__esModule",{value:!0}),pm.createApi=void 0;var o=function(u,c){return function(d){return u(d,c)}},n=function(u){return{categories:u.categories.map(function(c){return i(c)})}},r=function(u){return{categories:u.categories.map(function(c){return i(c)})}},i=function(u){return{id:u.id,name:u.name,path:u.path}};function s(u,c){return t(this,void 0,void 0,function(){var d,m,p;return e(this,function(h){switch(h.label){case 0:return d="wysiwyg/bff/v2/productCategoryPickerModalWindow/getProductCategoriesByIds/",m=new URLSearchParams,[4,c({path:d,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u.body),query:m.toString()})];case 1:if(p=h.sent(),p.status===200)return[2,{status:200,body:n(p.body)}];throw new Error("Unknown response")}})})}function a(u,c){return t(this,void 0,void 0,function(){var d,m,p;return e(this,function(h){switch(h.label){case 0:return d="wysiwyg/bff/v2/productCategoryPickerModalWindow/findProductCategoriesBySearchPhrase/",m=new URLSearchParams,[4,c({path:d,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u.body),query:m.toString()})];case 1:if(p=h.sent(),p.status===200)return[2,{status:200,body:r(p.body)}];throw new Error("Unknown response")}})})}var l=function(u){return{postGetProductCategoriesByIds:o(s,u),postFindProductCategoriesBySearchPhrase:o(a,u)}};return pm.createApi=l,pm}var UKo=KKo(),hm={},Obe;function qKo(){if(Obe)return hm;Obe=1;var t=hm&&hm.__awaiter||function(u,c,d,m){function p(h){return h instanceof d?h:new d(function(f){f(h)})}return new(d||(d=Promise))(function(h,f){function g(S){try{v(m.next(S))}catch(w){f(w)}}function C(S){try{v(m.throw(S))}catch(w){f(w)}}function v(S){S.done?h(S.value):p(S.value).then(g,C)}v((m=m.apply(u,c||[])).next())})},e=hm&&hm.__generator||function(u,c){var d={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},m,p,h,f=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return f.next=g(0),f.throw=g(1),f.return=g(2),typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function g(v){return function(S){return C([v,S])}}function C(v){if(m)throw new TypeError("Generator is already executing.");for(;f&&(f=0,v[0]&&(d=0)),d;)try{if(m=1,p&&(h=v[0]&2?p.return:v[0]?p.throw||((h=p.return)&&h.call(p),0):p.next)&&!(h=h.call(p,v[1])).done)return h;switch(p=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return d.label++,{value:v[1],done:!1};case 5:d.label++,p=v[1],v=[0];continue;case 7:v=d.ops.pop(),d.trys.pop();continue;default:if(h=d.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){d=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){d.label=v[1];break}if(v[0]===6&&d.label<h[1]){d.label=h[1],h=v;break}if(h&&d.label<h[2]){d.label=h[2],d.ops.push(v);break}h[2]&&d.ops.pop(),d.trys.pop();continue}v=c.call(u,d)}catch(S){v=[6,S],p=0}finally{m=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}};Object.defineProperty(hm,"__esModule",{value:!0}),hm.createApi=void 0;var o=function(u,c){return function(d){return u(d,c)}},n=function(u){return{products:u.products.map(function(c){return i(c)})}},r=function(u){return{products:u.products.map(function(c){return i(c)})}},i=function(u){return{internalId:u.internalId,externalId:u.externalId,name:u.name,pictureUrl:u.pictureUrl,isAvailable:u.isAvailable}};function s(u,c){return t(this,void 0,void 0,function(){var d,m,p;return e(this,function(h){switch(h.label){case 0:return d="wysiwyg/bff/v2/productPickerModalWindow/findProductsBySearchPhrase/",m=new URLSearchParams,[4,c({path:d,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u.body),query:m.toString()})];case 1:if(p=h.sent(),p.status===200)return[2,{status:200,body:n(p.body)}];throw new Error("Unknown response")}})})}function a(u,c){return t(this,void 0,void 0,function(){var d,m,p;return e(this,function(h){switch(h.label){case 0:return d="wysiwyg/bff/v2/productPickerModalWindow/getProductsByIds/",m=new URLSearchParams,[4,c({path:d,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u.body),query:m.toString()})];case 1:if(p=h.sent(),p.status===200)return[2,{status:200,body:r(p.body)}];throw new Error("Unknown response")}})})}var l=function(u){return{postFindProductsBySearchPhrase:o(s,u),postGetProductsByIds:o(a,u)}};return hm.createApi=l,hm}var GKo=qKo(),fm={},Wbe;function JKo(){if(Wbe)return fm;Wbe=1;var t=fm&&fm.__awaiter||function(_,N,$,P){function L(E){return E instanceof $?E:new $(function(A){A(E)})}return new($||($=Promise))(function(E,A){function V(K){try{O(P.next(K))}catch(he){A(he)}}function H(K){try{O(P.throw(K))}catch(he){A(he)}}function O(K){K.done?E(K.value):L(K.value).then(V,H)}O((P=P.apply(_,N||[])).next())})},e=fm&&fm.__generator||function(_,N){var $={label:0,sent:function(){if(E[0]&1)throw E[1];return E[1]},trys:[],ops:[]},P,L,E,A=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return A.next=V(0),A.throw=V(1),A.return=V(2),typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function V(O){return function(K){return H([O,K])}}function H(O){if(P)throw new TypeError("Generator is already executing.");for(;A&&(A=0,O[0]&&($=0)),$;)try{if(P=1,L&&(E=O[0]&2?L.return:O[0]?L.throw||((E=L.return)&&E.call(L),0):L.next)&&!(E=E.call(L,O[1])).done)return E;switch(L=0,E&&(O=[O[0]&2,E.value]),O[0]){case 0:case 1:E=O;break;case 4:return $.label++,{value:O[1],done:!1};case 5:$.label++,L=O[1],O=[0];continue;case 7:O=$.ops.pop(),$.trys.pop();continue;default:if(E=$.trys,!(E=E.length>0&&E[E.length-1])&&(O[0]===6||O[0]===2)){$=0;continue}if(O[0]===3&&(!E||O[1]>E[0]&&O[1]<E[3])){$.label=O[1];break}if(O[0]===6&&$.label<E[1]){$.label=E[1],E=O;break}if(E&&$.label<E[2]){$.label=E[2],$.ops.push(O);break}E[2]&&$.ops.pop(),$.trys.pop();continue}O=N.call(_,$)}catch(K){O=[6,K],L=0}finally{P=E=0}if(O[0]&5)throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}};Object.defineProperty(fm,"__esModule",{value:!0}),fm.createApi=void 0;var o=function(_,N){return function($){return _($,N)}},n=function(_){return{message:_.message}};function r(_,N){return t(this,void 0,void 0,function(){var $,P,L;return e(this,function(E){switch(E.label){case 0:return $="wysiwyg/bff/v2/saveFavoriteTemplateModalWindow/createFavoriteCommonTemplate/",P=new URLSearchParams,[4,N({path:$,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_.body),query:P.toString()})];case 1:if(L=E.sent(),L.status===200)return[2,{status:200}];if(L.status===400)return[2,{status:400,body:n(L.body)}];throw new Error("Unknown response")}})})}function i(_,N){return t(this,void 0,void 0,function(){var $,P,L;return e(this,function(E){switch(E.label){case 0:return $="wysiwyg/bff/v2/saveFavoriteTemplateModalWindow/createFavoriteMulticastTemplate/",P=new URLSearchParams,[4,N({path:$,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_.body),query:P.toString()})];case 1:if(L=E.sent(),L.status===200)return[2,{status:200}];if(L.status===400)return[2,{status:400,body:n(L.body)}];throw new Error("Unknown response")}})})}function s(_,N){return t(this,void 0,void 0,function(){var $,P,L;return e(this,function(E){switch(E.label){case 0:return $="wysiwyg/bff/v2/saveFavoriteTemplateModalWindow/createFavoriteTransactionalTemplate/",P=new URLSearchParams,[4,N({path:$,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_.body),query:P.toString()})];case 1:if(L=E.sent(),L.status===200)return[2,{status:200}];if(L.status===400)return[2,{status:400,body:n(L.body)}];throw new Error("Unknown response")}})})}function a(_,N){return t(this,void 0,void 0,function(){var $,P,L;return e(this,function(E){switch(E.label){case 0:return $="wysiwyg/bff/v2/saveFavoriteTemplateModalWindow/createFavoriteTriggerAbandonedBasketPriceDropTemplate/",P=new URLSearchParams,[4,N({path:$,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_.body),query:P.toString()})];case 1:if(L=E.sent(),L.status===200)return[2,{status:200}];if(L.status===400)return[2,{status:400,body:n(L.body)}];throw new Error("Unknown response")}})})}function l(_,N){return t(this,void 0,void 0,function(){var $,P,L;return e(this,function(E){switch(E.label){case 0:return $="wysiwyg/bff/v2/saveFavoriteTemplateModalWindow/createFavoriteTriggerAbandonedBasketTemplate/",P=new URLSearchParams,[4,N({path:$,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_.body),query:P.toString()})];case 1:if(L=E.sent(),L.status===200)return[2,{status:200}];if(L.status===400)return[2,{status:400,body:n(L.body)}];throw new Error("Unknown response")}})})}function u(_,N){return t(this,void 0,void 0,function(){var $,P,L;return e(this,function(E){switch(E.label){case 0:return $="wysiwyg/bff/v2/saveFavoriteTemplateModalWindow/createFavoriteTriggerAbandonedCategoryTemplate/",P=new URLSearchParams,[4,N({path:$,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_.body),query:P.toString()})];case 1:if(L=E.sent(),L.status===200)return[2,{status:200}];if(L.status===400)return[2,{status:400,body:n(L.body)}];throw new Error("Unknown response")}})})}function c(_,N){return t(this,void 0,void 0,function(){var $,P,L;return e(this,function(E){switch(E.label){case 0:return $="wysiwyg/bff/v2/saveFavoriteTemplateModalWindow/createFavoriteTriggerAbandonedSearchTemplate/",P=new URLSearchParams,[4,N({path:$,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_.body),query:P.toString()})];case 1:if(L=E.sent(),L.status===200)return[2,{status:200}];if(L.status===400)return[2,{status:400,body:n(L.body)}];throw new Error("Unknown response")}})})}function d(_,N){return t(this,void 0,void 0,function(){var $,P,L;return e(this,function(E){switch(E.label){case 0:return $="wysiwyg/bff/v2/saveFavoriteTemplateModalWindow/createFavoriteTriggerAbandonedViewNATemplate/",P=new URLSearchParams,[4,N({path:$,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_.body),query:P.toString()})];case 1:if(L=E.sent(),L.status===200)return[2,{status:200}];if(L.status===400)return[2,{status:400,body:n(L.body)}];throw new Error("Unknown response")}})})}function m(_,N){return t(this,void 0,void 0,function(){var $,P,L;return e(this,function(E){switch(E.label){case 0:return $="wysiwyg/bff/v2/saveFavoriteTemplateModalWindow/createFavoriteTriggerAbandonedViewPriceDropTemplate/",P=new URLSearchParams,[4,N({path:$,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_.body),query:P.toString()})];case 1:if(L=E.sent(),L.status===200)return[2,{status:200}];if(L.status===400)return[2,{status:400,body:n(L.body)}];throw new Error("Unknown response")}})})}function p(_,N){return t(this,void 0,void 0,function(){var $,P,L;return e(this,function(E){switch(E.label){case 0:return $="wysiwyg/bff/v2/saveFavoriteTemplateModalWindow/createFavoriteTriggerAbandonedViewTemplate/",P=new URLSearchParams,[4,N({path:$,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_.body),query:P.toString()})];case 1:if(L=E.sent(),L.status===200)return[2,{status:200}];if(L.status===400)return[2,{status:400,body:n(L.body)}];throw new Error("Unknown response")}})})}function h(_,N){return t(this,void 0,void 0,function(){var $,P,L;return e(this,function(E){switch(E.label){case 0:return $="wysiwyg/bff/v2/saveFavoriteTemplateModalWindow/createFavoriteTriggerNextBestOffer2Template/",P=new URLSearchParams,[4,N({path:$,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_.body),query:P.toString()})];case 1:if(L=E.sent(),L.status===200)return[2,{status:200}];if(L.status===400)return[2,{status:400,body:n(L.body)}];throw new Error("Unknown response")}})})}function f(_,N){return t(this,void 0,void 0,function(){var $,P,L;return e(this,function(E){switch(E.label){case 0:return $="wysiwyg/bff/v2/saveFavoriteTemplateModalWindow/createFavoriteTriggerPostTransactionTemplate/",P=new URLSearchParams,[4,N({path:$,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_.body),query:P.toString()})];case 1:if(L=E.sent(),L.status===200)return[2,{status:200}];if(L.status===400)return[2,{status:400,body:n(L.body)}];throw new Error("Unknown response")}})})}function g(_,N){return t(this,void 0,void 0,function(){var $,P,L;return e(this,function(E){switch(E.label){case 0:return $="wysiwyg/bff/v2/saveFavoriteTemplateModalWindow/createFavoriteTriggerPriceDropTemplate/",P=new URLSearchParams,[4,N({path:$,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_.body),query:P.toString()})];case 1:if(L=E.sent(),L.status===200)return[2,{status:200}];if(L.status===400)return[2,{status:400,body:n(L.body)}];throw new Error("Unknown response")}})})}function C(_,N){return t(this,void 0,void 0,function(){var $,P,L;return e(this,function(E){switch(E.label){case 0:return $="wysiwyg/bff/v2/saveFavoriteTemplateModalWindow/createFavoriteTriggerProductBackInStockTemplate/",P=new URLSearchParams,[4,N({path:$,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_.body),query:P.toString()})];case 1:if(L=E.sent(),L.status===200)return[2,{status:200}];if(L.status===400)return[2,{status:400,body:n(L.body)}];throw new Error("Unknown response")}})})}function v(_,N){return t(this,void 0,void 0,function(){var $,P,L;return e(this,function(E){switch(E.label){case 0:return $="wysiwyg/bff/v2/saveFavoriteTemplateModalWindow/createFavoriteTriggerProductStillOutOfStockTemplate/",P=new URLSearchParams,[4,N({path:$,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_.body),query:P.toString()})];case 1:if(L=E.sent(),L.status===200)return[2,{status:200}];if(L.status===400)return[2,{status:400,body:n(L.body)}];throw new Error("Unknown response")}})})}function S(_,N){return t(this,void 0,void 0,function(){var $,P,L;return e(this,function(E){switch(E.label){case 0:return $="wysiwyg/bff/v2/saveFavoriteTemplateModalWindow/createFavoriteTriggerReactivationTemplate/",P=new URLSearchParams,[4,N({path:$,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_.body),query:P.toString()})];case 1:if(L=E.sent(),L.status===200)return[2,{status:200}];if(L.status===400)return[2,{status:400,body:n(L.body)}];throw new Error("Unknown response")}})})}function w(_,N){return t(this,void 0,void 0,function(){var $,P,L;return e(this,function(E){switch(E.label){case 0:return $="wysiwyg/bff/v2/saveFavoriteTemplateModalWindow/createFavoriteTriggerRepurchaseTemplate/",P=new URLSearchParams,[4,N({path:$,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_.body),query:P.toString()})];case 1:if(L=E.sent(),L.status===200)return[2,{status:200}];if(L.status===400)return[2,{status:400,body:n(L.body)}];throw new Error("Unknown response")}})})}function T(_,N){return t(this,void 0,void 0,function(){var $,P,L;return e(this,function(E){switch(E.label){case 0:return $="wysiwyg/bff/v2/saveFavoriteTemplateModalWindow/createFavoriteTriggerWelcomeSequenceTemplate/",P=new URLSearchParams,[4,N({path:$,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_.body),query:P.toString()})];case 1:if(L=E.sent(),L.status===200)return[2,{status:200}];if(L.status===400)return[2,{status:400,body:n(L.body)}];throw new Error("Unknown response")}})})}var F=function(_){return{postCreateFavoriteCommonTemplate:o(r,_),postCreateFavoriteMulticastTemplate:o(i,_),postCreateFavoriteTransactionalTemplate:o(s,_),postCreateFavoriteTriggerAbandonedBasketPriceDropTemplate:o(a,_),postCreateFavoriteTriggerAbandonedBasketTemplate:o(l,_),postCreateFavoriteTriggerAbandonedCategoryTemplate:o(u,_),postCreateFavoriteTriggerAbandonedSearchTemplate:o(c,_),postCreateFavoriteTriggerAbandonedViewNATemplate:o(d,_),postCreateFavoriteTriggerAbandonedViewPriceDropTemplate:o(m,_),postCreateFavoriteTriggerAbandonedViewTemplate:o(p,_),postCreateFavoriteTriggerNextBestOffer2Template:o(h,_),postCreateFavoriteTriggerPostTransactionTemplate:o(f,_),postCreateFavoriteTriggerPriceDropTemplate:o(g,_),postCreateFavoriteTriggerProductBackInStockTemplate:o(C,_),postCreateFavoriteTriggerProductStillOutOfStockTemplate:o(v,_),postCreateFavoriteTriggerReactivationTemplate:o(S,_),postCreateFavoriteTriggerRepurchaseTemplate:o(w,_),postCreateFavoriteTriggerWelcomeSequenceTemplate:o(T,_)}};return fm.createApi=F,fm}var YKo=JKo();const hWe="#app",yl=document.querySelector(hWe),nt={partnerId:yl.getAttribute("data-partner-id"),wysiwygBffProxyBaseUrl:yl.getAttribute("data-wysiwyg-bff-proxy-base-url"),wysiwygTemplateEditorBffBaseUrl:yl.getAttribute("data-wysiwyg-template-editor-bff-base-url"),antiForgeryHeaderTokenName:yl.getAttribute("data-anti-forgery-header-token-name"),antiForgeryHeaderTokenValue:yl.getAttribute("data-anti-forgery-header-token-value"),antiForgeryFormTokenName:yl.getAttribute("data-anti-forgery-form-token-name"),antiForgeryFormTokenValue:yl.getAttribute("data-anti-forgery-form-token-value"),emailTemplateJson:yl.getAttribute("data-email-template-json"),previewTemplateDataJson:yl.getAttribute("data-preview-template-data-json"),resetTemplateFormUrl:yl.getAttribute("data-reset-template-form-url"),exitLink:yl.getAttribute("data-exit-link"),localeKey:yl.getAttribute("data-locale-key")||"en"},fWe=t=>Jr({baseUrl:t.baseUrl,antiForgeryTokenHeaderName:nt.antiForgeryHeaderTokenName,antiForgeryTokenValue:nt.antiForgeryHeaderTokenValue}),ZKo=gKo.createApi(Jr({baseUrl:nt.wysiwygTemplateEditorBffBaseUrl,antiForgeryTokenHeaderName:nt.antiForgeryHeaderTokenName,antiForgeryTokenValue:nt.antiForgeryHeaderTokenValue})),XKo=YKo.createApi(fWe({baseUrl:nt.wysiwygBffProxyBaseUrl})),QKo=()=>{const t=new FormData;t.append(nt.antiForgeryFormTokenName,nt.antiForgeryFormTokenValue);const e=mat({method:"POST",action:nt.resetTemplateFormUrl,formData:t});document.body.appendChild(e),e.submit()};let eUo={},tUo={BatchId:""};const oUo=vKo.createApi(fWe({baseUrl:nt.wysiwygBffProxyBaseUrl})),nUo=nKo({partnerId:nt.partnerId,listExpressionDataSourceBffClient:oUo,customerStockId:void 0}),F6=Xst({listExpressionDataSourceEvaluator:nUo}),rUo=rKo(),DP=dat({listExpressionEvaluator:F6,numberExpressionDataSourceEvaluator:rUo}),gWe=oat({listExpressionEvaluator:F6,numberExpressionEvaluator:DP,stringExpressionDataSourceEvaluatorFactory:()=>iKo({productImageUrlBuilderExpressionEvaluator:e6t({partnerId:nt.partnerId,numberExpressionEvaluator:DP}),contactCustomData:eUo,nextCouponFromBatch:tUo})}),yWe=Yst({listExpressionEvaluator:F6,numberExpressionEvaluator:DP,stringExpressionEvaluator:gWe,dataStructBuilderExpressionEvaluatorFactory:t=>kFe({expressionEvaluator:t})}),iUo=kFe({expressionEvaluator:yWe}),CWe=IKe(FIt,{onTemplateReset:()=>{QKo()},deps:YZt({partnerId:nt.partnerId,localeKey:nt.localeKey,exitLink:nt.exitLink,dataSourceFieldNameDelegate:({dataSource:t})=>lr(t).Match({StringFromContactCustomData:e=>e.FieldName,StringFromContactCustomDataWithFallback:e=>e.FallbackValue,ProductImageUrlBuilderExpression:()=>"ImageResizer",NextCouponFromBatch:()=>"Coupon"}),richTextToolbarPlugins:[Sco({richTextToolbarPluginComponent:Avo,deps:XOt({localeKey:nt.localeKey,stringExpressionBuilderPlugin:Wfe({localeKey:nt.localeKey})})})],defaultThemeLibrary:VIt({localeKey:nt.localeKey}),defaultComponentLibrary:ZOt({localeKey:nt.localeKey}),saveEmailTemplate:async t=>(await ZKo.postSaveTemplate({body:{partnerId:nt.partnerId,templateJson:JSON.stringify(t.emailTemplate)}})).status===200?"Success":"Fail",createFavoriteTemplate:async t=>(await XKo.postCreateFavoriteTriggerAbandonedViewNATemplate({body:{partnerId:nt.partnerId,templateJson:JSON.stringify(t.emailTemplate),favoriteTemplateName:"Favorite template"}})).status===200?"Success":"Fail",listExpressionEvaluator:F6,numberExpressionEvaluator:DP,stringExpressionEvaluator:gWe,dataStructExpressionEvaluator:iUo,expressionEvaluator:yWe,getComponentLibraryFactory:t=>()=>t.getComponentLibraryHttpClient({body:{partnerId:t.partnerId,componentTypes:[{triggerAbandonedViewNA:{}},{common:{}}]}}).then(e=>uKo(e.body.sections)),canProductShelfDataSourceBeConverted:()=>!1,httpClientComponentFactoryDelegate:t=>({triggerAbandonedViewNA:{componentJson:JSON.stringify(t)}}),stringExpressionBuilderPlugin:Wfe({localeKey:nt.localeKey}),emailComponentSettingsModifierPlugin:Nvo({productShelfDataSourceExpressionBuilderComponent:oKo,deps:hKo({localeKey:nt.localeKey,partnerId:nt.partnerId,customerStockId:"customerStockId",productShelfBuilderModalWindowBffClient:wKo.createApi(Jr({baseUrl:nt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:nt.antiForgeryHeaderTokenName,antiForgeryTokenValue:nt.antiForgeryHeaderTokenValue})),productCategoryPickerModalWindowBffClient:UKo.createApi(Jr({baseUrl:nt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:nt.antiForgeryHeaderTokenName,antiForgeryTokenValue:nt.antiForgeryHeaderTokenValue})),productPickerModalWindowBffClient:GKo.createApi(Jr({baseUrl:nt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:nt.antiForgeryHeaderTokenName,antiForgeryTokenValue:nt.antiForgeryHeaderTokenValue}))})}),initialEmailTemplate:JSON.parse(nt.emailTemplateJson),wysiwygTemplateEditorBffClient:QOt({themeLibraryBffClient:xKo.createApi(Jr({baseUrl:nt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:nt.antiForgeryHeaderTokenName,antiForgeryTokenValue:nt.antiForgeryHeaderTokenValue})),componentLibraryBffClient:kKo.createApi(Jr({baseUrl:nt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:nt.antiForgeryHeaderTokenName,antiForgeryTokenValue:nt.antiForgeryHeaderTokenValue}))}),addThemeLibrarySectionItemModalWindowBffClient:EKo.createApi(Jr({baseUrl:nt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:nt.antiForgeryHeaderTokenName,antiForgeryTokenValue:nt.antiForgeryHeaderTokenValue})),addComponentLibrarySectionItemModalWindowBffClient:CKo.createApi(Jr({baseUrl:nt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:nt.antiForgeryHeaderTokenName,antiForgeryTokenValue:nt.antiForgeryHeaderTokenValue})),deleteThemeLibrarySectionItemModalWindowBffClient:BKo.createApi(Jr({baseUrl:nt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:nt.antiForgeryHeaderTokenName,antiForgeryTokenValue:nt.antiForgeryHeaderTokenValue})),deleteThemeLibrarySectionModalWindowBffClient:RKo.createApi(Jr({baseUrl:nt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:nt.antiForgeryHeaderTokenName,antiForgeryTokenValue:nt.antiForgeryHeaderTokenValue})),editThemeLibrarySectionItemModalWindowBffClient:AKo.createApi(Jr({baseUrl:nt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:nt.antiForgeryHeaderTokenName,antiForgeryTokenValue:nt.antiForgeryHeaderTokenValue})),createComponentLibrarySectionModalWindowBffClient:VKo.createApi(Jr({baseUrl:nt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:nt.antiForgeryHeaderTokenName,antiForgeryTokenValue:nt.antiForgeryHeaderTokenValue})),editComponentLibrarySectionItemModalWindowBffClient:PKo.createApi(Jr({baseUrl:nt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:nt.antiForgeryHeaderTokenName,antiForgeryTokenValue:nt.antiForgeryHeaderTokenValue})),deleteComponentLibrarySectionItemModalWindowBffClient:OKo.createApi(Jr({baseUrl:nt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:nt.antiForgeryHeaderTokenName,antiForgeryTokenValue:nt.antiForgeryHeaderTokenValue})),createThemeLibrarySectionModalWindowBffClient:HKo.createApi(Jr({baseUrl:nt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:nt.antiForgeryHeaderTokenName,antiForgeryTokenValue:nt.antiForgeryHeaderTokenValue})),deleteComponentLibrarySectionModalWindowBffClient:jKo.createApi(Jr({baseUrl:nt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:nt.antiForgeryHeaderTokenName,antiForgeryTokenValue:nt.antiForgeryHeaderTokenValue}))})});CWe.use(PSe({theme:!1,directives:{ClickOutside:xp}}));CWe.mount(hWe)});export default sUo();
|
|
379
|
-
//# sourceMappingURL=index.js.map
|