@retailrocketgroup/retailrocket-edit.repurchase-vue-email-template-render 10.0.399657 → 10.0.400288-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.
- package/.turbo/turbo-build.log +5 -5
- package/dist/assets/index.js +1 -1
- package/package.json +1 -1
package/dist/assets/index.js
CHANGED
|
@@ -144,7 +144,7 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function
|
|
|
144
144
|
${t.Width}px
|
|
145
145
|
dotted
|
|
146
146
|
${W6({borderColor:t.Color,themeColors:e})}
|
|
147
|
-
`}),cg=t=>({borderTop:aO(t.border.Top,t.themeColors),borderRight:aO(t.border.Right,t.themeColors),borderBottom:aO(t.border.Bottom,t.themeColors),borderLeft:aO(t.border.Left,t.themeColors)}),i$=t=>t.borderCollapse!==void 0?{borderCollapse:OPt(t.borderCollapse)}:{borderCollapse:"collapse"},OPt=t=>{switch(t){case"Collapse":return"collapse";case"Separate":return"separate";default:return Zc(t)}},PPt=t=>({Match:e=>{switch(t.Discriminator){case"None":return e.None();case"EmailBackgroundColor":return e.EmailBackgroundColor();case"BodyColor":return e.BodyColor();case"TitleColor":return e.TitleColor();case"HeadingColor":return e.HeadingColor();case"SubHeadingColor":return e.SubHeading();case"LargeTextColor":return e.LargeTextColor();case"NormalTextColor":return e.NormalTextColor();case"DescriptionTextColor":return e.DescriptionTextColor();case"PrimaryTextColor":return e.PrimaryTextColor();case"SecondaryTextColor":return e.SecondaryTextColor();case"ButtonTextColor":return e.ButtonTextColor();case"LinkColor":return e.LinkColor();case"PrimaryColor":return e.PrimaryColor();case"SecondaryColor":return e.SecondaryColor();case"CardBackgroundColor":return e.CardBackgroundColor();case"Custom":return e.Custom(t.CustomValue);default:return Zc(t.Discriminator)}}}),lc=t=>PPt(t.color).Match({None:()=>null,EmailBackgroundColor:()=>t.themeColors.EmailBackgroundColor,BodyColor:()=>t.themeColors.BodyColor,TitleColor:()=>t.themeColors.TitleColor,HeadingColor:()=>t.themeColors.HeadingColor,SubHeading:()=>t.themeColors.SubHeadingColor,LargeTextColor:()=>t.themeColors.LargeTextColor,NormalTextColor:()=>t.themeColors.NormalTextColor,DescriptionTextColor:()=>t.themeColors.DescriptionTextColor,PrimaryTextColor:()=>t.themeColors.PrimaryTextColor,SecondaryTextColor:()=>t.themeColors.SecondaryTextColor,LinkColor:()=>t.themeColors.LinkColor,PrimaryColor:()=>t.themeColors.PrimaryColor,SecondaryColor:()=>t.themeColors.SecondaryColor,CardBackgroundColor:()=>t.themeColors.CardBackgroundColor,ButtonTextColor:()=>t.themeColors.ButtonTextColor,Custom:e=>e}),c9e=t=>({Match:e=>{switch(t){case"Left":return e.Left();case"Center":return e.Center();case"Right":return e.Right();default:return Zc(t)}}}),VPt=t=>t.containerAlign?c9e(t.containerAlign).Match({Left:()=>({textAlign:"left"}),Center:()=>({textAlign:"center"}),Right:()=>({textAlign:"right"})}):{},bf=t=>t.containerAlign?c9e(t.containerAlign).Match({Left:()=>"left",Center:()=>"center",Right:()=>"right"}):"center",WPt=re({__name:"If",props:{deps:{},theme:{},element:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=e,r=Le({ifResult:!1,isLoading:!0});return n.deps.boolExpressionEvaluator({boolExpression:n.element.Predicate,context:n.context}).then(i=>{r.ifResult=i,r.isLoading=!1}),(i,s)=>(E(!0),R(Se,null,At(r.ifResult?n.element.True:n.element.False,(a,l)=>(E(),Q(Bu,{key:l,deps:n.deps,theme:n.theme,element:a,context:n.context,path:[...n.path,r.ifResult?"True":"False",l],selectedElementPath:n.selectedElementPath,onOnImageSizeAdjusted:s[0]||(s[0]=c=>o("onImageSizeAdjusted",c)),onOnImageOriginalSizeAdjusted:s[1]||(s[1]=c=>o("onImageOriginalSizeAdjusted",c)),onOnElementClicked:s[2]||(s[2]=c=>o("onElementClicked",c)),onOnElementUpdatedEvent:s[3]||(s[3]=c=>o("onElementUpdatedEvent",c)),onOnElementRemoved:s[4]||(s[4]=c=>o("onElementRemoved",c))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))}}),s$=t=>({paddingTop:Jr({paddingExpression:t.paddings.Top,themeComponentPaddings:t.themeComponentPaddings,themeBodyPaddings:t.themeBodyPaddings})+"px",paddingRight:Jr({paddingExpression:t.paddings.Right,themeComponentPaddings:t.themeComponentPaddings,themeBodyPaddings:t.themeBodyPaddings})+"px",paddingBottom:Jr({paddingExpression:t.paddings.Bottom,themeComponentPaddings:t.themeComponentPaddings,themeBodyPaddings:t.themeBodyPaddings})+"px",paddingLeft:Jr({paddingExpression:t.paddings.Left,themeComponentPaddings:t.themeComponentPaddings,themeBodyPaddings:t.themeBodyPaddings})+"px"}),HPt=hs,zPt=t=>HPt(t.width).Match({Auto:()=>"initial",Pixel:e=>e.Value+"px",Percentage:e=>e.Value+"%"}),jPt=["align"],KPt=re({__name:"HeightContainer",props:{deps:{},theme:{},element:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("table",{class:"heightContainerRender",style:Te([{"border-spacing":"0","border-collapse":"separate"},{width:N(zPt)({width:n.element.Width})}])},[b("tbody",null,[b("tr",null,[b("td",{align:N(bf)({containerAlign:n.element.ContainerAlign}),style:Te([N(s$)({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:N(lc)({color:n.element.BackgroundColor,themeColors:n.theme.Colors})??"inherit"},N(cg)({border:n.element.Border,themeColors:n.theme.Colors}),N(zp)({borderRadius:n.element.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})])},[(E(!0),R(Se,null,At(n.element.Elements,(s,a)=>(E(),Q(Bu,{key:a,deps:n.deps,theme:n.theme,element:s,path:[...n.path,"Elements",a],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:i[0]||(i[0]=l=>o("onImageSizeAdjusted",l)),onOnImageOriginalSizeAdjusted:i[1]||(i[1]=l=>o("onImageOriginalSizeAdjusted",l)),onOnElementClicked:i[2]||(i[2]=l=>o("onElementClicked",l)),onOnElementUpdatedEvent:i[3]||(i[3]=l=>o("onElementUpdatedEvent",l)),onOnElementRemoved:i[4]||(i[4]=l=>o("onElementRemoved",l))},null,8,["deps","theme","element","path","selectedElementPath","context"]))),128))],12,jPt)])])],4))}}),UPt=t=>({Match:e=>{switch(t){case"Left":return e.Left();case"Center":return e.Center();case"Right":return e.Right();case"Inline":return e.Inline()}}}),oI=t=>UPt(t.contentAlign).Match({Left:()=>({display:"block",textAlign:"left"}),Center:()=>({display:"block",textAlign:"center"}),Right:()=>({display:"block",textAlign:"right"}),Inline:()=>({})}),qPt=["href"],JPt=["src","alt"],GPt=["src","alt"],YPt=re({__name:"Image",props:{deps:{},theme:{},element:{},path:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementClicked"],setup(t,{emit:e}){const n=c=>{l("onImageOriginalSizeAdjusted",{Path:o.path,OriginalHeight:c.target.naturalHeight,OriginalWidth:c.target.naturalWidth})},o=t,r=Le({href:"",src:"",alt:"",isLoaded:!1}),i=ne(()=>(o.element.IsRetina?o.element.OriginalWidth/2:o.element.OriginalWidth)+"px"),s=async c=>o.deps.stringExpressionEvaluator({stringExpression:c,context:o.context}),a=async()=>{const[c,u,d]=await Promise.all([s(o.element.Src),s(o.element.HRef),s(o.element.Alt)]);r.href=u,r.src=c,r.alt=d,r.isLoaded=!0};on(()=>[o.element.Src,o.element.HRef,o.element.Alt,o.context],()=>a()),a();const l=e;return(c,u)=>o.element.IsLink?(E(),R("a",{key:0,href:r.href,style:Te([N(oI)({contentAlign:o.element.ContentAlign})]),onClick:u[0]||(u[0]=Nt(()=>l("onElementClicked"),["prevent"]))},[r.isLoaded?Ke((E(),R("img",{key:0,class:G(["Image cursor-pointer",{"img-responsive":o.element.IsResponsive}]),src:r.src,alt:r.alt,style:Te([N(zp)({borderRadius:o.element.BorderRadius,borderRadiusCard:o.theme.BorderRadiusCard,bodyBorderRadius:o.theme.BorderRadius,borderButtonRadius:o.theme.BorderRadiusButton,borderBannerRadius:o.theme.BorderRadiusBanner}),N(cg)({border:o.element.Border,themeColors:o.theme.Colors}),{width:i.value,maxWidth:"100%"},{verticalAlign:o.element.VerticalAlign}]),onLoad:n},null,46,JPt)),[[N(jw),({width:d,height:h})=>l("onImageSizeAdjusted",{Path:o.path,AdjustedHeight:h,AdjustedWidth:d})]]):oe("",!0)],12,qPt)):(E(),R("span",{key:1,style:Te([N(oI)({contentAlign:o.element.ContentAlign})]),onClick:u[1]||(u[1]=Nt(()=>l("onElementClicked"),["prevent"]))},[r.isLoaded?Ke((E(),R("img",{key:0,class:G(["Image cursor-pointer",{"img-responsive":o.element.IsResponsive}]),src:r.src,alt:r.alt,style:Te([N(zp)({borderRadius:o.element.BorderRadius,borderRadiusCard:o.theme.BorderRadiusCard,bodyBorderRadius:o.theme.BorderRadius,borderButtonRadius:o.theme.BorderRadiusButton,borderBannerRadius:o.theme.BorderRadiusBanner}),N(cg)({border:o.element.Border,themeColors:o.theme.Colors}),{width:i.value,maxWidth:"100%"},{verticalAlign:o.element.VerticalAlign}]),onLoad:n},null,46,GPt)),[[N(jw),({width:d,height:h})=>l("onImageSizeAdjusted",{Path:o.path,AdjustedHeight:h,AdjustedWidth:d})]]):oe("",!0)],4))}}),ZPt=ve(YPt,[["__scopeId","data-v-eaaeacec"]]),XPt=hs,QPt=t=>t.width===void 0?{}:XPt(t.width).Match({Auto:()=>({width:"auto"}),Pixel:e=>({width:e.Value+"px"}),Percentage:e=>({width:e.Value+"%"})}),eVt=t=>{switch(t){case"Auto":return{width:"auto"};case"FullWidth":return{width:"100%"};default:return Zc(t)}},tVt=re({__name:"OneLineList",props:{deps:{},theme:{},element:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageSizeAdjusted","onImageOriginalSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("table",{class:"oneLineList",style:Te([{"border-spacing":"0","border-collapse":"collapse"},[N(eVt)(n.element.ContainerWidth)]])},[b("tbody",null,[b("tr",null,[(E(!0),R(Se,null,At(n.element.Elements,(s,a)=>(E(),R("td",{key:a,class:"oneLineListItem",style:Te([N(s$)({paddings:n.element.ItemPaddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),N(QPt)({width:n.element.ItemWidth}),{lineHeight:"normal"}])},[(E(),Q(Bu,{key:a,deps:n.deps,theme:n.theme,element:s,path:[...n.path,"Elements",a],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:i[0]||(i[0]=l=>o("onImageSizeAdjusted",l)),onOnImageOriginalSizeAdjusted:i[1]||(i[1]=l=>o("onImageOriginalSizeAdjusted",l)),onOnElementClicked:i[2]||(i[2]=l=>o("onElementClicked",l)),onOnElementUpdatedEvent:i[3]||(i[3]=l=>o("onElementUpdatedEvent",l)),onOnElementRemoved:i[4]||(i[4]=l=>o("onElementRemoved",l))},null,8,["deps","theme","element","path","selectedElementPath","context"]))],4))),128))])])],4))}}),nVt={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"}},oVt=re({__name:"Spacer",props:{theme:{},element:{}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("table",{class:"Spacer",width:"100%",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"},onClick:i[0]||(i[0]=()=>o("onElementClicked"))},[b("tbody",null,[b("tr",null,[b("td",{valign:"middle",style:Te([{height:N(Jr)({paddingExpression:n.element.Height,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})+"px"}])},[b("table",nVt,[b("tbody",null,[b("tr",null,[b("td",{style:Te([[{borderTop:n.element.Weight+"px",borderStyle:n.element.Weight>0?"solid":"none",borderColor:N(lc)({color:n.element.Color,themeColors:n.theme.Colors})}],{"font-size":"0","line-height":"0","border-bottom":"0","border-left":"0","border-right":"0"}])}," ",4)])])])],4)])])]))}}),iH={beforeMount(t,e){t.innerHTML=Nwe.sanitize(e.value)},beforeUpdate(t,e){t.innerHTML=Nwe.sanitize(e.value)}},rVt=t=>({Match:e=>{switch(t.Discriminator){case"EmailBackgroundColor":return e.EmailBackgroundColor();case"BodyColor":return e.BodyColor();case"TitleColor":return e.TitleColor();case"HeadingColor":return e.HeadingColor();case"SubHeadingColor":return e.SubHeading();case"LargeTextColor":return e.LargeTextColor();case"NormalTextColor":return e.NormalTextColor();case"DescriptionTextColor":return e.DescriptionTextColor();case"PrimaryTextColor":return e.PrimaryTextColor();case"SecondaryTextColor":return e.SecondaryTextColor();case"ButtonTextColor":return e.ButtonTextColor();case"LinkColor":return e.LinkColor();case"PrimaryColor":return e.PrimaryColor();case"SecondaryColor":return e.SecondaryColor();case"CardBackgroundColor":return e.CardBackgroundColor();case"Custom":return e.Custom(t.CustomValue)}}}),a$=t=>rVt(t.fontColor).Match({EmailBackgroundColor:()=>t.themeColors.EmailBackgroundColor,BodyColor:()=>t.themeColors.BodyColor,TitleColor:()=>t.themeColors.TitleColor,HeadingColor:()=>t.themeColors.HeadingColor,SubHeading:()=>t.themeColors.SubHeadingColor,LargeTextColor:()=>t.themeColors.LargeTextColor,NormalTextColor:()=>t.themeColors.NormalTextColor,DescriptionTextColor:()=>t.themeColors.DescriptionTextColor,PrimaryTextColor:()=>t.themeColors.PrimaryTextColor,SecondaryTextColor:()=>t.themeColors.SecondaryTextColor,LinkColor:()=>t.themeColors.LinkColor,PrimaryColor:()=>t.themeColors.PrimaryColor,SecondaryColor:()=>t.themeColors.SecondaryColor,CardBackgroundColor:()=>t.themeColors.CardBackgroundColor,ButtonTextColor:()=>t.themeColors.ButtonTextColor,Custom:e=>e}),iVt=t=>({Match:e=>{switch(t){case"None":return e.None();case"Underline":return e.Underline();case"LineThrough":return e.LineThrough()}}}),xpe=t=>iVt(t.textDecoration).Match({None:()=>"none",Underline:()=>"underline",LineThrough:()=>"line-through"}),u9e=t=>({fontSize:t.customFontSettings.FontSize,lineHeight:t.customFontSettings.LineHeight,fontWeight:t.customFontSettings.IsBold?"bold":"normal",fontStyle:t.customFontSettings.IsItalic?"italic":"normal",textDecoration:xpe({textDecoration:t.customFontSettings.Decoration}),fontFamily:t.customFontSettings.FontFamily,color:a$({fontColor:t.customFontSettings.FontColor,themeColors:t.themeColors})}),Tpe=t=>({Match:e=>{switch(t.Discriminator){case"Heading":return e.Heading();case"Title":return e.Title();case"SubHeading":return e.SubHeading();case"LargeText":return e.LargeText();case"NormalText":return e.NormalText();case"DescriptionText":return e.DescriptionText();case"Link":return e.Link();case"Button":return e.Button();case"Custom":return e.Custom(t.CustomFontSettings);default:return Zc(t.Discriminator)}}}),sVt=t=>({Match:e=>{switch(t.Discriminator){case"StyleLinkedColor":return e.FontStyle();case"EmailBackgroundColor":return e.EmailBackgroundColor();case"BodyColor":return e.BodyColor();case"TitleColor":return e.TitleColor();case"HeadingColor":return e.HeadingColor();case"SubHeadingColor":return e.SubHeading();case"LargeTextColor":return e.LargeTextColor();case"NormalTextColor":return e.NormalTextColor();case"DescriptionTextColor":return e.DescriptionTextColor();case"PrimaryTextColor":return e.PrimaryTextColor();case"SecondaryTextColor":return e.SecondaryTextColor();case"ButtonTextColor":return e.ButtonTextColor();case"LinkColor":return e.LinkColor();case"PrimaryColor":return e.PrimaryColor();case"SecondaryColor":return e.SecondaryColor();case"CardBackgroundColor":return e.CardBackgroundColor();case"Custom":return e.Custom(t.CustomValue)}}}),d9e=t=>sVt(t.fontStyleColor).Match({FontStyle:()=>Tpe(t.fontStyle).Match({Heading:()=>t.themeColors.HeadingColor,Title:()=>t.themeColors.TitleColor,SubHeading:()=>t.themeColors.SubHeadingColor,LargeText:()=>t.themeColors.LargeTextColor,NormalText:()=>t.themeColors.NormalTextColor,DescriptionText:()=>t.themeColors.DescriptionTextColor,Button:()=>t.themeColors.ButtonTextColor,Link:()=>t.themeColors.LinkColor,Custom:e=>lc({color:e.FontColor,themeColors:t.themeColors})}),EmailBackgroundColor:()=>t.themeColors.EmailBackgroundColor,BodyColor:()=>t.themeColors.BodyColor,TitleColor:()=>t.themeColors.TitleColor,HeadingColor:()=>t.themeColors.HeadingColor,SubHeading:()=>t.themeColors.SubHeadingColor,LargeTextColor:()=>t.themeColors.LargeTextColor,NormalTextColor:()=>t.themeColors.NormalTextColor,DescriptionTextColor:()=>t.themeColors.DescriptionTextColor,PrimaryTextColor:()=>t.themeColors.PrimaryTextColor,SecondaryTextColor:()=>t.themeColors.SecondaryTextColor,LinkColor:()=>t.themeColors.LinkColor,PrimaryColor:()=>t.themeColors.PrimaryColor,SecondaryColor:()=>t.themeColors.SecondaryColor,CardBackgroundColor:()=>t.themeColors.CardBackgroundColor,ButtonTextColor:()=>t.themeColors.ButtonTextColor,Custom:e=>e}),DU=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"],Sp={Arial:"Arial",Georgia:"Georgia",Tahoma:"Tahoma",TimesNewRoman:"Times New Roman",Verdana:"Verdana"},kpe=t=>({fontSize:t.fontSize+"px",lineHeight:t.lineHeight+"px",fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:Sp[t.fontFamily],textDecoration:t.textDecoration,color:t.color}),Fpe=t=>{const e=n=>({fontSize:n.FontSize,lineHeight:n.LineHeight,fontWeight:n.IsBold?"bold":"normal",fontStyle:n.IsItalic?"italic":"normal",fontFamily:t.fontFamily,textDecoration:xpe({textDecoration:n.Decoration}),color:d9e({fontStyleColor:t.fontStyle.FontColor,fontStyle:t.fontStyle,themeColors:t.themeColors})});return Tpe(t.fontStyle).Match({Heading:()=>e(t.themeDefinedFontSettings.Heading),Title:()=>e(t.themeDefinedFontSettings.Title),SubHeading:()=>e(t.themeDefinedFontSettings.SubHeading),LargeText:()=>e(t.themeDefinedFontSettings.LargeText),NormalText:()=>e(t.themeDefinedFontSettings.NormalText),DescriptionText:()=>e(t.themeDefinedFontSettings.DescriptionText),Link:()=>e(t.themeDefinedFontSettings.Link),Button:()=>e(t.themeDefinedFontSettings.Button),Custom:n=>u9e({customFontSettings:n,themeColors:t.themeColors})})},h9e=t=>({Match:e=>{switch(t.Discriminator){case"Theme":return e.Theme();case"Custom":return e.Custom(t.CustomValue);default:return Zc(t.Discriminator)}}}),aVt=t=>h9e(t.buttonPaddings).Match({Theme:()=>({TopBottom:t.themeButtonPaddings.TopBottom,LeftRight:t.themeButtonPaddings.LeftRight}),Custom:e=>({TopBottom:e.TopBottom,LeftRight:e.LeftRight})}),p9e=t=>t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),lVt=["align"],cVt={class:"Button"},uVt=["href"],dVt=re({__name:"ButtonVue",props:{deps:{},theme:{},element:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,o=ne(()=>kpe(Fpe({fontFamily:n.theme.FontFamily,fontStyle:n.element.TextStyle,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors}))),r=ne(()=>W6({borderColor:n.element.Border.Left.Color,themeColors:n.theme.Colors})),i=ne(()=>aVt({buttonPaddings:n.element.Paddings,themeButtonPaddings:n.theme.ButtonPaddings})),s=ne(()=>lc({color:n.element.BackgroundColor,themeColors:n.theme.Colors})),a=ne(()=>{switch(n.element.ContentAlign){case"Center":return"center";case"Left":return"left";case"Right":return"right";default:return"center"}}),l=Le({href:"",text:"",isLoading:!0}),c=n.deps.stringExpressionEvaluator,u=()=>{Promise.all([c({stringExpression:n.element.HRef,context:n.context}),c({stringExpression:n.element.Text,context:n.context})]).then(([h,p])=>{l.href=h,l.text=p9e(p),l.isLoading=!1})};u(),on(()=>[n.element.HRef,n.element.Text,n.context],()=>u());const d=e;return(h,p)=>(E(),R("table",{style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"},onClick:p[1]||(p[1]=Nt(m=>d("onElementClicked"),["prevent"]))},[b("tbody",null,[b("tr",null,[b("td",{align:a.value},[b("div",cVt,[b("a",{style:Te([{display:"block","text-decoration":"none"},[o.value]]),href:l.href,onClick:p[0]||(p[0]=Nt(()=>{},["prevent"]))},[b("table",{style:Te([[{backgroundColor:s.value},N(zp)({borderRadius:n.element.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{width:n.element.FullWidth?"100%":"auto"},N(cg)({border:n.element.Border,themeColors:t.theme.Colors}),{borderColor:r.value}],{"text-align":"center","border-spacing":"0","border-collapse":"separate"}])},[b("tbody",null,[b("tr",null,[b("td",{align:"center",style:Te([{"line-height":"normal"},[{paddingTop:i.value.TopBottom+"px",paddingBottom:i.value.TopBottom+"px",paddingLeft:i.value.LeftRight+"px",paddingRight:i.value.LeftRight+"px"}]])},[Ke(b("p",{class:"user-select-none",style:Te([o.value])},null,4),[[N(iH),l.text]])],4)])])],4)],12,uVt)])],8,lVt)])])]))}}),hVt=ve(dVt,[["__scopeId","data-v-0c0a0e61"]]),pVt=["href"],mVt=re({__name:"SpanText",props:{deps:{},theme:{},element:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,o=n.deps.stringExpressionEvaluator,r=ne(()=>{const l=Fpe({fontFamily:n.theme.FontFamily,fontStyle:n.element.Style,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors});if(n.element.Style.Discriminator==="Custom"){const c=u9e({customFontSettings:n.element.Style.CustomFontSettings,themeColors:n.theme.Colors});return{...c,fontSize:c.fontSize+"px",lineHeight:c.lineHeight+"px",minHeight:n.element.MinNumberOfLines*l.lineHeight+"px"}}return{minHeight:n.element.MinNumberOfLines*l.lineHeight+"px",color:l.color}}),i=Le({href:"",text:"",isLoading:!0}),s=()=>{Promise.all([o({stringExpression:n.element.HRef,context:n.context}),o({stringExpression:n.element.Text,context:n.context})]).then(([l,c])=>{i.href=l,i.text=p9e(c),i.isLoading=!1})};s(),on(()=>[n.context,n.element.HRef,n.element.Text],()=>s());const a=e;return(l,c)=>n.element.IsLink?Ke((E(),R("a",{key:0,href:i.href,class:G(["SpanText cursor-pointer user-select-none",n.element.Style.Discriminator]),style:Te([{margin:"0"},[r.value,N(oI)({contentAlign:n.element.ContentAlign})]]),onClick:c[0]||(c[0]=Nt(()=>a("onElementClicked"),["prevent"]))},null,14,pVt)),[[N(iH),i.text]]):Ke((E(),R("span",{key:1,class:G(["SpanText cursor-pointer user-select-none",n.element.Style.Discriminator]),style:Te([{margin:"0"},[r.value,N(oI)({contentAlign:n.element.ContentAlign})]]),onClick:c[1]||(c[1]=Nt(()=>a("onElementClicked"),["prevent"]))},null,6)),[[N(iH),i.text]])}}),fVt=ve(mVt,[["__scopeId","data-v-44b3ff94"]]),Hl=t=>({fontSize:t.themeFontSettings.FontSize,lineHeight:t.themeFontSettings.LineHeight,fontWeight:t.themeFontSettings.IsBold?"bold":"normal",fontStyle:t.themeFontSettings.IsItalic?"italic":"normal",fontFamily:t.fontFamily,textDecoration:xpe({textDecoration:t.themeFontSettings.Decoration}),color:t.themeColor}),gVt={cancelButton:"Cancel",applyButton:"Delete"},yVt={cancelButton:"Отмена",applyButton:"Удалить"},hke=ht({en:gVt,ru:yVt}),CVt={class:"bootstrap-styles px-11 py-7 text-start"},Ch=re({__name:"RemoveConfirmModalWindow",props:{headerText:{},deps:{}},emits:["cancel","confirmed"],setup(t,{emit:e}){const n=t,o=()=>{i("cancel")},r={cancelButton:hke({localeKey:n.deps.localeKey}).cancelButton,applyButton:hke({localeKey:n.deps.localeKey}).applyButton},i=e;return(s,a)=>(E(),Q(bd,{headerText:n.headerText,class:"remove-element-confirm-modal-window",onClose:a[2]||(a[2]=()=>o())},{body:Bt(()=>[b("div",CVt,[Mp(s.$slots,"body-content")])]),"footer-actions":Bt(()=>[b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:a[0]||(a[0]=Nt(l=>o(),["stop"]))},W(r.cancelButton),1),b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white cursor-pointer remove-element-confirm__button",onClick:a[1]||(a[1]=Nt(l=>i("confirmed"),["stop"]))},W(r.applyButton),1)]),_:3},8,["headerText"]))}}),bVt={removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the text element?"},vVt={removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент ?"},pke=ht({en:bVt,ru:vVt}),mke=t=>({type:"doc",content:t.Content.map(wVt)}),wVt=t=>"ParagraphNode"in t?g9e(t):"BulletListNode"in t?SVt(t):"OrderedListNode"in t?xVt(t):"DataFieldNode"in t?f9e(t):Zc(t),m9e=t=>({type:"listItem",content:t.Content.map(e=>"ParagraphNode"in e?g9e(e):"ImageNode"in e?y9e(e):Zc(e))}),f9e=t=>({type:"dataField",marks:Epe({textStyle:t.DataFieldNode.TextStyle,commonLinkMark:t.DataFieldNode.CommonLinkMark}),attrs:{stringExpression:t.DataFieldNode.StringExpression}}),SVt=t=>({type:"bulletList",content:t.BulletListNode.Content.map(m9e),attrs:{themeName:t.BulletListNode.ListStyle}}),xVt=t=>({type:"orderedList",content:t.OrderedListNode.Content.map(m9e),attrs:{themeName:t.OrderedListNode.ListStyle}}),g9e=t=>{const e=t.ParagraphNode.Content[0],n=t.ParagraphNode.Content.length===1&&e!==void 0&&"HardBreakNode"in e;return{type:"paragraph",attrs:{themeName:t.ParagraphNode.ThemeName,contentAlign:t.ParagraphNode.ContentAlign},content:n?[]:t.ParagraphNode.Content.map(TVt)}},TVt=t=>"TextNode"in t?kVt(t):"HardBreakNode"in t?DVt():"ImageNode"in t?y9e(t):"DataFieldNode"in t?f9e(t):Zc(t),Epe=t=>{const e=[];return t.textStyle&&e.push(AVt(t.textStyle)),t.commonLinkMark&&e.push(RVt(t.commonLinkMark)),e.filter(n=>n!==void 0)},kVt=t=>({type:"text",text:t.TextNode.Text,marks:Epe({textStyle:t.TextNode.TextStyle,commonLinkMark:t.TextNode.CommonLinkMark})}),FVt=t=>{switch(t){case"Normal":return"normal";case"Bold":return"bold";default:return"normal"}},EVt=t=>{switch(t){case"Normal":return"normal";case"Italic":return"italic";default:return"normal"}},LVt=t=>{switch(t){case"None":return"none";case"Uppercase":return"uppercase";default:return"none"}},_Vt=t=>{switch(t){case"None":return"none";case"Underline":return"underline";case"LineThrough":return"line-through";default:return"none"}},AVt=t=>({type:"textStyle",attrs:{themeName:t.ThemeName,color:t.Style.Color,fontWeight:t.Style.FontWeight?FVt(t.Style.FontWeight):void 0,fontStyle:t.Style.FontStyle?EVt(t.Style.FontStyle):void 0,fontSize:t.Style.FontSize?t.Style.FontSize+"px":void 0,lineHeight:t.Style.LineHeight?t.Style.LineHeight+"px":void 0,fontFamily:t.Style.FontFamily,textTransform:t.Style.TextTransform?LVt(t.Style.TextTransform):void 0,textDecoration:t.Style.TextDecoration?_Vt(t.Style.TextDecoration):void 0}}),RVt=t=>hs(t).Match({LinkMark:e=>BVt({LinkMark:e}),UnsubscribeLinkMark:()=>NVt()}),DVt=()=>({type:"hardBreak"}),y9e=t=>({type:"image",attrs:{src:t.ImageNode.Src,alt:t.ImageNode.Alt,isRetina:t.ImageNode.IsRetina,width:t.ImageNode.Width,height:t.ImageNode.Height},marks:Epe({commonLinkMark:t.ImageNode.CommonLinkMark})}),BVt=t=>({type:"link",attrs:{href:t.LinkMark.Href}}),NVt=()=>({type:"unsubscribeLink"}),C9e=cm.create({name:"textTransform",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textTransform:{default:"none",parseHTML:t=>t.style.textTransform,renderHTML:t=>t.textTransform?{style:`text-transform: ${t.textTransform}`}:{}}}}]},addCommands(){return{setTextTransform:t=>({chain:e})=>e().setMark("textStyle",{textTransform:t}).run(),unsetTextTransform:()=>({chain:t,state:e})=>{const{from:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").length?t().setMark("textStyle",{textTransform:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textTransform:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=e=>e.isUppercase?this.editor.commands.unsetTextTransform():this.editor.commands.setTextTransform("uppercase");return{"Mod-Shift-u":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})},"Mod-Shift-U":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})}}}}),IVt=cm.create({name:"fontSize",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:t=>t.style.fontSize.replace(/['"]+/g,""),renderHTML:t=>t.fontSize?{style:`font-size: ${t.fontSize}`}:{}}}}]},addCommands(){return{setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t+"px"}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}}),MVt=cm.create({name:"lineHeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:null,parseHTML:t=>t.style.lineHeight.replace(/['"]+/g,""),renderHTML:t=>t.lineHeight?{style:`line-height: ${t.lineHeight}`}:{}}}}]},addCommands(){return{setLineHeight:t=>({chain:e})=>e().setMark("textStyle",{lineHeight:t+"px"}).run(),resetLineHeight:()=>({chain:t})=>t().setMark("textStyle",{lineHeight:null}).run()}}}),$Vt=t=>fo.create({name:"themeFontStyles",priority:1e3,addOptions(){return{types:["textStyle","bulletList","orderedList","paragraph"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{themeName:{default:t,parseHTML:e=>e.getAttribute("data-theme"),renderHTML:e=>e.themeName?{"data-theme":e.themeName,class:e.themeName}:{"data-theme":t,class:e.themeName}}}}]},addCommands(){return{setThemeSettings:e=>({chain:n,state:o})=>{const{$from:r}=o.selection,i=r.parent,s=r.index();return i.child(s).type.name==="image"?!1:n().setMark("textStyle",{themeName:e}).run()},applySiblingNodeThemeSettings:()=>({chain:e,state:n})=>{const{from:o,to:r,$from:i}=n.selection,s=i.parent,a=i.index(),l=i.node(i.depth)?.type.name==="dataField"||s.maybeChild(a)?.type.name==="dataField",c=s.child(a).type.name==="image",u=m=>{const f="NormalText",g=m.index>0?s.child(m.index-1):void 0,C=m.index+1<s.childCount?s.child(m.index+1):void 0,v=g??C;if(v){const w=v.marks.find(S=>S.type.name==="textStyle");if(w)return w.attrs.themeName}return f};if(l){const m=u({index:a});return e().unsetMark("textStyle",{extendEmptyMarkRange:!0}).setThemeSettings(m).run()}if(c)return!1;const d=u({index:a}),h=i.nodeBefore?i.pos-i.nodeBefore.nodeSize:o,p=i.nodeAfter?i.pos+i.nodeAfter.nodeSize:r;return e().setTextSelection({from:h,to:p}).setThemeSettings(d).run()}}},addProseMirrorPlugins(){return[new pr({key:new ri("syncBlockTheme"),appendTransaction:(e,n,o)=>{const r=o.tr;let i=!1;return o.doc.descendants((s,a)=>{if(s.type.name==="bulletList"||s.type.name==="orderedList"){const l=s.firstChild?.firstChild?.firstChild;if(l){const c=l.marks.find(u=>u.type.name==="textStyle")?.attrs.themeName;c&&s.attrs.themeName!==c&&(r.setNodeMarkup(a,void 0,{...s.attrs,themeName:c}),i=!0)}}if(s.type.name==="paragraph"){const l=s.firstChild;if(l){const c=l.marks.find(u=>u.type.name==="textStyle")?.attrs.themeName;c&&s.attrs.themeName!==c&&(r.setNodeMarkup(a,void 0,{...s.attrs,themeName:c}),i=!0)}}}),i?r:null}})]}}),OVt=cm.create({name:"fontWeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontWeight:{default:null,parseHTML:t=>t.style.fontWeight,renderHTML:t=>t.fontWeight?{style:`font-weight: ${t.fontWeight}`}:{}}}}]},addCommands(){return{setFontWeight:t=>({chain:e})=>e().setMark("textStyle",{fontWeight:t}).run(),unsetFontWeight:()=>({chain:t,state:e})=>{const{from:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").length?t().setMark("textStyle",{fontWeight:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontWeight:"normal"}).focus().run()},resetFontWeight:()=>({chain:t})=>t().setMark("textStyle",{fontWeight:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isBold?this.editor.commands.unsetFontWeight():this.editor.commands.setFontWeight("bold");return{"Mod-b":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})},"Mod-B":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})}}}}),PVt=cm.create({name:"fontStyle",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontStyle:{default:null,parseHTML:t=>t.style.fontStyle,renderHTML:t=>t.fontStyle?{style:`font-style: ${t.fontStyle}`}:{}}}}]},addCommands(){return{setFontStyle:t=>({chain:e})=>e().setMark("textStyle",{fontStyle:t}).run(),unsetFontStyle:()=>({chain:t,state:e})=>{const{from:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").length?t().setMark("textStyle",{fontStyle:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontStyle:"normal"}).focus().run()},resetFontStyle:()=>({chain:t})=>t().setMark("textStyle",{fontStyle:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isItalic?this.editor.commands.unsetFontStyle():this.editor.commands.setFontStyle("italic");return{"Mod-i":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})},"Mod-I":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})}}}}),Lpe=cm.create({name:"unsubscribeLink",priority:1e3,addOptions(){return{HTMLAttributes:{"data-type":"unsubscribe-link",class:"rich-text__unsubscribe-link"}}},parseHTML(){return[{tag:'span[data-type="unsubscribe-link"]'}]},renderHTML({HTMLAttributes:t}){return["span",Da(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnsubscribeLink:()=>({chain:t})=>t().setMark("unsubscribeLink").focus().run(),unsetUnsubscribeLink:()=>({chain:t,state:e})=>{const{from:n,to:o}=e.selection,r=e.doc.textBetween(n,o," ");return e.doc.nodeAt(n)?.type.name==="image"?t().unsetMark("unsubscribeLink").focus().run():r.length?t().setTextSelection({from:n,to:n+r.length}).unsetMark("unsubscribeLink").focus().run():t().unsetMark("unsubscribeLink",{extendEmptyMarkRange:!0}).focus().run()}}}}),VVt=cm.create({name:"textDecoration",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textDecoration:{parseHTML:t=>t.style.textDecoration,renderHTML:t=>t.textDecoration?{style:`text-decoration: ${t.textDecoration}`}:{}}}}]},addCommands(){return{setTextDecoration:t=>({chain:e})=>e().setMark("textStyle",{textDecoration:t}).run(),unsetTextDecoration:()=>({chain:t,state:e})=>{const{from:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").length?t().setMark("textStyle",{textDecoration:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textDecoration:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=n=>n.isUnderline?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("underline"),e=n=>n.isLineThrough?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("line-through");return{"Mod-Shift-s":()=>{const n=this.editor.isActive("textStyle",{textDecoration:"line-through"});return e({isLineThrough:n})},"Mod-u":()=>{const n=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:n})},"Mod-U":()=>{const n=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:n})}}}}),WVt=t=>{if(!t.content)throw new Error("Invalid document: content is missing");return{Content:t.content.map(e=>{switch(e.type){case"paragraph":return b9e(e);case"bulletList":return jVt(e);case"orderedList":return KVt(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}},b9e=t=>t.content?{ParagraphNode:{ThemeName:t.attrs?t.attrs.themeName:void 0,ContentAlign:t.attrs?t.attrs.contentAlign:void 0,Content:t.content.map(e=>{switch(e.type){case"text":return HVt(e);case"image":return w9e(e);case"hardBreak":return fke();case"dataField":return zVt(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}}:{ParagraphNode:{ThemeName:t.attrs?t.attrs.themeName:void 0,ContentAlign:t.attrs?t.attrs.contentAlign:void 0,Content:[fke()]}},_pe=t=>{const e=t?t.find(o=>o.type==="textStyle"):void 0,n=t?t.find(o=>o.type==="link"||o.type==="unsubscribeLink"):void 0;return{TextStyle:e?ZVt(e):void 0,CommonLinkMark:n?XVt(n):void 0}},HVt=t=>{if(typeof t.text!="string")throw new Error("Invalid text node: text is missing or not a string");const{TextStyle:e,CommonLinkMark:n}=_pe(t.marks);return{TextNode:{Text:t.text,TextStyle:e,CommonLinkMark:n}}},fke=()=>({HardBreakNode:{}}),zVt=t=>{if(!t.attrs)throw new Error("Invalid variable node: attrs is missing");const{TextStyle:e,CommonLinkMark:n}=_pe(t.marks);return{DataFieldNode:{StringExpression:t.attrs.stringExpression,TextStyle:e,CommonLinkMark:n}}},jVt=t=>{if(!t.content)throw new Error("Invalid bulletList: content is missing");return{BulletListNode:{ListStyle:t.attrs?t.attrs.themeName:void 0,Content:t.content.map(v9e)}}},KVt=t=>{if(!t.content)throw new Error("Invalid orderedList: content is missing");return{OrderedListNode:{ListStyle:t.attrs?t.attrs.themeName:void 0,Content:t.content.map(v9e)}}},v9e=t=>{if(!t.content)throw new Error("Invalid listItem: content is missing");return{Content:t.content.map(e=>{switch(e.type){case"paragraph":return b9e(e);case"image":return w9e(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}},w9e=t=>{if(!t.attrs)throw new Error("Invalid image node: attrs is missing");const{CommonLinkMark:e}=_pe(t.marks);return{ImageNode:{Src:t.attrs.src,Alt:t.attrs.alt,Width:t.attrs.width,Height:t.attrs.height,IsRetina:t.attrs.isRetina,CommonLinkMark:e}}},UVt=t=>t==="bold"?"Bold":"Normal",qVt=t=>t==="italic"?"Italic":"Normal",JVt=t=>t,GVt=t=>{switch(t){case"uppercase":return"Uppercase";default:return"None"}},YVt=t=>{switch(t){case"underline":return"Underline";case"line-through":return"LineThrough";default:return"None"}},gke=t=>{const e=t.replace(/px$/,"");return parseInt(e,10)},ZVt=t=>{if(!t.attrs)throw new Error("Invalid textStyle mark: attrs is missing");return{ThemeName:t.attrs.themeName,Style:{Color:t.attrs.color?t.attrs.color:void 0,FontWeight:t.attrs.fontWeight?UVt(t.attrs.fontWeight):void 0,FontStyle:t.attrs.fontStyle?qVt(t.attrs.fontStyle):void 0,FontSize:t.attrs.fontSize?gke(t.attrs.fontSize):void 0,LineHeight:t.attrs.lineHeight?gke(t.attrs.lineHeight):void 0,FontFamily:t.attrs.fontFamily?JVt(t.attrs.fontFamily):void 0,TextTransform:t.attrs.textTransform?GVt(t.attrs.textTransform):void 0,TextDecoration:t.attrs.textDecoration?YVt(t.attrs.textDecoration):void 0}}},XVt=t=>{switch(t.type){case"link":{if(!t.attrs)throw new Error("Invalid link mark: attrs.href is missing");return{LinkMark:{Href:t.attrs.href}}}case"unsubscribeLink":return{UnsubscribeLinkMark:{}};default:return}},S9e=t=>{if(!t)return null;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(t))return t;if(t.startsWith("rgb")){const n=t.replace(/[^\d,.]/g,"").split(","),o=n[0]?parseInt(n[0]):0,r=n[1]?parseInt(n[1]):0,i=n[2]?parseInt(n[2]):0;return`#${(1<<24|o<<16|r<<8|i).toString(16).slice(1)}`}if(t.startsWith("hsl")){const n=document.createElement("div");n.style.color=t,document.body.appendChild(n);const o=getComputedStyle(n).color;return document.body.removeChild(n),S9e(o)}const e=document.createElement("canvas").getContext("2d");return e?(e.fillStyle=t,e.fillStyle):null},QVt=t=>fo.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:e=>{const n=e.getAttribute("data-theme-color")??"Custom",o=S9e(e.style.color)??"#000000";return{Discriminator:n,CustomValue:o}},renderHTML:e=>{if(!e.color)return{};const n=a$({fontColor:e.color,themeColors:t.themeColors});return e.color.Discriminator==="Custom"?{"data-theme-color":e.color.Discriminator,style:`color: ${n}`}:{"data-theme-color":e.color.Discriminator}}}}}]},addCommands(){return{setColor:e=>({chain:n})=>n().setMark("textStyle",{color:e}).run(),unsetColor:()=>({chain:e})=>e().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),e6t=fo.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>{const e=t.style.fontFamily.split(",").map(n=>n.trim()).map(n=>n.replace(/^['"]|['"]$/g,"")).map(n=>n.replace(/ /g,""));return DU.find(n=>e.includes(n))||null},renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}}),x9e=t=>hs(t),t6t=t=>gh.create({name:"dataField",group:"inline",marks:"_",inline:!0,atom:!0,selectable:!0,addAttributes:()=>({stringExpression:{default:null,parseHTML:e=>JSON.parse(e.getAttribute("data-field")),renderHTML:e=>({"data-field":JSON.stringify(e.stringExpression)})}}),parseHTML:()=>[{tag:"data-field[data-field]"}],renderHTML:({node:e,HTMLAttributes:n})=>{const o=e.attrs.stringExpression,r=x9e(o).Match({ContextValueExpression:()=>"contextValue",ContextValueExpressionWithFallback:()=>"contextValueWithFallback",ConstValueExpression:i=>i.Value,TruncateValueExpression:()=>"truncate",ConcatStringExpressions:()=>"concat",NumberToStringExpression:()=>"numberToString",DataSource:i=>t.dataSourceFieldNameDelegate({dataSource:i}),UnsubscribeUrlExpression:()=>"unsubscribeUrl",RecipientEmailAddressExpression:()=>"recipientEmailAddress"});return["data-field",Da(n,{class:"rich-text__variable","data-field":JSON.stringify(e.attrs.stringExpression),contenteditable:"false"}),r]},addCommands(){return{setVariable:e=>({chain:n,state:o})=>{const r=o.selection.$from.marks(),i=r.map(s=>({type:s.type.name,attrs:s.attrs}));return n().insertContent({type:this.name,attrs:{stringExpression:e,selectedMarks:r},marks:i}).focus().run()}}}}),T9e=t=>new Promise((e,n)=>{const o=new Image;o.onload=()=>{e({width:o.naturalWidth,height:o.naturalHeight})},o.onerror=n,o.src=t}),k9e=gh.create({name:"image",addOptions(){return{inline:!0,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},width:{default:null},height:{default:null},isRetina:{default:!1}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",Da(this.options.HTMLAttributes,{src:t.src,alt:t.alt,title:t.title,width:t.isRetina?t.width/2:t.width,height:t.isRetina?t.height/2:t.height,isRetina:t.isRetina})]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[ZAt({find:/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,type:this.type,getAttributes:t=>{const[,,e,n,o]=t;return{src:n,alt:e,title:o}}})]},addProseMirrorPlugins(){return[new pr({view:t=>((async()=>{const{state:e,dispatch:n}=t;e.doc.descendants((o,r)=>{if(o.type.name===this.name){const{src:i,width:s,height:a}=o.attrs;i&&(!s||!a)&&T9e(i).then(l=>{const c=e.tr.setNodeMarkup(r,void 0,{...o.attrs,width:l.width,height:l.height});n(c)})}})})(),{})})]}}),n6t=t=>fo.create({name:"paragraphContentAlign",addOptions(){return{defaultContentAlign:"Left"}},addGlobalAttributes(){return[{types:["paragraph"],attributes:{contentAlign:{default:t.fallbackContentAlign,parseHTML:e=>{const n=e.style.textAlign;return n===""?t.fallbackContentAlign:n==="left"?"Left":n==="center"?"Center":n==="right"?"Right":t.fallbackContentAlign},renderHTML:e=>{const n=e.contentAlign||this.options.defaultContentAlign||"Left";return{style:`text-align: ${{Left:"left",Center:"center",Right:"right"}[n]}`}}}}}]},addCommands(){return{setParagraphContentAlign:e=>({state:n,tr:o})=>{const{$from:r}=n.selection,i=r.parent;if(i.type.name!=="paragraph")return!1;const s=r.before(r.depth);return o.setNodeMarkup(s,void 0,{...i.attrs,contentAlign:e}),!0}}}}),o6t=t=>[ORt,TDt,$Rt,yU.configure({mergeNestedSpanStyles:!0}),cDt,t6t({dataSourceFieldNameDelegate:t.dataSourceFieldNameDelegate}),MRt.configure({className:"has-focus",mode:"all"}),zhe.configure({keepMarks:!0,keepAttributes:!0}),Khe.configure({keepMarks:!0,keepAttributes:!0}),n7e,xDt.configure({HTMLAttributes:{class:"hard-break"}}),Hhe.configure({HTMLAttributes:{class:"rich-text__link"},openOnClick:!1}),k9e.configure({inline:!0,HTMLAttributes:{class:"rich-text__image"}}),QVt({themeColors:t.themeColors}),$Vt(t.initialThemeName),OVt,PVt,IVt,MVt,C9e,VVt,Lpe,e6t,n6t({fallbackContentAlign:t.fallbackContentAlign})],r6t=t=>WVt(t.editor.getJSON()),ug=re({__name:"SelectItemColor",props:{isActive:{type:Boolean},color:{},label:{}},emits:["click"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("li",{class:G(["bootstrap-styles dropdown-item p-0 user-select-none",{active:n.isActive}])},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer d-flex align-items-center justify-content-start",onClick:i[0]||(i[0]=s=>o("click"))},[b("i",{class:"bootstrap-styles input__color_selection d-block overflow-hidden me-2",style:Te([{border:"1px solid rgba(0, 0, 0, 0.10)"},[{background:n.color}]])},null,4),no(" "+W(n.label),1)])],2))}}),i6t={colorLabels:{none:"None",styleLinkedColor:"Link to style",emailBackgroundColor:"Email background",bodyColor:"Email body",primaryColor:"Primary color",secondaryColor:"Secondary color",primaryTextColor:"Primary text",secondaryTextColor:"Secondary text",cardBackgroundColor:"Product card color",buttonTextColor:"Buttons",titleColor:"Title",headingColor:"Heading",subHeadingColor:"Subheading",largeTextColor:"Large text",normalTextColor:"Text",descriptionTextColor:"Description",linkColor:"Link",custom:"Custom"}},s6t={colorLabels:{none:"Нет",styleLinkedColor:"Связать со стилем",emailBackgroundColor:"Фон письма",bodyColor:"Тело письма",primaryColor:"Основной цвет",secondaryColor:"Вторичный цвет",primaryTextColor:"Текст на основном цвете",secondaryTextColor:"Текст на вторичном цвете",cardBackgroundColor:"Цвет карточек товара",buttonTextColor:"Кнопки",titleColor:"Большой заголовок",headingColor:"Заголовок",subHeadingColor:"Подзаголовок",largeTextColor:"Большой текст",normalTextColor:"Текст",descriptionTextColor:"Описание",linkColor:"Ссылка",custom:"Пользовательский"}},a6t=ht({en:i6t,ru:s6t}),F9e=t=>({Match:e=>{switch(t){case"Heading":return e.whenHeading();case"Title":return e.whenTitle();case"SubHeading":return e.whenSubHeading();case"LargeText":return e.whenLargeText();case"NormalText":return e.whenNormalText();case"DescriptionText":return e.whenDescriptionText();case"Link":return e.whenLink();case"Button":return e.whenButton();default:return Zc(t)}}}),BU=t=>F9e(t.themeName).Match({whenHeading:()=>t.themeFontColors.HeadingColor,whenTitle:()=>t.themeFontColors.TitleColor,whenSubHeading:()=>t.themeFontColors.SubHeadingColor,whenLargeText:()=>t.themeFontColors.LargeTextColor,whenNormalText:()=>t.themeFontColors.NormalTextColor,whenDescriptionText:()=>t.themeFontColors.DescriptionTextColor,whenLink:()=>t.themeFontColors.LinkColor,whenButton:()=>t.themeFontColors.ButtonTextColor}),l$=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:o}=t.theme,r=!!t.editor.getAttributes("textStyle")[t.styleName],i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;if(r)return t.editor.getAttributes("textStyle")[t.styleName];const a=Hl({fontFamily:e,themeFontSettings:n[s],themeColor:BU({themeName:s,themeFontColors:o})});return String(a[t.styleName])},E9e=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:o}=t.theme,r=!!t.editor.getAttributes("textStyle").color,i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;if(r)return t.editor.getAttributes("textStyle").color;const a=Hl({fontFamily:e,themeFontSettings:n[s],themeColor:BU({themeName:s,themeFontColors:o})});return{Discriminator:F9e(s).Match({whenHeading:()=>"HeadingColor",whenTitle:()=>"TitleColor",whenSubHeading:()=>"SubHeadingColor",whenLargeText:()=>"LargeTextColor",whenNormalText:()=>"NormalTextColor",whenDescriptionText:()=>"DescriptionTextColor",whenLink:()=>"LinkColor",whenButton:()=>"ButtonTextColor"}),CustomValue:a.color}},l6t={class:"color-picker bootstrap-styles border rounded bg-white"},c6t={class:"bootstrap-styles mb-5 bg-white"},u6t=["value"],d6t=["value"],h6t=re({__name:"ColorPickerModalWindow",props:{editor:{},theme:{},deps:{}},emits:["onColorChanged","onColorPickerClosed"],setup(t,{emit:e}){Cd(h=>({v7ba43684:i.color}));const n=t,o={colorLabels:a6t({localeKey:n.deps.localeKey}).colorLabels},r=ne(()=>a$({fontColor:E9e({editor:n.editor,theme:n.theme}),themeColors:n.theme.Colors})),i=Le({color:r.value,isValidHexColor:!0}),s={StyleLinkedColor:o.colorLabels.styleLinkedColor,EmailBackgroundColor:o.colorLabels.emailBackgroundColor,BodyColor:o.colorLabels.bodyColor,PrimaryColor:o.colorLabels.primaryColor,SecondaryColor:o.colorLabels.secondaryColor,PrimaryTextColor:o.colorLabels.primaryTextColor,SecondaryTextColor:o.colorLabels.secondaryTextColor,CardBackgroundColor:o.colorLabels.cardBackgroundColor,ButtonTextColor:o.colorLabels.buttonTextColor,TitleColor:o.colorLabels.titleColor,HeadingColor:o.colorLabels.headingColor,SubHeadingColor:o.colorLabels.subHeadingColor,LargeTextColor:o.colorLabels.largeTextColor,NormalTextColor:o.colorLabels.normalTextColor,DescriptionTextColor:o.colorLabels.descriptionTextColor,LinkColor:o.colorLabels.linkColor,Custom:o.colorLabels.custom},a=["EmailBackgroundColor","BodyColor","PrimaryColor","SecondaryColor","PrimaryTextColor","SecondaryTextColor","ButtonTextColor","TitleColor","HeadingColor","SubHeadingColor","LargeTextColor","NormalTextColor","DescriptionTextColor","LinkColor"],l=UWe(h=>{d("onColorChanged",{Discriminator:"Custom",CustomValue:h})},100,{leading:!1,trailing:!0}),c=h=>/^#([0-9A-Fa-f]{6})$/.test(h.trim()),u=h=>{i.isValidHexColor=c(h),i.color=h,c(h)&&d("onColorChanged",{Discriminator:"Custom",CustomValue:h})};on(()=>r.value,h=>{i.color=h,i.isValidHexColor=c(h)});const d=e;return(h,p)=>Ke((E(),R("div",null,[b("ul",l6t,[b("li",c6t,[I(N(zBt),{modelValue:r.value,width:220,canvasHeight:220,hideInputs:!0,hideSliders:!1,mode:"hex","onUpdate:modelValue":p[0]||(p[0]=m=>N(l)(m))},null,8,["modelValue"]),b("div",{class:G(["bootstrap-styles border mx-1 bg-color-input rounded-2 d-flex justify-content-between p-14",{"is-not-valid":!i.isValidHexColor}])},[b("input",{type:"color",class:"bootstrap-styles pe-none",style:{border:"1px solid rgba(0, 0, 0, 0.1)",cursor:"default"},value:r.value},null,8,u6t),b("input",{type:"text",class:"bootstrap-styles w-100 text-uppercase ps-1",value:i.color,placeholder:"#000000",onInput:p[1]||(p[1]=m=>u(m.target.value))},null,40,d6t)],2)]),(E(),R(Se,null,At(a,m=>I(ug,{key:m,isActive:r.value===n.theme.Colors[m],color:n.theme.Colors[m],label:s[m],onClick:()=>{d("onColorChanged",{Discriminator:m,CustomValue:n.theme.Colors[m]}),d("onColorPickerClosed")}},null,8,["isActive","color","label","onClick"])),64))])])),[[N(Lg),()=>d("onColorPickerClosed")]])}}),p6t=ve(h6t,[["__scopeId","data-v-0519b5d6"]]),m6t={tooltip:"Text color"},f6t={tooltip:"Цвет текста"},g6t=ht({en:m6t,ru:f6t}),y6t=["value"],C6t=re({__name:"ColorPicker",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:g6t({localeKey:e.deps.localeKey}).tooltip},o=Le({isColorPickerDropdownShown:!1}),r=Rt(),i=Rt(),{floatingStyles:s}=zF(i,r,{whileElementsMounted:WF,placement:"bottom",middleware:[HF(({rects:l})=>({alignmentAxis:-l.floating.width/2-l.floating.width/2,mainAxis:15}))]}),a=ne(()=>a$({fontColor:E9e({editor:e.editor,theme:e.theme}),themeColors:e.theme.Colors}));return(l,c)=>(E(),R(Se,null,[Ke((E(),R("button",{ref_key:"richTextColorPickerBtn",ref:i,class:G(["bootstrap-styles border rich-text-color__input rich-text__handler",{disabled:!t.isAllowToEdit}]),value:a.value,onClick:c[0]||(c[0]=()=>o.isColorPickerDropdownShown=!o.isColorPickerDropdownShown)},[b("i",{style:Te([{display:"block",width:"100%",height:"100%"},{backgroundColor:a.value}])},null,4)],10,y6t)),[[N(Xn),{title:n.tooltip,placement:"top"}]]),o.isColorPickerDropdownShown?(E(),Q(p6t,{key:0,ref_key:"richTextColorPicker",ref:r,theme:e.theme,editor:e.editor,deps:e.deps.colorPickerModalWindowDeps,style:Te(N(s)),onOnColorChanged:c[1]||(c[1]=u=>{e.editor.commands.setColor(u)}),onOnColorPickerClosed:c[2]||(c[2]=()=>{o.isColorPickerDropdownShown=!1,e.editor.commands.focus()})},null,8,["theme","editor","deps","style"])):oe("",!0)],64))}}),b6t=ve(C6t,[["__scopeId","data-v-6624477a"]]),v6t={},w6t={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function S6t(t,e){return E(),R("svg",w6t,[...e[0]||(e[0]=[b("path",{d:"M8.00033 10.0002L5.17188 7.17184L6.11469 6.229L8.00033 8.11464L9.88593 6.229L10.8287 7.17184L8.00033 10.0002Z",fill:"var(--gray-500)"},null,-1)])])}const Si=ve(v6t,[["render",S6t]]),x6t={tooltip:"Font family"},T6t={tooltip:"Шрифт"},k6t=ht({en:x6t,ru:T6t}),F6t={class:"bootstrap-styles dropdown"},E6t={class:"bootstrap-styles me-14 overflow-hidden rich-text-toolbar__font-family-btn__text"},L6t={class:"bootstrap-styles d-flex justify-content-center align-items-center"},_6t=["onClick"],A6t=re({__name:"FontFamilySelector",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:k6t({localeKey:e.deps.localeKey}).tooltip},o=yU.name,r=Le({isOpened:!1}),i=ne(()=>l$({editor:e.editor,theme:e.theme,styleName:"fontFamily"})),s=a=>{e.editor.commands.setFontFamily(a),r.isOpened=!1,e.editor.commands.focus()};return(a,l)=>Ke((E(),R("div",F6t,[b("button",{id:"richTextDropdownFontFamily",class:G(["bootstrap-styles d-flex justify-content-between align-items-center py-1 px-3 text-nowrap rich-text-toolbar__font-family-btn border rounded-2 overflow-hidden",{disabled:!e.isAllowToEdit,show:r.isOpened}]),type:"button",onClick:l[0]||(l[0]=c=>r.isOpened=!r.isOpened)},[b("span",E6t,W(N(Sp)[i.value]),1),b("i",L6t,[I(Si)])],2),b("ul",{class:G([{show:r.isOpened},"bootstrap-styles dropdown-menu rounded-2 bg-white"]),"aria-labelledby":"richTextDropdownFontFamily"},[(E(!0),R(Se,null,At(N(DU),c=>(E(),R("li",{key:c,class:G(["bootstrap-styles dropdown-item p-0",{active:e.editor.getAttributes(N(o)).fontFamily===c}]),onClick:()=>s(c)},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",style:Te({fontFamily:c})},W(N(Sp)[c]),5)],10,_6t))),128))],2)])),[[N(Lg),()=>r.isOpened=!1],[N(Xn),{title:n.tooltip,placement:"top"}]])}}),R6t=ve(A6t,[["__scopeId","data-v-cc496278"]]),D6t={},B6t={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"};function N6t(t,e){return E(),R("svg",B6t,[...e[0]||(e[0]=[b("path",{d:"M4.00003 2.38419e-07L1 2.99997L2.00001 4L4.00003 1.99998L6.00001 4L7 2.99997L4.00003 2.38419e-07Z",fill:"var(--gray-500)"},null,-1)])])}const Ape=ve(D6t,[["render",N6t],["__scopeId","data-v-19c42a7a"]]),I6t={},M6t={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"};function $6t(t,e){return E(),R("svg",M6t,[...e[0]||(e[0]=[b("path",{d:"M4.00003 8L1 5.00003L2.00001 4L4.00003 6.00002L6.00001 4L7 5.00003L4.00003 8Z",fill:"var(--gray-500)"},null,-1)])])}const Rpe=ve(I6t,[["render",$6t],["__scopeId","data-v-313c2951"]]),O6t={},P6t={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function V6t(t,e){return E(),R("svg",P6t,[...e[0]||(e[0]=[b("path",{d:"M6.66634 4.00033V14.0003H5.33301V4.00033H1.33301V2.66699H10.6663V4.00033H6.66634ZM11.9997 9.33366V14.0003H10.6663V9.33366H8.66634V8.00033H13.9997V9.33366H11.9997Z",fill:"#999999"},null,-1)])])}const W6t=ve(O6t,[["render",V6t]]),H6t={tooltip:"Font size"},z6t={tooltip:"Размер текста"},j6t=ht({en:H6t,ru:z6t}),K6t=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:o}=t.theme,r=!!t.editor.getAttributes("textStyle").fontSize,i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;return r?parseInt(t.editor.getAttributes("textStyle").fontSize,10):Hl({fontFamily:e,themeFontSettings:n[s],themeColor:BU({themeName:s,themeFontColors:o})}).fontSize},U6t={class:"bootstrap-styles rich-text-toolbar__font-size-editor position-relative rounded-2 py-1 px-3 d-flex"},q6t={class:"bootstrap-styles d-flex justify-content-center rich-text-icon me-14"},J6t=["value"],G6t={class:"bootstrap-styles rich-text-toolbar__input-button top-0 d-flex position-absolute align-items-end justify-content-center"},Y6t={class:"bootstrap-styles rich-text-toolbar__input-button bottom-0 d-flex position-absolute align-items-start justify-content-center"},Z6t=re({__name:"FontSizeEditor",props:{editor:{},theme:{},deps:{}},setup(t){const e=t,n={tooltip:j6t({localeKey:e.deps.localeKey}).tooltip},o=ne(()=>K6t({editor:e.editor,theme:e.theme})),r=()=>{o.value&&e.editor.commands.setFontSize(o.value+1)},i=()=>{o.value&&o.value!==1&&e.editor.commands.setFontSize(o.value-1)},s=a=>{const l=a.target;let c=parseInt(l.value);const u=100;isNaN(c)||l.value===""?(c=0,l.value="0"):c>u&&(c=u,l.value=String(u)),e.editor.commands.setFontSize(c)};return(a,l)=>Ke((E(),R("div",U6t,[b("i",q6t,[I(W6t)]),b("input",{type:"number",class:"bootstrap-styles rich-text-toolbar__input-number rich-text__handler",value:o.value,onInput:s},null,40,J6t),b("div",G6t,[b("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:r}),I(Ape)]),b("div",Y6t,[b("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:i}),I(Rpe)])])),[[N(Xn),{title:n.tooltip,placement:"top"}]])}}),X6t=ve(Z6t,[["__scopeId","data-v-ba95f865"]]),Q6t=re({__name:"SelectItemTextStyle",props:{isActive:{type:Boolean},label:{},themeFontStyle:{},themeFontColor:{}},emits:["click"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("li",{class:G(["bootstrap-styles dropdown-item p-0 d-flex align-items-center px-3 cursor-pointer",{active:n.isActive}]),onClick:i[0]||(i[0]=s=>o("click"))},[b("i",{class:"bootstrap-styles input__color_selection d-block overflow-hidden me-2",style:Te([{background:n.themeFontColor??"linear-gradient(135deg, rgb(51, 132, 255) 0%, rgb(202, 101, 250) 34.37%, rgb(250, 101, 101) 61.98%, rgb(250, 235, 101) 100%)"},{"min-width":"24px"}])},null,4),b("span",{class:"bootstrap-styles d-block py-1 text-decoration-none overflow-hidden",style:Te([n.themeFontStyle&&{fontSize:n.themeFontStyle.FontSize+"px",fontWeight:n.themeFontStyle.IsBold?"bold":"normal",fontStyle:n.themeFontStyle.IsItalic?"italic":"normal",textDecoration:n.themeFontStyle.Decoration},{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}])},W(n.label),5)],2))}}),Qre=ve(Q6t,[["__scopeId","data-v-3a2ee8e2"]]),e5t={tooltip:"Text style",settingLabels:{title:"Title",heading:"Heading",subHeading:"Subheading",largeText:"Large text",normalText:"Text",descriptionText:"Description",link:"Link",button:"Button",custom:"Custom"}},t5t={tooltip:"Стиль текста",settingLabels:{title:"Большой заголовок",heading:"Заголовок",subHeading:"Подзаголовок",largeText:"Большой текст",normalText:"Текст",descriptionText:"Описание",link:"Ссылка",button:"Кнопка",custom:"Пользовательский"}},yke=ht({en:e5t,ru:t5t}),n5t={class:"bootstrap-styles dropdown"},o5t={class:"bootstrap-styles rich-text-toolbar__font-style-selector__text"},r5t={class:"bootstrap-styles d-flex justify-content-center align-items-center rich-text-toolbar__icon"},i5t=re({__name:"ThemeSettingsSelector",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},initialThemeName:{},deps:{}},setup(t){const e=t,n=yU.name,o=Le({isOpened:!1}),r={tooltip:yke({localeKey:e.deps.localeKey}).tooltip,settingLabels:yke({localeKey:e.deps.localeKey}).settingLabels},i={Title:r.settingLabels.title,Heading:r.settingLabels.heading,SubHeading:r.settingLabels.subHeading,LargeText:r.settingLabels.largeText,NormalText:r.settingLabels.normalText,DescriptionText:r.settingLabels.descriptionText,Link:r.settingLabels.link,Button:r.settingLabels.button,Custom:r.settingLabels.custom},s=["Title","Heading","SubHeading","LargeText","NormalText","DescriptionText","Link","Button"],a=["TitleColor","HeadingColor","SubHeadingColor","LargeTextColor","NormalTextColor","DescriptionTextColor","LinkColor","ButtonTextColor"],l=ne(()=>{const u=e.initialThemeName,d=e.editor.getAttributes("paragraph").themeName||u;let h=s.find(w=>e.editor.getAttributes(n).themeName===w)||d;const{fontWeight:p,fontStyle:m,textDecoration:f,fontSize:g,fontFamily:C,lineHeight:v}=e.editor.getAttributes(n);return p||m||f||g||C||v?i.Custom:i[h]}),c=u=>{e.editor.commands.unsetMark(n),e.editor.chain().focus().setThemeSettings(u).run(),o.isOpened=!1};return(u,d)=>Ke((E(),R("div",n5t,[b("button",{id:"dropdownMenuButtonFontStyleList",class:G(["bootstrap-styles rich-text-toolbar__font-style-selector d-flex justify-content-between align-items-center py-1 px-3 text-nowrap border rounded-2",{disabled:!e.isAllowToEdit,show:o.isOpened}]),type:"button",onClick:d[0]||(d[0]=()=>o.isOpened=!o.isOpened)},[b("span",o5t,W(l.value),1),b("i",r5t,[I(Si)])],2),b("ul",{class:G([{show:o.isOpened},"bootstrap-styles rich-text-toolbar__font-style-dropdown dropdown-menu rounded-2"]),"aria-labelledby":"dropdownMenuButtonFontStyleList"},[(E(),R(Se,null,At(s,(h,p)=>I(Qre,{key:h,isActive:e.editor.getAttributes(N(n)).themeName===h,label:i[h],themeFontStyle:e.theme.FontSettingsPresets[h],themeFontColor:e.theme.Colors[a[p]],onClick:()=>c(h)},null,8,["isActive","label","themeFontStyle","themeFontColor","onClick"])),64))],2)])),[[N(Lg),()=>o.isOpened=!1],[N(Xn),{title:r.tooltip,placement:"top"}]])}}),s5t=ve(i5t,[["__scopeId","data-v-37cbbac2"]]),a5t={},l5t={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function c5t(t,e){return E(),R("svg",l5t,[...e[0]||(e[0]=[b("path",{d:"M7.33317 2.66667H13.9998V4H7.33317V2.66667ZM3.99984 4.66667V7.33333H2.6665V4.66667H0.666504L3.33317 2L5.99984 4.66667H3.99984ZM3.99984 11.3333H5.99984L3.33317 14L0.666504 11.3333H2.6665V8.66667H3.99984V11.3333ZM7.33317 12H13.9998V13.3333H7.33317V12ZM5.99984 7.33333H13.9998V8.66667H5.99984V7.33333Z",fill:"var(--gray-500)"},null,-1)])])}const Dpe=ve(a5t,[["render",c5t]]),u5t={tooltip:"Line height"},d5t={tooltip:"Высота строки"},h5t=ht({en:u5t,ru:d5t}),p5t=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:o}=t.theme,r=!!t.editor.getAttributes("textStyle").lineHeight,i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;return r?parseInt(t.editor.getAttributes("textStyle").lineHeight,10):Hl({fontFamily:e,themeFontSettings:n[s],themeColor:BU({themeName:s,themeFontColors:o})}).lineHeight},m5t={class:"bootstrap-styles rich-text-toolbar__line-height-editor position-relative rounded-2 py-1 px-3 d-flex"},f5t={class:"bootstrap-styles d-flex justify-content-center rich-text-icon me-14"},g5t=["value"],y5t={class:"bootstrap-styles rich-text-toolbar__input-button d-flex position-absolute align-items-end justify-content-center",style:{right:"10px",top:"0",width:"16px",height:"16px"}},C5t={class:"bootstrap-styles rich-text-toolbar__input-button d-flex position-absolute align-items-start justify-content-center",style:{right:"10px",bottom:"0",width:"16px",height:"16px"}},b5t=re({__name:"LineHeightEditor",props:{editor:{},theme:{},deps:{}},setup(t){const e=t,n={tooltip:h5t({localeKey:e.deps.localeKey}).tooltip},o=ne(()=>p5t({editor:e.editor,theme:e.theme})),r=()=>{o.value&&e.editor.commands.setLineHeight(o.value+1)},i=()=>{o.value&&o.value!==1&&e.editor.commands.setLineHeight(o.value-1)},s=a=>{const l=a.target;let c=parseInt(l.value);const u=100;isNaN(c)||l.value===""?(c=0,l.value="0"):c>u&&(c=u,l.value=String(u)),e.editor.commands.setLineHeight(c)};return(a,l)=>Ke((E(),R("div",m5t,[b("i",f5t,[I(Dpe)]),b("input",{type:"number",class:"bootstrap-styles rich-text-toolbar__input-number rich-text__handler",value:o.value,onInput:s},null,40,g5t),b("div",y5t,[b("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:r}),I(Ape)]),b("div",C5t,[b("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:i}),I(Rpe)])])),[[N(Xn),{title:n.tooltip,placement:"top"}]])}}),v5t=ve(b5t,[["__scopeId","data-v-4e76ed1b"]]),w5t=/^https?:\/\/((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(:\d+)?(\/[-a-z\d%_.~+@]*)*(\?[;&a-z\d%_.~+=-@]*)?(\#[-a-z\d_@]*)?$/i,S5t=/^mailto:\S+$/i,x5t=/^tel:\+?[\d().-]+$/i,c$=t=>/\s/.test(t)?!1:t.toLowerCase().startsWith("http://")||t.toLowerCase().startsWith("https://")?w5t.test(t):t.toLowerCase().startsWith("mailto:")?S5t.test(t):t.toLowerCase().startsWith("tel:")?x5t.test(t)&&/\d/.test(t.slice(4)):!1,T5t={mounted(t,e){t.addEventListener("input",()=>{const n=c$(t.value);typeof e.value=="function"&&e.value(n)})}},Dg={mounted(t,e){Cke(t,e)},updated(t,e){e.value&&Cke(t,e)}},Cke=(t,e)=>{document.activeElement!==t&&requestAnimationFrame(()=>{if(t.focus(),e.modifiers.selectAll&&t.select(),e.modifiers.end){const n=t.value.length;t.setSelectionRange(n,n)}})},k5t={},F5t={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"};function E5t(t,e){return E(),R("svg",F5t,[...e[0]||(e[0]=[b("path",{d:"M11.2432 9.35654L10.3003 8.41374L11.2432 7.47094C12.5449 6.16921 12.5449 4.05865 11.2432 2.75691C9.94139 1.45516 7.83086 1.45516 6.52912 2.75691L5.58631 3.69972L4.6435 2.75691L5.58631 1.8141C7.40879 -0.00834608 10.3635 -0.00834608 12.186 1.8141C14.0084 3.63655 14.0084 6.59134 12.186 8.41374L11.2432 9.35654ZM9.35752 11.2422L8.41472 12.185C6.59232 14.0075 3.63752 14.0075 1.81508 12.185C-0.00736952 10.3625 -0.00736952 7.40781 1.81508 5.58533L2.75788 4.64253L3.70069 5.58533L2.75788 6.52814C1.45614 7.82987 1.45614 9.94047 2.75788 11.2422C4.05963 12.5439 6.17019 12.5439 7.47192 11.2422L8.41472 10.2994L9.35752 11.2422ZM8.88612 4.17112L9.82893 5.11393L5.1149 9.82801L4.1721 8.88514L8.88612 4.17112Z",fill:"var(--black)"},null,-1)])])}const CC=ve(k5t,[["render",E5t]]),L5t={label:"Link",inputPlaceholder:"https://example.com",errorNotification:"The link must contain https://, http://, mailto:, tel:",applyButton:"Save",cancelButton:"Cancel"},_5t={label:"Ссылка",inputPlaceholder:"https://example.com",errorNotification:"Ссылка должна содержать https://, http://, mailto:, tel:",applyButton:"Сохранить",cancelButton:"Отмена"},A5t=ht({en:L5t,ru:_5t}),R5t={},D5t={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B5t(t,e){return E(),R("svg",D5t,[...e[0]||(e[0]=[b("path",{d:"M11.333 3.99967H14.6663V5.33301H13.333V13.9997C13.333 14.3679 13.0345 14.6663 12.6663 14.6663H3.33301C2.96482 14.6663 2.66634 14.3679 2.66634 13.9997V5.33301H1.33301V3.99967H4.66634V1.99967C4.66634 1.63149 4.96482 1.33301 5.33301 1.33301H10.6663C11.0345 1.33301 11.333 1.63149 11.333 1.99967V3.99967ZM11.9997 5.33301H3.99967V13.333H11.9997V5.33301ZM5.99967 7.33301H7.33301V11.333H5.99967V7.33301ZM8.66634 7.33301H9.99967V11.333H8.66634V7.33301ZM5.99967 2.66634V3.99967H9.99967V2.66634H5.99967Z",fill:"white"},null,-1)])])}const L9e=ve(R5t,[["render",B5t]]),N5t={class:"bootstrap-styles bg-white border rounded-2 add-text-link-modal-window"},I5t={class:"bootstrap-styles fw-bold mb-5 px-11 mt-10 d-block text-start"},M5t={class:"bootstrap-styles px-11 mb-2"},$5t={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},O5t=["placeholder"],P5t={class:"bootstrap-styles px-11 py-5 d-flex align-items-center justify-content-end border-top"},V5t=re({__name:"AddLinkModalWindow",props:{isActive:{type:Boolean},currentHref:{},deps:{}},emits:["onClosed","onHrefChanged","onRemoved"],setup(t,{emit:e}){const n=t,o=Le({href:n.currentHref,isValid:!0}),r=A5t({localeKey:n.deps.localeKey}),i=e;return(s,a)=>Ke((E(),R("div",N5t,[b("label",I5t,W(N(r).label),1),b("div",M5t,[b("div",{class:G(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex mb-14",{"not-valid-url":!o.isValid}])},[b("i",$5t,[I(CC)]),Ke(b("input",{type:"text",class:"bootstrap-styles w-100",placeholder:N(r).inputPlaceholder,"onUpdate:modelValue":a[0]||(a[0]=l=>o.href=l)},null,8,O5t),[[N(T5t),l=>o.isValid=l],[N(Dg),void 0,void 0,{selectAll:!0}],[Ea,o.href]])],2),b("div",{class:G(["bootstrap-styles text-start add-link-notification",{invisible:o.isValid}])},W(N(r).errorNotification),3)]),b("div",P5t,[n.isActive?(E(),R("button",{key:0,class:"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-auto rounded-2 add-text-link-modal-window__remove-button",onClick:a[1]||(a[1]=Nt(()=>i("onRemoved"),["stop"]))},[b("i",null,[I(L9e)])])):oe("",!0),b("button",{class:"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 border border-blue-selected rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:a[2]||(a[2]=()=>i("onClosed"))},W(N(r).cancelButton),1),b("button",{class:G(["bootstrap-styles d-flex justify-content-center align-center py-1 px-3 border rounded-2",{"button__active-700":o.isValid&&o.href.length>0,"button__locked button__disabled-700":!o.isValid||o.href.length===0}]),onClick:a[3]||(a[3]=()=>i("onHrefChanged",o.href))},W(N(r).applyButton),3)])])),[[N(Lg),()=>i("onClosed")]])}}),W5t=ve(V5t,[["__scopeId","data-v-b4170a33"]]),H5t={};function z5t(t,e){return E(),R(Se,null,[e[0]||(e[0]=b("svg",{class:"unlinked",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},[b("path",{d:"M12.7432 10.3565L11.8003 9.41374L12.7432 8.47094C14.0449 7.16921 14.0449 5.05865 12.7432 3.75691C11.4414 2.45516 9.33086 2.45516 8.02912 3.75691L7.08631 4.69972L6.1435 3.75691L7.08631 2.8141C8.90879 0.991654 11.8635 0.991654 13.686 2.8141C15.5084 4.63655 15.5084 7.59134 13.686 9.41374L12.7432 10.3565ZM10.8575 12.2422L9.91472 13.185C8.09232 15.0075 5.13752 15.0075 3.31508 13.185C1.49263 11.3625 1.49263 8.40781 3.31508 6.58533L4.25788 5.64253L5.20069 6.58533L4.25788 7.52814C2.95614 8.82987 2.95614 10.9405 4.25788 12.2422C5.55963 13.5439 7.67019 13.5439 8.97192 12.2422L9.91472 11.2994L10.8575 12.2422ZM10.3861 5.17112L11.3289 6.11393L6.6149 10.828L5.6721 9.88514L10.3861 5.17112Z",fill:"black"})],-1)),e[1]||(e[1]=b("svg",{class:"linked",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[b("path",{d:"M11.7713 9.88573L10.8285 8.94287L11.7713 8.00007C12.8127 6.95867 12.8127 5.27025 11.7713 4.22885C10.7299 3.18745 9.04147 3.18745 8.00007 4.22885L7.05727 5.17166L6.11447 4.22885L7.05727 3.28605C8.6194 1.72395 11.1521 1.72395 12.7141 3.28605C14.2762 4.84814 14.2762 7.3808 12.7141 8.94287L11.7713 9.88573ZM9.88573 11.7713L8.94287 12.7141C7.3808 14.2762 4.84814 14.2762 3.28605 12.7141C1.72395 11.1521 1.72395 8.6194 3.28605 7.05727L4.22885 6.11447L5.17166 7.05727L4.22885 8.00007C3.18745 9.04147 3.18745 10.7299 4.22885 11.7713C5.27025 12.8127 6.95867 12.8127 8.00007 11.7713L8.94287 10.8285L9.88573 11.7713ZM9.88573 5.17166L10.8285 6.11447L6.11447 10.8285L5.17166 9.88573L9.88573 5.17166ZM3.85026 1.52869L5.13816 1.18359L5.82835 3.75939L4.54045 4.10449L3.85026 1.52869ZM10.1719 12.2408L11.4597 11.8957L12.1499 14.4715L10.862 14.8166L10.1719 12.2408ZM1.52869 3.85026L4.10449 4.54045L3.75939 5.82835L1.18359 5.13816L1.52869 3.85026ZM12.2408 10.1719L14.8166 10.862L14.4715 12.1499L11.8957 11.4597L12.2408 10.1719Z",fill:"black"})],-1))],64)}const j5t=ve(H5t,[["render",z5t],["__scopeId","data-v-730bc16f"]]),K5t={tooltip:"Link"},U5t={tooltip:"Ссылка"},q5t=ht({en:K5t,ru:U5t}),J5t={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},G5t=re({__name:"LinkEditor",props:{editor:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:q5t({localeKey:e.deps.localeKey}).tooltip},o=Hhe.name,r=Lpe.name,i=Le({isAddTextLinkModalWindowShown:!1}),s=ne(()=>e.editor.isActive(r)),a=c=>{s.value&&e.editor.commands.unsetUnsubscribeLink(),e.editor.chain().focus().setLink({href:c}).setThemeSettings("Link").run(),i.isAddTextLinkModalWindowShown=!1},l=()=>{e.editor.chain().focus().unsetLink().applySiblingNodeThemeSettings().run(),i.isAddTextLinkModalWindowShown=!1};return(c,u)=>(E(),R(Se,null,[Ke((E(),R("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(N(o)),disabled:!e.editor.isActive(N(o))&&!e.isAllowToEdit}]),onClick:u[0]||(u[0]=d=>{i.isAddTextLinkModalWindowShown=!i.isAddTextLinkModalWindowShown})},[b("i",J5t,[e.editor.isActive(N(o))?(E(),Q(j5t,{key:1})):(E(),Q(CC,{key:0}))])],2)),[[N(Xn),{title:n.tooltip,placement:"top"}]]),i.isAddTextLinkModalWindowShown?(E(),Q(W5t,{key:0,isActive:e.editor.isActive(N(o)),currentHref:e.editor.isActive(N(o))?e.editor.getAttributes(N(o)).href:"",deps:e.deps.addLinkModalWindowDeps,onOnRemoved:u[1]||(u[1]=()=>l()),onOnClosed:u[2]||(u[2]=d=>i.isAddTextLinkModalWindowShown=!1),onOnHrefChanged:u[3]||(u[3]=d=>a(d))},null,8,["isActive","currentHref","deps"])):oe("",!0)],64))}}),Y5t=ve(G5t,[["__scopeId","data-v-6460a995"]]),Z5t={label:"URL",placeholder:"URL...",cancel:"Cancel",apply:"Save",removeTooltip:"Delete image"},X5t={label:"URL",placeholder:"URL...",cancel:"Отмена",apply:"Сохранить",removeTooltip:"Удалить изображение"},J_=ht({en:Z5t,ru:X5t}),Q5t={class:"bootstrap-styles bg-white border rounded-2 add-image-src-modal-window"},e4t={class:"bootstrap-styles fw-bold mb-5 px-11 mt-10 d-block text-start"},t4t={class:"bootstrap-styles px-11 mb-11"},n4t=["placeholder","value"],o4t={class:"bootstrap-styles px-11 py-5 d-flex align-items-center justify-content-end border-top"},r4t=["disabled"],i4t=re({__name:"AddImageSrcModalWindow",props:{isActive:{type:Boolean},src:{},width:{},height:{},isRetina:{type:Boolean},deps:{}},emits:["onClosed","onRemoved","onImageSrcChanged"],setup(t,{emit:e}){const n=t,o=Le({src:n.src,width:n.width,height:n.height,isBroken:!1}),r={label:J_({localeKey:n.deps.localeKey}).label,placeholder:J_({localeKey:n.deps.localeKey}).placeholder,cancel:J_({localeKey:n.deps.localeKey}).cancel,apply:J_({localeKey:n.deps.localeKey}).apply,removeTooltip:J_({localeKey:n.deps.localeKey}).removeTooltip},i=Pde(l=>{T9e(l).then(c=>{o.width=c.width,o.height=c.height,o.isBroken=!1,o.src=l}).catch(()=>{o.src=l,o.isBroken=!0})},500),s=()=>{a("onImageSrcChanged",{src:o.src,width:o.width,height:o.height,isRetina:!1})},a=e;return(l,c)=>Ke((E(),R("div",Q5t,[b("label",e4t,W(r.label),1),b("div",t4t,[b("div",{class:G(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex",{"border-danger":o.isBroken}])},[Ke(b("input",{type:"text",class:"bootstrap-styles w-100",placeholder:r.placeholder,value:o.src,onInput:c[0]||(c[0]=u=>N(i)(u.target.value))},null,40,n4t),[[N(Dg),void 0,void 0,{selectAll:!0}]])],2)]),b("div",o4t,[n.isActive?Ke((E(),R("button",{key:0,class:"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-auto rounded-2 add-image-src-modal-window__remove-button",onClick:c[1]||(c[1]=Nt(()=>a("onRemoved"),["stop"]))},[b("i",null,[I(L9e)])])),[[N(Xn),{placement:"top",title:r.removeTooltip}]]):oe("",!0),b("button",{class:"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 border border-blue-selected rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:c[2]||(c[2]=Nt(()=>a("onClosed"),["stop"]))},W(r.cancel),1),b("button",{class:"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 border rounded-2 bg-color-selected text-white cursor-pointer",disabled:!o.src.length||o.isBroken,onClick:c[3]||(c[3]=Nt(()=>s(),["stop"]))},W(r.apply),9,r4t)])])),[[N(Lg),()=>a("onClosed")]])}}),s4t=ve(i4t,[["__scopeId","data-v-35966ae0"]]),a4t={},l4t={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function c4t(t,e){return E(),R("svg",l4t,[...e[0]||(e[0]=[b("path",{d:"M1.99453 14C1.62936 14 1.33333 13.7034 1.33333 13.3377V2.66227C1.33333 2.29651 1.63687 2 1.99453 2H14.0055C14.3707 2 14.6667 2.29663 14.6667 2.66227V13.3377C14.6667 13.7035 14.3631 14 14.0055 14H1.99453ZM13.3333 10V3.33333H2.66666V12.6667L9.33333 6L13.3333 10ZM13.3333 11.8856L9.33333 7.8856L4.55228 12.6667H13.3333V11.8856ZM5.33333 7.33333C4.59695 7.33333 3.99999 6.7364 3.99999 6C3.99999 5.26362 4.59695 4.66667 5.33333 4.66667C6.06971 4.66667 6.66666 5.26362 6.66666 6C6.66666 6.7364 6.06971 7.33333 5.33333 7.33333Z",fill:"#2F2F2F"},null,-1)])])}const u4t=ve(a4t,[["render",c4t]]),d4t={tooltip:"Image",retinaLabel:"For retina screens"},h4t={tooltip:"Изображение",retinaLabel:"Для retina-экранов"},bke=ht({en:d4t,ru:h4t}),p4t={class:"bootstrap-styles rich-text-icon icon-hover d-flex"},m4t=["checked"],f4t={for:"rich-text__retina-checkbox",class:"bootstrap-styles label__checkbox-input text-nowrap"},g4t=re({__name:"ImageEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:bke({localeKey:e.deps.localeKey}).tooltip,retinaLabel:bke({localeKey:e.deps.localeKey}).retinaLabel},o=k9e.name,r=Le({isAddImageSrcModalWindowShown:!1}),i=async()=>{const l=e.editor.view.state.selection.anchor,{src:c,width:u,height:d,isRetina:h}=e.editor.getAttributes(o);e.editor.chain().focus().updateAttributes("image",{src:c,width:u,height:d,isRetina:!h}).setNodeSelection(l).run()},s=l=>{const c=e.editor.view.state.selection.anchor;e.editor.isActive(o)?e.editor.chain().focus().updateAttributes("image",{src:l.src,width:l.width,height:l.height,alt:"img",isRetina:!1}).setNodeSelection(c).run():e.editor.chain().focus().setImage({src:l.src,width:l.width,height:l.height,alt:"img",isRetina:!1}).setNodeSelection(c).run(),r.isAddImageSrcModalWindowShown=!1},a=()=>{e.editor.commands.deleteSelection(),r.isAddImageSrcModalWindowShown=!1};return(l,c)=>(E(),R(Se,null,[Ke((E(),R("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button__image",{active:e.editor.isActive(N(o))}]),onClick:c[0]||(c[0]=u=>r.isAddImageSrcModalWindowShown=!r.isAddImageSrcModalWindowShown)},[b("i",p4t,[I(u4t)])],2)),[[N(Xn),{title:n.tooltip,placement:"top"}]]),e.editor.isActive(N(o))?(E(),R("div",{key:0,class:"bootstrap-styles d-flex align-items-center ms-14 me-1",onClick:c[1]||(c[1]=u=>i()),onMousedown:c[2]||(c[2]=Nt(()=>{},["prevent"]))},[b("input",{id:"rich-text__retina-checkbox",class:"bootstrap-styles me-1 cursor-pointer",checked:e.editor.isActive(N(o),{isRetina:!0}),type:"checkbox","aria-label":"Checkbox for retina image"},null,8,m4t),b("label",f4t,W(n.retinaLabel),1)],32)):oe("",!0),r.isAddImageSrcModalWindowShown?(E(),Q(s4t,{key:1,isActive:e.editor.isActive(N(o)),src:e.editor.getAttributes(N(o)).src?e.editor.getAttributes(N(o)).src:"",width:e.editor.getAttributes(N(o)).width?e.editor.getAttributes(N(o)).width:0,height:e.editor.getAttributes(N(o)).height?e.editor.getAttributes(N(o)).height:0,isRetina:e.editor.getAttributes(N(o)).isRetina?e.editor.getAttributes(N(o)).isRetina:!1,deps:e.deps.addImageSrcModalWindowDeps,onOnRemoved:c[3]||(c[3]=()=>a()),onOnClosed:c[4]||(c[4]=u=>r.isAddImageSrcModalWindowShown=!1),onOnImageSrcChanged:c[5]||(c[5]=u=>s({src:u.src,width:u.width,height:u.height}))},null,8,["isActive","src","width","height","isRetina","deps"])):oe("",!0)],64))}}),y4t=ve(g4t,[["__scopeId","data-v-d72ccf51"]]),C4t={},b4t={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function v4t(t,e){return E(),R("svg",b4t,[...e[0]||(e[0]=[b("path",{d:"M5.83333 7.33317H8.83333C9.7538 7.33317 10.5 6.58698 10.5 5.6665C10.5 4.74603 9.7538 3.99984 8.83333 3.99984H5.83333V7.33317ZM12.5 10.3332C12.5 11.99 11.1569 13.3332 9.5 13.3332H4.5V2.6665H8.83333C10.4902 2.6665 11.8333 4.00965 11.8333 5.6665C11.8333 6.46938 11.5179 7.19857 11.0043 7.73704C11.8986 8.2563 12.5 9.2245 12.5 10.3332ZM5.83333 8.6665V11.9998H9.5C10.4205 11.9998 11.1667 11.2536 11.1667 10.3332C11.1667 9.4127 10.4205 8.6665 9.5 8.6665H5.83333Z",fill:"var(--black)"},null,-1)])])}const Bpe=ve(C4t,[["render",v4t]]),w4t={tooltip:"Bold"},S4t={tooltip:"Полужирный"},x4t=ht({en:w4t,ru:S4t}),T4t={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},k4t=re({__name:"FontWeightEditor",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:x4t({localeKey:e.deps.localeKey}).tooltip},o=ne(()=>l$({editor:e.editor,theme:e.theme,styleName:"fontWeight"})==="bold"),r=()=>{o.value?e.editor.chain().focus().unsetFontWeight().run():e.editor.chain().focus().setFontWeight("bold").run(),e.editor.commands.focus()};return(i,s)=>Ke((E(),R("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:o.value,disabled:!e.isAllowToEdit&&!o.value}]),onClick:s[0]||(s[0]=()=>r())},[b("i",T4t,[I(Bpe)])],2)),[[N(Xn),{title:n.tooltip,placement:"top"}]])}}),F4t=ve(k4t,[["__scopeId","data-v-0e22dbf6"]]),E4t={},L4t={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function _4t(t,e){return E(),R("svg",L4t,[...e[0]||(e[0]=[b("path",{d:"M11.9359 9.33317C12.0897 9.67724 12.1667 10.0594 12.1667 10.4796C12.1667 11.3748 11.8175 12.0742 11.1191 12.5778C10.4206 13.0814 9.45567 13.3332 8.22413 13.3332C7.13116 13.3332 6.0489 13.0788 4.97728 12.5702V11.0671C5.99025 11.652 7.0272 11.9445 8.08813 11.9445C9.78887 11.9445 10.6419 11.4562 10.6472 10.4796C10.6472 10.0624 10.5033 9.70637 10.2154 9.41137C10.1893 9.38464 10.1626 9.35857 10.1354 9.33317H2.5V7.99984H14.5V9.33317H11.9359ZM9.21733 7.33317H5.58605C5.47107 7.2287 5.36411 7.11264 5.26517 6.98504C4.97728 6.61373 4.83333 6.16356 4.83333 5.63455C4.83333 4.81052 5.14389 4.10984 5.76499 3.5325C6.38611 2.95516 7.34707 2.6665 8.64793 2.6665C9.62893 2.6665 10.5673 2.88522 11.4629 3.32268V4.75711C10.6632 4.29931 9.7862 4.07042 8.83187 4.07042C7.17913 4.07042 6.35278 4.59179 6.35278 5.63455C6.35278 5.91432 6.49806 6.15848 6.78862 6.36703C7.07919 6.57558 7.43773 6.74217 7.8642 6.86677C8.27767 6.98757 8.72873 7.14304 9.21733 7.33317Z",fill:"black"},null,-1)])])}const Npe=ve(E4t,[["render",_4t]]),A4t={tooltip:"Strikethrough"},R4t={tooltip:"Зачеркнутый"},D4t=ht({en:A4t,ru:R4t}),B4t={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},N4t=re({__name:"LineThroughEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:D4t({localeKey:e.deps.localeKey}).tooltip},o=ne(()=>l$({editor:e.editor,theme:e.theme,styleName:"textDecoration"})==="line-through"),r=()=>{o.value?e.editor.chain().focus().unsetTextDecoration().run():e.editor.chain().focus().setTextDecoration("line-through").run(),e.editor.commands.focus()};return(i,s)=>Ke((E(),R("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:o.value,disabled:!t.isAllowToEdit&&!o.value}]),onClick:s[0]||(s[0]=a=>r())},[b("i",B4t,[I(Npe)])],2)),[[N(Xn),{title:n.tooltip,placement:"top"}]])}}),I4t=ve(N4t,[["__scopeId","data-v-fffc32ef"]]),M4t={},$4t={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function O4t(t,e){return E(),R("svg",$4t,[...e[0]||(e[0]=[b("path",{d:"M5.83366 2V8C5.83366 9.47273 7.02757 10.6667 8.50033 10.6667C9.97306 10.6667 11.167 9.47273 11.167 8V2H12.5003V8C12.5003 10.2091 10.7095 12 8.50033 12C6.29119 12 4.50033 10.2091 4.50033 8V2H5.83366ZM3.16699 13.3333H13.8337V14.6667H3.16699V13.3333Z",fill:"black"},null,-1)])])}const Ipe=ve(M4t,[["render",O4t]]),P4t={tooltip:"Underline"},V4t={tooltip:"Подчеркнутый"},W4t=ht({en:P4t,ru:V4t}),H4t={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},z4t=re({__name:"UnderlineEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:W4t({localeKey:e.deps.localeKey}).tooltip},o=ne(()=>l$({editor:e.editor,theme:e.theme,styleName:"textDecoration"})==="underline"),r=()=>{o.value?e.editor.chain().focus().unsetTextDecoration().run():e.editor.chain().focus().setTextDecoration("underline").run()};return(i,s)=>Ke((E(),R("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:o.value,disabled:!t.isAllowToEdit&&!o.value}]),onClick:s[0]||(s[0]=()=>r())},[b("i",H4t,[I(Ipe)])],2)),[[N(Xn),{title:n.tooltip,placement:"top"}]])}}),j4t=ve(z4t,[["__scopeId","data-v-ae63be68"]]),K4t={},U4t={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function q4t(t,e){return E(),R("svg",U4t,[...e[0]||(e[0]=[b("path",{d:"M10.4998 13.3332H5.1665V11.9998H7.11758L8.52817 3.99984H6.49984V2.6665H11.8332V3.99984H9.8821L8.4715 11.9998H10.4998V13.3332Z",fill:"black"},null,-1)])])}const Mpe=ve(K4t,[["render",q4t]]),J4t={tooltip:"Italic"},G4t={tooltip:"Курсив"},Y4t=ht({en:J4t,ru:G4t}),Z4t={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},X4t=re({__name:"FontStyleEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Y4t({localeKey:e.deps.localeKey}).tooltip},o=ne(()=>l$({editor:e.editor,theme:e.theme,styleName:"fontStyle"})==="italic"),r=()=>{o.value?e.editor.chain().focus().unsetFontStyle().run():e.editor.chain().focus().setFontStyle("italic").run(),e.editor.commands.focus()};return(i,s)=>Ke((E(),R("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:o.value,disabled:!t.isAllowToEdit&&!o.value}]),onClick:s[0]||(s[0]=()=>r())},[b("i",Z4t,[I(Mpe)])],2)),[[N(Xn),{title:n.tooltip,placement:"top"}]])}}),Q4t=ve(X4t,[["__scopeId","data-v-ac6b2276"]]),eWt={},tWt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nWt(t,e){return E(),R("svg",tWt,[...e[0]||(e[0]=[b("path",{d:"M7.49699 9.99999H3.16912L1.83578 13.3333H0.399734L4.6664 2.66666H5.99973L10.2664 13.3333H8.83033L7.49699 9.99999ZM6.96366 8.66666L5.33307 4.5901L3.70245 8.66666H6.96366ZM13.9997 8.35672V7.99999H15.3331V13.3333H13.9997V12.9766C13.6075 13.2035 13.1521 13.3333 12.6664 13.3333C11.1937 13.3333 9.99973 12.1394 9.99973 10.6667C9.99973 9.19392 11.1937 7.99999 12.6664 7.99999C13.1521 7.99999 13.6075 8.12986 13.9997 8.35672ZM12.6664 12C13.4028 12 13.9997 11.4031 13.9997 10.6667C13.9997 9.93026 13.4028 9.33332 12.6664 9.33332C11.93 9.33332 11.3331 9.93026 11.3331 10.6667C11.3331 11.4031 11.93 12 12.6664 12Z",fill:"black"},null,-1)])])}const oWt=ve(eWt,[["render",nWt]]),rWt={tooltip:"Uppercase"},iWt={tooltip:"Заглавные"},sWt=ht({en:rWt,ru:iWt}),aWt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},lWt=re({__name:"TextTransformEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:sWt({localeKey:e.deps.localeKey}).tooltip},o=C9e.name,r=ne(()=>e.editor.isActive({[o]:"uppercase"})),i=()=>{r.value?e.editor.commands.unsetTextTransform():e.editor.commands.setTextTransform("uppercase"),e.editor.commands.focus()};return(s,a)=>Ke((E(),R("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive({[N(o)]:"uppercase"}),disabled:!t.isAllowToEdit&&!e.editor.isActive({[N(o)]:"uppercase"})}]),onClick:a[0]||(a[0]=l=>i())},[b("i",aWt,[I(oWt)])],2)),[[N(Xn),{title:n.tooltip,placement:"top"}]])}}),cWt=ve(lWt,[["__scopeId","data-v-20dea8b8"]]),uWt={},dWt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hWt(t,e){return E(),R("svg",dWt,[...e[0]||(e[0]=[b("path",{d:"M12.2432 8.47094C13.5449 7.16921 13.5449 5.05865 12.2432 3.75691C10.9414 2.45516 8.83086 2.45516 7.52912 3.75691L6.58631 4.69972L5.6435 3.75691L6.58631 2.8141C8.40879 0.991654 11.3635 0.991654 13.186 2.8141C15.0084 4.63655 15.0084 7.59134 13.186 9.41374L12.2432 8.47094ZM9.41472 13.185C7.59232 15.0075 4.63752 15.0075 2.81508 13.185C0.99263 11.3625 0.99263 8.40781 2.81508 6.58533L3.75788 5.64253L4.70069 6.58533L3.75788 7.52814C2.45614 8.82987 2.45614 10.9405 3.75788 12.2422C5.05963 13.5439 7.17019 13.5439 8.47192 12.2422L9.41472 13.185ZM9.88612 5.17112L10.8289 6.11393L6.1149 10.828L5.1721 9.88514L9.88612 5.17112Z",fill:"#2F2F2F"},null,-1),b("path",{d:"M14.714 13.7712L13.2998 12.357L14.714 10.9428L13.7712 10L12.357 11.4142L10.9428 10L10 10.9428L11.4142 12.357L10 13.7712L10.9428 14.714L12.357 13.2998L13.7712 14.714L14.714 13.7712Z",fill:"#2F2F2F"},null,-1)])])}const pWt=ve(uWt,[["render",hWt]]),mWt={tooltip:"Unsubscribe link"},fWt={tooltip:"Ссылка на отписку"},gWt=ht({en:mWt,ru:fWt}),yWt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},CWt=re({__name:"UnsubscribeLinkEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:gWt({localeKey:e.deps.localeKey}).tooltip},o=Lpe.name,r=Hhe.name,i=ne(()=>e.editor.isActive(r)),s=()=>{i.value&&e.editor.commands.unsetLink(),e.editor.isActive(o)?e.editor.chain().unsetUnsubscribeLink().applySiblingNodeThemeSettings().run():e.editor.chain().setUnsubscribeLink().setThemeSettings("Link").run()};return(a,l)=>Ke((E(),R("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(N(o)),disabled:!e.editor.isActive(N(o))&&!e.isAllowToEdit}]),onClick:l[0]||(l[0]=()=>s())},[b("i",yWt,[I(pWt)])],2)),[[N(Xn),{title:n.tooltip,placement:"top"}]])}}),bWt=ve(CWt,[["__scopeId","data-v-9ee287d3"]]),vWt={},wWt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function SWt(t,e){return E(),R("svg",wWt,[...e[0]||(e[0]=[b("path",{d:"M6.16699 4.66667C6.16699 3.93029 5.57004 3.33333 4.83366 3.33333C4.09728 3.33333 3.50033 3.93029 3.50033 4.66667C3.50033 5.40305 4.09728 6 4.83366 6C5.57004 6 6.16699 5.40305 6.16699 4.66667ZM7.50033 4.66667C7.50033 6.13943 6.30642 7.33333 4.83366 7.33333C3.3609 7.33333 2.16699 6.13943 2.16699 4.66667C2.16699 3.19391 3.3609 2 4.83366 2C6.30642 2 7.50033 3.19391 7.50033 4.66667ZM14.5003 2.66667H9.16699V4H14.5003V2.66667ZM14.5003 7.33333H9.16699V8.66667H14.5003V7.33333ZM14.5003 12H9.16699V13.3333H14.5003V12ZM4.83366 12.6667C4.09728 12.6667 3.50033 12.0697 3.50033 11.3333C3.50033 10.5969 4.09728 10 4.83366 10C5.57004 10 6.16699 10.5969 6.16699 11.3333C6.16699 12.0697 5.57004 12.6667 4.83366 12.6667ZM4.83366 14C6.30642 14 7.50033 12.8061 7.50033 11.3333C7.50033 9.8606 6.30642 8.66667 4.83366 8.66667C3.3609 8.66667 2.16699 9.8606 2.16699 11.3333C2.16699 12.8061 3.3609 14 4.83366 14Z",fill:"black"},null,-1)])])}const xWt=ve(vWt,[["render",SWt]]),TWt={tooltip:"Bullet list"},kWt={tooltip:"Маркированный список"},FWt=ht({en:TWt,ru:kWt}),EWt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},LWt=re({__name:"BulletListEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:FWt({localeKey:e.deps.localeKey}).tooltip},o=zhe.name,r=()=>{e.editor.chain().focus().toggleBulletList().run()};return(i,s)=>Ke((E(),R("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(N(o))}]),onClick:s[0]||(s[0]=()=>r())},[b("i",EWt,[I(xWt)])],2)),[[N(Xn),{title:n.tooltip,placement:"top"}]])}}),_Wt=ve(LWt,[["__scopeId","data-v-c64632e3"]]),AWt={},RWt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function DWt(t,e){return E(),R("svg",RWt,[...e[0]||(e[0]=[b("path",{d:"M4.33382 2.33301H3.64521L2.66699 2.59512V3.63022L3.33367 3.45155L3.33378 5.66634H2.50033V6.66634H5.16699V5.66634H4.33382V2.33301ZM7.16699 2.66634H14.5003V3.99967H7.16699V2.66634ZM7.16699 7.33301H14.5003V8.66634H7.16699V7.33301ZM7.16699 11.9997H14.5003V13.333H7.16699V11.9997ZM2.41699 10.4163C2.41699 9.63394 3.05125 8.99967 3.83366 8.99967C4.61607 8.99967 5.25033 9.63394 5.25033 10.4163C5.25033 10.7401 5.14155 11.0388 4.95864 11.2775L4.95547 11.2816L4.04424 12.333H5.16699V13.333H2.50041L2.50005 12.5854L4.14813 10.6897C4.21186 10.6165 4.25033 10.5211 4.25033 10.4163C4.25033 10.1862 4.06378 9.99967 3.83366 9.99967C3.61618 9.99967 3.43748 10.1664 3.41864 10.3789L3.41039 10.583H2.41699V10.4163Z",fill:"black"},null,-1)])])}const BWt=ve(AWt,[["render",DWt]]),NWt={tooltip:"Ordered list"},IWt={tooltip:"Нумерованный список"},MWt=ht({en:NWt,ru:IWt}),$Wt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},OWt=re({__name:"OrderedListEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:MWt({localeKey:e.deps.localeKey}).tooltip},o=Khe.name,r=()=>{e.editor.chain().focus().toggleOrderedList().run()};return(i,s)=>Ke((E(),R("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(N(o))}]),onClick:s[0]||(s[0]=()=>r())},[b("i",$Wt,[I(BWt)])],2)),[[N(Xn),{title:n.tooltip,placement:"top"}]])}}),PWt=ve(OWt,[["__scopeId","data-v-aaa43948"]]),VWt={},WWt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function HWt(t,e){return E(),R("svg",WWt,[...e[0]||(e[0]=[b("path",{d:"M14 13.9995H2V12.6665H14V13.9995ZM14 10.6665H2V9.3335H14V10.6665ZM4.29102 7.3335H2.00684V5.99951H4.29102V7.3335ZM10.4434 7.3335H5.55664V2.68896H10.4434V7.3335ZM14 7.3335H11.7158V5.99951H14V7.3335ZM4.29102 3.99951H2.00684V2.6665H4.29102V3.99951ZM14 3.99951H11.7158V2.6665H14V3.99951Z",fill:"var(--black)"},null,-1)])])}const vke=ve(VWt,[["render",HWt]]),zWt={},jWt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function KWt(t,e){return E(),R("svg",jWt,[...e[0]||(e[0]=[b("path",{d:"M14 13.9995H2V12.6665H14V13.9995ZM10.4434 10.6548H5.55664V6.01123H10.4434V10.6548ZM4.29102 10.6245H2.00684V9.29053H4.29102V10.6245ZM14 10.6245H11.7158V9.29053H14V10.6245ZM4.29102 7.29053H2.00684V5.95752H4.29102V7.29053ZM14 7.29053H11.7158V5.95752H14V7.29053Z",fill:"var(--black)"},null,-1),b("path",{d:"M14 2.6665H2V3.99984H14V2.6665Z",fill:"var(--black)"},null,-1)])])}const wke=ve(zWt,[["render",KWt]]),UWt={},qWt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function JWt(t,e){return E(),R("svg",qWt,[...e[0]||(e[0]=[b("path",{d:"M14 2.6665H2V3.99951H14V2.6665ZM14 5.99951H2V7.33252H14V5.99951ZM4.29102 9.33252H2.00684V10.6665H4.29102V9.33252ZM10.4434 9.33252H5.55664V13.9771H10.4434V9.33252ZM14 9.33252H11.7158V10.6665H14V9.33252ZM4.29102 12.6665H2.00684V13.9995H4.29102V12.6665ZM14 12.6665H11.7158V13.9995H14V12.6665Z",fill:"var(--black)"},null,-1)])])}const Ske=ve(UWt,[["render",JWt]]),GWt={},YWt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ZWt(t,e){return E(),R("svg",YWt,[...e[0]||(e[0]=[b("path",{d:"M14 11.9775H2V10.6445H14V11.9775ZM4.29102 8.64453H2.00684V7.31055H4.29102V8.64453ZM10.4434 8.64453H5.55664V4H10.4434V8.64453ZM14 8.64453H11.7158V7.31055H14V8.64453Z",fill:"var(--black)"},null,-1)])])}const xke=ve(GWt,[["render",ZWt]]),XWt={tooltip:"Vertical image alignment"},QWt={tooltip:"Выравнивание картинок по вертикали"},eHt=ht({en:XWt,ru:QWt}),tHt={class:"bootstrap-styles vertical-align-editor dropdown rounded"},nHt={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},oHt={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},rHt={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},iHt={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},sHt={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},aHt=re({__name:"VerticalAlignEditor",props:{editor:{},currentVerticalAlign:{},deps:{}},emits:["onVerticalAlignVariantChanged"],setup(t,{emit:e}){const n=t,o={tooltip:eHt({localeKey:n.deps.localeKey}).tooltip},r=Le({isOpened:!1}),i=a=>{s("onVerticalAlignVariantChanged",a),r.isOpened=!1},s=e;return(a,l)=>Ke((E(),R("div",tHt,[b("button",{id:"richTextDropdownVerticalAlign",class:G(["bootstrap-styles p-1 rounded rich-text-button",{show:r.isOpened}]),type:"button",onClick:l[0]||(l[0]=c=>r.isOpened=!r.isOpened)},[b("i",nHt,[n.currentVerticalAlign==="Baseline"?(E(),Q(xke,{key:0})):oe("",!0),n.currentVerticalAlign==="Top"?(E(),Q(vke,{key:1})):oe("",!0),n.currentVerticalAlign==="Middle"?(E(),Q(wke,{key:2})):oe("",!0),n.currentVerticalAlign==="Bottom"?(E(),Q(Ske,{key:3})):oe("",!0)])],2),b("div",{class:G([{show:r.isOpened},"bootstrap-styles vertical-align-dropdown bg-white p-1"]),"aria-labelledby":"richTextDropdownVerticalAlign"},[b("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentVerticalAlign==="Baseline"}]),onClick:l[1]||(l[1]=()=>i("Baseline"))},[b("i",oHt,[I(xke)])],2),b("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentVerticalAlign==="Top"}]),onClick:l[2]||(l[2]=()=>i("Top"))},[b("i",rHt,[I(vke)])],2),b("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentVerticalAlign==="Middle"}]),onClick:l[3]||(l[3]=()=>i("Middle"))},[b("i",iHt,[I(wke)])],2),b("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:n.currentVerticalAlign==="Bottom"}]),onClick:l[4]||(l[4]=()=>i("Bottom"))},[b("i",sHt,[I(Ske)])],2)],2)])),[[N(Lg),()=>r.isOpened=!1],[N(Xn),{title:o.tooltip,placement:"top"}]])}}),lHt=ve(aHt,[["__scopeId","data-v-4a636ae8"]]),cHt={},uHt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function dHt(t,e){return E(),R("svg",uHt,[...e[0]||(e[0]=[b("path",{d:"M2 2.6665H14V3.99984H2V2.6665ZM2 12.6665H11.3333V13.9998H2V12.6665ZM2 9.33317H14V10.6665H2V9.33317ZM2 5.99984H11.3333V7.33317H2V5.99984Z",fill:"var(--black)"},null,-1)])])}const Tke=ve(cHt,[["render",dHt]]),hHt={},pHt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function mHt(t,e){return E(),R("svg",pHt,[...e[0]||(e[0]=[b("path",{d:"M2 2.6665H14V3.99984H2V2.6665ZM3.33333 12.6665H12.6667V13.9998H3.33333V12.6665ZM2 9.33317H14V10.6665H2V9.33317ZM3.33333 5.99984H12.6667V7.33317H3.33333V5.99984Z",fill:"var(--black)"},null,-1)])])}const kke=ve(hHt,[["render",mHt]]),fHt={},gHt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function yHt(t,e){return E(),R("svg",gHt,[...e[0]||(e[0]=[b("path",{d:"M2 2.6665H14V3.99984H2V2.6665ZM4.66667 12.6665H14V13.9998H4.66667V12.6665ZM2 9.33317H14V10.6665H2V9.33317ZM4.66667 5.99984H14V7.33317H4.66667V5.99984Z",fill:"var(--black)"},null,-1)])])}const Fke=ve(fHt,[["render",yHt]]),CHt={tooltip:"Alignment"},bHt={tooltip:"Выравнивание"},vHt=ht({en:CHt,ru:bHt}),wHt={class:"bootstrap-styles content-align-editor dropdown rounded"},SHt={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},xHt={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},THt={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},kHt={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},FHt=re({__name:"ContentAlignEditor",props:{editor:{},deps:{},initialContentAlign:{}},setup(t){const e=t,n={tooltip:vHt({localeKey:e.deps.localeKey}).tooltip},o=Le({isOpened:!1}),r=ne(()=>{const{$from:s}=e.editor.state.selection,a=s.parent;return a.type.name==="paragraph"&&a.attrs.contentAlign||e.initialContentAlign}),i=s=>{e.editor.chain().focus().setParagraphContentAlign(s).run(),o.isOpened=!1};return(s,a)=>Ke((E(),R("div",wHt,[b("button",{id:"richTextDropdownContentAlign",class:G(["bootstrap-styles p-1 rounded rich-text-button",{show:o.isOpened}]),type:"button",onClick:a[0]||(a[0]=l=>o.isOpened=!o.isOpened)},[b("i",SHt,[r.value==="Left"?(E(),Q(Tke,{key:0})):oe("",!0),r.value==="Center"?(E(),Q(kke,{key:1})):oe("",!0),r.value==="Right"?(E(),Q(Fke,{key:2})):oe("",!0)])],2),b("div",{class:G([{show:o.isOpened},"bootstrap-styles content-align-dropdown bg-white p-1"]),"aria-labelledby":"richTextDropdownContentAlign"},[b("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:r.value==="Left"}]),onClick:a[1]||(a[1]=()=>i("Left"))},[b("i",xHt,[I(Tke)])],2),b("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:r.value==="Center"}]),onClick:a[2]||(a[2]=()=>i("Center"))},[b("i",THt,[I(kke)])],2),b("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:r.value==="Right"}]),onClick:a[3]||(a[3]=()=>i("Right"))},[b("i",kHt,[I(Fke)])],2)],2)])),[[N(Lg),()=>o.isOpened=!1],[N(Xn),{title:n.tooltip,placement:"top"}]])}}),EHt=ve(FHt,[["__scopeId","data-v-e9d5324a"]]),LHt={class:"bootstrap-styles rich-text-toolbar d-flex align-items-center border gap-1 p-1"},_Ht={key:2,class:"bootstrap-styles position-relative h-100"},AHt={key:3,class:"bootstrap-styles position-relative h-100"},RHt={key:4,class:"bootstrap-styles d-flex justify-content-center align-items-center"},DHt={key:7,class:"vl"},BHt={key:13,class:"vl"},NHt={key:16,class:"vl"},IHt=re({__name:"RichTextToolbar",props:{editor:{},deps:{},element:{},theme:{},initialThemeName:{},initialContentAlign:{}},emits:["onVerticalAlignVariantChanged"],setup(t,{emit:e}){const n=t,o=n.deps.richTextToolbarPlugins,r=ne(()=>{const{from:a,to:l}=n.editor.state.selection;return a!==l}),i=ne(()=>n.editor.isActive("image")),s=e;return(a,l)=>(E(),R("div",LHt,[i.value?oe("",!0):(E(),Q(s5t,{key:0,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,initialThemeName:n.initialThemeName,deps:n.deps.themeSettingsSelectorDeps},null,8,["editor","theme","isAllowToEdit","initialThemeName","deps"])),i.value?oe("",!0):(E(),Q(R6t,{key:1,theme:n.theme,editor:n.editor,isAllowToEdit:r.value,deps:n.deps.fontFamilySelectorDeps},null,8,["theme","editor","isAllowToEdit","deps"])),i.value?oe("",!0):(E(),R("div",_Ht,[I(X6t,{editor:n.editor,theme:n.theme,deps:n.deps.fontSizeEditorDeps,class:G({disabled:!r.value})},null,8,["editor","theme","deps","class"])])),i.value?oe("",!0):(E(),R("div",AHt,[I(v5t,{editor:n.editor,theme:n.theme,deps:n.deps.lineHeightEditorDeps,class:G({disabled:!r.value})},null,8,["editor","theme","deps","class"])])),i.value?oe("",!0):(E(),R("div",RHt,[I(b6t,{editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.colorPickerDeps},null,8,["editor","theme","isAllowToEdit","deps"])])),i.value?(E(),Q(lHt,{key:5,currentVerticalAlign:n.element.ImageVerticalAlign,editor:n.editor,deps:n.deps.verticalAlignEditorDeps,onOnVerticalAlignVariantChanged:l[0]||(l[0]=c=>s("onVerticalAlignVariantChanged",c))},null,8,["currentVerticalAlign","editor","deps"])):oe("",!0),i.value?oe("",!0):(E(),Q(EHt,{key:6,editor:n.editor,initialContentAlign:n.initialContentAlign,deps:n.deps.contentAlignEditorDeps,class:G({"bootstrap-styles me-14":i.value})},null,8,["editor","initialContentAlign","deps","class"])),i.value?oe("",!0):(E(),R("div",DHt)),i.value?oe("",!0):(E(),Q(F4t,{key:8,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.fontWeightEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?oe("",!0):(E(),Q(Q4t,{key:9,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.fontStyleEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?oe("",!0):(E(),Q(I4t,{key:10,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.lineThroughEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?oe("",!0):(E(),Q(j4t,{key:11,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.underlineEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?oe("",!0):(E(),Q(cWt,{key:12,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.textTransformEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?oe("",!0):(E(),R("div",BHt)),i.value?oe("",!0):(E(),Q(_Wt,{key:14,editor:n.editor,deps:n.deps.bulletListEditorDeps},null,8,["editor","deps"])),i.value?oe("",!0):(E(),Q(PWt,{key:15,editor:n.editor,deps:n.deps.orderedListEditorDeps},null,8,["editor","deps"])),i.value?oe("",!0):(E(),R("div",NHt)),I(Y5t,{editor:n.editor,isAllowToEdit:r.value,deps:n.deps.linkEditorDeps},null,8,["editor","isAllowToEdit","deps"]),I(bWt,{editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.unsubscribeLinkEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"]),I(y4t,{editor:n.editor,deps:n.deps.imageEditorDeps},null,8,["editor","deps"]),(E(!0),R(Se,null,At(N(o),(c,u)=>(E(),R("span",{key:u,class:"bootstrap-styles d-none"},[(E(),Q(JK(c),{editor:n.editor},null,8,["editor"]))]))),128))]))}}),MHt=ve(IHt,[["__scopeId","data-v-359375dd"]]),$Ht=t=>({Match:e=>{switch(t){case"Baseline":return e.whenBaseline();case"Top":return e.whenTop();case"Middle":return e.whenMiddle();case"Bottom":return e.whenBottom();default:return Zc(t)}}}),OHt=t=>$Ht(t.verticalAlign).Match({whenBaseline:()=>"baseline",whenTop:()=>"top",whenMiddle:()=>"middle",whenBottom:()=>"bottom"}),Eke="NormalText",Lke="Left",PHt=re({__name:"RichText",props:{deps:{},theme:{},element:{},isSelected:{type:Boolean}},emits:["onRichTextUpdated","onRichTextRemoved","onElementClicked"],setup(t,{emit:e}){Cd(v=>({v60d2e647:n.theme.Colors.PrimaryColor,v50380095:n.theme.Colors.SecondaryColor,c0ee59cc:n.theme.Colors.PrimaryTextColor,v71c7d330:n.theme.Colors.SecondaryTextColor,v7c12c31f:n.theme.Colors.CardBackgroundColor,v4864fd9e:n.theme.Colors.ButtonTextColor,v58735131:n.theme.Colors.TitleColor,v07ae7647:n.theme.Colors.HeadingColor,a7a6794a:n.theme.Colors.SubHeadingColor,v2ee46f81:n.theme.Colors.LargeTextColor,v13850389:n.theme.Colors.NormalTextColor,cd2ab940:n.theme.Colors.DescriptionTextColor,v12f184fa:n.theme.Colors.LinkColor,v21f0555f:n.theme.Colors.EmailBackgroundColor,bbf1064a:n.theme.Colors.BodyColor,v2a73a7e8:f.value}));const n=t,o=Le({isRemoveComponentWindowShown:!1,isEditing:!1}),r={removeWindowTitle:pke({localeKey:n.deps.localeKey}).removeWindowTitle,removeWindowDescription:pke({localeKey:n.deps.localeKey}).removeWindowDescription},i=Rt(null),s=Rt(null),{floatingStyles:a}=zF(s,i,{placement:"top",whileElementsMounted:WF,middleware:[HF(10)]}),l=ne(()=>{const v=a.value.transform??"translate(0px, 0px)",w=new DOMMatrix(v).m42;return{...a.value,left:"50%",transform:`translate(-50%, ${w}px)`}}),c=jK(),u=n.element.ContentAlign||Lke,d=ne(()=>Hl({fontFamily:n.theme.FontFamily,themeFontSettings:n.theme.FontSettingsPresets.NormalText,themeColor:n.theme.Colors.NormalTextColor})),h=ne(()=>{const v={...kpe(d.value)};return{fontSize:v.fontSize,lineHeight:v.lineHeight,fontFamily:v.fontFamily,fontWeight:v.fontWeight,fontStyle:v.fontStyle,color:v.color}}),p=lRt({content:mke(n.element.Text),extensions:[...o6t({dataSourceFieldNameDelegate:n.deps.dataSourceFieldNameDelegate,initialThemeName:Eke,themeColors:n.theme.Colors,fallbackContentAlign:n.element.ContentAlign||Lke})],editable:o.isEditing,autofocus:"all",onUpdate:({editor:v})=>{if(!o.isEditing)return;const w=r6t({editor:v});C("onRichTextUpdated",{...n.element,Text:w})}}),m=()=>{p.value&&(p.value.chain().focus().undo().run(),o.isRemoveComponentWindowShown=!1)},f=ne(()=>OHt({verticalAlign:n.element.ImageVerticalAlign})),g=()=>[document.querySelector(".rich-text-toolbar"),document.querySelector(".string-expression-builder-modal-window"),document.querySelector(`.rich-text-editor__content-${c}`)];on(()=>n.element.Text,()=>{p.value&&!o.isEditing&&p.value.commands.setContent(mke(n.element.Text))});const C=e;return(v,w)=>Ke((E(),R("span",{ref_key:"richTextElementRef",ref:s,class:G(["RichText cursor-pointer user-select-none",{selected:n.isSelected}]),style:Te([{...h.value,minHeight:n.element.MinHeight+"px",display:"block"}]),onClick:w[3]||(w[3]=Nt(()=>{C("onElementClicked"),o.isEditing=!0,N(p)&&N(p).setEditable(!0)},["prevent"]))},[I(N(aRt),{class:G(["rich-text-editor__content",`rich-text-editor__content-${N(c)}`]),editor:N(p)},null,8,["class","editor"]),N(p)&&o.isEditing?(E(),Q(MHt,{key:0,ref_key:"richTextToolbarRef",ref:i,editor:N(p),deps:n.deps.richTextToolbarDeps,element:n.element,theme:n.theme,initialThemeName:Eke,initialContentAlign:N(u),style:Te(l.value),onOnVerticalAlignVariantChanged:w[0]||(w[0]=S=>C("onRichTextUpdated",{...n.element,ImageVerticalAlign:S}))},null,8,["editor","deps","element","theme","initialContentAlign","style"])):oe("",!0),(E(),Q(yo,{to:"body",defer:""},[o.isRemoveComponentWindowShown?(E(),Q(Ch,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:r.removeWindowTitle,onCancel:w[1]||(w[1]=()=>m()),onConfirmed:w[2]||(w[2]=()=>{o.isRemoveComponentWindowShown=!1,C("onRichTextRemoved")})},{"body-content":Bt(()=>[no(W(r.removeWindowDescription),1)]),_:1},8,["deps","headerText"])):oe("",!0)]))],6)),[[N(Lg),{handler:()=>{o.isEditing=!1,N(p)&&N(p).setEditable(!1)},include:g}]])}}),VHt=ve(PHt,[["__scopeId","data-v-0a9d26ba"]]),WHt=re({__name:"UnsubscribeLink",props:{theme:{},element:{}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,o=ne(()=>{const i=Fpe({fontFamily:n.theme.FontFamily,fontStyle:n.element.Style,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors});return{...kpe(i)}}),r=e;return(i,s)=>(E(),R("a",{href:"#",class:"cursor-pointer user-select-none",style:Te([{margin:"0"},[o.value,N(oI)({contentAlign:n.element.ContentAlign})]]),onClick:s[0]||(s[0]=Nt(()=>r("onElementClicked"),["prevent"]))},W(n.element.Text),5))}}),HHt=ve(WHt,[["__scopeId","data-v-68ed9754"]]),zHt=["src","alt"],jHt={class:"bootstrap-styles position-absolute top-0 left-0",width:"100%",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",height:"100%"}},KHt={key:0},UHt=["align"],qHt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},JHt={align:"center",style:{width:"auto"}},GHt={key:0},YHt={key:1},ZHt=["align"],XHt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},QHt={align:"center",style:{width:"auto"}},ezt={key:2},tzt=["align"],nzt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},ozt={align:"center",style:{width:"auto"}},rzt={key:3},izt=["align"],szt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},azt={align:"center",style:{width:"auto"}},lzt=re({__name:"BackgroundImage",props:{deps:{},theme:{},element:{},context:{type:[String,Number,Boolean,Array,Object]},path:{},selectedElementPath:{}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved","onElementWrapperClicked"],setup(t,{emit:e}){const n=t,o=Le({src:"",href:"",isLoaded:!1}),r=async s=>n.deps.stringExpressionEvaluator({stringExpression:s,context:n.context});(async()=>(o.src=await r(n.element.Src),o.href=await r(n.element.HRef),o.isLoaded=!0))();const i=e;return(s,a)=>o.isLoaded?(E(),R("table",{key:0,class:"bootstrap-styles position-relative",style:Te([{"border-spacing":"0","border-collapse":"separate"},{width:"100%"}]),onClick:a[20]||(a[20]=Nt(()=>i("onElementWrapperClicked"),["prevent"]))},[b("tbody",null,[b("tr",null,[b("td",{align:"center",style:Te([{height:n.element.AdjustedHeight+"px",verticalAlign:"top"}])},[Ke(b("img",{src:o.src,alt:o.src,style:{"max-width":"100%"}},null,8,zHt),[[N(jw),({width:l,height:c})=>{i("onImageSizeAdjusted",{Path:n.path,AdjustedHeight:c,AdjustedWidth:l}),o.isLoaded=!0}]]),b("table",jHt,[b("tbody",null,[n.element.TopElementList.List.length>0&&n.element.TopElementList.Direction==="Vertical"?(E(),R("tr",KHt,[b("td",{valign:"top",align:N(bf)({containerAlign:n.element.TopElementList.ContentAlign})},[b("table",qHt,[b("tbody",null,[b("tr",null,[b("td",{style:Te({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)]),(E(!0),R(Se,null,At(n.element.TopElementList.List,(l,c)=>(E(),R(Se,{key:c},[b("tr",null,[n.element.TopElementList.ContentAlign==="Left"?(E(),R("td",{key:0,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0),b("td",JHt,[I(Bu,{deps:n.deps,theme:n.theme,element:l,path:[...n.path,"TopElementList","List",c],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:a[0]||(a[0]=u=>i("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:a[1]||(a[1]=u=>i("onImageOriginalSizeAdjusted",u)),onOnElementClicked:a[2]||(a[2]=u=>i("onElementClicked",u)),onOnElementUpdatedEvent:a[3]||(a[3]=u=>i("onElementUpdatedEvent",u)),onOnElementRemoved:a[4]||(a[4]=u=>i("onElementRemoved",u))},null,8,["deps","theme","element","path","selectedElementPath","context"])]),n.element.TopElementList.ContentAlign==="Right"?(E(),R("td",{key:1,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0)]),n.element.TopElementList.List.length-1!==c?(E(),R("tr",GHt,[b("td",{style:Te({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)])):oe("",!0)],64))),128))])])],8,UHt)])):oe("",!0),n.element.TopElementList.List.length>0&&n.element.TopElementList.Direction==="Horizontal"?(E(),R("tr",YHt,[b("td",{valign:"top",align:N(bf)({containerAlign:n.element.TopElementList.ContentAlign})},[b("table",XHt,[b("tbody",null,[b("tr",null,[b("td",{style:Te({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)]),b("tr",null,[(E(!0),R(Se,null,At(n.element.TopElementList.List,(l,c)=>(E(),R(Se,{key:c},[n.element.TopElementList.ContentAlign==="Left"&&c===0?(E(),R("td",{key:0,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0),b("td",QHt,[I(Bu,{deps:n.deps,theme:n.theme,element:l,path:[...n.path,"TopElementList","List",c],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:a[5]||(a[5]=u=>i("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:a[6]||(a[6]=u=>i("onImageOriginalSizeAdjusted",u)),onOnElementClicked:a[7]||(a[7]=u=>i("onElementClicked",u)),onOnElementUpdatedEvent:a[8]||(a[8]=u=>i("onElementUpdatedEvent",u)),onOnElementRemoved:a[9]||(a[9]=u=>i("onElementRemoved",u))},null,8,["deps","theme","element","path","selectedElementPath","context"])]),n.element.TopElementList.ContentAlign==="Center"&&n.element.TopElementList.List.length-1!==c?(E(),R("td",{key:1,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0),n.element.TopElementList.ContentAlign==="Right"?(E(),R("td",{key:2,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0),n.element.TopElementList.ContentAlign==="Left"&&n.element.TopElementList.List.length-1!==c?(E(),R("td",{key:3,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0)],64))),128))])])])],8,ZHt)])):oe("",!0),n.element.BottomElementList.List.length>0&&n.element.BottomElementList.Direction==="Vertical"?(E(),R("tr",ezt,[b("td",{valign:"bottom",align:N(bf)({containerAlign:n.element.BottomElementList.ContentAlign})},[b("table",nzt,[b("tbody",null,[(E(!0),R(Se,null,At(n.element.BottomElementList.List,(l,c)=>(E(),R(Se,{key:c},[b("tr",null,[n.element.BottomElementList.ContentAlign==="Left"?(E(),R("td",{key:0,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0),b("td",ozt,[I(Bu,{deps:n.deps,theme:n.theme,element:l,path:[...n.path,"BottomElementList","List",c],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:a[10]||(a[10]=u=>i("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:a[11]||(a[11]=u=>i("onImageOriginalSizeAdjusted",u)),onOnElementClicked:a[12]||(a[12]=u=>i("onElementClicked",u)),onOnElementUpdatedEvent:a[13]||(a[13]=u=>i("onElementUpdatedEvent",u)),onOnElementRemoved:a[14]||(a[14]=u=>i("onElementRemoved",u))},null,8,["deps","theme","element","path","selectedElementPath","context"])]),n.element.BottomElementList.ContentAlign==="Right"?(E(),R("td",{key:1,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0)]),b("tr",null,[b("td",{style:Te({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)])],64))),128))])])],8,tzt)])):oe("",!0),n.element.BottomElementList.List.length>0&&n.element.BottomElementList.Direction==="Horizontal"?(E(),R("tr",rzt,[b("td",{valign:"bottom",align:N(bf)({containerAlign:n.element.BottomElementList.ContentAlign})},[b("table",szt,[b("tbody",null,[b("tr",null,[(E(!0),R(Se,null,At(n.element.BottomElementList.List,(l,c)=>(E(),R(Se,{key:c},[n.element.BottomElementList.ContentAlign==="Left"&&c===0?(E(),R("td",{key:0,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0),b("td",azt,[I(Bu,{deps:n.deps,theme:n.theme,element:l,path:[...n.path,"BottomElementList","List",c],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:a[15]||(a[15]=u=>i("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:a[16]||(a[16]=u=>i("onImageOriginalSizeAdjusted",u)),onOnElementClicked:a[17]||(a[17]=u=>i("onElementClicked",u)),onOnElementUpdatedEvent:a[18]||(a[18]=u=>i("onElementUpdatedEvent",u)),onOnElementRemoved:a[19]||(a[19]=u=>i("onElementRemoved",u))},null,8,["deps","theme","element","path","selectedElementPath","context"])]),n.element.BottomElementList.ContentAlign==="Center"&&n.element.BottomElementList.List.length-1!==c?(E(),R("td",{key:1,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0),n.element.BottomElementList.ContentAlign==="Right"?(E(),R("td",{key:2,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0),n.element.BottomElementList.ContentAlign==="Left"&&n.element.BottomElementList.List.length-1!==c?(E(),R("td",{key:3,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0)],64))),128))])])])],8,izt)])):oe("",!0)])])],4)])])])):oe("",!0)}}),Bu=re({__name:"Elements",props:{deps:{},theme:{},element:{},path:{},context:{type:[String,Number,Boolean,Array,Object]},selectedElementPath:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=e,r=(i,s)=>{o("onElementClicked",{element:i,path:[...n.path,s]})};return(i,s)=>(E(),R("span",{onClick:s[31]||(s[31]=Nt(()=>{},["stop"]))},[n.element.Button!==void 0?(E(),Q(hVt,{key:0,deps:n.deps,theme:n.theme,element:n.element.Button,context:n.context,class:G({"element-selected":N(n1)(n.selectedElementPath,[...n.path,"Button"])}),onOnElementClicked:s[0]||(s[0]=a=>r(n.element,"Button"))},null,8,["deps","theme","element","context","class"])):oe("",!0),n.element.HeightContainer!==void 0?(E(),Q(KPt,{key:1,deps:n.deps,theme:n.theme,element:n.element.HeightContainer,path:[...n.path,"HeightContainer"],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageOriginalSizeAdjusted:s[1]||(s[1]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[2]||(s[2]=a=>o("onImageSizeAdjusted",a)),onOnElementClicked:s[3]||(s[3]=a=>o("onElementClicked",a)),onOnElementRemoved:s[4]||(s[4]=a=>o("onElementRemoved",a)),onOnElementUpdatedEvent:s[5]||(s[5]=a=>o("onElementUpdatedEvent",a))},null,8,["deps","theme","element","path","selectedElementPath","context"])):oe("",!0),n.element.Image!==void 0?(E(),Q(ZPt,{key:2,deps:n.deps,theme:n.theme,element:n.element.Image,context:n.context,path:[...n.path,"Image"],class:G({"element-selected":N(n1)(n.selectedElementPath,[...n.path,"Image"])}),onOnImageOriginalSizeAdjusted:s[6]||(s[6]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[7]||(s[7]=a=>o("onImageSizeAdjusted",a)),onOnElementClicked:s[8]||(s[8]=a=>r(n.element,"Image"))},null,8,["deps","theme","element","context","path","class"])):oe("",!0),n.element.Spacer!==void 0?(E(),Q(oVt,{key:3,element:n.element.Spacer,theme:n.theme,class:G({"element-selected":N(n1)(n.selectedElementPath,[...n.path,"Spacer"])}),onOnElementClicked:s[9]||(s[9]=a=>r(n.element,"Spacer"))},null,8,["element","theme","class"])):oe("",!0),n.element.SpanText!==void 0?(E(),Q(fVt,{key:4,deps:n.deps,theme:n.theme,element:n.element.SpanText,context:n.context,class:G({"element-selected":N(n1)(n.selectedElementPath,[...n.path,"SpanText"])}),onOnElementClicked:s[10]||(s[10]=a=>r(n.element,"SpanText"))},null,8,["deps","theme","element","context","class"])):oe("",!0),n.element.RichText!==void 0?(E(),Q(VHt,{key:5,deps:n.deps.richTextDeps,theme:n.theme,element:n.element.RichText,isSelected:N(n1)(n.selectedElementPath,[...n.path,"RichText"]),onOnElementClicked:s[11]||(s[11]=a=>r(n.element,"RichText")),onOnRichTextUpdated:s[12]||(s[12]=a=>{o("onElementUpdatedEvent",{path:n.path,element:{RichText:a}})}),onOnRichTextRemoved:s[13]||(s[13]=()=>{o("onElementRemoved",n.path)})},null,8,["deps","theme","element","isSelected"])):oe("",!0),n.element.OneLineList!==void 0?(E(),Q(tVt,{key:6,deps:n.deps,theme:n.theme,element:n.element.OneLineList,path:[...n.path,"OneLineList"],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageOriginalSizeAdjusted:s[14]||(s[14]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[15]||(s[15]=a=>o("onImageSizeAdjusted",a)),onOnElementClicked:s[16]||(s[16]=a=>o("onElementClicked",a)),onOnElementRemoved:s[17]||(s[17]=a=>o("onElementRemoved",a)),onOnElementUpdatedEvent:s[18]||(s[18]=a=>o("onElementUpdatedEvent",a))},null,8,["deps","theme","element","path","selectedElementPath","context"])):oe("",!0),n.element.If!==void 0?(E(),Q(WPt,{key:7,deps:n.deps,theme:n.theme,element:n.element.If,context:n.context,path:[...n.path,"If"],selectedElementPath:n.selectedElementPath,onOnImageOriginalSizeAdjusted:s[19]||(s[19]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[20]||(s[20]=a=>o("onImageSizeAdjusted",a)),onOnElementClicked:s[21]||(s[21]=a=>o("onElementClicked",a)),onOnElementRemoved:s[22]||(s[22]=a=>o("onElementRemoved",a)),onOnElementUpdatedEvent:s[23]||(s[23]=a=>o("onElementUpdatedEvent",a))},null,8,["deps","theme","element","context","path","selectedElementPath"])):oe("",!0),n.element.UnsubscribeLink!==void 0?(E(),Q(HHt,{key:8,theme:n.theme,element:n.element.UnsubscribeLink,class:G({"element-selected":N(n1)(n.selectedElementPath,[...n.path,"UnsubscribeLink"])}),onOnElementClicked:s[24]||(s[24]=a=>r(n.element,"UnsubscribeLink"))},null,8,["theme","element","class"])):oe("",!0),n.element.BackgroundImage!==void 0?(E(),Q(lzt,{key:9,deps:n.deps,theme:n.theme,element:n.element.BackgroundImage,context:n.context,path:[...n.path,"BackgroundImage"],selectedElementPath:n.selectedElementPath,class:G({"element-selected":N(n1)(n.selectedElementPath,[...n.path,"BackgroundImage"])}),onOnImageOriginalSizeAdjusted:s[25]||(s[25]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[26]||(s[26]=a=>o("onImageSizeAdjusted",a)),onOnElementClicked:s[27]||(s[27]=a=>o("onElementClicked",a)),onOnElementRemoved:s[28]||(s[28]=a=>o("onElementRemoved",a)),onOnElementUpdatedEvent:s[29]||(s[29]=a=>o("onElementUpdatedEvent",a)),onOnElementWrapperClicked:s[30]||(s[30]=a=>r(n.element,"BackgroundImage"))},null,8,["deps","theme","element","context","path","selectedElementPath","class"])):oe("",!0)]))}}),czt=["align"],uzt=re({__name:"IteratedColumn",props:{deps:{},theme:{},iteratedColumn:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]},containerWidth:{}},emits:["onImageSizeAdjusted","onImageOriginalSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){Cd(i=>({v63736150:r.value}));const n=t,o=e,r=ne(()=>n.iteratedColumn.WidthInPercents*n.containerWidth+"px");return(i,s)=>(E(),R("div",{class:"iterated-column",style:Te({display:"inline-block",verticalAlign:n.iteratedColumn.VerticalAlign})},[b("table",{style:Te([[N(i$)({borderCollapse:n.iteratedColumn.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[b("tbody",null,[b("tr",null,[b("td",{align:N(bf)({containerAlign:n.iteratedColumn.ContainerAlign}),style:Te([[N(cg)({border:n.iteratedColumn.Border,themeColors:n.theme.Colors}),{backgroundColor:N(lc)({color:n.iteratedColumn.BgColor,themeColors:n.theme.Colors})},N(zp)({borderRadius:n.iteratedColumn.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})],{"line-height":"normal"}])},[(E(!0),R(Se,null,At(n.iteratedColumn.Elements,(a,l)=>(E(),Q(Bu,{key:l,deps:n.deps.elementsDeps,theme:n.theme,element:a,context:n.context,path:[...n.path,"Elements",l],selectedElementPath:n.selectedElementPath,onOnElementClicked:s[0]||(s[0]=c=>o("onElementClicked",c)),onOnImageSizeAdjusted:s[1]||(s[1]=c=>o("onImageSizeAdjusted",c)),onOnImageOriginalSizeAdjusted:s[2]||(s[2]=c=>o("onImageOriginalSizeAdjusted",c)),onOnElementUpdatedEvent:s[3]||(s[3]=c=>o("onElementUpdatedEvent",c)),onOnElementRemoved:s[4]||(s[4]=c=>o("onElementRemoved",c))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,czt)])])],4)],4))}}),dzt=ve(uzt,[["__scopeId","data-v-4bdaa248"]]),hzt=["align"],pzt=re({__name:"IteratedColumnN21",props:{deps:{},theme:{},iteratedColumnN21:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]},containerWidth:{}},emits:["onImageSizeAdjusted","onImageOriginalSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){Cd(i=>({v2fbddeb4:r.value}));const n=t,o=e,r=ne(()=>n.iteratedColumnN21.WidthInPercents*n.containerWidth+"px");return(i,s)=>(E(),R("div",{class:"iterated-column__N-2-1",style:Te({display:"inline-block",verticalAlign:n.iteratedColumnN21.VerticalAlign})},[b("table",{style:Te([[N(i$)({borderCollapse:n.iteratedColumnN21.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[b("tbody",null,[b("tr",null,[b("td",{align:N(bf)({containerAlign:n.iteratedColumnN21.ContainerAlign}),style:Te([[N(cg)({border:n.iteratedColumnN21.Border,themeColors:n.theme.Colors}),{backgroundColor:N(lc)({color:n.iteratedColumnN21.BgColor,themeColors:n.theme.Colors})},N(zp)({borderRadius:n.iteratedColumnN21.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})],{"line-height":"normal"}])},[(E(!0),R(Se,null,At(n.iteratedColumnN21.Elements,(a,l)=>(E(),Q(Bu,{key:l,deps:n.deps.elementsDeps,theme:n.theme,element:a,context:n.context,path:[...n.path,"Elements",l],selectedElementPath:n.selectedElementPath,onOnElementClicked:s[0]||(s[0]=c=>o("onElementClicked",c)),onOnImageSizeAdjusted:s[1]||(s[1]=c=>o("onImageSizeAdjusted",c)),onOnImageOriginalSizeAdjusted:s[2]||(s[2]=c=>o("onImageOriginalSizeAdjusted",c)),onOnElementUpdatedEvent:s[3]||(s[3]=c=>o("onElementUpdatedEvent",c)),onOnElementRemoved:s[4]||(s[4]=c=>o("onElementRemoved",c))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,hzt)])])],4)],4))}}),mzt=ve(pzt,[["__scopeId","data-v-b46af162"]]),fzt=["align"],gzt=re({__name:"IteratedColumnN22",props:{deps:{},theme:{},iteratedColumnN22:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]},containerWidth:{}},emits:["onImageSizeAdjusted","onImageOriginalSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){Cd(i=>({v904d8f2c:r.value}));const n=t,o=e,r=ne(()=>n.iteratedColumnN22.WidthInPercents*n.containerWidth+"px");return(i,s)=>(E(),R("div",{class:"iterated-column__N-2-2",style:Te({display:"inline-block",verticalAlign:n.iteratedColumnN22.VerticalAlign})},[b("table",{style:Te([[N(i$)({borderCollapse:n.iteratedColumnN22.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[b("tbody",null,[b("tr",null,[b("td",{align:N(bf)({containerAlign:n.iteratedColumnN22.ContainerAlign}),style:Te([[N(cg)({border:n.iteratedColumnN22.Border,themeColors:n.theme.Colors}),{backgroundColor:N(lc)({color:n.iteratedColumnN22.BgColor,themeColors:n.theme.Colors})},N(zp)({borderRadius:n.iteratedColumnN22.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})],{"line-height":"normal"}])},[(E(!0),R(Se,null,At(n.iteratedColumnN22.Elements,(a,l)=>(E(),Q(Bu,{key:l,deps:n.deps.elementsDeps,theme:n.theme,element:a,context:n.context,path:[...n.path,"Elements",l],selectedElementPath:n.selectedElementPath,onOnElementClicked:s[0]||(s[0]=c=>o("onElementClicked",c)),onOnImageSizeAdjusted:s[1]||(s[1]=c=>o("onImageSizeAdjusted",c)),onOnImageOriginalSizeAdjusted:s[2]||(s[2]=c=>o("onImageOriginalSizeAdjusted",c)),onOnElementUpdatedEvent:s[3]||(s[3]=c=>o("onElementUpdatedEvent",c)),onOnElementRemoved:s[4]||(s[4]=c=>o("onElementRemoved",c))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,fzt)])])],4)],4))}}),yzt=ve(gzt,[["__scopeId","data-v-319c5209"]]),Czt={class:"iterated-column-container",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"},width:"100%"},bzt={align:"center",style:{"font-size":"0"}},vzt=re({__name:"IteratedColumnBodyRow",props:{deps:{},theme:{},iteratedColumnBodyRow:{},path:{},selectedElementPath:{},context:{},rowWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){Cd(l=>({a80c0c96:i.value}));const n=t,o=Le({dataList:[],isLoaded:!1}),r=()=>n.deps.listExpressionEvaluator({listExpression:n.iteratedColumnBodyRow.DataSource,context:n.context}).then(l=>{o.dataList=l,o.isLoaded=!0});r(),on(()=>n.context,()=>r());const i=ne(()=>Jr({paddingExpression:n.iteratedColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})+"px"),s={iteratedColumn:l=>l!==void 0,iteratedColumnVariant:l=>l!==void 0,iteratedColumnN21:l=>l!==void 0,iteratedColumnN22:l=>l!==void 0},a=e;return(l,c)=>(E(),R("table",Czt,[b("tbody",null,[b("tr",null,[b("td",bzt,[(E(!0),R(Se,null,At(o.dataList,(u,d)=>(E(),R(Se,{key:d},[s.iteratedColumn(n.iteratedColumnBodyRow.IteratedColumn)?(E(),Q(dzt,{key:d,class:G(["iterated-column-bottom-spacer",{"iterated-column__tablet-padding-right":(d+1)%2===1,"iterated-column__tablet-padding-left":(d+1)%2===0,"is-last-desktop-line":d>=o.dataList.length-n.iteratedColumnBodyRow.NumberColumnsInLine,"is-last-tablet-line":d>=o.dataList.length-2,"is-last-mobile-line":d==o.dataList.length-1}]),deps:n.deps.iteratedColumnDeps,theme:n.theme,style:Te(N(V6)({numberColumnsInLine:n.iteratedColumnBodyRow.NumberColumnsInLine,index:d,paddingSize:N(Jr)({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]:u},containerWidth:n.rowWidth,onOnElementClicked:c[0]||(c[0]=h=>a("onElementClicked",h)),onOnImageOriginalSizeAdjusted:c[1]||(c[1]=h=>a("onImageOriginalSizeAdjusted",h)),onOnImageSizeAdjusted:c[2]||(c[2]=h=>a("onImageSizeAdjusted",h)),onOnElementUpdatedEvent:c[3]||(c[3]=h=>a("onElementUpdatedEvent",h)),onOnElementRemoved:c[4]||(c[4]=h=>a("onElementRemoved",h))},null,8,["deps","theme","class","style","iteratedColumn","path","selectedElementPath","context","containerWidth"])):oe("",!0),s.iteratedColumnVariant(n.iteratedColumnBodyRow.IteratedColumnVariant)?(E(),R(Se,{key:1},[s.iteratedColumnN21(n.iteratedColumnBodyRow.IteratedColumnVariant.IteratedColumnN21)?(E(),Q(mzt,{key:d,deps:n.deps.iteratedColumnVariantDeps.iteratedColumnN21Deps,theme:n.theme,class:G(["iterated-column-bottom-spacer",{"iterated-column__tablet-padding-right":(d+1)%2===1,"iterated-column__tablet-padding-left":(d+1)%2===0,"is-last-desktop-line":d>=o.dataList.length-n.iteratedColumnBodyRow.NumberColumnsInLine,"is-last-tablet-line":d>=o.dataList.length-2,"is-last-mobile-line":d==o.dataList.length-1}]),style:Te(N(V6)({numberColumnsInLine:n.iteratedColumnBodyRow.NumberColumnsInLine,index:d,paddingSize:N(Jr)({paddingExpression:n.iteratedColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),directionRtl:!1})),iteratedColumnN21:n.iteratedColumnBodyRow.IteratedColumnVariant.IteratedColumnN21,path:[...n.path,"IteratedColumnVariant","IteratedColumnN21"],selectedElementPath:n.selectedElementPath,context:{...n.context,[n.iteratedColumnBodyRow.IndexName]:u},containerWidth:n.rowWidth,onOnElementClicked:c[5]||(c[5]=h=>a("onElementClicked",h)),onOnImageOriginalSizeAdjusted:c[6]||(c[6]=h=>a("onImageOriginalSizeAdjusted",h)),onOnImageSizeAdjusted:c[7]||(c[7]=h=>a("onImageSizeAdjusted",h)),onOnElementUpdatedEvent:c[8]||(c[8]=h=>a("onElementUpdatedEvent",h)),onOnElementRemoved:c[9]||(c[9]=h=>a("onElementRemoved",h))},null,8,["deps","theme","class","style","iteratedColumnN21","path","selectedElementPath","context","containerWidth"])):oe("",!0),s.iteratedColumnN22(n.iteratedColumnBodyRow.IteratedColumnVariant.IteratedColumnN22)?(E(),Q(yzt,{key:d,deps:n.deps.iteratedColumnVariantDeps.iteratedColumnN22Deps,theme:n.theme,class:G(["iterated-column-bottom-spacer",{"iterated-column__tablet-padding-right iterated-column__N-2-2_mobile-padding-right":(d+1)%2===1,"iterated-column__tablet-padding-left iterated-column__N-2-2_mobile-padding-left":(d+1)%2===0,"is-last-desktop-line":d>=o.dataList.length-n.iteratedColumnBodyRow.NumberColumnsInLine,"is-last-tablet-line is-last-mobile-line":d>=o.dataList.length-2}]),style:Te(N(V6)({numberColumnsInLine:n.iteratedColumnBodyRow.NumberColumnsInLine,index:d,paddingSize:N(Jr)({paddingExpression:n.iteratedColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),directionRtl:!1})),iteratedColumnN22:n.iteratedColumnBodyRow.IteratedColumnVariant.IteratedColumnN22,path:[...n.path,"IteratedColumnVariant","IteratedColumnN22"],selectedElementPath:n.selectedElementPath,context:{...n.context,[n.iteratedColumnBodyRow.IndexName]:u},containerWidth:n.rowWidth,onOnElementClicked:c[10]||(c[10]=h=>a("onElementClicked",h)),onOnImageOriginalSizeAdjusted:c[11]||(c[11]=h=>a("onImageOriginalSizeAdjusted",h)),onOnImageSizeAdjusted:c[12]||(c[12]=h=>a("onImageSizeAdjusted",h)),onOnElementUpdatedEvent:c[13]||(c[13]=h=>a("onElementUpdatedEvent",h)),onOnElementRemoved:c[14]||(c[14]=h=>a("onElementRemoved",h))},null,8,["deps","theme","class","style","iteratedColumnN22","path","selectedElementPath","context","containerWidth"])):oe("",!0)],64)):oe("",!0)],64))),128))])])])]))}}),wzt=ve(vzt,[["__scopeId","data-v-69ed8d34"]]),Szt={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"}},xzt=re({__name:"IteratedBodyRow",props:{theme:{},deps:{},iteratedBodyRow:{},path:{},selectedElementPath:{},context:{},containerWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=Le({dataList:[]});n.deps.listExpressionEvaluator({listExpression:n.iteratedBodyRow.DataSource,context:n.context}).then(i=>o.dataList=i);const r=e;return(i,s)=>(E(),R("table",Szt,[(E(!0),R(Se,null,At(o.dataList,(a,l)=>(E(),R("tr",{key:l},[b("td",{style:Te([N(s$)({paddings:n.iteratedBodyRow.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})])},[I(_9e,{emailComponentBodyRow:n.iteratedBodyRow.BodyRow,deps:{iteratedColumnBodyRowDeps:n.deps.iteratedColumnBodyRowDeps,multipleColumnBodyRowDeps:n.deps.multipleColumnBodyRowDeps,simpleBodyRowDeps:n.deps.simpleBodyRowDeps,listExpressionEvaluator:n.deps.listExpressionEvaluator},theme:n.theme,context:{...n.context,[n.iteratedBodyRow.IndexName]:a},rowWidth:n.containerWidth,path:[...n.path,"BodyRow"],selectedElementPath:n.selectedElementPath,onOnElementClicked:s[0]||(s[0]=c=>r("onElementClicked",c)),onOnImageOriginalSizeAdjusted:s[1]||(s[1]=c=>r("onImageOriginalSizeAdjusted",c)),onOnImageSizeAdjusted:s[2]||(s[2]=c=>r("onImageSizeAdjusted",c)),onOnColumnWidthAdjusted:s[3]||(s[3]=c=>r("onColumnWidthAdjusted",c)),onOnElementUpdatedEvent:s[4]||(s[4]=c=>r("onElementUpdatedEvent",c)),onOnElementRemoved:s[5]||(s[5]=c=>r("onElementRemoved",c))},null,8,["emailComponentBodyRow","deps","theme","context","rowWidth","path","selectedElementPath"])],4)]))),128))]))}}),Tzt=t=>({Match:e=>{switch(t){case"Top":return e.Top();case"Middle":return e.Middle();case"Bottom":return e.Bottom();case"Baseline":return e.Baseline()}}}),kzt=t=>Tzt(t).Match({Top:()=>"start",Middle:()=>"center",Bottom:()=>"end",Baseline:()=>"baseline"}),Fzt=hs,Ezt=t=>({JustifyWidth:{WidthInPixels:t}}),Lzt=t=>({ShrinkToContentWidth:{WidthInPixels:t}}),_zt=RPt,Azt=["align"],Rzt=re({__name:"MultipleColumn",props:{deps:{},theme:{},multipleColumn:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]},containerWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){Cd(l=>({acad954c:a.value,v1971599c:s.value,v72b8524e:i.value}));const n=t,o=e,r=l=>{Fzt(n.multipleColumn.Width).Match({JustifyWidth:()=>L0.Some(Ezt(l)),ShrinkToContentWidth:()=>L0.Some(Lzt(l)),WidthInPercents:()=>L0.None}).map(c=>o("onColumnWidthAdjusted",{Path:n.path,Width:c}))},i=ne(()=>_zt(n.multipleColumn.Width).Match({default:()=>"",WidthInPercents:l=>l.Value*n.containerWidth+"px"})),s=ne(()=>kzt(n.multipleColumn.VerticalAlign)),a=ne(()=>n.multipleColumn.VerticalAlign);return(l,c)=>Ke((E(),R("div",{class:G(["multiple-column",{"multiple-column--justifyWidth":n.multipleColumn.Width.JustifyWidth!==void 0,"multiple-column--shrinkToContentWidth":n.multipleColumn.Width.ShrinkToContentWidth!==void 0,"multiple-column--widthInPercents":n.multipleColumn.Width.WidthInPercents!==void 0}]),style:{direction:"ltr"}},[b("table",{style:Te([{width:"100%","border-spacing":"0"},[N(i$)({borderCollapse:n.multipleColumn.BorderCollapse})]]),width:"100%"},[b("tbody",null,[b("tr",null,[b("td",{align:N(bf)({containerAlign:n.multipleColumn.ContainerAlign}),style:Te([[N(cg)({border:n.multipleColumn.Border,themeColors:n.theme.Colors}),N(zp)({borderRadius:n.multipleColumn.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:N(lc)({color:n.multipleColumn.BgColor,themeColors:n.theme.Colors})},N(s$)({paddings:n.multipleColumn.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})],{"line-height":"normal"}])},[(E(!0),R(Se,null,At(n.multipleColumn.Elements,(u,d)=>(E(),Q(Bu,{key:d,deps:n.deps.elementsDeps,theme:n.theme,element:u,context:n.context,path:[...n.path,"Elements",d],selectedElementPath:n.selectedElementPath,onOnElementClicked:c[0]||(c[0]=h=>o("onElementClicked",h)),onOnImageSizeAdjusted:c[1]||(c[1]=h=>o("onImageSizeAdjusted",h)),onOnImageOriginalSizeAdjusted:c[2]||(c[2]=h=>o("onImageOriginalSizeAdjusted",h)),onOnElementUpdatedEvent:c[3]||(c[3]=h=>o("onElementUpdatedEvent",h)),onOnElementRemoved:c[4]||(c[4]=h=>o("onElementRemoved",h))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,Azt)])])],4)],2)),[[N(jw),u=>r(u.width)]])}}),Dzt=ve(Rzt,[["__scopeId","data-v-bfa1869f"]]),Bzt=re({__name:"MultipleColumnBodyRow",props:{deps:{},theme:{},multipleColumnBodyRow:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]},rowWidth:{}},emits:["onElementClicked","onImageSizeAdjusted","onImageOriginalSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){Cd(i=>({v36e68443:r.value}));const n=t,o=e,r=ne(()=>Jr({paddingExpression:n.multipleColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})+"px");return(i,s)=>(E(),R("table",{class:"multiple-column-container",style:Te([[N(i$)({borderCollapse:n.multipleColumnBodyRow.BorderCollapse}),N(cg)({border:n.multipleColumnBodyRow.Border,themeColors:n.theme.Colors}),N(zp)({borderRadius:n.multipleColumnBodyRow.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:N(lc)({color:n.multipleColumnBodyRow.BgColor,themeColors:n.theme.Colors})}],{"border-spacing":"0",width:"100%",margin:"0 auto"}]),width:"100%"},[b("tbody",null,[b("tr",null,[b("td",{class:"multiple-column-container__inner",style:Te([{"font-size":"0"},[N(VPt)({containerAlign:n.multipleColumnBodyRow.ContainerAlign}),N(s$)({paddings:n.multipleColumnBodyRow.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),n.multipleColumnBodyRow.DirectionRtl?{direction:"rtl"}:{direction:"ltr"}]])},[(E(!0),R(Se,null,At(n.multipleColumnBodyRow.Columns,(a,l)=>(E(),Q(Dzt,{key:l,deps:n.deps.multipleColumnDeps,theme:n.theme,multipleColumn:a,path:[...n.path,"Columns",l],selectedElementPath:n.selectedElementPath,context:n.context,containerWidth:n.rowWidth-N(Jr)({paddingExpression:n.multipleColumnBodyRow.Paddings.Left,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})-N(Jr)({paddingExpression:n.multipleColumnBodyRow.Paddings.Right,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})-n.multipleColumnBodyRow.Border.Left.Width-n.multipleColumnBodyRow.Border.Right.Width,style:Te(N(V6)({numberColumnsInLine:n.multipleColumnBodyRow.Columns.length,index:l,paddingSize:N(Jr)({paddingExpression:n.multipleColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),directionRtl:n.multipleColumnBodyRow.DirectionRtl})),class:G({"is-last-tablet-line":l==n.multipleColumnBodyRow.Columns.length-1,"is-last-mobile-line":l==n.multipleColumnBodyRow.Columns.length-1}),onOnElementClicked:s[0]||(s[0]=c=>o("onElementClicked",c)),onOnColumnWidthAdjusted:s[1]||(s[1]=c=>o("onColumnWidthAdjusted",c)),onOnImageSizeAdjusted:s[2]||(s[2]=c=>o("onImageSizeAdjusted",c)),onOnImageOriginalSizeAdjusted:s[3]||(s[3]=c=>o("onImageOriginalSizeAdjusted",c)),onOnElementUpdatedEvent:s[4]||(s[4]=c=>o("onElementUpdatedEvent",c)),onOnElementRemoved:s[5]||(s[5]=c=>o("onElementRemoved",c))},null,8,["deps","theme","multipleColumn","path","selectedElementPath","context","containerWidth","style","class"]))),128))],4)])])],4))}}),Nzt=ve(Bzt,[["__scopeId","data-v-c6ebdc94"]]),Izt=re({__name:"SimpleBodyRow",props:{deps:{},theme:{},simpleBodyRow:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageSizeAdjusted","onImageOriginalSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(!0),R(Se,null,At(n.simpleBodyRow.Elements,(s,a)=>(E(),Q(Bu,{key:a,deps:n.deps.elementsDeps,theme:n.theme,element:s,context:n.context,path:[...n.path,"Elements",a],selectedElementPath:n.selectedElementPath,onOnElementClicked:i[0]||(i[0]=l=>o("onElementClicked",l)),onOnImageSizeAdjusted:i[1]||(i[1]=l=>o("onImageSizeAdjusted",l)),onOnImageOriginalSizeAdjusted:i[2]||(i[2]=l=>o("onImageOriginalSizeAdjusted",l)),onOnElementUpdatedEvent:i[3]||(i[3]=l=>o("onElementUpdatedEvent",l)),onOnElementRemoved:i[4]||(i[4]=l=>o("onElementRemoved",l))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))}}),_9e=re({__name:"EmailComponentBodyRow",props:{deps:{},theme:{},emailComponentBodyRow:{},path:{},selectedElementPath:{},context:{},rowWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o={multipleColumns:i=>i!==void 0,iteratedColumns:i=>i!==void 0,iteratedBodyRow:i=>i!==void 0,simpleBodyRow:i=>i!==void 0},r=e;return(i,s)=>(E(),R("div",null,[o.multipleColumns(n.emailComponentBodyRow.MultipleColumnBodyRow)?(E(),Q(Nzt,{key:0,deps:n.deps.multipleColumnBodyRowDeps,theme:n.theme,multipleColumnBodyRow:n.emailComponentBodyRow.MultipleColumnBodyRow,path:[...n.path,"MultipleColumnBodyRow"],selectedElementPath:n.selectedElementPath,context:t.context,rowWidth:n.rowWidth,onOnColumnWidthAdjusted:s[0]||(s[0]=a=>r("onColumnWidthAdjusted",a)),onOnImageOriginalSizeAdjusted:s[1]||(s[1]=a=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[2]||(s[2]=a=>r("onImageSizeAdjusted",a)),onOnElementClicked:s[3]||(s[3]=a=>r("onElementClicked",a)),onOnElementUpdatedEvent:s[4]||(s[4]=a=>r("onElementUpdatedEvent",a)),onOnElementRemoved:s[5]||(s[5]=a=>r("onElementRemoved",a))},null,8,["deps","theme","multipleColumnBodyRow","path","selectedElementPath","context","rowWidth"])):oe("",!0),o.iteratedColumns(n.emailComponentBodyRow.IteratedColumnBodyRow)?(E(),Q(wzt,{key:1,deps:n.deps.iteratedColumnBodyRowDeps,theme:n.theme,iteratedColumnBodyRow:n.emailComponentBodyRow.IteratedColumnBodyRow,path:[...n.path,"IteratedColumnBodyRow"],selectedElementPath:n.selectedElementPath,context:t.context,rowWidth:n.rowWidth,onOnElementClicked:s[6]||(s[6]=a=>r("onElementClicked",a)),onOnImageOriginalSizeAdjusted:s[7]||(s[7]=a=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[8]||(s[8]=a=>r("onImageSizeAdjusted",a)),onOnElementUpdatedEvent:s[9]||(s[9]=a=>r("onElementUpdatedEvent",a)),onOnElementRemoved:s[10]||(s[10]=a=>r("onElementRemoved",a))},null,8,["deps","theme","iteratedColumnBodyRow","path","selectedElementPath","context","rowWidth"])):oe("",!0),o.iteratedBodyRow(n.emailComponentBodyRow.IteratedBodyRow)?(E(),Q(xzt,{key:2,deps:{iteratedColumnBodyRowDeps:n.deps.iteratedColumnBodyRowDeps,multipleColumnBodyRowDeps:n.deps.multipleColumnBodyRowDeps,simpleBodyRowDeps:n.deps.simpleBodyRowDeps,listExpressionEvaluator:n.deps.listExpressionEvaluator},theme:n.theme,iteratedBodyRow:n.emailComponentBodyRow.IteratedBodyRow,path:[...n.path,"IteratedBodyRow"],selectedElementPath:n.selectedElementPath,context:t.context,containerWidth:n.rowWidth,onOnElementClicked:s[11]||(s[11]=a=>r("onElementClicked",a)),onOnImageOriginalSizeAdjusted:s[12]||(s[12]=a=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[13]||(s[13]=a=>r("onImageSizeAdjusted",a)),onOnElementUpdatedEvent:s[14]||(s[14]=a=>r("onElementUpdatedEvent",a)),onOnElementRemoved:s[15]||(s[15]=a=>r("onElementRemoved",a))},null,8,["deps","theme","iteratedBodyRow","path","selectedElementPath","context","containerWidth"])):oe("",!0),o.simpleBodyRow(n.emailComponentBodyRow.SimpleBodyRow)?(E(),Q(Izt,{key:3,deps:n.deps.simpleBodyRowDeps,theme:n.theme,simpleBodyRow:n.emailComponentBodyRow.SimpleBodyRow,path:[...n.path,"SimpleBodyRow"],selectedElementPath:n.selectedElementPath,context:t.context,onOnElementClicked:s[16]||(s[16]=a=>r("onElementClicked",a)),onOnImageOriginalSizeAdjusted:s[17]||(s[17]=a=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[18]||(s[18]=a=>r("onImageSizeAdjusted",a)),onOnElementUpdatedEvent:s[19]||(s[19]=a=>r("onElementUpdatedEvent",a)),onOnElementRemoved:s[20]||(s[20]=a=>r("onElementRemoved",a))},null,8,["deps","theme","simpleBodyRow","path","selectedElementPath","context"])):oe("",!0)]))}}),Mzt={emptyEmailComponentText:"Product shelf is hidden due to insufficient products",emptyEmailComponentTooltip:"The product shelf won't be displayed to recipients until it contains enough products",requiredComponentNotification:"Without this component the letter will not be sent"},$zt={emptyEmailComponentText:"Товарная полка скрыта из-за недостатка товаров",emptyEmailComponentTooltip:"Товарная полка не будет отображаться у получателей письма пока в ней недостаточно товаров",requiredComponentNotification:"Без этого компонента письмо не будет отправлено"},IY=ht({en:Mzt,ru:$zt}),Ozt={},Pzt={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Vzt(t,e){return E(),R("svg",Pzt,[...e[0]||(e[0]=[b("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)"},null,-1)])])}const A9e=ve(Ozt,[["render",Vzt]]),Wzt={key:0},Hzt={key:0,class:"is-required-notification"},zzt={class:"bootstrap-styles w-100 d-flex justify-content-center gap-5"},jzt=re({__name:"EmailComponent",props:{deps:{},theme:{},emailComponent:{},path:{},selectedElementPath:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=Le({context:{},ifResult:!n.emailComponent.ContextBuilderExpression,isLoaded:!1}),r={emptyEmailComponentText:IY({localeKey:n.deps.localeKey}).emptyEmailComponentText,emptyEmailComponentTooltip:IY({localeKey:n.deps.localeKey}).emptyEmailComponentTooltip,requiredComponentNotification:IY({localeKey:n.deps.localeKey}).requiredComponentNotification},i=a=>{o.isLoaded=!1,n.deps.dataStructExpressionEvaluator({dataStructBuilderExpression:a,context:{}}).then(l=>{(n.emailComponent.IfExpression?n.deps.boolExpressionEvaluatorDelegate({boolExpression:n.emailComponent.IfExpression,context:l}):Promise.resolve(!0)).then(c=>{o.context=l,o.ifResult=c,o.isLoaded=!0})})};on(()=>n.emailComponent.ContextBuilderExpression,a=>{a&&i(a)});const s=e;return n.emailComponent.ContextBuilderExpression?i(n.emailComponent.ContextBuilderExpression):o.isLoaded=!0,(a,l)=>o.isLoaded?(E(),R("div",Wzt,[n.emailComponent.IsRequired?(E(),R("div",Hzt,[b("i",null,[I(A9e)]),b("span",null," "+W(r.requiredComponentNotification),1)])):oe("",!0),o.ifResult?(E(),R("table",{key:1,style:Te([[{backgroundColor:N(lc)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})},N(zp)({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"}],{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"}])},[b("tbody",null,[b("tr",null,[b("td",{class:"row__inner",style:Te([N(dke)({paddings:n.emailComponent.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings,fullWidth:n.emailComponent.FullWidth})])},[(E(!0),R(Se,null,At(n.emailComponent.BodyRowList,(c,u)=>(E(),Q(_9e,{key:u,deps:n.deps.emailComponentBodyRowDeps,theme:n.theme,emailComponentBodyRow:c,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",u],selectedElementPath:n.selectedElementPath,onOnElementClicked:l[0]||(l[0]=d=>s("onElementClicked",d)),onOnImageSizeAdjusted:l[1]||(l[1]=d=>s("onImageSizeAdjusted",d)),onOnImageOriginalSizeAdjusted:l[2]||(l[2]=d=>s("onImageOriginalSizeAdjusted",d)),onOnColumnWidthAdjusted:l[3]||(l[3]=d=>s("onColumnWidthAdjusted",d)),onOnElementUpdatedEvent:l[4]||(l[4]=d=>s("onElementUpdatedEvent",d)),onOnElementRemoved:l[5]||(l[5]=d=>s("onElementRemoved",d))},null,8,["deps","theme","emailComponentBodyRow","context","rowWidth","path","selectedElementPath"]))),128))],4)])])],4)):(E(),R("div",{key:2,class:G(["empty-email-component",{"is-required-component__paddings":n.emailComponent.IsRequired}])},[no(W(r.emptyEmailComponentText)+" ",1),Ke((E(),R("i",null,[...l[6]||(l[6]=[b("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("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)])])),[[N(Xn),{placement:"top",title:r.emptyEmailComponentTooltip}]])],2))])):(E(),R("div",{key:1,class:"bootstrap-styles w-100",style:Te([N(dke)({paddings:n.emailComponent.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings,fullWidth:n.emailComponent.FullWidth}),{backgroundColor:N(lc)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})||"transparent"}])},[I(N(Kw),{type:"text"}),b("div",zzt,[(E(),R(Se,null,At(3,c=>I(N(Kw),{key:c,type:"image, text, text, text, button",style:{width:"100%"}})),64))])],4))}}),rI=ve(jzt,[["__scopeId","data-v-5ef33b53"]]),Kzt={};function Uzt(t,e){return e[0]||(e[0]=kg('<i class="icon-hover" data-v-7a380949><svg class="icon-hover" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" data-v-7a380949><path d="M9.16699 9.16675V5.83342H10.8337V9.16675H14.167V10.8334H10.8337V14.1667H9.16699V10.8334H5.83366V9.16675H9.16699ZM10.0003 18.3334C5.39795 18.3334 1.66699 14.6024 1.66699 10.0001C1.66699 5.39771 5.39795 1.66675 10.0003 1.66675C14.6027 1.66675 18.3337 5.39771 18.3337 10.0001C18.3337 14.6024 14.6027 18.3334 10.0003 18.3334ZM10.0003 16.6667C13.6822 16.6667 16.667 13.682 16.667 10.0001C16.667 6.31818 13.6822 3.33341 10.0003 3.33341C6.31843 3.33341 3.33366 6.31818 3.33366 10.0001C3.33366 13.682 6.31843 16.6667 10.0003 16.6667Z" fill="black" data-v-7a380949></path></svg></i><i class="icon-hover active-icon-stroke" data-v-7a380949><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18" fill="none" data-v-7a380949><path d="M8.99984 17.3334C4.39746 17.3334 0.666504 13.6024 0.666504 9.00008C0.666504 4.39771 4.39746 0.666748 8.99984 0.666748C13.6022 0.666748 17.3332 4.39771 17.3332 9.00008C17.3332 13.6024 13.6022 17.3334 8.99984 17.3334ZM8.1665 8.16675H4.83317V9.83342H8.1665V13.1667H9.83317V9.83342H13.1665V8.16675H9.83317V4.83342H8.1665V8.16675Z" fill="white" data-v-7a380949></path></svg></i>',2))}const qzt=ve(Kzt,[["render",Uzt],["__scopeId","data-v-7a380949"]]),Jzt={};function Gzt(t,e){return e[0]||(e[0]=kg('<i class="icon-hover" data-v-2c8ff42e><svg class="icon-hover" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" data-v-2c8ff42e><path d="M16.0236 15.6101L17.4967 14.137L18.9698 15.6101C19.7834 16.4237 19.7834 17.7428 18.9698 18.5564C18.1562 19.37 16.8372 19.37 16.0236 18.5564C15.21 17.7428 15.21 16.4237 16.0236 15.6101ZM7.39933 0.899658L16.8274 10.3278C17.1528 10.6532 17.1528 11.1808 16.8274 11.5063L9.75632 18.5773C9.4309 18.9028 8.90324 18.9028 8.57782 18.5773L1.50677 11.5063C1.18134 11.1808 1.18134 10.6532 1.50677 10.3278L7.98859 3.84593L6.22082 2.07817L7.39933 0.899658ZM9.16707 5.02445L3.27454 10.917L9.16707 16.8096L15.0597 10.917L9.16707 5.02445Z" fill="black" data-v-2c8ff42e></path></svg></i><i class="icon-hover active-icon-stroke" data-v-2c8ff42e><svg xmlns="http://www.w3.org/2000/svg" width="19" height="20" viewBox="0 0 19 20" fill="none" data-v-2c8ff42e><path d="M15.0231 15.6101L16.4963 14.137L17.9693 15.6101C18.7829 16.4237 18.7829 17.7428 17.9693 18.5564C17.1558 19.37 15.8367 19.37 15.0231 18.5564C14.2095 17.7428 14.2095 16.4237 15.0231 15.6101ZM6.39884 0.899658L15.8269 10.3278C16.1523 10.6532 16.1523 11.1808 15.8269 11.5063L8.75583 18.5773C8.43042 18.9028 7.90275 18.9028 7.57733 18.5773L0.506282 11.5063C0.180849 11.1808 0.180849 10.6532 0.506282 10.3278L6.9881 3.84593L5.22033 2.07817L6.39884 0.899658ZM8.16658 5.02445L2.27405 10.917H14.0592L8.16658 5.02445Z" fill="white" data-v-2c8ff42e></path></svg></i>',2))}const Yzt=ve(Jzt,[["render",Gzt],["__scopeId","data-v-2c8ff42e"]]),Zzt={};function Xzt(t,e){return e[0]||(e[0]=kg('<i class="icon-hover" data-v-64536d3f><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" data-v-64536d3f><path d="M10 0C15.5222 0 20 3.97778 20 8.8889C20 11.9556 17.5111 14.4444 14.4444 14.4444H12.4778C11.5556 14.4444 10.8111 15.1889 10.8111 16.1111C10.8111 16.5333 10.9778 16.9222 11.2333 17.2111C11.5 17.5111 11.6667 17.9 11.6667 18.3333C11.6667 19.2556 10.9 20 10 20C4.47778 20 0 15.5222 0 10C0 4.47778 4.47778 0 10 0ZM8.8111 16.1111C8.8111 14.0843 10.451 12.4444 12.4778 12.4444H14.4444C16.4065 12.4444 18 10.851 18 8.8889C18 5.1392 14.4677 2 10 2C5.58235 2 2 5.58235 2 10C2 14.19 5.2226 17.6285 9.324 17.9718C8.9948 17.4168 8.8111 16.7761 8.8111 16.1111ZM5.5 10C4.67157 10 4 9.3284 4 8.5C4 7.67157 4.67157 7 5.5 7C6.32843 7 7 7.67157 7 8.5C7 9.3284 6.32843 10 5.5 10ZM14.5 10C13.6716 10 13 9.3284 13 8.5C13 7.67157 13.6716 7 14.5 7C15.3284 7 16 7.67157 16 8.5C16 9.3284 15.3284 10 14.5 10ZM10 7C9.1716 7 8.5 6.32843 8.5 5.5C8.5 4.67157 9.1716 4 10 4C10.8284 4 11.5 4.67157 11.5 5.5C11.5 6.32843 10.8284 7 10 7Z" fill="black" data-v-64536d3f></path></svg></i><i class="icon-hover active-icon-stroke" data-v-64536d3f><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" data-v-64536d3f><path d="M10 0C15.5222 0 20 3.97778 20 8.8889C20 11.9556 17.5111 14.4444 14.4444 14.4444H12.4778C11.5556 14.4444 10.8111 15.1889 10.8111 16.1111C10.8111 16.5333 10.9778 16.9222 11.2333 17.2111C11.5 17.5111 11.6667 17.9 11.6667 18.3333C11.6667 19.2556 10.9 20 10 20C4.47778 20 0 15.5222 0 10C0 4.47778 4.47778 0 10 0ZM5.5 10C6.32843 10 7 9.3284 7 8.5C7 7.67157 6.32843 7 5.5 7C4.67157 7 4 7.67157 4 8.5C4 9.3284 4.67157 10 5.5 10ZM14.5 10C15.3284 10 16 9.3284 16 8.5C16 7.67157 15.3284 7 14.5 7C13.6716 7 13 7.67157 13 8.5C13 9.3284 13.6716 10 14.5 10ZM10 7C10.8284 7 11.5 6.32843 11.5 5.5C11.5 4.67157 10.8284 4 10 4C9.1716 4 8.5 4.67157 8.5 5.5C8.5 6.32843 9.1716 7 10 7Z" fill="white" data-v-64536d3f></path></svg></i>',2))}const Qzt=ve(Zzt,[["render",Xzt],["__scopeId","data-v-64536d3f"]]),ejt={},tjt={xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none"};function njt(t,e){return E(),R("svg",tjt,[...e[0]||(e[0]=[b("path",{class:"exit-icon-body-path",d:"M0 12C0 5.37258 5.37258 0 12 0H28C34.6274 0 40 5.37258 40 12V28C40 34.6274 34.6274 40 28 40H12C5.37258 40 0 34.6274 0 28V12Z",fill:"var(--red-400)"},null,-1),b("path",{d:"M13.3333 25H15V26.6667H25V13.3334H15V15H13.3333V12.5C13.3333 12.0398 13.7064 11.6667 14.1666 11.6667H25.8333C26.2936 11.6667 26.6666 12.0398 26.6666 12.5V27.5C26.6666 27.9603 26.2936 28.3334 25.8333 28.3334H14.1666C13.7064 28.3334 13.3333 27.9603 13.3333 27.5V25ZM15 19.1667H20.8333V20.8334H15V23.3334L10.8333 20L15 16.6667V19.1667Z",fill:"var(--white)"},null,-1)])])}const ojt=ve(ejt,[["render",njt],["__scopeId","data-v-807017e0"]]),rjt={},ijt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function sjt(t,e){return E(),R("svg",ijt,[...e[0]||(e[0]=[b("path",{d:"M7 11L10 8L7 5",stroke:"#C1C1C1","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])}const NU=ve(rjt,[["render",sjt],["__scopeId","data-v-6aa1d5b7"]]),ajt=["checked"],ljt=re({__name:"Checkbox",props:{checked:{type:Boolean}},emits:["change"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("input",{class:"bootstrap-styles me-1 cursor-pointer",checked:n.checked,type:"checkbox","aria-label":"Checkbox for following text input",onChange:i[0]||(i[0]=s=>o("change"))},null,40,ajt))}}),th=ve(ljt,[["__scopeId","data-v-6a8c2252"]]),cjt={},ujt={class:"bootstrap-styles d-flex justify-content-center align-items-center icon-fill icon-loading"};function djt(t,e){return E(),R("i",ujt,[...e[0]||(e[0]=[b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 16",fill:"none"},[b("path",{d:"M12.2427 3.75736L11.2998 4.70017C10.4553 3.85567 9.28867 3.33333 8 3.33333C5.42267 3.33333 3.33333 5.42267 3.33333 8C3.33333 10.5773 5.42267 12.6667 8 12.6667C10.5773 12.6667 12.6667 10.5773 12.6667 8H14C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C9.65687 2 11.1569 2.67157 12.2427 3.75736Z",fill:"white"})],-1)])])}const GC=ve(cjt,[["render",djt],["__scopeId","data-v-c3fea24e"]]),hjt={title:"New section",inputLabel:"Name",inputPlaceholder:"Section name...",cancelButton:"Cancel",applyButton:"Save"},pjt={title:"Новая секция",inputLabel:"Название",inputPlaceholder:"Название секции...",cancelButton:"Отмена",applyButton:"Сохранить"},G_=ht({en:hjt,ru:pjt}),mjt={class:"bootstrap-styles fw-bold mb-5"},fjt={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},gjt=["placeholder","disabled"],yjt=re({__name:"CreateThemeLibrarySectionModalWindow",props:{deps:{}},emits:["onCanceled","onThemeLibrarySectionCreated"],setup(t,{emit:e}){const n=t,o={title:G_({localeKey:n.deps.localeKey}).title,inputLabel:G_({localeKey:n.deps.localeKey}).inputLabel,inputPlaceholder:G_({localeKey:n.deps.localeKey}).inputPlaceholder,cancelButton:G_({localeKey:n.deps.localeKey}).cancelButton,applyButton:G_({localeKey:n.deps.localeKey}).applyButton},r=Le({isDropdownMenuShown:!1,sectionName:"",isLoaded:!0}),i=async()=>{r.sectionName.length!==0&&(r.isLoaded=!1,await n.deps.createThemeLibrarySection({sectionName:r.sectionName}),a("onThemeLibrarySectionCreated"))},s=()=>{a("onCanceled")},a=e;return(l,c)=>(E(),Q(bd,{headerText:o.title,onClose:c[4]||(c[4]=()=>s())},{body:Bt(()=>[b("div",{class:"bootstrap-styles px-11 py-7 text-start",onClick:c[1]||(c[1]=u=>r.isDropdownMenuShown=!1)},[b("label",mjt,W(o.inputLabel),1),b("div",fjt,[Ke(b("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.sectionName=u),type:"text",class:"bootstrap-styles w-100",placeholder:o.inputPlaceholder,disabled:!r.isLoaded},null,8,gjt),[[Ea,r.sectionName],[N(Dg)]])])])]),"footer-actions":Bt(()=>[b("button",{class:G([{button__locked:!r.isLoaded},"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected"]),onClick:c[2]||(c[2]=Nt(u=>s(),["stop"]))},W(o.cancelButton),3),b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white cursor-pointer bg-color-selected button__hover-blue-400",onClick:c[3]||(c[3]=Nt(u=>i(),["stop"]))},[b("span",{class:G({"bootstrap-styles invisible":!r.isLoaded})},W(o.applyButton),3),I(GC,{class:G(["bootstrap-styles position-absolute",{invisible:r.isLoaded}])},null,8,["class"])])]),_:1},8,["headerText"]))}}),Cjt={},bjt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function vjt(t,e){return E(),R("svg",bjt,[...e[0]||(e[0]=[b("path",{d:"M2 8H14",stroke:"var(--blue-400)","stroke-width":"1.5"},null,-1),b("path",{d:"M8 2L8 14",stroke:"var(--blue-400)","stroke-width":"1.5"},null,-1)])])}const R9e=ve(Cjt,[["render",vjt]]),wjt={},Sjt={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"};function xjt(t,e){return E(),R("svg",Sjt,[...e[0]||(e[0]=[b("path",{d:"M3.21879 5.33327H11.3332V6.6666H3.21879L6.79477 10.2425L5.85197 11.1853L0.666504 5.99993L5.85197 0.814453L6.79477 1.75726L3.21879 5.33327Z",fill:"var(--black)"},null,-1)])])}const Tjt=ve(wjt,[["render",xjt]]),kjt={class:"bootstrap-styles d-flex justify-content-center align-items-center icon-hover mt-14"},Fjt={class:"bootstrap-styles fs-6 fw-bold text-start"},IU=re({__name:"PrevMenuButton",props:{title:{}},emits:["click"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("button",{class:"bootstrap-styles prev-menu d-flex align-items-start justify-content-start gap-2 mb-13 me-7 text-hover__blue",onClick:i[0]||(i[0]=s=>o("click"))},[b("i",kjt,[I(Tjt)]),b("span",Fjt,W(n.title),1)]))}}),Ejt={},Ljt={class:"icon-hover",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _jt(t,e){return E(),R("svg",Ljt,[...e[0]||(e[0]=[b("path",{d:"M10.4853 6.38419L9.54247 5.44138L3.33333 11.6505V12.5933H4.27614L10.4853 6.38419ZM11.4281 5.44138L12.3709 4.49858L11.4281 3.55576L10.4853 4.49858L11.4281 5.44138ZM4.82843 13.9267H2V11.0982L10.9567 2.14155C11.2171 1.8812 11.6391 1.8812 11.8995 2.14155L13.7851 4.02717C14.0455 4.28752 14.0455 4.70963 13.7851 4.96998L4.82843 13.9267Z",fill:"var(--gray-500)"},null,-1)])])}const D9e=ve(Ejt,[["render",_jt]]),Ajt={},Rjt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Djt(t,e){return E(),R("svg",Rjt,[...e[0]||(e[0]=[b("path",{d:"M2 8C2 8.55 2.45 9 3 9C3.55 9 4 8.55 4 8C4 7.45 3.55 7 3 7C2.45 7 2 7.45 2 8ZM12 8C12 8.55 12.45 9 13 9C13.55 9 14 8.55 14 8C14 7.45 13.55 7 13 7C12.45 7 12 7.45 12 8ZM7 8C7 8.55 7.45 9 8 9C8.55 9 9 8.55 9 8C9 7.45 8.55 7 8 7C7.45 7 7 7.45 7 8Z",fill:"var(--gray-500)"},null,-1)])])}const B9e=ve(Ajt,[["render",Djt]]),Bjt={},Njt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function Ijt(t,e){return E(),R("svg",Njt,[...e[0]||(e[0]=[kg('<path d="M3 3.3335V14.6668H13V3.3335H3Z" stroke="var(--red-400)" stroke-width="1.25"></path><path d="M6.66675 6.6665V10.9998" stroke="var(--red-400)" stroke-width="1.25"></path><path d="M9.33325 6.6665V10.9998" stroke="var(--red-400)" stroke-width="1.25"></path><path d="M1.33325 3.3335H14.6666" stroke="var(--red-400)" stroke-width="1.25"></path><path d="M5.33325 3.3335L6.42959 1.3335H9.59229L10.6666 3.3335H5.33325Z" stroke="var(--red-400)" stroke-width="1.25"></path>',5)])])}const u$=ve(Bjt,[["render",Ijt]]),Mjt={title:"Delete theme",description:"Are you sure you want to delete the theme?"},$jt={title:"Удаление темы",description:"Вы действительно хотите удалить тему?"},_ke=ht({en:Mjt,ru:$jt}),Ojt=re({__name:"DeleteThemeLibrarySectionItemModalWindow",props:{deps:{},sectionItemId:{}},emits:["cancel","confirmed"],setup(t,{emit:e}){const n=t,o={title:_ke({localeKey:n.deps.localeKey}).title,description:_ke({localeKey:n.deps.localeKey}).description},r=e,i=async()=>{await n.deps.deleteThemeLibrarySectionItem({sectionItemId:n.sectionItemId}),r("confirmed")};return(s,a)=>(E(),Q(Ch,{headerText:o.title,deps:n.deps.removeConfirmModalWindowDeps,onCancel:a[0]||(a[0]=l=>r("cancel")),onConfirmed:a[1]||(a[1]=l=>i())},{"body-content":Bt(()=>[no(W(o.description),1)]),_:1},8,["headerText","deps"]))}}),Ake={display:"dynamic",reference:"parent",autoClose:"outside",offset:[0,5]},ah={mounted(t,e){return new wp(t,{...Ake,...e.value})},updated(t,e){const n=wp.getInstance(t);return n!==null&&n.hide(),new wp(t,{...Ake,...e.value})},unmounted(t){const e=wp.getInstance(t);e!==null&&e.dispose()}},Pjt={},Vjt={class:"bootstrap-styles d-flex justify-content-center align-items-center icon-fill icon-loading"};function Wjt(t,e){return E(),R("i",Vjt,[...e[0]||(e[0]=[b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[b("path",{d:"M12.2427 3.75736L11.2998 4.70017C10.4553 3.85567 9.28867 3.33333 8 3.33333C5.42267 3.33333 3.33333 5.42267 3.33333 8C3.33333 10.5773 5.42267 12.6667 8 12.6667C10.5773 12.6667 12.6667 10.5773 12.6667 8H14C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C9.65687 2 11.1569 2.67157 12.2427 3.75736Z",fill:"var(--gray-500)"})],-1)])])}const MU=ve(Pjt,[["render",Wjt],["__scopeId","data-v-369906aa"]]),Hjt={title:"Edit theme",themeNameLabel:"Name",themeNamePlaceholder:"Theme name...",themeSectionLabel:"Group",cancelButton:"Cancel",applyButton:"Save"},zjt={title:"Редактирование темы",themeNameLabel:"Название",themeNamePlaceholder:"Название темы...",themeSectionLabel:"Группа",cancelButton:"Отмена",applyButton:"Сохранить"},Lx=ht({en:Hjt,ru:zjt}),jjt={class:"bootstrap-styles fw-bold mb-5"},Kjt={class:"bootstrap-styles col-12 mb-13"},Ujt={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},qjt=["placeholder"],Jjt={class:"bootstrap-styles fw-bold mb-5"},Gjt={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},Yjt={id:"dropdownMenuSectionSelect",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},Zjt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Xjt={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuSectionSelect"},Qjt=["onClick"],e7t={class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer"},t7t=re({__name:"EditThemeLibrarySectionItemModalWindow",props:{deps:{},initialThemeSection:{},themeName:{},themeId:{}},emits:["cancel","onThemeLibrarySectionItemUpdated"],setup(t,{emit:e}){const n=t,o={title:Lx({localeKey:n.deps.localeKey}).title,themeNameLabel:Lx({localeKey:n.deps.localeKey}).themeNameLabel,themeNamePlaceholder:Lx({localeKey:n.deps.localeKey}).themeNamePlaceholder,themeSectionLabel:Lx({localeKey:n.deps.localeKey}).themeSectionLabel,cancelButton:Lx({localeKey:n.deps.localeKey}).cancelButton,applyButton:Lx({localeKey:n.deps.localeKey}).applyButton},r=Le({isLoadedThemeLibrarySectionList:!0,themeLibrarySections:[],sectionItemName:n.themeName,selectedSectionId:n.initialThemeSection.sectionId,selectedSectionName:n.initialThemeSection.sectionName});n.deps.getThemeLibrarySections().then(l=>{r.themeLibrarySections=l,r.isLoadedThemeLibrarySectionList=!1});const i=async()=>{r.sectionItemName.length&&(await n.deps.updateThemeLibrarySectionItem({sectionItemId:n.themeId,updatedParentSectionId:r.selectedSectionId,updatedSectionItemName:r.sectionItemName}),a("onThemeLibrarySectionItemUpdated"))},s=()=>{a("cancel")},a=e;return(l,c)=>(E(),Q(bd,{class:"edit-theme-modal-window",headerText:o.title,onClose:c[2]||(c[2]=()=>s())},{body:Bt(()=>[I(MU,{class:G(["bootstrap-styles position-absolute top-50 start-50",{invisible:!r.isLoadedThemeLibrarySectionList}])},null,8,["class"]),b("div",{class:G(["bootstrap-styles px-11 py-7 text-start",{invisible:r.isLoadedThemeLibrarySectionList}])},[b("label",jjt,W(o.themeNameLabel),1),b("div",Kjt,[b("div",Ujt,[Ke(b("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.sectionItemName=u),type:"text",class:"bootstrap-styles w-100",placeholder:o.themeNamePlaceholder},null,8,qjt),[[Ea,r.sectionItemName],[N(Dg),!r.isLoadedThemeLibrarySectionList]])])]),b("div",null,[b("label",Jjt,W(o.themeSectionLabel),1),b("div",Gjt,[Ke((E(),R("button",Yjt,[b("span",null,W(r.selectedSectionName),1),b("i",Zjt,[I(Si)])])),[[N(ah)]]),b("ul",Xjt,[(E(!0),R(Se,null,At(r.themeLibrarySections,u=>(E(),R("li",{key:u.sectionName,class:"bootstrap-styles dropdown-item p-0",onClick:()=>{r.selectedSectionId=u.sectionId,r.selectedSectionName=u.sectionName}},[b("span",e7t,W(u.sectionName),1)],8,Qjt))),128))])])])],2)]),"footer-actions":Bt(()=>[b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:c[1]||(c[1]=Nt(u=>s(),["stop"]))},W(o.cancelButton),1),b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white cursor-pointer bg-color-selected button__hover-blue-400",onClick:Nt(i,["stop"])},W(o.applyButton),1)]),_:1},8,["headerText"]))}}),n7t={editThemeButton:"Edit",deleteThemeButton:"Delete"},o7t={editThemeButton:"Редактировать",deleteThemeButton:"Удалить"},Rke=ht({en:n7t,ru:o7t}),r7t={class:"bootstrap-styles input__settings-text__item__content"},i7t={class:"overflow-hidden"},s7t={class:"bootstrap-styles mb-5"},a7t={class:"bootstrap-styles mb-5 text-nowrap"},l7t={class:"bootstrap-styles preview-theme__label input__settings-text__item__title border-top bg-white pt-1 pb-3 px-3 d-flex justify-content-between align-items-center"},c7t={class:"preview-theme__context"},u7t={class:"bootstrap-styles p-14"},d7t={class:"bootstrap-styles me-1"},h7t={class:"bootstrap-styles me-1"},p7t=re({__name:"CustomThemeSectionItem",props:{deps:{},theme:{},themeSection:{}},emits:["back","themeSectionItemRemoved","onThemeLibrarySectionItemUpdated","selectedThemeSettings"],setup(t,{emit:e}){const n=t,o={editThemeButton:Rke({localeKey:n.deps.localeKey}).editThemeButton,deleteThemeButton:Rke({localeKey:n.deps.localeKey}).deleteThemeButton},r=Le({isRemoveThemeWindowShown:!1,isEditThemeWindowShown:!1,isContextWindowShown:!1}),i=Rt(null),s=Rt(null),{floatingStyles:a}=zF(i,s,{placement:"right",whileElementsMounted:WF,middleware:[HF(20)]}),l=e;return(c,u)=>(E(),R(Se,null,[b("div",{class:"bootstrap-styles input__settings-text__item overflow-hidden cursor-pointer border rounded-1 shadow-hover-1",onClick:u[5]||(u[5]=d=>l("selectedThemeSettings",n.theme.theme))},[b("div",r7t,[b("div",i7t,[b("section",{class:"bootstrap-styles d-flex w-100 h-100",style:Te({background:n.theme.theme.Colors.EmailBackgroundColor,padding:"16px 0 0 16px"})},[b("div",{class:"bootstrap-styles w-100 h-100",style:Te({background:n.theme.theme.Colors.BodyColor,borderTopLeftRadius:`${n.theme.theme.BorderRadius.TopLeft}px`,paddingLeft:`${n.theme.theme.BodyPaddings.Left}px`,paddingTop:`${n.theme.theme.BodyPaddings.Top}px`})},[b("div",s7t,[b("span",{style:Te({fontFamily:n.theme.theme.FontFamily,color:n.theme.theme.Colors.HeadingColor,fontSize:`${n.theme.theme.FontSettingsPresets.Heading.FontSize}px`,fontWeight:n.theme.theme.FontSettingsPresets.Button.IsBold?"bold":"normal",fontStyle:n.theme.theme.FontSettingsPresets.Button.IsItalic?"italic":"normal",textDecoration:n.theme.theme.FontSettingsPresets.Heading.Decoration,marginRight:"4px"})}," Aa ",4),b("span",{style:Te({fontFamily:n.theme.theme.FontFamily,color:n.theme.theme.Colors.NormalTextColor,fontSize:`${n.theme.theme.FontSettingsPresets.NormalText.FontSize}px`,fontWeight:n.theme.theme.FontSettingsPresets.Button.IsBold?"bold":"normal",fontStyle:n.theme.theme.FontSettingsPresets.Button.IsItalic?"italic":"normal",textDecoration:n.theme.theme.FontSettingsPresets.NormalText.Decoration,marginRight:"4px"})}," Aa ",4),b("span",{style:Te({fontFamily:n.theme.theme.FontFamily,color:n.theme.theme.Colors.DescriptionTextColor,fontSize:`${n.theme.theme.FontSettingsPresets.DescriptionText.FontSize}px`,fontWeight:n.theme.theme.FontSettingsPresets.DescriptionText.IsBold?"bold":"normal",fontStyle:n.theme.theme.FontSettingsPresets.DescriptionText.IsItalic?"italic":"normal",textDecoration:n.theme.theme.FontSettingsPresets.DescriptionText.Decoration})}," Aa ",4)]),b("div",a7t,[b("span",{class:"bootstrap-styles me-2 d-inline-block",style:Te({fontFamily:n.theme.theme.FontFamily,color:n.theme.theme.Colors.PrimaryTextColor,fontSize:`${n.theme.theme.FontSettingsPresets.Button.FontSize}px`,fontWeight:n.theme.theme.FontSettingsPresets.Button.IsBold?"bold":"normal",fontStyle:n.theme.theme.FontSettingsPresets.Button.IsItalic?"italic":"normal",textDecoration:n.theme.theme.FontSettingsPresets.Button.Decoration,background:n.theme.theme.Colors.PrimaryColor,borderTopLeftRadius:`${n.theme.theme.BorderRadiusButton.TopLeft}px`,borderTopRightRadius:`${n.theme.theme.BorderRadiusButton.TopRight}px`,borderBottomRightRadius:`${n.theme.theme.BorderRadiusButton.BottomRight}px`,borderBottomLeftRadius:`${n.theme.theme.BorderRadiusButton.BottomLeft}px`,padding:"12px 24px"})}," Button ",4),b("span",{class:"bootstrap-styles d-inline-block",style:Te({fontFamily:n.theme.theme.FontFamily,color:n.theme.theme.Colors.SecondaryTextColor,fontSize:`${n.theme.theme.FontSettingsPresets.Button.FontSize}px`,fontWeight:n.theme.theme.FontSettingsPresets.Button.IsBold?"bold":"normal",fontStyle:n.theme.theme.FontSettingsPresets.Button.IsItalic?"italic":"normal",textDecoration:n.theme.theme.FontSettingsPresets.Button.Decoration,background:n.theme.theme.Colors.SecondaryColor,borderTopLeftRadius:`${n.theme.theme.BorderRadiusButton.TopLeft}px`,borderTopRightRadius:`${n.theme.theme.BorderRadiusButton.TopRight}px`,borderBottomRightRadius:`${n.theme.theme.BorderRadiusButton.BottomRight}px`,borderBottomLeftRadius:`${n.theme.theme.BorderRadiusButton.BottomLeft}px`,padding:"12px 24px"})}," Button ",4)])],4)],4)])]),b("div",l7t,[no(W(n.theme.sectionItemName)+" ",1),b("div",c7t,[b("button",{ref_key:"themePreviewContextButtonElmRef",ref:i,class:G(["preview-theme__context-button",{"preview-theme__context-button__active":r.isContextWindowShown}]),onClick:u[0]||(u[0]=Nt(d=>r.isContextWindowShown=!r.isContextWindowShown,["stop"])),onBlur:u[1]||(u[1]=d=>r.isContextWindowShown=!1)},[b("i",u7t,[I(B9e)])],34)])]),r.isContextWindowShown?(E(),R("div",{key:0,ref_key:"themePreviewContextMenuElmRef",ref:s,class:"preview-theme__context-menu bootstrap-styles rounded-1 border shadow-1 bg-white position-absolute z-index-3",style:Te(N(a)),onMouseleave:u[4]||(u[4]=d=>r.isContextWindowShown=!1)},[b("button",{class:"edit-button",onMousedown:u[2]||(u[2]=d=>r.isEditThemeWindowShown=!0)},[b("i",d7t,[I(D9e)]),no(" "+W(o.editThemeButton),1)],32),b("button",{class:"remove-button",onMousedown:u[3]||(u[3]=d=>r.isRemoveThemeWindowShown=!0)},[b("i",h7t,[I(u$)]),no(" "+W(o.deleteThemeButton),1)],32)],36)):oe("",!0)]),(E(),Q(yo,{to:"body",defer:""},[r.isEditThemeWindowShown?(E(),Q(t7t,{key:0,deps:n.deps.editThemeLibrarySectionItemModalWindowDeps,initialThemeSection:n.themeSection,themeId:n.theme.sectionItemId,themeName:n.theme.sectionItemName,onOnThemeLibrarySectionItemUpdated:u[6]||(u[6]=()=>{l("onThemeLibrarySectionItemUpdated"),r.isEditThemeWindowShown=!1}),onCancel:u[7]||(u[7]=d=>r.isEditThemeWindowShown=!1)},null,8,["deps","initialThemeSection","themeId","themeName"])):oe("",!0)])),(E(),Q(yo,{to:"body",defer:""},[r.isRemoveThemeWindowShown?(E(),Q(Ojt,{key:0,deps:n.deps.deleteThemeLibrarySectionItemModalWindowDeps,sectionItemId:t.theme.sectionItemId,onCancel:u[8]||(u[8]=d=>r.isRemoveThemeWindowShown=!1),onConfirmed:u[9]||(u[9]=()=>{l("themeSectionItemRemoved"),r.isRemoveThemeWindowShown=!1})},null,8,["deps","sectionItemId"])):oe("",!0)]))],64))}}),m7t=ve(p7t,[["__scopeId","data-v-750b633e"]]),f7t={},g7t={width:"60",height:"61",viewBox:"0 0 60 61",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function y7t(t,e){return E(),R("svg",g7t,[...e[0]||(e[0]=[kg('<path d="M26.6998 43.4001C35.4811 43.4001 42.5998 36.2814 42.5998 27.5001C42.5998 18.7188 35.4811 11.6001 26.6998 11.6001C17.9185 11.6001 10.7998 18.7188 10.7998 27.5001C10.7998 36.2814 17.9185 43.4001 26.6998 43.4001Z" stroke="var(--gray-200)" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M20.7629 23.3031C20.5313 23.6386 20.4051 24.034 20.4001 24.4398C20.3967 24.7158 20.4494 24.9897 20.5553 25.2453C20.6611 25.5008 20.8179 25.7329 21.0163 25.9277C21.2146 26.1225 21.4506 26.2761 21.7103 26.3794C21.9699 26.4828 22.248 26.5337 22.528 26.5293C22.9396 26.5228 23.3402 26.3968 23.6796 26.1671C24.0191 25.9373 24.2823 25.6141 24.4364 25.2377C24.5905 24.8614 24.6287 24.4486 24.5462 24.0509C24.4636 23.6533 24.264 23.2885 23.9723 23.002C23.6806 22.7156 23.3098 22.5203 22.9061 22.4405C22.5024 22.3607 22.0838 22.3999 21.7026 22.5533C21.3215 22.7068 20.9946 22.9675 20.7629 23.3031Z" fill="var(--gray-200)"></path><path d="M31.7405 34.3108C31.8531 34.2517 31.949 34.1659 32.0197 34.0613C32.0918 33.9571 32.1364 33.8369 32.1496 33.7114C32.1627 33.586 32.144 33.4593 32.0951 33.3428C31.6717 32.2665 30.9355 31.3374 29.9788 30.6719C29.022 30.0063 27.8872 29.634 26.7167 29.6015C25.5405 29.6276 24.3984 29.9969 23.4351 30.6628C22.4718 31.3288 21.7304 32.2614 21.3048 33.3428C21.2552 33.4579 21.2351 33.5833 21.2464 33.7079C21.2578 33.8325 21.3001 33.9524 21.3697 34.057C21.4393 34.1616 21.5341 34.2476 21.6455 34.3074C21.757 34.3672 21.8817 34.399 22.0085 34.3999C22.1888 34.4008 22.3637 34.3395 22.5028 34.2265C23.6884 33.286 25.17 32.7835 26.6916 32.8059C28.2132 32.7835 29.6948 33.286 30.8804 34.2265C31.0195 34.3395 31.1944 34.4008 31.3747 34.3999C31.5022 34.4005 31.6279 34.3698 31.7405 34.3108Z" fill="var(--gray-200)"></path><path d="M29.7419 26.1813C30.0864 26.4082 30.4913 26.5293 30.9055 26.5293C31.461 26.5293 31.9937 26.3118 32.3865 25.9246C32.7792 25.5373 32.9999 25.0122 32.9999 24.4646C32.9999 24.0562 32.8771 23.6571 32.6469 23.3175C32.4168 22.978 32.0897 22.7133 31.707 22.5571C31.3243 22.4008 30.9032 22.3599 30.4969 22.4396C30.0906 22.5192 29.7175 22.7159 29.4246 23.0046C29.1317 23.2934 28.9322 23.6613 28.8514 24.0618C28.7706 24.4623 28.812 24.8774 28.9706 25.2547C29.1291 25.632 29.3975 25.9545 29.7419 26.1813Z" fill="var(--gray-200)"></path><path d="M49.1999 49.4001L38.3999 38.6001" stroke="var(--gray-200)" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path>',5)])])}const N9e=ve(f7t,[["render",y7t]]),C7t={title:"Delete section",description:"Are you sure you want to delete the section",cancelButton:"Cancel",applyButton:"Delete",errorButtonText:"Error"},b7t={title:"Удаление секции",description:"Вы действительно хотите удалить секцию",cancelButton:"Отмена",applyButton:"Удалить",errorButtonText:"Ошибка"},Y_=ht({en:C7t,ru:b7t}),v7t={class:"bootstrap-styles px-11 py-7 text-start"},w7t={key:0},S7t={key:2,class:"bootstrap-styles d-flex justify-content-center align-items-center"},x7t=re({__name:"DeleteThemeLibrarySectionModalWindow",props:{deps:{},sectionName:{},sectionId:{}},emits:["cancel","onRemoveConfirmed"],setup(t,{emit:e}){const n=t,o={title:Y_({localeKey:n.deps.localeKey}).title,description:Y_({localeKey:n.deps.localeKey}).description,cancelButton:Y_({localeKey:n.deps.localeKey}).cancelButton,applyButton:Y_({localeKey:n.deps.localeKey}).applyButton,errorButtonText:Y_({localeKey:n.deps.localeKey}).errorButtonText},r=Le({applyButtonState:"Default"}),i=async()=>{r.applyButtonState="Deleting";try{await n.deps.deleteThemeLibrarySection({sectionId:n.sectionId})==="Success"?s("onRemoveConfirmed"):r.applyButtonState="Error"}catch{r.applyButtonState="Error"}},s=e;return(a,l)=>(E(),Q(bd,{headerText:o.title,class:"remove-element-confirm-modal-window",onClose:l[2]||(l[2]=()=>s("cancel"))},{body:Bt(()=>[b("div",v7t,W(o.description)+" «"+W(n.sectionName)+"» ? ",1)]),"footer-actions":Bt(()=>[b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:l[0]||(l[0]=Nt(c=>s("cancel"),["stop"]))},W(o.cancelButton),1),b("button",{class:G(["modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white cursor-pointer position-relative remove-element-confirm__button",{"delete-button__error":r.applyButtonState==="Error","delete-button__deleting":r.applyButtonState==="Deleting"}]),onClick:l[1]||(l[1]=Nt(c=>i(),["stop"]))},[r.applyButtonState==="Default"?(E(),R("span",w7t,W(o.applyButton),1)):oe("",!0),r.applyButtonState==="Deleting"?(E(),Q(GC,{key:1,class:"preloader"})):oe("",!0),r.applyButtonState==="Error"?(E(),R("span",S7t,W(o.errorButtonText),1)):oe("",!0)],2)]),_:1},8,["headerText"]))}}),T7t={emptySectionText:"No theme templates in this group",deleteSectionButton:"Delete section"},k7t={emptySectionText:"В этой группе нет шаблонов тем",deleteSectionButton:"Удалить секцию"},Dke=ht({en:T7t,ru:k7t}),F7t={class:"bootstrap-styles d-flex flex-column justify-content-center align-items-center h-100 pe-7"},E7t={class:"bootstrap-styles mt-auto d-flex flex-column justify-content-center align-items-center"},L7t={class:"bootstrap-styles text-gray-600"},_7t=re({__name:"EmptyThemeSection",props:{deps:{},sectionName:{},sectionId:{}},emits:["onThemeLibrarySectionRemoved"],setup(t,{emit:e}){const n=t,o={emptySectionText:Dke({localeKey:n.deps.localeKey}).emptySectionText,deleteSectionButton:Dke({localeKey:n.deps.localeKey}).deleteSectionButton},r=Le({isRemoveThemeLibrarySectionModalWindowShown:!1}),i=e;return(s,a)=>(E(),R(Se,null,[b("div",F7t,[b("div",E7t,[I(N9e),b("p",L7t,W(o.emptySectionText),1)]),b("button",{class:"bootstrap-styles py-1 px-3 rounded-2 w-100 mt-auto section__remove-button",onClick:a[0]||(a[0]=l=>r.isRemoveThemeLibrarySectionModalWindowShown=!0)},[b("i",null,[I(u$)]),no(" "+W(o.deleteSectionButton),1)])]),(E(),Q(yo,{to:"body",defer:""},[r.isRemoveThemeLibrarySectionModalWindowShown?(E(),Q(x7t,{key:0,deps:n.deps.deleteThemeLibrarySectionModalWindowDeps,sectionName:n.sectionName,sectionId:n.sectionId,onCancel:a[1]||(a[1]=l=>r.isRemoveThemeLibrarySectionModalWindowShown=!1),onOnRemoveConfirmed:a[2]||(a[2]=()=>{i("onThemeLibrarySectionRemoved"),r.isRemoveThemeLibrarySectionModalWindowShown=!1})},null,8,["deps","sectionName","sectionId"])):oe("",!0)]))],64))}}),A7t=ve(_7t,[["__scopeId","data-v-16bcee65"]]),R7t={key:0,class:"bootstrap-styles h-100 d-flex flex-column overflow-scroll"},D7t={class:"bootstrap-styles scrollable d-flex flex-column gap-5 overflow-scroll"},B7t=re({__name:"CustomThemeSection",props:{deps:{},themeLibrary:{},themeSection:{}},emits:["back","themeSectionItemRemoved","onThemeLibrarySectionItemUpdated","selectedThemeSettings","onThemeLibrarySectionRemoved"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R(Se,null,[I(IU,{title:n.themeSection.sectionName,onClick:i[0]||(i[0]=s=>o("back"))},null,8,["title"]),n.themeSection.sectionItems.length>0?(E(),R("div",R7t,[b("div",D7t,[(E(!0),R(Se,null,At(n.themeSection.sectionItems,s=>(E(),R("div",{key:s.sectionItemId,class:"bootstrap-styles list-group me-3"},[I(m7t,{deps:n.deps.themeSectionItemDeps,theme:s,themeSection:n.themeSection,onSelectedThemeSettings:i[1]||(i[1]=a=>o("selectedThemeSettings",a)),onOnThemeLibrarySectionItemUpdated:i[2]||(i[2]=()=>o("onThemeLibrarySectionItemUpdated")),onThemeSectionItemRemoved:i[3]||(i[3]=a=>o("themeSectionItemRemoved"))},null,8,["deps","theme","themeSection"])]))),128))])])):(E(),Q(A7t,{key:1,deps:n.deps.emptyThemeSectionDeps,sectionName:n.themeSection.sectionName,sectionId:n.themeSection.sectionId,onOnThemeLibrarySectionRemoved:i[4]||(i[4]=()=>{o("back"),o("onThemeLibrarySectionRemoved")})},null,8,["deps","sectionName","sectionId"]))],64))}}),N7t=ve(B7t,[["__scopeId","data-v-e83bc5b6"]]),I7t={hideEmptySectionsCheckbox:"Hide empty sections",addThemeLibrarySectionButton:"Add section"},M7t={hideEmptySectionsCheckbox:"Скрыть пустые секции",addThemeLibrarySectionButton:"Добавить секцию"},Bke=ht({en:I7t,ru:M7t}),$7t={class:"bootstrap-styles h-100 d-flex flex-column"},O7t={class:"bootstrap-styles list-group list-group-flush p-0"},P7t=["onClick"],V7t={key:0,class:"bootstrap-styles d-flex align-items-center w-100"},W7t={class:"bootstrap-styles me-1 w-100"},H7t={class:"bootstrap-styles d-flex align-items-center"},z7t={class:"bootstrap-styles icon-hover-stroke"},j7t={for:"button-hide-empty-theme-section",class:"label__checkbox-input"},K7t={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1 icon-stroke"},U7t=re({__name:"CustomThemeLibrary",props:{deps:{},currentThemeSettings:{},themeLibrary:{}},emits:["selectedThemeSettings","onThemeLibrarySectionItemUpdated","onThemeLibrarySectionAdded","themeSectionItemAdded","themeSectionItemRemoved","onThemeLibrarySectionRemoved","onMenuOptionIndexChanged"],setup(t,{emit:e}){const n=t,o={hideEmptySectionsCheckbox:Bke({localeKey:n.deps.localeKey}).hideEmptySectionsCheckbox,addThemeLibrarySectionButton:Bke({localeKey:n.deps.localeKey}).addThemeLibrarySectionButton},r=Le({menuOptionIndex:null,isAddThemeLibrarySectionModalWindowShown:!1,isHiddenThemeLibraryEmptySection:n.themeLibrary.some(c=>c?.sectionItems?.length>0),isLoaded:!0,removedSectionIndex:null}),i=c=>{l("onThemeLibrarySectionRemoved"),r.removedSectionIndex=c},s=()=>{r.isHiddenThemeLibraryEmptySection=!r.isHiddenThemeLibraryEmptySection},a=()=>{l("onThemeLibrarySectionAdded"),r.isHiddenThemeLibraryEmptySection=!1,r.isAddThemeLibrarySectionModalWindowShown=!1,r.isLoaded=!1};on(()=>n.themeLibrary,c=>{c&&(r.isLoaded=!0,r.removedSectionIndex=null)});const l=e;return(c,u)=>(E(),R("div",$7t,[(E(!0),R(Se,null,At(n.themeLibrary,(d,h)=>(E(),R("div",{key:h,class:G({"bootstrap-styles h-100 d-flex flex-column":r.menuOptionIndex===h})},[r.menuOptionIndex===h?(E(),Q(N7t,{key:0,deps:n.deps.themeSectionDeps,themeLibrary:n.themeLibrary,themeSection:d,onBack:u[0]||(u[0]=()=>{l("onMenuOptionIndexChanged"),r.menuOptionIndex=null}),onOnThemeLibrarySectionItemUpdated:u[1]||(u[1]=p=>l("onThemeLibrarySectionItemUpdated")),onSelectedThemeSettings:u[2]||(u[2]=p=>l("selectedThemeSettings",p)),onThemeSectionItemRemoved:u[3]||(u[3]=p=>l("themeSectionItemRemoved")),onOnThemeLibrarySectionRemoved:p=>i(h)},null,8,["deps","themeLibrary","themeSection","onOnThemeLibrarySectionRemoved"])):oe("",!0)],2))),128)),b("div",{class:G(["bootstrap-styles h-100 flex-column pe-5 me-14 overflow-scroll",[r.menuOptionIndex===null?"d-flex":"d-none"]])},[b("div",O7t,[(E(!0),R(Se,null,At(n.themeLibrary,(d,h)=>(E(),R("button",{key:h,class:G(["bootstrap-styles list-group-item py-5 px-0 text-start border-gray-200 justify-content-between",[r.isHiddenThemeLibraryEmptySection&&d.sectionItems.length===0?"d-none":"d-flex"]]),onClick:()=>{l("onMenuOptionIndexChanged"),r.menuOptionIndex=h}},[r.removedSectionIndex!==h?(E(),R("span",V7t,[b("span",W7t,W(d.sectionName),1),b("span",H7t,[b("span",{class:G(["bootstrap-styles themes-quantity px-1 me-1",{empty:d.sectionItems.length===0}])},W(d.sectionItems.length),3),b("i",z7t,[I(NU)])])])):oe("",!0),r.removedSectionIndex===h?(E(),Q(N(Kw),{key:1,width:"216",height:"17"})):oe("",!0)],10,P7t))),128)),!r.isLoaded&&!r.isHiddenThemeLibraryEmptySection?(E(),Q(N(Kw),{key:0,class:"bootstrap-styles my-5",width:"216",height:"17"})):oe("",!0)])],2),b("div",{class:G(["bootstrap-styles mt-7 me-7 mb-7",[r.menuOptionIndex===null?"d-flex":"d-none"]])},[I(th,{id:"button-hide-empty-theme-section",checked:r.isHiddenThemeLibraryEmptySection,onChange:u[4]||(u[4]=d=>s())},null,8,["checked"]),b("label",j7t,W(o.hideEmptySectionsCheckbox),1)],2),b("button",{class:G(["bootstrap-styles d-flex align-items-center justify-content-center py-1 px-3 me-7 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",[r.menuOptionIndex===null?"d-flex":"d-none"]]),onClick:u[5]||(u[5]=d=>r.isAddThemeLibrarySectionModalWindowShown=!0)},[b("i",K7t,[I(R9e)]),no(" "+W(o.addThemeLibrarySectionButton),1)],2),(E(),Q(yo,{to:"body",defer:""},[r.isAddThemeLibrarySectionModalWindowShown?(E(),Q(yjt,{key:0,deps:n.deps.createThemeLibrarySectionModalWindowDeps,onOnThemeLibrarySectionCreated:u[6]||(u[6]=d=>a()),onOnCanceled:u[7]||(u[7]=d=>r.isAddThemeLibrarySectionModalWindowShown=!1)},null,8,["deps"])):oe("",!0)]))]))}}),q7t={class:"bootstrap-styles input__settings-text__item__content"},J7t={class:"overflow-hidden"},G7t={class:"bootstrap-styles mb-5"},Y7t={class:"bootstrap-styles mb-5 text-nowrap"},Z7t={class:"bootstrap-styles preview-theme__label input__settings-text__item__title border-top bg-white pt-1 pb-3 px-3 d-flex justify-content-between align-items-center"},X7t=re({__name:"DefaultThemeSectionItem",props:{theme:{},themeSection:{}},emits:["back","selectedThemeSettings"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("div",{class:"bootstrap-styles input__settings-text__item overflow-hidden cursor-pointer border rounded-1 shadow-hover-1",onClick:i[0]||(i[0]=s=>o("selectedThemeSettings",n.theme.theme))},[b("div",q7t,[b("div",J7t,[b("section",{class:"bootstrap-styles d-flex w-100 h-100",style:Te({background:n.theme.theme.Colors.EmailBackgroundColor,padding:"16px 0 0 16px"})},[b("div",{class:"bootstrap-styles w-100 h-100",style:Te({background:n.theme.theme.Colors.BodyColor,borderTopLeftRadius:`${n.theme.theme.BorderRadius.TopLeft}px`,paddingLeft:`${n.theme.theme.BodyPaddings.Left}px`,paddingTop:`${n.theme.theme.BodyPaddings.Top}px`})},[b("div",G7t,[b("span",{style:Te({fontFamily:n.theme.theme.FontFamily,color:n.theme.theme.Colors.HeadingColor,fontSize:`${n.theme.theme.FontSettingsPresets.Heading.FontSize}px`,fontWeight:n.theme.theme.FontSettingsPresets.Button.IsBold?"bold":"normal",fontStyle:n.theme.theme.FontSettingsPresets.Button.IsItalic?"italic":"normal",textDecoration:n.theme.theme.FontSettingsPresets.Heading.Decoration,marginRight:"4px"})}," Aa ",4),b("span",{style:Te({fontFamily:n.theme.theme.FontFamily,color:n.theme.theme.Colors.NormalTextColor,fontSize:`${n.theme.theme.FontSettingsPresets.NormalText.FontSize}px`,fontWeight:n.theme.theme.FontSettingsPresets.Button.IsBold?"bold":"normal",fontStyle:n.theme.theme.FontSettingsPresets.Button.IsItalic?"italic":"normal",textDecoration:n.theme.theme.FontSettingsPresets.NormalText.Decoration,marginRight:"4px"})}," Aa ",4),b("span",{style:Te({fontFamily:n.theme.theme.FontFamily,color:n.theme.theme.Colors.DescriptionTextColor,fontSize:`${n.theme.theme.FontSettingsPresets.DescriptionText.FontSize}px`,fontWeight:n.theme.theme.FontSettingsPresets.DescriptionText.IsBold?"bold":"normal",fontStyle:n.theme.theme.FontSettingsPresets.DescriptionText.IsItalic?"italic":"normal",textDecoration:n.theme.theme.FontSettingsPresets.DescriptionText.Decoration})}," Aa ",4)]),b("div",Y7t,[b("span",{class:"bootstrap-styles me-2 d-inline-block",style:Te({fontFamily:n.theme.theme.FontFamily,color:n.theme.theme.Colors.PrimaryTextColor,fontSize:`${n.theme.theme.FontSettingsPresets.Button.FontSize}px`,fontWeight:n.theme.theme.FontSettingsPresets.Button.IsBold?"bold":"normal",fontStyle:n.theme.theme.FontSettingsPresets.Button.IsItalic?"italic":"normal",textDecoration:n.theme.theme.FontSettingsPresets.Button.Decoration,background:n.theme.theme.Colors.PrimaryColor,borderTopLeftRadius:`${n.theme.theme.BorderRadiusButton.TopLeft}px`,borderTopRightRadius:`${n.theme.theme.BorderRadiusButton.TopRight}px`,borderBottomRightRadius:`${n.theme.theme.BorderRadiusButton.BottomRight}px`,borderBottomLeftRadius:`${n.theme.theme.BorderRadiusButton.BottomLeft}px`,padding:"12px 24px"})}," Button ",4),b("span",{class:"bootstrap-styles d-inline-block",style:Te({fontFamily:n.theme.theme.FontFamily,color:n.theme.theme.Colors.SecondaryTextColor,fontSize:`${n.theme.theme.FontSettingsPresets.Button.FontSize}px`,fontWeight:n.theme.theme.FontSettingsPresets.Button.IsBold?"bold":"normal",fontStyle:n.theme.theme.FontSettingsPresets.Button.IsItalic?"italic":"normal",textDecoration:n.theme.theme.FontSettingsPresets.Button.Decoration,background:n.theme.theme.Colors.SecondaryColor,borderTopLeftRadius:`${n.theme.theme.BorderRadiusButton.TopLeft}px`,borderTopRightRadius:`${n.theme.theme.BorderRadiusButton.TopRight}px`,borderBottomRightRadius:`${n.theme.theme.BorderRadiusButton.BottomRight}px`,borderBottomLeftRadius:`${n.theme.theme.BorderRadiusButton.BottomLeft}px`,padding:"12px 24px"})}," Button ",4)])],4)],4)])]),b("div",Z7t,W(n.theme.sectionItemName),1)]))}}),Q7t=ve(X7t,[["__scopeId","data-v-9ac5d7bf"]]),e8t={class:"bootstrap-styles h-100 d-flex flex-column overflow-scroll gap-5 scrollable"},t8t=re({__name:"DefaultThemeSection",props:{themeLibrary:{},themeSection:{}},emits:["back","selectedThemeSettings"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R(Se,null,[I(IU,{title:n.themeSection.sectionName,onClick:i[0]||(i[0]=s=>o("back"))},null,8,["title"]),b("div",e8t,[(E(!0),R(Se,null,At(n.themeSection.sectionItems,s=>(E(),R("div",{key:s.sectionItemId,class:"bootstrap-styles list-group me-3"},[I(Q7t,{theme:s,themeSection:n.themeSection,onSelectedThemeSettings:i[1]||(i[1]=a=>o("selectedThemeSettings",a))},null,8,["theme","themeSection"])]))),128))])],64))}}),n8t=ve(t8t,[["__scopeId","data-v-9d15468d"]]),o8t={class:"bootstrap-styles h-100 d-flex flex-column"},r8t={class:"bootstrap-styles list-group list-group-flush p-0"},i8t=["onClick"],s8t={class:"bootstrap-styles me-1"},a8t={class:"bootstrap-styles d-flex align-items-center"},l8t={class:"bootstrap-styles themes-quantity px-1 me-1"},c8t={class:"bootstrap-styles icon-hover-stroke"},u8t=re({__name:"DefaultThemeLibrary",props:{deps:{},currentThemeSettings:{}},emits:["selectedThemeSettings","onMenuOptionIndexChanged"],setup(t,{emit:e}){const n=t,o=Le({menuOptionIndex:null}),r=e;return(i,s)=>(E(),R("div",o8t,[(E(!0),R(Se,null,At(n.deps.defaultThemeLibrary,(a,l)=>(E(),R("div",{key:l,class:G({"bootstrap-styles h-100 d-flex flex-column":o.menuOptionIndex===l})},[o.menuOptionIndex===l?(E(),Q(n8t,{key:0,themeLibrary:n.deps.defaultThemeLibrary,themeSection:a,onBack:s[0]||(s[0]=()=>{r("onMenuOptionIndexChanged"),o.menuOptionIndex=null}),onSelectedThemeSettings:s[1]||(s[1]=c=>r("selectedThemeSettings",c))},null,8,["themeLibrary","themeSection"])):oe("",!0)],2))),128)),b("div",{class:G(["bootstrap-styles h-100 flex-column pe-5 me-14 overflow-scroll",[o.menuOptionIndex===null?"d-flex":"d-none"]])},[b("div",r8t,[(E(!0),R(Se,null,At(n.deps.defaultThemeLibrary,(a,l)=>(E(),R("button",{key:l,class:"bootstrap-styles d-flex list-group-item py-5 px-0 text-start border-gray-200 justify-content-between",onClick:()=>{r("onMenuOptionIndexChanged"),o.menuOptionIndex=l}},[b("span",s8t,W(a.sectionName),1),b("span",a8t,[b("span",l8t,W(a.sectionItems.length),1),b("i",c8t,[I(NU)])])],8,i8t))),128))])],2)]))}}),d8t={title:"Theme",userThemeButtonText:"Custom",defaultThemeButtonText:"Default",addThemeLibrarySectionItemButton:"Save theme",addThemeLibrarySectionItemButtonTooltip:"You need to create a theme section before saving"},h8t={title:"Тема оформления",userThemeButtonText:"Мои",defaultThemeButtonText:"Стандартные",addThemeLibrarySectionItemButton:"Сохранить тему",addThemeLibrarySectionItemButtonTooltip:"Для сохранения создайте секцию темы оформления"},R2=ht({en:d8t,ru:h8t}),p8t={class:"bootstrap-styles scrollable d-block h-100"},m8t={class:"bootstrap-styles flex-column gap-13 d-flex h-100"},f8t=re({__name:"ThemeLibrary",props:{deps:{},currentThemeSettings:{},themeLibrary:{}},emits:["selectedThemeSettings","onThemeLibrarySectionItemUpdated","onThemeLibrarySectionAdded","themeSectionItemAdded","themeSectionItemRemoved","onThemeLibrarySectionRemoved"],setup(t,{emit:e}){const n=t,o=n.themeLibrary.some(l=>l.sectionItems.length>0)?"custom":"default",r=Le({themeLibrarySourceKey:o,isHeaderShow:!0}),i={title:R2({localeKey:n.deps.localeKey}).title,userThemeButtonText:R2({localeKey:n.deps.localeKey}).userThemeButtonText,defaultThemeButtonText:R2({localeKey:n.deps.localeKey}).defaultThemeButtonText},s={custom:i.userThemeButtonText,default:i.defaultThemeButtonText},a=e;return(l,c)=>(E(),R("div",p8t,[b("div",m8t,[b("h2",{class:G(["bootstrap-styles fs-6 fw-bold mb-0 me-7",{"d-none":!r.isHeaderShow}])},W(i.title),3),b("div",{class:G([{"d-none":!r.isHeaderShow},"bootstrap-styles me-7"])},[I(kU,{initialTab:N(o),tabList:s,onOnTabClicked:c[0]||(c[0]=u=>r.themeLibrarySourceKey=u)},null,8,["initialTab"])],2),r.themeLibrarySourceKey==="custom"?(E(),Q(U7t,{key:0,deps:n.deps.customThemeLibraryDeps,themeLibrary:n.themeLibrary,currentThemeSettings:n.currentThemeSettings,onOnThemeLibrarySectionItemUpdated:c[1]||(c[1]=()=>a("onThemeLibrarySectionItemUpdated")),onSelectedThemeSettings:c[2]||(c[2]=u=>a("selectedThemeSettings",u)),onThemeSectionItemAdded:c[3]||(c[3]=()=>a("themeSectionItemAdded")),onThemeSectionItemRemoved:c[4]||(c[4]=()=>a("themeSectionItemRemoved")),onOnThemeLibrarySectionRemoved:c[5]||(c[5]=u=>a("onThemeLibrarySectionRemoved")),onOnThemeLibrarySectionAdded:c[6]||(c[6]=u=>a("onThemeLibrarySectionAdded")),onOnMenuOptionIndexChanged:c[7]||(c[7]=u=>r.isHeaderShow=!r.isHeaderShow)},null,8,["deps","themeLibrary","currentThemeSettings"])):oe("",!0),r.themeLibrarySourceKey==="default"?(E(),Q(u8t,{key:1,deps:n.deps.defaultThemeLibraryDeps,currentThemeSettings:n.currentThemeSettings,onSelectedThemeSettings:c[8]||(c[8]=u=>a("selectedThemeSettings",u)),onOnMenuOptionIndexChanged:c[9]||(c[9]=u=>r.isHeaderShow=!r.isHeaderShow)},null,8,["deps","currentThemeSettings"])):oe("",!0)])]))}}),g8t={title:"Delete component",description:"Are you sure you want to delete the component?",cancelButton:"Cancel",applyButton:"Delete"},y8t={title:"Удаление компонента",description:"Вы действительно хотите удалить компонент?",cancelButton:"Отмена",applyButton:"Удалить"},lO=ht({en:g8t,ru:y8t}),C8t={class:"bootstrap-styles px-11 py-7 text-start"},b8t=re({__name:"DeleteComponentLibrarySectionItemModalWindow",props:{deps:{},sectionItemId:{},sectionItemName:{}},emits:["onCanceled","onRemoveConfirmed"],setup(t,{emit:e}){const n=t,o={title:lO({localeKey:n.deps.localeKey}).title,description:lO({localeKey:n.deps.localeKey}).description,cancelButton:lO({localeKey:n.deps.localeKey}).cancelButton,applyButton:lO({localeKey:n.deps.localeKey}).applyButton},r=Le({isLoaded:!0}),i=e,s=async()=>{r.isLoaded=!1,await n.deps.deleteComponentLibrarySectionItem({sectionItemId:n.sectionItemId}),i("onRemoveConfirmed")};return(a,l)=>(E(),Q(bd,{class:"remove-element-confirm-modal-window",headerText:o.title,onClose:l[2]||(l[2]=()=>i("onCanceled"))},{body:Bt(()=>[b("div",C8t,W(o.description),1)]),"footer-actions":Bt(()=>[b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 border rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:l[0]||(l[0]=Nt(c=>i("onCanceled"),["stop"]))},W(o.cancelButton),1),b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white cursor-pointer position-relative remove-element-confirm__button",onClick:l[1]||(l[1]=Nt(c=>s(),["stop"]))},[b("span",{class:G({"bootstrap-styles invisible":!r.isLoaded})},W(o.applyButton),3),I(GC,{class:G(["preloader",{invisible:r.isLoaded}])},null,8,["class"])])]),_:1},8,["headerText"]))}}),v8t={title:"Edit component",componentNameLabel:"Name",componentNamePlaceholder:"Component name...",componentSectionLabel:"Section",cancelButton:"Cancel",applyButton:"Save"},w8t={title:"Редактирование компонента",componentNameLabel:"Название",componentNamePlaceholder:"Название компонента...",componentSectionLabel:"Секция",cancelButton:"Отмена",applyButton:"Сохранить"},_x=ht({en:v8t,ru:w8t}),S8t={class:"bootstrap-styles fw-bold mb-5"},x8t={class:"bootstrap-styles col-12 mb-13"},T8t={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},k8t=["placeholder","disabled"],F8t={class:"bootstrap-styles fw-bold mb-5"},E8t={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},L8t=["disabled"],_8t={class:"bootstrap-styles d-flex justify-content-center align-items-center"},A8t={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuSectionSelect"},R8t=["onClick"],D8t={class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer"},B8t=re({__name:"EditComponentLibrarySectionItemModalWindow",props:{deps:{},currentComponentSectionId:{},currentComponentSectionName:{},componentSectionId:{},componentName:{},componentId:{}},emits:["cancel","componentLibrarySectionItemUpdated"],setup(t,{emit:e}){const n=t,o={title:_x({localeKey:n.deps.localeKey}).title,componentNameLabel:_x({localeKey:n.deps.localeKey}).componentNameLabel,componentNamePlaceholder:_x({localeKey:n.deps.localeKey}).componentNamePlaceholder,componentSectionLabel:_x({localeKey:n.deps.localeKey}).componentSectionLabel,cancelButton:_x({localeKey:n.deps.localeKey}).cancelButton,applyButton:_x({localeKey:n.deps.localeKey}).applyButton},r=Le({componentLibrarySections:[],sectionItemName:n.componentName,selectedSectionId:n.currentComponentSectionId,selectedSectionName:n.currentComponentSectionName,isLoadedComponentLibrarySectionList:!0,isLoaded:!0});n.deps.getComponentLibrarySections().then(l=>{r.componentLibrarySections=l,r.isLoadedComponentLibrarySectionList=!1});const i=async()=>{r.sectionItemName.length&&(r.isLoaded=!1,await n.deps.updateComponentLibrarySectionItem({sectionItemId:n.componentId,updatedParentSectionId:r.selectedSectionId,updatedSectionItemName:r.sectionItemName}),a("componentLibrarySectionItemUpdated"))},s=()=>{a("cancel")},a=e;return(l,c)=>(E(),Q(bd,{class:"edit-component-modal-window",headerText:o.title,onClose:c[2]||(c[2]=()=>s())},{body:Bt(()=>[I(MU,{class:G(["bootstrap-styles position-absolute top-50 start-50",{invisible:!r.isLoadedComponentLibrarySectionList}])},null,8,["class"]),b("div",{class:G(["bootstrap-styles px-11 py-7 text-start",{invisible:r.isLoadedComponentLibrarySectionList}])},[b("label",S8t,W(o.componentNameLabel),1),b("div",x8t,[b("div",T8t,[Ke(b("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.sectionItemName=u),type:"text",class:"bootstrap-styles w-100",placeholder:o.componentNamePlaceholder,disabled:!r.isLoaded},null,8,k8t),[[Ea,r.sectionItemName],[N(Dg),r.isLoaded]])])]),b("div",null,[b("label",F8t,W(o.componentSectionLabel),1),b("div",E8t,[Ke((E(),R("button",{id:"dropdownMenuSectionSelect",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false",disabled:!r.isLoaded},[b("span",null,W(r.selectedSectionName),1),b("i",_8t,[I(Si)])],8,L8t)),[[N(ah)]]),b("ul",A8t,[(E(!0),R(Se,null,At(r.componentLibrarySections,u=>(E(),R("li",{key:u.sectionId,class:"bootstrap-styles dropdown-item p-0",onClick:()=>{r.selectedSectionName=u.sectionName,r.selectedSectionId=u.sectionId}},[b("span",D8t,W(u.sectionName),1)],8,R8t))),128))])])])],2)]),"footer-actions":Bt(()=>[b("button",{class:G([{button__locked:!r.isLoaded},"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected"]),onClick:c[1]||(c[1]=Nt(u=>s(),["stop"]))},W(o.cancelButton),3),b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white cursor-pointer bg-color-selected button__hover-blue-400",onClick:Nt(i,["stop"])},[b("span",{class:G({"bootstrap-styles invisible":!r.isLoaded})},W(o.applyButton),3),I(GC,{class:G(["bootstrap-styles position-absolute",{invisible:r.isLoaded}])},null,8,["class"])])]),_:1},8,["headerText"]))}}),N8t={editComponentButton:"Edit",deleteComponentButton:"Delete"},I8t={editComponentButton:"Редактировать",deleteComponentButton:"Удалить"},Nke=ht({en:N8t,ru:I8t}),M8t={class:"bootstrap-styles preview-component user-select-none"},$8t={class:"bootstrap-styles preview-component-container"},O8t={class:"bootstrap-styles py-1 ps-2 pe-13 w-100"},P8t={class:"bootstrap-styles p-14 icon-hover"},V8t={class:"bootstrap-styles me-1"},W8t={class:"bootstrap-styles me-1"},Ike=123,Mke=363,H8t=re({__name:"CustomComponentSectionItem",props:{deps:{},theme:{},componentTemplate:{},componentSection:{},componentLibrary:{},component:{},componentName:{}},emits:["componentLibrarySectionItemRemoved","componentLibrarySectionItemUpdated"],setup(t,{emit:e}){Cd(g=>({v881dca2c:u.value+"px",v4b9a13ee:c.value+"px"}));const n=t,o={editComponentButton:Nke({localeKey:n.deps.localeKey}).editComponentButton,deleteComponentButton:Nke({localeKey:n.deps.localeKey}).deleteComponentButton},r=Le({isPreviewWindowShown:!1,isContextMenuShown:!1,isDeleteComponentLibrarySectionItemModalWindow:!1,isEditComponentWindowShown:!1}),i=Rt(null),s=Rt(null),a=Rt(null),l=Rt(null),c=ne(()=>Ike),u=ne(()=>Mke),d=g=>{const C=Math.round(g*(Mke/n.theme.BodyWidth));i.value&&C>=Ike&&i.value.classList.add("allow-animation")},{floatingStyles:h}=zF(s,i,{placement:"right",whileElementsMounted:WF,middleware:[HF(10)]}),{floatingStyles:p}=zF(a,l,{placement:"right",whileElementsMounted:WF,middleware:[HF(20)]}),m=g=>{const C=g.parentElement;C&&(C.style.height=g.getBoundingClientRect().height+"px")},f=e;return(g,C)=>(E(),R("div",M8t,[b("div",$8t,[b("div",{ref_key:"componentPreviewElmRef",ref:s,class:"bootstrap-styles input__settings-text__item rounded-1 border shadow-hover-1 overflow-hidden position-relative"},[b("div",{class:"bootstrap-styles email-component__container section-item__drag-handler rounded-top overflow-hidden",onMouseenter:C[1]||(C[1]=Nt(()=>{r.isPreviewWindowShown=!0,r.isEditComponentWindowShown=!1},["stop"])),onMouseleave:C[2]||(C[2]=v=>r.isPreviewWindowShown=!1)},[I(eH,{onScaledElement:C[0]||(C[0]=v=>m(v))},{default:Bt(()=>[I(HM,null,{default:Bt(()=>[I(rI,{class:"bootstrap-styles pe-none",emailComponent:n.componentTemplate,deps:n.deps.emailComponentDeps,theme:n.theme,path:[],selectedElementPath:[],style:Te({width:`${n.theme.BodyWidth}px`})},null,8,["emailComponent","deps","theme","style"])]),_:1})]),_:1})],32),b("div",{class:"bootstrap-styles input__settings-text__item__title bg-white border-top rounded-bottom preview-component__label d-flex justify-content-between align-items-center section-item__drag-handler",onMouseenter:C[3]||(C[3]=Nt(()=>{r.isPreviewWindowShown=!0,r.isEditComponentWindowShown=!1},["stop"])),onMouseleave:C[4]||(C[4]=v=>r.isPreviewWindowShown=!1)},[b("div",O8t,W(n.componentName),1)],32),b("button",{ref_key:"componentPreviewContextButtonElmRef",ref:a,class:G(["preview-component__context-button",{"preview-component__context-button__active":r.isContextMenuShown}]),onClick:C[5]||(C[5]=()=>{r.isContextMenuShown=!r.isContextMenuShown,r.isPreviewWindowShown=!1}),onBlur:C[6]||(C[6]=v=>r.isContextMenuShown=!1)},[b("i",P8t,[I(B9e)])],34)],512),Ke(b("div",{ref_key:"componentPreviewPopoverElmRef",ref:i,class:"preview-window bootstrap-styles border rounded-1 bg-white overflow-hidden position-absolute z-index-3 shadow-1 bottom-0",style:Te(N(h))},[I(eH,null,{default:Bt(()=>[Ke(I(rI,{deps:n.deps.emailComponentDeps,theme:n.theme,class:"preview-window__email-component",emailComponent:n.componentTemplate,path:[],selectedElementPath:[],style:Te({width:`${n.theme.BodyWidth}px`})},null,8,["deps","theme","emailComponent","style"]),[[N(jw),({height:v})=>d(v)]])]),_:1})],4),[[RL,r.isPreviewWindowShown]]),r.isContextMenuShown?(E(),R("div",{key:0,ref_key:"componentPreviewContextMenuElmRef",ref:l,class:"preview-component__context-menu bootstrap-styles rounded-1 border shadow-1 bg-white position-absolute z-index-3",style:Te(N(p)),onMouseleave:C[9]||(C[9]=v=>r.isContextMenuShown=!1)},[b("button",{class:"edit-button",onMousedown:C[7]||(C[7]=v=>r.isEditComponentWindowShown=!0)},[b("i",V8t,[I(D9e)]),no(" "+W(o.editComponentButton),1)],32),b("button",{class:"remove-button",onMousedown:C[8]||(C[8]=v=>r.isDeleteComponentLibrarySectionItemModalWindow=!0)},[b("i",W8t,[I(u$)]),no(" "+W(o.deleteComponentButton),1)],32)],36)):oe("",!0)]),(E(),Q(yo,{to:"body",defer:""},[r.isEditComponentWindowShown?(E(),Q(B8t,{key:0,deps:n.deps.editComponentLibrarySectionItemModalWindowDeps,componentId:n.component.sectionItemId,componentName:n.component.sectionItemName,componentSectionId:n.componentSection.sectionId,currentComponentSectionId:n.componentSection.sectionId,currentComponentSectionName:n.componentSection.sectionName,onComponentLibrarySectionItemUpdated:C[10]||(C[10]=()=>{f("componentLibrarySectionItemUpdated"),r.isEditComponentWindowShown=!1}),onCancel:C[11]||(C[11]=v=>r.isEditComponentWindowShown=!1)},null,8,["deps","componentId","componentName","componentSectionId","currentComponentSectionId","currentComponentSectionName"])):oe("",!0)])),(E(),Q(yo,{to:"body",defer:""},[r.isDeleteComponentLibrarySectionItemModalWindow?(E(),Q(b8t,{key:0,deps:n.deps.deleteComponentLibrarySectionItemModalWindowDeps,sectionItemId:n.component.sectionItemId,sectionItemName:n.component.sectionItemName,onOnCanceled:C[12]||(C[12]=v=>r.isDeleteComponentLibrarySectionItemModalWindow=!1),onOnRemoveConfirmed:C[13]||(C[13]=()=>{f("componentLibrarySectionItemRemoved"),r.isDeleteComponentLibrarySectionItemModalWindow=!1})},null,8,["deps","sectionItemId","sectionItemName"])):oe("",!0)]))]))}}),z8t=ve(H8t,[["__scopeId","data-v-2c3c40df"]]),j8t={title:"Delete section",description:"Are you sure you want to delete the section",cancelButton:"Cancel",applyButton:"Delete",errorButtonTooltip:"Error"},K8t={title:"Удаление секции",description:"Вы действительно хотите удалить секцию",cancelButton:"Отмена",applyButton:"Удалить",errorButtonTooltip:"Ошибка"},Z_=ht({en:j8t,ru:K8t}),U8t={},q8t={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function J8t(t,e){return E(),R("svg",q8t,[...e[0]||(e[0]=[b("path",{d:"M8.00001 14.6667C4.31811 14.6667 1.33334 11.6819 1.33334 8.00004C1.33334 4.31814 4.31811 1.33337 8.00001 1.33337C11.6819 1.33337 14.6667 4.31814 14.6667 8.00004C14.6667 11.6819 11.6819 14.6667 8.00001 14.6667ZM7.33334 10V11.3334H8.66668V10H7.33334ZM7.33334 4.66671V8.66671H8.66668V4.66671H7.33334Z",fill:"var(--white)"},null,-1)])])}const I9e=ve(U8t,[["render",J8t]]),G8t={class:"bootstrap-styles px-11 py-7 text-start"},Y8t={key:0},Z8t={key:2,class:"bootstrap-styles d-flex align-items-center justify-content-center"},X8t=re({__name:"DeleteComponentLibrarySectionModalWindow",props:{deps:{},sectionId:{},sectionName:{}},emits:["onCanceled","onRemoveConfirmed"],setup(t,{emit:e}){const n=t,o={title:Z_({localeKey:n.deps.localeKey}).title,description:Z_({localeKey:n.deps.localeKey}).description,cancelButton:Z_({localeKey:n.deps.localeKey}).cancelButton,applyButton:Z_({localeKey:n.deps.localeKey}).applyButton,errorButtonTooltip:Z_({localeKey:n.deps.localeKey}).errorButtonTooltip},r=Le({deleteComponentLibrarySectionButtonState:"NoChanges"}),i=async()=>{r.deleteComponentLibrarySectionButtonState="Deleting";try{await n.deps.deleteComponentLibrarySection({sectionId:n.sectionId})==="Success"?s("onRemoveConfirmed"):r.deleteComponentLibrarySectionButtonState="Error"}catch{r.deleteComponentLibrarySectionButtonState="Error"}},s=e;return(a,l)=>(E(),Q(bd,{class:"remove-element-confirm-modal-window",headerText:o.title,onClose:l[2]||(l[2]=()=>s("onCanceled"))},{body:Bt(()=>[b("div",G8t,W(o.description)+" «"+W(n.sectionName)+"»? ",1)]),"footer-actions":Bt(()=>[b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:l[0]||(l[0]=Nt(c=>s("onCanceled"),["stop"]))},W(o.cancelButton),1),Ke((E(),R("button",{class:G(["modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white cursor-pointer position-relative remove-element-confirm__button",{"delete-button__error":r.deleteComponentLibrarySectionButtonState==="Error","delete-button__deleting":r.deleteComponentLibrarySectionButtonState==="Deleting"}]),onClick:l[1]||(l[1]=Nt(c=>i(),["stop"]))},[r.deleteComponentLibrarySectionButtonState==="NoChanges"?(E(),R("span",Y8t,W(o.applyButton),1)):oe("",!0),r.deleteComponentLibrarySectionButtonState==="Deleting"?(E(),Q(GC,{key:1,class:"preloader"})):oe("",!0),r.deleteComponentLibrarySectionButtonState==="Error"?(E(),R("i",Z8t,[I(I9e,{class:"bootstrap-styles me-0"})])):oe("",!0)],2)),[[N(Xn),{title:r.deleteComponentLibrarySectionButtonState==="Error"?o.errorButtonTooltip:"",placement:"bottom"}]])]),_:1},8,["headerText"]))}}),Q8t={emptySectionText:"No components in this group",deleteSectionButton:"Delete section"},e9t={emptySectionText:"В этой группе нет компонентов",deleteSectionButton:"Удалить секцию"},$ke=ht({en:Q8t,ru:e9t}),t9t={class:"bootstrap-styles d-flex flex-column justify-content-center align-items-center h-100 pe-7"},n9t={class:"bootstrap-styles mt-auto d-flex flex-column justify-content-center align-items-center"},o9t={class:"bootstrap-styles text-gray-600"},r9t=re({__name:"EmptyComponentSection",props:{deps:{},sectionId:{},sectionName:{}},emits:["onComponentLibrarySectionRemoved"],setup(t,{emit:e}){const n=t,o={emptySectionText:$ke({localeKey:n.deps.localeKey}).emptySectionText,deleteSectionButton:$ke({localeKey:n.deps.localeKey}).deleteSectionButton},r=Le({isRemoveComponentLibrarySectionModalWindowShown:!1}),i=()=>{s("onComponentLibrarySectionRemoved"),r.isRemoveComponentLibrarySectionModalWindowShown=!1},s=e;return(a,l)=>(E(),R(Se,null,[b("div",t9t,[b("div",n9t,[I(N9e),b("p",o9t,W(o.emptySectionText),1)]),b("button",{class:"bootstrap-styles py-1 px-3 rounded-2 w-100 mt-auto section__remove-button",onClick:l[0]||(l[0]=c=>r.isRemoveComponentLibrarySectionModalWindowShown=!0)},[b("i",null,[I(u$)]),no(" "+W(o.deleteSectionButton),1)])]),(E(),Q(yo,{to:"body",defer:""},[r.isRemoveComponentLibrarySectionModalWindowShown?(E(),Q(X8t,{key:0,deps:n.deps.deleteComponentLibrarySectionModalWindowDeps,sectionId:n.sectionId,sectionName:n.sectionName,onOnCanceled:l[1]||(l[1]=c=>r.isRemoveComponentLibrarySectionModalWindowShown=!1),onOnRemoveConfirmed:l[2]||(l[2]=c=>i())},null,8,["deps","sectionId","sectionName"])):oe("",!0)]))],64))}}),i9t=ve(r9t,[["__scopeId","data-v-529a5d72"]]),s9t={cancelDragging:"Cancel",dropHere:"Drop here"},a9t={cancelDragging:"Отменить",dropHere:"Бросьте сюда"},Oke=ht({en:s9t,ru:a9t}),l9t={key:0,class:"bootstrap-styles h-100 overflow-hidden"},c9t=["data-drop-zone-cancel"],u9t=re({__name:"CustomComponentSection",props:{deps:{},theme:{},componentSection:{},componentLibrary:{},componentLibrarySectionUpdated:{type:Boolean}},emits:["back","componentLibrarySectionItemRemoved","componentLibrarySectionItemUpdated","onComponentDraggedFromLibrary","onComponentLibrarySectionRemoved"],setup(t,{emit:e}){const n=t,o={cancelDragging:Oke({localeKey:n.deps.localeKey}).cancelDragging,dropHere:Oke({localeKey:n.deps.localeKey}).dropHere},r=ne(()=>n.componentSection.componentList.map(u=>u.componentTemplate)),i=Le({isDragging:!1}),s=(u,d)=>{const h=u.to.classList.contains("_emailTemplateDropArea");i.isDragging=!1,h&&c("onComponentDraggedFromLibrary",d)},a={group:{name:"rowComponents",pull:"clone",put:!0},sort:!1,forceFallback:!1},l={group:{name:"rowComponents",pull:"clone",put:!1},sort:!1,forceFallback:!0,handle:".section-item__drag-handler",clone:()=>{}},c=e;return(u,d)=>(E(),R(Se,null,[I(IU,{title:n.componentSection.sectionName,onClick:d[0]||(d[0]=h=>c("back"))},null,8,["title"]),n.componentSection.componentList.length>0?(E(),R("div",l9t,[n.componentLibrarySectionUpdated?oe("",!0):(E(),Q(N(Kw),{key:0,class:"bootstrap-styles my-5",width:"216",height:"17"})),b("div",{class:G(["bootstrap-styles h-100 d-flex flex-column",{"is-dragging me-1":i.isDragging}])},[b("div",{class:"drop-zone bootstrap-styles h-100 justify-content-center align-items-center me-3","data-drop-zone-cancel":o.cancelDragging},[I(N(tI),go({class:"bootstrap-styles list-group h-100 w-100"},{list:[],...a}),{item:Bt(()=>[...d[7]||(d[7]=[])]),_:1},16)],8,c9t),I(N(tI),go({class:["bootstrap-styles preview-component-list me-14 pe-3 scrollable d-flex flex-column gap-6",{"is-dragging":i.isDragging}],modelValue:r.value,"onUpdate:modelValue":d[3]||(d[3]=h=>r.value=h)},l,{onStart:d[4]||(d[4]=h=>i.isDragging=!0),onEnd:d[5]||(d[5]=h=>{s(h,{index:h.newIndex,component:n.componentSection.componentList[h.oldIndex].componentTemplate})})}),{default:Bt(()=>[(E(!0),R(Se,null,At(n.componentSection.componentList,h=>(E(),Q(z8t,go({key:h.sectionItemId},{ref_for:!0},{"data-drop-here-message":o.dropHere},{deps:n.deps.componentSectionItemDeps,theme:n.theme,componentTemplate:h.componentTemplate,componentSection:n.componentSection,componentLibrary:n.componentLibrary,component:h,componentName:h.sectionItemName,onComponentLibrarySectionItemRemoved:d[1]||(d[1]=()=>c("componentLibrarySectionItemRemoved")),onComponentLibrarySectionItemUpdated:d[2]||(d[2]=()=>c("componentLibrarySectionItemUpdated"))}),null,16,["deps","theme","componentTemplate","componentSection","componentLibrary","component","componentName"]))),128))]),_:1},16,["class","modelValue"])],2)])):(E(),Q(i9t,{key:1,deps:n.deps.emptyComponentSectionDeps,sectionId:n.componentSection.sectionId,sectionName:n.componentSection.sectionName,onOnComponentLibrarySectionRemoved:d[6]||(d[6]=()=>{c("back"),c("onComponentLibrarySectionRemoved")})},null,8,["deps","sectionId","sectionName"]))],64))}}),d9t=ve(u9t,[["__scopeId","data-v-934c5ebe"]]),h9t={title:"New section",inputLabel:"Name",inputPlaceholder:"Section name...",cancelButton:"Cancel",applyButton:"Save"},p9t={title:"Новая секция",inputLabel:"Название",inputPlaceholder:"Название секции...",cancelButton:"Отмена",applyButton:"Сохранить"},X_=ht({en:h9t,ru:p9t}),m9t={class:"bootstrap-styles px-11 py-7 text-start"},f9t={class:"bootstrap-styles fw-bold mb-5"},g9t={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},y9t=["placeholder","disabled"],C9t=re({__name:"CreateComponentLibrarySectionModalWindow",props:{deps:{}},emits:["cancel","componentLibrarySectionCreated"],setup(t,{emit:e}){const n=t,o={title:X_({localeKey:n.deps.localeKey}).title,inputLabel:X_({localeKey:n.deps.localeKey}).inputLabel,inputPlaceholder:X_({localeKey:n.deps.localeKey}).inputPlaceholder,cancelButton:X_({localeKey:n.deps.localeKey}).cancelButton,applyButton:X_({localeKey:n.deps.localeKey}).applyButton},r=Le({componentSectionName:"",isLoaded:!0}),i=async()=>{r.componentSectionName.length!==0&&(r.isLoaded=!1,await n.deps.createComponentLibrarySection({sectionName:r.componentSectionName}),a("componentLibrarySectionCreated"))},s=()=>{a("cancel")},a=e;return(l,c)=>(E(),Q(bd,{class:"save-theme-modal-window",headerText:o.title,onClose:c[3]||(c[3]=()=>s())},{body:Bt(()=>[b("div",m9t,[b("label",f9t,W(o.inputLabel),1),b("div",g9t,[Ke(b("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.componentSectionName=u),type:"text",class:"bootstrap-styles w-100",placeholder:o.inputPlaceholder,disabled:!r.isLoaded},null,8,y9t),[[Ea,r.componentSectionName],[N(Dg)]])])])]),"footer-actions":Bt(()=>[b("button",{class:G([{button__locked:!r.isLoaded},"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected"]),onClick:c[1]||(c[1]=Nt(u=>s(),["stop"]))},W(o.cancelButton),3),b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white cursor-pointer bg-color-selected button__hover-blue-400",onClick:c[2]||(c[2]=Nt(u=>i(),["stop"]))},[b("span",{class:G({"bootstrap-styles invisible":!r.isLoaded})},W(o.applyButton),3),I(GC,{class:G(["bootstrap-styles position-absolute",{invisible:r.isLoaded}])},null,8,["class"])])]),_:1},8,["headerText"]))}}),b9t={hideEmptySectionsCheckbox:"Hide empty sections",addComponentLibrarySectionButton:"Add section"},v9t={hideEmptySectionsCheckbox:"Скрыть пустые секции",addComponentLibrarySectionButton:"Добавить секцию"},Pke=ht({en:b9t,ru:v9t}),w9t={class:"bootstrap-styles h-100 d-flex flex-column overflow-hidden"},S9t={class:"bootstrap-styles list-group list-group-flush p-0 me-5"},x9t=["onClick"],T9t={key:0,class:"bootstrap-styles d-flex align-items-center w-100"},k9t={class:"bootstrap-styles me-1 w-100"},F9t={class:"bootstrap-styles d-flex align-items-center"},E9t={class:"bootstrap-styles icon-hover-stroke"},L9t={for:"button-hide-empty-component-section",class:"label__checkbox-input"},_9t={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1 icon-stroke"},A9t=re({__name:"CustomComponentLibrary",props:{deps:{},theme:{},componentLibrary:{},componentLibrarySectionUpdated:{type:Boolean}},emits:["componentLibrarySectionItemUpdated","componentLibrarySectionItemRemoved","componentLibrarySectionCreated","onComponentDraggedFromLibrary","onComponentLibrarySectionRemoved","onMenuOptionIndexChanged"],setup(t,{emit:e}){const n=t,o={hideEmptySectionsCheckbox:Pke({localeKey:n.deps.localeKey}).hideEmptySectionsCheckbox,addComponentLibrarySectionButton:Pke({localeKey:n.deps.localeKey}).addComponentLibrarySectionButton},r=Le({menuOptionIndex:null,isLoaded:!0,removedSectionIndex:null,isAddComponentLibrarySectionModalWindowShown:!1,isHiddenEmptyComponentLibrarySection:n.componentLibrary.some(c=>c?.componentList?.length>0)}),i=()=>{r.isHiddenEmptyComponentLibrarySection=!r.isHiddenEmptyComponentLibrarySection},s=()=>{l("componentLibrarySectionCreated"),r.isHiddenEmptyComponentLibrarySection=!1,r.isAddComponentLibrarySectionModalWindowShown=!1,r.isLoaded=!1},a=c=>{l("onComponentLibrarySectionRemoved"),r.removedSectionIndex=c};on(()=>n.componentLibrary,c=>{c&&(r.isLoaded=!0,r.removedSectionIndex=null)});const l=e;return(c,u)=>(E(),R("div",w9t,[b("div",{class:G(["bootstrap-styles h-100 flex-column me-14 overflow-scroll",[r.menuOptionIndex===null?"d-flex":"d-none"]])},[b("div",S9t,[(E(!0),R(Se,null,At(n.componentLibrary,(d,h)=>(E(),R("button",{key:h,class:G(["bootstrap-styles list-group-item py-5 px-0 text-start border-gray-200 justify-content-between",[r.isHiddenEmptyComponentLibrarySection&&d.componentList.length===0?"d-none":"d-flex"]]),onClick:()=>{r.menuOptionIndex=h,l("onMenuOptionIndexChanged")}},[r.removedSectionIndex!==h?(E(),R("span",T9t,[b("span",k9t,W(d.sectionName),1),b("span",F9t,[b("span",{class:G(["bootstrap-styles componentLibrarySection-quantity px-1 me-1",{empty:d.componentList.length===0}])},W(d.componentList.length),3),b("i",E9t,[I(NU)])])])):oe("",!0),r.removedSectionIndex===h?(E(),Q(N(Kw),{key:1,width:"216",height:"17"})):oe("",!0)],10,x9t))),128)),!r.isLoaded&&!r.isHiddenEmptyComponentLibrarySection?(E(),Q(N(Kw),{key:0,class:"bootstrap-styles my-5",width:"216",height:"17"})):oe("",!0)])],2),(E(!0),R(Se,null,At(n.componentLibrary,(d,h)=>(E(),R("div",{key:h,class:G({"bootstrap-styles h-100 d-flex flex-column":r.menuOptionIndex===h})},[r.menuOptionIndex===h?(E(),Q(d9t,{key:0,theme:n.theme,deps:n.deps.componentSectionDeps,componentLibrary:n.componentLibrary,componentSection:d,componentLibrarySectionUpdated:n.componentLibrarySectionUpdated,onBack:u[0]||(u[0]=()=>{r.menuOptionIndex=null,l("onMenuOptionIndexChanged")}),onComponentLibrarySectionItemUpdated:u[1]||(u[1]=p=>l("componentLibrarySectionItemUpdated")),onComponentLibrarySectionItemRemoved:u[2]||(u[2]=p=>l("componentLibrarySectionItemRemoved")),onOnComponentDraggedFromLibrary:u[3]||(u[3]=p=>l("onComponentDraggedFromLibrary",p)),onOnComponentLibrarySectionRemoved:p=>a(h)},null,8,["theme","deps","componentLibrary","componentSection","componentLibrarySectionUpdated","onOnComponentLibrarySectionRemoved"])):oe("",!0)],2))),128)),b("div",{class:G(["bootstrap-styles mt-7 me-7 mb-7",[r.menuOptionIndex===null?"d-flex":"d-none"]])},[I(th,{id:"button-hide-empty-component-section",checked:r.isHiddenEmptyComponentLibrarySection,onChange:u[4]||(u[4]=d=>i())},null,8,["checked"]),b("label",L9t,W(o.hideEmptySectionsCheckbox),1)],2),b("button",{class:G(["bootstrap-styles d-flex align-items-center justify-content-center py-1 px-3 me-7 rounded-2 button__hover-blue-100 bg-blue-selected text-color-selected font-weight-500",[r.menuOptionIndex===null?"d-flex":"d-none"]]),onClick:u[5]||(u[5]=d=>r.isAddComponentLibrarySectionModalWindowShown=!0)},[b("i",_9t,[I(R9e)]),no(" "+W(o.addComponentLibrarySectionButton),1)],2),(E(),Q(yo,{to:"body",defer:""},[r.isAddComponentLibrarySectionModalWindowShown?(E(),Q(C9t,{key:0,deps:n.deps.createComponentLibrarySectionModalWindowDeps,onComponentLibrarySectionCreated:u[6]||(u[6]=d=>s()),onCancel:u[7]||(u[7]=d=>r.isAddComponentLibrarySectionModalWindowShown=!1)},null,8,["deps"])):oe("",!0)]))]))}}),R9t={class:"bootstrap-styles preview-component user-select-none"},D9t={class:"bootstrap-styles preview-component-container"},B9t={class:"bootstrap-styles email-component__container section-item__drag-handler rounded-top overflow-hidden"},N9t={class:"bootstrap-styles input__settings-text__item__title bg-white border-top rounded-bottom preview-component__label d-flex justify-content-between align-items-center section-item__drag-handler"},I9t={class:"bootstrap-styles py-1 ps-2 pe-13 w-100"},Vke=123,Wke=363,M9t=re({__name:"DefaultComponentSectionItem",props:{deps:{},theme:{},componentTemplate:{},componentName:{}},setup(t){Cd(u=>({v3d2ce460:s.value+"px",ff1f495a:i.value+"px"}));const e=t,n=Le({isPreviewWindowShown:!1}),o=Rt(null),r=Rt(null),i=ne(()=>Vke),s=ne(()=>Wke),a=u=>{const d=Math.round(u*(Wke/e.theme.BodyWidth));o.value&&d>=Vke&&o.value.classList.add("allow-animation")},{floatingStyles:l}=zF(r,o,{placement:"right",whileElementsMounted:WF,middleware:[HF(10)]}),c=u=>{const d=u.parentElement;d&&(d.style.height=u.getBoundingClientRect().height+"px")};return(u,d)=>(E(),R("div",R9t,[b("div",D9t,[b("div",{ref_key:"componentPreviewElmRef",ref:r,class:"bootstrap-styles input__settings-text__item rounded-1 border shadow-hover-1 overflow-hidden position-relative",onMouseenter:d[1]||(d[1]=Nt(()=>{n.isPreviewWindowShown=!0},["stop"])),onMouseleave:d[2]||(d[2]=h=>n.isPreviewWindowShown=!1)},[b("div",B9t,[I(eH,{onScaledElement:d[0]||(d[0]=h=>c(h))},{default:Bt(()=>[I(HM,null,{default:Bt(()=>[I(rI,{class:"bootstrap-styles pe-none",emailComponent:e.componentTemplate,deps:e.deps.emailComponentDeps,theme:e.theme,path:[],selectedElementPath:[],style:Te({width:`${e.theme.BodyWidth}px`})},null,8,["emailComponent","deps","theme","style"])]),_:1})]),_:1})]),b("div",N9t,[b("div",I9t,W(e.componentName),1)])],544),Ke(b("div",{ref_key:"componentPreviewPopoverElmRef",ref:o,class:"preview-window bootstrap-styles border rounded-1 bg-white overflow-hidden position-absolute z-index-3 shadow-1 bottom-0",style:Te(N(l))},[I(eH,null,{default:Bt(()=>[Ke(I(rI,{deps:e.deps.emailComponentDeps,theme:e.theme,class:"preview-window__email-component",emailComponent:e.componentTemplate,path:[],selectedElementPath:[],style:Te({width:`${e.theme.BodyWidth}px`})},null,8,["deps","theme","emailComponent","style"]),[[N(jw),({height:h})=>a(h)]])]),_:1})],4),[[RL,n.isPreviewWindowShown]])])]))}}),$9t=ve(M9t,[["__scopeId","data-v-98d6c4b5"]]),O9t={cancelDragging:"Cancel",dropHere:"Drop here"},P9t={cancelDragging:"Отменить",dropHere:"Бросьте сюда"},Hke=ht({en:O9t,ru:P9t}),V9t={key:0,class:"bootstrap-styles h-100 overflow-hidden"},W9t=["data-drop-zone-cancel"],H9t=re({__name:"DefaultComponentSection",props:{deps:{},theme:{},componentSection:{},componentLibrary:{}},emits:["back","onComponentDraggedFromLibrary"],setup(t,{emit:e}){const n=t,o={cancelDragging:Hke({localeKey:n.deps.localeKey}).cancelDragging,dropHere:Hke({localeKey:n.deps.localeKey}).dropHere},r=ne(()=>n.componentSection.componentList.map(u=>u.componentTemplate)),i=Le({isDragging:!1}),s=(u,d)=>{const h=u.to.classList.contains("_emailTemplateDropArea");i.isDragging=!1,h&&c("onComponentDraggedFromLibrary",d)},a={group:{name:"rowComponents",pull:"clone",put:!0},sort:!1,forceFallback:!1},l={group:{name:"rowComponents",pull:"clone",put:!1},sort:!1,forceFallback:!0,handle:".section-item__drag-handler",clone:()=>{}},c=e;return(u,d)=>(E(),R(Se,null,[I(IU,{title:n.componentSection.sectionName,onClick:d[0]||(d[0]=h=>c("back"))},null,8,["title"]),n.componentSection.componentList.length>0?(E(),R("div",V9t,[b("div",{class:G(["bootstrap-styles h-100 d-flex flex-column",{"is-dragging me-1":i.isDragging}])},[b("div",{class:"drop-zone bootstrap-styles h-100 justify-content-center align-items-center me-3","data-drop-zone-cancel":o.cancelDragging},[I(N(tI),go({class:"bootstrap-styles list-group h-100 w-100"},{list:[],...a}),{item:Bt(()=>[...d[4]||(d[4]=[])]),_:1},16)],8,W9t),I(N(tI),go({class:["bootstrap-styles preview-component-list me-14 pe-3 scrollable d-flex flex-column gap-6",{"is-dragging":i.isDragging}],modelValue:r.value,"onUpdate:modelValue":d[1]||(d[1]=h=>r.value=h)},l,{onStart:d[2]||(d[2]=h=>i.isDragging=!0),onEnd:d[3]||(d[3]=h=>{s(h,{index:h.newIndex,component:n.componentSection.componentList[h.oldIndex].componentTemplate})})}),{default:Bt(()=>[(E(!0),R(Se,null,At(n.componentSection.componentList,h=>(E(),Q($9t,go({key:h.sectionItemId},{ref_for:!0},{"data-drop-here-message":o.dropHere},{deps:n.deps.componentSectionItemDeps,theme:n.theme,componentTemplate:h.componentTemplate,componentName:h.sectionItemName}),null,16,["deps","theme","componentTemplate","componentName"]))),128))]),_:1},16,["class","modelValue"])],2)])):oe("",!0)],64))}}),z9t=ve(H9t,[["__scopeId","data-v-4376738a"]]),j9t={class:"bootstrap-styles h-100 d-flex flex-column overflow-hidden"},K9t={class:"bootstrap-styles list-group list-group-flush p-0 me-5"},U9t=["onClick"],q9t={class:"bootstrap-styles me-1"},J9t={class:"bootstrap-styles d-flex align-items-center"},G9t={class:"bootstrap-styles componentLibrarySection-quantity px-1 me-1"},Y9t={class:"bootstrap-styles icon-hover-stroke"},Z9t=re({__name:"DefaultComponentLibrary",props:{deps:{},theme:{}},emits:["componentLibrarySectionItemUpdated","componentLibrarySectionItemRemoved","componentLibrarySectionCreated","onComponentDraggedFromLibrary","onComponentLibrarySectionRemoved","onMenuOptionIndexChanged"],setup(t,{emit:e}){const n=t,o=Le({menuOptionIndex:null}),r=e;return(i,s)=>(E(),R("div",j9t,[b("div",{class:G(["bootstrap-styles h-100 flex-column me-14 overflow-scroll",[o.menuOptionIndex===null?"d-flex":"d-none"]])},[b("div",K9t,[(E(!0),R(Se,null,At(n.deps.defaultComponentLibrary,(a,l)=>(E(),R("button",{key:l,class:"bootstrap-styles d-flex list-group-item py-5 px-0 text-start border-gray-200 justify-content-between",onClick:()=>{o.menuOptionIndex=l,r("onMenuOptionIndexChanged")}},[b("span",q9t,W(a.sectionName),1),b("span",J9t,[b("span",G9t,W(a.componentList.length),1),b("i",Y9t,[I(NU)])])],8,U9t))),128))])],2),(E(!0),R(Se,null,At(n.deps.defaultComponentLibrary,(a,l)=>(E(),R("div",{key:l,class:G({"bootstrap-styles h-100 d-flex flex-column":o.menuOptionIndex===l})},[o.menuOptionIndex===l?(E(),Q(z9t,{key:0,theme:n.theme,deps:n.deps.componentSectionDeps,componentLibrary:n.deps.defaultComponentLibrary,componentSection:a,onBack:s[0]||(s[0]=()=>{o.menuOptionIndex=null,r("onMenuOptionIndexChanged")}),onOnComponentDraggedFromLibrary:s[1]||(s[1]=c=>r("onComponentDraggedFromLibrary",c))},null,8,["theme","deps","componentLibrary","componentSection"])):oe("",!0)],2))),128))]))}}),X9t={title:"Components",myComponentsButton:"Custom",defaultComponentsButton:"Default"},Q9t={title:"Компоненты",myComponentsButton:"Мои",defaultComponentsButton:"Стандартные"},MY=ht({en:X9t,ru:Q9t}),eKt={class:"bootstrap-styles scrollable d-block h-100"},tKt={class:"bootstrap-styles flex-column gap-13 d-flex h-100"},nKt=re({__name:"ComponentLibrary",props:{deps:{},theme:{},componentLibrary:{},componentLibrarySectionUpdated:{type:Boolean}},emits:["componentLibrarySectionItemUpdated","componentLibrarySectionCreated","componentLibrarySectionItemRemoved","onCustomComponentDraggedFromLibrary","onDefaultComponentDraggedFromLibrary","onComponentLibrarySectionRemoved"],setup(t,{emit:e}){const n=t,o=n.componentLibrary.some(l=>l.componentList.length>0)?"custom":"default",r=Le({componentLibrarySourceKey:o,isHeaderShow:!0}),i={title:MY({localeKey:n.deps.localeKey}).title,myComponentsButton:MY({localeKey:n.deps.localeKey}).myComponentsButton,defaultComponentsButton:MY({localeKey:n.deps.localeKey}).defaultComponentsButton},s={custom:i.myComponentsButton,default:i.defaultComponentsButton},a=e;return(l,c)=>(E(),R("div",eKt,[b("div",tKt,[b("h2",{class:G(["bootstrap-styles fs-6 fw-bold mb-0 me-7",{"d-none":!r.isHeaderShow}])},W(i.title),3),b("div",{class:G(["bootstrap-styles me-7",{"d-none":!r.isHeaderShow}])},[I(kU,{initialTab:N(o),tabList:s,onOnTabClicked:c[0]||(c[0]=u=>r.componentLibrarySourceKey=u)},null,8,["initialTab"])],2),r.componentLibrarySourceKey==="custom"?(E(),Q(A9t,{key:0,deps:n.deps.customComponentLibraryDeps,theme:n.theme,componentLibrary:n.componentLibrary,componentLibrarySectionUpdated:n.componentLibrarySectionUpdated,onComponentLibrarySectionCreated:c[1]||(c[1]=u=>a("componentLibrarySectionCreated")),onComponentLibrarySectionItemUpdated:c[2]||(c[2]=u=>a("componentLibrarySectionItemUpdated")),onComponentLibrarySectionItemRemoved:c[3]||(c[3]=u=>a("componentLibrarySectionItemRemoved")),onOnComponentDraggedFromLibrary:c[4]||(c[4]=u=>a("onCustomComponentDraggedFromLibrary",u)),onOnComponentLibrarySectionRemoved:c[5]||(c[5]=u=>{a("onComponentLibrarySectionRemoved")}),onOnMenuOptionIndexChanged:c[6]||(c[6]=u=>r.isHeaderShow=!r.isHeaderShow)},null,8,["deps","theme","componentLibrary","componentLibrarySectionUpdated"])):oe("",!0),r.componentLibrarySourceKey==="default"?(E(),Q(Z9t,{key:1,deps:n.deps.defaultComponentLibraryDeps,theme:n.theme,onOnComponentDraggedFromLibrary:c[7]||(c[7]=u=>a("onCustomComponentDraggedFromLibrary",u)),onOnMenuOptionIndexChanged:c[8]||(c[8]=u=>r.isHeaderShow=!r.isHeaderShow)},null,8,["deps","theme"])):oe("",!0)])]))}}),oKt={},rKt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function iKt(t,e){return E(),R("svg",rKt,[...e[0]||(e[0]=[b("path",{d:"M2 8H14",stroke:"var(--gray-500)","stroke-width":"1.5"},null,-1)])])}const sKt=ve(oKt,[["render",iKt],["__scopeId","data-v-9ae22096"]]),aKt={},lKt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function cKt(t,e){return E(),R("svg",lKt,[...e[0]||(e[0]=[b("path",{d:"M2 8H14",stroke:"var(--gray-500)","stroke-width":"1.5"},null,-1),b("path",{d:"M8 2L8 14",stroke:"var(--gray-500)","stroke-width":"1.5"},null,-1)])])}const uKt=ve(aKt,[["render",cKt],["__scopeId","data-v-c5c80d4d"]]),dKt={class:"bootstrap-styles d-flex justify-content-between px-3 py-1 bg-color-input border rounded-2"},hKt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},pKt=["value"],mKt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},cO=5,zl=re({__name:"Counter",props:{value:{}},emits:["update:changeValue"],setup(t,{emit:e}){const n=t,o=()=>{n.value>=cO&&i("update:changeValue",Number(n.value-cO)),n.value<=cO&&i("update:changeValue",Number(n.value-n.value))},r=()=>{i("update:changeValue",Number(n.value+cO))},i=e;return(s,a)=>(E(),R("div",dKt,[b("button",{class:"bootstrap-styles d-flex justify-content-center align-center",onClick:a[0]||(a[0]=l=>o())},[b("i",hKt,[I(sKt)])]),b("input",{type:"number",class:"bootstrap-styles w-100 text-center",value:n.value,min:0,onInput:a[1]||(a[1]=l=>i("update:changeValue",Number(l.target.value)))},null,40,pKt),b("button",{class:"bootstrap-styles d-flex justify-content-center align-center",onClick:a[2]||(a[2]=l=>r())},[b("i",mKt,[I(uKt)])])]))}}),fKt={smallLabel:"Small",mediumLabel:"Medium",largeLabel:"Large",hugeLabel:"Huge",buttonLabel:"Buttons",buttonLeftRightLabel:"Left, right",buttonTopBottomLabel:"Top, bottom"},gKt={smallLabel:"Маленькие",mediumLabel:"Средние",largeLabel:"Большие",hugeLabel:"Гигантские",buttonLabel:"У кнопок",buttonLeftRightLabel:"Слева, справа",buttonTopBottomLabel:"Сверху, снизу"},a1=ht({en:fKt,ru:gKt}),yKt={class:"bootstrap-styles row gx-0"},CKt={class:"bootstrap-styles col-6"},bKt={class:"bootstrap-styles col-6 d-flex align-items-center"},vKt={class:"bootstrap-styles ps-5 text-gray-600"},wKt={class:"bootstrap-styles row gx-0"},SKt={class:"bootstrap-styles col-6"},xKt={class:"bootstrap-styles col-6 d-flex align-items-center"},TKt={class:"bootstrap-styles ps-5 text-gray-600"},kKt={class:"bootstrap-styles row gx-0"},FKt={class:"bootstrap-styles col-6"},EKt={class:"bootstrap-styles col-6 d-flex align-items-center"},LKt={class:"bootstrap-styles ps-5 text-gray-600"},_Kt={class:"bootstrap-styles row gx-0 mb-5"},AKt={class:"bootstrap-styles col-6"},RKt={class:"bootstrap-styles col-6 d-flex align-items-center"},DKt={class:"bootstrap-styles ps-5 text-gray-600"},BKt={class:"bootstrap-styles fw-bold mb-1"},NKt={class:"bootstrap-styles row gx-0"},IKt={class:"bootstrap-styles col-6"},MKt={class:"bootstrap-styles col-6 d-flex align-items-center"},$Kt={class:"bootstrap-styles ps-5 text-gray-600"},OKt={class:"bootstrap-styles row gx-0 mb-5"},PKt={class:"bootstrap-styles col-6"},VKt={class:"bootstrap-styles col-6 d-flex align-items-center"},WKt={class:"bootstrap-styles ps-5 text-gray-600"},HKt=re({__name:"ThemePaddingSettings",props:{deps:{},themeComponentPaddings:{},themeButtonPaddings:{}},emits:["update:themeComponentPaddingsChanged","update:themeButtonPaddingsChanged"],setup(t,{emit:e}){const n=t,o={smallLabel:a1({localeKey:n.deps.localeKey}).smallLabel,mediumLabel:a1({localeKey:n.deps.localeKey}).mediumLabel,largeLabel:a1({localeKey:n.deps.localeKey}).largeLabel,hugeLabel:a1({localeKey:n.deps.localeKey}).hugeLabel,buttonLabel:a1({localeKey:n.deps.localeKey}).buttonLabel,buttonLeftRightLabel:a1({localeKey:n.deps.localeKey}).buttonLeftRightLabel,buttonTopBottomLabel:a1({localeKey:n.deps.localeKey}).buttonTopBottomLabel},r=e;return(i,s)=>(E(),R(Se,null,[b("div",yKt,[b("div",CKt,[I(zl,{value:n.themeComponentPaddings.Small,"onUpdate:changeValue":s[0]||(s[0]=a=>r("update:themeComponentPaddingsChanged",{...n.themeComponentPaddings,Small:a}))},null,8,["value"])]),b("div",bKt,[b("label",vKt,W(o.smallLabel),1)])]),b("div",wKt,[b("div",SKt,[I(zl,{value:n.themeComponentPaddings.Medium,"onUpdate:changeValue":s[1]||(s[1]=a=>r("update:themeComponentPaddingsChanged",{...n.themeComponentPaddings,Medium:a}))},null,8,["value"])]),b("div",xKt,[b("label",TKt,W(o.mediumLabel),1)])]),b("div",kKt,[b("div",FKt,[I(zl,{value:n.themeComponentPaddings.Large,"onUpdate:changeValue":s[2]||(s[2]=a=>r("update:themeComponentPaddingsChanged",{...n.themeComponentPaddings,Large:a}))},null,8,["value"])]),b("div",EKt,[b("label",LKt,W(o.largeLabel),1)])]),b("div",_Kt,[b("div",AKt,[I(zl,{value:n.themeComponentPaddings.Huge,"onUpdate:changeValue":s[3]||(s[3]=a=>r("update:themeComponentPaddingsChanged",{...n.themeComponentPaddings,Huge:a}))},null,8,["value"])]),b("div",RKt,[b("label",DKt,W(o.hugeLabel),1)])]),b("label",BKt,W(o.buttonLabel),1),b("div",NKt,[b("div",IKt,[I(zl,{value:n.themeButtonPaddings.LeftRight,"onUpdate:changeValue":s[4]||(s[4]=a=>r("update:themeButtonPaddingsChanged",{...n.themeButtonPaddings,LeftRight:a}))},null,8,["value"])]),b("div",MKt,[b("label",$Kt,W(o.buttonLeftRightLabel),1)])]),b("div",OKt,[b("div",PKt,[I(zl,{value:n.themeButtonPaddings.TopBottom,"onUpdate:changeValue":s[5]||(s[5]=a=>r("update:themeButtonPaddingsChanged",{...n.themeButtonPaddings,TopBottom:a}))},null,8,["value"])]),b("div",VKt,[b("label",WKt,W(o.buttonTopBottomLabel),1)])])],64))}}),zKt=["value"],jKt={class:"bootstrap-styles input-number__button-wrapper input-number__button-increment d-none position-absolute align-items-end justify-content-center",style:{right:"10px",top:"0",width:"16px",height:"16px"}},KKt={class:"bootstrap-styles input-number__button-wrapper input-number__button-decrement d-none position-absolute align-items-start justify-content-center",style:{right:"10px",bottom:"0",width:"16px",height:"16px"}},UKt=re({__name:"InputNumber",props:{modelValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=()=>{i("update:modelValue",Number(n.modelValue)+1)},r=()=>{n.modelValue!==0&&i("update:modelValue",Number(n.modelValue)-1)},i=e;return(s,a)=>(E(),R(Se,null,[b("input",{type:"number",class:"bootstrap-styles input-number__input",style:{width:"calc(100% - 20px)"},value:n.modelValue,"data-test":"input-number",onInput:a[0]||(a[0]=l=>i("update:modelValue",Number(l.target.value)))},null,40,zKt),b("div",jKt,[b("input",{type:"button",class:"bootstrap-styles input-number__button position-absolute",style:{width:"100%",height:"100%",top:"0",left:"0"},"data-test":"input-number__button-increment",onClick:o}),I(Ape)]),b("div",KKt,[b("input",{type:"button",class:"bootstrap-styles input-number__button position-absolute",style:{width:"100%",height:"100%",top:"0",left:"0"},"data-test":"input-number__button-decrement",onClick:r}),I(Rpe)])],64))}}),fr=ve(UKt,[["__scopeId","data-v-41f882ad"]]),qKt={manualComponentRadiusCheckbox:"Customize separately",cardLabel:"Cards",buttonLabel:"Buttons",bannerLabel:"Banners"},JKt={manualComponentRadiusCheckbox:"Настроить отдельно",cardLabel:"Карточки",buttonLabel:"Кнопки",bannerLabel:"Баннеры"},uO=ht({en:qKt,ru:JKt}),GKt={},YKt={class:"d-flex justify-content-center align-items-center"};function ZKt(t,e){return E(),R("i",YKt,[...e[0]||(e[0]=[b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[b("path",{d:"M14 12.6667V14H12.6667V12.6667H14ZM11.3333 12.6667V14H10V12.6667H11.3333ZM8.66667 12.6667V14H7.33333V12.6667H8.66667ZM6 12.6667V14H4.66667V12.6667H6ZM3.33333 12.6667V14H2V12.6667H3.33333ZM14 10V11.3333H12.6667V10H14ZM3.33333 10V11.3333H2V10H3.33333ZM3.33333 7.33333V8.66667H2V7.33333H3.33333ZM10.6667 2C12.4583 2 13.9211 3.41577 13.9969 5.18881L14 5.33333V8.66667H12.6667V5.33333C12.6667 4.27262 11.8298 3.39787 10.7837 3.33675L10.6667 3.33333H7.33333V2H10.6667ZM3.33333 4.66667V6H2V4.66667H3.33333ZM3.33333 2V3.33333H2V2H3.33333ZM6 2V3.33333H4.66667V2H6Z",fill:"var(--gray-500)"})],-1)])])}const nE=ve(GKt,[["render",ZKt]]),XKt={},QKt={class:"d-flex justify-content-center align-items-center"};function eUt(t,e){return E(),R("i",QKt,[...e[0]||(e[0]=[b("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("path",{d:"M2 12.6667V14H3.33333V12.6667H2ZM4.66667 12.6667V14H6V12.6667H4.66667ZM7.33333 12.6667V14H8.66667V12.6667H7.33333ZM10 12.6667V14H11.3333V12.6667H10ZM12.6667 12.6667V14H14V12.6667H12.6667ZM2 10V11.3333H3.33333V10H2ZM12.6667 10V11.3333H14V10H12.6667ZM12.6667 7.33333V8.66667H14V7.33333H12.6667ZM5.33333 2C3.54173 2 2.07887 3.41577 2.00307 5.18881L2 5.33333V8.66667H3.33333V5.33333C3.33333 4.27262 4.1702 3.39787 5.21627 3.33675L5.33333 3.33333H8.66667V2H5.33333ZM12.6667 4.66667V6H14V4.66667H12.6667ZM12.6667 2V3.33333H14V2H12.6667ZM10 2V3.33333H11.3333V2H10Z",fill:"#999999"})],-1)])])}const tUt=ve(XKt,[["render",eUt]]),nUt={},oUt={class:"d-flex justify-content-center align-items-center"};function rUt(t,e){return E(),R("i",oUt,[...e[0]||(e[0]=[b("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("path",{d:"M2 3.33333V2H3.33333V3.33333H2ZM4.66667 3.33333V2H6V3.33333H4.66667ZM7.33333 3.33333V2H8.66667V3.33333H7.33333ZM10 3.33333V2H11.3333V3.33333H10ZM12.6667 3.33333V2H14V3.33333H12.6667ZM2 6V4.66667H3.33333V6H2ZM12.6667 6V4.66667H14V6H12.6667ZM12.6667 8.66667V7.33333H14V8.66667H12.6667ZM5.33333 14C3.54173 14 2.07887 12.5842 2.00307 10.8112L2 10.6667V7.33333H3.33333V10.6667C3.33333 11.7274 4.1702 12.6021 5.21627 12.6633L5.33333 12.6667H8.66667V14H5.33333ZM12.6667 11.3333V10H14V11.3333H12.6667ZM12.6667 14V12.6667H14V14H12.6667ZM10 14V12.6667H11.3333V14H10Z",fill:"#999999"})],-1)])])}const iUt=ve(nUt,[["render",rUt]]),sUt={},aUt={class:"d-flex justify-content-center align-items-center"};function lUt(t,e){return E(),R("i",aUt,[...e[0]||(e[0]=[b("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("path",{d:"M14 3.33333V2H12.6667V3.33333H14ZM11.3333 3.33333V2H10V3.33333H11.3333ZM8.66667 3.33333V2H7.33333V3.33333H8.66667ZM6 3.33333V2H4.66667V3.33333H6ZM3.33333 3.33333V2H2V3.33333H3.33333ZM14 6V4.66667H12.6667V6H14ZM3.33333 6V4.66667H2V6H3.33333ZM3.33333 8.66667V7.33333H2V8.66667H3.33333ZM10.6667 14C12.4583 14 13.9211 12.5842 13.9969 10.8112L14 10.6667V7.33333H12.6667V10.6667C12.6667 11.7274 11.8298 12.6021 10.7837 12.6633L10.6667 12.6667H7.33333V14H10.6667ZM3.33333 11.3333V10H2V11.3333H3.33333ZM3.33333 14V12.6667H2V14H3.33333ZM6 14V12.6667H4.66667V14H6Z",fill:"#999999"})],-1)])])}const cUt=ve(sUt,[["render",lUt]]),uUt={class:"bootstrap-styles container-fluid"},dUt={class:"bootstrap-styles row row-cols-2 g-2"},hUt={class:"bootstrap-styles col-6"},pUt={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},mUt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},fUt={class:"bootstrap-styles col-6"},gUt={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},yUt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},CUt={class:"bootstrap-styles col-6"},bUt={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},vUt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},wUt={class:"bootstrap-styles col-6"},SUt={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},xUt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},$Y=re({__name:"ManualBorderRadiusSettings",props:{borderRadius:{}},emits:["onRadiusCardChanged"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("div",uUt,[b("div",dUt,[b("div",hUt,[b("div",pUt,[b("i",mUt,[I(tUt)]),I(fr,{modelValue:n.borderRadius.TopLeft,"onUpdate:modelValue":i[0]||(i[0]=s=>o("onRadiusCardChanged",{...n.borderRadius,TopLeft:s}))},null,8,["modelValue"])])]),b("div",fUt,[b("div",gUt,[b("i",yUt,[I(nE)]),I(fr,{modelValue:n.borderRadius.TopRight,"onUpdate:modelValue":i[1]||(i[1]=s=>o("onRadiusCardChanged",{...n.borderRadius,TopRight:s}))},null,8,["modelValue"])])]),b("div",CUt,[b("div",bUt,[b("i",vUt,[I(iUt)]),I(fr,{modelValue:n.borderRadius.BottomLeft,"onUpdate:modelValue":i[2]||(i[2]=s=>o("onRadiusCardChanged",{...n.borderRadius,BottomLeft:s}))},null,8,["modelValue"])])]),b("div",wUt,[b("div",SUt,[b("i",xUt,[I(cUt)]),I(fr,{modelValue:n.borderRadius.BottomRight,"onUpdate:modelValue":i[3]||(i[3]=s=>o("onRadiusCardChanged",{...n.borderRadius,BottomRight:s}))},null,8,["modelValue"])])])])]))}}),TUt={class:"bootstrap-styles"},kUt={class:"bootstrap-styles d-flex align-items-center mb-13"},FUt={for:"manual-component-radius-checkbox",class:"label__checkbox-input"},EUt={key:0,class:"bootstrap-styles row gx-2"},LUt={class:"bootstrap-styles col-4"},_Ut={class:"bootstrap-styles fw-bold mb-5"},AUt={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},RUt={class:"bootstrap-styles col-4"},DUt={class:"bootstrap-styles fw-bold mb-5"},BUt={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},NUt={class:"bootstrap-styles col-4"},IUt={class:"bootstrap-styles fw-bold mb-5"},MUt={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},$Ut={key:1},OUt={class:"bootstrap-styles fw-bold mb-5"},PUt={class:"bootstrap-styles fw-bold mb-5"},VUt={class:"bootstrap-styles fw-bold mb-5"},WUt=re({__name:"ThemeBorderRadiusSettings",props:{deps:{},themeBorderRadiusButtonSettings:{},themeBorderRadiusCardSettings:{},themeBorderRadiusBannerSettings:{}},emits:["update:themeBorderRadiusCardChanged","update:themeBorderRadiusButtonChanged","update:themeBorderRadiusBannerChanged"],setup(t,{emit:e}){const n=t,o={manualComponentRadiusCheckbox:uO({localeKey:n.deps.localeKey}).manualComponentRadiusCheckbox,cardLabel:uO({localeKey:n.deps.localeKey}).cardLabel,buttonLabel:uO({localeKey:n.deps.localeKey}).buttonLabel,bannerLabel:uO({localeKey:n.deps.localeKey}).bannerLabel},r=Le({manualComponentRadius:![n.themeBorderRadiusButtonSettings,n.themeBorderRadiusCardSettings,n.themeBorderRadiusBannerSettings].every(s=>{const[a,...l]=Object.values(s);return l.every(c=>c===a)})}),i=e;return(s,a)=>(E(),R(Se,null,[b("div",TUt,[b("div",kUt,[I(th,{id:"manual-component-radius-checkbox",checked:r.manualComponentRadius,onChange:a[0]||(a[0]=l=>r.manualComponentRadius=!r.manualComponentRadius)},null,8,["checked"]),b("label",FUt,W(o.manualComponentRadiusCheckbox),1)])]),r.manualComponentRadius?(E(),R("div",$Ut,[b("label",OUt,W(o.buttonLabel),1),I($Y,{borderRadius:n.themeBorderRadiusButtonSettings,class:"bootstrap-styles mb-13",onOnRadiusCardChanged:a[4]||(a[4]=l=>i("update:themeBorderRadiusButtonChanged",l))},null,8,["borderRadius"]),b("label",PUt,W(o.cardLabel),1),I($Y,{borderRadius:n.themeBorderRadiusCardSettings,class:"bootstrap-styles mb-13",onOnRadiusCardChanged:a[5]||(a[5]=l=>i("update:themeBorderRadiusCardChanged",l))},null,8,["borderRadius"]),b("label",VUt,W(o.bannerLabel),1),I($Y,{borderRadius:n.themeBorderRadiusBannerSettings,class:"bootstrap-styles mb-13",onOnRadiusCardChanged:a[6]||(a[6]=l=>i("update:themeBorderRadiusBannerChanged",l))},null,8,["borderRadius"])])):(E(),R("div",EUt,[b("div",LUt,[b("label",_Ut,W(o.buttonLabel),1),b("div",AUt,[I(fr,{modelValue:n.themeBorderRadiusButtonSettings.TopLeft,"onUpdate:modelValue":a[1]||(a[1]=l=>i("update:themeBorderRadiusButtonChanged",{TopLeft:l,TopRight:l,BottomLeft:l,BottomRight:l}))},null,8,["modelValue"])])]),b("div",RUt,[b("label",DUt,W(o.cardLabel),1),b("div",BUt,[I(fr,{modelValue:n.themeBorderRadiusCardSettings.TopLeft,"onUpdate:modelValue":a[2]||(a[2]=l=>i("update:themeBorderRadiusCardChanged",{TopLeft:l,TopRight:l,BottomLeft:l,BottomRight:l}))},null,8,["modelValue"])])]),b("div",NUt,[b("label",IUt,W(o.bannerLabel),1),b("div",MUt,[I(fr,{modelValue:n.themeBorderRadiusBannerSettings.TopLeft,"onUpdate:modelValue":a[3]||(a[3]=l=>i("update:themeBorderRadiusBannerChanged",{TopLeft:l,TopRight:l,BottomLeft:l,BottomRight:l}))},null,8,["modelValue"])])])]))],64))}}),HUt={class:"bootstrap-styles border bg-color-input rounded-2 d-flex justify-content-between",style:{padding:"4px"}},zUt=["value"],jUt=["value"],Du=re({__name:"InputColor",props:{color:{}},emits:["update:changeColor"],setup(t,{emit:e}){const n=t,o=UWe(s=>{i("update:changeColor",s.target.value)},100,{leading:!1,trailing:!0}),r=s=>{const a=/^#([A-Fa-f0-9]{6})$/,l=s.target;return l.value.startsWith("#")||(l.value=`#${l.value}`),a.test(l.value)},i=e;return(s,a)=>(E(),R("div",HUt,[b("input",{type:"color",style:{border:"1px solid rgba(0, 0, 0, 0.1)"},value:n.color,onInput:a[0]||(a[0]=(...l)=>N(o)&&N(o)(...l))},null,40,zUt),b("input",{type:"text",class:"bootstrap-styles d-block w-100 text-uppercase ps-1",value:n.color,maxlength:7,min:7,placeholder:"#000000",onInput:a[1]||(a[1]=l=>r(l)&&N(o)(l))},null,40,jUt)]))}}),KUt={primaryColorLabel:"Primary",primaryTextColorLabel:"Primary text",secondaryColorLabel:"Secondary",secondaryTextColorLabel:"Secondary text",cardBackgroundColor:"Product cards"},UUt={primaryColorLabel:"Основной",primaryTextColorLabel:"Текст на нём",secondaryColorLabel:"Вторичный",secondaryTextColorLabel:"Текст на нём",cardBackgroundColor:"Карточки товаров"},Q_=ht({en:KUt,ru:UUt}),qUt={class:"bootstrap-styles row gx-2 mb-13"},JUt={class:"bootstrap-styles col-6"},GUt={class:"bootstrap-styles fw-bold mb-5"},YUt={class:"bootstrap-styles col-6"},ZUt={class:"bootstrap-styles fw-bold mb-5"},XUt={class:"bootstrap-styles row gx-2 mb-13"},QUt={class:"bootstrap-styles col-6"},eqt={class:"bootstrap-styles fw-bold mb-5"},tqt={class:"bootstrap-styles col-6"},nqt={class:"bootstrap-styles fw-bold mb-5"},oqt={class:"bootstrap-styles row gx-2"},rqt={class:"bootstrap-styles col-6"},iqt={class:"bootstrap-styles fw-bold mb-5 text-nowrap"},sqt=re({__name:"ThemeColorSettings",props:{deps:{},themeColors:{}},emits:["update:themeColorsChanged"],setup(t,{emit:e}){const n=t,o={primaryColorLabel:Q_({localeKey:n.deps.localeKey}).primaryColorLabel,primaryTextColorLabel:Q_({localeKey:n.deps.localeKey}).primaryTextColorLabel,secondaryColorLabel:Q_({localeKey:n.deps.localeKey}).secondaryColorLabel,secondaryTextColorLabel:Q_({localeKey:n.deps.localeKey}).secondaryTextColorLabel,cardBackgroundColor:Q_({localeKey:n.deps.localeKey}).cardBackgroundColor},r=e;return(i,s)=>(E(),R(Se,null,[b("div",qUt,[b("div",JUt,[b("label",GUt,W(o.primaryColorLabel),1),I(Du,{color:n.themeColors.PrimaryColor,"onUpdate:changeColor":s[0]||(s[0]=a=>r("update:themeColorsChanged",{...n.themeColors,PrimaryColor:a}))},null,8,["color"])]),b("div",YUt,[b("label",ZUt,W(o.primaryTextColorLabel),1),I(Du,{color:n.themeColors.PrimaryTextColor,"onUpdate:changeColor":s[1]||(s[1]=a=>r("update:themeColorsChanged",{...n.themeColors,PrimaryTextColor:a}))},null,8,["color"])])]),b("div",XUt,[b("div",QUt,[b("label",eqt,W(o.secondaryColorLabel),1),I(Du,{color:n.themeColors.SecondaryColor,"onUpdate:changeColor":s[2]||(s[2]=a=>r("update:themeColorsChanged",{...n.themeColors,SecondaryColor:a}))},null,8,["color"])]),b("div",tqt,[b("label",nqt,W(o.secondaryTextColorLabel),1),I(Du,{color:n.themeColors.SecondaryTextColor,"onUpdate:changeColor":s[3]||(s[3]=a=>r("update:themeColorsChanged",{...n.themeColors,SecondaryTextColor:a}))},null,8,["color"])])]),b("div",oqt,[b("div",rqt,[b("label",iqt,W(o.cardBackgroundColor),1),I(Du,{color:n.themeColors.CardBackgroundColor,"onUpdate:changeColor":s[4]||(s[4]=a=>r("update:themeColorsChanged",{...n.themeColors,CardBackgroundColor:a}))},null,8,["color"])])])],64))}}),aqt=[14,16,18,20,24,28,32,36,40],lqt={id:"dropdownMenuButtonFontSizeLinks",class:"bootstrap-styles dropdown border rounded-2 bg-color-input","data-bs-toggle":"dropdown","aria-expanded":"false"},cqt={class:"bootstrap-styles py-1 px-3 d-flex"},uqt=["value"],dqt={type:"button"},hqt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},pqt={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuButtonFontSizeLinks"},mqt=["onClick"],fqt=re({__name:"FontSizeInput",props:{fontSize:{}},emits:["update:fontSizeChanged"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("div",lqt,[b("div",cqt,[b("input",{type:"number",class:"bootstrap-styles w-100",value:n.fontSize,onInput:i[0]||(i[0]=s=>o("update:fontSizeChanged",Number(s.target.value)))},null,40,uqt),b("button",dqt,[b("i",hqt,[I(Si)])]),b("ul",pqt,[(E(!0),R(Se,null,At(N(aqt),s=>(E(),R("li",{key:s,class:G(["bootstrap-styles dropdown-item p-0",{active:n.fontSize===s}])},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",onClick:a=>o("update:fontSizeChanged",s)},W(s),9,mqt)],2))),128))])])]))}}),M9e=ve(fqt,[["__scopeId","data-v-f4681f23"]]),gqt={class:"bootstrap-styles row gx-2 mb-2"},yqt={class:"bootstrap-styles col-6"},Cqt={class:"bootstrap-styles col-6"},bqt={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},vqt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},wqt={class:"bootstrap-styles row gx-2 mb-2"},Sqt={class:"bootstrap-styles col-3"},xqt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Tqt={class:"bootstrap-styles col-3"},kqt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Fqt={class:"bootstrap-styles col-3"},Eqt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Lqt={class:"bootstrap-styles col-3"},_qt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Aqt={class:"bootstrap-styles row gx-2"},Rqt={class:"bootstrap-styles col-6"},sy=re({__name:"ThemeFontSetting",props:{fontSetting:{},fontColor:{}},emits:["update:fontSettingsChanged","update:fontColorChanged"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R(Se,null,[b("div",gqt,[b("div",yqt,[I(M9e,{fontSize:n.fontSetting.FontSize,"onUpdate:fontSizeChanged":i[0]||(i[0]=s=>o("update:fontSettingsChanged",{...n.fontSetting,FontSize:s}))},null,8,["fontSize"])]),b("div",Cqt,[b("div",bqt,[b("i",vqt,[I(Dpe)]),I(fr,{modelValue:n.fontSetting.LineHeight,"onUpdate:modelValue":i[1]||(i[1]=s=>o("update:fontSettingsChanged",{...n.fontSetting,LineHeight:s}))},null,8,["modelValue"])])])]),b("div",wqt,[b("div",Sqt,[b("button",{class:G(["bootstrap-styles text-decoration__btn fw-bold border bg-color-input rounded-2 py-1 px-3 w-100",{active:n.fontSetting.IsBold}]),onClick:i[2]||(i[2]=s=>o("update:fontSettingsChanged",{...n.fontSetting,IsBold:!n.fontSetting.IsBold}))},[b("i",xqt,[I(Bpe)])],2)]),b("div",Tqt,[b("button",{class:G(["bootstrap-styles text-decoration__btn fw-bold border bg-color-input rounded-2 py-1 px-3 w-100",{active:n.fontSetting.IsItalic}]),onClick:i[3]||(i[3]=s=>o("update:fontSettingsChanged",{...n.fontSetting,IsItalic:!n.fontSetting.IsItalic}))},[b("i",kqt,[I(Mpe)])],2)]),b("div",Fqt,[b("button",{class:G(["bootstrap-styles text-decoration__btn fw-bold border bg-color-input rounded-2 py-1 px-3 w-100",{active:n.fontSetting.Decoration==="LineThrough"}]),onClick:i[4]||(i[4]=s=>o("update:fontSettingsChanged",{...n.fontSetting,Decoration:n.fontSetting.Decoration==="LineThrough"?"None":"LineThrough"}))},[b("i",Eqt,[I(Npe)])],2)]),b("div",Lqt,[b("button",{class:G(["bootstrap-styles text-decoration__btn fw-bold border bg-color-input rounded-2 py-1 px-3 w-100",{active:n.fontSetting.Decoration==="Underline"}]),onClick:i[5]||(i[5]=s=>o("update:fontSettingsChanged",{...n.fontSetting,Decoration:n.fontSetting.Decoration==="Underline"?"None":"Underline"}))},[b("i",_qt,[I(Ipe)])],2)])]),b("div",Aqt,[b("div",Rqt,[I(Du,{color:t.fontColor,"onUpdate:changeColor":i[6]||(i[6]=s=>o("update:fontColorChanged",s))},null,8,["color"])])])],64))}}),Dqt={themeComponentPaddings:{title:"Paddings",smallLabel:"Small",mediumLabel:"Medium",largeLabel:"Large",hugeLabel:"Huge",buttonLabel:"Buttons",buttonLeftRightLabel:"Left, right",buttonTopBottomLabel:"Top, bottom"},themeComponentRadius:{title:"Border radius",manualComponentRadiusCheckbox:"Customize separately",cardLabel:"Cards",buttonLabel:"Buttons",bannerLabel:"Banners"},themeComponentColor:{title:"Color",primaryColorLabel:"Primary",primaryTextColorLabel:"Primary text",secondaryColorLabel:"Secondary",secondaryTextColorLabel:"Secondary text",cardBackgroundColor:"Product cards"},themeComponentFontSettings:{title:"Font",titleLabel:"Title",headingLabel:"Heading",subHeadingLabel:"Subheading",largeTextLabel:"Large text",normalTextLabel:"Text",descriptionTextLabel:"Descriptions",buttonTextLabel:"Buttons",linkTextLabel:"Links"}},Bqt={themeComponentPaddings:{title:"Отступы",smallLabel:"Маленькие",mediumLabel:"Средние",largeLabel:"Большие",hugeLabel:"Гигантские",buttonLabel:"У кнопок",buttonLeftRightLabel:"Слева, справа",buttonTopBottomLabel:"Сверху, снизу"},themeComponentRadius:{title:"Скругления",manualComponentRadiusCheckbox:"Настроить отдельно",cardLabel:"Карточки",buttonLabel:"Кнопки",bannerLabel:"Баннеры"},themeComponentColor:{title:"Цвет",primaryColorLabel:"Основной",primaryTextColorLabel:"Текст на нём",secondaryColorLabel:"Вторичный",secondaryTextColorLabel:"Текст на нём",cardBackgroundColor:"Карточки товаров"},themeComponentFontSettings:{title:"Шрифт",titleLabel:"Большой заголовок",headingLabel:"Заголовок",subHeadingLabel:"Подзаголовок",largeTextLabel:"Большой текст",normalTextLabel:"Текст",descriptionTextLabel:"Описания",buttonTextLabel:"Кнопки",linkTextLabel:"Ссылки"}},eu=ht({en:Dqt,ru:Bqt}),Nqt={class:"bootstrap-styles"},Iqt={class:"bootstrap-styles flex-column gap-13 d-flex"},Mqt={class:"bootstrap-styles d-flex flex-column gap-2"},$qt={class:"bootstrap-styles fs-6 fw-bold me-7 mb-7"},Oqt={class:"bootstrap-styles container-fluid"},Pqt={class:"bootstrap-styles fs-6 fw-bold mb-7 me-7"},Vqt={class:"bootstrap-styles container-fluid"},Wqt={class:"bootstrap-styles fs-6 fw-bold me-7 mb-13"},Hqt={class:"bootstrap-styles fs-6 fw-bold mb-0"},zqt={class:"bootstrap-styles container-fluid"},jqt={class:"bootstrap-styles fw-bold mb-5"},Kqt={class:"bootstrap-styles container-fluid"},Uqt={class:"bootstrap-styles fw-bold mb-5"},qqt={class:"bootstrap-styles container-fluid"},Jqt={class:"bootstrap-styles fw-bold mb-5"},Gqt={class:"bootstrap-styles container-fluid"},Yqt={class:"bootstrap-styles fw-bold mb-5"},Zqt={class:"bootstrap-styles container-fluid"},Xqt={class:"bootstrap-styles fw-bold mb-5"},Qqt={class:"bootstrap-styles container-fluid"},eJt={class:"bootstrap-styles fw-bold mb-5"},tJt={class:"bootstrap-styles container-fluid"},nJt={class:"bootstrap-styles fw-bold mb-5"},oJt={class:"bootstrap-styles container-fluid"},rJt={class:"bootstrap-styles fw-bold mb-5"},iJt=re({__name:"ThemeComponentSettings",props:{deps:{},themeFontSettingsGroup:{},themeColors:{},themeBorderRadiusButtonSettings:{},themeBorderRadiusCardSettings:{},themeBorderRadiusBannerSettings:{},themeComponentPaddings:{},themeButtonPaddings:{}},emits:["update:themeColorsChanged","update:themeFontSettingsChanged","update:themeBorderRadiusCardChanged","update:themeBorderRadiusButtonChanged","update:themeBorderRadiusBannerChanged","update:themeComponentPaddingsChanged","update:themeButtonPaddingsChanged"],setup(t,{emit:e}){const n=t,o={themeComponentPaddings:{title:eu({localeKey:n.deps.localeKey}).themeComponentPaddings.title},themeComponentRadius:{title:eu({localeKey:n.deps.localeKey}).themeComponentRadius.title},themeComponentColor:{title:eu({localeKey:n.deps.localeKey}).themeComponentColor.title},themeComponentFontSettings:{title:eu({localeKey:n.deps.localeKey}).themeComponentFontSettings.title,titleLabel:eu({localeKey:n.deps.localeKey}).themeComponentFontSettings.titleLabel,headingLabel:eu({localeKey:n.deps.localeKey}).themeComponentFontSettings.headingLabel,subHeadingLabel:eu({localeKey:n.deps.localeKey}).themeComponentFontSettings.subHeadingLabel,largeTextLabel:eu({localeKey:n.deps.localeKey}).themeComponentFontSettings.largeTextLabel,normalTextLabel:eu({localeKey:n.deps.localeKey}).themeComponentFontSettings.normalTextLabel,descriptionTextLabel:eu({localeKey:n.deps.localeKey}).themeComponentFontSettings.descriptionTextLabel,buttonTextLabel:eu({localeKey:n.deps.localeKey}).themeComponentFontSettings.buttonTextLabel,linkTextLabel:eu({localeKey:n.deps.localeKey}).themeComponentFontSettings.linkTextLabel}},r=e;return(i,s)=>(E(),R("div",Nqt,[b("div",Iqt,[b("div",Mqt,[b("h2",$qt,W(o.themeComponentPaddings.title),1),I(HKt,{deps:{localeKey:n.deps.localeKey},themeComponentPaddings:n.themeComponentPaddings,themeButtonPaddings:n.themeButtonPaddings,"onUpdate:themeComponentPaddingsChanged":s[0]||(s[0]=a=>r("update:themeComponentPaddingsChanged",a)),"onUpdate:themeButtonPaddingsChanged":s[1]||(s[1]=a=>r("update:themeButtonPaddingsChanged",a))},null,8,["deps","themeComponentPaddings","themeButtonPaddings"])]),b("div",Oqt,[b("h2",Pqt,W(o.themeComponentRadius.title),1),I(WUt,{deps:{localeKey:n.deps.localeKey},themeBorderRadiusButtonSettings:n.themeBorderRadiusButtonSettings,themeBorderRadiusCardSettings:n.themeBorderRadiusCardSettings,themeBorderRadiusBannerSettings:n.themeBorderRadiusBannerSettings,"onUpdate:themeBorderRadiusCardChanged":s[2]||(s[2]=a=>r("update:themeBorderRadiusCardChanged",a)),"onUpdate:themeBorderRadiusButtonChanged":s[3]||(s[3]=a=>r("update:themeBorderRadiusButtonChanged",a)),"onUpdate:themeBorderRadiusBannerChanged":s[4]||(s[4]=a=>r("update:themeBorderRadiusBannerChanged",a))},null,8,["deps","themeBorderRadiusButtonSettings","themeBorderRadiusCardSettings","themeBorderRadiusBannerSettings"])]),b("div",Vqt,[b("h2",Wqt,W(o.themeComponentColor.title),1),I(sqt,{deps:{localeKey:n.deps.localeKey},themeColors:n.themeColors,"onUpdate:themeColorsChanged":s[5]||(s[5]=a=>r("update:themeColorsChanged",a))},null,8,["deps","themeColors"])]),b("h2",Hqt,W(o.themeComponentFontSettings.title),1),b("div",zqt,[b("label",jqt,W(o.themeComponentFontSettings.titleLabel),1),I(sy,{fontSetting:n.themeFontSettingsGroup.Title,fontColor:n.themeColors.TitleColor,"onUpdate:fontSettingsChanged":s[6]||(s[6]=a=>r("update:themeFontSettingsChanged",{...n.themeFontSettingsGroup,Title:a})),"onUpdate:fontColorChanged":s[7]||(s[7]=a=>r("update:themeColorsChanged",{...n.themeColors,TitleColor:a}))},null,8,["fontSetting","fontColor"])]),b("div",Kqt,[b("label",Uqt,W(o.themeComponentFontSettings.headingLabel),1),I(sy,{fontSetting:n.themeFontSettingsGroup.Heading,fontColor:n.themeColors.HeadingColor,"onUpdate:fontSettingsChanged":s[8]||(s[8]=a=>r("update:themeFontSettingsChanged",{...n.themeFontSettingsGroup,Heading:a})),"onUpdate:fontColorChanged":s[9]||(s[9]=a=>r("update:themeColorsChanged",{...n.themeColors,HeadingColor:a}))},null,8,["fontSetting","fontColor"])]),b("div",qqt,[b("label",Jqt,W(o.themeComponentFontSettings.subHeadingLabel),1),I(sy,{fontSetting:n.themeFontSettingsGroup.SubHeading,fontColor:n.themeColors.SubHeadingColor,"onUpdate:fontSettingsChanged":s[10]||(s[10]=a=>r("update:themeFontSettingsChanged",{...n.themeFontSettingsGroup,SubHeading:a})),"onUpdate:fontColorChanged":s[11]||(s[11]=a=>r("update:themeColorsChanged",{...n.themeColors,SubHeadingColor:a}))},null,8,["fontSetting","fontColor"])]),b("div",Gqt,[b("label",Yqt,W(o.themeComponentFontSettings.largeTextLabel),1),I(sy,{fontSetting:n.themeFontSettingsGroup.LargeText,fontColor:n.themeColors.LargeTextColor,"onUpdate:fontSettingsChanged":s[12]||(s[12]=a=>r("update:themeFontSettingsChanged",{...n.themeFontSettingsGroup,LargeText:a})),"onUpdate:fontColorChanged":s[13]||(s[13]=a=>r("update:themeColorsChanged",{...n.themeColors,LargeTextColor:a}))},null,8,["fontSetting","fontColor"])]),b("div",Zqt,[b("label",Xqt,W(o.themeComponentFontSettings.normalTextLabel),1),I(sy,{fontSetting:n.themeFontSettingsGroup.NormalText,fontColor:n.themeColors.NormalTextColor,"onUpdate:fontSettingsChanged":s[14]||(s[14]=a=>r("update:themeFontSettingsChanged",{...n.themeFontSettingsGroup,NormalText:a})),"onUpdate:fontColorChanged":s[15]||(s[15]=a=>r("update:themeColorsChanged",{...n.themeColors,NormalTextColor:a}))},null,8,["fontSetting","fontColor"])]),b("div",Qqt,[b("label",eJt,W(o.themeComponentFontSettings.descriptionTextLabel),1),I(sy,{fontSetting:n.themeFontSettingsGroup.DescriptionText,fontColor:n.themeColors.DescriptionTextColor,"onUpdate:fontSettingsChanged":s[16]||(s[16]=a=>r("update:themeFontSettingsChanged",{...n.themeFontSettingsGroup,DescriptionText:a})),"onUpdate:fontColorChanged":s[17]||(s[17]=a=>r("update:themeColorsChanged",{...n.themeColors,DescriptionTextColor:a}))},null,8,["fontSetting","fontColor"])]),b("div",tJt,[b("label",nJt,W(o.themeComponentFontSettings.buttonTextLabel),1),I(sy,{fontSetting:n.themeFontSettingsGroup.Button,fontColor:n.themeColors.ButtonTextColor,"onUpdate:fontSettingsChanged":s[18]||(s[18]=a=>r("update:themeFontSettingsChanged",{...n.themeFontSettingsGroup,Button:a})),"onUpdate:fontColorChanged":s[19]||(s[19]=a=>r("update:themeColorsChanged",{...n.themeColors,ButtonTextColor:a}))},null,8,["fontSetting","fontColor"])]),b("div",oJt,[b("label",rJt,W(o.themeComponentFontSettings.linkTextLabel),1),I(sy,{fontSetting:n.themeFontSettingsGroup.Link,fontColor:n.themeColors.LinkColor,"onUpdate:fontSettingsChanged":s[20]||(s[20]=a=>r("update:themeFontSettingsChanged",{...n.themeFontSettingsGroup,Link:a})),"onUpdate:fontColorChanged":s[21]||(s[21]=a=>r("update:themeColorsChanged",{...n.themeColors,LinkColor:a}))},null,8,["fontSetting","fontColor"])])])]))}}),sJt={},aJt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function lJt(t,e){return E(),R("svg",aJt,[...e[0]||(e[0]=[b("path",{d:"M13.8047 7.49982L11.4479 5L10.5044 5.99993L11.7241 7.29322H4.27594L5.49476 5.99993L4.55214 5L2.1953 7.49982C1.9349 7.776 1.9349 8.22421 2.1953 8.50039L4.55214 11L5.49556 10.0001L4.27594 8.70678H11.7241L10.5052 10.0001L11.4479 11L13.8047 8.50039C14.0651 8.22421 14.0651 7.77579 13.8047 7.49982Z",fill:"var(--gray-500)"},null,-1)])])}const cJt=ve(sJt,[["render",lJt]]),uJt={title:"Content paddings",allButton:"All",manualButton:"Separately",custom:{topLabel:"Top",bottomLabel:"Bottom",leftLabel:"Left",rightLabel:"Right"}},dJt={title:"Отступы до контента",allButton:"Все",manualButton:"Отдельно",custom:{topLabel:"Сверху",bottomLabel:"Снизу",leftLabel:"Слева",rightLabel:"Справа"}},l1=ht({en:uJt,ru:dJt}),hJt={class:"bootstrap-styles fw-bold mb-5"},pJt={class:"bootstrap-styles mb-5"},mJt={class:"bootstrap-styles row gx-0"},fJt={class:"bootstrap-styles col-6"},gJt={key:0,class:"bootstrap-styles row gx-0 mb-1 align-items-center"},yJt={class:"bootstrap-styles col-6"},CJt={class:"bootstrap-styles col-6"},bJt={class:"bootstrap-styles ps-5 text-gray-600"},vJt={key:1,class:"bootstrap-styles row gx-0 mb-1 align-items-center"},wJt={class:"bootstrap-styles col-6"},SJt={class:"bootstrap-styles col-6"},xJt={class:"bootstrap-styles ps-5 text-gray-600"},TJt={key:2,class:"bootstrap-styles row gx-0 mb-1 align-items-center"},kJt={class:"bootstrap-styles col-6"},FJt={class:"bootstrap-styles col-6"},EJt={class:"bootstrap-styles ps-5 text-gray-600"},LJt={key:3,class:"bootstrap-styles row gx-0 align-items-center"},_Jt={class:"bootstrap-styles col-6"},AJt={class:"bootstrap-styles col-6"},RJt={class:"bootstrap-styles ps-5 text-gray-600"},DJt="general",BJt=re({__name:"ThemeMarginSettings",props:{deps:{},themeBodyPaddings:{}},emits:["update:themeBodyPaddingsChanged"],setup(t,{emit:e}){const n=Le({themeMarginSettingsSourceKey:"general"}),o=t,r={title:l1({localeKey:o.deps.localeKey}).title,allButton:l1({localeKey:o.deps.localeKey}).allButton,manualButton:l1({localeKey:o.deps.localeKey}).manualButton,custom:{topLabel:l1({localeKey:o.deps.localeKey}).custom.topLabel,bottomLabel:l1({localeKey:o.deps.localeKey}).custom.bottomLabel,leftLabel:l1({localeKey:o.deps.localeKey}).custom.leftLabel,rightLabel:l1({localeKey:o.deps.localeKey}).custom.rightLabel}},i={general:r.allButton,manual:r.manualButton},s=e;return(a,l)=>(E(),R(Se,null,[b("label",hJt,W(r.title),1),b("div",pJt,[I(kU,{initialTab:DJt,tabList:i,onOnTabClicked:l[0]||(l[0]=c=>n.themeMarginSettingsSourceKey=c)})]),b("div",mJt,[b("div",fJt,[n.themeMarginSettingsSourceKey==="general"?(E(),Q(zl,{key:0,value:o.themeBodyPaddings.Top,"onUpdate:changeValue":l[1]||(l[1]=c=>s("update:themeBodyPaddingsChanged",{Top:c,Right:c,Bottom:c,Left:c}))},null,8,["value"])):oe("",!0)])]),n.themeMarginSettingsSourceKey==="manual"?(E(),R("div",gJt,[b("div",yJt,[I(zl,{value:o.themeBodyPaddings.Right,"onUpdate:changeValue":l[2]||(l[2]=c=>s("update:themeBodyPaddingsChanged",{...o.themeBodyPaddings,Right:c}))},null,8,["value"])]),b("div",CJt,[b("label",bJt,W(r.custom.rightLabel),1)])])):oe("",!0),n.themeMarginSettingsSourceKey==="manual"?(E(),R("div",vJt,[b("div",wJt,[I(zl,{value:o.themeBodyPaddings.Top,"onUpdate:changeValue":l[3]||(l[3]=c=>s("update:themeBodyPaddingsChanged",{...o.themeBodyPaddings,Top:c}))},null,8,["value"])]),b("div",SJt,[b("label",xJt,W(r.custom.topLabel),1)])])):oe("",!0),n.themeMarginSettingsSourceKey==="manual"?(E(),R("div",TJt,[b("div",kJt,[I(zl,{value:o.themeBodyPaddings.Bottom,"onUpdate:changeValue":l[4]||(l[4]=c=>s("update:themeBodyPaddingsChanged",{...o.themeBodyPaddings,Bottom:c}))},null,8,["value"])]),b("div",FJt,[b("label",EJt,W(r.custom.bottomLabel),1)])])):oe("",!0),n.themeMarginSettingsSourceKey==="manual"?(E(),R("div",LJt,[b("div",_Jt,[I(zl,{value:o.themeBodyPaddings.Left,"onUpdate:changeValue":l[5]||(l[5]=c=>s("update:themeBodyPaddingsChanged",{...o.themeBodyPaddings,Left:c}))},null,8,["value"])]),b("div",AJt,[b("label",RJt,W(r.custom.leftLabel),1)])])):oe("",!0)],64))}}),NJt={themeTemplateWidthLabel:"Width",templateResponsiveWidthLabel:"Responsive width",themeTemplateRadiusLabel:"Border radius",templateColorTitle:"Color",templateBodyColor:"Email body",templateBackgroundColor:"Background",themeTemplateFontFamilyTitle:"Font",themePaddings:{title:"Content paddings",allButton:"All",manualButton:"Separately",custom:{topLabel:"Top",bottomLabel:"Bottom",leftLabel:"Left",rightLabel:"Right"}}},IJt={themeTemplateWidthLabel:"Ширина",templateResponsiveWidthLabel:"Адаптивная ширина",themeTemplateRadiusLabel:"Скругление",templateColorTitle:"Цвет",templateBodyColor:"Тело письма",templateBackgroundColor:"Фон",themeTemplateFontFamilyTitle:"Шрифт",themePaddings:{title:"Отступы до контента",allButton:"Все",manualButton:"Отдельно",custom:{topLabel:"Сверху",bottomLabel:"Снизу",leftLabel:"Слева",rightLabel:"Справа"}}},c1=ht({en:NJt,ru:IJt}),MJt={disabledButtonTooltip:"Turn on responsive width to ensure proper display on all mobile devices and tablets"},$Jt={disabledButtonTooltip:"Включите адаптивную ширину, чтобы письмо подстраивалось под размер телефонов и планшетов."},$9e=ht({en:MJt,ru:$Jt}),OJt={class:"bootstrap-styles"},PJt={class:"bootstrap-styles flex-column gap-13 d-flex"},VJt={class:"bootstrap-styles container-fluid"},WJt={class:"bootstrap-styles row gx-2 mb-5"},HJt={class:"bootstrap-styles col-6"},zJt={class:"bootstrap-styles fw-bold mb-5"},jJt={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},KJt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},UJt={class:"bootstrap-styles col-6"},qJt={class:"bootstrap-styles fw-bold mb-5"},JJt={class:"bootstrap-styles input-number__wrapper bg-color-input border rounded-2 py-1 px-3 d-flex position-relative"},GJt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},YJt={class:"bootstrap-styles row g-0"},ZJt={class:"bootstrap-styles col-12 d-flex align-items-center"},XJt={for:"is-responsive-checkbox",class:"label__checkbox-input"},QJt={class:"bootstrap-styles icon-hover is-responsive-checkbox-hint d-flex align-items-center justify-content-center ps-1"},eGt={class:"bootstrap-styles container-fluid"},tGt={class:"bootstrap-styles d-flex flex-column"},nGt={class:"bootstrap-styles container-fluid"},oGt={class:"bootstrap-styles fs-6 fw-bold me-7 mb-13"},rGt={class:"bootstrap-styles row gx-2"},iGt={class:"bootstrap-styles col-6"},sGt={class:"bootstrap-styles fw-bold mb-5"},aGt={class:"bootstrap-styles col-6"},lGt={class:"bootstrap-styles fw-bold mb-5"},cGt={class:"bootstrap-styles flex-column gap-13 d-flex"},uGt={class:"bootstrap-styles fs-6 fw-bold mb-0"},dGt={class:"bootstrap-styles container-fluid"},hGt={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},pGt={id:"dropdownMenuButtonFontFamily",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},mGt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},fGt={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuButtonFontFamily"},gGt=["onClick"],yGt=re({__name:"ThemeTemplateSettings",props:{deps:{},isResponsiveWidth:{type:Boolean},themeBodyWidth:{},themeBorderRadius:{},themeComponentPaddings:{},themeBodyPaddings:{},themeFontFamily:{},themeColors:{}},emits:["update:setThemeBodyWidth","update:setThemeFont","update:themeBodyPaddingsChanged","update:themeBorderRadiusChanged","update:themeColorsChanged","onResponsiveWidthChanged"],setup(t,{emit:e}){const n=t,o={themeTemplateWidthLabel:c1({localeKey:n.deps.localeKey}).themeTemplateWidthLabel,templateResponsiveWidthLabel:c1({localeKey:n.deps.localeKey}).templateResponsiveWidthLabel,themeTemplateRadiusLabel:c1({localeKey:n.deps.localeKey}).themeTemplateRadiusLabel,templateColorTitle:c1({localeKey:n.deps.localeKey}).templateColorTitle,templateBodyColor:c1({localeKey:n.deps.localeKey}).templateBodyColor,templateBackgroundColor:c1({localeKey:n.deps.localeKey}).templateBackgroundColor,themeTemplateFontFamilyTitle:c1({localeKey:n.deps.localeKey}).themeTemplateFontFamilyTitle},r=e;return(i,s)=>(E(),R("div",OJt,[b("div",PJt,[b("div",VJt,[b("div",WJt,[b("div",HJt,[b("label",zJt,W(o.themeTemplateWidthLabel),1),b("div",jJt,[b("i",KJt,[I(cJt)]),I(fr,{modelValue:n.themeBodyWidth,"onUpdate:modelValue":s[0]||(s[0]=a=>r("update:setThemeBodyWidth",a))},null,8,["modelValue"])])]),b("div",UJt,[b("label",qJt,W(o.themeTemplateRadiusLabel),1),b("div",JJt,[b("i",GJt,[I(nE)]),I(fr,{modelValue:n.themeBorderRadius.TopLeft,"onUpdate:modelValue":s[1]||(s[1]=a=>r("update:themeBorderRadiusChanged",a))},null,8,["modelValue"])])])]),b("div",YJt,[b("div",ZJt,[I(th,{id:"is-responsive-checkbox",checked:n.isResponsiveWidth,onChange:s[2]||(s[2]=()=>r("onResponsiveWidthChanged",!n.isResponsiveWidth))},null,8,["checked"]),b("label",XJt,W(o.templateResponsiveWidthLabel),1),Ke((E(),R("i",QJt,[I(A9e)])),[[N(Xn),{title:N($9e)({localeKey:n.deps.localeKey}).disabledButtonTooltip,placement:"top"}]])])])]),b("div",eGt,[b("div",tGt,[I(BJt,{deps:{localeKey:n.deps.localeKey},themeBodyPaddings:n.themeBodyPaddings,"onUpdate:themeBodyPaddingsChanged":s[3]||(s[3]=a=>r("update:themeBodyPaddingsChanged",a))},null,8,["deps","themeBodyPaddings"])])]),b("div",nGt,[b("h2",oGt,W(o.templateColorTitle),1),b("div",rGt,[b("div",iGt,[b("label",sGt,W(o.templateBodyColor),1),I(Du,{color:n.themeColors.BodyColor,"onUpdate:changeColor":s[4]||(s[4]=a=>r("update:themeColorsChanged",{...n.themeColors,BodyColor:a}))},null,8,["color"])]),b("div",aGt,[b("label",lGt,W(o.templateBackgroundColor),1),I(Du,{color:n.themeColors.EmailBackgroundColor,"onUpdate:changeColor":s[5]||(s[5]=a=>r("update:themeColorsChanged",{...n.themeColors,EmailBackgroundColor:a}))},null,8,["color"])])])]),b("div",cGt,[b("h2",uGt,W(o.themeTemplateFontFamilyTitle),1),b("div",dGt,[b("div",hGt,[b("button",pGt,[b("span",null,W(N(Sp)[n.themeFontFamily]),1),b("i",mGt,[I(Si)])]),b("ul",fGt,[(E(!0),R(Se,null,At(N(DU),a=>(E(),R("li",{key:a,class:G(["bootstrap-styles dropdown-item p-0",{active:n.themeFontFamily===a}])},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",style:Te({fontFamily:N(Sp)[a]}),onClick:l=>{r("update:setThemeFont",a)}},W(N(Sp)[a]),13,gGt)],2))),128))])])])])])]))}}),CGt={title:"Styles",templateSettingsButton:"Template",componentsSettingsButton:"Components"},bGt={title:"Стили",templateSettingsButton:"Письма",componentsSettingsButton:"Компонентов"},OY=ht({en:CGt,ru:bGt}),vGt={},wGt={class:"icon"};function SGt(t,e){return E(),R("i",wGt,[...e[0]||(e[0]=[b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[b("path",{d:"M10 0C15.5222 0 20 3.97778 20 8.8889C20 11.9556 17.5111 14.4444 14.4444 14.4444H12.4778C11.5556 14.4444 10.8111 15.1889 10.8111 16.1111C10.8111 16.5333 10.9778 16.9222 11.2333 17.2111C11.5 17.5111 11.6667 17.9 11.6667 18.3333C11.6667 19.2556 10.9 20 10 20C4.47778 20 0 15.5222 0 10C0 4.47778 4.47778 0 10 0ZM8.8111 16.1111C8.8111 14.0843 10.451 12.4444 12.4778 12.4444H14.4444C16.4065 12.4444 18 10.851 18 8.8889C18 5.1392 14.4677 2 10 2C5.58235 2 2 5.58235 2 10C2 14.19 5.2226 17.6285 9.324 17.9718C8.9948 17.4168 8.8111 16.7761 8.8111 16.1111ZM5.5 10C4.67157 10 4 9.3284 4 8.5C4 7.67157 4.67157 7 5.5 7C6.32843 7 7 7.67157 7 8.5C7 9.3284 6.32843 10 5.5 10ZM14.5 10C13.6716 10 13 9.3284 13 8.5C13 7.67157 13.6716 7 14.5 7C15.3284 7 16 7.67157 16 8.5C16 9.3284 15.3284 10 14.5 10ZM10 7C9.1716 7 8.5 6.32843 8.5 5.5C8.5 4.67157 9.1716 4 10 4C10.8284 4 11.5 4.67157 11.5 5.5C11.5 6.32843 10.8284 7 10 7Z",fill:"var(--white)"})],-1)])])}const xGt=ve(vGt,[["render",SGt]]),TGt={title:"Save theme",inputNameLabel:"Name",inputNamePlaceholder:"Theme name...",inputGroupLabel:"Group",cancelButton:"Cancel",applyButton:"Save",errorButtonTooltip:"Error",buttonTooltip:""},kGt={title:"Сохранение темы",inputNameLabel:"Название",inputNamePlaceholder:"Название темы...",inputGroupLabel:"Группа",cancelButton:"Отмена",applyButton:"Сохранить",errorButtonTooltip:"Ошибка",buttonTooltip:""},ay=ht({en:TGt,ru:kGt}),FGt={class:"bootstrap-styles fw-bold mb-5"},EGt={class:"bootstrap-styles col-12 mb-13"},LGt={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},_Gt=["placeholder"],AGt={class:"bootstrap-styles fw-bold mb-5"},RGt={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},DGt={id:"dropdownMenuSectionSelect",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},BGt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},NGt={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuSectionSelect"},IGt=["onClick"],MGt={class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer"},$Gt=["disabled"],OGt={key:0,class:"bootstrap-styles d-flex align-items-center justify-content-center preloader"},PGt={key:2},VGt=re({__name:"AddThemeLibrarySectionItemModalWindow",props:{deps:{},themeSettings:{},themeTemplateSaveState:{}},emits:["onSaveTemplateTheme","cancel"],setup(t,{emit:e}){const n=t,o={title:ay({localeKey:n.deps.localeKey}).title,inputNameLabel:ay({localeKey:n.deps.localeKey}).inputNameLabel,inputNamePlaceholder:ay({localeKey:n.deps.localeKey}).inputNamePlaceholder,inputGroupLabel:ay({localeKey:n.deps.localeKey}).inputGroupLabel,cancelButton:ay({localeKey:n.deps.localeKey}).cancelButton,applyButton:ay({localeKey:n.deps.localeKey}).applyButton,errorButtonTooltip:ay({localeKey:n.deps.localeKey}).errorButtonTooltip,buttonTooltip:ay({localeKey:n.deps.localeKey}).buttonTooltip},r=Le({themeLibrarySections:[],sectionItemName:"",selectedParentSectionId:"",selectedParentSectionName:"",isDropdownMenuShown:!1,isLoading:!0});n.deps.getThemeLibrarySections().then(l=>{r.themeLibrarySections=l;const c=l[0];c&&(r.selectedParentSectionId=c.sectionId,r.selectedParentSectionName=c.sectionName),r.isLoading=!1});const i=e,s=()=>{i("onSaveTemplateTheme",{sectionItemName:r.sectionItemName,sectionId:r.selectedParentSectionId})},a=()=>{i("cancel")};return(l,c)=>(E(),Q(bd,{class:"save-theme-modal-window",headerText:o.title,onClose:c[3]||(c[3]=()=>a())},{body:Bt(()=>[I(MU,{class:G(["bootstrap-styles position-absolute top-50 start-50",{invisible:!r.isLoading}])},null,8,["class"]),b("div",{class:G(["bootstrap-styles px-11 py-7 text-start",{invisible:r.isLoading}])},[b("label",FGt,W(o.inputNameLabel),1),b("div",EGt,[b("div",LGt,[Ke(b("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.sectionItemName=u),type:"text",class:"bootstrap-styles w-100",placeholder:o.inputNamePlaceholder},null,8,_Gt),[[Ea,r.sectionItemName],[N(Dg),!r.isLoading]])])]),b("div",null,[b("label",AGt,W(o.inputGroupLabel),1),b("div",RGt,[Ke((E(),R("button",DGt,[b("span",null,W(r.selectedParentSectionName),1),b("i",BGt,[I(Si)])])),[[N(ah)]]),b("ul",NGt,[(E(!0),R(Se,null,At(r.themeLibrarySections,u=>(E(),R("li",{key:u.sectionId,class:"bootstrap-styles dropdown-item p-0",onClick:()=>{r.selectedParentSectionId=u.sectionId,r.selectedParentSectionName=u.sectionName}},[b("span",MGt,W(u.sectionName),1)],8,IGt))),128))])])])],2)]),"footer-actions":Bt(()=>[b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:c[1]||(c[1]=Nt(u=>a(),["stop"]))},W(o.cancelButton),1),Ke((E(),R("button",{class:G(["modal-footer__button add-theme-item-modal-button bootstrap-styles position-relative d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white",{"bg-color__error":n.themeTemplateSaveState==="Error"}]),disabled:r.sectionItemName.length===0||n.themeTemplateSaveState==="Error",onClick:c[2]||(c[2]=Nt(u=>s(),["stop"]))},[n.themeTemplateSaveState==="Error"?(E(),R("i",OGt,[I(I9e,{class:"bootstrap-styles me-0"})])):n.themeTemplateSaveState==="Saving"?(E(),Q(GC,{key:1,class:"preloader"})):(E(),R("span",PGt,W(o.applyButton),1))],10,$Gt)),[[N(Xn),{title:n.themeTemplateSaveState==="Error"?o.errorButtonTooltip:o.buttonTooltip,placement:"top"}]])]),_:1},8,["headerText"]))}}),WGt=ve(VGt,[["__scopeId","data-v-8697bd66"]]),HGt={class:"bootstrap-styles scrollable d-flex flex-column"},zGt={class:"bootstrap-styles flex-column gap-13 me-3 d-flex"},jGt={class:"bootstrap-styles fs-6 fw-bold mb-0 me-7"},KGt={class:"bootstrap-styles container-fluid"},UGt={key:0,class:"bootstrap-styles container-fluid"},qGt={key:1,class:"bootstrap-styles container-fluid"},JGt=["disabled"],zke="template",GGt=re({__name:"ThemeStyles",props:{theme:{},themeLibrary:{},deps:{},themeTemplateSaveState:{}},emits:["update:setThemeBodyWidth","update:setThemeFont","update:themeBorderRadiusChanged","update:themeBorderRadiusCardChanged","update:themeBorderRadiusButtonChanged","update:themeBorderRadiusBannerChanged","update:themeColorsChanged","update:themeFontSettingsChanged","update:themeComponentPaddingsChanged","update:themeButtonPaddingsChanged","update:themeBodyPaddingsChanged","onResponsiveWidthChanged","onSaveTemplateTheme"],setup(t,{emit:e}){const n=t,o={title:OY({localeKey:n.deps.localeKey}).title,templateSettingsButton:OY({localeKey:n.deps.localeKey}).templateSettingsButton,componentsSettingsButton:OY({localeKey:n.deps.localeKey}).componentsSettingsButton,addThemeLibrarySectionItemButton:R2({localeKey:n.deps.localeKey}).addThemeLibrarySectionItemButton,addThemeLibrarySectionItemButtonTooltip:R2({localeKey:n.deps.localeKey}).addThemeLibrarySectionItemButtonTooltip},r=Le({themeSettingsSourceKey:zke,isAddThemeLibrarySectionItemModalWindowShown:!1}),i=l=>{a("onSaveTemplateTheme",l)},s={template:o.templateSettingsButton,component:o.componentsSettingsButton},a=e;return on(()=>n.themeTemplateSaveState,l=>{l==="NoChanges"&&(r.isAddThemeLibrarySectionItemModalWindowShown=!1)}),(l,c)=>(E(),R("div",HGt,[b("div",zGt,[b("h2",jGt,W(o.title),1),b("div",KGt,[I(kU,{initialTab:zke,tabList:s,onOnTabClicked:c[0]||(c[0]=u=>r.themeSettingsSourceKey=u)})]),r.themeSettingsSourceKey==="template"?(E(),R("div",UGt,[I(yGt,{deps:{localeKey:n.deps.localeKey},themeColors:n.theme.Colors,themeFontFamily:n.theme.FontFamily,themeBodyPaddings:n.theme.BodyPaddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyWidth:n.theme.BodyWidth,themeBorderRadius:n.theme.BorderRadius,isResponsiveWidth:n.theme.IsResponsiveWidth,"onUpdate:themeBodyPaddingsChanged":c[1]||(c[1]=u=>a("update:themeBodyPaddingsChanged",u)),"onUpdate:setThemeBodyWidth":c[2]||(c[2]=u=>a("update:setThemeBodyWidth",u)),"onUpdate:setThemeFont":c[3]||(c[3]=u=>a("update:setThemeFont",u)),"onUpdate:themeBorderRadiusChanged":c[4]||(c[4]=u=>a("update:themeBorderRadiusChanged",u)),"onUpdate:themeColorsChanged":c[5]||(c[5]=u=>a("update:themeColorsChanged",u)),onOnResponsiveWidthChanged:c[6]||(c[6]=u=>a("onResponsiveWidthChanged",u))},null,8,["deps","themeColors","themeFontFamily","themeBodyPaddings","themeComponentPaddings","themeBodyWidth","themeBorderRadius","isResponsiveWidth"])])):oe("",!0),r.themeSettingsSourceKey==="component"?(E(),R("div",qGt,[I(iJt,{deps:{localeKey:n.deps.localeKey},themeComponentPaddings:n.theme.ComponentPaddings,themeButtonPaddings:n.theme.ButtonPaddings,themeColors:n.theme.Colors,themeFontSettingsGroup:n.theme.FontSettingsPresets,themeBorderRadiusButtonSettings:n.theme.BorderRadiusButton,themeBorderRadiusCardSettings:n.theme.BorderRadiusCard,themeBorderRadiusBannerSettings:n.theme.BorderRadiusBanner,"onUpdate:themeBorderRadiusButtonChanged":c[7]||(c[7]=u=>a("update:themeBorderRadiusButtonChanged",u)),"onUpdate:themeBorderRadiusCardChanged":c[8]||(c[8]=u=>a("update:themeBorderRadiusCardChanged",u)),"onUpdate:themeBorderRadiusBannerChanged":c[9]||(c[9]=u=>a("update:themeBorderRadiusBannerChanged",u)),"onUpdate:themeColorsChanged":c[10]||(c[10]=u=>a("update:themeColorsChanged",u)),"onUpdate:themeFontSettingsChanged":c[11]||(c[11]=u=>a("update:themeFontSettingsChanged",u)),"onUpdate:themeComponentPaddingsChanged":c[12]||(c[12]=u=>a("update:themeComponentPaddingsChanged",u)),"onUpdate:themeButtonPaddingsChanged":c[13]||(c[13]=u=>a("update:themeButtonPaddingsChanged",u))},null,8,["deps","themeComponentPaddings","themeButtonPaddings","themeColors","themeFontSettingsGroup","themeBorderRadiusButtonSettings","themeBorderRadiusCardSettings","themeBorderRadiusBannerSettings"])])):oe("",!0)]),b("div",{class:G(["bootstrap-styles mt-auto me-3",[r.themeSettingsSourceKey==="template"?"d-flex":"d-none"]])},[Ke((E(),R("button",{class:"bootstrap-styles save-theme-button d-flex align-items-center justify-content-center text-white border-0 rounded-2 w-100 mt-1 py-1 px-3 gap-1 button__hover-blue-400",disabled:n.themeLibrary.length===0||n.themeTemplateSaveState==="NoChanges",onClick:c[14]||(c[14]=()=>r.isAddThemeLibrarySectionItemModalWindowShown=!0)},[I(xGt),no(" "+W(o.addThemeLibrarySectionItemButton),1)],8,JGt)),[[N(Xn),{title:o.addThemeLibrarySectionItemButtonTooltip,placement:"right",trigger:n.themeLibrary.length===0?"hover":"manual"}]])],2),(E(),Q(yo,{to:"body",defer:""},[r.isAddThemeLibrarySectionItemModalWindowShown?(E(),Q(WGt,{key:0,deps:n.deps.customThemeLibraryDeps.addThemeSectionItemModalWindowDeps,themeSettings:n.theme,themeTemplateSaveState:n.themeTemplateSaveState,onCancel:c[15]||(c[15]=u=>r.isAddThemeLibrarySectionItemModalWindowShown=!1),onOnSaveTemplateTheme:c[16]||(c[16]=u=>i(u))},null,8,["deps","themeSettings","themeTemplateSaveState"])):oe("",!0)]))]))}}),YGt=ve(GGt,[["__scopeId","data-v-0d352a5d"]]),ZGt={exitButtonTooltip:"Exit",componentLibraryButtonTooltip:"Select a component to add to the template",themeLibraryButtonTooltip:"Themes",themeStylesButtonTooltip:"Styles"},XGt={exitButtonTooltip:"Выйти",componentLibraryButtonTooltip:"Выбрать компонент для добавления в шаблон",themeLibraryButtonTooltip:"Темы",themeStylesButtonTooltip:"Стили"},dO=ht({en:ZGt,ru:XGt}),QGt={class:"bootstrap-styles aside-menu show"},eYt={class:"bootstrap-styles h-100 d-flex justify-content-start"},tYt={class:"bootstrap-styles border-end border-1 btn-group-vertical justify-content-start px-1 py-4"},nYt={class:"bootstrap-styles p-0 list-style-none"},oYt={class:"bootstrap-styles mb-3"},rYt={class:"bootstrap-styles mb-3"},iYt={class:"bootstrap-styles mb-3"},sYt={class:"bootstrap-styles mb-3"},aYt={class:"bootstrap-styles py-13 ps-7 aside-menu__content bg-white shadow"},lYt=re({__name:"AsideMenu",props:{deps:{},componentLibrary:{},theme:{},themeLibrary:{},componentLibrarySectionUpdated:{type:Boolean},themeTemplateSaveState:{}},emits:["update:setThemeBodyWidth","update:setThemeFont","update:themeBorderRadiusChanged","update:themeBorderRadiusCardChanged","update:themeBorderRadiusButtonChanged","update:themeBorderRadiusBannerChanged","update:themeColorsChanged","update:themeFontSettingsChanged","update:themeComponentPaddingsChanged","update:themeBodyPaddingsChanged","update:themeButtonPaddingsChanged","componentLibrarySectionItemRemoved","componentLibrarySectionItemUpdated","componentLibrarySectionCreated","selectedThemeSettings","onSaveTemplateTheme","themeSectionItemRemoved","onThemeLibrarySectionItemUpdated","onCustomComponentDraggedFromLibrary","onDefaultComponentDraggedFromLibrary","onComponentLibrarySectionRemoved","onThemeLibrarySectionRemoved","onThemeLibrarySectionAdded","onResponsiveWidthChanged","exit"],setup(t,{emit:e}){const n=t,o={exitButtonTooltip:dO({localeKey:n.deps.localeKey}).exitButtonTooltip,componentLibraryButtonTooltip:dO({localeKey:n.deps.localeKey}).componentLibraryButtonTooltip,themeLibraryButtonTooltip:dO({localeKey:n.deps.localeKey}).themeLibraryButtonTooltip,themeStylesButtonTooltip:dO({localeKey:n.deps.localeKey}).themeStylesButtonTooltip},r=Le({menuToggle:{isShown:!1,content:null}}),i=a=>{a===r.menuToggle.content?(r.menuToggle.isShown=!1,r.menuToggle.content=null):(r.menuToggle.content=a,r.menuToggle.isShown=!0)},s=e;return(a,l)=>(E(),R("div",QGt,[b("section",eYt,[b("nav",tYt,[b("ul",nYt,[b("li",oYt,[Ke((E(),R("button",{onClick:l[0]||(l[0]=c=>s("exit")),class:"exit-button"},[b("i",null,[I(ojt)])])),[[N(Xn),{title:o.exitButtonTooltip,placement:"right"}]])]),b("li",rYt,[Ke((E(),R("button",{class:G(["bootstrap-styles button__md button__hover-blue rounded-1 p-2",{active:r.menuToggle.content==="componentsLibrary"}]),onClick:l[1]||(l[1]=c=>i("componentsLibrary"))},[I(qzt)],2)),[[N(Xn),{title:o.componentLibraryButtonTooltip,placement:"right"}]])]),b("li",iYt,[Ke((E(),R("button",{class:G(["bootstrap-styles button__md button__hover-blue rounded-1 p-2",{active:r.menuToggle.content==="themes"}]),onClick:l[2]||(l[2]=c=>i("themes"))},[I(Qzt)],2)),[[N(Xn),{title:o.themeLibraryButtonTooltip,placement:"right"}]])]),b("li",sYt,[Ke((E(),R("button",{class:G(["bootstrap-styles button__md button__hover-blue rounded-1 p-2",{active:r.menuToggle.content==="style"}]),onClick:l[3]||(l[3]=c=>i("style"))},[I(Yzt)],2)),[[N(Xn),{title:o.themeStylesButtonTooltip,placement:"right"}]])])])]),Ke(b("div",aYt,[r.menuToggle.content==="componentsLibrary"?(E(),Q(nKt,{key:0,deps:n.deps.componentLibraryDeps,theme:n.theme,componentLibrary:n.componentLibrary,componentLibrarySectionUpdated:n.componentLibrarySectionUpdated,onComponentLibrarySectionItemRemoved:l[4]||(l[4]=()=>s("componentLibrarySectionItemRemoved")),onComponentLibrarySectionItemUpdated:l[5]||(l[5]=()=>s("componentLibrarySectionItemUpdated")),onComponentLibrarySectionCreated:l[6]||(l[6]=()=>s("componentLibrarySectionCreated")),onOnCustomComponentDraggedFromLibrary:l[7]||(l[7]=c=>s("onCustomComponentDraggedFromLibrary",c)),onOnDefaultComponentDraggedFromLibrary:l[8]||(l[8]=c=>s("onDefaultComponentDraggedFromLibrary",c)),onOnComponentLibrarySectionRemoved:l[9]||(l[9]=c=>s("onComponentLibrarySectionRemoved"))},null,8,["deps","theme","componentLibrary","componentLibrarySectionUpdated"])):oe("",!0),r.menuToggle.content==="style"?(E(),Q(YGt,{key:1,theme:n.theme,deps:n.deps.themeStylesDeps,themeLibrary:n.themeLibrary,themeTemplateSaveState:n.themeTemplateSaveState,"onUpdate:setThemeBodyWidth":l[10]||(l[10]=c=>s("update:setThemeBodyWidth",c)),"onUpdate:setThemeFont":l[11]||(l[11]=c=>s("update:setThemeFont",c)),"onUpdate:themeBorderRadiusChanged":l[12]||(l[12]=c=>s("update:themeBorderRadiusChanged",c)),"onUpdate:themeBorderRadiusCardChanged":l[13]||(l[13]=c=>s("update:themeBorderRadiusCardChanged",c)),"onUpdate:themeBorderRadiusButtonChanged":l[14]||(l[14]=c=>s("update:themeBorderRadiusButtonChanged",c)),"onUpdate:themeBorderRadiusBannerChanged":l[15]||(l[15]=c=>s("update:themeBorderRadiusBannerChanged",c)),"onUpdate:themeColorsChanged":l[16]||(l[16]=c=>s("update:themeColorsChanged",c)),"onUpdate:themeFontSettingsChanged":l[17]||(l[17]=c=>s("update:themeFontSettingsChanged",c)),"onUpdate:themeBodyPaddingsChanged":l[18]||(l[18]=c=>s("update:themeBodyPaddingsChanged",c)),"onUpdate:themeComponentPaddingsChanged":l[19]||(l[19]=c=>s("update:themeComponentPaddingsChanged",c)),"onUpdate:themeButtonPaddingsChanged":l[20]||(l[20]=c=>s("update:themeButtonPaddingsChanged",c)),onOnResponsiveWidthChanged:l[21]||(l[21]=c=>s("onResponsiveWidthChanged",c)),onOnSaveTemplateTheme:l[22]||(l[22]=c=>s("onSaveTemplateTheme",c))},null,8,["theme","deps","themeLibrary","themeTemplateSaveState"])):oe("",!0),r.menuToggle.content==="themes"?(E(),Q(f8t,{key:2,deps:n.deps.themeLibraryDeps,themeLibrary:n.themeLibrary,currentThemeSettings:n.theme,onOnThemeLibrarySectionItemUpdated:l[23]||(l[23]=()=>s("onThemeLibrarySectionItemUpdated")),onSelectedThemeSettings:l[24]||(l[24]=c=>s("selectedThemeSettings",c)),onThemeSectionItemRemoved:l[25]||(l[25]=()=>s("themeSectionItemRemoved")),onOnThemeLibrarySectionRemoved:l[26]||(l[26]=c=>s("onThemeLibrarySectionRemoved")),onOnThemeLibrarySectionAdded:l[27]||(l[27]=c=>s("onThemeLibrarySectionAdded"))},null,8,["deps","themeLibrary","currentThemeSettings"])):oe("",!0),b("div",{class:G(["bootstrap-styles pe-7",{active:r.menuToggle.content==="folder"}])},null,2),b("div",{class:G(["bootstrap-styles pe-7",{active:r.menuToggle.content==="comments"}])},null,2),b("div",{class:G(["bootstrap-styles pe-7",{active:r.menuToggle.content==="help"}])},null,2)],512),[[RL,r.menuToggle.isShown]])])]))}}),cYt=ve(lYt,[["__scopeId","data-v-b7e478ae"]]),uYt={},dYt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 16",fill:"none"};function hYt(t,e){return E(),R("svg",dYt,[...e[0]||(e[0]=[b("path",{d:"M2.66683 10.6667H13.3335V3.33333H2.66683V10.6667ZM8.66683 12V13.3333H11.3335V14.6667H4.66683V13.3333H7.3335V12H1.9947C1.62953 12 1.3335 11.7007 1.3335 11.3283V2.67165C1.3335 2.30071 1.63704 2 1.9947 2H14.0056C14.3708 2 14.6668 2.29928 14.6668 2.67165V11.3283C14.6668 11.6993 14.3633 12 14.0056 12H8.66683Z",fill:"var(--black)"},null,-1)])])}const pYt=ve(uYt,[["render",hYt]]),mYt={},fYt={width:"16",height:"17",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function gYt(t,e){return E(),R("svg",fYt,[...e[0]||(e[0]=[b("path",{d:"M2.66667 2.66667V13.3333H13.3333V2.66667H2.66667ZM2 1.33334H14C14.3682 1.33334 14.6667 1.63182 14.6667 2V14C14.6667 14.3682 14.3682 14.6667 14 14.6667H2C1.63182 14.6667 1.33334 14.3682 1.33334 14V2C1.33334 1.63182 1.63182 1.33334 2 1.33334ZM8 11.3333C8.3682 11.3333 8.66667 11.6318 8.66667 12C8.66667 12.3682 8.3682 12.6667 8 12.6667C7.6318 12.6667 7.33334 12.3682 7.33334 12C7.33334 11.6318 7.6318 11.3333 8 11.3333Z",fill:"var(--black)"},null,-1)])])}const yYt=ve(mYt,[["render",gYt]]),CYt={},bYt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 16",fill:"none"};function vYt(t,e){return E(),R("svg",bYt,[...e[0]||(e[0]=[b("path",{d:"M4.66665 2.66666V13.3333H11.3333V2.66666H4.66665ZM3.99998 1.33333H12C12.3682 1.33333 12.6666 1.63181 12.6666 1.99999V14C12.6666 14.3682 12.3682 14.6667 12 14.6667H3.99998C3.63179 14.6667 3.33331 14.3682 3.33331 14V1.99999C3.33331 1.63181 3.63179 1.33333 3.99998 1.33333ZM7.99998 11.3333C8.36818 11.3333 8.66665 11.6318 8.66665 12C8.66665 12.3682 8.36818 12.6667 7.99998 12.6667C7.63178 12.6667 7.33331 12.3682 7.33331 12C7.33331 11.6318 7.63178 11.3333 7.99998 11.3333Z",fill:"var(--black)"},null,-1)])])}const wYt=ve(CYt,[["render",vYt]]),$pe=t=>t==="desktop",O9e=t=>t==="tablet",P9e=t=>t==="mobile",SYt={class:"bootstrap-styles toggleDeviceToolbar__container col d-flex flex-nowrap"},xYt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},TYt={class:"bootstrap-styles d-flex"},kYt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},FYt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},EYt=re({__name:"ToggleDeviceToolbar",props:{deps:{},deviceMode:{},isResponsiveWidth:{type:Boolean}},emits:["onDeviceModeChanged"],setup(t,{emit:e}){const n=t,o={disabledButtonTooltip:$9e({localeKey:n.deps.localeKey}).disabledButtonTooltip},r=e;return(i,s)=>(E(),R("div",SYt,[b("button",{class:G(["bootstrap-styles toggleDeviceToolbar__button button__sm button__hover-gray button__underline rounded-2 position-relative p-1",{active:N($pe)(n.deviceMode)}]),onClick:s[0]||(s[0]=a=>r("onDeviceModeChanged",{device:"desktop"}))},[b("i",xYt,[I(pYt)])],2),Ke((E(),R("div",TYt,[b("button",{class:G(["bootstrap-styles toggleDeviceToolbar__button p-1 position-relative button__sm button__hover-gray button__underline rounded-2 me-1",{active:N(O9e)(n.deviceMode),"disabled pe-none":!n.isResponsiveWidth}]),onClick:s[1]||(s[1]=a=>r("onDeviceModeChanged",{device:"tablet"}))},[b("i",kYt,[I(yYt)])],2),b("button",{class:G(["bootstrap-styles toggleDeviceToolbar__button p-1 position-relative button__sm button__hover-gray button__underline rounded-2",{active:N(P9e)(n.deviceMode),"disabled pe-none":!n.isResponsiveWidth}]),onClick:s[2]||(s[2]=a=>r("onDeviceModeChanged",{device:"mobile"}))},[b("i",FYt,[I(wYt)])],2)])),[[N(Xn),{title:o.disabledButtonTooltip,placement:"bottom",trigger:n.isResponsiveWidth?"manual":"hover"}]])]))}}),LYt=ve(EYt,[["__scopeId","data-v-06dfcd35"]]),_Yt={},AYt={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",viewBox:"0 0 12 13",fill:"none"};function RYt(t,e){return E(),R("svg",AYt,[...e[0]||(e[0]=[b("path",{d:"M8.48527 5.38419L7.54247 4.44138L1.33333 10.6505V11.5933H2.27614L8.48527 5.38419ZM9.42807 4.44138L10.3709 3.49858L9.42807 2.55576L8.48527 3.49858L9.42807 4.44138ZM2.82843 12.9267H0V10.0982L8.95667 1.14155C9.21707 0.881202 9.63913 0.881202 9.89947 1.14155L11.7851 3.02717C12.0455 3.28752 12.0455 3.70963 11.7851 3.96998L2.82843 12.9267Z",fill:"var(--black)"},null,-1)])])}const DYt=ve(_Yt,[["render",RYt]]),BYt={title:"Subject settings",themeLabel:"Subject",themeInputPlaceholder:"Title that recipients will see in their email",preheaderLabel:"Preheader",preheaderInputPlaceholder:"Brief description visible right after the subject in the email list",applyButton:"Apply",cancelButton:"Cancel"},NYt={title:"Настройки темы",themeLabel:"Тема",themeInputPlaceholder:"Заголовок, который увидят получатели в своей почте",preheaderLabel:"Прехедер",preheaderInputPlaceholder:"Краткое описание, которое будет видно сразу после темы в списке писем",applyButton:"Применить",cancelButton:"Отмена"},u1=ht({en:BYt,ru:NYt}),IYt={class:"bootstrap-styles px-11 my-8"},MYt={class:"bootstrap-styles fw-bold mb-5"},$Yt=["placeholder"],OYt={class:"bootstrap-styles px-11 my-8"},PYt={class:"bootstrap-styles fw-bold mb-5 user-select-none"},VYt=["placeholder"],WYt=re({__name:"PreheaderSubjectUpdateModalWindow",props:{deps:{},subject:{},preheader:{}},emits:["cancel","apply"],setup(t,{emit:e}){const n=t,o={title:u1({localeKey:n.deps.localeKey}).title,themeLabel:u1({localeKey:n.deps.localeKey}).themeLabel,themeInputPlaceholder:u1({localeKey:n.deps.localeKey}).themeInputPlaceholder,preheaderLabel:u1({localeKey:n.deps.localeKey}).preheaderLabel,preheaderInputPlaceholder:u1({localeKey:n.deps.localeKey}).preheaderInputPlaceholder,cancelButton:u1({localeKey:n.deps.localeKey}).cancelButton,applyButton:u1({localeKey:n.deps.localeKey}).applyButton},r=Le({subject:n.subject,preheader:n.preheader}),i=()=>{a("apply",{subject:r.subject,preheader:r.preheader}),s()},s=()=>{a("cancel")},a=e;return(l,c)=>(E(),Q(bd,{class:"preheader-subject-update-modal-window",headerText:o.title,onClose:c[4]||(c[4]=()=>s())},{body:Bt(()=>[b("div",IYt,[b("label",MYt,W(o.themeLabel),1),Ke(b("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.subject=u),class:"bootstrap-styles bg-color-input border rounded-2 w-100 py-1 px-3",placeholder:o.themeInputPlaceholder},null,8,$Yt),[[Ea,r.subject],[N(Dg),void 0,void 0,{end:!0}]])]),b("div",OYt,[b("label",PYt,W(o.preheaderLabel),1),Ke(b("input",{"onUpdate:modelValue":c[1]||(c[1]=u=>r.preheader=u),class:"bootstrap-styles bg-color-input border rounded-2 w-100 py-1 px-3",placeholder:o.preheaderInputPlaceholder},null,8,VYt),[[Ea,r.preheader]])])]),"footer-actions":Bt(()=>[b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:c[2]||(c[2]=Nt(u=>s(),["stop"]))},W(o.cancelButton),1),b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 bg-color-selected text-white cursor-pointer button__hover-blue-400",onClick:c[3]||(c[3]=Nt(()=>i(),["stop"]))},W(o.applyButton),1)]),_:1},8,["headerText"]))}}),HYt={preheaderSubjectUpdateButtonTooltip:"Edit email subject and preheader",preheaderSubjectUpdateButton:"Set subject"},zYt={preheaderSubjectUpdateButtonTooltip:"Редактировать тему и прехедер письма",preheaderSubjectUpdateButton:"Указать тему"},jke=ht({en:HYt,ru:zYt}),jYt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center me-1"},KYt={key:0},UYt={key:1},qYt=re({__name:"PreheaderSubjectUpdateButton",props:{deps:{},subject:{},preheader:{}},emits:["onPreheaderSubjectUpdated"],setup(t,{emit:e}){const n=t,o={preheaderSubjectUpdateButtonTooltip:jke({localeKey:n.deps.localeKey}).preheaderSubjectUpdateButtonTooltip,preheaderSubjectUpdateButton:jke({localeKey:n.deps.localeKey}).preheaderSubjectUpdateButton},r=Le({isPreheaderSubjectUpdateModalWindowShown:!1}),i=e;return(s,a)=>(E(),R(Se,null,[Ke((E(),R("button",{class:"bootstrap-styles topMenu__button d-flex justify-content-center align-items-center py-1 me-1 rounded-2 button__hover-gray text-nowrap flex-shrink-1",onClick:a[0]||(a[0]=l=>r.isPreheaderSubjectUpdateModalWindowShown=!0)},[b("i",jYt,[I(DYt)]),n.subject.length===0?(E(),R("span",KYt,W(o.preheaderSubjectUpdateButton),1)):(E(),R("span",UYt,W(n.subject),1))])),[[N(Xn),{title:o.preheaderSubjectUpdateButtonTooltip,placement:"bottom"}]]),(E(),Q(yo,{to:"body",defer:""},[r.isPreheaderSubjectUpdateModalWindowShown?(E(),Q(WYt,{key:0,deps:n.deps.preheaderSubjectUpdateModalWindowDeps,subject:n.subject,preheader:n.preheader,onApply:a[1]||(a[1]=l=>i("onPreheaderSubjectUpdated",l)),onCancel:a[2]||(a[2]=l=>r.isPreheaderSubjectUpdateModalWindowShown=!1)},null,8,["deps","subject","preheader"])):oe("",!0)]))],64))}}),JYt=ve(qYt,[["__scopeId","data-v-ebe33f89"]]),GYt={},YYt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"};function ZYt(t,e){return E(),R("svg",YYt,[...e[0]||(e[0]=[b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 9.8828H12.6667V9.16667H8.66667V13.1667H9.41808V14.5H2.66667C2.29848 14.5 2 14.2015 2 13.8333V3.16667C2 2.79848 2.29848 2.5 2.66667 2.5H13.3333C13.7015 2.5 14 2.79848 14 3.16667V9.8828ZM3.33333 3.83333H7.33333V13.1667H3.33333V3.83333ZM8.66667 3.83333H12.6667V7.83333H8.66667V3.83333Z",fill:"var(--black)"},null,-1),b("path",{d:"M14.714 14.2712L13.2998 12.857L14.714 11.4428L13.7712 10.5L12.357 11.9142L10.9428 10.5L10 11.4428L11.4142 12.857L10 14.2712L10.9428 15.214L12.357 13.7998L13.7712 15.214L14.714 14.2712Z",fill:"var(--black)"},null,-1)])])}const XYt=ve(GYt,[["render",ZYt]]),QYt={resetTemplateButtonTooltip:"Reset template",resetTemplateButton:"Reset template"},eZt={resetTemplateButtonTooltip:"Сбросить шаблон",resetTemplateButton:"Сбросить шаблон"},tZt=ht({en:QYt,ru:eZt}),nZt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},oZt={class:"bootstrap-styles"},rZt=re({__name:"ResetTemplateButton",props:{deps:{}},emits:["onReset"],setup(t,{emit:e}){const n=tZt({localeKey:t.deps.localeKey}),o=e;return(r,i)=>Ke((E(),R("button",{class:"bootstrap-styles topMenu__button d-flex justify-content-center align-items-center py-1 me-1 rounded-2 button__hover-gray text-nowrap",onClick:i[0]||(i[0]=s=>o("onReset"))},[b("i",nZt,[I(XYt)]),b("span",oZt,W(N(n).resetTemplateButton),1)])),[[N(Xn),{placement:"bottom",title:N(n).resetTemplateButtonTooltip}]])}}),iZt={class:"bootstrap-styles exportMenu__container d-flex justify-content-end align-items-start flex-nowrap"},sZt=re({__name:"ExportMenu",props:{deps:{},emailTemplate:{}},emits:["onAppSettingsUpdated","onTemplateReset"],setup(t,{emit:e}){const n=t,o=n.deps.appSettingsModifierPlugin,r=n.deps.appStateManagerPlugin,i=e;return(s,a)=>(E(),R("div",iZt,[I(rZt,{deps:n.deps.resetTemplateButtonDeps,onOnReset:a[0]||(a[0]=()=>i("onTemplateReset"))},null,8,["deps"]),n.deps.appSettingsModifierPlugin?(E(),Q(N(o),{key:0,onOnSettingsUpdated:a[1]||(a[1]=()=>i("onAppSettingsUpdated"))})):oe("",!0),n.deps.appStateManagerPlugin?(E(),Q(N(r),{key:1,emailTemplate:n.emailTemplate},null,8,["emailTemplate"])):oe("",!0)]))}}),aZt={},lZt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 16",fill:"none"};function cZt(t,e){return E(),R("svg",lZt,[...e[0]||(e[0]=[b("path",{d:"M4.41796 5.57883L6.01934 7.10399L5.12616 7.95465L2 4.97732L5.12616 2L6.01934 2.85067L4.41796 4.37581H8.94737C11.7379 4.37581 14 6.53025 14 9.18792C14 11.8455 11.7379 14 8.94737 14H3.26316V12.797H8.94737C11.0402 12.797 12.7368 11.1811 12.7368 9.18792C12.7368 7.19466 11.0402 5.57883 8.94737 5.57883H4.41796Z",fill:"var(--black)"},null,-1)])])}const uZt=ve(aZt,[["render",cZt]]),dZt={},hZt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 16",fill:"none"};function pZt(t,e){return E(),R("svg",hZt,[...e[0]||(e[0]=[b("path",{d:"M11.582 5.57883L9.98066 7.10399L10.8738 7.95465L14 4.97732L10.8738 2L9.98066 2.85067L11.582 4.37581H7.05263C4.26213 4.37581 2 6.53025 2 9.18792C2 11.8455 4.26213 14 7.05263 14H12.7368V12.797H7.05263C4.95977 12.797 3.26316 11.1811 3.26316 9.18792C3.26316 7.19466 4.95977 5.57883 7.05263 5.57883H11.582Z",fill:"var(--black)"},null,-1)])])}const mZt=ve(dZt,[["render",pZt]]),fZt={class:"bootstrap-styles emailTemplateHistoryControls__container d-flex flex-nowrap"},gZt={class:"bootstrap-styles button__sm button__hover-gray button__underline rounded-2 position-relative p-1 disabled"},yZt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},CZt={class:"bootstrap-styles button__sm button__hover-gray button__underline rounded-2 position-relative p-1"},bZt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},vZt=re({__name:"EmailTemplateHistoryControls",setup(t){return(e,n)=>(E(),R("div",fZt,[b("button",gZt,[b("i",yZt,[I(uZt)])]),b("button",CZt,[b("i",bZt,[I(mZt)])])]))}}),wZt=ve(vZt,[["__scopeId","data-v-021588ab"]]),SZt={class:"bootstrap-styles d-flex align-items-start flex-nowrap g-0 gap-1"},xZt=re({__name:"TopMenu",props:{deps:{},deviceMode:{},subject:{},preheader:{},isResponsiveWidth:{type:Boolean},emailTemplate:{}},emits:["onDeviceModeChanged","onAppSettingsUpdated","onTemplateReset","onPreheaderSubjectUpdated","onDblClick"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("nav",{class:"bootstrap-styles topMenu__container d-flex justify-content-between mb-7",onDblclick:i[4]||(i[4]=s=>o("onDblClick"))},[b("div",SZt,[I(LYt,{deps:n.deps.toggleDeviceToolbarDeps,deviceMode:n.deviceMode,isResponsiveWidth:n.isResponsiveWidth,onOnDeviceModeChanged:i[0]||(i[0]=s=>o("onDeviceModeChanged",s))},null,8,["deps","deviceMode","isResponsiveWidth"]),I(wZt,{class:"bootstrap-styles d-none"})]),I(JYt,{deps:n.deps.preheaderSubjectUpdateButtonDeps,preheader:n.preheader,subject:n.subject,onOnPreheaderSubjectUpdated:i[1]||(i[1]=s=>o("onPreheaderSubjectUpdated",s))},null,8,["deps","preheader","subject"]),I(sZt,{deps:n.deps.exportMenuDeps,emailTemplate:n.emailTemplate,onOnAppSettingsUpdated:i[2]||(i[2]=s=>o("onAppSettingsUpdated")),onOnTemplateReset:i[3]||(i[3]=s=>o("onTemplateReset"))},null,8,["deps","emailTemplate"])],32))}}),TZt=ve(xZt,[["__scopeId","data-v-5e6164f8"]]),kZt={},FZt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function EZt(t,e){return E(),R("svg",FZt,[...e[0]||(e[0]=[b("path",{d:"M5.66675 4.6665C6.21903 4.6665 6.66675 4.21879 6.66675 3.6665C6.66675 3.11422 6.21903 2.6665 5.66675 2.6665C5.11446 2.6665 4.66675 3.11422 4.66675 3.6665C4.66675 4.21879 5.11446 4.6665 5.66675 4.6665ZM5.66675 8.99984C6.21903 8.99984 6.66675 8.5521 6.66675 7.99984C6.66675 7.44757 6.21903 6.99984 5.66675 6.99984C5.11446 6.99984 4.66675 7.44757 4.66675 7.99984C4.66675 8.5521 5.11446 8.99984 5.66675 8.99984ZM6.66675 12.3332C6.66675 12.8854 6.21903 13.3332 5.66675 13.3332C5.11446 13.3332 4.66675 12.8854 4.66675 12.3332C4.66675 11.7809 5.11446 11.3332 5.66675 11.3332C6.21903 11.3332 6.66675 11.7809 6.66675 12.3332ZM10.3334 4.6665C10.8857 4.6665 11.3334 4.21879 11.3334 3.6665C11.3334 3.11422 10.8857 2.6665 10.3334 2.6665C9.78115 2.6665 9.33342 3.11422 9.33342 3.6665C9.33342 4.21879 9.78115 4.6665 10.3334 4.6665ZM11.3334 7.99984C11.3334 8.5521 10.8857 8.99984 10.3334 8.99984C9.78115 8.99984 9.33342 8.5521 9.33342 7.99984C9.33342 7.44757 9.78115 6.99984 10.3334 6.99984C10.8857 6.99984 11.3334 7.44757 11.3334 7.99984ZM10.3334 13.3332C10.8857 13.3332 11.3334 12.8854 11.3334 12.3332C11.3334 11.7809 10.8857 11.3332 10.3334 11.3332C9.78115 11.3332 9.33342 11.7809 9.33342 12.3332C9.33342 12.8854 9.78115 13.3332 10.3334 13.3332Z",fill:"var(--black)"},null,-1)])])}const eie=ve(kZt,[["render",EZt]]),LZt={moving:"Moving"},_Zt={moving:"Перемещение"},AZt=ht({en:LZt,ru:_Zt}),RZt={class:"bootstrap-styles preview-row"},DZt={class:"bootstrap-styles rounded-2 position-relative fix-bar__control-hover drag-btn"},BZt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},NZt={class:"bootstrap-styles dragged-container text-color-selected"},IZt=re({__name:"DraggingMenu",props:{deps:{},mouseCoordinates:{},rowHeight:{},rowLeft:{}},setup(t){const e=t,n={moving:AZt({localeKey:e.deps.localeKey}).moving};return(o,r)=>(E(),R("div",RZt,[b("div",{class:"bootstrap-styles fix-bar d-flex flex-column p-14 bg-white rounded-2 shadow position-absolute z-index-2 dragged",style:Te({left:e.mouseCoordinates.x-100-e.rowLeft+"px",top:e.rowHeight/2-100+"px",width:"200px"})},[b("div",DZt,[b("i",BZt,[I(eie)]),b("div",NZt,W(n.moving),1)])],4)]))}}),MZt={},$Zt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function OZt(t,e){return E(),R("svg",$Zt,[...e[0]||(e[0]=[b("path",{d:"M4.66667 12.6667V8.66667H11.3333V12.6667H12.6667V5.21895L10.7811 3.33333H3.33333V12.6667H4.66667ZM2.66667 2H11.3333L14 4.66667V13.3333C14 13.7015 13.7015 14 13.3333 14H2.66667C2.29848 14 2 13.7015 2 13.3333V2.66667C2 2.29848 2.29848 2 2.66667 2ZM6 10V12.6667H10V10H6Z",fill:"var(--black)"},null,-1)])])}const PZt=ve(MZt,[["render",OZt]]),VZt={},WZt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function HZt(t,e){return E(),R("svg",WZt,[...e[0]||(e[0]=[b("path",{d:"M4.66653 4.00016V2.00016C4.66653 1.63198 4.96501 1.3335 5.3332 1.3335H13.3332C13.7014 1.3335 13.9999 1.63198 13.9999 2.00016V11.3335C13.9999 11.7017 13.7014 12.0002 13.3332 12.0002H11.3332V13.9996C11.3332 14.3681 11.0333 14.6668 10.662 14.6668H2.67111C2.30039 14.6668 2 14.3704 2 13.9996L2.00173 4.66741C2.0018 4.2989 2.30176 4.00016 2.67295 4.00016H4.66653ZM3.33495 5.3335L3.33346 13.3335H9.99987V5.3335H3.33495ZM5.99987 4.00016H11.3332V10.6668H12.6665V2.66683H5.99987V4.00016Z",fill:"var(--black)"},null,-1)])])}const zZt=ve(VZt,[["render",HZt]]),jZt={},KZt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function UZt(t,e){return E(),R("svg",KZt,[...e[0]||(e[0]=[b("path",{d:"M11.3333 6.00016L7.99992 9.3335L4.66659 6.00016",stroke:"var(--black)","stroke-width":"1.25","stroke-linecap":"round"},null,-1)])])}const qZt=ve(jZt,[["render",UZt]]),JZt={},GZt={class:"icon-hover-stroke d-flex align-items-center justify-content-center"};function YZt(t,e){return E(),R("i",GZt,[...e[0]||(e[0]=[b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[b("path",{d:"M11.3333 9.99984L7.99992 6.6665L4.66659 9.99984",stroke:"var(--black)","stroke-width":"1.25","stroke-linecap":"round"})],-1)])])}const ZZt=ve(JZt,[["render",YZt]]),XZt={draggingButtonTooltip:"Move",moveToTopButtonTooltip:"Move to top",moveToBottomButtonTooltip:"Move to bottom",copyButtonTooltip:"Duplicate",saveButtonTooltip:"Save to library",disabledSaveButtonTooltip:"Для сохранения создайте секцию библиотеки компонентов",removeButtonTooltip:"Delete",removeWindowTitle:"Delete component",removeConfirmMessage:"Are you sure you want to delete the component?",draggingMenu:{moving:"Moving"},dropHere:"Drop here"},QZt={draggingButtonTooltip:"Переместить",moveToTopButtonTooltip:"Переместить вверх",moveToBottomButtonTooltip:"Переместить вниз",copyButtonTooltip:"Дублировать",saveButtonTooltip:"Сохранить в библиотеку",disabledSaveButtonTooltip:"Для сохранения создайте секцию библиотеки компонентов",removeButtonTooltip:"Удалить",removeWindowTitle:"Удаление компонента",removeConfirmMessage:"Вы действительно хотите удалить компонент ?",draggingMenu:{moving:"Перемещение"},dropHere:"Бросьте сюда"},Ad=ht({en:XZt,ru:QZt}),eXt={class:"bootstrap-styles fix-bar d-flex flex-column p-14 bg-white rounded-2 shadow position-absolute"},tXt={class:"bootstrap-styles p-1 rounded-2 position-relative fix-bar__control-hover drag-btn"},nXt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},oXt={class:"bootstrap-styles fix-bar__control p-14 rounded-2 shadow bg-white position-absolute"},rXt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},iXt={class:"bootstrap-styles icon-hover-stroke d-flex align-items-center justify-content-center"},sXt={class:"bootstrap-styles icon-hover-stroke d-flex align-items-center justify-content-center"},aXt={class:"bootstrap-styles dragged-container text-color-selected"},lXt={class:"bootstrap-styles dragged-arrow position-absolute"},cXt={class:"bootstrap-styles ms-14 position-absolute px-5 py-1 text-white fw-bold bg-selected rounded-3"},uXt={class:"bootstrap-styles dragged-hidden"},dXt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},hXt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},pXt={class:"bootstrap-styles"},mXt=re({__name:"MovementMenu",props:{deps:{},isComponentLibraryEmpty:{type:Boolean}},emits:["onMoveUpComponentBtnClicked","onMoveDownComponentBtnClicked","onRemoveComponentBtnClicked","onDuplicateComponentBtnClicked","onDragPadControlMousedown","showSaveComponentModalWindowBtnClicked"],setup(t,{emit:e}){const n=t,o={draggingButtonTooltip:Ad({localeKey:n.deps.localeKey}).draggingButtonTooltip,moveToTopButtonTooltip:Ad({localeKey:n.deps.localeKey}).moveToTopButtonTooltip,moveToBottomButtonTooltip:Ad({localeKey:n.deps.localeKey}).moveToBottomButtonTooltip,copyButtonTooltip:Ad({localeKey:n.deps.localeKey}).copyButtonTooltip,saveButtonTooltip:Ad({localeKey:n.deps.localeKey}).saveButtonTooltip,disabledSaveButtonTooltip:Ad({localeKey:n.deps.localeKey}).disabledSaveButtonTooltip,removeButtonTooltip:Ad({localeKey:n.deps.localeKey}).removeButtonTooltip,removeWindowTitle:Ad({localeKey:n.deps.localeKey}).removeWindowTitle,removeConfirmMessage:Ad({localeKey:n.deps.localeKey}).removeConfirmMessage,draggingMenu:{moving:Ad({localeKey:n.deps.localeKey}).draggingMenu.moving},dropHere:Ad({localeKey:n.deps.localeKey}).dropHere},r=Le({isRemoveComponentWindowShown:!1}),i=e;return(s,a)=>(E(),R("div",eXt,[b("div",tXt,[b("i",nXt,[I(eie)]),b("div",oXt,[Ke((E(),R("button",{class:"bootstrap-styles drag-handle p-1 rounded-2",onMousedown:a[0]||(a[0]=l=>{i("onDragPadControlMousedown",l)})},[b("i",rXt,[I(eie)])],32)),[[N(Xn),{title:o.draggingButtonTooltip,placement:"left"}]]),Ke((E(),R("button",{class:"bootstrap-styles p-1 rounded-2",onClick:a[1]||(a[1]=l=>i("onMoveUpComponentBtnClicked"))},[b("i",iXt,[I(ZZt)])])),[[N(Xn),{title:o.moveToTopButtonTooltip,placement:"top"}]]),Ke((E(),R("button",{class:"bootstrap-styles p-1 rounded-2",onClick:a[2]||(a[2]=l=>i("onMoveDownComponentBtnClicked"))},[b("i",sXt,[I(qZt)])])),[[N(Xn),{title:o.moveToBottomButtonTooltip,placement:"top"}]])]),b("div",aXt,W(o.draggingMenu.moving),1),b("div",lXt,[b("span",cXt,W(o.dropHere),1)])]),b("div",uXt,[Ke((E(),R("button",{class:"bootstrap-styles p-1 rounded-2",onClick:a[3]||(a[3]=l=>i("onDuplicateComponentBtnClicked"))},[b("i",dXt,[I(zZt)])])),[[N(Xn),{title:o.copyButtonTooltip,placement:"left"}]]),b("div",null,[Ke((E(),R("button",{class:G([{disabled:n.isComponentLibraryEmpty},"bootstrap-styles p-1 rounded-2 save-component-button"]),onClick:a[4]||(a[4]=l=>!n.isComponentLibraryEmpty&&i("showSaveComponentModalWindowBtnClicked"))},[b("i",hXt,[I(PZt)])],2)),[[N(Xn),{title:n.isComponentLibraryEmpty?o.disabledSaveButtonTooltip:o.saveButtonTooltip,placement:"left"}]])]),Ke((E(),R("button",{class:"bootstrap-styles basket p-1 rounded-2",onClick:a[5]||(a[5]=l=>r.isRemoveComponentWindowShown=!0)},[b("i",pXt,[I(u$)])])),[[N(Xn),{title:o.removeButtonTooltip,placement:"left"}]]),(E(),Q(yo,{to:"body",defer:""},[r.isRemoveComponentWindowShown?(E(),Q(Ch,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:o.removeWindowTitle,onCancel:a[6]||(a[6]=l=>r.isRemoveComponentWindowShown=!1),onConfirmed:a[7]||(a[7]=()=>{r.isRemoveComponentWindowShown=!1,i("onRemoveComponentBtnClicked")})},{"body-content":Bt(()=>[no(W(o.removeConfirmMessage),1)]),_:1},8,["deps","headerText"])):oe("",!0)]))])]))}}),fXt=ve(mXt,[["__scopeId","data-v-b9de7988"]]),gXt={},yXt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function CXt(t,e){return E(),R("svg",yXt,[...e[0]||(e[0]=[b("path",{d:"M8.00065 14.6668C4.31875 14.6668 1.33398 11.682 1.33398 8.00016C1.33398 4.31826 4.31875 1.3335 8.00065 1.3335C11.6825 1.3335 14.6673 4.31826 14.6673 8.00016C14.6673 11.682 11.6825 14.6668 8.00065 14.6668ZM8.00065 13.3335C10.9462 13.3335 13.334 10.9457 13.334 8.00016C13.334 5.05464 10.9462 2.66683 8.00065 2.66683C5.05513 2.66683 2.66732 5.05464 2.66732 8.00016C2.66732 10.9457 5.05513 13.3335 8.00065 13.3335ZM7.33398 4.66683H8.66732V6.00016H7.33398V4.66683ZM7.33398 7.3335H8.66732V11.3335H7.33398V7.3335Z",fill:"var(--blue-400)"},null,-1)])])}const bXt=ve(gXt,[["render",CXt]]),vXt=(t,e,n,o)=>{if(t==null)return L0.None;const r=e(t);if(r==null)return L0.None;const i=n(r);if(i==null)return L0.None;const s=o(i);return s==null?L0.None:L0.Some([t,r,i,s])},wXt=t=>hs(t),SXt=t=>hs(t),V9e=t=>hs(t),_v=t=>wXt(t.listExpression).Match({ContextValueExpression:()=>!1,ChunkExpression:e=>_v({listExpression:e.ListExpression}),LimitExpression:e=>_v({listExpression:e.ListExpression}),DataSource:()=>!0,ConcatListExpressions:e=>e.ListExpressions.some(n=>_v({listExpression:n}))}),t0=t=>SXt(t.numberExpression).Match({ContextValueExpression:()=>!1,ContextValueExpressionWithFallback:()=>!1,ConstValueExpression:()=>!1,ListLengthExpression:e=>_v({listExpression:e.ListExpression}),DataSource:()=>!0,RoundExpression:()=>!1,TruncateExpression:()=>!1}),fl=t=>x9e(t.stringExpression).Match({ContextValueExpression:()=>!1,ContextValueExpressionWithFallback:()=>!1,ConstValueExpression:()=>!1,NumberToStringExpression:e=>t0({numberExpression:e.NumberExpression}),TruncateValueExpression:e=>fl({stringExpression:e.StringExpression}),ConcatStringExpressions:e=>e.StringExpressions.every(n=>fl({stringExpression:n})),DataSource:()=>!0,UnsubscribeUrlExpression:()=>!1,RecipientEmailAddressExpression:()=>!1}),W9e=t=>Object.entries(t.recordExpression).every(([e,n])=>xXt({expression:n})),xXt=t=>V9e(t.expression).Match({NumberExpression:e=>t0({numberExpression:e}),StringExpression:e=>fl({stringExpression:e}),ListExpression:e=>_v({listExpression:e}),RecordBuilderExpression:e=>W9e({recordExpression:e})}),TXt=t=>hs(t),kXt=t=>hs(t),FXt=t=>hs(t),EXt=t=>hs(t),LXt=t=>FXt(t).Match({Contains:e=>fl({stringExpression:e.Left})||fl({stringExpression:e.Contains}),Equal:e=>fl({stringExpression:e.Left})||fl({stringExpression:e.Right})}),_Xt=t=>EXt(t).Match({Equal:e=>t0({numberExpression:e.Left})||t0({numberExpression:e.Right}),GreaterThan:e=>t0({numberExpression:e.Left})||t0({numberExpression:e.Right}),LessThan:e=>t0({numberExpression:e.Left})||t0({numberExpression:e.Right})}),AXt=t=>kXt(t).Match({StringPredicate:e=>LXt(e),NumberPredicate:e=>_Xt(e)}),D2=t=>TXt(t).Match({AndExpression:e=>e.Expressions.every(D2),OrExpression:e=>e.Expressions.some(D2),NotExpression:e=>D2(e.Expression),Predicate:e=>AXt(e)}),RXt=t=>hs(t),DXt=t=>hs(t),BXt=t=>hs(t),NXt=t=>hs(t),IXt=t=>BXt(t.iteratedColumnVariants).Match({IteratedColumnN21:e=>MXt({iteratedColumnN21:e}),IteratedColumnN22:e=>$Xt({iteratedColumnN22:e})}),MXt=t=>t.iteratedColumnN21.Elements.some(e=>Ep(e)),$Xt=t=>t.iteratedColumnN22.Elements.some(e=>Ep(e)),OXt=t=>t.iteratedColumn.Elements.some(e=>Ep(e)),H9e=t=>t.iteratedColumnBodyRow.IteratedColumn&&OXt({iteratedColumn:t.iteratedColumnBodyRow.IteratedColumn})||t.iteratedColumnBodyRow.IteratedColumnVariant&&IXt({iteratedColumnVariants:t.iteratedColumnBodyRow.IteratedColumnVariant})||_v({listExpression:t.iteratedColumnBodyRow.DataSource}),PXt=t=>NXt(t.iteratedBodyRowVariants).Match({IteratedColumnBodyRow:e=>H9e({iteratedColumnBodyRow:e}),MultipleColumnBodyRow:e=>z9e({multipleColumnBodyRow:e})}),VXt=t=>_v({listExpression:t.iteratedBodyRow.DataSource})||PXt({iteratedBodyRowVariants:t.iteratedBodyRow.BodyRow}),WXt=t=>fl({stringExpression:t.HRef})||fl({stringExpression:t.Text}),HXt=t=>fl({stringExpression:t.Src})||fl({stringExpression:t.HRef})||fl({stringExpression:t.Alt}),zXt=t=>fl({stringExpression:t.Text})||t.HRef!==void 0&&fl({stringExpression:t.HRef}),jXt=t=>t.True.some(e=>Ep(e))||t.False.some(e=>Ep(e))||D2(t.Predicate),Ep=t=>RXt(t).Match({Button:e=>WXt(e),Image:e=>HXt(e),SpanText:e=>zXt(e),UnsubscribeLink:()=>!1,If:e=>jXt(e),Spacer:()=>!1,HeightContainer:e=>e.Elements.some(n=>Ep(n)),OneLineList:e=>e.Elements.some(n=>Ep(n)),RichText:()=>!1,BackgroundImage:e=>[...e.TopElementList.List,...e.BottomElementList.List].some(n=>Ep(n))}),z9e=t=>t.multipleColumnBodyRow.Columns.some(e=>UXt({multipleColumn:e})),KXt=t=>t.simpleBodyRow.Elements.some(e=>Ep(e)),UXt=t=>t.multipleColumn.Elements.some(e=>Ep(e)),qXt=t=>DXt(t.emailComponentBodyRow).Match({IteratedBodyRow:e=>VXt({iteratedBodyRow:e}),IteratedColumnBodyRow:e=>H9e({iteratedColumnBodyRow:e}),MultipleColumnBodyRow:e=>z9e({multipleColumnBodyRow:e}),SimpleBodyRow:e=>KXt({simpleBodyRow:e})}),JXt=t=>t?D2(t):!1,GXt=t=>t.some(e=>qXt({emailComponentBodyRow:e})),YXt=t=>vXt(t.listExpression,e=>e.ChunkExpression,e=>e.ListExpression.LimitExpression,e=>e.ListExpression.DataSource).match({none:()=>!1,some:([e,n,o,r])=>t.canProductShelfDataSourceBeConverted(r)}),ZXt=t=>t.component.ContextBuilderExpression===void 0||!W9e({recordExpression:t.component.ContextBuilderExpression})?"yes":t.component.ContextBuilderExpression&&t.component.ContextBuilderExpression.ProductShelfDataSource!==void 0&&V9e(t.component.ContextBuilderExpression.ProductShelfDataSource).Match({ListExpression:e=>YXt({listExpression:e,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted}),NumberExpression:()=>!1,StringExpression:()=>!1,RecordBuilderExpression:()=>!1})?"with_convert":(JXt(t.component.IfExpression)||GXt(t.component.BodyRowList),"no"),XXt={title:"Save component",nameLabel:"Name",namePlaceholder:"Component name...",groupLabel:"Group",cancelButton:"Cancel",applyButton:"Save"},QXt={title:"Сохранение компонента",nameLabel:"Название",namePlaceholder:"Название компонента...",groupLabel:"Группа",cancelButton:"Отмена",applyButton:"Сохранить"},Ax=ht({en:XXt,ru:QXt}),eQt={class:"bootstrap-styles fw-bold mb-5"},tQt={class:"bootstrap-styles col-12 mb-13"},nQt={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},oQt=["placeholder","disabled"],rQt={class:"bootstrap-styles fw-bold mb-5"},iQt={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},sQt=["disabled"],aQt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},lQt={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuSectionSelect"},cQt=["onClick"],uQt={class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer"},dQt={key:0,class:"bootstrap-styles mt-13 mb-1"},hQt={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-between align-items-start can-be-saved-info"},pQt={class:"bootstrap-styles me-3"},mQt=re({__name:"AddComponentLibrarySectionItemModalWindow",props:{deps:{},emailComponent:{}},emits:["cancel","onComponentAddedToLibrary"],setup(t,{emit:e}){const n=t,o={title:Ax({localeKey:n.deps.localeKey}).title,nameLabel:Ax({localeKey:n.deps.localeKey}).nameLabel,namePlaceholder:Ax({localeKey:n.deps.localeKey}).namePlaceholder,groupLabel:Ax({localeKey:n.deps.localeKey}).groupLabel,cancelButton:Ax({localeKey:n.deps.localeKey}).cancelButton,applyButton:Ax({localeKey:n.deps.localeKey}).applyButton},r=Le({componentLibrarySectionList:[],canBeSavedAsGeneralComponent:ZXt({component:n.emailComponent,canProductShelfDataSourceBeConverted:n.deps.canProductShelfDataSourceBeConverted}),sectionItemName:"",selectedSectionId:"",selectedSectionName:"",isLoadedComponentLibrarySectionList:!0,isLoaded:!0});n.deps.getComponentLibrarySections().then(l=>{r.componentLibrarySectionList=l;const c=l[0];c&&(r.selectedSectionId=c.sectionId,r.selectedSectionName=c.sectionName),r.isLoadedComponentLibrarySectionList=!1});const i=async()=>{r.sectionItemName.length&&(r.isLoaded=!1,await n.deps.addComponentLibrarySectionItem({sectionId:r.selectedSectionId,sectionItemName:r.sectionItemName,component:n.emailComponent}),a("onComponentAddedToLibrary"))},s=()=>{a("cancel")},a=e;return(l,c)=>(E(),Q(bd,{class:"save-theme-modal-window",headerText:o.title,onClose:c[3]||(c[3]=()=>s())},{body:Bt(()=>[I(MU,{class:G(["bootstrap-styles position-absolute top-50 start-50",{invisible:!r.isLoadedComponentLibrarySectionList}])},null,8,["class"]),b("div",{class:G(["bootstrap-styles px-11 py-7 text-start",{invisible:r.isLoadedComponentLibrarySectionList}])},[b("label",eQt,W(o.nameLabel),1),b("div",tQt,[b("div",nQt,[Ke(b("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.sectionItemName=u),type:"text",class:"bootstrap-styles w-100",placeholder:o.namePlaceholder,disabled:!r.isLoaded},null,8,oQt),[[Ea,r.sectionItemName],[N(Dg),r.isLoaded]])])]),b("div",null,[b("label",rQt,W(o.groupLabel),1),b("div",iQt,[Ke((E(),R("button",{id:"dropdownMenuSectionSelect",type:"button",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3","data-bs-toggle":"dropdown","aria-expanded":"false",disabled:!r.isLoaded},[b("span",null,W(r.selectedSectionName),1),b("i",aQt,[I(Si)])],8,sQt)),[[N(ah)]]),b("ul",lQt,[(E(!0),R(Se,null,At(r.componentLibrarySectionList,u=>(E(),R("li",{key:u.sectionName,class:"bootstrap-styles dropdown-item p-0",onClick:()=>{r.selectedSectionName=u.sectionName,r.selectedSectionId=u.sectionId}},[b("span",uQt,W(u.sectionName),1)],8,cQt))),128))])])]),r.canBeSavedAsGeneralComponent==="with_convert"?(E(),R("div",dQt,[b("div",hQt,[b("div",pQt,[b("i",null,[I(bXt)])]),c[4]||(c[4]=b("div",null,[b("div",{class:"bootstrap-styles mb-5"},[no(" У этого компонента выбран алгоритм "),b("strong",null,"«Сопутствущие товары к товарам»"),no(", поэтому он не будет доступен в некоторых сценариях. ")]),b("div",null,[no(" Чтобы сделать компонент универсальным, выберите алгоритм "),b("strong",null,"«Популярные товары»"),no(". ")])],-1))])])):oe("",!0)],2)]),"footer-actions":Bt(()=>[b("button",{class:G([{button__locked:!r.isLoaded},"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected"]),onClick:c[1]||(c[1]=Nt(u=>s(),["stop"]))},W(o.cancelButton),3),b("button",{class:"modal-footer__button bootstrap-styles position-relative d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white cursor-pointer bg-color-selected button__hover-blue-400",onClick:c[2]||(c[2]=Nt(u=>i(),["stop"]))},[b("span",{class:G({"bootstrap-styles invisible":!r.isLoaded})},W(o.applyButton),3),I(GC,{class:G(["bootstrap-styles position-absolute",{invisible:r.isLoaded}])},null,8,["class"])])]),_:1},8,["headerText"]))}}),fQt=ve(mQt,[["__scopeId","data-v-e8863458"]]),gQt={class:"row"},yQt={align:"center"},CQt={key:0,class:"preview-row"},bQt=re({__name:"EmailComponentWrapper",props:{deps:{},theme:{},emailComponent:{},isSelected:{type:Boolean},path:{},selectedElementPath:{},isDragging:{type:Boolean},isComponentLibraryEmpty:{type:Boolean}},emits:["click","onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onMoveUpComponentBtnClicked","onMoveDownComponentBtnClicked","onRemoveComponentBtnClicked","onDuplicateComponentBtnClicked","onDragPadControlMousedown","onColumnWidthAdjusted","onComponentAddedToLibrary","emailComponentUpdated","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){Cd(a=>({v7681adbc:i.value}));const n=t,o=Le({isSaveComponentWindowShown:!1,dataSourceModalIsShown:!1,mouseCoordinates:{x:0},rowHeight:0,rowLeft:0}),r=e,i=ne(()=>n.theme.BodyWidth+"px"),s=n.deps.emailComponentSettingsModifierPlugin;return(a,l)=>(E(),R("div",{onClick:l[15]||(l[15]=c=>r("click",c))},[b("div",gQt,[b("table",{class:G(["select-row",{selected:n.isSelected}]),style:{width:"100%","border-spacing":"0","border-collapse":"collapse"}},[b("tbody",null,[b("tr",null,[b("td",null,[b("table",{id:"emailComponentWrapper",class:G(["rrRow",{"dragging-row":n.isDragging}]),style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"}},[b("tbody",null,[b("tr",null,[b("td",yQt,[n.isSelected?(E(),Q(fXt,{key:0,deps:n.deps.movementMenuDeps,isComponentLibraryEmpty:n.isComponentLibraryEmpty,onShowSaveComponentModalWindowBtnClicked:l[0]||(l[0]=c=>{o.isSaveComponentWindowShown=!0}),onOnMoveUpComponentBtnClicked:l[1]||(l[1]=c=>r("onMoveUpComponentBtnClicked")),onOnMoveDownComponentBtnClicked:l[2]||(l[2]=c=>r("onMoveDownComponentBtnClicked")),onOnRemoveComponentBtnClicked:l[3]||(l[3]=c=>r("onRemoveComponentBtnClicked")),onOnDuplicateComponentBtnClicked:l[4]||(l[4]=c=>r("onDuplicateComponentBtnClicked")),onOnDragPadControlMousedown:l[5]||(l[5]=c=>{r("onDragPadControlMousedown"),o.mouseCoordinates.x=c.clientX,o.rowHeight=c.target.closest(".rrRow").clientHeight,o.rowLeft=c.target.closest(".row").getBoundingClientRect().left})},null,8,["deps","isComponentLibraryEmpty"])):oe("",!0),I(rI,{deps:n.deps.emailComponentDeps,emailComponent:n.emailComponent,path:n.path,selectedElementPath:n.selectedElementPath,theme:n.theme,onOnElementClicked:l[6]||(l[6]=c=>r("onElementClicked",c)),onOnImageOriginalSizeAdjusted:l[7]||(l[7]=c=>r("onImageOriginalSizeAdjusted",c)),onOnImageSizeAdjusted:l[8]||(l[8]=c=>r("onImageSizeAdjusted",c)),onOnColumnWidthAdjusted:l[9]||(l[9]=c=>r("onColumnWidthAdjusted",c)),onOnElementUpdatedEvent:l[10]||(l[10]=c=>r("onElementUpdatedEvent",c)),onOnElementRemoved:l[11]||(l[11]=c=>r("onElementRemoved",c))},null,8,["deps","emailComponent","path","selectedElementPath","theme"]),I(N(s),{modelValue:n.emailComponent,"onUpdate:modelValue":l[12]||(l[12]=c=>{r("emailComponentUpdated",{emailComponent:c})})},null,8,["modelValue"])])])])],2)])])])],2)]),n.isDragging?(E(),R("div",CQt,[I(IZt,{deps:n.deps.draggingMenuDeps,mouseCoordinates:o.mouseCoordinates,rowHeight:o.rowHeight,rowLeft:o.rowLeft},null,8,["deps","mouseCoordinates","rowHeight","rowLeft"])])):oe("",!0),(E(),Q(yo,{to:"body",defer:""},[o.isSaveComponentWindowShown?(E(),Q(fQt,{key:0,deps:n.deps.addComponentLibrarySectionItemModalWindowDeps,emailComponent:n.emailComponent,onCancel:l[13]||(l[13]=c=>o.isSaveComponentWindowShown=!1),onOnComponentAddedToLibrary:l[14]||(l[14]=c=>{o.isSaveComponentWindowShown=!1,r("onComponentAddedToLibrary")})},null,8,["deps","emailComponent"])):oe("",!0)]))]))}}),vQt=ve(bQt,[["__scopeId","data-v-e12b5f52"]]),wQt={dropHere:"Drop here"},SQt={dropHere:"Бросьте сюда"},xQt=ht({en:wQt,ru:SQt}),TQt={class:"email-template-table",width:"100%",cellpadding:"0",cellspacing:"0",style:{width:"100%","text-align":"center","border-spacing":"0","border-collapse":"collapse"}},kQt={valign:"top",align:"center",class:"table-wrapper",style:{padding:"0","line-height":"normal",width:"100%","table-layout":"fixed","-webkit-text-size-adjust":"100%","-ms-text-size-adjust":"100%"}},FQt={style:{"font-size":"0","line-height":"0",color:"var(--white)",height:"0","max-height":"0px","max-width":"0px",opacity:"0",overflow:"hidden"}},EQt={class:"emailTemplate-border-top"},LQt={class:"emailTemplate-border-bottom"},_Qt=re({__name:"EmailTemplate",props:{deps:{},theme:{},preheader:{},draggableEmailComponents:{},selectedComponentIndex:{},selectedElementPath:{},deviceMode:{},isComponentLibraryEmpty:{type:Boolean}},emits:["onElementClicked","onEmailComponentClicked","onRemoveComponentBtnClicked","onDuplicateComponentBtnClicked","onColumnWidthAdjusted","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onComponentAddedToLibrary","emailComponentUpdated","onEmailComponentMoved","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o={dropHere:xQt({localeKey:n.deps.localeKey}).dropHere},r=Le({dragging:!1}),i=ne(()=>({group:{name:"rowComponents"},animation:200,disabled:!1,ghostClass:"ghost",scrollSensitivity:200,handle:".drag-handle",forceFallback:!0})),s=(u,d)=>{const h=window.getSelection()?.toString().trim();if(h&&h.length>0){u.stopPropagation();return}c("onEmailComponentClicked",{index:d})},a=u=>{u>0&&c("onEmailComponentMoved",{newIndex:u-1,oldIndex:u})},l=u=>{u<n.draggableEmailComponents.length-1&&c("onEmailComponentMoved",{newIndex:u+1,oldIndex:u})},c=e;return(u,d)=>(E(),R("div",{style:Te([{"padding-left":"0px","padding-right":"0px"},{backgroundColor:n.theme.Colors.EmailBackgroundColor,fontFamily:n.theme.FontFamily}]),onMousedown:d[10]||(d[10]=Nt(()=>{},["stop"]))},[b("table",TQt,[b("tbody",null,[b("tr",null,[b("td",kQt,[b("div",{class:G(["webkit",{"dragged-transform":r.dragging,"emailTemplate--desktop":N($pe)(n.deviceMode),"emailTemplate--tablet":N(O9e)(n.deviceMode),"emailTemplate--mobile":N(P9e)(n.deviceMode)}]),style:{"min-width":"310px",margin:"0 auto"}},[b("div",FQt,[b("span",null,W(n.preheader),1)]),b("div",EQt,[b("table",{style:Te([[{maxWidth:n.theme.BodyWidth+"px",width:"100%",backgroundColor:n.theme.Colors.BodyColor,borderTopLeftRadius:n.theme.BorderRadius.TopLeft+"px",borderTopRightRadius:n.theme.BorderRadius.TopRight+"px"}],{"border-spacing":"0"}])},[b("tbody",null,[b("tr",null,[b("td",{style:Te([{paddingTop:n.theme.BodyPaddings.Top+"px"},{"font-size":"0","line-height":"0"}])}," ",4)])])],4)]),I(N(tI),go({class:"list-group emailTemplate _emailTemplateDropArea"},{...i.value},{onStart:d[8]||(d[8]=h=>r.dragging=!0),onEnd:d[9]||(d[9]=h=>{r.dragging=!1,c("onEmailComponentMoved",{newIndex:h.newIndex,oldIndex:h.oldIndex})})}),{default:Bt(()=>[(E(!0),R(Se,null,At(n.draggableEmailComponents.concat([]),(h,p)=>(E(),Q(vQt,go({key:h._id,ref_for:!0},{"data-drop-here-message":o.dropHere},{deps:n.deps.emailComponentWrapperDeps,theme:n.theme,emailComponent:h.Component,isSelected:t.selectedComponentIndex==p,isDragging:r.dragging,path:[p,"Component"],selectedElementPath:n.selectedElementPath,isComponentLibraryEmpty:n.isComponentLibraryEmpty,onClick:Nt(m=>s(m,p),["stop"]),onOnElementClicked:d[0]||(d[0]=m=>c("onElementClicked",m)),onOnComponentAddedToLibrary:d[1]||(d[1]=()=>c("onComponentAddedToLibrary")),onOnRemoveComponentBtnClicked:()=>c("onRemoveComponentBtnClicked",{componentIndex:p}),onOnDuplicateComponentBtnClicked:()=>c("onDuplicateComponentBtnClicked",{componentIndex:p}),onOnMoveUpComponentBtnClicked:()=>a(p),onOnMoveDownComponentBtnClicked:()=>l(p),onOnDragPadControlMousedown:d[2]||(d[2]=m=>r.dragging=!0),onOnImageOriginalSizeAdjusted:d[3]||(d[3]=m=>c("onImageOriginalSizeAdjusted",m)),onOnImageSizeAdjusted:d[4]||(d[4]=m=>c("onImageSizeAdjusted",m)),onOnColumnWidthAdjusted:d[5]||(d[5]=m=>c("onColumnWidthAdjusted",m)),onEmailComponentUpdated:m=>c("emailComponentUpdated",{index:p,emailComponent:m.emailComponent}),onOnElementUpdatedEvent:d[6]||(d[6]=m=>c("onElementUpdatedEvent",m)),onOnElementRemoved:d[7]||(d[7]=m=>c("onElementRemoved",m))}),null,16,["deps","theme","emailComponent","isSelected","isDragging","path","selectedElementPath","isComponentLibraryEmpty","onClick","onOnRemoveComponentBtnClicked","onOnDuplicateComponentBtnClicked","onOnMoveUpComponentBtnClicked","onOnMoveDownComponentBtnClicked","onEmailComponentUpdated"]))),128))]),_:1},16),b("div",LQt,[b("table",{style:Te([[{maxWidth:n.theme.BodyWidth+"px",width:"100%",backgroundColor:n.theme.Colors.BodyColor,borderBottomLeftRadius:n.theme.BorderRadius.BottomLeft+"px",borderBottomRightRadius:n.theme.BorderRadius.BottomRight+"px"}],{"border-spacing":"0"}])},[b("tbody",null,[b("tr",null,[b("td",{style:Te([{paddingBottom:n.theme.BodyPaddings.Bottom+"px"},{"font-size":"0","line-height":"0"}])}," ",4)])])],4)])],2)])])])])],36))}}),AQt=ve(_Qt,[["__scopeId","data-v-4fad58ec"]]),RQt=(t,e)=>{let n=t;return e.forEach(o=>{n=n[o]}),n},Jw=(t,e,n)=>{let o=t;e.forEach((r,i,s)=>{i===s.length-1&&(o[r]=n),o=o[r]})},Kke=(t,e)=>{let n=t;e.forEach((o,r,i)=>{if(r===i.length-1){if(Array.isArray(n)){n.splice(o,1);return}if(typeof n=="object"){delete n[o];return}}n=n[o]})},Yd=t=>!!t.ConstValueExpression,DQt={customColorLabel:"Other color",colorLabels:{none:"None",emailBackgroundColor:"Email background",bodyColor:"Email body",primaryColor:"Primary color",secondaryColor:"Secondary color",primaryTextColor:"Primary text",secondaryTextColor:"Secondary text",cardBackgroundColor:"Product card color",buttonTextColor:"Buttons",titleColor:"Title",headingColor:"Heading",subHeadingColor:"Subheading",largeTextColor:"Large text",normalTextColor:"Text",descriptionTextColor:"Description",linkColor:"Link",custom:"Custom"}},BQt={customColorLabel:"Другой цвет",colorLabels:{none:"Нет",emailBackgroundColor:"Фон письма",bodyColor:"Тело письма",primaryColor:"Основной цвет",secondaryColor:"Вторичный цвет",primaryTextColor:"Текст на основном цвете",secondaryTextColor:"Текст на вторичном цвете",cardBackgroundColor:"Цвет карточек товара",buttonTextColor:"Кнопки",titleColor:"Большой заголовок",headingColor:"Заголовок",subHeadingColor:"Подзаголовок",largeTextColor:"Большой текст",normalTextColor:"Текст",descriptionTextColor:"Описание",linkColor:"Ссылка",custom:"Пользовательский"}},si=ht({en:DQt,ru:BQt}),NQt={class:"bootstrap-styles row gx-2"},IQt={id:"dropdownMenuButtonColorList",class:"bootstrap-styles dropdown border rounded-2 bg-color-input","data-bs-toggle":"dropdown","aria-expanded":"false"},MQt={class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-14 px-14 pe-3 overflow-hidden",type:"button"},$Qt={class:"bootstrap-styles d-flex align-items-center justify-content-start position-relative"},OQt={class:"bootstrap-styles color-editor__text-eclipse overflow-hidden position-relative"},PQt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},VQt={class:"bootstrap-styles dropdown-menu rounded-2","aria-labelledby":"dropdownMenuButtonColorList"},WQt={key:0,class:"bootstrap-styles col-6"},Ope=re({__name:"ColorEditor",props:{deps:{},color:{},themeColors:{}},emits:["update:changeColor"],setup(t,{emit:e}){const n=t,o=e,r=l=>{o("update:changeColor",l)},i={customColorLabel:si({localeKey:n.deps.localeKey}).customColorLabel,colorLabels:{none:si({localeKey:n.deps.localeKey}).colorLabels.none,emailBackgroundColor:si({localeKey:n.deps.localeKey}).colorLabels.emailBackgroundColor,bodyColor:si({localeKey:n.deps.localeKey}).colorLabels.bodyColor,primaryColor:si({localeKey:n.deps.localeKey}).colorLabels.primaryColor,secondaryColor:si({localeKey:n.deps.localeKey}).colorLabels.secondaryColor,primaryTextColor:si({localeKey:n.deps.localeKey}).colorLabels.primaryTextColor,secondaryTextColor:si({localeKey:n.deps.localeKey}).colorLabels.secondaryTextColor,cardBackgroundColor:si({localeKey:n.deps.localeKey}).colorLabels.cardBackgroundColor,buttonTextColor:si({localeKey:n.deps.localeKey}).colorLabels.buttonTextColor,titleColor:si({localeKey:n.deps.localeKey}).colorLabels.titleColor,headingColor:si({localeKey:n.deps.localeKey}).colorLabels.headingColor,subHeadingColor:si({localeKey:n.deps.localeKey}).colorLabels.subHeadingColor,largeTextColor:si({localeKey:n.deps.localeKey}).colorLabels.largeTextColor,normalTextColor:si({localeKey:n.deps.localeKey}).colorLabels.normalTextColor,descriptionTextColor:si({localeKey:n.deps.localeKey}).colorLabels.descriptionTextColor,linkColor:si({localeKey:n.deps.localeKey}).colorLabels.linkColor,custom:si({localeKey:n.deps.localeKey}).colorLabels.custom}},s={None:i.colorLabels.none,EmailBackgroundColor:i.colorLabels.emailBackgroundColor,BodyColor:i.colorLabels.bodyColor,PrimaryColor:i.colorLabels.primaryColor,SecondaryColor:i.colorLabels.secondaryColor,PrimaryTextColor:i.colorLabels.primaryTextColor,SecondaryTextColor:i.colorLabels.secondaryTextColor,CardBackgroundColor:i.colorLabels.cardBackgroundColor,ButtonTextColor:i.colorLabels.buttonTextColor,TitleColor:i.colorLabels.titleColor,HeadingColor:i.colorLabels.headingColor,SubHeadingColor:i.colorLabels.subHeadingColor,LargeTextColor:i.colorLabels.largeTextColor,NormalTextColor:i.colorLabels.normalTextColor,DescriptionTextColor:i.colorLabels.descriptionTextColor,LinkColor:i.colorLabels.linkColor,Custom:i.colorLabels.custom},a=["EmailBackgroundColor","BodyColor","PrimaryColor","SecondaryColor","PrimaryTextColor","SecondaryTextColor","CardBackgroundColor","ButtonTextColor","TitleColor","HeadingColor","SubHeadingColor","LargeTextColor","NormalTextColor","DescriptionTextColor","LinkColor"];return(l,c)=>(E(),R("div",NQt,[b("div",{class:G([n.color.Discriminator=="Custom"?"bootstrap-styles col-6 font-style-color-editor-custom":"bootstrap-styles col-12 font-style-color-editor-theme"])},[b("div",IQt,[b("button",MQt,[b("span",$Qt,[b("i",{class:"bootstrap-styles input__color_selection d-block overflow-hidden me-1",style:Te([{border:"1px solid rgba(0, 0, 0, 0.10)"},{background:N(lc)({color:n.color,themeColors:n.themeColors})??"url(https://gallery.retailrocket.net/5df72bdc97a52507605e4cc1/transparentColor.png) no-repeat 50% 50%"}])},null,4),b("span",OQt,W(s[n.color.Discriminator]),1)]),b("i",PQt,[I(Si)])]),b("ul",VQt,[(E(),R(Se,null,At(a,u=>I(ug,{key:u,isActive:n.color.Discriminator===u,color:n.themeColors[u],label:s[u],onClick:d=>r({Discriminator:u,CustomValue:n.color.CustomValue})},null,8,["isActive","color","label","onClick"])),64)),I(ug,{isActive:n.color.Discriminator==="Custom",color:"linear-gradient(135deg, #3384FF 0%, #CA65FA 34.37%, #FA6565 61.98%, #FAEB65 100%)",label:i.customColorLabel,onClick:c[0]||(c[0]=u=>r({Discriminator:"Custom",CustomValue:n.color.CustomValue}))},null,8,["isActive","label"])])])],2),n.color.Discriminator==="Custom"?(E(),R("div",WQt,[I(Du,{color:n.color.CustomValue,"onUpdate:changeColor":c[1]||(c[1]=u=>r({Discriminator:"Custom",CustomValue:u}))},null,8,["color"])])):oe("",!0)]))}}),HQt={customColorLabel:"Other color",colorLabels:{emailBackgroundColor:"Email background",bodyColor:"Email body",primaryColor:"Primary color",secondaryColor:"Secondary color",primaryTextColor:"Primary text",secondaryTextColor:"Secondary text",cardBackgroundColor:"Product card color",buttonTextColor:"Buttons",titleColor:"Title",headingColor:"Heading",subHeadingColor:"Subheading",largeTextColor:"Large text",normalTextColor:"Text",descriptionTextColor:"Description",linkColor:"Link",custom:"Custom"}},zQt={customColorLabel:"Другой цвет",colorLabels:{emailBackgroundColor:"Фон письма",bodyColor:"Тело письма",primaryColor:"Основной цвет",secondaryColor:"Вторичный цвет",primaryTextColor:"Текст на основном цвете",secondaryTextColor:"Текст на вторичном цвете",cardBackgroundColor:"Цвет карточек товара",buttonTextColor:"Кнопки",titleColor:"Большой заголовок",headingColor:"Заголовок",subHeadingColor:"Подзаголовок",largeTextColor:"Большой текст",normalTextColor:"Текст",descriptionTextColor:"Описание",linkColor:"Ссылка",custom:"Пользовательский"}},Wi=ht({en:HQt,ru:zQt}),jQt={class:"bootstrap-styles col-12 font-style-color-editor-theme"},KQt={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},UQt={id:"dropdownMenuButtonColorList",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-14 px-14 pe-3 overflow-hidden",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},qQt={class:"bootstrap-styles d-flex align-items-center justify-content-start position-relative"},JQt={class:"bootstrap-styles color-editor__text-eclipse overflow-hidden position-relative"},GQt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},YQt={class:"bootstrap-styles dropdown-menu rounded-2","aria-labelledby":"dropdownMenuButtonColorList"},ZQt={key:0,class:"bootstrap-styles col-12 mt-2"},XQt=re({__name:"FontColorEditor",props:{deps:{},color:{},themeColors:{}},emits:["update:changeFontColor"],setup(t,{emit:e}){const n=t,o=e,r=l=>{o("update:changeFontColor",l)},i={customColorLabel:Wi({localeKey:n.deps.localeKey}).customColorLabel,colorLabels:{emailBackgroundColor:Wi({localeKey:n.deps.localeKey}).colorLabels.emailBackgroundColor,bodyColor:Wi({localeKey:n.deps.localeKey}).colorLabels.bodyColor,primaryColor:Wi({localeKey:n.deps.localeKey}).colorLabels.primaryColor,secondaryColor:Wi({localeKey:n.deps.localeKey}).colorLabels.secondaryColor,primaryTextColor:Wi({localeKey:n.deps.localeKey}).colorLabels.primaryTextColor,secondaryTextColor:Wi({localeKey:n.deps.localeKey}).colorLabels.secondaryTextColor,cardBackgroundColor:Wi({localeKey:n.deps.localeKey}).colorLabels.cardBackgroundColor,buttonTextColor:Wi({localeKey:n.deps.localeKey}).colorLabels.buttonTextColor,titleColor:Wi({localeKey:n.deps.localeKey}).colorLabels.titleColor,headingColor:Wi({localeKey:n.deps.localeKey}).colorLabels.headingColor,subHeadingColor:Wi({localeKey:n.deps.localeKey}).colorLabels.subHeadingColor,largeTextColor:Wi({localeKey:n.deps.localeKey}).colorLabels.largeTextColor,normalTextColor:Wi({localeKey:n.deps.localeKey}).colorLabels.normalTextColor,descriptionTextColor:Wi({localeKey:n.deps.localeKey}).colorLabels.descriptionTextColor,linkColor:Wi({localeKey:n.deps.localeKey}).colorLabels.linkColor,custom:Wi({localeKey:n.deps.localeKey}).colorLabels.custom}},s={EmailBackgroundColor:i.colorLabels.emailBackgroundColor,BodyColor:i.colorLabels.bodyColor,PrimaryColor:i.colorLabels.primaryColor,SecondaryColor:i.colorLabels.secondaryColor,PrimaryTextColor:i.colorLabels.primaryTextColor,SecondaryTextColor:i.colorLabels.secondaryTextColor,CardBackgroundColor:i.colorLabels.cardBackgroundColor,ButtonTextColor:i.colorLabels.buttonTextColor,TitleColor:i.colorLabels.titleColor,HeadingColor:i.colorLabels.headingColor,SubHeadingColor:i.colorLabels.subHeadingColor,LargeTextColor:i.colorLabels.largeTextColor,NormalTextColor:i.colorLabels.normalTextColor,DescriptionTextColor:i.colorLabels.descriptionTextColor,LinkColor:i.colorLabels.linkColor,Custom:i.colorLabels.custom},a=["EmailBackgroundColor","BodyColor","PrimaryColor","SecondaryColor","PrimaryTextColor","SecondaryTextColor","ButtonTextColor","TitleColor","HeadingColor","SubHeadingColor","LargeTextColor","NormalTextColor","DescriptionTextColor","LinkColor"];return(l,c)=>(E(),R(Se,null,[b("div",jQt,[b("div",KQt,[Ke((E(),R("button",UQt,[b("span",qQt,[b("i",{class:"bootstrap-styles input__color_selection d-block overflow-hidden me-1",style:Te([{border:"1px solid rgba(0, 0, 0, 0.10)"},{background:N(a$)({fontColor:n.color,themeColors:n.themeColors})}])},null,4),b("span",JQt,W(s[n.color.Discriminator]),1)]),b("i",GQt,[I(Si)])])),[[N(ah)]]),b("ul",YQt,[(E(),R(Se,null,At(a,u=>I(ug,{key:u,isActive:n.color.Discriminator===u,color:n.themeColors[u],label:s[u],onClick:d=>r({Discriminator:u,CustomValue:n.color.CustomValue})},null,8,["isActive","color","label","onClick"])),64)),I(ug,{isActive:n.color.Discriminator==="Custom",color:"linear-gradient(135deg, #3384FF 0%, #CA65FA 34.37%, #FA6565 61.98%, #FAEB65 100%)",label:i.customColorLabel,onClick:c[0]||(c[0]=u=>r({Discriminator:"Custom",CustomValue:n.color.CustomValue}))},null,8,["isActive","label"])])])]),n.color.Discriminator==="Custom"?(E(),R("div",ZQt,[I(Du,{color:n.color.CustomValue,"onUpdate:changeColor":c[1]||(c[1]=u=>r({Discriminator:"Custom",CustomValue:u}))},null,8,["color"])])):oe("",!0)],64))}}),QQt={textColorLabel:"Text color"},een={textColorLabel:"Цвет текста"},ten=ht({en:QQt,ru:een}),nen={class:"bootstrap-styles container-fluid mb-13"},oen={class:"bootstrap-styles row gx-2 mb-2"},ren={class:"bootstrap-styles col-12"},ien={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},sen={id:"dropdownMenuButtonFontFamily",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},aen={class:"bootstrap-styles d-flex justify-content-center align-items-center"},len={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuButtonFontFamily"},cen=["onClick"],uen={class:"bootstrap-styles row gx-2 mb-2"},den={class:"bootstrap-styles col-6"},hen={class:"bootstrap-styles col-6"},pen={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},men={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},fen={class:"bootstrap-styles row gx-2 mb-13"},gen={class:"bootstrap-styles col-3"},yen={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Cen={class:"bootstrap-styles col-3"},ben={class:"bootstrap-styles d-flex justify-content-center align-items-center"},ven={class:"bootstrap-styles col-3"},wen={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Sen={class:"bootstrap-styles col-3"},xen={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Ten={class:"bootstrap-styles fw-bold mb-5"},ken={class:"bootstrap-styles row gx-2"},Fen=re({__name:"CustomFontSettings",props:{deps:{},modelValue:{},themeFontFamily:{},themeColors:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o={textColorLabel:ten({localeKey:n.deps.localeKey}).textColorLabel},r=d=>{u("update:modelValue",{...n.modelValue,FontFamily:d})},i=d=>{u("update:modelValue",{...n.modelValue,FontSize:d})},s=d=>{u("update:modelValue",{...n.modelValue,LineHeight:d})},a=d=>{u("update:modelValue",{...n.modelValue,Decoration:d})},l=d=>{u("update:modelValue",{...n.modelValue,IsItalic:d})},c=d=>{u("update:modelValue",{...n.modelValue,IsBold:d})},u=e;return(d,h)=>(E(),R("div",nen,[b("div",oen,[b("div",ren,[b("div",ien,[b("button",sen,[b("span",null,W(n.modelValue.FontFamily?N(Sp)[n.modelValue.FontFamily]:N(Sp)[n.themeFontFamily]),1),b("i",aen,[I(Si)])]),b("ul",len,[(E(!0),R(Se,null,At(N(DU),p=>(E(),R("li",{key:p,class:G(["bootstrap-styles dropdown-item p-0",{active:n.modelValue.FontFamily===p}])},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",style:Te({fontFamily:N(Sp)[p]}),onClick:m=>r(p)},W(N(Sp)[p]),13,cen)],2))),128))])])])]),b("div",uen,[b("div",den,[I(M9e,{fontSize:n.modelValue.FontSize,"onUpdate:fontSizeChanged":i},null,8,["fontSize"])]),b("div",hen,[b("div",pen,[b("i",men,[I(Dpe)]),I(fr,{modelValue:n.modelValue.LineHeight,"onUpdate:modelValue":h[0]||(h[0]=p=>s(p))},null,8,["modelValue"])])])]),b("div",fen,[b("div",gen,[b("button",{class:G(["bootstrap-styles text-decoration__btn fw-bold border bg-color-input rounded-2 py-1 px-3 w-100",{active:n.modelValue.IsBold}]),onClick:h[1]||(h[1]=p=>c(!n.modelValue.IsBold))},[b("i",yen,[I(Bpe)])],2)]),b("div",Cen,[b("button",{class:G(["bootstrap-styles text-decoration__btn fw-bold border bg-color-input rounded-2 py-1 px-3 w-100",{active:n.modelValue.IsItalic}]),onClick:h[2]||(h[2]=p=>l(!n.modelValue.IsItalic))},[b("i",ben,[I(Mpe)])],2)]),b("div",ven,[b("button",{class:G(["bootstrap-styles text-decoration__btn fw-bold border bg-color-input rounded-2 py-1 px-3 w-100",{active:n.modelValue.Decoration==="LineThrough"}]),onClick:h[3]||(h[3]=p=>a(n.modelValue.Decoration==="LineThrough"?"None":"LineThrough"))},[b("i",wen,[I(Npe)])],2)]),b("div",Sen,[b("button",{class:G(["bootstrap-styles text-decoration__btn fw-bold border bg-color-input rounded-2 py-1 px-3 w-100",{active:n.modelValue.Decoration==="Underline"}]),onClick:h[4]||(h[4]=p=>a(n.modelValue.Decoration==="Underline"?"None":"Underline"))},[b("i",xen,[I(Ipe)])],2)])]),b("label",Ten,W(o.textColorLabel),1),b("div",ken,[I(XQt,{deps:n.deps.fontColorEditorDeps,color:n.modelValue.FontColor,themeColors:n.themeColors,"onUpdate:changeFontColor":h[5]||(h[5]=p=>u("update:modelValue",{...n.modelValue,FontColor:p}))},null,8,["deps","color","themeColors"])])]))}}),Een={},Len={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function _en(t,e){return E(),R("svg",Len,[...e[0]||(e[0]=[b("path",{d:"M12.2432 10.357L11.3003 9.41423L12.2432 8.47143C13.5449 7.1697 13.5449 5.05914 12.2432 3.7574C10.9414 2.45565 8.83086 2.45565 7.52912 3.7574L6.58631 4.70021L5.6435 3.7574L6.58631 2.81459C8.40879 0.992142 11.3635 0.992142 13.186 2.81459C15.0084 4.63704 15.0084 7.59183 13.186 9.41423L12.2432 10.357ZM10.3575 12.2427L9.41472 13.1855C7.59232 15.008 4.63752 15.008 2.81508 13.1855C0.99263 11.363 0.99263 8.4083 2.81508 6.58582L3.75788 5.64302L4.70069 6.58582L3.75788 7.52863C2.45614 8.83036 2.45614 10.941 3.75788 12.2427C5.05963 13.5444 7.17019 13.5444 8.47192 12.2427L9.41472 11.2999L10.3575 12.2427ZM9.88612 5.17161L10.8289 6.11442L6.1149 10.8285L5.1721 9.88563L9.88612 5.17161Z",fill:"var(--blue-400)"},null,-1)])])}const Aen=ve(Een,[["render",_en]]),Ren={},Den={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function Ben(t,e){return E(),R("svg",Den,[...e[0]||(e[0]=[b("path",{d:"M12.2432 10.357L11.3003 9.41423L12.2432 8.47143C13.5449 7.1697 13.5449 5.05914 12.2432 3.7574C10.9414 2.45565 8.83086 2.45565 7.52912 3.7574L6.58631 4.70021L5.6435 3.7574L6.58631 2.81459C8.40879 0.992142 11.3635 0.992142 13.186 2.81459C15.0084 4.63704 15.0084 7.59183 13.186 9.41423L12.2432 10.357ZM10.3575 12.2427L9.41472 13.1855C7.59232 15.008 4.63752 15.008 2.81508 13.1855C0.99263 11.363 0.99263 8.4083 2.81508 6.58582L3.75788 5.64302L4.70069 6.58582L3.75788 7.52863C2.45614 8.83036 2.45614 10.941 3.75788 12.2427C5.05963 13.5444 7.17019 13.5444 8.47192 12.2427L9.41472 11.2999L10.3575 12.2427ZM9.88612 5.17161L10.8289 6.11442L6.1149 10.8285L5.1721 9.88563L9.88612 5.17161Z",fill:"var(--blue-400)"},null,-1)])])}const Nen=ve(Ren,[["render",Ben]]),Ien={class:"bootstrap-styles input__color_selection d-flex align-items-center justify-content-center overflow-hidden me-2",style:{"background-color":"var(--blue-100)"}},Men=re({__name:"LinkedToStyleSelectItemColor",props:{isActive:{type:Boolean},label:{}},emits:["click"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("li",{class:G(["bootstrap-styles dropdown-item p-0 user-select-none",{active:n.isActive}])},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer d-flex align-items-center justify-content-start",onClick:i[0]||(i[0]=s=>o("click"))},[b("i",Ien,[I(Nen)]),no(" "+W(n.label),1)])],2))}}),$en={customColorLabel:"Other color",colorLabels:{styleLinkedColor:"Link to style",none:"None",emailBackgroundColor:"Email background",bodyColor:"Email body",primaryColor:"Primary color",secondaryColor:"Secondary color",primaryTextColor:"Primary text",secondaryTextColor:"Secondary text",cardBackgroundColor:"Product card color",buttonTextColor:"Buttons",titleColor:"Title",headingColor:"Heading",subHeadingColor:"Subheading",largeTextColor:"Large text",normalTextColor:"Text",descriptionTextColor:"Description",linkColor:"Link",custom:"Custom"}},Oen={customColorLabel:"Другой цвет",colorLabels:{styleLinkedColor:"Связать со стилем",none:"Нет",emailBackgroundColor:"Фон письма",bodyColor:"Тело письма",primaryColor:"Основной цвет",secondaryColor:"Вторичный цвет",primaryTextColor:"Текст на основном цвете",secondaryTextColor:"Текст на вторичном цвете",cardBackgroundColor:"Цвет карточек товара",buttonTextColor:"Кнопки",titleColor:"Большой заголовок",headingColor:"Заголовок",subHeadingColor:"Подзаголовок",largeTextColor:"Большой текст",normalTextColor:"Текст",descriptionTextColor:"Описание",linkColor:"Ссылка",custom:"Пользовательский"}},ai=ht({en:$en,ru:Oen}),Pen={class:"bootstrap-styles col-12 font-style-color-editor-theme"},Ven={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},Wen={id:"dropdownMenuButtonColorList",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-14 px-14 pe-3 overflow-hidden",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},Hen={class:"bootstrap-styles d-flex align-items-center justify-content-start position-relative"},zen={key:1,class:"bootstrap-styles input__color_selection d-flex align-items-center justify-content-center overflow-hidden me-1",style:{"background-color":"var(--blue-100)"}},jen={class:"bootstrap-styles color-editor__text-eclipse overflow-hidden position-relative"},Ken={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Uen={class:"bootstrap-styles dropdown-menu rounded-2","aria-labelledby":"dropdownMenuButtonColorList"},qen={key:0,class:"bootstrap-styles col-12 mt-2"},Jen=re({__name:"FontStyleColorEditor",props:{deps:{},color:{},fontStyle:{},themeColors:{}},emits:["update:changeFontColor"],setup(t,{emit:e}){const n=t,o=e,r=l=>{o("update:changeFontColor",l)},i={customColorLabel:ai({localeKey:n.deps.localeKey}).customColorLabel,colorLabels:{styleLinkedColor:ai({localeKey:n.deps.localeKey}).colorLabels.styleLinkedColor,emailBackgroundColor:ai({localeKey:n.deps.localeKey}).colorLabels.emailBackgroundColor,bodyColor:ai({localeKey:n.deps.localeKey}).colorLabels.bodyColor,primaryColor:ai({localeKey:n.deps.localeKey}).colorLabels.primaryColor,secondaryColor:ai({localeKey:n.deps.localeKey}).colorLabels.secondaryColor,primaryTextColor:ai({localeKey:n.deps.localeKey}).colorLabels.primaryTextColor,secondaryTextColor:ai({localeKey:n.deps.localeKey}).colorLabels.secondaryTextColor,cardBackgroundColor:ai({localeKey:n.deps.localeKey}).colorLabels.cardBackgroundColor,buttonTextColor:ai({localeKey:n.deps.localeKey}).colorLabels.buttonTextColor,titleColor:ai({localeKey:n.deps.localeKey}).colorLabels.titleColor,headingColor:ai({localeKey:n.deps.localeKey}).colorLabels.headingColor,subHeadingColor:ai({localeKey:n.deps.localeKey}).colorLabels.subHeadingColor,largeTextColor:ai({localeKey:n.deps.localeKey}).colorLabels.largeTextColor,normalTextColor:ai({localeKey:n.deps.localeKey}).colorLabels.normalTextColor,descriptionTextColor:ai({localeKey:n.deps.localeKey}).colorLabels.descriptionTextColor,linkColor:ai({localeKey:n.deps.localeKey}).colorLabels.linkColor,custom:ai({localeKey:n.deps.localeKey}).colorLabels.custom}},s={StyleLinkedColor:i.colorLabels.styleLinkedColor,EmailBackgroundColor:i.colorLabels.emailBackgroundColor,BodyColor:i.colorLabels.bodyColor,PrimaryColor:i.colorLabels.primaryColor,SecondaryColor:i.colorLabels.secondaryColor,PrimaryTextColor:i.colorLabels.primaryTextColor,SecondaryTextColor:i.colorLabels.secondaryTextColor,CardBackgroundColor:i.colorLabels.cardBackgroundColor,ButtonTextColor:i.colorLabels.buttonTextColor,TitleColor:i.colorLabels.titleColor,HeadingColor:i.colorLabels.headingColor,SubHeadingColor:i.colorLabels.subHeadingColor,LargeTextColor:i.colorLabels.largeTextColor,NormalTextColor:i.colorLabels.normalTextColor,DescriptionTextColor:i.colorLabels.descriptionTextColor,LinkColor:i.colorLabels.linkColor,Custom:i.colorLabels.custom},a=["EmailBackgroundColor","BodyColor","PrimaryColor","SecondaryColor","PrimaryTextColor","SecondaryTextColor","ButtonTextColor","TitleColor","HeadingColor","SubHeadingColor","LargeTextColor","NormalTextColor","DescriptionTextColor","LinkColor"];return(l,c)=>(E(),R(Se,null,[b("div",Pen,[b("div",Ven,[Ke((E(),R("button",Wen,[b("span",Hen,[n.color.Discriminator!=="StyleLinkedColor"?(E(),R("i",{key:0,class:"bootstrap-styles input__color_selection d-block overflow-hidden me-1",style:Te([{border:"1px solid rgba(0, 0, 0, 0.10)"},{background:N(d9e)({fontStyleColor:n.color,themeColors:n.themeColors,fontStyle:n.fontStyle})}])},null,4)):(E(),R("i",zen,[I(Aen)])),b("span",jen,W(s[n.color.Discriminator]),1)]),b("i",Ken,[I(Si)])])),[[N(ah)]]),b("ul",Uen,[I(Men,{isActive:n.color.Discriminator==="StyleLinkedColor",label:i.colorLabels.styleLinkedColor,onClick:c[0]||(c[0]=u=>r({Discriminator:"StyleLinkedColor",CustomValue:n.color.CustomValue}))},null,8,["isActive","label"]),(E(),R(Se,null,At(a,u=>I(ug,{key:u,isActive:n.color.Discriminator===u,color:n.themeColors[u],label:s[u],onClick:d=>r({Discriminator:u,CustomValue:n.color.CustomValue})},null,8,["isActive","color","label","onClick"])),64)),I(ug,{isActive:n.color.Discriminator==="Custom",color:"linear-gradient(135deg, #3384FF 0%, #CA65FA 34.37%, #FA6565 61.98%, #FAEB65 100%)",label:i.customColorLabel,onClick:c[1]||(c[1]=u=>r({Discriminator:"Custom",CustomValue:n.color.CustomValue}))},null,8,["isActive","label"])])])]),n.color.Discriminator==="Custom"?(E(),R("div",qen,[I(Du,{color:n.color.CustomValue,"onUpdate:changeColor":c[2]||(c[2]=u=>r({Discriminator:"Custom",CustomValue:u}))},null,8,["color"])])):oe("",!0)],64))}}),Gen=t=>t.FontColor??Tpe(t).Match({Heading:()=>({Discriminator:"HeadingColor",CustomValue:"#000000"}),Title:()=>({Discriminator:"TitleColor",CustomValue:"#000000"}),SubHeading:()=>({Discriminator:"SubHeadingColor",CustomValue:"#000000"}),LargeText:()=>({Discriminator:"LargeTextColor",CustomValue:"#000000"}),NormalText:()=>({Discriminator:"NormalTextColor",CustomValue:"#000000"}),DescriptionText:()=>({Discriminator:"DescriptionTextColor",CustomValue:"#000000"}),Button:()=>({Discriminator:"ButtonTextColor",CustomValue:"#000000"}),Link:()=>({Discriminator:"LinkColor",CustomValue:"#000000"}),Custom:()=>({Discriminator:"Custom",CustomValue:"#000000"})}),Yen={colorLabel:"Text color",settingLabels:{title:"Title",heading:"Heading",subHeading:"Subheading",largeText:"Large text",normalText:"Text",descriptionText:"Description",link:"Link",button:"Button",custom:"Custom"}},Zen={colorLabel:"Цвет текста",settingLabels:{title:"Большой заголовок",heading:"Заголовок",subHeading:"Подзаголовок",largeText:"Большой текст",normalText:"Текст",descriptionText:"Описание",link:"Ссылка",button:"Кнопка",custom:"Пользовательский"}},Vh=ht({en:Yen,ru:Zen}),Xen={class:"bootstrap-styles row"},Qen={class:"bootstrap-styles col-12 font-style-color-editor-theme"},etn={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},ttn={id:"dropdownMenuButtonFontStyleList",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},ntn={class:"bootstrap-styles d-flex justify-content-center align-items-center"},otn={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuButtonFontStyleList"},rtn={key:0,class:"bootstrap-styles row mb-2"},itn={class:"bootstrap-styles fw-bold mb-5 mt-13"},Ppe=re({__name:"FontStyleEditor",props:{deps:{},fontStyle:{},themeFontSettings:{},themeColors:{},themeFontFamily:{}},emits:["update:changeTextStyles"],setup(t,{emit:e}){const n=t,o={colorLabel:Vh({localeKey:n.deps.localeKey}).colorLabel,settingLabels:{title:Vh({localeKey:n.deps.localeKey}).settingLabels.title,heading:Vh({localeKey:n.deps.localeKey}).settingLabels.heading,subHeading:Vh({localeKey:n.deps.localeKey}).settingLabels.subHeading,largeText:Vh({localeKey:n.deps.localeKey}).settingLabels.largeText,normalText:Vh({localeKey:n.deps.localeKey}).settingLabels.normalText,descriptionText:Vh({localeKey:n.deps.localeKey}).settingLabels.descriptionText,link:Vh({localeKey:n.deps.localeKey}).settingLabels.link,button:Vh({localeKey:n.deps.localeKey}).settingLabels.button,custom:Vh({localeKey:n.deps.localeKey}).settingLabels.custom}},r={Title:o.settingLabels.title,Heading:o.settingLabels.heading,SubHeading:o.settingLabels.subHeading,LargeText:o.settingLabels.largeText,NormalText:o.settingLabels.normalText,DescriptionText:o.settingLabels.descriptionText,Link:o.settingLabels.link,Button:o.settingLabels.button,Custom:o.settingLabels.custom},i=["Title","Heading","SubHeading","LargeText","NormalText","DescriptionText","Link","Button"],s={Title:"TitleColor",Heading:"HeadingColor",SubHeading:"SubHeadingColor",LargeText:"LargeTextColor",NormalText:"NormalTextColor",DescriptionText:"DescriptionTextColor",Link:"LinkColor",Button:"ButtonTextColor"},a=e;return(l,c)=>(E(),R(Se,null,[b("div",{class:G(["bootstrap-styles container-fluid",{"mb-13":n.fontStyle.Discriminator!=="Custom"}])},[b("div",Xen,[b("div",Qen,[b("div",etn,[Ke((E(),R("button",ttn,[b("span",null,W(r[n.fontStyle.Discriminator]),1),b("i",ntn,[I(Si)])])),[[N(ah)]]),b("ul",otn,[(E(),R(Se,null,At(i,u=>I(Qre,{key:u,isActive:n.fontStyle.Discriminator===u,label:r[u],themeFontStyle:n.themeFontSettings[u],themeFontColor:n.themeColors[s[u]],onClick:d=>a("update:changeTextStyles",{...n.fontStyle,Discriminator:u})},null,8,["isActive","label","themeFontStyle","themeFontColor","onClick"])),64)),I(Qre,{isActive:n.fontStyle.Discriminator==="Custom",label:r.Custom,onClick:c[0]||(c[0]=u=>a("update:changeTextStyles",{...n.fontStyle,Discriminator:"Custom",CustomFontSettings:n.fontStyle.CustomFontSettings,FontColor:n.fontStyle.FontColor??{Discriminator:"Custom",CustomValue:"#000000"}}))},null,8,["isActive","label"])])])])]),n.fontStyle.Discriminator!=="Custom"?(E(),R("div",rtn,[b("label",itn,W(o.colorLabel),1),I(Jen,{deps:n.deps.fontStyleColorEditorDeps,color:N(Gen)(n.fontStyle),fontStyle:n.fontStyle,themeColors:n.themeColors,"onUpdate:changeFontColor":c[1]||(c[1]=u=>a("update:changeTextStyles",{...n.fontStyle,FontColor:u}))},null,8,["deps","color","fontStyle","themeColors"])])):oe("",!0)],2),n.fontStyle.Discriminator==="Custom"?(E(),Q(Fen,{key:0,class:"bootstrap-styles mt-2",deps:n.deps.customFontSettingsDeps,modelValue:n.fontStyle.CustomFontSettings,themeColors:n.themeColors,themeFontFamily:n.themeFontFamily,"onUpdate:modelValue":c[2]||(c[2]=u=>a("update:changeTextStyles",{...n.fontStyle,Discriminator:"Custom",CustomFontSettings:u}))},null,8,["deps","modelValue","themeColors","themeFontFamily"])):oe("",!0)],64))}}),stn={},atn={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function ltn(t,e){return E(),R("svg",atn,[...e[0]||(e[0]=[b("path",{d:"M3.66641 2H2.33301V14H3.66641V2Z",fill:"var(--gray-500)"},null,-1),b("path",{d:"M13.6668 8.66699H5.6668C5.3002 8.66699 5 8.96699 5 9.33339V12.0002C5 12.3666 5.3002 12.667 5.6668 12.667H13.6668C14.0332 12.667 14.3334 12.3666 14.3334 12.0002V9.33339C14.3334 8.96699 14.0332 8.66699 13.6668 8.66699ZM13 11.3334H6.3334V10.0002H13V11.3334Z",fill:"var(--gray-500)"},null,-1),b("path",{d:"M11.6668 6.6667C11.6668 7.0333 11.3666 7.3333 11 7.3333H5.6668C5.3002 7.3333 5 7.0333 5 6.6667V4.0001C5 3.6335 5.3002 3.3335 5.6668 3.3335H11C11.3666 3.3335 11.6668 3.6337 11.6668 4.0001V6.6667Z",fill:"var(--gray-500)"},null,-1)])])}const j9e=ve(stn,[["render",ltn]]),ctn={},utn={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function dtn(t,e){return E(),R("svg",utn,[...e[0]||(e[0]=[b("path",{d:"M11.9995 8.66675H8.66616V7.33336H10.6661C11.0327 7.33336 11.3329 7.03336 11.3329 6.66676V3.99998C11.3329 3.63339 11.0327 3.33339 10.6661 3.33339H8.66616V2H7.33298V3.33339H5.33299C4.96639 3.33339 4.6662 3.63359 4.6662 3.99998V6.66656C4.6662 7.03316 4.96639 7.33316 5.33299 7.33316H7.33298V8.66655H3.9996C3.63301 8.66655 3.33301 8.96654 3.33301 9.33294V11.9999C3.33301 12.3663 3.63301 12.6667 3.9996 12.6667H7.33298V13.9999H8.66616V12.6667H11.9995C12.3661 12.6667 12.6661 12.3663 12.6661 11.9999V9.33314C12.6661 8.96674 12.3661 8.66675 11.9995 8.66675ZM11.3329 11.3331H4.6662V9.99994H11.3329V11.3331Z",fill:"var(--gray-500)"},null,-1)])])}const K9e=ve(ctn,[["render",dtn]]),htn={},ptn={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function mtn(t,e){return E(),R("svg",ptn,[...e[0]||(e[0]=[b("path",{d:"M14.6664 2H13.333V14H14.6664V2Z",fill:"var(--gray-500)"},null,-1),b("path",{d:"M11.3326 8.66699H3.33262C2.96622 8.66699 2.66602 8.96699 2.66602 9.33339V12.0002C2.66602 12.3668 2.96622 12.6668 3.33262 12.6668H11.3326C11.6992 12.6668 11.9994 12.3668 11.9994 12.0002V9.33339C11.9994 8.96699 11.6992 8.66699 11.3326 8.66699ZM10.666 11.3336H3.99941V10.0002H10.666V11.3336Z",fill:"var(--gray-500)"},null,-1),b("path",{d:"M11.9998 6.66669C11.9998 7.03329 11.6996 7.33329 11.333 7.33329H5.99981C5.63321 7.33329 5.33301 7.03329 5.33301 6.66669V4.0001C5.33301 3.6335 5.63321 3.3335 5.99981 3.3335H11.333C11.6996 3.3335 11.9998 3.6337 11.9998 4.0001V6.66669Z",fill:"var(--gray-500)"},null,-1)])])}const U9e=ve(htn,[["render",mtn]]),ftn={class:"bootstrap-styles w-100 p-14 rounded-2 border bg-color-input"},gtn={class:"bootstrap-styles d-flex position-relative w-100"},ytn=["data-key","onClick"],Ctn=re({__name:"ContainerAlignEditor",props:{containerAlign:{}},emits:["onContainerAlignChanged"],setup(t,{emit:e}){const n=t,o=["Left","Center","Right"],r={Left:j9e,Center:K9e,Right:U9e},i=Rt([]),s=Le({sliderStyle:{width:"0px",transform:"translateX(0px)"}}),a=u=>{gl(()=>{const d=i.value.find(h=>h.dataset.key===u);d&&(s.sliderStyle={width:`${d.offsetWidth}px`,transform:`translateX(${d.offsetLeft}px)`})})},l=u=>{c("onContainerAlignChanged",u)};Gc(()=>{a(n.containerAlign)}),on(()=>n.containerAlign,a);const c=e;return(u,d)=>(E(),R("div",ftn,[b("div",gtn,[b("div",{class:"slider",style:Te(s.sliderStyle)},null,4),(E(),R(Se,null,At(o,h=>b("button",{key:h,ref_for:!0,ref_key:"containerAlignVariantRefs",ref:i,"data-key":h,class:G(["bootstrap-styles container-align-editor__variant w-100 d-flex justify-content-center align-items-center py-14 px-1 text-gray-600 z-1 position-relative",{active:n.containerAlign===h}]),onClick:()=>l(h)},[(E(),Q(JK(r[h])))],10,ytn)),64))])]))}}),btn=ve(Ctn,[["__scopeId","data-v-7cd317ad"]]),vtn={},wtn={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function Stn(t,e){return E(),R("svg",wtn,[...e[0]||(e[0]=[b("path",{d:"M11.3333 3.99998H14.6666V5.33331H13.3333V14C13.3333 14.3682 13.0348 14.6666 12.6666 14.6666H3.33331C2.96513 14.6666 2.66665 14.3682 2.66665 14V5.33331H1.33331V3.99998H4.66665V1.99998C4.66665 1.63179 4.96513 1.33331 5.33331 1.33331H10.6666C11.0348 1.33331 11.3333 1.63179 11.3333 1.99998V3.99998ZM12 5.33331H3.99998V13.3333H12V5.33331ZM5.99998 7.33331H7.33331V11.3333H5.99998V7.33331ZM8.66665 7.33331H9.99998V11.3333H8.66665V7.33331ZM5.99998 2.66665V3.99998H9.99998V2.66665H5.99998Z",fill:"var(--red-400)"},null,-1)])])}const xtn=ve(vtn,[["render",Stn]]),Ttn={class:"bootstrap-styles d-flex justify-content-center align-items-center"},ktn=re({__name:"RemoveButton",emits:["click"],setup(t,{emit:e}){const n=e;return(o,r)=>(E(),R("button",{class:"bootstrap-styles p-1",onClick:r[0]||(r[0]=i=>n("click"))},[b("i",Ttn,[I(xtn)])]))}}),YC=ve(ktn,[["__scopeId","data-v-7442eec2"]]),Ftn={},Etn={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"};function Ltn(t,e){return E(),R("svg",Etn,[...e[0]||(e[0]=[b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 4.0332H2V3.0332H14V4.0332Z",fill:"var(--gray-500)"},null,-1),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 8.5332H2V6.5332H14V8.5332Z",fill:"var(--gray-500)"},null,-1),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 13.5332H2V10.5332H14V13.5332Z",fill:"var(--gray-500)"},null,-1)])])}const q9e=ve(Ftn,[["render",Ltn]]),_tn={customColorLabel:"Other color",colorLabels:{emailBackgroundColor:"Email background",bodyColor:"Email body",primaryColor:"Primary color",secondaryColor:"Secondary color",primaryTextColor:"Primary text",secondaryTextColor:"Secondary text",cardBackgroundColor:"Product card color",buttonTextColor:"Buttons",titleColor:"Title",headingColor:"Heading",subHeadingColor:"Subheading",largeTextColor:"Large text",normalTextColor:"Text",descriptionTextColor:"Description",linkColor:"Link",custom:"Custom"}},Atn={customColorLabel:"Другой цвет",colorLabels:{emailBackgroundColor:"Фон письма",bodyColor:"Тело письма",primaryColor:"Основной цвет",secondaryColor:"Вторичный цвет",primaryTextColor:"Текст на основном цвете",secondaryTextColor:"Текст на вторичном цвете",cardBackgroundColor:"Цвет карточек товара",buttonTextColor:"Кнопки",titleColor:"Большой заголовок",headingColor:"Заголовок",subHeadingColor:"Подзаголовок",largeTextColor:"Большой текст",normalTextColor:"Текст",descriptionTextColor:"Описание",linkColor:"Ссылка",custom:"Пользовательский"}},Hi=ht({en:_tn,ru:Atn}),Rtn={class:"bootstrap-styles row gx-2"},Dtn={class:"bootstrap-styles dropdown border rounded-2 bg-color-input",id:"dropdownMenuButtonBorderColorList","aria-expanded":"false","data-bs-toggle":"dropdown"},Btn={type:"button",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-14 px-14 pe-3 overflow-hidden"},Ntn={class:"bootstrap-styles d-flex align-items-center justify-content-start position-relative"},Itn={class:"bootstrap-styles color-editor__text-eclipse overflow-hidden position-relative"},Mtn={class:"bootstrap-styles d-flex justify-content-center align-items-center"},$tn={class:"bootstrap-styles dropdown-menu rounded-2","aria-labelledby":"dropdownMenuButtonBorderColorList"},Otn={key:0,class:"bootstrap-styles col-6"},Ptn=re({__name:"BorderColorEditor",props:{deps:{},color:{},themeColors:{}},emits:["update:changeColor"],setup(t,{emit:e}){const n=t,o=e,r=l=>{o("update:changeColor",l)},i={customColorLabel:Hi({localeKey:n.deps.localeKey}).customColorLabel,colorLabels:{emailBackgroundColor:Hi({localeKey:n.deps.localeKey}).colorLabels.emailBackgroundColor,bodyColor:Hi({localeKey:n.deps.localeKey}).colorLabels.bodyColor,primaryColor:Hi({localeKey:n.deps.localeKey}).colorLabels.primaryColor,secondaryColor:Hi({localeKey:n.deps.localeKey}).colorLabels.secondaryColor,primaryTextColor:Hi({localeKey:n.deps.localeKey}).colorLabels.primaryTextColor,secondaryTextColor:Hi({localeKey:n.deps.localeKey}).colorLabels.secondaryTextColor,cardBackgroundColor:Hi({localeKey:n.deps.localeKey}).colorLabels.cardBackgroundColor,buttonTextColor:Hi({localeKey:n.deps.localeKey}).colorLabels.buttonTextColor,titleColor:Hi({localeKey:n.deps.localeKey}).colorLabels.titleColor,headingColor:Hi({localeKey:n.deps.localeKey}).colorLabels.headingColor,subHeadingColor:Hi({localeKey:n.deps.localeKey}).colorLabels.subHeadingColor,largeTextColor:Hi({localeKey:n.deps.localeKey}).colorLabels.largeTextColor,normalTextColor:Hi({localeKey:n.deps.localeKey}).colorLabels.normalTextColor,descriptionTextColor:Hi({localeKey:n.deps.localeKey}).colorLabels.descriptionTextColor,linkColor:Hi({localeKey:n.deps.localeKey}).colorLabels.linkColor,custom:Hi({localeKey:n.deps.localeKey}).colorLabels.custom}},s={EmailBackgroundColor:i.colorLabels.emailBackgroundColor,BodyColor:i.colorLabels.bodyColor,PrimaryColor:i.colorLabels.primaryColor,SecondaryColor:i.colorLabels.secondaryColor,PrimaryTextColor:i.colorLabels.primaryTextColor,SecondaryTextColor:i.colorLabels.secondaryTextColor,CardBackgroundColor:i.colorLabels.cardBackgroundColor,ButtonTextColor:i.colorLabels.buttonTextColor,TitleColor:i.colorLabels.titleColor,HeadingColor:i.colorLabels.headingColor,SubHeadingColor:i.colorLabels.subHeadingColor,LargeTextColor:i.colorLabels.largeTextColor,NormalTextColor:i.colorLabels.normalTextColor,DescriptionTextColor:i.colorLabels.descriptionTextColor,LinkColor:i.colorLabels.linkColor,Custom:i.colorLabels.custom},a=["EmailBackgroundColor","BodyColor","PrimaryColor","SecondaryColor","PrimaryTextColor","SecondaryTextColor","ButtonTextColor","TitleColor","HeadingColor","SubHeadingColor","LargeTextColor","NormalTextColor","DescriptionTextColor","LinkColor"];return(l,c)=>(E(),R("div",Rtn,[b("div",{class:G([n.color.Discriminator=="Custom"?"bootstrap-styles col-6 font-style-color-editor-custom":"bootstrap-styles col-12 font-style-color-editor-theme"])},[b("div",Dtn,[b("button",Btn,[b("span",Ntn,[b("i",{class:"bootstrap-styles input__color_selection d-block overflow-hidden me-1",style:Te([{border:"1px solid rgba(0, 0, 0, 0.10)"},{background:N(lc)({color:n.color,themeColors:n.themeColors})??"url(https://gallery.retailrocket.net/5df72bdc97a52507605e4cc1/transparentColor.png) no-repeat 50% 50%"}])},null,4),b("span",Itn,W(s[n.color.Discriminator]),1)]),b("i",Mtn,[I(Si)])]),b("ul",$tn,[(E(),R(Se,null,At(a,u=>I(ug,{key:u,isActive:n.color.Discriminator===u,color:n.themeColors[u],label:s[u],onClick:d=>r({Discriminator:u,CustomValue:n.color.CustomValue})},null,8,["isActive","color","label","onClick"])),64)),I(ug,{isActive:n.color.Discriminator==="Custom",color:"linear-gradient(135deg, #3384FF 0%, #CA65FA 34.37%, #FA6565 61.98%, #FAEB65 100%)",label:i.customColorLabel,onClick:c[0]||(c[0]=u=>r({Discriminator:"Custom",CustomValue:n.color.CustomValue}))},null,8,["isActive","label"])])])],2),n.color.Discriminator==="Custom"?(E(),R("div",Otn,[I(Du,{color:n.color.CustomValue,"onUpdate:changeColor":c[1]||(c[1]=u=>r({Discriminator:"Custom",CustomValue:u}))},null,8,["color"])])):oe("",!0)]))}}),Vtn={label:"Border"},Wtn={label:"Обводка"},Htn=ht({en:Vtn,ru:Wtn}),ztn={class:"bootstrap-styles row g-0 mb-13"},jtn={class:"bootstrap-styles fw-bold mb-5"},Ktn={class:"bootstrap-styles col-12 mb-2"},Utn={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},qtn={class:"bootstrap-styles me-1"},Jtn={class:"bootstrap-styles col-12"},J9e=re({__name:"BorderEditor",props:{deps:{},modelValue:{},themeColors:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o={label:Htn({localeKey:n.deps.localeKey}).label},r=e;return(i,s)=>(E(),R("div",ztn,[b("label",jtn,W(o.label),1),b("div",Ktn,[b("div",Utn,[b("i",qtn,[I(q9e)]),I(fr,{modelValue:n.modelValue.Left.Width,"onUpdate:modelValue":s[0]||(s[0]=a=>r("update:modelValue",{...n.modelValue,Left:{...n.modelValue.Left,Style:"Solid",Width:a},Right:{...n.modelValue.Right,Style:"Solid",Width:a},Top:{...n.modelValue.Top,Style:"Solid",Width:a},Bottom:{...n.modelValue.Bottom,Style:"Solid",Width:a}}))},null,8,["modelValue"])])]),b("div",Jtn,[I(Ptn,{deps:n.deps.borderColorEditorDeps,color:n.modelValue.Left.Color,themeColors:n.themeColors,"onUpdate:changeColor":s[1]||(s[1]=a=>r("update:modelValue",{Left:{...n.modelValue.Left,Color:a},Right:{...n.modelValue.Right,Color:a},Top:{...n.modelValue.Top,Color:a},Bottom:{...n.modelValue.Bottom,Color:a}}))},null,8,["deps","color","themeColors"])])]))}}),Gtn={title:"Button",removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the Button element?",inputTextLabel:"Text",inputTextPlaceholder:"Button text...",href:{errorNotification:"The link must contain https://, http://, mailto:, tel:",hrefLabel:"Click link",hrefPlaceholder:"Link address"},cannotBeEditedLabel:"Cannot be edited",textStyleLabel:"Style",backgroundColorLabel:"Background color",contentAlign:{label:"Alignment",fullWidthCheckboxLabel:"Full width"},paddings:{label:"Paddings",themeStyleLinked:"Automatic",manualValue:"Manual",leftRight:"Left, right",topBottom:"Top, bottom"},borderRadius:{label:"Border radius",themeStyleLinkedText:"From component settings"}},Ytn={title:"Кнопка",removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент Button ?",inputTextLabel:"Текст",inputTextPlaceholder:"Текст кнопки...",href:{errorNotification:"Ссылка должна содержать https://, http://, mailto:, tel:",hrefLabel:"Ссылка при клике",hrefPlaceholder:"Адрес ссылки"},cannotBeEditedLabel:"Нельзя редактировать",textStyleLabel:"Стиль",backgroundColorLabel:"Цвет заливки",contentAlign:{label:"Выравнивание",fullWidthCheckboxLabel:"На всю ширину"},paddings:{label:"Отступы",themeStyleLinked:"Автоматически",manualValue:"Вручную",leftRight:"Слева, справа",topBottom:"Сверху, снизу"},borderRadius:{label:"Скругление",themeStyleLinkedText:"Из настроек компонента"}},Ztn=ht({en:Gtn,ru:Ytn}),Xtn={class:"bootstrap-styles d-flex justify-content-between align-items-center mb-13"},Qtn={class:"bootstrap-styles fw-bold fs-6"},enn={class:"bootstrap-styles container-fluid g-0"},tnn={class:"bootstrap-styles row g-0"},nnn={key:0,class:"bootstrap-styles col-12 mb-13"},onn={class:"bootstrap-styles fw-bold mb-5"},rnn=["placeholder","value"],inn={key:1,class:"bootstrap-styles col-12"},snn={class:"bootstrap-styles fw-bold mb-5"},ann={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},lnn=["placeholder"],cnn={key:2,class:"bootstrap-styles col-12 mb-13"},unn={class:"bootstrap-styles fw-bold mb-5 disabled"},dnn={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},hnn={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},pnn=["placeholder"],mnn={class:"bootstrap-styles fw-bold mb-5"},fnn={class:"bootstrap-styles container-fluid mb-13"},gnn={class:"bootstrap-styles fw-bold mb-5"},ynn={class:"bootstrap-styles row gx-2 mb-2"},Cnn={class:"bootstrap-styles row g-0 mb-13"},bnn={class:"bootstrap-styles fw-bold mb-5"},vnn={class:"bootstrap-styles col-12 mb-5"},wnn={class:"bootstrap-styles d-flex align-items-center"},Snn={for:"button-width-checkbox",class:"label__checkbox-input"},xnn={key:0,class:"bootstrap-styles col-12"},Tnn={class:"bootstrap-styles content-fluid mb-13"},knn={class:"bootstrap-styles fw-bold fs-6 mb-7"},Fnn={class:"bootstrap-styles dropdown border rounded-2 bg-color-input mb-7"},Enn={id:"dropdownMenuButtonFontFamily",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},Lnn={class:"bootstrap-styles d-flex justify-content-center align-items-center"},_nn={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuButtonFontFamily"},Ann={key:0,class:"bootstrap-styles row gx-0 mb-1"},Rnn={class:"bootstrap-styles col-6"},Dnn={class:"bootstrap-styles col-6 d-flex align-items-center"},Bnn={class:"bootstrap-styles ps-5 text-gray-600"},Nnn={key:1,class:"bootstrap-styles row gx-0 mb-1"},Inn={class:"bootstrap-styles col-6"},Mnn={class:"bootstrap-styles col-6 d-flex align-items-center"},$nn={class:"bootstrap-styles ps-5 text-gray-600"},Onn={class:"bootstrap-styles container-fluid mb-13"},Pnn={class:"bootstrap-styles fw-bold mb-5"},Vnn={class:"bootstrap-styles row g-0 mb-5"},Wnn={class:"bootstrap-styles col-12"},Hnn={class:"bootstrap-styles d-flex align-items-center"},znn={for:"button-radius-checkbox",class:"label__checkbox-input"},jnn={key:0,class:"bootstrap-styles row g-0"},Knn={class:"bootstrap-styles col-6"},Unn={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},qnn={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},Jnn=re({__name:"ButtonEditor",props:{deps:{},modelValue:{},themeBorderRadiusButton:{},themeColors:{},themeFontFamily:{},themeFontSettings:{}},emits:["update:modelValue","removeElement"],setup(t,{emit:e}){const n=t,o=Le({isRemoveElementWindowShown:!1,isValid:!0,hrefValue:n.modelValue.HRef.ConstValueExpression?.Value??""}),r=p=>{if(c$(p))o.isValid=!0,h("update:modelValue",{...n.modelValue,HRef:{ConstValueExpression:{Value:p}}});else{o.isValid=!1;return}},i=p=>({TopLeft:{CustomValue:p.topLeft,Discriminator:"CustomBorderRadius"},TopRight:{CustomValue:p.topRight,Discriminator:"CustomBorderRadius"},BottomLeft:{CustomValue:p.bottomLeft,Discriminator:"CustomBorderRadius"},BottomRight:{CustomValue:p.bottomRight,Discriminator:"CustomBorderRadius"}}),s=p=>{h("update:modelValue",{...n.modelValue,BorderRadius:i({topLeft:p,topRight:p,bottomLeft:p,bottomRight:p})})},a=p=>i({topLeft:p.TopLeft.CustomValue??n.themeBorderRadiusButton.TopLeft,topRight:p.TopRight.CustomValue??n.themeBorderRadiusButton.TopRight,bottomLeft:p.BottomLeft.CustomValue??n.themeBorderRadiusButton.BottomLeft,bottomRight:p.BottomRight.CustomValue??n.themeBorderRadiusButton.BottomRight}),l=p=>({TopLeft:{CustomValue:p.TopLeft.CustomValue,Discriminator:"ButtonBorderRadiusTopLeft"},TopRight:{CustomValue:p.TopRight.CustomValue,Discriminator:"ButtonBorderRadiusTopRight"},BottomLeft:{CustomValue:p.BottomLeft.CustomValue,Discriminator:"ButtonBorderRadiusBottomLeft"},BottomRight:{CustomValue:p.BottomRight.CustomValue,Discriminator:"ButtonBorderRadiusBottomRight"}}),c=()=>{h("update:modelValue",{...n.modelValue,BorderRadius:n.modelValue.BorderRadius.TopLeft.Discriminator=="ButtonBorderRadiusTopLeft"?a(n.modelValue.BorderRadius):l(n.modelValue.BorderRadius)})},u=ne(()=>h9e(n.modelValue.Paddings).Match({Theme:()=>!0,Custom:()=>!1})),d=Ztn({localeKey:n.deps.localeKey}),h=e;return(p,m)=>(E(),R(Se,null,[b("div",Xtn,[b("span",Qtn,W(N(d).title),1),I(YC,{onClick:m[0]||(m[0]=f=>o.isRemoveElementWindowShown=!0)}),(E(),Q(yo,{to:"body",defer:""},[o.isRemoveElementWindowShown?(E(),Q(Ch,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:N(d).removeWindowTitle,onCancel:m[1]||(m[1]=f=>o.isRemoveElementWindowShown=!1),onConfirmed:m[2]||(m[2]=()=>{o.isRemoveElementWindowShown=!1,h("removeElement")})},{"body-content":Bt(()=>[no(W(N(d).removeWindowDescription),1)]),_:1},8,["deps","headerText"])):oe("",!0)]))]),b("div",enn,[b("div",tnn,[N(Yd)(n.modelValue.Text)?(E(),R("div",nnn,[b("label",onn,W(N(d).inputTextLabel),1),b("input",{class:"bootstrap-styles bg-color-input border rounded-2 w-100 py-1 px-3",placeholder:N(d).inputTextPlaceholder,value:n.modelValue.Text.ConstValueExpression.Value,onInput:m[3]||(m[3]=f=>h("update:modelValue",{...n.modelValue,Text:{ConstValueExpression:{Value:f.target.value}}}))},null,40,rnn)])):oe("",!0),N(Yd)(n.modelValue.HRef)?(E(),R("div",inn,[b("label",snn,W(N(d).href.hrefLabel),1),b("div",{class:G(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex mb-14",{"not-valid-url":!o.isValid}])},[b("i",ann,[I(CC)]),Ke(b("input",{type:"text",class:"bootstrap-styles w-100",placeholder:N(d).href.hrefPlaceholder,"onUpdate:modelValue":m[4]||(m[4]=f=>o.hrefValue=f),onInput:m[5]||(m[5]=f=>r(f.target.value))},null,40,lnn),[[Ea,o.hrefValue]])],2),b("div",{class:G(["bootstrap-styles text-start add-link-notification mb-14",{invisible:o.isValid}])},W(N(d).href.errorNotification),3)])):(E(),R("div",cnn,[b("label",unn,W(N(d).href.hrefLabel),1),b("div",dnn,[b("i",hnn,[I(CC)]),b("input",{type:"text",disabled:"",class:"bootstrap-styles w-100",placeholder:N(d).cannotBeEditedLabel},null,8,pnn)])]))]),b("label",mnn,W(N(d).textStyleLabel),1),I(Ppe,{deps:n.deps.fontStyleEditorDeps,fontStyle:n.modelValue.TextStyle,themeColors:n.themeColors,themeFontFamily:n.themeFontFamily,themeFontSettings:n.themeFontSettings,"onUpdate:changeTextStyles":m[6]||(m[6]=f=>{h("update:modelValue",{...n.modelValue,TextStyle:f})})},null,8,["deps","fontStyle","themeColors","themeFontFamily","themeFontSettings"]),b("div",fnn,[b("label",gnn,W(N(d).backgroundColorLabel),1),b("div",ynn,[I(Ope,{deps:n.deps.colorEditorDeps,color:n.modelValue.BackgroundColor,themeColors:n.themeColors,"onUpdate:changeColor":m[7]||(m[7]=f=>h("update:modelValue",{...n.modelValue,BackgroundColor:{...f}}))},null,8,["deps","color","themeColors"])])]),I(J9e,{deps:n.deps.borderEditorDeps,modelValue:n.modelValue.Border,themeColors:n.themeColors,"onUpdate:modelValue":m[8]||(m[8]=f=>h("update:modelValue",{...n.modelValue,Border:f}))},null,8,["deps","modelValue","themeColors"]),b("div",Cnn,[b("label",bnn,W(N(d).contentAlign.label),1),b("div",vnn,[b("div",wnn,[I(th,{id:"button-width-checkbox",checked:n.modelValue.FullWidth,onChange:m[9]||(m[9]=f=>h("update:modelValue",{...n.modelValue,FullWidth:!n.modelValue.FullWidth}))},null,8,["checked"]),b("label",Snn,W(N(d).contentAlign.fullWidthCheckboxLabel),1)])]),n.modelValue.FullWidth?oe("",!0):(E(),R("div",xnn,[I(btn,{class:"bootstrap-styles mb-5",containerAlign:n.modelValue.ContentAlign,onOnContainerAlignChanged:m[10]||(m[10]=f=>h("update:modelValue",{...n.modelValue,ContentAlign:f}))},null,8,["containerAlign"])]))])]),b("div",Tnn,[b("label",knn,W(N(d).paddings.label),1),b("div",Fnn,[Ke((E(),R("button",Enn,[b("span",null,W(u.value?N(d).paddings.themeStyleLinked:N(d).paddings.manualValue),1),b("i",Lnn,[I(Si)])])),[[N(ah)]]),b("ul",_nn,[b("li",{class:G(["bootstrap-styles dropdown-item p-0",{active:u.value}])},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",onClick:m[11]||(m[11]=f=>h("update:modelValue",{...n.modelValue,Paddings:{...n.modelValue.Paddings,Discriminator:"Theme"}}))},W(N(d).paddings.themeStyleLinked),1)],2),b("li",{class:G(["bootstrap-styles dropdown-item p-0",{active:!u.value}])},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",onClick:m[12]||(m[12]=f=>h("update:modelValue",{...n.modelValue,Paddings:{...n.modelValue.Paddings,Discriminator:"Custom"}}))},W(N(d).paddings.manualValue),1)],2)])]),u.value?oe("",!0):(E(),R("div",Ann,[b("div",Rnn,[I(zl,{value:n.modelValue.Paddings.CustomValue.LeftRight,"onUpdate:changeValue":m[13]||(m[13]=f=>h("update:modelValue",{...n.modelValue,Paddings:{...n.modelValue.Paddings,CustomValue:{...n.modelValue.Paddings.CustomValue,LeftRight:f}}}))},null,8,["value"])]),b("div",Dnn,[b("label",Bnn,W(N(d).paddings.leftRight),1)])])),u.value?oe("",!0):(E(),R("div",Nnn,[b("div",Inn,[I(zl,{value:n.modelValue.Paddings.CustomValue.TopBottom,"onUpdate:changeValue":m[14]||(m[14]=f=>h("update:modelValue",{...n.modelValue,Paddings:{...n.modelValue.Paddings,CustomValue:{...n.modelValue.Paddings.CustomValue,TopBottom:f}}}))},null,8,["value"])]),b("div",Mnn,[b("label",$nn,W(N(d).paddings.topBottom),1)])]))]),b("div",Onn,[b("label",Pnn,W(N(d).borderRadius.label),1),b("div",Vnn,[b("div",Wnn,[b("div",Hnn,[I(th,{id:"button-radius-checkbox",checked:n.modelValue.BorderRadius.TopLeft.Discriminator==="ButtonBorderRadiusTopLeft",onChange:m[15]||(m[15]=f=>c())},null,8,["checked"]),b("label",znn,W(N(d).borderRadius.themeStyleLinkedText),1)])])]),n.modelValue.BorderRadius.TopLeft.Discriminator==="CustomBorderRadius"?(E(),R("div",jnn,[b("div",Knn,[b("div",Unn,[b("i",qnn,[I(nE)]),I(fr,{modelValue:n.modelValue.BorderRadius.TopLeft.CustomValue,"onUpdate:modelValue":m[16]||(m[16]=f=>s(f))},null,8,["modelValue"])])])])):oe("",!0)])],64))}}),Gnn={title:"Spacer",removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the Spacer element?",paddingLabel:"Spacer size",customPaddingLabel:"Custom",separatorLabel:"Separator",paddingLabels:{themePaddingsSmall:"Small",themePaddingsMedium:"Medium",themePaddingsLarge:"Large",themePaddingsHuge:"Huge",custom:"Custom"}},Ynn={title:"Отступ",removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент Spacer ?",paddingLabel:"Размер отступа",customPaddingLabel:"Свой",separatorLabel:"Разделитель",paddingLabels:{themePaddingsSmall:"Маленький",themePaddingsMedium:"Средний",themePaddingsLarge:"Большой",themePaddingsHuge:"Гигантский",custom:"Свой"}},Rd=ht({en:Gnn,ru:Ynn}),Znn={class:"bootstrap-styles d-flex justify-content-between align-items-center mb-13"},Xnn={class:"bootstrap-styles fw-bold fs-6"},Qnn={class:"bootstrap-styles container-fluid mb-13"},eon={class:"bootstrap-styles fw-bold mb-5"},ton={class:"bootstrap-styles row g-0 mb-2"},non={class:"bootstrap-styles col-12"},oon={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},ron={id:"dropdownMenuButtonSpacerSize",type:"button",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3","data-bs-toggle":"dropdown","aria-expanded":"false"},ion={class:"bootstrap-styles d-flex justify-content-center align-items-center"},son={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuButtonSpacerSize"},aon=["onClick"],lon={class:"bootstrap-styles dropdown-item p-0"},con={key:0,class:"bootstrap-styles row g-0"},uon={class:"bootstrap-styles col-12"},don={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},hon={class:"bootstrap-styles container-fluid mb-13"},pon={class:"bootstrap-styles row g-0 mb-13"},mon={class:"bootstrap-styles fw-bold mb-5"},fon={class:"bootstrap-styles col-12 mb-2"},gon={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},yon={class:"bootstrap-styles me-1"},Con={class:"bootstrap-styles col-12"},bon=re({__name:"SpacerEditor",props:{deps:{},modelValue:{},themeColors:{}},emits:["update:modelValue","removeElement"],setup(t,{emit:e}){const n=t,o=Le({isRemoveElementWindowShown:!1}),r=["ThemePaddingsSmall","ThemePaddingsMedium","ThemePaddingsLarge","ThemePaddingsHuge"],i={title:Rd({localeKey:n.deps.localeKey}).title,removeWindowTitle:Rd({localeKey:n.deps.localeKey}).removeWindowTitle,removeWindowDescription:Rd({localeKey:n.deps.localeKey}).removeWindowDescription,paddingLabel:Rd({localeKey:n.deps.localeKey}).paddingLabel,customPaddingLabel:Rd({localeKey:n.deps.localeKey}).customPaddingLabel,separatorLabel:Rd({localeKey:n.deps.localeKey}).separatorLabel,paddingLabels:{themePaddingsSmall:Rd({localeKey:n.deps.localeKey}).paddingLabels.themePaddingsSmall,themePaddingsMedium:Rd({localeKey:n.deps.localeKey}).paddingLabels.themePaddingsMedium,themePaddingsLarge:Rd({localeKey:n.deps.localeKey}).paddingLabels.themePaddingsLarge,themePaddingsHuge:Rd({localeKey:n.deps.localeKey}).paddingLabels.themePaddingsHuge,custom:Rd({localeKey:n.deps.localeKey}).paddingLabels.custom}},s={ThemePaddingsSmall:i.paddingLabels.themePaddingsSmall,ThemePaddingsMedium:i.paddingLabels.themePaddingsMedium,ThemePaddingsLarge:i.paddingLabels.themePaddingsLarge,ThemePaddingsHuge:i.paddingLabels.themePaddingsHuge,Custom:i.paddingLabels.custom,BodyPaddingsTop:void 0,BodyPaddingsRight:void 0,BodyPaddingsBottom:void 0,BodyPaddingsLeft:void 0},a=e;return(l,c)=>(E(),R(Se,null,[b("div",Znn,[b("span",Xnn,W(i.title),1),I(YC,{onClick:c[0]||(c[0]=u=>o.isRemoveElementWindowShown=!0)}),(E(),Q(yo,{to:"body",defer:""},[o.isRemoveElementWindowShown?(E(),Q(Ch,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:i.removeWindowTitle,onCancel:c[1]||(c[1]=u=>o.isRemoveElementWindowShown=!1),onConfirmed:c[2]||(c[2]=()=>{o.isRemoveElementWindowShown=!1,a("removeElement")})},{"body-content":Bt(()=>[no(W(i.removeWindowDescription),1)]),_:1},8,["deps","headerText"])):oe("",!0)]))]),b("div",Qnn,[b("label",eon,W(i.paddingLabel),1),b("div",ton,[b("div",non,[b("div",oon,[Ke((E(),R("button",ron,[b("span",null,W(s[n.modelValue.Height.ThemePadding]??i.customPaddingLabel),1),b("i",ion,[I(Si)])])),[[N(ah)]]),b("ul",son,[(E(),R(Se,null,At(r,u=>b("li",{key:u,class:"bootstrap-styles dropdown-item p-0"},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",onClick:d=>a("update:modelValue",{...n.modelValue,Height:{ThemePadding:u}})},W(s[u]),9,aon)])),64)),b("li",lon,[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",onClick:c[3]||(c[3]=u=>a("update:modelValue",{...n.modelValue,Height:{CustomValue:n.modelValue.Height.CustomValue??10}}))},W(i.customPaddingLabel),1)])])])])]),n.modelValue.Height.CustomValue!==void 0?(E(),R("div",con,[b("div",uon,[b("div",don,[I(fr,{modelValue:n.modelValue.Height.CustomValue,"onUpdate:modelValue":c[4]||(c[4]=u=>a("update:modelValue",{...n.modelValue,Height:{CustomValue:u}}))},null,8,["modelValue"])])])])):oe("",!0)]),b("div",hon,[b("div",pon,[b("label",mon,W(i.separatorLabel),1),b("div",fon,[b("div",gon,[b("i",yon,[I(q9e)]),I(fr,{modelValue:n.modelValue.Weight,"onUpdate:modelValue":c[5]||(c[5]=u=>a("update:modelValue",{...n.modelValue,Weight:u}))},null,8,["modelValue"])])]),b("div",Con,[I(Ope,{deps:n.deps.colorEditorDeps,color:n.modelValue.Color,themeColors:n.themeColors,"onUpdate:changeColor":c[6]||(c[6]=u=>a("update:modelValue",{...n.modelValue,Color:{...u}}))},null,8,["deps","color","themeColors"])])])])],64))}}),von={},won={xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none"};function Son(t,e){return E(),R("svg",won,[...e[0]||(e[0]=[b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.7 1.8665H3.95234V4.09492H1.7V1.8665ZM0.5 0.666504H1.7H3.95234H5.15234V1.8665V4.09492V5.29492H3.95234H1.7H0.5V4.09492V1.8665V0.666504ZM12.5 0.666664H6.5V2H12.5V0.666664ZM12.5 12V10.6667H0.5V12H12.5ZM12.5 8.66666V7.33333H0.5V8.66666H12.5ZM12.5 4H6.5V5.33333H12.5V4Z",fill:"var(--gray-500)"},null,-1)])])}const G9e=ve(von,[["render",Son]]),xon={},Ton={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function kon(t,e){return E(),R("svg",Ton,[...e[0]||(e[0]=[b("path",{d:"M2 2.6665H14V3.99984H2V2.6665ZM4.66667 12.6665H14V13.9998H4.66667V12.6665ZM2 9.33317H14V10.6665H2V9.33317ZM4.66667 5.99984H14V7.33317H4.66667V5.99984Z",fill:"var(--gray-500)"},null,-1)])])}const Fon=ve(xon,[["render",kon]]),Eon={},Lon={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function _on(t,e){return E(),R("svg",Lon,[...e[0]||(e[0]=[b("path",{d:"M2 2.6665H14V3.99984H2V2.6665ZM3.33333 12.6665H12.6667V13.9998H3.33333V12.6665ZM2 9.33317H14V10.6665H2V9.33317ZM3.33333 5.99984H12.6667V7.33317H3.33333V5.99984Z",fill:"var(--gray-500)"},null,-1)])])}const Aon=ve(Eon,[["render",_on]]),Ron={},Don={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function Bon(t,e){return E(),R("svg",Don,[...e[0]||(e[0]=[b("path",{d:"M2 2.6665H14V3.99984H2V2.6665ZM2 12.6665H11.3333V13.9998H2V12.6665ZM2 9.33317H14V10.6665H2V9.33317ZM2 5.99984H11.3333V7.33317H2V5.99984Z",fill:"var(--gray-500)"},null,-1)])])}const Non=ve(Ron,[["render",Bon]]),Ion={class:"bootstrap-styles w-100 p-14 rounded-2 border bg-color-input"},Mon={class:"bootstrap-styles d-flex position-relative w-100"},$on=["data-key","onClick"],Oon=re({__name:"ContentAlignEditor",props:{contentAlign:{}},emits:["onContentAlignChanged"],setup(t,{emit:e}){const n=t,o=e,r=["Inline","Left","Center","Right"],i={Inline:G9e,Left:Non,Center:Aon,Right:Fon},s=Rt([]),a=Le({sliderStyle:{width:"0px",transform:"translateX(0px)"}}),l=u=>{gl(()=>{const d=s.value.find(h=>h.dataset.key===u);d&&(a.sliderStyle={width:`${d.offsetWidth}px`,transform:`translateX(${d.offsetLeft}px)`})})},c=u=>{o("onContentAlignChanged",u)};return Gc(()=>{l(n.contentAlign)}),on(()=>n.contentAlign,l),(u,d)=>(E(),R("div",Ion,[b("div",Mon,[b("div",{class:"slider",style:Te(a.sliderStyle)},null,4),(E(),R(Se,null,At(r,h=>b("button",{key:h,ref_for:!0,ref_key:"variantRefs",ref:s,"data-key":h,class:G(["bootstrap-styles content-align-editor__variant w-100 d-flex justify-content-center align-items-center py-14 px-1 text-gray-600 z-1 position-relative",{active:n.contentAlign===h}]),onClick:()=>c(h)},[(E(),Q(JK(i[h])))],10,$on)),64))])]))}}),Y9e=ve(Oon,[["__scopeId","data-v-3121b466"]]),Pon={maxLengthLabel:"Maximum characters"},Von={maxLengthLabel:"Максимум символов"},Won=ht({en:Pon,ru:Von}),Hon={class:"bootstrap-styles fw-bold mb-5"},zon={class:"bootstrap-styles input-number__wrapper bg-color-input border rounded-2 py-1 px-3 d-flex position-relative mb-13"},jon=re({__name:"TruncateSpanEditor",props:{deps:{},truncateValueExpression:{}},emits:["truncateValueExpressionUpdated"],setup(t,{emit:e}){const n=t,o={maxLengthLabel:Won({localeKey:n.deps.localeKey}).maxLengthLabel},r=e;return(i,s)=>(E(),R(Se,null,[b("label",Hon,W(o.maxLengthLabel),1),b("div",zon,[I(fr,{modelValue:n.truncateValueExpression.MaxLength,"onUpdate:modelValue":s[0]||(s[0]=a=>r("truncateValueExpressionUpdated",{...n.truncateValueExpression,MaxLength:a}))},null,8,["modelValue"])])],64))}}),Uke={ConcatStringExpressions:t=>t!==void 0,ContextValueExpression:t=>t!==void 0,ConstValueExpression:t=>t!==void 0,NumberToStringExpression:t=>t!==void 0,TruncateValueExpression:t=>t!==void 0,DataSource:t=>t!==void 0},Kon={title:"Text",removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the Text element?",inputTextPlaceholder:"Text...",textStyleLabel:"Style",inputHRefPlaceholder:"https://example.com",minHeightLabel:"Minimum number of lines",cannotBeEditedLabel:"Cannot be edited",href:{hrefLabel:"Click link",hrefPlaceholder:"Optional",errorNotification:"The link must contain https://, http://, mailto:, tel:"},contentAlign:{label:"Alignment"}},Uon={title:"Текст",removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент Text ?",inputTextPlaceholder:"Текст...",textStyleLabel:"Стиль",inputHRefPlaceholder:"https://example.com",minHeightLabel:"Минимальное кол-во строк",cannotBeEditedLabel:"Нельзя редактировать",href:{hrefLabel:"Ссылка при клике",hrefPlaceholder:"Не обязательно",errorNotification:"Ссылка должна содержать https://, http://, mailto:, tel:"},contentAlign:{label:"Выравнивание"}},qon=ht({en:Kon,ru:Uon}),Jon={class:"bootstrap-styles d-flex justify-content-between align-items-center mb-13"},Gon={class:"bootstrap-styles fw-bold fs-6"},Yon={key:0,class:"bootstrap-styles row g-0 mb-13"},Zon={class:"bootstrap-styles col-12"},Xon=["placeholder","value"],Qon={key:2,class:"bootstrap-styles row g-0 mb-13"},ern={class:"bootstrap-styles col-12"},trn=["placeholder"],nrn={class:"bootstrap-styles container-fluid mt-1"},orn={class:"bootstrap-styles col-12"},rrn={class:"bootstrap-styles fw-bold mb-5"},irn={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},srn=["placeholder"],arn=["value"],lrn={class:"bootstrap-styles fw-bold mb-5"},crn={class:"bootstrap-styles container-fluid mb-13"},urn={class:"bootstrap-styles fw-bold mb-5"},drn={key:4,class:"bootstrap-styles container-fluid mb-13"},hrn={class:"bootstrap-styles fw-bold mb-5"},prn={class:"bootstrap-styles input-number__wrapper bg-color-input border rounded-2 py-1 px-3 d-flex position-relative"},mrn=re({__name:"SpanEditor",props:{deps:{},modelValue:{},themeColors:{},themeFontFamily:{},themeFontSettings:{}},emits:["update:modelValue","removeElement"],setup(t,{emit:e}){const n=t,o=Le({isRemoveElementWindowShown:!1,isValid:!0,hrefValue:n.modelValue.HRef.ConstValueExpression?.Value??""}),r=n.deps.dataSourceEditorPlugin,i=l=>{if(l===""){o.isValid=!0,a("update:modelValue",{...n.modelValue,IsLink:!1,HRef:{ConstValueExpression:{Value:l}}});return}if(c$(l))o.isValid=!0,a("update:modelValue",{...n.modelValue,IsLink:!0,HRef:{ConstValueExpression:{Value:l}}});else{o.isValid=!1;return}},s=qon({localeKey:n.deps.localeKey}),a=e;return(l,c)=>(E(),R(Se,null,[b("div",Jon,[b("span",Gon,W(N(s).title),1),I(YC,{onClick:c[0]||(c[0]=u=>o.isRemoveElementWindowShown=!0)}),(E(),Q(yo,{to:"body",defer:""},[o.isRemoveElementWindowShown?(E(),Q(Ch,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:N(s).removeWindowTitle,onCancel:c[1]||(c[1]=u=>o.isRemoveElementWindowShown=!1),onConfirmed:c[2]||(c[2]=()=>{o.isRemoveElementWindowShown=!1,a("removeElement")})},{"body-content":Bt(()=>[no(W(N(s).removeWindowDescription),1)]),_:1},8,["deps","headerText"])):oe("",!0)]))]),N(Yd)(n.modelValue.Text)?(E(),R("div",Yon,[b("div",Zon,[b("textarea",{class:"bootstrap-styles bg-color-input border rounded-2 w-100 py-1 px-3",placeholder:N(s).inputTextPlaceholder,rows:"10",value:n.modelValue.Text.ConstValueExpression.Value,onInput:c[3]||(c[3]=u=>a("update:modelValue",{...n.modelValue,Text:{ConstValueExpression:{Value:u.target.value}}}))},null,40,Xon)])])):N(Uke).DataSource(n.modelValue.Text.DataSource)?(E(),Q(N(r),{key:1,class:"bootstrap-styles row g-0 mb-13",dataSource:n.modelValue.Text.DataSource,onDataSourceUpdated:c[4]||(c[4]=u=>a("update:modelValue",{...n.modelValue,Text:{DataSource:u}}))},null,8,["dataSource"])):(E(),R("div",Qon,[b("div",ern,[b("input",{class:"bootstrap-styles bg-color-input border rounded-2 w-100 py-1 px-3",disabled:"",placeholder:N(s).cannotBeEditedLabel},null,8,trn)])])),N(Uke).TruncateValueExpression(n.modelValue.Text.TruncateValueExpression)?(E(),Q(jon,{key:3,deps:n.deps.truncateSpanEditorDeps,truncateValueExpression:n.modelValue.Text.TruncateValueExpression,onTruncateValueExpressionUpdated:c[5]||(c[5]=u=>a("update:modelValue",{...n.modelValue,Text:{TruncateValueExpression:u}}))},null,8,["deps","truncateValueExpression"])):oe("",!0),b("div",nrn,[b("div",orn,[b("label",rrn,W(N(s).href.hrefLabel),1),b("div",{class:G(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex mb-14",{"not-valid-url":!o.isValid}])},[b("i",irn,[I(CC)]),n.modelValue.HRef.ConstValueExpression&&N(Yd)(n.modelValue.HRef)?Ke((E(),R("input",{key:0,"onUpdate:modelValue":c[6]||(c[6]=u=>o.hrefValue=u),type:"text",class:"bootstrap-styles w-100",placeholder:N(s).href.hrefPlaceholder,onInput:c[7]||(c[7]=u=>i(u.target.value))},null,40,srn)),[[Ea,o.hrefValue]]):(E(),R("input",{key:1,disabled:"",class:"bootstrap-styles w-100",value:N(s).cannotBeEditedLabel},null,8,arn))],2),b("div",{class:G(["bootstrap-styles text-start add-link-notification mb-14",{invisible:o.isValid}])},W(N(s).href.errorNotification),3)])]),b("label",lrn,W(N(s).textStyleLabel),1),I(Ppe,{deps:n.deps.fontStyleEditorDeps,fontStyle:n.modelValue.Style,themeColors:n.themeColors,themeFontFamily:n.themeFontFamily,themeFontSettings:n.themeFontSettings,"onUpdate:changeTextStyles":c[8]||(c[8]=u=>{a("update:modelValue",{...n.modelValue,Style:u})})},null,8,["deps","fontStyle","themeColors","themeFontFamily","themeFontSettings"]),b("div",crn,[b("label",urn,W(N(s).contentAlign.label),1),I(Y9e,{class:"bootstrap-styles mb-5",contentAlign:n.modelValue.ContentAlign,onOnContentAlignChanged:c[9]||(c[9]=u=>a("update:modelValue",{...n.modelValue,ContentAlign:u}))},null,8,["contentAlign"])]),n.modelValue.ContentAlign!=="Inline"?(E(),R("div",drn,[b("label",hrn,W(N(s).minHeightLabel),1),b("div",prn,[I(fr,{modelValue:n.modelValue.MinNumberOfLines,"onUpdate:modelValue":c[10]||(c[10]=u=>a("update:modelValue",{...n.modelValue,MinNumberOfLines:u}))},null,8,["modelValue"])])])):oe("",!0)],64))}}),frn={title:"Unsubscribe link text",removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the Unsubscribe link text element?",inputTextPlaceholder:"Text...",fontStyleLabel:"Style",contentAlign:{label:"Alignment"}},grn={title:"Текст отписки от рассылки",removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент Текст отписки от рассылки ?",inputTextPlaceholder:"Текст...",fontStyleLabel:"Стиль",contentAlign:{label:"Выравнивание"}},Rx=ht({en:frn,ru:grn}),yrn={class:"bootstrap-styles d-flex justify-content-between align-items-center mb-13"},Crn={class:"bootstrap-styles fw-bold fs-6"},brn={key:0,class:"bootstrap-styles row g-0 mb-13"},vrn={class:"bootstrap-styles col-12 mb-1"},wrn=["placeholder","value"],Srn={class:"bootstrap-styles fw-bold mb-5"},xrn={class:"bootstrap-styles container-fluid mb-13"},Trn={class:"bootstrap-styles fw-bold mb-5"},krn=re({__name:"UnsubscribeLinkEditor",props:{deps:{},modelValue:{},themeColors:{},themeFontFamily:{},themeFontSettings:{}},emits:["onModelValueChanged","removeElement"],setup(t,{emit:e}){const n=t,o=Le({isRemoveElementWindowShown:!1}),r={title:Rx({localeKey:n.deps.localeKey}).title,removeWindowTitle:Rx({localeKey:n.deps.localeKey}).removeWindowTitle,removeWindowDescription:Rx({localeKey:n.deps.localeKey}).removeWindowDescription,inputTextPlaceholder:Rx({localeKey:n.deps.localeKey}).inputTextPlaceholder,fontStyleLabel:Rx({localeKey:n.deps.localeKey}).fontStyleLabel,contentAlign:{label:Rx({localeKey:n.deps.localeKey}).contentAlign.label}},i=e;return(s,a)=>(E(),R(Se,null,[b("div",yrn,[b("span",Crn,W(r.title),1),I(YC,{onClick:a[0]||(a[0]=l=>o.isRemoveElementWindowShown=!0)}),(E(),Q(yo,{to:"body",defer:""},[o.isRemoveElementWindowShown?(E(),Q(Ch,{key:0,headerText:r.removeWindowTitle,deps:n.deps.removeConfirmModalWindowDeps,onCancel:a[1]||(a[1]=l=>o.isRemoveElementWindowShown=!1),onConfirmed:a[2]||(a[2]=()=>{o.isRemoveElementWindowShown=!1,i("removeElement")})},{"body-content":Bt(()=>[no(W(r.removeWindowDescription),1)]),_:1},8,["headerText","deps"])):oe("",!0)]))]),n.modelValue.Text?(E(),R("div",brn,[b("div",vrn,[b("textarea",{class:"bootstrap-styles bg-color-input border rounded-2 w-100 py-1 px-3",placeholder:r.inputTextPlaceholder,rows:"5",value:n.modelValue.Text,onInput:a[3]||(a[3]=l=>i("onModelValueChanged",{...n.modelValue,Text:l.target.value}))},null,40,wrn)])])):oe("",!0),b("label",Srn,W(r.fontStyleLabel),1),I(Ppe,{deps:n.deps.fontStyleEditorDeps,fontStyle:n.modelValue.Style,themeColors:n.themeColors,themeFontFamily:n.themeFontFamily,themeFontSettings:n.themeFontSettings,"onUpdate:changeTextStyles":a[4]||(a[4]=l=>{i("onModelValueChanged",{...n.modelValue,Style:l})})},null,8,["deps","fontStyle","themeColors","themeFontFamily","themeFontSettings"]),b("div",xrn,[b("label",Trn,W(r.contentAlign.label),1),I(Y9e,{class:"bootstrap-styles mb-5",contentAlign:n.modelValue.ContentAlign,onOnContentAlignChanged:a[5]||(a[5]=l=>i("onModelValueChanged",{...n.modelValue,ContentAlign:l}))},null,8,["contentAlign"])])],64))}}),Frn={title:"Rich text",removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete this element?",minHeightLabel:"Minimum height (px)"},Ern={title:"Текст",removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент ?",minHeightLabel:"Минимальная высота в пикселях"},hO=ht({en:Frn,ru:Ern}),Lrn={class:"bootstrap-styles d-flex justify-content-between align-items-center mb-13"},_rn={class:"bootstrap-styles fw-bold fs-6"},Arn={class:"bootstrap-styles fw-bold mb-5"},Rrn={class:"bootstrap-styles input-number__wrapper bg-color-input border rounded-2 py-1 px-3 d-flex position-relative"},Drn=re({__name:"RichTextEditor",props:{deps:{},modelValue:{}},emits:["update:modelValue","removeElement"],setup(t,{emit:e}){const n=t,o=Le({isRemoveElementWindowShown:!1}),r={title:hO({localeKey:n.deps.localeKey}).title,removeWindowTitle:hO({localeKey:n.deps.localeKey}).removeWindowTitle,removeWindowDescription:hO({localeKey:n.deps.localeKey}).removeWindowDescription,minHeightLabel:hO({localeKey:n.deps.localeKey}).minHeightLabel},i=e;return(s,a)=>(E(),R(Se,null,[b("div",Lrn,[b("span",_rn,W(r.title),1),I(YC,{onClick:a[0]||(a[0]=l=>o.isRemoveElementWindowShown=!0)}),(E(),Q(yo,{to:"body",defer:""},[o.isRemoveElementWindowShown?(E(),Q(Ch,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:r.removeWindowTitle,onCancel:a[1]||(a[1]=l=>o.isRemoveElementWindowShown=!1),onConfirmed:a[2]||(a[2]=()=>{o.isRemoveElementWindowShown=!1,i("removeElement")})},{"body-content":Bt(()=>[no(W(r.removeWindowDescription),1)]),_:1},8,["deps","headerText"])):oe("",!0)]))]),b("label",Arn,W(r.minHeightLabel),1),b("div",Rrn,[I(fr,{modelValue:n.modelValue.MinHeight,"onUpdate:modelValue":a[3]||(a[3]=l=>i("update:modelValue",{...n.modelValue,MinHeight:l}))},null,8,["modelValue"])])],64))}}),Brn=["placeholder","value"],Nrn=re({__name:"SrcEditor",props:{src:{},placeholder:{}},emits:["onSrcUpdated"],setup(t,{emit:e}){const n=t,o=Le({src:n.src,isNotValid:!1}),r=a=>{try{return new URL(a),/\.(png|jpe?g|gif)$/i.test(a)}catch{return!1}},i=Pde(a=>{if(o.isNotValid=!1,!r(a)){o.isNotValid=!0,o.src=a;return}const l=new Image;l.onload=()=>{l.naturalWidth>0&&l.naturalHeight>0?s("onSrcUpdated",a):o.isNotValid=!0},l.onerror=()=>{o.isNotValid=!0},l.src=a,o.src=a},500);on(()=>n.src,a=>{o.src=a,o.isNotValid=!1});const s=e;return(a,l)=>(E(),R("input",{class:G(["bootstrap-styles bg-color-input border rounded-2 w-100 py-1 px-3",{"border-danger":o.isNotValid}]),placeholder:n.placeholder,value:o.src,onInput:l[0]||(l[0]=c=>N(i)(c.target.value))},null,42,Brn))}}),Z9e=ve(Nrn,[["__scopeId","data-v-67ecb6b0"]]),Irn={title:"Image",removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the Image element?",cannotBeEditedLabel:"Cannot be edited",contentAlign:{label:"Alignment"},src:{srcLabel:"Image link",srcPlaceholder:"https://example.jpg"},alt:{altLabel:"Alt text",altPlaceholder:"Alt text..."},href:{hrefLabel:"Click link",hrefPlaceholder:"Optional",errorNotification:"The link must contain https://, http://, mailto:, tel:"},retinaLabel:"For retina screens",responsiveLabel:"Responsive image",borderRadius:{label:"Border radius",themeStyleLinkedText:"From component settings"}},Mrn={title:"Изображение",removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент Image ?",cannotBeEditedLabel:"Нельзя редактировать",contentAlign:{label:"Выравнивание"},src:{srcLabel:"Ссылка на картинку",srcPlaceholder:"https://example.jpg"},alt:{altLabel:"Альтернативный текст",altPlaceholder:"Альтернативный текст..."},href:{hrefLabel:"Ссылка при клике",hrefPlaceholder:"Не обязательно",errorNotification:"Ссылка должна содержать https://, http://, mailto:, tel:"},retinaLabel:"Для retina-экранов",responsiveLabel:"Адаптированное изображение",borderRadius:{label:"Скругление",themeStyleLinkedText:"Из настроек компонента"}},$rn=ht({en:Irn,ru:Mrn}),Orn={class:"bootstrap-styles d-flex justify-content-between align-items-center mb-13"},Prn={class:"bootstrap-styles fw-bold fs-6"},Vrn={class:"bootstrap-styles row g-0 mb-13"},Wrn={key:0,class:"bootstrap-styles col-12 mb-5"},Hrn={class:"bootstrap-styles preview__detail__picture border rounded-1 w-100 position-relative d-flex justify-content-center align-items-center",style:{height:"124px"}},zrn={key:1},jrn={class:"bootstrap-styles fw-bold mb-5"},Krn={key:2,class:"bootstrap-styles col-12 mb-13"},Urn={class:"bootstrap-styles fw-bold mb-5 disabled"},qrn={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},Jrn={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},Grn=["placeholder"],Yrn={key:3,class:"bootstrap-styles col-12 mb-13"},Zrn={class:"bootstrap-styles fw-bold mb-5"},Xrn={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},Qrn=["placeholder","value"],ein={key:4,class:"bootstrap-styles col-12 mb-13"},tin={class:"bootstrap-styles fw-bold mb-5 disabled"},nin={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},oin=["placeholder"],rin={class:"bootstrap-styles col-12 mb-5"},iin={class:"bootstrap-styles d-flex align-items-center"},sin={for:"retina-checkbox",class:"label__checkbox-input"},ain={class:"bootstrap-styles col-12"},lin={class:"bootstrap-styles d-flex align-items-center"},cin={for:"responsive-checkbox",class:"label__checkbox-input"},uin={class:"bootstrap-styles container-fluid mt-1"},din={class:"bootstrap-styles col-12"},hin={class:"bootstrap-styles fw-bold mb-5"},pin={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},min=["placeholder"],fin=["value"],gin={class:"bootstrap-styles container-fluid mb-13"},yin={class:"bootstrap-styles fw-bold mb-5"},Cin={class:"bootstrap-styles border rounded-2 d-flex bg-color-input"},bin={class:"bootstrap-styles input__switch_wrapper d-flex justify-content-between p-14 w-100"},vin={class:"bootstrap-styles row g-0 mb-13"},win={class:"bootstrap-styles fw-bold mb-5"},Sin={class:"bootstrap-styles col-12 mb-5"},xin={class:"bootstrap-styles d-flex align-items-center"},Tin={for:"image-radius-checkbox",class:"label__checkbox-input"},kin={key:0,class:"bootstrap-styles col-12"},Fin={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},Ein={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},Lin=re({__name:"ImageEditor",props:{deps:{},modelValue:{},themeBorderRadiusBanner:{},themeColors:{}},emits:["update:modelValue","removeElement"],setup(t,{emit:e}){const n=t,o=Le({isRemoveElementWindowShown:!1,isValid:!0,hrefValue:n.modelValue.HRef.ConstValueExpression?.Value??""}),r=h=>({TopLeft:{CustomValue:h.topLeft,Discriminator:"CustomBorderRadius"},TopRight:{CustomValue:h.topRight,Discriminator:"CustomBorderRadius"},BottomLeft:{CustomValue:h.bottomLeft,Discriminator:"CustomBorderRadius"},BottomRight:{CustomValue:h.bottomRight,Discriminator:"CustomBorderRadius"}}),i=h=>{d("update:modelValue",{...n.modelValue,BorderRadius:r({topLeft:h,topRight:h,bottomLeft:h,bottomRight:h})})},s=h=>r({topLeft:h.TopLeft.CustomValue??n.themeBorderRadiusBanner.TopLeft,topRight:h.TopRight.CustomValue??n.themeBorderRadiusBanner.TopRight,bottomLeft:h.BottomLeft.CustomValue??n.themeBorderRadiusBanner.BottomLeft,bottomRight:h.BottomRight.CustomValue??n.themeBorderRadiusBanner.BottomRight}),a=h=>({TopLeft:{CustomValue:h.TopLeft.CustomValue,Discriminator:"BannerBorderRadiusTopLeft"},TopRight:{CustomValue:h.TopRight.CustomValue,Discriminator:"BannerBorderRadiusTopRight"},BottomLeft:{CustomValue:h.BottomLeft.CustomValue,Discriminator:"BannerBorderRadiusBottomLeft"},BottomRight:{CustomValue:h.BottomRight.CustomValue,Discriminator:"BannerBorderRadiusBottomRight"}}),l=()=>{d("update:modelValue",{...n.modelValue,BorderRadius:n.modelValue.BorderRadius.TopLeft.Discriminator=="BannerBorderRadiusTopLeft"?s(n.modelValue.BorderRadius):a(n.modelValue.BorderRadius)})},c=h=>{if(h===""){o.isValid=!0,d("update:modelValue",{...n.modelValue,IsLink:!1,HRef:{ConstValueExpression:{Value:h}}});return}if(c$(h))o.isValid=!0,d("update:modelValue",{...n.modelValue,IsLink:!0,HRef:{ConstValueExpression:{Value:h}}});else{o.isValid=!1;return}},u=$rn({localeKey:n.deps.localeKey}),d=e;return(h,p)=>(E(),R(Se,null,[b("div",Orn,[b("span",Prn,W(N(u).title),1),I(YC,{onClick:p[0]||(p[0]=m=>o.isRemoveElementWindowShown=!0)}),(E(),Q(yo,{to:"body",defer:""},[o.isRemoveElementWindowShown?(E(),Q(Ch,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:N(u).removeWindowTitle,onCancel:p[1]||(p[1]=m=>o.isRemoveElementWindowShown=!1),onConfirmed:p[2]||(p[2]=()=>{o.isRemoveElementWindowShown=!1,d("removeElement")})},{"body-content":Bt(()=>[no(W(N(u).removeWindowDescription),1)]),_:1},8,["deps","headerText"])):oe("",!0)]))]),b("div",Vrn,[N(Yd)(n.modelValue.Src)?(E(),R("div",Wrn,[b("div",Hrn,[b("span",{class:"bootstrap-styles w-100 h-100 preview__detail__picture-img",style:Te({backgroundImage:`url('${n.modelValue.Src.ConstValueExpression.Value}')`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"50% 50%"})},null,4)])])):oe("",!0),N(Yd)(n.modelValue.Src)?(E(),R("div",zrn,[b("label",jrn,W(N(u).src.srcLabel),1),I(Z9e,{class:"bootstrap-styles col-12 mb-13",src:n.modelValue.Src.ConstValueExpression.Value,placeholder:N(u).src.srcPlaceholder,onOnSrcUpdated:p[3]||(p[3]=m=>d("update:modelValue",{...n.modelValue,Src:{ConstValueExpression:{Value:m}}}))},null,8,["src","placeholder"])])):(E(),R("div",Krn,[b("label",Urn,W(N(u).src.srcLabel),1),b("div",qrn,[b("i",Jrn,[I(CC)]),b("input",{type:"text",disabled:"",class:"bootstrap-styles w-100",placeholder:N(u).cannotBeEditedLabel},null,8,Grn)])])),N(Yd)(n.modelValue.Alt)?(E(),R("div",Yrn,[b("label",Zrn,W(N(u).alt.altLabel),1),b("div",Xrn,[b("input",{type:"text",class:"bootstrap-styles w-100",placeholder:N(u).alt.altPlaceholder,value:n.modelValue.Alt.ConstValueExpression?.Value,onInput:p[4]||(p[4]=m=>d("update:modelValue",{...n.modelValue,Alt:{ConstValueExpression:{Value:m.target.value}}}))},null,40,Qrn)])])):(E(),R("div",ein,[b("label",tin,W(N(u).alt.altLabel),1),b("div",nin,[b("input",{type:"text",disabled:"",class:"bootstrap-styles w-100",placeholder:N(u).cannotBeEditedLabel},null,8,oin)])])),b("div",rin,[b("div",iin,[I(th,{id:"retina-checkbox",checked:n.modelValue.IsRetina,onChange:p[5]||(p[5]=m=>d("update:modelValue",{...n.modelValue,IsRetina:!n.modelValue.IsRetina}))},null,8,["checked"]),b("label",sin,W(N(u).retinaLabel),1)])]),b("div",ain,[b("div",lin,[I(th,{id:"responsive-checkbox",checked:n.modelValue.IsResponsive,onChange:p[6]||(p[6]=m=>d("update:modelValue",{...n.modelValue,IsResponsive:!n.modelValue.IsResponsive}))},null,8,["checked"]),b("label",cin,W(N(u).responsiveLabel),1)])])]),b("div",uin,[b("div",din,[b("label",hin,W(N(u).href.hrefLabel),1),b("div",{class:G(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex mb-14",{"not-valid-url":!o.isValid}])},[b("i",pin,[I(CC)]),n.modelValue.HRef.ConstValueExpression&&N(Yd)(n.modelValue.HRef)?Ke((E(),R("input",{key:0,"onUpdate:modelValue":p[7]||(p[7]=m=>o.hrefValue=m),type:"text",class:"bootstrap-styles w-100",placeholder:N(u).href.hrefPlaceholder,onInput:p[8]||(p[8]=m=>c(m.target.value))},null,40,min)),[[Ea,o.hrefValue]]):(E(),R("input",{key:1,disabled:"",class:"bootstrap-styles w-100",value:N(u).cannotBeEditedLabel},null,8,fin))],2),b("div",{class:G(["bootstrap-styles text-start add-link-notification mb-14",{invisible:o.isValid}])},W(N(u).href.errorNotification),3)])]),b("div",gin,[b("label",yin,W(N(u).contentAlign.label),1),b("div",Cin,[b("div",bin,[b("button",{class:G(["bootstrap-styles input__switch_button w-100 d-flex justify-content-center align-items-center py-14 px-1",{active:n.modelValue.ContentAlign==="Inline"}]),onClick:p[9]||(p[9]=m=>d("update:modelValue",{...n.modelValue,ContentAlign:"Inline"}))},[I(G9e)],2),b("button",{class:G(["bootstrap-styles input__switch_button w-100 d-flex justify-content-center align-items-center py-14 px-1",{active:n.modelValue.ContentAlign==="Left"}]),onClick:p[10]||(p[10]=m=>d("update:modelValue",{...n.modelValue,ContentAlign:"Left"}))},[I(j9e)],2),b("button",{class:G(["bootstrap-styles input__switch_button w-100 d-flex justify-content-center align-items-center py-14 px-1 text-gray-600",{active:n.modelValue.ContentAlign==="Center"}]),onClick:p[11]||(p[11]=m=>d("update:modelValue",{...n.modelValue,ContentAlign:"Center"}))},[I(K9e)],2),b("button",{class:G(["bootstrap-styles input__switch_button w-100 d-flex justify-content-center align-items-center py-14 px-1 text-gray-600",{active:n.modelValue.ContentAlign==="Right"}]),onClick:p[12]||(p[12]=m=>d("update:modelValue",{...n.modelValue,ContentAlign:"Right"}))},[I(U9e)],2)])])]),I(J9e,{deps:n.deps.borderEditorDeps,modelValue:n.modelValue.Border,themeColors:n.themeColors,"onUpdate:modelValue":p[13]||(p[13]=m=>d("update:modelValue",{...n.modelValue,Border:m}))},null,8,["deps","modelValue","themeColors"]),b("div",vin,[b("label",win,W(N(u).borderRadius.label),1),b("div",Sin,[b("div",xin,[I(th,{id:"image-radius-checkbox",checked:n.modelValue.BorderRadius.TopLeft.Discriminator==="BannerBorderRadiusTopLeft",onChange:p[14]||(p[14]=m=>l())},null,8,["checked"]),b("label",Tin,W(N(u).borderRadius.themeStyleLinkedText),1)])]),n.modelValue.BorderRadius.TopLeft.Discriminator==="CustomBorderRadius"?(E(),R("div",kin,[b("div",Fin,[b("i",Ein,[I(nE)]),I(fr,{modelValue:n.modelValue.BorderRadius.TopLeft.CustomValue,"onUpdate:modelValue":p[15]||(p[15]=m=>i(m))},null,8,["modelValue"])])])):oe("",!0)])],64))}}),_in={title:"Image",removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the Image element?",srcLabel:"Image link",srcPlaceholder:"https://example.jpg",href:{hrefLabel:"Click link",hrefPlaceholder:"Optional",errorNotification:"The link must contain https://, http://, mailto:, tel:"},cannotBeEditedLabel:"Cannot be edited"},Ain={title:"Изображение",removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент ?",srcLabel:"Ссылка на картинку",srcPlaceholder:"https://example.jpg",href:{hrefLabel:"Ссылка при клике",hrefPlaceholder:"Не обязательно",errorNotification:"Ссылка должна содержать https://, http://, mailto:, tel:"},cannotBeEditedLabel:"Нельзя редактировать"},Rin=ht({en:_in,ru:Ain}),Din={class:"bootstrap-styles d-flex justify-content-between align-items-center mb-13"},Bin={class:"bootstrap-styles fw-bold fs-6"},Nin={class:"bootstrap-styles row g-0 mb-13"},Iin={key:0,class:"bootstrap-styles col-12 mb-5"},Min={class:"bootstrap-styles preview__detail__picture border rounded-1 w-100 position-relative d-flex justify-content-center align-items-center",style:{height:"124px"}},$in={key:1},Oin={class:"bootstrap-styles fw-bold mb-5",for:"background-image-src-input"},Pin={key:2,class:"bootstrap-styles col-12 mb-13"},Vin={class:"bootstrap-styles fw-bold mb-5 disabled"},Win={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},Hin=["placeholder"],zin={class:"bootstrap-styles container-fluid"},jin={class:"bootstrap-styles col-12"},Kin={class:"bootstrap-styles fw-bold mb-5",for:"background-image-href-input"},Uin={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},qin=["placeholder"],Jin=["value"],Gin=re({__name:"BackgroundImageEditor",props:{deps:{},modelValue:{}},emits:["update:modelValue","removeElement"],setup(t,{emit:e}){const n=t,o=Le({isRemoveElementWindowShown:!1,isValid:!0,hrefValue:n.modelValue.HRef.ConstValueExpression?.Value??""}),r=Rin({localeKey:n.deps.localeKey}),i=a=>{if(a===""){o.isValid=!0,s("update:modelValue",{...n.modelValue,IsLink:!1,HRef:{ConstValueExpression:{Value:a}}});return}if(c$(a))o.isValid=!0,s("update:modelValue",{...n.modelValue,IsLink:!0,HRef:{ConstValueExpression:{Value:a}}});else{o.isValid=!1;return}},s=e;return(a,l)=>(E(),R(Se,null,[b("div",Din,[b("span",Bin,W(N(r).title),1),I(YC,{onClick:l[0]||(l[0]=c=>o.isRemoveElementWindowShown=!0)}),(E(),Q(yo,{to:"body",defer:""},[o.isRemoveElementWindowShown?(E(),Q(Ch,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:N(r).removeWindowTitle,onCancel:l[1]||(l[1]=c=>o.isRemoveElementWindowShown=!1),onConfirmed:l[2]||(l[2]=()=>{o.isRemoveElementWindowShown=!1,s("removeElement")})},{"body-content":Bt(()=>[no(W(N(r).removeWindowDescription),1)]),_:1},8,["deps","headerText"])):oe("",!0)]))]),b("div",Nin,[N(Yd)(n.modelValue.Src)?(E(),R("div",Iin,[b("div",Min,[b("span",{class:"bootstrap-styles w-100 h-100 preview__detail__picture-img",style:Te({backgroundImage:`url('${n.modelValue.Src.ConstValueExpression.Value}')`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"50% 50%"})},null,4)])])):oe("",!0),N(Yd)(n.modelValue.Src)?(E(),R("div",$in,[b("label",Oin,W(N(r).srcLabel),1),I(Z9e,{id:"background-image-src-input",class:"bootstrap-styles col-12 mb-13",src:n.modelValue.Src.ConstValueExpression.Value,placeholder:N(r).srcPlaceholder,onOnSrcUpdated:l[3]||(l[3]=c=>s("update:modelValue",{...n.modelValue,Src:{ConstValueExpression:{Value:c}}}))},null,8,["src","placeholder"])])):(E(),R("div",Pin,[b("label",Vin,W(N(r).srcLabel),1),b("div",Win,[b("input",{type:"text",disabled:"",class:"bootstrap-styles w-100",placeholder:N(r).cannotBeEditedLabel},null,8,Hin)])])),b("div",zin,[b("div",jin,[b("label",Kin,W(N(r).href.hrefLabel),1),b("div",{class:G(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex",{"not-valid-url":!o.isValid}])},[b("i",Uin,[I(CC)]),n.modelValue.HRef.ConstValueExpression&&N(Yd)(n.modelValue.HRef)?Ke((E(),R("input",{key:0,id:"background-image-href-input",type:"text",class:"bootstrap-styles w-100",placeholder:N(r).href.hrefPlaceholder,"onUpdate:modelValue":l[4]||(l[4]=c=>o.hrefValue=c),onInput:l[5]||(l[5]=c=>i(c.target.value))},null,40,qin)),[[Ea,o.hrefValue]]):(E(),R("input",{key:1,disabled:"",class:"bootstrap-styles w-100",value:N(r).cannotBeEditedLabel},null,8,Jin))],2),b("div",{class:G(["bootstrap-styles text-start add-link-notification mb-14",{invisible:o.isValid}])},W(N(r).href.errorNotification),3)])])])],64))}}),Yin={class:"bootstrap-styles px-7 editor__wrapper"},Zin=re({__name:"ElementsEditor",props:{deps:{},element:{},path:{},theme:{}},emits:["elementUpdatedEvent","removeElement"],setup(t,{emit:e}){const n=t,o=e,r={span:i=>i!==void 0,richText:i=>i!==void 0,spacer:i=>i!==void 0,image:i=>i!==void 0,button:i=>i!==void 0,unsubscribeLink:i=>i!==void 0,backgroundImage:i=>i!==void 0};return(i,s)=>(E(),R("div",Yin,[r.backgroundImage(n.element.BackgroundImage)?(E(),Q(Gin,{key:`backgroundImage-${n.path.join(".")}`,deps:n.deps.backgroundImageEditorDeps,modelValue:n.element.BackgroundImage,"onUpdate:modelValue":s[0]||(s[0]=a=>o("elementUpdatedEvent",{element:{BackgroundImage:a},path:n.path})),onRemoveElement:s[1]||(s[1]=()=>o("removeElement",{path:n.path}))},null,8,["deps","modelValue"])):oe("",!0),r.image(n.element.Image)?(E(),Q(Lin,{key:`image-${n.path.join(".")}`,deps:n.deps.imageEditorDeps,modelValue:n.element.Image,themeBorderRadiusBanner:n.theme.BorderRadiusBanner,themeColors:n.theme.Colors,"onUpdate:modelValue":s[2]||(s[2]=a=>o("elementUpdatedEvent",{element:{Image:a},path:n.path})),onRemoveElement:s[3]||(s[3]=()=>o("removeElement",{path:n.path}))},null,8,["deps","modelValue","themeBorderRadiusBanner","themeColors"])):oe("",!0),r.button(n.element.Button)?(E(),Q(Jnn,{key:`button-${n.path.join(".")}`,deps:n.deps.buttonEditorDeps,modelValue:n.element.Button,themeBorderRadiusButton:n.theme.BorderRadiusButton,themeColors:n.theme.Colors,themeFontFamily:n.theme.FontFamily,themeFontSettings:n.theme.FontSettingsPresets,"onUpdate:modelValue":s[4]||(s[4]=a=>o("elementUpdatedEvent",{element:{Button:a},path:n.path})),onRemoveElement:s[5]||(s[5]=()=>o("removeElement",{path:n.path}))},null,8,["deps","modelValue","themeBorderRadiusButton","themeColors","themeFontFamily","themeFontSettings"])):oe("",!0),r.span(n.element.SpanText)?(E(),Q(mrn,{key:`span-${n.path.join(".")}`,deps:n.deps.spanEditorDeps,modelValue:n.element.SpanText,themeColors:n.theme.Colors,themeFontFamily:n.theme.FontFamily,themeFontSettings:n.theme.FontSettingsPresets,"onUpdate:modelValue":s[6]||(s[6]=a=>o("elementUpdatedEvent",{element:{SpanText:a},path:n.path})),onRemoveElement:s[7]||(s[7]=()=>o("removeElement",{path:n.path}))},null,8,["deps","modelValue","themeColors","themeFontFamily","themeFontSettings"])):oe("",!0),r.richText(n.element.RichText)?(E(),Q(Drn,{key:`richText-${n.path.join(".")}`,deps:n.deps.richTextEditorDeps,modelValue:n.element.RichText,"onUpdate:modelValue":s[8]||(s[8]=a=>o("elementUpdatedEvent",{element:{RichText:a},path:n.path})),onRemoveElement:s[9]||(s[9]=()=>o("removeElement",{path:n.path}))},null,8,["deps","modelValue"])):oe("",!0),r.spacer(n.element.Spacer)?(E(),Q(bon,{key:`spacer-${n.path.join(".")}`,deps:n.deps.spacerEditorDeps,modelValue:n.element.Spacer,themeColors:n.theme.Colors,"onUpdate:modelValue":s[10]||(s[10]=a=>o("elementUpdatedEvent",{element:{Spacer:a},path:n.path})),onRemoveElement:s[11]||(s[11]=()=>o("removeElement",{path:n.path}))},null,8,["deps","modelValue","themeColors"])):oe("",!0),r.unsubscribeLink(n.element.UnsubscribeLink)?(E(),Q(krn,{key:`unsubscribeLink-${n.path.join(".")}`,deps:n.deps.unsubscribeLinkEditorDeps,modelValue:n.element.UnsubscribeLink,themeColors:n.theme.Colors,themeFontFamily:n.theme.FontFamily,themeFontSettings:n.theme.FontSettingsPresets,onOnModelValueChanged:s[12]||(s[12]=a=>o("elementUpdatedEvent",{element:{UnsubscribeLink:a},path:n.path})),onRemoveElement:s[13]||(s[13]=()=>o("removeElement",{path:n.path}))},null,8,["deps","modelValue","themeColors","themeFontFamily","themeFontSettings"])):oe("",!0)]))}}),Xin={title:"Row",removeWindowTitle:"Delete component",removeWindowDescription:"Are you sure you want to delete the component?",backgroundColorLabel:"Background color",requiredComponentLabel:"Required component",paddings:{label:"Paddings",top:"Top",bottom:"Bottom",labels:{themePaddingsSmall:"Small",themePaddingsMedium:"Medium",themePaddingsLarge:"Large",themePaddingsHuge:"Huge",bodyPaddingsTop:"Top",bodyPaddingsRight:"Right",bodyPaddingsBottom:"Bottom",bodyPaddingsLeft:"Left",custom:"Custom"}},contentAlign:{fullWidthCheckboxLabel:"Full width"},borderRadius:{label:"Border radius",top:"Top",bottom:"Bottom"}},Qin={title:"Строка",removeWindowTitle:"Удаление компонента",removeWindowDescription:"Вы действительно хотите удалить компонент ?",backgroundColorLabel:"Цвет фона",requiredComponentLabel:"Обязательный компонент",paddings:{label:"Отступы",top:"Сверху",bottom:"Снизу",labels:{themePaddingsSmall:"Маленький",themePaddingsMedium:"Средний",themePaddingsLarge:"Большой",themePaddingsHuge:"Гигантский",bodyPaddingsTop:"Сверху",bodyPaddingsRight:"Справа",bodyPaddingsBottom:"Снизу",bodyPaddingsLeft:"Слева",custom:"Свой"}},contentAlign:{fullWidthCheckboxLabel:"На всю ширину"},borderRadius:{label:"Скругление",top:"Сверху",bottom:"Снизу"}},Br=ht({en:Xin,ru:Qin}),esn={class:"bootstrap-styles px-7 editor__wrapper"},tsn={class:"bootstrap-styles d-flex justify-content-between align-items-center mb-13"},nsn={class:"bootstrap-styles fw-bold fs-6"},osn={class:"bootstrap-styles container-fluid mb-13"},rsn={class:"bootstrap-styles fw-bold mb-5"},isn={class:"bootstrap-styles fw-bold fs-6 mb-13"},ssn={class:"bootstrap-styles container-fluid mb-5"},asn={class:"bootstrap-styles row g-0 mb-2"},lsn={class:"bootstrap-styles fw-bold mb-5"},csn={class:"bootstrap-styles col-12"},usn={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},dsn={id:"dropdownMenuButtonSpacerSize",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},hsn={class:"bootstrap-styles d-flex justify-content-center align-items-center"},psn={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuButtonSpacerSize"},msn=["onClick"],fsn={class:"bootstrap-styles dropdown-item p-0"},gsn={key:0,class:"bootstrap-styles row g-0"},ysn={class:"bootstrap-styles col-12"},Csn={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},bsn={class:"bootstrap-styles container-fluid mb-13"},vsn={class:"bootstrap-styles row g-0 mb-2"},wsn={class:"bootstrap-styles fw-bold mb-5"},Ssn={class:"bootstrap-styles col-12"},xsn={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},Tsn={id:"dropdownMenuButtonSpacerSize",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},ksn={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Fsn={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuButtonSpacerSize"},Esn=["onClick"],Lsn={class:"bootstrap-styles dropdown-item p-0"},_sn={key:0,class:"bootstrap-styles row g-0"},Asn={class:"bootstrap-styles col-12"},Rsn={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},Dsn={class:"bootstrap-styles container-fluid mb-13"},Bsn={class:"bootstrap-styles row g-0 mb-5"},Nsn={class:"bootstrap-styles col-12 d-flex align-items-center"},Isn={for:"row-width-checkbox",class:"label__checkbox-input"},Msn={class:"bootstrap-styles fw-bold fs-6 mb-13"},$sn={class:"bootstrap-styles container-fluid mb-13"},Osn={class:"bootstrap-styles row gx-2"},Psn={class:"bootstrap-styles col-6"},Vsn={class:"bootstrap-styles fw-bold mb-5"},Wsn={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},Hsn={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},zsn={class:"bootstrap-styles col-6"},jsn={class:"bootstrap-styles fw-bold mb-5"},Ksn={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},Usn={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},qsn={class:"bootstrap-styles container-fluid"},Jsn={class:"bootstrap-styles row g-0 mb-5"},Gsn={class:"bootstrap-styles col-12 d-flex align-items-center"},Ysn={for:"required-component-checkbox",class:"label__checkbox-input"},Zsn=re({__name:"EmailComponentEditor",props:{deps:{},emailComponent:{},index:{},themeColors:{}},emits:["emailComponentUpdated","emailComponentRemoved"],setup(t,{emit:e}){const n=t,o=Le({isRemoveComponentWindowShown:!1}),r=["ThemePaddingsSmall","ThemePaddingsMedium","ThemePaddingsLarge","ThemePaddingsHuge"],i={title:Br({localeKey:n.deps.localeKey}).title,removeWindowTitle:Br({localeKey:n.deps.localeKey}).removeWindowTitle,removeWindowDescription:Br({localeKey:n.deps.localeKey}).removeWindowDescription,backgroundColorLabel:Br({localeKey:n.deps.localeKey}).backgroundColorLabel,requiredComponentLabel:Br({localeKey:n.deps.localeKey}).requiredComponentLabel,paddings:{label:Br({localeKey:n.deps.localeKey}).paddings.label,top:Br({localeKey:n.deps.localeKey}).paddings.top,bottom:Br({localeKey:n.deps.localeKey}).paddings.bottom,labels:{themePaddingsSmall:Br({localeKey:n.deps.localeKey}).paddings.labels.themePaddingsSmall,themePaddingsMedium:Br({localeKey:n.deps.localeKey}).paddings.labels.themePaddingsMedium,themePaddingsLarge:Br({localeKey:n.deps.localeKey}).paddings.labels.themePaddingsLarge,themePaddingsHuge:Br({localeKey:n.deps.localeKey}).paddings.labels.themePaddingsHuge,bodyPaddingsTop:Br({localeKey:n.deps.localeKey}).paddings.labels.bodyPaddingsTop,bodyPaddingsRight:Br({localeKey:n.deps.localeKey}).paddings.labels.bodyPaddingsRight,bodyPaddingsBottom:Br({localeKey:n.deps.localeKey}).paddings.labels.bodyPaddingsBottom,bodyPaddingsLeft:Br({localeKey:n.deps.localeKey}).paddings.labels.bodyPaddingsLeft,custom:Br({localeKey:n.deps.localeKey}).paddings.labels.custom}},contentAlign:{fullWidthCheckboxLabel:Br({localeKey:n.deps.localeKey}).contentAlign.fullWidthCheckboxLabel},borderRadius:{label:Br({localeKey:n.deps.localeKey}).borderRadius.label,top:Br({localeKey:n.deps.localeKey}).borderRadius.top,bottom:Br({localeKey:n.deps.localeKey}).borderRadius.bottom}},s={ThemePaddingsSmall:i.paddings.labels.themePaddingsSmall,ThemePaddingsMedium:i.paddings.labels.themePaddingsMedium,ThemePaddingsLarge:i.paddings.labels.themePaddingsLarge,ThemePaddingsHuge:i.paddings.labels.themePaddingsHuge,BodyPaddingsTop:i.paddings.labels.bodyPaddingsTop,BodyPaddingsRight:i.paddings.labels.bodyPaddingsRight,BodyPaddingsBottom:i.paddings.labels.bodyPaddingsBottom,BodyPaddingsLeft:i.paddings.labels.bodyPaddingsLeft,Custom:i.paddings.labels.custom},a=e,l=c=>{a("emailComponentUpdated",{emailComponent:c,index:n.index})};return(c,u)=>(E(),R("div",esn,[b("div",tsn,[b("span",nsn,W(i.title),1),I(YC,{onClick:u[0]||(u[0]=d=>o.isRemoveComponentWindowShown=!0)}),(E(),Q(yo,{to:"body",defer:""},[o.isRemoveComponentWindowShown?(E(),Q(Ch,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:i.removeWindowTitle,onCancel:u[1]||(u[1]=d=>o.isRemoveComponentWindowShown=!1),onConfirmed:u[2]||(u[2]=()=>{o.isRemoveComponentWindowShown=!1,a("emailComponentRemoved",{index:n.index})})},{"body-content":Bt(()=>[no(W(i.removeWindowDescription),1)]),_:1},8,["deps","headerText"])):oe("",!0)]))]),b("div",osn,[b("label",rsn,W(i.backgroundColorLabel),1),I(Ope,{class:"mb-2",deps:n.deps.colorEditorDeps,color:n.emailComponent.InnerBgColor,themeColors:n.themeColors,"onUpdate:changeColor":u[3]||(u[3]=d=>l({...n.emailComponent,InnerBgColor:{...d}}))},null,8,["deps","color","themeColors"])]),b("label",isn,W(i.paddings.label),1),b("div",ssn,[b("div",asn,[b("label",lsn,W(i.paddings.top),1),b("div",csn,[b("div",usn,[Ke((E(),R("button",dsn,[b("span",null,W(s[n.emailComponent.Paddings.Top.ThemePadding]??i.paddings.labels.custom),1),b("i",hsn,[I(Si)])])),[[N(ah)]]),b("ul",psn,[(E(),R(Se,null,At(r,d=>b("li",{key:d,class:"bootstrap-styles dropdown-item p-0"},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",onClick:()=>l({...n.emailComponent,Paddings:{...n.emailComponent.Paddings,Top:{ThemePadding:d}}})},W(s[d]),9,msn)])),64)),b("li",fsn,[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",onClick:u[4]||(u[4]=()=>l({...n.emailComponent,Paddings:{...n.emailComponent.Paddings,Top:{CustomValue:n.emailComponent.Paddings.Top.CustomValue??10}}}))},W(i.paddings.labels.custom),1)])])])])]),n.emailComponent.Paddings.Top.CustomValue!==void 0?(E(),R("div",gsn,[b("div",ysn,[b("div",Csn,[I(fr,{modelValue:n.emailComponent.Paddings.Top.CustomValue,"onUpdate:modelValue":u[5]||(u[5]=d=>l({...n.emailComponent,Paddings:{...n.emailComponent.Paddings,Top:{CustomValue:d}}}))},null,8,["modelValue"])])])])):oe("",!0)]),b("div",bsn,[b("div",vsn,[b("label",wsn,W(i.paddings.bottom),1),b("div",Ssn,[b("div",xsn,[Ke((E(),R("button",Tsn,[b("span",null,W(s[n.emailComponent.Paddings.Bottom.ThemePadding]??i.paddings.labels.custom),1),b("i",ksn,[I(Si)])])),[[N(ah)]]),b("ul",Fsn,[(E(),R(Se,null,At(r,d=>b("li",{key:d,class:"bootstrap-styles dropdown-item p-0"},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",onClick:()=>l({...n.emailComponent,Paddings:{...n.emailComponent.Paddings,Bottom:{ThemePadding:d}}})},W(s[d]),9,Esn)])),64)),b("li",Lsn,[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",onClick:u[6]||(u[6]=()=>l({...n.emailComponent,Paddings:{...n.emailComponent.Paddings,Bottom:{CustomValue:n.emailComponent.Paddings.Bottom.CustomValue??10}}}))},W(i.paddings.labels.custom),1)])])])])]),n.emailComponent.Paddings.Bottom.CustomValue!==void 0?(E(),R("div",_sn,[b("div",Asn,[b("div",Rsn,[I(fr,{modelValue:n.emailComponent.Paddings.Bottom.CustomValue,"onUpdate:modelValue":u[7]||(u[7]=d=>l({...n.emailComponent,Paddings:{...n.emailComponent.Paddings,Bottom:{CustomValue:d}}}))},null,8,["modelValue"])])])])):oe("",!0)]),b("div",Dsn,[b("div",Bsn,[b("div",Nsn,[I(th,{id:"row-width-checkbox",checked:n.emailComponent.FullWidth,onChange:u[8]||(u[8]=()=>l({...n.emailComponent,FullWidth:!n.emailComponent.FullWidth}))},null,8,["checked"]),b("label",Isn,W(i.contentAlign.fullWidthCheckboxLabel),1)])])]),b("label",Msn,W(i.borderRadius.label),1),b("div",$sn,[b("div",Osn,[b("div",Psn,[b("label",Vsn,W(i.borderRadius.top),1),b("div",Wsn,[b("i",Hsn,[I(nE)]),I(fr,{modelValue:n.emailComponent.BorderRadius.TopLeft.CustomValue,"onUpdate:modelValue":u[9]||(u[9]=d=>l({...n.emailComponent,BorderRadius:{...n.emailComponent.BorderRadius,TopLeft:{Discriminator:"CustomBorderRadius",CustomValue:d},TopRight:{Discriminator:"CustomBorderRadius",CustomValue:d}}}))},null,8,["modelValue"])])]),b("div",zsn,[b("label",jsn,W(i.borderRadius.bottom),1),b("div",Ksn,[b("i",Usn,[I(nE)]),I(fr,{modelValue:n.emailComponent.BorderRadius.BottomLeft.CustomValue,"onUpdate:modelValue":u[10]||(u[10]=d=>l({...n.emailComponent,BorderRadius:{...n.emailComponent.BorderRadius,BottomLeft:{Discriminator:"CustomBorderRadius",CustomValue:d},BottomRight:{Discriminator:"CustomBorderRadius",CustomValue:d}}}))},null,8,["modelValue"])])])])]),b("div",qsn,[b("div",Jsn,[b("div",Gsn,[I(th,{id:"required-component-checkbox",checked:n.emailComponent.IsRequired,onChange:u[11]||(u[11]=()=>l({...n.emailComponent,IsRequired:n.emailComponent.IsRequired?!n.emailComponent.IsRequired:!0}))},null,8,["checked"]),b("label",Ysn,W(i.requiredComponentLabel),1)])])])]))}}),Xsn={},Qsn={xmlns:"http://www.w3.org/2000/svg",width:"41",height:"40",viewBox:"0 0 41 40",fill:"none"};function ean(t,e){return E(),R("svg",Qsn,[...e[0]||(e[0]=[b("path",{d:"M23.8337 7.39575C26.0773 7.39575 27.8962 5.5769 27.8962 3.33325H29.7712C29.7712 5.5769 31.59 7.39575 33.8337 7.39575V9.27075C31.59 9.27075 29.7712 11.0896 29.7712 13.3333H27.8962C27.8962 11.0896 26.0773 9.27075 23.8337 9.27075V7.39575ZM2.16699 18.3333C7.68984 18.3333 12.167 13.8561 12.167 8.33325H15.5003C15.5003 13.8561 19.9775 18.3333 25.5003 18.3333V21.6666C19.9775 21.6666 15.5003 26.1438 15.5003 31.6666H12.167C12.167 26.1438 7.68984 21.6666 2.16699 21.6666V18.3333ZM29.2503 23.3333C29.2503 26.3248 26.8252 28.7499 23.8337 28.7499V31.2499C26.8252 31.2499 29.2503 33.6751 29.2503 36.6666H31.7503C31.7503 33.6751 34.1755 31.2499 37.167 31.2499V28.7499C34.1755 28.7499 31.7503 26.3248 31.7503 23.3333H29.2503Z",fill:"var(--gray-200)"},null,-1)])])}const tan=ve(Xsn,[["render",ean]]),nan={emptyEditorText:"Select any email element to configure it"},oan={emptyEditorText:"Выберите любой<br>элемент письма для<br>его настройки"},ran=ht({en:nan,ru:oan}),ian={class:"bootstrap-styles row g-0 align-self-center"},san={class:"bootstrap-styles col-12"},aan={class:"bootstrap-styles mb-7 text-center"},lan={class:"bootstrap-styles text-center mx-13 text-gray-600"},can=re({__name:"EmptyEditor",props:{deps:{}},setup(t){const e={emptyEditorText:ran({localeKey:t.deps.localeKey}).emptyEditorText};return(n,o)=>(E(),R("div",ian,[b("div",san,[b("div",aan,[b("i",null,[I(tan)])]),Ke(b("div",lan,null,512),[[N(iH),e.emptyEditorText]])])]))}}),BR={element:t=>t!==void 0&&t.Discriminator==="selectedElement",component:t=>t!==void 0&&t.Discriminator==="selectedComponent"},Vpe=(t,e)=>{const n=t.splice(e,1)[0];if(n===void 0)throw new Error(`Element at index ${e} does not exist`);return n},Wpe=(t,e,n)=>{t.splice(e,0,n)},uan=t=>{const e=Vpe(t.state.draggableEmailComponents,t.event.oldIndex);Wpe(t.state.draggableEmailComponents,t.event.newIndex,e),BR.component(t.state.selected)&&(t.state.selected.index=t.event.newIndex)},dan=t=>{t.state.selected=void 0,Vpe(t.state.draggableEmailComponents,t.event.componentIndex)},han=t=>{$pe(t.state.deviceMode)&&Jw(t.state.draggableEmailComponents,[...t.event.Path,"Width"],t.event.Width)},pan=t=>{Jw(t.state.draggableEmailComponents,[...t.event.Path,"AdjustedWidth"],t.event.AdjustedWidth),Jw(t.state.draggableEmailComponents,[...t.event.Path,"AdjustedHeight"],t.event.AdjustedHeight)},man=t=>{Jw(t.state.draggableEmailComponents,[...t.event.Path,"OriginalWidth"],t.event.OriginalWidth),Jw(t.state.draggableEmailComponents,[...t.event.Path,"OriginalHeight"],t.event.OriginalHeight)};function fan(t){return Math.random().toString(36).substr(2,9)+":"+t}const Hpe=t=>({_id:fan(1),Component:t}),gan=t=>{const e=t.state.draggableEmailComponents[t.event.componentIndex];if(!e)return;const n=e.Component,o=Hpe(JSON.parse(JSON.stringify(n)));Wpe(t.state.draggableEmailComponents,t.event.componentIndex,Rt(o).value)},qke=t=>{const e=Hpe(JSON.parse(JSON.stringify(t.event.component)));Wpe(t.state.draggableEmailComponents,t.event.index,Rt(e).value)},yan=t=>({Subject:t.subject,Preheader:t.preheader,Theme:t.theme,Components:t.draggableComponents.map(e=>e.Component)}),Can=t=>{const e=yan({subject:t.state.subject,preheader:t.state.preheader,theme:t.state.theme,draggableComponents:t.state.draggableEmailComponents}),n=JSON.stringify(e,null,4);navigator.clipboard.writeText(n),console.info(n)},ban={class:"bootstrap-styles template flex-shrink-1"},van={class:"bootstrap-styles preview w-100 h-100 d-flex justify-content-between bg-gray-300"},wan={class:"bootstrap-styles row g-0 justify-content-between w-100 flex-nowrap"},San={class:"bootstrap-styles pt-7 position-relative flex-shrink-1 w-100 overflow-hidden"},xan={class:"bootstrap-styles preview__templates d-flex justify-content-center overflow-auto"},Tan={class:"bootstrap-styles wrapper mx-5 position-relative w-100"},kan={class:"bootstrap-styles rounded-2 bg-white"},Fan={class:"bootstrap-styles d-flex align-items-start justify-content-center pe-14 pt-11 bg-white h-100"},Ean={key:0,class:"bootstrap-styles h-100 w-100"},Lan=re({__name:"WysiwygTemplateEditor",props:{deps:{}},emits:["exit","templateReset"],setup(t,{emit:e}){Cd(A=>({v57a6552c:d.value,v1b00fb77:h.value,v64dc725c:u.value.Title.fontWeight,v47a38b48:u.value.Title.fontFamily,ec05b8e4:u.value.Title.color,v5f0991f2:u.value.Title.textDecoration,v6628614d:u.value.Title.fontStyle,v203605d6:p.value,v0331acbe:m.value,v790da69c:u.value.Heading.fontWeight,b37f74c4:u.value.Heading.fontFamily,v9ec26910:u.value.Heading.color,v51753148:u.value.Heading.textDecoration,dafff792:u.value.Heading.fontStyle,v8417f124:f.value,v24ab2539:g.value,v6731c374:u.value.SubHeading.fontWeight,v49f8dc60:u.value.SubHeading.fontFamily,c1a0f914:u.value.SubHeading.color,b4bed1ec:u.value.SubHeading.textDecoration,v4c4ee596:u.value.SubHeading.fontStyle,v1f135fdc:C.value,v8953cbb2:v.value,v1ee9a02c:u.value.LargeText.fontWeight,v01b0b918:u.value.LargeText.fontFamily,bd82d884:u.value.LargeText.color,v5fa9507c:u.value.LargeText.textDecoration,v21d6397d:u.value.LargeText.fontStyle,v14c8b080:w.value,v18f9d1cb:S.value,v068eadbc:u.value.NormalText.fontWeight,v41007be4:u.value.NormalText.fontFamily,v22df4908:u.value.NormalText.color,a67e1490:u.value.NormalText.textDecoration,v63b18c72:u.value.NormalText.fontStyle,v2b1c2c1d:x.value,v2f464bb0:F.value,v0ddffa0b:u.value.DescriptionText.fontWeight,v1eb1da12:u.value.DescriptionText.fontFamily,v42e14a7f:u.value.DescriptionText.color,v4693aa21:u.value.DescriptionText.textDecoration,v31cda7be:u.value.DescriptionText.fontStyle,a5eb6674:_.value,b17516de:D.value,v46df90dc:u.value.Link.fontWeight,v29a6a9c8:u.value.Link.fontFamily,b5be15e4:u.value.Link.color,v35597072:u.value.Link.textDecoration,v7ff11a66:u.value.Link.fontStyle,v6074e604:B.value,v083186c9:$.value,v4c673a64:u.value.Button.fontWeight,v2f2e5350:u.value.Button.fontFamily,v957112f4:u.value.Button.color,v746115fa:u.value.Button.textDecoration,v6da07845:u.value.Button.fontStyle}));const n=t,o=Le({isLoaded:!1,refreshKey:Math.random().toString(36).slice(2),preheader:n.deps.template.Preheader,subject:n.deps.template.Subject,theme:n.deps.template.Theme,draggableEmailComponents:n.deps.template.Components.map(A=>Hpe(A)),componentLibrary:[],selected:void 0,deviceMode:"desktop",themeLibrary:[],templateThemeSaveState:"NoChanges"}),r=e,i=async()=>(o.isLoaded=!1,n.deps.getComponentLibrary().then(A=>{o.isLoaded=!0,o.componentLibrary=Rt(A).value})),s=async()=>n.deps.getThemeLibrary().then(A=>{o.themeLibrary=Rt(A).value}),a=async A=>{o.templateThemeSaveState="Saving";try{await n.deps.asideMenuDeps.themeLibraryDeps.customThemeLibraryDeps.addThemeSectionItemModalWindowDeps.addThemeSectionItem({sectionItemName:A.sectionItemName,parentSectionId:A.sectionId,theme:o.theme})==="Success"?(o.templateThemeSaveState="NoChanges",await s()):o.templateThemeSaveState="Error"}catch{o.templateThemeSaveState="Error"}},l=A=>{o.subject=A.subject,o.preheader=A.preheader},c=A=>{A.preventDefault(),A.returnValue=""};window.addEventListener("beforeunload",c),Tg(()=>{window.removeEventListener("beforeunload",c)}),Promise.all([i(),s()]).then(([])=>{o.isLoaded=!0});const u=ne(()=>{const{FontFamily:A,FontSettingsPresets:L,Colors:M}=o.theme;return{Title:Hl({fontFamily:A,themeFontSettings:L.Title,themeColor:M.TitleColor}),Heading:Hl({fontFamily:A,themeFontSettings:L.Heading,themeColor:M.HeadingColor}),SubHeading:Hl({fontFamily:A,themeFontSettings:L.SubHeading,themeColor:M.SubHeadingColor}),LargeText:Hl({fontFamily:A,themeFontSettings:L.LargeText,themeColor:M.LargeTextColor}),NormalText:Hl({fontFamily:A,themeFontSettings:L.NormalText,themeColor:M.NormalTextColor}),DescriptionText:Hl({fontFamily:A,themeFontSettings:L.DescriptionText,themeColor:M.DescriptionTextColor}),Link:Hl({fontFamily:A,themeFontSettings:L.Link,themeColor:M.LinkColor}),Button:Hl({fontFamily:A,themeFontSettings:L.Button,themeColor:M.ButtonTextColor})}}),d=ne(()=>u.value.Title.fontSize+"px"),h=ne(()=>u.value.Title.lineHeight+"px"),p=ne(()=>u.value.Heading.fontSize+"px"),m=ne(()=>u.value.Heading.lineHeight+"px"),f=ne(()=>u.value.SubHeading.fontSize+"px"),g=ne(()=>u.value.SubHeading.lineHeight+"px"),C=ne(()=>u.value.LargeText.fontSize+"px"),v=ne(()=>u.value.LargeText.lineHeight+"px"),w=ne(()=>u.value.NormalText.fontSize+"px"),S=ne(()=>u.value.NormalText.lineHeight+"px"),x=ne(()=>u.value.DescriptionText.fontSize+"px"),F=ne(()=>u.value.DescriptionText.lineHeight+"px"),_=ne(()=>u.value.Link.fontSize+"px"),D=ne(()=>u.value.Link.lineHeight+"px"),B=ne(()=>u.value.Button.fontSize+"px"),$=ne(()=>u.value.Button.lineHeight+"px");return(A,L)=>(E(),R("div",{key:o.refreshKey,class:"bootstrap-styles container-fluid d-flex p-0 row g-0 vh-100 flex-nowrap",onMousedown:L[47]||(L[47]=()=>{o.selected=void 0})},[I(cYt,{deps:n.deps.asideMenuDeps,theme:o.theme,componentLibrary:o.componentLibrary,themeLibrary:o.themeLibrary,componentLibrarySectionUpdated:o.isLoaded,themeTemplateSaveState:o.templateThemeSaveState,onExit:L[0]||(L[0]=M=>r("exit")),onComponentLibrarySectionItemRemoved:L[1]||(L[1]=M=>i()),onComponentLibrarySectionCreated:L[2]||(L[2]=M=>i()),"onUpdate:setThemeBodyWidth":L[3]||(L[3]=M=>{o.theme.BodyWidth=M,o.templateThemeSaveState="HasChanges"}),"onUpdate:setThemeFont":L[4]||(L[4]=M=>{o.theme.FontFamily=M,o.templateThemeSaveState="HasChanges"}),"onUpdate:themeBorderRadiusChanged":L[5]||(L[5]=M=>{o.theme.BorderRadius.TopLeft=M,o.theme.BorderRadius.TopRight=M,o.theme.BorderRadius.BottomLeft=M,o.theme.BorderRadius.BottomRight=M,o.templateThemeSaveState="HasChanges"}),"onUpdate:themeBorderRadiusCardChanged":L[6]||(L[6]=M=>{o.theme.BorderRadiusCard=M,o.templateThemeSaveState="HasChanges"}),"onUpdate:themeBorderRadiusButtonChanged":L[7]||(L[7]=M=>{o.theme.BorderRadiusButton=M,o.templateThemeSaveState="HasChanges"}),"onUpdate:themeBorderRadiusBannerChanged":L[8]||(L[8]=M=>{o.theme.BorderRadiusBanner=M,o.templateThemeSaveState="HasChanges"}),"onUpdate:themeColorsChanged":L[9]||(L[9]=M=>{o.theme.Colors=M,o.templateThemeSaveState="HasChanges"}),"onUpdate:themeFontSettingsChanged":L[10]||(L[10]=M=>{o.theme.FontSettingsPresets=M,o.templateThemeSaveState="HasChanges"}),"onUpdate:themeComponentPaddingsChanged":L[11]||(L[11]=M=>{o.theme.ComponentPaddings=M,o.templateThemeSaveState="HasChanges"}),"onUpdate:themeBodyPaddingsChanged":L[12]||(L[12]=M=>{o.theme.BodyPaddings=M,o.templateThemeSaveState="HasChanges"}),"onUpdate:themeButtonPaddingsChanged":L[13]||(L[13]=M=>{o.theme.ButtonPaddings=M,o.templateThemeSaveState="HasChanges"}),onSelectedThemeSettings:L[14]||(L[14]=M=>{o.theme={...o.theme,...M},o.templateThemeSaveState="HasChanges"}),onThemeSectionItemRemoved:L[15]||(L[15]=M=>s()),onOnCustomComponentDraggedFromLibrary:L[16]||(L[16]=M=>{N(qke)({state:o,event:M})}),onOnDefaultComponentDraggedFromLibrary:L[17]||(L[17]=M=>{N(qke)({state:o,event:M})}),onOnThemeLibrarySectionItemUpdated:L[18]||(L[18]=M=>s()),onOnThemeLibrarySectionRemoved:L[19]||(L[19]=M=>s()),onOnThemeLibrarySectionAdded:L[20]||(L[20]=M=>s()),onComponentLibrarySectionItemUpdated:L[21]||(L[21]=M=>i()),onOnComponentLibrarySectionRemoved:L[22]||(L[22]=M=>i()),onOnResponsiveWidthChanged:L[23]||(L[23]=M=>{o.theme.IsResponsiveWidth=M,o.templateThemeSaveState="HasChanges"}),onOnSaveTemplateTheme:L[24]||(L[24]=M=>a(M))},null,8,["deps","theme","componentLibrary","themeLibrary","componentLibrarySectionUpdated","themeTemplateSaveState"]),b("div",ban,[b("section",van,[b("div",wan,[b("div",San,[I(TZt,{deps:n.deps.topMenuDeps,deviceMode:o.deviceMode,isResponsiveWidth:o.theme.IsResponsiveWidth,subject:o.subject,preheader:o.preheader,emailTemplate:{Preheader:o.preheader,Subject:o.subject,Theme:o.theme,Components:o.draggableEmailComponents.map(M=>M.Component)},onOnDeviceModeChanged:L[25]||(L[25]=M=>o.deviceMode=M.device),onOnAppSettingsUpdated:L[26]||(L[26]=()=>{o.refreshKey=Math.random().toString(36).slice(2)}),onOnTemplateReset:L[27]||(L[27]=()=>r("templateReset")),onOnPreheaderSubjectUpdated:L[28]||(L[28]=M=>l(M)),onOnDblClick:L[29]||(L[29]=()=>N(Can)({state:o}))},null,8,["deps","deviceMode","isResponsiveWidth","subject","preheader","emailTemplate"]),b("div",xan,[b("div",Tan,[b("div",kan,[I(AQt,{deps:t.deps.emailTemplateDeps,theme:o.theme,preheader:o.preheader,draggableEmailComponents:o.draggableEmailComponents,deviceMode:o.deviceMode,selectedComponentIndex:N(BR).component(o.selected)?o.selected.index:void 0,selectedElementPath:N(BR).element(o.selected)?o.selected.path:void 0,isComponentLibraryEmpty:o.componentLibrary.length===0,onOnComponentAddedToLibrary:L[30]||(L[30]=M=>i()),onOnEmailComponentClicked:L[31]||(L[31]=M=>{o.selected={Discriminator:"selectedComponent",index:M.index}}),onOnElementClicked:L[32]||(L[32]=M=>{o.selected={Discriminator:"selectedElement",path:M.path}}),onEmailComponentUpdated:L[33]||(L[33]=M=>{const H=o.draggableEmailComponents[M.index];H&&(H.Component=Rt(M.emailComponent).value)}),onOnRemoveComponentBtnClicked:L[34]||(L[34]=M=>{N(dan)({state:o,event:M})}),onOnDuplicateComponentBtnClicked:L[35]||(L[35]=M=>{N(gan)({state:o,event:M})}),onOnEmailComponentMoved:L[36]||(L[36]=M=>{N(uan)({state:o,event:M})}),onOnImageOriginalSizeAdjusted:L[37]||(L[37]=M=>N(man)({state:o,event:M})),onOnImageSizeAdjusted:L[38]||(L[38]=M=>N(pan)({state:o,event:M})),onOnColumnWidthAdjusted:L[39]||(L[39]=M=>N(han)({state:o,event:M})),onOnElementUpdatedEvent:L[40]||(L[40]=M=>{N(Jw)(o.draggableEmailComponents,M.path,M.element)}),onOnElementRemoved:L[41]||(L[41]=M=>{N(Kke)(o.draggableEmailComponents,M),o.selected=void 0})},null,8,["deps","theme","preheader","draggableEmailComponents","deviceMode","selectedComponentIndex","selectedElementPath","isComponentLibraryEmpty"])])])])]),b("div",{class:"bootstrap-styles email-template-editor bg-white",onMousedown:L[46]||(L[46]=Nt(()=>{},["stop"]))},[b("div",Fan,[o.selected!==void 0?(E(),R("div",Ean,[N(BR).element(o.selected)?(E(),Q(Zin,{key:0,deps:n.deps.elementsEditorDeps,element:N(RQt)(o.draggableEmailComponents,o.selected.path.slice(0,-1)),path:o.selected.path.slice(0,-1),theme:o.theme,onElementUpdatedEvent:L[42]||(L[42]=M=>{N(Jw)(o.draggableEmailComponents,M.path,M.element)}),onRemoveElement:L[43]||(L[43]=M=>{N(Kke)(o.draggableEmailComponents,M.path),o.selected=void 0})},null,8,["deps","element","path","theme"])):oe("",!0),N(BR).component(o.selected)?(E(),Q(Zsn,{key:1,deps:t.deps.emailComponentEditorDeps,emailComponent:o.draggableEmailComponents[o.selected.index].Component,index:o.selected.index,themeColors:o.theme.Colors,onEmailComponentUpdated:L[44]||(L[44]=M=>{const H=o.draggableEmailComponents[M.index];H&&(H.Component=Rt(M.emailComponent).value)}),onEmailComponentRemoved:L[45]||(L[45]=M=>{N(Vpe)(o.draggableEmailComponents,M.index),o.selected=void 0})},null,8,["deps","emailComponent","index","themeColors"])):oe("",!0)])):(E(),Q(can,{key:1,deps:n.deps.emptyEditorDeps},null,8,["deps"]))])],32)])])])],32))}}),_an={title:"Reset template",applyButton:"Reset",cancelButton:"Cancel",description:"Resetting the template will delete all current settings and content. This action cannot be undone."},Aan={title:"Сброс шаблона",applyButton:"Сбросить",cancelButton:"Отмена",description:"Сброс шаблона приведёт к удалению всех текущих настроек и контента. Это действие нельзя отменить."},Ran=ht({en:_an,ru:Aan}),Dan={class:"bootstrap-styles px-11 py-7 text-start"},Ban=["value"],Nan=re({__name:"WysiwygApp",props:{deps:{}},emits:["exit","templateReset"],setup(t,{emit:e}){const n=t,o=Le({resetTemplateSubmitModalWindow:!1}),r=Ran({localeKey:n.deps.localeKey}),i=e;return(s,a)=>(E(),R(Se,null,[I(Lan,{deps:n.deps.wysiwygTemplateEditorDeps,onTemplateReset:a[0]||(a[0]=()=>o.resetTemplateSubmitModalWindow=!0),onExit:a[1]||(a[1]=l=>i("exit"))},null,8,["deps"]),(E(),Q(yo,{to:"body",defer:""},[o.resetTemplateSubmitModalWindow?(E(),Q(bd,{key:0,class:"remove-element-confirm-modal-window",headerText:N(r).title,onClose:a[4]||(a[4]=()=>o.resetTemplateSubmitModalWindow=!1)},{body:Bt(()=>[b("div",Dan,W(N(r).description),1)]),"footer-actions":Bt(()=>[b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:a[2]||(a[2]=Nt(l=>o.resetTemplateSubmitModalWindow=!1,["stop"]))},W(N(r).cancelButton),1),b("input",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white cursor-pointer position-relative remove-element-confirm__button",type:"button",value:N(r).applyButton,onClick:a[3]||(a[3]=Nt(()=>{o.resetTemplateSubmitModalWindow=!1,i("templateReset")},["stop"]))},null,8,Ban)]),_:1},8,["headerText"])):oe("",!0)]))],64))}}),Ian=t=>{const e=document.createElement("form");e.method=t.method,e.action=t.action;for(const[n,o]of t.formData.entries()){if(o instanceof File)continue;const r=document.createElement("input");r.setAttribute("type","text"),r.setAttribute("name",n),r.setAttribute("value",o),e.appendChild(r)}return e},Man={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",tableGroupCollapse:"mdi-chevron-down",tableGroupExpand:"mdi-chevron-right",eyeDropper:"mdi-eyedropper",upload:"mdi-cloud-upload",color:"mdi-palette",command:"mdi-apple-keyboard-command",ctrl:"mdi-apple-keyboard-control",space:"mdi-keyboard-space",shift:"mdi-apple-keyboard-shift",alt:"mdi-apple-keyboard-option",enter:"mdi-keyboard-return",arrowup:"mdi-arrow-up",arrowdown:"mdi-arrow-down",arrowleft:"mdi-arrow-left",arrowright:"mdi-arrow-right",backspace:"mdi-backspace",play:"mdi-play",pause:"mdi-pause",fullscreen:"mdi-fullscreen",fullscreenExit:"mdi-fullscreen-exit",volumeHigh:"mdi-volume-high",volumeMedium:"mdi-volume-medium",volumeLow:"mdi-volume-low",volumeOff:"mdi-volume-variant-off"},$an={component:t=>yl(f7e,{...t,class:"mdi"})};function Oan(){return{svg:{component:m7e},class:{component:f7e}}}function Pan(t){const e=Oan(),n=t?.defaultSet??"mdi";return n==="mdi"&&!e.mdi&&(e.mdi=$an),Zl({defaultSet:n,sets:e,aliases:{...Man,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},t)}function X9e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:e,...n}=t,o=Zl(e,n),{aliases:r={},components:i={},directives:s={}}=o,a=BF();return a.run(()=>{const l=NTt(o.defaults),c=ZTt(o.display,o.ssr),u=mkt(o.theme),d=Pan(o.icons),h=tkt(o.locale),p=$Bt(o.date,h),m=WBt(o.goTo,h);function f(C){for(const w in s)C.directive(w,s[w]);for(const w in i)C.component(w,i[w]);for(const w in r)C.component(w,am({...r[w],name:w,aliasName:r[w].name}));const v=BF();if(v.run(()=>{u.install(C)}),C.onUnmount(()=>v.stop()),C.provide(PF,l),C.provide(tSe,c),C.provide(VN,u),C.provide(Bre,d),C.provide(rW,h),C.provide(MBt,p.options),C.provide(Gxe,p.instance),C.provide(PBt,m),Cl&&o.ssr)if(C.$nuxt)C.$nuxt.hook("app:suspense:resolve",()=>{c.update()});else{const{mount:w}=C;C.mount=function(){const S=w(...arguments);return gl(()=>c.update()),C.mount=w,S}}C.mixin({computed:{$vuetify(){return Le({defaults:Dx.call(this,PF),display:Dx.call(this,tSe),theme:Dx.call(this,VN),icons:Dx.call(this,Bre),locale:Dx.call(this,rW),date:Dx.call(this,Gxe)})}}})}function g(){a.stop()}return{install:f,unmount:g,defaults:l,display:c,theme:u,icons:d,locale:h,date:p,goTo:m}})}const Van="3.11.3";X9e.version=Van;function Dx(t){const e=this.$,n=e.parent?.provides??e.vnode.appContext?.provides;if(n&&t in n)return n[t]}const Wan=X9e({theme:!1,directives:{ClickOutside:Lg}}),{entries:Q9e,setPrototypeOf:Jke,isFrozen:Han,getPrototypeOf:zan,getOwnPropertyDescriptor:jan}=Object;let{freeze:Ba,seal:Ju,create:tie}=Object,{apply:nie,construct:oie}=typeof Reflect<"u"&&Reflect;Ba||(Ba=function(t){return t});Ju||(Ju=function(t){return t});nie||(nie=function(t,e){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return t.apply(e,o)});oie||(oie=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return new t(...n)});const pO=Na(Array.prototype.forEach),Kan=Na(Array.prototype.lastIndexOf),Gke=Na(Array.prototype.pop),eA=Na(Array.prototype.push),Uan=Na(Array.prototype.splice),H6=Na(String.prototype.toLowerCase),PY=Na(String.prototype.toString),VY=Na(String.prototype.match),tA=Na(String.prototype.replace),qan=Na(String.prototype.indexOf),Jan=Na(String.prototype.trim),Od=Na(Object.prototype.hasOwnProperty),As=Na(RegExp.prototype.test),nA=Gan(TypeError);function Na(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return nie(t,e,o)}}function Gan(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return oie(t,n)}}function Bn(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:H6;Jke&&Jke(t,null);let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const i=n(r);i!==r&&(Han(e)||(e[o]=i),r=i)}t[r]=!0}return t}function Yan(t){for(let e=0;e<t.length;e++)Od(t,e)||(t[e]=null);return t}function zh(t){const e=tie(null);for(const[n,o]of Q9e(t))Od(t,n)&&(Array.isArray(o)?e[n]=Yan(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=zh(o):e[n]=o);return e}function oA(t,e){for(;t!==null;){const o=jan(t,e);if(o){if(o.get)return Na(o.get);if(typeof o.value=="function")return Na(o.value)}t=zan(t)}function n(){return null}return n}const Yke=Ba(["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","search","section","select","shadow","slot","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"]),WY=Ba(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),HY=Ba(["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"]),Zan=Ba(["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"]),zY=Ba(["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"]),Xan=Ba(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Zke=Ba(["#text"]),Xke=Ba(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),jY=Ba(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","mask-type","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","slope","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","tablevalues","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"]),Qke=Ba(["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"]),mO=Ba(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Qan=Ju(/\{\{[\w\W]*|[\w\W]*\}\}/gm),eln=Ju(/<%[\w\W]*|[\w\W]*%>/gm),tln=Ju(/\$\{[\w\W]*/gm),nln=Ju(/^data-[\-\w.\u00B7-\uFFFF]+$/),oln=Ju(/^aria-[\-\w]+$/),eKe=Ju(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),rln=Ju(/^(?:\w+script|data):/i),iln=Ju(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),tKe=Ju(/^html$/i),sln=Ju(/^[a-z][.\w]*(-[.\w]+)+$/i);var eFe=Object.freeze({__proto__:null,ARIA_ATTR:oln,ATTR_WHITESPACE:iln,CUSTOM_ELEMENT:sln,DATA_ATTR:nln,DOCTYPE_NAME:tKe,ERB_EXPR:eln,IS_ALLOWED_URI:eKe,IS_SCRIPT_OR_DATA:rln,MUSTACHE_EXPR:Qan,TMPLIT_EXPR:tln});const rA={element:1,text:3,progressingInstruction:7,comment:8,document:9},aln=function(){return typeof window>"u"?null:window},lln=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(n=e.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},tFe=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function nKe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:aln();const e=y=>nKe(y);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==rA.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const o=n,r=o.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:c,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:p}=t,m=l.prototype,f=oA(m,"cloneNode"),g=oA(m,"remove"),C=oA(m,"nextSibling"),v=oA(m,"childNodes"),w=oA(m,"parentNode");if(typeof s=="function"){const y=n.createElement("template");y.content&&y.content.ownerDocument&&(n=y.content.ownerDocument)}let S,x="";const{implementation:F,createNodeIterator:_,createDocumentFragment:D,getElementsByTagName:B}=n,{importNode:$}=o;let A=tFe();e.isSupported=typeof Q9e=="function"&&typeof w=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:M,TMPLIT_EXPR:H,DATA_ATTR:q,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:we,CUSTOM_ELEMENT:Z}=eFe;let{IS_ALLOWED_URI:me}=eFe,V=null;const de=Bn({},[...Yke,...WY,...HY,...zY,...Zke]);let P=null;const Y=Bn({},[...Xke,...jY,...Qke,...mO]);let O=Object.seal(tie(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}})),Ce=null,he=null;const ee=Object.seal(tie(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ft=!0,wt=!0,St=!1,J=!0,U=!1,ie=!0,se=!1,ue=!1,pe=!1,fe=!1,be=!1,te=!1,le=!0,De=!1;const Ee="user-content-";let ke=!0,xe=!1,Fe={},ge=null;const rt=Bn({},["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 fn=null;const gn=Bn({},["audio","video","img","source","image","track"]);let tn=null;const Hn=Bn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qt="http://www.w3.org/1998/Math/MathML",en="http://www.w3.org/2000/svg",Be="http://www.w3.org/1999/xhtml";let mt=Be,_n=!1,An=null;const Ni=Bn({},[qt,en,Be],PY);let un=Bn({},["mi","mo","mn","ms","mtext"]),dn=Bn({},["annotation-xml"]);const Ii=Bn({},["title","style","font","a","script"]);let It=null;const Mi=["application/xhtml+xml","text/html"],$i="text/html";let ae=null,_t=null;const Oi=n.createElement("form"),Ro=function(y){return y instanceof RegExp||y instanceof Function},Qn=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(_t&&_t===y)){if((!y||typeof y!="object")&&(y={}),y=zh(y),It=Mi.indexOf(y.PARSER_MEDIA_TYPE)===-1?$i:y.PARSER_MEDIA_TYPE,ae=It==="application/xhtml+xml"?PY:H6,V=Od(y,"ALLOWED_TAGS")?Bn({},y.ALLOWED_TAGS,ae):de,P=Od(y,"ALLOWED_ATTR")?Bn({},y.ALLOWED_ATTR,ae):Y,An=Od(y,"ALLOWED_NAMESPACES")?Bn({},y.ALLOWED_NAMESPACES,PY):Ni,tn=Od(y,"ADD_URI_SAFE_ATTR")?Bn(zh(Hn),y.ADD_URI_SAFE_ATTR,ae):Hn,fn=Od(y,"ADD_DATA_URI_TAGS")?Bn(zh(gn),y.ADD_DATA_URI_TAGS,ae):gn,ge=Od(y,"FORBID_CONTENTS")?Bn({},y.FORBID_CONTENTS,ae):rt,Ce=Od(y,"FORBID_TAGS")?Bn({},y.FORBID_TAGS,ae):zh({}),he=Od(y,"FORBID_ATTR")?Bn({},y.FORBID_ATTR,ae):zh({}),Fe=Od(y,"USE_PROFILES")?y.USE_PROFILES:!1,ft=y.ALLOW_ARIA_ATTR!==!1,wt=y.ALLOW_DATA_ATTR!==!1,St=y.ALLOW_UNKNOWN_PROTOCOLS||!1,J=y.ALLOW_SELF_CLOSE_IN_ATTR!==!1,U=y.SAFE_FOR_TEMPLATES||!1,ie=y.SAFE_FOR_XML!==!1,se=y.WHOLE_DOCUMENT||!1,fe=y.RETURN_DOM||!1,be=y.RETURN_DOM_FRAGMENT||!1,te=y.RETURN_TRUSTED_TYPE||!1,pe=y.FORCE_BODY||!1,le=y.SANITIZE_DOM!==!1,De=y.SANITIZE_NAMED_PROPS||!1,ke=y.KEEP_CONTENT!==!1,xe=y.IN_PLACE||!1,me=y.ALLOWED_URI_REGEXP||eKe,mt=y.NAMESPACE||Be,un=y.MATHML_TEXT_INTEGRATION_POINTS||un,dn=y.HTML_INTEGRATION_POINTS||dn,O=y.CUSTOM_ELEMENT_HANDLING||{},y.CUSTOM_ELEMENT_HANDLING&&Ro(y.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(O.tagNameCheck=y.CUSTOM_ELEMENT_HANDLING.tagNameCheck),y.CUSTOM_ELEMENT_HANDLING&&Ro(y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(O.attributeNameCheck=y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),y.CUSTOM_ELEMENT_HANDLING&&typeof y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(O.allowCustomizedBuiltInElements=y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),U&&(wt=!1),be&&(fe=!0),Fe&&(V=Bn({},Zke),P=[],Fe.html===!0&&(Bn(V,Yke),Bn(P,Xke)),Fe.svg===!0&&(Bn(V,WY),Bn(P,jY),Bn(P,mO)),Fe.svgFilters===!0&&(Bn(V,HY),Bn(P,jY),Bn(P,mO)),Fe.mathMl===!0&&(Bn(V,zY),Bn(P,Qke),Bn(P,mO))),y.ADD_TAGS&&(typeof y.ADD_TAGS=="function"?ee.tagCheck=y.ADD_TAGS:(V===de&&(V=zh(V)),Bn(V,y.ADD_TAGS,ae))),y.ADD_ATTR&&(typeof y.ADD_ATTR=="function"?ee.attributeCheck=y.ADD_ATTR:(P===Y&&(P=zh(P)),Bn(P,y.ADD_ATTR,ae))),y.ADD_URI_SAFE_ATTR&&Bn(tn,y.ADD_URI_SAFE_ATTR,ae),y.FORBID_CONTENTS&&(ge===rt&&(ge=zh(ge)),Bn(ge,y.FORBID_CONTENTS,ae)),y.ADD_FORBID_CONTENTS&&(ge===rt&&(ge=zh(ge)),Bn(ge,y.ADD_FORBID_CONTENTS,ae)),ke&&(V["#text"]=!0),se&&Bn(V,["html","head","body"]),V.table&&(Bn(V,["tbody"]),delete Ce.tbody),y.TRUSTED_TYPES_POLICY){if(typeof y.TRUSTED_TYPES_POLICY.createHTML!="function")throw nA('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw nA('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=y.TRUSTED_TYPES_POLICY,x=S.createHTML("")}else S===void 0&&(S=lln(p,r)),S!==null&&typeof x=="string"&&(x=S.createHTML(""));Ba&&Ba(y),_t=y}},Do=Bn({},[...WY,...HY,...Zan]),Bo=Bn({},[...zY,...Xan]),Pi=function(y){let T=w(y);(!T||!T.tagName)&&(T={namespaceURI:mt,tagName:"template"});const k=H6(y.tagName),z=H6(T.tagName);return An[y.namespaceURI]?y.namespaceURI===en?T.namespaceURI===Be?k==="svg":T.namespaceURI===qt?k==="svg"&&(z==="annotation-xml"||un[z]):!!Do[k]:y.namespaceURI===qt?T.namespaceURI===Be?k==="math":T.namespaceURI===en?k==="math"&&dn[z]:!!Bo[k]:y.namespaceURI===Be?T.namespaceURI===en&&!dn[z]||T.namespaceURI===qt&&!un[z]?!1:!Bo[k]&&(Ii[k]||!Do[k]):!!(It==="application/xhtml+xml"&&An[y.namespaceURI]):!1},pt=function(y){eA(e.removed,{element:y});try{w(y).removeChild(y)}catch{g(y)}},gt=function(y,T){try{eA(e.removed,{attribute:T.getAttributeNode(y),from:T})}catch{eA(e.removed,{attribute:null,from:T})}if(T.removeAttribute(y),y==="is")if(fe||be)try{pt(T)}catch{}else try{T.setAttribute(y,"")}catch{}},No=function(y){let T=null,k=null;if(pe)y="<remove></remove>"+y;else{const X=VY(y,/^[\r\n\t ]+/);k=X&&X[0]}It==="application/xhtml+xml"&&mt===Be&&(y='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+y+"</body></html>");const z=S?S.createHTML(y):y;if(mt===Be)try{T=new h().parseFromString(z,It)}catch{}if(!T||!T.documentElement){T=F.createDocument(mt,"template",null);try{T.documentElement.innerHTML=_n?x:z}catch{}}const ce=T.body||T.documentElement;return y&&k&&ce.insertBefore(n.createTextNode(k),ce.childNodes[0]||null),mt===Be?B.call(T,se?"html":"body")[0]:se?T.documentElement:ce},Io=function(y){return _.call(y.ownerDocument||y,y,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},eo=function(y){return y instanceof d&&(typeof y.nodeName!="string"||typeof y.textContent!="string"||typeof y.removeChild!="function"||!(y.attributes instanceof u)||typeof y.removeAttribute!="function"||typeof y.setAttribute!="function"||typeof y.namespaceURI!="string"||typeof y.insertBefore!="function"||typeof y.hasChildNodes!="function")},Mo=function(y){return typeof a=="function"&&y instanceof a};function it(y,T,k){pO(y,z=>{z.call(e,T,k,_t)})}const $o=function(y){let T=null;if(it(A.beforeSanitizeElements,y,null),eo(y))return pt(y),!0;const k=ae(y.nodeName);if(it(A.uponSanitizeElement,y,{tagName:k,allowedTags:V}),ie&&y.hasChildNodes()&&!Mo(y.firstElementChild)&&As(/<[/\w!]/g,y.innerHTML)&&As(/<[/\w!]/g,y.textContent)||y.nodeType===rA.progressingInstruction||ie&&y.nodeType===rA.comment&&As(/<[/\w]/g,y.data))return pt(y),!0;if(!(ee.tagCheck instanceof Function&&ee.tagCheck(k))&&(!V[k]||Ce[k])){if(!Ce[k]&&Po(k)&&(O.tagNameCheck instanceof RegExp&&As(O.tagNameCheck,k)||O.tagNameCheck instanceof Function&&O.tagNameCheck(k)))return!1;if(ke&&!ge[k]){const z=w(y)||y.parentNode,ce=v(y)||y.childNodes;if(ce&&z){const X=ce.length;for(let Ne=X-1;Ne>=0;--Ne){const Ae=f(ce[Ne],!0);Ae.__removalCount=(y.__removalCount||0)+1,z.insertBefore(Ae,C(y))}}}return pt(y),!0}return y instanceof l&&!Pi(y)||(k==="noscript"||k==="noembed"||k==="noframes")&&As(/<\/no(script|embed|frames)/i,y.innerHTML)?(pt(y),!0):(U&&y.nodeType===rA.text&&(T=y.textContent,pO([L,M,H],z=>{T=tA(T,z," ")}),y.textContent!==T&&(eA(e.removed,{element:y.cloneNode()}),y.textContent=T)),it(A.afterSanitizeElements,y,null),!1)},Oo=function(y,T,k){if(le&&(T==="id"||T==="name")&&(k in n||k in Oi))return!1;if(!(wt&&!he[T]&&As(q,T))&&!(ft&&As(j,T))&&!(ee.attributeCheck instanceof Function&&ee.attributeCheck(T,y))){if(!P[T]||he[T]){if(!(Po(y)&&(O.tagNameCheck instanceof RegExp&&As(O.tagNameCheck,y)||O.tagNameCheck instanceof Function&&O.tagNameCheck(y))&&(O.attributeNameCheck instanceof RegExp&&As(O.attributeNameCheck,T)||O.attributeNameCheck instanceof Function&&O.attributeNameCheck(T,y))||T==="is"&&O.allowCustomizedBuiltInElements&&(O.tagNameCheck instanceof RegExp&&As(O.tagNameCheck,k)||O.tagNameCheck instanceof Function&&O.tagNameCheck(k))))return!1}else if(!tn[T]&&!As(me,tA(k,we,""))&&!((T==="src"||T==="xlink:href"||T==="href")&&y!=="script"&&qan(k,"data:")===0&&fn[y])&&!(St&&!As(K,tA(k,we,"")))&&k)return!1}return!0},Po=function(y){return y!=="annotation-xml"&&VY(y,Z)},Vo=function(y){it(A.beforeSanitizeAttributes,y,null);const{attributes:T}=y;if(!T||eo(y))return;const k={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:P,forceKeepAttr:void 0};let z=T.length;for(;z--;){const ce=T[z],{name:X,namespaceURI:Ne,value:Ae}=ce,Re=ae(X),Rn=Ae;let ye=X==="value"?Rn:Jan(Rn);if(k.attrName=Re,k.attrValue=ye,k.keepAttr=!0,k.forceKeepAttr=void 0,it(A.uponSanitizeAttribute,y,k),ye=k.attrValue,De&&(Re==="id"||Re==="name")&&(gt(X,y),ye=Ee+ye),ie&&As(/((--!?|])>)|<\/(style|title|textarea)/i,ye)){gt(X,y);continue}if(Re==="attributename"&&VY(ye,"href")){gt(X,y);continue}if(k.forceKeepAttr)continue;if(!k.keepAttr){gt(X,y);continue}if(!J&&As(/\/>/i,ye)){gt(X,y);continue}U&&pO([L,M,H],ii=>{ye=tA(ye,ii," ")});const yn=ae(y.nodeName);if(!Oo(yn,Re,ye)){gt(X,y);continue}if(S&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Ne)switch(p.getAttributeType(yn,Re)){case"TrustedHTML":{ye=S.createHTML(ye);break}case"TrustedScriptURL":{ye=S.createScriptURL(ye);break}}if(ye!==Rn)try{Ne?y.setAttributeNS(Ne,X,ye):y.setAttribute(X,ye),eo(y)?pt(y):Gke(e.removed)}catch{gt(X,y)}}it(A.afterSanitizeAttributes,y,null)},Vi=function y(T){let k=null;const z=Io(T);for(it(A.beforeSanitizeShadowDOM,T,null);k=z.nextNode();)it(A.uponSanitizeShadowNode,k,null),$o(k),Vo(k),k.content instanceof i&&y(k.content);it(A.afterSanitizeShadowDOM,T,null)};return e.sanitize=function(y){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},k=null,z=null,ce=null,X=null;if(_n=!y,_n&&(y="<!-->"),typeof y!="string"&&!Mo(y))if(typeof y.toString=="function"){if(y=y.toString(),typeof y!="string")throw nA("dirty is not a string, aborting")}else throw nA("toString is not a function");if(!e.isSupported)return y;if(ue||Qn(T),e.removed=[],typeof y=="string"&&(xe=!1),xe){if(y.nodeName){const Re=ae(y.nodeName);if(!V[Re]||Ce[Re])throw nA("root node is forbidden and cannot be sanitized in-place")}}else if(y instanceof a)k=No("<!---->"),z=k.ownerDocument.importNode(y,!0),z.nodeType===rA.element&&z.nodeName==="BODY"||z.nodeName==="HTML"?k=z:k.appendChild(z);else{if(!fe&&!U&&!se&&y.indexOf("<")===-1)return S&&te?S.createHTML(y):y;if(k=No(y),!k)return fe?null:te?x:""}k&&pe&&pt(k.firstChild);const Ne=Io(xe?y:k);for(;ce=Ne.nextNode();)$o(ce),Vo(ce),ce.content instanceof i&&Vi(ce.content);if(xe)return y;if(fe){if(be)for(X=D.call(k.ownerDocument);k.firstChild;)X.appendChild(k.firstChild);else X=k;return(P.shadowroot||P.shadowrootmode)&&(X=$.call(o,X,!0)),X}let Ae=se?k.outerHTML:k.innerHTML;return se&&V["!doctype"]&&k.ownerDocument&&k.ownerDocument.doctype&&k.ownerDocument.doctype.name&&As(tKe,k.ownerDocument.doctype.name)&&(Ae="<!DOCTYPE "+k.ownerDocument.doctype.name+`>
|
|
147
|
+
`}),cg=t=>({borderTop:aO(t.border.Top,t.themeColors),borderRight:aO(t.border.Right,t.themeColors),borderBottom:aO(t.border.Bottom,t.themeColors),borderLeft:aO(t.border.Left,t.themeColors)}),i$=t=>t.borderCollapse!==void 0?{borderCollapse:OPt(t.borderCollapse)}:{borderCollapse:"collapse"},OPt=t=>{switch(t){case"Collapse":return"collapse";case"Separate":return"separate";default:return Zc(t)}},PPt=t=>({Match:e=>{switch(t.Discriminator){case"None":return e.None();case"EmailBackgroundColor":return e.EmailBackgroundColor();case"BodyColor":return e.BodyColor();case"TitleColor":return e.TitleColor();case"HeadingColor":return e.HeadingColor();case"SubHeadingColor":return e.SubHeading();case"LargeTextColor":return e.LargeTextColor();case"NormalTextColor":return e.NormalTextColor();case"DescriptionTextColor":return e.DescriptionTextColor();case"PrimaryTextColor":return e.PrimaryTextColor();case"SecondaryTextColor":return e.SecondaryTextColor();case"ButtonTextColor":return e.ButtonTextColor();case"LinkColor":return e.LinkColor();case"PrimaryColor":return e.PrimaryColor();case"SecondaryColor":return e.SecondaryColor();case"CardBackgroundColor":return e.CardBackgroundColor();case"Custom":return e.Custom(t.CustomValue);default:return Zc(t.Discriminator)}}}),lc=t=>PPt(t.color).Match({None:()=>null,EmailBackgroundColor:()=>t.themeColors.EmailBackgroundColor,BodyColor:()=>t.themeColors.BodyColor,TitleColor:()=>t.themeColors.TitleColor,HeadingColor:()=>t.themeColors.HeadingColor,SubHeading:()=>t.themeColors.SubHeadingColor,LargeTextColor:()=>t.themeColors.LargeTextColor,NormalTextColor:()=>t.themeColors.NormalTextColor,DescriptionTextColor:()=>t.themeColors.DescriptionTextColor,PrimaryTextColor:()=>t.themeColors.PrimaryTextColor,SecondaryTextColor:()=>t.themeColors.SecondaryTextColor,LinkColor:()=>t.themeColors.LinkColor,PrimaryColor:()=>t.themeColors.PrimaryColor,SecondaryColor:()=>t.themeColors.SecondaryColor,CardBackgroundColor:()=>t.themeColors.CardBackgroundColor,ButtonTextColor:()=>t.themeColors.ButtonTextColor,Custom:e=>e}),c9e=t=>({Match:e=>{switch(t){case"Left":return e.Left();case"Center":return e.Center();case"Right":return e.Right();default:return Zc(t)}}}),VPt=t=>t.containerAlign?c9e(t.containerAlign).Match({Left:()=>({textAlign:"left"}),Center:()=>({textAlign:"center"}),Right:()=>({textAlign:"right"})}):{},bf=t=>t.containerAlign?c9e(t.containerAlign).Match({Left:()=>"left",Center:()=>"center",Right:()=>"right"}):"center",WPt=re({__name:"If",props:{deps:{},theme:{},element:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=e,r=Le({ifResult:!1,isLoading:!0});return n.deps.boolExpressionEvaluator({boolExpression:n.element.Predicate,context:n.context}).then(i=>{r.ifResult=i,r.isLoading=!1}),(i,s)=>(E(!0),R(Se,null,At(r.ifResult?n.element.True:n.element.False,(a,l)=>(E(),Q(Bu,{key:l,deps:n.deps,theme:n.theme,element:a,context:n.context,path:[...n.path,r.ifResult?"True":"False",l],selectedElementPath:n.selectedElementPath,onOnImageSizeAdjusted:s[0]||(s[0]=c=>o("onImageSizeAdjusted",c)),onOnImageOriginalSizeAdjusted:s[1]||(s[1]=c=>o("onImageOriginalSizeAdjusted",c)),onOnElementClicked:s[2]||(s[2]=c=>o("onElementClicked",c)),onOnElementUpdatedEvent:s[3]||(s[3]=c=>o("onElementUpdatedEvent",c)),onOnElementRemoved:s[4]||(s[4]=c=>o("onElementRemoved",c))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))}}),s$=t=>({paddingTop:Jr({paddingExpression:t.paddings.Top,themeComponentPaddings:t.themeComponentPaddings,themeBodyPaddings:t.themeBodyPaddings})+"px",paddingRight:Jr({paddingExpression:t.paddings.Right,themeComponentPaddings:t.themeComponentPaddings,themeBodyPaddings:t.themeBodyPaddings})+"px",paddingBottom:Jr({paddingExpression:t.paddings.Bottom,themeComponentPaddings:t.themeComponentPaddings,themeBodyPaddings:t.themeBodyPaddings})+"px",paddingLeft:Jr({paddingExpression:t.paddings.Left,themeComponentPaddings:t.themeComponentPaddings,themeBodyPaddings:t.themeBodyPaddings})+"px"}),HPt=hs,zPt=t=>HPt(t.width).Match({Auto:()=>"initial",Pixel:e=>e.Value+"px",Percentage:e=>e.Value+"%"}),jPt=["align"],KPt=re({__name:"HeightContainer",props:{deps:{},theme:{},element:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("table",{class:"heightContainerRender",style:Te([{"border-spacing":"0","border-collapse":"separate"},{width:N(zPt)({width:n.element.Width})}])},[b("tbody",null,[b("tr",null,[b("td",{align:N(bf)({containerAlign:n.element.ContainerAlign}),style:Te([N(s$)({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:N(lc)({color:n.element.BackgroundColor,themeColors:n.theme.Colors})??"inherit"},N(cg)({border:n.element.Border,themeColors:n.theme.Colors}),N(zp)({borderRadius:n.element.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})])},[(E(!0),R(Se,null,At(n.element.Elements,(s,a)=>(E(),Q(Bu,{key:a,deps:n.deps,theme:n.theme,element:s,path:[...n.path,"Elements",a],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:i[0]||(i[0]=l=>o("onImageSizeAdjusted",l)),onOnImageOriginalSizeAdjusted:i[1]||(i[1]=l=>o("onImageOriginalSizeAdjusted",l)),onOnElementClicked:i[2]||(i[2]=l=>o("onElementClicked",l)),onOnElementUpdatedEvent:i[3]||(i[3]=l=>o("onElementUpdatedEvent",l)),onOnElementRemoved:i[4]||(i[4]=l=>o("onElementRemoved",l))},null,8,["deps","theme","element","path","selectedElementPath","context"]))),128))],12,jPt)])])],4))}}),UPt=t=>({Match:e=>{switch(t){case"Left":return e.Left();case"Center":return e.Center();case"Right":return e.Right();case"Inline":return e.Inline()}}}),oI=t=>UPt(t.contentAlign).Match({Left:()=>({display:"block",textAlign:"left"}),Center:()=>({display:"block",textAlign:"center"}),Right:()=>({display:"block",textAlign:"right"}),Inline:()=>({})}),qPt=["href"],JPt=["src","alt"],GPt=["src","alt"],YPt=re({__name:"Image",props:{deps:{},theme:{},element:{},path:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementClicked"],setup(t,{emit:e}){const n=c=>{l("onImageOriginalSizeAdjusted",{Path:o.path,OriginalHeight:c.target.naturalHeight,OriginalWidth:c.target.naturalWidth})},o=t,r=Le({href:"",src:"",alt:"",isLoaded:!1}),i=ne(()=>(o.element.IsRetina?o.element.OriginalWidth/2:o.element.OriginalWidth)+"px"),s=async c=>o.deps.stringExpressionEvaluator({stringExpression:c,context:o.context}),a=async()=>{const[c,u,d]=await Promise.all([s(o.element.Src),s(o.element.HRef),s(o.element.Alt)]);r.href=u,r.src=c,r.alt=d,r.isLoaded=!0};on(()=>[o.element.Src,o.element.HRef,o.element.Alt,o.context],()=>a()),a();const l=e;return(c,u)=>o.element.IsLink?(E(),R("a",{key:0,href:r.href,style:Te([N(oI)({contentAlign:o.element.ContentAlign})]),onClick:u[0]||(u[0]=Nt(()=>l("onElementClicked"),["prevent"]))},[r.isLoaded?Ke((E(),R("img",{key:0,class:G(["Image cursor-pointer",{"img-responsive":o.element.IsResponsive}]),src:r.src,alt:r.alt,style:Te([N(zp)({borderRadius:o.element.BorderRadius,borderRadiusCard:o.theme.BorderRadiusCard,bodyBorderRadius:o.theme.BorderRadius,borderButtonRadius:o.theme.BorderRadiusButton,borderBannerRadius:o.theme.BorderRadiusBanner}),N(cg)({border:o.element.Border,themeColors:o.theme.Colors}),{width:i.value,maxWidth:"100%"},{verticalAlign:o.element.VerticalAlign}]),onLoad:n},null,46,JPt)),[[N(jw),({width:d,height:h})=>l("onImageSizeAdjusted",{Path:o.path,AdjustedHeight:h,AdjustedWidth:d})]]):oe("",!0)],12,qPt)):(E(),R("span",{key:1,style:Te([N(oI)({contentAlign:o.element.ContentAlign})]),onClick:u[1]||(u[1]=Nt(()=>l("onElementClicked"),["prevent"]))},[r.isLoaded?Ke((E(),R("img",{key:0,class:G(["Image cursor-pointer",{"img-responsive":o.element.IsResponsive}]),src:r.src,alt:r.alt,style:Te([N(zp)({borderRadius:o.element.BorderRadius,borderRadiusCard:o.theme.BorderRadiusCard,bodyBorderRadius:o.theme.BorderRadius,borderButtonRadius:o.theme.BorderRadiusButton,borderBannerRadius:o.theme.BorderRadiusBanner}),N(cg)({border:o.element.Border,themeColors:o.theme.Colors}),{width:i.value,maxWidth:"100%"},{verticalAlign:o.element.VerticalAlign}]),onLoad:n},null,46,GPt)),[[N(jw),({width:d,height:h})=>l("onImageSizeAdjusted",{Path:o.path,AdjustedHeight:h,AdjustedWidth:d})]]):oe("",!0)],4))}}),ZPt=ve(YPt,[["__scopeId","data-v-eaaeacec"]]),XPt=hs,QPt=t=>t.width===void 0?{}:XPt(t.width).Match({Auto:()=>({width:"auto"}),Pixel:e=>({width:e.Value+"px"}),Percentage:e=>({width:e.Value+"%"})}),eVt=t=>{switch(t){case"Auto":return{width:"auto"};case"FullWidth":return{width:"100%"};default:return Zc(t)}},tVt=re({__name:"OneLineList",props:{deps:{},theme:{},element:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageSizeAdjusted","onImageOriginalSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("table",{class:"oneLineList",style:Te([{"border-spacing":"0","border-collapse":"collapse"},[N(eVt)(n.element.ContainerWidth)]])},[b("tbody",null,[b("tr",null,[(E(!0),R(Se,null,At(n.element.Elements,(s,a)=>(E(),R("td",{key:a,class:"oneLineListItem",style:Te([N(s$)({paddings:n.element.ItemPaddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),N(QPt)({width:n.element.ItemWidth}),{lineHeight:"normal"}])},[(E(),Q(Bu,{key:a,deps:n.deps,theme:n.theme,element:s,path:[...n.path,"Elements",a],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:i[0]||(i[0]=l=>o("onImageSizeAdjusted",l)),onOnImageOriginalSizeAdjusted:i[1]||(i[1]=l=>o("onImageOriginalSizeAdjusted",l)),onOnElementClicked:i[2]||(i[2]=l=>o("onElementClicked",l)),onOnElementUpdatedEvent:i[3]||(i[3]=l=>o("onElementUpdatedEvent",l)),onOnElementRemoved:i[4]||(i[4]=l=>o("onElementRemoved",l))},null,8,["deps","theme","element","path","selectedElementPath","context"]))],4))),128))])])],4))}}),nVt={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"}},oVt=re({__name:"Spacer",props:{theme:{},element:{}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("table",{class:"Spacer",width:"100%",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"},onClick:i[0]||(i[0]=()=>o("onElementClicked"))},[b("tbody",null,[b("tr",null,[b("td",{valign:"middle",style:Te([{height:N(Jr)({paddingExpression:n.element.Height,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})+"px"}])},[b("table",nVt,[b("tbody",null,[b("tr",null,[b("td",{style:Te([[{borderTop:n.element.Weight+"px",borderStyle:n.element.Weight>0?"solid":"none",borderColor:N(lc)({color:n.element.Color,themeColors:n.theme.Colors})}],{"font-size":"0","line-height":"0","border-bottom":"0","border-left":"0","border-right":"0"}])}," ",4)])])])],4)])])]))}}),iH={beforeMount(t,e){t.innerHTML=Nwe.sanitize(e.value)},beforeUpdate(t,e){t.innerHTML=Nwe.sanitize(e.value)}},rVt=t=>({Match:e=>{switch(t.Discriminator){case"EmailBackgroundColor":return e.EmailBackgroundColor();case"BodyColor":return e.BodyColor();case"TitleColor":return e.TitleColor();case"HeadingColor":return e.HeadingColor();case"SubHeadingColor":return e.SubHeading();case"LargeTextColor":return e.LargeTextColor();case"NormalTextColor":return e.NormalTextColor();case"DescriptionTextColor":return e.DescriptionTextColor();case"PrimaryTextColor":return e.PrimaryTextColor();case"SecondaryTextColor":return e.SecondaryTextColor();case"ButtonTextColor":return e.ButtonTextColor();case"LinkColor":return e.LinkColor();case"PrimaryColor":return e.PrimaryColor();case"SecondaryColor":return e.SecondaryColor();case"CardBackgroundColor":return e.CardBackgroundColor();case"Custom":return e.Custom(t.CustomValue)}}}),a$=t=>rVt(t.fontColor).Match({EmailBackgroundColor:()=>t.themeColors.EmailBackgroundColor,BodyColor:()=>t.themeColors.BodyColor,TitleColor:()=>t.themeColors.TitleColor,HeadingColor:()=>t.themeColors.HeadingColor,SubHeading:()=>t.themeColors.SubHeadingColor,LargeTextColor:()=>t.themeColors.LargeTextColor,NormalTextColor:()=>t.themeColors.NormalTextColor,DescriptionTextColor:()=>t.themeColors.DescriptionTextColor,PrimaryTextColor:()=>t.themeColors.PrimaryTextColor,SecondaryTextColor:()=>t.themeColors.SecondaryTextColor,LinkColor:()=>t.themeColors.LinkColor,PrimaryColor:()=>t.themeColors.PrimaryColor,SecondaryColor:()=>t.themeColors.SecondaryColor,CardBackgroundColor:()=>t.themeColors.CardBackgroundColor,ButtonTextColor:()=>t.themeColors.ButtonTextColor,Custom:e=>e}),iVt=t=>({Match:e=>{switch(t){case"None":return e.None();case"Underline":return e.Underline();case"LineThrough":return e.LineThrough()}}}),xpe=t=>iVt(t.textDecoration).Match({None:()=>"none",Underline:()=>"underline",LineThrough:()=>"line-through"}),u9e=t=>({fontSize:t.customFontSettings.FontSize,lineHeight:t.customFontSettings.LineHeight,fontWeight:t.customFontSettings.IsBold?"bold":"normal",fontStyle:t.customFontSettings.IsItalic?"italic":"normal",textDecoration:xpe({textDecoration:t.customFontSettings.Decoration}),fontFamily:t.customFontSettings.FontFamily,color:a$({fontColor:t.customFontSettings.FontColor,themeColors:t.themeColors})}),Tpe=t=>({Match:e=>{switch(t.Discriminator){case"Heading":return e.Heading();case"Title":return e.Title();case"SubHeading":return e.SubHeading();case"LargeText":return e.LargeText();case"NormalText":return e.NormalText();case"DescriptionText":return e.DescriptionText();case"Link":return e.Link();case"Button":return e.Button();case"Custom":return e.Custom(t.CustomFontSettings);default:return Zc(t.Discriminator)}}}),sVt=t=>({Match:e=>{switch(t.Discriminator){case"StyleLinkedColor":return e.FontStyle();case"EmailBackgroundColor":return e.EmailBackgroundColor();case"BodyColor":return e.BodyColor();case"TitleColor":return e.TitleColor();case"HeadingColor":return e.HeadingColor();case"SubHeadingColor":return e.SubHeading();case"LargeTextColor":return e.LargeTextColor();case"NormalTextColor":return e.NormalTextColor();case"DescriptionTextColor":return e.DescriptionTextColor();case"PrimaryTextColor":return e.PrimaryTextColor();case"SecondaryTextColor":return e.SecondaryTextColor();case"ButtonTextColor":return e.ButtonTextColor();case"LinkColor":return e.LinkColor();case"PrimaryColor":return e.PrimaryColor();case"SecondaryColor":return e.SecondaryColor();case"CardBackgroundColor":return e.CardBackgroundColor();case"Custom":return e.Custom(t.CustomValue)}}}),d9e=t=>sVt(t.fontStyleColor).Match({FontStyle:()=>Tpe(t.fontStyle).Match({Heading:()=>t.themeColors.HeadingColor,Title:()=>t.themeColors.TitleColor,SubHeading:()=>t.themeColors.SubHeadingColor,LargeText:()=>t.themeColors.LargeTextColor,NormalText:()=>t.themeColors.NormalTextColor,DescriptionText:()=>t.themeColors.DescriptionTextColor,Button:()=>t.themeColors.ButtonTextColor,Link:()=>t.themeColors.LinkColor,Custom:e=>lc({color:e.FontColor,themeColors:t.themeColors})}),EmailBackgroundColor:()=>t.themeColors.EmailBackgroundColor,BodyColor:()=>t.themeColors.BodyColor,TitleColor:()=>t.themeColors.TitleColor,HeadingColor:()=>t.themeColors.HeadingColor,SubHeading:()=>t.themeColors.SubHeadingColor,LargeTextColor:()=>t.themeColors.LargeTextColor,NormalTextColor:()=>t.themeColors.NormalTextColor,DescriptionTextColor:()=>t.themeColors.DescriptionTextColor,PrimaryTextColor:()=>t.themeColors.PrimaryTextColor,SecondaryTextColor:()=>t.themeColors.SecondaryTextColor,LinkColor:()=>t.themeColors.LinkColor,PrimaryColor:()=>t.themeColors.PrimaryColor,SecondaryColor:()=>t.themeColors.SecondaryColor,CardBackgroundColor:()=>t.themeColors.CardBackgroundColor,ButtonTextColor:()=>t.themeColors.ButtonTextColor,Custom:e=>e}),DU=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"],Sp={Arial:"Arial",Georgia:"Georgia",Tahoma:"Tahoma",TimesNewRoman:"Times New Roman",Verdana:"Verdana"},kpe=t=>({fontSize:t.fontSize+"px",lineHeight:t.lineHeight+"px",fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:Sp[t.fontFamily],textDecoration:t.textDecoration,color:t.color}),Fpe=t=>{const e=n=>({fontSize:n.FontSize,lineHeight:n.LineHeight,fontWeight:n.IsBold?"bold":"normal",fontStyle:n.IsItalic?"italic":"normal",fontFamily:t.fontFamily,textDecoration:xpe({textDecoration:n.Decoration}),color:d9e({fontStyleColor:t.fontStyle.FontColor,fontStyle:t.fontStyle,themeColors:t.themeColors})});return Tpe(t.fontStyle).Match({Heading:()=>e(t.themeDefinedFontSettings.Heading),Title:()=>e(t.themeDefinedFontSettings.Title),SubHeading:()=>e(t.themeDefinedFontSettings.SubHeading),LargeText:()=>e(t.themeDefinedFontSettings.LargeText),NormalText:()=>e(t.themeDefinedFontSettings.NormalText),DescriptionText:()=>e(t.themeDefinedFontSettings.DescriptionText),Link:()=>e(t.themeDefinedFontSettings.Link),Button:()=>e(t.themeDefinedFontSettings.Button),Custom:n=>u9e({customFontSettings:n,themeColors:t.themeColors})})},h9e=t=>({Match:e=>{switch(t.Discriminator){case"Theme":return e.Theme();case"Custom":return e.Custom(t.CustomValue);default:return Zc(t.Discriminator)}}}),aVt=t=>h9e(t.buttonPaddings).Match({Theme:()=>({TopBottom:t.themeButtonPaddings.TopBottom,LeftRight:t.themeButtonPaddings.LeftRight}),Custom:e=>({TopBottom:e.TopBottom,LeftRight:e.LeftRight})}),p9e=t=>t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),lVt=["align"],cVt={class:"Button"},uVt=["href"],dVt=re({__name:"ButtonVue",props:{deps:{},theme:{},element:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,o=ne(()=>kpe(Fpe({fontFamily:n.theme.FontFamily,fontStyle:n.element.TextStyle,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors}))),r=ne(()=>W6({borderColor:n.element.Border.Left.Color,themeColors:n.theme.Colors})),i=ne(()=>aVt({buttonPaddings:n.element.Paddings,themeButtonPaddings:n.theme.ButtonPaddings})),s=ne(()=>lc({color:n.element.BackgroundColor,themeColors:n.theme.Colors})),a=ne(()=>{switch(n.element.ContentAlign){case"Center":return"center";case"Left":return"left";case"Right":return"right";default:return"center"}}),l=Le({href:"",text:"",isLoading:!0}),c=n.deps.stringExpressionEvaluator,u=()=>{Promise.all([c({stringExpression:n.element.HRef,context:n.context}),c({stringExpression:n.element.Text,context:n.context})]).then(([h,p])=>{l.href=h,l.text=p9e(p),l.isLoading=!1})};u(),on(()=>[n.element.HRef,n.element.Text,n.context],()=>u());const d=e;return(h,p)=>(E(),R("table",{style:{"border-spacing":"0","border-collapse":"collapse",width:"100%"},onClick:p[1]||(p[1]=Nt(m=>d("onElementClicked"),["prevent"]))},[b("tbody",null,[b("tr",null,[b("td",{align:a.value},[b("div",cVt,[b("a",{style:Te([{display:"block","text-decoration":"none"},[o.value]]),href:l.href,onClick:p[0]||(p[0]=Nt(()=>{},["prevent"]))},[b("table",{style:Te([[{backgroundColor:s.value},N(zp)({borderRadius:n.element.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{width:n.element.FullWidth?"100%":"auto"},N(cg)({border:n.element.Border,themeColors:t.theme.Colors}),{borderColor:r.value}],{"text-align":"center","border-spacing":"0","border-collapse":"separate"}])},[b("tbody",null,[b("tr",null,[b("td",{align:"center",style:Te([{"line-height":"normal"},[{paddingTop:i.value.TopBottom+"px",paddingBottom:i.value.TopBottom+"px",paddingLeft:i.value.LeftRight+"px",paddingRight:i.value.LeftRight+"px"}]])},[Ke(b("p",{class:"user-select-none",style:Te([o.value])},null,4),[[N(iH),l.text]])],4)])])],4)],12,uVt)])],8,lVt)])])]))}}),hVt=ve(dVt,[["__scopeId","data-v-0c0a0e61"]]),pVt=["href"],mVt=re({__name:"SpanText",props:{deps:{},theme:{},element:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,o=n.deps.stringExpressionEvaluator,r=ne(()=>{const l=Fpe({fontFamily:n.theme.FontFamily,fontStyle:n.element.Style,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors});if(n.element.Style.Discriminator==="Custom"){const c=u9e({customFontSettings:n.element.Style.CustomFontSettings,themeColors:n.theme.Colors});return{...c,fontSize:c.fontSize+"px",lineHeight:c.lineHeight+"px",minHeight:n.element.MinNumberOfLines*l.lineHeight+"px"}}return{minHeight:n.element.MinNumberOfLines*l.lineHeight+"px",color:l.color}}),i=Le({href:"",text:"",isLoading:!0}),s=()=>{Promise.all([o({stringExpression:n.element.HRef,context:n.context}),o({stringExpression:n.element.Text,context:n.context})]).then(([l,c])=>{i.href=l,i.text=p9e(c),i.isLoading=!1})};s(),on(()=>[n.context,n.element.HRef,n.element.Text],()=>s());const a=e;return(l,c)=>n.element.IsLink?Ke((E(),R("a",{key:0,href:i.href,class:G(["SpanText cursor-pointer user-select-none",n.element.Style.Discriminator]),style:Te([{margin:"0"},[r.value,N(oI)({contentAlign:n.element.ContentAlign})]]),onClick:c[0]||(c[0]=Nt(()=>a("onElementClicked"),["prevent"]))},null,14,pVt)),[[N(iH),i.text]]):Ke((E(),R("span",{key:1,class:G(["SpanText cursor-pointer user-select-none",n.element.Style.Discriminator]),style:Te([{margin:"0"},[r.value,N(oI)({contentAlign:n.element.ContentAlign})]]),onClick:c[1]||(c[1]=Nt(()=>a("onElementClicked"),["prevent"]))},null,6)),[[N(iH),i.text]])}}),fVt=ve(mVt,[["__scopeId","data-v-44b3ff94"]]),Hl=t=>({fontSize:t.themeFontSettings.FontSize,lineHeight:t.themeFontSettings.LineHeight,fontWeight:t.themeFontSettings.IsBold?"bold":"normal",fontStyle:t.themeFontSettings.IsItalic?"italic":"normal",fontFamily:t.fontFamily,textDecoration:xpe({textDecoration:t.themeFontSettings.Decoration}),color:t.themeColor}),gVt={cancelButton:"Cancel",applyButton:"Delete"},yVt={cancelButton:"Отмена",applyButton:"Удалить"},hke=ht({en:gVt,ru:yVt}),CVt={class:"bootstrap-styles px-11 py-7 text-start"},Ch=re({__name:"RemoveConfirmModalWindow",props:{headerText:{},deps:{}},emits:["cancel","confirmed"],setup(t,{emit:e}){const n=t,o=()=>{i("cancel")},r={cancelButton:hke({localeKey:n.deps.localeKey}).cancelButton,applyButton:hke({localeKey:n.deps.localeKey}).applyButton},i=e;return(s,a)=>(E(),Q(bd,{headerText:n.headerText,class:"remove-element-confirm-modal-window",onClose:a[2]||(a[2]=()=>o())},{body:Bt(()=>[b("div",CVt,[Mp(s.$slots,"body-content")])]),"footer-actions":Bt(()=>[b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:a[0]||(a[0]=Nt(l=>o(),["stop"]))},W(r.cancelButton),1),b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white cursor-pointer remove-element-confirm__button",onClick:a[1]||(a[1]=Nt(l=>i("confirmed"),["stop"]))},W(r.applyButton),1)]),_:3},8,["headerText"]))}}),bVt={removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the text element?"},vVt={removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент ?"},pke=ht({en:bVt,ru:vVt}),mke=t=>({type:"doc",content:t.Content.map(wVt)}),wVt=t=>"ParagraphNode"in t?g9e(t):"BulletListNode"in t?SVt(t):"OrderedListNode"in t?xVt(t):"DataFieldNode"in t?f9e(t):Zc(t),m9e=t=>({type:"listItem",content:t.Content.map(e=>"ParagraphNode"in e?g9e(e):"ImageNode"in e?y9e(e):Zc(e))}),f9e=t=>({type:"dataField",marks:Epe({textStyle:t.DataFieldNode.TextStyle,commonLinkMark:t.DataFieldNode.CommonLinkMark}),attrs:{stringExpression:t.DataFieldNode.StringExpression}}),SVt=t=>({type:"bulletList",content:t.BulletListNode.Content.map(m9e),attrs:{themeName:t.BulletListNode.ListStyle}}),xVt=t=>({type:"orderedList",content:t.OrderedListNode.Content.map(m9e),attrs:{themeName:t.OrderedListNode.ListStyle}}),g9e=t=>{const e=t.ParagraphNode.Content[0],n=t.ParagraphNode.Content.length===1&&e!==void 0&&"HardBreakNode"in e;return{type:"paragraph",attrs:{themeName:t.ParagraphNode.ThemeName,contentAlign:t.ParagraphNode.ContentAlign},content:n?[]:t.ParagraphNode.Content.map(TVt)}},TVt=t=>"TextNode"in t?kVt(t):"HardBreakNode"in t?DVt():"ImageNode"in t?y9e(t):"DataFieldNode"in t?f9e(t):Zc(t),Epe=t=>{const e=[];return t.textStyle&&e.push(AVt(t.textStyle)),t.commonLinkMark&&e.push(RVt(t.commonLinkMark)),e.filter(n=>n!==void 0)},kVt=t=>({type:"text",text:t.TextNode.Text,marks:Epe({textStyle:t.TextNode.TextStyle,commonLinkMark:t.TextNode.CommonLinkMark})}),FVt=t=>{switch(t){case"Normal":return"normal";case"Bold":return"bold";default:return"normal"}},EVt=t=>{switch(t){case"Normal":return"normal";case"Italic":return"italic";default:return"normal"}},LVt=t=>{switch(t){case"None":return"none";case"Uppercase":return"uppercase";default:return"none"}},_Vt=t=>{switch(t){case"None":return"none";case"Underline":return"underline";case"LineThrough":return"line-through";default:return"none"}},AVt=t=>({type:"textStyle",attrs:{themeName:t.ThemeName,color:t.Style.Color,fontWeight:t.Style.FontWeight?FVt(t.Style.FontWeight):void 0,fontStyle:t.Style.FontStyle?EVt(t.Style.FontStyle):void 0,fontSize:t.Style.FontSize?t.Style.FontSize+"px":void 0,lineHeight:t.Style.LineHeight?t.Style.LineHeight+"px":void 0,fontFamily:t.Style.FontFamily,textTransform:t.Style.TextTransform?LVt(t.Style.TextTransform):void 0,textDecoration:t.Style.TextDecoration?_Vt(t.Style.TextDecoration):void 0}}),RVt=t=>hs(t).Match({LinkMark:e=>BVt({LinkMark:e}),UnsubscribeLinkMark:()=>NVt()}),DVt=()=>({type:"hardBreak"}),y9e=t=>({type:"image",attrs:{src:t.ImageNode.Src,alt:t.ImageNode.Alt,isRetina:t.ImageNode.IsRetina,width:t.ImageNode.Width,height:t.ImageNode.Height},marks:Epe({commonLinkMark:t.ImageNode.CommonLinkMark})}),BVt=t=>({type:"link",attrs:{href:t.LinkMark.Href}}),NVt=()=>({type:"unsubscribeLink"}),C9e=cm.create({name:"textTransform",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textTransform:{default:"none",parseHTML:t=>t.style.textTransform,renderHTML:t=>t.textTransform?{style:`text-transform: ${t.textTransform}`}:{}}}}]},addCommands(){return{setTextTransform:t=>({chain:e})=>e().setMark("textStyle",{textTransform:t}).run(),unsetTextTransform:()=>({chain:t,state:e})=>{const{from:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").length?t().setMark("textStyle",{textTransform:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textTransform:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=e=>e.isUppercase?this.editor.commands.unsetTextTransform():this.editor.commands.setTextTransform("uppercase");return{"Mod-Shift-u":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})},"Mod-Shift-U":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})}}}}),IVt=cm.create({name:"fontSize",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:t=>t.style.fontSize.replace(/['"]+/g,""),renderHTML:t=>t.fontSize?{style:`font-size: ${t.fontSize}`}:{}}}}]},addCommands(){return{setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t+"px"}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}}),MVt=cm.create({name:"lineHeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:null,parseHTML:t=>t.style.lineHeight.replace(/['"]+/g,""),renderHTML:t=>t.lineHeight?{style:`line-height: ${t.lineHeight}`}:{}}}}]},addCommands(){return{setLineHeight:t=>({chain:e})=>e().setMark("textStyle",{lineHeight:t+"px"}).run(),resetLineHeight:()=>({chain:t})=>t().setMark("textStyle",{lineHeight:null}).run()}}}),$Vt=t=>fo.create({name:"themeFontStyles",priority:1e3,addOptions(){return{types:["textStyle","bulletList","orderedList","paragraph"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{themeName:{default:t,parseHTML:e=>e.getAttribute("data-theme"),renderHTML:e=>e.themeName?{"data-theme":e.themeName,class:e.themeName}:{"data-theme":t,class:e.themeName}}}}]},addCommands(){return{setThemeSettings:e=>({chain:n,state:o})=>{const{$from:r}=o.selection,i=r.parent,s=r.index();return i.child(s).type.name==="image"?!1:n().setMark("textStyle",{themeName:e}).run()},applySiblingNodeThemeSettings:()=>({chain:e,state:n})=>{const{from:o,to:r,$from:i}=n.selection,s=i.parent,a=i.index(),l=i.node(i.depth)?.type.name==="dataField"||s.maybeChild(a)?.type.name==="dataField",c=s.child(a).type.name==="image",u=m=>{const f="NormalText",g=m.index>0?s.child(m.index-1):void 0,C=m.index+1<s.childCount?s.child(m.index+1):void 0,v=g??C;if(v){const w=v.marks.find(S=>S.type.name==="textStyle");if(w)return w.attrs.themeName}return f};if(l){const m=u({index:a});return e().unsetMark("textStyle",{extendEmptyMarkRange:!0}).setThemeSettings(m).run()}if(c)return!1;const d=u({index:a}),h=i.nodeBefore?i.pos-i.nodeBefore.nodeSize:o,p=i.nodeAfter?i.pos+i.nodeAfter.nodeSize:r;return e().setTextSelection({from:h,to:p}).setThemeSettings(d).run()}}},addProseMirrorPlugins(){return[new pr({key:new ri("syncBlockTheme"),appendTransaction:(e,n,o)=>{const r=o.tr;let i=!1;return o.doc.descendants((s,a)=>{if(s.type.name==="bulletList"||s.type.name==="orderedList"){const l=s.firstChild?.firstChild?.firstChild;if(l){const c=l.marks.find(u=>u.type.name==="textStyle")?.attrs.themeName;c&&s.attrs.themeName!==c&&(r.setNodeMarkup(a,void 0,{...s.attrs,themeName:c}),i=!0)}}if(s.type.name==="paragraph"){const l=s.firstChild;if(l){const c=l.marks.find(u=>u.type.name==="textStyle")?.attrs.themeName;c&&s.attrs.themeName!==c&&(r.setNodeMarkup(a,void 0,{...s.attrs,themeName:c}),i=!0)}}}),i?r:null}})]}}),OVt=cm.create({name:"fontWeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontWeight:{default:null,parseHTML:t=>t.style.fontWeight,renderHTML:t=>t.fontWeight?{style:`font-weight: ${t.fontWeight}`}:{}}}}]},addCommands(){return{setFontWeight:t=>({chain:e})=>e().setMark("textStyle",{fontWeight:t}).run(),unsetFontWeight:()=>({chain:t,state:e})=>{const{from:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").length?t().setMark("textStyle",{fontWeight:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontWeight:"normal"}).focus().run()},resetFontWeight:()=>({chain:t})=>t().setMark("textStyle",{fontWeight:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isBold?this.editor.commands.unsetFontWeight():this.editor.commands.setFontWeight("bold");return{"Mod-b":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})},"Mod-B":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})}}}}),PVt=cm.create({name:"fontStyle",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontStyle:{default:null,parseHTML:t=>t.style.fontStyle,renderHTML:t=>t.fontStyle?{style:`font-style: ${t.fontStyle}`}:{}}}}]},addCommands(){return{setFontStyle:t=>({chain:e})=>e().setMark("textStyle",{fontStyle:t}).run(),unsetFontStyle:()=>({chain:t,state:e})=>{const{from:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").length?t().setMark("textStyle",{fontStyle:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontStyle:"normal"}).focus().run()},resetFontStyle:()=>({chain:t})=>t().setMark("textStyle",{fontStyle:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isItalic?this.editor.commands.unsetFontStyle():this.editor.commands.setFontStyle("italic");return{"Mod-i":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})},"Mod-I":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})}}}}),Lpe=cm.create({name:"unsubscribeLink",priority:1e3,addOptions(){return{HTMLAttributes:{"data-type":"unsubscribe-link",class:"rich-text__unsubscribe-link"}}},parseHTML(){return[{tag:'span[data-type="unsubscribe-link"]'}]},renderHTML({HTMLAttributes:t}){return["span",Da(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnsubscribeLink:()=>({chain:t})=>t().setMark("unsubscribeLink").focus().run(),unsetUnsubscribeLink:()=>({chain:t,state:e})=>{const{from:n,to:o}=e.selection,r=e.doc.textBetween(n,o," ");return e.doc.nodeAt(n)?.type.name==="image"?t().unsetMark("unsubscribeLink").focus().run():r.length?t().setTextSelection({from:n,to:n+r.length}).unsetMark("unsubscribeLink").focus().run():t().unsetMark("unsubscribeLink",{extendEmptyMarkRange:!0}).focus().run()}}}}),VVt=cm.create({name:"textDecoration",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textDecoration:{parseHTML:t=>t.style.textDecoration,renderHTML:t=>t.textDecoration?{style:`text-decoration: ${t.textDecoration}`}:{}}}}]},addCommands(){return{setTextDecoration:t=>({chain:e})=>e().setMark("textStyle",{textDecoration:t}).run(),unsetTextDecoration:()=>({chain:t,state:e})=>{const{from:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").length?t().setMark("textStyle",{textDecoration:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textDecoration:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=n=>n.isUnderline?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("underline"),e=n=>n.isLineThrough?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("line-through");return{"Mod-Shift-s":()=>{const n=this.editor.isActive("textStyle",{textDecoration:"line-through"});return e({isLineThrough:n})},"Mod-u":()=>{const n=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:n})},"Mod-U":()=>{const n=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:n})}}}}),WVt=t=>{if(!t.content)throw new Error("Invalid document: content is missing");return{Content:t.content.map(e=>{switch(e.type){case"paragraph":return b9e(e);case"bulletList":return jVt(e);case"orderedList":return KVt(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}},b9e=t=>t.content?{ParagraphNode:{ThemeName:t.attrs?t.attrs.themeName:void 0,ContentAlign:t.attrs?t.attrs.contentAlign:void 0,Content:t.content.map(e=>{switch(e.type){case"text":return HVt(e);case"image":return w9e(e);case"hardBreak":return fke();case"dataField":return zVt(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}}:{ParagraphNode:{ThemeName:t.attrs?t.attrs.themeName:void 0,ContentAlign:t.attrs?t.attrs.contentAlign:void 0,Content:[fke()]}},_pe=t=>{const e=t?t.find(o=>o.type==="textStyle"):void 0,n=t?t.find(o=>o.type==="link"||o.type==="unsubscribeLink"):void 0;return{TextStyle:e?ZVt(e):void 0,CommonLinkMark:n?XVt(n):void 0}},HVt=t=>{if(typeof t.text!="string")throw new Error("Invalid text node: text is missing or not a string");const{TextStyle:e,CommonLinkMark:n}=_pe(t.marks);return{TextNode:{Text:t.text,TextStyle:e,CommonLinkMark:n}}},fke=()=>({HardBreakNode:{}}),zVt=t=>{if(!t.attrs)throw new Error("Invalid variable node: attrs is missing");const{TextStyle:e,CommonLinkMark:n}=_pe(t.marks);return{DataFieldNode:{StringExpression:t.attrs.stringExpression,TextStyle:e,CommonLinkMark:n}}},jVt=t=>{if(!t.content)throw new Error("Invalid bulletList: content is missing");return{BulletListNode:{ListStyle:t.attrs?t.attrs.themeName:void 0,Content:t.content.map(v9e)}}},KVt=t=>{if(!t.content)throw new Error("Invalid orderedList: content is missing");return{OrderedListNode:{ListStyle:t.attrs?t.attrs.themeName:void 0,Content:t.content.map(v9e)}}},v9e=t=>{if(!t.content)throw new Error("Invalid listItem: content is missing");return{Content:t.content.map(e=>{switch(e.type){case"paragraph":return b9e(e);case"image":return w9e(e);default:throw new Error(`Unknown node type: ${e.type}`)}})}},w9e=t=>{if(!t.attrs)throw new Error("Invalid image node: attrs is missing");const{CommonLinkMark:e}=_pe(t.marks);return{ImageNode:{Src:t.attrs.src,Alt:t.attrs.alt,Width:t.attrs.width,Height:t.attrs.height,IsRetina:t.attrs.isRetina,CommonLinkMark:e}}},UVt=t=>t==="bold"?"Bold":"Normal",qVt=t=>t==="italic"?"Italic":"Normal",JVt=t=>t,GVt=t=>{switch(t){case"uppercase":return"Uppercase";default:return"None"}},YVt=t=>{switch(t){case"underline":return"Underline";case"line-through":return"LineThrough";default:return"None"}},gke=t=>{const e=t.replace(/px$/,"");return parseInt(e,10)},ZVt=t=>{if(!t.attrs)throw new Error("Invalid textStyle mark: attrs is missing");return{ThemeName:t.attrs.themeName,Style:{Color:t.attrs.color?t.attrs.color:void 0,FontWeight:t.attrs.fontWeight?UVt(t.attrs.fontWeight):void 0,FontStyle:t.attrs.fontStyle?qVt(t.attrs.fontStyle):void 0,FontSize:t.attrs.fontSize?gke(t.attrs.fontSize):void 0,LineHeight:t.attrs.lineHeight?gke(t.attrs.lineHeight):void 0,FontFamily:t.attrs.fontFamily?JVt(t.attrs.fontFamily):void 0,TextTransform:t.attrs.textTransform?GVt(t.attrs.textTransform):void 0,TextDecoration:t.attrs.textDecoration?YVt(t.attrs.textDecoration):void 0}}},XVt=t=>{switch(t.type){case"link":{if(!t.attrs)throw new Error("Invalid link mark: attrs.href is missing");return{LinkMark:{Href:t.attrs.href}}}case"unsubscribeLink":return{UnsubscribeLinkMark:{}};default:return}},S9e=t=>{if(!t)return null;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(t))return t;if(t.startsWith("rgb")){const n=t.replace(/[^\d,.]/g,"").split(","),o=n[0]?parseInt(n[0]):0,r=n[1]?parseInt(n[1]):0,i=n[2]?parseInt(n[2]):0;return`#${(1<<24|o<<16|r<<8|i).toString(16).slice(1)}`}if(t.startsWith("hsl")){const n=document.createElement("div");n.style.color=t,document.body.appendChild(n);const o=getComputedStyle(n).color;return document.body.removeChild(n),S9e(o)}const e=document.createElement("canvas").getContext("2d");return e?(e.fillStyle=t,e.fillStyle):null},QVt=t=>fo.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:e=>{const n=e.getAttribute("data-theme-color")??"Custom",o=S9e(e.style.color)??"#000000";return{Discriminator:n,CustomValue:o}},renderHTML:e=>{if(!e.color)return{};const n=a$({fontColor:e.color,themeColors:t.themeColors});return e.color.Discriminator==="Custom"?{"data-theme-color":e.color.Discriminator,style:`color: ${n}`}:{"data-theme-color":e.color.Discriminator}}}}}]},addCommands(){return{setColor:e=>({chain:n})=>n().setMark("textStyle",{color:e}).run(),unsetColor:()=>({chain:e})=>e().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),e6t=fo.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>{const e=t.style.fontFamily.split(",").map(n=>n.trim()).map(n=>n.replace(/^['"]|['"]$/g,"")).map(n=>n.replace(/ /g,""));return DU.find(n=>e.includes(n))||null},renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}}),x9e=t=>hs(t),t6t=t=>gh.create({name:"dataField",group:"inline",marks:"_",inline:!0,atom:!0,selectable:!0,addAttributes:()=>({stringExpression:{default:null,parseHTML:e=>JSON.parse(e.getAttribute("data-field")),renderHTML:e=>({"data-field":JSON.stringify(e.stringExpression)})}}),parseHTML:()=>[{tag:"data-field[data-field]"}],renderHTML:({node:e,HTMLAttributes:n})=>{const o=e.attrs.stringExpression,r=x9e(o).Match({ContextValueExpression:()=>"contextValue",ContextValueExpressionWithFallback:()=>"contextValueWithFallback",ConstValueExpression:i=>i.Value,TruncateValueExpression:()=>"truncate",ConcatStringExpressions:()=>"concat",NumberToStringExpression:()=>"numberToString",DataSource:i=>t.dataSourceFieldNameDelegate({dataSource:i}),UnsubscribeUrlExpression:()=>"unsubscribeUrl",RecipientEmailAddressExpression:()=>"recipientEmailAddress"});return["data-field",Da(n,{class:"rich-text__variable","data-field":JSON.stringify(e.attrs.stringExpression),contenteditable:"false"}),r]},addCommands(){return{setVariable:e=>({chain:n,state:o})=>{const r=o.selection.$from.marks(),i=r.map(s=>({type:s.type.name,attrs:s.attrs}));return n().insertContent({type:this.name,attrs:{stringExpression:e,selectedMarks:r},marks:i}).focus().run()}}}}),T9e=t=>new Promise((e,n)=>{const o=new Image;o.onload=()=>{e({width:o.naturalWidth,height:o.naturalHeight})},o.onerror=n,o.src=t}),k9e=gh.create({name:"image",addOptions(){return{inline:!0,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},width:{default:null},height:{default:null},isRetina:{default:!1}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",Da(this.options.HTMLAttributes,{src:t.src,alt:t.alt,title:t.title,width:t.isRetina?t.width/2:t.width,height:t.isRetina?t.height/2:t.height,isRetina:t.isRetina})]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[ZAt({find:/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,type:this.type,getAttributes:t=>{const[,,e,n,o]=t;return{src:n,alt:e,title:o}}})]},addProseMirrorPlugins(){return[new pr({view:t=>((async()=>{const{state:e,dispatch:n}=t;e.doc.descendants((o,r)=>{if(o.type.name===this.name){const{src:i,width:s,height:a}=o.attrs;i&&(!s||!a)&&T9e(i).then(l=>{const c=e.tr.setNodeMarkup(r,void 0,{...o.attrs,width:l.width,height:l.height});n(c)})}})})(),{})})]}}),n6t=t=>fo.create({name:"paragraphContentAlign",addOptions(){return{defaultContentAlign:"Left"}},addGlobalAttributes(){return[{types:["paragraph"],attributes:{contentAlign:{default:t.fallbackContentAlign,parseHTML:e=>{const n=e.style.textAlign;return n===""?t.fallbackContentAlign:n==="left"?"Left":n==="center"?"Center":n==="right"?"Right":t.fallbackContentAlign},renderHTML:e=>{const n=e.contentAlign||this.options.defaultContentAlign||"Left";return{style:`text-align: ${{Left:"left",Center:"center",Right:"right"}[n]}`}}}}}]},addCommands(){return{setParagraphContentAlign:e=>({state:n,tr:o})=>{const{$from:r}=n.selection,i=r.parent;if(i.type.name!=="paragraph")return!1;const s=r.before(r.depth);return o.setNodeMarkup(s,void 0,{...i.attrs,contentAlign:e}),!0}}}}),o6t=t=>[ORt,TDt,$Rt,yU.configure({mergeNestedSpanStyles:!0}),cDt,t6t({dataSourceFieldNameDelegate:t.dataSourceFieldNameDelegate}),MRt.configure({className:"has-focus",mode:"all"}),zhe.configure({keepMarks:!0,keepAttributes:!0}),Khe.configure({keepMarks:!0,keepAttributes:!0}),n7e,xDt.configure({HTMLAttributes:{class:"hard-break"}}),Hhe.configure({HTMLAttributes:{class:"rich-text__link"},openOnClick:!1}),k9e.configure({inline:!0,HTMLAttributes:{class:"rich-text__image"}}),QVt({themeColors:t.themeColors}),$Vt(t.initialThemeName),OVt,PVt,IVt,MVt,C9e,VVt,Lpe,e6t,n6t({fallbackContentAlign:t.fallbackContentAlign})],r6t=t=>WVt(t.editor.getJSON()),ug=re({__name:"SelectItemColor",props:{isActive:{type:Boolean},color:{},label:{}},emits:["click"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("li",{class:G(["bootstrap-styles dropdown-item p-0 user-select-none",{active:n.isActive}])},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer d-flex align-items-center justify-content-start",onClick:i[0]||(i[0]=s=>o("click"))},[b("i",{class:"bootstrap-styles input__color_selection d-block overflow-hidden me-2",style:Te([{border:"1px solid rgba(0, 0, 0, 0.10)"},[{background:n.color}]])},null,4),no(" "+W(n.label),1)])],2))}}),i6t={colorLabels:{none:"None",styleLinkedColor:"Link to style",emailBackgroundColor:"Email background",bodyColor:"Email body",primaryColor:"Primary color",secondaryColor:"Secondary color",primaryTextColor:"Primary text",secondaryTextColor:"Secondary text",cardBackgroundColor:"Product card color",buttonTextColor:"Buttons",titleColor:"Title",headingColor:"Heading",subHeadingColor:"Subheading",largeTextColor:"Large text",normalTextColor:"Text",descriptionTextColor:"Description",linkColor:"Link",custom:"Custom"}},s6t={colorLabels:{none:"Нет",styleLinkedColor:"Связать со стилем",emailBackgroundColor:"Фон письма",bodyColor:"Тело письма",primaryColor:"Основной цвет",secondaryColor:"Вторичный цвет",primaryTextColor:"Текст на основном цвете",secondaryTextColor:"Текст на вторичном цвете",cardBackgroundColor:"Цвет карточек товара",buttonTextColor:"Кнопки",titleColor:"Большой заголовок",headingColor:"Заголовок",subHeadingColor:"Подзаголовок",largeTextColor:"Большой текст",normalTextColor:"Текст",descriptionTextColor:"Описание",linkColor:"Ссылка",custom:"Пользовательский"}},a6t=ht({en:i6t,ru:s6t}),F9e=t=>({Match:e=>{switch(t){case"Heading":return e.whenHeading();case"Title":return e.whenTitle();case"SubHeading":return e.whenSubHeading();case"LargeText":return e.whenLargeText();case"NormalText":return e.whenNormalText();case"DescriptionText":return e.whenDescriptionText();case"Link":return e.whenLink();case"Button":return e.whenButton();default:return Zc(t)}}}),BU=t=>F9e(t.themeName).Match({whenHeading:()=>t.themeFontColors.HeadingColor,whenTitle:()=>t.themeFontColors.TitleColor,whenSubHeading:()=>t.themeFontColors.SubHeadingColor,whenLargeText:()=>t.themeFontColors.LargeTextColor,whenNormalText:()=>t.themeFontColors.NormalTextColor,whenDescriptionText:()=>t.themeFontColors.DescriptionTextColor,whenLink:()=>t.themeFontColors.LinkColor,whenButton:()=>t.themeFontColors.ButtonTextColor}),l$=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:o}=t.theme,r=!!t.editor.getAttributes("textStyle")[t.styleName],i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;if(r)return t.editor.getAttributes("textStyle")[t.styleName];const a=Hl({fontFamily:e,themeFontSettings:n[s],themeColor:BU({themeName:s,themeFontColors:o})});return String(a[t.styleName])},E9e=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:o}=t.theme,r=!!t.editor.getAttributes("textStyle").color,i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;if(r)return t.editor.getAttributes("textStyle").color;const a=Hl({fontFamily:e,themeFontSettings:n[s],themeColor:BU({themeName:s,themeFontColors:o})});return{Discriminator:F9e(s).Match({whenHeading:()=>"HeadingColor",whenTitle:()=>"TitleColor",whenSubHeading:()=>"SubHeadingColor",whenLargeText:()=>"LargeTextColor",whenNormalText:()=>"NormalTextColor",whenDescriptionText:()=>"DescriptionTextColor",whenLink:()=>"LinkColor",whenButton:()=>"ButtonTextColor"}),CustomValue:a.color}},l6t={class:"color-picker bootstrap-styles border rounded bg-white"},c6t={class:"bootstrap-styles mb-5 bg-white"},u6t=["value"],d6t=["value"],h6t=re({__name:"ColorPickerModalWindow",props:{editor:{},theme:{},deps:{}},emits:["onColorChanged","onColorPickerClosed"],setup(t,{emit:e}){Cd(h=>({v7ba43684:i.color}));const n=t,o={colorLabels:a6t({localeKey:n.deps.localeKey}).colorLabels},r=ne(()=>a$({fontColor:E9e({editor:n.editor,theme:n.theme}),themeColors:n.theme.Colors})),i=Le({color:r.value,isValidHexColor:!0}),s={StyleLinkedColor:o.colorLabels.styleLinkedColor,EmailBackgroundColor:o.colorLabels.emailBackgroundColor,BodyColor:o.colorLabels.bodyColor,PrimaryColor:o.colorLabels.primaryColor,SecondaryColor:o.colorLabels.secondaryColor,PrimaryTextColor:o.colorLabels.primaryTextColor,SecondaryTextColor:o.colorLabels.secondaryTextColor,CardBackgroundColor:o.colorLabels.cardBackgroundColor,ButtonTextColor:o.colorLabels.buttonTextColor,TitleColor:o.colorLabels.titleColor,HeadingColor:o.colorLabels.headingColor,SubHeadingColor:o.colorLabels.subHeadingColor,LargeTextColor:o.colorLabels.largeTextColor,NormalTextColor:o.colorLabels.normalTextColor,DescriptionTextColor:o.colorLabels.descriptionTextColor,LinkColor:o.colorLabels.linkColor,Custom:o.colorLabels.custom},a=["EmailBackgroundColor","BodyColor","PrimaryColor","SecondaryColor","PrimaryTextColor","SecondaryTextColor","ButtonTextColor","TitleColor","HeadingColor","SubHeadingColor","LargeTextColor","NormalTextColor","DescriptionTextColor","LinkColor"],l=UWe(h=>{d("onColorChanged",{Discriminator:"Custom",CustomValue:h})},100,{leading:!1,trailing:!0}),c=h=>/^#([0-9A-Fa-f]{6})$/.test(h.trim()),u=h=>{i.isValidHexColor=c(h),i.color=h,c(h)&&d("onColorChanged",{Discriminator:"Custom",CustomValue:h})};on(()=>r.value,h=>{i.color=h,i.isValidHexColor=c(h)});const d=e;return(h,p)=>Ke((E(),R("div",null,[b("ul",l6t,[b("li",c6t,[I(N(zBt),{modelValue:r.value,width:220,canvasHeight:220,hideInputs:!0,hideSliders:!1,mode:"hex","onUpdate:modelValue":p[0]||(p[0]=m=>N(l)(m))},null,8,["modelValue"]),b("div",{class:G(["bootstrap-styles border mx-1 bg-color-input rounded-2 d-flex justify-content-between p-14",{"is-not-valid":!i.isValidHexColor}])},[b("input",{type:"color",class:"bootstrap-styles pe-none",style:{border:"1px solid rgba(0, 0, 0, 0.1)",cursor:"default"},value:r.value},null,8,u6t),b("input",{type:"text",class:"bootstrap-styles w-100 text-uppercase ps-1",value:i.color,placeholder:"#000000",onInput:p[1]||(p[1]=m=>u(m.target.value))},null,40,d6t)],2)]),(E(),R(Se,null,At(a,m=>I(ug,{key:m,isActive:r.value===n.theme.Colors[m],color:n.theme.Colors[m],label:s[m],onClick:()=>{d("onColorChanged",{Discriminator:m,CustomValue:n.theme.Colors[m]}),d("onColorPickerClosed")}},null,8,["isActive","color","label","onClick"])),64))])])),[[N(Lg),()=>d("onColorPickerClosed")]])}}),p6t=ve(h6t,[["__scopeId","data-v-0519b5d6"]]),m6t={tooltip:"Text color"},f6t={tooltip:"Цвет текста"},g6t=ht({en:m6t,ru:f6t}),y6t=["value"],C6t=re({__name:"ColorPicker",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:g6t({localeKey:e.deps.localeKey}).tooltip},o=Le({isColorPickerDropdownShown:!1}),r=Rt(),i=Rt(),{floatingStyles:s}=zF(i,r,{whileElementsMounted:WF,placement:"bottom",middleware:[HF(({rects:l})=>({alignmentAxis:-l.floating.width/2-l.floating.width/2,mainAxis:15}))]}),a=ne(()=>a$({fontColor:E9e({editor:e.editor,theme:e.theme}),themeColors:e.theme.Colors}));return(l,c)=>(E(),R(Se,null,[Ke((E(),R("button",{ref_key:"richTextColorPickerBtn",ref:i,class:G(["bootstrap-styles border rich-text-color__input rich-text__handler",{disabled:!t.isAllowToEdit}]),value:a.value,onClick:c[0]||(c[0]=()=>o.isColorPickerDropdownShown=!o.isColorPickerDropdownShown)},[b("i",{style:Te([{display:"block",width:"100%",height:"100%"},{backgroundColor:a.value}])},null,4)],10,y6t)),[[N(Xn),{title:n.tooltip,placement:"top"}]]),o.isColorPickerDropdownShown?(E(),Q(p6t,{key:0,ref_key:"richTextColorPicker",ref:r,theme:e.theme,editor:e.editor,deps:e.deps.colorPickerModalWindowDeps,style:Te(N(s)),onOnColorChanged:c[1]||(c[1]=u=>{e.editor.commands.setColor(u)}),onOnColorPickerClosed:c[2]||(c[2]=()=>{o.isColorPickerDropdownShown=!1,e.editor.commands.focus()})},null,8,["theme","editor","deps","style"])):oe("",!0)],64))}}),b6t=ve(C6t,[["__scopeId","data-v-6624477a"]]),v6t={},w6t={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function S6t(t,e){return E(),R("svg",w6t,[...e[0]||(e[0]=[b("path",{d:"M8.00033 10.0002L5.17188 7.17184L6.11469 6.229L8.00033 8.11464L9.88593 6.229L10.8287 7.17184L8.00033 10.0002Z",fill:"var(--gray-500)"},null,-1)])])}const Si=ve(v6t,[["render",S6t]]),x6t={tooltip:"Font family"},T6t={tooltip:"Шрифт"},k6t=ht({en:x6t,ru:T6t}),F6t={class:"bootstrap-styles dropdown"},E6t={class:"bootstrap-styles me-14 overflow-hidden rich-text-toolbar__font-family-btn__text"},L6t={class:"bootstrap-styles d-flex justify-content-center align-items-center"},_6t=["onClick"],A6t=re({__name:"FontFamilySelector",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:k6t({localeKey:e.deps.localeKey}).tooltip},o=yU.name,r=Le({isOpened:!1}),i=ne(()=>l$({editor:e.editor,theme:e.theme,styleName:"fontFamily"})),s=a=>{e.editor.commands.setFontFamily(a),r.isOpened=!1,e.editor.commands.focus()};return(a,l)=>Ke((E(),R("div",F6t,[b("button",{id:"richTextDropdownFontFamily",class:G(["bootstrap-styles d-flex justify-content-between align-items-center py-1 px-3 text-nowrap rich-text-toolbar__font-family-btn border rounded-2 overflow-hidden",{disabled:!e.isAllowToEdit,show:r.isOpened}]),type:"button",onClick:l[0]||(l[0]=c=>r.isOpened=!r.isOpened)},[b("span",E6t,W(N(Sp)[i.value]),1),b("i",L6t,[I(Si)])],2),b("ul",{class:G([{show:r.isOpened},"bootstrap-styles dropdown-menu rounded-2 bg-white"]),"aria-labelledby":"richTextDropdownFontFamily"},[(E(!0),R(Se,null,At(N(DU),c=>(E(),R("li",{key:c,class:G(["bootstrap-styles dropdown-item p-0",{active:e.editor.getAttributes(N(o)).fontFamily===c}]),onClick:()=>s(c)},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",style:Te({fontFamily:c})},W(N(Sp)[c]),5)],10,_6t))),128))],2)])),[[N(Lg),()=>r.isOpened=!1],[N(Xn),{title:n.tooltip,placement:"top"}]])}}),R6t=ve(A6t,[["__scopeId","data-v-cc496278"]]),D6t={},B6t={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"};function N6t(t,e){return E(),R("svg",B6t,[...e[0]||(e[0]=[b("path",{d:"M4.00003 2.38419e-07L1 2.99997L2.00001 4L4.00003 1.99998L6.00001 4L7 2.99997L4.00003 2.38419e-07Z",fill:"var(--gray-500)"},null,-1)])])}const Ape=ve(D6t,[["render",N6t],["__scopeId","data-v-19c42a7a"]]),I6t={},M6t={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"};function $6t(t,e){return E(),R("svg",M6t,[...e[0]||(e[0]=[b("path",{d:"M4.00003 8L1 5.00003L2.00001 4L4.00003 6.00002L6.00001 4L7 5.00003L4.00003 8Z",fill:"var(--gray-500)"},null,-1)])])}const Rpe=ve(I6t,[["render",$6t],["__scopeId","data-v-313c2951"]]),O6t={},P6t={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function V6t(t,e){return E(),R("svg",P6t,[...e[0]||(e[0]=[b("path",{d:"M6.66634 4.00033V14.0003H5.33301V4.00033H1.33301V2.66699H10.6663V4.00033H6.66634ZM11.9997 9.33366V14.0003H10.6663V9.33366H8.66634V8.00033H13.9997V9.33366H11.9997Z",fill:"#999999"},null,-1)])])}const W6t=ve(O6t,[["render",V6t]]),H6t={tooltip:"Font size"},z6t={tooltip:"Размер текста"},j6t=ht({en:H6t,ru:z6t}),K6t=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:o}=t.theme,r=!!t.editor.getAttributes("textStyle").fontSize,i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;return r?parseInt(t.editor.getAttributes("textStyle").fontSize,10):Hl({fontFamily:e,themeFontSettings:n[s],themeColor:BU({themeName:s,themeFontColors:o})}).fontSize},U6t={class:"bootstrap-styles rich-text-toolbar__font-size-editor position-relative rounded-2 py-1 px-3 d-flex"},q6t={class:"bootstrap-styles d-flex justify-content-center rich-text-icon me-14"},J6t=["value"],G6t={class:"bootstrap-styles rich-text-toolbar__input-button top-0 d-flex position-absolute align-items-end justify-content-center"},Y6t={class:"bootstrap-styles rich-text-toolbar__input-button bottom-0 d-flex position-absolute align-items-start justify-content-center"},Z6t=re({__name:"FontSizeEditor",props:{editor:{},theme:{},deps:{}},setup(t){const e=t,n={tooltip:j6t({localeKey:e.deps.localeKey}).tooltip},o=ne(()=>K6t({editor:e.editor,theme:e.theme})),r=()=>{o.value&&e.editor.commands.setFontSize(o.value+1)},i=()=>{o.value&&o.value!==1&&e.editor.commands.setFontSize(o.value-1)},s=a=>{const l=a.target;let c=parseInt(l.value);const u=100;isNaN(c)||l.value===""?(c=0,l.value="0"):c>u&&(c=u,l.value=String(u)),e.editor.commands.setFontSize(c)};return(a,l)=>Ke((E(),R("div",U6t,[b("i",q6t,[I(W6t)]),b("input",{type:"number",class:"bootstrap-styles rich-text-toolbar__input-number rich-text__handler",value:o.value,onInput:s},null,40,J6t),b("div",G6t,[b("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:r}),I(Ape)]),b("div",Y6t,[b("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:i}),I(Rpe)])])),[[N(Xn),{title:n.tooltip,placement:"top"}]])}}),X6t=ve(Z6t,[["__scopeId","data-v-ba95f865"]]),Q6t=re({__name:"SelectItemTextStyle",props:{isActive:{type:Boolean},label:{},themeFontStyle:{},themeFontColor:{}},emits:["click"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("li",{class:G(["bootstrap-styles dropdown-item p-0 d-flex align-items-center px-3 cursor-pointer",{active:n.isActive}]),onClick:i[0]||(i[0]=s=>o("click"))},[b("i",{class:"bootstrap-styles input__color_selection d-block overflow-hidden me-2",style:Te([{background:n.themeFontColor??"linear-gradient(135deg, rgb(51, 132, 255) 0%, rgb(202, 101, 250) 34.37%, rgb(250, 101, 101) 61.98%, rgb(250, 235, 101) 100%)"},{"min-width":"24px"}])},null,4),b("span",{class:"bootstrap-styles d-block py-1 text-decoration-none overflow-hidden",style:Te([n.themeFontStyle&&{fontSize:n.themeFontStyle.FontSize+"px",fontWeight:n.themeFontStyle.IsBold?"bold":"normal",fontStyle:n.themeFontStyle.IsItalic?"italic":"normal",textDecoration:n.themeFontStyle.Decoration},{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}])},W(n.label),5)],2))}}),Qre=ve(Q6t,[["__scopeId","data-v-3a2ee8e2"]]),e5t={tooltip:"Text style",settingLabels:{title:"Title",heading:"Heading",subHeading:"Subheading",largeText:"Large text",normalText:"Text",descriptionText:"Description",link:"Link",button:"Button",custom:"Custom"}},t5t={tooltip:"Стиль текста",settingLabels:{title:"Большой заголовок",heading:"Заголовок",subHeading:"Подзаголовок",largeText:"Большой текст",normalText:"Текст",descriptionText:"Описание",link:"Ссылка",button:"Кнопка",custom:"Пользовательский"}},yke=ht({en:e5t,ru:t5t}),n5t={class:"bootstrap-styles dropdown"},o5t={class:"bootstrap-styles rich-text-toolbar__font-style-selector__text"},r5t={class:"bootstrap-styles d-flex justify-content-center align-items-center rich-text-toolbar__icon"},i5t=re({__name:"ThemeSettingsSelector",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},initialThemeName:{},deps:{}},setup(t){const e=t,n=yU.name,o=Le({isOpened:!1}),r={tooltip:yke({localeKey:e.deps.localeKey}).tooltip,settingLabels:yke({localeKey:e.deps.localeKey}).settingLabels},i={Title:r.settingLabels.title,Heading:r.settingLabels.heading,SubHeading:r.settingLabels.subHeading,LargeText:r.settingLabels.largeText,NormalText:r.settingLabels.normalText,DescriptionText:r.settingLabels.descriptionText,Link:r.settingLabels.link,Button:r.settingLabels.button,Custom:r.settingLabels.custom},s=["Title","Heading","SubHeading","LargeText","NormalText","DescriptionText","Link","Button"],a=["TitleColor","HeadingColor","SubHeadingColor","LargeTextColor","NormalTextColor","DescriptionTextColor","LinkColor","ButtonTextColor"],l=ne(()=>{const u=e.initialThemeName,d=e.editor.getAttributes("paragraph").themeName||u;let h=s.find(w=>e.editor.getAttributes(n).themeName===w)||d;const{fontWeight:p,fontStyle:m,textDecoration:f,fontSize:g,fontFamily:C,lineHeight:v}=e.editor.getAttributes(n);return p||m||f||g||C||v?i.Custom:i[h]}),c=u=>{e.editor.commands.unsetMark(n),e.editor.chain().focus().setThemeSettings(u).run(),o.isOpened=!1};return(u,d)=>Ke((E(),R("div",n5t,[b("button",{id:"dropdownMenuButtonFontStyleList",class:G(["bootstrap-styles rich-text-toolbar__font-style-selector d-flex justify-content-between align-items-center py-1 px-3 text-nowrap border rounded-2",{disabled:!e.isAllowToEdit,show:o.isOpened}]),type:"button",onClick:d[0]||(d[0]=()=>o.isOpened=!o.isOpened)},[b("span",o5t,W(l.value),1),b("i",r5t,[I(Si)])],2),b("ul",{class:G([{show:o.isOpened},"bootstrap-styles rich-text-toolbar__font-style-dropdown dropdown-menu rounded-2"]),"aria-labelledby":"dropdownMenuButtonFontStyleList"},[(E(),R(Se,null,At(s,(h,p)=>I(Qre,{key:h,isActive:e.editor.getAttributes(N(n)).themeName===h,label:i[h],themeFontStyle:e.theme.FontSettingsPresets[h],themeFontColor:e.theme.Colors[a[p]],onClick:()=>c(h)},null,8,["isActive","label","themeFontStyle","themeFontColor","onClick"])),64))],2)])),[[N(Lg),()=>o.isOpened=!1],[N(Xn),{title:r.tooltip,placement:"top"}]])}}),s5t=ve(i5t,[["__scopeId","data-v-37cbbac2"]]),a5t={},l5t={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function c5t(t,e){return E(),R("svg",l5t,[...e[0]||(e[0]=[b("path",{d:"M7.33317 2.66667H13.9998V4H7.33317V2.66667ZM3.99984 4.66667V7.33333H2.6665V4.66667H0.666504L3.33317 2L5.99984 4.66667H3.99984ZM3.99984 11.3333H5.99984L3.33317 14L0.666504 11.3333H2.6665V8.66667H3.99984V11.3333ZM7.33317 12H13.9998V13.3333H7.33317V12ZM5.99984 7.33333H13.9998V8.66667H5.99984V7.33333Z",fill:"var(--gray-500)"},null,-1)])])}const Dpe=ve(a5t,[["render",c5t]]),u5t={tooltip:"Line height"},d5t={tooltip:"Высота строки"},h5t=ht({en:u5t,ru:d5t}),p5t=t=>{const{FontFamily:e,FontSettingsPresets:n,Colors:o}=t.theme,r=!!t.editor.getAttributes("textStyle").lineHeight,i=t.editor.getAttributes("paragraph").themeName||"NormalText",s=t.editor.getAttributes("textStyle").themeName||i;return r?parseInt(t.editor.getAttributes("textStyle").lineHeight,10):Hl({fontFamily:e,themeFontSettings:n[s],themeColor:BU({themeName:s,themeFontColors:o})}).lineHeight},m5t={class:"bootstrap-styles rich-text-toolbar__line-height-editor position-relative rounded-2 py-1 px-3 d-flex"},f5t={class:"bootstrap-styles d-flex justify-content-center rich-text-icon me-14"},g5t=["value"],y5t={class:"bootstrap-styles rich-text-toolbar__input-button d-flex position-absolute align-items-end justify-content-center",style:{right:"10px",top:"0",width:"16px",height:"16px"}},C5t={class:"bootstrap-styles rich-text-toolbar__input-button d-flex position-absolute align-items-start justify-content-center",style:{right:"10px",bottom:"0",width:"16px",height:"16px"}},b5t=re({__name:"LineHeightEditor",props:{editor:{},theme:{},deps:{}},setup(t){const e=t,n={tooltip:h5t({localeKey:e.deps.localeKey}).tooltip},o=ne(()=>p5t({editor:e.editor,theme:e.theme})),r=()=>{o.value&&e.editor.commands.setLineHeight(o.value+1)},i=()=>{o.value&&o.value!==1&&e.editor.commands.setLineHeight(o.value-1)},s=a=>{const l=a.target;let c=parseInt(l.value);const u=100;isNaN(c)||l.value===""?(c=0,l.value="0"):c>u&&(c=u,l.value=String(u)),e.editor.commands.setLineHeight(c)};return(a,l)=>Ke((E(),R("div",m5t,[b("i",f5t,[I(Dpe)]),b("input",{type:"number",class:"bootstrap-styles rich-text-toolbar__input-number rich-text__handler",value:o.value,onInput:s},null,40,g5t),b("div",y5t,[b("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:r}),I(Ape)]),b("div",C5t,[b("input",{type:"button",class:"bootstrap-styles position-absolute rich-text__handler",onClick:i}),I(Rpe)])])),[[N(Xn),{title:n.tooltip,placement:"top"}]])}}),v5t=ve(b5t,[["__scopeId","data-v-4e76ed1b"]]),w5t=/^https?:\/\/((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(:\d+)?(\/[a-z\d\-._~!$&'()*+,;=:@%]*)*(\?[a-z\d\-._~!$&'()*+,;=:@%/?]*)?(\#[a-z\d\-._~!$&'()*+,;=:@%/?]*)?$/i,S5t=/^mailto:\S+$/i,x5t=/^tel:\+?[\d().-]+$/i,c$=t=>/\s/.test(t)?!1:t.toLowerCase().startsWith("http://")||t.toLowerCase().startsWith("https://")?w5t.test(t):t.toLowerCase().startsWith("mailto:")?S5t.test(t):t.toLowerCase().startsWith("tel:")?x5t.test(t)&&/\d/.test(t.slice(4)):!1,T5t={mounted(t,e){t.addEventListener("input",()=>{const n=c$(t.value);typeof e.value=="function"&&e.value(n)})}},Dg={mounted(t,e){Cke(t,e)},updated(t,e){e.value&&Cke(t,e)}},Cke=(t,e)=>{document.activeElement!==t&&requestAnimationFrame(()=>{if(t.focus(),e.modifiers.selectAll&&t.select(),e.modifiers.end){const n=t.value.length;t.setSelectionRange(n,n)}})},k5t={},F5t={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"};function E5t(t,e){return E(),R("svg",F5t,[...e[0]||(e[0]=[b("path",{d:"M11.2432 9.35654L10.3003 8.41374L11.2432 7.47094C12.5449 6.16921 12.5449 4.05865 11.2432 2.75691C9.94139 1.45516 7.83086 1.45516 6.52912 2.75691L5.58631 3.69972L4.6435 2.75691L5.58631 1.8141C7.40879 -0.00834608 10.3635 -0.00834608 12.186 1.8141C14.0084 3.63655 14.0084 6.59134 12.186 8.41374L11.2432 9.35654ZM9.35752 11.2422L8.41472 12.185C6.59232 14.0075 3.63752 14.0075 1.81508 12.185C-0.00736952 10.3625 -0.00736952 7.40781 1.81508 5.58533L2.75788 4.64253L3.70069 5.58533L2.75788 6.52814C1.45614 7.82987 1.45614 9.94047 2.75788 11.2422C4.05963 12.5439 6.17019 12.5439 7.47192 11.2422L8.41472 10.2994L9.35752 11.2422ZM8.88612 4.17112L9.82893 5.11393L5.1149 9.82801L4.1721 8.88514L8.88612 4.17112Z",fill:"var(--black)"},null,-1)])])}const CC=ve(k5t,[["render",E5t]]),L5t={label:"Link",inputPlaceholder:"https://example.com",errorNotification:"The link must contain https://, http://, mailto:, tel:",applyButton:"Save",cancelButton:"Cancel"},_5t={label:"Ссылка",inputPlaceholder:"https://example.com",errorNotification:"Ссылка должна содержать https://, http://, mailto:, tel:",applyButton:"Сохранить",cancelButton:"Отмена"},A5t=ht({en:L5t,ru:_5t}),R5t={},D5t={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B5t(t,e){return E(),R("svg",D5t,[...e[0]||(e[0]=[b("path",{d:"M11.333 3.99967H14.6663V5.33301H13.333V13.9997C13.333 14.3679 13.0345 14.6663 12.6663 14.6663H3.33301C2.96482 14.6663 2.66634 14.3679 2.66634 13.9997V5.33301H1.33301V3.99967H4.66634V1.99967C4.66634 1.63149 4.96482 1.33301 5.33301 1.33301H10.6663C11.0345 1.33301 11.333 1.63149 11.333 1.99967V3.99967ZM11.9997 5.33301H3.99967V13.333H11.9997V5.33301ZM5.99967 7.33301H7.33301V11.333H5.99967V7.33301ZM8.66634 7.33301H9.99967V11.333H8.66634V7.33301ZM5.99967 2.66634V3.99967H9.99967V2.66634H5.99967Z",fill:"white"},null,-1)])])}const L9e=ve(R5t,[["render",B5t]]),N5t={class:"bootstrap-styles bg-white border rounded-2 add-text-link-modal-window"},I5t={class:"bootstrap-styles fw-bold mb-5 px-11 mt-10 d-block text-start"},M5t={class:"bootstrap-styles px-11 mb-2"},$5t={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},O5t=["placeholder"],P5t={class:"bootstrap-styles px-11 py-5 d-flex align-items-center justify-content-end border-top"},V5t=re({__name:"AddLinkModalWindow",props:{isActive:{type:Boolean},currentHref:{},deps:{}},emits:["onClosed","onHrefChanged","onRemoved"],setup(t,{emit:e}){const n=t,o=Le({href:n.currentHref,isValid:!0}),r=A5t({localeKey:n.deps.localeKey}),i=e;return(s,a)=>Ke((E(),R("div",N5t,[b("label",I5t,W(N(r).label),1),b("div",M5t,[b("div",{class:G(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex mb-14",{"not-valid-url":!o.isValid}])},[b("i",$5t,[I(CC)]),Ke(b("input",{type:"text",class:"bootstrap-styles w-100",placeholder:N(r).inputPlaceholder,"onUpdate:modelValue":a[0]||(a[0]=l=>o.href=l)},null,8,O5t),[[N(T5t),l=>o.isValid=l],[N(Dg),void 0,void 0,{selectAll:!0}],[Ea,o.href]])],2),b("div",{class:G(["bootstrap-styles text-start add-link-notification",{invisible:o.isValid}])},W(N(r).errorNotification),3)]),b("div",P5t,[n.isActive?(E(),R("button",{key:0,class:"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-auto rounded-2 add-text-link-modal-window__remove-button",onClick:a[1]||(a[1]=Nt(()=>i("onRemoved"),["stop"]))},[b("i",null,[I(L9e)])])):oe("",!0),b("button",{class:"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 border border-blue-selected rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:a[2]||(a[2]=()=>i("onClosed"))},W(N(r).cancelButton),1),b("button",{class:G(["bootstrap-styles d-flex justify-content-center align-center py-1 px-3 border rounded-2",{"button__active-700":o.isValid&&o.href.length>0,"button__locked button__disabled-700":!o.isValid||o.href.length===0}]),onClick:a[3]||(a[3]=()=>i("onHrefChanged",o.href))},W(N(r).applyButton),3)])])),[[N(Lg),()=>i("onClosed")]])}}),W5t=ve(V5t,[["__scopeId","data-v-b4170a33"]]),H5t={};function z5t(t,e){return E(),R(Se,null,[e[0]||(e[0]=b("svg",{class:"unlinked",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},[b("path",{d:"M12.7432 10.3565L11.8003 9.41374L12.7432 8.47094C14.0449 7.16921 14.0449 5.05865 12.7432 3.75691C11.4414 2.45516 9.33086 2.45516 8.02912 3.75691L7.08631 4.69972L6.1435 3.75691L7.08631 2.8141C8.90879 0.991654 11.8635 0.991654 13.686 2.8141C15.5084 4.63655 15.5084 7.59134 13.686 9.41374L12.7432 10.3565ZM10.8575 12.2422L9.91472 13.185C8.09232 15.0075 5.13752 15.0075 3.31508 13.185C1.49263 11.3625 1.49263 8.40781 3.31508 6.58533L4.25788 5.64253L5.20069 6.58533L4.25788 7.52814C2.95614 8.82987 2.95614 10.9405 4.25788 12.2422C5.55963 13.5439 7.67019 13.5439 8.97192 12.2422L9.91472 11.2994L10.8575 12.2422ZM10.3861 5.17112L11.3289 6.11393L6.6149 10.828L5.6721 9.88514L10.3861 5.17112Z",fill:"black"})],-1)),e[1]||(e[1]=b("svg",{class:"linked",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[b("path",{d:"M11.7713 9.88573L10.8285 8.94287L11.7713 8.00007C12.8127 6.95867 12.8127 5.27025 11.7713 4.22885C10.7299 3.18745 9.04147 3.18745 8.00007 4.22885L7.05727 5.17166L6.11447 4.22885L7.05727 3.28605C8.6194 1.72395 11.1521 1.72395 12.7141 3.28605C14.2762 4.84814 14.2762 7.3808 12.7141 8.94287L11.7713 9.88573ZM9.88573 11.7713L8.94287 12.7141C7.3808 14.2762 4.84814 14.2762 3.28605 12.7141C1.72395 11.1521 1.72395 8.6194 3.28605 7.05727L4.22885 6.11447L5.17166 7.05727L4.22885 8.00007C3.18745 9.04147 3.18745 10.7299 4.22885 11.7713C5.27025 12.8127 6.95867 12.8127 8.00007 11.7713L8.94287 10.8285L9.88573 11.7713ZM9.88573 5.17166L10.8285 6.11447L6.11447 10.8285L5.17166 9.88573L9.88573 5.17166ZM3.85026 1.52869L5.13816 1.18359L5.82835 3.75939L4.54045 4.10449L3.85026 1.52869ZM10.1719 12.2408L11.4597 11.8957L12.1499 14.4715L10.862 14.8166L10.1719 12.2408ZM1.52869 3.85026L4.10449 4.54045L3.75939 5.82835L1.18359 5.13816L1.52869 3.85026ZM12.2408 10.1719L14.8166 10.862L14.4715 12.1499L11.8957 11.4597L12.2408 10.1719Z",fill:"black"})],-1))],64)}const j5t=ve(H5t,[["render",z5t],["__scopeId","data-v-730bc16f"]]),K5t={tooltip:"Link"},U5t={tooltip:"Ссылка"},q5t=ht({en:K5t,ru:U5t}),J5t={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},G5t=re({__name:"LinkEditor",props:{editor:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:q5t({localeKey:e.deps.localeKey}).tooltip},o=Hhe.name,r=Lpe.name,i=Le({isAddTextLinkModalWindowShown:!1}),s=ne(()=>e.editor.isActive(r)),a=c=>{s.value&&e.editor.commands.unsetUnsubscribeLink(),e.editor.chain().focus().setLink({href:c}).setThemeSettings("Link").run(),i.isAddTextLinkModalWindowShown=!1},l=()=>{e.editor.chain().focus().unsetLink().applySiblingNodeThemeSettings().run(),i.isAddTextLinkModalWindowShown=!1};return(c,u)=>(E(),R(Se,null,[Ke((E(),R("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(N(o)),disabled:!e.editor.isActive(N(o))&&!e.isAllowToEdit}]),onClick:u[0]||(u[0]=d=>{i.isAddTextLinkModalWindowShown=!i.isAddTextLinkModalWindowShown})},[b("i",J5t,[e.editor.isActive(N(o))?(E(),Q(j5t,{key:1})):(E(),Q(CC,{key:0}))])],2)),[[N(Xn),{title:n.tooltip,placement:"top"}]]),i.isAddTextLinkModalWindowShown?(E(),Q(W5t,{key:0,isActive:e.editor.isActive(N(o)),currentHref:e.editor.isActive(N(o))?e.editor.getAttributes(N(o)).href:"",deps:e.deps.addLinkModalWindowDeps,onOnRemoved:u[1]||(u[1]=()=>l()),onOnClosed:u[2]||(u[2]=d=>i.isAddTextLinkModalWindowShown=!1),onOnHrefChanged:u[3]||(u[3]=d=>a(d))},null,8,["isActive","currentHref","deps"])):oe("",!0)],64))}}),Y5t=ve(G5t,[["__scopeId","data-v-6460a995"]]),Z5t={label:"URL",placeholder:"URL...",cancel:"Cancel",apply:"Save",removeTooltip:"Delete image"},X5t={label:"URL",placeholder:"URL...",cancel:"Отмена",apply:"Сохранить",removeTooltip:"Удалить изображение"},J_=ht({en:Z5t,ru:X5t}),Q5t={class:"bootstrap-styles bg-white border rounded-2 add-image-src-modal-window"},e4t={class:"bootstrap-styles fw-bold mb-5 px-11 mt-10 d-block text-start"},t4t={class:"bootstrap-styles px-11 mb-11"},n4t=["placeholder","value"],o4t={class:"bootstrap-styles px-11 py-5 d-flex align-items-center justify-content-end border-top"},r4t=["disabled"],i4t=re({__name:"AddImageSrcModalWindow",props:{isActive:{type:Boolean},src:{},width:{},height:{},isRetina:{type:Boolean},deps:{}},emits:["onClosed","onRemoved","onImageSrcChanged"],setup(t,{emit:e}){const n=t,o=Le({src:n.src,width:n.width,height:n.height,isBroken:!1}),r={label:J_({localeKey:n.deps.localeKey}).label,placeholder:J_({localeKey:n.deps.localeKey}).placeholder,cancel:J_({localeKey:n.deps.localeKey}).cancel,apply:J_({localeKey:n.deps.localeKey}).apply,removeTooltip:J_({localeKey:n.deps.localeKey}).removeTooltip},i=Pde(l=>{T9e(l).then(c=>{o.width=c.width,o.height=c.height,o.isBroken=!1,o.src=l}).catch(()=>{o.src=l,o.isBroken=!0})},500),s=()=>{a("onImageSrcChanged",{src:o.src,width:o.width,height:o.height,isRetina:!1})},a=e;return(l,c)=>Ke((E(),R("div",Q5t,[b("label",e4t,W(r.label),1),b("div",t4t,[b("div",{class:G(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex",{"border-danger":o.isBroken}])},[Ke(b("input",{type:"text",class:"bootstrap-styles w-100",placeholder:r.placeholder,value:o.src,onInput:c[0]||(c[0]=u=>N(i)(u.target.value))},null,40,n4t),[[N(Dg),void 0,void 0,{selectAll:!0}]])],2)]),b("div",o4t,[n.isActive?Ke((E(),R("button",{key:0,class:"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-auto rounded-2 add-image-src-modal-window__remove-button",onClick:c[1]||(c[1]=Nt(()=>a("onRemoved"),["stop"]))},[b("i",null,[I(L9e)])])),[[N(Xn),{placement:"top",title:r.removeTooltip}]]):oe("",!0),b("button",{class:"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 border border-blue-selected rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:c[2]||(c[2]=Nt(()=>a("onClosed"),["stop"]))},W(r.cancel),1),b("button",{class:"bootstrap-styles d-flex justify-content-center align-center py-1 px-3 border rounded-2 bg-color-selected text-white cursor-pointer",disabled:!o.src.length||o.isBroken,onClick:c[3]||(c[3]=Nt(()=>s(),["stop"]))},W(r.apply),9,r4t)])])),[[N(Lg),()=>a("onClosed")]])}}),s4t=ve(i4t,[["__scopeId","data-v-35966ae0"]]),a4t={},l4t={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function c4t(t,e){return E(),R("svg",l4t,[...e[0]||(e[0]=[b("path",{d:"M1.99453 14C1.62936 14 1.33333 13.7034 1.33333 13.3377V2.66227C1.33333 2.29651 1.63687 2 1.99453 2H14.0055C14.3707 2 14.6667 2.29663 14.6667 2.66227V13.3377C14.6667 13.7035 14.3631 14 14.0055 14H1.99453ZM13.3333 10V3.33333H2.66666V12.6667L9.33333 6L13.3333 10ZM13.3333 11.8856L9.33333 7.8856L4.55228 12.6667H13.3333V11.8856ZM5.33333 7.33333C4.59695 7.33333 3.99999 6.7364 3.99999 6C3.99999 5.26362 4.59695 4.66667 5.33333 4.66667C6.06971 4.66667 6.66666 5.26362 6.66666 6C6.66666 6.7364 6.06971 7.33333 5.33333 7.33333Z",fill:"#2F2F2F"},null,-1)])])}const u4t=ve(a4t,[["render",c4t]]),d4t={tooltip:"Image",retinaLabel:"For retina screens"},h4t={tooltip:"Изображение",retinaLabel:"Для retina-экранов"},bke=ht({en:d4t,ru:h4t}),p4t={class:"bootstrap-styles rich-text-icon icon-hover d-flex"},m4t=["checked"],f4t={for:"rich-text__retina-checkbox",class:"bootstrap-styles label__checkbox-input text-nowrap"},g4t=re({__name:"ImageEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:bke({localeKey:e.deps.localeKey}).tooltip,retinaLabel:bke({localeKey:e.deps.localeKey}).retinaLabel},o=k9e.name,r=Le({isAddImageSrcModalWindowShown:!1}),i=async()=>{const l=e.editor.view.state.selection.anchor,{src:c,width:u,height:d,isRetina:h}=e.editor.getAttributes(o);e.editor.chain().focus().updateAttributes("image",{src:c,width:u,height:d,isRetina:!h}).setNodeSelection(l).run()},s=l=>{const c=e.editor.view.state.selection.anchor;e.editor.isActive(o)?e.editor.chain().focus().updateAttributes("image",{src:l.src,width:l.width,height:l.height,alt:"img",isRetina:!1}).setNodeSelection(c).run():e.editor.chain().focus().setImage({src:l.src,width:l.width,height:l.height,alt:"img",isRetina:!1}).setNodeSelection(c).run(),r.isAddImageSrcModalWindowShown=!1},a=()=>{e.editor.commands.deleteSelection(),r.isAddImageSrcModalWindowShown=!1};return(l,c)=>(E(),R(Se,null,[Ke((E(),R("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button__image",{active:e.editor.isActive(N(o))}]),onClick:c[0]||(c[0]=u=>r.isAddImageSrcModalWindowShown=!r.isAddImageSrcModalWindowShown)},[b("i",p4t,[I(u4t)])],2)),[[N(Xn),{title:n.tooltip,placement:"top"}]]),e.editor.isActive(N(o))?(E(),R("div",{key:0,class:"bootstrap-styles d-flex align-items-center ms-14 me-1",onClick:c[1]||(c[1]=u=>i()),onMousedown:c[2]||(c[2]=Nt(()=>{},["prevent"]))},[b("input",{id:"rich-text__retina-checkbox",class:"bootstrap-styles me-1 cursor-pointer",checked:e.editor.isActive(N(o),{isRetina:!0}),type:"checkbox","aria-label":"Checkbox for retina image"},null,8,m4t),b("label",f4t,W(n.retinaLabel),1)],32)):oe("",!0),r.isAddImageSrcModalWindowShown?(E(),Q(s4t,{key:1,isActive:e.editor.isActive(N(o)),src:e.editor.getAttributes(N(o)).src?e.editor.getAttributes(N(o)).src:"",width:e.editor.getAttributes(N(o)).width?e.editor.getAttributes(N(o)).width:0,height:e.editor.getAttributes(N(o)).height?e.editor.getAttributes(N(o)).height:0,isRetina:e.editor.getAttributes(N(o)).isRetina?e.editor.getAttributes(N(o)).isRetina:!1,deps:e.deps.addImageSrcModalWindowDeps,onOnRemoved:c[3]||(c[3]=()=>a()),onOnClosed:c[4]||(c[4]=u=>r.isAddImageSrcModalWindowShown=!1),onOnImageSrcChanged:c[5]||(c[5]=u=>s({src:u.src,width:u.width,height:u.height}))},null,8,["isActive","src","width","height","isRetina","deps"])):oe("",!0)],64))}}),y4t=ve(g4t,[["__scopeId","data-v-d72ccf51"]]),C4t={},b4t={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function v4t(t,e){return E(),R("svg",b4t,[...e[0]||(e[0]=[b("path",{d:"M5.83333 7.33317H8.83333C9.7538 7.33317 10.5 6.58698 10.5 5.6665C10.5 4.74603 9.7538 3.99984 8.83333 3.99984H5.83333V7.33317ZM12.5 10.3332C12.5 11.99 11.1569 13.3332 9.5 13.3332H4.5V2.6665H8.83333C10.4902 2.6665 11.8333 4.00965 11.8333 5.6665C11.8333 6.46938 11.5179 7.19857 11.0043 7.73704C11.8986 8.2563 12.5 9.2245 12.5 10.3332ZM5.83333 8.6665V11.9998H9.5C10.4205 11.9998 11.1667 11.2536 11.1667 10.3332C11.1667 9.4127 10.4205 8.6665 9.5 8.6665H5.83333Z",fill:"var(--black)"},null,-1)])])}const Bpe=ve(C4t,[["render",v4t]]),w4t={tooltip:"Bold"},S4t={tooltip:"Полужирный"},x4t=ht({en:w4t,ru:S4t}),T4t={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},k4t=re({__name:"FontWeightEditor",props:{editor:{},theme:{},isAllowToEdit:{type:Boolean},deps:{}},setup(t){const e=t,n={tooltip:x4t({localeKey:e.deps.localeKey}).tooltip},o=ne(()=>l$({editor:e.editor,theme:e.theme,styleName:"fontWeight"})==="bold"),r=()=>{o.value?e.editor.chain().focus().unsetFontWeight().run():e.editor.chain().focus().setFontWeight("bold").run(),e.editor.commands.focus()};return(i,s)=>Ke((E(),R("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:o.value,disabled:!e.isAllowToEdit&&!o.value}]),onClick:s[0]||(s[0]=()=>r())},[b("i",T4t,[I(Bpe)])],2)),[[N(Xn),{title:n.tooltip,placement:"top"}]])}}),F4t=ve(k4t,[["__scopeId","data-v-0e22dbf6"]]),E4t={},L4t={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function _4t(t,e){return E(),R("svg",L4t,[...e[0]||(e[0]=[b("path",{d:"M11.9359 9.33317C12.0897 9.67724 12.1667 10.0594 12.1667 10.4796C12.1667 11.3748 11.8175 12.0742 11.1191 12.5778C10.4206 13.0814 9.45567 13.3332 8.22413 13.3332C7.13116 13.3332 6.0489 13.0788 4.97728 12.5702V11.0671C5.99025 11.652 7.0272 11.9445 8.08813 11.9445C9.78887 11.9445 10.6419 11.4562 10.6472 10.4796C10.6472 10.0624 10.5033 9.70637 10.2154 9.41137C10.1893 9.38464 10.1626 9.35857 10.1354 9.33317H2.5V7.99984H14.5V9.33317H11.9359ZM9.21733 7.33317H5.58605C5.47107 7.2287 5.36411 7.11264 5.26517 6.98504C4.97728 6.61373 4.83333 6.16356 4.83333 5.63455C4.83333 4.81052 5.14389 4.10984 5.76499 3.5325C6.38611 2.95516 7.34707 2.6665 8.64793 2.6665C9.62893 2.6665 10.5673 2.88522 11.4629 3.32268V4.75711C10.6632 4.29931 9.7862 4.07042 8.83187 4.07042C7.17913 4.07042 6.35278 4.59179 6.35278 5.63455C6.35278 5.91432 6.49806 6.15848 6.78862 6.36703C7.07919 6.57558 7.43773 6.74217 7.8642 6.86677C8.27767 6.98757 8.72873 7.14304 9.21733 7.33317Z",fill:"black"},null,-1)])])}const Npe=ve(E4t,[["render",_4t]]),A4t={tooltip:"Strikethrough"},R4t={tooltip:"Зачеркнутый"},D4t=ht({en:A4t,ru:R4t}),B4t={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},N4t=re({__name:"LineThroughEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:D4t({localeKey:e.deps.localeKey}).tooltip},o=ne(()=>l$({editor:e.editor,theme:e.theme,styleName:"textDecoration"})==="line-through"),r=()=>{o.value?e.editor.chain().focus().unsetTextDecoration().run():e.editor.chain().focus().setTextDecoration("line-through").run(),e.editor.commands.focus()};return(i,s)=>Ke((E(),R("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:o.value,disabled:!t.isAllowToEdit&&!o.value}]),onClick:s[0]||(s[0]=a=>r())},[b("i",B4t,[I(Npe)])],2)),[[N(Xn),{title:n.tooltip,placement:"top"}]])}}),I4t=ve(N4t,[["__scopeId","data-v-fffc32ef"]]),M4t={},$4t={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function O4t(t,e){return E(),R("svg",$4t,[...e[0]||(e[0]=[b("path",{d:"M5.83366 2V8C5.83366 9.47273 7.02757 10.6667 8.50033 10.6667C9.97306 10.6667 11.167 9.47273 11.167 8V2H12.5003V8C12.5003 10.2091 10.7095 12 8.50033 12C6.29119 12 4.50033 10.2091 4.50033 8V2H5.83366ZM3.16699 13.3333H13.8337V14.6667H3.16699V13.3333Z",fill:"black"},null,-1)])])}const Ipe=ve(M4t,[["render",O4t]]),P4t={tooltip:"Underline"},V4t={tooltip:"Подчеркнутый"},W4t=ht({en:P4t,ru:V4t}),H4t={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},z4t=re({__name:"UnderlineEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:W4t({localeKey:e.deps.localeKey}).tooltip},o=ne(()=>l$({editor:e.editor,theme:e.theme,styleName:"textDecoration"})==="underline"),r=()=>{o.value?e.editor.chain().focus().unsetTextDecoration().run():e.editor.chain().focus().setTextDecoration("underline").run()};return(i,s)=>Ke((E(),R("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:o.value,disabled:!t.isAllowToEdit&&!o.value}]),onClick:s[0]||(s[0]=()=>r())},[b("i",H4t,[I(Ipe)])],2)),[[N(Xn),{title:n.tooltip,placement:"top"}]])}}),j4t=ve(z4t,[["__scopeId","data-v-ae63be68"]]),K4t={},U4t={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function q4t(t,e){return E(),R("svg",U4t,[...e[0]||(e[0]=[b("path",{d:"M10.4998 13.3332H5.1665V11.9998H7.11758L8.52817 3.99984H6.49984V2.6665H11.8332V3.99984H9.8821L8.4715 11.9998H10.4998V13.3332Z",fill:"black"},null,-1)])])}const Mpe=ve(K4t,[["render",q4t]]),J4t={tooltip:"Italic"},G4t={tooltip:"Курсив"},Y4t=ht({en:J4t,ru:G4t}),Z4t={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},X4t=re({__name:"FontStyleEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:Y4t({localeKey:e.deps.localeKey}).tooltip},o=ne(()=>l$({editor:e.editor,theme:e.theme,styleName:"fontStyle"})==="italic"),r=()=>{o.value?e.editor.chain().focus().unsetFontStyle().run():e.editor.chain().focus().setFontStyle("italic").run(),e.editor.commands.focus()};return(i,s)=>Ke((E(),R("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:o.value,disabled:!t.isAllowToEdit&&!o.value}]),onClick:s[0]||(s[0]=()=>r())},[b("i",Z4t,[I(Mpe)])],2)),[[N(Xn),{title:n.tooltip,placement:"top"}]])}}),Q4t=ve(X4t,[["__scopeId","data-v-ac6b2276"]]),eWt={},tWt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nWt(t,e){return E(),R("svg",tWt,[...e[0]||(e[0]=[b("path",{d:"M7.49699 9.99999H3.16912L1.83578 13.3333H0.399734L4.6664 2.66666H5.99973L10.2664 13.3333H8.83033L7.49699 9.99999ZM6.96366 8.66666L5.33307 4.5901L3.70245 8.66666H6.96366ZM13.9997 8.35672V7.99999H15.3331V13.3333H13.9997V12.9766C13.6075 13.2035 13.1521 13.3333 12.6664 13.3333C11.1937 13.3333 9.99973 12.1394 9.99973 10.6667C9.99973 9.19392 11.1937 7.99999 12.6664 7.99999C13.1521 7.99999 13.6075 8.12986 13.9997 8.35672ZM12.6664 12C13.4028 12 13.9997 11.4031 13.9997 10.6667C13.9997 9.93026 13.4028 9.33332 12.6664 9.33332C11.93 9.33332 11.3331 9.93026 11.3331 10.6667C11.3331 11.4031 11.93 12 12.6664 12Z",fill:"black"},null,-1)])])}const oWt=ve(eWt,[["render",nWt]]),rWt={tooltip:"Uppercase"},iWt={tooltip:"Заглавные"},sWt=ht({en:rWt,ru:iWt}),aWt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},lWt=re({__name:"TextTransformEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:sWt({localeKey:e.deps.localeKey}).tooltip},o=C9e.name,r=ne(()=>e.editor.isActive({[o]:"uppercase"})),i=()=>{r.value?e.editor.commands.unsetTextTransform():e.editor.commands.setTextTransform("uppercase"),e.editor.commands.focus()};return(s,a)=>Ke((E(),R("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive({[N(o)]:"uppercase"}),disabled:!t.isAllowToEdit&&!e.editor.isActive({[N(o)]:"uppercase"})}]),onClick:a[0]||(a[0]=l=>i())},[b("i",aWt,[I(oWt)])],2)),[[N(Xn),{title:n.tooltip,placement:"top"}]])}}),cWt=ve(lWt,[["__scopeId","data-v-20dea8b8"]]),uWt={},dWt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hWt(t,e){return E(),R("svg",dWt,[...e[0]||(e[0]=[b("path",{d:"M12.2432 8.47094C13.5449 7.16921 13.5449 5.05865 12.2432 3.75691C10.9414 2.45516 8.83086 2.45516 7.52912 3.75691L6.58631 4.69972L5.6435 3.75691L6.58631 2.8141C8.40879 0.991654 11.3635 0.991654 13.186 2.8141C15.0084 4.63655 15.0084 7.59134 13.186 9.41374L12.2432 8.47094ZM9.41472 13.185C7.59232 15.0075 4.63752 15.0075 2.81508 13.185C0.99263 11.3625 0.99263 8.40781 2.81508 6.58533L3.75788 5.64253L4.70069 6.58533L3.75788 7.52814C2.45614 8.82987 2.45614 10.9405 3.75788 12.2422C5.05963 13.5439 7.17019 13.5439 8.47192 12.2422L9.41472 13.185ZM9.88612 5.17112L10.8289 6.11393L6.1149 10.828L5.1721 9.88514L9.88612 5.17112Z",fill:"#2F2F2F"},null,-1),b("path",{d:"M14.714 13.7712L13.2998 12.357L14.714 10.9428L13.7712 10L12.357 11.4142L10.9428 10L10 10.9428L11.4142 12.357L10 13.7712L10.9428 14.714L12.357 13.2998L13.7712 14.714L14.714 13.7712Z",fill:"#2F2F2F"},null,-1)])])}const pWt=ve(uWt,[["render",hWt]]),mWt={tooltip:"Unsubscribe link"},fWt={tooltip:"Ссылка на отписку"},gWt=ht({en:mWt,ru:fWt}),yWt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},CWt=re({__name:"UnsubscribeLinkEditor",props:{editor:{},isAllowToEdit:{type:Boolean},theme:{},deps:{}},setup(t){const e=t,n={tooltip:gWt({localeKey:e.deps.localeKey}).tooltip},o=Lpe.name,r=Hhe.name,i=ne(()=>e.editor.isActive(r)),s=()=>{i.value&&e.editor.commands.unsetLink(),e.editor.isActive(o)?e.editor.chain().unsetUnsubscribeLink().applySiblingNodeThemeSettings().run():e.editor.chain().setUnsubscribeLink().setThemeSettings("Link").run()};return(a,l)=>Ke((E(),R("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(N(o)),disabled:!e.editor.isActive(N(o))&&!e.isAllowToEdit}]),onClick:l[0]||(l[0]=()=>s())},[b("i",yWt,[I(pWt)])],2)),[[N(Xn),{title:n.tooltip,placement:"top"}]])}}),bWt=ve(CWt,[["__scopeId","data-v-9ee287d3"]]),vWt={},wWt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function SWt(t,e){return E(),R("svg",wWt,[...e[0]||(e[0]=[b("path",{d:"M6.16699 4.66667C6.16699 3.93029 5.57004 3.33333 4.83366 3.33333C4.09728 3.33333 3.50033 3.93029 3.50033 4.66667C3.50033 5.40305 4.09728 6 4.83366 6C5.57004 6 6.16699 5.40305 6.16699 4.66667ZM7.50033 4.66667C7.50033 6.13943 6.30642 7.33333 4.83366 7.33333C3.3609 7.33333 2.16699 6.13943 2.16699 4.66667C2.16699 3.19391 3.3609 2 4.83366 2C6.30642 2 7.50033 3.19391 7.50033 4.66667ZM14.5003 2.66667H9.16699V4H14.5003V2.66667ZM14.5003 7.33333H9.16699V8.66667H14.5003V7.33333ZM14.5003 12H9.16699V13.3333H14.5003V12ZM4.83366 12.6667C4.09728 12.6667 3.50033 12.0697 3.50033 11.3333C3.50033 10.5969 4.09728 10 4.83366 10C5.57004 10 6.16699 10.5969 6.16699 11.3333C6.16699 12.0697 5.57004 12.6667 4.83366 12.6667ZM4.83366 14C6.30642 14 7.50033 12.8061 7.50033 11.3333C7.50033 9.8606 6.30642 8.66667 4.83366 8.66667C3.3609 8.66667 2.16699 9.8606 2.16699 11.3333C2.16699 12.8061 3.3609 14 4.83366 14Z",fill:"black"},null,-1)])])}const xWt=ve(vWt,[["render",SWt]]),TWt={tooltip:"Bullet list"},kWt={tooltip:"Маркированный список"},FWt=ht({en:TWt,ru:kWt}),EWt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},LWt=re({__name:"BulletListEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:FWt({localeKey:e.deps.localeKey}).tooltip},o=zhe.name,r=()=>{e.editor.chain().focus().toggleBulletList().run()};return(i,s)=>Ke((E(),R("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(N(o))}]),onClick:s[0]||(s[0]=()=>r())},[b("i",EWt,[I(xWt)])],2)),[[N(Xn),{title:n.tooltip,placement:"top"}]])}}),_Wt=ve(LWt,[["__scopeId","data-v-c64632e3"]]),AWt={},RWt={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function DWt(t,e){return E(),R("svg",RWt,[...e[0]||(e[0]=[b("path",{d:"M4.33382 2.33301H3.64521L2.66699 2.59512V3.63022L3.33367 3.45155L3.33378 5.66634H2.50033V6.66634H5.16699V5.66634H4.33382V2.33301ZM7.16699 2.66634H14.5003V3.99967H7.16699V2.66634ZM7.16699 7.33301H14.5003V8.66634H7.16699V7.33301ZM7.16699 11.9997H14.5003V13.333H7.16699V11.9997ZM2.41699 10.4163C2.41699 9.63394 3.05125 8.99967 3.83366 8.99967C4.61607 8.99967 5.25033 9.63394 5.25033 10.4163C5.25033 10.7401 5.14155 11.0388 4.95864 11.2775L4.95547 11.2816L4.04424 12.333H5.16699V13.333H2.50041L2.50005 12.5854L4.14813 10.6897C4.21186 10.6165 4.25033 10.5211 4.25033 10.4163C4.25033 10.1862 4.06378 9.99967 3.83366 9.99967C3.61618 9.99967 3.43748 10.1664 3.41864 10.3789L3.41039 10.583H2.41699V10.4163Z",fill:"black"},null,-1)])])}const BWt=ve(AWt,[["render",DWt]]),NWt={tooltip:"Ordered list"},IWt={tooltip:"Нумерованный список"},MWt=ht({en:NWt,ru:IWt}),$Wt={class:"bootstrap-styles d-flex rich-text-icon icon-hover"},OWt=re({__name:"OrderedListEditor",props:{editor:{},deps:{}},setup(t){const e=t,n={tooltip:MWt({localeKey:e.deps.localeKey}).tooltip},o=Khe.name,r=()=>{e.editor.chain().focus().toggleOrderedList().run()};return(i,s)=>Ke((E(),R("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:e.editor.isActive(N(o))}]),onClick:s[0]||(s[0]=()=>r())},[b("i",$Wt,[I(BWt)])],2)),[[N(Xn),{title:n.tooltip,placement:"top"}]])}}),PWt=ve(OWt,[["__scopeId","data-v-aaa43948"]]),VWt={},WWt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function HWt(t,e){return E(),R("svg",WWt,[...e[0]||(e[0]=[b("path",{d:"M14 13.9995H2V12.6665H14V13.9995ZM14 10.6665H2V9.3335H14V10.6665ZM4.29102 7.3335H2.00684V5.99951H4.29102V7.3335ZM10.4434 7.3335H5.55664V2.68896H10.4434V7.3335ZM14 7.3335H11.7158V5.99951H14V7.3335ZM4.29102 3.99951H2.00684V2.6665H4.29102V3.99951ZM14 3.99951H11.7158V2.6665H14V3.99951Z",fill:"var(--black)"},null,-1)])])}const vke=ve(VWt,[["render",HWt]]),zWt={},jWt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function KWt(t,e){return E(),R("svg",jWt,[...e[0]||(e[0]=[b("path",{d:"M14 13.9995H2V12.6665H14V13.9995ZM10.4434 10.6548H5.55664V6.01123H10.4434V10.6548ZM4.29102 10.6245H2.00684V9.29053H4.29102V10.6245ZM14 10.6245H11.7158V9.29053H14V10.6245ZM4.29102 7.29053H2.00684V5.95752H4.29102V7.29053ZM14 7.29053H11.7158V5.95752H14V7.29053Z",fill:"var(--black)"},null,-1),b("path",{d:"M14 2.6665H2V3.99984H14V2.6665Z",fill:"var(--black)"},null,-1)])])}const wke=ve(zWt,[["render",KWt]]),UWt={},qWt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function JWt(t,e){return E(),R("svg",qWt,[...e[0]||(e[0]=[b("path",{d:"M14 2.6665H2V3.99951H14V2.6665ZM14 5.99951H2V7.33252H14V5.99951ZM4.29102 9.33252H2.00684V10.6665H4.29102V9.33252ZM10.4434 9.33252H5.55664V13.9771H10.4434V9.33252ZM14 9.33252H11.7158V10.6665H14V9.33252ZM4.29102 12.6665H2.00684V13.9995H4.29102V12.6665ZM14 12.6665H11.7158V13.9995H14V12.6665Z",fill:"var(--black)"},null,-1)])])}const Ske=ve(UWt,[["render",JWt]]),GWt={},YWt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ZWt(t,e){return E(),R("svg",YWt,[...e[0]||(e[0]=[b("path",{d:"M14 11.9775H2V10.6445H14V11.9775ZM4.29102 8.64453H2.00684V7.31055H4.29102V8.64453ZM10.4434 8.64453H5.55664V4H10.4434V8.64453ZM14 8.64453H11.7158V7.31055H14V8.64453Z",fill:"var(--black)"},null,-1)])])}const xke=ve(GWt,[["render",ZWt]]),XWt={tooltip:"Vertical image alignment"},QWt={tooltip:"Выравнивание картинок по вертикали"},eHt=ht({en:XWt,ru:QWt}),tHt={class:"bootstrap-styles vertical-align-editor dropdown rounded"},nHt={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},oHt={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},rHt={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},iHt={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},sHt={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},aHt=re({__name:"VerticalAlignEditor",props:{editor:{},currentVerticalAlign:{},deps:{}},emits:["onVerticalAlignVariantChanged"],setup(t,{emit:e}){const n=t,o={tooltip:eHt({localeKey:n.deps.localeKey}).tooltip},r=Le({isOpened:!1}),i=a=>{s("onVerticalAlignVariantChanged",a),r.isOpened=!1},s=e;return(a,l)=>Ke((E(),R("div",tHt,[b("button",{id:"richTextDropdownVerticalAlign",class:G(["bootstrap-styles p-1 rounded rich-text-button",{show:r.isOpened}]),type:"button",onClick:l[0]||(l[0]=c=>r.isOpened=!r.isOpened)},[b("i",nHt,[n.currentVerticalAlign==="Baseline"?(E(),Q(xke,{key:0})):oe("",!0),n.currentVerticalAlign==="Top"?(E(),Q(vke,{key:1})):oe("",!0),n.currentVerticalAlign==="Middle"?(E(),Q(wke,{key:2})):oe("",!0),n.currentVerticalAlign==="Bottom"?(E(),Q(Ske,{key:3})):oe("",!0)])],2),b("div",{class:G([{show:r.isOpened},"bootstrap-styles vertical-align-dropdown bg-white p-1"]),"aria-labelledby":"richTextDropdownVerticalAlign"},[b("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentVerticalAlign==="Baseline"}]),onClick:l[1]||(l[1]=()=>i("Baseline"))},[b("i",oHt,[I(xke)])],2),b("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentVerticalAlign==="Top"}]),onClick:l[2]||(l[2]=()=>i("Top"))},[b("i",rHt,[I(vke)])],2),b("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:n.currentVerticalAlign==="Middle"}]),onClick:l[3]||(l[3]=()=>i("Middle"))},[b("i",iHt,[I(wke)])],2),b("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:n.currentVerticalAlign==="Bottom"}]),onClick:l[4]||(l[4]=()=>i("Bottom"))},[b("i",sHt,[I(Ske)])],2)],2)])),[[N(Lg),()=>r.isOpened=!1],[N(Xn),{title:o.tooltip,placement:"top"}]])}}),lHt=ve(aHt,[["__scopeId","data-v-4a636ae8"]]),cHt={},uHt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function dHt(t,e){return E(),R("svg",uHt,[...e[0]||(e[0]=[b("path",{d:"M2 2.6665H14V3.99984H2V2.6665ZM2 12.6665H11.3333V13.9998H2V12.6665ZM2 9.33317H14V10.6665H2V9.33317ZM2 5.99984H11.3333V7.33317H2V5.99984Z",fill:"var(--black)"},null,-1)])])}const Tke=ve(cHt,[["render",dHt]]),hHt={},pHt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function mHt(t,e){return E(),R("svg",pHt,[...e[0]||(e[0]=[b("path",{d:"M2 2.6665H14V3.99984H2V2.6665ZM3.33333 12.6665H12.6667V13.9998H3.33333V12.6665ZM2 9.33317H14V10.6665H2V9.33317ZM3.33333 5.99984H12.6667V7.33317H3.33333V5.99984Z",fill:"var(--black)"},null,-1)])])}const kke=ve(hHt,[["render",mHt]]),fHt={},gHt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function yHt(t,e){return E(),R("svg",gHt,[...e[0]||(e[0]=[b("path",{d:"M2 2.6665H14V3.99984H2V2.6665ZM4.66667 12.6665H14V13.9998H4.66667V12.6665ZM2 9.33317H14V10.6665H2V9.33317ZM4.66667 5.99984H14V7.33317H4.66667V5.99984Z",fill:"var(--black)"},null,-1)])])}const Fke=ve(fHt,[["render",yHt]]),CHt={tooltip:"Alignment"},bHt={tooltip:"Выравнивание"},vHt=ht({en:CHt,ru:bHt}),wHt={class:"bootstrap-styles content-align-editor dropdown rounded"},SHt={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},xHt={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},THt={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},kHt={class:"bootstrap-styles rich-text-icon icon-hover d-flex justify-content-center align-items-center"},FHt=re({__name:"ContentAlignEditor",props:{editor:{},deps:{},initialContentAlign:{}},setup(t){const e=t,n={tooltip:vHt({localeKey:e.deps.localeKey}).tooltip},o=Le({isOpened:!1}),r=ne(()=>{const{$from:s}=e.editor.state.selection,a=s.parent;return a.type.name==="paragraph"&&a.attrs.contentAlign||e.initialContentAlign}),i=s=>{e.editor.chain().focus().setParagraphContentAlign(s).run(),o.isOpened=!1};return(s,a)=>Ke((E(),R("div",wHt,[b("button",{id:"richTextDropdownContentAlign",class:G(["bootstrap-styles p-1 rounded rich-text-button",{show:o.isOpened}]),type:"button",onClick:a[0]||(a[0]=l=>o.isOpened=!o.isOpened)},[b("i",SHt,[r.value==="Left"?(E(),Q(Tke,{key:0})):oe("",!0),r.value==="Center"?(E(),Q(kke,{key:1})):oe("",!0),r.value==="Right"?(E(),Q(Fke,{key:2})):oe("",!0)])],2),b("div",{class:G([{show:o.isOpened},"bootstrap-styles content-align-dropdown bg-white p-1"]),"aria-labelledby":"richTextDropdownContentAlign"},[b("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:r.value==="Left"}]),onClick:a[1]||(a[1]=()=>i("Left"))},[b("i",xHt,[I(Tke)])],2),b("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button me-14",{active:r.value==="Center"}]),onClick:a[2]||(a[2]=()=>i("Center"))},[b("i",THt,[I(kke)])],2),b("button",{class:G(["bootstrap-styles p-1 rounded rich-text-button",{active:r.value==="Right"}]),onClick:a[3]||(a[3]=()=>i("Right"))},[b("i",kHt,[I(Fke)])],2)],2)])),[[N(Lg),()=>o.isOpened=!1],[N(Xn),{title:n.tooltip,placement:"top"}]])}}),EHt=ve(FHt,[["__scopeId","data-v-e9d5324a"]]),LHt={class:"bootstrap-styles rich-text-toolbar d-flex align-items-center border gap-1 p-1"},_Ht={key:2,class:"bootstrap-styles position-relative h-100"},AHt={key:3,class:"bootstrap-styles position-relative h-100"},RHt={key:4,class:"bootstrap-styles d-flex justify-content-center align-items-center"},DHt={key:7,class:"vl"},BHt={key:13,class:"vl"},NHt={key:16,class:"vl"},IHt=re({__name:"RichTextToolbar",props:{editor:{},deps:{},element:{},theme:{},initialThemeName:{},initialContentAlign:{}},emits:["onVerticalAlignVariantChanged"],setup(t,{emit:e}){const n=t,o=n.deps.richTextToolbarPlugins,r=ne(()=>{const{from:a,to:l}=n.editor.state.selection;return a!==l}),i=ne(()=>n.editor.isActive("image")),s=e;return(a,l)=>(E(),R("div",LHt,[i.value?oe("",!0):(E(),Q(s5t,{key:0,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,initialThemeName:n.initialThemeName,deps:n.deps.themeSettingsSelectorDeps},null,8,["editor","theme","isAllowToEdit","initialThemeName","deps"])),i.value?oe("",!0):(E(),Q(R6t,{key:1,theme:n.theme,editor:n.editor,isAllowToEdit:r.value,deps:n.deps.fontFamilySelectorDeps},null,8,["theme","editor","isAllowToEdit","deps"])),i.value?oe("",!0):(E(),R("div",_Ht,[I(X6t,{editor:n.editor,theme:n.theme,deps:n.deps.fontSizeEditorDeps,class:G({disabled:!r.value})},null,8,["editor","theme","deps","class"])])),i.value?oe("",!0):(E(),R("div",AHt,[I(v5t,{editor:n.editor,theme:n.theme,deps:n.deps.lineHeightEditorDeps,class:G({disabled:!r.value})},null,8,["editor","theme","deps","class"])])),i.value?oe("",!0):(E(),R("div",RHt,[I(b6t,{editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.colorPickerDeps},null,8,["editor","theme","isAllowToEdit","deps"])])),i.value?(E(),Q(lHt,{key:5,currentVerticalAlign:n.element.ImageVerticalAlign,editor:n.editor,deps:n.deps.verticalAlignEditorDeps,onOnVerticalAlignVariantChanged:l[0]||(l[0]=c=>s("onVerticalAlignVariantChanged",c))},null,8,["currentVerticalAlign","editor","deps"])):oe("",!0),i.value?oe("",!0):(E(),Q(EHt,{key:6,editor:n.editor,initialContentAlign:n.initialContentAlign,deps:n.deps.contentAlignEditorDeps,class:G({"bootstrap-styles me-14":i.value})},null,8,["editor","initialContentAlign","deps","class"])),i.value?oe("",!0):(E(),R("div",DHt)),i.value?oe("",!0):(E(),Q(F4t,{key:8,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.fontWeightEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?oe("",!0):(E(),Q(Q4t,{key:9,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.fontStyleEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?oe("",!0):(E(),Q(I4t,{key:10,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.lineThroughEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?oe("",!0):(E(),Q(j4t,{key:11,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.underlineEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?oe("",!0):(E(),Q(cWt,{key:12,editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.textTransformEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"])),i.value?oe("",!0):(E(),R("div",BHt)),i.value?oe("",!0):(E(),Q(_Wt,{key:14,editor:n.editor,deps:n.deps.bulletListEditorDeps},null,8,["editor","deps"])),i.value?oe("",!0):(E(),Q(PWt,{key:15,editor:n.editor,deps:n.deps.orderedListEditorDeps},null,8,["editor","deps"])),i.value?oe("",!0):(E(),R("div",NHt)),I(Y5t,{editor:n.editor,isAllowToEdit:r.value,deps:n.deps.linkEditorDeps},null,8,["editor","isAllowToEdit","deps"]),I(bWt,{editor:n.editor,theme:n.theme,isAllowToEdit:r.value,deps:n.deps.unsubscribeLinkEditorDeps},null,8,["editor","theme","isAllowToEdit","deps"]),I(y4t,{editor:n.editor,deps:n.deps.imageEditorDeps},null,8,["editor","deps"]),(E(!0),R(Se,null,At(N(o),(c,u)=>(E(),R("span",{key:u,class:"bootstrap-styles d-none"},[(E(),Q(JK(c),{editor:n.editor},null,8,["editor"]))]))),128))]))}}),MHt=ve(IHt,[["__scopeId","data-v-359375dd"]]),$Ht=t=>({Match:e=>{switch(t){case"Baseline":return e.whenBaseline();case"Top":return e.whenTop();case"Middle":return e.whenMiddle();case"Bottom":return e.whenBottom();default:return Zc(t)}}}),OHt=t=>$Ht(t.verticalAlign).Match({whenBaseline:()=>"baseline",whenTop:()=>"top",whenMiddle:()=>"middle",whenBottom:()=>"bottom"}),Eke="NormalText",Lke="Left",PHt=re({__name:"RichText",props:{deps:{},theme:{},element:{},isSelected:{type:Boolean}},emits:["onRichTextUpdated","onRichTextRemoved","onElementClicked"],setup(t,{emit:e}){Cd(v=>({v60d2e647:n.theme.Colors.PrimaryColor,v50380095:n.theme.Colors.SecondaryColor,c0ee59cc:n.theme.Colors.PrimaryTextColor,v71c7d330:n.theme.Colors.SecondaryTextColor,v7c12c31f:n.theme.Colors.CardBackgroundColor,v4864fd9e:n.theme.Colors.ButtonTextColor,v58735131:n.theme.Colors.TitleColor,v07ae7647:n.theme.Colors.HeadingColor,a7a6794a:n.theme.Colors.SubHeadingColor,v2ee46f81:n.theme.Colors.LargeTextColor,v13850389:n.theme.Colors.NormalTextColor,cd2ab940:n.theme.Colors.DescriptionTextColor,v12f184fa:n.theme.Colors.LinkColor,v21f0555f:n.theme.Colors.EmailBackgroundColor,bbf1064a:n.theme.Colors.BodyColor,v2a73a7e8:f.value}));const n=t,o=Le({isRemoveComponentWindowShown:!1,isEditing:!1}),r={removeWindowTitle:pke({localeKey:n.deps.localeKey}).removeWindowTitle,removeWindowDescription:pke({localeKey:n.deps.localeKey}).removeWindowDescription},i=Rt(null),s=Rt(null),{floatingStyles:a}=zF(s,i,{placement:"top",whileElementsMounted:WF,middleware:[HF(10)]}),l=ne(()=>{const v=a.value.transform??"translate(0px, 0px)",w=new DOMMatrix(v).m42;return{...a.value,left:"50%",transform:`translate(-50%, ${w}px)`}}),c=jK(),u=n.element.ContentAlign||Lke,d=ne(()=>Hl({fontFamily:n.theme.FontFamily,themeFontSettings:n.theme.FontSettingsPresets.NormalText,themeColor:n.theme.Colors.NormalTextColor})),h=ne(()=>{const v={...kpe(d.value)};return{fontSize:v.fontSize,lineHeight:v.lineHeight,fontFamily:v.fontFamily,fontWeight:v.fontWeight,fontStyle:v.fontStyle,color:v.color}}),p=lRt({content:mke(n.element.Text),extensions:[...o6t({dataSourceFieldNameDelegate:n.deps.dataSourceFieldNameDelegate,initialThemeName:Eke,themeColors:n.theme.Colors,fallbackContentAlign:n.element.ContentAlign||Lke})],editable:o.isEditing,autofocus:"all",onUpdate:({editor:v})=>{if(!o.isEditing)return;const w=r6t({editor:v});C("onRichTextUpdated",{...n.element,Text:w})}}),m=()=>{p.value&&(p.value.chain().focus().undo().run(),o.isRemoveComponentWindowShown=!1)},f=ne(()=>OHt({verticalAlign:n.element.ImageVerticalAlign})),g=()=>[document.querySelector(".rich-text-toolbar"),document.querySelector(".string-expression-builder-modal-window"),document.querySelector(`.rich-text-editor__content-${c}`)];on(()=>n.element.Text,()=>{p.value&&!o.isEditing&&p.value.commands.setContent(mke(n.element.Text))});const C=e;return(v,w)=>Ke((E(),R("span",{ref_key:"richTextElementRef",ref:s,class:G(["RichText cursor-pointer user-select-none",{selected:n.isSelected}]),style:Te([{...h.value,minHeight:n.element.MinHeight+"px",display:"block"}]),onClick:w[3]||(w[3]=Nt(()=>{C("onElementClicked"),o.isEditing=!0,N(p)&&N(p).setEditable(!0)},["prevent"]))},[I(N(aRt),{class:G(["rich-text-editor__content",`rich-text-editor__content-${N(c)}`]),editor:N(p)},null,8,["class","editor"]),N(p)&&o.isEditing?(E(),Q(MHt,{key:0,ref_key:"richTextToolbarRef",ref:i,editor:N(p),deps:n.deps.richTextToolbarDeps,element:n.element,theme:n.theme,initialThemeName:Eke,initialContentAlign:N(u),style:Te(l.value),onOnVerticalAlignVariantChanged:w[0]||(w[0]=S=>C("onRichTextUpdated",{...n.element,ImageVerticalAlign:S}))},null,8,["editor","deps","element","theme","initialContentAlign","style"])):oe("",!0),(E(),Q(yo,{to:"body",defer:""},[o.isRemoveComponentWindowShown?(E(),Q(Ch,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:r.removeWindowTitle,onCancel:w[1]||(w[1]=()=>m()),onConfirmed:w[2]||(w[2]=()=>{o.isRemoveComponentWindowShown=!1,C("onRichTextRemoved")})},{"body-content":Bt(()=>[no(W(r.removeWindowDescription),1)]),_:1},8,["deps","headerText"])):oe("",!0)]))],6)),[[N(Lg),{handler:()=>{o.isEditing=!1,N(p)&&N(p).setEditable(!1)},include:g}]])}}),VHt=ve(PHt,[["__scopeId","data-v-0a9d26ba"]]),WHt=re({__name:"UnsubscribeLink",props:{theme:{},element:{}},emits:["onElementClicked"],setup(t,{emit:e}){const n=t,o=ne(()=>{const i=Fpe({fontFamily:n.theme.FontFamily,fontStyle:n.element.Style,themeDefinedFontSettings:n.theme.FontSettingsPresets,themeColors:n.theme.Colors});return{...kpe(i)}}),r=e;return(i,s)=>(E(),R("a",{href:"#",class:"cursor-pointer user-select-none",style:Te([{margin:"0"},[o.value,N(oI)({contentAlign:n.element.ContentAlign})]]),onClick:s[0]||(s[0]=Nt(()=>r("onElementClicked"),["prevent"]))},W(n.element.Text),5))}}),HHt=ve(WHt,[["__scopeId","data-v-68ed9754"]]),zHt=["src","alt"],jHt={class:"bootstrap-styles position-absolute top-0 left-0",width:"100%",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",height:"100%"}},KHt={key:0},UHt=["align"],qHt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},JHt={align:"center",style:{width:"auto"}},GHt={key:0},YHt={key:1},ZHt=["align"],XHt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},QHt={align:"center",style:{width:"auto"}},ezt={key:2},tzt=["align"],nzt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},ozt={align:"center",style:{width:"auto"}},rzt={key:3},izt=["align"],szt={style:{width:"auto","border-spacing":"0","border-collapse":"separate"}},azt={align:"center",style:{width:"auto"}},lzt=re({__name:"BackgroundImage",props:{deps:{},theme:{},element:{},context:{type:[String,Number,Boolean,Array,Object]},path:{},selectedElementPath:{}},emits:["onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved","onElementWrapperClicked"],setup(t,{emit:e}){const n=t,o=Le({src:"",href:"",isLoaded:!1}),r=async s=>n.deps.stringExpressionEvaluator({stringExpression:s,context:n.context});(async()=>(o.src=await r(n.element.Src),o.href=await r(n.element.HRef),o.isLoaded=!0))();const i=e;return(s,a)=>o.isLoaded?(E(),R("table",{key:0,class:"bootstrap-styles position-relative",style:Te([{"border-spacing":"0","border-collapse":"separate"},{width:"100%"}]),onClick:a[20]||(a[20]=Nt(()=>i("onElementWrapperClicked"),["prevent"]))},[b("tbody",null,[b("tr",null,[b("td",{align:"center",style:Te([{height:n.element.AdjustedHeight+"px",verticalAlign:"top"}])},[Ke(b("img",{src:o.src,alt:o.src,style:{"max-width":"100%"}},null,8,zHt),[[N(jw),({width:l,height:c})=>{i("onImageSizeAdjusted",{Path:n.path,AdjustedHeight:c,AdjustedWidth:l}),o.isLoaded=!0}]]),b("table",jHt,[b("tbody",null,[n.element.TopElementList.List.length>0&&n.element.TopElementList.Direction==="Vertical"?(E(),R("tr",KHt,[b("td",{valign:"top",align:N(bf)({containerAlign:n.element.TopElementList.ContentAlign})},[b("table",qHt,[b("tbody",null,[b("tr",null,[b("td",{style:Te({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)]),(E(!0),R(Se,null,At(n.element.TopElementList.List,(l,c)=>(E(),R(Se,{key:c},[b("tr",null,[n.element.TopElementList.ContentAlign==="Left"?(E(),R("td",{key:0,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0),b("td",JHt,[I(Bu,{deps:n.deps,theme:n.theme,element:l,path:[...n.path,"TopElementList","List",c],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:a[0]||(a[0]=u=>i("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:a[1]||(a[1]=u=>i("onImageOriginalSizeAdjusted",u)),onOnElementClicked:a[2]||(a[2]=u=>i("onElementClicked",u)),onOnElementUpdatedEvent:a[3]||(a[3]=u=>i("onElementUpdatedEvent",u)),onOnElementRemoved:a[4]||(a[4]=u=>i("onElementRemoved",u))},null,8,["deps","theme","element","path","selectedElementPath","context"])]),n.element.TopElementList.ContentAlign==="Right"?(E(),R("td",{key:1,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0)]),n.element.TopElementList.List.length-1!==c?(E(),R("tr",GHt,[b("td",{style:Te({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)])):oe("",!0)],64))),128))])])],8,UHt)])):oe("",!0),n.element.TopElementList.List.length>0&&n.element.TopElementList.Direction==="Horizontal"?(E(),R("tr",YHt,[b("td",{valign:"top",align:N(bf)({containerAlign:n.element.TopElementList.ContentAlign})},[b("table",XHt,[b("tbody",null,[b("tr",null,[b("td",{style:Te({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)]),b("tr",null,[(E(!0),R(Se,null,At(n.element.TopElementList.List,(l,c)=>(E(),R(Se,{key:c},[n.element.TopElementList.ContentAlign==="Left"&&c===0?(E(),R("td",{key:0,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0),b("td",QHt,[I(Bu,{deps:n.deps,theme:n.theme,element:l,path:[...n.path,"TopElementList","List",c],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:a[5]||(a[5]=u=>i("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:a[6]||(a[6]=u=>i("onImageOriginalSizeAdjusted",u)),onOnElementClicked:a[7]||(a[7]=u=>i("onElementClicked",u)),onOnElementUpdatedEvent:a[8]||(a[8]=u=>i("onElementUpdatedEvent",u)),onOnElementRemoved:a[9]||(a[9]=u=>i("onElementRemoved",u))},null,8,["deps","theme","element","path","selectedElementPath","context"])]),n.element.TopElementList.ContentAlign==="Center"&&n.element.TopElementList.List.length-1!==c?(E(),R("td",{key:1,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0),n.element.TopElementList.ContentAlign==="Right"?(E(),R("td",{key:2,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0),n.element.TopElementList.ContentAlign==="Left"&&n.element.TopElementList.List.length-1!==c?(E(),R("td",{key:3,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0)],64))),128))])])])],8,ZHt)])):oe("",!0),n.element.BottomElementList.List.length>0&&n.element.BottomElementList.Direction==="Vertical"?(E(),R("tr",ezt,[b("td",{valign:"bottom",align:N(bf)({containerAlign:n.element.BottomElementList.ContentAlign})},[b("table",nzt,[b("tbody",null,[(E(!0),R(Se,null,At(n.element.BottomElementList.List,(l,c)=>(E(),R(Se,{key:c},[b("tr",null,[n.element.BottomElementList.ContentAlign==="Left"?(E(),R("td",{key:0,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0),b("td",ozt,[I(Bu,{deps:n.deps,theme:n.theme,element:l,path:[...n.path,"BottomElementList","List",c],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:a[10]||(a[10]=u=>i("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:a[11]||(a[11]=u=>i("onImageOriginalSizeAdjusted",u)),onOnElementClicked:a[12]||(a[12]=u=>i("onElementClicked",u)),onOnElementUpdatedEvent:a[13]||(a[13]=u=>i("onElementUpdatedEvent",u)),onOnElementRemoved:a[14]||(a[14]=u=>i("onElementRemoved",u))},null,8,["deps","theme","element","path","selectedElementPath","context"])]),n.element.BottomElementList.ContentAlign==="Right"?(E(),R("td",{key:1,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0)]),b("tr",null,[b("td",{style:Te({height:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)])],64))),128))])])],8,tzt)])):oe("",!0),n.element.BottomElementList.List.length>0&&n.element.BottomElementList.Direction==="Horizontal"?(E(),R("tr",rzt,[b("td",{valign:"bottom",align:N(bf)({containerAlign:n.element.BottomElementList.ContentAlign})},[b("table",szt,[b("tbody",null,[b("tr",null,[(E(!0),R(Se,null,At(n.element.BottomElementList.List,(l,c)=>(E(),R(Se,{key:c},[n.element.BottomElementList.ContentAlign==="Left"&&c===0?(E(),R("td",{key:0,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0),b("td",azt,[I(Bu,{deps:n.deps,theme:n.theme,element:l,path:[...n.path,"BottomElementList","List",c],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageSizeAdjusted:a[15]||(a[15]=u=>i("onImageSizeAdjusted",u)),onOnImageOriginalSizeAdjusted:a[16]||(a[16]=u=>i("onImageOriginalSizeAdjusted",u)),onOnElementClicked:a[17]||(a[17]=u=>i("onElementClicked",u)),onOnElementUpdatedEvent:a[18]||(a[18]=u=>i("onElementUpdatedEvent",u)),onOnElementRemoved:a[19]||(a[19]=u=>i("onElementRemoved",u))},null,8,["deps","theme","element","path","selectedElementPath","context"])]),n.element.BottomElementList.ContentAlign==="Center"&&n.element.BottomElementList.List.length-1!==c?(E(),R("td",{key:1,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0),n.element.BottomElementList.ContentAlign==="Right"?(E(),R("td",{key:2,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0),n.element.BottomElementList.ContentAlign==="Left"&&n.element.BottomElementList.List.length-1!==c?(E(),R("td",{key:3,style:Te({width:n.element.ElementsSpacerSize+"px",fontSize:n.element.ElementsSpacerSize+"px",lineHeight:n.element.ElementsSpacerSize+"px"})}," ",4)):oe("",!0)],64))),128))])])])],8,izt)])):oe("",!0)])])],4)])])])):oe("",!0)}}),Bu=re({__name:"Elements",props:{deps:{},theme:{},element:{},path:{},context:{type:[String,Number,Boolean,Array,Object]},selectedElementPath:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=e,r=(i,s)=>{o("onElementClicked",{element:i,path:[...n.path,s]})};return(i,s)=>(E(),R("span",{onClick:s[31]||(s[31]=Nt(()=>{},["stop"]))},[n.element.Button!==void 0?(E(),Q(hVt,{key:0,deps:n.deps,theme:n.theme,element:n.element.Button,context:n.context,class:G({"element-selected":N(n1)(n.selectedElementPath,[...n.path,"Button"])}),onOnElementClicked:s[0]||(s[0]=a=>r(n.element,"Button"))},null,8,["deps","theme","element","context","class"])):oe("",!0),n.element.HeightContainer!==void 0?(E(),Q(KPt,{key:1,deps:n.deps,theme:n.theme,element:n.element.HeightContainer,path:[...n.path,"HeightContainer"],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageOriginalSizeAdjusted:s[1]||(s[1]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[2]||(s[2]=a=>o("onImageSizeAdjusted",a)),onOnElementClicked:s[3]||(s[3]=a=>o("onElementClicked",a)),onOnElementRemoved:s[4]||(s[4]=a=>o("onElementRemoved",a)),onOnElementUpdatedEvent:s[5]||(s[5]=a=>o("onElementUpdatedEvent",a))},null,8,["deps","theme","element","path","selectedElementPath","context"])):oe("",!0),n.element.Image!==void 0?(E(),Q(ZPt,{key:2,deps:n.deps,theme:n.theme,element:n.element.Image,context:n.context,path:[...n.path,"Image"],class:G({"element-selected":N(n1)(n.selectedElementPath,[...n.path,"Image"])}),onOnImageOriginalSizeAdjusted:s[6]||(s[6]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[7]||(s[7]=a=>o("onImageSizeAdjusted",a)),onOnElementClicked:s[8]||(s[8]=a=>r(n.element,"Image"))},null,8,["deps","theme","element","context","path","class"])):oe("",!0),n.element.Spacer!==void 0?(E(),Q(oVt,{key:3,element:n.element.Spacer,theme:n.theme,class:G({"element-selected":N(n1)(n.selectedElementPath,[...n.path,"Spacer"])}),onOnElementClicked:s[9]||(s[9]=a=>r(n.element,"Spacer"))},null,8,["element","theme","class"])):oe("",!0),n.element.SpanText!==void 0?(E(),Q(fVt,{key:4,deps:n.deps,theme:n.theme,element:n.element.SpanText,context:n.context,class:G({"element-selected":N(n1)(n.selectedElementPath,[...n.path,"SpanText"])}),onOnElementClicked:s[10]||(s[10]=a=>r(n.element,"SpanText"))},null,8,["deps","theme","element","context","class"])):oe("",!0),n.element.RichText!==void 0?(E(),Q(VHt,{key:5,deps:n.deps.richTextDeps,theme:n.theme,element:n.element.RichText,isSelected:N(n1)(n.selectedElementPath,[...n.path,"RichText"]),onOnElementClicked:s[11]||(s[11]=a=>r(n.element,"RichText")),onOnRichTextUpdated:s[12]||(s[12]=a=>{o("onElementUpdatedEvent",{path:n.path,element:{RichText:a}})}),onOnRichTextRemoved:s[13]||(s[13]=()=>{o("onElementRemoved",n.path)})},null,8,["deps","theme","element","isSelected"])):oe("",!0),n.element.OneLineList!==void 0?(E(),Q(tVt,{key:6,deps:n.deps,theme:n.theme,element:n.element.OneLineList,path:[...n.path,"OneLineList"],selectedElementPath:n.selectedElementPath,context:n.context,onOnImageOriginalSizeAdjusted:s[14]||(s[14]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[15]||(s[15]=a=>o("onImageSizeAdjusted",a)),onOnElementClicked:s[16]||(s[16]=a=>o("onElementClicked",a)),onOnElementRemoved:s[17]||(s[17]=a=>o("onElementRemoved",a)),onOnElementUpdatedEvent:s[18]||(s[18]=a=>o("onElementUpdatedEvent",a))},null,8,["deps","theme","element","path","selectedElementPath","context"])):oe("",!0),n.element.If!==void 0?(E(),Q(WPt,{key:7,deps:n.deps,theme:n.theme,element:n.element.If,context:n.context,path:[...n.path,"If"],selectedElementPath:n.selectedElementPath,onOnImageOriginalSizeAdjusted:s[19]||(s[19]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[20]||(s[20]=a=>o("onImageSizeAdjusted",a)),onOnElementClicked:s[21]||(s[21]=a=>o("onElementClicked",a)),onOnElementRemoved:s[22]||(s[22]=a=>o("onElementRemoved",a)),onOnElementUpdatedEvent:s[23]||(s[23]=a=>o("onElementUpdatedEvent",a))},null,8,["deps","theme","element","context","path","selectedElementPath"])):oe("",!0),n.element.UnsubscribeLink!==void 0?(E(),Q(HHt,{key:8,theme:n.theme,element:n.element.UnsubscribeLink,class:G({"element-selected":N(n1)(n.selectedElementPath,[...n.path,"UnsubscribeLink"])}),onOnElementClicked:s[24]||(s[24]=a=>r(n.element,"UnsubscribeLink"))},null,8,["theme","element","class"])):oe("",!0),n.element.BackgroundImage!==void 0?(E(),Q(lzt,{key:9,deps:n.deps,theme:n.theme,element:n.element.BackgroundImage,context:n.context,path:[...n.path,"BackgroundImage"],selectedElementPath:n.selectedElementPath,class:G({"element-selected":N(n1)(n.selectedElementPath,[...n.path,"BackgroundImage"])}),onOnImageOriginalSizeAdjusted:s[25]||(s[25]=a=>o("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[26]||(s[26]=a=>o("onImageSizeAdjusted",a)),onOnElementClicked:s[27]||(s[27]=a=>o("onElementClicked",a)),onOnElementRemoved:s[28]||(s[28]=a=>o("onElementRemoved",a)),onOnElementUpdatedEvent:s[29]||(s[29]=a=>o("onElementUpdatedEvent",a)),onOnElementWrapperClicked:s[30]||(s[30]=a=>r(n.element,"BackgroundImage"))},null,8,["deps","theme","element","context","path","selectedElementPath","class"])):oe("",!0)]))}}),czt=["align"],uzt=re({__name:"IteratedColumn",props:{deps:{},theme:{},iteratedColumn:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]},containerWidth:{}},emits:["onImageSizeAdjusted","onImageOriginalSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){Cd(i=>({v63736150:r.value}));const n=t,o=e,r=ne(()=>n.iteratedColumn.WidthInPercents*n.containerWidth+"px");return(i,s)=>(E(),R("div",{class:"iterated-column",style:Te({display:"inline-block",verticalAlign:n.iteratedColumn.VerticalAlign})},[b("table",{style:Te([[N(i$)({borderCollapse:n.iteratedColumn.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[b("tbody",null,[b("tr",null,[b("td",{align:N(bf)({containerAlign:n.iteratedColumn.ContainerAlign}),style:Te([[N(cg)({border:n.iteratedColumn.Border,themeColors:n.theme.Colors}),{backgroundColor:N(lc)({color:n.iteratedColumn.BgColor,themeColors:n.theme.Colors})},N(zp)({borderRadius:n.iteratedColumn.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})],{"line-height":"normal"}])},[(E(!0),R(Se,null,At(n.iteratedColumn.Elements,(a,l)=>(E(),Q(Bu,{key:l,deps:n.deps.elementsDeps,theme:n.theme,element:a,context:n.context,path:[...n.path,"Elements",l],selectedElementPath:n.selectedElementPath,onOnElementClicked:s[0]||(s[0]=c=>o("onElementClicked",c)),onOnImageSizeAdjusted:s[1]||(s[1]=c=>o("onImageSizeAdjusted",c)),onOnImageOriginalSizeAdjusted:s[2]||(s[2]=c=>o("onImageOriginalSizeAdjusted",c)),onOnElementUpdatedEvent:s[3]||(s[3]=c=>o("onElementUpdatedEvent",c)),onOnElementRemoved:s[4]||(s[4]=c=>o("onElementRemoved",c))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,czt)])])],4)],4))}}),dzt=ve(uzt,[["__scopeId","data-v-4bdaa248"]]),hzt=["align"],pzt=re({__name:"IteratedColumnN21",props:{deps:{},theme:{},iteratedColumnN21:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]},containerWidth:{}},emits:["onImageSizeAdjusted","onImageOriginalSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){Cd(i=>({v2fbddeb4:r.value}));const n=t,o=e,r=ne(()=>n.iteratedColumnN21.WidthInPercents*n.containerWidth+"px");return(i,s)=>(E(),R("div",{class:"iterated-column__N-2-1",style:Te({display:"inline-block",verticalAlign:n.iteratedColumnN21.VerticalAlign})},[b("table",{style:Te([[N(i$)({borderCollapse:n.iteratedColumnN21.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[b("tbody",null,[b("tr",null,[b("td",{align:N(bf)({containerAlign:n.iteratedColumnN21.ContainerAlign}),style:Te([[N(cg)({border:n.iteratedColumnN21.Border,themeColors:n.theme.Colors}),{backgroundColor:N(lc)({color:n.iteratedColumnN21.BgColor,themeColors:n.theme.Colors})},N(zp)({borderRadius:n.iteratedColumnN21.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})],{"line-height":"normal"}])},[(E(!0),R(Se,null,At(n.iteratedColumnN21.Elements,(a,l)=>(E(),Q(Bu,{key:l,deps:n.deps.elementsDeps,theme:n.theme,element:a,context:n.context,path:[...n.path,"Elements",l],selectedElementPath:n.selectedElementPath,onOnElementClicked:s[0]||(s[0]=c=>o("onElementClicked",c)),onOnImageSizeAdjusted:s[1]||(s[1]=c=>o("onImageSizeAdjusted",c)),onOnImageOriginalSizeAdjusted:s[2]||(s[2]=c=>o("onImageOriginalSizeAdjusted",c)),onOnElementUpdatedEvent:s[3]||(s[3]=c=>o("onElementUpdatedEvent",c)),onOnElementRemoved:s[4]||(s[4]=c=>o("onElementRemoved",c))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,hzt)])])],4)],4))}}),mzt=ve(pzt,[["__scopeId","data-v-b46af162"]]),fzt=["align"],gzt=re({__name:"IteratedColumnN22",props:{deps:{},theme:{},iteratedColumnN22:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]},containerWidth:{}},emits:["onImageSizeAdjusted","onImageOriginalSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){Cd(i=>({v904d8f2c:r.value}));const n=t,o=e,r=ne(()=>n.iteratedColumnN22.WidthInPercents*n.containerWidth+"px");return(i,s)=>(E(),R("div",{class:"iterated-column__N-2-2",style:Te({display:"inline-block",verticalAlign:n.iteratedColumnN22.VerticalAlign})},[b("table",{style:Te([[N(i$)({borderCollapse:n.iteratedColumnN22.BorderCollapse})],{width:"100%","border-spacing":"0"}]),width:"100%"},[b("tbody",null,[b("tr",null,[b("td",{align:N(bf)({containerAlign:n.iteratedColumnN22.ContainerAlign}),style:Te([[N(cg)({border:n.iteratedColumnN22.Border,themeColors:n.theme.Colors}),{backgroundColor:N(lc)({color:n.iteratedColumnN22.BgColor,themeColors:n.theme.Colors})},N(zp)({borderRadius:n.iteratedColumnN22.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner})],{"line-height":"normal"}])},[(E(!0),R(Se,null,At(n.iteratedColumnN22.Elements,(a,l)=>(E(),Q(Bu,{key:l,deps:n.deps.elementsDeps,theme:n.theme,element:a,context:n.context,path:[...n.path,"Elements",l],selectedElementPath:n.selectedElementPath,onOnElementClicked:s[0]||(s[0]=c=>o("onElementClicked",c)),onOnImageSizeAdjusted:s[1]||(s[1]=c=>o("onImageSizeAdjusted",c)),onOnImageOriginalSizeAdjusted:s[2]||(s[2]=c=>o("onImageOriginalSizeAdjusted",c)),onOnElementUpdatedEvent:s[3]||(s[3]=c=>o("onElementUpdatedEvent",c)),onOnElementRemoved:s[4]||(s[4]=c=>o("onElementRemoved",c))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,fzt)])])],4)],4))}}),yzt=ve(gzt,[["__scopeId","data-v-319c5209"]]),Czt={class:"iterated-column-container",style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"},width:"100%"},bzt={align:"center",style:{"font-size":"0"}},vzt=re({__name:"IteratedColumnBodyRow",props:{deps:{},theme:{},iteratedColumnBodyRow:{},path:{},selectedElementPath:{},context:{},rowWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){Cd(l=>({a80c0c96:i.value}));const n=t,o=Le({dataList:[],isLoaded:!1}),r=()=>n.deps.listExpressionEvaluator({listExpression:n.iteratedColumnBodyRow.DataSource,context:n.context}).then(l=>{o.dataList=l,o.isLoaded=!0});r(),on(()=>n.context,()=>r());const i=ne(()=>Jr({paddingExpression:n.iteratedColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})+"px"),s={iteratedColumn:l=>l!==void 0,iteratedColumnVariant:l=>l!==void 0,iteratedColumnN21:l=>l!==void 0,iteratedColumnN22:l=>l!==void 0},a=e;return(l,c)=>(E(),R("table",Czt,[b("tbody",null,[b("tr",null,[b("td",bzt,[(E(!0),R(Se,null,At(o.dataList,(u,d)=>(E(),R(Se,{key:d},[s.iteratedColumn(n.iteratedColumnBodyRow.IteratedColumn)?(E(),Q(dzt,{key:d,class:G(["iterated-column-bottom-spacer",{"iterated-column__tablet-padding-right":(d+1)%2===1,"iterated-column__tablet-padding-left":(d+1)%2===0,"is-last-desktop-line":d>=o.dataList.length-n.iteratedColumnBodyRow.NumberColumnsInLine,"is-last-tablet-line":d>=o.dataList.length-2,"is-last-mobile-line":d==o.dataList.length-1}]),deps:n.deps.iteratedColumnDeps,theme:n.theme,style:Te(N(V6)({numberColumnsInLine:n.iteratedColumnBodyRow.NumberColumnsInLine,index:d,paddingSize:N(Jr)({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]:u},containerWidth:n.rowWidth,onOnElementClicked:c[0]||(c[0]=h=>a("onElementClicked",h)),onOnImageOriginalSizeAdjusted:c[1]||(c[1]=h=>a("onImageOriginalSizeAdjusted",h)),onOnImageSizeAdjusted:c[2]||(c[2]=h=>a("onImageSizeAdjusted",h)),onOnElementUpdatedEvent:c[3]||(c[3]=h=>a("onElementUpdatedEvent",h)),onOnElementRemoved:c[4]||(c[4]=h=>a("onElementRemoved",h))},null,8,["deps","theme","class","style","iteratedColumn","path","selectedElementPath","context","containerWidth"])):oe("",!0),s.iteratedColumnVariant(n.iteratedColumnBodyRow.IteratedColumnVariant)?(E(),R(Se,{key:1},[s.iteratedColumnN21(n.iteratedColumnBodyRow.IteratedColumnVariant.IteratedColumnN21)?(E(),Q(mzt,{key:d,deps:n.deps.iteratedColumnVariantDeps.iteratedColumnN21Deps,theme:n.theme,class:G(["iterated-column-bottom-spacer",{"iterated-column__tablet-padding-right":(d+1)%2===1,"iterated-column__tablet-padding-left":(d+1)%2===0,"is-last-desktop-line":d>=o.dataList.length-n.iteratedColumnBodyRow.NumberColumnsInLine,"is-last-tablet-line":d>=o.dataList.length-2,"is-last-mobile-line":d==o.dataList.length-1}]),style:Te(N(V6)({numberColumnsInLine:n.iteratedColumnBodyRow.NumberColumnsInLine,index:d,paddingSize:N(Jr)({paddingExpression:n.iteratedColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),directionRtl:!1})),iteratedColumnN21:n.iteratedColumnBodyRow.IteratedColumnVariant.IteratedColumnN21,path:[...n.path,"IteratedColumnVariant","IteratedColumnN21"],selectedElementPath:n.selectedElementPath,context:{...n.context,[n.iteratedColumnBodyRow.IndexName]:u},containerWidth:n.rowWidth,onOnElementClicked:c[5]||(c[5]=h=>a("onElementClicked",h)),onOnImageOriginalSizeAdjusted:c[6]||(c[6]=h=>a("onImageOriginalSizeAdjusted",h)),onOnImageSizeAdjusted:c[7]||(c[7]=h=>a("onImageSizeAdjusted",h)),onOnElementUpdatedEvent:c[8]||(c[8]=h=>a("onElementUpdatedEvent",h)),onOnElementRemoved:c[9]||(c[9]=h=>a("onElementRemoved",h))},null,8,["deps","theme","class","style","iteratedColumnN21","path","selectedElementPath","context","containerWidth"])):oe("",!0),s.iteratedColumnN22(n.iteratedColumnBodyRow.IteratedColumnVariant.IteratedColumnN22)?(E(),Q(yzt,{key:d,deps:n.deps.iteratedColumnVariantDeps.iteratedColumnN22Deps,theme:n.theme,class:G(["iterated-column-bottom-spacer",{"iterated-column__tablet-padding-right iterated-column__N-2-2_mobile-padding-right":(d+1)%2===1,"iterated-column__tablet-padding-left iterated-column__N-2-2_mobile-padding-left":(d+1)%2===0,"is-last-desktop-line":d>=o.dataList.length-n.iteratedColumnBodyRow.NumberColumnsInLine,"is-last-tablet-line is-last-mobile-line":d>=o.dataList.length-2}]),style:Te(N(V6)({numberColumnsInLine:n.iteratedColumnBodyRow.NumberColumnsInLine,index:d,paddingSize:N(Jr)({paddingExpression:n.iteratedColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),directionRtl:!1})),iteratedColumnN22:n.iteratedColumnBodyRow.IteratedColumnVariant.IteratedColumnN22,path:[...n.path,"IteratedColumnVariant","IteratedColumnN22"],selectedElementPath:n.selectedElementPath,context:{...n.context,[n.iteratedColumnBodyRow.IndexName]:u},containerWidth:n.rowWidth,onOnElementClicked:c[10]||(c[10]=h=>a("onElementClicked",h)),onOnImageOriginalSizeAdjusted:c[11]||(c[11]=h=>a("onImageOriginalSizeAdjusted",h)),onOnImageSizeAdjusted:c[12]||(c[12]=h=>a("onImageSizeAdjusted",h)),onOnElementUpdatedEvent:c[13]||(c[13]=h=>a("onElementUpdatedEvent",h)),onOnElementRemoved:c[14]||(c[14]=h=>a("onElementRemoved",h))},null,8,["deps","theme","class","style","iteratedColumnN22","path","selectedElementPath","context","containerWidth"])):oe("",!0)],64)):oe("",!0)],64))),128))])])])]))}}),wzt=ve(vzt,[["__scopeId","data-v-69ed8d34"]]),Szt={style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"}},xzt=re({__name:"IteratedBodyRow",props:{theme:{},deps:{},iteratedBodyRow:{},path:{},selectedElementPath:{},context:{},containerWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=Le({dataList:[]});n.deps.listExpressionEvaluator({listExpression:n.iteratedBodyRow.DataSource,context:n.context}).then(i=>o.dataList=i);const r=e;return(i,s)=>(E(),R("table",Szt,[(E(!0),R(Se,null,At(o.dataList,(a,l)=>(E(),R("tr",{key:l},[b("td",{style:Te([N(s$)({paddings:n.iteratedBodyRow.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})])},[I(_9e,{emailComponentBodyRow:n.iteratedBodyRow.BodyRow,deps:{iteratedColumnBodyRowDeps:n.deps.iteratedColumnBodyRowDeps,multipleColumnBodyRowDeps:n.deps.multipleColumnBodyRowDeps,simpleBodyRowDeps:n.deps.simpleBodyRowDeps,listExpressionEvaluator:n.deps.listExpressionEvaluator},theme:n.theme,context:{...n.context,[n.iteratedBodyRow.IndexName]:a},rowWidth:n.containerWidth,path:[...n.path,"BodyRow"],selectedElementPath:n.selectedElementPath,onOnElementClicked:s[0]||(s[0]=c=>r("onElementClicked",c)),onOnImageOriginalSizeAdjusted:s[1]||(s[1]=c=>r("onImageOriginalSizeAdjusted",c)),onOnImageSizeAdjusted:s[2]||(s[2]=c=>r("onImageSizeAdjusted",c)),onOnColumnWidthAdjusted:s[3]||(s[3]=c=>r("onColumnWidthAdjusted",c)),onOnElementUpdatedEvent:s[4]||(s[4]=c=>r("onElementUpdatedEvent",c)),onOnElementRemoved:s[5]||(s[5]=c=>r("onElementRemoved",c))},null,8,["emailComponentBodyRow","deps","theme","context","rowWidth","path","selectedElementPath"])],4)]))),128))]))}}),Tzt=t=>({Match:e=>{switch(t){case"Top":return e.Top();case"Middle":return e.Middle();case"Bottom":return e.Bottom();case"Baseline":return e.Baseline()}}}),kzt=t=>Tzt(t).Match({Top:()=>"start",Middle:()=>"center",Bottom:()=>"end",Baseline:()=>"baseline"}),Fzt=hs,Ezt=t=>({JustifyWidth:{WidthInPixels:t}}),Lzt=t=>({ShrinkToContentWidth:{WidthInPixels:t}}),_zt=RPt,Azt=["align"],Rzt=re({__name:"MultipleColumn",props:{deps:{},theme:{},multipleColumn:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]},containerWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){Cd(l=>({acad954c:a.value,v1971599c:s.value,v72b8524e:i.value}));const n=t,o=e,r=l=>{Fzt(n.multipleColumn.Width).Match({JustifyWidth:()=>L0.Some(Ezt(l)),ShrinkToContentWidth:()=>L0.Some(Lzt(l)),WidthInPercents:()=>L0.None}).map(c=>o("onColumnWidthAdjusted",{Path:n.path,Width:c}))},i=ne(()=>_zt(n.multipleColumn.Width).Match({default:()=>"",WidthInPercents:l=>l.Value*n.containerWidth+"px"})),s=ne(()=>kzt(n.multipleColumn.VerticalAlign)),a=ne(()=>n.multipleColumn.VerticalAlign);return(l,c)=>Ke((E(),R("div",{class:G(["multiple-column",{"multiple-column--justifyWidth":n.multipleColumn.Width.JustifyWidth!==void 0,"multiple-column--shrinkToContentWidth":n.multipleColumn.Width.ShrinkToContentWidth!==void 0,"multiple-column--widthInPercents":n.multipleColumn.Width.WidthInPercents!==void 0}]),style:{direction:"ltr"}},[b("table",{style:Te([{width:"100%","border-spacing":"0"},[N(i$)({borderCollapse:n.multipleColumn.BorderCollapse})]]),width:"100%"},[b("tbody",null,[b("tr",null,[b("td",{align:N(bf)({containerAlign:n.multipleColumn.ContainerAlign}),style:Te([[N(cg)({border:n.multipleColumn.Border,themeColors:n.theme.Colors}),N(zp)({borderRadius:n.multipleColumn.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:N(lc)({color:n.multipleColumn.BgColor,themeColors:n.theme.Colors})},N(s$)({paddings:n.multipleColumn.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})],{"line-height":"normal"}])},[(E(!0),R(Se,null,At(n.multipleColumn.Elements,(u,d)=>(E(),Q(Bu,{key:d,deps:n.deps.elementsDeps,theme:n.theme,element:u,context:n.context,path:[...n.path,"Elements",d],selectedElementPath:n.selectedElementPath,onOnElementClicked:c[0]||(c[0]=h=>o("onElementClicked",h)),onOnImageSizeAdjusted:c[1]||(c[1]=h=>o("onImageSizeAdjusted",h)),onOnImageOriginalSizeAdjusted:c[2]||(c[2]=h=>o("onImageOriginalSizeAdjusted",h)),onOnElementUpdatedEvent:c[3]||(c[3]=h=>o("onElementUpdatedEvent",h)),onOnElementRemoved:c[4]||(c[4]=h=>o("onElementRemoved",h))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))],12,Azt)])])],4)],2)),[[N(jw),u=>r(u.width)]])}}),Dzt=ve(Rzt,[["__scopeId","data-v-bfa1869f"]]),Bzt=re({__name:"MultipleColumnBodyRow",props:{deps:{},theme:{},multipleColumnBodyRow:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]},rowWidth:{}},emits:["onElementClicked","onImageSizeAdjusted","onImageOriginalSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){Cd(i=>({v36e68443:r.value}));const n=t,o=e,r=ne(()=>Jr({paddingExpression:n.multipleColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})+"px");return(i,s)=>(E(),R("table",{class:"multiple-column-container",style:Te([[N(i$)({borderCollapse:n.multipleColumnBodyRow.BorderCollapse}),N(cg)({border:n.multipleColumnBodyRow.Border,themeColors:n.theme.Colors}),N(zp)({borderRadius:n.multipleColumnBodyRow.BorderRadius,borderRadiusCard:n.theme.BorderRadiusCard,bodyBorderRadius:n.theme.BorderRadius,borderButtonRadius:n.theme.BorderRadiusButton,borderBannerRadius:n.theme.BorderRadiusBanner}),{backgroundColor:N(lc)({color:n.multipleColumnBodyRow.BgColor,themeColors:n.theme.Colors})}],{"border-spacing":"0",width:"100%",margin:"0 auto"}]),width:"100%"},[b("tbody",null,[b("tr",null,[b("td",{class:"multiple-column-container__inner",style:Te([{"font-size":"0"},[N(VPt)({containerAlign:n.multipleColumnBodyRow.ContainerAlign}),N(s$)({paddings:n.multipleColumnBodyRow.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),n.multipleColumnBodyRow.DirectionRtl?{direction:"rtl"}:{direction:"ltr"}]])},[(E(!0),R(Se,null,At(n.multipleColumnBodyRow.Columns,(a,l)=>(E(),Q(Dzt,{key:l,deps:n.deps.multipleColumnDeps,theme:n.theme,multipleColumn:a,path:[...n.path,"Columns",l],selectedElementPath:n.selectedElementPath,context:n.context,containerWidth:n.rowWidth-N(Jr)({paddingExpression:n.multipleColumnBodyRow.Paddings.Left,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})-N(Jr)({paddingExpression:n.multipleColumnBodyRow.Paddings.Right,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings})-n.multipleColumnBodyRow.Border.Left.Width-n.multipleColumnBodyRow.Border.Right.Width,style:Te(N(V6)({numberColumnsInLine:n.multipleColumnBodyRow.Columns.length,index:l,paddingSize:N(Jr)({paddingExpression:n.multipleColumnBodyRow.ColumnSpacerSize,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings}),directionRtl:n.multipleColumnBodyRow.DirectionRtl})),class:G({"is-last-tablet-line":l==n.multipleColumnBodyRow.Columns.length-1,"is-last-mobile-line":l==n.multipleColumnBodyRow.Columns.length-1}),onOnElementClicked:s[0]||(s[0]=c=>o("onElementClicked",c)),onOnColumnWidthAdjusted:s[1]||(s[1]=c=>o("onColumnWidthAdjusted",c)),onOnImageSizeAdjusted:s[2]||(s[2]=c=>o("onImageSizeAdjusted",c)),onOnImageOriginalSizeAdjusted:s[3]||(s[3]=c=>o("onImageOriginalSizeAdjusted",c)),onOnElementUpdatedEvent:s[4]||(s[4]=c=>o("onElementUpdatedEvent",c)),onOnElementRemoved:s[5]||(s[5]=c=>o("onElementRemoved",c))},null,8,["deps","theme","multipleColumn","path","selectedElementPath","context","containerWidth","style","class"]))),128))],4)])])],4))}}),Nzt=ve(Bzt,[["__scopeId","data-v-c6ebdc94"]]),Izt=re({__name:"SimpleBodyRow",props:{deps:{},theme:{},simpleBodyRow:{},path:{},selectedElementPath:{},context:{type:[String,Number,Boolean,Array,Object]}},emits:["onImageSizeAdjusted","onImageOriginalSizeAdjusted","onElementClicked","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(!0),R(Se,null,At(n.simpleBodyRow.Elements,(s,a)=>(E(),Q(Bu,{key:a,deps:n.deps.elementsDeps,theme:n.theme,element:s,context:n.context,path:[...n.path,"Elements",a],selectedElementPath:n.selectedElementPath,onOnElementClicked:i[0]||(i[0]=l=>o("onElementClicked",l)),onOnImageSizeAdjusted:i[1]||(i[1]=l=>o("onImageSizeAdjusted",l)),onOnImageOriginalSizeAdjusted:i[2]||(i[2]=l=>o("onImageOriginalSizeAdjusted",l)),onOnElementUpdatedEvent:i[3]||(i[3]=l=>o("onElementUpdatedEvent",l)),onOnElementRemoved:i[4]||(i[4]=l=>o("onElementRemoved",l))},null,8,["deps","theme","element","context","path","selectedElementPath"]))),128))}}),_9e=re({__name:"EmailComponentBodyRow",props:{deps:{},theme:{},emailComponentBodyRow:{},path:{},selectedElementPath:{},context:{},rowWidth:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o={multipleColumns:i=>i!==void 0,iteratedColumns:i=>i!==void 0,iteratedBodyRow:i=>i!==void 0,simpleBodyRow:i=>i!==void 0},r=e;return(i,s)=>(E(),R("div",null,[o.multipleColumns(n.emailComponentBodyRow.MultipleColumnBodyRow)?(E(),Q(Nzt,{key:0,deps:n.deps.multipleColumnBodyRowDeps,theme:n.theme,multipleColumnBodyRow:n.emailComponentBodyRow.MultipleColumnBodyRow,path:[...n.path,"MultipleColumnBodyRow"],selectedElementPath:n.selectedElementPath,context:t.context,rowWidth:n.rowWidth,onOnColumnWidthAdjusted:s[0]||(s[0]=a=>r("onColumnWidthAdjusted",a)),onOnImageOriginalSizeAdjusted:s[1]||(s[1]=a=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[2]||(s[2]=a=>r("onImageSizeAdjusted",a)),onOnElementClicked:s[3]||(s[3]=a=>r("onElementClicked",a)),onOnElementUpdatedEvent:s[4]||(s[4]=a=>r("onElementUpdatedEvent",a)),onOnElementRemoved:s[5]||(s[5]=a=>r("onElementRemoved",a))},null,8,["deps","theme","multipleColumnBodyRow","path","selectedElementPath","context","rowWidth"])):oe("",!0),o.iteratedColumns(n.emailComponentBodyRow.IteratedColumnBodyRow)?(E(),Q(wzt,{key:1,deps:n.deps.iteratedColumnBodyRowDeps,theme:n.theme,iteratedColumnBodyRow:n.emailComponentBodyRow.IteratedColumnBodyRow,path:[...n.path,"IteratedColumnBodyRow"],selectedElementPath:n.selectedElementPath,context:t.context,rowWidth:n.rowWidth,onOnElementClicked:s[6]||(s[6]=a=>r("onElementClicked",a)),onOnImageOriginalSizeAdjusted:s[7]||(s[7]=a=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[8]||(s[8]=a=>r("onImageSizeAdjusted",a)),onOnElementUpdatedEvent:s[9]||(s[9]=a=>r("onElementUpdatedEvent",a)),onOnElementRemoved:s[10]||(s[10]=a=>r("onElementRemoved",a))},null,8,["deps","theme","iteratedColumnBodyRow","path","selectedElementPath","context","rowWidth"])):oe("",!0),o.iteratedBodyRow(n.emailComponentBodyRow.IteratedBodyRow)?(E(),Q(xzt,{key:2,deps:{iteratedColumnBodyRowDeps:n.deps.iteratedColumnBodyRowDeps,multipleColumnBodyRowDeps:n.deps.multipleColumnBodyRowDeps,simpleBodyRowDeps:n.deps.simpleBodyRowDeps,listExpressionEvaluator:n.deps.listExpressionEvaluator},theme:n.theme,iteratedBodyRow:n.emailComponentBodyRow.IteratedBodyRow,path:[...n.path,"IteratedBodyRow"],selectedElementPath:n.selectedElementPath,context:t.context,containerWidth:n.rowWidth,onOnElementClicked:s[11]||(s[11]=a=>r("onElementClicked",a)),onOnImageOriginalSizeAdjusted:s[12]||(s[12]=a=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[13]||(s[13]=a=>r("onImageSizeAdjusted",a)),onOnElementUpdatedEvent:s[14]||(s[14]=a=>r("onElementUpdatedEvent",a)),onOnElementRemoved:s[15]||(s[15]=a=>r("onElementRemoved",a))},null,8,["deps","theme","iteratedBodyRow","path","selectedElementPath","context","containerWidth"])):oe("",!0),o.simpleBodyRow(n.emailComponentBodyRow.SimpleBodyRow)?(E(),Q(Izt,{key:3,deps:n.deps.simpleBodyRowDeps,theme:n.theme,simpleBodyRow:n.emailComponentBodyRow.SimpleBodyRow,path:[...n.path,"SimpleBodyRow"],selectedElementPath:n.selectedElementPath,context:t.context,onOnElementClicked:s[16]||(s[16]=a=>r("onElementClicked",a)),onOnImageOriginalSizeAdjusted:s[17]||(s[17]=a=>r("onImageOriginalSizeAdjusted",a)),onOnImageSizeAdjusted:s[18]||(s[18]=a=>r("onImageSizeAdjusted",a)),onOnElementUpdatedEvent:s[19]||(s[19]=a=>r("onElementUpdatedEvent",a)),onOnElementRemoved:s[20]||(s[20]=a=>r("onElementRemoved",a))},null,8,["deps","theme","simpleBodyRow","path","selectedElementPath","context"])):oe("",!0)]))}}),Mzt={emptyEmailComponentText:"Product shelf is hidden due to insufficient products",emptyEmailComponentTooltip:"The product shelf won't be displayed to recipients until it contains enough products",requiredComponentNotification:"Without this component the letter will not be sent"},$zt={emptyEmailComponentText:"Товарная полка скрыта из-за недостатка товаров",emptyEmailComponentTooltip:"Товарная полка не будет отображаться у получателей письма пока в ней недостаточно товаров",requiredComponentNotification:"Без этого компонента письмо не будет отправлено"},IY=ht({en:Mzt,ru:$zt}),Ozt={},Pzt={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Vzt(t,e){return E(),R("svg",Pzt,[...e[0]||(e[0]=[b("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)"},null,-1)])])}const A9e=ve(Ozt,[["render",Vzt]]),Wzt={key:0},Hzt={key:0,class:"is-required-notification"},zzt={class:"bootstrap-styles w-100 d-flex justify-content-center gap-5"},jzt=re({__name:"EmailComponent",props:{deps:{},theme:{},emailComponent:{},path:{},selectedElementPath:{}},emits:["onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onColumnWidthAdjusted","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o=Le({context:{},ifResult:!n.emailComponent.ContextBuilderExpression,isLoaded:!1}),r={emptyEmailComponentText:IY({localeKey:n.deps.localeKey}).emptyEmailComponentText,emptyEmailComponentTooltip:IY({localeKey:n.deps.localeKey}).emptyEmailComponentTooltip,requiredComponentNotification:IY({localeKey:n.deps.localeKey}).requiredComponentNotification},i=a=>{o.isLoaded=!1,n.deps.dataStructExpressionEvaluator({dataStructBuilderExpression:a,context:{}}).then(l=>{(n.emailComponent.IfExpression?n.deps.boolExpressionEvaluatorDelegate({boolExpression:n.emailComponent.IfExpression,context:l}):Promise.resolve(!0)).then(c=>{o.context=l,o.ifResult=c,o.isLoaded=!0})})};on(()=>n.emailComponent.ContextBuilderExpression,a=>{a&&i(a)});const s=e;return n.emailComponent.ContextBuilderExpression?i(n.emailComponent.ContextBuilderExpression):o.isLoaded=!0,(a,l)=>o.isLoaded?(E(),R("div",Wzt,[n.emailComponent.IsRequired?(E(),R("div",Hzt,[b("i",null,[I(A9e)]),b("span",null," "+W(r.requiredComponentNotification),1)])):oe("",!0),o.ifResult?(E(),R("table",{key:1,style:Te([[{backgroundColor:N(lc)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})},N(zp)({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"}],{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"}])},[b("tbody",null,[b("tr",null,[b("td",{class:"row__inner",style:Te([N(dke)({paddings:n.emailComponent.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings,fullWidth:n.emailComponent.FullWidth})])},[(E(!0),R(Se,null,At(n.emailComponent.BodyRowList,(c,u)=>(E(),Q(_9e,{key:u,deps:n.deps.emailComponentBodyRowDeps,theme:n.theme,emailComponentBodyRow:c,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",u],selectedElementPath:n.selectedElementPath,onOnElementClicked:l[0]||(l[0]=d=>s("onElementClicked",d)),onOnImageSizeAdjusted:l[1]||(l[1]=d=>s("onImageSizeAdjusted",d)),onOnImageOriginalSizeAdjusted:l[2]||(l[2]=d=>s("onImageOriginalSizeAdjusted",d)),onOnColumnWidthAdjusted:l[3]||(l[3]=d=>s("onColumnWidthAdjusted",d)),onOnElementUpdatedEvent:l[4]||(l[4]=d=>s("onElementUpdatedEvent",d)),onOnElementRemoved:l[5]||(l[5]=d=>s("onElementRemoved",d))},null,8,["deps","theme","emailComponentBodyRow","context","rowWidth","path","selectedElementPath"]))),128))],4)])])],4)):(E(),R("div",{key:2,class:G(["empty-email-component",{"is-required-component__paddings":n.emailComponent.IsRequired}])},[no(W(r.emptyEmailComponentText)+" ",1),Ke((E(),R("i",null,[...l[6]||(l[6]=[b("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("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)])])),[[N(Xn),{placement:"top",title:r.emptyEmailComponentTooltip}]])],2))])):(E(),R("div",{key:1,class:"bootstrap-styles w-100",style:Te([N(dke)({paddings:n.emailComponent.Paddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyPaddings:n.theme.BodyPaddings,fullWidth:n.emailComponent.FullWidth}),{backgroundColor:N(lc)({color:n.emailComponent.InnerBgColor,themeColors:n.theme.Colors})||"transparent"}])},[I(N(Kw),{type:"text"}),b("div",zzt,[(E(),R(Se,null,At(3,c=>I(N(Kw),{key:c,type:"image, text, text, text, button",style:{width:"100%"}})),64))])],4))}}),rI=ve(jzt,[["__scopeId","data-v-5ef33b53"]]),Kzt={};function Uzt(t,e){return e[0]||(e[0]=kg('<i class="icon-hover" data-v-7a380949><svg class="icon-hover" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" data-v-7a380949><path d="M9.16699 9.16675V5.83342H10.8337V9.16675H14.167V10.8334H10.8337V14.1667H9.16699V10.8334H5.83366V9.16675H9.16699ZM10.0003 18.3334C5.39795 18.3334 1.66699 14.6024 1.66699 10.0001C1.66699 5.39771 5.39795 1.66675 10.0003 1.66675C14.6027 1.66675 18.3337 5.39771 18.3337 10.0001C18.3337 14.6024 14.6027 18.3334 10.0003 18.3334ZM10.0003 16.6667C13.6822 16.6667 16.667 13.682 16.667 10.0001C16.667 6.31818 13.6822 3.33341 10.0003 3.33341C6.31843 3.33341 3.33366 6.31818 3.33366 10.0001C3.33366 13.682 6.31843 16.6667 10.0003 16.6667Z" fill="black" data-v-7a380949></path></svg></i><i class="icon-hover active-icon-stroke" data-v-7a380949><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18" fill="none" data-v-7a380949><path d="M8.99984 17.3334C4.39746 17.3334 0.666504 13.6024 0.666504 9.00008C0.666504 4.39771 4.39746 0.666748 8.99984 0.666748C13.6022 0.666748 17.3332 4.39771 17.3332 9.00008C17.3332 13.6024 13.6022 17.3334 8.99984 17.3334ZM8.1665 8.16675H4.83317V9.83342H8.1665V13.1667H9.83317V9.83342H13.1665V8.16675H9.83317V4.83342H8.1665V8.16675Z" fill="white" data-v-7a380949></path></svg></i>',2))}const qzt=ve(Kzt,[["render",Uzt],["__scopeId","data-v-7a380949"]]),Jzt={};function Gzt(t,e){return e[0]||(e[0]=kg('<i class="icon-hover" data-v-2c8ff42e><svg class="icon-hover" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" data-v-2c8ff42e><path d="M16.0236 15.6101L17.4967 14.137L18.9698 15.6101C19.7834 16.4237 19.7834 17.7428 18.9698 18.5564C18.1562 19.37 16.8372 19.37 16.0236 18.5564C15.21 17.7428 15.21 16.4237 16.0236 15.6101ZM7.39933 0.899658L16.8274 10.3278C17.1528 10.6532 17.1528 11.1808 16.8274 11.5063L9.75632 18.5773C9.4309 18.9028 8.90324 18.9028 8.57782 18.5773L1.50677 11.5063C1.18134 11.1808 1.18134 10.6532 1.50677 10.3278L7.98859 3.84593L6.22082 2.07817L7.39933 0.899658ZM9.16707 5.02445L3.27454 10.917L9.16707 16.8096L15.0597 10.917L9.16707 5.02445Z" fill="black" data-v-2c8ff42e></path></svg></i><i class="icon-hover active-icon-stroke" data-v-2c8ff42e><svg xmlns="http://www.w3.org/2000/svg" width="19" height="20" viewBox="0 0 19 20" fill="none" data-v-2c8ff42e><path d="M15.0231 15.6101L16.4963 14.137L17.9693 15.6101C18.7829 16.4237 18.7829 17.7428 17.9693 18.5564C17.1558 19.37 15.8367 19.37 15.0231 18.5564C14.2095 17.7428 14.2095 16.4237 15.0231 15.6101ZM6.39884 0.899658L15.8269 10.3278C16.1523 10.6532 16.1523 11.1808 15.8269 11.5063L8.75583 18.5773C8.43042 18.9028 7.90275 18.9028 7.57733 18.5773L0.506282 11.5063C0.180849 11.1808 0.180849 10.6532 0.506282 10.3278L6.9881 3.84593L5.22033 2.07817L6.39884 0.899658ZM8.16658 5.02445L2.27405 10.917H14.0592L8.16658 5.02445Z" fill="white" data-v-2c8ff42e></path></svg></i>',2))}const Yzt=ve(Jzt,[["render",Gzt],["__scopeId","data-v-2c8ff42e"]]),Zzt={};function Xzt(t,e){return e[0]||(e[0]=kg('<i class="icon-hover" data-v-64536d3f><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" data-v-64536d3f><path d="M10 0C15.5222 0 20 3.97778 20 8.8889C20 11.9556 17.5111 14.4444 14.4444 14.4444H12.4778C11.5556 14.4444 10.8111 15.1889 10.8111 16.1111C10.8111 16.5333 10.9778 16.9222 11.2333 17.2111C11.5 17.5111 11.6667 17.9 11.6667 18.3333C11.6667 19.2556 10.9 20 10 20C4.47778 20 0 15.5222 0 10C0 4.47778 4.47778 0 10 0ZM8.8111 16.1111C8.8111 14.0843 10.451 12.4444 12.4778 12.4444H14.4444C16.4065 12.4444 18 10.851 18 8.8889C18 5.1392 14.4677 2 10 2C5.58235 2 2 5.58235 2 10C2 14.19 5.2226 17.6285 9.324 17.9718C8.9948 17.4168 8.8111 16.7761 8.8111 16.1111ZM5.5 10C4.67157 10 4 9.3284 4 8.5C4 7.67157 4.67157 7 5.5 7C6.32843 7 7 7.67157 7 8.5C7 9.3284 6.32843 10 5.5 10ZM14.5 10C13.6716 10 13 9.3284 13 8.5C13 7.67157 13.6716 7 14.5 7C15.3284 7 16 7.67157 16 8.5C16 9.3284 15.3284 10 14.5 10ZM10 7C9.1716 7 8.5 6.32843 8.5 5.5C8.5 4.67157 9.1716 4 10 4C10.8284 4 11.5 4.67157 11.5 5.5C11.5 6.32843 10.8284 7 10 7Z" fill="black" data-v-64536d3f></path></svg></i><i class="icon-hover active-icon-stroke" data-v-64536d3f><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" data-v-64536d3f><path d="M10 0C15.5222 0 20 3.97778 20 8.8889C20 11.9556 17.5111 14.4444 14.4444 14.4444H12.4778C11.5556 14.4444 10.8111 15.1889 10.8111 16.1111C10.8111 16.5333 10.9778 16.9222 11.2333 17.2111C11.5 17.5111 11.6667 17.9 11.6667 18.3333C11.6667 19.2556 10.9 20 10 20C4.47778 20 0 15.5222 0 10C0 4.47778 4.47778 0 10 0ZM5.5 10C6.32843 10 7 9.3284 7 8.5C7 7.67157 6.32843 7 5.5 7C4.67157 7 4 7.67157 4 8.5C4 9.3284 4.67157 10 5.5 10ZM14.5 10C15.3284 10 16 9.3284 16 8.5C16 7.67157 15.3284 7 14.5 7C13.6716 7 13 7.67157 13 8.5C13 9.3284 13.6716 10 14.5 10ZM10 7C10.8284 7 11.5 6.32843 11.5 5.5C11.5 4.67157 10.8284 4 10 4C9.1716 4 8.5 4.67157 8.5 5.5C8.5 6.32843 9.1716 7 10 7Z" fill="white" data-v-64536d3f></path></svg></i>',2))}const Qzt=ve(Zzt,[["render",Xzt],["__scopeId","data-v-64536d3f"]]),ejt={},tjt={xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none"};function njt(t,e){return E(),R("svg",tjt,[...e[0]||(e[0]=[b("path",{class:"exit-icon-body-path",d:"M0 12C0 5.37258 5.37258 0 12 0H28C34.6274 0 40 5.37258 40 12V28C40 34.6274 34.6274 40 28 40H12C5.37258 40 0 34.6274 0 28V12Z",fill:"var(--red-400)"},null,-1),b("path",{d:"M13.3333 25H15V26.6667H25V13.3334H15V15H13.3333V12.5C13.3333 12.0398 13.7064 11.6667 14.1666 11.6667H25.8333C26.2936 11.6667 26.6666 12.0398 26.6666 12.5V27.5C26.6666 27.9603 26.2936 28.3334 25.8333 28.3334H14.1666C13.7064 28.3334 13.3333 27.9603 13.3333 27.5V25ZM15 19.1667H20.8333V20.8334H15V23.3334L10.8333 20L15 16.6667V19.1667Z",fill:"var(--white)"},null,-1)])])}const ojt=ve(ejt,[["render",njt],["__scopeId","data-v-807017e0"]]),rjt={},ijt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function sjt(t,e){return E(),R("svg",ijt,[...e[0]||(e[0]=[b("path",{d:"M7 11L10 8L7 5",stroke:"#C1C1C1","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])}const NU=ve(rjt,[["render",sjt],["__scopeId","data-v-6aa1d5b7"]]),ajt=["checked"],ljt=re({__name:"Checkbox",props:{checked:{type:Boolean}},emits:["change"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("input",{class:"bootstrap-styles me-1 cursor-pointer",checked:n.checked,type:"checkbox","aria-label":"Checkbox for following text input",onChange:i[0]||(i[0]=s=>o("change"))},null,40,ajt))}}),th=ve(ljt,[["__scopeId","data-v-6a8c2252"]]),cjt={},ujt={class:"bootstrap-styles d-flex justify-content-center align-items-center icon-fill icon-loading"};function djt(t,e){return E(),R("i",ujt,[...e[0]||(e[0]=[b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 16",fill:"none"},[b("path",{d:"M12.2427 3.75736L11.2998 4.70017C10.4553 3.85567 9.28867 3.33333 8 3.33333C5.42267 3.33333 3.33333 5.42267 3.33333 8C3.33333 10.5773 5.42267 12.6667 8 12.6667C10.5773 12.6667 12.6667 10.5773 12.6667 8H14C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C9.65687 2 11.1569 2.67157 12.2427 3.75736Z",fill:"white"})],-1)])])}const GC=ve(cjt,[["render",djt],["__scopeId","data-v-c3fea24e"]]),hjt={title:"New section",inputLabel:"Name",inputPlaceholder:"Section name...",cancelButton:"Cancel",applyButton:"Save"},pjt={title:"Новая секция",inputLabel:"Название",inputPlaceholder:"Название секции...",cancelButton:"Отмена",applyButton:"Сохранить"},G_=ht({en:hjt,ru:pjt}),mjt={class:"bootstrap-styles fw-bold mb-5"},fjt={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},gjt=["placeholder","disabled"],yjt=re({__name:"CreateThemeLibrarySectionModalWindow",props:{deps:{}},emits:["onCanceled","onThemeLibrarySectionCreated"],setup(t,{emit:e}){const n=t,o={title:G_({localeKey:n.deps.localeKey}).title,inputLabel:G_({localeKey:n.deps.localeKey}).inputLabel,inputPlaceholder:G_({localeKey:n.deps.localeKey}).inputPlaceholder,cancelButton:G_({localeKey:n.deps.localeKey}).cancelButton,applyButton:G_({localeKey:n.deps.localeKey}).applyButton},r=Le({isDropdownMenuShown:!1,sectionName:"",isLoaded:!0}),i=async()=>{r.sectionName.length!==0&&(r.isLoaded=!1,await n.deps.createThemeLibrarySection({sectionName:r.sectionName}),a("onThemeLibrarySectionCreated"))},s=()=>{a("onCanceled")},a=e;return(l,c)=>(E(),Q(bd,{headerText:o.title,onClose:c[4]||(c[4]=()=>s())},{body:Bt(()=>[b("div",{class:"bootstrap-styles px-11 py-7 text-start",onClick:c[1]||(c[1]=u=>r.isDropdownMenuShown=!1)},[b("label",mjt,W(o.inputLabel),1),b("div",fjt,[Ke(b("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.sectionName=u),type:"text",class:"bootstrap-styles w-100",placeholder:o.inputPlaceholder,disabled:!r.isLoaded},null,8,gjt),[[Ea,r.sectionName],[N(Dg)]])])])]),"footer-actions":Bt(()=>[b("button",{class:G([{button__locked:!r.isLoaded},"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected"]),onClick:c[2]||(c[2]=Nt(u=>s(),["stop"]))},W(o.cancelButton),3),b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white cursor-pointer bg-color-selected button__hover-blue-400",onClick:c[3]||(c[3]=Nt(u=>i(),["stop"]))},[b("span",{class:G({"bootstrap-styles invisible":!r.isLoaded})},W(o.applyButton),3),I(GC,{class:G(["bootstrap-styles position-absolute",{invisible:r.isLoaded}])},null,8,["class"])])]),_:1},8,["headerText"]))}}),Cjt={},bjt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function vjt(t,e){return E(),R("svg",bjt,[...e[0]||(e[0]=[b("path",{d:"M2 8H14",stroke:"var(--blue-400)","stroke-width":"1.5"},null,-1),b("path",{d:"M8 2L8 14",stroke:"var(--blue-400)","stroke-width":"1.5"},null,-1)])])}const R9e=ve(Cjt,[["render",vjt]]),wjt={},Sjt={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"};function xjt(t,e){return E(),R("svg",Sjt,[...e[0]||(e[0]=[b("path",{d:"M3.21879 5.33327H11.3332V6.6666H3.21879L6.79477 10.2425L5.85197 11.1853L0.666504 5.99993L5.85197 0.814453L6.79477 1.75726L3.21879 5.33327Z",fill:"var(--black)"},null,-1)])])}const Tjt=ve(wjt,[["render",xjt]]),kjt={class:"bootstrap-styles d-flex justify-content-center align-items-center icon-hover mt-14"},Fjt={class:"bootstrap-styles fs-6 fw-bold text-start"},IU=re({__name:"PrevMenuButton",props:{title:{}},emits:["click"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("button",{class:"bootstrap-styles prev-menu d-flex align-items-start justify-content-start gap-2 mb-13 me-7 text-hover__blue",onClick:i[0]||(i[0]=s=>o("click"))},[b("i",kjt,[I(Tjt)]),b("span",Fjt,W(n.title),1)]))}}),Ejt={},Ljt={class:"icon-hover",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _jt(t,e){return E(),R("svg",Ljt,[...e[0]||(e[0]=[b("path",{d:"M10.4853 6.38419L9.54247 5.44138L3.33333 11.6505V12.5933H4.27614L10.4853 6.38419ZM11.4281 5.44138L12.3709 4.49858L11.4281 3.55576L10.4853 4.49858L11.4281 5.44138ZM4.82843 13.9267H2V11.0982L10.9567 2.14155C11.2171 1.8812 11.6391 1.8812 11.8995 2.14155L13.7851 4.02717C14.0455 4.28752 14.0455 4.70963 13.7851 4.96998L4.82843 13.9267Z",fill:"var(--gray-500)"},null,-1)])])}const D9e=ve(Ejt,[["render",_jt]]),Ajt={},Rjt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Djt(t,e){return E(),R("svg",Rjt,[...e[0]||(e[0]=[b("path",{d:"M2 8C2 8.55 2.45 9 3 9C3.55 9 4 8.55 4 8C4 7.45 3.55 7 3 7C2.45 7 2 7.45 2 8ZM12 8C12 8.55 12.45 9 13 9C13.55 9 14 8.55 14 8C14 7.45 13.55 7 13 7C12.45 7 12 7.45 12 8ZM7 8C7 8.55 7.45 9 8 9C8.55 9 9 8.55 9 8C9 7.45 8.55 7 8 7C7.45 7 7 7.45 7 8Z",fill:"var(--gray-500)"},null,-1)])])}const B9e=ve(Ajt,[["render",Djt]]),Bjt={},Njt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function Ijt(t,e){return E(),R("svg",Njt,[...e[0]||(e[0]=[kg('<path d="M3 3.3335V14.6668H13V3.3335H3Z" stroke="var(--red-400)" stroke-width="1.25"></path><path d="M6.66675 6.6665V10.9998" stroke="var(--red-400)" stroke-width="1.25"></path><path d="M9.33325 6.6665V10.9998" stroke="var(--red-400)" stroke-width="1.25"></path><path d="M1.33325 3.3335H14.6666" stroke="var(--red-400)" stroke-width="1.25"></path><path d="M5.33325 3.3335L6.42959 1.3335H9.59229L10.6666 3.3335H5.33325Z" stroke="var(--red-400)" stroke-width="1.25"></path>',5)])])}const u$=ve(Bjt,[["render",Ijt]]),Mjt={title:"Delete theme",description:"Are you sure you want to delete the theme?"},$jt={title:"Удаление темы",description:"Вы действительно хотите удалить тему?"},_ke=ht({en:Mjt,ru:$jt}),Ojt=re({__name:"DeleteThemeLibrarySectionItemModalWindow",props:{deps:{},sectionItemId:{}},emits:["cancel","confirmed"],setup(t,{emit:e}){const n=t,o={title:_ke({localeKey:n.deps.localeKey}).title,description:_ke({localeKey:n.deps.localeKey}).description},r=e,i=async()=>{await n.deps.deleteThemeLibrarySectionItem({sectionItemId:n.sectionItemId}),r("confirmed")};return(s,a)=>(E(),Q(Ch,{headerText:o.title,deps:n.deps.removeConfirmModalWindowDeps,onCancel:a[0]||(a[0]=l=>r("cancel")),onConfirmed:a[1]||(a[1]=l=>i())},{"body-content":Bt(()=>[no(W(o.description),1)]),_:1},8,["headerText","deps"]))}}),Ake={display:"dynamic",reference:"parent",autoClose:"outside",offset:[0,5]},ah={mounted(t,e){return new wp(t,{...Ake,...e.value})},updated(t,e){const n=wp.getInstance(t);return n!==null&&n.hide(),new wp(t,{...Ake,...e.value})},unmounted(t){const e=wp.getInstance(t);e!==null&&e.dispose()}},Pjt={},Vjt={class:"bootstrap-styles d-flex justify-content-center align-items-center icon-fill icon-loading"};function Wjt(t,e){return E(),R("i",Vjt,[...e[0]||(e[0]=[b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[b("path",{d:"M12.2427 3.75736L11.2998 4.70017C10.4553 3.85567 9.28867 3.33333 8 3.33333C5.42267 3.33333 3.33333 5.42267 3.33333 8C3.33333 10.5773 5.42267 12.6667 8 12.6667C10.5773 12.6667 12.6667 10.5773 12.6667 8H14C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C9.65687 2 11.1569 2.67157 12.2427 3.75736Z",fill:"var(--gray-500)"})],-1)])])}const MU=ve(Pjt,[["render",Wjt],["__scopeId","data-v-369906aa"]]),Hjt={title:"Edit theme",themeNameLabel:"Name",themeNamePlaceholder:"Theme name...",themeSectionLabel:"Group",cancelButton:"Cancel",applyButton:"Save"},zjt={title:"Редактирование темы",themeNameLabel:"Название",themeNamePlaceholder:"Название темы...",themeSectionLabel:"Группа",cancelButton:"Отмена",applyButton:"Сохранить"},Lx=ht({en:Hjt,ru:zjt}),jjt={class:"bootstrap-styles fw-bold mb-5"},Kjt={class:"bootstrap-styles col-12 mb-13"},Ujt={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},qjt=["placeholder"],Jjt={class:"bootstrap-styles fw-bold mb-5"},Gjt={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},Yjt={id:"dropdownMenuSectionSelect",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},Zjt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Xjt={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuSectionSelect"},Qjt=["onClick"],e7t={class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer"},t7t=re({__name:"EditThemeLibrarySectionItemModalWindow",props:{deps:{},initialThemeSection:{},themeName:{},themeId:{}},emits:["cancel","onThemeLibrarySectionItemUpdated"],setup(t,{emit:e}){const n=t,o={title:Lx({localeKey:n.deps.localeKey}).title,themeNameLabel:Lx({localeKey:n.deps.localeKey}).themeNameLabel,themeNamePlaceholder:Lx({localeKey:n.deps.localeKey}).themeNamePlaceholder,themeSectionLabel:Lx({localeKey:n.deps.localeKey}).themeSectionLabel,cancelButton:Lx({localeKey:n.deps.localeKey}).cancelButton,applyButton:Lx({localeKey:n.deps.localeKey}).applyButton},r=Le({isLoadedThemeLibrarySectionList:!0,themeLibrarySections:[],sectionItemName:n.themeName,selectedSectionId:n.initialThemeSection.sectionId,selectedSectionName:n.initialThemeSection.sectionName});n.deps.getThemeLibrarySections().then(l=>{r.themeLibrarySections=l,r.isLoadedThemeLibrarySectionList=!1});const i=async()=>{r.sectionItemName.length&&(await n.deps.updateThemeLibrarySectionItem({sectionItemId:n.themeId,updatedParentSectionId:r.selectedSectionId,updatedSectionItemName:r.sectionItemName}),a("onThemeLibrarySectionItemUpdated"))},s=()=>{a("cancel")},a=e;return(l,c)=>(E(),Q(bd,{class:"edit-theme-modal-window",headerText:o.title,onClose:c[2]||(c[2]=()=>s())},{body:Bt(()=>[I(MU,{class:G(["bootstrap-styles position-absolute top-50 start-50",{invisible:!r.isLoadedThemeLibrarySectionList}])},null,8,["class"]),b("div",{class:G(["bootstrap-styles px-11 py-7 text-start",{invisible:r.isLoadedThemeLibrarySectionList}])},[b("label",jjt,W(o.themeNameLabel),1),b("div",Kjt,[b("div",Ujt,[Ke(b("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.sectionItemName=u),type:"text",class:"bootstrap-styles w-100",placeholder:o.themeNamePlaceholder},null,8,qjt),[[Ea,r.sectionItemName],[N(Dg),!r.isLoadedThemeLibrarySectionList]])])]),b("div",null,[b("label",Jjt,W(o.themeSectionLabel),1),b("div",Gjt,[Ke((E(),R("button",Yjt,[b("span",null,W(r.selectedSectionName),1),b("i",Zjt,[I(Si)])])),[[N(ah)]]),b("ul",Xjt,[(E(!0),R(Se,null,At(r.themeLibrarySections,u=>(E(),R("li",{key:u.sectionName,class:"bootstrap-styles dropdown-item p-0",onClick:()=>{r.selectedSectionId=u.sectionId,r.selectedSectionName=u.sectionName}},[b("span",e7t,W(u.sectionName),1)],8,Qjt))),128))])])])],2)]),"footer-actions":Bt(()=>[b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:c[1]||(c[1]=Nt(u=>s(),["stop"]))},W(o.cancelButton),1),b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white cursor-pointer bg-color-selected button__hover-blue-400",onClick:Nt(i,["stop"])},W(o.applyButton),1)]),_:1},8,["headerText"]))}}),n7t={editThemeButton:"Edit",deleteThemeButton:"Delete"},o7t={editThemeButton:"Редактировать",deleteThemeButton:"Удалить"},Rke=ht({en:n7t,ru:o7t}),r7t={class:"bootstrap-styles input__settings-text__item__content"},i7t={class:"overflow-hidden"},s7t={class:"bootstrap-styles mb-5"},a7t={class:"bootstrap-styles mb-5 text-nowrap"},l7t={class:"bootstrap-styles preview-theme__label input__settings-text__item__title border-top bg-white pt-1 pb-3 px-3 d-flex justify-content-between align-items-center"},c7t={class:"preview-theme__context"},u7t={class:"bootstrap-styles p-14"},d7t={class:"bootstrap-styles me-1"},h7t={class:"bootstrap-styles me-1"},p7t=re({__name:"CustomThemeSectionItem",props:{deps:{},theme:{},themeSection:{}},emits:["back","themeSectionItemRemoved","onThemeLibrarySectionItemUpdated","selectedThemeSettings"],setup(t,{emit:e}){const n=t,o={editThemeButton:Rke({localeKey:n.deps.localeKey}).editThemeButton,deleteThemeButton:Rke({localeKey:n.deps.localeKey}).deleteThemeButton},r=Le({isRemoveThemeWindowShown:!1,isEditThemeWindowShown:!1,isContextWindowShown:!1}),i=Rt(null),s=Rt(null),{floatingStyles:a}=zF(i,s,{placement:"right",whileElementsMounted:WF,middleware:[HF(20)]}),l=e;return(c,u)=>(E(),R(Se,null,[b("div",{class:"bootstrap-styles input__settings-text__item overflow-hidden cursor-pointer border rounded-1 shadow-hover-1",onClick:u[5]||(u[5]=d=>l("selectedThemeSettings",n.theme.theme))},[b("div",r7t,[b("div",i7t,[b("section",{class:"bootstrap-styles d-flex w-100 h-100",style:Te({background:n.theme.theme.Colors.EmailBackgroundColor,padding:"16px 0 0 16px"})},[b("div",{class:"bootstrap-styles w-100 h-100",style:Te({background:n.theme.theme.Colors.BodyColor,borderTopLeftRadius:`${n.theme.theme.BorderRadius.TopLeft}px`,paddingLeft:`${n.theme.theme.BodyPaddings.Left}px`,paddingTop:`${n.theme.theme.BodyPaddings.Top}px`})},[b("div",s7t,[b("span",{style:Te({fontFamily:n.theme.theme.FontFamily,color:n.theme.theme.Colors.HeadingColor,fontSize:`${n.theme.theme.FontSettingsPresets.Heading.FontSize}px`,fontWeight:n.theme.theme.FontSettingsPresets.Button.IsBold?"bold":"normal",fontStyle:n.theme.theme.FontSettingsPresets.Button.IsItalic?"italic":"normal",textDecoration:n.theme.theme.FontSettingsPresets.Heading.Decoration,marginRight:"4px"})}," Aa ",4),b("span",{style:Te({fontFamily:n.theme.theme.FontFamily,color:n.theme.theme.Colors.NormalTextColor,fontSize:`${n.theme.theme.FontSettingsPresets.NormalText.FontSize}px`,fontWeight:n.theme.theme.FontSettingsPresets.Button.IsBold?"bold":"normal",fontStyle:n.theme.theme.FontSettingsPresets.Button.IsItalic?"italic":"normal",textDecoration:n.theme.theme.FontSettingsPresets.NormalText.Decoration,marginRight:"4px"})}," Aa ",4),b("span",{style:Te({fontFamily:n.theme.theme.FontFamily,color:n.theme.theme.Colors.DescriptionTextColor,fontSize:`${n.theme.theme.FontSettingsPresets.DescriptionText.FontSize}px`,fontWeight:n.theme.theme.FontSettingsPresets.DescriptionText.IsBold?"bold":"normal",fontStyle:n.theme.theme.FontSettingsPresets.DescriptionText.IsItalic?"italic":"normal",textDecoration:n.theme.theme.FontSettingsPresets.DescriptionText.Decoration})}," Aa ",4)]),b("div",a7t,[b("span",{class:"bootstrap-styles me-2 d-inline-block",style:Te({fontFamily:n.theme.theme.FontFamily,color:n.theme.theme.Colors.PrimaryTextColor,fontSize:`${n.theme.theme.FontSettingsPresets.Button.FontSize}px`,fontWeight:n.theme.theme.FontSettingsPresets.Button.IsBold?"bold":"normal",fontStyle:n.theme.theme.FontSettingsPresets.Button.IsItalic?"italic":"normal",textDecoration:n.theme.theme.FontSettingsPresets.Button.Decoration,background:n.theme.theme.Colors.PrimaryColor,borderTopLeftRadius:`${n.theme.theme.BorderRadiusButton.TopLeft}px`,borderTopRightRadius:`${n.theme.theme.BorderRadiusButton.TopRight}px`,borderBottomRightRadius:`${n.theme.theme.BorderRadiusButton.BottomRight}px`,borderBottomLeftRadius:`${n.theme.theme.BorderRadiusButton.BottomLeft}px`,padding:"12px 24px"})}," Button ",4),b("span",{class:"bootstrap-styles d-inline-block",style:Te({fontFamily:n.theme.theme.FontFamily,color:n.theme.theme.Colors.SecondaryTextColor,fontSize:`${n.theme.theme.FontSettingsPresets.Button.FontSize}px`,fontWeight:n.theme.theme.FontSettingsPresets.Button.IsBold?"bold":"normal",fontStyle:n.theme.theme.FontSettingsPresets.Button.IsItalic?"italic":"normal",textDecoration:n.theme.theme.FontSettingsPresets.Button.Decoration,background:n.theme.theme.Colors.SecondaryColor,borderTopLeftRadius:`${n.theme.theme.BorderRadiusButton.TopLeft}px`,borderTopRightRadius:`${n.theme.theme.BorderRadiusButton.TopRight}px`,borderBottomRightRadius:`${n.theme.theme.BorderRadiusButton.BottomRight}px`,borderBottomLeftRadius:`${n.theme.theme.BorderRadiusButton.BottomLeft}px`,padding:"12px 24px"})}," Button ",4)])],4)],4)])]),b("div",l7t,[no(W(n.theme.sectionItemName)+" ",1),b("div",c7t,[b("button",{ref_key:"themePreviewContextButtonElmRef",ref:i,class:G(["preview-theme__context-button",{"preview-theme__context-button__active":r.isContextWindowShown}]),onClick:u[0]||(u[0]=Nt(d=>r.isContextWindowShown=!r.isContextWindowShown,["stop"])),onBlur:u[1]||(u[1]=d=>r.isContextWindowShown=!1)},[b("i",u7t,[I(B9e)])],34)])]),r.isContextWindowShown?(E(),R("div",{key:0,ref_key:"themePreviewContextMenuElmRef",ref:s,class:"preview-theme__context-menu bootstrap-styles rounded-1 border shadow-1 bg-white position-absolute z-index-3",style:Te(N(a)),onMouseleave:u[4]||(u[4]=d=>r.isContextWindowShown=!1)},[b("button",{class:"edit-button",onMousedown:u[2]||(u[2]=d=>r.isEditThemeWindowShown=!0)},[b("i",d7t,[I(D9e)]),no(" "+W(o.editThemeButton),1)],32),b("button",{class:"remove-button",onMousedown:u[3]||(u[3]=d=>r.isRemoveThemeWindowShown=!0)},[b("i",h7t,[I(u$)]),no(" "+W(o.deleteThemeButton),1)],32)],36)):oe("",!0)]),(E(),Q(yo,{to:"body",defer:""},[r.isEditThemeWindowShown?(E(),Q(t7t,{key:0,deps:n.deps.editThemeLibrarySectionItemModalWindowDeps,initialThemeSection:n.themeSection,themeId:n.theme.sectionItemId,themeName:n.theme.sectionItemName,onOnThemeLibrarySectionItemUpdated:u[6]||(u[6]=()=>{l("onThemeLibrarySectionItemUpdated"),r.isEditThemeWindowShown=!1}),onCancel:u[7]||(u[7]=d=>r.isEditThemeWindowShown=!1)},null,8,["deps","initialThemeSection","themeId","themeName"])):oe("",!0)])),(E(),Q(yo,{to:"body",defer:""},[r.isRemoveThemeWindowShown?(E(),Q(Ojt,{key:0,deps:n.deps.deleteThemeLibrarySectionItemModalWindowDeps,sectionItemId:t.theme.sectionItemId,onCancel:u[8]||(u[8]=d=>r.isRemoveThemeWindowShown=!1),onConfirmed:u[9]||(u[9]=()=>{l("themeSectionItemRemoved"),r.isRemoveThemeWindowShown=!1})},null,8,["deps","sectionItemId"])):oe("",!0)]))],64))}}),m7t=ve(p7t,[["__scopeId","data-v-750b633e"]]),f7t={},g7t={width:"60",height:"61",viewBox:"0 0 60 61",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function y7t(t,e){return E(),R("svg",g7t,[...e[0]||(e[0]=[kg('<path d="M26.6998 43.4001C35.4811 43.4001 42.5998 36.2814 42.5998 27.5001C42.5998 18.7188 35.4811 11.6001 26.6998 11.6001C17.9185 11.6001 10.7998 18.7188 10.7998 27.5001C10.7998 36.2814 17.9185 43.4001 26.6998 43.4001Z" stroke="var(--gray-200)" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M20.7629 23.3031C20.5313 23.6386 20.4051 24.034 20.4001 24.4398C20.3967 24.7158 20.4494 24.9897 20.5553 25.2453C20.6611 25.5008 20.8179 25.7329 21.0163 25.9277C21.2146 26.1225 21.4506 26.2761 21.7103 26.3794C21.9699 26.4828 22.248 26.5337 22.528 26.5293C22.9396 26.5228 23.3402 26.3968 23.6796 26.1671C24.0191 25.9373 24.2823 25.6141 24.4364 25.2377C24.5905 24.8614 24.6287 24.4486 24.5462 24.0509C24.4636 23.6533 24.264 23.2885 23.9723 23.002C23.6806 22.7156 23.3098 22.5203 22.9061 22.4405C22.5024 22.3607 22.0838 22.3999 21.7026 22.5533C21.3215 22.7068 20.9946 22.9675 20.7629 23.3031Z" fill="var(--gray-200)"></path><path d="M31.7405 34.3108C31.8531 34.2517 31.949 34.1659 32.0197 34.0613C32.0918 33.9571 32.1364 33.8369 32.1496 33.7114C32.1627 33.586 32.144 33.4593 32.0951 33.3428C31.6717 32.2665 30.9355 31.3374 29.9788 30.6719C29.022 30.0063 27.8872 29.634 26.7167 29.6015C25.5405 29.6276 24.3984 29.9969 23.4351 30.6628C22.4718 31.3288 21.7304 32.2614 21.3048 33.3428C21.2552 33.4579 21.2351 33.5833 21.2464 33.7079C21.2578 33.8325 21.3001 33.9524 21.3697 34.057C21.4393 34.1616 21.5341 34.2476 21.6455 34.3074C21.757 34.3672 21.8817 34.399 22.0085 34.3999C22.1888 34.4008 22.3637 34.3395 22.5028 34.2265C23.6884 33.286 25.17 32.7835 26.6916 32.8059C28.2132 32.7835 29.6948 33.286 30.8804 34.2265C31.0195 34.3395 31.1944 34.4008 31.3747 34.3999C31.5022 34.4005 31.6279 34.3698 31.7405 34.3108Z" fill="var(--gray-200)"></path><path d="M29.7419 26.1813C30.0864 26.4082 30.4913 26.5293 30.9055 26.5293C31.461 26.5293 31.9937 26.3118 32.3865 25.9246C32.7792 25.5373 32.9999 25.0122 32.9999 24.4646C32.9999 24.0562 32.8771 23.6571 32.6469 23.3175C32.4168 22.978 32.0897 22.7133 31.707 22.5571C31.3243 22.4008 30.9032 22.3599 30.4969 22.4396C30.0906 22.5192 29.7175 22.7159 29.4246 23.0046C29.1317 23.2934 28.9322 23.6613 28.8514 24.0618C28.7706 24.4623 28.812 24.8774 28.9706 25.2547C29.1291 25.632 29.3975 25.9545 29.7419 26.1813Z" fill="var(--gray-200)"></path><path d="M49.1999 49.4001L38.3999 38.6001" stroke="var(--gray-200)" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path>',5)])])}const N9e=ve(f7t,[["render",y7t]]),C7t={title:"Delete section",description:"Are you sure you want to delete the section",cancelButton:"Cancel",applyButton:"Delete",errorButtonText:"Error"},b7t={title:"Удаление секции",description:"Вы действительно хотите удалить секцию",cancelButton:"Отмена",applyButton:"Удалить",errorButtonText:"Ошибка"},Y_=ht({en:C7t,ru:b7t}),v7t={class:"bootstrap-styles px-11 py-7 text-start"},w7t={key:0},S7t={key:2,class:"bootstrap-styles d-flex justify-content-center align-items-center"},x7t=re({__name:"DeleteThemeLibrarySectionModalWindow",props:{deps:{},sectionName:{},sectionId:{}},emits:["cancel","onRemoveConfirmed"],setup(t,{emit:e}){const n=t,o={title:Y_({localeKey:n.deps.localeKey}).title,description:Y_({localeKey:n.deps.localeKey}).description,cancelButton:Y_({localeKey:n.deps.localeKey}).cancelButton,applyButton:Y_({localeKey:n.deps.localeKey}).applyButton,errorButtonText:Y_({localeKey:n.deps.localeKey}).errorButtonText},r=Le({applyButtonState:"Default"}),i=async()=>{r.applyButtonState="Deleting";try{await n.deps.deleteThemeLibrarySection({sectionId:n.sectionId})==="Success"?s("onRemoveConfirmed"):r.applyButtonState="Error"}catch{r.applyButtonState="Error"}},s=e;return(a,l)=>(E(),Q(bd,{headerText:o.title,class:"remove-element-confirm-modal-window",onClose:l[2]||(l[2]=()=>s("cancel"))},{body:Bt(()=>[b("div",v7t,W(o.description)+" «"+W(n.sectionName)+"» ? ",1)]),"footer-actions":Bt(()=>[b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:l[0]||(l[0]=Nt(c=>s("cancel"),["stop"]))},W(o.cancelButton),1),b("button",{class:G(["modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white cursor-pointer position-relative remove-element-confirm__button",{"delete-button__error":r.applyButtonState==="Error","delete-button__deleting":r.applyButtonState==="Deleting"}]),onClick:l[1]||(l[1]=Nt(c=>i(),["stop"]))},[r.applyButtonState==="Default"?(E(),R("span",w7t,W(o.applyButton),1)):oe("",!0),r.applyButtonState==="Deleting"?(E(),Q(GC,{key:1,class:"preloader"})):oe("",!0),r.applyButtonState==="Error"?(E(),R("span",S7t,W(o.errorButtonText),1)):oe("",!0)],2)]),_:1},8,["headerText"]))}}),T7t={emptySectionText:"No theme templates in this group",deleteSectionButton:"Delete section"},k7t={emptySectionText:"В этой группе нет шаблонов тем",deleteSectionButton:"Удалить секцию"},Dke=ht({en:T7t,ru:k7t}),F7t={class:"bootstrap-styles d-flex flex-column justify-content-center align-items-center h-100 pe-7"},E7t={class:"bootstrap-styles mt-auto d-flex flex-column justify-content-center align-items-center"},L7t={class:"bootstrap-styles text-gray-600"},_7t=re({__name:"EmptyThemeSection",props:{deps:{},sectionName:{},sectionId:{}},emits:["onThemeLibrarySectionRemoved"],setup(t,{emit:e}){const n=t,o={emptySectionText:Dke({localeKey:n.deps.localeKey}).emptySectionText,deleteSectionButton:Dke({localeKey:n.deps.localeKey}).deleteSectionButton},r=Le({isRemoveThemeLibrarySectionModalWindowShown:!1}),i=e;return(s,a)=>(E(),R(Se,null,[b("div",F7t,[b("div",E7t,[I(N9e),b("p",L7t,W(o.emptySectionText),1)]),b("button",{class:"bootstrap-styles py-1 px-3 rounded-2 w-100 mt-auto section__remove-button",onClick:a[0]||(a[0]=l=>r.isRemoveThemeLibrarySectionModalWindowShown=!0)},[b("i",null,[I(u$)]),no(" "+W(o.deleteSectionButton),1)])]),(E(),Q(yo,{to:"body",defer:""},[r.isRemoveThemeLibrarySectionModalWindowShown?(E(),Q(x7t,{key:0,deps:n.deps.deleteThemeLibrarySectionModalWindowDeps,sectionName:n.sectionName,sectionId:n.sectionId,onCancel:a[1]||(a[1]=l=>r.isRemoveThemeLibrarySectionModalWindowShown=!1),onOnRemoveConfirmed:a[2]||(a[2]=()=>{i("onThemeLibrarySectionRemoved"),r.isRemoveThemeLibrarySectionModalWindowShown=!1})},null,8,["deps","sectionName","sectionId"])):oe("",!0)]))],64))}}),A7t=ve(_7t,[["__scopeId","data-v-16bcee65"]]),R7t={key:0,class:"bootstrap-styles h-100 d-flex flex-column overflow-scroll"},D7t={class:"bootstrap-styles scrollable d-flex flex-column gap-5 overflow-scroll"},B7t=re({__name:"CustomThemeSection",props:{deps:{},themeLibrary:{},themeSection:{}},emits:["back","themeSectionItemRemoved","onThemeLibrarySectionItemUpdated","selectedThemeSettings","onThemeLibrarySectionRemoved"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R(Se,null,[I(IU,{title:n.themeSection.sectionName,onClick:i[0]||(i[0]=s=>o("back"))},null,8,["title"]),n.themeSection.sectionItems.length>0?(E(),R("div",R7t,[b("div",D7t,[(E(!0),R(Se,null,At(n.themeSection.sectionItems,s=>(E(),R("div",{key:s.sectionItemId,class:"bootstrap-styles list-group me-3"},[I(m7t,{deps:n.deps.themeSectionItemDeps,theme:s,themeSection:n.themeSection,onSelectedThemeSettings:i[1]||(i[1]=a=>o("selectedThemeSettings",a)),onOnThemeLibrarySectionItemUpdated:i[2]||(i[2]=()=>o("onThemeLibrarySectionItemUpdated")),onThemeSectionItemRemoved:i[3]||(i[3]=a=>o("themeSectionItemRemoved"))},null,8,["deps","theme","themeSection"])]))),128))])])):(E(),Q(A7t,{key:1,deps:n.deps.emptyThemeSectionDeps,sectionName:n.themeSection.sectionName,sectionId:n.themeSection.sectionId,onOnThemeLibrarySectionRemoved:i[4]||(i[4]=()=>{o("back"),o("onThemeLibrarySectionRemoved")})},null,8,["deps","sectionName","sectionId"]))],64))}}),N7t=ve(B7t,[["__scopeId","data-v-e83bc5b6"]]),I7t={hideEmptySectionsCheckbox:"Hide empty sections",addThemeLibrarySectionButton:"Add section"},M7t={hideEmptySectionsCheckbox:"Скрыть пустые секции",addThemeLibrarySectionButton:"Добавить секцию"},Bke=ht({en:I7t,ru:M7t}),$7t={class:"bootstrap-styles h-100 d-flex flex-column"},O7t={class:"bootstrap-styles list-group list-group-flush p-0"},P7t=["onClick"],V7t={key:0,class:"bootstrap-styles d-flex align-items-center w-100"},W7t={class:"bootstrap-styles me-1 w-100"},H7t={class:"bootstrap-styles d-flex align-items-center"},z7t={class:"bootstrap-styles icon-hover-stroke"},j7t={for:"button-hide-empty-theme-section",class:"label__checkbox-input"},K7t={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1 icon-stroke"},U7t=re({__name:"CustomThemeLibrary",props:{deps:{},currentThemeSettings:{},themeLibrary:{}},emits:["selectedThemeSettings","onThemeLibrarySectionItemUpdated","onThemeLibrarySectionAdded","themeSectionItemAdded","themeSectionItemRemoved","onThemeLibrarySectionRemoved","onMenuOptionIndexChanged"],setup(t,{emit:e}){const n=t,o={hideEmptySectionsCheckbox:Bke({localeKey:n.deps.localeKey}).hideEmptySectionsCheckbox,addThemeLibrarySectionButton:Bke({localeKey:n.deps.localeKey}).addThemeLibrarySectionButton},r=Le({menuOptionIndex:null,isAddThemeLibrarySectionModalWindowShown:!1,isHiddenThemeLibraryEmptySection:n.themeLibrary.some(c=>c?.sectionItems?.length>0),isLoaded:!0,removedSectionIndex:null}),i=c=>{l("onThemeLibrarySectionRemoved"),r.removedSectionIndex=c},s=()=>{r.isHiddenThemeLibraryEmptySection=!r.isHiddenThemeLibraryEmptySection},a=()=>{l("onThemeLibrarySectionAdded"),r.isHiddenThemeLibraryEmptySection=!1,r.isAddThemeLibrarySectionModalWindowShown=!1,r.isLoaded=!1};on(()=>n.themeLibrary,c=>{c&&(r.isLoaded=!0,r.removedSectionIndex=null)});const l=e;return(c,u)=>(E(),R("div",$7t,[(E(!0),R(Se,null,At(n.themeLibrary,(d,h)=>(E(),R("div",{key:h,class:G({"bootstrap-styles h-100 d-flex flex-column":r.menuOptionIndex===h})},[r.menuOptionIndex===h?(E(),Q(N7t,{key:0,deps:n.deps.themeSectionDeps,themeLibrary:n.themeLibrary,themeSection:d,onBack:u[0]||(u[0]=()=>{l("onMenuOptionIndexChanged"),r.menuOptionIndex=null}),onOnThemeLibrarySectionItemUpdated:u[1]||(u[1]=p=>l("onThemeLibrarySectionItemUpdated")),onSelectedThemeSettings:u[2]||(u[2]=p=>l("selectedThemeSettings",p)),onThemeSectionItemRemoved:u[3]||(u[3]=p=>l("themeSectionItemRemoved")),onOnThemeLibrarySectionRemoved:p=>i(h)},null,8,["deps","themeLibrary","themeSection","onOnThemeLibrarySectionRemoved"])):oe("",!0)],2))),128)),b("div",{class:G(["bootstrap-styles h-100 flex-column pe-5 me-14 overflow-scroll",[r.menuOptionIndex===null?"d-flex":"d-none"]])},[b("div",O7t,[(E(!0),R(Se,null,At(n.themeLibrary,(d,h)=>(E(),R("button",{key:h,class:G(["bootstrap-styles list-group-item py-5 px-0 text-start border-gray-200 justify-content-between",[r.isHiddenThemeLibraryEmptySection&&d.sectionItems.length===0?"d-none":"d-flex"]]),onClick:()=>{l("onMenuOptionIndexChanged"),r.menuOptionIndex=h}},[r.removedSectionIndex!==h?(E(),R("span",V7t,[b("span",W7t,W(d.sectionName),1),b("span",H7t,[b("span",{class:G(["bootstrap-styles themes-quantity px-1 me-1",{empty:d.sectionItems.length===0}])},W(d.sectionItems.length),3),b("i",z7t,[I(NU)])])])):oe("",!0),r.removedSectionIndex===h?(E(),Q(N(Kw),{key:1,width:"216",height:"17"})):oe("",!0)],10,P7t))),128)),!r.isLoaded&&!r.isHiddenThemeLibraryEmptySection?(E(),Q(N(Kw),{key:0,class:"bootstrap-styles my-5",width:"216",height:"17"})):oe("",!0)])],2),b("div",{class:G(["bootstrap-styles mt-7 me-7 mb-7",[r.menuOptionIndex===null?"d-flex":"d-none"]])},[I(th,{id:"button-hide-empty-theme-section",checked:r.isHiddenThemeLibraryEmptySection,onChange:u[4]||(u[4]=d=>s())},null,8,["checked"]),b("label",j7t,W(o.hideEmptySectionsCheckbox),1)],2),b("button",{class:G(["bootstrap-styles d-flex align-items-center justify-content-center py-1 px-3 me-7 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",[r.menuOptionIndex===null?"d-flex":"d-none"]]),onClick:u[5]||(u[5]=d=>r.isAddThemeLibrarySectionModalWindowShown=!0)},[b("i",K7t,[I(R9e)]),no(" "+W(o.addThemeLibrarySectionButton),1)],2),(E(),Q(yo,{to:"body",defer:""},[r.isAddThemeLibrarySectionModalWindowShown?(E(),Q(yjt,{key:0,deps:n.deps.createThemeLibrarySectionModalWindowDeps,onOnThemeLibrarySectionCreated:u[6]||(u[6]=d=>a()),onOnCanceled:u[7]||(u[7]=d=>r.isAddThemeLibrarySectionModalWindowShown=!1)},null,8,["deps"])):oe("",!0)]))]))}}),q7t={class:"bootstrap-styles input__settings-text__item__content"},J7t={class:"overflow-hidden"},G7t={class:"bootstrap-styles mb-5"},Y7t={class:"bootstrap-styles mb-5 text-nowrap"},Z7t={class:"bootstrap-styles preview-theme__label input__settings-text__item__title border-top bg-white pt-1 pb-3 px-3 d-flex justify-content-between align-items-center"},X7t=re({__name:"DefaultThemeSectionItem",props:{theme:{},themeSection:{}},emits:["back","selectedThemeSettings"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("div",{class:"bootstrap-styles input__settings-text__item overflow-hidden cursor-pointer border rounded-1 shadow-hover-1",onClick:i[0]||(i[0]=s=>o("selectedThemeSettings",n.theme.theme))},[b("div",q7t,[b("div",J7t,[b("section",{class:"bootstrap-styles d-flex w-100 h-100",style:Te({background:n.theme.theme.Colors.EmailBackgroundColor,padding:"16px 0 0 16px"})},[b("div",{class:"bootstrap-styles w-100 h-100",style:Te({background:n.theme.theme.Colors.BodyColor,borderTopLeftRadius:`${n.theme.theme.BorderRadius.TopLeft}px`,paddingLeft:`${n.theme.theme.BodyPaddings.Left}px`,paddingTop:`${n.theme.theme.BodyPaddings.Top}px`})},[b("div",G7t,[b("span",{style:Te({fontFamily:n.theme.theme.FontFamily,color:n.theme.theme.Colors.HeadingColor,fontSize:`${n.theme.theme.FontSettingsPresets.Heading.FontSize}px`,fontWeight:n.theme.theme.FontSettingsPresets.Button.IsBold?"bold":"normal",fontStyle:n.theme.theme.FontSettingsPresets.Button.IsItalic?"italic":"normal",textDecoration:n.theme.theme.FontSettingsPresets.Heading.Decoration,marginRight:"4px"})}," Aa ",4),b("span",{style:Te({fontFamily:n.theme.theme.FontFamily,color:n.theme.theme.Colors.NormalTextColor,fontSize:`${n.theme.theme.FontSettingsPresets.NormalText.FontSize}px`,fontWeight:n.theme.theme.FontSettingsPresets.Button.IsBold?"bold":"normal",fontStyle:n.theme.theme.FontSettingsPresets.Button.IsItalic?"italic":"normal",textDecoration:n.theme.theme.FontSettingsPresets.NormalText.Decoration,marginRight:"4px"})}," Aa ",4),b("span",{style:Te({fontFamily:n.theme.theme.FontFamily,color:n.theme.theme.Colors.DescriptionTextColor,fontSize:`${n.theme.theme.FontSettingsPresets.DescriptionText.FontSize}px`,fontWeight:n.theme.theme.FontSettingsPresets.DescriptionText.IsBold?"bold":"normal",fontStyle:n.theme.theme.FontSettingsPresets.DescriptionText.IsItalic?"italic":"normal",textDecoration:n.theme.theme.FontSettingsPresets.DescriptionText.Decoration})}," Aa ",4)]),b("div",Y7t,[b("span",{class:"bootstrap-styles me-2 d-inline-block",style:Te({fontFamily:n.theme.theme.FontFamily,color:n.theme.theme.Colors.PrimaryTextColor,fontSize:`${n.theme.theme.FontSettingsPresets.Button.FontSize}px`,fontWeight:n.theme.theme.FontSettingsPresets.Button.IsBold?"bold":"normal",fontStyle:n.theme.theme.FontSettingsPresets.Button.IsItalic?"italic":"normal",textDecoration:n.theme.theme.FontSettingsPresets.Button.Decoration,background:n.theme.theme.Colors.PrimaryColor,borderTopLeftRadius:`${n.theme.theme.BorderRadiusButton.TopLeft}px`,borderTopRightRadius:`${n.theme.theme.BorderRadiusButton.TopRight}px`,borderBottomRightRadius:`${n.theme.theme.BorderRadiusButton.BottomRight}px`,borderBottomLeftRadius:`${n.theme.theme.BorderRadiusButton.BottomLeft}px`,padding:"12px 24px"})}," Button ",4),b("span",{class:"bootstrap-styles d-inline-block",style:Te({fontFamily:n.theme.theme.FontFamily,color:n.theme.theme.Colors.SecondaryTextColor,fontSize:`${n.theme.theme.FontSettingsPresets.Button.FontSize}px`,fontWeight:n.theme.theme.FontSettingsPresets.Button.IsBold?"bold":"normal",fontStyle:n.theme.theme.FontSettingsPresets.Button.IsItalic?"italic":"normal",textDecoration:n.theme.theme.FontSettingsPresets.Button.Decoration,background:n.theme.theme.Colors.SecondaryColor,borderTopLeftRadius:`${n.theme.theme.BorderRadiusButton.TopLeft}px`,borderTopRightRadius:`${n.theme.theme.BorderRadiusButton.TopRight}px`,borderBottomRightRadius:`${n.theme.theme.BorderRadiusButton.BottomRight}px`,borderBottomLeftRadius:`${n.theme.theme.BorderRadiusButton.BottomLeft}px`,padding:"12px 24px"})}," Button ",4)])],4)],4)])]),b("div",Z7t,W(n.theme.sectionItemName),1)]))}}),Q7t=ve(X7t,[["__scopeId","data-v-9ac5d7bf"]]),e8t={class:"bootstrap-styles h-100 d-flex flex-column overflow-scroll gap-5 scrollable"},t8t=re({__name:"DefaultThemeSection",props:{themeLibrary:{},themeSection:{}},emits:["back","selectedThemeSettings"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R(Se,null,[I(IU,{title:n.themeSection.sectionName,onClick:i[0]||(i[0]=s=>o("back"))},null,8,["title"]),b("div",e8t,[(E(!0),R(Se,null,At(n.themeSection.sectionItems,s=>(E(),R("div",{key:s.sectionItemId,class:"bootstrap-styles list-group me-3"},[I(Q7t,{theme:s,themeSection:n.themeSection,onSelectedThemeSettings:i[1]||(i[1]=a=>o("selectedThemeSettings",a))},null,8,["theme","themeSection"])]))),128))])],64))}}),n8t=ve(t8t,[["__scopeId","data-v-9d15468d"]]),o8t={class:"bootstrap-styles h-100 d-flex flex-column"},r8t={class:"bootstrap-styles list-group list-group-flush p-0"},i8t=["onClick"],s8t={class:"bootstrap-styles me-1"},a8t={class:"bootstrap-styles d-flex align-items-center"},l8t={class:"bootstrap-styles themes-quantity px-1 me-1"},c8t={class:"bootstrap-styles icon-hover-stroke"},u8t=re({__name:"DefaultThemeLibrary",props:{deps:{},currentThemeSettings:{}},emits:["selectedThemeSettings","onMenuOptionIndexChanged"],setup(t,{emit:e}){const n=t,o=Le({menuOptionIndex:null}),r=e;return(i,s)=>(E(),R("div",o8t,[(E(!0),R(Se,null,At(n.deps.defaultThemeLibrary,(a,l)=>(E(),R("div",{key:l,class:G({"bootstrap-styles h-100 d-flex flex-column":o.menuOptionIndex===l})},[o.menuOptionIndex===l?(E(),Q(n8t,{key:0,themeLibrary:n.deps.defaultThemeLibrary,themeSection:a,onBack:s[0]||(s[0]=()=>{r("onMenuOptionIndexChanged"),o.menuOptionIndex=null}),onSelectedThemeSettings:s[1]||(s[1]=c=>r("selectedThemeSettings",c))},null,8,["themeLibrary","themeSection"])):oe("",!0)],2))),128)),b("div",{class:G(["bootstrap-styles h-100 flex-column pe-5 me-14 overflow-scroll",[o.menuOptionIndex===null?"d-flex":"d-none"]])},[b("div",r8t,[(E(!0),R(Se,null,At(n.deps.defaultThemeLibrary,(a,l)=>(E(),R("button",{key:l,class:"bootstrap-styles d-flex list-group-item py-5 px-0 text-start border-gray-200 justify-content-between",onClick:()=>{r("onMenuOptionIndexChanged"),o.menuOptionIndex=l}},[b("span",s8t,W(a.sectionName),1),b("span",a8t,[b("span",l8t,W(a.sectionItems.length),1),b("i",c8t,[I(NU)])])],8,i8t))),128))])],2)]))}}),d8t={title:"Theme",userThemeButtonText:"Custom",defaultThemeButtonText:"Default",addThemeLibrarySectionItemButton:"Save theme",addThemeLibrarySectionItemButtonTooltip:"You need to create a theme section before saving"},h8t={title:"Тема оформления",userThemeButtonText:"Мои",defaultThemeButtonText:"Стандартные",addThemeLibrarySectionItemButton:"Сохранить тему",addThemeLibrarySectionItemButtonTooltip:"Для сохранения создайте секцию темы оформления"},R2=ht({en:d8t,ru:h8t}),p8t={class:"bootstrap-styles scrollable d-block h-100"},m8t={class:"bootstrap-styles flex-column gap-13 d-flex h-100"},f8t=re({__name:"ThemeLibrary",props:{deps:{},currentThemeSettings:{},themeLibrary:{}},emits:["selectedThemeSettings","onThemeLibrarySectionItemUpdated","onThemeLibrarySectionAdded","themeSectionItemAdded","themeSectionItemRemoved","onThemeLibrarySectionRemoved"],setup(t,{emit:e}){const n=t,o=n.themeLibrary.some(l=>l.sectionItems.length>0)?"custom":"default",r=Le({themeLibrarySourceKey:o,isHeaderShow:!0}),i={title:R2({localeKey:n.deps.localeKey}).title,userThemeButtonText:R2({localeKey:n.deps.localeKey}).userThemeButtonText,defaultThemeButtonText:R2({localeKey:n.deps.localeKey}).defaultThemeButtonText},s={custom:i.userThemeButtonText,default:i.defaultThemeButtonText},a=e;return(l,c)=>(E(),R("div",p8t,[b("div",m8t,[b("h2",{class:G(["bootstrap-styles fs-6 fw-bold mb-0 me-7",{"d-none":!r.isHeaderShow}])},W(i.title),3),b("div",{class:G([{"d-none":!r.isHeaderShow},"bootstrap-styles me-7"])},[I(kU,{initialTab:N(o),tabList:s,onOnTabClicked:c[0]||(c[0]=u=>r.themeLibrarySourceKey=u)},null,8,["initialTab"])],2),r.themeLibrarySourceKey==="custom"?(E(),Q(U7t,{key:0,deps:n.deps.customThemeLibraryDeps,themeLibrary:n.themeLibrary,currentThemeSettings:n.currentThemeSettings,onOnThemeLibrarySectionItemUpdated:c[1]||(c[1]=()=>a("onThemeLibrarySectionItemUpdated")),onSelectedThemeSettings:c[2]||(c[2]=u=>a("selectedThemeSettings",u)),onThemeSectionItemAdded:c[3]||(c[3]=()=>a("themeSectionItemAdded")),onThemeSectionItemRemoved:c[4]||(c[4]=()=>a("themeSectionItemRemoved")),onOnThemeLibrarySectionRemoved:c[5]||(c[5]=u=>a("onThemeLibrarySectionRemoved")),onOnThemeLibrarySectionAdded:c[6]||(c[6]=u=>a("onThemeLibrarySectionAdded")),onOnMenuOptionIndexChanged:c[7]||(c[7]=u=>r.isHeaderShow=!r.isHeaderShow)},null,8,["deps","themeLibrary","currentThemeSettings"])):oe("",!0),r.themeLibrarySourceKey==="default"?(E(),Q(u8t,{key:1,deps:n.deps.defaultThemeLibraryDeps,currentThemeSettings:n.currentThemeSettings,onSelectedThemeSettings:c[8]||(c[8]=u=>a("selectedThemeSettings",u)),onOnMenuOptionIndexChanged:c[9]||(c[9]=u=>r.isHeaderShow=!r.isHeaderShow)},null,8,["deps","currentThemeSettings"])):oe("",!0)])]))}}),g8t={title:"Delete component",description:"Are you sure you want to delete the component?",cancelButton:"Cancel",applyButton:"Delete"},y8t={title:"Удаление компонента",description:"Вы действительно хотите удалить компонент?",cancelButton:"Отмена",applyButton:"Удалить"},lO=ht({en:g8t,ru:y8t}),C8t={class:"bootstrap-styles px-11 py-7 text-start"},b8t=re({__name:"DeleteComponentLibrarySectionItemModalWindow",props:{deps:{},sectionItemId:{},sectionItemName:{}},emits:["onCanceled","onRemoveConfirmed"],setup(t,{emit:e}){const n=t,o={title:lO({localeKey:n.deps.localeKey}).title,description:lO({localeKey:n.deps.localeKey}).description,cancelButton:lO({localeKey:n.deps.localeKey}).cancelButton,applyButton:lO({localeKey:n.deps.localeKey}).applyButton},r=Le({isLoaded:!0}),i=e,s=async()=>{r.isLoaded=!1,await n.deps.deleteComponentLibrarySectionItem({sectionItemId:n.sectionItemId}),i("onRemoveConfirmed")};return(a,l)=>(E(),Q(bd,{class:"remove-element-confirm-modal-window",headerText:o.title,onClose:l[2]||(l[2]=()=>i("onCanceled"))},{body:Bt(()=>[b("div",C8t,W(o.description),1)]),"footer-actions":Bt(()=>[b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 border rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:l[0]||(l[0]=Nt(c=>i("onCanceled"),["stop"]))},W(o.cancelButton),1),b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white cursor-pointer position-relative remove-element-confirm__button",onClick:l[1]||(l[1]=Nt(c=>s(),["stop"]))},[b("span",{class:G({"bootstrap-styles invisible":!r.isLoaded})},W(o.applyButton),3),I(GC,{class:G(["preloader",{invisible:r.isLoaded}])},null,8,["class"])])]),_:1},8,["headerText"]))}}),v8t={title:"Edit component",componentNameLabel:"Name",componentNamePlaceholder:"Component name...",componentSectionLabel:"Section",cancelButton:"Cancel",applyButton:"Save"},w8t={title:"Редактирование компонента",componentNameLabel:"Название",componentNamePlaceholder:"Название компонента...",componentSectionLabel:"Секция",cancelButton:"Отмена",applyButton:"Сохранить"},_x=ht({en:v8t,ru:w8t}),S8t={class:"bootstrap-styles fw-bold mb-5"},x8t={class:"bootstrap-styles col-12 mb-13"},T8t={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},k8t=["placeholder","disabled"],F8t={class:"bootstrap-styles fw-bold mb-5"},E8t={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},L8t=["disabled"],_8t={class:"bootstrap-styles d-flex justify-content-center align-items-center"},A8t={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuSectionSelect"},R8t=["onClick"],D8t={class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer"},B8t=re({__name:"EditComponentLibrarySectionItemModalWindow",props:{deps:{},currentComponentSectionId:{},currentComponentSectionName:{},componentSectionId:{},componentName:{},componentId:{}},emits:["cancel","componentLibrarySectionItemUpdated"],setup(t,{emit:e}){const n=t,o={title:_x({localeKey:n.deps.localeKey}).title,componentNameLabel:_x({localeKey:n.deps.localeKey}).componentNameLabel,componentNamePlaceholder:_x({localeKey:n.deps.localeKey}).componentNamePlaceholder,componentSectionLabel:_x({localeKey:n.deps.localeKey}).componentSectionLabel,cancelButton:_x({localeKey:n.deps.localeKey}).cancelButton,applyButton:_x({localeKey:n.deps.localeKey}).applyButton},r=Le({componentLibrarySections:[],sectionItemName:n.componentName,selectedSectionId:n.currentComponentSectionId,selectedSectionName:n.currentComponentSectionName,isLoadedComponentLibrarySectionList:!0,isLoaded:!0});n.deps.getComponentLibrarySections().then(l=>{r.componentLibrarySections=l,r.isLoadedComponentLibrarySectionList=!1});const i=async()=>{r.sectionItemName.length&&(r.isLoaded=!1,await n.deps.updateComponentLibrarySectionItem({sectionItemId:n.componentId,updatedParentSectionId:r.selectedSectionId,updatedSectionItemName:r.sectionItemName}),a("componentLibrarySectionItemUpdated"))},s=()=>{a("cancel")},a=e;return(l,c)=>(E(),Q(bd,{class:"edit-component-modal-window",headerText:o.title,onClose:c[2]||(c[2]=()=>s())},{body:Bt(()=>[I(MU,{class:G(["bootstrap-styles position-absolute top-50 start-50",{invisible:!r.isLoadedComponentLibrarySectionList}])},null,8,["class"]),b("div",{class:G(["bootstrap-styles px-11 py-7 text-start",{invisible:r.isLoadedComponentLibrarySectionList}])},[b("label",S8t,W(o.componentNameLabel),1),b("div",x8t,[b("div",T8t,[Ke(b("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.sectionItemName=u),type:"text",class:"bootstrap-styles w-100",placeholder:o.componentNamePlaceholder,disabled:!r.isLoaded},null,8,k8t),[[Ea,r.sectionItemName],[N(Dg),r.isLoaded]])])]),b("div",null,[b("label",F8t,W(o.componentSectionLabel),1),b("div",E8t,[Ke((E(),R("button",{id:"dropdownMenuSectionSelect",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false",disabled:!r.isLoaded},[b("span",null,W(r.selectedSectionName),1),b("i",_8t,[I(Si)])],8,L8t)),[[N(ah)]]),b("ul",A8t,[(E(!0),R(Se,null,At(r.componentLibrarySections,u=>(E(),R("li",{key:u.sectionId,class:"bootstrap-styles dropdown-item p-0",onClick:()=>{r.selectedSectionName=u.sectionName,r.selectedSectionId=u.sectionId}},[b("span",D8t,W(u.sectionName),1)],8,R8t))),128))])])])],2)]),"footer-actions":Bt(()=>[b("button",{class:G([{button__locked:!r.isLoaded},"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected"]),onClick:c[1]||(c[1]=Nt(u=>s(),["stop"]))},W(o.cancelButton),3),b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white cursor-pointer bg-color-selected button__hover-blue-400",onClick:Nt(i,["stop"])},[b("span",{class:G({"bootstrap-styles invisible":!r.isLoaded})},W(o.applyButton),3),I(GC,{class:G(["bootstrap-styles position-absolute",{invisible:r.isLoaded}])},null,8,["class"])])]),_:1},8,["headerText"]))}}),N8t={editComponentButton:"Edit",deleteComponentButton:"Delete"},I8t={editComponentButton:"Редактировать",deleteComponentButton:"Удалить"},Nke=ht({en:N8t,ru:I8t}),M8t={class:"bootstrap-styles preview-component user-select-none"},$8t={class:"bootstrap-styles preview-component-container"},O8t={class:"bootstrap-styles py-1 ps-2 pe-13 w-100"},P8t={class:"bootstrap-styles p-14 icon-hover"},V8t={class:"bootstrap-styles me-1"},W8t={class:"bootstrap-styles me-1"},Ike=123,Mke=363,H8t=re({__name:"CustomComponentSectionItem",props:{deps:{},theme:{},componentTemplate:{},componentSection:{},componentLibrary:{},component:{},componentName:{}},emits:["componentLibrarySectionItemRemoved","componentLibrarySectionItemUpdated"],setup(t,{emit:e}){Cd(g=>({v881dca2c:u.value+"px",v4b9a13ee:c.value+"px"}));const n=t,o={editComponentButton:Nke({localeKey:n.deps.localeKey}).editComponentButton,deleteComponentButton:Nke({localeKey:n.deps.localeKey}).deleteComponentButton},r=Le({isPreviewWindowShown:!1,isContextMenuShown:!1,isDeleteComponentLibrarySectionItemModalWindow:!1,isEditComponentWindowShown:!1}),i=Rt(null),s=Rt(null),a=Rt(null),l=Rt(null),c=ne(()=>Ike),u=ne(()=>Mke),d=g=>{const C=Math.round(g*(Mke/n.theme.BodyWidth));i.value&&C>=Ike&&i.value.classList.add("allow-animation")},{floatingStyles:h}=zF(s,i,{placement:"right",whileElementsMounted:WF,middleware:[HF(10)]}),{floatingStyles:p}=zF(a,l,{placement:"right",whileElementsMounted:WF,middleware:[HF(20)]}),m=g=>{const C=g.parentElement;C&&(C.style.height=g.getBoundingClientRect().height+"px")},f=e;return(g,C)=>(E(),R("div",M8t,[b("div",$8t,[b("div",{ref_key:"componentPreviewElmRef",ref:s,class:"bootstrap-styles input__settings-text__item rounded-1 border shadow-hover-1 overflow-hidden position-relative"},[b("div",{class:"bootstrap-styles email-component__container section-item__drag-handler rounded-top overflow-hidden",onMouseenter:C[1]||(C[1]=Nt(()=>{r.isPreviewWindowShown=!0,r.isEditComponentWindowShown=!1},["stop"])),onMouseleave:C[2]||(C[2]=v=>r.isPreviewWindowShown=!1)},[I(eH,{onScaledElement:C[0]||(C[0]=v=>m(v))},{default:Bt(()=>[I(HM,null,{default:Bt(()=>[I(rI,{class:"bootstrap-styles pe-none",emailComponent:n.componentTemplate,deps:n.deps.emailComponentDeps,theme:n.theme,path:[],selectedElementPath:[],style:Te({width:`${n.theme.BodyWidth}px`})},null,8,["emailComponent","deps","theme","style"])]),_:1})]),_:1})],32),b("div",{class:"bootstrap-styles input__settings-text__item__title bg-white border-top rounded-bottom preview-component__label d-flex justify-content-between align-items-center section-item__drag-handler",onMouseenter:C[3]||(C[3]=Nt(()=>{r.isPreviewWindowShown=!0,r.isEditComponentWindowShown=!1},["stop"])),onMouseleave:C[4]||(C[4]=v=>r.isPreviewWindowShown=!1)},[b("div",O8t,W(n.componentName),1)],32),b("button",{ref_key:"componentPreviewContextButtonElmRef",ref:a,class:G(["preview-component__context-button",{"preview-component__context-button__active":r.isContextMenuShown}]),onClick:C[5]||(C[5]=()=>{r.isContextMenuShown=!r.isContextMenuShown,r.isPreviewWindowShown=!1}),onBlur:C[6]||(C[6]=v=>r.isContextMenuShown=!1)},[b("i",P8t,[I(B9e)])],34)],512),Ke(b("div",{ref_key:"componentPreviewPopoverElmRef",ref:i,class:"preview-window bootstrap-styles border rounded-1 bg-white overflow-hidden position-absolute z-index-3 shadow-1 bottom-0",style:Te(N(h))},[I(eH,null,{default:Bt(()=>[Ke(I(rI,{deps:n.deps.emailComponentDeps,theme:n.theme,class:"preview-window__email-component",emailComponent:n.componentTemplate,path:[],selectedElementPath:[],style:Te({width:`${n.theme.BodyWidth}px`})},null,8,["deps","theme","emailComponent","style"]),[[N(jw),({height:v})=>d(v)]])]),_:1})],4),[[RL,r.isPreviewWindowShown]]),r.isContextMenuShown?(E(),R("div",{key:0,ref_key:"componentPreviewContextMenuElmRef",ref:l,class:"preview-component__context-menu bootstrap-styles rounded-1 border shadow-1 bg-white position-absolute z-index-3",style:Te(N(p)),onMouseleave:C[9]||(C[9]=v=>r.isContextMenuShown=!1)},[b("button",{class:"edit-button",onMousedown:C[7]||(C[7]=v=>r.isEditComponentWindowShown=!0)},[b("i",V8t,[I(D9e)]),no(" "+W(o.editComponentButton),1)],32),b("button",{class:"remove-button",onMousedown:C[8]||(C[8]=v=>r.isDeleteComponentLibrarySectionItemModalWindow=!0)},[b("i",W8t,[I(u$)]),no(" "+W(o.deleteComponentButton),1)],32)],36)):oe("",!0)]),(E(),Q(yo,{to:"body",defer:""},[r.isEditComponentWindowShown?(E(),Q(B8t,{key:0,deps:n.deps.editComponentLibrarySectionItemModalWindowDeps,componentId:n.component.sectionItemId,componentName:n.component.sectionItemName,componentSectionId:n.componentSection.sectionId,currentComponentSectionId:n.componentSection.sectionId,currentComponentSectionName:n.componentSection.sectionName,onComponentLibrarySectionItemUpdated:C[10]||(C[10]=()=>{f("componentLibrarySectionItemUpdated"),r.isEditComponentWindowShown=!1}),onCancel:C[11]||(C[11]=v=>r.isEditComponentWindowShown=!1)},null,8,["deps","componentId","componentName","componentSectionId","currentComponentSectionId","currentComponentSectionName"])):oe("",!0)])),(E(),Q(yo,{to:"body",defer:""},[r.isDeleteComponentLibrarySectionItemModalWindow?(E(),Q(b8t,{key:0,deps:n.deps.deleteComponentLibrarySectionItemModalWindowDeps,sectionItemId:n.component.sectionItemId,sectionItemName:n.component.sectionItemName,onOnCanceled:C[12]||(C[12]=v=>r.isDeleteComponentLibrarySectionItemModalWindow=!1),onOnRemoveConfirmed:C[13]||(C[13]=()=>{f("componentLibrarySectionItemRemoved"),r.isDeleteComponentLibrarySectionItemModalWindow=!1})},null,8,["deps","sectionItemId","sectionItemName"])):oe("",!0)]))]))}}),z8t=ve(H8t,[["__scopeId","data-v-2c3c40df"]]),j8t={title:"Delete section",description:"Are you sure you want to delete the section",cancelButton:"Cancel",applyButton:"Delete",errorButtonTooltip:"Error"},K8t={title:"Удаление секции",description:"Вы действительно хотите удалить секцию",cancelButton:"Отмена",applyButton:"Удалить",errorButtonTooltip:"Ошибка"},Z_=ht({en:j8t,ru:K8t}),U8t={},q8t={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function J8t(t,e){return E(),R("svg",q8t,[...e[0]||(e[0]=[b("path",{d:"M8.00001 14.6667C4.31811 14.6667 1.33334 11.6819 1.33334 8.00004C1.33334 4.31814 4.31811 1.33337 8.00001 1.33337C11.6819 1.33337 14.6667 4.31814 14.6667 8.00004C14.6667 11.6819 11.6819 14.6667 8.00001 14.6667ZM7.33334 10V11.3334H8.66668V10H7.33334ZM7.33334 4.66671V8.66671H8.66668V4.66671H7.33334Z",fill:"var(--white)"},null,-1)])])}const I9e=ve(U8t,[["render",J8t]]),G8t={class:"bootstrap-styles px-11 py-7 text-start"},Y8t={key:0},Z8t={key:2,class:"bootstrap-styles d-flex align-items-center justify-content-center"},X8t=re({__name:"DeleteComponentLibrarySectionModalWindow",props:{deps:{},sectionId:{},sectionName:{}},emits:["onCanceled","onRemoveConfirmed"],setup(t,{emit:e}){const n=t,o={title:Z_({localeKey:n.deps.localeKey}).title,description:Z_({localeKey:n.deps.localeKey}).description,cancelButton:Z_({localeKey:n.deps.localeKey}).cancelButton,applyButton:Z_({localeKey:n.deps.localeKey}).applyButton,errorButtonTooltip:Z_({localeKey:n.deps.localeKey}).errorButtonTooltip},r=Le({deleteComponentLibrarySectionButtonState:"NoChanges"}),i=async()=>{r.deleteComponentLibrarySectionButtonState="Deleting";try{await n.deps.deleteComponentLibrarySection({sectionId:n.sectionId})==="Success"?s("onRemoveConfirmed"):r.deleteComponentLibrarySectionButtonState="Error"}catch{r.deleteComponentLibrarySectionButtonState="Error"}},s=e;return(a,l)=>(E(),Q(bd,{class:"remove-element-confirm-modal-window",headerText:o.title,onClose:l[2]||(l[2]=()=>s("onCanceled"))},{body:Bt(()=>[b("div",G8t,W(o.description)+" «"+W(n.sectionName)+"»? ",1)]),"footer-actions":Bt(()=>[b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:l[0]||(l[0]=Nt(c=>s("onCanceled"),["stop"]))},W(o.cancelButton),1),Ke((E(),R("button",{class:G(["modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white cursor-pointer position-relative remove-element-confirm__button",{"delete-button__error":r.deleteComponentLibrarySectionButtonState==="Error","delete-button__deleting":r.deleteComponentLibrarySectionButtonState==="Deleting"}]),onClick:l[1]||(l[1]=Nt(c=>i(),["stop"]))},[r.deleteComponentLibrarySectionButtonState==="NoChanges"?(E(),R("span",Y8t,W(o.applyButton),1)):oe("",!0),r.deleteComponentLibrarySectionButtonState==="Deleting"?(E(),Q(GC,{key:1,class:"preloader"})):oe("",!0),r.deleteComponentLibrarySectionButtonState==="Error"?(E(),R("i",Z8t,[I(I9e,{class:"bootstrap-styles me-0"})])):oe("",!0)],2)),[[N(Xn),{title:r.deleteComponentLibrarySectionButtonState==="Error"?o.errorButtonTooltip:"",placement:"bottom"}]])]),_:1},8,["headerText"]))}}),Q8t={emptySectionText:"No components in this group",deleteSectionButton:"Delete section"},e9t={emptySectionText:"В этой группе нет компонентов",deleteSectionButton:"Удалить секцию"},$ke=ht({en:Q8t,ru:e9t}),t9t={class:"bootstrap-styles d-flex flex-column justify-content-center align-items-center h-100 pe-7"},n9t={class:"bootstrap-styles mt-auto d-flex flex-column justify-content-center align-items-center"},o9t={class:"bootstrap-styles text-gray-600"},r9t=re({__name:"EmptyComponentSection",props:{deps:{},sectionId:{},sectionName:{}},emits:["onComponentLibrarySectionRemoved"],setup(t,{emit:e}){const n=t,o={emptySectionText:$ke({localeKey:n.deps.localeKey}).emptySectionText,deleteSectionButton:$ke({localeKey:n.deps.localeKey}).deleteSectionButton},r=Le({isRemoveComponentLibrarySectionModalWindowShown:!1}),i=()=>{s("onComponentLibrarySectionRemoved"),r.isRemoveComponentLibrarySectionModalWindowShown=!1},s=e;return(a,l)=>(E(),R(Se,null,[b("div",t9t,[b("div",n9t,[I(N9e),b("p",o9t,W(o.emptySectionText),1)]),b("button",{class:"bootstrap-styles py-1 px-3 rounded-2 w-100 mt-auto section__remove-button",onClick:l[0]||(l[0]=c=>r.isRemoveComponentLibrarySectionModalWindowShown=!0)},[b("i",null,[I(u$)]),no(" "+W(o.deleteSectionButton),1)])]),(E(),Q(yo,{to:"body",defer:""},[r.isRemoveComponentLibrarySectionModalWindowShown?(E(),Q(X8t,{key:0,deps:n.deps.deleteComponentLibrarySectionModalWindowDeps,sectionId:n.sectionId,sectionName:n.sectionName,onOnCanceled:l[1]||(l[1]=c=>r.isRemoveComponentLibrarySectionModalWindowShown=!1),onOnRemoveConfirmed:l[2]||(l[2]=c=>i())},null,8,["deps","sectionId","sectionName"])):oe("",!0)]))],64))}}),i9t=ve(r9t,[["__scopeId","data-v-529a5d72"]]),s9t={cancelDragging:"Cancel",dropHere:"Drop here"},a9t={cancelDragging:"Отменить",dropHere:"Бросьте сюда"},Oke=ht({en:s9t,ru:a9t}),l9t={key:0,class:"bootstrap-styles h-100 overflow-hidden"},c9t=["data-drop-zone-cancel"],u9t=re({__name:"CustomComponentSection",props:{deps:{},theme:{},componentSection:{},componentLibrary:{},componentLibrarySectionUpdated:{type:Boolean}},emits:["back","componentLibrarySectionItemRemoved","componentLibrarySectionItemUpdated","onComponentDraggedFromLibrary","onComponentLibrarySectionRemoved"],setup(t,{emit:e}){const n=t,o={cancelDragging:Oke({localeKey:n.deps.localeKey}).cancelDragging,dropHere:Oke({localeKey:n.deps.localeKey}).dropHere},r=ne(()=>n.componentSection.componentList.map(u=>u.componentTemplate)),i=Le({isDragging:!1}),s=(u,d)=>{const h=u.to.classList.contains("_emailTemplateDropArea");i.isDragging=!1,h&&c("onComponentDraggedFromLibrary",d)},a={group:{name:"rowComponents",pull:"clone",put:!0},sort:!1,forceFallback:!1},l={group:{name:"rowComponents",pull:"clone",put:!1},sort:!1,forceFallback:!0,handle:".section-item__drag-handler",clone:()=>{}},c=e;return(u,d)=>(E(),R(Se,null,[I(IU,{title:n.componentSection.sectionName,onClick:d[0]||(d[0]=h=>c("back"))},null,8,["title"]),n.componentSection.componentList.length>0?(E(),R("div",l9t,[n.componentLibrarySectionUpdated?oe("",!0):(E(),Q(N(Kw),{key:0,class:"bootstrap-styles my-5",width:"216",height:"17"})),b("div",{class:G(["bootstrap-styles h-100 d-flex flex-column",{"is-dragging me-1":i.isDragging}])},[b("div",{class:"drop-zone bootstrap-styles h-100 justify-content-center align-items-center me-3","data-drop-zone-cancel":o.cancelDragging},[I(N(tI),go({class:"bootstrap-styles list-group h-100 w-100"},{list:[],...a}),{item:Bt(()=>[...d[7]||(d[7]=[])]),_:1},16)],8,c9t),I(N(tI),go({class:["bootstrap-styles preview-component-list me-14 pe-3 scrollable d-flex flex-column gap-6",{"is-dragging":i.isDragging}],modelValue:r.value,"onUpdate:modelValue":d[3]||(d[3]=h=>r.value=h)},l,{onStart:d[4]||(d[4]=h=>i.isDragging=!0),onEnd:d[5]||(d[5]=h=>{s(h,{index:h.newIndex,component:n.componentSection.componentList[h.oldIndex].componentTemplate})})}),{default:Bt(()=>[(E(!0),R(Se,null,At(n.componentSection.componentList,h=>(E(),Q(z8t,go({key:h.sectionItemId},{ref_for:!0},{"data-drop-here-message":o.dropHere},{deps:n.deps.componentSectionItemDeps,theme:n.theme,componentTemplate:h.componentTemplate,componentSection:n.componentSection,componentLibrary:n.componentLibrary,component:h,componentName:h.sectionItemName,onComponentLibrarySectionItemRemoved:d[1]||(d[1]=()=>c("componentLibrarySectionItemRemoved")),onComponentLibrarySectionItemUpdated:d[2]||(d[2]=()=>c("componentLibrarySectionItemUpdated"))}),null,16,["deps","theme","componentTemplate","componentSection","componentLibrary","component","componentName"]))),128))]),_:1},16,["class","modelValue"])],2)])):(E(),Q(i9t,{key:1,deps:n.deps.emptyComponentSectionDeps,sectionId:n.componentSection.sectionId,sectionName:n.componentSection.sectionName,onOnComponentLibrarySectionRemoved:d[6]||(d[6]=()=>{c("back"),c("onComponentLibrarySectionRemoved")})},null,8,["deps","sectionId","sectionName"]))],64))}}),d9t=ve(u9t,[["__scopeId","data-v-934c5ebe"]]),h9t={title:"New section",inputLabel:"Name",inputPlaceholder:"Section name...",cancelButton:"Cancel",applyButton:"Save"},p9t={title:"Новая секция",inputLabel:"Название",inputPlaceholder:"Название секции...",cancelButton:"Отмена",applyButton:"Сохранить"},X_=ht({en:h9t,ru:p9t}),m9t={class:"bootstrap-styles px-11 py-7 text-start"},f9t={class:"bootstrap-styles fw-bold mb-5"},g9t={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},y9t=["placeholder","disabled"],C9t=re({__name:"CreateComponentLibrarySectionModalWindow",props:{deps:{}},emits:["cancel","componentLibrarySectionCreated"],setup(t,{emit:e}){const n=t,o={title:X_({localeKey:n.deps.localeKey}).title,inputLabel:X_({localeKey:n.deps.localeKey}).inputLabel,inputPlaceholder:X_({localeKey:n.deps.localeKey}).inputPlaceholder,cancelButton:X_({localeKey:n.deps.localeKey}).cancelButton,applyButton:X_({localeKey:n.deps.localeKey}).applyButton},r=Le({componentSectionName:"",isLoaded:!0}),i=async()=>{r.componentSectionName.length!==0&&(r.isLoaded=!1,await n.deps.createComponentLibrarySection({sectionName:r.componentSectionName}),a("componentLibrarySectionCreated"))},s=()=>{a("cancel")},a=e;return(l,c)=>(E(),Q(bd,{class:"save-theme-modal-window",headerText:o.title,onClose:c[3]||(c[3]=()=>s())},{body:Bt(()=>[b("div",m9t,[b("label",f9t,W(o.inputLabel),1),b("div",g9t,[Ke(b("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.componentSectionName=u),type:"text",class:"bootstrap-styles w-100",placeholder:o.inputPlaceholder,disabled:!r.isLoaded},null,8,y9t),[[Ea,r.componentSectionName],[N(Dg)]])])])]),"footer-actions":Bt(()=>[b("button",{class:G([{button__locked:!r.isLoaded},"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected"]),onClick:c[1]||(c[1]=Nt(u=>s(),["stop"]))},W(o.cancelButton),3),b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white cursor-pointer bg-color-selected button__hover-blue-400",onClick:c[2]||(c[2]=Nt(u=>i(),["stop"]))},[b("span",{class:G({"bootstrap-styles invisible":!r.isLoaded})},W(o.applyButton),3),I(GC,{class:G(["bootstrap-styles position-absolute",{invisible:r.isLoaded}])},null,8,["class"])])]),_:1},8,["headerText"]))}}),b9t={hideEmptySectionsCheckbox:"Hide empty sections",addComponentLibrarySectionButton:"Add section"},v9t={hideEmptySectionsCheckbox:"Скрыть пустые секции",addComponentLibrarySectionButton:"Добавить секцию"},Pke=ht({en:b9t,ru:v9t}),w9t={class:"bootstrap-styles h-100 d-flex flex-column overflow-hidden"},S9t={class:"bootstrap-styles list-group list-group-flush p-0 me-5"},x9t=["onClick"],T9t={key:0,class:"bootstrap-styles d-flex align-items-center w-100"},k9t={class:"bootstrap-styles me-1 w-100"},F9t={class:"bootstrap-styles d-flex align-items-center"},E9t={class:"bootstrap-styles icon-hover-stroke"},L9t={for:"button-hide-empty-component-section",class:"label__checkbox-input"},_9t={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1 icon-stroke"},A9t=re({__name:"CustomComponentLibrary",props:{deps:{},theme:{},componentLibrary:{},componentLibrarySectionUpdated:{type:Boolean}},emits:["componentLibrarySectionItemUpdated","componentLibrarySectionItemRemoved","componentLibrarySectionCreated","onComponentDraggedFromLibrary","onComponentLibrarySectionRemoved","onMenuOptionIndexChanged"],setup(t,{emit:e}){const n=t,o={hideEmptySectionsCheckbox:Pke({localeKey:n.deps.localeKey}).hideEmptySectionsCheckbox,addComponentLibrarySectionButton:Pke({localeKey:n.deps.localeKey}).addComponentLibrarySectionButton},r=Le({menuOptionIndex:null,isLoaded:!0,removedSectionIndex:null,isAddComponentLibrarySectionModalWindowShown:!1,isHiddenEmptyComponentLibrarySection:n.componentLibrary.some(c=>c?.componentList?.length>0)}),i=()=>{r.isHiddenEmptyComponentLibrarySection=!r.isHiddenEmptyComponentLibrarySection},s=()=>{l("componentLibrarySectionCreated"),r.isHiddenEmptyComponentLibrarySection=!1,r.isAddComponentLibrarySectionModalWindowShown=!1,r.isLoaded=!1},a=c=>{l("onComponentLibrarySectionRemoved"),r.removedSectionIndex=c};on(()=>n.componentLibrary,c=>{c&&(r.isLoaded=!0,r.removedSectionIndex=null)});const l=e;return(c,u)=>(E(),R("div",w9t,[b("div",{class:G(["bootstrap-styles h-100 flex-column me-14 overflow-scroll",[r.menuOptionIndex===null?"d-flex":"d-none"]])},[b("div",S9t,[(E(!0),R(Se,null,At(n.componentLibrary,(d,h)=>(E(),R("button",{key:h,class:G(["bootstrap-styles list-group-item py-5 px-0 text-start border-gray-200 justify-content-between",[r.isHiddenEmptyComponentLibrarySection&&d.componentList.length===0?"d-none":"d-flex"]]),onClick:()=>{r.menuOptionIndex=h,l("onMenuOptionIndexChanged")}},[r.removedSectionIndex!==h?(E(),R("span",T9t,[b("span",k9t,W(d.sectionName),1),b("span",F9t,[b("span",{class:G(["bootstrap-styles componentLibrarySection-quantity px-1 me-1",{empty:d.componentList.length===0}])},W(d.componentList.length),3),b("i",E9t,[I(NU)])])])):oe("",!0),r.removedSectionIndex===h?(E(),Q(N(Kw),{key:1,width:"216",height:"17"})):oe("",!0)],10,x9t))),128)),!r.isLoaded&&!r.isHiddenEmptyComponentLibrarySection?(E(),Q(N(Kw),{key:0,class:"bootstrap-styles my-5",width:"216",height:"17"})):oe("",!0)])],2),(E(!0),R(Se,null,At(n.componentLibrary,(d,h)=>(E(),R("div",{key:h,class:G({"bootstrap-styles h-100 d-flex flex-column":r.menuOptionIndex===h})},[r.menuOptionIndex===h?(E(),Q(d9t,{key:0,theme:n.theme,deps:n.deps.componentSectionDeps,componentLibrary:n.componentLibrary,componentSection:d,componentLibrarySectionUpdated:n.componentLibrarySectionUpdated,onBack:u[0]||(u[0]=()=>{r.menuOptionIndex=null,l("onMenuOptionIndexChanged")}),onComponentLibrarySectionItemUpdated:u[1]||(u[1]=p=>l("componentLibrarySectionItemUpdated")),onComponentLibrarySectionItemRemoved:u[2]||(u[2]=p=>l("componentLibrarySectionItemRemoved")),onOnComponentDraggedFromLibrary:u[3]||(u[3]=p=>l("onComponentDraggedFromLibrary",p)),onOnComponentLibrarySectionRemoved:p=>a(h)},null,8,["theme","deps","componentLibrary","componentSection","componentLibrarySectionUpdated","onOnComponentLibrarySectionRemoved"])):oe("",!0)],2))),128)),b("div",{class:G(["bootstrap-styles mt-7 me-7 mb-7",[r.menuOptionIndex===null?"d-flex":"d-none"]])},[I(th,{id:"button-hide-empty-component-section",checked:r.isHiddenEmptyComponentLibrarySection,onChange:u[4]||(u[4]=d=>i())},null,8,["checked"]),b("label",L9t,W(o.hideEmptySectionsCheckbox),1)],2),b("button",{class:G(["bootstrap-styles d-flex align-items-center justify-content-center py-1 px-3 me-7 rounded-2 button__hover-blue-100 bg-blue-selected text-color-selected font-weight-500",[r.menuOptionIndex===null?"d-flex":"d-none"]]),onClick:u[5]||(u[5]=d=>r.isAddComponentLibrarySectionModalWindowShown=!0)},[b("i",_9t,[I(R9e)]),no(" "+W(o.addComponentLibrarySectionButton),1)],2),(E(),Q(yo,{to:"body",defer:""},[r.isAddComponentLibrarySectionModalWindowShown?(E(),Q(C9t,{key:0,deps:n.deps.createComponentLibrarySectionModalWindowDeps,onComponentLibrarySectionCreated:u[6]||(u[6]=d=>s()),onCancel:u[7]||(u[7]=d=>r.isAddComponentLibrarySectionModalWindowShown=!1)},null,8,["deps"])):oe("",!0)]))]))}}),R9t={class:"bootstrap-styles preview-component user-select-none"},D9t={class:"bootstrap-styles preview-component-container"},B9t={class:"bootstrap-styles email-component__container section-item__drag-handler rounded-top overflow-hidden"},N9t={class:"bootstrap-styles input__settings-text__item__title bg-white border-top rounded-bottom preview-component__label d-flex justify-content-between align-items-center section-item__drag-handler"},I9t={class:"bootstrap-styles py-1 ps-2 pe-13 w-100"},Vke=123,Wke=363,M9t=re({__name:"DefaultComponentSectionItem",props:{deps:{},theme:{},componentTemplate:{},componentName:{}},setup(t){Cd(u=>({v3d2ce460:s.value+"px",ff1f495a:i.value+"px"}));const e=t,n=Le({isPreviewWindowShown:!1}),o=Rt(null),r=Rt(null),i=ne(()=>Vke),s=ne(()=>Wke),a=u=>{const d=Math.round(u*(Wke/e.theme.BodyWidth));o.value&&d>=Vke&&o.value.classList.add("allow-animation")},{floatingStyles:l}=zF(r,o,{placement:"right",whileElementsMounted:WF,middleware:[HF(10)]}),c=u=>{const d=u.parentElement;d&&(d.style.height=u.getBoundingClientRect().height+"px")};return(u,d)=>(E(),R("div",R9t,[b("div",D9t,[b("div",{ref_key:"componentPreviewElmRef",ref:r,class:"bootstrap-styles input__settings-text__item rounded-1 border shadow-hover-1 overflow-hidden position-relative",onMouseenter:d[1]||(d[1]=Nt(()=>{n.isPreviewWindowShown=!0},["stop"])),onMouseleave:d[2]||(d[2]=h=>n.isPreviewWindowShown=!1)},[b("div",B9t,[I(eH,{onScaledElement:d[0]||(d[0]=h=>c(h))},{default:Bt(()=>[I(HM,null,{default:Bt(()=>[I(rI,{class:"bootstrap-styles pe-none",emailComponent:e.componentTemplate,deps:e.deps.emailComponentDeps,theme:e.theme,path:[],selectedElementPath:[],style:Te({width:`${e.theme.BodyWidth}px`})},null,8,["emailComponent","deps","theme","style"])]),_:1})]),_:1})]),b("div",N9t,[b("div",I9t,W(e.componentName),1)])],544),Ke(b("div",{ref_key:"componentPreviewPopoverElmRef",ref:o,class:"preview-window bootstrap-styles border rounded-1 bg-white overflow-hidden position-absolute z-index-3 shadow-1 bottom-0",style:Te(N(l))},[I(eH,null,{default:Bt(()=>[Ke(I(rI,{deps:e.deps.emailComponentDeps,theme:e.theme,class:"preview-window__email-component",emailComponent:e.componentTemplate,path:[],selectedElementPath:[],style:Te({width:`${e.theme.BodyWidth}px`})},null,8,["deps","theme","emailComponent","style"]),[[N(jw),({height:h})=>a(h)]])]),_:1})],4),[[RL,n.isPreviewWindowShown]])])]))}}),$9t=ve(M9t,[["__scopeId","data-v-98d6c4b5"]]),O9t={cancelDragging:"Cancel",dropHere:"Drop here"},P9t={cancelDragging:"Отменить",dropHere:"Бросьте сюда"},Hke=ht({en:O9t,ru:P9t}),V9t={key:0,class:"bootstrap-styles h-100 overflow-hidden"},W9t=["data-drop-zone-cancel"],H9t=re({__name:"DefaultComponentSection",props:{deps:{},theme:{},componentSection:{},componentLibrary:{}},emits:["back","onComponentDraggedFromLibrary"],setup(t,{emit:e}){const n=t,o={cancelDragging:Hke({localeKey:n.deps.localeKey}).cancelDragging,dropHere:Hke({localeKey:n.deps.localeKey}).dropHere},r=ne(()=>n.componentSection.componentList.map(u=>u.componentTemplate)),i=Le({isDragging:!1}),s=(u,d)=>{const h=u.to.classList.contains("_emailTemplateDropArea");i.isDragging=!1,h&&c("onComponentDraggedFromLibrary",d)},a={group:{name:"rowComponents",pull:"clone",put:!0},sort:!1,forceFallback:!1},l={group:{name:"rowComponents",pull:"clone",put:!1},sort:!1,forceFallback:!0,handle:".section-item__drag-handler",clone:()=>{}},c=e;return(u,d)=>(E(),R(Se,null,[I(IU,{title:n.componentSection.sectionName,onClick:d[0]||(d[0]=h=>c("back"))},null,8,["title"]),n.componentSection.componentList.length>0?(E(),R("div",V9t,[b("div",{class:G(["bootstrap-styles h-100 d-flex flex-column",{"is-dragging me-1":i.isDragging}])},[b("div",{class:"drop-zone bootstrap-styles h-100 justify-content-center align-items-center me-3","data-drop-zone-cancel":o.cancelDragging},[I(N(tI),go({class:"bootstrap-styles list-group h-100 w-100"},{list:[],...a}),{item:Bt(()=>[...d[4]||(d[4]=[])]),_:1},16)],8,W9t),I(N(tI),go({class:["bootstrap-styles preview-component-list me-14 pe-3 scrollable d-flex flex-column gap-6",{"is-dragging":i.isDragging}],modelValue:r.value,"onUpdate:modelValue":d[1]||(d[1]=h=>r.value=h)},l,{onStart:d[2]||(d[2]=h=>i.isDragging=!0),onEnd:d[3]||(d[3]=h=>{s(h,{index:h.newIndex,component:n.componentSection.componentList[h.oldIndex].componentTemplate})})}),{default:Bt(()=>[(E(!0),R(Se,null,At(n.componentSection.componentList,h=>(E(),Q($9t,go({key:h.sectionItemId},{ref_for:!0},{"data-drop-here-message":o.dropHere},{deps:n.deps.componentSectionItemDeps,theme:n.theme,componentTemplate:h.componentTemplate,componentName:h.sectionItemName}),null,16,["deps","theme","componentTemplate","componentName"]))),128))]),_:1},16,["class","modelValue"])],2)])):oe("",!0)],64))}}),z9t=ve(H9t,[["__scopeId","data-v-4376738a"]]),j9t={class:"bootstrap-styles h-100 d-flex flex-column overflow-hidden"},K9t={class:"bootstrap-styles list-group list-group-flush p-0 me-5"},U9t=["onClick"],q9t={class:"bootstrap-styles me-1"},J9t={class:"bootstrap-styles d-flex align-items-center"},G9t={class:"bootstrap-styles componentLibrarySection-quantity px-1 me-1"},Y9t={class:"bootstrap-styles icon-hover-stroke"},Z9t=re({__name:"DefaultComponentLibrary",props:{deps:{},theme:{}},emits:["componentLibrarySectionItemUpdated","componentLibrarySectionItemRemoved","componentLibrarySectionCreated","onComponentDraggedFromLibrary","onComponentLibrarySectionRemoved","onMenuOptionIndexChanged"],setup(t,{emit:e}){const n=t,o=Le({menuOptionIndex:null}),r=e;return(i,s)=>(E(),R("div",j9t,[b("div",{class:G(["bootstrap-styles h-100 flex-column me-14 overflow-scroll",[o.menuOptionIndex===null?"d-flex":"d-none"]])},[b("div",K9t,[(E(!0),R(Se,null,At(n.deps.defaultComponentLibrary,(a,l)=>(E(),R("button",{key:l,class:"bootstrap-styles d-flex list-group-item py-5 px-0 text-start border-gray-200 justify-content-between",onClick:()=>{o.menuOptionIndex=l,r("onMenuOptionIndexChanged")}},[b("span",q9t,W(a.sectionName),1),b("span",J9t,[b("span",G9t,W(a.componentList.length),1),b("i",Y9t,[I(NU)])])],8,U9t))),128))])],2),(E(!0),R(Se,null,At(n.deps.defaultComponentLibrary,(a,l)=>(E(),R("div",{key:l,class:G({"bootstrap-styles h-100 d-flex flex-column":o.menuOptionIndex===l})},[o.menuOptionIndex===l?(E(),Q(z9t,{key:0,theme:n.theme,deps:n.deps.componentSectionDeps,componentLibrary:n.deps.defaultComponentLibrary,componentSection:a,onBack:s[0]||(s[0]=()=>{o.menuOptionIndex=null,r("onMenuOptionIndexChanged")}),onOnComponentDraggedFromLibrary:s[1]||(s[1]=c=>r("onComponentDraggedFromLibrary",c))},null,8,["theme","deps","componentLibrary","componentSection"])):oe("",!0)],2))),128))]))}}),X9t={title:"Components",myComponentsButton:"Custom",defaultComponentsButton:"Default"},Q9t={title:"Компоненты",myComponentsButton:"Мои",defaultComponentsButton:"Стандартные"},MY=ht({en:X9t,ru:Q9t}),eKt={class:"bootstrap-styles scrollable d-block h-100"},tKt={class:"bootstrap-styles flex-column gap-13 d-flex h-100"},nKt=re({__name:"ComponentLibrary",props:{deps:{},theme:{},componentLibrary:{},componentLibrarySectionUpdated:{type:Boolean}},emits:["componentLibrarySectionItemUpdated","componentLibrarySectionCreated","componentLibrarySectionItemRemoved","onCustomComponentDraggedFromLibrary","onDefaultComponentDraggedFromLibrary","onComponentLibrarySectionRemoved"],setup(t,{emit:e}){const n=t,o=n.componentLibrary.some(l=>l.componentList.length>0)?"custom":"default",r=Le({componentLibrarySourceKey:o,isHeaderShow:!0}),i={title:MY({localeKey:n.deps.localeKey}).title,myComponentsButton:MY({localeKey:n.deps.localeKey}).myComponentsButton,defaultComponentsButton:MY({localeKey:n.deps.localeKey}).defaultComponentsButton},s={custom:i.myComponentsButton,default:i.defaultComponentsButton},a=e;return(l,c)=>(E(),R("div",eKt,[b("div",tKt,[b("h2",{class:G(["bootstrap-styles fs-6 fw-bold mb-0 me-7",{"d-none":!r.isHeaderShow}])},W(i.title),3),b("div",{class:G(["bootstrap-styles me-7",{"d-none":!r.isHeaderShow}])},[I(kU,{initialTab:N(o),tabList:s,onOnTabClicked:c[0]||(c[0]=u=>r.componentLibrarySourceKey=u)},null,8,["initialTab"])],2),r.componentLibrarySourceKey==="custom"?(E(),Q(A9t,{key:0,deps:n.deps.customComponentLibraryDeps,theme:n.theme,componentLibrary:n.componentLibrary,componentLibrarySectionUpdated:n.componentLibrarySectionUpdated,onComponentLibrarySectionCreated:c[1]||(c[1]=u=>a("componentLibrarySectionCreated")),onComponentLibrarySectionItemUpdated:c[2]||(c[2]=u=>a("componentLibrarySectionItemUpdated")),onComponentLibrarySectionItemRemoved:c[3]||(c[3]=u=>a("componentLibrarySectionItemRemoved")),onOnComponentDraggedFromLibrary:c[4]||(c[4]=u=>a("onCustomComponentDraggedFromLibrary",u)),onOnComponentLibrarySectionRemoved:c[5]||(c[5]=u=>{a("onComponentLibrarySectionRemoved")}),onOnMenuOptionIndexChanged:c[6]||(c[6]=u=>r.isHeaderShow=!r.isHeaderShow)},null,8,["deps","theme","componentLibrary","componentLibrarySectionUpdated"])):oe("",!0),r.componentLibrarySourceKey==="default"?(E(),Q(Z9t,{key:1,deps:n.deps.defaultComponentLibraryDeps,theme:n.theme,onOnComponentDraggedFromLibrary:c[7]||(c[7]=u=>a("onCustomComponentDraggedFromLibrary",u)),onOnMenuOptionIndexChanged:c[8]||(c[8]=u=>r.isHeaderShow=!r.isHeaderShow)},null,8,["deps","theme"])):oe("",!0)])]))}}),oKt={},rKt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function iKt(t,e){return E(),R("svg",rKt,[...e[0]||(e[0]=[b("path",{d:"M2 8H14",stroke:"var(--gray-500)","stroke-width":"1.5"},null,-1)])])}const sKt=ve(oKt,[["render",iKt],["__scopeId","data-v-9ae22096"]]),aKt={},lKt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function cKt(t,e){return E(),R("svg",lKt,[...e[0]||(e[0]=[b("path",{d:"M2 8H14",stroke:"var(--gray-500)","stroke-width":"1.5"},null,-1),b("path",{d:"M8 2L8 14",stroke:"var(--gray-500)","stroke-width":"1.5"},null,-1)])])}const uKt=ve(aKt,[["render",cKt],["__scopeId","data-v-c5c80d4d"]]),dKt={class:"bootstrap-styles d-flex justify-content-between px-3 py-1 bg-color-input border rounded-2"},hKt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},pKt=["value"],mKt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},cO=5,zl=re({__name:"Counter",props:{value:{}},emits:["update:changeValue"],setup(t,{emit:e}){const n=t,o=()=>{n.value>=cO&&i("update:changeValue",Number(n.value-cO)),n.value<=cO&&i("update:changeValue",Number(n.value-n.value))},r=()=>{i("update:changeValue",Number(n.value+cO))},i=e;return(s,a)=>(E(),R("div",dKt,[b("button",{class:"bootstrap-styles d-flex justify-content-center align-center",onClick:a[0]||(a[0]=l=>o())},[b("i",hKt,[I(sKt)])]),b("input",{type:"number",class:"bootstrap-styles w-100 text-center",value:n.value,min:0,onInput:a[1]||(a[1]=l=>i("update:changeValue",Number(l.target.value)))},null,40,pKt),b("button",{class:"bootstrap-styles d-flex justify-content-center align-center",onClick:a[2]||(a[2]=l=>r())},[b("i",mKt,[I(uKt)])])]))}}),fKt={smallLabel:"Small",mediumLabel:"Medium",largeLabel:"Large",hugeLabel:"Huge",buttonLabel:"Buttons",buttonLeftRightLabel:"Left, right",buttonTopBottomLabel:"Top, bottom"},gKt={smallLabel:"Маленькие",mediumLabel:"Средние",largeLabel:"Большие",hugeLabel:"Гигантские",buttonLabel:"У кнопок",buttonLeftRightLabel:"Слева, справа",buttonTopBottomLabel:"Сверху, снизу"},a1=ht({en:fKt,ru:gKt}),yKt={class:"bootstrap-styles row gx-0"},CKt={class:"bootstrap-styles col-6"},bKt={class:"bootstrap-styles col-6 d-flex align-items-center"},vKt={class:"bootstrap-styles ps-5 text-gray-600"},wKt={class:"bootstrap-styles row gx-0"},SKt={class:"bootstrap-styles col-6"},xKt={class:"bootstrap-styles col-6 d-flex align-items-center"},TKt={class:"bootstrap-styles ps-5 text-gray-600"},kKt={class:"bootstrap-styles row gx-0"},FKt={class:"bootstrap-styles col-6"},EKt={class:"bootstrap-styles col-6 d-flex align-items-center"},LKt={class:"bootstrap-styles ps-5 text-gray-600"},_Kt={class:"bootstrap-styles row gx-0 mb-5"},AKt={class:"bootstrap-styles col-6"},RKt={class:"bootstrap-styles col-6 d-flex align-items-center"},DKt={class:"bootstrap-styles ps-5 text-gray-600"},BKt={class:"bootstrap-styles fw-bold mb-1"},NKt={class:"bootstrap-styles row gx-0"},IKt={class:"bootstrap-styles col-6"},MKt={class:"bootstrap-styles col-6 d-flex align-items-center"},$Kt={class:"bootstrap-styles ps-5 text-gray-600"},OKt={class:"bootstrap-styles row gx-0 mb-5"},PKt={class:"bootstrap-styles col-6"},VKt={class:"bootstrap-styles col-6 d-flex align-items-center"},WKt={class:"bootstrap-styles ps-5 text-gray-600"},HKt=re({__name:"ThemePaddingSettings",props:{deps:{},themeComponentPaddings:{},themeButtonPaddings:{}},emits:["update:themeComponentPaddingsChanged","update:themeButtonPaddingsChanged"],setup(t,{emit:e}){const n=t,o={smallLabel:a1({localeKey:n.deps.localeKey}).smallLabel,mediumLabel:a1({localeKey:n.deps.localeKey}).mediumLabel,largeLabel:a1({localeKey:n.deps.localeKey}).largeLabel,hugeLabel:a1({localeKey:n.deps.localeKey}).hugeLabel,buttonLabel:a1({localeKey:n.deps.localeKey}).buttonLabel,buttonLeftRightLabel:a1({localeKey:n.deps.localeKey}).buttonLeftRightLabel,buttonTopBottomLabel:a1({localeKey:n.deps.localeKey}).buttonTopBottomLabel},r=e;return(i,s)=>(E(),R(Se,null,[b("div",yKt,[b("div",CKt,[I(zl,{value:n.themeComponentPaddings.Small,"onUpdate:changeValue":s[0]||(s[0]=a=>r("update:themeComponentPaddingsChanged",{...n.themeComponentPaddings,Small:a}))},null,8,["value"])]),b("div",bKt,[b("label",vKt,W(o.smallLabel),1)])]),b("div",wKt,[b("div",SKt,[I(zl,{value:n.themeComponentPaddings.Medium,"onUpdate:changeValue":s[1]||(s[1]=a=>r("update:themeComponentPaddingsChanged",{...n.themeComponentPaddings,Medium:a}))},null,8,["value"])]),b("div",xKt,[b("label",TKt,W(o.mediumLabel),1)])]),b("div",kKt,[b("div",FKt,[I(zl,{value:n.themeComponentPaddings.Large,"onUpdate:changeValue":s[2]||(s[2]=a=>r("update:themeComponentPaddingsChanged",{...n.themeComponentPaddings,Large:a}))},null,8,["value"])]),b("div",EKt,[b("label",LKt,W(o.largeLabel),1)])]),b("div",_Kt,[b("div",AKt,[I(zl,{value:n.themeComponentPaddings.Huge,"onUpdate:changeValue":s[3]||(s[3]=a=>r("update:themeComponentPaddingsChanged",{...n.themeComponentPaddings,Huge:a}))},null,8,["value"])]),b("div",RKt,[b("label",DKt,W(o.hugeLabel),1)])]),b("label",BKt,W(o.buttonLabel),1),b("div",NKt,[b("div",IKt,[I(zl,{value:n.themeButtonPaddings.LeftRight,"onUpdate:changeValue":s[4]||(s[4]=a=>r("update:themeButtonPaddingsChanged",{...n.themeButtonPaddings,LeftRight:a}))},null,8,["value"])]),b("div",MKt,[b("label",$Kt,W(o.buttonLeftRightLabel),1)])]),b("div",OKt,[b("div",PKt,[I(zl,{value:n.themeButtonPaddings.TopBottom,"onUpdate:changeValue":s[5]||(s[5]=a=>r("update:themeButtonPaddingsChanged",{...n.themeButtonPaddings,TopBottom:a}))},null,8,["value"])]),b("div",VKt,[b("label",WKt,W(o.buttonTopBottomLabel),1)])])],64))}}),zKt=["value"],jKt={class:"bootstrap-styles input-number__button-wrapper input-number__button-increment d-none position-absolute align-items-end justify-content-center",style:{right:"10px",top:"0",width:"16px",height:"16px"}},KKt={class:"bootstrap-styles input-number__button-wrapper input-number__button-decrement d-none position-absolute align-items-start justify-content-center",style:{right:"10px",bottom:"0",width:"16px",height:"16px"}},UKt=re({__name:"InputNumber",props:{modelValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=()=>{i("update:modelValue",Number(n.modelValue)+1)},r=()=>{n.modelValue!==0&&i("update:modelValue",Number(n.modelValue)-1)},i=e;return(s,a)=>(E(),R(Se,null,[b("input",{type:"number",class:"bootstrap-styles input-number__input",style:{width:"calc(100% - 20px)"},value:n.modelValue,"data-test":"input-number",onInput:a[0]||(a[0]=l=>i("update:modelValue",Number(l.target.value)))},null,40,zKt),b("div",jKt,[b("input",{type:"button",class:"bootstrap-styles input-number__button position-absolute",style:{width:"100%",height:"100%",top:"0",left:"0"},"data-test":"input-number__button-increment",onClick:o}),I(Ape)]),b("div",KKt,[b("input",{type:"button",class:"bootstrap-styles input-number__button position-absolute",style:{width:"100%",height:"100%",top:"0",left:"0"},"data-test":"input-number__button-decrement",onClick:r}),I(Rpe)])],64))}}),fr=ve(UKt,[["__scopeId","data-v-41f882ad"]]),qKt={manualComponentRadiusCheckbox:"Customize separately",cardLabel:"Cards",buttonLabel:"Buttons",bannerLabel:"Banners"},JKt={manualComponentRadiusCheckbox:"Настроить отдельно",cardLabel:"Карточки",buttonLabel:"Кнопки",bannerLabel:"Баннеры"},uO=ht({en:qKt,ru:JKt}),GKt={},YKt={class:"d-flex justify-content-center align-items-center"};function ZKt(t,e){return E(),R("i",YKt,[...e[0]||(e[0]=[b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[b("path",{d:"M14 12.6667V14H12.6667V12.6667H14ZM11.3333 12.6667V14H10V12.6667H11.3333ZM8.66667 12.6667V14H7.33333V12.6667H8.66667ZM6 12.6667V14H4.66667V12.6667H6ZM3.33333 12.6667V14H2V12.6667H3.33333ZM14 10V11.3333H12.6667V10H14ZM3.33333 10V11.3333H2V10H3.33333ZM3.33333 7.33333V8.66667H2V7.33333H3.33333ZM10.6667 2C12.4583 2 13.9211 3.41577 13.9969 5.18881L14 5.33333V8.66667H12.6667V5.33333C12.6667 4.27262 11.8298 3.39787 10.7837 3.33675L10.6667 3.33333H7.33333V2H10.6667ZM3.33333 4.66667V6H2V4.66667H3.33333ZM3.33333 2V3.33333H2V2H3.33333ZM6 2V3.33333H4.66667V2H6Z",fill:"var(--gray-500)"})],-1)])])}const nE=ve(GKt,[["render",ZKt]]),XKt={},QKt={class:"d-flex justify-content-center align-items-center"};function eUt(t,e){return E(),R("i",QKt,[...e[0]||(e[0]=[b("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("path",{d:"M2 12.6667V14H3.33333V12.6667H2ZM4.66667 12.6667V14H6V12.6667H4.66667ZM7.33333 12.6667V14H8.66667V12.6667H7.33333ZM10 12.6667V14H11.3333V12.6667H10ZM12.6667 12.6667V14H14V12.6667H12.6667ZM2 10V11.3333H3.33333V10H2ZM12.6667 10V11.3333H14V10H12.6667ZM12.6667 7.33333V8.66667H14V7.33333H12.6667ZM5.33333 2C3.54173 2 2.07887 3.41577 2.00307 5.18881L2 5.33333V8.66667H3.33333V5.33333C3.33333 4.27262 4.1702 3.39787 5.21627 3.33675L5.33333 3.33333H8.66667V2H5.33333ZM12.6667 4.66667V6H14V4.66667H12.6667ZM12.6667 2V3.33333H14V2H12.6667ZM10 2V3.33333H11.3333V2H10Z",fill:"#999999"})],-1)])])}const tUt=ve(XKt,[["render",eUt]]),nUt={},oUt={class:"d-flex justify-content-center align-items-center"};function rUt(t,e){return E(),R("i",oUt,[...e[0]||(e[0]=[b("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("path",{d:"M2 3.33333V2H3.33333V3.33333H2ZM4.66667 3.33333V2H6V3.33333H4.66667ZM7.33333 3.33333V2H8.66667V3.33333H7.33333ZM10 3.33333V2H11.3333V3.33333H10ZM12.6667 3.33333V2H14V3.33333H12.6667ZM2 6V4.66667H3.33333V6H2ZM12.6667 6V4.66667H14V6H12.6667ZM12.6667 8.66667V7.33333H14V8.66667H12.6667ZM5.33333 14C3.54173 14 2.07887 12.5842 2.00307 10.8112L2 10.6667V7.33333H3.33333V10.6667C3.33333 11.7274 4.1702 12.6021 5.21627 12.6633L5.33333 12.6667H8.66667V14H5.33333ZM12.6667 11.3333V10H14V11.3333H12.6667ZM12.6667 14V12.6667H14V14H12.6667ZM10 14V12.6667H11.3333V14H10Z",fill:"#999999"})],-1)])])}const iUt=ve(nUt,[["render",rUt]]),sUt={},aUt={class:"d-flex justify-content-center align-items-center"};function lUt(t,e){return E(),R("i",aUt,[...e[0]||(e[0]=[b("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("path",{d:"M14 3.33333V2H12.6667V3.33333H14ZM11.3333 3.33333V2H10V3.33333H11.3333ZM8.66667 3.33333V2H7.33333V3.33333H8.66667ZM6 3.33333V2H4.66667V3.33333H6ZM3.33333 3.33333V2H2V3.33333H3.33333ZM14 6V4.66667H12.6667V6H14ZM3.33333 6V4.66667H2V6H3.33333ZM3.33333 8.66667V7.33333H2V8.66667H3.33333ZM10.6667 14C12.4583 14 13.9211 12.5842 13.9969 10.8112L14 10.6667V7.33333H12.6667V10.6667C12.6667 11.7274 11.8298 12.6021 10.7837 12.6633L10.6667 12.6667H7.33333V14H10.6667ZM3.33333 11.3333V10H2V11.3333H3.33333ZM3.33333 14V12.6667H2V14H3.33333ZM6 14V12.6667H4.66667V14H6Z",fill:"#999999"})],-1)])])}const cUt=ve(sUt,[["render",lUt]]),uUt={class:"bootstrap-styles container-fluid"},dUt={class:"bootstrap-styles row row-cols-2 g-2"},hUt={class:"bootstrap-styles col-6"},pUt={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},mUt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},fUt={class:"bootstrap-styles col-6"},gUt={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},yUt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},CUt={class:"bootstrap-styles col-6"},bUt={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},vUt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},wUt={class:"bootstrap-styles col-6"},SUt={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},xUt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},$Y=re({__name:"ManualBorderRadiusSettings",props:{borderRadius:{}},emits:["onRadiusCardChanged"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("div",uUt,[b("div",dUt,[b("div",hUt,[b("div",pUt,[b("i",mUt,[I(tUt)]),I(fr,{modelValue:n.borderRadius.TopLeft,"onUpdate:modelValue":i[0]||(i[0]=s=>o("onRadiusCardChanged",{...n.borderRadius,TopLeft:s}))},null,8,["modelValue"])])]),b("div",fUt,[b("div",gUt,[b("i",yUt,[I(nE)]),I(fr,{modelValue:n.borderRadius.TopRight,"onUpdate:modelValue":i[1]||(i[1]=s=>o("onRadiusCardChanged",{...n.borderRadius,TopRight:s}))},null,8,["modelValue"])])]),b("div",CUt,[b("div",bUt,[b("i",vUt,[I(iUt)]),I(fr,{modelValue:n.borderRadius.BottomLeft,"onUpdate:modelValue":i[2]||(i[2]=s=>o("onRadiusCardChanged",{...n.borderRadius,BottomLeft:s}))},null,8,["modelValue"])])]),b("div",wUt,[b("div",SUt,[b("i",xUt,[I(cUt)]),I(fr,{modelValue:n.borderRadius.BottomRight,"onUpdate:modelValue":i[3]||(i[3]=s=>o("onRadiusCardChanged",{...n.borderRadius,BottomRight:s}))},null,8,["modelValue"])])])])]))}}),TUt={class:"bootstrap-styles"},kUt={class:"bootstrap-styles d-flex align-items-center mb-13"},FUt={for:"manual-component-radius-checkbox",class:"label__checkbox-input"},EUt={key:0,class:"bootstrap-styles row gx-2"},LUt={class:"bootstrap-styles col-4"},_Ut={class:"bootstrap-styles fw-bold mb-5"},AUt={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},RUt={class:"bootstrap-styles col-4"},DUt={class:"bootstrap-styles fw-bold mb-5"},BUt={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},NUt={class:"bootstrap-styles col-4"},IUt={class:"bootstrap-styles fw-bold mb-5"},MUt={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},$Ut={key:1},OUt={class:"bootstrap-styles fw-bold mb-5"},PUt={class:"bootstrap-styles fw-bold mb-5"},VUt={class:"bootstrap-styles fw-bold mb-5"},WUt=re({__name:"ThemeBorderRadiusSettings",props:{deps:{},themeBorderRadiusButtonSettings:{},themeBorderRadiusCardSettings:{},themeBorderRadiusBannerSettings:{}},emits:["update:themeBorderRadiusCardChanged","update:themeBorderRadiusButtonChanged","update:themeBorderRadiusBannerChanged"],setup(t,{emit:e}){const n=t,o={manualComponentRadiusCheckbox:uO({localeKey:n.deps.localeKey}).manualComponentRadiusCheckbox,cardLabel:uO({localeKey:n.deps.localeKey}).cardLabel,buttonLabel:uO({localeKey:n.deps.localeKey}).buttonLabel,bannerLabel:uO({localeKey:n.deps.localeKey}).bannerLabel},r=Le({manualComponentRadius:![n.themeBorderRadiusButtonSettings,n.themeBorderRadiusCardSettings,n.themeBorderRadiusBannerSettings].every(s=>{const[a,...l]=Object.values(s);return l.every(c=>c===a)})}),i=e;return(s,a)=>(E(),R(Se,null,[b("div",TUt,[b("div",kUt,[I(th,{id:"manual-component-radius-checkbox",checked:r.manualComponentRadius,onChange:a[0]||(a[0]=l=>r.manualComponentRadius=!r.manualComponentRadius)},null,8,["checked"]),b("label",FUt,W(o.manualComponentRadiusCheckbox),1)])]),r.manualComponentRadius?(E(),R("div",$Ut,[b("label",OUt,W(o.buttonLabel),1),I($Y,{borderRadius:n.themeBorderRadiusButtonSettings,class:"bootstrap-styles mb-13",onOnRadiusCardChanged:a[4]||(a[4]=l=>i("update:themeBorderRadiusButtonChanged",l))},null,8,["borderRadius"]),b("label",PUt,W(o.cardLabel),1),I($Y,{borderRadius:n.themeBorderRadiusCardSettings,class:"bootstrap-styles mb-13",onOnRadiusCardChanged:a[5]||(a[5]=l=>i("update:themeBorderRadiusCardChanged",l))},null,8,["borderRadius"]),b("label",VUt,W(o.bannerLabel),1),I($Y,{borderRadius:n.themeBorderRadiusBannerSettings,class:"bootstrap-styles mb-13",onOnRadiusCardChanged:a[6]||(a[6]=l=>i("update:themeBorderRadiusBannerChanged",l))},null,8,["borderRadius"])])):(E(),R("div",EUt,[b("div",LUt,[b("label",_Ut,W(o.buttonLabel),1),b("div",AUt,[I(fr,{modelValue:n.themeBorderRadiusButtonSettings.TopLeft,"onUpdate:modelValue":a[1]||(a[1]=l=>i("update:themeBorderRadiusButtonChanged",{TopLeft:l,TopRight:l,BottomLeft:l,BottomRight:l}))},null,8,["modelValue"])])]),b("div",RUt,[b("label",DUt,W(o.cardLabel),1),b("div",BUt,[I(fr,{modelValue:n.themeBorderRadiusCardSettings.TopLeft,"onUpdate:modelValue":a[2]||(a[2]=l=>i("update:themeBorderRadiusCardChanged",{TopLeft:l,TopRight:l,BottomLeft:l,BottomRight:l}))},null,8,["modelValue"])])]),b("div",NUt,[b("label",IUt,W(o.bannerLabel),1),b("div",MUt,[I(fr,{modelValue:n.themeBorderRadiusBannerSettings.TopLeft,"onUpdate:modelValue":a[3]||(a[3]=l=>i("update:themeBorderRadiusBannerChanged",{TopLeft:l,TopRight:l,BottomLeft:l,BottomRight:l}))},null,8,["modelValue"])])])]))],64))}}),HUt={class:"bootstrap-styles border bg-color-input rounded-2 d-flex justify-content-between",style:{padding:"4px"}},zUt=["value"],jUt=["value"],Du=re({__name:"InputColor",props:{color:{}},emits:["update:changeColor"],setup(t,{emit:e}){const n=t,o=UWe(s=>{i("update:changeColor",s.target.value)},100,{leading:!1,trailing:!0}),r=s=>{const a=/^#([A-Fa-f0-9]{6})$/,l=s.target;return l.value.startsWith("#")||(l.value=`#${l.value}`),a.test(l.value)},i=e;return(s,a)=>(E(),R("div",HUt,[b("input",{type:"color",style:{border:"1px solid rgba(0, 0, 0, 0.1)"},value:n.color,onInput:a[0]||(a[0]=(...l)=>N(o)&&N(o)(...l))},null,40,zUt),b("input",{type:"text",class:"bootstrap-styles d-block w-100 text-uppercase ps-1",value:n.color,maxlength:7,min:7,placeholder:"#000000",onInput:a[1]||(a[1]=l=>r(l)&&N(o)(l))},null,40,jUt)]))}}),KUt={primaryColorLabel:"Primary",primaryTextColorLabel:"Primary text",secondaryColorLabel:"Secondary",secondaryTextColorLabel:"Secondary text",cardBackgroundColor:"Product cards"},UUt={primaryColorLabel:"Основной",primaryTextColorLabel:"Текст на нём",secondaryColorLabel:"Вторичный",secondaryTextColorLabel:"Текст на нём",cardBackgroundColor:"Карточки товаров"},Q_=ht({en:KUt,ru:UUt}),qUt={class:"bootstrap-styles row gx-2 mb-13"},JUt={class:"bootstrap-styles col-6"},GUt={class:"bootstrap-styles fw-bold mb-5"},YUt={class:"bootstrap-styles col-6"},ZUt={class:"bootstrap-styles fw-bold mb-5"},XUt={class:"bootstrap-styles row gx-2 mb-13"},QUt={class:"bootstrap-styles col-6"},eqt={class:"bootstrap-styles fw-bold mb-5"},tqt={class:"bootstrap-styles col-6"},nqt={class:"bootstrap-styles fw-bold mb-5"},oqt={class:"bootstrap-styles row gx-2"},rqt={class:"bootstrap-styles col-6"},iqt={class:"bootstrap-styles fw-bold mb-5 text-nowrap"},sqt=re({__name:"ThemeColorSettings",props:{deps:{},themeColors:{}},emits:["update:themeColorsChanged"],setup(t,{emit:e}){const n=t,o={primaryColorLabel:Q_({localeKey:n.deps.localeKey}).primaryColorLabel,primaryTextColorLabel:Q_({localeKey:n.deps.localeKey}).primaryTextColorLabel,secondaryColorLabel:Q_({localeKey:n.deps.localeKey}).secondaryColorLabel,secondaryTextColorLabel:Q_({localeKey:n.deps.localeKey}).secondaryTextColorLabel,cardBackgroundColor:Q_({localeKey:n.deps.localeKey}).cardBackgroundColor},r=e;return(i,s)=>(E(),R(Se,null,[b("div",qUt,[b("div",JUt,[b("label",GUt,W(o.primaryColorLabel),1),I(Du,{color:n.themeColors.PrimaryColor,"onUpdate:changeColor":s[0]||(s[0]=a=>r("update:themeColorsChanged",{...n.themeColors,PrimaryColor:a}))},null,8,["color"])]),b("div",YUt,[b("label",ZUt,W(o.primaryTextColorLabel),1),I(Du,{color:n.themeColors.PrimaryTextColor,"onUpdate:changeColor":s[1]||(s[1]=a=>r("update:themeColorsChanged",{...n.themeColors,PrimaryTextColor:a}))},null,8,["color"])])]),b("div",XUt,[b("div",QUt,[b("label",eqt,W(o.secondaryColorLabel),1),I(Du,{color:n.themeColors.SecondaryColor,"onUpdate:changeColor":s[2]||(s[2]=a=>r("update:themeColorsChanged",{...n.themeColors,SecondaryColor:a}))},null,8,["color"])]),b("div",tqt,[b("label",nqt,W(o.secondaryTextColorLabel),1),I(Du,{color:n.themeColors.SecondaryTextColor,"onUpdate:changeColor":s[3]||(s[3]=a=>r("update:themeColorsChanged",{...n.themeColors,SecondaryTextColor:a}))},null,8,["color"])])]),b("div",oqt,[b("div",rqt,[b("label",iqt,W(o.cardBackgroundColor),1),I(Du,{color:n.themeColors.CardBackgroundColor,"onUpdate:changeColor":s[4]||(s[4]=a=>r("update:themeColorsChanged",{...n.themeColors,CardBackgroundColor:a}))},null,8,["color"])])])],64))}}),aqt=[14,16,18,20,24,28,32,36,40],lqt={id:"dropdownMenuButtonFontSizeLinks",class:"bootstrap-styles dropdown border rounded-2 bg-color-input","data-bs-toggle":"dropdown","aria-expanded":"false"},cqt={class:"bootstrap-styles py-1 px-3 d-flex"},uqt=["value"],dqt={type:"button"},hqt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},pqt={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuButtonFontSizeLinks"},mqt=["onClick"],fqt=re({__name:"FontSizeInput",props:{fontSize:{}},emits:["update:fontSizeChanged"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("div",lqt,[b("div",cqt,[b("input",{type:"number",class:"bootstrap-styles w-100",value:n.fontSize,onInput:i[0]||(i[0]=s=>o("update:fontSizeChanged",Number(s.target.value)))},null,40,uqt),b("button",dqt,[b("i",hqt,[I(Si)])]),b("ul",pqt,[(E(!0),R(Se,null,At(N(aqt),s=>(E(),R("li",{key:s,class:G(["bootstrap-styles dropdown-item p-0",{active:n.fontSize===s}])},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",onClick:a=>o("update:fontSizeChanged",s)},W(s),9,mqt)],2))),128))])])]))}}),M9e=ve(fqt,[["__scopeId","data-v-f4681f23"]]),gqt={class:"bootstrap-styles row gx-2 mb-2"},yqt={class:"bootstrap-styles col-6"},Cqt={class:"bootstrap-styles col-6"},bqt={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},vqt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},wqt={class:"bootstrap-styles row gx-2 mb-2"},Sqt={class:"bootstrap-styles col-3"},xqt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Tqt={class:"bootstrap-styles col-3"},kqt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Fqt={class:"bootstrap-styles col-3"},Eqt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Lqt={class:"bootstrap-styles col-3"},_qt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Aqt={class:"bootstrap-styles row gx-2"},Rqt={class:"bootstrap-styles col-6"},sy=re({__name:"ThemeFontSetting",props:{fontSetting:{},fontColor:{}},emits:["update:fontSettingsChanged","update:fontColorChanged"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R(Se,null,[b("div",gqt,[b("div",yqt,[I(M9e,{fontSize:n.fontSetting.FontSize,"onUpdate:fontSizeChanged":i[0]||(i[0]=s=>o("update:fontSettingsChanged",{...n.fontSetting,FontSize:s}))},null,8,["fontSize"])]),b("div",Cqt,[b("div",bqt,[b("i",vqt,[I(Dpe)]),I(fr,{modelValue:n.fontSetting.LineHeight,"onUpdate:modelValue":i[1]||(i[1]=s=>o("update:fontSettingsChanged",{...n.fontSetting,LineHeight:s}))},null,8,["modelValue"])])])]),b("div",wqt,[b("div",Sqt,[b("button",{class:G(["bootstrap-styles text-decoration__btn fw-bold border bg-color-input rounded-2 py-1 px-3 w-100",{active:n.fontSetting.IsBold}]),onClick:i[2]||(i[2]=s=>o("update:fontSettingsChanged",{...n.fontSetting,IsBold:!n.fontSetting.IsBold}))},[b("i",xqt,[I(Bpe)])],2)]),b("div",Tqt,[b("button",{class:G(["bootstrap-styles text-decoration__btn fw-bold border bg-color-input rounded-2 py-1 px-3 w-100",{active:n.fontSetting.IsItalic}]),onClick:i[3]||(i[3]=s=>o("update:fontSettingsChanged",{...n.fontSetting,IsItalic:!n.fontSetting.IsItalic}))},[b("i",kqt,[I(Mpe)])],2)]),b("div",Fqt,[b("button",{class:G(["bootstrap-styles text-decoration__btn fw-bold border bg-color-input rounded-2 py-1 px-3 w-100",{active:n.fontSetting.Decoration==="LineThrough"}]),onClick:i[4]||(i[4]=s=>o("update:fontSettingsChanged",{...n.fontSetting,Decoration:n.fontSetting.Decoration==="LineThrough"?"None":"LineThrough"}))},[b("i",Eqt,[I(Npe)])],2)]),b("div",Lqt,[b("button",{class:G(["bootstrap-styles text-decoration__btn fw-bold border bg-color-input rounded-2 py-1 px-3 w-100",{active:n.fontSetting.Decoration==="Underline"}]),onClick:i[5]||(i[5]=s=>o("update:fontSettingsChanged",{...n.fontSetting,Decoration:n.fontSetting.Decoration==="Underline"?"None":"Underline"}))},[b("i",_qt,[I(Ipe)])],2)])]),b("div",Aqt,[b("div",Rqt,[I(Du,{color:t.fontColor,"onUpdate:changeColor":i[6]||(i[6]=s=>o("update:fontColorChanged",s))},null,8,["color"])])])],64))}}),Dqt={themeComponentPaddings:{title:"Paddings",smallLabel:"Small",mediumLabel:"Medium",largeLabel:"Large",hugeLabel:"Huge",buttonLabel:"Buttons",buttonLeftRightLabel:"Left, right",buttonTopBottomLabel:"Top, bottom"},themeComponentRadius:{title:"Border radius",manualComponentRadiusCheckbox:"Customize separately",cardLabel:"Cards",buttonLabel:"Buttons",bannerLabel:"Banners"},themeComponentColor:{title:"Color",primaryColorLabel:"Primary",primaryTextColorLabel:"Primary text",secondaryColorLabel:"Secondary",secondaryTextColorLabel:"Secondary text",cardBackgroundColor:"Product cards"},themeComponentFontSettings:{title:"Font",titleLabel:"Title",headingLabel:"Heading",subHeadingLabel:"Subheading",largeTextLabel:"Large text",normalTextLabel:"Text",descriptionTextLabel:"Descriptions",buttonTextLabel:"Buttons",linkTextLabel:"Links"}},Bqt={themeComponentPaddings:{title:"Отступы",smallLabel:"Маленькие",mediumLabel:"Средние",largeLabel:"Большие",hugeLabel:"Гигантские",buttonLabel:"У кнопок",buttonLeftRightLabel:"Слева, справа",buttonTopBottomLabel:"Сверху, снизу"},themeComponentRadius:{title:"Скругления",manualComponentRadiusCheckbox:"Настроить отдельно",cardLabel:"Карточки",buttonLabel:"Кнопки",bannerLabel:"Баннеры"},themeComponentColor:{title:"Цвет",primaryColorLabel:"Основной",primaryTextColorLabel:"Текст на нём",secondaryColorLabel:"Вторичный",secondaryTextColorLabel:"Текст на нём",cardBackgroundColor:"Карточки товаров"},themeComponentFontSettings:{title:"Шрифт",titleLabel:"Большой заголовок",headingLabel:"Заголовок",subHeadingLabel:"Подзаголовок",largeTextLabel:"Большой текст",normalTextLabel:"Текст",descriptionTextLabel:"Описания",buttonTextLabel:"Кнопки",linkTextLabel:"Ссылки"}},eu=ht({en:Dqt,ru:Bqt}),Nqt={class:"bootstrap-styles"},Iqt={class:"bootstrap-styles flex-column gap-13 d-flex"},Mqt={class:"bootstrap-styles d-flex flex-column gap-2"},$qt={class:"bootstrap-styles fs-6 fw-bold me-7 mb-7"},Oqt={class:"bootstrap-styles container-fluid"},Pqt={class:"bootstrap-styles fs-6 fw-bold mb-7 me-7"},Vqt={class:"bootstrap-styles container-fluid"},Wqt={class:"bootstrap-styles fs-6 fw-bold me-7 mb-13"},Hqt={class:"bootstrap-styles fs-6 fw-bold mb-0"},zqt={class:"bootstrap-styles container-fluid"},jqt={class:"bootstrap-styles fw-bold mb-5"},Kqt={class:"bootstrap-styles container-fluid"},Uqt={class:"bootstrap-styles fw-bold mb-5"},qqt={class:"bootstrap-styles container-fluid"},Jqt={class:"bootstrap-styles fw-bold mb-5"},Gqt={class:"bootstrap-styles container-fluid"},Yqt={class:"bootstrap-styles fw-bold mb-5"},Zqt={class:"bootstrap-styles container-fluid"},Xqt={class:"bootstrap-styles fw-bold mb-5"},Qqt={class:"bootstrap-styles container-fluid"},eJt={class:"bootstrap-styles fw-bold mb-5"},tJt={class:"bootstrap-styles container-fluid"},nJt={class:"bootstrap-styles fw-bold mb-5"},oJt={class:"bootstrap-styles container-fluid"},rJt={class:"bootstrap-styles fw-bold mb-5"},iJt=re({__name:"ThemeComponentSettings",props:{deps:{},themeFontSettingsGroup:{},themeColors:{},themeBorderRadiusButtonSettings:{},themeBorderRadiusCardSettings:{},themeBorderRadiusBannerSettings:{},themeComponentPaddings:{},themeButtonPaddings:{}},emits:["update:themeColorsChanged","update:themeFontSettingsChanged","update:themeBorderRadiusCardChanged","update:themeBorderRadiusButtonChanged","update:themeBorderRadiusBannerChanged","update:themeComponentPaddingsChanged","update:themeButtonPaddingsChanged"],setup(t,{emit:e}){const n=t,o={themeComponentPaddings:{title:eu({localeKey:n.deps.localeKey}).themeComponentPaddings.title},themeComponentRadius:{title:eu({localeKey:n.deps.localeKey}).themeComponentRadius.title},themeComponentColor:{title:eu({localeKey:n.deps.localeKey}).themeComponentColor.title},themeComponentFontSettings:{title:eu({localeKey:n.deps.localeKey}).themeComponentFontSettings.title,titleLabel:eu({localeKey:n.deps.localeKey}).themeComponentFontSettings.titleLabel,headingLabel:eu({localeKey:n.deps.localeKey}).themeComponentFontSettings.headingLabel,subHeadingLabel:eu({localeKey:n.deps.localeKey}).themeComponentFontSettings.subHeadingLabel,largeTextLabel:eu({localeKey:n.deps.localeKey}).themeComponentFontSettings.largeTextLabel,normalTextLabel:eu({localeKey:n.deps.localeKey}).themeComponentFontSettings.normalTextLabel,descriptionTextLabel:eu({localeKey:n.deps.localeKey}).themeComponentFontSettings.descriptionTextLabel,buttonTextLabel:eu({localeKey:n.deps.localeKey}).themeComponentFontSettings.buttonTextLabel,linkTextLabel:eu({localeKey:n.deps.localeKey}).themeComponentFontSettings.linkTextLabel}},r=e;return(i,s)=>(E(),R("div",Nqt,[b("div",Iqt,[b("div",Mqt,[b("h2",$qt,W(o.themeComponentPaddings.title),1),I(HKt,{deps:{localeKey:n.deps.localeKey},themeComponentPaddings:n.themeComponentPaddings,themeButtonPaddings:n.themeButtonPaddings,"onUpdate:themeComponentPaddingsChanged":s[0]||(s[0]=a=>r("update:themeComponentPaddingsChanged",a)),"onUpdate:themeButtonPaddingsChanged":s[1]||(s[1]=a=>r("update:themeButtonPaddingsChanged",a))},null,8,["deps","themeComponentPaddings","themeButtonPaddings"])]),b("div",Oqt,[b("h2",Pqt,W(o.themeComponentRadius.title),1),I(WUt,{deps:{localeKey:n.deps.localeKey},themeBorderRadiusButtonSettings:n.themeBorderRadiusButtonSettings,themeBorderRadiusCardSettings:n.themeBorderRadiusCardSettings,themeBorderRadiusBannerSettings:n.themeBorderRadiusBannerSettings,"onUpdate:themeBorderRadiusCardChanged":s[2]||(s[2]=a=>r("update:themeBorderRadiusCardChanged",a)),"onUpdate:themeBorderRadiusButtonChanged":s[3]||(s[3]=a=>r("update:themeBorderRadiusButtonChanged",a)),"onUpdate:themeBorderRadiusBannerChanged":s[4]||(s[4]=a=>r("update:themeBorderRadiusBannerChanged",a))},null,8,["deps","themeBorderRadiusButtonSettings","themeBorderRadiusCardSettings","themeBorderRadiusBannerSettings"])]),b("div",Vqt,[b("h2",Wqt,W(o.themeComponentColor.title),1),I(sqt,{deps:{localeKey:n.deps.localeKey},themeColors:n.themeColors,"onUpdate:themeColorsChanged":s[5]||(s[5]=a=>r("update:themeColorsChanged",a))},null,8,["deps","themeColors"])]),b("h2",Hqt,W(o.themeComponentFontSettings.title),1),b("div",zqt,[b("label",jqt,W(o.themeComponentFontSettings.titleLabel),1),I(sy,{fontSetting:n.themeFontSettingsGroup.Title,fontColor:n.themeColors.TitleColor,"onUpdate:fontSettingsChanged":s[6]||(s[6]=a=>r("update:themeFontSettingsChanged",{...n.themeFontSettingsGroup,Title:a})),"onUpdate:fontColorChanged":s[7]||(s[7]=a=>r("update:themeColorsChanged",{...n.themeColors,TitleColor:a}))},null,8,["fontSetting","fontColor"])]),b("div",Kqt,[b("label",Uqt,W(o.themeComponentFontSettings.headingLabel),1),I(sy,{fontSetting:n.themeFontSettingsGroup.Heading,fontColor:n.themeColors.HeadingColor,"onUpdate:fontSettingsChanged":s[8]||(s[8]=a=>r("update:themeFontSettingsChanged",{...n.themeFontSettingsGroup,Heading:a})),"onUpdate:fontColorChanged":s[9]||(s[9]=a=>r("update:themeColorsChanged",{...n.themeColors,HeadingColor:a}))},null,8,["fontSetting","fontColor"])]),b("div",qqt,[b("label",Jqt,W(o.themeComponentFontSettings.subHeadingLabel),1),I(sy,{fontSetting:n.themeFontSettingsGroup.SubHeading,fontColor:n.themeColors.SubHeadingColor,"onUpdate:fontSettingsChanged":s[10]||(s[10]=a=>r("update:themeFontSettingsChanged",{...n.themeFontSettingsGroup,SubHeading:a})),"onUpdate:fontColorChanged":s[11]||(s[11]=a=>r("update:themeColorsChanged",{...n.themeColors,SubHeadingColor:a}))},null,8,["fontSetting","fontColor"])]),b("div",Gqt,[b("label",Yqt,W(o.themeComponentFontSettings.largeTextLabel),1),I(sy,{fontSetting:n.themeFontSettingsGroup.LargeText,fontColor:n.themeColors.LargeTextColor,"onUpdate:fontSettingsChanged":s[12]||(s[12]=a=>r("update:themeFontSettingsChanged",{...n.themeFontSettingsGroup,LargeText:a})),"onUpdate:fontColorChanged":s[13]||(s[13]=a=>r("update:themeColorsChanged",{...n.themeColors,LargeTextColor:a}))},null,8,["fontSetting","fontColor"])]),b("div",Zqt,[b("label",Xqt,W(o.themeComponentFontSettings.normalTextLabel),1),I(sy,{fontSetting:n.themeFontSettingsGroup.NormalText,fontColor:n.themeColors.NormalTextColor,"onUpdate:fontSettingsChanged":s[14]||(s[14]=a=>r("update:themeFontSettingsChanged",{...n.themeFontSettingsGroup,NormalText:a})),"onUpdate:fontColorChanged":s[15]||(s[15]=a=>r("update:themeColorsChanged",{...n.themeColors,NormalTextColor:a}))},null,8,["fontSetting","fontColor"])]),b("div",Qqt,[b("label",eJt,W(o.themeComponentFontSettings.descriptionTextLabel),1),I(sy,{fontSetting:n.themeFontSettingsGroup.DescriptionText,fontColor:n.themeColors.DescriptionTextColor,"onUpdate:fontSettingsChanged":s[16]||(s[16]=a=>r("update:themeFontSettingsChanged",{...n.themeFontSettingsGroup,DescriptionText:a})),"onUpdate:fontColorChanged":s[17]||(s[17]=a=>r("update:themeColorsChanged",{...n.themeColors,DescriptionTextColor:a}))},null,8,["fontSetting","fontColor"])]),b("div",tJt,[b("label",nJt,W(o.themeComponentFontSettings.buttonTextLabel),1),I(sy,{fontSetting:n.themeFontSettingsGroup.Button,fontColor:n.themeColors.ButtonTextColor,"onUpdate:fontSettingsChanged":s[18]||(s[18]=a=>r("update:themeFontSettingsChanged",{...n.themeFontSettingsGroup,Button:a})),"onUpdate:fontColorChanged":s[19]||(s[19]=a=>r("update:themeColorsChanged",{...n.themeColors,ButtonTextColor:a}))},null,8,["fontSetting","fontColor"])]),b("div",oJt,[b("label",rJt,W(o.themeComponentFontSettings.linkTextLabel),1),I(sy,{fontSetting:n.themeFontSettingsGroup.Link,fontColor:n.themeColors.LinkColor,"onUpdate:fontSettingsChanged":s[20]||(s[20]=a=>r("update:themeFontSettingsChanged",{...n.themeFontSettingsGroup,Link:a})),"onUpdate:fontColorChanged":s[21]||(s[21]=a=>r("update:themeColorsChanged",{...n.themeColors,LinkColor:a}))},null,8,["fontSetting","fontColor"])])])]))}}),sJt={},aJt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function lJt(t,e){return E(),R("svg",aJt,[...e[0]||(e[0]=[b("path",{d:"M13.8047 7.49982L11.4479 5L10.5044 5.99993L11.7241 7.29322H4.27594L5.49476 5.99993L4.55214 5L2.1953 7.49982C1.9349 7.776 1.9349 8.22421 2.1953 8.50039L4.55214 11L5.49556 10.0001L4.27594 8.70678H11.7241L10.5052 10.0001L11.4479 11L13.8047 8.50039C14.0651 8.22421 14.0651 7.77579 13.8047 7.49982Z",fill:"var(--gray-500)"},null,-1)])])}const cJt=ve(sJt,[["render",lJt]]),uJt={title:"Content paddings",allButton:"All",manualButton:"Separately",custom:{topLabel:"Top",bottomLabel:"Bottom",leftLabel:"Left",rightLabel:"Right"}},dJt={title:"Отступы до контента",allButton:"Все",manualButton:"Отдельно",custom:{topLabel:"Сверху",bottomLabel:"Снизу",leftLabel:"Слева",rightLabel:"Справа"}},l1=ht({en:uJt,ru:dJt}),hJt={class:"bootstrap-styles fw-bold mb-5"},pJt={class:"bootstrap-styles mb-5"},mJt={class:"bootstrap-styles row gx-0"},fJt={class:"bootstrap-styles col-6"},gJt={key:0,class:"bootstrap-styles row gx-0 mb-1 align-items-center"},yJt={class:"bootstrap-styles col-6"},CJt={class:"bootstrap-styles col-6"},bJt={class:"bootstrap-styles ps-5 text-gray-600"},vJt={key:1,class:"bootstrap-styles row gx-0 mb-1 align-items-center"},wJt={class:"bootstrap-styles col-6"},SJt={class:"bootstrap-styles col-6"},xJt={class:"bootstrap-styles ps-5 text-gray-600"},TJt={key:2,class:"bootstrap-styles row gx-0 mb-1 align-items-center"},kJt={class:"bootstrap-styles col-6"},FJt={class:"bootstrap-styles col-6"},EJt={class:"bootstrap-styles ps-5 text-gray-600"},LJt={key:3,class:"bootstrap-styles row gx-0 align-items-center"},_Jt={class:"bootstrap-styles col-6"},AJt={class:"bootstrap-styles col-6"},RJt={class:"bootstrap-styles ps-5 text-gray-600"},DJt="general",BJt=re({__name:"ThemeMarginSettings",props:{deps:{},themeBodyPaddings:{}},emits:["update:themeBodyPaddingsChanged"],setup(t,{emit:e}){const n=Le({themeMarginSettingsSourceKey:"general"}),o=t,r={title:l1({localeKey:o.deps.localeKey}).title,allButton:l1({localeKey:o.deps.localeKey}).allButton,manualButton:l1({localeKey:o.deps.localeKey}).manualButton,custom:{topLabel:l1({localeKey:o.deps.localeKey}).custom.topLabel,bottomLabel:l1({localeKey:o.deps.localeKey}).custom.bottomLabel,leftLabel:l1({localeKey:o.deps.localeKey}).custom.leftLabel,rightLabel:l1({localeKey:o.deps.localeKey}).custom.rightLabel}},i={general:r.allButton,manual:r.manualButton},s=e;return(a,l)=>(E(),R(Se,null,[b("label",hJt,W(r.title),1),b("div",pJt,[I(kU,{initialTab:DJt,tabList:i,onOnTabClicked:l[0]||(l[0]=c=>n.themeMarginSettingsSourceKey=c)})]),b("div",mJt,[b("div",fJt,[n.themeMarginSettingsSourceKey==="general"?(E(),Q(zl,{key:0,value:o.themeBodyPaddings.Top,"onUpdate:changeValue":l[1]||(l[1]=c=>s("update:themeBodyPaddingsChanged",{Top:c,Right:c,Bottom:c,Left:c}))},null,8,["value"])):oe("",!0)])]),n.themeMarginSettingsSourceKey==="manual"?(E(),R("div",gJt,[b("div",yJt,[I(zl,{value:o.themeBodyPaddings.Right,"onUpdate:changeValue":l[2]||(l[2]=c=>s("update:themeBodyPaddingsChanged",{...o.themeBodyPaddings,Right:c}))},null,8,["value"])]),b("div",CJt,[b("label",bJt,W(r.custom.rightLabel),1)])])):oe("",!0),n.themeMarginSettingsSourceKey==="manual"?(E(),R("div",vJt,[b("div",wJt,[I(zl,{value:o.themeBodyPaddings.Top,"onUpdate:changeValue":l[3]||(l[3]=c=>s("update:themeBodyPaddingsChanged",{...o.themeBodyPaddings,Top:c}))},null,8,["value"])]),b("div",SJt,[b("label",xJt,W(r.custom.topLabel),1)])])):oe("",!0),n.themeMarginSettingsSourceKey==="manual"?(E(),R("div",TJt,[b("div",kJt,[I(zl,{value:o.themeBodyPaddings.Bottom,"onUpdate:changeValue":l[4]||(l[4]=c=>s("update:themeBodyPaddingsChanged",{...o.themeBodyPaddings,Bottom:c}))},null,8,["value"])]),b("div",FJt,[b("label",EJt,W(r.custom.bottomLabel),1)])])):oe("",!0),n.themeMarginSettingsSourceKey==="manual"?(E(),R("div",LJt,[b("div",_Jt,[I(zl,{value:o.themeBodyPaddings.Left,"onUpdate:changeValue":l[5]||(l[5]=c=>s("update:themeBodyPaddingsChanged",{...o.themeBodyPaddings,Left:c}))},null,8,["value"])]),b("div",AJt,[b("label",RJt,W(r.custom.leftLabel),1)])])):oe("",!0)],64))}}),NJt={themeTemplateWidthLabel:"Width",templateResponsiveWidthLabel:"Responsive width",themeTemplateRadiusLabel:"Border radius",templateColorTitle:"Color",templateBodyColor:"Email body",templateBackgroundColor:"Background",themeTemplateFontFamilyTitle:"Font",themePaddings:{title:"Content paddings",allButton:"All",manualButton:"Separately",custom:{topLabel:"Top",bottomLabel:"Bottom",leftLabel:"Left",rightLabel:"Right"}}},IJt={themeTemplateWidthLabel:"Ширина",templateResponsiveWidthLabel:"Адаптивная ширина",themeTemplateRadiusLabel:"Скругление",templateColorTitle:"Цвет",templateBodyColor:"Тело письма",templateBackgroundColor:"Фон",themeTemplateFontFamilyTitle:"Шрифт",themePaddings:{title:"Отступы до контента",allButton:"Все",manualButton:"Отдельно",custom:{topLabel:"Сверху",bottomLabel:"Снизу",leftLabel:"Слева",rightLabel:"Справа"}}},c1=ht({en:NJt,ru:IJt}),MJt={disabledButtonTooltip:"Turn on responsive width to ensure proper display on all mobile devices and tablets"},$Jt={disabledButtonTooltip:"Включите адаптивную ширину, чтобы письмо подстраивалось под размер телефонов и планшетов."},$9e=ht({en:MJt,ru:$Jt}),OJt={class:"bootstrap-styles"},PJt={class:"bootstrap-styles flex-column gap-13 d-flex"},VJt={class:"bootstrap-styles container-fluid"},WJt={class:"bootstrap-styles row gx-2 mb-5"},HJt={class:"bootstrap-styles col-6"},zJt={class:"bootstrap-styles fw-bold mb-5"},jJt={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},KJt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},UJt={class:"bootstrap-styles col-6"},qJt={class:"bootstrap-styles fw-bold mb-5"},JJt={class:"bootstrap-styles input-number__wrapper bg-color-input border rounded-2 py-1 px-3 d-flex position-relative"},GJt={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},YJt={class:"bootstrap-styles row g-0"},ZJt={class:"bootstrap-styles col-12 d-flex align-items-center"},XJt={for:"is-responsive-checkbox",class:"label__checkbox-input"},QJt={class:"bootstrap-styles icon-hover is-responsive-checkbox-hint d-flex align-items-center justify-content-center ps-1"},eGt={class:"bootstrap-styles container-fluid"},tGt={class:"bootstrap-styles d-flex flex-column"},nGt={class:"bootstrap-styles container-fluid"},oGt={class:"bootstrap-styles fs-6 fw-bold me-7 mb-13"},rGt={class:"bootstrap-styles row gx-2"},iGt={class:"bootstrap-styles col-6"},sGt={class:"bootstrap-styles fw-bold mb-5"},aGt={class:"bootstrap-styles col-6"},lGt={class:"bootstrap-styles fw-bold mb-5"},cGt={class:"bootstrap-styles flex-column gap-13 d-flex"},uGt={class:"bootstrap-styles fs-6 fw-bold mb-0"},dGt={class:"bootstrap-styles container-fluid"},hGt={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},pGt={id:"dropdownMenuButtonFontFamily",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},mGt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},fGt={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuButtonFontFamily"},gGt=["onClick"],yGt=re({__name:"ThemeTemplateSettings",props:{deps:{},isResponsiveWidth:{type:Boolean},themeBodyWidth:{},themeBorderRadius:{},themeComponentPaddings:{},themeBodyPaddings:{},themeFontFamily:{},themeColors:{}},emits:["update:setThemeBodyWidth","update:setThemeFont","update:themeBodyPaddingsChanged","update:themeBorderRadiusChanged","update:themeColorsChanged","onResponsiveWidthChanged"],setup(t,{emit:e}){const n=t,o={themeTemplateWidthLabel:c1({localeKey:n.deps.localeKey}).themeTemplateWidthLabel,templateResponsiveWidthLabel:c1({localeKey:n.deps.localeKey}).templateResponsiveWidthLabel,themeTemplateRadiusLabel:c1({localeKey:n.deps.localeKey}).themeTemplateRadiusLabel,templateColorTitle:c1({localeKey:n.deps.localeKey}).templateColorTitle,templateBodyColor:c1({localeKey:n.deps.localeKey}).templateBodyColor,templateBackgroundColor:c1({localeKey:n.deps.localeKey}).templateBackgroundColor,themeTemplateFontFamilyTitle:c1({localeKey:n.deps.localeKey}).themeTemplateFontFamilyTitle},r=e;return(i,s)=>(E(),R("div",OJt,[b("div",PJt,[b("div",VJt,[b("div",WJt,[b("div",HJt,[b("label",zJt,W(o.themeTemplateWidthLabel),1),b("div",jJt,[b("i",KJt,[I(cJt)]),I(fr,{modelValue:n.themeBodyWidth,"onUpdate:modelValue":s[0]||(s[0]=a=>r("update:setThemeBodyWidth",a))},null,8,["modelValue"])])]),b("div",UJt,[b("label",qJt,W(o.themeTemplateRadiusLabel),1),b("div",JJt,[b("i",GJt,[I(nE)]),I(fr,{modelValue:n.themeBorderRadius.TopLeft,"onUpdate:modelValue":s[1]||(s[1]=a=>r("update:themeBorderRadiusChanged",a))},null,8,["modelValue"])])])]),b("div",YJt,[b("div",ZJt,[I(th,{id:"is-responsive-checkbox",checked:n.isResponsiveWidth,onChange:s[2]||(s[2]=()=>r("onResponsiveWidthChanged",!n.isResponsiveWidth))},null,8,["checked"]),b("label",XJt,W(o.templateResponsiveWidthLabel),1),Ke((E(),R("i",QJt,[I(A9e)])),[[N(Xn),{title:N($9e)({localeKey:n.deps.localeKey}).disabledButtonTooltip,placement:"top"}]])])])]),b("div",eGt,[b("div",tGt,[I(BJt,{deps:{localeKey:n.deps.localeKey},themeBodyPaddings:n.themeBodyPaddings,"onUpdate:themeBodyPaddingsChanged":s[3]||(s[3]=a=>r("update:themeBodyPaddingsChanged",a))},null,8,["deps","themeBodyPaddings"])])]),b("div",nGt,[b("h2",oGt,W(o.templateColorTitle),1),b("div",rGt,[b("div",iGt,[b("label",sGt,W(o.templateBodyColor),1),I(Du,{color:n.themeColors.BodyColor,"onUpdate:changeColor":s[4]||(s[4]=a=>r("update:themeColorsChanged",{...n.themeColors,BodyColor:a}))},null,8,["color"])]),b("div",aGt,[b("label",lGt,W(o.templateBackgroundColor),1),I(Du,{color:n.themeColors.EmailBackgroundColor,"onUpdate:changeColor":s[5]||(s[5]=a=>r("update:themeColorsChanged",{...n.themeColors,EmailBackgroundColor:a}))},null,8,["color"])])])]),b("div",cGt,[b("h2",uGt,W(o.themeTemplateFontFamilyTitle),1),b("div",dGt,[b("div",hGt,[b("button",pGt,[b("span",null,W(N(Sp)[n.themeFontFamily]),1),b("i",mGt,[I(Si)])]),b("ul",fGt,[(E(!0),R(Se,null,At(N(DU),a=>(E(),R("li",{key:a,class:G(["bootstrap-styles dropdown-item p-0",{active:n.themeFontFamily===a}])},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",style:Te({fontFamily:N(Sp)[a]}),onClick:l=>{r("update:setThemeFont",a)}},W(N(Sp)[a]),13,gGt)],2))),128))])])])])])]))}}),CGt={title:"Styles",templateSettingsButton:"Template",componentsSettingsButton:"Components"},bGt={title:"Стили",templateSettingsButton:"Письма",componentsSettingsButton:"Компонентов"},OY=ht({en:CGt,ru:bGt}),vGt={},wGt={class:"icon"};function SGt(t,e){return E(),R("i",wGt,[...e[0]||(e[0]=[b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[b("path",{d:"M10 0C15.5222 0 20 3.97778 20 8.8889C20 11.9556 17.5111 14.4444 14.4444 14.4444H12.4778C11.5556 14.4444 10.8111 15.1889 10.8111 16.1111C10.8111 16.5333 10.9778 16.9222 11.2333 17.2111C11.5 17.5111 11.6667 17.9 11.6667 18.3333C11.6667 19.2556 10.9 20 10 20C4.47778 20 0 15.5222 0 10C0 4.47778 4.47778 0 10 0ZM8.8111 16.1111C8.8111 14.0843 10.451 12.4444 12.4778 12.4444H14.4444C16.4065 12.4444 18 10.851 18 8.8889C18 5.1392 14.4677 2 10 2C5.58235 2 2 5.58235 2 10C2 14.19 5.2226 17.6285 9.324 17.9718C8.9948 17.4168 8.8111 16.7761 8.8111 16.1111ZM5.5 10C4.67157 10 4 9.3284 4 8.5C4 7.67157 4.67157 7 5.5 7C6.32843 7 7 7.67157 7 8.5C7 9.3284 6.32843 10 5.5 10ZM14.5 10C13.6716 10 13 9.3284 13 8.5C13 7.67157 13.6716 7 14.5 7C15.3284 7 16 7.67157 16 8.5C16 9.3284 15.3284 10 14.5 10ZM10 7C9.1716 7 8.5 6.32843 8.5 5.5C8.5 4.67157 9.1716 4 10 4C10.8284 4 11.5 4.67157 11.5 5.5C11.5 6.32843 10.8284 7 10 7Z",fill:"var(--white)"})],-1)])])}const xGt=ve(vGt,[["render",SGt]]),TGt={title:"Save theme",inputNameLabel:"Name",inputNamePlaceholder:"Theme name...",inputGroupLabel:"Group",cancelButton:"Cancel",applyButton:"Save",errorButtonTooltip:"Error",buttonTooltip:""},kGt={title:"Сохранение темы",inputNameLabel:"Название",inputNamePlaceholder:"Название темы...",inputGroupLabel:"Группа",cancelButton:"Отмена",applyButton:"Сохранить",errorButtonTooltip:"Ошибка",buttonTooltip:""},ay=ht({en:TGt,ru:kGt}),FGt={class:"bootstrap-styles fw-bold mb-5"},EGt={class:"bootstrap-styles col-12 mb-13"},LGt={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},_Gt=["placeholder"],AGt={class:"bootstrap-styles fw-bold mb-5"},RGt={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},DGt={id:"dropdownMenuSectionSelect",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},BGt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},NGt={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuSectionSelect"},IGt=["onClick"],MGt={class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer"},$Gt=["disabled"],OGt={key:0,class:"bootstrap-styles d-flex align-items-center justify-content-center preloader"},PGt={key:2},VGt=re({__name:"AddThemeLibrarySectionItemModalWindow",props:{deps:{},themeSettings:{},themeTemplateSaveState:{}},emits:["onSaveTemplateTheme","cancel"],setup(t,{emit:e}){const n=t,o={title:ay({localeKey:n.deps.localeKey}).title,inputNameLabel:ay({localeKey:n.deps.localeKey}).inputNameLabel,inputNamePlaceholder:ay({localeKey:n.deps.localeKey}).inputNamePlaceholder,inputGroupLabel:ay({localeKey:n.deps.localeKey}).inputGroupLabel,cancelButton:ay({localeKey:n.deps.localeKey}).cancelButton,applyButton:ay({localeKey:n.deps.localeKey}).applyButton,errorButtonTooltip:ay({localeKey:n.deps.localeKey}).errorButtonTooltip,buttonTooltip:ay({localeKey:n.deps.localeKey}).buttonTooltip},r=Le({themeLibrarySections:[],sectionItemName:"",selectedParentSectionId:"",selectedParentSectionName:"",isDropdownMenuShown:!1,isLoading:!0});n.deps.getThemeLibrarySections().then(l=>{r.themeLibrarySections=l;const c=l[0];c&&(r.selectedParentSectionId=c.sectionId,r.selectedParentSectionName=c.sectionName),r.isLoading=!1});const i=e,s=()=>{i("onSaveTemplateTheme",{sectionItemName:r.sectionItemName,sectionId:r.selectedParentSectionId})},a=()=>{i("cancel")};return(l,c)=>(E(),Q(bd,{class:"save-theme-modal-window",headerText:o.title,onClose:c[3]||(c[3]=()=>a())},{body:Bt(()=>[I(MU,{class:G(["bootstrap-styles position-absolute top-50 start-50",{invisible:!r.isLoading}])},null,8,["class"]),b("div",{class:G(["bootstrap-styles px-11 py-7 text-start",{invisible:r.isLoading}])},[b("label",FGt,W(o.inputNameLabel),1),b("div",EGt,[b("div",LGt,[Ke(b("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.sectionItemName=u),type:"text",class:"bootstrap-styles w-100",placeholder:o.inputNamePlaceholder},null,8,_Gt),[[Ea,r.sectionItemName],[N(Dg),!r.isLoading]])])]),b("div",null,[b("label",AGt,W(o.inputGroupLabel),1),b("div",RGt,[Ke((E(),R("button",DGt,[b("span",null,W(r.selectedParentSectionName),1),b("i",BGt,[I(Si)])])),[[N(ah)]]),b("ul",NGt,[(E(!0),R(Se,null,At(r.themeLibrarySections,u=>(E(),R("li",{key:u.sectionId,class:"bootstrap-styles dropdown-item p-0",onClick:()=>{r.selectedParentSectionId=u.sectionId,r.selectedParentSectionName=u.sectionName}},[b("span",MGt,W(u.sectionName),1)],8,IGt))),128))])])])],2)]),"footer-actions":Bt(()=>[b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:c[1]||(c[1]=Nt(u=>a(),["stop"]))},W(o.cancelButton),1),Ke((E(),R("button",{class:G(["modal-footer__button add-theme-item-modal-button bootstrap-styles position-relative d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white",{"bg-color__error":n.themeTemplateSaveState==="Error"}]),disabled:r.sectionItemName.length===0||n.themeTemplateSaveState==="Error",onClick:c[2]||(c[2]=Nt(u=>s(),["stop"]))},[n.themeTemplateSaveState==="Error"?(E(),R("i",OGt,[I(I9e,{class:"bootstrap-styles me-0"})])):n.themeTemplateSaveState==="Saving"?(E(),Q(GC,{key:1,class:"preloader"})):(E(),R("span",PGt,W(o.applyButton),1))],10,$Gt)),[[N(Xn),{title:n.themeTemplateSaveState==="Error"?o.errorButtonTooltip:o.buttonTooltip,placement:"top"}]])]),_:1},8,["headerText"]))}}),WGt=ve(VGt,[["__scopeId","data-v-8697bd66"]]),HGt={class:"bootstrap-styles scrollable d-flex flex-column"},zGt={class:"bootstrap-styles flex-column gap-13 me-3 d-flex"},jGt={class:"bootstrap-styles fs-6 fw-bold mb-0 me-7"},KGt={class:"bootstrap-styles container-fluid"},UGt={key:0,class:"bootstrap-styles container-fluid"},qGt={key:1,class:"bootstrap-styles container-fluid"},JGt=["disabled"],zke="template",GGt=re({__name:"ThemeStyles",props:{theme:{},themeLibrary:{},deps:{},themeTemplateSaveState:{}},emits:["update:setThemeBodyWidth","update:setThemeFont","update:themeBorderRadiusChanged","update:themeBorderRadiusCardChanged","update:themeBorderRadiusButtonChanged","update:themeBorderRadiusBannerChanged","update:themeColorsChanged","update:themeFontSettingsChanged","update:themeComponentPaddingsChanged","update:themeButtonPaddingsChanged","update:themeBodyPaddingsChanged","onResponsiveWidthChanged","onSaveTemplateTheme"],setup(t,{emit:e}){const n=t,o={title:OY({localeKey:n.deps.localeKey}).title,templateSettingsButton:OY({localeKey:n.deps.localeKey}).templateSettingsButton,componentsSettingsButton:OY({localeKey:n.deps.localeKey}).componentsSettingsButton,addThemeLibrarySectionItemButton:R2({localeKey:n.deps.localeKey}).addThemeLibrarySectionItemButton,addThemeLibrarySectionItemButtonTooltip:R2({localeKey:n.deps.localeKey}).addThemeLibrarySectionItemButtonTooltip},r=Le({themeSettingsSourceKey:zke,isAddThemeLibrarySectionItemModalWindowShown:!1}),i=l=>{a("onSaveTemplateTheme",l)},s={template:o.templateSettingsButton,component:o.componentsSettingsButton},a=e;return on(()=>n.themeTemplateSaveState,l=>{l==="NoChanges"&&(r.isAddThemeLibrarySectionItemModalWindowShown=!1)}),(l,c)=>(E(),R("div",HGt,[b("div",zGt,[b("h2",jGt,W(o.title),1),b("div",KGt,[I(kU,{initialTab:zke,tabList:s,onOnTabClicked:c[0]||(c[0]=u=>r.themeSettingsSourceKey=u)})]),r.themeSettingsSourceKey==="template"?(E(),R("div",UGt,[I(yGt,{deps:{localeKey:n.deps.localeKey},themeColors:n.theme.Colors,themeFontFamily:n.theme.FontFamily,themeBodyPaddings:n.theme.BodyPaddings,themeComponentPaddings:n.theme.ComponentPaddings,themeBodyWidth:n.theme.BodyWidth,themeBorderRadius:n.theme.BorderRadius,isResponsiveWidth:n.theme.IsResponsiveWidth,"onUpdate:themeBodyPaddingsChanged":c[1]||(c[1]=u=>a("update:themeBodyPaddingsChanged",u)),"onUpdate:setThemeBodyWidth":c[2]||(c[2]=u=>a("update:setThemeBodyWidth",u)),"onUpdate:setThemeFont":c[3]||(c[3]=u=>a("update:setThemeFont",u)),"onUpdate:themeBorderRadiusChanged":c[4]||(c[4]=u=>a("update:themeBorderRadiusChanged",u)),"onUpdate:themeColorsChanged":c[5]||(c[5]=u=>a("update:themeColorsChanged",u)),onOnResponsiveWidthChanged:c[6]||(c[6]=u=>a("onResponsiveWidthChanged",u))},null,8,["deps","themeColors","themeFontFamily","themeBodyPaddings","themeComponentPaddings","themeBodyWidth","themeBorderRadius","isResponsiveWidth"])])):oe("",!0),r.themeSettingsSourceKey==="component"?(E(),R("div",qGt,[I(iJt,{deps:{localeKey:n.deps.localeKey},themeComponentPaddings:n.theme.ComponentPaddings,themeButtonPaddings:n.theme.ButtonPaddings,themeColors:n.theme.Colors,themeFontSettingsGroup:n.theme.FontSettingsPresets,themeBorderRadiusButtonSettings:n.theme.BorderRadiusButton,themeBorderRadiusCardSettings:n.theme.BorderRadiusCard,themeBorderRadiusBannerSettings:n.theme.BorderRadiusBanner,"onUpdate:themeBorderRadiusButtonChanged":c[7]||(c[7]=u=>a("update:themeBorderRadiusButtonChanged",u)),"onUpdate:themeBorderRadiusCardChanged":c[8]||(c[8]=u=>a("update:themeBorderRadiusCardChanged",u)),"onUpdate:themeBorderRadiusBannerChanged":c[9]||(c[9]=u=>a("update:themeBorderRadiusBannerChanged",u)),"onUpdate:themeColorsChanged":c[10]||(c[10]=u=>a("update:themeColorsChanged",u)),"onUpdate:themeFontSettingsChanged":c[11]||(c[11]=u=>a("update:themeFontSettingsChanged",u)),"onUpdate:themeComponentPaddingsChanged":c[12]||(c[12]=u=>a("update:themeComponentPaddingsChanged",u)),"onUpdate:themeButtonPaddingsChanged":c[13]||(c[13]=u=>a("update:themeButtonPaddingsChanged",u))},null,8,["deps","themeComponentPaddings","themeButtonPaddings","themeColors","themeFontSettingsGroup","themeBorderRadiusButtonSettings","themeBorderRadiusCardSettings","themeBorderRadiusBannerSettings"])])):oe("",!0)]),b("div",{class:G(["bootstrap-styles mt-auto me-3",[r.themeSettingsSourceKey==="template"?"d-flex":"d-none"]])},[Ke((E(),R("button",{class:"bootstrap-styles save-theme-button d-flex align-items-center justify-content-center text-white border-0 rounded-2 w-100 mt-1 py-1 px-3 gap-1 button__hover-blue-400",disabled:n.themeLibrary.length===0||n.themeTemplateSaveState==="NoChanges",onClick:c[14]||(c[14]=()=>r.isAddThemeLibrarySectionItemModalWindowShown=!0)},[I(xGt),no(" "+W(o.addThemeLibrarySectionItemButton),1)],8,JGt)),[[N(Xn),{title:o.addThemeLibrarySectionItemButtonTooltip,placement:"right",trigger:n.themeLibrary.length===0?"hover":"manual"}]])],2),(E(),Q(yo,{to:"body",defer:""},[r.isAddThemeLibrarySectionItemModalWindowShown?(E(),Q(WGt,{key:0,deps:n.deps.customThemeLibraryDeps.addThemeSectionItemModalWindowDeps,themeSettings:n.theme,themeTemplateSaveState:n.themeTemplateSaveState,onCancel:c[15]||(c[15]=u=>r.isAddThemeLibrarySectionItemModalWindowShown=!1),onOnSaveTemplateTheme:c[16]||(c[16]=u=>i(u))},null,8,["deps","themeSettings","themeTemplateSaveState"])):oe("",!0)]))]))}}),YGt=ve(GGt,[["__scopeId","data-v-0d352a5d"]]),ZGt={exitButtonTooltip:"Exit",componentLibraryButtonTooltip:"Select a component to add to the template",themeLibraryButtonTooltip:"Themes",themeStylesButtonTooltip:"Styles"},XGt={exitButtonTooltip:"Выйти",componentLibraryButtonTooltip:"Выбрать компонент для добавления в шаблон",themeLibraryButtonTooltip:"Темы",themeStylesButtonTooltip:"Стили"},dO=ht({en:ZGt,ru:XGt}),QGt={class:"bootstrap-styles aside-menu show"},eYt={class:"bootstrap-styles h-100 d-flex justify-content-start"},tYt={class:"bootstrap-styles border-end border-1 btn-group-vertical justify-content-start px-1 py-4"},nYt={class:"bootstrap-styles p-0 list-style-none"},oYt={class:"bootstrap-styles mb-3"},rYt={class:"bootstrap-styles mb-3"},iYt={class:"bootstrap-styles mb-3"},sYt={class:"bootstrap-styles mb-3"},aYt={class:"bootstrap-styles py-13 ps-7 aside-menu__content bg-white shadow"},lYt=re({__name:"AsideMenu",props:{deps:{},componentLibrary:{},theme:{},themeLibrary:{},componentLibrarySectionUpdated:{type:Boolean},themeTemplateSaveState:{}},emits:["update:setThemeBodyWidth","update:setThemeFont","update:themeBorderRadiusChanged","update:themeBorderRadiusCardChanged","update:themeBorderRadiusButtonChanged","update:themeBorderRadiusBannerChanged","update:themeColorsChanged","update:themeFontSettingsChanged","update:themeComponentPaddingsChanged","update:themeBodyPaddingsChanged","update:themeButtonPaddingsChanged","componentLibrarySectionItemRemoved","componentLibrarySectionItemUpdated","componentLibrarySectionCreated","selectedThemeSettings","onSaveTemplateTheme","themeSectionItemRemoved","onThemeLibrarySectionItemUpdated","onCustomComponentDraggedFromLibrary","onDefaultComponentDraggedFromLibrary","onComponentLibrarySectionRemoved","onThemeLibrarySectionRemoved","onThemeLibrarySectionAdded","onResponsiveWidthChanged","exit"],setup(t,{emit:e}){const n=t,o={exitButtonTooltip:dO({localeKey:n.deps.localeKey}).exitButtonTooltip,componentLibraryButtonTooltip:dO({localeKey:n.deps.localeKey}).componentLibraryButtonTooltip,themeLibraryButtonTooltip:dO({localeKey:n.deps.localeKey}).themeLibraryButtonTooltip,themeStylesButtonTooltip:dO({localeKey:n.deps.localeKey}).themeStylesButtonTooltip},r=Le({menuToggle:{isShown:!1,content:null}}),i=a=>{a===r.menuToggle.content?(r.menuToggle.isShown=!1,r.menuToggle.content=null):(r.menuToggle.content=a,r.menuToggle.isShown=!0)},s=e;return(a,l)=>(E(),R("div",QGt,[b("section",eYt,[b("nav",tYt,[b("ul",nYt,[b("li",oYt,[Ke((E(),R("button",{onClick:l[0]||(l[0]=c=>s("exit")),class:"exit-button"},[b("i",null,[I(ojt)])])),[[N(Xn),{title:o.exitButtonTooltip,placement:"right"}]])]),b("li",rYt,[Ke((E(),R("button",{class:G(["bootstrap-styles button__md button__hover-blue rounded-1 p-2",{active:r.menuToggle.content==="componentsLibrary"}]),onClick:l[1]||(l[1]=c=>i("componentsLibrary"))},[I(qzt)],2)),[[N(Xn),{title:o.componentLibraryButtonTooltip,placement:"right"}]])]),b("li",iYt,[Ke((E(),R("button",{class:G(["bootstrap-styles button__md button__hover-blue rounded-1 p-2",{active:r.menuToggle.content==="themes"}]),onClick:l[2]||(l[2]=c=>i("themes"))},[I(Qzt)],2)),[[N(Xn),{title:o.themeLibraryButtonTooltip,placement:"right"}]])]),b("li",sYt,[Ke((E(),R("button",{class:G(["bootstrap-styles button__md button__hover-blue rounded-1 p-2",{active:r.menuToggle.content==="style"}]),onClick:l[3]||(l[3]=c=>i("style"))},[I(Yzt)],2)),[[N(Xn),{title:o.themeStylesButtonTooltip,placement:"right"}]])])])]),Ke(b("div",aYt,[r.menuToggle.content==="componentsLibrary"?(E(),Q(nKt,{key:0,deps:n.deps.componentLibraryDeps,theme:n.theme,componentLibrary:n.componentLibrary,componentLibrarySectionUpdated:n.componentLibrarySectionUpdated,onComponentLibrarySectionItemRemoved:l[4]||(l[4]=()=>s("componentLibrarySectionItemRemoved")),onComponentLibrarySectionItemUpdated:l[5]||(l[5]=()=>s("componentLibrarySectionItemUpdated")),onComponentLibrarySectionCreated:l[6]||(l[6]=()=>s("componentLibrarySectionCreated")),onOnCustomComponentDraggedFromLibrary:l[7]||(l[7]=c=>s("onCustomComponentDraggedFromLibrary",c)),onOnDefaultComponentDraggedFromLibrary:l[8]||(l[8]=c=>s("onDefaultComponentDraggedFromLibrary",c)),onOnComponentLibrarySectionRemoved:l[9]||(l[9]=c=>s("onComponentLibrarySectionRemoved"))},null,8,["deps","theme","componentLibrary","componentLibrarySectionUpdated"])):oe("",!0),r.menuToggle.content==="style"?(E(),Q(YGt,{key:1,theme:n.theme,deps:n.deps.themeStylesDeps,themeLibrary:n.themeLibrary,themeTemplateSaveState:n.themeTemplateSaveState,"onUpdate:setThemeBodyWidth":l[10]||(l[10]=c=>s("update:setThemeBodyWidth",c)),"onUpdate:setThemeFont":l[11]||(l[11]=c=>s("update:setThemeFont",c)),"onUpdate:themeBorderRadiusChanged":l[12]||(l[12]=c=>s("update:themeBorderRadiusChanged",c)),"onUpdate:themeBorderRadiusCardChanged":l[13]||(l[13]=c=>s("update:themeBorderRadiusCardChanged",c)),"onUpdate:themeBorderRadiusButtonChanged":l[14]||(l[14]=c=>s("update:themeBorderRadiusButtonChanged",c)),"onUpdate:themeBorderRadiusBannerChanged":l[15]||(l[15]=c=>s("update:themeBorderRadiusBannerChanged",c)),"onUpdate:themeColorsChanged":l[16]||(l[16]=c=>s("update:themeColorsChanged",c)),"onUpdate:themeFontSettingsChanged":l[17]||(l[17]=c=>s("update:themeFontSettingsChanged",c)),"onUpdate:themeBodyPaddingsChanged":l[18]||(l[18]=c=>s("update:themeBodyPaddingsChanged",c)),"onUpdate:themeComponentPaddingsChanged":l[19]||(l[19]=c=>s("update:themeComponentPaddingsChanged",c)),"onUpdate:themeButtonPaddingsChanged":l[20]||(l[20]=c=>s("update:themeButtonPaddingsChanged",c)),onOnResponsiveWidthChanged:l[21]||(l[21]=c=>s("onResponsiveWidthChanged",c)),onOnSaveTemplateTheme:l[22]||(l[22]=c=>s("onSaveTemplateTheme",c))},null,8,["theme","deps","themeLibrary","themeTemplateSaveState"])):oe("",!0),r.menuToggle.content==="themes"?(E(),Q(f8t,{key:2,deps:n.deps.themeLibraryDeps,themeLibrary:n.themeLibrary,currentThemeSettings:n.theme,onOnThemeLibrarySectionItemUpdated:l[23]||(l[23]=()=>s("onThemeLibrarySectionItemUpdated")),onSelectedThemeSettings:l[24]||(l[24]=c=>s("selectedThemeSettings",c)),onThemeSectionItemRemoved:l[25]||(l[25]=()=>s("themeSectionItemRemoved")),onOnThemeLibrarySectionRemoved:l[26]||(l[26]=c=>s("onThemeLibrarySectionRemoved")),onOnThemeLibrarySectionAdded:l[27]||(l[27]=c=>s("onThemeLibrarySectionAdded"))},null,8,["deps","themeLibrary","currentThemeSettings"])):oe("",!0),b("div",{class:G(["bootstrap-styles pe-7",{active:r.menuToggle.content==="folder"}])},null,2),b("div",{class:G(["bootstrap-styles pe-7",{active:r.menuToggle.content==="comments"}])},null,2),b("div",{class:G(["bootstrap-styles pe-7",{active:r.menuToggle.content==="help"}])},null,2)],512),[[RL,r.menuToggle.isShown]])])]))}}),cYt=ve(lYt,[["__scopeId","data-v-b7e478ae"]]),uYt={},dYt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 16",fill:"none"};function hYt(t,e){return E(),R("svg",dYt,[...e[0]||(e[0]=[b("path",{d:"M2.66683 10.6667H13.3335V3.33333H2.66683V10.6667ZM8.66683 12V13.3333H11.3335V14.6667H4.66683V13.3333H7.3335V12H1.9947C1.62953 12 1.3335 11.7007 1.3335 11.3283V2.67165C1.3335 2.30071 1.63704 2 1.9947 2H14.0056C14.3708 2 14.6668 2.29928 14.6668 2.67165V11.3283C14.6668 11.6993 14.3633 12 14.0056 12H8.66683Z",fill:"var(--black)"},null,-1)])])}const pYt=ve(uYt,[["render",hYt]]),mYt={},fYt={width:"16",height:"17",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function gYt(t,e){return E(),R("svg",fYt,[...e[0]||(e[0]=[b("path",{d:"M2.66667 2.66667V13.3333H13.3333V2.66667H2.66667ZM2 1.33334H14C14.3682 1.33334 14.6667 1.63182 14.6667 2V14C14.6667 14.3682 14.3682 14.6667 14 14.6667H2C1.63182 14.6667 1.33334 14.3682 1.33334 14V2C1.33334 1.63182 1.63182 1.33334 2 1.33334ZM8 11.3333C8.3682 11.3333 8.66667 11.6318 8.66667 12C8.66667 12.3682 8.3682 12.6667 8 12.6667C7.6318 12.6667 7.33334 12.3682 7.33334 12C7.33334 11.6318 7.6318 11.3333 8 11.3333Z",fill:"var(--black)"},null,-1)])])}const yYt=ve(mYt,[["render",gYt]]),CYt={},bYt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 16",fill:"none"};function vYt(t,e){return E(),R("svg",bYt,[...e[0]||(e[0]=[b("path",{d:"M4.66665 2.66666V13.3333H11.3333V2.66666H4.66665ZM3.99998 1.33333H12C12.3682 1.33333 12.6666 1.63181 12.6666 1.99999V14C12.6666 14.3682 12.3682 14.6667 12 14.6667H3.99998C3.63179 14.6667 3.33331 14.3682 3.33331 14V1.99999C3.33331 1.63181 3.63179 1.33333 3.99998 1.33333ZM7.99998 11.3333C8.36818 11.3333 8.66665 11.6318 8.66665 12C8.66665 12.3682 8.36818 12.6667 7.99998 12.6667C7.63178 12.6667 7.33331 12.3682 7.33331 12C7.33331 11.6318 7.63178 11.3333 7.99998 11.3333Z",fill:"var(--black)"},null,-1)])])}const wYt=ve(CYt,[["render",vYt]]),$pe=t=>t==="desktop",O9e=t=>t==="tablet",P9e=t=>t==="mobile",SYt={class:"bootstrap-styles toggleDeviceToolbar__container col d-flex flex-nowrap"},xYt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},TYt={class:"bootstrap-styles d-flex"},kYt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},FYt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},EYt=re({__name:"ToggleDeviceToolbar",props:{deps:{},deviceMode:{},isResponsiveWidth:{type:Boolean}},emits:["onDeviceModeChanged"],setup(t,{emit:e}){const n=t,o={disabledButtonTooltip:$9e({localeKey:n.deps.localeKey}).disabledButtonTooltip},r=e;return(i,s)=>(E(),R("div",SYt,[b("button",{class:G(["bootstrap-styles toggleDeviceToolbar__button button__sm button__hover-gray button__underline rounded-2 position-relative p-1",{active:N($pe)(n.deviceMode)}]),onClick:s[0]||(s[0]=a=>r("onDeviceModeChanged",{device:"desktop"}))},[b("i",xYt,[I(pYt)])],2),Ke((E(),R("div",TYt,[b("button",{class:G(["bootstrap-styles toggleDeviceToolbar__button p-1 position-relative button__sm button__hover-gray button__underline rounded-2 me-1",{active:N(O9e)(n.deviceMode),"disabled pe-none":!n.isResponsiveWidth}]),onClick:s[1]||(s[1]=a=>r("onDeviceModeChanged",{device:"tablet"}))},[b("i",kYt,[I(yYt)])],2),b("button",{class:G(["bootstrap-styles toggleDeviceToolbar__button p-1 position-relative button__sm button__hover-gray button__underline rounded-2",{active:N(P9e)(n.deviceMode),"disabled pe-none":!n.isResponsiveWidth}]),onClick:s[2]||(s[2]=a=>r("onDeviceModeChanged",{device:"mobile"}))},[b("i",FYt,[I(wYt)])],2)])),[[N(Xn),{title:o.disabledButtonTooltip,placement:"bottom",trigger:n.isResponsiveWidth?"manual":"hover"}]])]))}}),LYt=ve(EYt,[["__scopeId","data-v-06dfcd35"]]),_Yt={},AYt={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",viewBox:"0 0 12 13",fill:"none"};function RYt(t,e){return E(),R("svg",AYt,[...e[0]||(e[0]=[b("path",{d:"M8.48527 5.38419L7.54247 4.44138L1.33333 10.6505V11.5933H2.27614L8.48527 5.38419ZM9.42807 4.44138L10.3709 3.49858L9.42807 2.55576L8.48527 3.49858L9.42807 4.44138ZM2.82843 12.9267H0V10.0982L8.95667 1.14155C9.21707 0.881202 9.63913 0.881202 9.89947 1.14155L11.7851 3.02717C12.0455 3.28752 12.0455 3.70963 11.7851 3.96998L2.82843 12.9267Z",fill:"var(--black)"},null,-1)])])}const DYt=ve(_Yt,[["render",RYt]]),BYt={title:"Subject settings",themeLabel:"Subject",themeInputPlaceholder:"Title that recipients will see in their email",preheaderLabel:"Preheader",preheaderInputPlaceholder:"Brief description visible right after the subject in the email list",applyButton:"Apply",cancelButton:"Cancel"},NYt={title:"Настройки темы",themeLabel:"Тема",themeInputPlaceholder:"Заголовок, который увидят получатели в своей почте",preheaderLabel:"Прехедер",preheaderInputPlaceholder:"Краткое описание, которое будет видно сразу после темы в списке писем",applyButton:"Применить",cancelButton:"Отмена"},u1=ht({en:BYt,ru:NYt}),IYt={class:"bootstrap-styles px-11 my-8"},MYt={class:"bootstrap-styles fw-bold mb-5"},$Yt=["placeholder"],OYt={class:"bootstrap-styles px-11 my-8"},PYt={class:"bootstrap-styles fw-bold mb-5 user-select-none"},VYt=["placeholder"],WYt=re({__name:"PreheaderSubjectUpdateModalWindow",props:{deps:{},subject:{},preheader:{}},emits:["cancel","apply"],setup(t,{emit:e}){const n=t,o={title:u1({localeKey:n.deps.localeKey}).title,themeLabel:u1({localeKey:n.deps.localeKey}).themeLabel,themeInputPlaceholder:u1({localeKey:n.deps.localeKey}).themeInputPlaceholder,preheaderLabel:u1({localeKey:n.deps.localeKey}).preheaderLabel,preheaderInputPlaceholder:u1({localeKey:n.deps.localeKey}).preheaderInputPlaceholder,cancelButton:u1({localeKey:n.deps.localeKey}).cancelButton,applyButton:u1({localeKey:n.deps.localeKey}).applyButton},r=Le({subject:n.subject,preheader:n.preheader}),i=()=>{a("apply",{subject:r.subject,preheader:r.preheader}),s()},s=()=>{a("cancel")},a=e;return(l,c)=>(E(),Q(bd,{class:"preheader-subject-update-modal-window",headerText:o.title,onClose:c[4]||(c[4]=()=>s())},{body:Bt(()=>[b("div",IYt,[b("label",MYt,W(o.themeLabel),1),Ke(b("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.subject=u),class:"bootstrap-styles bg-color-input border rounded-2 w-100 py-1 px-3",placeholder:o.themeInputPlaceholder},null,8,$Yt),[[Ea,r.subject],[N(Dg),void 0,void 0,{end:!0}]])]),b("div",OYt,[b("label",PYt,W(o.preheaderLabel),1),Ke(b("input",{"onUpdate:modelValue":c[1]||(c[1]=u=>r.preheader=u),class:"bootstrap-styles bg-color-input border rounded-2 w-100 py-1 px-3",placeholder:o.preheaderInputPlaceholder},null,8,VYt),[[Ea,r.preheader]])])]),"footer-actions":Bt(()=>[b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:c[2]||(c[2]=Nt(u=>s(),["stop"]))},W(o.cancelButton),1),b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 bg-color-selected text-white cursor-pointer button__hover-blue-400",onClick:c[3]||(c[3]=Nt(()=>i(),["stop"]))},W(o.applyButton),1)]),_:1},8,["headerText"]))}}),HYt={preheaderSubjectUpdateButtonTooltip:"Edit email subject and preheader",preheaderSubjectUpdateButton:"Set subject"},zYt={preheaderSubjectUpdateButtonTooltip:"Редактировать тему и прехедер письма",preheaderSubjectUpdateButton:"Указать тему"},jke=ht({en:HYt,ru:zYt}),jYt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center me-1"},KYt={key:0},UYt={key:1},qYt=re({__name:"PreheaderSubjectUpdateButton",props:{deps:{},subject:{},preheader:{}},emits:["onPreheaderSubjectUpdated"],setup(t,{emit:e}){const n=t,o={preheaderSubjectUpdateButtonTooltip:jke({localeKey:n.deps.localeKey}).preheaderSubjectUpdateButtonTooltip,preheaderSubjectUpdateButton:jke({localeKey:n.deps.localeKey}).preheaderSubjectUpdateButton},r=Le({isPreheaderSubjectUpdateModalWindowShown:!1}),i=e;return(s,a)=>(E(),R(Se,null,[Ke((E(),R("button",{class:"bootstrap-styles topMenu__button d-flex justify-content-center align-items-center py-1 me-1 rounded-2 button__hover-gray text-nowrap flex-shrink-1",onClick:a[0]||(a[0]=l=>r.isPreheaderSubjectUpdateModalWindowShown=!0)},[b("i",jYt,[I(DYt)]),n.subject.length===0?(E(),R("span",KYt,W(o.preheaderSubjectUpdateButton),1)):(E(),R("span",UYt,W(n.subject),1))])),[[N(Xn),{title:o.preheaderSubjectUpdateButtonTooltip,placement:"bottom"}]]),(E(),Q(yo,{to:"body",defer:""},[r.isPreheaderSubjectUpdateModalWindowShown?(E(),Q(WYt,{key:0,deps:n.deps.preheaderSubjectUpdateModalWindowDeps,subject:n.subject,preheader:n.preheader,onApply:a[1]||(a[1]=l=>i("onPreheaderSubjectUpdated",l)),onCancel:a[2]||(a[2]=l=>r.isPreheaderSubjectUpdateModalWindowShown=!1)},null,8,["deps","subject","preheader"])):oe("",!0)]))],64))}}),JYt=ve(qYt,[["__scopeId","data-v-ebe33f89"]]),GYt={},YYt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"};function ZYt(t,e){return E(),R("svg",YYt,[...e[0]||(e[0]=[b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 9.8828H12.6667V9.16667H8.66667V13.1667H9.41808V14.5H2.66667C2.29848 14.5 2 14.2015 2 13.8333V3.16667C2 2.79848 2.29848 2.5 2.66667 2.5H13.3333C13.7015 2.5 14 2.79848 14 3.16667V9.8828ZM3.33333 3.83333H7.33333V13.1667H3.33333V3.83333ZM8.66667 3.83333H12.6667V7.83333H8.66667V3.83333Z",fill:"var(--black)"},null,-1),b("path",{d:"M14.714 14.2712L13.2998 12.857L14.714 11.4428L13.7712 10.5L12.357 11.9142L10.9428 10.5L10 11.4428L11.4142 12.857L10 14.2712L10.9428 15.214L12.357 13.7998L13.7712 15.214L14.714 14.2712Z",fill:"var(--black)"},null,-1)])])}const XYt=ve(GYt,[["render",ZYt]]),QYt={resetTemplateButtonTooltip:"Reset template",resetTemplateButton:"Reset template"},eZt={resetTemplateButtonTooltip:"Сбросить шаблон",resetTemplateButton:"Сбросить шаблон"},tZt=ht({en:QYt,ru:eZt}),nZt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},oZt={class:"bootstrap-styles"},rZt=re({__name:"ResetTemplateButton",props:{deps:{}},emits:["onReset"],setup(t,{emit:e}){const n=tZt({localeKey:t.deps.localeKey}),o=e;return(r,i)=>Ke((E(),R("button",{class:"bootstrap-styles topMenu__button d-flex justify-content-center align-items-center py-1 me-1 rounded-2 button__hover-gray text-nowrap",onClick:i[0]||(i[0]=s=>o("onReset"))},[b("i",nZt,[I(XYt)]),b("span",oZt,W(N(n).resetTemplateButton),1)])),[[N(Xn),{placement:"bottom",title:N(n).resetTemplateButtonTooltip}]])}}),iZt={class:"bootstrap-styles exportMenu__container d-flex justify-content-end align-items-start flex-nowrap"},sZt=re({__name:"ExportMenu",props:{deps:{},emailTemplate:{}},emits:["onAppSettingsUpdated","onTemplateReset"],setup(t,{emit:e}){const n=t,o=n.deps.appSettingsModifierPlugin,r=n.deps.appStateManagerPlugin,i=e;return(s,a)=>(E(),R("div",iZt,[I(rZt,{deps:n.deps.resetTemplateButtonDeps,onOnReset:a[0]||(a[0]=()=>i("onTemplateReset"))},null,8,["deps"]),n.deps.appSettingsModifierPlugin?(E(),Q(N(o),{key:0,onOnSettingsUpdated:a[1]||(a[1]=()=>i("onAppSettingsUpdated"))})):oe("",!0),n.deps.appStateManagerPlugin?(E(),Q(N(r),{key:1,emailTemplate:n.emailTemplate},null,8,["emailTemplate"])):oe("",!0)]))}}),aZt={},lZt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 16",fill:"none"};function cZt(t,e){return E(),R("svg",lZt,[...e[0]||(e[0]=[b("path",{d:"M4.41796 5.57883L6.01934 7.10399L5.12616 7.95465L2 4.97732L5.12616 2L6.01934 2.85067L4.41796 4.37581H8.94737C11.7379 4.37581 14 6.53025 14 9.18792C14 11.8455 11.7379 14 8.94737 14H3.26316V12.797H8.94737C11.0402 12.797 12.7368 11.1811 12.7368 9.18792C12.7368 7.19466 11.0402 5.57883 8.94737 5.57883H4.41796Z",fill:"var(--black)"},null,-1)])])}const uZt=ve(aZt,[["render",cZt]]),dZt={},hZt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 16",fill:"none"};function pZt(t,e){return E(),R("svg",hZt,[...e[0]||(e[0]=[b("path",{d:"M11.582 5.57883L9.98066 7.10399L10.8738 7.95465L14 4.97732L10.8738 2L9.98066 2.85067L11.582 4.37581H7.05263C4.26213 4.37581 2 6.53025 2 9.18792C2 11.8455 4.26213 14 7.05263 14H12.7368V12.797H7.05263C4.95977 12.797 3.26316 11.1811 3.26316 9.18792C3.26316 7.19466 4.95977 5.57883 7.05263 5.57883H11.582Z",fill:"var(--black)"},null,-1)])])}const mZt=ve(dZt,[["render",pZt]]),fZt={class:"bootstrap-styles emailTemplateHistoryControls__container d-flex flex-nowrap"},gZt={class:"bootstrap-styles button__sm button__hover-gray button__underline rounded-2 position-relative p-1 disabled"},yZt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},CZt={class:"bootstrap-styles button__sm button__hover-gray button__underline rounded-2 position-relative p-1"},bZt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},vZt=re({__name:"EmailTemplateHistoryControls",setup(t){return(e,n)=>(E(),R("div",fZt,[b("button",gZt,[b("i",yZt,[I(uZt)])]),b("button",CZt,[b("i",bZt,[I(mZt)])])]))}}),wZt=ve(vZt,[["__scopeId","data-v-021588ab"]]),SZt={class:"bootstrap-styles d-flex align-items-start flex-nowrap g-0 gap-1"},xZt=re({__name:"TopMenu",props:{deps:{},deviceMode:{},subject:{},preheader:{},isResponsiveWidth:{type:Boolean},emailTemplate:{}},emits:["onDeviceModeChanged","onAppSettingsUpdated","onTemplateReset","onPreheaderSubjectUpdated","onDblClick"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("nav",{class:"bootstrap-styles topMenu__container d-flex justify-content-between mb-7",onDblclick:i[4]||(i[4]=s=>o("onDblClick"))},[b("div",SZt,[I(LYt,{deps:n.deps.toggleDeviceToolbarDeps,deviceMode:n.deviceMode,isResponsiveWidth:n.isResponsiveWidth,onOnDeviceModeChanged:i[0]||(i[0]=s=>o("onDeviceModeChanged",s))},null,8,["deps","deviceMode","isResponsiveWidth"]),I(wZt,{class:"bootstrap-styles d-none"})]),I(JYt,{deps:n.deps.preheaderSubjectUpdateButtonDeps,preheader:n.preheader,subject:n.subject,onOnPreheaderSubjectUpdated:i[1]||(i[1]=s=>o("onPreheaderSubjectUpdated",s))},null,8,["deps","preheader","subject"]),I(sZt,{deps:n.deps.exportMenuDeps,emailTemplate:n.emailTemplate,onOnAppSettingsUpdated:i[2]||(i[2]=s=>o("onAppSettingsUpdated")),onOnTemplateReset:i[3]||(i[3]=s=>o("onTemplateReset"))},null,8,["deps","emailTemplate"])],32))}}),TZt=ve(xZt,[["__scopeId","data-v-5e6164f8"]]),kZt={},FZt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function EZt(t,e){return E(),R("svg",FZt,[...e[0]||(e[0]=[b("path",{d:"M5.66675 4.6665C6.21903 4.6665 6.66675 4.21879 6.66675 3.6665C6.66675 3.11422 6.21903 2.6665 5.66675 2.6665C5.11446 2.6665 4.66675 3.11422 4.66675 3.6665C4.66675 4.21879 5.11446 4.6665 5.66675 4.6665ZM5.66675 8.99984C6.21903 8.99984 6.66675 8.5521 6.66675 7.99984C6.66675 7.44757 6.21903 6.99984 5.66675 6.99984C5.11446 6.99984 4.66675 7.44757 4.66675 7.99984C4.66675 8.5521 5.11446 8.99984 5.66675 8.99984ZM6.66675 12.3332C6.66675 12.8854 6.21903 13.3332 5.66675 13.3332C5.11446 13.3332 4.66675 12.8854 4.66675 12.3332C4.66675 11.7809 5.11446 11.3332 5.66675 11.3332C6.21903 11.3332 6.66675 11.7809 6.66675 12.3332ZM10.3334 4.6665C10.8857 4.6665 11.3334 4.21879 11.3334 3.6665C11.3334 3.11422 10.8857 2.6665 10.3334 2.6665C9.78115 2.6665 9.33342 3.11422 9.33342 3.6665C9.33342 4.21879 9.78115 4.6665 10.3334 4.6665ZM11.3334 7.99984C11.3334 8.5521 10.8857 8.99984 10.3334 8.99984C9.78115 8.99984 9.33342 8.5521 9.33342 7.99984C9.33342 7.44757 9.78115 6.99984 10.3334 6.99984C10.8857 6.99984 11.3334 7.44757 11.3334 7.99984ZM10.3334 13.3332C10.8857 13.3332 11.3334 12.8854 11.3334 12.3332C11.3334 11.7809 10.8857 11.3332 10.3334 11.3332C9.78115 11.3332 9.33342 11.7809 9.33342 12.3332C9.33342 12.8854 9.78115 13.3332 10.3334 13.3332Z",fill:"var(--black)"},null,-1)])])}const eie=ve(kZt,[["render",EZt]]),LZt={moving:"Moving"},_Zt={moving:"Перемещение"},AZt=ht({en:LZt,ru:_Zt}),RZt={class:"bootstrap-styles preview-row"},DZt={class:"bootstrap-styles rounded-2 position-relative fix-bar__control-hover drag-btn"},BZt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},NZt={class:"bootstrap-styles dragged-container text-color-selected"},IZt=re({__name:"DraggingMenu",props:{deps:{},mouseCoordinates:{},rowHeight:{},rowLeft:{}},setup(t){const e=t,n={moving:AZt({localeKey:e.deps.localeKey}).moving};return(o,r)=>(E(),R("div",RZt,[b("div",{class:"bootstrap-styles fix-bar d-flex flex-column p-14 bg-white rounded-2 shadow position-absolute z-index-2 dragged",style:Te({left:e.mouseCoordinates.x-100-e.rowLeft+"px",top:e.rowHeight/2-100+"px",width:"200px"})},[b("div",DZt,[b("i",BZt,[I(eie)]),b("div",NZt,W(n.moving),1)])],4)]))}}),MZt={},$Zt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function OZt(t,e){return E(),R("svg",$Zt,[...e[0]||(e[0]=[b("path",{d:"M4.66667 12.6667V8.66667H11.3333V12.6667H12.6667V5.21895L10.7811 3.33333H3.33333V12.6667H4.66667ZM2.66667 2H11.3333L14 4.66667V13.3333C14 13.7015 13.7015 14 13.3333 14H2.66667C2.29848 14 2 13.7015 2 13.3333V2.66667C2 2.29848 2.29848 2 2.66667 2ZM6 10V12.6667H10V10H6Z",fill:"var(--black)"},null,-1)])])}const PZt=ve(MZt,[["render",OZt]]),VZt={},WZt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function HZt(t,e){return E(),R("svg",WZt,[...e[0]||(e[0]=[b("path",{d:"M4.66653 4.00016V2.00016C4.66653 1.63198 4.96501 1.3335 5.3332 1.3335H13.3332C13.7014 1.3335 13.9999 1.63198 13.9999 2.00016V11.3335C13.9999 11.7017 13.7014 12.0002 13.3332 12.0002H11.3332V13.9996C11.3332 14.3681 11.0333 14.6668 10.662 14.6668H2.67111C2.30039 14.6668 2 14.3704 2 13.9996L2.00173 4.66741C2.0018 4.2989 2.30176 4.00016 2.67295 4.00016H4.66653ZM3.33495 5.3335L3.33346 13.3335H9.99987V5.3335H3.33495ZM5.99987 4.00016H11.3332V10.6668H12.6665V2.66683H5.99987V4.00016Z",fill:"var(--black)"},null,-1)])])}const zZt=ve(VZt,[["render",HZt]]),jZt={},KZt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function UZt(t,e){return E(),R("svg",KZt,[...e[0]||(e[0]=[b("path",{d:"M11.3333 6.00016L7.99992 9.3335L4.66659 6.00016",stroke:"var(--black)","stroke-width":"1.25","stroke-linecap":"round"},null,-1)])])}const qZt=ve(jZt,[["render",UZt]]),JZt={},GZt={class:"icon-hover-stroke d-flex align-items-center justify-content-center"};function YZt(t,e){return E(),R("i",GZt,[...e[0]||(e[0]=[b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[b("path",{d:"M11.3333 9.99984L7.99992 6.6665L4.66659 9.99984",stroke:"var(--black)","stroke-width":"1.25","stroke-linecap":"round"})],-1)])])}const ZZt=ve(JZt,[["render",YZt]]),XZt={draggingButtonTooltip:"Move",moveToTopButtonTooltip:"Move to top",moveToBottomButtonTooltip:"Move to bottom",copyButtonTooltip:"Duplicate",saveButtonTooltip:"Save to library",disabledSaveButtonTooltip:"Для сохранения создайте секцию библиотеки компонентов",removeButtonTooltip:"Delete",removeWindowTitle:"Delete component",removeConfirmMessage:"Are you sure you want to delete the component?",draggingMenu:{moving:"Moving"},dropHere:"Drop here"},QZt={draggingButtonTooltip:"Переместить",moveToTopButtonTooltip:"Переместить вверх",moveToBottomButtonTooltip:"Переместить вниз",copyButtonTooltip:"Дублировать",saveButtonTooltip:"Сохранить в библиотеку",disabledSaveButtonTooltip:"Для сохранения создайте секцию библиотеки компонентов",removeButtonTooltip:"Удалить",removeWindowTitle:"Удаление компонента",removeConfirmMessage:"Вы действительно хотите удалить компонент ?",draggingMenu:{moving:"Перемещение"},dropHere:"Бросьте сюда"},Ad=ht({en:XZt,ru:QZt}),eXt={class:"bootstrap-styles fix-bar d-flex flex-column p-14 bg-white rounded-2 shadow position-absolute"},tXt={class:"bootstrap-styles p-1 rounded-2 position-relative fix-bar__control-hover drag-btn"},nXt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},oXt={class:"bootstrap-styles fix-bar__control p-14 rounded-2 shadow bg-white position-absolute"},rXt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},iXt={class:"bootstrap-styles icon-hover-stroke d-flex align-items-center justify-content-center"},sXt={class:"bootstrap-styles icon-hover-stroke d-flex align-items-center justify-content-center"},aXt={class:"bootstrap-styles dragged-container text-color-selected"},lXt={class:"bootstrap-styles dragged-arrow position-absolute"},cXt={class:"bootstrap-styles ms-14 position-absolute px-5 py-1 text-white fw-bold bg-selected rounded-3"},uXt={class:"bootstrap-styles dragged-hidden"},dXt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},hXt={class:"bootstrap-styles icon-hover d-flex align-items-center justify-content-center"},pXt={class:"bootstrap-styles"},mXt=re({__name:"MovementMenu",props:{deps:{},isComponentLibraryEmpty:{type:Boolean}},emits:["onMoveUpComponentBtnClicked","onMoveDownComponentBtnClicked","onRemoveComponentBtnClicked","onDuplicateComponentBtnClicked","onDragPadControlMousedown","showSaveComponentModalWindowBtnClicked"],setup(t,{emit:e}){const n=t,o={draggingButtonTooltip:Ad({localeKey:n.deps.localeKey}).draggingButtonTooltip,moveToTopButtonTooltip:Ad({localeKey:n.deps.localeKey}).moveToTopButtonTooltip,moveToBottomButtonTooltip:Ad({localeKey:n.deps.localeKey}).moveToBottomButtonTooltip,copyButtonTooltip:Ad({localeKey:n.deps.localeKey}).copyButtonTooltip,saveButtonTooltip:Ad({localeKey:n.deps.localeKey}).saveButtonTooltip,disabledSaveButtonTooltip:Ad({localeKey:n.deps.localeKey}).disabledSaveButtonTooltip,removeButtonTooltip:Ad({localeKey:n.deps.localeKey}).removeButtonTooltip,removeWindowTitle:Ad({localeKey:n.deps.localeKey}).removeWindowTitle,removeConfirmMessage:Ad({localeKey:n.deps.localeKey}).removeConfirmMessage,draggingMenu:{moving:Ad({localeKey:n.deps.localeKey}).draggingMenu.moving},dropHere:Ad({localeKey:n.deps.localeKey}).dropHere},r=Le({isRemoveComponentWindowShown:!1}),i=e;return(s,a)=>(E(),R("div",eXt,[b("div",tXt,[b("i",nXt,[I(eie)]),b("div",oXt,[Ke((E(),R("button",{class:"bootstrap-styles drag-handle p-1 rounded-2",onMousedown:a[0]||(a[0]=l=>{i("onDragPadControlMousedown",l)})},[b("i",rXt,[I(eie)])],32)),[[N(Xn),{title:o.draggingButtonTooltip,placement:"left"}]]),Ke((E(),R("button",{class:"bootstrap-styles p-1 rounded-2",onClick:a[1]||(a[1]=l=>i("onMoveUpComponentBtnClicked"))},[b("i",iXt,[I(ZZt)])])),[[N(Xn),{title:o.moveToTopButtonTooltip,placement:"top"}]]),Ke((E(),R("button",{class:"bootstrap-styles p-1 rounded-2",onClick:a[2]||(a[2]=l=>i("onMoveDownComponentBtnClicked"))},[b("i",sXt,[I(qZt)])])),[[N(Xn),{title:o.moveToBottomButtonTooltip,placement:"top"}]])]),b("div",aXt,W(o.draggingMenu.moving),1),b("div",lXt,[b("span",cXt,W(o.dropHere),1)])]),b("div",uXt,[Ke((E(),R("button",{class:"bootstrap-styles p-1 rounded-2",onClick:a[3]||(a[3]=l=>i("onDuplicateComponentBtnClicked"))},[b("i",dXt,[I(zZt)])])),[[N(Xn),{title:o.copyButtonTooltip,placement:"left"}]]),b("div",null,[Ke((E(),R("button",{class:G([{disabled:n.isComponentLibraryEmpty},"bootstrap-styles p-1 rounded-2 save-component-button"]),onClick:a[4]||(a[4]=l=>!n.isComponentLibraryEmpty&&i("showSaveComponentModalWindowBtnClicked"))},[b("i",hXt,[I(PZt)])],2)),[[N(Xn),{title:n.isComponentLibraryEmpty?o.disabledSaveButtonTooltip:o.saveButtonTooltip,placement:"left"}]])]),Ke((E(),R("button",{class:"bootstrap-styles basket p-1 rounded-2",onClick:a[5]||(a[5]=l=>r.isRemoveComponentWindowShown=!0)},[b("i",pXt,[I(u$)])])),[[N(Xn),{title:o.removeButtonTooltip,placement:"left"}]]),(E(),Q(yo,{to:"body",defer:""},[r.isRemoveComponentWindowShown?(E(),Q(Ch,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:o.removeWindowTitle,onCancel:a[6]||(a[6]=l=>r.isRemoveComponentWindowShown=!1),onConfirmed:a[7]||(a[7]=()=>{r.isRemoveComponentWindowShown=!1,i("onRemoveComponentBtnClicked")})},{"body-content":Bt(()=>[no(W(o.removeConfirmMessage),1)]),_:1},8,["deps","headerText"])):oe("",!0)]))])]))}}),fXt=ve(mXt,[["__scopeId","data-v-b9de7988"]]),gXt={},yXt={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function CXt(t,e){return E(),R("svg",yXt,[...e[0]||(e[0]=[b("path",{d:"M8.00065 14.6668C4.31875 14.6668 1.33398 11.682 1.33398 8.00016C1.33398 4.31826 4.31875 1.3335 8.00065 1.3335C11.6825 1.3335 14.6673 4.31826 14.6673 8.00016C14.6673 11.682 11.6825 14.6668 8.00065 14.6668ZM8.00065 13.3335C10.9462 13.3335 13.334 10.9457 13.334 8.00016C13.334 5.05464 10.9462 2.66683 8.00065 2.66683C5.05513 2.66683 2.66732 5.05464 2.66732 8.00016C2.66732 10.9457 5.05513 13.3335 8.00065 13.3335ZM7.33398 4.66683H8.66732V6.00016H7.33398V4.66683ZM7.33398 7.3335H8.66732V11.3335H7.33398V7.3335Z",fill:"var(--blue-400)"},null,-1)])])}const bXt=ve(gXt,[["render",CXt]]),vXt=(t,e,n,o)=>{if(t==null)return L0.None;const r=e(t);if(r==null)return L0.None;const i=n(r);if(i==null)return L0.None;const s=o(i);return s==null?L0.None:L0.Some([t,r,i,s])},wXt=t=>hs(t),SXt=t=>hs(t),V9e=t=>hs(t),_v=t=>wXt(t.listExpression).Match({ContextValueExpression:()=>!1,ChunkExpression:e=>_v({listExpression:e.ListExpression}),LimitExpression:e=>_v({listExpression:e.ListExpression}),DataSource:()=>!0,ConcatListExpressions:e=>e.ListExpressions.some(n=>_v({listExpression:n}))}),t0=t=>SXt(t.numberExpression).Match({ContextValueExpression:()=>!1,ContextValueExpressionWithFallback:()=>!1,ConstValueExpression:()=>!1,ListLengthExpression:e=>_v({listExpression:e.ListExpression}),DataSource:()=>!0,RoundExpression:()=>!1,TruncateExpression:()=>!1}),fl=t=>x9e(t.stringExpression).Match({ContextValueExpression:()=>!1,ContextValueExpressionWithFallback:()=>!1,ConstValueExpression:()=>!1,NumberToStringExpression:e=>t0({numberExpression:e.NumberExpression}),TruncateValueExpression:e=>fl({stringExpression:e.StringExpression}),ConcatStringExpressions:e=>e.StringExpressions.every(n=>fl({stringExpression:n})),DataSource:()=>!0,UnsubscribeUrlExpression:()=>!1,RecipientEmailAddressExpression:()=>!1}),W9e=t=>Object.entries(t.recordExpression).every(([e,n])=>xXt({expression:n})),xXt=t=>V9e(t.expression).Match({NumberExpression:e=>t0({numberExpression:e}),StringExpression:e=>fl({stringExpression:e}),ListExpression:e=>_v({listExpression:e}),RecordBuilderExpression:e=>W9e({recordExpression:e})}),TXt=t=>hs(t),kXt=t=>hs(t),FXt=t=>hs(t),EXt=t=>hs(t),LXt=t=>FXt(t).Match({Contains:e=>fl({stringExpression:e.Left})||fl({stringExpression:e.Contains}),Equal:e=>fl({stringExpression:e.Left})||fl({stringExpression:e.Right})}),_Xt=t=>EXt(t).Match({Equal:e=>t0({numberExpression:e.Left})||t0({numberExpression:e.Right}),GreaterThan:e=>t0({numberExpression:e.Left})||t0({numberExpression:e.Right}),LessThan:e=>t0({numberExpression:e.Left})||t0({numberExpression:e.Right})}),AXt=t=>kXt(t).Match({StringPredicate:e=>LXt(e),NumberPredicate:e=>_Xt(e)}),D2=t=>TXt(t).Match({AndExpression:e=>e.Expressions.every(D2),OrExpression:e=>e.Expressions.some(D2),NotExpression:e=>D2(e.Expression),Predicate:e=>AXt(e)}),RXt=t=>hs(t),DXt=t=>hs(t),BXt=t=>hs(t),NXt=t=>hs(t),IXt=t=>BXt(t.iteratedColumnVariants).Match({IteratedColumnN21:e=>MXt({iteratedColumnN21:e}),IteratedColumnN22:e=>$Xt({iteratedColumnN22:e})}),MXt=t=>t.iteratedColumnN21.Elements.some(e=>Ep(e)),$Xt=t=>t.iteratedColumnN22.Elements.some(e=>Ep(e)),OXt=t=>t.iteratedColumn.Elements.some(e=>Ep(e)),H9e=t=>t.iteratedColumnBodyRow.IteratedColumn&&OXt({iteratedColumn:t.iteratedColumnBodyRow.IteratedColumn})||t.iteratedColumnBodyRow.IteratedColumnVariant&&IXt({iteratedColumnVariants:t.iteratedColumnBodyRow.IteratedColumnVariant})||_v({listExpression:t.iteratedColumnBodyRow.DataSource}),PXt=t=>NXt(t.iteratedBodyRowVariants).Match({IteratedColumnBodyRow:e=>H9e({iteratedColumnBodyRow:e}),MultipleColumnBodyRow:e=>z9e({multipleColumnBodyRow:e})}),VXt=t=>_v({listExpression:t.iteratedBodyRow.DataSource})||PXt({iteratedBodyRowVariants:t.iteratedBodyRow.BodyRow}),WXt=t=>fl({stringExpression:t.HRef})||fl({stringExpression:t.Text}),HXt=t=>fl({stringExpression:t.Src})||fl({stringExpression:t.HRef})||fl({stringExpression:t.Alt}),zXt=t=>fl({stringExpression:t.Text})||t.HRef!==void 0&&fl({stringExpression:t.HRef}),jXt=t=>t.True.some(e=>Ep(e))||t.False.some(e=>Ep(e))||D2(t.Predicate),Ep=t=>RXt(t).Match({Button:e=>WXt(e),Image:e=>HXt(e),SpanText:e=>zXt(e),UnsubscribeLink:()=>!1,If:e=>jXt(e),Spacer:()=>!1,HeightContainer:e=>e.Elements.some(n=>Ep(n)),OneLineList:e=>e.Elements.some(n=>Ep(n)),RichText:()=>!1,BackgroundImage:e=>[...e.TopElementList.List,...e.BottomElementList.List].some(n=>Ep(n))}),z9e=t=>t.multipleColumnBodyRow.Columns.some(e=>UXt({multipleColumn:e})),KXt=t=>t.simpleBodyRow.Elements.some(e=>Ep(e)),UXt=t=>t.multipleColumn.Elements.some(e=>Ep(e)),qXt=t=>DXt(t.emailComponentBodyRow).Match({IteratedBodyRow:e=>VXt({iteratedBodyRow:e}),IteratedColumnBodyRow:e=>H9e({iteratedColumnBodyRow:e}),MultipleColumnBodyRow:e=>z9e({multipleColumnBodyRow:e}),SimpleBodyRow:e=>KXt({simpleBodyRow:e})}),JXt=t=>t?D2(t):!1,GXt=t=>t.some(e=>qXt({emailComponentBodyRow:e})),YXt=t=>vXt(t.listExpression,e=>e.ChunkExpression,e=>e.ListExpression.LimitExpression,e=>e.ListExpression.DataSource).match({none:()=>!1,some:([e,n,o,r])=>t.canProductShelfDataSourceBeConverted(r)}),ZXt=t=>t.component.ContextBuilderExpression===void 0||!W9e({recordExpression:t.component.ContextBuilderExpression})?"yes":t.component.ContextBuilderExpression&&t.component.ContextBuilderExpression.ProductShelfDataSource!==void 0&&V9e(t.component.ContextBuilderExpression.ProductShelfDataSource).Match({ListExpression:e=>YXt({listExpression:e,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted}),NumberExpression:()=>!1,StringExpression:()=>!1,RecordBuilderExpression:()=>!1})?"with_convert":(JXt(t.component.IfExpression)||GXt(t.component.BodyRowList),"no"),XXt={title:"Save component",nameLabel:"Name",namePlaceholder:"Component name...",groupLabel:"Group",cancelButton:"Cancel",applyButton:"Save"},QXt={title:"Сохранение компонента",nameLabel:"Название",namePlaceholder:"Название компонента...",groupLabel:"Группа",cancelButton:"Отмена",applyButton:"Сохранить"},Ax=ht({en:XXt,ru:QXt}),eQt={class:"bootstrap-styles fw-bold mb-5"},tQt={class:"bootstrap-styles col-12 mb-13"},nQt={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},oQt=["placeholder","disabled"],rQt={class:"bootstrap-styles fw-bold mb-5"},iQt={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},sQt=["disabled"],aQt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},lQt={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuSectionSelect"},cQt=["onClick"],uQt={class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer"},dQt={key:0,class:"bootstrap-styles mt-13 mb-1"},hQt={class:"bootstrap-styles border border-1 rounded bg-blue-selected py-5 px-3 d-flex justify-content-between align-items-start can-be-saved-info"},pQt={class:"bootstrap-styles me-3"},mQt=re({__name:"AddComponentLibrarySectionItemModalWindow",props:{deps:{},emailComponent:{}},emits:["cancel","onComponentAddedToLibrary"],setup(t,{emit:e}){const n=t,o={title:Ax({localeKey:n.deps.localeKey}).title,nameLabel:Ax({localeKey:n.deps.localeKey}).nameLabel,namePlaceholder:Ax({localeKey:n.deps.localeKey}).namePlaceholder,groupLabel:Ax({localeKey:n.deps.localeKey}).groupLabel,cancelButton:Ax({localeKey:n.deps.localeKey}).cancelButton,applyButton:Ax({localeKey:n.deps.localeKey}).applyButton},r=Le({componentLibrarySectionList:[],canBeSavedAsGeneralComponent:ZXt({component:n.emailComponent,canProductShelfDataSourceBeConverted:n.deps.canProductShelfDataSourceBeConverted}),sectionItemName:"",selectedSectionId:"",selectedSectionName:"",isLoadedComponentLibrarySectionList:!0,isLoaded:!0});n.deps.getComponentLibrarySections().then(l=>{r.componentLibrarySectionList=l;const c=l[0];c&&(r.selectedSectionId=c.sectionId,r.selectedSectionName=c.sectionName),r.isLoadedComponentLibrarySectionList=!1});const i=async()=>{r.sectionItemName.length&&(r.isLoaded=!1,await n.deps.addComponentLibrarySectionItem({sectionId:r.selectedSectionId,sectionItemName:r.sectionItemName,component:n.emailComponent}),a("onComponentAddedToLibrary"))},s=()=>{a("cancel")},a=e;return(l,c)=>(E(),Q(bd,{class:"save-theme-modal-window",headerText:o.title,onClose:c[3]||(c[3]=()=>s())},{body:Bt(()=>[I(MU,{class:G(["bootstrap-styles position-absolute top-50 start-50",{invisible:!r.isLoadedComponentLibrarySectionList}])},null,8,["class"]),b("div",{class:G(["bootstrap-styles px-11 py-7 text-start",{invisible:r.isLoadedComponentLibrarySectionList}])},[b("label",eQt,W(o.nameLabel),1),b("div",tQt,[b("div",nQt,[Ke(b("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>r.sectionItemName=u),type:"text",class:"bootstrap-styles w-100",placeholder:o.namePlaceholder,disabled:!r.isLoaded},null,8,oQt),[[Ea,r.sectionItemName],[N(Dg),r.isLoaded]])])]),b("div",null,[b("label",rQt,W(o.groupLabel),1),b("div",iQt,[Ke((E(),R("button",{id:"dropdownMenuSectionSelect",type:"button",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3","data-bs-toggle":"dropdown","aria-expanded":"false",disabled:!r.isLoaded},[b("span",null,W(r.selectedSectionName),1),b("i",aQt,[I(Si)])],8,sQt)),[[N(ah)]]),b("ul",lQt,[(E(!0),R(Se,null,At(r.componentLibrarySectionList,u=>(E(),R("li",{key:u.sectionName,class:"bootstrap-styles dropdown-item p-0",onClick:()=>{r.selectedSectionName=u.sectionName,r.selectedSectionId=u.sectionId}},[b("span",uQt,W(u.sectionName),1)],8,cQt))),128))])])]),r.canBeSavedAsGeneralComponent==="with_convert"?(E(),R("div",dQt,[b("div",hQt,[b("div",pQt,[b("i",null,[I(bXt)])]),c[4]||(c[4]=b("div",null,[b("div",{class:"bootstrap-styles mb-5"},[no(" У этого компонента выбран алгоритм "),b("strong",null,"«Сопутствущие товары к товарам»"),no(", поэтому он не будет доступен в некоторых сценариях. ")]),b("div",null,[no(" Чтобы сделать компонент универсальным, выберите алгоритм "),b("strong",null,"«Популярные товары»"),no(". ")])],-1))])])):oe("",!0)],2)]),"footer-actions":Bt(()=>[b("button",{class:G([{button__locked:!r.isLoaded},"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected"]),onClick:c[1]||(c[1]=Nt(u=>s(),["stop"]))},W(o.cancelButton),3),b("button",{class:"modal-footer__button bootstrap-styles position-relative d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white cursor-pointer bg-color-selected button__hover-blue-400",onClick:c[2]||(c[2]=Nt(u=>i(),["stop"]))},[b("span",{class:G({"bootstrap-styles invisible":!r.isLoaded})},W(o.applyButton),3),I(GC,{class:G(["bootstrap-styles position-absolute",{invisible:r.isLoaded}])},null,8,["class"])])]),_:1},8,["headerText"]))}}),fQt=ve(mQt,[["__scopeId","data-v-e8863458"]]),gQt={class:"row"},yQt={align:"center"},CQt={key:0,class:"preview-row"},bQt=re({__name:"EmailComponentWrapper",props:{deps:{},theme:{},emailComponent:{},isSelected:{type:Boolean},path:{},selectedElementPath:{},isDragging:{type:Boolean},isComponentLibraryEmpty:{type:Boolean}},emits:["click","onElementClicked","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onMoveUpComponentBtnClicked","onMoveDownComponentBtnClicked","onRemoveComponentBtnClicked","onDuplicateComponentBtnClicked","onDragPadControlMousedown","onColumnWidthAdjusted","onComponentAddedToLibrary","emailComponentUpdated","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){Cd(a=>({v7681adbc:i.value}));const n=t,o=Le({isSaveComponentWindowShown:!1,dataSourceModalIsShown:!1,mouseCoordinates:{x:0},rowHeight:0,rowLeft:0}),r=e,i=ne(()=>n.theme.BodyWidth+"px"),s=n.deps.emailComponentSettingsModifierPlugin;return(a,l)=>(E(),R("div",{onClick:l[15]||(l[15]=c=>r("click",c))},[b("div",gQt,[b("table",{class:G(["select-row",{selected:n.isSelected}]),style:{width:"100%","border-spacing":"0","border-collapse":"collapse"}},[b("tbody",null,[b("tr",null,[b("td",null,[b("table",{id:"emailComponentWrapper",class:G(["rrRow",{"dragging-row":n.isDragging}]),style:{"border-spacing":"0","border-collapse":"collapse",width:"100%",margin:"0 auto"}},[b("tbody",null,[b("tr",null,[b("td",yQt,[n.isSelected?(E(),Q(fXt,{key:0,deps:n.deps.movementMenuDeps,isComponentLibraryEmpty:n.isComponentLibraryEmpty,onShowSaveComponentModalWindowBtnClicked:l[0]||(l[0]=c=>{o.isSaveComponentWindowShown=!0}),onOnMoveUpComponentBtnClicked:l[1]||(l[1]=c=>r("onMoveUpComponentBtnClicked")),onOnMoveDownComponentBtnClicked:l[2]||(l[2]=c=>r("onMoveDownComponentBtnClicked")),onOnRemoveComponentBtnClicked:l[3]||(l[3]=c=>r("onRemoveComponentBtnClicked")),onOnDuplicateComponentBtnClicked:l[4]||(l[4]=c=>r("onDuplicateComponentBtnClicked")),onOnDragPadControlMousedown:l[5]||(l[5]=c=>{r("onDragPadControlMousedown"),o.mouseCoordinates.x=c.clientX,o.rowHeight=c.target.closest(".rrRow").clientHeight,o.rowLeft=c.target.closest(".row").getBoundingClientRect().left})},null,8,["deps","isComponentLibraryEmpty"])):oe("",!0),I(rI,{deps:n.deps.emailComponentDeps,emailComponent:n.emailComponent,path:n.path,selectedElementPath:n.selectedElementPath,theme:n.theme,onOnElementClicked:l[6]||(l[6]=c=>r("onElementClicked",c)),onOnImageOriginalSizeAdjusted:l[7]||(l[7]=c=>r("onImageOriginalSizeAdjusted",c)),onOnImageSizeAdjusted:l[8]||(l[8]=c=>r("onImageSizeAdjusted",c)),onOnColumnWidthAdjusted:l[9]||(l[9]=c=>r("onColumnWidthAdjusted",c)),onOnElementUpdatedEvent:l[10]||(l[10]=c=>r("onElementUpdatedEvent",c)),onOnElementRemoved:l[11]||(l[11]=c=>r("onElementRemoved",c))},null,8,["deps","emailComponent","path","selectedElementPath","theme"]),I(N(s),{modelValue:n.emailComponent,"onUpdate:modelValue":l[12]||(l[12]=c=>{r("emailComponentUpdated",{emailComponent:c})})},null,8,["modelValue"])])])])],2)])])])],2)]),n.isDragging?(E(),R("div",CQt,[I(IZt,{deps:n.deps.draggingMenuDeps,mouseCoordinates:o.mouseCoordinates,rowHeight:o.rowHeight,rowLeft:o.rowLeft},null,8,["deps","mouseCoordinates","rowHeight","rowLeft"])])):oe("",!0),(E(),Q(yo,{to:"body",defer:""},[o.isSaveComponentWindowShown?(E(),Q(fQt,{key:0,deps:n.deps.addComponentLibrarySectionItemModalWindowDeps,emailComponent:n.emailComponent,onCancel:l[13]||(l[13]=c=>o.isSaveComponentWindowShown=!1),onOnComponentAddedToLibrary:l[14]||(l[14]=c=>{o.isSaveComponentWindowShown=!1,r("onComponentAddedToLibrary")})},null,8,["deps","emailComponent"])):oe("",!0)]))]))}}),vQt=ve(bQt,[["__scopeId","data-v-e12b5f52"]]),wQt={dropHere:"Drop here"},SQt={dropHere:"Бросьте сюда"},xQt=ht({en:wQt,ru:SQt}),TQt={class:"email-template-table",width:"100%",cellpadding:"0",cellspacing:"0",style:{width:"100%","text-align":"center","border-spacing":"0","border-collapse":"collapse"}},kQt={valign:"top",align:"center",class:"table-wrapper",style:{padding:"0","line-height":"normal",width:"100%","table-layout":"fixed","-webkit-text-size-adjust":"100%","-ms-text-size-adjust":"100%"}},FQt={style:{"font-size":"0","line-height":"0",color:"var(--white)",height:"0","max-height":"0px","max-width":"0px",opacity:"0",overflow:"hidden"}},EQt={class:"emailTemplate-border-top"},LQt={class:"emailTemplate-border-bottom"},_Qt=re({__name:"EmailTemplate",props:{deps:{},theme:{},preheader:{},draggableEmailComponents:{},selectedComponentIndex:{},selectedElementPath:{},deviceMode:{},isComponentLibraryEmpty:{type:Boolean}},emits:["onElementClicked","onEmailComponentClicked","onRemoveComponentBtnClicked","onDuplicateComponentBtnClicked","onColumnWidthAdjusted","onImageOriginalSizeAdjusted","onImageSizeAdjusted","onComponentAddedToLibrary","emailComponentUpdated","onEmailComponentMoved","onElementUpdatedEvent","onElementRemoved"],setup(t,{emit:e}){const n=t,o={dropHere:xQt({localeKey:n.deps.localeKey}).dropHere},r=Le({dragging:!1}),i=ne(()=>({group:{name:"rowComponents"},animation:200,disabled:!1,ghostClass:"ghost",scrollSensitivity:200,handle:".drag-handle",forceFallback:!0})),s=(u,d)=>{const h=window.getSelection()?.toString().trim();if(h&&h.length>0){u.stopPropagation();return}c("onEmailComponentClicked",{index:d})},a=u=>{u>0&&c("onEmailComponentMoved",{newIndex:u-1,oldIndex:u})},l=u=>{u<n.draggableEmailComponents.length-1&&c("onEmailComponentMoved",{newIndex:u+1,oldIndex:u})},c=e;return(u,d)=>(E(),R("div",{style:Te([{"padding-left":"0px","padding-right":"0px"},{backgroundColor:n.theme.Colors.EmailBackgroundColor,fontFamily:n.theme.FontFamily}]),onMousedown:d[10]||(d[10]=Nt(()=>{},["stop"]))},[b("table",TQt,[b("tbody",null,[b("tr",null,[b("td",kQt,[b("div",{class:G(["webkit",{"dragged-transform":r.dragging,"emailTemplate--desktop":N($pe)(n.deviceMode),"emailTemplate--tablet":N(O9e)(n.deviceMode),"emailTemplate--mobile":N(P9e)(n.deviceMode)}]),style:{"min-width":"310px",margin:"0 auto"}},[b("div",FQt,[b("span",null,W(n.preheader),1)]),b("div",EQt,[b("table",{style:Te([[{maxWidth:n.theme.BodyWidth+"px",width:"100%",backgroundColor:n.theme.Colors.BodyColor,borderTopLeftRadius:n.theme.BorderRadius.TopLeft+"px",borderTopRightRadius:n.theme.BorderRadius.TopRight+"px"}],{"border-spacing":"0"}])},[b("tbody",null,[b("tr",null,[b("td",{style:Te([{paddingTop:n.theme.BodyPaddings.Top+"px"},{"font-size":"0","line-height":"0"}])}," ",4)])])],4)]),I(N(tI),go({class:"list-group emailTemplate _emailTemplateDropArea"},{...i.value},{onStart:d[8]||(d[8]=h=>r.dragging=!0),onEnd:d[9]||(d[9]=h=>{r.dragging=!1,c("onEmailComponentMoved",{newIndex:h.newIndex,oldIndex:h.oldIndex})})}),{default:Bt(()=>[(E(!0),R(Se,null,At(n.draggableEmailComponents.concat([]),(h,p)=>(E(),Q(vQt,go({key:h._id,ref_for:!0},{"data-drop-here-message":o.dropHere},{deps:n.deps.emailComponentWrapperDeps,theme:n.theme,emailComponent:h.Component,isSelected:t.selectedComponentIndex==p,isDragging:r.dragging,path:[p,"Component"],selectedElementPath:n.selectedElementPath,isComponentLibraryEmpty:n.isComponentLibraryEmpty,onClick:Nt(m=>s(m,p),["stop"]),onOnElementClicked:d[0]||(d[0]=m=>c("onElementClicked",m)),onOnComponentAddedToLibrary:d[1]||(d[1]=()=>c("onComponentAddedToLibrary")),onOnRemoveComponentBtnClicked:()=>c("onRemoveComponentBtnClicked",{componentIndex:p}),onOnDuplicateComponentBtnClicked:()=>c("onDuplicateComponentBtnClicked",{componentIndex:p}),onOnMoveUpComponentBtnClicked:()=>a(p),onOnMoveDownComponentBtnClicked:()=>l(p),onOnDragPadControlMousedown:d[2]||(d[2]=m=>r.dragging=!0),onOnImageOriginalSizeAdjusted:d[3]||(d[3]=m=>c("onImageOriginalSizeAdjusted",m)),onOnImageSizeAdjusted:d[4]||(d[4]=m=>c("onImageSizeAdjusted",m)),onOnColumnWidthAdjusted:d[5]||(d[5]=m=>c("onColumnWidthAdjusted",m)),onEmailComponentUpdated:m=>c("emailComponentUpdated",{index:p,emailComponent:m.emailComponent}),onOnElementUpdatedEvent:d[6]||(d[6]=m=>c("onElementUpdatedEvent",m)),onOnElementRemoved:d[7]||(d[7]=m=>c("onElementRemoved",m))}),null,16,["deps","theme","emailComponent","isSelected","isDragging","path","selectedElementPath","isComponentLibraryEmpty","onClick","onOnRemoveComponentBtnClicked","onOnDuplicateComponentBtnClicked","onOnMoveUpComponentBtnClicked","onOnMoveDownComponentBtnClicked","onEmailComponentUpdated"]))),128))]),_:1},16),b("div",LQt,[b("table",{style:Te([[{maxWidth:n.theme.BodyWidth+"px",width:"100%",backgroundColor:n.theme.Colors.BodyColor,borderBottomLeftRadius:n.theme.BorderRadius.BottomLeft+"px",borderBottomRightRadius:n.theme.BorderRadius.BottomRight+"px"}],{"border-spacing":"0"}])},[b("tbody",null,[b("tr",null,[b("td",{style:Te([{paddingBottom:n.theme.BodyPaddings.Bottom+"px"},{"font-size":"0","line-height":"0"}])}," ",4)])])],4)])],2)])])])])],36))}}),AQt=ve(_Qt,[["__scopeId","data-v-4fad58ec"]]),RQt=(t,e)=>{let n=t;return e.forEach(o=>{n=n[o]}),n},Jw=(t,e,n)=>{let o=t;e.forEach((r,i,s)=>{i===s.length-1&&(o[r]=n),o=o[r]})},Kke=(t,e)=>{let n=t;e.forEach((o,r,i)=>{if(r===i.length-1){if(Array.isArray(n)){n.splice(o,1);return}if(typeof n=="object"){delete n[o];return}}n=n[o]})},Yd=t=>!!t.ConstValueExpression,DQt={customColorLabel:"Other color",colorLabels:{none:"None",emailBackgroundColor:"Email background",bodyColor:"Email body",primaryColor:"Primary color",secondaryColor:"Secondary color",primaryTextColor:"Primary text",secondaryTextColor:"Secondary text",cardBackgroundColor:"Product card color",buttonTextColor:"Buttons",titleColor:"Title",headingColor:"Heading",subHeadingColor:"Subheading",largeTextColor:"Large text",normalTextColor:"Text",descriptionTextColor:"Description",linkColor:"Link",custom:"Custom"}},BQt={customColorLabel:"Другой цвет",colorLabels:{none:"Нет",emailBackgroundColor:"Фон письма",bodyColor:"Тело письма",primaryColor:"Основной цвет",secondaryColor:"Вторичный цвет",primaryTextColor:"Текст на основном цвете",secondaryTextColor:"Текст на вторичном цвете",cardBackgroundColor:"Цвет карточек товара",buttonTextColor:"Кнопки",titleColor:"Большой заголовок",headingColor:"Заголовок",subHeadingColor:"Подзаголовок",largeTextColor:"Большой текст",normalTextColor:"Текст",descriptionTextColor:"Описание",linkColor:"Ссылка",custom:"Пользовательский"}},si=ht({en:DQt,ru:BQt}),NQt={class:"bootstrap-styles row gx-2"},IQt={id:"dropdownMenuButtonColorList",class:"bootstrap-styles dropdown border rounded-2 bg-color-input","data-bs-toggle":"dropdown","aria-expanded":"false"},MQt={class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-14 px-14 pe-3 overflow-hidden",type:"button"},$Qt={class:"bootstrap-styles d-flex align-items-center justify-content-start position-relative"},OQt={class:"bootstrap-styles color-editor__text-eclipse overflow-hidden position-relative"},PQt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},VQt={class:"bootstrap-styles dropdown-menu rounded-2","aria-labelledby":"dropdownMenuButtonColorList"},WQt={key:0,class:"bootstrap-styles col-6"},Ope=re({__name:"ColorEditor",props:{deps:{},color:{},themeColors:{}},emits:["update:changeColor"],setup(t,{emit:e}){const n=t,o=e,r=l=>{o("update:changeColor",l)},i={customColorLabel:si({localeKey:n.deps.localeKey}).customColorLabel,colorLabels:{none:si({localeKey:n.deps.localeKey}).colorLabels.none,emailBackgroundColor:si({localeKey:n.deps.localeKey}).colorLabels.emailBackgroundColor,bodyColor:si({localeKey:n.deps.localeKey}).colorLabels.bodyColor,primaryColor:si({localeKey:n.deps.localeKey}).colorLabels.primaryColor,secondaryColor:si({localeKey:n.deps.localeKey}).colorLabels.secondaryColor,primaryTextColor:si({localeKey:n.deps.localeKey}).colorLabels.primaryTextColor,secondaryTextColor:si({localeKey:n.deps.localeKey}).colorLabels.secondaryTextColor,cardBackgroundColor:si({localeKey:n.deps.localeKey}).colorLabels.cardBackgroundColor,buttonTextColor:si({localeKey:n.deps.localeKey}).colorLabels.buttonTextColor,titleColor:si({localeKey:n.deps.localeKey}).colorLabels.titleColor,headingColor:si({localeKey:n.deps.localeKey}).colorLabels.headingColor,subHeadingColor:si({localeKey:n.deps.localeKey}).colorLabels.subHeadingColor,largeTextColor:si({localeKey:n.deps.localeKey}).colorLabels.largeTextColor,normalTextColor:si({localeKey:n.deps.localeKey}).colorLabels.normalTextColor,descriptionTextColor:si({localeKey:n.deps.localeKey}).colorLabels.descriptionTextColor,linkColor:si({localeKey:n.deps.localeKey}).colorLabels.linkColor,custom:si({localeKey:n.deps.localeKey}).colorLabels.custom}},s={None:i.colorLabels.none,EmailBackgroundColor:i.colorLabels.emailBackgroundColor,BodyColor:i.colorLabels.bodyColor,PrimaryColor:i.colorLabels.primaryColor,SecondaryColor:i.colorLabels.secondaryColor,PrimaryTextColor:i.colorLabels.primaryTextColor,SecondaryTextColor:i.colorLabels.secondaryTextColor,CardBackgroundColor:i.colorLabels.cardBackgroundColor,ButtonTextColor:i.colorLabels.buttonTextColor,TitleColor:i.colorLabels.titleColor,HeadingColor:i.colorLabels.headingColor,SubHeadingColor:i.colorLabels.subHeadingColor,LargeTextColor:i.colorLabels.largeTextColor,NormalTextColor:i.colorLabels.normalTextColor,DescriptionTextColor:i.colorLabels.descriptionTextColor,LinkColor:i.colorLabels.linkColor,Custom:i.colorLabels.custom},a=["EmailBackgroundColor","BodyColor","PrimaryColor","SecondaryColor","PrimaryTextColor","SecondaryTextColor","CardBackgroundColor","ButtonTextColor","TitleColor","HeadingColor","SubHeadingColor","LargeTextColor","NormalTextColor","DescriptionTextColor","LinkColor"];return(l,c)=>(E(),R("div",NQt,[b("div",{class:G([n.color.Discriminator=="Custom"?"bootstrap-styles col-6 font-style-color-editor-custom":"bootstrap-styles col-12 font-style-color-editor-theme"])},[b("div",IQt,[b("button",MQt,[b("span",$Qt,[b("i",{class:"bootstrap-styles input__color_selection d-block overflow-hidden me-1",style:Te([{border:"1px solid rgba(0, 0, 0, 0.10)"},{background:N(lc)({color:n.color,themeColors:n.themeColors})??"url(https://gallery.retailrocket.net/5df72bdc97a52507605e4cc1/transparentColor.png) no-repeat 50% 50%"}])},null,4),b("span",OQt,W(s[n.color.Discriminator]),1)]),b("i",PQt,[I(Si)])]),b("ul",VQt,[(E(),R(Se,null,At(a,u=>I(ug,{key:u,isActive:n.color.Discriminator===u,color:n.themeColors[u],label:s[u],onClick:d=>r({Discriminator:u,CustomValue:n.color.CustomValue})},null,8,["isActive","color","label","onClick"])),64)),I(ug,{isActive:n.color.Discriminator==="Custom",color:"linear-gradient(135deg, #3384FF 0%, #CA65FA 34.37%, #FA6565 61.98%, #FAEB65 100%)",label:i.customColorLabel,onClick:c[0]||(c[0]=u=>r({Discriminator:"Custom",CustomValue:n.color.CustomValue}))},null,8,["isActive","label"])])])],2),n.color.Discriminator==="Custom"?(E(),R("div",WQt,[I(Du,{color:n.color.CustomValue,"onUpdate:changeColor":c[1]||(c[1]=u=>r({Discriminator:"Custom",CustomValue:u}))},null,8,["color"])])):oe("",!0)]))}}),HQt={customColorLabel:"Other color",colorLabels:{emailBackgroundColor:"Email background",bodyColor:"Email body",primaryColor:"Primary color",secondaryColor:"Secondary color",primaryTextColor:"Primary text",secondaryTextColor:"Secondary text",cardBackgroundColor:"Product card color",buttonTextColor:"Buttons",titleColor:"Title",headingColor:"Heading",subHeadingColor:"Subheading",largeTextColor:"Large text",normalTextColor:"Text",descriptionTextColor:"Description",linkColor:"Link",custom:"Custom"}},zQt={customColorLabel:"Другой цвет",colorLabels:{emailBackgroundColor:"Фон письма",bodyColor:"Тело письма",primaryColor:"Основной цвет",secondaryColor:"Вторичный цвет",primaryTextColor:"Текст на основном цвете",secondaryTextColor:"Текст на вторичном цвете",cardBackgroundColor:"Цвет карточек товара",buttonTextColor:"Кнопки",titleColor:"Большой заголовок",headingColor:"Заголовок",subHeadingColor:"Подзаголовок",largeTextColor:"Большой текст",normalTextColor:"Текст",descriptionTextColor:"Описание",linkColor:"Ссылка",custom:"Пользовательский"}},Wi=ht({en:HQt,ru:zQt}),jQt={class:"bootstrap-styles col-12 font-style-color-editor-theme"},KQt={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},UQt={id:"dropdownMenuButtonColorList",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-14 px-14 pe-3 overflow-hidden",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},qQt={class:"bootstrap-styles d-flex align-items-center justify-content-start position-relative"},JQt={class:"bootstrap-styles color-editor__text-eclipse overflow-hidden position-relative"},GQt={class:"bootstrap-styles d-flex justify-content-center align-items-center"},YQt={class:"bootstrap-styles dropdown-menu rounded-2","aria-labelledby":"dropdownMenuButtonColorList"},ZQt={key:0,class:"bootstrap-styles col-12 mt-2"},XQt=re({__name:"FontColorEditor",props:{deps:{},color:{},themeColors:{}},emits:["update:changeFontColor"],setup(t,{emit:e}){const n=t,o=e,r=l=>{o("update:changeFontColor",l)},i={customColorLabel:Wi({localeKey:n.deps.localeKey}).customColorLabel,colorLabels:{emailBackgroundColor:Wi({localeKey:n.deps.localeKey}).colorLabels.emailBackgroundColor,bodyColor:Wi({localeKey:n.deps.localeKey}).colorLabels.bodyColor,primaryColor:Wi({localeKey:n.deps.localeKey}).colorLabels.primaryColor,secondaryColor:Wi({localeKey:n.deps.localeKey}).colorLabels.secondaryColor,primaryTextColor:Wi({localeKey:n.deps.localeKey}).colorLabels.primaryTextColor,secondaryTextColor:Wi({localeKey:n.deps.localeKey}).colorLabels.secondaryTextColor,cardBackgroundColor:Wi({localeKey:n.deps.localeKey}).colorLabels.cardBackgroundColor,buttonTextColor:Wi({localeKey:n.deps.localeKey}).colorLabels.buttonTextColor,titleColor:Wi({localeKey:n.deps.localeKey}).colorLabels.titleColor,headingColor:Wi({localeKey:n.deps.localeKey}).colorLabels.headingColor,subHeadingColor:Wi({localeKey:n.deps.localeKey}).colorLabels.subHeadingColor,largeTextColor:Wi({localeKey:n.deps.localeKey}).colorLabels.largeTextColor,normalTextColor:Wi({localeKey:n.deps.localeKey}).colorLabels.normalTextColor,descriptionTextColor:Wi({localeKey:n.deps.localeKey}).colorLabels.descriptionTextColor,linkColor:Wi({localeKey:n.deps.localeKey}).colorLabels.linkColor,custom:Wi({localeKey:n.deps.localeKey}).colorLabels.custom}},s={EmailBackgroundColor:i.colorLabels.emailBackgroundColor,BodyColor:i.colorLabels.bodyColor,PrimaryColor:i.colorLabels.primaryColor,SecondaryColor:i.colorLabels.secondaryColor,PrimaryTextColor:i.colorLabels.primaryTextColor,SecondaryTextColor:i.colorLabels.secondaryTextColor,CardBackgroundColor:i.colorLabels.cardBackgroundColor,ButtonTextColor:i.colorLabels.buttonTextColor,TitleColor:i.colorLabels.titleColor,HeadingColor:i.colorLabels.headingColor,SubHeadingColor:i.colorLabels.subHeadingColor,LargeTextColor:i.colorLabels.largeTextColor,NormalTextColor:i.colorLabels.normalTextColor,DescriptionTextColor:i.colorLabels.descriptionTextColor,LinkColor:i.colorLabels.linkColor,Custom:i.colorLabels.custom},a=["EmailBackgroundColor","BodyColor","PrimaryColor","SecondaryColor","PrimaryTextColor","SecondaryTextColor","ButtonTextColor","TitleColor","HeadingColor","SubHeadingColor","LargeTextColor","NormalTextColor","DescriptionTextColor","LinkColor"];return(l,c)=>(E(),R(Se,null,[b("div",jQt,[b("div",KQt,[Ke((E(),R("button",UQt,[b("span",qQt,[b("i",{class:"bootstrap-styles input__color_selection d-block overflow-hidden me-1",style:Te([{border:"1px solid rgba(0, 0, 0, 0.10)"},{background:N(a$)({fontColor:n.color,themeColors:n.themeColors})}])},null,4),b("span",JQt,W(s[n.color.Discriminator]),1)]),b("i",GQt,[I(Si)])])),[[N(ah)]]),b("ul",YQt,[(E(),R(Se,null,At(a,u=>I(ug,{key:u,isActive:n.color.Discriminator===u,color:n.themeColors[u],label:s[u],onClick:d=>r({Discriminator:u,CustomValue:n.color.CustomValue})},null,8,["isActive","color","label","onClick"])),64)),I(ug,{isActive:n.color.Discriminator==="Custom",color:"linear-gradient(135deg, #3384FF 0%, #CA65FA 34.37%, #FA6565 61.98%, #FAEB65 100%)",label:i.customColorLabel,onClick:c[0]||(c[0]=u=>r({Discriminator:"Custom",CustomValue:n.color.CustomValue}))},null,8,["isActive","label"])])])]),n.color.Discriminator==="Custom"?(E(),R("div",ZQt,[I(Du,{color:n.color.CustomValue,"onUpdate:changeColor":c[1]||(c[1]=u=>r({Discriminator:"Custom",CustomValue:u}))},null,8,["color"])])):oe("",!0)],64))}}),QQt={textColorLabel:"Text color"},een={textColorLabel:"Цвет текста"},ten=ht({en:QQt,ru:een}),nen={class:"bootstrap-styles container-fluid mb-13"},oen={class:"bootstrap-styles row gx-2 mb-2"},ren={class:"bootstrap-styles col-12"},ien={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},sen={id:"dropdownMenuButtonFontFamily",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},aen={class:"bootstrap-styles d-flex justify-content-center align-items-center"},len={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuButtonFontFamily"},cen=["onClick"],uen={class:"bootstrap-styles row gx-2 mb-2"},den={class:"bootstrap-styles col-6"},hen={class:"bootstrap-styles col-6"},pen={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},men={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},fen={class:"bootstrap-styles row gx-2 mb-13"},gen={class:"bootstrap-styles col-3"},yen={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Cen={class:"bootstrap-styles col-3"},ben={class:"bootstrap-styles d-flex justify-content-center align-items-center"},ven={class:"bootstrap-styles col-3"},wen={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Sen={class:"bootstrap-styles col-3"},xen={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Ten={class:"bootstrap-styles fw-bold mb-5"},ken={class:"bootstrap-styles row gx-2"},Fen=re({__name:"CustomFontSettings",props:{deps:{},modelValue:{},themeFontFamily:{},themeColors:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o={textColorLabel:ten({localeKey:n.deps.localeKey}).textColorLabel},r=d=>{u("update:modelValue",{...n.modelValue,FontFamily:d})},i=d=>{u("update:modelValue",{...n.modelValue,FontSize:d})},s=d=>{u("update:modelValue",{...n.modelValue,LineHeight:d})},a=d=>{u("update:modelValue",{...n.modelValue,Decoration:d})},l=d=>{u("update:modelValue",{...n.modelValue,IsItalic:d})},c=d=>{u("update:modelValue",{...n.modelValue,IsBold:d})},u=e;return(d,h)=>(E(),R("div",nen,[b("div",oen,[b("div",ren,[b("div",ien,[b("button",sen,[b("span",null,W(n.modelValue.FontFamily?N(Sp)[n.modelValue.FontFamily]:N(Sp)[n.themeFontFamily]),1),b("i",aen,[I(Si)])]),b("ul",len,[(E(!0),R(Se,null,At(N(DU),p=>(E(),R("li",{key:p,class:G(["bootstrap-styles dropdown-item p-0",{active:n.modelValue.FontFamily===p}])},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",style:Te({fontFamily:N(Sp)[p]}),onClick:m=>r(p)},W(N(Sp)[p]),13,cen)],2))),128))])])])]),b("div",uen,[b("div",den,[I(M9e,{fontSize:n.modelValue.FontSize,"onUpdate:fontSizeChanged":i},null,8,["fontSize"])]),b("div",hen,[b("div",pen,[b("i",men,[I(Dpe)]),I(fr,{modelValue:n.modelValue.LineHeight,"onUpdate:modelValue":h[0]||(h[0]=p=>s(p))},null,8,["modelValue"])])])]),b("div",fen,[b("div",gen,[b("button",{class:G(["bootstrap-styles text-decoration__btn fw-bold border bg-color-input rounded-2 py-1 px-3 w-100",{active:n.modelValue.IsBold}]),onClick:h[1]||(h[1]=p=>c(!n.modelValue.IsBold))},[b("i",yen,[I(Bpe)])],2)]),b("div",Cen,[b("button",{class:G(["bootstrap-styles text-decoration__btn fw-bold border bg-color-input rounded-2 py-1 px-3 w-100",{active:n.modelValue.IsItalic}]),onClick:h[2]||(h[2]=p=>l(!n.modelValue.IsItalic))},[b("i",ben,[I(Mpe)])],2)]),b("div",ven,[b("button",{class:G(["bootstrap-styles text-decoration__btn fw-bold border bg-color-input rounded-2 py-1 px-3 w-100",{active:n.modelValue.Decoration==="LineThrough"}]),onClick:h[3]||(h[3]=p=>a(n.modelValue.Decoration==="LineThrough"?"None":"LineThrough"))},[b("i",wen,[I(Npe)])],2)]),b("div",Sen,[b("button",{class:G(["bootstrap-styles text-decoration__btn fw-bold border bg-color-input rounded-2 py-1 px-3 w-100",{active:n.modelValue.Decoration==="Underline"}]),onClick:h[4]||(h[4]=p=>a(n.modelValue.Decoration==="Underline"?"None":"Underline"))},[b("i",xen,[I(Ipe)])],2)])]),b("label",Ten,W(o.textColorLabel),1),b("div",ken,[I(XQt,{deps:n.deps.fontColorEditorDeps,color:n.modelValue.FontColor,themeColors:n.themeColors,"onUpdate:changeFontColor":h[5]||(h[5]=p=>u("update:modelValue",{...n.modelValue,FontColor:p}))},null,8,["deps","color","themeColors"])])]))}}),Een={},Len={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function _en(t,e){return E(),R("svg",Len,[...e[0]||(e[0]=[b("path",{d:"M12.2432 10.357L11.3003 9.41423L12.2432 8.47143C13.5449 7.1697 13.5449 5.05914 12.2432 3.7574C10.9414 2.45565 8.83086 2.45565 7.52912 3.7574L6.58631 4.70021L5.6435 3.7574L6.58631 2.81459C8.40879 0.992142 11.3635 0.992142 13.186 2.81459C15.0084 4.63704 15.0084 7.59183 13.186 9.41423L12.2432 10.357ZM10.3575 12.2427L9.41472 13.1855C7.59232 15.008 4.63752 15.008 2.81508 13.1855C0.99263 11.363 0.99263 8.4083 2.81508 6.58582L3.75788 5.64302L4.70069 6.58582L3.75788 7.52863C2.45614 8.83036 2.45614 10.941 3.75788 12.2427C5.05963 13.5444 7.17019 13.5444 8.47192 12.2427L9.41472 11.2999L10.3575 12.2427ZM9.88612 5.17161L10.8289 6.11442L6.1149 10.8285L5.1721 9.88563L9.88612 5.17161Z",fill:"var(--blue-400)"},null,-1)])])}const Aen=ve(Een,[["render",_en]]),Ren={},Den={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function Ben(t,e){return E(),R("svg",Den,[...e[0]||(e[0]=[b("path",{d:"M12.2432 10.357L11.3003 9.41423L12.2432 8.47143C13.5449 7.1697 13.5449 5.05914 12.2432 3.7574C10.9414 2.45565 8.83086 2.45565 7.52912 3.7574L6.58631 4.70021L5.6435 3.7574L6.58631 2.81459C8.40879 0.992142 11.3635 0.992142 13.186 2.81459C15.0084 4.63704 15.0084 7.59183 13.186 9.41423L12.2432 10.357ZM10.3575 12.2427L9.41472 13.1855C7.59232 15.008 4.63752 15.008 2.81508 13.1855C0.99263 11.363 0.99263 8.4083 2.81508 6.58582L3.75788 5.64302L4.70069 6.58582L3.75788 7.52863C2.45614 8.83036 2.45614 10.941 3.75788 12.2427C5.05963 13.5444 7.17019 13.5444 8.47192 12.2427L9.41472 11.2999L10.3575 12.2427ZM9.88612 5.17161L10.8289 6.11442L6.1149 10.8285L5.1721 9.88563L9.88612 5.17161Z",fill:"var(--blue-400)"},null,-1)])])}const Nen=ve(Ren,[["render",Ben]]),Ien={class:"bootstrap-styles input__color_selection d-flex align-items-center justify-content-center overflow-hidden me-2",style:{"background-color":"var(--blue-100)"}},Men=re({__name:"LinkedToStyleSelectItemColor",props:{isActive:{type:Boolean},label:{}},emits:["click"],setup(t,{emit:e}){const n=t,o=e;return(r,i)=>(E(),R("li",{class:G(["bootstrap-styles dropdown-item p-0 user-select-none",{active:n.isActive}])},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer d-flex align-items-center justify-content-start",onClick:i[0]||(i[0]=s=>o("click"))},[b("i",Ien,[I(Nen)]),no(" "+W(n.label),1)])],2))}}),$en={customColorLabel:"Other color",colorLabels:{styleLinkedColor:"Link to style",none:"None",emailBackgroundColor:"Email background",bodyColor:"Email body",primaryColor:"Primary color",secondaryColor:"Secondary color",primaryTextColor:"Primary text",secondaryTextColor:"Secondary text",cardBackgroundColor:"Product card color",buttonTextColor:"Buttons",titleColor:"Title",headingColor:"Heading",subHeadingColor:"Subheading",largeTextColor:"Large text",normalTextColor:"Text",descriptionTextColor:"Description",linkColor:"Link",custom:"Custom"}},Oen={customColorLabel:"Другой цвет",colorLabels:{styleLinkedColor:"Связать со стилем",none:"Нет",emailBackgroundColor:"Фон письма",bodyColor:"Тело письма",primaryColor:"Основной цвет",secondaryColor:"Вторичный цвет",primaryTextColor:"Текст на основном цвете",secondaryTextColor:"Текст на вторичном цвете",cardBackgroundColor:"Цвет карточек товара",buttonTextColor:"Кнопки",titleColor:"Большой заголовок",headingColor:"Заголовок",subHeadingColor:"Подзаголовок",largeTextColor:"Большой текст",normalTextColor:"Текст",descriptionTextColor:"Описание",linkColor:"Ссылка",custom:"Пользовательский"}},ai=ht({en:$en,ru:Oen}),Pen={class:"bootstrap-styles col-12 font-style-color-editor-theme"},Ven={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},Wen={id:"dropdownMenuButtonColorList",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-14 px-14 pe-3 overflow-hidden",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},Hen={class:"bootstrap-styles d-flex align-items-center justify-content-start position-relative"},zen={key:1,class:"bootstrap-styles input__color_selection d-flex align-items-center justify-content-center overflow-hidden me-1",style:{"background-color":"var(--blue-100)"}},jen={class:"bootstrap-styles color-editor__text-eclipse overflow-hidden position-relative"},Ken={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Uen={class:"bootstrap-styles dropdown-menu rounded-2","aria-labelledby":"dropdownMenuButtonColorList"},qen={key:0,class:"bootstrap-styles col-12 mt-2"},Jen=re({__name:"FontStyleColorEditor",props:{deps:{},color:{},fontStyle:{},themeColors:{}},emits:["update:changeFontColor"],setup(t,{emit:e}){const n=t,o=e,r=l=>{o("update:changeFontColor",l)},i={customColorLabel:ai({localeKey:n.deps.localeKey}).customColorLabel,colorLabels:{styleLinkedColor:ai({localeKey:n.deps.localeKey}).colorLabels.styleLinkedColor,emailBackgroundColor:ai({localeKey:n.deps.localeKey}).colorLabels.emailBackgroundColor,bodyColor:ai({localeKey:n.deps.localeKey}).colorLabels.bodyColor,primaryColor:ai({localeKey:n.deps.localeKey}).colorLabels.primaryColor,secondaryColor:ai({localeKey:n.deps.localeKey}).colorLabels.secondaryColor,primaryTextColor:ai({localeKey:n.deps.localeKey}).colorLabels.primaryTextColor,secondaryTextColor:ai({localeKey:n.deps.localeKey}).colorLabels.secondaryTextColor,cardBackgroundColor:ai({localeKey:n.deps.localeKey}).colorLabels.cardBackgroundColor,buttonTextColor:ai({localeKey:n.deps.localeKey}).colorLabels.buttonTextColor,titleColor:ai({localeKey:n.deps.localeKey}).colorLabels.titleColor,headingColor:ai({localeKey:n.deps.localeKey}).colorLabels.headingColor,subHeadingColor:ai({localeKey:n.deps.localeKey}).colorLabels.subHeadingColor,largeTextColor:ai({localeKey:n.deps.localeKey}).colorLabels.largeTextColor,normalTextColor:ai({localeKey:n.deps.localeKey}).colorLabels.normalTextColor,descriptionTextColor:ai({localeKey:n.deps.localeKey}).colorLabels.descriptionTextColor,linkColor:ai({localeKey:n.deps.localeKey}).colorLabels.linkColor,custom:ai({localeKey:n.deps.localeKey}).colorLabels.custom}},s={StyleLinkedColor:i.colorLabels.styleLinkedColor,EmailBackgroundColor:i.colorLabels.emailBackgroundColor,BodyColor:i.colorLabels.bodyColor,PrimaryColor:i.colorLabels.primaryColor,SecondaryColor:i.colorLabels.secondaryColor,PrimaryTextColor:i.colorLabels.primaryTextColor,SecondaryTextColor:i.colorLabels.secondaryTextColor,CardBackgroundColor:i.colorLabels.cardBackgroundColor,ButtonTextColor:i.colorLabels.buttonTextColor,TitleColor:i.colorLabels.titleColor,HeadingColor:i.colorLabels.headingColor,SubHeadingColor:i.colorLabels.subHeadingColor,LargeTextColor:i.colorLabels.largeTextColor,NormalTextColor:i.colorLabels.normalTextColor,DescriptionTextColor:i.colorLabels.descriptionTextColor,LinkColor:i.colorLabels.linkColor,Custom:i.colorLabels.custom},a=["EmailBackgroundColor","BodyColor","PrimaryColor","SecondaryColor","PrimaryTextColor","SecondaryTextColor","ButtonTextColor","TitleColor","HeadingColor","SubHeadingColor","LargeTextColor","NormalTextColor","DescriptionTextColor","LinkColor"];return(l,c)=>(E(),R(Se,null,[b("div",Pen,[b("div",Ven,[Ke((E(),R("button",Wen,[b("span",Hen,[n.color.Discriminator!=="StyleLinkedColor"?(E(),R("i",{key:0,class:"bootstrap-styles input__color_selection d-block overflow-hidden me-1",style:Te([{border:"1px solid rgba(0, 0, 0, 0.10)"},{background:N(d9e)({fontStyleColor:n.color,themeColors:n.themeColors,fontStyle:n.fontStyle})}])},null,4)):(E(),R("i",zen,[I(Aen)])),b("span",jen,W(s[n.color.Discriminator]),1)]),b("i",Ken,[I(Si)])])),[[N(ah)]]),b("ul",Uen,[I(Men,{isActive:n.color.Discriminator==="StyleLinkedColor",label:i.colorLabels.styleLinkedColor,onClick:c[0]||(c[0]=u=>r({Discriminator:"StyleLinkedColor",CustomValue:n.color.CustomValue}))},null,8,["isActive","label"]),(E(),R(Se,null,At(a,u=>I(ug,{key:u,isActive:n.color.Discriminator===u,color:n.themeColors[u],label:s[u],onClick:d=>r({Discriminator:u,CustomValue:n.color.CustomValue})},null,8,["isActive","color","label","onClick"])),64)),I(ug,{isActive:n.color.Discriminator==="Custom",color:"linear-gradient(135deg, #3384FF 0%, #CA65FA 34.37%, #FA6565 61.98%, #FAEB65 100%)",label:i.customColorLabel,onClick:c[1]||(c[1]=u=>r({Discriminator:"Custom",CustomValue:n.color.CustomValue}))},null,8,["isActive","label"])])])]),n.color.Discriminator==="Custom"?(E(),R("div",qen,[I(Du,{color:n.color.CustomValue,"onUpdate:changeColor":c[2]||(c[2]=u=>r({Discriminator:"Custom",CustomValue:u}))},null,8,["color"])])):oe("",!0)],64))}}),Gen=t=>t.FontColor??Tpe(t).Match({Heading:()=>({Discriminator:"HeadingColor",CustomValue:"#000000"}),Title:()=>({Discriminator:"TitleColor",CustomValue:"#000000"}),SubHeading:()=>({Discriminator:"SubHeadingColor",CustomValue:"#000000"}),LargeText:()=>({Discriminator:"LargeTextColor",CustomValue:"#000000"}),NormalText:()=>({Discriminator:"NormalTextColor",CustomValue:"#000000"}),DescriptionText:()=>({Discriminator:"DescriptionTextColor",CustomValue:"#000000"}),Button:()=>({Discriminator:"ButtonTextColor",CustomValue:"#000000"}),Link:()=>({Discriminator:"LinkColor",CustomValue:"#000000"}),Custom:()=>({Discriminator:"Custom",CustomValue:"#000000"})}),Yen={colorLabel:"Text color",settingLabels:{title:"Title",heading:"Heading",subHeading:"Subheading",largeText:"Large text",normalText:"Text",descriptionText:"Description",link:"Link",button:"Button",custom:"Custom"}},Zen={colorLabel:"Цвет текста",settingLabels:{title:"Большой заголовок",heading:"Заголовок",subHeading:"Подзаголовок",largeText:"Большой текст",normalText:"Текст",descriptionText:"Описание",link:"Ссылка",button:"Кнопка",custom:"Пользовательский"}},Vh=ht({en:Yen,ru:Zen}),Xen={class:"bootstrap-styles row"},Qen={class:"bootstrap-styles col-12 font-style-color-editor-theme"},etn={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},ttn={id:"dropdownMenuButtonFontStyleList",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},ntn={class:"bootstrap-styles d-flex justify-content-center align-items-center"},otn={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuButtonFontStyleList"},rtn={key:0,class:"bootstrap-styles row mb-2"},itn={class:"bootstrap-styles fw-bold mb-5 mt-13"},Ppe=re({__name:"FontStyleEditor",props:{deps:{},fontStyle:{},themeFontSettings:{},themeColors:{},themeFontFamily:{}},emits:["update:changeTextStyles"],setup(t,{emit:e}){const n=t,o={colorLabel:Vh({localeKey:n.deps.localeKey}).colorLabel,settingLabels:{title:Vh({localeKey:n.deps.localeKey}).settingLabels.title,heading:Vh({localeKey:n.deps.localeKey}).settingLabels.heading,subHeading:Vh({localeKey:n.deps.localeKey}).settingLabels.subHeading,largeText:Vh({localeKey:n.deps.localeKey}).settingLabels.largeText,normalText:Vh({localeKey:n.deps.localeKey}).settingLabels.normalText,descriptionText:Vh({localeKey:n.deps.localeKey}).settingLabels.descriptionText,link:Vh({localeKey:n.deps.localeKey}).settingLabels.link,button:Vh({localeKey:n.deps.localeKey}).settingLabels.button,custom:Vh({localeKey:n.deps.localeKey}).settingLabels.custom}},r={Title:o.settingLabels.title,Heading:o.settingLabels.heading,SubHeading:o.settingLabels.subHeading,LargeText:o.settingLabels.largeText,NormalText:o.settingLabels.normalText,DescriptionText:o.settingLabels.descriptionText,Link:o.settingLabels.link,Button:o.settingLabels.button,Custom:o.settingLabels.custom},i=["Title","Heading","SubHeading","LargeText","NormalText","DescriptionText","Link","Button"],s={Title:"TitleColor",Heading:"HeadingColor",SubHeading:"SubHeadingColor",LargeText:"LargeTextColor",NormalText:"NormalTextColor",DescriptionText:"DescriptionTextColor",Link:"LinkColor",Button:"ButtonTextColor"},a=e;return(l,c)=>(E(),R(Se,null,[b("div",{class:G(["bootstrap-styles container-fluid",{"mb-13":n.fontStyle.Discriminator!=="Custom"}])},[b("div",Xen,[b("div",Qen,[b("div",etn,[Ke((E(),R("button",ttn,[b("span",null,W(r[n.fontStyle.Discriminator]),1),b("i",ntn,[I(Si)])])),[[N(ah)]]),b("ul",otn,[(E(),R(Se,null,At(i,u=>I(Qre,{key:u,isActive:n.fontStyle.Discriminator===u,label:r[u],themeFontStyle:n.themeFontSettings[u],themeFontColor:n.themeColors[s[u]],onClick:d=>a("update:changeTextStyles",{...n.fontStyle,Discriminator:u})},null,8,["isActive","label","themeFontStyle","themeFontColor","onClick"])),64)),I(Qre,{isActive:n.fontStyle.Discriminator==="Custom",label:r.Custom,onClick:c[0]||(c[0]=u=>a("update:changeTextStyles",{...n.fontStyle,Discriminator:"Custom",CustomFontSettings:n.fontStyle.CustomFontSettings,FontColor:n.fontStyle.FontColor??{Discriminator:"Custom",CustomValue:"#000000"}}))},null,8,["isActive","label"])])])])]),n.fontStyle.Discriminator!=="Custom"?(E(),R("div",rtn,[b("label",itn,W(o.colorLabel),1),I(Jen,{deps:n.deps.fontStyleColorEditorDeps,color:N(Gen)(n.fontStyle),fontStyle:n.fontStyle,themeColors:n.themeColors,"onUpdate:changeFontColor":c[1]||(c[1]=u=>a("update:changeTextStyles",{...n.fontStyle,FontColor:u}))},null,8,["deps","color","fontStyle","themeColors"])])):oe("",!0)],2),n.fontStyle.Discriminator==="Custom"?(E(),Q(Fen,{key:0,class:"bootstrap-styles mt-2",deps:n.deps.customFontSettingsDeps,modelValue:n.fontStyle.CustomFontSettings,themeColors:n.themeColors,themeFontFamily:n.themeFontFamily,"onUpdate:modelValue":c[2]||(c[2]=u=>a("update:changeTextStyles",{...n.fontStyle,Discriminator:"Custom",CustomFontSettings:u}))},null,8,["deps","modelValue","themeColors","themeFontFamily"])):oe("",!0)],64))}}),stn={},atn={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function ltn(t,e){return E(),R("svg",atn,[...e[0]||(e[0]=[b("path",{d:"M3.66641 2H2.33301V14H3.66641V2Z",fill:"var(--gray-500)"},null,-1),b("path",{d:"M13.6668 8.66699H5.6668C5.3002 8.66699 5 8.96699 5 9.33339V12.0002C5 12.3666 5.3002 12.667 5.6668 12.667H13.6668C14.0332 12.667 14.3334 12.3666 14.3334 12.0002V9.33339C14.3334 8.96699 14.0332 8.66699 13.6668 8.66699ZM13 11.3334H6.3334V10.0002H13V11.3334Z",fill:"var(--gray-500)"},null,-1),b("path",{d:"M11.6668 6.6667C11.6668 7.0333 11.3666 7.3333 11 7.3333H5.6668C5.3002 7.3333 5 7.0333 5 6.6667V4.0001C5 3.6335 5.3002 3.3335 5.6668 3.3335H11C11.3666 3.3335 11.6668 3.6337 11.6668 4.0001V6.6667Z",fill:"var(--gray-500)"},null,-1)])])}const j9e=ve(stn,[["render",ltn]]),ctn={},utn={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function dtn(t,e){return E(),R("svg",utn,[...e[0]||(e[0]=[b("path",{d:"M11.9995 8.66675H8.66616V7.33336H10.6661C11.0327 7.33336 11.3329 7.03336 11.3329 6.66676V3.99998C11.3329 3.63339 11.0327 3.33339 10.6661 3.33339H8.66616V2H7.33298V3.33339H5.33299C4.96639 3.33339 4.6662 3.63359 4.6662 3.99998V6.66656C4.6662 7.03316 4.96639 7.33316 5.33299 7.33316H7.33298V8.66655H3.9996C3.63301 8.66655 3.33301 8.96654 3.33301 9.33294V11.9999C3.33301 12.3663 3.63301 12.6667 3.9996 12.6667H7.33298V13.9999H8.66616V12.6667H11.9995C12.3661 12.6667 12.6661 12.3663 12.6661 11.9999V9.33314C12.6661 8.96674 12.3661 8.66675 11.9995 8.66675ZM11.3329 11.3331H4.6662V9.99994H11.3329V11.3331Z",fill:"var(--gray-500)"},null,-1)])])}const K9e=ve(ctn,[["render",dtn]]),htn={},ptn={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"};function mtn(t,e){return E(),R("svg",ptn,[...e[0]||(e[0]=[b("path",{d:"M14.6664 2H13.333V14H14.6664V2Z",fill:"var(--gray-500)"},null,-1),b("path",{d:"M11.3326 8.66699H3.33262C2.96622 8.66699 2.66602 8.96699 2.66602 9.33339V12.0002C2.66602 12.3668 2.96622 12.6668 3.33262 12.6668H11.3326C11.6992 12.6668 11.9994 12.3668 11.9994 12.0002V9.33339C11.9994 8.96699 11.6992 8.66699 11.3326 8.66699ZM10.666 11.3336H3.99941V10.0002H10.666V11.3336Z",fill:"var(--gray-500)"},null,-1),b("path",{d:"M11.9998 6.66669C11.9998 7.03329 11.6996 7.33329 11.333 7.33329H5.99981C5.63321 7.33329 5.33301 7.03329 5.33301 6.66669V4.0001C5.33301 3.6335 5.63321 3.3335 5.99981 3.3335H11.333C11.6996 3.3335 11.9998 3.6337 11.9998 4.0001V6.66669Z",fill:"var(--gray-500)"},null,-1)])])}const U9e=ve(htn,[["render",mtn]]),ftn={class:"bootstrap-styles w-100 p-14 rounded-2 border bg-color-input"},gtn={class:"bootstrap-styles d-flex position-relative w-100"},ytn=["data-key","onClick"],Ctn=re({__name:"ContainerAlignEditor",props:{containerAlign:{}},emits:["onContainerAlignChanged"],setup(t,{emit:e}){const n=t,o=["Left","Center","Right"],r={Left:j9e,Center:K9e,Right:U9e},i=Rt([]),s=Le({sliderStyle:{width:"0px",transform:"translateX(0px)"}}),a=u=>{gl(()=>{const d=i.value.find(h=>h.dataset.key===u);d&&(s.sliderStyle={width:`${d.offsetWidth}px`,transform:`translateX(${d.offsetLeft}px)`})})},l=u=>{c("onContainerAlignChanged",u)};Gc(()=>{a(n.containerAlign)}),on(()=>n.containerAlign,a);const c=e;return(u,d)=>(E(),R("div",ftn,[b("div",gtn,[b("div",{class:"slider",style:Te(s.sliderStyle)},null,4),(E(),R(Se,null,At(o,h=>b("button",{key:h,ref_for:!0,ref_key:"containerAlignVariantRefs",ref:i,"data-key":h,class:G(["bootstrap-styles container-align-editor__variant w-100 d-flex justify-content-center align-items-center py-14 px-1 text-gray-600 z-1 position-relative",{active:n.containerAlign===h}]),onClick:()=>l(h)},[(E(),Q(JK(r[h])))],10,ytn)),64))])]))}}),btn=ve(Ctn,[["__scopeId","data-v-7cd317ad"]]),vtn={},wtn={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function Stn(t,e){return E(),R("svg",wtn,[...e[0]||(e[0]=[b("path",{d:"M11.3333 3.99998H14.6666V5.33331H13.3333V14C13.3333 14.3682 13.0348 14.6666 12.6666 14.6666H3.33331C2.96513 14.6666 2.66665 14.3682 2.66665 14V5.33331H1.33331V3.99998H4.66665V1.99998C4.66665 1.63179 4.96513 1.33331 5.33331 1.33331H10.6666C11.0348 1.33331 11.3333 1.63179 11.3333 1.99998V3.99998ZM12 5.33331H3.99998V13.3333H12V5.33331ZM5.99998 7.33331H7.33331V11.3333H5.99998V7.33331ZM8.66665 7.33331H9.99998V11.3333H8.66665V7.33331ZM5.99998 2.66665V3.99998H9.99998V2.66665H5.99998Z",fill:"var(--red-400)"},null,-1)])])}const xtn=ve(vtn,[["render",Stn]]),Ttn={class:"bootstrap-styles d-flex justify-content-center align-items-center"},ktn=re({__name:"RemoveButton",emits:["click"],setup(t,{emit:e}){const n=e;return(o,r)=>(E(),R("button",{class:"bootstrap-styles p-1",onClick:r[0]||(r[0]=i=>n("click"))},[b("i",Ttn,[I(xtn)])]))}}),YC=ve(ktn,[["__scopeId","data-v-7442eec2"]]),Ftn={},Etn={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"};function Ltn(t,e){return E(),R("svg",Etn,[...e[0]||(e[0]=[b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 4.0332H2V3.0332H14V4.0332Z",fill:"var(--gray-500)"},null,-1),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 8.5332H2V6.5332H14V8.5332Z",fill:"var(--gray-500)"},null,-1),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 13.5332H2V10.5332H14V13.5332Z",fill:"var(--gray-500)"},null,-1)])])}const q9e=ve(Ftn,[["render",Ltn]]),_tn={customColorLabel:"Other color",colorLabels:{emailBackgroundColor:"Email background",bodyColor:"Email body",primaryColor:"Primary color",secondaryColor:"Secondary color",primaryTextColor:"Primary text",secondaryTextColor:"Secondary text",cardBackgroundColor:"Product card color",buttonTextColor:"Buttons",titleColor:"Title",headingColor:"Heading",subHeadingColor:"Subheading",largeTextColor:"Large text",normalTextColor:"Text",descriptionTextColor:"Description",linkColor:"Link",custom:"Custom"}},Atn={customColorLabel:"Другой цвет",colorLabels:{emailBackgroundColor:"Фон письма",bodyColor:"Тело письма",primaryColor:"Основной цвет",secondaryColor:"Вторичный цвет",primaryTextColor:"Текст на основном цвете",secondaryTextColor:"Текст на вторичном цвете",cardBackgroundColor:"Цвет карточек товара",buttonTextColor:"Кнопки",titleColor:"Большой заголовок",headingColor:"Заголовок",subHeadingColor:"Подзаголовок",largeTextColor:"Большой текст",normalTextColor:"Текст",descriptionTextColor:"Описание",linkColor:"Ссылка",custom:"Пользовательский"}},Hi=ht({en:_tn,ru:Atn}),Rtn={class:"bootstrap-styles row gx-2"},Dtn={class:"bootstrap-styles dropdown border rounded-2 bg-color-input",id:"dropdownMenuButtonBorderColorList","aria-expanded":"false","data-bs-toggle":"dropdown"},Btn={type:"button",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-14 px-14 pe-3 overflow-hidden"},Ntn={class:"bootstrap-styles d-flex align-items-center justify-content-start position-relative"},Itn={class:"bootstrap-styles color-editor__text-eclipse overflow-hidden position-relative"},Mtn={class:"bootstrap-styles d-flex justify-content-center align-items-center"},$tn={class:"bootstrap-styles dropdown-menu rounded-2","aria-labelledby":"dropdownMenuButtonBorderColorList"},Otn={key:0,class:"bootstrap-styles col-6"},Ptn=re({__name:"BorderColorEditor",props:{deps:{},color:{},themeColors:{}},emits:["update:changeColor"],setup(t,{emit:e}){const n=t,o=e,r=l=>{o("update:changeColor",l)},i={customColorLabel:Hi({localeKey:n.deps.localeKey}).customColorLabel,colorLabels:{emailBackgroundColor:Hi({localeKey:n.deps.localeKey}).colorLabels.emailBackgroundColor,bodyColor:Hi({localeKey:n.deps.localeKey}).colorLabels.bodyColor,primaryColor:Hi({localeKey:n.deps.localeKey}).colorLabels.primaryColor,secondaryColor:Hi({localeKey:n.deps.localeKey}).colorLabels.secondaryColor,primaryTextColor:Hi({localeKey:n.deps.localeKey}).colorLabels.primaryTextColor,secondaryTextColor:Hi({localeKey:n.deps.localeKey}).colorLabels.secondaryTextColor,cardBackgroundColor:Hi({localeKey:n.deps.localeKey}).colorLabels.cardBackgroundColor,buttonTextColor:Hi({localeKey:n.deps.localeKey}).colorLabels.buttonTextColor,titleColor:Hi({localeKey:n.deps.localeKey}).colorLabels.titleColor,headingColor:Hi({localeKey:n.deps.localeKey}).colorLabels.headingColor,subHeadingColor:Hi({localeKey:n.deps.localeKey}).colorLabels.subHeadingColor,largeTextColor:Hi({localeKey:n.deps.localeKey}).colorLabels.largeTextColor,normalTextColor:Hi({localeKey:n.deps.localeKey}).colorLabels.normalTextColor,descriptionTextColor:Hi({localeKey:n.deps.localeKey}).colorLabels.descriptionTextColor,linkColor:Hi({localeKey:n.deps.localeKey}).colorLabels.linkColor,custom:Hi({localeKey:n.deps.localeKey}).colorLabels.custom}},s={EmailBackgroundColor:i.colorLabels.emailBackgroundColor,BodyColor:i.colorLabels.bodyColor,PrimaryColor:i.colorLabels.primaryColor,SecondaryColor:i.colorLabels.secondaryColor,PrimaryTextColor:i.colorLabels.primaryTextColor,SecondaryTextColor:i.colorLabels.secondaryTextColor,CardBackgroundColor:i.colorLabels.cardBackgroundColor,ButtonTextColor:i.colorLabels.buttonTextColor,TitleColor:i.colorLabels.titleColor,HeadingColor:i.colorLabels.headingColor,SubHeadingColor:i.colorLabels.subHeadingColor,LargeTextColor:i.colorLabels.largeTextColor,NormalTextColor:i.colorLabels.normalTextColor,DescriptionTextColor:i.colorLabels.descriptionTextColor,LinkColor:i.colorLabels.linkColor,Custom:i.colorLabels.custom},a=["EmailBackgroundColor","BodyColor","PrimaryColor","SecondaryColor","PrimaryTextColor","SecondaryTextColor","ButtonTextColor","TitleColor","HeadingColor","SubHeadingColor","LargeTextColor","NormalTextColor","DescriptionTextColor","LinkColor"];return(l,c)=>(E(),R("div",Rtn,[b("div",{class:G([n.color.Discriminator=="Custom"?"bootstrap-styles col-6 font-style-color-editor-custom":"bootstrap-styles col-12 font-style-color-editor-theme"])},[b("div",Dtn,[b("button",Btn,[b("span",Ntn,[b("i",{class:"bootstrap-styles input__color_selection d-block overflow-hidden me-1",style:Te([{border:"1px solid rgba(0, 0, 0, 0.10)"},{background:N(lc)({color:n.color,themeColors:n.themeColors})??"url(https://gallery.retailrocket.net/5df72bdc97a52507605e4cc1/transparentColor.png) no-repeat 50% 50%"}])},null,4),b("span",Itn,W(s[n.color.Discriminator]),1)]),b("i",Mtn,[I(Si)])]),b("ul",$tn,[(E(),R(Se,null,At(a,u=>I(ug,{key:u,isActive:n.color.Discriminator===u,color:n.themeColors[u],label:s[u],onClick:d=>r({Discriminator:u,CustomValue:n.color.CustomValue})},null,8,["isActive","color","label","onClick"])),64)),I(ug,{isActive:n.color.Discriminator==="Custom",color:"linear-gradient(135deg, #3384FF 0%, #CA65FA 34.37%, #FA6565 61.98%, #FAEB65 100%)",label:i.customColorLabel,onClick:c[0]||(c[0]=u=>r({Discriminator:"Custom",CustomValue:n.color.CustomValue}))},null,8,["isActive","label"])])])],2),n.color.Discriminator==="Custom"?(E(),R("div",Otn,[I(Du,{color:n.color.CustomValue,"onUpdate:changeColor":c[1]||(c[1]=u=>r({Discriminator:"Custom",CustomValue:u}))},null,8,["color"])])):oe("",!0)]))}}),Vtn={label:"Border"},Wtn={label:"Обводка"},Htn=ht({en:Vtn,ru:Wtn}),ztn={class:"bootstrap-styles row g-0 mb-13"},jtn={class:"bootstrap-styles fw-bold mb-5"},Ktn={class:"bootstrap-styles col-12 mb-2"},Utn={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},qtn={class:"bootstrap-styles me-1"},Jtn={class:"bootstrap-styles col-12"},J9e=re({__name:"BorderEditor",props:{deps:{},modelValue:{},themeColors:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o={label:Htn({localeKey:n.deps.localeKey}).label},r=e;return(i,s)=>(E(),R("div",ztn,[b("label",jtn,W(o.label),1),b("div",Ktn,[b("div",Utn,[b("i",qtn,[I(q9e)]),I(fr,{modelValue:n.modelValue.Left.Width,"onUpdate:modelValue":s[0]||(s[0]=a=>r("update:modelValue",{...n.modelValue,Left:{...n.modelValue.Left,Style:"Solid",Width:a},Right:{...n.modelValue.Right,Style:"Solid",Width:a},Top:{...n.modelValue.Top,Style:"Solid",Width:a},Bottom:{...n.modelValue.Bottom,Style:"Solid",Width:a}}))},null,8,["modelValue"])])]),b("div",Jtn,[I(Ptn,{deps:n.deps.borderColorEditorDeps,color:n.modelValue.Left.Color,themeColors:n.themeColors,"onUpdate:changeColor":s[1]||(s[1]=a=>r("update:modelValue",{Left:{...n.modelValue.Left,Color:a},Right:{...n.modelValue.Right,Color:a},Top:{...n.modelValue.Top,Color:a},Bottom:{...n.modelValue.Bottom,Color:a}}))},null,8,["deps","color","themeColors"])])]))}}),Gtn={title:"Button",removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the Button element?",inputTextLabel:"Text",inputTextPlaceholder:"Button text...",href:{errorNotification:"The link must contain https://, http://, mailto:, tel:",hrefLabel:"Click link",hrefPlaceholder:"Link address"},cannotBeEditedLabel:"Cannot be edited",textStyleLabel:"Style",backgroundColorLabel:"Background color",contentAlign:{label:"Alignment",fullWidthCheckboxLabel:"Full width"},paddings:{label:"Paddings",themeStyleLinked:"Automatic",manualValue:"Manual",leftRight:"Left, right",topBottom:"Top, bottom"},borderRadius:{label:"Border radius",themeStyleLinkedText:"From component settings"}},Ytn={title:"Кнопка",removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент Button ?",inputTextLabel:"Текст",inputTextPlaceholder:"Текст кнопки...",href:{errorNotification:"Ссылка должна содержать https://, http://, mailto:, tel:",hrefLabel:"Ссылка при клике",hrefPlaceholder:"Адрес ссылки"},cannotBeEditedLabel:"Нельзя редактировать",textStyleLabel:"Стиль",backgroundColorLabel:"Цвет заливки",contentAlign:{label:"Выравнивание",fullWidthCheckboxLabel:"На всю ширину"},paddings:{label:"Отступы",themeStyleLinked:"Автоматически",manualValue:"Вручную",leftRight:"Слева, справа",topBottom:"Сверху, снизу"},borderRadius:{label:"Скругление",themeStyleLinkedText:"Из настроек компонента"}},Ztn=ht({en:Gtn,ru:Ytn}),Xtn={class:"bootstrap-styles d-flex justify-content-between align-items-center mb-13"},Qtn={class:"bootstrap-styles fw-bold fs-6"},enn={class:"bootstrap-styles container-fluid g-0"},tnn={class:"bootstrap-styles row g-0"},nnn={key:0,class:"bootstrap-styles col-12 mb-13"},onn={class:"bootstrap-styles fw-bold mb-5"},rnn=["placeholder","value"],inn={key:1,class:"bootstrap-styles col-12"},snn={class:"bootstrap-styles fw-bold mb-5"},ann={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},lnn=["placeholder"],cnn={key:2,class:"bootstrap-styles col-12 mb-13"},unn={class:"bootstrap-styles fw-bold mb-5 disabled"},dnn={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},hnn={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},pnn=["placeholder"],mnn={class:"bootstrap-styles fw-bold mb-5"},fnn={class:"bootstrap-styles container-fluid mb-13"},gnn={class:"bootstrap-styles fw-bold mb-5"},ynn={class:"bootstrap-styles row gx-2 mb-2"},Cnn={class:"bootstrap-styles row g-0 mb-13"},bnn={class:"bootstrap-styles fw-bold mb-5"},vnn={class:"bootstrap-styles col-12 mb-5"},wnn={class:"bootstrap-styles d-flex align-items-center"},Snn={for:"button-width-checkbox",class:"label__checkbox-input"},xnn={key:0,class:"bootstrap-styles col-12"},Tnn={class:"bootstrap-styles content-fluid mb-13"},knn={class:"bootstrap-styles fw-bold fs-6 mb-7"},Fnn={class:"bootstrap-styles dropdown border rounded-2 bg-color-input mb-7"},Enn={id:"dropdownMenuButtonFontFamily",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},Lnn={class:"bootstrap-styles d-flex justify-content-center align-items-center"},_nn={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuButtonFontFamily"},Ann={key:0,class:"bootstrap-styles row gx-0 mb-1"},Rnn={class:"bootstrap-styles col-6"},Dnn={class:"bootstrap-styles col-6 d-flex align-items-center"},Bnn={class:"bootstrap-styles ps-5 text-gray-600"},Nnn={key:1,class:"bootstrap-styles row gx-0 mb-1"},Inn={class:"bootstrap-styles col-6"},Mnn={class:"bootstrap-styles col-6 d-flex align-items-center"},$nn={class:"bootstrap-styles ps-5 text-gray-600"},Onn={class:"bootstrap-styles container-fluid mb-13"},Pnn={class:"bootstrap-styles fw-bold mb-5"},Vnn={class:"bootstrap-styles row g-0 mb-5"},Wnn={class:"bootstrap-styles col-12"},Hnn={class:"bootstrap-styles d-flex align-items-center"},znn={for:"button-radius-checkbox",class:"label__checkbox-input"},jnn={key:0,class:"bootstrap-styles row g-0"},Knn={class:"bootstrap-styles col-6"},Unn={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},qnn={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},Jnn=re({__name:"ButtonEditor",props:{deps:{},modelValue:{},themeBorderRadiusButton:{},themeColors:{},themeFontFamily:{},themeFontSettings:{}},emits:["update:modelValue","removeElement"],setup(t,{emit:e}){const n=t,o=Le({isRemoveElementWindowShown:!1,isValid:!0,hrefValue:n.modelValue.HRef.ConstValueExpression?.Value??""}),r=p=>{if(c$(p))o.isValid=!0,h("update:modelValue",{...n.modelValue,HRef:{ConstValueExpression:{Value:p}}});else{o.isValid=!1;return}},i=p=>({TopLeft:{CustomValue:p.topLeft,Discriminator:"CustomBorderRadius"},TopRight:{CustomValue:p.topRight,Discriminator:"CustomBorderRadius"},BottomLeft:{CustomValue:p.bottomLeft,Discriminator:"CustomBorderRadius"},BottomRight:{CustomValue:p.bottomRight,Discriminator:"CustomBorderRadius"}}),s=p=>{h("update:modelValue",{...n.modelValue,BorderRadius:i({topLeft:p,topRight:p,bottomLeft:p,bottomRight:p})})},a=p=>i({topLeft:p.TopLeft.CustomValue??n.themeBorderRadiusButton.TopLeft,topRight:p.TopRight.CustomValue??n.themeBorderRadiusButton.TopRight,bottomLeft:p.BottomLeft.CustomValue??n.themeBorderRadiusButton.BottomLeft,bottomRight:p.BottomRight.CustomValue??n.themeBorderRadiusButton.BottomRight}),l=p=>({TopLeft:{CustomValue:p.TopLeft.CustomValue,Discriminator:"ButtonBorderRadiusTopLeft"},TopRight:{CustomValue:p.TopRight.CustomValue,Discriminator:"ButtonBorderRadiusTopRight"},BottomLeft:{CustomValue:p.BottomLeft.CustomValue,Discriminator:"ButtonBorderRadiusBottomLeft"},BottomRight:{CustomValue:p.BottomRight.CustomValue,Discriminator:"ButtonBorderRadiusBottomRight"}}),c=()=>{h("update:modelValue",{...n.modelValue,BorderRadius:n.modelValue.BorderRadius.TopLeft.Discriminator=="ButtonBorderRadiusTopLeft"?a(n.modelValue.BorderRadius):l(n.modelValue.BorderRadius)})},u=ne(()=>h9e(n.modelValue.Paddings).Match({Theme:()=>!0,Custom:()=>!1})),d=Ztn({localeKey:n.deps.localeKey}),h=e;return(p,m)=>(E(),R(Se,null,[b("div",Xtn,[b("span",Qtn,W(N(d).title),1),I(YC,{onClick:m[0]||(m[0]=f=>o.isRemoveElementWindowShown=!0)}),(E(),Q(yo,{to:"body",defer:""},[o.isRemoveElementWindowShown?(E(),Q(Ch,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:N(d).removeWindowTitle,onCancel:m[1]||(m[1]=f=>o.isRemoveElementWindowShown=!1),onConfirmed:m[2]||(m[2]=()=>{o.isRemoveElementWindowShown=!1,h("removeElement")})},{"body-content":Bt(()=>[no(W(N(d).removeWindowDescription),1)]),_:1},8,["deps","headerText"])):oe("",!0)]))]),b("div",enn,[b("div",tnn,[N(Yd)(n.modelValue.Text)?(E(),R("div",nnn,[b("label",onn,W(N(d).inputTextLabel),1),b("input",{class:"bootstrap-styles bg-color-input border rounded-2 w-100 py-1 px-3",placeholder:N(d).inputTextPlaceholder,value:n.modelValue.Text.ConstValueExpression.Value,onInput:m[3]||(m[3]=f=>h("update:modelValue",{...n.modelValue,Text:{ConstValueExpression:{Value:f.target.value}}}))},null,40,rnn)])):oe("",!0),N(Yd)(n.modelValue.HRef)?(E(),R("div",inn,[b("label",snn,W(N(d).href.hrefLabel),1),b("div",{class:G(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex mb-14",{"not-valid-url":!o.isValid}])},[b("i",ann,[I(CC)]),Ke(b("input",{type:"text",class:"bootstrap-styles w-100",placeholder:N(d).href.hrefPlaceholder,"onUpdate:modelValue":m[4]||(m[4]=f=>o.hrefValue=f),onInput:m[5]||(m[5]=f=>r(f.target.value))},null,40,lnn),[[Ea,o.hrefValue]])],2),b("div",{class:G(["bootstrap-styles text-start add-link-notification mb-14",{invisible:o.isValid}])},W(N(d).href.errorNotification),3)])):(E(),R("div",cnn,[b("label",unn,W(N(d).href.hrefLabel),1),b("div",dnn,[b("i",hnn,[I(CC)]),b("input",{type:"text",disabled:"",class:"bootstrap-styles w-100",placeholder:N(d).cannotBeEditedLabel},null,8,pnn)])]))]),b("label",mnn,W(N(d).textStyleLabel),1),I(Ppe,{deps:n.deps.fontStyleEditorDeps,fontStyle:n.modelValue.TextStyle,themeColors:n.themeColors,themeFontFamily:n.themeFontFamily,themeFontSettings:n.themeFontSettings,"onUpdate:changeTextStyles":m[6]||(m[6]=f=>{h("update:modelValue",{...n.modelValue,TextStyle:f})})},null,8,["deps","fontStyle","themeColors","themeFontFamily","themeFontSettings"]),b("div",fnn,[b("label",gnn,W(N(d).backgroundColorLabel),1),b("div",ynn,[I(Ope,{deps:n.deps.colorEditorDeps,color:n.modelValue.BackgroundColor,themeColors:n.themeColors,"onUpdate:changeColor":m[7]||(m[7]=f=>h("update:modelValue",{...n.modelValue,BackgroundColor:{...f}}))},null,8,["deps","color","themeColors"])])]),I(J9e,{deps:n.deps.borderEditorDeps,modelValue:n.modelValue.Border,themeColors:n.themeColors,"onUpdate:modelValue":m[8]||(m[8]=f=>h("update:modelValue",{...n.modelValue,Border:f}))},null,8,["deps","modelValue","themeColors"]),b("div",Cnn,[b("label",bnn,W(N(d).contentAlign.label),1),b("div",vnn,[b("div",wnn,[I(th,{id:"button-width-checkbox",checked:n.modelValue.FullWidth,onChange:m[9]||(m[9]=f=>h("update:modelValue",{...n.modelValue,FullWidth:!n.modelValue.FullWidth}))},null,8,["checked"]),b("label",Snn,W(N(d).contentAlign.fullWidthCheckboxLabel),1)])]),n.modelValue.FullWidth?oe("",!0):(E(),R("div",xnn,[I(btn,{class:"bootstrap-styles mb-5",containerAlign:n.modelValue.ContentAlign,onOnContainerAlignChanged:m[10]||(m[10]=f=>h("update:modelValue",{...n.modelValue,ContentAlign:f}))},null,8,["containerAlign"])]))])]),b("div",Tnn,[b("label",knn,W(N(d).paddings.label),1),b("div",Fnn,[Ke((E(),R("button",Enn,[b("span",null,W(u.value?N(d).paddings.themeStyleLinked:N(d).paddings.manualValue),1),b("i",Lnn,[I(Si)])])),[[N(ah)]]),b("ul",_nn,[b("li",{class:G(["bootstrap-styles dropdown-item p-0",{active:u.value}])},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",onClick:m[11]||(m[11]=f=>h("update:modelValue",{...n.modelValue,Paddings:{...n.modelValue.Paddings,Discriminator:"Theme"}}))},W(N(d).paddings.themeStyleLinked),1)],2),b("li",{class:G(["bootstrap-styles dropdown-item p-0",{active:!u.value}])},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",onClick:m[12]||(m[12]=f=>h("update:modelValue",{...n.modelValue,Paddings:{...n.modelValue.Paddings,Discriminator:"Custom"}}))},W(N(d).paddings.manualValue),1)],2)])]),u.value?oe("",!0):(E(),R("div",Ann,[b("div",Rnn,[I(zl,{value:n.modelValue.Paddings.CustomValue.LeftRight,"onUpdate:changeValue":m[13]||(m[13]=f=>h("update:modelValue",{...n.modelValue,Paddings:{...n.modelValue.Paddings,CustomValue:{...n.modelValue.Paddings.CustomValue,LeftRight:f}}}))},null,8,["value"])]),b("div",Dnn,[b("label",Bnn,W(N(d).paddings.leftRight),1)])])),u.value?oe("",!0):(E(),R("div",Nnn,[b("div",Inn,[I(zl,{value:n.modelValue.Paddings.CustomValue.TopBottom,"onUpdate:changeValue":m[14]||(m[14]=f=>h("update:modelValue",{...n.modelValue,Paddings:{...n.modelValue.Paddings,CustomValue:{...n.modelValue.Paddings.CustomValue,TopBottom:f}}}))},null,8,["value"])]),b("div",Mnn,[b("label",$nn,W(N(d).paddings.topBottom),1)])]))]),b("div",Onn,[b("label",Pnn,W(N(d).borderRadius.label),1),b("div",Vnn,[b("div",Wnn,[b("div",Hnn,[I(th,{id:"button-radius-checkbox",checked:n.modelValue.BorderRadius.TopLeft.Discriminator==="ButtonBorderRadiusTopLeft",onChange:m[15]||(m[15]=f=>c())},null,8,["checked"]),b("label",znn,W(N(d).borderRadius.themeStyleLinkedText),1)])])]),n.modelValue.BorderRadius.TopLeft.Discriminator==="CustomBorderRadius"?(E(),R("div",jnn,[b("div",Knn,[b("div",Unn,[b("i",qnn,[I(nE)]),I(fr,{modelValue:n.modelValue.BorderRadius.TopLeft.CustomValue,"onUpdate:modelValue":m[16]||(m[16]=f=>s(f))},null,8,["modelValue"])])])])):oe("",!0)])],64))}}),Gnn={title:"Spacer",removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the Spacer element?",paddingLabel:"Spacer size",customPaddingLabel:"Custom",separatorLabel:"Separator",paddingLabels:{themePaddingsSmall:"Small",themePaddingsMedium:"Medium",themePaddingsLarge:"Large",themePaddingsHuge:"Huge",custom:"Custom"}},Ynn={title:"Отступ",removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент Spacer ?",paddingLabel:"Размер отступа",customPaddingLabel:"Свой",separatorLabel:"Разделитель",paddingLabels:{themePaddingsSmall:"Маленький",themePaddingsMedium:"Средний",themePaddingsLarge:"Большой",themePaddingsHuge:"Гигантский",custom:"Свой"}},Rd=ht({en:Gnn,ru:Ynn}),Znn={class:"bootstrap-styles d-flex justify-content-between align-items-center mb-13"},Xnn={class:"bootstrap-styles fw-bold fs-6"},Qnn={class:"bootstrap-styles container-fluid mb-13"},eon={class:"bootstrap-styles fw-bold mb-5"},ton={class:"bootstrap-styles row g-0 mb-2"},non={class:"bootstrap-styles col-12"},oon={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},ron={id:"dropdownMenuButtonSpacerSize",type:"button",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3","data-bs-toggle":"dropdown","aria-expanded":"false"},ion={class:"bootstrap-styles d-flex justify-content-center align-items-center"},son={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuButtonSpacerSize"},aon=["onClick"],lon={class:"bootstrap-styles dropdown-item p-0"},con={key:0,class:"bootstrap-styles row g-0"},uon={class:"bootstrap-styles col-12"},don={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},hon={class:"bootstrap-styles container-fluid mb-13"},pon={class:"bootstrap-styles row g-0 mb-13"},mon={class:"bootstrap-styles fw-bold mb-5"},fon={class:"bootstrap-styles col-12 mb-2"},gon={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},yon={class:"bootstrap-styles me-1"},Con={class:"bootstrap-styles col-12"},bon=re({__name:"SpacerEditor",props:{deps:{},modelValue:{},themeColors:{}},emits:["update:modelValue","removeElement"],setup(t,{emit:e}){const n=t,o=Le({isRemoveElementWindowShown:!1}),r=["ThemePaddingsSmall","ThemePaddingsMedium","ThemePaddingsLarge","ThemePaddingsHuge"],i={title:Rd({localeKey:n.deps.localeKey}).title,removeWindowTitle:Rd({localeKey:n.deps.localeKey}).removeWindowTitle,removeWindowDescription:Rd({localeKey:n.deps.localeKey}).removeWindowDescription,paddingLabel:Rd({localeKey:n.deps.localeKey}).paddingLabel,customPaddingLabel:Rd({localeKey:n.deps.localeKey}).customPaddingLabel,separatorLabel:Rd({localeKey:n.deps.localeKey}).separatorLabel,paddingLabels:{themePaddingsSmall:Rd({localeKey:n.deps.localeKey}).paddingLabels.themePaddingsSmall,themePaddingsMedium:Rd({localeKey:n.deps.localeKey}).paddingLabels.themePaddingsMedium,themePaddingsLarge:Rd({localeKey:n.deps.localeKey}).paddingLabels.themePaddingsLarge,themePaddingsHuge:Rd({localeKey:n.deps.localeKey}).paddingLabels.themePaddingsHuge,custom:Rd({localeKey:n.deps.localeKey}).paddingLabels.custom}},s={ThemePaddingsSmall:i.paddingLabels.themePaddingsSmall,ThemePaddingsMedium:i.paddingLabels.themePaddingsMedium,ThemePaddingsLarge:i.paddingLabels.themePaddingsLarge,ThemePaddingsHuge:i.paddingLabels.themePaddingsHuge,Custom:i.paddingLabels.custom,BodyPaddingsTop:void 0,BodyPaddingsRight:void 0,BodyPaddingsBottom:void 0,BodyPaddingsLeft:void 0},a=e;return(l,c)=>(E(),R(Se,null,[b("div",Znn,[b("span",Xnn,W(i.title),1),I(YC,{onClick:c[0]||(c[0]=u=>o.isRemoveElementWindowShown=!0)}),(E(),Q(yo,{to:"body",defer:""},[o.isRemoveElementWindowShown?(E(),Q(Ch,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:i.removeWindowTitle,onCancel:c[1]||(c[1]=u=>o.isRemoveElementWindowShown=!1),onConfirmed:c[2]||(c[2]=()=>{o.isRemoveElementWindowShown=!1,a("removeElement")})},{"body-content":Bt(()=>[no(W(i.removeWindowDescription),1)]),_:1},8,["deps","headerText"])):oe("",!0)]))]),b("div",Qnn,[b("label",eon,W(i.paddingLabel),1),b("div",ton,[b("div",non,[b("div",oon,[Ke((E(),R("button",ron,[b("span",null,W(s[n.modelValue.Height.ThemePadding]??i.customPaddingLabel),1),b("i",ion,[I(Si)])])),[[N(ah)]]),b("ul",son,[(E(),R(Se,null,At(r,u=>b("li",{key:u,class:"bootstrap-styles dropdown-item p-0"},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",onClick:d=>a("update:modelValue",{...n.modelValue,Height:{ThemePadding:u}})},W(s[u]),9,aon)])),64)),b("li",lon,[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",onClick:c[3]||(c[3]=u=>a("update:modelValue",{...n.modelValue,Height:{CustomValue:n.modelValue.Height.CustomValue??10}}))},W(i.customPaddingLabel),1)])])])])]),n.modelValue.Height.CustomValue!==void 0?(E(),R("div",con,[b("div",uon,[b("div",don,[I(fr,{modelValue:n.modelValue.Height.CustomValue,"onUpdate:modelValue":c[4]||(c[4]=u=>a("update:modelValue",{...n.modelValue,Height:{CustomValue:u}}))},null,8,["modelValue"])])])])):oe("",!0)]),b("div",hon,[b("div",pon,[b("label",mon,W(i.separatorLabel),1),b("div",fon,[b("div",gon,[b("i",yon,[I(q9e)]),I(fr,{modelValue:n.modelValue.Weight,"onUpdate:modelValue":c[5]||(c[5]=u=>a("update:modelValue",{...n.modelValue,Weight:u}))},null,8,["modelValue"])])]),b("div",Con,[I(Ope,{deps:n.deps.colorEditorDeps,color:n.modelValue.Color,themeColors:n.themeColors,"onUpdate:changeColor":c[6]||(c[6]=u=>a("update:modelValue",{...n.modelValue,Color:{...u}}))},null,8,["deps","color","themeColors"])])])])],64))}}),von={},won={xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none"};function Son(t,e){return E(),R("svg",won,[...e[0]||(e[0]=[b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.7 1.8665H3.95234V4.09492H1.7V1.8665ZM0.5 0.666504H1.7H3.95234H5.15234V1.8665V4.09492V5.29492H3.95234H1.7H0.5V4.09492V1.8665V0.666504ZM12.5 0.666664H6.5V2H12.5V0.666664ZM12.5 12V10.6667H0.5V12H12.5ZM12.5 8.66666V7.33333H0.5V8.66666H12.5ZM12.5 4H6.5V5.33333H12.5V4Z",fill:"var(--gray-500)"},null,-1)])])}const G9e=ve(von,[["render",Son]]),xon={},Ton={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function kon(t,e){return E(),R("svg",Ton,[...e[0]||(e[0]=[b("path",{d:"M2 2.6665H14V3.99984H2V2.6665ZM4.66667 12.6665H14V13.9998H4.66667V12.6665ZM2 9.33317H14V10.6665H2V9.33317ZM4.66667 5.99984H14V7.33317H4.66667V5.99984Z",fill:"var(--gray-500)"},null,-1)])])}const Fon=ve(xon,[["render",kon]]),Eon={},Lon={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function _on(t,e){return E(),R("svg",Lon,[...e[0]||(e[0]=[b("path",{d:"M2 2.6665H14V3.99984H2V2.6665ZM3.33333 12.6665H12.6667V13.9998H3.33333V12.6665ZM2 9.33317H14V10.6665H2V9.33317ZM3.33333 5.99984H12.6667V7.33317H3.33333V5.99984Z",fill:"var(--gray-500)"},null,-1)])])}const Aon=ve(Eon,[["render",_on]]),Ron={},Don={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function Bon(t,e){return E(),R("svg",Don,[...e[0]||(e[0]=[b("path",{d:"M2 2.6665H14V3.99984H2V2.6665ZM2 12.6665H11.3333V13.9998H2V12.6665ZM2 9.33317H14V10.6665H2V9.33317ZM2 5.99984H11.3333V7.33317H2V5.99984Z",fill:"var(--gray-500)"},null,-1)])])}const Non=ve(Ron,[["render",Bon]]),Ion={class:"bootstrap-styles w-100 p-14 rounded-2 border bg-color-input"},Mon={class:"bootstrap-styles d-flex position-relative w-100"},$on=["data-key","onClick"],Oon=re({__name:"ContentAlignEditor",props:{contentAlign:{}},emits:["onContentAlignChanged"],setup(t,{emit:e}){const n=t,o=e,r=["Inline","Left","Center","Right"],i={Inline:G9e,Left:Non,Center:Aon,Right:Fon},s=Rt([]),a=Le({sliderStyle:{width:"0px",transform:"translateX(0px)"}}),l=u=>{gl(()=>{const d=s.value.find(h=>h.dataset.key===u);d&&(a.sliderStyle={width:`${d.offsetWidth}px`,transform:`translateX(${d.offsetLeft}px)`})})},c=u=>{o("onContentAlignChanged",u)};return Gc(()=>{l(n.contentAlign)}),on(()=>n.contentAlign,l),(u,d)=>(E(),R("div",Ion,[b("div",Mon,[b("div",{class:"slider",style:Te(a.sliderStyle)},null,4),(E(),R(Se,null,At(r,h=>b("button",{key:h,ref_for:!0,ref_key:"variantRefs",ref:s,"data-key":h,class:G(["bootstrap-styles content-align-editor__variant w-100 d-flex justify-content-center align-items-center py-14 px-1 text-gray-600 z-1 position-relative",{active:n.contentAlign===h}]),onClick:()=>c(h)},[(E(),Q(JK(i[h])))],10,$on)),64))])]))}}),Y9e=ve(Oon,[["__scopeId","data-v-3121b466"]]),Pon={maxLengthLabel:"Maximum characters"},Von={maxLengthLabel:"Максимум символов"},Won=ht({en:Pon,ru:Von}),Hon={class:"bootstrap-styles fw-bold mb-5"},zon={class:"bootstrap-styles input-number__wrapper bg-color-input border rounded-2 py-1 px-3 d-flex position-relative mb-13"},jon=re({__name:"TruncateSpanEditor",props:{deps:{},truncateValueExpression:{}},emits:["truncateValueExpressionUpdated"],setup(t,{emit:e}){const n=t,o={maxLengthLabel:Won({localeKey:n.deps.localeKey}).maxLengthLabel},r=e;return(i,s)=>(E(),R(Se,null,[b("label",Hon,W(o.maxLengthLabel),1),b("div",zon,[I(fr,{modelValue:n.truncateValueExpression.MaxLength,"onUpdate:modelValue":s[0]||(s[0]=a=>r("truncateValueExpressionUpdated",{...n.truncateValueExpression,MaxLength:a}))},null,8,["modelValue"])])],64))}}),Uke={ConcatStringExpressions:t=>t!==void 0,ContextValueExpression:t=>t!==void 0,ConstValueExpression:t=>t!==void 0,NumberToStringExpression:t=>t!==void 0,TruncateValueExpression:t=>t!==void 0,DataSource:t=>t!==void 0},Kon={title:"Text",removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the Text element?",inputTextPlaceholder:"Text...",textStyleLabel:"Style",inputHRefPlaceholder:"https://example.com",minHeightLabel:"Minimum number of lines",cannotBeEditedLabel:"Cannot be edited",href:{hrefLabel:"Click link",hrefPlaceholder:"Optional",errorNotification:"The link must contain https://, http://, mailto:, tel:"},contentAlign:{label:"Alignment"}},Uon={title:"Текст",removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент Text ?",inputTextPlaceholder:"Текст...",textStyleLabel:"Стиль",inputHRefPlaceholder:"https://example.com",minHeightLabel:"Минимальное кол-во строк",cannotBeEditedLabel:"Нельзя редактировать",href:{hrefLabel:"Ссылка при клике",hrefPlaceholder:"Не обязательно",errorNotification:"Ссылка должна содержать https://, http://, mailto:, tel:"},contentAlign:{label:"Выравнивание"}},qon=ht({en:Kon,ru:Uon}),Jon={class:"bootstrap-styles d-flex justify-content-between align-items-center mb-13"},Gon={class:"bootstrap-styles fw-bold fs-6"},Yon={key:0,class:"bootstrap-styles row g-0 mb-13"},Zon={class:"bootstrap-styles col-12"},Xon=["placeholder","value"],Qon={key:2,class:"bootstrap-styles row g-0 mb-13"},ern={class:"bootstrap-styles col-12"},trn=["placeholder"],nrn={class:"bootstrap-styles container-fluid mt-1"},orn={class:"bootstrap-styles col-12"},rrn={class:"bootstrap-styles fw-bold mb-5"},irn={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},srn=["placeholder"],arn=["value"],lrn={class:"bootstrap-styles fw-bold mb-5"},crn={class:"bootstrap-styles container-fluid mb-13"},urn={class:"bootstrap-styles fw-bold mb-5"},drn={key:4,class:"bootstrap-styles container-fluid mb-13"},hrn={class:"bootstrap-styles fw-bold mb-5"},prn={class:"bootstrap-styles input-number__wrapper bg-color-input border rounded-2 py-1 px-3 d-flex position-relative"},mrn=re({__name:"SpanEditor",props:{deps:{},modelValue:{},themeColors:{},themeFontFamily:{},themeFontSettings:{}},emits:["update:modelValue","removeElement"],setup(t,{emit:e}){const n=t,o=Le({isRemoveElementWindowShown:!1,isValid:!0,hrefValue:n.modelValue.HRef.ConstValueExpression?.Value??""}),r=n.deps.dataSourceEditorPlugin,i=l=>{if(l===""){o.isValid=!0,a("update:modelValue",{...n.modelValue,IsLink:!1,HRef:{ConstValueExpression:{Value:l}}});return}if(c$(l))o.isValid=!0,a("update:modelValue",{...n.modelValue,IsLink:!0,HRef:{ConstValueExpression:{Value:l}}});else{o.isValid=!1;return}},s=qon({localeKey:n.deps.localeKey}),a=e;return(l,c)=>(E(),R(Se,null,[b("div",Jon,[b("span",Gon,W(N(s).title),1),I(YC,{onClick:c[0]||(c[0]=u=>o.isRemoveElementWindowShown=!0)}),(E(),Q(yo,{to:"body",defer:""},[o.isRemoveElementWindowShown?(E(),Q(Ch,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:N(s).removeWindowTitle,onCancel:c[1]||(c[1]=u=>o.isRemoveElementWindowShown=!1),onConfirmed:c[2]||(c[2]=()=>{o.isRemoveElementWindowShown=!1,a("removeElement")})},{"body-content":Bt(()=>[no(W(N(s).removeWindowDescription),1)]),_:1},8,["deps","headerText"])):oe("",!0)]))]),N(Yd)(n.modelValue.Text)?(E(),R("div",Yon,[b("div",Zon,[b("textarea",{class:"bootstrap-styles bg-color-input border rounded-2 w-100 py-1 px-3",placeholder:N(s).inputTextPlaceholder,rows:"10",value:n.modelValue.Text.ConstValueExpression.Value,onInput:c[3]||(c[3]=u=>a("update:modelValue",{...n.modelValue,Text:{ConstValueExpression:{Value:u.target.value}}}))},null,40,Xon)])])):N(Uke).DataSource(n.modelValue.Text.DataSource)?(E(),Q(N(r),{key:1,class:"bootstrap-styles row g-0 mb-13",dataSource:n.modelValue.Text.DataSource,onDataSourceUpdated:c[4]||(c[4]=u=>a("update:modelValue",{...n.modelValue,Text:{DataSource:u}}))},null,8,["dataSource"])):(E(),R("div",Qon,[b("div",ern,[b("input",{class:"bootstrap-styles bg-color-input border rounded-2 w-100 py-1 px-3",disabled:"",placeholder:N(s).cannotBeEditedLabel},null,8,trn)])])),N(Uke).TruncateValueExpression(n.modelValue.Text.TruncateValueExpression)?(E(),Q(jon,{key:3,deps:n.deps.truncateSpanEditorDeps,truncateValueExpression:n.modelValue.Text.TruncateValueExpression,onTruncateValueExpressionUpdated:c[5]||(c[5]=u=>a("update:modelValue",{...n.modelValue,Text:{TruncateValueExpression:u}}))},null,8,["deps","truncateValueExpression"])):oe("",!0),b("div",nrn,[b("div",orn,[b("label",rrn,W(N(s).href.hrefLabel),1),b("div",{class:G(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex mb-14",{"not-valid-url":!o.isValid}])},[b("i",irn,[I(CC)]),n.modelValue.HRef.ConstValueExpression&&N(Yd)(n.modelValue.HRef)?Ke((E(),R("input",{key:0,"onUpdate:modelValue":c[6]||(c[6]=u=>o.hrefValue=u),type:"text",class:"bootstrap-styles w-100",placeholder:N(s).href.hrefPlaceholder,onInput:c[7]||(c[7]=u=>i(u.target.value))},null,40,srn)),[[Ea,o.hrefValue]]):(E(),R("input",{key:1,disabled:"",class:"bootstrap-styles w-100",value:N(s).cannotBeEditedLabel},null,8,arn))],2),b("div",{class:G(["bootstrap-styles text-start add-link-notification mb-14",{invisible:o.isValid}])},W(N(s).href.errorNotification),3)])]),b("label",lrn,W(N(s).textStyleLabel),1),I(Ppe,{deps:n.deps.fontStyleEditorDeps,fontStyle:n.modelValue.Style,themeColors:n.themeColors,themeFontFamily:n.themeFontFamily,themeFontSettings:n.themeFontSettings,"onUpdate:changeTextStyles":c[8]||(c[8]=u=>{a("update:modelValue",{...n.modelValue,Style:u})})},null,8,["deps","fontStyle","themeColors","themeFontFamily","themeFontSettings"]),b("div",crn,[b("label",urn,W(N(s).contentAlign.label),1),I(Y9e,{class:"bootstrap-styles mb-5",contentAlign:n.modelValue.ContentAlign,onOnContentAlignChanged:c[9]||(c[9]=u=>a("update:modelValue",{...n.modelValue,ContentAlign:u}))},null,8,["contentAlign"])]),n.modelValue.ContentAlign!=="Inline"?(E(),R("div",drn,[b("label",hrn,W(N(s).minHeightLabel),1),b("div",prn,[I(fr,{modelValue:n.modelValue.MinNumberOfLines,"onUpdate:modelValue":c[10]||(c[10]=u=>a("update:modelValue",{...n.modelValue,MinNumberOfLines:u}))},null,8,["modelValue"])])])):oe("",!0)],64))}}),frn={title:"Unsubscribe link text",removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the Unsubscribe link text element?",inputTextPlaceholder:"Text...",fontStyleLabel:"Style",contentAlign:{label:"Alignment"}},grn={title:"Текст отписки от рассылки",removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент Текст отписки от рассылки ?",inputTextPlaceholder:"Текст...",fontStyleLabel:"Стиль",contentAlign:{label:"Выравнивание"}},Rx=ht({en:frn,ru:grn}),yrn={class:"bootstrap-styles d-flex justify-content-between align-items-center mb-13"},Crn={class:"bootstrap-styles fw-bold fs-6"},brn={key:0,class:"bootstrap-styles row g-0 mb-13"},vrn={class:"bootstrap-styles col-12 mb-1"},wrn=["placeholder","value"],Srn={class:"bootstrap-styles fw-bold mb-5"},xrn={class:"bootstrap-styles container-fluid mb-13"},Trn={class:"bootstrap-styles fw-bold mb-5"},krn=re({__name:"UnsubscribeLinkEditor",props:{deps:{},modelValue:{},themeColors:{},themeFontFamily:{},themeFontSettings:{}},emits:["onModelValueChanged","removeElement"],setup(t,{emit:e}){const n=t,o=Le({isRemoveElementWindowShown:!1}),r={title:Rx({localeKey:n.deps.localeKey}).title,removeWindowTitle:Rx({localeKey:n.deps.localeKey}).removeWindowTitle,removeWindowDescription:Rx({localeKey:n.deps.localeKey}).removeWindowDescription,inputTextPlaceholder:Rx({localeKey:n.deps.localeKey}).inputTextPlaceholder,fontStyleLabel:Rx({localeKey:n.deps.localeKey}).fontStyleLabel,contentAlign:{label:Rx({localeKey:n.deps.localeKey}).contentAlign.label}},i=e;return(s,a)=>(E(),R(Se,null,[b("div",yrn,[b("span",Crn,W(r.title),1),I(YC,{onClick:a[0]||(a[0]=l=>o.isRemoveElementWindowShown=!0)}),(E(),Q(yo,{to:"body",defer:""},[o.isRemoveElementWindowShown?(E(),Q(Ch,{key:0,headerText:r.removeWindowTitle,deps:n.deps.removeConfirmModalWindowDeps,onCancel:a[1]||(a[1]=l=>o.isRemoveElementWindowShown=!1),onConfirmed:a[2]||(a[2]=()=>{o.isRemoveElementWindowShown=!1,i("removeElement")})},{"body-content":Bt(()=>[no(W(r.removeWindowDescription),1)]),_:1},8,["headerText","deps"])):oe("",!0)]))]),n.modelValue.Text?(E(),R("div",brn,[b("div",vrn,[b("textarea",{class:"bootstrap-styles bg-color-input border rounded-2 w-100 py-1 px-3",placeholder:r.inputTextPlaceholder,rows:"5",value:n.modelValue.Text,onInput:a[3]||(a[3]=l=>i("onModelValueChanged",{...n.modelValue,Text:l.target.value}))},null,40,wrn)])])):oe("",!0),b("label",Srn,W(r.fontStyleLabel),1),I(Ppe,{deps:n.deps.fontStyleEditorDeps,fontStyle:n.modelValue.Style,themeColors:n.themeColors,themeFontFamily:n.themeFontFamily,themeFontSettings:n.themeFontSettings,"onUpdate:changeTextStyles":a[4]||(a[4]=l=>{i("onModelValueChanged",{...n.modelValue,Style:l})})},null,8,["deps","fontStyle","themeColors","themeFontFamily","themeFontSettings"]),b("div",xrn,[b("label",Trn,W(r.contentAlign.label),1),I(Y9e,{class:"bootstrap-styles mb-5",contentAlign:n.modelValue.ContentAlign,onOnContentAlignChanged:a[5]||(a[5]=l=>i("onModelValueChanged",{...n.modelValue,ContentAlign:l}))},null,8,["contentAlign"])])],64))}}),Frn={title:"Rich text",removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete this element?",minHeightLabel:"Minimum height (px)"},Ern={title:"Текст",removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент ?",minHeightLabel:"Минимальная высота в пикселях"},hO=ht({en:Frn,ru:Ern}),Lrn={class:"bootstrap-styles d-flex justify-content-between align-items-center mb-13"},_rn={class:"bootstrap-styles fw-bold fs-6"},Arn={class:"bootstrap-styles fw-bold mb-5"},Rrn={class:"bootstrap-styles input-number__wrapper bg-color-input border rounded-2 py-1 px-3 d-flex position-relative"},Drn=re({__name:"RichTextEditor",props:{deps:{},modelValue:{}},emits:["update:modelValue","removeElement"],setup(t,{emit:e}){const n=t,o=Le({isRemoveElementWindowShown:!1}),r={title:hO({localeKey:n.deps.localeKey}).title,removeWindowTitle:hO({localeKey:n.deps.localeKey}).removeWindowTitle,removeWindowDescription:hO({localeKey:n.deps.localeKey}).removeWindowDescription,minHeightLabel:hO({localeKey:n.deps.localeKey}).minHeightLabel},i=e;return(s,a)=>(E(),R(Se,null,[b("div",Lrn,[b("span",_rn,W(r.title),1),I(YC,{onClick:a[0]||(a[0]=l=>o.isRemoveElementWindowShown=!0)}),(E(),Q(yo,{to:"body",defer:""},[o.isRemoveElementWindowShown?(E(),Q(Ch,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:r.removeWindowTitle,onCancel:a[1]||(a[1]=l=>o.isRemoveElementWindowShown=!1),onConfirmed:a[2]||(a[2]=()=>{o.isRemoveElementWindowShown=!1,i("removeElement")})},{"body-content":Bt(()=>[no(W(r.removeWindowDescription),1)]),_:1},8,["deps","headerText"])):oe("",!0)]))]),b("label",Arn,W(r.minHeightLabel),1),b("div",Rrn,[I(fr,{modelValue:n.modelValue.MinHeight,"onUpdate:modelValue":a[3]||(a[3]=l=>i("update:modelValue",{...n.modelValue,MinHeight:l}))},null,8,["modelValue"])])],64))}}),Brn=["placeholder","value"],Nrn=re({__name:"SrcEditor",props:{src:{},placeholder:{}},emits:["onSrcUpdated"],setup(t,{emit:e}){const n=t,o=Le({src:n.src,isNotValid:!1}),r=a=>{try{return new URL(a),/\.(png|jpe?g|gif)$/i.test(a)}catch{return!1}},i=Pde(a=>{if(o.isNotValid=!1,!r(a)){o.isNotValid=!0,o.src=a;return}const l=new Image;l.onload=()=>{l.naturalWidth>0&&l.naturalHeight>0?s("onSrcUpdated",a):o.isNotValid=!0},l.onerror=()=>{o.isNotValid=!0},l.src=a,o.src=a},500);on(()=>n.src,a=>{o.src=a,o.isNotValid=!1});const s=e;return(a,l)=>(E(),R("input",{class:G(["bootstrap-styles bg-color-input border rounded-2 w-100 py-1 px-3",{"border-danger":o.isNotValid}]),placeholder:n.placeholder,value:o.src,onInput:l[0]||(l[0]=c=>N(i)(c.target.value))},null,42,Brn))}}),Z9e=ve(Nrn,[["__scopeId","data-v-67ecb6b0"]]),Irn={title:"Image",removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the Image element?",cannotBeEditedLabel:"Cannot be edited",contentAlign:{label:"Alignment"},src:{srcLabel:"Image link",srcPlaceholder:"https://example.jpg"},alt:{altLabel:"Alt text",altPlaceholder:"Alt text..."},href:{hrefLabel:"Click link",hrefPlaceholder:"Optional",errorNotification:"The link must contain https://, http://, mailto:, tel:"},retinaLabel:"For retina screens",responsiveLabel:"Responsive image",borderRadius:{label:"Border radius",themeStyleLinkedText:"From component settings"}},Mrn={title:"Изображение",removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент Image ?",cannotBeEditedLabel:"Нельзя редактировать",contentAlign:{label:"Выравнивание"},src:{srcLabel:"Ссылка на картинку",srcPlaceholder:"https://example.jpg"},alt:{altLabel:"Альтернативный текст",altPlaceholder:"Альтернативный текст..."},href:{hrefLabel:"Ссылка при клике",hrefPlaceholder:"Не обязательно",errorNotification:"Ссылка должна содержать https://, http://, mailto:, tel:"},retinaLabel:"Для retina-экранов",responsiveLabel:"Адаптированное изображение",borderRadius:{label:"Скругление",themeStyleLinkedText:"Из настроек компонента"}},$rn=ht({en:Irn,ru:Mrn}),Orn={class:"bootstrap-styles d-flex justify-content-between align-items-center mb-13"},Prn={class:"bootstrap-styles fw-bold fs-6"},Vrn={class:"bootstrap-styles row g-0 mb-13"},Wrn={key:0,class:"bootstrap-styles col-12 mb-5"},Hrn={class:"bootstrap-styles preview__detail__picture border rounded-1 w-100 position-relative d-flex justify-content-center align-items-center",style:{height:"124px"}},zrn={key:1},jrn={class:"bootstrap-styles fw-bold mb-5"},Krn={key:2,class:"bootstrap-styles col-12 mb-13"},Urn={class:"bootstrap-styles fw-bold mb-5 disabled"},qrn={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},Jrn={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},Grn=["placeholder"],Yrn={key:3,class:"bootstrap-styles col-12 mb-13"},Zrn={class:"bootstrap-styles fw-bold mb-5"},Xrn={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},Qrn=["placeholder","value"],ein={key:4,class:"bootstrap-styles col-12 mb-13"},tin={class:"bootstrap-styles fw-bold mb-5 disabled"},nin={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},oin=["placeholder"],rin={class:"bootstrap-styles col-12 mb-5"},iin={class:"bootstrap-styles d-flex align-items-center"},sin={for:"retina-checkbox",class:"label__checkbox-input"},ain={class:"bootstrap-styles col-12"},lin={class:"bootstrap-styles d-flex align-items-center"},cin={for:"responsive-checkbox",class:"label__checkbox-input"},uin={class:"bootstrap-styles container-fluid mt-1"},din={class:"bootstrap-styles col-12"},hin={class:"bootstrap-styles fw-bold mb-5"},pin={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},min=["placeholder"],fin=["value"],gin={class:"bootstrap-styles container-fluid mb-13"},yin={class:"bootstrap-styles fw-bold mb-5"},Cin={class:"bootstrap-styles border rounded-2 d-flex bg-color-input"},bin={class:"bootstrap-styles input__switch_wrapper d-flex justify-content-between p-14 w-100"},vin={class:"bootstrap-styles row g-0 mb-13"},win={class:"bootstrap-styles fw-bold mb-5"},Sin={class:"bootstrap-styles col-12 mb-5"},xin={class:"bootstrap-styles d-flex align-items-center"},Tin={for:"image-radius-checkbox",class:"label__checkbox-input"},kin={key:0,class:"bootstrap-styles col-12"},Fin={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},Ein={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},Lin=re({__name:"ImageEditor",props:{deps:{},modelValue:{},themeBorderRadiusBanner:{},themeColors:{}},emits:["update:modelValue","removeElement"],setup(t,{emit:e}){const n=t,o=Le({isRemoveElementWindowShown:!1,isValid:!0,hrefValue:n.modelValue.HRef.ConstValueExpression?.Value??""}),r=h=>({TopLeft:{CustomValue:h.topLeft,Discriminator:"CustomBorderRadius"},TopRight:{CustomValue:h.topRight,Discriminator:"CustomBorderRadius"},BottomLeft:{CustomValue:h.bottomLeft,Discriminator:"CustomBorderRadius"},BottomRight:{CustomValue:h.bottomRight,Discriminator:"CustomBorderRadius"}}),i=h=>{d("update:modelValue",{...n.modelValue,BorderRadius:r({topLeft:h,topRight:h,bottomLeft:h,bottomRight:h})})},s=h=>r({topLeft:h.TopLeft.CustomValue??n.themeBorderRadiusBanner.TopLeft,topRight:h.TopRight.CustomValue??n.themeBorderRadiusBanner.TopRight,bottomLeft:h.BottomLeft.CustomValue??n.themeBorderRadiusBanner.BottomLeft,bottomRight:h.BottomRight.CustomValue??n.themeBorderRadiusBanner.BottomRight}),a=h=>({TopLeft:{CustomValue:h.TopLeft.CustomValue,Discriminator:"BannerBorderRadiusTopLeft"},TopRight:{CustomValue:h.TopRight.CustomValue,Discriminator:"BannerBorderRadiusTopRight"},BottomLeft:{CustomValue:h.BottomLeft.CustomValue,Discriminator:"BannerBorderRadiusBottomLeft"},BottomRight:{CustomValue:h.BottomRight.CustomValue,Discriminator:"BannerBorderRadiusBottomRight"}}),l=()=>{d("update:modelValue",{...n.modelValue,BorderRadius:n.modelValue.BorderRadius.TopLeft.Discriminator=="BannerBorderRadiusTopLeft"?s(n.modelValue.BorderRadius):a(n.modelValue.BorderRadius)})},c=h=>{if(h===""){o.isValid=!0,d("update:modelValue",{...n.modelValue,IsLink:!1,HRef:{ConstValueExpression:{Value:h}}});return}if(c$(h))o.isValid=!0,d("update:modelValue",{...n.modelValue,IsLink:!0,HRef:{ConstValueExpression:{Value:h}}});else{o.isValid=!1;return}},u=$rn({localeKey:n.deps.localeKey}),d=e;return(h,p)=>(E(),R(Se,null,[b("div",Orn,[b("span",Prn,W(N(u).title),1),I(YC,{onClick:p[0]||(p[0]=m=>o.isRemoveElementWindowShown=!0)}),(E(),Q(yo,{to:"body",defer:""},[o.isRemoveElementWindowShown?(E(),Q(Ch,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:N(u).removeWindowTitle,onCancel:p[1]||(p[1]=m=>o.isRemoveElementWindowShown=!1),onConfirmed:p[2]||(p[2]=()=>{o.isRemoveElementWindowShown=!1,d("removeElement")})},{"body-content":Bt(()=>[no(W(N(u).removeWindowDescription),1)]),_:1},8,["deps","headerText"])):oe("",!0)]))]),b("div",Vrn,[N(Yd)(n.modelValue.Src)?(E(),R("div",Wrn,[b("div",Hrn,[b("span",{class:"bootstrap-styles w-100 h-100 preview__detail__picture-img",style:Te({backgroundImage:`url('${n.modelValue.Src.ConstValueExpression.Value}')`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"50% 50%"})},null,4)])])):oe("",!0),N(Yd)(n.modelValue.Src)?(E(),R("div",zrn,[b("label",jrn,W(N(u).src.srcLabel),1),I(Z9e,{class:"bootstrap-styles col-12 mb-13",src:n.modelValue.Src.ConstValueExpression.Value,placeholder:N(u).src.srcPlaceholder,onOnSrcUpdated:p[3]||(p[3]=m=>d("update:modelValue",{...n.modelValue,Src:{ConstValueExpression:{Value:m}}}))},null,8,["src","placeholder"])])):(E(),R("div",Krn,[b("label",Urn,W(N(u).src.srcLabel),1),b("div",qrn,[b("i",Jrn,[I(CC)]),b("input",{type:"text",disabled:"",class:"bootstrap-styles w-100",placeholder:N(u).cannotBeEditedLabel},null,8,Grn)])])),N(Yd)(n.modelValue.Alt)?(E(),R("div",Yrn,[b("label",Zrn,W(N(u).alt.altLabel),1),b("div",Xrn,[b("input",{type:"text",class:"bootstrap-styles w-100",placeholder:N(u).alt.altPlaceholder,value:n.modelValue.Alt.ConstValueExpression?.Value,onInput:p[4]||(p[4]=m=>d("update:modelValue",{...n.modelValue,Alt:{ConstValueExpression:{Value:m.target.value}}}))},null,40,Qrn)])])):(E(),R("div",ein,[b("label",tin,W(N(u).alt.altLabel),1),b("div",nin,[b("input",{type:"text",disabled:"",class:"bootstrap-styles w-100",placeholder:N(u).cannotBeEditedLabel},null,8,oin)])])),b("div",rin,[b("div",iin,[I(th,{id:"retina-checkbox",checked:n.modelValue.IsRetina,onChange:p[5]||(p[5]=m=>d("update:modelValue",{...n.modelValue,IsRetina:!n.modelValue.IsRetina}))},null,8,["checked"]),b("label",sin,W(N(u).retinaLabel),1)])]),b("div",ain,[b("div",lin,[I(th,{id:"responsive-checkbox",checked:n.modelValue.IsResponsive,onChange:p[6]||(p[6]=m=>d("update:modelValue",{...n.modelValue,IsResponsive:!n.modelValue.IsResponsive}))},null,8,["checked"]),b("label",cin,W(N(u).responsiveLabel),1)])])]),b("div",uin,[b("div",din,[b("label",hin,W(N(u).href.hrefLabel),1),b("div",{class:G(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex mb-14",{"not-valid-url":!o.isValid}])},[b("i",pin,[I(CC)]),n.modelValue.HRef.ConstValueExpression&&N(Yd)(n.modelValue.HRef)?Ke((E(),R("input",{key:0,"onUpdate:modelValue":p[7]||(p[7]=m=>o.hrefValue=m),type:"text",class:"bootstrap-styles w-100",placeholder:N(u).href.hrefPlaceholder,onInput:p[8]||(p[8]=m=>c(m.target.value))},null,40,min)),[[Ea,o.hrefValue]]):(E(),R("input",{key:1,disabled:"",class:"bootstrap-styles w-100",value:N(u).cannotBeEditedLabel},null,8,fin))],2),b("div",{class:G(["bootstrap-styles text-start add-link-notification mb-14",{invisible:o.isValid}])},W(N(u).href.errorNotification),3)])]),b("div",gin,[b("label",yin,W(N(u).contentAlign.label),1),b("div",Cin,[b("div",bin,[b("button",{class:G(["bootstrap-styles input__switch_button w-100 d-flex justify-content-center align-items-center py-14 px-1",{active:n.modelValue.ContentAlign==="Inline"}]),onClick:p[9]||(p[9]=m=>d("update:modelValue",{...n.modelValue,ContentAlign:"Inline"}))},[I(G9e)],2),b("button",{class:G(["bootstrap-styles input__switch_button w-100 d-flex justify-content-center align-items-center py-14 px-1",{active:n.modelValue.ContentAlign==="Left"}]),onClick:p[10]||(p[10]=m=>d("update:modelValue",{...n.modelValue,ContentAlign:"Left"}))},[I(j9e)],2),b("button",{class:G(["bootstrap-styles input__switch_button w-100 d-flex justify-content-center align-items-center py-14 px-1 text-gray-600",{active:n.modelValue.ContentAlign==="Center"}]),onClick:p[11]||(p[11]=m=>d("update:modelValue",{...n.modelValue,ContentAlign:"Center"}))},[I(K9e)],2),b("button",{class:G(["bootstrap-styles input__switch_button w-100 d-flex justify-content-center align-items-center py-14 px-1 text-gray-600",{active:n.modelValue.ContentAlign==="Right"}]),onClick:p[12]||(p[12]=m=>d("update:modelValue",{...n.modelValue,ContentAlign:"Right"}))},[I(U9e)],2)])])]),I(J9e,{deps:n.deps.borderEditorDeps,modelValue:n.modelValue.Border,themeColors:n.themeColors,"onUpdate:modelValue":p[13]||(p[13]=m=>d("update:modelValue",{...n.modelValue,Border:m}))},null,8,["deps","modelValue","themeColors"]),b("div",vin,[b("label",win,W(N(u).borderRadius.label),1),b("div",Sin,[b("div",xin,[I(th,{id:"image-radius-checkbox",checked:n.modelValue.BorderRadius.TopLeft.Discriminator==="BannerBorderRadiusTopLeft",onChange:p[14]||(p[14]=m=>l())},null,8,["checked"]),b("label",Tin,W(N(u).borderRadius.themeStyleLinkedText),1)])]),n.modelValue.BorderRadius.TopLeft.Discriminator==="CustomBorderRadius"?(E(),R("div",kin,[b("div",Fin,[b("i",Ein,[I(nE)]),I(fr,{modelValue:n.modelValue.BorderRadius.TopLeft.CustomValue,"onUpdate:modelValue":p[15]||(p[15]=m=>i(m))},null,8,["modelValue"])])])):oe("",!0)])],64))}}),_in={title:"Image",removeWindowTitle:"Delete element",removeWindowDescription:"Are you sure you want to delete the Image element?",srcLabel:"Image link",srcPlaceholder:"https://example.jpg",href:{hrefLabel:"Click link",hrefPlaceholder:"Optional",errorNotification:"The link must contain https://, http://, mailto:, tel:"},cannotBeEditedLabel:"Cannot be edited"},Ain={title:"Изображение",removeWindowTitle:"Удаление элемента",removeWindowDescription:"Вы действительно хотите удалить элемент ?",srcLabel:"Ссылка на картинку",srcPlaceholder:"https://example.jpg",href:{hrefLabel:"Ссылка при клике",hrefPlaceholder:"Не обязательно",errorNotification:"Ссылка должна содержать https://, http://, mailto:, tel:"},cannotBeEditedLabel:"Нельзя редактировать"},Rin=ht({en:_in,ru:Ain}),Din={class:"bootstrap-styles d-flex justify-content-between align-items-center mb-13"},Bin={class:"bootstrap-styles fw-bold fs-6"},Nin={class:"bootstrap-styles row g-0 mb-13"},Iin={key:0,class:"bootstrap-styles col-12 mb-5"},Min={class:"bootstrap-styles preview__detail__picture border rounded-1 w-100 position-relative d-flex justify-content-center align-items-center",style:{height:"124px"}},$in={key:1},Oin={class:"bootstrap-styles fw-bold mb-5",for:"background-image-src-input"},Pin={key:2,class:"bootstrap-styles col-12 mb-13"},Vin={class:"bootstrap-styles fw-bold mb-5 disabled"},Win={class:"bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex"},Hin=["placeholder"],zin={class:"bootstrap-styles container-fluid"},jin={class:"bootstrap-styles col-12"},Kin={class:"bootstrap-styles fw-bold mb-5",for:"background-image-href-input"},Uin={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},qin=["placeholder"],Jin=["value"],Gin=re({__name:"BackgroundImageEditor",props:{deps:{},modelValue:{}},emits:["update:modelValue","removeElement"],setup(t,{emit:e}){const n=t,o=Le({isRemoveElementWindowShown:!1,isValid:!0,hrefValue:n.modelValue.HRef.ConstValueExpression?.Value??""}),r=Rin({localeKey:n.deps.localeKey}),i=a=>{if(a===""){o.isValid=!0,s("update:modelValue",{...n.modelValue,IsLink:!1,HRef:{ConstValueExpression:{Value:a}}});return}if(c$(a))o.isValid=!0,s("update:modelValue",{...n.modelValue,IsLink:!0,HRef:{ConstValueExpression:{Value:a}}});else{o.isValid=!1;return}},s=e;return(a,l)=>(E(),R(Se,null,[b("div",Din,[b("span",Bin,W(N(r).title),1),I(YC,{onClick:l[0]||(l[0]=c=>o.isRemoveElementWindowShown=!0)}),(E(),Q(yo,{to:"body",defer:""},[o.isRemoveElementWindowShown?(E(),Q(Ch,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:N(r).removeWindowTitle,onCancel:l[1]||(l[1]=c=>o.isRemoveElementWindowShown=!1),onConfirmed:l[2]||(l[2]=()=>{o.isRemoveElementWindowShown=!1,s("removeElement")})},{"body-content":Bt(()=>[no(W(N(r).removeWindowDescription),1)]),_:1},8,["deps","headerText"])):oe("",!0)]))]),b("div",Nin,[N(Yd)(n.modelValue.Src)?(E(),R("div",Iin,[b("div",Min,[b("span",{class:"bootstrap-styles w-100 h-100 preview__detail__picture-img",style:Te({backgroundImage:`url('${n.modelValue.Src.ConstValueExpression.Value}')`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"50% 50%"})},null,4)])])):oe("",!0),N(Yd)(n.modelValue.Src)?(E(),R("div",$in,[b("label",Oin,W(N(r).srcLabel),1),I(Z9e,{id:"background-image-src-input",class:"bootstrap-styles col-12 mb-13",src:n.modelValue.Src.ConstValueExpression.Value,placeholder:N(r).srcPlaceholder,onOnSrcUpdated:l[3]||(l[3]=c=>s("update:modelValue",{...n.modelValue,Src:{ConstValueExpression:{Value:c}}}))},null,8,["src","placeholder"])])):(E(),R("div",Pin,[b("label",Vin,W(N(r).srcLabel),1),b("div",Win,[b("input",{type:"text",disabled:"",class:"bootstrap-styles w-100",placeholder:N(r).cannotBeEditedLabel},null,8,Hin)])])),b("div",zin,[b("div",jin,[b("label",Kin,W(N(r).href.hrefLabel),1),b("div",{class:G(["bootstrap-styles bg-color-input border rounded-2 py-1 px-3 d-flex",{"not-valid-url":!o.isValid}])},[b("i",Uin,[I(CC)]),n.modelValue.HRef.ConstValueExpression&&N(Yd)(n.modelValue.HRef)?Ke((E(),R("input",{key:0,id:"background-image-href-input",type:"text",class:"bootstrap-styles w-100",placeholder:N(r).href.hrefPlaceholder,"onUpdate:modelValue":l[4]||(l[4]=c=>o.hrefValue=c),onInput:l[5]||(l[5]=c=>i(c.target.value))},null,40,qin)),[[Ea,o.hrefValue]]):(E(),R("input",{key:1,disabled:"",class:"bootstrap-styles w-100",value:N(r).cannotBeEditedLabel},null,8,Jin))],2),b("div",{class:G(["bootstrap-styles text-start add-link-notification mb-14",{invisible:o.isValid}])},W(N(r).href.errorNotification),3)])])])],64))}}),Yin={class:"bootstrap-styles px-7 editor__wrapper"},Zin=re({__name:"ElementsEditor",props:{deps:{},element:{},path:{},theme:{}},emits:["elementUpdatedEvent","removeElement"],setup(t,{emit:e}){const n=t,o=e,r={span:i=>i!==void 0,richText:i=>i!==void 0,spacer:i=>i!==void 0,image:i=>i!==void 0,button:i=>i!==void 0,unsubscribeLink:i=>i!==void 0,backgroundImage:i=>i!==void 0};return(i,s)=>(E(),R("div",Yin,[r.backgroundImage(n.element.BackgroundImage)?(E(),Q(Gin,{key:`backgroundImage-${n.path.join(".")}`,deps:n.deps.backgroundImageEditorDeps,modelValue:n.element.BackgroundImage,"onUpdate:modelValue":s[0]||(s[0]=a=>o("elementUpdatedEvent",{element:{BackgroundImage:a},path:n.path})),onRemoveElement:s[1]||(s[1]=()=>o("removeElement",{path:n.path}))},null,8,["deps","modelValue"])):oe("",!0),r.image(n.element.Image)?(E(),Q(Lin,{key:`image-${n.path.join(".")}`,deps:n.deps.imageEditorDeps,modelValue:n.element.Image,themeBorderRadiusBanner:n.theme.BorderRadiusBanner,themeColors:n.theme.Colors,"onUpdate:modelValue":s[2]||(s[2]=a=>o("elementUpdatedEvent",{element:{Image:a},path:n.path})),onRemoveElement:s[3]||(s[3]=()=>o("removeElement",{path:n.path}))},null,8,["deps","modelValue","themeBorderRadiusBanner","themeColors"])):oe("",!0),r.button(n.element.Button)?(E(),Q(Jnn,{key:`button-${n.path.join(".")}`,deps:n.deps.buttonEditorDeps,modelValue:n.element.Button,themeBorderRadiusButton:n.theme.BorderRadiusButton,themeColors:n.theme.Colors,themeFontFamily:n.theme.FontFamily,themeFontSettings:n.theme.FontSettingsPresets,"onUpdate:modelValue":s[4]||(s[4]=a=>o("elementUpdatedEvent",{element:{Button:a},path:n.path})),onRemoveElement:s[5]||(s[5]=()=>o("removeElement",{path:n.path}))},null,8,["deps","modelValue","themeBorderRadiusButton","themeColors","themeFontFamily","themeFontSettings"])):oe("",!0),r.span(n.element.SpanText)?(E(),Q(mrn,{key:`span-${n.path.join(".")}`,deps:n.deps.spanEditorDeps,modelValue:n.element.SpanText,themeColors:n.theme.Colors,themeFontFamily:n.theme.FontFamily,themeFontSettings:n.theme.FontSettingsPresets,"onUpdate:modelValue":s[6]||(s[6]=a=>o("elementUpdatedEvent",{element:{SpanText:a},path:n.path})),onRemoveElement:s[7]||(s[7]=()=>o("removeElement",{path:n.path}))},null,8,["deps","modelValue","themeColors","themeFontFamily","themeFontSettings"])):oe("",!0),r.richText(n.element.RichText)?(E(),Q(Drn,{key:`richText-${n.path.join(".")}`,deps:n.deps.richTextEditorDeps,modelValue:n.element.RichText,"onUpdate:modelValue":s[8]||(s[8]=a=>o("elementUpdatedEvent",{element:{RichText:a},path:n.path})),onRemoveElement:s[9]||(s[9]=()=>o("removeElement",{path:n.path}))},null,8,["deps","modelValue"])):oe("",!0),r.spacer(n.element.Spacer)?(E(),Q(bon,{key:`spacer-${n.path.join(".")}`,deps:n.deps.spacerEditorDeps,modelValue:n.element.Spacer,themeColors:n.theme.Colors,"onUpdate:modelValue":s[10]||(s[10]=a=>o("elementUpdatedEvent",{element:{Spacer:a},path:n.path})),onRemoveElement:s[11]||(s[11]=()=>o("removeElement",{path:n.path}))},null,8,["deps","modelValue","themeColors"])):oe("",!0),r.unsubscribeLink(n.element.UnsubscribeLink)?(E(),Q(krn,{key:`unsubscribeLink-${n.path.join(".")}`,deps:n.deps.unsubscribeLinkEditorDeps,modelValue:n.element.UnsubscribeLink,themeColors:n.theme.Colors,themeFontFamily:n.theme.FontFamily,themeFontSettings:n.theme.FontSettingsPresets,onOnModelValueChanged:s[12]||(s[12]=a=>o("elementUpdatedEvent",{element:{UnsubscribeLink:a},path:n.path})),onRemoveElement:s[13]||(s[13]=()=>o("removeElement",{path:n.path}))},null,8,["deps","modelValue","themeColors","themeFontFamily","themeFontSettings"])):oe("",!0)]))}}),Xin={title:"Row",removeWindowTitle:"Delete component",removeWindowDescription:"Are you sure you want to delete the component?",backgroundColorLabel:"Background color",requiredComponentLabel:"Required component",paddings:{label:"Paddings",top:"Top",bottom:"Bottom",labels:{themePaddingsSmall:"Small",themePaddingsMedium:"Medium",themePaddingsLarge:"Large",themePaddingsHuge:"Huge",bodyPaddingsTop:"Top",bodyPaddingsRight:"Right",bodyPaddingsBottom:"Bottom",bodyPaddingsLeft:"Left",custom:"Custom"}},contentAlign:{fullWidthCheckboxLabel:"Full width"},borderRadius:{label:"Border radius",top:"Top",bottom:"Bottom"}},Qin={title:"Строка",removeWindowTitle:"Удаление компонента",removeWindowDescription:"Вы действительно хотите удалить компонент ?",backgroundColorLabel:"Цвет фона",requiredComponentLabel:"Обязательный компонент",paddings:{label:"Отступы",top:"Сверху",bottom:"Снизу",labels:{themePaddingsSmall:"Маленький",themePaddingsMedium:"Средний",themePaddingsLarge:"Большой",themePaddingsHuge:"Гигантский",bodyPaddingsTop:"Сверху",bodyPaddingsRight:"Справа",bodyPaddingsBottom:"Снизу",bodyPaddingsLeft:"Слева",custom:"Свой"}},contentAlign:{fullWidthCheckboxLabel:"На всю ширину"},borderRadius:{label:"Скругление",top:"Сверху",bottom:"Снизу"}},Br=ht({en:Xin,ru:Qin}),esn={class:"bootstrap-styles px-7 editor__wrapper"},tsn={class:"bootstrap-styles d-flex justify-content-between align-items-center mb-13"},nsn={class:"bootstrap-styles fw-bold fs-6"},osn={class:"bootstrap-styles container-fluid mb-13"},rsn={class:"bootstrap-styles fw-bold mb-5"},isn={class:"bootstrap-styles fw-bold fs-6 mb-13"},ssn={class:"bootstrap-styles container-fluid mb-5"},asn={class:"bootstrap-styles row g-0 mb-2"},lsn={class:"bootstrap-styles fw-bold mb-5"},csn={class:"bootstrap-styles col-12"},usn={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},dsn={id:"dropdownMenuButtonSpacerSize",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},hsn={class:"bootstrap-styles d-flex justify-content-center align-items-center"},psn={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuButtonSpacerSize"},msn=["onClick"],fsn={class:"bootstrap-styles dropdown-item p-0"},gsn={key:0,class:"bootstrap-styles row g-0"},ysn={class:"bootstrap-styles col-12"},Csn={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},bsn={class:"bootstrap-styles container-fluid mb-13"},vsn={class:"bootstrap-styles row g-0 mb-2"},wsn={class:"bootstrap-styles fw-bold mb-5"},Ssn={class:"bootstrap-styles col-12"},xsn={class:"bootstrap-styles dropdown border rounded-2 bg-color-input"},Tsn={id:"dropdownMenuButtonSpacerSize",class:"bootstrap-styles w-100 d-flex justify-content-between align-items-center py-1 px-3",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},ksn={class:"bootstrap-styles d-flex justify-content-center align-items-center"},Fsn={class:"bootstrap-styles dropdown-menu w-100 rounded-2","aria-labelledby":"dropdownMenuButtonSpacerSize"},Esn=["onClick"],Lsn={class:"bootstrap-styles dropdown-item p-0"},_sn={key:0,class:"bootstrap-styles row g-0"},Asn={class:"bootstrap-styles col-12"},Rsn={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},Dsn={class:"bootstrap-styles container-fluid mb-13"},Bsn={class:"bootstrap-styles row g-0 mb-5"},Nsn={class:"bootstrap-styles col-12 d-flex align-items-center"},Isn={for:"row-width-checkbox",class:"label__checkbox-input"},Msn={class:"bootstrap-styles fw-bold fs-6 mb-13"},$sn={class:"bootstrap-styles container-fluid mb-13"},Osn={class:"bootstrap-styles row gx-2"},Psn={class:"bootstrap-styles col-6"},Vsn={class:"bootstrap-styles fw-bold mb-5"},Wsn={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},Hsn={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},zsn={class:"bootstrap-styles col-6"},jsn={class:"bootstrap-styles fw-bold mb-5"},Ksn={class:"bootstrap-styles input-number__wrapper position-relative bg-color-input border rounded-2 py-1 px-3 d-flex"},Usn={class:"bootstrap-styles d-flex justify-content-center align-items-center me-1"},qsn={class:"bootstrap-styles container-fluid"},Jsn={class:"bootstrap-styles row g-0 mb-5"},Gsn={class:"bootstrap-styles col-12 d-flex align-items-center"},Ysn={for:"required-component-checkbox",class:"label__checkbox-input"},Zsn=re({__name:"EmailComponentEditor",props:{deps:{},emailComponent:{},index:{},themeColors:{}},emits:["emailComponentUpdated","emailComponentRemoved"],setup(t,{emit:e}){const n=t,o=Le({isRemoveComponentWindowShown:!1}),r=["ThemePaddingsSmall","ThemePaddingsMedium","ThemePaddingsLarge","ThemePaddingsHuge"],i={title:Br({localeKey:n.deps.localeKey}).title,removeWindowTitle:Br({localeKey:n.deps.localeKey}).removeWindowTitle,removeWindowDescription:Br({localeKey:n.deps.localeKey}).removeWindowDescription,backgroundColorLabel:Br({localeKey:n.deps.localeKey}).backgroundColorLabel,requiredComponentLabel:Br({localeKey:n.deps.localeKey}).requiredComponentLabel,paddings:{label:Br({localeKey:n.deps.localeKey}).paddings.label,top:Br({localeKey:n.deps.localeKey}).paddings.top,bottom:Br({localeKey:n.deps.localeKey}).paddings.bottom,labels:{themePaddingsSmall:Br({localeKey:n.deps.localeKey}).paddings.labels.themePaddingsSmall,themePaddingsMedium:Br({localeKey:n.deps.localeKey}).paddings.labels.themePaddingsMedium,themePaddingsLarge:Br({localeKey:n.deps.localeKey}).paddings.labels.themePaddingsLarge,themePaddingsHuge:Br({localeKey:n.deps.localeKey}).paddings.labels.themePaddingsHuge,bodyPaddingsTop:Br({localeKey:n.deps.localeKey}).paddings.labels.bodyPaddingsTop,bodyPaddingsRight:Br({localeKey:n.deps.localeKey}).paddings.labels.bodyPaddingsRight,bodyPaddingsBottom:Br({localeKey:n.deps.localeKey}).paddings.labels.bodyPaddingsBottom,bodyPaddingsLeft:Br({localeKey:n.deps.localeKey}).paddings.labels.bodyPaddingsLeft,custom:Br({localeKey:n.deps.localeKey}).paddings.labels.custom}},contentAlign:{fullWidthCheckboxLabel:Br({localeKey:n.deps.localeKey}).contentAlign.fullWidthCheckboxLabel},borderRadius:{label:Br({localeKey:n.deps.localeKey}).borderRadius.label,top:Br({localeKey:n.deps.localeKey}).borderRadius.top,bottom:Br({localeKey:n.deps.localeKey}).borderRadius.bottom}},s={ThemePaddingsSmall:i.paddings.labels.themePaddingsSmall,ThemePaddingsMedium:i.paddings.labels.themePaddingsMedium,ThemePaddingsLarge:i.paddings.labels.themePaddingsLarge,ThemePaddingsHuge:i.paddings.labels.themePaddingsHuge,BodyPaddingsTop:i.paddings.labels.bodyPaddingsTop,BodyPaddingsRight:i.paddings.labels.bodyPaddingsRight,BodyPaddingsBottom:i.paddings.labels.bodyPaddingsBottom,BodyPaddingsLeft:i.paddings.labels.bodyPaddingsLeft,Custom:i.paddings.labels.custom},a=e,l=c=>{a("emailComponentUpdated",{emailComponent:c,index:n.index})};return(c,u)=>(E(),R("div",esn,[b("div",tsn,[b("span",nsn,W(i.title),1),I(YC,{onClick:u[0]||(u[0]=d=>o.isRemoveComponentWindowShown=!0)}),(E(),Q(yo,{to:"body",defer:""},[o.isRemoveComponentWindowShown?(E(),Q(Ch,{key:0,deps:n.deps.removeConfirmModalWindowDeps,headerText:i.removeWindowTitle,onCancel:u[1]||(u[1]=d=>o.isRemoveComponentWindowShown=!1),onConfirmed:u[2]||(u[2]=()=>{o.isRemoveComponentWindowShown=!1,a("emailComponentRemoved",{index:n.index})})},{"body-content":Bt(()=>[no(W(i.removeWindowDescription),1)]),_:1},8,["deps","headerText"])):oe("",!0)]))]),b("div",osn,[b("label",rsn,W(i.backgroundColorLabel),1),I(Ope,{class:"mb-2",deps:n.deps.colorEditorDeps,color:n.emailComponent.InnerBgColor,themeColors:n.themeColors,"onUpdate:changeColor":u[3]||(u[3]=d=>l({...n.emailComponent,InnerBgColor:{...d}}))},null,8,["deps","color","themeColors"])]),b("label",isn,W(i.paddings.label),1),b("div",ssn,[b("div",asn,[b("label",lsn,W(i.paddings.top),1),b("div",csn,[b("div",usn,[Ke((E(),R("button",dsn,[b("span",null,W(s[n.emailComponent.Paddings.Top.ThemePadding]??i.paddings.labels.custom),1),b("i",hsn,[I(Si)])])),[[N(ah)]]),b("ul",psn,[(E(),R(Se,null,At(r,d=>b("li",{key:d,class:"bootstrap-styles dropdown-item p-0"},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",onClick:()=>l({...n.emailComponent,Paddings:{...n.emailComponent.Paddings,Top:{ThemePadding:d}}})},W(s[d]),9,msn)])),64)),b("li",fsn,[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",onClick:u[4]||(u[4]=()=>l({...n.emailComponent,Paddings:{...n.emailComponent.Paddings,Top:{CustomValue:n.emailComponent.Paddings.Top.CustomValue??10}}}))},W(i.paddings.labels.custom),1)])])])])]),n.emailComponent.Paddings.Top.CustomValue!==void 0?(E(),R("div",gsn,[b("div",ysn,[b("div",Csn,[I(fr,{modelValue:n.emailComponent.Paddings.Top.CustomValue,"onUpdate:modelValue":u[5]||(u[5]=d=>l({...n.emailComponent,Paddings:{...n.emailComponent.Paddings,Top:{CustomValue:d}}}))},null,8,["modelValue"])])])])):oe("",!0)]),b("div",bsn,[b("div",vsn,[b("label",wsn,W(i.paddings.bottom),1),b("div",Ssn,[b("div",xsn,[Ke((E(),R("button",Tsn,[b("span",null,W(s[n.emailComponent.Paddings.Bottom.ThemePadding]??i.paddings.labels.custom),1),b("i",ksn,[I(Si)])])),[[N(ah)]]),b("ul",Fsn,[(E(),R(Se,null,At(r,d=>b("li",{key:d,class:"bootstrap-styles dropdown-item p-0"},[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",onClick:()=>l({...n.emailComponent,Paddings:{...n.emailComponent.Paddings,Bottom:{ThemePadding:d}}})},W(s[d]),9,Esn)])),64)),b("li",Lsn,[b("span",{class:"bootstrap-styles d-block py-1 px-3 text-decoration-none text-reset cursor-pointer",onClick:u[6]||(u[6]=()=>l({...n.emailComponent,Paddings:{...n.emailComponent.Paddings,Bottom:{CustomValue:n.emailComponent.Paddings.Bottom.CustomValue??10}}}))},W(i.paddings.labels.custom),1)])])])])]),n.emailComponent.Paddings.Bottom.CustomValue!==void 0?(E(),R("div",_sn,[b("div",Asn,[b("div",Rsn,[I(fr,{modelValue:n.emailComponent.Paddings.Bottom.CustomValue,"onUpdate:modelValue":u[7]||(u[7]=d=>l({...n.emailComponent,Paddings:{...n.emailComponent.Paddings,Bottom:{CustomValue:d}}}))},null,8,["modelValue"])])])])):oe("",!0)]),b("div",Dsn,[b("div",Bsn,[b("div",Nsn,[I(th,{id:"row-width-checkbox",checked:n.emailComponent.FullWidth,onChange:u[8]||(u[8]=()=>l({...n.emailComponent,FullWidth:!n.emailComponent.FullWidth}))},null,8,["checked"]),b("label",Isn,W(i.contentAlign.fullWidthCheckboxLabel),1)])])]),b("label",Msn,W(i.borderRadius.label),1),b("div",$sn,[b("div",Osn,[b("div",Psn,[b("label",Vsn,W(i.borderRadius.top),1),b("div",Wsn,[b("i",Hsn,[I(nE)]),I(fr,{modelValue:n.emailComponent.BorderRadius.TopLeft.CustomValue,"onUpdate:modelValue":u[9]||(u[9]=d=>l({...n.emailComponent,BorderRadius:{...n.emailComponent.BorderRadius,TopLeft:{Discriminator:"CustomBorderRadius",CustomValue:d},TopRight:{Discriminator:"CustomBorderRadius",CustomValue:d}}}))},null,8,["modelValue"])])]),b("div",zsn,[b("label",jsn,W(i.borderRadius.bottom),1),b("div",Ksn,[b("i",Usn,[I(nE)]),I(fr,{modelValue:n.emailComponent.BorderRadius.BottomLeft.CustomValue,"onUpdate:modelValue":u[10]||(u[10]=d=>l({...n.emailComponent,BorderRadius:{...n.emailComponent.BorderRadius,BottomLeft:{Discriminator:"CustomBorderRadius",CustomValue:d},BottomRight:{Discriminator:"CustomBorderRadius",CustomValue:d}}}))},null,8,["modelValue"])])])])]),b("div",qsn,[b("div",Jsn,[b("div",Gsn,[I(th,{id:"required-component-checkbox",checked:n.emailComponent.IsRequired,onChange:u[11]||(u[11]=()=>l({...n.emailComponent,IsRequired:n.emailComponent.IsRequired?!n.emailComponent.IsRequired:!0}))},null,8,["checked"]),b("label",Ysn,W(i.requiredComponentLabel),1)])])])]))}}),Xsn={},Qsn={xmlns:"http://www.w3.org/2000/svg",width:"41",height:"40",viewBox:"0 0 41 40",fill:"none"};function ean(t,e){return E(),R("svg",Qsn,[...e[0]||(e[0]=[b("path",{d:"M23.8337 7.39575C26.0773 7.39575 27.8962 5.5769 27.8962 3.33325H29.7712C29.7712 5.5769 31.59 7.39575 33.8337 7.39575V9.27075C31.59 9.27075 29.7712 11.0896 29.7712 13.3333H27.8962C27.8962 11.0896 26.0773 9.27075 23.8337 9.27075V7.39575ZM2.16699 18.3333C7.68984 18.3333 12.167 13.8561 12.167 8.33325H15.5003C15.5003 13.8561 19.9775 18.3333 25.5003 18.3333V21.6666C19.9775 21.6666 15.5003 26.1438 15.5003 31.6666H12.167C12.167 26.1438 7.68984 21.6666 2.16699 21.6666V18.3333ZM29.2503 23.3333C29.2503 26.3248 26.8252 28.7499 23.8337 28.7499V31.2499C26.8252 31.2499 29.2503 33.6751 29.2503 36.6666H31.7503C31.7503 33.6751 34.1755 31.2499 37.167 31.2499V28.7499C34.1755 28.7499 31.7503 26.3248 31.7503 23.3333H29.2503Z",fill:"var(--gray-200)"},null,-1)])])}const tan=ve(Xsn,[["render",ean]]),nan={emptyEditorText:"Select any email element to configure it"},oan={emptyEditorText:"Выберите любой<br>элемент письма для<br>его настройки"},ran=ht({en:nan,ru:oan}),ian={class:"bootstrap-styles row g-0 align-self-center"},san={class:"bootstrap-styles col-12"},aan={class:"bootstrap-styles mb-7 text-center"},lan={class:"bootstrap-styles text-center mx-13 text-gray-600"},can=re({__name:"EmptyEditor",props:{deps:{}},setup(t){const e={emptyEditorText:ran({localeKey:t.deps.localeKey}).emptyEditorText};return(n,o)=>(E(),R("div",ian,[b("div",san,[b("div",aan,[b("i",null,[I(tan)])]),Ke(b("div",lan,null,512),[[N(iH),e.emptyEditorText]])])]))}}),BR={element:t=>t!==void 0&&t.Discriminator==="selectedElement",component:t=>t!==void 0&&t.Discriminator==="selectedComponent"},Vpe=(t,e)=>{const n=t.splice(e,1)[0];if(n===void 0)throw new Error(`Element at index ${e} does not exist`);return n},Wpe=(t,e,n)=>{t.splice(e,0,n)},uan=t=>{const e=Vpe(t.state.draggableEmailComponents,t.event.oldIndex);Wpe(t.state.draggableEmailComponents,t.event.newIndex,e),BR.component(t.state.selected)&&(t.state.selected.index=t.event.newIndex)},dan=t=>{t.state.selected=void 0,Vpe(t.state.draggableEmailComponents,t.event.componentIndex)},han=t=>{$pe(t.state.deviceMode)&&Jw(t.state.draggableEmailComponents,[...t.event.Path,"Width"],t.event.Width)},pan=t=>{Jw(t.state.draggableEmailComponents,[...t.event.Path,"AdjustedWidth"],t.event.AdjustedWidth),Jw(t.state.draggableEmailComponents,[...t.event.Path,"AdjustedHeight"],t.event.AdjustedHeight)},man=t=>{Jw(t.state.draggableEmailComponents,[...t.event.Path,"OriginalWidth"],t.event.OriginalWidth),Jw(t.state.draggableEmailComponents,[...t.event.Path,"OriginalHeight"],t.event.OriginalHeight)};function fan(t){return Math.random().toString(36).substr(2,9)+":"+t}const Hpe=t=>({_id:fan(1),Component:t}),gan=t=>{const e=t.state.draggableEmailComponents[t.event.componentIndex];if(!e)return;const n=e.Component,o=Hpe(JSON.parse(JSON.stringify(n)));Wpe(t.state.draggableEmailComponents,t.event.componentIndex,Rt(o).value)},qke=t=>{const e=Hpe(JSON.parse(JSON.stringify(t.event.component)));Wpe(t.state.draggableEmailComponents,t.event.index,Rt(e).value)},yan=t=>({Subject:t.subject,Preheader:t.preheader,Theme:t.theme,Components:t.draggableComponents.map(e=>e.Component)}),Can=t=>{const e=yan({subject:t.state.subject,preheader:t.state.preheader,theme:t.state.theme,draggableComponents:t.state.draggableEmailComponents}),n=JSON.stringify(e,null,4);navigator.clipboard.writeText(n),console.info(n)},ban={class:"bootstrap-styles template flex-shrink-1"},van={class:"bootstrap-styles preview w-100 h-100 d-flex justify-content-between bg-gray-300"},wan={class:"bootstrap-styles row g-0 justify-content-between w-100 flex-nowrap"},San={class:"bootstrap-styles pt-7 position-relative flex-shrink-1 w-100 overflow-hidden"},xan={class:"bootstrap-styles preview__templates d-flex justify-content-center overflow-auto"},Tan={class:"bootstrap-styles wrapper mx-5 position-relative w-100"},kan={class:"bootstrap-styles rounded-2 bg-white"},Fan={class:"bootstrap-styles d-flex align-items-start justify-content-center pe-14 pt-11 bg-white h-100"},Ean={key:0,class:"bootstrap-styles h-100 w-100"},Lan=re({__name:"WysiwygTemplateEditor",props:{deps:{}},emits:["exit","templateReset"],setup(t,{emit:e}){Cd(A=>({v57a6552c:d.value,v1b00fb77:h.value,v64dc725c:u.value.Title.fontWeight,v47a38b48:u.value.Title.fontFamily,ec05b8e4:u.value.Title.color,v5f0991f2:u.value.Title.textDecoration,v6628614d:u.value.Title.fontStyle,v203605d6:p.value,v0331acbe:m.value,v790da69c:u.value.Heading.fontWeight,b37f74c4:u.value.Heading.fontFamily,v9ec26910:u.value.Heading.color,v51753148:u.value.Heading.textDecoration,dafff792:u.value.Heading.fontStyle,v8417f124:f.value,v24ab2539:g.value,v6731c374:u.value.SubHeading.fontWeight,v49f8dc60:u.value.SubHeading.fontFamily,c1a0f914:u.value.SubHeading.color,b4bed1ec:u.value.SubHeading.textDecoration,v4c4ee596:u.value.SubHeading.fontStyle,v1f135fdc:C.value,v8953cbb2:v.value,v1ee9a02c:u.value.LargeText.fontWeight,v01b0b918:u.value.LargeText.fontFamily,bd82d884:u.value.LargeText.color,v5fa9507c:u.value.LargeText.textDecoration,v21d6397d:u.value.LargeText.fontStyle,v14c8b080:w.value,v18f9d1cb:S.value,v068eadbc:u.value.NormalText.fontWeight,v41007be4:u.value.NormalText.fontFamily,v22df4908:u.value.NormalText.color,a67e1490:u.value.NormalText.textDecoration,v63b18c72:u.value.NormalText.fontStyle,v2b1c2c1d:x.value,v2f464bb0:F.value,v0ddffa0b:u.value.DescriptionText.fontWeight,v1eb1da12:u.value.DescriptionText.fontFamily,v42e14a7f:u.value.DescriptionText.color,v4693aa21:u.value.DescriptionText.textDecoration,v31cda7be:u.value.DescriptionText.fontStyle,a5eb6674:_.value,b17516de:D.value,v46df90dc:u.value.Link.fontWeight,v29a6a9c8:u.value.Link.fontFamily,b5be15e4:u.value.Link.color,v35597072:u.value.Link.textDecoration,v7ff11a66:u.value.Link.fontStyle,v6074e604:B.value,v083186c9:$.value,v4c673a64:u.value.Button.fontWeight,v2f2e5350:u.value.Button.fontFamily,v957112f4:u.value.Button.color,v746115fa:u.value.Button.textDecoration,v6da07845:u.value.Button.fontStyle}));const n=t,o=Le({isLoaded:!1,refreshKey:Math.random().toString(36).slice(2),preheader:n.deps.template.Preheader,subject:n.deps.template.Subject,theme:n.deps.template.Theme,draggableEmailComponents:n.deps.template.Components.map(A=>Hpe(A)),componentLibrary:[],selected:void 0,deviceMode:"desktop",themeLibrary:[],templateThemeSaveState:"NoChanges"}),r=e,i=async()=>(o.isLoaded=!1,n.deps.getComponentLibrary().then(A=>{o.isLoaded=!0,o.componentLibrary=Rt(A).value})),s=async()=>n.deps.getThemeLibrary().then(A=>{o.themeLibrary=Rt(A).value}),a=async A=>{o.templateThemeSaveState="Saving";try{await n.deps.asideMenuDeps.themeLibraryDeps.customThemeLibraryDeps.addThemeSectionItemModalWindowDeps.addThemeSectionItem({sectionItemName:A.sectionItemName,parentSectionId:A.sectionId,theme:o.theme})==="Success"?(o.templateThemeSaveState="NoChanges",await s()):o.templateThemeSaveState="Error"}catch{o.templateThemeSaveState="Error"}},l=A=>{o.subject=A.subject,o.preheader=A.preheader},c=A=>{A.preventDefault(),A.returnValue=""};window.addEventListener("beforeunload",c),Tg(()=>{window.removeEventListener("beforeunload",c)}),Promise.all([i(),s()]).then(([])=>{o.isLoaded=!0});const u=ne(()=>{const{FontFamily:A,FontSettingsPresets:L,Colors:M}=o.theme;return{Title:Hl({fontFamily:A,themeFontSettings:L.Title,themeColor:M.TitleColor}),Heading:Hl({fontFamily:A,themeFontSettings:L.Heading,themeColor:M.HeadingColor}),SubHeading:Hl({fontFamily:A,themeFontSettings:L.SubHeading,themeColor:M.SubHeadingColor}),LargeText:Hl({fontFamily:A,themeFontSettings:L.LargeText,themeColor:M.LargeTextColor}),NormalText:Hl({fontFamily:A,themeFontSettings:L.NormalText,themeColor:M.NormalTextColor}),DescriptionText:Hl({fontFamily:A,themeFontSettings:L.DescriptionText,themeColor:M.DescriptionTextColor}),Link:Hl({fontFamily:A,themeFontSettings:L.Link,themeColor:M.LinkColor}),Button:Hl({fontFamily:A,themeFontSettings:L.Button,themeColor:M.ButtonTextColor})}}),d=ne(()=>u.value.Title.fontSize+"px"),h=ne(()=>u.value.Title.lineHeight+"px"),p=ne(()=>u.value.Heading.fontSize+"px"),m=ne(()=>u.value.Heading.lineHeight+"px"),f=ne(()=>u.value.SubHeading.fontSize+"px"),g=ne(()=>u.value.SubHeading.lineHeight+"px"),C=ne(()=>u.value.LargeText.fontSize+"px"),v=ne(()=>u.value.LargeText.lineHeight+"px"),w=ne(()=>u.value.NormalText.fontSize+"px"),S=ne(()=>u.value.NormalText.lineHeight+"px"),x=ne(()=>u.value.DescriptionText.fontSize+"px"),F=ne(()=>u.value.DescriptionText.lineHeight+"px"),_=ne(()=>u.value.Link.fontSize+"px"),D=ne(()=>u.value.Link.lineHeight+"px"),B=ne(()=>u.value.Button.fontSize+"px"),$=ne(()=>u.value.Button.lineHeight+"px");return(A,L)=>(E(),R("div",{key:o.refreshKey,class:"bootstrap-styles container-fluid d-flex p-0 row g-0 vh-100 flex-nowrap",onMousedown:L[47]||(L[47]=()=>{o.selected=void 0})},[I(cYt,{deps:n.deps.asideMenuDeps,theme:o.theme,componentLibrary:o.componentLibrary,themeLibrary:o.themeLibrary,componentLibrarySectionUpdated:o.isLoaded,themeTemplateSaveState:o.templateThemeSaveState,onExit:L[0]||(L[0]=M=>r("exit")),onComponentLibrarySectionItemRemoved:L[1]||(L[1]=M=>i()),onComponentLibrarySectionCreated:L[2]||(L[2]=M=>i()),"onUpdate:setThemeBodyWidth":L[3]||(L[3]=M=>{o.theme.BodyWidth=M,o.templateThemeSaveState="HasChanges"}),"onUpdate:setThemeFont":L[4]||(L[4]=M=>{o.theme.FontFamily=M,o.templateThemeSaveState="HasChanges"}),"onUpdate:themeBorderRadiusChanged":L[5]||(L[5]=M=>{o.theme.BorderRadius.TopLeft=M,o.theme.BorderRadius.TopRight=M,o.theme.BorderRadius.BottomLeft=M,o.theme.BorderRadius.BottomRight=M,o.templateThemeSaveState="HasChanges"}),"onUpdate:themeBorderRadiusCardChanged":L[6]||(L[6]=M=>{o.theme.BorderRadiusCard=M,o.templateThemeSaveState="HasChanges"}),"onUpdate:themeBorderRadiusButtonChanged":L[7]||(L[7]=M=>{o.theme.BorderRadiusButton=M,o.templateThemeSaveState="HasChanges"}),"onUpdate:themeBorderRadiusBannerChanged":L[8]||(L[8]=M=>{o.theme.BorderRadiusBanner=M,o.templateThemeSaveState="HasChanges"}),"onUpdate:themeColorsChanged":L[9]||(L[9]=M=>{o.theme.Colors=M,o.templateThemeSaveState="HasChanges"}),"onUpdate:themeFontSettingsChanged":L[10]||(L[10]=M=>{o.theme.FontSettingsPresets=M,o.templateThemeSaveState="HasChanges"}),"onUpdate:themeComponentPaddingsChanged":L[11]||(L[11]=M=>{o.theme.ComponentPaddings=M,o.templateThemeSaveState="HasChanges"}),"onUpdate:themeBodyPaddingsChanged":L[12]||(L[12]=M=>{o.theme.BodyPaddings=M,o.templateThemeSaveState="HasChanges"}),"onUpdate:themeButtonPaddingsChanged":L[13]||(L[13]=M=>{o.theme.ButtonPaddings=M,o.templateThemeSaveState="HasChanges"}),onSelectedThemeSettings:L[14]||(L[14]=M=>{o.theme={...o.theme,...M},o.templateThemeSaveState="HasChanges"}),onThemeSectionItemRemoved:L[15]||(L[15]=M=>s()),onOnCustomComponentDraggedFromLibrary:L[16]||(L[16]=M=>{N(qke)({state:o,event:M})}),onOnDefaultComponentDraggedFromLibrary:L[17]||(L[17]=M=>{N(qke)({state:o,event:M})}),onOnThemeLibrarySectionItemUpdated:L[18]||(L[18]=M=>s()),onOnThemeLibrarySectionRemoved:L[19]||(L[19]=M=>s()),onOnThemeLibrarySectionAdded:L[20]||(L[20]=M=>s()),onComponentLibrarySectionItemUpdated:L[21]||(L[21]=M=>i()),onOnComponentLibrarySectionRemoved:L[22]||(L[22]=M=>i()),onOnResponsiveWidthChanged:L[23]||(L[23]=M=>{o.theme.IsResponsiveWidth=M,o.templateThemeSaveState="HasChanges"}),onOnSaveTemplateTheme:L[24]||(L[24]=M=>a(M))},null,8,["deps","theme","componentLibrary","themeLibrary","componentLibrarySectionUpdated","themeTemplateSaveState"]),b("div",ban,[b("section",van,[b("div",wan,[b("div",San,[I(TZt,{deps:n.deps.topMenuDeps,deviceMode:o.deviceMode,isResponsiveWidth:o.theme.IsResponsiveWidth,subject:o.subject,preheader:o.preheader,emailTemplate:{Preheader:o.preheader,Subject:o.subject,Theme:o.theme,Components:o.draggableEmailComponents.map(M=>M.Component)},onOnDeviceModeChanged:L[25]||(L[25]=M=>o.deviceMode=M.device),onOnAppSettingsUpdated:L[26]||(L[26]=()=>{o.refreshKey=Math.random().toString(36).slice(2)}),onOnTemplateReset:L[27]||(L[27]=()=>r("templateReset")),onOnPreheaderSubjectUpdated:L[28]||(L[28]=M=>l(M)),onOnDblClick:L[29]||(L[29]=()=>N(Can)({state:o}))},null,8,["deps","deviceMode","isResponsiveWidth","subject","preheader","emailTemplate"]),b("div",xan,[b("div",Tan,[b("div",kan,[I(AQt,{deps:t.deps.emailTemplateDeps,theme:o.theme,preheader:o.preheader,draggableEmailComponents:o.draggableEmailComponents,deviceMode:o.deviceMode,selectedComponentIndex:N(BR).component(o.selected)?o.selected.index:void 0,selectedElementPath:N(BR).element(o.selected)?o.selected.path:void 0,isComponentLibraryEmpty:o.componentLibrary.length===0,onOnComponentAddedToLibrary:L[30]||(L[30]=M=>i()),onOnEmailComponentClicked:L[31]||(L[31]=M=>{o.selected={Discriminator:"selectedComponent",index:M.index}}),onOnElementClicked:L[32]||(L[32]=M=>{o.selected={Discriminator:"selectedElement",path:M.path}}),onEmailComponentUpdated:L[33]||(L[33]=M=>{const H=o.draggableEmailComponents[M.index];H&&(H.Component=Rt(M.emailComponent).value)}),onOnRemoveComponentBtnClicked:L[34]||(L[34]=M=>{N(dan)({state:o,event:M})}),onOnDuplicateComponentBtnClicked:L[35]||(L[35]=M=>{N(gan)({state:o,event:M})}),onOnEmailComponentMoved:L[36]||(L[36]=M=>{N(uan)({state:o,event:M})}),onOnImageOriginalSizeAdjusted:L[37]||(L[37]=M=>N(man)({state:o,event:M})),onOnImageSizeAdjusted:L[38]||(L[38]=M=>N(pan)({state:o,event:M})),onOnColumnWidthAdjusted:L[39]||(L[39]=M=>N(han)({state:o,event:M})),onOnElementUpdatedEvent:L[40]||(L[40]=M=>{N(Jw)(o.draggableEmailComponents,M.path,M.element)}),onOnElementRemoved:L[41]||(L[41]=M=>{N(Kke)(o.draggableEmailComponents,M),o.selected=void 0})},null,8,["deps","theme","preheader","draggableEmailComponents","deviceMode","selectedComponentIndex","selectedElementPath","isComponentLibraryEmpty"])])])])]),b("div",{class:"bootstrap-styles email-template-editor bg-white",onMousedown:L[46]||(L[46]=Nt(()=>{},["stop"]))},[b("div",Fan,[o.selected!==void 0?(E(),R("div",Ean,[N(BR).element(o.selected)?(E(),Q(Zin,{key:0,deps:n.deps.elementsEditorDeps,element:N(RQt)(o.draggableEmailComponents,o.selected.path.slice(0,-1)),path:o.selected.path.slice(0,-1),theme:o.theme,onElementUpdatedEvent:L[42]||(L[42]=M=>{N(Jw)(o.draggableEmailComponents,M.path,M.element)}),onRemoveElement:L[43]||(L[43]=M=>{N(Kke)(o.draggableEmailComponents,M.path),o.selected=void 0})},null,8,["deps","element","path","theme"])):oe("",!0),N(BR).component(o.selected)?(E(),Q(Zsn,{key:1,deps:t.deps.emailComponentEditorDeps,emailComponent:o.draggableEmailComponents[o.selected.index].Component,index:o.selected.index,themeColors:o.theme.Colors,onEmailComponentUpdated:L[44]||(L[44]=M=>{const H=o.draggableEmailComponents[M.index];H&&(H.Component=Rt(M.emailComponent).value)}),onEmailComponentRemoved:L[45]||(L[45]=M=>{N(Vpe)(o.draggableEmailComponents,M.index),o.selected=void 0})},null,8,["deps","emailComponent","index","themeColors"])):oe("",!0)])):(E(),Q(can,{key:1,deps:n.deps.emptyEditorDeps},null,8,["deps"]))])],32)])])])],32))}}),_an={title:"Reset template",applyButton:"Reset",cancelButton:"Cancel",description:"Resetting the template will delete all current settings and content. This action cannot be undone."},Aan={title:"Сброс шаблона",applyButton:"Сбросить",cancelButton:"Отмена",description:"Сброс шаблона приведёт к удалению всех текущих настроек и контента. Это действие нельзя отменить."},Ran=ht({en:_an,ru:Aan}),Dan={class:"bootstrap-styles px-11 py-7 text-start"},Ban=["value"],Nan=re({__name:"WysiwygApp",props:{deps:{}},emits:["exit","templateReset"],setup(t,{emit:e}){const n=t,o=Le({resetTemplateSubmitModalWindow:!1}),r=Ran({localeKey:n.deps.localeKey}),i=e;return(s,a)=>(E(),R(Se,null,[I(Lan,{deps:n.deps.wysiwygTemplateEditorDeps,onTemplateReset:a[0]||(a[0]=()=>o.resetTemplateSubmitModalWindow=!0),onExit:a[1]||(a[1]=l=>i("exit"))},null,8,["deps"]),(E(),Q(yo,{to:"body",defer:""},[o.resetTemplateSubmitModalWindow?(E(),Q(bd,{key:0,class:"remove-element-confirm-modal-window",headerText:N(r).title,onClose:a[4]||(a[4]=()=>o.resetTemplateSubmitModalWindow=!1)},{body:Bt(()=>[b("div",Dan,W(N(r).description),1)]),"footer-actions":Bt(()=>[b("button",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 me-3 rounded-2 bg-blue-selected button__hover-blue-100 text-color-selected",onClick:a[2]||(a[2]=Nt(l=>o.resetTemplateSubmitModalWindow=!1,["stop"]))},W(N(r).cancelButton),1),b("input",{class:"modal-footer__button bootstrap-styles d-flex justify-content-center align-center py-1 px-3 rounded-2 text-white cursor-pointer position-relative remove-element-confirm__button",type:"button",value:N(r).applyButton,onClick:a[3]||(a[3]=Nt(()=>{o.resetTemplateSubmitModalWindow=!1,i("templateReset")},["stop"]))},null,8,Ban)]),_:1},8,["headerText"])):oe("",!0)]))],64))}}),Ian=t=>{const e=document.createElement("form");e.method=t.method,e.action=t.action;for(const[n,o]of t.formData.entries()){if(o instanceof File)continue;const r=document.createElement("input");r.setAttribute("type","text"),r.setAttribute("name",n),r.setAttribute("value",o),e.appendChild(r)}return e},Man={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",tableGroupCollapse:"mdi-chevron-down",tableGroupExpand:"mdi-chevron-right",eyeDropper:"mdi-eyedropper",upload:"mdi-cloud-upload",color:"mdi-palette",command:"mdi-apple-keyboard-command",ctrl:"mdi-apple-keyboard-control",space:"mdi-keyboard-space",shift:"mdi-apple-keyboard-shift",alt:"mdi-apple-keyboard-option",enter:"mdi-keyboard-return",arrowup:"mdi-arrow-up",arrowdown:"mdi-arrow-down",arrowleft:"mdi-arrow-left",arrowright:"mdi-arrow-right",backspace:"mdi-backspace",play:"mdi-play",pause:"mdi-pause",fullscreen:"mdi-fullscreen",fullscreenExit:"mdi-fullscreen-exit",volumeHigh:"mdi-volume-high",volumeMedium:"mdi-volume-medium",volumeLow:"mdi-volume-low",volumeOff:"mdi-volume-variant-off"},$an={component:t=>yl(f7e,{...t,class:"mdi"})};function Oan(){return{svg:{component:m7e},class:{component:f7e}}}function Pan(t){const e=Oan(),n=t?.defaultSet??"mdi";return n==="mdi"&&!e.mdi&&(e.mdi=$an),Zl({defaultSet:n,sets:e,aliases:{...Man,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},t)}function X9e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:e,...n}=t,o=Zl(e,n),{aliases:r={},components:i={},directives:s={}}=o,a=BF();return a.run(()=>{const l=NTt(o.defaults),c=ZTt(o.display,o.ssr),u=mkt(o.theme),d=Pan(o.icons),h=tkt(o.locale),p=$Bt(o.date,h),m=WBt(o.goTo,h);function f(C){for(const w in s)C.directive(w,s[w]);for(const w in i)C.component(w,i[w]);for(const w in r)C.component(w,am({...r[w],name:w,aliasName:r[w].name}));const v=BF();if(v.run(()=>{u.install(C)}),C.onUnmount(()=>v.stop()),C.provide(PF,l),C.provide(tSe,c),C.provide(VN,u),C.provide(Bre,d),C.provide(rW,h),C.provide(MBt,p.options),C.provide(Gxe,p.instance),C.provide(PBt,m),Cl&&o.ssr)if(C.$nuxt)C.$nuxt.hook("app:suspense:resolve",()=>{c.update()});else{const{mount:w}=C;C.mount=function(){const S=w(...arguments);return gl(()=>c.update()),C.mount=w,S}}C.mixin({computed:{$vuetify(){return Le({defaults:Dx.call(this,PF),display:Dx.call(this,tSe),theme:Dx.call(this,VN),icons:Dx.call(this,Bre),locale:Dx.call(this,rW),date:Dx.call(this,Gxe)})}}})}function g(){a.stop()}return{install:f,unmount:g,defaults:l,display:c,theme:u,icons:d,locale:h,date:p,goTo:m}})}const Van="3.11.3";X9e.version=Van;function Dx(t){const e=this.$,n=e.parent?.provides??e.vnode.appContext?.provides;if(n&&t in n)return n[t]}const Wan=X9e({theme:!1,directives:{ClickOutside:Lg}}),{entries:Q9e,setPrototypeOf:Jke,isFrozen:Han,getPrototypeOf:zan,getOwnPropertyDescriptor:jan}=Object;let{freeze:Ba,seal:Ju,create:tie}=Object,{apply:nie,construct:oie}=typeof Reflect<"u"&&Reflect;Ba||(Ba=function(t){return t});Ju||(Ju=function(t){return t});nie||(nie=function(t,e){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return t.apply(e,o)});oie||(oie=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return new t(...n)});const pO=Na(Array.prototype.forEach),Kan=Na(Array.prototype.lastIndexOf),Gke=Na(Array.prototype.pop),eA=Na(Array.prototype.push),Uan=Na(Array.prototype.splice),H6=Na(String.prototype.toLowerCase),PY=Na(String.prototype.toString),VY=Na(String.prototype.match),tA=Na(String.prototype.replace),qan=Na(String.prototype.indexOf),Jan=Na(String.prototype.trim),Od=Na(Object.prototype.hasOwnProperty),As=Na(RegExp.prototype.test),nA=Gan(TypeError);function Na(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return nie(t,e,o)}}function Gan(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return oie(t,n)}}function Bn(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:H6;Jke&&Jke(t,null);let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const i=n(r);i!==r&&(Han(e)||(e[o]=i),r=i)}t[r]=!0}return t}function Yan(t){for(let e=0;e<t.length;e++)Od(t,e)||(t[e]=null);return t}function zh(t){const e=tie(null);for(const[n,o]of Q9e(t))Od(t,n)&&(Array.isArray(o)?e[n]=Yan(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=zh(o):e[n]=o);return e}function oA(t,e){for(;t!==null;){const o=jan(t,e);if(o){if(o.get)return Na(o.get);if(typeof o.value=="function")return Na(o.value)}t=zan(t)}function n(){return null}return n}const Yke=Ba(["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","search","section","select","shadow","slot","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"]),WY=Ba(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),HY=Ba(["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"]),Zan=Ba(["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"]),zY=Ba(["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"]),Xan=Ba(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Zke=Ba(["#text"]),Xke=Ba(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),jY=Ba(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","mask-type","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","slope","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","tablevalues","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"]),Qke=Ba(["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"]),mO=Ba(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Qan=Ju(/\{\{[\w\W]*|[\w\W]*\}\}/gm),eln=Ju(/<%[\w\W]*|[\w\W]*%>/gm),tln=Ju(/\$\{[\w\W]*/gm),nln=Ju(/^data-[\-\w.\u00B7-\uFFFF]+$/),oln=Ju(/^aria-[\-\w]+$/),eKe=Ju(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),rln=Ju(/^(?:\w+script|data):/i),iln=Ju(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),tKe=Ju(/^html$/i),sln=Ju(/^[a-z][.\w]*(-[.\w]+)+$/i);var eFe=Object.freeze({__proto__:null,ARIA_ATTR:oln,ATTR_WHITESPACE:iln,CUSTOM_ELEMENT:sln,DATA_ATTR:nln,DOCTYPE_NAME:tKe,ERB_EXPR:eln,IS_ALLOWED_URI:eKe,IS_SCRIPT_OR_DATA:rln,MUSTACHE_EXPR:Qan,TMPLIT_EXPR:tln});const rA={element:1,text:3,progressingInstruction:7,comment:8,document:9},aln=function(){return typeof window>"u"?null:window},lln=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(n=e.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},tFe=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function nKe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:aln();const e=y=>nKe(y);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==rA.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const o=n,r=o.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:c,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:p}=t,m=l.prototype,f=oA(m,"cloneNode"),g=oA(m,"remove"),C=oA(m,"nextSibling"),v=oA(m,"childNodes"),w=oA(m,"parentNode");if(typeof s=="function"){const y=n.createElement("template");y.content&&y.content.ownerDocument&&(n=y.content.ownerDocument)}let S,x="";const{implementation:F,createNodeIterator:_,createDocumentFragment:D,getElementsByTagName:B}=n,{importNode:$}=o;let A=tFe();e.isSupported=typeof Q9e=="function"&&typeof w=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:M,TMPLIT_EXPR:H,DATA_ATTR:q,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:we,CUSTOM_ELEMENT:Z}=eFe;let{IS_ALLOWED_URI:me}=eFe,V=null;const de=Bn({},[...Yke,...WY,...HY,...zY,...Zke]);let P=null;const Y=Bn({},[...Xke,...jY,...Qke,...mO]);let O=Object.seal(tie(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}})),Ce=null,he=null;const ee=Object.seal(tie(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ft=!0,wt=!0,St=!1,J=!0,U=!1,ie=!0,se=!1,ue=!1,pe=!1,fe=!1,be=!1,te=!1,le=!0,De=!1;const Ee="user-content-";let ke=!0,xe=!1,Fe={},ge=null;const rt=Bn({},["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 fn=null;const gn=Bn({},["audio","video","img","source","image","track"]);let tn=null;const Hn=Bn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qt="http://www.w3.org/1998/Math/MathML",en="http://www.w3.org/2000/svg",Be="http://www.w3.org/1999/xhtml";let mt=Be,_n=!1,An=null;const Ni=Bn({},[qt,en,Be],PY);let un=Bn({},["mi","mo","mn","ms","mtext"]),dn=Bn({},["annotation-xml"]);const Ii=Bn({},["title","style","font","a","script"]);let It=null;const Mi=["application/xhtml+xml","text/html"],$i="text/html";let ae=null,_t=null;const Oi=n.createElement("form"),Ro=function(y){return y instanceof RegExp||y instanceof Function},Qn=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(_t&&_t===y)){if((!y||typeof y!="object")&&(y={}),y=zh(y),It=Mi.indexOf(y.PARSER_MEDIA_TYPE)===-1?$i:y.PARSER_MEDIA_TYPE,ae=It==="application/xhtml+xml"?PY:H6,V=Od(y,"ALLOWED_TAGS")?Bn({},y.ALLOWED_TAGS,ae):de,P=Od(y,"ALLOWED_ATTR")?Bn({},y.ALLOWED_ATTR,ae):Y,An=Od(y,"ALLOWED_NAMESPACES")?Bn({},y.ALLOWED_NAMESPACES,PY):Ni,tn=Od(y,"ADD_URI_SAFE_ATTR")?Bn(zh(Hn),y.ADD_URI_SAFE_ATTR,ae):Hn,fn=Od(y,"ADD_DATA_URI_TAGS")?Bn(zh(gn),y.ADD_DATA_URI_TAGS,ae):gn,ge=Od(y,"FORBID_CONTENTS")?Bn({},y.FORBID_CONTENTS,ae):rt,Ce=Od(y,"FORBID_TAGS")?Bn({},y.FORBID_TAGS,ae):zh({}),he=Od(y,"FORBID_ATTR")?Bn({},y.FORBID_ATTR,ae):zh({}),Fe=Od(y,"USE_PROFILES")?y.USE_PROFILES:!1,ft=y.ALLOW_ARIA_ATTR!==!1,wt=y.ALLOW_DATA_ATTR!==!1,St=y.ALLOW_UNKNOWN_PROTOCOLS||!1,J=y.ALLOW_SELF_CLOSE_IN_ATTR!==!1,U=y.SAFE_FOR_TEMPLATES||!1,ie=y.SAFE_FOR_XML!==!1,se=y.WHOLE_DOCUMENT||!1,fe=y.RETURN_DOM||!1,be=y.RETURN_DOM_FRAGMENT||!1,te=y.RETURN_TRUSTED_TYPE||!1,pe=y.FORCE_BODY||!1,le=y.SANITIZE_DOM!==!1,De=y.SANITIZE_NAMED_PROPS||!1,ke=y.KEEP_CONTENT!==!1,xe=y.IN_PLACE||!1,me=y.ALLOWED_URI_REGEXP||eKe,mt=y.NAMESPACE||Be,un=y.MATHML_TEXT_INTEGRATION_POINTS||un,dn=y.HTML_INTEGRATION_POINTS||dn,O=y.CUSTOM_ELEMENT_HANDLING||{},y.CUSTOM_ELEMENT_HANDLING&&Ro(y.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(O.tagNameCheck=y.CUSTOM_ELEMENT_HANDLING.tagNameCheck),y.CUSTOM_ELEMENT_HANDLING&&Ro(y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(O.attributeNameCheck=y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),y.CUSTOM_ELEMENT_HANDLING&&typeof y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(O.allowCustomizedBuiltInElements=y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),U&&(wt=!1),be&&(fe=!0),Fe&&(V=Bn({},Zke),P=[],Fe.html===!0&&(Bn(V,Yke),Bn(P,Xke)),Fe.svg===!0&&(Bn(V,WY),Bn(P,jY),Bn(P,mO)),Fe.svgFilters===!0&&(Bn(V,HY),Bn(P,jY),Bn(P,mO)),Fe.mathMl===!0&&(Bn(V,zY),Bn(P,Qke),Bn(P,mO))),y.ADD_TAGS&&(typeof y.ADD_TAGS=="function"?ee.tagCheck=y.ADD_TAGS:(V===de&&(V=zh(V)),Bn(V,y.ADD_TAGS,ae))),y.ADD_ATTR&&(typeof y.ADD_ATTR=="function"?ee.attributeCheck=y.ADD_ATTR:(P===Y&&(P=zh(P)),Bn(P,y.ADD_ATTR,ae))),y.ADD_URI_SAFE_ATTR&&Bn(tn,y.ADD_URI_SAFE_ATTR,ae),y.FORBID_CONTENTS&&(ge===rt&&(ge=zh(ge)),Bn(ge,y.FORBID_CONTENTS,ae)),y.ADD_FORBID_CONTENTS&&(ge===rt&&(ge=zh(ge)),Bn(ge,y.ADD_FORBID_CONTENTS,ae)),ke&&(V["#text"]=!0),se&&Bn(V,["html","head","body"]),V.table&&(Bn(V,["tbody"]),delete Ce.tbody),y.TRUSTED_TYPES_POLICY){if(typeof y.TRUSTED_TYPES_POLICY.createHTML!="function")throw nA('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw nA('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=y.TRUSTED_TYPES_POLICY,x=S.createHTML("")}else S===void 0&&(S=lln(p,r)),S!==null&&typeof x=="string"&&(x=S.createHTML(""));Ba&&Ba(y),_t=y}},Do=Bn({},[...WY,...HY,...Zan]),Bo=Bn({},[...zY,...Xan]),Pi=function(y){let T=w(y);(!T||!T.tagName)&&(T={namespaceURI:mt,tagName:"template"});const k=H6(y.tagName),z=H6(T.tagName);return An[y.namespaceURI]?y.namespaceURI===en?T.namespaceURI===Be?k==="svg":T.namespaceURI===qt?k==="svg"&&(z==="annotation-xml"||un[z]):!!Do[k]:y.namespaceURI===qt?T.namespaceURI===Be?k==="math":T.namespaceURI===en?k==="math"&&dn[z]:!!Bo[k]:y.namespaceURI===Be?T.namespaceURI===en&&!dn[z]||T.namespaceURI===qt&&!un[z]?!1:!Bo[k]&&(Ii[k]||!Do[k]):!!(It==="application/xhtml+xml"&&An[y.namespaceURI]):!1},pt=function(y){eA(e.removed,{element:y});try{w(y).removeChild(y)}catch{g(y)}},gt=function(y,T){try{eA(e.removed,{attribute:T.getAttributeNode(y),from:T})}catch{eA(e.removed,{attribute:null,from:T})}if(T.removeAttribute(y),y==="is")if(fe||be)try{pt(T)}catch{}else try{T.setAttribute(y,"")}catch{}},No=function(y){let T=null,k=null;if(pe)y="<remove></remove>"+y;else{const X=VY(y,/^[\r\n\t ]+/);k=X&&X[0]}It==="application/xhtml+xml"&&mt===Be&&(y='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+y+"</body></html>");const z=S?S.createHTML(y):y;if(mt===Be)try{T=new h().parseFromString(z,It)}catch{}if(!T||!T.documentElement){T=F.createDocument(mt,"template",null);try{T.documentElement.innerHTML=_n?x:z}catch{}}const ce=T.body||T.documentElement;return y&&k&&ce.insertBefore(n.createTextNode(k),ce.childNodes[0]||null),mt===Be?B.call(T,se?"html":"body")[0]:se?T.documentElement:ce},Io=function(y){return _.call(y.ownerDocument||y,y,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},eo=function(y){return y instanceof d&&(typeof y.nodeName!="string"||typeof y.textContent!="string"||typeof y.removeChild!="function"||!(y.attributes instanceof u)||typeof y.removeAttribute!="function"||typeof y.setAttribute!="function"||typeof y.namespaceURI!="string"||typeof y.insertBefore!="function"||typeof y.hasChildNodes!="function")},Mo=function(y){return typeof a=="function"&&y instanceof a};function it(y,T,k){pO(y,z=>{z.call(e,T,k,_t)})}const $o=function(y){let T=null;if(it(A.beforeSanitizeElements,y,null),eo(y))return pt(y),!0;const k=ae(y.nodeName);if(it(A.uponSanitizeElement,y,{tagName:k,allowedTags:V}),ie&&y.hasChildNodes()&&!Mo(y.firstElementChild)&&As(/<[/\w!]/g,y.innerHTML)&&As(/<[/\w!]/g,y.textContent)||y.nodeType===rA.progressingInstruction||ie&&y.nodeType===rA.comment&&As(/<[/\w]/g,y.data))return pt(y),!0;if(!(ee.tagCheck instanceof Function&&ee.tagCheck(k))&&(!V[k]||Ce[k])){if(!Ce[k]&&Po(k)&&(O.tagNameCheck instanceof RegExp&&As(O.tagNameCheck,k)||O.tagNameCheck instanceof Function&&O.tagNameCheck(k)))return!1;if(ke&&!ge[k]){const z=w(y)||y.parentNode,ce=v(y)||y.childNodes;if(ce&&z){const X=ce.length;for(let Ne=X-1;Ne>=0;--Ne){const Ae=f(ce[Ne],!0);Ae.__removalCount=(y.__removalCount||0)+1,z.insertBefore(Ae,C(y))}}}return pt(y),!0}return y instanceof l&&!Pi(y)||(k==="noscript"||k==="noembed"||k==="noframes")&&As(/<\/no(script|embed|frames)/i,y.innerHTML)?(pt(y),!0):(U&&y.nodeType===rA.text&&(T=y.textContent,pO([L,M,H],z=>{T=tA(T,z," ")}),y.textContent!==T&&(eA(e.removed,{element:y.cloneNode()}),y.textContent=T)),it(A.afterSanitizeElements,y,null),!1)},Oo=function(y,T,k){if(le&&(T==="id"||T==="name")&&(k in n||k in Oi))return!1;if(!(wt&&!he[T]&&As(q,T))&&!(ft&&As(j,T))&&!(ee.attributeCheck instanceof Function&&ee.attributeCheck(T,y))){if(!P[T]||he[T]){if(!(Po(y)&&(O.tagNameCheck instanceof RegExp&&As(O.tagNameCheck,y)||O.tagNameCheck instanceof Function&&O.tagNameCheck(y))&&(O.attributeNameCheck instanceof RegExp&&As(O.attributeNameCheck,T)||O.attributeNameCheck instanceof Function&&O.attributeNameCheck(T,y))||T==="is"&&O.allowCustomizedBuiltInElements&&(O.tagNameCheck instanceof RegExp&&As(O.tagNameCheck,k)||O.tagNameCheck instanceof Function&&O.tagNameCheck(k))))return!1}else if(!tn[T]&&!As(me,tA(k,we,""))&&!((T==="src"||T==="xlink:href"||T==="href")&&y!=="script"&&qan(k,"data:")===0&&fn[y])&&!(St&&!As(K,tA(k,we,"")))&&k)return!1}return!0},Po=function(y){return y!=="annotation-xml"&&VY(y,Z)},Vo=function(y){it(A.beforeSanitizeAttributes,y,null);const{attributes:T}=y;if(!T||eo(y))return;const k={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:P,forceKeepAttr:void 0};let z=T.length;for(;z--;){const ce=T[z],{name:X,namespaceURI:Ne,value:Ae}=ce,Re=ae(X),Rn=Ae;let ye=X==="value"?Rn:Jan(Rn);if(k.attrName=Re,k.attrValue=ye,k.keepAttr=!0,k.forceKeepAttr=void 0,it(A.uponSanitizeAttribute,y,k),ye=k.attrValue,De&&(Re==="id"||Re==="name")&&(gt(X,y),ye=Ee+ye),ie&&As(/((--!?|])>)|<\/(style|title|textarea)/i,ye)){gt(X,y);continue}if(Re==="attributename"&&VY(ye,"href")){gt(X,y);continue}if(k.forceKeepAttr)continue;if(!k.keepAttr){gt(X,y);continue}if(!J&&As(/\/>/i,ye)){gt(X,y);continue}U&&pO([L,M,H],ii=>{ye=tA(ye,ii," ")});const yn=ae(y.nodeName);if(!Oo(yn,Re,ye)){gt(X,y);continue}if(S&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Ne)switch(p.getAttributeType(yn,Re)){case"TrustedHTML":{ye=S.createHTML(ye);break}case"TrustedScriptURL":{ye=S.createScriptURL(ye);break}}if(ye!==Rn)try{Ne?y.setAttributeNS(Ne,X,ye):y.setAttribute(X,ye),eo(y)?pt(y):Gke(e.removed)}catch{gt(X,y)}}it(A.afterSanitizeAttributes,y,null)},Vi=function y(T){let k=null;const z=Io(T);for(it(A.beforeSanitizeShadowDOM,T,null);k=z.nextNode();)it(A.uponSanitizeShadowNode,k,null),$o(k),Vo(k),k.content instanceof i&&y(k.content);it(A.afterSanitizeShadowDOM,T,null)};return e.sanitize=function(y){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},k=null,z=null,ce=null,X=null;if(_n=!y,_n&&(y="<!-->"),typeof y!="string"&&!Mo(y))if(typeof y.toString=="function"){if(y=y.toString(),typeof y!="string")throw nA("dirty is not a string, aborting")}else throw nA("toString is not a function");if(!e.isSupported)return y;if(ue||Qn(T),e.removed=[],typeof y=="string"&&(xe=!1),xe){if(y.nodeName){const Re=ae(y.nodeName);if(!V[Re]||Ce[Re])throw nA("root node is forbidden and cannot be sanitized in-place")}}else if(y instanceof a)k=No("<!---->"),z=k.ownerDocument.importNode(y,!0),z.nodeType===rA.element&&z.nodeName==="BODY"||z.nodeName==="HTML"?k=z:k.appendChild(z);else{if(!fe&&!U&&!se&&y.indexOf("<")===-1)return S&&te?S.createHTML(y):y;if(k=No(y),!k)return fe?null:te?x:""}k&&pe&&pt(k.firstChild);const Ne=Io(xe?y:k);for(;ce=Ne.nextNode();)$o(ce),Vo(ce),ce.content instanceof i&&Vi(ce.content);if(xe)return y;if(fe){if(be)for(X=D.call(k.ownerDocument);k.firstChild;)X.appendChild(k.firstChild);else X=k;return(P.shadowroot||P.shadowrootmode)&&(X=$.call(o,X,!0)),X}let Ae=se?k.outerHTML:k.innerHTML;return se&&V["!doctype"]&&k.ownerDocument&&k.ownerDocument.doctype&&k.ownerDocument.doctype.name&&As(tKe,k.ownerDocument.doctype.name)&&(Ae="<!DOCTYPE "+k.ownerDocument.doctype.name+`>
|
|
148
148
|
`+Ae),U&&pO([L,M,H],Re=>{Ae=tA(Ae,Re," ")}),S&&te?S.createHTML(Ae):Ae},e.setConfig=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Qn(y),ue=!0},e.clearConfig=function(){_t=null,ue=!1},e.isValidAttribute=function(y,T,k){_t||Qn({});const z=ae(y),ce=ae(T);return Oo(z,ce,k)},e.addHook=function(y,T){typeof T=="function"&&eA(A[y],T)},e.removeHook=function(y,T){if(T!==void 0){const k=Kan(A[y],T);return k===-1?void 0:Uan(A[y],k,1)[0]}return Gke(A[y])},e.removeHooks=function(y){A[y]=[]},e.removeAllHooks=function(){A=tFe()},e}nKe();function Ki(t){this.content=t}Ki.prototype={constructor:Ki,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var o=n&&n!=t?this.remove(n):this,r=o.find(t),i=o.content.slice();return r==-1?i.push(n||t,e):(i[r+1]=e,n&&(i[r]=n)),new Ki(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new Ki(n)},addToStart:function(t,e){return new Ki([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new Ki(n)},addBefore:function(t,e,n){var o=this.remove(e),r=o.content.slice(),i=o.find(t);return r.splice(i==-1?r.length:i,0,e,n),new Ki(r)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=Ki.from(t),t.size?new Ki(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Ki.from(t),t.size?new Ki(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Ki.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};Ki.from=function(t){if(t instanceof Ki)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Ki(e)};function oKe(t,e,n){for(let o=0;;o++){if(o==t.childCount||o==e.childCount)return t.childCount==e.childCount?null:n;let r=t.child(o),i=e.child(o);if(r==i){n+=r.nodeSize;continue}if(!r.sameMarkup(i))return n;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)n++;return n}if(r.content.size||i.content.size){let s=oKe(r.content,i.content,n+1);if(s!=null)return s}n+=r.nodeSize}}function rKe(t,e,n,o){for(let r=t.childCount,i=e.childCount;;){if(r==0||i==0)return r==i?null:{a:n,b:o};let s=t.child(--r),a=e.child(--i),l=s.nodeSize;if(s==a){n-=l,o-=l;continue}if(!s.sameMarkup(a))return{a:n,b:o};if(s.isText&&s.text!=a.text){let c=0,u=Math.min(s.text.length,a.text.length);for(;c<u&&s.text[s.text.length-c-1]==a.text[a.text.length-c-1];)c++,n--,o--;return{a:n,b:o}}if(s.content.size||a.content.size){let c=rKe(s.content,a.content,n-1,o-1);if(c)return c}n-=l,o-=l}}class Ue{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let o=0;o<e.length;o++)this.size+=e[o].nodeSize}nodesBetween(e,n,o,r=0,i){for(let s=0,a=0;a<n;s++){let l=this.content[s],c=a+l.nodeSize;if(c>e&&o(l,r+a,i||null,s)!==!1&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,n-u),o,r+u)}a=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,o,r){let i="",s=!0;return this.nodesBetween(e,n,(a,l)=>{let c=a.isText?a.text.slice(Math.max(e,l)-l,n-l):a.isLeaf?r?typeof r=="function"?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&c||a.isTextblock)&&o&&(s?s=!1:i+=o),i+=c},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,o=e.firstChild,r=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(o)&&(r[r.length-1]=n.withText(n.text+o.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new Ue(r,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let o=[],r=0;if(n>e)for(let i=0,s=0;s<n;i++){let a=this.content[i],l=s+a.nodeSize;l>e&&((s<e||l>n)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,n-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,n-s-1))),o.push(a),r+=a.nodeSize),s=l}return new Ue(o,r)}cutByIndex(e,n){return e==n?Ue.empty:e==0&&n==this.content.length?this:new Ue(this.content.slice(e,n))}replaceChild(e,n){let o=this.content[e];if(o==n)return this;let r=this.content.slice(),i=this.size+n.nodeSize-o.nodeSize;return r[e]=n,new Ue(r,i)}addToStart(e){return new Ue([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Ue(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,o=0;n<this.content.length;n++){let r=this.content[n];e(r,o,n),o+=r.nodeSize}}findDiffStart(e,n=0){return oKe(this,e,n)}findDiffEnd(e,n=this.size,o=e.size){return rKe(this,e,n,o)}findIndex(e){if(e==0)return fO(0,e);if(e==this.size)return fO(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,o=0;;n++){let r=this.child(n),i=o+r.nodeSize;if(i>=e)return i==e?fO(n+1,i):fO(n,o);o=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return Ue.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new Ue(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Ue.empty;let n,o=0;for(let r=0;r<e.length;r++){let i=e[r];o+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(n||(n=e.slice(0,r)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new Ue(n||e,o)}static from(e){if(!e)return Ue.empty;if(e instanceof Ue)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Ue([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Ue.empty=new Ue([],0);const KY={index:0,offset:0};function fO(t,e){return KY.index=t,KY.offset=e,KY}function sH(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let o=0;o<t.length;o++)if(!sH(t[o],e[o]))return!1}else{for(let o in t)if(!(o in e)||!sH(t[o],e[o]))return!1;for(let o in e)if(!(o in t))return!1}return!0}let or=class rie{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,o=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))n||(n=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!o&&i.type.rank>this.type.rank&&(n||(n=e.slice(0,r)),n.push(this),o=!0),n&&n.push(i)}}return n||(n=e.slice()),o||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&sH(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let o=e.marks[n.type];if(!o)throw new RangeError(`There is no mark type ${n.type} in this schema`);let r=o.create(n.attrs);return o.checkAttrs(r.attrs),r}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let o=0;o<e.length;o++)if(!e[o].eq(n[o]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return rie.none;if(e instanceof rie)return[e];let n=e.slice();return n.sort((o,r)=>o.type.rank-r.type.rank),n}};or.none=[];let aH=class extends Error{};class Ct{constructor(e,n,o){this.content=e,this.openStart=n,this.openEnd=o}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let o=sKe(this.content,e+this.openStart,n);return o&&new Ct(o,this.openStart,this.openEnd)}removeBetween(e,n){return new Ct(iKe(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return Ct.empty;let o=n.openStart||0,r=n.openEnd||0;if(typeof o!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Ct(Ue.fromJSON(e,n.content),o,r)}static maxOpen(e,n=!0){let o=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)o++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)r++;return new Ct(e,o,r)}}Ct.empty=new Ct(Ue.empty,0,0);function iKe(t,e,n){let{index:o,offset:r}=t.findIndex(e),i=t.maybeChild(o),{index:s,offset:a}=t.findIndex(n);if(r==e||i.isText){if(a!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(o!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(o,i.copy(iKe(i.content,e-r-1,n-r-1)))}function sKe(t,e,n,o){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r);if(i==e||s.isText)return o&&!o.canReplace(r,r,n)?null:t.cut(0,e).append(n).append(t.cut(e));let a=sKe(s.content,e-i-1,n,s);return a&&t.replaceChild(r,s.copy(a))}function cln(t,e,n){if(n.openStart>t.depth)throw new aH("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new aH("Inconsistent open depths");return aKe(t,e,n,0)}function aKe(t,e,n,o){let r=t.index(o),i=t.node(o);if(r==e.index(o)&&o<t.depth-n.openStart){let s=aKe(t,e,n,o+1);return i.copy(i.content.replaceChild(r,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==o&&e.depth==o){let s=t.parent,a=s.content;return Rv(s,a.cut(0,t.parentOffset).append(n.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=uln(n,t);return Rv(i,cKe(t,s,a,e,o))}else return Rv(i,lH(t,e,o))}function lKe(t,e){if(!e.type.compatibleContent(t.type))throw new aH("Cannot join "+e.type.name+" onto "+t.type.name)}function iie(t,e,n){let o=t.node(n);return lKe(o,e.node(n)),o}function Av(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function B2(t,e,n,o){let r=(e||t).node(n),i=0,s=e?e.index(n):r.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(Av(t.nodeAfter,o),i++));for(let a=i;a<s;a++)Av(r.child(a),o);e&&e.depth==n&&e.textOffset&&Av(e.nodeBefore,o)}function Rv(t,e){return t.type.checkContent(e),t.copy(e)}function cKe(t,e,n,o,r){let i=t.depth>r&&iie(t,e,r+1),s=o.depth>r&&iie(n,o,r+1),a=[];return B2(null,t,r,a),i&&s&&e.index(r)==n.index(r)?(lKe(i,s),Av(Rv(i,cKe(t,e,n,o,r+1)),a)):(i&&Av(Rv(i,lH(t,e,r+1)),a),B2(e,n,r,a),s&&Av(Rv(s,lH(n,o,r+1)),a)),B2(o,null,r,a),new Ue(a)}function lH(t,e,n){let o=[];if(B2(null,t,n,o),t.depth>n){let r=iie(t,e,n+1);Av(Rv(r,lH(t,e,n+1)),o)}return B2(e,null,n,o),new Ue(o)}function uln(t,e){let n=e.depth-t.openStart,o=e.node(n).copy(t.content);for(let r=n-1;r>=0;r--)o=e.node(r).copy(Ue.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}let nFe=class sie{constructor(e,n,o){this.pos=e,this.path=n,this.parentOffset=o,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let o=this.pos-this.path[this.path.length-1],r=e.child(n);return o?e.child(n).cut(o):r}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let o=this.path[n*3],r=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)r+=o.child(i).nodeSize;return r}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return or.none;if(this.textOffset)return e.child(n).marks;let o=e.maybeChild(n-1),r=e.maybeChild(n);if(!o){let a=o;o=r,r=a}let i=o.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!r||!i[s].isInSet(r.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let o=n.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<o.length;i++)o[i].type.spec.inclusive===!1&&(!r||!o[i].isInSet(r.marks))&&(o=o[i--].removeFromSet(o));return o}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let o=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);o>=0;o--)if(e.pos<=this.end(o)&&(!n||n(this.node(o))))return new cH(this,e,o);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let o=[],r=0,i=n;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(i),c=i-l;if(o.push(s,a,r+l),!c||(s=s.child(a),s.isText))break;i=c-1,r+=l+1}return new sie(n,o,i)}static resolveCached(e,n){let o=oFe.get(e);if(o)for(let i=0;i<o.elts.length;i++){let s=o.elts[i];if(s.pos==n)return s}else oFe.set(e,o=new dln);let r=o.elts[o.i]=sie.resolve(e,n);return o.i=(o.i+1)%hln,r}},dln=class{constructor(){this.elts=[],this.i=0}};const hln=12,oFe=new WeakMap;let cH=class{constructor(e,n,o){this.$from=e,this.$to=n,this.depth=o}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}};const pln=Object.create(null);let Dv=class aie{constructor(e,n,o,r=or.none){this.type=e,this.attrs=n,this.marks=r,this.content=o||Ue.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,o,r=0){this.content.nodesBetween(e,n,o,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,o,r){return this.content.textBetween(e,n,o,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,o){return this.type==e&&sH(this.attrs,n||e.defaultAttrs||pln)&&or.sameSet(this.marks,o||or.none)}copy(e=null){return e==this.content?this:new aie(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new aie(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,o=!1){if(e==n)return Ct.empty;let r=this.resolve(e),i=this.resolve(n),s=o?0:r.sharedDepth(n),a=r.start(s),l=r.node(s).content.cut(r.pos-a,i.pos-a);return new Ct(l,r.depth-s,i.depth-s)}replace(e,n,o){return cln(this.resolve(e),this.resolve(n),o)}nodeAt(e){for(let n=this;;){let{index:o,offset:r}=n.content.findIndex(e);if(n=n.maybeChild(o),!n)return null;if(r==e||n.isText)return n;e-=r+1}}childAfter(e){let{index:n,offset:o}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:o}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:o}=this.content.findIndex(e);if(o<e)return{node:this.content.child(n),index:n,offset:o};let r=this.content.child(n-1);return{node:r,index:n-1,offset:o-r.nodeSize}}resolve(e){return nFe.resolveCached(this,e)}resolveNoCache(e){return nFe.resolve(this,e)}rangeHasMark(e,n,o){let r=!1;return n>e&&this.nodesBetween(e,n,i=>(o.isInSet(i.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),uKe(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,o=Ue.empty,r=0,i=o.childCount){let s=this.contentMatchAt(e).matchFragment(o,r,i),a=s&&s.matchFragment(this.content,n);if(!a||!a.validEnd)return!1;for(let l=r;l<i;l++)if(!this.type.allowsMarks(o.child(l).marks))return!1;return!0}canReplaceWith(e,n,o,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(o),s=i&&i.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=or.none;for(let n=0;n<this.marks.length;n++){let o=this.marks[n];o.type.checkAttrs(o.attrs),e=o.addToSet(e)}if(!or.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let o;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");o=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,o)}let r=Ue.fromJSON(e,n.content),i=e.nodeType(n.type).create(n.attrs,r,o);return i.type.checkAttrs(i.attrs),i}};Dv.prototype.text=void 0;let mln=class lie extends Dv{constructor(e,n,o,r){if(super(e,n,null,r),!o)throw new RangeError("Empty text nodes are not allowed");this.text=o}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):uKe(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new lie(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new lie(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function uKe(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}let iI=class dKe{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let o=new fln(e,n);if(o.next==null)return dKe.empty;let r=hKe(o);o.next&&o.err("Unexpected trailing text");let i=Sln(wln(r));return xln(i,o),i}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,o=e.childCount){let r=this;for(let i=n;r&&i<o;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let o=0;o<e.next.length;o++)if(this.next[n].type==e.next[o].type)return!0;return!1}fillBefore(e,n=!1,o=0){let r=[this];function i(s,a){let l=s.matchFragment(e,o);if(l&&(!n||l.validEnd))return Ue.from(a.map(c=>c.createAndFill()));for(let c=0;c<s.next.length;c++){let{type:u,next:d}=s.next[c];if(!(u.isText||u.hasRequiredAttrs())&&r.indexOf(d)==-1){r.push(d);let h=i(d,a.concat(u));if(h)return h}}return null}return i(this,[])}findWrapping(e){for(let o=0;o<this.wrapCache.length;o+=2)if(this.wrapCache[o]==e)return this.wrapCache[o+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),o=[{match:this,type:null,via:null}];for(;o.length;){let r=o.shift(),i=r.match;if(i.matchType(e)){let s=[];for(let a=r;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:l}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in n)&&(!r.type||l.validEnd)&&(o.push({match:a.contentMatch,type:a,via:r}),n[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(o){e.push(o);for(let r=0;r<o.next.length;r++)e.indexOf(o.next[r].next)==-1&&n(o.next[r].next)}return n(this),e.map((o,r)=>{let i=r+(o.validEnd?"*":" ")+" ";for(let s=0;s<o.next.length;s++)i+=(s?", ":"")+o.next[s].type.name+"->"+e.indexOf(o.next[s].next);return i}).join(`
|
|
149
149
|
`)}};iI.empty=new iI(!0);let fln=class{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}};function hKe(t){let e=[];do e.push(gln(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function gln(t){let e=[];do e.push(yln(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function yln(t){let e=vln(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=Cln(t,e);else break;return e}function rFe(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function Cln(t,e){let n=rFe(t),o=n;return t.eat(",")&&(t.next!="}"?o=rFe(t):o=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:e}}function bln(t,e){let n=t.nodeTypes,o=n[e];if(o)return[o];let r=[];for(let i in n){let s=n[i];s.isInGroup(e)&&r.push(s)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function vln(t){if(t.eat("(")){let e=hKe(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=bln(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function wln(t){let e=[[]];return r(i(t,0),n()),e;function n(){return e.push([])-1}function o(s,a,l){let c={term:l,to:a};return e[s].push(c),c}function r(s,a){s.forEach(l=>l.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((l,c)=>l.concat(i(c,a)),[]);if(s.type=="seq")for(let l=0;;l++){let c=i(s.exprs[l],a);if(l==s.exprs.length-1)return c;r(c,a=n())}else if(s.type=="star"){let l=n();return o(a,l),r(i(s.expr,l),l),[o(l)]}else if(s.type=="plus"){let l=n();return r(i(s.expr,a),l),r(i(s.expr,l),l),[o(l)]}else{if(s.type=="opt")return[o(a)].concat(i(s.expr,a));if(s.type=="range"){let l=a;for(let c=0;c<s.min;c++){let u=n();r(i(s.expr,l),u),l=u}if(s.max==-1)r(i(s.expr,l),l);else for(let c=s.min;c<s.max;c++){let u=n();o(l,u),r(i(s.expr,l),u),l=u}return[o(l)]}else{if(s.type=="name")return[o(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function pKe(t,e){return e-t}function iFe(t,e){let n=[];return o(e),n.sort(pKe);function o(r){let i=t[r];if(i.length==1&&!i[0].term)return o(i[0].to);n.push(r);for(let s=0;s<i.length;s++){let{term:a,to:l}=i[s];!a&&n.indexOf(l)==-1&&o(l)}}}function Sln(t){let e=Object.create(null);return n(iFe(t,0));function n(o){let r=[];o.forEach(s=>{t[s].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u<r.length;u++)r[u][0]==a&&(c=r[u][1]);iFe(t,l).forEach(u=>{c||r.push([a,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let i=e[o.join(",")]=new iI(o.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(pKe);i.next.push({type:r[s][0],next:e[a.join(",")]||n(a)})}return i}}function xln(t,e){for(let n=0,o=[t];n<o.length;n++){let r=o[n],i=!r.validEnd,s=[];for(let a=0;a<r.next.length;a++){let{type:l,next:c}=r.next[a];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),o.indexOf(c)==-1&&o.push(c)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function mKe(t){let e=Object.create(null);for(let n in t){let o=t[n];if(!o.hasDefault)return null;e[n]=o.default}return e}function fKe(t,e){let n=Object.create(null);for(let o in t){let r=e&&e[o];if(r===void 0){let i=t[o];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+o)}n[o]=r}return n}function gKe(t,e,n,o){for(let r in e)if(!(r in t))throw new RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let r in t){let i=t[r];i.validate&&i.validate(e[r])}}function yKe(t,e){let n=Object.create(null);if(e)for(let o in e)n[o]=new kln(t,o,e[o]);return n}let sFe=class CKe{constructor(e,n,o){this.name=e,this.schema=n,this.spec=o,this.markSet=null,this.groups=o.group?o.group.split(" "):[],this.attrs=yKe(e,o.attrs),this.defaultAttrs=mKe(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(o.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==iI.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:fKe(this.attrs,e)}create(e=null,n,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Dv(this,this.computeAttrs(e),Ue.from(n),or.setFrom(o))}createChecked(e=null,n,o){return n=Ue.from(n),this.checkContent(n),new Dv(this,this.computeAttrs(e),n,or.setFrom(o))}createAndFill(e=null,n,o){if(e=this.computeAttrs(e),n=Ue.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let r=this.contentMatch.matchFragment(n),i=r&&r.fillBefore(Ue.empty,!0);return i?new Dv(this,e,n.append(i),or.setFrom(o)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let o=0;o<e.childCount;o++)if(!this.allowsMarks(e.child(o).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){gKe(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let o=0;o<e.length;o++)this.allowsMarkType(e[o].type)?n&&n.push(e[o]):n||(n=e.slice(0,o));return n?n.length?n:or.none:e}static compile(e,n){let o=Object.create(null);e.forEach((i,s)=>o[i]=new CKe(i,n,s));let r=n.spec.topNode||"doc";if(!o[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!o.text)throw new RangeError("Every schema needs a 'text' type");for(let i in o.text.attrs)throw new RangeError("The text node type should not have attributes");return o}};function Tln(t,e,n){let o=n.split("|");return r=>{let i=r===null?"null":typeof r;if(o.indexOf(i)<0)throw new RangeError(`Expected value of type ${o} for attribute ${e} on type ${t}, got ${i}`)}}let kln=class{constructor(e,n,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?Tln(e,n,o.validate):o.validate}get isRequired(){return!this.hasDefault}},bKe=class vKe{constructor(e,n,o,r){this.name=e,this.rank=n,this.schema=o,this.spec=r,this.attrs=yKe(e,r.attrs),this.excluded=null;let i=mKe(this.attrs);this.instance=i?new or(this,i):null}create(e=null){return!e&&this.instance?this.instance:new or(this,fKe(this.attrs,e))}static compile(e,n){let o=Object.create(null),r=0;return e.forEach((i,s)=>o[i]=new vKe(i,r++,n,s)),o}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){gKe(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},Fln=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let r in e)n[r]=e[r];n.nodes=Ki.from(e.nodes),n.marks=Ki.from(e.marks||{}),this.nodes=sFe.compile(this.spec.nodes,this),this.marks=bKe.compile(this.spec.marks,this);let o=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let i=this.nodes[r],s=i.spec.content||"",a=i.spec.marks;if(i.contentMatch=o[s]||(o[s]=iI.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=a=="_"?null:a?aFe(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:aFe(this,s.split(" "))}this.nodeFromJSON=r=>Dv.fromJSON(this,r),this.markFromJSON=r=>or.fromJSON(this,r),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,o,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof sFe){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,o,r)}text(e,n){let o=this.nodes.text;return new mln(o,o.defaultAttrs,e,or.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}};function aFe(t,e){let n=[];for(let o=0;o<e.length;o++){let r=e[o],i=t.marks[r],s=i;if(i)n.push(i);else for(let a in t.marks){let l=t.marks[a];(r=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(r)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[o]+"'")}return n}function Eln(t){return t.tag!=null}function Lln(t){return t.style!=null}let z6=class cie{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let o=this.matchedStyles=[];n.forEach(r=>{if(Eln(r))this.tags.push(r);else if(Lln(r)){let i=/[^=]*/.exec(r.style)[0];o.indexOf(i)<0&&o.push(i),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=e.nodes[r.node];return i.contentMatch.matchType(i)})}parse(e,n={}){let o=new cFe(this,n,!1);return o.addAll(e,or.none,n.from,n.to),o.finish()}parseSlice(e,n={}){let o=new cFe(this,n,!0);return o.addAll(e,or.none,n.from,n.to),Ct.maxOpen(o.finish())}matchTag(e,n,o){for(let r=o?this.tags.indexOf(o)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(Rln(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||n.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,n,o,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let s=this.styles[i],a=s.style;if(!(a.indexOf(e)!=0||s.context&&!o.matchesContext(s.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=n))){if(s.getAttrs){let l=s.getAttrs(n);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let n=[];function o(r){let i=r.priority==null?50:r.priority,s=0;for(;s<n.length;s++){let a=n[s];if((a.priority==null?50:a.priority)<i)break}n.splice(s,0,r)}for(let r in e.marks){let i=e.marks[r].spec.parseDOM;i&&i.forEach(s=>{o(s=uFe(s)),s.mark||s.ignore||s.clearMark||(s.mark=r)})}for(let r in e.nodes){let i=e.nodes[r].spec.parseDOM;i&&i.forEach(s=>{o(s=uFe(s)),s.node||s.ignore||s.mark||(s.node=r)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new cie(e,cie.schemaRules(e)))}};const wKe={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},_ln={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},SKe={ol:!0,ul:!0},sI=1,uie=2,N2=4;function lFe(t,e,n){return e!=null?(e?sI:0)|(e==="full"?uie:0):t&&t.whitespace=="pre"?sI|uie:n&~N2}let gO=class{constructor(e,n,o,r,i,s){this.type=e,this.attrs=n,this.marks=o,this.solid=r,this.options=s,this.content=[],this.activeMarks=or.none,this.match=i||(s&N2?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(Ue.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let o=this.type.contentMatch,r;return(r=o.findWrapping(e.type))?(this.match=o,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&sI)){let o=this.content[this.content.length-1],r;if(o&&o.isText&&(r=/[ \t\r\n\u000c]+$/.exec(o.text))){let i=o;o.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let n=Ue.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(Ue.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!wKe.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}};class cFe{constructor(e,n,o){this.parser=e,this.options=n,this.isOpen=o,this.open=0,this.localPreserveWS=!1;let r=n.topNode,i,s=lFe(null,n.preserveWhitespace,0)|(o?N2:0);r?i=new gO(r.type,r.attrs,or.none,!0,n.topMatch||r.type.contentMatch,s):o?i=new gO(null,null,or.none,!0,null,s):i=new gO(e.schema.topNodeType,null,or.none,!0,null,s),this.nodes=[i],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let o=e.nodeValue,r=this.top,i=r.options&uie?"full":this.localPreserveWS||(r.options&sI)>0,{schema:s}=this.parser;if(i==="full"||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(o)){if(i)if(i==="full")o=o.replace(/\r\n?/g,`
|
|
150
150
|
`);else if(s.linebreakReplacement&&/[\r\n]/.test(o)&&this.top.findWrapping(s.linebreakReplacement.create())){let a=o.split(/\r?\n|\r/);for(let l=0;l<a.length;l++)l&&this.insertNode(s.linebreakReplacement.create(),n,!0),a[l]&&this.insertNode(s.text(a[l]),n,!/\S/.test(a[l]));o=""}else o=o.replace(/\r?\n|\r/g," ");else if(o=o.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(o)&&this.open==this.nodes.length-1){let a=r.content[r.content.length-1],l=e.previousSibling;(!a||l&&l.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(o=o.slice(1))}o&&this.insertNode(s.text(o),n,!/\S/.test(o)),this.findInText(e)}else this.findInside(e)}addElement(e,n,o){let r=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),a;SKe.hasOwnProperty(s)&&this.parser.normalizeLists&&Aln(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,o));e:if(l?l.ignore:_ln.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let c,u=this.needsBlock;if(wKe.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),c=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let d=l&&l.skip?n:this.readStyles(e,n);d&&this.addAll(e,d),c&&this.sync(i),this.needsBlock=u}else{let c=this.readStyles(e,n);c&&this.addElementByRule(e,l,c,l.consuming===!1?a:void 0)}this.localPreserveWS=r}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|