@retailrocketgroup/retailrocket-create.multicast-vue-email-template-render 1.0.345178 → 1.0.345503-dev

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.
Files changed (2) hide show
  1. package/assets/main.js +1 -1
  2. package/package.json +1 -1
package/assets/main.js CHANGED
@@ -79,4 +79,4 @@ function print() { __p += __j.call(arguments, '') }
79
79
  `:`;
80
80
  `)+X+`return __p
81
81
  }`;var $e=ig(function(){return Ze(y,me+"return "+X).apply(n,T)});if($e.source=X,sf($e))throw $e;return $e}function Ax(r){return Qe(r).toLowerCase()}function Sx(r){return Qe(r).toUpperCase()}function xx(r,i,u){if(r=Qe(r),r&&(u||i===n))return mm(r);if(!r||!(i=Dn(i)))return r;var f=cr(r),_=cr(i),y=pm(f,_),T=gm(f,_)+1;return vo(f,y,T).join("")}function Lx(r,i,u){if(r=Qe(r),r&&(u||i===n))return r.slice(0,Em(r)+1);if(!r||!(i=Dn(i)))return r;var f=cr(r),_=gm(f,cr(i))+1;return vo(f,0,_).join("")}function Ix(r,i,u){if(r=Qe(r),r&&(u||i===n))return r.replace(Uo,"");if(!r||!(i=Dn(i)))return r;var f=cr(r),_=pm(f,cr(i));return vo(f,_).join("")}function Ox(r,i){var u=de,f=Pe;if(At(i)){var _="separator"in i?i.separator:_;u="length"in i?Be(i.length):u,f="omission"in i?Dn(i.omission):f}r=Qe(r);var y=r.length;if(bi(r)){var T=cr(r);y=T.length}if(u>=y)return r;var L=u-Ci(f);if(L<1)return f;var P=T?vo(T,0,L).join(""):r.slice(0,L);if(_===n)return P+f;if(T&&(L+=P.length-L),af(_)){if(r.slice(L).search(_)){var Y,K=P;for(_.global||(_=Cc(_.source,Qe(As.exec(_))+"g")),_.lastIndex=0;Y=_.exec(K);)var X=Y.index;P=P.slice(0,X===n?L:X)}}else if(r.indexOf(Dn(_),L)!=L){var se=P.lastIndexOf(_);se>-1&&(P=P.slice(0,se))}return P+f}function Rx(r){return r=Qe(r),r&&nc.test(r)?r.replace(Rt,sT):r}var Px=Ii(function(r,i,u){return r+(u?" ":"")+i.toUpperCase()}),cf=sp("toUpperCase");function og(r,i,u){return r=Qe(r),i=u?n:i,i===n?tT(r)?uT(r):YC(r):r.match(i)||[]}var ig=Ue(function(r,i){try{return Pn(r,n,i)}catch(u){return sf(u)?u:new Ie(u)}}),Nx=Gr(function(r,i){return Yn(i,function(u){u=Ar(u),Ur(r,u,rf(r[u],r))}),r});function Dx(r){var i=r==null?0:r.length,u=Ee();return r=i?Ct(r,function(f){if(typeof f[1]!="function")throw new Kn(l);return[u(f[0]),f[1]]}):[],Ue(function(f){for(var _=-1;++_<i;){var y=r[_];if(Pn(y[0],this,f))return Pn(y[1],this,f)}})}function Mx(r){return s0(qn(r,E))}function ff(r){return function(){return r}}function Bx(r,i){return r==null||r!==r?i:r}var kx=lp(),Fx=lp(!0);function xn(r){return r}function df(r){return Fm(typeof r=="function"?r:qn(r,E))}function $x(r){return Wm(qn(r,E))}function Wx(r,i){return Hm(r,qn(i,E))}var Hx=Ue(function(r,i){return function(u){return Bs(u,r,i)}}),Ux=Ue(function(r,i){return function(u){return Bs(r,u,i)}});function hf(r,i,u){var f=Yt(i),_=cl(i,f);u==null&&!(At(i)&&(_.length||!f.length))&&(u=i,i=r,r=this,_=cl(i,Yt(i)));var y=!(At(u)&&"chain"in u)||!!u.chain,T=Yr(r);return Yn(_,function(L){var P=i[L];r[L]=P,T&&(r.prototype[L]=function(){var Y=this.__chain__;if(y||Y){var K=r(this.__wrapped__),X=K.__actions__=wn(this.__actions__);return X.push({func:P,args:arguments,thisArg:r}),K.__chain__=Y,K}return P.apply(r,ho([this.value()],arguments))})}),r}function Vx(){return Xt._===this&&(Xt._=pT),this}function mf(){}function Gx(r){return r=Be(r),Ue(function(i){return Um(i,r)})}var jx=Gc(Ct),Yx=Gc(um),Kx=Gc(pc);function sg(r){return Jc(r)?gc(Ar(r)):T0(r)}function zx(r){return function(i){return r==null?n:qo(r,i)}}var qx=cp(),Xx=cp(!0);function pf(){return[]}function gf(){return!1}function Jx(){return{}}function Zx(){return""}function Qx(){return!0}function e1(r,i){if(r=Be(r),r<1||r>Te)return[];var u=Je,f=an(r,Je);i=Ee(i),r-=Je;for(var _=vc(f,i);++u<r;)i(u);return _}function t1(r){return De(r)?Ct(r,Ar):Mn(r)?[r]:wn(Sp(Qe(r)))}function n1(r){var i=++hT;return Qe(r)+i}var r1=gl(function(r,i){return r+i},0),o1=jc("ceil"),i1=gl(function(r,i){return r/i},1),s1=jc("floor");function a1(r){return r&&r.length?ul(r,xn,Oc):n}function l1(r,i){return r&&r.length?ul(r,Ee(i,2),Oc):n}function u1(r){return dm(r,xn)}function c1(r,i){return dm(r,Ee(i,2))}function f1(r){return r&&r.length?ul(r,xn,Dc):n}function d1(r,i){return r&&r.length?ul(r,Ee(i,2),Dc):n}var h1=gl(function(r,i){return r*i},1),m1=jc("round"),p1=gl(function(r,i){return r-i},0);function g1(r){return r&&r.length?Ec(r,xn):0}function _1(r,i){return r&&r.length?Ec(r,Ee(i,2)):0}return v.after=$A,v.ary=kp,v.assign=SS,v.assignIn=Jp,v.assignInWith=Il,v.assignWith=xS,v.at=LS,v.before=Fp,v.bind=rf,v.bindAll=Nx,v.bindKey=$p,v.castArray=JA,v.chain=Dp,v.chunk=sw,v.compact=aw,v.concat=lw,v.cond=Dx,v.conforms=Mx,v.constant=ff,v.countBy=gA,v.create=IS,v.curry=Wp,v.curryRight=Hp,v.debounce=Up,v.defaults=OS,v.defaultsDeep=RS,v.defer=WA,v.delay=HA,v.difference=uw,v.differenceBy=cw,v.differenceWith=fw,v.drop=dw,v.dropRight=hw,v.dropRightWhile=mw,v.dropWhile=pw,v.fill=gw,v.filter=EA,v.flatMap=bA,v.flatMapDeep=CA,v.flatMapDepth=TA,v.flatten=Op,v.flattenDeep=_w,v.flattenDepth=Ew,v.flip=UA,v.flow=kx,v.flowRight=Fx,v.fromPairs=vw,v.functions=FS,v.functionsIn=$S,v.groupBy=wA,v.initial=bw,v.intersection=Cw,v.intersectionBy=Tw,v.intersectionWith=ww,v.invert=HS,v.invertBy=US,v.invokeMap=SA,v.iteratee=df,v.keyBy=xA,v.keys=Yt,v.keysIn=Sn,v.map=Tl,v.mapKeys=GS,v.mapValues=jS,v.matches=$x,v.matchesProperty=Wx,v.memoize=Al,v.merge=YS,v.mergeWith=Zp,v.method=Hx,v.methodOf=Ux,v.mixin=hf,v.negate=Sl,v.nthArg=Gx,v.omit=KS,v.omitBy=zS,v.once=VA,v.orderBy=LA,v.over=jx,v.overArgs=GA,v.overEvery=Yx,v.overSome=Kx,v.partial=of,v.partialRight=Vp,v.partition=IA,v.pick=qS,v.pickBy=Qp,v.property=sg,v.propertyOf=zx,v.pull=Lw,v.pullAll=Pp,v.pullAllBy=Iw,v.pullAllWith=Ow,v.pullAt=Rw,v.range=qx,v.rangeRight=Xx,v.rearg=jA,v.reject=PA,v.remove=Pw,v.rest=YA,v.reverse=tf,v.sampleSize=DA,v.set=JS,v.setWith=ZS,v.shuffle=MA,v.slice=Nw,v.sortBy=FA,v.sortedUniq=Ww,v.sortedUniqBy=Hw,v.split=bx,v.spread=KA,v.tail=Uw,v.take=Vw,v.takeRight=Gw,v.takeRightWhile=jw,v.takeWhile=Yw,v.tap=aA,v.throttle=zA,v.thru=Cl,v.toArray=zp,v.toPairs=eg,v.toPairsIn=tg,v.toPath=t1,v.toPlainObject=Xp,v.transform=QS,v.unary=qA,v.union=Kw,v.unionBy=zw,v.unionWith=qw,v.uniq=Xw,v.uniqBy=Jw,v.uniqWith=Zw,v.unset=ex,v.unzip=nf,v.unzipWith=Np,v.update=tx,v.updateWith=nx,v.values=Pi,v.valuesIn=rx,v.without=Qw,v.words=og,v.wrap=XA,v.xor=eA,v.xorBy=tA,v.xorWith=nA,v.zip=rA,v.zipObject=oA,v.zipObjectDeep=iA,v.zipWith=sA,v.entries=eg,v.entriesIn=tg,v.extend=Jp,v.extendWith=Il,hf(v,v),v.add=r1,v.attempt=ig,v.camelCase=ax,v.capitalize=ng,v.ceil=o1,v.clamp=ox,v.clone=ZA,v.cloneDeep=eS,v.cloneDeepWith=tS,v.cloneWith=QA,v.conformsTo=nS,v.deburr=rg,v.defaultTo=Bx,v.divide=i1,v.endsWith=lx,v.eq=dr,v.escape=ux,v.escapeRegExp=cx,v.every=_A,v.find=vA,v.findIndex=Lp,v.findKey=PS,v.findLast=yA,v.findLastIndex=Ip,v.findLastKey=NS,v.floor=s1,v.forEach=Mp,v.forEachRight=Bp,v.forIn=DS,v.forInRight=MS,v.forOwn=BS,v.forOwnRight=kS,v.get=lf,v.gt=rS,v.gte=oS,v.has=WS,v.hasIn=uf,v.head=Rp,v.identity=xn,v.includes=AA,v.indexOf=yw,v.inRange=ix,v.invoke=VS,v.isArguments=Zo,v.isArray=De,v.isArrayBuffer=iS,v.isArrayLike=An,v.isArrayLikeObject=Nt,v.isBoolean=sS,v.isBuffer=yo,v.isDate=aS,v.isElement=lS,v.isEmpty=uS,v.isEqual=cS,v.isEqualWith=fS,v.isError=sf,v.isFinite=dS,v.isFunction=Yr,v.isInteger=Gp,v.isLength=xl,v.isMap=jp,v.isMatch=hS,v.isMatchWith=mS,v.isNaN=pS,v.isNative=gS,v.isNil=ES,v.isNull=_S,v.isNumber=Yp,v.isObject=At,v.isObjectLike=xt,v.isPlainObject=Us,v.isRegExp=af,v.isSafeInteger=vS,v.isSet=Kp,v.isString=Ll,v.isSymbol=Mn,v.isTypedArray=Ri,v.isUndefined=yS,v.isWeakMap=bS,v.isWeakSet=CS,v.join=Aw,v.kebabCase=fx,v.last=Jn,v.lastIndexOf=Sw,v.lowerCase=dx,v.lowerFirst=hx,v.lt=TS,v.lte=wS,v.max=a1,v.maxBy=l1,v.mean=u1,v.meanBy=c1,v.min=f1,v.minBy=d1,v.stubArray=pf,v.stubFalse=gf,v.stubObject=Jx,v.stubString=Zx,v.stubTrue=Qx,v.multiply=h1,v.nth=xw,v.noConflict=Vx,v.noop=mf,v.now=wl,v.pad=mx,v.padEnd=px,v.padStart=gx,v.parseInt=_x,v.random=sx,v.reduce=OA,v.reduceRight=RA,v.repeat=Ex,v.replace=vx,v.result=XS,v.round=m1,v.runInContext=R,v.sample=NA,v.size=BA,v.snakeCase=yx,v.some=kA,v.sortedIndex=Dw,v.sortedIndexBy=Mw,v.sortedIndexOf=Bw,v.sortedLastIndex=kw,v.sortedLastIndexBy=Fw,v.sortedLastIndexOf=$w,v.startCase=Cx,v.startsWith=Tx,v.subtract=p1,v.sum=g1,v.sumBy=_1,v.template=wx,v.times=e1,v.toFinite=Kr,v.toInteger=Be,v.toLength=qp,v.toLower=Ax,v.toNumber=Zn,v.toSafeInteger=AS,v.toString=Qe,v.toUpper=Sx,v.trim=xx,v.trimEnd=Lx,v.trimStart=Ix,v.truncate=Ox,v.unescape=Rx,v.uniqueId=n1,v.upperCase=Px,v.upperFirst=cf,v.each=Mp,v.eachRight=Bp,v.first=Rp,hf(v,function(){var r={};return Tr(v,function(i,u){rt.call(v.prototype,u)||(r[u]=i)}),r}(),{chain:!1}),v.VERSION=o,Yn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){v[r].placeholder=v}),Yn(["drop","take"],function(r,i){Ye.prototype[r]=function(u){u=u===n?1:Ht(Be(u),0);var f=this.__filtered__&&!i?new Ye(this):this.clone();return f.__filtered__?f.__takeCount__=an(u,f.__takeCount__):f.__views__.push({size:an(u,Je),type:r+(f.__dir__<0?"Right":"")}),f},Ye.prototype[r+"Right"]=function(u){return this.reverse()[r](u).reverse()}}),Yn(["filter","map","takeWhile"],function(r,i){var u=i+1,f=u==Tt||u==Le;Ye.prototype[r]=function(_){var y=this.clone();return y.__iteratees__.push({iteratee:Ee(_,3),type:u}),y.__filtered__=y.__filtered__||f,y}}),Yn(["head","last"],function(r,i){var u="take"+(i?"Right":"");Ye.prototype[r]=function(){return this[u](1).value()[0]}}),Yn(["initial","tail"],function(r,i){var u="drop"+(i?"":"Right");Ye.prototype[r]=function(){return this.__filtered__?new Ye(this):this[u](1)}}),Ye.prototype.compact=function(){return this.filter(xn)},Ye.prototype.find=function(r){return this.filter(r).head()},Ye.prototype.findLast=function(r){return this.reverse().find(r)},Ye.prototype.invokeMap=Ue(function(r,i){return typeof r=="function"?new Ye(this):this.map(function(u){return Bs(u,r,i)})}),Ye.prototype.reject=function(r){return this.filter(Sl(Ee(r)))},Ye.prototype.slice=function(r,i){r=Be(r);var u=this;return u.__filtered__&&(r>0||i<0)?new Ye(u):(r<0?u=u.takeRight(-r):r&&(u=u.drop(r)),i!==n&&(i=Be(i),u=i<0?u.dropRight(-i):u.take(i-r)),u)},Ye.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},Ye.prototype.toArray=function(){return this.take(Je)},Tr(Ye.prototype,function(r,i){var u=/^(?:filter|find|map|reject)|While$/.test(i),f=/^(?:head|last)$/.test(i),_=v[f?"take"+(i=="last"?"Right":""):i],y=f||/^find/.test(i);_&&(v.prototype[i]=function(){var T=this.__wrapped__,L=f?[1]:arguments,P=T instanceof Ye,Y=L[0],K=P||De(T),X=function(Ge){var ze=_.apply(v,ho([Ge],L));return f&&se?ze[0]:ze};K&&u&&typeof Y=="function"&&Y.length!=1&&(P=K=!1);var se=this.__chain__,me=!!this.__actions__.length,ve=y&&!se,$e=P&&!me;if(!y&&K){T=$e?T:new Ye(this);var ye=r.apply(T,L);return ye.__actions__.push({func:Cl,args:[X],thisArg:n}),new zn(ye,se)}return ve&&$e?r.apply(this,L):(ye=this.thru(X),ve?f?ye.value()[0]:ye.value():ye)})}),Yn(["pop","push","shift","sort","splice","unshift"],function(r){var i=za[r],u=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);v.prototype[r]=function(){var _=arguments;if(f&&!this.__chain__){var y=this.value();return i.apply(De(y)?y:[],_)}return this[u](function(T){return i.apply(De(T)?T:[],_)})}}),Tr(Ye.prototype,function(r,i){var u=v[i];if(u){var f=u.name+"";rt.call(Si,f)||(Si[f]=[]),Si[f].push({name:i,func:u})}}),Si[pl(n,A).name]=[{name:"wrapper",func:n}],Ye.prototype.clone=RT,Ye.prototype.reverse=PT,Ye.prototype.value=NT,v.prototype.at=lA,v.prototype.chain=uA,v.prototype.commit=cA,v.prototype.next=fA,v.prototype.plant=hA,v.prototype.reverse=mA,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=pA,v.prototype.first=v.prototype.head,Is&&(v.prototype[Is]=dA),v},Ti=cT();Go?((Go.exports=Ti)._=Ti,fc._=Ti):Xt._=Ti}).call(to)})(bu,bu.exports);var zs=bu.exports;const wo={spacer:e=>e!==void 0,oneLineLink:e=>e!==void 0,image:e=>e!==void 0,heightContainer:e=>e!==void 0,button:e=>e!==void 0,spanText:e=>e!==void 0,unsubscribeLink:e=>e!=null,if:e=>e!==void 0},H$=at({__name:"If",props:{deps:{},theme:{},element:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementClicked"],setup(e,{emit:t}){const n=e,o=t,s=dn({ifResult:!1,isLoading:!0});return n.deps.boolExpressionEvaluator({boolExpression:n.element.Predicate,context:n.context}).then(a=>{s.ifResult=a,s.isLoading=!1}),(a,l)=>(ie(!0),Ce(ot,null,$n(s.ifResult?n.element.True:n.element.False,(c,d)=>(ie(),mt(Na,{key:d,deps:n.deps,theme:n.theme,element:c,context:n.context,path:[...n.path,s.ifResult?"True":"False",d],selectedElementPath:n.selectedElementPath,onOnImageSizeAdjusted:l[0]||(l[0]=m=>o("onImageSizeAdjusted",m)),onOnImageOriginalSizeAdjusted:l[1]||(l[1]=m=>o("onImageOriginalSizeAdjusted",m)),onOnElementClicked:l[2]||(l[2]=m=>o("onElementClicked",m))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))}}),bs=e=>({paddingTop:en({paddingExpression:e.paddings.Top,themeComponentPaddings:e.themeComponentPaddings,themeBodyPaddings:e.themeBodyPaddings})+"px",paddingRight:en({paddingExpression:e.paddings.Right,themeComponentPaddings:e.themeComponentPaddings,themeBodyPaddings:e.themeBodyPaddings})+"px",paddingBottom:en({paddingExpression:e.paddings.Bottom,themeComponentPaddings:e.themeComponentPaddings,themeBodyPaddings:e.themeBodyPaddings})+"px",paddingLeft:en({paddingExpression:e.paddings.Left,themeComponentPaddings:e.themeComponentPaddings,themeBodyPaddings:e.themeBodyPaddings})+"px"}),U$=e=>({Match:t=>{if(e.Auto!==void 0)return t.whenAuto();if(e.Pixel!==void 0)return t.whenPixels(e.Pixel.Value);if(e.Percentage!==void 0)return t.whenPercentages(e.Percentage.Value);throw Error("")}}),V$=e=>U$(e.width).Match({whenAuto:()=>({width:"initial"}),whenPixels:t=>({width:t+"px"}),whenPercentages:t=>({width:t+"%"})}),G$=["align"],j$=at({__name:"HeightContainer",props:{deps:{},theme:{},element:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementClicked"],setup(e,{emit:t}){const n=e,o=t;return(s,a)=>(ie(),Ce("table",{class:"heightContainerRender",style:Ae([{"border-spacing":"0","border-collapse":"separate"},[oe(V$)({width:n.element.Width})]])},[Z("tbody",null,[Z("tr",null,[Z("td",{align:oe(qb)({containerAlign:n.element.ContainerAlign}),style:Ae([oe(bs)({paddings:n.element.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),{height:n.element.Height?n.element.Height+"px":"",verticalAlign:n.element.VerticalAlign,backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundColor:oe(ao)({color:n.element.BackgroundColor,themeColors:n.theme.Colors})??"inherit"},oe(mi)({border:n.element.Border,themeColors:n.theme.Colors}),oe(Do)({borderRadius:n.element.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})])},[(ie(!0),Ce(ot,null,$n(n.element.Elements,(l,c)=>(ie(),mt(Na,{key:c,deps:n.deps,theme:n.theme,element:l,path:[...n.path,"Elements",c],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:a[0]||(a[0]=d=>o("onImageSizeAdjusted",d)),onOnImageOriginalSizeAdjusted:a[1]||(a[1]=d=>o("onImageOriginalSizeAdjusted",d)),onOnElementClicked:a[2]||(a[2]=d=>o("onElementClicked",d))},null,8,["deps","theme","element","path","selectedElementPath","context"]))),128))],12,G$)])])],4))}}),Y$=e=>Array.isArray(e),ba=e=>({Match:t=>{switch(typeof e){case"string":return(t.whenString??t.defaultValue)(e);case"number":return(t.whenNumber??t.defaultValue)(e);case"boolean":return(t.whenBoolean??t.defaultValue)(e);case"object":return Y$(e)?(t.whenArray??t.defaultValue)(e):(t.whenStruct??t.defaultValue)(e);default:return ys(e)}}}),K$=e=>({Match:t=>{if(e.PropertyName!==void 0)return t.whenPropertyName(e.PropertyName);if(e.ArrayIndex!==void 0)return t.whenArrayIndex(e.ArrayIndex);throw Error("No match")}}),Mh=(e,t)=>{let n=t;for(const o of e)n=K$(o).Match({whenPropertyName:s=>ba(n).Match({defaultValue:()=>{throw console.error("Property not found: "+s),new Error("Property not found: "+s)},whenStruct:a=>a[s]}),whenArrayIndex:s=>ba(n).Match({defaultValue:()=>{throw console.error("Array index out of bounds: "+s),new Error("Array index out of bounds: "+s)},whenArray:a=>a[s]})});return n},z$=(e,t)=>ba(Mh(e,t)).Match({defaultValue:()=>{throw console.error("Value is not a list"),new Error("Value is not a list")},whenArray:n=>n}),q$=(e,t)=>ba(Mh(e,t)).Match({defaultValue:()=>{throw console.error("Value is not a string "+t+e),new Error("Value is not a string")},whenString:n=>n}),X$=(e,t)=>ba(Mh(e,t)).Match({defaultValue:()=>{throw console.error("Value is not a number"),new Error("Value is not a number")},whenNumber:n=>n}),J$=e=>vr(e),Z$=e=>vr(e),Q$=e=>vr(e),e2=e=>({Match:t=>{switch(e){case"Left":return t.whenLeft();case"Center":return t.whenCenter();case"Right":return t.whenRight();case"Inline":return t.whenInline()}}}),Ca=e=>e2(e.contentAlign).Match({whenLeft:()=>({display:"block",textAlign:"left"}),whenCenter:()=>({display:"block",textAlign:"center"}),whenRight:()=>({display:"block",textAlign:"right"}),whenInline:()=>({})});let Kf;const Cu={mounted(e,t){const n=t.value;Kf=new ResizeObserver(o=>{o.forEach(s=>n(s.contentRect))}),Kf.observe(e)},unmounted(e){Kf.unobserve(e)}},t2=["href"],n2=["src","alt"],r2=["src","alt"],o2=at({__name:"Image",props:{deps:{},theme:{},element:{},path:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted"],setup(e,{emit:t}){const n=d=>{o("onImageOriginalSizeAdjusted",{Path:s.path,OriginalHeight:d.target.naturalHeight,OriginalWidth:d.target.naturalWidth})},o=t,s=e,a=dn({href:"",src:"",alt:"",isLoaded:!1}),l=async d=>s.deps.stringExpressionEvaluator({stringExpression:d,context:s.context}),c=async()=>{const[d,m,p]=await Promise.all([l(s.element.Src),l(s.element.HRef),l(s.element.Alt)]);a.href=m,a.src=d,a.alt=p,a.isLoaded=!0};return tn(()=>[s.element.Src,s.element.HRef,s.element.Alt,s.context],()=>c()),c(),(d,m)=>s.element.IsLink?(ie(),Ce("a",{key:0,href:a.href,style:Ae([oe(Ca)({contentAlign:s.element.ContentAlign})]),onClick:m[0]||(m[0]=fs(()=>{},["prevent"]))},[a.isLoaded?oo((ie(),Ce("img",{key:0,class:"Image cursor-pointer",src:a.src,alt:a.alt,style:Ae([oe(Do)({borderRadius:s.element.BorderRadius,borderRadiusCard:s.theme.BorderRadiusCard,bodyBorderRadius:s.theme.BorderRadius,borderButtonRadius:s.theme.BorderRadiusButton,borderBannerRadius:s.theme.BorderRadiusBanner}),oe(mi)({border:s.element.Border,themeColors:s.theme.Colors}),{maxWidth:"100%",width:(s.element.IsRetina?s.element.OriginalWidth/2:s.element.OriginalWidth)+"px"},{verticalAlign:s.element.VerticalAlign}]),onLoad:n},null,44,n2)),[[oe(Cu),({width:p,height:E})=>o("onImageSizeAdjusted",{Path:s.path,AdjustedHeight:E,AdjustedWidth:p})]]):vn("",!0)],12,t2)):(ie(),Ce("span",{key:1,style:Ae([oe(Ca)({contentAlign:s.element.ContentAlign})])},[a.isLoaded?oo((ie(),Ce("img",{key:0,class:"Image cursor-pointer",src:a.src,alt:a.alt,style:Ae([oe(Do)({borderRadius:s.element.BorderRadius,borderRadiusCard:s.theme.BorderRadiusCard,bodyBorderRadius:s.theme.BorderRadius,borderButtonRadius:s.theme.BorderRadiusButton,borderBannerRadius:s.theme.BorderRadiusBanner}),oe(mi)({border:s.element.Border,themeColors:s.theme.Colors}),{maxWidth:"100%",width:(s.element.IsRetina?s.element.OriginalWidth/2:s.element.OriginalWidth)+"px"},{verticalAlign:s.element.VerticalAlign}]),onLoad:n},null,44,r2)),[[oe(Cu),({width:p,height:E})=>o("onImageSizeAdjusted",{Path:s.path,AdjustedHeight:E,AdjustedWidth:p})]]):vn("",!0)],4))}}),i2=e=>({Match:t=>{if(e.Auto!==void 0)return t.whenAuto();if(e.Pixel!==void 0)return t.whenPixels(e.Pixel.Value);if(e.Percentage!==void 0)return t.whenPercentages(e.Percentage.Value);throw Error("")}}),s2=e=>e.width===void 0?{}:i2(e.width).Match({whenAuto:()=>({width:"auto"}),whenPixels:t=>({width:t+"px"}),whenPercentages:t=>({width:t+"%"})}),a2=e=>({Match:t=>{switch(e){case"Auto":return t.whenAuto();case"FullWidth":return t.whenFullWidth()}}}),l2=e=>a2(e).Match({whenAuto:()=>({width:"auto"}),whenFullWidth:()=>({width:"100%"})}),u2=at({__name:"OneLineList",props:{deps:{},theme:{},element:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageSizeAdjusted","onImageOriginalSizeAdjusted","onElementClicked"],setup(e,{emit:t}){const n=e,o=t;return(s,a)=>(ie(),Ce("table",{class:"oneLineList",style:Ae([{"border-spacing":"0","border-collapse":"collapse"},[oe(l2)(n.element.ContainerWidth)]])},[Z("tbody",null,[Z("tr",null,[(ie(!0),Ce(ot,null,$n(n.element.Elements,(l,c)=>(ie(),Ce("td",{key:c,class:"oneLineListItem",style:Ae([oe(bs)({paddings:n.element.ItemPaddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),oe(s2)({width:n.element.ItemWidth}),{lineHeight:"normal"}])},[(ie(),mt(Na,{key:c,deps:n.deps,theme:n.theme,element:l,path:[...n.path,"Elements",c],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:a[0]||(a[0]=d=>o("onImageSizeAdjusted",d)),onOnImageOriginalSizeAdjusted:a[1]||(a[1]=d=>o("onImageOriginalSizeAdjusted",d)),onOnElementClicked:a[2]||(a[2]=d=>o("onElementClicked",d))},null,8,["deps","theme","element","path","selectedElementPath","context"]))],4))),128))])])],4))}}),c2={class:"Spacer",width:"100%",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"}},f2={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"}},d2=at({__name:"Spacer",props:{theme:{},element:{}},setup(e){const t=e;return(n,o)=>(ie(),Ce("table",c2,[Z("tbody",null,[Z("tr",null,[Z("td",{valign:"middle",style:Ae([{height:oe(en)({paddingExpression:t.element.Height,themeComponentPaddings:t.theme.ComponentPaddings,themeBodyPaddings:t.theme.BodyPaddings})+"px"}])},[Z("table",f2,[Z("tbody",null,[Z("tr",null,[Z("td",{style:Ae([{"font-size":"0","line-height":"0","border-bottom":"0","border-left":"0","border-right":"0"},[{borderTop:t.element.Weight+"px",borderStyle:t.element.Weight>0?"solid":"none",borderColor:oe(ao)({color:t.element.Color,themeColors:t.theme.Colors})}]])},"   ",4)])])])],4)])])]))}});/*! @license DOMPurify 3.1.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.0/LICENSE */const{entries:Xb,setPrototypeOf:RE,isFrozen:h2,getPrototypeOf:m2,getOwnPropertyDescriptor:p2}=Object;let{freeze:Tn,seal:sr,create:Jb}=Object,{apply:Md,construct:Bd}=typeof Reflect<"u"&&Reflect;Tn||(Tn=function(t){return t});sr||(sr=function(t){return t});Md||(Md=function(t,n,o){return t.apply(n,o)});Bd||(Bd=function(t,n){return new t(...n)});const Kl=Vn(Array.prototype.forEach),PE=Vn(Array.prototype.pop),qs=Vn(Array.prototype.push),iu=Vn(String.prototype.toLowerCase),zf=Vn(String.prototype.toString),NE=Vn(String.prototype.match),Xs=Vn(String.prototype.replace),g2=Vn(String.prototype.indexOf),_2=Vn(String.prototype.trim),mr=Vn(Object.prototype.hasOwnProperty),In=Vn(RegExp.prototype.test),Js=E2(TypeError);function Vn(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return Md(e,t,o)}}function E2(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Bd(e,n)}}function je(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:iu;RE&&RE(e,null);let o=t.length;for(;o--;){let s=t[o];if(typeof s=="string"){const a=n(s);a!==s&&(h2(t)||(t[o]=a),s=a)}e[s]=!0}return e}function v2(e){for(let t=0;t<e.length;t++)mr(e,t)||(e[t]=null);return e}function oi(e){const t=Jb(null);for(const[n,o]of Xb(e))mr(e,n)&&(Array.isArray(o)?t[n]=v2(o):o&&typeof o=="object"&&o.constructor===Object?t[n]=oi(o):t[n]=o);return t}function zl(e,t){for(;e!==null;){const o=p2(e,t);if(o){if(o.get)return Vn(o.get);if(typeof o.value=="function")return Vn(o.value)}e=m2(e)}function n(){return null}return n}const DE=Tn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),qf=Tn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Xf=Tn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),y2=Tn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Jf=Tn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),b2=Tn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ME=Tn(["#text"]),BE=Tn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Zf=Tn(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),kE=Tn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ql=Tn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),C2=sr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),T2=sr(/<%[\w\W]*|[\w\W]*%>/gm),w2=sr(/\${[\w\W]*}/gm),A2=sr(/^data-[\-\w.\u00B7-\uFFFF]/),S2=sr(/^aria-[\-\w]+$/),Zb=sr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),x2=sr(/^(?:\w+script|data):/i),L2=sr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qb=sr(/^html$/i),I2=sr(/^[a-z][.\w]*(-[.\w]+)+$/i);var FE=Object.freeze({__proto__:null,MUSTACHE_EXPR:C2,ERB_EXPR:T2,TMPLIT_EXPR:w2,DATA_ATTR:A2,ARIA_ATTR:S2,IS_ALLOWED_URI:Zb,IS_SCRIPT_OR_DATA:x2,ATTR_WHITESPACE:L2,DOCTYPE_NAME:Qb,CUSTOM_ELEMENT:I2});const O2=function(){return typeof window>"u"?null:window},R2=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null;const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(o=n.getAttribute(s));const a="dompurify"+(o?"#"+o:"");try{return t.createPolicy(a,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function eC(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:O2();const t=pe=>eC(pe);if(t.version="3.1.0",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const o=n,s=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:c,Element:d,NodeFilter:m,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:E,DOMParser:C,trustedTypes:w}=e,D=d.prototype,x=zl(D,"cloneNode"),F=zl(D,"nextSibling"),A=zl(D,"childNodes"),B=zl(D,"parentNode");if(typeof l=="function"){const pe=n.createElement("template");pe.content&&pe.content.ownerDocument&&(n=pe.content.ownerDocument)}let $,S="";const{implementation:H,createNodeIterator:G,createDocumentFragment:U,getElementsByTagName:le}=n,{importNode:ce}=o;let de={};t.isSupported=typeof Xb=="function"&&typeof B=="function"&&H&&H.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Pe,ERB_EXPR:ke,TMPLIT_EXPR:We,DATA_ATTR:Tt,ARIA_ATTR:Bt,IS_SCRIPT_OR_DATA:Le,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:Te}=FE;let{IS_ALLOWED_URI:qe}=FE,Fe=null;const Je=je({},[...DE,...qf,...Xf,...Jf,...ME]);let Ne=null;const Gt=je({},[...BE,...Zf,...kE,...ql]);let He=Object.seal(Jb(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),it=null,pt=null,kt=!0,nt=!0,wt=!1,St=!0,lt=!1,Ft=!0,g=!1,h=!1,b=!1,N=!1,M=!1,V=!1,ee=!0,q=!1;const J="user-content-";let z=!0,ne=!1,I={},k=null;const re=je({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const we=je({},["audio","video","img","source","image","track"]);let Me=null;const ut=je({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ct="http://www.w3.org/1998/Math/MathML",It="http://www.w3.org/2000/svg",ft="http://www.w3.org/1999/xhtml";let rn=ft,br=!1,Ot=null;const on=je({},[ct,It,ft],zf);let Cr=null;const ec=["application/xhtml+xml","text/html"],tc="text/html";let Rt=null,Fr=null;const nc=n.createElement("form"),Da=function(O){return O instanceof RegExp||O instanceof Function},Cs=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Fr&&Fr===O)){if((!O||typeof O!="object")&&(O={}),O=oi(O),Cr=ec.indexOf(O.PARSER_MEDIA_TYPE)===-1?tc:O.PARSER_MEDIA_TYPE,Rt=Cr==="application/xhtml+xml"?zf:iu,Fe=mr(O,"ALLOWED_TAGS")?je({},O.ALLOWED_TAGS,Rt):Je,Ne=mr(O,"ALLOWED_ATTR")?je({},O.ALLOWED_ATTR,Rt):Gt,Ot=mr(O,"ALLOWED_NAMESPACES")?je({},O.ALLOWED_NAMESPACES,zf):on,Me=mr(O,"ADD_URI_SAFE_ATTR")?je(oi(ut),O.ADD_URI_SAFE_ATTR,Rt):ut,ue=mr(O,"ADD_DATA_URI_TAGS")?je(oi(we),O.ADD_DATA_URI_TAGS,Rt):we,k=mr(O,"FORBID_CONTENTS")?je({},O.FORBID_CONTENTS,Rt):re,it=mr(O,"FORBID_TAGS")?je({},O.FORBID_TAGS,Rt):{},pt=mr(O,"FORBID_ATTR")?je({},O.FORBID_ATTR,Rt):{},I=mr(O,"USE_PROFILES")?O.USE_PROFILES:!1,kt=O.ALLOW_ARIA_ATTR!==!1,nt=O.ALLOW_DATA_ATTR!==!1,wt=O.ALLOW_UNKNOWN_PROTOCOLS||!1,St=O.ALLOW_SELF_CLOSE_IN_ATTR!==!1,lt=O.SAFE_FOR_TEMPLATES||!1,Ft=O.SAFE_FOR_XML!==!1,g=O.WHOLE_DOCUMENT||!1,N=O.RETURN_DOM||!1,M=O.RETURN_DOM_FRAGMENT||!1,V=O.RETURN_TRUSTED_TYPE||!1,b=O.FORCE_BODY||!1,ee=O.SANITIZE_DOM!==!1,q=O.SANITIZE_NAMED_PROPS||!1,z=O.KEEP_CONTENT!==!1,ne=O.IN_PLACE||!1,qe=O.ALLOWED_URI_REGEXP||Zb,rn=O.NAMESPACE||ft,He=O.CUSTOM_ELEMENT_HANDLING||{},O.CUSTOM_ELEMENT_HANDLING&&Da(O.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(He.tagNameCheck=O.CUSTOM_ELEMENT_HANDLING.tagNameCheck),O.CUSTOM_ELEMENT_HANDLING&&Da(O.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(He.attributeNameCheck=O.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),O.CUSTOM_ELEMENT_HANDLING&&typeof O.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(He.allowCustomizedBuiltInElements=O.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),lt&&(nt=!1),M&&(N=!0),I&&(Fe=je({},ME),Ne=[],I.html===!0&&(je(Fe,DE),je(Ne,BE)),I.svg===!0&&(je(Fe,qf),je(Ne,Zf),je(Ne,ql)),I.svgFilters===!0&&(je(Fe,Xf),je(Ne,Zf),je(Ne,ql)),I.mathMl===!0&&(je(Fe,Jf),je(Ne,kE),je(Ne,ql))),O.ADD_TAGS&&(Fe===Je&&(Fe=oi(Fe)),je(Fe,O.ADD_TAGS,Rt)),O.ADD_ATTR&&(Ne===Gt&&(Ne=oi(Ne)),je(Ne,O.ADD_ATTR,Rt)),O.ADD_URI_SAFE_ATTR&&je(Me,O.ADD_URI_SAFE_ATTR,Rt),O.FORBID_CONTENTS&&(k===re&&(k=oi(k)),je(k,O.FORBID_CONTENTS,Rt)),z&&(Fe["#text"]=!0),g&&je(Fe,["html","head","body"]),Fe.table&&(je(Fe,["tbody"]),delete it.tbody),O.TRUSTED_TYPES_POLICY){if(typeof O.TRUSTED_TYPES_POLICY.createHTML!="function")throw Js('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof O.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Js('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');$=O.TRUSTED_TYPES_POLICY,S=$.createHTML("")}else $===void 0&&($=R2(w,s)),$!==null&&typeof S=="string"&&(S=$.createHTML(""));Tn&&Tn(O),Fr=O}},Ma=je({},["mi","mo","mn","ms","mtext"]),Ts=je({},["foreignobject","desc","title","annotation-xml"]),rc=je({},["title","style","font","a","script"]),Ba=je({},[...qf,...Xf,...y2]),ka=je({},[...Jf,...b2]),ws=function(O){let te=B(O);(!te||!te.tagName)&&(te={namespaceURI:rn,tagName:"template"});const he=iu(O.tagName),st=iu(te.tagName);return Ot[O.namespaceURI]?O.namespaceURI===It?te.namespaceURI===ft?he==="svg":te.namespaceURI===ct?he==="svg"&&(st==="annotation-xml"||Ma[st]):!!Ba[he]:O.namespaceURI===ct?te.namespaceURI===ft?he==="math":te.namespaceURI===It?he==="math"&&Ts[st]:!!ka[he]:O.namespaceURI===ft?te.namespaceURI===It&&!Ts[st]||te.namespaceURI===ct&&!Ma[st]?!1:!ka[he]&&(rc[he]||!Ba[he]):!!(Cr==="application/xhtml+xml"&&Ot[O.namespaceURI]):!1},lr=function(O){qs(t.removed,{element:O});try{O.parentNode.removeChild(O)}catch{O.remove()}},Uo=function(O,te){try{qs(t.removed,{attribute:te.getAttributeNode(O),from:te})}catch{qs(t.removed,{attribute:null,from:te})}if(te.removeAttribute(O),O==="is"&&!Ne[O])if(N||M)try{lr(te)}catch{}else try{te.setAttribute(O,"")}catch{}},Fa=function(O){let te=null,he=null;if(b)O="<remove></remove>"+O;else{const jt=NE(O,/^[\r\n\t ]+/);he=jt&&jt[0]}Cr==="application/xhtml+xml"&&rn===ft&&(O='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+O+"</body></html>");const st=$?$.createHTML(O):O;if(rn===ft)try{te=new C().parseFromString(st,Cr)}catch{}if(!te||!te.documentElement){te=H.createDocument(rn,"template",null);try{te.documentElement.innerHTML=br?S:st}catch{}}const Pt=te.body||te.documentElement;return O&&he&&Pt.insertBefore(n.createTextNode(he),Pt.childNodes[0]||null),rn===ft?le.call(te,g?"html":"body")[0]:g?te.documentElement:Pt},$a=function(O){return G.call(O.ownerDocument||O,O,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},oc=function(O){return O instanceof E&&(typeof O.nodeName!="string"||typeof O.textContent!="string"||typeof O.removeChild!="function"||!(O.attributes instanceof p)||typeof O.removeAttribute!="function"||typeof O.setAttribute!="function"||typeof O.namespaceURI!="string"||typeof O.insertBefore!="function"||typeof O.hasChildNodes!="function")},Wa=function(O){return typeof c=="function"&&O instanceof c},ur=function(O,te,he){de[O]&&Kl(de[O],st=>{st.call(t,te,he,Fr)})},Ha=function(O){let te=null;if(ur("beforeSanitizeElements",O,null),oc(O))return lr(O),!0;const he=Rt(O.nodeName);if(ur("uponSanitizeElement",O,{tagName:he,allowedTags:Fe}),O.hasChildNodes()&&!Wa(O.firstElementChild)&&In(/<[/\w]/g,O.innerHTML)&&In(/<[/\w]/g,O.textContent)||O.nodeType===7||Ft&&O.nodeType===8&&In(/<[/\w]/g,O.data))return lr(O),!0;if(!Fe[he]||it[he]){if(!it[he]&&Va(he)&&(He.tagNameCheck instanceof RegExp&&In(He.tagNameCheck,he)||He.tagNameCheck instanceof Function&&He.tagNameCheck(he)))return!1;if(z&&!k[he]){const st=B(O)||O.parentNode,Pt=A(O)||O.childNodes;if(Pt&&st){const jt=Pt.length;for(let $t=jt-1;$t>=0;--$t)st.insertBefore(x(Pt[$t],!0),F(O))}}return lr(O),!0}return O instanceof d&&!ws(O)||(he==="noscript"||he==="noembed"||he==="noframes")&&In(/<\/no(script|embed|frames)/i,O.innerHTML)?(lr(O),!0):(lt&&O.nodeType===3&&(te=O.textContent,Kl([Pe,ke,We],st=>{te=Xs(te,st," ")}),O.textContent!==te&&(qs(t.removed,{element:O.cloneNode()}),O.textContent=te)),ur("afterSanitizeElements",O,null),!1)},Ua=function(O,te,he){if(ee&&(te==="id"||te==="name")&&(he in n||he in nc))return!1;if(!(nt&&!pt[te]&&In(Tt,te))){if(!(kt&&In(Bt,te))){if(!Ne[te]||pt[te]){if(!(Va(O)&&(He.tagNameCheck instanceof RegExp&&In(He.tagNameCheck,O)||He.tagNameCheck instanceof Function&&He.tagNameCheck(O))&&(He.attributeNameCheck instanceof RegExp&&In(He.attributeNameCheck,te)||He.attributeNameCheck instanceof Function&&He.attributeNameCheck(te))||te==="is"&&He.allowCustomizedBuiltInElements&&(He.tagNameCheck instanceof RegExp&&In(He.tagNameCheck,he)||He.tagNameCheck instanceof Function&&He.tagNameCheck(he))))return!1}else if(!Me[te]){if(!In(qe,Xs(he,ge,""))){if(!((te==="src"||te==="xlink:href"||te==="href")&&O!=="script"&&g2(he,"data:")===0&&ue[O])){if(!(wt&&!In(Le,Xs(he,ge,"")))){if(he)return!1}}}}}}return!0},Va=function(O){return O!=="annotation-xml"&&NE(O,Te)},As=function(O){ur("beforeSanitizeAttributes",O,null);const{attributes:te}=O;if(!te)return;const he={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ne};let st=te.length;for(;st--;){const Pt=te[st],{name:jt,namespaceURI:$t,value:$r}=Pt,Vo=Rt(jt);let sn=jt==="value"?$r:_2($r);if(he.attrName=Vo,he.attrValue=sn,he.keepAttr=!0,he.forceKeepAttr=void 0,ur("uponSanitizeAttribute",O,he),sn=he.attrValue,he.forceKeepAttr||(Uo(jt,O),!he.keepAttr))continue;if(!St&&In(/\/>/i,sn)){Uo(jt,O);continue}lt&&Kl([Pe,ke,We],xs=>{sn=Xs(sn,xs," ")});const Ss=Rt(O.nodeName);if(Ua(Ss,Vo,sn)){if(q&&(Vo==="id"||Vo==="name")&&(Uo(jt,O),sn=J+sn),$&&typeof w=="object"&&typeof w.getAttributeType=="function"&&!$t)switch(w.getAttributeType(Ss,Vo)){case"TrustedHTML":{sn=$.createHTML(sn);break}case"TrustedScriptURL":{sn=$.createScriptURL(sn);break}}try{$t?O.setAttributeNS($t,jt,sn):O.setAttribute(jt,sn),PE(t.removed)}catch{}}}ur("afterSanitizeAttributes",O,null)},ic=function pe(O){let te=null;const he=$a(O);for(ur("beforeSanitizeShadowDOM",O,null);te=he.nextNode();)ur("uponSanitizeShadowNode",te,null),!Ha(te)&&(te.content instanceof a&&pe(te.content),As(te));ur("afterSanitizeShadowDOM",O,null)};return t.sanitize=function(pe){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=null,he=null,st=null,Pt=null;if(br=!pe,br&&(pe="<!-->"),typeof pe!="string"&&!Wa(pe))if(typeof pe.toString=="function"){if(pe=pe.toString(),typeof pe!="string")throw Js("dirty is not a string, aborting")}else throw Js("toString is not a function");if(!t.isSupported)return pe;if(h||Cs(O),t.removed=[],typeof pe=="string"&&(ne=!1),ne){if(pe.nodeName){const $r=Rt(pe.nodeName);if(!Fe[$r]||it[$r])throw Js("root node is forbidden and cannot be sanitized in-place")}}else if(pe instanceof c)te=Fa("<!---->"),he=te.ownerDocument.importNode(pe,!0),he.nodeType===1&&he.nodeName==="BODY"||he.nodeName==="HTML"?te=he:te.appendChild(he);else{if(!N&&!lt&&!g&&pe.indexOf("<")===-1)return $&&V?$.createHTML(pe):pe;if(te=Fa(pe),!te)return N?null:V?S:""}te&&b&&lr(te.firstChild);const jt=$a(ne?pe:te);for(;st=jt.nextNode();)Ha(st)||(st.content instanceof a&&ic(st.content),As(st));if(ne)return pe;if(N){if(M)for(Pt=U.call(te.ownerDocument);te.firstChild;)Pt.appendChild(te.firstChild);else Pt=te;return(Ne.shadowroot||Ne.shadowrootmode)&&(Pt=ce.call(o,Pt,!0)),Pt}let $t=g?te.outerHTML:te.innerHTML;return g&&Fe["!doctype"]&&te.ownerDocument&&te.ownerDocument.doctype&&te.ownerDocument.doctype.name&&In(Qb,te.ownerDocument.doctype.name)&&($t="<!DOCTYPE "+te.ownerDocument.doctype.name+`>
82
- `+$t),lt&&Kl([Pe,ke,We],$r=>{$t=Xs($t,$r," ")}),$&&V?$.createHTML($t):$t},t.setConfig=function(){let pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Cs(pe),h=!0},t.clearConfig=function(){Fr=null,h=!1},t.isValidAttribute=function(pe,O,te){Fr||Cs({});const he=Rt(pe),st=Rt(O);return Ua(he,st,te)},t.addHook=function(pe,O){typeof O=="function"&&(de[pe]=de[pe]||[],qs(de[pe],O))},t.removeHook=function(pe){if(de[pe])return PE(de[pe])},t.removeHooks=function(pe){de[pe]&&(de[pe]=[])},t.removeAllHooks=function(){de={}},t}var $E=eC();const kd={beforeMount(e,t){e.innerHTML=$E.sanitize(t.value)},beforeUpdate(e,t){e.innerHTML=$E.sanitize(t.value)}},P2=e=>({Match:t=>{switch(e.Discriminator){case"EmailBackgroundColor":return t.whenEmailBackgroundColor();case"BodyColor":return t.whenBodyColor();case"TitleColor":return t.whenTitleColor();case"HeadingColor":return t.whenHeadingColor();case"SubHeadingColor":return t.whenSubHeading();case"LargeTextColor":return t.whenLargeTextColor();case"NormalTextColor":return t.whenNormalTextColor();case"DescriptionTextColor":return t.whenDescriptionTextColor();case"PrimaryTextColor":return t.whenPrimaryTextColor();case"SecondaryTextColor":return t.whenSecondaryTextColor();case"ButtonTextColor":return t.whenButtonTextColor();case"LinkColor":return t.whenLinkColor();case"PrimaryColor":return t.whenPrimaryColor();case"SecondaryColor":return t.whenSecondaryColor();case"CardBackgroundColor":return t.whenCardBackgroundColor();case"Custom":return t.whenCustom(e.CustomValue)}}}),N2=e=>P2(e.fontColor).Match({whenEmailBackgroundColor:()=>e.themeColors.EmailBackgroundColor,whenBodyColor:()=>e.themeColors.BodyColor,whenTitleColor:()=>e.themeColors.TitleColor,whenHeadingColor:()=>e.themeColors.HeadingColor,whenSubHeading:()=>e.themeColors.SubHeadingColor,whenLargeTextColor:()=>e.themeColors.LargeTextColor,whenNormalTextColor:()=>e.themeColors.NormalTextColor,whenDescriptionTextColor:()=>e.themeColors.DescriptionTextColor,whenPrimaryTextColor:()=>e.themeColors.PrimaryTextColor,whenSecondaryTextColor:()=>e.themeColors.SecondaryTextColor,whenLinkColor:()=>e.themeColors.LinkColor,whenPrimaryColor:()=>e.themeColors.PrimaryColor,whenSecondaryColor:()=>e.themeColors.SecondaryColor,whenCardBackgroundColor:()=>e.themeColors.CardBackgroundColor,whenButtonTextColor:()=>e.themeColors.ButtonTextColor,whenCustom:t=>t}),D2=e=>({Match:t=>{switch(e){case"None":return t.whenNone();case"Underline":return t.whenUnderline();case"LineThrough":return t.whenLineThrough()}}}),tC=e=>D2(e.textDecoration).Match({whenNone:()=>"none",whenUnderline:()=>"underline",whenLineThrough:()=>"line-through"}),M2=e=>({fontSize:e.customFontSettings.FontSize,lineHeight:e.customFontSettings.LineHeight,fontWeight:e.customFontSettings.IsBold?"bold":"normal",fontStyle:e.customFontSettings.IsItalic?"italic":"normal",textDecoration:tC({textDecoration:e.customFontSettings.Decoration}),fontFamily:e.customFontSettings.FontFamily,color:N2({fontColor:e.customFontSettings.FontColor,themeColors:e.themeColors})}),nC=e=>({Match:t=>{switch(e.Discriminator){case"Heading":return t.whenHeading();case"Title":return t.whenTitle();case"SubHeading":return t.whenSubHeading();case"LargeText":return t.whenLargeText();case"NormalText":return t.whenNormalText();case"DescriptionText":return t.whenDescriptionText();case"Link":return t.whenLink();case"Button":return t.whenButton();case"Custom":return t.whenCustom(e.CustomFontSettings);default:return ys(e.Discriminator)}}}),B2=e=>({Match:t=>{switch(e.Discriminator){case"StyleLinkedColor":return t.whenFontStyle();case"EmailBackgroundColor":return t.whenEmailBackgroundColor();case"BodyColor":return t.whenBodyColor();case"TitleColor":return t.whenTitleColor();case"HeadingColor":return t.whenHeadingColor();case"SubHeadingColor":return t.whenSubHeading();case"LargeTextColor":return t.whenLargeTextColor();case"NormalTextColor":return t.whenNormalTextColor();case"DescriptionTextColor":return t.whenDescriptionTextColor();case"PrimaryTextColor":return t.whenPrimaryTextColor();case"SecondaryTextColor":return t.whenSecondaryTextColor();case"ButtonTextColor":return t.whenButtonTextColor();case"LinkColor":return t.whenLinkColor();case"PrimaryColor":return t.whenPrimaryColor();case"SecondaryColor":return t.whenSecondaryColor();case"CardBackgroundColor":return t.whenCardBackgroundColor();case"Custom":return t.whenCustom(e.CustomValue)}}}),k2=e=>B2(e.fontStyleColor).Match({whenFontStyle:()=>nC(e.fontStyle).Match({whenHeading:()=>e.themeColors.HeadingColor,whenTitle:()=>e.themeColors.TitleColor,whenSubHeading:()=>e.themeColors.SubHeadingColor,whenLargeText:()=>e.themeColors.LargeTextColor,whenNormalText:()=>e.themeColors.NormalTextColor,whenDescriptionText:()=>e.themeColors.DescriptionTextColor,whenButton:()=>e.themeColors.ButtonTextColor,whenLink:()=>e.themeColors.LinkColor,whenCustom:t=>ao({color:t.FontColor,themeColors:e.themeColors})}),whenEmailBackgroundColor:()=>e.themeColors.EmailBackgroundColor,whenBodyColor:()=>e.themeColors.BodyColor,whenTitleColor:()=>e.themeColors.TitleColor,whenHeadingColor:()=>e.themeColors.HeadingColor,whenSubHeading:()=>e.themeColors.SubHeadingColor,whenLargeTextColor:()=>e.themeColors.LargeTextColor,whenNormalTextColor:()=>e.themeColors.NormalTextColor,whenDescriptionTextColor:()=>e.themeColors.DescriptionTextColor,whenPrimaryTextColor:()=>e.themeColors.PrimaryTextColor,whenSecondaryTextColor:()=>e.themeColors.SecondaryTextColor,whenLinkColor:()=>e.themeColors.LinkColor,whenPrimaryColor:()=>e.themeColors.PrimaryColor,whenSecondaryColor:()=>e.themeColors.SecondaryColor,whenCardBackgroundColor:()=>e.themeColors.CardBackgroundColor,whenButtonTextColor:()=>e.themeColors.ButtonTextColor,whenCustom:t=>t}),F2={Arial:"Arial",Georgia:"Georgia",Tahoma:"Tahoma",TimesNewRoman:"Times New Roman",Verdana:"Verdana"},Bh=e=>({fontSize:e.fontSize+"px",lineHeight:e.lineHeight+"px",fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:F2[e.fontFamily],textDecoration:e.textDecoration,color:e.color}),kh=e=>{const t=n=>({fontSize:n.FontSize,lineHeight:n.LineHeight,fontWeight:n.IsBold?"bold":"normal",fontStyle:n.IsItalic?"italic":"normal",fontFamily:e.fontFamily,textDecoration:tC({textDecoration:n.Decoration}),color:k2({fontStyleColor:e.fontStyle.FontColor,fontStyle:e.fontStyle,themeColors:e.themeColors})});return nC(e.fontStyle).Match({whenHeading:()=>t(e.themeFontSettings.Heading),whenTitle:()=>t(e.themeFontSettings.Title),whenSubHeading:()=>t(e.themeFontSettings.SubHeading),whenLargeText:()=>t(e.themeFontSettings.LargeText),whenNormalText:()=>t(e.themeFontSettings.NormalText),whenDescriptionText:()=>t(e.themeFontSettings.DescriptionText),whenLink:()=>t(e.themeFontSettings.Link),whenButton:()=>t(e.themeFontSettings.Button),whenCustom:n=>M2({customFontSettings:n,themeColors:e.themeColors})})},$2=e=>({Match:t=>{switch(e.Discriminator){case"Theme":return t.whenTheme();case"Custom":return t.whenCustom(e.CustomValue);default:return ys(e.Discriminator)}}}),W2=e=>$2(e.buttonPaddings).Match({whenTheme:()=>({TopBottom:e.themeButtonPaddings.TopBottom,LeftRight:e.themeButtonPaddings.LeftRight}),whenCustom:t=>({TopBottom:t.TopBottom,LeftRight:t.LeftRight})}),H2={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"}},U2=["align"],V2={class:"Button"},G2=["href"],j2=at({__name:"ButtonVue",props:{deps:{},theme:{},element:{},context:{type:[String,Number,Boolean,Array,Object]}},setup(e){const t=e,n=Re(()=>Bh(kh({fontFamily:t.theme.FontFamily,fontStyle:t.element.TextStyle,themeFontSettings:t.theme.FontSettingsPresets,themeColors:t.theme.Colors}))),o=Re(()=>ou({borderColor:t.element.Border.Left.Color,themeColors:t.theme.Colors})),s=Re(()=>W2({buttonPaddings:t.element.Paddings,themeButtonPaddings:t.theme.ButtonPaddings})),a=Re(()=>ao({color:t.element.BackgroundColor,themeColors:t.theme.Colors})),l=Re(()=>{switch(t.element.ContentAlign){case"Center":return"center";case"Left":return"left";case"Right":return"right";default:return"center"}}),c=dn({href:"",text:"",isLoading:!0}),d=t.deps.stringExpressionEvaluator,m=()=>{Promise.all([d({stringExpression:t.element.HRef,context:t.context}),d({stringExpression:t.element.Text,context:t.context})]).then(([p,E])=>{c.href=p,c.text=E,c.isLoading=!1})};return m(),tn(()=>[t.element.HRef,t.element.Text,t.context],()=>m()),(p,E)=>(ie(),Ce("table",H2,[Z("tbody",null,[Z("tr",null,[Z("td",{align:l.value},[Z("div",V2,[Z("a",{style:Ae([{display:"block","text-decoration":"none"},[n.value]]),href:c.href,onClick:E[0]||(E[0]=fs(()=>{},["prevent"]))},[Z("table",{align:"center",style:Ae([{"text-align":"center","border-spacing":"0","border-collapse":"separate"},[{backgroundColor:a.value},oe(Do)({borderRadius:t.element.BorderRadius,borderRadiusCard:t.theme.BorderRadiusCard,bodyBorderRadius:t.theme.BorderRadius,borderButtonRadius:t.theme.BorderRadiusButton,borderBannerRadius:t.theme.BorderRadiusBanner}),{width:t.element.FullWidth?"100%":"auto"},oe(mi)({border:t.element.Border,themeColors:p.theme.Colors}),{borderColor:o.value}]])},[Z("tbody",null,[Z("tr",null,[Z("td",{align:"center",style:Ae([{"line-height":"normal"},[{paddingTop:s.value.TopBottom+"px",paddingBottom:s.value.TopBottom+"px",paddingLeft:s.value.LeftRight+"px",paddingRight:s.value.LeftRight+"px"}]])},[oo(Z("p",{class:"user-select-none",style:Ae([n.value])},null,4),[[oe(kd),c.text]])],4)])])],4)],12,G2)])],8,U2)])])]))}}),Y2=["href"],K2=at({__name:"SpanText",props:{deps:{},theme:{},element:{},context:{type:[String,Number,Boolean,Array,Object]}},setup(e){const t=e,n=t.deps.stringExpressionEvaluator,o=Re(()=>{const l=kh({fontFamily:t.theme.FontFamily,fontStyle:t.element.Style,themeFontSettings:t.theme.FontSettingsPresets,themeColors:t.theme.Colors});return{...Bh(l),minHeight:t.element.MinNumberOfLines*l.lineHeight+"px"}}),s=dn({href:"",text:"",isLoading:!0}),a=()=>{Promise.all([n({stringExpression:t.element.HRef,context:t.context}),n({stringExpression:t.element.Text,context:t.context})]).then(([l,c])=>{s.href=l,s.text=c,s.isLoading=!1})};return a(),tn(()=>[t.context,t.element.HRef,t.element.Text],()=>a()),(l,c)=>t.element.IsLink?oo((ie(),Ce("a",{key:0,href:s.href,class:"SpanText cursor-pointer user-select-none",style:Ae([{margin:"0"},[o.value,oe(Ca)({contentAlign:t.element.ContentAlign})]]),onClick:c[0]||(c[0]=fs(()=>{},["prevent"]))},null,12,Y2)),[[oe(kd),s.text]]):oo((ie(),Ce("span",{key:1,class:"SpanText cursor-pointer user-select-none",style:Ae([{margin:"0"},[o.value,oe(Ca)({contentAlign:t.element.ContentAlign})]])},null,4)),[[oe(kd),s.text]])}});const z2=Gn(K2,[["__scopeId","data-v-24009fb3"]]),q2=at({__name:"UnsubscribeLink",props:{theme:{},element:{}},setup(e){const t=e,n=Re(()=>{const o=kh({fontFamily:t.theme.FontFamily,fontStyle:t.element.Style,themeFontSettings:t.theme.FontSettingsPresets,themeColors:t.theme.Colors});return{...Bh(o)}});return(o,s)=>(ie(),Ce("a",{href:"#",class:"cursor-pointer user-select-none",style:Ae([{margin:"0"},[n.value,oe(Ca)({contentAlign:t.element.ContentAlign})]]),onClick:s[0]||(s[0]=fs(()=>{},["prevent"]))},Ud(t.element.Text),5))}});const X2=Gn(q2,[["__scopeId","data-v-5cffc6e3"]]),Na=at({__name:"Elements",props:{deps:{},theme:{},element:{},path:{},context:{type:[String,Number,Boolean,Array,Object]},selectedElementPath:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted"],setup(e,{emit:t}){const n=e,o=t,s=(a,l)=>{o("onElementClicked",{element:a,path:[...n.path,l]})};return(a,l)=>(ie(),Ce("span",{onClick:l[16]||(l[16]=fs(()=>{},["stop"]))},[oe(wo).button(n.element.Button)?(ie(),mt(j2,{key:0,deps:n.deps,theme:n.theme,element:n.element.Button,context:n.context,class:pr({"element-selected":oe(zs.isEqual)(n.selectedElementPath,[...n.path,"Button"])}),onClick:l[0]||(l[0]=c=>s(n.element,"Button"))},null,8,["deps","theme","element","context","class"])):vn("",!0),oe(wo).heightContainer(n.element.HeightContainer)?(ie(),mt(j$,{key:1,deps:n.deps,theme:n.theme,element:n.element.HeightContainer,path:[...n.path,"HeightContainer"],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageOriginalSizeAdjusted:l[1]||(l[1]=c=>o("onImageOriginalSizeAdjusted",c)),onOnImageSizeAdjusted:l[2]||(l[2]=c=>o("onImageSizeAdjusted",c)),onOnElementClicked:l[3]||(l[3]=c=>o("onElementClicked",c))},null,8,["deps","theme","element","path","selectedElementPath","context"])):vn("",!0),oe(wo).image(n.element.Image)?(ie(),mt(o2,{key:2,deps:n.deps,theme:n.theme,element:n.element.Image,context:n.context,path:[...n.path,"Image"],class:pr({"element-selected":oe(zs.isEqual)(n.selectedElementPath,[...n.path,"Image"])}),onOnImageOriginalSizeAdjusted:l[4]||(l[4]=c=>o("onImageOriginalSizeAdjusted",c)),onOnImageSizeAdjusted:l[5]||(l[5]=c=>o("onImageSizeAdjusted",c)),onClick:l[6]||(l[6]=c=>s(n.element,"Image"))},null,8,["deps","theme","element","context","path","class"])):vn("",!0),oe(wo).spacer(n.element.Spacer)?(ie(),mt(d2,{key:3,element:n.element.Spacer,theme:n.theme,class:pr({"element-selected":oe(zs.isEqual)(n.selectedElementPath,[...n.path,"Spacer"])}),onClick:l[7]||(l[7]=c=>s(n.element,"Spacer"))},null,8,["element","theme","class"])):vn("",!0),oe(wo).spanText(n.element.SpanText)?(ie(),mt(z2,{key:4,deps:n.deps,theme:n.theme,element:n.element.SpanText,context:n.context,class:pr({"element-selected":oe(zs.isEqual)(n.selectedElementPath,[...n.path,"SpanText"])}),onClick:l[8]||(l[8]=c=>s(n.element,"SpanText"))},null,8,["deps","theme","element","context","class"])):vn("",!0),oe(wo).oneLineLink(n.element.OneLineList)?(ie(),mt(u2,{key:5,deps:n.deps,theme:n.theme,element:n.element.OneLineList,path:[...n.path,"OneLineList"],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageOriginalSizeAdjusted:l[9]||(l[9]=c=>o("onImageOriginalSizeAdjusted",c)),onOnImageSizeAdjusted:l[10]||(l[10]=c=>o("onImageSizeAdjusted",c)),onOnElementClicked:l[11]||(l[11]=c=>o("onElementClicked",c))},null,8,["deps","theme","element","path","selectedElementPath","context"])):vn("",!0),oe(wo).if(n.element.If)?(ie(),mt(H$,{key:6,deps:n.deps,theme:n.theme,element:n.element.If,context:n.context,path:[...n.path,"If"],selectedElementPath:n.selectedElementPath,onOnImageOriginalSizeAdjusted:l[12]||(l[12]=c=>o("onImageOriginalSizeAdjusted",c)),onOnImageSizeAdjusted:l[13]||(l[13]=c=>o("onImageSizeAdjusted",c)),onOnElementClicked:l[14]||(l[14]=c=>o("onElementClicked",c))},null,8,["deps","theme","element","context","path","selectedElementPath"])):vn("",!0),oe(wo).unsubscribeLink(n.element.UnsubscribeLink)?(ie(),mt(X2,{key:7,theme:n.theme,element:n.element.UnsubscribeLink,class:pr({"element-selected":oe(zs.isEqual)(n.selectedElementPath,[...n.path,"UnsubscribeLink"])}),onClick:l[15]||(l[15]=c=>s(n.element,"UnsubscribeLink"))},null,8,["theme","element","class"])):vn("",!0)]))}}),J2=at({__name:"IteratedColumn",props:{deps:{},theme:{},iteratedColumn:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]},containerWidth:{}},emits:["onImageSizeAdjusted","onImageOriginalSizeAdjusted","onElementClicked"],setup(e,{emit:t}){ku(a=>({"6300cb1b":s.value}));const n=e,o=t,s=Re(()=>n.iteratedColumn.WidthInPercents*n.containerWidth+"px");return(a,l)=>(ie(),Ce("div",{class:"iterated-column",style:Ae({display:"inline-block",verticalAlign:n.iteratedColumn.VerticalAlign})},[Z("table",{style:Ae([[oe(Yb)({borderCollapse:n.iteratedColumn.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[Z("tbody",null,[Z("tr",null,[Z("td",{style:Ae([{"line-height":"normal"},[oe(zb)({containerAlign:n.iteratedColumn.ContainerAlign}),oe(bs)({paddings:n.iteratedColumn.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),oe(mi)({border:n.iteratedColumn.Border,themeColors:n.theme.Colors}),{backgroundColor:oe(ao)({color:n.iteratedColumn.BgColor,themeColors:n.theme.Colors})},oe(Do)({borderRadius:n.iteratedColumn.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})]])},[(ie(!0),Ce(ot,null,$n(n.iteratedColumn.Elements,(c,d)=>(ie(),mt(Na,{key:d,deps:n.deps.elementsDeps,theme:n.theme,element:c,context:n.context,path:[...n.path,"Elements",d],selectedElementPath:n.selectedElementPath,onOnElementClicked:l[0]||(l[0]=m=>o("onElementClicked",m)),onOnImageSizeAdjusted:l[1]||(l[1]=m=>o("onImageSizeAdjusted",m)),onOnImageOriginalSizeAdjusted:l[2]||(l[2]=m=>o("onImageOriginalSizeAdjusted",m))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],4)])])],4)],4))}});const Z2=Gn(J2,[["__scopeId","data-v-284c0a90"]]),Q2={class:"iterated-column-container",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"},width:"100%"},eW={align:"center",style:{"font-size":"0"}},tW=at({__name:"IteratedColumnBodyRow",props:{deps:{},theme:{},iteratedColumnBodyRow:{},path:{},selectedElementPath:{},context:{},rowWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted"],setup(e,{emit:t}){ku(c=>({"22b1b0df":a.value}));const n=e,o=dn({dataList:[],isLoaded:!1}),s=()=>n.deps.listExpressionEvaluator({listExpression:n.iteratedColumnBodyRow.DataSource,context:n.context}).then(c=>{o.dataList=c,o.isLoaded=!0});s(),tn(()=>n.context,()=>s());const a=Re(()=>en({paddingExpression:n.iteratedColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})+"px"),l=t;return(c,d)=>(ie(),Ce("table",Q2,[Z("tbody",null,[Z("tr",null,[Z("td",eW,[(ie(!0),Ce(ot,null,$n(o.dataList,(m,p)=>(ie(),Ce("span",{key:p},[Ke(Z2,{class:pr(["iterated-column-bottom-spacer",{"iterated-column__tablet-padding-right":(p+1)%2===1,"iterated-column__tablet-padding-left":(p+1)%2===0,"is-last-desktop-line":p>=o.dataList.length-n.iteratedColumnBodyRow.NumberColumnsInLine,"is-last-tablet-line":p>=o.dataList.length-2,"is-last-mobile-line":p==o.dataList.length-1}]),deps:n.deps.iteratedColumnDeps,theme:n.theme,style:Ae(oe(jb)({numberColumnsInLine:n.iteratedColumnBodyRow.NumberColumnsInLine,index:p,paddingSize:oe(en)({paddingExpression:n.iteratedColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),directionRtl:!1})),iteratedColumn:n.iteratedColumnBodyRow.IteratedColumn,path:[...n.path,"IteratedColumn"],selectedElementPath:n.selectedElementPath,context:{...n.context,[n.iteratedColumnBodyRow.IndexName]:m},containerWidth:n.rowWidth,onOnElementClicked:d[0]||(d[0]=E=>l("onElementClicked",E)),onOnImageOriginalSizeAdjusted:d[1]||(d[1]=E=>l("onImageOriginalSizeAdjusted",E)),onOnImageSizeAdjusted:d[2]||(d[2]=E=>l("onImageSizeAdjusted",E))},null,8,["deps","theme","class","style","iteratedColumn","path","selectedElementPath","context","containerWidth"])]))),128))])])])]))}});const nW=Gn(tW,[["__scopeId","data-v-7d644c9d"]]),rW={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"}},oW=at({__name:"IteratedBodyRow",props:{theme:{},deps:{},iteratedBodyRow:{},path:{},selectedElementPath:{},context:{},containerWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted"],setup(e,{emit:t}){const n=e,o=dn({dataList:[]});n.deps.listExpressionEvaluator({listExpression:n.iteratedBodyRow.DataSource,context:n.context}).then(a=>o.dataList=a);const s=t;return(a,l)=>(ie(),Ce("table",rW,[(ie(!0),Ce(ot,null,$n(o.dataList,(c,d)=>(ie(),Ce("tr",{key:d},[Z("td",{style:Ae([oe(bs)({paddings:n.iteratedBodyRow.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})])},[Ke(sC,{emailComponentBodyRow:n.iteratedBodyRow.BodyRow,deps:{iteratedColumnBodyRowDeps:n.deps.iteratedColumnBodyRowDeps,multipleColumnBodyRowDeps:n.deps.multipleColumnBodyRowDeps,listExpressionEvaluator:n.deps.listExpressionEvaluator},theme:n.theme,context:{...n.context,[n.iteratedBodyRow.IndexName]:c},rowWidth:n.containerWidth,path:[...n.path,"BodyRow"],selectedElementPath:n.selectedElementPath,onOnElementClicked:l[0]||(l[0]=m=>s("onElementClicked",m)),onOnImageOriginalSizeAdjusted:l[1]||(l[1]=m=>s("onImageOriginalSizeAdjusted",m)),onOnImageSizeAdjusted:l[2]||(l[2]=m=>s("onImageSizeAdjusted",m)),onOnColumnWidthAdjusted:l[3]||(l[3]=m=>s("onColumnWidthAdjusted",m))},null,8,["emailComponentBodyRow","deps","theme","context","rowWidth","path","selectedElementPath"])],4)]))),128))]))}});var su={},rC={},Qu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isNone=e.isSome=e.None=e.Some=e.OptionType=void 0,e.OptionType={Some:Symbol(":some"),None:Symbol(":none")};function t(l){return typeof l>"u"?o():n(l)}e.Some=t,e.None=o();function n(l){return{type:e.OptionType.Some,isSome(){return!0},isNone(){return!1},match(c){return c.some(l)},map(c){return n(c(l))},andThen(c){return c(l)},or(c){return this},and(c){return c},unwrapOr(c){return l},unwrap(){return l}}}function o(){return{type:e.OptionType.None,isSome(){return!1},isNone(){return!0},match(l){const{none:c}=l;return typeof c=="function"?c():c},map(l){return o()},andThen(l){return o()},or(l){return l},and(l){return o()},unwrapOr(l){if(l==null)throw new Error("Cannot call unwrapOr with a missing value.");return l},unwrap(){throw new ReferenceError("Trying to unwrap None.")}}}function s(l){return l.isSome()}e.isSome=s;function a(l){return l.isNone()}e.isNone=a})(Qu);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isRight=e.isLeft=e.Right=e.Left=e.EitherType=void 0;const t=Qu;e.EitherType={Left:Symbol(":left"),Right:Symbol(":right")};function n(l){return{type:e.EitherType.Left,isLeft(){return!0},isRight(){return!1},left(){return(0,t.Some)(l)},leftAndThen(c){return c(l)},right(){return t.None},rightAndThen(c){return n(l)},unwrap(){return l},unwrapLeft(){return l},unwrapLeftOr(c){return l},unwrapLeftOrElse(c){return l},unwrapRight(){throw new ReferenceError("Cannot unwrap Right value of Either.Left")},unwrapRightOr(c){return c},unwrapRightOrElse(c){return c(l)},match(c){return c.left(l)},map(c){return n(c(l))},mapLeft(c){return n(c(l))},mapRight(c){return n(l)}}}e.Left=n;function o(l){return{type:e.EitherType.Right,isLeft(){return!1},isRight(){return!0},left(){return t.None},leftAndThen(c){return o(l)},right(){return(0,t.Some)(l)},rightAndThen(c){return c(l)},unwrap(){return l},unwrapLeft(){throw new ReferenceError("Cannot unwrap Left value of Either.Right")},unwrapLeftOr(c){return c},unwrapLeftOrElse(c){return c(l)},unwrapRight(){return l},unwrapRightOr(c){return l},unwrapRightOrElse(c){return l},match(c){return c.right(l)},map(c){return o(c(l))},mapLeft(c){return o(l)},mapRight(c){return o(c(l))}}}e.Right=o;function s(l){return l.isLeft()}e.isLeft=s;function a(l){return l.isRight()}e.isRight=a})(rC);var oC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isErr=e.isOk=e.Err=e.Ok=e.ResultType=void 0;const t=Qu;e.ResultType={Ok:Symbol(":ok"),Err:Symbol(":err")};function n(l){return{type:e.ResultType.Ok,isOk(){return!0},isErr(){return!1},ok(){return(0,t.Some)(l)},err(){return t.None},unwrap(){return l},unwrapOr(c){return l},unwrapOrElse(c){return l},unwrapErr(){throw new ReferenceError("Cannot unwrap Err value of Result.Ok")},match(c){return c.ok(l)},map(c){return n(c(l))},mapErr(c){return n(l)},andThen(c){return c(l)},orElse(c){return n(l)}}}e.Ok=n;function o(l){return{type:e.ResultType.Err,isOk(){return!1},isErr(){return!0},ok(){return t.None},err(){return(0,t.Some)(l)},unwrap(){throw new ReferenceError("Cannot unwrap Ok value of Result.Err")},unwrapOr(c){return c},unwrapOrElse(c){return c(l)},unwrapErr(){return l},match(c){return c.err(l)},map(c){return o(l)},mapErr(c){return o(c(l))},andThen(c){return o(l)},orElse(c){return c(l)}}}e.Err=o;function s(l){return l.isOk()}e.isOk=s;function a(l){return l.isErr()}e.isErr=a})(oC);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Ok=e.isOk=e.isErr=e.Err=e.Some=e.None=e.isSome=e.isNone=e.Right=e.Left=e.isRight=e.isLeft=void 0;var t=rC;Object.defineProperty(e,"isLeft",{enumerable:!0,get:function(){return t.isLeft}}),Object.defineProperty(e,"isRight",{enumerable:!0,get:function(){return t.isRight}}),Object.defineProperty(e,"Left",{enumerable:!0,get:function(){return t.Left}}),Object.defineProperty(e,"Right",{enumerable:!0,get:function(){return t.Right}});var n=Qu;Object.defineProperty(e,"isNone",{enumerable:!0,get:function(){return n.isNone}}),Object.defineProperty(e,"isSome",{enumerable:!0,get:function(){return n.isSome}}),Object.defineProperty(e,"None",{enumerable:!0,get:function(){return n.None}}),Object.defineProperty(e,"Some",{enumerable:!0,get:function(){return n.Some}});var o=oC;Object.defineProperty(e,"Err",{enumerable:!0,get:function(){return o.Err}}),Object.defineProperty(e,"isErr",{enumerable:!0,get:function(){return o.isErr}}),Object.defineProperty(e,"isOk",{enumerable:!0,get:function(){return o.isOk}}),Object.defineProperty(e,"Ok",{enumerable:!0,get:function(){return o.Ok}})})(su);const iW=e=>({Match:t=>{switch(e){case"Top":return t.whenTop();case"Middle":return t.whenMiddle();case"Bottom":return t.whenBottom();case"Baseline":return t.whenBaseline()}}}),sW=e=>iW(e).Match({whenTop:()=>"start",whenMiddle:()=>"center",whenBottom:()=>"end",whenBaseline:()=>"baseline"}),Qf={justifyWidth:e=>(e==null?void 0:e.WidthInPixels)!==void 0,shrinkToContentWidth:e=>(e==null?void 0:e.WidthInPixels)!==void 0,widthInPercents:e=>e!==void 0},iC=e=>({Match:t=>{if(e.JustifyWidth!==void 0)return t.whenJustifyWidth(e.JustifyWidth.WidthInPixels);if(e.ShrinkToContentWidth!==void 0)return t.whenShrinkToContentWidth(e.ShrinkToContentWidth.WidthInPixels);if(e.WidthInPercents!==void 0)return t.whenWidthInPercents(e.WidthInPercents.Value);throw Error("")}}),aW=e=>({Match:t=>iC(e).Match({whenJustifyWidth:n=>t.whenJustifyWidth?t.whenJustifyWidth(n):t.default(),whenWidthInPercents:n=>t.whenWidthInPercents?t.whenWidthInPercents(n):t.default(),whenShrinkToContentWidth:n=>t.whenShrinkToContentWidth?t.whenShrinkToContentWidth(n):t.default()})}),lW=e=>({JustifyWidth:{WidthInPixels:e}}),uW=e=>({ShrinkToContentWidth:{WidthInPixels:e}}),cW=["align"],fW=at({__name:"MultipleColumn",props:{deps:{},theme:{},multipleColumn:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]},containerWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted"],setup(e,{emit:t}){ku(d=>({"505fd5fb":c.value,"89e91a86":l.value,"6083c43a":a.value}));const n=e,o=t,s=d=>{iC(n.multipleColumn.Width).Match({whenJustifyWidth:()=>su.Some(lW(d)),whenShrinkToContentWidth:()=>su.Some(uW(d)),whenWidthInPercents:()=>su.None}).map(m=>o("onColumnWidthAdjusted",{Path:n.path,Width:m}))},a=Re(()=>aW(n.multipleColumn.Width).Match({default:()=>"",whenWidthInPercents:d=>d*n.containerWidth+"px"})),l=Re(()=>sW(n.multipleColumn.VerticalAlign)),c=Re(()=>n.multipleColumn.VerticalAlign);return(d,m)=>oo((ie(),Ce("div",{class:pr(["multiple-column",{"multiple-column--justifyWidth":oe(Qf).justifyWidth(n.multipleColumn.Width.JustifyWidth),"multiple-column--shrinkToContentWidth":oe(Qf).shrinkToContentWidth(n.multipleColumn.Width.ShrinkToContentWidth),"multiple-column--widthInPercents":oe(Qf).widthInPercents(n.multipleColumn.Width.WidthInPercents)}]),style:{direction:"ltr"}},[Z("table",{style:Ae([{width:"100%","border-spacing":"0"},[oe(Yb)({borderCollapse:n.multipleColumn.BorderCollapse})]]),width:"100%"},[Z("tbody",null,[Z("tr",null,[Z("td",{align:oe(qb)({containerAlign:n.multipleColumn.ContainerAlign}),style:Ae([{"line-height":"normal"},[oe(mi)({border:n.multipleColumn.Border,themeColors:n.theme.Colors}),oe(Do)({borderRadius:n.multipleColumn.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:oe(ao)({color:n.multipleColumn.BgColor,themeColors:n.theme.Colors})},oe(bs)({paddings:n.multipleColumn.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})]])},[(ie(!0),Ce(ot,null,$n(n.multipleColumn.Elements,(p,E)=>(ie(),mt(Na,{key:E,deps:n.deps.elementsDeps,theme:n.theme,element:p,context:n.context,path:[...n.path,"Elements",E],selectedElementPath:n.selectedElementPath,onOnElementClicked:m[0]||(m[0]=C=>o("onElementClicked",C)),onOnImageSizeAdjusted:m[1]||(m[1]=C=>o("onImageSizeAdjusted",C)),onOnImageOriginalSizeAdjusted:m[2]||(m[2]=C=>o("onImageOriginalSizeAdjusted",C))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,cW)])])],4)],2)),[[oe(Cu),p=>s(p.width)]])}});const dW=Gn(fW,[["__scopeId","data-v-9630cdcf"]]),hW=at({__name:"MultipleColumnBodyRow",props:{deps:{},theme:{},multipleColumnBodyRow:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]},rowWidth:{}},emits:["onElementClicked","onImageSizeAdjusted","onImageOriginalSizeAdjusted","onColumnWidthAdjusted"],setup(e,{emit:t}){ku(a=>({"308ed3d8":s.value}));const n=e,o=t,s=Re(()=>en({paddingExpression:n.multipleColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})+"px");return(a,l)=>(ie(),Ce("table",{class:"multiple-column-container",style:Ae([{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"},[oe(mi)({border:n.multipleColumnBodyRow.Border,themeColors:n.theme.Colors}),oe(Do)({borderRadius:n.multipleColumnBodyRow.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadius}),{backgroundColor:oe(ao)({color:n.multipleColumnBodyRow.BgColor,themeColors:n.theme.Colors})}]]),width:"100%"},[Z("tbody",null,[Z("tr",null,[Z("td",{class:"multiple-column-container__inner",style:Ae([{"font-size":"0"},[oe(zb)({containerAlign:n.multipleColumnBodyRow.ContainerAlign}),oe(bs)({paddings:n.multipleColumnBodyRow.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),n.multipleColumnBodyRow.DirectionRtl?{direction:"rtl"}:{direction:"ltr"}]])},[(ie(!0),Ce(ot,null,$n(n.multipleColumnBodyRow.Columns,(c,d)=>(ie(),mt(dW,{key:d,deps:n.deps.multipleColumnDeps,theme:n.theme,multipleColumn:c,path:[...n.path,"Columns",d],selectedElementPath:n.selectedElementPath,context:n.context,containerWidth:n.rowWidth-oe(en)({paddingExpression:n.multipleColumnBodyRow.Paddings.Left,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})-oe(en)({paddingExpression:n.multipleColumnBodyRow.Paddings.Right,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})-n.multipleColumnBodyRow.Border.Left.Width-n.multipleColumnBodyRow.Border.Right.Width,style:Ae(oe(jb)({numberColumnsInLine:n.multipleColumnBodyRow.Columns.length,index:d,paddingSize:oe(en)({paddingExpression:n.multipleColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),directionRtl:n.multipleColumnBodyRow.DirectionRtl})),class:pr({"is-last-tablet-line":d==n.multipleColumnBodyRow.Columns.length-1,"is-last-mobile-line":d==n.multipleColumnBodyRow.Columns.length-1}),onOnElementClicked:l[0]||(l[0]=m=>o("onElementClicked",m)),onOnColumnWidthAdjusted:l[1]||(l[1]=m=>o("onColumnWidthAdjusted",m)),onOnImageSizeAdjusted:l[2]||(l[2]=m=>o("onImageSizeAdjusted",m)),onOnImageOriginalSizeAdjusted:l[3]||(l[3]=m=>o("onImageOriginalSizeAdjusted",m))},null,8,["deps","theme","multipleColumn","path","selectedElementPath","context","containerWidth","style","class"]))),128))],4)])])],4))}});const mW=Gn(hW,[["__scopeId","data-v-c2d3f20e"]]),sC=at({__name:"EmailComponentBodyRow",props:{deps:{},theme:{},emailComponentBodyRow:{},path:{},selectedElementPath:{},context:{},rowWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted"],setup(e,{emit:t}){const n=e,o={multipleColumns:a=>a!==void 0,iteratedColumns:a=>a!==void 0,iteratedBodyRow:a=>a!==void 0},s=t;return(a,l)=>(ie(),Ce("div",null,[o.multipleColumns(n.emailComponentBodyRow.MultipleColumnBodyRow)?(ie(),mt(mW,{key:0,deps:n.deps.multipleColumnBodyRowDeps,theme:n.theme,multipleColumnBodyRow:n.emailComponentBodyRow.MultipleColumnBodyRow,path:[...n.path,"MultipleColumnBodyRow"],selectedElementPath:n.selectedElementPath,context:a.context,rowWidth:n.rowWidth,onOnColumnWidthAdjusted:l[0]||(l[0]=c=>s("onColumnWidthAdjusted",c)),onOnImageOriginalSizeAdjusted:l[1]||(l[1]=c=>s("onImageOriginalSizeAdjusted",c)),onOnImageSizeAdjusted:l[2]||(l[2]=c=>s("onImageSizeAdjusted",c)),onOnElementClicked:l[3]||(l[3]=c=>s("onElementClicked",c))},null,8,["deps","theme","multipleColumnBodyRow","path","selectedElementPath","context","rowWidth"])):vn("",!0),o.iteratedColumns(n.emailComponentBodyRow.IteratedColumnBodyRow)?(ie(),mt(nW,{key:1,deps:n.deps.iteratedColumnBodyRowDeps,theme:n.theme,iteratedColumnBodyRow:n.emailComponentBodyRow.IteratedColumnBodyRow,path:[...n.path,"IteratedColumnBodyRow"],selectedElementPath:n.selectedElementPath,context:a.context,rowWidth:n.rowWidth,onOnElementClicked:l[4]||(l[4]=c=>s("onElementClicked",c)),onOnImageOriginalSizeAdjusted:l[5]||(l[5]=c=>s("onImageOriginalSizeAdjusted",c)),onOnImageSizeAdjusted:l[6]||(l[6]=c=>s("onImageSizeAdjusted",c))},null,8,["deps","theme","iteratedColumnBodyRow","path","selectedElementPath","context","rowWidth"])):vn("",!0),o.iteratedBodyRow(n.emailComponentBodyRow.IteratedBodyRow)?(ie(),mt(oW,{key:2,deps:{iteratedColumnBodyRowDeps:n.deps.iteratedColumnBodyRowDeps,multipleColumnBodyRowDeps:n.deps.multipleColumnBodyRowDeps,listExpressionEvaluator:n.deps.listExpressionEvaluator},theme:n.theme,iteratedBodyRow:n.emailComponentBodyRow.IteratedBodyRow,path:[...n.path,"IteratedBodyRow"],selectedElementPath:n.selectedElementPath,context:a.context,containerWidth:n.rowWidth,onOnElementClicked:l[7]||(l[7]=c=>s("onElementClicked",c)),onOnImageOriginalSizeAdjusted:l[8]||(l[8]=c=>s("onImageOriginalSizeAdjusted",c)),onOnImageSizeAdjusted:l[9]||(l[9]=c=>s("onImageSizeAdjusted",c))},null,8,["deps","theme","iteratedBodyRow","path","selectedElementPath","context","containerWidth"])):vn("",!0)]))}}),pW={key:0},gW={key:1,class:"empty-email-component"},_W={class:"bootstrap-styles w-100 d-flex justify-content-center gap-5"},EW=at({__name:"EmailComponent",props:{deps:{},theme:{},emailComponent:{},path:{},selectedElementPath:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted"],setup(e,{emit:t}){const n=e,o=dn({context:{},ifResult:!n.emailComponent.ContextBuilderExpression,isLoaded:!1}),s=l=>{o.isLoaded=!1,n.deps.dataStructExpressionEvaluator({dataStructBuilderExpression:l,context:{}}).then(c=>{(n.emailComponent.IfExpression?n.deps.boolExpressionEvaluatorDelegate({boolExpression:n.emailComponent.IfExpression,context:c}):Promise.resolve(!0)).then(d=>{o.context=c,o.ifResult=d,o.isLoaded=!0})})};tn(()=>n.emailComponent.ContextBuilderExpression,l=>{l&&s(l)});const a=t;return n.emailComponent.ContextBuilderExpression?s(n.emailComponent.ContextBuilderExpression):o.isLoaded=!0,(l,c)=>{const d=SL("VSkeletonLoader");return o.isLoaded?(ie(),Ce("div",pW,[o.ifResult?(ie(),Ce("table",{key:0,style:Ae([{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"},[{backgroundColor:oe(ao)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})},oe(Do)({borderRadius:n.emailComponent.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{maxWidth:n.theme.BodyWidth+"px"}]])},[Z("tbody",null,[Z("tr",null,[Z("td",{class:"row__inner",style:Ae([oe(OE)({paddings:n.emailComponent.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings,fullWidth:n.emailComponent.FullWidth})])},[(ie(!0),Ce(ot,null,$n(n.emailComponent.BodyRowList,(m,p)=>(ie(),mt(sC,{key:p,deps:n.deps.emailComponentBodyRowDeps,theme:n.theme,emailComponentBodyRow:m,context:o.context,rowWidth:n.emailComponent.FullWidth?n.theme.BodyWidth:n.theme.BodyWidth-n.theme.BodyPaddings.Left-n.theme.BodyPaddings.Right,path:[...n.path,"BodyRowList",p],selectedElementPath:n.selectedElementPath,onOnElementClicked:c[0]||(c[0]=E=>a("onElementClicked",E)),onOnImageSizeAdjusted:c[1]||(c[1]=E=>a("onImageSizeAdjusted",E)),onOnImageOriginalSizeAdjusted:c[2]||(c[2]=E=>a("onImageOriginalSizeAdjusted",E)),onOnColumnWidthAdjusted:c[3]||(c[3]=E=>a("onColumnWidthAdjusted",E))},null,8,["deps","theme","emailComponentBodyRow","context","rowWidth","path","selectedElementPath"]))),128))],4)])])],4)):(ie(),Ce("div",gW,[c[5]||(c[5]=ih(" Товарная полка скрыта из-за недостатка товаров ")),oo((ie(),Ce("i",null,c[4]||(c[4]=[Z("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Z("path",{d:"M6.99967 13.6663C3.31777 13.6663 0.333008 10.6815 0.333008 6.99967C0.333008 3.31777 3.31777 0.333008 6.99967 0.333008C10.6815 0.333008 13.6663 3.31777 13.6663 6.99967C13.6663 10.6815 10.6815 13.6663 6.99967 13.6663ZM6.99967 12.333C9.94521 12.333 12.333 9.94521 12.333 6.99967C12.333 4.05415 9.94521 1.66634 6.99967 1.66634C4.05415 1.66634 1.66634 4.05415 1.66634 6.99967C1.66634 9.94521 4.05415 12.333 6.99967 12.333ZM6.33301 3.66634H7.66634V4.99967H6.33301V3.66634ZM6.33301 6.33301H7.66634V10.333H6.33301V6.33301Z",fill:"var(--gray-500)"})],-1)]))),[[oe(Gb),{placement:"top",title:"Товарная полка не будет отображаться у получателей письма пока в ней недостаточно товаров"}]])]))])):(ie(),Ce("div",{key:1,class:"bootstrap-styles w-100",style:Ae([oe(OE)({paddings:n.emailComponent.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings,fullWidth:n.emailComponent.FullWidth}),{backgroundColor:oe(ao)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})||"transparent"}])},[Ke(d,{type:"text"}),Z("div",_W,[(ie(),Ce(ot,null,$n(3,m=>Ke(d,{key:m,type:"image, text, text, text, button",style:{width:"100%"}})),64))])],4))}}});const aC=Gn(EW,[["__scopeId","data-v-a8102873"]]),vW={class:"scale-to-width-fit-component",style:{display:"inline-block","transform-origin":"left top"}},lC=at({__name:"ScaleToWidthFit",emits:["scaledElement"],setup(e,{emit:t}){const n=t;return(o,s)=>oo((ie(),Ce("div",vW,[sd(o.$slots,"default")])),[[oe(Cu),({width:a})=>{o.$el.style.transform=`scale(${o.$el.parentElement.clientWidth/a}`,n("scaledElement",o.$el)}]])}}),yW={class:"bootstrap-styles modal fade show d-block position-absolute"},bW={class:"bootstrap-styles modal-dialog modal-dialog-centered"},CW={class:"bootstrap-styles modal-content border rounded-3 shadow","data-test":"modal-window__content"},TW={class:"bootstrap-styles modal-header p-0"},wW={class:"bootstrap-styles container-fluid border-bottom g-0"},AW={class:"bootstrap-styles d-flex justify-content-between align-items-center px-11 py-7"},SW={class:"bootstrap-styles modal-title border-0","data-test":"modal-window__header-text"},xW={class:"bootstrap-styles modal-body p-0","data-test":"modal-window__body"},LW={class:"bootstrap-styles modal-footer p-0 g-0"},IW={class:"bootstrap-styles container-fluid border-top"},OW={class:"bootstrap-styles d-flex justify-content-end py-8 px-11"},RW={class:"bootstrap-styles col-6 d-flex justify-content-end","data-test":"modal-window__footer-actions"},PW=at({__name:"ModalWindow",props:{headerText:{}},emits:["close"],setup(e,{emit:t}){const n=e,o=t;return(s,a)=>(ie(),Ce("div",yW,[Z("div",{class:"bootstrap-styles modal-blur d-block position-fixed top-0 left-0 w-100 vh-100","data-test":"modal-window__outside",onClick:a[0]||(a[0]=l=>o("close"))}),Z("div",bW,[Z("div",CW,[Z("div",TW,[Z("div",wW,[Z("div",AW,[Z("h5",SW,Ud(n.headerText),1),oo((ie(),Ce("button",{type:"button","aria-label":"Close","data-bs-dismiss":"modal","data-test":"modal-window__close-button",onClick:a[1]||(a[1]=l=>o("close"))},a[2]||(a[2]=[Z("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[Z("path",{d:"M3 3L13 13",stroke:"var(--gray-500)"}),Z("path",{d:"M13 3L3 13",stroke:"var(--gray-500)"})],-1)]))),[[oe(Gb),{title:"Закрыть",placement:"top"}]])])])]),Z("div",xW,[sd(s.$slots,"body",{},void 0,!0)]),Z("div",LW,[Z("div",IW,[Z("div",OW,[Z("div",RW,[sd(s.$slots,"footer-actions",{},void 0,!0)])])])])])])]))}});const NW=Gn(PW,[["__scopeId","data-v-51d20551"]]),DW={class:"email-template-preview__inner-padding scrollable"},MW={class:"webkit emailTemplate--desktop"},BW={class:"emailTemplate-border-top"},kW={class:"emailTemplate-border-bottom"},FW=at({__name:"EmailTemplatePreviewModalWindow",props:{template:{},deps:{}},emits:["favoriteTemplateSelected","close"],setup(e,{emit:t}){const n=e,o=a=>{const l=a.parentElement;l&&(l.style.height=a.getBoundingClientRect().height+"px")},s=t;return(a,l)=>(ie(),mt(NW,{headerText:"Предпросмотр",class:"email-component__preview-modal-window",onClose:l[3]||(l[3]=()=>s("close"))},{body:na(()=>[Z("div",{style:Ae({backgroundColor:a.template.Theme.Colors.EmailBackgroundColor})},[Ke(lC,{onScaledElement:l[0]||(l[0]=c=>o(c))},{default:na(()=>[Z("div",DW,[Z("div",{class:"bootstrap-styles pe-none email-template-preview",style:Ae({backgroundColor:n.template.Theme.Colors.EmailBackgroundColor,fontFamily:n.template.Theme.FontFamily,width:a.template.Theme.BodyWidth+"px"})},[Z("div",MW,[Z("div",BW,[Z("table",{style:Ae([[{maxWidth:n.template.Theme.BodyWidth+"px",width:"100%",backgroundColor:n.template.Theme.Colors.BodyColor,borderTopLeftRadius:n.template.Theme.BorderRadius.TopLeft+"px",borderTopRightRadius:n.template.Theme.BorderRadius.TopRight+"px"}],{"border-spacing":"0"}])},[Z("tbody",null,[Z("tr",null,[Z("td",{style:Ae([{paddingTop:n.template.Theme.BodyPaddings.Top+"px"},{"font-size":"0","line-height":"0"}])},"   ",4)])])],4)]),(ie(!0),Ce(ot,null,$n(n.template.Components,(c,d)=>(ie(),Ce("div",{key:d},[Ke(aC,{deps:a.deps.emailComponentDeps,theme:n.template.Theme,emailComponent:c,path:[],selectedElementPath:[]},null,8,["deps","theme","emailComponent"])]))),128)),Z("div",kW,[Z("table",{style:Ae([[{maxWidth:n.template.Theme.BodyWidth+"px",width:"100%",backgroundColor:n.template.Theme.Colors.BodyColor,borderBottomLeftRadius:n.template.Theme.BorderRadius.BottomLeft+"px",borderBottomRightRadius:n.template.Theme.BorderRadius.BottomRight+"px"}],{"border-spacing":"0"}])},[Z("tbody",null,[Z("tr",null,[Z("td",{style:Ae([{paddingBottom:n.template.Theme.BodyPaddings.Bottom+"px"},{"font-size":"0","line-height":"0"}])},"   ",4)])])],4)])])],4)])]),_:1})],4)]),"footer-actions":na(()=>[Z("button",{type:"button",class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 border border-blue-selected rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:l[1]||(l[1]=fs(()=>s("close"),["stop"]))}," Отмена "),Z("button",{type:"submit",class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 border rounded-2 bg-color-selected text-white cursor-pointer",onClick:l[2]||(l[2]=()=>{s("favoriteTemplateSelected")})}," Выбрать ")]),_:1}))}});const $W=Gn(FW,[["__scopeId","data-v-7bb60afa"]]),WW={class:"email-template-preview__inner-padding scrollable"},HW={class:"webkit emailTemplate--desktop"},UW={class:"emailTemplate-border-top"},VW={class:"emailTemplate-border-bottom"},GW=at({__name:"EmailTemplatePreviewTile",props:{deps:{},template:{}},emits:["favoriteTemplateSelected"],setup(e,{emit:t}){const n=e,o=dn({isPreviewComponentModalWindowShown:!1}),s=l=>{const c=l.parentElement;c&&(c.style.height=l.getBoundingClientRect().height+"px")},a=t;return(l,c)=>(ie(),Ce(ot,null,[Z("div",{class:"bootstrap-styles h-100",style:Ae({backgroundColor:n.template.Theme.Colors.EmailBackgroundColor}),onClick:c[1]||(c[1]=()=>{o.isPreviewComponentModalWindowShown=!0})},[Ke(lC,{onScaledElement:c[0]||(c[0]=d=>s(d))},{default:na(()=>[Z("div",WW,[Z("div",{class:"bootstrap-styles pe-none email-template-preview",style:Ae({backgroundColor:n.template.Theme.Colors.EmailBackgroundColor,fontFamily:n.template.Theme.FontFamily,width:l.template.Theme.BodyWidth+"px"})},[Z("div",HW,[Z("div",UW,[Z("table",{style:Ae([[{maxWidth:n.template.Theme.BodyWidth+"px",width:"100%",backgroundColor:n.template.Theme.Colors.BodyColor,borderTopLeftRadius:n.template.Theme.BorderRadius.TopLeft+"px",borderTopRightRadius:n.template.Theme.BorderRadius.TopRight+"px"}],{"border-spacing":"0"}])},[Z("tbody",null,[Z("tr",null,[Z("td",{style:Ae([{paddingTop:n.template.Theme.BodyPaddings.Top+"px"},{"font-size":"0","line-height":"0"}])},"   ",4)])])],4)]),(ie(!0),Ce(ot,null,$n(n.template.Components,(d,m)=>(ie(),Ce("div",{key:m},[Ke(aC,{deps:n.deps.emailComponentDeps,theme:n.template.Theme,emailComponent:d,path:[],selectedElementPath:[]},null,8,["deps","theme","emailComponent"])]))),128)),Z("div",VW,[Z("table",{style:Ae([[{maxWidth:n.template.Theme.BodyWidth+"px",width:"100%",backgroundColor:n.template.Theme.Colors.BodyColor,borderBottomLeftRadius:n.template.Theme.BorderRadius.BottomLeft+"px",borderBottomRightRadius:n.template.Theme.BorderRadius.BottomRight+"px"}],{"border-spacing":"0"}])},[Z("tbody",null,[Z("tr",null,[Z("td",{style:Ae([{paddingBottom:n.template.Theme.BodyPaddings.Bottom+"px"},{"font-size":"0","line-height":"0"}])},"   ",4)])])],4)])])],4)])]),_:1})],4),(ie(),mt(pL,{to:"#app"},[o.isPreviewComponentModalWindowShown?(ie(),mt($W,{key:0,template:n.template,deps:n.deps.emailTemplatePreviewModalWindowDeps,onClose:c[2]||(c[2]=()=>o.isPreviewComponentModalWindowShown=!1),onFavoriteTemplateSelected:c[3]||(c[3]=()=>a("favoriteTemplateSelected"))},null,8,["template","deps"])):vn("",!0)]))],64))}});const jW=Gn(GW,[["__scopeId","data-v-f6f330d3"]]),YW=e=>at((t,n)=>()=>Bu(jW,{template:e.template,deps:e.emailTemplatePreviewTileDeps,onFavoriteTemplateSelected:e.onFavoriteTemplateSelected})),KW=e=>({elementsDeps:e.elementsDeps}),zW=e=>({iteratedColumnDeps:KW({elementsDeps:e.elementsDeps}),listExpressionEvaluator:e.listExpressionEvaluator}),qW=e=>({elementsDeps:e.elementsDeps}),XW=e=>({multipleColumnDeps:qW({elementsDeps:e.elementsDeps})}),JW=e=>({iteratedColumnBodyRowDeps:zW({elementsDeps:e.elementsDeps,listExpressionEvaluator:e.listExpressionEvaluator}),multipleColumnBodyRowDeps:XW({elementsDeps:e.elementsDeps}),listExpressionEvaluator:e.listExpressionEvaluator}),uC=e=>({emailComponentBodyRowDeps:JW({elementsDeps:e.elementsDeps,listExpressionEvaluator:e.listExpressionEvaluator}),boolExpressionEvaluatorDelegate:e.boolExpressionEvaluator,dataStructExpressionEvaluator:e.dataStructExpressionEvaluator}),ZW=e=>({expressionEvaluator:e.expressionEvaluator}),cC=e=>({listExpressionEvaluator:e.listExpressionEvaluator,numberExpressionEvaluator:e.numberExpressionEvaluator,stringExpressionEvaluator:e.stringExpressionEvaluator,expressionVueDeps:ZW({expressionEvaluator:e.expressionEvaluator}),boolExpressionEvaluator:e.boolExpressionEvaluator}),QW=e=>vr(e),eH=e=>vr(e),tH=e=>({predicate:t,context:n})=>Promise.all([e.numberExpressionEvaluator({numberExpression:t.Left,context:n}),e.numberExpressionEvaluator({numberExpression:t.Right,context:n})]).then(([o,s])=>o===s),nH=e=>vr(e),rH=e=>({predicate:t,context:n})=>Promise.all([e.numberExpressionEvaluator({numberExpression:t.Left,context:n}),e.numberExpressionEvaluator({numberExpression:t.Right,context:n})]).then(([o,s])=>o<s),oH=e=>({predicate:t,context:n})=>Promise.all([e.numberExpressionEvaluator({numberExpression:t.Left,context:n}),e.numberExpressionEvaluator({numberExpression:t.Right,context:n})]).then(([o,s])=>o>s),iH=e=>{const t=tH({numberExpressionEvaluator:e.numberExpressionEvaluator}),n=oH({numberExpressionEvaluator:e.numberExpressionEvaluator}),o=rH({numberExpressionEvaluator:e.numberExpressionEvaluator});return({numberPredicate:s,context:a})=>nH(s).Match({whenEqual:l=>t({predicate:l,context:a}),whenGreaterThan:l=>n({predicate:l,context:a}),whenLessThan:l=>o({predicate:l,context:a})})},sH=e=>({predicate:t,context:n})=>Promise.all([e.stringExpressionEvaluator({stringExpression:t.Left,context:n}),e.stringExpressionEvaluator({stringExpression:t.Right,context:n})]).then(([o,s])=>o>s),aH=e=>vr(e),lH=e=>({predicate:t,context:n})=>Promise.all([e.stringExpressionEvaluator({stringExpression:t.Left,context:n}),e.stringExpressionEvaluator({stringExpression:t.Contains,context:n})]).then(([o,s])=>o>s),uH=e=>{const t=sH({stringExpressionEvaluator:e.stringExpressionEvaluator}),n=lH({stringExpressionEvaluator:e.stringExpressionEvaluator});return({stringPredicate:o,context:s})=>aH(o).Match({whenContains:a=>n({predicate:a,context:s}),whenEqual:a=>t({predicate:a,context:s})})},cH=e=>{const t=iH({numberExpressionEvaluator:e.numberExpressionEvaluator}),n=uH({stringExpressionEvaluator:e.stringExpressionEvaluator});return({predicate:o,context:s})=>eH(o).Match({whenNumberPredicate:a=>t({numberPredicate:a,context:s}),whenStringPredicate:a=>n({stringPredicate:a,context:s})})},fC=e=>{const t=cH({numberExpressionEvaluator:e.numberExpressionEvaluator,stringExpressionEvaluator:e.stringExpressionEvaluator}),n=({boolExpression:o,context:s})=>QW(o).Match({whenAndExpression:a=>Promise.all(a.Expressions.map(l=>n({boolExpression:l,context:s}))).then(l=>l.every(c=>c)),whenOrExpression:a=>Promise.all(a.Expressions.map(l=>n({boolExpression:l,context:s}))).then(l=>l.some(c=>c)),whenNotExpression:async a=>!await n({boolExpression:a.Expression,context:s}),whenPredicate:a=>t({predicate:a,context:s})});return n},fH=e=>{const t=fC({numberExpressionEvaluator:e.numberExpressionEvaluator,stringExpressionEvaluator:e.stringExpressionEvaluator});return{emailComponentDeps:uC({elementsDeps:cC({listExpressionEvaluator:e.listExpressionEvaluator,numberExpressionEvaluator:e.numberExpressionEvaluator,stringExpressionEvaluator:e.stringExpressionEvaluator,expressionEvaluator:e.expressionEvaluator,boolExpressionEvaluator:t}),listExpressionEvaluator:e.listExpressionEvaluator,boolExpressionEvaluator:t,dataStructExpressionEvaluator:e.dataStructExpressionEvaluator})}},dH=e=>{const t=fC({numberExpressionEvaluator:e.numberExpressionEvaluator,stringExpressionEvaluator:e.stringExpressionEvaluator});return{emailComponentDeps:uC({elementsDeps:cC({listExpressionEvaluator:e.listExpressionEvaluator,numberExpressionEvaluator:e.numberExpressionEvaluator,stringExpressionEvaluator:e.stringExpressionEvaluator,expressionEvaluator:e.expressionEvaluator,boolExpressionEvaluator:t}),listExpressionEvaluator:e.listExpressionEvaluator,boolExpressionEvaluator:t,dataStructExpressionEvaluator:e.dataStructExpressionEvaluator}),emailTemplatePreviewModalWindowDeps:fH({listExpressionEvaluator:e.listExpressionEvaluator,dataStructExpressionEvaluator:e.dataStructExpressionEvaluator,numberExpressionEvaluator:e.numberExpressionEvaluator,stringExpressionEvaluator:e.stringExpressionEvaluator,expressionEvaluator:e.expressionEvaluator})}},hH=e=>{const t=document.createElement("form");t.method=e.method,t.action=e.action;for(const[n,o]of e.formData.entries()){if(o instanceof File)continue;const s=document.createElement("input");s.setAttribute("type","text"),s.setAttribute("name",n),s.setAttribute("value",o),t.appendChild(s)}return t},mH=e=>{const t=n=>J$(n.listExpression).Match({whenContextValueExpression:o=>Promise.resolve(z$(o.Path,n.context)),whenChunkExpression:async o=>{const s=await t({listExpression:o.ListExpression,context:n.context});return s.slice(0,Math.floor(s.length/o.ChunkSize)*o.ChunkSize)},whenLimitExpression:async o=>(await t({listExpression:o.ListExpression,context:n.context})).slice(0,o.Limit),whenDataSource:o=>e.listExpressionDataSourceEvaluator(o)});return t},pH=e=>t=>Z$(t.numberExpression).Match({whenContextValueExpression:n=>Promise.resolve(X$(n.Path,t.context)),whenConstValueExpression:n=>Promise.resolve(n.Value),whenListLengthExpression:async n=>e.listExpressionEvaluator({listExpression:n.ListExpression,context:t.context}).then(o=>o.length),whenDataSource:n=>Promise.resolve(e.numberExpressionDataSourceEvaluator(n))}),gH=e=>{const t=n=>{const o=e.stringExpressionDataSourceEvaluatorFactory(t);return Q$(n.stringExpression).Match({whenConcatStringExpressions:s=>yH({concatStringExpressions:s,stringExpressionEvaluator:t,context:n.context}),whenContextValueExpression:s=>_H({contextValueExpression:s,context:n.context}),whenConstValueExpression:s=>bH({stringConstValueExpression:s}),whenTruncateValueExpression:s=>EH({truncateValueExpression:s,context:n.context,stringExpressionEvaluator:t}),whenDataSource:s=>o({stringExpressionDataSource:s,context:n.context}),whenNumberToStringExpression:s=>vH({numberToStringExpression:s,context:n.context,numberExpressionEvaluator:e.numberExpressionEvaluator})})};return t},_H=e=>Promise.resolve(q$(e.contextValueExpression.Path,e.context)),EH=async e=>(await e.stringExpressionEvaluator({stringExpression:e.truncateValueExpression.StringExpression,context:e.context})).slice(0,e.truncateValueExpression.MaxLength)+e.truncateValueExpression.Tail,vH=async e=>(await e.numberExpressionEvaluator({numberExpression:e.numberToStringExpression.NumberExpression,context:e.context})).toString(),yH=e=>Promise.all(e.concatStringExpressions.StringExpressions.map(t=>e.stringExpressionEvaluator({stringExpression:t,context:e.context}))).then(t=>t.join("")),bH=e=>Promise.resolve(e.stringConstValueExpression.Value),CH=()=>()=>Promise.resolve(0),TH=vr,wH=e=>{const t=e.contactCustomData;return n=>TH(n.stringExpressionDataSource).Match({whenMassMailingContactCustomData:o=>Promise.resolve(t[o.FieldName]),whenProductImageUrlBuilderExpression:o=>e.productImageUrlBuilderExpressionEvaluator({expression:o,context:n.context})})},AH=e=>async({context:t,expression:n})=>e.numberExpressionEvaluator({numberExpression:n.ProductId,context:t}).then(o=>"https://cdn.retailrocket.net/api/1.0/partner/"+e.partnerId+"/item/"+o+"/picture/?format=png&width="+n.ImageSize.Width+"&height="+n.ImageSize.Height+"&scale=both"),WE=e=>({dataStructBuilderExpression:t,context:n})=>Promise.all(Object.entries(t).map(async([o,s])=>({key:o,value:await e.expressionEvaluator({expression:s,context:n})}))).then(o=>Object.fromEntries(o.map(s=>[s.key,s.value]))),SH=e=>vr(e),xH=e=>{const t=({expression:n,context:o})=>{const s=e.dataStructBuilderExpressionEvaluatorFactory(t);return SH(n).Match({whenNumberExpression:a=>e.numberExpressionEvaluator({numberExpression:a,context:o}),whenStringExpression:a=>e.stringExpressionEvaluator({stringExpression:a,context:o}),whenListExpression:a=>e.listExpressionEvaluator({listExpression:a,context:o}),whenRecordBuilderExpression:a=>s({dataStructBuilderExpression:a,context:o})})};return t},HE={Subject:"",Preheader:"",Theme:{BodyWidth:600,FontFamily:"Arial",Colors:{EmailBackgroundColor:"#EEEEEE",BodyColor:"#FFFFFF",PrimaryColor:"#557aff",PrimaryTextColor:"#ffffff",SecondaryColor:"#F6F6F6",SecondaryTextColor:"#000000",CardBackgroundColor:"#F2F2F2",HeadingColor:"#2F2F2F",TitleColor:"#2F2F2F",SubHeadingColor:"#2F2F2F",LargeTextColor:"#2F2F2F",NormalTextColor:"#2F2F2F",DescriptionTextColor:"#999999",LinkColor:"#65A0FA",ButtonTextColor:"#ffffff"},BorderRadius:{TopLeft:20,TopRight:20,BottomLeft:20,BottomRight:20},BorderRadiusCard:{TopLeft:0,TopRight:0,BottomLeft:0,BottomRight:0},BorderRadiusButton:{TopLeft:5,TopRight:5,BottomLeft:5,BottomRight:5},BorderRadiusBanner:{TopLeft:0,TopRight:0,BottomLeft:0,BottomRight:0},BodyPaddings:{Left:20,Right:20,Top:10,Bottom:10},ComponentPaddings:{Small:8,Medium:16,Large:24,Huge:40},ButtonPaddings:{TopBottom:12,LeftRight:14},FontSettingsPresets:{Title:{FontSize:24,LineHeight:28,IsBold:!0,IsItalic:!1,Decoration:"None"},Heading:{FontSize:20,LineHeight:24,IsBold:!0,IsItalic:!1,Decoration:"None"},SubHeading:{FontSize:14,LineHeight:16,IsBold:!0,IsItalic:!1,Decoration:"None"},LargeText:{FontSize:14,LineHeight:18,IsBold:!1,IsItalic:!1,Decoration:"None"},NormalText:{FontSize:12,LineHeight:15,IsBold:!1,IsItalic:!1,Decoration:"None"},DescriptionText:{FontSize:10,LineHeight:13,IsBold:!1,IsItalic:!1,Decoration:"None"},Button:{FontSize:12,LineHeight:14,IsBold:!0,IsItalic:!1,Decoration:"None"},Link:{FontSize:12,LineHeight:14,IsBold:!1,IsItalic:!1,Decoration:"None"}}},Components:[{BorderRadius:{TopLeft:{Discriminator:"CustomBorderRadius",CustomValue:0},TopRight:{Discriminator:"CustomBorderRadius",CustomValue:0},BottomRight:{Discriminator:"CustomBorderRadius",CustomValue:0},BottomLeft:{Discriminator:"CustomBorderRadius",CustomValue:0}},InnerBgColor:{Discriminator:"BodyColor",CustomValue:"#000000"},Paddings:{Top:{ThemePadding:"ThemePaddingsLarge"},Bottom:{ThemePadding:"ThemePaddingsLarge"}},FullWidth:!1,BodyRowList:[{MultipleColumnBodyRow:{ColumnSpacerSize:{CustomValue:0},DirectionRtl:!1,Paddings:{Left:{CustomValue:0},Top:{CustomValue:0},Right:{CustomValue:0},Bottom:{CustomValue:0}},Border:{Left:{Width:0,Style:"None",Color:{Discriminator:"Custom",CustomValue:"#FFFFFF"}},Top:{Width:0,Style:"None",Color:{Discriminator:"Custom",CustomValue:"#FFFFFF"}},Right:{Width:0,Style:"None",Color:{Discriminator:"Custom",CustomValue:"#FFFFFF"}},Bottom:{Width:0,Style:"None",Color:{Discriminator:"Custom",CustomValue:"#FFFFFF"}}},BorderRadius:{TopLeft:{Discriminator:"CustomBorderRadius",CustomValue:0},TopRight:{Discriminator:"CustomBorderRadius",CustomValue:0},BottomRight:{Discriminator:"CustomBorderRadius",CustomValue:0},BottomLeft:{Discriminator:"CustomBorderRadius",CustomValue:0}},BgColor:{Discriminator:"None",CustomValue:"#ffffff"},ContainerAlign:"Center",Columns:[{VerticalAlign:"Top",BgColor:{Discriminator:"None",CustomValue:"#ffffff"},Paddings:{Top:{CustomValue:0},Right:{CustomValue:0},Bottom:{CustomValue:0},Left:{CustomValue:0}},Border:{Left:{Width:0,Style:"None",Color:{Discriminator:"Custom",CustomValue:"#FFFFFF"}},Top:{Width:0,Style:"None",Color:{Discriminator:"Custom",CustomValue:"#FFFFFF"}},Right:{Width:0,Style:"None",Color:{Discriminator:"Custom",CustomValue:"#FFFFFF"}},Bottom:{Width:0,Style:"None",Color:{Discriminator:"Custom",CustomValue:"#FFFFFF"}}},BorderRadius:{TopLeft:{Discriminator:"CustomBorderRadius",CustomValue:0},TopRight:{Discriminator:"CustomBorderRadius",CustomValue:0},BottomRight:{Discriminator:"CustomBorderRadius",CustomValue:0},BottomLeft:{Discriminator:"CustomBorderRadius",CustomValue:0}},ContainerAlign:"Center",Elements:[{SpanText:{MinNumberOfLines:1,IsLink:!1,HRef:{ConstValueExpression:{Value:""}},Text:{ConstValueExpression:{Value:"Cервис создания электронных писем"}},Style:{Discriminator:"Heading",FontColor:{Discriminator:"StyleLinkedColor",CustomValue:"#000000"},CustomFontSettings:{FontFamily:"Arial",FontSize:16,LineHeight:20,IsBold:!1,IsItalic:!1,Decoration:"None",FontColor:{Discriminator:"NormalTextColor",CustomValue:"#000000"}}},ContentAlign:"Inline"}},{Spacer:{Height:{ThemePadding:"ThemePaddingsLarge"},Weight:0,Color:{Discriminator:"None",CustomValue:"#FFFFFF"}}},{SpanText:{MinNumberOfLines:1,IsLink:!1,HRef:{ConstValueExpression:{Value:""}},Text:{ConstValueExpression:{Value:"Мы рады представить вам наш новый продукт - сервис создания электронных писем. С помощью этого удобного и интуитивно понятного инструмента, вы сможете легко создавать красивые и профессиональные письма всего в несколько простых шагов."}},Style:{Discriminator:"LargeText",FontColor:{Discriminator:"StyleLinkedColor",CustomValue:"#000000"},CustomFontSettings:{FontFamily:"Arial",FontSize:16,LineHeight:20,IsBold:!1,IsItalic:!1,Decoration:"None",FontColor:{Discriminator:"NormalTextColor",CustomValue:"#000000"}}},ContentAlign:"Inline"}}],Width:{JustifyWidth:{WidthInPixels:560}}}]}}]}]},dC="#app",Qn=document.querySelector(dC),un={partnerId:Qn.getAttribute("data-partner-id"),wysiwygTemplateEditorBffBaseUrl:Qn.getAttribute("data-wysiwyg-template-editor-bff-base-url"),wysiwygBffProxyBaseUrl:Qn.getAttribute("data-wysiwyg-bff-proxy-base-url"),antiForgeryHeaderTokenName:Qn.getAttribute("data-anti-forgery-header-token-name"),antiForgeryHeaderTokenValue:Qn.getAttribute("data-anti-forgery-header-token-value"),antiForgeryFormTokenName:Qn.getAttribute("data-anti-forgery-form-token-name"),antiForgeryFormTokenValue:Qn.getAttribute("data-anti-forgery-form-token-value"),createEmailTemplateSubmitUrl:Qn.getAttribute("data-create-email-template-submit-url"),initialEmailTemplateJson:Qn.getAttribute("data-initial-multicast-template"),multicastFavoritesTemplates:JSON.parse(Qn.getAttribute("data-multicast-favorites-templates")),commonFavoritesTemplates:JSON.parse(Qn.getAttribute("data-common-favorites-templates")),exitLink:Qn.getAttribute("data-exit-link")},LH=e=>_D({baseUrl:e.baseUrl,antiForgeryTokenHeaderName:un.antiForgeryHeaderTokenName,antiForgeryTokenValue:un.antiForgeryHeaderTokenValue}),IH=Vy(LH({baseUrl:un.wysiwygBffProxyBaseUrl})),hC=e=>{const t=new FormData;t.append(un.antiForgeryFormTokenName,un.antiForgeryFormTokenValue),t.append("template",JSON.stringify(e.template));const n=hH({method:"POST",action:un.createEmailTemplateSubmitUrl,formData:t});document.body.appendChild(n),n.submit()},OH={},UE=e=>{const t=gD({partnerId:un.partnerId,listExpressionDataSourceBffClient:IH,customerStockId:void 0}),n=mH({listExpressionDataSourceEvaluator:t}),o=CH(),s=pH({listExpressionEvaluator:n,numberExpressionDataSourceEvaluator:o}),a=gH({listExpressionEvaluator:n,numberExpressionEvaluator:s,stringExpressionDataSourceEvaluatorFactory:()=>wH({productImageUrlBuilderExpressionEvaluator:AH({partnerId:un.partnerId,numberExpressionEvaluator:s}),contactCustomData:OH})}),l=xH({listExpressionEvaluator:n,numberExpressionEvaluator:s,stringExpressionEvaluator:a,dataStructBuilderExpressionEvaluatorFactory:d=>WE({expressionEvaluator:d})}),c=WE({expressionEvaluator:l});return YW({template:e.template,emailTemplatePreviewTileDeps:dH({listExpressionEvaluator:n,numberExpressionEvaluator:s,stringExpressionEvaluator:a,dataStructExpressionEvaluator:c,expressionEvaluator:l}),onFavoriteTemplateSelected:()=>{console.log("onFavoriteTemplateSelected"),hC({template:e.template})}})},Fh=$I(qR,{onInitialTemplateSelected:()=>{console.log("onInitialTemplateSelected"),hC({template:un.initialEmailTemplateJson.length?JSON.parse(un.initialEmailTemplateJson):HE})},deps:aD({partnerId:un.partnerId,emailTemplatePreviewComponents:[...un.commonFavoritesTemplates.map(e=>UE({template:JSON.parse(e.templateJson)})),...un.multicastFavoritesTemplates.map(e=>UE({template:JSON.parse(e.templateJson)}))],initialEmailTemplate:un.initialEmailTemplateJson.length?JSON.parse(un.initialEmailTemplateJson):HE,exitLink:un.exitLink})});Fh.use(gy({components:{VSkeletonLoader:oD}}));Fh.use(Uy);Fh.mount(dC);
82
+ `+$t),lt&&Kl([Pe,ke,We],$r=>{$t=Xs($t,$r," ")}),$&&V?$.createHTML($t):$t},t.setConfig=function(){let pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Cs(pe),h=!0},t.clearConfig=function(){Fr=null,h=!1},t.isValidAttribute=function(pe,O,te){Fr||Cs({});const he=Rt(pe),st=Rt(O);return Ua(he,st,te)},t.addHook=function(pe,O){typeof O=="function"&&(de[pe]=de[pe]||[],qs(de[pe],O))},t.removeHook=function(pe){if(de[pe])return PE(de[pe])},t.removeHooks=function(pe){de[pe]&&(de[pe]=[])},t.removeAllHooks=function(){de={}},t}var $E=eC();const kd={beforeMount(e,t){e.innerHTML=$E.sanitize(t.value)},beforeUpdate(e,t){e.innerHTML=$E.sanitize(t.value)}},P2=e=>({Match:t=>{switch(e.Discriminator){case"EmailBackgroundColor":return t.whenEmailBackgroundColor();case"BodyColor":return t.whenBodyColor();case"TitleColor":return t.whenTitleColor();case"HeadingColor":return t.whenHeadingColor();case"SubHeadingColor":return t.whenSubHeading();case"LargeTextColor":return t.whenLargeTextColor();case"NormalTextColor":return t.whenNormalTextColor();case"DescriptionTextColor":return t.whenDescriptionTextColor();case"PrimaryTextColor":return t.whenPrimaryTextColor();case"SecondaryTextColor":return t.whenSecondaryTextColor();case"ButtonTextColor":return t.whenButtonTextColor();case"LinkColor":return t.whenLinkColor();case"PrimaryColor":return t.whenPrimaryColor();case"SecondaryColor":return t.whenSecondaryColor();case"CardBackgroundColor":return t.whenCardBackgroundColor();case"Custom":return t.whenCustom(e.CustomValue)}}}),N2=e=>P2(e.fontColor).Match({whenEmailBackgroundColor:()=>e.themeColors.EmailBackgroundColor,whenBodyColor:()=>e.themeColors.BodyColor,whenTitleColor:()=>e.themeColors.TitleColor,whenHeadingColor:()=>e.themeColors.HeadingColor,whenSubHeading:()=>e.themeColors.SubHeadingColor,whenLargeTextColor:()=>e.themeColors.LargeTextColor,whenNormalTextColor:()=>e.themeColors.NormalTextColor,whenDescriptionTextColor:()=>e.themeColors.DescriptionTextColor,whenPrimaryTextColor:()=>e.themeColors.PrimaryTextColor,whenSecondaryTextColor:()=>e.themeColors.SecondaryTextColor,whenLinkColor:()=>e.themeColors.LinkColor,whenPrimaryColor:()=>e.themeColors.PrimaryColor,whenSecondaryColor:()=>e.themeColors.SecondaryColor,whenCardBackgroundColor:()=>e.themeColors.CardBackgroundColor,whenButtonTextColor:()=>e.themeColors.ButtonTextColor,whenCustom:t=>t}),D2=e=>({Match:t=>{switch(e){case"None":return t.whenNone();case"Underline":return t.whenUnderline();case"LineThrough":return t.whenLineThrough()}}}),tC=e=>D2(e.textDecoration).Match({whenNone:()=>"none",whenUnderline:()=>"underline",whenLineThrough:()=>"line-through"}),M2=e=>({fontSize:e.customFontSettings.FontSize,lineHeight:e.customFontSettings.LineHeight,fontWeight:e.customFontSettings.IsBold?"bold":"normal",fontStyle:e.customFontSettings.IsItalic?"italic":"normal",textDecoration:tC({textDecoration:e.customFontSettings.Decoration}),fontFamily:e.customFontSettings.FontFamily,color:N2({fontColor:e.customFontSettings.FontColor,themeColors:e.themeColors})}),nC=e=>({Match:t=>{switch(e.Discriminator){case"Heading":return t.whenHeading();case"Title":return t.whenTitle();case"SubHeading":return t.whenSubHeading();case"LargeText":return t.whenLargeText();case"NormalText":return t.whenNormalText();case"DescriptionText":return t.whenDescriptionText();case"Link":return t.whenLink();case"Button":return t.whenButton();case"Custom":return t.whenCustom(e.CustomFontSettings);default:return ys(e.Discriminator)}}}),B2=e=>({Match:t=>{switch(e.Discriminator){case"StyleLinkedColor":return t.whenFontStyle();case"EmailBackgroundColor":return t.whenEmailBackgroundColor();case"BodyColor":return t.whenBodyColor();case"TitleColor":return t.whenTitleColor();case"HeadingColor":return t.whenHeadingColor();case"SubHeadingColor":return t.whenSubHeading();case"LargeTextColor":return t.whenLargeTextColor();case"NormalTextColor":return t.whenNormalTextColor();case"DescriptionTextColor":return t.whenDescriptionTextColor();case"PrimaryTextColor":return t.whenPrimaryTextColor();case"SecondaryTextColor":return t.whenSecondaryTextColor();case"ButtonTextColor":return t.whenButtonTextColor();case"LinkColor":return t.whenLinkColor();case"PrimaryColor":return t.whenPrimaryColor();case"SecondaryColor":return t.whenSecondaryColor();case"CardBackgroundColor":return t.whenCardBackgroundColor();case"Custom":return t.whenCustom(e.CustomValue)}}}),k2=e=>B2(e.fontStyleColor).Match({whenFontStyle:()=>nC(e.fontStyle).Match({whenHeading:()=>e.themeColors.HeadingColor,whenTitle:()=>e.themeColors.TitleColor,whenSubHeading:()=>e.themeColors.SubHeadingColor,whenLargeText:()=>e.themeColors.LargeTextColor,whenNormalText:()=>e.themeColors.NormalTextColor,whenDescriptionText:()=>e.themeColors.DescriptionTextColor,whenButton:()=>e.themeColors.ButtonTextColor,whenLink:()=>e.themeColors.LinkColor,whenCustom:t=>ao({color:t.FontColor,themeColors:e.themeColors})}),whenEmailBackgroundColor:()=>e.themeColors.EmailBackgroundColor,whenBodyColor:()=>e.themeColors.BodyColor,whenTitleColor:()=>e.themeColors.TitleColor,whenHeadingColor:()=>e.themeColors.HeadingColor,whenSubHeading:()=>e.themeColors.SubHeadingColor,whenLargeTextColor:()=>e.themeColors.LargeTextColor,whenNormalTextColor:()=>e.themeColors.NormalTextColor,whenDescriptionTextColor:()=>e.themeColors.DescriptionTextColor,whenPrimaryTextColor:()=>e.themeColors.PrimaryTextColor,whenSecondaryTextColor:()=>e.themeColors.SecondaryTextColor,whenLinkColor:()=>e.themeColors.LinkColor,whenPrimaryColor:()=>e.themeColors.PrimaryColor,whenSecondaryColor:()=>e.themeColors.SecondaryColor,whenCardBackgroundColor:()=>e.themeColors.CardBackgroundColor,whenButtonTextColor:()=>e.themeColors.ButtonTextColor,whenCustom:t=>t}),F2={Arial:"Arial",Georgia:"Georgia",Tahoma:"Tahoma",TimesNewRoman:"Times New Roman",Verdana:"Verdana"},Bh=e=>({fontSize:e.fontSize+"px",lineHeight:e.lineHeight+"px",fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:F2[e.fontFamily],textDecoration:e.textDecoration,color:e.color}),kh=e=>{const t=n=>({fontSize:n.FontSize,lineHeight:n.LineHeight,fontWeight:n.IsBold?"bold":"normal",fontStyle:n.IsItalic?"italic":"normal",fontFamily:e.fontFamily,textDecoration:tC({textDecoration:n.Decoration}),color:k2({fontStyleColor:e.fontStyle.FontColor,fontStyle:e.fontStyle,themeColors:e.themeColors})});return nC(e.fontStyle).Match({whenHeading:()=>t(e.themeFontSettings.Heading),whenTitle:()=>t(e.themeFontSettings.Title),whenSubHeading:()=>t(e.themeFontSettings.SubHeading),whenLargeText:()=>t(e.themeFontSettings.LargeText),whenNormalText:()=>t(e.themeFontSettings.NormalText),whenDescriptionText:()=>t(e.themeFontSettings.DescriptionText),whenLink:()=>t(e.themeFontSettings.Link),whenButton:()=>t(e.themeFontSettings.Button),whenCustom:n=>M2({customFontSettings:n,themeColors:e.themeColors})})},$2=e=>({Match:t=>{switch(e.Discriminator){case"Theme":return t.whenTheme();case"Custom":return t.whenCustom(e.CustomValue);default:return ys(e.Discriminator)}}}),W2=e=>$2(e.buttonPaddings).Match({whenTheme:()=>({TopBottom:e.themeButtonPaddings.TopBottom,LeftRight:e.themeButtonPaddings.LeftRight}),whenCustom:t=>({TopBottom:t.TopBottom,LeftRight:t.LeftRight})}),H2={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"}},U2=["align"],V2={class:"Button"},G2=["href"],j2=at({__name:"ButtonVue",props:{deps:{},theme:{},element:{},context:{type:[String,Number,Boolean,Array,Object]}},setup(e){const t=e,n=Re(()=>Bh(kh({fontFamily:t.theme.FontFamily,fontStyle:t.element.TextStyle,themeFontSettings:t.theme.FontSettingsPresets,themeColors:t.theme.Colors}))),o=Re(()=>ou({borderColor:t.element.Border.Left.Color,themeColors:t.theme.Colors})),s=Re(()=>W2({buttonPaddings:t.element.Paddings,themeButtonPaddings:t.theme.ButtonPaddings})),a=Re(()=>ao({color:t.element.BackgroundColor,themeColors:t.theme.Colors})),l=Re(()=>{switch(t.element.ContentAlign){case"Center":return"center";case"Left":return"left";case"Right":return"right";default:return"center"}}),c=dn({href:"",text:"",isLoading:!0}),d=t.deps.stringExpressionEvaluator,m=()=>{Promise.all([d({stringExpression:t.element.HRef,context:t.context}),d({stringExpression:t.element.Text,context:t.context})]).then(([p,E])=>{c.href=p,c.text=E,c.isLoading=!1})};return m(),tn(()=>[t.element.HRef,t.element.Text,t.context],()=>m()),(p,E)=>(ie(),Ce("table",H2,[Z("tbody",null,[Z("tr",null,[Z("td",{align:l.value},[Z("div",V2,[Z("a",{style:Ae([{display:"block","text-decoration":"none"},[n.value]]),href:c.href,onClick:E[0]||(E[0]=fs(()=>{},["prevent"]))},[Z("table",{align:"center",style:Ae([{"text-align":"center","border-spacing":"0","border-collapse":"separate"},[{backgroundColor:a.value},oe(Do)({borderRadius:t.element.BorderRadius,borderRadiusCard:t.theme.BorderRadiusCard,bodyBorderRadius:t.theme.BorderRadius,borderButtonRadius:t.theme.BorderRadiusButton,borderBannerRadius:t.theme.BorderRadiusBanner}),{width:t.element.FullWidth?"100%":"auto"},oe(mi)({border:t.element.Border,themeColors:p.theme.Colors}),{borderColor:o.value}]])},[Z("tbody",null,[Z("tr",null,[Z("td",{align:"center",style:Ae([{"line-height":"normal"},[{paddingTop:s.value.TopBottom+"px",paddingBottom:s.value.TopBottom+"px",paddingLeft:s.value.LeftRight+"px",paddingRight:s.value.LeftRight+"px"}]])},[oo(Z("p",{class:"user-select-none",style:Ae([n.value])},null,4),[[oe(kd),c.text]])],4)])])],4)],12,G2)])],8,U2)])])]))}}),Y2=["href"],K2=at({__name:"SpanText",props:{deps:{},theme:{},element:{},context:{type:[String,Number,Boolean,Array,Object]}},setup(e){const t=e,n=t.deps.stringExpressionEvaluator,o=Re(()=>{const l=kh({fontFamily:t.theme.FontFamily,fontStyle:t.element.Style,themeFontSettings:t.theme.FontSettingsPresets,themeColors:t.theme.Colors});return{...Bh(l),minHeight:t.element.MinNumberOfLines*l.lineHeight+"px"}}),s=dn({href:"",text:"",isLoading:!0}),a=()=>{Promise.all([n({stringExpression:t.element.HRef,context:t.context}),n({stringExpression:t.element.Text,context:t.context})]).then(([l,c])=>{s.href=l,s.text=c,s.isLoading=!1})};return a(),tn(()=>[t.context,t.element.HRef,t.element.Text],()=>a()),(l,c)=>t.element.IsLink?oo((ie(),Ce("a",{key:0,href:s.href,class:"SpanText cursor-pointer user-select-none",style:Ae([{margin:"0"},[o.value,oe(Ca)({contentAlign:t.element.ContentAlign})]]),onClick:c[0]||(c[0]=fs(()=>{},["prevent"]))},null,12,Y2)),[[oe(kd),s.text]]):oo((ie(),Ce("span",{key:1,class:"SpanText cursor-pointer user-select-none",style:Ae([{margin:"0"},[o.value,oe(Ca)({contentAlign:t.element.ContentAlign})]])},null,4)),[[oe(kd),s.text]])}});const z2=Gn(K2,[["__scopeId","data-v-24009fb3"]]),q2=at({__name:"UnsubscribeLink",props:{theme:{},element:{}},setup(e){const t=e,n=Re(()=>{const o=kh({fontFamily:t.theme.FontFamily,fontStyle:t.element.Style,themeFontSettings:t.theme.FontSettingsPresets,themeColors:t.theme.Colors});return{...Bh(o)}});return(o,s)=>(ie(),Ce("a",{href:"#",class:"cursor-pointer user-select-none",style:Ae([{margin:"0"},[n.value,oe(Ca)({contentAlign:t.element.ContentAlign})]]),onClick:s[0]||(s[0]=fs(()=>{},["prevent"]))},Ud(t.element.Text),5))}});const X2=Gn(q2,[["__scopeId","data-v-5cffc6e3"]]),Na=at({__name:"Elements",props:{deps:{},theme:{},element:{},path:{},context:{type:[String,Number,Boolean,Array,Object]},selectedElementPath:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted"],setup(e,{emit:t}){const n=e,o=t,s=(a,l)=>{o("onElementClicked",{element:a,path:[...n.path,l]})};return(a,l)=>(ie(),Ce("span",{onClick:l[16]||(l[16]=fs(()=>{},["stop"]))},[oe(wo).button(n.element.Button)?(ie(),mt(j2,{key:0,deps:n.deps,theme:n.theme,element:n.element.Button,context:n.context,class:pr({"element-selected":oe(zs.isEqual)(n.selectedElementPath,[...n.path,"Button"])}),onClick:l[0]||(l[0]=c=>s(n.element,"Button"))},null,8,["deps","theme","element","context","class"])):vn("",!0),oe(wo).heightContainer(n.element.HeightContainer)?(ie(),mt(j$,{key:1,deps:n.deps,theme:n.theme,element:n.element.HeightContainer,path:[...n.path,"HeightContainer"],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageOriginalSizeAdjusted:l[1]||(l[1]=c=>o("onImageOriginalSizeAdjusted",c)),onOnImageSizeAdjusted:l[2]||(l[2]=c=>o("onImageSizeAdjusted",c)),onOnElementClicked:l[3]||(l[3]=c=>o("onElementClicked",c))},null,8,["deps","theme","element","path","selectedElementPath","context"])):vn("",!0),oe(wo).image(n.element.Image)?(ie(),mt(o2,{key:2,deps:n.deps,theme:n.theme,element:n.element.Image,context:n.context,path:[...n.path,"Image"],class:pr({"element-selected":oe(zs.isEqual)(n.selectedElementPath,[...n.path,"Image"])}),onOnImageOriginalSizeAdjusted:l[4]||(l[4]=c=>o("onImageOriginalSizeAdjusted",c)),onOnImageSizeAdjusted:l[5]||(l[5]=c=>o("onImageSizeAdjusted",c)),onClick:l[6]||(l[6]=c=>s(n.element,"Image"))},null,8,["deps","theme","element","context","path","class"])):vn("",!0),oe(wo).spacer(n.element.Spacer)?(ie(),mt(d2,{key:3,element:n.element.Spacer,theme:n.theme,class:pr({"element-selected":oe(zs.isEqual)(n.selectedElementPath,[...n.path,"Spacer"])}),onClick:l[7]||(l[7]=c=>s(n.element,"Spacer"))},null,8,["element","theme","class"])):vn("",!0),oe(wo).spanText(n.element.SpanText)?(ie(),mt(z2,{key:4,deps:n.deps,theme:n.theme,element:n.element.SpanText,context:n.context,class:pr({"element-selected":oe(zs.isEqual)(n.selectedElementPath,[...n.path,"SpanText"])}),onClick:l[8]||(l[8]=c=>s(n.element,"SpanText"))},null,8,["deps","theme","element","context","class"])):vn("",!0),oe(wo).oneLineLink(n.element.OneLineList)?(ie(),mt(u2,{key:5,deps:n.deps,theme:n.theme,element:n.element.OneLineList,path:[...n.path,"OneLineList"],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageOriginalSizeAdjusted:l[9]||(l[9]=c=>o("onImageOriginalSizeAdjusted",c)),onOnImageSizeAdjusted:l[10]||(l[10]=c=>o("onImageSizeAdjusted",c)),onOnElementClicked:l[11]||(l[11]=c=>o("onElementClicked",c))},null,8,["deps","theme","element","path","selectedElementPath","context"])):vn("",!0),oe(wo).if(n.element.If)?(ie(),mt(H$,{key:6,deps:n.deps,theme:n.theme,element:n.element.If,context:n.context,path:[...n.path,"If"],selectedElementPath:n.selectedElementPath,onOnImageOriginalSizeAdjusted:l[12]||(l[12]=c=>o("onImageOriginalSizeAdjusted",c)),onOnImageSizeAdjusted:l[13]||(l[13]=c=>o("onImageSizeAdjusted",c)),onOnElementClicked:l[14]||(l[14]=c=>o("onElementClicked",c))},null,8,["deps","theme","element","context","path","selectedElementPath"])):vn("",!0),oe(wo).unsubscribeLink(n.element.UnsubscribeLink)?(ie(),mt(X2,{key:7,theme:n.theme,element:n.element.UnsubscribeLink,class:pr({"element-selected":oe(zs.isEqual)(n.selectedElementPath,[...n.path,"UnsubscribeLink"])}),onClick:l[15]||(l[15]=c=>s(n.element,"UnsubscribeLink"))},null,8,["theme","element","class"])):vn("",!0)]))}}),J2=at({__name:"IteratedColumn",props:{deps:{},theme:{},iteratedColumn:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]},containerWidth:{}},emits:["onImageSizeAdjusted","onImageOriginalSizeAdjusted","onElementClicked"],setup(e,{emit:t}){ku(a=>({"6300cb1b":s.value}));const n=e,o=t,s=Re(()=>n.iteratedColumn.WidthInPercents*n.containerWidth+"px");return(a,l)=>(ie(),Ce("div",{class:"iterated-column",style:Ae({display:"inline-block",verticalAlign:n.iteratedColumn.VerticalAlign})},[Z("table",{style:Ae([[oe(Yb)({borderCollapse:n.iteratedColumn.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[Z("tbody",null,[Z("tr",null,[Z("td",{style:Ae([{"line-height":"normal"},[oe(zb)({containerAlign:n.iteratedColumn.ContainerAlign}),oe(bs)({paddings:n.iteratedColumn.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),oe(mi)({border:n.iteratedColumn.Border,themeColors:n.theme.Colors}),{backgroundColor:oe(ao)({color:n.iteratedColumn.BgColor,themeColors:n.theme.Colors})},oe(Do)({borderRadius:n.iteratedColumn.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})]])},[(ie(!0),Ce(ot,null,$n(n.iteratedColumn.Elements,(c,d)=>(ie(),mt(Na,{key:d,deps:n.deps.elementsDeps,theme:n.theme,element:c,context:n.context,path:[...n.path,"Elements",d],selectedElementPath:n.selectedElementPath,onOnElementClicked:l[0]||(l[0]=m=>o("onElementClicked",m)),onOnImageSizeAdjusted:l[1]||(l[1]=m=>o("onImageSizeAdjusted",m)),onOnImageOriginalSizeAdjusted:l[2]||(l[2]=m=>o("onImageOriginalSizeAdjusted",m))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],4)])])],4)],4))}});const Z2=Gn(J2,[["__scopeId","data-v-284c0a90"]]),Q2={class:"iterated-column-container",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"},width:"100%"},eW={align:"center",style:{"font-size":"0"}},tW=at({__name:"IteratedColumnBodyRow",props:{deps:{},theme:{},iteratedColumnBodyRow:{},path:{},selectedElementPath:{},context:{},rowWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted"],setup(e,{emit:t}){ku(c=>({"22b1b0df":a.value}));const n=e,o=dn({dataList:[],isLoaded:!1}),s=()=>n.deps.listExpressionEvaluator({listExpression:n.iteratedColumnBodyRow.DataSource,context:n.context}).then(c=>{o.dataList=c,o.isLoaded=!0});s(),tn(()=>n.context,()=>s());const a=Re(()=>en({paddingExpression:n.iteratedColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})+"px"),l=t;return(c,d)=>(ie(),Ce("table",Q2,[Z("tbody",null,[Z("tr",null,[Z("td",eW,[(ie(!0),Ce(ot,null,$n(o.dataList,(m,p)=>(ie(),Ce("span",{key:p},[Ke(Z2,{class:pr(["iterated-column-bottom-spacer",{"iterated-column__tablet-padding-right":(p+1)%2===1,"iterated-column__tablet-padding-left":(p+1)%2===0,"is-last-desktop-line":p>=o.dataList.length-n.iteratedColumnBodyRow.NumberColumnsInLine,"is-last-tablet-line":p>=o.dataList.length-2,"is-last-mobile-line":p==o.dataList.length-1}]),deps:n.deps.iteratedColumnDeps,theme:n.theme,style:Ae(oe(jb)({numberColumnsInLine:n.iteratedColumnBodyRow.NumberColumnsInLine,index:p,paddingSize:oe(en)({paddingExpression:n.iteratedColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),directionRtl:!1})),iteratedColumn:n.iteratedColumnBodyRow.IteratedColumn,path:[...n.path,"IteratedColumn"],selectedElementPath:n.selectedElementPath,context:{...n.context,[n.iteratedColumnBodyRow.IndexName]:m},containerWidth:n.rowWidth,onOnElementClicked:d[0]||(d[0]=E=>l("onElementClicked",E)),onOnImageOriginalSizeAdjusted:d[1]||(d[1]=E=>l("onImageOriginalSizeAdjusted",E)),onOnImageSizeAdjusted:d[2]||(d[2]=E=>l("onImageSizeAdjusted",E))},null,8,["deps","theme","class","style","iteratedColumn","path","selectedElementPath","context","containerWidth"])]))),128))])])])]))}});const nW=Gn(tW,[["__scopeId","data-v-7d644c9d"]]),rW={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"}},oW=at({__name:"IteratedBodyRow",props:{theme:{},deps:{},iteratedBodyRow:{},path:{},selectedElementPath:{},context:{},containerWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted"],setup(e,{emit:t}){const n=e,o=dn({dataList:[]});n.deps.listExpressionEvaluator({listExpression:n.iteratedBodyRow.DataSource,context:n.context}).then(a=>o.dataList=a);const s=t;return(a,l)=>(ie(),Ce("table",rW,[(ie(!0),Ce(ot,null,$n(o.dataList,(c,d)=>(ie(),Ce("tr",{key:d},[Z("td",{style:Ae([oe(bs)({paddings:n.iteratedBodyRow.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})])},[Ke(sC,{emailComponentBodyRow:n.iteratedBodyRow.BodyRow,deps:{iteratedColumnBodyRowDeps:n.deps.iteratedColumnBodyRowDeps,multipleColumnBodyRowDeps:n.deps.multipleColumnBodyRowDeps,listExpressionEvaluator:n.deps.listExpressionEvaluator},theme:n.theme,context:{...n.context,[n.iteratedBodyRow.IndexName]:c},rowWidth:n.containerWidth,path:[...n.path,"BodyRow"],selectedElementPath:n.selectedElementPath,onOnElementClicked:l[0]||(l[0]=m=>s("onElementClicked",m)),onOnImageOriginalSizeAdjusted:l[1]||(l[1]=m=>s("onImageOriginalSizeAdjusted",m)),onOnImageSizeAdjusted:l[2]||(l[2]=m=>s("onImageSizeAdjusted",m)),onOnColumnWidthAdjusted:l[3]||(l[3]=m=>s("onColumnWidthAdjusted",m))},null,8,["emailComponentBodyRow","deps","theme","context","rowWidth","path","selectedElementPath"])],4)]))),128))]))}});var su={},rC={},Qu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isNone=e.isSome=e.None=e.Some=e.OptionType=void 0,e.OptionType={Some:Symbol(":some"),None:Symbol(":none")};function t(l){return typeof l>"u"?o():n(l)}e.Some=t,e.None=o();function n(l){return{type:e.OptionType.Some,isSome(){return!0},isNone(){return!1},match(c){return c.some(l)},map(c){return n(c(l))},andThen(c){return c(l)},or(c){return this},and(c){return c},unwrapOr(c){return l},unwrap(){return l}}}function o(){return{type:e.OptionType.None,isSome(){return!1},isNone(){return!0},match(l){const{none:c}=l;return typeof c=="function"?c():c},map(l){return o()},andThen(l){return o()},or(l){return l},and(l){return o()},unwrapOr(l){if(l==null)throw new Error("Cannot call unwrapOr with a missing value.");return l},unwrap(){throw new ReferenceError("Trying to unwrap None.")}}}function s(l){return l.isSome()}e.isSome=s;function a(l){return l.isNone()}e.isNone=a})(Qu);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isRight=e.isLeft=e.Right=e.Left=e.EitherType=void 0;const t=Qu;e.EitherType={Left:Symbol(":left"),Right:Symbol(":right")};function n(l){return{type:e.EitherType.Left,isLeft(){return!0},isRight(){return!1},left(){return(0,t.Some)(l)},leftAndThen(c){return c(l)},right(){return t.None},rightAndThen(c){return n(l)},unwrap(){return l},unwrapLeft(){return l},unwrapLeftOr(c){return l},unwrapLeftOrElse(c){return l},unwrapRight(){throw new ReferenceError("Cannot unwrap Right value of Either.Left")},unwrapRightOr(c){return c},unwrapRightOrElse(c){return c(l)},match(c){return c.left(l)},map(c){return n(c(l))},mapLeft(c){return n(c(l))},mapRight(c){return n(l)}}}e.Left=n;function o(l){return{type:e.EitherType.Right,isLeft(){return!1},isRight(){return!0},left(){return t.None},leftAndThen(c){return o(l)},right(){return(0,t.Some)(l)},rightAndThen(c){return c(l)},unwrap(){return l},unwrapLeft(){throw new ReferenceError("Cannot unwrap Left value of Either.Right")},unwrapLeftOr(c){return c},unwrapLeftOrElse(c){return c(l)},unwrapRight(){return l},unwrapRightOr(c){return l},unwrapRightOrElse(c){return l},match(c){return c.right(l)},map(c){return o(c(l))},mapLeft(c){return o(l)},mapRight(c){return o(c(l))}}}e.Right=o;function s(l){return l.isLeft()}e.isLeft=s;function a(l){return l.isRight()}e.isRight=a})(rC);var oC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isErr=e.isOk=e.Err=e.Ok=e.ResultType=void 0;const t=Qu;e.ResultType={Ok:Symbol(":ok"),Err:Symbol(":err")};function n(l){return{type:e.ResultType.Ok,isOk(){return!0},isErr(){return!1},ok(){return(0,t.Some)(l)},err(){return t.None},unwrap(){return l},unwrapOr(c){return l},unwrapOrElse(c){return l},unwrapErr(){throw new ReferenceError("Cannot unwrap Err value of Result.Ok")},match(c){return c.ok(l)},map(c){return n(c(l))},mapErr(c){return n(l)},andThen(c){return c(l)},orElse(c){return n(l)}}}e.Ok=n;function o(l){return{type:e.ResultType.Err,isOk(){return!1},isErr(){return!0},ok(){return t.None},err(){return(0,t.Some)(l)},unwrap(){throw new ReferenceError("Cannot unwrap Ok value of Result.Err")},unwrapOr(c){return c},unwrapOrElse(c){return c(l)},unwrapErr(){return l},match(c){return c.err(l)},map(c){return o(l)},mapErr(c){return o(c(l))},andThen(c){return o(l)},orElse(c){return c(l)}}}e.Err=o;function s(l){return l.isOk()}e.isOk=s;function a(l){return l.isErr()}e.isErr=a})(oC);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Ok=e.isOk=e.isErr=e.Err=e.Some=e.None=e.isSome=e.isNone=e.Right=e.Left=e.isRight=e.isLeft=void 0;var t=rC;Object.defineProperty(e,"isLeft",{enumerable:!0,get:function(){return t.isLeft}}),Object.defineProperty(e,"isRight",{enumerable:!0,get:function(){return t.isRight}}),Object.defineProperty(e,"Left",{enumerable:!0,get:function(){return t.Left}}),Object.defineProperty(e,"Right",{enumerable:!0,get:function(){return t.Right}});var n=Qu;Object.defineProperty(e,"isNone",{enumerable:!0,get:function(){return n.isNone}}),Object.defineProperty(e,"isSome",{enumerable:!0,get:function(){return n.isSome}}),Object.defineProperty(e,"None",{enumerable:!0,get:function(){return n.None}}),Object.defineProperty(e,"Some",{enumerable:!0,get:function(){return n.Some}});var o=oC;Object.defineProperty(e,"Err",{enumerable:!0,get:function(){return o.Err}}),Object.defineProperty(e,"isErr",{enumerable:!0,get:function(){return o.isErr}}),Object.defineProperty(e,"isOk",{enumerable:!0,get:function(){return o.isOk}}),Object.defineProperty(e,"Ok",{enumerable:!0,get:function(){return o.Ok}})})(su);const iW=e=>({Match:t=>{switch(e){case"Top":return t.whenTop();case"Middle":return t.whenMiddle();case"Bottom":return t.whenBottom();case"Baseline":return t.whenBaseline()}}}),sW=e=>iW(e).Match({whenTop:()=>"start",whenMiddle:()=>"center",whenBottom:()=>"end",whenBaseline:()=>"baseline"}),Qf={justifyWidth:e=>(e==null?void 0:e.WidthInPixels)!==void 0,shrinkToContentWidth:e=>(e==null?void 0:e.WidthInPixels)!==void 0,widthInPercents:e=>e!==void 0},iC=e=>({Match:t=>{if(e.JustifyWidth!==void 0)return t.whenJustifyWidth(e.JustifyWidth.WidthInPixels);if(e.ShrinkToContentWidth!==void 0)return t.whenShrinkToContentWidth(e.ShrinkToContentWidth.WidthInPixels);if(e.WidthInPercents!==void 0)return t.whenWidthInPercents(e.WidthInPercents.Value);throw Error("")}}),aW=e=>({Match:t=>iC(e).Match({whenJustifyWidth:n=>t.whenJustifyWidth?t.whenJustifyWidth(n):t.default(),whenWidthInPercents:n=>t.whenWidthInPercents?t.whenWidthInPercents(n):t.default(),whenShrinkToContentWidth:n=>t.whenShrinkToContentWidth?t.whenShrinkToContentWidth(n):t.default()})}),lW=e=>({JustifyWidth:{WidthInPixels:e}}),uW=e=>({ShrinkToContentWidth:{WidthInPixels:e}}),cW=["align"],fW=at({__name:"MultipleColumn",props:{deps:{},theme:{},multipleColumn:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]},containerWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted"],setup(e,{emit:t}){ku(d=>({"505fd5fb":c.value,"89e91a86":l.value,"6083c43a":a.value}));const n=e,o=t,s=d=>{iC(n.multipleColumn.Width).Match({whenJustifyWidth:()=>su.Some(lW(d)),whenShrinkToContentWidth:()=>su.Some(uW(d)),whenWidthInPercents:()=>su.None}).map(m=>o("onColumnWidthAdjusted",{Path:n.path,Width:m}))},a=Re(()=>aW(n.multipleColumn.Width).Match({default:()=>"",whenWidthInPercents:d=>d*n.containerWidth+"px"})),l=Re(()=>sW(n.multipleColumn.VerticalAlign)),c=Re(()=>n.multipleColumn.VerticalAlign);return(d,m)=>oo((ie(),Ce("div",{class:pr(["multiple-column",{"multiple-column--justifyWidth":oe(Qf).justifyWidth(n.multipleColumn.Width.JustifyWidth),"multiple-column--shrinkToContentWidth":oe(Qf).shrinkToContentWidth(n.multipleColumn.Width.ShrinkToContentWidth),"multiple-column--widthInPercents":oe(Qf).widthInPercents(n.multipleColumn.Width.WidthInPercents)}]),style:{direction:"ltr"}},[Z("table",{style:Ae([{width:"100%","border-spacing":"0"},[oe(Yb)({borderCollapse:n.multipleColumn.BorderCollapse})]]),width:"100%"},[Z("tbody",null,[Z("tr",null,[Z("td",{align:oe(qb)({containerAlign:n.multipleColumn.ContainerAlign}),style:Ae([{"line-height":"normal"},[oe(mi)({border:n.multipleColumn.Border,themeColors:n.theme.Colors}),oe(Do)({borderRadius:n.multipleColumn.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:oe(ao)({color:n.multipleColumn.BgColor,themeColors:n.theme.Colors})},oe(bs)({paddings:n.multipleColumn.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})]])},[(ie(!0),Ce(ot,null,$n(n.multipleColumn.Elements,(p,E)=>(ie(),mt(Na,{key:E,deps:n.deps.elementsDeps,theme:n.theme,element:p,context:n.context,path:[...n.path,"Elements",E],selectedElementPath:n.selectedElementPath,onOnElementClicked:m[0]||(m[0]=C=>o("onElementClicked",C)),onOnImageSizeAdjusted:m[1]||(m[1]=C=>o("onImageSizeAdjusted",C)),onOnImageOriginalSizeAdjusted:m[2]||(m[2]=C=>o("onImageOriginalSizeAdjusted",C))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,cW)])])],4)],2)),[[oe(Cu),p=>s(p.width)]])}});const dW=Gn(fW,[["__scopeId","data-v-9630cdcf"]]),hW=at({__name:"MultipleColumnBodyRow",props:{deps:{},theme:{},multipleColumnBodyRow:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]},rowWidth:{}},emits:["onElementClicked","onImageSizeAdjusted","onImageOriginalSizeAdjusted","onColumnWidthAdjusted"],setup(e,{emit:t}){ku(a=>({"308ed3d8":s.value}));const n=e,o=t,s=Re(()=>en({paddingExpression:n.multipleColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})+"px");return(a,l)=>(ie(),Ce("table",{class:"multiple-column-container",style:Ae([{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"},[oe(mi)({border:n.multipleColumnBodyRow.Border,themeColors:n.theme.Colors}),oe(Do)({borderRadius:n.multipleColumnBodyRow.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadius}),{backgroundColor:oe(ao)({color:n.multipleColumnBodyRow.BgColor,themeColors:n.theme.Colors})}]]),width:"100%"},[Z("tbody",null,[Z("tr",null,[Z("td",{class:"multiple-column-container__inner",style:Ae([{"font-size":"0"},[oe(zb)({containerAlign:n.multipleColumnBodyRow.ContainerAlign}),oe(bs)({paddings:n.multipleColumnBodyRow.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),n.multipleColumnBodyRow.DirectionRtl?{direction:"rtl"}:{direction:"ltr"}]])},[(ie(!0),Ce(ot,null,$n(n.multipleColumnBodyRow.Columns,(c,d)=>(ie(),mt(dW,{key:d,deps:n.deps.multipleColumnDeps,theme:n.theme,multipleColumn:c,path:[...n.path,"Columns",d],selectedElementPath:n.selectedElementPath,context:n.context,containerWidth:n.rowWidth-oe(en)({paddingExpression:n.multipleColumnBodyRow.Paddings.Left,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})-oe(en)({paddingExpression:n.multipleColumnBodyRow.Paddings.Right,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})-n.multipleColumnBodyRow.Border.Left.Width-n.multipleColumnBodyRow.Border.Right.Width,style:Ae(oe(jb)({numberColumnsInLine:n.multipleColumnBodyRow.Columns.length,index:d,paddingSize:oe(en)({paddingExpression:n.multipleColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),directionRtl:n.multipleColumnBodyRow.DirectionRtl})),class:pr({"is-last-tablet-line":d==n.multipleColumnBodyRow.Columns.length-1,"is-last-mobile-line":d==n.multipleColumnBodyRow.Columns.length-1}),onOnElementClicked:l[0]||(l[0]=m=>o("onElementClicked",m)),onOnColumnWidthAdjusted:l[1]||(l[1]=m=>o("onColumnWidthAdjusted",m)),onOnImageSizeAdjusted:l[2]||(l[2]=m=>o("onImageSizeAdjusted",m)),onOnImageOriginalSizeAdjusted:l[3]||(l[3]=m=>o("onImageOriginalSizeAdjusted",m))},null,8,["deps","theme","multipleColumn","path","selectedElementPath","context","containerWidth","style","class"]))),128))],4)])])],4))}});const mW=Gn(hW,[["__scopeId","data-v-c2d3f20e"]]),sC=at({__name:"EmailComponentBodyRow",props:{deps:{},theme:{},emailComponentBodyRow:{},path:{},selectedElementPath:{},context:{},rowWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted"],setup(e,{emit:t}){const n=e,o={multipleColumns:a=>a!==void 0,iteratedColumns:a=>a!==void 0,iteratedBodyRow:a=>a!==void 0},s=t;return(a,l)=>(ie(),Ce("div",null,[o.multipleColumns(n.emailComponentBodyRow.MultipleColumnBodyRow)?(ie(),mt(mW,{key:0,deps:n.deps.multipleColumnBodyRowDeps,theme:n.theme,multipleColumnBodyRow:n.emailComponentBodyRow.MultipleColumnBodyRow,path:[...n.path,"MultipleColumnBodyRow"],selectedElementPath:n.selectedElementPath,context:a.context,rowWidth:n.rowWidth,onOnColumnWidthAdjusted:l[0]||(l[0]=c=>s("onColumnWidthAdjusted",c)),onOnImageOriginalSizeAdjusted:l[1]||(l[1]=c=>s("onImageOriginalSizeAdjusted",c)),onOnImageSizeAdjusted:l[2]||(l[2]=c=>s("onImageSizeAdjusted",c)),onOnElementClicked:l[3]||(l[3]=c=>s("onElementClicked",c))},null,8,["deps","theme","multipleColumnBodyRow","path","selectedElementPath","context","rowWidth"])):vn("",!0),o.iteratedColumns(n.emailComponentBodyRow.IteratedColumnBodyRow)?(ie(),mt(nW,{key:1,deps:n.deps.iteratedColumnBodyRowDeps,theme:n.theme,iteratedColumnBodyRow:n.emailComponentBodyRow.IteratedColumnBodyRow,path:[...n.path,"IteratedColumnBodyRow"],selectedElementPath:n.selectedElementPath,context:a.context,rowWidth:n.rowWidth,onOnElementClicked:l[4]||(l[4]=c=>s("onElementClicked",c)),onOnImageOriginalSizeAdjusted:l[5]||(l[5]=c=>s("onImageOriginalSizeAdjusted",c)),onOnImageSizeAdjusted:l[6]||(l[6]=c=>s("onImageSizeAdjusted",c))},null,8,["deps","theme","iteratedColumnBodyRow","path","selectedElementPath","context","rowWidth"])):vn("",!0),o.iteratedBodyRow(n.emailComponentBodyRow.IteratedBodyRow)?(ie(),mt(oW,{key:2,deps:{iteratedColumnBodyRowDeps:n.deps.iteratedColumnBodyRowDeps,multipleColumnBodyRowDeps:n.deps.multipleColumnBodyRowDeps,listExpressionEvaluator:n.deps.listExpressionEvaluator},theme:n.theme,iteratedBodyRow:n.emailComponentBodyRow.IteratedBodyRow,path:[...n.path,"IteratedBodyRow"],selectedElementPath:n.selectedElementPath,context:a.context,containerWidth:n.rowWidth,onOnElementClicked:l[7]||(l[7]=c=>s("onElementClicked",c)),onOnImageOriginalSizeAdjusted:l[8]||(l[8]=c=>s("onImageOriginalSizeAdjusted",c)),onOnImageSizeAdjusted:l[9]||(l[9]=c=>s("onImageSizeAdjusted",c))},null,8,["deps","theme","iteratedBodyRow","path","selectedElementPath","context","containerWidth"])):vn("",!0)]))}}),pW={key:0},gW={key:1,class:"empty-email-component"},_W={class:"bootstrap-styles w-100 d-flex justify-content-center gap-5"},EW=at({__name:"EmailComponent",props:{deps:{},theme:{},emailComponent:{},path:{},selectedElementPath:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted"],setup(e,{emit:t}){const n=e,o=dn({context:{},ifResult:!n.emailComponent.ContextBuilderExpression,isLoaded:!1}),s=l=>{o.isLoaded=!1,n.deps.dataStructExpressionEvaluator({dataStructBuilderExpression:l,context:{}}).then(c=>{(n.emailComponent.IfExpression?n.deps.boolExpressionEvaluatorDelegate({boolExpression:n.emailComponent.IfExpression,context:c}):Promise.resolve(!0)).then(d=>{o.context=c,o.ifResult=d,o.isLoaded=!0})})};tn(()=>n.emailComponent.ContextBuilderExpression,l=>{l&&s(l)});const a=t;return n.emailComponent.ContextBuilderExpression?s(n.emailComponent.ContextBuilderExpression):o.isLoaded=!0,(l,c)=>{const d=SL("VSkeletonLoader");return o.isLoaded?(ie(),Ce("div",pW,[o.ifResult?(ie(),Ce("table",{key:0,style:Ae([{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"},[{backgroundColor:oe(ao)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})},oe(Do)({borderRadius:n.emailComponent.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{maxWidth:n.theme.BodyWidth+"px"}]])},[Z("tbody",null,[Z("tr",null,[Z("td",{class:"row__inner",style:Ae([oe(OE)({paddings:n.emailComponent.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings,fullWidth:n.emailComponent.FullWidth})])},[(ie(!0),Ce(ot,null,$n(n.emailComponent.BodyRowList,(m,p)=>(ie(),mt(sC,{key:p,deps:n.deps.emailComponentBodyRowDeps,theme:n.theme,emailComponentBodyRow:m,context:o.context,rowWidth:n.emailComponent.FullWidth?n.theme.BodyWidth:n.theme.BodyWidth-n.theme.BodyPaddings.Left-n.theme.BodyPaddings.Right,path:[...n.path,"BodyRowList",p],selectedElementPath:n.selectedElementPath,onOnElementClicked:c[0]||(c[0]=E=>a("onElementClicked",E)),onOnImageSizeAdjusted:c[1]||(c[1]=E=>a("onImageSizeAdjusted",E)),onOnImageOriginalSizeAdjusted:c[2]||(c[2]=E=>a("onImageOriginalSizeAdjusted",E)),onOnColumnWidthAdjusted:c[3]||(c[3]=E=>a("onColumnWidthAdjusted",E))},null,8,["deps","theme","emailComponentBodyRow","context","rowWidth","path","selectedElementPath"]))),128))],4)])])],4)):(ie(),Ce("div",gW,[c[5]||(c[5]=ih(" Товарная полка скрыта из-за недостатка товаров ")),oo((ie(),Ce("i",null,c[4]||(c[4]=[Z("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Z("path",{d:"M6.99967 13.6663C3.31777 13.6663 0.333008 10.6815 0.333008 6.99967C0.333008 3.31777 3.31777 0.333008 6.99967 0.333008C10.6815 0.333008 13.6663 3.31777 13.6663 6.99967C13.6663 10.6815 10.6815 13.6663 6.99967 13.6663ZM6.99967 12.333C9.94521 12.333 12.333 9.94521 12.333 6.99967C12.333 4.05415 9.94521 1.66634 6.99967 1.66634C4.05415 1.66634 1.66634 4.05415 1.66634 6.99967C1.66634 9.94521 4.05415 12.333 6.99967 12.333ZM6.33301 3.66634H7.66634V4.99967H6.33301V3.66634ZM6.33301 6.33301H7.66634V10.333H6.33301V6.33301Z",fill:"var(--gray-500)"})],-1)]))),[[oe(Gb),{placement:"top",title:"Товарная полка не будет отображаться у получателей письма пока в ней недостаточно товаров"}]])]))])):(ie(),Ce("div",{key:1,class:"bootstrap-styles w-100",style:Ae([oe(OE)({paddings:n.emailComponent.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings,fullWidth:n.emailComponent.FullWidth}),{backgroundColor:oe(ao)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})||"transparent"}])},[Ke(d,{type:"text"}),Z("div",_W,[(ie(),Ce(ot,null,$n(3,m=>Ke(d,{key:m,type:"image, text, text, text, button",style:{width:"100%"}})),64))])],4))}}});const aC=Gn(EW,[["__scopeId","data-v-a8102873"]]),vW={class:"scale-to-width-fit-component",style:{display:"inline-block","transform-origin":"left top"}},lC=at({__name:"ScaleToWidthFit",emits:["scaledElement"],setup(e,{emit:t}){const n=t;return(o,s)=>oo((ie(),Ce("div",vW,[sd(o.$slots,"default")])),[[oe(Cu),({width:a})=>{o.$el.style.transform=`scale(${o.$el.parentElement.clientWidth/a}`,n("scaledElement",o.$el)}]])}}),yW={class:"bootstrap-styles modal fade show d-block position-absolute"},bW={class:"bootstrap-styles modal-dialog modal-dialog-centered"},CW={class:"bootstrap-styles modal-content border rounded-3 shadow","data-test":"modal-window__content"},TW={class:"bootstrap-styles modal-header p-0"},wW={class:"bootstrap-styles container-fluid border-bottom g-0"},AW={class:"bootstrap-styles d-flex justify-content-between align-items-center px-11 py-7"},SW={class:"bootstrap-styles modal-title border-0","data-test":"modal-window__header-text"},xW={class:"bootstrap-styles modal-body p-0","data-test":"modal-window__body"},LW={class:"bootstrap-styles modal-footer p-0 g-0"},IW={class:"bootstrap-styles container-fluid border-top"},OW={class:"bootstrap-styles d-flex justify-content-end py-8 px-11"},RW={class:"bootstrap-styles col-6 d-flex justify-content-end","data-test":"modal-window__footer-actions"},PW=at({__name:"ModalWindow",props:{headerText:{}},emits:["close"],setup(e,{emit:t}){const n=e,o=t;return(s,a)=>(ie(),Ce("div",yW,[Z("div",{class:"bootstrap-styles modal-blur d-block position-fixed top-0 left-0 w-100 vh-100","data-test":"modal-window__outside",onClick:a[0]||(a[0]=l=>o("close"))}),Z("div",bW,[Z("div",CW,[Z("div",TW,[Z("div",wW,[Z("div",AW,[Z("h5",SW,Ud(n.headerText),1),oo((ie(),Ce("button",{type:"button","aria-label":"Close","data-bs-dismiss":"modal","data-test":"modal-window__close-button",onClick:a[1]||(a[1]=l=>o("close"))},a[2]||(a[2]=[Z("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[Z("path",{d:"M3 3L13 13",stroke:"var(--gray-500)"}),Z("path",{d:"M13 3L3 13",stroke:"var(--gray-500)"})],-1)]))),[[oe(Gb),{title:"Закрыть",placement:"top"}]])])])]),Z("div",xW,[sd(s.$slots,"body",{},void 0,!0)]),Z("div",LW,[Z("div",IW,[Z("div",OW,[Z("div",RW,[sd(s.$slots,"footer-actions",{},void 0,!0)])])])])])])]))}});const NW=Gn(PW,[["__scopeId","data-v-51d20551"]]),DW={class:"email-template-preview__inner-padding scrollable"},MW={class:"webkit emailTemplate--desktop"},BW={class:"emailTemplate-border-top"},kW={class:"emailTemplate-border-bottom"},FW=at({__name:"EmailTemplatePreviewModalWindow",props:{template:{},deps:{}},emits:["favoriteTemplateSelected","close"],setup(e,{emit:t}){const n=e,o=a=>{const l=a.parentElement;l&&(l.style.height=a.getBoundingClientRect().height+"px")},s=t;return(a,l)=>(ie(),mt(NW,{headerText:"Предпросмотр",class:"email-component__preview-modal-window",onClose:l[3]||(l[3]=()=>s("close"))},{body:na(()=>[Z("div",{style:Ae({backgroundColor:a.template.Theme.Colors.EmailBackgroundColor})},[Ke(lC,{onScaledElement:l[0]||(l[0]=c=>o(c))},{default:na(()=>[Z("div",DW,[Z("div",{class:"bootstrap-styles pe-none email-template-preview",style:Ae({backgroundColor:n.template.Theme.Colors.EmailBackgroundColor,fontFamily:n.template.Theme.FontFamily,width:a.template.Theme.BodyWidth+"px"})},[Z("div",MW,[Z("div",BW,[Z("table",{style:Ae([[{maxWidth:n.template.Theme.BodyWidth+"px",width:"100%",backgroundColor:n.template.Theme.Colors.BodyColor,borderTopLeftRadius:n.template.Theme.BorderRadius.TopLeft+"px",borderTopRightRadius:n.template.Theme.BorderRadius.TopRight+"px"}],{"border-spacing":"0"}])},[Z("tbody",null,[Z("tr",null,[Z("td",{style:Ae([{paddingTop:n.template.Theme.BodyPaddings.Top+"px"},{"font-size":"0","line-height":"0"}])},"   ",4)])])],4)]),(ie(!0),Ce(ot,null,$n(n.template.Components,(c,d)=>(ie(),Ce("div",{key:d},[Ke(aC,{deps:a.deps.emailComponentDeps,theme:n.template.Theme,emailComponent:c,path:[],selectedElementPath:[]},null,8,["deps","theme","emailComponent"])]))),128)),Z("div",kW,[Z("table",{style:Ae([[{maxWidth:n.template.Theme.BodyWidth+"px",width:"100%",backgroundColor:n.template.Theme.Colors.BodyColor,borderBottomLeftRadius:n.template.Theme.BorderRadius.BottomLeft+"px",borderBottomRightRadius:n.template.Theme.BorderRadius.BottomRight+"px"}],{"border-spacing":"0"}])},[Z("tbody",null,[Z("tr",null,[Z("td",{style:Ae([{paddingBottom:n.template.Theme.BodyPaddings.Bottom+"px"},{"font-size":"0","line-height":"0"}])},"   ",4)])])],4)])])],4)])]),_:1})],4)]),"footer-actions":na(()=>[Z("button",{type:"button",class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 border border-blue-selected rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:l[1]||(l[1]=fs(()=>s("close"),["stop"]))}," Отмена "),Z("button",{type:"submit",class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 border rounded-2 bg-color-selected text-white cursor-pointer",onClick:l[2]||(l[2]=()=>{s("favoriteTemplateSelected")})}," Выбрать ")]),_:1}))}});const $W=Gn(FW,[["__scopeId","data-v-7bb60afa"]]),WW={class:"email-template-preview__inner-padding scrollable"},HW={class:"webkit emailTemplate--desktop"},UW={class:"emailTemplate-border-top"},VW={class:"emailTemplate-border-bottom"},GW=at({__name:"EmailTemplatePreviewTile",props:{deps:{},template:{}},emits:["favoriteTemplateSelected"],setup(e,{emit:t}){const n=e,o=dn({isPreviewComponentModalWindowShown:!1}),s=l=>{const c=l.parentElement;c&&(c.style.height=l.getBoundingClientRect().height+"px")},a=t;return(l,c)=>(ie(),Ce(ot,null,[Z("div",{class:"bootstrap-styles h-100",style:Ae({backgroundColor:n.template.Theme.Colors.EmailBackgroundColor}),onClick:c[1]||(c[1]=()=>{o.isPreviewComponentModalWindowShown=!0})},[Ke(lC,{onScaledElement:c[0]||(c[0]=d=>s(d))},{default:na(()=>[Z("div",WW,[Z("div",{class:"bootstrap-styles pe-none email-template-preview",style:Ae({backgroundColor:n.template.Theme.Colors.EmailBackgroundColor,fontFamily:n.template.Theme.FontFamily,width:l.template.Theme.BodyWidth+"px"})},[Z("div",HW,[Z("div",UW,[Z("table",{style:Ae([[{maxWidth:n.template.Theme.BodyWidth+"px",width:"100%",backgroundColor:n.template.Theme.Colors.BodyColor,borderTopLeftRadius:n.template.Theme.BorderRadius.TopLeft+"px",borderTopRightRadius:n.template.Theme.BorderRadius.TopRight+"px"}],{"border-spacing":"0"}])},[Z("tbody",null,[Z("tr",null,[Z("td",{style:Ae([{paddingTop:n.template.Theme.BodyPaddings.Top+"px"},{"font-size":"0","line-height":"0"}])},"   ",4)])])],4)]),(ie(!0),Ce(ot,null,$n(n.template.Components,(d,m)=>(ie(),Ce("div",{key:m},[Ke(aC,{deps:n.deps.emailComponentDeps,theme:n.template.Theme,emailComponent:d,path:[],selectedElementPath:[]},null,8,["deps","theme","emailComponent"])]))),128)),Z("div",VW,[Z("table",{style:Ae([[{maxWidth:n.template.Theme.BodyWidth+"px",width:"100%",backgroundColor:n.template.Theme.Colors.BodyColor,borderBottomLeftRadius:n.template.Theme.BorderRadius.BottomLeft+"px",borderBottomRightRadius:n.template.Theme.BorderRadius.BottomRight+"px"}],{"border-spacing":"0"}])},[Z("tbody",null,[Z("tr",null,[Z("td",{style:Ae([{paddingBottom:n.template.Theme.BodyPaddings.Bottom+"px"},{"font-size":"0","line-height":"0"}])},"   ",4)])])],4)])])],4)])]),_:1})],4),(ie(),mt(pL,{to:"#app"},[o.isPreviewComponentModalWindowShown?(ie(),mt($W,{key:0,template:n.template,deps:n.deps.emailTemplatePreviewModalWindowDeps,onClose:c[2]||(c[2]=()=>o.isPreviewComponentModalWindowShown=!1),onFavoriteTemplateSelected:c[3]||(c[3]=()=>a("favoriteTemplateSelected"))},null,8,["template","deps"])):vn("",!0)]))],64))}});const jW=Gn(GW,[["__scopeId","data-v-f6f330d3"]]),YW=e=>at((t,n)=>()=>Bu(jW,{template:e.template,deps:e.emailTemplatePreviewTileDeps,onFavoriteTemplateSelected:e.onFavoriteTemplateSelected})),KW=e=>({elementsDeps:e.elementsDeps}),zW=e=>({iteratedColumnDeps:KW({elementsDeps:e.elementsDeps}),listExpressionEvaluator:e.listExpressionEvaluator}),qW=e=>({elementsDeps:e.elementsDeps}),XW=e=>({multipleColumnDeps:qW({elementsDeps:e.elementsDeps})}),JW=e=>({iteratedColumnBodyRowDeps:zW({elementsDeps:e.elementsDeps,listExpressionEvaluator:e.listExpressionEvaluator}),multipleColumnBodyRowDeps:XW({elementsDeps:e.elementsDeps}),listExpressionEvaluator:e.listExpressionEvaluator}),uC=e=>({emailComponentBodyRowDeps:JW({elementsDeps:e.elementsDeps,listExpressionEvaluator:e.listExpressionEvaluator}),boolExpressionEvaluatorDelegate:e.boolExpressionEvaluator,dataStructExpressionEvaluator:e.dataStructExpressionEvaluator}),ZW=e=>({expressionEvaluator:e.expressionEvaluator}),cC=e=>({listExpressionEvaluator:e.listExpressionEvaluator,numberExpressionEvaluator:e.numberExpressionEvaluator,stringExpressionEvaluator:e.stringExpressionEvaluator,expressionVueDeps:ZW({expressionEvaluator:e.expressionEvaluator}),boolExpressionEvaluator:e.boolExpressionEvaluator}),QW=e=>vr(e),eH=e=>vr(e),tH=e=>({predicate:t,context:n})=>Promise.all([e.numberExpressionEvaluator({numberExpression:t.Left,context:n}),e.numberExpressionEvaluator({numberExpression:t.Right,context:n})]).then(([o,s])=>o===s),nH=e=>vr(e),rH=e=>({predicate:t,context:n})=>Promise.all([e.numberExpressionEvaluator({numberExpression:t.Left,context:n}),e.numberExpressionEvaluator({numberExpression:t.Right,context:n})]).then(([o,s])=>o<s),oH=e=>({predicate:t,context:n})=>Promise.all([e.numberExpressionEvaluator({numberExpression:t.Left,context:n}),e.numberExpressionEvaluator({numberExpression:t.Right,context:n})]).then(([o,s])=>o>s),iH=e=>{const t=tH({numberExpressionEvaluator:e.numberExpressionEvaluator}),n=oH({numberExpressionEvaluator:e.numberExpressionEvaluator}),o=rH({numberExpressionEvaluator:e.numberExpressionEvaluator});return({numberPredicate:s,context:a})=>nH(s).Match({whenEqual:l=>t({predicate:l,context:a}),whenGreaterThan:l=>n({predicate:l,context:a}),whenLessThan:l=>o({predicate:l,context:a})})},sH=e=>({predicate:t,context:n})=>Promise.all([e.stringExpressionEvaluator({stringExpression:t.Left,context:n}),e.stringExpressionEvaluator({stringExpression:t.Right,context:n})]).then(([o,s])=>o>s),aH=e=>vr(e),lH=e=>({predicate:t,context:n})=>Promise.all([e.stringExpressionEvaluator({stringExpression:t.Left,context:n}),e.stringExpressionEvaluator({stringExpression:t.Contains,context:n})]).then(([o,s])=>o>s),uH=e=>{const t=sH({stringExpressionEvaluator:e.stringExpressionEvaluator}),n=lH({stringExpressionEvaluator:e.stringExpressionEvaluator});return({stringPredicate:o,context:s})=>aH(o).Match({whenContains:a=>n({predicate:a,context:s}),whenEqual:a=>t({predicate:a,context:s})})},cH=e=>{const t=iH({numberExpressionEvaluator:e.numberExpressionEvaluator}),n=uH({stringExpressionEvaluator:e.stringExpressionEvaluator});return({predicate:o,context:s})=>eH(o).Match({whenNumberPredicate:a=>t({numberPredicate:a,context:s}),whenStringPredicate:a=>n({stringPredicate:a,context:s})})},fC=e=>{const t=cH({numberExpressionEvaluator:e.numberExpressionEvaluator,stringExpressionEvaluator:e.stringExpressionEvaluator}),n=({boolExpression:o,context:s})=>QW(o).Match({whenAndExpression:a=>Promise.all(a.Expressions.map(l=>n({boolExpression:l,context:s}))).then(l=>l.every(c=>c)),whenOrExpression:a=>Promise.all(a.Expressions.map(l=>n({boolExpression:l,context:s}))).then(l=>l.some(c=>c)),whenNotExpression:async a=>!await n({boolExpression:a.Expression,context:s}),whenPredicate:a=>t({predicate:a,context:s})});return n},fH=e=>{const t=fC({numberExpressionEvaluator:e.numberExpressionEvaluator,stringExpressionEvaluator:e.stringExpressionEvaluator});return{emailComponentDeps:uC({elementsDeps:cC({listExpressionEvaluator:e.listExpressionEvaluator,numberExpressionEvaluator:e.numberExpressionEvaluator,stringExpressionEvaluator:e.stringExpressionEvaluator,expressionEvaluator:e.expressionEvaluator,boolExpressionEvaluator:t}),listExpressionEvaluator:e.listExpressionEvaluator,boolExpressionEvaluator:t,dataStructExpressionEvaluator:e.dataStructExpressionEvaluator})}},dH=e=>{const t=fC({numberExpressionEvaluator:e.numberExpressionEvaluator,stringExpressionEvaluator:e.stringExpressionEvaluator});return{emailComponentDeps:uC({elementsDeps:cC({listExpressionEvaluator:e.listExpressionEvaluator,numberExpressionEvaluator:e.numberExpressionEvaluator,stringExpressionEvaluator:e.stringExpressionEvaluator,expressionEvaluator:e.expressionEvaluator,boolExpressionEvaluator:t}),listExpressionEvaluator:e.listExpressionEvaluator,boolExpressionEvaluator:t,dataStructExpressionEvaluator:e.dataStructExpressionEvaluator}),emailTemplatePreviewModalWindowDeps:fH({listExpressionEvaluator:e.listExpressionEvaluator,dataStructExpressionEvaluator:e.dataStructExpressionEvaluator,numberExpressionEvaluator:e.numberExpressionEvaluator,stringExpressionEvaluator:e.stringExpressionEvaluator,expressionEvaluator:e.expressionEvaluator})}},hH=e=>{const t=document.createElement("form");t.method=e.method,t.action=e.action;for(const[n,o]of e.formData.entries()){if(o instanceof File)continue;const s=document.createElement("input");s.setAttribute("type","text"),s.setAttribute("name",n),s.setAttribute("value",o),t.appendChild(s)}return t},mH=e=>{const t=n=>J$(n.listExpression).Match({whenContextValueExpression:o=>Promise.resolve(z$(o.Path,n.context)),whenChunkExpression:async o=>{const s=await t({listExpression:o.ListExpression,context:n.context});return s.slice(0,Math.floor(s.length/o.ChunkSize)*o.ChunkSize)},whenLimitExpression:async o=>(await t({listExpression:o.ListExpression,context:n.context})).slice(0,o.Limit),whenDataSource:o=>e.listExpressionDataSourceEvaluator(o)});return t},pH=e=>t=>Z$(t.numberExpression).Match({whenContextValueExpression:n=>Promise.resolve(X$(n.Path,t.context)),whenConstValueExpression:n=>Promise.resolve(n.Value),whenListLengthExpression:async n=>e.listExpressionEvaluator({listExpression:n.ListExpression,context:t.context}).then(o=>o.length),whenDataSource:n=>Promise.resolve(e.numberExpressionDataSourceEvaluator(n))}),gH=e=>{const t=n=>{const o=e.stringExpressionDataSourceEvaluatorFactory(t);return Q$(n.stringExpression).Match({whenConcatStringExpressions:s=>yH({concatStringExpressions:s,stringExpressionEvaluator:t,context:n.context}),whenContextValueExpression:s=>_H({contextValueExpression:s,context:n.context}),whenConstValueExpression:s=>bH({stringConstValueExpression:s}),whenTruncateValueExpression:s=>EH({truncateValueExpression:s,context:n.context,stringExpressionEvaluator:t}),whenDataSource:s=>o({stringExpressionDataSource:s,context:n.context}),whenNumberToStringExpression:s=>vH({numberToStringExpression:s,context:n.context,numberExpressionEvaluator:e.numberExpressionEvaluator})})};return t},_H=e=>Promise.resolve(q$(e.contextValueExpression.Path,e.context)),EH=async e=>{const t=e.truncateValueExpression.MaxLength,n=await e.stringExpressionEvaluator({stringExpression:e.truncateValueExpression.StringExpression,context:e.context});return t<n.length?n.slice(0,e.truncateValueExpression.MaxLength)+e.truncateValueExpression.Tail:n},vH=async e=>(await e.numberExpressionEvaluator({numberExpression:e.numberToStringExpression.NumberExpression,context:e.context})).toString(),yH=e=>Promise.all(e.concatStringExpressions.StringExpressions.map(t=>e.stringExpressionEvaluator({stringExpression:t,context:e.context}))).then(t=>t.join("")),bH=e=>Promise.resolve(e.stringConstValueExpression.Value),CH=()=>()=>Promise.resolve(0),TH=vr,wH=e=>{const t=e.contactCustomData;return n=>TH(n.stringExpressionDataSource).Match({whenMassMailingContactCustomData:o=>Promise.resolve(t[o.FieldName]),whenProductImageUrlBuilderExpression:o=>e.productImageUrlBuilderExpressionEvaluator({expression:o,context:n.context})})},AH=e=>async({context:t,expression:n})=>e.numberExpressionEvaluator({numberExpression:n.ProductId,context:t}).then(o=>"https://cdn.retailrocket.net/api/1.0/partner/"+e.partnerId+"/item/"+o+"/picture/?format=png&width="+n.ImageSize.Width+"&height="+n.ImageSize.Height+"&scale=both"),WE=e=>({dataStructBuilderExpression:t,context:n})=>Promise.all(Object.entries(t).map(async([o,s])=>({key:o,value:await e.expressionEvaluator({expression:s,context:n})}))).then(o=>Object.fromEntries(o.map(s=>[s.key,s.value]))),SH=e=>vr(e),xH=e=>{const t=({expression:n,context:o})=>{const s=e.dataStructBuilderExpressionEvaluatorFactory(t);return SH(n).Match({whenNumberExpression:a=>e.numberExpressionEvaluator({numberExpression:a,context:o}),whenStringExpression:a=>e.stringExpressionEvaluator({stringExpression:a,context:o}),whenListExpression:a=>e.listExpressionEvaluator({listExpression:a,context:o}),whenRecordBuilderExpression:a=>s({dataStructBuilderExpression:a,context:o})})};return t},HE={Subject:"",Preheader:"",Theme:{BodyWidth:600,FontFamily:"Arial",Colors:{EmailBackgroundColor:"#EEEEEE",BodyColor:"#FFFFFF",PrimaryColor:"#557aff",PrimaryTextColor:"#ffffff",SecondaryColor:"#F6F6F6",SecondaryTextColor:"#000000",CardBackgroundColor:"#F2F2F2",HeadingColor:"#2F2F2F",TitleColor:"#2F2F2F",SubHeadingColor:"#2F2F2F",LargeTextColor:"#2F2F2F",NormalTextColor:"#2F2F2F",DescriptionTextColor:"#999999",LinkColor:"#65A0FA",ButtonTextColor:"#ffffff"},BorderRadius:{TopLeft:20,TopRight:20,BottomLeft:20,BottomRight:20},BorderRadiusCard:{TopLeft:0,TopRight:0,BottomLeft:0,BottomRight:0},BorderRadiusButton:{TopLeft:5,TopRight:5,BottomLeft:5,BottomRight:5},BorderRadiusBanner:{TopLeft:0,TopRight:0,BottomLeft:0,BottomRight:0},BodyPaddings:{Left:20,Right:20,Top:10,Bottom:10},ComponentPaddings:{Small:8,Medium:16,Large:24,Huge:40},ButtonPaddings:{TopBottom:12,LeftRight:14},FontSettingsPresets:{Title:{FontSize:24,LineHeight:28,IsBold:!0,IsItalic:!1,Decoration:"None"},Heading:{FontSize:20,LineHeight:24,IsBold:!0,IsItalic:!1,Decoration:"None"},SubHeading:{FontSize:14,LineHeight:16,IsBold:!0,IsItalic:!1,Decoration:"None"},LargeText:{FontSize:14,LineHeight:18,IsBold:!1,IsItalic:!1,Decoration:"None"},NormalText:{FontSize:12,LineHeight:15,IsBold:!1,IsItalic:!1,Decoration:"None"},DescriptionText:{FontSize:10,LineHeight:13,IsBold:!1,IsItalic:!1,Decoration:"None"},Button:{FontSize:12,LineHeight:14,IsBold:!0,IsItalic:!1,Decoration:"None"},Link:{FontSize:12,LineHeight:14,IsBold:!1,IsItalic:!1,Decoration:"None"}}},Components:[{BorderRadius:{TopLeft:{Discriminator:"CustomBorderRadius",CustomValue:0},TopRight:{Discriminator:"CustomBorderRadius",CustomValue:0},BottomRight:{Discriminator:"CustomBorderRadius",CustomValue:0},BottomLeft:{Discriminator:"CustomBorderRadius",CustomValue:0}},InnerBgColor:{Discriminator:"BodyColor",CustomValue:"#000000"},Paddings:{Top:{ThemePadding:"ThemePaddingsLarge"},Bottom:{ThemePadding:"ThemePaddingsLarge"}},FullWidth:!1,BodyRowList:[{MultipleColumnBodyRow:{ColumnSpacerSize:{CustomValue:0},DirectionRtl:!1,Paddings:{Left:{CustomValue:0},Top:{CustomValue:0},Right:{CustomValue:0},Bottom:{CustomValue:0}},Border:{Left:{Width:0,Style:"None",Color:{Discriminator:"Custom",CustomValue:"#FFFFFF"}},Top:{Width:0,Style:"None",Color:{Discriminator:"Custom",CustomValue:"#FFFFFF"}},Right:{Width:0,Style:"None",Color:{Discriminator:"Custom",CustomValue:"#FFFFFF"}},Bottom:{Width:0,Style:"None",Color:{Discriminator:"Custom",CustomValue:"#FFFFFF"}}},BorderRadius:{TopLeft:{Discriminator:"CustomBorderRadius",CustomValue:0},TopRight:{Discriminator:"CustomBorderRadius",CustomValue:0},BottomRight:{Discriminator:"CustomBorderRadius",CustomValue:0},BottomLeft:{Discriminator:"CustomBorderRadius",CustomValue:0}},BgColor:{Discriminator:"None",CustomValue:"#ffffff"},ContainerAlign:"Center",Columns:[{VerticalAlign:"Top",BgColor:{Discriminator:"None",CustomValue:"#ffffff"},Paddings:{Top:{CustomValue:0},Right:{CustomValue:0},Bottom:{CustomValue:0},Left:{CustomValue:0}},Border:{Left:{Width:0,Style:"None",Color:{Discriminator:"Custom",CustomValue:"#FFFFFF"}},Top:{Width:0,Style:"None",Color:{Discriminator:"Custom",CustomValue:"#FFFFFF"}},Right:{Width:0,Style:"None",Color:{Discriminator:"Custom",CustomValue:"#FFFFFF"}},Bottom:{Width:0,Style:"None",Color:{Discriminator:"Custom",CustomValue:"#FFFFFF"}}},BorderRadius:{TopLeft:{Discriminator:"CustomBorderRadius",CustomValue:0},TopRight:{Discriminator:"CustomBorderRadius",CustomValue:0},BottomRight:{Discriminator:"CustomBorderRadius",CustomValue:0},BottomLeft:{Discriminator:"CustomBorderRadius",CustomValue:0}},ContainerAlign:"Center",Elements:[{SpanText:{MinNumberOfLines:1,IsLink:!1,HRef:{ConstValueExpression:{Value:""}},Text:{ConstValueExpression:{Value:"Cервис создания электронных писем"}},Style:{Discriminator:"Heading",FontColor:{Discriminator:"StyleLinkedColor",CustomValue:"#000000"},CustomFontSettings:{FontFamily:"Arial",FontSize:16,LineHeight:20,IsBold:!1,IsItalic:!1,Decoration:"None",FontColor:{Discriminator:"NormalTextColor",CustomValue:"#000000"}}},ContentAlign:"Inline"}},{Spacer:{Height:{ThemePadding:"ThemePaddingsLarge"},Weight:0,Color:{Discriminator:"None",CustomValue:"#FFFFFF"}}},{SpanText:{MinNumberOfLines:1,IsLink:!1,HRef:{ConstValueExpression:{Value:""}},Text:{ConstValueExpression:{Value:"Мы рады представить вам наш новый продукт - сервис создания электронных писем. С помощью этого удобного и интуитивно понятного инструмента, вы сможете легко создавать красивые и профессиональные письма всего в несколько простых шагов."}},Style:{Discriminator:"LargeText",FontColor:{Discriminator:"StyleLinkedColor",CustomValue:"#000000"},CustomFontSettings:{FontFamily:"Arial",FontSize:16,LineHeight:20,IsBold:!1,IsItalic:!1,Decoration:"None",FontColor:{Discriminator:"NormalTextColor",CustomValue:"#000000"}}},ContentAlign:"Inline"}}],Width:{JustifyWidth:{WidthInPixels:560}}}]}}]}]},dC="#app",Qn=document.querySelector(dC),un={partnerId:Qn.getAttribute("data-partner-id"),wysiwygTemplateEditorBffBaseUrl:Qn.getAttribute("data-wysiwyg-template-editor-bff-base-url"),wysiwygBffProxyBaseUrl:Qn.getAttribute("data-wysiwyg-bff-proxy-base-url"),antiForgeryHeaderTokenName:Qn.getAttribute("data-anti-forgery-header-token-name"),antiForgeryHeaderTokenValue:Qn.getAttribute("data-anti-forgery-header-token-value"),antiForgeryFormTokenName:Qn.getAttribute("data-anti-forgery-form-token-name"),antiForgeryFormTokenValue:Qn.getAttribute("data-anti-forgery-form-token-value"),createEmailTemplateSubmitUrl:Qn.getAttribute("data-create-email-template-submit-url"),initialEmailTemplateJson:Qn.getAttribute("data-initial-multicast-template"),multicastFavoritesTemplates:JSON.parse(Qn.getAttribute("data-multicast-favorites-templates")),commonFavoritesTemplates:JSON.parse(Qn.getAttribute("data-common-favorites-templates")),exitLink:Qn.getAttribute("data-exit-link")},LH=e=>_D({baseUrl:e.baseUrl,antiForgeryTokenHeaderName:un.antiForgeryHeaderTokenName,antiForgeryTokenValue:un.antiForgeryHeaderTokenValue}),IH=Vy(LH({baseUrl:un.wysiwygBffProxyBaseUrl})),hC=e=>{const t=new FormData;t.append(un.antiForgeryFormTokenName,un.antiForgeryFormTokenValue),t.append("template",JSON.stringify(e.template));const n=hH({method:"POST",action:un.createEmailTemplateSubmitUrl,formData:t});document.body.appendChild(n),n.submit()},OH={},UE=e=>{const t=gD({partnerId:un.partnerId,listExpressionDataSourceBffClient:IH,customerStockId:void 0}),n=mH({listExpressionDataSourceEvaluator:t}),o=CH(),s=pH({listExpressionEvaluator:n,numberExpressionDataSourceEvaluator:o}),a=gH({listExpressionEvaluator:n,numberExpressionEvaluator:s,stringExpressionDataSourceEvaluatorFactory:()=>wH({productImageUrlBuilderExpressionEvaluator:AH({partnerId:un.partnerId,numberExpressionEvaluator:s}),contactCustomData:OH})}),l=xH({listExpressionEvaluator:n,numberExpressionEvaluator:s,stringExpressionEvaluator:a,dataStructBuilderExpressionEvaluatorFactory:d=>WE({expressionEvaluator:d})}),c=WE({expressionEvaluator:l});return YW({template:e.template,emailTemplatePreviewTileDeps:dH({listExpressionEvaluator:n,numberExpressionEvaluator:s,stringExpressionEvaluator:a,dataStructExpressionEvaluator:c,expressionEvaluator:l}),onFavoriteTemplateSelected:()=>{console.log("onFavoriteTemplateSelected"),hC({template:e.template})}})},Fh=$I(qR,{onInitialTemplateSelected:()=>{console.log("onInitialTemplateSelected"),hC({template:un.initialEmailTemplateJson.length?JSON.parse(un.initialEmailTemplateJson):HE})},deps:aD({partnerId:un.partnerId,emailTemplatePreviewComponents:[...un.commonFavoritesTemplates.map(e=>UE({template:JSON.parse(e.templateJson)})),...un.multicastFavoritesTemplates.map(e=>UE({template:JSON.parse(e.templateJson)}))],initialEmailTemplate:un.initialEmailTemplateJson.length?JSON.parse(un.initialEmailTemplateJson):HE,exitLink:un.exitLink})});Fh.use(gy({components:{VSkeletonLoader:oD}}));Fh.use(Uy);Fh.mount(dC);
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@retailrocketgroup/retailrocket-create.multicast-vue-email-template-render",
3
- "version": "1.0.345178",
3
+ "version": "1.0.345503-dev",
4
4
  "private": false
5
5
  }